diff --git a/.circleci/config.yml b/.circleci/config.yml index e6a834f0dc..bb4afb5ffe 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -219,7 +219,7 @@ jobs: - image: 0xorg/launch-kit-backend:v3 environment: RPC_URL: 'http://localhost:8545' - NETWORK_ID: 50 + CHAIN_ID: 1337 WHITELIST_ALL_TOKENS: True FEE_RECIPIENT: '0x0000000000000000000000000000000000000001' MAKER_FEE_UNIT_AMOUNT: 0 diff --git a/.github/autolabeler.yml b/.github/autolabeler.yml index 29c46a6e6d..5bcf64f818 100644 --- a/.github/autolabeler.yml +++ b/.github/autolabeler.yml @@ -32,5 +32,3 @@ contracts: ['contracts'] @0x/json-schemas: ['packages/json-schemas'] @0x/ethereum-types: ['ethereum-types'] @0x/connect: ['packages/connect'] -@0x/testnet-faucets: ['packages/testnet-faucets'] -@0x/monorepo-scripts: ['packages/monorepo-scripts'] diff --git a/.gitignore b/.gitignore index 7313764d8c..efa2b704d0 100644 --- a/.gitignore +++ b/.gitignore @@ -78,24 +78,35 @@ TODO.md # VSCode file .vscode -# server cli -packages/testnet-faucets/server/ - # generated contract artifacts/ contracts/integrations/generated-artifacts/ +contracts/integrations/test/generated-artifacts/ contracts/staking/generated-artifacts/ +contracts/staking/test/generated-artifacts/ contracts/coordinator/generated-artifacts/ +contracts/coordinator/test/generated-artifacts/ contracts/exchange/generated-artifacts/ +contracts/exchange/test/generated-artifacts/ contracts/asset-proxy/generated-artifacts/ +contracts/asset-proxy/test/generated-artifacts/ contracts/multisig/generated-artifacts/ +contracts/multisig/test/generated-artifacts/ contracts/utils/generated-artifacts/ +contracts/utils/test/generated-artifacts/ contracts/exchange-libs/generated-artifacts/ +contracts/exchange-libs/test/generated-artifacts/ contracts/erc20/generated-artifacts/ +contracts/erc20/test/generated-artifacts/ contracts/erc721/generated-artifacts/ +contracts/erc721/test/generated-artifacts/ contracts/erc1155/generated-artifacts/ +contracts/erc1155/test/generated-artifacts/ contracts/extensions/generated-artifacts/ +contracts/extensions/test/generated-artifacts/ contracts/exchange-forwarder/generated-artifacts/ +contracts/exchange-forwarder/test/generated-artifacts/ contracts/dev-utils/generated-artifacts/ +contracts/dev-utils/test/generated-artifacts/ packages/sol-tracing-utils/test/fixtures/artifacts/ python-packages/contract_artifacts/src/zero_ex/contract_artifacts/artifacts/ @@ -117,19 +128,33 @@ contracts/dev-utils/build/ # generated contract wrappers packages/python-contract-wrappers/generated/ contracts/integrations/generated-wrappers/ +contracts/integrations/test/generated-wrappers/ contracts/staking/generated-wrappers/ +contracts/staking/test/generated-wrappers/ contracts/coordinator/generated-wrappers/ +contracts/coordinator/test/generated-wrappers/ contracts/exchange/generated-wrappers/ +contracts/exchange/test/generated-wrappers/ contracts/asset-proxy/generated-wrappers/ +contracts/asset-proxy/test/generated-wrappers/ contracts/multisig/generated-wrappers/ +contracts/multisig/test/generated-wrappers/ contracts/utils/generated-wrappers/ +contracts/utils/test/generated-wrappers/ contracts/exchange-libs/generated-wrappers/ +contracts/exchange-libs/test/generated-wrappers/ contracts/erc20/generated-wrappers/ +contracts/erc20/test/generated-wrappers/ contracts/erc721/generated-wrappers/ +contracts/erc721/test/generated-wrappers/ contracts/erc1155/generated-wrappers/ +contracts/erc1155/test/generated-wrappers/ contracts/extensions/generated-wrappers/ +contracts/extensions/test/generated-wrappers/ contracts/exchange-forwarder/generated-wrappers/ +contracts/exchange-forwarder/test/generated-wrappers/ contracts/dev-utils/generated-wrappers/ +contracts/dev-utils/test/generated-wrappers/ python-packages/contract_wrappers/src/zero_ex/contract_wrappers/dev_utils/__init__.py python-packages/contract_wrappers/src/zero_ex/contract_wrappers/erc20_token/__init__.py python-packages/contract_wrappers/src/zero_ex/contract_wrappers/exchange/__init__.py @@ -144,7 +169,6 @@ python-packages/contract_wrappers/src/zero_ex/contract_wrappers/erc1155_proxy/__ python-packages/contract_wrappers/src/zero_ex/contract_wrappers/erc20_proxy/__init__.py python-packages/contract_wrappers/src/zero_ex/contract_wrappers/erc721_proxy/__init__.py python-packages/contract_wrappers/src/zero_ex/contract_wrappers/erc721_token/__init__.py -python-packages/contract_wrappers/src/zero_ex/contract_wrappers/eth_balance_checker/__init__.py python-packages/contract_wrappers/src/zero_ex/contract_wrappers/forwarder/__init__.py python-packages/contract_wrappers/src/zero_ex/contract_wrappers/i_asset_proxy/__init__.py python-packages/contract_wrappers/src/zero_ex/contract_wrappers/i_validator/__init__.py diff --git a/.prettierignore b/.prettierignore index ff3bf6e8c7..1435fa7dd3 100644 --- a/.prettierignore +++ b/.prettierignore @@ -1,33 +1,61 @@ lib .nyc_output /contracts/integrations/generated-wrappers +/contracts/integrations/test/generated-wrappers /contracts/integrations/generated-artifacts +/contracts/integrations/test/generated-artifacts /contracts/staking/generated-wrappers +/contracts/staking/test/generated-wrappers /contracts/staking/generated-artifacts +/contracts/staking/test/generated-artifacts /contracts/coordinator/generated-wrappers +/contracts/coordinator/test/generated-wrappers /contracts/coordinator/generated-artifacts +/contracts/coordinator/test/generated-artifacts /contracts/exchange/generated-wrappers +/contracts/exchange/test/generated-wrappers /contracts/exchange/generated-artifacts +/contracts/exchange/test/generated-artifacts /contracts/asset-proxy/generated-wrappers +/contracts/asset-proxy/test/generated-wrappers /contracts/asset-proxy/generated-artifacts +/contracts/asset-proxy/test/generated-artifacts /contracts/multisig/generated-wrappers +/contracts/multisig/test/generated-wrappers /contracts/multisig/generated-artifacts +/contracts/multisig/test/generated-artifacts /contracts/utils/generated-wrappers +/contracts/utils/test/generated-wrappers /contracts/utils/generated-artifacts +/contracts/utils/test/generated-artifacts /contracts/exchange-libs/generated-wrappers +/contracts/exchange-libs/test/generated-wrappers /contracts/exchange-libs/generated-artifacts +/contracts/exchange-libs/test/generated-artifacts /contracts/erc20/generated-wrappers +/contracts/erc20/test/generated-wrappers /contracts/erc20/generated-artifacts +/contracts/erc20/test/generated-artifacts /contracts/erc721/generated-wrappers +/contracts/erc721/test/generated-wrappers /contracts/erc721/generated-artifacts +/contracts/erc721/test/generated-artifacts /contracts/erc1155/generated-wrappers +/contracts/erc1155/test/generated-wrappers /contracts/erc1155/generated-artifacts +/contracts/erc1155/test/generated-artifacts /contracts/extensions/generated-wrappers +/contracts/extensions/test/generated-wrappers /contracts/extensions/generated-artifacts +/contracts/extensions/test/generated-artifacts /contracts/exchange-forwarder/generated-wrappers +/contracts/exchange-forwarder/test/generated-wrappers /contracts/exchange-forwarder/generated-artifacts +/contracts/exchange-forwarder/test/generated-artifacts /contracts/dev-utils/generated-wrappers +/contracts/dev-utils/test/generated-wrappers /contracts/dev-utils/generated-artifacts +/contracts/dev-utils/test/generated-artifacts /contracts/staking/build/ /contracts/coordinator/build/ /contracts/exchange/build/ diff --git a/.prettierrc b/.prettierrc index 58a17fac22..335d6f4ec4 100644 --- a/.prettierrc +++ b/.prettierrc @@ -1,6 +1,6 @@ { - "tabWidth": 4, "printWidth": 120, - "trailingComma": all, - "singleQuote": true + "tabWidth": 4, + "singleQuote": true, + "trailingComma": "all" } diff --git a/README.md b/README.md index f500f70992..1eb2c65dc3 100644 --- a/README.md +++ b/README.md @@ -96,10 +96,9 @@ These packages are all under development. See [/contracts/README.md](/contracts/ #### Private Packages -| Package | Description | -| -------------------------------------------------- | -------------------------------------------------------------------------------- | -| [`@0x/instant`](/packages/instant) | A free and flexible way to offer simple crypto purchasing in any app or website. | -| [`@0x/testnet-faucets`](/packages/testnet-faucets) | A faucet micro-service that dispenses test ERC20 tokens or Ether | +| Package | Description | +| ---------------------------------- | -------------------------------------------------------------------------------- | +| [`@0x/instant`](/packages/instant) | A free and flexible way to offer simple crypto purchasing in any app or website. | ## Usage diff --git a/contracts/asset-proxy/.npmignore b/contracts/asset-proxy/.npmignore new file mode 100644 index 0000000000..bdf2b8acbe --- /dev/null +++ b/contracts/asset-proxy/.npmignore @@ -0,0 +1,10 @@ +# Blacklist all files +.* +* +# Whitelist lib +!lib/**/* +# Whitelist Solidity contracts +!contracts/src/**/* +# Blacklist tests in lib +/lib/test/* +# Package specific ignore diff --git a/contracts/asset-proxy/CHANGELOG.json b/contracts/asset-proxy/CHANGELOG.json index 00641fe214..83585535c9 100644 --- a/contracts/asset-proxy/CHANGELOG.json +++ b/contracts/asset-proxy/CHANGELOG.json @@ -1,4 +1,13 @@ [ + { + "version": "2.3.0-beta.2", + "changes": [ + { + "note": "Drastically reduced bundle size by adding .npmignore, only exporting specific artifacts/wrappers/utils", + "pr": 2330 + } + ] + }, { "version": "2.3.0-beta.1", "changes": [ @@ -6,7 +15,8 @@ "note": "ERC20Wrapper and ERC1155ProxyWrapper constructors now require an instance of DevUtilsContract", "pr": 2034 } - ] + ], + "timestamp": 1573159180 }, { "version": "2.3.0-beta.0", diff --git a/contracts/asset-proxy/CHANGELOG.md b/contracts/asset-proxy/CHANGELOG.md index 25bcca7ba1..882260ebc4 100644 --- a/contracts/asset-proxy/CHANGELOG.md +++ b/contracts/asset-proxy/CHANGELOG.md @@ -5,6 +5,10 @@ Edit the package's CHANGELOG.json file only. CHANGELOG +## v2.3.0-beta.1 - _November 7, 2019_ + + * ERC20Wrapper and ERC1155ProxyWrapper constructors now require an instance of DevUtilsContract (#2034) + ## v2.3.0-beta.0 - _October 3, 2019_ * Disallow the zero address from being made an authorized address in MixinAuthorizable, and created an archive directory that includes an old version of Ownable (#2019) @@ -13,6 +17,8 @@ CHANGELOG * Remove unused dependency on IAuthorizable in IAssetProxy (#1910) * Add `ERC20BridgeProxy` (#2220) * Add `Eth2DaiBridge` (#2221) + * Add `UniswapBridge` (#2233) + * Replaced `SafeMath` with `LibSafeMath` (#2254) ## v2.2.8 - _September 17, 2019_ diff --git a/contracts/asset-proxy/compiler.json b/contracts/asset-proxy/compiler.json index 6b74c612c2..6d739870f0 100644 --- a/contracts/asset-proxy/compiler.json +++ b/contracts/asset-proxy/compiler.json @@ -1,5 +1,5 @@ { - "artifactsDir": "./generated-artifacts", + "artifactsDir": "./test/generated-artifacts", "contractsDir": "./contracts", "useDockerisedSolc": false, "isOfflineMode": false, diff --git a/contracts/asset-proxy/package.json b/contracts/asset-proxy/package.json index 14ebd47153..ecea28dd80 100644 --- a/contracts/asset-proxy/package.json +++ b/contracts/asset-proxy/package.json @@ -1,6 +1,6 @@ { "name": "@0x/contracts-asset-proxy", - "version": "2.3.0-beta.0", + "version": "2.3.0-beta.1", "engines": { "node": ">=6.12" }, @@ -12,7 +12,7 @@ "scripts": { "build": "yarn pre_build && tsc -b", "build:ci": "yarn build", - "pre_build": "run-s compile contracts:gen generate_contract_wrappers", + "pre_build": "run-s compile contracts:gen generate_contract_wrappers contracts:copy", "test": "yarn run_mocha", "rebuild_and_test": "run-s build test", "test:coverage": "SOLIDITY_COVERAGE=true run-s build run_mocha coverage:report:text coverage:report:lcov", @@ -21,21 +21,23 @@ "run_mocha": "mocha --require source-map-support/register --require make-promises-safe 'lib/test/**/*.js' --timeout 100000 --bail --exit", "compile": "sol-compiler", "watch": "sol-compiler -w", - "clean": "shx rm -rf lib generated-artifacts generated-wrappers", - "generate_contract_wrappers": "abi-gen --debug --abis ${npm_package_config_abis} --output generated-wrappers --backend ethers", - "lint": "tslint --format stylish --project . --exclude ./generated-wrappers/**/* --exclude ./generated-artifacts/**/* --exclude **/lib/**/* && yarn lint-contracts", - "fix": "tslint --fix --format stylish --project . --exclude ./generated-wrappers/**/* --exclude ./generated-artifacts/**/* --exclude **/lib/**/* && yarn lint-contracts", + "clean": "shx rm -rf lib test/generated-artifacts test/generated-wrappers generated-artifacts generated-wrappers", + "generate_contract_wrappers": "abi-gen --debug --abis ${npm_package_config_abis} --output test/generated-wrappers --backend ethers", + "lint": "tslint --format stylish --project . --exclude ./generated-wrappers/**/* --exclude ./test/generated-wrappers/**/* --exclude ./generated-artifacts/**/* --exclude ./test/generated-artifacts/**/* --exclude **/lib/**/* && yarn lint-contracts", + "fix": "tslint --fix --format stylish --project . --exclude ./generated-wrappers/**/* --exclude ./test/generated-wrappers/**/* --exclude ./generated-artifacts/**/* --exclude ./test/generated-artifacts/**/* --exclude **/lib/**/* && yarn lint-contracts", "coverage:report:text": "istanbul report text", "coverage:report:html": "istanbul report html && open coverage/index.html", "profiler:report:html": "istanbul report html && open coverage/index.html", "coverage:report:lcov": "istanbul report lcov", "test:circleci": "yarn test", - "contracts:gen": "contracts-gen", + "contracts:gen": "contracts-gen generate", + "contracts:copy": "contracts-gen copy", "lint-contracts": "solhint -c ../.solhint.json contracts/**/**/**/**/*.sol", "compile:truffle": "truffle compile" }, "config": { - "abis": "./generated-artifacts/@(ERC1155Proxy|ERC20BridgeProxy|ERC20Proxy|ERC721Proxy|Eth2DaiBridge|IAssetData|IAssetProxy|IAssetProxyDispatcher|IAuthorizable|IERC20Bridge|IEth2Dai|IUniswapExchange|IUniswapExchangeFactory|MixinAssetProxyDispatcher|MixinAuthorizable|MultiAssetProxy|Ownable|StaticCallProxy|TestERC20Bridge|TestEth2DaiBridge|TestStaticCallTarget|TestUniswapBridge|UniswapBridge).json", + "publicInterfaceContracts": "ERC1155Proxy,ERC20Proxy,ERC721Proxy,MultiAssetProxy,StaticCallProxy,ERC20BridgeProxy,Eth2DaiBridge,IAssetData,IAssetProxy,UniswapBridge,TestStaticCallTarget", + "abis": "./test/generated-artifacts/@(ERC1155Proxy|ERC20BridgeProxy|ERC20Proxy|ERC721Proxy|Eth2DaiBridge|IAssetData|IAssetProxy|IAssetProxyDispatcher|IAuthorizable|IERC20Bridge|IEth2Dai|IUniswapExchange|IUniswapExchangeFactory|MixinAssetProxyDispatcher|MixinAuthorizable|MultiAssetProxy|Ownable|StaticCallProxy|TestERC20Bridge|TestEth2DaiBridge|TestStaticCallTarget|TestUniswapBridge|UniswapBridge).json", "abis:comment": "This list is auto-generated by contracts-gen. Don't edit manually." }, "repository": { @@ -48,12 +50,14 @@ }, "homepage": "https://github.com/0xProject/0x-monorepo/contracts/protocol/README.md", "devDependencies": { - "@0x/abi-gen": "^4.3.0-beta.0", - "@0x/contracts-gen": "^1.1.0-beta.0", - "@0x/contracts-test-utils": "^3.2.0-beta.0", - "@0x/dev-utils": "^2.4.0-beta.0", - "@0x/sol-compiler": "^3.2.0-beta.0", - "@0x/tslint-config": "^3.0.1", + "@0x/abi-gen": "^4.4.0-beta.1", + "@0x/contracts-gen": "^1.1.0-beta.1", + "@0x/contracts-test-utils": "^3.2.0-beta.1", + "@0x/contracts-utils": "^3.3.0-beta.1", + "@0x/dev-utils": "^2.4.0-beta.1", + "@0x/sol-compiler": "^3.2.0-beta.1", + "@0x/tslint-config": "^3.1.0-beta.1", + "@0x/types": "^2.5.0-beta.1", "@types/lodash": "4.14.104", "@types/mocha": "^5.2.7", "@types/node": "*", @@ -61,6 +65,7 @@ "chai-as-promised": "^7.1.0", "chai-bignumber": "^3.0.0", "dirty-chai": "^2.0.1", + "ethereumjs-util": "^5.1.1", "make-promises-safe": "^1.1.0", "mocha": "^6.2.0", "npm-run-all": "^4.1.2", @@ -71,19 +76,16 @@ "typescript": "3.0.1" }, "dependencies": { - "@0x/base-contract": "^5.5.0-beta.0", - "@0x/contracts-dev-utils": "^0.1.0-beta.0", - "@0x/contracts-erc1155": "^1.2.0-beta.0", - "@0x/contracts-erc20": "^2.3.0-beta.0", - "@0x/contracts-erc721": "^2.2.0-beta.0", - "@0x/contracts-utils": "^3.3.0-beta.0", - "@0x/order-utils": "^8.5.0-beta.0", - "@0x/types": "^2.5.0-beta.0", - "@0x/typescript-typings": "^4.4.0-beta.0", - "@0x/utils": "^4.6.0-beta.0", - "@0x/web3-wrapper": "^6.1.0-beta.0", - "ethereum-types": "^2.2.0-beta.0", - "ethereumjs-util": "^5.1.1", + "@0x/base-contract": "^5.5.0-beta.1", + "@0x/contracts-dev-utils": "^0.1.0-beta.1", + "@0x/contracts-erc1155": "^1.2.0-beta.1", + "@0x/contracts-erc20": "^2.3.0-beta.1", + "@0x/contracts-erc721": "^2.2.0-beta.1", + "@0x/order-utils": "^8.5.0-beta.1", + "@0x/typescript-typings": "^4.4.0-beta.1", + "@0x/utils": "^4.6.0-beta.1", + "@0x/web3-wrapper": "^6.1.0-beta.1", + "ethereum-types": "^2.2.0-beta.1", "lodash": "^4.17.11" }, "publishConfig": { diff --git a/contracts/asset-proxy/src/artifacts.ts b/contracts/asset-proxy/src/artifacts.ts index ebe46f9d40..1dd886dedf 100644 --- a/contracts/asset-proxy/src/artifacts.ts +++ b/contracts/asset-proxy/src/artifacts.ts @@ -12,44 +12,20 @@ import * as ERC721Proxy from '../generated-artifacts/ERC721Proxy.json'; import * as Eth2DaiBridge from '../generated-artifacts/Eth2DaiBridge.json'; import * as IAssetData from '../generated-artifacts/IAssetData.json'; import * as IAssetProxy from '../generated-artifacts/IAssetProxy.json'; -import * as IAssetProxyDispatcher from '../generated-artifacts/IAssetProxyDispatcher.json'; -import * as IAuthorizable from '../generated-artifacts/IAuthorizable.json'; -import * as IERC20Bridge from '../generated-artifacts/IERC20Bridge.json'; -import * as IEth2Dai from '../generated-artifacts/IEth2Dai.json'; -import * as IUniswapExchange from '../generated-artifacts/IUniswapExchange.json'; -import * as IUniswapExchangeFactory from '../generated-artifacts/IUniswapExchangeFactory.json'; -import * as MixinAssetProxyDispatcher from '../generated-artifacts/MixinAssetProxyDispatcher.json'; -import * as MixinAuthorizable from '../generated-artifacts/MixinAuthorizable.json'; import * as MultiAssetProxy from '../generated-artifacts/MultiAssetProxy.json'; -import * as Ownable from '../generated-artifacts/Ownable.json'; import * as StaticCallProxy from '../generated-artifacts/StaticCallProxy.json'; -import * as TestERC20Bridge from '../generated-artifacts/TestERC20Bridge.json'; -import * as TestEth2DaiBridge from '../generated-artifacts/TestEth2DaiBridge.json'; import * as TestStaticCallTarget from '../generated-artifacts/TestStaticCallTarget.json'; -import * as TestUniswapBridge from '../generated-artifacts/TestUniswapBridge.json'; import * as UniswapBridge from '../generated-artifacts/UniswapBridge.json'; export const artifacts = { - MixinAssetProxyDispatcher: MixinAssetProxyDispatcher as ContractArtifact, - MixinAuthorizable: MixinAuthorizable as ContractArtifact, - Ownable: Ownable as ContractArtifact, ERC1155Proxy: ERC1155Proxy as ContractArtifact, - ERC20BridgeProxy: ERC20BridgeProxy as ContractArtifact, ERC20Proxy: ERC20Proxy as ContractArtifact, ERC721Proxy: ERC721Proxy as ContractArtifact, MultiAssetProxy: MultiAssetProxy as ContractArtifact, StaticCallProxy: StaticCallProxy as ContractArtifact, + ERC20BridgeProxy: ERC20BridgeProxy as ContractArtifact, Eth2DaiBridge: Eth2DaiBridge as ContractArtifact, - UniswapBridge: UniswapBridge as ContractArtifact, IAssetData: IAssetData as ContractArtifact, IAssetProxy: IAssetProxy as ContractArtifact, - IAssetProxyDispatcher: IAssetProxyDispatcher as ContractArtifact, - IAuthorizable: IAuthorizable as ContractArtifact, - IERC20Bridge: IERC20Bridge as ContractArtifact, - IEth2Dai: IEth2Dai as ContractArtifact, - IUniswapExchange: IUniswapExchange as ContractArtifact, - IUniswapExchangeFactory: IUniswapExchangeFactory as ContractArtifact, - TestERC20Bridge: TestERC20Bridge as ContractArtifact, - TestEth2DaiBridge: TestEth2DaiBridge as ContractArtifact, + UniswapBridge: UniswapBridge as ContractArtifact, TestStaticCallTarget: TestStaticCallTarget as ContractArtifact, - TestUniswapBridge: TestUniswapBridge as ContractArtifact, }; diff --git a/contracts/asset-proxy/test/utils/erc1155_proxy_wrapper.ts b/contracts/asset-proxy/src/erc1155_proxy_wrapper.ts similarity index 99% rename from contracts/asset-proxy/test/utils/erc1155_proxy_wrapper.ts rename to contracts/asset-proxy/src/erc1155_proxy_wrapper.ts index 6dbe18bb46..8f69fdb7c9 100644 --- a/contracts/asset-proxy/test/utils/erc1155_proxy_wrapper.ts +++ b/contracts/asset-proxy/src/erc1155_proxy_wrapper.ts @@ -13,7 +13,9 @@ import { Web3Wrapper } from '@0x/web3-wrapper'; import { Provider, TransactionReceiptWithDecodedLogs } from 'ethereum-types'; import * as _ from 'lodash'; -import { artifacts, ERC1155ProxyContract, IAssetProxyContract } from '../../src'; +import { artifacts } from './artifacts'; + +import { ERC1155ProxyContract, IAssetProxyContract } from './wrappers'; export class ERC1155ProxyWrapper { private readonly _tokenOwnerAddresses: string[]; diff --git a/contracts/asset-proxy/test/utils/erc20_wrapper.ts b/contracts/asset-proxy/src/erc20_wrapper.ts similarity index 98% rename from contracts/asset-proxy/test/utils/erc20_wrapper.ts rename to contracts/asset-proxy/src/erc20_wrapper.ts index 57a9a2afe3..fa1c5661fd 100644 --- a/contracts/asset-proxy/test/utils/erc20_wrapper.ts +++ b/contracts/asset-proxy/src/erc20_wrapper.ts @@ -5,7 +5,9 @@ import { BigNumber } from '@0x/utils'; import { ZeroExProvider } from 'ethereum-types'; import * as _ from 'lodash'; -import { artifacts, ERC20ProxyContract } from '../../src'; +import { artifacts } from './artifacts'; + +import { ERC20ProxyContract } from './wrappers'; export class ERC20Wrapper { private readonly _tokenOwnerAddresses: string[]; diff --git a/contracts/asset-proxy/test/utils/erc721_wrapper.ts b/contracts/asset-proxy/src/erc721_wrapper.ts similarity index 99% rename from contracts/asset-proxy/test/utils/erc721_wrapper.ts rename to contracts/asset-proxy/src/erc721_wrapper.ts index ec50c15847..da6fa4aa22 100644 --- a/contracts/asset-proxy/test/utils/erc721_wrapper.ts +++ b/contracts/asset-proxy/src/erc721_wrapper.ts @@ -5,7 +5,9 @@ import { BigNumber } from '@0x/utils'; import { ZeroExProvider } from 'ethereum-types'; import * as _ from 'lodash'; -import { artifacts, ERC721ProxyContract } from '../../src'; +import { artifacts } from './artifacts'; + +import { ERC721ProxyContract } from './wrappers'; export class ERC721Wrapper { private readonly _tokenOwnerAddresses: string[]; diff --git a/contracts/asset-proxy/src/index.ts b/contracts/asset-proxy/src/index.ts index ba813e7caf..c09b5adde2 100644 --- a/contracts/asset-proxy/src/index.ts +++ b/contracts/asset-proxy/src/index.ts @@ -1,3 +1,6 @@ export * from './artifacts'; export * from './wrappers'; -export * from '../test/utils'; + +export { ERC20Wrapper } from './erc20_wrapper'; +export { ERC721Wrapper } from './erc721_wrapper'; +export { ERC1155ProxyWrapper } from './erc1155_proxy_wrapper'; diff --git a/contracts/asset-proxy/src/wrappers.ts b/contracts/asset-proxy/src/wrappers.ts index a39cbd282b..0fa37a911c 100644 --- a/contracts/asset-proxy/src/wrappers.ts +++ b/contracts/asset-proxy/src/wrappers.ts @@ -10,19 +10,7 @@ export * from '../generated-wrappers/erc721_proxy'; export * from '../generated-wrappers/eth2_dai_bridge'; export * from '../generated-wrappers/i_asset_data'; export * from '../generated-wrappers/i_asset_proxy'; -export * from '../generated-wrappers/i_asset_proxy_dispatcher'; -export * from '../generated-wrappers/i_authorizable'; -export * from '../generated-wrappers/i_erc20_bridge'; -export * from '../generated-wrappers/i_eth2_dai'; -export * from '../generated-wrappers/i_uniswap_exchange'; -export * from '../generated-wrappers/i_uniswap_exchange_factory'; -export * from '../generated-wrappers/mixin_asset_proxy_dispatcher'; -export * from '../generated-wrappers/mixin_authorizable'; export * from '../generated-wrappers/multi_asset_proxy'; -export * from '../generated-wrappers/ownable'; export * from '../generated-wrappers/static_call_proxy'; -export * from '../generated-wrappers/test_erc20_bridge'; -export * from '../generated-wrappers/test_eth2_dai_bridge'; export * from '../generated-wrappers/test_static_call_target'; -export * from '../generated-wrappers/test_uniswap_bridge'; export * from '../generated-wrappers/uniswap_bridge'; diff --git a/contracts/asset-proxy/test/artifacts.ts b/contracts/asset-proxy/test/artifacts.ts new file mode 100644 index 0000000000..54e7e8757e --- /dev/null +++ b/contracts/asset-proxy/test/artifacts.ts @@ -0,0 +1,55 @@ +/* + * ----------------------------------------------------------------------------- + * Warning: This file is auto-generated by contracts-gen. Don't edit manually. + * ----------------------------------------------------------------------------- + */ +import { ContractArtifact } from 'ethereum-types'; + +import * as ERC1155Proxy from '../test/generated-artifacts/ERC1155Proxy.json'; +import * as ERC20BridgeProxy from '../test/generated-artifacts/ERC20BridgeProxy.json'; +import * as ERC20Proxy from '../test/generated-artifacts/ERC20Proxy.json'; +import * as ERC721Proxy from '../test/generated-artifacts/ERC721Proxy.json'; +import * as Eth2DaiBridge from '../test/generated-artifacts/Eth2DaiBridge.json'; +import * as IAssetData from '../test/generated-artifacts/IAssetData.json'; +import * as IAssetProxy from '../test/generated-artifacts/IAssetProxy.json'; +import * as IAssetProxyDispatcher from '../test/generated-artifacts/IAssetProxyDispatcher.json'; +import * as IAuthorizable from '../test/generated-artifacts/IAuthorizable.json'; +import * as IERC20Bridge from '../test/generated-artifacts/IERC20Bridge.json'; +import * as IEth2Dai from '../test/generated-artifacts/IEth2Dai.json'; +import * as IUniswapExchange from '../test/generated-artifacts/IUniswapExchange.json'; +import * as IUniswapExchangeFactory from '../test/generated-artifacts/IUniswapExchangeFactory.json'; +import * as MixinAssetProxyDispatcher from '../test/generated-artifacts/MixinAssetProxyDispatcher.json'; +import * as MixinAuthorizable from '../test/generated-artifacts/MixinAuthorizable.json'; +import * as MultiAssetProxy from '../test/generated-artifacts/MultiAssetProxy.json'; +import * as Ownable from '../test/generated-artifacts/Ownable.json'; +import * as StaticCallProxy from '../test/generated-artifacts/StaticCallProxy.json'; +import * as TestERC20Bridge from '../test/generated-artifacts/TestERC20Bridge.json'; +import * as TestEth2DaiBridge from '../test/generated-artifacts/TestEth2DaiBridge.json'; +import * as TestStaticCallTarget from '../test/generated-artifacts/TestStaticCallTarget.json'; +import * as TestUniswapBridge from '../test/generated-artifacts/TestUniswapBridge.json'; +import * as UniswapBridge from '../test/generated-artifacts/UniswapBridge.json'; +export const artifacts = { + MixinAssetProxyDispatcher: MixinAssetProxyDispatcher as ContractArtifact, + MixinAuthorizable: MixinAuthorizable as ContractArtifact, + Ownable: Ownable as ContractArtifact, + ERC1155Proxy: ERC1155Proxy as ContractArtifact, + ERC20BridgeProxy: ERC20BridgeProxy as ContractArtifact, + ERC20Proxy: ERC20Proxy as ContractArtifact, + ERC721Proxy: ERC721Proxy as ContractArtifact, + MultiAssetProxy: MultiAssetProxy as ContractArtifact, + StaticCallProxy: StaticCallProxy as ContractArtifact, + Eth2DaiBridge: Eth2DaiBridge as ContractArtifact, + UniswapBridge: UniswapBridge as ContractArtifact, + IAssetData: IAssetData as ContractArtifact, + IAssetProxy: IAssetProxy as ContractArtifact, + IAssetProxyDispatcher: IAssetProxyDispatcher as ContractArtifact, + IAuthorizable: IAuthorizable as ContractArtifact, + IERC20Bridge: IERC20Bridge as ContractArtifact, + IEth2Dai: IEth2Dai as ContractArtifact, + IUniswapExchange: IUniswapExchange as ContractArtifact, + IUniswapExchangeFactory: IUniswapExchangeFactory as ContractArtifact, + TestERC20Bridge: TestERC20Bridge as ContractArtifact, + TestEth2DaiBridge: TestEth2DaiBridge as ContractArtifact, + TestStaticCallTarget: TestStaticCallTarget as ContractArtifact, + TestUniswapBridge: TestUniswapBridge as ContractArtifact, +}; diff --git a/contracts/asset-proxy/test/authorizable.ts b/contracts/asset-proxy/test/authorizable.ts index 31401d281b..d4b5b58a84 100644 --- a/contracts/asset-proxy/test/authorizable.ts +++ b/contracts/asset-proxy/test/authorizable.ts @@ -5,7 +5,9 @@ import { BigNumber } from '@0x/utils'; import * as chai from 'chai'; import * as _ from 'lodash'; -import { artifacts, MixinAuthorizableContract } from '../src'; +import { artifacts } from './artifacts'; + +import { MixinAuthorizableContract } from './wrappers'; chaiSetup.configure(); const expect = chai.expect; diff --git a/contracts/asset-proxy/test/erc1155_proxy.ts b/contracts/asset-proxy/test/erc1155_proxy.ts index 015b2bd44f..8a7f852065 100644 --- a/contracts/asset-proxy/test/erc1155_proxy.ts +++ b/contracts/asset-proxy/test/erc1155_proxy.ts @@ -23,7 +23,10 @@ import { LogWithDecodedArgs } from 'ethereum-types'; import * as ethUtil from 'ethereumjs-util'; import * as _ from 'lodash'; -import { artifacts, ERC1155ProxyContract, ERC1155ProxyWrapper, IAssetDataContract } from '../src'; +import { ERC1155ProxyWrapper } from '../src/erc1155_proxy_wrapper'; +import { ERC1155ProxyContract, IAssetDataContract } from '../src/wrappers'; + +import { artifacts } from './artifacts'; chaiSetup.configure(); const expect = chai.expect; diff --git a/contracts/asset-proxy/test/erc20bridge_proxy.ts b/contracts/asset-proxy/test/erc20bridge_proxy.ts index ef25b78a50..5df7181165 100644 --- a/contracts/asset-proxy/test/erc20bridge_proxy.ts +++ b/contracts/asset-proxy/test/erc20bridge_proxy.ts @@ -14,12 +14,9 @@ import { AbiEncoder, AuthorizableRevertErrors, BigNumber, StringRevertError } fr import { DecodedLogs } from 'ethereum-types'; import * as _ from 'lodash'; -import { - artifacts, - ERC20BridgeProxyContract, - TestERC20BridgeBridgeWithdrawToEventArgs, - TestERC20BridgeContract, -} from '../src'; +import { artifacts } from './artifacts'; + +import { ERC20BridgeProxyContract, TestERC20BridgeContract } from './wrappers'; blockchainTests.resets('ERC20BridgeProxy unit tests', env => { const PROXY_ID = AssetProxyId.ERC20Bridge; @@ -160,7 +157,7 @@ blockchainTests.resets('ERC20BridgeProxy unit tests', env => { const opts = createTransferFromOpts(); const logs = await transferFromAsync(opts); expect(logs.length).to.eq(1); - const args = logs[0].args as TestERC20BridgeBridgeWithdrawToEventArgs; + const args = logs[0].args; expect(args.tokenAddress).to.eq(opts.assetData.tokenAddress); expect(args.from).to.eq(opts.from); expect(args.to).to.eq(opts.to); diff --git a/contracts/asset-proxy/test/eth2dai_bridge.ts b/contracts/asset-proxy/test/eth2dai_bridge.ts index 3d30584d4f..445765e1cb 100644 --- a/contracts/asset-proxy/test/eth2dai_bridge.ts +++ b/contracts/asset-proxy/test/eth2dai_bridge.ts @@ -14,14 +14,15 @@ import { BigNumber, RawRevertError } from '@0x/utils'; import { DecodedLogs } from 'ethereum-types'; import * as _ from 'lodash'; +import { artifacts } from './artifacts'; + import { - artifacts, TestEth2DaiBridgeContract, TestEth2DaiBridgeEvents, TestEth2DaiBridgeSellAllAmountEventArgs, TestEth2DaiBridgeTokenApproveEventArgs, TestEth2DaiBridgeTokenTransferEventArgs, -} from '../src'; +} from './wrappers'; blockchainTests.resets('Eth2DaiBridge unit tests', env => { let testContract: TestEth2DaiBridgeContract; diff --git a/contracts/asset-proxy/test/proxies.ts b/contracts/asset-proxy/test/proxies.ts index 9de496ec3e..6e908701a1 100644 --- a/contracts/asset-proxy/test/proxies.ts +++ b/contracts/asset-proxy/test/proxies.ts @@ -29,18 +29,13 @@ import * as chai from 'chai'; import { LogWithDecodedArgs } from 'ethereum-types'; import * as _ from 'lodash'; -import { - artifacts, - ERC1155ProxyContract, - ERC1155ProxyWrapper, - ERC20ProxyContract, - ERC20Wrapper, - ERC721ProxyContract, - ERC721Wrapper, - IAssetDataContract, - IAssetProxyContract, - MultiAssetProxyContract, -} from '../src'; +import { ERC1155ProxyWrapper } from '../src/erc1155_proxy_wrapper'; +import { ERC20Wrapper } from '../src/erc20_wrapper'; +import { ERC721Wrapper } from '../src/erc721_wrapper'; +import { ERC1155ProxyContract, ERC20ProxyContract, ERC721ProxyContract } from '../src/wrappers'; + +import { artifacts } from './artifacts'; +import { IAssetDataContract, IAssetProxyContract, MultiAssetProxyContract } from './wrappers'; chaiSetup.configure(); const expect = chai.expect; diff --git a/contracts/asset-proxy/test/static_call_proxy.ts b/contracts/asset-proxy/test/static_call_proxy.ts index f366b61c02..283b5fc26c 100644 --- a/contracts/asset-proxy/test/static_call_proxy.ts +++ b/contracts/asset-proxy/test/static_call_proxy.ts @@ -14,7 +14,9 @@ import { AbiEncoder, BigNumber } from '@0x/utils'; import * as chai from 'chai'; import * as ethUtil from 'ethereumjs-util'; -import { artifacts, IAssetProxyContract, StaticCallProxyContract, TestStaticCallTargetContract } from '../src'; +import { artifacts } from './artifacts'; + +import { IAssetProxyContract, StaticCallProxyContract, TestStaticCallTargetContract } from './wrappers'; chaiSetup.configure(); const expect = chai.expect; diff --git a/contracts/asset-proxy/test/uniswap_bridge.ts b/contracts/asset-proxy/test/uniswap_bridge.ts index f8932b3e92..4fad004808 100644 --- a/contracts/asset-proxy/test/uniswap_bridge.ts +++ b/contracts/asset-proxy/test/uniswap_bridge.ts @@ -15,8 +15,9 @@ import { BigNumber } from '@0x/utils'; import { DecodedLogs } from 'ethereum-types'; import * as _ from 'lodash'; +import { artifacts } from './artifacts'; + import { - artifacts, TestUniswapBridgeContract, TestUniswapBridgeEthToTokenTransferInputEventArgs as EthToTokenTransferInputArgs, TestUniswapBridgeEvents as ContractEvents, @@ -26,7 +27,7 @@ import { TestUniswapBridgeTokenTransferEventArgs as TokenTransferArgs, TestUniswapBridgeWethDepositEventArgs as WethDepositArgs, TestUniswapBridgeWethWithdrawEventArgs as WethWithdrawArgs, -} from '../src'; +} from './wrappers'; blockchainTests.resets('UniswapBridge unit tests', env => { let testContract: TestUniswapBridgeContract; diff --git a/contracts/asset-proxy/test/utils/index.ts b/contracts/asset-proxy/test/utils/index.ts deleted file mode 100644 index 897806e703..0000000000 --- a/contracts/asset-proxy/test/utils/index.ts +++ /dev/null @@ -1,3 +0,0 @@ -export * from './erc20_wrapper'; -export * from './erc721_wrapper'; -export * from './erc1155_proxy_wrapper'; diff --git a/contracts/asset-proxy/test/wrappers.ts b/contracts/asset-proxy/test/wrappers.ts new file mode 100644 index 0000000000..af9dcfc25d --- /dev/null +++ b/contracts/asset-proxy/test/wrappers.ts @@ -0,0 +1,28 @@ +/* + * ----------------------------------------------------------------------------- + * Warning: This file is auto-generated by contracts-gen. Don't edit manually. + * ----------------------------------------------------------------------------- + */ +export * from '../test/generated-wrappers/erc1155_proxy'; +export * from '../test/generated-wrappers/erc20_bridge_proxy'; +export * from '../test/generated-wrappers/erc20_proxy'; +export * from '../test/generated-wrappers/erc721_proxy'; +export * from '../test/generated-wrappers/eth2_dai_bridge'; +export * from '../test/generated-wrappers/i_asset_data'; +export * from '../test/generated-wrappers/i_asset_proxy'; +export * from '../test/generated-wrappers/i_asset_proxy_dispatcher'; +export * from '../test/generated-wrappers/i_authorizable'; +export * from '../test/generated-wrappers/i_erc20_bridge'; +export * from '../test/generated-wrappers/i_eth2_dai'; +export * from '../test/generated-wrappers/i_uniswap_exchange'; +export * from '../test/generated-wrappers/i_uniswap_exchange_factory'; +export * from '../test/generated-wrappers/mixin_asset_proxy_dispatcher'; +export * from '../test/generated-wrappers/mixin_authorizable'; +export * from '../test/generated-wrappers/multi_asset_proxy'; +export * from '../test/generated-wrappers/ownable'; +export * from '../test/generated-wrappers/static_call_proxy'; +export * from '../test/generated-wrappers/test_erc20_bridge'; +export * from '../test/generated-wrappers/test_eth2_dai_bridge'; +export * from '../test/generated-wrappers/test_static_call_target'; +export * from '../test/generated-wrappers/test_uniswap_bridge'; +export * from '../test/generated-wrappers/uniswap_bridge'; diff --git a/contracts/asset-proxy/tsconfig.json b/contracts/asset-proxy/tsconfig.json index 8ca5339b81..f96ede121d 100644 --- a/contracts/asset-proxy/tsconfig.json +++ b/contracts/asset-proxy/tsconfig.json @@ -10,22 +10,33 @@ "generated-artifacts/Eth2DaiBridge.json", "generated-artifacts/IAssetData.json", "generated-artifacts/IAssetProxy.json", - "generated-artifacts/IAssetProxyDispatcher.json", - "generated-artifacts/IAuthorizable.json", - "generated-artifacts/IERC20Bridge.json", - "generated-artifacts/IEth2Dai.json", - "generated-artifacts/IUniswapExchange.json", - "generated-artifacts/IUniswapExchangeFactory.json", - "generated-artifacts/MixinAssetProxyDispatcher.json", - "generated-artifacts/MixinAuthorizable.json", "generated-artifacts/MultiAssetProxy.json", - "generated-artifacts/Ownable.json", "generated-artifacts/StaticCallProxy.json", - "generated-artifacts/TestERC20Bridge.json", - "generated-artifacts/TestEth2DaiBridge.json", "generated-artifacts/TestStaticCallTarget.json", - "generated-artifacts/TestUniswapBridge.json", - "generated-artifacts/UniswapBridge.json" + "generated-artifacts/UniswapBridge.json", + "test/generated-artifacts/ERC1155Proxy.json", + "test/generated-artifacts/ERC20BridgeProxy.json", + "test/generated-artifacts/ERC20Proxy.json", + "test/generated-artifacts/ERC721Proxy.json", + "test/generated-artifacts/Eth2DaiBridge.json", + "test/generated-artifacts/IAssetData.json", + "test/generated-artifacts/IAssetProxy.json", + "test/generated-artifacts/IAssetProxyDispatcher.json", + "test/generated-artifacts/IAuthorizable.json", + "test/generated-artifacts/IERC20Bridge.json", + "test/generated-artifacts/IEth2Dai.json", + "test/generated-artifacts/IUniswapExchange.json", + "test/generated-artifacts/IUniswapExchangeFactory.json", + "test/generated-artifacts/MixinAssetProxyDispatcher.json", + "test/generated-artifacts/MixinAuthorizable.json", + "test/generated-artifacts/MultiAssetProxy.json", + "test/generated-artifacts/Ownable.json", + "test/generated-artifacts/StaticCallProxy.json", + "test/generated-artifacts/TestERC20Bridge.json", + "test/generated-artifacts/TestEth2DaiBridge.json", + "test/generated-artifacts/TestStaticCallTarget.json", + "test/generated-artifacts/TestUniswapBridge.json", + "test/generated-artifacts/UniswapBridge.json" ], "exclude": ["./deploy/solc/solc_bin"] } diff --git a/contracts/coordinator/.npmignore b/contracts/coordinator/.npmignore new file mode 100644 index 0000000000..bdf2b8acbe --- /dev/null +++ b/contracts/coordinator/.npmignore @@ -0,0 +1,10 @@ +# Blacklist all files +.* +* +# Whitelist lib +!lib/**/* +# Whitelist Solidity contracts +!contracts/src/**/* +# Blacklist tests in lib +/lib/test/* +# Package specific ignore diff --git a/contracts/coordinator/CHANGELOG.json b/contracts/coordinator/CHANGELOG.json index b3f739d5e1..af648d5ff6 100644 --- a/contracts/coordinator/CHANGELOG.json +++ b/contracts/coordinator/CHANGELOG.json @@ -1,4 +1,22 @@ [ + { + "version": "2.1.0-beta.2", + "changes": [ + { + "note": "Drastically reduced bundle size by adding .npmignore, only exporting specific artifacts/wrappers/utils", + "pr": 2330 + } + ] + }, + { + "version": "2.1.0-beta.1", + "changes": [ + { + "note": "Dependencies updated" + } + ], + "timestamp": 1573159180 + }, { "version": "2.1.0-beta.0", "changes": [ diff --git a/contracts/coordinator/CHANGELOG.md b/contracts/coordinator/CHANGELOG.md index 9ef81f5645..e92e0e0326 100644 --- a/contracts/coordinator/CHANGELOG.md +++ b/contracts/coordinator/CHANGELOG.md @@ -5,6 +5,10 @@ Edit the package's CHANGELOG.json file only. CHANGELOG +## v2.1.0-beta.1 - _November 7, 2019_ + + * Dependencies updated + ## v2.1.0-beta.0 - _October 3, 2019_ * Add chainId to domain separator (#1742) diff --git a/contracts/coordinator/compiler.json b/contracts/coordinator/compiler.json index 0edd285700..4a8f61a09f 100644 --- a/contracts/coordinator/compiler.json +++ b/contracts/coordinator/compiler.json @@ -1,5 +1,5 @@ { - "artifactsDir": "./generated-artifacts", + "artifactsDir": "./test/generated-artifacts", "contractsDir": "./contracts", "useDockerisedSolc": false, "compilerSettings": { diff --git a/contracts/coordinator/package.json b/contracts/coordinator/package.json index 332a09f7fa..16436de2d5 100644 --- a/contracts/coordinator/package.json +++ b/contracts/coordinator/package.json @@ -1,6 +1,6 @@ { "name": "@0x/contracts-coordinator", - "version": "2.1.0-beta.0", + "version": "2.1.0-beta.1", "engines": { "node": ">=6.12" }, @@ -12,7 +12,7 @@ "scripts": { "build": "yarn pre_build && tsc -b", "build:ci": "yarn build", - "pre_build": "run-s compile contracts:gen generate_contract_wrappers", + "pre_build": "run-s compile contracts:gen generate_contract_wrappers contracts:copy", "test": "yarn run_mocha", "rebuild_and_test": "run-s build test", "test:coverage": "SOLIDITY_COVERAGE=true run-s build run_mocha coverage:report:text coverage:report:lcov", @@ -21,21 +21,23 @@ "run_mocha": "mocha --require source-map-support/register --require make-promises-safe 'lib/test/**/*.js' --timeout 100000 --bail --exit", "compile": "sol-compiler", "watch": "sol-compiler -w", - "clean": "shx rm -rf lib generated-artifacts generated-wrappers", - "generate_contract_wrappers": "abi-gen --debug --abis ${npm_package_config_abis} --output generated-wrappers --backend ethers", - "lint": "tslint --format stylish --project . --exclude ./generated-wrappers/**/* --exclude ./generated-artifacts/**/* --exclude **/lib/**/* && yarn lint-contracts", - "fix": "tslint --fix --format stylish --project . --exclude ./generated-wrappers/**/* --exclude ./generated-artifacts/**/* --exclude **/lib/**/* && yarn lint-contracts", + "clean": "shx rm -rf lib test/generated-artifacts test/generated-wrappers generated-artifacts generated-wrappers", + "generate_contract_wrappers": "abi-gen --debug --abis ${npm_package_config_abis} --output test/generated-wrappers --backend ethers", + "lint": "tslint --format stylish --project . --exclude ./generated-wrappers/**/* --exclude ./test/generated-wrappers/**/* --exclude ./generated-artifacts/**/* --exclude ./test/generated-artifacts/**/* --exclude **/lib/**/* && yarn lint-contracts", + "fix": "tslint --fix --format stylish --project . --exclude ./generated-wrappers/**/* --exclude ./test/generated-wrappers/**/* --exclude ./generated-artifacts/**/* --exclude ./test/generated-artifacts/**/* --exclude **/lib/**/* && yarn lint-contracts", "coverage:report:text": "istanbul report text", "coverage:report:html": "istanbul report html && open coverage/index.html", "profiler:report:html": "istanbul report html && open coverage/index.html", "coverage:report:lcov": "istanbul report lcov", "test:circleci": "yarn test", - "contracts:gen": "contracts-gen", + "contracts:gen": "contracts-gen generate", + "contracts:copy": "contracts-gen copy", "lint-contracts": "solhint -c ../.solhint.json contracts/**/**/**/**/*.sol", "compile:truffle": "truffle compile" }, "config": { - "abis": "./generated-artifacts/@(Coordinator|CoordinatorRegistry|ICoordinatorApprovalVerifier|ICoordinatorCore|ICoordinatorRegistryCore|ICoordinatorSignatureValidator|LibConstants|LibCoordinatorApproval|LibCoordinatorRichErrors|LibEIP712CoordinatorDomain|MixinCoordinatorApprovalVerifier|MixinCoordinatorCore|MixinCoordinatorRegistryCore|MixinSignatureValidator).json", + "publicInterfaceContracts": "Coordinator,CoordinatorRegistry,LibCoordinatorApproval,LibCoordinatorRichErrors,LibEIP712CoordinatorDomain,LibConstants", + "abis": "./test/generated-artifacts/@(Coordinator|CoordinatorRegistry|ICoordinatorApprovalVerifier|ICoordinatorCore|ICoordinatorRegistryCore|ICoordinatorSignatureValidator|LibConstants|LibCoordinatorApproval|LibCoordinatorRichErrors|LibEIP712CoordinatorDomain|MixinCoordinatorApprovalVerifier|MixinCoordinatorCore|MixinCoordinatorRegistryCore|MixinSignatureValidator).json", "abis:comment": "This list is auto-generated by contracts-gen. Don't edit manually." }, "repository": { @@ -48,17 +50,18 @@ }, "homepage": "https://github.com/0xProject/0x-monorepo/contracts/extensions/README.md", "devDependencies": { - "@0x/abi-gen": "^4.3.0-beta.0", - "@0x/contracts-asset-proxy": "^2.3.0-beta.0", - "@0x/contracts-dev-utils": "^0.1.0-beta.0", - "@0x/contracts-erc20": "^2.3.0-beta.0", - "@0x/contracts-exchange": "^2.2.0-beta.0", - "@0x/order-utils": "^8.5.0-beta.0", - "@0x/contracts-gen": "^1.1.0-beta.0", - "@0x/contracts-test-utils": "^3.2.0-beta.0", - "@0x/dev-utils": "^2.4.0-beta.0", - "@0x/sol-compiler": "^3.2.0-beta.0", - "@0x/tslint-config": "^3.0.1", + "@0x/abi-gen": "^4.4.0-beta.1", + "@0x/contracts-asset-proxy": "^2.3.0-beta.1", + "@0x/contracts-dev-utils": "^0.1.0-beta.1", + "@0x/contracts-erc20": "^2.3.0-beta.1", + "@0x/contracts-exchange": "^2.2.0-beta.1", + "@0x/contracts-gen": "^1.1.0-beta.1", + "@0x/contracts-test-utils": "^3.2.0-beta.1", + "@0x/dev-utils": "^2.4.0-beta.1", + "@0x/order-utils": "^8.5.0-beta.1", + "@0x/sol-compiler": "^3.2.0-beta.1", + "@0x/tslint-config": "^3.1.0-beta.1", + "@0x/web3-wrapper": "^6.1.0-beta.1", "@types/lodash": "4.14.104", "@types/mocha": "^5.2.7", "@types/node": "*", @@ -77,13 +80,11 @@ "typescript": "3.0.1" }, "dependencies": { - "@0x/base-contract": "^5.5.0-beta.0", - "@0x/types": "^2.5.0-beta.0", - "@0x/typescript-typings": "^4.4.0-beta.0", - "@0x/utils": "^4.6.0-beta.0", - "@0x/web3-wrapper": "^6.1.0-beta.0", - "ethereum-types": "^2.2.0-beta.0", - "ethereumjs-util": "^5.1.1" + "@0x/base-contract": "^5.5.0-beta.1", + "@0x/types": "^2.5.0-beta.1", + "@0x/typescript-typings": "^4.4.0-beta.1", + "@0x/utils": "^4.6.0-beta.1", + "ethereum-types": "^2.2.0-beta.1" }, "publishConfig": { "access": "public" diff --git a/contracts/coordinator/test/utils/approval_factory.ts b/contracts/coordinator/src/approval_factory.ts similarity index 91% rename from contracts/coordinator/test/utils/approval_factory.ts rename to contracts/coordinator/src/approval_factory.ts index 2ee069de03..97c2ae999a 100644 --- a/contracts/coordinator/test/utils/approval_factory.ts +++ b/contracts/coordinator/src/approval_factory.ts @@ -1,7 +1,8 @@ import { hexConcat, signingUtils } from '@0x/contracts-test-utils'; import { SignatureType, SignedZeroExTransaction } from '@0x/types'; -import { hashUtils, SignedCoordinatorApproval } from './index'; +import { hashUtils } from './hash_utils'; +import { SignedCoordinatorApproval } from './types'; export class ApprovalFactory { private readonly _privateKey: Buffer; diff --git a/contracts/coordinator/src/artifacts.ts b/contracts/coordinator/src/artifacts.ts index 9722198ad8..61e478dc39 100644 --- a/contracts/coordinator/src/artifacts.ts +++ b/contracts/coordinator/src/artifacts.ts @@ -7,31 +7,15 @@ import { ContractArtifact } from 'ethereum-types'; import * as Coordinator from '../generated-artifacts/Coordinator.json'; import * as CoordinatorRegistry from '../generated-artifacts/CoordinatorRegistry.json'; -import * as ICoordinatorApprovalVerifier from '../generated-artifacts/ICoordinatorApprovalVerifier.json'; -import * as ICoordinatorCore from '../generated-artifacts/ICoordinatorCore.json'; -import * as ICoordinatorRegistryCore from '../generated-artifacts/ICoordinatorRegistryCore.json'; -import * as ICoordinatorSignatureValidator from '../generated-artifacts/ICoordinatorSignatureValidator.json'; import * as LibConstants from '../generated-artifacts/LibConstants.json'; import * as LibCoordinatorApproval from '../generated-artifacts/LibCoordinatorApproval.json'; import * as LibCoordinatorRichErrors from '../generated-artifacts/LibCoordinatorRichErrors.json'; import * as LibEIP712CoordinatorDomain from '../generated-artifacts/LibEIP712CoordinatorDomain.json'; -import * as MixinCoordinatorApprovalVerifier from '../generated-artifacts/MixinCoordinatorApprovalVerifier.json'; -import * as MixinCoordinatorCore from '../generated-artifacts/MixinCoordinatorCore.json'; -import * as MixinCoordinatorRegistryCore from '../generated-artifacts/MixinCoordinatorRegistryCore.json'; -import * as MixinSignatureValidator from '../generated-artifacts/MixinSignatureValidator.json'; export const artifacts = { Coordinator: Coordinator as ContractArtifact, - MixinCoordinatorApprovalVerifier: MixinCoordinatorApprovalVerifier as ContractArtifact, - MixinCoordinatorCore: MixinCoordinatorCore as ContractArtifact, - MixinSignatureValidator: MixinSignatureValidator as ContractArtifact, - ICoordinatorApprovalVerifier: ICoordinatorApprovalVerifier as ContractArtifact, - ICoordinatorCore: ICoordinatorCore as ContractArtifact, - ICoordinatorSignatureValidator: ICoordinatorSignatureValidator as ContractArtifact, - LibConstants: LibConstants as ContractArtifact, + CoordinatorRegistry: CoordinatorRegistry as ContractArtifact, LibCoordinatorApproval: LibCoordinatorApproval as ContractArtifact, LibCoordinatorRichErrors: LibCoordinatorRichErrors as ContractArtifact, LibEIP712CoordinatorDomain: LibEIP712CoordinatorDomain as ContractArtifact, - CoordinatorRegistry: CoordinatorRegistry as ContractArtifact, - MixinCoordinatorRegistryCore: MixinCoordinatorRegistryCore as ContractArtifact, - ICoordinatorRegistryCore: ICoordinatorRegistryCore as ContractArtifact, + LibConstants: LibConstants as ContractArtifact, }; diff --git a/contracts/coordinator/test/utils/hash_utils.ts b/contracts/coordinator/src/hash_utils.ts similarity index 100% rename from contracts/coordinator/test/utils/hash_utils.ts rename to contracts/coordinator/src/hash_utils.ts diff --git a/contracts/coordinator/src/index.ts b/contracts/coordinator/src/index.ts index ba813e7caf..fc96ee9ddc 100644 --- a/contracts/coordinator/src/index.ts +++ b/contracts/coordinator/src/index.ts @@ -1,3 +1,4 @@ export * from './artifacts'; export * from './wrappers'; -export * from '../test/utils'; +export { ApprovalFactory } from './approval_factory'; +export { SignedCoordinatorApproval } from './types'; diff --git a/contracts/coordinator/test/utils/types.ts b/contracts/coordinator/src/types.ts similarity index 100% rename from contracts/coordinator/test/utils/types.ts rename to contracts/coordinator/src/types.ts diff --git a/contracts/coordinator/src/wrappers.ts b/contracts/coordinator/src/wrappers.ts index 1307b59821..53905d57a5 100644 --- a/contracts/coordinator/src/wrappers.ts +++ b/contracts/coordinator/src/wrappers.ts @@ -5,15 +5,7 @@ */ export * from '../generated-wrappers/coordinator'; export * from '../generated-wrappers/coordinator_registry'; -export * from '../generated-wrappers/i_coordinator_approval_verifier'; -export * from '../generated-wrappers/i_coordinator_core'; -export * from '../generated-wrappers/i_coordinator_registry_core'; -export * from '../generated-wrappers/i_coordinator_signature_validator'; export * from '../generated-wrappers/lib_constants'; export * from '../generated-wrappers/lib_coordinator_approval'; export * from '../generated-wrappers/lib_coordinator_rich_errors'; export * from '../generated-wrappers/lib_e_i_p712_coordinator_domain'; -export * from '../generated-wrappers/mixin_coordinator_approval_verifier'; -export * from '../generated-wrappers/mixin_coordinator_core'; -export * from '../generated-wrappers/mixin_coordinator_registry_core'; -export * from '../generated-wrappers/mixin_signature_validator'; diff --git a/contracts/coordinator/test/artifacts.ts b/contracts/coordinator/test/artifacts.ts new file mode 100644 index 0000000000..d432f86b29 --- /dev/null +++ b/contracts/coordinator/test/artifacts.ts @@ -0,0 +1,37 @@ +/* + * ----------------------------------------------------------------------------- + * Warning: This file is auto-generated by contracts-gen. Don't edit manually. + * ----------------------------------------------------------------------------- + */ +import { ContractArtifact } from 'ethereum-types'; + +import * as Coordinator from '../test/generated-artifacts/Coordinator.json'; +import * as CoordinatorRegistry from '../test/generated-artifacts/CoordinatorRegistry.json'; +import * as ICoordinatorApprovalVerifier from '../test/generated-artifacts/ICoordinatorApprovalVerifier.json'; +import * as ICoordinatorCore from '../test/generated-artifacts/ICoordinatorCore.json'; +import * as ICoordinatorRegistryCore from '../test/generated-artifacts/ICoordinatorRegistryCore.json'; +import * as ICoordinatorSignatureValidator from '../test/generated-artifacts/ICoordinatorSignatureValidator.json'; +import * as LibConstants from '../test/generated-artifacts/LibConstants.json'; +import * as LibCoordinatorApproval from '../test/generated-artifacts/LibCoordinatorApproval.json'; +import * as LibCoordinatorRichErrors from '../test/generated-artifacts/LibCoordinatorRichErrors.json'; +import * as LibEIP712CoordinatorDomain from '../test/generated-artifacts/LibEIP712CoordinatorDomain.json'; +import * as MixinCoordinatorApprovalVerifier from '../test/generated-artifacts/MixinCoordinatorApprovalVerifier.json'; +import * as MixinCoordinatorCore from '../test/generated-artifacts/MixinCoordinatorCore.json'; +import * as MixinCoordinatorRegistryCore from '../test/generated-artifacts/MixinCoordinatorRegistryCore.json'; +import * as MixinSignatureValidator from '../test/generated-artifacts/MixinSignatureValidator.json'; +export const artifacts = { + Coordinator: Coordinator as ContractArtifact, + MixinCoordinatorApprovalVerifier: MixinCoordinatorApprovalVerifier as ContractArtifact, + MixinCoordinatorCore: MixinCoordinatorCore as ContractArtifact, + MixinSignatureValidator: MixinSignatureValidator as ContractArtifact, + ICoordinatorApprovalVerifier: ICoordinatorApprovalVerifier as ContractArtifact, + ICoordinatorCore: ICoordinatorCore as ContractArtifact, + ICoordinatorSignatureValidator: ICoordinatorSignatureValidator as ContractArtifact, + LibConstants: LibConstants as ContractArtifact, + LibCoordinatorApproval: LibCoordinatorApproval as ContractArtifact, + LibCoordinatorRichErrors: LibCoordinatorRichErrors as ContractArtifact, + LibEIP712CoordinatorDomain: LibEIP712CoordinatorDomain as ContractArtifact, + CoordinatorRegistry: CoordinatorRegistry as ContractArtifact, + MixinCoordinatorRegistryCore: MixinCoordinatorRegistryCore as ContractArtifact, + ICoordinatorRegistryCore: ICoordinatorRegistryCore as ContractArtifact, +}; diff --git a/contracts/coordinator/test/coordinator_registry.ts b/contracts/coordinator/test/coordinator_registry.ts index 8a2c8906f0..8a1ede6009 100644 --- a/contracts/coordinator/test/coordinator_registry.ts +++ b/contracts/coordinator/test/coordinator_registry.ts @@ -1,6 +1,8 @@ import { blockchainTests, expect, verifyEvents } from '@0x/contracts-test-utils'; -import { artifacts, CoordinatorRegistryContract, CoordinatorRegistryCoordinatorEndpointSetEventArgs } from '../src'; +import { artifacts } from './artifacts'; + +import { CoordinatorRegistryContract, CoordinatorRegistryCoordinatorEndpointSetEventArgs } from './wrappers'; // tslint:disable:no-unnecessary-type-assertion blockchainTests.resets('Coordinator Registry tests', env => { diff --git a/contracts/coordinator/test/libs.ts b/contracts/coordinator/test/libs.ts index 1ae2630d13..3b19d521b7 100644 --- a/contracts/coordinator/test/libs.ts +++ b/contracts/coordinator/test/libs.ts @@ -2,7 +2,11 @@ import { blockchainTests, constants, expect, randomAddress } from '@0x/contracts import { transactionHashUtils } from '@0x/order-utils'; import { BigNumber } from '@0x/utils'; -import { artifacts, CoordinatorContract, hashUtils } from '../src'; +import { hashUtils } from '../src/hash_utils'; + +import { artifacts } from './artifacts'; + +import { CoordinatorContract } from './wrappers'; blockchainTests.resets('Libs tests', env => { let coordinatorContract: CoordinatorContract; diff --git a/contracts/coordinator/test/mixins.ts b/contracts/coordinator/test/mixins.ts index de86012ea2..78fc05c27a 100644 --- a/contracts/coordinator/test/mixins.ts +++ b/contracts/coordinator/test/mixins.ts @@ -1,7 +1,8 @@ -import { constants as exchangeConstants, exchangeDataEncoder, ExchangeFunctionName } from '@0x/contracts-exchange'; +import { exchangeDataEncoder } from '@0x/contracts-exchange'; import { blockchainTests, constants, + ExchangeFunctionName, expect, hexConcat, hexSlice, @@ -12,7 +13,11 @@ import { CoordinatorRevertErrors, transactionHashUtils } from '@0x/order-utils'; import { SignatureType, SignedOrder } from '@0x/types'; import { BigNumber, LibBytesRevertErrors } from '@0x/utils'; -import { ApprovalFactory, artifacts, CoordinatorContract } from '../src'; +import { ApprovalFactory } from '../src/approval_factory'; + +import { artifacts } from './artifacts'; + +import { CoordinatorContract } from './wrappers'; blockchainTests.resets('Mixins tests', env => { let chainId: number; @@ -144,7 +149,7 @@ blockchainTests.resets('Mixins tests', env => { }); describe('decodeOrdersFromFillData', () => { - for (const fnName of exchangeConstants.SINGLE_FILL_FN_NAMES) { + for (const fnName of constants.SINGLE_FILL_FN_NAMES) { it(`should correctly decode the orders for ${fnName} data`, async () => { const orders = [defaultOrder]; const data = exchangeDataEncoder.encodeOrdersToExchangeData(fnName, orders); @@ -158,7 +163,7 @@ blockchainTests.resets('Mixins tests', env => { expect(orders).to.deep.eq(decodedSignedOrders); }); } - for (const fnName of exchangeConstants.BATCH_FILL_FN_NAMES) { + for (const fnName of constants.BATCH_FILL_FN_NAMES) { it(`should correctly decode the orders for ${fnName} data`, async () => { const orders = [defaultOrder, defaultOrder]; const data = exchangeDataEncoder.encodeOrdersToExchangeData(fnName, orders); @@ -172,7 +177,7 @@ blockchainTests.resets('Mixins tests', env => { expect(orders).to.deep.eq(decodedSignedOrders); }); } - for (const fnName of exchangeConstants.MARKET_FILL_FN_NAMES) { + for (const fnName of constants.MARKET_FILL_FN_NAMES) { it(`should correctly decode the orders for ${fnName} data`, async () => { const orders = [defaultOrder, defaultOrder]; const data = exchangeDataEncoder.encodeOrdersToExchangeData(fnName, orders); @@ -186,7 +191,7 @@ blockchainTests.resets('Mixins tests', env => { expect(orders).to.deep.eq(decodedSignedOrders); }); } - for (const fnName of exchangeConstants.MATCH_ORDER_FN_NAMES) { + for (const fnName of constants.MATCH_ORDER_FN_NAMES) { it(`should correctly decode the orders for ${fnName} data`, async () => { const orders = [defaultOrder, defaultOrder]; const data = exchangeDataEncoder.encodeOrdersToExchangeData(fnName, orders); @@ -200,7 +205,7 @@ blockchainTests.resets('Mixins tests', env => { expect(orders).to.deep.eq(decodedSignedOrders); }); } - for (const fnName of exchangeConstants.CANCEL_ORDER_FN_NAMES) { + for (const fnName of constants.CANCEL_ORDER_FN_NAMES) { it(`should correctly decode the orders for ${fnName} data`, async () => { const orders = [defaultOrder, defaultOrder]; const data = exchangeDataEncoder.encodeOrdersToExchangeData(fnName, orders); @@ -227,7 +232,7 @@ blockchainTests.resets('Mixins tests', env => { }); describe('Single order approvals', () => { - for (const fnName of exchangeConstants.SINGLE_FILL_FN_NAMES) { + for (const fnName of constants.SINGLE_FILL_FN_NAMES) { it(`Should be successful: function=${fnName}, caller=tx_signer, senderAddress=[verifier], approval_sig=[approver1]`, async () => { const orders = [defaultOrder]; const data = exchangeDataEncoder.encodeOrdersToExchangeData(fnName, orders); @@ -323,9 +328,9 @@ blockchainTests.resets('Mixins tests', env => { }); describe('Batch order approvals', () => { for (const fnName of [ - ...exchangeConstants.BATCH_FILL_FN_NAMES, - ...exchangeConstants.MARKET_FILL_FN_NAMES, - ...exchangeConstants.MATCH_ORDER_FN_NAMES, + ...constants.BATCH_FILL_FN_NAMES, + ...constants.MARKET_FILL_FN_NAMES, + ...constants.MATCH_ORDER_FN_NAMES, ]) { it(`Should be successful: function=${fnName} caller=tx_signer, senderAddress=[verifier,verifier], feeRecipient=[approver1,approver1], approval_sig=[approver1]`, async () => { const orders = [defaultOrder, defaultOrder]; diff --git a/contracts/coordinator/test/utils/index.ts b/contracts/coordinator/test/utils/index.ts deleted file mode 100644 index bd5bd79dae..0000000000 --- a/contracts/coordinator/test/utils/index.ts +++ /dev/null @@ -1,3 +0,0 @@ -export { hashUtils } from './hash_utils'; -export { ApprovalFactory } from './approval_factory'; -export * from './types'; diff --git a/contracts/coordinator/test/wrappers.ts b/contracts/coordinator/test/wrappers.ts new file mode 100644 index 0000000000..cfc1187fb8 --- /dev/null +++ b/contracts/coordinator/test/wrappers.ts @@ -0,0 +1,19 @@ +/* + * ----------------------------------------------------------------------------- + * Warning: This file is auto-generated by contracts-gen. Don't edit manually. + * ----------------------------------------------------------------------------- + */ +export * from '../test/generated-wrappers/coordinator'; +export * from '../test/generated-wrappers/coordinator_registry'; +export * from '../test/generated-wrappers/i_coordinator_approval_verifier'; +export * from '../test/generated-wrappers/i_coordinator_core'; +export * from '../test/generated-wrappers/i_coordinator_registry_core'; +export * from '../test/generated-wrappers/i_coordinator_signature_validator'; +export * from '../test/generated-wrappers/lib_constants'; +export * from '../test/generated-wrappers/lib_coordinator_approval'; +export * from '../test/generated-wrappers/lib_coordinator_rich_errors'; +export * from '../test/generated-wrappers/lib_e_i_p712_coordinator_domain'; +export * from '../test/generated-wrappers/mixin_coordinator_approval_verifier'; +export * from '../test/generated-wrappers/mixin_coordinator_core'; +export * from '../test/generated-wrappers/mixin_coordinator_registry_core'; +export * from '../test/generated-wrappers/mixin_signature_validator'; diff --git a/contracts/coordinator/tsconfig.json b/contracts/coordinator/tsconfig.json index 8db06e4dd6..cd6b5d948f 100644 --- a/contracts/coordinator/tsconfig.json +++ b/contracts/coordinator/tsconfig.json @@ -5,18 +5,24 @@ "files": [ "generated-artifacts/Coordinator.json", "generated-artifacts/CoordinatorRegistry.json", - "generated-artifacts/ICoordinatorApprovalVerifier.json", - "generated-artifacts/ICoordinatorCore.json", - "generated-artifacts/ICoordinatorRegistryCore.json", - "generated-artifacts/ICoordinatorSignatureValidator.json", "generated-artifacts/LibConstants.json", "generated-artifacts/LibCoordinatorApproval.json", "generated-artifacts/LibCoordinatorRichErrors.json", "generated-artifacts/LibEIP712CoordinatorDomain.json", - "generated-artifacts/MixinCoordinatorApprovalVerifier.json", - "generated-artifacts/MixinCoordinatorCore.json", - "generated-artifacts/MixinCoordinatorRegistryCore.json", - "generated-artifacts/MixinSignatureValidator.json" + "test/generated-artifacts/Coordinator.json", + "test/generated-artifacts/CoordinatorRegistry.json", + "test/generated-artifacts/ICoordinatorApprovalVerifier.json", + "test/generated-artifacts/ICoordinatorCore.json", + "test/generated-artifacts/ICoordinatorRegistryCore.json", + "test/generated-artifacts/ICoordinatorSignatureValidator.json", + "test/generated-artifacts/LibConstants.json", + "test/generated-artifacts/LibCoordinatorApproval.json", + "test/generated-artifacts/LibCoordinatorRichErrors.json", + "test/generated-artifacts/LibEIP712CoordinatorDomain.json", + "test/generated-artifacts/MixinCoordinatorApprovalVerifier.json", + "test/generated-artifacts/MixinCoordinatorCore.json", + "test/generated-artifacts/MixinCoordinatorRegistryCore.json", + "test/generated-artifacts/MixinSignatureValidator.json" ], "exclude": ["./deploy/solc/solc_bin"] } diff --git a/contracts/dev-utils/.npmignore b/contracts/dev-utils/.npmignore new file mode 100644 index 0000000000..bdf2b8acbe --- /dev/null +++ b/contracts/dev-utils/.npmignore @@ -0,0 +1,10 @@ +# Blacklist all files +.* +* +# Whitelist lib +!lib/**/* +# Whitelist Solidity contracts +!contracts/src/**/* +# Blacklist tests in lib +/lib/test/* +# Package specific ignore diff --git a/contracts/dev-utils/CHANGELOG.json b/contracts/dev-utils/CHANGELOG.json index ede1ff78b4..28422f6e3f 100644 --- a/contracts/dev-utils/CHANGELOG.json +++ b/contracts/dev-utils/CHANGELOG.json @@ -1,4 +1,13 @@ [ + { + "version": "0.1.0-beta.2", + "changes": [ + { + "note": "Drastically reduced bundle size by adding .npmignore, only exporting specific artifacts/wrappers/utils", + "pr": 2330 + } + ] + }, { "version": "0.1.0-beta.1", "changes": [ @@ -10,7 +19,8 @@ "note": "Add `revertIfInvalidAssetData` in LibAssetData", "pr": 2034 } - ] + ], + "timestamp": 1573159180 }, { "version": "0.1.0-beta.0", diff --git a/contracts/dev-utils/CHANGELOG.md b/contracts/dev-utils/CHANGELOG.md index c2e84ae8ca..0e170f613a 100644 --- a/contracts/dev-utils/CHANGELOG.md +++ b/contracts/dev-utils/CHANGELOG.md @@ -5,6 +5,11 @@ Edit the package's CHANGELOG.json file only. CHANGELOG +## v0.1.0-beta.1 - _November 7, 2019_ + + * Add `encodeStaticCallAssetData` and `decodeStaticCallAssetData` in LibAssetData (#2034) + * Add `revertIfInvalidAssetData` in LibAssetData (#2034) + ## v0.1.0-beta.0 - _October 3, 2019_ * Use built in selectors instead of hard coded constants (#2055) diff --git a/contracts/dev-utils/compiler.json b/contracts/dev-utils/compiler.json index 10160aa539..220e81a33a 100644 --- a/contracts/dev-utils/compiler.json +++ b/contracts/dev-utils/compiler.json @@ -1,5 +1,5 @@ { - "artifactsDir": "./generated-artifacts", + "artifactsDir": "./test/generated-artifacts", "contractsDir": "./contracts", "useDockerisedSolc": false, "isOfflineMode": false, diff --git a/contracts/dev-utils/package.json b/contracts/dev-utils/package.json index 659f18ce0b..da8e082cf3 100644 --- a/contracts/dev-utils/package.json +++ b/contracts/dev-utils/package.json @@ -1,6 +1,6 @@ { "name": "@0x/contracts-dev-utils", - "version": "0.1.0-beta.0", + "version": "0.1.0-beta.1", "engines": { "node": ">=6.12" }, @@ -10,20 +10,22 @@ "build": "yarn pre_build && tsc -b", "test": "echo !!! Run tests in @0x/contracts-tests instead !!!", "build:ci": "yarn build", - "pre_build": "run-s compile quantify_bytecode contracts:gen generate_contract_wrappers", + "pre_build": "run-s compile quantify_bytecode contracts:gen generate_contract_wrappers contracts:copy", "compile": "sol-compiler", "watch": "sol-compiler -w", - "clean": "shx rm -rf lib generated-artifacts generated-wrappers", - "generate_contract_wrappers": "abi-gen --debug --abis ${npm_package_config_abis} --output generated-wrappers --backend ethers", - "lint": "tslint --format stylish --project . --exclude ./generated-wrappers/**/* --exclude ./generated-artifacts/**/* --exclude **/lib/**/* && yarn lint-contracts", - "fix": "tslint --fix --format stylish --project . --exclude ./generated-wrappers/**/* --exclude ./generated-artifacts/**/* --exclude **/lib/**/* && yarn lint-contracts", - "contracts:gen": "contracts-gen", + "clean": "shx rm -rf lib test/generated-artifacts test/generated-wrappers generated-artifacts generated-wrappers", + "generate_contract_wrappers": "abi-gen --debug --abis ${npm_package_config_abis} --output test/generated-wrappers --backend ethers", + "lint": "tslint --format stylish --project . --exclude ./generated-wrappers/**/* --exclude ./test/generated-wrappers/**/* --exclude ./generated-artifacts/**/* --exclude ./test/generated-artifacts/**/* --exclude **/lib/**/* && yarn lint-contracts", + "fix": "tslint --fix --format stylish --project . --exclude ./generated-wrappers/**/* --exclude ./test/generated-wrappers/**/* --exclude ./generated-artifacts/**/* --exclude ./test/generated-artifacts/**/* --exclude **/lib/**/* && yarn lint-contracts", + "contracts:gen": "contracts-gen generate", + "contracts:copy": "contracts-gen copy", "lint-contracts": "solhint -c ../.solhint.json contracts/**/**/**/**/*.sol", - "quantify_bytecode": "echo EVM bytecode object lengths:;for i in ./generated-artifacts/*.json; do node -e \"console.log('$i\t' + (require('$i').compilerOutput.evm.bytecode.object.length - 2) / 2)\"; done", + "quantify_bytecode": "echo EVM bytecode object lengths:;for i in ./test/generated-artifacts/*.json; do node -e \"console.log('$i\t' + (require('$i').compilerOutput.evm.bytecode.object.length - 2) / 2)\"; done", "compile:truffle": "truffle compile" }, "config": { - "abis": "./generated-artifacts/@(DevUtils|EthBalanceChecker|LibAssetData|LibTransactionDecoder|OrderTransferSimulationUtils|OrderValidationUtils).json", + "publicInterfaceContracts": "DevUtils,LibAssetData,LibTransactionDecoder", + "abis": "./test/generated-artifacts/@(DevUtils|EthBalanceChecker|LibAssetData|LibTransactionDecoder|OrderTransferSimulationUtils|OrderValidationUtils).json", "abis:comment": "This list is auto-generated by contracts-gen. Don't edit manually." }, "repository": { @@ -36,28 +38,23 @@ }, "homepage": "https://github.com/0xProject/0x-monorepo/contracts/dev-utils/README.md", "devDependencies": { - "@0x/abi-gen": "^4.3.0-beta.0", - "@0x/contracts-gen": "^1.1.0-beta.0", - "@0x/sol-compiler": "^3.2.0-beta.0", - "@0x/tslint-config": "^3.0.1", + "@0x/abi-gen": "^4.4.0-beta.1", + "@0x/assert": "^2.2.0-beta.1", + "@0x/contracts-gen": "^1.1.0-beta.1", + "@0x/sol-compiler": "^3.2.0-beta.1", + "@0x/tslint-config": "^3.1.0-beta.1", "@types/node": "*", "npm-run-all": "^4.1.2", "shx": "^0.2.2", "solhint": "^1.4.1", "truffle": "^5.0.32", "tslint": "5.11.0", - "typescript": "3.0.1" + "typescript": "3.0.1", + "ethers": "~4.0.4" }, "dependencies": { - "@0x/assert": "^2.2.0-beta.0", - "@0x/base-contract": "^5.5.0-beta.0", - "@0x/contract-addresses": "^3.3.0-beta.0", - "@0x/json-schemas": "^4.1.0-beta.0", - "@0x/types": "^2.5.0-beta.0", - "@0x/utils": "^4.6.0-beta.0", - "@0x/web3-wrapper": "^6.1.0-beta.0", - "ethereum-types": "^2.2.0-beta.0", - "ethers": "~4.0.4" + "@0x/base-contract": "^5.5.0-beta.1", + "ethereum-types": "^2.2.0-beta.1" }, "publishConfig": { "access": "public" diff --git a/contracts/dev-utils/src/artifacts.ts b/contracts/dev-utils/src/artifacts.ts index 6d4be86321..3c2f022c66 100644 --- a/contracts/dev-utils/src/artifacts.ts +++ b/contracts/dev-utils/src/artifacts.ts @@ -6,16 +6,10 @@ import { ContractArtifact } from 'ethereum-types'; import * as DevUtils from '../generated-artifacts/DevUtils.json'; -import * as EthBalanceChecker from '../generated-artifacts/EthBalanceChecker.json'; import * as LibAssetData from '../generated-artifacts/LibAssetData.json'; import * as LibTransactionDecoder from '../generated-artifacts/LibTransactionDecoder.json'; -import * as OrderTransferSimulationUtils from '../generated-artifacts/OrderTransferSimulationUtils.json'; -import * as OrderValidationUtils from '../generated-artifacts/OrderValidationUtils.json'; export const artifacts = { DevUtils: DevUtils as ContractArtifact, - EthBalanceChecker: EthBalanceChecker as ContractArtifact, LibAssetData: LibAssetData as ContractArtifact, LibTransactionDecoder: LibTransactionDecoder as ContractArtifact, - OrderTransferSimulationUtils: OrderTransferSimulationUtils as ContractArtifact, - OrderValidationUtils: OrderValidationUtils as ContractArtifact, }; diff --git a/contracts/dev-utils/src/wrappers.ts b/contracts/dev-utils/src/wrappers.ts index a457a7998e..e07c65436d 100644 --- a/contracts/dev-utils/src/wrappers.ts +++ b/contracts/dev-utils/src/wrappers.ts @@ -4,8 +4,5 @@ * ----------------------------------------------------------------------------- */ export * from '../generated-wrappers/dev_utils'; -export * from '../generated-wrappers/eth_balance_checker'; export * from '../generated-wrappers/lib_asset_data'; export * from '../generated-wrappers/lib_transaction_decoder'; -export * from '../generated-wrappers/order_transfer_simulation_utils'; -export * from '../generated-wrappers/order_validation_utils'; diff --git a/contracts/dev-utils/test/artifacts.ts b/contracts/dev-utils/test/artifacts.ts new file mode 100644 index 0000000000..767d984040 --- /dev/null +++ b/contracts/dev-utils/test/artifacts.ts @@ -0,0 +1,21 @@ +/* + * ----------------------------------------------------------------------------- + * Warning: This file is auto-generated by contracts-gen. Don't edit manually. + * ----------------------------------------------------------------------------- + */ +import { ContractArtifact } from 'ethereum-types'; + +import * as DevUtils from '../test/generated-artifacts/DevUtils.json'; +import * as EthBalanceChecker from '../test/generated-artifacts/EthBalanceChecker.json'; +import * as LibAssetData from '../test/generated-artifacts/LibAssetData.json'; +import * as LibTransactionDecoder from '../test/generated-artifacts/LibTransactionDecoder.json'; +import * as OrderTransferSimulationUtils from '../test/generated-artifacts/OrderTransferSimulationUtils.json'; +import * as OrderValidationUtils from '../test/generated-artifacts/OrderValidationUtils.json'; +export const artifacts = { + DevUtils: DevUtils as ContractArtifact, + EthBalanceChecker: EthBalanceChecker as ContractArtifact, + LibAssetData: LibAssetData as ContractArtifact, + LibTransactionDecoder: LibTransactionDecoder as ContractArtifact, + OrderTransferSimulationUtils: OrderTransferSimulationUtils as ContractArtifact, + OrderValidationUtils: OrderValidationUtils as ContractArtifact, +}; diff --git a/contracts/dev-utils/test/wrappers.ts b/contracts/dev-utils/test/wrappers.ts new file mode 100644 index 0000000000..cbbea9c7cc --- /dev/null +++ b/contracts/dev-utils/test/wrappers.ts @@ -0,0 +1,11 @@ +/* + * ----------------------------------------------------------------------------- + * Warning: This file is auto-generated by contracts-gen. Don't edit manually. + * ----------------------------------------------------------------------------- + */ +export * from '../test/generated-wrappers/dev_utils'; +export * from '../test/generated-wrappers/eth_balance_checker'; +export * from '../test/generated-wrappers/lib_asset_data'; +export * from '../test/generated-wrappers/lib_transaction_decoder'; +export * from '../test/generated-wrappers/order_transfer_simulation_utils'; +export * from '../test/generated-wrappers/order_validation_utils'; diff --git a/contracts/dev-utils/tsconfig.json b/contracts/dev-utils/tsconfig.json index d160f0c58d..ec5f1f9157 100644 --- a/contracts/dev-utils/tsconfig.json +++ b/contracts/dev-utils/tsconfig.json @@ -4,11 +4,14 @@ "include": ["./src/**/*", "./test/**/*", "./generated-wrappers/**/*"], "files": [ "generated-artifacts/DevUtils.json", - "generated-artifacts/EthBalanceChecker.json", "generated-artifacts/LibAssetData.json", "generated-artifacts/LibTransactionDecoder.json", - "generated-artifacts/OrderTransferSimulationUtils.json", - "generated-artifacts/OrderValidationUtils.json" + "test/generated-artifacts/DevUtils.json", + "test/generated-artifacts/EthBalanceChecker.json", + "test/generated-artifacts/LibAssetData.json", + "test/generated-artifacts/LibTransactionDecoder.json", + "test/generated-artifacts/OrderTransferSimulationUtils.json", + "test/generated-artifacts/OrderValidationUtils.json" ], "exclude": ["./deploy/solc/solc_bin"] } diff --git a/contracts/erc1155/.npmignore b/contracts/erc1155/.npmignore new file mode 100644 index 0000000000..bdf2b8acbe --- /dev/null +++ b/contracts/erc1155/.npmignore @@ -0,0 +1,10 @@ +# Blacklist all files +.* +* +# Whitelist lib +!lib/**/* +# Whitelist Solidity contracts +!contracts/src/**/* +# Blacklist tests in lib +/lib/test/* +# Package specific ignore diff --git a/contracts/erc1155/CHANGELOG.json b/contracts/erc1155/CHANGELOG.json index f42944b3be..4e372b26b8 100644 --- a/contracts/erc1155/CHANGELOG.json +++ b/contracts/erc1155/CHANGELOG.json @@ -1,4 +1,22 @@ [ + { + "version": "1.2.0-beta.2", + "changes": [ + { + "note": "Drastically reduced bundle size by adding .npmignore, only exporting specific artifacts/wrappers/utils", + "pr": 2330 + } + ] + }, + { + "version": "1.2.0-beta.1", + "changes": [ + { + "note": "Dependencies updated" + } + ], + "timestamp": 1573159180 + }, { "version": "1.2.0-beta.0", "changes": [ diff --git a/contracts/erc1155/CHANGELOG.md b/contracts/erc1155/CHANGELOG.md index 458e81314a..5b7231a7bc 100644 --- a/contracts/erc1155/CHANGELOG.md +++ b/contracts/erc1155/CHANGELOG.md @@ -5,9 +5,14 @@ Edit the package's CHANGELOG.json file only. CHANGELOG +## v1.2.0-beta.1 - _November 7, 2019_ + + * Dependencies updated + ## v1.2.0-beta.0 - _October 3, 2019_ * Add `mintKnownFungibleTokensAsync()`, `isNonFungibleItemAsync()`, `isFungibleItemAsync()`, `getOwnerOfAsync()`, `getBalanceAsync()` to `Erc1155Wrapper`. (#1819) + * Replaced `SafeMath` with `LibSafeMath` (#2254) ## v1.1.15 - _September 17, 2019_ diff --git a/contracts/erc1155/compiler.json b/contracts/erc1155/compiler.json index 6b74c612c2..6d739870f0 100644 --- a/contracts/erc1155/compiler.json +++ b/contracts/erc1155/compiler.json @@ -1,5 +1,5 @@ { - "artifactsDir": "./generated-artifacts", + "artifactsDir": "./test/generated-artifacts", "contractsDir": "./contracts", "useDockerisedSolc": false, "isOfflineMode": false, diff --git a/contracts/erc1155/package.json b/contracts/erc1155/package.json index f3111ac48c..ff4b75b746 100644 --- a/contracts/erc1155/package.json +++ b/contracts/erc1155/package.json @@ -1,6 +1,6 @@ { "name": "@0x/contracts-erc1155", - "version": "1.2.0-beta.0", + "version": "1.2.0-beta.1", "engines": { "node": ">=6.12" }, @@ -12,7 +12,7 @@ "scripts": { "build": "yarn pre_build && tsc -b", "build:ci": "yarn build", - "pre_build": "run-s compile contracts:gen generate_contract_wrappers", + "pre_build": "run-s compile contracts:gen generate_contract_wrappers contracts:copy", "test": "yarn run_mocha", "rebuild_and_test": "run-s build test", "test:coverage": "SOLIDITY_COVERAGE=true run-s build run_mocha coverage:report:text coverage:report:lcov", @@ -21,21 +21,23 @@ "run_mocha": "mocha --require source-map-support/register --require make-promises-safe 'lib/test/**/*.js' --timeout 100000 --bail --exit", "compile": "sol-compiler", "watch": "sol-compiler -w", - "clean": "shx rm -rf lib generated-artifacts generated-wrappers", - "generate_contract_wrappers": "abi-gen --debug --abis ${npm_package_config_abis} --output generated-wrappers --backend ethers", - "lint": "tslint --format stylish --project . --exclude ./generated-wrappers/**/* --exclude ./generated-artifacts/**/* --exclude **/lib/**/* && yarn lint-contracts", - "fix": "tslint --fix --format stylish --project . --exclude ./generated-wrappers/**/* --exclude ./generated-artifacts/**/* --exclude **/lib/**/* && yarn lint-contracts", + "clean": "shx rm -rf lib test/generated-artifacts test/generated-wrappers generated-artifacts generated-wrappers", + "generate_contract_wrappers": "abi-gen --debug --abis ${npm_package_config_abis} --output test/generated-wrappers --backend ethers", + "lint": "tslint --format stylish --project . --exclude ./generated-wrappers/**/* --exclude ./test/generated-wrappers/**/* --exclude ./generated-artifacts/**/* --exclude ./test/generated-artifacts/**/* --exclude **/lib/**/* && yarn lint-contracts", + "fix": "tslint --fix --format stylish --project . --exclude ./generated-wrappers/**/* --exclude ./test/generated-wrappers/**/* --exclude ./generated-artifacts/**/* --exclude ./test/generated-artifacts/**/* --exclude **/lib/**/* && yarn lint-contracts", "coverage:report:text": "istanbul report text", "coverage:report:html": "istanbul report html && open coverage/index.html", "profiler:report:html": "istanbul report html && open coverage/index.html", "coverage:report:lcov": "istanbul report lcov", "test:circleci": "yarn test", - "contracts:gen": "contracts-gen", + "contracts:gen": "contracts-gen generate", + "contracts:copy": "contracts-gen copy", "lint-contracts": "solhint -c ../.solhint.json contracts/**/**/**/**/*.sol", "compile:truffle": "truffle compile" }, "config": { - "abis": "./generated-artifacts/@(DummyERC1155Receiver|ERC1155|ERC1155Mintable|IERC1155|IERC1155Mintable|IERC1155Receiver|MixinNonFungibleToken).json", + "publicInterfaceContracts": "ERC1155,ERC1155Mintable,IERC1155Receiver,DummyERC1155Receiver", + "abis": "./test/generated-artifacts/@(DummyERC1155Receiver|ERC1155|ERC1155Mintable|IERC1155|IERC1155Mintable|IERC1155Receiver|MixinNonFungibleToken).json", "abis:comment": "This list is auto-generated by contracts-gen. Don't edit manually." }, "repository": { @@ -48,11 +50,13 @@ }, "homepage": "https://github.com/0xProject/0x-monorepo/contracts/tokens/README.md", "devDependencies": { - "@0x/abi-gen": "^4.3.0-beta.0", - "@0x/contracts-gen": "^1.1.0-beta.0", - "@0x/dev-utils": "^2.4.0-beta.0", - "@0x/sol-compiler": "^3.2.0-beta.0", - "@0x/tslint-config": "^3.0.1", + "@0x/abi-gen": "^4.4.0-beta.1", + "@0x/contracts-gen": "^1.1.0-beta.1", + "@0x/dev-utils": "^2.4.0-beta.1", + "@0x/sol-compiler": "^3.2.0-beta.1", + "@0x/tslint-config": "^3.1.0-beta.1", + "@0x/contracts-utils": "^3.3.0-beta.1", + "@0x/types": "^2.5.0-beta.1", "@types/lodash": "4.14.104", "@types/mocha": "^5.2.7", "@types/node": "*", @@ -70,14 +74,12 @@ "typescript": "3.0.1" }, "dependencies": { - "@0x/base-contract": "^5.5.0-beta.0", - "@0x/contracts-test-utils": "^3.2.0-beta.0", - "@0x/contracts-utils": "^3.3.0-beta.0", - "@0x/types": "^2.5.0-beta.0", - "@0x/typescript-typings": "^4.4.0-beta.0", - "@0x/utils": "^4.6.0-beta.0", - "@0x/web3-wrapper": "^6.1.0-beta.0", - "ethereum-types": "^2.2.0-beta.0", + "@0x/base-contract": "^5.5.0-beta.1", + "@0x/contracts-test-utils": "^3.2.0-beta.1", + "@0x/typescript-typings": "^4.4.0-beta.1", + "@0x/utils": "^4.6.0-beta.1", + "@0x/web3-wrapper": "^6.1.0-beta.1", + "ethereum-types": "^2.2.0-beta.1", "lodash": "^4.17.11" }, "publishConfig": { diff --git a/contracts/erc1155/src/artifacts.ts b/contracts/erc1155/src/artifacts.ts index 196fb37ef5..42606f89ca 100644 --- a/contracts/erc1155/src/artifacts.ts +++ b/contracts/erc1155/src/artifacts.ts @@ -8,16 +8,10 @@ import { ContractArtifact } from 'ethereum-types'; import * as DummyERC1155Receiver from '../generated-artifacts/DummyERC1155Receiver.json'; import * as ERC1155 from '../generated-artifacts/ERC1155.json'; import * as ERC1155Mintable from '../generated-artifacts/ERC1155Mintable.json'; -import * as IERC1155 from '../generated-artifacts/IERC1155.json'; -import * as IERC1155Mintable from '../generated-artifacts/IERC1155Mintable.json'; import * as IERC1155Receiver from '../generated-artifacts/IERC1155Receiver.json'; -import * as MixinNonFungibleToken from '../generated-artifacts/MixinNonFungibleToken.json'; export const artifacts = { ERC1155: ERC1155 as ContractArtifact, ERC1155Mintable: ERC1155Mintable as ContractArtifact, - MixinNonFungibleToken: MixinNonFungibleToken as ContractArtifact, - IERC1155: IERC1155 as ContractArtifact, - IERC1155Mintable: IERC1155Mintable as ContractArtifact, IERC1155Receiver: IERC1155Receiver as ContractArtifact, DummyERC1155Receiver: DummyERC1155Receiver as ContractArtifact, }; diff --git a/contracts/erc1155/test/utils/erc1155_wrapper.ts b/contracts/erc1155/src/erc1155_wrapper.ts similarity index 98% rename from contracts/erc1155/test/utils/erc1155_wrapper.ts rename to contracts/erc1155/src/erc1155_wrapper.ts index f9b49131c2..cf0916c29d 100644 --- a/contracts/erc1155/test/utils/erc1155_wrapper.ts +++ b/contracts/erc1155/src/erc1155_wrapper.ts @@ -5,7 +5,9 @@ import * as chai from 'chai'; import { LogWithDecodedArgs, Provider, TransactionReceiptWithDecodedLogs } from 'ethereum-types'; import * as _ from 'lodash'; -import { artifacts, ERC1155MintableContract, ERC1155TransferSingleEventArgs } from '../../src'; +import { ERC1155MintableContract, ERC1155TransferSingleEventArgs } from './wrappers'; + +import { artifacts } from './artifacts'; const expect = chai.expect; diff --git a/contracts/erc1155/src/index.ts b/contracts/erc1155/src/index.ts index 334373edbd..9b5503a9b4 100644 --- a/contracts/erc1155/src/index.ts +++ b/contracts/erc1155/src/index.ts @@ -1,3 +1,3 @@ export * from './wrappers'; export * from './artifacts'; -export { Erc1155Wrapper } from '../test/utils/erc1155_wrapper'; +export { Erc1155Wrapper } from './erc1155_wrapper'; diff --git a/contracts/erc1155/src/wrappers.ts b/contracts/erc1155/src/wrappers.ts index b7819dfce1..f48fde01c5 100644 --- a/contracts/erc1155/src/wrappers.ts +++ b/contracts/erc1155/src/wrappers.ts @@ -6,7 +6,4 @@ export * from '../generated-wrappers/dummy_erc1155_receiver'; export * from '../generated-wrappers/erc1155'; export * from '../generated-wrappers/erc1155_mintable'; -export * from '../generated-wrappers/i_erc1155_mintable'; export * from '../generated-wrappers/i_erc1155_receiver'; -export * from '../generated-wrappers/ierc1155'; -export * from '../generated-wrappers/mixin_non_fungible_token'; diff --git a/contracts/erc1155/test/artifacts.ts b/contracts/erc1155/test/artifacts.ts new file mode 100644 index 0000000000..dd3e54205d --- /dev/null +++ b/contracts/erc1155/test/artifacts.ts @@ -0,0 +1,23 @@ +/* + * ----------------------------------------------------------------------------- + * Warning: This file is auto-generated by contracts-gen. Don't edit manually. + * ----------------------------------------------------------------------------- + */ +import { ContractArtifact } from 'ethereum-types'; + +import * as DummyERC1155Receiver from '../test/generated-artifacts/DummyERC1155Receiver.json'; +import * as ERC1155 from '../test/generated-artifacts/ERC1155.json'; +import * as ERC1155Mintable from '../test/generated-artifacts/ERC1155Mintable.json'; +import * as IERC1155 from '../test/generated-artifacts/IERC1155.json'; +import * as IERC1155Mintable from '../test/generated-artifacts/IERC1155Mintable.json'; +import * as IERC1155Receiver from '../test/generated-artifacts/IERC1155Receiver.json'; +import * as MixinNonFungibleToken from '../test/generated-artifacts/MixinNonFungibleToken.json'; +export const artifacts = { + ERC1155: ERC1155 as ContractArtifact, + ERC1155Mintable: ERC1155Mintable as ContractArtifact, + MixinNonFungibleToken: MixinNonFungibleToken as ContractArtifact, + IERC1155: IERC1155 as ContractArtifact, + IERC1155Mintable: IERC1155Mintable as ContractArtifact, + IERC1155Receiver: IERC1155Receiver as ContractArtifact, + DummyERC1155Receiver: DummyERC1155Receiver as ContractArtifact, +}; diff --git a/contracts/erc1155/test/erc1155_token.ts b/contracts/erc1155/test/erc1155_token.ts index 88f2048a78..71d2821337 100644 --- a/contracts/erc1155/test/erc1155_token.ts +++ b/contracts/erc1155/test/erc1155_token.ts @@ -13,14 +13,11 @@ import * as chai from 'chai'; import { LogWithDecodedArgs } from 'ethereum-types'; import * as _ from 'lodash'; -import { - artifacts, - DummyERC1155ReceiverBatchTokenReceivedEventArgs, - DummyERC1155ReceiverContract, - ERC1155MintableContract, -} from '../src'; +import { Erc1155Wrapper } from '../src/erc1155_wrapper'; +import { ERC1155MintableContract } from '../src/wrappers'; -import { Erc1155Wrapper } from './utils/erc1155_wrapper'; +import { artifacts } from './artifacts'; +import { DummyERC1155ReceiverBatchTokenReceivedEventArgs, DummyERC1155ReceiverContract } from './wrappers'; chaiSetup.configure(); const expect = chai.expect; const blockchainLifecycle = new BlockchainLifecycle(web3Wrapper); diff --git a/contracts/erc1155/test/wrappers.ts b/contracts/erc1155/test/wrappers.ts new file mode 100644 index 0000000000..1f7cf349d1 --- /dev/null +++ b/contracts/erc1155/test/wrappers.ts @@ -0,0 +1,12 @@ +/* + * ----------------------------------------------------------------------------- + * Warning: This file is auto-generated by contracts-gen. Don't edit manually. + * ----------------------------------------------------------------------------- + */ +export * from '../test/generated-wrappers/dummy_erc1155_receiver'; +export * from '../test/generated-wrappers/erc1155'; +export * from '../test/generated-wrappers/erc1155_mintable'; +export * from '../test/generated-wrappers/i_erc1155_mintable'; +export * from '../test/generated-wrappers/i_erc1155_receiver'; +export * from '../test/generated-wrappers/ierc1155'; +export * from '../test/generated-wrappers/mixin_non_fungible_token'; diff --git a/contracts/erc1155/tsconfig.json b/contracts/erc1155/tsconfig.json index bfa8deee96..751a5cace3 100644 --- a/contracts/erc1155/tsconfig.json +++ b/contracts/erc1155/tsconfig.json @@ -6,10 +6,14 @@ "generated-artifacts/DummyERC1155Receiver.json", "generated-artifacts/ERC1155.json", "generated-artifacts/ERC1155Mintable.json", - "generated-artifacts/IERC1155.json", - "generated-artifacts/IERC1155Mintable.json", "generated-artifacts/IERC1155Receiver.json", - "generated-artifacts/MixinNonFungibleToken.json" + "test/generated-artifacts/DummyERC1155Receiver.json", + "test/generated-artifacts/ERC1155.json", + "test/generated-artifacts/ERC1155Mintable.json", + "test/generated-artifacts/IERC1155.json", + "test/generated-artifacts/IERC1155Mintable.json", + "test/generated-artifacts/IERC1155Receiver.json", + "test/generated-artifacts/MixinNonFungibleToken.json" ], "exclude": ["./deploy/solc/solc_bin"] } diff --git a/contracts/erc20/.npmignore b/contracts/erc20/.npmignore new file mode 100644 index 0000000000..bdf2b8acbe --- /dev/null +++ b/contracts/erc20/.npmignore @@ -0,0 +1,10 @@ +# Blacklist all files +.* +* +# Whitelist lib +!lib/**/* +# Whitelist Solidity contracts +!contracts/src/**/* +# Blacklist tests in lib +/lib/test/* +# Package specific ignore diff --git a/contracts/erc20/CHANGELOG.json b/contracts/erc20/CHANGELOG.json index 85f06d6968..5db312aba7 100644 --- a/contracts/erc20/CHANGELOG.json +++ b/contracts/erc20/CHANGELOG.json @@ -1,4 +1,13 @@ [ + { + "version": "2.3.0-beta.2", + "changes": [ + { + "note": "Drastically reduced bundle size by adding .npmignore, only exporting specific artifacts/wrappers/utils", + "pr": 2330 + } + ] + }, { "version": "2.3.0-beta.1", "changes": [ @@ -6,7 +15,8 @@ "note": "Create `LibERC20Token`", "pr": 2309 } - ] + ], + "timestamp": 1573159180 }, { "version": "2.3.0-beta.0", diff --git a/contracts/erc20/CHANGELOG.md b/contracts/erc20/CHANGELOG.md index 66b597911c..d07b2faad3 100644 --- a/contracts/erc20/CHANGELOG.md +++ b/contracts/erc20/CHANGELOG.md @@ -5,9 +5,14 @@ Edit the package's CHANGELOG.json file only. CHANGELOG +## v2.3.0-beta.1 - _November 7, 2019_ + + * Create `LibERC20Token` (#2309) + ## v2.3.0-beta.0 - _October 3, 2019_ * Dependencies updated + * Replaced `SafeMath` with `LibSafeMath` (#2254) ## v2.2.14 - _September 17, 2019_ diff --git a/contracts/erc20/compiler.json b/contracts/erc20/compiler.json index ac8f2ed76d..e65c0e7194 100644 --- a/contracts/erc20/compiler.json +++ b/contracts/erc20/compiler.json @@ -1,5 +1,5 @@ { - "artifactsDir": "./generated-artifacts", + "artifactsDir": "./test/generated-artifacts", "contractsDir": "./contracts", "useDockerisedSolc": false, "isOfflineMode": false, diff --git a/contracts/erc20/package.json b/contracts/erc20/package.json index 9c3a20355d..ae724e48d2 100644 --- a/contracts/erc20/package.json +++ b/contracts/erc20/package.json @@ -1,6 +1,6 @@ { "name": "@0x/contracts-erc20", - "version": "2.3.0-beta.0", + "version": "2.3.0-beta.1", "engines": { "node": ">=6.12" }, @@ -12,7 +12,7 @@ "scripts": { "build": "yarn pre_build && tsc -b", "build:ci": "yarn build", - "pre_build": "run-s compile contracts:gen generate_contract_wrappers", + "pre_build": "run-s compile contracts:gen generate_contract_wrappers contracts:copy", "test": "yarn run_mocha", "rebuild_and_test": "run-s build test", "test:coverage": "SOLIDITY_COVERAGE=true run-s build run_mocha coverage:report:text coverage:report:lcov", @@ -21,20 +21,22 @@ "run_mocha": "mocha --require source-map-support/register --require make-promises-safe 'lib/test/**/*.js' --timeout 100000 --bail --exit", "compile": "sol-compiler", "watch": "sol-compiler -w", - "clean": "shx rm -rf lib generated-artifacts generated-wrappers", - "generate_contract_wrappers": "abi-gen --debug --abis ${npm_package_config_abis} --output generated-wrappers --backend ethers", - "lint": "tslint --format stylish --project . --exclude ./generated-wrappers/**/* --exclude ./generated-artifacts/**/* --exclude **/lib/**/* && yarn lint-contracts", - "fix": "tslint --fix --format stylish --project . --exclude ./generated-wrappers/**/* --exclude ./generated-artifacts/**/* --exclude **/lib/**/* && yarn lint-contracts", + "clean": "shx rm -rf lib test/generated-artifacts test/generated-wrappers generated-artifacts generated-wrappers", + "generate_contract_wrappers": "abi-gen --debug --abis ${npm_package_config_abis} --output test/generated-wrappers --backend ethers", + "lint": "tslint --format stylish --project . --exclude ./generated-wrappers/**/* --exclude ./test/generated-wrappers/**/* --exclude ./generated-artifacts/**/* --exclude ./test/generated-artifacts/**/* --exclude **/lib/**/* && yarn lint-contracts", + "fix": "tslint --fix --format stylish --project . --exclude ./generated-wrappers/**/* --exclude ./test/generated-wrappers/**/* --exclude ./generated-artifacts/**/* --exclude ./test/generated-artifacts/**/* --exclude **/lib/**/* && yarn lint-contracts", "coverage:report:text": "istanbul report text", "coverage:report:html": "istanbul report html && open coverage/index.html", "profiler:report:html": "istanbul report html && open coverage/index.html", "coverage:report:lcov": "istanbul report lcov", "test:circleci": "yarn test", - "contracts:gen": "contracts-gen", + "contracts:gen": "contracts-gen generate", + "contracts:copy": "contracts-gen copy", "lint-contracts": "solhint -c ../.solhint.json contracts/**/**/**/**/*.sol" }, "config": { - "abis": "./generated-artifacts/@(DummyERC20Token|DummyMultipleReturnERC20Token|DummyNoReturnERC20Token|ERC20Token|IERC20Token|IEtherToken|LibERC20Token|MintableERC20Token|TestLibERC20Token|TestLibERC20TokenTarget|UnlimitedAllowanceERC20Token|UntransferrableDummyERC20Token|WETH9|ZRXToken).json", + "publicInterfaceContracts": "DummyERC20Token,ERC20Token,WETH9,ZRXToken,DummyNoReturnERC20Token,DummyMultipleReturnERC20Token", + "abis": "./test/generated-artifacts/@(DummyERC20Token|DummyMultipleReturnERC20Token|DummyNoReturnERC20Token|ERC20Token|IERC20Token|IEtherToken|LibERC20Token|MintableERC20Token|TestLibERC20Token|TestLibERC20TokenTarget|UnlimitedAllowanceERC20Token|UntransferrableDummyERC20Token|WETH9|ZRXToken).json", "abis:comment": "This list is auto-generated by contracts-gen. Don't edit manually." }, "repository": { @@ -47,12 +49,15 @@ }, "homepage": "https://github.com/0xProject/0x-monorepo/contracts/tokens/README.md", "devDependencies": { - "@0x/abi-gen": "^4.3.0-beta.0", - "@0x/contracts-gen": "^1.1.0-beta.0", - "@0x/contracts-test-utils": "^3.2.0-beta.0", - "@0x/dev-utils": "^2.4.0-beta.0", - "@0x/sol-compiler": "^3.2.0-beta.0", - "@0x/tslint-config": "^3.0.1", + "@0x/abi-gen": "^4.4.0-beta.1", + "@0x/contracts-gen": "^1.1.0-beta.1", + "@0x/contracts-test-utils": "^3.2.0-beta.1", + "@0x/contracts-utils": "^3.3.0-beta.1", + "@0x/dev-utils": "^2.4.0-beta.1", + "@0x/sol-compiler": "^3.2.0-beta.1", + "@0x/tslint-config": "^3.1.0-beta.1", + "@0x/utils": "^4.6.0-beta.1", + "@0x/web3-wrapper": "^6.1.0-beta.1", "@types/lodash": "4.14.104", "@types/mocha": "^5.2.7", "@types/node": "*", @@ -60,6 +65,7 @@ "chai-as-promised": "^7.1.0", "chai-bignumber": "^3.0.0", "dirty-chai": "^2.0.1", + "lodash": "^4.17.11", "make-promises-safe": "^1.1.0", "mocha": "^6.2.0", "npm-run-all": "^4.1.2", @@ -69,14 +75,10 @@ "typescript": "3.0.1" }, "dependencies": { - "@0x/base-contract": "^5.5.0-beta.0", - "@0x/contracts-utils": "^3.3.0-beta.0", - "@0x/types": "^2.5.0-beta.0", - "@0x/typescript-typings": "^4.4.0-beta.0", - "@0x/utils": "^4.6.0-beta.0", - "@0x/web3-wrapper": "^6.1.0-beta.0", - "ethereum-types": "^2.2.0-beta.0", - "lodash": "^4.17.11" + "@0x/base-contract": "^5.5.0-beta.1", + "@0x/types": "^2.5.0-beta.1", + "@0x/typescript-typings": "^4.4.0-beta.1", + "ethereum-types": "^2.2.0-beta.1" }, "publishConfig": { "access": "public" diff --git a/contracts/erc20/src/artifacts.ts b/contracts/erc20/src/artifacts.ts index 8d48dc2753..58950e0e05 100644 --- a/contracts/erc20/src/artifacts.ts +++ b/contracts/erc20/src/artifacts.ts @@ -9,29 +9,13 @@ import * as DummyERC20Token from '../generated-artifacts/DummyERC20Token.json'; import * as DummyMultipleReturnERC20Token from '../generated-artifacts/DummyMultipleReturnERC20Token.json'; import * as DummyNoReturnERC20Token from '../generated-artifacts/DummyNoReturnERC20Token.json'; import * as ERC20Token from '../generated-artifacts/ERC20Token.json'; -import * as IERC20Token from '../generated-artifacts/IERC20Token.json'; -import * as IEtherToken from '../generated-artifacts/IEtherToken.json'; -import * as LibERC20Token from '../generated-artifacts/LibERC20Token.json'; -import * as MintableERC20Token from '../generated-artifacts/MintableERC20Token.json'; -import * as TestLibERC20Token from '../generated-artifacts/TestLibERC20Token.json'; -import * as TestLibERC20TokenTarget from '../generated-artifacts/TestLibERC20TokenTarget.json'; -import * as UnlimitedAllowanceERC20Token from '../generated-artifacts/UnlimitedAllowanceERC20Token.json'; -import * as UntransferrableDummyERC20Token from '../generated-artifacts/UntransferrableDummyERC20Token.json'; import * as WETH9 from '../generated-artifacts/WETH9.json'; import * as ZRXToken from '../generated-artifacts/ZRXToken.json'; export const artifacts = { + DummyERC20Token: DummyERC20Token as ContractArtifact, ERC20Token: ERC20Token as ContractArtifact, - LibERC20Token: LibERC20Token as ContractArtifact, - MintableERC20Token: MintableERC20Token as ContractArtifact, - UnlimitedAllowanceERC20Token: UnlimitedAllowanceERC20Token as ContractArtifact, WETH9: WETH9 as ContractArtifact, ZRXToken: (ZRXToken as any) as ContractArtifact, - IERC20Token: IERC20Token as ContractArtifact, - IEtherToken: IEtherToken as ContractArtifact, - DummyERC20Token: DummyERC20Token as ContractArtifact, - DummyMultipleReturnERC20Token: DummyMultipleReturnERC20Token as ContractArtifact, DummyNoReturnERC20Token: DummyNoReturnERC20Token as ContractArtifact, - TestLibERC20Token: TestLibERC20Token as ContractArtifact, - TestLibERC20TokenTarget: TestLibERC20TokenTarget as ContractArtifact, - UntransferrableDummyERC20Token: UntransferrableDummyERC20Token as ContractArtifact, + DummyMultipleReturnERC20Token: DummyMultipleReturnERC20Token as ContractArtifact, }; diff --git a/contracts/erc20/src/wrappers.ts b/contracts/erc20/src/wrappers.ts index e38e07af17..738809db4a 100644 --- a/contracts/erc20/src/wrappers.ts +++ b/contracts/erc20/src/wrappers.ts @@ -7,13 +7,5 @@ export * from '../generated-wrappers/dummy_erc20_token'; export * from '../generated-wrappers/dummy_multiple_return_erc20_token'; export * from '../generated-wrappers/dummy_no_return_erc20_token'; export * from '../generated-wrappers/erc20_token'; -export * from '../generated-wrappers/i_erc20_token'; -export * from '../generated-wrappers/i_ether_token'; -export * from '../generated-wrappers/lib_erc20_token'; -export * from '../generated-wrappers/mintable_erc20_token'; -export * from '../generated-wrappers/test_lib_erc20_token'; -export * from '../generated-wrappers/test_lib_erc20_token_target'; -export * from '../generated-wrappers/unlimited_allowance_erc20_token'; -export * from '../generated-wrappers/untransferrable_dummy_erc20_token'; export * from '../generated-wrappers/weth9'; export * from '../generated-wrappers/zrx_token'; diff --git a/contracts/erc20/test/artifacts.ts b/contracts/erc20/test/artifacts.ts new file mode 100644 index 0000000000..78062e41f1 --- /dev/null +++ b/contracts/erc20/test/artifacts.ts @@ -0,0 +1,37 @@ +/* + * ----------------------------------------------------------------------------- + * Warning: This file is auto-generated by contracts-gen. Don't edit manually. + * ----------------------------------------------------------------------------- + */ +import { ContractArtifact } from 'ethereum-types'; + +import * as DummyERC20Token from '../test/generated-artifacts/DummyERC20Token.json'; +import * as DummyMultipleReturnERC20Token from '../test/generated-artifacts/DummyMultipleReturnERC20Token.json'; +import * as DummyNoReturnERC20Token from '../test/generated-artifacts/DummyNoReturnERC20Token.json'; +import * as ERC20Token from '../test/generated-artifacts/ERC20Token.json'; +import * as IERC20Token from '../test/generated-artifacts/IERC20Token.json'; +import * as IEtherToken from '../test/generated-artifacts/IEtherToken.json'; +import * as LibERC20Token from '../test/generated-artifacts/LibERC20Token.json'; +import * as MintableERC20Token from '../test/generated-artifacts/MintableERC20Token.json'; +import * as TestLibERC20Token from '../test/generated-artifacts/TestLibERC20Token.json'; +import * as TestLibERC20TokenTarget from '../test/generated-artifacts/TestLibERC20TokenTarget.json'; +import * as UnlimitedAllowanceERC20Token from '../test/generated-artifacts/UnlimitedAllowanceERC20Token.json'; +import * as UntransferrableDummyERC20Token from '../test/generated-artifacts/UntransferrableDummyERC20Token.json'; +import * as WETH9 from '../test/generated-artifacts/WETH9.json'; +import * as ZRXToken from '../test/generated-artifacts/ZRXToken.json'; +export const artifacts = { + ERC20Token: ERC20Token as ContractArtifact, + LibERC20Token: LibERC20Token as ContractArtifact, + MintableERC20Token: MintableERC20Token as ContractArtifact, + UnlimitedAllowanceERC20Token: UnlimitedAllowanceERC20Token as ContractArtifact, + WETH9: WETH9 as ContractArtifact, + ZRXToken: (ZRXToken as any) as ContractArtifact, + IERC20Token: IERC20Token as ContractArtifact, + IEtherToken: IEtherToken as ContractArtifact, + DummyERC20Token: DummyERC20Token as ContractArtifact, + DummyMultipleReturnERC20Token: DummyMultipleReturnERC20Token as ContractArtifact, + DummyNoReturnERC20Token: DummyNoReturnERC20Token as ContractArtifact, + TestLibERC20Token: TestLibERC20Token as ContractArtifact, + TestLibERC20TokenTarget: TestLibERC20TokenTarget as ContractArtifact, + UntransferrableDummyERC20Token: UntransferrableDummyERC20Token as ContractArtifact, +}; diff --git a/contracts/erc20/test/lib_erc20_token.ts b/contracts/erc20/test/lib_erc20_token.ts index 3df3d2b363..2d864302c9 100644 --- a/contracts/erc20/test/lib_erc20_token.ts +++ b/contracts/erc20/test/lib_erc20_token.ts @@ -9,7 +9,9 @@ import { } from '@0x/contracts-test-utils'; import { RawRevertError, StringRevertError } from '@0x/utils'; -import { artifacts, TestLibERC20TokenContract, TestLibERC20TokenTargetEvents } from '../src'; +import { TestLibERC20TokenContract, TestLibERC20TokenTargetEvents } from './wrappers'; + +import { artifacts } from './artifacts'; blockchainTests('LibERC20Token', env => { let testContract: TestLibERC20TokenContract; diff --git a/contracts/erc20/test/unlimited_allowance_token.ts b/contracts/erc20/test/unlimited_allowance_token.ts index e0dbaa2433..e5f61e327f 100644 --- a/contracts/erc20/test/unlimited_allowance_token.ts +++ b/contracts/erc20/test/unlimited_allowance_token.ts @@ -11,7 +11,9 @@ import { RevertReason } from '@0x/types'; import { BigNumber } from '@0x/utils'; import * as chai from 'chai'; -import { artifacts, DummyERC20TokenContract } from '../src'; +import { DummyERC20TokenContract } from './wrappers'; + +import { artifacts } from './artifacts'; chaiSetup.configure(); const expect = chai.expect; diff --git a/contracts/erc20/test/weth9.ts b/contracts/erc20/test/weth9.ts index f0862bbf66..f6595b3735 100644 --- a/contracts/erc20/test/weth9.ts +++ b/contracts/erc20/test/weth9.ts @@ -12,7 +12,9 @@ import { BigNumber } from '@0x/utils'; import { Web3Wrapper } from '@0x/web3-wrapper'; import * as chai from 'chai'; -import { artifacts, WETH9Contract } from '../src'; +import { WETH9Contract } from './wrappers'; + +import { artifacts } from './artifacts'; chaiSetup.configure(); const expect = chai.expect; diff --git a/contracts/erc20/test/wrappers.ts b/contracts/erc20/test/wrappers.ts new file mode 100644 index 0000000000..f7ebf18b6a --- /dev/null +++ b/contracts/erc20/test/wrappers.ts @@ -0,0 +1,19 @@ +/* + * ----------------------------------------------------------------------------- + * Warning: This file is auto-generated by contracts-gen. Don't edit manually. + * ----------------------------------------------------------------------------- + */ +export * from '../test/generated-wrappers/dummy_erc20_token'; +export * from '../test/generated-wrappers/dummy_multiple_return_erc20_token'; +export * from '../test/generated-wrappers/dummy_no_return_erc20_token'; +export * from '../test/generated-wrappers/erc20_token'; +export * from '../test/generated-wrappers/i_erc20_token'; +export * from '../test/generated-wrappers/i_ether_token'; +export * from '../test/generated-wrappers/lib_erc20_token'; +export * from '../test/generated-wrappers/mintable_erc20_token'; +export * from '../test/generated-wrappers/test_lib_erc20_token'; +export * from '../test/generated-wrappers/test_lib_erc20_token_target'; +export * from '../test/generated-wrappers/unlimited_allowance_erc20_token'; +export * from '../test/generated-wrappers/untransferrable_dummy_erc20_token'; +export * from '../test/generated-wrappers/weth9'; +export * from '../test/generated-wrappers/zrx_token'; diff --git a/contracts/erc20/test/zrx_token.ts b/contracts/erc20/test/zrx_token.ts index b0ee2d7d47..82d7dfc881 100644 --- a/contracts/erc20/test/zrx_token.ts +++ b/contracts/erc20/test/zrx_token.ts @@ -4,7 +4,9 @@ import { BigNumber } from '@0x/utils'; import { Web3Wrapper } from '@0x/web3-wrapper'; import * as chai from 'chai'; -import { artifacts, ZRXTokenContract } from '../src'; +import { ZRXTokenContract } from './wrappers'; + +import { artifacts } from './artifacts'; chaiSetup.configure(); const expect = chai.expect; diff --git a/contracts/erc20/tsconfig.json b/contracts/erc20/tsconfig.json index 5c706d141a..f7dc0989b3 100644 --- a/contracts/erc20/tsconfig.json +++ b/contracts/erc20/tsconfig.json @@ -7,16 +7,22 @@ "generated-artifacts/DummyMultipleReturnERC20Token.json", "generated-artifacts/DummyNoReturnERC20Token.json", "generated-artifacts/ERC20Token.json", - "generated-artifacts/IERC20Token.json", - "generated-artifacts/IEtherToken.json", - "generated-artifacts/LibERC20Token.json", - "generated-artifacts/MintableERC20Token.json", - "generated-artifacts/TestLibERC20Token.json", - "generated-artifacts/TestLibERC20TokenTarget.json", - "generated-artifacts/UnlimitedAllowanceERC20Token.json", - "generated-artifacts/UntransferrableDummyERC20Token.json", "generated-artifacts/WETH9.json", - "generated-artifacts/ZRXToken.json" + "generated-artifacts/ZRXToken.json", + "test/generated-artifacts/DummyERC20Token.json", + "test/generated-artifacts/DummyMultipleReturnERC20Token.json", + "test/generated-artifacts/DummyNoReturnERC20Token.json", + "test/generated-artifacts/ERC20Token.json", + "test/generated-artifacts/IERC20Token.json", + "test/generated-artifacts/IEtherToken.json", + "test/generated-artifacts/LibERC20Token.json", + "test/generated-artifacts/MintableERC20Token.json", + "test/generated-artifacts/TestLibERC20Token.json", + "test/generated-artifacts/TestLibERC20TokenTarget.json", + "test/generated-artifacts/UnlimitedAllowanceERC20Token.json", + "test/generated-artifacts/UntransferrableDummyERC20Token.json", + "test/generated-artifacts/WETH9.json", + "test/generated-artifacts/ZRXToken.json" ], "exclude": ["./deploy/solc/solc_bin"] } diff --git a/contracts/erc721/.npmignore b/contracts/erc721/.npmignore new file mode 100644 index 0000000000..bdf2b8acbe --- /dev/null +++ b/contracts/erc721/.npmignore @@ -0,0 +1,10 @@ +# Blacklist all files +.* +* +# Whitelist lib +!lib/**/* +# Whitelist Solidity contracts +!contracts/src/**/* +# Blacklist tests in lib +/lib/test/* +# Package specific ignore diff --git a/contracts/erc721/CHANGELOG.json b/contracts/erc721/CHANGELOG.json index 4ad739fabc..562d6545c7 100644 --- a/contracts/erc721/CHANGELOG.json +++ b/contracts/erc721/CHANGELOG.json @@ -1,4 +1,22 @@ [ + { + "version": "2.2.0-beta.2", + "changes": [ + { + "note": "Drastically reduced bundle size by adding .npmignore, only exporting specific artifacts/wrappers/utils", + "pr": 2330 + } + ] + }, + { + "version": "2.2.0-beta.1", + "changes": [ + { + "note": "Dependencies updated" + } + ], + "timestamp": 1573159180 + }, { "version": "2.2.0-beta.0", "changes": [ diff --git a/contracts/erc721/CHANGELOG.md b/contracts/erc721/CHANGELOG.md index ac1e62b0ba..3effd9e47b 100644 --- a/contracts/erc721/CHANGELOG.md +++ b/contracts/erc721/CHANGELOG.md @@ -5,9 +5,14 @@ Edit the package's CHANGELOG.json file only. CHANGELOG +## v2.2.0-beta.1 - _November 7, 2019_ + + * Dependencies updated + ## v2.2.0-beta.0 - _October 3, 2019_ * Dependencies updated + * Replaced `SafeMath` with `LibSafeMath` (#2254) ## v2.1.15 - _September 17, 2019_ diff --git a/contracts/erc721/compiler.json b/contracts/erc721/compiler.json index 6b74c612c2..6d739870f0 100644 --- a/contracts/erc721/compiler.json +++ b/contracts/erc721/compiler.json @@ -1,5 +1,5 @@ { - "artifactsDir": "./generated-artifacts", + "artifactsDir": "./test/generated-artifacts", "contractsDir": "./contracts", "useDockerisedSolc": false, "isOfflineMode": false, diff --git a/contracts/erc721/package.json b/contracts/erc721/package.json index 2bbebbba84..c7dddce225 100644 --- a/contracts/erc721/package.json +++ b/contracts/erc721/package.json @@ -1,6 +1,6 @@ { "name": "@0x/contracts-erc721", - "version": "2.2.0-beta.0", + "version": "2.2.0-beta.1", "engines": { "node": ">=6.12" }, @@ -12,7 +12,7 @@ "scripts": { "build": "yarn pre_build && tsc -b", "build:ci": "yarn build", - "pre_build": "run-s compile contracts:gen generate_contract_wrappers", + "pre_build": "run-s compile contracts:gen generate_contract_wrappers contracts:copy", "test": "yarn run_mocha", "rebuild_and_test": "run-s build test", "test:coverage": "SOLIDITY_COVERAGE=true run-s build run_mocha coverage:report:text coverage:report:lcov", @@ -21,21 +21,23 @@ "run_mocha": "mocha --require source-map-support/register --require make-promises-safe 'lib/test/**/*.js' --timeout 100000 --bail --exit", "compile": "sol-compiler", "watch": "sol-compiler -w", - "clean": "shx rm -rf lib generated-artifacts generated-wrappers", - "generate_contract_wrappers": "abi-gen --debug --abis ${npm_package_config_abis} --output generated-wrappers --backend ethers", - "lint": "tslint --format stylish --project . --exclude ./generated-wrappers/**/* --exclude ./generated-artifacts/**/* --exclude **/lib/**/* && yarn lint-contracts", - "fix": "tslint --fix --format stylish --project . --exclude ./generated-wrappers/**/* --exclude ./generated-artifacts/**/* --exclude **/lib/**/* && yarn lint-contracts", + "clean": "shx rm -rf lib test/generated-artifacts test/generated-wrappers generated-artifacts generated-wrappers", + "generate_contract_wrappers": "abi-gen --debug --abis ${npm_package_config_abis} --output test/generated-wrappers --backend ethers", + "lint": "tslint --format stylish --project . --exclude ./generated-wrappers/**/* --exclude ./test/generated-wrappers/**/* --exclude ./generated-artifacts/**/* --exclude ./test/generated-artifacts/**/* --exclude **/lib/**/* && yarn lint-contracts", + "fix": "tslint --fix --format stylish --project . --exclude ./generated-wrappers/**/* --exclude ./test/generated-wrappers/**/* --exclude ./generated-artifacts/**/* --exclude ./test/generated-artifacts/**/* --exclude **/lib/**/* && yarn lint-contracts", "coverage:report:text": "istanbul report text", "coverage:report:html": "istanbul report html && open coverage/index.html", "profiler:report:html": "istanbul report html && open coverage/index.html", "coverage:report:lcov": "istanbul report lcov", "test:circleci": "yarn test", - "contracts:gen": "contracts-gen", + "contracts:gen": "contracts-gen generate", + "contracts:copy": "contracts-gen copy", "lint-contracts": "solhint -c ../.solhint.json contracts/**/**/**/**/*.sol", "compile:truffle": "truffle compile" }, "config": { - "abis": "./generated-artifacts/@(DummyERC721Receiver|DummyERC721Token|ERC721Token|IERC721Receiver|IERC721Token|InvalidERC721Receiver|MintableERC721Token).json", + "publicInterfaceContracts": "DummyERC721Token,ERC721Token,IERC721Receiver,DummyERC721Receiver", + "abis": "./test/generated-artifacts/@(DummyERC721Receiver|DummyERC721Token|ERC721Token|IERC721Receiver|IERC721Token|InvalidERC721Receiver|MintableERC721Token).json", "abis:comment": "This list is auto-generated by contracts-gen. Don't edit manually." }, "repository": { @@ -48,12 +50,16 @@ }, "homepage": "https://github.com/0xProject/0x-monorepo/contracts/tokens/README.md", "devDependencies": { - "@0x/abi-gen": "^4.3.0-beta.0", - "@0x/contracts-gen": "^1.1.0-beta.0", - "@0x/contracts-test-utils": "^3.2.0-beta.0", - "@0x/dev-utils": "^2.4.0-beta.0", - "@0x/sol-compiler": "^3.2.0-beta.0", - "@0x/tslint-config": "^3.0.1", + "@0x/abi-gen": "^4.4.0-beta.1", + "@0x/contracts-gen": "^1.1.0-beta.1", + "@0x/contracts-test-utils": "^3.2.0-beta.1", + "@0x/dev-utils": "^2.4.0-beta.1", + "@0x/sol-compiler": "^3.2.0-beta.1", + "@0x/tslint-config": "^3.1.0-beta.1", + "@0x/contracts-utils": "^3.3.0-beta.1", + "@0x/types": "^2.5.0-beta.1", + "@0x/utils": "^4.6.0-beta.1", + "@0x/web3-wrapper": "^6.1.0-beta.1", "@types/lodash": "4.14.104", "@types/mocha": "^5.2.7", "@types/node": "*", @@ -61,6 +67,7 @@ "chai-as-promised": "^7.1.0", "chai-bignumber": "^3.0.0", "dirty-chai": "^2.0.1", + "lodash": "^4.17.11", "make-promises-safe": "^1.1.0", "mocha": "^6.2.0", "npm-run-all": "^4.1.2", @@ -71,14 +78,9 @@ "typescript": "3.0.1" }, "dependencies": { - "@0x/base-contract": "^5.5.0-beta.0", - "@0x/contracts-utils": "^3.3.0-beta.0", - "@0x/types": "^2.5.0-beta.0", - "@0x/typescript-typings": "^4.4.0-beta.0", - "@0x/utils": "^4.6.0-beta.0", - "@0x/web3-wrapper": "^6.1.0-beta.0", - "ethereum-types": "^2.2.0-beta.0", - "lodash": "^4.17.11" + "@0x/base-contract": "^5.5.0-beta.1", + "@0x/typescript-typings": "^4.4.0-beta.1", + "ethereum-types": "^2.2.0-beta.1" }, "publishConfig": { "access": "public" diff --git a/contracts/erc721/src/artifacts.ts b/contracts/erc721/src/artifacts.ts index 79a76e21b4..6a7cf0034c 100644 --- a/contracts/erc721/src/artifacts.ts +++ b/contracts/erc721/src/artifacts.ts @@ -9,15 +9,9 @@ import * as DummyERC721Receiver from '../generated-artifacts/DummyERC721Receiver import * as DummyERC721Token from '../generated-artifacts/DummyERC721Token.json'; import * as ERC721Token from '../generated-artifacts/ERC721Token.json'; import * as IERC721Receiver from '../generated-artifacts/IERC721Receiver.json'; -import * as IERC721Token from '../generated-artifacts/IERC721Token.json'; -import * as InvalidERC721Receiver from '../generated-artifacts/InvalidERC721Receiver.json'; -import * as MintableERC721Token from '../generated-artifacts/MintableERC721Token.json'; export const artifacts = { + DummyERC721Token: DummyERC721Token as ContractArtifact, ERC721Token: ERC721Token as ContractArtifact, - MintableERC721Token: MintableERC721Token as ContractArtifact, IERC721Receiver: IERC721Receiver as ContractArtifact, - IERC721Token: IERC721Token as ContractArtifact, DummyERC721Receiver: DummyERC721Receiver as ContractArtifact, - DummyERC721Token: DummyERC721Token as ContractArtifact, - InvalidERC721Receiver: InvalidERC721Receiver as ContractArtifact, }; diff --git a/contracts/erc721/src/wrappers.ts b/contracts/erc721/src/wrappers.ts index 716f6cca4e..0f0bd5c866 100644 --- a/contracts/erc721/src/wrappers.ts +++ b/contracts/erc721/src/wrappers.ts @@ -7,6 +7,3 @@ export * from '../generated-wrappers/dummy_erc721_receiver'; export * from '../generated-wrappers/dummy_erc721_token'; export * from '../generated-wrappers/erc721_token'; export * from '../generated-wrappers/i_erc721_receiver'; -export * from '../generated-wrappers/i_erc721_token'; -export * from '../generated-wrappers/invalid_erc721_receiver'; -export * from '../generated-wrappers/mintable_erc721_token'; diff --git a/contracts/erc721/test/artifacts.ts b/contracts/erc721/test/artifacts.ts new file mode 100644 index 0000000000..327aa03b77 --- /dev/null +++ b/contracts/erc721/test/artifacts.ts @@ -0,0 +1,23 @@ +/* + * ----------------------------------------------------------------------------- + * Warning: This file is auto-generated by contracts-gen. Don't edit manually. + * ----------------------------------------------------------------------------- + */ +import { ContractArtifact } from 'ethereum-types'; + +import * as DummyERC721Receiver from '../test/generated-artifacts/DummyERC721Receiver.json'; +import * as DummyERC721Token from '../test/generated-artifacts/DummyERC721Token.json'; +import * as ERC721Token from '../test/generated-artifacts/ERC721Token.json'; +import * as IERC721Receiver from '../test/generated-artifacts/IERC721Receiver.json'; +import * as IERC721Token from '../test/generated-artifacts/IERC721Token.json'; +import * as InvalidERC721Receiver from '../test/generated-artifacts/InvalidERC721Receiver.json'; +import * as MintableERC721Token from '../test/generated-artifacts/MintableERC721Token.json'; +export const artifacts = { + ERC721Token: ERC721Token as ContractArtifact, + MintableERC721Token: MintableERC721Token as ContractArtifact, + IERC721Receiver: IERC721Receiver as ContractArtifact, + IERC721Token: IERC721Token as ContractArtifact, + DummyERC721Receiver: DummyERC721Receiver as ContractArtifact, + DummyERC721Token: DummyERC721Token as ContractArtifact, + InvalidERC721Receiver: InvalidERC721Receiver as ContractArtifact, +}; diff --git a/contracts/erc721/test/erc721_token.ts b/contracts/erc721/test/erc721_token.ts index 560d9a0b90..73829651d8 100644 --- a/contracts/erc721/test/erc721_token.ts +++ b/contracts/erc721/test/erc721_token.ts @@ -15,13 +15,14 @@ import * as chai from 'chai'; import { LogWithDecodedArgs } from 'ethereum-types'; import { - artifacts, DummyERC721ReceiverContract, DummyERC721ReceiverTokenReceivedEventArgs, DummyERC721TokenContract, DummyERC721TokenTransferEventArgs, InvalidERC721ReceiverContract, -} from '../src'; +} from './wrappers'; + +import { artifacts } from './artifacts'; chaiSetup.configure(); const expect = chai.expect; diff --git a/contracts/erc721/test/wrappers.ts b/contracts/erc721/test/wrappers.ts new file mode 100644 index 0000000000..bcf38a7079 --- /dev/null +++ b/contracts/erc721/test/wrappers.ts @@ -0,0 +1,12 @@ +/* + * ----------------------------------------------------------------------------- + * Warning: This file is auto-generated by contracts-gen. Don't edit manually. + * ----------------------------------------------------------------------------- + */ +export * from '../test/generated-wrappers/dummy_erc721_receiver'; +export * from '../test/generated-wrappers/dummy_erc721_token'; +export * from '../test/generated-wrappers/erc721_token'; +export * from '../test/generated-wrappers/i_erc721_receiver'; +export * from '../test/generated-wrappers/i_erc721_token'; +export * from '../test/generated-wrappers/invalid_erc721_receiver'; +export * from '../test/generated-wrappers/mintable_erc721_token'; diff --git a/contracts/erc721/tsconfig.json b/contracts/erc721/tsconfig.json index 3b218affe6..279937a8d0 100644 --- a/contracts/erc721/tsconfig.json +++ b/contracts/erc721/tsconfig.json @@ -7,9 +7,13 @@ "generated-artifacts/DummyERC721Token.json", "generated-artifacts/ERC721Token.json", "generated-artifacts/IERC721Receiver.json", - "generated-artifacts/IERC721Token.json", - "generated-artifacts/InvalidERC721Receiver.json", - "generated-artifacts/MintableERC721Token.json" + "test/generated-artifacts/DummyERC721Receiver.json", + "test/generated-artifacts/DummyERC721Token.json", + "test/generated-artifacts/ERC721Token.json", + "test/generated-artifacts/IERC721Receiver.json", + "test/generated-artifacts/IERC721Token.json", + "test/generated-artifacts/InvalidERC721Receiver.json", + "test/generated-artifacts/MintableERC721Token.json" ], "exclude": ["./deploy/solc/solc_bin"] } diff --git a/contracts/exchange-forwarder/.npmignore b/contracts/exchange-forwarder/.npmignore new file mode 100644 index 0000000000..bdf2b8acbe --- /dev/null +++ b/contracts/exchange-forwarder/.npmignore @@ -0,0 +1,10 @@ +# Blacklist all files +.* +* +# Whitelist lib +!lib/**/* +# Whitelist Solidity contracts +!contracts/src/**/* +# Blacklist tests in lib +/lib/test/* +# Package specific ignore diff --git a/contracts/exchange-forwarder/CHANGELOG.json b/contracts/exchange-forwarder/CHANGELOG.json index 8257cdf3ea..ef22a71bd8 100644 --- a/contracts/exchange-forwarder/CHANGELOG.json +++ b/contracts/exchange-forwarder/CHANGELOG.json @@ -1,4 +1,13 @@ [ + { + "version": "3.1.0-beta.2", + "changes": [ + { + "note": "Drastically reduced bundle size by adding .npmignore, only exporting specific artifacts/wrappers/utils", + "pr": 2330 + } + ] + }, { "version": "3.1.0-beta.1", "changes": [ @@ -6,7 +15,8 @@ "note": "Use `LibERC20Token` in `MixinAssets`", "pr": 2309 } - ] + ], + "timestamp": 1573159180 }, { "version": "3.1.0-beta.0", diff --git a/contracts/exchange-forwarder/CHANGELOG.md b/contracts/exchange-forwarder/CHANGELOG.md index ec731fef65..b9ecb689bb 100644 --- a/contracts/exchange-forwarder/CHANGELOG.md +++ b/contracts/exchange-forwarder/CHANGELOG.md @@ -5,6 +5,10 @@ Edit the package's CHANGELOG.json file only. CHANGELOG +## v3.1.0-beta.1 - _November 7, 2019_ + + * Use `LibERC20Token` in `MixinAssets` (#2309) + ## v3.1.0-beta.0 - _October 3, 2019_ * Dependencies updated diff --git a/contracts/exchange-forwarder/compiler.json b/contracts/exchange-forwarder/compiler.json index 6b74c612c2..6d739870f0 100644 --- a/contracts/exchange-forwarder/compiler.json +++ b/contracts/exchange-forwarder/compiler.json @@ -1,5 +1,5 @@ { - "artifactsDir": "./generated-artifacts", + "artifactsDir": "./test/generated-artifacts", "contractsDir": "./contracts", "useDockerisedSolc": false, "isOfflineMode": false, diff --git a/contracts/exchange-forwarder/package.json b/contracts/exchange-forwarder/package.json index f7d0ce0d89..86a86f4f73 100644 --- a/contracts/exchange-forwarder/package.json +++ b/contracts/exchange-forwarder/package.json @@ -1,6 +1,6 @@ { "name": "@0x/contracts-exchange-forwarder", - "version": "3.1.0-beta.0", + "version": "3.1.0-beta.1", "engines": { "node": ">=6.12" }, @@ -13,7 +13,7 @@ "build": "yarn pre_build && tsc -b", "build:ts": "tsc -b", "build:ci": "yarn build", - "pre_build": "run-s compile contracts:gen generate_contract_wrappers", + "pre_build": "run-s compile contracts:gen generate_contract_wrappers contracts:copy", "test": "echo !!! Tests have been relocated to @0x/contracts-integrations !!!", "rebuild_and_test": "run-s build test", "test:coverage": "SOLIDITY_COVERAGE=true run-s build run_mocha coverage:report:text coverage:report:lcov", @@ -21,20 +21,22 @@ "test:trace": "SOLIDITY_REVERT_TRACE=true run-s build run_mocha", "compile": "sol-compiler", "watch": "sol-compiler -w", - "clean": "shx rm -rf lib generated-artifacts generated-wrappers", - "generate_contract_wrappers": "abi-gen --debug --abis ${npm_package_config_abis} --output generated-wrappers --backend ethers", - "lint": "tslint --format stylish --project . --exclude ./generated-wrappers/**/* --exclude ./generated-artifacts/**/* --exclude **/lib/**/* && yarn lint-contracts", + "clean": "shx rm -rf lib test/generated-artifacts test/generated-wrappers generated-artifacts generated-wrappers", + "generate_contract_wrappers": "abi-gen --debug --abis ${npm_package_config_abis} --output test/generated-wrappers --backend ethers", + "lint": "tslint --format stylish --project . --exclude ./generated-wrappers/**/* --exclude ./test/generated-wrappers/**/* --exclude ./generated-artifacts/**/* --exclude ./test/generated-artifacts/**/* --exclude **/lib/**/* && yarn lint-contracts", "coverage:report:text": "istanbul report text", "coverage:report:html": "istanbul report html && open coverage/index.html", "profiler:report:html": "istanbul report html && open coverage/index.html", "coverage:report:lcov": "istanbul report lcov", "test:circleci": "yarn test", - "contracts:gen": "contracts-gen", + "contracts:gen": "contracts-gen generate", + "contracts:copy": "contracts-gen copy", "lint-contracts": "solhint -c ../.solhint.json contracts/**/**/**/**/*.sol", "compile:truffle": "truffle compile" }, "config": { - "abis": "./generated-artifacts/@(Forwarder|IAssets|IForwarder|IForwarderCore|LibConstants|LibForwarderRichErrors|MixinAssets|MixinExchangeWrapper|MixinForwarderCore|MixinWeth).json", + "publicInterfaceContracts": "Forwarder", + "abis": "./test/generated-artifacts/@(Forwarder|IAssets|IForwarder|IForwarderCore|LibConstants|LibForwarderRichErrors|MixinAssets|MixinExchangeWrapper|MixinForwarderCore|MixinWeth).json", "abis:comment": "This list is auto-generated by contracts-gen. Don't edit manually." }, "repository": { @@ -47,12 +49,23 @@ }, "homepage": "https://github.com/0xProject/0x-monorepo/contracts/extensions/README.md", "devDependencies": { - "@0x/abi-gen": "^4.3.0-beta.0", - "@0x/contracts-gen": "^1.1.0-beta.0", - "@0x/contracts-test-utils": "^3.2.0-beta.0", - "@0x/dev-utils": "^2.4.0-beta.0", - "@0x/sol-compiler": "^3.2.0-beta.0", - "@0x/tslint-config": "^3.0.1", + "@0x/abi-gen": "^4.4.0-beta.1", + "@0x/contracts-gen": "^1.1.0-beta.1", + "@0x/contracts-test-utils": "^3.2.0-beta.1", + "@0x/contracts-asset-proxy": "^2.3.0-beta.1", + "@0x/contracts-dev-utils": "^0.1.0-beta.1", + "@0x/contracts-erc20": "^2.3.0-beta.1", + "@0x/contracts-erc721": "^2.2.0-beta.1", + "@0x/contracts-exchange": "^2.2.0-beta.1", + "@0x/contracts-exchange-libs": "^3.1.0-beta.1", + "@0x/contracts-utils": "^3.3.0-beta.1", + "@0x/order-utils": "^8.5.0-beta.1", + "@0x/types": "^2.5.0-beta.1", + "@0x/dev-utils": "^2.4.0-beta.1", + "@0x/sol-compiler": "^3.2.0-beta.1", + "@0x/tslint-config": "^3.1.0-beta.1", + "@0x/utils": "^4.6.0-beta.1", + "@0x/web3-wrapper": "^6.1.0-beta.1", "@types/lodash": "4.14.104", "@types/mocha": "^5.2.7", "@types/node": "*", @@ -60,6 +73,7 @@ "chai-as-promised": "^7.1.0", "chai-bignumber": "^3.0.0", "dirty-chai": "^2.0.1", + "lodash": "^4.17.11", "make-promises-safe": "^1.1.0", "mocha": "^6.2.0", "npm-run-all": "^4.1.2", @@ -70,21 +84,9 @@ "typescript": "3.0.1" }, "dependencies": { - "@0x/base-contract": "^5.5.0-beta.0", - "@0x/contracts-asset-proxy": "^2.3.0-beta.0", - "@0x/contracts-dev-utils": "^0.1.0-beta.0", - "@0x/contracts-erc20": "^2.3.0-beta.0", - "@0x/contracts-erc721": "^2.2.0-beta.0", - "@0x/contracts-exchange": "^2.2.0-beta.0", - "@0x/contracts-exchange-libs": "^3.1.0-beta.0", - "@0x/contracts-utils": "^3.3.0-beta.0", - "@0x/order-utils": "^8.5.0-beta.0", - "@0x/types": "^2.5.0-beta.0", - "@0x/typescript-typings": "^4.4.0-beta.0", - "@0x/utils": "^4.6.0-beta.0", - "@0x/web3-wrapper": "^6.1.0-beta.0", - "ethereum-types": "^2.2.0-beta.0", - "lodash": "^4.17.11" + "@0x/base-contract": "^5.5.0-beta.1", + "@0x/typescript-typings": "^4.4.0-beta.1", + "ethereum-types": "^2.2.0-beta.1" }, "publishConfig": { "access": "public" diff --git a/contracts/exchange-forwarder/src/artifacts.ts b/contracts/exchange-forwarder/src/artifacts.ts index 9643be939a..a316777cb3 100644 --- a/contracts/exchange-forwarder/src/artifacts.ts +++ b/contracts/exchange-forwarder/src/artifacts.ts @@ -6,24 +6,4 @@ import { ContractArtifact } from 'ethereum-types'; import * as Forwarder from '../generated-artifacts/Forwarder.json'; -import * as IAssets from '../generated-artifacts/IAssets.json'; -import * as IForwarder from '../generated-artifacts/IForwarder.json'; -import * as IForwarderCore from '../generated-artifacts/IForwarderCore.json'; -import * as LibConstants from '../generated-artifacts/LibConstants.json'; -import * as LibForwarderRichErrors from '../generated-artifacts/LibForwarderRichErrors.json'; -import * as MixinAssets from '../generated-artifacts/MixinAssets.json'; -import * as MixinExchangeWrapper from '../generated-artifacts/MixinExchangeWrapper.json'; -import * as MixinForwarderCore from '../generated-artifacts/MixinForwarderCore.json'; -import * as MixinWeth from '../generated-artifacts/MixinWeth.json'; -export const artifacts = { - Forwarder: Forwarder as ContractArtifact, - MixinAssets: MixinAssets as ContractArtifact, - MixinExchangeWrapper: MixinExchangeWrapper as ContractArtifact, - MixinForwarderCore: MixinForwarderCore as ContractArtifact, - MixinWeth: MixinWeth as ContractArtifact, - IAssets: IAssets as ContractArtifact, - IForwarder: IForwarder as ContractArtifact, - IForwarderCore: IForwarderCore as ContractArtifact, - LibConstants: LibConstants as ContractArtifact, - LibForwarderRichErrors: LibForwarderRichErrors as ContractArtifact, -}; +export const artifacts = { Forwarder: Forwarder as ContractArtifact }; diff --git a/contracts/exchange-forwarder/src/wrappers.ts b/contracts/exchange-forwarder/src/wrappers.ts index 23213da16e..e77944402a 100644 --- a/contracts/exchange-forwarder/src/wrappers.ts +++ b/contracts/exchange-forwarder/src/wrappers.ts @@ -4,12 +4,3 @@ * ----------------------------------------------------------------------------- */ export * from '../generated-wrappers/forwarder'; -export * from '../generated-wrappers/i_assets'; -export * from '../generated-wrappers/i_forwarder'; -export * from '../generated-wrappers/i_forwarder_core'; -export * from '../generated-wrappers/lib_constants'; -export * from '../generated-wrappers/lib_forwarder_rich_errors'; -export * from '../generated-wrappers/mixin_assets'; -export * from '../generated-wrappers/mixin_exchange_wrapper'; -export * from '../generated-wrappers/mixin_forwarder_core'; -export * from '../generated-wrappers/mixin_weth'; diff --git a/contracts/exchange-forwarder/test/artifacts.ts b/contracts/exchange-forwarder/test/artifacts.ts new file mode 100644 index 0000000000..2e786fdfa4 --- /dev/null +++ b/contracts/exchange-forwarder/test/artifacts.ts @@ -0,0 +1,29 @@ +/* + * ----------------------------------------------------------------------------- + * Warning: This file is auto-generated by contracts-gen. Don't edit manually. + * ----------------------------------------------------------------------------- + */ +import { ContractArtifact } from 'ethereum-types'; + +import * as Forwarder from '../test/generated-artifacts/Forwarder.json'; +import * as IAssets from '../test/generated-artifacts/IAssets.json'; +import * as IForwarder from '../test/generated-artifacts/IForwarder.json'; +import * as IForwarderCore from '../test/generated-artifacts/IForwarderCore.json'; +import * as LibConstants from '../test/generated-artifacts/LibConstants.json'; +import * as LibForwarderRichErrors from '../test/generated-artifacts/LibForwarderRichErrors.json'; +import * as MixinAssets from '../test/generated-artifacts/MixinAssets.json'; +import * as MixinExchangeWrapper from '../test/generated-artifacts/MixinExchangeWrapper.json'; +import * as MixinForwarderCore from '../test/generated-artifacts/MixinForwarderCore.json'; +import * as MixinWeth from '../test/generated-artifacts/MixinWeth.json'; +export const artifacts = { + Forwarder: Forwarder as ContractArtifact, + MixinAssets: MixinAssets as ContractArtifact, + MixinExchangeWrapper: MixinExchangeWrapper as ContractArtifact, + MixinForwarderCore: MixinForwarderCore as ContractArtifact, + MixinWeth: MixinWeth as ContractArtifact, + IAssets: IAssets as ContractArtifact, + IForwarder: IForwarder as ContractArtifact, + IForwarderCore: IForwarderCore as ContractArtifact, + LibConstants: LibConstants as ContractArtifact, + LibForwarderRichErrors: LibForwarderRichErrors as ContractArtifact, +}; diff --git a/contracts/exchange-forwarder/test/wrappers.ts b/contracts/exchange-forwarder/test/wrappers.ts new file mode 100644 index 0000000000..fd8cbc5af8 --- /dev/null +++ b/contracts/exchange-forwarder/test/wrappers.ts @@ -0,0 +1,15 @@ +/* + * ----------------------------------------------------------------------------- + * Warning: This file is auto-generated by contracts-gen. Don't edit manually. + * ----------------------------------------------------------------------------- + */ +export * from '../test/generated-wrappers/forwarder'; +export * from '../test/generated-wrappers/i_assets'; +export * from '../test/generated-wrappers/i_forwarder'; +export * from '../test/generated-wrappers/i_forwarder_core'; +export * from '../test/generated-wrappers/lib_constants'; +export * from '../test/generated-wrappers/lib_forwarder_rich_errors'; +export * from '../test/generated-wrappers/mixin_assets'; +export * from '../test/generated-wrappers/mixin_exchange_wrapper'; +export * from '../test/generated-wrappers/mixin_forwarder_core'; +export * from '../test/generated-wrappers/mixin_weth'; diff --git a/contracts/exchange-forwarder/tsconfig.json b/contracts/exchange-forwarder/tsconfig.json index e5d468a5ce..8186631147 100644 --- a/contracts/exchange-forwarder/tsconfig.json +++ b/contracts/exchange-forwarder/tsconfig.json @@ -4,15 +4,16 @@ "include": ["./src/**/*", "./test/**/*", "./generated-wrappers/**/*"], "files": [ "generated-artifacts/Forwarder.json", - "generated-artifacts/IAssets.json", - "generated-artifacts/IForwarder.json", - "generated-artifacts/IForwarderCore.json", - "generated-artifacts/LibConstants.json", - "generated-artifacts/LibForwarderRichErrors.json", - "generated-artifacts/MixinAssets.json", - "generated-artifacts/MixinExchangeWrapper.json", - "generated-artifacts/MixinForwarderCore.json", - "generated-artifacts/MixinWeth.json" + "test/generated-artifacts/Forwarder.json", + "test/generated-artifacts/IAssets.json", + "test/generated-artifacts/IForwarder.json", + "test/generated-artifacts/IForwarderCore.json", + "test/generated-artifacts/LibConstants.json", + "test/generated-artifacts/LibForwarderRichErrors.json", + "test/generated-artifacts/MixinAssets.json", + "test/generated-artifacts/MixinExchangeWrapper.json", + "test/generated-artifacts/MixinForwarderCore.json", + "test/generated-artifacts/MixinWeth.json" ], "exclude": ["./deploy/solc/solc_bin"] } diff --git a/contracts/exchange-libs/.npmignore b/contracts/exchange-libs/.npmignore new file mode 100644 index 0000000000..bdf2b8acbe --- /dev/null +++ b/contracts/exchange-libs/.npmignore @@ -0,0 +1,10 @@ +# Blacklist all files +.* +* +# Whitelist lib +!lib/**/* +# Whitelist Solidity contracts +!contracts/src/**/* +# Blacklist tests in lib +/lib/test/* +# Package specific ignore diff --git a/contracts/exchange-libs/CHANGELOG.json b/contracts/exchange-libs/CHANGELOG.json index 4059813c1e..40e35e91f8 100644 --- a/contracts/exchange-libs/CHANGELOG.json +++ b/contracts/exchange-libs/CHANGELOG.json @@ -1,4 +1,22 @@ [ + { + "version": "3.1.0-beta.2", + "changes": [ + { + "note": "Drastically reduced bundle size by adding .npmignore, only exporting specific artifacts/wrappers/utils", + "pr": 2330 + } + ] + }, + { + "version": "3.1.0-beta.1", + "changes": [ + { + "note": "Dependencies updated" + } + ], + "timestamp": 1573159180 + }, { "version": "3.1.0-beta.0", "changes": [ diff --git a/contracts/exchange-libs/CHANGELOG.md b/contracts/exchange-libs/CHANGELOG.md index 80cb7c81aa..a2b102e093 100644 --- a/contracts/exchange-libs/CHANGELOG.md +++ b/contracts/exchange-libs/CHANGELOG.md @@ -5,6 +5,10 @@ Edit the package's CHANGELOG.json file only. CHANGELOG +## v3.1.0-beta.1 - _November 7, 2019_ + + * Dependencies updated + ## v3.1.0-beta.0 - _October 3, 2019_ * Break up `LibEIP712` into reusable components (#1742) @@ -33,6 +37,7 @@ CHANGELOG * Remove `_hashEIP712ExchangeMessage` from `LibEIP712ExchangeDomain` (#2055) * Compile and export all contracts, artifacts, and wrappers by default (#2055) * Update `IncompleteFillError` to take an `errorCode`, `expectedAssetFillAmount`, and `actualAssetFillAmount` fields. (#2075) + * Move `IWallet.sol` from `asset-proxy` and `exchange` packages to here. (#2233) ## v3.0.8 - _September 17, 2019_ diff --git a/contracts/exchange-libs/compiler.json b/contracts/exchange-libs/compiler.json index 6b74c612c2..6d739870f0 100644 --- a/contracts/exchange-libs/compiler.json +++ b/contracts/exchange-libs/compiler.json @@ -1,5 +1,5 @@ { - "artifactsDir": "./generated-artifacts", + "artifactsDir": "./test/generated-artifacts", "contractsDir": "./contracts", "useDockerisedSolc": false, "isOfflineMode": false, diff --git a/contracts/exchange-libs/package.json b/contracts/exchange-libs/package.json index 0e88be8bd4..546a35baf3 100644 --- a/contracts/exchange-libs/package.json +++ b/contracts/exchange-libs/package.json @@ -1,6 +1,6 @@ { "name": "@0x/contracts-exchange-libs", - "version": "3.1.0-beta.0", + "version": "3.1.0-beta.1", "engines": { "node": ">=6.12" }, @@ -12,7 +12,7 @@ "scripts": { "build": "yarn pre_build && tsc -b", "build:ci": "yarn build", - "pre_build": "run-s compile contracts:gen generate_contract_wrappers", + "pre_build": "run-s compile contracts:gen generate_contract_wrappers contracts:copy", "test": "yarn run_mocha", "rebuild_and_test": "run-s build test", "test:coverage": "SOLIDITY_COVERAGE=true run-s build run_mocha coverage:report:text coverage:report:lcov", @@ -21,21 +21,23 @@ "run_mocha": "mocha --require source-map-support/register --require make-promises-safe 'lib/test/**/*.js' --timeout 100000 --bail --exit", "compile": "sol-compiler", "watch": "sol-compiler -w", - "clean": "shx rm -rf lib generated-artifacts generated-wrappers", - "generate_contract_wrappers": "abi-gen --debug --abis ${npm_package_config_abis} --output generated-wrappers --backend ethers", - "lint": "tslint --format stylish --project . --exclude ./generated-wrappers/**/* --exclude ./generated-artifacts/**/* --exclude **/lib/**/* && yarn lint-contracts", - "fix": "tslint --fix --format stylish --project . --exclude ./generated-wrappers/**/* --exclude ./generated-artifacts/**/* --exclude **/lib/**/* && yarn lint-contracts", + "clean": "shx rm -rf lib test/generated-artifacts test/generated-wrappers generated-artifacts generated-wrappers", + "generate_contract_wrappers": "abi-gen --debug --abis ${npm_package_config_abis} --output test/generated-wrappers --backend ethers", + "lint": "tslint --format stylish --project . --exclude ./generated-wrappers/**/* --exclude ./test/generated-wrappers/**/* --exclude ./generated-artifacts/**/* --exclude ./test/generated-artifacts/**/* --exclude **/lib/**/* && yarn lint-contracts", + "fix": "tslint --fix --format stylish --project . --exclude ./generated-wrappers/**/* --exclude ./test/generated-wrappers/**/* --exclude ./generated-artifacts/**/* --exclude ./test/generated-artifacts/**/* --exclude **/lib/**/* && yarn lint-contracts", "coverage:report:text": "istanbul report text", "coverage:report:html": "istanbul report html && open coverage/index.html", "profiler:report:html": "istanbul report html && open coverage/index.html", "coverage:report:lcov": "istanbul report lcov", "test:circleci": "yarn test", - "contracts:gen": "contracts-gen", + "contracts:gen": "contracts-gen generate", + "contracts:copy": "contracts-gen copy", "lint-contracts": "solhint -c ../.solhint.json contracts/**/**/**/**/*.sol", "compile:truffle": "truffle compile" }, "config": { - "abis": "./generated-artifacts/@(IWallet|LibEIP712ExchangeDomain|LibExchangeRichErrors|LibFillResults|LibMath|LibMathRichErrors|LibOrder|LibZeroExTransaction|TestLibEIP712ExchangeDomain|TestLibFillResults|TestLibMath|TestLibOrder|TestLibZeroExTransaction).json", + "publicInterfaceContracts": "IWallet,LibEIP712ExchangeDomain,LibExchangeRichErrors,LibMath,LibMathRichErrors,LibOrder,LibZeroExTransaction", + "abis": "./test/generated-artifacts/@(IWallet|LibEIP712ExchangeDomain|LibExchangeRichErrors|LibFillResults|LibMath|LibMathRichErrors|LibOrder|LibZeroExTransaction|TestLibEIP712ExchangeDomain|TestLibFillResults|TestLibMath|TestLibOrder|TestLibZeroExTransaction).json", "abis:comment": "This list is auto-generated by contracts-gen. Don't edit manually." }, "repository": { @@ -48,13 +50,14 @@ }, "homepage": "https://github.com/0xProject/0x-monorepo/contracts/libs/README.md", "devDependencies": { - "@0x/abi-gen": "^4.3.0-beta.0", - "@0x/contracts-gen": "^1.1.0-beta.0", - "@0x/contracts-test-utils": "^3.2.0-beta.0", - "@0x/dev-utils": "^2.4.0-beta.0", - "@0x/sol-compiler": "^3.2.0-beta.0", - "@0x/subproviders": "^5.1.0-beta.0", - "@0x/tslint-config": "^3.0.1", + "@0x/abi-gen": "^4.4.0-beta.1", + "@0x/contracts-gen": "^1.1.0-beta.1", + "@0x/contracts-test-utils": "^3.2.0-beta.1", + "@0x/dev-utils": "^2.4.0-beta.1", + "@0x/sol-compiler": "^3.2.0-beta.1", + "@0x/subproviders": "^5.1.0-beta.1", + "@0x/tslint-config": "^3.1.0-beta.1", + "@0x/web3-wrapper": "^6.1.0-beta.1", "@types/lodash": "4.14.104", "@types/mocha": "^5.2.7", "@types/node": "*", @@ -63,6 +66,7 @@ "chai-bignumber": "^3.0.0", "dirty-chai": "^2.0.1", "ethereumjs-util": "^5.1.1", + "lodash": "^4.17.11", "make-promises-safe": "^1.1.0", "mocha": "^6.2.0", "npm-run-all": "^4.1.2", @@ -73,15 +77,13 @@ "typescript": "3.0.1" }, "dependencies": { - "@0x/base-contract": "^5.5.0-beta.0", - "@0x/contracts-utils": "^3.3.0-beta.0", - "@0x/order-utils": "^8.5.0-beta.0", - "@0x/types": "^2.5.0-beta.0", - "@0x/typescript-typings": "^4.4.0-beta.0", - "@0x/utils": "^4.6.0-beta.0", - "@0x/web3-wrapper": "^6.1.0-beta.0", - "ethereum-types": "^2.2.0-beta.0", - "lodash": "^4.17.11" + "@0x/base-contract": "^5.5.0-beta.1", + "@0x/contracts-utils": "^3.3.0-beta.1", + "@0x/order-utils": "^8.5.0-beta.1", + "@0x/types": "^2.5.0-beta.1", + "@0x/typescript-typings": "^4.4.0-beta.1", + "@0x/utils": "^4.6.0-beta.1", + "ethereum-types": "^2.2.0-beta.1" }, "publishConfig": { "access": "public" diff --git a/contracts/exchange-libs/src/artifacts.ts b/contracts/exchange-libs/src/artifacts.ts index 1769fc432a..e511f8c4ac 100644 --- a/contracts/exchange-libs/src/artifacts.ts +++ b/contracts/exchange-libs/src/artifacts.ts @@ -8,28 +8,16 @@ import { ContractArtifact } from 'ethereum-types'; import * as IWallet from '../generated-artifacts/IWallet.json'; import * as LibEIP712ExchangeDomain from '../generated-artifacts/LibEIP712ExchangeDomain.json'; import * as LibExchangeRichErrors from '../generated-artifacts/LibExchangeRichErrors.json'; -import * as LibFillResults from '../generated-artifacts/LibFillResults.json'; import * as LibMath from '../generated-artifacts/LibMath.json'; import * as LibMathRichErrors from '../generated-artifacts/LibMathRichErrors.json'; import * as LibOrder from '../generated-artifacts/LibOrder.json'; import * as LibZeroExTransaction from '../generated-artifacts/LibZeroExTransaction.json'; -import * as TestLibEIP712ExchangeDomain from '../generated-artifacts/TestLibEIP712ExchangeDomain.json'; -import * as TestLibFillResults from '../generated-artifacts/TestLibFillResults.json'; -import * as TestLibMath from '../generated-artifacts/TestLibMath.json'; -import * as TestLibOrder from '../generated-artifacts/TestLibOrder.json'; -import * as TestLibZeroExTransaction from '../generated-artifacts/TestLibZeroExTransaction.json'; export const artifacts = { IWallet: IWallet as ContractArtifact, LibEIP712ExchangeDomain: LibEIP712ExchangeDomain as ContractArtifact, LibExchangeRichErrors: LibExchangeRichErrors as ContractArtifact, - LibFillResults: LibFillResults as ContractArtifact, LibMath: LibMath as ContractArtifact, LibMathRichErrors: LibMathRichErrors as ContractArtifact, LibOrder: LibOrder as ContractArtifact, LibZeroExTransaction: LibZeroExTransaction as ContractArtifact, - TestLibEIP712ExchangeDomain: TestLibEIP712ExchangeDomain as ContractArtifact, - TestLibFillResults: TestLibFillResults as ContractArtifact, - TestLibMath: TestLibMath as ContractArtifact, - TestLibOrder: TestLibOrder as ContractArtifact, - TestLibZeroExTransaction: TestLibZeroExTransaction as ContractArtifact, }; diff --git a/contracts/exchange-libs/src/wrappers.ts b/contracts/exchange-libs/src/wrappers.ts index 695fe2da79..03a7601de2 100644 --- a/contracts/exchange-libs/src/wrappers.ts +++ b/contracts/exchange-libs/src/wrappers.ts @@ -6,13 +6,7 @@ export * from '../generated-wrappers/i_wallet'; export * from '../generated-wrappers/lib_e_i_p712_exchange_domain'; export * from '../generated-wrappers/lib_exchange_rich_errors'; -export * from '../generated-wrappers/lib_fill_results'; export * from '../generated-wrappers/lib_math'; export * from '../generated-wrappers/lib_math_rich_errors'; export * from '../generated-wrappers/lib_order'; export * from '../generated-wrappers/lib_zero_ex_transaction'; -export * from '../generated-wrappers/test_lib_e_i_p712_exchange_domain'; -export * from '../generated-wrappers/test_lib_fill_results'; -export * from '../generated-wrappers/test_lib_math'; -export * from '../generated-wrappers/test_lib_order'; -export * from '../generated-wrappers/test_lib_zero_ex_transaction'; diff --git a/contracts/exchange-libs/test/artifacts.ts b/contracts/exchange-libs/test/artifacts.ts new file mode 100644 index 0000000000..01c47756ec --- /dev/null +++ b/contracts/exchange-libs/test/artifacts.ts @@ -0,0 +1,35 @@ +/* + * ----------------------------------------------------------------------------- + * Warning: This file is auto-generated by contracts-gen. Don't edit manually. + * ----------------------------------------------------------------------------- + */ +import { ContractArtifact } from 'ethereum-types'; + +import * as IWallet from '../test/generated-artifacts/IWallet.json'; +import * as LibEIP712ExchangeDomain from '../test/generated-artifacts/LibEIP712ExchangeDomain.json'; +import * as LibExchangeRichErrors from '../test/generated-artifacts/LibExchangeRichErrors.json'; +import * as LibFillResults from '../test/generated-artifacts/LibFillResults.json'; +import * as LibMath from '../test/generated-artifacts/LibMath.json'; +import * as LibMathRichErrors from '../test/generated-artifacts/LibMathRichErrors.json'; +import * as LibOrder from '../test/generated-artifacts/LibOrder.json'; +import * as LibZeroExTransaction from '../test/generated-artifacts/LibZeroExTransaction.json'; +import * as TestLibEIP712ExchangeDomain from '../test/generated-artifacts/TestLibEIP712ExchangeDomain.json'; +import * as TestLibFillResults from '../test/generated-artifacts/TestLibFillResults.json'; +import * as TestLibMath from '../test/generated-artifacts/TestLibMath.json'; +import * as TestLibOrder from '../test/generated-artifacts/TestLibOrder.json'; +import * as TestLibZeroExTransaction from '../test/generated-artifacts/TestLibZeroExTransaction.json'; +export const artifacts = { + IWallet: IWallet as ContractArtifact, + LibEIP712ExchangeDomain: LibEIP712ExchangeDomain as ContractArtifact, + LibExchangeRichErrors: LibExchangeRichErrors as ContractArtifact, + LibFillResults: LibFillResults as ContractArtifact, + LibMath: LibMath as ContractArtifact, + LibMathRichErrors: LibMathRichErrors as ContractArtifact, + LibOrder: LibOrder as ContractArtifact, + LibZeroExTransaction: LibZeroExTransaction as ContractArtifact, + TestLibEIP712ExchangeDomain: TestLibEIP712ExchangeDomain as ContractArtifact, + TestLibFillResults: TestLibFillResults as ContractArtifact, + TestLibMath: TestLibMath as ContractArtifact, + TestLibOrder: TestLibOrder as ContractArtifact, + TestLibZeroExTransaction: TestLibZeroExTransaction as ContractArtifact, +}; diff --git a/contracts/exchange-libs/test/lib_eip712_exchange_domain.ts b/contracts/exchange-libs/test/lib_eip712_exchange_domain.ts index 652a2e8766..ddee5eaf1c 100644 --- a/contracts/exchange-libs/test/lib_eip712_exchange_domain.ts +++ b/contracts/exchange-libs/test/lib_eip712_exchange_domain.ts @@ -2,7 +2,9 @@ import { blockchainTests, constants, expect, randomAddress } from '@0x/contracts import { BigNumber, signTypedDataUtils } from '@0x/utils'; import * as ethUtil from 'ethereumjs-util'; -import { artifacts, TestLibEIP712ExchangeDomainContract } from '../src'; +import { TestLibEIP712ExchangeDomainContract } from './wrappers'; + +import { artifacts } from './artifacts'; blockchainTests('LibEIP712ExchangeDomain', env => { describe('constructor', () => { diff --git a/contracts/exchange-libs/test/lib_fill_results.ts b/contracts/exchange-libs/test/lib_fill_results.ts index b92ade1c60..7e79a3a1d9 100644 --- a/contracts/exchange-libs/test/lib_fill_results.ts +++ b/contracts/exchange-libs/test/lib_fill_results.ts @@ -13,7 +13,10 @@ import { BigNumber, SafeMathRevertErrors } from '@0x/utils'; import { Web3Wrapper } from '@0x/web3-wrapper'; import * as _ from 'lodash'; -import { artifacts, ReferenceFunctions, TestLibFillResultsContract } from '../src'; +import { addFillResults, calculateFillResults, getPartialAmountFloor } from '../src/reference_functions'; + +import { artifacts } from './artifacts'; +import { TestLibFillResultsContract } from './wrappers'; blockchainTests('LibFillResults', env => { interface PartialMatchedFillResults { @@ -92,7 +95,7 @@ blockchainTests('LibFillResults', env => { // in any mathematical operation in either the reference TypeScript // implementation or the Solidity implementation of // calculateFillResults. - return ReferenceFunctions.calculateFillResults( + return calculateFillResults( makeOrder(otherAmount, orderTakerAssetAmount, otherAmount, otherAmount), takerAssetFilledAmount, takerAssetFilledAmount, // Using this so that the gas price is distinct from protocolFeeMultiplier @@ -141,7 +144,7 @@ blockchainTests('LibFillResults', env => { takerFee: ONE_ETHER.times(0.0025), }); const takerAssetFilledAmount = ONE_ETHER.dividedToIntegerBy(3); - const expected = ReferenceFunctions.calculateFillResults( + const expected = calculateFillResults( order, takerAssetFilledAmount, DEFAULT_PROTOCOL_FEE_MULTIPLIER, @@ -190,7 +193,7 @@ blockchainTests('LibFillResults', env => { makerFee: MAX_UINT256_ROOT.times(11), }); const takerAssetFilledAmount = MAX_UINT256_ROOT.dividedToIntegerBy(10); - const makerAssetFilledAmount = ReferenceFunctions.getPartialAmountFloor( + const makerAssetFilledAmount = getPartialAmountFloor( takerAssetFilledAmount, order.takerAssetAmount, order.makerAssetAmount, @@ -286,7 +289,7 @@ blockchainTests('LibFillResults', env => { makerFee: new BigNumber(100), }); const takerAssetFilledAmount = order.takerAssetAmount.dividedToIntegerBy(3); - const makerAssetFilledAmount = ReferenceFunctions.getPartialAmountFloor( + const makerAssetFilledAmount = getPartialAmountFloor( takerAssetFilledAmount, order.takerAssetAmount, order.makerAssetAmount, @@ -315,7 +318,7 @@ blockchainTests('LibFillResults', env => { takerFee: new BigNumber(100), }); const takerAssetFilledAmount = order.takerAssetAmount.dividedToIntegerBy(3); - const makerAssetFilledAmount = ReferenceFunctions.getPartialAmountFloor( + const makerAssetFilledAmount = getPartialAmountFloor( takerAssetFilledAmount, order.takerAssetAmount, order.makerAssetAmount, @@ -364,7 +367,7 @@ blockchainTests('LibFillResults', env => { makerFee: new BigNumber(100), }); const takerAssetFilledAmount = order.takerAssetAmount.dividedToIntegerBy(3); - const makerAssetFilledAmount = ReferenceFunctions.getPartialAmountFloor( + const makerAssetFilledAmount = getPartialAmountFloor( takerAssetFilledAmount, order.takerAssetAmount, order.makerAssetAmount, @@ -409,7 +412,7 @@ blockchainTests('LibFillResults', env => { it('matches the output of the reference function', async () => { const [a, b] = DEFAULT_FILL_RESULTS; - const expected = ReferenceFunctions.addFillResults(a, b); + const expected = addFillResults(a, b); const actual = await libsContract.addFillResults(a, b).callAsync(); expect(actual).to.deep.equal(expected); }); diff --git a/contracts/exchange-libs/test/lib_math.ts b/contracts/exchange-libs/test/lib_math.ts index 409517bae9..3834c3b6b2 100644 --- a/contracts/exchange-libs/test/lib_math.ts +++ b/contracts/exchange-libs/test/lib_math.ts @@ -9,7 +9,17 @@ import { import { LibMathRevertErrors } from '@0x/order-utils'; import { BigNumber, SafeMathRevertErrors } from '@0x/utils'; -import { artifacts, ReferenceFunctions, TestLibMathContract } from '../src'; +import { + getPartialAmountCeil, + getPartialAmountFloor, + isRoundingErrorCeil, + isRoundingErrorFloor, + safeGetPartialAmountCeil, + safeGetPartialAmountFloor, +} from '../src/reference_functions'; + +import { artifacts } from './artifacts'; +import { TestLibMathContract } from './wrappers'; blockchainTests('LibMath', env => { const { ONE_ETHER, MAX_UINT256, MAX_UINT256_ROOT, ZERO_AMOUNT } = constants; @@ -41,7 +51,7 @@ blockchainTests('LibMath', env => { describe.optional('combinatorial tests', () => { testCombinatoriallyWithReferenceFunc( 'getPartialAmountFloor', - createAsyncReferenceFunction(ReferenceFunctions.getPartialAmountFloor), + createAsyncReferenceFunction(getPartialAmountFloor), createContractTestFunction('getPartialAmountFloor'), [uint256Values, uint256Values, uint256Values], ); @@ -52,7 +62,7 @@ blockchainTests('LibMath', env => { const numerator = ONE_ETHER; const denominator = ONE_ETHER.dividedToIntegerBy(2); const target = ONE_ETHER.times(0.01); - const expected = ReferenceFunctions.getPartialAmountFloor(numerator, denominator, target); + const expected = getPartialAmountFloor(numerator, denominator, target); const actual = await libsContract.getPartialAmountFloor(numerator, denominator, target).callAsync(); expect(actual).to.bignumber.eq(expected); }); @@ -100,7 +110,7 @@ blockchainTests('LibMath', env => { describe.optional('combinatorial tests', () => { testCombinatoriallyWithReferenceFunc( 'getPartialAmountCeil', - createAsyncReferenceFunction(ReferenceFunctions.getPartialAmountCeil), + createAsyncReferenceFunction(getPartialAmountCeil), createContractTestFunction('getPartialAmountCeil'), [uint256Values, uint256Values, uint256Values], ); @@ -111,7 +121,7 @@ blockchainTests('LibMath', env => { const numerator = ONE_ETHER; const denominator = ONE_ETHER.dividedToIntegerBy(2); const target = ONE_ETHER.times(0.01); - const expected = ReferenceFunctions.getPartialAmountCeil(numerator, denominator, target); + const expected = getPartialAmountCeil(numerator, denominator, target); const actual = await libsContract.getPartialAmountCeil(numerator, denominator, target).callAsync(); expect(actual).to.bignumber.eq(expected); }); @@ -160,7 +170,7 @@ blockchainTests('LibMath', env => { describe.optional('combinatorial tests', () => { testCombinatoriallyWithReferenceFunc( 'safeGetPartialAmountFloor', - createAsyncReferenceFunction(ReferenceFunctions.safeGetPartialAmountFloor), + createAsyncReferenceFunction(safeGetPartialAmountFloor), createContractTestFunction('safeGetPartialAmountFloor'), [uint256Values, uint256Values, uint256Values], ); @@ -171,7 +181,7 @@ blockchainTests('LibMath', env => { const numerator = ONE_ETHER; const denominator = ONE_ETHER.dividedToIntegerBy(2); const target = ONE_ETHER.times(0.01); - const expected = ReferenceFunctions.safeGetPartialAmountFloor(numerator, denominator, target); + const expected = safeGetPartialAmountFloor(numerator, denominator, target); const actual = await libsContract.safeGetPartialAmountFloor(numerator, denominator, target).callAsync(); expect(actual).to.bignumber.eq(expected); }); @@ -225,7 +235,7 @@ blockchainTests('LibMath', env => { describe.optional('combinatorial tests', () => { testCombinatoriallyWithReferenceFunc( 'safeGetPartialAmountCeil', - createAsyncReferenceFunction(ReferenceFunctions.safeGetPartialAmountCeil), + createAsyncReferenceFunction(safeGetPartialAmountCeil), createContractTestFunction('safeGetPartialAmountCeil'), [uint256Values, uint256Values, uint256Values], ); @@ -236,7 +246,7 @@ blockchainTests('LibMath', env => { const numerator = ONE_ETHER; const denominator = ONE_ETHER.dividedToIntegerBy(2); const target = ONE_ETHER.times(0.01); - const expected = ReferenceFunctions.safeGetPartialAmountCeil(numerator, denominator, target); + const expected = safeGetPartialAmountCeil(numerator, denominator, target); const actual = await libsContract.safeGetPartialAmountCeil(numerator, denominator, target).callAsync(); expect(actual).to.bignumber.eq(expected); }); @@ -290,7 +300,7 @@ blockchainTests('LibMath', env => { describe.optional('combinatorial tests', () => { testCombinatoriallyWithReferenceFunc( 'isRoundingErrorFloor', - createAsyncReferenceFunction(ReferenceFunctions.isRoundingErrorFloor), + createAsyncReferenceFunction(isRoundingErrorFloor), createContractTestFunction('isRoundingErrorFloor'), [uint256Values, uint256Values, uint256Values], ); @@ -320,7 +330,7 @@ blockchainTests('LibMath', env => { const denominator = ONE_ETHER.dividedToIntegerBy(2); const target = ONE_ETHER.times(0.01); // tslint:disable-next-line: boolean-naming - const expected = ReferenceFunctions.isRoundingErrorFloor(numerator, denominator, target); + const expected = isRoundingErrorFloor(numerator, denominator, target); // tslint:disable-next-line: boolean-naming const actual = await libsContract.isRoundingErrorFloor(numerator, denominator, target).callAsync(); expect(actual).to.eq(expected); @@ -356,7 +366,7 @@ blockchainTests('LibMath', env => { describe.optional('combinatorial tests', () => { testCombinatoriallyWithReferenceFunc( 'isRoundingErrorCeil', - createAsyncReferenceFunction(ReferenceFunctions.isRoundingErrorCeil), + createAsyncReferenceFunction(isRoundingErrorCeil), createContractTestFunction('isRoundingErrorCeil'), [uint256Values, uint256Values, uint256Values], ); @@ -386,7 +396,7 @@ blockchainTests('LibMath', env => { const denominator = ONE_ETHER.dividedToIntegerBy(2); const target = ONE_ETHER.times(0.01); // tslint:disable-next-line: boolean-naming - const expected = ReferenceFunctions.isRoundingErrorCeil(numerator, denominator, target); + const expected = isRoundingErrorCeil(numerator, denominator, target); // tslint:disable-next-line: boolean-naming const actual = await libsContract.isRoundingErrorCeil(numerator, denominator, target).callAsync(); expect(actual).to.eq(expected); diff --git a/contracts/exchange-libs/test/lib_order.ts b/contracts/exchange-libs/test/lib_order.ts index 1ad0f015db..65cdc289dd 100644 --- a/contracts/exchange-libs/test/lib_order.ts +++ b/contracts/exchange-libs/test/lib_order.ts @@ -5,7 +5,9 @@ import { BigNumber, signTypedDataUtils } from '@0x/utils'; import * as ethUtil from 'ethereumjs-util'; import * as _ from 'lodash'; -import { artifacts, TestLibOrderContract } from '../src'; +import { TestLibOrderContract } from './wrappers'; + +import { artifacts } from './artifacts'; blockchainTests('LibOrder', env => { let libOrderContract: TestLibOrderContract; diff --git a/contracts/exchange-libs/test/lib_zero_ex_transaction.ts b/contracts/exchange-libs/test/lib_zero_ex_transaction.ts index e650e17a31..828497a629 100644 --- a/contracts/exchange-libs/test/lib_zero_ex_transaction.ts +++ b/contracts/exchange-libs/test/lib_zero_ex_transaction.ts @@ -5,7 +5,9 @@ import { BigNumber, signTypedDataUtils } from '@0x/utils'; import * as ethUtil from 'ethereumjs-util'; import * as _ from 'lodash'; -import { artifacts, TestLibZeroExTransactionContract } from '../src'; +import { TestLibZeroExTransactionContract } from './wrappers'; + +import { artifacts } from './artifacts'; blockchainTests('LibZeroExTransaction', env => { let libZeroExTransactionContract: TestLibZeroExTransactionContract; diff --git a/contracts/exchange-libs/test/wrappers.ts b/contracts/exchange-libs/test/wrappers.ts new file mode 100644 index 0000000000..c0205dc234 --- /dev/null +++ b/contracts/exchange-libs/test/wrappers.ts @@ -0,0 +1,18 @@ +/* + * ----------------------------------------------------------------------------- + * Warning: This file is auto-generated by contracts-gen. Don't edit manually. + * ----------------------------------------------------------------------------- + */ +export * from '../test/generated-wrappers/i_wallet'; +export * from '../test/generated-wrappers/lib_e_i_p712_exchange_domain'; +export * from '../test/generated-wrappers/lib_exchange_rich_errors'; +export * from '../test/generated-wrappers/lib_fill_results'; +export * from '../test/generated-wrappers/lib_math'; +export * from '../test/generated-wrappers/lib_math_rich_errors'; +export * from '../test/generated-wrappers/lib_order'; +export * from '../test/generated-wrappers/lib_zero_ex_transaction'; +export * from '../test/generated-wrappers/test_lib_e_i_p712_exchange_domain'; +export * from '../test/generated-wrappers/test_lib_fill_results'; +export * from '../test/generated-wrappers/test_lib_math'; +export * from '../test/generated-wrappers/test_lib_order'; +export * from '../test/generated-wrappers/test_lib_zero_ex_transaction'; diff --git a/contracts/exchange-libs/tsconfig.json b/contracts/exchange-libs/tsconfig.json index b75670d9f7..26f76e6e57 100644 --- a/contracts/exchange-libs/tsconfig.json +++ b/contracts/exchange-libs/tsconfig.json @@ -6,16 +6,23 @@ "generated-artifacts/IWallet.json", "generated-artifacts/LibEIP712ExchangeDomain.json", "generated-artifacts/LibExchangeRichErrors.json", - "generated-artifacts/LibFillResults.json", "generated-artifacts/LibMath.json", "generated-artifacts/LibMathRichErrors.json", "generated-artifacts/LibOrder.json", "generated-artifacts/LibZeroExTransaction.json", - "generated-artifacts/TestLibEIP712ExchangeDomain.json", - "generated-artifacts/TestLibFillResults.json", - "generated-artifacts/TestLibMath.json", - "generated-artifacts/TestLibOrder.json", - "generated-artifacts/TestLibZeroExTransaction.json" + "test/generated-artifacts/IWallet.json", + "test/generated-artifacts/LibEIP712ExchangeDomain.json", + "test/generated-artifacts/LibExchangeRichErrors.json", + "test/generated-artifacts/LibFillResults.json", + "test/generated-artifacts/LibMath.json", + "test/generated-artifacts/LibMathRichErrors.json", + "test/generated-artifacts/LibOrder.json", + "test/generated-artifacts/LibZeroExTransaction.json", + "test/generated-artifacts/TestLibEIP712ExchangeDomain.json", + "test/generated-artifacts/TestLibFillResults.json", + "test/generated-artifacts/TestLibMath.json", + "test/generated-artifacts/TestLibOrder.json", + "test/generated-artifacts/TestLibZeroExTransaction.json" ], "exclude": ["./deploy/solc/solc_bin"] } diff --git a/contracts/exchange/.npmignore b/contracts/exchange/.npmignore new file mode 100644 index 0000000000..bdf2b8acbe --- /dev/null +++ b/contracts/exchange/.npmignore @@ -0,0 +1,10 @@ +# Blacklist all files +.* +* +# Whitelist lib +!lib/**/* +# Whitelist Solidity contracts +!contracts/src/**/* +# Blacklist tests in lib +/lib/test/* +# Package specific ignore diff --git a/contracts/exchange/CHANGELOG.json b/contracts/exchange/CHANGELOG.json index 50212acccd..6fa9b1c63a 100644 --- a/contracts/exchange/CHANGELOG.json +++ b/contracts/exchange/CHANGELOG.json @@ -1,4 +1,13 @@ [ + { + "version": "2.2.0-beta.2", + "changes": [ + { + "note": "Drastically reduced bundle size by adding .npmignore, only exporting specific artifacts/wrappers/utils", + "pr": 2330 + } + ] + }, { "version": "2.2.0-beta.1", "changes": [ @@ -18,7 +27,8 @@ "note": "In OrderFactoryFromScenario, `generateOrder` is now `generateOrderAsync`", "pr": 2304 } - ] + ], + "timestamp": 1573159180 }, { "version": "2.2.0-beta.0", diff --git a/contracts/exchange/CHANGELOG.md b/contracts/exchange/CHANGELOG.md index 7850919cf0..0550528b3d 100644 --- a/contracts/exchange/CHANGELOG.md +++ b/contracts/exchange/CHANGELOG.md @@ -5,6 +5,13 @@ Edit the package's CHANGELOG.json file only. CHANGELOG +## v2.2.0-beta.1 - _November 7, 2019_ + + * LocalBalanceStore.create and constructor now require an instance of DevUtilsContract (#2304) + * In LocalBalanceStore, `transferAsset` is now `transferAssetAsync` (#2304) + * Test utility classes AssetWrapper, MatchOrderTester, and OrderFactoryFromScenario constructors now require an instance of DevUtilsContract (#2304) + * In OrderFactoryFromScenario, `generateOrder` is now `generateOrderAsync` (#2304) + ## v2.2.0-beta.0 - _October 3, 2019_ * Use new/cheaper reentrancy guard/mutex (#1699) diff --git a/contracts/exchange/compiler.json b/contracts/exchange/compiler.json index 6b74c612c2..6d739870f0 100644 --- a/contracts/exchange/compiler.json +++ b/contracts/exchange/compiler.json @@ -1,5 +1,5 @@ { - "artifactsDir": "./generated-artifacts", + "artifactsDir": "./test/generated-artifacts", "contractsDir": "./contracts", "useDockerisedSolc": false, "isOfflineMode": false, diff --git a/contracts/exchange/package.json b/contracts/exchange/package.json index b32c36e5c6..18aeaac665 100644 --- a/contracts/exchange/package.json +++ b/contracts/exchange/package.json @@ -1,6 +1,6 @@ { "name": "@0x/contracts-exchange", - "version": "2.2.0-beta.0", + "version": "2.2.0-beta.1", "engines": { "node": ">=6.12" }, @@ -12,7 +12,7 @@ "scripts": { "build": "yarn pre_build && tsc -b", "build:ci": "yarn build", - "pre_build": "run-s compile contracts:gen generate_contract_wrappers", + "pre_build": "run-s compile contracts:gen generate_contract_wrappers contracts:copy", "test": "yarn run_mocha", "rebuild_and_test": "run-s build test", "test:coverage": "SOLIDITY_COVERAGE=true run-s build run_mocha coverage:report:text coverage:report:lcov", @@ -21,22 +21,24 @@ "run_mocha": "mocha --require source-map-support/register --require make-promises-safe 'lib/test/**/*.js' --timeout 100000 --bail --exit", "compile": "sol-compiler", "watch": "sol-compiler -w", - "clean": "shx rm -rf lib generated-artifacts generated-wrappers", - "generate_contract_wrappers": "abi-gen --debug --abis ${npm_package_config_abis} --output generated-wrappers --backend ethers", - "lint": "tslint --format stylish --project . --exclude ./generated-wrappers/**/* --exclude ./generated-artifacts/**/* --exclude **/lib/**/* && yarn lint-contracts", - "fix": "tslint --fix --format stylish --project . --exclude ./generated-wrappers/**/* --exclude ./generated-artifacts/**/* --exclude **/lib/**/* && yarn lint-contracts", + "clean": "shx rm -rf lib test/generated-artifacts test/generated-wrappers generated-artifacts generated-wrappers", + "generate_contract_wrappers": "abi-gen --debug --abis ${npm_package_config_abis} --output test/generated-wrappers --backend ethers", + "lint": "tslint --format stylish --project . --exclude ./generated-wrappers/**/* --exclude ./test/generated-wrappers/**/* --exclude ./generated-artifacts/**/* --exclude ./test/generated-artifacts/**/* --exclude **/lib/**/* && yarn lint-contracts", + "fix": "tslint --fix --format stylish --project . --exclude ./generated-wrappers/**/* --exclude ./generated-artifacts/**/* --exclude ./test/generated-wrappers/**/* --exclude ./test/generated-artifacts/**/* --exclude **/lib/**/* && yarn lint-contracts", "coverage:report:text": "istanbul report text", "coverage:report:html": "istanbul report html && open coverage/index.html", "profiler:report:html": "istanbul report html && open coverage/index.html", "coverage:report:lcov": "istanbul report lcov", "test:circleci": "yarn test", - "contracts:gen": "contracts-gen", + "contracts:gen": "contracts-gen generate", + "contracts:copy": "contracts-gen copy", "lint-contracts": "solhint -c ../.solhint.json contracts/**/**/**/**/*.sol", "compile:truffle": "truffle compile" }, "config": { - "abis": "./generated-artifacts/@(Exchange|IAssetProxy|IAssetProxyDispatcher|IEIP1271Data|IEIP1271Wallet|IExchange|IExchangeCore|IMatchOrders|IProtocolFees|ISignatureValidator|ITransactions|ITransferSimulator|IWallet|IWrapperFunctions|IsolatedExchange|LibExchangeRichErrorDecoder|MixinAssetProxyDispatcher|MixinExchangeCore|MixinMatchOrders|MixinProtocolFees|MixinSignatureValidator|MixinTransactions|MixinTransferSimulator|MixinWrapperFunctions|ReentrancyTester|TestAssetProxyDispatcher|TestExchangeInternals|TestLibExchangeRichErrorDecoder|TestProtocolFeeCollector|TestProtocolFees|TestProtocolFeesReceiver|TestSignatureValidator|TestTransactions|TestValidatorWallet|TestWrapperFunctions).json", - "abis:comment": "This list is auto-generated by contracts-gen. Don't edit manually." + "publicInterfaceContracts": "Exchange,IExchange", + "abis:comment": "This list is auto-generated by contracts-gen. Don't edit manually.", + "abis": "./test/generated-artifacts/@(Exchange|IAssetProxy|IAssetProxyDispatcher|IEIP1271Data|IEIP1271Wallet|IExchange|IExchangeCore|IMatchOrders|IProtocolFees|ISignatureValidator|ITransactions|ITransferSimulator|IWallet|IWrapperFunctions|IsolatedExchange|LibExchangeRichErrorDecoder|MixinAssetProxyDispatcher|MixinExchangeCore|MixinMatchOrders|MixinProtocolFees|MixinSignatureValidator|MixinTransactions|MixinTransferSimulator|MixinWrapperFunctions|ReentrancyTester|TestAssetProxyDispatcher|TestExchangeInternals|TestLibExchangeRichErrorDecoder|TestProtocolFeeCollector|TestProtocolFees|TestProtocolFeesReceiver|TestSignatureValidator|TestTransactions|TestValidatorWallet|TestWrapperFunctions).json" }, "repository": { "type": "git", @@ -48,14 +50,18 @@ }, "homepage": "https://github.com/0xProject/0x-monorepo/contracts/protocol/README.md", "devDependencies": { - "@0x/abi-gen": "^4.3.0-beta.0", - "@0x/contracts-gen": "^1.1.0-beta.0", - "@0x/contracts-multisig": "^3.2.0-beta.0", - "@0x/contracts-staking": "^1.1.0-beta.0", - "@0x/contracts-test-utils": "^3.2.0-beta.0", - "@0x/dev-utils": "^2.4.0-beta.0", - "@0x/sol-compiler": "^3.2.0-beta.0", - "@0x/tslint-config": "^3.0.1", + "@0x/abi-gen": "^4.4.0-beta.1", + "@0x/contracts-gen": "^1.1.0-beta.1", + "@0x/contracts-multisig": "^3.2.0-beta.1", + "@0x/contracts-staking": "^1.1.0-beta.1", + "@0x/contracts-test-utils": "^3.2.0-beta.1", + "@0x/contracts-asset-proxy": "^2.3.0-beta.1", + "@0x/contracts-exchange-libs": "^3.1.0-beta.1", + "@0x/dev-utils": "^2.4.0-beta.1", + "@0x/sol-compiler": "^3.2.0-beta.1", + "@0x/tslint-config": "^3.1.0-beta.1", + "@0x/contracts-utils": "^3.3.0-beta.1", + "@0x/web3-wrapper": "^6.1.0-beta.1", "@types/lodash": "4.14.104", "@types/mocha": "^5.2.7", "@types/node": "*", @@ -63,6 +69,7 @@ "chai-as-promised": "^7.1.0", "chai-bignumber": "^3.0.0", "dirty-chai": "^2.0.1", + "ethereumjs-util": "^5.1.1", "js-combinatorics": "^0.5.3", "make-promises-safe": "^1.1.0", "mocha": "^6.2.0", @@ -74,21 +81,16 @@ "typescript": "3.0.1" }, "dependencies": { - "@0x/base-contract": "^5.5.0-beta.0", - "@0x/contracts-asset-proxy": "^2.3.0-beta.0", - "@0x/contracts-dev-utils": "^0.1.0-beta.0", - "@0x/contracts-erc1155": "^1.2.0-beta.0", - "@0x/contracts-erc20": "^2.3.0-beta.0", - "@0x/contracts-erc721": "^2.2.0-beta.0", - "@0x/contracts-exchange-libs": "^3.1.0-beta.0", - "@0x/contracts-utils": "^3.3.0-beta.0", - "@0x/order-utils": "^8.5.0-beta.0", - "@0x/types": "^2.5.0-beta.0", - "@0x/typescript-typings": "^4.4.0-beta.0", - "@0x/utils": "^4.6.0-beta.0", - "@0x/web3-wrapper": "^6.1.0-beta.0", - "ethereum-types": "^2.2.0-beta.0", - "ethereumjs-util": "^5.1.1", + "@0x/base-contract": "^5.5.0-beta.1", + "@0x/contracts-dev-utils": "^0.1.0-beta.1", + "@0x/contracts-erc1155": "^1.2.0-beta.1", + "@0x/contracts-erc20": "^2.3.0-beta.1", + "@0x/contracts-erc721": "^2.2.0-beta.1", + "@0x/order-utils": "^8.5.0-beta.1", + "@0x/types": "^2.5.0-beta.1", + "@0x/typescript-typings": "^4.4.0-beta.1", + "@0x/utils": "^4.6.0-beta.1", + "ethereum-types": "^2.2.0-beta.1", "lodash": "^4.17.11" }, "publishConfig": { diff --git a/contracts/exchange/src/artifacts.ts b/contracts/exchange/src/artifacts.ts index 34354204c4..37310d8640 100644 --- a/contracts/exchange/src/artifacts.ts +++ b/contracts/exchange/src/artifacts.ts @@ -6,74 +6,5 @@ import { ContractArtifact } from 'ethereum-types'; import * as Exchange from '../generated-artifacts/Exchange.json'; -import * as IAssetProxy from '../generated-artifacts/IAssetProxy.json'; -import * as IAssetProxyDispatcher from '../generated-artifacts/IAssetProxyDispatcher.json'; -import * as IEIP1271Data from '../generated-artifacts/IEIP1271Data.json'; -import * as IEIP1271Wallet from '../generated-artifacts/IEIP1271Wallet.json'; import * as IExchange from '../generated-artifacts/IExchange.json'; -import * as IExchangeCore from '../generated-artifacts/IExchangeCore.json'; -import * as IMatchOrders from '../generated-artifacts/IMatchOrders.json'; -import * as IProtocolFees from '../generated-artifacts/IProtocolFees.json'; -import * as ISignatureValidator from '../generated-artifacts/ISignatureValidator.json'; -import * as IsolatedExchange from '../generated-artifacts/IsolatedExchange.json'; -import * as ITransactions from '../generated-artifacts/ITransactions.json'; -import * as ITransferSimulator from '../generated-artifacts/ITransferSimulator.json'; -import * as IWallet from '../generated-artifacts/IWallet.json'; -import * as IWrapperFunctions from '../generated-artifacts/IWrapperFunctions.json'; -import * as LibExchangeRichErrorDecoder from '../generated-artifacts/LibExchangeRichErrorDecoder.json'; -import * as MixinAssetProxyDispatcher from '../generated-artifacts/MixinAssetProxyDispatcher.json'; -import * as MixinExchangeCore from '../generated-artifacts/MixinExchangeCore.json'; -import * as MixinMatchOrders from '../generated-artifacts/MixinMatchOrders.json'; -import * as MixinProtocolFees from '../generated-artifacts/MixinProtocolFees.json'; -import * as MixinSignatureValidator from '../generated-artifacts/MixinSignatureValidator.json'; -import * as MixinTransactions from '../generated-artifacts/MixinTransactions.json'; -import * as MixinTransferSimulator from '../generated-artifacts/MixinTransferSimulator.json'; -import * as MixinWrapperFunctions from '../generated-artifacts/MixinWrapperFunctions.json'; -import * as ReentrancyTester from '../generated-artifacts/ReentrancyTester.json'; -import * as TestAssetProxyDispatcher from '../generated-artifacts/TestAssetProxyDispatcher.json'; -import * as TestExchangeInternals from '../generated-artifacts/TestExchangeInternals.json'; -import * as TestLibExchangeRichErrorDecoder from '../generated-artifacts/TestLibExchangeRichErrorDecoder.json'; -import * as TestProtocolFeeCollector from '../generated-artifacts/TestProtocolFeeCollector.json'; -import * as TestProtocolFees from '../generated-artifacts/TestProtocolFees.json'; -import * as TestProtocolFeesReceiver from '../generated-artifacts/TestProtocolFeesReceiver.json'; -import * as TestSignatureValidator from '../generated-artifacts/TestSignatureValidator.json'; -import * as TestTransactions from '../generated-artifacts/TestTransactions.json'; -import * as TestValidatorWallet from '../generated-artifacts/TestValidatorWallet.json'; -import * as TestWrapperFunctions from '../generated-artifacts/TestWrapperFunctions.json'; -export const artifacts = { - Exchange: Exchange as ContractArtifact, - MixinAssetProxyDispatcher: MixinAssetProxyDispatcher as ContractArtifact, - MixinExchangeCore: MixinExchangeCore as ContractArtifact, - MixinMatchOrders: MixinMatchOrders as ContractArtifact, - MixinProtocolFees: MixinProtocolFees as ContractArtifact, - MixinSignatureValidator: MixinSignatureValidator as ContractArtifact, - MixinTransactions: MixinTransactions as ContractArtifact, - MixinTransferSimulator: MixinTransferSimulator as ContractArtifact, - MixinWrapperFunctions: MixinWrapperFunctions as ContractArtifact, - IAssetProxy: IAssetProxy as ContractArtifact, - IAssetProxyDispatcher: IAssetProxyDispatcher as ContractArtifact, - IEIP1271Data: IEIP1271Data as ContractArtifact, - IEIP1271Wallet: IEIP1271Wallet as ContractArtifact, - IExchange: IExchange as ContractArtifact, - IExchangeCore: IExchangeCore as ContractArtifact, - IMatchOrders: IMatchOrders as ContractArtifact, - IProtocolFees: IProtocolFees as ContractArtifact, - ISignatureValidator: ISignatureValidator as ContractArtifact, - ITransactions: ITransactions as ContractArtifact, - ITransferSimulator: ITransferSimulator as ContractArtifact, - IWallet: IWallet as ContractArtifact, - IWrapperFunctions: IWrapperFunctions as ContractArtifact, - LibExchangeRichErrorDecoder: LibExchangeRichErrorDecoder as ContractArtifact, - IsolatedExchange: IsolatedExchange as ContractArtifact, - ReentrancyTester: ReentrancyTester as ContractArtifact, - TestAssetProxyDispatcher: TestAssetProxyDispatcher as ContractArtifact, - TestExchangeInternals: TestExchangeInternals as ContractArtifact, - TestLibExchangeRichErrorDecoder: TestLibExchangeRichErrorDecoder as ContractArtifact, - TestProtocolFeeCollector: TestProtocolFeeCollector as ContractArtifact, - TestProtocolFees: TestProtocolFees as ContractArtifact, - TestProtocolFeesReceiver: TestProtocolFeesReceiver as ContractArtifact, - TestSignatureValidator: TestSignatureValidator as ContractArtifact, - TestTransactions: TestTransactions as ContractArtifact, - TestValidatorWallet: TestValidatorWallet as ContractArtifact, - TestWrapperFunctions: TestWrapperFunctions as ContractArtifact, -}; +export const artifacts = { Exchange: Exchange as ContractArtifact, IExchange: IExchange as ContractArtifact }; diff --git a/contracts/exchange/test/balance_stores/balance_store.ts b/contracts/exchange/src/balance_stores/balance_store.ts similarity index 76% rename from contracts/exchange/test/balance_stores/balance_store.ts rename to contracts/exchange/src/balance_stores/balance_store.ts index a9a1b56941..c0ecb2de3d 100644 --- a/contracts/exchange/test/balance_stores/balance_store.ts +++ b/contracts/exchange/src/balance_stores/balance_store.ts @@ -1,12 +1,11 @@ import { BaseContract } from '@0x/base-contract'; -import { expect, TokenBalances } from '@0x/contracts-test-utils'; -import { BigNumber } from '@0x/utils'; +import { constants, expect, TokenBalances } from '@0x/contracts-test-utils'; import * as _ from 'lodash'; import { TokenAddresses, TokenContractsByName, TokenOwnersByName } from './types'; export class BalanceStore { - protected _balances: TokenBalances; + public balances: TokenBalances; protected _tokenAddresses: TokenAddresses; protected _ownerAddresses: string[]; private _addressNames: { @@ -19,7 +18,7 @@ export class BalanceStore { * @param tokenContractsByName Contracts of tokens to track balances of. */ public constructor(tokenOwnersByName: TokenOwnersByName, tokenContractsByName: Partial) { - this._balances = { erc20: {}, erc721: {}, erc1155: {}, eth: {} }; + this.balances = { erc20: {}, erc721: {}, erc1155: {}, eth: {} }; this._ownerAddresses = Object.values(tokenOwnersByName); _.defaults(tokenContractsByName, { erc20: {}, erc721: {}, erc1155: {} }); @@ -36,6 +35,17 @@ export class BalanceStore { }; } + /** + * Registers the given token owner in this balance store. The token owner's balance will be + * tracked in subsequent operations. + * @param address Address of the token owner + * @param name Name of the token owner + */ + public registerTokenOwner(address: string, name: string): void { + this._ownerAddresses.push(address); + this._addressNames[address] = name; + } + /** * Throws iff balance stores do not have the same entries. * @param rhs Balance store to compare to @@ -52,7 +62,7 @@ export class BalanceStore { * @param balanceStore to copy from. */ public cloneFrom(balanceStore: BalanceStore): void { - this._balances = _.cloneDeep(balanceStore._balances); + this.balances = _.cloneDeep(balanceStore.balances); this._tokenAddresses = _.cloneDeep(balanceStore._tokenAddresses); this._ownerAddresses = _.cloneDeep(balanceStore._ownerAddresses); this._addressNames = _.cloneDeep(balanceStore._addressNames); @@ -72,8 +82,8 @@ export class BalanceStore { */ private _assertEthBalancesEqual(rhs: BalanceStore): void { for (const ownerAddress of [...this._ownerAddresses, ...rhs._ownerAddresses]) { - const thisBalance = _.get(this._balances.eth, [ownerAddress], new BigNumber(0)); - const rhsBalance = _.get(rhs._balances.eth, [ownerAddress], new BigNumber(0)); + const thisBalance = _.get(this.balances.eth, [ownerAddress], constants.ZERO_AMOUNT); + const rhsBalance = _.get(rhs.balances.eth, [ownerAddress], constants.ZERO_AMOUNT); expect(thisBalance, `${this._readableAddressName(ownerAddress)} ETH balance`).to.bignumber.equal( rhsBalance, ); @@ -87,8 +97,8 @@ export class BalanceStore { private _assertErc20BalancesEqual(rhs: BalanceStore): void { for (const ownerAddress of [...this._ownerAddresses, ...rhs._ownerAddresses]) { for (const tokenAddress of [...this._tokenAddresses.erc20, ...rhs._tokenAddresses.erc20]) { - const thisBalance = _.get(this._balances.erc20, [ownerAddress, tokenAddress], new BigNumber(0)); - const rhsBalance = _.get(rhs._balances.erc20, [ownerAddress, tokenAddress], new BigNumber(0)); + const thisBalance = _.get(this.balances.erc20, [ownerAddress, tokenAddress], constants.ZERO_AMOUNT); + const rhsBalance = _.get(rhs.balances.erc20, [ownerAddress, tokenAddress], constants.ZERO_AMOUNT); expect( thisBalance, `${this._readableAddressName(ownerAddress)} ${this._readableAddressName(tokenAddress)} balance`, @@ -104,8 +114,8 @@ export class BalanceStore { private _assertErc721BalancesEqual(rhs: BalanceStore): void { for (const ownerAddress of [...this._ownerAddresses, ...rhs._ownerAddresses]) { for (const tokenAddress of [...this._tokenAddresses.erc721, ...rhs._tokenAddresses.erc721]) { - const thisBalance = _.get(this._balances.erc721, [ownerAddress, tokenAddress], []); - const rhsBalance = _.get(rhs._balances.erc721, [ownerAddress, tokenAddress], []); + const thisBalance = _.get(this.balances.erc721, [ownerAddress, tokenAddress], []); + const rhsBalance = _.get(rhs.balances.erc721, [ownerAddress, tokenAddress], []); expect( thisBalance, `${this._readableAddressName(ownerAddress)} ${this._readableAddressName(tokenAddress)} balance`, @@ -121,8 +131,8 @@ export class BalanceStore { private _assertErc1155BalancesEqual(rhs: BalanceStore): void { for (const ownerAddress of [...this._ownerAddresses, ...rhs._ownerAddresses]) { for (const tokenAddress of [...this._tokenAddresses.erc1155, ...rhs._tokenAddresses.erc1155]) { - const thisBalance = _.get(this._balances.erc1155, [ownerAddress, tokenAddress], {}); - const rhsBalance = _.get(rhs._balances.erc1155, [ownerAddress, tokenAddress], {}); + const thisBalance = _.get(this.balances.erc1155, [ownerAddress, tokenAddress], {}); + const rhsBalance = _.get(rhs.balances.erc1155, [ownerAddress, tokenAddress], {}); expect( thisBalance, `${this._readableAddressName(ownerAddress)} ${this._readableAddressName(tokenAddress)} balance`, diff --git a/contracts/exchange/test/balance_stores/blockchain_balance_store.ts b/contracts/exchange/src/balance_stores/blockchain_balance_store.ts similarity index 88% rename from contracts/exchange/test/balance_stores/blockchain_balance_store.ts rename to contracts/exchange/src/balance_stores/blockchain_balance_store.ts index 4cebeea2f9..cd31207578 100644 --- a/contracts/exchange/test/balance_stores/blockchain_balance_store.ts +++ b/contracts/exchange/src/balance_stores/blockchain_balance_store.ts @@ -53,7 +53,7 @@ export class BlockchainBalanceStore extends BalanceStore { this._ownerAddresses, await Promise.all(this._ownerAddresses.map(address => web3Wrapper.getBalanceInWeiAsync(address))), ); - this._balances.eth = ethBalances; + this.balances.eth = ethBalances; } /** @@ -68,7 +68,7 @@ export class BlockchainBalanceStore extends BalanceStore { ), ), ); - this._balances.erc20 = _.zipObject(this._ownerAddresses, balances); + this.balances.erc20 = _.zipObject(this._ownerAddresses, balances); } /** @@ -80,11 +80,11 @@ export class BlockchainBalanceStore extends BalanceStore { this._tokenContracts.erc721, ); - this._balances.erc721 = {}; + this.balances.erc721 = {}; for (const [tokenAddress, tokenIds] of Object.entries(this._tokenIds.erc721)) { for (const tokenId of tokenIds) { const tokenOwner = await erc721ContractsByAddress[tokenAddress].ownerOf(tokenId).callAsync(); - _.update(this._balances.erc721, [tokenOwner, tokenAddress], nfts => _.union([tokenId], nfts).sort()); + _.update(this.balances.erc721, [tokenOwner, tokenAddress], nfts => _.union([tokenId], nfts).sort()); } } } @@ -115,20 +115,20 @@ export class BlockchainBalanceStore extends BalanceStore { let i = 0; for (const tokenOwner of this._ownerAddresses) { // Fungible tokens - _.set(this._balances.erc1155, [tokenOwner, tokenAddress, 'fungible'], {}); + _.set(this.balances.erc1155, [tokenOwner, tokenAddress, 'fungible'], {}); for (const tokenId of fungible) { _.set( - this._balances.erc1155, + this.balances.erc1155, [tokenOwner, tokenAddress, 'fungible', tokenId.toString()], balances[i++], ); } // Non-fungible tokens - _.set(this._balances.erc1155, [tokenOwner, tokenAddress, 'nonFungible'], []); + _.set(this.balances.erc1155, [tokenOwner, tokenAddress, 'nonFungible'], []); for (const tokenId of nonFungible) { const isOwner = balances[i++]; if (isOwner.isEqualTo(1)) { - _.update(this._balances.erc1155, [tokenOwner, tokenAddress, 'nonFungible'], nfts => + _.update(this.balances.erc1155, [tokenOwner, tokenAddress, 'nonFungible'], nfts => _.union([tokenId], nfts).sort(), ); } diff --git a/contracts/exchange/test/balance_stores/local_balance_store.ts b/contracts/exchange/src/balance_stores/local_balance_store.ts similarity index 76% rename from contracts/exchange/test/balance_stores/local_balance_store.ts rename to contracts/exchange/src/balance_stores/local_balance_store.ts index 8fb612f219..ed2a357e07 100644 --- a/contracts/exchange/test/balance_stores/local_balance_store.ts +++ b/contracts/exchange/src/balance_stores/local_balance_store.ts @@ -39,7 +39,7 @@ export class LocalBalanceStore extends BalanceStore { * @param amount Amount to decrease the balance by. */ public burnGas(senderAddress: string, amount: Numberish): void { - this._balances.eth[senderAddress] = this._balances.eth[senderAddress].minus(amount); + this.balances.eth[senderAddress] = this.balances.eth[senderAddress].minus(amount); } /** @@ -48,8 +48,8 @@ export class LocalBalanceStore extends BalanceStore { * @param amount Amount to wrap. */ public wrapEth(senderAddress: string, wethAddress: string, amount: Numberish): void { - this._balances.eth[senderAddress] = this._balances.eth[senderAddress].minus(amount); - _.update(this._balances.erc20, [senderAddress, wethAddress], balance => + this.balances.eth[senderAddress] = this.balances.eth[senderAddress].minus(amount); + _.update(this.balances.erc20, [senderAddress, wethAddress], balance => (balance || constants.ZERO_AMOUNT).plus(amount), ); } @@ -61,8 +61,8 @@ export class LocalBalanceStore extends BalanceStore { * @param amount Amount of ETH to transfer. */ public sendEth(fromAddress: string, toAddress: string, amount: Numberish): void { - this._balances.eth[fromAddress] = this._balances.eth[fromAddress].minus(amount); - this._balances.eth[toAddress] = this._balances.eth[toAddress].plus(amount); + this.balances.eth[fromAddress] = this.balances.eth[fromAddress].minus(amount); + this.balances.eth[toAddress] = this.balances.eth[toAddress].plus(amount); } /** @@ -85,20 +85,20 @@ export class LocalBalanceStore extends BalanceStore { switch (assetProxyId) { case AssetProxyId.ERC20: { // tslint:disable-next-line:no-unused-variable - const [proxyId, tokenAddress] = await this._devUtils.decodeERC20AssetData(assetData).callAsync(); - _.update(this._balances.erc20, [fromAddress, tokenAddress], balance => balance.minus(amount)); - _.update(this._balances.erc20, [toAddress, tokenAddress], balance => + const [_proxyId, tokenAddress] = await this._devUtils.decodeERC20AssetData(assetData).callAsync(); + _.update(this.balances.erc20, [fromAddress, tokenAddress], balance => balance.minus(amount)); + _.update(this.balances.erc20, [toAddress, tokenAddress], balance => (balance || constants.ZERO_AMOUNT).plus(amount), ); break; } case AssetProxyId.ERC721: { // tslint:disable-next-line:no-unused-variable - const [proxyId, tokenAddress, tokenId] = await this._devUtils + const [_proxyId, tokenAddress, tokenId] = await this._devUtils .decodeERC721AssetData(assetData) .callAsync(); - const fromTokens = _.get(this._balances.erc721, [fromAddress, tokenAddress], []); - const toTokens = _.get(this._balances.erc721, [toAddress, tokenAddress], []); + const fromTokens = _.get(this.balances.erc721, [fromAddress, tokenAddress], []); + const toTokens = _.get(this.balances.erc721, [toAddress, tokenAddress], []); if (amount.gte(1)) { const tokenIndex = _.findIndex(fromTokens as BigNumber[], t => t.eq(tokenId)); if (tokenIndex !== -1) { @@ -107,26 +107,26 @@ export class LocalBalanceStore extends BalanceStore { toTokens.sort(); } } - _.set(this._balances.erc721, [fromAddress, tokenAddress], fromTokens); - _.set(this._balances.erc721, [toAddress, tokenAddress], toTokens); + _.set(this.balances.erc721, [fromAddress, tokenAddress], fromTokens); + _.set(this.balances.erc721, [toAddress, tokenAddress], toTokens); break; } case AssetProxyId.ERC1155: { const [ - proxyId, // tslint:disable-line:no-unused-variable + _proxyId, // tslint:disable-line:no-unused-variable tokenAddress, tokenIds, tokenValues, ] = await this._devUtils.decodeERC1155AssetData(assetData).callAsync(); const fromBalances = { // tslint:disable-next-line:no-inferred-empty-object-type - fungible: _.get(this._balances.erc1155, [fromAddress, tokenAddress, 'fungible'], {}), - nonFungible: _.get(this._balances.erc1155, [fromAddress, tokenAddress, 'nonFungible'], []), + fungible: _.get(this.balances.erc1155, [fromAddress, tokenAddress, 'fungible'], {}), + nonFungible: _.get(this.balances.erc1155, [fromAddress, tokenAddress, 'nonFungible'], []), }; const toBalances = { // tslint:disable-next-line:no-inferred-empty-object-type - fungible: _.get(this._balances.erc1155, [toAddress, tokenAddress, 'fungible'], {}), - nonFungible: _.get(this._balances.erc1155, [toAddress, tokenAddress, 'nonFungible'], []), + fungible: _.get(this.balances.erc1155, [toAddress, tokenAddress, 'fungible'], {}), + nonFungible: _.get(this.balances.erc1155, [toAddress, tokenAddress, 'nonFungible'], []), }; for (const [i, tokenId] of tokenIds.entries()) { const tokenValue = tokenValues[i]; @@ -149,13 +149,13 @@ export class LocalBalanceStore extends BalanceStore { } } } - _.set(this._balances.erc1155, [fromAddress, tokenAddress], fromBalances); - _.set(this._balances.erc1155, [toAddress, tokenAddress], toBalances); + _.set(this.balances.erc1155, [fromAddress, tokenAddress], fromBalances); + _.set(this.balances.erc1155, [toAddress, tokenAddress], toBalances); break; } case AssetProxyId.MultiAsset: { // tslint:disable-next-line:no-unused-variable - const [proxyId, amounts, nestedAssetData] = await this._devUtils + const [_proxyId, amounts, nestedAssetData] = await this._devUtils .decodeMultiAssetData(assetData) .callAsync(); for (const [i, amt] of amounts.entries()) { diff --git a/contracts/exchange/test/balance_stores/types.ts b/contracts/exchange/src/balance_stores/types.ts similarity index 100% rename from contracts/exchange/test/balance_stores/types.ts rename to contracts/exchange/src/balance_stores/types.ts diff --git a/contracts/exchange/test/utils/exchange_data_encoder.ts b/contracts/exchange/src/exchange_data_encoder.ts similarity index 82% rename from contracts/exchange/test/utils/exchange_data_encoder.ts rename to contracts/exchange/src/exchange_data_encoder.ts index 87d7e227c2..06830bf8fe 100644 --- a/contracts/exchange/test/utils/exchange_data_encoder.ts +++ b/contracts/exchange/src/exchange_data_encoder.ts @@ -1,22 +1,22 @@ -import { constants, provider } from '@0x/contracts-test-utils'; +import { constants, ExchangeFunctionName, provider } from '@0x/contracts-test-utils'; import { orderHashUtils } from '@0x/order-utils'; import { SignedOrder } from '@0x/types'; -import { constants as exchangeConstants, ExchangeFunctionName, IExchangeContract } from '../../src'; +import { IExchangeContract } from './wrappers'; export const exchangeDataEncoder = { encodeOrdersToExchangeData(fnName: ExchangeFunctionName, orders: SignedOrder[] = []): string { const exchangeInstance = new IExchangeContract(constants.NULL_ADDRESS, provider); let data; - if (exchangeConstants.SINGLE_FILL_FN_NAMES.indexOf(fnName) !== -1) { + if (constants.SINGLE_FILL_FN_NAMES.indexOf(fnName) !== -1) { data = (exchangeInstance as any) [fnName](orders[0], orders[0].takerAssetAmount, orders[0].signature) .getABIEncodedTransactionData(); - } else if (exchangeConstants.BATCH_FILL_FN_NAMES.indexOf(fnName) !== -1) { + } else if (constants.BATCH_FILL_FN_NAMES.indexOf(fnName) !== -1) { data = (exchangeInstance as any) [fnName](orders, orders.map(order => order.takerAssetAmount), orders.map(order => order.signature)) .getABIEncodedTransactionData(); - } else if (exchangeConstants.MARKET_FILL_FN_NAMES.indexOf(fnName) !== -1) { + } else if (constants.MARKET_FILL_FN_NAMES.indexOf(fnName) !== -1) { const fillAsset = /Buy/.test(fnName) ? 'makerAssetAmount' : 'takerAssetAmount'; data = (exchangeInstance as any) [fnName]( @@ -25,7 +25,7 @@ export const exchangeDataEncoder = { orders.map(order => order.signature), ) .getABIEncodedTransactionData(); - } else if (exchangeConstants.MATCH_ORDER_FN_NAMES.indexOf(fnName) !== -1) { + } else if (constants.MATCH_ORDER_FN_NAMES.indexOf(fnName) !== -1) { data = exchangeInstance .matchOrders(orders[0], orders[1], orders[0].signature, orders[1].signature) .getABIEncodedTransactionData(); diff --git a/contracts/exchange/src/index.ts b/contracts/exchange/src/index.ts index 4b64e3df2b..db2a3f1ec4 100644 --- a/contracts/exchange/src/index.ts +++ b/contracts/exchange/src/index.ts @@ -1,5 +1,5 @@ export * from './artifacts'; export * from './wrappers'; -export * from '../test/balance_stores'; -export * from '../test/utils'; -export * from './wrapper_interfaces'; +export { BlockchainBalanceStore } from './balance_stores/blockchain_balance_store'; +export { LocalBalanceStore } from './balance_stores/local_balance_store'; +export { exchangeDataEncoder } from './exchange_data_encoder'; diff --git a/contracts/exchange/src/wrappers.ts b/contracts/exchange/src/wrappers.ts index 28922d2dfc..acb3e1d6c0 100644 --- a/contracts/exchange/src/wrappers.ts +++ b/contracts/exchange/src/wrappers.ts @@ -4,37 +4,4 @@ * ----------------------------------------------------------------------------- */ export * from '../generated-wrappers/exchange'; -export * from '../generated-wrappers/i_asset_proxy'; -export * from '../generated-wrappers/i_asset_proxy_dispatcher'; -export * from '../generated-wrappers/i_e_i_p1271_data'; -export * from '../generated-wrappers/i_e_i_p1271_wallet'; export * from '../generated-wrappers/i_exchange'; -export * from '../generated-wrappers/i_exchange_core'; -export * from '../generated-wrappers/i_match_orders'; -export * from '../generated-wrappers/i_protocol_fees'; -export * from '../generated-wrappers/i_signature_validator'; -export * from '../generated-wrappers/i_transactions'; -export * from '../generated-wrappers/i_transfer_simulator'; -export * from '../generated-wrappers/i_wallet'; -export * from '../generated-wrappers/i_wrapper_functions'; -export * from '../generated-wrappers/isolated_exchange'; -export * from '../generated-wrappers/lib_exchange_rich_error_decoder'; -export * from '../generated-wrappers/mixin_asset_proxy_dispatcher'; -export * from '../generated-wrappers/mixin_exchange_core'; -export * from '../generated-wrappers/mixin_match_orders'; -export * from '../generated-wrappers/mixin_protocol_fees'; -export * from '../generated-wrappers/mixin_signature_validator'; -export * from '../generated-wrappers/mixin_transactions'; -export * from '../generated-wrappers/mixin_transfer_simulator'; -export * from '../generated-wrappers/mixin_wrapper_functions'; -export * from '../generated-wrappers/reentrancy_tester'; -export * from '../generated-wrappers/test_asset_proxy_dispatcher'; -export * from '../generated-wrappers/test_exchange_internals'; -export * from '../generated-wrappers/test_lib_exchange_rich_error_decoder'; -export * from '../generated-wrappers/test_protocol_fee_collector'; -export * from '../generated-wrappers/test_protocol_fees'; -export * from '../generated-wrappers/test_protocol_fees_receiver'; -export * from '../generated-wrappers/test_signature_validator'; -export * from '../generated-wrappers/test_transactions'; -export * from '../generated-wrappers/test_validator_wallet'; -export * from '../generated-wrappers/test_wrapper_functions'; diff --git a/contracts/exchange/test/artifacts.ts b/contracts/exchange/test/artifacts.ts new file mode 100644 index 0000000000..8eb424b93b --- /dev/null +++ b/contracts/exchange/test/artifacts.ts @@ -0,0 +1,79 @@ +/* + * ----------------------------------------------------------------------------- + * Warning: This file is auto-generated by contracts-gen. Don't edit manually. + * ----------------------------------------------------------------------------- + */ +import { ContractArtifact } from 'ethereum-types'; + +import * as Exchange from '../test/generated-artifacts/Exchange.json'; +import * as IAssetProxy from '../test/generated-artifacts/IAssetProxy.json'; +import * as IAssetProxyDispatcher from '../test/generated-artifacts/IAssetProxyDispatcher.json'; +import * as IEIP1271Data from '../test/generated-artifacts/IEIP1271Data.json'; +import * as IEIP1271Wallet from '../test/generated-artifacts/IEIP1271Wallet.json'; +import * as IExchange from '../test/generated-artifacts/IExchange.json'; +import * as IExchangeCore from '../test/generated-artifacts/IExchangeCore.json'; +import * as IMatchOrders from '../test/generated-artifacts/IMatchOrders.json'; +import * as IProtocolFees from '../test/generated-artifacts/IProtocolFees.json'; +import * as ISignatureValidator from '../test/generated-artifacts/ISignatureValidator.json'; +import * as IsolatedExchange from '../test/generated-artifacts/IsolatedExchange.json'; +import * as ITransactions from '../test/generated-artifacts/ITransactions.json'; +import * as ITransferSimulator from '../test/generated-artifacts/ITransferSimulator.json'; +import * as IWallet from '../test/generated-artifacts/IWallet.json'; +import * as IWrapperFunctions from '../test/generated-artifacts/IWrapperFunctions.json'; +import * as LibExchangeRichErrorDecoder from '../test/generated-artifacts/LibExchangeRichErrorDecoder.json'; +import * as MixinAssetProxyDispatcher from '../test/generated-artifacts/MixinAssetProxyDispatcher.json'; +import * as MixinExchangeCore from '../test/generated-artifacts/MixinExchangeCore.json'; +import * as MixinMatchOrders from '../test/generated-artifacts/MixinMatchOrders.json'; +import * as MixinProtocolFees from '../test/generated-artifacts/MixinProtocolFees.json'; +import * as MixinSignatureValidator from '../test/generated-artifacts/MixinSignatureValidator.json'; +import * as MixinTransactions from '../test/generated-artifacts/MixinTransactions.json'; +import * as MixinTransferSimulator from '../test/generated-artifacts/MixinTransferSimulator.json'; +import * as MixinWrapperFunctions from '../test/generated-artifacts/MixinWrapperFunctions.json'; +import * as ReentrancyTester from '../test/generated-artifacts/ReentrancyTester.json'; +import * as TestAssetProxyDispatcher from '../test/generated-artifacts/TestAssetProxyDispatcher.json'; +import * as TestExchangeInternals from '../test/generated-artifacts/TestExchangeInternals.json'; +import * as TestLibExchangeRichErrorDecoder from '../test/generated-artifacts/TestLibExchangeRichErrorDecoder.json'; +import * as TestProtocolFeeCollector from '../test/generated-artifacts/TestProtocolFeeCollector.json'; +import * as TestProtocolFees from '../test/generated-artifacts/TestProtocolFees.json'; +import * as TestProtocolFeesReceiver from '../test/generated-artifacts/TestProtocolFeesReceiver.json'; +import * as TestSignatureValidator from '../test/generated-artifacts/TestSignatureValidator.json'; +import * as TestTransactions from '../test/generated-artifacts/TestTransactions.json'; +import * as TestValidatorWallet from '../test/generated-artifacts/TestValidatorWallet.json'; +import * as TestWrapperFunctions from '../test/generated-artifacts/TestWrapperFunctions.json'; +export const artifacts = { + Exchange: Exchange as ContractArtifact, + MixinAssetProxyDispatcher: MixinAssetProxyDispatcher as ContractArtifact, + MixinExchangeCore: MixinExchangeCore as ContractArtifact, + MixinMatchOrders: MixinMatchOrders as ContractArtifact, + MixinProtocolFees: MixinProtocolFees as ContractArtifact, + MixinSignatureValidator: MixinSignatureValidator as ContractArtifact, + MixinTransactions: MixinTransactions as ContractArtifact, + MixinTransferSimulator: MixinTransferSimulator as ContractArtifact, + MixinWrapperFunctions: MixinWrapperFunctions as ContractArtifact, + IAssetProxy: IAssetProxy as ContractArtifact, + IAssetProxyDispatcher: IAssetProxyDispatcher as ContractArtifact, + IEIP1271Data: IEIP1271Data as ContractArtifact, + IEIP1271Wallet: IEIP1271Wallet as ContractArtifact, + IExchange: IExchange as ContractArtifact, + IExchangeCore: IExchangeCore as ContractArtifact, + IMatchOrders: IMatchOrders as ContractArtifact, + IProtocolFees: IProtocolFees as ContractArtifact, + ISignatureValidator: ISignatureValidator as ContractArtifact, + ITransactions: ITransactions as ContractArtifact, + ITransferSimulator: ITransferSimulator as ContractArtifact, + IWallet: IWallet as ContractArtifact, + IWrapperFunctions: IWrapperFunctions as ContractArtifact, + LibExchangeRichErrorDecoder: LibExchangeRichErrorDecoder as ContractArtifact, + IsolatedExchange: IsolatedExchange as ContractArtifact, + ReentrancyTester: ReentrancyTester as ContractArtifact, + TestAssetProxyDispatcher: TestAssetProxyDispatcher as ContractArtifact, + TestExchangeInternals: TestExchangeInternals as ContractArtifact, + TestLibExchangeRichErrorDecoder: TestLibExchangeRichErrorDecoder as ContractArtifact, + TestProtocolFeeCollector: TestProtocolFeeCollector as ContractArtifact, + TestProtocolFees: TestProtocolFees as ContractArtifact, + TestProtocolFeesReceiver: TestProtocolFeesReceiver as ContractArtifact, + TestSignatureValidator: TestSignatureValidator as ContractArtifact, + TestTransactions: TestTransactions as ContractArtifact, + TestValidatorWallet: TestValidatorWallet as ContractArtifact, + TestWrapperFunctions: TestWrapperFunctions as ContractArtifact, +}; diff --git a/contracts/exchange/test/assertion_wrappers/fill_order_wrapper.ts b/contracts/exchange/test/assertion_wrappers/fill_order_wrapper.ts index cb2878dbed..a5dc4cd6ad 100644 --- a/contracts/exchange/test/assertion_wrappers/fill_order_wrapper.ts +++ b/contracts/exchange/test/assertion_wrappers/fill_order_wrapper.ts @@ -14,15 +14,12 @@ import { BigNumber } from '@0x/utils'; import { TransactionReceiptWithDecodedLogs } from 'ethereum-types'; import * as _ from 'lodash'; -import { - BalanceStore, - BlockchainBalanceStore, - ExchangeContract, - LocalBalanceStore, - TokenContractsByName, - TokenIds, - TokenOwnersByName, -} from '../../src'; +import { ExchangeContract } from '../wrappers'; + +import { BalanceStore } from '../../src/balance_stores/balance_store'; +import { BlockchainBalanceStore } from '../../src/balance_stores/blockchain_balance_store'; +import { LocalBalanceStore } from '../../src/balance_stores/local_balance_store'; +import { TokenContractsByName, TokenIds, TokenOwnersByName } from '../../src/balance_stores/types'; export class FillOrderWrapper { private readonly _blockchainBalanceStore: BlockchainBalanceStore; diff --git a/contracts/exchange/test/balance_stores/index.ts b/contracts/exchange/test/balance_stores/index.ts deleted file mode 100644 index cb0e290bca..0000000000 --- a/contracts/exchange/test/balance_stores/index.ts +++ /dev/null @@ -1,4 +0,0 @@ -export { BalanceStore } from './balance_store'; -export { LocalBalanceStore } from './local_balance_store'; -export { BlockchainBalanceStore } from './blockchain_balance_store'; -export * from './types'; diff --git a/contracts/exchange/test/codesize.ts b/contracts/exchange/test/codesize.ts index e7b2d7a498..a3091c6e6c 100644 --- a/contracts/exchange/test/codesize.ts +++ b/contracts/exchange/test/codesize.ts @@ -4,7 +4,7 @@ import * as chai from 'chai'; chaiSetup.configure(); const expect = chai.expect; -import { artifacts } from '../src'; +import { artifacts } from './artifacts'; describe('Contract Size Checks', () => { describe('Exchange', () => { diff --git a/contracts/exchange/test/core.ts b/contracts/exchange/test/core.ts index ff281a5ecd..743d415fcf 100644 --- a/contracts/exchange/test/core.ts +++ b/contracts/exchange/test/core.ts @@ -11,7 +11,7 @@ import { TestStaticCallTargetContract, } from '@0x/contracts-asset-proxy'; import { DevUtilsContract } from '@0x/contracts-dev-utils'; -import { ERC1155MintableContract } from '@0x/contracts-erc1155'; +import { ERC1155MintableContract, Erc1155Wrapper } from '@0x/contracts-erc1155'; import { artifacts as erc20Artifacts, DummyERC20TokenContract, @@ -40,17 +40,12 @@ import { Web3Wrapper } from '@0x/web3-wrapper'; import { LogWithDecodedArgs } from 'ethereum-types'; import * as _ from 'lodash'; -import { Erc1155Wrapper } from '../../erc1155/lib/src'; -import { - artifacts, - ExchangeCancelEventArgs, - ExchangeContract, - ExchangeWrapper, - TestValidatorWalletContract, - ValidatorWalletAction, -} from '../src'; +import { ValidatorWalletAction } from './utils/constants'; +import { ExchangeWrapper } from './utils/exchange_wrapper'; +import { artifacts } from './artifacts'; import { FillOrderWrapper } from './assertion_wrappers/fill_order_wrapper'; +import { ExchangeCancelEventArgs, ExchangeContract, TestValidatorWalletContract } from './wrappers'; // tslint:disable:no-unnecessary-type-assertion blockchainTests.resets('Exchange core', () => { diff --git a/contracts/exchange/test/dispatcher.ts b/contracts/exchange/test/dispatcher.ts index a7794ad8ba..51fd67329a 100644 --- a/contracts/exchange/test/dispatcher.ts +++ b/contracts/exchange/test/dispatcher.ts @@ -24,11 +24,8 @@ import * as chai from 'chai'; import { LogWithDecodedArgs } from 'ethereum-types'; import * as _ from 'lodash'; -import { - artifacts, - TestAssetProxyDispatcherAssetProxyRegisteredEventArgs, - TestAssetProxyDispatcherContract, -} from '../src'; +import { artifacts } from './artifacts'; +import { TestAssetProxyDispatcherAssetProxyRegisteredEventArgs, TestAssetProxyDispatcherContract } from './wrappers'; import { dependencyArtifacts } from './utils/dependency_artifacts'; diff --git a/packages/order-utils/test/exchange_transfer_simulator_test.ts b/contracts/exchange/test/exchange_transfer_simulator_test.ts similarity index 72% rename from packages/order-utils/test/exchange_transfer_simulator_test.ts rename to contracts/exchange/test/exchange_transfer_simulator_test.ts index 1c06828375..6c9359c232 100644 --- a/packages/order-utils/test/exchange_transfer_simulator_test.ts +++ b/contracts/exchange/test/exchange_transfer_simulator_test.ts @@ -1,29 +1,22 @@ -import { - DevUtilsContract, - DummyERC20TokenContract, - ERC20ProxyContract, - ERC20TokenContract, -} from '@0x/abi-gen-wrappers'; -import * as artifacts from '@0x/contract-artifacts'; -import { BlockchainLifecycle, devConstants } from '@0x/dev-utils'; +import { artifacts as assetProxyArtifacts, ERC20ProxyContract } from '@0x/contracts-asset-proxy'; +import { DevUtilsContract } from '@0x/contracts-dev-utils'; +import { artifacts as erc20Artifacts, DummyERC20TokenContract, ERC20TokenContract } from '@0x/contracts-erc20'; +import { blockchainTests, chaiSetup, constants } from '@0x/contracts-test-utils'; import { ExchangeContractErrs } from '@0x/types'; import { BigNumber } from '@0x/utils'; import * as chai from 'chai'; -import { constants } from '../src/constants'; -import { ExchangeTransferSimulator } from '../src/exchange_transfer_simulator'; -import { BalanceAndProxyAllowanceLazyStore } from '../src/store/balance_and_proxy_allowance_lazy_store'; -import { TradeSide, TransferType } from '../src/types'; - -import { chaiSetup } from './utils/chai_setup'; +import { ExchangeTransferSimulator } from './utils/exchange_transfer_simulator'; import { SimpleERC20BalanceAndProxyAllowanceFetcher } from './utils/simple_erc20_balance_and_proxy_allowance_fetcher'; -import { provider, web3Wrapper } from './utils/web3_wrapper'; +import { BalanceAndProxyAllowanceLazyStore } from './utils/store/balance_and_proxy_allowance_lazy_store'; +import { TradeSide, TransferType } from './utils/types'; chaiSetup.configure(); const expect = chai.expect; -const blockchainLifecycle = new BlockchainLifecycle(web3Wrapper); -describe('ExchangeTransferSimulator', async () => { +const GAS_LIMIT = 9e6; + +blockchainTests('ExchangeTransferSimulator', env => { const transferAmount = new BigNumber(5); let userAddresses: string[]; let dummyERC20Token: DummyERC20TokenContract; @@ -32,27 +25,26 @@ describe('ExchangeTransferSimulator', async () => { let recipient: string; let exampleAssetData: string; let exchangeTransferSimulator: ExchangeTransferSimulator; - let txHash: string; let erc20ProxyAddress: string; - const devUtils = new DevUtilsContract(constants.NULL_ADDRESS, provider); + const devUtils = new DevUtilsContract(constants.NULL_ADDRESS, env.provider); before(async function(): Promise { const mochaTestTimeoutMs = 20000; this.timeout(mochaTestTimeoutMs); // tslint:disable-line:no-invalid-this - userAddresses = await web3Wrapper.getAvailableAddressesAsync(); + userAddresses = await env.web3Wrapper.getAvailableAddressesAsync(); [coinbase, sender, recipient] = userAddresses; const txDefaults = { - gas: devConstants.GAS_LIMIT, - from: devConstants.TESTRPC_FIRST_ADDRESS, + gas: GAS_LIMIT, + from: userAddresses[0], }; - await blockchainLifecycle.startAsync(); + await env.blockchainLifecycle.startAsync(); const erc20Proxy = await ERC20ProxyContract.deployFrom0xArtifactAsync( - artifacts.ERC20Proxy, - provider, + assetProxyArtifacts.ERC20Proxy, + env.provider, txDefaults, - artifacts, + assetProxyArtifacts, ); erc20ProxyAddress = erc20Proxy.address; @@ -62,10 +54,10 @@ describe('ExchangeTransferSimulator', async () => { const decimals = new BigNumber(18); // tslint:disable-next-line:no-unused-variable dummyERC20Token = await DummyERC20TokenContract.deployFrom0xArtifactAsync( - artifacts.DummyERC20Token, - provider, + erc20Artifacts.DummyERC20Token, + env.provider, txDefaults, - artifacts, + erc20Artifacts, name, symbol, decimals, @@ -75,13 +67,13 @@ describe('ExchangeTransferSimulator', async () => { exampleAssetData = await devUtils.encodeERC20AssetData(dummyERC20Token.address).callAsync(); }); beforeEach(async () => { - await blockchainLifecycle.startAsync(); + await env.blockchainLifecycle.startAsync(); }); afterEach(async () => { - await blockchainLifecycle.revertAsync(); + await env.blockchainLifecycle.revertAsync(); }); after(async () => { - await blockchainLifecycle.revertAsync(); + await env.blockchainLifecycle.revertAsync(); }); describe('#transferFromAsync', function(): void { // HACK: For some reason these tests need a slightly longer timeout @@ -95,7 +87,7 @@ describe('ExchangeTransferSimulator', async () => { const balanceAndProxyAllowanceLazyStore = new BalanceAndProxyAllowanceLazyStore( simpleERC20BalanceAndProxyAllowanceFetcher, ); - exchangeTransferSimulator = new ExchangeTransferSimulator(balanceAndProxyAllowanceLazyStore); + exchangeTransferSimulator = new ExchangeTransferSimulator(balanceAndProxyAllowanceLazyStore, devUtils); }); it("throws if the user doesn't have enough allowance", async () => { return expect( @@ -110,10 +102,9 @@ describe('ExchangeTransferSimulator', async () => { ).to.be.rejectedWith(ExchangeContractErrs.InsufficientTakerAllowance); }); it("throws if the user doesn't have enough balance", async () => { - txHash = await dummyERC20Token.approve(erc20ProxyAddress, transferAmount).sendTransactionAsync({ + await dummyERC20Token.approve(erc20ProxyAddress, transferAmount).awaitTransactionSuccessAsync({ from: sender, }); - await web3Wrapper.awaitTransactionSuccessAsync(txHash); return expect( exchangeTransferSimulator.transferFromAsync( exampleAssetData, @@ -126,15 +117,12 @@ describe('ExchangeTransferSimulator', async () => { ).to.be.rejectedWith(ExchangeContractErrs.InsufficientMakerBalance); }); it('updates balances and proxyAllowance after transfer', async () => { - txHash = await dummyERC20Token.transfer(sender, transferAmount).sendTransactionAsync({ + await dummyERC20Token.transfer(sender, transferAmount).awaitTransactionSuccessAsync({ from: coinbase, }); - await web3Wrapper.awaitTransactionSuccessAsync(txHash); - - txHash = await dummyERC20Token.approve(erc20ProxyAddress, transferAmount).sendTransactionAsync({ + await dummyERC20Token.approve(erc20ProxyAddress, transferAmount).awaitTransactionSuccessAsync({ from: sender, }); - await web3Wrapper.awaitTransactionSuccessAsync(txHash); await exchangeTransferSimulator.transferFromAsync( exampleAssetData, @@ -153,16 +141,14 @@ describe('ExchangeTransferSimulator', async () => { expect(senderProxyAllowance).to.be.bignumber.equal(0); }); it("doesn't update proxyAllowance after transfer if unlimited", async () => { - txHash = await dummyERC20Token.transfer(sender, transferAmount).sendTransactionAsync({ + await dummyERC20Token.transfer(sender, transferAmount).awaitTransactionSuccessAsync({ from: coinbase, }); - await web3Wrapper.awaitTransactionSuccessAsync(txHash); - txHash = await dummyERC20Token + await dummyERC20Token .approve(erc20ProxyAddress, constants.UNLIMITED_ALLOWANCE_IN_BASE_UNITS) - .sendTransactionAsync({ + .awaitTransactionSuccessAsync({ from: sender, }); - await web3Wrapper.awaitTransactionSuccessAsync(txHash); await exchangeTransferSimulator.transferFromAsync( exampleAssetData, sender, diff --git a/contracts/exchange/test/fill_order.ts b/contracts/exchange/test/fill_order.ts index dee68e6a57..dfd00e01e3 100644 --- a/contracts/exchange/test/fill_order.ts +++ b/contracts/exchange/test/fill_order.ts @@ -1,6 +1,11 @@ -import { blockchainTests, describe } from '@0x/contracts-test-utils'; +import { DevUtilsContract } from '@0x/contracts-dev-utils'; +import { blockchainTests, constants, describe, provider } from '@0x/contracts-test-utils'; import * as _ from 'lodash'; +import { + FillOrderCombinatorialUtils, + fillOrderCombinatorialUtilsFactoryAsync, +} from './utils/fill_order_combinatorial_utils'; import { AllowanceAmountScenario, AssetDataScenario, @@ -13,11 +18,6 @@ import { TakerScenario, } from './utils/fill_order_scenarios'; -import { - FillOrderCombinatorialUtils, - fillOrderCombinatorialUtilsFactoryAsync, -} from './utils/fill_order_combinatorial_utils'; - const defaultFillScenario = { orderScenario: { takerScenario: TakerScenario.Unspecified, @@ -49,8 +49,10 @@ const defaultFillScenario = { blockchainTests.resets('FillOrder Tests', ({ web3Wrapper, txDefaults }) => { let fillOrderCombinatorialUtils: FillOrderCombinatorialUtils; + let devUtils: DevUtilsContract; before(async () => { + devUtils = new DevUtilsContract(constants.NULL_ADDRESS, provider); fillOrderCombinatorialUtils = await fillOrderCombinatorialUtilsFactoryAsync(web3Wrapper, txDefaults); }); @@ -63,7 +65,7 @@ blockchainTests.resets('FillOrder Tests', ({ web3Wrapper, txDefaults }) => { takerAssetAmountScenario: OrderAssetAmountScenario.Small, }, }; - await fillOrderCombinatorialUtils.testFillOrderScenarioSuccessAsync(fillScenario); + await fillOrderCombinatorialUtils.testFillOrderScenarioSuccessAsync(fillScenario, devUtils); }); it('should transfer the correct amounts when makerAssetAmount < takerAssetAmount', async () => { @@ -74,7 +76,7 @@ blockchainTests.resets('FillOrder Tests', ({ web3Wrapper, txDefaults }) => { makerAssetAmountScenario: OrderAssetAmountScenario.Small, }, }; - await fillOrderCombinatorialUtils.testFillOrderScenarioSuccessAsync(fillScenario); + await fillOrderCombinatorialUtils.testFillOrderScenarioSuccessAsync(fillScenario, devUtils); }); it('should transfer the correct amounts when makerAssetAmount < takerAssetAmount with zero decimals', async () => { @@ -86,7 +88,7 @@ blockchainTests.resets('FillOrder Tests', ({ web3Wrapper, txDefaults }) => { makerAssetDataScenario: AssetDataScenario.ERC20ZeroDecimals, }, }; - await fillOrderCombinatorialUtils.testFillOrderScenarioSuccessAsync(fillScenario); + await fillOrderCombinatorialUtils.testFillOrderScenarioSuccessAsync(fillScenario, devUtils); }); it('should transfer the correct amounts when taker is specified and order is claimed by taker', async () => { @@ -97,7 +99,7 @@ blockchainTests.resets('FillOrder Tests', ({ web3Wrapper, txDefaults }) => { takerScenario: TakerScenario.CorrectlySpecified, }, }; - await fillOrderCombinatorialUtils.testFillOrderScenarioSuccessAsync(fillScenario); + await fillOrderCombinatorialUtils.testFillOrderScenarioSuccessAsync(fillScenario, devUtils); }); it('should transfer the correct amounts maker == feeRecipient', async () => { @@ -108,7 +110,7 @@ blockchainTests.resets('FillOrder Tests', ({ web3Wrapper, txDefaults }) => { feeRecipientScenario: FeeRecipientAddressScenario.MakerAddress, }, }; - await fillOrderCombinatorialUtils.testFillOrderScenarioSuccessAsync(fillScenario); + await fillOrderCombinatorialUtils.testFillOrderScenarioSuccessAsync(fillScenario, devUtils); }); it('should transfer the correct amounts maker == feeRecipient and makerFeeAsset == takerAsset', async () => { @@ -120,7 +122,7 @@ blockchainTests.resets('FillOrder Tests', ({ web3Wrapper, txDefaults }) => { makerFeeAssetDataScenario: FeeAssetDataScenario.TakerToken, }, }; - await fillOrderCombinatorialUtils.testFillOrderScenarioSuccessAsync(fillScenario); + await fillOrderCombinatorialUtils.testFillOrderScenarioSuccessAsync(fillScenario, devUtils); }); it('should transfer the correct amounts taker == feeRecipient', async () => { @@ -131,7 +133,7 @@ blockchainTests.resets('FillOrder Tests', ({ web3Wrapper, txDefaults }) => { feeRecipientScenario: FeeRecipientAddressScenario.TakerAddress, }, }; - await fillOrderCombinatorialUtils.testFillOrderScenarioSuccessAsync(fillScenario); + await fillOrderCombinatorialUtils.testFillOrderScenarioSuccessAsync(fillScenario, devUtils); }); it('should transfer the correct amounts taker == feeRecipient and takerFeeAsset == makerAsset', async () => { @@ -143,7 +145,7 @@ blockchainTests.resets('FillOrder Tests', ({ web3Wrapper, txDefaults }) => { takerFeeAssetDataScenario: FeeAssetDataScenario.MakerToken, }, }; - await fillOrderCombinatorialUtils.testFillOrderScenarioSuccessAsync(fillScenario); + await fillOrderCombinatorialUtils.testFillOrderScenarioSuccessAsync(fillScenario, devUtils); }); it('should fill remaining value if takerAssetFillAmount > remaining takerAssetAmount', async () => { @@ -151,7 +153,7 @@ blockchainTests.resets('FillOrder Tests', ({ web3Wrapper, txDefaults }) => { ...defaultFillScenario, takerAssetFillAmountScenario: TakerAssetFillAmountScenario.GreaterThanTakerAssetAmount, }; - await fillOrderCombinatorialUtils.testFillOrderScenarioSuccessAsync(fillScenario); + await fillOrderCombinatorialUtils.testFillOrderScenarioSuccessAsync(fillScenario, devUtils); }); it('should revert when taker is specified and order is claimed by other', async () => { @@ -162,7 +164,7 @@ blockchainTests.resets('FillOrder Tests', ({ web3Wrapper, txDefaults }) => { takerScenario: TakerScenario.IncorrectlySpecified, }, }; - await fillOrderCombinatorialUtils.testFillOrderScenarioFailureAsync(fillScenario); + await fillOrderCombinatorialUtils.testFillOrderScenarioFailureAsync(fillScenario, devUtils); }); it('should revert if makerAssetAmount is 0', async () => { @@ -174,7 +176,7 @@ blockchainTests.resets('FillOrder Tests', ({ web3Wrapper, txDefaults }) => { }, takerAssetFillAmountScenario: TakerAssetFillAmountScenario.GreaterThanTakerAssetAmount, }; - await fillOrderCombinatorialUtils.testFillOrderScenarioFailureAsync(fillScenario); + await fillOrderCombinatorialUtils.testFillOrderScenarioFailureAsync(fillScenario, devUtils); }); it('should revert if takerAssetAmount is 0', async () => { @@ -186,7 +188,7 @@ blockchainTests.resets('FillOrder Tests', ({ web3Wrapper, txDefaults }) => { }, takerAssetFillAmountScenario: TakerAssetFillAmountScenario.GreaterThanTakerAssetAmount, }; - await fillOrderCombinatorialUtils.testFillOrderScenarioFailureAsync(fillScenario); + await fillOrderCombinatorialUtils.testFillOrderScenarioFailureAsync(fillScenario, devUtils); }); it('should revert if an order is expired', async () => { @@ -197,7 +199,7 @@ blockchainTests.resets('FillOrder Tests', ({ web3Wrapper, txDefaults }) => { expirationTimeSecondsScenario: ExpirationTimeSecondsScenario.InPast, }, }; - await fillOrderCombinatorialUtils.testFillOrderScenarioFailureAsync(fillScenario); + await fillOrderCombinatorialUtils.testFillOrderScenarioFailureAsync(fillScenario, devUtils); }); }); @@ -217,7 +219,7 @@ blockchainTests.resets('FillOrder Tests', ({ web3Wrapper, txDefaults }) => { takerAssetDataScenario: takerAsset, }, }; - await fillOrderCombinatorialUtils.testFillOrderScenarioSuccessAsync(fillScenario); + await fillOrderCombinatorialUtils.testFillOrderScenarioSuccessAsync(fillScenario, devUtils); }); } it('should be able to pay maker fee with taker asset', async () => { @@ -233,7 +235,7 @@ blockchainTests.resets('FillOrder Tests', ({ web3Wrapper, txDefaults }) => { feeBalance: BalanceAmountScenario.Zero, }, }; - await fillOrderCombinatorialUtils.testFillOrderScenarioSuccessAsync(fillScenario); + await fillOrderCombinatorialUtils.testFillOrderScenarioSuccessAsync(fillScenario, devUtils); }); it('should be able to pay taker fee with maker asset', async () => { @@ -249,7 +251,7 @@ blockchainTests.resets('FillOrder Tests', ({ web3Wrapper, txDefaults }) => { feeBalance: BalanceAmountScenario.Zero, }, }; - await fillOrderCombinatorialUtils.testFillOrderScenarioSuccessAsync(fillScenario); + await fillOrderCombinatorialUtils.testFillOrderScenarioSuccessAsync(fillScenario, devUtils); }); it('should not be able to pay maker fee with maker asset if none is left over (double-spend)', async () => { @@ -266,7 +268,7 @@ blockchainTests.resets('FillOrder Tests', ({ web3Wrapper, txDefaults }) => { feeBalance: BalanceAmountScenario.Zero, }, }; - await fillOrderCombinatorialUtils.testFillOrderScenarioFailureAsync(fillScenario); + await fillOrderCombinatorialUtils.testFillOrderScenarioFailureAsync(fillScenario, devUtils); }); it('should not be able to pay taker fee with taker asset if none is left over (double-spend)', async () => { @@ -283,7 +285,7 @@ blockchainTests.resets('FillOrder Tests', ({ web3Wrapper, txDefaults }) => { feeBalance: BalanceAmountScenario.Zero, }, }; - await fillOrderCombinatorialUtils.testFillOrderScenarioFailureAsync(fillScenario); + await fillOrderCombinatorialUtils.testFillOrderScenarioFailureAsync(fillScenario, devUtils); }); it('should be able to pay taker fee with maker asset', async () => { @@ -299,7 +301,7 @@ blockchainTests.resets('FillOrder Tests', ({ web3Wrapper, txDefaults }) => { feeBalance: BalanceAmountScenario.Zero, }, }; - await fillOrderCombinatorialUtils.testFillOrderScenarioSuccessAsync(fillScenario); + await fillOrderCombinatorialUtils.testFillOrderScenarioSuccessAsync(fillScenario, devUtils); }); it('should revert if maker balance is too low to fill order', async () => { @@ -310,7 +312,7 @@ blockchainTests.resets('FillOrder Tests', ({ web3Wrapper, txDefaults }) => { traderAssetBalance: BalanceAmountScenario.TooLow, }, }; - await fillOrderCombinatorialUtils.testFillOrderScenarioFailureAsync(fillScenario); + await fillOrderCombinatorialUtils.testFillOrderScenarioFailureAsync(fillScenario, devUtils); }); it('should revert if taker balance is too low to fill order', async () => { @@ -321,7 +323,7 @@ blockchainTests.resets('FillOrder Tests', ({ web3Wrapper, txDefaults }) => { traderAssetBalance: BalanceAmountScenario.TooLow, }, }; - await fillOrderCombinatorialUtils.testFillOrderScenarioFailureAsync(fillScenario); + await fillOrderCombinatorialUtils.testFillOrderScenarioFailureAsync(fillScenario, devUtils); }); it('should revert if maker allowances are too low to fill order', async () => { @@ -332,7 +334,7 @@ blockchainTests.resets('FillOrder Tests', ({ web3Wrapper, txDefaults }) => { traderAssetAllowance: AllowanceAmountScenario.TooLow, }, }; - await fillOrderCombinatorialUtils.testFillOrderScenarioFailureAsync(fillScenario); + await fillOrderCombinatorialUtils.testFillOrderScenarioFailureAsync(fillScenario, devUtils); }); it('should revert if taker allowances are too low to fill order', async () => { @@ -343,7 +345,7 @@ blockchainTests.resets('FillOrder Tests', ({ web3Wrapper, txDefaults }) => { traderAssetAllowance: AllowanceAmountScenario.TooLow, }, }; - await fillOrderCombinatorialUtils.testFillOrderScenarioFailureAsync(fillScenario); + await fillOrderCombinatorialUtils.testFillOrderScenarioFailureAsync(fillScenario, devUtils); }); it('should revert if maker fee balance is too low to fill order', async () => { @@ -354,7 +356,7 @@ blockchainTests.resets('FillOrder Tests', ({ web3Wrapper, txDefaults }) => { feeBalance: BalanceAmountScenario.TooLow, }, }; - await fillOrderCombinatorialUtils.testFillOrderScenarioFailureAsync(fillScenario); + await fillOrderCombinatorialUtils.testFillOrderScenarioFailureAsync(fillScenario, devUtils); }); it('should revert if taker fee balance is too low to fill order', async () => { @@ -365,7 +367,7 @@ blockchainTests.resets('FillOrder Tests', ({ web3Wrapper, txDefaults }) => { feeBalance: BalanceAmountScenario.TooLow, }, }; - await fillOrderCombinatorialUtils.testFillOrderScenarioFailureAsync(fillScenario); + await fillOrderCombinatorialUtils.testFillOrderScenarioFailureAsync(fillScenario, devUtils); }); it('should revert if maker fee allowances are too low to fill order', async () => { @@ -376,7 +378,7 @@ blockchainTests.resets('FillOrder Tests', ({ web3Wrapper, txDefaults }) => { feeAllowance: AllowanceAmountScenario.TooLow, }, }; - await fillOrderCombinatorialUtils.testFillOrderScenarioFailureAsync(fillScenario); + await fillOrderCombinatorialUtils.testFillOrderScenarioFailureAsync(fillScenario, devUtils); }); it('should revert if taker fee allowances are too low to fill order', async () => { @@ -387,7 +389,7 @@ blockchainTests.resets('FillOrder Tests', ({ web3Wrapper, txDefaults }) => { feeAllowance: AllowanceAmountScenario.TooLow, }, }; - await fillOrderCombinatorialUtils.testFillOrderScenarioFailureAsync(fillScenario); + await fillOrderCombinatorialUtils.testFillOrderScenarioFailureAsync(fillScenario, devUtils); }); }); @@ -406,7 +408,7 @@ blockchainTests.resets('FillOrder Tests', ({ web3Wrapper, txDefaults }) => { feeBalance: BalanceAmountScenario.Zero, }, }; - await fillOrderCombinatorialUtils.testFillOrderScenarioSuccessAsync(fillScenario); + await fillOrderCombinatorialUtils.testFillOrderScenarioSuccessAsync(fillScenario, devUtils); }); it('should be able to pay taker fee with maker ERC721', async () => { @@ -423,7 +425,7 @@ blockchainTests.resets('FillOrder Tests', ({ web3Wrapper, txDefaults }) => { feeBalance: BalanceAmountScenario.Zero, }, }; - await fillOrderCombinatorialUtils.testFillOrderScenarioSuccessAsync(fillScenario); + await fillOrderCombinatorialUtils.testFillOrderScenarioSuccessAsync(fillScenario, devUtils); }); it('should not be able to pay maker fee with maker ERC721 (double-spend)', async () => { @@ -440,7 +442,7 @@ blockchainTests.resets('FillOrder Tests', ({ web3Wrapper, txDefaults }) => { feeBalance: BalanceAmountScenario.Zero, }, }; - await fillOrderCombinatorialUtils.testFillOrderScenarioFailureAsync(fillScenario); + await fillOrderCombinatorialUtils.testFillOrderScenarioFailureAsync(fillScenario, devUtils); }); it('should be able to pay taker fee with taker ERC721 (double-spend)', async () => { @@ -457,7 +459,7 @@ blockchainTests.resets('FillOrder Tests', ({ web3Wrapper, txDefaults }) => { feeBalance: BalanceAmountScenario.Zero, }, }; - await fillOrderCombinatorialUtils.testFillOrderScenarioFailureAsync(fillScenario); + await fillOrderCombinatorialUtils.testFillOrderScenarioFailureAsync(fillScenario, devUtils); }); }); @@ -479,7 +481,7 @@ blockchainTests.resets('FillOrder Tests', ({ web3Wrapper, txDefaults }) => { feeBalance: BalanceAmountScenario.Zero, }, }; - await fillOrderCombinatorialUtils.testFillOrderScenarioSuccessAsync(fillScenario); + await fillOrderCombinatorialUtils.testFillOrderScenarioSuccessAsync(fillScenario, devUtils); }); it('should be able to pay taker fee with maker asset', async () => { @@ -496,7 +498,7 @@ blockchainTests.resets('FillOrder Tests', ({ web3Wrapper, txDefaults }) => { feeBalance: BalanceAmountScenario.Zero, }, }; - await fillOrderCombinatorialUtils.testFillOrderScenarioSuccessAsync(fillScenario); + await fillOrderCombinatorialUtils.testFillOrderScenarioSuccessAsync(fillScenario, devUtils); }); it('should not be able to pay maker fee with maker asset if not enough left (double-spend)', async () => { @@ -514,7 +516,7 @@ blockchainTests.resets('FillOrder Tests', ({ web3Wrapper, txDefaults }) => { feeBalance: BalanceAmountScenario.Zero, }, }; - await fillOrderCombinatorialUtils.testFillOrderScenarioFailureAsync(fillScenario); + await fillOrderCombinatorialUtils.testFillOrderScenarioFailureAsync(fillScenario, devUtils); }); it('should be able to pay taker fee with taker asset if not enough left (double-spend)', async () => { @@ -532,7 +534,7 @@ blockchainTests.resets('FillOrder Tests', ({ web3Wrapper, txDefaults }) => { feeBalance: BalanceAmountScenario.Zero, }, }; - await fillOrderCombinatorialUtils.testFillOrderScenarioFailureAsync(fillScenario); + await fillOrderCombinatorialUtils.testFillOrderScenarioFailureAsync(fillScenario, devUtils); }); }); } @@ -553,7 +555,7 @@ blockchainTests.resets('FillOrder Tests', ({ web3Wrapper, txDefaults }) => { feeBalance: BalanceAmountScenario.Zero, }, }; - await fillOrderCombinatorialUtils.testFillOrderScenarioSuccessAsync(fillScenario); + await fillOrderCombinatorialUtils.testFillOrderScenarioSuccessAsync(fillScenario, devUtils); }); it('should be able to pay taker fee with maker MAP', async () => { @@ -570,7 +572,7 @@ blockchainTests.resets('FillOrder Tests', ({ web3Wrapper, txDefaults }) => { feeBalance: BalanceAmountScenario.Zero, }, }; - await fillOrderCombinatorialUtils.testFillOrderScenarioSuccessAsync(fillScenario); + await fillOrderCombinatorialUtils.testFillOrderScenarioSuccessAsync(fillScenario, devUtils); }); it('should not be able to pay maker fee with maker MAP (double-spend)', async () => { @@ -587,7 +589,7 @@ blockchainTests.resets('FillOrder Tests', ({ web3Wrapper, txDefaults }) => { feeBalance: BalanceAmountScenario.Zero, }, }; - await fillOrderCombinatorialUtils.testFillOrderScenarioFailureAsync(fillScenario); + await fillOrderCombinatorialUtils.testFillOrderScenarioFailureAsync(fillScenario, devUtils); }); it('should be able to pay taker fee with taker MAP (double-spend)', async () => { @@ -604,7 +606,7 @@ blockchainTests.resets('FillOrder Tests', ({ web3Wrapper, txDefaults }) => { feeBalance: BalanceAmountScenario.Zero, }, }; - await fillOrderCombinatorialUtils.testFillOrderScenarioFailureAsync(fillScenario); + await fillOrderCombinatorialUtils.testFillOrderScenarioFailureAsync(fillScenario, devUtils); }); }); @@ -627,7 +629,7 @@ blockchainTests.resets('FillOrder Tests', ({ web3Wrapper, txDefaults }) => { }, takerAssetFillAmountScenario: TakerAssetFillAmountScenario.ExactlyTakerAssetAmount, }; - await fillOrderCombinatorialUtils.testFillOrderScenarioSuccessAsync(fillScenario); + await fillOrderCombinatorialUtils.testFillOrderScenarioSuccessAsync(fillScenario, devUtils); }); } }); @@ -651,7 +653,7 @@ blockchainTests.resets('FillOrder Tests', ({ web3Wrapper, txDefaults }) => { }, takerAssetFillAmountScenario: TakerAssetFillAmountScenario.ExactlyTakerAssetAmount, }; - await fillOrderCombinatorialUtils.testFillOrderScenarioSuccessAsync(fillScenario); + await fillOrderCombinatorialUtils.testFillOrderScenarioSuccessAsync(fillScenario, devUtils); }); } }); @@ -661,7 +663,7 @@ blockchainTests.resets('FillOrder Tests', ({ web3Wrapper, txDefaults }) => { for (const fillScenario of allFillScenarios) { const description = `Combinatorial OrderFill: ${JSON.stringify(fillScenario)}`; it(description, async () => { - await fillOrderCombinatorialUtils.testFillOrderScenarioAsync(fillScenario); + await fillOrderCombinatorialUtils.testFillOrderScenarioAsync(fillScenario, devUtils); }); } }); diff --git a/contracts/exchange/test/internal.ts b/contracts/exchange/test/internal.ts index 8507b35937..e9aa0c9bfd 100644 --- a/contracts/exchange/test/internal.ts +++ b/contracts/exchange/test/internal.ts @@ -7,12 +7,12 @@ import { Web3Wrapper } from '@0x/web3-wrapper'; import { LogWithDecodedArgs } from 'ethereum-types'; import * as _ from 'lodash'; +import { artifacts } from './artifacts'; import { - artifacts, TestExchangeInternalsContract, TestExchangeInternalsDispatchTransferFromCalledEventArgs, TestExchangeInternalsFillEventArgs, -} from '../src'; +} from './wrappers'; blockchainTests('Exchange core internal functions', env => { const CHAIN_ID = 1337; diff --git a/contracts/exchange/test/lib_exchange_rich_error_decoder.ts b/contracts/exchange/test/lib_exchange_rich_error_decoder.ts index c9925804a0..7d7185b956 100644 --- a/contracts/exchange/test/lib_exchange_rich_error_decoder.ts +++ b/contracts/exchange/test/lib_exchange_rich_error_decoder.ts @@ -11,7 +11,8 @@ import { ExchangeRevertErrors, generatePseudoRandomSalt } from '@0x/order-utils' import { BigNumber, RevertError } from '@0x/utils'; import * as _ from 'lodash'; -import { artifacts, TestLibExchangeRichErrorDecoderContract } from '../src'; +import { artifacts } from './artifacts'; +import { TestLibExchangeRichErrorDecoderContract } from './wrappers'; blockchainTests.resets.only('LibExchangeRichErrorDecoder', ({ provider, txDefaults }) => { const ASSET_PROXY_ID_LENGTH = 4; diff --git a/contracts/exchange/test/match_orders.ts b/contracts/exchange/test/match_orders.ts index 4065704366..820a6acbdd 100644 --- a/contracts/exchange/test/match_orders.ts +++ b/contracts/exchange/test/match_orders.ts @@ -30,7 +30,10 @@ import { Web3Wrapper } from '@0x/web3-wrapper'; import * as chai from 'chai'; import * as _ from 'lodash'; -import { artifacts, ExchangeContract, ExchangeWrapper } from '../src'; +import { ExchangeWrapper } from './utils/exchange_wrapper'; + +import { artifacts } from './artifacts'; +import { ExchangeContract } from './wrappers'; import { MatchOrderTester, TokenBalances } from './utils/match_order_tester'; diff --git a/contracts/exchange/test/protocol_fees.ts b/contracts/exchange/test/protocol_fees.ts index 3a46d392d7..a3a18f366e 100644 --- a/contracts/exchange/test/protocol_fees.ts +++ b/contracts/exchange/test/protocol_fees.ts @@ -1,7 +1,8 @@ import { blockchainTests } from '@0x/contracts-test-utils'; import { BigNumber } from '@0x/utils'; -import { artifacts, TestProtocolFeesContract, TestProtocolFeesReceiverContract } from '../src'; +import { artifacts } from './artifacts'; +import { TestProtocolFeesContract, TestProtocolFeesReceiverContract } from './wrappers'; // The contents of this test suite does not inform the reader about the assertions made in these // tests. For more information and a more accurate view of the tests, check out diff --git a/contracts/exchange/test/protocol_fees_manager.ts b/contracts/exchange/test/protocol_fees_manager.ts index 54bc8273b0..8d56dea1c1 100644 --- a/contracts/exchange/test/protocol_fees_manager.ts +++ b/contracts/exchange/test/protocol_fees_manager.ts @@ -2,12 +2,12 @@ import { blockchainTests, constants, expect } from '@0x/contracts-test-utils'; import { BigNumber, OwnableRevertErrors } from '@0x/utils'; import { LogWithDecodedArgs } from 'ethereum-types'; +import { artifacts } from './artifacts'; import { - artifacts, ExchangeContract, ExchangeProtocolFeeCollectorAddressEventArgs, ExchangeProtocolFeeMultiplierEventArgs, -} from '../src'; +} from './wrappers'; blockchainTests.resets('MixinProtocolFees', env => { let accounts: string[]; diff --git a/contracts/exchange/test/reentrancy_tests.ts b/contracts/exchange/test/reentrancy_tests.ts index 7a56dbc9bc..a57e712aeb 100644 --- a/contracts/exchange/test/reentrancy_tests.ts +++ b/contracts/exchange/test/reentrancy_tests.ts @@ -3,7 +3,8 @@ import { BigNumber } from '@0x/utils'; import { DataItem, MethodAbi, TupleDataItem } from 'ethereum-types'; import * as _ from 'lodash'; -import { artifacts, ReentrancyTesterContract } from '../src'; +import { artifacts } from './artifacts'; +import { ReentrancyTesterContract } from './wrappers'; import { constants as TestConstants } from './utils/constants'; diff --git a/contracts/exchange/test/signature_validator.ts b/contracts/exchange/test/signature_validator.ts index cecdb5386b..d2fbf277ff 100644 --- a/contracts/exchange/test/signature_validator.ts +++ b/contracts/exchange/test/signature_validator.ts @@ -17,15 +17,15 @@ import { BigNumber, StringRevertError } from '@0x/utils'; import { LogWithDecodedArgs } from 'ethereum-types'; import ethUtil = require('ethereumjs-util'); +import { artifacts } from './artifacts'; import { - artifacts, IEIP1271DataContract, TestSignatureValidatorContract, TestSignatureValidatorSignatureValidatorApprovalEventArgs, TestValidatorWalletContract, -} from '../src'; +} from './wrappers'; -import { ValidatorWalletAction } from './utils'; +import { ValidatorWalletAction } from './utils/constants'; // tslint:disable:no-unnecessary-type-assertion blockchainTests.resets('MixinSignatureValidator', env => { diff --git a/contracts/exchange/test/transactions.ts b/contracts/exchange/test/transactions.ts index dceff61f57..475a15d4ff 100644 --- a/contracts/exchange/test/transactions.ts +++ b/contracts/exchange/test/transactions.ts @@ -6,6 +6,7 @@ import { blockchainTests, constants, describe, + ExchangeFunctionName, expect, getLatestBlockTimestampAsync, OrderFactory, @@ -18,19 +19,18 @@ import { LogWithDecodedArgs, MethodAbi } from 'ethereum-types'; import * as ethUtil from 'ethereumjs-util'; import * as _ from 'lodash'; +import { exchangeDataEncoder } from '../src/exchange_data_encoder'; + +import { artifacts as localArtifacts } from './artifacts'; +import { ExchangeWrapper } from './utils/exchange_wrapper'; import { - artifacts as localArtifacts, - constants as exchangeConstants, ExchangeCancelEventArgs, ExchangeCancelUpToEventArgs, ExchangeContract, - exchangeDataEncoder, ExchangeFillEventArgs, - ExchangeFunctionName, ExchangeSignatureValidatorApprovalEventArgs, ExchangeTransactionExecutionEventArgs, - ExchangeWrapper, -} from '../src/'; +} from './wrappers'; const artifacts = { ...erc20Artifacts, ...localArtifacts }; @@ -206,9 +206,9 @@ blockchainTests.resets('Exchange transactions', env => { }); describe('fill methods', () => { for (const fnName of [ - ...exchangeConstants.SINGLE_FILL_FN_NAMES, - ...exchangeConstants.BATCH_FILL_FN_NAMES, - ...exchangeConstants.MARKET_FILL_FN_NAMES, + ...constants.SINGLE_FILL_FN_NAMES, + ...constants.BATCH_FILL_FN_NAMES, + ...constants.MARKET_FILL_FN_NAMES, ]) { it(`${fnName} should revert if signature is invalid and not called by signer`, async () => { const orders = [await orderFactory.newSignedOrderAsync()]; @@ -295,7 +295,7 @@ blockchainTests.resets('Exchange transactions', env => { const decodedReturnData = abiEncoder.decodeReturnValues(returnData); const fillResults = - exchangeConstants.BATCH_FILL_FN_NAMES.indexOf(fnName) !== -1 + constants.BATCH_FILL_FN_NAMES.indexOf(fnName) !== -1 ? decodedReturnData.fillResults[0] : decodedReturnData.fillResults; diff --git a/contracts/exchange/test/transactions_unit_tests.ts b/contracts/exchange/test/transactions_unit_tests.ts index 286c48e794..262abf4584 100644 --- a/contracts/exchange/test/transactions_unit_tests.ts +++ b/contracts/exchange/test/transactions_unit_tests.ts @@ -5,7 +5,8 @@ import { BigNumber, StringRevertError } from '@0x/utils'; import { LogWithDecodedArgs } from 'ethereum-types'; import * as _ from 'lodash'; -import { artifacts, TestTransactionsContract, TestTransactionsTransactionExecutionEventArgs } from '../src'; +import { artifacts } from './artifacts'; +import { TestTransactionsContract, TestTransactionsTransactionExecutionEventArgs } from './wrappers'; blockchainTests.resets('Transaction Unit Tests', ({ provider, web3Wrapper, txDefaults }) => { let transactionsContract: TestTransactionsContract; diff --git a/packages/order-utils/src/abstract/abstract_balance_and_proxy_allowance_fetcher.ts b/contracts/exchange/test/utils/abstract/abstract_balance_and_proxy_allowance_fetcher.ts similarity index 100% rename from packages/order-utils/src/abstract/abstract_balance_and_proxy_allowance_fetcher.ts rename to contracts/exchange/test/utils/abstract/abstract_balance_and_proxy_allowance_fetcher.ts diff --git a/packages/order-utils/src/abstract/abstract_balance_and_proxy_allowance_lazy_store.ts b/contracts/exchange/test/utils/abstract/abstract_balance_and_proxy_allowance_lazy_store.ts similarity index 100% rename from packages/order-utils/src/abstract/abstract_balance_and_proxy_allowance_lazy_store.ts rename to contracts/exchange/test/utils/abstract/abstract_balance_and_proxy_allowance_lazy_store.ts diff --git a/packages/order-utils/src/abstract/abstract_order_filled_cancelled_fetcher.ts b/contracts/exchange/test/utils/abstract/abstract_order_filled_cancelled_fetcher.ts similarity index 66% rename from packages/order-utils/src/abstract/abstract_order_filled_cancelled_fetcher.ts rename to contracts/exchange/test/utils/abstract/abstract_order_filled_cancelled_fetcher.ts index 67df672b46..8a73e54fee 100644 --- a/packages/order-utils/src/abstract/abstract_order_filled_cancelled_fetcher.ts +++ b/contracts/exchange/test/utils/abstract/abstract_order_filled_cancelled_fetcher.ts @@ -1,4 +1,3 @@ -import { SignedOrder } from '@0x/types'; import { BigNumber } from '@0x/utils'; /** @@ -13,10 +12,4 @@ export abstract class AbstractOrderFilledCancelledFetcher { * @return FilledTakerAmount */ public abstract async getFilledTakerAmountAsync(orderHash: string): Promise; - /** - * Whether an order is cancelled - * @param orderHash OrderHash of order we are interested in - * @return Whether or not the order is cancelled - */ - public abstract async isOrderCancelledAsync(signedOrder: SignedOrder): Promise; } diff --git a/packages/order-utils/src/abstract/abstract_order_filled_cancelled_lazy_store.ts b/contracts/exchange/test/utils/abstract/abstract_order_filled_cancelled_lazy_store.ts similarity index 80% rename from packages/order-utils/src/abstract/abstract_order_filled_cancelled_lazy_store.ts rename to contracts/exchange/test/utils/abstract/abstract_order_filled_cancelled_lazy_store.ts index 2fe093d208..06b7799ff3 100644 --- a/packages/order-utils/src/abstract/abstract_order_filled_cancelled_lazy_store.ts +++ b/contracts/exchange/test/utils/abstract/abstract_order_filled_cancelled_lazy_store.ts @@ -1,9 +1,7 @@ -import { SignedOrder } from '@0x/types'; import { BigNumber } from '@0x/utils'; export abstract class AbstractOrderFilledCancelledLazyStore { public abstract async getFilledTakerAmountAsync(orderHash: string): Promise; - public abstract async getIsCancelledAsync(signedOrder: SignedOrder): Promise; public abstract setFilledTakerAmount(orderHash: string, balance: BigNumber): void; public abstract deleteFilledTakerAmount(orderHash: string): void; public abstract setIsCancelled(orderHash: string, isCancelled: boolean): void; diff --git a/packages/order-utils/src/asset_balance_and_proxy_allowance_fetcher.ts b/contracts/exchange/test/utils/asset_balance_and_proxy_allowance_fetcher.ts similarity index 94% rename from packages/order-utils/src/asset_balance_and_proxy_allowance_fetcher.ts rename to contracts/exchange/test/utils/asset_balance_and_proxy_allowance_fetcher.ts index 0745747bb6..302d6b0dab 100644 --- a/packages/order-utils/src/asset_balance_and_proxy_allowance_fetcher.ts +++ b/contracts/exchange/test/utils/asset_balance_and_proxy_allowance_fetcher.ts @@ -1,4 +1,4 @@ -import { DevUtilsContract } from '@0x/abi-gen-wrappers'; +import { DevUtilsContract } from '@0x/contracts-dev-utils'; import { BigNumber } from '@0x/utils'; import * as _ from 'lodash'; diff --git a/contracts/exchange/test/utils/constants.ts b/contracts/exchange/test/utils/constants.ts index d34001dc22..cee5450e2a 100644 --- a/contracts/exchange/test/utils/constants.ts +++ b/contracts/exchange/test/utils/constants.ts @@ -1,4 +1,4 @@ -import { ExchangeFunctionName } from './types'; +import { ExchangeFunctionName } from '@0x/contracts-test-utils'; export const constants = { // These are functions not secured by the `nonReentrant`, directly or @@ -13,28 +13,6 @@ export const constants = { ExchangeFunctionName.SetProtocolFeeCollectorAddress, ExchangeFunctionName.DetachProtocolFeeCollector, ], - SINGLE_FILL_FN_NAMES: [ExchangeFunctionName.FillOrder, ExchangeFunctionName.FillOrKillOrder], - BATCH_FILL_FN_NAMES: [ - ExchangeFunctionName.BatchFillOrders, - ExchangeFunctionName.BatchFillOrKillOrders, - ExchangeFunctionName.BatchFillOrdersNoThrow, - ], - MARKET_FILL_FN_NAMES: [ - ExchangeFunctionName.MarketBuyOrdersFillOrKill, - ExchangeFunctionName.MarketSellOrdersFillOrKill, - ExchangeFunctionName.MarketBuyOrdersNoThrow, - ExchangeFunctionName.MarketSellOrdersNoThrow, - ], - MATCH_ORDER_FN_NAMES: [ExchangeFunctionName.MatchOrders, ExchangeFunctionName.MatchOrdersWithMaximalFill], - BATCH_MATCH_ORDER_FN_NAMES: [ - ExchangeFunctionName.BatchMatchOrders, - ExchangeFunctionName.BatchMatchOrdersWithMaximalFill, - ], - CANCEL_ORDER_FN_NAMES: [ - ExchangeFunctionName.CancelOrder, - ExchangeFunctionName.BatchCancelOrders, - ExchangeFunctionName.CancelOrdersUpTo, - ], }; export enum ValidatorWalletAction { diff --git a/packages/order-utils/src/exchange_transfer_simulator.ts b/contracts/exchange/test/utils/exchange_transfer_simulator.ts similarity index 92% rename from packages/order-utils/src/exchange_transfer_simulator.ts rename to contracts/exchange/test/utils/exchange_transfer_simulator.ts index c2338b617f..03130c0bfb 100644 --- a/packages/order-utils/src/exchange_transfer_simulator.ts +++ b/contracts/exchange/test/utils/exchange_transfer_simulator.ts @@ -1,9 +1,9 @@ +import { DevUtilsContract } from '@0x/contracts-dev-utils'; +import { constants } from '@0x/contracts-test-utils'; import { AssetProxyId, ExchangeContractErrs } from '@0x/types'; import { BigNumber } from '@0x/utils'; import { AbstractBalanceAndProxyAllowanceLazyStore } from './abstract/abstract_balance_and_proxy_allowance_lazy_store'; -import { assetDataUtils } from './asset_data_utils'; -import { constants } from './constants'; import { TradeSide, TransferType } from './types'; enum FailureReason { @@ -40,6 +40,7 @@ const ERR_MSG_MAPPING = { */ export class ExchangeTransferSimulator { private readonly _store: AbstractBalanceAndProxyAllowanceLazyStore; + private readonly _devUtils: DevUtilsContract; private static _throwValidationError( failureReason: FailureReason, tradeSide: TradeSide, @@ -53,8 +54,9 @@ export class ExchangeTransferSimulator { * @param store A class that implements AbstractBalanceAndProxyAllowanceLazyStore * @return an instance of ExchangeTransferSimulator */ - constructor(store: AbstractBalanceAndProxyAllowanceLazyStore) { + constructor(store: AbstractBalanceAndProxyAllowanceLazyStore, devUtilsContract: DevUtilsContract) { this._store = store; + this._devUtils = devUtilsContract; } /** * Simulates transferFrom call performed by a proxy @@ -75,7 +77,7 @@ export class ExchangeTransferSimulator { tradeSide: TradeSide, transferType: TransferType, ): Promise { - const assetProxyId = assetDataUtils.decodeAssetProxyId(assetData); + const assetProxyId = await this._devUtils.decodeAssetProxyId(assetData).callAsync(); switch (assetProxyId) { case AssetProxyId.ERC1155: case AssetProxyId.ERC20: @@ -108,11 +110,11 @@ export class ExchangeTransferSimulator { break; } case AssetProxyId.MultiAsset: { - const decodedAssetData = assetDataUtils.decodeMultiAssetData(assetData); + const decodedAssetData = await this._devUtils.decodeMultiAssetData(assetData).callAsync(); await this._decreaseBalanceAsync(assetData, from, amountInBaseUnits); await this._increaseBalanceAsync(assetData, to, amountInBaseUnits); - for (const [index, nestedAssetDataElement] of decodedAssetData.nestedAssetData.entries()) { - const amountsElement = decodedAssetData.amounts[index]; + for (const [index, nestedAssetDataElement] of decodedAssetData[2].entries()) { + const amountsElement = decodedAssetData[1][index]; const totalAmount = amountInBaseUnits.times(amountsElement); await this.transferFromAsync( nestedAssetDataElement, diff --git a/contracts/exchange/test/utils/exchange_wrapper.ts b/contracts/exchange/test/utils/exchange_wrapper.ts index 51672aa602..f11ffed1cb 100644 --- a/contracts/exchange/test/utils/exchange_wrapper.ts +++ b/contracts/exchange/test/utils/exchange_wrapper.ts @@ -11,7 +11,7 @@ import { AbiEncoder, BigNumber } from '@0x/utils'; import { MethodAbi, TransactionReceiptWithDecodedLogs } from 'ethereum-types'; import * as _ from 'lodash'; -import { ExchangeContract } from '../../src'; +import { ExchangeContract } from '../wrappers'; import { AbiDecodedFillOrderData } from './types'; diff --git a/contracts/exchange/test/utils/fill_order_combinatorial_utils.ts b/contracts/exchange/test/utils/fill_order_combinatorial_utils.ts index 3f6c9dbd8b..53382e7eee 100644 --- a/contracts/exchange/test/utils/fill_order_combinatorial_utils.ts +++ b/contracts/exchange/test/utils/fill_order_combinatorial_utils.ts @@ -7,7 +7,7 @@ import { } from '@0x/contracts-asset-proxy'; import { DevUtilsContract } from '@0x/contracts-dev-utils'; import { constants, expect, LogDecoder, orderUtils, signingUtils } from '@0x/contracts-test-utils'; -import { BalanceAndProxyAllowanceLazyStore, ExchangeRevertErrors, orderHashUtils } from '@0x/order-utils'; +import { ExchangeRevertErrors, orderHashUtils } from '@0x/order-utils'; import { FillResults, Order, SignatureType, SignedOrder } from '@0x/types'; import { BigNumber, errorUtils, providerUtils, RevertError, StringRevertError } from '@0x/utils'; import { SupportedProvider, Web3Wrapper } from '@0x/web3-wrapper'; @@ -15,7 +15,9 @@ import { LogWithDecodedArgs, TxData } from 'ethereum-types'; import * as _ from 'lodash'; import 'make-promises-safe'; -import { artifacts, ExchangeContract, ExchangeFillEventArgs } from '../../src'; +import { artifacts } from '../artifacts'; + +import { ExchangeContract, ExchangeFillEventArgs } from '../wrappers'; import { AssetWrapper } from './asset_wrapper'; import { ExchangeWrapper } from './exchange_wrapper'; @@ -35,6 +37,7 @@ import { import { FillOrderError, FillOrderSimulator } from './fill_order_simulator'; import { OrderFactoryFromScenario } from './order_factory_from_scenario'; import { SimpleAssetBalanceAndProxyAllowanceFetcher } from './simple_asset_balance_and_proxy_allowance_fetcher'; +import { BalanceAndProxyAllowanceLazyStore } from './store/balance_and_proxy_allowance_lazy_store'; const EMPTY_FILL_RESULTS = { takerAssetFilledAmount: constants.ZERO_AMOUNT, @@ -439,24 +442,29 @@ export class FillOrderCombinatorialUtils { this.balanceAndProxyAllowanceFetcher = new SimpleAssetBalanceAndProxyAllowanceFetcher(assetWrapper); } - public async testFillOrderScenarioAsync(fillScenario: FillScenario): Promise { - return this._testFillOrderScenarioAsync(fillScenario); + public async testFillOrderScenarioAsync(fillScenario: FillScenario, devUtils: DevUtilsContract): Promise { + return this._testFillOrderScenarioAsync(fillScenario, TestOutlook.Any, devUtils); } - public async testFillOrderScenarioSuccessAsync(fillScenario: FillScenario): Promise { - return this._testFillOrderScenarioAsync(fillScenario, TestOutlook.Success); + public async testFillOrderScenarioSuccessAsync( + fillScenario: FillScenario, + devUtils: DevUtilsContract, + ): Promise { + return this._testFillOrderScenarioAsync(fillScenario, TestOutlook.Success, devUtils); } public async testFillOrderScenarioFailureAsync( fillScenario: FillScenario, + devUtils: DevUtilsContract, fillErrorIfExists?: FillOrderError, ): Promise { - return this._testFillOrderScenarioAsync(fillScenario, TestOutlook.Failure, fillErrorIfExists); + return this._testFillOrderScenarioAsync(fillScenario, TestOutlook.Failure, devUtils, fillErrorIfExists); } private async _testFillOrderScenarioAsync( fillScenario: FillScenario, expectedTestResult: TestOutlook = TestOutlook.Any, + devUtils: DevUtilsContract, fillErrorIfExists?: FillOrderError, ): Promise { const lazyStore = new BalanceAndProxyAllowanceLazyStore(this.balanceAndProxyAllowanceFetcher); @@ -469,7 +477,12 @@ export class FillOrderCombinatorialUtils { let _fillErrorIfExists = fillErrorIfExists; if (expectedTestResult !== TestOutlook.Failure || fillErrorIfExists === undefined) { try { - expectedFillResults = await this._simulateFillOrderAsync(signedOrder, takerAssetFillAmount, lazyStore); + expectedFillResults = await this._simulateFillOrderAsync( + signedOrder, + takerAssetFillAmount, + lazyStore, + devUtils, + ); } catch (err) { _fillErrorIfExists = err.message; if (expectedTestResult === TestOutlook.Success) { @@ -502,8 +515,9 @@ export class FillOrderCombinatorialUtils { signedOrder: SignedOrder, takerAssetFillAmount: BigNumber, lazyStore: BalanceAndProxyAllowanceLazyStore, + devUtils: DevUtilsContract, ): Promise { - const simulator = new FillOrderSimulator(lazyStore); + const simulator = new FillOrderSimulator(lazyStore, devUtils); return simulator.simulateFillOrderAsync(signedOrder, this.takerAddress, takerAssetFillAmount); } diff --git a/contracts/exchange/test/utils/fill_order_simulator.ts b/contracts/exchange/test/utils/fill_order_simulator.ts index 024bcc05b6..645647002e 100644 --- a/contracts/exchange/test/utils/fill_order_simulator.ts +++ b/contracts/exchange/test/utils/fill_order_simulator.ts @@ -1,15 +1,14 @@ +import { DevUtilsContract } from '@0x/contracts-dev-utils'; import { constants, orderUtils } from '@0x/contracts-test-utils'; -import { - AbstractBalanceAndProxyAllowanceLazyStore as LazyStore, - ExchangeTransferSimulator, - Order, - TradeSide, - TransferType, -} from '@0x/order-utils'; +import { Order } from '@0x/order-utils'; import { FillResults } from '@0x/types'; import { BigNumber } from '@0x/utils'; import * as _ from 'lodash'; +import { AbstractBalanceAndProxyAllowanceLazyStore as LazyStore } from './abstract/abstract_balance_and_proxy_allowance_lazy_store'; +import { ExchangeTransferSimulator } from './exchange_transfer_simulator'; +import { TradeSide, TransferType } from './types'; + export enum FillOrderError { OrderUnfillable = 'ORDER_UNFILLABLE', InvalidSender = 'INVALID_SENDER', @@ -27,9 +26,9 @@ export class FillOrderSimulator { public readonly lazyStore: LazyStore; private readonly _transferSimulator: ExchangeTransferSimulator; - constructor(lazyStore: LazyStore) { + constructor(lazyStore: LazyStore, devUtilsContract: DevUtilsContract) { this.lazyStore = lazyStore; - this._transferSimulator = new ExchangeTransferSimulator(lazyStore); + this._transferSimulator = new ExchangeTransferSimulator(lazyStore, devUtilsContract); } public async simulateFillOrderAsync( diff --git a/contracts/exchange/test/utils/index.ts b/contracts/exchange/test/utils/index.ts deleted file mode 100644 index 3fe740f591..0000000000 --- a/contracts/exchange/test/utils/index.ts +++ /dev/null @@ -1,4 +0,0 @@ -export * from './exchange_wrapper'; -export * from './exchange_data_encoder'; -export * from './types'; -export * from './constants'; diff --git a/contracts/exchange/test/utils/isolated_exchange_wrapper.ts b/contracts/exchange/test/utils/isolated_exchange_wrapper.ts index e1ea62b01e..0085bea334 100644 --- a/contracts/exchange/test/utils/isolated_exchange_wrapper.ts +++ b/contracts/exchange/test/utils/isolated_exchange_wrapper.ts @@ -6,12 +6,13 @@ import { TxData, Web3Wrapper } from '@0x/web3-wrapper'; import * as crypto from 'crypto'; import { LogEntry } from 'ethereum-types'; +import { artifacts } from '../artifacts'; + import { - artifacts, IsolatedExchangeContract, IsolatedExchangeDispatchTransferFromCalledEventArgs as DispatchTransferFromCallArgs, IsolatedExchangeFillEventArgs as FillEventArgs, -} from '../../src'; +} from '../wrappers'; export interface AssetBalances { [assetData: string]: { [address: string]: BigNumber }; diff --git a/contracts/exchange/test/utils/simple_asset_balance_and_proxy_allowance_fetcher.ts b/contracts/exchange/test/utils/simple_asset_balance_and_proxy_allowance_fetcher.ts index 64b7dedbe2..998b6aa9dd 100644 --- a/contracts/exchange/test/utils/simple_asset_balance_and_proxy_allowance_fetcher.ts +++ b/contracts/exchange/test/utils/simple_asset_balance_and_proxy_allowance_fetcher.ts @@ -1,6 +1,6 @@ -import { AbstractBalanceAndProxyAllowanceFetcher } from '@0x/order-utils'; import { BigNumber } from '@0x/utils'; +import { AbstractBalanceAndProxyAllowanceFetcher } from './abstract/abstract_balance_and_proxy_allowance_fetcher'; import { AssetWrapper } from './asset_wrapper'; export class SimpleAssetBalanceAndProxyAllowanceFetcher implements AbstractBalanceAndProxyAllowanceFetcher { diff --git a/packages/order-utils/test/utils/simple_erc20_balance_and_proxy_allowance_fetcher.ts b/contracts/exchange/test/utils/simple_erc20_balance_and_proxy_allowance_fetcher.ts similarity index 86% rename from packages/order-utils/test/utils/simple_erc20_balance_and_proxy_allowance_fetcher.ts rename to contracts/exchange/test/utils/simple_erc20_balance_and_proxy_allowance_fetcher.ts index 59f25e9d74..172e8d0203 100644 --- a/packages/order-utils/test/utils/simple_erc20_balance_and_proxy_allowance_fetcher.ts +++ b/contracts/exchange/test/utils/simple_erc20_balance_and_proxy_allowance_fetcher.ts @@ -1,7 +1,7 @@ -import { ERC20TokenContract } from '@0x/abi-gen-wrappers'; +import { ERC20TokenContract } from '@0x/contracts-erc20'; import { BigNumber } from '@0x/utils'; -import { AbstractBalanceAndProxyAllowanceFetcher } from '../../src/abstract/abstract_balance_and_proxy_allowance_fetcher'; +import { AbstractBalanceAndProxyAllowanceFetcher } from './abstract/abstract_balance_and_proxy_allowance_fetcher'; export class SimpleERC20BalanceAndProxyAllowanceFetcher implements AbstractBalanceAndProxyAllowanceFetcher { private readonly _erc20TokenContract: ERC20TokenContract; diff --git a/packages/order-utils/src/store/balance_and_proxy_allowance_lazy_store.ts b/contracts/exchange/test/utils/store/balance_and_proxy_allowance_lazy_store.ts similarity index 100% rename from packages/order-utils/src/store/balance_and_proxy_allowance_lazy_store.ts rename to contracts/exchange/test/utils/store/balance_and_proxy_allowance_lazy_store.ts diff --git a/packages/order-utils/src/store/order_filled_cancelled_lazy_store.ts b/contracts/exchange/test/utils/store/order_filled_cancelled_lazy_store.ts similarity index 81% rename from packages/order-utils/src/store/order_filled_cancelled_lazy_store.ts rename to contracts/exchange/test/utils/store/order_filled_cancelled_lazy_store.ts index 102574c431..7564011668 100644 --- a/packages/order-utils/src/store/order_filled_cancelled_lazy_store.ts +++ b/contracts/exchange/test/utils/store/order_filled_cancelled_lazy_store.ts @@ -1,10 +1,8 @@ -import { SignedOrder } from '@0x/types'; import { BigNumber } from '@0x/utils'; import * as _ from 'lodash'; import { AbstractOrderFilledCancelledFetcher } from '../abstract/abstract_order_filled_cancelled_fetcher'; import { AbstractOrderFilledCancelledLazyStore } from '../abstract/abstract_order_filled_cancelled_lazy_store'; -import { orderHashUtils } from '../order_hash'; /** * Copy on read store for balances/proxyAllowances of tokens/accounts @@ -55,20 +53,6 @@ export class OrderFilledCancelledLazyStore implements AbstractOrderFilledCancell public deleteFilledTakerAmount(orderHash: string): void { delete this._filledTakerAmount[orderHash]; } - /** - * Check if an order has been cancelled - * @param orderHash OrderHash from order of interest - * @return Whether the order has been cancelled - */ - public async getIsCancelledAsync(signedOrder: SignedOrder): Promise { - const orderHash = orderHashUtils.getOrderHashHex(signedOrder); - if (this._isCancelled[orderHash] === undefined) { - const isCancelled = await this._orderFilledCancelledFetcher.isOrderCancelledAsync(signedOrder); - this.setIsCancelled(orderHash, isCancelled); - } - const cachedIsCancelled = this._isCancelled[orderHash]; // tslint:disable-line:boolean-naming - return cachedIsCancelled; - } /** * Set whether an order has been cancelled or not * @param orderHash OrderHash from order of interest diff --git a/contracts/exchange/test/utils/types.ts b/contracts/exchange/test/utils/types.ts index 943232a210..8cd6df9377 100644 --- a/contracts/exchange/test/utils/types.ts +++ b/contracts/exchange/test/utils/types.ts @@ -36,3 +36,13 @@ export enum ExchangeFunctionName { SetProtocolFeeCollectorAddress = 'setProtocolFeeCollectorAddress', DetachProtocolFeeCollector = 'detachProtocolFeeCollector', } + +export enum TradeSide { + Maker = 'maker', + Taker = 'taker', +} + +export enum TransferType { + Trade = 'trade', + Fee = 'fee', +} diff --git a/contracts/exchange/test/wrapper_unit_tests.ts b/contracts/exchange/test/wrapper_unit_tests.ts index df1f1bb6da..cfd822141f 100644 --- a/contracts/exchange/test/wrapper_unit_tests.ts +++ b/contracts/exchange/test/wrapper_unit_tests.ts @@ -9,12 +9,12 @@ import { LogEntry, LogWithDecodedArgs } from 'ethereum-types'; import * as ethjs from 'ethereumjs-util'; import * as _ from 'lodash'; +import { artifacts } from './artifacts'; import { - artifacts, TestWrapperFunctionsCancelOrderCalledEventArgs as CancelOrderCalledEventArgs, TestWrapperFunctionsContract, TestWrapperFunctionsFillOrderCalledEventArgs as FillOrderCalledEventArgs, -} from '../src'; +} from './wrappers'; blockchainTests('Exchange wrapper functions unit tests.', env => { const CHAIN_ID = 0x74657374; diff --git a/contracts/exchange/test/wrappers.ts b/contracts/exchange/test/wrappers.ts new file mode 100644 index 0000000000..7daa712abe --- /dev/null +++ b/contracts/exchange/test/wrappers.ts @@ -0,0 +1,40 @@ +/* + * ----------------------------------------------------------------------------- + * Warning: This file is auto-generated by contracts-gen. Don't edit manually. + * ----------------------------------------------------------------------------- + */ +export * from '../test/generated-wrappers/exchange'; +export * from '../test/generated-wrappers/i_asset_proxy'; +export * from '../test/generated-wrappers/i_asset_proxy_dispatcher'; +export * from '../test/generated-wrappers/i_e_i_p1271_data'; +export * from '../test/generated-wrappers/i_e_i_p1271_wallet'; +export * from '../test/generated-wrappers/i_exchange'; +export * from '../test/generated-wrappers/i_exchange_core'; +export * from '../test/generated-wrappers/i_match_orders'; +export * from '../test/generated-wrappers/i_protocol_fees'; +export * from '../test/generated-wrappers/i_signature_validator'; +export * from '../test/generated-wrappers/i_transactions'; +export * from '../test/generated-wrappers/i_transfer_simulator'; +export * from '../test/generated-wrappers/i_wallet'; +export * from '../test/generated-wrappers/i_wrapper_functions'; +export * from '../test/generated-wrappers/isolated_exchange'; +export * from '../test/generated-wrappers/lib_exchange_rich_error_decoder'; +export * from '../test/generated-wrappers/mixin_asset_proxy_dispatcher'; +export * from '../test/generated-wrappers/mixin_exchange_core'; +export * from '../test/generated-wrappers/mixin_match_orders'; +export * from '../test/generated-wrappers/mixin_protocol_fees'; +export * from '../test/generated-wrappers/mixin_signature_validator'; +export * from '../test/generated-wrappers/mixin_transactions'; +export * from '../test/generated-wrappers/mixin_transfer_simulator'; +export * from '../test/generated-wrappers/mixin_wrapper_functions'; +export * from '../test/generated-wrappers/reentrancy_tester'; +export * from '../test/generated-wrappers/test_asset_proxy_dispatcher'; +export * from '../test/generated-wrappers/test_exchange_internals'; +export * from '../test/generated-wrappers/test_lib_exchange_rich_error_decoder'; +export * from '../test/generated-wrappers/test_protocol_fee_collector'; +export * from '../test/generated-wrappers/test_protocol_fees'; +export * from '../test/generated-wrappers/test_protocol_fees_receiver'; +export * from '../test/generated-wrappers/test_signature_validator'; +export * from '../test/generated-wrappers/test_transactions'; +export * from '../test/generated-wrappers/test_validator_wallet'; +export * from '../test/generated-wrappers/test_wrapper_functions'; diff --git a/contracts/exchange/tsconfig.json b/contracts/exchange/tsconfig.json index c38484f4d5..06fbc962d6 100644 --- a/contracts/exchange/tsconfig.json +++ b/contracts/exchange/tsconfig.json @@ -4,40 +4,42 @@ "include": ["./src/**/*", "./test/**/*", "./generated-wrappers/**/*"], "files": [ "generated-artifacts/Exchange.json", - "generated-artifacts/IAssetProxy.json", - "generated-artifacts/IAssetProxyDispatcher.json", - "generated-artifacts/IEIP1271Data.json", - "generated-artifacts/IEIP1271Wallet.json", "generated-artifacts/IExchange.json", - "generated-artifacts/IExchangeCore.json", - "generated-artifacts/IMatchOrders.json", - "generated-artifacts/IProtocolFees.json", - "generated-artifacts/ISignatureValidator.json", - "generated-artifacts/ITransactions.json", - "generated-artifacts/ITransferSimulator.json", - "generated-artifacts/IWallet.json", - "generated-artifacts/IWrapperFunctions.json", - "generated-artifacts/IsolatedExchange.json", - "generated-artifacts/LibExchangeRichErrorDecoder.json", - "generated-artifacts/MixinAssetProxyDispatcher.json", - "generated-artifacts/MixinExchangeCore.json", - "generated-artifacts/MixinMatchOrders.json", - "generated-artifacts/MixinProtocolFees.json", - "generated-artifacts/MixinSignatureValidator.json", - "generated-artifacts/MixinTransactions.json", - "generated-artifacts/MixinTransferSimulator.json", - "generated-artifacts/MixinWrapperFunctions.json", - "generated-artifacts/ReentrancyTester.json", - "generated-artifacts/TestAssetProxyDispatcher.json", - "generated-artifacts/TestExchangeInternals.json", - "generated-artifacts/TestLibExchangeRichErrorDecoder.json", - "generated-artifacts/TestProtocolFeeCollector.json", - "generated-artifacts/TestProtocolFees.json", - "generated-artifacts/TestProtocolFeesReceiver.json", - "generated-artifacts/TestSignatureValidator.json", - "generated-artifacts/TestTransactions.json", - "generated-artifacts/TestValidatorWallet.json", - "generated-artifacts/TestWrapperFunctions.json" + "test/generated-artifacts/Exchange.json", + "test/generated-artifacts/IAssetProxy.json", + "test/generated-artifacts/IAssetProxyDispatcher.json", + "test/generated-artifacts/IEIP1271Data.json", + "test/generated-artifacts/IEIP1271Wallet.json", + "test/generated-artifacts/IExchange.json", + "test/generated-artifacts/IExchangeCore.json", + "test/generated-artifacts/IMatchOrders.json", + "test/generated-artifacts/IProtocolFees.json", + "test/generated-artifacts/ISignatureValidator.json", + "test/generated-artifacts/ITransactions.json", + "test/generated-artifacts/ITransferSimulator.json", + "test/generated-artifacts/IWallet.json", + "test/generated-artifacts/IWrapperFunctions.json", + "test/generated-artifacts/IsolatedExchange.json", + "test/generated-artifacts/LibExchangeRichErrorDecoder.json", + "test/generated-artifacts/MixinAssetProxyDispatcher.json", + "test/generated-artifacts/MixinExchangeCore.json", + "test/generated-artifacts/MixinMatchOrders.json", + "test/generated-artifacts/MixinProtocolFees.json", + "test/generated-artifacts/MixinSignatureValidator.json", + "test/generated-artifacts/MixinTransactions.json", + "test/generated-artifacts/MixinTransferSimulator.json", + "test/generated-artifacts/MixinWrapperFunctions.json", + "test/generated-artifacts/ReentrancyTester.json", + "test/generated-artifacts/TestAssetProxyDispatcher.json", + "test/generated-artifacts/TestExchangeInternals.json", + "test/generated-artifacts/TestLibExchangeRichErrorDecoder.json", + "test/generated-artifacts/TestProtocolFeeCollector.json", + "test/generated-artifacts/TestProtocolFees.json", + "test/generated-artifacts/TestProtocolFeesReceiver.json", + "test/generated-artifacts/TestSignatureValidator.json", + "test/generated-artifacts/TestTransactions.json", + "test/generated-artifacts/TestValidatorWallet.json", + "test/generated-artifacts/TestWrapperFunctions.json" ], "exclude": ["./deploy/solc/solc_bin"] } diff --git a/contracts/extensions/.npmignore b/contracts/extensions/.npmignore new file mode 100644 index 0000000000..bdf2b8acbe --- /dev/null +++ b/contracts/extensions/.npmignore @@ -0,0 +1,10 @@ +# Blacklist all files +.* +* +# Whitelist lib +!lib/**/* +# Whitelist Solidity contracts +!contracts/src/**/* +# Blacklist tests in lib +/lib/test/* +# Package specific ignore diff --git a/contracts/extensions/CHANGELOG.json b/contracts/extensions/CHANGELOG.json index 5f12dbaa04..367e7892bf 100644 --- a/contracts/extensions/CHANGELOG.json +++ b/contracts/extensions/CHANGELOG.json @@ -1,15 +1,30 @@ [ { - "version": "4.1.0-beta.0", + "version": "4.1.0-beta.2", "changes": [ { - "note": "Dependencies updated" - }, + "note": "Drastically reduced bundle size by adding .npmignore, only exporting specific artifacts/wrappers/utils", + "pr": 2330 + } + ] + }, + { + "version": "4.1.0-beta.1", + "changes": [ { "note": "Replaced the use of `SafeMath` with `LibSafeMath`", "pr": 2254 } ], + "timestamp": 1573159180 + }, + { + "version": "4.1.0-beta.0", + "changes": [ + { + "note": "Dependencies updated" + } + ], "timestamp": 1570135330 }, { diff --git a/contracts/extensions/CHANGELOG.md b/contracts/extensions/CHANGELOG.md index 71ef8b1e5c..1607589c2f 100644 --- a/contracts/extensions/CHANGELOG.md +++ b/contracts/extensions/CHANGELOG.md @@ -5,6 +5,10 @@ Edit the package's CHANGELOG.json file only. CHANGELOG +## v4.1.0-beta.1 - _November 7, 2019_ + + * Replaced the use of `SafeMath` with `LibSafeMath` (#2254) + ## v4.1.0-beta.0 - _October 3, 2019_ * Dependencies updated diff --git a/contracts/extensions/compiler.json b/contracts/extensions/compiler.json index 6b74c612c2..6d739870f0 100644 --- a/contracts/extensions/compiler.json +++ b/contracts/extensions/compiler.json @@ -1,5 +1,5 @@ { - "artifactsDir": "./generated-artifacts", + "artifactsDir": "./test/generated-artifacts", "contractsDir": "./contracts", "useDockerisedSolc": false, "isOfflineMode": false, diff --git a/contracts/extensions/package.json b/contracts/extensions/package.json index 1ce1634f70..b30c5ae98e 100644 --- a/contracts/extensions/package.json +++ b/contracts/extensions/package.json @@ -1,6 +1,6 @@ { "name": "@0x/contracts-extensions", - "version": "4.1.0-beta.0", + "version": "4.1.0-beta.1", "engines": { "node": ">=6.12" }, @@ -12,7 +12,7 @@ "scripts": { "build": "yarn pre_build && tsc -b", "build:ci": "yarn build", - "pre_build": "run-s compile contracts:gen generate_contract_wrappers", + "pre_build": "run-s compile contracts:gen generate_contract_wrappers contracts:copy", "test": "yarn run_mocha", "rebuild_and_test": "run-s build test", "test:coverage": "SOLIDITY_COVERAGE=true run-s build run_mocha coverage:report:text coverage:report:lcov", @@ -21,20 +21,22 @@ "run_mocha": "mocha --require source-map-support/register --require make-promises-safe 'lib/test/**/*.js' --timeout 100000 --bail --exit", "compile": "sol-compiler", "watch": "sol-compiler -w", - "clean": "shx rm -rf lib generated-artifacts generated-wrappers", - "generate_contract_wrappers": "abi-gen --debug --abis ${npm_package_config_abis} --output generated-wrappers --backend ethers", - "lint": "tslint --format stylish --project . --exclude ./generated-wrappers/**/* --exclude ./generated-artifacts/**/* --exclude **/lib/**/* && yarn lint-contracts", - "fix": "tslint --fix --format stylish --project . --exclude ./generated-wrappers/**/* --exclude ./generated-artifacts/**/* --exclude **/lib/**/* && yarn lint-contracts", + "clean": "shx rm -rf lib test/generated-artifacts test/generated-wrappers generated-artifacts generated-wrappers", + "generate_contract_wrappers": "abi-gen --debug --abis ${npm_package_config_abis} --output test/generated-wrappers --backend ethers", + "lint": "tslint --format stylish --project . --exclude ./generated-wrappers/**/* --exclude ./test/generated-wrappers/**/* --exclude ./generated-artifacts/**/* --exclude ./test/generated-artifacts/**/* --exclude **/lib/**/* && yarn lint-contracts", + "fix": "tslint --fix --format stylish --project . --exclude ./generated-wrappers/**/* --exclude ./test/generated-wrappers/**/* --exclude ./generated-artifacts/**/* --exclude ./test/generated-artifacts/**/* --exclude **/lib/**/* && yarn lint-contracts", "coverage:report:text": "istanbul report text", "coverage:report:html": "istanbul report html && open coverage/index.html", "profiler:report:html": "istanbul report html && open coverage/index.html", "coverage:report:lcov": "istanbul report lcov", "test:circleci": "yarn test", - "contracts:gen": "contracts-gen", + "contracts:gen": "contracts-gen generate", + "contracts:copy": "contracts-gen copy", "lint-contracts": "solhint -c ../.solhint.json contracts/**/**/**/**/*.sol", "compile:truffle": "truffle compile" }, "config": { + "publicInterfaceContracts": "DutchAuction,OrderMatcher,BalanceThresholdFilter", "abis": "./generated-artifacts/@(BalanceThresholdFilter|DutchAuction|Exchange|ExchangeWrapper|OrderMatcher|WETH9).json", "abis:comment": "This list is auto-generated by contracts-gen. Don't edit manually." }, @@ -48,12 +50,23 @@ }, "homepage": "https://github.com/0xProject/0x-monorepo/contracts/extensions/README.md", "devDependencies": { - "@0x/abi-gen": "^4.3.0-beta.0", - "@0x/contracts-gen": "^1.1.0-beta.0", - "@0x/contracts-test-utils": "^3.2.0-beta.0", - "@0x/dev-utils": "^2.4.0-beta.0", - "@0x/sol-compiler": "^3.2.0-beta.0", - "@0x/tslint-config": "^3.0.1", + "@0x/abi-gen": "^4.4.0-beta.1", + "@0x/contracts-gen": "^1.1.0-beta.1", + "@0x/contracts-test-utils": "^3.2.0-beta.1", + "@0x/contracts-asset-proxy": "^2.3.0-beta.1", + "@0x/contracts-dev-utils": "^0.1.0-beta.1", + "@0x/contracts-erc20": "^2.3.0-beta.1", + "@0x/contracts-erc721": "^2.2.0-beta.1", + "@0x/contracts-exchange": "^2.2.0-beta.1", + "@0x/contracts-exchange-libs": "^3.1.0-beta.1", + "@0x/contracts-utils": "^3.3.0-beta.1", + "@0x/order-utils": "^8.5.0-beta.1", + "@0x/utils": "^4.6.0-beta.1", + "@0x/web3-wrapper": "^6.1.0-beta.1", + "@0x/types": "^2.5.0-beta.1", + "@0x/dev-utils": "^2.4.0-beta.1", + "@0x/sol-compiler": "^3.2.0-beta.1", + "@0x/tslint-config": "^3.1.0-beta.1", "@types/lodash": "4.14.104", "@types/mocha": "^5.2.7", "@types/node": "*", @@ -61,6 +74,7 @@ "chai-as-promised": "^7.1.0", "chai-bignumber": "^3.0.0", "dirty-chai": "^2.0.1", + "lodash": "^4.17.11", "make-promises-safe": "^1.1.0", "mocha": "^6.2.0", "npm-run-all": "^4.1.2", @@ -71,21 +85,9 @@ "typescript": "3.0.1" }, "dependencies": { - "@0x/base-contract": "^5.5.0-beta.0", - "@0x/contracts-asset-proxy": "^2.3.0-beta.0", - "@0x/contracts-dev-utils": "^0.1.0-beta.0", - "@0x/contracts-erc20": "^2.3.0-beta.0", - "@0x/contracts-erc721": "^2.2.0-beta.0", - "@0x/contracts-exchange": "^2.2.0-beta.0", - "@0x/contracts-exchange-libs": "^3.1.0-beta.0", - "@0x/contracts-utils": "^3.3.0-beta.0", - "@0x/order-utils": "^8.5.0-beta.0", - "@0x/types": "^2.5.0-beta.0", - "@0x/typescript-typings": "^4.4.0-beta.0", - "@0x/utils": "^4.6.0-beta.0", - "@0x/web3-wrapper": "^6.1.0-beta.0", - "ethereum-types": "^2.2.0-beta.0", - "lodash": "^4.17.11" + "@0x/base-contract": "^5.5.0-beta.1", + "@0x/typescript-typings": "^4.4.0-beta.1", + "ethereum-types": "^2.2.0-beta.1" }, "publishConfig": { "access": "public" diff --git a/contracts/extensions/src/index.ts b/contracts/extensions/src/index.ts index ba813e7caf..d55f08ea2d 100644 --- a/contracts/extensions/src/index.ts +++ b/contracts/extensions/src/index.ts @@ -1,3 +1,2 @@ export * from './artifacts'; export * from './wrappers'; -export * from '../test/utils'; diff --git a/contracts/extensions/test/balance_threshold_filter.ts b/contracts/extensions/test/balance_threshold_filter.ts index e1549c4707..033c2d732d 100644 --- a/contracts/extensions/test/balance_threshold_filter.ts +++ b/contracts/extensions/test/balance_threshold_filter.ts @@ -1,5 +1,5 @@ import { DevUtilsContract } from '@0x/contracts-dev-utils'; -import { ExchangeContract, ExchangeWrapper } from '@0x/contracts-exchange'; +import { ExchangeContract } from '@0x/contracts-exchange'; import { BlockchainLifecycle } from '@0x/dev-utils'; import { ExchangeRevertErrors } from '@0x/order-utils'; import { Order, RevertReason, SignedOrder } from '@0x/types'; @@ -24,7 +24,11 @@ import { web3Wrapper, } from '@0x/contracts-test-utils'; -import { artifacts, BalanceThresholdFilterContract, BalanceThresholdWrapper } from '../src'; +import { BalanceThresholdWrapper } from './utils/balance_threshold_wrapper'; + +import { BalanceThresholdFilterContract } from './wrappers'; + +import { artifacts } from './artifacts'; chaiSetup.configure(); const expect = chai.expect; @@ -52,7 +56,6 @@ describe(ContractName.BalanceThresholdFilter, () => { let zrxAssetData: string; let zrxToken: DummyERC20TokenContract; let exchangeInstance: ExchangeContract; - let exchangeWrapper: ExchangeWrapper; let devUtils: DevUtilsContract; let orderFactory: OrderFactory; @@ -139,10 +142,11 @@ describe(ContractName.BalanceThresholdFilter, () => { zrxAssetData, new BigNumber(chainId), ); - exchangeWrapper = new ExchangeWrapper(exchangeInstance); // Register proxies - await exchangeWrapper.registerAssetProxyAsync(erc20Proxy.address, owner); - await erc20Proxy.addAuthorizedAddress(exchangeInstance.address).sendTransactionAsync({ + await exchangeInstance.registerAssetProxy(erc20Proxy.address).awaitTransactionSuccessAsync({ + from: owner, + }); + await erc20Proxy.addAuthorizedAddress(exchangeInstance.address).awaitTransactionSuccessAsync({ from: owner, }); // Deploy Balance Threshold Filters diff --git a/contracts/extensions/test/dutch_auction.ts b/contracts/extensions/test/dutch_auction.ts index 83df0c61c3..1893799188 100644 --- a/contracts/extensions/test/dutch_auction.ts +++ b/contracts/extensions/test/dutch_auction.ts @@ -2,7 +2,7 @@ import { ERC20Wrapper, ERC721Wrapper } from '@0x/contracts-asset-proxy'; import { DevUtilsContract } from '@0x/contracts-dev-utils'; import { DummyERC20TokenContract } from '@0x/contracts-erc20'; import { DummyERC721TokenContract } from '@0x/contracts-erc721'; -import { ExchangeContract, ExchangeWrapper } from '@0x/contracts-exchange'; +import { ExchangeContract } from '@0x/contracts-exchange'; import { chaiSetup, constants, @@ -22,7 +22,9 @@ import { Web3Wrapper } from '@0x/web3-wrapper'; import * as chai from 'chai'; import * as _ from 'lodash'; -import { artifacts, DutchAuctionContract, DutchAuctionTestWrapper, WETH9Contract } from '../src'; +import { DutchAuctionContract, DutchAuctionTestWrapper, WETH9Contract } from './wrappers'; + +import { artifacts } from './artifacts'; chaiSetup.configure(); const expect = chai.expect; @@ -98,9 +100,12 @@ describe(ContractName.DutchAuction, () => { zrxAssetData, new BigNumber(chainId), ); - const exchangeWrapper = new ExchangeWrapper(exchangeInstance); - await exchangeWrapper.registerAssetProxyAsync(erc20Proxy.address, owner); - await exchangeWrapper.registerAssetProxyAsync(erc721Proxy.address, owner); + await exchangeInstance.registerAssetProxy.awaitTransactionSuccessAsync(erc20Proxy.address, { + from: owner, + }); + await exchangeInstance.registerAssetProxy.awaitTransactionSuccessAsync(erc721Proxy.address, { + from: owner, + }); await erc20Proxy.addAuthorizedAddress(exchangeInstance.address).sendTransactionAsync({ from: owner, diff --git a/contracts/extensions/test/order_matcher.ts b/contracts/extensions/test/order_matcher.ts index 079ae9b937..005b367110 100644 --- a/contracts/extensions/test/order_matcher.ts +++ b/contracts/extensions/test/order_matcher.ts @@ -7,7 +7,7 @@ import { import { DevUtilsContract } from '@0x/contracts-dev-utils'; import { DummyERC20TokenContract } from '@0x/contracts-erc20'; import { artifacts as erc721Artifacts, DummyERC721TokenContract } from '@0x/contracts-erc721'; -import { ExchangeContract, ExchangeWrapper } from '@0x/contracts-exchange'; +import { ExchangeContract } from '@0x/contracts-exchange'; import { chaiSetup, constants, @@ -15,6 +15,7 @@ import { expectContractCreationFailedAsync, LogDecoder, OrderFactory, + orderUtils, provider, sendTransactionResult, txDefaults, @@ -29,7 +30,9 @@ import * as chai from 'chai'; import { LogWithDecodedArgs } from 'ethereum-types'; import * as _ from 'lodash'; -import { artifacts, ExchangeFillEventArgs, OrderMatcherContract } from '../src'; +import { ExchangeFillEventArgs, OrderMatcherContract } from './wrappers'; + +import { artifacts } from './artifacts'; const blockchainLifecycle = new BlockchainLifecycle(web3Wrapper); chaiSetup.configure(); @@ -53,7 +56,6 @@ describe('OrderMatcher', () => { let orderMatcher: OrderMatcherContract; let erc20BalancesByOwner: ERC20BalancesByOwner; - let exchangeWrapper: ExchangeWrapper; let erc20Wrapper: ERC20Wrapper; let orderFactoryLeft: OrderFactory; let orderFactoryRight: OrderFactory; @@ -117,10 +119,12 @@ describe('OrderMatcher', () => { await devUtils.encodeERC20AssetData(zrxToken.address).callAsync(), new BigNumber(chainId), ); - exchangeWrapper = new ExchangeWrapper(exchange); - await exchangeWrapper.registerAssetProxyAsync(erc20Proxy.address, owner); - await exchangeWrapper.registerAssetProxyAsync(erc721Proxy.address, owner); - // Authorize ERC20 trades by exchange + await exchange.registerAssetProxy(erc20Proxy.address).awaitTransactionSuccessAsync({ + from: owner, + }); + await exchange.registerAssetProxy(erc721Proxy.address).awaitTransactionSuccessAsync({ + from: owner, + }); // Authorize ERC20 trades by exchange await web3Wrapper.awaitTransactionSuccessAsync( await erc20Proxy.addAuthorizedAddress(exchange.address).sendTransactionAsync({ from: owner, @@ -141,30 +145,21 @@ describe('OrderMatcher', () => { leftMakerAssetData = await devUtils.encodeERC20AssetData(defaultERC20MakerAssetAddress).callAsync(); leftTakerAssetData = await devUtils.encodeERC20AssetData(defaultERC20TakerAssetAddress).callAsync(); // Set OrderMatcher balances and allowances - await web3Wrapper.awaitTransactionSuccessAsync( - await erc20TokenA.setBalance(orderMatcher.address, constants.INITIAL_ERC20_BALANCE).sendTransactionAsync({ - from: owner, - }), - constants.AWAIT_TRANSACTION_MINED_MS, - ); - await web3Wrapper.awaitTransactionSuccessAsync( - await erc20TokenB.setBalance(orderMatcher.address, constants.INITIAL_ERC20_BALANCE).sendTransactionAsync({ - from: owner, - }), - constants.AWAIT_TRANSACTION_MINED_MS, - ); - await web3Wrapper - .awaitTransactionSuccessAsync( - await orderMatcher.approveAssetProxy(leftMakerAssetData, constants.INITIAL_ERC20_ALLOWANCE), - constants.AWAIT_TRANSACTION_MINED_MS, - ) - .sendTransactionAsync(); - await web3Wrapper - .awaitTransactionSuccessAsync( - await orderMatcher.approveAssetProxy(leftTakerAssetData, constants.INITIAL_ERC20_ALLOWANCE), - constants.AWAIT_TRANSACTION_MINED_MS, - ) - .sendTransactionAsync(); + await erc20TokenA + .setBalance(orderMatcher.address, constants.INITIAL_ERC20_BALANCE) + .awaitTransactionSuccessAsync({ from: owner }, { pollingIntervalMs: constants.AWAIT_TRANSACTION_MINED_MS }); + + await erc20TokenB + .setBalance(orderMatcher.address, constants.INITIAL_ERC20_BALANCE) + .awaitTransactionSuccessAsync({ from: owner }, { pollingIntervalMs: constants.AWAIT_TRANSACTION_MINED_MS }); + + await orderMatcher + .approveAssetProxy(leftMakerAssetData, constants.INITIAL_ERC20_ALLOWANCE) + .awaitTransactionSuccessAsync({}, { pollingIntervalMs: constants.AWAIT_TRANSACTION_MINED_MS }); + + await orderMatcher + .approveAssetProxy(leftTakerAssetData, constants.INITIAL_ERC20_ALLOWANCE) + .awaitTransactionSuccessAsync({}, { pollingIntervalMs: constants.AWAIT_TRANSACTION_MINED_MS }); // Create default order parameters const defaultOrderParamsLeft = { @@ -469,12 +464,14 @@ describe('OrderMatcher', () => { makerAssetAmount: Web3Wrapper.toBaseUnitAmount(new BigNumber(10), 18), takerAssetAmount: Web3Wrapper.toBaseUnitAmount(new BigNumber(2), 18), }); - await exchangeWrapper.fillOrderAsync(signedOrderLeft, takerAddress, { - takerAssetFillAmount: signedOrderLeft.takerAssetAmount.dividedToIntegerBy(5), - }); - await exchangeWrapper.fillOrderAsync(signedOrderRight, takerAddress, { - takerAssetFillAmount: signedOrderRight.takerAssetAmount.dividedToIntegerBy(5), - }); + let params = orderUtils.createFill(signedOrderLeft, signedOrderLeft.takerAssetAmount.dividedToIntegerBy(5)); + await exchange + .fillOrder(params.order, params.takerAssetFillAmount, params.signature) + .awaitTransactionSuccessAsync({ from: takerAddress }); + params = orderUtils.createFill(signedOrderRight, signedOrderRight.takerAssetAmount.dividedToIntegerBy(5)); + await exchange + .fillOrder(params.order, params.takerAssetFillAmount, params.signature) + .awaitTransactionSuccessAsync({ from: takerAddress }); const data = exchange .matchOrders(signedOrderLeft, signedOrderRight, signedOrderLeft.signature, signedOrderRight.signature) .getABIEncodedTransactionData(); diff --git a/contracts/extensions/test/utils/balance_threshold_wrapper.ts b/contracts/extensions/test/utils/balance_threshold_wrapper.ts index f1983e092b..6305bec56c 100644 --- a/contracts/extensions/test/utils/balance_threshold_wrapper.ts +++ b/contracts/extensions/test/utils/balance_threshold_wrapper.ts @@ -13,7 +13,9 @@ import { BigNumber } from '@0x/utils'; import { Web3Wrapper } from '@0x/web3-wrapper'; import { TransactionReceiptWithDecodedLogs } from 'ethereum-types'; -import { artifacts, BalanceThresholdFilterContract } from '../../src'; +import { BalanceThresholdFilterContract } from './wrappers'; + +import { artifacts } from './artifacts'; export class BalanceThresholdWrapper { private readonly _balanceThresholdFilter: BalanceThresholdFilterContract; diff --git a/contracts/integrations/.npmignore b/contracts/integrations/.npmignore new file mode 100644 index 0000000000..bdf2b8acbe --- /dev/null +++ b/contracts/integrations/.npmignore @@ -0,0 +1,10 @@ +# Blacklist all files +.* +* +# Whitelist lib +!lib/**/* +# Whitelist Solidity contracts +!contracts/src/**/* +# Blacklist tests in lib +/lib/test/* +# Package specific ignore diff --git a/contracts/integrations/CHANGELOG.json b/contracts/integrations/CHANGELOG.json index 3bc7806044..3e0dc5ed61 100644 --- a/contracts/integrations/CHANGELOG.json +++ b/contracts/integrations/CHANGELOG.json @@ -1,4 +1,13 @@ [ + { + "timestamp": 1573159180, + "version": "1.0.1", + "changes": [ + { + "note": "Dependencies updated" + } + ] + }, { "version": "1.0.0", "changes": [ diff --git a/contracts/integrations/CHANGELOG.md b/contracts/integrations/CHANGELOG.md new file mode 100644 index 0000000000..6165c4267c --- /dev/null +++ b/contracts/integrations/CHANGELOG.md @@ -0,0 +1,15 @@ + + +CHANGELOG + +## v1.0.1 - _November 7, 2019_ + + * Dependencies updated + +## v1.0.0 - _Invalid date_ + + * Created package (#2240) + * Added the deployment manager class (#2240) diff --git a/contracts/integrations/compiler.json b/contracts/integrations/compiler.json index 6b74c612c2..6d739870f0 100644 --- a/contracts/integrations/compiler.json +++ b/contracts/integrations/compiler.json @@ -1,5 +1,5 @@ { - "artifactsDir": "./generated-artifacts", + "artifactsDir": "./test/generated-artifacts", "contractsDir": "./contracts", "useDockerisedSolc": false, "isOfflineMode": false, diff --git a/contracts/integrations/package.json b/contracts/integrations/package.json index 3ffd2932f3..8a216ccaaf 100644 --- a/contracts/integrations/package.json +++ b/contracts/integrations/package.json @@ -1,6 +1,6 @@ { "name": "@0x/contracts-integrations", - "version": "1.0.0", + "version": "1.0.1", "engines": { "node": ">=6.12" }, @@ -12,7 +12,7 @@ "scripts": { "build": "yarn pre_build && tsc -b", "build:ci": "yarn build", - "pre_build": "run-s compile contracts:gen generate_contract_wrappers", + "pre_build": "run-s compile contracts:gen generate_contract_wrappers contracts:copy", "test": "yarn run_mocha", "rebuild_and_test": "run-s build test", "test:coverage": "SOLIDITY_COVERAGE=true run-s build run_mocha coverage:report:text coverage:report:lcov", @@ -21,21 +21,23 @@ "run_mocha": "mocha --require source-map-support/register --require make-promises-safe 'lib/test/**/*.js' --timeout 100000 --bail --exit", "compile": "sol-compiler", "watch": "sol-compiler -w", - "clean": "shx rm -rf lib generated-artifacts generated-wrappers", - "generate_contract_wrappers": "abi-gen --abis ${npm_package_config_abis} --output generated-wrappers --backend ethers", - "lint": "tslint --format stylish --project . --exclude ./generated-wrappers/**/* --exclude ./generated-artifacts/**/* --exclude **/lib/**/* && yarn lint-contracts", - "fix": "tslint --fix --format stylish --project . --exclude ./generated-wrappers/**/* --exclude ./generated-artifacts/**/* --exclude **/lib/**/* && yarn lint-contracts", + "clean": "shx rm -rf lib test/generated-artifacts test/generated-wrappers generated-artifacts generated-wrappers", + "generate_contract_wrappers": "abi-gen --abis ${npm_package_config_abis} --output test/generated-wrappers --backend ethers", + "lint": "tslint --format stylish --project . --exclude ./generated-wrappers/**/* --exclude ./test/generated-wrappers/**/* --exclude ./generated-artifacts/**/* --exclude ./test/generated-artifacts/**/* --exclude **/lib/**/* && yarn lint-contracts", + "fix": "tslint --fix --format stylish --project . --exclude ./generated-wrappers/**/* --exclude ./test/generated-wrappers/**/* --exclude ./generated-artifacts/**/* --exclude ./test/generated-artifacts/**/* --exclude **/lib/**/* && yarn lint-contracts", "coverage:report:text": "istanbul report text", "coverage:report:html": "istanbul report html && open coverage/index.html", "profiler:report:html": "istanbul report html && open coverage/index.html", "coverage:report:lcov": "istanbul report lcov", "test:circleci": "yarn test", - "contracts:gen": "contracts-gen", + "contracts:gen": "contracts-gen generate", + "contracts:copy": "contracts-gen copy", "lint-contracts": "solhint -c ../.solhint.json contracts/**/**/**/**/*.sol", "compile:truffle": "truffle compile" }, "config": { - "abis": "./generated-artifacts/@(TestFramework).json", + "publicInterfaceContracts": "TestFramework", + "abis": "./test/generated-artifacts/@(TestFramework).json", "abis:comment": "This list is auto-generated by contracts-gen. Don't edit manually." }, "repository": { @@ -48,11 +50,19 @@ }, "homepage": "https://github.com/0xProject/0x-monorepo/contracts/extensions/README.md", "devDependencies": { - "@0x/abi-gen": "^4.3.0-beta.0", - "@0x/contracts-gen": "^1.1.0-beta.0", - "@0x/dev-utils": "^2.4.0-beta.0", - "@0x/sol-compiler": "^3.2.0-beta.0", - "@0x/tslint-config": "^3.0.1", + "@0x/abi-gen": "^4.4.0-beta.1", + "@0x/contracts-gen": "^1.1.0-beta.1", + "@0x/contracts-coordinator": "^2.1.0-beta.1", + "@0x/contracts-dev-utils": "^0.1.0-beta.1", + "@0x/contracts-exchange-forwarder": "^3.1.0-beta.1", + "@0x/contracts-exchange-libs": "^3.1.0-beta.1", + "@0x/contracts-utils": "^3.3.0-beta.1", + "@0x/order-utils": "^8.5.0-beta.1", + "@0x/dev-utils": "^2.4.0-beta.1", + "@0x/sol-compiler": "^3.2.0-beta.1", + "@0x/tslint-config": "^3.1.0-beta.1", + "@0x/web3-wrapper": "^6.1.0-beta.1", + "@azure/core-asynciterator-polyfill": "^1.0.0", "@types/lodash": "4.14.104", "@types/mocha": "^5.2.7", "@types/node": "*", @@ -70,26 +80,19 @@ "typescript": "3.0.1" }, "dependencies": { - "@0x/base-contract": "^5.5.0-beta.0", - "@0x/contracts-asset-proxy": "^2.3.0-beta.0", - "@0x/contracts-coordinator": "^2.1.0-beta.0", - "@0x/contracts-dev-utils": "^0.1.0-beta.0", - "@0x/contracts-erc1155": "^1.2.0-beta.0", - "@0x/contracts-erc20": "^2.3.0-beta.0", - "@0x/contracts-erc721": "^2.2.0-beta.0", - "@0x/contracts-exchange": "^2.2.0-beta.0", - "@0x/contracts-exchange-forwarder": "^3.1.0-beta.0", - "@0x/contracts-exchange-libs": "^3.1.0-beta.0", - "@0x/contracts-multisig": "^3.2.0-beta.0", - "@0x/contracts-staking": "^1.1.0-beta.0", - "@0x/contracts-test-utils": "^3.2.0-beta.0", - "@0x/contracts-utils": "^3.3.0-beta.0", - "@0x/order-utils": "^8.5.0-beta.0", - "@0x/types": "^2.5.0-beta.0", - "@0x/typescript-typings": "^4.4.0-beta.0", - "@0x/utils": "^4.6.0-beta.0", - "@0x/web3-wrapper": "^6.1.0-beta.0", - "ethereum-types": "^2.2.0-beta.0", + "@0x/base-contract": "^5.5.0-beta.1", + "@0x/contracts-asset-proxy": "^2.3.0-beta.1", + "@0x/contracts-erc1155": "^1.2.0-beta.1", + "@0x/contracts-erc20": "^2.3.0-beta.1", + "@0x/contracts-erc721": "^2.2.0-beta.1", + "@0x/contracts-exchange": "^2.2.0-beta.1", + "@0x/contracts-multisig": "^3.2.0-beta.1", + "@0x/contracts-staking": "^1.1.0-beta.1", + "@0x/contracts-test-utils": "^3.2.0-beta.1", + "@0x/types": "^2.5.0-beta.1", + "@0x/typescript-typings": "^4.4.0-beta.1", + "@0x/utils": "^4.6.0-beta.1", + "ethereum-types": "^2.2.0-beta.1", "lodash": "^4.17.11" }, "publishConfig": { diff --git a/contracts/integrations/test/utils/function_assertions.ts b/contracts/integrations/src/function_assertions.ts similarity index 91% rename from contracts/integrations/test/utils/function_assertions.ts rename to contracts/integrations/src/function_assertions.ts index c3bb3c6ccf..41a8eb2c7d 100644 --- a/contracts/integrations/test/utils/function_assertions.ts +++ b/contracts/integrations/src/function_assertions.ts @@ -1,4 +1,4 @@ -import { ContractFunctionObj, ContractTxFunctionObj, PromiseWithTransactionHash } from '@0x/base-contract'; +import { ContractFunctionObj, ContractTxFunctionObj } from '@0x/base-contract'; import { TransactionReceiptWithDecodedLogs } from 'ethereum-types'; import * as _ from 'lodash'; @@ -6,7 +6,7 @@ import * as _ from 'lodash'; export type GenericContractFunction = (...args: any[]) => ContractFunctionObj; -export interface Result { +export interface FunctionResult { data?: any; success: boolean; receipt?: TransactionReceiptWithDecodedLogs; @@ -24,7 +24,7 @@ export interface Result { */ export interface Condition { before: (...args: any[]) => Promise; - after: (beforeInfo: TBefore, result: Result, ...args: any[]) => Promise; + after: (beforeInfo: TBefore, result: FunctionResult, ...args: any[]) => Promise; } /** @@ -38,8 +38,8 @@ export interface Assertion { executeAsync: (...args: any[]) => Promise; } -export interface RunResult { - beforeInfo: any; +export interface AssertionResult { + beforeInfo: TBefore; afterInfo: any; } @@ -53,12 +53,12 @@ export class FunctionAssertion implements Assertion { // The wrapper function that will be wrapped in assertions. public wrapperFunction: ( - ...args: any[] + ...args: any[] // tslint:disable-line:trailing-comma ) => ContractTxFunctionObj | ContractFunctionObj; constructor( wrapperFunction: ( - ...args: any[] + ...args: any[] // tslint:disable-line:trailing-comma ) => ContractTxFunctionObj | ContractFunctionObj, condition: Partial> = {}, ) { @@ -74,12 +74,12 @@ export class FunctionAssertion implements Assertion { * Runs the wrapped function and fails if the before or after assertions fail. * @param ...args The args to the contract wrapper function. */ - public async executeAsync(...args: any[]): Promise { + public async executeAsync(...args: any[]): Promise> { // Call the before condition. const beforeInfo = await this.condition.before(...args); // Initialize the callResult so that the default success value is true. - const callResult: Result = { success: true }; + const callResult: FunctionResult = { success: true }; // Try to make the call to the function. If it is successful, pass the // result and receipt to the after condition. @@ -90,6 +90,7 @@ export class FunctionAssertion implements Assertion { functionWithArgs.awaitTransactionSuccessAsync !== undefined ? await functionWithArgs.awaitTransactionSuccessAsync() : undefined; + // tslint:enable:await-promise } catch (error) { callResult.data = error; callResult.success = false; diff --git a/contracts/integrations/src/index.ts b/contracts/integrations/src/index.ts index 97179831da..d595a9f090 100644 --- a/contracts/integrations/src/index.ts +++ b/contracts/integrations/src/index.ts @@ -1,4 +1,3 @@ export * from './artifacts'; export * from './wrappers'; -export * from '../test/utils/function_assertions'; -export * from '../test/utils/deployment_manager'; +export * from './function_assertions'; diff --git a/contracts/integrations/test/actors/base.ts b/contracts/integrations/test/actors/base.ts index e2d2c2e618..5447f15dfb 100644 --- a/contracts/integrations/test/actors/base.ts +++ b/contracts/integrations/test/actors/base.ts @@ -5,13 +5,16 @@ import { SignatureType, SignedZeroExTransaction, ZeroExTransaction } from '@0x/t import { BigNumber } from '@0x/utils'; import * as _ from 'lodash'; -import { DeploymentManager } from '../utils/deployment_manager'; +import { AssertionResult } from '../../src/function_assertions'; +import { DeploymentManager } from '../deployment_manager'; +import { SimulationEnvironment } from '../simulation/simulation'; export type Constructor = new (...args: any[]) => T; export interface ActorConfig { name?: string; deployment: DeploymentManager; + simulationEnvironment?: SimulationEnvironment; [mixinProperty: string]: any; } @@ -21,6 +24,10 @@ export class Actor { public readonly name: string; public readonly privateKey: Buffer; public readonly deployment: DeploymentManager; + public readonly simulationEnvironment?: SimulationEnvironment; + public simulationActions: { + [action: string]: AsyncIterableIterator; + } = {}; protected readonly _transactionFactory: TransactionFactory; constructor(config: ActorConfig) { @@ -29,6 +36,7 @@ export class Actor { this.name = config.name || this.address; this.deployment = config.deployment; this.privateKey = constants.TESTRPC_PRIVATE_KEYS[config.deployment.accounts.indexOf(this.address)]; + this.simulationEnvironment = config.simulationEnvironment; this._transactionFactory = new TransactionFactory( this.privateKey, config.deployment.exchange.address, diff --git a/contracts/integrations/test/actors/pool_operator.ts b/contracts/integrations/test/actors/pool_operator.ts index 249aad85b6..b6492d84bc 100644 --- a/contracts/integrations/test/actors/pool_operator.ts +++ b/contracts/integrations/test/actors/pool_operator.ts @@ -1,13 +1,18 @@ +import { constants, StakingPoolById } from '@0x/contracts-staking'; +import { getRandomInteger } from '@0x/contracts-test-utils'; +import '@azure/core-asynciterator-polyfill'; import { TransactionReceiptWithDecodedLogs } from 'ethereum-types'; +import * as _ from 'lodash'; -import { Actor, Constructor } from './base'; +import { AssertionResult } from '../../src/function_assertions'; +import { + validCreateStakingPoolAssertion, + validDecreaseStakingPoolOperatorShareAssertion, +} from '../function-assertions'; -interface OperatorShareByPoolId { - [poolId: string]: number; -} +import { Actor, Constructor } from './base'; export interface PoolOperatorInterface { - operatorShares: OperatorShareByPoolId; createStakingPoolAsync: (operatorShare: number, addOperatorAsMaker?: boolean) => Promise; decreaseOperatorShareAsync: ( poolId: string, @@ -21,7 +26,6 @@ export interface PoolOperatorInterface { */ export function PoolOperatorMixin(Base: TBase): TBase & Constructor { return class extends Base { - public readonly operatorShares: OperatorShareByPoolId = {}; public readonly actor: Actor; /** @@ -33,6 +37,13 @@ export function PoolOperatorMixin(Base: TBase): TBase // tslint:disable-next-line:no-inferred-empty-object-type super(...args); this.actor = (this as any) as Actor; + + // Register this mixin's assertion generators + this.actor.simulationActions = { + ...this.actor.simulationActions, + validCreateStakingPool: this._validCreateStakingPool(), + validDecreaseStakingPoolOperatorShare: this._validDecreaseStakingPoolOperatorShare(), + }; } /** @@ -49,7 +60,6 @@ export function PoolOperatorMixin(Base: TBase): TBase const createStakingPoolLog = txReceipt.logs[0]; const poolId = (createStakingPoolLog as any).args.poolId; - this.operatorShares[poolId] = operatorShare; return poolId; } @@ -61,11 +71,38 @@ export function PoolOperatorMixin(Base: TBase): TBase newOperatorShare: number, ): Promise { const stakingContract = this.actor.deployment.staking.stakingWrapper; - this.operatorShares[poolId] = newOperatorShare; return stakingContract .decreaseStakingPoolOperatorShare(poolId, newOperatorShare) .awaitTransactionSuccessAsync({ from: this.actor.address }); } + + private _getOperatorPoolIds(stakingPools: StakingPoolById): string[] { + const operatorPools = _.pickBy(stakingPools, pool => pool.operator === this.actor.address); + return Object.keys(operatorPools); + } + + private async *_validCreateStakingPool(): AsyncIterableIterator { + const { stakingPools } = this.actor.simulationEnvironment!; + const assertion = validCreateStakingPoolAssertion(this.actor.deployment, stakingPools); + while (true) { + const operatorShare = getRandomInteger(0, constants.PPM); + yield assertion.executeAsync(operatorShare, false, { from: this.actor.address }); + } + } + + private async *_validDecreaseStakingPoolOperatorShare(): AsyncIterableIterator { + const { stakingPools } = this.actor.simulationEnvironment!; + const assertion = validDecreaseStakingPoolOperatorShareAssertion(this.actor.deployment, stakingPools); + while (true) { + const poolId = _.sample(this._getOperatorPoolIds(stakingPools)); + if (poolId === undefined) { + yield undefined; + } else { + const operatorShare = getRandomInteger(0, stakingPools[poolId].operatorShare); + yield assertion.executeAsync(poolId, operatorShare, { from: this.actor.address }); + } + } + } }; } diff --git a/contracts/integrations/test/actors/staker.ts b/contracts/integrations/test/actors/staker.ts index 77fa8e9636..5954e8dbc6 100644 --- a/contracts/integrations/test/actors/staker.ts +++ b/contracts/integrations/test/actors/staker.ts @@ -1,5 +1,11 @@ -import { StakeInfo, StakeStatus } from '@0x/contracts-staking'; +import { OwnerStakeByStatus, StakeInfo, StakeStatus, StoredBalance } from '@0x/contracts-staking'; +import { getRandomInteger } from '@0x/contracts-test-utils'; import { BigNumber } from '@0x/utils'; +import '@azure/core-asynciterator-polyfill'; +import * as _ from 'lodash'; + +import { AssertionResult } from '../../src/function_assertions'; +import { validMoveStakeAssertion, validStakeAssertion, validUnstakeAssertion } from '../function-assertions'; import { Actor, Constructor } from './base'; @@ -13,6 +19,7 @@ export interface StakerInterface { */ export function StakerMixin(Base: TBase): TBase & Constructor { return class extends Base { + public stake: OwnerStakeByStatus; public readonly actor: Actor; /** @@ -24,6 +31,18 @@ export function StakerMixin(Base: TBase): TBase & Con // tslint:disable-next-line:no-inferred-empty-object-type super(...args); this.actor = (this as any) as Actor; + this.stake = { + [StakeStatus.Undelegated]: new StoredBalance(), + [StakeStatus.Delegated]: { total: new StoredBalance() }, + }; + + // Register this mixin's assertion generators + this.actor.simulationActions = { + ...this.actor.simulationActions, + validStake: this._validStake(), + validUnstake: this._validUnstake(), + validMoveStake: this._validMoveStake(), + }; } /** @@ -45,6 +64,67 @@ export function StakerMixin(Base: TBase): TBase & Con .awaitTransactionSuccessAsync({ from: this.actor.address }); } } + + private async *_validStake(): AsyncIterableIterator { + const { zrx } = this.actor.deployment.tokens; + const { deployment, balanceStore, globalStake } = this.actor.simulationEnvironment!; + const assertion = validStakeAssertion(deployment, balanceStore, globalStake, this.stake); + + while (true) { + await balanceStore.updateErc20BalancesAsync(); + const zrxBalance = balanceStore.balances.erc20[this.actor.address][zrx.address]; + const amount = getRandomInteger(0, zrxBalance); + yield assertion.executeAsync(amount, { from: this.actor.address }); + } + } + + private async *_validUnstake(): AsyncIterableIterator { + const { stakingWrapper } = this.actor.deployment.staking; + const { deployment, balanceStore, globalStake } = this.actor.simulationEnvironment!; + const assertion = validUnstakeAssertion(deployment, balanceStore, globalStake, this.stake); + + while (true) { + await balanceStore.updateErc20BalancesAsync(); + const undelegatedStake = await stakingWrapper + .getOwnerStakeByStatus(this.actor.address, StakeStatus.Undelegated) + .callAsync(); + const withdrawableStake = BigNumber.min( + undelegatedStake.currentEpochBalance, + undelegatedStake.nextEpochBalance, + ); + const amount = getRandomInteger(0, withdrawableStake); + yield assertion.executeAsync(amount, { from: this.actor.address }); + } + } + + private async *_validMoveStake(): AsyncIterableIterator { + const { deployment, globalStake, stakingPools } = this.actor.simulationEnvironment!; + const assertion = validMoveStakeAssertion(deployment, globalStake, this.stake, stakingPools); + + while (true) { + const fromPoolId = _.sample(Object.keys(_.omit(this.stake[StakeStatus.Delegated], ['total']))); + const fromStatus = + fromPoolId === undefined + ? StakeStatus.Undelegated + : (_.sample([StakeStatus.Undelegated, StakeStatus.Delegated]) as StakeStatus); + const from = new StakeInfo(fromStatus, fromPoolId); + + const toPoolId = _.sample(Object.keys(stakingPools)); + const toStatus = + toPoolId === undefined + ? StakeStatus.Undelegated + : (_.sample([StakeStatus.Undelegated, StakeStatus.Delegated]) as StakeStatus); + const to = new StakeInfo(toStatus, toPoolId); + + const moveableStake = + from.status === StakeStatus.Undelegated + ? this.stake[StakeStatus.Undelegated].nextEpochBalance + : this.stake[StakeStatus.Delegated][from.poolId].nextEpochBalance; + const amount = getRandomInteger(0, moveableStake); + + yield assertion.executeAsync(from, to, amount, { from: this.actor.address }); + } + } }; } diff --git a/contracts/integrations/test/actors/taker.ts b/contracts/integrations/test/actors/taker.ts index 36ad4237e8..65672f9a52 100644 --- a/contracts/integrations/test/actors/taker.ts +++ b/contracts/integrations/test/actors/taker.ts @@ -2,7 +2,7 @@ import { SignedOrder } from '@0x/types'; import { BigNumber } from '@0x/utils'; import { TransactionReceiptWithDecodedLogs, TxData } from 'ethereum-types'; -import { DeploymentManager } from '../utils/deployment_manager'; +import { DeploymentManager } from '../deployment_manager'; import { Actor, Constructor } from './base'; diff --git a/contracts/integrations/test/actors/tslint.json b/contracts/integrations/test/actors/tslint.json index afa3246052..db108598aa 100644 --- a/contracts/integrations/test/actors/tslint.json +++ b/contracts/integrations/test/actors/tslint.json @@ -1,6 +1,7 @@ { "extends": ["@0x/tslint-config"], "rules": { - "max-classes-per-file": false + "max-classes-per-file": false, + "no-non-null-assertion": false } } diff --git a/contracts/integrations/test/actors/utils.ts b/contracts/integrations/test/actors/utils.ts index 9311e170b6..2164cbeec6 100644 --- a/contracts/integrations/test/actors/utils.ts +++ b/contracts/integrations/test/actors/utils.ts @@ -1,4 +1,4 @@ -import { TokenOwnersByName } from '@0x/contracts-exchange'; +import { ObjectMap } from '@0x/types'; import * as _ from 'lodash'; import { Actor } from './base'; @@ -7,6 +7,6 @@ import { Actor } from './base'; * Utility function to convert Actors into an object mapping readable names to addresses. * Useful for BalanceStore. */ -export function actorAddressesByName(actors: Actor[]): TokenOwnersByName { +export function actorAddressesByName(actors: Actor[]): ObjectMap { return _.zipObject(actors.map(actor => actor.name), actors.map(actor => actor.address)); } diff --git a/contracts/integrations/test/artifacts.ts b/contracts/integrations/test/artifacts.ts new file mode 100644 index 0000000000..8ea0d872cf --- /dev/null +++ b/contracts/integrations/test/artifacts.ts @@ -0,0 +1,9 @@ +/* + * ----------------------------------------------------------------------------- + * Warning: This file is auto-generated by contracts-gen. Don't edit manually. + * ----------------------------------------------------------------------------- + */ +import { ContractArtifact } from 'ethereum-types'; + +import * as TestFramework from '../test/generated-artifacts/TestFramework.json'; +export const artifacts = { TestFramework: TestFramework as ContractArtifact }; diff --git a/contracts/integrations/test/coordinator/coordinator_test.ts b/contracts/integrations/test/coordinator/coordinator_test.ts index 7409b64af7..0a863591af 100644 --- a/contracts/integrations/test/coordinator/coordinator_test.ts +++ b/contracts/integrations/test/coordinator/coordinator_test.ts @@ -2,18 +2,17 @@ import { CoordinatorContract, SignedCoordinatorApproval } from '@0x/contracts-co import { DevUtilsContract } from '@0x/contracts-dev-utils'; import { BlockchainBalanceStore, - constants as exchangeConstants, ExchangeCancelEventArgs, ExchangeCancelUpToEventArgs, exchangeDataEncoder, ExchangeEvents, ExchangeFillEventArgs, - ExchangeFunctionName, LocalBalanceStore, } from '@0x/contracts-exchange'; import { blockchainTests, constants, + ExchangeFunctionName, expect, hexConcat, hexSlice, @@ -26,7 +25,7 @@ import { BigNumber } from '@0x/utils'; import { TransactionReceiptWithDecodedLogs } from 'ethereum-types'; import { Actor, actorAddressesByName, FeeRecipient, Maker } from '../actors'; -import { DeploymentManager } from '../utils/deployment_manager'; +import { DeploymentManager } from '../deployment_manager'; import { deployCoordinatorAsync } from './deploy_coordinator'; @@ -174,7 +173,7 @@ blockchainTests.resets('Coordinator integration tests', env => { let transaction: SignedZeroExTransaction; let approval: SignedCoordinatorApproval; - for (const fnName of exchangeConstants.SINGLE_FILL_FN_NAMES) { + for (const fnName of constants.SINGLE_FILL_FN_NAMES) { before(async () => { order = await maker.signOrderAsync(); data = exchangeDataEncoder.encodeOrdersToExchangeData(fnName, [order]); @@ -292,7 +291,7 @@ blockchainTests.resets('Coordinator integration tests', env => { let transaction: SignedZeroExTransaction; let approval: SignedCoordinatorApproval; - for (const fnName of [...exchangeConstants.MARKET_FILL_FN_NAMES, ...exchangeConstants.BATCH_FILL_FN_NAMES]) { + for (const fnName of [...constants.MARKET_FILL_FN_NAMES, ...constants.BATCH_FILL_FN_NAMES]) { before(async () => { orders = [await maker.signOrderAsync(), await maker.signOrderAsync()]; data = exchangeDataEncoder.encodeOrdersToExchangeData(fnName, orders); diff --git a/contracts/integrations/test/coordinator/deploy_coordinator.ts b/contracts/integrations/test/coordinator/deploy_coordinator.ts index f5b1c93842..90b274da60 100644 --- a/contracts/integrations/test/coordinator/deploy_coordinator.ts +++ b/contracts/integrations/test/coordinator/deploy_coordinator.ts @@ -3,7 +3,7 @@ import { artifacts as exchangeArtifacts } from '@0x/contracts-exchange'; import { BlockchainTestsEnvironment } from '@0x/contracts-test-utils'; import { BigNumber } from '@0x/utils'; -import { DeploymentManager } from '../utils/deployment_manager'; +import { DeploymentManager } from '../deployment_manager'; /** * Deploys a Coordinator contract configured to work alongside the provided `deployment`. diff --git a/contracts/integrations/test/utils/deployment_manager.ts b/contracts/integrations/test/deployment_manager.ts similarity index 96% rename from contracts/integrations/test/utils/deployment_manager.ts rename to contracts/integrations/test/deployment_manager.ts index 93a8ebd3a8..1dedc5d4d8 100644 --- a/contracts/integrations/test/utils/deployment_manager.ts +++ b/contracts/integrations/test/deployment_manager.ts @@ -6,16 +6,11 @@ import { MultiAssetProxyContract, StaticCallProxyContract, } from '@0x/contracts-asset-proxy'; +import { DevUtilsContract } from '@0x/contracts-dev-utils'; import { artifacts as ERC1155Artifacts, ERC1155MintableContract } from '@0x/contracts-erc1155'; import { artifacts as ERC20Artifacts, DummyERC20TokenContract, WETH9Contract } from '@0x/contracts-erc20'; import { artifacts as ERC721Artifacts, DummyERC721TokenContract } from '@0x/contracts-erc721'; -import { - artifacts as exchangeArtifacts, - AssetProxyDispatcher, - Authorizable, - ExchangeContract, - Ownable, -} from '@0x/contracts-exchange'; +import { artifacts as exchangeArtifacts, ExchangeContract } from '@0x/contracts-exchange'; import { artifacts as multisigArtifacts, ZeroExGovernorContract } from '@0x/contracts-multisig'; import { artifacts as stakingArtifacts, @@ -28,6 +23,8 @@ import { BigNumber } from '@0x/utils'; import { TxData } from 'ethereum-types'; import * as _ from 'lodash'; +import { AssetProxyDispatcher, Authorizable, Ownable } from './wrapper_interfaces'; + /** * Adds a batch of authorities to a list of authorizable contracts. * @param owner The owner of the authorizable contracts. @@ -195,7 +192,19 @@ export class DeploymentManager { staking.stakingProxy, ]); - return new DeploymentManager(assetProxies, governor, exchange, staking, tokens, chainId, accounts, txDefaults); + const devUtils = new DevUtilsContract(constants.NULL_ADDRESS, environment.provider); + + return new DeploymentManager( + assetProxies, + governor, + exchange, + staking, + tokens, + chainId, + accounts, + txDefaults, + devUtils, + ); } /** @@ -484,6 +493,7 @@ export class DeploymentManager { public chainId: number, public accounts: string[], public txDefaults: Partial, + public devUtils: DevUtilsContract, ) {} } // tslint:disable:max-file-line-count diff --git a/contracts/integrations/test/forwarder/deploy_forwarder.ts b/contracts/integrations/test/forwarder/deploy_forwarder.ts index 88056fb423..27630b441c 100644 --- a/contracts/integrations/test/forwarder/deploy_forwarder.ts +++ b/contracts/integrations/test/forwarder/deploy_forwarder.ts @@ -3,7 +3,7 @@ import { artifacts, ForwarderContract } from '@0x/contracts-exchange-forwarder'; import { BlockchainTestsEnvironment } from '@0x/contracts-test-utils'; import { assetDataUtils } from '@0x/order-utils'; -import { DeploymentManager } from '../utils/deployment_manager'; +import { DeploymentManager } from '../deployment_manager'; /** * Deploys a Forwarder contract configured to work alongside the provided `deployment`. diff --git a/contracts/integrations/test/forwarder/forwarder_test.ts b/contracts/integrations/test/forwarder/forwarder_test.ts index 9bc82e4762..9f88478dad 100644 --- a/contracts/integrations/test/forwarder/forwarder_test.ts +++ b/contracts/integrations/test/forwarder/forwarder_test.ts @@ -21,7 +21,7 @@ import { ForwarderRevertErrors } from '@0x/order-utils'; import { BigNumber } from '@0x/utils'; import { Actor, actorAddressesByName, FeeRecipient, Maker } from '../actors'; -import { DeploymentManager } from '../utils/deployment_manager'; +import { DeploymentManager } from '../deployment_manager'; import { deployForwarderAsync } from './deploy_forwarder'; import { ForwarderTestFactory } from './forwarder_test_factory'; diff --git a/contracts/integrations/test/forwarder/forwarder_test_factory.ts b/contracts/integrations/test/forwarder/forwarder_test_factory.ts index 70be41d387..a0f7dcf872 100644 --- a/contracts/integrations/test/forwarder/forwarder_test_factory.ts +++ b/contracts/integrations/test/forwarder/forwarder_test_factory.ts @@ -7,7 +7,7 @@ import { BigNumber, RevertError } from '@0x/utils'; import { TransactionReceiptWithDecodedLogs } from 'ethereum-types'; import { Actor, FeeRecipient, Maker } from '../actors'; -import { DeploymentManager } from '../utils/deployment_manager'; +import { DeploymentManager } from '../deployment_manager'; // Necessary bookkeeping to validate Forwarder results interface ForwarderFillState { diff --git a/contracts/integrations/test/framework-unit-tests/deployment_manager_test.ts b/contracts/integrations/test/framework-unit-tests/deployment_manager_test.ts index f5e92e2b3e..0b0746f412 100644 --- a/contracts/integrations/test/framework-unit-tests/deployment_manager_test.ts +++ b/contracts/integrations/test/framework-unit-tests/deployment_manager_test.ts @@ -1,8 +1,8 @@ -import { Authorizable, Ownable } from '@0x/contracts-exchange'; import { constants as stakingConstants } from '@0x/contracts-staking'; import { blockchainTests, expect } from '@0x/contracts-test-utils'; -import { DeploymentManager } from '../utils/deployment_manager'; +import { DeploymentManager } from '../deployment_manager'; +import { Authorizable, Ownable } from '../wrapper_interfaces'; blockchainTests('Deployment Manager', env => { let owner: string; diff --git a/contracts/integrations/test/framework-unit-tests/function_assertion_test.ts b/contracts/integrations/test/framework-unit-tests/function_assertion_test.ts index 60b18b183d..c4e5b3ab1f 100644 --- a/contracts/integrations/test/framework-unit-tests/function_assertion_test.ts +++ b/contracts/integrations/test/framework-unit-tests/function_assertion_test.ts @@ -2,8 +2,10 @@ import { blockchainTests, constants, expect, filterLogsToArguments, getRandomInt import { BigNumber, StringRevertError } from '@0x/utils'; import { TransactionReceiptWithDecodedLogs } from 'ethereum-types'; -import { artifacts, TestFrameworkContract, TestFrameworkEventEventArgs, TestFrameworkEvents } from '../../src'; -import { FunctionAssertion, Result } from '../utils/function_assertions'; +import { FunctionAssertion, FunctionResult } from '../../src/function_assertions'; + +import { artifacts } from '../artifacts'; +import { TestFrameworkContract, TestFrameworkEventEventArgs, TestFrameworkEvents } from '../wrappers'; const { ZERO_AMOUNT, MAX_UINT256 } = constants; @@ -34,8 +36,8 @@ blockchainTests.resets('FunctionAssertion Unit Tests', env => { it('should call the after function with the provided arguments', async () => { let sideEffectTarget = ZERO_AMOUNT; - const assertion = new FunctionAssertion(exampleContract.returnInteger.bind(exampleContract), { - after: async (_beforeInfo: any, _result: Result, input: BigNumber) => { + const assertion = new FunctionAssertion(exampleContract.returnInteger, { + after: async (_beforeInfo: any, _result: FunctionResult, input: BigNumber) => { sideEffectTarget = input; }, }); @@ -56,7 +58,7 @@ blockchainTests.resets('FunctionAssertion Unit Tests', env => { before: async (_input: BigNumber) => { return randomInput; }, - after: async (beforeInfo: any, _result: Result, _input: BigNumber) => { + after: async (beforeInfo: any, _result: FunctionResult, _input: BigNumber) => { sideEffectTarget = beforeInfo; }, }); @@ -66,8 +68,8 @@ blockchainTests.resets('FunctionAssertion Unit Tests', env => { it('should pass the result from the function call to "after"', async () => { let sideEffectTarget = ZERO_AMOUNT; - const assertion = new FunctionAssertion(exampleContract.returnInteger.bind(exampleContract), { - after: async (_beforeInfo: any, result: Result, _input: BigNumber) => { + const assertion = new FunctionAssertion(exampleContract.returnInteger, { + after: async (_beforeInfo: any, result: FunctionResult, _input: BigNumber) => { sideEffectTarget = result.data; }, }); @@ -78,8 +80,8 @@ blockchainTests.resets('FunctionAssertion Unit Tests', env => { it('should pass the receipt from the function call to "after"', async () => { let sideEffectTarget: TransactionReceiptWithDecodedLogs; - const assertion = new FunctionAssertion(exampleContract.emitEvent.bind(exampleContract), { - after: async (_beforeInfo: any, result: Result, _input: string) => { + const assertion = new FunctionAssertion(exampleContract.emitEvent, { + after: async (_beforeInfo: any, result: FunctionResult, _input: string) => { if (result.receipt) { sideEffectTarget = result.receipt; } @@ -99,8 +101,8 @@ blockchainTests.resets('FunctionAssertion Unit Tests', env => { it('should pass the error to "after" if the function call fails', async () => { let sideEffectTarget: Error; - const assertion = new FunctionAssertion(exampleContract.stringRevert.bind(exampleContract), { - after: async (_beforeInfo: any, result: Result, _input: string) => { + const assertion = new FunctionAssertion(exampleContract.stringRevert, { + after: async (_beforeInfo: any, result: FunctionResult, _input: string) => { sideEffectTarget = result.data; }, }); diff --git a/contracts/integrations/test/function-assertions/createStakingPool.ts b/contracts/integrations/test/function-assertions/createStakingPool.ts new file mode 100644 index 0000000000..b2cd793fe9 --- /dev/null +++ b/contracts/integrations/test/function-assertions/createStakingPool.ts @@ -0,0 +1,53 @@ +import { StakingPoolById, StoredBalance } from '@0x/contracts-staking'; +import { expect } from '@0x/contracts-test-utils'; +import { BigNumber, logUtils } from '@0x/utils'; +import { TxData } from 'ethereum-types'; + +import { FunctionAssertion, FunctionResult } from '../../src/function_assertions'; +import { DeploymentManager } from '../deployment_manager'; + +// tslint:disable:no-unnecessary-type-assertion + +/** + * Returns a FunctionAssertion for `createStakingPool` which assumes valid input is provided. The + * FunctionAssertion checks that the new poolId is one more than the last poolId. + */ +export function validCreateStakingPoolAssertion( + deployment: DeploymentManager, + pools: StakingPoolById, +): FunctionAssertion { + const { stakingWrapper } = deployment.staking; + + return new FunctionAssertion(stakingWrapper.createStakingPool, { + // Returns the expected ID of th created pool + before: async () => { + const lastPoolId = await stakingWrapper.lastPoolId().callAsync(); + // Effectively the last poolId + 1, but as a bytestring + return `0x${new BigNumber(lastPoolId) + .plus(1) + .toString(16) + .padStart(64, '0')}`; + }, + after: async ( + expectedPoolId: string, + result: FunctionResult, + operatorShare: number, + addOperatorAsMaker: boolean, + txData: Partial, + ) => { + logUtils.log(`createStakingPool(${operatorShare}, ${addOperatorAsMaker}) => ${expectedPoolId}`); + + // Checks the logs for the new poolId, verifies that it is as expected + const log = result.receipt!.logs[0]; // tslint:disable-line:no-non-null-assertion + const actualPoolId = (log as any).args.poolId; + expect(actualPoolId).to.equal(expectedPoolId); + + // Adds the new pool to local state + pools[actualPoolId] = { + operator: txData.from as string, + operatorShare, + delegatedStake: new StoredBalance(), + }; + }, + }); +} diff --git a/contracts/integrations/test/function-assertions/decreaseStakingPoolOperatorShare.ts b/contracts/integrations/test/function-assertions/decreaseStakingPoolOperatorShare.ts new file mode 100644 index 0000000000..f27816c59c --- /dev/null +++ b/contracts/integrations/test/function-assertions/decreaseStakingPoolOperatorShare.ts @@ -0,0 +1,29 @@ +import { StakingPoolById } from '@0x/contracts-staking'; +import { expect } from '@0x/contracts-test-utils'; +import { logUtils } from '@0x/utils'; + +import { FunctionAssertion, FunctionResult } from '../../src/function_assertions'; +import { DeploymentManager } from '../deployment_manager'; + +/** + * Returns a FunctionAssertion for `decreaseStakingPoolOperatorShare` which assumes valid input is + * provided. The FunctionAssertion checks that the operator share actually gets updated. + */ +export function validDecreaseStakingPoolOperatorShareAssertion( + deployment: DeploymentManager, + pools: StakingPoolById, +): FunctionAssertion<{}, void> { + const { stakingWrapper } = deployment.staking; + + return new FunctionAssertion<{}, void>(stakingWrapper.decreaseStakingPoolOperatorShare, { + after: async (_beforeInfo, _result: FunctionResult, poolId: string, expectedOperatorShare: number) => { + logUtils.log(`decreaseStakingPoolOperatorShare(${poolId}, ${expectedOperatorShare})`); + + // Checks that the on-chain pool's operator share has been updated. + const { operatorShare } = await stakingWrapper.getStakingPool(poolId).callAsync(); + expect(operatorShare).to.bignumber.equal(expectedOperatorShare); + // Updates the pool in local state. + pools[poolId].operatorShare = operatorShare; + }, + }); +} diff --git a/contracts/integrations/test/function-assertions/index.ts b/contracts/integrations/test/function-assertions/index.ts new file mode 100644 index 0000000000..6f5728d778 --- /dev/null +++ b/contracts/integrations/test/function-assertions/index.ts @@ -0,0 +1,5 @@ +export * from './stake'; +export * from './unstake'; +export * from './createStakingPool'; +export * from './decreaseStakingPoolOperatorShare'; +export * from './moveStake'; diff --git a/contracts/integrations/test/function-assertions/moveStake.ts b/contracts/integrations/test/function-assertions/moveStake.ts new file mode 100644 index 0000000000..2404e06240 --- /dev/null +++ b/contracts/integrations/test/function-assertions/moveStake.ts @@ -0,0 +1,138 @@ +import { + GlobalStakeByStatus, + OwnerStakeByStatus, + StakeInfo, + StakeStatus, + StakingPoolById, + StoredBalance, +} from '@0x/contracts-staking'; +import { constants, expect } from '@0x/contracts-test-utils'; +import { BigNumber, logUtils } from '@0x/utils'; +import { TxData } from 'ethereum-types'; +import * as _ from 'lodash'; + +import { FunctionAssertion } from '../../src/function_assertions'; +import { DeploymentManager } from '../deployment_manager'; + +function incrementNextEpochBalance(stakeBalance: StoredBalance, amount: BigNumber): void { + _.update(stakeBalance, ['nextEpochBalance'], balance => (balance || constants.ZERO_AMOUNT).plus(amount)); +} + +function decrementNextEpochBalance(stakeBalance: StoredBalance, amount: BigNumber): void { + _.update(stakeBalance, ['nextEpochBalance'], balance => (balance || constants.ZERO_AMOUNT).minus(amount)); +} + +function updateNextEpochBalances( + globalStake: GlobalStakeByStatus, + ownerStake: OwnerStakeByStatus, + pools: StakingPoolById, + from: StakeInfo, + to: StakeInfo, + amount: BigNumber, +): string[] { + // The on-chain state of these updated pools will be verified in the `after` of the assertion. + const updatedPools = []; + + // Decrement next epoch balances associated with the `from` stake + if (from.status === StakeStatus.Undelegated) { + // Decrement owner undelegated stake + decrementNextEpochBalance(ownerStake[StakeStatus.Undelegated], amount); + // Decrement global undelegated stake + decrementNextEpochBalance(globalStake[StakeStatus.Undelegated], amount); + } else if (from.status === StakeStatus.Delegated) { + // Decrement owner's delegated stake to this pool + decrementNextEpochBalance(ownerStake[StakeStatus.Delegated][from.poolId], amount); + // Decrement owner's total delegated stake + decrementNextEpochBalance(ownerStake[StakeStatus.Delegated].total, amount); + // Decrement global delegated stake + decrementNextEpochBalance(globalStake[StakeStatus.Delegated], amount); + // Decrement pool's delegated stake + decrementNextEpochBalance(pools[from.poolId].delegatedStake, amount); + updatedPools.push(from.poolId); + } + + // Increment next epoch balances associated with the `to` stake + if (to.status === StakeStatus.Undelegated) { + incrementNextEpochBalance(ownerStake[StakeStatus.Undelegated], amount); + incrementNextEpochBalance(globalStake[StakeStatus.Undelegated], amount); + } else if (to.status === StakeStatus.Delegated) { + // Initializes the balance for this pool if the user has not previously delegated to it + _.defaults(ownerStake[StakeStatus.Delegated], { + [to.poolId]: new StoredBalance(), + }); + // Increment owner's delegated stake to this pool + incrementNextEpochBalance(ownerStake[StakeStatus.Delegated][to.poolId], amount); + // Increment owner's total delegated stake + incrementNextEpochBalance(ownerStake[StakeStatus.Delegated].total, amount); + // Increment global delegated stake + incrementNextEpochBalance(globalStake[StakeStatus.Delegated], amount); + // Increment pool's delegated stake + incrementNextEpochBalance(pools[to.poolId].delegatedStake, amount); + updatedPools.push(to.poolId); + } + return updatedPools; +} +/** + * Returns a FunctionAssertion for `moveStake` which assumes valid input is provided. The + * FunctionAssertion checks that the staker's + */ +export function validMoveStakeAssertion( + deployment: DeploymentManager, + globalStake: GlobalStakeByStatus, + ownerStake: OwnerStakeByStatus, + pools: StakingPoolById, +): FunctionAssertion<{}, void> { + const { stakingWrapper } = deployment.staking; + + return new FunctionAssertion<{}, void>(stakingWrapper.moveStake, { + after: async ( + _beforeInfo, + _result, + from: StakeInfo, + to: StakeInfo, + amount: BigNumber, + txData: Partial, + ) => { + logUtils.log( + `moveStake({status: ${StakeStatus[from.status]}, poolId: ${from.poolId} }, { status: ${ + StakeStatus[to.status] + }, poolId: ${to.poolId} }, ${amount})`, + ); + + const owner = txData.from as string; + + // Update local balances to match the expected result of this `moveStake` operation + const updatedPools = updateNextEpochBalances(globalStake, ownerStake, pools, from, to, amount); + + // Fetches on-chain owner stake balances and checks against local balances + const ownerUndelegatedStake = { + ...new StoredBalance(), + ...(await stakingWrapper.getOwnerStakeByStatus(owner, StakeStatus.Undelegated).callAsync()), + }; + const ownerDelegatedStake = { + ...new StoredBalance(), + ...(await stakingWrapper.getOwnerStakeByStatus(owner, StakeStatus.Delegated).callAsync()), + }; + expect(ownerUndelegatedStake).to.deep.equal(ownerStake[StakeStatus.Undelegated]); + expect(ownerDelegatedStake).to.deep.equal(ownerStake[StakeStatus.Delegated].total); + + // Fetches on-chain global stake balances and checks against local balances + const globalUndelegatedStake = await stakingWrapper + .getGlobalStakeByStatus(StakeStatus.Undelegated) + .callAsync(); + const globalDelegatedStake = await stakingWrapper.getGlobalStakeByStatus(StakeStatus.Delegated).callAsync(); + expect(globalUndelegatedStake).to.deep.equal(globalStake[StakeStatus.Undelegated]); + expect(globalDelegatedStake).to.deep.equal(globalStake[StakeStatus.Delegated]); + + // Fetches on-chain pool stake balances and checks against local balances + for (const poolId of updatedPools) { + const stakeDelegatedByOwner = await stakingWrapper + .getStakeDelegatedToPoolByOwner(owner, poolId) + .callAsync(); + const totalStakeDelegated = await stakingWrapper.getTotalStakeDelegatedToPool(poolId).callAsync(); + expect(stakeDelegatedByOwner).to.deep.equal(ownerStake[StakeStatus.Delegated][poolId]); + expect(totalStakeDelegated).to.deep.equal(pools[poolId].delegatedStake); + } + }, + }); +} diff --git a/contracts/integrations/test/function-assertions/stake.ts b/contracts/integrations/test/function-assertions/stake.ts new file mode 100644 index 0000000000..f1893d82ed --- /dev/null +++ b/contracts/integrations/test/function-assertions/stake.ts @@ -0,0 +1,77 @@ +import { BlockchainBalanceStore, LocalBalanceStore } from '@0x/contracts-exchange'; +import { GlobalStakeByStatus, OwnerStakeByStatus, StakeStatus, StoredBalance } from '@0x/contracts-staking'; +import { expect } from '@0x/contracts-test-utils'; +import { BigNumber, logUtils } from '@0x/utils'; +import { TxData } from 'ethereum-types'; + +import { FunctionAssertion, FunctionResult } from '../../src/function_assertions'; +import { DeploymentManager } from '../deployment_manager'; + +function expectedUndelegatedStake( + initStake: OwnerStakeByStatus | GlobalStakeByStatus, + amount: BigNumber, +): StoredBalance { + return { + currentEpoch: initStake[StakeStatus.Undelegated].currentEpoch, + currentEpochBalance: initStake[StakeStatus.Undelegated].currentEpochBalance.plus(amount), + nextEpochBalance: initStake[StakeStatus.Undelegated].nextEpochBalance.plus(amount), + }; +} + +/** + * Returns a FunctionAssertion for `stake` which assumes valid input is provided. The + * FunctionAssertion checks that the staker and zrxVault's balances of ZRX decrease and increase, + * respectively, by the input amount. + */ +export function validStakeAssertion( + deployment: DeploymentManager, + balanceStore: BlockchainBalanceStore, + globalStake: GlobalStakeByStatus, + ownerStake: OwnerStakeByStatus, +): FunctionAssertion { + const { stakingWrapper, zrxVault } = deployment.staking; + + return new FunctionAssertion(stakingWrapper.stake, { + before: async (amount: BigNumber, txData: Partial) => { + // Simulates the transfer of ZRX from staker to vault + const expectedBalances = LocalBalanceStore.create(deployment.devUtils, balanceStore); + await expectedBalances.transferAssetAsync( + txData.from as string, + zrxVault.address, + amount, + await deployment.devUtils.encodeERC20AssetData(deployment.tokens.zrx.address).callAsync(), + ); + return expectedBalances; + }, + after: async ( + expectedBalances: LocalBalanceStore, + _result: FunctionResult, + amount: BigNumber, + txData: Partial, + ) => { + logUtils.log(`stake(${amount})`); + + // Checks that the ZRX transfer updated balances as expected. + await balanceStore.updateErc20BalancesAsync(); + balanceStore.assertEquals(expectedBalances); + + // Checks that the owner's undelegated stake has increased by the stake amount + const ownerUndelegatedStake = await stakingWrapper + .getOwnerStakeByStatus(txData.from as string, StakeStatus.Undelegated) + .callAsync(); + const expectedOwnerUndelegatedStake = expectedUndelegatedStake(ownerStake, amount); + expect(ownerUndelegatedStake, 'Owner undelegated stake').to.deep.equal(expectedOwnerUndelegatedStake); + // Updates local state accordingly + ownerStake[StakeStatus.Undelegated] = expectedOwnerUndelegatedStake; + + // Checks that the global undelegated stake has also increased by the stake amount + const globalUndelegatedStake = await stakingWrapper + .getGlobalStakeByStatus(StakeStatus.Undelegated) + .callAsync(); + const expectedGlobalUndelegatedStake = expectedUndelegatedStake(globalStake, amount); + expect(globalUndelegatedStake, 'Global undelegated stake').to.deep.equal(expectedGlobalUndelegatedStake); + // Updates local state accordingly + globalStake[StakeStatus.Undelegated] = expectedGlobalUndelegatedStake; + }, + }); +} diff --git a/contracts/integrations/test/function-assertions/unstake.ts b/contracts/integrations/test/function-assertions/unstake.ts new file mode 100644 index 0000000000..64709cbeee --- /dev/null +++ b/contracts/integrations/test/function-assertions/unstake.ts @@ -0,0 +1,77 @@ +import { BlockchainBalanceStore, LocalBalanceStore } from '@0x/contracts-exchange'; +import { GlobalStakeByStatus, OwnerStakeByStatus, StakeStatus, StoredBalance } from '@0x/contracts-staking'; +import { expect } from '@0x/contracts-test-utils'; +import { BigNumber, logUtils } from '@0x/utils'; +import { TxData } from 'ethereum-types'; + +import { FunctionAssertion, FunctionResult } from '../../src/function_assertions'; +import { DeploymentManager } from '../deployment_manager'; + +function expectedUndelegatedStake( + initStake: OwnerStakeByStatus | GlobalStakeByStatus, + amount: BigNumber, +): StoredBalance { + return { + currentEpoch: initStake[StakeStatus.Undelegated].currentEpoch, + currentEpochBalance: initStake[StakeStatus.Undelegated].currentEpochBalance.minus(amount), + nextEpochBalance: initStake[StakeStatus.Undelegated].nextEpochBalance.minus(amount), + }; +} + +/** + * Returns a FunctionAssertion for `unstake` which assumes valid input is provided. The + * FunctionAssertion checks that the staker and zrxVault's balances of ZRX increase and decrease, + * respectively, by the input amount. + */ +export function validUnstakeAssertion( + deployment: DeploymentManager, + balanceStore: BlockchainBalanceStore, + globalStake: GlobalStakeByStatus, + ownerStake: OwnerStakeByStatus, +): FunctionAssertion { + const { stakingWrapper, zrxVault } = deployment.staking; + + return new FunctionAssertion(stakingWrapper.unstake, { + before: async (amount: BigNumber, txData: Partial) => { + // Simulates the transfer of ZRX from vault to staker + const expectedBalances = LocalBalanceStore.create(deployment.devUtils, balanceStore); + await expectedBalances.transferAssetAsync( + zrxVault.address, + txData.from as string, + amount, + await deployment.devUtils.encodeERC20AssetData(deployment.tokens.zrx.address).callAsync(), + ); + return expectedBalances; + }, + after: async ( + expectedBalances: LocalBalanceStore, + _result: FunctionResult, + amount: BigNumber, + txData: Partial, + ) => { + logUtils.log(`unstake(${amount})`); + + // Checks that the ZRX transfer updated balances as expected. + await balanceStore.updateErc20BalancesAsync(); + balanceStore.assertEquals(expectedBalances); + + // Checks that the owner's undelegated stake has decreased by the stake amount + const ownerUndelegatedStake = await stakingWrapper + .getOwnerStakeByStatus(txData.from as string, StakeStatus.Undelegated) + .callAsync(); + const expectedOwnerUndelegatedStake = expectedUndelegatedStake(ownerStake, amount); + expect(ownerUndelegatedStake, 'Owner undelegated stake').to.deep.equal(expectedOwnerUndelegatedStake); + // Updates local state accordingly + ownerStake[StakeStatus.Undelegated] = expectedOwnerUndelegatedStake; + + // Checks that the global undelegated stake has also decreased by the stake amount + const globalUndelegatedStake = await stakingWrapper + .getGlobalStakeByStatus(StakeStatus.Undelegated) + .callAsync(); + const expectedGlobalUndelegatedStake = expectedUndelegatedStake(globalStake, amount); + expect(globalUndelegatedStake, 'Global undelegated stake').to.deep.equal(expectedGlobalUndelegatedStake); + // Updates local state accordingly + globalStake[StakeStatus.Undelegated] = expectedGlobalUndelegatedStake; + }, + }); +} diff --git a/contracts/integrations/test/internal-integration-tests/deployment_test.ts b/contracts/integrations/test/internal-integration-tests/deployment_test.ts index bbee978626..22d9109d39 100644 --- a/contracts/integrations/test/internal-integration-tests/deployment_test.ts +++ b/contracts/integrations/test/internal-integration-tests/deployment_test.ts @@ -8,14 +8,11 @@ import { } from '@0x/contracts-asset-proxy'; import { artifacts as exchangeArtifacts, - AssetProxyDispatcher, - Authorizable, ExchangeAssetProxyRegisteredEventArgs, ExchangeContract, ExchangeEvents, ExchangeProtocolFeeCollectorAddressEventArgs, ExchangeProtocolFeeMultiplierEventArgs, - Ownable, } from '@0x/contracts-exchange'; import { artifacts as multisigArtifacts, ZeroExGovernorContract } from '@0x/contracts-multisig'; import { @@ -36,6 +33,8 @@ import { AssetProxyId } from '@0x/types'; import { BigNumber } from '@0x/utils'; import { TxData } from 'ethereum-types'; +import { AssetProxyDispatcher, Authorizable, Ownable } from '../wrapper_interfaces'; + // tslint:disable:no-unnecessary-type-assertion blockchainTests('Deployment and Configuration End to End Tests', env => { // Available Addresses diff --git a/contracts/integrations/test/internal-integration-tests/exchange_wrapper_test.ts b/contracts/integrations/test/internal-integration-tests/exchange_wrapper_test.ts index 9d9ba0a19f..ffedd80f11 100644 --- a/contracts/integrations/test/internal-integration-tests/exchange_wrapper_test.ts +++ b/contracts/integrations/test/internal-integration-tests/exchange_wrapper_test.ts @@ -1,5 +1,5 @@ import { DevUtilsContract } from '@0x/contracts-dev-utils'; -import { IERC20TokenEvents, IERC20TokenTransferEventArgs } from '@0x/contracts-erc20'; +import { ERC20TokenEvents, ERC20TokenTransferEventArgs } from '@0x/contracts-erc20'; import { BlockchainBalanceStore, IExchangeEvents, @@ -26,7 +26,7 @@ import * as _ from 'lodash'; import { Actor } from '../actors/base'; import { Maker } from '../actors/maker'; -import { DeploymentManager } from '../utils/deployment_manager'; +import { DeploymentManager } from '../deployment_manager'; const { addFillResults, safeGetPartialAmountFloor } = ReferenceFunctions; @@ -181,7 +181,7 @@ blockchainTests.resets('Exchange wrappers', env => { function verifyFillEvents(receipt: TransactionReceiptWithDecodedLogs, fillTestInfos: FillTestInfo[]): void { const expectedFillEvents: IExchangeFillEventArgs[] = []; - let expectedTransferEvents: IERC20TokenTransferEventArgs[] = []; + let expectedTransferEvents: ERC20TokenTransferEventArgs[] = []; for (const { signedOrder, expectedFillResults, shouldPayWethFees } of fillTestInfos) { const orderHash = orderHashUtils.getOrderHashHex(signedOrder); @@ -237,7 +237,7 @@ blockchainTests.resets('Exchange wrappers', env => { expectedTransferEvents = expectedTransferEvents.concat(transferEvents); } verifyEvents(receipt, expectedFillEvents, IExchangeEvents.Fill); - verifyEvents(receipt, expectedTransferEvents, IERC20TokenEvents.Transfer); + verifyEvents(receipt, expectedTransferEvents, ERC20TokenEvents.Transfer); } function calculateScaledFillResultsWithMaker(signedOrder: SignedOrder, fillAmount: BigNumber): FillResults { diff --git a/contracts/integrations/test/internal-integration-tests/fillorder_test.ts b/contracts/integrations/test/internal-integration-tests/fillorder_test.ts index 21f556ad16..0240c026b6 100644 --- a/contracts/integrations/test/internal-integration-tests/fillorder_test.ts +++ b/contracts/integrations/test/internal-integration-tests/fillorder_test.ts @@ -1,11 +1,12 @@ import { DevUtilsContract } from '@0x/contracts-dev-utils'; -import { IERC20TokenEvents, IERC20TokenTransferEventArgs } from '@0x/contracts-erc20'; +import { ERC20TokenEvents, ERC20TokenTransferEventArgs } from '@0x/contracts-erc20'; import { BlockchainBalanceStore, - IExchangeEvents, - IExchangeFillEventArgs, + ExchangeEvents, + ExchangeFillEventArgs, LocalBalanceStore, } from '@0x/contracts-exchange'; +import { ReferenceFunctions } from '@0x/contracts-exchange-libs'; import { constants as stakingConstants, IStakingEventsEpochEndedEventArgs, @@ -21,7 +22,7 @@ import { BigNumber } from '@0x/utils'; import { TransactionReceiptWithDecodedLogs } from 'ethereum-types'; import { actorAddressesByName, FeeRecipient, Maker, OperatorStakerMaker, StakerKeeper, Taker } from '../actors'; -import { DeploymentManager } from '../utils/deployment_manager'; +import { DeploymentManager } from '../deployment_manager'; const devUtils = new DevUtilsContract(constants.NULL_ADDRESS, provider); blockchainTests.resets('fillOrder integration tests', env => { @@ -35,6 +36,7 @@ blockchainTests.resets('fillOrder integration tests', env => { let delegator: StakerKeeper; let poolId: string; + let operatorShare: number; before(async () => { deployment = await DeploymentManager.deployAsync(env, { @@ -79,7 +81,8 @@ blockchainTests.resets('fillOrder integration tests', env => { await delegator.configureERC20TokenAsync(deployment.tokens.zrx); // Create a staking pool with the operator as a maker. - poolId = await operator.createStakingPoolAsync(stakingConstants.PPM * 0.95, true); + operatorShare = stakingConstants.PPM * 0.95; + poolId = await operator.createStakingPoolAsync(operatorShare, true); // A vanilla maker joins the pool as well. await maker.joinStakingPoolAsync(poolId); @@ -142,7 +145,7 @@ blockchainTests.resets('fillOrder integration tests', env => { function verifyFillEvents(order: SignedOrder, receipt: TransactionReceiptWithDecodedLogs): void { // Ensure that the fill event was correct. - verifyEvents( + verifyEvents( receipt, [ { @@ -162,11 +165,11 @@ blockchainTests.resets('fillOrder integration tests', env => { protocolFeePaid: DeploymentManager.protocolFee, }, ], - IExchangeEvents.Fill, + ExchangeEvents.Fill, ); // Ensure that the transfer events were correctly emitted. - verifyEvents( + verifyEvents( receipt, [ { @@ -180,7 +183,7 @@ blockchainTests.resets('fillOrder integration tests', env => { _value: order.makerAssetAmount, }, ], - IERC20TokenEvents.Transfer, + ERC20TokenEvents.Transfer, ); } @@ -282,9 +285,11 @@ blockchainTests.resets('fillOrder integration tests', env => { ); // The rewards are split between the operator and delegator based on the pool's operatorShare - const operatorReward = rewardsAvailable - .times(operator.operatorShares[poolId]) - .dividedToIntegerBy(constants.PPM_DENOMINATOR); + const operatorReward = ReferenceFunctions.getPartialAmountFloor( + new BigNumber(operatorShare), + new BigNumber(constants.PPM_DENOMINATOR), + rewardsAvailable, + ); const delegatorReward = rewardsAvailable.minus(operatorReward); // Finalize the pool. This should automatically pay the operator in WETH. @@ -363,9 +368,11 @@ blockchainTests.resets('fillOrder integration tests', env => { balanceStore.assertEquals(expectedBalances); // The rewards are split between the operator and delegator based on the pool's operatorShare - const operatorReward = rewardsAvailable - .times(operator.operatorShares[poolId]) - .dividedToIntegerBy(constants.PPM_DENOMINATOR); + const operatorReward = ReferenceFunctions.getPartialAmountFloor( + new BigNumber(operatorShare), + new BigNumber(constants.PPM_DENOMINATOR), + rewardsAvailable, + ); // Finalize the pool. This should automatically pay the operator in WETH. const [finalizePoolReceipt] = await delegator.finalizePoolsAsync([poolId]); diff --git a/contracts/integrations/test/simulation/pool_management_test.ts b/contracts/integrations/test/simulation/pool_management_test.ts new file mode 100644 index 0000000000..4b7606156c --- /dev/null +++ b/contracts/integrations/test/simulation/pool_management_test.ts @@ -0,0 +1,44 @@ +import { BlockchainBalanceStore } from '@0x/contracts-exchange'; +import { blockchainTests } from '@0x/contracts-test-utils'; +import * as _ from 'lodash'; + +import { AssertionResult } from '../../src/function_assertions'; +import { PoolOperator } from '../actors'; +import { DeploymentManager } from '../deployment_manager'; + +import { Simulation, SimulationEnvironment } from './simulation'; + +export class PoolManagementSimulation extends Simulation { + protected async *_assertionGenerator(): AsyncIterableIterator { + const { deployment } = this.environment; + const operator = new PoolOperator({ + name: 'Operator', + deployment, + simulationEnvironment: this.environment, + }); + + const actions = [ + operator.simulationActions.validCreateStakingPool, + operator.simulationActions.validDecreaseStakingPoolOperatorShare, + ]; + while (true) { + const action = _.sample(actions); + yield (await action!.next()).value; // tslint:disable-line:no-non-null-assertion + } + } +} + +blockchainTests.skip('Pool management fuzz test', env => { + it('fuzz', async () => { + const deployment = await DeploymentManager.deployAsync(env, { + numErc20TokensToDeploy: 0, + numErc721TokensToDeploy: 0, + numErc1155TokensToDeploy: 0, + }); + const balanceStore = new BlockchainBalanceStore({}, {}); + + const simulationEnv = new SimulationEnvironment(deployment, balanceStore); + const simulation = new PoolManagementSimulation(simulationEnv); + return simulation.fuzzAsync(); + }); +}); diff --git a/contracts/integrations/test/simulation/simulation.ts b/contracts/integrations/test/simulation/simulation.ts new file mode 100644 index 0000000000..12b38284ab --- /dev/null +++ b/contracts/integrations/test/simulation/simulation.ts @@ -0,0 +1,38 @@ +import { BlockchainBalanceStore } from '@0x/contracts-exchange'; +import { GlobalStakeByStatus, StakeStatus, StakingPoolById, StoredBalance } from '@0x/contracts-staking'; +import * as _ from 'lodash'; + +import { AssertionResult } from '../../src/function_assertions'; +import { DeploymentManager } from '../deployment_manager'; + +// tslint:disable:max-classes-per-file + +export class SimulationEnvironment { + public globalStake: GlobalStakeByStatus = { + [StakeStatus.Undelegated]: new StoredBalance(), + [StakeStatus.Delegated]: new StoredBalance(), + }; + public stakingPools: StakingPoolById = {}; + + public constructor(public readonly deployment: DeploymentManager, public balanceStore: BlockchainBalanceStore) {} +} + +export abstract class Simulation { + public readonly generator = this._assertionGenerator(); + + constructor(public environment: SimulationEnvironment) {} + + public async fuzzAsync(steps?: number): Promise { + if (steps !== undefined) { + for (let i = 0; i < steps; i++) { + await this.generator.next(); + } + } else { + while (true) { + await this.generator.next(); + } + } + } + + protected abstract _assertionGenerator(): AsyncIterableIterator; +} diff --git a/contracts/integrations/test/simulation/stake_management_test.ts b/contracts/integrations/test/simulation/stake_management_test.ts new file mode 100644 index 0000000000..a6e12d5ea2 --- /dev/null +++ b/contracts/integrations/test/simulation/stake_management_test.ts @@ -0,0 +1,53 @@ +import { BlockchainBalanceStore } from '@0x/contracts-exchange'; +import { blockchainTests } from '@0x/contracts-test-utils'; +import * as _ from 'lodash'; + +import { AssertionResult } from '../../src/function_assertions'; +import { Staker } from '../actors'; +import { DeploymentManager } from '../deployment_manager'; + +import { PoolManagementSimulation } from './pool_management_test'; +import { Simulation, SimulationEnvironment } from './simulation'; + +export class StakeManagementSimulation extends Simulation { + protected async *_assertionGenerator(): AsyncIterableIterator { + const { deployment, balanceStore } = this.environment; + const poolManagement = new PoolManagementSimulation(this.environment); + + const staker = new Staker({ name: 'Staker', deployment, simulationEnvironment: this.environment }); + await staker.configureERC20TokenAsync(deployment.tokens.zrx); + balanceStore.registerTokenOwner(staker.address, staker.name); + + const actions = [ + staker.simulationActions.validStake, + staker.simulationActions.validUnstake, + staker.simulationActions.validMoveStake, + poolManagement.generator, + ]; + while (true) { + const action = _.sample(actions); + yield (await action!.next()).value; // tslint:disable-line:no-non-null-assertion + } + } +} + +blockchainTests.skip('Stake management fuzz test', env => { + it('fuzz', async () => { + const deployment = await DeploymentManager.deployAsync(env, { + numErc20TokensToDeploy: 0, + numErc721TokensToDeploy: 0, + numErc1155TokensToDeploy: 0, + }); + const balanceStore = new BlockchainBalanceStore( + { + StakingProxy: deployment.staking.stakingProxy.address, + ZRXVault: deployment.staking.zrxVault.address, + }, + { erc20: { ZRX: deployment.tokens.zrx } }, + ); + + const simulationEnv = new SimulationEnvironment(deployment, balanceStore); + const simulation = new StakeManagementSimulation(simulationEnv); + return simulation.fuzzAsync(); + }); +}); diff --git a/contracts/exchange/src/wrapper_interfaces.ts b/contracts/integrations/test/wrapper_interfaces.ts similarity index 100% rename from contracts/exchange/src/wrapper_interfaces.ts rename to contracts/integrations/test/wrapper_interfaces.ts diff --git a/contracts/integrations/test/wrappers.ts b/contracts/integrations/test/wrappers.ts new file mode 100644 index 0000000000..74a642fc95 --- /dev/null +++ b/contracts/integrations/test/wrappers.ts @@ -0,0 +1,6 @@ +/* + * ----------------------------------------------------------------------------- + * Warning: This file is auto-generated by contracts-gen. Don't edit manually. + * ----------------------------------------------------------------------------- + */ +export * from '../test/generated-wrappers/test_framework'; diff --git a/contracts/integrations/tsconfig.json b/contracts/integrations/tsconfig.json index 7f0aa6948a..18b5c60dac 100644 --- a/contracts/integrations/tsconfig.json +++ b/contracts/integrations/tsconfig.json @@ -2,5 +2,5 @@ "extends": "../../tsconfig", "compilerOptions": { "outDir": "lib", "rootDir": ".", "resolveJsonModule": true }, "include": ["./src/**/*", "./test/**/*", "./generated-wrappers/**/*"], - "files": ["generated-artifacts/TestFramework.json"] + "files": ["generated-artifacts/TestFramework.json", "test/generated-artifacts/TestFramework.json"] } diff --git a/contracts/integrations/tslint.json b/contracts/integrations/tslint.json index 2a304eb78b..720dab4e9e 100644 --- a/contracts/integrations/tslint.json +++ b/contracts/integrations/tslint.json @@ -4,6 +4,6 @@ "custom-no-magic-numbers": false }, "linterOptions": { - "exclude": ["src/artifacts.ts"] + "exclude": ["src/artifacts.ts", "test/artifacts.ts"] } } diff --git a/contracts/multisig/.npmignore b/contracts/multisig/.npmignore new file mode 100644 index 0000000000..bdf2b8acbe --- /dev/null +++ b/contracts/multisig/.npmignore @@ -0,0 +1,10 @@ +# Blacklist all files +.* +* +# Whitelist lib +!lib/**/* +# Whitelist Solidity contracts +!contracts/src/**/* +# Blacklist tests in lib +/lib/test/* +# Package specific ignore diff --git a/contracts/multisig/CHANGELOG.json b/contracts/multisig/CHANGELOG.json index 281deebef7..43e3f9273a 100644 --- a/contracts/multisig/CHANGELOG.json +++ b/contracts/multisig/CHANGELOG.json @@ -1,4 +1,22 @@ [ + { + "version": "3.2.0-beta.2", + "changes": [ + { + "note": "Drastically reduced bundle size by adding .npmignore, only exporting specific artifacts/wrappers/utils", + "pr": 2330 + } + ] + }, + { + "version": "3.2.0-beta.1", + "changes": [ + { + "note": "Dependencies updated" + } + ], + "timestamp": 1573159180 + }, { "version": "3.2.0-beta.0", "changes": [ diff --git a/contracts/multisig/CHANGELOG.md b/contracts/multisig/CHANGELOG.md index bc562e51c2..dc882a7623 100644 --- a/contracts/multisig/CHANGELOG.md +++ b/contracts/multisig/CHANGELOG.md @@ -5,6 +5,10 @@ Edit the package's CHANGELOG.json file only. CHANGELOG +## v3.2.0-beta.1 - _November 7, 2019_ + + * Dependencies updated + ## v3.2.0-beta.0 - _October 3, 2019_ * Dependencies updated diff --git a/contracts/multisig/compiler.json b/contracts/multisig/compiler.json index 6b74c612c2..6d739870f0 100644 --- a/contracts/multisig/compiler.json +++ b/contracts/multisig/compiler.json @@ -1,5 +1,5 @@ { - "artifactsDir": "./generated-artifacts", + "artifactsDir": "./test/generated-artifacts", "contractsDir": "./contracts", "useDockerisedSolc": false, "isOfflineMode": false, diff --git a/contracts/multisig/package.json b/contracts/multisig/package.json index a97a278696..804cfd6f13 100644 --- a/contracts/multisig/package.json +++ b/contracts/multisig/package.json @@ -1,6 +1,6 @@ { "name": "@0x/contracts-multisig", - "version": "3.2.0-beta.0", + "version": "3.2.0-beta.1", "engines": { "node": ">=6.12" }, @@ -12,7 +12,7 @@ "scripts": { "build": "yarn pre_build && tsc -b", "build:ci": "yarn build", - "pre_build": "run-s compile contracts:gen generate_contract_wrappers", + "pre_build": "run-s compile contracts:gen generate_contract_wrappers contracts:copy", "test": "yarn run_mocha", "rebuild_and_test": "run-s build test", "test:coverage": "SOLIDITY_COVERAGE=true run-s build run_mocha coverage:report:text coverage:report:lcov", @@ -21,20 +21,22 @@ "run_mocha": "mocha --require source-map-support/register --require make-promises-safe 'lib/test/**/*.js' --timeout 100000 --bail --exit", "compile": "sol-compiler", "watch": "sol-compiler -w", - "clean": "shx rm -rf lib generated-artifacts generated-wrappers", - "generate_contract_wrappers": "abi-gen --debug --abis ${npm_package_config_abis} --output generated-wrappers --backend ethers", - "lint": "tslint --format stylish --project . --exclude ./generated-wrappers/**/* --exclude ./generated-artifacts/**/* --exclude **/lib/**/* && yarn lint-contracts", - "fix": "tslint --fix --format stylish --project . --exclude ./generated-wrappers/**/* --exclude ./generated-artifacts/**/* --exclude **/lib/**/* && yarn lint-contracts", + "clean": "shx rm -rf lib test/generated-artifacts test/generated-wrappers generated-artifacts generated-wrappers", + "generate_contract_wrappers": "abi-gen --debug --abis ${npm_package_config_abis} --output test/generated-wrappers --backend ethers", + "lint": "tslint --format stylish --project . --exclude ./generated-wrappers/**/* --exclude ./test/generated-wrappers/**/* --exclude ./generated-artifacts/**/* --exclude ./test/generated-artifacts/**/* --exclude **/lib/**/* && yarn lint-contracts", + "fix": "tslint --fix --format stylish --project . --exclude ./generated-wrappers/**/* --exclude ./test/generated-wrappers/**/* --exclude ./generated-artifacts/**/* --exclude ./test/generated-artifacts/**/* --exclude **/lib/**/* && yarn lint-contracts", "coverage:report:text": "istanbul report text", "coverage:report:html": "istanbul report html && open coverage/index.html", "profiler:report:html": "istanbul report html && open coverage/index.html", "coverage:report:lcov": "istanbul report lcov", "test:circleci": "yarn test", - "contracts:gen": "contracts-gen", + "contracts:gen": "contracts-gen generate", + "contracts:copy": "contracts-gen copy", "lint-contracts": "solhint -c ../.solhint.json contracts/**/**/**/**/*.sol" }, "config": { - "abis": "./generated-artifacts/@(ContractCallReceiver|MultiSigWallet|MultiSigWalletWithTimeLock|TestRejectEther|TestZeroExGovernor|ZeroExGovernor).json", + "publicInterfaceContracts": "MultiSigWalletWithTimeLock,ZeroExGovernor", + "abis": "./test/generated-artifacts/@(ContractCallReceiver|MultiSigWallet|MultiSigWalletWithTimeLock|TestRejectEther|TestZeroExGovernor|ZeroExGovernor).json", "abis:comment": "This list is auto-generated by contracts-gen. Don't edit manually." }, "repository": { @@ -47,12 +49,18 @@ }, "homepage": "https://github.com/0xProject/0x-monorepo/contracts/multisig/README.md", "devDependencies": { - "@0x/abi-gen": "^4.3.0-beta.0", - "@0x/contracts-gen": "^1.1.0-beta.0", - "@0x/contracts-test-utils": "^3.2.0-beta.0", - "@0x/dev-utils": "^2.4.0-beta.0", - "@0x/sol-compiler": "^3.2.0-beta.0", - "@0x/tslint-config": "^3.0.1", + "@0x/abi-gen": "^4.4.0-beta.1", + "@0x/contracts-gen": "^1.1.0-beta.1", + "@0x/contracts-asset-proxy": "^2.3.0-beta.1", + "@0x/contracts-erc20": "^2.3.0-beta.1", + "@0x/contracts-utils": "^3.3.0-beta.1", + "@0x/types": "^2.5.0-beta.1", + "@0x/contracts-test-utils": "^3.2.0-beta.1", + "@0x/dev-utils": "^2.4.0-beta.1", + "@0x/sol-compiler": "^3.2.0-beta.1", + "@0x/tslint-config": "^3.1.0-beta.1", + "@0x/utils": "^4.6.0-beta.1", + "@0x/web3-wrapper": "^6.1.0-beta.1", "@types/lodash": "4.14.104", "@types/mocha": "^5.2.7", "@types/node": "*", @@ -60,6 +68,7 @@ "chai-as-promised": "^7.1.0", "chai-bignumber": "^3.0.0", "dirty-chai": "^2.0.1", + "lodash": "^4.17.11", "make-promises-safe": "^1.1.0", "mocha": "^6.2.0", "npm-run-all": "^4.1.2", @@ -69,16 +78,9 @@ "typescript": "3.0.1" }, "dependencies": { - "@0x/base-contract": "^5.5.0-beta.0", - "@0x/contracts-asset-proxy": "^2.3.0-beta.0", - "@0x/contracts-erc20": "^2.3.0-beta.0", - "@0x/contracts-utils": "^3.3.0-beta.0", - "@0x/types": "^2.5.0-beta.0", - "@0x/typescript-typings": "^4.4.0-beta.0", - "@0x/utils": "^4.6.0-beta.0", - "@0x/web3-wrapper": "^6.1.0-beta.0", - "ethereum-types": "^2.2.0-beta.0", - "lodash": "^4.17.11" + "@0x/base-contract": "^5.5.0-beta.1", + "@0x/typescript-typings": "^4.4.0-beta.1", + "ethereum-types": "^2.2.0-beta.1" }, "publishConfig": { "access": "public" diff --git a/contracts/multisig/src/artifacts.ts b/contracts/multisig/src/artifacts.ts index 8a0baca5d1..b9f2145823 100644 --- a/contracts/multisig/src/artifacts.ts +++ b/contracts/multisig/src/artifacts.ts @@ -5,17 +5,9 @@ */ import { ContractArtifact } from 'ethereum-types'; -import * as ContractCallReceiver from '../generated-artifacts/ContractCallReceiver.json'; -import * as MultiSigWallet from '../generated-artifacts/MultiSigWallet.json'; import * as MultiSigWalletWithTimeLock from '../generated-artifacts/MultiSigWalletWithTimeLock.json'; -import * as TestRejectEther from '../generated-artifacts/TestRejectEther.json'; -import * as TestZeroExGovernor from '../generated-artifacts/TestZeroExGovernor.json'; import * as ZeroExGovernor from '../generated-artifacts/ZeroExGovernor.json'; export const artifacts = { - MultiSigWallet: MultiSigWallet as ContractArtifact, MultiSigWalletWithTimeLock: MultiSigWalletWithTimeLock as ContractArtifact, ZeroExGovernor: ZeroExGovernor as ContractArtifact, - ContractCallReceiver: ContractCallReceiver as ContractArtifact, - TestRejectEther: TestRejectEther as ContractArtifact, - TestZeroExGovernor: TestZeroExGovernor as ContractArtifact, }; diff --git a/contracts/multisig/src/index.ts b/contracts/multisig/src/index.ts index ba813e7caf..d55f08ea2d 100644 --- a/contracts/multisig/src/index.ts +++ b/contracts/multisig/src/index.ts @@ -1,3 +1,2 @@ export * from './artifacts'; export * from './wrappers'; -export * from '../test/utils'; diff --git a/contracts/multisig/src/wrappers.ts b/contracts/multisig/src/wrappers.ts index 2bd971f5d3..e4ae7b41c1 100644 --- a/contracts/multisig/src/wrappers.ts +++ b/contracts/multisig/src/wrappers.ts @@ -3,9 +3,5 @@ * Warning: This file is auto-generated by contracts-gen. Don't edit manually. * ----------------------------------------------------------------------------- */ -export * from '../generated-wrappers/contract_call_receiver'; -export * from '../generated-wrappers/multi_sig_wallet'; export * from '../generated-wrappers/multi_sig_wallet_with_time_lock'; -export * from '../generated-wrappers/test_reject_ether'; -export * from '../generated-wrappers/test_zero_ex_governor'; export * from '../generated-wrappers/zero_ex_governor'; diff --git a/contracts/multisig/test/artifacts.ts b/contracts/multisig/test/artifacts.ts new file mode 100644 index 0000000000..35da180f3a --- /dev/null +++ b/contracts/multisig/test/artifacts.ts @@ -0,0 +1,21 @@ +/* + * ----------------------------------------------------------------------------- + * Warning: This file is auto-generated by contracts-gen. Don't edit manually. + * ----------------------------------------------------------------------------- + */ +import { ContractArtifact } from 'ethereum-types'; + +import * as ContractCallReceiver from '../test/generated-artifacts/ContractCallReceiver.json'; +import * as MultiSigWallet from '../test/generated-artifacts/MultiSigWallet.json'; +import * as MultiSigWalletWithTimeLock from '../test/generated-artifacts/MultiSigWalletWithTimeLock.json'; +import * as TestRejectEther from '../test/generated-artifacts/TestRejectEther.json'; +import * as TestZeroExGovernor from '../test/generated-artifacts/TestZeroExGovernor.json'; +import * as ZeroExGovernor from '../test/generated-artifacts/ZeroExGovernor.json'; +export const artifacts = { + MultiSigWallet: MultiSigWallet as ContractArtifact, + MultiSigWalletWithTimeLock: MultiSigWalletWithTimeLock as ContractArtifact, + ZeroExGovernor: ZeroExGovernor as ContractArtifact, + ContractCallReceiver: ContractCallReceiver as ContractArtifact, + TestRejectEther: TestRejectEther as ContractArtifact, + TestZeroExGovernor: TestZeroExGovernor as ContractArtifact, +}; diff --git a/contracts/multisig/test/multi_sig_with_time_lock.ts b/contracts/multisig/test/multi_sig_with_time_lock.ts index 3eff2c87ea..26be78e5e3 100644 --- a/contracts/multisig/test/multi_sig_with_time_lock.ts +++ b/contracts/multisig/test/multi_sig_with_time_lock.ts @@ -15,17 +15,18 @@ import * as chai from 'chai'; import { LogWithDecodedArgs } from 'ethereum-types'; import * as _ from 'lodash'; +import { artifacts } from './artifacts'; import { - artifacts, MultiSigWalletWithTimeLockConfirmationEventArgs, MultiSigWalletWithTimeLockConfirmationTimeSetEventArgs, MultiSigWalletWithTimeLockContract, MultiSigWalletWithTimeLockExecutionEventArgs, MultiSigWalletWithTimeLockExecutionFailureEventArgs, MultiSigWalletWithTimeLockSubmissionEventArgs, - MultiSigWrapper, TestRejectEtherContract, -} from '../src'; +} from './wrappers'; + +import { MultiSigWrapper } from './utils/multi_sig_wrapper'; chaiSetup.configure(); const expect = chai.expect; diff --git a/contracts/multisig/test/utils/multi_sig_wrapper.ts b/contracts/multisig/test/utils/multi_sig_wrapper.ts index 077d577272..2912b09b98 100644 --- a/contracts/multisig/test/utils/multi_sig_wrapper.ts +++ b/contracts/multisig/test/utils/multi_sig_wrapper.ts @@ -3,8 +3,8 @@ import { BigNumber } from '@0x/utils'; import { Web3Wrapper } from '@0x/web3-wrapper'; import { TransactionReceiptWithDecodedLogs } from 'ethereum-types'; -import { MultiSigWalletContract, MultiSigWalletWithTimeLockContract } from '../../src'; -import { artifacts } from '../../src/artifacts'; +import { artifacts } from '../artifacts'; +import { MultiSigWalletContract, MultiSigWalletWithTimeLockContract } from '../wrappers'; export class MultiSigWrapper { private readonly _multiSig: MultiSigWalletContract | MultiSigWalletWithTimeLockContract; diff --git a/contracts/multisig/test/utils/zero_ex_governor_wrapper.ts b/contracts/multisig/test/utils/zero_ex_governor_wrapper.ts index 8adcdc8435..04d3246b1c 100644 --- a/contracts/multisig/test/utils/zero_ex_governor_wrapper.ts +++ b/contracts/multisig/test/utils/zero_ex_governor_wrapper.ts @@ -3,7 +3,7 @@ import { AbiEncoder, BigNumber } from '@0x/utils'; import { LogWithDecodedArgs, TransactionReceiptWithDecodedLogs } from 'ethereum-types'; import * as _ from 'lodash'; -import { TestZeroExGovernorContract, ZeroExGovernorContract, ZeroExGovernorSubmissionEventArgs } from '../../src'; +import { TestZeroExGovernorContract, ZeroExGovernorContract, ZeroExGovernorSubmissionEventArgs } from '../wrappers'; // tslint:disable: no-unnecessary-type-assertion export class ZeroExGovernorWrapper { diff --git a/contracts/multisig/test/wrappers.ts b/contracts/multisig/test/wrappers.ts new file mode 100644 index 0000000000..199d7c282f --- /dev/null +++ b/contracts/multisig/test/wrappers.ts @@ -0,0 +1,11 @@ +/* + * ----------------------------------------------------------------------------- + * Warning: This file is auto-generated by contracts-gen. Don't edit manually. + * ----------------------------------------------------------------------------- + */ +export * from '../test/generated-wrappers/contract_call_receiver'; +export * from '../test/generated-wrappers/multi_sig_wallet'; +export * from '../test/generated-wrappers/multi_sig_wallet_with_time_lock'; +export * from '../test/generated-wrappers/test_reject_ether'; +export * from '../test/generated-wrappers/test_zero_ex_governor'; +export * from '../test/generated-wrappers/zero_ex_governor'; diff --git a/contracts/multisig/test/zero_ex_governor.ts b/contracts/multisig/test/zero_ex_governor.ts index ff2345b036..e963e8a8a5 100644 --- a/contracts/multisig/test/zero_ex_governor.ts +++ b/contracts/multisig/test/zero_ex_governor.ts @@ -4,15 +4,16 @@ import { BigNumber, LibBytesRevertErrors } from '@0x/utils'; import { LogEntry, LogWithDecodedArgs } from 'ethereum-types'; import * as _ from 'lodash'; +import { ZeroExGovernorWrapper } from './utils/zero_ex_governor_wrapper'; + +import { artifacts } from './artifacts'; import { - artifacts, ContractCallReceiverContract, ContractCallReceiverEventArgs, TestZeroExGovernorContract, ZeroExGovernorExecutionEventArgs, ZeroExGovernorFunctionCallTimeLockRegistrationEventArgs, - ZeroExGovernorWrapper, -} from '../src'; +} from './wrappers'; // tslint:disable: no-unnecessary-type-assertion blockchainTests.resets('ZeroExGovernor', env => { diff --git a/contracts/multisig/tsconfig.json b/contracts/multisig/tsconfig.json index 643ad217e9..033cabd126 100644 --- a/contracts/multisig/tsconfig.json +++ b/contracts/multisig/tsconfig.json @@ -3,12 +3,14 @@ "compilerOptions": { "outDir": "lib", "rootDir": ".", "resolveJsonModule": true }, "include": ["./src/**/*", "./test/**/*", "./generated-wrappers/**/*"], "files": [ - "generated-artifacts/ContractCallReceiver.json", - "generated-artifacts/MultiSigWallet.json", "generated-artifacts/MultiSigWalletWithTimeLock.json", - "generated-artifacts/TestRejectEther.json", - "generated-artifacts/TestZeroExGovernor.json", - "generated-artifacts/ZeroExGovernor.json" + "generated-artifacts/ZeroExGovernor.json", + "test/generated-artifacts/ContractCallReceiver.json", + "test/generated-artifacts/MultiSigWallet.json", + "test/generated-artifacts/MultiSigWalletWithTimeLock.json", + "test/generated-artifacts/TestRejectEther.json", + "test/generated-artifacts/TestZeroExGovernor.json", + "test/generated-artifacts/ZeroExGovernor.json" ], "exclude": ["./deploy/solc/solc_bin"] } diff --git a/contracts/staking/.npmignore b/contracts/staking/.npmignore new file mode 100644 index 0000000000..bdf2b8acbe --- /dev/null +++ b/contracts/staking/.npmignore @@ -0,0 +1,10 @@ +# Blacklist all files +.* +* +# Whitelist lib +!lib/**/* +# Whitelist Solidity contracts +!contracts/src/**/* +# Blacklist tests in lib +/lib/test/* +# Package specific ignore diff --git a/contracts/staking/CHANGELOG.json b/contracts/staking/CHANGELOG.json index 998db9ca16..1c20be9014 100644 --- a/contracts/staking/CHANGELOG.json +++ b/contracts/staking/CHANGELOG.json @@ -1,4 +1,13 @@ [ + { + "version": "1.1.0-beta.2", + "changes": [ + { + "note": "Drastically reduced bundle size by adding .npmignore, only exporting specific artifacts/wrappers/utils", + "pr": 2330 + } + ] + }, { "version": "1.1.0-beta.1", "changes": [ @@ -34,7 +43,8 @@ "note": "Unit tests for MixinCumulativeRewards", "pr": 2316 } - ] + ], + "timestamp": 1573159180 }, { "version": "1.1.0-beta.0", diff --git a/contracts/staking/CHANGELOG.md b/contracts/staking/CHANGELOG.md index 09c8668a43..b93586f7c0 100644 --- a/contracts/staking/CHANGELOG.md +++ b/contracts/staking/CHANGELOG.md @@ -5,6 +5,17 @@ Edit the package's CHANGELOG.json file only. CHANGELOG +## v1.1.0-beta.1 - _November 7, 2019_ + + * Add more overflow safeguards to `LibFixedMath` (#2255) + * Refactored finalization state. (#2276) + * Removed protocol fee != 0 assertion. (#2278) + * Call `StakingProxy.assertValidStorageParams()` in `MixinParams.setParams()` (#2279) + * The fallback function in `StakingProxy` reverts if there is no staking contract attached (#2310) + * Fix overflow w/ `LibFixedMath._mul(-1, -2*255) (#2311) + * Unit tests for MixinScheduler (#2314) + * Unit tests for MixinCumulativeRewards (#2316) + ## v1.1.0-beta.0 - _October 3, 2019_ * Created package (#1821) @@ -24,3 +35,10 @@ CHANGELOG * Introduce multi-block finalization. (#2155) * Removed reference counting for cumulative rewards. (#2188) * Removed explicit dependency on epoch+1 when delegating. (#2188) + +## v1.1.0-beta.1 - _Invalid date_ + + * Removed handshake when adding maker to pool. (#2250) + * Removed upper limit on number of makers in a pool. (#2250) + * Removed operator permissions from makers. (#2250) + * Pool Id starts at 1 and increases by 1. (#2250) diff --git a/contracts/staking/compiler.json b/contracts/staking/compiler.json index b8225dc0c4..4487fe30d1 100644 --- a/contracts/staking/compiler.json +++ b/contracts/staking/compiler.json @@ -1,5 +1,5 @@ { - "artifactsDir": "./generated-artifacts", + "artifactsDir": "./test/generated-artifacts", "contractsDir": "./contracts", "useDockerisedSolc": false, "isOfflineMode": true, diff --git a/contracts/staking/contracts/src/immutable/MixinDeploymentConstants.sol b/contracts/staking/contracts/src/immutable/MixinDeploymentConstants.sol index 70735152c7..9ca470a1e6 100644 --- a/contracts/staking/contracts/src/immutable/MixinDeploymentConstants.sol +++ b/contracts/staking/contracts/src/immutable/MixinDeploymentConstants.sol @@ -28,21 +28,24 @@ contract MixinDeploymentConstants { // @TODO SET THESE VALUES FOR DEPLOYMENT // Mainnet WETH9 Address - // address constant private WETH_ADDRESS = address(0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2); + address constant private WETH_ADDRESS = address(0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2); // Kovan WETH9 Address // address constant private WETH_ADDRESS = address(0xd0A1E359811322d97991E03f863a0C30C2cF029C); // Ropsten & Rinkeby WETH9 Address - address constant private WETH_ADDRESS = address(0xc778417E063141139Fce010982780140Aa0cD5Ab); + // address constant private WETH_ADDRESS = address(0xc778417E063141139Fce010982780140Aa0cD5Ab); // @TODO SET THESE VALUES FOR DEPLOYMENT + // Mainnet ZrxVault address + address constant private ZRX_VAULT_ADDRESS = address(0xcE2a4B118813cBfa27Ee11cf8E67B101867fa85E); + // Kovan ZrxVault address // address constant private ZRX_VAULT_ADDRESS = address(0xf36eabdFE986B35b62c8FD5a98A7f2aEBB79B291); // Ropsten ZrxVault address - address constant private ZRX_VAULT_ADDRESS = address(0xffD161026865Ad8B4aB28a76840474935eEc4DfA); + // address constant private ZRX_VAULT_ADDRESS = address(0xffD161026865Ad8B4aB28a76840474935eEc4DfA); // Rinkeby ZrxVault address // address constant private ZRX_VAULT_ADDRESS = address(0xA5Bf6aC73bC40790FC6Ffc9DBbbCE76c9176e224); diff --git a/contracts/staking/contracts/src/interfaces/IStakingEvents.sol b/contracts/staking/contracts/src/interfaces/IStakingEvents.sol index c8f07ed663..e183698013 100644 --- a/contracts/staking/contracts/src/interfaces/IStakingEvents.sol +++ b/contracts/staking/contracts/src/interfaces/IStakingEvents.sol @@ -76,7 +76,7 @@ interface IStakingEvents { ); /// @dev Emitted by MixinFinalizer when rewards are paid out to a pool. - /// @param epoch The epoch when the rewards were earned. + /// @param epoch The epoch when the rewards were paid out. /// @param poolId The pool's ID. /// @param operatorReward Amount of reward paid to pool operator. /// @param membersReward Amount of reward paid to pool members. diff --git a/contracts/staking/contracts/src/staking_pools/MixinStakingPool.sol b/contracts/staking/contracts/src/staking_pools/MixinStakingPool.sol index 66294d7244..6365ea6bfe 100644 --- a/contracts/staking/contracts/src/staking_pools/MixinStakingPool.sol +++ b/contracts/staking/contracts/src/staking_pools/MixinStakingPool.sol @@ -164,8 +164,8 @@ contract MixinStakingPool is poolId, newOperatorShare )); - } else if (newOperatorShare >= currentOperatorShare) { - // new share must be less than the current share + } else if (newOperatorShare > currentOperatorShare) { + // new share must be less than or equal to the current share LibRichErrors.rrevert(LibStakingRichErrors.OperatorShareError( LibStakingRichErrors.OperatorShareErrorCodes.CanOnlyDecreaseOperatorShare, poolId, diff --git a/contracts/staking/package.json b/contracts/staking/package.json index b2596a2a1c..73d0cccd3f 100644 --- a/contracts/staking/package.json +++ b/contracts/staking/package.json @@ -1,6 +1,6 @@ { "name": "@0x/contracts-staking", - "version": "1.1.0-beta.0", + "version": "1.1.0-beta.1", "engines": { "node": ">=6.12" }, @@ -13,7 +13,7 @@ "build2": "tsc -b", "build": "yarn pre_build && tsc -b", "build:ci": "yarn build", - "pre_build": "run-s compile contracts:gen generate_contract_wrappers", + "pre_build": "run-s compile contracts:gen generate_contract_wrappers contracts:copy", "test": "yarn run_mocha", "rebuild_and_test": "run-s build test", "test:coverage": "SOLIDITY_COVERAGE=true run-s build run_mocha coverage:report:text coverage:report:lcov", @@ -22,22 +22,24 @@ "run_mocha": "mocha --require source-map-support/register --require make-promises-safe 'lib/test/**/*.js' --timeout 100000 --bail --exit", "compile": "sol-compiler", "watch": "sol-compiler -w", - "clean": "shx rm -rf lib generated-artifacts generated-wrappers", - "generate_contract_wrappers": "abi-gen --debug --abis ${npm_package_config_abis} --output generated-wrappers --backend ethers", - "lint": "tslint --format stylish --project . --exclude ./generated-wrappers/**/* --exclude ./generated-artifacts/**/* --exclude **/lib/**/* && yarn lint-contracts", - "fix": "tslint --fix --format stylish --project . --exclude ./generated-wrappers/**/* --exclude ./generated-artifacts/**/* --exclude **/lib/**/* && yarn lint-contracts", + "clean": "shx rm -rf lib test/generated-artifacts test/generated-wrappers generated-artifacts generated-wrappers", + "generate_contract_wrappers": "abi-gen --debug --abis ${npm_package_config_abis} --output test/generated-wrappers --backend ethers", + "lint": "tslint --format stylish --project . --exclude ./generated-wrappers/**/* --exclude ./test/generated-wrappers/**/* --exclude ./generated-artifacts/**/* --exclude ./test/generated-artifacts/**/* --exclude **/lib/**/* && yarn lint-contracts", + "fix": "tslint --fix --format stylish --project . --exclude ./generated-wrappers/**/* --exclude ./test/generated-wrappers/**/* --exclude ./generated-artifacts/**/* --exclude ./test/generated-artifacts/**/* --exclude **/lib/**/* && yarn lint-contracts", "coverage:report:text": "istanbul report text", "coverage:report:html": "istanbul report html && open coverage/index.html", "profiler:report:html": "istanbul report html && open coverage/index.html", "coverage:report:lcov": "istanbul report lcov", "test:circleci": "yarn test", - "contracts:gen": "contracts-gen", + "contracts:gen": "contracts-gen generate", + "contracts:copy": "contracts-gen copy", "lint-contracts": "solhint -c ../.solhint.json contracts/**/**/**/**/*.sol", "compile:truffle": "truffle compile" }, "config": { + "publicInterfaceContracts": "IStaking,IStakingEvents,IStakingProxy,IZrxVault,LibStakingRichErrors,Staking,StakingProxy,ZrxVault,TestStaking", "abis:comment": "This list is auto-generated by contracts-gen. Don't edit manually.", - "abis": "./generated-artifacts/@(IStaking|IStakingEvents|IStakingProxy|IStorage|IStorageInit|IStructs|IZrxVault|LibCobbDouglas|LibFixedMath|LibFixedMathRichErrors|LibSafeDowncast|LibStakingRichErrors|MixinAbstract|MixinConstants|MixinCumulativeRewards|MixinDeploymentConstants|MixinExchangeFees|MixinExchangeManager|MixinFinalizer|MixinParams|MixinScheduler|MixinStake|MixinStakeBalances|MixinStakeStorage|MixinStakingPool|MixinStakingPoolRewards|MixinStorage|Staking|StakingProxy|TestAssertStorageParams|TestCobbDouglas|TestCumulativeRewardTracking|TestDelegatorRewards|TestExchangeManager|TestFinalizer|TestInitTarget|TestLibFixedMath|TestLibSafeDowncast|TestMixinCumulativeRewards|TestMixinParams|TestMixinScheduler|TestMixinStake|TestMixinStakeBalances|TestMixinStakeStorage|TestMixinStakingPool|TestMixinStakingPoolRewards|TestProtocolFees|TestProxyDestination|TestStaking|TestStakingNoWETH|TestStakingProxy|TestStakingProxyUnit|TestStorageLayoutAndConstants|ZrxVault).json" + "abis": "./test/generated-artifacts/@(IStaking|IStakingEvents|IStakingProxy|IStorage|IStorageInit|IStructs|IZrxVault|LibCobbDouglas|LibFixedMath|LibFixedMathRichErrors|LibSafeDowncast|LibStakingRichErrors|MixinAbstract|MixinConstants|MixinCumulativeRewards|MixinDeploymentConstants|MixinExchangeFees|MixinExchangeManager|MixinFinalizer|MixinParams|MixinScheduler|MixinStake|MixinStakeBalances|MixinStakeStorage|MixinStakingPool|MixinStakingPoolRewards|MixinStorage|Staking|StakingProxy|TestAssertStorageParams|TestCobbDouglas|TestCumulativeRewardTracking|TestDelegatorRewards|TestExchangeManager|TestFinalizer|TestInitTarget|TestLibFixedMath|TestLibSafeDowncast|TestMixinCumulativeRewards|TestMixinParams|TestMixinScheduler|TestMixinStake|TestMixinStakeBalances|TestMixinStakeStorage|TestMixinStakingPool|TestMixinStakingPoolRewards|TestProtocolFees|TestProxyDestination|TestStaking|TestStakingNoWETH|TestStakingProxy|TestStakingProxyUnit|TestStorageLayoutAndConstants|ZrxVault).json" }, "repository": { "type": "git", @@ -49,14 +51,19 @@ }, "homepage": "https://github.com/0xProject/0x-monorepo/contracts/tokens/README.md", "devDependencies": { - "@0x/abi-gen": "^4.3.0-beta.0", - "@0x/contracts-dev-utils": "^0.1.0-beta.0", - "@0x/contracts-exchange-libs": "^3.1.0-beta.0", - "@0x/contracts-gen": "^1.1.0-beta.0", - "@0x/contracts-test-utils": "^3.2.0-beta.0", - "@0x/dev-utils": "^2.4.0-beta.0", - "@0x/sol-compiler": "^3.2.0-beta.0", - "@0x/tslint-config": "^3.0.1", + "@0x/abi-gen": "^4.4.0-beta.1", + "@0x/contracts-dev-utils": "^0.1.0-beta.1", + "@0x/contracts-exchange-libs": "^3.1.0-beta.1", + "@0x/contracts-gen": "^1.1.0-beta.1", + "@0x/contracts-asset-proxy": "^2.3.0-beta.1", + "@0x/contracts-erc20": "^2.3.0-beta.1", + "@0x/contracts-utils": "^3.3.0-beta.1", + "@0x/order-utils": "^8.5.0-beta.1", + "@0x/web3-wrapper": "^6.1.0-beta.1", + "@0x/types": "^2.5.0-beta.1", + "@0x/dev-utils": "^2.4.0-beta.1", + "@0x/sol-compiler": "^3.2.0-beta.1", + "@0x/tslint-config": "^3.1.0-beta.1", "@types/lodash": "4.14.104", "@types/node": "*", "chai": "^4.0.1", @@ -67,6 +74,7 @@ "js-combinatorics": "^0.5.3", "make-promises-safe": "^1.1.0", "mocha": "^4.1.0", + "lodash": "^4.17.11", "npm-run-all": "^4.1.2", "shx": "^0.2.2", "solhint": "^1.4.1", @@ -75,18 +83,12 @@ "typescript": "3.0.1" }, "dependencies": { - "@0x/base-contract": "^5.5.0-beta.0", - "@0x/contracts-asset-proxy": "^2.3.0-beta.0", - "@0x/contracts-erc20": "^2.3.0-beta.0", - "@0x/contracts-utils": "^3.3.0-beta.0", - "@0x/order-utils": "^8.5.0-beta.0", - "@0x/types": "^2.5.0-beta.0", - "@0x/typescript-typings": "^4.4.0-beta.0", - "@0x/utils": "^4.6.0-beta.0", - "@0x/web3-wrapper": "^6.1.0-beta.0", - "ethereum-types": "^2.2.0-beta.0", - "ethereumjs-util": "^5.1.1", - "lodash": "^4.17.11" + "@0x/base-contract": "^5.5.0-beta.1", + "@0x/contracts-test-utils": "^3.2.0-beta.1", + "@0x/typescript-typings": "^4.4.0-beta.1", + "@0x/utils": "^4.6.0-beta.1", + "ethereum-types": "^2.2.0-beta.1", + "ethereumjs-util": "^5.1.1" }, "publishConfig": { "access": "public" diff --git a/contracts/staking/src/artifacts.ts b/contracts/staking/src/artifacts.ts index 2729748a69..857f91a64b 100644 --- a/contracts/staking/src/artifacts.ts +++ b/contracts/staking/src/artifacts.ts @@ -8,110 +8,20 @@ import { ContractArtifact } from 'ethereum-types'; import * as IStaking from '../generated-artifacts/IStaking.json'; import * as IStakingEvents from '../generated-artifacts/IStakingEvents.json'; import * as IStakingProxy from '../generated-artifacts/IStakingProxy.json'; -import * as IStorage from '../generated-artifacts/IStorage.json'; -import * as IStorageInit from '../generated-artifacts/IStorageInit.json'; -import * as IStructs from '../generated-artifacts/IStructs.json'; import * as IZrxVault from '../generated-artifacts/IZrxVault.json'; -import * as LibCobbDouglas from '../generated-artifacts/LibCobbDouglas.json'; -import * as LibFixedMath from '../generated-artifacts/LibFixedMath.json'; -import * as LibFixedMathRichErrors from '../generated-artifacts/LibFixedMathRichErrors.json'; -import * as LibSafeDowncast from '../generated-artifacts/LibSafeDowncast.json'; import * as LibStakingRichErrors from '../generated-artifacts/LibStakingRichErrors.json'; -import * as MixinAbstract from '../generated-artifacts/MixinAbstract.json'; -import * as MixinConstants from '../generated-artifacts/MixinConstants.json'; -import * as MixinCumulativeRewards from '../generated-artifacts/MixinCumulativeRewards.json'; -import * as MixinDeploymentConstants from '../generated-artifacts/MixinDeploymentConstants.json'; -import * as MixinExchangeFees from '../generated-artifacts/MixinExchangeFees.json'; -import * as MixinExchangeManager from '../generated-artifacts/MixinExchangeManager.json'; -import * as MixinFinalizer from '../generated-artifacts/MixinFinalizer.json'; -import * as MixinParams from '../generated-artifacts/MixinParams.json'; -import * as MixinScheduler from '../generated-artifacts/MixinScheduler.json'; -import * as MixinStake from '../generated-artifacts/MixinStake.json'; -import * as MixinStakeBalances from '../generated-artifacts/MixinStakeBalances.json'; -import * as MixinStakeStorage from '../generated-artifacts/MixinStakeStorage.json'; -import * as MixinStakingPool from '../generated-artifacts/MixinStakingPool.json'; -import * as MixinStakingPoolRewards from '../generated-artifacts/MixinStakingPoolRewards.json'; -import * as MixinStorage from '../generated-artifacts/MixinStorage.json'; import * as Staking from '../generated-artifacts/Staking.json'; import * as StakingProxy from '../generated-artifacts/StakingProxy.json'; -import * as TestAssertStorageParams from '../generated-artifacts/TestAssertStorageParams.json'; -import * as TestCobbDouglas from '../generated-artifacts/TestCobbDouglas.json'; -import * as TestCumulativeRewardTracking from '../generated-artifacts/TestCumulativeRewardTracking.json'; -import * as TestDelegatorRewards from '../generated-artifacts/TestDelegatorRewards.json'; -import * as TestExchangeManager from '../generated-artifacts/TestExchangeManager.json'; -import * as TestFinalizer from '../generated-artifacts/TestFinalizer.json'; -import * as TestInitTarget from '../generated-artifacts/TestInitTarget.json'; -import * as TestLibFixedMath from '../generated-artifacts/TestLibFixedMath.json'; -import * as TestLibSafeDowncast from '../generated-artifacts/TestLibSafeDowncast.json'; -import * as TestMixinCumulativeRewards from '../generated-artifacts/TestMixinCumulativeRewards.json'; -import * as TestMixinParams from '../generated-artifacts/TestMixinParams.json'; -import * as TestMixinScheduler from '../generated-artifacts/TestMixinScheduler.json'; -import * as TestMixinStake from '../generated-artifacts/TestMixinStake.json'; -import * as TestMixinStakeBalances from '../generated-artifacts/TestMixinStakeBalances.json'; -import * as TestMixinStakeStorage from '../generated-artifacts/TestMixinStakeStorage.json'; -import * as TestMixinStakingPool from '../generated-artifacts/TestMixinStakingPool.json'; -import * as TestMixinStakingPoolRewards from '../generated-artifacts/TestMixinStakingPoolRewards.json'; -import * as TestProtocolFees from '../generated-artifacts/TestProtocolFees.json'; -import * as TestProxyDestination from '../generated-artifacts/TestProxyDestination.json'; import * as TestStaking from '../generated-artifacts/TestStaking.json'; -import * as TestStakingNoWETH from '../generated-artifacts/TestStakingNoWETH.json'; -import * as TestStakingProxy from '../generated-artifacts/TestStakingProxy.json'; -import * as TestStakingProxyUnit from '../generated-artifacts/TestStakingProxyUnit.json'; -import * as TestStorageLayoutAndConstants from '../generated-artifacts/TestStorageLayoutAndConstants.json'; import * as ZrxVault from '../generated-artifacts/ZrxVault.json'; export const artifacts = { - Staking: Staking as ContractArtifact, - StakingProxy: StakingProxy as ContractArtifact, - ZrxVault: ZrxVault as ContractArtifact, - MixinExchangeFees: MixinExchangeFees as ContractArtifact, - MixinExchangeManager: MixinExchangeManager as ContractArtifact, - MixinConstants: MixinConstants as ContractArtifact, - MixinDeploymentConstants: MixinDeploymentConstants as ContractArtifact, - MixinStorage: MixinStorage as ContractArtifact, IStaking: IStaking as ContractArtifact, IStakingEvents: IStakingEvents as ContractArtifact, IStakingProxy: IStakingProxy as ContractArtifact, - IStorage: IStorage as ContractArtifact, - IStorageInit: IStorageInit as ContractArtifact, - IStructs: IStructs as ContractArtifact, IZrxVault: IZrxVault as ContractArtifact, - LibCobbDouglas: LibCobbDouglas as ContractArtifact, - LibFixedMath: LibFixedMath as ContractArtifact, - LibFixedMathRichErrors: LibFixedMathRichErrors as ContractArtifact, - LibSafeDowncast: LibSafeDowncast as ContractArtifact, LibStakingRichErrors: LibStakingRichErrors as ContractArtifact, - MixinStake: MixinStake as ContractArtifact, - MixinStakeBalances: MixinStakeBalances as ContractArtifact, - MixinStakeStorage: MixinStakeStorage as ContractArtifact, - MixinCumulativeRewards: MixinCumulativeRewards as ContractArtifact, - MixinStakingPool: MixinStakingPool as ContractArtifact, - MixinStakingPoolRewards: MixinStakingPoolRewards as ContractArtifact, - MixinAbstract: MixinAbstract as ContractArtifact, - MixinFinalizer: MixinFinalizer as ContractArtifact, - MixinParams: MixinParams as ContractArtifact, - MixinScheduler: MixinScheduler as ContractArtifact, - TestAssertStorageParams: TestAssertStorageParams as ContractArtifact, - TestCobbDouglas: TestCobbDouglas as ContractArtifact, - TestCumulativeRewardTracking: TestCumulativeRewardTracking as ContractArtifact, - TestDelegatorRewards: TestDelegatorRewards as ContractArtifact, - TestExchangeManager: TestExchangeManager as ContractArtifact, - TestFinalizer: TestFinalizer as ContractArtifact, - TestInitTarget: TestInitTarget as ContractArtifact, - TestLibFixedMath: TestLibFixedMath as ContractArtifact, - TestLibSafeDowncast: TestLibSafeDowncast as ContractArtifact, - TestMixinCumulativeRewards: TestMixinCumulativeRewards as ContractArtifact, - TestMixinParams: TestMixinParams as ContractArtifact, - TestMixinScheduler: TestMixinScheduler as ContractArtifact, - TestMixinStake: TestMixinStake as ContractArtifact, - TestMixinStakeBalances: TestMixinStakeBalances as ContractArtifact, - TestMixinStakeStorage: TestMixinStakeStorage as ContractArtifact, - TestMixinStakingPool: TestMixinStakingPool as ContractArtifact, - TestMixinStakingPoolRewards: TestMixinStakingPoolRewards as ContractArtifact, - TestProtocolFees: TestProtocolFees as ContractArtifact, - TestProxyDestination: TestProxyDestination as ContractArtifact, + Staking: Staking as ContractArtifact, + StakingProxy: StakingProxy as ContractArtifact, + ZrxVault: ZrxVault as ContractArtifact, TestStaking: TestStaking as ContractArtifact, - TestStakingNoWETH: TestStakingNoWETH as ContractArtifact, - TestStakingProxy: TestStakingProxy as ContractArtifact, - TestStakingProxyUnit: TestStakingProxyUnit as ContractArtifact, - TestStorageLayoutAndConstants: TestStorageLayoutAndConstants as ContractArtifact, }; diff --git a/contracts/staking/test/utils/constants.ts b/contracts/staking/src/constants.ts similarity index 100% rename from contracts/staking/test/utils/constants.ts rename to contracts/staking/src/constants.ts diff --git a/contracts/staking/src/index.ts b/contracts/staking/src/index.ts index 2f65d0dcec..c1bac21842 100644 --- a/contracts/staking/src/index.ts +++ b/contracts/staking/src/index.ts @@ -1,4 +1,11 @@ export * from './wrappers'; export * from './artifacts'; -export { constants } from '../test/utils/constants'; -export * from '../test/utils/types'; +export { constants } from './constants'; +export { + GlobalStakeByStatus, + OwnerStakeByStatus, + StakeInfo, + StakingPoolById, + StakeStatus, + StoredBalance, +} from './types'; diff --git a/contracts/staking/test/utils/types.ts b/contracts/staking/src/types.ts similarity index 68% rename from contracts/staking/test/utils/types.ts rename to contracts/staking/src/types.ts index ae501a5a16..3b1fbed995 100644 --- a/contracts/staking/test/utils/types.ts +++ b/contracts/staking/src/types.ts @@ -1,8 +1,10 @@ -import { Numberish } from '@0x/contracts-test-utils'; +import { constants, Numberish } from '@0x/contracts-test-utils'; import { BigNumber } from '@0x/utils'; import { DecodedLogArgs, LogWithDecodedArgs } from 'ethereum-types'; -import { constants } from './constants'; +import { constants as stakingConstants } from './constants'; + +// tslint:disable:max-classes-per-file export interface StakingParams { epochDurationInSeconds: Numberish; @@ -57,10 +59,12 @@ export interface EndOfEpochInfo { totalWeightedStake: BigNumber; } -export interface StoredBalance { - currentEpoch: BigNumber; - currentEpochBalance: BigNumber; - nextEpochBalance: BigNumber; +export class StoredBalance { + constructor( + public currentEpoch: BigNumber = stakingConstants.INITIAL_EPOCH, + public currentEpochBalance: BigNumber = constants.ZERO_AMOUNT, + public nextEpochBalance: BigNumber = constants.ZERO_AMOUNT, + ) {} } export interface StakeBalanceByPool { @@ -73,13 +77,7 @@ export enum StakeStatus { } export class StakeInfo { - public status: StakeStatus; - public poolId: string; - - constructor(status: StakeStatus, poolId?: string) { - this.status = status; - this.poolId = poolId !== undefined ? poolId : constants.NIL_POOL_ID; - } + constructor(public status: StakeStatus, public poolId: string = stakingConstants.NIL_POOL_ID) {} } export interface StakeBalances { @@ -128,3 +126,33 @@ export interface DelegatorsByPoolId { } export type DecodedLogs = Array>; + +// mapping (uint8 => IStructs.StoredBalance) internal _globalStakeByStatus; +export interface GlobalStakeByStatus { + [StakeStatus.Undelegated]: StoredBalance; + [StakeStatus.Delegated]: StoredBalance; +} + +/* + * A combination of: + * mapping (uint8 => mapping (address => IStructs.StoredBalance)) internal _ownerStakeByStatus; + * and + * mapping (address => mapping (bytes32 => IStructs.StoredBalance)) internal _delegatedStakeToPoolByOwner; + */ +export interface OwnerStakeByStatus { + [StakeStatus.Undelegated]: StoredBalance; + [StakeStatus.Delegated]: { + total: StoredBalance; + [poolId: string]: StoredBalance; + }; +} + +export interface StakingPool { + operator: string; + operatorShare: number; + delegatedStake: StoredBalance; +} + +export interface StakingPoolById { + [poolId: string]: StakingPool; +} diff --git a/contracts/staking/src/wrappers.ts b/contracts/staking/src/wrappers.ts index 04657b7802..f331c5466c 100644 --- a/contracts/staking/src/wrappers.ts +++ b/contracts/staking/src/wrappers.ts @@ -6,54 +6,9 @@ export * from '../generated-wrappers/i_staking'; export * from '../generated-wrappers/i_staking_events'; export * from '../generated-wrappers/i_staking_proxy'; -export * from '../generated-wrappers/i_storage'; -export * from '../generated-wrappers/i_storage_init'; -export * from '../generated-wrappers/i_structs'; export * from '../generated-wrappers/i_zrx_vault'; -export * from '../generated-wrappers/lib_cobb_douglas'; -export * from '../generated-wrappers/lib_fixed_math'; -export * from '../generated-wrappers/lib_fixed_math_rich_errors'; -export * from '../generated-wrappers/lib_safe_downcast'; export * from '../generated-wrappers/lib_staking_rich_errors'; -export * from '../generated-wrappers/mixin_abstract'; -export * from '../generated-wrappers/mixin_constants'; -export * from '../generated-wrappers/mixin_cumulative_rewards'; -export * from '../generated-wrappers/mixin_deployment_constants'; -export * from '../generated-wrappers/mixin_exchange_fees'; -export * from '../generated-wrappers/mixin_exchange_manager'; -export * from '../generated-wrappers/mixin_finalizer'; -export * from '../generated-wrappers/mixin_params'; -export * from '../generated-wrappers/mixin_scheduler'; -export * from '../generated-wrappers/mixin_stake'; -export * from '../generated-wrappers/mixin_stake_balances'; -export * from '../generated-wrappers/mixin_stake_storage'; -export * from '../generated-wrappers/mixin_staking_pool'; -export * from '../generated-wrappers/mixin_staking_pool_rewards'; -export * from '../generated-wrappers/mixin_storage'; export * from '../generated-wrappers/staking'; export * from '../generated-wrappers/staking_proxy'; -export * from '../generated-wrappers/test_assert_storage_params'; -export * from '../generated-wrappers/test_cobb_douglas'; -export * from '../generated-wrappers/test_cumulative_reward_tracking'; -export * from '../generated-wrappers/test_delegator_rewards'; -export * from '../generated-wrappers/test_exchange_manager'; -export * from '../generated-wrappers/test_finalizer'; -export * from '../generated-wrappers/test_init_target'; -export * from '../generated-wrappers/test_lib_fixed_math'; -export * from '../generated-wrappers/test_lib_safe_downcast'; -export * from '../generated-wrappers/test_mixin_cumulative_rewards'; -export * from '../generated-wrappers/test_mixin_params'; -export * from '../generated-wrappers/test_mixin_scheduler'; -export * from '../generated-wrappers/test_mixin_stake'; -export * from '../generated-wrappers/test_mixin_stake_balances'; -export * from '../generated-wrappers/test_mixin_stake_storage'; -export * from '../generated-wrappers/test_mixin_staking_pool'; -export * from '../generated-wrappers/test_mixin_staking_pool_rewards'; -export * from '../generated-wrappers/test_protocol_fees'; -export * from '../generated-wrappers/test_proxy_destination'; export * from '../generated-wrappers/test_staking'; -export * from '../generated-wrappers/test_staking_no_w_e_t_h'; -export * from '../generated-wrappers/test_staking_proxy'; -export * from '../generated-wrappers/test_staking_proxy_unit'; -export * from '../generated-wrappers/test_storage_layout_and_constants'; export * from '../generated-wrappers/zrx_vault'; diff --git a/contracts/staking/test/actors/finalizer_actor.ts b/contracts/staking/test/actors/finalizer_actor.ts index 97c3fd7773..44d20ccf10 100644 --- a/contracts/staking/test/actors/finalizer_actor.ts +++ b/contracts/staking/test/actors/finalizer_actor.ts @@ -2,7 +2,6 @@ import { constants, expect } from '@0x/contracts-test-utils'; import { BigNumber } from '@0x/utils'; import * as _ from 'lodash'; -import { StakingApiWrapper } from '../utils/api_wrapper'; import { BalanceByOwner, DelegatorBalancesByPoolId, @@ -12,7 +11,8 @@ import { OperatorShareByPoolId, RewardBalanceByPoolId, RewardByPoolId, -} from '../utils/types'; +} from '../../src/types'; +import { StakingApiWrapper } from '../utils/api_wrapper'; import { BaseActor } from './base_actor'; diff --git a/contracts/staking/test/actors/staker_actor.ts b/contracts/staking/test/actors/staker_actor.ts index 7f5dee39f8..6603d85774 100644 --- a/contracts/staking/test/actors/staker_actor.ts +++ b/contracts/staking/test/actors/staker_actor.ts @@ -2,8 +2,8 @@ import { expect } from '@0x/contracts-test-utils'; import { BigNumber, RevertError } from '@0x/utils'; import * as _ from 'lodash'; +import { StakeBalances, StakeInfo, StakeStatus, StoredBalance } from '../../src/types'; import { StakingApiWrapper } from '../utils/api_wrapper'; -import { StakeBalances, StakeInfo, StakeStatus, StoredBalance } from '../utils/types'; import { BaseActor } from './base_actor'; diff --git a/contracts/staking/test/artifacts.ts b/contracts/staking/test/artifacts.ts new file mode 100644 index 0000000000..9064620477 --- /dev/null +++ b/contracts/staking/test/artifacts.ts @@ -0,0 +1,117 @@ +/* + * ----------------------------------------------------------------------------- + * Warning: This file is auto-generated by contracts-gen. Don't edit manually. + * ----------------------------------------------------------------------------- + */ +import { ContractArtifact } from 'ethereum-types'; + +import * as IStaking from '../test/generated-artifacts/IStaking.json'; +import * as IStakingEvents from '../test/generated-artifacts/IStakingEvents.json'; +import * as IStakingProxy from '../test/generated-artifacts/IStakingProxy.json'; +import * as IStorage from '../test/generated-artifacts/IStorage.json'; +import * as IStorageInit from '../test/generated-artifacts/IStorageInit.json'; +import * as IStructs from '../test/generated-artifacts/IStructs.json'; +import * as IZrxVault from '../test/generated-artifacts/IZrxVault.json'; +import * as LibCobbDouglas from '../test/generated-artifacts/LibCobbDouglas.json'; +import * as LibFixedMath from '../test/generated-artifacts/LibFixedMath.json'; +import * as LibFixedMathRichErrors from '../test/generated-artifacts/LibFixedMathRichErrors.json'; +import * as LibSafeDowncast from '../test/generated-artifacts/LibSafeDowncast.json'; +import * as LibStakingRichErrors from '../test/generated-artifacts/LibStakingRichErrors.json'; +import * as MixinAbstract from '../test/generated-artifacts/MixinAbstract.json'; +import * as MixinConstants from '../test/generated-artifacts/MixinConstants.json'; +import * as MixinCumulativeRewards from '../test/generated-artifacts/MixinCumulativeRewards.json'; +import * as MixinDeploymentConstants from '../test/generated-artifacts/MixinDeploymentConstants.json'; +import * as MixinExchangeFees from '../test/generated-artifacts/MixinExchangeFees.json'; +import * as MixinExchangeManager from '../test/generated-artifacts/MixinExchangeManager.json'; +import * as MixinFinalizer from '../test/generated-artifacts/MixinFinalizer.json'; +import * as MixinParams from '../test/generated-artifacts/MixinParams.json'; +import * as MixinScheduler from '../test/generated-artifacts/MixinScheduler.json'; +import * as MixinStake from '../test/generated-artifacts/MixinStake.json'; +import * as MixinStakeBalances from '../test/generated-artifacts/MixinStakeBalances.json'; +import * as MixinStakeStorage from '../test/generated-artifacts/MixinStakeStorage.json'; +import * as MixinStakingPool from '../test/generated-artifacts/MixinStakingPool.json'; +import * as MixinStakingPoolRewards from '../test/generated-artifacts/MixinStakingPoolRewards.json'; +import * as MixinStorage from '../test/generated-artifacts/MixinStorage.json'; +import * as Staking from '../test/generated-artifacts/Staking.json'; +import * as StakingProxy from '../test/generated-artifacts/StakingProxy.json'; +import * as TestAssertStorageParams from '../test/generated-artifacts/TestAssertStorageParams.json'; +import * as TestCobbDouglas from '../test/generated-artifacts/TestCobbDouglas.json'; +import * as TestCumulativeRewardTracking from '../test/generated-artifacts/TestCumulativeRewardTracking.json'; +import * as TestDelegatorRewards from '../test/generated-artifacts/TestDelegatorRewards.json'; +import * as TestExchangeManager from '../test/generated-artifacts/TestExchangeManager.json'; +import * as TestFinalizer from '../test/generated-artifacts/TestFinalizer.json'; +import * as TestInitTarget from '../test/generated-artifacts/TestInitTarget.json'; +import * as TestLibFixedMath from '../test/generated-artifacts/TestLibFixedMath.json'; +import * as TestLibSafeDowncast from '../test/generated-artifacts/TestLibSafeDowncast.json'; +import * as TestMixinCumulativeRewards from '../test/generated-artifacts/TestMixinCumulativeRewards.json'; +import * as TestMixinParams from '../test/generated-artifacts/TestMixinParams.json'; +import * as TestMixinScheduler from '../test/generated-artifacts/TestMixinScheduler.json'; +import * as TestMixinStake from '../test/generated-artifacts/TestMixinStake.json'; +import * as TestMixinStakeBalances from '../test/generated-artifacts/TestMixinStakeBalances.json'; +import * as TestMixinStakeStorage from '../test/generated-artifacts/TestMixinStakeStorage.json'; +import * as TestMixinStakingPool from '../test/generated-artifacts/TestMixinStakingPool.json'; +import * as TestMixinStakingPoolRewards from '../test/generated-artifacts/TestMixinStakingPoolRewards.json'; +import * as TestProtocolFees from '../test/generated-artifacts/TestProtocolFees.json'; +import * as TestProxyDestination from '../test/generated-artifacts/TestProxyDestination.json'; +import * as TestStaking from '../test/generated-artifacts/TestStaking.json'; +import * as TestStakingNoWETH from '../test/generated-artifacts/TestStakingNoWETH.json'; +import * as TestStakingProxy from '../test/generated-artifacts/TestStakingProxy.json'; +import * as TestStakingProxyUnit from '../test/generated-artifacts/TestStakingProxyUnit.json'; +import * as TestStorageLayoutAndConstants from '../test/generated-artifacts/TestStorageLayoutAndConstants.json'; +import * as ZrxVault from '../test/generated-artifacts/ZrxVault.json'; +export const artifacts = { + Staking: Staking as ContractArtifact, + StakingProxy: StakingProxy as ContractArtifact, + ZrxVault: ZrxVault as ContractArtifact, + MixinExchangeFees: MixinExchangeFees as ContractArtifact, + MixinExchangeManager: MixinExchangeManager as ContractArtifact, + MixinConstants: MixinConstants as ContractArtifact, + MixinDeploymentConstants: MixinDeploymentConstants as ContractArtifact, + MixinStorage: MixinStorage as ContractArtifact, + IStaking: IStaking as ContractArtifact, + IStakingEvents: IStakingEvents as ContractArtifact, + IStakingProxy: IStakingProxy as ContractArtifact, + IStorage: IStorage as ContractArtifact, + IStorageInit: IStorageInit as ContractArtifact, + IStructs: IStructs as ContractArtifact, + IZrxVault: IZrxVault as ContractArtifact, + LibCobbDouglas: LibCobbDouglas as ContractArtifact, + LibFixedMath: LibFixedMath as ContractArtifact, + LibFixedMathRichErrors: LibFixedMathRichErrors as ContractArtifact, + LibSafeDowncast: LibSafeDowncast as ContractArtifact, + LibStakingRichErrors: LibStakingRichErrors as ContractArtifact, + MixinStake: MixinStake as ContractArtifact, + MixinStakeBalances: MixinStakeBalances as ContractArtifact, + MixinStakeStorage: MixinStakeStorage as ContractArtifact, + MixinCumulativeRewards: MixinCumulativeRewards as ContractArtifact, + MixinStakingPool: MixinStakingPool as ContractArtifact, + MixinStakingPoolRewards: MixinStakingPoolRewards as ContractArtifact, + MixinAbstract: MixinAbstract as ContractArtifact, + MixinFinalizer: MixinFinalizer as ContractArtifact, + MixinParams: MixinParams as ContractArtifact, + MixinScheduler: MixinScheduler as ContractArtifact, + TestAssertStorageParams: TestAssertStorageParams as ContractArtifact, + TestCobbDouglas: TestCobbDouglas as ContractArtifact, + TestCumulativeRewardTracking: TestCumulativeRewardTracking as ContractArtifact, + TestDelegatorRewards: TestDelegatorRewards as ContractArtifact, + TestExchangeManager: TestExchangeManager as ContractArtifact, + TestFinalizer: TestFinalizer as ContractArtifact, + TestInitTarget: TestInitTarget as ContractArtifact, + TestLibFixedMath: TestLibFixedMath as ContractArtifact, + TestLibSafeDowncast: TestLibSafeDowncast as ContractArtifact, + TestMixinCumulativeRewards: TestMixinCumulativeRewards as ContractArtifact, + TestMixinParams: TestMixinParams as ContractArtifact, + TestMixinScheduler: TestMixinScheduler as ContractArtifact, + TestMixinStake: TestMixinStake as ContractArtifact, + TestMixinStakeBalances: TestMixinStakeBalances as ContractArtifact, + TestMixinStakeStorage: TestMixinStakeStorage as ContractArtifact, + TestMixinStakingPool: TestMixinStakingPool as ContractArtifact, + TestMixinStakingPoolRewards: TestMixinStakingPoolRewards as ContractArtifact, + TestProtocolFees: TestProtocolFees as ContractArtifact, + TestProxyDestination: TestProxyDestination as ContractArtifact, + TestStaking: TestStaking as ContractArtifact, + TestStakingNoWETH: TestStakingNoWETH as ContractArtifact, + TestStakingProxy: TestStakingProxy as ContractArtifact, + TestStakingProxyUnit: TestStakingProxyUnit as ContractArtifact, + TestStorageLayoutAndConstants: TestStorageLayoutAndConstants as ContractArtifact, +}; diff --git a/contracts/staking/test/codesize_test.ts b/contracts/staking/test/codesize_test.ts index 2fe4af1b13..21557401ea 100644 --- a/contracts/staking/test/codesize_test.ts +++ b/contracts/staking/test/codesize_test.ts @@ -1,6 +1,6 @@ import { constants, expect, getCodesizeFromArtifact } from '@0x/contracts-test-utils'; -import { artifacts } from '../src'; +import { artifacts } from './artifacts'; describe('Contract Size Checks', () => { describe('Staking', () => { diff --git a/contracts/staking/test/epoch_test.ts b/contracts/staking/test/epoch_test.ts index 03191b65bc..36515cb166 100644 --- a/contracts/staking/test/epoch_test.ts +++ b/contracts/staking/test/epoch_test.ts @@ -2,8 +2,9 @@ import { ERC20Wrapper } from '@0x/contracts-asset-proxy'; import { blockchainTests, expect } from '@0x/contracts-test-utils'; import * as _ from 'lodash'; +import { constants as stakingConstants } from '../src/constants'; + import { deployAndConfigureContractsAsync, StakingApiWrapper } from './utils/api_wrapper'; -import { constants as stakingConstants } from './utils/constants'; // tslint:disable:no-unnecessary-type-assertion blockchainTests('Epochs', env => { diff --git a/contracts/staking/test/layout_and_constant_regression_test.ts b/contracts/staking/test/layout_and_constant_regression_test.ts index 968200ab1e..4a74d5eacf 100644 --- a/contracts/staking/test/layout_and_constant_regression_test.ts +++ b/contracts/staking/test/layout_and_constant_regression_test.ts @@ -1,6 +1,7 @@ import { blockchainTests } from '@0x/contracts-test-utils'; -import { artifacts, TestStorageLayoutAndConstantsContract } from '../src'; +import { artifacts } from './artifacts'; +import { TestStorageLayoutAndConstantsContract } from './wrappers'; blockchainTests('Storage Layout and Deployment Constants Regression Tests', env => { it('Should successfully deploy the staking contract after running the layout and regression test', async () => { diff --git a/contracts/staking/test/migration_test.ts b/contracts/staking/test/migration_test.ts index 43e4e2475d..c6ddc00401 100644 --- a/contracts/staking/test/migration_test.ts +++ b/contracts/staking/test/migration_test.ts @@ -2,17 +2,17 @@ import { blockchainTests, constants, expect, filterLogsToArguments } from '@0x/c import { StakingRevertErrors } from '@0x/order-utils'; import { AuthorizableRevertErrors, BigNumber, StringRevertError } from '@0x/utils'; +import { constants as stakingConstants } from '../src/constants'; + +import { artifacts } from './artifacts'; import { - artifacts, StakingContract, StakingProxyContract, TestAssertStorageParamsContract, TestInitTargetContract, TestStakingProxyContract, TestStakingProxyStakingContractAttachedToProxyEventArgs, -} from '../src/'; - -import { constants as stakingConstants } from './utils/constants'; +} from './wrappers'; blockchainTests('Migration tests', env => { let authorizedAddress: string; diff --git a/contracts/staking/test/pools_test.ts b/contracts/staking/test/pools_test.ts index 7e0c5fe944..d58f1f61dc 100644 --- a/contracts/staking/test/pools_test.ts +++ b/contracts/staking/test/pools_test.ts @@ -3,10 +3,11 @@ import { blockchainTests, constants, expect } from '@0x/contracts-test-utils'; import { StakingRevertErrors } from '@0x/order-utils'; import * as _ from 'lodash'; +import { constants as stakingConstants } from '../src/constants'; + import { MakerActor } from './actors/maker_actor'; import { PoolOperatorActor } from './actors/pool_operator_actor'; import { deployAndConfigureContractsAsync, StakingApiWrapper } from './utils/api_wrapper'; -import { constants as stakingConstants } from './utils/constants'; // tslint:disable:no-unnecessary-type-assertion // tslint:disable:max-file-line-count @@ -173,7 +174,7 @@ blockchainTests('Staking Pool Management', env => { // decrease operator share await poolOperator.decreaseStakingPoolOperatorShareAsync(poolId, increasedOperatorShare, revertError); }); - it('Should fail if operator calls decreaseStakingPoolOperatorShare but newOperatorShare == oldOperatorShare', async () => { + it('Should be successful if operator calls decreaseStakingPoolOperatorShare and newOperatorShare == oldOperatorShare', async () => { // test parameters const operatorAddress = users[0]; const operatorShare = (39 / 100) * PPM_DENOMINATOR; @@ -183,13 +184,8 @@ blockchainTests('Staking Pool Management', env => { const poolId = await poolOperator.createStakingPoolAsync(operatorShare, false); expect(poolId).to.be.equal(stakingConstants.INITIAL_POOL_ID); - const revertError = new StakingRevertErrors.OperatorShareError( - StakingRevertErrors.OperatorShareErrorCodes.CanOnlyDecreaseOperatorShare, - poolId, - operatorShare, - ); // decrease operator share - await poolOperator.decreaseStakingPoolOperatorShareAsync(poolId, operatorShare, revertError); + await poolOperator.decreaseStakingPoolOperatorShareAsync(poolId, operatorShare); }); it('should fail to decrease operator share if not called by operator', async () => { // test parameters diff --git a/contracts/staking/test/rewards_test.ts b/contracts/staking/test/rewards_test.ts index 3c0a0f5e5c..f83f3ef37f 100644 --- a/contracts/staking/test/rewards_test.ts +++ b/contracts/staking/test/rewards_test.ts @@ -4,12 +4,13 @@ import { StakingRevertErrors } from '@0x/order-utils'; import { BigNumber } from '@0x/utils'; import * as _ from 'lodash'; +import { DelegatorsByPoolId, OperatorByPoolId, StakeInfo, StakeStatus } from '../src/types'; + import { FinalizerActor } from './actors/finalizer_actor'; import { PoolOperatorActor } from './actors/pool_operator_actor'; import { StakerActor } from './actors/staker_actor'; import { deployAndConfigureContractsAsync, StakingApiWrapper } from './utils/api_wrapper'; import { toBaseUnitAmount } from './utils/number_utils'; -import { DelegatorsByPoolId, OperatorByPoolId, StakeInfo, StakeStatus } from './utils/types'; // tslint:disable:no-unnecessary-type-assertion // tslint:disable:max-file-line-count diff --git a/contracts/staking/test/stake_test.ts b/contracts/staking/test/stake_test.ts index 806d57a2a1..cb5ac96b77 100644 --- a/contracts/staking/test/stake_test.ts +++ b/contracts/staking/test/stake_test.ts @@ -4,10 +4,11 @@ import { StakingRevertErrors } from '@0x/order-utils'; import { BigNumber } from '@0x/utils'; import * as _ from 'lodash'; +import { StakeInfo, StakeStatus } from '../src/types'; + import { StakerActor } from './actors/staker_actor'; import { deployAndConfigureContractsAsync, StakingApiWrapper } from './utils/api_wrapper'; import { toBaseUnitAmount } from './utils/number_utils'; -import { StakeInfo, StakeStatus } from './utils/types'; // tslint:disable:no-unnecessary-type-assertion blockchainTests.resets('Stake Statuses', env => { diff --git a/contracts/staking/test/unit_tests/delegator_reward_test.ts b/contracts/staking/test/unit_tests/delegator_reward_test.ts index ed774636ea..45b9c3fb57 100644 --- a/contracts/staking/test/unit_tests/delegator_reward_test.ts +++ b/contracts/staking/test/unit_tests/delegator_reward_test.ts @@ -12,19 +12,19 @@ import { import { BigNumber } from '@0x/utils'; import { LogEntry } from 'ethereum-types'; -import { - artifacts, - TestDelegatorRewardsContract, - TestDelegatorRewardsEvents, - TestDelegatorRewardsTransferEventArgs, -} from '../../src'; - +import { artifacts } from '../artifacts'; import { assertIntegerRoughlyEquals as assertRoughlyEquals, getRandomInteger, toBaseUnitAmount, } from '../utils/number_utils'; +import { + TestDelegatorRewardsContract, + TestDelegatorRewardsEvents, + TestDelegatorRewardsTransferEventArgs, +} from '../wrappers'; + blockchainTests.resets('Delegator rewards unit tests', env => { let testContract: TestDelegatorRewardsContract; diff --git a/contracts/staking/test/unit_tests/exchange_test.ts b/contracts/staking/test/unit_tests/exchange_test.ts index 8dc9e9532e..fba0d7b2d8 100644 --- a/contracts/staking/test/unit_tests/exchange_test.ts +++ b/contracts/staking/test/unit_tests/exchange_test.ts @@ -3,12 +3,12 @@ import { StakingRevertErrors } from '@0x/order-utils'; import { AuthorizableRevertErrors } from '@0x/utils'; import { LogWithDecodedArgs, TransactionReceiptWithDecodedLogs } from 'ethereum-types'; +import { artifacts } from '../artifacts'; import { - artifacts, TestExchangeManagerContract, TestExchangeManagerExchangeAddedEventArgs, TestExchangeManagerExchangeRemovedEventArgs, -} from '../../src'; +} from '../wrappers'; blockchainTests.resets('Exchange Unit Tests', env => { // Addresses diff --git a/contracts/staking/test/unit_tests/finalizer_test.ts b/contracts/staking/test/unit_tests/finalizer_test.ts index 1b3ca90fc2..571b46502a 100644 --- a/contracts/staking/test/unit_tests/finalizer_test.ts +++ b/contracts/staking/test/unit_tests/finalizer_test.ts @@ -12,8 +12,11 @@ import { BigNumber } from '@0x/utils'; import { LogEntry } from 'ethereum-types'; import * as _ from 'lodash'; +import { constants as stakingConstants } from '../../src/constants'; +import { artifacts } from '../artifacts'; +import { assertIntegerRoughlyEquals, getRandomInteger, toBaseUnitAmount } from '../utils/number_utils'; + import { - artifacts, IStakingEventsEpochEndedEventArgs, IStakingEventsEpochFinalizedEventArgs, IStakingEventsEvents, @@ -21,9 +24,7 @@ import { TestFinalizerContract, TestFinalizerDepositStakingPoolRewardsEventArgs as DepositStakingPoolRewardsEventArgs, TestFinalizerEvents, -} from '../../src'; -import { constants as stakingConstants } from '../utils/constants'; -import { assertIntegerRoughlyEquals, getRandomInteger, toBaseUnitAmount } from '../utils/number_utils'; +} from '../wrappers'; blockchainTests.resets('Finalizer unit tests', env => { const { ZERO_AMOUNT } = constants; diff --git a/contracts/staking/test/unit_tests/lib_cobb_douglas_test.ts b/contracts/staking/test/unit_tests/lib_cobb_douglas_test.ts index 787c5405c4..4c186299a5 100644 --- a/contracts/staking/test/unit_tests/lib_cobb_douglas_test.ts +++ b/contracts/staking/test/unit_tests/lib_cobb_douglas_test.ts @@ -2,10 +2,11 @@ import { blockchainTests, Numberish } from '@0x/contracts-test-utils'; import { BigNumber } from '@0x/utils'; import * as _ from 'lodash'; -import { artifacts, TestCobbDouglasContract } from '../../src/'; - import { assertRoughlyEquals, getRandomInteger, getRandomPortion, toDecimal } from '../utils/number_utils'; +import { artifacts } from '../artifacts'; +import { TestCobbDouglasContract } from '../wrappers'; + // tslint:disable: no-unnecessary-type-assertion blockchainTests('LibCobbDouglas unit tests', env => { const FUZZ_COUNT = 1024; diff --git a/contracts/staking/test/unit_tests/lib_fixed_math_test.ts b/contracts/staking/test/unit_tests/lib_fixed_math_test.ts index c53f1ec7d8..ae020ebc4d 100644 --- a/contracts/staking/test/unit_tests/lib_fixed_math_test.ts +++ b/contracts/staking/test/unit_tests/lib_fixed_math_test.ts @@ -3,10 +3,11 @@ import { BigNumber, FixedMathRevertErrors } from '@0x/utils'; import { Decimal } from 'decimal.js'; import * as _ from 'lodash'; -import { artifacts, TestLibFixedMathContract } from '../../src'; - import { assertRoughlyEquals, fromFixed, toDecimal, toFixed } from '../utils/number_utils'; +import { artifacts } from '../artifacts'; +import { TestLibFixedMathContract } from '../wrappers'; + blockchainTests('LibFixedMath unit tests', env => { let testContract: TestLibFixedMathContract; diff --git a/contracts/staking/test/unit_tests/lib_safe_downcast_test.ts b/contracts/staking/test/unit_tests/lib_safe_downcast_test.ts index f296a21574..c04f1fe2e6 100644 --- a/contracts/staking/test/unit_tests/lib_safe_downcast_test.ts +++ b/contracts/staking/test/unit_tests/lib_safe_downcast_test.ts @@ -1,7 +1,8 @@ import { blockchainTests, expect, Numberish } from '@0x/contracts-test-utils'; import { BigNumber, SafeMathRevertErrors } from '@0x/utils'; -import { artifacts, TestLibSafeDowncastContract } from '../../src/'; +import { artifacts } from '../artifacts'; +import { TestLibSafeDowncastContract } from '../wrappers'; blockchainTests('LibSafeDowncast unit tests', env => { let testContract: TestLibSafeDowncastContract; diff --git a/contracts/staking/test/unit_tests/mixin_cumulative_rewards_test.ts b/contracts/staking/test/unit_tests/mixin_cumulative_rewards_test.ts index 462bd10d4d..51e18c00b2 100644 --- a/contracts/staking/test/unit_tests/mixin_cumulative_rewards_test.ts +++ b/contracts/staking/test/unit_tests/mixin_cumulative_rewards_test.ts @@ -2,11 +2,12 @@ import { blockchainTests, expect } from '@0x/contracts-test-utils'; import { BigNumber } from '@0x/utils'; import * as _ from 'lodash'; -import { artifacts, TestMixinCumulativeRewardsContract } from '../../src'; - -import { constants as stakingConstants } from '../utils/constants'; +import { constants as stakingConstants } from '../../src/constants'; import { toBaseUnitAmount } from '../utils/number_utils'; +import { artifacts } from '../artifacts'; +import { TestMixinCumulativeRewardsContract } from '../wrappers'; + blockchainTests.resets('MixinCumulativeRewards unit tests', env => { const ZERO = new BigNumber(0); const testRewards = [ diff --git a/contracts/staking/test/unit_tests/mixin_scheduler_test.ts b/contracts/staking/test/unit_tests/mixin_scheduler_test.ts index 444109f3d2..7c032727b8 100644 --- a/contracts/staking/test/unit_tests/mixin_scheduler_test.ts +++ b/contracts/staking/test/unit_tests/mixin_scheduler_test.ts @@ -3,14 +3,14 @@ import { StakingRevertErrors } from '@0x/order-utils'; import { BigNumber } from '@0x/utils'; import { LogWithDecodedArgs } from 'ethereum-types'; +import { constants as stakingConstants } from '../../src/constants'; + +import { artifacts } from '../artifacts'; import { - artifacts, TestMixinSchedulerContract, TestMixinSchedulerEvents, TestMixinSchedulerGoToNextEpochTestInfoEventArgs, -} from '../../src'; - -import { constants as stakingConstants } from '../utils/constants'; +} from '../wrappers'; blockchainTests.resets('MixinScheduler unit tests', env => { let testContract: TestMixinSchedulerContract; diff --git a/contracts/staking/test/unit_tests/mixin_stake_storage_test.ts b/contracts/staking/test/unit_tests/mixin_stake_storage_test.ts index ed4b57f6c9..6167f75324 100644 --- a/contracts/staking/test/unit_tests/mixin_stake_storage_test.ts +++ b/contracts/staking/test/unit_tests/mixin_stake_storage_test.ts @@ -2,10 +2,11 @@ import { blockchainTests, expect, Numberish } from '@0x/contracts-test-utils'; import { StakingRevertErrors } from '@0x/order-utils'; import { BigNumber } from '@0x/utils'; -import { StoredBalance } from '../utils/types'; +import { constants } from '../../src/constants'; +import { StoredBalance } from '../../src/types'; -import { artifacts, TestMixinStakeStorageContract } from '../../src'; -import { constants } from '../utils/constants'; +import { artifacts } from '../artifacts'; +import { TestMixinStakeStorageContract } from '../wrappers'; blockchainTests.resets('MixinStakeStorage unit tests', env => { let testContract: TestMixinStakeStorageContract; diff --git a/contracts/staking/test/unit_tests/mixin_staking_pool_rewards.ts b/contracts/staking/test/unit_tests/mixin_staking_pool_rewards.ts index dbe5d8b796..f0a284e459 100644 --- a/contracts/staking/test/unit_tests/mixin_staking_pool_rewards.ts +++ b/contracts/staking/test/unit_tests/mixin_staking_pool_rewards.ts @@ -13,9 +13,10 @@ import { import { BigNumber } from '@0x/utils'; import { LogEntry, TransactionReceiptWithDecodedLogs } from 'ethereum-types'; -import { StoredBalance } from '../utils/types'; +import { StoredBalance } from '../../src/types'; -import { artifacts, TestMixinStakingPoolRewardsContract, TestMixinStakingPoolRewardsEvents as Events } from '../../src'; +import { artifacts } from '../artifacts'; +import { TestMixinStakingPoolRewardsContract, TestMixinStakingPoolRewardsEvents as Events } from '../wrappers'; blockchainTests.resets('MixinStakingPoolRewards unit tests', env => { let testContract: TestMixinStakingPoolRewardsContract; diff --git a/contracts/staking/test/unit_tests/params_test.ts b/contracts/staking/test/unit_tests/params_test.ts index 59dfad4571..ce518e98de 100644 --- a/contracts/staking/test/unit_tests/params_test.ts +++ b/contracts/staking/test/unit_tests/params_test.ts @@ -3,10 +3,11 @@ import { AuthorizableRevertErrors, BigNumber } from '@0x/utils'; import { TransactionReceiptWithDecodedLogs } from 'ethereum-types'; import * as _ from 'lodash'; -import { artifacts, IStakingEventsParamsSetEventArgs, TestMixinParamsContract } from '../../src/'; +import { artifacts } from '../artifacts'; +import { IStakingEventsParamsSetEventArgs, TestMixinParamsContract } from '../wrappers'; -import { constants as stakingConstants } from '../utils/constants'; -import { StakingParams } from '../utils/types'; +import { constants as stakingConstants } from '../../src/constants'; +import { StakingParams } from '../../src/types'; blockchainTests('Configurable Parameters unit tests', env => { let testContract: TestMixinParamsContract; diff --git a/contracts/staking/test/unit_tests/protocol_fees_test.ts b/contracts/staking/test/unit_tests/protocol_fees_test.ts index a80b9f110e..06a52f7d14 100644 --- a/contracts/staking/test/unit_tests/protocol_fees_test.ts +++ b/contracts/staking/test/unit_tests/protocol_fees_test.ts @@ -12,14 +12,14 @@ import { BigNumber } from '@0x/utils'; import { LogEntry } from 'ethereum-types'; import * as _ from 'lodash'; +import { artifacts } from '../artifacts'; import { - artifacts, IStakingEventsEvents, IStakingEventsStakingPoolEarnedRewardsInEpochEventArgs, TestProtocolFeesContract, TestProtocolFeesERC20ProxyTransferFromEventArgs, TestProtocolFeesEvents, -} from '../../src'; +} from '../wrappers'; import { getRandomInteger } from '../utils/number_utils'; diff --git a/contracts/staking/test/unit_tests/stake_balances_test.ts b/contracts/staking/test/unit_tests/stake_balances_test.ts index 8c5d6cd930..44d625fe2f 100644 --- a/contracts/staking/test/unit_tests/stake_balances_test.ts +++ b/contracts/staking/test/unit_tests/stake_balances_test.ts @@ -8,9 +8,11 @@ import { } from '@0x/contracts-test-utils'; import { BigNumber, SafeMathRevertErrors } from '@0x/utils'; -import { artifacts, TestMixinStakeBalancesContract } from '../../src'; -import { constants as stakingConstants } from '../utils/constants'; -import { StakeStatus, StoredBalance } from '../utils/types'; +import { artifacts } from '../artifacts'; +import { TestMixinStakeBalancesContract } from '../wrappers'; + +import { constants as stakingConstants } from '../../src/constants'; +import { StakeStatus, StoredBalance } from '../../src/types'; blockchainTests.resets('MixinStakeBalances unit tests', env => { let testContract: TestMixinStakeBalancesContract; diff --git a/contracts/staking/test/unit_tests/stake_test.ts b/contracts/staking/test/unit_tests/stake_test.ts index 080d0c71ef..d3d56af949 100644 --- a/contracts/staking/test/unit_tests/stake_test.ts +++ b/contracts/staking/test/unit_tests/stake_test.ts @@ -13,10 +13,10 @@ import { StakingRevertErrors } from '@0x/order-utils'; import { BigNumber } from '@0x/utils'; import * as _ from 'lodash'; -import { StakeStatus } from '../utils/types'; +import { StakeStatus } from '../../src/types'; +import { artifacts } from '../artifacts'; import { - artifacts, TestMixinStakeContract, TestMixinStakeDecreaseCurrentAndNextBalanceEventArgs as DecreaseCurrentAndNextBalanceEventArgs, TestMixinStakeDecreaseNextBalanceEventArgs as DecreaseNextBalanceEventArgs, @@ -30,7 +30,7 @@ import { TestMixinStakeWithdrawAndSyncDelegatorRewardsEventArgs as WithdrawAndSyncDelegatorRewardsEventArgs, TestMixinStakeZrxVaultDepositFromEventArgs as ZrxVaultDepositFromEventArgs, TestMixinStakeZrxVaultWithdrawFromEventArgs as ZrxVaultWithdrawFromEventArgs, -} from '../../src'; +} from '../wrappers'; blockchainTests.resets('MixinStake unit tests', env => { let testContract: TestMixinStakeContract; diff --git a/contracts/staking/test/unit_tests/staking_pool_test.ts b/contracts/staking/test/unit_tests/staking_pool_test.ts index 88f31a4d9c..84b349bcac 100644 --- a/contracts/staking/test/unit_tests/staking_pool_test.ts +++ b/contracts/staking/test/unit_tests/staking_pool_test.ts @@ -12,12 +12,12 @@ import { StakingRevertErrors } from '@0x/order-utils'; import { BigNumber, SafeMathRevertErrors } from '@0x/utils'; import * as _ from 'lodash'; +import { artifacts } from '../artifacts'; import { - artifacts, TestMixinStakingPoolContract, TestMixinStakingPoolEvents, TestMixinStakingPoolStakingPoolCreatedEventArgs as StakingPoolCreated, -} from '../../src'; +} from '../wrappers'; blockchainTests.resets('MixinStakingPool unit tests', env => { let testContract: TestMixinStakingPoolContract; @@ -170,6 +170,20 @@ blockchainTests.resets('MixinStakingPool unit tests', env => { expect(pool.operator).to.eq(operator); expect(pool.operatorShare).to.bignumber.eq(operatorShare); }); + it('records pool details when operator share is 100%', async () => { + const operatorShare = constants.PPM_100_PERCENT; + await testContract.createStakingPool(operatorShare, false).awaitTransactionSuccessAsync({ from: operator }); + const pool = await testContract.getStakingPool(nextPoolId).callAsync(); + expect(pool.operator).to.eq(operator); + expect(pool.operatorShare).to.bignumber.eq(operatorShare); + }); + it('records pool details when operator share is 0%', async () => { + const operatorShare = constants.ZERO_AMOUNT; + await testContract.createStakingPool(operatorShare, false).awaitTransactionSuccessAsync({ from: operator }); + const pool = await testContract.getStakingPool(nextPoolId).callAsync(); + expect(pool.operator).to.eq(operator); + expect(pool.operatorShare).to.bignumber.eq(operatorShare); + }); it('returns the next pool ID', async () => { const poolId = await testContract.createStakingPool(randomOperatorShare(), false).callAsync({ from: operator, @@ -235,18 +249,6 @@ blockchainTests.resets('MixinStakingPool unit tests', env => { const expectedError = new StakingRevertErrors.OnlyCallableByPoolOperatorError(maker, poolId); return expect(tx).to.revertWith(expectedError); }); - it('fails if operator share is equal to current', async () => { - const { poolId, operatorShare } = await createPoolAsync(); - const tx = testContract - .decreaseStakingPoolOperatorShare(poolId, operatorShare) - .awaitTransactionSuccessAsync({ from: operator }); - const expectedError = new StakingRevertErrors.OperatorShareError( - StakingRevertErrors.OperatorShareErrorCodes.CanOnlyDecreaseOperatorShare, - poolId, - operatorShare, - ); - return expect(tx).to.revertWith(expectedError); - }); it('fails if operator share is greater than current', async () => { const { poolId, operatorShare } = await createPoolAsync(); const tx = testContract @@ -279,6 +281,14 @@ blockchainTests.resets('MixinStakingPool unit tests', env => { const pool = await testContract.getStakingPool(poolId).callAsync(); expect(pool.operatorShare).to.bignumber.eq(operatorShare - 1); }); + it('does not modify operator share if equal to current', async () => { + const { poolId, operatorShare } = await createPoolAsync(); + await testContract.decreaseStakingPoolOperatorShare(poolId, operatorShare).awaitTransactionSuccessAsync({ + from: operator, + }); + const pool = await testContract.getStakingPool(poolId).callAsync(); + expect(pool.operatorShare).to.bignumber.eq(operatorShare); + }); it('does not modify operator', async () => { const { poolId, operatorShare } = await createPoolAsync(); await testContract diff --git a/contracts/staking/test/unit_tests/staking_proxy_test.ts b/contracts/staking/test/unit_tests/staking_proxy_test.ts index 7a4988531b..915b6952ed 100644 --- a/contracts/staking/test/unit_tests/staking_proxy_test.ts +++ b/contracts/staking/test/unit_tests/staking_proxy_test.ts @@ -3,15 +3,15 @@ import { StakingRevertErrors } from '@0x/order-utils'; import { AuthorizableRevertErrors, BigNumber } from '@0x/utils'; import * as _ from 'lodash'; +import { artifacts } from '../artifacts'; import { - artifacts, StakingProxyEvents, TestProxyDestinationContract, TestProxyDestinationEvents, TestStakingProxyUnitContract, -} from '../../src'; +} from '../wrappers'; -import { constants as stakingConstants } from '../utils/constants'; +import { constants as stakingConstants } from '../../src/constants'; blockchainTests.resets('StakingProxy unit tests', env => { const testString = 'Hello, World!'; diff --git a/contracts/staking/test/unit_tests/zrx_vault_test.ts b/contracts/staking/test/unit_tests/zrx_vault_test.ts index 3b4a54aba6..099f3e5fda 100644 --- a/contracts/staking/test/unit_tests/zrx_vault_test.ts +++ b/contracts/staking/test/unit_tests/zrx_vault_test.ts @@ -13,17 +13,17 @@ import { RevertReason } from '@0x/types'; import { AuthorizableRevertErrors, BigNumber, SafeMathRevertErrors } from '@0x/utils'; import { TransactionReceiptWithDecodedLogs } from 'ethereum-types'; -import { constants as stakingConstants } from '../utils/constants'; +import { constants as stakingConstants } from '../../src/constants'; +import { artifacts } from '../artifacts'; import { - artifacts, ZrxVaultContract, ZrxVaultDepositEventArgs, ZrxVaultInCatastrophicFailureModeEventArgs, ZrxVaultStakingProxySetEventArgs, ZrxVaultWithdrawEventArgs, ZrxVaultZrxProxySetEventArgs, -} from '../../src'; +} from '../wrappers'; blockchainTests.resets('ZrxVault unit tests', env => { let accounts: string[]; diff --git a/contracts/staking/test/utils/api_wrapper.ts b/contracts/staking/test/utils/api_wrapper.ts index 922422446e..3572168a40 100644 --- a/contracts/staking/test/utils/api_wrapper.ts +++ b/contracts/staking/test/utils/api_wrapper.ts @@ -6,8 +6,8 @@ import { Web3Wrapper } from '@0x/web3-wrapper'; import { BlockParamLiteral, ContractArtifact, TransactionReceiptWithDecodedLogs } from 'ethereum-types'; import * as _ from 'lodash'; +import { artifacts } from '../artifacts'; import { - artifacts, IStakingEventsEpochEndedEventArgs, IStakingEventsStakingPoolEarnedRewardsInEpochEventArgs, StakingProxyContract, @@ -15,10 +15,10 @@ import { TestStakingContract, TestStakingEvents, ZrxVaultContract, -} from '../../src'; +} from '../wrappers'; -import { constants as stakingConstants } from './constants'; -import { DecodedLogs, EndOfEpochInfo, StakingParams } from './types'; +import { constants as stakingConstants } from '../../src/constants'; +import { DecodedLogs, EndOfEpochInfo, StakingParams } from '../../src/types'; export class StakingApiWrapper { // The address of the real Staking.sol contract diff --git a/contracts/staking/test/utils/cumulative_reward_tracking_simulation.ts b/contracts/staking/test/utils/cumulative_reward_tracking_simulation.ts index fedba50527..e9208e71d5 100644 --- a/contracts/staking/test/utils/cumulative_reward_tracking_simulation.ts +++ b/contracts/staking/test/utils/cumulative_reward_tracking_simulation.ts @@ -3,11 +3,12 @@ import { BigNumber } from '@0x/utils'; import { DecodedLogEntry, TransactionReceiptWithDecodedLogs } from 'ethereum-types'; import * as _ from 'lodash'; -import { artifacts, TestCumulativeRewardTrackingContract, TestCumulativeRewardTrackingEvents } from '../../src'; +import { DecodedLogs, StakeInfo, StakeStatus } from '../../src/types'; +import { artifacts } from '../artifacts'; +import { TestCumulativeRewardTrackingContract, TestCumulativeRewardTrackingEvents } from '../wrappers'; import { StakingApiWrapper } from './api_wrapper'; import { toBaseUnitAmount } from './number_utils'; -import { DecodedLogs, StakeInfo, StakeStatus } from './types'; export enum TestAction { Finalize, diff --git a/contracts/staking/test/wrappers.ts b/contracts/staking/test/wrappers.ts new file mode 100644 index 0000000000..4c8dd0c7b7 --- /dev/null +++ b/contracts/staking/test/wrappers.ts @@ -0,0 +1,59 @@ +/* + * ----------------------------------------------------------------------------- + * Warning: This file is auto-generated by contracts-gen. Don't edit manually. + * ----------------------------------------------------------------------------- + */ +export * from '../test/generated-wrappers/i_staking'; +export * from '../test/generated-wrappers/i_staking_events'; +export * from '../test/generated-wrappers/i_staking_proxy'; +export * from '../test/generated-wrappers/i_storage'; +export * from '../test/generated-wrappers/i_storage_init'; +export * from '../test/generated-wrappers/i_structs'; +export * from '../test/generated-wrappers/i_zrx_vault'; +export * from '../test/generated-wrappers/lib_cobb_douglas'; +export * from '../test/generated-wrappers/lib_fixed_math'; +export * from '../test/generated-wrappers/lib_fixed_math_rich_errors'; +export * from '../test/generated-wrappers/lib_safe_downcast'; +export * from '../test/generated-wrappers/lib_staking_rich_errors'; +export * from '../test/generated-wrappers/mixin_abstract'; +export * from '../test/generated-wrappers/mixin_constants'; +export * from '../test/generated-wrappers/mixin_cumulative_rewards'; +export * from '../test/generated-wrappers/mixin_deployment_constants'; +export * from '../test/generated-wrappers/mixin_exchange_fees'; +export * from '../test/generated-wrappers/mixin_exchange_manager'; +export * from '../test/generated-wrappers/mixin_finalizer'; +export * from '../test/generated-wrappers/mixin_params'; +export * from '../test/generated-wrappers/mixin_scheduler'; +export * from '../test/generated-wrappers/mixin_stake'; +export * from '../test/generated-wrappers/mixin_stake_balances'; +export * from '../test/generated-wrappers/mixin_stake_storage'; +export * from '../test/generated-wrappers/mixin_staking_pool'; +export * from '../test/generated-wrappers/mixin_staking_pool_rewards'; +export * from '../test/generated-wrappers/mixin_storage'; +export * from '../test/generated-wrappers/staking'; +export * from '../test/generated-wrappers/staking_proxy'; +export * from '../test/generated-wrappers/test_assert_storage_params'; +export * from '../test/generated-wrappers/test_cobb_douglas'; +export * from '../test/generated-wrappers/test_cumulative_reward_tracking'; +export * from '../test/generated-wrappers/test_delegator_rewards'; +export * from '../test/generated-wrappers/test_exchange_manager'; +export * from '../test/generated-wrappers/test_finalizer'; +export * from '../test/generated-wrappers/test_init_target'; +export * from '../test/generated-wrappers/test_lib_fixed_math'; +export * from '../test/generated-wrappers/test_lib_safe_downcast'; +export * from '../test/generated-wrappers/test_mixin_cumulative_rewards'; +export * from '../test/generated-wrappers/test_mixin_params'; +export * from '../test/generated-wrappers/test_mixin_scheduler'; +export * from '../test/generated-wrappers/test_mixin_stake'; +export * from '../test/generated-wrappers/test_mixin_stake_balances'; +export * from '../test/generated-wrappers/test_mixin_stake_storage'; +export * from '../test/generated-wrappers/test_mixin_staking_pool'; +export * from '../test/generated-wrappers/test_mixin_staking_pool_rewards'; +export * from '../test/generated-wrappers/test_protocol_fees'; +export * from '../test/generated-wrappers/test_proxy_destination'; +export * from '../test/generated-wrappers/test_staking'; +export * from '../test/generated-wrappers/test_staking_no_w_e_t_h'; +export * from '../test/generated-wrappers/test_staking_proxy'; +export * from '../test/generated-wrappers/test_staking_proxy_unit'; +export * from '../test/generated-wrappers/test_storage_layout_and_constants'; +export * from '../test/generated-wrappers/zrx_vault'; diff --git a/contracts/staking/tsconfig.json b/contracts/staking/tsconfig.json index 9f73beed73..5f0be618eb 100644 --- a/contracts/staking/tsconfig.json +++ b/contracts/staking/tsconfig.json @@ -6,57 +6,66 @@ "generated-artifacts/IStaking.json", "generated-artifacts/IStakingEvents.json", "generated-artifacts/IStakingProxy.json", - "generated-artifacts/IStorage.json", - "generated-artifacts/IStorageInit.json", - "generated-artifacts/IStructs.json", "generated-artifacts/IZrxVault.json", - "generated-artifacts/LibCobbDouglas.json", - "generated-artifacts/LibFixedMath.json", - "generated-artifacts/LibFixedMathRichErrors.json", - "generated-artifacts/LibSafeDowncast.json", "generated-artifacts/LibStakingRichErrors.json", - "generated-artifacts/MixinAbstract.json", - "generated-artifacts/MixinConstants.json", - "generated-artifacts/MixinCumulativeRewards.json", - "generated-artifacts/MixinDeploymentConstants.json", - "generated-artifacts/MixinExchangeFees.json", - "generated-artifacts/MixinExchangeManager.json", - "generated-artifacts/MixinFinalizer.json", - "generated-artifacts/MixinParams.json", - "generated-artifacts/MixinScheduler.json", - "generated-artifacts/MixinStake.json", - "generated-artifacts/MixinStakeBalances.json", - "generated-artifacts/MixinStakeStorage.json", - "generated-artifacts/MixinStakingPool.json", - "generated-artifacts/MixinStakingPoolRewards.json", - "generated-artifacts/MixinStorage.json", "generated-artifacts/Staking.json", "generated-artifacts/StakingProxy.json", - "generated-artifacts/TestAssertStorageParams.json", - "generated-artifacts/TestCobbDouglas.json", - "generated-artifacts/TestCumulativeRewardTracking.json", - "generated-artifacts/TestDelegatorRewards.json", - "generated-artifacts/TestExchangeManager.json", - "generated-artifacts/TestFinalizer.json", - "generated-artifacts/TestInitTarget.json", - "generated-artifacts/TestLibFixedMath.json", - "generated-artifacts/TestLibSafeDowncast.json", - "generated-artifacts/TestMixinCumulativeRewards.json", - "generated-artifacts/TestMixinParams.json", - "generated-artifacts/TestMixinScheduler.json", - "generated-artifacts/TestMixinStake.json", - "generated-artifacts/TestMixinStakeBalances.json", - "generated-artifacts/TestMixinStakeStorage.json", - "generated-artifacts/TestMixinStakingPool.json", - "generated-artifacts/TestMixinStakingPoolRewards.json", - "generated-artifacts/TestProtocolFees.json", - "generated-artifacts/TestProxyDestination.json", "generated-artifacts/TestStaking.json", - "generated-artifacts/TestStakingNoWETH.json", - "generated-artifacts/TestStakingProxy.json", - "generated-artifacts/TestStakingProxyUnit.json", - "generated-artifacts/TestStorageLayoutAndConstants.json", - "generated-artifacts/ZrxVault.json" + "generated-artifacts/ZrxVault.json", + "test/generated-artifacts/IStaking.json", + "test/generated-artifacts/IStakingEvents.json", + "test/generated-artifacts/IStakingProxy.json", + "test/generated-artifacts/IStorage.json", + "test/generated-artifacts/IStorageInit.json", + "test/generated-artifacts/IStructs.json", + "test/generated-artifacts/IZrxVault.json", + "test/generated-artifacts/LibCobbDouglas.json", + "test/generated-artifacts/LibFixedMath.json", + "test/generated-artifacts/LibFixedMathRichErrors.json", + "test/generated-artifacts/LibSafeDowncast.json", + "test/generated-artifacts/LibStakingRichErrors.json", + "test/generated-artifacts/MixinAbstract.json", + "test/generated-artifacts/MixinConstants.json", + "test/generated-artifacts/MixinCumulativeRewards.json", + "test/generated-artifacts/MixinDeploymentConstants.json", + "test/generated-artifacts/MixinExchangeFees.json", + "test/generated-artifacts/MixinExchangeManager.json", + "test/generated-artifacts/MixinFinalizer.json", + "test/generated-artifacts/MixinParams.json", + "test/generated-artifacts/MixinScheduler.json", + "test/generated-artifacts/MixinStake.json", + "test/generated-artifacts/MixinStakeBalances.json", + "test/generated-artifacts/MixinStakeStorage.json", + "test/generated-artifacts/MixinStakingPool.json", + "test/generated-artifacts/MixinStakingPoolRewards.json", + "test/generated-artifacts/MixinStorage.json", + "test/generated-artifacts/Staking.json", + "test/generated-artifacts/StakingProxy.json", + "test/generated-artifacts/TestAssertStorageParams.json", + "test/generated-artifacts/TestCobbDouglas.json", + "test/generated-artifacts/TestCumulativeRewardTracking.json", + "test/generated-artifacts/TestDelegatorRewards.json", + "test/generated-artifacts/TestExchangeManager.json", + "test/generated-artifacts/TestFinalizer.json", + "test/generated-artifacts/TestInitTarget.json", + "test/generated-artifacts/TestLibFixedMath.json", + "test/generated-artifacts/TestLibSafeDowncast.json", + "test/generated-artifacts/TestMixinCumulativeRewards.json", + "test/generated-artifacts/TestMixinParams.json", + "test/generated-artifacts/TestMixinScheduler.json", + "test/generated-artifacts/TestMixinStake.json", + "test/generated-artifacts/TestMixinStakeBalances.json", + "test/generated-artifacts/TestMixinStakeStorage.json", + "test/generated-artifacts/TestMixinStakingPool.json", + "test/generated-artifacts/TestMixinStakingPoolRewards.json", + "test/generated-artifacts/TestProtocolFees.json", + "test/generated-artifacts/TestProxyDestination.json", + "test/generated-artifacts/TestStaking.json", + "test/generated-artifacts/TestStakingNoWETH.json", + "test/generated-artifacts/TestStakingProxy.json", + "test/generated-artifacts/TestStakingProxyUnit.json", + "test/generated-artifacts/TestStorageLayoutAndConstants.json", + "test/generated-artifacts/ZrxVault.json" ], "exclude": ["./deploy/solc/solc_bin"] } diff --git a/contracts/test-utils/.npmignore b/contracts/test-utils/.npmignore new file mode 100644 index 0000000000..bdf2b8acbe --- /dev/null +++ b/contracts/test-utils/.npmignore @@ -0,0 +1,10 @@ +# Blacklist all files +.* +* +# Whitelist lib +!lib/**/* +# Whitelist Solidity contracts +!contracts/src/**/* +# Blacklist tests in lib +/lib/test/* +# Package specific ignore diff --git a/contracts/test-utils/CHANGELOG.json b/contracts/test-utils/CHANGELOG.json index 1f0cdec9d5..4616928b39 100644 --- a/contracts/test-utils/CHANGELOG.json +++ b/contracts/test-utils/CHANGELOG.json @@ -1,10 +1,10 @@ [ { - "version": "4.0.0-beta.0", + "version": "3.2.0-beta.2", "changes": [ { - "note": "OrderFactory default order expiration time increased from ten minutes to fifteen minutes ", - "pr": 2304 + "note": "Drastically reduced bundle size by adding .npmignore, only exporting specific artifacts/wrappers/utils", + "pr": 2330 }, { "note": "Remove TransactionHelper and MutatorContractFunction", @@ -12,6 +12,16 @@ } ] }, + { + "version": "3.2.0-beta.1", + "changes": [ + { + "note": "OrderFactory default order expiration time increased from ten minutes to fifteen minutes ", + "pr": 2304 + } + ], + "timestamp": 1573159180 + }, { "version": "3.2.0-beta.0", "changes": [ diff --git a/contracts/test-utils/CHANGELOG.md b/contracts/test-utils/CHANGELOG.md index de99badf7d..8c32c22277 100644 --- a/contracts/test-utils/CHANGELOG.md +++ b/contracts/test-utils/CHANGELOG.md @@ -5,6 +5,10 @@ Edit the package's CHANGELOG.json file only. CHANGELOG +## v3.2.0-beta.1 - _November 7, 2019_ + + * OrderFactory default order expiration time increased from ten minutes to fifteen minutes (#2304) + ## v3.2.0-beta.0 - _October 3, 2019_ * Add `chainId` to `TransactionFactory` constructor (#1742) @@ -31,6 +35,7 @@ CHANGELOG * Add `hexHash()` to `hex_utils` (#2155) * Add `shortZip()` to `lang_utils.ts` (#2155) * Add `number_utils.ts` and `hexSize()` (#2220) + * Add `verifyEventsFromLogs()` (#2287) ## v3.1.16 - _September 17, 2019_ diff --git a/contracts/test-utils/package.json b/contracts/test-utils/package.json index d1410397eb..c6d4f2669b 100644 --- a/contracts/test-utils/package.json +++ b/contracts/test-utils/package.json @@ -1,6 +1,6 @@ { "name": "@0x/contracts-test-utils", - "version": "3.2.0-beta.0", + "version": "3.2.0-beta.1", "engines": { "node": ">=6.12" }, @@ -34,6 +34,8 @@ }, "homepage": "https://github.com/0xProject/0x-monorepo/contracts/test-utils/README.md", "devDependencies": { + "@0x/sol-compiler": "^3.2.0-beta.1", + "@0x/tslint-config": "^3.1.0-beta.1", "npm-run-all": "^4.1.2", "shx": "^0.2.2", "tslint": "5.11.0", @@ -41,18 +43,16 @@ }, "dependencies": { "@0x/base-contract": "^5.5.0-beta.0", - "@0x/dev-utils": "^2.4.0-beta.0", - "@0x/order-utils": "^8.5.0-beta.0", - "@0x/sol-compiler": "^3.2.0-beta.0", - "@0x/sol-coverage": "^3.1.0-beta.0", - "@0x/sol-profiler": "^3.2.0-beta.0", - "@0x/sol-trace": "^2.1.0-beta.0", - "@0x/subproviders": "^5.1.0-beta.0", - "@0x/tslint-config": "^3.0.1", - "@0x/types": "^2.5.0-beta.0", - "@0x/typescript-typings": "^4.4.0-beta.0", - "@0x/utils": "^4.6.0-beta.0", - "@0x/web3-wrapper": "^6.1.0-beta.0", + "@0x/dev-utils": "^2.4.0-beta.1", + "@0x/order-utils": "^8.5.0-beta.1", + "@0x/sol-coverage": "^3.1.0-beta.1", + "@0x/sol-profiler": "^3.2.0-beta.1", + "@0x/sol-trace": "^2.1.0-beta.1", + "@0x/subproviders": "^5.1.0-beta.1", + "@0x/types": "^2.5.0-beta.1", + "@0x/typescript-typings": "^4.4.0-beta.1", + "@0x/utils": "^4.6.0-beta.1", + "@0x/web3-wrapper": "^6.1.0-beta.1", "@types/bn.js": "^4.11.0", "@types/js-combinatorics": "^0.5.29", "@types/lodash": "4.14.104", @@ -63,7 +63,7 @@ "chai-as-promised": "^7.1.0", "chai-bignumber": "^3.0.0", "dirty-chai": "^2.0.1", - "ethereum-types": "^2.2.0-beta.0", + "ethereum-types": "^2.2.0-beta.1", "ethereumjs-util": "^5.1.1", "ethers": "~4.0.4", "js-combinatorics": "^0.5.3", diff --git a/contracts/test-utils/src/constants.ts b/contracts/test-utils/src/constants.ts index eb93afbcf7..b71b8a4ca5 100644 --- a/contracts/test-utils/src/constants.ts +++ b/contracts/test-utils/src/constants.ts @@ -3,6 +3,8 @@ import { Web3Wrapper } from '@0x/web3-wrapper'; import * as ethUtil from 'ethereumjs-util'; import * as _ from 'lodash'; +import { ExchangeFunctionName } from './types'; + const TESTRPC_PRIVATE_KEYS_STRINGS = [ '0xf2f48ee19680706196e2e339e5da3491186e0c4c5030670656b0e0164837257d', '0x5d862464fe9303452126c8bc94274b8c5f9874cbd219789b3eb2128075a76f72', @@ -84,4 +86,26 @@ export const constants = { PPM_DENOMINATOR: 1e6, PPM_100_PERCENT: 1e6, MAX_CODE_SIZE: 24576, + SINGLE_FILL_FN_NAMES: [ExchangeFunctionName.FillOrder, ExchangeFunctionName.FillOrKillOrder], + BATCH_FILL_FN_NAMES: [ + ExchangeFunctionName.BatchFillOrders, + ExchangeFunctionName.BatchFillOrKillOrders, + ExchangeFunctionName.BatchFillOrdersNoThrow, + ], + MARKET_FILL_FN_NAMES: [ + ExchangeFunctionName.MarketBuyOrdersFillOrKill, + ExchangeFunctionName.MarketSellOrdersFillOrKill, + ExchangeFunctionName.MarketBuyOrdersNoThrow, + ExchangeFunctionName.MarketSellOrdersNoThrow, + ], + MATCH_ORDER_FN_NAMES: [ExchangeFunctionName.MatchOrders, ExchangeFunctionName.MatchOrdersWithMaximalFill], + BATCH_MATCH_ORDER_FN_NAMES: [ + ExchangeFunctionName.BatchMatchOrders, + ExchangeFunctionName.BatchMatchOrdersWithMaximalFill, + ], + CANCEL_ORDER_FN_NAMES: [ + ExchangeFunctionName.CancelOrder, + ExchangeFunctionName.BatchCancelOrders, + ExchangeFunctionName.CancelOrdersUpTo, + ], }; diff --git a/contracts/test-utils/src/index.ts b/contracts/test-utils/src/index.ts index eb8873e636..75d9f26840 100644 --- a/contracts/test-utils/src/index.ts +++ b/contracts/test-utils/src/index.ts @@ -56,6 +56,7 @@ export { Token, TokenBalances, TransactionDataParams, + ExchangeFunctionName, } from './types'; export { blockchainTests, BlockchainTestsEnvironment, describe } from './mocha_blockchain'; export { chaiSetup, expect } from './chai_setup'; diff --git a/contracts/test-utils/src/types.ts b/contracts/test-utils/src/types.ts index 01b445f184..2db80a1437 100644 --- a/contracts/test-utils/src/types.ts +++ b/contracts/test-utils/src/types.ts @@ -171,3 +171,33 @@ export interface FillEventArgs { } export type Numberish = BigNumber | string | number; + +export enum ExchangeFunctionName { + BatchCancelOrders = 'batchCancelOrders', + BatchExecuteTransactions = 'batchExecuteTransactions', + BatchFillOrKillOrders = 'batchFillOrKillOrders', + BatchFillOrders = 'batchFillOrders', + BatchFillOrdersNoThrow = 'batchFillOrdersNoThrow', + BatchMatchOrders = 'batchMatchOrders', + BatchMatchOrdersWithMaximalFill = 'batchMatchOrdersWithMaximalFill', + CancelOrder = 'cancelOrder', + CancelOrdersUpTo = 'cancelOrdersUpTo', + ExecuteTransaction = 'executeTransaction', + FillOrKillOrder = 'fillOrKillOrder', + FillOrder = 'fillOrder', + FillOrderNoThrow = 'fillOrderNoThrow', + MarketBuyOrdersNoThrow = 'marketBuyOrdersNoThrow', + MarketSellOrdersNoThrow = 'marketSellOrdersNoThrow', + MarketBuyOrdersFillOrKill = 'marketBuyOrdersFillOrKill', + MarketSellOrdersFillOrKill = 'marketSellOrdersFillOrKill', + MatchOrders = 'matchOrders', + MatchOrdersWithMaximalFill = 'matchOrdersWithMaximalFill', + PreSign = 'preSign', + RegisterAssetProxy = 'registerAssetProxy', + SetSignatureValidatorApproval = 'setSignatureValidatorApproval', + SimulateDispatchTransferFromCalls = 'simulateDispatchTransferFromCalls', + TransferOwnership = 'transferOwnership', + SetProtocolFeeMultiplier = 'setProtocolFeeMultiplier', + SetProtocolFeeCollectorAddress = 'setProtocolFeeCollectorAddress', + DetachProtocolFeeCollector = 'detachProtocolFeeCollector', +} diff --git a/contracts/test-utils/test/mocha_blockchain.ts b/contracts/test-utils/test/mocha_blockchain.ts index 15c4ea43e5..9e84f28524 100644 --- a/contracts/test-utils/test/mocha_blockchain.ts +++ b/contracts/test-utils/test/mocha_blockchain.ts @@ -1,7 +1,9 @@ import * as _ from 'lodash'; import * as process from 'process'; -import { blockchainTests, constants, describe, expect } from '../src'; +import { expect } from '../src/chai_setup'; +import { constants } from '../src/constants'; +import { blockchainTests, describe } from '../src/mocha_blockchain'; blockchainTests('mocha blockchain extensions', env => { describe('blockchainTests()', () => { diff --git a/contracts/test-utils/test/subtests/mocha_blockchain_1.ts b/contracts/test-utils/test/subtests/mocha_blockchain_1.ts index 8c2fb0aae0..1af57b7380 100644 --- a/contracts/test-utils/test/subtests/mocha_blockchain_1.ts +++ b/contracts/test-utils/test/subtests/mocha_blockchain_1.ts @@ -1,4 +1,5 @@ -import { blockchainTests, BlockchainTestsEnvironment, expect } from '../../src'; +import { expect } from '../../src/chai_setup'; +import { blockchainTests, BlockchainTestsEnvironment } from '../../src/mocha_blockchain'; // tslint:disable: no-default-export completed-docs export function append(env: BlockchainTestsEnvironment): void { diff --git a/contracts/test-utils/test/test_with_reference.ts b/contracts/test-utils/test/test_with_reference.ts index 7407bf0c93..45c577e452 100644 --- a/contracts/test-utils/test/test_with_reference.ts +++ b/contracts/test-utils/test/test_with_reference.ts @@ -1,6 +1,7 @@ import { AnyRevertError, StringRevertError } from '@0x/utils'; -import { expect } from '../src'; +import { expect } from '../src/chai_setup'; + import { testWithReferenceFuncAsync } from '../src/test_with_reference'; async function divAsync(x: number, y: number): Promise { diff --git a/contracts/tests/compiler.json b/contracts/tests/compiler.json index 6b74c612c2..6d739870f0 100644 --- a/contracts/tests/compiler.json +++ b/contracts/tests/compiler.json @@ -1,5 +1,5 @@ { - "artifactsDir": "./generated-artifacts", + "artifactsDir": "./test/generated-artifacts", "contractsDir": "./contracts", "useDockerisedSolc": false, "isOfflineMode": false, diff --git a/contracts/tests/package.json b/contracts/tests/package.json index 061c3b5d13..d91335b46b 100644 --- a/contracts/tests/package.json +++ b/contracts/tests/package.json @@ -1,6 +1,7 @@ { "name": "@0x/contracts-tests", - "version": "0.0.1", + "private": true, + "version": "0.0.2", "engines": { "node": ">=6.12" }, @@ -12,7 +13,7 @@ "scripts": { "build": "tsc -b", "build:ci": "yarn build", - "pre_build": "run-s compile contracts:gen generate_contract_wrappers", + "pre_build": "run-s compile contracts:gen generate_contract_wrappers contracts:copy", "test": "yarn run_mocha", "rebuild_and_test": "run-s build test", "test:coverage": "SOLIDITY_COVERAGE=true run-s build run_mocha coverage:report:text coverage:report:lcov", @@ -21,16 +22,17 @@ "run_mocha": "mocha --require source-map-support/register --require make-promises-safe 'lib/test/**/*.js' --timeout 100000 --bail --exit", "compile": "sol-compiler", "watch": "sol-compiler -w", - "clean": "shx rm -rf lib generated-artifacts generated-wrappers", - "generate_contract_wrappers": "abi-gen --abis ${npm_package_config_abis} --output generated-wrappers --backend ethers", - "lint": "tslint --format stylish --project . --exclude ./generated-wrappers/**/* --exclude ./generated-artifacts/**/* --exclude **/lib/**/* && yarn lint-contracts", - "fix": "tslint --fix --format stylish --project . --exclude ./generated-wrappers/**/* --exclude ./generated-artifacts/**/* --exclude **/lib/**/* && yarn lint-contracts", + "clean": "shx rm -rf lib test/generated-artifacts test/generated-wrappers generated-artifacts generated-wrappers", + "generate_contract_wrappers": "abi-gen --abis ${npm_package_config_abis} --output test/generated-wrappers --backend ethers", + "lint": "tslint --format stylish --project . --exclude ./generated-wrappers/**/* --exclude ./test/generated-wrappers/**/* --exclude ./generated-artifacts/**/* --exclude ./test/generated-artifacts/**/* --exclude **/lib/**/* && yarn lint-contracts", + "fix": "tslint --fix --format stylish --project . --exclude ./generated-wrappers/**/* --exclude ./test/generated-wrappers/**/* --exclude ./generated-artifacts/**/* --exclude ./test/generated-artifacts/**/* --exclude **/lib/**/* && yarn lint-contracts", "coverage:report:text": "istanbul report text", "coverage:report:html": "istanbul report html && open coverage/index.html", "profiler:report:html": "istanbul report html && open coverage/index.html", "coverage:report:lcov": "istanbul report lcov", "test:circleci": "yarn test", - "contracts:gen": "contracts-gen", + "contracts:gen": "contracts-gen generate", + "contracts:copy": "contracts-gen copy", "lint-contracts": "solhint -c ../.solhint.json contracts/**/**/**/**/*.sol", "compile:truffle": "truffle compile" }, @@ -48,29 +50,29 @@ }, "homepage": "https://github.com/0xProject/0x-monorepo/contracts/tests/README.md", "devDependencies": { - "@0x/abi-gen": "^4.3.0-beta.0", - "@0x/contracts-asset-proxy": "^2.3.0-beta.0", - "@0x/base-contract": "^5.5.0-beta.0", - "@0x/contracts-dev-utils": "^0.1.0-beta.0", - "@0x/contracts-erc1155": "^1.2.0-beta.0", - "@0x/contracts-erc20": "^2.3.0-beta.0", - "@0x/contracts-erc721": "^2.2.0-beta.0", - "@0x/contracts-exchange": "^2.2.0-beta.0", - "@0x/contracts-gen": "^1.1.0-beta.0", - "@0x/contracts-test-utils": "^3.2.0-beta.0", - "@0x/sol-compiler": "^3.2.0-beta.0", - "@0x/tslint-config": "^3.0.1", - "@0x/types": "^2.5.0-beta.0", - "@0x/typescript-typings": "^4.4.0-beta.0", - "@0x/utils": "^4.6.0-beta.0", - "@0x/web3-wrapper": "^6.1.0-beta.0", + "@0x/abi-gen": "^4.4.0-beta.1", + "@0x/base-contract": "^5.5.0-beta.1", + "@0x/contracts-asset-proxy": "^2.3.0-beta.1", + "@0x/contracts-dev-utils": "^0.1.0-beta.1", + "@0x/contracts-erc1155": "^1.2.0-beta.1", + "@0x/contracts-erc20": "^2.3.0-beta.1", + "@0x/contracts-erc721": "^2.2.0-beta.1", + "@0x/contracts-exchange": "^2.2.0-beta.1", + "@0x/contracts-gen": "^1.1.0-beta.1", + "@0x/contracts-test-utils": "^3.2.0-beta.1", + "@0x/sol-compiler": "^3.2.0-beta.1", + "@0x/tslint-config": "^3.1.0-beta.1", + "@0x/types": "^2.5.0-beta.1", + "@0x/typescript-typings": "^4.4.0-beta.1", + "@0x/utils": "^4.6.0-beta.1", + "@0x/web3-wrapper": "^6.1.0-beta.1", "@types/mocha": "^5.2.7", "@types/node": "*", "chai": "^4.0.1", "chai-as-promised": "^7.1.0", "chai-bignumber": "^3.0.0", "dirty-chai": "^2.0.1", - "ethereum-types": "^2.2.0-beta.0", + "ethereum-types": "^2.2.0-beta.1", "make-promises-safe": "^1.1.0", "mocha": "^6.2.0", "npm-run-all": "^4.1.2", diff --git a/contracts/tests/test/dev-utils/lib_transaction_decoder.ts b/contracts/tests/test/dev-utils/lib_transaction_decoder.ts index f0cbeb08fb..5e23eda5c8 100644 --- a/contracts/tests/test/dev-utils/lib_transaction_decoder.ts +++ b/contracts/tests/test/dev-utils/lib_transaction_decoder.ts @@ -1,4 +1,4 @@ -import { IExchangeContract } from '@0x/contracts-exchange'; +import { ExchangeContract } from '@0x/contracts-exchange'; import { chaiSetup, constants, provider, txDefaults, web3Wrapper } from '@0x/contracts-test-utils'; import { BlockchainLifecycle } from '@0x/dev-utils'; import { BigNumber } from '@0x/utils'; @@ -32,7 +32,7 @@ const signature = describe('LibTransactionDecoder', () => { let libTxDecoder: LibTransactionDecoderContract; - const exchangeInterface = new IExchangeContract(constants.NULL_ADDRESS, provider, txDefaults); + const exchangeInterface = new ExchangeContract(constants.NULL_ADDRESS, provider, txDefaults); before(async () => { await blockchainLifecycle.startAsync(); libTxDecoder = await LibTransactionDecoderContract.deployFrom0xArtifactAsync( diff --git a/contracts/tests/test/dev-utils/order_validation_utils.ts b/contracts/tests/test/dev-utils/order_validation_utils.ts index aca3010448..282040e9b7 100644 --- a/contracts/tests/test/dev-utils/order_validation_utils.ts +++ b/contracts/tests/test/dev-utils/order_validation_utils.ts @@ -8,7 +8,7 @@ import { } from '@0x/contracts-asset-proxy'; import { DummyERC20TokenContract } from '@0x/contracts-erc20'; import { DummyERC721TokenContract } from '@0x/contracts-erc721'; -import { artifacts as exchangeArtifacts, ExchangeContract, ExchangeWrapper } from '@0x/contracts-exchange'; +import { artifacts as exchangeArtifacts, ExchangeContract } from '@0x/contracts-exchange'; import { chaiSetup, constants, @@ -93,10 +93,10 @@ describe('OrderValidationUtils/OrderTransferSimulatorUtils', () => { txDefaults, artifacts, ); - const exchangeWrapper = new ExchangeWrapper(exchange); - await exchangeWrapper.registerAssetProxyAsync(erc20Proxy.address, owner); - await exchangeWrapper.registerAssetProxyAsync(erc721Proxy.address, owner); - await exchangeWrapper.registerAssetProxyAsync(multiAssetProxy.address, owner); + + await exchange.registerAssetProxy(erc20Proxy.address).awaitTransactionSuccessAsync({ from: owner }); + await exchange.registerAssetProxy(erc721Proxy.address).awaitTransactionSuccessAsync({ from: owner }); + await exchange.registerAssetProxy(multiAssetProxy.address).awaitTransactionSuccessAsync({ from: owner }); await erc20Proxy.addAuthorizedAddress(exchange.address).awaitTransactionSuccessAsync({ from: owner }); await erc721Proxy.addAuthorizedAddress(exchange.address).awaitTransactionSuccessAsync({ from: owner }); diff --git a/contracts/utils/.npmignore b/contracts/utils/.npmignore new file mode 100644 index 0000000000..bdf2b8acbe --- /dev/null +++ b/contracts/utils/.npmignore @@ -0,0 +1,10 @@ +# Blacklist all files +.* +* +# Whitelist lib +!lib/**/* +# Whitelist Solidity contracts +!contracts/src/**/* +# Blacklist tests in lib +/lib/test/* +# Package specific ignore diff --git a/contracts/utils/CHANGELOG.json b/contracts/utils/CHANGELOG.json index dc3f8d93a4..2310b0900a 100644 --- a/contracts/utils/CHANGELOG.json +++ b/contracts/utils/CHANGELOG.json @@ -1,4 +1,22 @@ [ + { + "version": "3.3.0-beta.2", + "changes": [ + { + "note": "Drastically reduced bundle size by adding .npmignore, only exporting specific artifacts/wrappers/utils", + "pr": 2330 + } + ] + }, + { + "version": "3.3.0-beta.1", + "changes": [ + { + "note": "Dependencies updated" + } + ], + "timestamp": 1573159180 + }, { "version": "3.3.0-beta.0", "changes": [ diff --git a/contracts/utils/CHANGELOG.md b/contracts/utils/CHANGELOG.md index 61bb5936f8..beabb232ed 100644 --- a/contracts/utils/CHANGELOG.md +++ b/contracts/utils/CHANGELOG.md @@ -5,6 +5,10 @@ Edit the package's CHANGELOG.json file only. CHANGELOG +## v3.3.0-beta.1 - _November 7, 2019_ + + * Dependencies updated + ## v3.3.0-beta.0 - _October 3, 2019_ * Change ReentrancyGuard implementation to cheaper one (#1699) @@ -22,6 +26,9 @@ CHANGELOG * Compile and export all contracts, artifacts, and wrappers by default (#2055) * Added LibFractions (#2118) * Introduce automatic normalization and some zero-value shortcuts in `LibFractions`. (#2155) + * Emit an event in `transferOwnership` (#2253) + * Removed `deepCopyBytes`, `popLast20Bytes`, `readBytesWithLength`, and `writeBytesWithLength` in `LibBytes`. (#2265) + * Replaced `SafeMath` with `LibSafeMath` (#2254) ## v3.2.4 - _September 17, 2019_ diff --git a/contracts/utils/compiler.json b/contracts/utils/compiler.json index 6b74c612c2..6d739870f0 100644 --- a/contracts/utils/compiler.json +++ b/contracts/utils/compiler.json @@ -1,5 +1,5 @@ { - "artifactsDir": "./generated-artifacts", + "artifactsDir": "./test/generated-artifacts", "contractsDir": "./contracts", "useDockerisedSolc": false, "isOfflineMode": false, diff --git a/contracts/utils/package.json b/contracts/utils/package.json index a1d1f697dd..2eb36bfbf5 100644 --- a/contracts/utils/package.json +++ b/contracts/utils/package.json @@ -1,6 +1,6 @@ { "name": "@0x/contracts-utils", - "version": "3.3.0-beta.0", + "version": "3.3.0-beta.1", "engines": { "node": ">=6.12" }, @@ -12,7 +12,7 @@ "scripts": { "build": "yarn pre_build && tsc -b", "build:ci": "yarn build", - "pre_build": "run-s compile contracts:gen generate_contract_wrappers", + "pre_build": "run-s compile contracts:gen generate_contract_wrappers contracts:copy", "test": "yarn run_mocha", "rebuild_and_test": "run-s build test", "test:coverage": "SOLIDITY_COVERAGE=true run-s build run_mocha coverage:report:text coverage:report:lcov", @@ -21,22 +21,24 @@ "run_mocha": "mocha --require source-map-support/register --require make-promises-safe 'lib/test/**/*.js' --timeout 100000 --bail --exit", "compile": "sol-compiler", "watch": "sol-compiler -w", - "clean": "shx rm -rf lib generated-artifacts generated-wrappers", - "generate_contract_wrappers": "abi-gen --debug --abis ${npm_package_config_abis} --output generated-wrappers --backend ethers", - "lint": "tslint --format stylish --project . --exclude ./generated-wrappers/**/* --exclude ./generated-artifacts/**/* --exclude **/lib/**/* && yarn lint-contracts", - "fix": "tslint --fix --format stylish --project . --exclude ./generated-wrappers/**/* --exclude ./generated-artifacts/**/* --exclude **/lib/**/* && yarn lint-contracts", + "clean": "shx rm -rf lib test/generated-artifacts test/generated-wrappers generated-artifacts generated-wrappers", + "generate_contract_wrappers": "abi-gen --debug --abis ${npm_package_config_abis} --output test/generated-wrappers --backend ethers", + "lint": "tslint --format stylish --project . --exclude ./generated-wrappers/**/* --exclude ./test/generated-wrappers/**/* --exclude ./generated-artifacts/**/* --exclude ./test/generated-artifacts/**/* --exclude **/lib/**/* && yarn lint-contracts", + "fix": "tslint --fix --format stylish --project . --exclude ./generated-wrappers/**/* --exclude ./test/generated-wrappers/**/* --exclude ./generated-artifacts/**/* --exclude ./test/generated-artifacts/**/* --exclude **/lib/**/* && yarn lint-contracts", "coverage:report:text": "istanbul report text", "coverage:report:html": "istanbul report html && open coverage/index.html", "profiler:report:html": "istanbul report html && open coverage/index.html", "coverage:report:lcov": "istanbul report lcov", "test:circleci": "yarn test", - "contracts:gen": "contracts-gen", + "contracts:gen": "contracts-gen generate", + "contracts:copy": "contracts-gen copy", "lint-contracts": "solhint -c ../.solhint.json contracts/**/**/**/**/*.sol", "compile:truffle": "truffle compile" }, "config": { + "publicInterfaceContracts": "Authorizable,IAuthorizable,IOwnable,LibAddress,LibAddressArray,LibAddressArrayRichErrors,LibAuthorizableRichErrors,LibBytes,LibBytesRichErrors,LibEIP1271,LibEIP712,LibFractions,LibOwnableRichErrors,LibReentrancyGuardRichErrors,LibRichErrors,LibSafeMath,LibSafeMathRichErrors,Ownable,ReentrancyGuard,Refundable", "abis:comment": "This list is auto-generated by contracts-gen. Don't edit manually.", - "abis": "./generated-artifacts/@(Authorizable|IAuthorizable|IOwnable|LibAddress|LibAddressArray|LibAddressArrayRichErrors|LibAuthorizableRichErrors|LibBytes|LibBytesRichErrors|LibEIP1271|LibEIP712|LibFractions|LibOwnableRichErrors|LibReentrancyGuardRichErrors|LibRichErrors|LibSafeMath|LibSafeMathRichErrors|Ownable|ReentrancyGuard|Refundable|TestLibAddress|TestLibAddressArray|TestLibBytes|TestLibEIP712|TestLibRichErrors|TestLibSafeMath|TestLogDecoding|TestLogDecodingDownstream|TestOwnable|TestReentrancyGuard|TestRefundable|TestRefundableReceiver).json" + "abis": "./test/generated-artifacts/@(Authorizable|IAuthorizable|IOwnable|LibAddress|LibAddressArray|LibAddressArrayRichErrors|LibAuthorizableRichErrors|LibBytes|LibBytesRichErrors|LibEIP1271|LibEIP712|LibFractions|LibOwnableRichErrors|LibReentrancyGuardRichErrors|LibRichErrors|LibSafeMath|LibSafeMathRichErrors|Ownable|ReentrancyGuard|Refundable|TestLibAddress|TestLibAddressArray|TestLibBytes|TestLibEIP712|TestLibRichErrors|TestLibSafeMath|TestLogDecoding|TestLogDecodingDownstream|TestOwnable|TestReentrancyGuard|TestRefundable|TestRefundableReceiver).json" }, "repository": { "type": "git", @@ -48,12 +50,15 @@ }, "homepage": "https://github.com/0xProject/0x-monorepo/contracts/utils/README.md", "devDependencies": { - "@0x/abi-gen": "^4.3.0-beta.0", - "@0x/contracts-gen": "^1.1.0-beta.0", - "@0x/contracts-test-utils": "^3.2.0-beta.0", - "@0x/dev-utils": "^2.4.0-beta.0", - "@0x/sol-compiler": "^3.2.0-beta.0", - "@0x/tslint-config": "^3.0.1", + "@0x/abi-gen": "^4.4.0-beta.1", + "@0x/contracts-gen": "^1.1.0-beta.1", + "@0x/contracts-test-utils": "^3.2.0-beta.1", + "@0x/dev-utils": "^2.4.0-beta.1", + "@0x/sol-compiler": "^3.2.0-beta.1", + "@0x/tslint-config": "^3.1.0-beta.1", + "@0x/order-utils": "^8.5.0-beta.1", + "@0x/types": "^2.5.0-beta.1", + "@0x/web3-wrapper": "^6.1.0-beta.1", "@types/bn.js": "^4.11.0", "@types/lodash": "4.14.104", "@types/mocha": "^5.2.7", @@ -62,6 +67,8 @@ "chai-as-promised": "^7.1.0", "chai-bignumber": "^3.0.0", "dirty-chai": "^2.0.1", + "ethereumjs-util": "^5.1.1", + "lodash": "^4.17.11", "make-promises-safe": "^1.1.0", "mocha": "^6.2.0", "npm-run-all": "^4.1.2", @@ -72,16 +79,11 @@ "typescript": "3.0.1" }, "dependencies": { - "@0x/base-contract": "^5.5.0-beta.0", - "@0x/order-utils": "^8.5.0-beta.0", - "@0x/types": "^2.5.0-beta.0", - "@0x/typescript-typings": "^4.4.0-beta.0", - "@0x/utils": "^4.6.0-beta.0", - "@0x/web3-wrapper": "^6.1.0-beta.0", + "@0x/base-contract": "^5.5.0-beta.1", + "@0x/typescript-typings": "^4.4.0-beta.1", + "@0x/utils": "^4.6.0-beta.1", "bn.js": "^4.11.8", - "ethereum-types": "^2.2.0-beta.0", - "ethereumjs-util": "^5.1.1", - "lodash": "^4.17.11" + "ethereum-types": "^2.2.0-beta.1" }, "publishConfig": { "access": "public" diff --git a/contracts/utils/src/artifacts.ts b/contracts/utils/src/artifacts.ts index 983f2951ed..9a894a4f0f 100644 --- a/contracts/utils/src/artifacts.ts +++ b/contracts/utils/src/artifacts.ts @@ -25,20 +25,10 @@ import * as LibSafeMathRichErrors from '../generated-artifacts/LibSafeMathRichEr import * as Ownable from '../generated-artifacts/Ownable.json'; import * as ReentrancyGuard from '../generated-artifacts/ReentrancyGuard.json'; import * as Refundable from '../generated-artifacts/Refundable.json'; -import * as TestLibAddress from '../generated-artifacts/TestLibAddress.json'; -import * as TestLibAddressArray from '../generated-artifacts/TestLibAddressArray.json'; -import * as TestLibBytes from '../generated-artifacts/TestLibBytes.json'; -import * as TestLibEIP712 from '../generated-artifacts/TestLibEIP712.json'; -import * as TestLibRichErrors from '../generated-artifacts/TestLibRichErrors.json'; -import * as TestLibSafeMath from '../generated-artifacts/TestLibSafeMath.json'; -import * as TestLogDecoding from '../generated-artifacts/TestLogDecoding.json'; -import * as TestLogDecodingDownstream from '../generated-artifacts/TestLogDecodingDownstream.json'; -import * as TestOwnable from '../generated-artifacts/TestOwnable.json'; -import * as TestReentrancyGuard from '../generated-artifacts/TestReentrancyGuard.json'; -import * as TestRefundable from '../generated-artifacts/TestRefundable.json'; -import * as TestRefundableReceiver from '../generated-artifacts/TestRefundableReceiver.json'; export const artifacts = { Authorizable: Authorizable as ContractArtifact, + IAuthorizable: IAuthorizable as ContractArtifact, + IOwnable: IOwnable as ContractArtifact, LibAddress: LibAddress as ContractArtifact, LibAddressArray: LibAddressArray as ContractArtifact, LibAddressArrayRichErrors: LibAddressArrayRichErrors as ContractArtifact, @@ -56,18 +46,4 @@ export const artifacts = { Ownable: Ownable as ContractArtifact, ReentrancyGuard: ReentrancyGuard as ContractArtifact, Refundable: Refundable as ContractArtifact, - IAuthorizable: IAuthorizable as ContractArtifact, - IOwnable: IOwnable as ContractArtifact, - TestLibAddress: TestLibAddress as ContractArtifact, - TestLibAddressArray: TestLibAddressArray as ContractArtifact, - TestLibBytes: TestLibBytes as ContractArtifact, - TestLibEIP712: TestLibEIP712 as ContractArtifact, - TestLibRichErrors: TestLibRichErrors as ContractArtifact, - TestLibSafeMath: TestLibSafeMath as ContractArtifact, - TestLogDecoding: TestLogDecoding as ContractArtifact, - TestLogDecodingDownstream: TestLogDecodingDownstream as ContractArtifact, - TestOwnable: TestOwnable as ContractArtifact, - TestReentrancyGuard: TestReentrancyGuard as ContractArtifact, - TestRefundable: TestRefundable as ContractArtifact, - TestRefundableReceiver: TestRefundableReceiver as ContractArtifact, }; diff --git a/contracts/utils/src/wrappers.ts b/contracts/utils/src/wrappers.ts index da266a03dd..fe1277f8e8 100644 --- a/contracts/utils/src/wrappers.ts +++ b/contracts/utils/src/wrappers.ts @@ -23,15 +23,3 @@ export * from '../generated-wrappers/lib_safe_math_rich_errors'; export * from '../generated-wrappers/ownable'; export * from '../generated-wrappers/reentrancy_guard'; export * from '../generated-wrappers/refundable'; -export * from '../generated-wrappers/test_lib_address'; -export * from '../generated-wrappers/test_lib_address_array'; -export * from '../generated-wrappers/test_lib_bytes'; -export * from '../generated-wrappers/test_lib_e_i_p712'; -export * from '../generated-wrappers/test_lib_rich_errors'; -export * from '../generated-wrappers/test_lib_safe_math'; -export * from '../generated-wrappers/test_log_decoding'; -export * from '../generated-wrappers/test_log_decoding_downstream'; -export * from '../generated-wrappers/test_ownable'; -export * from '../generated-wrappers/test_reentrancy_guard'; -export * from '../generated-wrappers/test_refundable'; -export * from '../generated-wrappers/test_refundable_receiver'; diff --git a/contracts/utils/test/artifacts.ts b/contracts/utils/test/artifacts.ts new file mode 100644 index 0000000000..724fb646f9 --- /dev/null +++ b/contracts/utils/test/artifacts.ts @@ -0,0 +1,73 @@ +/* + * ----------------------------------------------------------------------------- + * Warning: This file is auto-generated by contracts-gen. Don't edit manually. + * ----------------------------------------------------------------------------- + */ +import { ContractArtifact } from 'ethereum-types'; + +import * as Authorizable from '../test/generated-artifacts/Authorizable.json'; +import * as IAuthorizable from '../test/generated-artifacts/IAuthorizable.json'; +import * as IOwnable from '../test/generated-artifacts/IOwnable.json'; +import * as LibAddress from '../test/generated-artifacts/LibAddress.json'; +import * as LibAddressArray from '../test/generated-artifacts/LibAddressArray.json'; +import * as LibAddressArrayRichErrors from '../test/generated-artifacts/LibAddressArrayRichErrors.json'; +import * as LibAuthorizableRichErrors from '../test/generated-artifacts/LibAuthorizableRichErrors.json'; +import * as LibBytes from '../test/generated-artifacts/LibBytes.json'; +import * as LibBytesRichErrors from '../test/generated-artifacts/LibBytesRichErrors.json'; +import * as LibEIP1271 from '../test/generated-artifacts/LibEIP1271.json'; +import * as LibEIP712 from '../test/generated-artifacts/LibEIP712.json'; +import * as LibFractions from '../test/generated-artifacts/LibFractions.json'; +import * as LibOwnableRichErrors from '../test/generated-artifacts/LibOwnableRichErrors.json'; +import * as LibReentrancyGuardRichErrors from '../test/generated-artifacts/LibReentrancyGuardRichErrors.json'; +import * as LibRichErrors from '../test/generated-artifacts/LibRichErrors.json'; +import * as LibSafeMath from '../test/generated-artifacts/LibSafeMath.json'; +import * as LibSafeMathRichErrors from '../test/generated-artifacts/LibSafeMathRichErrors.json'; +import * as Ownable from '../test/generated-artifacts/Ownable.json'; +import * as ReentrancyGuard from '../test/generated-artifacts/ReentrancyGuard.json'; +import * as Refundable from '../test/generated-artifacts/Refundable.json'; +import * as TestLibAddress from '../test/generated-artifacts/TestLibAddress.json'; +import * as TestLibAddressArray from '../test/generated-artifacts/TestLibAddressArray.json'; +import * as TestLibBytes from '../test/generated-artifacts/TestLibBytes.json'; +import * as TestLibEIP712 from '../test/generated-artifacts/TestLibEIP712.json'; +import * as TestLibRichErrors from '../test/generated-artifacts/TestLibRichErrors.json'; +import * as TestLibSafeMath from '../test/generated-artifacts/TestLibSafeMath.json'; +import * as TestLogDecoding from '../test/generated-artifacts/TestLogDecoding.json'; +import * as TestLogDecodingDownstream from '../test/generated-artifacts/TestLogDecodingDownstream.json'; +import * as TestOwnable from '../test/generated-artifacts/TestOwnable.json'; +import * as TestReentrancyGuard from '../test/generated-artifacts/TestReentrancyGuard.json'; +import * as TestRefundable from '../test/generated-artifacts/TestRefundable.json'; +import * as TestRefundableReceiver from '../test/generated-artifacts/TestRefundableReceiver.json'; +export const artifacts = { + Authorizable: Authorizable as ContractArtifact, + LibAddress: LibAddress as ContractArtifact, + LibAddressArray: LibAddressArray as ContractArtifact, + LibAddressArrayRichErrors: LibAddressArrayRichErrors as ContractArtifact, + LibAuthorizableRichErrors: LibAuthorizableRichErrors as ContractArtifact, + LibBytes: LibBytes as ContractArtifact, + LibBytesRichErrors: LibBytesRichErrors as ContractArtifact, + LibEIP1271: LibEIP1271 as ContractArtifact, + LibEIP712: LibEIP712 as ContractArtifact, + LibFractions: LibFractions as ContractArtifact, + LibOwnableRichErrors: LibOwnableRichErrors as ContractArtifact, + LibReentrancyGuardRichErrors: LibReentrancyGuardRichErrors as ContractArtifact, + LibRichErrors: LibRichErrors as ContractArtifact, + LibSafeMath: LibSafeMath as ContractArtifact, + LibSafeMathRichErrors: LibSafeMathRichErrors as ContractArtifact, + Ownable: Ownable as ContractArtifact, + ReentrancyGuard: ReentrancyGuard as ContractArtifact, + Refundable: Refundable as ContractArtifact, + IAuthorizable: IAuthorizable as ContractArtifact, + IOwnable: IOwnable as ContractArtifact, + TestLibAddress: TestLibAddress as ContractArtifact, + TestLibAddressArray: TestLibAddressArray as ContractArtifact, + TestLibBytes: TestLibBytes as ContractArtifact, + TestLibEIP712: TestLibEIP712 as ContractArtifact, + TestLibRichErrors: TestLibRichErrors as ContractArtifact, + TestLibSafeMath: TestLibSafeMath as ContractArtifact, + TestLogDecoding: TestLogDecoding as ContractArtifact, + TestLogDecodingDownstream: TestLogDecodingDownstream as ContractArtifact, + TestOwnable: TestOwnable as ContractArtifact, + TestReentrancyGuard: TestReentrancyGuard as ContractArtifact, + TestRefundable: TestRefundable as ContractArtifact, + TestRefundableReceiver: TestRefundableReceiver as ContractArtifact, +}; diff --git a/contracts/utils/test/authorizable.ts b/contracts/utils/test/authorizable.ts index 8d11c67f4f..a7069200b8 100644 --- a/contracts/utils/test/authorizable.ts +++ b/contracts/utils/test/authorizable.ts @@ -4,7 +4,8 @@ import { AuthorizableRevertErrors, BigNumber, OwnableRevertErrors } from '@0x/ut import * as chai from 'chai'; import * as _ from 'lodash'; -import { artifacts, AuthorizableContract } from '../src'; +import { artifacts } from './artifacts'; +import { AuthorizableContract } from './wrappers'; chaiSetup.configure(); const expect = chai.expect; diff --git a/contracts/utils/test/lib_address.ts b/contracts/utils/test/lib_address.ts index 41a270befc..72a67f6a65 100644 --- a/contracts/utils/test/lib_address.ts +++ b/contracts/utils/test/lib_address.ts @@ -2,7 +2,8 @@ import { chaiSetup, provider, txDefaults, web3Wrapper } from '@0x/contracts-test import { BlockchainLifecycle } from '@0x/dev-utils'; import * as chai from 'chai'; -import { artifacts, TestLibAddressContract } from '../src'; +import { artifacts } from './artifacts'; +import { TestLibAddressContract } from './wrappers'; chaiSetup.configure(); const expect = chai.expect; diff --git a/contracts/utils/test/lib_address_array.ts b/contracts/utils/test/lib_address_array.ts index 25923aa4aa..df4116b661 100644 --- a/contracts/utils/test/lib_address_array.ts +++ b/contracts/utils/test/lib_address_array.ts @@ -4,7 +4,8 @@ import { BigNumber, LibAddressArrayRevertErrors } from '@0x/utils'; import * as chai from 'chai'; import * as _ from 'lodash'; -import { artifacts, TestLibAddressArrayContract } from '../src'; +import { artifacts } from './artifacts'; +import { TestLibAddressArrayContract } from './wrappers'; chaiSetup.configure(); const expect = chai.expect; diff --git a/contracts/utils/test/lib_bytes.ts b/contracts/utils/test/lib_bytes.ts index 90cec2d1ec..e8feeb61d0 100644 --- a/contracts/utils/test/lib_bytes.ts +++ b/contracts/utils/test/lib_bytes.ts @@ -4,7 +4,8 @@ import BN = require('bn.js'); import * as ethUtil from 'ethereumjs-util'; import * as _ from 'lodash'; -import { artifacts, TestLibBytesContract } from '../src'; +import { artifacts } from './artifacts'; +import { TestLibBytesContract } from './wrappers'; // BUG: Ideally we would use fromHex(memory).toString('hex') // https://github.com/Microsoft/TypeScript/issues/23155 diff --git a/contracts/utils/test/lib_eip712.ts b/contracts/utils/test/lib_eip712.ts index 41fcd134e5..0dc1c9b53f 100644 --- a/contracts/utils/test/lib_eip712.ts +++ b/contracts/utils/test/lib_eip712.ts @@ -5,7 +5,8 @@ import * as chai from 'chai'; import * as ethUtil from 'ethereumjs-util'; import * as _ from 'lodash'; -import { artifacts, TestLibEIP712Contract } from '../src'; +import { artifacts } from './artifacts'; +import { TestLibEIP712Contract } from './wrappers'; chaiSetup.configure(); const expect = chai.expect; diff --git a/contracts/utils/test/lib_rich_errors.ts b/contracts/utils/test/lib_rich_errors.ts index 3342c08d8a..d63fe8a959 100644 --- a/contracts/utils/test/lib_rich_errors.ts +++ b/contracts/utils/test/lib_rich_errors.ts @@ -1,7 +1,8 @@ import { blockchainTests, expect, hexRandom } from '@0x/contracts-test-utils'; import { coerceThrownErrorAsRevertError, StringRevertError } from '@0x/utils'; -import { artifacts, TestLibRichErrorsContract } from '../src'; +import { artifacts } from './artifacts'; +import { TestLibRichErrorsContract } from './wrappers'; blockchainTests('LibRichErrors', env => { let lib: TestLibRichErrorsContract; diff --git a/contracts/utils/test/lib_safe_math.ts b/contracts/utils/test/lib_safe_math.ts index ab68ea67e8..f6a34c391f 100644 --- a/contracts/utils/test/lib_safe_math.ts +++ b/contracts/utils/test/lib_safe_math.ts @@ -2,9 +2,11 @@ import { blockchainTests, constants, describe, expect } from '@0x/contracts-test import { BigNumber, SafeMathRevertErrors } from '@0x/utils'; import * as _ from 'lodash'; -import { artifacts, TestLibSafeMathContract } from '../src'; import * as ReferenceFunctions from '../src/reference_functions'; +import { artifacts } from './artifacts'; +import { TestLibSafeMathContract } from './wrappers'; + function toBigNumber(a: number | string): BigNumber { return new BigNumber(a); } diff --git a/contracts/utils/test/log_decoding.ts b/contracts/utils/test/log_decoding.ts index 507a0c5459..c73fb2a089 100644 --- a/contracts/utils/test/log_decoding.ts +++ b/contracts/utils/test/log_decoding.ts @@ -4,7 +4,8 @@ import { BigNumber } from '@0x/utils'; import * as chai from 'chai'; import { DecodedLogArgs, LogWithDecodedArgs } from 'ethereum-types'; -import { artifacts, TestLogDecodingContract } from '../src'; +import { artifacts } from './artifacts'; +import { TestLogDecodingContract } from './wrappers'; chaiSetup.configure(); const expect = chai.expect; diff --git a/contracts/utils/test/ownable.ts b/contracts/utils/test/ownable.ts index e21a7ae82b..471edcd9a5 100644 --- a/contracts/utils/test/ownable.ts +++ b/contracts/utils/test/ownable.ts @@ -1,7 +1,8 @@ import { blockchainTests, constants, expect, filterLogsToArguments } from '@0x/contracts-test-utils'; import { OwnableRevertErrors } from '@0x/utils'; -import { artifacts, IOwnableEvents, IOwnableOwnershipTransferredEventArgs, TestOwnableContract } from '../src'; +import { artifacts } from './artifacts'; +import { IOwnableEvents, IOwnableOwnershipTransferredEventArgs, TestOwnableContract } from './wrappers'; blockchainTests.resets('Ownable', env => { let ownable: TestOwnableContract; diff --git a/contracts/utils/test/reentrancy_guard.ts b/contracts/utils/test/reentrancy_guard.ts index c816bf550d..186549500f 100644 --- a/contracts/utils/test/reentrancy_guard.ts +++ b/contracts/utils/test/reentrancy_guard.ts @@ -4,7 +4,8 @@ import { ReentrancyGuardRevertErrors } from '@0x/utils'; import * as chai from 'chai'; import * as _ from 'lodash'; -import { artifacts, TestReentrancyGuardContract } from '../src'; +import { artifacts } from './artifacts'; +import { TestReentrancyGuardContract } from './wrappers'; chaiSetup.configure(); const expect = chai.expect; diff --git a/contracts/utils/test/refundable.ts b/contracts/utils/test/refundable.ts index d474f139d2..2a6ce57df6 100644 --- a/contracts/utils/test/refundable.ts +++ b/contracts/utils/test/refundable.ts @@ -2,7 +2,8 @@ import { blockchainTests, constants } from '@0x/contracts-test-utils'; import { BigNumber } from '@0x/utils'; import * as _ from 'lodash'; -import { artifacts, TestRefundableContract, TestRefundableReceiverContract } from '../src'; +import { artifacts } from './artifacts'; +import { TestRefundableContract, TestRefundableReceiverContract } from './wrappers'; blockchainTests('Refundable', env => { let refundable: TestRefundableContract; diff --git a/contracts/utils/test/wrappers.ts b/contracts/utils/test/wrappers.ts new file mode 100644 index 0000000000..a0397108f0 --- /dev/null +++ b/contracts/utils/test/wrappers.ts @@ -0,0 +1,37 @@ +/* + * ----------------------------------------------------------------------------- + * Warning: This file is auto-generated by contracts-gen. Don't edit manually. + * ----------------------------------------------------------------------------- + */ +export * from '../test/generated-wrappers/authorizable'; +export * from '../test/generated-wrappers/i_authorizable'; +export * from '../test/generated-wrappers/i_ownable'; +export * from '../test/generated-wrappers/lib_address'; +export * from '../test/generated-wrappers/lib_address_array'; +export * from '../test/generated-wrappers/lib_address_array_rich_errors'; +export * from '../test/generated-wrappers/lib_authorizable_rich_errors'; +export * from '../test/generated-wrappers/lib_bytes'; +export * from '../test/generated-wrappers/lib_bytes_rich_errors'; +export * from '../test/generated-wrappers/lib_e_i_p1271'; +export * from '../test/generated-wrappers/lib_e_i_p712'; +export * from '../test/generated-wrappers/lib_fractions'; +export * from '../test/generated-wrappers/lib_ownable_rich_errors'; +export * from '../test/generated-wrappers/lib_reentrancy_guard_rich_errors'; +export * from '../test/generated-wrappers/lib_rich_errors'; +export * from '../test/generated-wrappers/lib_safe_math'; +export * from '../test/generated-wrappers/lib_safe_math_rich_errors'; +export * from '../test/generated-wrappers/ownable'; +export * from '../test/generated-wrappers/reentrancy_guard'; +export * from '../test/generated-wrappers/refundable'; +export * from '../test/generated-wrappers/test_lib_address'; +export * from '../test/generated-wrappers/test_lib_address_array'; +export * from '../test/generated-wrappers/test_lib_bytes'; +export * from '../test/generated-wrappers/test_lib_e_i_p712'; +export * from '../test/generated-wrappers/test_lib_rich_errors'; +export * from '../test/generated-wrappers/test_lib_safe_math'; +export * from '../test/generated-wrappers/test_log_decoding'; +export * from '../test/generated-wrappers/test_log_decoding_downstream'; +export * from '../test/generated-wrappers/test_ownable'; +export * from '../test/generated-wrappers/test_reentrancy_guard'; +export * from '../test/generated-wrappers/test_refundable'; +export * from '../test/generated-wrappers/test_refundable_receiver'; diff --git a/contracts/utils/tsconfig.json b/contracts/utils/tsconfig.json index 58803aad69..5f15b82479 100644 --- a/contracts/utils/tsconfig.json +++ b/contracts/utils/tsconfig.json @@ -23,18 +23,38 @@ "generated-artifacts/Ownable.json", "generated-artifacts/ReentrancyGuard.json", "generated-artifacts/Refundable.json", - "generated-artifacts/TestLibAddress.json", - "generated-artifacts/TestLibAddressArray.json", - "generated-artifacts/TestLibBytes.json", - "generated-artifacts/TestLibEIP712.json", - "generated-artifacts/TestLibRichErrors.json", - "generated-artifacts/TestLibSafeMath.json", - "generated-artifacts/TestLogDecoding.json", - "generated-artifacts/TestLogDecodingDownstream.json", - "generated-artifacts/TestOwnable.json", - "generated-artifacts/TestReentrancyGuard.json", - "generated-artifacts/TestRefundable.json", - "generated-artifacts/TestRefundableReceiver.json" + "test/generated-artifacts/Authorizable.json", + "test/generated-artifacts/IAuthorizable.json", + "test/generated-artifacts/IOwnable.json", + "test/generated-artifacts/LibAddress.json", + "test/generated-artifacts/LibAddressArray.json", + "test/generated-artifacts/LibAddressArrayRichErrors.json", + "test/generated-artifacts/LibAuthorizableRichErrors.json", + "test/generated-artifacts/LibBytes.json", + "test/generated-artifacts/LibBytesRichErrors.json", + "test/generated-artifacts/LibEIP1271.json", + "test/generated-artifacts/LibEIP712.json", + "test/generated-artifacts/LibFractions.json", + "test/generated-artifacts/LibOwnableRichErrors.json", + "test/generated-artifacts/LibReentrancyGuardRichErrors.json", + "test/generated-artifacts/LibRichErrors.json", + "test/generated-artifacts/LibSafeMath.json", + "test/generated-artifacts/LibSafeMathRichErrors.json", + "test/generated-artifacts/Ownable.json", + "test/generated-artifacts/ReentrancyGuard.json", + "test/generated-artifacts/Refundable.json", + "test/generated-artifacts/TestLibAddress.json", + "test/generated-artifacts/TestLibAddressArray.json", + "test/generated-artifacts/TestLibBytes.json", + "test/generated-artifacts/TestLibEIP712.json", + "test/generated-artifacts/TestLibRichErrors.json", + "test/generated-artifacts/TestLibSafeMath.json", + "test/generated-artifacts/TestLogDecoding.json", + "test/generated-artifacts/TestLogDecodingDownstream.json", + "test/generated-artifacts/TestOwnable.json", + "test/generated-artifacts/TestReentrancyGuard.json", + "test/generated-artifacts/TestRefundable.json", + "test/generated-artifacts/TestRefundableReceiver.json" ], "exclude": ["./deploy/solc/solc_bin"] } diff --git a/package.json b/package.json index fb1fcef0e3..8061a86a46 100644 --- a/package.json +++ b/package.json @@ -40,7 +40,7 @@ "remove_node_modules": "lerna clean --yes; rm -rf node_modules", "rebuild": "run-s clean build", "test": "wsrun test $PKG --fast-exit --serial --exclude-missing --exclude @0x/asset-swapper --exclude @0x/orderbook --exclude @0x/contracts-extensions", - "test:contracts": "wsrun test -p ${npm_package_config_contractsPackages} -c --fast-exit --serial --exclude-missing", + "test:contracts": "wsrun test -p ${npm_package_config_contractsPackages} -c --fast-exit --exclude-missing", "generate_doc": "node ./packages/monorepo-scripts/lib/doc_generate.js", "upload_md_docs": "aws s3 rm --recursive s3://docs-markdown; wsrun s3:sync_md_docs --exclude-missing", "diff_md_docs:ci": "wsrun diff_docs --exclude-missing", diff --git a/packages/0x.js/CHANGELOG.json b/packages/0x.js/CHANGELOG.json index a0f5cef38c..f2fb2fc77a 100644 --- a/packages/0x.js/CHANGELOG.json +++ b/packages/0x.js/CHANGELOG.json @@ -1,4 +1,17 @@ [ + { + "version": "8.0.0-beta.1", + "changes": [ + { + "note": "Remove ZRXToken contract wrapper", + "pr": 2324 + }, + { + "note": "ContractWrappers no longer exposes `erc20Proxy`, `erc721Proxy` and `dutchAuction` wrappers", + "pr": 2324 + } + ] + }, { "version": "8.0.0-beta.0", "changes": [ @@ -6,7 +19,8 @@ "note": "Exported intefaces changed: from getContractAddressesForNetworkOrThrow to getContractAddressesForChainOrThrow, from NetworkId to ChainId, from ContractNetworks to ContractChains, and from ContractNetworkData to ContractChainData.", "pr": 2313 } - ] + ], + "timestamp": 1573159180 }, { "version": "7.1.0-beta.0", diff --git a/packages/0x.js/CHANGELOG.md b/packages/0x.js/CHANGELOG.md index 3a42df6373..7e1d2e1d2f 100644 --- a/packages/0x.js/CHANGELOG.md +++ b/packages/0x.js/CHANGELOG.md @@ -5,6 +5,10 @@ Edit the package's CHANGELOG.json file only. CHANGELOG +## v8.0.0-beta.0 - _November 7, 2019_ + + * Exported intefaces changed: from getContractAddressesForNetworkOrThrow to getContractAddressesForChainOrThrow, from NetworkId to ChainId, from ContractNetworks to ContractChains, and from ContractNetworkData to ContractChainData. (#2313) + ## v7.1.0-beta.0 - _October 3, 2019_ * Updated to work with 0x v3 diff --git a/packages/0x.js/docs/reference.mdx b/packages/0x.js/docs/reference.mdx index 038b1c97aa..39dbd2c72d 100644 --- a/packages/0x.js/docs/reference.mdx +++ b/packages/0x.js/docs/reference.mdx @@ -1,15 +1,60 @@ -# Class: DevUtilsContract +# Interface: JSONRPCRequestPayloadWithMethod + + +## Properties + +### id + +• **id**: *number* + + + +Defined in ethereum-types/lib/index.d.ts:267 + +___ + +### jsonrpc + +• **jsonrpc**: *string* + + + +Defined in ethereum-types/lib/index.d.ts:268 + +___ + +### method + +• **method**: *string* + +*Overrides void* + +*Defined in [subproviders/src/types.ts:136](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/subproviders/src/types.ts#L136)* + +___ + +### params + +• **params**: *any[]* + + + +Defined in ethereum-types/lib/index.d.ts:265 + +
+ +# Class: ERC20TokenContract ## Constructors -\+ **new DevUtilsContract**(`address`: string, `supportedProvider`: [SupportedProvider](#supportedprovider), `txDefaults?`: `Partial`, `logDecodeDependencies?`: undefined | object, `deployedBytecode`: string | undefined): *[DevUtilsContract](#class-devutilscontract)* +\+ **new ERC20TokenContract**(`address`: string, `supportedProvider`: [SupportedProvider](#supportedprovider), `txDefaults?`: `Partial`, `logDecodeDependencies?`: undefined | object, `deployedBytecode`: string | undefined): *[ERC20TokenContract](#class-erc20tokencontract)* *Overrides void* -*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:5507](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L5507)* +*Defined in [abi-gen-wrappers/src/generated-wrappers/erc20_token.ts:951](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/erc20_token.ts#L951)* **Parameters:** @@ -19,19 +64,29 @@ Name | Type | Default | `supportedProvider` | [SupportedProvider](#supportedprovider) | - | `txDefaults?` | `Partial` | - | `logDecodeDependencies?` | undefined \| object | - | -`deployedBytecode` | string \| undefined | DevUtilsContract.deployedBytecode | +`deployedBytecode` | string \| undefined | ERC20TokenContract.deployedBytecode | -**Returns:** *[DevUtilsContract](#class-devutilscontract)* +**Returns:** *[ERC20TokenContract](#class-erc20tokencontract)* ## Properties +### `Optional` _deployedBytecodeIfExists + +• **_deployedBytecodeIfExists**? : *`Buffer`* + + + +Defined in base-contract/lib/src/index.d.ts:32 + +___ + ### abi • **abi**: *[ContractAbi](#contractabi)* -Defined in base-contract/lib/src/index.d.ts:27 +Defined in base-contract/lib/src/index.d.ts:28 ___ @@ -41,7 +96,7 @@ ___ -Defined in base-contract/lib/src/index.d.ts:28 +Defined in base-contract/lib/src/index.d.ts:29 ___ @@ -51,7 +106,7 @@ Args -Defined in base-contract/lib/src/index.d.ts:30 +Defined in base-contract/lib/src/index.d.ts:31 ___ @@ -61,16783 +116,5482 @@ ___ -Defined in base-contract/lib/src/index.d.ts:29 - -___ - -### `Static` deployedBytecode - -▪ **deployedBytecode**: *string* = "0x608060405234801561001057600080fd5b506004361061025c5760003560e01c80639a7e752611610145578063cafd3a07116100bd578063d3d862d11161008c578063e4e6e7da11610071578063e4e6e7da1461063a578063e77286eb1461065b578063ee4f5a941461067d5761025c565b8063d3d862d114610605578063e25cabf7146106185761025c565b8063cafd3a071461059e578063d001c5dc146105bf578063d186037f146105d2578063d3637905146105e55761025c565b8063a6627e9f11610114578063b43cffe1116100f9578063b43cffe114610548578063bbb2dcf61461055b578063bc03f9641461057d5761025c565b8063a6627e9f14610512578063acaedc74146105255761025c565b80639a7e7526146104985780639eadc835146104bb578063a0901e51146104df578063a5cd62ba146104f25761025c565b8063459be5e2116101d85780636f83188e116101a75780637b66ad341161018c5780637b66ad34146104515780637d727512146104725780638f4ce479146104855761025c565b80636f83188e1461040d5780637914b2ec146104305761025c565b8063459be5e21461038a5780634dfdac20146103ab578063590aa875146103cb57806365129042146103eb5761025c565b80632322cf761161022f578063327d305411610214578063327d30541461033257806332aae3ad146103455780633db6dc61146103675761025c565b80632322cf76146102f0578063314853ff146103105761025c565b806302d0aec31461026157806304a5618a1461028b5780630d7b7d76146102ad578063165979e1146102ce575b600080fd5b61027461026f3660046149dd565b61069f565b6040516102829291906152e4565b60405180910390f35b61029e6102993660046149dd565b6106fb565b60405161028293929190615387565b6102c06102bb366004614565565b6107a9565b604051610282929190615292565b6102e16102dc3660046149dd565b6107cb565b604051610282939291906154c2565b6103036102fe366004614565565b610828565b6040516102829190615731565b61032361031e3660046149dd565b610850565b604051610282939291906152b9565b6102c06103403660046149dd565b610897565b6103586103533660046149dd565b6108d9565b60405161028293929190615438565b61037a6103753660046149dd565b61092c565b6040516102829493929190615258565b61039d6103983660046149dd565b610976565b6040516102829291906154ab565b6103be6103b936600461448c565b6109cc565b60405161028291906151f2565b6103de6103d936600461435d565b610a4f565b60405161028291906153e7565b6103fe6103f93660046149dd565b610ad3565b60405161028293929190614fdf565b61042061041b3660046149dd565b610b0d565b6040516102829493929190615535565b61044361043e3660046149dd565b61164e565b604051610282929190615301565b61046461045f3660046149dd565b611686565b604051610282929190614fc5565b610303610480366004614565565b6116be565b6104436104933660046149dd565b611dd3565b6104ab6104a63660046149dd565b611e63565b60405161028294939291906154f1565b6104ce6104c93660046149dd565b611ec4565b604051610282959493929190615324565b6103be6104ed3660046145d4565b611f6f565b61050561050036600461463a565b611fe8565b60405161028291906150f9565b6103de6105203660046145a9565b6120ac565b6105386105333660046149dd565b612133565b6040516102829493929190615055565b6103de6105563660046144da565b61216f565b61056e6105693660046149dd565b6121fc565b604051610282939291906153b2565b61059061058b3660046149dd565b6122a9565b6040516102829291906152a0565b6105b16105ac3660046149dd565b6122e2565b604051610282929190615528565b6103be6105cd36600461448c565b612330565b6103036105e0366004614565565b61239e565b6105f86105f3366004614a94565b6129e1565b60405161028291906154dd565b6103de6106133660046147e2565b612f7e565b61062b6106263660046146be565b612fb6565b60405161028293929190615146565b61064d61064836600461448c565b6130ee565b604051610282929190615233565b61066e610669366004614aec565b613107565b604051610282939291906156d5565b61069061068b3660046149dd565b613341565b60405161028293929190615481565b6000806106b3836106ae61337e565b6133a2565b60006106cc60048551866133fc9092919063ffffffff16565b8060200190516106df9190810190614990565b909350905060ff811660068111156106f357fe5b915050915091565b6000808061070f848263ffffffff61343f16565b92506001600160e01b031983167f02571792000000000000000000000000000000000000000000000000000000001461077d576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016107749061569e565b60405180910390fd5b61078e84601063ffffffff61347316565b91506107a184602463ffffffff6134a616565b929491935050565b6000806107b684846116be565b91506107c2848461239e565b90509250929050565b60008060006107dc846106ae6134b2565b60006107f560048651876133fc9092919063ffffffff16565b8060200190516108089190810190614d20565b9094509250905060ff8116600281111561081e57fe5b9350509193909250565b600080600061083785856107a9565b9150915061084582826134d6565b925050505b92915050565b6000606080610861846106ae6134ec565b835161087790859060049063ffffffff6133fc16565b80602001905161088a9190810190614930565b9196909550909350915050565b6000806108a6836106ae613510565b82516108bc90849060049063ffffffff6133fc16565b8060200190516108cf91908101906148d2565b9094909350915050565b60008060606108ea846106ae613534565b600061090360048651876133fc9092919063ffffffff16565b8060200190516109169190810190614cd4565b9094509250905060ff8116600181111561081e57fe5b60008060608061093e856106ae613558565b845161095490869060049063ffffffff6133fc16565b806020019051610967919081019061488e565b92989197509550909350915050565b600080610985836106ae61357c565b600061099e60048551866133fc9092919063ffffffff16565b8060200190516109b19190810190614c07565b9250905060ff811660038111156109c457fe5b925050915091565b6060600082519050806040519080825280602002602001820160405280156109fe578160200160208202803883390190505b50915060005b818114610a4757610a2885858381518110610a1b57fe5b602002602001015161239e565b838281518110610a3457fe5b6020908102919091010152600101610a04565b505092915050565b6040516060907ff47261b00000000000000000000000000000000000000000000000000000000090610a85908490602401614fb1565b60408051601f198184030181529190526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff166001600160e01b0319909316929092179091529050919050565b6000806000610ae4846106ae6135a0565b8351610afa90859060049063ffffffff6133fc16565b80602001905161088a91908101906143b2565b60608080806000610b24868263ffffffff61343f16565b90506001600160e01b031981167fdedfc1f1000000000000000000000000000000000000000000000000000000001415610b95576040518060400160405280601181526020017f626174636843616e63656c4f72646572730000000000000000000000000000008152509450611124565b6001600160e01b031981167f9694a402000000000000000000000000000000000000000000000000000000001415610c04576040518060400160405280600f81526020017f626174636846696c6c4f726465727300000000000000000000000000000000008152509450611124565b6001600160e01b031981167f8ea8dfe4000000000000000000000000000000000000000000000000000000001415610c73576040518060400160405280601681526020017f626174636846696c6c4f72646572734e6f5468726f77000000000000000000008152509450611124565b6001600160e01b031981167fbeee2e14000000000000000000000000000000000000000000000000000000001415610ce2576040518060400160405280601581526020017f626174636846696c6c4f724b696c6c4f726465727300000000000000000000008152509450611124565b6001600160e01b031981167f2da62987000000000000000000000000000000000000000000000000000000001415610d51576040518060400160405280600b81526020017f63616e63656c4f726465720000000000000000000000000000000000000000008152509450611124565b6001600160e01b031981167f9b44d556000000000000000000000000000000000000000000000000000000001415610dc0576040518060400160405280600981526020017f66696c6c4f7264657200000000000000000000000000000000000000000000008152509450611124565b6001600160e01b031981167fe14b58c4000000000000000000000000000000000000000000000000000000001415610e2f576040518060400160405280600f81526020017f66696c6c4f724b696c6c4f7264657200000000000000000000000000000000008152509450611124565b6001600160e01b031981167f78d29ac1000000000000000000000000000000000000000000000000000000001415610e9e576040518060400160405280601681526020017f6d61726b65744275794f72646572734e6f5468726f77000000000000000000008152509450611124565b6001600160e01b031981167f369da099000000000000000000000000000000000000000000000000000000001415610f0d576040518060400160405280601781526020017f6d61726b657453656c6c4f72646572734e6f5468726f770000000000000000008152509450611124565b6001600160e01b031981167f8bc8efb3000000000000000000000000000000000000000000000000000000001415610f7c576040518060400160405280601981526020017f6d61726b65744275794f726465727346696c6c4f724b696c6c000000000000008152509450611124565b6001600160e01b031981167fa6c3bf33000000000000000000000000000000000000000000000000000000001415610feb576040518060400160405280601a81526020017f6d61726b657453656c6c4f726465727346696c6c4f724b696c6c0000000000008152509450611124565b6001600160e01b031981167f88ec79fb00000000000000000000000000000000000000000000000000000000141561105a576040518060400160405280600b81526020017f6d617463684f72646572730000000000000000000000000000000000000000008152509450611124565b6001600160e01b031981167f4f9559b10000000000000000000000000000000000000000000000000000000014806110bb57506001600160e01b031981167f2280c91000000000000000000000000000000000000000000000000000000000145b156110f2576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161077490615630565b6040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610774906155f9565b6001600160e01b031981167fdedfc1f10000000000000000000000000000000000000000000000000000000014156111c957855161116c90879060049063ffffffff6135c416565b80602001905161117f9190810190614607565b604080516000808252602082019092529195505b50604080516000808252602082019092529194506111c1565b60608152602001906001900390816111ac5790505b509150611646565b6001600160e01b031981167fbeee2e1400000000000000000000000000000000000000000000000000000000148061122a57506001600160e01b031981167f9694a40200000000000000000000000000000000000000000000000000000000145b8061125e57506001600160e01b031981167f8ea8dfe400000000000000000000000000000000000000000000000000000000145b156112785761126c86613644565b91955093509150611646565b6001600160e01b031981167f2da629870000000000000000000000000000000000000000000000000000000014156113605760408051600180825281830190925290816020015b6112c7613c90565b8152602001906001900390816112bf57505086519094506112f290879060049063ffffffff6135c416565b8060200190516113059190810190614a61565b8460008151811061131257fe5b602002602001018190525060006040519080825280602002602001820160405280156111935781602001602082028038833901905050604080516000808252602082019092529194506111c1565b6001600160e01b031981167fe14b58c40000000000000000000000000000000000000000000000000000000014806113c157506001600160e01b031981167f9b44d55600000000000000000000000000000000000000000000000000000000145b156113cf5761126c86613673565b6001600160e01b031981167f78d29ac100000000000000000000000000000000000000000000000000000000148061143057506001600160e01b031981167f369da09900000000000000000000000000000000000000000000000000000000145b8061146457506001600160e01b031981167f8bc8efb300000000000000000000000000000000000000000000000000000000145b8061149857506001600160e01b031981167fa6c3bf3300000000000000000000000000000000000000000000000000000000145b156114a65761126c8661376d565b6001600160e01b031981167f88ec79fb000000000000000000000000000000000000000000000000000000001415611646576114e0613c90565b6114e8613c90565b60608061150260048b518c6135c49092919063ffffffff16565b8060200190516115159190810190614b43565b604080516002808252606082019092529498509296509094509250816020015b61153d613c90565b815260200190600190039081611535579050509750838860008151811061156057fe5b6020026020010181905250828860018151811061157957fe5b602090810291909101015260408051600280825260608201909252908160200160208202803883390190505096508360a00151876000815181106115b957fe5b6020026020010181815250508260a00151876001815181106115d757fe5b60209081029190910101526040805160028082526060820190925290816020015b60608152602001906001900390816115f8579050509550818660008151811061161d57fe5b6020026020010181905250808660018151811061163657fe5b6020026020010181905250505050505b509193509193565b60008061165d836106ae6137e1565b825161167390849060049063ffffffff6133fc16565b8060200190516108cf91908101906149b4565b600080611695836106ae613805565b82516116ab90849060049063ffffffff6133fc16565b8060200190516108cf9190810190614379565b6000806116d1838263ffffffff61343f16565b90506001600160e01b031981167ff47261b000000000000000000000000000000000000000000000000000000000141561184657600061171884601063ffffffff61347316565b6040519091506060907f70a082310000000000000000000000000000000000000000000000000000000090611751908890602401614fb1565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050905060006060836001600160a01b0316836040516117cc9190614f95565b600060405180830381855afa9150503d8060008114611807576040519150601f19603f3d011682016040523d82523d6000602084013e61180c565b606091505b509150915081801561181f575080516020145b61182a57600061183b565b61183b81600063ffffffff6134a616565b955050505050611dcc565b6001600160e01b031981167f025717920000000000000000000000000000000000000000000000000000000014156119e157600080611884856106fb565b6040519194509250606091507f6352211e00000000000000000000000000000000000000000000000000000000906118c0908490602401615731565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050905060006060846001600160a01b03168360405161193b9190614f95565b600060405180830381855afa9150503d8060008114611976576040519150601f19603f3d011682016040523d82523d6000602084013e61197b565b606091505b50915091506000828015611990575081516020145b61199b5760006119ac565b6119ac82600c63ffffffff61347316565b9050896001600160a01b0316816001600160a01b0316146119ce5760006119d1565b60015b60ff169750505050505050611dcc565b6001600160e01b031981167fa7cb5fb7000000000000000000000000000000000000000000000000000000001415611bc4576000606080611a2186611ec4565b5081519296509094509250905060005b818114611bba5783516060907efdd58e00000000000000000000000000000000000000000000000000000000908b90879085908110611a6c57fe5b6020026020010151604051602401611a85929190615089565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050905060006060876001600160a01b031683604051611b009190614f95565b600060405180830381855afa9150503d8060008114611b3b576040519150601f19603f3d011682016040523d82523d6000602084013e611b40565b606091505b50915091506000828015611b55575081516020145b611b60576000611b71565b611b7182600063ffffffff6134a616565b90506000878681518110611b8157fe5b60200260200101518281611b9157fe5b0490508b811080611ba057508b155b15611ba957809b505b505060019093019250611a31915050565b5050505050611dcc565b6001600160e01b031981167fc339d10a000000000000000000000000000000000000000000000000000000001415611d15576040516060907fa85e59e40000000000000000000000000000000000000000000000000000000090611c33908690600090819081906024016153fa565b60408051601f198184030181529181526020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff166001600160e01b03199094169390931790925260045491519092506000916001600160a01b031690611c9a908490614f95565b600060405180830381855afa9150503d8060008114611cd5576040519150601f19603f3d011682016040523d82523d6000602084013e611cda565b606091505b5050905080611cea576000611d0c565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff5b93505050611dcc565b6001600160e01b031981167f94cfcdd7000000000000000000000000000000000000000000000000000000001415611dcc57606080611d53856121fc565b80519194509250905060005b818114611dc7576000611d8589858481518110611d7857fe5b60200260200101516116be565b90506000858381518110611d9557fe5b60200260200101518281611da557fe5b04905087811080611db4575087155b15611dbd578097505b5050600101611d5f565b505050505b5092915050565b600080611de6838263ffffffff61343f16565b91506001600160e01b031982167ff47261b00000000000000000000000000000000000000000000000000000000014611e4b576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016107749061569e565b611e5c83601063ffffffff61347316565b9050915091565b60008060006060611e76856106ae613829565b6000611e8f60048751886133fc9092919063ffffffff16565b806020019051611ea29190810190614c76565b91965094509250905060ff81166006811115611eba57fe5b9450509193509193565b60008060608080611edb868563ffffffff61343f16565b94506001600160e01b031985167fa7cb5fb70000000000000000000000000000000000000000000000000000000014611f40576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016107749061569e565b505050506024828101516044840151606485015160848601519496929591820184019490820184019391010190565b6060808251604051908082528060200260200182016040528015611f9d578160200160208202803883390190505b50905060005b83518114611dcc57838181518110611fb757fe5b60200260200101516001600160a01b031631828281518110611fd557fe5b6020908102919091010152600101611fa3565b60606000845190508060405190808252806020026020018201604052801561201a578160200160208202803883390190505b50915060005b8181146120a25761206b86828151811061203657fe5b602002602001015186838151811061204a57fe5b602002602001015186848151811061205e57fe5b60200260200101516129e1565b83828151811061207757fe5b6020026020010190600481111561208a57fe5b9081600481111561209757fe5b905250600101612020565b50505b9392505050565b6040516060907f0257179200000000000000000000000000000000000000000000000000000000906120e49085908590602401615089565b60408051601f198184030181529190526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff166001600160e01b031990931692909217909152905092915050565b60006060806060612146856106ae61384d565b845161215c90869060049063ffffffff6133fc16565b80602001905161096791908101906143f4565b6040516060907fa7cb5fb700000000000000000000000000000000000000000000000000000000906121ab908790879087908790602401615003565b60408051601f198184030181529190526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff166001600160e01b0319909316929092179091529050949350505050565b6000606080612211848463ffffffff61343f16565b92506001600160e01b031983167f94cfcdd70000000000000000000000000000000000000000000000000000000014612276576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016107749061569e565b835161228c90859060049063ffffffff6135c416565b80602001905161229f9190810190614817565b9395909450915050565b600060606122b9836106ae613871565b82516122cf90849060049063ffffffff6133fc16565b8060200190516108cf91908101906148f5565b6000806122f1836106ae613895565b600061230a60048551866133fc9092919063ffffffff16565b80602001905161231d9190810190614c07565b9250905060ff811660018111156109c457fe5b606060008251905080604051908082528060200260200182016040528015612362578160200160208202803883390190505b50915060005b818114610a475761237f85858381518110611d7857fe5b83828151811061238b57fe5b6020908102919091010152600101612368565b6000806123b1838263ffffffff61343f16565b90506001600160e01b031981167f94cfcdd7000000000000000000000000000000000000000000000000000000001415612463576060806123f1856121fc565b80519194509250905060005b81811461245857600061241689858481518110610a1b57fe5b9050600085838151811061242657fe5b6020026020010151828161243657fe5b04905087811080612445575087155b1561244e578097505b50506001016123fd565b5061084a9350505050565b6001600160e01b031981167ff47261b00000000000000000000000000000000000000000000000000000000014156124ee5760006124a884601063ffffffff61347316565b6001546040519192506060917fdd62ed3e00000000000000000000000000000000000000000000000000000000916117519189916001600160a01b031690602401614fc5565b6001600160e01b031981167f025717920000000000000000000000000000000000000000000000000000000014156127de5760008061252c856106fb565b600254604051929550909350606092507fe985e9c50000000000000000000000000000000000000000000000000000000091612578918a916001600160a01b0390911690602401614fc5565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050905060006060846001600160a01b0316836040516125f39190614f95565b600060405180830381855afa9150503d806000811461262e576040519150601f19603f3d011682016040523d82523d6000602084013e612633565b606091505b509150915081158061264757508051602014155b80612663575061265e81600063ffffffff6134a616565b600114155b156127b1576040516060907f081812fc000000000000000000000000000000000000000000000000000000009061269e908790602401615731565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff83818316178352505050509050856001600160a01b0316816040516127159190614f95565b600060405180830381855afa9150503d8060008114612750576040519150601f19603f3d011682016040523d82523d6000602084013e612755565b606091505b509093509150828015612769575081516020145b801561279857506002546001600160a01b031661278d83600c63ffffffff61347316565b6001600160a01b0316145b6127a35760006127a6565b60015b60ff16975050611bba565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff96505050505050611dcc565b6001600160e01b031981167fa7cb5fb700000000000000000000000000000000000000000000000000000000141561298657600061281b84611ec4565b5050600354604051929450606093507fe985e9c50000000000000000000000000000000000000000000000000000000092612865925089916001600160a01b031690602401614fc5565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050905060006060836001600160a01b0316836040516128e09190614f95565b600060405180830381855afa9150503d806000811461291b576040519150601f19603f3d011682016040523d82523d6000602084013e612920565b606091505b5091509150818015612933575080516020145b801561294f575061294b81600063ffffffff6134a616565b6001145b61295a57600061183b565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff955050505050611dcc565b6001600160e01b031981167fc339d10a000000000000000000000000000000000000000000000000000000001415611dcc57507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff9392505050565b60006129eb613d23565b612a7c8584600560009054906101000a90046001600160a01b03166001600160a01b0316631ce4c78b6040518163ffffffff1660e01b815260040160206040518083038186803b158015612a3e57600080fd5b505afa158015612a52573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250612a769190810190614bef565b3a6138b9565b60408051600480825260a0820190925291925060609190816020015b6060815260200190600190039081612a9857505060408051600480825260a082019092529192506060919060208201608080388339505060408051600480825260a08201909252929350606092915060208201608080388339505060408051600480825260a0820190925292935060609291506020820160808038833901905050905088610160015184600081518110612b2e57fe5b60200260200101819052508783600081518110612b4757fe5b60200260200101906001600160a01b031690816001600160a01b031681525050886000015182600081518110612b7957fe5b60200260200101906001600160a01b031690816001600160a01b0316815250508681600081518110612ba757fe5b60200260200101818152505088610140015184600181518110612bc657fe5b6020026020010181905250886000015183600181518110612be357fe5b60200260200101906001600160a01b031690816001600160a01b0316815250508782600181518110612c1157fe5b60200260200101906001600160a01b031690816001600160a01b031681525050846000015181600181518110612c4357fe5b602002602001018181525050886101a0015184600281518110612c6257fe5b60200260200101819052508783600281518110612c7b57fe5b60200260200101906001600160a01b031690816001600160a01b031681525050886040015182600281518110612cad57fe5b60200260200101906001600160a01b031690816001600160a01b031681525050846060015181600281518110612cdf57fe5b60200260200101818152505088610180015184600381518110612cfe57fe5b6020026020010181905250886000015183600381518110612d1b57fe5b60200260200101906001600160a01b031690816001600160a01b031681525050886040015182600381518110612d4d57fe5b60200260200101906001600160a01b031690816001600160a01b031681525050846040015181600381518110612d7f57fe5b60209081029190910101526040516060907fb04fbddd0000000000000000000000000000000000000000000000000000000090612dc69087908790879087906024016150a2565b60408051601f198184030181529181526020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff166001600160e01b03199094169390931790925260055491519092506060916001600160a01b031690612e2d908490614f95565b6000604051808303816000865af19150503d8060008114612e6a576040519150601f19603f3d011682016040523d82523d6000602084013e612e6f565b606091505b50915060009050612e86828263ffffffff61343f16565b9050612e90613534565b6001600160e01b031982811691161415612ed2576000612eaf836108d9565b5091505060ff81166004811115612ec257fe5b99505050505050505050506120a5565b612eda6134ec565b6001600160e01b031982811691161415612f0d576000612ef983610850565b509091505060ff81166004811115612ec257fe5b815160208301207ff43f26ea5a94b478394a975e856464913dc1a8a1ca70939d974aa7c238aa0ce01415612f4c576004985050505050505050506120a5565b6040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610774906155c2565b6040516060907f94cfcdd700000000000000000000000000000000000000000000000000000000906120e49085908590602401615205565b606080606060008551905080604051908082528060200260200182016040528015612ffb57816020015b612fe8613d52565b815260200190600190039081612fe05790505b50935080604051908082528060200260200182016040528015613028578160200160208202803883390190505b50925080604051908082528060200260200182016040528015613055578160200160208202803883390190505b50915060005b8181146130e55761309287828151811061307157fe5b602002602001015187838151811061308557fe5b6020026020010151613107565b87518890859081106130a057fe5b602002602001018785815181106130b357fe5b602002602001018786815181106130c657fe5b931515602094850291909101909301929092529190525260010161305b565b50509250925092565b6060806130fb8484612330565b91506107c284846109cc565b61310f613d52565b600080546040517f9d3fa4b900000000000000000000000000000000000000000000000000000000815282916001600160a01b031690639d3fa4b9906131599088906004016156f9565b60606040518083038186803b15801561317157600080fd5b505afa158015613185573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052506131a99190810190614a10565b85516000546040517fa12dcc6f00000000000000000000000000000000000000000000000000000000815292955090916001600160a01b039091169063a12dcc6f906131fb908990899060040161570c565b60206040518083038186803b15801561321357600080fd5b505afa158015613227573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525061324b919081019061486e565b9150600061325e82886101400151610828565b60a088015160c08901516101808a01516101408b01519394509192909160009161328d9163ffffffff61393016565b156132ba576132b3846132ad848d6080015161395590919063ffffffff16565b85613971565b9050613313565b816132ce576132b3848b6080015185613971565b60006132df868c6101800151610828565b905060006132f2868d6080015187613971565b90506000613301838688613971565b905061330d82826134d6565b93505050505b61333361332d89604001518561399b90919063ffffffff16565b826134d6565b965050505050509250925092565b6000806000613352846106ae6139ba565b600061336b60048651876133fc9092919063ffffffff16565b8060200190516108089190810190614c34565b7ffdb6ca8d0000000000000000000000000000000000000000000000000000000090565b60006133af83600061343f565b90506001600160e01b0319808216908316146133f7576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161077490615667565b505050565b60608183111561341a5761341a613415600085856139de565b613a4d565b83518211156134335761343361341560018487516139de565b50819003910190815290565b600081600401835110156134605761346061341560038551856004016139de565b5001602001516001600160e01b03191690565b600081601401835110156134945761349461341560048551856014016139de565b5001601401516001600160a01b031690565b60006120a58383613a55565b7f18e4b1410000000000000000000000000000000000000000000000000000000090565b60008183106134e557816120a5565b5090919050565b7f4678472b0000000000000000000000000000000000000000000000000000000090565b7fb6555d6f0000000000000000000000000000000000000000000000000000000090565b7f488219a60000000000000000000000000000000000000000000000000000000090565b7f1b8388f70000000000000000000000000000000000000000000000000000000090565b7fe94a7ed00000000000000000000000000000000000000000000000000000000090565b7f4ad312750000000000000000000000000000000000000000000000000000000090565b6060818311156135dd576135dd613415600085856139de565b83518211156135f6576135f661341560018487516139de565b8282036040519080825280601f01601f191660200182016040528015613623576020820181803883390190505b5090506120a561363282613a7f565b8461363c87613a7f565b018351613a85565b606080606061366060048551866135c49092919063ffffffff16565b80602001905161088a9190810190614715565b60408051600180825281830190925260609182918291816020015b613696613c90565b81526020019060019003908161368e5750506040805160018082528183019092529194506020808301908038833901905050604080516001808252818301909252919350816020015b60608152602001906001900390816136df575050845190915061370c90859060049063ffffffff6135c416565b80602001905161371f9190810190614b9c565b8560008151811061372c57fe5b602002602001018560008151811061374057fe5b602002602001018560008151811061375457fe5b6020908102919091010192909252919052529193909250565b6040805160018082528183019092526060918291829160208083019080388339505085519193506137a99186915060049063ffffffff6135c416565b8060200190516137bc919081019061478f565b845185906000906137c957fe5b60209081029190910101919091529095929450925050565b7f11c7b7200000000000000000000000000000000000000000000000000000000090565b7fa15c0d060000000000000000000000000000000000000000000000000000000090565b7f7e5a23180000000000000000000000000000000000000000000000000000000090565b7f5bd0428d0000000000000000000000000000000000000000000000000000000090565b7f20d11f610000000000000000000000000000000000000000000000000000000090565b7ff59851840000000000000000000000000000000000000000000000000000000090565b6138c1613d23565b6020810184905260a085015160808601516138dd918691613b2a565b815260a085015160c08601516138f4918691613b2a565b604082015260a085015160e086015161390e918691613b2a565b6060820152613923828463ffffffff613b5e16565b6080820152949350505050565b6000815183511480156120a55750508051602091820120825192909101919091201490565b6000828201838110156120a5576120a561341560008686613b8b565b600061399383613987868563ffffffff613b5e16565b9063ffffffff613baa16565b949350505050565b6000828211156139b4576139b461341560028585613b8b565b50900390565b7fe53c76c80000000000000000000000000000000000000000000000000000000090565b6060632800659560e01b8484846040516024016139fd939291906154cf565b60408051601f198184030181529190526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff166001600160e01b03199093169290921790915290509392505050565b805160208201fd5b60008160200183511015613a7657613a7661341560058551856020016139de565b50016020015190565b60200190565b6020811015613aaf576001816020036101000a0380198351168185511680821786525050506133f7565b82821415613abc576133f7565b82821115613af65760208103905080820181840181515b82851015613aee578451865260209586019590940193613ad3565b9052506133f7565b60208103905080820181840183515b81861215613b215782518252601f199283019290910190613b05565b85525050505050565b6000613b37848484613bd4565b15613b4a57613b4a613415858585613c3a565b61399383613987868563ffffffff613b5e16565b600082613b6d5750600061084a565b82820282848281613b7a57fe5b04146120a5576120a5613415600186865b606063e946c1bb60e01b8484846040516024016139fd93929190615460565b600081613bc057613bc061341560038585613b8b565b6000828481613bcb57fe5b04949350505050565b600082613be657613be6613415613c59565b811580613bf1575083155b15613bfe575060006120a5565b60008380613c0857fe5b8584099050613c1d858463ffffffff613b5e16565b613c2f826103e863ffffffff613b5e16565b101595945050505050565b606063339f3de260e01b8484846040516024016139fd9392919061573a565b60408051808201909152600481527fa791837c00000000000000000000000000000000000000000000000000000000602082015290565b604051806101c0016040528060006001600160a01b0316815260200160006001600160a01b0316815260200160006001600160a01b0316815260200160006001600160a01b03168152602001600081526020016000815260200160008152602001600081526020016000815260200160008152602001606081526020016060815260200160608152602001606081525090565b6040518060a0016040528060008152602001600081526020016000815260200160008152602001600081525090565b604080516060810182526000808252602082018190529181019190915290565b803561084a81615816565b805161084a81615816565b600082601f830112613d98578081fd5b8135613dab613da682615777565b615750565b818152915060208083019084810181840286018201871015613dcc57600080fd5b60005b84811015611dc7578135613de281615816565b84529282019290820190600101613dcf565b600082601f830112613e04578081fd5b8151613e12613da682615777565b8181529150602080830190840160005b83811015613e4f57613e3a8760208451890101614074565b83526020928301929190910190600101613e22565b5050505092915050565b600082601f830112613e69578081fd5b8135613e77613da682615777565b8181529150602080830190840160005b83811015613e4f57613e9f8760208435890101614026565b83526020928301929190910190600101613e87565b600082601f830112613ec4578081fd5b8151613ed2613da682615777565b8181529150602080830190840160005b83811015613e4f57613efa8760208451890101614209565b83526020928301929190910190600101613ee2565b600082601f830112613f1f578081fd5b8135613f2d613da682615777565b8181529150602080830190840160005b83811015613e4f57613f5587602084358901016140ba565b83526020928301929190910190600101613f3d565b600082601f830112613f7a578081fd5b8151613f88613da682615777565b818152915060208083019084810181840286018201871015613fa957600080fd5b60005b84811015611dc757815184529282019290820190600101613fac565b600082601f830112613fd8578081fd5b8135613fe6613da682615777565b81815291506020808301908481018184028601820187101561400757600080fd5b60005b84811015611dc75781358452928201929082019060010161400a565b600082601f830112614036578081fd5b8135614044613da682615797565b915080825283602082850101111561405b57600080fd5b8060208401602084013760009082016020015292915050565b600082601f830112614084578081fd5b8151614092613da682615797565b91508082528360208285010111156140a957600080fd5b611dcc8160208401602086016157bb565b60006101c08083850312156140cd578182fd5b6140d681615750565b9150506140e38383613d72565b81526140f28360208401613d72565b60208201526141048360408401613d72565b60408201526141168360608401613d72565b60608201526080820135608082015260a082013560a082015260c082013560c082015260e082013560e08201526101008083013581830152506101208083013581830152506101408083013567ffffffffffffffff8082111561417857600080fd5b61418486838701614026565b838501526101609250828501359150808211156141a057600080fd5b6141ac86838701614026565b838501526101809250828501359150808211156141c857600080fd5b6141d486838701614026565b838501526101a09250828501359150808211156141f057600080fd5b506141fd85828601614026565b82840152505092915050565b60006101c080838503121561421c578182fd5b61422581615750565b9150506142328383613d7d565b81526142418360208401613d7d565b60208201526142538360408401613d7d565b60408201526142658360608401613d7d565b60608201526080820151608082015260a082015160a082015260c082015160c082015260e082015160e08201526101008083015181830152506101208083015181830152506101408083015167ffffffffffffffff808211156142c757600080fd5b6142d386838701614074565b838501526101609250828501519150808211156142ef57600080fd5b6142fb86838701614074565b8385015261018092508285015191508082111561431757600080fd5b61432386838701614074565b838501526101a092508285015191508082111561433f57600080fd5b506141fd85828601614074565b805160ff8116811461084a57600080fd5b60006020828403121561436e578081fd5b81356120a581615816565b6000806040838503121561438b578081fd5b825161439681615816565b60208401519092506143a781615816565b809150509250929050565b6000806000606084860312156143c6578081fd5b83516143d181615816565b60208501519093506143e281615816565b80925050604084015190509250925092565b60008060008060808587031215614409578182fd5b845161441481615816565b602086015190945067ffffffffffffffff80821115614431578384fd5b61443d88838901614074565b94506040870151915080821115614452578384fd5b61445e88838901614074565b93506060870151915080821115614473578283fd5b5061448087828801614074565b91505092959194509250565b6000806040838503121561449e578182fd5b82356144a981615816565b9150602083013567ffffffffffffffff8111156144c4578182fd5b6144d085828601613e59565b9150509250929050565b600080600080608085870312156144ef578182fd5b84356144fa81615816565b9350602085013567ffffffffffffffff80821115614516578384fd5b61452288838901613fc8565b94506040870135915080821115614537578384fd5b61454388838901613fc8565b93506060870135915080821115614558578283fd5b5061448087828801614026565b60008060408385031215614577578182fd5b823561458281615816565b9150602083013567ffffffffffffffff81111561459d578182fd5b6144d085828601614026565b600080604083850312156145bb578182fd5b82356145c681615816565b946020939093013593505050565b6000602082840312156145e5578081fd5b813567ffffffffffffffff8111156145fb578182fd5b61399384828501613d88565b600060208284031215614618578081fd5b815167ffffffffffffffff81111561462e578182fd5b61399384828501613eb4565b60008060006060848603121561464e578081fd5b833567ffffffffffffffff80821115614665578283fd5b61467187838801613f0f565b94506020860135915080821115614686578283fd5b61469287838801613d88565b935060408601359150808211156146a7578283fd5b506146b486828701613fc8565b9150509250925092565b600080604083850312156146d0578182fd5b823567ffffffffffffffff808211156146e7578384fd5b6146f386838701613f0f565b93506020850135915080821115614708578283fd5b506144d085828601613e59565b600080600060608486031215614729578081fd5b835167ffffffffffffffff80821115614740578283fd5b61474c87838801613eb4565b94506020860151915080821115614761578283fd5b61476d87838801613f6a565b93506040860151915080821115614782578283fd5b506146b486828701613df4565b6000806000606084860312156147a3578081fd5b835167ffffffffffffffff808211156147ba578283fd5b6147c687838801613eb4565b9450602086015193506040860151915080821115614782578283fd5b600080604083850312156147f4578182fd5b823567ffffffffffffffff8082111561480b578384fd5b6146f386838701613fc8565b60008060408385031215614829578182fd5b825167ffffffffffffffff80821115614840578384fd5b61484c86838701613f6a565b93506020850151915080821115614861578283fd5b506144d085828601613df4565b60006020828403121561487f578081fd5b815180151581146120a5578182fd5b600080600080608085870312156148a3578182fd5b8451935060208501516148b581615816565b604086015190935067ffffffffffffffff80821115614452578384fd5b600080604083850312156148e4578182fd5b505080516020909101519092909150565b60008060408385031215614907578182fd5b82519150602083015167ffffffffffffffff811115614924578182fd5b6144d085828601614074565b600080600060608486031215614944578081fd5b83519250602084015167ffffffffffffffff80821115614962578283fd5b61496e87838801614074565b93506040860151915080821115614983578283fd5b506146b486828701614074565b600080604083850312156149a2578182fd5b8251915060208301516143a78161582b565b600080604083850312156149c6578182fd5b82516001600160e01b031981168114614396578283fd5b6000602082840312156149ee578081fd5b813567ffffffffffffffff811115614a04578182fd5b61399384828501614026565b60006060828403128015614a22578182fd5b8015614a2c578182fd5b50614a376060615750565b8251614a428161582b565b8152602083810151908201526040928301519281019290925250919050565b600060208284031215614a72578081fd5b815167ffffffffffffffff811115614a88578182fd5b61399384828501614209565b600080600060608486031215614aa8578081fd5b833567ffffffffffffffff811115614abe578182fd5b614aca868287016140ba565b9350506020840135614adb81615816565b929592945050506040919091013590565b60008060408385031215614afe578182fd5b823567ffffffffffffffff80821115614b15578384fd5b614b21868387016140ba565b93506020850135915080821115614b36578283fd5b506144d085828601614026565b60008060008060808587031215614b58578182fd5b845167ffffffffffffffff80821115614b6f578384fd5b614b7b88838901614209565b95506020870151915080821115614b90578384fd5b61443d88838901614209565b600080600060608486031215614bb0578081fd5b835167ffffffffffffffff80821115614bc7578283fd5b614bd387838801614209565b9450602086015193506040860151915080821115614983578283fd5b600060208284031215614c00578081fd5b5051919050565b60008060408385031215614c19578182fd5b8251614c248161582b565b6020939093015192949293505050565b600080600060608486031215614c48578081fd5b8351614c538161582b565b602085015160408601519194509250614c6b81615816565b809150509250925092565b60008060008060808587031215614c8b578182fd5b614c95868661434c565b9350602085015192506040850151614cac81615816565b606086015190925067ffffffffffffffff811115614cc8578182fd5b61448087828801614074565b600080600060608486031215614ce8578081fd5b614cf2858561434c565b925060208401519150604084015167ffffffffffffffff811115614d14578182fd5b6146b486828701614074565b600080600060608486031215614d34578081fd5b614d3e858561434c565b925060208401519150604084015190509250925092565b1515815260200190565b6000614d6b8383614e78565b505060600190565b6001600160a01b03169052565b6000815180845260208401935060208301825b82811015614dba5781516001600160a01b0316865260209586019590910190600101614d93565b5093949350505050565b600081518084526020840180819550602083028101915060208501845b84811015614e0f578284038852614df9848351614e4c565b6020988901989094509190910190600101614de1565b50919695505050505050565b6000815180845260208401935060208301825b82811015614dba578151865260209586019590910190600101614e2e565b60008151808452614e648160208601602086016157bb565b601f01601f19169290920160200192915050565b805160ff16825260208082015190830152604090810151910152565b60006101c0614ea4848451614d73565b6020830151614eb66020860182614d73565b506040830151614ec96040860182614d73565b506060830151614edc6060860182614d73565b506080830151608085015260a083015160a085015260c083015160c085015260e083015160e0850152610100808401518186015250610120808401518186015250610140808401518282870152614f3583870182614e4c565b91505061016091508184015185820383870152614f528282614e4c565b925050506101808084015185830382870152614f6e8382614e4c565b9150506101a091508184015185820383870152614f8b8282614e4c565b9695505050505050565b60008251614fa78184602087016157bb565b9190910192915050565b6001600160a01b0391909116815260200190565b6001600160a01b0392831681529116602082015260400190565b6001600160a01b039384168152919092166020820152604081019190915260600190565b60006001600160a01b0386168252608060208301526150256080830186614e1b565b82810360408401526150378186614e1b565b83810360608501526150498186614e4c565b98975050505050505050565b60006001600160a01b0386168252608060208301526150776080830186614e4c565b82810360408401526150378186614e4c565b6001600160a01b03929092168252602082015260400190565b6000608082526150b56080830187614dc4565b82810360208401526150c78187614d80565b83810360408501526150d98187614d80565b91505082810360608401526150ee8185614e1b565b979650505050505050565b602080825282518282018190526000918401906040840190835b8181101561513b5783516005811061512757fe5b835260209384019390920191600101615113565b509095945050505050565b6000606082016060835280865161515d8184615731565b9150602088019250835b8181101561518b5761517a838551614d5f565b602094909401939250600101615167565b5050838103602085015261519f8187614e1b565b91505082810360408401528084516151b78184615731565b9150602086019250835b818110156151e5576151d4838551614d55565b6020949094019392506001016151c1565b5090979650505050505050565b6000602082526120a56020830184614e1b565b6000604082526152186040830185614e1b565b828103602084015261522a8185614dc4565b95945050505050565b6000604082526152466040830185614e1b565b828103602084015261522a8185614e1b565b60008582526001600160a01b0385166020830152608060408301526152806080830185614e4c565b82810360608401526150ee8185614e4c565b918252602082015260400190565b6000838252604060208301526139936040830184614e4c565b6000848252606060208301526152d26060830185614e4c565b8281036040840152614f8b8185614e4c565b828152604081016152f48361580c565b8260208301529392505050565b6001600160e01b03199290921682526001600160a01b0316602082015260400190565b60006001600160e01b0319871682526001600160a01b038616602083015260a0604083015261535660a0830186614e1b565b82810360608401526153688186614e1b565b838103608085015261537a8186614e4c565b9998505050505050505050565b6001600160e01b03199390931683526001600160a01b03919091166020830152604082015260600190565b60006001600160e01b031985168252606060208301526153d56060830185614e1b565b8281036040840152614f8b8185614dc4565b6000602082526120a56020830184614e4c565b60006080825261540d6080830187614e4c565b6001600160a01b03958616602084015293909416604082015260ff9190911660609091015292915050565b6000615443856157eb565b8482528360208301526060604083015261522a6060830184614e4c565b6060810161546d856157f8565b938152602081019290925260409091015290565b6060810161548e85615802565b93815260208101929092526001600160a01b031660409091015290565b604081016154b8846157f8565b9281526020015290565b6060810161546d85615802565b606081016008851061546d57fe5b60208101600583106154eb57fe5b91905290565b60006154fc8661580c565b8582528460208301526001600160a01b038416604083015260806060830152614f8b6080830184614e4c565b604081016154b8846157eb565b6000608082526155486080830187614e4c565b602083820381850152818751808452828401915082838202850101838a01865b8381101561559657601f19878403018552615584838351614e94565b94860194925090850190600101615568565b505086810360408801526155aa818a614e1b565b94505050505082810360608401526150ee8185614dc4565b60208082526013908201527f554e4b4e4f574e5f52455455524e5f4441544100000000000000000000000000604082015260600190565b60208082526019908201527f554e4b4e4f574e5f46554e4354494f4e5f53454c4543544f5200000000000000604082015260600190565b6020808252600d908201527f554e494d504c454d454e54454400000000000000000000000000000000000000604082015260600190565b6020808252600c908201527f4241445f53454c4543544f520000000000000000000000000000000000000000604082015260600190565b6020808252600e908201527f57524f4e475f50524f58595f4944000000000000000000000000000000000000604082015260600190565b60a081016156e38286614e78565b8360608301528215156080830152949350505050565b6000602082526120a56020830184614e94565b60006040825261571f6040830185614e94565b828103602084015261522a8185614e4c565b90815260200190565b9283526020830191909152604082015260600190565b60405181810167ffffffffffffffff8111828210171561576f57600080fd5b604052919050565b600067ffffffffffffffff82111561578d578081fd5b5060209081020190565b600067ffffffffffffffff8211156157ad578081fd5b50601f01601f191660200190565b60005b838110156157d65781810151838201526020016157be565b838111156157e5576000848401525b50505050565b600281106157f557fe5b50565b600481106157f557fe5b600381106157f557fe5b600781106157f557fe5b6001600160a01b03811681146157f557600080fd5b60ff811681146157f557600080fdfea365627a7a723158200ea049525ebc74d73f3bf7858c601bd21168267b0dfb4abbdb7787cfd7233a2c6c6578706572696d656e74616cf564736f6c634300050c0040" - -*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:31](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L31)* +Defined in base-contract/lib/src/index.d.ts:30 ## Methods -### evmExecAsync - -▸ **evmExecAsync**(`input`: `Buffer`): *`Promise`* - +### allowance +▸ **allowance**(`_owner`: string, `_spender`: string): *`ContractFunctionObj`* -Defined in base-contract/lib/src/index.d.ts:42 +*Defined in [abi-gen-wrappers/src/generated-wrappers/erc20_token.ts:828](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/erc20_token.ts#L828)* **Parameters:** Name | Type | ------ | ------ | -`input` | `Buffer` | +`_owner` | string | +`_spender` | string | -**Returns:** *`Promise`* +**Returns:** *`ContractFunctionObj`* ___ -### `Static` ABI - -▸ **ABI**(): *[ContractAbi](#contractabi)* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:4241](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L4241)* - -**Returns:** *[ContractAbi](#contractabi)* - -The contract ABI - -___ +### approve -### `Static` deployAsync +▸ **approve**(`_spender`: string, `_value`: `BigNumber`): *`ContractTxFunctionObj`* -▸ **deployAsync**(`bytecode`: string, `abi`: [ContractAbi](#contractabi), `supportedProvider`: [SupportedProvider](#supportedprovider), `txDefaults`: `Partial`, `logDecodeDependencies`: object, `_exchange`: string): *`Promise`* +*Defined in [abi-gen-wrappers/src/generated-wrappers/erc20_token.ts:347](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/erc20_token.ts#L347)* -*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:4194](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L4194)* +`msg.sender` approves `_spender` to spend `_value` tokens **Parameters:** -Name | Type | ------- | ------ | -`bytecode` | string | -`abi` | [ContractAbi](#contractabi) | -`supportedProvider` | [SupportedProvider](#supportedprovider) | -`txDefaults` | `Partial` | -`logDecodeDependencies` | object | -`_exchange` | string | +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:** *`Promise`* +**Returns:** *`ContractTxFunctionObj`* + +Always true if the call has enough gas to complete execution ___ -### `Static` deployFrom0xArtifactAsync +### balanceOf -▸ **deployFrom0xArtifactAsync**(`artifact`: `ContractArtifact` | `SimpleContractArtifact`, `supportedProvider`: [SupportedProvider](#supportedprovider), `txDefaults`: `Partial`, `logDecodeDependencies`: object, `_exchange`: string): *`Promise`* +▸ **balanceOf**(`_owner`: string): *`ContractFunctionObj`* + +*Defined in [abi-gen-wrappers/src/generated-wrappers/erc20_token.ts:653](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/erc20_token.ts#L653)* -*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:4161](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L4161)* +Query the balance of owner **Parameters:** -Name | Type | ------- | ------ | -`artifact` | `ContractArtifact` \| `SimpleContractArtifact` | -`supportedProvider` | [SupportedProvider](#supportedprovider) | -`txDefaults` | `Partial` | -`logDecodeDependencies` | object | -`_exchange` | string | +Name | Type | Description | +------ | ------ | ------ | +`_owner` | string | The address from which the balance will be retrieved | -**Returns:** *`Promise`* +**Returns:** *`ContractFunctionObj`* + +Balance of owner ___ -### `Static` strictArgumentEncodingCheck +### getABIDecodedReturnData -▸ **strictArgumentEncodingCheck**(`inputAbi`: `DataItem`[], `args`: any[]): *string* +▸ **getABIDecodedReturnData**<**T**>(`methodName`: string, `callData`: string): *`T`* +*Defined in [abi-gen-wrappers/src/generated-wrappers/erc20_token.ts:327](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/erc20_token.ts#L327)* +**Type parameters:** -Defined in base-contract/lib/src/index.d.ts:41 +▪ **T** **Parameters:** Name | Type | ------ | ------ | -`inputAbi` | `DataItem`[] | -`args` | any[] | - -**Returns:** *string* - -## Object literals +`methodName` | string | +`callData` | string | -### decodeAssetProxyDispatchError - -#### ▪ **decodeAssetProxyDispatchError**: *object* +**Returns:** *`T`* -*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:36](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L36)* +___ -Decompose an ABI-encoded AssetProxyDispatchError. +### getABIDecodedTransactionData -#### callAsync +▸ **getABIDecodedTransactionData**<**T**>(`methodName`: string, `callData`: string): *`T`* -▸ **callAsync**(`encoded`: string, `callData`: `Partial`, `defaultBlock?`: [BlockParam](#blockparam)): *`Promise<[number, string, string]>`* +*Defined in [abi-gen-wrappers/src/generated-wrappers/erc20_token.ts:320](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/erc20_token.ts#L320)* -*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:44](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L44)* +**Type parameters:** -Sends a read-only call to the contract method. Returns the result that would happen if one were to send an -Ethereum transaction to this method, given the current state of the blockchain. Calls do not cost gas -since they don't modify state. +▪ **T** **Parameters:** -Name | Type | Default | Description | ------- | ------ | ------ | ------ | -`encoded` | string | - | ABI-encoded revert error. | -`callData` | `Partial` | {} | - | -`defaultBlock?` | [BlockParam](#blockparam) | - | - | - -**Returns:** *`Promise<[number, string, string]>`* +Name | Type | +------ | ------ | +`methodName` | string | +`callData` | string | -errorCode The error code.orderHash Hash of the order being dispatched.assetData Asset data of the order being dispatched. +**Returns:** *`T`* -#### getABIDecodedReturnData +___ -▸ **getABIDecodedReturnData**(`returnData`: string): *[number, string, string]* +### getFunctionSignature -*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:109](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L109)* +▸ **getFunctionSignature**(`methodName`: string): *string* -Decode the ABI-encoded return data from a transaction +*Defined in [abi-gen-wrappers/src/generated-wrappers/erc20_token.ts:314](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/erc20_token.ts#L314)* **Parameters:** -Name | Type | Description | ------- | ------ | ------ | -`returnData` | string | the data returned after transaction execution | +Name | Type | +------ | ------ | +`methodName` | string | + +**Returns:** *string* + +___ -**Returns:** *[number, string, string]* +### getLogsAsync -An array representing the output results in order. Keynames of nested structs are preserved. +▸ **getLogsAsync**<**ArgsType**>(`eventName`: [ERC20TokenEvents](#enumeration-erc20tokenevents), `blockRange`: `BlockRange`, `indexFilterValues`: `IndexedFilterValues`): *`Promise>>`* -#### getABIDecodedTransactionData +*Defined in [abi-gen-wrappers/src/generated-wrappers/erc20_token.ts:935](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/erc20_token.ts#L935)* -▸ **getABIDecodedTransactionData**(`callData`: string): *[string]* +Gets historical logs without creating a subscription -*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:97](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L97)* +**Type parameters:** -Decode the ABI-encoded transaction data into its input arguments +▪ **ArgsType**: *[ERC20TokenEventArgs](#erc20tokeneventargs)* **Parameters:** Name | Type | Description | ------ | ------ | ------ | -`callData` | string | The ABI-encoded transaction data | +`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:** *[string]* +**Returns:** *`Promise>>`* -An array representing the input arguments in order. Keynames of nested structs are preserved. +Array of logs that match the parameters -#### getABIEncodedTransactionData +___ -▸ **getABIEncodedTransactionData**(`encoded`: string): *string* +### getSelector -*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:84](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L84)* +▸ **getSelector**(`methodName`: string): *string* -Returns the ABI encoded transaction data needed to send an Ethereum transaction calling this method. Before -sending the Ethereum tx, this encoded tx data can first be sent to a separate signing service or can be used -to create a 0x transaction (see protocol spec for more details). +*Defined in [abi-gen-wrappers/src/generated-wrappers/erc20_token.ts:334](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/erc20_token.ts#L334)* **Parameters:** -Name | Type | Description | ------- | ------ | ------ | -`encoded` | string | ABI-encoded revert error. | +Name | Type | +------ | ------ | +`methodName` | string | **Returns:** *string* -The ABI encoded transaction data as a string - ___ -### decodeAssetProxyExistsError - -#### ▪ **decodeAssetProxyExistsError**: *object* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:120](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L120)* +### subscribe -Decompose an ABI-encoded AssetProxyExistsError. +▸ **subscribe**<**ArgsType**>(`eventName`: [ERC20TokenEvents](#enumeration-erc20tokenevents), `indexFilterValues`: `IndexedFilterValues`, `callback`: [EventCallback](#eventcallback)‹*`ArgsType`*›, `isVerbose`: boolean, `blockPollingIntervalMs?`: undefined | number): *string* -#### callAsync +*Defined in [abi-gen-wrappers/src/generated-wrappers/erc20_token.ts:893](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/erc20_token.ts#L893)* -▸ **callAsync**(`encoded`: string, `callData`: `Partial`, `defaultBlock?`: [BlockParam](#blockparam)): *`Promise<[string, string]>`* +Subscribe to an event type emitted by the ERC20Token contract. -*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:128](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L128)* +**Type parameters:** -Sends a read-only call to the contract method. Returns the result that would happen if one were to send an -Ethereum transaction to this method, given the current state of the blockchain. Calls do not cost gas -since they don't modify state. +▪ **ArgsType**: *[ERC20TokenEventArgs](#erc20tokeneventargs)* **Parameters:** Name | Type | Default | Description | ------ | ------ | ------ | ------ | -`encoded` | string | - | ABI-encoded revert error. | -`callData` | `Partial` | {} | - | -`defaultBlock?` | [BlockParam](#blockparam) | - | - | +`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:** *`Promise<[string, string]>`* +**Returns:** *string* -assetProxyId Id of asset proxy.assetProxyAddress The address of the asset proxy. +Subscription token used later to unsubscribe -#### getABIDecodedReturnData +___ -▸ **getABIDecodedReturnData**(`returnData`: string): *[string, string]* +### totalSupply -*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:193](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L193)* +▸ **totalSupply**(): *`ContractFunctionObj`* -Decode the ABI-encoded return data from a transaction +*Defined in [abi-gen-wrappers/src/generated-wrappers/erc20_token.ts:470](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/erc20_token.ts#L470)* -**Parameters:** +Query total supply of token -Name | Type | Description | ------- | ------ | ------ | -`returnData` | string | the data returned after transaction execution | +**Returns:** *`ContractFunctionObj`* -**Returns:** *[string, string]* +Total supply of token -An array representing the output results in order. Keynames of nested structs are preserved. +___ -#### getABIDecodedTransactionData +### transfer -▸ **getABIDecodedTransactionData**(`callData`: string): *[string]* +▸ **transfer**(`_to`: string, `_value`: `BigNumber`): *`ContractTxFunctionObj`* -*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:181](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L181)* +*Defined in [abi-gen-wrappers/src/generated-wrappers/erc20_token.ts:709](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/erc20_token.ts#L709)* -Decode the ABI-encoded transaction data into its input arguments +send `value` token to `to` from `msg.sender` **Parameters:** Name | Type | Description | ------ | ------ | ------ | -`callData` | string | The ABI-encoded transaction data | +`_to` | string | The address of the recipient | +`_value` | `BigNumber` | The amount of token to be transferred | -**Returns:** *[string]* +**Returns:** *`ContractTxFunctionObj`* + +True if transfer was successful -An array representing the input arguments in order. Keynames of nested structs are preserved. +___ -#### getABIEncodedTransactionData +### transferFrom -▸ **getABIEncodedTransactionData**(`encoded`: string): *string* +▸ **transferFrom**(`_from`: string, `_to`: string, `_value`: `BigNumber`): *`ContractTxFunctionObj`* -*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:168](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L168)* +*Defined in [abi-gen-wrappers/src/generated-wrappers/erc20_token.ts:524](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/erc20_token.ts#L524)* -Returns the ABI encoded transaction data needed to send an Ethereum transaction calling this method. Before -sending the Ethereum tx, this encoded tx data can first be sent to a separate signing service or can be used -to create a 0x transaction (see protocol spec for more details). +send `value` token to `to` from `from` on the condition it is approved by `from` **Parameters:** Name | Type | Description | ------ | ------ | ------ | -`encoded` | string | ABI-encoded revert error. | +`_from` | string | The address of the sender | +`_to` | string | The address of the recipient | +`_value` | `BigNumber` | The amount of token to be transferred | -**Returns:** *string* +**Returns:** *`ContractTxFunctionObj`* -The ABI encoded transaction data as a string +True if transfer was successful ___ -### decodeAssetProxyTransferError - -#### ▪ **decodeAssetProxyTransferError**: *object* +### unsubscribe -*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:204](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L204)* +▸ **unsubscribe**(`subscriptionToken`: string): *void* -Decompose an ABI-encoded AssetProxyTransferError. +*Defined in [abi-gen-wrappers/src/generated-wrappers/erc20_token.ts:918](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/erc20_token.ts#L918)* -#### callAsync +Cancel a subscription -▸ **callAsync**(`encoded`: string, `callData`: `Partial`, `defaultBlock?`: [BlockParam](#blockparam)): *`Promise<[string, string, string]>`* +**Parameters:** -*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:212](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L212)* +Name | Type | Description | +------ | ------ | ------ | +`subscriptionToken` | string | Subscription token returned by `subscribe()` | -Sends a read-only call to the contract method. Returns the result that would happen if one were to send an -Ethereum transaction to this method, given the current state of the blockchain. Calls do not cost gas -since they don't modify state. +**Returns:** *void* -**Parameters:** +___ -Name | Type | Default | Description | ------- | ------ | ------ | ------ | -`encoded` | string | - | ABI-encoded revert error. | -`callData` | `Partial` | {} | - | -`defaultBlock?` | [BlockParam](#blockparam) | - | - | +### unsubscribeAll -**Returns:** *`Promise<[string, string, string]>`* +▸ **unsubscribeAll**(): *void* -orderHash Hash of the order being dispatched.assetData Asset data of the order being dispatched.errorData ABI-encoded revert data from the asset proxy. +*Defined in [abi-gen-wrappers/src/generated-wrappers/erc20_token.ts:924](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/erc20_token.ts#L924)* -#### getABIDecodedReturnData +Cancels all existing subscriptions -▸ **getABIDecodedReturnData**(`returnData`: string): *[string, string, string]* +**Returns:** *void* -*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:277](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L277)* +___ -Decode the ABI-encoded return data from a transaction +### `Static` ABI -**Parameters:** +▸ **ABI**(): *[ContractAbi](#contractabi)* -Name | Type | Description | ------- | ------ | ------ | -`returnData` | string | the data returned after transaction execution | +*Defined in [abi-gen-wrappers/src/generated-wrappers/erc20_token.ts:133](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/erc20_token.ts#L133)* -**Returns:** *[string, string, string]* +**Returns:** *[ContractAbi](#contractabi)* -An array representing the output results in order. Keynames of nested structs are preserved. +The contract ABI -#### getABIDecodedTransactionData +___ -▸ **getABIDecodedTransactionData**(`callData`: string): *[string]* +### `Static` deployAsync -*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:265](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L265)* +▸ **deployAsync**(`bytecode`: string, `abi`: [ContractAbi](#contractabi), `supportedProvider`: [SupportedProvider](#supportedprovider), `txDefaults`: `Partial`, `logDecodeDependencies`: object): *`Promise`* -Decode the ABI-encoded transaction data into its input arguments +*Defined in [abi-gen-wrappers/src/generated-wrappers/erc20_token.ts:91](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/erc20_token.ts#L91)* **Parameters:** -Name | Type | Description | ------- | ------ | ------ | -`callData` | string | The ABI-encoded transaction data | - -**Returns:** *[string]* +Name | Type | +------ | ------ | +`bytecode` | string | +`abi` | [ContractAbi](#contractabi) | +`supportedProvider` | [SupportedProvider](#supportedprovider) | +`txDefaults` | `Partial` | +`logDecodeDependencies` | object | -An array representing the input arguments in order. Keynames of nested structs are preserved. +**Returns:** *`Promise`* -#### getABIEncodedTransactionData +___ -▸ **getABIEncodedTransactionData**(`encoded`: string): *string* +### `Static` deployFrom0xArtifactAsync -*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:252](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L252)* +▸ **deployFrom0xArtifactAsync**(`artifact`: `ContractArtifact` | `SimpleContractArtifact`, `supportedProvider`: [SupportedProvider](#supportedprovider), `txDefaults`: `Partial`, `logDecodeDependencies`: object): *`Promise`* -Returns the ABI encoded transaction data needed to send an Ethereum transaction calling this method. Before -sending the Ethereum tx, this encoded tx data can first be sent to a separate signing service or can be used -to create a 0x transaction (see protocol spec for more details). +*Defined in [abi-gen-wrappers/src/generated-wrappers/erc20_token.ts:66](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/erc20_token.ts#L66)* **Parameters:** -Name | Type | Description | ------- | ------ | ------ | -`encoded` | string | ABI-encoded revert error. | - -**Returns:** *string* +Name | Type | +------ | ------ | +`artifact` | `ContractArtifact` \| `SimpleContractArtifact` | +`supportedProvider` | [SupportedProvider](#supportedprovider) | +`txDefaults` | `Partial` | +`logDecodeDependencies` | object | -The ABI encoded transaction data as a string +**Returns:** *`Promise`* ___ -### decodeEIP1271SignatureError +### `Static` strictArgumentEncodingCheck -#### ▪ **decodeEIP1271SignatureError**: *object* +▸ **strictArgumentEncodingCheck**(`inputAbi`: `DataItem`[], `args`: any[]): *string* -*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:288](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L288)* -Decompose an ABI-encoded SignatureValidatorError. -#### callAsync +Defined in base-contract/lib/src/index.d.ts:42 + +**Parameters:** -▸ **callAsync**(`encoded`: string, `callData`: `Partial`, `defaultBlock?`: [BlockParam](#blockparam)): *`Promise<[string, string, string, string]>`* +Name | Type | +------ | ------ | +`inputAbi` | `DataItem`[] | +`args` | any[] | -*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:296](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L296)* +**Returns:** *string* -Sends a read-only call to the contract method. Returns the result that would happen if one were to send an -Ethereum transaction to this method, given the current state of the blockchain. Calls do not cost gas -since they don't modify state. +
-**Parameters:** +# Class: ERC721TokenContract -Name | Type | Default | Description | ------- | ------ | ------ | ------ | -`encoded` | string | - | ABI-encoded revert error. | -`callData` | `Partial` | {} | - | -`defaultBlock?` | [BlockParam](#blockparam) | - | - | -**Returns:** *`Promise<[string, string, string, string]>`* +## Constructors -signerAddress The expected signer of the hash.signature The full signature bytes.errorData The revert data thrown by the validator contract. -#### getABIDecodedReturnData -▸ **getABIDecodedReturnData**(`returnData`: string): *[string, string, string, string]* +\+ **new ERC721TokenContract**(`address`: string, `supportedProvider`: [SupportedProvider](#supportedprovider), `txDefaults?`: `Partial`, `logDecodeDependencies?`: undefined | object, `deployedBytecode`: string | undefined): *[ERC721TokenContract](#class-erc721tokencontract)* -*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:361](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L361)* +*Overrides void* -Decode the ABI-encoded return data from a transaction +*Defined in [abi-gen-wrappers/src/generated-wrappers/erc721_token.ts:1376](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/erc721_token.ts#L1376)* **Parameters:** -Name | Type | Description | +Name | Type | Default | ------ | ------ | ------ | -`returnData` | string | the data returned after transaction execution | +`address` | string | - | +`supportedProvider` | [SupportedProvider](#supportedprovider) | - | +`txDefaults?` | `Partial` | - | +`logDecodeDependencies?` | undefined \| object | - | +`deployedBytecode` | string \| undefined | ERC721TokenContract.deployedBytecode | + +**Returns:** *[ERC721TokenContract](#class-erc721tokencontract)* -**Returns:** *[string, string, string, string]* +## Properties -An array representing the output results in order. Keynames of nested structs are preserved. +### `Optional` _deployedBytecodeIfExists -#### getABIDecodedTransactionData +• **_deployedBytecodeIfExists**? : *`Buffer`* -▸ **getABIDecodedTransactionData**(`callData`: string): *[string]* -*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:349](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L349)* -Decode the ABI-encoded transaction data into its input arguments +Defined in base-contract/lib/src/index.d.ts:32 -**Parameters:** +___ -Name | Type | Description | ------- | ------ | ------ | -`callData` | string | The ABI-encoded transaction data | +### abi -**Returns:** *[string]* +• **abi**: *[ContractAbi](#contractabi)* -An array representing the input arguments in order. Keynames of nested structs are preserved. -#### getABIEncodedTransactionData -▸ **getABIEncodedTransactionData**(`encoded`: string): *string* +Defined in base-contract/lib/src/index.d.ts:28 -*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:336](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L336)* +___ -Returns the ABI encoded transaction data needed to send an Ethereum transaction calling this method. Before -sending the Ethereum tx, this encoded tx data can first be sent to a separate signing service or can be used -to create a 0x transaction (see protocol spec for more details). +### address -**Parameters:** +• **address**: *string* -Name | Type | Description | ------- | ------ | ------ | -`encoded` | string | ABI-encoded revert error. | -**Returns:** *string* -The ABI encoded transaction data as a string +Defined in base-contract/lib/src/index.d.ts:29 ___ -### decodeERC1155AssetData +Args -#### ▪ **decodeERC1155AssetData**: *object* +• **constructorArgs**: *any[]* -*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:374](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L374)* -Decode ERC-1155 asset data from the format described in the AssetProxy contract specification. -#### callAsync +Defined in base-contract/lib/src/index.d.ts:31 -▸ **callAsync**(`assetData`: string, `callData`: `Partial`, `defaultBlock?`: [BlockParam](#blockparam)): *`Promise<[string, string, BigNumber[], BigNumber[], string]>`* +___ -*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:383](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L383)* +### contractName -Sends a read-only call to the contract method. Returns the result that would happen if one were to send an -Ethereum transaction to this method, given the current state of the blockchain. Calls do not cost gas -since they don't modify state. +• **contractName**: *string* -**Parameters:** -Name | Type | Default | Description | ------- | ------ | ------ | ------ | -`assetData` | string | - | AssetProxy-compliant asset data describing an ERC-1155 set of assets. | -`callData` | `Partial` | {} | - | -`defaultBlock?` | [BlockParam](#blockparam) | - | - | -**Returns:** *`Promise<[string, string, BigNumber[], BigNumber[], string]>`* +Defined in base-contract/lib/src/index.d.ts:30 -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`. +## Methods -#### getABIDecodedReturnData +### approve -▸ **getABIDecodedReturnData**(`returnData`: string): *[string, string, `BigNumber`[], `BigNumber`[], string]* +▸ **approve**(`_approved`: string, `_tokenId`: `BigNumber`): *`ContractTxFunctionObj`* -*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:449](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L449)* +*Defined in [abi-gen-wrappers/src/generated-wrappers/erc721_token.ts:438](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/erc721_token.ts#L438)* -Decode the ABI-encoded return data from a transaction +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 | ------ | ------ | ------ | -`returnData` | string | the data returned after transaction execution | +`_approved` | string | The new approved NFT controller | +`_tokenId` | `BigNumber` | The NFT to approve | -**Returns:** *[string, string, `BigNumber`[], `BigNumber`[], string]* +**Returns:** *`ContractTxFunctionObj`* -An array representing the output results in order. Keynames of nested structs are preserved. +___ -#### getABIDecodedTransactionData +### balanceOf -▸ **getABIDecodedTransactionData**(`callData`: string): *[string]* +▸ **balanceOf**(`_owner`: string): *`ContractFunctionObj`* -*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:437](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L437)* +*Defined in [abi-gen-wrappers/src/generated-wrappers/erc721_token.ts:563](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/erc721_token.ts#L563)* -Decode the ABI-encoded transaction data into its input arguments +NFTs assigned to the zero address are considered invalid, and this +function throws for queries about the zero address. **Parameters:** Name | Type | Description | ------ | ------ | ------ | -`callData` | string | The ABI-encoded transaction data | - -**Returns:** *[string]* - -An array representing the input arguments in order. Keynames of nested structs are preserved. +`_owner` | string | An address for whom to query the balance | -#### getABIEncodedTransactionData +**Returns:** *`ContractFunctionObj`* -▸ **getABIEncodedTransactionData**(`assetData`: string): *string* +The number of NFTs owned by `_owner`, possibly zero -*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:426](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L426)* +___ -Returns the ABI encoded transaction data needed to send an Ethereum transaction calling this method. Before -sending the Ethereum tx, this encoded tx data can first be sent to a separate signing service or can be used -to create a 0x transaction (see protocol spec for more details). +### getABIDecodedReturnData -**Parameters:** +▸ **getABIDecodedReturnData**<**T**>(`methodName`: string, `callData`: string): *`T`* -Name | Type | Description | ------- | ------ | ------ | -`assetData` | string | AssetProxy-compliant asset data describing an ERC-1155 set of assets. | +*Defined in [abi-gen-wrappers/src/generated-wrappers/erc721_token.ts:417](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/erc721_token.ts#L417)* -**Returns:** *string* +**Type parameters:** -The ABI encoded transaction data as a string +▪ **T** -___ +**Parameters:** -### decodeERC20AssetData +Name | Type | +------ | ------ | +`methodName` | string | +`callData` | string | -#### ▪ **decodeERC20AssetData**: *object* +**Returns:** *`T`* -*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:462](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L462)* +___ -Decode ERC-20 asset data from the format described in the AssetProxy contract specification. +### getABIDecodedTransactionData -#### callAsync +▸ **getABIDecodedTransactionData**<**T**>(`methodName`: string, `callData`: string): *`T`* -▸ **callAsync**(`assetData`: string, `callData`: `Partial`, `defaultBlock?`: [BlockParam](#blockparam)): *`Promise<[string, string]>`* +*Defined in [abi-gen-wrappers/src/generated-wrappers/erc721_token.ts:410](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/erc721_token.ts#L410)* -*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:470](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L470)* +**Type parameters:** -Sends a read-only call to the contract method. Returns the result that would happen if one were to send an -Ethereum transaction to this method, given the current state of the blockchain. Calls do not cost gas -since they don't modify state. +▪ **T** **Parameters:** -Name | Type | Default | Description | ------- | ------ | ------ | ------ | -`assetData` | string | - | AssetProxy-compliant asset data describing an ERC-20 asset. | -`callData` | `Partial` | {} | - | -`defaultBlock?` | [BlockParam](#blockparam) | - | - | +Name | Type | +------ | ------ | +`methodName` | string | +`callData` | string | -**Returns:** *`Promise<[string, string]>`* +**Returns:** *`T`* -The ERC-20 AssetProxy identifier, and the address of the ERC-20 contract hosting this asset. +___ -#### getABIDecodedReturnData +### getApproved -▸ **getABIDecodedReturnData**(`returnData`: string): *[string, string]* +▸ **getApproved**(`_tokenId`: `BigNumber`): *`ContractFunctionObj`* -*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:533](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L533)* +*Defined in [abi-gen-wrappers/src/generated-wrappers/erc721_token.ts:618](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/erc721_token.ts#L618)* -Decode the ABI-encoded return data from a transaction +Throws if `_tokenId` is not a valid NFT. **Parameters:** Name | Type | Description | ------ | ------ | ------ | -`returnData` | string | the data returned after transaction execution | +`_tokenId` | `BigNumber` | The NFT to find the approved address for | -**Returns:** *[string, string]* +**Returns:** *`ContractFunctionObj`* -An array representing the output results in order. Keynames of nested structs are preserved. +The approved address for this NFT, or the zero address if there is none -#### getABIDecodedTransactionData +___ -▸ **getABIDecodedTransactionData**(`callData`: string): *[string]* +### getFunctionSignature -*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:521](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L521)* +▸ **getFunctionSignature**(`methodName`: string): *string* -Decode the ABI-encoded transaction data into its input arguments +*Defined in [abi-gen-wrappers/src/generated-wrappers/erc721_token.ts:404](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/erc721_token.ts#L404)* **Parameters:** -Name | Type | Description | ------- | ------ | ------ | -`callData` | string | The ABI-encoded transaction data | +Name | Type | +------ | ------ | +`methodName` | string | -**Returns:** *[string]* +**Returns:** *string* + +___ + +### getLogsAsync -An array representing the input arguments in order. Keynames of nested structs are preserved. +▸ **getLogsAsync**<**ArgsType**>(`eventName`: [ERC721TokenEvents](#enumeration-erc721tokenevents), `blockRange`: `BlockRange`, `indexFilterValues`: `IndexedFilterValues`): *`Promise>>`* -#### getABIEncodedTransactionData +*Defined in [abi-gen-wrappers/src/generated-wrappers/erc721_token.ts:1360](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/erc721_token.ts#L1360)* -▸ **getABIEncodedTransactionData**(`assetData`: string): *string* +Gets historical logs without creating a subscription -*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:510](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L510)* +**Type parameters:** -Returns the ABI encoded transaction data needed to send an Ethereum transaction calling this method. Before -sending the Ethereum tx, this encoded tx data can first be sent to a separate signing service or can be used -to create a 0x transaction (see protocol spec for more details). +▪ **ArgsType**: *[ERC721TokenEventArgs](#erc721tokeneventargs)* **Parameters:** Name | Type | Description | ------ | ------ | ------ | -`assetData` | string | AssetProxy-compliant asset data describing an ERC-20 asset. | +`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:** *string* +**Returns:** *`Promise>>`* -The ABI encoded transaction data as a string +Array of logs that match the parameters ___ -### decodeERC721AssetData +### getSelector -#### ▪ **decodeERC721AssetData**: *object* +▸ **getSelector**(`methodName`: string): *string* -*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:544](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L544)* +*Defined in [abi-gen-wrappers/src/generated-wrappers/erc721_token.ts:424](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/erc721_token.ts#L424)* -Decode ERC-721 asset data from the format described in the AssetProxy contract specification. +**Parameters:** + +Name | Type | +------ | ------ | +`methodName` | string | + +**Returns:** *string* -#### callAsync +___ -▸ **callAsync**(`assetData`: string, `callData`: `Partial`, `defaultBlock?`: [BlockParam](#blockparam)): *`Promise<[string, string, BigNumber]>`* +### isApprovedForAll -*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:553](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L553)* +▸ **isApprovedForAll**(`_owner`: string, `_operator`: string): *`ContractFunctionObj`* -Sends a read-only call to the contract method. Returns the result that would happen if one were to send an -Ethereum transaction to this method, given the current state of the blockchain. Calls do not cost gas -since they don't modify state. +*Defined in [abi-gen-wrappers/src/generated-wrappers/erc721_token.ts:666](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/erc721_token.ts#L666)* **Parameters:** -Name | Type | Default | Description | ------- | ------ | ------ | ------ | -`assetData` | string | - | AssetProxy-compliant asset data describing an ERC-721 asset. | -`callData` | `Partial` | {} | - | -`defaultBlock?` | [BlockParam](#blockparam) | - | - | +Name | Type | +------ | ------ | +`_owner` | string | +`_operator` | string | -**Returns:** *`Promise<[string, string, BigNumber]>`* +**Returns:** *`ContractFunctionObj`* -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. +___ -#### getABIDecodedReturnData +### ownerOf -▸ **getABIDecodedReturnData**(`returnData`: string): *[string, string, `BigNumber`]* +▸ **ownerOf**(`_tokenId`: `BigNumber`): *`ContractFunctionObj`* -*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:617](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L617)* +*Defined in [abi-gen-wrappers/src/generated-wrappers/erc721_token.ts:727](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/erc721_token.ts#L727)* -Decode the ABI-encoded return data from a transaction +NFTs assigned to zero address are considered invalid, and queries +about them do throw. **Parameters:** Name | Type | Description | ------ | ------ | ------ | -`returnData` | string | the data returned after transaction execution | +`_tokenId` | `BigNumber` | The identifier for an NFT | -**Returns:** *[string, string, `BigNumber`]* +**Returns:** *`ContractFunctionObj`* + +The address of the owner of the NFT -An array representing the output results in order. Keynames of nested structs are preserved. +___ -#### getABIDecodedTransactionData +### safeTransferFrom1 -▸ **getABIDecodedTransactionData**(`callData`: string): *[string]* +▸ **safeTransferFrom1**(`_from`: string, `_to`: string, `_tokenId`: `BigNumber`): *`ContractTxFunctionObj`* -*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:605](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L605)* +*Defined in [abi-gen-wrappers/src/generated-wrappers/erc721_token.ts:782](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/erc721_token.ts#L782)* -Decode the ABI-encoded transaction data into its input arguments +This works identically to the other function with an extra data parameter, +except this function just sets data to "". **Parameters:** Name | Type | Description | ------ | ------ | ------ | -`callData` | string | The ABI-encoded transaction data | +`_from` | string | The current owner of the NFT | +`_to` | string | The new owner | +`_tokenId` | `BigNumber` | The NFT to transfer | -**Returns:** *[string]* +**Returns:** *`ContractTxFunctionObj`* -An array representing the input arguments in order. Keynames of nested structs are preserved. +___ -#### getABIEncodedTransactionData +### safeTransferFrom2 -▸ **getABIEncodedTransactionData**(`assetData`: string): *string* +▸ **safeTransferFrom2**(`_from`: string, `_to`: string, `_tokenId`: `BigNumber`, `_data`: string): *`ContractTxFunctionObj`* -*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:594](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L594)* +*Defined in [abi-gen-wrappers/src/generated-wrappers/erc721_token.ts:918](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/erc721_token.ts#L918)* -Returns the ABI encoded transaction data needed to send an Ethereum transaction calling this method. Before -sending the Ethereum tx, this encoded tx data can first be sent to a separate signing service or can be used -to create a 0x transaction (see protocol spec for more details). +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 | ------ | ------ | ------ | -`assetData` | string | AssetProxy-compliant asset data describing an ERC-721 asset. | - -**Returns:** *string* +`_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` | -The ABI encoded transaction data as a string +**Returns:** *`ContractTxFunctionObj`* ___ -### decodeExchangeInvalidContextError - -#### ▪ **decodeExchangeInvalidContextError**: *object* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:628](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L628)* +### setApprovalForAll -Decompose an ABI-encoded OrderStatusError. +▸ **setApprovalForAll**(`_operator`: string, `_approved`: boolean): *`ContractTxFunctionObj`* -#### callAsync +*Defined in [abi-gen-wrappers/src/generated-wrappers/erc721_token.ts:1056](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/erc721_token.ts#L1056)* -▸ **callAsync**(`encoded`: string, `callData`: `Partial`, `defaultBlock?`: [BlockParam](#blockparam)): *`Promise<[number, string, string]>`* +Emits the ApprovalForAll event. The contract MUST allow +multiple operators per owner. -*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:636](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L636)* +**Parameters:** -Sends a read-only call to the contract method. Returns the result that would happen if one were to send an -Ethereum transaction to this method, given the current state of the blockchain. Calls do not cost gas -since they don't modify state. +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 | -**Parameters:** +**Returns:** *`ContractTxFunctionObj`* -Name | Type | Default | Description | ------- | ------ | ------ | ------ | -`encoded` | string | - | ABI-encoded revert error. | -`callData` | `Partial` | {} | - | -`defaultBlock?` | [BlockParam](#blockparam) | - | - | +___ -**Returns:** *`Promise<[number, string, string]>`* +### subscribe -errorCode Error code that corresponds to invalid maker, taker, or sender.orderHash The order hash.contextAddress The maker, taker, or sender address +▸ **subscribe**<**ArgsType**>(`eventName`: [ERC721TokenEvents](#enumeration-erc721tokenevents), `indexFilterValues`: `IndexedFilterValues`, `callback`: [EventCallback](#eventcallback)‹*`ArgsType`*›, `isVerbose`: boolean, `blockPollingIntervalMs?`: undefined | number): *string* -#### getABIDecodedReturnData +*Defined in [abi-gen-wrappers/src/generated-wrappers/erc721_token.ts:1318](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/erc721_token.ts#L1318)* -▸ **getABIDecodedReturnData**(`returnData`: string): *[number, string, string]* +Subscribe to an event type emitted by the ERC721Token contract. -*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:701](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L701)* +**Type parameters:** -Decode the ABI-encoded return data from a transaction +▪ **ArgsType**: *[ERC721TokenEventArgs](#erc721tokeneventargs)* **Parameters:** -Name | Type | Description | ------- | ------ | ------ | -`returnData` | string | the data returned after transaction execution | +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* -**Returns:** *[number, string, string]* +Subscription token used later to unsubscribe -An array representing the output results in order. Keynames of nested structs are preserved. +___ -#### getABIDecodedTransactionData +### transferFrom -▸ **getABIDecodedTransactionData**(`callData`: string): *[string]* +▸ **transferFrom**(`_from`: string, `_to`: string, `_tokenId`: `BigNumber`): *`ContractTxFunctionObj`* -*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:689](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L689)* +*Defined in [abi-gen-wrappers/src/generated-wrappers/erc721_token.ts:1184](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/erc721_token.ts#L1184)* -Decode the ABI-encoded transaction data into its input arguments +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 | ------ | ------ | ------ | -`callData` | string | The ABI-encoded transaction data | +`_from` | string | The current owner of the NFT | +`_to` | string | The new owner | +`_tokenId` | `BigNumber` | The NFT to transfer | -**Returns:** *[string]* +**Returns:** *`ContractTxFunctionObj`* -An array representing the input arguments in order. Keynames of nested structs are preserved. +___ -#### getABIEncodedTransactionData +### unsubscribe -▸ **getABIEncodedTransactionData**(`encoded`: string): *string* +▸ **unsubscribe**(`subscriptionToken`: string): *void* -*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:676](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L676)* +*Defined in [abi-gen-wrappers/src/generated-wrappers/erc721_token.ts:1343](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/erc721_token.ts#L1343)* -Returns the ABI encoded transaction data needed to send an Ethereum transaction calling this method. Before -sending the Ethereum tx, this encoded tx data can first be sent to a separate signing service or can be used -to create a 0x transaction (see protocol spec for more details). +Cancel a subscription **Parameters:** Name | Type | Description | ------ | ------ | ------ | -`encoded` | string | ABI-encoded revert error. | - -**Returns:** *string* +`subscriptionToken` | string | Subscription token returned by `subscribe()` | -The ABI encoded transaction data as a string +**Returns:** *void* ___ -### decodeFillError - -#### ▪ **decodeFillError**: *object* +### unsubscribeAll -*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:712](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L712)* +▸ **unsubscribeAll**(): *void* -Decompose an ABI-encoded FillError. +*Defined in [abi-gen-wrappers/src/generated-wrappers/erc721_token.ts:1349](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/erc721_token.ts#L1349)* -#### callAsync +Cancels all existing subscriptions -▸ **callAsync**(`encoded`: string, `callData`: `Partial`, `defaultBlock?`: [BlockParam](#blockparam)): *`Promise<[number, string]>`* +**Returns:** *void* -*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:720](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L720)* +___ -Sends a read-only call to the contract method. Returns the result that would happen if one were to send an -Ethereum transaction to this method, given the current state of the blockchain. Calls do not cost gas -since they don't modify state. +### `Static` ABI -**Parameters:** +▸ **ABI**(): *[ContractAbi](#contractabi)* -Name | Type | Default | Description | ------- | ------ | ------ | ------ | -`encoded` | string | - | ABI-encoded revert error. | -`callData` | `Partial` | {} | - | -`defaultBlock?` | [BlockParam](#blockparam) | - | - | +*Defined in [abi-gen-wrappers/src/generated-wrappers/erc721_token.ts:143](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/erc721_token.ts#L143)* -**Returns:** *`Promise<[number, string]>`* +**Returns:** *[ContractAbi](#contractabi)* -errorCode The error code.orderHash The order hash. +The contract ABI -#### getABIDecodedReturnData +___ -▸ **getABIDecodedReturnData**(`returnData`: string): *[number, string]* +### `Static` deployAsync -*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:783](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L783)* +▸ **deployAsync**(`bytecode`: string, `abi`: [ContractAbi](#contractabi), `supportedProvider`: [SupportedProvider](#supportedprovider), `txDefaults`: `Partial`, `logDecodeDependencies`: object): *`Promise`* -Decode the ABI-encoded return data from a transaction +*Defined in [abi-gen-wrappers/src/generated-wrappers/erc721_token.ts:101](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/erc721_token.ts#L101)* **Parameters:** -Name | Type | Description | ------- | ------ | ------ | -`returnData` | string | the data returned after transaction execution | - -**Returns:** *[number, string]* +Name | Type | +------ | ------ | +`bytecode` | string | +`abi` | [ContractAbi](#contractabi) | +`supportedProvider` | [SupportedProvider](#supportedprovider) | +`txDefaults` | `Partial` | +`logDecodeDependencies` | object | -An array representing the output results in order. Keynames of nested structs are preserved. +**Returns:** *`Promise`* -#### getABIDecodedTransactionData +___ -▸ **getABIDecodedTransactionData**(`callData`: string): *[string]* +### `Static` deployFrom0xArtifactAsync -*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:771](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L771)* +▸ **deployFrom0xArtifactAsync**(`artifact`: `ContractArtifact` | `SimpleContractArtifact`, `supportedProvider`: [SupportedProvider](#supportedprovider), `txDefaults`: `Partial`, `logDecodeDependencies`: object): *`Promise`* -Decode the ABI-encoded transaction data into its input arguments +*Defined in [abi-gen-wrappers/src/generated-wrappers/erc721_token.ts:76](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/erc721_token.ts#L76)* **Parameters:** -Name | Type | Description | ------- | ------ | ------ | -`callData` | string | The ABI-encoded transaction data | +Name | Type | +------ | ------ | +`artifact` | `ContractArtifact` \| `SimpleContractArtifact` | +`supportedProvider` | [SupportedProvider](#supportedprovider) | +`txDefaults` | `Partial` | +`logDecodeDependencies` | object | -**Returns:** *[string]* +**Returns:** *`Promise`* + +___ -An array representing the input arguments in order. Keynames of nested structs are preserved. +### `Static` strictArgumentEncodingCheck -#### getABIEncodedTransactionData +▸ **strictArgumentEncodingCheck**(`inputAbi`: `DataItem`[], `args`: any[]): *string* -▸ **getABIEncodedTransactionData**(`encoded`: string): *string* -*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:760](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L760)* -Returns the ABI encoded transaction data needed to send an Ethereum transaction calling this method. Before -sending the Ethereum tx, this encoded tx data can first be sent to a separate signing service or can be used -to create a 0x transaction (see protocol spec for more details). +Defined in base-contract/lib/src/index.d.ts:42 **Parameters:** -Name | Type | Description | ------- | ------ | ------ | -`encoded` | string | ABI-encoded revert error. | +Name | Type | +------ | ------ | +`inputAbi` | `DataItem`[] | +`args` | any[] | **Returns:** *string* -The ABI encoded transaction data as a string - -___ +
-### decodeIncompleteFillError +# Class: ExchangeContract -#### ▪ **decodeIncompleteFillError**: *object* -*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:794](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L794)* +## Constructors -Decompose an ABI-encoded IncompleteFillError. -#### callAsync -▸ **callAsync**(`encoded`: string, `callData`: `Partial`, `defaultBlock?`: [BlockParam](#blockparam)): *`Promise<[number, BigNumber, BigNumber]>`* +\+ **new ExchangeContract**(`address`: string, `supportedProvider`: [SupportedProvider](#supportedprovider), `txDefaults?`: `Partial`, `logDecodeDependencies?`: undefined | object, `deployedBytecode`: string | undefined): *[ExchangeContract](#class-exchangecontract)* -*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:802](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L802)* +*Overrides void* -Sends a read-only call to the contract method. Returns the result that would happen if one were to send an -Ethereum transaction to this method, given the current state of the blockchain. Calls do not cost gas -since they don't modify state. +*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:8066](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L8066)* **Parameters:** -Name | Type | Default | Description | ------- | ------ | ------ | ------ | -`encoded` | string | - | ABI-encoded revert error. | -`callData` | `Partial` | {} | - | -`defaultBlock?` | [BlockParam](#blockparam) | - | - | - -**Returns:** *`Promise<[number, BigNumber, BigNumber]>`* +Name | Type | Default | +------ | ------ | ------ | +`address` | string | - | +`supportedProvider` | [SupportedProvider](#supportedprovider) | - | +`txDefaults?` | `Partial` | - | +`logDecodeDependencies?` | undefined \| object | - | +`deployedBytecode` | string \| undefined | ExchangeContract.deployedBytecode | -orderHash Hash of the order being filled. +**Returns:** *[ExchangeContract](#class-exchangecontract)* -#### getABIDecodedReturnData +## Properties -▸ **getABIDecodedReturnData**(`returnData`: string): *[number, `BigNumber`, `BigNumber`]* +### `Optional` _deployedBytecodeIfExists -*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:867](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L867)* +• **_deployedBytecodeIfExists**? : *`Buffer`* -Decode the ABI-encoded return data from a transaction -**Parameters:** -Name | Type | Description | ------- | ------ | ------ | -`returnData` | string | the data returned after transaction execution | +Defined in base-contract/lib/src/index.d.ts:32 -**Returns:** *[number, `BigNumber`, `BigNumber`]* +___ -An array representing the output results in order. Keynames of nested structs are preserved. +### abi -#### getABIDecodedTransactionData +• **abi**: *[ContractAbi](#contractabi)* -▸ **getABIDecodedTransactionData**(`callData`: string): *[string]* -*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:855](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L855)* -Decode the ABI-encoded transaction data into its input arguments +Defined in base-contract/lib/src/index.d.ts:28 -**Parameters:** +___ -Name | Type | Description | ------- | ------ | ------ | -`callData` | string | The ABI-encoded transaction data | +### address -**Returns:** *[string]* +• **address**: *string* -An array representing the input arguments in order. Keynames of nested structs are preserved. -#### getABIEncodedTransactionData -▸ **getABIEncodedTransactionData**(`encoded`: string): *string* +Defined in base-contract/lib/src/index.d.ts:29 -*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:842](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L842)* +___ -Returns the ABI encoded transaction data needed to send an Ethereum transaction calling this method. Before -sending the Ethereum tx, this encoded tx data can first be sent to a separate signing service or can be used -to create a 0x transaction (see protocol spec for more details). +Args -**Parameters:** +• **constructorArgs**: *any[]* -Name | Type | Description | ------- | ------ | ------ | -`encoded` | string | ABI-encoded revert error. | -**Returns:** *string* -The ABI encoded transaction data as a string +Defined in base-contract/lib/src/index.d.ts:31 ___ -### decodeMultiAssetData +### contractName + +• **contractName**: *string* -#### ▪ **decodeMultiAssetData**: *object* -*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:878](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L878)* -Decode multi-asset data from the format described in the AssetProxy contract specification. +Defined in base-contract/lib/src/index.d.ts:30 + +## Methods -#### callAsync +### EIP1271_MAGIC_VALUE -▸ **callAsync**(`assetData`: string, `callData`: `Partial`, `defaultBlock?`: [BlockParam](#blockparam)): *`Promise<[string, BigNumber[], string[]]>`* +▸ **EIP1271_MAGIC_VALUE**(): *`ContractFunctionObj`* -*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:886](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L886)* +*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:3106](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L3106)* -Sends a read-only call to the contract method. Returns the result that would happen if one were to send an -Ethereum transaction to this method, given the current state of the blockchain. Calls do not cost gas -since they don't modify state. +**Returns:** *`ContractFunctionObj`* -**Parameters:** +___ -Name | Type | Default | Description | ------- | ------ | ------ | ------ | -`assetData` | string | - | AssetProxy-compliant data describing a multi-asset basket. | -`callData` | `Partial` | {} | - | -`defaultBlock?` | [BlockParam](#blockparam) | - | - | +### EIP712_EXCHANGE_DOMAIN_HASH -**Returns:** *`Promise<[string, BigNumber[], string[]]>`* +▸ **EIP712_EXCHANGE_DOMAIN_HASH**(): *`ContractFunctionObj`* -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. +*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:3153](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L3153)* -#### getABIDecodedReturnData +**Returns:** *`ContractFunctionObj`* -▸ **getABIDecodedReturnData**(`returnData`: string): *[string, `BigNumber`[], string[]]* +___ + +### allowedValidators -*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:949](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L949)* +▸ **allowedValidators**(`index_0`: string, `index_1`: string): *`ContractFunctionObj`* -Decode the ABI-encoded return data from a transaction +*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:3200](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L3200)* **Parameters:** -Name | Type | Description | ------- | ------ | ------ | -`returnData` | string | the data returned after transaction execution | +Name | Type | +------ | ------ | +`index_0` | string | +`index_1` | string | -**Returns:** *[string, `BigNumber`[], string[]]* +**Returns:** *`ContractFunctionObj`* -An array representing the output results in order. Keynames of nested structs are preserved. +___ -#### getABIDecodedTransactionData +### batchCancelOrders -▸ **getABIDecodedTransactionData**(`callData`: string): *[string]* +▸ **batchCancelOrders**(`orders`: `Array`): *`ContractTxFunctionObj`* -*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:937](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L937)* +*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:3259](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L3259)* -Decode the ABI-encoded transaction data into its input arguments +Executes multiple calls of cancelOrder. **Parameters:** Name | Type | Description | ------ | ------ | ------ | -`callData` | string | The ABI-encoded transaction data | +`orders` | `Array` | Array of order specifications. | -**Returns:** *[string]* +**Returns:** *`ContractTxFunctionObj`* -An array representing the input arguments in order. Keynames of nested structs are preserved. +___ -#### getABIEncodedTransactionData +### batchExecuteTransactions -▸ **getABIEncodedTransactionData**(`assetData`: string): *string* +▸ **batchExecuteTransactions**(`transactions`: `Array`, `signatures`: string[]): *`ContractTxFunctionObj`* -*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:926](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L926)* +*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:3403](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L3403)* -Returns the ABI encoded transaction data needed to send an Ethereum transaction calling this method. Before -sending the Ethereum tx, this encoded tx data can first be sent to a separate signing service or can be used -to create a 0x transaction (see protocol spec for more details). +Executes a batch of Exchange method calls in the context of signer(s). **Parameters:** Name | Type | Description | ------ | ------ | ------ | -`assetData` | string | AssetProxy-compliant data describing a multi-asset basket. | +`transactions` | `Array` | Array of 0x transaction structures. | +`signatures` | string[] | Array of proofs that transactions have been signed by signer(s). | -**Returns:** *string* +**Returns:** *`ContractTxFunctionObj`* -The ABI encoded transaction data as a string +Array containing ABI encoded return data for each of the underlying Exchange function calls. ___ -### decodeNegativeSpreadError - -#### ▪ **decodeNegativeSpreadError**: *object* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:962](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L962)* - -Decompose an ABI-encoded NegativeSpreadError. - -#### callAsync +### batchFillOrKillOrders -▸ **callAsync**(`encoded`: string, `callData`: `Partial`, `defaultBlock?`: [BlockParam](#blockparam)): *`Promise<[string, string]>`* +▸ **batchFillOrKillOrders**(`orders`: `Array`, `takerAssetFillAmounts`: `BigNumber`[], `signatures`: string[]): *`ContractTxFunctionObj>`* -*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:970](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L970)* +*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:3541](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L3541)* -Sends a read-only call to the contract method. Returns the result that would happen if one were to send an -Ethereum transaction to this method, given the current state of the blockchain. Calls do not cost gas -since they don't modify state. +Executes multiple calls of fillOrKillOrder. **Parameters:** -Name | Type | Default | Description | ------- | ------ | ------ | ------ | -`encoded` | string | - | ABI-encoded revert error. | -`callData` | `Partial` | {} | - | -`defaultBlock?` | [BlockParam](#blockparam) | - | - | +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:** *`Promise<[string, string]>`* +**Returns:** *`ContractTxFunctionObj>`* -leftOrderHash Hash of the left order being matched.rightOrderHash Hash of the right order being matched. +Array of amounts filled and fees paid by makers and taker. + +___ -#### getABIDecodedReturnData +### batchFillOrders -▸ **getABIDecodedReturnData**(`returnData`: string): *[string, string]* +▸ **batchFillOrders**(`orders`: `Array`, `takerAssetFillAmounts`: `BigNumber`[], `signatures`: string[]): *`ContractTxFunctionObj>`* -*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:1035](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L1035)* +*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:3717](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L3717)* -Decode the ABI-encoded return data from a transaction +Executes multiple calls of fillOrder. **Parameters:** Name | Type | Description | ------ | ------ | ------ | -`returnData` | string | the data returned after transaction execution | +`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:** *[string, string]* +**Returns:** *`ContractTxFunctionObj>`* -An array representing the output results in order. Keynames of nested structs are preserved. +Array of amounts filled and fees paid by makers and taker. + +___ -#### getABIDecodedTransactionData +### batchFillOrdersNoThrow -▸ **getABIDecodedTransactionData**(`callData`: string): *[string]* +▸ **batchFillOrdersNoThrow**(`orders`: `Array`, `takerAssetFillAmounts`: `BigNumber`[], `signatures`: string[]): *`ContractTxFunctionObj>`* -*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:1023](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L1023)* +*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:3893](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L3893)* -Decode the ABI-encoded transaction data into its input arguments +Executes multiple calls of fillOrder. If any fill reverts, the error is caught and ignored. **Parameters:** Name | Type | Description | ------ | ------ | ------ | -`callData` | string | The ABI-encoded transaction data | +`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:** *[string]* +**Returns:** *`ContractTxFunctionObj>`* -An array representing the input arguments in order. Keynames of nested structs are preserved. +Array of amounts filled and fees paid by makers and taker. + +___ -#### getABIEncodedTransactionData +### batchMatchOrders -▸ **getABIEncodedTransactionData**(`encoded`: string): *string* +▸ **batchMatchOrders**(`leftOrders`: `Array`, `rightOrders`: `Array`, `leftSignatures`: string[], `rightSignatures`: string[]): *`ContractTxFunctionObj`* -*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:1010](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L1010)* +*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:4073](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L4073)* -Returns the ABI encoded transaction data needed to send an Ethereum transaction calling this method. Before -sending the Ethereum tx, this encoded tx data can first be sent to a separate signing service or can be used -to create a 0x transaction (see protocol spec for more details). +Match complementary orders that have a profitable spread. +Each order is filled at their respective price point, and +the matcher receives a profit denominated in the left maker asset. **Parameters:** Name | Type | Description | ------ | ------ | ------ | -`encoded` | string | ABI-encoded revert error. | +`leftOrders` | `Array` | Set of orders with the same maker / taker asset. | +`rightOrders` | `Array` | Set of orders to match against `leftOrders` | +`leftSignatures` | string[] | Proof that left orders were created by the left makers. | +`rightSignatures` | string[] | Proof that right orders were created by the right makers. | -**Returns:** *string* +**Returns:** *`ContractTxFunctionObj`* -The ABI encoded transaction data as a string +batchMatchedFillResults Amounts filled and profit generated. ___ -### decodeOrderEpochError - -#### ▪ **decodeOrderEpochError**: *object* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:1046](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L1046)* - -Decompose an ABI-encoded OrderEpochError. - -#### callAsync +### batchMatchOrdersWithMaximalFill -▸ **callAsync**(`encoded`: string, `callData`: `Partial`, `defaultBlock?`: [BlockParam](#blockparam)): *`Promise<[string, string, BigNumber]>`* +▸ **batchMatchOrdersWithMaximalFill**(`leftOrders`: `Array`, `rightOrders`: `Array`, `leftSignatures`: string[], `rightSignatures`: string[]): *`ContractTxFunctionObj`* -*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:1054](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L1054)* +*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:4298](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L4298)* -Sends a read-only call to the contract method. Returns the result that would happen if one were to send an -Ethereum transaction to this method, given the current state of the blockchain. Calls do not cost gas -since they don't modify state. +Match complementary orders that have a profitable spread. +Each order is maximally filled at their respective price point, and +the matcher receives a profit denominated in either the left maker asset, +right maker asset, or a combination of both. **Parameters:** -Name | Type | Default | Description | ------- | ------ | ------ | ------ | -`encoded` | string | - | ABI-encoded revert error. | -`callData` | `Partial` | {} | - | -`defaultBlock?` | [BlockParam](#blockparam) | - | - | +Name | Type | Description | +------ | ------ | ------ | +`leftOrders` | `Array` | Set of orders with the same maker / taker asset. | +`rightOrders` | `Array` | Set of orders to match against `leftOrders` | +`leftSignatures` | string[] | Proof that left orders were created by the left makers. | +`rightSignatures` | string[] | Proof that right orders were created by the right makers. | -**Returns:** *`Promise<[string, string, BigNumber]>`* +**Returns:** *`ContractTxFunctionObj`* -makerAddress The order maker.orderSenderAddress The order sender.currentEpoch The current epoch for the maker. +batchMatchedFillResults Amounts filled and profit generated. + +___ -#### getABIDecodedReturnData +### cancelOrder -▸ **getABIDecodedReturnData**(`returnData`: string): *[string, string, `BigNumber`]* +▸ **cancelOrder**(`order`: object): *`ContractTxFunctionObj`* -*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:1117](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L1117)* +*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:4514](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L4514)* -Decode the ABI-encoded return data from a transaction +After calling, the order can not be filled anymore. **Parameters:** Name | Type | Description | ------ | ------ | ------ | -`returnData` | string | the data returned after transaction execution | +`order` | object | Order struct containing order specifications. | -**Returns:** *[string, string, `BigNumber`]* +**Returns:** *`ContractTxFunctionObj`* -An array representing the output results in order. Keynames of nested structs are preserved. +___ -#### getABIDecodedTransactionData +### cancelOrdersUpTo -▸ **getABIDecodedTransactionData**(`callData`: string): *[string]* +▸ **cancelOrdersUpTo**(`targetOrderEpoch`: `BigNumber`): *`ContractTxFunctionObj`* -*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:1105](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L1105)* +*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:4654](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L4654)* -Decode the ABI-encoded transaction data into its input arguments +Cancels all orders created by makerAddress with a salt less than or equal to the targetOrderEpoch +and senderAddress equal to msg.sender (or null address if msg.sender == makerAddress). **Parameters:** Name | Type | Description | ------ | ------ | ------ | -`callData` | string | The ABI-encoded transaction data | - -**Returns:** *[string]* +`targetOrderEpoch` | `BigNumber` | Orders created with a salt less or equal to this value will be cancelled. | -An array representing the input arguments in order. Keynames of nested structs are preserved. +**Returns:** *`ContractTxFunctionObj`* -#### getABIEncodedTransactionData +___ -▸ **getABIEncodedTransactionData**(`encoded`: string): *string* +### cancelled -*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:1094](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L1094)* +▸ **cancelled**(`index_0`: string): *`ContractFunctionObj`* -Returns the ABI encoded transaction data needed to send an Ethereum transaction calling this method. Before -sending the Ethereum tx, this encoded tx data can first be sent to a separate signing service or can be used -to create a 0x transaction (see protocol spec for more details). +*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:4762](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L4762)* **Parameters:** -Name | Type | Description | ------- | ------ | ------ | -`encoded` | string | ABI-encoded revert error. | - -**Returns:** *string* +Name | Type | +------ | ------ | +`index_0` | string | -The ABI encoded transaction data as a string +**Returns:** *`ContractFunctionObj`* ___ -### decodeOrderStatusError +### currentContextAddress -#### ▪ **decodeOrderStatusError**: *object* +▸ **currentContextAddress**(): *`ContractFunctionObj`* -*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:1128](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L1128)* +*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:4810](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L4810)* -Decompose an ABI-encoded OrderStatusError. +**Returns:** *`ContractFunctionObj`* + +___ -#### callAsync +### executeTransaction -▸ **callAsync**(`encoded`: string, `callData`: `Partial`, `defaultBlock?`: [BlockParam](#blockparam)): *`Promise<[string, number]>`* +▸ **executeTransaction**(`transaction`: object, `signature`: string): *`ContractTxFunctionObj`* -*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:1136](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L1136)* +*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:4863](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L4863)* -Sends a read-only call to the contract method. Returns the result that would happen if one were to send an -Ethereum transaction to this method, given the current state of the blockchain. Calls do not cost gas -since they don't modify state. +Executes an Exchange method call in the context of signer. **Parameters:** -Name | Type | Default | Description | ------- | ------ | ------ | ------ | -`encoded` | string | - | ABI-encoded revert error. | -`callData` | `Partial` | {} | - | -`defaultBlock?` | [BlockParam](#blockparam) | - | - | +Name | Type | Description | +------ | ------ | ------ | +`transaction` | object | 0x transaction structure. | +`signature` | string | Proof that transaction has been signed by signer. | -**Returns:** *`Promise<[string, number]>`* +**Returns:** *`ContractTxFunctionObj`* -orderHash The order hash.orderStatus The order status. +ABI encoded return data of the underlying Exchange function call. + +___ -#### getABIDecodedReturnData +### fillOrKillOrder -▸ **getABIDecodedReturnData**(`returnData`: string): *[string, number]* +▸ **fillOrKillOrder**(`order`: object, `takerAssetFillAmount`: `BigNumber`, `signature`: string): *`ContractTxFunctionObj`* -*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:1199](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L1199)* +*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:4999](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L4999)* -Decode the ABI-encoded return data from a transaction +Fills the input order. Reverts if exact takerAssetFillAmount not filled. **Parameters:** Name | Type | Description | ------ | ------ | ------ | -`returnData` | string | the data returned after transaction execution | +`order` | object | Order struct containing order specifications. | +`takerAssetFillAmount` | `BigNumber` | Desired amount of takerAsset to sell. | +`signature` | string | Proof that order has been created by maker. | -**Returns:** *[string, number]* +**Returns:** *`ContractTxFunctionObj`* -An array representing the output results in order. Keynames of nested structs are preserved. +___ -#### getABIDecodedTransactionData +### fillOrder -▸ **getABIDecodedTransactionData**(`callData`: string): *[string]* +▸ **fillOrder**(`order`: object, `takerAssetFillAmount`: `BigNumber`, `signature`: string): *`ContractTxFunctionObj`* -*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:1187](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L1187)* +*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:5168](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L5168)* -Decode the ABI-encoded transaction data into its input arguments +Fills the input order. **Parameters:** Name | Type | Description | ------ | ------ | ------ | -`callData` | string | The ABI-encoded transaction data | +`order` | object | Order struct containing order specifications. | +`takerAssetFillAmount` | `BigNumber` | Desired amount of takerAsset to sell. | +`signature` | string | Proof that order has been created by maker. | -**Returns:** *[string]* +**Returns:** *`ContractTxFunctionObj`* -An array representing the input arguments in order. Keynames of nested structs are preserved. +Amounts filled and fees paid by maker and taker. -#### getABIEncodedTransactionData +___ -▸ **getABIEncodedTransactionData**(`encoded`: string): *string* +### filled -*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:1176](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L1176)* +▸ **filled**(`index_0`: string): *`ContractFunctionObj`* -Returns the ABI encoded transaction data needed to send an Ethereum transaction calling this method. Before -sending the Ethereum tx, this encoded tx data can first be sent to a separate signing service or can be used -to create a 0x transaction (see protocol spec for more details). +*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:5330](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L5330)* **Parameters:** -Name | Type | Description | ------- | ------ | ------ | -`encoded` | string | ABI-encoded revert error. | - -**Returns:** *string* +Name | Type | +------ | ------ | +`index_0` | string | -The ABI encoded transaction data as a string +**Returns:** *`ContractFunctionObj`* ___ -### decodeSignatureError - -#### ▪ **decodeSignatureError**: *object* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:1210](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L1210)* - -Decompose an ABI-encoded SignatureError. +### getABIDecodedReturnData -#### callAsync +▸ **getABIDecodedReturnData**<**T**>(`methodName`: string, `callData`: string): *`T`* -▸ **callAsync**(`encoded`: string, `callData`: `Partial`, `defaultBlock?`: [BlockParam](#blockparam)): *`Promise<[number, string, string, string]>`* +*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:3092](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L3092)* -*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:1218](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L1218)* +**Type parameters:** -Sends a read-only call to the contract method. Returns the result that would happen if one were to send an -Ethereum transaction to this method, given the current state of the blockchain. Calls do not cost gas -since they don't modify state. +▪ **T** **Parameters:** -Name | Type | Default | Description | ------- | ------ | ------ | ------ | -`encoded` | string | - | ABI-encoded revert error. | -`callData` | `Partial` | {} | - | -`defaultBlock?` | [BlockParam](#blockparam) | - | - | +Name | Type | +------ | ------ | +`methodName` | string | +`callData` | string | -**Returns:** *`Promise<[number, string, string, string]>`* +**Returns:** *`T`* -errorCode The error code.signerAddress The expected signer of the hash.signature The full signature. +___ -#### getABIDecodedReturnData +### getABIDecodedTransactionData -▸ **getABIDecodedReturnData**(`returnData`: string): *[number, string, string, string]* +▸ **getABIDecodedTransactionData**<**T**>(`methodName`: string, `callData`: string): *`T`* -*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:1281](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L1281)* +*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:3085](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L3085)* -Decode the ABI-encoded return data from a transaction +**Type parameters:** + +▪ **T** **Parameters:** -Name | Type | Description | ------- | ------ | ------ | -`returnData` | string | the data returned after transaction execution | +Name | Type | +------ | ------ | +`methodName` | string | +`callData` | string | -**Returns:** *[number, string, string, string]* +**Returns:** *`T`* -An array representing the output results in order. Keynames of nested structs are preserved. +___ -#### getABIDecodedTransactionData +### getAssetProxy -▸ **getABIDecodedTransactionData**(`callData`: string): *[string]* +▸ **getAssetProxy**(`assetProxyId`: string): *`ContractFunctionObj`* -*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:1269](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L1269)* +*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:5383](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L5383)* -Decode the ABI-encoded transaction data into its input arguments +Gets an asset proxy. **Parameters:** Name | Type | Description | ------ | ------ | ------ | -`callData` | string | The ABI-encoded transaction data | +`assetProxyId` | string | Id of the asset proxy. | -**Returns:** *[string]* +**Returns:** *`ContractFunctionObj`* -An array representing the input arguments in order. Keynames of nested structs are preserved. +The asset proxy registered to assetProxyId. Returns 0x0 if no proxy is registered. -#### getABIEncodedTransactionData +___ -▸ **getABIEncodedTransactionData**(`encoded`: string): *string* +### getFunctionSignature -*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:1258](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L1258)* +▸ **getFunctionSignature**(`methodName`: string): *string* -Returns the ABI encoded transaction data needed to send an Ethereum transaction calling this method. Before -sending the Ethereum tx, this encoded tx data can first be sent to a separate signing service or can be used -to create a 0x transaction (see protocol spec for more details). +*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:3079](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L3079)* **Parameters:** -Name | Type | Description | ------- | ------ | ------ | -`encoded` | string | ABI-encoded revert error. | +Name | Type | +------ | ------ | +`methodName` | string | **Returns:** *string* -The ABI encoded transaction data as a string - ___ -### decodeSignatureValidatorNotApprovedError +### getLogsAsync -#### ▪ **decodeSignatureValidatorNotApprovedError**: *object* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:1294](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L1294)* - -Decompose an ABI-encoded SignatureValidatorNotApprovedError. +▸ **getLogsAsync**<**ArgsType**>(`eventName`: [ExchangeEvents](#enumeration-exchangeevents), `blockRange`: `BlockRange`, `indexFilterValues`: `IndexedFilterValues`): *`Promise>>`* -#### callAsync +*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:8050](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L8050)* -▸ **callAsync**(`encoded`: string, `callData`: `Partial`, `defaultBlock?`: [BlockParam](#blockparam)): *`Promise<[string, string]>`* +Gets historical logs without creating a subscription -*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:1302](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L1302)* +**Type parameters:** -Sends a read-only call to the contract method. Returns the result that would happen if one were to send an -Ethereum transaction to this method, given the current state of the blockchain. Calls do not cost gas -since they don't modify state. +▪ **ArgsType**: *[ExchangeEventArgs](#exchangeeventargs)* **Parameters:** -Name | Type | Default | Description | ------- | ------ | ------ | ------ | -`encoded` | string | - | ABI-encoded revert error. | -`callData` | `Partial` | {} | - | -`defaultBlock?` | [BlockParam](#blockparam) | - | - | +Name | Type | Description | +------ | ------ | ------ | +`eventName` | [ExchangeEvents](#enumeration-exchangeevents) | The Exchange 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<[string, string]>`* +**Returns:** *`Promise>>`* -signerAddress The expected signer of the hash.validatorAddress The expected validator. +Array of logs that match the parameters + +___ -#### getABIDecodedReturnData +### getOrderInfo -▸ **getABIDecodedReturnData**(`returnData`: string): *[string, string]* +▸ **getOrderInfo**(`order`: object): *`ContractFunctionObj`* -*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:1370](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L1370)* +*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:5436](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L5436)* -Decode the ABI-encoded return data from a transaction +Gets information about an order: status, hash, and amount filled. **Parameters:** Name | Type | Description | ------ | ------ | ------ | -`returnData` | string | the data returned after transaction execution | +`order` | object | Order to gather information on. | -**Returns:** *[string, string]* +**Returns:** *`ContractFunctionObj`* -An array representing the output results in order. Keynames of nested structs are preserved. +OrderInfo Information about the order and its state. See LibOrder.OrderInfo for a complete description. -#### getABIDecodedTransactionData +___ -▸ **getABIDecodedTransactionData**(`callData`: string): *[string]* +### getSelector -*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:1358](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L1358)* +▸ **getSelector**(`methodName`: string): *string* -Decode the ABI-encoded transaction data into its input arguments +*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:3099](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L3099)* **Parameters:** -Name | Type | Description | ------- | ------ | ------ | -`callData` | string | The ABI-encoded transaction data | +Name | Type | +------ | ------ | +`methodName` | string | -**Returns:** *[string]* +**Returns:** *string* -An array representing the input arguments in order. Keynames of nested structs are preserved. +___ -#### getABIEncodedTransactionData +### isValidHashSignature -▸ **getABIEncodedTransactionData**(`encoded`: string): *string* +▸ **isValidHashSignature**(`hash`: string, `signerAddress`: string, `signature`: string): *`ContractFunctionObj`* -*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:1344](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L1344)* +*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:5520](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L5520)* -Returns the ABI encoded transaction data needed to send an Ethereum transaction calling this method. Before -sending the Ethereum tx, this encoded tx data can first be sent to a separate signing service or can be used -to create a 0x transaction (see protocol spec for more details). +Verifies that a hash has been signed by the given signer. **Parameters:** Name | Type | Description | ------ | ------ | ------ | -`encoded` | string | ABI-encoded revert error. | +`hash` | string | Any 32-byte hash. | +`signerAddress` | string | Address that should have signed the given hash. | +`signature` | string | Proof that the hash has been signed by signer. | -**Returns:** *string* +**Returns:** *`ContractFunctionObj`* -The ABI encoded transaction data as a string +isValid `true` if the signature is valid for the given hash and signer. ___ -### decodeSignatureWalletError - -#### ▪ **decodeSignatureWalletError**: *object* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:1381](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L1381)* - -Decompose an ABI-encoded SignatureWalletError. - -#### callAsync +### isValidOrderSignature -▸ **callAsync**(`encoded`: string, `callData`: `Partial`, `defaultBlock?`: [BlockParam](#blockparam)): *`Promise<[string, string, string, string]>`* +▸ **isValidOrderSignature**(`order`: object, `signature`: string): *`ContractFunctionObj`* -*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:1389](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L1389)* +*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:5583](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L5583)* -Sends a read-only call to the contract method. Returns the result that would happen if one were to send an -Ethereum transaction to this method, given the current state of the blockchain. Calls do not cost gas -since they don't modify state. +Verifies that a signature for an order is valid. **Parameters:** -Name | Type | Default | Description | ------- | ------ | ------ | ------ | -`encoded` | string | - | ABI-encoded revert error. | -`callData` | `Partial` | {} | - | -`defaultBlock?` | [BlockParam](#blockparam) | - | - | +Name | Type | Description | +------ | ------ | ------ | +`order` | object | The order. | +`signature` | string | Proof that the order has been signed by signer. | -**Returns:** *`Promise<[string, string, string, string]>`* +**Returns:** *`ContractFunctionObj`* -errorCode The error code.signerAddress The expected signer of the hash.signature The full signature bytes.errorData The revert data thrown by the validator contract. +isValid `true` if the signature is valid for the given order and signer. + +___ -#### getABIDecodedReturnData +### isValidTransactionSignature -▸ **getABIDecodedReturnData**(`returnData`: string): *[string, string, string, string]* +▸ **isValidTransactionSignature**(`transaction`: object, `signature`: string): *`ContractFunctionObj`* -*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:1454](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L1454)* +*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:5664](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L5664)* -Decode the ABI-encoded return data from a transaction +Verifies that a signature for a transaction is valid. **Parameters:** Name | Type | Description | ------ | ------ | ------ | -`returnData` | string | the data returned after transaction execution | +`transaction` | object | The transaction. | +`signature` | string | Proof that the order has been signed by signer. | -**Returns:** *[string, string, string, string]* +**Returns:** *`ContractFunctionObj`* -An array representing the output results in order. Keynames of nested structs are preserved. +isValid `true` if the signature is valid for the given transaction and signer. + +___ -#### getABIDecodedTransactionData +### marketBuyOrdersFillOrKill -▸ **getABIDecodedTransactionData**(`callData`: string): *[string]* +▸ **marketBuyOrdersFillOrKill**(`orders`: `Array`, `makerAssetFillAmount`: `BigNumber`, `signatures`: string[]): *`ContractTxFunctionObj`* -*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:1442](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L1442)* +*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:5738](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L5738)* -Decode the ABI-encoded transaction data into its input arguments +Calls marketBuyOrdersNoThrow then reverts if < makerAssetFillAmount has been bought. +NOTE: This function does not enforce that the makerAsset is the same for each order. **Parameters:** Name | Type | Description | ------ | ------ | ------ | -`callData` | string | The ABI-encoded transaction data | +`orders` | `Array` | Array of order specifications. | +`makerAssetFillAmount` | `BigNumber` | Minimum amount of makerAsset to buy. | +`signatures` | string[] | Proofs that orders have been signed by makers. | + +**Returns:** *`ContractTxFunctionObj`* -**Returns:** *[string]* +Amounts filled and fees paid by makers and taker. -An array representing the input arguments in order. Keynames of nested structs are preserved. +___ -#### getABIEncodedTransactionData +### marketBuyOrdersNoThrow -▸ **getABIEncodedTransactionData**(`encoded`: string): *string* +▸ **marketBuyOrdersNoThrow**(`orders`: `Array`, `makerAssetFillAmount`: `BigNumber`, `signatures`: string[]): *`ContractTxFunctionObj`* -*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:1429](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L1429)* +*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:5909](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L5909)* -Returns the ABI encoded transaction data needed to send an Ethereum transaction calling this method. Before -sending the Ethereum tx, this encoded tx data can first be sent to a separate signing service or can be used -to create a 0x transaction (see protocol spec for more details). +Executes multiple calls of fillOrder until total amount of makerAsset is bought by taker. +If any fill reverts, the error is caught and ignored. +NOTE: This function does not enforce that the makerAsset is the same for each order. **Parameters:** Name | Type | Description | ------ | ------ | ------ | -`encoded` | string | ABI-encoded revert error. | +`orders` | `Array` | Array of order specifications. | +`makerAssetFillAmount` | `BigNumber` | Desired amount of makerAsset to buy. | +`signatures` | string[] | Proofs that orders have been signed by makers. | -**Returns:** *string* +**Returns:** *`ContractTxFunctionObj`* -The ABI encoded transaction data as a string +Amounts filled and fees paid by makers and taker. ___ -### decodeTransactionError - -#### ▪ **decodeTransactionError**: *object* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:1467](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L1467)* - -Decompose an ABI-encoded TransactionError. - -#### callAsync +### marketSellOrdersFillOrKill -▸ **callAsync**(`encoded`: string, `callData`: `Partial`, `defaultBlock?`: [BlockParam](#blockparam)): *`Promise<[number, string]>`* +▸ **marketSellOrdersFillOrKill**(`orders`: `Array`, `takerAssetFillAmount`: `BigNumber`, `signatures`: string[]): *`ContractTxFunctionObj`* -*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:1475](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L1475)* +*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:6079](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L6079)* -Sends a read-only call to the contract method. Returns the result that would happen if one were to send an -Ethereum transaction to this method, given the current state of the blockchain. Calls do not cost gas -since they don't modify state. +Calls marketSellOrdersNoThrow then reverts if < takerAssetFillAmount has been sold. +NOTE: This function does not enforce that the takerAsset is the same for each order. **Parameters:** -Name | Type | Default | Description | ------- | ------ | ------ | ------ | -`encoded` | string | - | ABI-encoded revert error. | -`callData` | `Partial` | {} | - | -`defaultBlock?` | [BlockParam](#blockparam) | - | - | +Name | Type | Description | +------ | ------ | ------ | +`orders` | `Array` | Array of order specifications. | +`takerAssetFillAmount` | `BigNumber` | Minimum amount of takerAsset to sell. | +`signatures` | string[] | Proofs that orders have been signed by makers. | -**Returns:** *`Promise<[number, string]>`* +**Returns:** *`ContractTxFunctionObj`* -errorCode The error code.transactionHash Hash of the transaction. +Amounts filled and fees paid by makers and taker. -#### getABIDecodedReturnData +___ + +### marketSellOrdersNoThrow -▸ **getABIDecodedReturnData**(`returnData`: string): *[number, string]* +▸ **marketSellOrdersNoThrow**(`orders`: `Array`, `takerAssetFillAmount`: `BigNumber`, `signatures`: string[]): *`ContractTxFunctionObj`* -*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:1538](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L1538)* +*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:6250](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L6250)* -Decode the ABI-encoded return data from a transaction +Executes multiple calls of fillOrder until total amount of takerAsset is sold by taker. +If any fill reverts, the error is caught and ignored. +NOTE: This function does not enforce that the takerAsset is the same for each order. **Parameters:** Name | Type | Description | ------ | ------ | ------ | -`returnData` | string | the data returned after transaction execution | +`orders` | `Array` | Array of order specifications. | +`takerAssetFillAmount` | `BigNumber` | Desired amount of takerAsset to sell. | +`signatures` | string[] | Proofs that orders have been signed by makers. | + +**Returns:** *`ContractTxFunctionObj`* -**Returns:** *[number, string]* +Amounts filled and fees paid by makers and taker. -An array representing the output results in order. Keynames of nested structs are preserved. +___ -#### getABIDecodedTransactionData +### matchOrders -▸ **getABIDecodedTransactionData**(`callData`: string): *[string]* +▸ **matchOrders**(`leftOrder`: object, `rightOrder`: object, `leftSignature`: string, `rightSignature`: string): *`ContractTxFunctionObj`* -*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:1526](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L1526)* +*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:6423](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L6423)* -Decode the ABI-encoded transaction data into its input arguments +Match two complementary orders that have a profitable spread. +Each order is filled at their respective price point. However, the calculations are +carried out as though the orders are both being filled at the right order's price point. +The profit made by the left order goes to the taker (who matched the two orders). **Parameters:** Name | Type | Description | ------ | ------ | ------ | -`callData` | string | The ABI-encoded transaction data | +`leftOrder` | object | First order to match. | +`rightOrder` | object | Second order to match. | +`leftSignature` | string | Proof that order was created by the left maker. | +`rightSignature` | string | Proof that order was created by the right maker. | + +**Returns:** *`ContractTxFunctionObj`* -**Returns:** *[string]* +matchedFillResults Amounts filled and fees paid by maker and taker of matched orders. -An array representing the input arguments in order. Keynames of nested structs are preserved. +___ -#### getABIEncodedTransactionData +### matchOrdersWithMaximalFill -▸ **getABIEncodedTransactionData**(`encoded`: string): *string* +▸ **matchOrdersWithMaximalFill**(`leftOrder`: object, `rightOrder`: object, `leftSignature`: string, `rightSignature`: string): *`ContractTxFunctionObj`* -*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:1515](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L1515)* +*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:6645](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L6645)* -Returns the ABI encoded transaction data needed to send an Ethereum transaction calling this method. Before -sending the Ethereum tx, this encoded tx data can first be sent to a separate signing service or can be used -to create a 0x transaction (see protocol spec for more details). +Match two complementary orders that have a profitable spread. +Each order is maximally filled at their respective price point, and +the matcher receives a profit denominated in either the left maker asset, +right maker asset, or a combination of both. **Parameters:** Name | Type | Description | ------ | ------ | ------ | -`encoded` | string | ABI-encoded revert error. | +`leftOrder` | object | First order to match. | +`rightOrder` | object | Second order to match. | +`leftSignature` | string | Proof that order was created by the left maker. | +`rightSignature` | string | Proof that order was created by the right maker. | -**Returns:** *string* +**Returns:** *`ContractTxFunctionObj`* -The ABI encoded transaction data as a string +matchedFillResults Amounts filled by maker and taker of matched orders. ___ -### decodeTransactionExecutionError +### orderEpoch -#### ▪ **decodeTransactionExecutionError**: *object* +▸ **orderEpoch**(`index_0`: string, `index_1`: string): *`ContractFunctionObj`* -*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:1549](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L1549)* +*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:6856](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L6856)* -Decompose an ABI-encoded TransactionExecutionError. +**Parameters:** -#### callAsync +Name | Type | +------ | ------ | +`index_0` | string | +`index_1` | string | -▸ **callAsync**(`encoded`: string, `callData`: `Partial`, `defaultBlock?`: [BlockParam](#blockparam)): *`Promise<[string, string]>`* +**Returns:** *`ContractFunctionObj`* -*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:1557](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L1557)* +___ -Sends a read-only call to the contract method. Returns the result that would happen if one were to send an -Ethereum transaction to this method, given the current state of the blockchain. Calls do not cost gas -since they don't modify state. +### owner -**Parameters:** +▸ **owner**(): *`ContractFunctionObj`* -Name | Type | Default | Description | ------- | ------ | ------ | ------ | -`encoded` | string | - | ABI-encoded revert error. | -`callData` | `Partial` | {} | - | -`defaultBlock?` | [BlockParam](#blockparam) | - | - | +*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:6911](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L6911)* -**Returns:** *`Promise<[string, string]>`* +**Returns:** *`ContractFunctionObj`* -transactionHash Hash of the transaction.errorData Error thrown by exeucteTransaction(). +___ -#### getABIDecodedReturnData +### preSign -▸ **getABIDecodedReturnData**(`returnData`: string): *[string, string]* +▸ **preSign**(`hash`: string): *`ContractTxFunctionObj`* -*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:1622](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L1622)* +*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:6963](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L6963)* -Decode the ABI-encoded return data from a transaction +Approves a hash on-chain. +After presigning a hash, the preSign signature type will become valid for that hash and signer. **Parameters:** Name | Type | Description | ------ | ------ | ------ | -`returnData` | string | the data returned after transaction execution | +`hash` | string | Any 32-byte hash. | -**Returns:** *[string, string]* +**Returns:** *`ContractTxFunctionObj`* -An array representing the output results in order. Keynames of nested structs are preserved. - -#### getABIDecodedTransactionData +___ -▸ **getABIDecodedTransactionData**(`callData`: string): *[string]* +### preSigned -*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:1610](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L1610)* +▸ **preSigned**(`index_0`: string, `index_1`: string): *`ContractFunctionObj`* -Decode the ABI-encoded transaction data into its input arguments +*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:7069](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L7069)* **Parameters:** -Name | Type | Description | ------- | ------ | ------ | -`callData` | string | The ABI-encoded transaction data | +Name | Type | +------ | ------ | +`index_0` | string | +`index_1` | string | -**Returns:** *[string]* +**Returns:** *`ContractFunctionObj`* -An array representing the input arguments in order. Keynames of nested structs are preserved. +___ -#### getABIEncodedTransactionData +### protocolFeeCollector -▸ **getABIEncodedTransactionData**(`encoded`: string): *string* +▸ **protocolFeeCollector**(): *`ContractFunctionObj`* -*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:1597](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L1597)* +*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:7124](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L7124)* -Returns the ABI encoded transaction data needed to send an Ethereum transaction calling this method. Before -sending the Ethereum tx, this encoded tx data can first be sent to a separate signing service or can be used -to create a 0x transaction (see protocol spec for more details). +**Returns:** *`ContractFunctionObj`* -**Parameters:** +___ -Name | Type | Description | ------- | ------ | ------ | -`encoded` | string | ABI-encoded revert error. | +### protocolFeeMultiplier -**Returns:** *string* +▸ **protocolFeeMultiplier**(): *`ContractFunctionObj`* -The ABI encoded transaction data as a string +*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:7171](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L7171)* + +**Returns:** *`ContractFunctionObj`* ___ -### decodeZeroExTransactionData +### registerAssetProxy -#### ▪ **decodeZeroExTransactionData**: *object* +▸ **registerAssetProxy**(`assetProxy`: string): *`ContractTxFunctionObj`* -*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:1633](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L1633)* +*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:7223](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L7223)* -Decodes the call data for an Exchange contract method call. +Registers an asset proxy to its asset proxy id. +Once an asset proxy is registered, it cannot be unregistered. + +**Parameters:** + +Name | Type | Description | +------ | ------ | ------ | +`assetProxy` | string | Address of new asset proxy to register. | + +**Returns:** *`ContractTxFunctionObj`* -#### callAsync +___ + +### setProtocolFeeCollectorAddress -▸ **callAsync**(`transactionData`: string, `callData`: `Partial`, `defaultBlock?`: [BlockParam](#blockparam)): *`Promise<[string, Array, BigNumber[], string[]]>`* +▸ **setProtocolFeeCollectorAddress**(`updatedProtocolFeeCollector`: string): *`ContractTxFunctionObj`* -*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:1642](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L1642)* +*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:7342](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L7342)* -Sends a read-only call to the contract method. Returns the result that would happen if one were to send an -Ethereum transaction to this method, given the current state of the blockchain. Calls do not cost gas -since they don't modify state. +Allows the owner to update the protocolFeeCollector address. **Parameters:** -Name | Type | Default | Description | ------- | ------ | ------ | ------ | -`transactionData` | string | - | ABI-encoded calldata for an Exchange contract method call. | -`callData` | `Partial` | {} | - | -`defaultBlock?` | [BlockParam](#blockparam) | - | - | +Name | Type | Description | +------ | ------ | ------ | +`updatedProtocolFeeCollector` | string | The updated protocolFeeCollector contract address. | -**Returns:** *`Promise<[string, Array, BigNumber[], string[]]>`* +**Returns:** *`ContractTxFunctionObj`* -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. +___ -#### getABIDecodedReturnData +### setProtocolFeeMultiplier -▸ **getABIDecodedReturnData**(`returnData`: string): *[string, `Array`, `BigNumber`[], string[]]* +▸ **setProtocolFeeMultiplier**(`updatedProtocolFeeMultiplier`: `BigNumber`): *`ContractTxFunctionObj`* -*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:1752](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L1752)* +*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:7461](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L7461)* -Decode the ABI-encoded return data from a transaction +Allows the owner to update the protocol fee multiplier. **Parameters:** Name | Type | Description | ------ | ------ | ------ | -`returnData` | string | the data returned after transaction execution | +`updatedProtocolFeeMultiplier` | `BigNumber` | The updated protocol fee multiplier. | -**Returns:** *[string, `Array`, `BigNumber`[], string[]]* +**Returns:** *`ContractTxFunctionObj`* -An array representing the output results in order. Keynames of nested structs are preserved. +___ -#### getABIDecodedTransactionData +### setSignatureValidatorApproval -▸ **getABIDecodedTransactionData**(`callData`: string): *[string]* +▸ **setSignatureValidatorApproval**(`validatorAddress`: string, `approval`: boolean): *`ContractTxFunctionObj`* -*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:1740](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L1740)* +*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:7581](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L7581)* -Decode the ABI-encoded transaction data into its input arguments +Approves/unnapproves a Validator contract to verify signatures on signer's behalf +using the `Validator` signature type. **Parameters:** Name | Type | Description | ------ | ------ | ------ | -`callData` | string | The ABI-encoded transaction data | +`validatorAddress` | string | Address of Validator contract. | +`approval` | boolean | Approval or disapproval of Validator contract. | -**Returns:** *[string]* +**Returns:** *`ContractTxFunctionObj`* -An array representing the input arguments in order. Keynames of nested structs are preserved. +___ -#### getABIEncodedTransactionData +### simulateDispatchTransferFromCalls -▸ **getABIEncodedTransactionData**(`transactionData`: string): *string* +▸ **simulateDispatchTransferFromCalls**(`assetData`: string[], `fromAddresses`: string[], `toAddresses`: string[], `amounts`: `BigNumber`[]): *`ContractTxFunctionObj`* -*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:1727](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L1727)* +*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:7712](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L7712)* -Returns the ABI encoded transaction data needed to send an Ethereum transaction calling this method. Before -sending the Ethereum tx, this encoded tx data can first be sent to a separate signing service or can be used -to create a 0x transaction (see protocol spec for more details). +This function may be used to simulate any amount of transfers As they would occur through the Exchange contract. Note that this function will always revert, even if all transfers are successful. However, it may be used with eth_call or with a try/catch pattern in order to simulate the results of the transfers. **Parameters:** Name | Type | Description | ------ | ------ | ------ | -`transactionData` | string | ABI-encoded calldata for an Exchange contract method call. | +`assetData` | string[] | Array of asset details, each encoded per the AssetProxy contract specification. | +`fromAddresses` | string[] | Array containing the `from` addresses that correspond with each transfer. | +`toAddresses` | string[] | Array containing the `to` addresses that correspond with each transfer. | +`amounts` | `BigNumber`[] | Array containing the amounts that correspond to each transfer. | -**Returns:** *string* +**Returns:** *`ContractTxFunctionObj`* -The ABI encoded transaction data as a string +This function does not return a value. However, it will always revert with `Error("TRANSFERS_SUCCESSFUL")` if all of the transfers were successful. ___ -### encodeERC1155AssetData - -#### ▪ **encodeERC1155AssetData**: *object* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:1807](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L1807)* +### subscribe -Encode ERC-1155 asset data into the format described in the AssetProxy contract specification. +▸ **subscribe**<**ArgsType**>(`eventName`: [ExchangeEvents](#enumeration-exchangeevents), `indexFilterValues`: `IndexedFilterValues`, `callback`: [EventCallback](#eventcallback)‹*`ArgsType`*›, `isVerbose`: boolean, `blockPollingIntervalMs?`: undefined | number): *string* -#### callAsync +*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:8008](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L8008)* -▸ **callAsync**(`tokenAddress`: string, `tokenIds`: `BigNumber`[], `tokenValues`: `BigNumber`[], `callbackData`: string, `callData`: `Partial`, `defaultBlock?`: [BlockParam](#blockparam)): *`Promise`* +Subscribe to an event type emitted by the Exchange contract. -*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:1820](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L1820)* +**Type parameters:** -Sends a read-only call to the contract method. Returns the result that would happen if one were to send an -Ethereum transaction to this method, given the current state of the blockchain. Calls do not cost gas -since they don't modify state. +▪ **ArgsType**: *[ExchangeEventArgs](#exchangeeventargs)* **Parameters:** Name | Type | Default | 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. | -`callData` | `Partial` | {} | - | -`defaultBlock?` | [BlockParam](#blockparam) | - | - | +`eventName` | [ExchangeEvents](#enumeration-exchangeevents) | - | The Exchange 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:** *`Promise`* +**Returns:** *string* -AssetProxy-compliant asset data describing the set of assets. +Subscription token used later to unsubscribe -#### getABIDecodedReturnData +___ -▸ **getABIDecodedReturnData**(`returnData`: string): *string* +### transactionsExecuted -*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:1908](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L1908)* +▸ **transactionsExecuted**(`index_0`: string): *`ContractFunctionObj`* -Decode the ABI-encoded return data from a transaction +*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:7840](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L7840)* **Parameters:** -Name | Type | Description | ------- | ------ | ------ | -`returnData` | string | the data returned after transaction execution | - -**Returns:** *string* +Name | Type | +------ | ------ | +`index_0` | string | -An array representing the output results in order. Keynames of nested structs are preserved. +**Returns:** *`ContractFunctionObj`* -#### getABIDecodedTransactionData +___ -▸ **getABIDecodedTransactionData**(`callData`: string): *string* +### transferOwnership -*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:1896](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L1896)* +▸ **transferOwnership**(`newOwner`: string): *`ContractTxFunctionObj`* -Decode the ABI-encoded transaction data into its input arguments +*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:7890](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L7890)* **Parameters:** -Name | Type | Description | ------- | ------ | ------ | -`callData` | string | The ABI-encoded transaction data | +Name | Type | +------ | ------ | +`newOwner` | string | -**Returns:** *string* +**Returns:** *`ContractTxFunctionObj`* -An array representing the input arguments in order. Keynames of nested structs are preserved. +___ -#### getABIEncodedTransactionData +### unsubscribe -▸ **getABIEncodedTransactionData**(`tokenAddress`: string, `tokenIds`: `BigNumber`[], `tokenValues`: `BigNumber`[], `callbackData`: string): *string* +▸ **unsubscribe**(`subscriptionToken`: string): *void* -*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:1874](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L1874)* +*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:8033](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L8033)* -Returns the ABI encoded transaction data needed to send an Ethereum transaction calling this method. Before -sending the Ethereum tx, this encoded tx data can first be sent to a separate signing service or can be used -to create a 0x transaction (see protocol spec for more details). +Cancel a subscription **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. | +`subscriptionToken` | string | Subscription token returned by `subscribe()` | -**Returns:** *string* +**Returns:** *void* + +___ + +### unsubscribeAll + +▸ **unsubscribeAll**(): *void* + +*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:8039](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L8039)* -The ABI encoded transaction data as a string +Cancels all existing subscriptions + +**Returns:** *void* ___ -### encodeERC20AssetData +### `Static` ABI -#### ▪ **encodeERC20AssetData**: *object* +▸ **ABI**(): *[ContractAbi](#contractabi)* -*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:1919](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L1919)* +*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:198](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L198)* -Encode ERC-20 asset data into the format described in the AssetProxy contract specification. +**Returns:** *[ContractAbi](#contractabi)* -#### callAsync +The contract ABI + +___ -▸ **callAsync**(`tokenAddress`: string, `callData`: `Partial`, `defaultBlock?`: [BlockParam](#blockparam)): *`Promise`* +### `Static` deployAsync -*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:1928](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L1928)* +▸ **deployAsync**(`bytecode`: string, `abi`: [ContractAbi](#contractabi), `supportedProvider`: [SupportedProvider](#supportedprovider), `txDefaults`: `Partial`, `logDecodeDependencies`: object, `chainId`: `BigNumber`): *`Promise`* -Sends a read-only call to the contract method. Returns the result that would happen if one were to send an -Ethereum transaction to this method, given the current state of the blockchain. Calls do not cost gas -since they don't modify state. +*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:151](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L151)* **Parameters:** -Name | Type | Default | Description | ------- | ------ | ------ | ------ | -`tokenAddress` | string | - | The address of the ERC-20 contract hosting the asset to be traded. | -`callData` | `Partial` | {} | - | -`defaultBlock?` | [BlockParam](#blockparam) | - | - | - -**Returns:** *`Promise`* +Name | Type | +------ | ------ | +`bytecode` | string | +`abi` | [ContractAbi](#contractabi) | +`supportedProvider` | [SupportedProvider](#supportedprovider) | +`txDefaults` | `Partial` | +`logDecodeDependencies` | object | +`chainId` | `BigNumber` | -AssetProxy-compliant data describing the asset. +**Returns:** *`Promise`* -#### getABIDecodedReturnData +___ -▸ **getABIDecodedReturnData**(`returnData`: string): *string* +### `Static` deployFrom0xArtifactAsync -*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:1996](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L1996)* +▸ **deployFrom0xArtifactAsync**(`artifact`: `ContractArtifact` | `SimpleContractArtifact`, `supportedProvider`: [SupportedProvider](#supportedprovider), `txDefaults`: `Partial`, `logDecodeDependencies`: object, `chainId`: `BigNumber`): *`Promise`* -Decode the ABI-encoded return data from a transaction +*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:125](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L125)* **Parameters:** -Name | Type | Description | ------- | ------ | ------ | -`returnData` | string | the data returned after transaction execution | +Name | Type | +------ | ------ | +`artifact` | `ContractArtifact` \| `SimpleContractArtifact` | +`supportedProvider` | [SupportedProvider](#supportedprovider) | +`txDefaults` | `Partial` | +`logDecodeDependencies` | object | +`chainId` | `BigNumber` | -**Returns:** *string* +**Returns:** *`Promise`* + +___ -An array representing the output results in order. Keynames of nested structs are preserved. +### `Static` strictArgumentEncodingCheck -#### getABIDecodedTransactionData +▸ **strictArgumentEncodingCheck**(`inputAbi`: `DataItem`[], `args`: any[]): *string* -▸ **getABIDecodedTransactionData**(`callData`: string): *string* -*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:1984](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L1984)* -Decode the ABI-encoded transaction data into its input arguments +Defined in base-contract/lib/src/index.d.ts:42 **Parameters:** -Name | Type | Description | ------- | ------ | ------ | -`callData` | string | The ABI-encoded transaction data | +Name | Type | +------ | ------ | +`inputAbi` | `DataItem`[] | +`args` | any[] | **Returns:** *string* -An array representing the input arguments in order. Keynames of nested structs are preserved. +
-#### getABIEncodedTransactionData +# Class: IValidatorContract -▸ **getABIEncodedTransactionData**(`tokenAddress`: string): *string* -*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:1971](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L1971)* +## Constructors -Returns the ABI encoded transaction data needed to send an Ethereum transaction calling this method. Before -sending the Ethereum tx, this encoded tx data can first be sent to a separate signing service or can be used -to create a 0x transaction (see protocol spec for more details). -**Parameters:** -Name | Type | Description | ------- | ------ | ------ | -`tokenAddress` | string | The address of the ERC-20 contract hosting the asset to be traded. | +\+ **new IValidatorContract**(`address`: string, `supportedProvider`: [SupportedProvider](#supportedprovider), `txDefaults?`: `Partial`, `logDecodeDependencies?`: undefined | object, `deployedBytecode`: string | undefined): *[IValidatorContract](#class-ivalidatorcontract)* -**Returns:** *string* +*Overrides void* -The ABI encoded transaction data as a string +*Defined in [abi-gen-wrappers/src/generated-wrappers/i_validator.ts:234](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/i_validator.ts#L234)* -___ +**Parameters:** -### encodeERC721AssetData +Name | Type | Default | +------ | ------ | ------ | +`address` | string | - | +`supportedProvider` | [SupportedProvider](#supportedprovider) | - | +`txDefaults?` | `Partial` | - | +`logDecodeDependencies?` | undefined \| object | - | +`deployedBytecode` | string \| undefined | IValidatorContract.deployedBytecode | -#### ▪ **encodeERC721AssetData**: *object* +**Returns:** *[IValidatorContract](#class-ivalidatorcontract)* -*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:2007](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L2007)* +## Properties -Encode ERC-721 asset data into the format described in the AssetProxy specification. +### `Optional` _deployedBytecodeIfExists -#### callAsync +• **_deployedBytecodeIfExists**? : *`Buffer`* -▸ **callAsync**(`tokenAddress`: string, `tokenId`: `BigNumber`, `callData`: `Partial`, `defaultBlock?`: [BlockParam](#blockparam)): *`Promise`* -*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:2017](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L2017)* -Sends a read-only call to the contract method. Returns the result that would happen if one were to send an -Ethereum transaction to this method, given the current state of the blockchain. Calls do not cost gas -since they don't modify state. +Defined in base-contract/lib/src/index.d.ts:32 -**Parameters:** +___ -Name | Type | Default | 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. | -`callData` | `Partial` | {} | - | -`defaultBlock?` | [BlockParam](#blockparam) | - | - | +### abi -**Returns:** *`Promise`* +• **abi**: *[ContractAbi](#contractabi)* -AssetProxy-compliant asset data describing the asset. -#### getABIDecodedReturnData -▸ **getABIDecodedReturnData**(`returnData`: string): *string* +Defined in base-contract/lib/src/index.d.ts:28 -*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:2091](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L2091)* +___ -Decode the ABI-encoded return data from a transaction +### address -**Parameters:** +• **address**: *string* -Name | Type | Description | ------- | ------ | ------ | -`returnData` | string | the data returned after transaction execution | -**Returns:** *string* -An array representing the output results in order. Keynames of nested structs are preserved. +Defined in base-contract/lib/src/index.d.ts:29 -#### getABIDecodedTransactionData +___ -▸ **getABIDecodedTransactionData**(`callData`: string): *string* +Args -*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:2079](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L2079)* +• **constructorArgs**: *any[]* -Decode the ABI-encoded transaction data into its input arguments -**Parameters:** -Name | Type | Description | ------- | ------ | ------ | -`callData` | string | The ABI-encoded transaction data | +Defined in base-contract/lib/src/index.d.ts:31 -**Returns:** *string* +___ -An array representing the input arguments in order. Keynames of nested structs are preserved. +### contractName -#### getABIEncodedTransactionData +• **contractName**: *string* -▸ **getABIEncodedTransactionData**(`tokenAddress`: string, `tokenId`: `BigNumber`): *string* -*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:2064](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L2064)* -Returns the ABI encoded transaction data needed to send an Ethereum transaction calling this method. Before -sending the Ethereum tx, this encoded tx data can first be sent to a separate signing service or can be used -to create a 0x transaction (see protocol spec for more details). +Defined in base-contract/lib/src/index.d.ts:30 -**Parameters:** +## Methods -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. | +### getABIDecodedReturnData -**Returns:** *string* +▸ **getABIDecodedReturnData**<**T**>(`methodName`: string, `callData`: string): *`T`* -The ABI encoded transaction data as a string +*Defined in [abi-gen-wrappers/src/generated-wrappers/i_validator.ts:157](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/i_validator.ts#L157)* -___ +**Type parameters:** -### encodeMultiAssetData +▪ **T** -#### ▪ **encodeMultiAssetData**: *object* +**Parameters:** -*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:2102](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L2102)* +Name | Type | +------ | ------ | +`methodName` | string | +`callData` | string | -Encode data for multiple assets, per the AssetProxy contract specification. +**Returns:** *`T`* -#### callAsync +___ -▸ **callAsync**(`amounts`: `BigNumber`[], `nestedAssetData`: string[], `callData`: `Partial`, `defaultBlock?`: [BlockParam](#blockparam)): *`Promise`* +### getABIDecodedTransactionData -*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:2112](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L2112)* +▸ **getABIDecodedTransactionData**<**T**>(`methodName`: string, `callData`: string): *`T`* -Sends a read-only call to the contract method. Returns the result that would happen if one were to send an -Ethereum transaction to this method, given the current state of the blockchain. Calls do not cost gas -since they don't modify state. +*Defined in [abi-gen-wrappers/src/generated-wrappers/i_validator.ts:150](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/i_validator.ts#L150)* -**Parameters:** +**Type parameters:** -Name | Type | Default | Description | ------- | ------ | ------ | ------ | -`amounts` | `BigNumber`[] | - | The amounts of each asset to be traded. | -`nestedAssetData` | string[] | - | AssetProxy-compliant data describing each asset to be traded. | -`callData` | `Partial` | {} | - | -`defaultBlock?` | [BlockParam](#blockparam) | - | - | +▪ **T** -**Returns:** *`Promise`* +**Parameters:** -AssetProxy-compliant data describing the set of assets. +Name | Type | +------ | ------ | +`methodName` | string | +`callData` | string | + +**Returns:** *`T`* -#### getABIDecodedReturnData +___ -▸ **getABIDecodedReturnData**(`returnData`: string): *string* +### getFunctionSignature -*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:2186](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L2186)* +▸ **getFunctionSignature**(`methodName`: string): *string* -Decode the ABI-encoded return data from a transaction +*Defined in [abi-gen-wrappers/src/generated-wrappers/i_validator.ts:144](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/i_validator.ts#L144)* **Parameters:** -Name | Type | Description | ------- | ------ | ------ | -`returnData` | string | the data returned after transaction execution | +Name | Type | +------ | ------ | +`methodName` | string | **Returns:** *string* -An array representing the output results in order. Keynames of nested structs are preserved. - -#### getABIDecodedTransactionData +___ -▸ **getABIDecodedTransactionData**(`callData`: string): *`BigNumber`[]* +### getSelector -*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:2174](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L2174)* +▸ **getSelector**(`methodName`: string): *string* -Decode the ABI-encoded transaction data into its input arguments +*Defined in [abi-gen-wrappers/src/generated-wrappers/i_validator.ts:164](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/i_validator.ts#L164)* **Parameters:** -Name | Type | Description | ------- | ------ | ------ | -`callData` | string | The ABI-encoded transaction data | +Name | Type | +------ | ------ | +`methodName` | string | -**Returns:** *`BigNumber`[]* +**Returns:** *string* -An array representing the input arguments in order. Keynames of nested structs are preserved. +___ -#### getABIEncodedTransactionData +### isValidSignature -▸ **getABIEncodedTransactionData**(`amounts`: `BigNumber`[], `nestedAssetData`: string[]): *string* +▸ **isValidSignature**(`hash`: string, `signerAddress`: string, `signature`: string): *`ContractFunctionObj`* -*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:2159](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L2159)* +*Defined in [abi-gen-wrappers/src/generated-wrappers/i_validator.ts:178](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/i_validator.ts#L178)* -Returns the ABI encoded transaction data needed to send an Ethereum transaction calling this method. Before -sending the Ethereum tx, this encoded tx data can first be sent to a separate signing service or can be used -to create a 0x transaction (see protocol spec for more details). +Verifies that a signature is valid. **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. | +`hash` | string | Message hash that is signed. | +`signerAddress` | string | Address that should have signed the given hash. | +`signature` | string | Proof of signing. | -**Returns:** *string* +**Returns:** *`ContractFunctionObj`* -The ABI encoded transaction data as a string +Magic bytes4 value if the signature is valid. Magic value is bytes4(keccak256("isValidValidatorSignature(address,bytes32,address,bytes)")) ___ -### getAssetProxyAllowance +### `Static` ABI -#### ▪ **getAssetProxyAllowance**: *object* +▸ **ABI**(): *[ContractAbi](#contractabi)* -*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:2197](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L2197)* +*Defined in [abi-gen-wrappers/src/generated-wrappers/i_validator.ts:111](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/i_validator.ts#L111)* -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. +**Returns:** *[ContractAbi](#contractabi)* -#### callAsync +The contract ABI -▸ **callAsync**(`ownerAddress`: string, `assetData`: string, `callData`: `Partial`, `defaultBlock?`: [BlockParam](#blockparam)): *`Promise`* +___ -*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:2207](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L2207)* +### `Static` deployAsync -Sends a read-only call to the contract method. Returns the result that would happen if one were to send an -Ethereum transaction to this method, given the current state of the blockchain. Calls do not cost gas -since they don't modify state. +▸ **deployAsync**(`bytecode`: string, `abi`: [ContractAbi](#contractabi), `supportedProvider`: [SupportedProvider](#supportedprovider), `txDefaults`: `Partial`, `logDecodeDependencies`: object): *`Promise`* -**Parameters:** +*Defined in [abi-gen-wrappers/src/generated-wrappers/i_validator.ts:69](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/i_validator.ts#L69)* -Name | Type | Default | Description | ------- | ------ | ------ | ------ | -`ownerAddress` | string | - | Owner of the assets specified by assetData. | -`assetData` | string | - | Details of asset, encoded per the AssetProxy contract specification. | -`callData` | `Partial` | {} | - | -`defaultBlock?` | [BlockParam](#blockparam) | - | - | +**Parameters:** -**Returns:** *`Promise`* +Name | Type | +------ | ------ | +`bytecode` | string | +`abi` | [ContractAbi](#contractabi) | +`supportedProvider` | [SupportedProvider](#supportedprovider) | +`txDefaults` | `Partial` | +`logDecodeDependencies` | object | -Number of assets (or asset baskets) that the corresponding AssetProxy is authorized to spend. +**Returns:** *`Promise`* -#### getABIDecodedReturnData +___ -▸ **getABIDecodedReturnData**(`returnData`: string): *`BigNumber`* +### `Static` deployFrom0xArtifactAsync -*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:2289](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L2289)* +▸ **deployFrom0xArtifactAsync**(`artifact`: `ContractArtifact` | `SimpleContractArtifact`, `supportedProvider`: [SupportedProvider](#supportedprovider), `txDefaults`: `Partial`, `logDecodeDependencies`: object): *`Promise`* -Decode the ABI-encoded return data from a transaction +*Defined in [abi-gen-wrappers/src/generated-wrappers/i_validator.ts:44](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/i_validator.ts#L44)* **Parameters:** -Name | Type | Description | ------- | ------ | ------ | -`returnData` | string | the data returned after transaction execution | +Name | Type | +------ | ------ | +`artifact` | `ContractArtifact` \| `SimpleContractArtifact` | +`supportedProvider` | [SupportedProvider](#supportedprovider) | +`txDefaults` | `Partial` | +`logDecodeDependencies` | object | -**Returns:** *`BigNumber`* +**Returns:** *`Promise`* + +___ -An array representing the output results in order. Keynames of nested structs are preserved. +### `Static` strictArgumentEncodingCheck -#### getABIDecodedTransactionData +▸ **strictArgumentEncodingCheck**(`inputAbi`: `DataItem`[], `args`: any[]): *string* -▸ **getABIDecodedTransactionData**(`callData`: string): *string* -*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:2277](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L2277)* -Decode the ABI-encoded transaction data into its input arguments +Defined in base-contract/lib/src/index.d.ts:42 **Parameters:** -Name | Type | Description | ------- | ------ | ------ | -`callData` | string | The ABI-encoded transaction data | +Name | Type | +------ | ------ | +`inputAbi` | `DataItem`[] | +`args` | any[] | **Returns:** *string* -An array representing the input arguments in order. Keynames of nested structs are preserved. +
+ +# Class: IWalletContract + + +## Constructors -#### getABIEncodedTransactionData -▸ **getABIEncodedTransactionData**(`ownerAddress`: string, `assetData`: string): *string* -*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:2262](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L2262)* +\+ **new IWalletContract**(`address`: string, `supportedProvider`: [SupportedProvider](#supportedprovider), `txDefaults?`: `Partial`, `logDecodeDependencies?`: undefined | object, `deployedBytecode`: string | undefined): *[IWalletContract](#class-iwalletcontract)* + +*Overrides void* -Returns the ABI encoded transaction data needed to send an Ethereum transaction calling this method. Before -sending the Ethereum tx, this encoded tx data can first be sent to a separate signing service or can be used -to create a 0x transaction (see protocol spec for more details). +*Defined in [abi-gen-wrappers/src/generated-wrappers/i_wallet.ts:224](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/i_wallet.ts#L224)* **Parameters:** -Name | Type | Description | +Name | Type | Default | ------ | ------ | ------ | -`ownerAddress` | string | Owner of the assets specified by assetData. | -`assetData` | string | Details of asset, encoded per the AssetProxy contract specification. | +`address` | string | - | +`supportedProvider` | [SupportedProvider](#supportedprovider) | - | +`txDefaults?` | `Partial` | - | +`logDecodeDependencies?` | undefined \| object | - | +`deployedBytecode` | string \| undefined | IWalletContract.deployedBytecode | -**Returns:** *string* +**Returns:** *[IWalletContract](#class-iwalletcontract)* -The ABI encoded transaction data as a string +## Properties -___ +### `Optional` _deployedBytecodeIfExists -### getBalance +• **_deployedBytecodeIfExists**? : *`Buffer`* -#### ▪ **getBalance**: *object* -*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:2300](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L2300)* -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. +Defined in base-contract/lib/src/index.d.ts:32 -#### callAsync +___ -▸ **callAsync**(`ownerAddress`: string, `assetData`: string, `callData`: `Partial`, `defaultBlock?`: [BlockParam](#blockparam)): *`Promise`* +### abi -*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:2310](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L2310)* +• **abi**: *[ContractAbi](#contractabi)* -Sends a read-only call to the contract method. Returns the result that would happen if one were to send an -Ethereum transaction to this method, given the current state of the blockchain. Calls do not cost gas -since they don't modify state. -**Parameters:** -Name | Type | Default | Description | ------- | ------ | ------ | ------ | -`ownerAddress` | string | - | Owner of the assets specified by assetData. | -`assetData` | string | - | Details of asset, encoded per the AssetProxy contract specification. | -`callData` | `Partial` | {} | - | -`defaultBlock?` | [BlockParam](#blockparam) | - | - | +Defined in base-contract/lib/src/index.d.ts:28 -**Returns:** *`Promise`* +___ -Number of assets (or asset baskets) held by owner. +### address -#### getABIDecodedReturnData +• **address**: *string* -▸ **getABIDecodedReturnData**(`returnData`: string): *`BigNumber`* -*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:2392](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L2392)* -Decode the ABI-encoded return data from a transaction +Defined in base-contract/lib/src/index.d.ts:29 -**Parameters:** +___ -Name | Type | Description | ------- | ------ | ------ | -`returnData` | string | the data returned after transaction execution | +Args -**Returns:** *`BigNumber`* +• **constructorArgs**: *any[]* -An array representing the output results in order. Keynames of nested structs are preserved. -#### getABIDecodedTransactionData -▸ **getABIDecodedTransactionData**(`callData`: string): *string* +Defined in base-contract/lib/src/index.d.ts:31 -*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:2380](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L2380)* +___ -Decode the ABI-encoded transaction data into its input arguments +### contractName -**Parameters:** +• **contractName**: *string* -Name | Type | Description | ------- | ------ | ------ | -`callData` | string | The ABI-encoded transaction data | -**Returns:** *string* -An array representing the input arguments in order. Keynames of nested structs are preserved. +Defined in base-contract/lib/src/index.d.ts:30 -#### getABIEncodedTransactionData +## Methods -▸ **getABIEncodedTransactionData**(`ownerAddress`: string, `assetData`: string): *string* +### getABIDecodedReturnData -*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:2365](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L2365)* +▸ **getABIDecodedReturnData**<**T**>(`methodName`: string, `callData`: string): *`T`* -Returns the ABI encoded transaction data needed to send an Ethereum transaction calling this method. Before -sending the Ethereum tx, this encoded tx data can first be sent to a separate signing service or can be used -to create a 0x transaction (see protocol spec for more details). +*Defined in [abi-gen-wrappers/src/generated-wrappers/i_wallet.ts:153](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/i_wallet.ts#L153)* -**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:** *string* +**Type parameters:** -The ABI encoded transaction data as a string +▪ **T** -___ +**Parameters:** -### getBalanceAndAssetProxyAllowance +Name | Type | +------ | ------ | +`methodName` | string | +`callData` | string | -#### ▪ **getBalanceAndAssetProxyAllowance**: *object* +**Returns:** *`T`* -*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:2403](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L2403)* +___ -Calls getBalance() and getAllowance() for assetData. +### getABIDecodedTransactionData -#### callAsync +▸ **getABIDecodedTransactionData**<**T**>(`methodName`: string, `callData`: string): *`T`* -▸ **callAsync**(`ownerAddress`: string, `assetData`: string, `callData`: `Partial`, `defaultBlock?`: [BlockParam](#blockparam)): *`Promise<[BigNumber, BigNumber]>`* +*Defined in [abi-gen-wrappers/src/generated-wrappers/i_wallet.ts:146](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/i_wallet.ts#L146)* -*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:2413](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L2413)* +**Type parameters:** -Sends a read-only call to the contract method. Returns the result that would happen if one were to send an -Ethereum transaction to this method, given the current state of the blockchain. Calls do not cost gas -since they don't modify state. +▪ **T** **Parameters:** -Name | Type | Default | Description | ------- | ------ | ------ | ------ | -`ownerAddress` | string | - | Owner of the assets specified by assetData. | -`assetData` | string | - | Details of asset, encoded per the AssetProxy contract specification. | -`callData` | `Partial` | {} | - | -`defaultBlock?` | [BlockParam](#blockparam) | - | - | - -**Returns:** *`Promise<[BigNumber, BigNumber]>`* +Name | Type | +------ | ------ | +`methodName` | string | +`callData` | string | -Number of assets (or asset baskets) held by owner, and number of assets (or asset baskets) that the corresponding AssetProxy is authorized to spend. +**Returns:** *`T`* -#### getABIDecodedReturnData +___ -▸ **getABIDecodedReturnData**(`returnData`: string): *[`BigNumber`, `BigNumber`]* +### getFunctionSignature -*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:2495](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L2495)* +▸ **getFunctionSignature**(`methodName`: string): *string* -Decode the ABI-encoded return data from a transaction +*Defined in [abi-gen-wrappers/src/generated-wrappers/i_wallet.ts:140](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/i_wallet.ts#L140)* **Parameters:** -Name | Type | Description | ------- | ------ | ------ | -`returnData` | string | the data returned after transaction execution | - -**Returns:** *[`BigNumber`, `BigNumber`]* +Name | Type | +------ | ------ | +`methodName` | string | -An array representing the output results in order. Keynames of nested structs are preserved. +**Returns:** *string* -#### getABIDecodedTransactionData +___ -▸ **getABIDecodedTransactionData**(`callData`: string): *[string, string]* +### getSelector -*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:2483](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L2483)* +▸ **getSelector**(`methodName`: string): *string* -Decode the ABI-encoded transaction data into its input arguments +*Defined in [abi-gen-wrappers/src/generated-wrappers/i_wallet.ts:160](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/i_wallet.ts#L160)* **Parameters:** -Name | Type | Description | ------- | ------ | ------ | -`callData` | string | The ABI-encoded transaction data | +Name | Type | +------ | ------ | +`methodName` | string | -**Returns:** *[string, string]* +**Returns:** *string* -An array representing the input arguments in order. Keynames of nested structs are preserved. +___ -#### getABIEncodedTransactionData +### isValidSignature -▸ **getABIEncodedTransactionData**(`ownerAddress`: string, `assetData`: string): *string* +▸ **isValidSignature**(`hash`: string, `signature`: string): *`ContractFunctionObj`* -*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:2468](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L2468)* +*Defined in [abi-gen-wrappers/src/generated-wrappers/i_wallet.ts:173](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/i_wallet.ts#L173)* -Returns the ABI encoded transaction data needed to send an Ethereum transaction calling this method. Before -sending the Ethereum tx, this encoded tx data can first be sent to a separate signing service or can be used -to create a 0x transaction (see protocol spec for more details). +Validates a hash with the `Wallet` signature type. **Parameters:** Name | Type | Description | ------ | ------ | ------ | -`ownerAddress` | string | Owner of the assets specified by assetData. | -`assetData` | string | Details of asset, encoded per the AssetProxy contract specification. | +`hash` | string | Message hash that is signed. | +`signature` | string | Proof of signing. | -**Returns:** *string* +**Returns:** *`ContractFunctionObj`* -The ABI encoded transaction data as a string +magicValue `bytes4(0xb0671381)` if the signature check succeeds. ___ -### getBatchAssetProxyAllowances +### `Static` ABI + +▸ **ABI**(): *[ContractAbi](#contractabi)* -#### ▪ **getBatchAssetProxyAllowances**: *object* +*Defined in [abi-gen-wrappers/src/generated-wrappers/i_wallet.ts:111](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/i_wallet.ts#L111)* -*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:2506](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L2506)* +**Returns:** *[ContractAbi](#contractabi)* -Calls getAssetProxyAllowance() for each element of assetData. +The contract ABI -#### callAsync +___ -▸ **callAsync**(`ownerAddress`: string, `assetData`: string[], `callData`: `Partial`, `defaultBlock?`: [BlockParam](#blockparam)): *`Promise`* +### `Static` deployAsync -*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:2516](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L2516)* +▸ **deployAsync**(`bytecode`: string, `abi`: [ContractAbi](#contractabi), `supportedProvider`: [SupportedProvider](#supportedprovider), `txDefaults`: `Partial`, `logDecodeDependencies`: object): *`Promise`* -Sends a read-only call to the contract method. Returns the result that would happen if one were to send an -Ethereum transaction to this method, given the current state of the blockchain. Calls do not cost gas -since they don't modify state. +*Defined in [abi-gen-wrappers/src/generated-wrappers/i_wallet.ts:69](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/i_wallet.ts#L69)* **Parameters:** -Name | Type | Default | Description | ------- | ------ | ------ | ------ | -`ownerAddress` | string | - | Owner of the assets specified by assetData. | -`assetData` | string[] | - | Array of asset details, each encoded per the AssetProxy contract specification. | -`callData` | `Partial` | {} | - | -`defaultBlock?` | [BlockParam](#blockparam) | - | - | - -**Returns:** *`Promise`* +Name | Type | +------ | ------ | +`bytecode` | string | +`abi` | [ContractAbi](#contractabi) | +`supportedProvider` | [SupportedProvider](#supportedprovider) | +`txDefaults` | `Partial` | +`logDecodeDependencies` | object | -An array of asset allowances from getAllowance(), with each element corresponding to the same-indexed element in the assetData input. +**Returns:** *`Promise`* -#### getABIDecodedReturnData +___ -▸ **getABIDecodedReturnData**(`returnData`: string): *`BigNumber`[]* +### `Static` deployFrom0xArtifactAsync -*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:2598](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L2598)* +▸ **deployFrom0xArtifactAsync**(`artifact`: `ContractArtifact` | `SimpleContractArtifact`, `supportedProvider`: [SupportedProvider](#supportedprovider), `txDefaults`: `Partial`, `logDecodeDependencies`: object): *`Promise`* -Decode the ABI-encoded return data from a transaction +*Defined in [abi-gen-wrappers/src/generated-wrappers/i_wallet.ts:44](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/i_wallet.ts#L44)* **Parameters:** -Name | Type | Description | ------- | ------ | ------ | -`returnData` | string | the data returned after transaction execution | +Name | Type | +------ | ------ | +`artifact` | `ContractArtifact` \| `SimpleContractArtifact` | +`supportedProvider` | [SupportedProvider](#supportedprovider) | +`txDefaults` | `Partial` | +`logDecodeDependencies` | object | + +**Returns:** *`Promise`* -**Returns:** *`BigNumber`[]* +___ -An array representing the output results in order. Keynames of nested structs are preserved. +### `Static` strictArgumentEncodingCheck -#### getABIDecodedTransactionData +▸ **strictArgumentEncodingCheck**(`inputAbi`: `DataItem`[], `args`: any[]): *string* -▸ **getABIDecodedTransactionData**(`callData`: string): *string* -*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:2586](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L2586)* -Decode the ABI-encoded transaction data into its input arguments +Defined in base-contract/lib/src/index.d.ts:42 **Parameters:** -Name | Type | Description | ------- | ------ | ------ | -`callData` | string | The ABI-encoded transaction data | +Name | Type | +------ | ------ | +`inputAbi` | `DataItem`[] | +`args` | any[] | **Returns:** *string* -An array representing the input arguments in order. Keynames of nested structs are preserved. - -#### getABIEncodedTransactionData - -▸ **getABIEncodedTransactionData**(`ownerAddress`: string, `assetData`: string[]): *string* +
-*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:2571](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L2571)* +# Class: WETH9Contract -Returns the ABI encoded transaction data needed to send an Ethereum transaction calling this method. Before -sending the Ethereum tx, this encoded tx data can first be sent to a separate signing service or can be used -to create a 0x transaction (see protocol spec for more details). -**Parameters:** +## Constructors -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:** *string* -The ABI encoded transaction data as a string +\+ **new WETH9Contract**(`address`: string, `supportedProvider`: [SupportedProvider](#supportedprovider), `txDefaults?`: `Partial`, `logDecodeDependencies?`: undefined | object, `deployedBytecode`: string | undefined): *[WETH9Contract](#class-weth9contract)* -___ +*Overrides void* -### getBatchBalances +*Defined in [abi-gen-wrappers/src/generated-wrappers/weth9.ts:1381](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/weth9.ts#L1381)* -#### ▪ **getBatchBalances**: *object* +**Parameters:** -*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:2609](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L2609)* +Name | Type | Default | +------ | ------ | ------ | +`address` | string | - | +`supportedProvider` | [SupportedProvider](#supportedprovider) | - | +`txDefaults?` | `Partial` | - | +`logDecodeDependencies?` | undefined \| object | - | +`deployedBytecode` | string \| undefined | WETH9Contract.deployedBytecode | -Calls getBalance() for each element of assetData. +**Returns:** *[WETH9Contract](#class-weth9contract)* -#### callAsync +## Properties -▸ **callAsync**(`ownerAddress`: string, `assetData`: string[], `callData`: `Partial`, `defaultBlock?`: [BlockParam](#blockparam)): *`Promise`* +### `Optional` _deployedBytecodeIfExists -*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:2619](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L2619)* +• **_deployedBytecodeIfExists**? : *`Buffer`* -Sends a read-only call to the contract method. Returns the result that would happen if one were to send an -Ethereum transaction to this method, given the current state of the blockchain. Calls do not cost gas -since they don't modify state. -**Parameters:** -Name | Type | Default | Description | ------- | ------ | ------ | ------ | -`ownerAddress` | string | - | Owner of the assets specified by assetData. | -`assetData` | string[] | - | Array of asset details, each encoded per the AssetProxy contract specification. | -`callData` | `Partial` | {} | - | -`defaultBlock?` | [BlockParam](#blockparam) | - | - | +Defined in base-contract/lib/src/index.d.ts:32 -**Returns:** *`Promise`* +___ -Array of asset balances from getBalance(), with each element corresponding to the same-indexed element in the assetData input. +### abi -#### getABIDecodedReturnData +• **abi**: *[ContractAbi](#contractabi)* -▸ **getABIDecodedReturnData**(`returnData`: string): *`BigNumber`[]* -*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:2701](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L2701)* -Decode the ABI-encoded return data from a transaction +Defined in base-contract/lib/src/index.d.ts:28 -**Parameters:** +___ -Name | Type | Description | ------- | ------ | ------ | -`returnData` | string | the data returned after transaction execution | +### address -**Returns:** *`BigNumber`[]* +• **address**: *string* -An array representing the output results in order. Keynames of nested structs are preserved. -#### getABIDecodedTransactionData -▸ **getABIDecodedTransactionData**(`callData`: string): *string* +Defined in base-contract/lib/src/index.d.ts:29 -*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:2689](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L2689)* +___ -Decode the ABI-encoded transaction data into its input arguments +Args -**Parameters:** +• **constructorArgs**: *any[]* -Name | Type | Description | ------- | ------ | ------ | -`callData` | string | The ABI-encoded transaction data | -**Returns:** *string* -An array representing the input arguments in order. Keynames of nested structs are preserved. +Defined in base-contract/lib/src/index.d.ts:31 -#### getABIEncodedTransactionData +___ -▸ **getABIEncodedTransactionData**(`ownerAddress`: string, `assetData`: string[]): *string* +### contractName -*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:2674](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L2674)* +• **contractName**: *string* -Returns the ABI encoded transaction data needed to send an Ethereum transaction calling this method. Before -sending the Ethereum tx, this encoded tx data can first be sent to a separate signing service or can be used -to create a 0x transaction (see protocol spec for more details). -**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. | +Defined in base-contract/lib/src/index.d.ts:30 -**Returns:** *string* +## Methods -The ABI encoded transaction data as a string +### allowance -___ +▸ **allowance**(`index_0`: string, `index_1`: string): *`ContractFunctionObj`* -### getBatchBalancesAndAssetProxyAllowances +*Defined in [abi-gen-wrappers/src/generated-wrappers/weth9.ts:1258](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/weth9.ts#L1258)* -#### ▪ **getBatchBalancesAndAssetProxyAllowances**: *object* +**Parameters:** -*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:2712](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L2712)* +Name | Type | +------ | ------ | +`index_0` | string | +`index_1` | string | -Calls getBatchBalances() and getBatchAllowances() for each element of assetData. +**Returns:** *`ContractFunctionObj`* -#### callAsync +___ -▸ **callAsync**(`ownerAddress`: string, `assetData`: string[], `callData`: `Partial`, `defaultBlock?`: [BlockParam](#blockparam)): *`Promise<[BigNumber[], BigNumber[]]>`* +### approve -*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:2722](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L2722)* +▸ **approve**(`guy`: string, `wad`: `BigNumber`): *`ContractTxFunctionObj`* -Sends a read-only call to the contract method. Returns the result that would happen if one were to send an -Ethereum transaction to this method, given the current state of the blockchain. Calls do not cost gas -since they don't modify state. +*Defined in [abi-gen-wrappers/src/generated-wrappers/weth9.ts:512](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/weth9.ts#L512)* **Parameters:** -Name | Type | Default | Description | ------- | ------ | ------ | ------ | -`ownerAddress` | string | - | Owner of the assets specified by assetData. | -`assetData` | string[] | - | Array of asset details, each encoded per the AssetProxy contract specification. | -`callData` | `Partial` | {} | - | -`defaultBlock?` | [BlockParam](#blockparam) | - | - | - -**Returns:** *`Promise<[BigNumber[], BigNumber[]]>`* +Name | Type | +------ | ------ | +`guy` | string | +`wad` | `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. +**Returns:** *`ContractTxFunctionObj`* -#### getABIDecodedReturnData +___ -▸ **getABIDecodedReturnData**(`returnData`: string): *[`BigNumber`[], `BigNumber`[]]* +### balanceOf -*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:2804](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L2804)* +▸ **balanceOf**(`index_0`: string): *`ContractFunctionObj`* -Decode the ABI-encoded return data from a transaction +*Defined in [abi-gen-wrappers/src/generated-wrappers/weth9.ts:946](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/weth9.ts#L946)* **Parameters:** -Name | Type | Description | ------- | ------ | ------ | -`returnData` | string | the data returned after transaction execution | - -**Returns:** *[`BigNumber`[], `BigNumber`[]]* +Name | Type | +------ | ------ | +`index_0` | string | -An array representing the output results in order. Keynames of nested structs are preserved. +**Returns:** *`ContractFunctionObj`* -#### getABIDecodedTransactionData +___ -▸ **getABIDecodedTransactionData**(`callData`: string): *[string, string[]]* +### decimals -*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:2792](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L2792)* +▸ **decimals**(): *`ContractFunctionObj`* -Decode the ABI-encoded transaction data into its input arguments +*Defined in [abi-gen-wrappers/src/generated-wrappers/weth9.ts:899](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/weth9.ts#L899)* -**Parameters:** +**Returns:** *`ContractFunctionObj`* -Name | Type | Description | ------- | ------ | ------ | -`callData` | string | The ABI-encoded transaction data | +___ -**Returns:** *[string, string[]]* +### deposit -An array representing the input arguments in order. Keynames of nested structs are preserved. +▸ **deposit**(): *`ContractTxFunctionObj`* -#### getABIEncodedTransactionData +*Defined in [abi-gen-wrappers/src/generated-wrappers/weth9.ts:1153](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/weth9.ts#L1153)* -▸ **getABIEncodedTransactionData**(`ownerAddress`: string, `assetData`: string[]): *string* +**Returns:** *`ContractTxFunctionObj`* -*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:2777](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L2777)* +___ -Returns the ABI encoded transaction data needed to send an Ethereum transaction calling this method. Before -sending the Ethereum tx, this encoded tx data can first be sent to a separate signing service or can be used -to create a 0x transaction (see protocol spec for more details). +### getABIDecodedReturnData -**Parameters:** +▸ **getABIDecodedReturnData**<**T**>(`methodName`: string, `callData`: string): *`T`* -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. | +*Defined in [abi-gen-wrappers/src/generated-wrappers/weth9.ts:451](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/weth9.ts#L451)* -**Returns:** *string* +**Type parameters:** -The ABI encoded transaction data as a string +▪ **T** -___ +**Parameters:** -### getEthBalances +Name | Type | +------ | ------ | +`methodName` | string | +`callData` | string | -#### ▪ **getEthBalances**: *object* +**Returns:** *`T`* -*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:2815](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L2815)* +___ -Batch fetches ETH balances +### getABIDecodedTransactionData -#### callAsync +▸ **getABIDecodedTransactionData**<**T**>(`methodName`: string, `callData`: string): *`T`* -▸ **callAsync**(`addresses`: string[], `callData`: `Partial`, `defaultBlock?`: [BlockParam](#blockparam)): *`Promise`* +*Defined in [abi-gen-wrappers/src/generated-wrappers/weth9.ts:444](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/weth9.ts#L444)* -*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:2823](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L2823)* +**Type parameters:** -Sends a read-only call to the contract method. Returns the result that would happen if one were to send an -Ethereum transaction to this method, given the current state of the blockchain. Calls do not cost gas -since they don't modify state. +▪ **T** **Parameters:** -Name | Type | Default | Description | ------- | ------ | ------ | ------ | -`addresses` | string[] | - | Array of addresses. | -`callData` | `Partial` | {} | - | -`defaultBlock?` | [BlockParam](#blockparam) | - | - | - -**Returns:** *`Promise`* +Name | Type | +------ | ------ | +`methodName` | string | +`callData` | string | -Array of ETH balances. +**Returns:** *`T`* -#### getABIDecodedReturnData +___ -▸ **getABIDecodedReturnData**(`returnData`: string): *`BigNumber`[]* +### getFunctionSignature -*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:2894](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L2894)* +▸ **getFunctionSignature**(`methodName`: string): *string* -Decode the ABI-encoded return data from a transaction +*Defined in [abi-gen-wrappers/src/generated-wrappers/weth9.ts:438](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/weth9.ts#L438)* **Parameters:** -Name | Type | Description | ------- | ------ | ------ | -`returnData` | string | the data returned after transaction execution | +Name | Type | +------ | ------ | +`methodName` | string | + +**Returns:** *string* -**Returns:** *`BigNumber`[]* +___ + +### getLogsAsync -An array representing the output results in order. Keynames of nested structs are preserved. +▸ **getLogsAsync**<**ArgsType**>(`eventName`: [WETH9Events](#enumeration-weth9events), `blockRange`: `BlockRange`, `indexFilterValues`: `IndexedFilterValues`): *`Promise>>`* -#### getABIDecodedTransactionData +*Defined in [abi-gen-wrappers/src/generated-wrappers/weth9.ts:1365](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/weth9.ts#L1365)* -▸ **getABIDecodedTransactionData**(`callData`: string): *string[]* +Gets historical logs without creating a subscription -*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:2882](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L2882)* +**Type parameters:** -Decode the ABI-encoded transaction data into its input arguments +▪ **ArgsType**: *[WETH9EventArgs](#weth9eventargs)* **Parameters:** Name | Type | Description | ------ | ------ | ------ | -`callData` | string | The ABI-encoded transaction data | +`eventName` | [WETH9Events](#enumeration-weth9events) | The WETH9 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:** *string[]* +**Returns:** *`Promise>>`* -An array representing the input arguments in order. Keynames of nested structs are preserved. +Array of logs that match the parameters -#### getABIEncodedTransactionData +___ -▸ **getABIEncodedTransactionData**(`addresses`: string[]): *string* +### getSelector -*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:2871](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L2871)* +▸ **getSelector**(`methodName`: string): *string* -Returns the ABI encoded transaction data needed to send an Ethereum transaction calling this method. Before -sending the Ethereum tx, this encoded tx data can first be sent to a separate signing service or can be used -to create a 0x transaction (see protocol spec for more details). +*Defined in [abi-gen-wrappers/src/generated-wrappers/weth9.ts:458](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/weth9.ts#L458)* **Parameters:** -Name | Type | Description | ------- | ------ | ------ | -`addresses` | string[] | Array of addresses. | +Name | Type | +------ | ------ | +`methodName` | string | **Returns:** *string* -The ABI encoded transaction data as a string - ___ -### getOrderRelevantState +### name -#### ▪ **getOrderRelevantState**: *object* +▸ **name**(): *`ContractFunctionObj`* -*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:2905](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L2905)* +*Defined in [abi-gen-wrappers/src/generated-wrappers/weth9.ts:465](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/weth9.ts#L465)* -Fetches all order-relevant information needed to validate if the supplied order is fillable. +**Returns:** *`ContractFunctionObj`* + +___ + +### subscribe + +▸ **subscribe**<**ArgsType**>(`eventName`: [WETH9Events](#enumeration-weth9events), `indexFilterValues`: `IndexedFilterValues`, `callback`: [EventCallback](#eventcallback)‹*`ArgsType`*›, `isVerbose`: boolean, `blockPollingIntervalMs?`: undefined | number): *string* -#### callAsync +*Defined in [abi-gen-wrappers/src/generated-wrappers/weth9.ts:1323](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/weth9.ts#L1323)* -▸ **callAsync**(`order`: object, `signature`: string, `callData`: `Partial`, `defaultBlock?`: [BlockParam](#blockparam)): *`Promise<[object, BigNumber, boolean]>`* +Subscribe to an event type emitted by the WETH9 contract. -*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:2916](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L2916)* +**Type parameters:** -Sends a read-only call to the contract method. Returns the result that would happen if one were to send an -Ethereum transaction to this method, given the current state of the blockchain. Calls do not cost gas -since they don't modify state. +▪ **ArgsType**: *[WETH9EventArgs](#weth9eventargs)* **Parameters:** Name | Type | Default | 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. | -`callData` | `Partial` | {} | - | -`defaultBlock?` | [BlockParam](#blockparam) | - | - | +`eventName` | [WETH9Events](#enumeration-weth9events) | - | The WETH9 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:** *`Promise<[object, BigNumber, boolean]>`* +**Returns:** *string* -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. +Subscription token used later to unsubscribe -#### getABIDecodedReturnData +___ -▸ **getABIDecodedReturnData**(`returnData`: string): *[object, `BigNumber`, boolean]* +### symbol -*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:3078](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L3078)* +▸ **symbol**(): *`ContractFunctionObj`* -Decode the ABI-encoded return data from a transaction +*Defined in [abi-gen-wrappers/src/generated-wrappers/weth9.ts:996](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/weth9.ts#L996)* -**Parameters:** +**Returns:** *`ContractFunctionObj`* -Name | Type | Description | ------- | ------ | ------ | -`returnData` | string | the data returned after transaction execution | - -**Returns:** *[object, `BigNumber`, boolean]* - -An array representing the output results in order. Keynames of nested structs are preserved. - -#### getABIDecodedTransactionData - -▸ **getABIDecodedTransactionData**(`callData`: string): *[object, string]* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:3024](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L3024)* - -Decode the ABI-encoded transaction data into its input arguments +___ -**Parameters:** +### totalSupply -Name | Type | Description | ------- | ------ | ------ | -`callData` | string | The ABI-encoded transaction data | +▸ **totalSupply**(): *`ContractFunctionObj`* -**Returns:** *[object, string]* +*Defined in [abi-gen-wrappers/src/generated-wrappers/weth9.ts:622](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/weth9.ts#L622)* -An array representing the input arguments in order. Keynames of nested structs are preserved. +**Returns:** *`ContractFunctionObj`* -#### getABIEncodedTransactionData +___ -▸ **getABIEncodedTransactionData**(`order`: object, `signature`: string): *string* +### transfer -*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:2992](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L2992)* +▸ **transfer**(`dst`: string, `wad`: `BigNumber`): *`ContractTxFunctionObj`* -Returns the ABI encoded transaction data needed to send an Ethereum transaction calling this method. Before -sending the Ethereum tx, this encoded tx data can first be sent to a separate signing service or can be used -to create a 0x transaction (see protocol spec for more details). +*Defined in [abi-gen-wrappers/src/generated-wrappers/weth9.ts:1043](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/weth9.ts#L1043)* **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:** *string* +Name | Type | +------ | ------ | +`dst` | string | +`wad` | `BigNumber` | -The ABI encoded transaction data as a string +**Returns:** *`ContractTxFunctionObj`* ___ -### getOrderRelevantStates - -#### ▪ **getOrderRelevantStates**: *object* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:3095](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L3095)* - -Fetches all order-relevant information needed to validate if the supplied orders are fillable. - -#### callAsync - -▸ **callAsync**(`orders`: `Array`, `signatures`: string[], `callData`: `Partial`, `defaultBlock?`: [BlockParam](#blockparam)): *`Promise<[Array, BigNumber[], boolean[]]>`* +### transferFrom -*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:3106](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L3106)* +▸ **transferFrom**(`src`: string, `dst`: string, `wad`: `BigNumber`): *`ContractTxFunctionObj`* -Sends a read-only call to the contract method. Returns the result that would happen if one were to send an -Ethereum transaction to this method, given the current state of the blockchain. Calls do not cost gas -since they don't modify state. +*Defined in [abi-gen-wrappers/src/generated-wrappers/weth9.ts:669](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/weth9.ts#L669)* **Parameters:** -Name | Type | Default | 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. | -`callData` | `Partial` | {} | - | -`defaultBlock?` | [BlockParam](#blockparam) | - | - | +Name | Type | +------ | ------ | +`src` | string | +`dst` | string | +`wad` | `BigNumber` | -**Returns:** *`Promise<[Array, BigNumber[], boolean[]]>`* +**Returns:** *`ContractTxFunctionObj`* -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. +___ -#### getABIDecodedReturnData +### unsubscribe -▸ **getABIDecodedReturnData**(`returnData`: string): *[`Array`, `BigNumber`[], boolean[]]* +▸ **unsubscribe**(`subscriptionToken`: string): *void* -*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:3278](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L3278)* +*Defined in [abi-gen-wrappers/src/generated-wrappers/weth9.ts:1348](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/weth9.ts#L1348)* -Decode the ABI-encoded return data from a transaction +Cancel a subscription **Parameters:** Name | Type | Description | ------ | ------ | ------ | -`returnData` | string | the data returned after transaction execution | - -**Returns:** *[`Array`, `BigNumber`[], boolean[]]* - -An array representing the output results in order. Keynames of nested structs are preserved. - -#### getABIDecodedTransactionData +`subscriptionToken` | string | Subscription token returned by `subscribe()` | -▸ **getABIDecodedTransactionData**(`callData`: string): *[`Array`, string[]]* +**Returns:** *void* -*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:3224](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L3224)* +___ -Decode the ABI-encoded transaction data into its input arguments +### unsubscribeAll -**Parameters:** +▸ **unsubscribeAll**(): *void* -Name | Type | Description | ------- | ------ | ------ | -`callData` | string | The ABI-encoded transaction data | +*Defined in [abi-gen-wrappers/src/generated-wrappers/weth9.ts:1354](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/weth9.ts#L1354)* -**Returns:** *[`Array`, string[]]* +Cancels all existing subscriptions -An array representing the input arguments in order. Keynames of nested structs are preserved. +**Returns:** *void* -#### getABIEncodedTransactionData +___ -▸ **getABIEncodedTransactionData**(`orders`: `Array`, `signatures`: string[]): *string* +### withdraw -*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:3191](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L3191)* +▸ **withdraw**(`wad`: `BigNumber`): *`ContractTxFunctionObj`* -Returns the ABI encoded transaction data needed to send an Ethereum transaction calling this method. Before -sending the Ethereum tx, this encoded tx data can first be sent to a separate signing service or can be used -to create a 0x transaction (see protocol spec for more details). +*Defined in [abi-gen-wrappers/src/generated-wrappers/weth9.ts:793](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/weth9.ts#L793)* **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:** *string* +Name | Type | +------ | ------ | +`wad` | `BigNumber` | -The ABI encoded transaction data as a string +**Returns:** *`ContractTxFunctionObj`* ___ -### getSimulatedOrderTransferResults +### `Static` ABI -#### ▪ **getSimulatedOrderTransferResults**: *object* +▸ **ABI**(): *[ContractAbi](#contractabi)* -*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:3303](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L3303)* +*Defined in [abi-gen-wrappers/src/generated-wrappers/weth9.ts:149](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/weth9.ts#L149)* -Simulates all of the transfers within an order and returns the index of the first failed transfer. +**Returns:** *[ContractAbi](#contractabi)* -#### awaitTransactionSuccessAsync +The contract ABI -▸ **awaitTransactionSuccessAsync**(`order`: object, `takerAddress`: string, `takerAssetFillAmount`: `BigNumber`, `txData?`: `Partial`, `pollingIntervalMs?`: undefined | number, `timeoutMs?`: undefined | number): *`PromiseWithTransactionHash`* +___ -*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:3368](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L3368)* +### `Static` deployAsync -Sends an Ethereum transaction and waits until the transaction has been successfully mined without reverting. -If the transaction was mined, but reverted, an error is thrown. +▸ **deployAsync**(`bytecode`: string, `abi`: [ContractAbi](#contractabi), `supportedProvider`: [SupportedProvider](#supportedprovider), `txDefaults`: `Partial`, `logDecodeDependencies`: object): *`Promise`* -**Parameters:** +*Defined in [abi-gen-wrappers/src/generated-wrappers/weth9.ts:107](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/weth9.ts#L107)* -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. | -`txData?` | `Partial` | Additional data for transaction | -`pollingIntervalMs?` | undefined \| number | Interval at which to poll for success | -`timeoutMs?` | undefined \| number | - | +**Parameters:** -**Returns:** *`PromiseWithTransactionHash`* +Name | Type | +------ | ------ | +`bytecode` | string | +`abi` | [ContractAbi](#contractabi) | +`supportedProvider` | [SupportedProvider](#supportedprovider) | +`txDefaults` | `Partial` | +`logDecodeDependencies` | object | -A promise that resolves when the transaction is successful +**Returns:** *`Promise`* -#### callAsync +___ -▸ **callAsync**(`order`: object, `takerAddress`: string, `takerAssetFillAmount`: `BigNumber`, `callData`: `Partial`, `defaultBlock?`: [BlockParam](#blockparam)): *`Promise`* +### `Static` deployFrom0xArtifactAsync -*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:3509](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L3509)* +▸ **deployFrom0xArtifactAsync**(`artifact`: `ContractArtifact` | `SimpleContractArtifact`, `supportedProvider`: [SupportedProvider](#supportedprovider), `txDefaults`: `Partial`, `logDecodeDependencies`: object): *`Promise`* -Sends a read-only call to the contract method. Returns the result that would happen if one were to send an -Ethereum transaction to this method, given the current state of the blockchain. Calls do not cost gas -since they don't modify state. +*Defined in [abi-gen-wrappers/src/generated-wrappers/weth9.ts:82](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/weth9.ts#L82)* **Parameters:** -Name | Type | Default | 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. | -`callData` | `Partial` | {} | - | -`defaultBlock?` | [BlockParam](#blockparam) | - | - | - -**Returns:** *`Promise`* - -The index of the first failed transfer (or 4 if all transfers are successful). +Name | Type | +------ | ------ | +`artifact` | `ContractArtifact` \| `SimpleContractArtifact` | +`supportedProvider` | [SupportedProvider](#supportedprovider) | +`txDefaults` | `Partial` | +`logDecodeDependencies` | object | -#### estimateGasAsync +**Returns:** *`Promise`* -▸ **estimateGasAsync**(`order`: object, `takerAddress`: string, `takerAssetFillAmount`: `BigNumber`, `txData?`: `Partial` | undefined): *`Promise`* +___ -*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:3421](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L3421)* +### `Static` strictArgumentEncodingCheck -Estimates the gas cost of sending an Ethereum transaction calling this method with these arguments. +▸ **strictArgumentEncodingCheck**(`inputAbi`: `DataItem`[], `args`: any[]): *string* -**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. | -`txData?` | `Partial` \| undefined | Additional data for transaction | -**Returns:** *`Promise`* +Defined in base-contract/lib/src/index.d.ts:42 -The hash of the transaction +**Parameters:** -#### getABIDecodedReturnData +Name | Type | +------ | ------ | +`inputAbi` | `DataItem`[] | +`args` | any[] | -▸ **getABIDecodedReturnData**(`returnData`: string): *number* +**Returns:** *string* -*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:3663](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L3663)* +
-Decode the ABI-encoded return data from a transaction +# Class: MetamaskSubprovider -**Parameters:** +This class implements the [web3-provider-engine](https://github.com/MetaMask/provider-engine) +subprovider interface and the provider sendAsync interface. +It handles inconsistencies with Metamask implementations of various JSON RPC methods. +It forwards JSON RPC requests involving the domain of a signer (getAccounts, +sendTransaction, signMessage etc...) to the provider instance supplied at instantiation. All other requests +are passed onwards for subsequent subproviders to handle. -Name | Type | Description | ------- | ------ | ------ | -`returnData` | string | the data returned after transaction execution | -**Returns:** *number* +## Constructors -An array representing the output results in order. Keynames of nested structs are preserved. -#### getABIDecodedTransactionData -▸ **getABIDecodedTransactionData**(`callData`: string): *object* +\+ **new MetamaskSubprovider**(`supportedProvider`: [SupportedProvider](#supportedprovider)): *[MetamaskSubprovider](#class-metamasksubprovider)* -*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:3617](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L3617)* +*Defined in [subproviders/src/subproviders/metamask_subprovider.ts:19](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/subproviders/src/subproviders/metamask_subprovider.ts#L19)* -Decode the ABI-encoded transaction data into its input arguments +Instantiates a new MetamaskSubprovider **Parameters:** Name | Type | Description | ------ | ------ | ------ | -`callData` | string | The ABI-encoded transaction data | +`supportedProvider` | [SupportedProvider](#supportedprovider) | Web3 provider that should handle all user account related requests | + +**Returns:** *[MetamaskSubprovider](#class-metamasksubprovider)* + +## Methods -**Returns:** *object* +### emitPayloadAsync -An array representing the input arguments in order. Keynames of nested structs are preserved. +▸ **emitPayloadAsync**(`payload`: `Partial`): *`Promise`* -#### getABIEncodedTransactionData -▸ **getABIEncodedTransactionData**(`order`: object, `takerAddress`: string, `takerAssetFillAmount`: `BigNumber`): *string* -*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:3583](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L3583)* +*Defined in [subproviders/src/subproviders/subprovider.ts:55](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/subproviders/src/subproviders/subprovider.ts#L55)* -Returns the ABI encoded transaction data needed to send an Ethereum transaction calling this method. Before -sending the Ethereum tx, this encoded tx data can first be sent to a separate signing service or can be used -to create a 0x transaction (see protocol spec for more details). +Emits a JSON RPC payload that will then be handled by the ProviderEngine instance +this subprovider is a part of. The payload will cascade down the subprovider middleware +stack until finding the responsible entity for handling the request. **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. | +`payload` | `Partial` | JSON RPC payload | -**Returns:** *string* +**Returns:** *`Promise`* + +JSON RPC response payload + +___ -The ABI encoded transaction data as a string +### handleRequest -#### sendTransactionAsync +▸ **handleRequest**(`payload`: `JSONRPCRequestPayload`, `next`: [Callback](#callback), `end`: [ErrorCallback](#errorcallback)): *`Promise`* -▸ **sendTransactionAsync**(`order`: object, `takerAddress`: string, `takerAssetFillAmount`: `BigNumber`, `txData?`: `Partial` | undefined): *`Promise`* +*Overrides void* -*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:3314](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L3314)* +*Defined in [subproviders/src/subproviders/metamask_subprovider.ts:39](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/subproviders/src/subproviders/metamask_subprovider.ts#L39)* -Sends an Ethereum transaction executing this method with the supplied parameters. This is a read/write -Ethereum operation and will cost gas. +This method conforms to the web3-provider-engine interface. +It is called internally by the ProviderEngine when it is this subproviders +turn to handle a JSON RPC request. **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. | -`txData?` | `Partial` \| undefined | Additional data for transaction | +`payload` | `JSONRPCRequestPayload` | JSON RPC payload | +`next` | [Callback](#callback) | Callback to call if this subprovider decides not to handle the request | +`end` | [ErrorCallback](#errorcallback) | Callback to call if subprovider handled the request and wants to pass back the request. | -**Returns:** *`Promise`* +**Returns:** *`Promise`* + +___ -The hash of the transaction +### sendAsync -#### validateAndSendTransactionAsync +▸ **sendAsync**(`payload`: `JSONRPCRequestPayload`, `callback`: [ErrorCallback](#errorcallback)): *void* -▸ **validateAndSendTransactionAsync**(`order`: object, `takerAddress`: string, `takerAssetFillAmount`: `BigNumber`, `txData?`: `Partial` | undefined): *`Promise`* +*Defined in [subproviders/src/subproviders/metamask_subprovider.ts:117](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/subproviders/src/subproviders/metamask_subprovider.ts#L117)* -*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:3464](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L3464)* +This method conforms to the provider sendAsync interface. +Allowing the MetamaskSubprovider to be used as a generic provider (outside of Web3ProviderEngine) with the +addition of wrapping the inconsistent Metamask behaviour **Parameters:** -Name | Type | ------- | ------ | -`order` | object | -`takerAddress` | string | -`takerAssetFillAmount` | `BigNumber` | -`txData?` | `Partial` \| undefined | - -**Returns:** *`Promise`* +Name | Type | Description | +------ | ------ | ------ | +`payload` | `JSONRPCRequestPayload` | JSON RPC payload | +`callback` | [ErrorCallback](#errorcallback) | - | -___ +**Returns:** *void* -### getSimulatedOrdersTransferResults +The contents nested under the result key of the response body -#### ▪ **getSimulatedOrdersTransferResults**: *object* +___ -*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:3676](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L3676)* +### setEngine -Simulates all of the transfers for each given order and returns the indices of each first failed transfer. +▸ **setEngine**(`engine`: `Web3ProviderEngine`): *void* -#### awaitTransactionSuccessAsync -▸ **awaitTransactionSuccessAsync**(`orders`: `Array`, `takerAddresses`: string[], `takerAssetFillAmounts`: `BigNumber`[], `txData?`: `Partial`, `pollingIntervalMs?`: undefined | number, `timeoutMs?`: undefined | number): *`PromiseWithTransactionHash`* -*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:3744](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L3744)* +*Defined in [subproviders/src/subproviders/subprovider.ts:68](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/subproviders/src/subproviders/subprovider.ts#L68)* -Sends an Ethereum transaction and waits until the transaction has been successfully mined without reverting. -If the transaction was mined, but reverted, an error is thrown. +Set's the subprovider's engine to the ProviderEngine it is added to. +This is only called within the ProviderEngine source code, do not call +directly. **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. | -`txData?` | `Partial` | Additional data for transaction | -`pollingIntervalMs?` | undefined \| number | Interval at which to poll for success | -`timeoutMs?` | undefined \| number | - | +`engine` | `Web3ProviderEngine` | The ProviderEngine this subprovider is added to | -**Returns:** *`PromiseWithTransactionHash`* +**Returns:** *void* + +
+ +# Class: RPCSubprovider + +This class implements the [web3-provider-engine](https://github.com/MetaMask/provider-engine) subprovider interface. +It forwards on JSON RPC requests to the supplied `rpcUrl` endpoint -A promise that resolves when the transaction is successful -#### callAsync +## Constructors + -▸ **callAsync**(`orders`: `Array`, `takerAddresses`: string[], `takerAssetFillAmounts`: `BigNumber`[], `callData`: `Partial`, `defaultBlock?`: [BlockParam](#blockparam)): *`Promise`* -*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:3889](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L3889)* +\+ **new RPCSubprovider**(`rpcUrl`: string, `requestTimeoutMs`: number): *[RPCSubprovider](#class-rpcsubprovider)* -Sends a read-only call to the contract method. Returns the result that would happen if one were to send an -Ethereum transaction to this method, given the current state of the blockchain. Calls do not cost gas -since they don't modify state. +*Defined in [subproviders/src/subproviders/rpc_subprovider.ts:17](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/subproviders/src/subproviders/rpc_subprovider.ts#L17)* **Parameters:** Name | Type | Default | 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. | -`callData` | `Partial` | {} | - | -`defaultBlock?` | [BlockParam](#blockparam) | - | - | +`rpcUrl` | string | - | URL to the backing Ethereum node to which JSON RPC requests should be sent | +`requestTimeoutMs` | number | 20000 | Amount of miliseconds to wait before timing out the JSON RPC request | -**Returns:** *`Promise`* +**Returns:** *[RPCSubprovider](#class-rpcsubprovider)* -The indices of the first failed transfer (or 4 if all transfers are successful) for each order. +## Methods + +### emitPayloadAsync + +▸ **emitPayloadAsync**(`payload`: `Partial`): *`Promise`* -#### estimateGasAsync -▸ **estimateGasAsync**(`orders`: `Array`, `takerAddresses`: string[], `takerAssetFillAmounts`: `BigNumber`[], `txData?`: `Partial` | undefined): *`Promise`* -*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:3799](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L3799)* +*Defined in [subproviders/src/subproviders/subprovider.ts:55](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/subproviders/src/subproviders/subprovider.ts#L55)* -Estimates the gas cost of sending an Ethereum transaction calling this method with these arguments. +Emits a JSON RPC payload that will then be handled by the ProviderEngine instance +this subprovider is a part of. The payload will cascade down the subprovider middleware +stack until finding the responsible entity for handling the request. **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. | -`txData?` | `Partial` \| undefined | Additional data for transaction | +`payload` | `Partial` | JSON RPC payload | -**Returns:** *`Promise`* +**Returns:** *`Promise`* + +JSON RPC response payload + +___ -The hash of the transaction +### handleRequest -#### getABIDecodedReturnData +▸ **handleRequest**(`payload`: `JSONRPCRequestPayload`, `_next`: [Callback](#callback), `end`: [ErrorCallback](#errorcallback)): *`Promise`* -▸ **getABIDecodedReturnData**(`returnData`: string): *number[]* +*Overrides void* -*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:4048](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L4048)* +*Defined in [subproviders/src/subproviders/rpc_subprovider.ts:38](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/subproviders/src/subproviders/rpc_subprovider.ts#L38)* -Decode the ABI-encoded return data from a transaction +This method conforms to the web3-provider-engine interface. +It is called internally by the ProviderEngine when it is this subproviders +turn to handle a JSON RPC request. **Parameters:** Name | Type | Description | ------ | ------ | ------ | -`returnData` | string | the data returned after transaction execution | +`payload` | `JSONRPCRequestPayload` | JSON RPC payload | +`_next` | [Callback](#callback) | Callback to call if this subprovider decides not to handle the request | +`end` | [ErrorCallback](#errorcallback) | Callback to call if subprovider handled the request and wants to pass back the request. | + +**Returns:** *`Promise`* -**Returns:** *number[]* +___ + +### setEngine -An array representing the output results in order. Keynames of nested structs are preserved. +▸ **setEngine**(`engine`: `Web3ProviderEngine`): *void* -#### getABIDecodedTransactionData -▸ **getABIDecodedTransactionData**(`callData`: string): *`Array`* -*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:4000](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L4000)* +*Defined in [subproviders/src/subproviders/subprovider.ts:68](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/subproviders/src/subproviders/subprovider.ts#L68)* -Decode the ABI-encoded transaction data into its input arguments +Set's the subprovider's engine to the ProviderEngine it is added to. +This is only called within the ProviderEngine source code, do not call +directly. **Parameters:** Name | Type | Description | ------ | ------ | ------ | -`callData` | string | The ABI-encoded transaction data | +`engine` | `Web3ProviderEngine` | The ProviderEngine this subprovider is added to | -**Returns:** *`Array`* - -An array representing the input arguments in order. Keynames of nested structs are preserved. +**Returns:** *void* -#### getABIEncodedTransactionData +
-▸ **getABIEncodedTransactionData**(`orders`: `Array`, `takerAddresses`: string[], `takerAssetFillAmounts`: `BigNumber`[]): *string* +# Enumeration: ERC20TokenEvents -*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:3965](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L3965)* -Returns the ABI encoded transaction data needed to send an Ethereum transaction calling this method. Before -sending the Ethereum tx, this encoded tx data can first be sent to a separate signing service or can be used -to create a 0x transaction (see protocol spec for more details). +## Enumeration members -**Parameters:** +### Approval -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. | +• **Approval**: = "Approval" -**Returns:** *string* +*Defined in [abi-gen-wrappers/src/generated-wrappers/erc20_token.ts:41](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/erc20_token.ts#L41)* -The ABI encoded transaction data as a string +___ -#### sendTransactionAsync +### Transfer -▸ **sendTransactionAsync**(`orders`: `Array`, `takerAddresses`: string[], `takerAssetFillAmounts`: `BigNumber`[], `txData?`: `Partial` | undefined): *`Promise`* +• **Transfer**: = "Transfer" -*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:3688](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L3688)* +*Defined in [abi-gen-wrappers/src/generated-wrappers/erc20_token.ts:40](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/erc20_token.ts#L40)* -Sends an Ethereum transaction executing this method with the supplied parameters. This is a read/write -Ethereum operation and will cost gas. +
-**Parameters:** +# Enumeration: ERC721TokenEvents -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. | -`txData?` | `Partial` \| undefined | Additional data for transaction | -**Returns:** *`Promise`* +## Enumeration members -The hash of the transaction +### Approval -#### validateAndSendTransactionAsync +• **Approval**: = "Approval" -▸ **validateAndSendTransactionAsync**(`orders`: `Array`, `takerAddresses`: string[], `takerAssetFillAmounts`: `BigNumber`[], `txData?`: `Partial` | undefined): *`Promise`* +*Defined in [abi-gen-wrappers/src/generated-wrappers/erc721_token.ts:43](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/erc721_token.ts#L43)* -*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:3843](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L3843)* +___ -**Parameters:** +### ApprovalForAll -Name | Type | ------- | ------ | -`orders` | `Array` | -`takerAddresses` | string[] | -`takerAssetFillAmounts` | `BigNumber`[] | -`txData?` | `Partial` \| undefined | +• **ApprovalForAll**: = "ApprovalForAll" -**Returns:** *`Promise`* +*Defined in [abi-gen-wrappers/src/generated-wrappers/erc721_token.ts:44](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/erc721_token.ts#L44)* ___ -### getTransferableAssetAmount - -#### ▪ **getTransferableAssetAmount**: *object* +### Transfer -*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:4061](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L4061)* +• **Transfer**: = "Transfer" -Gets the amount of an asset transferable by the owner. +*Defined in [abi-gen-wrappers/src/generated-wrappers/erc721_token.ts:45](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/erc721_token.ts#L45)* -#### callAsync +
-▸ **callAsync**(`ownerAddress`: string, `assetData`: string, `callData`: `Partial`, `defaultBlock?`: [BlockParam](#blockparam)): *`Promise`* +# Enumeration: ExchangeEvents -*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:4071](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L4071)* -Sends a read-only call to the contract method. Returns the result that would happen if one were to send an -Ethereum transaction to this method, given the current state of the blockchain. Calls do not cost gas -since they don't modify state. +## Enumeration members -**Parameters:** +### AssetProxyRegistered -Name | Type | Default | Description | ------- | ------ | ------ | ------ | -`ownerAddress` | string | - | Address of the owner of the asset. | -`assetData` | string | - | Description of tokens, per the AssetProxy contract specification. | -`callData` | `Partial` | {} | - | -`defaultBlock?` | [BlockParam](#blockparam) | - | - | +• **AssetProxyRegistered**: = "AssetProxyRegistered" -**Returns:** *`Promise`* +*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:48](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L48)* -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`. +___ -#### getABIDecodedReturnData +### Cancel -▸ **getABIDecodedReturnData**(`returnData`: string): *`BigNumber`* +• **Cancel**: = "Cancel" -*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:4153](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L4153)* +*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:49](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L49)* -Decode the ABI-encoded return data from a transaction +___ -**Parameters:** +### CancelUpTo -Name | Type | Description | ------- | ------ | ------ | -`returnData` | string | the data returned after transaction execution | +• **CancelUpTo**: = "CancelUpTo" -**Returns:** *`BigNumber`* +*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:50](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L50)* -An array representing the output results in order. Keynames of nested structs are preserved. +___ -#### getABIDecodedTransactionData +### Fill -▸ **getABIDecodedTransactionData**(`callData`: string): *string* +• **Fill**: = "Fill" -*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:4141](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L4141)* +*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:51](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L51)* -Decode the ABI-encoded transaction data into its input arguments +___ -**Parameters:** +### ProtocolFeeCollectorAddress -Name | Type | Description | ------- | ------ | ------ | -`callData` | string | The ABI-encoded transaction data | +• **ProtocolFeeCollectorAddress**: = "ProtocolFeeCollectorAddress" -**Returns:** *string* +*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:52](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L52)* -An array representing the input arguments in order. Keynames of nested structs are preserved. +___ -#### getABIEncodedTransactionData +### ProtocolFeeMultiplier -▸ **getABIEncodedTransactionData**(`ownerAddress`: string, `assetData`: string): *string* +• **ProtocolFeeMultiplier**: = "ProtocolFeeMultiplier" -*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:4126](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L4126)* +*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:53](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L53)* -Returns the ABI encoded transaction data needed to send an Ethereum transaction calling this method. Before -sending the Ethereum tx, this encoded tx data can first be sent to a separate signing service or can be used -to create a 0x transaction (see protocol spec for more details). +___ -**Parameters:** +### SignatureValidatorApproval -Name | Type | Description | ------- | ------ | ------ | -`ownerAddress` | string | Address of the owner of the asset. | -`assetData` | string | Description of tokens, per the AssetProxy contract specification. | +• **SignatureValidatorApproval**: = "SignatureValidatorApproval" -**Returns:** *string* +*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:54](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L54)* -The ABI encoded transaction data as a string +___ -
+### TransactionExecution -# Class: ERC20TokenContract +• **TransactionExecution**: = "TransactionExecution" +*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:55](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L55)* -## Constructors +
+# Enumeration: WETH9Events -\+ **new ERC20TokenContract**(`address`: string, `supportedProvider`: [SupportedProvider](#supportedprovider), `txDefaults?`: `Partial`, `logDecodeDependencies?`: undefined | object, `deployedBytecode`: string | undefined): *[ERC20TokenContract](#class-erc20tokencontract)* +## Enumeration members -*Overrides void* +### Approval -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc20_token.ts:1282](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc20_token.ts#L1282)* +• **Approval**: = "Approval" -**Parameters:** +*Defined in [abi-gen-wrappers/src/generated-wrappers/weth9.ts:44](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/weth9.ts#L44)* -Name | Type | Default | ------- | ------ | ------ | -`address` | string | - | -`supportedProvider` | [SupportedProvider](#supportedprovider) | - | -`txDefaults?` | `Partial` | - | -`logDecodeDependencies?` | undefined \| object | - | -`deployedBytecode` | string \| undefined | ERC20TokenContract.deployedBytecode | +___ -**Returns:** *[ERC20TokenContract](#class-erc20tokencontract)* +### Deposit -## Properties +• **Deposit**: = "Deposit" -#### abi +*Defined in [abi-gen-wrappers/src/generated-wrappers/weth9.ts:46](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/weth9.ts#L46)* -• **abi**: *[ContractAbi](#contractabi)* +___ +### Transfer +• **Transfer**: = "Transfer" -Defined in base-contract/lib/src/index.d.ts:27 +*Defined in [abi-gen-wrappers/src/generated-wrappers/weth9.ts:45](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/weth9.ts#L45)* ___ -### address - -• **address**: *string* +### Withdrawal +• **Withdrawal**: = "Withdrawal" +*Defined in [abi-gen-wrappers/src/generated-wrappers/weth9.ts:47](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/weth9.ts#L47)* -Defined in base-contract/lib/src/index.d.ts:28 +
-___ +# Enumeration: SubscriptionErrors -Args -• **constructorArgs**: *any[]* +## Enumeration members +### SubscriptionAlreadyPresent +• **SubscriptionAlreadyPresent**: = "SUBSCRIPTION_ALREADY_PRESENT" -Defined in base-contract/lib/src/index.d.ts:30 +*Defined in [base-contract/src/types.ts:21](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/base-contract/src/types.ts#L21)* ___ -### contractName +### SubscriptionNotFound -• **contractName**: *string* +• **SubscriptionNotFound**: = "SUBSCRIPTION_NOT_FOUND" +*Defined in [base-contract/src/types.ts:20](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/base-contract/src/types.ts#L20)* +
-Defined in base-contract/lib/src/index.d.ts:29 +# Enumeration: ChainId -___ -### `Static` deployedBytecode +## Enumeration members -▪ **deployedBytecode**: *string* = "0x608060405234801561001057600080fd5b50600436106100725760003560e01c806370a082311161005057806370a0823114610121578063a9059cbb14610154578063dd62ed3e1461018d57610072565b8063095ea7b31461007757806318160ddd146100c457806323b872dd146100de575b600080fd5b6100b06004803603604081101561008d57600080fd5b5073ffffffffffffffffffffffffffffffffffffffff81351690602001356101c8565b604080519115158252519081900360200190f35b6100cc61023b565b60408051918252519081900360200190f35b6100b0600480360360608110156100f457600080fd5b5073ffffffffffffffffffffffffffffffffffffffff813581169160208101359091169060400135610241565b6100cc6004803603602081101561013757600080fd5b503573ffffffffffffffffffffffffffffffffffffffff1661049d565b6100b06004803603604081101561016a57600080fd5b5073ffffffffffffffffffffffffffffffffffffffff81351690602001356104c5565b6100cc600480360360408110156101a357600080fd5b5073ffffffffffffffffffffffffffffffffffffffff81358116916020013516610652565b33600081815260016020908152604080832073ffffffffffffffffffffffffffffffffffffffff8716808552908352818420869055815186815291519394909390927f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925928290030190a350600192915050565b60025490565b73ffffffffffffffffffffffffffffffffffffffff83166000908152602081905260408120548211156102d557604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601a60248201527f45524332305f494e53554646494349454e545f42414c414e4345000000000000604482015290519081900360640190fd5b73ffffffffffffffffffffffffffffffffffffffff8416600090815260016020908152604080832033845290915290205482111561037457604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601c60248201527f45524332305f494e53554646494349454e545f414c4c4f57414e434500000000604482015290519081900360640190fd5b73ffffffffffffffffffffffffffffffffffffffff8316600090815260208190526040902054828101101561040a57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601060248201527f55494e543235365f4f564552464c4f5700000000000000000000000000000000604482015290519081900360640190fd5b73ffffffffffffffffffffffffffffffffffffffff80841660008181526020818152604080832080548801905593881680835284832080548890039055600182528483203384528252918490208054879003905583518681529351929391927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a35060019392505050565b73ffffffffffffffffffffffffffffffffffffffff1660009081526020819052604090205490565b3360009081526020819052604081205482111561054357604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601a60248201527f45524332305f494e53554646494349454e545f42414c414e4345000000000000604482015290519081900360640190fd5b73ffffffffffffffffffffffffffffffffffffffff831660009081526020819052604090205482810110156105d957604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601060248201527f55494e543235365f4f564552464c4f5700000000000000000000000000000000604482015290519081900360640190fd5b336000818152602081815260408083208054879003905573ffffffffffffffffffffffffffffffffffffffff871680845292819020805487019055805186815290519293927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef929181900390910190a350600192915050565b73ffffffffffffffffffffffffffffffffffffffff91821660009081526001602090815260408083209390941682529190915220549056fea265627a7a723158205713efa92f66e67a8d01b80af8500df66bd6e9862dcf791e587181109d8ab0c464736f6c634300050b0032" +### Ganache -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc20_token.ts:51](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc20_token.ts#L51)* +• **Ganache**: = 1337 -## Methods +*Defined in [contract-addresses/src/index.ts:34](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/contract-addresses/src/index.ts#L34)* -### evmExecAsync +___ -▸ **evmExecAsync**(`input`: `Buffer`): *`Promise`* +### Kovan +• **Kovan**: = 42 +*Defined in [contract-addresses/src/index.ts:33](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/contract-addresses/src/index.ts#L33)* -Defined in base-contract/lib/src/index.d.ts:42 +___ -**Parameters:** +### Mainnet -Name | Type | ------- | ------ | -`input` | `Buffer` | +• **Mainnet**: = 1 -**Returns:** *`Promise`* +*Defined in [contract-addresses/src/index.ts:30](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/contract-addresses/src/index.ts#L30)* ___ -### getLogsAsync - -▸ **getLogsAsync**<**ArgsType**>(`eventName`: [ERC20TokenEvents](#enumeration-erc20tokenevents), `blockRange`: `BlockRange`, `indexFilterValues`: `IndexedFilterValues`): *`Promise>>`* +### Rinkeby -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc20_token.ts:1266](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc20_token.ts#L1266)* +• **Rinkeby**: = 4 -Gets historical logs without creating a subscription +*Defined in [contract-addresses/src/index.ts:32](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/contract-addresses/src/index.ts#L32)* -**Type parameters:** +___ -▪ **ArgsType**: *[ERC20TokenEventArgs](#erc20tokeneventargs)* +### Ropsten -**Parameters:** +• **Ropsten**: = 3 -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}` | +*Defined in [contract-addresses/src/index.ts:31](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/contract-addresses/src/index.ts#L31)* -**Returns:** *`Promise>>`* +
-Array of logs that match the parameters -___ -### subscribe +# Enumeration: BlockParamLiteral -▸ **subscribe**<**ArgsType**>(`eventName`: [ERC20TokenEvents](#enumeration-erc20tokenevents), `indexFilterValues`: `IndexedFilterValues`, `callback`: [EventCallback](#eventcallback)‹*`ArgsType`*›, `isVerbose`: boolean, `blockPollingIntervalMs?`: undefined | number): *string* -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc20_token.ts:1224](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc20_token.ts#L1224)* +## Enumeration members -Subscribe to an event type emitted by the ERC20Token contract. +### Earliest -**Type parameters:** +• **Earliest**: = "earliest" -▪ **ArgsType**: *[ERC20TokenEventArgs](#erc20tokeneventargs)* +*Defined in [ethereum-types/src/index.ts:478](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L478)* -**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 | - | - | +### Latest -**Returns:** *string* +• **Latest**: = "latest" -Subscription token used later to unsubscribe +*Defined in [ethereum-types/src/index.ts:479](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L479)* ___ -### unsubscribe +### Pending -▸ **unsubscribe**(`subscriptionToken`: string): *void* +• **Pending**: = "pending" -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc20_token.ts:1249](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc20_token.ts#L1249)* +*Defined in [ethereum-types/src/index.ts:480](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L480)* -Cancel a subscription +
-**Parameters:** -Name | Type | Description | ------- | ------ | ------ | -`subscriptionToken` | string | Subscription token returned by `subscribe()` | -**Returns:** *void* -___ -### unsubscribeAll -▸ **unsubscribeAll**(): *void* -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc20_token.ts:1255](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc20_token.ts#L1255)* -Cancels all existing subscriptions -**Returns:** *void* -___ -### `Static` ABI +# Enumeration: AssetProxyId -▸ **ABI**(): *[ContractAbi](#contractabi)* -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc20_token.ts:1035](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc20_token.ts#L1035)* +## Enumeration members -**Returns:** *[ContractAbi](#contractabi)* +### ERC1155 -The contract ABI +• **ERC1155**: = "0xa7cb5fb7" + +*Defined in [types/src/index.ts:166](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/types/src/index.ts#L166)* ___ -### `Static` deployAsync +### ERC20 -▸ **deployAsync**(`bytecode`: string, `abi`: [ContractAbi](#contractabi), `supportedProvider`: [SupportedProvider](#supportedprovider), `txDefaults`: `Partial`, `logDecodeDependencies`: object): *`Promise`* +• **ERC20**: = "0xf47261b0" -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc20_token.ts:993](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc20_token.ts#L993)* +*Defined in [types/src/index.ts:163](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/types/src/index.ts#L163)* -**Parameters:** +___ -Name | Type | ------- | ------ | -`bytecode` | string | -`abi` | [ContractAbi](#contractabi) | -`supportedProvider` | [SupportedProvider](#supportedprovider) | -`txDefaults` | `Partial` | -`logDecodeDependencies` | object | +### ERC20Bridge -**Returns:** *`Promise`* +• **ERC20Bridge**: = "0xdc1600f3" + +*Defined in [types/src/index.ts:168](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/types/src/index.ts#L168)* ___ -### `Static` deployFrom0xArtifactAsync +### ERC721 -▸ **deployFrom0xArtifactAsync**(`artifact`: `ContractArtifact` | `SimpleContractArtifact`, `supportedProvider`: [SupportedProvider](#supportedprovider), `txDefaults`: `Partial`, `logDecodeDependencies`: object): *`Promise`* +• **ERC721**: = "0x02571792" -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc20_token.ts:968](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc20_token.ts#L968)* +*Defined in [types/src/index.ts:164](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/types/src/index.ts#L164)* -**Parameters:** +___ -Name | Type | ------- | ------ | -`artifact` | `ContractArtifact` \| `SimpleContractArtifact` | -`supportedProvider` | [SupportedProvider](#supportedprovider) | -`txDefaults` | `Partial` | -`logDecodeDependencies` | object | +### MultiAsset -**Returns:** *`Promise`* +• **MultiAsset**: = "0x94cfcdd7" + +*Defined in [types/src/index.ts:165](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/types/src/index.ts#L165)* ___ -### `Static` strictArgumentEncodingCheck +### StaticCall -▸ **strictArgumentEncodingCheck**(`inputAbi`: `DataItem`[], `args`: any[]): *string* +• **StaticCall**: = "0xc339d10a" +*Defined in [types/src/index.ts:167](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/types/src/index.ts#L167)* +
-Defined in base-contract/lib/src/index.d.ts:41 -**Parameters:** -Name | Type | ------- | ------ | -`inputAbi` | `DataItem`[] | -`args` | any[] | -**Returns:** *string* -## Object literals -### allowance -#### ▪ **allowance**: *object* -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc20_token.ts:869](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc20_token.ts#L869)* -#### callAsync -▸ **callAsync**(`_owner`: string, `_spender`: string, `callData`: `Partial`, `defaultBlock?`: [BlockParam](#blockparam)): *`Promise`* -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc20_token.ts:878](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc20_token.ts#L878)* -Sends a read-only call to the contract method. Returns the result that would happen if one were to send an -Ethereum transaction to this method, given the current state of the blockchain. Calls do not cost gas -since they don't modify state. -**Parameters:** +# Enumeration: SignatureType -Name | Type | Default | Description | ------- | ------ | ------ | ------ | -`_owner` | string | - | The address of the account owning tokens | -`_spender` | string | - | The address of the account able to transfer the tokens | -`callData` | `Partial` | {} | - | -`defaultBlock?` | [BlockParam](#blockparam) | - | - | -**Returns:** *`Promise`* +## Enumeration members -Amount of remaining tokens allowed to spent +### EIP1271Wallet -#### getABIDecodedReturnData +• **EIP1271Wallet**: -▸ **getABIDecodedReturnData**(`returnData`: string): *`BigNumber`* +*Defined in [types/src/index.ts:158](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/types/src/index.ts#L158)* -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc20_token.ts:959](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc20_token.ts#L959)* +___ -Decode the ABI-encoded return data from a transaction +### EIP712 -**Parameters:** +• **EIP712**: -Name | Type | Description | ------- | ------ | ------ | -`returnData` | string | the data returned after transaction execution | +*Defined in [types/src/index.ts:153](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/types/src/index.ts#L153)* -**Returns:** *`BigNumber`* +___ -An array representing the output results in order. Keynames of nested structs are preserved. +### EthSign -#### getABIDecodedTransactionData +• **EthSign**: -▸ **getABIDecodedTransactionData**(`callData`: string): *string* +*Defined in [types/src/index.ts:154](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/types/src/index.ts#L154)* -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc20_token.ts:947](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc20_token.ts#L947)* +___ -Decode the ABI-encoded transaction data into its input arguments +### Illegal -**Parameters:** +• **Illegal**: -Name | Type | Description | ------- | ------ | ------ | -`callData` | string | The ABI-encoded transaction data | +*Defined in [types/src/index.ts:151](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/types/src/index.ts#L151)* -**Returns:** *string* +___ -An array representing the input arguments in order. Keynames of nested structs are preserved. +### Invalid -#### getABIEncodedTransactionData +• **Invalid**: -▸ **getABIEncodedTransactionData**(`_owner`: string, `_spender`: string): *string* +*Defined in [types/src/index.ts:152](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/types/src/index.ts#L152)* -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc20_token.ts:932](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc20_token.ts#L932)* +___ -Returns the ABI encoded transaction data needed to send an Ethereum transaction calling this method. Before -sending the Ethereum tx, this encoded tx data can first be sent to a separate signing service or can be used -to create a 0x transaction (see protocol spec for more details). +### NSignatureTypes -**Parameters:** +• **NSignatureTypes**: -Name | Type | Description | ------- | ------ | ------ | -`_owner` | string | The address of the account owning tokens | -`_spender` | string | The address of the account able to transfer the tokens | +*Defined in [types/src/index.ts:159](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/types/src/index.ts#L159)* -**Returns:** *string* +___ -The ABI encoded transaction data as a string +### PreSigned -___ +• **PreSigned**: -### approve +*Defined in [types/src/index.ts:157](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/types/src/index.ts#L157)* -#### ▪ **approve**: *object* +___ -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc20_token.ts:56](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc20_token.ts#L56)* +### Validator -`msg.sender` approves `_spender` to spend `_value` tokens +• **Validator**: -#### awaitTransactionSuccessAsync +*Defined in [types/src/index.ts:156](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/types/src/index.ts#L156)* -▸ **awaitTransactionSuccessAsync**(`_spender`: string, `_value`: `BigNumber`, `txData?`: `Partial`, `pollingIntervalMs?`: undefined | number, `timeoutMs?`: undefined | number): *`PromiseWithTransactionHash`* +___ -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc20_token.ts:101](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc20_token.ts#L101)* +### Wallet -Sends an Ethereum transaction and waits until the transaction has been successfully mined without reverting. -If the transaction was mined, but reverted, an error is thrown. +• **Wallet**: -**Parameters:** +*Defined in [types/src/index.ts:155](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/types/src/index.ts#L155)* -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 | -`txData?` | `Partial` | Additional data for transaction | -`pollingIntervalMs?` | undefined \| number | Interval at which to poll for success | -`timeoutMs?` | undefined \| number | - | +
-**Returns:** *`PromiseWithTransactionHash`* -A promise that resolves when the transaction is successful -#### callAsync -▸ **callAsync**(`_spender`: string, `_value`: `BigNumber`, `callData`: `Partial`, `defaultBlock?`: [BlockParam](#blockparam)): *`Promise`* -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc20_token.ts:175](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc20_token.ts#L175)* -Sends a read-only call to the contract method. Returns the result that would happen if one were to send an -Ethereum transaction to this method, given the current state of the blockchain. Calls do not cost gas -since they don't modify state. -**Parameters:** -Name | Type | Default | Description | ------- | ------ | ------ | ------ | -`_spender` | string | - | The address of the account able to transfer the tokens | -`_value` | `BigNumber` | - | The amount of wei to be approved for transfer | -`callData` | `Partial` | {} | - | -`defaultBlock?` | [BlockParam](#blockparam) | - | - | -**Returns:** *`Promise`* -Always true if the call has enough gas to complete execution -#### estimateGasAsync +
-▸ **estimateGasAsync**(`_spender`: string, `_value`: `BigNumber`, `txData?`: `Partial` | undefined): *`Promise`* +# Interface: ERC20TokenApprovalEventArgs -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc20_token.ts:131](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc20_token.ts#L131)* -Estimates the gas cost of sending an Ethereum transaction calling this method with these arguments. +## Index -**Parameters:** +### Properties -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 | -`txData?` | `Partial` \| undefined | Additional data for transaction | +* [_owner](#_owner) +* [_spender](#_spender) +* [_value](#_value) -**Returns:** *`Promise`* +## Properties -The hash of the transaction +### _owner -#### getABIDecodedReturnData +• **_owner**: *string* -▸ **getABIDecodedReturnData**(`returnData`: string): *boolean* +*Defined in [abi-gen-wrappers/src/generated-wrappers/erc20_token.ts:51](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/erc20_token.ts#L51)* -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc20_token.ts:256](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc20_token.ts#L256)* +___ -Decode the ABI-encoded return data from a transaction +### _spender -**Parameters:** +• **_spender**: *string* -Name | Type | Description | ------- | ------ | ------ | -`returnData` | string | the data returned after transaction execution | +*Defined in [abi-gen-wrappers/src/generated-wrappers/erc20_token.ts:52](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/erc20_token.ts#L52)* -**Returns:** *boolean* +___ -An array representing the output results in order. Keynames of nested structs are preserved. +### _value -#### getABIDecodedTransactionData +• **_value**: *`BigNumber`* -▸ **getABIDecodedTransactionData**(`callData`: string): *string* +*Defined in [abi-gen-wrappers/src/generated-wrappers/erc20_token.ts:53](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/erc20_token.ts#L53)* -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc20_token.ts:244](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc20_token.ts#L244)* +
-Decode the ABI-encoded transaction data into its input arguments +# Interface: ERC20TokenTransferEventArgs -**Parameters:** -Name | Type | Description | ------- | ------ | ------ | -`callData` | string | The ABI-encoded transaction data | +## Index -**Returns:** *string* +### Properties -An array representing the input arguments in order. Keynames of nested structs are preserved. +* [_from](#_from) +* [_to](#_to) +* [_value](#_value) -#### getABIEncodedTransactionData +## Properties -▸ **getABIEncodedTransactionData**(`_spender`: string, `_value`: `BigNumber`): *string* +### _from -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc20_token.ts:229](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc20_token.ts#L229)* +• **_from**: *string* -Returns the ABI encoded transaction data needed to send an Ethereum transaction calling this method. Before -sending the Ethereum tx, this encoded tx data can first be sent to a separate signing service or can be used -to create a 0x transaction (see protocol spec for more details). +*Defined in [abi-gen-wrappers/src/generated-wrappers/erc20_token.ts:45](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/erc20_token.ts#L45)* -**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 | +### _to -**Returns:** *string* +• **_to**: *string* -The ABI encoded transaction data as a string +*Defined in [abi-gen-wrappers/src/generated-wrappers/erc20_token.ts:46](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/erc20_token.ts#L46)* -#### sendTransactionAsync +___ -▸ **sendTransactionAsync**(`_spender`: string, `_value`: `BigNumber`, `txData?`: `Partial` | undefined): *`Promise`* +### _value -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc20_token.ts:65](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc20_token.ts#L65)* +• **_value**: *`BigNumber`* -Sends an Ethereum transaction executing this method with the supplied parameters. This is a read/write -Ethereum operation and will cost gas. +*Defined in [abi-gen-wrappers/src/generated-wrappers/erc20_token.ts:47](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/erc20_token.ts#L47)* -**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 | -`txData?` | `Partial` \| undefined | Additional data for transaction | +# Interface: ERC721TokenApprovalEventArgs -**Returns:** *`Promise`* -The hash of the transaction +## Index -#### validateAndSendTransactionAsync +### Properties -▸ **validateAndSendTransactionAsync**(`_spender`: string, `_value`: `BigNumber`, `txData?`: `Partial` | undefined): *`Promise`* +* [_approved](#_approved) +* [_owner](#_owner) +* [_tokenId](#_tokenid) -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc20_token.ts:158](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc20_token.ts#L158)* +## Properties -**Parameters:** +### _approved -Name | Type | ------- | ------ | -`_spender` | string | -`_value` | `BigNumber` | -`txData?` | `Partial` \| undefined | +• **_approved**: *string* -**Returns:** *`Promise`* +*Defined in [abi-gen-wrappers/src/generated-wrappers/erc721_token.ts:50](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/erc721_token.ts#L50)* ___ -### balanceOf - -#### ▪ **balanceOf**: *object* +### _owner -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc20_token.ts:584](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc20_token.ts#L584)* +• **_owner**: *string* -Query the balance of owner +*Defined in [abi-gen-wrappers/src/generated-wrappers/erc721_token.ts:49](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/erc721_token.ts#L49)* -#### callAsync +___ -▸ **callAsync**(`_owner`: string, `callData`: `Partial`, `defaultBlock?`: [BlockParam](#blockparam)): *`Promise`* +### _tokenId -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc20_token.ts:592](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc20_token.ts#L592)* +• **_tokenId**: *`BigNumber`* -Sends a read-only call to the contract method. Returns the result that would happen if one were to send an -Ethereum transaction to this method, given the current state of the blockchain. Calls do not cost gas -since they don't modify state. +*Defined in [abi-gen-wrappers/src/generated-wrappers/erc721_token.ts:51](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/erc721_token.ts#L51)* -**Parameters:** +
-Name | Type | Default | Description | ------- | ------ | ------ | ------ | -`_owner` | string | - | The address from which the balance will be retrieved | -`callData` | `Partial` | {} | - | -`defaultBlock?` | [BlockParam](#blockparam) | - | - | +# Interface: ERC721TokenApprovalForAllEventArgs -**Returns:** *`Promise`* -Balance of owner +## Index -#### getABIDecodedReturnData +### Properties -▸ **getABIDecodedReturnData**(`returnData`: string): *`BigNumber`* +* [_approved](#_approved) +* [_operator](#_operator) +* [_owner](#_owner) -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc20_token.ts:663](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc20_token.ts#L663)* +## Properties -Decode the ABI-encoded return data from a transaction +### _approved -**Parameters:** +• **_approved**: *boolean* -Name | Type | Description | ------- | ------ | ------ | -`returnData` | string | the data returned after transaction execution | +*Defined in [abi-gen-wrappers/src/generated-wrappers/erc721_token.ts:57](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/erc721_token.ts#L57)* -**Returns:** *`BigNumber`* +___ -An array representing the output results in order. Keynames of nested structs are preserved. +### _operator -#### getABIDecodedTransactionData +• **_operator**: *string* -▸ **getABIDecodedTransactionData**(`callData`: string): *string* +*Defined in [abi-gen-wrappers/src/generated-wrappers/erc721_token.ts:56](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/erc721_token.ts#L56)* -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc20_token.ts:651](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc20_token.ts#L651)* +___ -Decode the ABI-encoded transaction data into its input arguments +### _owner -**Parameters:** +• **_owner**: *string* -Name | Type | Description | ------- | ------ | ------ | -`callData` | string | The ABI-encoded transaction data | +*Defined in [abi-gen-wrappers/src/generated-wrappers/erc721_token.ts:55](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/erc721_token.ts#L55)* -**Returns:** *string* +
-An array representing the input arguments in order. Keynames of nested structs are preserved. +# Interface: ERC721TokenTransferEventArgs -#### getABIEncodedTransactionData -▸ **getABIEncodedTransactionData**(`_owner`: string): *string* +## Index -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc20_token.ts:640](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc20_token.ts#L640)* +### Properties -Returns the ABI encoded transaction data needed to send an Ethereum transaction calling this method. Before -sending the Ethereum tx, this encoded tx data can first be sent to a separate signing service or can be used -to create a 0x transaction (see protocol spec for more details). +* [_from](#_from) +* [_to](#_to) +* [_tokenId](#_tokenid) -**Parameters:** +## Properties -Name | Type | Description | ------- | ------ | ------ | -`_owner` | string | The address from which the balance will be retrieved | +### _from -**Returns:** *string* +• **_from**: *string* -The ABI encoded transaction data as a string +*Defined in [abi-gen-wrappers/src/generated-wrappers/erc721_token.ts:61](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/erc721_token.ts#L61)* ___ -### totalSupply +### _to -#### ▪ **totalSupply**: *object* +• **_to**: *string* -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc20_token.ts:267](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc20_token.ts#L267)* +*Defined in [abi-gen-wrappers/src/generated-wrappers/erc721_token.ts:62](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/erc721_token.ts#L62)* -Query total supply of token +___ + +### _tokenId -#### callAsync +• **_tokenId**: *`BigNumber`* -▸ **callAsync**(`callData`: `Partial`, `defaultBlock?`: [BlockParam](#blockparam)): *`Promise`* +*Defined in [abi-gen-wrappers/src/generated-wrappers/erc721_token.ts:63](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/erc721_token.ts#L63)* -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc20_token.ts:274](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc20_token.ts#L274)* +
-Sends a read-only call to the contract method. Returns the result that would happen if one were to send an -Ethereum transaction to this method, given the current state of the blockchain. Calls do not cost gas -since they don't modify state. +# Interface: ExchangeAssetProxyRegisteredEventArgs -**Parameters:** -Name | Type | Default | ------- | ------ | ------ | -`callData` | `Partial` | {} | -`defaultBlock?` | [BlockParam](#blockparam) | - | +## Index -**Returns:** *`Promise`* +### Properties -Total supply of token +* [assetProxy](#assetproxy) +* [id](#id) -#### getABIDecodedReturnData +## Properties -▸ **getABIDecodedReturnData**(`returnData`: string): *`BigNumber`* +### assetProxy -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc20_token.ts:338](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc20_token.ts#L338)* +• **assetProxy**: *string* -Decode the ABI-encoded return data from a transaction +*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:60](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L60)* -**Parameters:** +___ -Name | Type | Description | ------- | ------ | ------ | -`returnData` | string | the data returned after transaction execution | +### id -**Returns:** *`BigNumber`* +• **id**: *string* -An array representing the output results in order. Keynames of nested structs are preserved. +*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:59](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L59)* -#### getABIDecodedTransactionData +
-▸ **getABIDecodedTransactionData**(`callData`: string): *void* +# Interface: ExchangeCancelEventArgs -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc20_token.ts:326](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc20_token.ts#L326)* -Decode the ABI-encoded transaction data into its input arguments +## Index -**Parameters:** +### Properties -Name | Type | Description | ------- | ------ | ------ | -`callData` | string | The ABI-encoded transaction data | +* [feeRecipientAddress](#feerecipientaddress) +* [makerAddress](#makeraddress) +* [makerAssetData](#makerassetdata) +* [orderHash](#orderhash) +* [senderAddress](#senderaddress) +* [takerAssetData](#takerassetdata) -**Returns:** *void* +## Properties -An array representing the input arguments in order. Keynames of nested structs are preserved. +### feeRecipientAddress -#### getABIEncodedTransactionData +• **feeRecipientAddress**: *string* -▸ **getABIEncodedTransactionData**(): *string* +*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:65](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L65)* -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc20_token.ts:316](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc20_token.ts#L316)* +___ -Returns the ABI encoded transaction data needed to send an Ethereum transaction calling this method. Before -sending the Ethereum tx, this encoded tx data can first be sent to a separate signing service or can be used -to create a 0x transaction (see protocol spec for more details). +### makerAddress -**Returns:** *string* +• **makerAddress**: *string* -The ABI encoded transaction data as a string +*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:64](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L64)* ___ -### transfer +### makerAssetData -#### ▪ **transfer**: *object* +• **makerAssetData**: *string* -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc20_token.ts:674](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc20_token.ts#L674)* +*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:66](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L66)* -send `value` token to `to` from `msg.sender` +___ -#### awaitTransactionSuccessAsync +### orderHash -▸ **awaitTransactionSuccessAsync**(`_to`: string, `_value`: `BigNumber`, `txData?`: `Partial`, `pollingIntervalMs?`: undefined | number, `timeoutMs?`: undefined | number): *`PromiseWithTransactionHash`* +• **orderHash**: *string* -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc20_token.ts:716](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc20_token.ts#L716)* +*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:69](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L69)* -Sends an Ethereum transaction and waits until the transaction has been successfully mined without reverting. -If the transaction was mined, but reverted, an error is thrown. +___ -**Parameters:** +### senderAddress -Name | Type | Description | ------- | ------ | ------ | -`_to` | string | The address of the recipient | -`_value` | `BigNumber` | The amount of token to be transferred | -`txData?` | `Partial` | Additional data for transaction | -`pollingIntervalMs?` | undefined \| number | Interval at which to poll for success | -`timeoutMs?` | undefined \| number | - | +• **senderAddress**: *string* -**Returns:** *`PromiseWithTransactionHash`* +*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:68](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L68)* -A promise that resolves when the transaction is successful +___ -#### callAsync +### takerAssetData -▸ **callAsync**(`_to`: string, `_value`: `BigNumber`, `callData`: `Partial`, `defaultBlock?`: [BlockParam](#blockparam)): *`Promise`* +• **takerAssetData**: *string* -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc20_token.ts:783](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc20_token.ts#L783)* +*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:67](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L67)* -Sends a read-only call to the contract method. Returns the result that would happen if one were to send an -Ethereum transaction to this method, given the current state of the blockchain. Calls do not cost gas -since they don't modify state. +
-**Parameters:** +# Interface: ExchangeCancelUpToEventArgs -Name | Type | Default | Description | ------- | ------ | ------ | ------ | -`_to` | string | - | The address of the recipient | -`_value` | `BigNumber` | - | The amount of token to be transferred | -`callData` | `Partial` | {} | - | -`defaultBlock?` | [BlockParam](#blockparam) | - | - | - -**Returns:** *`Promise`* - -True if transfer was successful - -#### estimateGasAsync - -▸ **estimateGasAsync**(`_to`: string, `_value`: `BigNumber`, `txData?`: `Partial` | undefined): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc20_token.ts:746](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc20_token.ts#L746)* - -Estimates the gas cost of sending an Ethereum transaction calling this method with these arguments. - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`_to` | string | The address of the recipient | -`_value` | `BigNumber` | The amount of token to be transferred | -`txData?` | `Partial` \| undefined | Additional data for transaction | - -**Returns:** *`Promise`* - -The hash of the transaction - -#### getABIDecodedReturnData - -▸ **getABIDecodedReturnData**(`returnData`: string): *boolean* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc20_token.ts:861](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc20_token.ts#L861)* - -Decode the ABI-encoded return data from a transaction - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`returnData` | string | the data returned after transaction execution | - -**Returns:** *boolean* - -An array representing the output results in order. Keynames of nested structs are preserved. -#### getABIDecodedTransactionData - -▸ **getABIDecodedTransactionData**(`callData`: string): *string* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc20_token.ts:849](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc20_token.ts#L849)* - -Decode the ABI-encoded transaction data into its input arguments - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`callData` | string | The ABI-encoded transaction data | - -**Returns:** *string* - -An array representing the input arguments in order. Keynames of nested structs are preserved. - -#### getABIEncodedTransactionData - -▸ **getABIEncodedTransactionData**(`_to`: string, `_value`: `BigNumber`): *string* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc20_token.ts:834](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc20_token.ts#L834)* - -Returns the ABI encoded transaction data needed to send an Ethereum transaction calling this method. Before -sending the Ethereum tx, this encoded tx data can first be sent to a separate signing service or can be used -to create a 0x transaction (see protocol spec for more details). - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`_to` | string | The address of the recipient | -`_value` | `BigNumber` | The amount of token to be transferred | - -**Returns:** *string* - -The ABI encoded transaction data as a string - -#### sendTransactionAsync - -▸ **sendTransactionAsync**(`_to`: string, `_value`: `BigNumber`, `txData?`: `Partial` | undefined): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc20_token.ts:683](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc20_token.ts#L683)* - -Sends an Ethereum transaction executing this method with the supplied parameters. This is a read/write -Ethereum operation and will cost gas. +## Index -**Parameters:** +### Properties -Name | Type | Description | ------- | ------ | ------ | -`_to` | string | The address of the recipient | -`_value` | `BigNumber` | The amount of token to be transferred | -`txData?` | `Partial` \| undefined | Additional data for transaction | +* [makerAddress](#makeraddress) +* [orderEpoch](#orderepoch) +* [orderSenderAddress](#ordersenderaddress) -**Returns:** *`Promise`* +## Properties -The hash of the transaction +### makerAddress -#### validateAndSendTransactionAsync +• **makerAddress**: *string* -▸ **validateAndSendTransactionAsync**(`_to`: string, `_value`: `BigNumber`, `txData?`: `Partial` | undefined): *`Promise`* +*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:73](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L73)* -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc20_token.ts:766](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc20_token.ts#L766)* +___ -**Parameters:** +### orderEpoch -Name | Type | ------- | ------ | -`_to` | string | -`_value` | `BigNumber` | -`txData?` | `Partial` \| undefined | +• **orderEpoch**: *`BigNumber`* -**Returns:** *`Promise`* +*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:75](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L75)* ___ -### transferFrom - -#### ▪ **transferFrom**: *object* +### orderSenderAddress -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc20_token.ts:349](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc20_token.ts#L349)* +• **orderSenderAddress**: *string* -send `value` token to `to` from `from` on the condition it is approved by `from` +*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:74](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L74)* -#### awaitTransactionSuccessAsync +
-▸ **awaitTransactionSuccessAsync**(`_from`: string, `_to`: string, `_value`: `BigNumber`, `txData?`: `Partial`, `pollingIntervalMs?`: undefined | number, `timeoutMs?`: undefined | number): *`PromiseWithTransactionHash`* +# Interface: ExchangeFillEventArgs -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc20_token.ts:399](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc20_token.ts#L399)* -Sends an Ethereum transaction and waits until the transaction has been successfully mined without reverting. -If the transaction was mined, but reverted, an error is thrown. +## Index -**Parameters:** +### Properties -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 | -`txData?` | `Partial` | Additional data for transaction | -`pollingIntervalMs?` | undefined \| number | Interval at which to poll for success | -`timeoutMs?` | undefined \| number | - | +* [feeRecipientAddress](#feerecipientaddress) +* [makerAddress](#makeraddress) +* [makerAssetData](#makerassetdata) +* [makerAssetFilledAmount](#makerassetfilledamount) +* [makerFeeAssetData](#makerfeeassetdata) +* [makerFeePaid](#makerfeepaid) +* [orderHash](#orderhash) +* [protocolFeePaid](#protocolfeepaid) +* [senderAddress](#senderaddress) +* [takerAddress](#takeraddress) +* [takerAssetData](#takerassetdata) +* [takerAssetFilledAmount](#takerassetfilledamount) +* [takerFeeAssetData](#takerfeeassetdata) +* [takerFeePaid](#takerfeepaid) -**Returns:** *`PromiseWithTransactionHash`* +## Properties -A promise that resolves when the transaction is successful +### feeRecipientAddress -#### callAsync +• **feeRecipientAddress**: *string* -▸ **callAsync**(`_from`: string, `_to`: string, `_value`: `BigNumber`, `callData`: `Partial`, `defaultBlock?`: [BlockParam](#blockparam)): *`Promise`* +*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:80](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L80)* -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc20_token.ts:486](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc20_token.ts#L486)* +___ -Sends a read-only call to the contract method. Returns the result that would happen if one were to send an -Ethereum transaction to this method, given the current state of the blockchain. Calls do not cost gas -since they don't modify state. +### makerAddress -**Parameters:** +• **makerAddress**: *string* -Name | Type | Default | Description | ------- | ------ | ------ | ------ | -`_from` | string | - | The address of the sender | -`_to` | string | - | The address of the recipient | -`_value` | `BigNumber` | - | The amount of token to be transferred | -`callData` | `Partial` | {} | - | -`defaultBlock?` | [BlockParam](#blockparam) | - | - | +*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:79](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L79)* -**Returns:** *`Promise`* +___ -True if transfer was successful +### makerAssetData -#### estimateGasAsync +• **makerAssetData**: *string* -▸ **estimateGasAsync**(`_from`: string, `_to`: string, `_value`: `BigNumber`, `txData?`: `Partial` | undefined): *`Promise`* +*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:81](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L81)* -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc20_token.ts:437](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc20_token.ts#L437)* +___ -Estimates the gas cost of sending an Ethereum transaction calling this method with these arguments. +### makerAssetFilledAmount -**Parameters:** +• **makerAssetFilledAmount**: *`BigNumber`* -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 | -`txData?` | `Partial` \| undefined | Additional data for transaction | +*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:88](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L88)* -**Returns:** *`Promise`* +___ -The hash of the transaction +### makerFeeAssetData -#### getABIDecodedReturnData +• **makerFeeAssetData**: *string* -▸ **getABIDecodedReturnData**(`returnData`: string): *boolean* +*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:83](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L83)* -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc20_token.ts:573](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc20_token.ts#L573)* +___ -Decode the ABI-encoded return data from a transaction +### makerFeePaid -**Parameters:** +• **makerFeePaid**: *`BigNumber`* -Name | Type | Description | ------- | ------ | ------ | -`returnData` | string | the data returned after transaction execution | +*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:90](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L90)* -**Returns:** *boolean* +___ -An array representing the output results in order. Keynames of nested structs are preserved. +### orderHash -#### getABIDecodedTransactionData +• **orderHash**: *string* -▸ **getABIDecodedTransactionData**(`callData`: string): *string* +*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:85](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L85)* -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc20_token.ts:561](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc20_token.ts#L561)* +___ -Decode the ABI-encoded transaction data into its input arguments +### protocolFeePaid -**Parameters:** +• **protocolFeePaid**: *`BigNumber`* -Name | Type | Description | ------- | ------ | ------ | -`callData` | string | The ABI-encoded transaction data | +*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:92](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L92)* -**Returns:** *string* +___ -An array representing the input arguments in order. Keynames of nested structs are preserved. +### senderAddress -#### getABIEncodedTransactionData +• **senderAddress**: *string* -▸ **getABIEncodedTransactionData**(`_from`: string, `_to`: string, `_value`: `BigNumber`): *string* +*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:87](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L87)* -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc20_token.ts:544](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc20_token.ts#L544)* +___ -Returns the ABI encoded transaction data needed to send an Ethereum transaction calling this method. Before -sending the Ethereum tx, this encoded tx data can first be sent to a separate signing service or can be used -to create a 0x transaction (see protocol spec for more details). +### takerAddress -**Parameters:** +• **takerAddress**: *string* -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 | +*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:86](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L86)* -**Returns:** *string* +___ -The ABI encoded transaction data as a string +### takerAssetData -#### sendTransactionAsync +• **takerAssetData**: *string* -▸ **sendTransactionAsync**(`_from`: string, `_to`: string, `_value`: `BigNumber`, `txData?`: `Partial` | undefined): *`Promise`* +*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:82](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L82)* -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc20_token.ts:359](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc20_token.ts#L359)* +___ -Sends an Ethereum transaction executing this method with the supplied parameters. This is a read/write -Ethereum operation and will cost gas. +### takerAssetFilledAmount -**Parameters:** +• **takerAssetFilledAmount**: *`BigNumber`* -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 | -`txData?` | `Partial` \| undefined | Additional data for transaction | +*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:89](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L89)* -**Returns:** *`Promise`* +___ -The hash of the transaction +### takerFeeAssetData -#### validateAndSendTransactionAsync +• **takerFeeAssetData**: *string* -▸ **validateAndSendTransactionAsync**(`_from`: string, `_to`: string, `_value`: `BigNumber`, `txData?`: `Partial` | undefined): *`Promise`* +*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:84](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L84)* -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc20_token.ts:467](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc20_token.ts#L467)* +___ -**Parameters:** +### takerFeePaid -Name | Type | ------- | ------ | -`_from` | string | -`_to` | string | -`_value` | `BigNumber` | -`txData?` | `Partial` \| undefined | +• **takerFeePaid**: *`BigNumber`* -**Returns:** *`Promise`* +*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:91](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L91)*
-# Class: ERC721TokenContract - - -## Constructors - - - -\+ **new ERC721TokenContract**(`address`: string, `supportedProvider`: [SupportedProvider](#supportedprovider), `txDefaults?`: `Partial`, `logDecodeDependencies?`: undefined | object, `deployedBytecode`: string | undefined): *[ERC721TokenContract](#class-erc721tokencontract)* - -*Overrides void* +# Interface: ExchangeProtocolFeeCollectorAddressEventArgs -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc721_token.ts:1991](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc721_token.ts#L1991)* -**Parameters:** +## Index -Name | Type | Default | ------- | ------ | ------ | -`address` | string | - | -`supportedProvider` | [SupportedProvider](#supportedprovider) | - | -`txDefaults?` | `Partial` | - | -`logDecodeDependencies?` | undefined \| object | - | -`deployedBytecode` | string \| undefined | ERC721TokenContract.deployedBytecode | +### Properties -**Returns:** *[ERC721TokenContract](#class-erc721tokencontract)* +* [oldProtocolFeeCollector](#oldprotocolfeecollector) +* [updatedProtocolFeeCollector](#updatedprotocolfeecollector) ## Properties -#### abi - -• **abi**: *[ContractAbi](#contractabi)* - +### oldProtocolFeeCollector +• **oldProtocolFeeCollector**: *string* -Defined in base-contract/lib/src/index.d.ts:27 +*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:96](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L96)* ___ -### address - -• **address**: *string* - - - -Defined in base-contract/lib/src/index.d.ts:28 +### updatedProtocolFeeCollector -___ +• **updatedProtocolFeeCollector**: *string* -Args +*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:97](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L97)* -• **constructorArgs**: *any[]* +
+# Interface: ExchangeProtocolFeeMultiplierEventArgs -Defined in base-contract/lib/src/index.d.ts:30 +## Index -___ +### Properties -### contractName +* [oldProtocolFeeMultiplier](#oldprotocolfeemultiplier) +* [updatedProtocolFeeMultiplier](#updatedprotocolfeemultiplier) -• **contractName**: *string* +## Properties +### oldProtocolFeeMultiplier +• **oldProtocolFeeMultiplier**: *`BigNumber`* -Defined in base-contract/lib/src/index.d.ts:29 +*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:101](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L101)* ___ -### `Static` deployedBytecode - -▪ **deployedBytecode**: *string* = "0x608060405234801561001057600080fd5b50600436106100a35760003560e01c80636352211e11610076578063a22cb4651161005b578063a22cb46514610211578063b88d4fde1461024c578063e985e9c5146102e9576100a3565b80636352211e146101af57806370a08231146101cc576100a3565b8063081812fc146100a8578063095ea7b3146100ee57806323b872dd1461012957806342842e0e1461016c575b600080fd5b6100c5600480360360208110156100be57600080fd5b5035610338565b6040805173ffffffffffffffffffffffffffffffffffffffff9092168252519081900360200190f35b6101276004803603604081101561010457600080fd5b5073ffffffffffffffffffffffffffffffffffffffff8135169060200135610360565b005b6101276004803603606081101561013f57600080fd5b5073ffffffffffffffffffffffffffffffffffffffff813581169160208101359091169060400135610482565b6101276004803603606081101561018257600080fd5b5073ffffffffffffffffffffffffffffffffffffffff8135811691602081013590911690604001356107ef565b6100c5600480360360208110156101c557600080fd5b5035610989565b6101ff600480360360208110156101e257600080fd5b503573ffffffffffffffffffffffffffffffffffffffff16610a20565b60408051918252519081900360200190f35b6101276004803603604081101561022757600080fd5b5073ffffffffffffffffffffffffffffffffffffffff81351690602001351515610acd565b6101276004803603608081101561026257600080fd5b73ffffffffffffffffffffffffffffffffffffffff8235811692602081013590911691604082013591908101906080810160608201356401000000008111156102aa57600080fd5b8201836020820111156102bc57600080fd5b803590602001918460018302840111640100000000831117156102de57600080fd5b509092509050610b66565b610324600480360360408110156102ff57600080fd5b5073ffffffffffffffffffffffffffffffffffffffff81358116916020013516610d31565b604080519115158252519081900360200190f35b60009081526001602052604090205473ffffffffffffffffffffffffffffffffffffffff1690565b600061036b82610989565b90503373ffffffffffffffffffffffffffffffffffffffff8216148061039657506103968133610d31565b61040157604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601560248201527f4552433732315f494e56414c49445f53454e4445520000000000000000000000604482015290519081900360640190fd5b60008281526001602052604080822080547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff87811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b73ffffffffffffffffffffffffffffffffffffffff821661050457604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601660248201527f4552433732315f5a45524f5f544f5f4144445245535300000000000000000000604482015290519081900360640190fd5b600061050f82610989565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff16146105ab57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601560248201527f4552433732315f4f574e45525f4d49534d415443480000000000000000000000604482015290519081900360640190fd5b3360006105b784610338565b90508273ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614806105f857506105f88383610d31565b8061062e57508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16145b61069957604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601660248201527f4552433732315f494e56414c49445f5350454e44455200000000000000000000604482015290519081900360640190fd5b73ffffffffffffffffffffffffffffffffffffffff8116156106ea57600084815260016020526040902080547fffffffffffffffffffffffff00000000000000000000000000000000000000001690555b60008481526020818152604080832080547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff8a811691909117909155891683526002909152902054610753906001610d6c565b73ffffffffffffffffffffffffffffffffffffffff8088166000908152600260205260408082209390935590871681522054610790906001610d90565b73ffffffffffffffffffffffffffffffffffffffff808716600081815260026020526040808220949094559251879391928a16917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050505050565b6107fa838383610482565b813b801561098357604080517f150b7a0200000000000000000000000000000000000000000000000000000000815233600482015273ffffffffffffffffffffffffffffffffffffffff8681166024830152604482018590526080606483015260006084830181905292519086169163150b7a029160c480830192602092919082900301818787803b15801561088f57600080fd5b505af11580156108a3573d6000803e3d6000fd5b505050506040513d60208110156108b957600080fd5b505160405190915080602f610e5b8239602f01905060405180910390207bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161461098157604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601760248201527f4552433732315f494e56414c49445f53454c4543544f52000000000000000000604482015290519081900360640190fd5b505b50505050565b60008181526020819052604081205473ffffffffffffffffffffffffffffffffffffffff1680610a1a57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601160248201527f4552433732315f5a45524f5f4f574e4552000000000000000000000000000000604482015290519081900360640190fd5b92915050565b600073ffffffffffffffffffffffffffffffffffffffff8216610aa457604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601160248201527f4552433732315f5a45524f5f4f574e4552000000000000000000000000000000604482015290519081900360640190fd5b5073ffffffffffffffffffffffffffffffffffffffff1660009081526002602052604090205490565b33600081815260036020908152604080832073ffffffffffffffffffffffffffffffffffffffff87168085529083529281902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0016861515908117909155815190815290519293927f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31929181900390910190a35050565b610b71858585610482565b833b8015610d29576040517f150b7a02000000000000000000000000000000000000000000000000000000008152336004820181815273ffffffffffffffffffffffffffffffffffffffff89811660248501526044840188905260806064850190815260848501879052600094918a169363150b7a029390928c928b928b928b929060a401848480828437600081840152601f19601f8201169050808301925050509650505050505050602060405180830381600087803b158015610c3557600080fd5b505af1158015610c49573d6000803e3d6000fd5b505050506040513d6020811015610c5f57600080fd5b505160405190915080602f610e5b8239602f01905060405180910390207bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614610d2757604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601760248201527f4552433732315f494e56414c49445f53454c4543544f52000000000000000000604482015290519081900360640190fd5b505b505050505050565b73ffffffffffffffffffffffffffffffffffffffff918216600090815260036020908152604080832093909416825291909152205460ff1690565b600082821115610d8a57610d8a610d8560028585610db3565b610e52565b50900390565b600082820183811015610dac57610dac610d8560008686610db3565b9392505050565b606063e946c1bb60e01b84848460405160240180846003811115610dd357fe5b60ff1681526020018381526020018281526020019350505050604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff838183161783525050505090509392505050565b805160208201fdfe6f6e455243373231526563656976656428616464726573732c616464726573732c75696e743235362c627974657329a265627a7a723158204bc74831490bca4fbe1805808d58d6b0e12f618a37565e744e91d8dc73dc18b164736f6c634300050c0032" - -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc721_token.ts:61](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc721_token.ts#L61)* - -## Methods +### updatedProtocolFeeMultiplier -### evmExecAsync +• **updatedProtocolFeeMultiplier**: *`BigNumber`* -▸ **evmExecAsync**(`input`: `Buffer`): *`Promise`* +*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:102](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L102)* +
+# Interface: ExchangeSignatureValidatorApprovalEventArgs -Defined in base-contract/lib/src/index.d.ts:42 - -**Parameters:** - -Name | Type | ------- | ------ | -`input` | `Buffer` | - -**Returns:** *`Promise`* - -___ - -### getLogsAsync - -▸ **getLogsAsync**<**ArgsType**>(`eventName`: [ERC721TokenEvents](#enumeration-erc721tokenevents), `blockRange`: `BlockRange`, `indexFilterValues`: `IndexedFilterValues`): *`Promise>>`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc721_token.ts:1975](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc721_token.ts#L1975)* - -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 - -___ - -### subscribe - -▸ **subscribe**<**ArgsType**>(`eventName`: [ERC721TokenEvents](#enumeration-erc721tokenevents), `indexFilterValues`: `IndexedFilterValues`, `callback`: [EventCallback](#eventcallback)‹*`ArgsType`*›, `isVerbose`: boolean, `blockPollingIntervalMs?`: undefined | number): *string* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc721_token.ts:1933](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc721_token.ts#L1933)* - -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 - -___ - -### unsubscribe - -▸ **unsubscribe**(`subscriptionToken`: string): *void* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc721_token.ts:1958](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc721_token.ts#L1958)* - -Cancel a subscription - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`subscriptionToken` | string | Subscription token returned by `subscribe()` | - -**Returns:** *void* - -___ - -### unsubscribeAll - -▸ **unsubscribeAll**(): *void* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc721_token.ts:1964](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc721_token.ts#L1964)* - -Cancels all existing subscriptions - -**Returns:** *void* - -___ - -### `Static` ABI - -▸ **ABI**(): *[ContractAbi](#contractabi)* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc721_token.ts:1664](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc721_token.ts#L1664)* - -**Returns:** *[ContractAbi](#contractabi)* - -The contract ABI - -___ - -### `Static` deployAsync - -▸ **deployAsync**(`bytecode`: string, `abi`: [ContractAbi](#contractabi), `supportedProvider`: [SupportedProvider](#supportedprovider), `txDefaults`: `Partial`, `logDecodeDependencies`: object): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc721_token.ts:1622](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc721_token.ts#L1622)* - -**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 [abi-gen-wrappers/src/generated-wrappers/erc721_token.ts:1597](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc721_token.ts#L1597)* - -**Parameters:** - -Name | Type | ------- | ------ | -`artifact` | `ContractArtifact` \| `SimpleContractArtifact` | -`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:41 - -**Parameters:** - -Name | Type | ------- | ------ | -`inputAbi` | `DataItem`[] | -`args` | any[] | - -**Returns:** *string* - -## Object literals - -### approve - -#### ▪ **approve**: *object* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc721_token.ts:68](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc721_token.ts#L68)* - -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. - -#### awaitTransactionSuccessAsync - -▸ **awaitTransactionSuccessAsync**(`_approved`: string, `_tokenId`: `BigNumber`, `txData?`: `Partial`, `pollingIntervalMs?`: undefined | number, `timeoutMs?`: undefined | number): *`PromiseWithTransactionHash`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc721_token.ts:113](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc721_token.ts#L113)* - -Sends an Ethereum transaction and waits until the transaction has been successfully mined without reverting. -If the transaction was mined, but reverted, an error is thrown. - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`_approved` | string | The new approved NFT controller | -`_tokenId` | `BigNumber` | The NFT to approve | -`txData?` | `Partial` | Additional data for transaction | -`pollingIntervalMs?` | undefined \| number | Interval at which to poll for success | -`timeoutMs?` | undefined \| number | - | - -**Returns:** *`PromiseWithTransactionHash`* - -A promise that resolves when the transaction is successful - -#### callAsync - -▸ **callAsync**(`_approved`: string, `_tokenId`: `BigNumber`, `callData`: `Partial`, `defaultBlock?`: [BlockParam](#blockparam)): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc721_token.ts:186](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc721_token.ts#L186)* - -Sends a read-only call to the contract method. Returns the result that would happen if one were to send an -Ethereum transaction to this method, given the current state of the blockchain. Calls do not cost gas -since they don't modify state. - -**Parameters:** - -Name | Type | Default | Description | ------- | ------ | ------ | ------ | -`_approved` | string | - | The new approved NFT controller | -`_tokenId` | `BigNumber` | - | The NFT to approve | -`callData` | `Partial` | {} | - | -`defaultBlock?` | [BlockParam](#blockparam) | - | - | - -**Returns:** *`Promise`* - -#### estimateGasAsync - -▸ **estimateGasAsync**(`_approved`: string, `_tokenId`: `BigNumber`, `txData?`: `Partial` | undefined): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc721_token.ts:143](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc721_token.ts#L143)* - -Estimates the gas cost of sending an Ethereum transaction calling this method with these arguments. - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`_approved` | string | The new approved NFT controller | -`_tokenId` | `BigNumber` | The NFT to approve | -`txData?` | `Partial` \| undefined | Additional data for transaction | - -**Returns:** *`Promise`* - -The hash of the transaction - -#### getABIDecodedReturnData - -▸ **getABIDecodedReturnData**(`returnData`: string): *void* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc721_token.ts:267](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc721_token.ts#L267)* - -Decode the ABI-encoded return data from a transaction - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`returnData` | string | the data returned after transaction execution | - -**Returns:** *void* - -An array representing the output results in order. Keynames of nested structs are preserved. - -#### getABIDecodedTransactionData - -▸ **getABIDecodedTransactionData**(`callData`: string): *[string, `BigNumber`]* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc721_token.ts:255](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc721_token.ts#L255)* - -Decode the ABI-encoded transaction data into its input arguments - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`callData` | string | The ABI-encoded transaction data | - -**Returns:** *[string, `BigNumber`]* - -An array representing the input arguments in order. Keynames of nested structs are preserved. - -#### getABIEncodedTransactionData - -▸ **getABIEncodedTransactionData**(`_approved`: string, `_tokenId`: `BigNumber`): *string* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc721_token.ts:240](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc721_token.ts#L240)* - -Returns the ABI encoded transaction data needed to send an Ethereum transaction calling this method. Before -sending the Ethereum tx, this encoded tx data can first be sent to a separate signing service or can be used -to create a 0x transaction (see protocol spec for more details). - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`_approved` | string | The new approved NFT controller | -`_tokenId` | `BigNumber` | The NFT to approve | - -**Returns:** *string* - -The ABI encoded transaction data as a string - -#### sendTransactionAsync - -▸ **sendTransactionAsync**(`_approved`: string, `_tokenId`: `BigNumber`, `txData?`: `Partial` | undefined): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc721_token.ts:77](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc721_token.ts#L77)* - -Sends an Ethereum transaction executing this method with the supplied parameters. This is a read/write -Ethereum operation and will cost gas. - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`_approved` | string | The new approved NFT controller | -`_tokenId` | `BigNumber` | The NFT to approve | -`txData?` | `Partial` \| undefined | Additional data for transaction | - -**Returns:** *`Promise`* - -The hash of the transaction - -#### validateAndSendTransactionAsync - -▸ **validateAndSendTransactionAsync**(`_approved`: string, `_tokenId`: `BigNumber`, `txData?`: `Partial` | undefined): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc721_token.ts:170](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc721_token.ts#L170)* - -**Parameters:** - -Name | Type | ------- | ------ | -`_approved` | string | -`_tokenId` | `BigNumber` | -`txData?` | `Partial` \| undefined | - -**Returns:** *`Promise`* - -___ - -### balanceOf - -#### ▪ **balanceOf**: *object* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc721_token.ts:279](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc721_token.ts#L279)* - -NFTs assigned to the zero address are considered invalid, and this -function throws for queries about the zero address. - -#### callAsync - -▸ **callAsync**(`_owner`: string, `callData`: `Partial`, `defaultBlock?`: [BlockParam](#blockparam)): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc721_token.ts:287](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc721_token.ts#L287)* - -Sends a read-only call to the contract method. Returns the result that would happen if one were to send an -Ethereum transaction to this method, given the current state of the blockchain. Calls do not cost gas -since they don't modify state. - -**Parameters:** - -Name | Type | Default | Description | ------- | ------ | ------ | ------ | -`_owner` | string | - | An address for whom to query the balance | -`callData` | `Partial` | {} | - | -`defaultBlock?` | [BlockParam](#blockparam) | - | - | - -**Returns:** *`Promise`* - -The number of NFTs owned by `_owner`, possibly zero - -#### getABIDecodedReturnData - -▸ **getABIDecodedReturnData**(`returnData`: string): *`BigNumber`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc721_token.ts:358](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc721_token.ts#L358)* - -Decode the ABI-encoded return data from a transaction - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`returnData` | string | the data returned after transaction execution | - -**Returns:** *`BigNumber`* - -An array representing the output results in order. Keynames of nested structs are preserved. - -#### getABIDecodedTransactionData - -▸ **getABIDecodedTransactionData**(`callData`: string): *string* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc721_token.ts:346](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc721_token.ts#L346)* - -Decode the ABI-encoded transaction data into its input arguments - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`callData` | string | The ABI-encoded transaction data | - -**Returns:** *string* - -An array representing the input arguments in order. Keynames of nested structs are preserved. - -#### getABIEncodedTransactionData - -▸ **getABIEncodedTransactionData**(`_owner`: string): *string* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc721_token.ts:335](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc721_token.ts#L335)* - -Returns the ABI encoded transaction data needed to send an Ethereum transaction calling this method. Before -sending the Ethereum tx, this encoded tx data can first be sent to a separate signing service or can be used -to create a 0x transaction (see protocol spec for more details). - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`_owner` | string | An address for whom to query the balance | - -**Returns:** *string* - -The ABI encoded transaction data as a string - -___ - -### getApproved - -#### ▪ **getApproved**: *object* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc721_token.ts:369](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc721_token.ts#L369)* - -Throws if `_tokenId` is not a valid NFT. - -#### callAsync - -▸ **callAsync**(`_tokenId`: `BigNumber`, `callData`: `Partial`, `defaultBlock?`: [BlockParam](#blockparam)): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc721_token.ts:377](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc721_token.ts#L377)* - -Sends a read-only call to the contract method. Returns the result that would happen if one were to send an -Ethereum transaction to this method, given the current state of the blockchain. Calls do not cost gas -since they don't modify state. - -**Parameters:** - -Name | Type | Default | Description | ------- | ------ | ------ | ------ | -`_tokenId` | `BigNumber` | - | The NFT to find the approved address for | -`callData` | `Partial` | {} | - | -`defaultBlock?` | [BlockParam](#blockparam) | - | - | - -**Returns:** *`Promise`* - -The approved address for this NFT, or the zero address if there is none - -#### getABIDecodedReturnData - -▸ **getABIDecodedReturnData**(`returnData`: string): *string* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc721_token.ts:448](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc721_token.ts#L448)* - -Decode the ABI-encoded return data from a transaction - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`returnData` | string | the data returned after transaction execution | - -**Returns:** *string* - -An array representing the output results in order. Keynames of nested structs are preserved. - -#### getABIDecodedTransactionData - -▸ **getABIDecodedTransactionData**(`callData`: string): *`BigNumber`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc721_token.ts:436](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc721_token.ts#L436)* - -Decode the ABI-encoded transaction data into its input arguments - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`callData` | string | The ABI-encoded transaction data | - -**Returns:** *`BigNumber`* - -An array representing the input arguments in order. Keynames of nested structs are preserved. - -#### getABIEncodedTransactionData - -▸ **getABIEncodedTransactionData**(`_tokenId`: `BigNumber`): *string* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc721_token.ts:425](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc721_token.ts#L425)* - -Returns the ABI encoded transaction data needed to send an Ethereum transaction calling this method. Before -sending the Ethereum tx, this encoded tx data can first be sent to a separate signing service or can be used -to create a 0x transaction (see protocol spec for more details). - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`_tokenId` | `BigNumber` | The NFT to find the approved address for | - -**Returns:** *string* - -The ABI encoded transaction data as a string - -___ - -### isApprovedForAll - -#### ▪ **isApprovedForAll**: *object* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc721_token.ts:456](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc721_token.ts#L456)* - -#### callAsync - -▸ **callAsync**(`_owner`: string, `_operator`: string, `callData`: `Partial`, `defaultBlock?`: [BlockParam](#blockparam)): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc721_token.ts:465](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc721_token.ts#L465)* - -Sends a read-only call to the contract method. Returns the result that would happen if one were to send an -Ethereum transaction to this method, given the current state of the blockchain. Calls do not cost gas -since they don't modify state. - -**Parameters:** - -Name | Type | Default | Description | ------- | ------ | ------ | ------ | -`_owner` | string | - | The address that owns the NFTs | -`_operator` | string | - | The address that acts on behalf of the owner | -`callData` | `Partial` | {} | - | -`defaultBlock?` | [BlockParam](#blockparam) | - | - | - -**Returns:** *`Promise`* - -True if `_operator` is an approved operator for `_owner`, false otherwise - -#### getABIDecodedReturnData - -▸ **getABIDecodedReturnData**(`returnData`: string): *boolean* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc721_token.ts:546](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc721_token.ts#L546)* - -Decode the ABI-encoded return data from a transaction - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`returnData` | string | the data returned after transaction execution | - -**Returns:** *boolean* - -An array representing the output results in order. Keynames of nested structs are preserved. - -#### getABIDecodedTransactionData - -▸ **getABIDecodedTransactionData**(`callData`: string): *string* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc721_token.ts:534](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc721_token.ts#L534)* - -Decode the ABI-encoded transaction data into its input arguments - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`callData` | string | The ABI-encoded transaction data | - -**Returns:** *string* - -An array representing the input arguments in order. Keynames of nested structs are preserved. - -#### getABIEncodedTransactionData - -▸ **getABIEncodedTransactionData**(`_owner`: string, `_operator`: string): *string* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc721_token.ts:519](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc721_token.ts#L519)* - -Returns the ABI encoded transaction data needed to send an Ethereum transaction calling this method. Before -sending the Ethereum tx, this encoded tx data can first be sent to a separate signing service or can be used -to create a 0x transaction (see protocol spec for more details). - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`_owner` | string | The address that owns the NFTs | -`_operator` | string | The address that acts on behalf of the owner | - -**Returns:** *string* - -The ABI encoded transaction data as a string - -___ - -### ownerOf - -#### ▪ **ownerOf**: *object* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc721_token.ts:558](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc721_token.ts#L558)* - -NFTs assigned to zero address are considered invalid, and queries -about them do throw. - -#### callAsync - -▸ **callAsync**(`_tokenId`: `BigNumber`, `callData`: `Partial`, `defaultBlock?`: [BlockParam](#blockparam)): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc721_token.ts:566](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc721_token.ts#L566)* - -Sends a read-only call to the contract method. Returns the result that would happen if one were to send an -Ethereum transaction to this method, given the current state of the blockchain. Calls do not cost gas -since they don't modify state. - -**Parameters:** - -Name | Type | Default | Description | ------- | ------ | ------ | ------ | -`_tokenId` | `BigNumber` | - | The identifier for an NFT | -`callData` | `Partial` | {} | - | -`defaultBlock?` | [BlockParam](#blockparam) | - | - | - -**Returns:** *`Promise`* - -The address of the owner of the NFT - -#### getABIDecodedReturnData - -▸ **getABIDecodedReturnData**(`returnData`: string): *string* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc721_token.ts:637](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc721_token.ts#L637)* - -Decode the ABI-encoded return data from a transaction - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`returnData` | string | the data returned after transaction execution | - -**Returns:** *string* - -An array representing the output results in order. Keynames of nested structs are preserved. - -#### getABIDecodedTransactionData - -▸ **getABIDecodedTransactionData**(`callData`: string): *`BigNumber`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc721_token.ts:625](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc721_token.ts#L625)* - -Decode the ABI-encoded transaction data into its input arguments - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`callData` | string | The ABI-encoded transaction data | - -**Returns:** *`BigNumber`* - -An array representing the input arguments in order. Keynames of nested structs are preserved. - -#### getABIEncodedTransactionData - -▸ **getABIEncodedTransactionData**(`_tokenId`: `BigNumber`): *string* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc721_token.ts:614](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc721_token.ts#L614)* - -Returns the ABI encoded transaction data needed to send an Ethereum transaction calling this method. Before -sending the Ethereum tx, this encoded tx data can first be sent to a separate signing service or can be used -to create a 0x transaction (see protocol spec for more details). - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`_tokenId` | `BigNumber` | The identifier for an NFT | - -**Returns:** *string* - -The ABI encoded transaction data as a string - -___ - -### safeTransferFrom1 - -#### ▪ **safeTransferFrom1**: *object* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc721_token.ts:649](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc721_token.ts#L649)* - -This works identically to the other function with an extra data parameter, -except this function just sets data to "". - -#### awaitTransactionSuccessAsync - -▸ **awaitTransactionSuccessAsync**(`_from`: string, `_to`: string, `_tokenId`: `BigNumber`, `txData?`: `Partial`, `pollingIntervalMs?`: undefined | number, `timeoutMs?`: undefined | number): *`PromiseWithTransactionHash`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc721_token.ts:699](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc721_token.ts#L699)* - -Sends an Ethereum transaction and waits until the transaction has been successfully mined without reverting. -If the transaction was mined, but reverted, an error is thrown. - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`_from` | string | The current owner of the NFT | -`_to` | string | The new owner | -`_tokenId` | `BigNumber` | The NFT to transfer | -`txData?` | `Partial` | Additional data for transaction | -`pollingIntervalMs?` | undefined \| number | Interval at which to poll for success | -`timeoutMs?` | undefined \| number | - | - -**Returns:** *`PromiseWithTransactionHash`* - -A promise that resolves when the transaction is successful - -#### callAsync - -▸ **callAsync**(`_from`: string, `_to`: string, `_tokenId`: `BigNumber`, `callData`: `Partial`, `defaultBlock?`: [BlockParam](#blockparam)): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc721_token.ts:785](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc721_token.ts#L785)* - -Sends a read-only call to the contract method. Returns the result that would happen if one were to send an -Ethereum transaction to this method, given the current state of the blockchain. Calls do not cost gas -since they don't modify state. - -**Parameters:** - -Name | Type | Default | Description | ------- | ------ | ------ | ------ | -`_from` | string | - | The current owner of the NFT | -`_to` | string | - | The new owner | -`_tokenId` | `BigNumber` | - | The NFT to transfer | -`callData` | `Partial` | {} | - | -`defaultBlock?` | [BlockParam](#blockparam) | - | - | - -**Returns:** *`Promise`* - -#### estimateGasAsync - -▸ **estimateGasAsync**(`_from`: string, `_to`: string, `_tokenId`: `BigNumber`, `txData?`: `Partial` | undefined): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc721_token.ts:737](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc721_token.ts#L737)* - -Estimates the gas cost of sending an Ethereum transaction calling this method with these arguments. - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`_from` | string | The current owner of the NFT | -`_to` | string | The new owner | -`_tokenId` | `BigNumber` | The NFT to transfer | -`txData?` | `Partial` \| undefined | Additional data for transaction | - -**Returns:** *`Promise`* - -The hash of the transaction - -#### getABIDecodedReturnData - -▸ **getABIDecodedReturnData**(`returnData`: string): *void* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc721_token.ts:872](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc721_token.ts#L872)* - -Decode the ABI-encoded return data from a transaction - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`returnData` | string | the data returned after transaction execution | - -**Returns:** *void* - -An array representing the output results in order. Keynames of nested structs are preserved. - -#### getABIDecodedTransactionData - -▸ **getABIDecodedTransactionData**(`callData`: string): *[string, string, `BigNumber`]* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc721_token.ts:860](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc721_token.ts#L860)* - -Decode the ABI-encoded transaction data into its input arguments - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`callData` | string | The ABI-encoded transaction data | - -**Returns:** *[string, string, `BigNumber`]* - -An array representing the input arguments in order. Keynames of nested structs are preserved. - -#### getABIEncodedTransactionData - -▸ **getABIEncodedTransactionData**(`_from`: string, `_to`: string, `_tokenId`: `BigNumber`): *string* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc721_token.ts:843](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc721_token.ts#L843)* - -Returns the ABI encoded transaction data needed to send an Ethereum transaction calling this method. Before -sending the Ethereum tx, this encoded tx data can first be sent to a separate signing service or can be used -to create a 0x transaction (see protocol spec for more details). - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`_from` | string | The current owner of the NFT | -`_to` | string | The new owner | -`_tokenId` | `BigNumber` | The NFT to transfer | - -**Returns:** *string* - -The ABI encoded transaction data as a string - -#### sendTransactionAsync - -▸ **sendTransactionAsync**(`_from`: string, `_to`: string, `_tokenId`: `BigNumber`, `txData?`: `Partial` | undefined): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc721_token.ts:659](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc721_token.ts#L659)* - -Sends an Ethereum transaction executing this method with the supplied parameters. This is a read/write -Ethereum operation and will cost gas. - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`_from` | string | The current owner of the NFT | -`_to` | string | The new owner | -`_tokenId` | `BigNumber` | The NFT to transfer | -`txData?` | `Partial` \| undefined | Additional data for transaction | - -**Returns:** *`Promise`* - -The hash of the transaction - -#### validateAndSendTransactionAsync - -▸ **validateAndSendTransactionAsync**(`_from`: string, `_to`: string, `_tokenId`: `BigNumber`, `txData?`: `Partial` | undefined): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc721_token.ts:767](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc721_token.ts#L767)* - -**Parameters:** - -Name | Type | ------- | ------ | -`_from` | string | -`_to` | string | -`_tokenId` | `BigNumber` | -`txData?` | `Partial` \| undefined | - -**Returns:** *`Promise`* - -___ - -### safeTransferFrom2 - -#### ▪ **safeTransferFrom2**: *object* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc721_token.ts:889](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc721_token.ts#L889)* - -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)"))`. - -#### awaitTransactionSuccessAsync - -▸ **awaitTransactionSuccessAsync**(`_from`: string, `_to`: string, `_tokenId`: `BigNumber`, `_data`: string, `txData?`: `Partial`, `pollingIntervalMs?`: undefined | number, `timeoutMs?`: undefined | number): *`PromiseWithTransactionHash`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc721_token.ts:944](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc721_token.ts#L944)* - -Sends an Ethereum transaction and waits until the transaction has been successfully mined without reverting. -If the transaction was mined, but reverted, an error is thrown. - -**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` | -`txData?` | `Partial` | Additional data for transaction | -`pollingIntervalMs?` | undefined \| number | Interval at which to poll for success | -`timeoutMs?` | undefined \| number | - | - -**Returns:** *`PromiseWithTransactionHash`* - -A promise that resolves when the transaction is successful - -#### callAsync - -▸ **callAsync**(`_from`: string, `_to`: string, `_tokenId`: `BigNumber`, `_data`: string, `callData`: `Partial`, `defaultBlock?`: [BlockParam](#blockparam)): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc721_token.ts:1045](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc721_token.ts#L1045)* - -Sends a read-only call to the contract method. Returns the result that would happen if one were to send an -Ethereum transaction to this method, given the current state of the blockchain. Calls do not cost gas -since they don't modify state. - -**Parameters:** - -Name | Type | Default | 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` | -`callData` | `Partial` | {} | - | -`defaultBlock?` | [BlockParam](#blockparam) | - | - | - -**Returns:** *`Promise`* - -#### estimateGasAsync - -▸ **estimateGasAsync**(`_from`: string, `_to`: string, `_tokenId`: `BigNumber`, `_data`: string, `txData?`: `Partial` | undefined): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc721_token.ts:986](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc721_token.ts#L986)* - -Estimates the gas cost of sending an Ethereum transaction calling this method with these arguments. - -**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` | -`txData?` | `Partial` \| undefined | Additional data for transaction | - -**Returns:** *`Promise`* - -The hash of the transaction - -#### getABIDecodedReturnData - -▸ **getABIDecodedReturnData**(`returnData`: string): *void* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc721_token.ts:1136](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc721_token.ts#L1136)* - -Decode the ABI-encoded return data from a transaction - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`returnData` | string | the data returned after transaction execution | - -**Returns:** *void* - -An array representing the output results in order. Keynames of nested structs are preserved. - -#### getABIDecodedTransactionData - -▸ **getABIDecodedTransactionData**(`callData`: string): *[string, string, `BigNumber`, string]* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc721_token.ts:1124](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc721_token.ts#L1124)* - -Decode the ABI-encoded transaction data into its input arguments - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`callData` | string | The ABI-encoded transaction data | - -**Returns:** *[string, string, `BigNumber`, string]* - -An array representing the input arguments in order. Keynames of nested structs are preserved. - -#### getABIEncodedTransactionData - -▸ **getABIEncodedTransactionData**(`_from`: string, `_to`: string, `_tokenId`: `BigNumber`, `_data`: string): *string* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc721_token.ts:1107](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc721_token.ts#L1107)* - -Returns the ABI encoded transaction data needed to send an Ethereum transaction calling this method. Before -sending the Ethereum tx, this encoded tx data can first be sent to a separate signing service or can be used -to create a 0x transaction (see protocol spec for more details). - -**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:** *string* - -The ABI encoded transaction data as a string - -#### sendTransactionAsync - -▸ **sendTransactionAsync**(`_from`: string, `_to`: string, `_tokenId`: `BigNumber`, `_data`: string, `txData?`: `Partial` | undefined): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc721_token.ts:900](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc721_token.ts#L900)* - -Sends an Ethereum transaction executing this method with the supplied parameters. This is a read/write -Ethereum operation and will cost gas. - -**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` | -`txData?` | `Partial` \| undefined | Additional data for transaction | - -**Returns:** *`Promise`* - -The hash of the transaction - -#### validateAndSendTransactionAsync - -▸ **validateAndSendTransactionAsync**(`_from`: string, `_to`: string, `_tokenId`: `BigNumber`, `_data`: string, `txData?`: `Partial` | undefined): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc721_token.ts:1019](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc721_token.ts#L1019)* - -**Parameters:** - -Name | Type | ------- | ------ | -`_from` | string | -`_to` | string | -`_tokenId` | `BigNumber` | -`_data` | string | -`txData?` | `Partial` \| undefined | - -**Returns:** *`Promise`* - -___ - -### setApprovalForAll - -#### ▪ **setApprovalForAll**: *object* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc721_token.ts:1148](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc721_token.ts#L1148)* - -Emits the ApprovalForAll event. The contract MUST allow -multiple operators per owner. - -#### awaitTransactionSuccessAsync - -▸ **awaitTransactionSuccessAsync**(`_operator`: string, `_approved`: boolean, `txData?`: `Partial`, `pollingIntervalMs?`: undefined | number, `timeoutMs?`: undefined | number): *`PromiseWithTransactionHash`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc721_token.ts:1193](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc721_token.ts#L1193)* - -Sends an Ethereum transaction and waits until the transaction has been successfully mined without reverting. -If the transaction was mined, but reverted, an error is thrown. - -**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 | -`txData?` | `Partial` | Additional data for transaction | -`pollingIntervalMs?` | undefined \| number | Interval at which to poll for success | -`timeoutMs?` | undefined \| number | - | - -**Returns:** *`PromiseWithTransactionHash`* - -A promise that resolves when the transaction is successful - -#### callAsync - -▸ **callAsync**(`_operator`: string, `_approved`: boolean, `callData`: `Partial`, `defaultBlock?`: [BlockParam](#blockparam)): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc721_token.ts:1270](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc721_token.ts#L1270)* - -Sends a read-only call to the contract method. Returns the result that would happen if one were to send an -Ethereum transaction to this method, given the current state of the blockchain. Calls do not cost gas -since they don't modify state. - -**Parameters:** - -Name | Type | Default | Description | ------- | ------ | ------ | ------ | -`_operator` | string | - | Address to add to the set of authorized operators | -`_approved` | boolean | - | True if the operator is approved, false to revoke approval | -`callData` | `Partial` | {} | - | -`defaultBlock?` | [BlockParam](#blockparam) | - | - | - -**Returns:** *`Promise`* - -#### estimateGasAsync - -▸ **estimateGasAsync**(`_operator`: string, `_approved`: boolean, `txData?`: `Partial` | undefined): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc721_token.ts:1227](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc721_token.ts#L1227)* - -Estimates the gas cost of sending an Ethereum transaction calling this method with these arguments. - -**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 | -`txData?` | `Partial` \| undefined | Additional data for transaction | - -**Returns:** *`Promise`* - -The hash of the transaction - -#### getABIDecodedReturnData - -▸ **getABIDecodedReturnData**(`returnData`: string): *void* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc721_token.ts:1351](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc721_token.ts#L1351)* - -Decode the ABI-encoded return data from a transaction - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`returnData` | string | the data returned after transaction execution | - -**Returns:** *void* - -An array representing the output results in order. Keynames of nested structs are preserved. - -#### getABIDecodedTransactionData - -▸ **getABIDecodedTransactionData**(`callData`: string): *[string, boolean]* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc721_token.ts:1339](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc721_token.ts#L1339)* - -Decode the ABI-encoded transaction data into its input arguments - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`callData` | string | The ABI-encoded transaction data | - -**Returns:** *[string, boolean]* - -An array representing the input arguments in order. Keynames of nested structs are preserved. - -#### getABIEncodedTransactionData - -▸ **getABIEncodedTransactionData**(`_operator`: string, `_approved`: boolean): *string* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc721_token.ts:1324](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc721_token.ts#L1324)* - -Returns the ABI encoded transaction data needed to send an Ethereum transaction calling this method. Before -sending the Ethereum tx, this encoded tx data can first be sent to a separate signing service or can be used -to create a 0x transaction (see protocol spec for more details). - -**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:** *string* - -The ABI encoded transaction data as a string - -#### sendTransactionAsync - -▸ **sendTransactionAsync**(`_operator`: string, `_approved`: boolean, `txData?`: `Partial` | undefined): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc721_token.ts:1157](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc721_token.ts#L1157)* - -Sends an Ethereum transaction executing this method with the supplied parameters. This is a read/write -Ethereum operation and will cost gas. - -**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 | -`txData?` | `Partial` \| undefined | Additional data for transaction | - -**Returns:** *`Promise`* - -The hash of the transaction - -#### validateAndSendTransactionAsync - -▸ **validateAndSendTransactionAsync**(`_operator`: string, `_approved`: boolean, `txData?`: `Partial` | undefined): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc721_token.ts:1254](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc721_token.ts#L1254)* - -**Parameters:** - -Name | Type | ------- | ------ | -`_operator` | string | -`_approved` | boolean | -`txData?` | `Partial` \| undefined | - -**Returns:** *`Promise`* - -___ - -### transferFrom - -#### ▪ **transferFrom**: *object* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc721_token.ts:1365](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc721_token.ts#L1365)* - -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. - -#### awaitTransactionSuccessAsync - -▸ **awaitTransactionSuccessAsync**(`_from`: string, `_to`: string, `_tokenId`: `BigNumber`, `txData?`: `Partial`, `pollingIntervalMs?`: undefined | number, `timeoutMs?`: undefined | number): *`PromiseWithTransactionHash`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc721_token.ts:1415](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc721_token.ts#L1415)* - -Sends an Ethereum transaction and waits until the transaction has been successfully mined without reverting. -If the transaction was mined, but reverted, an error is thrown. - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`_from` | string | The current owner of the NFT | -`_to` | string | The new owner | -`_tokenId` | `BigNumber` | The NFT to transfer | -`txData?` | `Partial` | Additional data for transaction | -`pollingIntervalMs?` | undefined \| number | Interval at which to poll for success | -`timeoutMs?` | undefined \| number | - | - -**Returns:** *`PromiseWithTransactionHash`* - -A promise that resolves when the transaction is successful - -#### callAsync - -▸ **callAsync**(`_from`: string, `_to`: string, `_tokenId`: `BigNumber`, `callData`: `Partial`, `defaultBlock?`: [BlockParam](#blockparam)): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc721_token.ts:1501](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc721_token.ts#L1501)* - -Sends a read-only call to the contract method. Returns the result that would happen if one were to send an -Ethereum transaction to this method, given the current state of the blockchain. Calls do not cost gas -since they don't modify state. - -**Parameters:** - -Name | Type | Default | Description | ------- | ------ | ------ | ------ | -`_from` | string | - | The current owner of the NFT | -`_to` | string | - | The new owner | -`_tokenId` | `BigNumber` | - | The NFT to transfer | -`callData` | `Partial` | {} | - | -`defaultBlock?` | [BlockParam](#blockparam) | - | - | - -**Returns:** *`Promise`* - -#### estimateGasAsync - -▸ **estimateGasAsync**(`_from`: string, `_to`: string, `_tokenId`: `BigNumber`, `txData?`: `Partial` | undefined): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc721_token.ts:1453](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc721_token.ts#L1453)* - -Estimates the gas cost of sending an Ethereum transaction calling this method with these arguments. - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`_from` | string | The current owner of the NFT | -`_to` | string | The new owner | -`_tokenId` | `BigNumber` | The NFT to transfer | -`txData?` | `Partial` \| undefined | Additional data for transaction | - -**Returns:** *`Promise`* - -The hash of the transaction - -#### getABIDecodedReturnData - -▸ **getABIDecodedReturnData**(`returnData`: string): *void* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc721_token.ts:1588](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc721_token.ts#L1588)* - -Decode the ABI-encoded return data from a transaction - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`returnData` | string | the data returned after transaction execution | - -**Returns:** *void* - -An array representing the output results in order. Keynames of nested structs are preserved. - -#### getABIDecodedTransactionData - -▸ **getABIDecodedTransactionData**(`callData`: string): *[string, string, `BigNumber`]* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc721_token.ts:1576](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc721_token.ts#L1576)* - -Decode the ABI-encoded transaction data into its input arguments - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`callData` | string | The ABI-encoded transaction data | - -**Returns:** *[string, string, `BigNumber`]* - -An array representing the input arguments in order. Keynames of nested structs are preserved. - -#### getABIEncodedTransactionData - -▸ **getABIEncodedTransactionData**(`_from`: string, `_to`: string, `_tokenId`: `BigNumber`): *string* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc721_token.ts:1559](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc721_token.ts#L1559)* - -Returns the ABI encoded transaction data needed to send an Ethereum transaction calling this method. Before -sending the Ethereum tx, this encoded tx data can first be sent to a separate signing service or can be used -to create a 0x transaction (see protocol spec for more details). - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`_from` | string | The current owner of the NFT | -`_to` | string | The new owner | -`_tokenId` | `BigNumber` | The NFT to transfer | - -**Returns:** *string* - -The ABI encoded transaction data as a string - -#### sendTransactionAsync - -▸ **sendTransactionAsync**(`_from`: string, `_to`: string, `_tokenId`: `BigNumber`, `txData?`: `Partial` | undefined): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc721_token.ts:1375](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc721_token.ts#L1375)* - -Sends an Ethereum transaction executing this method with the supplied parameters. This is a read/write -Ethereum operation and will cost gas. - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`_from` | string | The current owner of the NFT | -`_to` | string | The new owner | -`_tokenId` | `BigNumber` | The NFT to transfer | -`txData?` | `Partial` \| undefined | Additional data for transaction | - -**Returns:** *`Promise`* - -The hash of the transaction - -#### validateAndSendTransactionAsync - -▸ **validateAndSendTransactionAsync**(`_from`: string, `_to`: string, `_tokenId`: `BigNumber`, `txData?`: `Partial` | undefined): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc721_token.ts:1483](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc721_token.ts#L1483)* - -**Parameters:** - -Name | Type | ------- | ------ | -`_from` | string | -`_to` | string | -`_tokenId` | `BigNumber` | -`txData?` | `Partial` \| undefined | - -**Returns:** *`Promise`* - -
- -# 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 [abi-gen-wrappers/src/generated-wrappers/exchange.ts:13414](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L13414)* - -**Parameters:** - -Name | Type | Default | ------- | ------ | ------ | -`address` | string | - | -`supportedProvider` | [SupportedProvider](#supportedprovider) | - | -`txDefaults?` | `Partial` | - | -`logDecodeDependencies?` | undefined \| object | - | -`deployedBytecode` | string \| undefined | ExchangeContract.deployedBytecode | - -**Returns:** *[ExchangeContract](#class-exchangecontract)* - -## Properties - -#### abi - -• **abi**: *[ContractAbi](#contractabi)* - - - -Defined in base-contract/lib/src/index.d.ts:27 - -___ - -### address - -• **address**: *string* - - - -Defined in base-contract/lib/src/index.d.ts:28 - -___ - -Args - -• **constructorArgs**: *any[]* - - - -Defined in base-contract/lib/src/index.d.ts:30 - -___ - -### contractName - -• **contractName**: *string* - - - -Defined in base-contract/lib/src/index.d.ts:29 - -___ - -### `Static` deployedBytecode - -▪ **deployedBytecode**: *string* = "0x6080604052600436106102d15760003560e01c80638da5cb5b11610179578063beee2e14116100d6578063dd885e2d1161008a578063eea086ba11610064578063eea086ba14610715578063f2fde38b1461072a578063fc74896d1461074a576102d1565b8063dd885e2d146106cd578063dedfc1f1146106ef578063e14b58c414610702576102d1565b8063c26cfecd116100bb578063c26cfecd14610678578063c585bb931461068d578063d9bfa73e146106ad576102d1565b8063beee2e1414610645578063c0fa16cc14610658576102d1565b80639d3fa4b91161012d578063a6c3bf3311610112578063a6c3bf33146105ff578063b04fbddd14610612578063b718e29214610632576102d1565b80639d3fa4b9146105b2578063a12dcc6f146105df576102d1565b80639331c7421161015e5780639331c7421461056c5780639694a4021461058c5780639b44d5561461059f576102d1565b80638da5cb5b146105375780638ea8dfe41461054c576102d1565b80636a1a80fd116102325780638171c407116101e657806388ec79fb116101c057806388ec79fb146104e45780638bc8efb3146105045780638d45cd2314610517576102d1565b80638171c4071461048f57806382c174d0146104af578063850a1501146104cf576102d1565b806377fcce681161021757806377fcce681461044957806378d29ac11461045c5780637b8e35141461046f576102d1565b80636a1a80fd146104165780636fcf3e9e14610436576102d1565b80632da629871161028957806346c02d7a1161026e57806346c02d7a146103c35780634f9559b1146103d657806360704108146103e9576102d1565b80632da629871461038e578063369da099146103a3576102d1565b80632280c910116102ba5780632280c9101461032e578063288cdc911461034e5780632ac126221461036e576102d1565b80630228e168146102d65780631ce4c78b1461030c575b600080fd5b3480156102e257600080fd5b506102f66102f1366004614e64565b61076a565b60405161030391906154c4565b60405180910390f35b34801561031857600080fd5b5061032161077f565b60405161030391906154cf565b61034161033c366004615108565b610785565b60405161030391906156a0565b34801561035a57600080fd5b50610321610369366004614e64565b6107c7565b34801561037a57600080fd5b506102f6610389366004614e64565b6107d9565b6103a161039c366004614f82565b6107ee565b005b6103b66103b1366004614d60565b610812565b60405161030391906159c2565b6103a16103d1366004614e64565b610939565b6103a16103e4366004614e64565b6109ac565b3480156103f557600080fd5b50610409610404366004614eed565b610ab9565b604051610303919061535b565b610429610424366004614c40565b610b07565b604051610303919061594b565b610429610444366004614c40565b610b3f565b6103a1610457366004614b2a565b610b5d565b6103b661046a366004614d60565b610c20565b34801561047b57600080fd5b506102f661048a366004614af6565b610d70565b34801561049b57600080fd5b506102f66104aa366004614ea0565b610d90565b3480156104bb57600080fd5b506102f66104ca366004614e7c565b610def565b3480156104db57600080fd5b50610409610e0f565b6104f76104f236600461500c565b610e2b565b60405161030391906159d0565b6103b6610512366004614d60565b610e49565b34801561052357600080fd5b506102f6610532366004615108565b610e7d565b34801561054357600080fd5b50610409610ea2565b61055f61055a366004614cdc565b610ebe565b60405161030391906154b1565b34801561057857600080fd5b506103a1610587366004614e64565b610fe9565b61055f61059a366004614cdc565b611031565b6103b66105ad3660046150a8565b6110f8565b3480156105be57600080fd5b506105d26105cd366004614f82565b61111d565b6040516103039190615a12565b3480156105eb57600080fd5b506102f66105fa366004614fb5565b611201565b6103b661060d366004614d60565b611226565b34801561061e57600080fd5b506103a161062d366004614b65565b61125a565b6104f761064036600461500c565b611306565b61055f610653366004614cdc565b611324565b34801561066457600080fd5b506103a1610673366004614adb565b6113d9565b34801561068457600080fd5b5061032161147c565b34801561069957600080fd5b506103a16106a8366004614adb565b611482565b3480156106b957600080fd5b506103216106c8366004614af6565b611616565b3480156106d957600080fd5b506106e2611633565b604051610303919061562b565b6103a16106fd366004614c0d565b611657565b6103b66107103660046150a8565b611699565b34801561072157600080fd5b506104096116b4565b34801561073657600080fd5b506103a1610745366004614adb565b6116d0565b61075d610758366004614db3565b611748565b6040516103039190615433565b60056020526000908152604090205460ff1681565b60035481565b606061078f61187b565b156107a55761079e838361189d565b90506107c1565b6107ad6119b7565b6107b7838361189d565b90506107c16119f9565b92915050565b60096020526000908152604090205481565b600a6020526000908152604090205460ff1681565b6107f6611a2b565b6107ff81611a9a565b610807611ad7565b61080f611aeb565b50565b61081a614561565b61082261187b565b156108b857835160005b8181146108b157600061084c846020015187611b1590919063ffffffff16565b9050610856614561565b61088788848151811061086557fe5b60200260200101518388868151811061087a57fe5b6020026020010151611b34565b90506108938582611c75565b9450868560200151106108a75750506108b1565b505060010161082c565b5050610932565b6108c06119b7565b835160005b8181146109285760006108e5846020015187611b1590919063ffffffff16565b90506108ef614561565b6108fe88848151811061086557fe5b905061090a8582611c75565b94508685602001511061091e575050610928565b50506001016108c5565b50506109326119f9565b9392505050565b610941611a2b565b600061094b611d10565b600083815260076020908152604080832073ffffffffffffffffffffffffffffffffffffffff90941683529290522080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0016600117905550610807611ad7565b6109b4611a2b565b60006109be611d10565b9050600073ffffffffffffffffffffffffffffffffffffffff821633146109e557336109e8565b60005b73ffffffffffffffffffffffffffffffffffffffff8084166000908152600b60209081526040808320938516835292905220549091506001840190808211610a3d57610a3d610a38858584611d42565b611de7565b73ffffffffffffffffffffffffffffffffffffffff8085166000818152600b602090815260408083209488168084529490915290819020859055517f82af639571738f4ebd4268fb0363d8957ebe1bbb9e78dba5ebd69eed39b154f090610aa59086906154cf565b60405180910390a350505050610807611ad7565b7fffffffff00000000000000000000000000000000000000000000000000000000811660009081526002602052604090205473ffffffffffffffffffffffffffffffffffffffff165b919050565b610b0f614590565b610b17611a2b565b610b25858585856001611def565b9050610b2f611ad7565b610b37611aeb565b949350505050565b610b47614590565b610b4f611a2b565b610b25858585856000611def565b610b65611a2b565b6000610b6f611d10565b73ffffffffffffffffffffffffffffffffffffffff8181166000818152600860209081526040808320948916808452949091529081902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00168715151790555192935090917fa8656e308026eeabce8f0bc18048433252318ab80ac79da0b3d3d8697dfba89190610c039086906154c4565b60405180910390a350610c14611ad7565b610c1c611aeb565b5050565b610c28614561565b610c3061187b565b15610cee57835160005b8181146108b1578251600090610c5790879063ffffffff611b1516565b90506000610c94888481518110610c6a57fe5b602002602001015160a00151898581518110610c8257fe5b6020026020010151608001518461215c565b9050610c9e614561565b610cc2898581518110610cad57fe5b60200260200101518389878151811061087a57fe5b9050610cce8682611c75565b955087866000015110610ce3575050506108b1565b505050600101610c3a565b610cf66119b7565b835160005b818114610928578251600090610d1890879063ffffffff611b1516565b90506000610d2b888481518110610c6a57fe5b9050610d35614561565b610d44898581518110610cad57fe5b9050610d508682611c75565b955087866000015110610d6557505050610928565b505050600101610cfb565b600860209081526000928352604080842090915290825290205460ff1681565b600080610d9e85858561217e565b90506005816008811115610dae57fe5b1480610dc557506007816008811115610dc357fe5b145b15610dda57610dda610a3860058787876121fd565b610de6818686866122a5565b95945050505050565b600760209081526000928352604080842090915290825290205460ff1681565b60045473ffffffffffffffffffffffffffffffffffffffff1681565b610e336145b8565b610e3b611a2b565b610b25858585856000612515565b610e51614561565b610e5c848484610c20565b9050828160000151101561093257610932610a386000858460000151612602565b600080610e956001548561262190919063ffffffff16565b9050610b37848285612635565b60005473ffffffffffffffffffffffffffffffffffffffff1681565b6060610ec861187b565b15610f6b578351604080518281526020808402820101909152818015610f0857816020015b610ef5614561565b815260200190600190039081610eed5790505b50915060005b8181146108b157610f4c868281518110610f2457fe5b6020026020010151868381518110610f3857fe5b602002602001015186848151811061087a57fe5b838281518110610f5857fe5b6020908102919091010152600101610f0e565b610f736119b7565b8351604080518281526020808402820101909152818015610fae57816020015b610f9b614561565b815260200190600190039081610f935790505b50915060005b81811461092857610fca868281518110610f2457fe5b838281518110610fd657fe5b6020908102919091010152600101610fb4565b610ff16126bb565b7f3a3e76d7a75e198aef1f53137e4f2a8a2ec74e2e9526db8404d08ccc9f1e621d60035482604051611024929190615543565b60405180910390a1600355565b606061103b611a2b565b835160408051828152602080840282010190915281801561107657816020015b611063614561565b81526020019060019003908161105b5790505b50915060005b8181146110e6576110c786828151811061109257fe5b60200260200101518683815181106110a657fe5b60200260200101518684815181106110ba57fe5b6020026020010151612702565b8382815181106110d357fe5b602090810291909101015260010161107c565b50506110f0611ad7565b610932611aeb565b611100614561565b611108611a2b565b611113848484612702565b90506110f0611ad7565b6111256145ec565b61112e826127a4565b60408301526020820152608082015161114e5760015b60ff168152610b02565b60a082015161115e576002611144565b8160a00151816040015110611174576005611144565b8161010001514210611187576004611144565b6020808201516000908152600a909152604090205460ff16156111ab576006611144565b610120820151825173ffffffffffffffffffffffffffffffffffffffff9081166000908152600b6020908152604080832060608801519094168352929052205411156111f8576006611144565b60038152919050565b600080611219600154856127d590919063ffffffff16565b9050610b378482856127e4565b61122e614561565b611239848484610812565b9050828160200151101561093257610932610a386001858460200151612602565b835160005b8181146112ca576112c28160001b87838151811061127957fe5b602002602001015187848151811061128d57fe5b60200260200101518785815181106112a157fe5b60200260200101518786815181106112b557fe5b6020026020010151612839565b60010161125f565b506040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112fd90615914565b60405180910390fd5b61130e6145b8565b611316611a2b565b610b25858585856001612515565b606061132e611a2b565b835160408051828152602080840282010190915281801561136957816020015b611356614561565b81526020019060019003908161134e5790505b50915060005b8181146110e6576113ba86828151811061138557fe5b602002602001015186838151811061139957fe5b60200260200101518684815181106113ad57fe5b60200260200101516129f3565b8382815181106113c657fe5b602090810291909101015260010161136f565b6113e16126bb565b6004546040517fe1a5430ebec577336427f40f15822f1f36c5e3509ff209d6db9e6c9e6941cb0b9161142d9173ffffffffffffffffffffffffffffffffffffffff90911690849061537c565b60405180910390a1600480547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff92909216919091179055565b60015481565b61148a6126bb565b60008173ffffffffffffffffffffffffffffffffffffffff1663ae25532e6040518163ffffffff1660e01b815260040160206040518083038186803b1580156114d257600080fd5b505afa1580156114e6573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525061150a9190810190614f09565b7fffffffff00000000000000000000000000000000000000000000000000000000811660009081526002602052604090205490915073ffffffffffffffffffffffffffffffffffffffff16801561156857611568610a388383612a26565b7fffffffff0000000000000000000000000000000000000000000000000000000082166000908152600260205260409081902080547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff8616179055517fd2c6b762299c609bdb96520b58a49bfb80186934d4f71a86a367571a15c03194906116099084908690615658565b60405180910390a1505050565b600b60209081526000928352604080842090915290825290205481565b7f20c13b0b0000000000000000000000000000000000000000000000000000000081565b61165f611a2b565b805160005b81811461168f5761168783828151811061167a57fe5b6020026020010151611a9a565b600101611664565b5050610807611ad7565b6116a1614561565b6116a9611a2b565b6111138484846129f3565b60065473ffffffffffffffffffffffffffffffffffffffff1681565b6116d86126bb565b73ffffffffffffffffffffffffffffffffffffffff8116611703576116fe610a38612ac8565b61080f565b6000805473ffffffffffffffffffffffffffffffffffffffff83167fffffffffffffffffffffffff000000000000000000000000000000000000000090911617905550565b606061175261187b565b156117f457825160408051828152602080840282010190915260609082801561178f57816020015b606081526020019060019003908161177a5790505b50905060005b8281146117eb576117cc8682815181106117ab57fe5b60200260200101518683815181106117bf57fe5b602002602001015161189d565b8282815181106117d857fe5b6020908102919091010152600101611795565b509150506107c1565b6117fc6119b7565b825160408051828152602080840282010190915260609082801561183457816020015b606081526020019060019003908161181f5790505b50905060005b82811461186f576118508682815181106117ab57fe5b82828151811061185c57fe5b602090810291909101015260010161183a565b509150506107c16119f9565b6000547501000000000000000000000000000000000000000000900460ff1690565b606060006118b66001548561262190919063ffffffff16565b90506118c3848483612aff565b60608401516118d28180612bd3565b60008281526005602052604080822080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00166001179055608087015190516060913091611920919061530e565b600060405180830381855af49150503d806000811461195b576040519150601f19603f3d011682016040523d82523d6000602084013e611960565b606091505b50915091508161197757611977610a388583612c36565b611982836000612bd3565b60405184907fa4a7329f1dd821363067e07d359e347b4af9b1efe4b6cccf13240228af3c800d90600090a29695505050505050565b600080547fffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffffff167501000000000000000000000000000000000000000000179055565b600080547fffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffffff169055611a29612c53565b565b60005474010000000000000000000000000000000000000000900460ff1615611a5957611a59610a38612c88565b600080547fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff1674010000000000000000000000000000000000000000179055565b611aa26145ec565b611aab8261111d565b9050611ab78282612cbf565b805160ff16600314611ac9575061080f565b610c1c828260200151612d6e565b611adf61187b565b611a2957611a29612c53565b600080547fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff169055565b600082821115611b2e57611b2e610a3860028585612e17565b50900390565b611b3c614561565b6040516060907f9b44d5560000000000000000000000000000000000000000000000000000000090611b7690879087908790602401615a58565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff83818316178352505050509050600060603073ffffffffffffffffffffffffffffffffffffffff1683604051611bfe919061530e565b600060405180830381855af49150503d8060008114611c39576040519150601f19603f3d011682016040523d82523d6000602084013e611c3e565b606091505b50915091508115611c6b57805160a014611c5457fe5b80806020019051611c689190810190614f25565b93505b5050509392505050565b611c7d614561565b81518351611c909163ffffffff612e3616565b815260208083015190840151611cab9163ffffffff612e3616565b602082015260408083015190840151611cc99163ffffffff612e3616565b604082015260608083015190840151611ce79163ffffffff612e3616565b606082015260808083015190840151611d059163ffffffff612e3616565b608082015292915050565b60065460009073ffffffffffffffffffffffffffffffffffffffff16818115611d395781611d3b565b335b9250505090565b6060634ad3127560e01b848484604051602401611d61939291906153a3565b604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe08184030181529190526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fffffffff000000000000000000000000000000000000000000000000000000009093169290921790915290509392505050565b805160208201fd5b611df7614590565b8551611e0a57611e0a610a386000612e52565b8451611e1d57611e1d610a386001612e52565b8351865114611e3357611e33610a386002612e52565b8251855114611e4957611e49610a386003612e52565b8551604051908082528060200260200182016040528015611e8457816020015b611e71614561565b815260200190600190039081611e695790505b5081528451604080518281526020808402820101909152908015611ec257816020015b611eaf614561565b815260200190600190039081611ea75790505b506020820152600080611ed361460c565b88600081518110611ee057fe5b60200260200101519050611ef261460c565b88600081518110611eff57fe5b602002602001015190506000611f14836127a4565b9150506000611f22836127a4565b915050611f2d614561565b611f35614561565b611f3d6145b8565b611f7087878f8c81518110611f4e57fe5b60200260200101518f8c81518110611f6257fe5b60200260200101518f612515565b805160200151909150611f8a90869063ffffffff612e3616565b9450611fa781602001516020015185612e3690919063ffffffff16565b9350611fb7838260000151611c75565b9250611fc7828260200151611c75565b9150611fe481604001518b60400151612e3690919063ffffffff16565b60408b0152606080820151908b01516120029163ffffffff612e3616565b60608b015260a087015185106120ad578951805160018b019a859291811061202657fe5b60200260200101819052506040518060a0016040528060008152602001600081526020016000815260200160008152602001600081525092508e5189141561208a57818a60200151898151811061207957fe5b60200260200101819052505061214b565b8e898151811061209657fe5b602002602001015196506120a9876127a4565b9550505b8560a00151841061214557818a6020015189806001019a50815181106120cf57fe5b60200260200101819052506040518060a0016040528060008152602001600081526020016000815260200160008152602001600081525091508d5188141561212257828a600001518a8151811061207957fe5b8d888151811061212e57fe5b60200260200101519550612141866127a4565b9450505b50611f35565b505050505050505095945050505050565b6000610b3783612172868563ffffffff612ef116565b9063ffffffff612f2216565b600061218b848484612f4c565b905073ffffffffffffffffffffffffffffffffffffffff83166121b8576121b8610a3860068686866121fd565b600881818111156121c557fe5b60ff16106121dd576121dd610a3860038686866121fd565b60008160088111156121eb57fe5b141561093257610932610a3860048686865b6060637e5a231860e01b8585858560405160240161221e94939291906158b9565b604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe08184030181529190526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fffffffff00000000000000000000000000000000000000000000000000000000909316929092179091529050949350505050565b600060018560088111156122b557fe5b14156122dc5781516001146122d4576122d4610a3860028686866121fd565b506000610b37565b60028560088111156122ea57fe5b14156123e357815160421461230957612309610a3860028686866121fd565b60008260008151811061231857fe5b016020015160f81c9050600061233584600163ffffffff612f8b16565b9050600061234a85602163ffffffff612f8b16565b9050600060018885858560405160008152602001604052604051612371949392919061560d565b6020604051602081039080840390855afa158015612393573d6000803e3d6000fd5b50506040517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0015173ffffffffffffffffffffffffffffffffffffffff8981169116149550610b37945050505050565b60038560088111156123f157fe5b141561249e57815160421461241057612410610a3860028686866121fd565b60008260008151811061241f57fe5b016020015160f81c9050600061243c84600163ffffffff612f8b16565b9050600061245185602163ffffffff612f8b16565b90506000600188604051602001612468919061532a565b6040516020818303038152906040528051906020012085858560405160008152602001604052604051612371949392919061560d565b60048560088111156124ac57fe5b14156124c4576124bd848484612fb5565b9050610b37565b60068560088111156124d257fe5b146124d957fe5b50600083815260076020908152604080832073ffffffffffffffffffffffffffffffffffffffff8616845290915290205460ff16949350505050565b61251d6145b8565b61016080870151610140808801919091528701519086015261253d6145ec565b6125468761111d565b90506125506145ec565b6125598761111d565b90506000612565611d10565b90506125738984838a6131ab565b61257f888383896131ab565b6125938989856020015185602001516132e1565b6125ac8989856040015185604001516003543a8b61332c565b93506125c78982856020015186604001518860000151613481565b6125e08882846020015185604001518860200151613481565b6125f6836020015183602001518b8b858961355f565b50505095945050505050565b60606318e4b14160e01b848484604051602401611d619392919061589e565b60006109328261263085613706565b61378e565b60608301516000908161264985838661217e565b9050600581600881111561265957fe5b141561267b5761267461266c87876137c8565b868487613800565b92506126b2565b600781600881111561268957fe5b14156126a35761267461269c87876137c8565b83866138b4565b6126af818684876122a5565b92505b50509392505050565b60005473ffffffffffffffffffffffffffffffffffffffff163314611a2957600054611a2990610a3890339073ffffffffffffffffffffffffffffffffffffffff166138c3565b61270a614561565b6127126145ec565b61271b8561111d565b90506000612727611d10565b9050612735868383876131ab565b600061275283604001518860a00151611b1590919063ffffffff16565b9050600061276087836138e0565b905061277088826003543a6138f6565b945060008460200151905061278c89858388604001518a613481565b612798818a868961396d565b50505050509392505050565b6000806127bc600154846127d590919063ffffffff16565b6000818152600960205260409020549092509050915091565b60006109328261263085613a04565b8251600090816127f585838661217e565b9050600581600881111561280557fe5b14156128185761267461266c8787613adb565b600781600881111561282657fe5b14156126a35761267461269c8787613adb565b80156129ec57600384511161285757612857610a3860008787613b13565b6000612869858263ffffffff613b3216565b7fffffffff00000000000000000000000000000000000000000000000000000000811660009081526002602052604090205490915073ffffffffffffffffffffffffffffffffffffffff16806128c8576128c8610a3860018989613b13565b6040516060907fa85e59e400000000000000000000000000000000000000000000000000000000906129049089908990899089906024016156b3565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff83818316178352505050509050600060608373ffffffffffffffffffffffffffffffffffffffff168360405161298c919061530e565b6000604051808303816000865af19150503d80600081146129c9576040519150601f19603f3d011682016040523d82523d6000602084013e6129ce565b606091505b5091509150816129e6576129e6610a388b8b84613b7e565b50505050505b5050505050565b6129fb614561565b612a06848484612702565b90508281602001511461093257610932610a386002858460200151612602565b60606311c7b72060e01b8383604051602401612a43929190615658565b604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe08184030181529190526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fffffffff0000000000000000000000000000000000000000000000000000000090931692909217909152905092915050565b60408051808201909152600481527fe69edc3e00000000000000000000000000000000000000000000000000000000602082015290565b82602001514210612b1857612b18610a38600183613b9d565b60408301513a8114612b3257612b32610a38833a84613bba565b60065473ffffffffffffffffffffffffffffffffffffffff168015612b5e57612b5e610a388483613bd9565b60008381526005602052604090205460ff1615612b8357612b83610a38600085613b9d565b606085015173ffffffffffffffffffffffffffffffffffffffff81163314801590612bb65750612bb4868587612635565b155b15612bcb57612bcb610a3860018684896121fd565b505050505050565b73ffffffffffffffffffffffffffffffffffffffff82163314610c1c576006805473ffffffffffffffffffffffffffffffffffffffff83167fffffffffffffffffffffffff00000000000000000000000000000000000000009091161790555050565b60606320d11f6160e01b8383604051602401612a43929190615551565b3031801561080f57604051339082156108fc029083906000818181858888f19350505050158015610c1c573d6000803e3d6000fd5b60408051808201909152600481527f0c3b823f00000000000000000000000000000000000000000000000000000000602082015290565b606082015173ffffffffffffffffffffffffffffffffffffffff1615612d1357606082015173ffffffffffffffffffffffffffffffffffffffff163314612d1357612d13610a386002836020015133613bf6565b6000612d1d611d10565b90508073ffffffffffffffffffffffffffffffffffffffff16836000015173ffffffffffffffffffffffffffffffffffffffff1614612d6957612d69610a386000846020015184613bf6565b505050565b6000818152600a60205260409081902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001660011790558281015183516101408501516101608601519351859473ffffffffffffffffffffffffffffffffffffffff9485169493909316927f02c310a9a43963ff31a754a4099cc435ed498049687539d72d7818d9b093415c92612e0b92909190339061571b565b60405180910390a45050565b606063e946c1bb60e01b848484604051602401611d6193929190615846565b60008282018381101561093257610932610a3860008686612e17565b606063d4092f4f60e01b82604051602401612e6d9190615833565b604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe08184030181529190526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fffffffff00000000000000000000000000000000000000000000000000000000909316929092179091529050919050565b600082612f00575060006107c1565b82820282848281612f0d57fe5b041461093257610932610a3860018686612e17565b600081612f3857612f38610a3860038585612e17565b6000828481612f4357fe5b04949350505050565b6000815160001415612f6857612f68610a3860028686866121fd565b81600183510381518110612f7857fe5b016020015160f81c6008811115610b3757fe5b60008160200183511015612fac57612fac610a386005855185602001613c15565b50016020015190565b8051600090612fec837fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff830163ffffffff613c3416565b6040516060907f1626ba7e00000000000000000000000000000000000000000000000000000000906130249088908790602401615551565b604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe08184030181529190526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fffffffff000000000000000000000000000000000000000000000000000000009093169290921790915290506130b3848363ffffffff613c3416565b600060608673ffffffffffffffffffffffffffffffffffffffff16836040516130dc919061530e565b600060405180830381855afa9150503d8060008114613117576040519150601f19603f3d011682016040523d82523d6000602084013e61311c565b606091505b509150915081801561312f575080516020145b15613191577fb06713810000000000000000000000000000000000000000000000000000000061316682600063ffffffff613b3216565b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614945050505050610932565b6131a0610a3889898985613c38565b505050509392505050565b825160ff166003146131da576131da610a388460200151856000015160ff1660068111156131d557fe5b613c59565b606084015173ffffffffffffffffffffffffffffffffffffffff161561322e57606084015173ffffffffffffffffffffffffffffffffffffffff16331461322e5761322e610a386002856020015133613bf6565b602084015173ffffffffffffffffffffffffffffffffffffffff1615613298578173ffffffffffffffffffffffffffffffffffffffff16846020015173ffffffffffffffffffffffffffffffffffffffff161461329857613298610a386001856020015185613bf6565b8351604084015115806132b557506132b584602001518284613c76565b156129ec576132c9858560200151846127e4565b6129ec576129ec610a386000866020015184866121fd565b60a080840151908501516132fa9163ffffffff612ef116565b608080850151908601516133139163ffffffff612ef116565b101561332657613326610a388383613cc9565b50505050565b6133346145b8565b60a088015160009061334c908863ffffffff611b1516565b905060006133638a608001518b60a0015184613ce6565b9050600061337e888b60a00151611b1590919063ffffffff16565b905060006133958b608001518c60a0015184613ce6565b905085156133b2576133ab8c8c85878587613d1a565b94506133c3565b6133c08c8c85878587613dec565b94505b84515160808d015160c08e01516133db929190613ce6565b85516040015284516020015160a08d015160e08e01516133fc929190613ce6565b85516060015260208501515160808c015160c08d015161341d929190613ce6565b856020015160400181815250506134458560200151602001518c60a001518d60e00151613ce6565b6020860151606001526000613460888a63ffffffff612ef116565b86516080908101829052602088015101525050505050979650505050505050565b602081015161349790839063ffffffff612e3616565b600960008581526020019081526020016000208190555082856040015173ffffffffffffffffffffffffffffffffffffffff16866000015173ffffffffffffffffffffffffffffffffffffffff167f6869791f0a34781b29882982cc39e882768cf2c96995c2a110c577c53bc932d58861014001518961016001518a61018001518b6101a001518b338a600001518b602001518c604001518d606001518e608001516040516135509b9a99989796959493929190615767565b60405180910390a45050505050565b8351835160408087015190860151610140870151855160200151613588918b9186908890612839565b6135a28a8961014001518686896020015160200151612839565b6135bc898861018001518584896020015160400151612839565b6135d68a8961018001518685896000015160400151612839565b6135ec8a89610140015186898960400151612839565b6136028988610140015185898960600151612839565b600061361a8b8b88600001516080015188888c613e85565b905080613637578551600060809182018190526020880151909101525b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614801561368757506101a080890151908a01516136879163ffffffff613ee216565b156136c5576136c08b8a6101a0015189866136bb8b60200151606001518c6000015160600151612e3690919063ffffffff16565b612839565b6136f9565b6136df8a896101a0015189858a6020015160600151612839565b6136f98b8a6101a0015189868a6000015160600151612839565b5050505050505050505050565b608081810151825160208085015160408087015160609788015186519685019690962082517fec69816980a3a3ca4554410e60253953e9ff375ba4536a98adfa15cc71541508815294850195909552908301919091529481019490945273ffffffffffffffffffffffffffffffffffffffff9091169183019190915260a082015260c0902090565b6040517f19010000000000000000000000000000000000000000000000000000000000008152600281019290925260228201526042902090565b6040516060907fde047db40000000000000000000000000000000000000000000000000000000090612a439085908590602401615a83565b8051600090601581101561381e5761381e610a3860028787876121fd565b6000613852847fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffeb840163ffffffff613f0716565b73ffffffffffffffffffffffffffffffffffffffff80871660009081526008602090815260408083209385168352929052205490915060ff1661389c5761389c610a388683613f47565b6138a98188866015613f64565b979650505050505050565b6000610b378385846001613f64565b6060631de45ad160e01b8383604051602401612a4392919061537c565b60008183106138ef5781610932565b5090919050565b6138fe614561565b6020810184905260a0850151608086015161391a918691613ce6565b815260a085015160c0860151613931918691613ce6565b604082015260a085015160e086015161394b918691613ce6565b6060820152613960828463ffffffff612ef116565b6080820152949350505050565b613987848461016001518486600001518560200151612839565b6139a1848461014001518560000151858560000151612839565b6139bb84846101a001518486604001518560600151612839565b6139d984846101800151856000015186604001518560400151612839565b60006139ef85836080015186600001518661413b565b9050806129ec57600060808301525050505050565b6101408101516101608201516101808301516101a08401516000937ff80322eb8376aafb64eadf8f0d7623f22130fd9491a221e902b713cb984a753493909290916020871015613a5057fe5b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe087018051610140890180516101608b0180516101808d0180516101a08f0180519d89528c5160209d8e012087528b519b8d019b909b2084528951998c01999099208152875197909a019690962088526101e085209390945290529190529252919091529050919050565b6040516060907f3efe50c80000000000000000000000000000000000000000000000000000000090612a439085908590602401615a36565b606063488219a660e01b848484604051602401611d619392919061580b565b60008160040183511015613b5357613b53610a386003855185600401613c15565b5001602001517fffffffff000000000000000000000000000000000000000000000000000000001690565b6060634678472b60e01b848484604051602401611d619392919061556a565b606063f598518460e01b8383604051602401612a439291906158fd565b606063a26dac0960e01b848484604051602401611d61939291906155f7565b606063dec4aedf60e01b8383604051602401612a439291906154d8565b606063e53c76c860e01b848484604051602401611d6193929190615867565b6060632800659560e01b848484604051602401611d61939291906158ab565b9052565b6060631b8388f760e01b8585858560405160240161221e94939291906154fc565b606063fdb6ca8d60e01b8383604051602401612a43929190615595565b600080613c84858585612f4c565b90506004816008811115613c9457fe5b1480613cab57506005816008811115613ca957fe5b145b80610de657506007816008811115613cbf57fe5b1495945050505050565b606063b6555d6f60e01b8383604051602401612a43929190615543565b6000613cf3848484614181565b15613d0657613d06610a388585856141e7565b610b3783612172868563ffffffff612ef116565b613d226145b8565b81851184841184861115613d4257613d3b898686614206565b9250613d91565b86841115613d825782518790528251602001869052608088015160a0890151613d6c919089613ce6565b6020808501805192909252905101879052613d91565b613d8e87878787614243565b92505b8115613db7576020808401510151835151613db19163ffffffff611b1516565b60408401525b8015613ddf5782516020908101519084015151613dd99163ffffffff611b1516565b60608401525b50505b9695505050505050565b613df46145b8565b82841115613e0e57613e07878484614206565b9050613e5c565b82841015613e4d5780518590528051602090810185905281015184905260a08601516080870151613e4091908661426e565b6020808301510152613e5c565b613e5985858585614243565b90505b6020808201510151815151613e769163ffffffff611b1516565b60408201529695505050505050565b60045460009073ffffffffffffffffffffffffffffffffffffffff168015613ed85730316000613eb98a84848b8b8a6142c2565b9050613ecb89848385038b8a8a6142c2565b5060019350505050613de2565b6000915050613de2565b6000815183511480156109325750508051602091820120825192909101919091201490565b60008160140183511015613f2857613f28610a386004855185601401613c15565b50016014015173ffffffffffffffffffffffffffffffffffffffff1690565b606063a15c0d0660e01b8383604051602401612a4392919061537c565b8151600090613f7b8484830363ffffffff613c3416565b6040516060907f20c13b0b0000000000000000000000000000000000000000000000000000000090613fb390889088906024016156f6565b604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe08184030181529190526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fffffffff00000000000000000000000000000000000000000000000000000000909316929092179091529050614042858363ffffffff613c3416565b600060608873ffffffffffffffffffffffffffffffffffffffff168360405161406b919061530e565b600060405180830381855afa9150503d80600081146140a6576040519150601f19603f3d011682016040523d82523d6000602084013e6140ab565b606091505b50915091508180156140be575080516020145b15614120577f20c13b0b000000000000000000000000000000000000000000000000000000006140f582600063ffffffff613b3216565b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614945050505050610b37565b61412f610a388a8a8a856143fa565b50505050949350505050565b60045460009073ffffffffffffffffffffffffffffffffffffffff1680156141775761416c868230318888886142c2565b506001915050610b37565b6000915050610b37565b60008261419357614193610a3861441b565b81158061419e575083155b156141ab57506000610932565b600083806141b557fe5b85840990506141ca858463ffffffff612ef116565b6141dc826103e863ffffffff612ef116565b101595945050505050565b606063339f3de260e01b848484604051602401611d61939291906155f7565b61420e6145b8565b60208082018051859052518101839052815101839052608084015160a0850151614239919085613ce6565b8151529392505050565b61424b6145b8565b805194909452835160209081019390935282840180519290925290519091015290565b600061427b848484614452565b1561428e5761428e610a388585856141e7565b610b37836121726142a682600163ffffffff611b1516565b6142b6888763ffffffff612ef116565b9063ffffffff612e3616565b60008385106142ce5750825b6040516060907fa3b4a3270000000000000000000000000000000000000000000000000000000090614308908690869089906024016153a3565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff83818316178352505050509050600060608873ffffffffffffffffffffffffffffffffffffffff168484604051614391919061530e565b60006040518083038185875af1925050503d80600081146143ce576040519150601f19603f3d011682016040523d82523d6000602084013e6143d3565b606091505b5091509150816143ed576143ed610a388b898989866144b6565b5050509695505050505050565b6060635bd0428d60e01b8585858560405160240161221e94939291906153d4565b60408051808201909152600481527fa791837c00000000000000000000000000000000000000000000000000000000602082015290565b60008261446457614464610a3861441b565b81158061446f575083155b1561447c57506000610932565b6000838061448657fe5b85840990508361449c818363ffffffff611b1516565b816144a357fe5b0690506141ca858463ffffffff612ef116565b60606387cb1e7560e01b86868686866040516024016144d99594939291906155b2565b604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe08184030181529190526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fffffffff0000000000000000000000000000000000000000000000000000000090931692909217909152905095945050505050565b6040518060a0016040528060008152602001600081526020016000815260200160008152602001600081525090565b6040518060800160405280606081526020016060815260200160008152602001600081525090565b60405180608001604052806145cb614561565b81526020016145d8614561565b815260200160008152602001600081525090565b604080516060810182526000808252602082018190529181019190915290565b604051806101c00160405280600073ffffffffffffffffffffffffffffffffffffffff168152602001600073ffffffffffffffffffffffffffffffffffffffff168152602001600073ffffffffffffffffffffffffffffffffffffffff168152602001600073ffffffffffffffffffffffffffffffffffffffff168152602001600081526020016000815260200160008152602001600081526020016000815260200160008152602001606081526020016060815260200160608152602001606081525090565b803573ffffffffffffffffffffffffffffffffffffffff811681146107c157600080fd5b600082601f830112614707578081fd5b813561471a61471582615b14565b615aed565b81815291506020808301908481018184028601820187101561473b57600080fd5b60005b848110156147625761475088836146d3565b8452928201929082019060010161473e565b505050505092915050565b600082601f83011261477d578081fd5b813561478b61471582615b14565b8181529150602080830190840160005b838110156147c8576147b3876020843589010161488b565b8352602092830192919091019060010161479b565b5050505092915050565b600082601f8301126147e2578081fd5b81356147f061471582615b14565b8181529150602080830190840160005b838110156147c8576148188760208435890101614912565b83526020928301929190910190600101614800565b600082601f83011261483d578081fd5b813561484b61471582615b14565b81815291506020808301908481018184028601820187101561486c57600080fd5b60005b848110156147625781358452928201929082019060010161486f565b600082601f83011261489b578081fd5b813567ffffffffffffffff8111156148b1578182fd5b6148e260207fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f84011601615aed565b91508082528360208285010111156148f957600080fd5b8060208401602084013760009082016020015292915050565b60006101c0808385031215614925578182fd5b61492e81615aed565b91505061493b83836146d3565b815261494a83602084016146d3565b602082015261495c83604084016146d3565b604082015261496e83606084016146d3565b60608201526080820135608082015260a082013560a082015260c082013560c082015260e082013560e08201526101008083013581830152506101208083013581830152506101408083013567ffffffffffffffff808211156149d057600080fd5b6149dc8683870161488b565b838501526101609250828501359150808211156149f857600080fd5b614a048683870161488b565b83850152610180925082850135915080821115614a2057600080fd5b614a2c8683870161488b565b838501526101a0925082850135915080821115614a4857600080fd5b50614a558582860161488b565b82840152505092915050565b600060a08284031215614a72578081fd5b614a7c60a0615aed565b90508135815260208201356020820152604082013560408201526060820135614aa481615b88565b6060820152608082013567ffffffffffffffff811115614ac357600080fd5b614acf8482850161488b565b60808301525092915050565b600060208284031215614aec578081fd5b61093283836146d3565b60008060408385031215614b08578081fd5b614b1284846146d3565b9150614b2184602085016146d3565b90509250929050565b60008060408385031215614b3c578182fd5b614b4684846146d3565b915060208301358015158114614b5a578182fd5b809150509250929050565b60008060008060808587031215614b7a578182fd5b843567ffffffffffffffff80821115614b91578384fd5b614b9d8883890161476d565b95506020870135915080821115614bb2578384fd5b614bbe888389016146f7565b94506040870135915080821115614bd3578384fd5b614bdf888389016146f7565b93506060870135915080821115614bf4578283fd5b50614c018782880161482d565b91505092959194509250565b600060208284031215614c1e578081fd5b813567ffffffffffffffff811115614c34578182fd5b610b37848285016147d2565b60008060008060808587031215614c55578182fd5b843567ffffffffffffffff80821115614c6c578384fd5b614c78888389016147d2565b95506020870135915080821115614c8d578384fd5b614c99888389016147d2565b94506040870135915080821115614cae578384fd5b614cba8883890161476d565b93506060870135915080821115614ccf578283fd5b50614c018782880161476d565b600080600060608486031215614cf0578081fd5b833567ffffffffffffffff80821115614d07578283fd5b614d13878388016147d2565b94506020860135915080821115614d28578283fd5b614d348783880161482d565b93506040860135915080821115614d49578283fd5b50614d568682870161476d565b9150509250925092565b600080600060608486031215614d74578081fd5b833567ffffffffffffffff80821115614d8b578283fd5b614d97878388016147d2565b9450602086013593506040860135915080821115614d49578283fd5b60008060408385031215614dc5578182fd5b823567ffffffffffffffff80821115614ddc578384fd5b81850186601f820112614ded578485fd5b80359250614dfd61471584615b14565b83815260208082019190838101885b87811015614e3557614e238c848435890101614a61565b85529382019390820190600101614e0c565b50919750880135945050505080821115614e4d578283fd5b50614e5a8582860161476d565b9150509250929050565b600060208284031215614e75578081fd5b5035919050565b60008060408385031215614e8e578182fd5b823591506020830135614b5a81615b88565b600080600060608486031215614eb4578081fd5b833592506020840135614ec681615b88565b9150604084013567ffffffffffffffff811115614ee1578182fd5b614d568682870161488b565b600060208284031215614efe578081fd5b813561093281615baa565b600060208284031215614f1a578081fd5b815161093281615baa565b600060a0828403128015614f37578182fd5b8015614f41578182fd5b50614f4c60a0615aed565b82518152602083015160208201526040830151604082015260608301516060820152608083015160808201528091505092915050565b600060208284031215614f93578081fd5b813567ffffffffffffffff811115614fa9578182fd5b610b3784828501614912565b60008060408385031215614fc7578182fd5b823567ffffffffffffffff80821115614fde578384fd5b614fea86838701614912565b93506020850135915080821115614fff578283fd5b50614e5a8582860161488b565b60008060008060808587031215615021578182fd5b843567ffffffffffffffff80821115615038578384fd5b61504488838901614912565b95506020870135915080821115615059578384fd5b61506588838901614912565b9450604087013591508082111561507a578384fd5b6150868883890161488b565b9350606087013591508082111561509b578283fd5b50614c018782880161488b565b6000806000606084860312156150bc578081fd5b833567ffffffffffffffff808211156150d3578283fd5b6150df87838801614912565b94506020860135935060408601359150808211156150fb578283fd5b50614d568682870161488b565b6000806040838503121561511a578182fd5b823567ffffffffffffffff80821115615131578384fd5b614fea86838701614a61565b73ffffffffffffffffffffffffffffffffffffffff169052565b6000815180845260208401935060208301825b828110156151935761517d8683516151e7565b60a095909501946020919091019060010161516a565b5093949350505050565b600081518084526151b5816020860160208601615b34565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0169290920160200192915050565b80518252602081015160208301526040810151604083015260608101516060830152608081015160808301525050565b60006101c061522784845161513d565b6020830151615239602086018261513d565b50604083015161524c604086018261513d565b50606083015161525f606086018261513d565b506080830151608085015260a083015160a085015260c083015160c085015260e083015160e08501526101008084015181860152506101208084015181860152506101408084015182828701526152b88387018261519d565b915050610160915081840151858203838701526152d5828261519d565b9250505061018080840151858303828701526152f1838261519d565b9150506101a091508184015185820383870152613de2828261519d565b60008251615320818460208701615b34565b9190910192915050565b7f19457468657265756d205369676e6564204d6573736167653a0a3332000000008152601c810191909152603c0190565b73ffffffffffffffffffffffffffffffffffffffff91909116815260200190565b73ffffffffffffffffffffffffffffffffffffffff92831681529116602082015260400190565b73ffffffffffffffffffffffffffffffffffffffff9384168152919092166020820152604081019190915260600190565b600073ffffffffffffffffffffffffffffffffffffffff8616825260806020830152615403608083018661519d565b8281036040840152615415818661519d565b8381036060850152615427818661519d565b98975050505050505050565b6000602080830181845280855180835260408601915060408482028701019250838701855b828110156154a4577fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc088860301845261549285835161519d565b94509285019290850190600101615458565b5092979650505050505050565b6000602082526109326020830184615157565b901515815260200190565b90815260200190565b91825273ffffffffffffffffffffffffffffffffffffffff16602082015260400190565b600085825273ffffffffffffffffffffffffffffffffffffffff8516602083015260806040830152615531608083018561519d565b82810360608401526138a9818561519d565b918252602082015260400190565b600083825260406020830152610b37604083018461519d565b600084825260606020830152615583606083018561519d565b8281036040840152613de2818561519d565b828152604081016155a583615b7e565b8260208301529392505050565b600086825285602083015273ffffffffffffffffffffffffffffffffffffffff808616604084015280851660608401525060a060808301526138a960a083018461519d565b9283526020830191909152604082015260600190565b93845260ff9290921660208401526040830152606082015260800190565b7fffffffff0000000000000000000000000000000000000000000000000000000091909116815260200190565b7fffffffff0000000000000000000000000000000000000000000000000000000092909216825273ffffffffffffffffffffffffffffffffffffffff16602082015260400190565b600060208252610932602083018461519d565b6000608082526156c6608083018761519d565b73ffffffffffffffffffffffffffffffffffffffff95861660208401529390941660408201526060015292915050565b600060408252615709604083018561519d565b8281036020840152610de6818561519d565b60006060825261572e606083018661519d565b8281036020840152615740818661519d565b91505073ffffffffffffffffffffffffffffffffffffffff83166040830152949350505050565b600061016080835261577b8184018f61519d565b838103602085015261578d818f61519d565b91505082810360408401526157a2818d61519d565b83810360608501526157b4818d61519d565b73ffffffffffffffffffffffffffffffffffffffff9b8c16608086015299909a1660a0840152505060c081019590955260e08501939093526101008401919091526101208301526101409091015295945050505050565b600061581685615b60565b84825283602083015260606040830152610de6606083018461519d565b6020810161584083615b6a565b91905290565b6060810161585385615b6a565b938152602081019290925260409091015290565b6060810161587485615b74565b938152602081019290925273ffffffffffffffffffffffffffffffffffffffff1660409091015290565b6060810161585385615b74565b606081016008851061585357fe5b60006158c486615b7e565b85825284602083015273ffffffffffffffffffffffffffffffffffffffff8416604083015260806060830152613de2608083018461519d565b6040810161590a84615b60565b9281526020015290565b60208082526014908201527f5452414e53464552535f5355434345535346554c000000000000000000000000604082015260600190565b60006020825282516080602084015261596760a0840182615157565b602085015191507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe08482030160408501526159a28183615157565b604086015160608601526060860151608086015280935050505092915050565b60a081016107c182846151e7565b6000610180820190506159e48284516151e7565b60208301516159f660a08401826151e7565b5060408301516101408301526060909201516101609091015290565b815160ff168152602080830151908201526040918201519181019190915260600190565b600060408252615a496040830185615217565b90508260208301529392505050565b600060608252615a6b6060830186615217565b8460208401528281036040840152613de2818561519d565b60006040825283516040830152602084015160608301526040840151608083015273ffffffffffffffffffffffffffffffffffffffff60608501511660a0830152608084015160a060c0840152615add60e084018261519d565b9150508260208301529392505050565b60405181810167ffffffffffffffff81118282101715615b0c57600080fd5b604052919050565b600067ffffffffffffffff821115615b2a578081fd5b5060209081020190565b60005b83811015615b4f578181015183820152602001615b37565b838111156133265750506000910152565b6002811061080f57fe5b6004811061080f57fe5b6003811061080f57fe5b6007811061080f57fe5b73ffffffffffffffffffffffffffffffffffffffff8116811461080f57600080fd5b7fffffffff000000000000000000000000000000000000000000000000000000008116811461080f57600080fd5b8351602094850120835193850193909320604080517f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f815295860194909452928401929092526060830152608082015260a090209056fea365627a7a723158206fc97c5a1d6fde6b2ada9eb4429966e52d7e2da39180893c04bf55c840b346a16c6578706572696d656e74616cf564736f6c634300050c0040" - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:110](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L110)* - -## Methods - -### evmExecAsync - -▸ **evmExecAsync**(`input`: `Buffer`): *`Promise`* - - - -Defined in base-contract/lib/src/index.d.ts:42 - -**Parameters:** - -Name | Type | ------- | ------ | -`input` | `Buffer` | - -**Returns:** *`Promise`* - -___ - -### getLogsAsync - -▸ **getLogsAsync**<**ArgsType**>(`eventName`: [ExchangeEvents](#enumeration-exchangeevents), `blockRange`: `BlockRange`, `indexFilterValues`: `IndexedFilterValues`): *`Promise>>`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:13398](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L13398)* - -Gets historical logs without creating a subscription - -**Type parameters:** - -▪ **ArgsType**: *[ExchangeEventArgs](#exchangeeventargs)* - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`eventName` | [ExchangeEvents](#enumeration-exchangeevents) | The Exchange 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 - -___ - -### subscribe - -▸ **subscribe**<**ArgsType**>(`eventName`: [ExchangeEvents](#enumeration-exchangeevents), `indexFilterValues`: `IndexedFilterValues`, `callback`: [EventCallback](#eventcallback)‹*`ArgsType`*›, `isVerbose`: boolean, `blockPollingIntervalMs?`: undefined | number): *string* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:13356](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L13356)* - -Subscribe to an event type emitted by the Exchange contract. - -**Type parameters:** - -▪ **ArgsType**: *[ExchangeEventArgs](#exchangeeventargs)* - -**Parameters:** - -Name | Type | Default | Description | ------- | ------ | ------ | ------ | -`eventName` | [ExchangeEvents](#enumeration-exchangeevents) | - | The Exchange 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 - -___ - -### unsubscribe - -▸ **unsubscribe**(`subscriptionToken`: string): *void* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:13381](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L13381)* - -Cancel a subscription - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`subscriptionToken` | string | Subscription token returned by `subscribe()` | - -**Returns:** *void* - -___ - -### unsubscribeAll - -▸ **unsubscribeAll**(): *void* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:13387](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L13387)* - -Cancels all existing subscriptions - -**Returns:** *void* - -___ - -### `Static` ABI - -▸ **ABI**(): *[ContractAbi](#contractabi)* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:10467](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L10467)* - -**Returns:** *[ContractAbi](#contractabi)* - -The contract ABI - -___ - -### `Static` deployAsync - -▸ **deployAsync**(`bytecode`: string, `abi`: [ContractAbi](#contractabi), `supportedProvider`: [SupportedProvider](#supportedprovider), `txDefaults`: `Partial`, `logDecodeDependencies`: object, `chainId`: `BigNumber`): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:10420](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L10420)* - -**Parameters:** - -Name | Type | ------- | ------ | -`bytecode` | string | -`abi` | [ContractAbi](#contractabi) | -`supportedProvider` | [SupportedProvider](#supportedprovider) | -`txDefaults` | `Partial` | -`logDecodeDependencies` | object | -`chainId` | `BigNumber` | - -**Returns:** *`Promise`* - -___ - -### `Static` deployFrom0xArtifactAsync - -▸ **deployFrom0xArtifactAsync**(`artifact`: `ContractArtifact` | `SimpleContractArtifact`, `supportedProvider`: [SupportedProvider](#supportedprovider), `txDefaults`: `Partial`, `logDecodeDependencies`: object, `chainId`: `BigNumber`): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:10394](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L10394)* - -**Parameters:** - -Name | Type | ------- | ------ | -`artifact` | `ContractArtifact` \| `SimpleContractArtifact` | -`supportedProvider` | [SupportedProvider](#supportedprovider) | -`txDefaults` | `Partial` | -`logDecodeDependencies` | object | -`chainId` | `BigNumber` | - -**Returns:** *`Promise`* - -___ - -### `Static` strictArgumentEncodingCheck - -▸ **strictArgumentEncodingCheck**(`inputAbi`: `DataItem`[], `args`: any[]): *string* - - - -Defined in base-contract/lib/src/index.d.ts:41 - -**Parameters:** - -Name | Type | ------- | ------ | -`inputAbi` | `DataItem`[] | -`args` | any[] | - -**Returns:** *string* - -## Object literals - -### EIP1271_MAGIC_VALUE - -#### ▪ **EIP1271_MAGIC_VALUE**: *object* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:112](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L112)* - -#### callAsync - -▸ **callAsync**(`callData`: `Partial`, `defaultBlock?`: [BlockParam](#blockparam)): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:118](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L118)* - -Sends a read-only call to the contract method. Returns the result that would happen if one were to send an -Ethereum transaction to this method, given the current state of the blockchain. Calls do not cost gas -since they don't modify state. - -**Parameters:** - -Name | Type | Default | ------- | ------ | ------ | -`callData` | `Partial` | {} | -`defaultBlock?` | [BlockParam](#blockparam) | - | - -**Returns:** *`Promise`* - -#### getABIDecodedReturnData - -▸ **getABIDecodedReturnData**(`returnData`: string): *string* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:182](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L182)* - -Decode the ABI-encoded return data from a transaction - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`returnData` | string | the data returned after transaction execution | - -**Returns:** *string* - -An array representing the output results in order. Keynames of nested structs are preserved. - -#### getABIDecodedTransactionData - -▸ **getABIDecodedTransactionData**(`callData`: string): *void* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:170](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L170)* - -Decode the ABI-encoded transaction data into its input arguments - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`callData` | string | The ABI-encoded transaction data | - -**Returns:** *void* - -An array representing the input arguments in order. Keynames of nested structs are preserved. - -#### getABIEncodedTransactionData - -▸ **getABIEncodedTransactionData**(): *string* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:160](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L160)* - -Returns the ABI encoded transaction data needed to send an Ethereum transaction calling this method. Before -sending the Ethereum tx, this encoded tx data can first be sent to a separate signing service or can be used -to create a 0x transaction (see protocol spec for more details). - -**Returns:** *string* - -The ABI encoded transaction data as a string - -___ - -### EIP712_EXCHANGE_DOMAIN_HASH - -#### ▪ **EIP712_EXCHANGE_DOMAIN_HASH**: *object* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:190](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L190)* - -#### callAsync - -▸ **callAsync**(`callData`: `Partial`, `defaultBlock?`: [BlockParam](#blockparam)): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:196](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L196)* - -Sends a read-only call to the contract method. Returns the result that would happen if one were to send an -Ethereum transaction to this method, given the current state of the blockchain. Calls do not cost gas -since they don't modify state. - -**Parameters:** - -Name | Type | Default | ------- | ------ | ------ | -`callData` | `Partial` | {} | -`defaultBlock?` | [BlockParam](#blockparam) | - | - -**Returns:** *`Promise`* - -#### getABIDecodedReturnData - -▸ **getABIDecodedReturnData**(`returnData`: string): *string* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:260](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L260)* - -Decode the ABI-encoded return data from a transaction - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`returnData` | string | the data returned after transaction execution | - -**Returns:** *string* - -An array representing the output results in order. Keynames of nested structs are preserved. - -#### getABIDecodedTransactionData - -▸ **getABIDecodedTransactionData**(`callData`: string): *void* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:248](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L248)* - -Decode the ABI-encoded transaction data into its input arguments - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`callData` | string | The ABI-encoded transaction data | - -**Returns:** *void* - -An array representing the input arguments in order. Keynames of nested structs are preserved. - -#### getABIEncodedTransactionData - -▸ **getABIEncodedTransactionData**(): *string* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:238](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L238)* - -Returns the ABI encoded transaction data needed to send an Ethereum transaction calling this method. Before -sending the Ethereum tx, this encoded tx data can first be sent to a separate signing service or can be used -to create a 0x transaction (see protocol spec for more details). - -**Returns:** *string* - -The ABI encoded transaction data as a string - -___ - -### allowedValidators - -#### ▪ **allowedValidators**: *object* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:268](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L268)* - -#### callAsync - -▸ **callAsync**(`index_0`: string, `index_1`: string, `callData`: `Partial`, `defaultBlock?`: [BlockParam](#blockparam)): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:274](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L274)* - -Sends a read-only call to the contract method. Returns the result that would happen if one were to send an -Ethereum transaction to this method, given the current state of the blockchain. Calls do not cost gas -since they don't modify state. - -**Parameters:** - -Name | Type | Default | ------- | ------ | ------ | -`index_0` | string | - | -`index_1` | string | - | -`callData` | `Partial` | {} | -`defaultBlock?` | [BlockParam](#blockparam) | - | - -**Returns:** *`Promise`* - -#### getABIDecodedReturnData - -▸ **getABIDecodedReturnData**(`returnData`: string): *boolean* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:353](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L353)* - -Decode the ABI-encoded return data from a transaction - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`returnData` | string | the data returned after transaction execution | - -**Returns:** *boolean* - -An array representing the output results in order. Keynames of nested structs are preserved. - -#### getABIDecodedTransactionData - -▸ **getABIDecodedTransactionData**(`callData`: string): *string* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:341](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L341)* - -Decode the ABI-encoded transaction data into its input arguments - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`callData` | string | The ABI-encoded transaction data | - -**Returns:** *string* - -An array representing the input arguments in order. Keynames of nested structs are preserved. - -#### getABIEncodedTransactionData - -▸ **getABIEncodedTransactionData**(`index_0`: string, `index_1`: string): *string* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:326](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L326)* - -Returns the ABI encoded transaction data needed to send an Ethereum transaction calling this method. Before -sending the Ethereum tx, this encoded tx data can first be sent to a separate signing service or can be used -to create a 0x transaction (see protocol spec for more details). - -**Parameters:** - -Name | Type | ------- | ------ | -`index_0` | string | -`index_1` | string | - -**Returns:** *string* - -The ABI encoded transaction data as a string - -___ - -### batchCancelOrders - -#### ▪ **batchCancelOrders**: *object* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:364](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L364)* - -Executes multiple calls of cancelOrder. - -#### awaitTransactionSuccessAsync - -▸ **awaitTransactionSuccessAsync**(`orders`: `Array`, `txData?`: `Partial`, `pollingIntervalMs?`: undefined | number, `timeoutMs?`: undefined | number): *`PromiseWithTransactionHash`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:420](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L420)* - -Sends an Ethereum transaction and waits until the transaction has been successfully mined without reverting. -If the transaction was mined, but reverted, an error is thrown. - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`orders` | `Array` | Array of order specifications. | -`txData?` | `Partial` | Additional data for transaction | -`pollingIntervalMs?` | undefined \| number | Interval at which to poll for success | -`timeoutMs?` | undefined \| number | - | - -**Returns:** *`PromiseWithTransactionHash`* - -A promise that resolves when the transaction is successful - -#### callAsync - -▸ **callAsync**(`orders`: `Array`, `callData`: `Partial`, `defaultBlock?`: [BlockParam](#blockparam)): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:531](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L531)* - -Sends a read-only call to the contract method. Returns the result that would happen if one were to send an -Ethereum transaction to this method, given the current state of the blockchain. Calls do not cost gas -since they don't modify state. - -**Parameters:** - -Name | Type | Default | Description | ------- | ------ | ------ | ------ | -`orders` | `Array` | - | Array of order specifications. | -`callData` | `Partial` | {} | - | -`defaultBlock?` | [BlockParam](#blockparam) | - | - | - -**Returns:** *`Promise`* - -#### estimateGasAsync - -▸ **estimateGasAsync**(`orders`: `Array`, `txData?`: `Partial` | undefined): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:462](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L462)* - -Estimates the gas cost of sending an Ethereum transaction calling this method with these arguments. - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`orders` | `Array` | Array of order specifications. | -`txData?` | `Partial` \| undefined | Additional data for transaction | - -**Returns:** *`Promise`* - -The hash of the transaction - -#### getABIDecodedReturnData - -▸ **getABIDecodedReturnData**(`returnData`: string): *void* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:682](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L682)* - -Decode the ABI-encoded return data from a transaction - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`returnData` | string | the data returned after transaction execution | - -**Returns:** *void* - -An array representing the output results in order. Keynames of nested structs are preserved. - -#### getABIDecodedTransactionData - -▸ **getABIDecodedTransactionData**(`callData`: string): *[`Array`]* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:630](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L630)* - -Decode the ABI-encoded transaction data into its input arguments - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`callData` | string | The ABI-encoded transaction data | - -**Returns:** *[`Array`]* - -An array representing the input arguments in order. Keynames of nested structs are preserved. - -#### getABIEncodedTransactionData - -▸ **getABIEncodedTransactionData**(`orders`: `Array`): *string* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:599](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L599)* - -Returns the ABI encoded transaction data needed to send an Ethereum transaction calling this method. Before -sending the Ethereum tx, this encoded tx data can first be sent to a separate signing service or can be used -to create a 0x transaction (see protocol spec for more details). - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`orders` | `Array` | Array of order specifications. | - -**Returns:** *string* - -The ABI encoded transaction data as a string - -#### sendTransactionAsync - -▸ **sendTransactionAsync**(`orders`: `Array`, `txData?`: `Partial` | undefined): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:372](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L372)* - -Sends an Ethereum transaction executing this method with the supplied parameters. This is a read/write -Ethereum operation and will cost gas. - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`orders` | `Array` | Array of order specifications. | -`txData?` | `Partial` \| undefined | Additional data for transaction | - -**Returns:** *`Promise`* - -The hash of the transaction - -#### validateAndSendTransactionAsync - -▸ **validateAndSendTransactionAsync**(`orders`: `Array`, `txData?`: `Partial` | undefined): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:502](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L502)* - -**Parameters:** - -Name | Type | ------- | ------ | -`orders` | `Array` | -`txData?` | `Partial` \| undefined | - -**Returns:** *`Promise`* - -___ - -### batchExecuteTransactions - -#### ▪ **batchExecuteTransactions**: *object* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:695](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L695)* - -Executes a batch of Exchange method calls in the context of signer(s). - -#### awaitTransactionSuccessAsync - -▸ **awaitTransactionSuccessAsync**(`transactions`: `Array`, `signatures`: string[], `txData?`: `Partial`, `pollingIntervalMs?`: undefined | number, `timeoutMs?`: undefined | number): *`PromiseWithTransactionHash`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:748](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L748)* - -Sends an Ethereum transaction and waits until the transaction has been successfully mined without reverting. -If the transaction was mined, but reverted, an error is thrown. - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`transactions` | `Array` | Array of 0x transaction structures. | -`signatures` | string[] | Array of proofs that transactions have been signed by signer(s). | -`txData?` | `Partial` | Additional data for transaction | -`pollingIntervalMs?` | undefined \| number | Interval at which to poll for success | -`timeoutMs?` | undefined \| number | - | - -**Returns:** *`PromiseWithTransactionHash`* - -A promise that resolves when the transaction is successful - -#### callAsync - -▸ **callAsync**(`transactions`: `Array`, `signatures`: string[], `callData`: `Partial`, `defaultBlock?`: [BlockParam](#blockparam)): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:846](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L846)* - -Sends a read-only call to the contract method. Returns the result that would happen if one were to send an -Ethereum transaction to this method, given the current state of the blockchain. Calls do not cost gas -since they don't modify state. - -**Parameters:** - -Name | Type | Default | Description | ------- | ------ | ------ | ------ | -`transactions` | `Array` | - | Array of 0x transaction structures. | -`signatures` | string[] | - | Array of proofs that transactions have been signed by signer(s). | -`callData` | `Partial` | {} | - | -`defaultBlock?` | [BlockParam](#blockparam) | - | - | - -**Returns:** *`Promise`* - -Array containing ABI encoded return data for each of the underlying Exchange function calls. - -#### estimateGasAsync - -▸ **estimateGasAsync**(`transactions`: `Array`, `signatures`: string[], `txData?`: `Partial` | undefined): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:785](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L785)* - -Estimates the gas cost of sending an Ethereum transaction calling this method with these arguments. - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`transactions` | `Array` | Array of 0x transaction structures. | -`signatures` | string[] | Array of proofs that transactions have been signed by signer(s). | -`txData?` | `Partial` \| undefined | Additional data for transaction | - -**Returns:** *`Promise`* - -The hash of the transaction - -#### getABIDecodedReturnData - -▸ **getABIDecodedReturnData**(`returnData`: string): *string[]* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:963](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L963)* - -Decode the ABI-encoded return data from a transaction - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`returnData` | string | the data returned after transaction execution | - -**Returns:** *string[]* - -An array representing the output results in order. Keynames of nested structs are preserved. - -#### getABIDecodedTransactionData - -▸ **getABIDecodedTransactionData**(`callData`: string): *`Array`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:933](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L933)* - -Decode the ABI-encoded transaction data into its input arguments - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`callData` | string | The ABI-encoded transaction data | - -**Returns:** *`Array`* - -An array representing the input arguments in order. Keynames of nested structs are preserved. - -#### getABIEncodedTransactionData - -▸ **getABIEncodedTransactionData**(`transactions`: `Array`, `signatures`: string[]): *string* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:909](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L909)* - -Returns the ABI encoded transaction data needed to send an Ethereum transaction calling this method. Before -sending the Ethereum tx, this encoded tx data can first be sent to a separate signing service or can be used -to create a 0x transaction (see protocol spec for more details). - -**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:** *string* - -The ABI encoded transaction data as a string - -#### sendTransactionAsync - -▸ **sendTransactionAsync**(`transactions`: `Array`, `signatures`: string[], `txData?`: `Partial` | undefined): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:705](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L705)* - -Sends an Ethereum transaction executing this method with the supplied parameters. This is a read/write -Ethereum operation and will cost gas. - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`transactions` | `Array` | Array of 0x transaction structures. | -`signatures` | string[] | Array of proofs that transactions have been signed by signer(s). | -`txData?` | `Partial` \| undefined | Additional data for transaction | - -**Returns:** *`Promise`* - -The hash of the transaction - -#### validateAndSendTransactionAsync - -▸ **validateAndSendTransactionAsync**(`transactions`: `Array`, `signatures`: string[], `txData?`: `Partial` | undefined): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:818](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L818)* - -**Parameters:** - -Name | Type | ------- | ------ | -`transactions` | `Array` | -`signatures` | string[] | -`txData?` | `Partial` \| undefined | - -**Returns:** *`Promise`* - -___ - -### batchFillOrKillOrders - -#### ▪ **batchFillOrKillOrders**: *object* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:976](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L976)* - -Executes multiple calls of fillOrKillOrder. - -#### awaitTransactionSuccessAsync - -▸ **awaitTransactionSuccessAsync**(`orders`: `Array`, `takerAssetFillAmounts`: `BigNumber`[], `signatures`: string[], `txData?`: `Partial`, `pollingIntervalMs?`: undefined | number, `timeoutMs?`: undefined | number): *`PromiseWithTransactionHash`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:1042](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L1042)* - -Sends an Ethereum transaction and waits until the transaction has been successfully mined without reverting. -If the transaction was mined, but reverted, an error is thrown. - -**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. | -`txData?` | `Partial` | Additional data for transaction | -`pollingIntervalMs?` | undefined \| number | Interval at which to poll for success | -`timeoutMs?` | undefined \| number | - | - -**Returns:** *`PromiseWithTransactionHash`* - -A promise that resolves when the transaction is successful - -#### callAsync - -▸ **callAsync**(`orders`: `Array`, `takerAssetFillAmounts`: `BigNumber`[], `signatures`: string[], `callData`: `Partial`, `defaultBlock?`: [BlockParam](#blockparam)): *`Promise>`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:1180](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L1180)* - -Sends a read-only call to the contract method. Returns the result that would happen if one were to send an -Ethereum transaction to this method, given the current state of the blockchain. Calls do not cost gas -since they don't modify state. - -**Parameters:** - -Name | Type | Default | 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. | -`callData` | `Partial` | {} | - | -`defaultBlock?` | [BlockParam](#blockparam) | - | - | - -**Returns:** *`Promise>`* - -Array of amounts filled and fees paid by makers and taker. - -#### estimateGasAsync - -▸ **estimateGasAsync**(`orders`: `Array`, `takerAssetFillAmounts`: `BigNumber`[], `signatures`: string[], `txData?`: `Partial` | undefined): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:1096](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L1096)* - -Estimates the gas cost of sending an Ethereum transaction calling this method with these arguments. - -**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. | -`txData?` | `Partial` \| undefined | Additional data for transaction | - -**Returns:** *`Promise`* - -The hash of the transaction - -#### getABIDecodedReturnData - -▸ **getABIDecodedReturnData**(`returnData`: string): *`Array`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:1354](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L1354)* - -Decode the ABI-encoded return data from a transaction - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`returnData` | string | the data returned after transaction execution | - -**Returns:** *`Array`* - -An array representing the output results in order. Keynames of nested structs are preserved. - -#### getABIDecodedTransactionData - -▸ **getABIDecodedTransactionData**(`callData`: string): *`Array`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:1306](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L1306)* - -Decode the ABI-encoded transaction data into its input arguments - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`callData` | string | The ABI-encoded transaction data | - -**Returns:** *`Array`* - -An array representing the input arguments in order. Keynames of nested structs are preserved. - -#### getABIEncodedTransactionData - -▸ **getABIEncodedTransactionData**(`orders`: `Array`, `takerAssetFillAmounts`: `BigNumber`[], `signatures`: string[]): *string* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:1271](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L1271)* - -Returns the ABI encoded transaction data needed to send an Ethereum transaction calling this method. Before -sending the Ethereum tx, this encoded tx data can first be sent to a separate signing service or can be used -to create a 0x transaction (see protocol spec for more details). - -**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:** *string* - -The ABI encoded transaction data as a string - -#### sendTransactionAsync - -▸ **sendTransactionAsync**(`orders`: `Array`, `takerAssetFillAmounts`: `BigNumber`[], `signatures`: string[], `txData?`: `Partial` | undefined): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:987](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L987)* - -Sends an Ethereum transaction executing this method with the supplied parameters. This is a read/write -Ethereum operation and will cost gas. - -**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. | -`txData?` | `Partial` \| undefined | Additional data for transaction | - -**Returns:** *`Promise`* - -The hash of the transaction - -#### validateAndSendTransactionAsync - -▸ **validateAndSendTransactionAsync**(`orders`: `Array`, `takerAssetFillAmounts`: `BigNumber`[], `signatures`: string[], `txData?`: `Partial` | undefined): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:1140](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L1140)* - -**Parameters:** - -Name | Type | ------- | ------ | -`orders` | `Array` | -`takerAssetFillAmounts` | `BigNumber`[] | -`signatures` | string[] | -`txData?` | `Partial` \| undefined | - -**Returns:** *`Promise`* - -___ - -### batchFillOrders - -#### ▪ **batchFillOrders**: *object* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:1383](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L1383)* - -Executes multiple calls of fillOrder. - -#### awaitTransactionSuccessAsync - -▸ **awaitTransactionSuccessAsync**(`orders`: `Array`, `takerAssetFillAmounts`: `BigNumber`[], `signatures`: string[], `txData?`: `Partial`, `pollingIntervalMs?`: undefined | number, `timeoutMs?`: undefined | number): *`PromiseWithTransactionHash`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:1449](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L1449)* - -Sends an Ethereum transaction and waits until the transaction has been successfully mined without reverting. -If the transaction was mined, but reverted, an error is thrown. - -**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. | -`txData?` | `Partial` | Additional data for transaction | -`pollingIntervalMs?` | undefined \| number | Interval at which to poll for success | -`timeoutMs?` | undefined \| number | - | - -**Returns:** *`PromiseWithTransactionHash`* - -A promise that resolves when the transaction is successful - -#### callAsync - -▸ **callAsync**(`orders`: `Array`, `takerAssetFillAmounts`: `BigNumber`[], `signatures`: string[], `callData`: `Partial`, `defaultBlock?`: [BlockParam](#blockparam)): *`Promise>`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:1587](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L1587)* - -Sends a read-only call to the contract method. Returns the result that would happen if one were to send an -Ethereum transaction to this method, given the current state of the blockchain. Calls do not cost gas -since they don't modify state. - -**Parameters:** - -Name | Type | Default | 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. | -`callData` | `Partial` | {} | - | -`defaultBlock?` | [BlockParam](#blockparam) | - | - | - -**Returns:** *`Promise>`* - -Array of amounts filled and fees paid by makers and taker. - -#### estimateGasAsync - -▸ **estimateGasAsync**(`orders`: `Array`, `takerAssetFillAmounts`: `BigNumber`[], `signatures`: string[], `txData?`: `Partial` | undefined): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:1503](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L1503)* - -Estimates the gas cost of sending an Ethereum transaction calling this method with these arguments. - -**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. | -`txData?` | `Partial` \| undefined | Additional data for transaction | - -**Returns:** *`Promise`* - -The hash of the transaction - -#### getABIDecodedReturnData - -▸ **getABIDecodedReturnData**(`returnData`: string): *`Array`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:1761](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L1761)* - -Decode the ABI-encoded return data from a transaction - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`returnData` | string | the data returned after transaction execution | - -**Returns:** *`Array`* - -An array representing the output results in order. Keynames of nested structs are preserved. - -#### getABIDecodedTransactionData - -▸ **getABIDecodedTransactionData**(`callData`: string): *`Array`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:1713](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L1713)* - -Decode the ABI-encoded transaction data into its input arguments - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`callData` | string | The ABI-encoded transaction data | - -**Returns:** *`Array`* - -An array representing the input arguments in order. Keynames of nested structs are preserved. - -#### getABIEncodedTransactionData - -▸ **getABIEncodedTransactionData**(`orders`: `Array`, `takerAssetFillAmounts`: `BigNumber`[], `signatures`: string[]): *string* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:1678](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L1678)* - -Returns the ABI encoded transaction data needed to send an Ethereum transaction calling this method. Before -sending the Ethereum tx, this encoded tx data can first be sent to a separate signing service or can be used -to create a 0x transaction (see protocol spec for more details). - -**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:** *string* - -The ABI encoded transaction data as a string - -#### sendTransactionAsync - -▸ **sendTransactionAsync**(`orders`: `Array`, `takerAssetFillAmounts`: `BigNumber`[], `signatures`: string[], `txData?`: `Partial` | undefined): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:1394](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L1394)* - -Sends an Ethereum transaction executing this method with the supplied parameters. This is a read/write -Ethereum operation and will cost gas. - -**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. | -`txData?` | `Partial` \| undefined | Additional data for transaction | - -**Returns:** *`Promise`* - -The hash of the transaction - -#### validateAndSendTransactionAsync - -▸ **validateAndSendTransactionAsync**(`orders`: `Array`, `takerAssetFillAmounts`: `BigNumber`[], `signatures`: string[], `txData?`: `Partial` | undefined): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:1547](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L1547)* - -**Parameters:** - -Name | Type | ------- | ------ | -`orders` | `Array` | -`takerAssetFillAmounts` | `BigNumber`[] | -`signatures` | string[] | -`txData?` | `Partial` \| undefined | - -**Returns:** *`Promise`* - -___ - -### batchFillOrdersNoThrow - -#### ▪ **batchFillOrdersNoThrow**: *object* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:1790](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L1790)* - -Executes multiple calls of fillOrder. If any fill reverts, the error is caught and ignored. - -#### awaitTransactionSuccessAsync - -▸ **awaitTransactionSuccessAsync**(`orders`: `Array`, `takerAssetFillAmounts`: `BigNumber`[], `signatures`: string[], `txData?`: `Partial`, `pollingIntervalMs?`: undefined | number, `timeoutMs?`: undefined | number): *`PromiseWithTransactionHash`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:1856](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L1856)* - -Sends an Ethereum transaction and waits until the transaction has been successfully mined without reverting. -If the transaction was mined, but reverted, an error is thrown. - -**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. | -`txData?` | `Partial` | Additional data for transaction | -`pollingIntervalMs?` | undefined \| number | Interval at which to poll for success | -`timeoutMs?` | undefined \| number | - | - -**Returns:** *`PromiseWithTransactionHash`* - -A promise that resolves when the transaction is successful - -#### callAsync - -▸ **callAsync**(`orders`: `Array`, `takerAssetFillAmounts`: `BigNumber`[], `signatures`: string[], `callData`: `Partial`, `defaultBlock?`: [BlockParam](#blockparam)): *`Promise>`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:1994](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L1994)* - -Sends a read-only call to the contract method. Returns the result that would happen if one were to send an -Ethereum transaction to this method, given the current state of the blockchain. Calls do not cost gas -since they don't modify state. - -**Parameters:** - -Name | Type | Default | 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. | -`callData` | `Partial` | {} | - | -`defaultBlock?` | [BlockParam](#blockparam) | - | - | - -**Returns:** *`Promise>`* - -Array of amounts filled and fees paid by makers and taker. - -#### estimateGasAsync - -▸ **estimateGasAsync**(`orders`: `Array`, `takerAssetFillAmounts`: `BigNumber`[], `signatures`: string[], `txData?`: `Partial` | undefined): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:1910](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L1910)* - -Estimates the gas cost of sending an Ethereum transaction calling this method with these arguments. - -**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. | -`txData?` | `Partial` \| undefined | Additional data for transaction | - -**Returns:** *`Promise`* - -The hash of the transaction - -#### getABIDecodedReturnData - -▸ **getABIDecodedReturnData**(`returnData`: string): *`Array`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:2168](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L2168)* - -Decode the ABI-encoded return data from a transaction - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`returnData` | string | the data returned after transaction execution | - -**Returns:** *`Array`* - -An array representing the output results in order. Keynames of nested structs are preserved. - -#### getABIDecodedTransactionData - -▸ **getABIDecodedTransactionData**(`callData`: string): *`Array`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:2120](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L2120)* - -Decode the ABI-encoded transaction data into its input arguments - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`callData` | string | The ABI-encoded transaction data | - -**Returns:** *`Array`* - -An array representing the input arguments in order. Keynames of nested structs are preserved. - -#### getABIEncodedTransactionData - -▸ **getABIEncodedTransactionData**(`orders`: `Array`, `takerAssetFillAmounts`: `BigNumber`[], `signatures`: string[]): *string* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:2085](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L2085)* - -Returns the ABI encoded transaction data needed to send an Ethereum transaction calling this method. Before -sending the Ethereum tx, this encoded tx data can first be sent to a separate signing service or can be used -to create a 0x transaction (see protocol spec for more details). - -**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:** *string* - -The ABI encoded transaction data as a string - -#### sendTransactionAsync - -▸ **sendTransactionAsync**(`orders`: `Array`, `takerAssetFillAmounts`: `BigNumber`[], `signatures`: string[], `txData?`: `Partial` | undefined): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:1801](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L1801)* - -Sends an Ethereum transaction executing this method with the supplied parameters. This is a read/write -Ethereum operation and will cost gas. - -**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. | -`txData?` | `Partial` \| undefined | Additional data for transaction | - -**Returns:** *`Promise`* - -The hash of the transaction - -#### validateAndSendTransactionAsync - -▸ **validateAndSendTransactionAsync**(`orders`: `Array`, `takerAssetFillAmounts`: `BigNumber`[], `signatures`: string[], `txData?`: `Partial` | undefined): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:1954](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L1954)* - -**Parameters:** - -Name | Type | ------- | ------ | -`orders` | `Array` | -`takerAssetFillAmounts` | `BigNumber`[] | -`signatures` | string[] | -`txData?` | `Partial` \| undefined | - -**Returns:** *`Promise`* - -___ - -### batchMatchOrders - -#### ▪ **batchMatchOrders**: *object* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:2199](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L2199)* - -Match complementary orders that have a profitable spread. -Each order is filled at their respective price point, and -the matcher receives a profit denominated in the left maker asset. - -#### awaitTransactionSuccessAsync - -▸ **awaitTransactionSuccessAsync**(`leftOrders`: `Array`, `rightOrders`: `Array`, `leftSignatures`: string[], `rightSignatures`: string[], `txData?`: `Partial`, `pollingIntervalMs?`: undefined | number, `timeoutMs?`: undefined | number): *`PromiseWithTransactionHash`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:2286](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L2286)* - -Sends an Ethereum transaction and waits until the transaction has been successfully mined without reverting. -If the transaction was mined, but reverted, an error is thrown. - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`leftOrders` | `Array` | Set of orders with the same maker / taker asset. | -`rightOrders` | `Array` | Set of orders to match against `leftOrders` | -`leftSignatures` | string[] | Proof that left orders were created by the left makers. | -`rightSignatures` | string[] | Proof that right orders were created by the right makers. | -`txData?` | `Partial` | Additional data for transaction | -`pollingIntervalMs?` | undefined \| number | Interval at which to poll for success | -`timeoutMs?` | undefined \| number | - | - -**Returns:** *`PromiseWithTransactionHash`* - -A promise that resolves when the transaction is successful - -#### callAsync - -▸ **callAsync**(`leftOrders`: `Array`, `rightOrders`: `Array`, `leftSignatures`: string[], `rightSignatures`: string[], `callData`: `Partial`, `defaultBlock?`: [BlockParam](#blockparam)): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:2486](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L2486)* - -Sends a read-only call to the contract method. Returns the result that would happen if one were to send an -Ethereum transaction to this method, given the current state of the blockchain. Calls do not cost gas -since they don't modify state. - -**Parameters:** - -Name | Type | Default | Description | ------- | ------ | ------ | ------ | -`leftOrders` | `Array` | - | Set of orders with the same maker / taker asset. | -`rightOrders` | `Array` | - | Set of orders to match against `leftOrders` | -`leftSignatures` | string[] | - | Proof that left orders were created by the left makers. | -`rightSignatures` | string[] | - | Proof that right orders were created by the right makers. | -`callData` | `Partial` | {} | - | -`defaultBlock?` | [BlockParam](#blockparam) | - | - | - -**Returns:** *`Promise`* - -batchMatchedFillResults Amounts filled and profit generated. - -#### estimateGasAsync - -▸ **estimateGasAsync**(`leftOrders`: `Array`, `rightOrders`: `Array`, `leftSignatures`: string[], `rightSignatures`: string[], `txData?`: `Partial` | undefined): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:2360](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L2360)* - -Estimates the gas cost of sending an Ethereum transaction calling this method with these arguments. - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`leftOrders` | `Array` | Set of orders with the same maker / taker asset. | -`rightOrders` | `Array` | Set of orders to match against `leftOrders` | -`leftSignatures` | string[] | Proof that left orders were created by the left makers. | -`rightSignatures` | string[] | Proof that right orders were created by the right makers. | -`txData?` | `Partial` \| undefined | Additional data for transaction | - -**Returns:** *`Promise`* - -The hash of the transaction - -#### getABIDecodedReturnData - -▸ **getABIDecodedReturnData**(`returnData`: string): *object* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:2714](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L2714)* - -Decode the ABI-encoded return data from a transaction - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`returnData` | string | the data returned after transaction execution | - -**Returns:** *object* - -An array representing the output results in order. Keynames of nested structs are preserved. - -#### getABIDecodedTransactionData - -▸ **getABIDecodedTransactionData**(`callData`: string): *`Array`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:2666](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L2666)* - -Decode the ABI-encoded transaction data into its input arguments - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`callData` | string | The ABI-encoded transaction data | - -**Returns:** *`Array`* - -An array representing the input arguments in order. Keynames of nested structs are preserved. - -#### getABIEncodedTransactionData - -▸ **getABIEncodedTransactionData**(`leftOrders`: `Array`, `rightOrders`: `Array`, `leftSignatures`: string[], `rightSignatures`: string[]): *string* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:2614](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L2614)* - -Returns the ABI encoded transaction data needed to send an Ethereum transaction calling this method. Before -sending the Ethereum tx, this encoded tx data can first be sent to a separate signing service or can be used -to create a 0x transaction (see protocol spec for more details). - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`leftOrders` | `Array` | Set of orders with the same maker / taker asset. | -`rightOrders` | `Array` | Set of orders to match against `leftOrders` | -`leftSignatures` | string[] | Proof that left orders were created by the left makers. | -`rightSignatures` | string[] | Proof that right orders were created by the right makers. | - -**Returns:** *string* - -The ABI encoded transaction data as a string - -#### sendTransactionAsync - -▸ **sendTransactionAsync**(`leftOrders`: `Array`, `rightOrders`: `Array`, `leftSignatures`: string[], `rightSignatures`: string[], `txData?`: `Partial` | undefined): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:2212](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L2212)* - -Sends an Ethereum transaction executing this method with the supplied parameters. This is a read/write -Ethereum operation and will cost gas. - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`leftOrders` | `Array` | Set of orders with the same maker / taker asset. | -`rightOrders` | `Array` | Set of orders to match against `leftOrders` | -`leftSignatures` | string[] | Proof that left orders were created by the left makers. | -`rightSignatures` | string[] | Proof that right orders were created by the right makers. | -`txData?` | `Partial` \| undefined | Additional data for transaction | - -**Returns:** *`Promise`* - -The hash of the transaction - -#### validateAndSendTransactionAsync - -▸ **validateAndSendTransactionAsync**(`leftOrders`: `Array`, `rightOrders`: `Array`, `leftSignatures`: string[], `rightSignatures`: string[], `txData?`: `Partial` | undefined): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:2421](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L2421)* - -**Parameters:** - -Name | Type | ------- | ------ | -`leftOrders` | `Array` | -`rightOrders` | `Array` | -`leftSignatures` | string[] | -`rightSignatures` | string[] | -`txData?` | `Partial` \| undefined | - -**Returns:** *`Promise`* - -___ - -### batchMatchOrdersWithMaximalFill - -#### ▪ **batchMatchOrdersWithMaximalFill**: *object* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:2766](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L2766)* - -Match complementary orders that have a profitable spread. -Each order is maximally filled at their respective price point, and -the matcher receives a profit denominated in either the left maker asset, -right maker asset, or a combination of both. - -#### awaitTransactionSuccessAsync - -▸ **awaitTransactionSuccessAsync**(`leftOrders`: `Array`, `rightOrders`: `Array`, `leftSignatures`: string[], `rightSignatures`: string[], `txData?`: `Partial`, `pollingIntervalMs?`: undefined | number, `timeoutMs?`: undefined | number): *`PromiseWithTransactionHash`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:2853](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L2853)* - -Sends an Ethereum transaction and waits until the transaction has been successfully mined without reverting. -If the transaction was mined, but reverted, an error is thrown. - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`leftOrders` | `Array` | Set of orders with the same maker / taker asset. | -`rightOrders` | `Array` | Set of orders to match against `leftOrders` | -`leftSignatures` | string[] | Proof that left orders were created by the left makers. | -`rightSignatures` | string[] | Proof that right orders were created by the right makers. | -`txData?` | `Partial` | Additional data for transaction | -`pollingIntervalMs?` | undefined \| number | Interval at which to poll for success | -`timeoutMs?` | undefined \| number | - | - -**Returns:** *`PromiseWithTransactionHash`* - -A promise that resolves when the transaction is successful - -#### callAsync - -▸ **callAsync**(`leftOrders`: `Array`, `rightOrders`: `Array`, `leftSignatures`: string[], `rightSignatures`: string[], `callData`: `Partial`, `defaultBlock?`: [BlockParam](#blockparam)): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:3053](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L3053)* - -Sends a read-only call to the contract method. Returns the result that would happen if one were to send an -Ethereum transaction to this method, given the current state of the blockchain. Calls do not cost gas -since they don't modify state. - -**Parameters:** - -Name | Type | Default | Description | ------- | ------ | ------ | ------ | -`leftOrders` | `Array` | - | Set of orders with the same maker / taker asset. | -`rightOrders` | `Array` | - | Set of orders to match against `leftOrders` | -`leftSignatures` | string[] | - | Proof that left orders were created by the left makers. | -`rightSignatures` | string[] | - | Proof that right orders were created by the right makers. | -`callData` | `Partial` | {} | - | -`defaultBlock?` | [BlockParam](#blockparam) | - | - | - -**Returns:** *`Promise`* - -batchMatchedFillResults Amounts filled and profit generated. - -#### estimateGasAsync - -▸ **estimateGasAsync**(`leftOrders`: `Array`, `rightOrders`: `Array`, `leftSignatures`: string[], `rightSignatures`: string[], `txData?`: `Partial` | undefined): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:2927](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L2927)* - -Estimates the gas cost of sending an Ethereum transaction calling this method with these arguments. - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`leftOrders` | `Array` | Set of orders with the same maker / taker asset. | -`rightOrders` | `Array` | Set of orders to match against `leftOrders` | -`leftSignatures` | string[] | Proof that left orders were created by the left makers. | -`rightSignatures` | string[] | Proof that right orders were created by the right makers. | -`txData?` | `Partial` \| undefined | Additional data for transaction | - -**Returns:** *`Promise`* - -The hash of the transaction - -#### getABIDecodedReturnData - -▸ **getABIDecodedReturnData**(`returnData`: string): *object* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:3281](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L3281)* - -Decode the ABI-encoded return data from a transaction - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`returnData` | string | the data returned after transaction execution | - -**Returns:** *object* - -An array representing the output results in order. Keynames of nested structs are preserved. - -#### getABIDecodedTransactionData - -▸ **getABIDecodedTransactionData**(`callData`: string): *`Array`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:3233](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L3233)* - -Decode the ABI-encoded transaction data into its input arguments - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`callData` | string | The ABI-encoded transaction data | - -**Returns:** *`Array`* - -An array representing the input arguments in order. Keynames of nested structs are preserved. - -#### getABIEncodedTransactionData - -▸ **getABIEncodedTransactionData**(`leftOrders`: `Array`, `rightOrders`: `Array`, `leftSignatures`: string[], `rightSignatures`: string[]): *string* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:3181](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L3181)* - -Returns the ABI encoded transaction data needed to send an Ethereum transaction calling this method. Before -sending the Ethereum tx, this encoded tx data can first be sent to a separate signing service or can be used -to create a 0x transaction (see protocol spec for more details). - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`leftOrders` | `Array` | Set of orders with the same maker / taker asset. | -`rightOrders` | `Array` | Set of orders to match against `leftOrders` | -`leftSignatures` | string[] | Proof that left orders were created by the left makers. | -`rightSignatures` | string[] | Proof that right orders were created by the right makers. | - -**Returns:** *string* - -The ABI encoded transaction data as a string - -#### sendTransactionAsync - -▸ **sendTransactionAsync**(`leftOrders`: `Array`, `rightOrders`: `Array`, `leftSignatures`: string[], `rightSignatures`: string[], `txData?`: `Partial` | undefined): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:2779](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L2779)* - -Sends an Ethereum transaction executing this method with the supplied parameters. This is a read/write -Ethereum operation and will cost gas. - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`leftOrders` | `Array` | Set of orders with the same maker / taker asset. | -`rightOrders` | `Array` | Set of orders to match against `leftOrders` | -`leftSignatures` | string[] | Proof that left orders were created by the left makers. | -`rightSignatures` | string[] | Proof that right orders were created by the right makers. | -`txData?` | `Partial` \| undefined | Additional data for transaction | - -**Returns:** *`Promise`* - -The hash of the transaction - -#### validateAndSendTransactionAsync - -▸ **validateAndSendTransactionAsync**(`leftOrders`: `Array`, `rightOrders`: `Array`, `leftSignatures`: string[], `rightSignatures`: string[], `txData?`: `Partial` | undefined): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:2988](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L2988)* - -**Parameters:** - -Name | Type | ------- | ------ | -`leftOrders` | `Array` | -`rightOrders` | `Array` | -`leftSignatures` | string[] | -`rightSignatures` | string[] | -`txData?` | `Partial` \| undefined | - -**Returns:** *`Promise`* - -___ - -### cancelOrder - -#### ▪ **cancelOrder**: *object* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:3330](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L3330)* - -After calling, the order can not be filled anymore. - -#### awaitTransactionSuccessAsync - -▸ **awaitTransactionSuccessAsync**(`order`: object, `txData?`: `Partial`, `pollingIntervalMs?`: undefined | number, `timeoutMs?`: undefined | number): *`PromiseWithTransactionHash`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:3385](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L3385)* - -Sends an Ethereum transaction and waits until the transaction has been successfully mined without reverting. -If the transaction was mined, but reverted, an error is thrown. - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`order` | object | Order struct containing order specifications. | -`txData?` | `Partial` | Additional data for transaction | -`pollingIntervalMs?` | undefined \| number | Interval at which to poll for success | -`timeoutMs?` | undefined \| number | - | - -**Returns:** *`PromiseWithTransactionHash`* - -A promise that resolves when the transaction is successful - -#### callAsync - -▸ **callAsync**(`order`: object, `callData`: `Partial`, `defaultBlock?`: [BlockParam](#blockparam)): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:3494](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L3494)* - -Sends a read-only call to the contract method. Returns the result that would happen if one were to send an -Ethereum transaction to this method, given the current state of the blockchain. Calls do not cost gas -since they don't modify state. - -**Parameters:** - -Name | Type | Default | Description | ------- | ------ | ------ | ------ | -`order` | object | - | Order struct containing order specifications. | -`callData` | `Partial` | {} | - | -`defaultBlock?` | [BlockParam](#blockparam) | - | - | - -**Returns:** *`Promise`* - -#### estimateGasAsync - -▸ **estimateGasAsync**(`order`: object, `txData?`: `Partial` | undefined): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:3426](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L3426)* - -Estimates the gas cost of sending an Ethereum transaction calling this method with these arguments. - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`order` | object | Order struct containing order specifications. | -`txData?` | `Partial` \| undefined | Additional data for transaction | - -**Returns:** *`Promise`* - -The hash of the transaction - -#### getABIDecodedReturnData - -▸ **getABIDecodedReturnData**(`returnData`: string): *void* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:3641](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L3641)* - -Decode the ABI-encoded return data from a transaction - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`returnData` | string | the data returned after transaction execution | - -**Returns:** *void* - -An array representing the output results in order. Keynames of nested structs are preserved. - -#### getABIDecodedTransactionData - -▸ **getABIDecodedTransactionData**(`callData`: string): *[object]* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:3589](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L3589)* - -Decode the ABI-encoded transaction data into its input arguments - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`callData` | string | The ABI-encoded transaction data | - -**Returns:** *[object]* - -An array representing the input arguments in order. Keynames of nested structs are preserved. - -#### getABIEncodedTransactionData - -▸ **getABIEncodedTransactionData**(`order`: object): *string* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:3561](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L3561)* - -Returns the ABI encoded transaction data needed to send an Ethereum transaction calling this method. Before -sending the Ethereum tx, this encoded tx data can first be sent to a separate signing service or can be used -to create a 0x transaction (see protocol spec for more details). - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`order` | object | Order struct containing order specifications. | - -**Returns:** *string* - -The ABI encoded transaction data as a string - -#### sendTransactionAsync - -▸ **sendTransactionAsync**(`order`: object, `txData?`: `Partial` | undefined): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:3338](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L3338)* - -Sends an Ethereum transaction executing this method with the supplied parameters. This is a read/write -Ethereum operation and will cost gas. - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`order` | object | Order struct containing order specifications. | -`txData?` | `Partial` \| undefined | Additional data for transaction | - -**Returns:** *`Promise`* - -The hash of the transaction - -#### validateAndSendTransactionAsync - -▸ **validateAndSendTransactionAsync**(`order`: object, `txData?`: `Partial` | undefined): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:3465](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L3465)* - -**Parameters:** - -Name | Type | ------- | ------ | -`order` | object | -`txData?` | `Partial` \| undefined | - -**Returns:** *`Promise`* - -___ - -### cancelOrdersUpTo - -#### ▪ **cancelOrdersUpTo**: *object* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:3655](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L3655)* - -Cancels all orders created by makerAddress with a salt less than or equal to the targetOrderEpoch -and senderAddress equal to msg.sender (or null address if msg.sender == makerAddress). - -#### awaitTransactionSuccessAsync - -▸ **awaitTransactionSuccessAsync**(`targetOrderEpoch`: `BigNumber`, `txData?`: `Partial`, `pollingIntervalMs?`: undefined | number, `timeoutMs?`: undefined | number): *`PromiseWithTransactionHash`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:3692](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L3692)* - -Sends an Ethereum transaction and waits until the transaction has been successfully mined without reverting. -If the transaction was mined, but reverted, an error is thrown. - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`targetOrderEpoch` | `BigNumber` | Orders created with a salt less or equal to this value will be cancelled. | -`txData?` | `Partial` | Additional data for transaction | -`pollingIntervalMs?` | undefined \| number | Interval at which to poll for success | -`timeoutMs?` | undefined \| number | - | - -**Returns:** *`PromiseWithTransactionHash`* - -A promise that resolves when the transaction is successful - -#### callAsync - -▸ **callAsync**(`targetOrderEpoch`: `BigNumber`, `callData`: `Partial`, `defaultBlock?`: [BlockParam](#blockparam)): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:3754](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L3754)* - -Sends a read-only call to the contract method. Returns the result that would happen if one were to send an -Ethereum transaction to this method, given the current state of the blockchain. Calls do not cost gas -since they don't modify state. - -**Parameters:** - -Name | Type | Default | Description | ------- | ------ | ------ | ------ | -`targetOrderEpoch` | `BigNumber` | - | Orders created with a salt less or equal to this value will be cancelled. | -`callData` | `Partial` | {} | - | -`defaultBlock?` | [BlockParam](#blockparam) | - | - | - -**Returns:** *`Promise`* - -#### estimateGasAsync - -▸ **estimateGasAsync**(`targetOrderEpoch`: `BigNumber`, `txData?`: `Partial` | undefined): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:3720](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L3720)* - -Estimates the gas cost of sending an Ethereum transaction calling this method with these arguments. - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`targetOrderEpoch` | `BigNumber` | Orders created with a salt less or equal to this value will be cancelled. | -`txData?` | `Partial` \| undefined | Additional data for transaction | - -**Returns:** *`Promise`* - -The hash of the transaction - -#### getABIDecodedReturnData - -▸ **getABIDecodedReturnData**(`returnData`: string): *void* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:3828](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L3828)* - -Decode the ABI-encoded return data from a transaction - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`returnData` | string | the data returned after transaction execution | - -**Returns:** *void* - -An array representing the output results in order. Keynames of nested structs are preserved. - -#### getABIDecodedTransactionData - -▸ **getABIDecodedTransactionData**(`callData`: string): *[`BigNumber`]* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:3816](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L3816)* - -Decode the ABI-encoded transaction data into its input arguments - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`callData` | string | The ABI-encoded transaction data | - -**Returns:** *[`BigNumber`]* - -An array representing the input arguments in order. Keynames of nested structs are preserved. - -#### getABIEncodedTransactionData - -▸ **getABIEncodedTransactionData**(`targetOrderEpoch`: `BigNumber`): *string* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:3803](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L3803)* - -Returns the ABI encoded transaction data needed to send an Ethereum transaction calling this method. Before -sending the Ethereum tx, this encoded tx data can first be sent to a separate signing service or can be used -to create a 0x transaction (see protocol spec for more details). - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`targetOrderEpoch` | `BigNumber` | Orders created with a salt less or equal to this value will be cancelled. | - -**Returns:** *string* - -The ABI encoded transaction data as a string - -#### sendTransactionAsync - -▸ **sendTransactionAsync**(`targetOrderEpoch`: `BigNumber`, `txData?`: `Partial` | undefined): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:3664](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L3664)* - -Sends an Ethereum transaction executing this method with the supplied parameters. This is a read/write -Ethereum operation and will cost gas. - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`targetOrderEpoch` | `BigNumber` | Orders created with a salt less or equal to this value will be cancelled. | -`txData?` | `Partial` \| undefined | Additional data for transaction | - -**Returns:** *`Promise`* - -The hash of the transaction - -#### validateAndSendTransactionAsync - -▸ **validateAndSendTransactionAsync**(`targetOrderEpoch`: `BigNumber`, `txData?`: `Partial` | undefined): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:3739](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L3739)* - -**Parameters:** - -Name | Type | ------- | ------ | -`targetOrderEpoch` | `BigNumber` | -`txData?` | `Partial` \| undefined | - -**Returns:** *`Promise`* - -___ - -### cancelled - -#### ▪ **cancelled**: *object* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:3836](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L3836)* - -#### callAsync - -▸ **callAsync**(`index_0`: string, `callData`: `Partial`, `defaultBlock?`: [BlockParam](#blockparam)): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:3842](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L3842)* - -Sends a read-only call to the contract method. Returns the result that would happen if one were to send an -Ethereum transaction to this method, given the current state of the blockchain. Calls do not cost gas -since they don't modify state. - -**Parameters:** - -Name | Type | Default | ------- | ------ | ------ | -`index_0` | string | - | -`callData` | `Partial` | {} | -`defaultBlock?` | [BlockParam](#blockparam) | - | - -**Returns:** *`Promise`* - -#### getABIDecodedReturnData - -▸ **getABIDecodedReturnData**(`returnData`: string): *boolean* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:3912](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L3912)* - -Decode the ABI-encoded return data from a transaction - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`returnData` | string | the data returned after transaction execution | - -**Returns:** *boolean* - -An array representing the output results in order. Keynames of nested structs are preserved. - -#### getABIDecodedTransactionData - -▸ **getABIDecodedTransactionData**(`callData`: string): *string* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:3900](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L3900)* - -Decode the ABI-encoded transaction data into its input arguments - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`callData` | string | The ABI-encoded transaction data | - -**Returns:** *string* - -An array representing the input arguments in order. Keynames of nested structs are preserved. - -#### getABIEncodedTransactionData - -▸ **getABIEncodedTransactionData**(`index_0`: string): *string* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:3889](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L3889)* - -Returns the ABI encoded transaction data needed to send an Ethereum transaction calling this method. Before -sending the Ethereum tx, this encoded tx data can first be sent to a separate signing service or can be used -to create a 0x transaction (see protocol spec for more details). - -**Parameters:** - -Name | Type | ------- | ------ | -`index_0` | string | - -**Returns:** *string* - -The ABI encoded transaction data as a string - -___ - -### currentContextAddress - -#### ▪ **currentContextAddress**: *object* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:3920](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L3920)* - -#### callAsync - -▸ **callAsync**(`callData`: `Partial`, `defaultBlock?`: [BlockParam](#blockparam)): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:3926](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L3926)* - -Sends a read-only call to the contract method. Returns the result that would happen if one were to send an -Ethereum transaction to this method, given the current state of the blockchain. Calls do not cost gas -since they don't modify state. - -**Parameters:** - -Name | Type | Default | ------- | ------ | ------ | -`callData` | `Partial` | {} | -`defaultBlock?` | [BlockParam](#blockparam) | - | - -**Returns:** *`Promise`* - -#### getABIDecodedReturnData - -▸ **getABIDecodedReturnData**(`returnData`: string): *string* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:3990](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L3990)* - -Decode the ABI-encoded return data from a transaction - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`returnData` | string | the data returned after transaction execution | - -**Returns:** *string* - -An array representing the output results in order. Keynames of nested structs are preserved. - -#### getABIDecodedTransactionData - -▸ **getABIDecodedTransactionData**(`callData`: string): *void* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:3978](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L3978)* - -Decode the ABI-encoded transaction data into its input arguments - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`callData` | string | The ABI-encoded transaction data | - -**Returns:** *void* - -An array representing the input arguments in order. Keynames of nested structs are preserved. - -#### getABIEncodedTransactionData - -▸ **getABIEncodedTransactionData**(): *string* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:3968](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L3968)* - -Returns the ABI encoded transaction data needed to send an Ethereum transaction calling this method. Before -sending the Ethereum tx, this encoded tx data can first be sent to a separate signing service or can be used -to create a 0x transaction (see protocol spec for more details). - -**Returns:** *string* - -The ABI encoded transaction data as a string - -___ - -### executeTransaction - -#### ▪ **executeTransaction**: *object* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:4001](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L4001)* - -Executes an Exchange method call in the context of signer. - -#### awaitTransactionSuccessAsync - -▸ **awaitTransactionSuccessAsync**(`transaction`: object, `signature`: string, `txData?`: `Partial`, `pollingIntervalMs?`: undefined | number, `timeoutMs?`: undefined | number): *`PromiseWithTransactionHash`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:4051](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L4051)* - -Sends an Ethereum transaction and waits until the transaction has been successfully mined without reverting. -If the transaction was mined, but reverted, an error is thrown. - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`transaction` | object | 0x transaction structure. | -`signature` | string | Proof that transaction has been signed by signer. | -`txData?` | `Partial` | Additional data for transaction | -`pollingIntervalMs?` | undefined \| number | Interval at which to poll for success | -`timeoutMs?` | undefined \| number | - | - -**Returns:** *`PromiseWithTransactionHash`* - -A promise that resolves when the transaction is successful - -#### callAsync - -▸ **callAsync**(`transaction`: object, `signature`: string, `callData`: `Partial`, `defaultBlock?`: [BlockParam](#blockparam)): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:4141](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L4141)* - -Sends a read-only call to the contract method. Returns the result that would happen if one were to send an -Ethereum transaction to this method, given the current state of the blockchain. Calls do not cost gas -since they don't modify state. - -**Parameters:** - -Name | Type | Default | Description | ------- | ------ | ------ | ------ | -`transaction` | object | - | 0x transaction structure. | -`signature` | string | - | Proof that transaction has been signed by signer. | -`callData` | `Partial` | {} | - | -`defaultBlock?` | [BlockParam](#blockparam) | - | - | - -**Returns:** *`Promise`* - -ABI encoded return data of the underlying Exchange function call. - -#### estimateGasAsync - -▸ **estimateGasAsync**(`transaction`: object, `signature`: string, `txData?`: `Partial` | undefined): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:4086](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L4086)* - -Estimates the gas cost of sending an Ethereum transaction calling this method with these arguments. - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`transaction` | object | 0x transaction structure. | -`signature` | string | Proof that transaction has been signed by signer. | -`txData?` | `Partial` \| undefined | Additional data for transaction | - -**Returns:** *`Promise`* - -The hash of the transaction - -#### getABIDecodedReturnData - -▸ **getABIDecodedReturnData**(`returnData`: string): *string* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:4253](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L4253)* - -Decode the ABI-encoded return data from a transaction - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`returnData` | string | the data returned after transaction execution | - -**Returns:** *string* - -An array representing the output results in order. Keynames of nested structs are preserved. - -#### getABIDecodedTransactionData - -▸ **getABIDecodedTransactionData**(`callData`: string): *object* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:4225](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L4225)* - -Decode the ABI-encoded transaction data into its input arguments - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`callData` | string | The ABI-encoded transaction data | - -**Returns:** *object* - -An array representing the input arguments in order. Keynames of nested structs are preserved. - -#### getABIEncodedTransactionData - -▸ **getABIEncodedTransactionData**(`transaction`: object, `signature`: string): *string* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:4202](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L4202)* - -Returns the ABI encoded transaction data needed to send an Ethereum transaction calling this method. Before -sending the Ethereum tx, this encoded tx data can first be sent to a separate signing service or can be used -to create a 0x transaction (see protocol spec for more details). - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`transaction` | object | 0x transaction structure. | -`signature` | string | Proof that transaction has been signed by signer. | - -**Returns:** *string* - -The ABI encoded transaction data as a string - -#### sendTransactionAsync - -▸ **sendTransactionAsync**(`transaction`: object, `signature`: string, `txData?`: `Partial` | undefined): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:4010](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L4010)* - -Sends an Ethereum transaction executing this method with the supplied parameters. This is a read/write -Ethereum operation and will cost gas. - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`transaction` | object | 0x transaction structure. | -`signature` | string | Proof that transaction has been signed by signer. | -`txData?` | `Partial` \| undefined | Additional data for transaction | - -**Returns:** *`Promise`* - -The hash of the transaction - -#### validateAndSendTransactionAsync - -▸ **validateAndSendTransactionAsync**(`transaction`: object, `signature`: string, `txData?`: `Partial` | undefined): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:4118](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L4118)* - -**Parameters:** - -Name | Type | ------- | ------ | -`transaction` | object | -`signature` | string | -`txData?` | `Partial` \| undefined | - -**Returns:** *`Promise`* - -___ - -### fillOrKillOrder - -#### ▪ **fillOrKillOrder**: *object* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:4266](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L4266)* - -Fills the input order. Reverts if exact takerAssetFillAmount not filled. - -#### awaitTransactionSuccessAsync - -▸ **awaitTransactionSuccessAsync**(`order`: object, `takerAssetFillAmount`: `BigNumber`, `signature`: string, `txData?`: `Partial`, `pollingIntervalMs?`: undefined | number, `timeoutMs?`: undefined | number): *`PromiseWithTransactionHash`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:4329](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L4329)* - -Sends an Ethereum transaction and waits until the transaction has been successfully mined without reverting. -If the transaction was mined, but reverted, an error is thrown. - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`order` | object | Order struct containing order specifications. | -`takerAssetFillAmount` | `BigNumber` | Desired amount of takerAsset to sell. | -`signature` | string | Proof that order has been created by maker. | -`txData?` | `Partial` | Additional data for transaction | -`pollingIntervalMs?` | undefined \| number | Interval at which to poll for success | -`timeoutMs?` | undefined \| number | - | - -**Returns:** *`PromiseWithTransactionHash`* - -A promise that resolves when the transaction is successful - -#### callAsync - -▸ **callAsync**(`order`: object, `takerAssetFillAmount`: `BigNumber`, `signature`: string, `callData`: `Partial`, `defaultBlock?`: [BlockParam](#blockparam)): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:4462](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L4462)* - -Sends a read-only call to the contract method. Returns the result that would happen if one were to send an -Ethereum transaction to this method, given the current state of the blockchain. Calls do not cost gas -since they don't modify state. - -**Parameters:** - -Name | Type | Default | Description | ------- | ------ | ------ | ------ | -`order` | object | - | Order struct containing order specifications. | -`takerAssetFillAmount` | `BigNumber` | - | Desired amount of takerAsset to sell. | -`signature` | string | - | Proof that order has been created by maker. | -`callData` | `Partial` | {} | - | -`defaultBlock?` | [BlockParam](#blockparam) | - | - | - -**Returns:** *`Promise`* - -#### estimateGasAsync - -▸ **estimateGasAsync**(`order`: object, `takerAssetFillAmount`: `BigNumber`, `signature`: string, `txData?`: `Partial` | undefined): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:4381](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L4381)* - -Estimates the gas cost of sending an Ethereum transaction calling this method with these arguments. - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`order` | object | Order struct containing order specifications. | -`takerAssetFillAmount` | `BigNumber` | Desired amount of takerAsset to sell. | -`signature` | string | Proof that order has been created by maker. | -`txData?` | `Partial` \| undefined | Additional data for transaction | - -**Returns:** *`Promise`* - -The hash of the transaction - -#### getABIDecodedReturnData - -▸ **getABIDecodedReturnData**(`returnData`: string): *object* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:4627](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L4627)* - -Decode the ABI-encoded return data from a transaction - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`returnData` | string | the data returned after transaction execution | - -**Returns:** *object* - -An array representing the output results in order. Keynames of nested structs are preserved. - -#### getABIDecodedTransactionData - -▸ **getABIDecodedTransactionData**(`callData`: string): *object* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:4581](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L4581)* - -Decode the ABI-encoded transaction data into its input arguments - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`callData` | string | The ABI-encoded transaction data | - -**Returns:** *object* - -An array representing the input arguments in order. Keynames of nested structs are preserved. - -#### getABIEncodedTransactionData - -▸ **getABIEncodedTransactionData**(`order`: object, `takerAssetFillAmount`: `BigNumber`, `signature`: string): *string* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:4547](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L4547)* - -Returns the ABI encoded transaction data needed to send an Ethereum transaction calling this method. Before -sending the Ethereum tx, this encoded tx data can first be sent to a separate signing service or can be used -to create a 0x transaction (see protocol spec for more details). - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`order` | object | Order struct containing order specifications. | -`takerAssetFillAmount` | `BigNumber` | Desired amount of takerAsset to sell. | -`signature` | string | Proof that order has been created by maker. | - -**Returns:** *string* - -The ABI encoded transaction data as a string - -#### sendTransactionAsync - -▸ **sendTransactionAsync**(`order`: object, `takerAssetFillAmount`: `BigNumber`, `signature`: string, `txData?`: `Partial` | undefined): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:4276](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L4276)* - -Sends an Ethereum transaction executing this method with the supplied parameters. This is a read/write -Ethereum operation and will cost gas. - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`order` | object | Order struct containing order specifications. | -`takerAssetFillAmount` | `BigNumber` | Desired amount of takerAsset to sell. | -`signature` | string | Proof that order has been created by maker. | -`txData?` | `Partial` \| undefined | Additional data for transaction | - -**Returns:** *`Promise`* - -The hash of the transaction - -#### validateAndSendTransactionAsync - -▸ **validateAndSendTransactionAsync**(`order`: object, `takerAssetFillAmount`: `BigNumber`, `signature`: string, `txData?`: `Partial` | undefined): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:4424](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L4424)* - -**Parameters:** - -Name | Type | ------- | ------ | -`order` | object | -`takerAssetFillAmount` | `BigNumber` | -`signature` | string | -`txData?` | `Partial` \| undefined | - -**Returns:** *`Promise`* - -___ - -### fillOrder - -#### ▪ **fillOrder**: *object* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:4654](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L4654)* - -Fills the input order. - -#### awaitTransactionSuccessAsync - -▸ **awaitTransactionSuccessAsync**(`order`: object, `takerAssetFillAmount`: `BigNumber`, `signature`: string, `txData?`: `Partial`, `pollingIntervalMs?`: undefined | number, `timeoutMs?`: undefined | number): *`PromiseWithTransactionHash`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:4717](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L4717)* - -Sends an Ethereum transaction and waits until the transaction has been successfully mined without reverting. -If the transaction was mined, but reverted, an error is thrown. - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`order` | object | Order struct containing order specifications. | -`takerAssetFillAmount` | `BigNumber` | Desired amount of takerAsset to sell. | -`signature` | string | Proof that order has been created by maker. | -`txData?` | `Partial` | Additional data for transaction | -`pollingIntervalMs?` | undefined \| number | Interval at which to poll for success | -`timeoutMs?` | undefined \| number | - | - -**Returns:** *`PromiseWithTransactionHash`* - -A promise that resolves when the transaction is successful - -#### callAsync - -▸ **callAsync**(`order`: object, `takerAssetFillAmount`: `BigNumber`, `signature`: string, `callData`: `Partial`, `defaultBlock?`: [BlockParam](#blockparam)): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:4846](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L4846)* - -Sends a read-only call to the contract method. Returns the result that would happen if one were to send an -Ethereum transaction to this method, given the current state of the blockchain. Calls do not cost gas -since they don't modify state. - -**Parameters:** - -Name | Type | Default | Description | ------- | ------ | ------ | ------ | -`order` | object | - | Order struct containing order specifications. | -`takerAssetFillAmount` | `BigNumber` | - | Desired amount of takerAsset to sell. | -`signature` | string | - | Proof that order has been created by maker. | -`callData` | `Partial` | {} | - | -`defaultBlock?` | [BlockParam](#blockparam) | - | - | - -**Returns:** *`Promise`* - -Amounts filled and fees paid by maker and taker. - -#### estimateGasAsync - -▸ **estimateGasAsync**(`order`: object, `takerAssetFillAmount`: `BigNumber`, `signature`: string, `txData?`: `Partial` | undefined): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:4764](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L4764)* - -Estimates the gas cost of sending an Ethereum transaction calling this method with these arguments. - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`order` | object | Order struct containing order specifications. | -`takerAssetFillAmount` | `BigNumber` | Desired amount of takerAsset to sell. | -`signature` | string | Proof that order has been created by maker. | -`txData?` | `Partial` \| undefined | Additional data for transaction | - -**Returns:** *`Promise`* - -The hash of the transaction - -#### getABIDecodedReturnData - -▸ **getABIDecodedReturnData**(`returnData`: string): *object* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:5011](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L5011)* - -Decode the ABI-encoded return data from a transaction - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`returnData` | string | the data returned after transaction execution | - -**Returns:** *object* - -An array representing the output results in order. Keynames of nested structs are preserved. - -#### getABIDecodedTransactionData - -▸ **getABIDecodedTransactionData**(`callData`: string): *object* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:4965](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L4965)* - -Decode the ABI-encoded transaction data into its input arguments - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`callData` | string | The ABI-encoded transaction data | - -**Returns:** *object* - -An array representing the input arguments in order. Keynames of nested structs are preserved. - -#### getABIEncodedTransactionData - -▸ **getABIEncodedTransactionData**(`order`: object, `takerAssetFillAmount`: `BigNumber`, `signature`: string): *string* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:4931](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L4931)* - -Returns the ABI encoded transaction data needed to send an Ethereum transaction calling this method. Before -sending the Ethereum tx, this encoded tx data can first be sent to a separate signing service or can be used -to create a 0x transaction (see protocol spec for more details). - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`order` | object | Order struct containing order specifications. | -`takerAssetFillAmount` | `BigNumber` | Desired amount of takerAsset to sell. | -`signature` | string | Proof that order has been created by maker. | - -**Returns:** *string* - -The ABI encoded transaction data as a string - -#### sendTransactionAsync - -▸ **sendTransactionAsync**(`order`: object, `takerAssetFillAmount`: `BigNumber`, `signature`: string, `txData?`: `Partial` | undefined): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:4664](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L4664)* - -Sends an Ethereum transaction executing this method with the supplied parameters. This is a read/write -Ethereum operation and will cost gas. - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`order` | object | Order struct containing order specifications. | -`takerAssetFillAmount` | `BigNumber` | Desired amount of takerAsset to sell. | -`signature` | string | Proof that order has been created by maker. | -`txData?` | `Partial` \| undefined | Additional data for transaction | - -**Returns:** *`Promise`* - -The hash of the transaction - -#### validateAndSendTransactionAsync - -▸ **validateAndSendTransactionAsync**(`order`: object, `takerAssetFillAmount`: `BigNumber`, `signature`: string, `txData?`: `Partial` | undefined): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:4807](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L4807)* - -**Parameters:** - -Name | Type | ------- | ------ | -`order` | object | -`takerAssetFillAmount` | `BigNumber` | -`signature` | string | -`txData?` | `Partial` \| undefined | - -**Returns:** *`Promise`* - -___ - -### filled - -#### ▪ **filled**: *object* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:5035](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L5035)* - -#### callAsync - -▸ **callAsync**(`index_0`: string, `callData`: `Partial`, `defaultBlock?`: [BlockParam](#blockparam)): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:5041](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L5041)* - -Sends a read-only call to the contract method. Returns the result that would happen if one were to send an -Ethereum transaction to this method, given the current state of the blockchain. Calls do not cost gas -since they don't modify state. - -**Parameters:** - -Name | Type | Default | ------- | ------ | ------ | -`index_0` | string | - | -`callData` | `Partial` | {} | -`defaultBlock?` | [BlockParam](#blockparam) | - | - -**Returns:** *`Promise`* - -#### getABIDecodedReturnData - -▸ **getABIDecodedReturnData**(`returnData`: string): *`BigNumber`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:5111](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L5111)* - -Decode the ABI-encoded return data from a transaction - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`returnData` | string | the data returned after transaction execution | - -**Returns:** *`BigNumber`* - -An array representing the output results in order. Keynames of nested structs are preserved. - -#### getABIDecodedTransactionData - -▸ **getABIDecodedTransactionData**(`callData`: string): *string* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:5099](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L5099)* - -Decode the ABI-encoded transaction data into its input arguments - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`callData` | string | The ABI-encoded transaction data | - -**Returns:** *string* - -An array representing the input arguments in order. Keynames of nested structs are preserved. - -#### getABIEncodedTransactionData - -▸ **getABIEncodedTransactionData**(`index_0`: string): *string* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:5088](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L5088)* - -Returns the ABI encoded transaction data needed to send an Ethereum transaction calling this method. Before -sending the Ethereum tx, this encoded tx data can first be sent to a separate signing service or can be used -to create a 0x transaction (see protocol spec for more details). - -**Parameters:** - -Name | Type | ------- | ------ | -`index_0` | string | - -**Returns:** *string* - -The ABI encoded transaction data as a string - -___ - -### getAssetProxy - -#### ▪ **getAssetProxy**: *object* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:5122](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L5122)* - -Gets an asset proxy. - -#### callAsync - -▸ **callAsync**(`assetProxyId`: string, `callData`: `Partial`, `defaultBlock?`: [BlockParam](#blockparam)): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:5130](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L5130)* - -Sends a read-only call to the contract method. Returns the result that would happen if one were to send an -Ethereum transaction to this method, given the current state of the blockchain. Calls do not cost gas -since they don't modify state. - -**Parameters:** - -Name | Type | Default | Description | ------- | ------ | ------ | ------ | -`assetProxyId` | string | - | Id of the asset proxy. | -`callData` | `Partial` | {} | - | -`defaultBlock?` | [BlockParam](#blockparam) | - | - | - -**Returns:** *`Promise`* - -The asset proxy registered to assetProxyId. Returns 0x0 if no proxy is registered. - -#### getABIDecodedReturnData - -▸ **getABIDecodedReturnData**(`returnData`: string): *string* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:5201](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L5201)* - -Decode the ABI-encoded return data from a transaction - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`returnData` | string | the data returned after transaction execution | - -**Returns:** *string* - -An array representing the output results in order. Keynames of nested structs are preserved. - -#### getABIDecodedTransactionData - -▸ **getABIDecodedTransactionData**(`callData`: string): *string* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:5189](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L5189)* - -Decode the ABI-encoded transaction data into its input arguments - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`callData` | string | The ABI-encoded transaction data | - -**Returns:** *string* - -An array representing the input arguments in order. Keynames of nested structs are preserved. - -#### getABIEncodedTransactionData - -▸ **getABIEncodedTransactionData**(`assetProxyId`: string): *string* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:5178](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L5178)* - -Returns the ABI encoded transaction data needed to send an Ethereum transaction calling this method. Before -sending the Ethereum tx, this encoded tx data can first be sent to a separate signing service or can be used -to create a 0x transaction (see protocol spec for more details). - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`assetProxyId` | string | Id of the asset proxy. | - -**Returns:** *string* - -The ABI encoded transaction data as a string - -___ - -### getOrderInfo - -#### ▪ **getOrderInfo**: *object* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:5212](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L5212)* - -Gets information about an order: status, hash, and amount filled. - -#### callAsync - -▸ **callAsync**(`order`: object, `callData`: `Partial`, `defaultBlock?`: [BlockParam](#blockparam)): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:5220](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L5220)* - -Sends a read-only call to the contract method. Returns the result that would happen if one were to send an -Ethereum transaction to this method, given the current state of the blockchain. Calls do not cost gas -since they don't modify state. - -**Parameters:** - -Name | Type | Default | Description | ------- | ------ | ------ | ------ | -`order` | object | - | Order to gather information on. | -`callData` | `Partial` | {} | - | -`defaultBlock?` | [BlockParam](#blockparam) | - | - | - -**Returns:** *`Promise`* - -OrderInfo Information about the order and its state. See LibOrder.OrderInfo for a complete description. - -#### getABIDecodedReturnData - -▸ **getABIDecodedReturnData**(`returnData`: string): *object* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:5365](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L5365)* - -Decode the ABI-encoded return data from a transaction - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`returnData` | string | the data returned after transaction execution | - -**Returns:** *object* - -An array representing the output results in order. Keynames of nested structs are preserved. - -#### getABIDecodedTransactionData - -▸ **getABIDecodedTransactionData**(`callData`: string): *object* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:5319](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L5319)* - -Decode the ABI-encoded transaction data into its input arguments - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`callData` | string | The ABI-encoded transaction data | - -**Returns:** *object* - -An array representing the input arguments in order. Keynames of nested structs are preserved. - -#### getABIEncodedTransactionData - -▸ **getABIEncodedTransactionData**(`order`: object): *string* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:5291](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L5291)* - -Returns the ABI encoded transaction data needed to send an Ethereum transaction calling this method. Before -sending the Ethereum tx, this encoded tx data can first be sent to a separate signing service or can be used -to create a 0x transaction (see protocol spec for more details). - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`order` | object | Order to gather information on. | - -**Returns:** *string* - -The ABI encoded transaction data as a string - -___ - -### isValidHashSignature - -#### ▪ **isValidHashSignature**: *object* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:5384](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L5384)* - -Verifies that a hash has been signed by the given signer. - -#### callAsync - -▸ **callAsync**(`hash`: string, `signerAddress`: string, `signature`: string, `callData`: `Partial`, `defaultBlock?`: [BlockParam](#blockparam)): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:5394](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L5394)* - -Sends a read-only call to the contract method. Returns the result that would happen if one were to send an -Ethereum transaction to this method, given the current state of the blockchain. Calls do not cost gas -since they don't modify state. - -**Parameters:** - -Name | Type | Default | Description | ------- | ------ | ------ | ------ | -`hash` | string | - | Any 32-byte hash. | -`signerAddress` | string | - | Address that should have signed the given hash. | -`signature` | string | - | Proof that the hash has been signed by signer. | -`callData` | `Partial` | {} | - | -`defaultBlock?` | [BlockParam](#blockparam) | - | - | - -**Returns:** *`Promise`* - -isValid `true` if the signature is valid for the given hash and signer. - -#### getABIDecodedReturnData - -▸ **getABIDecodedReturnData**(`returnData`: string): *boolean* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:5480](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L5480)* - -Decode the ABI-encoded return data from a transaction - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`returnData` | string | the data returned after transaction execution | - -**Returns:** *boolean* - -An array representing the output results in order. Keynames of nested structs are preserved. - -#### getABIDecodedTransactionData - -▸ **getABIDecodedTransactionData**(`callData`: string): *string* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:5468](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L5468)* - -Decode the ABI-encoded transaction data into its input arguments - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`callData` | string | The ABI-encoded transaction data | - -**Returns:** *string* - -An array representing the input arguments in order. Keynames of nested structs are preserved. - -#### getABIEncodedTransactionData - -▸ **getABIEncodedTransactionData**(`hash`: string, `signerAddress`: string, `signature`: string): *string* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:5452](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L5452)* - -Returns the ABI encoded transaction data needed to send an Ethereum transaction calling this method. Before -sending the Ethereum tx, this encoded tx data can first be sent to a separate signing service or can be used -to create a 0x transaction (see protocol spec for more details). - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`hash` | string | Any 32-byte hash. | -`signerAddress` | string | Address that should have signed the given hash. | -`signature` | string | Proof that the hash has been signed by signer. | - -**Returns:** *string* - -The ABI encoded transaction data as a string - -___ - -### isValidOrderSignature - -#### ▪ **isValidOrderSignature**: *object* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:5491](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L5491)* - -Verifies that a signature for an order is valid. - -#### callAsync - -▸ **callAsync**(`order`: object, `signature`: string, `callData`: `Partial`, `defaultBlock?`: [BlockParam](#blockparam)): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:5500](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L5500)* - -Sends a read-only call to the contract method. Returns the result that would happen if one were to send an -Ethereum transaction to this method, given the current state of the blockchain. Calls do not cost gas -since they don't modify state. - -**Parameters:** - -Name | Type | Default | Description | ------- | ------ | ------ | ------ | -`order` | object | - | The order. | -`signature` | string | - | Proof that the order has been signed by signer. | -`callData` | `Partial` | {} | - | -`defaultBlock?` | [BlockParam](#blockparam) | - | - | - -**Returns:** *`Promise`* - -isValid `true` if the signature is valid for the given order and signer. - -#### getABIDecodedReturnData - -▸ **getABIDecodedReturnData**(`returnData`: string): *boolean* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:5648](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L5648)* - -Decode the ABI-encoded return data from a transaction - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`returnData` | string | the data returned after transaction execution | - -**Returns:** *boolean* - -An array representing the output results in order. Keynames of nested structs are preserved. - -#### getABIDecodedTransactionData - -▸ **getABIDecodedTransactionData**(`callData`: string): *object* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:5602](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L5602)* - -Decode the ABI-encoded transaction data into its input arguments - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`callData` | string | The ABI-encoded transaction data | - -**Returns:** *object* - -An array representing the input arguments in order. Keynames of nested structs are preserved. - -#### getABIEncodedTransactionData - -▸ **getABIEncodedTransactionData**(`order`: object, `signature`: string): *string* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:5570](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L5570)* - -Returns the ABI encoded transaction data needed to send an Ethereum transaction calling this method. Before -sending the Ethereum tx, this encoded tx data can first be sent to a separate signing service or can be used -to create a 0x transaction (see protocol spec for more details). - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`order` | object | The order. | -`signature` | string | Proof that the order has been signed by signer. | - -**Returns:** *string* - -The ABI encoded transaction data as a string - -___ - -### isValidTransactionSignature - -#### ▪ **isValidTransactionSignature**: *object* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:5661](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L5661)* - -Verifies that a signature for a transaction is valid. - -#### callAsync - -▸ **callAsync**(`transaction`: object, `signature`: string, `callData`: `Partial`, `defaultBlock?`: [BlockParam](#blockparam)): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:5670](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L5670)* - -Sends a read-only call to the contract method. Returns the result that would happen if one were to send an -Ethereum transaction to this method, given the current state of the blockchain. Calls do not cost gas -since they don't modify state. - -**Parameters:** - -Name | Type | Default | Description | ------- | ------ | ------ | ------ | -`transaction` | object | - | The transaction. | -`signature` | string | - | Proof that the order has been signed by signer. | -`callData` | `Partial` | {} | - | -`defaultBlock?` | [BlockParam](#blockparam) | - | - | - -**Returns:** *`Promise`* - -isValid `true` if the signature is valid for the given transaction and signer. - -#### getABIDecodedReturnData - -▸ **getABIDecodedReturnData**(`returnData`: string): *boolean* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:5782](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L5782)* - -Decode the ABI-encoded return data from a transaction - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`returnData` | string | the data returned after transaction execution | - -**Returns:** *boolean* - -An array representing the output results in order. Keynames of nested structs are preserved. - -#### getABIDecodedTransactionData - -▸ **getABIDecodedTransactionData**(`callData`: string): *object* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:5754](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L5754)* - -Decode the ABI-encoded transaction data into its input arguments - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`callData` | string | The ABI-encoded transaction data | - -**Returns:** *object* - -An array representing the input arguments in order. Keynames of nested structs are preserved. - -#### getABIEncodedTransactionData - -▸ **getABIEncodedTransactionData**(`transaction`: object, `signature`: string): *string* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:5731](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L5731)* - -Returns the ABI encoded transaction data needed to send an Ethereum transaction calling this method. Before -sending the Ethereum tx, this encoded tx data can first be sent to a separate signing service or can be used -to create a 0x transaction (see protocol spec for more details). - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`transaction` | object | The transaction. | -`signature` | string | Proof that the order has been signed by signer. | - -**Returns:** *string* - -The ABI encoded transaction data as a string - -___ - -### marketBuyOrdersFillOrKill - -#### ▪ **marketBuyOrdersFillOrKill**: *object* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:5796](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L5796)* - -Calls marketBuyOrdersNoThrow then reverts if < makerAssetFillAmount has been bought. -NOTE: This function does not enforce that the makerAsset is the same for each order. - -#### awaitTransactionSuccessAsync - -▸ **awaitTransactionSuccessAsync**(`orders`: `Array`, `makerAssetFillAmount`: `BigNumber`, `signatures`: string[], `txData?`: `Partial`, `pollingIntervalMs?`: undefined | number, `timeoutMs?`: undefined | number): *`PromiseWithTransactionHash`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:5860](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L5860)* - -Sends an Ethereum transaction and waits until the transaction has been successfully mined without reverting. -If the transaction was mined, but reverted, an error is thrown. - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`orders` | `Array` | Array of order specifications. | -`makerAssetFillAmount` | `BigNumber` | Minimum amount of makerAsset to buy. | -`signatures` | string[] | Proofs that orders have been signed by makers. | -`txData?` | `Partial` | Additional data for transaction | -`pollingIntervalMs?` | undefined \| number | Interval at which to poll for success | -`timeoutMs?` | undefined \| number | - | - -**Returns:** *`PromiseWithTransactionHash`* - -A promise that resolves when the transaction is successful - -#### callAsync - -▸ **callAsync**(`orders`: `Array`, `makerAssetFillAmount`: `BigNumber`, `signatures`: string[], `callData`: `Partial`, `defaultBlock?`: [BlockParam](#blockparam)): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:5996](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L5996)* - -Sends a read-only call to the contract method. Returns the result that would happen if one were to send an -Ethereum transaction to this method, given the current state of the blockchain. Calls do not cost gas -since they don't modify state. - -**Parameters:** - -Name | Type | Default | Description | ------- | ------ | ------ | ------ | -`orders` | `Array` | - | Array of order specifications. | -`makerAssetFillAmount` | `BigNumber` | - | Minimum amount of makerAsset to buy. | -`signatures` | string[] | - | Proofs that orders have been signed by makers. | -`callData` | `Partial` | {} | - | -`defaultBlock?` | [BlockParam](#blockparam) | - | - | - -**Returns:** *`Promise`* - -Amounts filled and fees paid by makers and taker. - -#### estimateGasAsync - -▸ **estimateGasAsync**(`orders`: `Array`, `makerAssetFillAmount`: `BigNumber`, `signatures`: string[], `txData?`: `Partial` | undefined): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:5913](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L5913)* - -Estimates the gas cost of sending an Ethereum transaction calling this method with these arguments. - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`orders` | `Array` | Array of order specifications. | -`makerAssetFillAmount` | `BigNumber` | Minimum amount of makerAsset to buy. | -`signatures` | string[] | Proofs that orders have been signed by makers. | -`txData?` | `Partial` \| undefined | Additional data for transaction | - -**Returns:** *`Promise`* - -The hash of the transaction - -#### getABIDecodedReturnData - -▸ **getABIDecodedReturnData**(`returnData`: string): *object* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:6165](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L6165)* - -Decode the ABI-encoded return data from a transaction - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`returnData` | string | the data returned after transaction execution | - -**Returns:** *object* - -An array representing the output results in order. Keynames of nested structs are preserved. - -#### getABIDecodedTransactionData - -▸ **getABIDecodedTransactionData**(`callData`: string): *`Array`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:6117](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L6117)* - -Decode the ABI-encoded transaction data into its input arguments - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`callData` | string | The ABI-encoded transaction data | - -**Returns:** *`Array`* - -An array representing the input arguments in order. Keynames of nested structs are preserved. - -#### getABIEncodedTransactionData - -▸ **getABIEncodedTransactionData**(`orders`: `Array`, `makerAssetFillAmount`: `BigNumber`, `signatures`: string[]): *string* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:6082](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L6082)* - -Returns the ABI encoded transaction data needed to send an Ethereum transaction calling this method. Before -sending the Ethereum tx, this encoded tx data can first be sent to a separate signing service or can be used -to create a 0x transaction (see protocol spec for more details). - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`orders` | `Array` | Array of order specifications. | -`makerAssetFillAmount` | `BigNumber` | Minimum amount of makerAsset to buy. | -`signatures` | string[] | Proofs that orders have been signed by makers. | - -**Returns:** *string* - -The ABI encoded transaction data as a string - -#### sendTransactionAsync - -▸ **sendTransactionAsync**(`orders`: `Array`, `makerAssetFillAmount`: `BigNumber`, `signatures`: string[], `txData?`: `Partial` | undefined): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:5806](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L5806)* - -Sends an Ethereum transaction executing this method with the supplied parameters. This is a read/write -Ethereum operation and will cost gas. - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`orders` | `Array` | Array of order specifications. | -`makerAssetFillAmount` | `BigNumber` | Minimum amount of makerAsset to buy. | -`signatures` | string[] | Proofs that orders have been signed by makers. | -`txData?` | `Partial` \| undefined | Additional data for transaction | - -**Returns:** *`Promise`* - -The hash of the transaction - -#### validateAndSendTransactionAsync - -▸ **validateAndSendTransactionAsync**(`orders`: `Array`, `makerAssetFillAmount`: `BigNumber`, `signatures`: string[], `txData?`: `Partial` | undefined): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:5957](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L5957)* - -**Parameters:** - -Name | Type | ------- | ------ | -`orders` | `Array` | -`makerAssetFillAmount` | `BigNumber` | -`signatures` | string[] | -`txData?` | `Partial` \| undefined | - -**Returns:** *`Promise`* - -___ - -### marketBuyOrdersNoThrow - -#### ▪ **marketBuyOrdersNoThrow**: *object* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:6194](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L6194)* - -Executes multiple calls of fillOrder until total amount of makerAsset is bought by taker. -If any fill reverts, the error is caught and ignored. -NOTE: This function does not enforce that the makerAsset is the same for each order. - -#### awaitTransactionSuccessAsync - -▸ **awaitTransactionSuccessAsync**(`orders`: `Array`, `makerAssetFillAmount`: `BigNumber`, `signatures`: string[], `txData?`: `Partial`, `pollingIntervalMs?`: undefined | number, `timeoutMs?`: undefined | number): *`PromiseWithTransactionHash`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:6258](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L6258)* - -Sends an Ethereum transaction and waits until the transaction has been successfully mined without reverting. -If the transaction was mined, but reverted, an error is thrown. - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`orders` | `Array` | Array of order specifications. | -`makerAssetFillAmount` | `BigNumber` | Desired amount of makerAsset to buy. | -`signatures` | string[] | Proofs that orders have been signed by makers. | -`txData?` | `Partial` | Additional data for transaction | -`pollingIntervalMs?` | undefined \| number | Interval at which to poll for success | -`timeoutMs?` | undefined \| number | - | - -**Returns:** *`PromiseWithTransactionHash`* - -A promise that resolves when the transaction is successful - -#### callAsync - -▸ **callAsync**(`orders`: `Array`, `makerAssetFillAmount`: `BigNumber`, `signatures`: string[], `callData`: `Partial`, `defaultBlock?`: [BlockParam](#blockparam)): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:6394](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L6394)* - -Sends a read-only call to the contract method. Returns the result that would happen if one were to send an -Ethereum transaction to this method, given the current state of the blockchain. Calls do not cost gas -since they don't modify state. - -**Parameters:** - -Name | Type | Default | Description | ------- | ------ | ------ | ------ | -`orders` | `Array` | - | Array of order specifications. | -`makerAssetFillAmount` | `BigNumber` | - | Desired amount of makerAsset to buy. | -`signatures` | string[] | - | Proofs that orders have been signed by makers. | -`callData` | `Partial` | {} | - | -`defaultBlock?` | [BlockParam](#blockparam) | - | - | - -**Returns:** *`Promise`* - -Amounts filled and fees paid by makers and taker. - -#### estimateGasAsync - -▸ **estimateGasAsync**(`orders`: `Array`, `makerAssetFillAmount`: `BigNumber`, `signatures`: string[], `txData?`: `Partial` | undefined): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:6311](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L6311)* - -Estimates the gas cost of sending an Ethereum transaction calling this method with these arguments. - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`orders` | `Array` | Array of order specifications. | -`makerAssetFillAmount` | `BigNumber` | Desired amount of makerAsset to buy. | -`signatures` | string[] | Proofs that orders have been signed by makers. | -`txData?` | `Partial` \| undefined | Additional data for transaction | - -**Returns:** *`Promise`* - -The hash of the transaction - -#### getABIDecodedReturnData - -▸ **getABIDecodedReturnData**(`returnData`: string): *object* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:6563](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L6563)* - -Decode the ABI-encoded return data from a transaction - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`returnData` | string | the data returned after transaction execution | - -**Returns:** *object* - -An array representing the output results in order. Keynames of nested structs are preserved. - -#### getABIDecodedTransactionData - -▸ **getABIDecodedTransactionData**(`callData`: string): *`Array`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:6515](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L6515)* - -Decode the ABI-encoded transaction data into its input arguments - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`callData` | string | The ABI-encoded transaction data | - -**Returns:** *`Array`* - -An array representing the input arguments in order. Keynames of nested structs are preserved. - -#### getABIEncodedTransactionData - -▸ **getABIEncodedTransactionData**(`orders`: `Array`, `makerAssetFillAmount`: `BigNumber`, `signatures`: string[]): *string* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:6480](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L6480)* - -Returns the ABI encoded transaction data needed to send an Ethereum transaction calling this method. Before -sending the Ethereum tx, this encoded tx data can first be sent to a separate signing service or can be used -to create a 0x transaction (see protocol spec for more details). - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`orders` | `Array` | Array of order specifications. | -`makerAssetFillAmount` | `BigNumber` | Desired amount of makerAsset to buy. | -`signatures` | string[] | Proofs that orders have been signed by makers. | - -**Returns:** *string* - -The ABI encoded transaction data as a string - -#### sendTransactionAsync - -▸ **sendTransactionAsync**(`orders`: `Array`, `makerAssetFillAmount`: `BigNumber`, `signatures`: string[], `txData?`: `Partial` | undefined): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:6204](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L6204)* - -Sends an Ethereum transaction executing this method with the supplied parameters. This is a read/write -Ethereum operation and will cost gas. - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`orders` | `Array` | Array of order specifications. | -`makerAssetFillAmount` | `BigNumber` | Desired amount of makerAsset to buy. | -`signatures` | string[] | Proofs that orders have been signed by makers. | -`txData?` | `Partial` \| undefined | Additional data for transaction | - -**Returns:** *`Promise`* - -The hash of the transaction - -#### validateAndSendTransactionAsync - -▸ **validateAndSendTransactionAsync**(`orders`: `Array`, `makerAssetFillAmount`: `BigNumber`, `signatures`: string[], `txData?`: `Partial` | undefined): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:6355](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L6355)* - -**Parameters:** - -Name | Type | ------- | ------ | -`orders` | `Array` | -`makerAssetFillAmount` | `BigNumber` | -`signatures` | string[] | -`txData?` | `Partial` \| undefined | - -**Returns:** *`Promise`* - -___ - -### marketSellOrdersFillOrKill - -#### ▪ **marketSellOrdersFillOrKill**: *object* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:6591](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L6591)* - -Calls marketSellOrdersNoThrow then reverts if < takerAssetFillAmount has been sold. -NOTE: This function does not enforce that the takerAsset is the same for each order. - -#### awaitTransactionSuccessAsync - -▸ **awaitTransactionSuccessAsync**(`orders`: `Array`, `takerAssetFillAmount`: `BigNumber`, `signatures`: string[], `txData?`: `Partial`, `pollingIntervalMs?`: undefined | number, `timeoutMs?`: undefined | number): *`PromiseWithTransactionHash`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:6655](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L6655)* - -Sends an Ethereum transaction and waits until the transaction has been successfully mined without reverting. -If the transaction was mined, but reverted, an error is thrown. - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`orders` | `Array` | Array of order specifications. | -`takerAssetFillAmount` | `BigNumber` | Minimum amount of takerAsset to sell. | -`signatures` | string[] | Proofs that orders have been signed by makers. | -`txData?` | `Partial` | Additional data for transaction | -`pollingIntervalMs?` | undefined \| number | Interval at which to poll for success | -`timeoutMs?` | undefined \| number | - | - -**Returns:** *`PromiseWithTransactionHash`* - -A promise that resolves when the transaction is successful - -#### callAsync - -▸ **callAsync**(`orders`: `Array`, `takerAssetFillAmount`: `BigNumber`, `signatures`: string[], `callData`: `Partial`, `defaultBlock?`: [BlockParam](#blockparam)): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:6791](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L6791)* - -Sends a read-only call to the contract method. Returns the result that would happen if one were to send an -Ethereum transaction to this method, given the current state of the blockchain. Calls do not cost gas -since they don't modify state. - -**Parameters:** - -Name | Type | Default | Description | ------- | ------ | ------ | ------ | -`orders` | `Array` | - | Array of order specifications. | -`takerAssetFillAmount` | `BigNumber` | - | Minimum amount of takerAsset to sell. | -`signatures` | string[] | - | Proofs that orders have been signed by makers. | -`callData` | `Partial` | {} | - | -`defaultBlock?` | [BlockParam](#blockparam) | - | - | - -**Returns:** *`Promise`* - -Amounts filled and fees paid by makers and taker. - -#### estimateGasAsync - -▸ **estimateGasAsync**(`orders`: `Array`, `takerAssetFillAmount`: `BigNumber`, `signatures`: string[], `txData?`: `Partial` | undefined): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:6708](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L6708)* - -Estimates the gas cost of sending an Ethereum transaction calling this method with these arguments. - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`orders` | `Array` | Array of order specifications. | -`takerAssetFillAmount` | `BigNumber` | Minimum amount of takerAsset to sell. | -`signatures` | string[] | Proofs that orders have been signed by makers. | -`txData?` | `Partial` \| undefined | Additional data for transaction | - -**Returns:** *`Promise`* - -The hash of the transaction - -#### getABIDecodedReturnData - -▸ **getABIDecodedReturnData**(`returnData`: string): *object* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:6960](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L6960)* - -Decode the ABI-encoded return data from a transaction - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`returnData` | string | the data returned after transaction execution | - -**Returns:** *object* - -An array representing the output results in order. Keynames of nested structs are preserved. - -#### getABIDecodedTransactionData - -▸ **getABIDecodedTransactionData**(`callData`: string): *`Array`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:6912](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L6912)* - -Decode the ABI-encoded transaction data into its input arguments - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`callData` | string | The ABI-encoded transaction data | - -**Returns:** *`Array`* - -An array representing the input arguments in order. Keynames of nested structs are preserved. - -#### getABIEncodedTransactionData - -▸ **getABIEncodedTransactionData**(`orders`: `Array`, `takerAssetFillAmount`: `BigNumber`, `signatures`: string[]): *string* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:6877](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L6877)* - -Returns the ABI encoded transaction data needed to send an Ethereum transaction calling this method. Before -sending the Ethereum tx, this encoded tx data can first be sent to a separate signing service or can be used -to create a 0x transaction (see protocol spec for more details). - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`orders` | `Array` | Array of order specifications. | -`takerAssetFillAmount` | `BigNumber` | Minimum amount of takerAsset to sell. | -`signatures` | string[] | Proofs that orders have been signed by makers. | - -**Returns:** *string* - -The ABI encoded transaction data as a string - -#### sendTransactionAsync - -▸ **sendTransactionAsync**(`orders`: `Array`, `takerAssetFillAmount`: `BigNumber`, `signatures`: string[], `txData?`: `Partial` | undefined): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:6601](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L6601)* - -Sends an Ethereum transaction executing this method with the supplied parameters. This is a read/write -Ethereum operation and will cost gas. - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`orders` | `Array` | Array of order specifications. | -`takerAssetFillAmount` | `BigNumber` | Minimum amount of takerAsset to sell. | -`signatures` | string[] | Proofs that orders have been signed by makers. | -`txData?` | `Partial` \| undefined | Additional data for transaction | - -**Returns:** *`Promise`* - -The hash of the transaction - -#### validateAndSendTransactionAsync - -▸ **validateAndSendTransactionAsync**(`orders`: `Array`, `takerAssetFillAmount`: `BigNumber`, `signatures`: string[], `txData?`: `Partial` | undefined): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:6752](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L6752)* - -**Parameters:** - -Name | Type | ------- | ------ | -`orders` | `Array` | -`takerAssetFillAmount` | `BigNumber` | -`signatures` | string[] | -`txData?` | `Partial` \| undefined | - -**Returns:** *`Promise`* - -___ - -### marketSellOrdersNoThrow - -#### ▪ **marketSellOrdersNoThrow**: *object* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:6989](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L6989)* - -Executes multiple calls of fillOrder until total amount of takerAsset is sold by taker. -If any fill reverts, the error is caught and ignored. -NOTE: This function does not enforce that the takerAsset is the same for each order. - -#### awaitTransactionSuccessAsync - -▸ **awaitTransactionSuccessAsync**(`orders`: `Array`, `takerAssetFillAmount`: `BigNumber`, `signatures`: string[], `txData?`: `Partial`, `pollingIntervalMs?`: undefined | number, `timeoutMs?`: undefined | number): *`PromiseWithTransactionHash`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:7053](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L7053)* - -Sends an Ethereum transaction and waits until the transaction has been successfully mined without reverting. -If the transaction was mined, but reverted, an error is thrown. - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`orders` | `Array` | Array of order specifications. | -`takerAssetFillAmount` | `BigNumber` | Desired amount of takerAsset to sell. | -`signatures` | string[] | Proofs that orders have been signed by makers. | -`txData?` | `Partial` | Additional data for transaction | -`pollingIntervalMs?` | undefined \| number | Interval at which to poll for success | -`timeoutMs?` | undefined \| number | - | - -**Returns:** *`PromiseWithTransactionHash`* - -A promise that resolves when the transaction is successful - -#### callAsync - -▸ **callAsync**(`orders`: `Array`, `takerAssetFillAmount`: `BigNumber`, `signatures`: string[], `callData`: `Partial`, `defaultBlock?`: [BlockParam](#blockparam)): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:7189](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L7189)* - -Sends a read-only call to the contract method. Returns the result that would happen if one were to send an -Ethereum transaction to this method, given the current state of the blockchain. Calls do not cost gas -since they don't modify state. - -**Parameters:** - -Name | Type | Default | Description | ------- | ------ | ------ | ------ | -`orders` | `Array` | - | Array of order specifications. | -`takerAssetFillAmount` | `BigNumber` | - | Desired amount of takerAsset to sell. | -`signatures` | string[] | - | Proofs that orders have been signed by makers. | -`callData` | `Partial` | {} | - | -`defaultBlock?` | [BlockParam](#blockparam) | - | - | - -**Returns:** *`Promise`* - -Amounts filled and fees paid by makers and taker. - -#### estimateGasAsync - -▸ **estimateGasAsync**(`orders`: `Array`, `takerAssetFillAmount`: `BigNumber`, `signatures`: string[], `txData?`: `Partial` | undefined): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:7106](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L7106)* - -Estimates the gas cost of sending an Ethereum transaction calling this method with these arguments. - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`orders` | `Array` | Array of order specifications. | -`takerAssetFillAmount` | `BigNumber` | Desired amount of takerAsset to sell. | -`signatures` | string[] | Proofs that orders have been signed by makers. | -`txData?` | `Partial` \| undefined | Additional data for transaction | - -**Returns:** *`Promise`* - -The hash of the transaction - -#### getABIDecodedReturnData - -▸ **getABIDecodedReturnData**(`returnData`: string): *object* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:7358](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L7358)* - -Decode the ABI-encoded return data from a transaction - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`returnData` | string | the data returned after transaction execution | - -**Returns:** *object* - -An array representing the output results in order. Keynames of nested structs are preserved. - -#### getABIDecodedTransactionData - -▸ **getABIDecodedTransactionData**(`callData`: string): *`Array`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:7310](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L7310)* - -Decode the ABI-encoded transaction data into its input arguments - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`callData` | string | The ABI-encoded transaction data | - -**Returns:** *`Array`* - -An array representing the input arguments in order. Keynames of nested structs are preserved. - -#### getABIEncodedTransactionData - -▸ **getABIEncodedTransactionData**(`orders`: `Array`, `takerAssetFillAmount`: `BigNumber`, `signatures`: string[]): *string* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:7275](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L7275)* - -Returns the ABI encoded transaction data needed to send an Ethereum transaction calling this method. Before -sending the Ethereum tx, this encoded tx data can first be sent to a separate signing service or can be used -to create a 0x transaction (see protocol spec for more details). - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`orders` | `Array` | Array of order specifications. | -`takerAssetFillAmount` | `BigNumber` | Desired amount of takerAsset to sell. | -`signatures` | string[] | Proofs that orders have been signed by makers. | - -**Returns:** *string* - -The ABI encoded transaction data as a string - -#### sendTransactionAsync - -▸ **sendTransactionAsync**(`orders`: `Array`, `takerAssetFillAmount`: `BigNumber`, `signatures`: string[], `txData?`: `Partial` | undefined): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:6999](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L6999)* - -Sends an Ethereum transaction executing this method with the supplied parameters. This is a read/write -Ethereum operation and will cost gas. - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`orders` | `Array` | Array of order specifications. | -`takerAssetFillAmount` | `BigNumber` | Desired amount of takerAsset to sell. | -`signatures` | string[] | Proofs that orders have been signed by makers. | -`txData?` | `Partial` \| undefined | Additional data for transaction | - -**Returns:** *`Promise`* - -The hash of the transaction - -#### validateAndSendTransactionAsync - -▸ **validateAndSendTransactionAsync**(`orders`: `Array`, `takerAssetFillAmount`: `BigNumber`, `signatures`: string[], `txData?`: `Partial` | undefined): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:7150](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L7150)* - -**Parameters:** - -Name | Type | ------- | ------ | -`orders` | `Array` | -`takerAssetFillAmount` | `BigNumber` | -`signatures` | string[] | -`txData?` | `Partial` \| undefined | - -**Returns:** *`Promise`* - -___ - -### matchOrders - -#### ▪ **matchOrders**: *object* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:7388](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L7388)* - -Match two complementary orders that have a profitable spread. -Each order is filled at their respective price point. However, the calculations are -carried out as though the orders are both being filled at the right order's price point. -The profit made by the left order goes to the taker (who matched the two orders). - -#### awaitTransactionSuccessAsync - -▸ **awaitTransactionSuccessAsync**(`leftOrder`: object, `rightOrder`: object, `leftSignature`: string, `rightSignature`: string, `txData?`: `Partial`, `pollingIntervalMs?`: undefined | number, `timeoutMs?`: undefined | number): *`PromiseWithTransactionHash`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:7469](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L7469)* - -Sends an Ethereum transaction and waits until the transaction has been successfully mined without reverting. -If the transaction was mined, but reverted, an error is thrown. - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`leftOrder` | object | First order to match. | -`rightOrder` | object | Second order to match. | -`leftSignature` | string | Proof that order was created by the left maker. | -`rightSignature` | string | Proof that order was created by the right maker. | -`txData?` | `Partial` | Additional data for transaction | -`pollingIntervalMs?` | undefined \| number | Interval at which to poll for success | -`timeoutMs?` | undefined \| number | - | - -**Returns:** *`PromiseWithTransactionHash`* - -A promise that resolves when the transaction is successful - -#### callAsync - -▸ **callAsync**(`leftOrder`: object, `rightOrder`: object, `leftSignature`: string, `rightSignature`: string, `callData`: `Partial`, `defaultBlock?`: [BlockParam](#blockparam)): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:7655](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L7655)* - -Sends a read-only call to the contract method. Returns the result that would happen if one were to send an -Ethereum transaction to this method, given the current state of the blockchain. Calls do not cost gas -since they don't modify state. - -**Parameters:** - -Name | Type | Default | Description | ------- | ------ | ------ | ------ | -`leftOrder` | object | - | First order to match. | -`rightOrder` | object | - | Second order to match. | -`leftSignature` | string | - | Proof that order was created by the left maker. | -`rightSignature` | string | - | Proof that order was created by the right maker. | -`callData` | `Partial` | {} | - | -`defaultBlock?` | [BlockParam](#blockparam) | - | - | - -**Returns:** *`Promise`* - -matchedFillResults Amounts filled and fees paid by maker and taker of matched orders. - -#### estimateGasAsync - -▸ **estimateGasAsync**(`leftOrder`: object, `rightOrder`: object, `leftSignature`: string, `rightSignature`: string, `txData?`: `Partial` | undefined): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:7539](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L7539)* - -Estimates the gas cost of sending an Ethereum transaction calling this method with these arguments. - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`leftOrder` | object | First order to match. | -`rightOrder` | object | Second order to match. | -`leftSignature` | string | Proof that order was created by the left maker. | -`rightSignature` | string | Proof that order was created by the right maker. | -`txData?` | `Partial` \| undefined | Additional data for transaction | - -**Returns:** *`Promise`* - -The hash of the transaction - -#### getABIDecodedReturnData - -▸ **getABIDecodedReturnData**(`returnData`: string): *object* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:7875](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L7875)* - -Decode the ABI-encoded return data from a transaction - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`returnData` | string | the data returned after transaction execution | - -**Returns:** *object* - -An array representing the output results in order. Keynames of nested structs are preserved. - -#### getABIDecodedTransactionData - -▸ **getABIDecodedTransactionData**(`callData`: string): *object* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:7829](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L7829)* - -Decode the ABI-encoded transaction data into its input arguments - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`callData` | string | The ABI-encoded transaction data | - -**Returns:** *object* - -An array representing the input arguments in order. Keynames of nested structs are preserved. - -#### getABIEncodedTransactionData - -▸ **getABIEncodedTransactionData**(`leftOrder`: object, `rightOrder`: object, `leftSignature`: string, `rightSignature`: string): *string* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:7779](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L7779)* - -Returns the ABI encoded transaction data needed to send an Ethereum transaction calling this method. Before -sending the Ethereum tx, this encoded tx data can first be sent to a separate signing service or can be used -to create a 0x transaction (see protocol spec for more details). - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`leftOrder` | object | First order to match. | -`rightOrder` | object | Second order to match. | -`leftSignature` | string | Proof that order was created by the left maker. | -`rightSignature` | string | Proof that order was created by the right maker. | - -**Returns:** *string* - -The ABI encoded transaction data as a string - -#### sendTransactionAsync - -▸ **sendTransactionAsync**(`leftOrder`: object, `rightOrder`: object, `leftSignature`: string, `rightSignature`: string, `txData?`: `Partial` | undefined): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:7399](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L7399)* - -Sends an Ethereum transaction executing this method with the supplied parameters. This is a read/write -Ethereum operation and will cost gas. - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`leftOrder` | object | First order to match. | -`rightOrder` | object | Second order to match. | -`leftSignature` | string | Proof that order was created by the left maker. | -`rightSignature` | string | Proof that order was created by the right maker. | -`txData?` | `Partial` \| undefined | Additional data for transaction | - -**Returns:** *`Promise`* - -The hash of the transaction - -#### validateAndSendTransactionAsync - -▸ **validateAndSendTransactionAsync**(`leftOrder`: object, `rightOrder`: object, `leftSignature`: string, `rightSignature`: string, `txData?`: `Partial` | undefined): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:7598](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L7598)* - -**Parameters:** - -Name | Type | ------- | ------ | -`leftOrder` | object | -`rightOrder` | object | -`leftSignature` | string | -`rightSignature` | string | -`txData?` | `Partial` \| undefined | - -**Returns:** *`Promise`* - -___ - -### matchOrdersWithMaximalFill - -#### ▪ **matchOrdersWithMaximalFill**: *object* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:7927](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L7927)* - -Match two complementary orders that have a profitable spread. -Each order is maximally filled at their respective price point, and -the matcher receives a profit denominated in either the left maker asset, -right maker asset, or a combination of both. - -#### awaitTransactionSuccessAsync - -▸ **awaitTransactionSuccessAsync**(`leftOrder`: object, `rightOrder`: object, `leftSignature`: string, `rightSignature`: string, `txData?`: `Partial`, `pollingIntervalMs?`: undefined | number, `timeoutMs?`: undefined | number): *`PromiseWithTransactionHash`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:8008](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L8008)* - -Sends an Ethereum transaction and waits until the transaction has been successfully mined without reverting. -If the transaction was mined, but reverted, an error is thrown. - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`leftOrder` | object | First order to match. | -`rightOrder` | object | Second order to match. | -`leftSignature` | string | Proof that order was created by the left maker. | -`rightSignature` | string | Proof that order was created by the right maker. | -`txData?` | `Partial` | Additional data for transaction | -`pollingIntervalMs?` | undefined \| number | Interval at which to poll for success | -`timeoutMs?` | undefined \| number | - | - -**Returns:** *`PromiseWithTransactionHash`* - -A promise that resolves when the transaction is successful - -#### callAsync - -▸ **callAsync**(`leftOrder`: object, `rightOrder`: object, `leftSignature`: string, `rightSignature`: string, `callData`: `Partial`, `defaultBlock?`: [BlockParam](#blockparam)): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:8200](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L8200)* - -Sends a read-only call to the contract method. Returns the result that would happen if one were to send an -Ethereum transaction to this method, given the current state of the blockchain. Calls do not cost gas -since they don't modify state. - -**Parameters:** - -Name | Type | Default | Description | ------- | ------ | ------ | ------ | -`leftOrder` | object | - | First order to match. | -`rightOrder` | object | - | Second order to match. | -`leftSignature` | string | - | Proof that order was created by the left maker. | -`rightSignature` | string | - | Proof that order was created by the right maker. | -`callData` | `Partial` | {} | - | -`defaultBlock?` | [BlockParam](#blockparam) | - | - | - -**Returns:** *`Promise`* - -matchedFillResults Amounts filled by maker and taker of matched orders. - -#### estimateGasAsync - -▸ **estimateGasAsync**(`leftOrder`: object, `rightOrder`: object, `leftSignature`: string, `rightSignature`: string, `txData?`: `Partial` | undefined): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:8078](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L8078)* - -Estimates the gas cost of sending an Ethereum transaction calling this method with these arguments. - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`leftOrder` | object | First order to match. | -`rightOrder` | object | Second order to match. | -`leftSignature` | string | Proof that order was created by the left maker. | -`rightSignature` | string | Proof that order was created by the right maker. | -`txData?` | `Partial` \| undefined | Additional data for transaction | - -**Returns:** *`Promise`* - -The hash of the transaction - -#### getABIDecodedReturnData - -▸ **getABIDecodedReturnData**(`returnData`: string): *object* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:8420](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L8420)* - -Decode the ABI-encoded return data from a transaction - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`returnData` | string | the data returned after transaction execution | - -**Returns:** *object* - -An array representing the output results in order. Keynames of nested structs are preserved. - -#### getABIDecodedTransactionData - -▸ **getABIDecodedTransactionData**(`callData`: string): *object* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:8374](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L8374)* - -Decode the ABI-encoded transaction data into its input arguments - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`callData` | string | The ABI-encoded transaction data | - -**Returns:** *object* - -An array representing the input arguments in order. Keynames of nested structs are preserved. - -#### getABIEncodedTransactionData - -▸ **getABIEncodedTransactionData**(`leftOrder`: object, `rightOrder`: object, `leftSignature`: string, `rightSignature`: string): *string* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:8324](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L8324)* - -Returns the ABI encoded transaction data needed to send an Ethereum transaction calling this method. Before -sending the Ethereum tx, this encoded tx data can first be sent to a separate signing service or can be used -to create a 0x transaction (see protocol spec for more details). - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`leftOrder` | object | First order to match. | -`rightOrder` | object | Second order to match. | -`leftSignature` | string | Proof that order was created by the left maker. | -`rightSignature` | string | Proof that order was created by the right maker. | - -**Returns:** *string* - -The ABI encoded transaction data as a string - -#### sendTransactionAsync - -▸ **sendTransactionAsync**(`leftOrder`: object, `rightOrder`: object, `leftSignature`: string, `rightSignature`: string, `txData?`: `Partial` | undefined): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:7938](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L7938)* - -Sends an Ethereum transaction executing this method with the supplied parameters. This is a read/write -Ethereum operation and will cost gas. - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`leftOrder` | object | First order to match. | -`rightOrder` | object | Second order to match. | -`leftSignature` | string | Proof that order was created by the left maker. | -`rightSignature` | string | Proof that order was created by the right maker. | -`txData?` | `Partial` \| undefined | Additional data for transaction | - -**Returns:** *`Promise`* - -The hash of the transaction - -#### validateAndSendTransactionAsync - -▸ **validateAndSendTransactionAsync**(`leftOrder`: object, `rightOrder`: object, `leftSignature`: string, `rightSignature`: string, `txData?`: `Partial` | undefined): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:8137](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L8137)* - -**Parameters:** - -Name | Type | ------- | ------ | -`leftOrder` | object | -`rightOrder` | object | -`leftSignature` | string | -`rightSignature` | string | -`txData?` | `Partial` \| undefined | - -**Returns:** *`Promise`* - -___ - -### orderEpoch - -#### ▪ **orderEpoch**: *object* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:8466](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L8466)* - -#### callAsync - -▸ **callAsync**(`index_0`: string, `index_1`: string, `callData`: `Partial`, `defaultBlock?`: [BlockParam](#blockparam)): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:8472](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L8472)* - -Sends a read-only call to the contract method. Returns the result that would happen if one were to send an -Ethereum transaction to this method, given the current state of the blockchain. Calls do not cost gas -since they don't modify state. - -**Parameters:** - -Name | Type | Default | ------- | ------ | ------ | -`index_0` | string | - | -`index_1` | string | - | -`callData` | `Partial` | {} | -`defaultBlock?` | [BlockParam](#blockparam) | - | - -**Returns:** *`Promise`* - -#### getABIDecodedReturnData - -▸ **getABIDecodedReturnData**(`returnData`: string): *`BigNumber`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:8551](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L8551)* - -Decode the ABI-encoded return data from a transaction - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`returnData` | string | the data returned after transaction execution | - -**Returns:** *`BigNumber`* - -An array representing the output results in order. Keynames of nested structs are preserved. - -#### getABIDecodedTransactionData - -▸ **getABIDecodedTransactionData**(`callData`: string): *string* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:8539](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L8539)* - -Decode the ABI-encoded transaction data into its input arguments - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`callData` | string | The ABI-encoded transaction data | - -**Returns:** *string* - -An array representing the input arguments in order. Keynames of nested structs are preserved. - -#### getABIEncodedTransactionData - -▸ **getABIEncodedTransactionData**(`index_0`: string, `index_1`: string): *string* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:8524](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L8524)* - -Returns the ABI encoded transaction data needed to send an Ethereum transaction calling this method. Before -sending the Ethereum tx, this encoded tx data can first be sent to a separate signing service or can be used -to create a 0x transaction (see protocol spec for more details). - -**Parameters:** - -Name | Type | ------- | ------ | -`index_0` | string | -`index_1` | string | - -**Returns:** *string* - -The ABI encoded transaction data as a string - -___ - -### owner - -#### ▪ **owner**: *object* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:8559](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L8559)* - -#### callAsync - -▸ **callAsync**(`callData`: `Partial`, `defaultBlock?`: [BlockParam](#blockparam)): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:8565](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L8565)* - -Sends a read-only call to the contract method. Returns the result that would happen if one were to send an -Ethereum transaction to this method, given the current state of the blockchain. Calls do not cost gas -since they don't modify state. - -**Parameters:** - -Name | Type | Default | ------- | ------ | ------ | -`callData` | `Partial` | {} | -`defaultBlock?` | [BlockParam](#blockparam) | - | - -**Returns:** *`Promise`* - -#### getABIDecodedReturnData - -▸ **getABIDecodedReturnData**(`returnData`: string): *string* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:8629](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L8629)* - -Decode the ABI-encoded return data from a transaction - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`returnData` | string | the data returned after transaction execution | - -**Returns:** *string* - -An array representing the output results in order. Keynames of nested structs are preserved. - -#### getABIDecodedTransactionData - -▸ **getABIDecodedTransactionData**(`callData`: string): *void* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:8617](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L8617)* - -Decode the ABI-encoded transaction data into its input arguments - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`callData` | string | The ABI-encoded transaction data | - -**Returns:** *void* - -An array representing the input arguments in order. Keynames of nested structs are preserved. - -#### getABIEncodedTransactionData - -▸ **getABIEncodedTransactionData**(): *string* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:8607](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L8607)* - -Returns the ABI encoded transaction data needed to send an Ethereum transaction calling this method. Before -sending the Ethereum tx, this encoded tx data can first be sent to a separate signing service or can be used -to create a 0x transaction (see protocol spec for more details). - -**Returns:** *string* - -The ABI encoded transaction data as a string - -___ - -### preSign - -#### ▪ **preSign**: *object* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:8641](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L8641)* - -Approves a hash on-chain. -After presigning a hash, the preSign signature type will become valid for that hash and signer. - -#### awaitTransactionSuccessAsync - -▸ **awaitTransactionSuccessAsync**(`hash`: string, `txData?`: `Partial`, `pollingIntervalMs?`: undefined | number, `timeoutMs?`: undefined | number): *`PromiseWithTransactionHash`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:8676](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L8676)* - -Sends an Ethereum transaction and waits until the transaction has been successfully mined without reverting. -If the transaction was mined, but reverted, an error is thrown. - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`hash` | string | Any 32-byte hash. | -`txData?` | `Partial` | Additional data for transaction | -`pollingIntervalMs?` | undefined \| number | Interval at which to poll for success | -`timeoutMs?` | undefined \| number | - | - -**Returns:** *`PromiseWithTransactionHash`* - -A promise that resolves when the transaction is successful - -#### callAsync - -▸ **callAsync**(`hash`: string, `callData`: `Partial`, `defaultBlock?`: [BlockParam](#blockparam)): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:8733](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L8733)* - -Sends a read-only call to the contract method. Returns the result that would happen if one were to send an -Ethereum transaction to this method, given the current state of the blockchain. Calls do not cost gas -since they don't modify state. - -**Parameters:** - -Name | Type | Default | Description | ------- | ------ | ------ | ------ | -`hash` | string | - | Any 32-byte hash. | -`callData` | `Partial` | {} | - | -`defaultBlock?` | [BlockParam](#blockparam) | - | - | - -**Returns:** *`Promise`* - -#### estimateGasAsync - -▸ **estimateGasAsync**(`hash`: string, `txData?`: `Partial` | undefined): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:8703](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L8703)* - -Estimates the gas cost of sending an Ethereum transaction calling this method with these arguments. - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`hash` | string | Any 32-byte hash. | -`txData?` | `Partial` \| undefined | Additional data for transaction | - -**Returns:** *`Promise`* - -The hash of the transaction - -#### getABIDecodedReturnData - -▸ **getABIDecodedReturnData**(`returnData`: string): *void* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:8800](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L8800)* - -Decode the ABI-encoded return data from a transaction - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`returnData` | string | the data returned after transaction execution | - -**Returns:** *void* - -An array representing the output results in order. Keynames of nested structs are preserved. - -#### getABIDecodedTransactionData - -▸ **getABIDecodedTransactionData**(`callData`: string): *[string]* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:8788](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L8788)* - -Decode the ABI-encoded transaction data into its input arguments - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`callData` | string | The ABI-encoded transaction data | - -**Returns:** *[string]* - -An array representing the input arguments in order. Keynames of nested structs are preserved. - -#### getABIEncodedTransactionData - -▸ **getABIEncodedTransactionData**(`hash`: string): *string* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:8777](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L8777)* - -Returns the ABI encoded transaction data needed to send an Ethereum transaction calling this method. Before -sending the Ethereum tx, this encoded tx data can first be sent to a separate signing service or can be used -to create a 0x transaction (see protocol spec for more details). - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`hash` | string | Any 32-byte hash. | - -**Returns:** *string* - -The ABI encoded transaction data as a string - -#### sendTransactionAsync - -▸ **sendTransactionAsync**(`hash`: string, `txData?`: `Partial` | undefined): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:8649](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L8649)* - -Sends an Ethereum transaction executing this method with the supplied parameters. This is a read/write -Ethereum operation and will cost gas. - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`hash` | string | Any 32-byte hash. | -`txData?` | `Partial` \| undefined | Additional data for transaction | - -**Returns:** *`Promise`* - -The hash of the transaction - -#### validateAndSendTransactionAsync - -▸ **validateAndSendTransactionAsync**(`hash`: string, `txData?`: `Partial` | undefined): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:8722](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L8722)* - -**Parameters:** - -Name | Type | ------- | ------ | -`hash` | string | -`txData?` | `Partial` \| undefined | - -**Returns:** *`Promise`* - -___ - -### preSigned - -#### ▪ **preSigned**: *object* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:8808](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L8808)* - -#### callAsync - -▸ **callAsync**(`index_0`: string, `index_1`: string, `callData`: `Partial`, `defaultBlock?`: [BlockParam](#blockparam)): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:8814](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L8814)* - -Sends a read-only call to the contract method. Returns the result that would happen if one were to send an -Ethereum transaction to this method, given the current state of the blockchain. Calls do not cost gas -since they don't modify state. - -**Parameters:** - -Name | Type | Default | ------- | ------ | ------ | -`index_0` | string | - | -`index_1` | string | - | -`callData` | `Partial` | {} | -`defaultBlock?` | [BlockParam](#blockparam) | - | - -**Returns:** *`Promise`* - -#### getABIDecodedReturnData - -▸ **getABIDecodedReturnData**(`returnData`: string): *boolean* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:8893](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L8893)* - -Decode the ABI-encoded return data from a transaction - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`returnData` | string | the data returned after transaction execution | - -**Returns:** *boolean* - -An array representing the output results in order. Keynames of nested structs are preserved. - -#### getABIDecodedTransactionData - -▸ **getABIDecodedTransactionData**(`callData`: string): *string* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:8881](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L8881)* - -Decode the ABI-encoded transaction data into its input arguments - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`callData` | string | The ABI-encoded transaction data | - -**Returns:** *string* - -An array representing the input arguments in order. Keynames of nested structs are preserved. - -#### getABIEncodedTransactionData - -▸ **getABIEncodedTransactionData**(`index_0`: string, `index_1`: string): *string* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:8866](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L8866)* - -Returns the ABI encoded transaction data needed to send an Ethereum transaction calling this method. Before -sending the Ethereum tx, this encoded tx data can first be sent to a separate signing service or can be used -to create a 0x transaction (see protocol spec for more details). - -**Parameters:** - -Name | Type | ------- | ------ | -`index_0` | string | -`index_1` | string | - -**Returns:** *string* - -The ABI encoded transaction data as a string - -___ - -### protocolFeeCollector - -#### ▪ **protocolFeeCollector**: *object* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:8901](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L8901)* - -#### callAsync - -▸ **callAsync**(`callData`: `Partial`, `defaultBlock?`: [BlockParam](#blockparam)): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:8907](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L8907)* - -Sends a read-only call to the contract method. Returns the result that would happen if one were to send an -Ethereum transaction to this method, given the current state of the blockchain. Calls do not cost gas -since they don't modify state. - -**Parameters:** - -Name | Type | Default | ------- | ------ | ------ | -`callData` | `Partial` | {} | -`defaultBlock?` | [BlockParam](#blockparam) | - | - -**Returns:** *`Promise`* - -#### getABIDecodedReturnData - -▸ **getABIDecodedReturnData**(`returnData`: string): *string* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:8971](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L8971)* - -Decode the ABI-encoded return data from a transaction - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`returnData` | string | the data returned after transaction execution | - -**Returns:** *string* - -An array representing the output results in order. Keynames of nested structs are preserved. - -#### getABIDecodedTransactionData - -▸ **getABIDecodedTransactionData**(`callData`: string): *void* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:8959](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L8959)* - -Decode the ABI-encoded transaction data into its input arguments - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`callData` | string | The ABI-encoded transaction data | - -**Returns:** *void* - -An array representing the input arguments in order. Keynames of nested structs are preserved. - -#### getABIEncodedTransactionData - -▸ **getABIEncodedTransactionData**(): *string* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:8949](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L8949)* - -Returns the ABI encoded transaction data needed to send an Ethereum transaction calling this method. Before -sending the Ethereum tx, this encoded tx data can first be sent to a separate signing service or can be used -to create a 0x transaction (see protocol spec for more details). - -**Returns:** *string* - -The ABI encoded transaction data as a string - -___ - -### protocolFeeMultiplier - -#### ▪ **protocolFeeMultiplier**: *object* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:8979](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L8979)* - -#### callAsync - -▸ **callAsync**(`callData`: `Partial`, `defaultBlock?`: [BlockParam](#blockparam)): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:8985](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L8985)* - -Sends a read-only call to the contract method. Returns the result that would happen if one were to send an -Ethereum transaction to this method, given the current state of the blockchain. Calls do not cost gas -since they don't modify state. - -**Parameters:** - -Name | Type | Default | ------- | ------ | ------ | -`callData` | `Partial` | {} | -`defaultBlock?` | [BlockParam](#blockparam) | - | - -**Returns:** *`Promise`* - -#### getABIDecodedReturnData - -▸ **getABIDecodedReturnData**(`returnData`: string): *`BigNumber`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:9049](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L9049)* - -Decode the ABI-encoded return data from a transaction - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`returnData` | string | the data returned after transaction execution | - -**Returns:** *`BigNumber`* - -An array representing the output results in order. Keynames of nested structs are preserved. - -#### getABIDecodedTransactionData - -▸ **getABIDecodedTransactionData**(`callData`: string): *void* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:9037](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L9037)* - -Decode the ABI-encoded transaction data into its input arguments - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`callData` | string | The ABI-encoded transaction data | - -**Returns:** *void* - -An array representing the input arguments in order. Keynames of nested structs are preserved. - -#### getABIEncodedTransactionData - -▸ **getABIEncodedTransactionData**(): *string* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:9027](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L9027)* - -Returns the ABI encoded transaction data needed to send an Ethereum transaction calling this method. Before -sending the Ethereum tx, this encoded tx data can first be sent to a separate signing service or can be used -to create a 0x transaction (see protocol spec for more details). - -**Returns:** *string* - -The ABI encoded transaction data as a string - -___ - -### registerAssetProxy - -#### ▪ **registerAssetProxy**: *object* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:9061](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L9061)* - -Registers an asset proxy to its asset proxy id. -Once an asset proxy is registered, it cannot be unregistered. - -#### awaitTransactionSuccessAsync - -▸ **awaitTransactionSuccessAsync**(`assetProxy`: string, `txData?`: `Partial`, `pollingIntervalMs?`: undefined | number, `timeoutMs?`: undefined | number): *`PromiseWithTransactionHash`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:9096](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L9096)* - -Sends an Ethereum transaction and waits until the transaction has been successfully mined without reverting. -If the transaction was mined, but reverted, an error is thrown. - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`assetProxy` | string | Address of new asset proxy to register. | -`txData?` | `Partial` | Additional data for transaction | -`pollingIntervalMs?` | undefined \| number | Interval at which to poll for success | -`timeoutMs?` | undefined \| number | - | - -**Returns:** *`PromiseWithTransactionHash`* - -A promise that resolves when the transaction is successful - -#### callAsync - -▸ **callAsync**(`assetProxy`: string, `callData`: `Partial`, `defaultBlock?`: [BlockParam](#blockparam)): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:9156](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L9156)* - -Sends a read-only call to the contract method. Returns the result that would happen if one were to send an -Ethereum transaction to this method, given the current state of the blockchain. Calls do not cost gas -since they don't modify state. - -**Parameters:** - -Name | Type | Default | Description | ------- | ------ | ------ | ------ | -`assetProxy` | string | - | Address of new asset proxy to register. | -`callData` | `Partial` | {} | - | -`defaultBlock?` | [BlockParam](#blockparam) | - | - | - -**Returns:** *`Promise`* - -#### estimateGasAsync - -▸ **estimateGasAsync**(`assetProxy`: string, `txData?`: `Partial` | undefined): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:9123](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L9123)* - -Estimates the gas cost of sending an Ethereum transaction calling this method with these arguments. - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`assetProxy` | string | Address of new asset proxy to register. | -`txData?` | `Partial` \| undefined | Additional data for transaction | - -**Returns:** *`Promise`* - -The hash of the transaction - -#### getABIDecodedReturnData - -▸ **getABIDecodedReturnData**(`returnData`: string): *void* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:9229](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L9229)* - -Decode the ABI-encoded return data from a transaction - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`returnData` | string | the data returned after transaction execution | - -**Returns:** *void* - -An array representing the output results in order. Keynames of nested structs are preserved. - -#### getABIDecodedTransactionData - -▸ **getABIDecodedTransactionData**(`callData`: string): *[string]* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:9217](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L9217)* - -Decode the ABI-encoded transaction data into its input arguments - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`callData` | string | The ABI-encoded transaction data | - -**Returns:** *[string]* - -An array representing the input arguments in order. Keynames of nested structs are preserved. - -#### getABIEncodedTransactionData - -▸ **getABIEncodedTransactionData**(`assetProxy`: string): *string* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:9204](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L9204)* - -Returns the ABI encoded transaction data needed to send an Ethereum transaction calling this method. Before -sending the Ethereum tx, this encoded tx data can first be sent to a separate signing service or can be used -to create a 0x transaction (see protocol spec for more details). - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`assetProxy` | string | Address of new asset proxy to register. | - -**Returns:** *string* - -The ABI encoded transaction data as a string - -#### sendTransactionAsync - -▸ **sendTransactionAsync**(`assetProxy`: string, `txData?`: `Partial` | undefined): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:9069](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L9069)* - -Sends an Ethereum transaction executing this method with the supplied parameters. This is a read/write -Ethereum operation and will cost gas. - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`assetProxy` | string | Address of new asset proxy to register. | -`txData?` | `Partial` \| undefined | Additional data for transaction | - -**Returns:** *`Promise`* - -The hash of the transaction - -#### validateAndSendTransactionAsync - -▸ **validateAndSendTransactionAsync**(`assetProxy`: string, `txData?`: `Partial` | undefined): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:9142](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L9142)* - -**Parameters:** - -Name | Type | ------- | ------ | -`assetProxy` | string | -`txData?` | `Partial` \| undefined | - -**Returns:** *`Promise`* - -___ - -### setProtocolFeeCollectorAddress - -#### ▪ **setProtocolFeeCollectorAddress**: *object* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:9240](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L9240)* - -Allows the owner to update the protocolFeeCollector address. - -#### awaitTransactionSuccessAsync - -▸ **awaitTransactionSuccessAsync**(`updatedProtocolFeeCollector`: string, `txData?`: `Partial`, `pollingIntervalMs?`: undefined | number, `timeoutMs?`: undefined | number): *`PromiseWithTransactionHash`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:9282](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L9282)* - -Sends an Ethereum transaction and waits until the transaction has been successfully mined without reverting. -If the transaction was mined, but reverted, an error is thrown. - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`updatedProtocolFeeCollector` | string | The updated protocolFeeCollector contract address. | -`txData?` | `Partial` | Additional data for transaction | -`pollingIntervalMs?` | undefined \| number | Interval at which to poll for success | -`timeoutMs?` | undefined \| number | - | - -**Returns:** *`PromiseWithTransactionHash`* - -A promise that resolves when the transaction is successful - -#### callAsync - -▸ **callAsync**(`updatedProtocolFeeCollector`: string, `callData`: `Partial`, `defaultBlock?`: [BlockParam](#blockparam)): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:9355](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L9355)* - -Sends a read-only call to the contract method. Returns the result that would happen if one were to send an -Ethereum transaction to this method, given the current state of the blockchain. Calls do not cost gas -since they don't modify state. - -**Parameters:** - -Name | Type | Default | Description | ------- | ------ | ------ | ------ | -`updatedProtocolFeeCollector` | string | - | The updated protocolFeeCollector contract address. | -`callData` | `Partial` | {} | - | -`defaultBlock?` | [BlockParam](#blockparam) | - | - | - -**Returns:** *`Promise`* - -#### estimateGasAsync - -▸ **estimateGasAsync**(`updatedProtocolFeeCollector`: string, `txData?`: `Partial` | undefined): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:9313](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L9313)* - -Estimates the gas cost of sending an Ethereum transaction calling this method with these arguments. - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`updatedProtocolFeeCollector` | string | The updated protocolFeeCollector contract address. | -`txData?` | `Partial` \| undefined | Additional data for transaction | - -**Returns:** *`Promise`* - -The hash of the transaction - -#### getABIDecodedReturnData - -▸ **getABIDecodedReturnData**(`returnData`: string): *void* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:9431](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L9431)* - -Decode the ABI-encoded return data from a transaction - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`returnData` | string | the data returned after transaction execution | - -**Returns:** *void* - -An array representing the output results in order. Keynames of nested structs are preserved. - -#### getABIDecodedTransactionData - -▸ **getABIDecodedTransactionData**(`callData`: string): *[string]* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:9419](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L9419)* - -Decode the ABI-encoded transaction data into its input arguments - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`callData` | string | The ABI-encoded transaction data | - -**Returns:** *[string]* - -An array representing the input arguments in order. Keynames of nested structs are preserved. - -#### getABIEncodedTransactionData - -▸ **getABIEncodedTransactionData**(`updatedProtocolFeeCollector`: string): *string* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:9406](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L9406)* - -Returns the ABI encoded transaction data needed to send an Ethereum transaction calling this method. Before -sending the Ethereum tx, this encoded tx data can first be sent to a separate signing service or can be used -to create a 0x transaction (see protocol spec for more details). - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`updatedProtocolFeeCollector` | string | The updated protocolFeeCollector contract address. | - -**Returns:** *string* - -The ABI encoded transaction data as a string - -#### sendTransactionAsync - -▸ **sendTransactionAsync**(`updatedProtocolFeeCollector`: string, `txData?`: `Partial` | undefined): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:9249](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L9249)* - -Sends an Ethereum transaction executing this method with the supplied parameters. This is a read/write -Ethereum operation and will cost gas. - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`updatedProtocolFeeCollector` | string | The updated protocolFeeCollector contract address. | -`txData?` | `Partial` \| undefined | Additional data for transaction | - -**Returns:** *`Promise`* - -The hash of the transaction - -#### validateAndSendTransactionAsync - -▸ **validateAndSendTransactionAsync**(`updatedProtocolFeeCollector`: string, `txData?`: `Partial` | undefined): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:9337](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L9337)* - -**Parameters:** - -Name | Type | ------- | ------ | -`updatedProtocolFeeCollector` | string | -`txData?` | `Partial` \| undefined | - -**Returns:** *`Promise`* - -___ - -### setProtocolFeeMultiplier - -#### ▪ **setProtocolFeeMultiplier**: *object* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:9442](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L9442)* - -Allows the owner to update the protocol fee multiplier. - -#### awaitTransactionSuccessAsync - -▸ **awaitTransactionSuccessAsync**(`updatedProtocolFeeMultiplier`: `BigNumber`, `txData?`: `Partial`, `pollingIntervalMs?`: undefined | number, `timeoutMs?`: undefined | number): *`PromiseWithTransactionHash`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:9482](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L9482)* - -Sends an Ethereum transaction and waits until the transaction has been successfully mined without reverting. -If the transaction was mined, but reverted, an error is thrown. - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`updatedProtocolFeeMultiplier` | `BigNumber` | The updated protocol fee multiplier. | -`txData?` | `Partial` | Additional data for transaction | -`pollingIntervalMs?` | undefined \| number | Interval at which to poll for success | -`timeoutMs?` | undefined \| number | - | - -**Returns:** *`PromiseWithTransactionHash`* - -A promise that resolves when the transaction is successful - -#### callAsync - -▸ **callAsync**(`updatedProtocolFeeMultiplier`: `BigNumber`, `callData`: `Partial`, `defaultBlock?`: [BlockParam](#blockparam)): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:9553](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L9553)* - -Sends a read-only call to the contract method. Returns the result that would happen if one were to send an -Ethereum transaction to this method, given the current state of the blockchain. Calls do not cost gas -since they don't modify state. - -**Parameters:** - -Name | Type | Default | Description | ------- | ------ | ------ | ------ | -`updatedProtocolFeeMultiplier` | `BigNumber` | - | The updated protocol fee multiplier. | -`callData` | `Partial` | {} | - | -`defaultBlock?` | [BlockParam](#blockparam) | - | - | - -**Returns:** *`Promise`* - -#### estimateGasAsync - -▸ **estimateGasAsync**(`updatedProtocolFeeMultiplier`: `BigNumber`, `txData?`: `Partial` | undefined): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:9512](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L9512)* - -Estimates the gas cost of sending an Ethereum transaction calling this method with these arguments. - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`updatedProtocolFeeMultiplier` | `BigNumber` | The updated protocol fee multiplier. | -`txData?` | `Partial` \| undefined | Additional data for transaction | - -**Returns:** *`Promise`* - -The hash of the transaction - -#### getABIDecodedReturnData - -▸ **getABIDecodedReturnData**(`returnData`: string): *void* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:9628](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L9628)* - -Decode the ABI-encoded return data from a transaction - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`returnData` | string | the data returned after transaction execution | - -**Returns:** *void* - -An array representing the output results in order. Keynames of nested structs are preserved. - -#### getABIDecodedTransactionData - -▸ **getABIDecodedTransactionData**(`callData`: string): *[`BigNumber`]* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:9616](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L9616)* - -Decode the ABI-encoded transaction data into its input arguments - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`callData` | string | The ABI-encoded transaction data | - -**Returns:** *[`BigNumber`]* - -An array representing the input arguments in order. Keynames of nested structs are preserved. - -#### getABIEncodedTransactionData - -▸ **getABIEncodedTransactionData**(`updatedProtocolFeeMultiplier`: `BigNumber`): *string* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:9603](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L9603)* - -Returns the ABI encoded transaction data needed to send an Ethereum transaction calling this method. Before -sending the Ethereum tx, this encoded tx data can first be sent to a separate signing service or can be used -to create a 0x transaction (see protocol spec for more details). - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`updatedProtocolFeeMultiplier` | `BigNumber` | The updated protocol fee multiplier. | - -**Returns:** *string* - -The ABI encoded transaction data as a string - -#### sendTransactionAsync - -▸ **sendTransactionAsync**(`updatedProtocolFeeMultiplier`: `BigNumber`, `txData?`: `Partial` | undefined): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:9450](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L9450)* - -Sends an Ethereum transaction executing this method with the supplied parameters. This is a read/write -Ethereum operation and will cost gas. - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`updatedProtocolFeeMultiplier` | `BigNumber` | The updated protocol fee multiplier. | -`txData?` | `Partial` \| undefined | Additional data for transaction | - -**Returns:** *`Promise`* - -The hash of the transaction - -#### validateAndSendTransactionAsync - -▸ **validateAndSendTransactionAsync**(`updatedProtocolFeeMultiplier`: `BigNumber`, `txData?`: `Partial` | undefined): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:9536](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L9536)* - -**Parameters:** - -Name | Type | ------- | ------ | -`updatedProtocolFeeMultiplier` | `BigNumber` | -`txData?` | `Partial` \| undefined | - -**Returns:** *`Promise`* - -___ - -### setSignatureValidatorApproval - -#### ▪ **setSignatureValidatorApproval**: *object* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:9640](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L9640)* - -Approves/unnapproves a Validator contract to verify signatures on signer's behalf -using the `Validator` signature type. - -#### awaitTransactionSuccessAsync - -▸ **awaitTransactionSuccessAsync**(`validatorAddress`: string, `approval`: boolean, `txData?`: `Partial`, `pollingIntervalMs?`: undefined | number, `timeoutMs?`: undefined | number): *`PromiseWithTransactionHash`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:9685](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L9685)* - -Sends an Ethereum transaction and waits until the transaction has been successfully mined without reverting. -If the transaction was mined, but reverted, an error is thrown. - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`validatorAddress` | string | Address of Validator contract. | -`approval` | boolean | Approval or disapproval of Validator contract. | -`txData?` | `Partial` | Additional data for transaction | -`pollingIntervalMs?` | undefined \| number | Interval at which to poll for success | -`timeoutMs?` | undefined \| number | - | - -**Returns:** *`PromiseWithTransactionHash`* - -A promise that resolves when the transaction is successful - -#### callAsync - -▸ **callAsync**(`validatorAddress`: string, `approval`: boolean, `callData`: `Partial`, `defaultBlock?`: [BlockParam](#blockparam)): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:9766](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L9766)* - -Sends a read-only call to the contract method. Returns the result that would happen if one were to send an -Ethereum transaction to this method, given the current state of the blockchain. Calls do not cost gas -since they don't modify state. - -**Parameters:** - -Name | Type | Default | Description | ------- | ------ | ------ | ------ | -`validatorAddress` | string | - | Address of Validator contract. | -`approval` | boolean | - | Approval or disapproval of Validator contract. | -`callData` | `Partial` | {} | - | -`defaultBlock?` | [BlockParam](#blockparam) | - | - | - -**Returns:** *`Promise`* - -#### estimateGasAsync - -▸ **estimateGasAsync**(`validatorAddress`: string, `approval`: boolean, `txData?`: `Partial` | undefined): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:9719](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L9719)* - -Estimates the gas cost of sending an Ethereum transaction calling this method with these arguments. - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`validatorAddress` | string | Address of Validator contract. | -`approval` | boolean | Approval or disapproval of Validator contract. | -`txData?` | `Partial` \| undefined | Additional data for transaction | - -**Returns:** *`Promise`* - -The hash of the transaction - -#### getABIDecodedReturnData - -▸ **getABIDecodedReturnData**(`returnData`: string): *void* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:9847](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L9847)* - -Decode the ABI-encoded return data from a transaction - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`returnData` | string | the data returned after transaction execution | - -**Returns:** *void* - -An array representing the output results in order. Keynames of nested structs are preserved. - -#### getABIDecodedTransactionData - -▸ **getABIDecodedTransactionData**(`callData`: string): *[string, boolean]* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:9835](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L9835)* - -Decode the ABI-encoded transaction data into its input arguments - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`callData` | string | The ABI-encoded transaction data | - -**Returns:** *[string, boolean]* - -An array representing the input arguments in order. Keynames of nested structs are preserved. - -#### getABIEncodedTransactionData - -▸ **getABIEncodedTransactionData**(`validatorAddress`: string, `approval`: boolean): *string* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:9820](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L9820)* - -Returns the ABI encoded transaction data needed to send an Ethereum transaction calling this method. Before -sending the Ethereum tx, this encoded tx data can first be sent to a separate signing service or can be used -to create a 0x transaction (see protocol spec for more details). - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`validatorAddress` | string | Address of Validator contract. | -`approval` | boolean | Approval or disapproval of Validator contract. | - -**Returns:** *string* - -The ABI encoded transaction data as a string - -#### sendTransactionAsync - -▸ **sendTransactionAsync**(`validatorAddress`: string, `approval`: boolean, `txData?`: `Partial` | undefined): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:9649](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L9649)* - -Sends an Ethereum transaction executing this method with the supplied parameters. This is a read/write -Ethereum operation and will cost gas. - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`validatorAddress` | string | Address of Validator contract. | -`approval` | boolean | Approval or disapproval of Validator contract. | -`txData?` | `Partial` \| undefined | Additional data for transaction | - -**Returns:** *`Promise`* - -The hash of the transaction - -#### validateAndSendTransactionAsync - -▸ **validateAndSendTransactionAsync**(`validatorAddress`: string, `approval`: boolean, `txData?`: `Partial` | undefined): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:9746](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L9746)* - -**Parameters:** - -Name | Type | ------- | ------ | -`validatorAddress` | string | -`approval` | boolean | -`txData?` | `Partial` \| undefined | - -**Returns:** *`Promise`* - -___ - -### simulateDispatchTransferFromCalls - -#### ▪ **simulateDispatchTransferFromCalls**: *object* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:9858](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L9858)* - -This function may be used to simulate any amount of transfers As they would occur through the Exchange contract. Note that this function will always revert, even if all transfers are successful. However, it may be used with eth_call or with a try/catch pattern in order to simulate the results of the transfers. - -#### awaitTransactionSuccessAsync - -▸ **awaitTransactionSuccessAsync**(`assetData`: string[], `fromAddresses`: string[], `toAddresses`: string[], `amounts`: `BigNumber`[], `txData?`: `Partial`, `pollingIntervalMs?`: undefined | number, `timeoutMs?`: undefined | number): *`PromiseWithTransactionHash`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:9919](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L9919)* - -Sends an Ethereum transaction and waits until the transaction has been successfully mined without reverting. -If the transaction was mined, but reverted, an error is thrown. - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`assetData` | string[] | Array of asset details, each encoded per the AssetProxy contract specification. | -`fromAddresses` | string[] | Array containing the `from` addresses that correspond with each transfer. | -`toAddresses` | string[] | Array containing the `to` addresses that correspond with each transfer. | -`amounts` | `BigNumber`[] | Array containing the amounts that correspond to each transfer. | -`txData?` | `Partial` | Additional data for transaction | -`pollingIntervalMs?` | undefined \| number | Interval at which to poll for success | -`timeoutMs?` | undefined \| number | - | - -**Returns:** *`PromiseWithTransactionHash`* - -A promise that resolves when the transaction is successful - -#### callAsync - -▸ **callAsync**(`assetData`: string[], `fromAddresses`: string[], `toAddresses`: string[], `amounts`: `BigNumber`[], `callData`: `Partial`, `defaultBlock?`: [BlockParam](#blockparam)): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:10033](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L10033)* - -Sends a read-only call to the contract method. Returns the result that would happen if one were to send an -Ethereum transaction to this method, given the current state of the blockchain. Calls do not cost gas -since they don't modify state. - -**Parameters:** - -Name | Type | Default | Description | ------- | ------ | ------ | ------ | -`assetData` | string[] | - | Array of asset details, each encoded per the AssetProxy contract specification. | -`fromAddresses` | string[] | - | Array containing the `from` addresses that correspond with each transfer. | -`toAddresses` | string[] | - | Array containing the `to` addresses that correspond with each transfer. | -`amounts` | `BigNumber`[] | - | Array containing the amounts that correspond to each transfer. | -`callData` | `Partial` | {} | - | -`defaultBlock?` | [BlockParam](#blockparam) | - | - | - -**Returns:** *`Promise`* - -This function does not return a value. However, it will always revert with `Error("TRANSFERS_SUCCESSFUL")` if all of the transfers were successful. - -#### estimateGasAsync - -▸ **estimateGasAsync**(`assetData`: string[], `fromAddresses`: string[], `toAddresses`: string[], `amounts`: `BigNumber`[], `txData?`: `Partial` | undefined): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:9965](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L9965)* - -Estimates the gas cost of sending an Ethereum transaction calling this method with these arguments. - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`assetData` | string[] | Array of asset details, each encoded per the AssetProxy contract specification. | -`fromAddresses` | string[] | Array containing the `from` addresses that correspond with each transfer. | -`toAddresses` | string[] | Array containing the `to` addresses that correspond with each transfer. | -`amounts` | `BigNumber`[] | Array containing the amounts that correspond to each transfer. | -`txData?` | `Partial` \| undefined | Additional data for transaction | - -**Returns:** *`Promise`* - -The hash of the transaction - -#### getABIDecodedReturnData - -▸ **getABIDecodedReturnData**(`returnData`: string): *void* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:10135](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L10135)* - -Decode the ABI-encoded return data from a transaction - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`returnData` | string | the data returned after transaction execution | - -**Returns:** *void* - -An array representing the output results in order. Keynames of nested structs are preserved. - -#### getABIDecodedTransactionData - -▸ **getABIDecodedTransactionData**(`callData`: string): *[string[], string[], string[], `BigNumber`[]]* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:10121](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L10121)* - -Decode the ABI-encoded transaction data into its input arguments - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`callData` | string | The ABI-encoded transaction data | - -**Returns:** *[string[], string[], string[], `BigNumber`[]]* - -An array representing the input arguments in order. Keynames of nested structs are preserved. - -#### getABIEncodedTransactionData - -▸ **getABIEncodedTransactionData**(`assetData`: string[], `fromAddresses`: string[], `toAddresses`: string[], `amounts`: `BigNumber`[]): *string* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:10099](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L10099)* - -Returns the ABI encoded transaction data needed to send an Ethereum transaction calling this method. Before -sending the Ethereum tx, this encoded tx data can first be sent to a separate signing service or can be used -to create a 0x transaction (see protocol spec for more details). - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`assetData` | string[] | Array of asset details, each encoded per the AssetProxy contract specification. | -`fromAddresses` | string[] | Array containing the `from` addresses that correspond with each transfer. | -`toAddresses` | string[] | Array containing the `to` addresses that correspond with each transfer. | -`amounts` | `BigNumber`[] | Array containing the amounts that correspond to each transfer. | - -**Returns:** *string* - -The ABI encoded transaction data as a string - -#### sendTransactionAsync - -▸ **sendTransactionAsync**(`assetData`: string[], `fromAddresses`: string[], `toAddresses`: string[], `amounts`: `BigNumber`[], `txData?`: `Partial` | undefined): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:9873](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L9873)* - -Sends an Ethereum transaction executing this method with the supplied parameters. This is a read/write -Ethereum operation and will cost gas. - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`assetData` | string[] | Array of asset details, each encoded per the AssetProxy contract specification. | -`fromAddresses` | string[] | Array containing the `from` addresses that correspond with each transfer. | -`toAddresses` | string[] | Array containing the `to` addresses that correspond with each transfer. | -`amounts` | `BigNumber`[] | Array containing the amounts that correspond to each transfer. | -`txData?` | `Partial` \| undefined | Additional data for transaction | - -**Returns:** *`Promise`* - -The hash of the transaction - -#### validateAndSendTransactionAsync - -▸ **validateAndSendTransactionAsync**(`assetData`: string[], `fromAddresses`: string[], `toAddresses`: string[], `amounts`: `BigNumber`[], `txData?`: `Partial` | undefined): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:9996](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L9996)* - -**Parameters:** - -Name | Type | ------- | ------ | -`assetData` | string[] | -`fromAddresses` | string[] | -`toAddresses` | string[] | -`amounts` | `BigNumber`[] | -`txData?` | `Partial` \| undefined | - -**Returns:** *`Promise`* - -___ - -### transactionsExecuted - -#### ▪ **transactionsExecuted**: *object* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:10145](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L10145)* - -#### callAsync - -▸ **callAsync**(`index_0`: string, `callData`: `Partial`, `defaultBlock?`: [BlockParam](#blockparam)): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:10151](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L10151)* - -Sends a read-only call to the contract method. Returns the result that would happen if one were to send an -Ethereum transaction to this method, given the current state of the blockchain. Calls do not cost gas -since they don't modify state. - -**Parameters:** - -Name | Type | Default | ------- | ------ | ------ | -`index_0` | string | - | -`callData` | `Partial` | {} | -`defaultBlock?` | [BlockParam](#blockparam) | - | - -**Returns:** *`Promise`* - -#### getABIDecodedReturnData - -▸ **getABIDecodedReturnData**(`returnData`: string): *boolean* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:10221](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L10221)* - -Decode the ABI-encoded return data from a transaction - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`returnData` | string | the data returned after transaction execution | - -**Returns:** *boolean* - -An array representing the output results in order. Keynames of nested structs are preserved. - -#### getABIDecodedTransactionData - -▸ **getABIDecodedTransactionData**(`callData`: string): *string* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:10209](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L10209)* - -Decode the ABI-encoded transaction data into its input arguments - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`callData` | string | The ABI-encoded transaction data | - -**Returns:** *string* - -An array representing the input arguments in order. Keynames of nested structs are preserved. - -#### getABIEncodedTransactionData - -▸ **getABIEncodedTransactionData**(`index_0`: string): *string* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:10198](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L10198)* - -Returns the ABI encoded transaction data needed to send an Ethereum transaction calling this method. Before -sending the Ethereum tx, this encoded tx data can first be sent to a separate signing service or can be used -to create a 0x transaction (see protocol spec for more details). - -**Parameters:** - -Name | Type | ------- | ------ | -`index_0` | string | - -**Returns:** *string* - -The ABI encoded transaction data as a string - -___ - -### transferOwnership - -#### ▪ **transferOwnership**: *object* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:10229](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L10229)* - -#### awaitTransactionSuccessAsync - -▸ **awaitTransactionSuccessAsync**(`newOwner`: string, `txData?`: `Partial`, `pollingIntervalMs?`: undefined | number, `timeoutMs?`: undefined | number): *`PromiseWithTransactionHash`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:10262](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L10262)* - -Sends an Ethereum transaction and waits until the transaction has been successfully mined without reverting. -If the transaction was mined, but reverted, an error is thrown. - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`newOwner` | string | - | -`txData?` | `Partial` | Additional data for transaction | -`pollingIntervalMs?` | undefined \| number | Interval at which to poll for success | -`timeoutMs?` | undefined \| number | - | - -**Returns:** *`PromiseWithTransactionHash`* - -A promise that resolves when the transaction is successful - -#### callAsync - -▸ **callAsync**(`newOwner`: string, `callData`: `Partial`, `defaultBlock?`: [BlockParam](#blockparam)): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:10317](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L10317)* - -Sends a read-only call to the contract method. Returns the result that would happen if one were to send an -Ethereum transaction to this method, given the current state of the blockchain. Calls do not cost gas -since they don't modify state. - -**Parameters:** - -Name | Type | Default | ------- | ------ | ------ | -`newOwner` | string | - | -`callData` | `Partial` | {} | -`defaultBlock?` | [BlockParam](#blockparam) | - | - -**Returns:** *`Promise`* - -#### estimateGasAsync - -▸ **estimateGasAsync**(`newOwner`: string, `txData?`: `Partial` | undefined): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:10288](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L10288)* - -Estimates the gas cost of sending an Ethereum transaction calling this method with these arguments. - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`newOwner` | string | - | -`txData?` | `Partial` \| undefined | Additional data for transaction | - -**Returns:** *`Promise`* - -The hash of the transaction - -#### getABIDecodedReturnData - -▸ **getABIDecodedReturnData**(`returnData`: string): *void* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:10385](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L10385)* - -Decode the ABI-encoded return data from a transaction - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`returnData` | string | the data returned after transaction execution | - -**Returns:** *void* - -An array representing the output results in order. Keynames of nested structs are preserved. - -#### getABIDecodedTransactionData - -▸ **getABIDecodedTransactionData**(`callData`: string): *[string]* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:10373](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L10373)* - -Decode the ABI-encoded transaction data into its input arguments - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`callData` | string | The ABI-encoded transaction data | - -**Returns:** *[string]* - -An array representing the input arguments in order. Keynames of nested structs are preserved. - -#### getABIEncodedTransactionData - -▸ **getABIEncodedTransactionData**(`newOwner`: string): *string* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:10360](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L10360)* - -Returns the ABI encoded transaction data needed to send an Ethereum transaction calling this method. Before -sending the Ethereum tx, this encoded tx data can first be sent to a separate signing service or can be used -to create a 0x transaction (see protocol spec for more details). - -**Parameters:** - -Name | Type | ------- | ------ | -`newOwner` | string | - -**Returns:** *string* - -The ABI encoded transaction data as a string - -#### sendTransactionAsync - -▸ **sendTransactionAsync**(`newOwner`: string, `txData?`: `Partial` | undefined): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:10236](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L10236)* - -Sends an Ethereum transaction executing this method with the supplied parameters. This is a read/write -Ethereum operation and will cost gas. - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`newOwner` | string | - | -`txData?` | `Partial` \| undefined | Additional data for transaction | - -**Returns:** *`Promise`* - -The hash of the transaction - -#### validateAndSendTransactionAsync - -▸ **validateAndSendTransactionAsync**(`newOwner`: string, `txData?`: `Partial` | undefined): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:10307](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L10307)* - -**Parameters:** - -Name | Type | ------- | ------ | -`newOwner` | string | -`txData?` | `Partial` \| undefined | - -**Returns:** *`Promise`* - -
- -# Class: IValidatorContract - - -## Constructors - - - -\+ **new IValidatorContract**(`address`: string, `supportedProvider`: [SupportedProvider](#supportedprovider), `txDefaults?`: `Partial`, `logDecodeDependencies?`: undefined | object, `deployedBytecode`: string | undefined): *[IValidatorContract](#class-ivalidatorcontract)* - -*Overrides void* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/i_validator.ts:238](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/i_validator.ts#L238)* - -**Parameters:** - -Name | Type | Default | ------- | ------ | ------ | -`address` | string | - | -`supportedProvider` | [SupportedProvider](#supportedprovider) | - | -`txDefaults?` | `Partial` | - | -`logDecodeDependencies?` | undefined \| object | - | -`deployedBytecode` | string \| undefined | IValidatorContract.deployedBytecode | - -**Returns:** *[IValidatorContract](#class-ivalidatorcontract)* - -## Properties - -#### abi - -• **abi**: *[ContractAbi](#contractabi)* - - - -Defined in base-contract/lib/src/index.d.ts:27 - -___ - -### address - -• **address**: *string* - - - -Defined in base-contract/lib/src/index.d.ts:28 - -___ - -Args - -• **constructorArgs**: *any[]* - - - -Defined in base-contract/lib/src/index.d.ts:30 - -___ - -### contractName - -• **contractName**: *string* - - - -Defined in base-contract/lib/src/index.d.ts:29 - -___ - -### `Static` deployedBytecode - -▪ **deployedBytecode**: *string | undefined* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/i_validator.ts:31](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/i_validator.ts#L31)* - -## Methods - -### evmExecAsync - -▸ **evmExecAsync**(`input`: `Buffer`): *`Promise`* - - - -Defined in base-contract/lib/src/index.d.ts:42 - -**Parameters:** - -Name | Type | ------- | ------ | -`input` | `Buffer` | - -**Returns:** *`Promise`* - -___ - -### `Static` ABI - -▸ **ABI**(): *[ContractAbi](#contractabi)* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/i_validator.ts:207](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/i_validator.ts#L207)* - -**Returns:** *[ContractAbi](#contractabi)* - -The contract ABI - -___ - -### `Static` deployAsync - -▸ **deployAsync**(`bytecode`: string, `abi`: [ContractAbi](#contractabi), `supportedProvider`: [SupportedProvider](#supportedprovider), `txDefaults`: `Partial`, `logDecodeDependencies`: object): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/i_validator.ts:165](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/i_validator.ts#L165)* - -**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 [abi-gen-wrappers/src/generated-wrappers/i_validator.ts:140](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/i_validator.ts#L140)* - -**Parameters:** - -Name | Type | ------- | ------ | -`artifact` | `ContractArtifact` \| `SimpleContractArtifact` | -`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:41 - -**Parameters:** - -Name | Type | ------- | ------ | -`inputAbi` | `DataItem`[] | -`args` | any[] | - -**Returns:** *string* - -## Object literals - -### isValidSignature - -#### ▪ **isValidSignature**: *object* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/i_validator.ts:35](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/i_validator.ts#L35)* - -Verifies that a signature is valid. - -#### callAsync - -▸ **callAsync**(`hash`: string, `signerAddress`: string, `signature`: string, `callData`: `Partial`, `defaultBlock?`: [BlockParam](#blockparam)): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/i_validator.ts:45](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/i_validator.ts#L45)* - -Sends a read-only call to the contract method. Returns the result that would happen if one were to send an -Ethereum transaction to this method, given the current state of the blockchain. Calls do not cost gas -since they don't modify state. - -**Parameters:** - -Name | Type | Default | Description | ------- | ------ | ------ | ------ | -`hash` | string | - | Message hash that is signed. | -`signerAddress` | string | - | Address that should have signed the given hash. | -`signature` | string | - | Proof of signing. | -`callData` | `Partial` | {} | - | -`defaultBlock?` | [BlockParam](#blockparam) | - | - | - -**Returns:** *`Promise`* - -Magic bytes4 value if the signature is valid. Magic value is bytes4(keccak256("isValidValidatorSignature(address,bytes32,address,bytes)")) - -#### getABIDecodedReturnData - -▸ **getABIDecodedReturnData**(`returnData`: string): *string* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/i_validator.ts:132](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/i_validator.ts#L132)* - -Decode the ABI-encoded return data from a transaction - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`returnData` | string | the data returned after transaction execution | - -**Returns:** *string* - -An array representing the output results in order. Keynames of nested structs are preserved. - -#### getABIDecodedTransactionData - -▸ **getABIDecodedTransactionData**(`callData`: string): *string* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/i_validator.ts:120](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/i_validator.ts#L120)* - -Decode the ABI-encoded transaction data into its input arguments - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`callData` | string | The ABI-encoded transaction data | - -**Returns:** *string* - -An array representing the input arguments in order. Keynames of nested structs are preserved. - -#### getABIEncodedTransactionData - -▸ **getABIEncodedTransactionData**(`hash`: string, `signerAddress`: string, `signature`: string): *string* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/i_validator.ts:103](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/i_validator.ts#L103)* - -Returns the ABI encoded transaction data needed to send an Ethereum transaction calling this method. Before -sending the Ethereum tx, this encoded tx data can first be sent to a separate signing service or can be used -to create a 0x transaction (see protocol spec for more details). - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`hash` | string | Message hash that is signed. | -`signerAddress` | string | Address that should have signed the given hash. | -`signature` | string | Proof of signing. | - -**Returns:** *string* - -The ABI encoded transaction data as a string - -
- -# Class: IWalletContract - - -## Constructors - - - -\+ **new IWalletContract**(`address`: string, `supportedProvider`: [SupportedProvider](#supportedprovider), `txDefaults?`: `Partial`, `logDecodeDependencies?`: undefined | object, `deployedBytecode`: string | undefined): *[IWalletContract](#class-iwalletcontract)* - -*Overrides void* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/i_wallet.ts:224](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/i_wallet.ts#L224)* - -**Parameters:** - -Name | Type | Default | ------- | ------ | ------ | -`address` | string | - | -`supportedProvider` | [SupportedProvider](#supportedprovider) | - | -`txDefaults?` | `Partial` | - | -`logDecodeDependencies?` | undefined \| object | - | -`deployedBytecode` | string \| undefined | IWalletContract.deployedBytecode | - -**Returns:** *[IWalletContract](#class-iwalletcontract)* - -## Properties - -#### abi - -• **abi**: *[ContractAbi](#contractabi)* - - - -Defined in base-contract/lib/src/index.d.ts:27 - -___ - -### address - -• **address**: *string* - - - -Defined in base-contract/lib/src/index.d.ts:28 - -___ - -Args - -• **constructorArgs**: *any[]* - - - -Defined in base-contract/lib/src/index.d.ts:30 - -___ - -### contractName - -• **contractName**: *string* - - - -Defined in base-contract/lib/src/index.d.ts:29 - -___ - -### `Static` deployedBytecode - -▪ **deployedBytecode**: *string | undefined* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/i_wallet.ts:31](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/i_wallet.ts#L31)* - -## Methods - -### evmExecAsync - -▸ **evmExecAsync**(`input`: `Buffer`): *`Promise`* - - - -Defined in base-contract/lib/src/index.d.ts:42 - -**Parameters:** - -Name | Type | ------- | ------ | -`input` | `Buffer` | - -**Returns:** *`Promise`* - -___ - -### `Static` ABI - -▸ **ABI**(): *[ContractAbi](#contractabi)* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/i_wallet.ts:197](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/i_wallet.ts#L197)* - -**Returns:** *[ContractAbi](#contractabi)* - -The contract ABI - -___ - -### `Static` deployAsync - -▸ **deployAsync**(`bytecode`: string, `abi`: [ContractAbi](#contractabi), `supportedProvider`: [SupportedProvider](#supportedprovider), `txDefaults`: `Partial`, `logDecodeDependencies`: object): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/i_wallet.ts:155](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/i_wallet.ts#L155)* - -**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 [abi-gen-wrappers/src/generated-wrappers/i_wallet.ts:130](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/i_wallet.ts#L130)* - -**Parameters:** - -Name | Type | ------- | ------ | -`artifact` | `ContractArtifact` \| `SimpleContractArtifact` | -`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:41 - -**Parameters:** - -Name | Type | ------- | ------ | -`inputAbi` | `DataItem`[] | -`args` | any[] | - -**Returns:** *string* - -## Object literals - -### isValidSignature - -#### ▪ **isValidSignature**: *object* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/i_wallet.ts:35](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/i_wallet.ts#L35)* - -Validates a hash with the `Wallet` signature type. - -#### callAsync - -▸ **callAsync**(`hash`: string, `signature`: string, `callData`: `Partial`, `defaultBlock?`: [BlockParam](#blockparam)): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/i_wallet.ts:44](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/i_wallet.ts#L44)* - -Sends a read-only call to the contract method. Returns the result that would happen if one were to send an -Ethereum transaction to this method, given the current state of the blockchain. Calls do not cost gas -since they don't modify state. - -**Parameters:** - -Name | Type | Default | Description | ------- | ------ | ------ | ------ | -`hash` | string | - | Message hash that is signed. | -`signature` | string | - | Proof of signing. | -`callData` | `Partial` | {} | - | -`defaultBlock?` | [BlockParam](#blockparam) | - | - | - -**Returns:** *`Promise`* - -magicValue `bytes4(0xb0671381)` if the signature check succeeds. - -#### getABIDecodedReturnData - -▸ **getABIDecodedReturnData**(`returnData`: string): *string* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/i_wallet.ts:122](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/i_wallet.ts#L122)* - -Decode the ABI-encoded return data from a transaction - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`returnData` | string | the data returned after transaction execution | - -**Returns:** *string* - -An array representing the output results in order. Keynames of nested structs are preserved. - -#### getABIDecodedTransactionData - -▸ **getABIDecodedTransactionData**(`callData`: string): *string* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/i_wallet.ts:110](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/i_wallet.ts#L110)* - -Decode the ABI-encoded transaction data into its input arguments - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`callData` | string | The ABI-encoded transaction data | - -**Returns:** *string* - -An array representing the input arguments in order. Keynames of nested structs are preserved. - -#### getABIEncodedTransactionData - -▸ **getABIEncodedTransactionData**(`hash`: string, `signature`: string): *string* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/i_wallet.ts:95](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/i_wallet.ts#L95)* - -Returns the ABI encoded transaction data needed to send an Ethereum transaction calling this method. Before -sending the Ethereum tx, this encoded tx data can first be sent to a separate signing service or can be used -to create a 0x transaction (see protocol spec for more details). - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`hash` | string | Message hash that is signed. | -`signature` | string | Proof of signing. | - -**Returns:** *string* - -The ABI encoded transaction data as a string - -
- -# Class: WETH9Contract - - -## Constructors - - - -\+ **new WETH9Contract**(`address`: string, `supportedProvider`: [SupportedProvider](#supportedprovider), `txDefaults?`: `Partial`, `logDecodeDependencies?`: undefined | object, `deployedBytecode`: string | undefined): *[WETH9Contract](#class-weth9contract)* - -*Overrides void* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/weth9.ts:1877](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/weth9.ts#L1877)* - -**Parameters:** - -Name | Type | Default | ------- | ------ | ------ | -`address` | string | - | -`supportedProvider` | [SupportedProvider](#supportedprovider) | - | -`txDefaults?` | `Partial` | - | -`logDecodeDependencies?` | undefined \| object | - | -`deployedBytecode` | string \| undefined | WETH9Contract.deployedBytecode | - -**Returns:** *[WETH9Contract](#class-weth9contract)* - -## Properties - -#### abi - -• **abi**: *[ContractAbi](#contractabi)* - - - -Defined in base-contract/lib/src/index.d.ts:27 - -___ - -### address - -• **address**: *string* - - - -Defined in base-contract/lib/src/index.d.ts:28 - -___ - -Args - -• **constructorArgs**: *any[]* - - - -Defined in base-contract/lib/src/index.d.ts:30 - -___ - -### contractName - -• **contractName**: *string* - - - -Defined in base-contract/lib/src/index.d.ts:29 - -___ - -### `Static` deployedBytecode - -▪ **deployedBytecode**: *string* = "0x6080604052600436106100925760003560e01c63ffffffff16806306fdde031461009c578063095ea7b31461012657806318160ddd1461016b57806323b872dd146101925780632e1a7d4d146101c9578063313ce567146101e157806370a082311461020c57806395d89b411461023a578063a9059cbb1461024f578063d0e30db014610092578063dd62ed3e14610280575b61009a6102b4565b005b3480156100a857600080fd5b506100b1610303565b6040805160208082528351818301528351919283929083019185019080838360005b838110156100eb5781810151838201526020016100d3565b50505050905090810190601f1680156101185780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b34801561013257600080fd5b5061015773ffffffffffffffffffffffffffffffffffffffff600435166024356103af565b604080519115158252519081900360200190f35b34801561017757600080fd5b50610180610422565b60408051918252519081900360200190f35b34801561019e57600080fd5b5061015773ffffffffffffffffffffffffffffffffffffffff60043581169060243516604435610427565b3480156101d557600080fd5b5061009a6004356105c7565b3480156101ed57600080fd5b506101f661065c565b6040805160ff9092168252519081900360200190f35b34801561021857600080fd5b5061018073ffffffffffffffffffffffffffffffffffffffff60043516610665565b34801561024657600080fd5b506100b1610677565b34801561025b57600080fd5b5061015773ffffffffffffffffffffffffffffffffffffffff600435166024356106ef565b34801561028c57600080fd5b5061018073ffffffffffffffffffffffffffffffffffffffff60043581169060243516610703565b33600081815260036020908152604091829020805434908101909155825190815291517fe1fffcc4923d04b559f4d29a8bfc6cda04eb5b0d3c460751c2402c5c5cc9109c9281900390910190a2565b6000805460408051602060026001851615610100027fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0190941693909304601f810184900484028201840190925281815292918301828280156103a75780601f1061037c576101008083540402835291602001916103a7565b820191906000526020600020905b81548152906001019060200180831161038a57829003601f168201915b505050505081565b33600081815260046020908152604080832073ffffffffffffffffffffffffffffffffffffffff8716808552908352818420869055815186815291519394909390927f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925928290030190a350600192915050565b303190565b73ffffffffffffffffffffffffffffffffffffffff831660009081526003602052604081205482111561045957600080fd5b73ffffffffffffffffffffffffffffffffffffffff841633148015906104cf575073ffffffffffffffffffffffffffffffffffffffff841660009081526004602090815260408083203384529091529020547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff14155b156105495773ffffffffffffffffffffffffffffffffffffffff8416600090815260046020908152604080832033845290915290205482111561051157600080fd5b73ffffffffffffffffffffffffffffffffffffffff841660009081526004602090815260408083203384529091529020805483900390555b73ffffffffffffffffffffffffffffffffffffffff808516600081815260036020908152604080832080548890039055938716808352918490208054870190558351868152935191937fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef929081900390910190a35060019392505050565b336000908152600360205260409020548111156105e357600080fd5b33600081815260036020526040808220805485900390555183156108fc0291849190818181858888f19350505050158015610622573d6000803e3d6000fd5b5060408051828152905133917f7fcf532c15f0a6db0bd6d0e038bea71d30d808c7d98cb3bf7268a95bf5081b65919081900360200190a250565b60025460ff1681565b60036020526000908152604090205481565b60018054604080516020600284861615610100027fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0190941693909304601f810184900484028201840190925281815292918301828280156103a75780601f1061037c576101008083540402835291602001916103a7565b60006106fc338484610427565b9392505050565b6004602090815260009283526040808420909152908252902054815600a165627a7a723058201ebe888a6b56dd871f599adbe0f19ec3c29c28aec0685788dfac9b37a99fc9d20029" - -*Defined in [abi-gen-wrappers/src/generated-wrappers/weth9.ts:67](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/weth9.ts#L67)* - -## Methods - -### evmExecAsync - -▸ **evmExecAsync**(`input`: `Buffer`): *`Promise`* - - - -Defined in base-contract/lib/src/index.d.ts:42 - -**Parameters:** - -Name | Type | ------- | ------ | -`input` | `Buffer` | - -**Returns:** *`Promise`* - -___ - -### getLogsAsync - -▸ **getLogsAsync**<**ArgsType**>(`eventName`: [WETH9Events](#enumeration-weth9events), `blockRange`: `BlockRange`, `indexFilterValues`: `IndexedFilterValues`): *`Promise>>`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/weth9.ts:1861](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/weth9.ts#L1861)* - -Gets historical logs without creating a subscription - -**Type parameters:** - -▪ **ArgsType**: *[WETH9EventArgs](#weth9eventargs)* - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`eventName` | [WETH9Events](#enumeration-weth9events) | The WETH9 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 - -___ - -### subscribe - -▸ **subscribe**<**ArgsType**>(`eventName`: [WETH9Events](#enumeration-weth9events), `indexFilterValues`: `IndexedFilterValues`, `callback`: [EventCallback](#eventcallback)‹*`ArgsType`*›, `isVerbose`: boolean, `blockPollingIntervalMs?`: undefined | number): *string* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/weth9.ts:1819](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/weth9.ts#L1819)* - -Subscribe to an event type emitted by the WETH9 contract. - -**Type parameters:** - -▪ **ArgsType**: *[WETH9EventArgs](#weth9eventargs)* - -**Parameters:** - -Name | Type | Default | Description | ------- | ------ | ------ | ------ | -`eventName` | [WETH9Events](#enumeration-weth9events) | - | The WETH9 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 - -___ - -### unsubscribe - -▸ **unsubscribe**(`subscriptionToken`: string): *void* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/weth9.ts:1844](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/weth9.ts#L1844)* - -Cancel a subscription - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`subscriptionToken` | string | Subscription token returned by `subscribe()` | - -**Returns:** *void* - -___ - -### unsubscribeAll - -▸ **unsubscribeAll**(): *void* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/weth9.ts:1850](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/weth9.ts#L1850)* - -Cancels all existing subscriptions - -**Returns:** *void* - -___ - -### `Static` ABI - -▸ **ABI**(): *[ContractAbi](#contractabi)* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/weth9.ts:1522](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/weth9.ts#L1522)* - -**Returns:** *[ContractAbi](#contractabi)* - -The contract ABI - -___ - -### `Static` deployAsync - -▸ **deployAsync**(`bytecode`: string, `abi`: [ContractAbi](#contractabi), `supportedProvider`: [SupportedProvider](#supportedprovider), `txDefaults`: `Partial`, `logDecodeDependencies`: object): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/weth9.ts:1480](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/weth9.ts#L1480)* - -**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 [abi-gen-wrappers/src/generated-wrappers/weth9.ts:1455](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/weth9.ts#L1455)* - -**Parameters:** - -Name | Type | ------- | ------ | -`artifact` | `ContractArtifact` \| `SimpleContractArtifact` | -`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:41 - -**Parameters:** - -Name | Type | ------- | ------ | -`inputAbi` | `DataItem`[] | -`args` | any[] | - -**Returns:** *string* - -## Object literals - -### allowance - -#### ▪ **allowance**: *object* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/weth9.ts:1361](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/weth9.ts#L1361)* - -#### callAsync - -▸ **callAsync**(`index_0`: string, `index_1`: string, `callData`: `Partial`, `defaultBlock?`: [BlockParam](#blockparam)): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/weth9.ts:1367](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/weth9.ts#L1367)* - -Sends a read-only call to the contract method. Returns the result that would happen if one were to send an -Ethereum transaction to this method, given the current state of the blockchain. Calls do not cost gas -since they don't modify state. - -**Parameters:** - -Name | Type | Default | ------- | ------ | ------ | -`index_0` | string | - | -`index_1` | string | - | -`callData` | `Partial` | {} | -`defaultBlock?` | [BlockParam](#blockparam) | - | - -**Returns:** *`Promise`* - -#### getABIDecodedReturnData - -▸ **getABIDecodedReturnData**(`returnData`: string): *`BigNumber`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/weth9.ts:1446](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/weth9.ts#L1446)* - -Decode the ABI-encoded return data from a transaction - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`returnData` | string | the data returned after transaction execution | - -**Returns:** *`BigNumber`* - -An array representing the output results in order. Keynames of nested structs are preserved. - -#### getABIDecodedTransactionData - -▸ **getABIDecodedTransactionData**(`callData`: string): *string* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/weth9.ts:1434](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/weth9.ts#L1434)* - -Decode the ABI-encoded transaction data into its input arguments - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`callData` | string | The ABI-encoded transaction data | - -**Returns:** *string* - -An array representing the input arguments in order. Keynames of nested structs are preserved. - -#### getABIEncodedTransactionData - -▸ **getABIEncodedTransactionData**(`index_0`: string, `index_1`: string): *string* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/weth9.ts:1419](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/weth9.ts#L1419)* - -Returns the ABI encoded transaction data needed to send an Ethereum transaction calling this method. Before -sending the Ethereum tx, this encoded tx data can first be sent to a separate signing service or can be used -to create a 0x transaction (see protocol spec for more details). - -**Parameters:** - -Name | Type | ------- | ------ | -`index_0` | string | -`index_1` | string | - -**Returns:** *string* - -The ABI encoded transaction data as a string - -___ - -### approve - -#### ▪ **approve**: *object* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/weth9.ts:147](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/weth9.ts#L147)* - -#### awaitTransactionSuccessAsync - -▸ **awaitTransactionSuccessAsync**(`guy`: string, `wad`: `BigNumber`, `txData?`: `Partial`, `pollingIntervalMs?`: undefined | number, `timeoutMs?`: undefined | number): *`PromiseWithTransactionHash`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/weth9.ts:181](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/weth9.ts#L181)* - -Sends an Ethereum transaction and waits until the transaction has been successfully mined without reverting. -If the transaction was mined, but reverted, an error is thrown. - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`guy` | string | - | -`wad` | `BigNumber` | - | -`txData?` | `Partial` | Additional data for transaction | -`pollingIntervalMs?` | undefined \| number | Interval at which to poll for success | -`timeoutMs?` | undefined \| number | - | - -**Returns:** *`PromiseWithTransactionHash`* - -A promise that resolves when the transaction is successful - -#### callAsync - -▸ **callAsync**(`guy`: string, `wad`: `BigNumber`, `callData`: `Partial`, `defaultBlock?`: [BlockParam](#blockparam)): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/weth9.ts:243](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/weth9.ts#L243)* - -Sends a read-only call to the contract method. Returns the result that would happen if one were to send an -Ethereum transaction to this method, given the current state of the blockchain. Calls do not cost gas -since they don't modify state. - -**Parameters:** - -Name | Type | Default | ------- | ------ | ------ | -`guy` | string | - | -`wad` | `BigNumber` | - | -`callData` | `Partial` | {} | -`defaultBlock?` | [BlockParam](#blockparam) | - | - -**Returns:** *`Promise`* - -#### estimateGasAsync - -▸ **estimateGasAsync**(`guy`: string, `wad`: `BigNumber`, `txData?`: `Partial` | undefined): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/weth9.ts:209](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/weth9.ts#L209)* - -Estimates the gas cost of sending an Ethereum transaction calling this method with these arguments. - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`guy` | string | - | -`wad` | `BigNumber` | - | -`txData?` | `Partial` \| undefined | Additional data for transaction | - -**Returns:** *`Promise`* - -The hash of the transaction - -#### getABIDecodedReturnData - -▸ **getABIDecodedReturnData**(`returnData`: string): *boolean* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/weth9.ts:319](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/weth9.ts#L319)* - -Decode the ABI-encoded return data from a transaction - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`returnData` | string | the data returned after transaction execution | - -**Returns:** *boolean* - -An array representing the output results in order. Keynames of nested structs are preserved. - -#### getABIDecodedTransactionData - -▸ **getABIDecodedTransactionData**(`callData`: string): *string* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/weth9.ts:307](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/weth9.ts#L307)* - -Decode the ABI-encoded transaction data into its input arguments - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`callData` | string | The ABI-encoded transaction data | - -**Returns:** *string* - -An array representing the input arguments in order. Keynames of nested structs are preserved. - -#### getABIEncodedTransactionData - -▸ **getABIEncodedTransactionData**(`guy`: string, `wad`: `BigNumber`): *string* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/weth9.ts:292](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/weth9.ts#L292)* - -Returns the ABI encoded transaction data needed to send an Ethereum transaction calling this method. Before -sending the Ethereum tx, this encoded tx data can first be sent to a separate signing service or can be used -to create a 0x transaction (see protocol spec for more details). - -**Parameters:** - -Name | Type | ------- | ------ | -`guy` | string | -`wad` | `BigNumber` | - -**Returns:** *string* - -The ABI encoded transaction data as a string - -#### sendTransactionAsync - -▸ **sendTransactionAsync**(`guy`: string, `wad`: `BigNumber`, `txData?`: `Partial` | undefined): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/weth9.ts:154](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/weth9.ts#L154)* - -Sends an Ethereum transaction executing this method with the supplied parameters. This is a read/write -Ethereum operation and will cost gas. - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`guy` | string | - | -`wad` | `BigNumber` | - | -`txData?` | `Partial` \| undefined | Additional data for transaction | - -**Returns:** *`Promise`* - -The hash of the transaction - -#### validateAndSendTransactionAsync - -▸ **validateAndSendTransactionAsync**(`guy`: string, `wad`: `BigNumber`, `txData?`: `Partial` | undefined): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/weth9.ts:229](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/weth9.ts#L229)* - -**Parameters:** - -Name | Type | ------- | ------ | -`guy` | string | -`wad` | `BigNumber` | -`txData?` | `Partial` \| undefined | - -**Returns:** *`Promise`* - -___ - -### balanceOf - -#### ▪ **balanceOf**: *object* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/weth9.ts:861](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/weth9.ts#L861)* - -#### callAsync - -▸ **callAsync**(`index_0`: string, `callData`: `Partial`, `defaultBlock?`: [BlockParam](#blockparam)): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/weth9.ts:867](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/weth9.ts#L867)* - -Sends a read-only call to the contract method. Returns the result that would happen if one were to send an -Ethereum transaction to this method, given the current state of the blockchain. Calls do not cost gas -since they don't modify state. - -**Parameters:** - -Name | Type | Default | ------- | ------ | ------ | -`index_0` | string | - | -`callData` | `Partial` | {} | -`defaultBlock?` | [BlockParam](#blockparam) | - | - -**Returns:** *`Promise`* - -#### getABIDecodedReturnData - -▸ **getABIDecodedReturnData**(`returnData`: string): *`BigNumber`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/weth9.ts:939](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/weth9.ts#L939)* - -Decode the ABI-encoded return data from a transaction - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`returnData` | string | the data returned after transaction execution | - -**Returns:** *`BigNumber`* - -An array representing the output results in order. Keynames of nested structs are preserved. - -#### getABIDecodedTransactionData - -▸ **getABIDecodedTransactionData**(`callData`: string): *string* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/weth9.ts:927](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/weth9.ts#L927)* - -Decode the ABI-encoded transaction data into its input arguments - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`callData` | string | The ABI-encoded transaction data | - -**Returns:** *string* - -An array representing the input arguments in order. Keynames of nested structs are preserved. - -#### getABIEncodedTransactionData - -▸ **getABIEncodedTransactionData**(`index_0`: string): *string* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/weth9.ts:914](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/weth9.ts#L914)* - -Returns the ABI encoded transaction data needed to send an Ethereum transaction calling this method. Before -sending the Ethereum tx, this encoded tx data can first be sent to a separate signing service or can be used -to create a 0x transaction (see protocol spec for more details). - -**Parameters:** - -Name | Type | ------- | ------ | -`index_0` | string | - -**Returns:** *string* - -The ABI encoded transaction data as a string - -___ - -### decimals - -#### ▪ **decimals**: *object* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/weth9.ts:783](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/weth9.ts#L783)* - -#### callAsync - -▸ **callAsync**(`callData`: `Partial`, `defaultBlock?`: [BlockParam](#blockparam)): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/weth9.ts:789](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/weth9.ts#L789)* - -Sends a read-only call to the contract method. Returns the result that would happen if one were to send an -Ethereum transaction to this method, given the current state of the blockchain. Calls do not cost gas -since they don't modify state. - -**Parameters:** - -Name | Type | Default | ------- | ------ | ------ | -`callData` | `Partial` | {} | -`defaultBlock?` | [BlockParam](#blockparam) | - | - -**Returns:** *`Promise`* - -#### getABIDecodedReturnData - -▸ **getABIDecodedReturnData**(`returnData`: string): *number* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/weth9.ts:853](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/weth9.ts#L853)* - -Decode the ABI-encoded return data from a transaction - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`returnData` | string | the data returned after transaction execution | - -**Returns:** *number* - -An array representing the output results in order. Keynames of nested structs are preserved. - -#### getABIDecodedTransactionData - -▸ **getABIDecodedTransactionData**(`callData`: string): *void* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/weth9.ts:841](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/weth9.ts#L841)* - -Decode the ABI-encoded transaction data into its input arguments - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`callData` | string | The ABI-encoded transaction data | - -**Returns:** *void* - -An array representing the input arguments in order. Keynames of nested structs are preserved. - -#### getABIEncodedTransactionData - -▸ **getABIEncodedTransactionData**(): *string* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/weth9.ts:831](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/weth9.ts#L831)* - -Returns the ABI encoded transaction data needed to send an Ethereum transaction calling this method. Before -sending the Ethereum tx, this encoded tx data can first be sent to a separate signing service or can be used -to create a 0x transaction (see protocol spec for more details). - -**Returns:** *string* - -The ABI encoded transaction data as a string - -___ - -### deposit - -#### ▪ **deposit**: *object* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/weth9.ts:1205](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/weth9.ts#L1205)* - -#### awaitTransactionSuccessAsync - -▸ **awaitTransactionSuccessAsync**(`txData?`: `Partial`, `pollingIntervalMs?`: undefined | number, `timeoutMs?`: undefined | number): *`PromiseWithTransactionHash`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/weth9.ts:1237](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/weth9.ts#L1237)* - -Sends an Ethereum transaction and waits until the transaction has been successfully mined without reverting. -If the transaction was mined, but reverted, an error is thrown. - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`txData?` | `Partial` | Additional data for transaction | -`pollingIntervalMs?` | undefined \| number | Interval at which to poll for success | -`timeoutMs?` | undefined \| number | - | - -**Returns:** *`PromiseWithTransactionHash`* - -A promise that resolves when the transaction is successful - -#### callAsync - -▸ **callAsync**(`callData`: `Partial`, `defaultBlock?`: [BlockParam](#blockparam)): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/weth9.ts:1289](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/weth9.ts#L1289)* - -Sends a read-only call to the contract method. Returns the result that would happen if one were to send an -Ethereum transaction to this method, given the current state of the blockchain. Calls do not cost gas -since they don't modify state. - -**Parameters:** - -Name | Type | Default | ------- | ------ | ------ | -`callData` | `Partial` | {} | -`defaultBlock?` | [BlockParam](#blockparam) | - | - -**Returns:** *`Promise`* - -#### estimateGasAsync - -▸ **estimateGasAsync**(`txData?`: `Partial` | undefined): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/weth9.ts:1261](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/weth9.ts#L1261)* - -Estimates the gas cost of sending an Ethereum transaction calling this method with these arguments. - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`txData?` | `Partial` \| undefined | Additional data for transaction | - -**Returns:** *`Promise`* - -The hash of the transaction - -#### getABIDecodedReturnData - -▸ **getABIDecodedReturnData**(`returnData`: string): *void* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/weth9.ts:1353](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/weth9.ts#L1353)* - -Decode the ABI-encoded return data from a transaction - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`returnData` | string | the data returned after transaction execution | - -**Returns:** *void* - -An array representing the output results in order. Keynames of nested structs are preserved. - -#### getABIDecodedTransactionData - -▸ **getABIDecodedTransactionData**(`callData`: string): *void* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/weth9.ts:1341](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/weth9.ts#L1341)* - -Decode the ABI-encoded transaction data into its input arguments - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`callData` | string | The ABI-encoded transaction data | - -**Returns:** *void* - -An array representing the input arguments in order. Keynames of nested structs are preserved. - -#### getABIEncodedTransactionData - -▸ **getABIEncodedTransactionData**(): *string* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/weth9.ts:1331](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/weth9.ts#L1331)* - -Returns the ABI encoded transaction data needed to send an Ethereum transaction calling this method. Before -sending the Ethereum tx, this encoded tx data can first be sent to a separate signing service or can be used -to create a 0x transaction (see protocol spec for more details). - -**Returns:** *string* - -The ABI encoded transaction data as a string - -#### sendTransactionAsync - -▸ **sendTransactionAsync**(`txData?`: `Partial` | undefined): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/weth9.ts:1212](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/weth9.ts#L1212)* - -Sends an Ethereum transaction executing this method with the supplied parameters. This is a read/write -Ethereum operation and will cost gas. - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`txData?` | `Partial` \| undefined | Additional data for transaction | - -**Returns:** *`Promise`* - -The hash of the transaction - -#### validateAndSendTransactionAsync - -▸ **validateAndSendTransactionAsync**(`txData?`: `Partial` | undefined): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/weth9.ts:1279](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/weth9.ts#L1279)* - -**Parameters:** - -Name | Type | ------- | ------ | -`txData?` | `Partial` \| undefined | - -**Returns:** *`Promise`* - -___ - -### name - -#### ▪ **name**: *object* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/weth9.ts:69](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/weth9.ts#L69)* - -#### callAsync - -▸ **callAsync**(`callData`: `Partial`, `defaultBlock?`: [BlockParam](#blockparam)): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/weth9.ts:75](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/weth9.ts#L75)* - -Sends a read-only call to the contract method. Returns the result that would happen if one were to send an -Ethereum transaction to this method, given the current state of the blockchain. Calls do not cost gas -since they don't modify state. - -**Parameters:** - -Name | Type | Default | ------- | ------ | ------ | -`callData` | `Partial` | {} | -`defaultBlock?` | [BlockParam](#blockparam) | - | - -**Returns:** *`Promise`* - -#### getABIDecodedReturnData - -▸ **getABIDecodedReturnData**(`returnData`: string): *string* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/weth9.ts:139](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/weth9.ts#L139)* - -Decode the ABI-encoded return data from a transaction - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`returnData` | string | the data returned after transaction execution | - -**Returns:** *string* - -An array representing the output results in order. Keynames of nested structs are preserved. - -#### getABIDecodedTransactionData - -▸ **getABIDecodedTransactionData**(`callData`: string): *void* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/weth9.ts:127](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/weth9.ts#L127)* - -Decode the ABI-encoded transaction data into its input arguments - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`callData` | string | The ABI-encoded transaction data | - -**Returns:** *void* - -An array representing the input arguments in order. Keynames of nested structs are preserved. - -#### getABIEncodedTransactionData - -▸ **getABIEncodedTransactionData**(): *string* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/weth9.ts:117](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/weth9.ts#L117)* - -Returns the ABI encoded transaction data needed to send an Ethereum transaction calling this method. Before -sending the Ethereum tx, this encoded tx data can first be sent to a separate signing service or can be used -to create a 0x transaction (see protocol spec for more details). - -**Returns:** *string* - -The ABI encoded transaction data as a string - -___ - -### symbol - -#### ▪ **symbol**: *object* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/weth9.ts:947](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/weth9.ts#L947)* - -#### callAsync - -▸ **callAsync**(`callData`: `Partial`, `defaultBlock?`: [BlockParam](#blockparam)): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/weth9.ts:953](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/weth9.ts#L953)* - -Sends a read-only call to the contract method. Returns the result that would happen if one were to send an -Ethereum transaction to this method, given the current state of the blockchain. Calls do not cost gas -since they don't modify state. - -**Parameters:** - -Name | Type | Default | ------- | ------ | ------ | -`callData` | `Partial` | {} | -`defaultBlock?` | [BlockParam](#blockparam) | - | - -**Returns:** *`Promise`* - -#### getABIDecodedReturnData - -▸ **getABIDecodedReturnData**(`returnData`: string): *string* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/weth9.ts:1017](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/weth9.ts#L1017)* - -Decode the ABI-encoded return data from a transaction - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`returnData` | string | the data returned after transaction execution | - -**Returns:** *string* - -An array representing the output results in order. Keynames of nested structs are preserved. - -#### getABIDecodedTransactionData - -▸ **getABIDecodedTransactionData**(`callData`: string): *void* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/weth9.ts:1005](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/weth9.ts#L1005)* - -Decode the ABI-encoded transaction data into its input arguments - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`callData` | string | The ABI-encoded transaction data | - -**Returns:** *void* - -An array representing the input arguments in order. Keynames of nested structs are preserved. - -#### getABIEncodedTransactionData - -▸ **getABIEncodedTransactionData**(): *string* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/weth9.ts:995](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/weth9.ts#L995)* - -Returns the ABI encoded transaction data needed to send an Ethereum transaction calling this method. Before -sending the Ethereum tx, this encoded tx data can first be sent to a separate signing service or can be used -to create a 0x transaction (see protocol spec for more details). - -**Returns:** *string* - -The ABI encoded transaction data as a string - -___ - -### totalSupply - -#### ▪ **totalSupply**: *object* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/weth9.ts:327](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/weth9.ts#L327)* - -#### callAsync - -▸ **callAsync**(`callData`: `Partial`, `defaultBlock?`: [BlockParam](#blockparam)): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/weth9.ts:333](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/weth9.ts#L333)* - -Sends a read-only call to the contract method. Returns the result that would happen if one were to send an -Ethereum transaction to this method, given the current state of the blockchain. Calls do not cost gas -since they don't modify state. - -**Parameters:** - -Name | Type | Default | ------- | ------ | ------ | -`callData` | `Partial` | {} | -`defaultBlock?` | [BlockParam](#blockparam) | - | - -**Returns:** *`Promise`* - -#### getABIDecodedReturnData - -▸ **getABIDecodedReturnData**(`returnData`: string): *`BigNumber`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/weth9.ts:397](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/weth9.ts#L397)* - -Decode the ABI-encoded return data from a transaction - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`returnData` | string | the data returned after transaction execution | - -**Returns:** *`BigNumber`* - -An array representing the output results in order. Keynames of nested structs are preserved. - -#### getABIDecodedTransactionData - -▸ **getABIDecodedTransactionData**(`callData`: string): *void* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/weth9.ts:385](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/weth9.ts#L385)* - -Decode the ABI-encoded transaction data into its input arguments - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`callData` | string | The ABI-encoded transaction data | - -**Returns:** *void* - -An array representing the input arguments in order. Keynames of nested structs are preserved. - -#### getABIEncodedTransactionData - -▸ **getABIEncodedTransactionData**(): *string* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/weth9.ts:375](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/weth9.ts#L375)* - -Returns the ABI encoded transaction data needed to send an Ethereum transaction calling this method. Before -sending the Ethereum tx, this encoded tx data can first be sent to a separate signing service or can be used -to create a 0x transaction (see protocol spec for more details). - -**Returns:** *string* - -The ABI encoded transaction data as a string - -___ - -### transfer - -#### ▪ **transfer**: *object* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/weth9.ts:1025](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/weth9.ts#L1025)* - -#### awaitTransactionSuccessAsync - -▸ **awaitTransactionSuccessAsync**(`dst`: string, `wad`: `BigNumber`, `txData?`: `Partial`, `pollingIntervalMs?`: undefined | number, `timeoutMs?`: undefined | number): *`PromiseWithTransactionHash`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/weth9.ts:1059](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/weth9.ts#L1059)* - -Sends an Ethereum transaction and waits until the transaction has been successfully mined without reverting. -If the transaction was mined, but reverted, an error is thrown. - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`dst` | string | - | -`wad` | `BigNumber` | - | -`txData?` | `Partial` | Additional data for transaction | -`pollingIntervalMs?` | undefined \| number | Interval at which to poll for success | -`timeoutMs?` | undefined \| number | - | - -**Returns:** *`PromiseWithTransactionHash`* - -A promise that resolves when the transaction is successful - -#### callAsync - -▸ **callAsync**(`dst`: string, `wad`: `BigNumber`, `callData`: `Partial`, `defaultBlock?`: [BlockParam](#blockparam)): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/weth9.ts:1121](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/weth9.ts#L1121)* - -Sends a read-only call to the contract method. Returns the result that would happen if one were to send an -Ethereum transaction to this method, given the current state of the blockchain. Calls do not cost gas -since they don't modify state. - -**Parameters:** - -Name | Type | Default | ------- | ------ | ------ | -`dst` | string | - | -`wad` | `BigNumber` | - | -`callData` | `Partial` | {} | -`defaultBlock?` | [BlockParam](#blockparam) | - | - -**Returns:** *`Promise`* - -#### estimateGasAsync - -▸ **estimateGasAsync**(`dst`: string, `wad`: `BigNumber`, `txData?`: `Partial` | undefined): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/weth9.ts:1087](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/weth9.ts#L1087)* - -Estimates the gas cost of sending an Ethereum transaction calling this method with these arguments. - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`dst` | string | - | -`wad` | `BigNumber` | - | -`txData?` | `Partial` \| undefined | Additional data for transaction | - -**Returns:** *`Promise`* - -The hash of the transaction - -#### getABIDecodedReturnData - -▸ **getABIDecodedReturnData**(`returnData`: string): *boolean* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/weth9.ts:1197](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/weth9.ts#L1197)* - -Decode the ABI-encoded return data from a transaction - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`returnData` | string | the data returned after transaction execution | - -**Returns:** *boolean* - -An array representing the output results in order. Keynames of nested structs are preserved. - -#### getABIDecodedTransactionData - -▸ **getABIDecodedTransactionData**(`callData`: string): *string* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/weth9.ts:1185](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/weth9.ts#L1185)* - -Decode the ABI-encoded transaction data into its input arguments - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`callData` | string | The ABI-encoded transaction data | - -**Returns:** *string* - -An array representing the input arguments in order. Keynames of nested structs are preserved. - -#### getABIEncodedTransactionData - -▸ **getABIEncodedTransactionData**(`dst`: string, `wad`: `BigNumber`): *string* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/weth9.ts:1170](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/weth9.ts#L1170)* - -Returns the ABI encoded transaction data needed to send an Ethereum transaction calling this method. Before -sending the Ethereum tx, this encoded tx data can first be sent to a separate signing service or can be used -to create a 0x transaction (see protocol spec for more details). - -**Parameters:** - -Name | Type | ------- | ------ | -`dst` | string | -`wad` | `BigNumber` | - -**Returns:** *string* - -The ABI encoded transaction data as a string - -#### sendTransactionAsync - -▸ **sendTransactionAsync**(`dst`: string, `wad`: `BigNumber`, `txData?`: `Partial` | undefined): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/weth9.ts:1032](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/weth9.ts#L1032)* - -Sends an Ethereum transaction executing this method with the supplied parameters. This is a read/write -Ethereum operation and will cost gas. - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`dst` | string | - | -`wad` | `BigNumber` | - | -`txData?` | `Partial` \| undefined | Additional data for transaction | - -**Returns:** *`Promise`* - -The hash of the transaction - -#### validateAndSendTransactionAsync - -▸ **validateAndSendTransactionAsync**(`dst`: string, `wad`: `BigNumber`, `txData?`: `Partial` | undefined): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/weth9.ts:1107](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/weth9.ts#L1107)* - -**Parameters:** - -Name | Type | ------- | ------ | -`dst` | string | -`wad` | `BigNumber` | -`txData?` | `Partial` \| undefined | - -**Returns:** *`Promise`* - -___ - -### transferFrom - -#### ▪ **transferFrom**: *object* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/weth9.ts:405](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/weth9.ts#L405)* - -#### awaitTransactionSuccessAsync - -▸ **awaitTransactionSuccessAsync**(`src`: string, `dst`: string, `wad`: `BigNumber`, `txData?`: `Partial`, `pollingIntervalMs?`: undefined | number, `timeoutMs?`: undefined | number): *`PromiseWithTransactionHash`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/weth9.ts:449](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/weth9.ts#L449)* - -Sends an Ethereum transaction and waits until the transaction has been successfully mined without reverting. -If the transaction was mined, but reverted, an error is thrown. - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`src` | string | - | -`dst` | string | - | -`wad` | `BigNumber` | - | -`txData?` | `Partial` | Additional data for transaction | -`pollingIntervalMs?` | undefined \| number | Interval at which to poll for success | -`timeoutMs?` | undefined \| number | - | - -**Returns:** *`PromiseWithTransactionHash`* - -A promise that resolves when the transaction is successful - -#### callAsync - -▸ **callAsync**(`src`: string, `dst`: string, `wad`: `BigNumber`, `callData`: `Partial`, `defaultBlock?`: [BlockParam](#blockparam)): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/weth9.ts:529](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/weth9.ts#L529)* - -Sends a read-only call to the contract method. Returns the result that would happen if one were to send an -Ethereum transaction to this method, given the current state of the blockchain. Calls do not cost gas -since they don't modify state. - -**Parameters:** - -Name | Type | Default | ------- | ------ | ------ | -`src` | string | - | -`dst` | string | - | -`wad` | `BigNumber` | - | -`callData` | `Partial` | {} | -`defaultBlock?` | [BlockParam](#blockparam) | - | - -**Returns:** *`Promise`* - -#### estimateGasAsync - -▸ **estimateGasAsync**(`src`: string, `dst`: string, `wad`: `BigNumber`, `txData?`: `Partial` | undefined): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/weth9.ts:484](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/weth9.ts#L484)* - -Estimates the gas cost of sending an Ethereum transaction calling this method with these arguments. - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`src` | string | - | -`dst` | string | - | -`wad` | `BigNumber` | - | -`txData?` | `Partial` \| undefined | Additional data for transaction | - -**Returns:** *`Promise`* - -The hash of the transaction - -#### getABIDecodedReturnData - -▸ **getABIDecodedReturnData**(`returnData`: string): *boolean* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/weth9.ts:613](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/weth9.ts#L613)* - -Decode the ABI-encoded return data from a transaction - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`returnData` | string | the data returned after transaction execution | - -**Returns:** *boolean* - -An array representing the output results in order. Keynames of nested structs are preserved. - -#### getABIDecodedTransactionData - -▸ **getABIDecodedTransactionData**(`callData`: string): *string* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/weth9.ts:601](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/weth9.ts#L601)* - -Decode the ABI-encoded transaction data into its input arguments - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`callData` | string | The ABI-encoded transaction data | - -**Returns:** *string* - -An array representing the input arguments in order. Keynames of nested structs are preserved. - -#### getABIEncodedTransactionData - -▸ **getABIEncodedTransactionData**(`src`: string, `dst`: string, `wad`: `BigNumber`): *string* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/weth9.ts:584](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/weth9.ts#L584)* - -Returns the ABI encoded transaction data needed to send an Ethereum transaction calling this method. Before -sending the Ethereum tx, this encoded tx data can first be sent to a separate signing service or can be used -to create a 0x transaction (see protocol spec for more details). - -**Parameters:** - -Name | Type | ------- | ------ | -`src` | string | -`dst` | string | -`wad` | `BigNumber` | - -**Returns:** *string* - -The ABI encoded transaction data as a string - -#### sendTransactionAsync - -▸ **sendTransactionAsync**(`src`: string, `dst`: string, `wad`: `BigNumber`, `txData?`: `Partial` | undefined): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/weth9.ts:412](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/weth9.ts#L412)* - -Sends an Ethereum transaction executing this method with the supplied parameters. This is a read/write -Ethereum operation and will cost gas. - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`src` | string | - | -`dst` | string | - | -`wad` | `BigNumber` | - | -`txData?` | `Partial` \| undefined | Additional data for transaction | - -**Returns:** *`Promise`* - -The hash of the transaction - -#### validateAndSendTransactionAsync - -▸ **validateAndSendTransactionAsync**(`src`: string, `dst`: string, `wad`: `BigNumber`, `txData?`: `Partial` | undefined): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/weth9.ts:514](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/weth9.ts#L514)* - -**Parameters:** - -Name | Type | ------- | ------ | -`src` | string | -`dst` | string | -`wad` | `BigNumber` | -`txData?` | `Partial` \| undefined | - -**Returns:** *`Promise`* - -___ - -### withdraw - -#### ▪ **withdraw**: *object* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/weth9.ts:621](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/weth9.ts#L621)* - -#### awaitTransactionSuccessAsync - -▸ **awaitTransactionSuccessAsync**(`wad`: `BigNumber`, `txData?`: `Partial`, `pollingIntervalMs?`: undefined | number, `timeoutMs?`: undefined | number): *`PromiseWithTransactionHash`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/weth9.ts:654](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/weth9.ts#L654)* - -Sends an Ethereum transaction and waits until the transaction has been successfully mined without reverting. -If the transaction was mined, but reverted, an error is thrown. - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`wad` | `BigNumber` | - | -`txData?` | `Partial` | Additional data for transaction | -`pollingIntervalMs?` | undefined \| number | Interval at which to poll for success | -`timeoutMs?` | undefined \| number | - | - -**Returns:** *`PromiseWithTransactionHash`* - -A promise that resolves when the transaction is successful - -#### callAsync - -▸ **callAsync**(`wad`: `BigNumber`, `callData`: `Partial`, `defaultBlock?`: [BlockParam](#blockparam)): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/weth9.ts:709](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/weth9.ts#L709)* - -Sends a read-only call to the contract method. Returns the result that would happen if one were to send an -Ethereum transaction to this method, given the current state of the blockchain. Calls do not cost gas -since they don't modify state. - -**Parameters:** - -Name | Type | Default | ------- | ------ | ------ | -`wad` | `BigNumber` | - | -`callData` | `Partial` | {} | -`defaultBlock?` | [BlockParam](#blockparam) | - | - -**Returns:** *`Promise`* - -#### estimateGasAsync - -▸ **estimateGasAsync**(`wad`: `BigNumber`, `txData?`: `Partial` | undefined): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/weth9.ts:680](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/weth9.ts#L680)* - -Estimates the gas cost of sending an Ethereum transaction calling this method with these arguments. - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`wad` | `BigNumber` | - | -`txData?` | `Partial` \| undefined | Additional data for transaction | - -**Returns:** *`Promise`* - -The hash of the transaction - -#### getABIDecodedReturnData - -▸ **getABIDecodedReturnData**(`returnData`: string): *void* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/weth9.ts:775](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/weth9.ts#L775)* - -Decode the ABI-encoded return data from a transaction - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`returnData` | string | the data returned after transaction execution | - -**Returns:** *void* - -An array representing the output results in order. Keynames of nested structs are preserved. - -#### getABIDecodedTransactionData - -▸ **getABIDecodedTransactionData**(`callData`: string): *[`BigNumber`]* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/weth9.ts:763](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/weth9.ts#L763)* - -Decode the ABI-encoded transaction data into its input arguments - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`callData` | string | The ABI-encoded transaction data | - -**Returns:** *[`BigNumber`]* - -An array representing the input arguments in order. Keynames of nested structs are preserved. - -#### getABIEncodedTransactionData - -▸ **getABIEncodedTransactionData**(`wad`: `BigNumber`): *string* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/weth9.ts:752](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/weth9.ts#L752)* - -Returns the ABI encoded transaction data needed to send an Ethereum transaction calling this method. Before -sending the Ethereum tx, this encoded tx data can first be sent to a separate signing service or can be used -to create a 0x transaction (see protocol spec for more details). - -**Parameters:** - -Name | Type | ------- | ------ | -`wad` | `BigNumber` | - -**Returns:** *string* - -The ABI encoded transaction data as a string - -#### sendTransactionAsync - -▸ **sendTransactionAsync**(`wad`: `BigNumber`, `txData?`: `Partial` | undefined): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/weth9.ts:628](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/weth9.ts#L628)* - -Sends an Ethereum transaction executing this method with the supplied parameters. This is a read/write -Ethereum operation and will cost gas. - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`wad` | `BigNumber` | - | -`txData?` | `Partial` \| undefined | Additional data for transaction | - -**Returns:** *`Promise`* - -The hash of the transaction - -#### validateAndSendTransactionAsync - -▸ **validateAndSendTransactionAsync**(`wad`: `BigNumber`, `txData?`: `Partial` | undefined): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/weth9.ts:699](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/weth9.ts#L699)* - -**Parameters:** - -Name | Type | ------- | ------ | -`wad` | `BigNumber` | -`txData?` | `Partial` \| undefined | - -**Returns:** *`Promise`* - -
- -# Class: ZRXTokenContract - - -## Constructors - - - -\+ **new ZRXTokenContract**(`address`: string, `supportedProvider`: [SupportedProvider](#supportedprovider), `txDefaults?`: `Partial`, `logDecodeDependencies?`: undefined | object, `deployedBytecode`: string | undefined): *[ZRXTokenContract](#class-zrxtokencontract)* - -*Overrides void* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/zrx_token.ts:1512](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/zrx_token.ts#L1512)* - -**Parameters:** - -Name | Type | Default | ------- | ------ | ------ | -`address` | string | - | -`supportedProvider` | [SupportedProvider](#supportedprovider) | - | -`txDefaults?` | `Partial` | - | -`logDecodeDependencies?` | undefined \| object | - | -`deployedBytecode` | string \| undefined | ZRXTokenContract.deployedBytecode | - -**Returns:** *[ZRXTokenContract](#class-zrxtokencontract)* - -## Properties - -#### abi - -• **abi**: *[ContractAbi](#contractabi)* - - - -Defined in base-contract/lib/src/index.d.ts:27 - -___ - -### address - -• **address**: *string* - - - -Defined in base-contract/lib/src/index.d.ts:28 - -___ - -Args - -• **constructorArgs**: *any[]* - - - -Defined in base-contract/lib/src/index.d.ts:30 - -___ - -### contractName - -• **contractName**: *string* - - - -Defined in base-contract/lib/src/index.d.ts:29 - -___ - -### `Static` deployedBytecode - -▪ **deployedBytecode**: *string* = "0x606060405236156100965763ffffffff7c010000000000000000000000000000000000000000000000000000000060003504166306fdde038114610098578063095ea7b31461014657806318160ddd1461018657806323b872dd146101a8578063313ce567146101ee57806370a082311461021457806395d89b411461024f578063a9059cbb146102fd578063dd62ed3e1461033d575bfe5b34156100a057fe5b6100a861037e565b60408051602080825283518183015283519192839290830191850190808383821561010c575b80518252602083111561010c577fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe090920191602091820191016100ce565b505050905090810190601f1680156101385780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b341561014e57fe5b61017273ffffffffffffffffffffffffffffffffffffffff600435166024356103b5565b604080519115158252519081900360200190f35b341561018e57fe5b61019661042d565b60408051918252519081900360200190f35b34156101b057fe5b61017273ffffffffffffffffffffffffffffffffffffffff60043581169060243516604435610433565b604080519115158252519081900360200190f35b34156101f657fe5b6101fe6105d4565b6040805160ff9092168252519081900360200190f35b341561021c57fe5b61019673ffffffffffffffffffffffffffffffffffffffff600435166105d9565b60408051918252519081900360200190f35b341561025757fe5b6100a8610605565b60408051602080825283518183015283519192839290830191850190808383821561010c575b80518252602083111561010c577fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe090920191602091820191016100ce565b505050905090810190601f1680156101385780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b341561030557fe5b61017273ffffffffffffffffffffffffffffffffffffffff6004351660243561063c565b604080519115158252519081900360200190f35b341561034557fe5b61019673ffffffffffffffffffffffffffffffffffffffff60043581169060243516610727565b60408051918252519081900360200190f35b60408051808201909152601181527f30782050726f746f636f6c20546f6b656e000000000000000000000000000000602082015281565b73ffffffffffffffffffffffffffffffffffffffff338116600081815260016020908152604080832094871680845294825280832086905580518681529051929493927f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925929181900390910190a35060015b92915050565b60035481565b73ffffffffffffffffffffffffffffffffffffffff808416600081815260016020908152604080832033909516835293815283822054928252819052918220548390108015906104835750828110155b80156104b6575073ffffffffffffffffffffffffffffffffffffffff841660009081526020819052604090205483810110155b156105c65773ffffffffffffffffffffffffffffffffffffffff808516600090815260208190526040808220805487019055918716815220805484900390557fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8110156105585773ffffffffffffffffffffffffffffffffffffffff808616600090815260016020908152604080832033909416835292905220805484900390555b8373ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef856040518082815260200191505060405180910390a3600191506105cb565b600091505b5b509392505050565b601281565b73ffffffffffffffffffffffffffffffffffffffff81166000908152602081905260409020545b919050565b60408051808201909152600381527f5a52580000000000000000000000000000000000000000000000000000000000602082015281565b73ffffffffffffffffffffffffffffffffffffffff3316600090815260208190526040812054829010801590610699575073ffffffffffffffffffffffffffffffffffffffff831660009081526020819052604090205482810110155b156107185773ffffffffffffffffffffffffffffffffffffffff33811660008181526020818152604080832080548890039055938716808352918490208054870190558351868152935191937fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef929081900390910190a3506001610427565b506000610427565b5b92915050565b73ffffffffffffffffffffffffffffffffffffffff8083166000908152600160209081526040808320938516835292905220545b929150505600a165627a7a72305820d984298155c708a8164f1cbf83c7275bcc6851dd082c0404013c1f4463b238fa0029" - -*Defined in [abi-gen-wrappers/src/generated-wrappers/zrx_token.ts:51](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/zrx_token.ts#L51)* - -## Methods - -### evmExecAsync - -▸ **evmExecAsync**(`input`: `Buffer`): *`Promise`* - - - -Defined in base-contract/lib/src/index.d.ts:42 - -**Parameters:** - -Name | Type | ------- | ------ | -`input` | `Buffer` | - -**Returns:** *`Promise`* - -___ - -### getLogsAsync - -▸ **getLogsAsync**<**ArgsType**>(`eventName`: [ZRXTokenEvents](#enumeration-zrxtokenevents), `blockRange`: `BlockRange`, `indexFilterValues`: `IndexedFilterValues`): *`Promise>>`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/zrx_token.ts:1496](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/zrx_token.ts#L1496)* - -Gets historical logs without creating a subscription - -**Type parameters:** - -▪ **ArgsType**: *[ZRXTokenEventArgs](#zrxtokeneventargs)* - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`eventName` | [ZRXTokenEvents](#enumeration-zrxtokenevents) | The ZRXToken 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 - -___ - -### subscribe - -▸ **subscribe**<**ArgsType**>(`eventName`: [ZRXTokenEvents](#enumeration-zrxtokenevents), `indexFilterValues`: `IndexedFilterValues`, `callback`: [EventCallback](#eventcallback)‹*`ArgsType`*›, `isVerbose`: boolean, `blockPollingIntervalMs?`: undefined | number): *string* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/zrx_token.ts:1454](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/zrx_token.ts#L1454)* - -Subscribe to an event type emitted by the ZRXToken contract. - -**Type parameters:** - -▪ **ArgsType**: *[ZRXTokenEventArgs](#zrxtokeneventargs)* - -**Parameters:** - -Name | Type | Default | Description | ------- | ------ | ------ | ------ | -`eventName` | [ZRXTokenEvents](#enumeration-zrxtokenevents) | - | The ZRXToken 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 - -___ - -### unsubscribe - -▸ **unsubscribe**(`subscriptionToken`: string): *void* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/zrx_token.ts:1479](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/zrx_token.ts#L1479)* - -Cancel a subscription - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`subscriptionToken` | string | Subscription token returned by `subscribe()` | - -**Returns:** *void* - -___ - -### unsubscribeAll - -▸ **unsubscribeAll**(): *void* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/zrx_token.ts:1485](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/zrx_token.ts#L1485)* - -Cancels all existing subscriptions - -**Returns:** *void* - -___ - -### `Static` ABI - -▸ **ABI**(): *[ContractAbi](#contractabi)* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/zrx_token.ts:1226](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/zrx_token.ts#L1226)* - -**Returns:** *[ContractAbi](#contractabi)* - -The contract ABI - -___ - -### `Static` deployAsync - -▸ **deployAsync**(`bytecode`: string, `abi`: [ContractAbi](#contractabi), `supportedProvider`: [SupportedProvider](#supportedprovider), `txDefaults`: `Partial`, `logDecodeDependencies`: object): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/zrx_token.ts:1184](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/zrx_token.ts#L1184)* - -**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 [abi-gen-wrappers/src/generated-wrappers/zrx_token.ts:1159](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/zrx_token.ts#L1159)* - -**Parameters:** - -Name | Type | ------- | ------ | -`artifact` | `ContractArtifact` \| `SimpleContractArtifact` | -`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:41 - -**Parameters:** - -Name | Type | ------- | ------ | -`inputAbi` | `DataItem`[] | -`args` | any[] | - -**Returns:** *string* - -## Object literals - -### allowance - -#### ▪ **allowance**: *object* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/zrx_token.ts:1065](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/zrx_token.ts#L1065)* - -#### callAsync - -▸ **callAsync**(`_owner`: string, `_spender`: string, `callData`: `Partial`, `defaultBlock?`: [BlockParam](#blockparam)): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/zrx_token.ts:1071](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/zrx_token.ts#L1071)* - -Sends a read-only call to the contract method. Returns the result that would happen if one were to send an -Ethereum transaction to this method, given the current state of the blockchain. Calls do not cost gas -since they don't modify state. - -**Parameters:** - -Name | Type | Default | ------- | ------ | ------ | -`_owner` | string | - | -`_spender` | string | - | -`callData` | `Partial` | {} | -`defaultBlock?` | [BlockParam](#blockparam) | - | - -**Returns:** *`Promise`* - -#### getABIDecodedReturnData - -▸ **getABIDecodedReturnData**(`returnData`: string): *`BigNumber`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/zrx_token.ts:1150](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/zrx_token.ts#L1150)* - -Decode the ABI-encoded return data from a transaction - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`returnData` | string | the data returned after transaction execution | - -**Returns:** *`BigNumber`* - -An array representing the output results in order. Keynames of nested structs are preserved. - -#### getABIDecodedTransactionData - -▸ **getABIDecodedTransactionData**(`callData`: string): *string* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/zrx_token.ts:1138](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/zrx_token.ts#L1138)* - -Decode the ABI-encoded transaction data into its input arguments - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`callData` | string | The ABI-encoded transaction data | - -**Returns:** *string* - -An array representing the input arguments in order. Keynames of nested structs are preserved. - -#### getABIEncodedTransactionData - -▸ **getABIEncodedTransactionData**(`_owner`: string, `_spender`: string): *string* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/zrx_token.ts:1123](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/zrx_token.ts#L1123)* - -Returns the ABI encoded transaction data needed to send an Ethereum transaction calling this method. Before -sending the Ethereum tx, this encoded tx data can first be sent to a separate signing service or can be used -to create a 0x transaction (see protocol spec for more details). - -**Parameters:** - -Name | Type | ------- | ------ | -`_owner` | string | -`_spender` | string | - -**Returns:** *string* - -The ABI encoded transaction data as a string - -___ - -### approve - -#### ▪ **approve**: *object* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/zrx_token.ts:131](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/zrx_token.ts#L131)* - -#### awaitTransactionSuccessAsync - -▸ **awaitTransactionSuccessAsync**(`_spender`: string, `_value`: `BigNumber`, `txData?`: `Partial`, `pollingIntervalMs?`: undefined | number, `timeoutMs?`: undefined | number): *`PromiseWithTransactionHash`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/zrx_token.ts:172](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/zrx_token.ts#L172)* - -Sends an Ethereum transaction and waits until the transaction has been successfully mined without reverting. -If the transaction was mined, but reverted, an error is thrown. - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`_spender` | string | - | -`_value` | `BigNumber` | - | -`txData?` | `Partial` | Additional data for transaction | -`pollingIntervalMs?` | undefined \| number | Interval at which to poll for success | -`timeoutMs?` | undefined \| number | - | - -**Returns:** *`PromiseWithTransactionHash`* - -A promise that resolves when the transaction is successful - -#### callAsync - -▸ **callAsync**(`_spender`: string, `_value`: `BigNumber`, `callData`: `Partial`, `defaultBlock?`: [BlockParam](#blockparam)): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/zrx_token.ts:241](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/zrx_token.ts#L241)* - -Sends a read-only call to the contract method. Returns the result that would happen if one were to send an -Ethereum transaction to this method, given the current state of the blockchain. Calls do not cost gas -since they don't modify state. - -**Parameters:** - -Name | Type | Default | ------- | ------ | ------ | -`_spender` | string | - | -`_value` | `BigNumber` | - | -`callData` | `Partial` | {} | -`defaultBlock?` | [BlockParam](#blockparam) | - | - -**Returns:** *`Promise`* - -#### estimateGasAsync - -▸ **estimateGasAsync**(`_spender`: string, `_value`: `BigNumber`, `txData?`: `Partial` | undefined): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/zrx_token.ts:200](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/zrx_token.ts#L200)* - -Estimates the gas cost of sending an Ethereum transaction calling this method with these arguments. - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`_spender` | string | - | -`_value` | `BigNumber` | - | -`txData?` | `Partial` \| undefined | Additional data for transaction | - -**Returns:** *`Promise`* - -The hash of the transaction - -#### getABIDecodedReturnData - -▸ **getABIDecodedReturnData**(`returnData`: string): *boolean* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/zrx_token.ts:320](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/zrx_token.ts#L320)* - -Decode the ABI-encoded return data from a transaction - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`returnData` | string | the data returned after transaction execution | - -**Returns:** *boolean* - -An array representing the output results in order. Keynames of nested structs are preserved. - -#### getABIDecodedTransactionData - -▸ **getABIDecodedTransactionData**(`callData`: string): *string* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/zrx_token.ts:308](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/zrx_token.ts#L308)* - -Decode the ABI-encoded transaction data into its input arguments - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`callData` | string | The ABI-encoded transaction data | - -**Returns:** *string* - -An array representing the input arguments in order. Keynames of nested structs are preserved. - -#### getABIEncodedTransactionData - -▸ **getABIEncodedTransactionData**(`_spender`: string, `_value`: `BigNumber`): *string* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/zrx_token.ts:293](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/zrx_token.ts#L293)* - -Returns the ABI encoded transaction data needed to send an Ethereum transaction calling this method. Before -sending the Ethereum tx, this encoded tx data can first be sent to a separate signing service or can be used -to create a 0x transaction (see protocol spec for more details). - -**Parameters:** - -Name | Type | ------- | ------ | -`_spender` | string | -`_value` | `BigNumber` | - -**Returns:** *string* - -The ABI encoded transaction data as a string - -#### sendTransactionAsync - -▸ **sendTransactionAsync**(`_spender`: string, `_value`: `BigNumber`, `txData?`: `Partial` | undefined): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/zrx_token.ts:138](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/zrx_token.ts#L138)* - -Sends an Ethereum transaction executing this method with the supplied parameters. This is a read/write -Ethereum operation and will cost gas. - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`_spender` | string | - | -`_value` | `BigNumber` | - | -`txData?` | `Partial` \| undefined | Additional data for transaction | - -**Returns:** *`Promise`* - -The hash of the transaction - -#### validateAndSendTransactionAsync - -▸ **validateAndSendTransactionAsync**(`_spender`: string, `_value`: `BigNumber`, `txData?`: `Partial` | undefined): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/zrx_token.ts:227](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/zrx_token.ts#L227)* - -**Parameters:** - -Name | Type | ------- | ------ | -`_spender` | string | -`_value` | `BigNumber` | -`txData?` | `Partial` \| undefined | - -**Returns:** *`Promise`* - -___ - -### balanceOf - -#### ▪ **balanceOf**: *object* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/zrx_token.ts:719](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/zrx_token.ts#L719)* - -#### callAsync - -▸ **callAsync**(`_owner`: string, `callData`: `Partial`, `defaultBlock?`: [BlockParam](#blockparam)): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/zrx_token.ts:725](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/zrx_token.ts#L725)* - -Sends a read-only call to the contract method. Returns the result that would happen if one were to send an -Ethereum transaction to this method, given the current state of the blockchain. Calls do not cost gas -since they don't modify state. - -**Parameters:** - -Name | Type | Default | ------- | ------ | ------ | -`_owner` | string | - | -`callData` | `Partial` | {} | -`defaultBlock?` | [BlockParam](#blockparam) | - | - -**Returns:** *`Promise`* - -#### getABIDecodedReturnData - -▸ **getABIDecodedReturnData**(`returnData`: string): *`BigNumber`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/zrx_token.ts:795](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/zrx_token.ts#L795)* - -Decode the ABI-encoded return data from a transaction - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`returnData` | string | the data returned after transaction execution | - -**Returns:** *`BigNumber`* - -An array representing the output results in order. Keynames of nested structs are preserved. - -#### getABIDecodedTransactionData - -▸ **getABIDecodedTransactionData**(`callData`: string): *string* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/zrx_token.ts:783](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/zrx_token.ts#L783)* - -Decode the ABI-encoded transaction data into its input arguments - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`callData` | string | The ABI-encoded transaction data | - -**Returns:** *string* - -An array representing the input arguments in order. Keynames of nested structs are preserved. - -#### getABIEncodedTransactionData - -▸ **getABIEncodedTransactionData**(`_owner`: string): *string* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/zrx_token.ts:772](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/zrx_token.ts#L772)* - -Returns the ABI encoded transaction data needed to send an Ethereum transaction calling this method. Before -sending the Ethereum tx, this encoded tx data can first be sent to a separate signing service or can be used -to create a 0x transaction (see protocol spec for more details). - -**Parameters:** - -Name | Type | ------- | ------ | -`_owner` | string | - -**Returns:** *string* - -The ABI encoded transaction data as a string - -___ - -### decimals - -#### ▪ **decimals**: *object* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/zrx_token.ts:641](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/zrx_token.ts#L641)* - -#### callAsync - -▸ **callAsync**(`callData`: `Partial`, `defaultBlock?`: [BlockParam](#blockparam)): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/zrx_token.ts:647](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/zrx_token.ts#L647)* - -Sends a read-only call to the contract method. Returns the result that would happen if one were to send an -Ethereum transaction to this method, given the current state of the blockchain. Calls do not cost gas -since they don't modify state. - -**Parameters:** - -Name | Type | Default | ------- | ------ | ------ | -`callData` | `Partial` | {} | -`defaultBlock?` | [BlockParam](#blockparam) | - | - -**Returns:** *`Promise`* - -#### getABIDecodedReturnData - -▸ **getABIDecodedReturnData**(`returnData`: string): *number* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/zrx_token.ts:711](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/zrx_token.ts#L711)* - -Decode the ABI-encoded return data from a transaction - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`returnData` | string | the data returned after transaction execution | - -**Returns:** *number* - -An array representing the output results in order. Keynames of nested structs are preserved. - -#### getABIDecodedTransactionData - -▸ **getABIDecodedTransactionData**(`callData`: string): *void* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/zrx_token.ts:699](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/zrx_token.ts#L699)* - -Decode the ABI-encoded transaction data into its input arguments - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`callData` | string | The ABI-encoded transaction data | - -**Returns:** *void* - -An array representing the input arguments in order. Keynames of nested structs are preserved. - -#### getABIEncodedTransactionData - -▸ **getABIEncodedTransactionData**(): *string* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/zrx_token.ts:689](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/zrx_token.ts#L689)* - -Returns the ABI encoded transaction data needed to send an Ethereum transaction calling this method. Before -sending the Ethereum tx, this encoded tx data can first be sent to a separate signing service or can be used -to create a 0x transaction (see protocol spec for more details). - -**Returns:** *string* - -The ABI encoded transaction data as a string - -___ - -### name - -#### ▪ **name**: *object* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/zrx_token.ts:53](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/zrx_token.ts#L53)* - -#### callAsync - -▸ **callAsync**(`callData`: `Partial`, `defaultBlock?`: [BlockParam](#blockparam)): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/zrx_token.ts:59](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/zrx_token.ts#L59)* - -Sends a read-only call to the contract method. Returns the result that would happen if one were to send an -Ethereum transaction to this method, given the current state of the blockchain. Calls do not cost gas -since they don't modify state. - -**Parameters:** - -Name | Type | Default | ------- | ------ | ------ | -`callData` | `Partial` | {} | -`defaultBlock?` | [BlockParam](#blockparam) | - | - -**Returns:** *`Promise`* - -#### getABIDecodedReturnData - -▸ **getABIDecodedReturnData**(`returnData`: string): *string* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/zrx_token.ts:123](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/zrx_token.ts#L123)* - -Decode the ABI-encoded return data from a transaction - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`returnData` | string | the data returned after transaction execution | - -**Returns:** *string* - -An array representing the output results in order. Keynames of nested structs are preserved. - -#### getABIDecodedTransactionData - -▸ **getABIDecodedTransactionData**(`callData`: string): *void* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/zrx_token.ts:111](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/zrx_token.ts#L111)* - -Decode the ABI-encoded transaction data into its input arguments - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`callData` | string | The ABI-encoded transaction data | - -**Returns:** *void* - -An array representing the input arguments in order. Keynames of nested structs are preserved. - -#### getABIEncodedTransactionData - -▸ **getABIEncodedTransactionData**(): *string* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/zrx_token.ts:101](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/zrx_token.ts#L101)* - -Returns the ABI encoded transaction data needed to send an Ethereum transaction calling this method. Before -sending the Ethereum tx, this encoded tx data can first be sent to a separate signing service or can be used -to create a 0x transaction (see protocol spec for more details). - -**Returns:** *string* - -The ABI encoded transaction data as a string - -___ - -### symbol - -#### ▪ **symbol**: *object* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/zrx_token.ts:803](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/zrx_token.ts#L803)* - -#### callAsync - -▸ **callAsync**(`callData`: `Partial`, `defaultBlock?`: [BlockParam](#blockparam)): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/zrx_token.ts:809](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/zrx_token.ts#L809)* - -Sends a read-only call to the contract method. Returns the result that would happen if one were to send an -Ethereum transaction to this method, given the current state of the blockchain. Calls do not cost gas -since they don't modify state. - -**Parameters:** - -Name | Type | Default | ------- | ------ | ------ | -`callData` | `Partial` | {} | -`defaultBlock?` | [BlockParam](#blockparam) | - | - -**Returns:** *`Promise`* - -#### getABIDecodedReturnData - -▸ **getABIDecodedReturnData**(`returnData`: string): *string* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/zrx_token.ts:873](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/zrx_token.ts#L873)* - -Decode the ABI-encoded return data from a transaction - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`returnData` | string | the data returned after transaction execution | - -**Returns:** *string* - -An array representing the output results in order. Keynames of nested structs are preserved. - -#### getABIDecodedTransactionData - -▸ **getABIDecodedTransactionData**(`callData`: string): *void* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/zrx_token.ts:861](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/zrx_token.ts#L861)* - -Decode the ABI-encoded transaction data into its input arguments - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`callData` | string | The ABI-encoded transaction data | - -**Returns:** *void* - -An array representing the input arguments in order. Keynames of nested structs are preserved. - -#### getABIEncodedTransactionData - -▸ **getABIEncodedTransactionData**(): *string* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/zrx_token.ts:851](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/zrx_token.ts#L851)* - -Returns the ABI encoded transaction data needed to send an Ethereum transaction calling this method. Before -sending the Ethereum tx, this encoded tx data can first be sent to a separate signing service or can be used -to create a 0x transaction (see protocol spec for more details). - -**Returns:** *string* - -The ABI encoded transaction data as a string - -___ - -### totalSupply - -#### ▪ **totalSupply**: *object* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/zrx_token.ts:328](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/zrx_token.ts#L328)* - -#### callAsync - -▸ **callAsync**(`callData`: `Partial`, `defaultBlock?`: [BlockParam](#blockparam)): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/zrx_token.ts:334](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/zrx_token.ts#L334)* - -Sends a read-only call to the contract method. Returns the result that would happen if one were to send an -Ethereum transaction to this method, given the current state of the blockchain. Calls do not cost gas -since they don't modify state. - -**Parameters:** - -Name | Type | Default | ------- | ------ | ------ | -`callData` | `Partial` | {} | -`defaultBlock?` | [BlockParam](#blockparam) | - | - -**Returns:** *`Promise`* - -#### getABIDecodedReturnData - -▸ **getABIDecodedReturnData**(`returnData`: string): *`BigNumber`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/zrx_token.ts:398](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/zrx_token.ts#L398)* - -Decode the ABI-encoded return data from a transaction - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`returnData` | string | the data returned after transaction execution | - -**Returns:** *`BigNumber`* - -An array representing the output results in order. Keynames of nested structs are preserved. - -#### getABIDecodedTransactionData - -▸ **getABIDecodedTransactionData**(`callData`: string): *void* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/zrx_token.ts:386](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/zrx_token.ts#L386)* - -Decode the ABI-encoded transaction data into its input arguments - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`callData` | string | The ABI-encoded transaction data | - -**Returns:** *void* - -An array representing the input arguments in order. Keynames of nested structs are preserved. - -#### getABIEncodedTransactionData - -▸ **getABIEncodedTransactionData**(): *string* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/zrx_token.ts:376](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/zrx_token.ts#L376)* - -Returns the ABI encoded transaction data needed to send an Ethereum transaction calling this method. Before -sending the Ethereum tx, this encoded tx data can first be sent to a separate signing service or can be used -to create a 0x transaction (see protocol spec for more details). - -**Returns:** *string* - -The ABI encoded transaction data as a string - -___ - -### transfer - -#### ▪ **transfer**: *object* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/zrx_token.ts:881](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/zrx_token.ts#L881)* - -#### awaitTransactionSuccessAsync - -▸ **awaitTransactionSuccessAsync**(`_to`: string, `_value`: `BigNumber`, `txData?`: `Partial`, `pollingIntervalMs?`: undefined | number, `timeoutMs?`: undefined | number): *`PromiseWithTransactionHash`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/zrx_token.ts:919](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/zrx_token.ts#L919)* - -Sends an Ethereum transaction and waits until the transaction has been successfully mined without reverting. -If the transaction was mined, but reverted, an error is thrown. - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`_to` | string | - | -`_value` | `BigNumber` | - | -`txData?` | `Partial` | Additional data for transaction | -`pollingIntervalMs?` | undefined \| number | Interval at which to poll for success | -`timeoutMs?` | undefined \| number | - | - -**Returns:** *`PromiseWithTransactionHash`* - -A promise that resolves when the transaction is successful - -#### callAsync - -▸ **callAsync**(`_to`: string, `_value`: `BigNumber`, `callData`: `Partial`, `defaultBlock?`: [BlockParam](#blockparam)): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/zrx_token.ts:981](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/zrx_token.ts#L981)* - -Sends a read-only call to the contract method. Returns the result that would happen if one were to send an -Ethereum transaction to this method, given the current state of the blockchain. Calls do not cost gas -since they don't modify state. - -**Parameters:** - -Name | Type | Default | ------- | ------ | ------ | -`_to` | string | - | -`_value` | `BigNumber` | - | -`callData` | `Partial` | {} | -`defaultBlock?` | [BlockParam](#blockparam) | - | - -**Returns:** *`Promise`* - -#### estimateGasAsync - -▸ **estimateGasAsync**(`_to`: string, `_value`: `BigNumber`, `txData?`: `Partial` | undefined): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/zrx_token.ts:947](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/zrx_token.ts#L947)* - -Estimates the gas cost of sending an Ethereum transaction calling this method with these arguments. - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`_to` | string | - | -`_value` | `BigNumber` | - | -`txData?` | `Partial` \| undefined | Additional data for transaction | - -**Returns:** *`Promise`* - -The hash of the transaction - -#### getABIDecodedReturnData - -▸ **getABIDecodedReturnData**(`returnData`: string): *boolean* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/zrx_token.ts:1057](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/zrx_token.ts#L1057)* - -Decode the ABI-encoded return data from a transaction - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`returnData` | string | the data returned after transaction execution | - -**Returns:** *boolean* - -An array representing the output results in order. Keynames of nested structs are preserved. - -#### getABIDecodedTransactionData - -▸ **getABIDecodedTransactionData**(`callData`: string): *string* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/zrx_token.ts:1045](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/zrx_token.ts#L1045)* - -Decode the ABI-encoded transaction data into its input arguments - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`callData` | string | The ABI-encoded transaction data | - -**Returns:** *string* - -An array representing the input arguments in order. Keynames of nested structs are preserved. - -#### getABIEncodedTransactionData - -▸ **getABIEncodedTransactionData**(`_to`: string, `_value`: `BigNumber`): *string* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/zrx_token.ts:1030](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/zrx_token.ts#L1030)* - -Returns the ABI encoded transaction data needed to send an Ethereum transaction calling this method. Before -sending the Ethereum tx, this encoded tx data can first be sent to a separate signing service or can be used -to create a 0x transaction (see protocol spec for more details). - -**Parameters:** - -Name | Type | ------- | ------ | -`_to` | string | -`_value` | `BigNumber` | - -**Returns:** *string* - -The ABI encoded transaction data as a string - -#### sendTransactionAsync - -▸ **sendTransactionAsync**(`_to`: string, `_value`: `BigNumber`, `txData?`: `Partial` | undefined): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/zrx_token.ts:888](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/zrx_token.ts#L888)* - -Sends an Ethereum transaction executing this method with the supplied parameters. This is a read/write -Ethereum operation and will cost gas. - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`_to` | string | - | -`_value` | `BigNumber` | - | -`txData?` | `Partial` \| undefined | Additional data for transaction | - -**Returns:** *`Promise`* - -The hash of the transaction - -#### validateAndSendTransactionAsync - -▸ **validateAndSendTransactionAsync**(`_to`: string, `_value`: `BigNumber`, `txData?`: `Partial` | undefined): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/zrx_token.ts:967](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/zrx_token.ts#L967)* - -**Parameters:** - -Name | Type | ------- | ------ | -`_to` | string | -`_value` | `BigNumber` | -`txData?` | `Partial` \| undefined | - -**Returns:** *`Promise`* - -___ - -### transferFrom - -#### ▪ **transferFrom**: *object* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/zrx_token.ts:409](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/zrx_token.ts#L409)* - -ERC20 transferFrom, modified such that an allowance of MAX_UINT represents an unlimited allowance. - -#### awaitTransactionSuccessAsync - -▸ **awaitTransactionSuccessAsync**(`_from`: string, `_to`: string, `_value`: `BigNumber`, `txData?`: `Partial`, `pollingIntervalMs?`: undefined | number, `timeoutMs?`: undefined | number): *`PromiseWithTransactionHash`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/zrx_token.ts:459](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/zrx_token.ts#L459)* - -Sends an Ethereum transaction and waits until the transaction has been successfully mined without reverting. -If the transaction was mined, but reverted, an error is thrown. - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`_from` | string | Address to transfer from. | -`_to` | string | Address to transfer to. | -`_value` | `BigNumber` | Amount to transfer. | -`txData?` | `Partial` | Additional data for transaction | -`pollingIntervalMs?` | undefined \| number | Interval at which to poll for success | -`timeoutMs?` | undefined \| number | - | - -**Returns:** *`PromiseWithTransactionHash`* - -A promise that resolves when the transaction is successful - -#### callAsync - -▸ **callAsync**(`_from`: string, `_to`: string, `_value`: `BigNumber`, `callData`: `Partial`, `defaultBlock?`: [BlockParam](#blockparam)): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/zrx_token.ts:546](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/zrx_token.ts#L546)* - -Sends a read-only call to the contract method. Returns the result that would happen if one were to send an -Ethereum transaction to this method, given the current state of the blockchain. Calls do not cost gas -since they don't modify state. - -**Parameters:** - -Name | Type | Default | Description | ------- | ------ | ------ | ------ | -`_from` | string | - | Address to transfer from. | -`_to` | string | - | Address to transfer to. | -`_value` | `BigNumber` | - | Amount to transfer. | -`callData` | `Partial` | {} | - | -`defaultBlock?` | [BlockParam](#blockparam) | - | - | - -**Returns:** *`Promise`* - -Success of transfer. - -#### estimateGasAsync - -▸ **estimateGasAsync**(`_from`: string, `_to`: string, `_value`: `BigNumber`, `txData?`: `Partial` | undefined): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/zrx_token.ts:497](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/zrx_token.ts#L497)* - -Estimates the gas cost of sending an Ethereum transaction calling this method with these arguments. - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`_from` | string | Address to transfer from. | -`_to` | string | Address to transfer to. | -`_value` | `BigNumber` | Amount to transfer. | -`txData?` | `Partial` \| undefined | Additional data for transaction | - -**Returns:** *`Promise`* - -The hash of the transaction - -#### getABIDecodedReturnData - -▸ **getABIDecodedReturnData**(`returnData`: string): *boolean* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/zrx_token.ts:633](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/zrx_token.ts#L633)* - -Decode the ABI-encoded return data from a transaction - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`returnData` | string | the data returned after transaction execution | - -**Returns:** *boolean* - -An array representing the output results in order. Keynames of nested structs are preserved. - -#### getABIDecodedTransactionData - -▸ **getABIDecodedTransactionData**(`callData`: string): *string* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/zrx_token.ts:621](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/zrx_token.ts#L621)* - -Decode the ABI-encoded transaction data into its input arguments - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`callData` | string | The ABI-encoded transaction data | - -**Returns:** *string* - -An array representing the input arguments in order. Keynames of nested structs are preserved. - -#### getABIEncodedTransactionData - -▸ **getABIEncodedTransactionData**(`_from`: string, `_to`: string, `_value`: `BigNumber`): *string* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/zrx_token.ts:604](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/zrx_token.ts#L604)* - -Returns the ABI encoded transaction data needed to send an Ethereum transaction calling this method. Before -sending the Ethereum tx, this encoded tx data can first be sent to a separate signing service or can be used -to create a 0x transaction (see protocol spec for more details). - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`_from` | string | Address to transfer from. | -`_to` | string | Address to transfer to. | -`_value` | `BigNumber` | Amount to transfer. | - -**Returns:** *string* - -The ABI encoded transaction data as a string - -#### sendTransactionAsync - -▸ **sendTransactionAsync**(`_from`: string, `_to`: string, `_value`: `BigNumber`, `txData?`: `Partial` | undefined): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/zrx_token.ts:419](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/zrx_token.ts#L419)* - -Sends an Ethereum transaction executing this method with the supplied parameters. This is a read/write -Ethereum operation and will cost gas. - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`_from` | string | Address to transfer from. | -`_to` | string | Address to transfer to. | -`_value` | `BigNumber` | Amount to transfer. | -`txData?` | `Partial` \| undefined | Additional data for transaction | - -**Returns:** *`Promise`* - -The hash of the transaction - -#### validateAndSendTransactionAsync - -▸ **validateAndSendTransactionAsync**(`_from`: string, `_to`: string, `_value`: `BigNumber`, `txData?`: `Partial` | undefined): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/zrx_token.ts:527](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/zrx_token.ts#L527)* - -**Parameters:** - -Name | Type | ------- | ------ | -`_from` | string | -`_to` | string | -`_value` | `BigNumber` | -`txData?` | `Partial` \| undefined | - -**Returns:** *`Promise`* - -
- -# Class: MetamaskSubprovider - -This class implements the [web3-provider-engine](https://github.com/MetaMask/provider-engine) -subprovider interface and the provider sendAsync interface. -It handles inconsistencies with Metamask implementations of various JSON RPC methods. -It forwards JSON RPC requests involving the domain of a signer (getAccounts, -sendTransaction, signMessage etc...) to the provider instance supplied at instantiation. All other requests -are passed onwards for subsequent subproviders to handle. - - -## Constructors - - - -\+ **new MetamaskSubprovider**(`supportedProvider`: [SupportedProvider](#supportedprovider)): *[MetamaskSubprovider](#class-metamasksubprovider)* - -*Defined in [subproviders/src/subproviders/metamask_subprovider.ts:19](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/subproviders/src/subproviders/metamask_subprovider.ts#L19)* - -Instantiates a new MetamaskSubprovider - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`supportedProvider` | [SupportedProvider](#supportedprovider) | Web3 provider that should handle all user account related requests | - -**Returns:** *[MetamaskSubprovider](#class-metamasksubprovider)* - -## Methods - -#### emitPayloadAsync - -▸ **emitPayloadAsync**(`payload`: `Partial`): *`Promise`* - - - -*Defined in [subproviders/src/subproviders/subprovider.ts:55](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/subproviders/src/subproviders/subprovider.ts#L55)* - -Emits a JSON RPC payload that will then be handled by the ProviderEngine instance -this subprovider is a part of. The payload will cascade down the subprovider middleware -stack until finding the responsible entity for handling the request. - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`payload` | `Partial` | JSON RPC payload | - -**Returns:** *`Promise`* - -JSON RPC response payload - -___ - -### handleRequest - -▸ **handleRequest**(`payload`: `JSONRPCRequestPayload`, `next`: [Callback](#callback), `end`: [ErrorCallback](#errorcallback)): *`Promise`* - -*Overrides void* - -*Defined in [subproviders/src/subproviders/metamask_subprovider.ts:39](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/subproviders/src/subproviders/metamask_subprovider.ts#L39)* - -This method conforms to the web3-provider-engine interface. -It is called internally by the ProviderEngine when it is this subproviders -turn to handle a JSON RPC request. - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`payload` | `JSONRPCRequestPayload` | JSON RPC payload | -`next` | [Callback](#callback) | Callback to call if this subprovider decides not to handle the request | -`end` | [ErrorCallback](#errorcallback) | Callback to call if subprovider handled the request and wants to pass back the request. | - -**Returns:** *`Promise`* - -___ - -### sendAsync - -▸ **sendAsync**(`payload`: `JSONRPCRequestPayload`, `callback`: [ErrorCallback](#errorcallback)): *void* - -*Defined in [subproviders/src/subproviders/metamask_subprovider.ts:117](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/subproviders/src/subproviders/metamask_subprovider.ts#L117)* - -This method conforms to the provider sendAsync interface. -Allowing the MetamaskSubprovider to be used as a generic provider (outside of Web3ProviderEngine) with the -addition of wrapping the inconsistent Metamask behaviour - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`payload` | `JSONRPCRequestPayload` | JSON RPC payload | -`callback` | [ErrorCallback](#errorcallback) | - | - -**Returns:** *void* - -The contents nested under the result key of the response body - -___ - -### setEngine - -▸ **setEngine**(`engine`: `Web3ProviderEngine`): *void* - - - -*Defined in [subproviders/src/subproviders/subprovider.ts:68](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/subproviders/src/subproviders/subprovider.ts#L68)* - -Set's the subprovider's engine to the ProviderEngine it is added to. -This is only called within the ProviderEngine source code, do not call -directly. -**Parameters:** +## Index -Name | Type | Description | ------- | ------ | ------ | -`engine` | `Web3ProviderEngine` | The ProviderEngine this subprovider is added to | +### Properties -**Returns:** *void* +* [isApproved](#isapproved) +* [signerAddress](#signeraddress) +* [validatorAddress](#validatoraddress) -
+## Properties -# Class: RPCSubprovider +### isApproved -This class implements the [web3-provider-engine](https://github.com/MetaMask/provider-engine) subprovider interface. -It forwards on JSON RPC requests to the supplied `rpcUrl` endpoint +• **isApproved**: *boolean* +*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:108](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L108)* -## Constructors +___ +### signerAddress +• **signerAddress**: *string* -\+ **new RPCSubprovider**(`rpcUrl`: string, `requestTimeoutMs`: number): *[RPCSubprovider](#class-rpcsubprovider)* +*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:106](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L106)* -*Defined in [subproviders/src/subproviders/rpc_subprovider.ts:17](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/subproviders/src/subproviders/rpc_subprovider.ts#L17)* +___ -**Parameters:** +### validatorAddress -Name | Type | Default | Description | ------- | ------ | ------ | ------ | -`rpcUrl` | string | - | URL to the backing Ethereum node to which JSON RPC requests should be sent | -`requestTimeoutMs` | number | 20000 | Amount of miliseconds to wait before timing out the JSON RPC request | +• **validatorAddress**: *string* -**Returns:** *[RPCSubprovider](#class-rpcsubprovider)* +*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:107](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L107)* -## Methods +
-### emitPayloadAsync +# Interface: ExchangeTransactionExecutionEventArgs -▸ **emitPayloadAsync**(`payload`: `Partial`): *`Promise`* +## Index +### Properties -*Defined in [subproviders/src/subproviders/subprovider.ts:55](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/subproviders/src/subproviders/subprovider.ts#L55)* +* [transactionHash](#transactionhash) -Emits a JSON RPC payload that will then be handled by the ProviderEngine instance -this subprovider is a part of. The payload will cascade down the subprovider middleware -stack until finding the responsible entity for handling the request. +## Properties -**Parameters:** +### transactionHash -Name | Type | Description | ------- | ------ | ------ | -`payload` | `Partial` | JSON RPC payload | +• **transactionHash**: *string* -**Returns:** *`Promise`* +*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:112](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L112)* -JSON RPC response payload +
-___ +# Interface: WETH9ApprovalEventArgs -### handleRequest -▸ **handleRequest**(`payload`: `JSONRPCRequestPayload`, `_next`: [Callback](#callback), `end`: [ErrorCallback](#errorcallback)): *`Promise`* +## Index -*Overrides void* +### Properties -*Defined in [subproviders/src/subproviders/rpc_subprovider.ts:38](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/subproviders/src/subproviders/rpc_subprovider.ts#L38)* +* [_owner](#_owner) +* [_spender](#_spender) +* [_value](#_value) -This method conforms to the web3-provider-engine interface. -It is called internally by the ProviderEngine when it is this subproviders -turn to handle a JSON RPC request. +## Properties -**Parameters:** +### _owner -Name | Type | Description | ------- | ------ | ------ | -`payload` | `JSONRPCRequestPayload` | JSON RPC payload | -`_next` | [Callback](#callback) | Callback to call if this subprovider decides not to handle the request | -`end` | [ErrorCallback](#errorcallback) | Callback to call if subprovider handled the request and wants to pass back the request. | +• **_owner**: *string* -**Returns:** *`Promise`* +*Defined in [abi-gen-wrappers/src/generated-wrappers/weth9.ts:51](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/weth9.ts#L51)* ___ -### setEngine +### _spender -▸ **setEngine**(`engine`: `Web3ProviderEngine`): *void* +• **_spender**: *string* + +*Defined in [abi-gen-wrappers/src/generated-wrappers/weth9.ts:52](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/weth9.ts#L52)* +___ +### _value -*Defined in [subproviders/src/subproviders/subprovider.ts:68](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/subproviders/src/subproviders/subprovider.ts#L68)* +• **_value**: *`BigNumber`* -Set's the subprovider's engine to the ProviderEngine it is added to. -This is only called within the ProviderEngine source code, do not call -directly. +*Defined in [abi-gen-wrappers/src/generated-wrappers/weth9.ts:53](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/weth9.ts#L53)* -**Parameters:** +
-Name | Type | Description | ------- | ------ | ------ | -`engine` | `Web3ProviderEngine` | The ProviderEngine this subprovider is added to | +# Interface: WETH9DepositEventArgs -**Returns:** *void* -
+## Index -# Enumeration: ERC20TokenEvents +### Properties +* [_owner](#_owner) +* [_value](#_value) -## Enumeration members +## Properties -### Approval +### _owner -• **Approval**: = "Approval" +• **_owner**: *string* -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc20_token.ts:32](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc20_token.ts#L32)* +*Defined in [abi-gen-wrappers/src/generated-wrappers/weth9.ts:63](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/weth9.ts#L63)* ___ -### Transfer +### _value -• **Transfer**: = "Transfer" +• **_value**: *`BigNumber`* -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc20_token.ts:31](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc20_token.ts#L31)* +*Defined in [abi-gen-wrappers/src/generated-wrappers/weth9.ts:64](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/weth9.ts#L64)*
-# Enumeration: ERC721TokenEvents - +# Interface: WETH9TransferEventArgs -## Enumeration members -### Approval +## Index -• **Approval**: = "Approval" +### Properties -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc721_token.ts:34](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc721_token.ts#L34)* +* [_from](#_from) +* [_to](#_to) +* [_value](#_value) -___ +## Properties -### ApprovalForAll +### _from -• **ApprovalForAll**: = "ApprovalForAll" +• **_from**: *string* -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc721_token.ts:35](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc721_token.ts#L35)* +*Defined in [abi-gen-wrappers/src/generated-wrappers/weth9.ts:57](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/weth9.ts#L57)* ___ -### Transfer - -• **Transfer**: = "Transfer" +### _to -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc721_token.ts:36](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc721_token.ts#L36)* +• **_to**: *string* -
+*Defined in [abi-gen-wrappers/src/generated-wrappers/weth9.ts:58](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/weth9.ts#L58)* -# Enumeration: ExchangeEvents +___ +### _value -## Enumeration members +• **_value**: *`BigNumber`* -### AssetProxyRegistered +*Defined in [abi-gen-wrappers/src/generated-wrappers/weth9.ts:59](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/weth9.ts#L59)* -• **AssetProxyRegistered**: = "AssetProxyRegistered" +
-*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:39](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L39)* +# Interface: WETH9WithdrawalEventArgs -___ -### Cancel +## Index -• **Cancel**: = "Cancel" +### Properties -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:40](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L40)* +* [_owner](#_owner) +* [_value](#_value) -___ +## Properties -### CancelUpTo +### _owner -• **CancelUpTo**: = "CancelUpTo" +• **_owner**: *string* -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:41](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L41)* +*Defined in [abi-gen-wrappers/src/generated-wrappers/weth9.ts:68](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/weth9.ts#L68)* ___ -### Fill +### _value -• **Fill**: = "Fill" +• **_value**: *`BigNumber`* -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:42](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L42)* +*Defined in [abi-gen-wrappers/src/generated-wrappers/weth9.ts:69](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/weth9.ts#L69)* -___ +
-### ProtocolFeeCollectorAddress +# Interface: AwaitTransactionSuccessOpts -• **ProtocolFeeCollectorAddress**: = "ProtocolFeeCollectorAddress" +Used with `awaitTransactionSuccessAsync` +* pollingIntervalMs: Determine polling intervals in milliseconds +* timeoutMs: Determines timeout in milliseconds -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:43](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L43)* -___ +## Properties -### ProtocolFeeMultiplier +### `Optional` pollingIntervalMs -• **ProtocolFeeMultiplier**: = "ProtocolFeeMultiplier" +• **pollingIntervalMs**? : *undefined | number* -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:44](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L44)* +*Defined in [base-contract/src/types.ts:39](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/base-contract/src/types.ts#L39)* ___ -### SignatureValidatorApproval +### `Optional` shouldValidate -• **SignatureValidatorApproval**: = "SignatureValidatorApproval" +• **shouldValidate**? : *undefined | false | true* -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:45](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L45)* +*Inherited from [SendTransactionOpts](#interface-sendtransactionopts).[shouldValidate](#optional-shouldvalidate)* + +*Defined in [base-contract/src/types.ts:30](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/base-contract/src/types.ts#L30)* ___ -### TransactionExecution +### `Optional` timeoutMs -• **TransactionExecution**: = "TransactionExecution" +• **timeoutMs**? : *undefined | number* -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:46](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L46)* +*Defined in [base-contract/src/types.ts:40](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/base-contract/src/types.ts#L40)*
-# Enumeration: WETH9Events +# Interface: ContractEvent <**ContractEventArgs**> +## Type parameters -## Enumeration members +▪ **ContractEventArgs** -### Approval -• **Approval**: = "Approval" +## Properties + +### address + +• **address**: *string* -*Defined in [abi-gen-wrappers/src/generated-wrappers/weth9.ts:35](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/weth9.ts#L35)* +*Defined in [base-contract/src/types.ts:13](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/base-contract/src/types.ts#L13)* ___ -### Deposit +### args -• **Deposit**: = "Deposit" +• **args**: *`ContractEventArgs`* -*Defined in [abi-gen-wrappers/src/generated-wrappers/weth9.ts:37](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/weth9.ts#L37)* +*Defined in [base-contract/src/types.ts:16](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/base-contract/src/types.ts#L16)* ___ -### Transfer +### blockHash -• **Transfer**: = "Transfer" +• **blockHash**: *string* -*Defined in [abi-gen-wrappers/src/generated-wrappers/weth9.ts:36](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/weth9.ts#L36)* +*Defined in [base-contract/src/types.ts:11](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/base-contract/src/types.ts#L11)* ___ -### Withdrawal +### blockNumber -• **Withdrawal**: = "Withdrawal" +• **blockNumber**: *number* -*Defined in [abi-gen-wrappers/src/generated-wrappers/weth9.ts:38](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/weth9.ts#L38)* +*Defined in [base-contract/src/types.ts:12](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/base-contract/src/types.ts#L12)* -
+___ -# Enumeration: ZRXTokenEvents +### event +• **event**: *string* -## Enumeration members +*Defined in [base-contract/src/types.ts:15](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/base-contract/src/types.ts#L15)* -### Approval +___ -• **Approval**: = "Approval" +### logIndex + +• **logIndex**: *number* -*Defined in [abi-gen-wrappers/src/generated-wrappers/zrx_token.ts:32](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/zrx_token.ts#L32)* +*Defined in [base-contract/src/types.ts:8](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/base-contract/src/types.ts#L8)* ___ -### Transfer +### transactionHash -• **Transfer**: = "Transfer" +• **transactionHash**: *string* -*Defined in [abi-gen-wrappers/src/generated-wrappers/zrx_token.ts:31](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/zrx_token.ts#L31)* +*Defined in [base-contract/src/types.ts:10](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/base-contract/src/types.ts#L10)* -
+___ -# Enumeration: NetworkId +### transactionIndex +• **transactionIndex**: *number* -## Enumeration members +*Defined in [base-contract/src/types.ts:9](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/base-contract/src/types.ts#L9)* -### Ganache +___ -• **Ganache**: = 50 +### type -*Defined in [contract-addresses/src/index.ts:26](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/contract-addresses/src/index.ts#L26)* +• **type**: *string* -___ +*Defined in [base-contract/src/types.ts:14](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/base-contract/src/types.ts#L14)* -### Kovan +
-• **Kovan**: = 42 +# Interface: ContractFunctionObj <**T**> -*Defined in [contract-addresses/src/index.ts:25](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/contract-addresses/src/index.ts#L25)* +## Type parameters -___ +▪ **T** -### Mainnet -• **Mainnet**: = 1 +## Methods -*Defined in [contract-addresses/src/index.ts:22](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/contract-addresses/src/index.ts#L22)* +### callAsync -___ +▸ **callAsync**(`callData?`: `Partial`, `defaultBlock?`: [BlockParam](#blockparam)): *`Promise`* -### Rinkeby +*Defined in [base-contract/src/types.ts:44](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/base-contract/src/types.ts#L44)* -• **Rinkeby**: = 4 +**Parameters:** + +Name | Type | +------ | ------ | +`callData?` | `Partial` | +`defaultBlock?` | [BlockParam](#blockparam) | -*Defined in [contract-addresses/src/index.ts:24](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/contract-addresses/src/index.ts#L24)* +**Returns:** *`Promise`* ___ -### Ropsten +### getABIEncodedTransactionData -• **Ropsten**: = 3 +▸ **getABIEncodedTransactionData**(): *string* -*Defined in [contract-addresses/src/index.ts:23](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/contract-addresses/src/index.ts#L23)* +*Defined in [base-contract/src/types.ts:45](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/base-contract/src/types.ts#L45)* -
+**Returns:** *string* +
+# Interface: ContractTxFunctionObj <**T**> -# Enumeration: BlockParamLiteral +## Type parameters +▪ **T** -## Enumeration members -### Earliest +## Methods -• **Earliest**: = "earliest" +### awaitTransactionSuccessAsync -*Defined in [ethereum-types/src/index.ts:478](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L478)* +▸ **awaitTransactionSuccessAsync**(`txData?`: `Partial`, `opts?`: [AwaitTransactionSuccessOpts](#class-awaittransactionsuccessopts)): *`PromiseWithTransactionHash`* -___ +*Defined in [base-contract/src/types.ts:50](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/base-contract/src/types.ts#L50)* -### Latest +**Parameters:** -• **Latest**: = "latest" +Name | Type | +------ | ------ | +`txData?` | `Partial` | +`opts?` | [AwaitTransactionSuccessOpts](#class-awaittransactionsuccessopts) | -*Defined in [ethereum-types/src/index.ts:479](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L479)* +**Returns:** *`PromiseWithTransactionHash`* ___ -### Pending +### callAsync -• **Pending**: = "pending" +▸ **callAsync**(`callData?`: `Partial`, `defaultBlock?`: [BlockParam](#blockparam)): *`Promise`* -*Defined in [ethereum-types/src/index.ts:480](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L480)* +*Inherited from [ContractFunctionObj](#interface-contractfunctionobj).[callAsync](#callasync)* -
+*Defined in [base-contract/src/types.ts:44](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/base-contract/src/types.ts#L44)* +**Parameters:** +Name | Type | +------ | ------ | +`callData?` | `Partial` | +`defaultBlock?` | [BlockParam](#blockparam) | +**Returns:** *`Promise`* +___ +### estimateGasAsync +▸ **estimateGasAsync**(`txData?`: `Partial`): *`Promise`* +*Defined in [base-contract/src/types.ts:54](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/base-contract/src/types.ts#L54)* +**Parameters:** +Name | Type | +------ | ------ | +`txData?` | `Partial` | +**Returns:** *`Promise`* -# Enumeration: AssetProxyId +___ +### getABIEncodedTransactionData -## Enumeration members +▸ **getABIEncodedTransactionData**(): *string* -### ERC1155 +*Inherited from [ContractFunctionObj](#interface-contractfunctionobj).[getABIEncodedTransactionData](#getabiencodedtransactiondata)* -• **ERC1155**: = "0xa7cb5fb7" +*Defined in [base-contract/src/types.ts:45](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/base-contract/src/types.ts#L45)* -*Defined in [types/src/index.ts:166](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/types/src/index.ts#L166)* +**Returns:** *string* ___ -### ERC20 +### sendTransactionAsync -• **ERC20**: = "0xf47261b0" +▸ **sendTransactionAsync**(`txData?`: `Partial`, `opts?`: [SendTransactionOpts](#class-sendtransactionopts)): *`Promise`* -*Defined in [types/src/index.ts:163](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/types/src/index.ts#L163)* +*Defined in [base-contract/src/types.ts:49](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/base-contract/src/types.ts#L49)* -___ +**Parameters:** -### ERC20Bridge +Name | Type | +------ | ------ | +`txData?` | `Partial` | +`opts?` | [SendTransactionOpts](#class-sendtransactionopts) | -• **ERC20Bridge**: = "0xdc1600f3" +**Returns:** *`Promise`* -*Defined in [types/src/index.ts:168](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/types/src/index.ts#L168)* +
-___ -### ERC721 -• **ERC721**: = "0x02571792" +# Interface: ContractAddresses -*Defined in [types/src/index.ts:164](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/types/src/index.ts#L164)* -___ +## Properties -### MultiAsset +### assetProxyOwner -• **MultiAsset**: = "0x94cfcdd7" +• **assetProxyOwner**: *string* -*Defined in [types/src/index.ts:165](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/types/src/index.ts#L165)* +*Defined in [contract-addresses/src/index.ts:12](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/contract-addresses/src/index.ts#L12)* ___ -### StaticCall +### coordinator -• **StaticCall**: = "0xc339d10a" +• **coordinator**: *string* -*Defined in [types/src/index.ts:167](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/types/src/index.ts#L167)* +*Defined in [contract-addresses/src/index.ts:18](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/contract-addresses/src/index.ts#L18)* -
+___ +### coordinatorRegistry +• **coordinatorRegistry**: *string* +*Defined in [contract-addresses/src/index.ts:17](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/contract-addresses/src/index.ts#L17)* +___ +### devUtils +• **devUtils**: *string* +*Defined in [contract-addresses/src/index.ts:22](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/contract-addresses/src/index.ts#L22)* +___ +### dutchAuction +• **dutchAuction**: *string* +*Defined in [contract-addresses/src/index.ts:16](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/contract-addresses/src/index.ts#L16)* +___ -# Enumeration: SignatureType +### erc1155Proxy +• **erc1155Proxy**: *string* -## Enumeration members +*Defined in [contract-addresses/src/index.ts:21](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/contract-addresses/src/index.ts#L21)* -### EIP1271Wallet +___ -• **EIP1271Wallet**: +### erc20BridgeProxy + +• **erc20BridgeProxy**: *string* -*Defined in [types/src/index.ts:158](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/types/src/index.ts#L158)* +*Defined in [contract-addresses/src/index.ts:26](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/contract-addresses/src/index.ts#L26)* ___ -### EIP712 +### erc20Proxy -• **EIP712**: +• **erc20Proxy**: *string* -*Defined in [types/src/index.ts:153](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/types/src/index.ts#L153)* +*Defined in [contract-addresses/src/index.ts:6](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/contract-addresses/src/index.ts#L6)* ___ -### EthSign +### erc721Proxy -• **EthSign**: +• **erc721Proxy**: *string* -*Defined in [types/src/index.ts:154](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/types/src/index.ts#L154)* +*Defined in [contract-addresses/src/index.ts:7](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/contract-addresses/src/index.ts#L7)* ___ -### Illegal +### etherToken -• **Illegal**: +• **etherToken**: *string* -*Defined in [types/src/index.ts:151](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/types/src/index.ts#L151)* +*Defined in [contract-addresses/src/index.ts:9](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/contract-addresses/src/index.ts#L9)* ___ -### Invalid +### exchange -• **Invalid**: +• **exchange**: *string* -*Defined in [types/src/index.ts:152](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/types/src/index.ts#L152)* +*Defined in [contract-addresses/src/index.ts:11](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/contract-addresses/src/index.ts#L11)* ___ -### NSignatureTypes +### exchangeV2 -• **NSignatureTypes**: +• **exchangeV2**: *string* -*Defined in [types/src/index.ts:159](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/types/src/index.ts#L159)* +*Defined in [contract-addresses/src/index.ts:10](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/contract-addresses/src/index.ts#L10)* ___ -### PreSigned +### forwarder -• **PreSigned**: +• **forwarder**: *string* -*Defined in [types/src/index.ts:157](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/types/src/index.ts#L157)* +*Defined in [contract-addresses/src/index.ts:14](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/contract-addresses/src/index.ts#L14)* ___ -### Validator +### multiAssetProxy -• **Validator**: +• **multiAssetProxy**: *string* -*Defined in [types/src/index.ts:156](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/types/src/index.ts#L156)* +*Defined in [contract-addresses/src/index.ts:19](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/contract-addresses/src/index.ts#L19)* ___ -### Wallet - -• **Wallet**: - -*Defined in [types/src/index.ts:155](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/types/src/index.ts#L155)* +### orderValidator -
+• **orderValidator**: *string* +*Defined in [contract-addresses/src/index.ts:15](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/contract-addresses/src/index.ts#L15)* +___ +### staking +• **staking**: *string* +*Defined in [contract-addresses/src/index.ts:24](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/contract-addresses/src/index.ts#L24)* +___ +### stakingProxy +• **stakingProxy**: *string* -# Interface: ERC20TokenApprovalEventArgs +*Defined in [contract-addresses/src/index.ts:25](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/contract-addresses/src/index.ts#L25)* +___ -## Index +### staticCallProxy -### Properties +• **staticCallProxy**: *string* -* [_owner](#_owner) -* [_spender](#_spender) -* [_value](#_value) +*Defined in [contract-addresses/src/index.ts:20](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/contract-addresses/src/index.ts#L20)* -## Properties +___ -### _owner +### zeroExGovernor -• **_owner**: *string* +• **zeroExGovernor**: *string* -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc20_token.ts:42](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc20_token.ts#L42)* +*Defined in [contract-addresses/src/index.ts:13](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/contract-addresses/src/index.ts#L13)* ___ -### _spender +### zrxToken -• **_spender**: *string* +• **zrxToken**: *string* -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc20_token.ts:43](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc20_token.ts#L43)* +*Defined in [contract-addresses/src/index.ts:8](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/contract-addresses/src/index.ts#L8)* ___ -### _value +### zrxVault -• **_value**: *`BigNumber`* +• **zrxVault**: *string* -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc20_token.ts:44](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc20_token.ts#L44)* +*Defined in [contract-addresses/src/index.ts:23](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/contract-addresses/src/index.ts#L23)*
-# Interface: ERC20TokenTransferEventArgs - -## Index -### Properties +# Interface: BlockRange -* [_from](#_from) -* [_to](#_to) -* [_value](#_value) -## Properties +## Properties -### _from +### fromBlock -• **_from**: *string* +• **fromBlock**: *[BlockParam](#blockparam)* -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc20_token.ts:36](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc20_token.ts#L36)* +*Defined in [ethereum-types/src/index.ts:742](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L742)* ___ -### _to - -• **_to**: *string* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc20_token.ts:37](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc20_token.ts#L37)* +### toBlock -___ +• **toBlock**: *[BlockParam](#blockparam)* -### _value +*Defined in [ethereum-types/src/index.ts:743](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L743)* -• **_value**: *`BigNumber`* +
-*Defined in [abi-gen-wrappers/src/generated-wrappers/erc20_token.ts:38](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc20_token.ts#L38)* -
-# Interface: ERC721TokenApprovalEventArgs -## Index +# Interface: CallData -### Properties -* [_approved](#_approved) -* [_owner](#_owner) -* [_tokenId](#_tokenid) +## Properties -## Properties +### `Optional` data -### _approved +• **data**? : *undefined | string* -• **_approved**: *string* +*Inherited from [CallTxDataBase](#interface-calltxdatabase).[data](#optional-data)* -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc721_token.ts:41](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc721_token.ts#L41)* +*Defined in [ethereum-types/src/index.ts:393](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L393)* ___ -### _owner +### `Optional` from -• **_owner**: *string* +• **from**? : *undefined | string* -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc721_token.ts:40](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc721_token.ts#L40)* +*Defined in [ethereum-types/src/index.ts:402](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L402)* ___ -### _tokenId +### `Optional` gas -• **_tokenId**: *`BigNumber`* +• **gas**? : *number | string | `BigNumber`* -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc721_token.ts:42](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc721_token.ts#L42)* +*Inherited from [CallTxDataBase](#interface-calltxdatabase).[gas](#optional-gas)* -
+*Defined in [ethereum-types/src/index.ts:391](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L391)* -# Interface: ERC721TokenApprovalForAllEventArgs +___ +### `Optional` gasPrice -## Index +• **gasPrice**? : *number | string | `BigNumber`* -### Properties +*Inherited from [CallTxDataBase](#interface-calltxdatabase).[gasPrice](#optional-gasprice)* -* [_approved](#_approved) -* [_operator](#_operator) -* [_owner](#_owner) +*Defined in [ethereum-types/src/index.ts:392](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L392)* -## Properties +___ -### _approved +### `Optional` nonce -• **_approved**: *boolean* +• **nonce**? : *undefined | number* + +*Inherited from [CallTxDataBase](#interface-calltxdatabase).[nonce](#optional-nonce)* -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc721_token.ts:48](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc721_token.ts#L48)* +*Defined in [ethereum-types/src/index.ts:394](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L394)* ___ -### _operator +### `Optional` to -• **_operator**: *string* +• **to**? : *undefined | string* + +*Inherited from [CallTxDataBase](#interface-calltxdatabase).[to](#optional-to)* -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc721_token.ts:47](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc721_token.ts#L47)* +*Defined in [ethereum-types/src/index.ts:389](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L389)* ___ -### _owner +### `Optional` value -• **_owner**: *string* +• **value**? : *number | string | `BigNumber`* + +*Inherited from [CallTxDataBase](#interface-calltxdatabase).[value](#optional-value)* -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc721_token.ts:46](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc721_token.ts#L46)* +*Defined in [ethereum-types/src/index.ts:390](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L390)*
-# Interface: ERC721TokenTransferEventArgs -## Index -### Properties -* [_from](#_from) -* [_to](#_to) -* [_tokenId](#_tokenid) +# Interface: CompilerOpts -## Properties -### _from +## Properties -• **_from**: *string* +### name + +• **name**: *"solc"* -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc721_token.ts:52](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc721_token.ts#L52)* +*Defined in [ethereum-types/src/index.ts:655](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L655)* ___ -### _to +### settings -• **_to**: *string* +• **settings**: *[CompilerSettings](#class-compilersettings)* -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc721_token.ts:53](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc721_token.ts#L53)* +*Defined in [ethereum-types/src/index.ts:657](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L657)* ___ -### _tokenId +### version -• **_tokenId**: *`BigNumber`* +• **version**: *string* -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc721_token.ts:54](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc721_token.ts#L54)* +*Defined in [ethereum-types/src/index.ts:656](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L656)*
-# Interface: ExchangeAssetProxyRegisteredEventArgs - - -## Index - -### Properties +# Interface: CompilerSettings -* [assetProxy](#assetproxy) -* [id](#id) -## Properties +## Properties -### assetProxy +### `Optional` evmVersion -• **assetProxy**: *string* +• **evmVersion**? : *"homestead" | "tangerineWhistle" | "spuriousDragon" | "byzantium" | "constantinople"* -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:51](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L51)* +*Defined in [ethereum-types/src/index.ts:689](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L689)* ___ -### id - -• **id**: *string* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:50](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L50)* +### `Optional` libraries -
+• **libraries**? : *undefined | object* -# Interface: ExchangeCancelEventArgs +*Defined in [ethereum-types/src/index.ts:691](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L691)* +___ -## Index +### `Optional` metadata -### Properties +• **metadata**? : *[CompilerSettingsMetadata](#class-compilersettingsmetadata)* -* [feeRecipientAddress](#feerecipientaddress) -* [makerAddress](#makeraddress) -* [makerAssetData](#makerassetdata) -* [orderHash](#orderhash) -* [senderAddress](#senderaddress) -* [takerAssetData](#takerassetdata) +*Defined in [ethereum-types/src/index.ts:690](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L690)* -## Properties +___ -### feeRecipientAddress +### `Optional` optimizer -• **feeRecipientAddress**: *string* +• **optimizer**? : *[OptimizerSettings](#class-optimizersettings)* -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:56](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L56)* +*Defined in [ethereum-types/src/index.ts:688](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L688)* ___ -### makerAddress - -• **makerAddress**: *string* +### outputSelection -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:55](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L55)* +• **outputSelection**: *object* -___ +*Defined in [ethereum-types/src/index.ts:696](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L696)* -### makerAssetData +#### Type declaration: -• **makerAssetData**: *string* +● \[▪ **fileName**: *string*\]: object -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:57](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L57)* +● \[▪ **contractName**: *string*\]: [OutputField](#outputfield)[] ___ -### orderHash - -• **orderHash**: *string* +### `Optional` remappings -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:60](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L60)* +• **remappings**? : *string[]* -___ +*Defined in [ethereum-types/src/index.ts:687](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L687)* -### senderAddress +
-• **senderAddress**: *string* +# Interface: CompilerSettingsMetadata -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:59](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L59)* -___ +## Properties -### takerAssetData +### useLiteralContent -• **takerAssetData**: *string* +• **useLiteralContent**: *true* -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:58](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L58)* +*Defined in [ethereum-types/src/index.ts:704](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L704)*
-# Interface: ExchangeCancelUpToEventArgs +# Interface: ConstructorAbi -## Index +## Properties -### Properties +### inputs -* [makerAddress](#makeraddress) -* [orderEpoch](#orderepoch) -* [orderSenderAddress](#ordersenderaddress) +• **inputs**: *[DataItem](#class-dataitem)[]* -## Properties +*Defined in [ethereum-types/src/index.ts:103](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L103)* -### makerAddress +___ -• **makerAddress**: *string* +### payable + +• **payable**: *boolean* -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:64](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L64)* +*Defined in [ethereum-types/src/index.ts:104](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L104)* ___ -### orderEpoch +### stateMutability -• **orderEpoch**: *`BigNumber`* +• **stateMutability**: *[ConstructorStateMutability](#constructorstatemutability)* -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:66](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L66)* +*Defined in [ethereum-types/src/index.ts:105](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L105)* ___ -### orderSenderAddress +### type -• **orderSenderAddress**: *string* +• **type**: *string* -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:65](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L65)* +*Defined in [ethereum-types/src/index.ts:102](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L102)*
-# Interface: ExchangeFillEventArgs - - -## Index +# Interface: ContractArtifact -### Properties +This type defines the schema of the artifact.json file generated by Sol-compiler +schemaVersion: The version of the artifact schema +contractName: The contract name it represents +chains: Chain specific information by chain (address, id, constructor args, etc...) +compilerOutput: The Solidity compiler output generated from the specified compiler input +description (http://solidity.readthedocs.io/en/v0.4.24/using-the-compiler.html#compiler-input-and-output-json-description) +compiler: The compiler settings used +sourceCodes: The source code of the contract and all it's dependencies +sources: A mapping from source filePath to sourceMap id +sourceTreeHashHex: A unique hash generated from the contract source and that of it's dependencies. +If any of the sources change, the hash would change notifying us that a re-compilation is necessary -* [feeRecipientAddress](#feerecipientaddress) -* [makerAddress](#makeraddress) -* [makerAssetData](#makerassetdata) -* [makerAssetFilledAmount](#makerassetfilledamount) -* [makerFeeAssetData](#makerfeeassetdata) -* [makerFeePaid](#makerfeepaid) -* [orderHash](#orderhash) -* [protocolFeePaid](#protocolfeepaid) -* [senderAddress](#senderaddress) -* [takerAddress](#takeraddress) -* [takerAssetData](#takerassetdata) -* [takerAssetFilledAmount](#takerassetfilledamount) -* [takerFeeAssetData](#takerfeeassetdata) -* [takerFeePaid](#takerfeepaid) -## Properties +## Properties -### feeRecipientAddress +### chains -• **feeRecipientAddress**: *string* +• **chains**: *[ContractChains](#class-contractchains)* -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:71](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L71)* +*Defined in [ethereum-types/src/index.ts:676](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L676)* ___ -### makerAddress +### compiler -• **makerAddress**: *string* +• **compiler**: *[CompilerOpts](#class-compileropts)* + +*Inherited from [ContractVersionData](#interface-contractversiondata).[compiler](#compiler)* -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:70](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L70)* +*Defined in [ethereum-types/src/index.ts:641](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L641)* ___ -### makerAssetData +### compilerOutput -• **makerAssetData**: *string* +• **compilerOutput**: *[StandardContractOutput](#class-standardcontractoutput)* + +*Inherited from [ContractVersionData](#interface-contractversiondata).[compilerOutput](#compileroutput)* -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:72](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L72)* +*Defined in [ethereum-types/src/index.ts:651](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L651)* ___ -### makerAssetFilledAmount +### contractName -• **makerAssetFilledAmount**: *`BigNumber`* +• **contractName**: *string* -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:79](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L79)* +*Defined in [ethereum-types/src/index.ts:675](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L675)* ___ -### makerFeeAssetData +### schemaVersion -• **makerFeeAssetData**: *string* +• **schemaVersion**: *string* -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:74](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L74)* +*Defined in [ethereum-types/src/index.ts:674](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L674)* ___ -### makerFeePaid - -• **makerFeePaid**: *`BigNumber`* +### sourceCodes -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:81](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L81)* +• **sourceCodes**: *object* -___ +*Inherited from [ContractVersionData](#interface-contractversiondata).[sourceCodes](#sourcecodes)* -### orderHash +*Defined in [ethereum-types/src/index.ts:647](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L647)* -• **orderHash**: *string* +#### Type declaration: -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:76](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L76)* +● \[▪ **sourceName**: *string*\]: string ___ -### protocolFeePaid - -• **protocolFeePaid**: *`BigNumber`* +### sourceTreeHashHex -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:83](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L83)* +• **sourceTreeHashHex**: *string* -___ +*Inherited from [ContractVersionData](#interface-contractversiondata).[sourceTreeHashHex](#sourcetreehashhex)* -### senderAddress +*Defined in [ethereum-types/src/index.ts:650](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L650)* -• **senderAddress**: *string* +___ -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:78](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L78)* +### sources -___ +• **sources**: *object* -### takerAddress +*Inherited from [ContractVersionData](#interface-contractversiondata).[sources](#sources)* -• **takerAddress**: *string* +*Defined in [ethereum-types/src/index.ts:642](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L642)* -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:77](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L77)* +#### Type declaration: -___ +● \[▪ **sourceName**: *string*\]: object -### takerAssetData +
-• **takerAssetData**: *string* +# Interface: ContractChainData -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:73](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L73)* -___ +## Properties -### takerAssetFilledAmount +### address -• **takerAssetFilledAmount**: *`BigNumber`* +• **address**: *string* -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:80](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L80)* +*Defined in [ethereum-types/src/index.ts:554](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L554)* ___ -### takerFeeAssetData +Args -• **takerFeeAssetData**: *string* +• **constructorArgs**: *string* -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:75](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L75)* +*Defined in [ethereum-types/src/index.ts:558](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L558)* ___ -### takerFeePaid +### links -• **takerFeePaid**: *`BigNumber`* +• **links**: *object* -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:82](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L82)* +*Defined in [ethereum-types/src/index.ts:555](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L555)* + +#### Type declaration: + +● \[▪ **linkName**: *string*\]: string
-# Interface: ExchangeProtocolFeeCollectorAddressEventArgs +# Interface: ContractChains -## Index +## Hierarchy -### Properties +* **ContractVersionData** -* [oldProtocolFeeCollector](#oldprotocolfeecollector) -* [updatedProtocolFeeCollector](#updatedprotocolfeecollector) + * [ContractArtifact](#class-contractartifact) -## Properties -### oldProtocolFeeCollector +## Properties -• **oldProtocolFeeCollector**: *string* +### compiler + +• **compiler**: *[CompilerOpts](#class-compileropts)* -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:87](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L87)* +*Defined in [ethereum-types/src/index.ts:641](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L641)* ___ -### updatedProtocolFeeCollector +### compilerOutput -• **updatedProtocolFeeCollector**: *string* +• **compilerOutput**: *[StandardContractOutput](#class-standardcontractoutput)* -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:88](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L88)* +*Defined in [ethereum-types/src/index.ts:651](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L651)* -
+___ -# Interface: ExchangeProtocolFeeMultiplierEventArgs +### sourceCodes +• **sourceCodes**: *object* -## Index +*Defined in [ethereum-types/src/index.ts:647](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L647)* -### Properties +#### Type declaration: -* [oldProtocolFeeMultiplier](#oldprotocolfeemultiplier) -* [updatedProtocolFeeMultiplier](#updatedprotocolfeemultiplier) +● \[▪ **sourceName**: *string*\]: string -## Properties +___ -### oldProtocolFeeMultiplier +### sourceTreeHashHex -• **oldProtocolFeeMultiplier**: *`BigNumber`* +• **sourceTreeHashHex**: *string* -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:92](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L92)* +*Defined in [ethereum-types/src/index.ts:650](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L650)* ___ -### updatedProtocolFeeMultiplier - -• **updatedProtocolFeeMultiplier**: *`BigNumber`* +### sources -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:93](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L93)* +• **sources**: *object* -
+*Defined in [ethereum-types/src/index.ts:642](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L642)* -# Interface: ExchangeSignatureValidatorApprovalEventArgs +#### Type declaration: +● \[▪ **sourceName**: *string*\]: object -## Index +
-### Properties +# Interface: DataItem -* [isApproved](#isapproved) -* [signerAddress](#signeraddress) -* [validatorAddress](#validatoraddress) -## Properties +## Properties -### isApproved +### `Optional` components -• **isApproved**: *boolean* +• **components**? : *[DataItem](#class-dataitem)[]* -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:99](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L99)* +*Defined in [ethereum-types/src/index.ts:137](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L137)* ___ -### signerAddress +### name -• **signerAddress**: *string* +• **name**: *string* -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:97](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L97)* +*Defined in [ethereum-types/src/index.ts:135](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L135)* ___ -### validatorAddress +### type -• **validatorAddress**: *string* +• **type**: *string* -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:98](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L98)* +*Defined in [ethereum-types/src/index.ts:136](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L136)*
-# Interface: ExchangeTransactionExecutionEventArgs +# Interface: DecodedLogArgs -## Index +## Type parameters -### Properties +▪ **A** -* [transactionHash](#transactionhash) -## Properties +## Properties -### transactionHash +### address -• **transactionHash**: *string* +• **address**: *string* + +*Inherited from [LogEntry](#interface-logentry).[address](#address)* -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:103](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L103)* +*Defined in [ethereum-types/src/index.ts:434](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L434)* -
+___ -# Interface: WETH9ApprovalEventArgs +### args +• **args**: *`A`* -## Index +*Defined in [ethereum-types/src/index.ts:417](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L417)* -### Properties +___ -* [_owner](#_owner) -* [_spender](#_spender) -* [_value](#_value) +### blockHash + +• **blockHash**: *string | null* + +*Inherited from [LogEntry](#interface-logentry).[blockHash](#blockhash)* + +*Defined in [ethereum-types/src/index.ts:432](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L432)* + +___ + +### blockNumber + +• **blockNumber**: *number | null* + +*Inherited from [LogEntry](#interface-logentry).[blockNumber](#blocknumber)* + +*Defined in [ethereum-types/src/index.ts:433](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L433)* + +___ -## Properties +### data -### _owner +• **data**: *string* -• **_owner**: *string* +*Inherited from [LogEntry](#interface-logentry).[data](#data)* -*Defined in [abi-gen-wrappers/src/generated-wrappers/weth9.ts:42](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/weth9.ts#L42)* +*Defined in [ethereum-types/src/index.ts:435](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L435)* ___ -### _spender +### event -• **_spender**: *string* +• **event**: *string* -*Defined in [abi-gen-wrappers/src/generated-wrappers/weth9.ts:43](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/weth9.ts#L43)* +*Defined in [ethereum-types/src/index.ts:416](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L416)* ___ -### _value +### logIndex -• **_value**: *`BigNumber`* +• **logIndex**: *number | null* -*Defined in [abi-gen-wrappers/src/generated-wrappers/weth9.ts:44](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/weth9.ts#L44)* +*Inherited from [LogEntry](#interface-logentry).[logIndex](#logindex)* -
+*Defined in [ethereum-types/src/index.ts:429](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L429)* -# Interface: WETH9DepositEventArgs +___ +### topics -## Index +• **topics**: *string[]* -### Properties +*Inherited from [LogEntry](#interface-logentry).[topics](#topics)* -* [_owner](#_owner) -* [_value](#_value) +*Defined in [ethereum-types/src/index.ts:436](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L436)* -## Properties +___ -### _owner +### transactionHash -• **_owner**: *string* +• **transactionHash**: *string* -*Defined in [abi-gen-wrappers/src/generated-wrappers/weth9.ts:54](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/weth9.ts#L54)* +*Inherited from [LogEntry](#interface-logentry).[transactionHash](#transactionhash)* + +*Defined in [ethereum-types/src/index.ts:431](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L431)* ___ -### _value +### transactionIndex -• **_value**: *`BigNumber`* +• **transactionIndex**: *number | null* -*Defined in [abi-gen-wrappers/src/generated-wrappers/weth9.ts:55](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/weth9.ts#L55)* +*Inherited from [LogEntry](#interface-logentry).[transactionIndex](#transactionindex)* -
+*Defined in [ethereum-types/src/index.ts:430](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L430)* -# Interface: WETH9TransferEventArgs +
-## Index -### Properties +# Interface: DevdocOutput -* [_from](#_from) -* [_to](#_to) -* [_value](#_value) -## Properties +## Properties -### _from +### `Optional` author -• **_from**: *string* +• **author**? : *undefined | string* -*Defined in [abi-gen-wrappers/src/generated-wrappers/weth9.ts:48](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/weth9.ts#L48)* +*Defined in [ethereum-types/src/index.ts:628](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L628)* ___ -### _to +### methods -• **_to**: *string* +• **methods**: *object* + +*Defined in [ethereum-types/src/index.ts:629](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L629)* + +#### Type declaration: -*Defined in [abi-gen-wrappers/src/generated-wrappers/weth9.ts:49](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/weth9.ts#L49)* +● \[▪ **signature**: *string*\]: object ___ -### _value +### `Optional` title -• **_value**: *`BigNumber`* +• **title**? : *undefined | string* -*Defined in [abi-gen-wrappers/src/generated-wrappers/weth9.ts:50](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/weth9.ts#L50)* +*Defined in [ethereum-types/src/index.ts:627](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L627)*
-# Interface: WETH9WithdrawalEventArgs +# Interface: EIP1193Provider -## Index +## Properties -### Properties +### isEIP1193 -* [_owner](#_owner) -* [_value](#_value) +• **isEIP1193**: *boolean* -## Properties +*Defined in [ethereum-types/src/index.ts:73](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L73)* -### _owner +## Methods -• **_owner**: *string* +### on -*Defined in [abi-gen-wrappers/src/generated-wrappers/weth9.ts:59](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/weth9.ts#L59)* +▸ **on**(`event`: [EIP1193Event](#eip1193event), `listener`: function): *this* -___ +*Defined in [ethereum-types/src/index.ts:75](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L75)* -### _value +**Parameters:** -• **_value**: *`BigNumber`* +▪ **event**: *[EIP1193Event](#eip1193event)* -*Defined in [abi-gen-wrappers/src/generated-wrappers/weth9.ts:60](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/weth9.ts#L60)* +▪ **listener**: *function* -
+▸ (`result`: any): *void* -# Interface: ZRXTokenApprovalEventArgs +**Parameters:** +Name | Type | +------ | ------ | +`result` | any | -## Index +**Returns:** *this* -### Properties +___ -* [_owner](#_owner) -* [_spender](#_spender) -* [_value](#_value) +### send -## Properties +▸ **send**(`method`: string, `params?`: any[]): *`Promise`* -### _owner +*Defined in [ethereum-types/src/index.ts:74](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L74)* -• **_owner**: *string* +**Parameters:** -*Defined in [abi-gen-wrappers/src/generated-wrappers/zrx_token.ts:42](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/zrx_token.ts#L42)* +Name | Type | +------ | ------ | +`method` | string | +`params?` | any[] | -___ +**Returns:** *`Promise`* -### _spender +
-• **_spender**: *string* -*Defined in [abi-gen-wrappers/src/generated-wrappers/zrx_token.ts:43](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/zrx_token.ts#L43)* -___ -### _value -• **_value**: *`BigNumber`* +# Interface: EvmBytecodeOutput -*Defined in [abi-gen-wrappers/src/generated-wrappers/zrx_token.ts:44](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/zrx_token.ts#L44)* -
+## Properties -# Interface: ZRXTokenTransferEventArgs +### object +• **object**: *string* -## Index +*Defined in [ethereum-types/src/index.ts:622](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L622)* -### Properties +___ -* [_from](#_from) -* [_to](#_to) -* [_value](#_value) +### sourceMap -## Properties +• **sourceMap**: *string* -### _from +*Defined in [ethereum-types/src/index.ts:623](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L623)* -• **_from**: *string* +
+ +# Interface: EvmOutput -*Defined in [abi-gen-wrappers/src/generated-wrappers/zrx_token.ts:36](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/zrx_token.ts#L36)* -___ +## Properties -### _to +### bytecode -• **_to**: *string* +• **bytecode**: *[EvmBytecodeOutput](#class-evmbytecodeoutput)* -*Defined in [abi-gen-wrappers/src/generated-wrappers/zrx_token.ts:37](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/zrx_token.ts#L37)* +*Defined in [ethereum-types/src/index.ts:617](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L617)* ___ -### _value +### deployedBytecode -• **_value**: *`BigNumber`* +• **deployedBytecode**: *[EvmBytecodeOutput](#class-evmbytecodeoutput)* -*Defined in [abi-gen-wrappers/src/generated-wrappers/zrx_token.ts:38](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/zrx_token.ts#L38)* +*Defined in [ethereum-types/src/index.ts:618](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L618)*
-# Interface: ContractAddresses +# Interface: FallbackAbi ## Properties -### assetProxyOwner +### payable -• **assetProxyOwner**: *string* +• **payable**: *boolean* -*Defined in [contract-addresses/src/index.ts:9](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/contract-addresses/src/index.ts#L9)* +*Defined in [ethereum-types/src/index.ts:112](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L112)* ___ -### coordinator +### type -• **coordinator**: *string* +• **type**: *string* -*Defined in [contract-addresses/src/index.ts:14](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/contract-addresses/src/index.ts#L14)* +*Defined in [ethereum-types/src/index.ts:111](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L111)* -___ +
-### coordinatorRegistry -• **coordinatorRegistry**: *string* -*Defined in [contract-addresses/src/index.ts:13](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/contract-addresses/src/index.ts#L13)* +# Interface: GanacheProvider -___ -### devUtils +## Methods -• **devUtils**: *string* +### sendAsync -*Defined in [contract-addresses/src/index.ts:18](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/contract-addresses/src/index.ts#L18)* +▸ **sendAsync**(`payload`: [JSONRPCRequestPayload](_ethereum_types_src_index_.jsonrpcrequestpayload.md), `callback`: [JSONRPCErrorCallback](#jsonrpcerrorcallback)): *void* -___ +*Defined in [ethereum-types/src/index.ts:14](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L14)* -### dutchAuction +**Parameters:** -• **dutchAuction**: *string* +Name | Type | +------ | ------ | +`payload` | [JSONRPCRequestPayload](#class-jsonrpcrequestpayload) | +`callback` | [JSONRPCErrorCallback](#jsonrpcerrorcallback) | -*Defined in [contract-addresses/src/index.ts:12](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/contract-addresses/src/index.ts#L12)* +**Returns:** *void* -___ +
-### erc1155Proxy -• **erc1155Proxy**: *string* -*Defined in [contract-addresses/src/index.ts:17](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/contract-addresses/src/index.ts#L17)* +# Interface: JSONRPCRequestPayload -___ -### erc20Proxy +## Properties -• **erc20Proxy**: *string* +### id + +• **id**: *number* -*Defined in [contract-addresses/src/index.ts:4](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/contract-addresses/src/index.ts#L4)* +*Defined in [ethereum-types/src/index.ts:330](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L330)* ___ -### erc721Proxy +### jsonrpc -• **erc721Proxy**: *string* +• **jsonrpc**: *string* -*Defined in [contract-addresses/src/index.ts:5](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/contract-addresses/src/index.ts#L5)* +*Defined in [ethereum-types/src/index.ts:331](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L331)* ___ -### etherToken +### method -• **etherToken**: *string* +• **method**: *string* -*Defined in [contract-addresses/src/index.ts:7](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/contract-addresses/src/index.ts#L7)* +*Defined in [ethereum-types/src/index.ts:329](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L329)* ___ -### exchange - -• **exchange**: *string* +### params -*Defined in [contract-addresses/src/index.ts:8](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/contract-addresses/src/index.ts#L8)* +• **params**: *any[]* -___ +*Defined in [ethereum-types/src/index.ts:328](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L328)* -### forwarder +
-• **forwarder**: *string* +# Interface: JSONRPCResponseError -*Defined in [contract-addresses/src/index.ts:10](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/contract-addresses/src/index.ts#L10)* -___ +## Properties -### multiAssetProxy +### code -• **multiAssetProxy**: *string* +• **code**: *number* -*Defined in [contract-addresses/src/index.ts:15](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/contract-addresses/src/index.ts#L15)* +*Defined in [ethereum-types/src/index.ts:336](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L336)* ___ -### orderValidator - -• **orderValidator**: *string* - -*Defined in [contract-addresses/src/index.ts:11](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/contract-addresses/src/index.ts#L11)* +### message -___ +• **message**: *string* -### staticCallProxy +*Defined in [ethereum-types/src/index.ts:335](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L335)* -• **staticCallProxy**: *string* +
-*Defined in [contract-addresses/src/index.ts:16](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/contract-addresses/src/index.ts#L16)* +# Interface: JSONRPCResponsePayload -___ -### zrxToken +## Properties -• **zrxToken**: *string* +### `Optional` error -*Defined in [contract-addresses/src/index.ts:6](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/contract-addresses/src/index.ts#L6)* +• **error**? : *[JSONRPCResponseError](#class-jsonrpcresponseerror)* -
+*Defined in [ethereum-types/src/index.ts:343](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L343)* +___ +### id -# Interface: BlockRange +• **id**: *number* +*Defined in [ethereum-types/src/index.ts:341](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L341)* -## Properties +___ -### fromBlock +### jsonrpc -• **fromBlock**: *[BlockParam](#blockparam)* +• **jsonrpc**: *string* -*Defined in [ethereum-types/src/index.ts:740](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L740)* +*Defined in [ethereum-types/src/index.ts:342](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L342)* ___ -### toBlock +### result -• **toBlock**: *[BlockParam](#blockparam)* +• **result**: *any* -*Defined in [ethereum-types/src/index.ts:741](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L741)* +*Defined in [ethereum-types/src/index.ts:340](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L340)*
@@ -16845,1497 +5599,1668 @@ ___ -# Interface: CallData - - -## Properties +# Interface: LogWithDecodedArgs <**ArgsType**> -### `Optional` data +## Type parameters -• **data**? : *undefined | string* +▪ **ArgsType**: *[DecodedLogArgs](#class-decodedlogargs)* -*Inherited from [CallTxDataBase](#interface-calltxdatabase).[data](#optional-data)* -*Defined in [ethereum-types/src/index.ts:393](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L393)* +## Properties -___ +### address -### `Optional` from +• **address**: *string* -• **from**? : *undefined | string* +*Inherited from [LogEntry](#interface-logentry).[address](#address)* -*Defined in [ethereum-types/src/index.ts:402](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L402)* +*Defined in [ethereum-types/src/index.ts:434](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L434)* ___ -### `Optional` gas +### args -• **gas**? : *number | string | `BigNumber`* +• **args**: *`ArgsType`* -*Inherited from [CallTxDataBase](#interface-calltxdatabase).[gas](#optional-gas)* +*Inherited from [DecodedLogEntry](#interface-decodedlogentry).[args](#args)* -*Defined in [ethereum-types/src/index.ts:391](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L391)* +*Defined in [ethereum-types/src/index.ts:417](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L417)* ___ -### `Optional` gasPrice +### blockHash -• **gasPrice**? : *number | string | `BigNumber`* +• **blockHash**: *string | null* -*Inherited from [CallTxDataBase](#interface-calltxdatabase).[gasPrice](#optional-gasprice)* +*Inherited from [LogEntry](#interface-logentry).[blockHash](#blockhash)* -*Defined in [ethereum-types/src/index.ts:392](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L392)* +*Defined in [ethereum-types/src/index.ts:432](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L432)* ___ -### `Optional` nonce +### blockNumber -• **nonce**? : *undefined | number* +• **blockNumber**: *number | null* -*Inherited from [CallTxDataBase](#interface-calltxdatabase).[nonce](#optional-nonce)* +*Inherited from [LogEntry](#interface-logentry).[blockNumber](#blocknumber)* -*Defined in [ethereum-types/src/index.ts:394](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L394)* +*Defined in [ethereum-types/src/index.ts:433](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L433)* ___ -### `Optional` to +### data -• **to**? : *undefined | string* +• **data**: *string* -*Inherited from [CallTxDataBase](#interface-calltxdatabase).[to](#optional-to)* +*Inherited from [LogEntry](#interface-logentry).[data](#data)* -*Defined in [ethereum-types/src/index.ts:389](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L389)* +*Defined in [ethereum-types/src/index.ts:435](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L435)* ___ -### `Optional` value - -• **value**? : *number | string | `BigNumber`* +### event -*Inherited from [CallTxDataBase](#interface-calltxdatabase).[value](#optional-value)* +• **event**: *string* -*Defined in [ethereum-types/src/index.ts:390](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L390)* +*Inherited from [DecodedLogEntry](#interface-decodedlogentry).[event](#event)* -
+*Defined in [ethereum-types/src/index.ts:416](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L416)* +___ +### logIndex +• **logIndex**: *number | null* +*Inherited from [LogEntry](#interface-logentry).[logIndex](#logindex)* -# Interface: CompilerOpts +*Defined in [ethereum-types/src/index.ts:429](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L429)* +___ -## Properties +### topics -### name +• **topics**: *string[]* -• **name**: *"solc"* +*Inherited from [LogEntry](#interface-logentry).[topics](#topics)* -*Defined in [ethereum-types/src/index.ts:655](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L655)* +*Defined in [ethereum-types/src/index.ts:436](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L436)* ___ -### settings +### transactionHash -• **settings**: *[CompilerSettings](#class-compilersettings)* +• **transactionHash**: *string* + +*Inherited from [LogEntry](#interface-logentry).[transactionHash](#transactionhash)* -*Defined in [ethereum-types/src/index.ts:657](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L657)* +*Defined in [ethereum-types/src/index.ts:431](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L431)* ___ -### version +### transactionIndex -• **version**: *string* +• **transactionIndex**: *number | null* -*Defined in [ethereum-types/src/index.ts:656](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L656)* +*Inherited from [LogEntry](#interface-logentry).[transactionIndex](#transactionindex)* + +*Defined in [ethereum-types/src/index.ts:430](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L430)*
-# Interface: CompilerSettings +# Interface: MethodAbi ## Properties -### `Optional` evmVersion +### constant -• **evmVersion**? : *"homestead" | "tangerineWhistle" | "spuriousDragon" | "byzantium" | "constantinople"* +• **constant**: *boolean* -*Defined in [ethereum-types/src/index.ts:689](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L689)* +*Defined in [ethereum-types/src/index.ts:94](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L94)* ___ -### `Optional` libraries +### inputs -• **libraries**? : *undefined | object* +• **inputs**: *[DataItem](#class-dataitem)[]* -*Defined in [ethereum-types/src/index.ts:691](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L691)* +*Defined in [ethereum-types/src/index.ts:92](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L92)* ___ -### `Optional` metadata +### name -• **metadata**? : *[CompilerSettingsMetadata](#class-compilersettingsmetadata)* +• **name**: *string* -*Defined in [ethereum-types/src/index.ts:690](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L690)* +*Defined in [ethereum-types/src/index.ts:91](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L91)* ___ -### `Optional` optimizer +### outputs -• **optimizer**? : *[OptimizerSettings](#class-optimizersettings)* +• **outputs**: *[DataItem](#class-dataitem)[]* -*Defined in [ethereum-types/src/index.ts:688](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L688)* +*Defined in [ethereum-types/src/index.ts:93](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L93)* ___ -### outputSelection +### payable -• **outputSelection**: *object* +• **payable**: *boolean* -*Defined in [ethereum-types/src/index.ts:696](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L696)* +*Defined in [ethereum-types/src/index.ts:96](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L96)* -#### Type declaration: +___ -● \[▪ **fileName**: *string*\]: object +### stateMutability -● \[▪ **contractName**: *string*\]: [OutputField](#outputfield)[] +• **stateMutability**: *[StateMutability](#statemutability)* + +*Defined in [ethereum-types/src/index.ts:95](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L95)* ___ -### `Optional` remappings +### type -• **remappings**? : *string[]* +• **type**: *string* -*Defined in [ethereum-types/src/index.ts:687](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L687)* +*Defined in [ethereum-types/src/index.ts:90](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L90)*
-# Interface: CompilerSettingsMetadata +# Interface: OptimizerSettings ## Properties -### useLiteralContent +### enabled -• **useLiteralContent**: *true* +• **enabled**: *boolean* + +*Defined in [ethereum-types/src/index.ts:708](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L708)* + +___ -*Defined in [ethereum-types/src/index.ts:704](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L704)* +### `Optional` runs + +• **runs**? : *undefined | number* + +*Defined in [ethereum-types/src/index.ts:709](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L709)*
-# Interface: ConstructorAbi -## Properties -### inputs -• **inputs**: *[DataItem](#class-dataitem)[]* +# Interface: RevertErrorAbi -*Defined in [ethereum-types/src/index.ts:103](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L103)* -___ +## Properties -### payable +### `Optional` arguments -• **payable**: *boolean* +• **arguments**? : *[DataItem](#class-dataitem)[]* -*Defined in [ethereum-types/src/index.ts:104](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L104)* +*Defined in [ethereum-types/src/index.ts:122](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L122)* ___ -### stateMutability +### name -• **stateMutability**: *[ConstructorStateMutability](#constructorstatemutability)* +• **name**: *string* -*Defined in [ethereum-types/src/index.ts:105](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L105)* +*Defined in [ethereum-types/src/index.ts:121](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L121)* ___ ### type -• **type**: *string* +• **type**: *"error"* -*Defined in [ethereum-types/src/index.ts:102](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L102)* +*Defined in [ethereum-types/src/index.ts:120](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L120)*
-# Interface: ContractArtifact - -This type defines the schema of the artifact.json file generated by Sol-compiler -schemaVersion: The version of the artifact schema -contractName: The contract name it represents -networks: Network specific information by network (address, id, constructor args, etc...) -compilerOutput: The Solidity compiler output generated from the specified compiler input -description (http://solidity.readthedocs.io/en/v0.4.24/using-the-compiler.html#compiler-input-and-output-json-description) -compiler: The compiler settings used -sourceCodes: The source code of the contract and all it's dependencies -sources: A mapping from source filePath to sourceMap id -sourceTreeHashHex: A unique hash generated from the contract source and that of it's dependencies. -If any of the sources change, the hash would change notifying us that a re-compilation is necessary -## Properties -### compiler -• **compiler**: *[CompilerOpts](#class-compileropts)* -*Inherited from [ContractVersionData](#interface-contractversiondata).[compiler](#compiler)* -*Defined in [ethereum-types/src/index.ts:641](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L641)* +# Interface: StandardContractOutput -___ -### compilerOutput +## Properties -• **compilerOutput**: *[StandardContractOutput](#class-standardcontractoutput)* +### abi -*Inherited from [ContractVersionData](#interface-contractversiondata).[compilerOutput](#compileroutput)* +• **abi**: *[ContractAbi](#contractabi)* -*Defined in [ethereum-types/src/index.ts:651](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L651)* +*Defined in [ethereum-types/src/index.ts:564](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L564)* ___ -### contractName +### `Optional` devdoc -• **contractName**: *string* +• **devdoc**? : *[DevdocOutput](#class-devdocoutput)* -*Defined in [ethereum-types/src/index.ts:675](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L675)* +*Defined in [ethereum-types/src/index.ts:566](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L566)* ___ -### networks +### evm -• **networks**: *[ContractNetworks](#class-contractnetworks)* +• **evm**: *[EvmOutput](#class-evmoutput)* -*Defined in [ethereum-types/src/index.ts:676](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L676)* +*Defined in [ethereum-types/src/index.ts:565](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L565)* -___ +
-### schemaVersion -• **schemaVersion**: *string* -*Defined in [ethereum-types/src/index.ts:674](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L674)* -___ -### sourceCodes -• **sourceCodes**: *object* -*Inherited from [ContractVersionData](#interface-contractversiondata).[sourceCodes](#sourcecodes)* -*Defined in [ethereum-types/src/index.ts:647](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L647)* -#### Type declaration: -● \[▪ **sourceName**: *string*\]: string -___ -### sourceTreeHashHex -• **sourceTreeHashHex**: *string* -*Inherited from [ContractVersionData](#interface-contractversiondata).[sourceTreeHashHex](#sourcetreehashhex)* -*Defined in [ethereum-types/src/index.ts:650](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L650)* +# Interface: TupleDataItem + + +## Properties + +### components + +• **components**: *[DataItem](#class-dataitem)[]* + +*Overrides [DataItem](_ethereum_types_src_index_.dataitem.md).[components](#optional-components)* + +*Defined in [ethereum-types/src/index.ts:141](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L141)* ___ -### sources +### name -• **sources**: *object* +• **name**: *string* -*Inherited from [ContractVersionData](#interface-contractversiondata).[sources](#sources)* +*Inherited from [DataItem](#interface-dataitem).[name](#name)* -*Defined in [ethereum-types/src/index.ts:642](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L642)* +*Defined in [ethereum-types/src/index.ts:135](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L135)* -#### Type declaration: +___ -● \[▪ **sourceName**: *string*\]: object +### type + +• **type**: *string* + +*Inherited from [DataItem](#interface-dataitem).[type](#type)* + +*Defined in [ethereum-types/src/index.ts:136](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L136)*
-# Interface: ContractNetworkData +# Interface: TxData ## Properties -### address +### `Optional` data -• **address**: *string* +• **data**? : *undefined | string* -*Defined in [ethereum-types/src/index.ts:554](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L554)* +*Inherited from [CallTxDataBase](#interface-calltxdatabase).[data](#optional-data)* + +*Defined in [ethereum-types/src/index.ts:393](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L393)* ___ -Args +### from -• **constructorArgs**: *string* +• **from**: *string* -*Defined in [ethereum-types/src/index.ts:558](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L558)* +*Defined in [ethereum-types/src/index.ts:398](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L398)* ___ -### links +### `Optional` gas -• **links**: *object* +• **gas**? : *number | string | `BigNumber`* -*Defined in [ethereum-types/src/index.ts:555](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L555)* +*Inherited from [CallTxDataBase](#interface-calltxdatabase).[gas](#optional-gas)* -#### Type declaration: +*Defined in [ethereum-types/src/index.ts:391](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L391)* -● \[▪ **linkName**: *string*\]: string +___ -
+### `Optional` gasPrice -# Interface: ContractNetworks +• **gasPrice**? : *number | string | `BigNumber`* +*Inherited from [CallTxDataBase](#interface-calltxdatabase).[gasPrice](#optional-gasprice)* -## Hierarchy +*Defined in [ethereum-types/src/index.ts:392](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L392)* -* **ContractVersionData** +___ - * [ContractArtifact](#class-contractartifact) +### `Optional` nonce + +• **nonce**? : *undefined | number* +*Inherited from [CallTxDataBase](#interface-calltxdatabase).[nonce](#optional-nonce)* -## Properties +*Defined in [ethereum-types/src/index.ts:394](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L394)* -### compiler +___ -• **compiler**: *[CompilerOpts](#class-compileropts)* +### `Optional` to + +• **to**? : *undefined | string* + +*Inherited from [CallTxDataBase](#interface-calltxdatabase).[to](#optional-to)* -*Defined in [ethereum-types/src/index.ts:641](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L641)* +*Defined in [ethereum-types/src/index.ts:389](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L389)* ___ -### compilerOutput +### `Optional` value -• **compilerOutput**: *[StandardContractOutput](#class-standardcontractoutput)* +• **value**? : *number | string | `BigNumber`* + +*Inherited from [CallTxDataBase](#interface-calltxdatabase).[value](#optional-value)* -*Defined in [ethereum-types/src/index.ts:651](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L651)* +*Defined in [ethereum-types/src/index.ts:390](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L390)* -___ +
-### sourceCodes +# Interface: TxDataPayable -• **sourceCodes**: *object* -*Defined in [ethereum-types/src/index.ts:647](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L647)* +## Properties -#### Type declaration: +### `Optional` data -● \[▪ **sourceName**: *string*\]: string +• **data**? : *undefined | string* + +*Inherited from [CallTxDataBase](#interface-calltxdatabase).[data](#optional-data)* + +*Defined in [ethereum-types/src/index.ts:393](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L393)* ___ -### sourceTreeHashHex +### from + +• **from**: *string* -• **sourceTreeHashHex**: *string* +*Inherited from [TxData](#interface-txdata).[from](#from)* -*Defined in [ethereum-types/src/index.ts:650](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L650)* +*Defined in [ethereum-types/src/index.ts:398](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L398)* ___ -### sources +### `Optional` gas -• **sources**: *object* +• **gas**? : *number | string | `BigNumber`* -*Defined in [ethereum-types/src/index.ts:642](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L642)* +*Inherited from [CallTxDataBase](#interface-calltxdatabase).[gas](#optional-gas)* -#### Type declaration: +*Defined in [ethereum-types/src/index.ts:391](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L391)* -● \[▪ **sourceName**: *string*\]: object +___ -
+### `Optional` gasPrice -# Interface: DataItem +• **gasPrice**? : *number | string | `BigNumber`* +*Inherited from [CallTxDataBase](#interface-calltxdatabase).[gasPrice](#optional-gasprice)* -## Properties +*Defined in [ethereum-types/src/index.ts:392](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L392)* -### `Optional` components +___ -• **components**? : *[DataItem](#class-dataitem)[]* +### `Optional` nonce + +• **nonce**? : *undefined | number* -*Defined in [ethereum-types/src/index.ts:137](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L137)* +*Inherited from [CallTxDataBase](#interface-calltxdatabase).[nonce](#optional-nonce)* + +*Defined in [ethereum-types/src/index.ts:394](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L394)* ___ -### name +### `Optional` to -• **name**: *string* +• **to**? : *undefined | string* + +*Inherited from [CallTxDataBase](#interface-calltxdatabase).[to](#optional-to)* -*Defined in [ethereum-types/src/index.ts:135](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L135)* +*Defined in [ethereum-types/src/index.ts:389](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L389)* ___ -### type +### `Optional` value -• **type**: *string* +• **value**? : *`BigNumber`* -*Defined in [ethereum-types/src/index.ts:136](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L136)* +*Overrides [CallTxDataBase](_ethereum_types_src_index_.calltxdatabase.md).[value](#optional-value)* + +*Defined in [ethereum-types/src/index.ts:442](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L442)*
-# Interface: DecodedLogArgs +# Interface: Web3JsV1Provider +Web3.js version 1 provider interface +This provider interface was implemented in the pre-1.0Beta releases for Web3.js. +This interface allowed sending synchonous requests, support for which was later dropped. -## Type parameters -▪ **A** +## Methods +### send -## Properties +▸ **send**(`payload`: [JSONRPCRequestPayload](_ethereum_types_src_index_.jsonrpcrequestpayload.md)): *[JSONRPCResponsePayload](#class-jsonrpcresponsepayload)* -### address +*Defined in [ethereum-types/src/index.ts:45](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L45)* -• **address**: *string* +**Parameters:** -*Inherited from [LogEntry](#interface-logentry).[address](#address)* +Name | Type | +------ | ------ | +`payload` | [JSONRPCRequestPayload](#class-jsonrpcrequestpayload) | -*Defined in [ethereum-types/src/index.ts:434](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L434)* +**Returns:** *[JSONRPCResponsePayload](#class-jsonrpcresponsepayload)* ___ -### args - -• **args**: *`A`* +### sendAsync -*Defined in [ethereum-types/src/index.ts:417](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L417)* +▸ **sendAsync**(`payload`: [JSONRPCRequestPayload](_ethereum_types_src_index_.jsonrpcrequestpayload.md), `callback`: [JSONRPCErrorCallback](#jsonrpcerrorcallback)): *void* -___ +*Defined in [ethereum-types/src/index.ts:44](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L44)* -### blockHash +**Parameters:** -• **blockHash**: *string | null* +Name | Type | +------ | ------ | +`payload` | [JSONRPCRequestPayload](#class-jsonrpcrequestpayload) | +`callback` | [JSONRPCErrorCallback](#jsonrpcerrorcallback) | -*Inherited from [LogEntry](#interface-logentry).[blockHash](#blockhash)* +**Returns:** *void* -*Defined in [ethereum-types/src/index.ts:432](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L432)* +
-___ +# Interface: Web3JsV2Provider -### blockNumber +Web3.js version 2 provider interface +This provider interface was used in a couple of Web3.js 1.0 beta releases +before the first attempts to conform to EIP1193 -• **blockNumber**: *number | null* -*Inherited from [LogEntry](#interface-logentry).[blockNumber](#blocknumber)* +## Methods -*Defined in [ethereum-types/src/index.ts:433](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L433)* +### send -___ +▸ **send**(`payload`: [JSONRPCRequestPayload](_ethereum_types_src_index_.jsonrpcrequestpayload.md), `callback`: [JSONRPCErrorCallback](#jsonrpcerrorcallback)): *void* -### data +*Defined in [ethereum-types/src/index.ts:54](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L54)* -• **data**: *string* +**Parameters:** -*Inherited from [LogEntry](#interface-logentry).[data](#data)* +Name | Type | +------ | ------ | +`payload` | [JSONRPCRequestPayload](#class-jsonrpcrequestpayload) | +`callback` | [JSONRPCErrorCallback](#jsonrpcerrorcallback) | -*Defined in [ethereum-types/src/index.ts:435](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L435)* +**Returns:** *void* -___ +
-### event +# Interface: Web3JsV3Provider -• **event**: *string* +Web3.js version 3 provider interface +This provider interface was implemented with the hopes for conforming to the EIP1193 spec, +however it does not conform entirely. -*Defined in [ethereum-types/src/index.ts:416](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L416)* -___ +## Methods -### logIndex +### send -• **logIndex**: *number | null* +▸ **send**(`method`: string, `params?`: any[]): *`Promise`* -*Inherited from [LogEntry](#interface-logentry).[logIndex](#logindex)* +*Defined in [ethereum-types/src/index.ts:63](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L63)* -*Defined in [ethereum-types/src/index.ts:429](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L429)* +**Parameters:** -___ +Name | Type | +------ | ------ | +`method` | string | +`params?` | any[] | -### topics +**Returns:** *`Promise`* -• **topics**: *string[]* +
-*Inherited from [LogEntry](#interface-logentry).[topics](#topics)* +# Interface: ZeroExProvider -*Defined in [ethereum-types/src/index.ts:436](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L436)* +The interface for the provider used internally by 0x libraries +Any property we use from any SupportedProvider should we explicitly +add here -___ -### transactionHash +## Properties -• **transactionHash**: *string* +### `Optional` isMetaMask -*Inherited from [LogEntry](#interface-logentry).[transactionHash](#transactionhash)* +• **isMetaMask**? : *undefined | false | true* -*Defined in [ethereum-types/src/index.ts:431](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L431)* +*Defined in [ethereum-types/src/index.ts:31](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L31)* ___ -### transactionIndex - -• **transactionIndex**: *number | null* +### `Optional` isParity -*Inherited from [LogEntry](#interface-logentry).[transactionIndex](#transactionindex)* +• **isParity**? : *undefined | false | true* -*Defined in [ethereum-types/src/index.ts:430](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L430)* +*Defined in [ethereum-types/src/index.ts:32](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L32)* -
+___ +### `Optional` isZeroExProvider +• **isZeroExProvider**? : *undefined | false | true* -# Interface: DevdocOutput +*Defined in [ethereum-types/src/index.ts:30](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L30)* +## Methods -## Properties +### `Optional` enable -### `Optional` author +▸ **enable**(): *`Promise`* -• **author**? : *undefined | string* +*Defined in [ethereum-types/src/index.ts:34](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L34)* -*Defined in [ethereum-types/src/index.ts:628](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L628)* +**Returns:** *`Promise`* ___ -### methods +### sendAsync -• **methods**: *object* +▸ **sendAsync**(`payload`: [JSONRPCRequestPayload](_ethereum_types_src_index_.jsonrpcrequestpayload.md), `callback`: [JSONRPCErrorCallback](#jsonrpcerrorcallback)): *void* -*Defined in [ethereum-types/src/index.ts:629](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L629)* +*Defined in [ethereum-types/src/index.ts:35](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L35)* -#### Type declaration: +**Parameters:** -● \[▪ **signature**: *string*\]: object +Name | Type | +------ | ------ | +`payload` | [JSONRPCRequestPayload](#class-jsonrpcrequestpayload) | +`callback` | [JSONRPCErrorCallback](#jsonrpcerrorcallback) | + +**Returns:** *void* ___ -### `Optional` title +### `Optional` stop -• **title**? : *undefined | string* +▸ **stop**(): *void* -*Defined in [ethereum-types/src/index.ts:627](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L627)* +*Defined in [ethereum-types/src/index.ts:33](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L33)* + +**Returns:** *void*
-# Interface: EIP1193Provider -## Properties -### isEIP1193 -• **isEIP1193**: *boolean* -*Defined in [ethereum-types/src/index.ts:73](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L73)* -## Methods +# Class: DevUtilsContract -### on -▸ **on**(`event`: [EIP1193Event](#eip1193event), `listener`: function): *this* +## Constructors -*Defined in [ethereum-types/src/index.ts:75](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L75)* -**Parameters:** -▪ **event**: *[EIP1193Event](#eip1193event)* +\+ **new DevUtilsContract**(`address`: string, `supportedProvider`: [SupportedProvider](#supportedprovider), `txDefaults?`: `Partial`, `logDecodeDependencies?`: undefined | object, `deployedBytecode`: string | undefined): *[DevUtilsContract](#class-devutilscontract)* -▪ **listener**: *function* +*Overrides void* -▸ (`result`: any): *void* +*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:3929](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L3929)* **Parameters:** -Name | Type | ------- | ------ | -`result` | any | +Name | Type | Default | +------ | ------ | ------ | +`address` | string | - | +`supportedProvider` | [SupportedProvider](#supportedprovider) | - | +`txDefaults?` | `Partial` | - | +`logDecodeDependencies?` | undefined \| object | - | +`deployedBytecode` | string \| undefined | DevUtilsContract.deployedBytecode | -**Returns:** *this* +**Returns:** *[DevUtilsContract](#class-devutilscontract)* -___ +## Properties -### send +### `Optional` _deployedBytecodeIfExists -▸ **send**(`method`: string, `params?`: any[]): *`Promise`* +• **_deployedBytecodeIfExists**? : *`Buffer`* -*Defined in [ethereum-types/src/index.ts:74](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L74)* -**Parameters:** -Name | Type | ------- | ------ | -`method` | string | -`params?` | any[] | +Defined in base-contract/lib/src/index.d.ts:32 -**Returns:** *`Promise`* +___ -
+### abi +• **abi**: *[ContractAbi](#contractabi)* +Defined in base-contract/lib/src/index.d.ts:28 -# Interface: EvmBytecodeOutput +___ +### address -## Properties +• **address**: *string* -### object -• **object**: *string* -*Defined in [ethereum-types/src/index.ts:622](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L622)* +Defined in base-contract/lib/src/index.d.ts:29 ___ -### sourceMap - -• **sourceMap**: *string* +Args -*Defined in [ethereum-types/src/index.ts:623](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L623)* +• **constructorArgs**: *any[]* -
-# Interface: EvmOutput +Defined in base-contract/lib/src/index.d.ts:31 -## Properties +___ -### bytecode +### contractName -• **bytecode**: *[EvmBytecodeOutput](#class-evmbytecodeoutput)* +• **contractName**: *string* -*Defined in [ethereum-types/src/index.ts:617](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L617)* -___ -### deployedBytecode +Defined in base-contract/lib/src/index.d.ts:30 -• **deployedBytecode**: *[EvmBytecodeOutput](#class-evmbytecodeoutput)* +## Methods -*Defined in [ethereum-types/src/index.ts:618](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L618)* +### decodeAssetProxyDispatchError -
+▸ **decodeAssetProxyDispatchError**(`encoded`: string): *`ContractFunctionObj<[number, string, string]>`* -# Interface: FallbackAbi +*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:1516](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L1516)* +Decompose an ABI-encoded AssetProxyDispatchError. -## Properties +**Parameters:** -### payable +Name | Type | Description | +------ | ------ | ------ | +`encoded` | string | ABI-encoded revert error. | -• **payable**: *boolean* +**Returns:** *`ContractFunctionObj<[number, string, string]>`* -*Defined in [ethereum-types/src/index.ts:112](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L112)* +errorCode The error code.orderHash Hash of the order being dispatched.assetData Asset data of the order being dispatched. ___ -### type +### decodeAssetProxyExistsError -• **type**: *string* +▸ **decodeAssetProxyExistsError**(`encoded`: string): *`ContractFunctionObj<[string, string]>`* -*Defined in [ethereum-types/src/index.ts:111](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L111)* +*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:1564](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L1564)* -
+Decompose an ABI-encoded AssetProxyExistsError. + +**Parameters:** +Name | Type | Description | +------ | ------ | ------ | +`encoded` | string | ABI-encoded revert error. | +**Returns:** *`ContractFunctionObj<[string, string]>`* -# Interface: GanacheProvider +assetProxyId Id of asset proxy.assetProxyAddress The address of the asset proxy. +___ -## Methods +### decodeAssetProxyId -### sendAsync +▸ **decodeAssetProxyId**(`assetData`: string): *`ContractFunctionObj`* -▸ **sendAsync**(`payload`: [JSONRPCRequestPayload](_ethereum_types_src_index_.jsonrpcrequestpayload.md), `callback`: [JSONRPCErrorCallback](#jsonrpcerrorcallback)): *void* +*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:1610](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L1610)* -*Defined in [ethereum-types/src/index.ts:14](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L14)* +Decode AssetProxy identifier **Parameters:** -Name | Type | ------- | ------ | -`payload` | [JSONRPCRequestPayload](#class-jsonrpcrequestpayload) | -`callback` | [JSONRPCErrorCallback](#jsonrpcerrorcallback) | +Name | Type | Description | +------ | ------ | ------ | +`assetData` | string | AssetProxy-compliant asset data describing an ERC-20, ERC- 721, ERC1155, or MultiAsset asset. | -**Returns:** *void* +**Returns:** *`ContractFunctionObj`* -
+The AssetProxy identifier +___ +### decodeAssetProxyTransferError -# Interface: JSONRPCRequestPayload +▸ **decodeAssetProxyTransferError**(`encoded`: string): *`ContractFunctionObj<[string, string, string]>`* +*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:1653](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L1653)* -## Properties +Decompose an ABI-encoded AssetProxyTransferError. -### id +**Parameters:** -• **id**: *number* +Name | Type | Description | +------ | ------ | ------ | +`encoded` | string | ABI-encoded revert error. | -*Defined in [ethereum-types/src/index.ts:330](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L330)* +**Returns:** *`ContractFunctionObj<[string, string, string]>`* -___ +orderHash Hash of the order being dispatched.assetData Asset data of the order being dispatched.errorData ABI-encoded revert data from the asset proxy. -### jsonrpc +___ -• **jsonrpc**: *string* +### decodeEIP1271SignatureError -*Defined in [ethereum-types/src/index.ts:331](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L331)* +▸ **decodeEIP1271SignatureError**(`encoded`: string): *`ContractFunctionObj<[string, string, string, string]>`* -___ +*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:1701](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L1701)* -### method +Decompose an ABI-encoded SignatureValidatorError. -• **method**: *string* +**Parameters:** -*Defined in [ethereum-types/src/index.ts:329](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L329)* +Name | Type | Description | +------ | ------ | ------ | +`encoded` | string | ABI-encoded revert error. | -___ +**Returns:** *`ContractFunctionObj<[string, string, string, string]>`* -### params +signerAddress The expected signer of the hash.signature The full signature bytes.errorData The revert data thrown by the validator contract. -• **params**: *any[]* +___ -*Defined in [ethereum-types/src/index.ts:328](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L328)* +### decodeERC1155AssetData -
+▸ **decodeERC1155AssetData**(`assetData`: string): *`ContractFunctionObj<[string, string, BigNumber[], BigNumber[], string]>`* -# Interface: JSONRPCResponseError +*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:1750](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L1750)* +Decode ERC-1155 asset data from the format described in the AssetProxy contract specification. -## Properties +**Parameters:** -### code +Name | Type | Description | +------ | ------ | ------ | +`assetData` | string | AssetProxy-compliant asset data describing an ERC-1155 set of assets. | -• **code**: *number* +**Returns:** *`ContractFunctionObj<[string, string, BigNumber[], BigNumber[], string]>`* -*Defined in [ethereum-types/src/index.ts:336](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L336)* +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`. ___ -### message - -• **message**: *string* - -*Defined in [ethereum-types/src/index.ts:335](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L335)* +### decodeERC20AssetData -
+▸ **decodeERC20AssetData**(`assetData`: string): *`ContractFunctionObj<[string, string]>`* -# Interface: JSONRPCResponsePayload +*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:1802](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L1802)* +Decode ERC-20 asset data from the format described in the AssetProxy contract specification. -## Properties +**Parameters:** -### `Optional` error +Name | Type | Description | +------ | ------ | ------ | +`assetData` | string | AssetProxy-compliant asset data describing an ERC-20 asset. | -• **error**? : *[JSONRPCResponseError](#class-jsonrpcresponseerror)* +**Returns:** *`ContractFunctionObj<[string, string]>`* -*Defined in [ethereum-types/src/index.ts:343](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L343)* +The AssetProxy identifier, and the address of the ERC-20 contract hosting this asset. ___ -### id +### decodeERC721AssetData -• **id**: *number* +▸ **decodeERC721AssetData**(`assetData`: string): *`ContractFunctionObj<[string, string, BigNumber]>`* -*Defined in [ethereum-types/src/index.ts:341](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L341)* +*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:1848](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L1848)* -___ +Decode ERC-721 asset data from the format described in the AssetProxy contract specification. -### jsonrpc +**Parameters:** -• **jsonrpc**: *string* +Name | Type | Description | +------ | ------ | ------ | +`assetData` | string | AssetProxy-compliant asset data describing an ERC-721 asset. | -*Defined in [ethereum-types/src/index.ts:342](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L342)* +**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. ___ -### result +### decodeExchangeInvalidContextError -• **result**: *any* +▸ **decodeExchangeInvalidContextError**(`encoded`: string): *`ContractFunctionObj<[number, string, string]>`* -*Defined in [ethereum-types/src/index.ts:340](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L340)* +*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:1896](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L1896)* -
+Decompose an ABI-encoded OrderStatusError. +**Parameters:** +Name | Type | Description | +------ | ------ | ------ | +`encoded` | string | ABI-encoded revert error. | +**Returns:** *`ContractFunctionObj<[number, string, string]>`* +errorCode Error code that corresponds to invalid maker, taker, or sender.orderHash The order hash.contextAddress The maker, taker, or sender address -# Interface: LogWithDecodedArgs <**ArgsType**> +___ -## Type parameters +### decodeFillError -▪ **ArgsType**: *[DecodedLogArgs](#class-decodedlogargs)* +▸ **decodeFillError**(`encoded`: string): *`ContractFunctionObj<[number, string]>`* +*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:1945](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L1945)* -## Properties +Decompose an ABI-encoded FillError. -### address +**Parameters:** -• **address**: *string* +Name | Type | Description | +------ | ------ | ------ | +`encoded` | string | ABI-encoded revert error. | -*Inherited from [LogEntry](#interface-logentry).[address](#address)* +**Returns:** *`ContractFunctionObj<[number, string]>`* -*Defined in [ethereum-types/src/index.ts:434](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L434)* +errorCode The error code.orderHash The order hash. ___ -### args - -• **args**: *`ArgsType`* +### decodeIncompleteFillError -*Inherited from [DecodedLogEntry](#interface-decodedlogentry).[args](#args)* +▸ **decodeIncompleteFillError**(`encoded`: string): *`ContractFunctionObj<[number, BigNumber, BigNumber]>`* -*Defined in [ethereum-types/src/index.ts:417](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L417)* +*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:1988](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L1988)* -___ +Decompose an ABI-encoded IncompleteFillError. -### blockHash +**Parameters:** -• **blockHash**: *string | null* +Name | Type | Description | +------ | ------ | ------ | +`encoded` | string | ABI-encoded revert error. | -*Inherited from [LogEntry](#interface-logentry).[blockHash](#blockhash)* +**Returns:** *`ContractFunctionObj<[number, BigNumber, BigNumber]>`* -*Defined in [ethereum-types/src/index.ts:432](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L432)* +orderHash Hash of the order being filled. ___ -### blockNumber - -• **blockNumber**: *number | null* +### decodeMultiAssetData -*Inherited from [LogEntry](#interface-logentry).[blockNumber](#blocknumber)* +▸ **decodeMultiAssetData**(`assetData`: string): *`ContractFunctionObj<[string, BigNumber[], string[]]>`* -*Defined in [ethereum-types/src/index.ts:433](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L433)* +*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:2036](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L2036)* -___ +Decode multi-asset data from the format described in the AssetProxy contract specification. -### data +**Parameters:** -• **data**: *string* +Name | Type | Description | +------ | ------ | ------ | +`assetData` | string | AssetProxy-compliant data describing a multi-asset basket. | -*Inherited from [LogEntry](#interface-logentry).[data](#data)* +**Returns:** *`ContractFunctionObj<[string, BigNumber[], string[]]>`* -*Defined in [ethereum-types/src/index.ts:435](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L435)* +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. ___ -### event - -• **event**: *string* +### decodeNegativeSpreadError -*Inherited from [DecodedLogEntry](#interface-decodedlogentry).[event](#event)* +▸ **decodeNegativeSpreadError**(`encoded`: string): *`ContractFunctionObj<[string, string]>`* -*Defined in [ethereum-types/src/index.ts:416](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L416)* +*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:2084](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L2084)* -___ +Decompose an ABI-encoded NegativeSpreadError. -### logIndex +**Parameters:** -• **logIndex**: *number | null* +Name | Type | Description | +------ | ------ | ------ | +`encoded` | string | ABI-encoded revert error. | -*Inherited from [LogEntry](#interface-logentry).[logIndex](#logindex)* +**Returns:** *`ContractFunctionObj<[string, string]>`* -*Defined in [ethereum-types/src/index.ts:429](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L429)* +leftOrderHash Hash of the left order being matched.rightOrderHash Hash of the right order being matched. ___ -### topics - -• **topics**: *string[]* +### decodeOrderEpochError -*Inherited from [LogEntry](#interface-logentry).[topics](#topics)* +▸ **decodeOrderEpochError**(`encoded`: string): *`ContractFunctionObj<[string, string, BigNumber]>`* -*Defined in [ethereum-types/src/index.ts:436](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L436)* +*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:2129](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L2129)* -___ +Decompose an ABI-encoded OrderEpochError. -### transactionHash +**Parameters:** -• **transactionHash**: *string* +Name | Type | Description | +------ | ------ | ------ | +`encoded` | string | ABI-encoded revert error. | -*Inherited from [LogEntry](#interface-logentry).[transactionHash](#transactionhash)* +**Returns:** *`ContractFunctionObj<[string, string, BigNumber]>`* -*Defined in [ethereum-types/src/index.ts:431](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L431)* +makerAddress The order maker.orderSenderAddress The order sender.currentEpoch The current epoch for the maker. ___ -### transactionIndex +### decodeOrderStatusError -• **transactionIndex**: *number | null* +▸ **decodeOrderStatusError**(`encoded`: string): *`ContractFunctionObj<[string, number]>`* -*Inherited from [LogEntry](#interface-logentry).[transactionIndex](#transactionindex)* +*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:2177](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L2177)* -*Defined in [ethereum-types/src/index.ts:430](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L430)* +Decompose an ABI-encoded OrderStatusError. -
+**Parameters:** -# Interface: MethodAbi +Name | Type | Description | +------ | ------ | ------ | +`encoded` | string | ABI-encoded revert error. | +**Returns:** *`ContractFunctionObj<[string, number]>`* -## Properties +orderHash The order hash.orderStatus The order status. -### constant +___ -• **constant**: *boolean* +### decodeSignatureError -*Defined in [ethereum-types/src/index.ts:94](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L94)* +▸ **decodeSignatureError**(`encoded`: string): *`ContractFunctionObj<[number, string, string, string]>`* -___ +*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:2222](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L2222)* -### inputs +Decompose an ABI-encoded SignatureError. -• **inputs**: *[DataItem](#class-dataitem)[]* +**Parameters:** + +Name | Type | Description | +------ | ------ | ------ | +`encoded` | string | ABI-encoded revert error. | + +**Returns:** *`ContractFunctionObj<[number, string, string, string]>`* -*Defined in [ethereum-types/src/index.ts:92](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L92)* +errorCode The error code.signerAddress The expected signer of the hash.signature The full signature. ___ -### name +### decodeSignatureValidatorNotApprovedError -• **name**: *string* +▸ **decodeSignatureValidatorNotApprovedError**(`encoded`: string): *`ContractFunctionObj<[string, string]>`* -*Defined in [ethereum-types/src/index.ts:91](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L91)* +*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:2268](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L2268)* -___ +Decompose an ABI-encoded SignatureValidatorNotApprovedError. -### outputs +**Parameters:** -• **outputs**: *[DataItem](#class-dataitem)[]* +Name | Type | Description | +------ | ------ | ------ | +`encoded` | string | ABI-encoded revert error. | -*Defined in [ethereum-types/src/index.ts:93](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L93)* +**Returns:** *`ContractFunctionObj<[string, string]>`* -___ +signerAddress The expected signer of the hash.validatorAddress The expected validator. -### payable +___ -• **payable**: *boolean* +### decodeSignatureWalletError -*Defined in [ethereum-types/src/index.ts:96](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L96)* +▸ **decodeSignatureWalletError**(`encoded`: string): *`ContractFunctionObj<[string, string, string, string]>`* -___ +*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:2316](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L2316)* -### stateMutability +Decompose an ABI-encoded SignatureWalletError. -• **stateMutability**: *[StateMutability](#statemutability)* +**Parameters:** -*Defined in [ethereum-types/src/index.ts:95](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L95)* +Name | Type | Description | +------ | ------ | ------ | +`encoded` | string | ABI-encoded revert error. | -___ +**Returns:** *`ContractFunctionObj<[string, string, string, string]>`* -### type +errorCode The error code.signerAddress The expected signer of the hash.signature The full signature bytes.errorData The revert data thrown by the validator contract. -• **type**: *string* +___ -*Defined in [ethereum-types/src/index.ts:90](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L90)* +### decodeStaticCallAssetData -
+▸ **decodeStaticCallAssetData**(`assetData`: string): *`ContractFunctionObj<[string, string, string, string]>`* -# Interface: OptimizerSettings +*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:2365](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L2365)* +Decode StaticCall asset data from the format described in the AssetProxy contract specification. -## Properties +**Parameters:** -### enabled +Name | Type | Description | +------ | ------ | ------ | +`assetData` | string | AssetProxy-compliant asset data describing a StaticCall asset | -• **enabled**: *boolean* +**Returns:** *`ContractFunctionObj<[string, string, string, string]>`* -*Defined in [ethereum-types/src/index.ts:708](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L708)* +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. ___ -### `Optional` runs - -• **runs**? : *undefined | number* +### decodeTransactionError -*Defined in [ethereum-types/src/index.ts:709](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L709)* +▸ **decodeTransactionError**(`encoded`: string): *`ContractFunctionObj<[number, string]>`* -
+*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:2413](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L2413)* +Decompose an ABI-encoded TransactionError. +**Parameters:** +Name | Type | Description | +------ | ------ | ------ | +`encoded` | string | ABI-encoded revert error. | +**Returns:** *`ContractFunctionObj<[number, string]>`* -# Interface: RevertErrorAbi +errorCode The error code.transactionHash Hash of the transaction. +___ -## Properties +### decodeTransactionExecutionError -### `Optional` arguments +▸ **decodeTransactionExecutionError**(`encoded`: string): *`ContractFunctionObj<[string, string]>`* -• **arguments**? : *[DataItem](#class-dataitem)[]* +*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:2458](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L2458)* -*Defined in [ethereum-types/src/index.ts:122](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L122)* +Decompose an ABI-encoded TransactionExecutionError. -___ +**Parameters:** -### name +Name | Type | Description | +------ | ------ | ------ | +`encoded` | string | ABI-encoded revert error. | -• **name**: *string* +**Returns:** *`ContractFunctionObj<[string, string]>`* -*Defined in [ethereum-types/src/index.ts:121](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L121)* +transactionHash Hash of the transaction.errorData Error thrown by exeucteTransaction(). ___ -### type +### decodeZeroExTransactionData -• **type**: *"error"* +▸ **decodeZeroExTransactionData**(`transactionData`: string): *`ContractFunctionObj<[string, Array, BigNumber[], string[]]>`* -*Defined in [ethereum-types/src/index.ts:120](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L120)* +*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:2505](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L2505)* -
+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. +___ +### encodeERC1155AssetData +▸ **encodeERC1155AssetData**(`tokenAddress`: string, `tokenIds`: `BigNumber`[], `tokenValues`: `BigNumber`[], `callbackData`: string): *`ContractFunctionObj`* -# Interface: StandardContractOutput +*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:2628](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L2628)* +Encode ERC-1155 asset data into the format described in the AssetProxy contract specification. -## Properties +**Parameters:** -### abi +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. | -• **abi**: *[ContractAbi](#contractabi)* +**Returns:** *`ContractFunctionObj`* -*Defined in [ethereum-types/src/index.ts:564](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L564)* +AssetProxy-compliant asset data describing the set of assets. ___ -### `Optional` devdoc +### encodeERC20AssetData -• **devdoc**? : *[DevdocOutput](#class-devdocoutput)* +▸ **encodeERC20AssetData**(`tokenAddress`: string): *`ContractFunctionObj`* -*Defined in [ethereum-types/src/index.ts:566](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L566)* +*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:2686](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L2686)* -___ +Encode ERC-20 asset data into the format described in the AssetProxy contract specification. -### evm +**Parameters:** -• **evm**: *[EvmOutput](#class-evmoutput)* +Name | Type | Description | +------ | ------ | ------ | +`tokenAddress` | string | The address of the ERC-20 contract hosting the asset to be traded. | -*Defined in [ethereum-types/src/index.ts:565](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L565)* +**Returns:** *`ContractFunctionObj`* -
+AssetProxy-compliant data describing the asset. + +___ +### encodeERC721AssetData +▸ **encodeERC721AssetData**(`tokenAddress`: string, `tokenId`: `BigNumber`): *`ContractFunctionObj`* +*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:2735](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L2735)* +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 [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:2787](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L2787)* +Encode data for multiple assets, per the AssetProxy contract specification. +**Parameters:** -# Interface: TupleDataItem +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`* -## Properties +AssetProxy-compliant data describing the set of assets. -### components +___ -• **components**: *[DataItem](#class-dataitem)[]* +### encodeStaticCallAssetData -*Overrides [DataItem](_ethereum_types_src_index_.dataitem.md).[components](#optional-components)* +▸ **encodeStaticCallAssetData**(`staticCallTargetAddress`: string, `staticCallData`: string, `expectedReturnDataHash`: string): *`ContractFunctionObj`* -*Defined in [ethereum-types/src/index.ts:141](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L141)* +*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:2841](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L2841)* -___ +Encode StaticCall asset data into the format described in the AssetProxy contract specification. -### name +**Parameters:** -• **name**: *string* +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. | -*Inherited from [DataItem](#interface-dataitem).[name](#name)* +**Returns:** *`ContractFunctionObj`* -*Defined in [ethereum-types/src/index.ts:135](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L135)* +AssetProxy-compliant asset data describing the set of assets. ___ -### type +### getABIDecodedReturnData -• **type**: *string* +▸ **getABIDecodedReturnData**<**T**>(`methodName`: string, `callData`: string): *`T`* -*Inherited from [DataItem](#interface-dataitem).[type](#type)* +*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:1497](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L1497)* -*Defined in [ethereum-types/src/index.ts:136](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L136)* +**Type parameters:** -
+▪ **T** -# Interface: TxData +**Parameters:** +Name | Type | +------ | ------ | +`methodName` | string | +`callData` | string | -## Properties +**Returns:** *`T`* -### `Optional` data +___ -• **data**? : *undefined | string* +### getABIDecodedTransactionData -*Inherited from [CallTxDataBase](#interface-calltxdatabase).[data](#optional-data)* +▸ **getABIDecodedTransactionData**<**T**>(`methodName`: string, `callData`: string): *`T`* -*Defined in [ethereum-types/src/index.ts:393](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L393)* +*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:1490](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L1490)* -___ +**Type parameters:** -### from +▪ **T** -• **from**: *string* +**Parameters:** + +Name | Type | +------ | ------ | +`methodName` | string | +`callData` | string | -*Defined in [ethereum-types/src/index.ts:398](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L398)* +**Returns:** *`T`* ___ -### `Optional` gas - -• **gas**? : *number | string | `BigNumber`* +### getAssetProxyAllowance -*Inherited from [CallTxDataBase](#interface-calltxdatabase).[gas](#optional-gas)* +▸ **getAssetProxyAllowance**(`ownerAddress`: string, `assetData`: string): *`ContractFunctionObj`* -*Defined in [ethereum-types/src/index.ts:391](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L391)* +*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:2899](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L2899)* -___ +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. -### `Optional` gasPrice +**Parameters:** -• **gasPrice**? : *number | string | `BigNumber`* +Name | Type | Description | +------ | ------ | ------ | +`ownerAddress` | string | Owner of the assets specified by assetData. | +`assetData` | string | Details of asset, encoded per the AssetProxy contract specification. | -*Inherited from [CallTxDataBase](#interface-calltxdatabase).[gasPrice](#optional-gasprice)* +**Returns:** *`ContractFunctionObj`* -*Defined in [ethereum-types/src/index.ts:392](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L392)* +Number of assets (or asset baskets) that the corresponding AssetProxy is authorized to spend. ___ -### `Optional` nonce - -• **nonce**? : *undefined | number* +### getBalance -*Inherited from [CallTxDataBase](#interface-calltxdatabase).[nonce](#optional-nonce)* +▸ **getBalance**(`ownerAddress`: string, `assetData`: string): *`ContractFunctionObj`* -*Defined in [ethereum-types/src/index.ts:394](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L394)* +*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:2961](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L2961)* -___ +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. -### `Optional` to +**Parameters:** -• **to**? : *undefined | string* +Name | Type | Description | +------ | ------ | ------ | +`ownerAddress` | string | Owner of the assets specified by assetData. | +`assetData` | string | Details of asset, encoded per the AssetProxy contract specification. | -*Inherited from [CallTxDataBase](#interface-calltxdatabase).[to](#optional-to)* +**Returns:** *`ContractFunctionObj`* -*Defined in [ethereum-types/src/index.ts:389](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L389)* +Number of assets (or asset baskets) held by owner. ___ -### `Optional` value +### getBalanceAndAssetProxyAllowance -• **value**? : *number | string | `BigNumber`* +▸ **getBalanceAndAssetProxyAllowance**(`ownerAddress`: string, `assetData`: string): *`ContractFunctionObj<[BigNumber, BigNumber]>`* -*Inherited from [CallTxDataBase](#interface-calltxdatabase).[value](#optional-value)* +*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:3023](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L3023)* -*Defined in [ethereum-types/src/index.ts:390](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L390)* +Calls getBalance() and getAllowance() for assetData. -
+**Parameters:** -# Interface: TxDataPayable +Name | Type | Description | +------ | ------ | ------ | +`ownerAddress` | string | Owner of the assets specified by assetData. | +`assetData` | string | Details of asset, encoded per the AssetProxy contract specification. | +**Returns:** *`ContractFunctionObj<[BigNumber, BigNumber]>`* -## Properties +Number of assets (or asset baskets) held by owner, and number of assets (or asset baskets) that the corresponding AssetProxy is authorized to spend. -### `Optional` data +___ -• **data**? : *undefined | string* +### getBatchAssetProxyAllowances -*Inherited from [CallTxDataBase](#interface-calltxdatabase).[data](#optional-data)* +▸ **getBatchAssetProxyAllowances**(`ownerAddress`: string, `assetData`: string[]): *`ContractFunctionObj`* -*Defined in [ethereum-types/src/index.ts:393](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L393)* +*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:3091](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L3091)* -___ +Calls getAssetProxyAllowance() for each element of assetData. -### from +**Parameters:** -• **from**: *string* +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. | -*Inherited from [TxData](#interface-txdata).[from](#from)* +**Returns:** *`ContractFunctionObj`* -*Defined in [ethereum-types/src/index.ts:398](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L398)* +An array of asset allowances from getAllowance(), with each element corresponding to the same-indexed element in the assetData input. ___ -### `Optional` gas - -• **gas**? : *number | string | `BigNumber`* +### getBatchBalances -*Inherited from [CallTxDataBase](#interface-calltxdatabase).[gas](#optional-gas)* +▸ **getBatchBalances**(`ownerAddress`: string, `assetData`: string[]): *`ContractFunctionObj`* -*Defined in [ethereum-types/src/index.ts:391](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L391)* +*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:3153](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L3153)* -___ +Calls getBalance() for each element of assetData. -### `Optional` gasPrice +**Parameters:** -• **gasPrice**? : *number | string | `BigNumber`* +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. | -*Inherited from [CallTxDataBase](#interface-calltxdatabase).[gasPrice](#optional-gasprice)* +**Returns:** *`ContractFunctionObj`* -*Defined in [ethereum-types/src/index.ts:392](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L392)* +Array of asset balances from getBalance(), with each element corresponding to the same-indexed element in the assetData input. ___ -### `Optional` nonce - -• **nonce**? : *undefined | number* +### getBatchBalancesAndAssetProxyAllowances -*Inherited from [CallTxDataBase](#interface-calltxdatabase).[nonce](#optional-nonce)* +▸ **getBatchBalancesAndAssetProxyAllowances**(`ownerAddress`: string, `assetData`: string[]): *`ContractFunctionObj<[BigNumber[], BigNumber[]]>`* -*Defined in [ethereum-types/src/index.ts:394](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L394)* +*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:3215](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L3215)* -___ +Calls getBatchBalances() and getBatchAllowances() for each element of assetData. -### `Optional` to +**Parameters:** -• **to**? : *undefined | string* +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. | -*Inherited from [CallTxDataBase](#interface-calltxdatabase).[to](#optional-to)* +**Returns:** *`ContractFunctionObj<[BigNumber[], BigNumber[]]>`* -*Defined in [ethereum-types/src/index.ts:389](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L389)* +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. ___ -### `Optional` value +### getEthBalances -• **value**? : *`BigNumber`* +▸ **getEthBalances**(`addresses`: string[]): *`ContractFunctionObj`* -*Overrides [CallTxDataBase](_ethereum_types_src_index_.calltxdatabase.md).[value](#optional-value)* +*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:3281](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L3281)* -*Defined in [ethereum-types/src/index.ts:442](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L442)* +Batch fetches ETH balances -
+**Parameters:** -# Interface: Web3JsV1Provider +Name | Type | Description | +------ | ------ | ------ | +`addresses` | string[] | Array of addresses. | -Web3.js version 1 provider interface -This provider interface was implemented in the pre-1.0Beta releases for Web3.js. -This interface allowed sending synchonous requests, support for which was later dropped. +**Returns:** *`ContractFunctionObj`* +Array of ETH balances. -## Methods +___ -### send +### getFunctionSignature -▸ **send**(`payload`: [JSONRPCRequestPayload](_ethereum_types_src_index_.jsonrpcrequestpayload.md)): *[JSONRPCResponsePayload](#class-jsonrpcresponsepayload)* +▸ **getFunctionSignature**(`methodName`: string): *string* -*Defined in [ethereum-types/src/index.ts:45](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L45)* +*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:1484](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L1484)* **Parameters:** Name | Type | ------ | ------ | -`payload` | [JSONRPCRequestPayload](#class-jsonrpcrequestpayload) | +`methodName` | string | -**Returns:** *[JSONRPCResponsePayload](#class-jsonrpcresponsepayload)* +**Returns:** *string* ___ -### sendAsync - -▸ **sendAsync**(`payload`: [JSONRPCRequestPayload](_ethereum_types_src_index_.jsonrpcrequestpayload.md), `callback`: [JSONRPCErrorCallback](#jsonrpcerrorcallback)): *void* +### getOrderRelevantState -*Defined in [ethereum-types/src/index.ts:44](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L44)* +▸ **getOrderRelevantState**(`order`: object, `signature`: string): *`ContractFunctionObj<[object, BigNumber, boolean]>`* -**Parameters:** +*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:3337](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L3337)* -Name | Type | ------- | ------ | -`payload` | [JSONRPCRequestPayload](#class-jsonrpcrequestpayload) | -`callback` | [JSONRPCErrorCallback](#jsonrpcerrorcallback) | +Fetches all order-relevant information needed to validate if the supplied order is fillable. -**Returns:** *void* +**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. | -# Interface: Web3JsV2Provider +**Returns:** *`ContractFunctionObj<[object, BigNumber, boolean]>`* -Web3.js version 2 provider interface -This provider interface was used in a couple of Web3.js 1.0 beta releases -before the first attempts to conform to EIP1193 +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. +___ -## Methods +### getOrderRelevantStates -### send +▸ **getOrderRelevantStates**(`orders`: `Array`, `signatures`: string[]): *`ContractFunctionObj<[Array, BigNumber[], boolean[]]>`* -▸ **send**(`payload`: [JSONRPCRequestPayload](_ethereum_types_src_index_.jsonrpcrequestpayload.md), `callback`: [JSONRPCErrorCallback](#jsonrpcerrorcallback)): *void* +*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:3433](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L3433)* -*Defined in [ethereum-types/src/index.ts:54](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L54)* +Fetches all order-relevant information needed to validate if the supplied orders are fillable. **Parameters:** -Name | Type | ------- | ------ | -`payload` | [JSONRPCRequestPayload](#class-jsonrpcrequestpayload) | -`callback` | [JSONRPCErrorCallback](#jsonrpcerrorcallback) | - -**Returns:** *void* - -
- -# Interface: Web3JsV3Provider +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. | -Web3.js version 3 provider interface -This provider interface was implemented with the hopes for conforming to the EIP1193 spec, -however it does not conform entirely. +**Returns:** *`ContractFunctionObj<[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. -## Methods +___ -### send +### getSelector -▸ **send**(`method`: string, `params?`: any[]): *`Promise`* +▸ **getSelector**(`methodName`: string): *string* -*Defined in [ethereum-types/src/index.ts:63](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L63)* +*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:1504](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L1504)* **Parameters:** Name | Type | ------ | ------ | -`method` | string | -`params?` | any[] | - -**Returns:** *`Promise`* - -
- -# Interface: ZeroExProvider +`methodName` | string | -The interface for the provider used internally by 0x libraries -Any property we use from any SupportedProvider should we explicitly -add here +**Returns:** *string* +___ -## Properties +### getSimulatedOrderTransferResults -### `Optional` isMetaMask +▸ **getSimulatedOrderTransferResults**(`order`: object, `takerAddress`: string, `takerAssetFillAmount`: `BigNumber`): *`ContractTxFunctionObj`* -• **isMetaMask**? : *undefined | false | true* +*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:3537](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L3537)* -*Defined in [ethereum-types/src/index.ts:31](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L31)* +Simulates all of the transfers within an order and returns the index of the first failed transfer. -___ +**Parameters:** -### `Optional` isParity +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. | -• **isParity**? : *undefined | false | true* +**Returns:** *`ContractTxFunctionObj`* -*Defined in [ethereum-types/src/index.ts:32](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L32)* +The index of the first failed transfer (or 4 if all transfers are successful). ___ -### `Optional` isZeroExProvider +### getSimulatedOrdersTransferResults -• **isZeroExProvider**? : *undefined | false | true* +▸ **getSimulatedOrdersTransferResults**(`orders`: `Array`, `takerAddresses`: string[], `takerAssetFillAmounts`: `BigNumber`[]): *`ContractTxFunctionObj`* -*Defined in [ethereum-types/src/index.ts:30](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L30)* +*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:3687](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L3687)* -## Methods +Simulates all of the transfers for each given order and returns the indices of each first failed transfer. -### `Optional` enable +**Parameters:** -▸ **enable**(): *`Promise`* +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. | -*Defined in [ethereum-types/src/index.ts:34](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L34)* +**Returns:** *`ContractTxFunctionObj`* -**Returns:** *`Promise`* +The indices of the first failed transfer (or 4 if all transfers are successful) for each order. ___ -### sendAsync +### getTransferableAssetAmount -▸ **sendAsync**(`payload`: [JSONRPCRequestPayload](_ethereum_types_src_index_.jsonrpcrequestpayload.md), `callback`: [JSONRPCErrorCallback](#jsonrpcerrorcallback)): *void* +▸ **getTransferableAssetAmount**(`ownerAddress`: string, `assetData`: string): *`ContractFunctionObj`* + +*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:3835](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L3835)* -*Defined in [ethereum-types/src/index.ts:35](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L35)* +Gets the amount of an asset transferable by the owner. **Parameters:** -Name | Type | ------- | ------ | -`payload` | [JSONRPCRequestPayload](#class-jsonrpcrequestpayload) | -`callback` | [JSONRPCErrorCallback](#jsonrpcerrorcallback) | +Name | Type | Description | +------ | ------ | ------ | +`ownerAddress` | string | Address of the owner of the asset. | +`assetData` | string | Description of tokens, per the AssetProxy contract specification. | -**Returns:** *void* +**Returns:** *`ContractFunctionObj`* + +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`. ___ -### `Optional` stop +### revertIfInvalidAssetData -▸ **stop**(): *void* +▸ **revertIfInvalidAssetData**(`assetData`: string): *`ContractFunctionObj`* -*Defined in [ethereum-types/src/index.ts:33](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L33)* +*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:3890](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L3890)* -**Returns:** *void* +**Parameters:** -
+Name | Type | +------ | ------ | +`assetData` | string | +**Returns:** *`ContractFunctionObj`* +___ +### `Static` ABI +▸ **ABI**(): *[ContractAbi](#contractabi)* +*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:125](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L125)* +**Returns:** *[ContractAbi](#contractabi)* -# Interface: JSONRPCRequestPayloadWithMethod +The contract ABI +___ -## Properties +### `Static` deployAsync -### id +▸ **deployAsync**(`bytecode`: string, `abi`: [ContractAbi](#contractabi), `supportedProvider`: [SupportedProvider](#supportedprovider), `txDefaults`: `Partial`, `logDecodeDependencies`: object, `_exchange`: string): *`Promise`* -• **id**: *number* +*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:78](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L78)* +**Parameters:** +Name | Type | +------ | ------ | +`bytecode` | string | +`abi` | [ContractAbi](#contractabi) | +`supportedProvider` | [SupportedProvider](#supportedprovider) | +`txDefaults` | `Partial` | +`logDecodeDependencies` | object | +`_exchange` | string | -Defined in ethereum-types/lib/index.d.ts:267 +**Returns:** *`Promise`* ___ -### jsonrpc - -• **jsonrpc**: *string* +### `Static` deployFrom0xArtifactAsync +▸ **deployFrom0xArtifactAsync**(`artifact`: `ContractArtifact` | `SimpleContractArtifact`, `supportedProvider`: [SupportedProvider](#supportedprovider), `txDefaults`: `Partial`, `logDecodeDependencies`: object, `_exchange`: string): *`Promise`* +*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:45](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L45)* -Defined in ethereum-types/lib/index.d.ts:268 +**Parameters:** -___ +Name | Type | +------ | ------ | +`artifact` | `ContractArtifact` \| `SimpleContractArtifact` | +`supportedProvider` | [SupportedProvider](#supportedprovider) | +`txDefaults` | `Partial` | +`logDecodeDependencies` | object | +`_exchange` | string | -### method +**Returns:** *`Promise`* -• **method**: *string* +___ -*Overrides void* +### `Static` strictArgumentEncodingCheck -*Defined in [subproviders/src/types.ts:136](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/subproviders/src/types.ts#L136)* +▸ **strictArgumentEncodingCheck**(`inputAbi`: `DataItem`[], `args`: any[]): *string* -___ -### params -• **params**: *any[]* +Defined in base-contract/lib/src/index.d.ts:42 +**Parameters:** +Name | Type | +------ | ------ | +`inputAbi` | `DataItem`[] | +`args` | any[] | -Defined in ethereum-types/lib/index.d.ts:265 +**Returns:** *string*
@@ -18402,7 +7327,7 @@ Defined in ethereum-types/lib/index.d.ts:265 • **isRemoved**: *boolean* -*Defined in [types/src/index.ts:853](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/types/src/index.ts#L853)* +*Defined in [types/src/index.ts:844](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/types/src/index.ts#L844)* ___ @@ -18410,7 +7335,7 @@ ___ • **log**: *`LogWithDecodedArgs`* -*Defined in [types/src/index.ts:854](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/types/src/index.ts#L854)* +*Defined in [types/src/index.ts:845](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/types/src/index.ts#L845)*
@@ -18425,7 +7350,7 @@ ___ • **assetData**: *[AssetData](#assetdata)* -*Defined in [types/src/index.ts:219](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/types/src/index.ts#L219)* +*Defined in [types/src/index.ts:219](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/types/src/index.ts#L219)* ___ @@ -18433,7 +7358,7 @@ ___ • **beginAmount**: *`BigNumber`* -*Defined in [types/src/index.ts:221](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/types/src/index.ts#L221)* +*Defined in [types/src/index.ts:221](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/types/src/index.ts#L221)* ___ @@ -18441,7 +7366,7 @@ ___ • **beginTimeSeconds**: *`BigNumber`* -*Defined in [types/src/index.ts:220](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/types/src/index.ts#L220)* +*Defined in [types/src/index.ts:220](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/types/src/index.ts#L220)*
@@ -18458,7 +7383,7 @@ Elliptic Curve signature • **r**: *string* -*Defined in [types/src/index.ts:62](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/types/src/index.ts#L62)* +*Defined in [types/src/index.ts:62](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/types/src/index.ts#L62)* ___ @@ -18466,7 +7391,7 @@ ___ • **s**: *string* -*Defined in [types/src/index.ts:63](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/types/src/index.ts#L63)* +*Defined in [types/src/index.ts:63](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/types/src/index.ts#L63)* ___ @@ -18474,7 +7399,7 @@ ___ • **v**: *number* -*Defined in [types/src/index.ts:61](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/types/src/index.ts#L61)* +*Defined in [types/src/index.ts:61](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/types/src/index.ts#L61)*
@@ -18487,7 +7412,7 @@ ___ • **chainId**: *number* -*Defined in [types/src/index.ts:802](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/types/src/index.ts#L802)* +*Defined in [types/src/index.ts:793](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/types/src/index.ts#L793)* ___ @@ -18495,7 +7420,7 @@ ___ • **name**? : *undefined | string* -*Defined in [types/src/index.ts:800](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/types/src/index.ts#L800)* +*Defined in [types/src/index.ts:791](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/types/src/index.ts#L791)* ___ @@ -18503,7 +7428,7 @@ ___ • **verifyingContract**: *string* -*Defined in [types/src/index.ts:803](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/types/src/index.ts#L803)* +*Defined in [types/src/index.ts:794](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/types/src/index.ts#L794)* ___ @@ -18511,7 +7436,7 @@ ___ • **version**? : *undefined | string* -*Defined in [types/src/index.ts:801](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/types/src/index.ts#L801)* +*Defined in [types/src/index.ts:792](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/types/src/index.ts#L792)*
@@ -18530,7 +7455,7 @@ ___ • **assetProxyId**: *string* -*Defined in [types/src/index.ts:183](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/types/src/index.ts#L183)* +*Defined in [types/src/index.ts:183](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/types/src/index.ts#L183)* ___ @@ -18538,7 +7463,7 @@ ___ • **callbackData**: *string* -*Defined in [types/src/index.ts:187](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/types/src/index.ts#L187)* +*Defined in [types/src/index.ts:187](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/types/src/index.ts#L187)* ___ @@ -18546,7 +7471,7 @@ ___ • **tokenAddress**: *string* -*Defined in [types/src/index.ts:184](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/types/src/index.ts#L184)* +*Defined in [types/src/index.ts:184](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/types/src/index.ts#L184)* ___ @@ -18554,7 +7479,7 @@ ___ • **tokenIds**: *`BigNumber`[]* -*Defined in [types/src/index.ts:185](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/types/src/index.ts#L185)* +*Defined in [types/src/index.ts:185](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/types/src/index.ts#L185)* ___ @@ -18562,7 +7487,7 @@ ___ • **tokenValues**: *`BigNumber`[]* -*Defined in [types/src/index.ts:186](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/types/src/index.ts#L186)* +*Defined in [types/src/index.ts:186](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/types/src/index.ts#L186)*
@@ -18577,7 +7502,7 @@ ___ • **assetProxyId**: *string* -*Defined in [types/src/index.ts:172](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/types/src/index.ts#L172)* +*Defined in [types/src/index.ts:172](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/types/src/index.ts#L172)* ___ @@ -18585,7 +7510,7 @@ ___ • **tokenAddress**: *string* -*Defined in [types/src/index.ts:173](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/types/src/index.ts#L173)* +*Defined in [types/src/index.ts:173](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/types/src/index.ts#L173)*
@@ -18598,7 +7523,7 @@ ___ • **assetProxyId**: *string* -*Defined in [types/src/index.ts:177](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/types/src/index.ts#L177)* +*Defined in [types/src/index.ts:177](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/types/src/index.ts#L177)* ___ @@ -18606,7 +7531,7 @@ ___ • **tokenAddress**: *string* -*Defined in [types/src/index.ts:178](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/types/src/index.ts#L178)* +*Defined in [types/src/index.ts:178](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/types/src/index.ts#L178)* ___ @@ -18614,7 +7539,7 @@ ___ • **tokenId**: *`BigNumber`* -*Defined in [types/src/index.ts:179](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/types/src/index.ts#L179)* +*Defined in [types/src/index.ts:179](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/types/src/index.ts#L179)*
@@ -18642,7 +7567,7 @@ ___ • **keyName**: *string* -*Defined in [types/src/index.ts:679](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/types/src/index.ts#L679)* +*Defined in [types/src/index.ts:691](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/types/src/index.ts#L691)* ___ @@ -18650,7 +7575,7 @@ ___ • **keyType**: *[Type](#class-type)* -*Defined in [types/src/index.ts:680](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/types/src/index.ts#L680)* +*Defined in [types/src/index.ts:692](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/types/src/index.ts#L692)* ___ @@ -18658,7 +7583,7 @@ ___ • **valueName**: *string* -*Defined in [types/src/index.ts:681](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/types/src/index.ts#L681)* +*Defined in [types/src/index.ts:693](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/types/src/index.ts#L693)*
@@ -18675,7 +7600,7 @@ ___ • **amounts**: *`BigNumber`[]* -*Defined in [types/src/index.ts:208](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/types/src/index.ts#L208)* +*Defined in [types/src/index.ts:208](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/types/src/index.ts#L208)* ___ @@ -18683,7 +7608,7 @@ ___ • **assetProxyId**: *string* -*Defined in [types/src/index.ts:207](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/types/src/index.ts#L207)* +*Defined in [types/src/index.ts:207](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/types/src/index.ts#L207)* ___ @@ -18691,7 +7616,7 @@ ___ • **nestedAssetData**: *string[]* -*Defined in [types/src/index.ts:209](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/types/src/index.ts#L209)* +*Defined in [types/src/index.ts:209](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/types/src/index.ts#L209)*
@@ -18704,7 +7629,7 @@ ___ • **amounts**: *`BigNumber`[]* -*Defined in [types/src/index.ts:214](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/types/src/index.ts#L214)* +*Defined in [types/src/index.ts:214](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/types/src/index.ts#L214)* ___ @@ -18712,7 +7637,7 @@ ___ • **assetProxyId**: *string* -*Defined in [types/src/index.ts:213](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/types/src/index.ts#L213)* +*Defined in [types/src/index.ts:213](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/types/src/index.ts#L213)* ___ @@ -18720,7 +7645,7 @@ ___ • **nestedAssetData**: *[SingleAssetData](#singleassetdata)[]* -*Defined in [types/src/index.ts:215](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/types/src/index.ts#L215)* +*Defined in [types/src/index.ts:215](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/types/src/index.ts#L215)*
@@ -18757,6 +7682,8 @@ ___ + + @@ -18771,7 +7698,7 @@ ___ *Inherited from [Order](#interface-order).[chainId](#chainid)* -*Defined in [types/src/index.ts:14](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/types/src/index.ts#L14)* +*Defined in [types/src/index.ts:14](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/types/src/index.ts#L14)* ___ @@ -18781,7 +7708,7 @@ ___ *Inherited from [Order](#interface-order).[exchangeAddress](#exchangeaddress)* -*Defined in [types/src/index.ts:15](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/types/src/index.ts#L15)* +*Defined in [types/src/index.ts:15](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/types/src/index.ts#L15)* ___ @@ -18791,7 +7718,7 @@ ___ *Inherited from [Order](#interface-order).[expirationTimeSeconds](#expirationtimeseconds)* -*Defined in [types/src/index.ts:24](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/types/src/index.ts#L24)* +*Defined in [types/src/index.ts:24](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/types/src/index.ts#L24)* ___ @@ -18801,7 +7728,7 @@ ___ *Inherited from [Order](#interface-order).[feeRecipientAddress](#feerecipientaddress)* -*Defined in [types/src/index.ts:18](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/types/src/index.ts#L18)* +*Defined in [types/src/index.ts:18](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/types/src/index.ts#L18)* ___ @@ -18811,7 +7738,7 @@ ___ *Inherited from [Order](#interface-order).[makerAddress](#makeraddress)* -*Defined in [types/src/index.ts:16](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/types/src/index.ts#L16)* +*Defined in [types/src/index.ts:16](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/types/src/index.ts#L16)* ___ @@ -18821,7 +7748,7 @@ ___ *Inherited from [Order](#interface-order).[makerAssetAmount](#makerassetamount)* -*Defined in [types/src/index.ts:20](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/types/src/index.ts#L20)* +*Defined in [types/src/index.ts:20](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/types/src/index.ts#L20)* ___ @@ -18831,7 +7758,7 @@ ___ *Inherited from [Order](#interface-order).[makerAssetData](#makerassetdata)* -*Defined in [types/src/index.ts:26](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/types/src/index.ts#L26)* +*Defined in [types/src/index.ts:26](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/types/src/index.ts#L26)* ___ @@ -18841,7 +7768,7 @@ ___ *Inherited from [Order](#interface-order).[makerFee](#makerfee)* -*Defined in [types/src/index.ts:22](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/types/src/index.ts#L22)* +*Defined in [types/src/index.ts:22](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/types/src/index.ts#L22)* ___ @@ -18851,7 +7778,7 @@ ___ *Inherited from [Order](#interface-order).[makerFeeAssetData](#makerfeeassetdata)* -*Defined in [types/src/index.ts:28](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/types/src/index.ts#L28)* +*Defined in [types/src/index.ts:28](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/types/src/index.ts#L28)* ___ @@ -18861,7 +7788,7 @@ ___ *Inherited from [Order](#interface-order).[salt](#salt)* -*Defined in [types/src/index.ts:25](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/types/src/index.ts#L25)* +*Defined in [types/src/index.ts:25](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/types/src/index.ts#L25)* ___ @@ -18871,7 +7798,7 @@ ___ *Inherited from [Order](#interface-order).[senderAddress](#senderaddress)* -*Defined in [types/src/index.ts:19](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/types/src/index.ts#L19)* +*Defined in [types/src/index.ts:19](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/types/src/index.ts#L19)* ___ @@ -18879,7 +7806,7 @@ ___ • **signature**: *string* -*Defined in [types/src/index.ts:33](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/types/src/index.ts#L33)* +*Defined in [types/src/index.ts:33](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/types/src/index.ts#L33)* ___ @@ -18889,7 +7816,7 @@ ___ *Inherited from [Order](#interface-order).[takerAddress](#takeraddress)* -*Defined in [types/src/index.ts:17](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/types/src/index.ts#L17)* +*Defined in [types/src/index.ts:17](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/types/src/index.ts#L17)* ___ @@ -18899,7 +7826,7 @@ ___ *Inherited from [Order](#interface-order).[takerAssetAmount](#takerassetamount)* -*Defined in [types/src/index.ts:21](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/types/src/index.ts#L21)* +*Defined in [types/src/index.ts:21](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/types/src/index.ts#L21)* ___ @@ -18909,7 +7836,7 @@ ___ *Inherited from [Order](#interface-order).[takerAssetData](#takerassetdata)* -*Defined in [types/src/index.ts:27](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/types/src/index.ts#L27)* +*Defined in [types/src/index.ts:27](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/types/src/index.ts#L27)* ___ @@ -18919,7 +7846,7 @@ ___ *Inherited from [Order](#interface-order).[takerFee](#takerfee)* -*Defined in [types/src/index.ts:23](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/types/src/index.ts#L23)* +*Defined in [types/src/index.ts:23](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/types/src/index.ts#L23)* ___ @@ -18929,7 +7856,7 @@ ___ *Inherited from [Order](#interface-order).[takerFeeAssetData](#takerfeeassetdata)* -*Defined in [types/src/index.ts:29](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/types/src/index.ts#L29)* +*Defined in [types/src/index.ts:29](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/types/src/index.ts#L29)*
@@ -18944,7 +7871,7 @@ ___ *Inherited from [ZeroExTransaction](#interface-zeroextransaction).[data](#data)* -*Defined in [types/src/index.ts:49](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/types/src/index.ts#L49)* +*Defined in [types/src/index.ts:49](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/types/src/index.ts#L49)* ___ @@ -18954,7 +7881,7 @@ ___ *Inherited from [ZeroExTransaction](#interface-zeroextransaction).[domain](#domain)* -*Defined in [types/src/index.ts:50](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/types/src/index.ts#L50)* +*Defined in [types/src/index.ts:50](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/types/src/index.ts#L50)* ___ @@ -18964,7 +7891,7 @@ ___ *Inherited from [ZeroExTransaction](#interface-zeroextransaction).[expirationTimeSeconds](#expirationtimeseconds)* -*Defined in [types/src/index.ts:46](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/types/src/index.ts#L46)* +*Defined in [types/src/index.ts:46](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/types/src/index.ts#L46)* ___ @@ -18974,7 +7901,7 @@ ___ *Inherited from [ZeroExTransaction](#interface-zeroextransaction).[gasPrice](#gasprice)* -*Defined in [types/src/index.ts:47](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/types/src/index.ts#L47)* +*Defined in [types/src/index.ts:47](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/types/src/index.ts#L47)* ___ @@ -18984,7 +7911,7 @@ ___ *Inherited from [ZeroExTransaction](#interface-zeroextransaction).[salt](#salt)* -*Defined in [types/src/index.ts:45](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/types/src/index.ts#L45)* +*Defined in [types/src/index.ts:45](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/types/src/index.ts#L45)* ___ @@ -18992,7 +7919,7 @@ ___ • **signature**: *string* -*Defined in [types/src/index.ts:54](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/types/src/index.ts#L54)* +*Defined in [types/src/index.ts:54](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/types/src/index.ts#L54)* ___ @@ -19002,7 +7929,7 @@ ___ *Inherited from [ZeroExTransaction](#interface-zeroextransaction).[signerAddress](#signeraddress)* -*Defined in [types/src/index.ts:48](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/types/src/index.ts#L48)* +*Defined in [types/src/index.ts:48](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/types/src/index.ts#L48)*
@@ -19011,27 +7938,27 @@ ___ ## Properties -### compilerOutput +### chains -• **compilerOutput**: *[SimpleStandardContractOutput](#class-simplestandardcontractoutput)* +• **chains**: *`ContractChains`* -*Defined in [types/src/index.ts:748](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/types/src/index.ts#L748)* +*Defined in [types/src/index.ts:861](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/types/src/index.ts#L861)* ___ -### contractName +### compilerOutput -• **contractName**: *string* +• **compilerOutput**: *[SimpleStandardContractOutput](#class-simplestandardcontractoutput)* -*Defined in [types/src/index.ts:747](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/types/src/index.ts#L747)* +*Defined in [types/src/index.ts:860](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/types/src/index.ts#L860)* ___ -### networks +### contractName -• **networks**: *`ContractNetworks`* +• **contractName**: *string* -*Defined in [types/src/index.ts:749](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/types/src/index.ts#L749)* +*Defined in [types/src/index.ts:859](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/types/src/index.ts#L859)* ___ @@ -19039,7 +7966,7 @@ ___ • **schemaVersion**: *string* -*Defined in [types/src/index.ts:746](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/types/src/index.ts#L746)* +*Defined in [types/src/index.ts:858](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/types/src/index.ts#L858)*
@@ -19052,7 +7979,7 @@ ___ • **object**: *string* -*Defined in [types/src/index.ts:763](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/types/src/index.ts#L763)* +*Defined in [types/src/index.ts:875](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/types/src/index.ts#L875)*
@@ -19065,7 +7992,7 @@ ___ • **bytecode**: *[SimpleEvmBytecodeOutput](#class-simpleevmbytecodeoutput)* -*Defined in [types/src/index.ts:759](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/types/src/index.ts#L759)* +*Defined in [types/src/index.ts:871](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/types/src/index.ts#L871)*
@@ -19078,7 +8005,7 @@ ___ • **abi**: *[ContractAbi](#contractabi)* -*Defined in [types/src/index.ts:753](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/types/src/index.ts#L753)* +*Defined in [types/src/index.ts:865](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/types/src/index.ts#L865)* ___ @@ -19086,7 +8013,7 @@ ___ • **devdoc**? : *[DevdocOutput](#class-devdocoutput)* -*Defined in [types/src/index.ts:755](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/types/src/index.ts#L755)* +*Defined in [types/src/index.ts:867](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/types/src/index.ts#L867)* ___ @@ -19094,7 +8021,7 @@ ___ • **evm**: *[SimpleEvmOutput](#class-simpleevmoutput)* -*Defined in [types/src/index.ts:754](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/types/src/index.ts#L754)* +*Defined in [types/src/index.ts:866](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/types/src/index.ts#L866)*
@@ -19111,7 +8038,7 @@ ___ • **assetProxyId**: *string* -*Defined in [types/src/index.ts:191](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/types/src/index.ts#L191)* +*Defined in [types/src/index.ts:191](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/types/src/index.ts#L191)* ___ @@ -19119,7 +8046,7 @@ ___ • **callResultHash**: *string* -*Defined in [types/src/index.ts:194](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/types/src/index.ts#L194)* +*Defined in [types/src/index.ts:194](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/types/src/index.ts#L194)* ___ @@ -19127,7 +8054,7 @@ ___ • **callTarget**: *string* -*Defined in [types/src/index.ts:192](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/types/src/index.ts#L192)* +*Defined in [types/src/index.ts:192](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/types/src/index.ts#L192)* ___ @@ -19135,7 +8062,7 @@ ___ • **staticCallData**: *string* -*Defined in [types/src/index.ts:193](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/types/src/index.ts#L193)* +*Defined in [types/src/index.ts:193](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/types/src/index.ts#L193)*
@@ -19176,7 +8103,7 @@ Validator signature components • **signature**: *string* -*Defined in [types/src/index.ts:71](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/types/src/index.ts#L71)* +*Defined in [types/src/index.ts:71](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/types/src/index.ts#L71)* ___ @@ -19184,7 +8111,7 @@ ___ • **validatorAddress**: *string* -*Defined in [types/src/index.ts:70](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/types/src/index.ts#L70)* +*Defined in [types/src/index.ts:70](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/types/src/index.ts#L70)*
@@ -19199,7 +8126,7 @@ ZeroExTransaction for use with 0x Exchange executeTransaction • **data**: *string* -*Defined in [types/src/index.ts:49](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/types/src/index.ts#L49)* +*Defined in [types/src/index.ts:49](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/types/src/index.ts#L49)* ___ @@ -19207,7 +8134,7 @@ ___ • **domain**: *[EIP712DomainWithDefaultSchema](#class-eip712domainwithdefaultschema)* -*Defined in [types/src/index.ts:50](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/types/src/index.ts#L50)* +*Defined in [types/src/index.ts:50](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/types/src/index.ts#L50)* ___ @@ -19215,7 +8142,7 @@ ___ • **expirationTimeSeconds**: *`BigNumber`* -*Defined in [types/src/index.ts:46](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/types/src/index.ts#L46)* +*Defined in [types/src/index.ts:46](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/types/src/index.ts#L46)* ___ @@ -19223,7 +8150,7 @@ ___ • **gasPrice**: *`BigNumber`* -*Defined in [types/src/index.ts:47](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/types/src/index.ts#L47)* +*Defined in [types/src/index.ts:47](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/types/src/index.ts#L47)* ___ @@ -19231,7 +8158,7 @@ ___ • **salt**: *`BigNumber`* -*Defined in [types/src/index.ts:45](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/types/src/index.ts#L45)* +*Defined in [types/src/index.ts:45](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/types/src/index.ts#L45)* ___ @@ -19239,7 +8166,63 @@ ___ • **signerAddress**: *string* -*Defined in [types/src/index.ts:48](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/types/src/index.ts#L48)* +*Defined in [types/src/index.ts:48](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/types/src/index.ts#L48)* + +
+ + + + +## Type aliases + + + +### AssetData + +Ƭ **AssetData**: *[SingleAssetData](_types_src_index_.md#singleassetdata) | [MultiAssetData](#interface-multiassetdata) | [MultiAssetDataWithRecursiveDecoding](#interface-multiassetdatawithrecursivedecoding)* + +*Defined in [types/src/index.ts:224](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/types/src/index.ts#L224)* + +___ + + + + + + + +### EventCallback + +Ƭ **EventCallback**: *function* + +*Defined in [types/src/index.ts:848](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/types/src/index.ts#L848)* + +#### Type declaration: + +▸ (`err`: null | `Error`, `log?`: [DecodedLogEvent](#interface-decodedlogevent)‹*`ArgsType`*›): *void* + +**Parameters:** + +Name | Type | +------ | ------ | +`err` | null \| `Error` | +`log?` | [DecodedLogEvent](#interface-decodedlogevent)‹*`ArgsType`*› | + +___ + + + + + + + + + +### SingleAssetData + +Ƭ **SingleAssetData**: *[ERC20AssetData](#interface-erc20assetdata) | [ERC721AssetData](#interface-erc721assetdata) | [ERC1155AssetData](#interface-erc1155assetdata) | [StaticCallAssetData](#interface-staticcallassetdata)* + +*Defined in [types/src/index.ts:204](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/types/src/index.ts#L204)*
@@ -19256,7 +8239,7 @@ ___ Ƭ **ERC20TokenEventArgs**: *[ERC20TokenTransferEventArgs](#interface-erc20tokentransfereventargs) | [ERC20TokenApprovalEventArgs](#interface-erc20tokenapprovaleventargs)* -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc20_token.ts:28](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc20_token.ts#L28)* +*Defined in [abi-gen-wrappers/src/generated-wrappers/erc20_token.ts:37](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/erc20_token.ts#L37)*
@@ -19269,7 +8252,7 @@ ___ Ƭ **ERC721TokenEventArgs**: *[ERC721TokenApprovalEventArgs](#interface-erc721tokenapprovaleventargs) | [ERC721TokenApprovalForAllEventArgs](#interface-erc721tokenapprovalforalleventargs) | [ERC721TokenTransferEventArgs](#interface-erc721tokentransfereventargs)* -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc721_token.ts:28](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc721_token.ts#L28)* +*Defined in [abi-gen-wrappers/src/generated-wrappers/erc721_token.ts:37](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/erc721_token.ts#L37)*
@@ -19282,7 +8265,7 @@ ___ Ƭ **ExchangeEventArgs**: *[ExchangeAssetProxyRegisteredEventArgs](#interface-exchangeassetproxyregisteredeventargs) | [ExchangeCancelEventArgs](#interface-exchangecanceleventargs) | [ExchangeCancelUpToEventArgs](#interface-exchangecanceluptoeventargs) | [ExchangeFillEventArgs](#interface-exchangefilleventargs) | [ExchangeProtocolFeeCollectorAddressEventArgs](#interface-exchangeprotocolfeecollectoraddresseventargs) | [ExchangeProtocolFeeMultiplierEventArgs](#interface-exchangeprotocolfeemultipliereventargs) | [ExchangeSignatureValidatorApprovalEventArgs](#interface-exchangesignaturevalidatorapprovaleventargs) | [ExchangeTransactionExecutionEventArgs](#interface-exchangetransactionexecutioneventargs)* -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:28](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L28)* +*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:37](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L37)*
@@ -19303,7 +8286,7 @@ ___ Ƭ **WETH9EventArgs**: *[WETH9ApprovalEventArgs](#interface-weth9approvaleventargs) | [WETH9TransferEventArgs](#interface-weth9transfereventargs) | [WETH9DepositEventArgs](#interface-weth9depositeventargs) | [WETH9WithdrawalEventArgs](#interface-weth9withdrawaleventargs)* -*Defined in [abi-gen-wrappers/src/generated-wrappers/weth9.ts:28](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/weth9.ts#L28)* +*Defined in [abi-gen-wrappers/src/generated-wrappers/weth9.ts:37](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/weth9.ts#L37)*
@@ -19312,39 +8295,33 @@ ___ ## Type aliases -### ZRXTokenEventArgs -Ƭ **ZRXTokenEventArgs**: *[ZRXTokenTransferEventArgs](#interface-zrxtokentransfereventargs) | [ZRXTokenApprovalEventArgs](#interface-zrxtokenapprovaleventargs)* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/zrx_token.ts:28](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/zrx_token.ts#L28)* - -
## Functions -### getContractAddressesForNetworkOrThrow +### getContractAddressesForChainOrThrow -▸ **getContractAddressesForNetworkOrThrow**(`networkId`: [NetworkId](#enumeration-networkid)): *[ContractAddresses](#interface-contractaddresses)* +▸ **getContractAddressesForChainOrThrow**(`chainId`: [ChainId](#enumeration-chainid)): *[ContractAddresses](#interface-contractaddresses)* -*Defined in [contract-addresses/src/index.ts:128](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/contract-addresses/src/index.ts#L128)* +*Defined in [contract-addresses/src/index.ts:45](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/contract-addresses/src/index.ts#L45)* Used to get addresses of contracts that have been deployed to either the Ethereum mainnet or a supported testnet. Throws if there are no known -contracts deployed on the corresponding network. +contracts deployed on the corresponding chain. **Parameters:** Name | Type | Description | ------ | ------ | ------ | -`networkId` | [NetworkId](#enumeration-networkid) | The desired networkId. | +`chainId` | [ChainId](#enumeration-chainid) | The desired chainId. | **Returns:** *[ContractAddresses](#interface-contractaddresses)* The set of addresses for contracts which have been deployed on the -given networkId. +given chainId.
@@ -19357,7 +8334,7 @@ given networkId. Ƭ **AbiDefinition**: *[FunctionAbi](_ethereum_types_src_index_.md#functionabi) | [EventAbi](#interface-eventabi) | [RevertErrorAbi](#interface-reverterrorabi)* -*Defined in [ethereum-types/src/index.ts:80](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L80)* +*Defined in [ethereum-types/src/index.ts:80](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L80)* ___ @@ -19365,7 +8342,7 @@ ___ Ƭ **BlockParam**: *[BlockParamLiteral](#enumeration-blockparamliteral) | number* -*Defined in [ethereum-types/src/index.ts:483](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L483)* +*Defined in [ethereum-types/src/index.ts:483](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L483)* ___ @@ -19373,7 +8350,7 @@ ___ Ƭ **ConstructorStateMutability**: *"nonpayable" | "payable"* -*Defined in [ethereum-types/src/index.ts:84](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L84)* +*Defined in [ethereum-types/src/index.ts:84](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L84)* ___ @@ -19381,7 +8358,7 @@ ___ Ƭ **ContractAbi**: *[AbiDefinition](#abidefinition)[]* -*Defined in [ethereum-types/src/index.ts:78](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L78)* +*Defined in [ethereum-types/src/index.ts:78](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L78)* ___ @@ -19389,7 +8366,7 @@ ___ Ƭ **ContractEventArg**: *any* -*Defined in [ethereum-types/src/index.ts:468](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L468)* +*Defined in [ethereum-types/src/index.ts:468](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L468)* ___ @@ -19399,7 +8376,7 @@ ___ Ƭ **EIP1193Event**: *"accountsChanged" | "networkChanged" | "close" | "connect" | "notification"* -*Defined in [ethereum-types/src/index.ts:70](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L70)* +*Defined in [ethereum-types/src/index.ts:70](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L70)* Interface for providers that conform to EIP 1193 Source: https://github.com/ethereum/EIPs/blob/master/EIPS/eip-1193.md @@ -19414,7 +8391,7 @@ ___ Ƭ **FunctionAbi**: *[MethodAbi](#interface-methodabi) | [ConstructorAbi](#interface-constructorabi) | [FallbackAbi](#interface-fallbackabi)* -*Defined in [ethereum-types/src/index.ts:82](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L82)* +*Defined in [ethereum-types/src/index.ts:82](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L82)* ___ @@ -19422,7 +8399,7 @@ ___ Ƭ **JSONRPCErrorCallback**: *function* -*Defined in [ethereum-types/src/index.ts:3](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L3)* +*Defined in [ethereum-types/src/index.ts:3](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L3)* #### Type declaration: @@ -19443,7 +8420,7 @@ ___ Ƭ **OutputField**: *"*" | "ast" | "legacyAST" | "abi" | "devdoc" | "userdoc" | "metadata" | "ir" | "evm.assembly" | "evm.legacyAssembly" | "evm.bytecode.object" | "evm.bytecode.opcodes" | "evm.bytecode.sourceMap" | "evm.bytecode.linkReferences" | "evm.deployedBytecode.object" | "evm.deployedBytecode.opcodes" | "evm.deployedBytecode.sourceMap" | "evm.deployedBytecode.linkReferences" | "evm.methodIdentifiers" | "evm.gasEstimates" | "ewasm.wast" | "ewasm.wasm"* -*Defined in [ethereum-types/src/index.ts:525](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L525)* +*Defined in [ethereum-types/src/index.ts:525](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L525)* ___ @@ -19451,7 +8428,7 @@ ___ Ƭ **ParamDescription**: *string* -*Defined in [ethereum-types/src/index.ts:561](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L561)* +*Defined in [ethereum-types/src/index.ts:561](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L561)* ___ @@ -19461,7 +8438,7 @@ ___ Ƭ **StateMutability**: *"pure" | "view" | [ConstructorStateMutability](#constructorstatemutability)* -*Defined in [ethereum-types/src/index.ts:85](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L85)* +*Defined in [ethereum-types/src/index.ts:85](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L85)* ___ @@ -19469,7 +8446,7 @@ ___ Ƭ **SupportedProvider**: *[Web3JsProvider](_ethereum_types_src_index_.md#web3jsprovider) | [GanacheProvider](#interface-ganacheprovider) | [EIP1193Provider](#interface-eip1193provider) | [ZeroExProvider](#interface-zeroexprovider)* -*Defined in [ethereum-types/src/index.ts:9](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L9)* +*Defined in [ethereum-types/src/index.ts:9](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L9)* Do not create your own provider. Use an existing provider from a Web3 or ProviderEngine library Read more about Providers in the guides section of the 0x docs. @@ -19484,7 +8461,7 @@ ___ Ƭ **Web3JsProvider**: *[Web3JsV1Provider](#interface-web3jsv1provider) | [Web3JsV2Provider](#interface-web3jsv2provider) | [Web3JsV3Provider](#interface-web3jsv3provider)* -*Defined in [ethereum-types/src/index.ts:11](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L11)* +*Defined in [ethereum-types/src/index.ts:11](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L11)*
@@ -19497,13 +8474,13 @@ ___ #### ▪ **assetDataUtils**: *object* -*Defined in [order-utils/src/asset_data_utils.ts:23](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/order-utils/src/asset_data_utils.ts#L23)* +*Defined in [order-utils/src/asset_data_utils.ts:23](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/order-utils/src/asset_data_utils.ts#L23)* #### assertIsERC1155AssetData ▸ **assertIsERC1155AssetData**(`assetData`: string): *void* -*Defined in [order-utils/src/asset_data_utils.ts:397](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/order-utils/src/asset_data_utils.ts#L397)* +*Defined in [order-utils/src/asset_data_utils.ts:397](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/order-utils/src/asset_data_utils.ts#L397)* Throws if the assetData is not ERC1155. @@ -19519,7 +8496,7 @@ Name | Type | Description | ▸ **assertIsERC20AssetData**(`assetData`: string): *void* -*Defined in [order-utils/src/asset_data_utils.ts:353](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/order-utils/src/asset_data_utils.ts#L353)* +*Defined in [order-utils/src/asset_data_utils.ts:353](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/order-utils/src/asset_data_utils.ts#L353)* Throws if the length or assetProxyId are invalid for the ERC20Proxy. @@ -19535,7 +8512,7 @@ Name | Type | Description | ▸ **assertIsERC721AssetData**(`assetData`: string): *void* -*Defined in [order-utils/src/asset_data_utils.ts:375](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/order-utils/src/asset_data_utils.ts#L375)* +*Defined in [order-utils/src/asset_data_utils.ts:375](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/order-utils/src/asset_data_utils.ts#L375)* Throws if the length or assetProxyId are invalid for the ERC721Proxy. @@ -19551,7 +8528,7 @@ Name | Type | Description | ▸ **assertIsMultiAssetData**(`assetData`: string): *void* -*Defined in [order-utils/src/asset_data_utils.ts:419](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/order-utils/src/asset_data_utils.ts#L419)* +*Defined in [order-utils/src/asset_data_utils.ts:419](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/order-utils/src/asset_data_utils.ts#L419)* Throws if the length or assetProxyId are invalid for the MultiAssetProxy. @@ -19567,7 +8544,7 @@ Name | Type | Description | ▸ **assertIsStaticCallAssetData**(`assetData`: string): *void* -*Defined in [order-utils/src/asset_data_utils.ts:441](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/order-utils/src/asset_data_utils.ts#L441)* +*Defined in [order-utils/src/asset_data_utils.ts:441](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/order-utils/src/asset_data_utils.ts#L441)* Throws if the assetData is not StaticCallData. @@ -19583,7 +8560,7 @@ Name | Type | Description | ▸ **assertWordAlignedAssetData**(`assetData`: string): *void* -*Defined in [order-utils/src/asset_data_utils.ts:463](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/order-utils/src/asset_data_utils.ts#L463)* +*Defined in [order-utils/src/asset_data_utils.ts:463](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/order-utils/src/asset_data_utils.ts#L463)* Throws if the assetData is not padded to 32 bytes. @@ -19599,7 +8576,7 @@ Name | Type | Description | ▸ **decodeAssetDataOrThrow**(`assetData`: string): *[SingleAssetData](#singleassetdata) | `MultiAssetData`* -*Defined in [order-utils/src/asset_data_utils.ts:502](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/order-utils/src/asset_data_utils.ts#L502)* +*Defined in [order-utils/src/asset_data_utils.ts:502](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/order-utils/src/asset_data_utils.ts#L502)* Decode any assetData into its corresponding assetData object @@ -19617,7 +8594,7 @@ Either a ERC20, ERC721, ERC1155, or MultiAsset assetData object ▸ **decodeAssetProxyId**(`assetData`: string): *`AssetProxyId`* -*Defined in [order-utils/src/asset_data_utils.ts:294](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/order-utils/src/asset_data_utils.ts#L294)* +*Defined in [order-utils/src/asset_data_utils.ts:294](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/order-utils/src/asset_data_utils.ts#L294)* Decode and return the assetProxyId from the assetData @@ -19635,7 +8612,7 @@ The assetProxyId ▸ **decodeDutchAuctionData**(`dutchAuctionData`: string): *`DutchAuctionData`* -*Defined in [order-utils/src/asset_data_utils.ts:263](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/order-utils/src/asset_data_utils.ts#L263)* +*Defined in [order-utils/src/asset_data_utils.ts:263](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/order-utils/src/asset_data_utils.ts#L263)* Dutch auction details are encoded with the asset data for a 0x order. This function decodes a hex encoded assetData string, containing information both about the asset being traded and the @@ -19655,7 +8632,7 @@ An object containing the auction asset, auction begin time and auction begin amo ▸ **decodeERC1155AssetData**(`assetData`: string): *`ERC1155AssetData`* -*Defined in [order-utils/src/asset_data_utils.ts:107](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/order-utils/src/asset_data_utils.ts#L107)* +*Defined in [order-utils/src/asset_data_utils.ts:107](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/order-utils/src/asset_data_utils.ts#L107)* Decodes an ERC1155 assetData hex string into its corresponding ERC1155 components. @@ -19673,7 +8650,7 @@ An object containing the decoded tokenAddress, tokenIds, tokenValues, callbackDa ▸ **decodeERC20AssetData**(`assetData`: string): *`ERC20AssetData`* -*Defined in [order-utils/src/asset_data_utils.ts:41](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/order-utils/src/asset_data_utils.ts#L41)* +*Defined in [order-utils/src/asset_data_utils.ts:41](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/order-utils/src/asset_data_utils.ts#L41)* Decodes an ERC20 assetData hex string into its corresponding ERC20 tokenAddress & assetProxyId @@ -19691,7 +8668,7 @@ An object containing the decoded tokenAddress & assetProxyId ▸ **decodeERC721AssetData**(`assetData`: string): *`ERC721AssetData`* -*Defined in [order-utils/src/asset_data_utils.ts:70](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/order-utils/src/asset_data_utils.ts#L70)* +*Defined in [order-utils/src/asset_data_utils.ts:70](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/order-utils/src/asset_data_utils.ts#L70)* Decodes an ERC721 assetData hex string into its corresponding ERC721 tokenAddress, tokenId & assetProxyId @@ -19709,7 +8686,7 @@ An object containing the decoded tokenAddress, tokenId & assetProxyId ▸ **decodeMultiAssetData**(`assetData`: string): *`MultiAssetData`* -*Defined in [order-utils/src/asset_data_utils.ts:149](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/order-utils/src/asset_data_utils.ts#L149)* +*Defined in [order-utils/src/asset_data_utils.ts:149](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/order-utils/src/asset_data_utils.ts#L149)* Decodes a MultiAsset assetData hex string into its corresponding amounts and nestedAssetData @@ -19727,7 +8704,7 @@ An object containing the decoded amounts and nestedAssetData ▸ **decodeMultiAssetDataRecursively**(`assetData`: string): *`MultiAssetDataWithRecursiveDecoding`* -*Defined in [order-utils/src/asset_data_utils.ts:175](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/order-utils/src/asset_data_utils.ts#L175)* +*Defined in [order-utils/src/asset_data_utils.ts:175](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/order-utils/src/asset_data_utils.ts#L175)* Decodes a MultiAsset assetData hex string into its corresponding amounts and decoded nestedAssetData elements (all nested elements are flattened) @@ -19745,7 +8722,7 @@ An object containing the decoded amounts and nestedAssetData ▸ **decodeStaticCallAssetData**(`assetData`: string): *`StaticCallAssetData`* -*Defined in [order-utils/src/asset_data_utils.ts:225](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/order-utils/src/asset_data_utils.ts#L225)* +*Defined in [order-utils/src/asset_data_utils.ts:225](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/order-utils/src/asset_data_utils.ts#L225)* Decoded StaticCall assetData into its corresponding callTarget, staticCallData, and expected callResultHash @@ -19763,7 +8740,7 @@ An object containing the decoded callTarget, staticCallData, and expected callRe ▸ **encodeDutchAuctionAssetData**(`assetData`: string, `beginTimeSeconds`: `BigNumber`, `beginAmount`: `BigNumber`): *string* -*Defined in [order-utils/src/asset_data_utils.ts:245](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/order-utils/src/asset_data_utils.ts#L245)* +*Defined in [order-utils/src/asset_data_utils.ts:245](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/order-utils/src/asset_data_utils.ts#L245)* Dutch auction details are encoded with the asset data for a 0x order. This function produces a hex encoded assetData string, containing information both about the asset being traded and the @@ -19785,7 +8762,7 @@ The hex encoded assetData string. ▸ **encodeERC1155AssetData**(`tokenAddress`: string, `tokenIds`: `BigNumber`[], `tokenValues`: `BigNumber`[], `callbackData`: string): *string* -*Defined in [order-utils/src/asset_data_utils.ts:91](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/order-utils/src/asset_data_utils.ts#L91)* +*Defined in [order-utils/src/asset_data_utils.ts:91](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/order-utils/src/asset_data_utils.ts#L91)* Encodes a set of ERC1155 assets into an assetData string, usable in the makerAssetData or takerAssetData fields of a 0x order. @@ -19807,7 +8784,7 @@ The hex encoded assetData string ▸ **encodeERC20AssetData**(`tokenAddress`: string): *string* -*Defined in [order-utils/src/asset_data_utils.ts:30](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/order-utils/src/asset_data_utils.ts#L30)* +*Defined in [order-utils/src/asset_data_utils.ts:30](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/order-utils/src/asset_data_utils.ts#L30)* Encodes an ERC20 token address into a hex encoded assetData string, usable in the makerAssetData or takerAssetData fields in a 0x order. @@ -19826,7 +8803,7 @@ The hex encoded assetData string ▸ **encodeERC721AssetData**(`tokenAddress`: string, `tokenId`: `BigNumber`): *string* -*Defined in [order-utils/src/asset_data_utils.ts:59](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/order-utils/src/asset_data_utils.ts#L59)* +*Defined in [order-utils/src/asset_data_utils.ts:59](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/order-utils/src/asset_data_utils.ts#L59)* Encodes an ERC721 token address into a hex encoded assetData string, usable in the makerAssetData or takerAssetData fields in a 0x order. @@ -19846,7 +8823,7 @@ The hex encoded assetData string ▸ **encodeMultiAssetData**(`amounts`: `BigNumber`[], `nestedAssetData`: string[]): *string* -*Defined in [order-utils/src/asset_data_utils.ts:130](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/order-utils/src/asset_data_utils.ts#L130)* +*Defined in [order-utils/src/asset_data_utils.ts:130](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/order-utils/src/asset_data_utils.ts#L130)* Encodes assetData for multiple AssetProxies into a single hex encoded assetData string, usable in the makerAssetData or takerAssetData fields in a 0x order. @@ -19866,7 +8843,7 @@ The hex encoded assetData string ▸ **encodeStaticCallAssetData**(`callTarget`: string, `staticCallData`: string, `callResultHash`: string): *string* -*Defined in [order-utils/src/asset_data_utils.ts:214](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/order-utils/src/asset_data_utils.ts#L214)* +*Defined in [order-utils/src/asset_data_utils.ts:214](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/order-utils/src/asset_data_utils.ts#L214)* Encodes StaticCallProxy data into an assetData hex string @@ -19886,7 +8863,7 @@ The hex encoded assetData string ▸ **isERC1155AssetData**(`decodedAssetData`: [SingleAssetData](#singleassetdata) | `MultiAssetData`): *boolean* -*Defined in [order-utils/src/asset_data_utils.ts:332](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/order-utils/src/asset_data_utils.ts#L332)* +*Defined in [order-utils/src/asset_data_utils.ts:332](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/order-utils/src/asset_data_utils.ts#L332)* Checks if the decoded asset data is valid ERC1155 data @@ -19902,7 +8879,7 @@ Name | Type | Description | ▸ **isERC20AssetData**(`decodedAssetData`: [SingleAssetData](#singleassetdata) | `MultiAssetData`): *boolean* -*Defined in [order-utils/src/asset_data_utils.ts:318](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/order-utils/src/asset_data_utils.ts#L318)* +*Defined in [order-utils/src/asset_data_utils.ts:318](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/order-utils/src/asset_data_utils.ts#L318)* Checks if the decoded asset data is valid ERC20 data @@ -19918,7 +8895,7 @@ Name | Type | Description | ▸ **isERC721AssetData**(`decodedAssetData`: [SingleAssetData](#singleassetdata) | `MultiAssetData`): *boolean* -*Defined in [order-utils/src/asset_data_utils.ts:325](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/order-utils/src/asset_data_utils.ts#L325)* +*Defined in [order-utils/src/asset_data_utils.ts:325](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/order-utils/src/asset_data_utils.ts#L325)* Checks if the decoded asset data is valid ERC721 data @@ -19934,7 +8911,7 @@ Name | Type | Description | ▸ **isMultiAssetData**(`decodedAssetData`: [SingleAssetData](#singleassetdata) | `MultiAssetData`): *boolean* -*Defined in [order-utils/src/asset_data_utils.ts:339](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/order-utils/src/asset_data_utils.ts#L339)* +*Defined in [order-utils/src/asset_data_utils.ts:339](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/order-utils/src/asset_data_utils.ts#L339)* Checks if the decoded asset data is valid MultiAsset data @@ -19950,7 +8927,7 @@ Name | Type | Description | ▸ **isStaticCallAssetData**(`decodedAssetData`: [SingleAssetData](#singleassetdata) | `MultiAssetData`): *boolean* -*Defined in [order-utils/src/asset_data_utils.ts:346](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/order-utils/src/asset_data_utils.ts#L346)* +*Defined in [order-utils/src/asset_data_utils.ts:346](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/order-utils/src/asset_data_utils.ts#L346)* Checks if the decoded asset data is valid StaticCall data @@ -19966,7 +8943,7 @@ Name | Type | Description | ▸ **validateAssetDataOrThrow**(`assetData`: string): *void* -*Defined in [order-utils/src/asset_data_utils.ts:475](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/order-utils/src/asset_data_utils.ts#L475)* +*Defined in [order-utils/src/asset_data_utils.ts:475](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/order-utils/src/asset_data_utils.ts#L475)* Throws if the length or assetProxyId are invalid for the corresponding AssetProxy. @@ -19989,13 +8966,13 @@ Name | Type | Description | #### ▪ **orderHashUtils**: *object* -*Defined in [order-utils/src/order_hash.ts:12](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/order-utils/src/order_hash.ts#L12)* +*Defined in [order-utils/src/order_hash.ts:12](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/order-utils/src/order_hash.ts#L12)* #### getOrderHashBuffer ▸ **getOrderHashBuffer**(`order`: `SignedOrder` | `Order`): *`Buffer`* -*Defined in [order-utils/src/order_hash.ts:55](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/order-utils/src/order_hash.ts#L55)* +*Defined in [order-utils/src/order_hash.ts:55](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/order-utils/src/order_hash.ts#L55)* Computes the orderHash for a supplied order @@ -20013,7 +8990,7 @@ A Buffer containing the resulting orderHash from hashing the supplied order ▸ **getOrderHashHex**(`order`: `SignedOrder` | `Order`): *string* -*Defined in [order-utils/src/order_hash.ts:33](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/order-utils/src/order_hash.ts#L33)* +*Defined in [order-utils/src/order_hash.ts:33](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/order-utils/src/order_hash.ts#L33)* Computes the orderHash for a supplied order. @@ -20031,7 +9008,7 @@ Hex encoded string orderHash from hashing the supplied order. ▸ **isValidOrderHash**(`orderHash`: string): *boolean* -*Defined in [order-utils/src/order_hash.ts:20](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/order-utils/src/order_hash.ts#L20)* +*Defined in [order-utils/src/order_hash.ts:20](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/order-utils/src/order_hash.ts#L20)* Checks if the supplied hex encoded order hash is valid. Note: Valid means it has the expected format, not that an order with the orderHash exists. @@ -20058,7 +9035,7 @@ Whether the supplied orderHash has the expected format. ▸ **generatePseudoRandomSalt**(): *`BigNumber`* -*Defined in [order-utils/src/salt.ts:9](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/order-utils/src/salt.ts#L9)* +*Defined in [order-utils/src/salt.ts:9](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/order-utils/src/salt.ts#L9)* Generates a pseudo-random 256-bit salt. The salt can be included in a 0x order, ensuring that the order generates a unique orderHash @@ -20079,13 +9056,13 @@ A pseudo-random 256-bit number that can be used as a salt. #### ▪ **signatureUtils**: *object* -*Defined in [order-utils/src/signature_utils.ts:27](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/order-utils/src/signature_utils.ts#L27)* +*Defined in [order-utils/src/signature_utils.ts:27](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/order-utils/src/signature_utils.ts#L27)* #### addSignedMessagePrefix ▸ **addSignedMessagePrefix**(`message`: string): *string* -*Defined in [order-utils/src/signature_utils.ts:500](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/order-utils/src/signature_utils.ts#L500)* +*Defined in [order-utils/src/signature_utils.ts:497](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/order-utils/src/signature_utils.ts#L497)* Adds the relevant prefix to the message being signed. @@ -20103,7 +9080,7 @@ Prefixed message ▸ **convertECSignatureToSignatureHex**(`ecSignature`: `ECSignature`): *string* -*Defined in [order-utils/src/signature_utils.ts:474](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/order-utils/src/signature_utils.ts#L474)* +*Defined in [order-utils/src/signature_utils.ts:471](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/order-utils/src/signature_utils.ts#L471)* Combines ECSignature with V,R,S and the EthSign signature type for use in 0x protocol @@ -20121,7 +9098,7 @@ Hex encoded string of signature (v,r,s) with Signature Type ▸ **convertToSignatureWithType**(`signature`: string, `signatureType`: `SignatureType`): *string* -*Defined in [order-utils/src/signature_utils.ts:490](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/order-utils/src/signature_utils.ts#L490)* +*Defined in [order-utils/src/signature_utils.ts:487](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/order-utils/src/signature_utils.ts#L487)* Combines the signature proof and the Signature Type. @@ -20140,7 +9117,7 @@ Hex encoded string of signature proof with Signature Type ▸ **ecSignHashAsync**(`supportedProvider`: [SupportedProvider](#supportedprovider), `msgHash`: string, `signerAddress`: string): *`Promise`* -*Defined in [order-utils/src/signature_utils.ts:417](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/order-utils/src/signature_utils.ts#L417)* +*Defined in [order-utils/src/signature_utils.ts:414](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/order-utils/src/signature_utils.ts#L414)* Signs a hash using `eth_sign` and returns its elliptic curve signature and signature type. @@ -20160,7 +9137,7 @@ A hex encoded string containing the Elliptic curve signature generated by signin ▸ **ecSignOrderAsync**(`supportedProvider`: [SupportedProvider](#supportedprovider), `order`: `Order`, `signerAddress`: string): *`Promise`* -*Defined in [order-utils/src/signature_utils.ts:252](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/order-utils/src/signature_utils.ts#L252)* +*Defined in [order-utils/src/signature_utils.ts:249](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/order-utils/src/signature_utils.ts#L249)* Signs an order and returns a SignedOrder. First `eth_signTypedData` is requested then a fallback to `eth_sign` if not available on the supplied provider. @@ -20181,7 +9158,7 @@ A SignedOrder containing the order and Elliptic curve signature with Signature T ▸ **ecSignTransactionAsync**(`supportedProvider`: [SupportedProvider](#supportedprovider), `transaction`: `ZeroExTransaction`, `signerAddress`: string): *`Promise`* -*Defined in [order-utils/src/signature_utils.ts:331](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/order-utils/src/signature_utils.ts#L331)* +*Defined in [order-utils/src/signature_utils.ts:328](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/order-utils/src/signature_utils.ts#L328)* Signs a transaction and returns a SignedZeroExTransaction. First `eth_signTypedData` is requested then a fallback to `eth_sign` if not available on the supplied provider. @@ -20202,7 +9179,7 @@ A SignedTransaction containing the order and Elliptic curve signature with Signa ▸ **ecSignTypedDataOrderAsync**(`supportedProvider`: [SupportedProvider](#supportedprovider), `order`: `Order`, `signerAddress`: string): *`Promise`* -*Defined in [order-utils/src/signature_utils.ts:287](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/order-utils/src/signature_utils.ts#L287)* +*Defined in [order-utils/src/signature_utils.ts:284](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/order-utils/src/signature_utils.ts#L284)* Signs an order using `eth_signTypedData` and returns a SignedOrder. @@ -20222,7 +9199,7 @@ A SignedOrder containing the order and Elliptic curve signature with Signature T ▸ **ecSignTypedDataTransactionAsync**(`supportedProvider`: [SupportedProvider](#supportedprovider), `transaction`: `ZeroExTransaction`, `signerAddress`: string): *`Promise`* -*Defined in [order-utils/src/signature_utils.ts:374](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/order-utils/src/signature_utils.ts#L374)* +*Defined in [order-utils/src/signature_utils.ts:371](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/order-utils/src/signature_utils.ts#L371)* Signs a ZeroExTransaction using `eth_signTypedData` and returns a SignedZeroExTransaction. @@ -20242,7 +9219,7 @@ A SignedZeroExTransaction containing the ZeroExTransaction and Elliptic curve si ▸ **isValidECSignature**(`data`: string, `signature`: `ECSignature`, `signerAddress`: string): *boolean* -*Defined in [order-utils/src/signature_utils.ts:222](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/order-utils/src/signature_utils.ts#L222)* +*Defined in [order-utils/src/signature_utils.ts:219](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/order-utils/src/signature_utils.ts#L219)* Checks if the supplied elliptic curve signature corresponds to signing `data` with the private key corresponding to `signerAddress` @@ -20263,7 +9240,7 @@ Whether the ECSignature is valid. ▸ **isValidPresignedSignatureAsync**(`supportedProvider`: [SupportedProvider](#supportedprovider), `data`: string, `signerAddress`: string, `exchangeAddress?`: undefined | string): *`Promise`* -*Defined in [order-utils/src/signature_utils.ts:107](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/order-utils/src/signature_utils.ts#L107)* +*Defined in [order-utils/src/signature_utils.ts:107](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/order-utils/src/signature_utils.ts#L107)* Verifies that the provided presigned signature is valid according to the 0x Protocol smart contracts @@ -20284,7 +9261,7 @@ Whether the data was preSigned by the supplied signerAddress ▸ **isValidSignatureAsync**(`supportedProvider`: [SupportedProvider](#supportedprovider), `data`: string, `signature`: string, `signerAddress`: string, `exchangeAddress?`: undefined | string): *`Promise`* -*Defined in [order-utils/src/signature_utils.ts:38](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/order-utils/src/signature_utils.ts#L38)* +*Defined in [order-utils/src/signature_utils.ts:38](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/order-utils/src/signature_utils.ts#L38)* Verifies that the provided signature is valid according to the 0x Protocol smart contracts @@ -20306,7 +9283,7 @@ Whether the signature is valid for the supplied signerAddress and data. ▸ **isValidValidatorSignatureAsync**(`supportedProvider`: [SupportedProvider](#supportedprovider), `data`: string, `signature`: string, `signerAddress`: string, `exchangeAddress?`: undefined | string): *`Promise`* -*Defined in [order-utils/src/signature_utils.ts:168](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/order-utils/src/signature_utils.ts#L168)* +*Defined in [order-utils/src/signature_utils.ts:168](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/order-utils/src/signature_utils.ts#L168)* Verifies that the provided validator signature is valid according to the 0x Protocol smart contracts @@ -20328,7 +9305,7 @@ Whether the data was preSigned by the supplied signerAddress. ▸ **isValidWalletSignatureAsync**(`supportedProvider`: [SupportedProvider](#supportedprovider), `data`: string, `signature`: string, `signerAddress`: string): *`Promise`* -*Defined in [order-utils/src/signature_utils.ts:139](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/order-utils/src/signature_utils.ts#L139)* +*Defined in [order-utils/src/signature_utils.ts:139](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/order-utils/src/signature_utils.ts#L139)* Verifies that the provided wallet signature is valid according to the 0x Protocol smart contracts @@ -20349,7 +9326,7 @@ Whether the data was preSigned by the supplied signerAddress. ▸ **parseECSignature**(`signature`: string): *`ECSignature`* -*Defined in [order-utils/src/signature_utils.ts:512](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/order-utils/src/signature_utils.ts#L512)* +*Defined in [order-utils/src/signature_utils.ts:509](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/order-utils/src/signature_utils.ts#L509)* Parse a 0x protocol hex-encoded signature string into its ECSignature components @@ -20367,7 +9344,7 @@ An ECSignature object with r,s,v parameters ▸ **parseValidatorSignature**(`signature`: string): *`ValidatorSignature`* -*Defined in [order-utils/src/signature_utils.ts:529](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/order-utils/src/signature_utils.ts#L529)* +*Defined in [order-utils/src/signature_utils.ts:526](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/order-utils/src/signature_utils.ts#L526)* Parse a hex-encoded Validator signature into validator address and signature components @@ -20392,13 +9369,13 @@ A ValidatorSignature with validatorAddress and signature parameters #### ▪ **transactionHashUtils**: *object* -*Defined in [order-utils/src/transaction_hash.ts:9](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/order-utils/src/transaction_hash.ts#L9)* +*Defined in [order-utils/src/transaction_hash.ts:9](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/order-utils/src/transaction_hash.ts#L9)* #### getTransactionHashBuffer ▸ **getTransactionHashBuffer**(`transaction`: `ZeroExTransaction` | `SignedZeroExTransaction`): *`Buffer`* -*Defined in [order-utils/src/transaction_hash.ts:41](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/order-utils/src/transaction_hash.ts#L41)* +*Defined in [order-utils/src/transaction_hash.ts:41](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/order-utils/src/transaction_hash.ts#L41)* Computes the transactionHash for a supplied 0x transaction. @@ -20416,7 +9393,7 @@ A Buffer containing the resulting transactionHash from hashing the supplied 0x t ▸ **getTransactionHashHex**(`transaction`: `ZeroExTransaction` | `SignedZeroExTransaction`): *string* -*Defined in [order-utils/src/transaction_hash.ts:30](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/order-utils/src/transaction_hash.ts#L30)* +*Defined in [order-utils/src/transaction_hash.ts:30](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/order-utils/src/transaction_hash.ts#L30)* Computes the transactionHash for a supplied 0x transaction. @@ -20434,7 +9411,7 @@ Hex encoded string transactionHash from hashing the supplied order. ▸ **isValidTransactionHash**(`transactionHash`: string): *boolean* -*Defined in [order-utils/src/transaction_hash.ts:17](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/order-utils/src/transaction_hash.ts#L17)* +*Defined in [order-utils/src/transaction_hash.ts:17](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/order-utils/src/transaction_hash.ts#L17)* Checks if the supplied hex encoded 0x transaction hash is valid. Note: Valid means it has the expected format, not that a transaction with the transactionHash exists. @@ -20469,7 +9446,7 @@ Whether the supplied transactionHash has the expected format. Ƭ **Callback**: *function* -*Defined in [subproviders/src/types.ts:131](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/subproviders/src/types.ts#L131)* +*Defined in [subproviders/src/types.ts:131](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/subproviders/src/types.ts#L131)* ##### Type declaration: @@ -20483,7 +9460,7 @@ ___ Ƭ **ErrorCallback**: *function* -*Defined in [subproviders/src/types.ts:130](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/subproviders/src/types.ts#L130)* +*Defined in [subproviders/src/types.ts:130](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/subproviders/src/types.ts#L130)* #### Type declaration: @@ -20504,63 +9481,3 @@ ___ - - - -## Type aliases - - - -### AssetData - -Ƭ **AssetData**: *[SingleAssetData](_types_src_index_.md#singleassetdata) | [MultiAssetData](#interface-multiassetdata) | [MultiAssetDataWithRecursiveDecoding](#interface-multiassetdatawithrecursivedecoding)* - -*Defined in [types/src/index.ts:224](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/types/src/index.ts#L224)* - -___ - - - - - - - -### EventCallback - -Ƭ **EventCallback**: *function* - -*Defined in [types/src/index.ts:857](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/types/src/index.ts#L857)* - -#### Type declaration: - -▸ (`err`: null | `Error`, `log?`: [DecodedLogEvent](#interface-decodedlogevent)‹*`ArgsType`*›): *void* - -**Parameters:** - -Name | Type | ------- | ------ | -`err` | null \| `Error` | -`log?` | [DecodedLogEvent](#interface-decodedlogevent)‹*`ArgsType`*› | - -___ - - - - - - - - - -### SingleAssetData - -Ƭ **SingleAssetData**: *[ERC20AssetData](#interface-erc20assetdata) | [ERC721AssetData](#interface-erc721assetdata) | [ERC1155AssetData](#interface-erc1155assetdata) | [StaticCallAssetData](#interface-staticcallassetdata)* - -*Defined in [types/src/index.ts:204](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/types/src/index.ts#L204)* - -
- - - -
- diff --git a/packages/0x.js/package.json b/packages/0x.js/package.json index c2b0024291..7d32afc7b3 100644 --- a/packages/0x.js/package.json +++ b/packages/0x.js/package.json @@ -1,6 +1,6 @@ { "name": "0x.js", - "version": "7.1.0-beta.0", + "version": "8.0.0-beta.0", "engines": { "node": ">=6.12" }, @@ -46,11 +46,11 @@ }, "license": "Apache-2.0", "devDependencies": { - "@0x/contract-addresses": "^3.3.0-beta.0", - "@0x/dev-utils": "^2.4.0-beta.0", - "@0x/migrations": "^4.4.0-beta.0", + "@0x/contract-addresses": "^3.3.0-beta.2", + "@0x/dev-utils": "^2.4.0-beta.1", + "@0x/migrations": "^4.4.0-beta.1", "@0x/ts-doc-gen": "^0.0.22", - "@0x/tslint-config": "^3.0.1", + "@0x/tslint-config": "^3.1.0-beta.1", "@types/lodash": "4.14.104", "@types/mocha": "^5.2.7", "@types/node": "*", @@ -77,19 +77,19 @@ "webpack": "^4.20.2" }, "dependencies": { - "@0x/abi-gen-wrappers": "^5.4.0-beta.0", - "@0x/assert": "^2.2.0-beta.0", - "@0x/asset-swapper": "^2.1.0-beta.0", - "@0x/base-contract": "^5.5.0-beta.0", - "@0x/contract-wrappers": "^12.2.0-beta.0", - "@0x/order-utils": "^8.5.0-beta.0", - "@0x/subproviders": "^5.1.0-beta.0", - "@0x/types": "^2.5.0-beta.0", - "@0x/typescript-typings": "^4.4.0-beta.0", - "@0x/utils": "^4.6.0-beta.0", - "@0x/web3-wrapper": "^6.1.0-beta.0", + "@0x/abi-gen-wrappers": "^5.4.0-beta.1", + "@0x/assert": "^2.2.0-beta.1", + "@0x/asset-swapper": "^2.1.0-beta.1", + "@0x/base-contract": "^5.5.0-beta.1", + "@0x/contract-wrappers": "^12.2.0-beta.1", + "@0x/order-utils": "^8.5.0-beta.1", + "@0x/subproviders": "^5.1.0-beta.1", + "@0x/types": "^2.5.0-beta.1", + "@0x/typescript-typings": "^4.4.0-beta.1", + "@0x/utils": "^4.6.0-beta.1", + "@0x/web3-wrapper": "^6.1.0-beta.1", "@types/web3-provider-engine": "^14.0.0", - "ethereum-types": "^2.2.0-beta.0", + "ethereum-types": "^2.2.0-beta.1", "ethers": "~4.0.4", "lodash": "^4.17.11", "web3-provider-engine": "14.0.6" diff --git a/packages/0x.js/src/index.ts b/packages/0x.js/src/index.ts index 2cfcf925c7..7b1f1fe5ed 100644 --- a/packages/0x.js/src/index.ts +++ b/packages/0x.js/src/index.ts @@ -38,11 +38,6 @@ export { ERC721TokenApprovalEventArgs, ERC721TokenApprovalForAllEventArgs, ERC721TokenContract, - ZRXTokenEventArgs, - ZRXTokenEvents, - ZRXTokenTransferEventArgs, - ZRXTokenApprovalEventArgs, - ZRXTokenContract, ExchangeProtocolFeeCollectorAddressEventArgs, ExchangeProtocolFeeMultiplierEventArgs, ExchangeTransactionExecutionEventArgs, diff --git a/packages/abi-gen-wrappers/CHANGELOG.json b/packages/abi-gen-wrappers/CHANGELOG.json index e58a45f47a..acaf15522e 100644 --- a/packages/abi-gen-wrappers/CHANGELOG.json +++ b/packages/abi-gen-wrappers/CHANGELOG.json @@ -1,4 +1,13 @@ [ + { + "version": "5.4.0-beta.2", + "changes": [ + { + "note": "[Breaking] Remove `erc20Proxy`, `multiAssetProxy`, `erc1155Proxy`, `staticCallProxy`, `erc721Proxy`, `assetProxyOwner`, `ZRXToken` and `dutchAuction` wrappers", + "pr": 2324 + } + ] + }, { "version": "5.4.0-beta.1", "changes": [ @@ -18,7 +27,8 @@ "note": "Remove `validateAndSendTransactionAsync`. Replaced with `shouldValidate` key in TxOpts. Defaults to true", "pr": 2243 } - ] + ], + "timestamp": 1573159180 }, { "version": "5.4.0-beta.0", diff --git a/packages/abi-gen-wrappers/CHANGELOG.md b/packages/abi-gen-wrappers/CHANGELOG.md index fc27af744c..859d1e3678 100644 --- a/packages/abi-gen-wrappers/CHANGELOG.md +++ b/packages/abi-gen-wrappers/CHANGELOG.md @@ -5,6 +5,13 @@ Edit the package's CHANGELOG.json file only. CHANGELOG +## v5.4.0-beta.1 - _November 7, 2019_ + + * Remove debug functions `getABIDecodedTransactionData` and `getABIDecodedReturnData` (#2243) + * Remove `getABIEncodedTransactionData` for constant functions (pure and view) (#2243) + * Introduce TxOpts object for `sendTransactionAsync` and `awaitTransactionSuccessAsync`. Replaces `timeoutMs` and `pollingIntervalMs` arguments for `awaitTransactionSuccessAsync` (#2243) + * Remove `validateAndSendTransactionAsync`. Replaced with `shouldValidate` key in TxOpts. Defaults to true (#2243) + ## v5.4.0-beta.0 - _October 3, 2019_ * Use V3 contracts (#2181) diff --git a/packages/abi-gen-wrappers/package.json b/packages/abi-gen-wrappers/package.json index f894e10df6..b265bbcba6 100644 --- a/packages/abi-gen-wrappers/package.json +++ b/packages/abi-gen-wrappers/package.json @@ -1,6 +1,6 @@ { "name": "@0x/abi-gen-wrappers", - "version": "5.4.0-beta.0", + "version": "5.4.0-beta.1", "engines": { "node": ">=6.12" }, @@ -21,7 +21,7 @@ "generate_contract_wrappers": "abi-gen --abis ${npm_package_config_abis} --output src/generated-wrappers --backend ethers" }, "config": { - "abis": "../contract-artifacts/artifacts/@(AssetProxyOwner|DevUtils|DutchAuction|DummyERC20Token|DummyERC721Token|ERC1155Mintable|ERC20Proxy|ERC20Token|ERC721Proxy|ERC721Token|Exchange|Forwarder|IAssetProxy|IValidator|IWallet|MultiAssetProxy|OrderValidator|WETH9|ZRXToken|Coordinator|CoordinatorRegistry|EthBalanceChecker|ERC1155Proxy|StaticCallProxy|Staking|StakingProxy).json" + "abis": "../contract-artifacts/artifacts/@(DevUtils|DummyERC20Token|DummyERC721Token|ERC1155Mintable|ERC20Token|ERC721Token|Exchange|Forwarder|IValidator|IWallet|OrderValidator|WETH9|Coordinator|CoordinatorRegistry|Staking|StakingProxy).json" }, "repository": { "type": "git", @@ -33,20 +33,20 @@ }, "homepage": "https://github.com/0xProject/0x-monorepo/packages/abi-gen-wrappers/README.md", "devDependencies": { - "@0x/abi-gen": "^4.3.0-beta.0", - "@0x/contract-artifacts": "^2.3.0-beta.0", - "@0x/tslint-config": "^3.0.1", + "@0x/abi-gen": "^4.4.0-beta.1", + "@0x/contract-artifacts": "^2.3.0-beta.2", + "@0x/tslint-config": "^3.1.0-beta.1", "shx": "^0.2.2" }, "dependencies": { - "@0x/assert": "^2.2.0-beta.0", - "@0x/base-contract": "^5.5.0-beta.0", - "@0x/contract-addresses": "^3.3.0-beta.0", - "@0x/json-schemas": "^4.1.0-beta.0", - "@0x/types": "^2.5.0-beta.0", - "@0x/utils": "^4.6.0-beta.0", - "@0x/web3-wrapper": "^6.1.0-beta.0", - "ethereum-types": "^2.2.0-beta.0", + "@0x/assert": "^2.2.0-beta.1", + "@0x/base-contract": "^5.5.0-beta.1", + "@0x/contract-addresses": "^3.3.0-beta.2", + "@0x/json-schemas": "^4.1.0-beta.1", + "@0x/types": "^2.5.0-beta.1", + "@0x/utils": "^4.6.0-beta.1", + "@0x/web3-wrapper": "^6.1.0-beta.1", + "ethereum-types": "^2.2.0-beta.1", "ethers": "~4.0.4" }, "publishConfig": { diff --git a/packages/abi-gen-wrappers/src/generated-wrappers/asset_proxy_owner.ts b/packages/abi-gen-wrappers/src/generated-wrappers/asset_proxy_owner.ts deleted file mode 100644 index e85a8c4d8e..0000000000 --- a/packages/abi-gen-wrappers/src/generated-wrappers/asset_proxy_owner.ts +++ /dev/null @@ -1,3130 +0,0 @@ -// tslint:disable:no-consecutive-blank-lines ordered-imports align trailing-comma enum-naming -// tslint:disable:whitespace no-unbound-method no-trailing-whitespace -// tslint:disable:no-unused-variable -import { - AwaitTransactionSuccessOpts, - ContractFunctionObj, - ContractTxFunctionObj, - SendTransactionOpts, - BaseContract, - SubscriptionManager, - PromiseWithTransactionHash, - methodAbiToFunctionSignature, -} from '@0x/base-contract'; -import { schemas } from '@0x/json-schemas'; -import { - BlockParam, - BlockParamLiteral, - BlockRange, - CallData, - ContractAbi, - ContractArtifact, - DecodedLogArgs, - LogWithDecodedArgs, - MethodAbi, - TransactionReceiptWithDecodedLogs, - TxData, - TxDataPayable, - SupportedProvider, -} from 'ethereum-types'; -import { BigNumber, classUtils, logUtils, providerUtils } from '@0x/utils'; -import { EventCallback, IndexedFilterValues, SimpleContractArtifact } from '@0x/types'; -import { Web3Wrapper } from '@0x/web3-wrapper'; -import { assert } from '@0x/assert'; -import * as ethers from 'ethers'; -// tslint:enable:no-unused-variable - -export type AssetProxyOwnerEventArgs = - | AssetProxyOwnerConfirmationEventArgs - | AssetProxyOwnerConfirmationTimeSetEventArgs - | AssetProxyOwnerDepositEventArgs - | AssetProxyOwnerExecutionEventArgs - | AssetProxyOwnerExecutionFailureEventArgs - | AssetProxyOwnerFunctionCallTimeLockRegistrationEventArgs - | AssetProxyOwnerOwnerAdditionEventArgs - | AssetProxyOwnerOwnerRemovalEventArgs - | AssetProxyOwnerRequirementChangeEventArgs - | AssetProxyOwnerRevocationEventArgs - | AssetProxyOwnerSubmissionEventArgs - | AssetProxyOwnerTimeLockChangeEventArgs; - -export enum AssetProxyOwnerEvents { - Confirmation = 'Confirmation', - ConfirmationTimeSet = 'ConfirmationTimeSet', - Deposit = 'Deposit', - Execution = 'Execution', - ExecutionFailure = 'ExecutionFailure', - FunctionCallTimeLockRegistration = 'FunctionCallTimeLockRegistration', - OwnerAddition = 'OwnerAddition', - OwnerRemoval = 'OwnerRemoval', - RequirementChange = 'RequirementChange', - Revocation = 'Revocation', - Submission = 'Submission', - TimeLockChange = 'TimeLockChange', -} - -export interface AssetProxyOwnerConfirmationEventArgs extends DecodedLogArgs { - sender: string; - transactionId: BigNumber; -} - -export interface AssetProxyOwnerConfirmationTimeSetEventArgs extends DecodedLogArgs { - transactionId: BigNumber; - confirmationTime: BigNumber; -} - -export interface AssetProxyOwnerDepositEventArgs extends DecodedLogArgs { - sender: string; - value: BigNumber; -} - -export interface AssetProxyOwnerExecutionEventArgs extends DecodedLogArgs { - transactionId: BigNumber; -} - -export interface AssetProxyOwnerExecutionFailureEventArgs extends DecodedLogArgs { - transactionId: BigNumber; -} - -export interface AssetProxyOwnerFunctionCallTimeLockRegistrationEventArgs extends DecodedLogArgs { - functionSelector: string; - destination: string; - hasCustomTimeLock: boolean; - newSecondsTimeLocked: BigNumber; -} - -export interface AssetProxyOwnerOwnerAdditionEventArgs extends DecodedLogArgs { - owner: string; -} - -export interface AssetProxyOwnerOwnerRemovalEventArgs extends DecodedLogArgs { - owner: string; -} - -export interface AssetProxyOwnerRequirementChangeEventArgs extends DecodedLogArgs { - required: BigNumber; -} - -export interface AssetProxyOwnerRevocationEventArgs extends DecodedLogArgs { - sender: string; - transactionId: BigNumber; -} - -export interface AssetProxyOwnerSubmissionEventArgs extends DecodedLogArgs { - transactionId: BigNumber; -} - -export interface AssetProxyOwnerTimeLockChangeEventArgs extends DecodedLogArgs { - secondsTimeLocked: BigNumber; -} - -/* istanbul ignore next */ -// tslint:disable:no-parameter-reassignment -// tslint:disable-next-line:class-name -export class AssetProxyOwnerContract extends BaseContract { - /** - * @ignore - */ - public static deployedBytecode: string | undefined; - private readonly _methodABIIndex: { [name: string]: number } = {}; - private readonly _subscriptionManager: SubscriptionManager; - public static async deployFrom0xArtifactAsync( - artifact: ContractArtifact | SimpleContractArtifact, - supportedProvider: SupportedProvider, - txDefaults: Partial, - logDecodeDependencies: { [contractName: string]: ContractArtifact | SimpleContractArtifact }, - _functionSelectors: string[], - _destinations: string[], - _functionCallTimeLockSeconds: BigNumber[], - _owners: string[], - _required: BigNumber, - _defaultSecondsTimeLocked: BigNumber, - ): Promise { - assert.doesConformToSchema('txDefaults', txDefaults, schemas.txDataSchema, [ - schemas.addressSchema, - schemas.numberSchema, - schemas.jsNumber, - ]); - if (artifact.compilerOutput === undefined) { - throw new Error('Compiler output not found in the artifact file'); - } - const provider = providerUtils.standardizeOrThrow(supportedProvider); - const bytecode = artifact.compilerOutput.evm.bytecode.object; - const abi = artifact.compilerOutput.abi; - const logDecodeDependenciesAbiOnly: { [contractName: string]: ContractAbi } = {}; - if (Object.keys(logDecodeDependencies) !== undefined) { - for (const key of Object.keys(logDecodeDependencies)) { - logDecodeDependenciesAbiOnly[key] = logDecodeDependencies[key].compilerOutput.abi; - } - } - return AssetProxyOwnerContract.deployAsync( - bytecode, - abi, - provider, - txDefaults, - logDecodeDependenciesAbiOnly, - _functionSelectors, - _destinations, - _functionCallTimeLockSeconds, - _owners, - _required, - _defaultSecondsTimeLocked, - ); - } - public static async deployAsync( - bytecode: string, - abi: ContractAbi, - supportedProvider: SupportedProvider, - txDefaults: Partial, - logDecodeDependencies: { [contractName: string]: ContractAbi }, - _functionSelectors: string[], - _destinations: string[], - _functionCallTimeLockSeconds: BigNumber[], - _owners: string[], - _required: BigNumber, - _defaultSecondsTimeLocked: BigNumber, - ): Promise { - assert.isHexString('bytecode', bytecode); - assert.doesConformToSchema('txDefaults', txDefaults, schemas.txDataSchema, [ - schemas.addressSchema, - schemas.numberSchema, - schemas.jsNumber, - ]); - const provider = providerUtils.standardizeOrThrow(supportedProvider); - const constructorAbi = BaseContract._lookupConstructorAbi(abi); - [ - _functionSelectors, - _destinations, - _functionCallTimeLockSeconds, - _owners, - _required, - _defaultSecondsTimeLocked, - ] = BaseContract._formatABIDataItemList( - constructorAbi.inputs, - [ - _functionSelectors, - _destinations, - _functionCallTimeLockSeconds, - _owners, - _required, - _defaultSecondsTimeLocked, - ], - BaseContract._bigNumberToString, - ); - const iface = new ethers.utils.Interface(abi); - const deployInfo = iface.deployFunction; - const txData = deployInfo.encode(bytecode, [ - _functionSelectors, - _destinations, - _functionCallTimeLockSeconds, - _owners, - _required, - _defaultSecondsTimeLocked, - ]); - const web3Wrapper = new Web3Wrapper(provider); - const txDataWithDefaults = await BaseContract._applyDefaultsToTxDataAsync( - { data: txData }, - txDefaults, - web3Wrapper.estimateGasAsync.bind(web3Wrapper), - ); - const txHash = await web3Wrapper.sendTransactionAsync(txDataWithDefaults); - logUtils.log(`transactionHash: ${txHash}`); - const txReceipt = await web3Wrapper.awaitTransactionSuccessAsync(txHash); - logUtils.log(`AssetProxyOwner successfully deployed at ${txReceipt.contractAddress}`); - const contractInstance = new AssetProxyOwnerContract( - txReceipt.contractAddress as string, - provider, - txDefaults, - logDecodeDependencies, - ); - contractInstance.constructorArgs = [ - _functionSelectors, - _destinations, - _functionCallTimeLockSeconds, - _owners, - _required, - _defaultSecondsTimeLocked, - ]; - return contractInstance; - } - - /** - * @returns The contract ABI - */ - public static ABI(): ContractAbi { - const abi = [ - { - inputs: [ - { - name: '_functionSelectors', - type: 'bytes4[]', - }, - { - name: '_destinations', - type: 'address[]', - }, - { - name: '_functionCallTimeLockSeconds', - type: 'uint128[]', - }, - { - name: '_owners', - type: 'address[]', - }, - { - name: '_required', - type: 'uint256', - }, - { - name: '_defaultSecondsTimeLocked', - type: 'uint256', - }, - ], - outputs: [], - payable: false, - stateMutability: 'nonpayable', - type: 'constructor', - }, - { - anonymous: false, - inputs: [ - { - name: 'sender', - type: 'address', - indexed: true, - }, - { - name: 'transactionId', - type: 'uint256', - indexed: true, - }, - ], - name: 'Confirmation', - outputs: [], - type: 'event', - }, - { - anonymous: false, - inputs: [ - { - name: 'transactionId', - type: 'uint256', - indexed: true, - }, - { - name: 'confirmationTime', - type: 'uint256', - indexed: false, - }, - ], - name: 'ConfirmationTimeSet', - outputs: [], - type: 'event', - }, - { - anonymous: false, - inputs: [ - { - name: 'sender', - type: 'address', - indexed: true, - }, - { - name: 'value', - type: 'uint256', - indexed: false, - }, - ], - name: 'Deposit', - outputs: [], - type: 'event', - }, - { - anonymous: false, - inputs: [ - { - name: 'transactionId', - type: 'uint256', - indexed: true, - }, - ], - name: 'Execution', - outputs: [], - type: 'event', - }, - { - anonymous: false, - inputs: [ - { - name: 'transactionId', - type: 'uint256', - indexed: true, - }, - ], - name: 'ExecutionFailure', - outputs: [], - type: 'event', - }, - { - anonymous: false, - inputs: [ - { - name: 'functionSelector', - type: 'bytes4', - indexed: false, - }, - { - name: 'destination', - type: 'address', - indexed: false, - }, - { - name: 'hasCustomTimeLock', - type: 'bool', - indexed: false, - }, - { - name: 'newSecondsTimeLocked', - type: 'uint128', - indexed: false, - }, - ], - name: 'FunctionCallTimeLockRegistration', - outputs: [], - type: 'event', - }, - { - anonymous: false, - inputs: [ - { - name: 'owner', - type: 'address', - indexed: true, - }, - ], - name: 'OwnerAddition', - outputs: [], - type: 'event', - }, - { - anonymous: false, - inputs: [ - { - name: 'owner', - type: 'address', - indexed: true, - }, - ], - name: 'OwnerRemoval', - outputs: [], - type: 'event', - }, - { - anonymous: false, - inputs: [ - { - name: 'required', - type: 'uint256', - indexed: false, - }, - ], - name: 'RequirementChange', - outputs: [], - type: 'event', - }, - { - anonymous: false, - inputs: [ - { - name: 'sender', - type: 'address', - indexed: true, - }, - { - name: 'transactionId', - type: 'uint256', - indexed: true, - }, - ], - name: 'Revocation', - outputs: [], - type: 'event', - }, - { - anonymous: false, - inputs: [ - { - name: 'transactionId', - type: 'uint256', - indexed: true, - }, - ], - name: 'Submission', - outputs: [], - type: 'event', - }, - { - anonymous: false, - inputs: [ - { - name: 'secondsTimeLocked', - type: 'uint256', - indexed: false, - }, - ], - name: 'TimeLockChange', - outputs: [], - type: 'event', - }, - { - inputs: [], - outputs: [], - payable: true, - stateMutability: 'payable', - type: 'fallback', - }, - { - constant: true, - inputs: [], - name: 'MAX_OWNER_COUNT', - outputs: [ - { - name: '', - type: 'uint256', - }, - ], - payable: false, - stateMutability: 'view', - type: 'function', - }, - { - constant: false, - inputs: [ - { - name: 'owner', - type: 'address', - }, - ], - name: 'addOwner', - outputs: [], - payable: false, - stateMutability: 'nonpayable', - type: 'function', - }, - { - constant: false, - inputs: [ - { - name: '_required', - type: 'uint256', - }, - ], - name: 'changeRequirement', - outputs: [], - payable: false, - stateMutability: 'nonpayable', - type: 'function', - }, - { - constant: false, - inputs: [ - { - name: '_secondsTimeLocked', - type: 'uint256', - }, - ], - name: 'changeTimeLock', - outputs: [], - payable: false, - stateMutability: 'nonpayable', - type: 'function', - }, - { - constant: false, - inputs: [ - { - name: 'transactionId', - type: 'uint256', - }, - ], - name: 'confirmTransaction', - outputs: [], - payable: false, - stateMutability: 'nonpayable', - type: 'function', - }, - { - constant: true, - inputs: [ - { - name: 'index_0', - type: 'uint256', - }, - ], - name: 'confirmationTimes', - outputs: [ - { - name: '', - type: 'uint256', - }, - ], - payable: false, - stateMutability: 'view', - type: 'function', - }, - { - constant: true, - inputs: [ - { - name: 'index_0', - type: 'uint256', - }, - { - name: 'index_1', - type: 'address', - }, - ], - name: 'confirmations', - outputs: [ - { - name: '', - type: 'bool', - }, - ], - payable: false, - stateMutability: 'view', - type: 'function', - }, - { - constant: false, - inputs: [ - { - name: 'transactionId', - type: 'uint256', - }, - ], - name: 'executeTransaction', - outputs: [], - payable: false, - stateMutability: 'nonpayable', - type: 'function', - }, - { - constant: true, - inputs: [ - { - name: 'index_0', - type: 'bytes4', - }, - { - name: 'index_1', - type: 'address', - }, - ], - name: 'functionCallTimeLocks', - outputs: [ - { - name: 'hasCustomTimeLock', - type: 'bool', - }, - { - name: 'secondsTimeLocked', - type: 'uint128', - }, - ], - payable: false, - stateMutability: 'view', - type: 'function', - }, - { - constant: true, - inputs: [ - { - name: 'transactionId', - type: 'uint256', - }, - ], - name: 'getConfirmationCount', - outputs: [ - { - name: 'count', - type: 'uint256', - }, - ], - payable: false, - stateMutability: 'view', - type: 'function', - }, - { - constant: true, - inputs: [ - { - name: 'transactionId', - type: 'uint256', - }, - ], - name: 'getConfirmations', - outputs: [ - { - name: '_confirmations', - type: 'address[]', - }, - ], - payable: false, - stateMutability: 'view', - type: 'function', - }, - { - constant: true, - inputs: [], - name: 'getOwners', - outputs: [ - { - name: '', - type: 'address[]', - }, - ], - payable: false, - stateMutability: 'view', - type: 'function', - }, - { - constant: true, - inputs: [ - { - name: 'pending', - type: 'bool', - }, - { - name: 'executed', - type: 'bool', - }, - ], - name: 'getTransactionCount', - outputs: [ - { - name: 'count', - type: 'uint256', - }, - ], - payable: false, - stateMutability: 'view', - type: 'function', - }, - { - constant: true, - inputs: [ - { - name: 'from', - type: 'uint256', - }, - { - name: 'to', - type: 'uint256', - }, - { - name: 'pending', - type: 'bool', - }, - { - name: 'executed', - type: 'bool', - }, - ], - name: 'getTransactionIds', - outputs: [ - { - name: '_transactionIds', - type: 'uint256[]', - }, - ], - payable: false, - stateMutability: 'view', - type: 'function', - }, - { - constant: true, - inputs: [ - { - name: 'transactionId', - type: 'uint256', - }, - ], - name: 'isConfirmed', - outputs: [ - { - name: '', - type: 'bool', - }, - ], - payable: false, - stateMutability: 'view', - type: 'function', - }, - { - constant: true, - inputs: [ - { - name: 'index_0', - type: 'address', - }, - ], - name: 'isOwner', - outputs: [ - { - name: '', - type: 'bool', - }, - ], - payable: false, - stateMutability: 'view', - type: 'function', - }, - { - constant: true, - inputs: [ - { - name: 'index_0', - type: 'uint256', - }, - ], - name: 'owners', - outputs: [ - { - name: '', - type: 'address', - }, - ], - payable: false, - stateMutability: 'view', - type: 'function', - }, - { - constant: false, - inputs: [ - { - name: 'hasCustomTimeLock', - type: 'bool', - }, - { - name: 'functionSelector', - type: 'bytes4', - }, - { - name: 'destination', - type: 'address', - }, - { - name: 'newSecondsTimeLocked', - type: 'uint128', - }, - ], - name: 'registerFunctionCall', - outputs: [], - payable: false, - stateMutability: 'nonpayable', - type: 'function', - }, - { - constant: false, - inputs: [ - { - name: 'owner', - type: 'address', - }, - ], - name: 'removeOwner', - outputs: [], - payable: false, - stateMutability: 'nonpayable', - type: 'function', - }, - { - constant: false, - inputs: [ - { - name: 'owner', - type: 'address', - }, - { - name: 'newOwner', - type: 'address', - }, - ], - name: 'replaceOwner', - outputs: [], - payable: false, - stateMutability: 'nonpayable', - type: 'function', - }, - { - constant: true, - inputs: [], - name: 'required', - outputs: [ - { - name: '', - type: 'uint256', - }, - ], - payable: false, - stateMutability: 'view', - type: 'function', - }, - { - constant: false, - inputs: [ - { - name: 'transactionId', - type: 'uint256', - }, - ], - name: 'revokeConfirmation', - outputs: [], - payable: false, - stateMutability: 'nonpayable', - type: 'function', - }, - { - constant: true, - inputs: [], - name: 'secondsTimeLocked', - outputs: [ - { - name: '', - type: 'uint256', - }, - ], - payable: false, - stateMutability: 'view', - type: 'function', - }, - { - constant: false, - inputs: [ - { - name: 'destination', - type: 'address', - }, - { - name: 'value', - type: 'uint256', - }, - { - name: 'data', - type: 'bytes', - }, - ], - name: 'submitTransaction', - outputs: [ - { - name: 'transactionId', - type: 'uint256', - }, - ], - payable: false, - stateMutability: 'nonpayable', - type: 'function', - }, - { - constant: true, - inputs: [], - name: 'transactionCount', - outputs: [ - { - name: '', - type: 'uint256', - }, - ], - payable: false, - stateMutability: 'view', - type: 'function', - }, - { - constant: true, - inputs: [ - { - name: 'index_0', - type: 'uint256', - }, - ], - name: 'transactions', - outputs: [ - { - name: 'destination', - type: 'address', - }, - { - name: 'value', - type: 'uint256', - }, - { - name: 'data', - type: 'bytes', - }, - { - name: 'executed', - type: 'bool', - }, - ], - payable: false, - stateMutability: 'view', - type: 'function', - }, - ] as ContractAbi; - return abi; - } - - public getFunctionSignature(methodName: string): string { - const index = this._methodABIIndex[methodName]; - const methodAbi = AssetProxyOwnerContract.ABI()[index] as MethodAbi; // tslint:disable-line:no-unnecessary-type-assertion - const functionSignature = methodAbiToFunctionSignature(methodAbi); - return functionSignature; - } - public getABIDecodedTransactionData(methodName: string, callData: string): T { - const functionSignature = this.getFunctionSignature(methodName); - const self = (this as any) as AssetProxyOwnerContract; - const abiEncoder = self._lookupAbiEncoder(functionSignature); - const abiDecodedCallData = abiEncoder.strictDecode(callData); - return abiDecodedCallData; - } - public getABIDecodedReturnData(methodName: string, callData: string): T { - const functionSignature = this.getFunctionSignature(methodName); - const self = (this as any) as AssetProxyOwnerContract; - const abiEncoder = self._lookupAbiEncoder(functionSignature); - const abiDecodedCallData = abiEncoder.strictDecodeReturnValue(callData); - return abiDecodedCallData; - } - public getSelector(methodName: string): string { - const functionSignature = this.getFunctionSignature(methodName); - const self = (this as any) as AssetProxyOwnerContract; - const abiEncoder = self._lookupAbiEncoder(functionSignature); - return abiEncoder.getSelector(); - } - - public MAX_OWNER_COUNT(): ContractFunctionObj { - const self = (this as any) as AssetProxyOwnerContract; - - return { - async callAsync(callData: Partial = {}, defaultBlock?: BlockParam): Promise { - assert.doesConformToSchema('callData', callData, schemas.callDataSchema, [ - schemas.addressSchema, - schemas.numberSchema, - schemas.jsNumber, - ]); - if (defaultBlock !== undefined) { - assert.isBlockParam('defaultBlock', defaultBlock); - } - const encodedData = self._strictEncodeArguments('MAX_OWNER_COUNT()', []); - let rawCallResult; - - const callDataWithDefaults = await BaseContract._applyDefaultsToTxDataAsync( - { - to: self.address, - ...callData, - data: encodedData, - }, - self._web3Wrapper.getContractDefaults(), - ); - callDataWithDefaults.from = callDataWithDefaults.from - ? callDataWithDefaults.from.toLowerCase() - : callDataWithDefaults.from; - try { - rawCallResult = await self._web3Wrapper.callAsync(callDataWithDefaults, defaultBlock); - } catch (err) { - BaseContract._throwIfThrownErrorIsRevertError(err); - throw err; - } - - BaseContract._throwIfCallResultIsRevertError(rawCallResult); - const abiEncoder = self._lookupAbiEncoder('MAX_OWNER_COUNT()'); - // tslint:disable boolean-naming - const result = abiEncoder.strictDecodeReturnValue(rawCallResult); - // tslint:enable boolean-naming - return result; - }, - getABIEncodedTransactionData(): string { - const abiEncodedTransactionData = self._strictEncodeArguments('MAX_OWNER_COUNT()', []); - return abiEncodedTransactionData; - }, - }; - } - /** - * Allows to add a new owner. Transaction has to be sent by wallet. - * @param owner Address of new owner. - */ - public addOwner(owner: string): ContractTxFunctionObj { - const self = (this as any) as AssetProxyOwnerContract; - assert.isString('owner', owner); - - return { - async sendTransactionAsync( - txData?: Partial | undefined, - opts: SendTransactionOpts = { shouldValidate: true }, - ): Promise { - const encodedData = self._strictEncodeArguments('addOwner(address)', [owner.toLowerCase()]); - const txDataWithDefaults = await BaseContract._applyDefaultsToTxDataAsync( - { - to: self.address, - ...txData, - data: encodedData, - }, - self._web3Wrapper.getContractDefaults(), - ); - if (txDataWithDefaults.from !== undefined) { - txDataWithDefaults.from = txDataWithDefaults.from.toLowerCase(); - } - - if (opts.shouldValidate !== false) { - await this.callAsync(txDataWithDefaults); - } - - const txHash = await self._web3Wrapper.sendTransactionAsync(txDataWithDefaults); - return txHash; - }, - awaitTransactionSuccessAsync( - txData?: Partial, - opts: AwaitTransactionSuccessOpts = { shouldValidate: true }, - ): PromiseWithTransactionHash { - const txHashPromise = this.sendTransactionAsync(txData, opts); - return new PromiseWithTransactionHash( - txHashPromise, - (async (): Promise => { - // When the transaction hash resolves, wait for it to be mined. - return self._web3Wrapper.awaitTransactionSuccessAsync( - await txHashPromise, - opts.pollingIntervalMs, - opts.timeoutMs, - ); - })(), - ); - }, - async estimateGasAsync(txData?: Partial | undefined): Promise { - const encodedData = self._strictEncodeArguments('addOwner(address)', [owner.toLowerCase()]); - const txDataWithDefaults = await BaseContract._applyDefaultsToTxDataAsync( - { - to: self.address, - ...txData, - data: encodedData, - }, - self._web3Wrapper.getContractDefaults(), - ); - if (txDataWithDefaults.from !== undefined) { - txDataWithDefaults.from = txDataWithDefaults.from.toLowerCase(); - } - - const gas = await self._web3Wrapper.estimateGasAsync(txDataWithDefaults); - return gas; - }, - async callAsync(callData: Partial = {}, defaultBlock?: BlockParam): Promise { - assert.doesConformToSchema('callData', callData, schemas.callDataSchema, [ - schemas.addressSchema, - schemas.numberSchema, - schemas.jsNumber, - ]); - if (defaultBlock !== undefined) { - assert.isBlockParam('defaultBlock', defaultBlock); - } - const encodedData = self._strictEncodeArguments('addOwner(address)', [owner.toLowerCase()]); - let rawCallResult; - - const callDataWithDefaults = await BaseContract._applyDefaultsToTxDataAsync( - { - to: self.address, - ...callData, - data: encodedData, - }, - self._web3Wrapper.getContractDefaults(), - ); - callDataWithDefaults.from = callDataWithDefaults.from - ? callDataWithDefaults.from.toLowerCase() - : callDataWithDefaults.from; - try { - rawCallResult = await self._web3Wrapper.callAsync(callDataWithDefaults, defaultBlock); - } catch (err) { - BaseContract._throwIfThrownErrorIsRevertError(err); - throw err; - } - - BaseContract._throwIfCallResultIsRevertError(rawCallResult); - const abiEncoder = self._lookupAbiEncoder('addOwner(address)'); - // tslint:disable boolean-naming - const result = abiEncoder.strictDecodeReturnValue(rawCallResult); - // tslint:enable boolean-naming - return result; - }, - getABIEncodedTransactionData(): string { - const abiEncodedTransactionData = self._strictEncodeArguments('addOwner(address)', [ - owner.toLowerCase(), - ]); - return abiEncodedTransactionData; - }, - }; - } - /** - * Allows to change the number of required confirmations. Transaction has to be sent by wallet. - * @param _required Number of required confirmations. - */ - public changeRequirement(_required: BigNumber): ContractTxFunctionObj { - const self = (this as any) as AssetProxyOwnerContract; - assert.isBigNumber('_required', _required); - - return { - async sendTransactionAsync( - txData?: Partial | undefined, - opts: SendTransactionOpts = { shouldValidate: true }, - ): Promise { - const encodedData = self._strictEncodeArguments('changeRequirement(uint256)', [_required]); - const txDataWithDefaults = await BaseContract._applyDefaultsToTxDataAsync( - { - to: self.address, - ...txData, - data: encodedData, - }, - self._web3Wrapper.getContractDefaults(), - ); - if (txDataWithDefaults.from !== undefined) { - txDataWithDefaults.from = txDataWithDefaults.from.toLowerCase(); - } - - if (opts.shouldValidate !== false) { - await this.callAsync(txDataWithDefaults); - } - - const txHash = await self._web3Wrapper.sendTransactionAsync(txDataWithDefaults); - return txHash; - }, - awaitTransactionSuccessAsync( - txData?: Partial, - opts: AwaitTransactionSuccessOpts = { shouldValidate: true }, - ): PromiseWithTransactionHash { - const txHashPromise = this.sendTransactionAsync(txData, opts); - return new PromiseWithTransactionHash( - txHashPromise, - (async (): Promise => { - // When the transaction hash resolves, wait for it to be mined. - return self._web3Wrapper.awaitTransactionSuccessAsync( - await txHashPromise, - opts.pollingIntervalMs, - opts.timeoutMs, - ); - })(), - ); - }, - async estimateGasAsync(txData?: Partial | undefined): Promise { - const encodedData = self._strictEncodeArguments('changeRequirement(uint256)', [_required]); - const txDataWithDefaults = await BaseContract._applyDefaultsToTxDataAsync( - { - to: self.address, - ...txData, - data: encodedData, - }, - self._web3Wrapper.getContractDefaults(), - ); - if (txDataWithDefaults.from !== undefined) { - txDataWithDefaults.from = txDataWithDefaults.from.toLowerCase(); - } - - const gas = await self._web3Wrapper.estimateGasAsync(txDataWithDefaults); - return gas; - }, - async callAsync(callData: Partial = {}, defaultBlock?: BlockParam): Promise { - assert.doesConformToSchema('callData', callData, schemas.callDataSchema, [ - schemas.addressSchema, - schemas.numberSchema, - schemas.jsNumber, - ]); - if (defaultBlock !== undefined) { - assert.isBlockParam('defaultBlock', defaultBlock); - } - const encodedData = self._strictEncodeArguments('changeRequirement(uint256)', [_required]); - let rawCallResult; - - const callDataWithDefaults = await BaseContract._applyDefaultsToTxDataAsync( - { - to: self.address, - ...callData, - data: encodedData, - }, - self._web3Wrapper.getContractDefaults(), - ); - callDataWithDefaults.from = callDataWithDefaults.from - ? callDataWithDefaults.from.toLowerCase() - : callDataWithDefaults.from; - try { - rawCallResult = await self._web3Wrapper.callAsync(callDataWithDefaults, defaultBlock); - } catch (err) { - BaseContract._throwIfThrownErrorIsRevertError(err); - throw err; - } - - BaseContract._throwIfCallResultIsRevertError(rawCallResult); - const abiEncoder = self._lookupAbiEncoder('changeRequirement(uint256)'); - // tslint:disable boolean-naming - const result = abiEncoder.strictDecodeReturnValue(rawCallResult); - // tslint:enable boolean-naming - return result; - }, - getABIEncodedTransactionData(): string { - const abiEncodedTransactionData = self._strictEncodeArguments('changeRequirement(uint256)', [ - _required, - ]); - return abiEncodedTransactionData; - }, - }; - } - /** - * Changes the duration of the time lock for transactions. - * @param _secondsTimeLocked Duration needed after a transaction is confirmed - * and before it becomes executable, in seconds. - */ - public changeTimeLock(_secondsTimeLocked: BigNumber): ContractTxFunctionObj { - const self = (this as any) as AssetProxyOwnerContract; - assert.isBigNumber('_secondsTimeLocked', _secondsTimeLocked); - - return { - async sendTransactionAsync( - txData?: Partial | undefined, - opts: SendTransactionOpts = { shouldValidate: true }, - ): Promise { - const encodedData = self._strictEncodeArguments('changeTimeLock(uint256)', [_secondsTimeLocked]); - const txDataWithDefaults = await BaseContract._applyDefaultsToTxDataAsync( - { - to: self.address, - ...txData, - data: encodedData, - }, - self._web3Wrapper.getContractDefaults(), - ); - if (txDataWithDefaults.from !== undefined) { - txDataWithDefaults.from = txDataWithDefaults.from.toLowerCase(); - } - - if (opts.shouldValidate !== false) { - await this.callAsync(txDataWithDefaults); - } - - const txHash = await self._web3Wrapper.sendTransactionAsync(txDataWithDefaults); - return txHash; - }, - awaitTransactionSuccessAsync( - txData?: Partial, - opts: AwaitTransactionSuccessOpts = { shouldValidate: true }, - ): PromiseWithTransactionHash { - const txHashPromise = this.sendTransactionAsync(txData, opts); - return new PromiseWithTransactionHash( - txHashPromise, - (async (): Promise => { - // When the transaction hash resolves, wait for it to be mined. - return self._web3Wrapper.awaitTransactionSuccessAsync( - await txHashPromise, - opts.pollingIntervalMs, - opts.timeoutMs, - ); - })(), - ); - }, - async estimateGasAsync(txData?: Partial | undefined): Promise { - const encodedData = self._strictEncodeArguments('changeTimeLock(uint256)', [_secondsTimeLocked]); - const txDataWithDefaults = await BaseContract._applyDefaultsToTxDataAsync( - { - to: self.address, - ...txData, - data: encodedData, - }, - self._web3Wrapper.getContractDefaults(), - ); - if (txDataWithDefaults.from !== undefined) { - txDataWithDefaults.from = txDataWithDefaults.from.toLowerCase(); - } - - const gas = await self._web3Wrapper.estimateGasAsync(txDataWithDefaults); - return gas; - }, - async callAsync(callData: Partial = {}, defaultBlock?: BlockParam): Promise { - assert.doesConformToSchema('callData', callData, schemas.callDataSchema, [ - schemas.addressSchema, - schemas.numberSchema, - schemas.jsNumber, - ]); - if (defaultBlock !== undefined) { - assert.isBlockParam('defaultBlock', defaultBlock); - } - const encodedData = self._strictEncodeArguments('changeTimeLock(uint256)', [_secondsTimeLocked]); - let rawCallResult; - - const callDataWithDefaults = await BaseContract._applyDefaultsToTxDataAsync( - { - to: self.address, - ...callData, - data: encodedData, - }, - self._web3Wrapper.getContractDefaults(), - ); - callDataWithDefaults.from = callDataWithDefaults.from - ? callDataWithDefaults.from.toLowerCase() - : callDataWithDefaults.from; - try { - rawCallResult = await self._web3Wrapper.callAsync(callDataWithDefaults, defaultBlock); - } catch (err) { - BaseContract._throwIfThrownErrorIsRevertError(err); - throw err; - } - - BaseContract._throwIfCallResultIsRevertError(rawCallResult); - const abiEncoder = self._lookupAbiEncoder('changeTimeLock(uint256)'); - // tslint:disable boolean-naming - const result = abiEncoder.strictDecodeReturnValue(rawCallResult); - // tslint:enable boolean-naming - return result; - }, - getABIEncodedTransactionData(): string { - const abiEncodedTransactionData = self._strictEncodeArguments('changeTimeLock(uint256)', [ - _secondsTimeLocked, - ]); - return abiEncodedTransactionData; - }, - }; - } - /** - * Allows an owner to confirm a transaction. - * @param transactionId Transaction ID. - */ - public confirmTransaction(transactionId: BigNumber): ContractTxFunctionObj { - const self = (this as any) as AssetProxyOwnerContract; - assert.isBigNumber('transactionId', transactionId); - - return { - async sendTransactionAsync( - txData?: Partial | undefined, - opts: SendTransactionOpts = { shouldValidate: true }, - ): Promise { - const encodedData = self._strictEncodeArguments('confirmTransaction(uint256)', [transactionId]); - const txDataWithDefaults = await BaseContract._applyDefaultsToTxDataAsync( - { - to: self.address, - ...txData, - data: encodedData, - }, - self._web3Wrapper.getContractDefaults(), - ); - if (txDataWithDefaults.from !== undefined) { - txDataWithDefaults.from = txDataWithDefaults.from.toLowerCase(); - } - - if (opts.shouldValidate !== false) { - await this.callAsync(txDataWithDefaults); - } - - const txHash = await self._web3Wrapper.sendTransactionAsync(txDataWithDefaults); - return txHash; - }, - awaitTransactionSuccessAsync( - txData?: Partial, - opts: AwaitTransactionSuccessOpts = { shouldValidate: true }, - ): PromiseWithTransactionHash { - const txHashPromise = this.sendTransactionAsync(txData, opts); - return new PromiseWithTransactionHash( - txHashPromise, - (async (): Promise => { - // When the transaction hash resolves, wait for it to be mined. - return self._web3Wrapper.awaitTransactionSuccessAsync( - await txHashPromise, - opts.pollingIntervalMs, - opts.timeoutMs, - ); - })(), - ); - }, - async estimateGasAsync(txData?: Partial | undefined): Promise { - const encodedData = self._strictEncodeArguments('confirmTransaction(uint256)', [transactionId]); - const txDataWithDefaults = await BaseContract._applyDefaultsToTxDataAsync( - { - to: self.address, - ...txData, - data: encodedData, - }, - self._web3Wrapper.getContractDefaults(), - ); - if (txDataWithDefaults.from !== undefined) { - txDataWithDefaults.from = txDataWithDefaults.from.toLowerCase(); - } - - const gas = await self._web3Wrapper.estimateGasAsync(txDataWithDefaults); - return gas; - }, - async callAsync(callData: Partial = {}, defaultBlock?: BlockParam): Promise { - assert.doesConformToSchema('callData', callData, schemas.callDataSchema, [ - schemas.addressSchema, - schemas.numberSchema, - schemas.jsNumber, - ]); - if (defaultBlock !== undefined) { - assert.isBlockParam('defaultBlock', defaultBlock); - } - const encodedData = self._strictEncodeArguments('confirmTransaction(uint256)', [transactionId]); - let rawCallResult; - - const callDataWithDefaults = await BaseContract._applyDefaultsToTxDataAsync( - { - to: self.address, - ...callData, - data: encodedData, - }, - self._web3Wrapper.getContractDefaults(), - ); - callDataWithDefaults.from = callDataWithDefaults.from - ? callDataWithDefaults.from.toLowerCase() - : callDataWithDefaults.from; - try { - rawCallResult = await self._web3Wrapper.callAsync(callDataWithDefaults, defaultBlock); - } catch (err) { - BaseContract._throwIfThrownErrorIsRevertError(err); - throw err; - } - - BaseContract._throwIfCallResultIsRevertError(rawCallResult); - const abiEncoder = self._lookupAbiEncoder('confirmTransaction(uint256)'); - // tslint:disable boolean-naming - const result = abiEncoder.strictDecodeReturnValue(rawCallResult); - // tslint:enable boolean-naming - return result; - }, - getABIEncodedTransactionData(): string { - const abiEncodedTransactionData = self._strictEncodeArguments('confirmTransaction(uint256)', [ - transactionId, - ]); - return abiEncodedTransactionData; - }, - }; - } - public confirmationTimes(index_0: BigNumber): ContractFunctionObj { - const self = (this as any) as AssetProxyOwnerContract; - assert.isBigNumber('index_0', index_0); - - return { - async callAsync(callData: Partial = {}, defaultBlock?: BlockParam): Promise { - assert.doesConformToSchema('callData', callData, schemas.callDataSchema, [ - schemas.addressSchema, - schemas.numberSchema, - schemas.jsNumber, - ]); - if (defaultBlock !== undefined) { - assert.isBlockParam('defaultBlock', defaultBlock); - } - const encodedData = self._strictEncodeArguments('confirmationTimes(uint256)', [index_0]); - let rawCallResult; - - const callDataWithDefaults = await BaseContract._applyDefaultsToTxDataAsync( - { - to: self.address, - ...callData, - data: encodedData, - }, - self._web3Wrapper.getContractDefaults(), - ); - callDataWithDefaults.from = callDataWithDefaults.from - ? callDataWithDefaults.from.toLowerCase() - : callDataWithDefaults.from; - try { - rawCallResult = await self._web3Wrapper.callAsync(callDataWithDefaults, defaultBlock); - } catch (err) { - BaseContract._throwIfThrownErrorIsRevertError(err); - throw err; - } - - BaseContract._throwIfCallResultIsRevertError(rawCallResult); - const abiEncoder = self._lookupAbiEncoder('confirmationTimes(uint256)'); - // tslint:disable boolean-naming - const result = abiEncoder.strictDecodeReturnValue(rawCallResult); - // tslint:enable boolean-naming - return result; - }, - getABIEncodedTransactionData(): string { - const abiEncodedTransactionData = self._strictEncodeArguments('confirmationTimes(uint256)', [index_0]); - return abiEncodedTransactionData; - }, - }; - } - public confirmations(index_0: BigNumber, index_1: string): ContractFunctionObj { - const self = (this as any) as AssetProxyOwnerContract; - assert.isBigNumber('index_0', index_0); - assert.isString('index_1', index_1); - - return { - async callAsync(callData: Partial = {}, defaultBlock?: BlockParam): Promise { - assert.doesConformToSchema('callData', callData, schemas.callDataSchema, [ - schemas.addressSchema, - schemas.numberSchema, - schemas.jsNumber, - ]); - if (defaultBlock !== undefined) { - assert.isBlockParam('defaultBlock', defaultBlock); - } - const encodedData = self._strictEncodeArguments('confirmations(uint256,address)', [ - index_0, - index_1.toLowerCase(), - ]); - let rawCallResult; - - const callDataWithDefaults = await BaseContract._applyDefaultsToTxDataAsync( - { - to: self.address, - ...callData, - data: encodedData, - }, - self._web3Wrapper.getContractDefaults(), - ); - callDataWithDefaults.from = callDataWithDefaults.from - ? callDataWithDefaults.from.toLowerCase() - : callDataWithDefaults.from; - try { - rawCallResult = await self._web3Wrapper.callAsync(callDataWithDefaults, defaultBlock); - } catch (err) { - BaseContract._throwIfThrownErrorIsRevertError(err); - throw err; - } - - BaseContract._throwIfCallResultIsRevertError(rawCallResult); - const abiEncoder = self._lookupAbiEncoder('confirmations(uint256,address)'); - // tslint:disable boolean-naming - const result = abiEncoder.strictDecodeReturnValue(rawCallResult); - // tslint:enable boolean-naming - return result; - }, - getABIEncodedTransactionData(): string { - const abiEncodedTransactionData = self._strictEncodeArguments('confirmations(uint256,address)', [ - index_0, - index_1.toLowerCase(), - ]); - return abiEncodedTransactionData; - }, - }; - } - /** - * Allows anyone to execute a confirmed transaction. - * Transactions *must* encode the values with the signature "bytes[] data, address[] destinations, uint256[] values" - * The `destination` and `value` fields of the transaction in storage are ignored. - * All function calls must be successful or the entire call will revert. - * @param transactionId Transaction ID. - */ - public executeTransaction(transactionId: BigNumber): ContractTxFunctionObj { - const self = (this as any) as AssetProxyOwnerContract; - assert.isBigNumber('transactionId', transactionId); - - return { - async sendTransactionAsync( - txData?: Partial | undefined, - opts: SendTransactionOpts = { shouldValidate: true }, - ): Promise { - const encodedData = self._strictEncodeArguments('executeTransaction(uint256)', [transactionId]); - const txDataWithDefaults = await BaseContract._applyDefaultsToTxDataAsync( - { - to: self.address, - ...txData, - data: encodedData, - }, - self._web3Wrapper.getContractDefaults(), - ); - if (txDataWithDefaults.from !== undefined) { - txDataWithDefaults.from = txDataWithDefaults.from.toLowerCase(); - } - - if (opts.shouldValidate !== false) { - await this.callAsync(txDataWithDefaults); - } - - const txHash = await self._web3Wrapper.sendTransactionAsync(txDataWithDefaults); - return txHash; - }, - awaitTransactionSuccessAsync( - txData?: Partial, - opts: AwaitTransactionSuccessOpts = { shouldValidate: true }, - ): PromiseWithTransactionHash { - const txHashPromise = this.sendTransactionAsync(txData, opts); - return new PromiseWithTransactionHash( - txHashPromise, - (async (): Promise => { - // When the transaction hash resolves, wait for it to be mined. - return self._web3Wrapper.awaitTransactionSuccessAsync( - await txHashPromise, - opts.pollingIntervalMs, - opts.timeoutMs, - ); - })(), - ); - }, - async estimateGasAsync(txData?: Partial | undefined): Promise { - const encodedData = self._strictEncodeArguments('executeTransaction(uint256)', [transactionId]); - const txDataWithDefaults = await BaseContract._applyDefaultsToTxDataAsync( - { - to: self.address, - ...txData, - data: encodedData, - }, - self._web3Wrapper.getContractDefaults(), - ); - if (txDataWithDefaults.from !== undefined) { - txDataWithDefaults.from = txDataWithDefaults.from.toLowerCase(); - } - - const gas = await self._web3Wrapper.estimateGasAsync(txDataWithDefaults); - return gas; - }, - async callAsync(callData: Partial = {}, defaultBlock?: BlockParam): Promise { - assert.doesConformToSchema('callData', callData, schemas.callDataSchema, [ - schemas.addressSchema, - schemas.numberSchema, - schemas.jsNumber, - ]); - if (defaultBlock !== undefined) { - assert.isBlockParam('defaultBlock', defaultBlock); - } - const encodedData = self._strictEncodeArguments('executeTransaction(uint256)', [transactionId]); - let rawCallResult; - - const callDataWithDefaults = await BaseContract._applyDefaultsToTxDataAsync( - { - to: self.address, - ...callData, - data: encodedData, - }, - self._web3Wrapper.getContractDefaults(), - ); - callDataWithDefaults.from = callDataWithDefaults.from - ? callDataWithDefaults.from.toLowerCase() - : callDataWithDefaults.from; - try { - rawCallResult = await self._web3Wrapper.callAsync(callDataWithDefaults, defaultBlock); - } catch (err) { - BaseContract._throwIfThrownErrorIsRevertError(err); - throw err; - } - - BaseContract._throwIfCallResultIsRevertError(rawCallResult); - const abiEncoder = self._lookupAbiEncoder('executeTransaction(uint256)'); - // tslint:disable boolean-naming - const result = abiEncoder.strictDecodeReturnValue(rawCallResult); - // tslint:enable boolean-naming - return result; - }, - getABIEncodedTransactionData(): string { - const abiEncodedTransactionData = self._strictEncodeArguments('executeTransaction(uint256)', [ - transactionId, - ]); - return abiEncodedTransactionData; - }, - }; - } - public functionCallTimeLocks(index_0: string, index_1: string): ContractFunctionObj<[boolean, BigNumber]> { - const self = (this as any) as AssetProxyOwnerContract; - assert.isString('index_0', index_0); - assert.isString('index_1', index_1); - - return { - async callAsync( - callData: Partial = {}, - defaultBlock?: BlockParam, - ): Promise<[boolean, BigNumber]> { - assert.doesConformToSchema('callData', callData, schemas.callDataSchema, [ - schemas.addressSchema, - schemas.numberSchema, - schemas.jsNumber, - ]); - if (defaultBlock !== undefined) { - assert.isBlockParam('defaultBlock', defaultBlock); - } - const encodedData = self._strictEncodeArguments('functionCallTimeLocks(bytes4,address)', [ - index_0, - index_1.toLowerCase(), - ]); - let rawCallResult; - - const callDataWithDefaults = await BaseContract._applyDefaultsToTxDataAsync( - { - to: self.address, - ...callData, - data: encodedData, - }, - self._web3Wrapper.getContractDefaults(), - ); - callDataWithDefaults.from = callDataWithDefaults.from - ? callDataWithDefaults.from.toLowerCase() - : callDataWithDefaults.from; - try { - rawCallResult = await self._web3Wrapper.callAsync(callDataWithDefaults, defaultBlock); - } catch (err) { - BaseContract._throwIfThrownErrorIsRevertError(err); - throw err; - } - - BaseContract._throwIfCallResultIsRevertError(rawCallResult); - const abiEncoder = self._lookupAbiEncoder('functionCallTimeLocks(bytes4,address)'); - // tslint:disable boolean-naming - const result = abiEncoder.strictDecodeReturnValue<[boolean, BigNumber]>(rawCallResult); - // tslint:enable boolean-naming - return result; - }, - getABIEncodedTransactionData(): string { - const abiEncodedTransactionData = self._strictEncodeArguments('functionCallTimeLocks(bytes4,address)', [ - index_0, - index_1.toLowerCase(), - ]); - return abiEncodedTransactionData; - }, - }; - } - /** - * Returns number of confirmations of a transaction. - * @param transactionId Transaction ID. - * @returns Number of confirmations. - */ - public getConfirmationCount(transactionId: BigNumber): ContractFunctionObj { - const self = (this as any) as AssetProxyOwnerContract; - assert.isBigNumber('transactionId', transactionId); - - return { - async callAsync(callData: Partial = {}, defaultBlock?: BlockParam): Promise { - assert.doesConformToSchema('callData', callData, schemas.callDataSchema, [ - schemas.addressSchema, - schemas.numberSchema, - schemas.jsNumber, - ]); - if (defaultBlock !== undefined) { - assert.isBlockParam('defaultBlock', defaultBlock); - } - const encodedData = self._strictEncodeArguments('getConfirmationCount(uint256)', [transactionId]); - let rawCallResult; - - const callDataWithDefaults = await BaseContract._applyDefaultsToTxDataAsync( - { - to: self.address, - ...callData, - data: encodedData, - }, - self._web3Wrapper.getContractDefaults(), - ); - callDataWithDefaults.from = callDataWithDefaults.from - ? callDataWithDefaults.from.toLowerCase() - : callDataWithDefaults.from; - try { - rawCallResult = await self._web3Wrapper.callAsync(callDataWithDefaults, defaultBlock); - } catch (err) { - BaseContract._throwIfThrownErrorIsRevertError(err); - throw err; - } - - BaseContract._throwIfCallResultIsRevertError(rawCallResult); - const abiEncoder = self._lookupAbiEncoder('getConfirmationCount(uint256)'); - // tslint:disable boolean-naming - const result = abiEncoder.strictDecodeReturnValue(rawCallResult); - // tslint:enable boolean-naming - return result; - }, - getABIEncodedTransactionData(): string { - const abiEncodedTransactionData = self._strictEncodeArguments('getConfirmationCount(uint256)', [ - transactionId, - ]); - return abiEncodedTransactionData; - }, - }; - } - /** - * Returns array with owner addresses, which confirmed transaction. - * @param transactionId Transaction ID. - * @returns Returns array of owner addresses. - */ - public getConfirmations(transactionId: BigNumber): ContractFunctionObj { - const self = (this as any) as AssetProxyOwnerContract; - assert.isBigNumber('transactionId', transactionId); - - return { - async callAsync(callData: Partial = {}, defaultBlock?: BlockParam): Promise { - assert.doesConformToSchema('callData', callData, schemas.callDataSchema, [ - schemas.addressSchema, - schemas.numberSchema, - schemas.jsNumber, - ]); - if (defaultBlock !== undefined) { - assert.isBlockParam('defaultBlock', defaultBlock); - } - const encodedData = self._strictEncodeArguments('getConfirmations(uint256)', [transactionId]); - let rawCallResult; - - const callDataWithDefaults = await BaseContract._applyDefaultsToTxDataAsync( - { - to: self.address, - ...callData, - data: encodedData, - }, - self._web3Wrapper.getContractDefaults(), - ); - callDataWithDefaults.from = callDataWithDefaults.from - ? callDataWithDefaults.from.toLowerCase() - : callDataWithDefaults.from; - try { - rawCallResult = await self._web3Wrapper.callAsync(callDataWithDefaults, defaultBlock); - } catch (err) { - BaseContract._throwIfThrownErrorIsRevertError(err); - throw err; - } - - BaseContract._throwIfCallResultIsRevertError(rawCallResult); - const abiEncoder = self._lookupAbiEncoder('getConfirmations(uint256)'); - // tslint:disable boolean-naming - const result = abiEncoder.strictDecodeReturnValue(rawCallResult); - // tslint:enable boolean-naming - return result; - }, - getABIEncodedTransactionData(): string { - const abiEncodedTransactionData = self._strictEncodeArguments('getConfirmations(uint256)', [ - transactionId, - ]); - return abiEncodedTransactionData; - }, - }; - } - /** - * Returns list of owners. - * @returns List of owner addresses. - */ - public getOwners(): ContractFunctionObj { - const self = (this as any) as AssetProxyOwnerContract; - - return { - async callAsync(callData: Partial = {}, defaultBlock?: BlockParam): Promise { - assert.doesConformToSchema('callData', callData, schemas.callDataSchema, [ - schemas.addressSchema, - schemas.numberSchema, - schemas.jsNumber, - ]); - if (defaultBlock !== undefined) { - assert.isBlockParam('defaultBlock', defaultBlock); - } - const encodedData = self._strictEncodeArguments('getOwners()', []); - let rawCallResult; - - const callDataWithDefaults = await BaseContract._applyDefaultsToTxDataAsync( - { - to: self.address, - ...callData, - data: encodedData, - }, - self._web3Wrapper.getContractDefaults(), - ); - callDataWithDefaults.from = callDataWithDefaults.from - ? callDataWithDefaults.from.toLowerCase() - : callDataWithDefaults.from; - try { - rawCallResult = await self._web3Wrapper.callAsync(callDataWithDefaults, defaultBlock); - } catch (err) { - BaseContract._throwIfThrownErrorIsRevertError(err); - throw err; - } - - BaseContract._throwIfCallResultIsRevertError(rawCallResult); - const abiEncoder = self._lookupAbiEncoder('getOwners()'); - // tslint:disable boolean-naming - const result = abiEncoder.strictDecodeReturnValue(rawCallResult); - // tslint:enable boolean-naming - return result; - }, - getABIEncodedTransactionData(): string { - const abiEncodedTransactionData = self._strictEncodeArguments('getOwners()', []); - return abiEncodedTransactionData; - }, - }; - } - /** - * Returns total number of transactions after filers are applied. - * @param pending Include pending transactions. - * @param executed Include executed transactions. - * @returns Total number of transactions after filters are applied. - */ - public getTransactionCount(pending: boolean, executed: boolean): ContractFunctionObj { - const self = (this as any) as AssetProxyOwnerContract; - assert.isBoolean('pending', pending); - assert.isBoolean('executed', executed); - - return { - async callAsync(callData: Partial = {}, defaultBlock?: BlockParam): Promise { - assert.doesConformToSchema('callData', callData, schemas.callDataSchema, [ - schemas.addressSchema, - schemas.numberSchema, - schemas.jsNumber, - ]); - if (defaultBlock !== undefined) { - assert.isBlockParam('defaultBlock', defaultBlock); - } - const encodedData = self._strictEncodeArguments('getTransactionCount(bool,bool)', [pending, executed]); - let rawCallResult; - - const callDataWithDefaults = await BaseContract._applyDefaultsToTxDataAsync( - { - to: self.address, - ...callData, - data: encodedData, - }, - self._web3Wrapper.getContractDefaults(), - ); - callDataWithDefaults.from = callDataWithDefaults.from - ? callDataWithDefaults.from.toLowerCase() - : callDataWithDefaults.from; - try { - rawCallResult = await self._web3Wrapper.callAsync(callDataWithDefaults, defaultBlock); - } catch (err) { - BaseContract._throwIfThrownErrorIsRevertError(err); - throw err; - } - - BaseContract._throwIfCallResultIsRevertError(rawCallResult); - const abiEncoder = self._lookupAbiEncoder('getTransactionCount(bool,bool)'); - // tslint:disable boolean-naming - const result = abiEncoder.strictDecodeReturnValue(rawCallResult); - // tslint:enable boolean-naming - return result; - }, - getABIEncodedTransactionData(): string { - const abiEncodedTransactionData = self._strictEncodeArguments('getTransactionCount(bool,bool)', [ - pending, - executed, - ]); - return abiEncodedTransactionData; - }, - }; - } - /** - * Returns list of transaction IDs in defined range. - * @param from Index start position of transaction array. - * @param to Index end position of transaction array. - * @param pending Include pending transactions. - * @param executed Include executed transactions. - * @returns Returns array of transaction IDs. - */ - public getTransactionIds( - from: BigNumber, - to: BigNumber, - pending: boolean, - executed: boolean, - ): ContractFunctionObj { - const self = (this as any) as AssetProxyOwnerContract; - assert.isBigNumber('from', from); - assert.isBigNumber('to', to); - assert.isBoolean('pending', pending); - assert.isBoolean('executed', executed); - - return { - async callAsync(callData: Partial = {}, defaultBlock?: BlockParam): Promise { - assert.doesConformToSchema('callData', callData, schemas.callDataSchema, [ - schemas.addressSchema, - schemas.numberSchema, - schemas.jsNumber, - ]); - if (defaultBlock !== undefined) { - assert.isBlockParam('defaultBlock', defaultBlock); - } - const encodedData = self._strictEncodeArguments('getTransactionIds(uint256,uint256,bool,bool)', [ - from, - to, - pending, - executed, - ]); - let rawCallResult; - - const callDataWithDefaults = await BaseContract._applyDefaultsToTxDataAsync( - { - to: self.address, - ...callData, - data: encodedData, - }, - self._web3Wrapper.getContractDefaults(), - ); - callDataWithDefaults.from = callDataWithDefaults.from - ? callDataWithDefaults.from.toLowerCase() - : callDataWithDefaults.from; - try { - rawCallResult = await self._web3Wrapper.callAsync(callDataWithDefaults, defaultBlock); - } catch (err) { - BaseContract._throwIfThrownErrorIsRevertError(err); - throw err; - } - - BaseContract._throwIfCallResultIsRevertError(rawCallResult); - const abiEncoder = self._lookupAbiEncoder('getTransactionIds(uint256,uint256,bool,bool)'); - // tslint:disable boolean-naming - const result = abiEncoder.strictDecodeReturnValue(rawCallResult); - // tslint:enable boolean-naming - return result; - }, - getABIEncodedTransactionData(): string { - const abiEncodedTransactionData = self._strictEncodeArguments( - 'getTransactionIds(uint256,uint256,bool,bool)', - [from, to, pending, executed], - ); - return abiEncodedTransactionData; - }, - }; - } - /** - * Returns the confirmation status of a transaction. - * @param transactionId Transaction ID. - * @returns Confirmation status. - */ - public isConfirmed(transactionId: BigNumber): ContractFunctionObj { - const self = (this as any) as AssetProxyOwnerContract; - assert.isBigNumber('transactionId', transactionId); - - return { - async callAsync(callData: Partial = {}, defaultBlock?: BlockParam): Promise { - assert.doesConformToSchema('callData', callData, schemas.callDataSchema, [ - schemas.addressSchema, - schemas.numberSchema, - schemas.jsNumber, - ]); - if (defaultBlock !== undefined) { - assert.isBlockParam('defaultBlock', defaultBlock); - } - const encodedData = self._strictEncodeArguments('isConfirmed(uint256)', [transactionId]); - let rawCallResult; - - const callDataWithDefaults = await BaseContract._applyDefaultsToTxDataAsync( - { - to: self.address, - ...callData, - data: encodedData, - }, - self._web3Wrapper.getContractDefaults(), - ); - callDataWithDefaults.from = callDataWithDefaults.from - ? callDataWithDefaults.from.toLowerCase() - : callDataWithDefaults.from; - try { - rawCallResult = await self._web3Wrapper.callAsync(callDataWithDefaults, defaultBlock); - } catch (err) { - BaseContract._throwIfThrownErrorIsRevertError(err); - throw err; - } - - BaseContract._throwIfCallResultIsRevertError(rawCallResult); - const abiEncoder = self._lookupAbiEncoder('isConfirmed(uint256)'); - // tslint:disable boolean-naming - const result = abiEncoder.strictDecodeReturnValue(rawCallResult); - // tslint:enable boolean-naming - return result; - }, - getABIEncodedTransactionData(): string { - const abiEncodedTransactionData = self._strictEncodeArguments('isConfirmed(uint256)', [transactionId]); - return abiEncodedTransactionData; - }, - }; - } - public isOwner(index_0: string): ContractFunctionObj { - const self = (this as any) as AssetProxyOwnerContract; - assert.isString('index_0', index_0); - - return { - async callAsync(callData: Partial = {}, defaultBlock?: BlockParam): Promise { - assert.doesConformToSchema('callData', callData, schemas.callDataSchema, [ - schemas.addressSchema, - schemas.numberSchema, - schemas.jsNumber, - ]); - if (defaultBlock !== undefined) { - assert.isBlockParam('defaultBlock', defaultBlock); - } - const encodedData = self._strictEncodeArguments('isOwner(address)', [index_0.toLowerCase()]); - let rawCallResult; - - const callDataWithDefaults = await BaseContract._applyDefaultsToTxDataAsync( - { - to: self.address, - ...callData, - data: encodedData, - }, - self._web3Wrapper.getContractDefaults(), - ); - callDataWithDefaults.from = callDataWithDefaults.from - ? callDataWithDefaults.from.toLowerCase() - : callDataWithDefaults.from; - try { - rawCallResult = await self._web3Wrapper.callAsync(callDataWithDefaults, defaultBlock); - } catch (err) { - BaseContract._throwIfThrownErrorIsRevertError(err); - throw err; - } - - BaseContract._throwIfCallResultIsRevertError(rawCallResult); - const abiEncoder = self._lookupAbiEncoder('isOwner(address)'); - // tslint:disable boolean-naming - const result = abiEncoder.strictDecodeReturnValue(rawCallResult); - // tslint:enable boolean-naming - return result; - }, - getABIEncodedTransactionData(): string { - const abiEncodedTransactionData = self._strictEncodeArguments('isOwner(address)', [ - index_0.toLowerCase(), - ]); - return abiEncodedTransactionData; - }, - }; - } - public owners(index_0: BigNumber): ContractFunctionObj { - const self = (this as any) as AssetProxyOwnerContract; - assert.isBigNumber('index_0', index_0); - - return { - async callAsync(callData: Partial = {}, defaultBlock?: BlockParam): Promise { - assert.doesConformToSchema('callData', callData, schemas.callDataSchema, [ - schemas.addressSchema, - schemas.numberSchema, - schemas.jsNumber, - ]); - if (defaultBlock !== undefined) { - assert.isBlockParam('defaultBlock', defaultBlock); - } - const encodedData = self._strictEncodeArguments('owners(uint256)', [index_0]); - let rawCallResult; - - const callDataWithDefaults = await BaseContract._applyDefaultsToTxDataAsync( - { - to: self.address, - ...callData, - data: encodedData, - }, - self._web3Wrapper.getContractDefaults(), - ); - callDataWithDefaults.from = callDataWithDefaults.from - ? callDataWithDefaults.from.toLowerCase() - : callDataWithDefaults.from; - try { - rawCallResult = await self._web3Wrapper.callAsync(callDataWithDefaults, defaultBlock); - } catch (err) { - BaseContract._throwIfThrownErrorIsRevertError(err); - throw err; - } - - BaseContract._throwIfCallResultIsRevertError(rawCallResult); - const abiEncoder = self._lookupAbiEncoder('owners(uint256)'); - // tslint:disable boolean-naming - const result = abiEncoder.strictDecodeReturnValue(rawCallResult); - // tslint:enable boolean-naming - return result; - }, - getABIEncodedTransactionData(): string { - const abiEncodedTransactionData = self._strictEncodeArguments('owners(uint256)', [index_0]); - return abiEncodedTransactionData; - }, - }; - } - /** - * Registers a custom timelock to a specific function selector / destination combo - * @param hasCustomTimeLock True if timelock is custom. - * @param functionSelector 4 byte selector of registered function. - * @param destination Address of destination where function will be called. - * @param newSecondsTimeLocked Duration in seconds needed after a transaction - * is confirmed to become executable. - */ - public registerFunctionCall( - hasCustomTimeLock: boolean, - functionSelector: string, - destination: string, - newSecondsTimeLocked: BigNumber, - ): ContractTxFunctionObj { - const self = (this as any) as AssetProxyOwnerContract; - assert.isBoolean('hasCustomTimeLock', hasCustomTimeLock); - assert.isString('functionSelector', functionSelector); - assert.isString('destination', destination); - assert.isBigNumber('newSecondsTimeLocked', newSecondsTimeLocked); - - return { - async sendTransactionAsync( - txData?: Partial | undefined, - opts: SendTransactionOpts = { shouldValidate: true }, - ): Promise { - const encodedData = self._strictEncodeArguments('registerFunctionCall(bool,bytes4,address,uint128)', [ - hasCustomTimeLock, - functionSelector, - destination.toLowerCase(), - newSecondsTimeLocked, - ]); - const txDataWithDefaults = await BaseContract._applyDefaultsToTxDataAsync( - { - to: self.address, - ...txData, - data: encodedData, - }, - self._web3Wrapper.getContractDefaults(), - ); - if (txDataWithDefaults.from !== undefined) { - txDataWithDefaults.from = txDataWithDefaults.from.toLowerCase(); - } - - if (opts.shouldValidate !== false) { - await this.callAsync(txDataWithDefaults); - } - - const txHash = await self._web3Wrapper.sendTransactionAsync(txDataWithDefaults); - return txHash; - }, - awaitTransactionSuccessAsync( - txData?: Partial, - opts: AwaitTransactionSuccessOpts = { shouldValidate: true }, - ): PromiseWithTransactionHash { - const txHashPromise = this.sendTransactionAsync(txData, opts); - return new PromiseWithTransactionHash( - txHashPromise, - (async (): Promise => { - // When the transaction hash resolves, wait for it to be mined. - return self._web3Wrapper.awaitTransactionSuccessAsync( - await txHashPromise, - opts.pollingIntervalMs, - opts.timeoutMs, - ); - })(), - ); - }, - async estimateGasAsync(txData?: Partial | undefined): Promise { - const encodedData = self._strictEncodeArguments('registerFunctionCall(bool,bytes4,address,uint128)', [ - hasCustomTimeLock, - functionSelector, - destination.toLowerCase(), - newSecondsTimeLocked, - ]); - const txDataWithDefaults = await BaseContract._applyDefaultsToTxDataAsync( - { - to: self.address, - ...txData, - data: encodedData, - }, - self._web3Wrapper.getContractDefaults(), - ); - if (txDataWithDefaults.from !== undefined) { - txDataWithDefaults.from = txDataWithDefaults.from.toLowerCase(); - } - - const gas = await self._web3Wrapper.estimateGasAsync(txDataWithDefaults); - return gas; - }, - async callAsync(callData: Partial = {}, defaultBlock?: BlockParam): Promise { - assert.doesConformToSchema('callData', callData, schemas.callDataSchema, [ - schemas.addressSchema, - schemas.numberSchema, - schemas.jsNumber, - ]); - if (defaultBlock !== undefined) { - assert.isBlockParam('defaultBlock', defaultBlock); - } - const encodedData = self._strictEncodeArguments('registerFunctionCall(bool,bytes4,address,uint128)', [ - hasCustomTimeLock, - functionSelector, - destination.toLowerCase(), - newSecondsTimeLocked, - ]); - let rawCallResult; - - const callDataWithDefaults = await BaseContract._applyDefaultsToTxDataAsync( - { - to: self.address, - ...callData, - data: encodedData, - }, - self._web3Wrapper.getContractDefaults(), - ); - callDataWithDefaults.from = callDataWithDefaults.from - ? callDataWithDefaults.from.toLowerCase() - : callDataWithDefaults.from; - try { - rawCallResult = await self._web3Wrapper.callAsync(callDataWithDefaults, defaultBlock); - } catch (err) { - BaseContract._throwIfThrownErrorIsRevertError(err); - throw err; - } - - BaseContract._throwIfCallResultIsRevertError(rawCallResult); - const abiEncoder = self._lookupAbiEncoder('registerFunctionCall(bool,bytes4,address,uint128)'); - // tslint:disable boolean-naming - const result = abiEncoder.strictDecodeReturnValue(rawCallResult); - // tslint:enable boolean-naming - return result; - }, - getABIEncodedTransactionData(): string { - const abiEncodedTransactionData = self._strictEncodeArguments( - 'registerFunctionCall(bool,bytes4,address,uint128)', - [hasCustomTimeLock, functionSelector, destination.toLowerCase(), newSecondsTimeLocked], - ); - return abiEncodedTransactionData; - }, - }; - } - /** - * Allows to remove an owner. Transaction has to be sent by wallet. - * @param owner Address of owner. - */ - public removeOwner(owner: string): ContractTxFunctionObj { - const self = (this as any) as AssetProxyOwnerContract; - assert.isString('owner', owner); - - return { - async sendTransactionAsync( - txData?: Partial | undefined, - opts: SendTransactionOpts = { shouldValidate: true }, - ): Promise { - const encodedData = self._strictEncodeArguments('removeOwner(address)', [owner.toLowerCase()]); - const txDataWithDefaults = await BaseContract._applyDefaultsToTxDataAsync( - { - to: self.address, - ...txData, - data: encodedData, - }, - self._web3Wrapper.getContractDefaults(), - ); - if (txDataWithDefaults.from !== undefined) { - txDataWithDefaults.from = txDataWithDefaults.from.toLowerCase(); - } - - if (opts.shouldValidate !== false) { - await this.callAsync(txDataWithDefaults); - } - - const txHash = await self._web3Wrapper.sendTransactionAsync(txDataWithDefaults); - return txHash; - }, - awaitTransactionSuccessAsync( - txData?: Partial, - opts: AwaitTransactionSuccessOpts = { shouldValidate: true }, - ): PromiseWithTransactionHash { - const txHashPromise = this.sendTransactionAsync(txData, opts); - return new PromiseWithTransactionHash( - txHashPromise, - (async (): Promise => { - // When the transaction hash resolves, wait for it to be mined. - return self._web3Wrapper.awaitTransactionSuccessAsync( - await txHashPromise, - opts.pollingIntervalMs, - opts.timeoutMs, - ); - })(), - ); - }, - async estimateGasAsync(txData?: Partial | undefined): Promise { - const encodedData = self._strictEncodeArguments('removeOwner(address)', [owner.toLowerCase()]); - const txDataWithDefaults = await BaseContract._applyDefaultsToTxDataAsync( - { - to: self.address, - ...txData, - data: encodedData, - }, - self._web3Wrapper.getContractDefaults(), - ); - if (txDataWithDefaults.from !== undefined) { - txDataWithDefaults.from = txDataWithDefaults.from.toLowerCase(); - } - - const gas = await self._web3Wrapper.estimateGasAsync(txDataWithDefaults); - return gas; - }, - async callAsync(callData: Partial = {}, defaultBlock?: BlockParam): Promise { - assert.doesConformToSchema('callData', callData, schemas.callDataSchema, [ - schemas.addressSchema, - schemas.numberSchema, - schemas.jsNumber, - ]); - if (defaultBlock !== undefined) { - assert.isBlockParam('defaultBlock', defaultBlock); - } - const encodedData = self._strictEncodeArguments('removeOwner(address)', [owner.toLowerCase()]); - let rawCallResult; - - const callDataWithDefaults = await BaseContract._applyDefaultsToTxDataAsync( - { - to: self.address, - ...callData, - data: encodedData, - }, - self._web3Wrapper.getContractDefaults(), - ); - callDataWithDefaults.from = callDataWithDefaults.from - ? callDataWithDefaults.from.toLowerCase() - : callDataWithDefaults.from; - try { - rawCallResult = await self._web3Wrapper.callAsync(callDataWithDefaults, defaultBlock); - } catch (err) { - BaseContract._throwIfThrownErrorIsRevertError(err); - throw err; - } - - BaseContract._throwIfCallResultIsRevertError(rawCallResult); - const abiEncoder = self._lookupAbiEncoder('removeOwner(address)'); - // tslint:disable boolean-naming - const result = abiEncoder.strictDecodeReturnValue(rawCallResult); - // tslint:enable boolean-naming - return result; - }, - getABIEncodedTransactionData(): string { - const abiEncodedTransactionData = self._strictEncodeArguments('removeOwner(address)', [ - owner.toLowerCase(), - ]); - return abiEncodedTransactionData; - }, - }; - } - /** - * Allows to replace an owner with a new owner. Transaction has to be sent by wallet. - * @param owner Address of owner to be replaced. - * @param newOwner Address of new owner. - */ - public replaceOwner(owner: string, newOwner: string): ContractTxFunctionObj { - const self = (this as any) as AssetProxyOwnerContract; - assert.isString('owner', owner); - assert.isString('newOwner', newOwner); - - return { - async sendTransactionAsync( - txData?: Partial | undefined, - opts: SendTransactionOpts = { shouldValidate: true }, - ): Promise { - const encodedData = self._strictEncodeArguments('replaceOwner(address,address)', [ - owner.toLowerCase(), - newOwner.toLowerCase(), - ]); - const txDataWithDefaults = await BaseContract._applyDefaultsToTxDataAsync( - { - to: self.address, - ...txData, - data: encodedData, - }, - self._web3Wrapper.getContractDefaults(), - ); - if (txDataWithDefaults.from !== undefined) { - txDataWithDefaults.from = txDataWithDefaults.from.toLowerCase(); - } - - if (opts.shouldValidate !== false) { - await this.callAsync(txDataWithDefaults); - } - - const txHash = await self._web3Wrapper.sendTransactionAsync(txDataWithDefaults); - return txHash; - }, - awaitTransactionSuccessAsync( - txData?: Partial, - opts: AwaitTransactionSuccessOpts = { shouldValidate: true }, - ): PromiseWithTransactionHash { - const txHashPromise = this.sendTransactionAsync(txData, opts); - return new PromiseWithTransactionHash( - txHashPromise, - (async (): Promise => { - // When the transaction hash resolves, wait for it to be mined. - return self._web3Wrapper.awaitTransactionSuccessAsync( - await txHashPromise, - opts.pollingIntervalMs, - opts.timeoutMs, - ); - })(), - ); - }, - async estimateGasAsync(txData?: Partial | undefined): Promise { - const encodedData = self._strictEncodeArguments('replaceOwner(address,address)', [ - owner.toLowerCase(), - newOwner.toLowerCase(), - ]); - const txDataWithDefaults = await BaseContract._applyDefaultsToTxDataAsync( - { - to: self.address, - ...txData, - data: encodedData, - }, - self._web3Wrapper.getContractDefaults(), - ); - if (txDataWithDefaults.from !== undefined) { - txDataWithDefaults.from = txDataWithDefaults.from.toLowerCase(); - } - - const gas = await self._web3Wrapper.estimateGasAsync(txDataWithDefaults); - return gas; - }, - async callAsync(callData: Partial = {}, defaultBlock?: BlockParam): Promise { - assert.doesConformToSchema('callData', callData, schemas.callDataSchema, [ - schemas.addressSchema, - schemas.numberSchema, - schemas.jsNumber, - ]); - if (defaultBlock !== undefined) { - assert.isBlockParam('defaultBlock', defaultBlock); - } - const encodedData = self._strictEncodeArguments('replaceOwner(address,address)', [ - owner.toLowerCase(), - newOwner.toLowerCase(), - ]); - let rawCallResult; - - const callDataWithDefaults = await BaseContract._applyDefaultsToTxDataAsync( - { - to: self.address, - ...callData, - data: encodedData, - }, - self._web3Wrapper.getContractDefaults(), - ); - callDataWithDefaults.from = callDataWithDefaults.from - ? callDataWithDefaults.from.toLowerCase() - : callDataWithDefaults.from; - try { - rawCallResult = await self._web3Wrapper.callAsync(callDataWithDefaults, defaultBlock); - } catch (err) { - BaseContract._throwIfThrownErrorIsRevertError(err); - throw err; - } - - BaseContract._throwIfCallResultIsRevertError(rawCallResult); - const abiEncoder = self._lookupAbiEncoder('replaceOwner(address,address)'); - // tslint:disable boolean-naming - const result = abiEncoder.strictDecodeReturnValue(rawCallResult); - // tslint:enable boolean-naming - return result; - }, - getABIEncodedTransactionData(): string { - const abiEncodedTransactionData = self._strictEncodeArguments('replaceOwner(address,address)', [ - owner.toLowerCase(), - newOwner.toLowerCase(), - ]); - return abiEncodedTransactionData; - }, - }; - } - public required(): ContractFunctionObj { - const self = (this as any) as AssetProxyOwnerContract; - - return { - async callAsync(callData: Partial = {}, defaultBlock?: BlockParam): Promise { - assert.doesConformToSchema('callData', callData, schemas.callDataSchema, [ - schemas.addressSchema, - schemas.numberSchema, - schemas.jsNumber, - ]); - if (defaultBlock !== undefined) { - assert.isBlockParam('defaultBlock', defaultBlock); - } - const encodedData = self._strictEncodeArguments('required()', []); - let rawCallResult; - - const callDataWithDefaults = await BaseContract._applyDefaultsToTxDataAsync( - { - to: self.address, - ...callData, - data: encodedData, - }, - self._web3Wrapper.getContractDefaults(), - ); - callDataWithDefaults.from = callDataWithDefaults.from - ? callDataWithDefaults.from.toLowerCase() - : callDataWithDefaults.from; - try { - rawCallResult = await self._web3Wrapper.callAsync(callDataWithDefaults, defaultBlock); - } catch (err) { - BaseContract._throwIfThrownErrorIsRevertError(err); - throw err; - } - - BaseContract._throwIfCallResultIsRevertError(rawCallResult); - const abiEncoder = self._lookupAbiEncoder('required()'); - // tslint:disable boolean-naming - const result = abiEncoder.strictDecodeReturnValue(rawCallResult); - // tslint:enable boolean-naming - return result; - }, - getABIEncodedTransactionData(): string { - const abiEncodedTransactionData = self._strictEncodeArguments('required()', []); - return abiEncodedTransactionData; - }, - }; - } - /** - * Allows an owner to revoke a confirmation for a transaction. - * @param transactionId Transaction ID. - */ - public revokeConfirmation(transactionId: BigNumber): ContractTxFunctionObj { - const self = (this as any) as AssetProxyOwnerContract; - assert.isBigNumber('transactionId', transactionId); - - return { - async sendTransactionAsync( - txData?: Partial | undefined, - opts: SendTransactionOpts = { shouldValidate: true }, - ): Promise { - const encodedData = self._strictEncodeArguments('revokeConfirmation(uint256)', [transactionId]); - const txDataWithDefaults = await BaseContract._applyDefaultsToTxDataAsync( - { - to: self.address, - ...txData, - data: encodedData, - }, - self._web3Wrapper.getContractDefaults(), - ); - if (txDataWithDefaults.from !== undefined) { - txDataWithDefaults.from = txDataWithDefaults.from.toLowerCase(); - } - - if (opts.shouldValidate !== false) { - await this.callAsync(txDataWithDefaults); - } - - const txHash = await self._web3Wrapper.sendTransactionAsync(txDataWithDefaults); - return txHash; - }, - awaitTransactionSuccessAsync( - txData?: Partial, - opts: AwaitTransactionSuccessOpts = { shouldValidate: true }, - ): PromiseWithTransactionHash { - const txHashPromise = this.sendTransactionAsync(txData, opts); - return new PromiseWithTransactionHash( - txHashPromise, - (async (): Promise => { - // When the transaction hash resolves, wait for it to be mined. - return self._web3Wrapper.awaitTransactionSuccessAsync( - await txHashPromise, - opts.pollingIntervalMs, - opts.timeoutMs, - ); - })(), - ); - }, - async estimateGasAsync(txData?: Partial | undefined): Promise { - const encodedData = self._strictEncodeArguments('revokeConfirmation(uint256)', [transactionId]); - const txDataWithDefaults = await BaseContract._applyDefaultsToTxDataAsync( - { - to: self.address, - ...txData, - data: encodedData, - }, - self._web3Wrapper.getContractDefaults(), - ); - if (txDataWithDefaults.from !== undefined) { - txDataWithDefaults.from = txDataWithDefaults.from.toLowerCase(); - } - - const gas = await self._web3Wrapper.estimateGasAsync(txDataWithDefaults); - return gas; - }, - async callAsync(callData: Partial = {}, defaultBlock?: BlockParam): Promise { - assert.doesConformToSchema('callData', callData, schemas.callDataSchema, [ - schemas.addressSchema, - schemas.numberSchema, - schemas.jsNumber, - ]); - if (defaultBlock !== undefined) { - assert.isBlockParam('defaultBlock', defaultBlock); - } - const encodedData = self._strictEncodeArguments('revokeConfirmation(uint256)', [transactionId]); - let rawCallResult; - - const callDataWithDefaults = await BaseContract._applyDefaultsToTxDataAsync( - { - to: self.address, - ...callData, - data: encodedData, - }, - self._web3Wrapper.getContractDefaults(), - ); - callDataWithDefaults.from = callDataWithDefaults.from - ? callDataWithDefaults.from.toLowerCase() - : callDataWithDefaults.from; - try { - rawCallResult = await self._web3Wrapper.callAsync(callDataWithDefaults, defaultBlock); - } catch (err) { - BaseContract._throwIfThrownErrorIsRevertError(err); - throw err; - } - - BaseContract._throwIfCallResultIsRevertError(rawCallResult); - const abiEncoder = self._lookupAbiEncoder('revokeConfirmation(uint256)'); - // tslint:disable boolean-naming - const result = abiEncoder.strictDecodeReturnValue(rawCallResult); - // tslint:enable boolean-naming - return result; - }, - getABIEncodedTransactionData(): string { - const abiEncodedTransactionData = self._strictEncodeArguments('revokeConfirmation(uint256)', [ - transactionId, - ]); - return abiEncodedTransactionData; - }, - }; - } - public secondsTimeLocked(): ContractFunctionObj { - const self = (this as any) as AssetProxyOwnerContract; - - return { - async callAsync(callData: Partial = {}, defaultBlock?: BlockParam): Promise { - assert.doesConformToSchema('callData', callData, schemas.callDataSchema, [ - schemas.addressSchema, - schemas.numberSchema, - schemas.jsNumber, - ]); - if (defaultBlock !== undefined) { - assert.isBlockParam('defaultBlock', defaultBlock); - } - const encodedData = self._strictEncodeArguments('secondsTimeLocked()', []); - let rawCallResult; - - const callDataWithDefaults = await BaseContract._applyDefaultsToTxDataAsync( - { - to: self.address, - ...callData, - data: encodedData, - }, - self._web3Wrapper.getContractDefaults(), - ); - callDataWithDefaults.from = callDataWithDefaults.from - ? callDataWithDefaults.from.toLowerCase() - : callDataWithDefaults.from; - try { - rawCallResult = await self._web3Wrapper.callAsync(callDataWithDefaults, defaultBlock); - } catch (err) { - BaseContract._throwIfThrownErrorIsRevertError(err); - throw err; - } - - BaseContract._throwIfCallResultIsRevertError(rawCallResult); - const abiEncoder = self._lookupAbiEncoder('secondsTimeLocked()'); - // tslint:disable boolean-naming - const result = abiEncoder.strictDecodeReturnValue(rawCallResult); - // tslint:enable boolean-naming - return result; - }, - getABIEncodedTransactionData(): string { - const abiEncodedTransactionData = self._strictEncodeArguments('secondsTimeLocked()', []); - return abiEncodedTransactionData; - }, - }; - } - /** - * Allows an owner to submit and confirm a transaction. - * @param destination Transaction target address. - * @param value Transaction ether value. - * @param data Transaction data payload. - * @returns Returns transaction ID. - */ - public submitTransaction(destination: string, value: BigNumber, data: string): ContractTxFunctionObj { - const self = (this as any) as AssetProxyOwnerContract; - assert.isString('destination', destination); - assert.isBigNumber('value', value); - assert.isString('data', data); - - return { - async sendTransactionAsync( - txData?: Partial | undefined, - opts: SendTransactionOpts = { shouldValidate: true }, - ): Promise { - const encodedData = self._strictEncodeArguments('submitTransaction(address,uint256,bytes)', [ - destination.toLowerCase(), - value, - data, - ]); - const txDataWithDefaults = await BaseContract._applyDefaultsToTxDataAsync( - { - to: self.address, - ...txData, - data: encodedData, - }, - self._web3Wrapper.getContractDefaults(), - ); - if (txDataWithDefaults.from !== undefined) { - txDataWithDefaults.from = txDataWithDefaults.from.toLowerCase(); - } - - if (opts.shouldValidate !== false) { - await this.callAsync(txDataWithDefaults); - } - - const txHash = await self._web3Wrapper.sendTransactionAsync(txDataWithDefaults); - return txHash; - }, - awaitTransactionSuccessAsync( - txData?: Partial, - opts: AwaitTransactionSuccessOpts = { shouldValidate: true }, - ): PromiseWithTransactionHash { - const txHashPromise = this.sendTransactionAsync(txData, opts); - return new PromiseWithTransactionHash( - txHashPromise, - (async (): Promise => { - // When the transaction hash resolves, wait for it to be mined. - return self._web3Wrapper.awaitTransactionSuccessAsync( - await txHashPromise, - opts.pollingIntervalMs, - opts.timeoutMs, - ); - })(), - ); - }, - async estimateGasAsync(txData?: Partial | undefined): Promise { - const encodedData = self._strictEncodeArguments('submitTransaction(address,uint256,bytes)', [ - destination.toLowerCase(), - value, - data, - ]); - const txDataWithDefaults = await BaseContract._applyDefaultsToTxDataAsync( - { - to: self.address, - ...txData, - data: encodedData, - }, - self._web3Wrapper.getContractDefaults(), - ); - if (txDataWithDefaults.from !== undefined) { - txDataWithDefaults.from = txDataWithDefaults.from.toLowerCase(); - } - - const gas = await self._web3Wrapper.estimateGasAsync(txDataWithDefaults); - return gas; - }, - async callAsync(callData: Partial = {}, defaultBlock?: BlockParam): Promise { - assert.doesConformToSchema('callData', callData, schemas.callDataSchema, [ - schemas.addressSchema, - schemas.numberSchema, - schemas.jsNumber, - ]); - if (defaultBlock !== undefined) { - assert.isBlockParam('defaultBlock', defaultBlock); - } - const encodedData = self._strictEncodeArguments('submitTransaction(address,uint256,bytes)', [ - destination.toLowerCase(), - value, - data, - ]); - let rawCallResult; - - const callDataWithDefaults = await BaseContract._applyDefaultsToTxDataAsync( - { - to: self.address, - ...callData, - data: encodedData, - }, - self._web3Wrapper.getContractDefaults(), - ); - callDataWithDefaults.from = callDataWithDefaults.from - ? callDataWithDefaults.from.toLowerCase() - : callDataWithDefaults.from; - try { - rawCallResult = await self._web3Wrapper.callAsync(callDataWithDefaults, defaultBlock); - } catch (err) { - BaseContract._throwIfThrownErrorIsRevertError(err); - throw err; - } - - BaseContract._throwIfCallResultIsRevertError(rawCallResult); - const abiEncoder = self._lookupAbiEncoder('submitTransaction(address,uint256,bytes)'); - // tslint:disable boolean-naming - const result = abiEncoder.strictDecodeReturnValue(rawCallResult); - // tslint:enable boolean-naming - return result; - }, - getABIEncodedTransactionData(): string { - const abiEncodedTransactionData = self._strictEncodeArguments( - 'submitTransaction(address,uint256,bytes)', - [destination.toLowerCase(), value, data], - ); - return abiEncodedTransactionData; - }, - }; - } - public transactionCount(): ContractFunctionObj { - const self = (this as any) as AssetProxyOwnerContract; - - return { - async callAsync(callData: Partial = {}, defaultBlock?: BlockParam): Promise { - assert.doesConformToSchema('callData', callData, schemas.callDataSchema, [ - schemas.addressSchema, - schemas.numberSchema, - schemas.jsNumber, - ]); - if (defaultBlock !== undefined) { - assert.isBlockParam('defaultBlock', defaultBlock); - } - const encodedData = self._strictEncodeArguments('transactionCount()', []); - let rawCallResult; - - const callDataWithDefaults = await BaseContract._applyDefaultsToTxDataAsync( - { - to: self.address, - ...callData, - data: encodedData, - }, - self._web3Wrapper.getContractDefaults(), - ); - callDataWithDefaults.from = callDataWithDefaults.from - ? callDataWithDefaults.from.toLowerCase() - : callDataWithDefaults.from; - try { - rawCallResult = await self._web3Wrapper.callAsync(callDataWithDefaults, defaultBlock); - } catch (err) { - BaseContract._throwIfThrownErrorIsRevertError(err); - throw err; - } - - BaseContract._throwIfCallResultIsRevertError(rawCallResult); - const abiEncoder = self._lookupAbiEncoder('transactionCount()'); - // tslint:disable boolean-naming - const result = abiEncoder.strictDecodeReturnValue(rawCallResult); - // tslint:enable boolean-naming - return result; - }, - getABIEncodedTransactionData(): string { - const abiEncodedTransactionData = self._strictEncodeArguments('transactionCount()', []); - return abiEncodedTransactionData; - }, - }; - } - public transactions(index_0: BigNumber): ContractFunctionObj<[string, BigNumber, string, boolean]> { - const self = (this as any) as AssetProxyOwnerContract; - assert.isBigNumber('index_0', index_0); - - return { - async callAsync( - callData: Partial = {}, - defaultBlock?: BlockParam, - ): Promise<[string, BigNumber, string, boolean]> { - assert.doesConformToSchema('callData', callData, schemas.callDataSchema, [ - schemas.addressSchema, - schemas.numberSchema, - schemas.jsNumber, - ]); - if (defaultBlock !== undefined) { - assert.isBlockParam('defaultBlock', defaultBlock); - } - const encodedData = self._strictEncodeArguments('transactions(uint256)', [index_0]); - let rawCallResult; - - const callDataWithDefaults = await BaseContract._applyDefaultsToTxDataAsync( - { - to: self.address, - ...callData, - data: encodedData, - }, - self._web3Wrapper.getContractDefaults(), - ); - callDataWithDefaults.from = callDataWithDefaults.from - ? callDataWithDefaults.from.toLowerCase() - : callDataWithDefaults.from; - try { - rawCallResult = await self._web3Wrapper.callAsync(callDataWithDefaults, defaultBlock); - } catch (err) { - BaseContract._throwIfThrownErrorIsRevertError(err); - throw err; - } - - BaseContract._throwIfCallResultIsRevertError(rawCallResult); - const abiEncoder = self._lookupAbiEncoder('transactions(uint256)'); - // tslint:disable boolean-naming - const result = abiEncoder.strictDecodeReturnValue<[string, BigNumber, string, boolean]>(rawCallResult); - // tslint:enable boolean-naming - return result; - }, - getABIEncodedTransactionData(): string { - const abiEncodedTransactionData = self._strictEncodeArguments('transactions(uint256)', [index_0]); - return abiEncodedTransactionData; - }, - }; - } - - /** - * Subscribe to an event type emitted by the AssetProxyOwner contract. - * @param eventName The AssetProxyOwner contract event you would like to subscribe to. - * @param indexFilterValues 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}` - * @param callback Callback that gets called when a log is added/removed - * @param isVerbose Enable verbose subscription warnings (e.g recoverable network issues encountered) - * @return Subscription token used later to unsubscribe - */ - public subscribe( - eventName: AssetProxyOwnerEvents, - indexFilterValues: IndexedFilterValues, - callback: EventCallback, - isVerbose: boolean = false, - blockPollingIntervalMs?: number, - ): string { - assert.doesBelongToStringEnum('eventName', eventName, AssetProxyOwnerEvents); - assert.doesConformToSchema('indexFilterValues', indexFilterValues, schemas.indexFilterValuesSchema); - assert.isFunction('callback', callback); - const subscriptionToken = this._subscriptionManager.subscribe( - this.address, - eventName, - indexFilterValues, - AssetProxyOwnerContract.ABI(), - callback, - isVerbose, - blockPollingIntervalMs, - ); - return subscriptionToken; - } - /** - * Cancel a subscription - * @param subscriptionToken Subscription token returned by `subscribe()` - */ - public unsubscribe(subscriptionToken: string): void { - this._subscriptionManager.unsubscribe(subscriptionToken); - } - /** - * Cancels all existing subscriptions - */ - public unsubscribeAll(): void { - this._subscriptionManager.unsubscribeAll(); - } - /** - * Gets historical logs without creating a subscription - * @param eventName The AssetProxyOwner contract event you would like to subscribe to. - * @param blockRange Block range to get logs from. - * @param indexFilterValues 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}` - * @return Array of logs that match the parameters - */ - public async getLogsAsync( - eventName: AssetProxyOwnerEvents, - blockRange: BlockRange, - indexFilterValues: IndexedFilterValues, - ): Promise>> { - assert.doesBelongToStringEnum('eventName', eventName, AssetProxyOwnerEvents); - assert.doesConformToSchema('blockRange', blockRange, schemas.blockRangeSchema); - assert.doesConformToSchema('indexFilterValues', indexFilterValues, schemas.indexFilterValuesSchema); - const logs = await this._subscriptionManager.getLogsAsync( - this.address, - eventName, - blockRange, - indexFilterValues, - AssetProxyOwnerContract.ABI(), - ); - return logs; - } - constructor( - address: string, - supportedProvider: SupportedProvider, - txDefaults?: Partial, - logDecodeDependencies?: { [contractName: string]: ContractAbi }, - deployedBytecode: string | undefined = AssetProxyOwnerContract.deployedBytecode, - ) { - super( - 'AssetProxyOwner', - AssetProxyOwnerContract.ABI(), - address, - supportedProvider, - txDefaults, - logDecodeDependencies, - deployedBytecode, - ); - classUtils.bindAll(this, ['_abiEncoderByFunctionSignature', 'address', '_web3Wrapper']); - this._subscriptionManager = new SubscriptionManager( - AssetProxyOwnerContract.ABI(), - this._web3Wrapper, - ); - AssetProxyOwnerContract.ABI().forEach((item, index) => { - if (item.type === 'function') { - const methodAbi = item as MethodAbi; - this._methodABIIndex[methodAbi.name] = index; - } - }); - } -} - -// tslint:disable:max-file-line-count -// tslint:enable:no-unbound-method no-parameter-reassignment no-consecutive-blank-lines ordered-imports align -// tslint:enable:trailing-comma whitespace no-trailing-whitespace diff --git a/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts b/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts index 29c87879b8..4d18ea0ae6 100644 --- a/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts +++ b/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts @@ -40,7 +40,7 @@ export class DevUtilsContract extends BaseContract { * @ignore */ public static deployedBytecode = - '0x608060405234801561001057600080fd5b506004361061025c5760003560e01c80639a7e752611610145578063cafd3a07116100bd578063d3d862d11161008c578063e4e6e7da11610071578063e4e6e7da1461063a578063e77286eb1461065b578063ee4f5a941461067d5761025c565b8063d3d862d114610605578063e25cabf7146106185761025c565b8063cafd3a071461059e578063d001c5dc146105bf578063d186037f146105d2578063d3637905146105e55761025c565b8063a6627e9f11610114578063b43cffe1116100f9578063b43cffe114610548578063bbb2dcf61461055b578063bc03f9641461057d5761025c565b8063a6627e9f14610512578063acaedc74146105255761025c565b80639a7e7526146104985780639eadc835146104bb578063a0901e51146104df578063a5cd62ba146104f25761025c565b8063459be5e2116101d85780636f83188e116101a75780637b66ad341161018c5780637b66ad34146104515780637d727512146104725780638f4ce479146104855761025c565b80636f83188e1461040d5780637914b2ec146104305761025c565b8063459be5e21461038a5780634dfdac20146103ab578063590aa875146103cb57806365129042146103eb5761025c565b80632322cf761161022f578063327d305411610214578063327d30541461033257806332aae3ad146103455780633db6dc61146103675761025c565b80632322cf76146102f0578063314853ff146103105761025c565b806302d0aec31461026157806304a5618a1461028b5780630d7b7d76146102ad578063165979e1146102ce575b600080fd5b61027461026f3660046149dd565b61069f565b6040516102829291906152e4565b60405180910390f35b61029e6102993660046149dd565b6106fb565b60405161028293929190615387565b6102c06102bb366004614565565b6107a9565b604051610282929190615292565b6102e16102dc3660046149dd565b6107cb565b604051610282939291906154c2565b6103036102fe366004614565565b610828565b6040516102829190615731565b61032361031e3660046149dd565b610850565b604051610282939291906152b9565b6102c06103403660046149dd565b610897565b6103586103533660046149dd565b6108d9565b60405161028293929190615438565b61037a6103753660046149dd565b61092c565b6040516102829493929190615258565b61039d6103983660046149dd565b610976565b6040516102829291906154ab565b6103be6103b936600461448c565b6109cc565b60405161028291906151f2565b6103de6103d936600461435d565b610a4f565b60405161028291906153e7565b6103fe6103f93660046149dd565b610ad3565b60405161028293929190614fdf565b61042061041b3660046149dd565b610b0d565b6040516102829493929190615535565b61044361043e3660046149dd565b61164e565b604051610282929190615301565b61046461045f3660046149dd565b611686565b604051610282929190614fc5565b610303610480366004614565565b6116be565b6104436104933660046149dd565b611dd3565b6104ab6104a63660046149dd565b611e63565b60405161028294939291906154f1565b6104ce6104c93660046149dd565b611ec4565b604051610282959493929190615324565b6103be6104ed3660046145d4565b611f6f565b61050561050036600461463a565b611fe8565b60405161028291906150f9565b6103de6105203660046145a9565b6120ac565b6105386105333660046149dd565b612133565b6040516102829493929190615055565b6103de6105563660046144da565b61216f565b61056e6105693660046149dd565b6121fc565b604051610282939291906153b2565b61059061058b3660046149dd565b6122a9565b6040516102829291906152a0565b6105b16105ac3660046149dd565b6122e2565b604051610282929190615528565b6103be6105cd36600461448c565b612330565b6103036105e0366004614565565b61239e565b6105f86105f3366004614a94565b6129e1565b60405161028291906154dd565b6103de6106133660046147e2565b612f7e565b61062b6106263660046146be565b612fb6565b60405161028293929190615146565b61064d61064836600461448c565b6130ee565b604051610282929190615233565b61066e610669366004614aec565b613107565b604051610282939291906156d5565b61069061068b3660046149dd565b613341565b60405161028293929190615481565b6000806106b3836106ae61337e565b6133a2565b60006106cc60048551866133fc9092919063ffffffff16565b8060200190516106df9190810190614990565b909350905060ff811660068111156106f357fe5b915050915091565b6000808061070f848263ffffffff61343f16565b92506001600160e01b031983167f02571792000000000000000000000000000000000000000000000000000000001461077d576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016107749061569e565b60405180910390fd5b61078e84601063ffffffff61347316565b91506107a184602463ffffffff6134a616565b929491935050565b6000806107b684846116be565b91506107c2848461239e565b90509250929050565b60008060006107dc846106ae6134b2565b60006107f560048651876133fc9092919063ffffffff16565b8060200190516108089190810190614d20565b9094509250905060ff8116600281111561081e57fe5b9350509193909250565b600080600061083785856107a9565b9150915061084582826134d6565b925050505b92915050565b6000606080610861846106ae6134ec565b835161087790859060049063ffffffff6133fc16565b80602001905161088a9190810190614930565b9196909550909350915050565b6000806108a6836106ae613510565b82516108bc90849060049063ffffffff6133fc16565b8060200190516108cf91908101906148d2565b9094909350915050565b60008060606108ea846106ae613534565b600061090360048651876133fc9092919063ffffffff16565b8060200190516109169190810190614cd4565b9094509250905060ff8116600181111561081e57fe5b60008060608061093e856106ae613558565b845161095490869060049063ffffffff6133fc16565b806020019051610967919081019061488e565b92989197509550909350915050565b600080610985836106ae61357c565b600061099e60048551866133fc9092919063ffffffff16565b8060200190516109b19190810190614c07565b9250905060ff811660038111156109c457fe5b925050915091565b6060600082519050806040519080825280602002602001820160405280156109fe578160200160208202803883390190505b50915060005b818114610a4757610a2885858381518110610a1b57fe5b602002602001015161239e565b838281518110610a3457fe5b6020908102919091010152600101610a04565b505092915050565b6040516060907ff47261b00000000000000000000000000000000000000000000000000000000090610a85908490602401614fb1565b60408051601f198184030181529190526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff166001600160e01b0319909316929092179091529050919050565b6000806000610ae4846106ae6135a0565b8351610afa90859060049063ffffffff6133fc16565b80602001905161088a91908101906143b2565b60608080806000610b24868263ffffffff61343f16565b90506001600160e01b031981167fdedfc1f1000000000000000000000000000000000000000000000000000000001415610b95576040518060400160405280601181526020017f626174636843616e63656c4f72646572730000000000000000000000000000008152509450611124565b6001600160e01b031981167f9694a402000000000000000000000000000000000000000000000000000000001415610c04576040518060400160405280600f81526020017f626174636846696c6c4f726465727300000000000000000000000000000000008152509450611124565b6001600160e01b031981167f8ea8dfe4000000000000000000000000000000000000000000000000000000001415610c73576040518060400160405280601681526020017f626174636846696c6c4f72646572734e6f5468726f77000000000000000000008152509450611124565b6001600160e01b031981167fbeee2e14000000000000000000000000000000000000000000000000000000001415610ce2576040518060400160405280601581526020017f626174636846696c6c4f724b696c6c4f726465727300000000000000000000008152509450611124565b6001600160e01b031981167f2da62987000000000000000000000000000000000000000000000000000000001415610d51576040518060400160405280600b81526020017f63616e63656c4f726465720000000000000000000000000000000000000000008152509450611124565b6001600160e01b031981167f9b44d556000000000000000000000000000000000000000000000000000000001415610dc0576040518060400160405280600981526020017f66696c6c4f7264657200000000000000000000000000000000000000000000008152509450611124565b6001600160e01b031981167fe14b58c4000000000000000000000000000000000000000000000000000000001415610e2f576040518060400160405280600f81526020017f66696c6c4f724b696c6c4f7264657200000000000000000000000000000000008152509450611124565b6001600160e01b031981167f78d29ac1000000000000000000000000000000000000000000000000000000001415610e9e576040518060400160405280601681526020017f6d61726b65744275794f72646572734e6f5468726f77000000000000000000008152509450611124565b6001600160e01b031981167f369da099000000000000000000000000000000000000000000000000000000001415610f0d576040518060400160405280601781526020017f6d61726b657453656c6c4f72646572734e6f5468726f770000000000000000008152509450611124565b6001600160e01b031981167f8bc8efb3000000000000000000000000000000000000000000000000000000001415610f7c576040518060400160405280601981526020017f6d61726b65744275794f726465727346696c6c4f724b696c6c000000000000008152509450611124565b6001600160e01b031981167fa6c3bf33000000000000000000000000000000000000000000000000000000001415610feb576040518060400160405280601a81526020017f6d61726b657453656c6c4f726465727346696c6c4f724b696c6c0000000000008152509450611124565b6001600160e01b031981167f88ec79fb00000000000000000000000000000000000000000000000000000000141561105a576040518060400160405280600b81526020017f6d617463684f72646572730000000000000000000000000000000000000000008152509450611124565b6001600160e01b031981167f4f9559b10000000000000000000000000000000000000000000000000000000014806110bb57506001600160e01b031981167f2280c91000000000000000000000000000000000000000000000000000000000145b156110f2576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161077490615630565b6040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610774906155f9565b6001600160e01b031981167fdedfc1f10000000000000000000000000000000000000000000000000000000014156111c957855161116c90879060049063ffffffff6135c416565b80602001905161117f9190810190614607565b604080516000808252602082019092529195505b50604080516000808252602082019092529194506111c1565b60608152602001906001900390816111ac5790505b509150611646565b6001600160e01b031981167fbeee2e1400000000000000000000000000000000000000000000000000000000148061122a57506001600160e01b031981167f9694a40200000000000000000000000000000000000000000000000000000000145b8061125e57506001600160e01b031981167f8ea8dfe400000000000000000000000000000000000000000000000000000000145b156112785761126c86613644565b91955093509150611646565b6001600160e01b031981167f2da629870000000000000000000000000000000000000000000000000000000014156113605760408051600180825281830190925290816020015b6112c7613c90565b8152602001906001900390816112bf57505086519094506112f290879060049063ffffffff6135c416565b8060200190516113059190810190614a61565b8460008151811061131257fe5b602002602001018190525060006040519080825280602002602001820160405280156111935781602001602082028038833901905050604080516000808252602082019092529194506111c1565b6001600160e01b031981167fe14b58c40000000000000000000000000000000000000000000000000000000014806113c157506001600160e01b031981167f9b44d55600000000000000000000000000000000000000000000000000000000145b156113cf5761126c86613673565b6001600160e01b031981167f78d29ac100000000000000000000000000000000000000000000000000000000148061143057506001600160e01b031981167f369da09900000000000000000000000000000000000000000000000000000000145b8061146457506001600160e01b031981167f8bc8efb300000000000000000000000000000000000000000000000000000000145b8061149857506001600160e01b031981167fa6c3bf3300000000000000000000000000000000000000000000000000000000145b156114a65761126c8661376d565b6001600160e01b031981167f88ec79fb000000000000000000000000000000000000000000000000000000001415611646576114e0613c90565b6114e8613c90565b60608061150260048b518c6135c49092919063ffffffff16565b8060200190516115159190810190614b43565b604080516002808252606082019092529498509296509094509250816020015b61153d613c90565b815260200190600190039081611535579050509750838860008151811061156057fe5b6020026020010181905250828860018151811061157957fe5b602090810291909101015260408051600280825260608201909252908160200160208202803883390190505096508360a00151876000815181106115b957fe5b6020026020010181815250508260a00151876001815181106115d757fe5b60209081029190910101526040805160028082526060820190925290816020015b60608152602001906001900390816115f8579050509550818660008151811061161d57fe5b6020026020010181905250808660018151811061163657fe5b6020026020010181905250505050505b509193509193565b60008061165d836106ae6137e1565b825161167390849060049063ffffffff6133fc16565b8060200190516108cf91908101906149b4565b600080611695836106ae613805565b82516116ab90849060049063ffffffff6133fc16565b8060200190516108cf9190810190614379565b6000806116d1838263ffffffff61343f16565b90506001600160e01b031981167ff47261b000000000000000000000000000000000000000000000000000000000141561184657600061171884601063ffffffff61347316565b6040519091506060907f70a082310000000000000000000000000000000000000000000000000000000090611751908890602401614fb1565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050905060006060836001600160a01b0316836040516117cc9190614f95565b600060405180830381855afa9150503d8060008114611807576040519150601f19603f3d011682016040523d82523d6000602084013e61180c565b606091505b509150915081801561181f575080516020145b61182a57600061183b565b61183b81600063ffffffff6134a616565b955050505050611dcc565b6001600160e01b031981167f025717920000000000000000000000000000000000000000000000000000000014156119e157600080611884856106fb565b6040519194509250606091507f6352211e00000000000000000000000000000000000000000000000000000000906118c0908490602401615731565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050905060006060846001600160a01b03168360405161193b9190614f95565b600060405180830381855afa9150503d8060008114611976576040519150601f19603f3d011682016040523d82523d6000602084013e61197b565b606091505b50915091506000828015611990575081516020145b61199b5760006119ac565b6119ac82600c63ffffffff61347316565b9050896001600160a01b0316816001600160a01b0316146119ce5760006119d1565b60015b60ff169750505050505050611dcc565b6001600160e01b031981167fa7cb5fb7000000000000000000000000000000000000000000000000000000001415611bc4576000606080611a2186611ec4565b5081519296509094509250905060005b818114611bba5783516060907efdd58e00000000000000000000000000000000000000000000000000000000908b90879085908110611a6c57fe5b6020026020010151604051602401611a85929190615089565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050905060006060876001600160a01b031683604051611b009190614f95565b600060405180830381855afa9150503d8060008114611b3b576040519150601f19603f3d011682016040523d82523d6000602084013e611b40565b606091505b50915091506000828015611b55575081516020145b611b60576000611b71565b611b7182600063ffffffff6134a616565b90506000878681518110611b8157fe5b60200260200101518281611b9157fe5b0490508b811080611ba057508b155b15611ba957809b505b505060019093019250611a31915050565b5050505050611dcc565b6001600160e01b031981167fc339d10a000000000000000000000000000000000000000000000000000000001415611d15576040516060907fa85e59e40000000000000000000000000000000000000000000000000000000090611c33908690600090819081906024016153fa565b60408051601f198184030181529181526020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff166001600160e01b03199094169390931790925260045491519092506000916001600160a01b031690611c9a908490614f95565b600060405180830381855afa9150503d8060008114611cd5576040519150601f19603f3d011682016040523d82523d6000602084013e611cda565b606091505b5050905080611cea576000611d0c565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff5b93505050611dcc565b6001600160e01b031981167f94cfcdd7000000000000000000000000000000000000000000000000000000001415611dcc57606080611d53856121fc565b80519194509250905060005b818114611dc7576000611d8589858481518110611d7857fe5b60200260200101516116be565b90506000858381518110611d9557fe5b60200260200101518281611da557fe5b04905087811080611db4575087155b15611dbd578097505b5050600101611d5f565b505050505b5092915050565b600080611de6838263ffffffff61343f16565b91506001600160e01b031982167ff47261b00000000000000000000000000000000000000000000000000000000014611e4b576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016107749061569e565b611e5c83601063ffffffff61347316565b9050915091565b60008060006060611e76856106ae613829565b6000611e8f60048751886133fc9092919063ffffffff16565b806020019051611ea29190810190614c76565b91965094509250905060ff81166006811115611eba57fe5b9450509193509193565b60008060608080611edb868563ffffffff61343f16565b94506001600160e01b031985167fa7cb5fb70000000000000000000000000000000000000000000000000000000014611f40576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016107749061569e565b505050506024828101516044840151606485015160848601519496929591820184019490820184019391010190565b6060808251604051908082528060200260200182016040528015611f9d578160200160208202803883390190505b50905060005b83518114611dcc57838181518110611fb757fe5b60200260200101516001600160a01b031631828281518110611fd557fe5b6020908102919091010152600101611fa3565b60606000845190508060405190808252806020026020018201604052801561201a578160200160208202803883390190505b50915060005b8181146120a25761206b86828151811061203657fe5b602002602001015186838151811061204a57fe5b602002602001015186848151811061205e57fe5b60200260200101516129e1565b83828151811061207757fe5b6020026020010190600481111561208a57fe5b9081600481111561209757fe5b905250600101612020565b50505b9392505050565b6040516060907f0257179200000000000000000000000000000000000000000000000000000000906120e49085908590602401615089565b60408051601f198184030181529190526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff166001600160e01b031990931692909217909152905092915050565b60006060806060612146856106ae61384d565b845161215c90869060049063ffffffff6133fc16565b80602001905161096791908101906143f4565b6040516060907fa7cb5fb700000000000000000000000000000000000000000000000000000000906121ab908790879087908790602401615003565b60408051601f198184030181529190526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff166001600160e01b0319909316929092179091529050949350505050565b6000606080612211848463ffffffff61343f16565b92506001600160e01b031983167f94cfcdd70000000000000000000000000000000000000000000000000000000014612276576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016107749061569e565b835161228c90859060049063ffffffff6135c416565b80602001905161229f9190810190614817565b9395909450915050565b600060606122b9836106ae613871565b82516122cf90849060049063ffffffff6133fc16565b8060200190516108cf91908101906148f5565b6000806122f1836106ae613895565b600061230a60048551866133fc9092919063ffffffff16565b80602001905161231d9190810190614c07565b9250905060ff811660018111156109c457fe5b606060008251905080604051908082528060200260200182016040528015612362578160200160208202803883390190505b50915060005b818114610a475761237f85858381518110611d7857fe5b83828151811061238b57fe5b6020908102919091010152600101612368565b6000806123b1838263ffffffff61343f16565b90506001600160e01b031981167f94cfcdd7000000000000000000000000000000000000000000000000000000001415612463576060806123f1856121fc565b80519194509250905060005b81811461245857600061241689858481518110610a1b57fe5b9050600085838151811061242657fe5b6020026020010151828161243657fe5b04905087811080612445575087155b1561244e578097505b50506001016123fd565b5061084a9350505050565b6001600160e01b031981167ff47261b00000000000000000000000000000000000000000000000000000000014156124ee5760006124a884601063ffffffff61347316565b6001546040519192506060917fdd62ed3e00000000000000000000000000000000000000000000000000000000916117519189916001600160a01b031690602401614fc5565b6001600160e01b031981167f025717920000000000000000000000000000000000000000000000000000000014156127de5760008061252c856106fb565b600254604051929550909350606092507fe985e9c50000000000000000000000000000000000000000000000000000000091612578918a916001600160a01b0390911690602401614fc5565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050905060006060846001600160a01b0316836040516125f39190614f95565b600060405180830381855afa9150503d806000811461262e576040519150601f19603f3d011682016040523d82523d6000602084013e612633565b606091505b509150915081158061264757508051602014155b80612663575061265e81600063ffffffff6134a616565b600114155b156127b1576040516060907f081812fc000000000000000000000000000000000000000000000000000000009061269e908790602401615731565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff83818316178352505050509050856001600160a01b0316816040516127159190614f95565b600060405180830381855afa9150503d8060008114612750576040519150601f19603f3d011682016040523d82523d6000602084013e612755565b606091505b509093509150828015612769575081516020145b801561279857506002546001600160a01b031661278d83600c63ffffffff61347316565b6001600160a01b0316145b6127a35760006127a6565b60015b60ff16975050611bba565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff96505050505050611dcc565b6001600160e01b031981167fa7cb5fb700000000000000000000000000000000000000000000000000000000141561298657600061281b84611ec4565b5050600354604051929450606093507fe985e9c50000000000000000000000000000000000000000000000000000000092612865925089916001600160a01b031690602401614fc5565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050905060006060836001600160a01b0316836040516128e09190614f95565b600060405180830381855afa9150503d806000811461291b576040519150601f19603f3d011682016040523d82523d6000602084013e612920565b606091505b5091509150818015612933575080516020145b801561294f575061294b81600063ffffffff6134a616565b6001145b61295a57600061183b565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff955050505050611dcc565b6001600160e01b031981167fc339d10a000000000000000000000000000000000000000000000000000000001415611dcc57507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff9392505050565b60006129eb613d23565b612a7c8584600560009054906101000a90046001600160a01b03166001600160a01b0316631ce4c78b6040518163ffffffff1660e01b815260040160206040518083038186803b158015612a3e57600080fd5b505afa158015612a52573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250612a769190810190614bef565b3a6138b9565b60408051600480825260a0820190925291925060609190816020015b6060815260200190600190039081612a9857505060408051600480825260a082019092529192506060919060208201608080388339505060408051600480825260a08201909252929350606092915060208201608080388339505060408051600480825260a0820190925292935060609291506020820160808038833901905050905088610160015184600081518110612b2e57fe5b60200260200101819052508783600081518110612b4757fe5b60200260200101906001600160a01b031690816001600160a01b031681525050886000015182600081518110612b7957fe5b60200260200101906001600160a01b031690816001600160a01b0316815250508681600081518110612ba757fe5b60200260200101818152505088610140015184600181518110612bc657fe5b6020026020010181905250886000015183600181518110612be357fe5b60200260200101906001600160a01b031690816001600160a01b0316815250508782600181518110612c1157fe5b60200260200101906001600160a01b031690816001600160a01b031681525050846000015181600181518110612c4357fe5b602002602001018181525050886101a0015184600281518110612c6257fe5b60200260200101819052508783600281518110612c7b57fe5b60200260200101906001600160a01b031690816001600160a01b031681525050886040015182600281518110612cad57fe5b60200260200101906001600160a01b031690816001600160a01b031681525050846060015181600281518110612cdf57fe5b60200260200101818152505088610180015184600381518110612cfe57fe5b6020026020010181905250886000015183600381518110612d1b57fe5b60200260200101906001600160a01b031690816001600160a01b031681525050886040015182600381518110612d4d57fe5b60200260200101906001600160a01b031690816001600160a01b031681525050846040015181600381518110612d7f57fe5b60209081029190910101526040516060907fb04fbddd0000000000000000000000000000000000000000000000000000000090612dc69087908790879087906024016150a2565b60408051601f198184030181529181526020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff166001600160e01b03199094169390931790925260055491519092506060916001600160a01b031690612e2d908490614f95565b6000604051808303816000865af19150503d8060008114612e6a576040519150601f19603f3d011682016040523d82523d6000602084013e612e6f565b606091505b50915060009050612e86828263ffffffff61343f16565b9050612e90613534565b6001600160e01b031982811691161415612ed2576000612eaf836108d9565b5091505060ff81166004811115612ec257fe5b99505050505050505050506120a5565b612eda6134ec565b6001600160e01b031982811691161415612f0d576000612ef983610850565b509091505060ff81166004811115612ec257fe5b815160208301207ff43f26ea5a94b478394a975e856464913dc1a8a1ca70939d974aa7c238aa0ce01415612f4c576004985050505050505050506120a5565b6040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610774906155c2565b6040516060907f94cfcdd700000000000000000000000000000000000000000000000000000000906120e49085908590602401615205565b606080606060008551905080604051908082528060200260200182016040528015612ffb57816020015b612fe8613d52565b815260200190600190039081612fe05790505b50935080604051908082528060200260200182016040528015613028578160200160208202803883390190505b50925080604051908082528060200260200182016040528015613055578160200160208202803883390190505b50915060005b8181146130e55761309287828151811061307157fe5b602002602001015187838151811061308557fe5b6020026020010151613107565b87518890859081106130a057fe5b602002602001018785815181106130b357fe5b602002602001018786815181106130c657fe5b931515602094850291909101909301929092529190525260010161305b565b50509250925092565b6060806130fb8484612330565b91506107c284846109cc565b61310f613d52565b600080546040517f9d3fa4b900000000000000000000000000000000000000000000000000000000815282916001600160a01b031690639d3fa4b9906131599088906004016156f9565b60606040518083038186803b15801561317157600080fd5b505afa158015613185573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052506131a99190810190614a10565b85516000546040517fa12dcc6f00000000000000000000000000000000000000000000000000000000815292955090916001600160a01b039091169063a12dcc6f906131fb908990899060040161570c565b60206040518083038186803b15801561321357600080fd5b505afa158015613227573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525061324b919081019061486e565b9150600061325e82886101400151610828565b60a088015160c08901516101808a01516101408b01519394509192909160009161328d9163ffffffff61393016565b156132ba576132b3846132ad848d6080015161395590919063ffffffff16565b85613971565b9050613313565b816132ce576132b3848b6080015185613971565b60006132df868c6101800151610828565b905060006132f2868d6080015187613971565b90506000613301838688613971565b905061330d82826134d6565b93505050505b61333361332d89604001518561399b90919063ffffffff16565b826134d6565b965050505050509250925092565b6000806000613352846106ae6139ba565b600061336b60048651876133fc9092919063ffffffff16565b8060200190516108089190810190614c34565b7ffdb6ca8d0000000000000000000000000000000000000000000000000000000090565b60006133af83600061343f565b90506001600160e01b0319808216908316146133f7576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161077490615667565b505050565b60608183111561341a5761341a613415600085856139de565b613a4d565b83518211156134335761343361341560018487516139de565b50819003910190815290565b600081600401835110156134605761346061341560038551856004016139de565b5001602001516001600160e01b03191690565b600081601401835110156134945761349461341560048551856014016139de565b5001601401516001600160a01b031690565b60006120a58383613a55565b7f18e4b1410000000000000000000000000000000000000000000000000000000090565b60008183106134e557816120a5565b5090919050565b7f4678472b0000000000000000000000000000000000000000000000000000000090565b7fb6555d6f0000000000000000000000000000000000000000000000000000000090565b7f488219a60000000000000000000000000000000000000000000000000000000090565b7f1b8388f70000000000000000000000000000000000000000000000000000000090565b7fe94a7ed00000000000000000000000000000000000000000000000000000000090565b7f4ad312750000000000000000000000000000000000000000000000000000000090565b6060818311156135dd576135dd613415600085856139de565b83518211156135f6576135f661341560018487516139de565b8282036040519080825280601f01601f191660200182016040528015613623576020820181803883390190505b5090506120a561363282613a7f565b8461363c87613a7f565b018351613a85565b606080606061366060048551866135c49092919063ffffffff16565b80602001905161088a9190810190614715565b60408051600180825281830190925260609182918291816020015b613696613c90565b81526020019060019003908161368e5750506040805160018082528183019092529194506020808301908038833901905050604080516001808252818301909252919350816020015b60608152602001906001900390816136df575050845190915061370c90859060049063ffffffff6135c416565b80602001905161371f9190810190614b9c565b8560008151811061372c57fe5b602002602001018560008151811061374057fe5b602002602001018560008151811061375457fe5b6020908102919091010192909252919052529193909250565b6040805160018082528183019092526060918291829160208083019080388339505085519193506137a99186915060049063ffffffff6135c416565b8060200190516137bc919081019061478f565b845185906000906137c957fe5b60209081029190910101919091529095929450925050565b7f11c7b7200000000000000000000000000000000000000000000000000000000090565b7fa15c0d060000000000000000000000000000000000000000000000000000000090565b7f7e5a23180000000000000000000000000000000000000000000000000000000090565b7f5bd0428d0000000000000000000000000000000000000000000000000000000090565b7f20d11f610000000000000000000000000000000000000000000000000000000090565b7ff59851840000000000000000000000000000000000000000000000000000000090565b6138c1613d23565b6020810184905260a085015160808601516138dd918691613b2a565b815260a085015160c08601516138f4918691613b2a565b604082015260a085015160e086015161390e918691613b2a565b6060820152613923828463ffffffff613b5e16565b6080820152949350505050565b6000815183511480156120a55750508051602091820120825192909101919091201490565b6000828201838110156120a5576120a561341560008686613b8b565b600061399383613987868563ffffffff613b5e16565b9063ffffffff613baa16565b949350505050565b6000828211156139b4576139b461341560028585613b8b565b50900390565b7fe53c76c80000000000000000000000000000000000000000000000000000000090565b6060632800659560e01b8484846040516024016139fd939291906154cf565b60408051601f198184030181529190526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff166001600160e01b03199093169290921790915290509392505050565b805160208201fd5b60008160200183511015613a7657613a7661341560058551856020016139de565b50016020015190565b60200190565b6020811015613aaf576001816020036101000a0380198351168185511680821786525050506133f7565b82821415613abc576133f7565b82821115613af65760208103905080820181840181515b82851015613aee578451865260209586019590940193613ad3565b9052506133f7565b60208103905080820181840183515b81861215613b215782518252601f199283019290910190613b05565b85525050505050565b6000613b37848484613bd4565b15613b4a57613b4a613415858585613c3a565b61399383613987868563ffffffff613b5e16565b600082613b6d5750600061084a565b82820282848281613b7a57fe5b04146120a5576120a5613415600186865b606063e946c1bb60e01b8484846040516024016139fd93929190615460565b600081613bc057613bc061341560038585613b8b565b6000828481613bcb57fe5b04949350505050565b600082613be657613be6613415613c59565b811580613bf1575083155b15613bfe575060006120a5565b60008380613c0857fe5b8584099050613c1d858463ffffffff613b5e16565b613c2f826103e863ffffffff613b5e16565b101595945050505050565b606063339f3de260e01b8484846040516024016139fd9392919061573a565b60408051808201909152600481527fa791837c00000000000000000000000000000000000000000000000000000000602082015290565b604051806101c0016040528060006001600160a01b0316815260200160006001600160a01b0316815260200160006001600160a01b0316815260200160006001600160a01b03168152602001600081526020016000815260200160008152602001600081526020016000815260200160008152602001606081526020016060815260200160608152602001606081525090565b6040518060a0016040528060008152602001600081526020016000815260200160008152602001600081525090565b604080516060810182526000808252602082018190529181019190915290565b803561084a81615816565b805161084a81615816565b600082601f830112613d98578081fd5b8135613dab613da682615777565b615750565b818152915060208083019084810181840286018201871015613dcc57600080fd5b60005b84811015611dc7578135613de281615816565b84529282019290820190600101613dcf565b600082601f830112613e04578081fd5b8151613e12613da682615777565b8181529150602080830190840160005b83811015613e4f57613e3a8760208451890101614074565b83526020928301929190910190600101613e22565b5050505092915050565b600082601f830112613e69578081fd5b8135613e77613da682615777565b8181529150602080830190840160005b83811015613e4f57613e9f8760208435890101614026565b83526020928301929190910190600101613e87565b600082601f830112613ec4578081fd5b8151613ed2613da682615777565b8181529150602080830190840160005b83811015613e4f57613efa8760208451890101614209565b83526020928301929190910190600101613ee2565b600082601f830112613f1f578081fd5b8135613f2d613da682615777565b8181529150602080830190840160005b83811015613e4f57613f5587602084358901016140ba565b83526020928301929190910190600101613f3d565b600082601f830112613f7a578081fd5b8151613f88613da682615777565b818152915060208083019084810181840286018201871015613fa957600080fd5b60005b84811015611dc757815184529282019290820190600101613fac565b600082601f830112613fd8578081fd5b8135613fe6613da682615777565b81815291506020808301908481018184028601820187101561400757600080fd5b60005b84811015611dc75781358452928201929082019060010161400a565b600082601f830112614036578081fd5b8135614044613da682615797565b915080825283602082850101111561405b57600080fd5b8060208401602084013760009082016020015292915050565b600082601f830112614084578081fd5b8151614092613da682615797565b91508082528360208285010111156140a957600080fd5b611dcc8160208401602086016157bb565b60006101c08083850312156140cd578182fd5b6140d681615750565b9150506140e38383613d72565b81526140f28360208401613d72565b60208201526141048360408401613d72565b60408201526141168360608401613d72565b60608201526080820135608082015260a082013560a082015260c082013560c082015260e082013560e08201526101008083013581830152506101208083013581830152506101408083013567ffffffffffffffff8082111561417857600080fd5b61418486838701614026565b838501526101609250828501359150808211156141a057600080fd5b6141ac86838701614026565b838501526101809250828501359150808211156141c857600080fd5b6141d486838701614026565b838501526101a09250828501359150808211156141f057600080fd5b506141fd85828601614026565b82840152505092915050565b60006101c080838503121561421c578182fd5b61422581615750565b9150506142328383613d7d565b81526142418360208401613d7d565b60208201526142538360408401613d7d565b60408201526142658360608401613d7d565b60608201526080820151608082015260a082015160a082015260c082015160c082015260e082015160e08201526101008083015181830152506101208083015181830152506101408083015167ffffffffffffffff808211156142c757600080fd5b6142d386838701614074565b838501526101609250828501519150808211156142ef57600080fd5b6142fb86838701614074565b8385015261018092508285015191508082111561431757600080fd5b61432386838701614074565b838501526101a092508285015191508082111561433f57600080fd5b506141fd85828601614074565b805160ff8116811461084a57600080fd5b60006020828403121561436e578081fd5b81356120a581615816565b6000806040838503121561438b578081fd5b825161439681615816565b60208401519092506143a781615816565b809150509250929050565b6000806000606084860312156143c6578081fd5b83516143d181615816565b60208501519093506143e281615816565b80925050604084015190509250925092565b60008060008060808587031215614409578182fd5b845161441481615816565b602086015190945067ffffffffffffffff80821115614431578384fd5b61443d88838901614074565b94506040870151915080821115614452578384fd5b61445e88838901614074565b93506060870151915080821115614473578283fd5b5061448087828801614074565b91505092959194509250565b6000806040838503121561449e578182fd5b82356144a981615816565b9150602083013567ffffffffffffffff8111156144c4578182fd5b6144d085828601613e59565b9150509250929050565b600080600080608085870312156144ef578182fd5b84356144fa81615816565b9350602085013567ffffffffffffffff80821115614516578384fd5b61452288838901613fc8565b94506040870135915080821115614537578384fd5b61454388838901613fc8565b93506060870135915080821115614558578283fd5b5061448087828801614026565b60008060408385031215614577578182fd5b823561458281615816565b9150602083013567ffffffffffffffff81111561459d578182fd5b6144d085828601614026565b600080604083850312156145bb578182fd5b82356145c681615816565b946020939093013593505050565b6000602082840312156145e5578081fd5b813567ffffffffffffffff8111156145fb578182fd5b61399384828501613d88565b600060208284031215614618578081fd5b815167ffffffffffffffff81111561462e578182fd5b61399384828501613eb4565b60008060006060848603121561464e578081fd5b833567ffffffffffffffff80821115614665578283fd5b61467187838801613f0f565b94506020860135915080821115614686578283fd5b61469287838801613d88565b935060408601359150808211156146a7578283fd5b506146b486828701613fc8565b9150509250925092565b600080604083850312156146d0578182fd5b823567ffffffffffffffff808211156146e7578384fd5b6146f386838701613f0f565b93506020850135915080821115614708578283fd5b506144d085828601613e59565b600080600060608486031215614729578081fd5b835167ffffffffffffffff80821115614740578283fd5b61474c87838801613eb4565b94506020860151915080821115614761578283fd5b61476d87838801613f6a565b93506040860151915080821115614782578283fd5b506146b486828701613df4565b6000806000606084860312156147a3578081fd5b835167ffffffffffffffff808211156147ba578283fd5b6147c687838801613eb4565b9450602086015193506040860151915080821115614782578283fd5b600080604083850312156147f4578182fd5b823567ffffffffffffffff8082111561480b578384fd5b6146f386838701613fc8565b60008060408385031215614829578182fd5b825167ffffffffffffffff80821115614840578384fd5b61484c86838701613f6a565b93506020850151915080821115614861578283fd5b506144d085828601613df4565b60006020828403121561487f578081fd5b815180151581146120a5578182fd5b600080600080608085870312156148a3578182fd5b8451935060208501516148b581615816565b604086015190935067ffffffffffffffff80821115614452578384fd5b600080604083850312156148e4578182fd5b505080516020909101519092909150565b60008060408385031215614907578182fd5b82519150602083015167ffffffffffffffff811115614924578182fd5b6144d085828601614074565b600080600060608486031215614944578081fd5b83519250602084015167ffffffffffffffff80821115614962578283fd5b61496e87838801614074565b93506040860151915080821115614983578283fd5b506146b486828701614074565b600080604083850312156149a2578182fd5b8251915060208301516143a78161582b565b600080604083850312156149c6578182fd5b82516001600160e01b031981168114614396578283fd5b6000602082840312156149ee578081fd5b813567ffffffffffffffff811115614a04578182fd5b61399384828501614026565b60006060828403128015614a22578182fd5b8015614a2c578182fd5b50614a376060615750565b8251614a428161582b565b8152602083810151908201526040928301519281019290925250919050565b600060208284031215614a72578081fd5b815167ffffffffffffffff811115614a88578182fd5b61399384828501614209565b600080600060608486031215614aa8578081fd5b833567ffffffffffffffff811115614abe578182fd5b614aca868287016140ba565b9350506020840135614adb81615816565b929592945050506040919091013590565b60008060408385031215614afe578182fd5b823567ffffffffffffffff80821115614b15578384fd5b614b21868387016140ba565b93506020850135915080821115614b36578283fd5b506144d085828601614026565b60008060008060808587031215614b58578182fd5b845167ffffffffffffffff80821115614b6f578384fd5b614b7b88838901614209565b95506020870151915080821115614b90578384fd5b61443d88838901614209565b600080600060608486031215614bb0578081fd5b835167ffffffffffffffff80821115614bc7578283fd5b614bd387838801614209565b9450602086015193506040860151915080821115614983578283fd5b600060208284031215614c00578081fd5b5051919050565b60008060408385031215614c19578182fd5b8251614c248161582b565b6020939093015192949293505050565b600080600060608486031215614c48578081fd5b8351614c538161582b565b602085015160408601519194509250614c6b81615816565b809150509250925092565b60008060008060808587031215614c8b578182fd5b614c95868661434c565b9350602085015192506040850151614cac81615816565b606086015190925067ffffffffffffffff811115614cc8578182fd5b61448087828801614074565b600080600060608486031215614ce8578081fd5b614cf2858561434c565b925060208401519150604084015167ffffffffffffffff811115614d14578182fd5b6146b486828701614074565b600080600060608486031215614d34578081fd5b614d3e858561434c565b925060208401519150604084015190509250925092565b1515815260200190565b6000614d6b8383614e78565b505060600190565b6001600160a01b03169052565b6000815180845260208401935060208301825b82811015614dba5781516001600160a01b0316865260209586019590910190600101614d93565b5093949350505050565b600081518084526020840180819550602083028101915060208501845b84811015614e0f578284038852614df9848351614e4c565b6020988901989094509190910190600101614de1565b50919695505050505050565b6000815180845260208401935060208301825b82811015614dba578151865260209586019590910190600101614e2e565b60008151808452614e648160208601602086016157bb565b601f01601f19169290920160200192915050565b805160ff16825260208082015190830152604090810151910152565b60006101c0614ea4848451614d73565b6020830151614eb66020860182614d73565b506040830151614ec96040860182614d73565b506060830151614edc6060860182614d73565b506080830151608085015260a083015160a085015260c083015160c085015260e083015160e0850152610100808401518186015250610120808401518186015250610140808401518282870152614f3583870182614e4c565b91505061016091508184015185820383870152614f528282614e4c565b925050506101808084015185830382870152614f6e8382614e4c565b9150506101a091508184015185820383870152614f8b8282614e4c565b9695505050505050565b60008251614fa78184602087016157bb565b9190910192915050565b6001600160a01b0391909116815260200190565b6001600160a01b0392831681529116602082015260400190565b6001600160a01b039384168152919092166020820152604081019190915260600190565b60006001600160a01b0386168252608060208301526150256080830186614e1b565b82810360408401526150378186614e1b565b83810360608501526150498186614e4c565b98975050505050505050565b60006001600160a01b0386168252608060208301526150776080830186614e4c565b82810360408401526150378186614e4c565b6001600160a01b03929092168252602082015260400190565b6000608082526150b56080830187614dc4565b82810360208401526150c78187614d80565b83810360408501526150d98187614d80565b91505082810360608401526150ee8185614e1b565b979650505050505050565b602080825282518282018190526000918401906040840190835b8181101561513b5783516005811061512757fe5b835260209384019390920191600101615113565b509095945050505050565b6000606082016060835280865161515d8184615731565b9150602088019250835b8181101561518b5761517a838551614d5f565b602094909401939250600101615167565b5050838103602085015261519f8187614e1b565b91505082810360408401528084516151b78184615731565b9150602086019250835b818110156151e5576151d4838551614d55565b6020949094019392506001016151c1565b5090979650505050505050565b6000602082526120a56020830184614e1b565b6000604082526152186040830185614e1b565b828103602084015261522a8185614dc4565b95945050505050565b6000604082526152466040830185614e1b565b828103602084015261522a8185614e1b565b60008582526001600160a01b0385166020830152608060408301526152806080830185614e4c565b82810360608401526150ee8185614e4c565b918252602082015260400190565b6000838252604060208301526139936040830184614e4c565b6000848252606060208301526152d26060830185614e4c565b8281036040840152614f8b8185614e4c565b828152604081016152f48361580c565b8260208301529392505050565b6001600160e01b03199290921682526001600160a01b0316602082015260400190565b60006001600160e01b0319871682526001600160a01b038616602083015260a0604083015261535660a0830186614e1b565b82810360608401526153688186614e1b565b838103608085015261537a8186614e4c565b9998505050505050505050565b6001600160e01b03199390931683526001600160a01b03919091166020830152604082015260600190565b60006001600160e01b031985168252606060208301526153d56060830185614e1b565b8281036040840152614f8b8185614dc4565b6000602082526120a56020830184614e4c565b60006080825261540d6080830187614e4c565b6001600160a01b03958616602084015293909416604082015260ff9190911660609091015292915050565b6000615443856157eb565b8482528360208301526060604083015261522a6060830184614e4c565b6060810161546d856157f8565b938152602081019290925260409091015290565b6060810161548e85615802565b93815260208101929092526001600160a01b031660409091015290565b604081016154b8846157f8565b9281526020015290565b6060810161546d85615802565b606081016008851061546d57fe5b60208101600583106154eb57fe5b91905290565b60006154fc8661580c565b8582528460208301526001600160a01b038416604083015260806060830152614f8b6080830184614e4c565b604081016154b8846157eb565b6000608082526155486080830187614e4c565b602083820381850152818751808452828401915082838202850101838a01865b8381101561559657601f19878403018552615584838351614e94565b94860194925090850190600101615568565b505086810360408801526155aa818a614e1b565b94505050505082810360608401526150ee8185614dc4565b60208082526013908201527f554e4b4e4f574e5f52455455524e5f4441544100000000000000000000000000604082015260600190565b60208082526019908201527f554e4b4e4f574e5f46554e4354494f4e5f53454c4543544f5200000000000000604082015260600190565b6020808252600d908201527f554e494d504c454d454e54454400000000000000000000000000000000000000604082015260600190565b6020808252600c908201527f4241445f53454c4543544f520000000000000000000000000000000000000000604082015260600190565b6020808252600e908201527f57524f4e475f50524f58595f4944000000000000000000000000000000000000604082015260600190565b60a081016156e38286614e78565b8360608301528215156080830152949350505050565b6000602082526120a56020830184614e94565b60006040825261571f6040830185614e94565b828103602084015261522a8185614e4c565b90815260200190565b9283526020830191909152604082015260600190565b60405181810167ffffffffffffffff8111828210171561576f57600080fd5b604052919050565b600067ffffffffffffffff82111561578d578081fd5b5060209081020190565b600067ffffffffffffffff8211156157ad578081fd5b50601f01601f191660200190565b60005b838110156157d65781810151838201526020016157be565b838111156157e5576000848401525b50505050565b600281106157f557fe5b50565b600481106157f557fe5b600381106157f557fe5b600781106157f557fe5b6001600160a01b03811681146157f557600080fd5b60ff811681146157f557600080fdfea365627a7a723158200ea049525ebc74d73f3bf7858c601bd21168267b0dfb4abbdb7787cfd7233a2c6c6578706572696d656e74616cf564736f6c634300050c0040'; + '0x608060405234801561001057600080fd5b50600436106102c85760003560e01c80639a7e75261161017b578063cafd3a07116100d8578063d46950281161008c578063e4e6e7da11610071578063e4e6e7da14610711578063e77286eb14610732578063ee4f5a9414610754576102c8565b8063d4695028146106cf578063e25cabf7146106ef576102c8565b8063d186037f116100bd578063d186037f14610689578063d36379051461069c578063d3d862d1146106bc576102c8565b8063cafd3a0714610655578063d001c5dc14610676576102c8565b8063acaedc741161012f578063bbb2dcf611610114578063bbb2dcf6146105ef578063bc03f96414610611578063ca49f47c14610632576102c8565b8063acaedc74146105b9578063b43cffe1146105dc576102c8565b8063a0901e5111610160578063a0901e5114610573578063a5cd62ba14610586578063a6627e9f146105a6576102c8565b80639a7e75261461052c5780639eadc8351461054f576102c8565b806346eb65cb116102295780636f83188e116101dd5780637b66ad34116101c25780637b66ad34146104e55780637d727512146105065780638f4ce47914610519576102c8565b80636f83188e146104a15780637914b2ec146104c4576102c8565b8063590aa8751161020e578063590aa8751461044c57806363eb39921461046c578063651290421461047f576102c8565b806346eb65cb146104175780634dfdac201461042c576102c8565b8063314853ff1161028057806332aae3ad1161026557806332aae3ad146103b15780633db6dc61146103d3578063459be5e2146103f6576102c8565b8063314853ff1461037c578063327d30541461039e576102c8565b80630d7b7d76116102b15780630d7b7d7614610319578063165979e11461033a5780632322cf761461035c576102c8565b806302d0aec3146102cd57806304a5618a146102f7575b600080fd5b6102e06102db366004614f2d565b610776565b6040516102ee929190615836565b60405180910390f35b61030a610305366004614f2d565b6107d2565b6040516102ee93929190615931565b61032c610327366004614a5e565b610880565b6040516102ee9291906157e4565b61034d610348366004614f2d565b6108a2565b6040516102ee93929190615a6e565b61036f61036a366004614a5e565b6108ff565b6040516102ee9190615cdc565b61038f61038a366004614f2d565b610927565b6040516102ee9392919061580b565b61032c6103ac366004614f2d565b61096e565b6103c46103bf366004614f2d565b6109b0565b6040516102ee939291906159e2565b6103e66103e1366004614f2d565b610a03565b6040516102ee94939291906157aa565b610409610404366004614f2d565b610a4d565b6040516102ee929190615a56565b61042a610425366004614f2d565b610aa3565b005b61043f61043a366004614985565b610c36565b6040516102ee9190615744565b61045f61045a3660046147fe565b610cb9565b6040516102ee9190615991565b61045f61047a366004614aa2565b610d3d565b61049261048d366004614f2d565b610dc8565b6040516102ee93929190615511565b6104b46104af366004614f2d565b610e02565b6040516102ee9493929190615ae0565b6104d76104d2366004614f2d565b611943565b6040516102ee929190615868565b6104f86104f3366004614f2d565b61197b565b6040516102ee9291906154f7565b61036f610514366004614a5e565b6119b3565b6104d7610527366004614f2d565b6120c8565b61053f61053a366004614f2d565b612158565b6040516102ee9493929190615a9c565b61056261055d366004614f2d565b6121b9565b6040516102ee95949392919061588b565b61043f610581366004614b24565b612264565b610599610594366004614b8a565b6122dd565b6040516102ee919061565d565b61045f6105b4366004614af9565b6123a0565b6105cc6105c7366004614f2d565b612427565b6040516102ee94939291906155b9565b61045f6105ea3660046149d3565b612463565b6106026105fd366004614f2d565b6124f0565b6040516102ee9392919061595c565b61062461061f366004614f2d565b61259d565b6040516102ee9291906157f2565b610645610640366004614f2d565b6125d6565b6040516102ee94939291906158ee565b610668610663366004614f2d565b612687565b6040516102ee929190615ad3565b61043f610684366004614985565b6126d5565b61036f610697366004614a5e565b612743565b6106af6106aa366004614fe4565b612d86565b6040516102ee9190615a89565b61045f6106ca366004614d32565b613323565b6106e26106dd366004614f2d565b61335b565b6040516102ee9190615853565b6107026106fd366004614c0e565b6134a7565b6040516102ee939291906156a9565b61072461071f366004614985565b6135df565b6040516102ee929190615785565b61074561074036600461503c565b6135f8565b6040516102ee93929190615c80565b610767610762366004614f2d565b613832565b6040516102ee93929190615a2c565b60008061078a8361078561386f565b613893565b60006107a360048551866138ed9092919063ffffffff16565b8060200190516107b69190810190614ee0565b909350905060ff811660068111156107ca57fe5b915050915091565b600080806107e6848263ffffffff61393016565b92506001600160e01b031983167f025717920000000000000000000000000000000000000000000000000000000014610854576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161084b90615c49565b60405180910390fd5b61086584601063ffffffff61396416565b915061087884602463ffffffff61399716565b929491935050565b60008061088d84846119b3565b91506108998484612743565b90509250929050565b60008060006108b3846107856139a3565b60006108cc60048651876138ed9092919063ffffffff16565b8060200190516108df9190810190615270565b9094509250905060ff811660028111156108f557fe5b9350509193909250565b600080600061090e8585610880565b9150915061091c82826139c7565b925050505b92915050565b6000606080610938846107856139dd565b835161094e90859060049063ffffffff6138ed16565b8060200190516109619190810190614e80565b9196909550909350915050565b60008061097d83610785613a01565b825161099390849060049063ffffffff6138ed16565b8060200190516109a69190810190614e22565b9094909350915050565b60008060606109c184610785613a25565b60006109da60048651876138ed9092919063ffffffff16565b8060200190516109ed9190810190615224565b9094509250905060ff811660018111156108f557fe5b600080606080610a1585610785613a49565b8451610a2b90869060049063ffffffff6138ed16565b806020019051610a3e9190810190614dde565b92989197509550909350915050565b600080610a5c83610785613a6d565b6000610a7560048551866138ed9092919063ffffffff16565b806020019051610a889190810190615157565b9250905060ff81166003811115610a9b57fe5b925050915091565b6000610ab5828263ffffffff61393016565b90506001600160e01b031981167ff47261b0000000000000000000000000000000000000000000000000000000001415610af957610af2826120c8565b5050610c32565b6001600160e01b031981167f02571792000000000000000000000000000000000000000000000000000000001415610b3c57610b34826107d2565b505050610c32565b6001600160e01b031981167fa7cb5fb7000000000000000000000000000000000000000000000000000000001415610b8157610b77826121b9565b5050505050610c32565b6001600160e01b031981167f94cfcdd7000000000000000000000000000000000000000000000000000000001415610bbc57610b34826124f0565b6001600160e01b031981167fc339d10a000000000000000000000000000000000000000000000000000000001415610c0057610bf7826125d6565b50505050610c32565b6040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161084b90615c49565b5050565b606060008251905080604051908082528060200260200182016040528015610c68578160200160208202803883390190505b50915060005b818114610cb157610c9285858381518110610c8557fe5b6020026020010151612743565b838281518110610c9e57fe5b6020908102919091010152600101610c6e565b505092915050565b6040516060907ff47261b00000000000000000000000000000000000000000000000000000000090610cef9084906024016154e3565b60408051601f198184030181529190526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff166001600160e01b0319909316929092179091529050919050565b6040516060907fc339d10a0000000000000000000000000000000000000000000000000000000090610d7790869086908690602401615587565b60408051601f198184030181529190526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff166001600160e01b03199093169290921790915290505b9392505050565b6000806000610dd984610785613a91565b8351610def90859060049063ffffffff6138ed16565b8060200190516109619190810190614853565b60608080806000610e19868263ffffffff61393016565b90506001600160e01b031981167fdedfc1f1000000000000000000000000000000000000000000000000000000001415610e8a576040518060400160405280601181526020017f626174636843616e63656c4f72646572730000000000000000000000000000008152509450611419565b6001600160e01b031981167f9694a402000000000000000000000000000000000000000000000000000000001415610ef9576040518060400160405280600f81526020017f626174636846696c6c4f726465727300000000000000000000000000000000008152509450611419565b6001600160e01b031981167f8ea8dfe4000000000000000000000000000000000000000000000000000000001415610f68576040518060400160405280601681526020017f626174636846696c6c4f72646572734e6f5468726f77000000000000000000008152509450611419565b6001600160e01b031981167fbeee2e14000000000000000000000000000000000000000000000000000000001415610fd7576040518060400160405280601581526020017f626174636846696c6c4f724b696c6c4f726465727300000000000000000000008152509450611419565b6001600160e01b031981167f2da62987000000000000000000000000000000000000000000000000000000001415611046576040518060400160405280600b81526020017f63616e63656c4f726465720000000000000000000000000000000000000000008152509450611419565b6001600160e01b031981167f9b44d5560000000000000000000000000000000000000000000000000000000014156110b5576040518060400160405280600981526020017f66696c6c4f7264657200000000000000000000000000000000000000000000008152509450611419565b6001600160e01b031981167fe14b58c4000000000000000000000000000000000000000000000000000000001415611124576040518060400160405280600f81526020017f66696c6c4f724b696c6c4f7264657200000000000000000000000000000000008152509450611419565b6001600160e01b031981167f78d29ac1000000000000000000000000000000000000000000000000000000001415611193576040518060400160405280601681526020017f6d61726b65744275794f72646572734e6f5468726f77000000000000000000008152509450611419565b6001600160e01b031981167f369da099000000000000000000000000000000000000000000000000000000001415611202576040518060400160405280601781526020017f6d61726b657453656c6c4f72646572734e6f5468726f770000000000000000008152509450611419565b6001600160e01b031981167f8bc8efb3000000000000000000000000000000000000000000000000000000001415611271576040518060400160405280601981526020017f6d61726b65744275794f726465727346696c6c4f724b696c6c000000000000008152509450611419565b6001600160e01b031981167fa6c3bf330000000000000000000000000000000000000000000000000000000014156112e0576040518060400160405280601a81526020017f6d61726b657453656c6c4f726465727346696c6c4f724b696c6c0000000000008152509450611419565b6001600160e01b031981167f88ec79fb00000000000000000000000000000000000000000000000000000000141561134f576040518060400160405280600b81526020017f6d617463684f72646572730000000000000000000000000000000000000000008152509450611419565b6001600160e01b031981167f4f9559b10000000000000000000000000000000000000000000000000000000014806113b057506001600160e01b031981167f2280c91000000000000000000000000000000000000000000000000000000000145b156113e7576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161084b90615bdb565b6040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161084b90615ba4565b6001600160e01b031981167fdedfc1f10000000000000000000000000000000000000000000000000000000014156114be57855161146190879060049063ffffffff613ab516565b8060200190516114749190810190614b57565b604080516000808252602082019092529195505b50604080516000808252602082019092529194506114b6565b60608152602001906001900390816114a15790505b50915061193b565b6001600160e01b031981167fbeee2e1400000000000000000000000000000000000000000000000000000000148061151f57506001600160e01b031981167f9694a40200000000000000000000000000000000000000000000000000000000145b8061155357506001600160e01b031981167f8ea8dfe400000000000000000000000000000000000000000000000000000000145b1561156d5761156186613b35565b9195509350915061193b565b6001600160e01b031981167f2da629870000000000000000000000000000000000000000000000000000000014156116555760408051600180825281830190925290816020015b6115bc614131565b8152602001906001900390816115b457505086519094506115e790879060049063ffffffff613ab516565b8060200190516115fa9190810190614fb1565b8460008151811061160757fe5b602002602001018190525060006040519080825280602002602001820160405280156114885781602001602082028038833901905050604080516000808252602082019092529194506114b6565b6001600160e01b031981167fe14b58c40000000000000000000000000000000000000000000000000000000014806116b657506001600160e01b031981167f9b44d55600000000000000000000000000000000000000000000000000000000145b156116c45761156186613b64565b6001600160e01b031981167f78d29ac100000000000000000000000000000000000000000000000000000000148061172557506001600160e01b031981167f369da09900000000000000000000000000000000000000000000000000000000145b8061175957506001600160e01b031981167f8bc8efb300000000000000000000000000000000000000000000000000000000145b8061178d57506001600160e01b031981167fa6c3bf3300000000000000000000000000000000000000000000000000000000145b1561179b5761156186613c5e565b6001600160e01b031981167f88ec79fb00000000000000000000000000000000000000000000000000000000141561193b576117d5614131565b6117dd614131565b6060806117f760048b518c613ab59092919063ffffffff16565b80602001905161180a9190810190615093565b604080516002808252606082019092529498509296509094509250816020015b611832614131565b81526020019060019003908161182a579050509750838860008151811061185557fe5b6020026020010181905250828860018151811061186e57fe5b602090810291909101015260408051600280825260608201909252908160200160208202803883390190505096508360a00151876000815181106118ae57fe5b6020026020010181815250508260a00151876001815181106118cc57fe5b60209081029190910101526040805160028082526060820190925290816020015b60608152602001906001900390816118ed579050509550818660008151811061191257fe5b6020026020010181905250808660018151811061192b57fe5b6020026020010181905250505050505b509193509193565b60008061195283610785613cd2565b825161196890849060049063ffffffff6138ed16565b8060200190516109a69190810190614f04565b60008061198a83610785613cf6565b82516119a090849060049063ffffffff6138ed16565b8060200190516109a6919081019061481a565b6000806119c6838263ffffffff61393016565b90506001600160e01b031981167ff47261b0000000000000000000000000000000000000000000000000000000001415611b3b576000611a0d84601063ffffffff61396416565b6040519091506060907f70a082310000000000000000000000000000000000000000000000000000000090611a469088906024016154e3565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050905060006060836001600160a01b031683604051611ac191906154c7565b600060405180830381855afa9150503d8060008114611afc576040519150601f19603f3d011682016040523d82523d6000602084013e611b01565b606091505b5091509150818015611b14575080516020145b611b1f576000611b30565b611b3081600063ffffffff61399716565b9550505050506120c1565b6001600160e01b031981167f02571792000000000000000000000000000000000000000000000000000000001415611cd657600080611b79856107d2565b6040519194509250606091507f6352211e0000000000000000000000000000000000000000000000000000000090611bb5908490602401615cdc565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050905060006060846001600160a01b031683604051611c3091906154c7565b600060405180830381855afa9150503d8060008114611c6b576040519150601f19603f3d011682016040523d82523d6000602084013e611c70565b606091505b50915091506000828015611c85575081516020145b611c90576000611ca1565b611ca182600c63ffffffff61396416565b9050896001600160a01b0316816001600160a01b031614611cc3576000611cc6565b60015b60ff1697505050505050506120c1565b6001600160e01b031981167fa7cb5fb7000000000000000000000000000000000000000000000000000000001415611eb9576000606080611d16866121b9565b5081519296509094509250905060005b818114611eaf5783516060907efdd58e00000000000000000000000000000000000000000000000000000000908b90879085908110611d6157fe5b6020026020010151604051602401611d7a9291906155ed565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050905060006060876001600160a01b031683604051611df591906154c7565b600060405180830381855afa9150503d8060008114611e30576040519150601f19603f3d011682016040523d82523d6000602084013e611e35565b606091505b50915091506000828015611e4a575081516020145b611e55576000611e66565b611e6682600063ffffffff61399716565b90506000878681518110611e7657fe5b60200260200101518281611e8657fe5b0490508b811080611e9557508b155b15611e9e57809b505b505060019093019250611d26915050565b50505050506120c1565b6001600160e01b031981167fc339d10a00000000000000000000000000000000000000000000000000000000141561200a576040516060907fa85e59e40000000000000000000000000000000000000000000000000000000090611f28908690600090819081906024016159a4565b60408051601f198184030181529181526020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff166001600160e01b03199094169390931790925260045491519092506000916001600160a01b031690611f8f9084906154c7565b600060405180830381855afa9150503d8060008114611fca576040519150601f19603f3d011682016040523d82523d6000602084013e611fcf565b606091505b5050905080611fdf576000612001565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff5b935050506120c1565b6001600160e01b031981167f94cfcdd70000000000000000000000000000000000000000000000000000000014156120c157606080612048856124f0565b80519194509250905060005b8181146120bc57600061207a8985848151811061206d57fe5b60200260200101516119b3565b9050600085838151811061208a57fe5b6020026020010151828161209a57fe5b049050878110806120a9575087155b156120b2578097505b5050600101612054565b505050505b5092915050565b6000806120db838263ffffffff61393016565b91506001600160e01b031982167ff47261b00000000000000000000000000000000000000000000000000000000014612140576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161084b90615c49565b61215183601063ffffffff61396416565b9050915091565b6000806000606061216b85610785613d1a565b600061218460048751886138ed9092919063ffffffff16565b80602001905161219791908101906151c6565b91965094509250905060ff811660068111156121af57fe5b9450509193509193565b600080606080806121d0868563ffffffff61393016565b94506001600160e01b031985167fa7cb5fb70000000000000000000000000000000000000000000000000000000014612235576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161084b90615c49565b505050506024828101516044840151606485015160848601519496929591820184019490820184019391010190565b6060808251604051908082528060200260200182016040528015612292578160200160208202803883390190505b50905060005b835181146120c1578381815181106122ac57fe5b60200260200101516001600160a01b0316318282815181106122ca57fe5b6020908102919091010152600101612298565b60606000845190508060405190808252806020026020018201604052801561230f578160200160208202803883390190505b50915060005b8181146123975761236086828151811061232b57fe5b602002602001015186838151811061233f57fe5b602002602001015186848151811061235357fe5b6020026020010151612d86565b83828151811061236c57fe5b6020026020010190600481111561237f57fe5b9081600481111561238c57fe5b905250600101612315565b50509392505050565b6040516060907f0257179200000000000000000000000000000000000000000000000000000000906123d890859085906024016155ed565b60408051601f198184030181529190526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff166001600160e01b031990931692909217909152905092915050565b6000606080606061243a85610785613d3e565b845161245090869060049063ffffffff6138ed16565b806020019051610a3e91908101906148ed565b6040516060907fa7cb5fb7000000000000000000000000000000000000000000000000000000009061249f908790879087908790602401615535565b60408051601f198184030181529190526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff166001600160e01b0319909316929092179091529050949350505050565b6000606080612505848463ffffffff61393016565b92506001600160e01b031983167f94cfcdd7000000000000000000000000000000000000000000000000000000001461256a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161084b90615c49565b835161258090859060049063ffffffff613ab516565b8060200190516125939190810190614d67565b9395909450915050565b600060606125ad83610785613d62565b82516125c390849060049063ffffffff6138ed16565b8060200190516109a69190810190614e45565b6000806060816125ec858263ffffffff61393016565b93506001600160e01b031984167fc339d10a0000000000000000000000000000000000000000000000000000000014612651576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161084b90615c49565b845161266790869060049063ffffffff613ab516565b80602001905161267a9190810190614895565b9597919650949350915050565b60008061269683610785613d86565b60006126af60048551866138ed9092919063ffffffff16565b8060200190516126c29190810190615157565b9250905060ff81166001811115610a9b57fe5b606060008251905080604051908082528060200260200182016040528015612707578160200160208202803883390190505b50915060005b818114610cb1576127248585838151811061206d57fe5b83828151811061273057fe5b602090810291909101015260010161270d565b600080612756838263ffffffff61393016565b90506001600160e01b031981167f94cfcdd700000000000000000000000000000000000000000000000000000000141561280857606080612796856124f0565b80519194509250905060005b8181146127fd5760006127bb89858481518110610c8557fe5b905060008583815181106127cb57fe5b602002602001015182816127db57fe5b049050878110806127ea575087155b156127f3578097505b50506001016127a2565b506109219350505050565b6001600160e01b031981167ff47261b000000000000000000000000000000000000000000000000000000000141561289357600061284d84601063ffffffff61396416565b6001546040519192506060917fdd62ed3e0000000000000000000000000000000000000000000000000000000091611a469189916001600160a01b0316906024016154f7565b6001600160e01b031981167f02571792000000000000000000000000000000000000000000000000000000001415612b83576000806128d1856107d2565b600254604051929550909350606092507fe985e9c5000000000000000000000000000000000000000000000000000000009161291d918a916001600160a01b03909116906024016154f7565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050905060006060846001600160a01b03168360405161299891906154c7565b600060405180830381855afa9150503d80600081146129d3576040519150601f19603f3d011682016040523d82523d6000602084013e6129d8565b606091505b50915091508115806129ec57508051602014155b80612a085750612a0381600063ffffffff61399716565b600114155b15612b56576040516060907f081812fc0000000000000000000000000000000000000000000000000000000090612a43908790602401615cdc565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff83818316178352505050509050856001600160a01b031681604051612aba91906154c7565b600060405180830381855afa9150503d8060008114612af5576040519150601f19603f3d011682016040523d82523d6000602084013e612afa565b606091505b509093509150828015612b0e575081516020145b8015612b3d57506002546001600160a01b0316612b3283600c63ffffffff61396416565b6001600160a01b0316145b612b48576000612b4b565b60015b60ff16975050611eaf565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff965050505050506120c1565b6001600160e01b031981167fa7cb5fb7000000000000000000000000000000000000000000000000000000001415612d2b576000612bc0846121b9565b5050600354604051929450606093507fe985e9c50000000000000000000000000000000000000000000000000000000092612c0a925089916001600160a01b0316906024016154f7565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050905060006060836001600160a01b031683604051612c8591906154c7565b600060405180830381855afa9150503d8060008114612cc0576040519150601f19603f3d011682016040523d82523d6000602084013e612cc5565b606091505b5091509150818015612cd8575080516020145b8015612cf45750612cf081600063ffffffff61399716565b6001145b612cff576000611b30565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff9550505050506120c1565b6001600160e01b031981167fc339d10a0000000000000000000000000000000000000000000000000000000014156120c157507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff9392505050565b6000612d906141c4565b612e218584600560009054906101000a90046001600160a01b03166001600160a01b0316631ce4c78b6040518163ffffffff1660e01b815260040160206040518083038186803b158015612de357600080fd5b505afa158015612df7573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250612e1b919081019061513f565b3a613daa565b60408051600480825260a0820190925291925060609190816020015b6060815260200190600190039081612e3d57505060408051600480825260a082019092529192506060919060208201608080388339505060408051600480825260a08201909252929350606092915060208201608080388339505060408051600480825260a0820190925292935060609291506020820160808038833901905050905088610160015184600081518110612ed357fe5b60200260200101819052508783600081518110612eec57fe5b60200260200101906001600160a01b031690816001600160a01b031681525050886000015182600081518110612f1e57fe5b60200260200101906001600160a01b031690816001600160a01b0316815250508681600081518110612f4c57fe5b60200260200101818152505088610140015184600181518110612f6b57fe5b6020026020010181905250886000015183600181518110612f8857fe5b60200260200101906001600160a01b031690816001600160a01b0316815250508782600181518110612fb657fe5b60200260200101906001600160a01b031690816001600160a01b031681525050846000015181600181518110612fe857fe5b602002602001018181525050886101a001518460028151811061300757fe5b6020026020010181905250878360028151811061302057fe5b60200260200101906001600160a01b031690816001600160a01b03168152505088604001518260028151811061305257fe5b60200260200101906001600160a01b031690816001600160a01b03168152505084606001518160028151811061308457fe5b602002602001018181525050886101800151846003815181106130a357fe5b60200260200101819052508860000151836003815181106130c057fe5b60200260200101906001600160a01b031690816001600160a01b0316815250508860400151826003815181106130f257fe5b60200260200101906001600160a01b031690816001600160a01b03168152505084604001518160038151811061312457fe5b60209081029190910101526040516060907fb04fbddd000000000000000000000000000000000000000000000000000000009061316b908790879087908790602401615606565b60408051601f198184030181529181526020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff166001600160e01b03199094169390931790925260055491519092506060916001600160a01b0316906131d29084906154c7565b6000604051808303816000865af19150503d806000811461320f576040519150601f19603f3d011682016040523d82523d6000602084013e613214565b606091505b5091506000905061322b828263ffffffff61393016565b9050613235613a25565b6001600160e01b031982811691161415613277576000613254836109b0565b5091505060ff8116600481111561326757fe5b9950505050505050505050610dc1565b61327f6139dd565b6001600160e01b0319828116911614156132b257600061329e83610927565b509091505060ff8116600481111561326757fe5b815160208301207ff43f26ea5a94b478394a975e856464913dc1a8a1ca70939d974aa7c238aa0ce014156132f157600498505050505050505050610dc1565b6040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161084b90615b6d565b6040516060907f94cfcdd700000000000000000000000000000000000000000000000000000000906123d89085908590602401615757565b600061336d828263ffffffff61393016565b90506001600160e01b031981167ff47261b00000000000000000000000000000000000000000000000000000000014806133d057506001600160e01b031981167f0257179200000000000000000000000000000000000000000000000000000000145b8061340457506001600160e01b031981167fa7cb5fb700000000000000000000000000000000000000000000000000000000145b8061343857506001600160e01b031981167f94cfcdd700000000000000000000000000000000000000000000000000000000145b8061346c57506001600160e01b031981167fc339d10a00000000000000000000000000000000000000000000000000000000145b6134a2576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161084b90615c49565b919050565b6060806060600085519050806040519080825280602002602001820160405280156134ec57816020015b6134d96141f3565b8152602001906001900390816134d15790505b50935080604051908082528060200260200182016040528015613519578160200160208202803883390190505b50925080604051908082528060200260200182016040528015613546578160200160208202803883390190505b50915060005b8181146135d65761358387828151811061356257fe5b602002602001015187838151811061357657fe5b60200260200101516135f8565b875188908590811061359157fe5b602002602001018785815181106135a457fe5b602002602001018786815181106135b757fe5b931515602094850291909101909301929092529190525260010161354c565b50509250925092565b6060806135ec84846126d5565b91506108998484610c36565b6136006141f3565b600080546040517f9d3fa4b900000000000000000000000000000000000000000000000000000000815282916001600160a01b031690639d3fa4b99061364a908890600401615ca4565b60606040518083038186803b15801561366257600080fd5b505afa158015613676573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525061369a9190810190614f60565b85516000546040517fa12dcc6f00000000000000000000000000000000000000000000000000000000815292955090916001600160a01b039091169063a12dcc6f906136ec9089908990600401615cb7565b60206040518083038186803b15801561370457600080fd5b505afa158015613718573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525061373c9190810190614dbe565b9150600061374f828861014001516108ff565b60a088015160c08901516101808a01516101408b01519394509192909160009161377e9163ffffffff613e2116565b156137ab576137a48461379e848d60800151613e4690919063ffffffff16565b85613e62565b9050613804565b816137bf576137a4848b6080015185613e62565b60006137d0868c61018001516108ff565b905060006137e3868d6080015187613e62565b905060006137f2838688613e62565b90506137fe82826139c7565b93505050505b61382461381e896040015185613e8c90919063ffffffff16565b826139c7565b965050505050509250925092565b600080600061384384610785613eab565b600061385c60048651876138ed9092919063ffffffff16565b8060200190516108df9190810190615184565b7ffdb6ca8d0000000000000000000000000000000000000000000000000000000090565b60006138a0836000613930565b90506001600160e01b0319808216908316146138e8576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161084b90615c12565b505050565b60608183111561390b5761390b61390660008585613ecf565b613eee565b8351821115613924576139246139066001848751613ecf565b50819003910190815290565b60008160040183511015613951576139516139066003855185600401613ecf565b5001602001516001600160e01b03191690565b60008160140183511015613985576139856139066004855185601401613ecf565b5001601401516001600160a01b031690565b6000610dc18383613ef6565b7f18e4b1410000000000000000000000000000000000000000000000000000000090565b60008183106139d65781610dc1565b5090919050565b7f4678472b0000000000000000000000000000000000000000000000000000000090565b7fb6555d6f0000000000000000000000000000000000000000000000000000000090565b7f488219a60000000000000000000000000000000000000000000000000000000090565b7f1b8388f70000000000000000000000000000000000000000000000000000000090565b7fe94a7ed00000000000000000000000000000000000000000000000000000000090565b7f4ad312750000000000000000000000000000000000000000000000000000000090565b606081831115613ace57613ace61390660008585613ecf565b8351821115613ae757613ae76139066001848751613ecf565b8282036040519080825280601f01601f191660200182016040528015613b14576020820181803883390190505b509050610dc1613b2382613f20565b84613b2d87613f20565b018351613f26565b6060806060613b516004855186613ab59092919063ffffffff16565b8060200190516109619190810190614c65565b60408051600180825281830190925260609182918291816020015b613b87614131565b815260200190600190039081613b7f5750506040805160018082528183019092529194506020808301908038833901905050604080516001808252818301909252919350816020015b6060815260200190600190039081613bd05750508451909150613bfd90859060049063ffffffff613ab516565b806020019051613c1091908101906150ec565b85600081518110613c1d57fe5b6020026020010185600081518110613c3157fe5b6020026020010185600081518110613c4557fe5b6020908102919091010192909252919052529193909250565b604080516001808252818301909252606091829182916020808301908038833950508551919350613c9a9186915060049063ffffffff613ab516565b806020019051613cad9190810190614cdf565b84518590600090613cba57fe5b60209081029190910101919091529095929450925050565b7f11c7b7200000000000000000000000000000000000000000000000000000000090565b7fa15c0d060000000000000000000000000000000000000000000000000000000090565b7f7e5a23180000000000000000000000000000000000000000000000000000000090565b7f5bd0428d0000000000000000000000000000000000000000000000000000000090565b7f20d11f610000000000000000000000000000000000000000000000000000000090565b7ff59851840000000000000000000000000000000000000000000000000000000090565b613db26141c4565b6020810184905260a08501516080860151613dce918691613fcb565b815260a085015160c0860151613de5918691613fcb565b604082015260a085015160e0860151613dff918691613fcb565b6060820152613e14828463ffffffff613fff16565b6080820152949350505050565b600081518351148015610dc15750508051602091820120825192909101919091201490565b600082820183811015610dc157610dc16139066000868661402c565b6000613e8483613e78868563ffffffff613fff16565b9063ffffffff61404b16565b949350505050565b600082821115613ea557613ea56139066002858561402c565b50900390565b7fe53c76c80000000000000000000000000000000000000000000000000000000090565b6060632800659560e01b848484604051602401610d7793929190615a7b565b805160208201fd5b60008160200183511015613f1757613f176139066005855185602001613ecf565b50016020015190565b60200190565b6020811015613f50576001816020036101000a0380198351168185511680821786525050506138e8565b82821415613f5d576138e8565b82821115613f975760208103905080820181840181515b82851015613f8f578451865260209586019590940193613f74565b9052506138e8565b60208103905080820181840183515b81861215613fc25782518252601f199283019290910190613fa6565b85525050505050565b6000613fd8848484614075565b15613feb57613feb6139068585856140db565b613e8483613e78868563ffffffff613fff16565b60008261400e57506000610921565b8282028284828161401b57fe5b0414610dc157610dc1613906600186865b606063e946c1bb60e01b848484604051602401610d7793929190615a0a565b600081614061576140616139066003858561402c565b600082848161406c57fe5b04949350505050565b600082614087576140876139066140fa565b811580614092575083155b1561409f57506000610dc1565b600083806140a957fe5b85840990506140be858463ffffffff613fff16565b6140d0826103e863ffffffff613fff16565b101595945050505050565b606063339f3de260e01b848484604051602401610d7793929190615ce5565b60408051808201909152600481527fa791837c00000000000000000000000000000000000000000000000000000000602082015290565b604051806101c0016040528060006001600160a01b0316815260200160006001600160a01b0316815260200160006001600160a01b0316815260200160006001600160a01b03168152602001600081526020016000815260200160008152602001600081526020016000815260200160008152602001606081526020016060815260200160608152602001606081525090565b6040518060a0016040528060008152602001600081526020016000815260200160008152602001600081525090565b604080516060810182526000808252602082018190529181019190915290565b803561092181615dc1565b805161092181615dc1565b600082601f830112614239578081fd5b813561424c61424782615d22565b615cfb565b81815291506020808301908481018184028601820187101561426d57600080fd5b60005b848110156120bc57813561428381615dc1565b84529282019290820190600101614270565b600082601f8301126142a5578081fd5b81516142b361424782615d22565b8181529150602080830190840160005b838110156142f0576142db8760208451890101614515565b835260209283019291909101906001016142c3565b5050505092915050565b600082601f83011261430a578081fd5b813561431861424782615d22565b8181529150602080830190840160005b838110156142f05761434087602084358901016144c7565b83526020928301929190910190600101614328565b600082601f830112614365578081fd5b815161437361424782615d22565b8181529150602080830190840160005b838110156142f05761439b87602084518901016146aa565b83526020928301929190910190600101614383565b600082601f8301126143c0578081fd5b81356143ce61424782615d22565b8181529150602080830190840160005b838110156142f0576143f6876020843589010161455b565b835260209283019291909101906001016143de565b600082601f83011261441b578081fd5b815161442961424782615d22565b81815291506020808301908481018184028601820187101561444a57600080fd5b60005b848110156120bc5781518452928201929082019060010161444d565b600082601f830112614479578081fd5b813561448761424782615d22565b8181529150602080830190848101818402860182018710156144a857600080fd5b60005b848110156120bc578135845292820192908201906001016144ab565b600082601f8301126144d7578081fd5b81356144e561424782615d42565b91508082528360208285010111156144fc57600080fd5b8060208401602084013760009082016020015292915050565b600082601f830112614525578081fd5b815161453361424782615d42565b915080825283602082850101111561454a57600080fd5b6120c1816020840160208601615d66565b60006101c080838503121561456e578182fd5b61457781615cfb565b9150506145848383614213565b81526145938360208401614213565b60208201526145a58360408401614213565b60408201526145b78360608401614213565b60608201526080820135608082015260a082013560a082015260c082013560c082015260e082013560e08201526101008083013581830152506101208083013581830152506101408083013567ffffffffffffffff8082111561461957600080fd5b614625868387016144c7565b8385015261016092508285013591508082111561464157600080fd5b61464d868387016144c7565b8385015261018092508285013591508082111561466957600080fd5b614675868387016144c7565b838501526101a092508285013591508082111561469157600080fd5b5061469e858286016144c7565b82840152505092915050565b60006101c08083850312156146bd578182fd5b6146c681615cfb565b9150506146d3838361421e565b81526146e2836020840161421e565b60208201526146f4836040840161421e565b6040820152614706836060840161421e565b60608201526080820151608082015260a082015160a082015260c082015160c082015260e082015160e08201526101008083015181830152506101208083015181830152506101408083015167ffffffffffffffff8082111561476857600080fd5b61477486838701614515565b8385015261016092508285015191508082111561479057600080fd5b61479c86838701614515565b838501526101809250828501519150808211156147b857600080fd5b6147c486838701614515565b838501526101a09250828501519150808211156147e057600080fd5b5061469e85828601614515565b805160ff8116811461092157600080fd5b60006020828403121561480f578081fd5b8135610dc181615dc1565b6000806040838503121561482c578081fd5b825161483781615dc1565b602084015190925061484881615dc1565b809150509250929050565b600080600060608486031215614867578081fd5b835161487281615dc1565b602085015190935061488381615dc1565b80925050604084015190509250925092565b6000806000606084860312156148a9578081fd5b83516148b481615dc1565b602085015190935067ffffffffffffffff8111156148d0578182fd5b6148dc86828701614515565b925050604084015190509250925092565b60008060008060808587031215614902578182fd5b845161490d81615dc1565b602086015190945067ffffffffffffffff8082111561492a578384fd5b61493688838901614515565b9450604087015191508082111561494b578384fd5b61495788838901614515565b9350606087015191508082111561496c578283fd5b5061497987828801614515565b91505092959194509250565b60008060408385031215614997578182fd5b82356149a281615dc1565b9150602083013567ffffffffffffffff8111156149bd578182fd5b6149c9858286016142fa565b9150509250929050565b600080600080608085870312156149e8578182fd5b84356149f381615dc1565b9350602085013567ffffffffffffffff80821115614a0f578384fd5b614a1b88838901614469565b94506040870135915080821115614a30578384fd5b614a3c88838901614469565b93506060870135915080821115614a51578283fd5b50614979878288016144c7565b60008060408385031215614a70578182fd5b8235614a7b81615dc1565b9150602083013567ffffffffffffffff811115614a96578182fd5b6149c9858286016144c7565b600080600060608486031215614ab6578081fd5b8335614ac181615dc1565b9250602084013567ffffffffffffffff811115614adc578182fd5b614ae8868287016144c7565b925050604084013590509250925092565b60008060408385031215614b0b578182fd5b8235614b1681615dc1565b946020939093013593505050565b600060208284031215614b35578081fd5b813567ffffffffffffffff811115614b4b578182fd5b613e8484828501614229565b600060208284031215614b68578081fd5b815167ffffffffffffffff811115614b7e578182fd5b613e8484828501614355565b600080600060608486031215614b9e578081fd5b833567ffffffffffffffff80821115614bb5578283fd5b614bc1878388016143b0565b94506020860135915080821115614bd6578283fd5b614be287838801614229565b93506040860135915080821115614bf7578283fd5b50614c0486828701614469565b9150509250925092565b60008060408385031215614c20578182fd5b823567ffffffffffffffff80821115614c37578384fd5b614c43868387016143b0565b93506020850135915080821115614c58578283fd5b506149c9858286016142fa565b600080600060608486031215614c79578081fd5b835167ffffffffffffffff80821115614c90578283fd5b614c9c87838801614355565b94506020860151915080821115614cb1578283fd5b614cbd8783880161440b565b93506040860151915080821115614cd2578283fd5b50614c0486828701614295565b600080600060608486031215614cf3578081fd5b835167ffffffffffffffff80821115614d0a578283fd5b614d1687838801614355565b9450602086015193506040860151915080821115614cd2578283fd5b60008060408385031215614d44578182fd5b823567ffffffffffffffff80821115614d5b578384fd5b614c4386838701614469565b60008060408385031215614d79578182fd5b825167ffffffffffffffff80821115614d90578384fd5b614d9c8683870161440b565b93506020850151915080821115614db1578283fd5b506149c985828601614295565b600060208284031215614dcf578081fd5b81518015158114610dc1578182fd5b60008060008060808587031215614df3578182fd5b845193506020850151614e0581615dc1565b604086015190935067ffffffffffffffff8082111561494b578384fd5b60008060408385031215614e34578182fd5b505080516020909101519092909150565b60008060408385031215614e57578182fd5b82519150602083015167ffffffffffffffff811115614e74578182fd5b6149c985828601614515565b600080600060608486031215614e94578081fd5b83519250602084015167ffffffffffffffff80821115614eb2578283fd5b614ebe87838801614515565b93506040860151915080821115614ed3578283fd5b50614c0486828701614515565b60008060408385031215614ef2578182fd5b82519150602083015161484881615dd6565b60008060408385031215614f16578182fd5b82516001600160e01b031981168114614837578283fd5b600060208284031215614f3e578081fd5b813567ffffffffffffffff811115614f54578182fd5b613e84848285016144c7565b60006060828403128015614f72578182fd5b8015614f7c578182fd5b50614f876060615cfb565b614f9184846147ed565b815260208301516020820152604083015160408201528091505092915050565b600060208284031215614fc2578081fd5b815167ffffffffffffffff811115614fd8578182fd5b613e84848285016146aa565b600080600060608486031215614ff8578081fd5b833567ffffffffffffffff81111561500e578182fd5b61501a8682870161455b565b935050602084013561502b81615dc1565b929592945050506040919091013590565b6000806040838503121561504e578182fd5b823567ffffffffffffffff80821115615065578384fd5b6150718683870161455b565b93506020850135915080821115615086578283fd5b506149c9858286016144c7565b600080600080608085870312156150a8578182fd5b845167ffffffffffffffff808211156150bf578384fd5b6150cb888389016146aa565b955060208701519150808211156150e0578384fd5b614936888389016146aa565b600080600060608486031215615100578081fd5b835167ffffffffffffffff80821115615117578283fd5b615123878388016146aa565b9450602086015193506040860151915080821115614ed3578283fd5b600060208284031215615150578081fd5b5051919050565b60008060408385031215615169578182fd5b825161517481615dd6565b6020939093015192949293505050565b600080600060608486031215615198578081fd5b83516151a381615dd6565b6020850151604086015191945092506151bb81615dc1565b809150509250925092565b600080600080608085870312156151db578182fd5b6151e586866147ed565b93506020850151925060408501516151fc81615dc1565b606086015190925067ffffffffffffffff811115615218578182fd5b61497987828801614515565b600080600060608486031215615238578081fd5b61524285856147ed565b925060208401519150604084015167ffffffffffffffff811115615264578182fd5b614c0486828701614515565b600080600060608486031215615284578081fd5b61528e85856147ed565b925060208401519150604084015190509250925092565b6001600160a01b03169052565b6000815180845260208401935060208301825b828110156152ec5781516001600160a01b03168652602095860195909101906001016152c5565b5093949350505050565b600081518084526020840180819550602083028101915060208501845b8481101561534157828403885261532b84835161537e565b6020988901989094509190910190600101615313565b50919695505050505050565b6000815180845260208401935060208301825b828110156152ec578151865260209586019590910190600101615360565b60008151808452615396816020860160208601615d66565b601f01601f19169290920160200192915050565b805160ff16825260208082015190830152604090810151910152565b60006101c06153d68484516152a5565b60208301516153e860208601826152a5565b5060408301516153fb60408601826152a5565b50606083015161540e60608601826152a5565b506080830151608085015260a083015160a085015260c083015160c085015260e083015160e08501526101008084015181860152506101208084015181860152506101408084015182828701526154678387018261537e565b91505061016091508184015185820383870152615484828261537e565b9250505061018080840151858303828701526154a0838261537e565b9150506101a0915081840151858203838701526154bd828261537e565b9695505050505050565b600082516154d9818460208701615d66565b9190910192915050565b6001600160a01b0391909116815260200190565b6001600160a01b0392831681529116602082015260400190565b6001600160a01b039384168152919092166020820152604081019190915260600190565b60006001600160a01b038616825260806020830152615557608083018661534d565b8281036040840152615569818661534d565b838103606085015261557b818661537e565b98975050505050505050565b60006001600160a01b0385168252606060208301526155a9606083018561537e565b9050826040830152949350505050565b60006001600160a01b0386168252608060208301526155db608083018661537e565b8281036040840152615569818661537e565b6001600160a01b03929092168252602082015260400190565b60006080825261561960808301876152f6565b828103602084015261562b81876152b2565b838103604085015261563d81876152b2565b9150508281036060840152615652818561534d565b979650505050505050565b602080825282518282018190526000918401906040840190835b8181101561569e57835161568a81615db7565b835260209384019390920191600101615677565b509095945050505050565b606080825284519082018190526000906020906080840190828801845b828110156156ec576156d98483516153aa565b60609390930192908401906001016156c6565b50505083810382850152615700818761534d565b84810360408601528551808252908301915082860190845b81811015615736578251151584529284019291840191600101615718565b509198975050505050505050565b600060208252610dc1602083018461534d565b60006040825261576a604083018561534d565b828103602084015261577c81856152f6565b95945050505050565b600060408252615798604083018561534d565b828103602084015261577c818561534d565b60008582526001600160a01b0385166020830152608060408301526157d2608083018561537e565b8281036060840152615652818561537e565b918252602082015260400190565b600083825260406020830152613e84604083018461537e565b600084825260606020830152615824606083018561537e565b82810360408401526154bd818561537e565b8281526040810161584683615dad565b8260208301529392505050565b6001600160e01b031991909116815260200190565b6001600160e01b03199290921682526001600160a01b0316602082015260400190565b60006001600160e01b0319871682526001600160a01b038616602083015260a060408301526158bd60a083018661534d565b82810360608401526158cf818661534d565b83810360808501526158e1818661537e565b9998505050505050505050565b60006001600160e01b0319861682526001600160a01b038516602083015260806040830152615920608083018561537e565b905082606083015295945050505050565b6001600160e01b03199390931683526001600160a01b03919091166020830152604082015260600190565b60006001600160e01b0319851682526060602083015261597f606083018561534d565b82810360408401526154bd81856152f6565b600060208252610dc1602083018461537e565b6000608082526159b7608083018761537e565b6001600160a01b03958616602084015293909416604082015260ff9190911660609091015292915050565b60006159ed85615d96565b8482528360208301526060604083015261577c606083018461537e565b6060810160048510615a1857fe5b938152602081019290925260409091015290565b60608101615a3985615da3565b93815260208101929092526001600160a01b031660409091015290565b6040810160048410615a6457fe5b9281526020015290565b60608101615a1885615da3565b6060810160088510615a1857fe5b60208101615a9683615db7565b91905290565b6000615aa786615dad565b8582528460208301526001600160a01b0384166040830152608060608301526154bd608083018461537e565b60408101615a6484615d96565b600060808252615af3608083018761537e565b602083820381850152818751808452828401915082838202850101838a01865b83811015615b4157601f19878403018552615b2f8383516153c6565b94860194925090850190600101615b13565b50508681036040880152615b55818a61534d565b945050505050828103606084015261565281856152f6565b60208082526013908201527f554e4b4e4f574e5f52455455524e5f4441544100000000000000000000000000604082015260600190565b60208082526019908201527f554e4b4e4f574e5f46554e4354494f4e5f53454c4543544f5200000000000000604082015260600190565b6020808252600d908201527f554e494d504c454d454e54454400000000000000000000000000000000000000604082015260600190565b6020808252600c908201527f4241445f53454c4543544f520000000000000000000000000000000000000000604082015260600190565b6020808252600e908201527f57524f4e475f50524f58595f4944000000000000000000000000000000000000604082015260600190565b60a08101615c8e82866153aa565b8360608301528215156080830152949350505050565b600060208252610dc160208301846153c6565b600060408252615cca60408301856153c6565b828103602084015261577c818561537e565b90815260200190565b9283526020830191909152604082015260600190565b60405181810167ffffffffffffffff81118282101715615d1a57600080fd5b604052919050565b600067ffffffffffffffff821115615d38578081fd5b5060209081020190565b600067ffffffffffffffff821115615d58578081fd5b50601f01601f191660200190565b60005b83811015615d81578181015183820152602001615d69565b83811115615d90576000848401525b50505050565b60028110615da057fe5b50565b60038110615da057fe5b60078110615da057fe5b60058110615da057fe5b6001600160a01b0381168114615da057600080fd5b60ff81168114615da057600080fdfea365627a7a723158209bd08114ba2e3dada6fb089e11dba7dc3bfedf454a0bac82e7a05d67b08360dd6c6578706572696d656e74616cf564736f6c634300050c0040'; private readonly _methodABIIndex: { [name: string]: number } = {}; public static async deployFrom0xArtifactAsync( artifact: ContractArtifact | SimpleContractArtifact, @@ -186,6 +186,25 @@ export class DevUtilsContract extends BaseContract { stateMutability: 'pure', type: 'function', }, + { + constant: true, + inputs: [ + { + name: 'assetData', + type: 'bytes', + }, + ], + name: 'decodeAssetProxyId', + outputs: [ + { + name: 'assetProxyId', + type: 'bytes4', + }, + ], + payable: false, + stateMutability: 'pure', + type: 'function', + }, { constant: true, inputs: [ @@ -591,6 +610,37 @@ export class DevUtilsContract extends BaseContract { stateMutability: 'pure', type: 'function', }, + { + constant: true, + inputs: [ + { + name: 'assetData', + type: 'bytes', + }, + ], + name: 'decodeStaticCallAssetData', + outputs: [ + { + name: 'assetProxyId', + type: 'bytes4', + }, + { + name: 'staticCallTargetAddress', + type: 'address', + }, + { + name: 'staticCallData', + type: 'bytes', + }, + { + name: 'expectedReturnDataHash', + type: 'bytes32', + }, + ], + payable: false, + stateMutability: 'pure', + type: 'function', + }, { constant: true, inputs: [ @@ -822,6 +872,33 @@ export class DevUtilsContract extends BaseContract { stateMutability: 'pure', type: 'function', }, + { + constant: true, + inputs: [ + { + name: 'staticCallTargetAddress', + type: 'address', + }, + { + name: 'staticCallData', + type: 'bytes', + }, + { + name: 'expectedReturnDataHash', + type: 'bytes32', + }, + ], + name: 'encodeStaticCallAssetData', + outputs: [ + { + name: 'assetData', + type: 'bytes', + }, + ], + payable: false, + stateMutability: 'pure', + type: 'function', + }, { constant: true, inputs: [ @@ -1386,6 +1463,20 @@ export class DevUtilsContract extends BaseContract { stateMutability: 'view', type: 'function', }, + { + constant: true, + inputs: [ + { + name: 'assetData', + type: 'bytes', + }, + ], + name: 'revertIfInvalidAssetData', + outputs: [], + payable: false, + stateMutability: 'pure', + type: 'function', + }, ] as ContractAbi; return abi; } @@ -1510,6 +1601,50 @@ export class DevUtilsContract extends BaseContract { }, }; } + /** + * Decode AssetProxy identifier + * @param assetData AssetProxy-compliant asset data describing an ERC-20, ERC- + * 721, ERC1155, or MultiAsset asset. + * @returns The AssetProxy identifier + */ + public decodeAssetProxyId(assetData: string): ContractFunctionObj { + const self = (this as any) as DevUtilsContract; + assert.isString('assetData', assetData); + + return { + async callAsync(callData: Partial = {}, defaultBlock?: BlockParam): Promise { + assert.doesConformToSchema('callData', callData, schemas.callDataSchema, [ + schemas.addressSchema, + schemas.numberSchema, + schemas.jsNumber, + ]); + if (defaultBlock !== undefined) { + assert.isBlockParam('defaultBlock', defaultBlock); + } + const encodedData = self._strictEncodeArguments('decodeAssetProxyId(bytes)', [assetData]); + let rawCallResult; + + const encodedDataBytes = Buffer.from(encodedData.substr(2), 'hex'); + try { + rawCallResult = await self._evmExecAsync(encodedDataBytes); + } catch (err) { + BaseContract._throwIfThrownErrorIsRevertError(err); + throw err; + } + + BaseContract._throwIfCallResultIsRevertError(rawCallResult); + const abiEncoder = self._lookupAbiEncoder('decodeAssetProxyId(bytes)'); + // tslint:disable boolean-naming + const result = abiEncoder.strictDecodeReturnValue(rawCallResult); + // tslint:enable boolean-naming + return result; + }, + getABIEncodedTransactionData(): string { + const abiEncodedTransactionData = self._strictEncodeArguments('decodeAssetProxyId(bytes)', [assetData]); + return abiEncodedTransactionData; + }, + }; + } /** * Decompose an ABI-encoded AssetProxyTransferError. * @param encoded ABI-encoded revert error. @@ -1662,7 +1797,7 @@ export class DevUtilsContract extends BaseContract { /** * Decode ERC-20 asset data from the format described in the AssetProxy contract specification. * @param assetData AssetProxy-compliant asset data describing an ERC-20 asset. - * @returns The ERC-20 AssetProxy identifier, and the address of the ERC-20 contract hosting this asset. + * @returns The AssetProxy identifier, and the address of the ERC-20 contract hosting this asset. */ public decodeERC20AssetData(assetData: string): ContractFunctionObj<[string, string]> { const self = (this as any) as DevUtilsContract; @@ -2221,6 +2356,55 @@ export class DevUtilsContract extends BaseContract { }, }; } + /** + * Decode StaticCall asset data from the format described in the AssetProxy contract specification. + * @param assetData AssetProxy-compliant asset data describing a StaticCall + * asset + * @returns 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. + */ + public decodeStaticCallAssetData(assetData: string): ContractFunctionObj<[string, string, string, string]> { + const self = (this as any) as DevUtilsContract; + assert.isString('assetData', assetData); + + return { + async callAsync( + callData: Partial = {}, + defaultBlock?: BlockParam, + ): Promise<[string, string, string, string]> { + assert.doesConformToSchema('callData', callData, schemas.callDataSchema, [ + schemas.addressSchema, + schemas.numberSchema, + schemas.jsNumber, + ]); + if (defaultBlock !== undefined) { + assert.isBlockParam('defaultBlock', defaultBlock); + } + const encodedData = self._strictEncodeArguments('decodeStaticCallAssetData(bytes)', [assetData]); + let rawCallResult; + + const encodedDataBytes = Buffer.from(encodedData.substr(2), 'hex'); + try { + rawCallResult = await self._evmExecAsync(encodedDataBytes); + } catch (err) { + BaseContract._throwIfThrownErrorIsRevertError(err); + throw err; + } + + BaseContract._throwIfCallResultIsRevertError(rawCallResult); + const abiEncoder = self._lookupAbiEncoder('decodeStaticCallAssetData(bytes)'); + // tslint:disable boolean-naming + const result = abiEncoder.strictDecodeReturnValue<[string, string, string, string]>(rawCallResult); + // tslint:enable boolean-naming + return result; + }, + getABIEncodedTransactionData(): string { + const abiEncodedTransactionData = self._strictEncodeArguments('decodeStaticCallAssetData(bytes)', [ + assetData, + ]); + return abiEncodedTransactionData; + }, + }; + } /** * Decompose an ABI-encoded TransactionError. * @param encoded ABI-encoded revert error. @@ -2645,6 +2829,66 @@ export class DevUtilsContract extends BaseContract { }, }; } + /** + * Encode StaticCall asset data into the format described in the AssetProxy contract specification. + * @param staticCallTargetAddress Target address of StaticCall. + * @param staticCallData Data that will be passed to staticCallTargetAddress in + * the StaticCall. + * @param expectedReturnDataHash Expected Keccak-256 hash of the StaticCall + * return data. + * @returns AssetProxy-compliant asset data describing the set of assets. + */ + public encodeStaticCallAssetData( + staticCallTargetAddress: string, + staticCallData: string, + expectedReturnDataHash: string, + ): ContractFunctionObj { + const self = (this as any) as DevUtilsContract; + assert.isString('staticCallTargetAddress', staticCallTargetAddress); + assert.isString('staticCallData', staticCallData); + assert.isString('expectedReturnDataHash', expectedReturnDataHash); + + return { + async callAsync(callData: Partial = {}, defaultBlock?: BlockParam): Promise { + assert.doesConformToSchema('callData', callData, schemas.callDataSchema, [ + schemas.addressSchema, + schemas.numberSchema, + schemas.jsNumber, + ]); + if (defaultBlock !== undefined) { + assert.isBlockParam('defaultBlock', defaultBlock); + } + const encodedData = self._strictEncodeArguments('encodeStaticCallAssetData(address,bytes,bytes32)', [ + staticCallTargetAddress.toLowerCase(), + staticCallData, + expectedReturnDataHash, + ]); + let rawCallResult; + + const encodedDataBytes = Buffer.from(encodedData.substr(2), 'hex'); + try { + rawCallResult = await self._evmExecAsync(encodedDataBytes); + } catch (err) { + BaseContract._throwIfThrownErrorIsRevertError(err); + throw err; + } + + BaseContract._throwIfCallResultIsRevertError(rawCallResult); + const abiEncoder = self._lookupAbiEncoder('encodeStaticCallAssetData(address,bytes,bytes32)'); + // tslint:disable boolean-naming + const result = abiEncoder.strictDecodeReturnValue(rawCallResult); + // tslint:enable boolean-naming + return result; + }, + getABIEncodedTransactionData(): string { + const abiEncodedTransactionData = self._strictEncodeArguments( + 'encodeStaticCallAssetData(address,bytes,bytes32)', + [staticCallTargetAddress.toLowerCase(), staticCallData, expectedReturnDataHash], + ); + return abiEncodedTransactionData; + }, + }; + } /** * 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. * @param ownerAddress Owner of the assets specified by assetData. @@ -3643,6 +3887,46 @@ export class DevUtilsContract extends BaseContract { }, }; } + public revertIfInvalidAssetData(assetData: string): ContractFunctionObj { + const self = (this as any) as DevUtilsContract; + assert.isString('assetData', assetData); + + return { + async callAsync(callData: Partial = {}, defaultBlock?: BlockParam): Promise { + assert.doesConformToSchema('callData', callData, schemas.callDataSchema, [ + schemas.addressSchema, + schemas.numberSchema, + schemas.jsNumber, + ]); + if (defaultBlock !== undefined) { + assert.isBlockParam('defaultBlock', defaultBlock); + } + const encodedData = self._strictEncodeArguments('revertIfInvalidAssetData(bytes)', [assetData]); + let rawCallResult; + + const encodedDataBytes = Buffer.from(encodedData.substr(2), 'hex'); + try { + rawCallResult = await self._evmExecAsync(encodedDataBytes); + } catch (err) { + BaseContract._throwIfThrownErrorIsRevertError(err); + throw err; + } + + BaseContract._throwIfCallResultIsRevertError(rawCallResult); + const abiEncoder = self._lookupAbiEncoder('revertIfInvalidAssetData(bytes)'); + // tslint:disable boolean-naming + const result = abiEncoder.strictDecodeReturnValue(rawCallResult); + // tslint:enable boolean-naming + return result; + }, + getABIEncodedTransactionData(): string { + const abiEncodedTransactionData = self._strictEncodeArguments('revertIfInvalidAssetData(bytes)', [ + assetData, + ]); + return abiEncodedTransactionData; + }, + }; + } constructor( address: string, diff --git a/packages/abi-gen-wrappers/src/generated-wrappers/dutch_auction.ts b/packages/abi-gen-wrappers/src/generated-wrappers/dutch_auction.ts deleted file mode 100644 index 9d37da2bac..0000000000 --- a/packages/abi-gen-wrappers/src/generated-wrappers/dutch_auction.ts +++ /dev/null @@ -1,857 +0,0 @@ -// tslint:disable:no-consecutive-blank-lines ordered-imports align trailing-comma enum-naming -// tslint:disable:whitespace no-unbound-method no-trailing-whitespace -// tslint:disable:no-unused-variable -import { - AwaitTransactionSuccessOpts, - ContractFunctionObj, - ContractTxFunctionObj, - SendTransactionOpts, - BaseContract, - PromiseWithTransactionHash, - methodAbiToFunctionSignature, -} from '@0x/base-contract'; -import { schemas } from '@0x/json-schemas'; -import { - BlockParam, - BlockParamLiteral, - BlockRange, - CallData, - ContractAbi, - ContractArtifact, - DecodedLogArgs, - MethodAbi, - TransactionReceiptWithDecodedLogs, - TxData, - TxDataPayable, - SupportedProvider, -} from 'ethereum-types'; -import { BigNumber, classUtils, logUtils, providerUtils } from '@0x/utils'; -import { EventCallback, IndexedFilterValues, SimpleContractArtifact } from '@0x/types'; -import { Web3Wrapper } from '@0x/web3-wrapper'; -import { assert } from '@0x/assert'; -import * as ethers from 'ethers'; -// tslint:enable:no-unused-variable - -/* istanbul ignore next */ -// tslint:disable:no-parameter-reassignment -// tslint:disable-next-line:class-name -export class DutchAuctionContract extends BaseContract { - /** - * @ignore - */ - public static deployedBytecode: string | undefined; - private readonly _methodABIIndex: { [name: string]: number } = {}; - public static async deployFrom0xArtifactAsync( - artifact: ContractArtifact | SimpleContractArtifact, - supportedProvider: SupportedProvider, - txDefaults: Partial, - logDecodeDependencies: { [contractName: string]: ContractArtifact | SimpleContractArtifact }, - _exchange: string, - ): Promise { - assert.doesConformToSchema('txDefaults', txDefaults, schemas.txDataSchema, [ - schemas.addressSchema, - schemas.numberSchema, - schemas.jsNumber, - ]); - if (artifact.compilerOutput === undefined) { - throw new Error('Compiler output not found in the artifact file'); - } - const provider = providerUtils.standardizeOrThrow(supportedProvider); - const bytecode = artifact.compilerOutput.evm.bytecode.object; - const abi = artifact.compilerOutput.abi; - const logDecodeDependenciesAbiOnly: { [contractName: string]: ContractAbi } = {}; - if (Object.keys(logDecodeDependencies) !== undefined) { - for (const key of Object.keys(logDecodeDependencies)) { - logDecodeDependenciesAbiOnly[key] = logDecodeDependencies[key].compilerOutput.abi; - } - } - return DutchAuctionContract.deployAsync( - bytecode, - abi, - provider, - txDefaults, - logDecodeDependenciesAbiOnly, - _exchange, - ); - } - public static async deployAsync( - bytecode: string, - abi: ContractAbi, - supportedProvider: SupportedProvider, - txDefaults: Partial, - logDecodeDependencies: { [contractName: string]: ContractAbi }, - _exchange: string, - ): Promise { - assert.isHexString('bytecode', bytecode); - assert.doesConformToSchema('txDefaults', txDefaults, schemas.txDataSchema, [ - schemas.addressSchema, - schemas.numberSchema, - schemas.jsNumber, - ]); - const provider = providerUtils.standardizeOrThrow(supportedProvider); - const constructorAbi = BaseContract._lookupConstructorAbi(abi); - [_exchange] = BaseContract._formatABIDataItemList( - constructorAbi.inputs, - [_exchange], - BaseContract._bigNumberToString, - ); - const iface = new ethers.utils.Interface(abi); - const deployInfo = iface.deployFunction; - const txData = deployInfo.encode(bytecode, [_exchange]); - const web3Wrapper = new Web3Wrapper(provider); - const txDataWithDefaults = await BaseContract._applyDefaultsToTxDataAsync( - { data: txData }, - txDefaults, - web3Wrapper.estimateGasAsync.bind(web3Wrapper), - ); - const txHash = await web3Wrapper.sendTransactionAsync(txDataWithDefaults); - logUtils.log(`transactionHash: ${txHash}`); - const txReceipt = await web3Wrapper.awaitTransactionSuccessAsync(txHash); - logUtils.log(`DutchAuction successfully deployed at ${txReceipt.contractAddress}`); - const contractInstance = new DutchAuctionContract( - txReceipt.contractAddress as string, - provider, - txDefaults, - logDecodeDependencies, - ); - contractInstance.constructorArgs = [_exchange]; - return contractInstance; - } - - /** - * @returns The contract ABI - */ - public static ABI(): ContractAbi { - const abi = [ - { - constant: false, - inputs: [ - { - name: 'order', - type: 'tuple', - components: [ - { - name: 'makerAddress', - type: 'address', - }, - { - name: 'takerAddress', - type: 'address', - }, - { - name: 'feeRecipientAddress', - type: 'address', - }, - { - name: 'senderAddress', - type: 'address', - }, - { - name: 'makerAssetAmount', - type: 'uint256', - }, - { - name: 'takerAssetAmount', - type: 'uint256', - }, - { - name: 'makerFee', - type: 'uint256', - }, - { - name: 'takerFee', - type: 'uint256', - }, - { - name: 'expirationTimeSeconds', - type: 'uint256', - }, - { - name: 'salt', - type: 'uint256', - }, - { - name: 'makerAssetData', - type: 'bytes', - }, - { - name: 'takerAssetData', - type: 'bytes', - }, - ], - }, - ], - name: 'getAuctionDetails', - outputs: [ - { - name: 'auctionDetails', - type: 'tuple', - components: [ - { - name: 'beginTimeSeconds', - type: 'uint256', - }, - { - name: 'endTimeSeconds', - type: 'uint256', - }, - { - name: 'beginAmount', - type: 'uint256', - }, - { - name: 'endAmount', - type: 'uint256', - }, - { - name: 'currentAmount', - type: 'uint256', - }, - { - name: 'currentTimeSeconds', - type: 'uint256', - }, - ], - }, - ], - payable: false, - stateMutability: 'nonpayable', - type: 'function', - }, - { - constant: false, - inputs: [ - { - name: 'buyOrder', - type: 'tuple', - components: [ - { - name: 'makerAddress', - type: 'address', - }, - { - name: 'takerAddress', - type: 'address', - }, - { - name: 'feeRecipientAddress', - type: 'address', - }, - { - name: 'senderAddress', - type: 'address', - }, - { - name: 'makerAssetAmount', - type: 'uint256', - }, - { - name: 'takerAssetAmount', - type: 'uint256', - }, - { - name: 'makerFee', - type: 'uint256', - }, - { - name: 'takerFee', - type: 'uint256', - }, - { - name: 'expirationTimeSeconds', - type: 'uint256', - }, - { - name: 'salt', - type: 'uint256', - }, - { - name: 'makerAssetData', - type: 'bytes', - }, - { - name: 'takerAssetData', - type: 'bytes', - }, - ], - }, - { - name: 'sellOrder', - type: 'tuple', - components: [ - { - name: 'makerAddress', - type: 'address', - }, - { - name: 'takerAddress', - type: 'address', - }, - { - name: 'feeRecipientAddress', - type: 'address', - }, - { - name: 'senderAddress', - type: 'address', - }, - { - name: 'makerAssetAmount', - type: 'uint256', - }, - { - name: 'takerAssetAmount', - type: 'uint256', - }, - { - name: 'makerFee', - type: 'uint256', - }, - { - name: 'takerFee', - type: 'uint256', - }, - { - name: 'expirationTimeSeconds', - type: 'uint256', - }, - { - name: 'salt', - type: 'uint256', - }, - { - name: 'makerAssetData', - type: 'bytes', - }, - { - name: 'takerAssetData', - type: 'bytes', - }, - ], - }, - { - name: 'buySignature', - type: 'bytes', - }, - { - name: 'sellSignature', - type: 'bytes', - }, - ], - name: 'matchOrders', - outputs: [ - { - name: 'matchedFillResults', - type: 'tuple', - components: [ - { - name: 'left', - type: 'tuple', - components: [ - { - name: 'makerAssetFilledAmount', - type: 'uint256', - }, - { - name: 'takerAssetFilledAmount', - type: 'uint256', - }, - { - name: 'makerFeePaid', - type: 'uint256', - }, - { - name: 'takerFeePaid', - type: 'uint256', - }, - ], - }, - { - name: 'right', - type: 'tuple', - components: [ - { - name: 'makerAssetFilledAmount', - type: 'uint256', - }, - { - name: 'takerAssetFilledAmount', - type: 'uint256', - }, - { - name: 'makerFeePaid', - type: 'uint256', - }, - { - name: 'takerFeePaid', - type: 'uint256', - }, - ], - }, - { - name: 'leftMakerAssetSpreadAmount', - type: 'uint256', - }, - ], - }, - ], - payable: false, - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [ - { - name: '_exchange', - type: 'address', - }, - ], - outputs: [], - payable: false, - stateMutability: 'nonpayable', - type: 'constructor', - }, - ] as ContractAbi; - return abi; - } - - public getFunctionSignature(methodName: string): string { - const index = this._methodABIIndex[methodName]; - const methodAbi = DutchAuctionContract.ABI()[index] as MethodAbi; // tslint:disable-line:no-unnecessary-type-assertion - const functionSignature = methodAbiToFunctionSignature(methodAbi); - return functionSignature; - } - public getABIDecodedTransactionData(methodName: string, callData: string): T { - const functionSignature = this.getFunctionSignature(methodName); - const self = (this as any) as DutchAuctionContract; - const abiEncoder = self._lookupAbiEncoder(functionSignature); - const abiDecodedCallData = abiEncoder.strictDecode(callData); - return abiDecodedCallData; - } - public getABIDecodedReturnData(methodName: string, callData: string): T { - const functionSignature = this.getFunctionSignature(methodName); - const self = (this as any) as DutchAuctionContract; - const abiEncoder = self._lookupAbiEncoder(functionSignature); - const abiDecodedCallData = abiEncoder.strictDecodeReturnValue(callData); - return abiDecodedCallData; - } - public getSelector(methodName: string): string { - const functionSignature = this.getFunctionSignature(methodName); - const self = (this as any) as DutchAuctionContract; - const abiEncoder = self._lookupAbiEncoder(functionSignature); - return abiEncoder.getSelector(); - } - - /** - * Calculates the Auction Details for the given order - * @param order The sell order - * @returns AuctionDetails - */ - public getAuctionDetails(order: { - makerAddress: string; - takerAddress: string; - feeRecipientAddress: string; - senderAddress: string; - makerAssetAmount: BigNumber; - takerAssetAmount: BigNumber; - makerFee: BigNumber; - takerFee: BigNumber; - expirationTimeSeconds: BigNumber; - salt: BigNumber; - makerAssetData: string; - takerAssetData: string; - }): ContractTxFunctionObj<{ - beginTimeSeconds: BigNumber; - endTimeSeconds: BigNumber; - beginAmount: BigNumber; - endAmount: BigNumber; - currentAmount: BigNumber; - currentTimeSeconds: BigNumber; - }> { - const self = (this as any) as DutchAuctionContract; - - return { - async sendTransactionAsync( - txData?: Partial | undefined, - opts: SendTransactionOpts = { shouldValidate: true }, - ): Promise { - const encodedData = self._strictEncodeArguments( - 'getAuctionDetails((address,address,address,address,uint256,uint256,uint256,uint256,uint256,uint256,bytes,bytes))', - [order], - ); - const txDataWithDefaults = await BaseContract._applyDefaultsToTxDataAsync( - { - to: self.address, - ...txData, - data: encodedData, - }, - self._web3Wrapper.getContractDefaults(), - ); - if (txDataWithDefaults.from !== undefined) { - txDataWithDefaults.from = txDataWithDefaults.from.toLowerCase(); - } - - if (opts.shouldValidate !== false) { - await this.callAsync(txDataWithDefaults); - } - - const txHash = await self._web3Wrapper.sendTransactionAsync(txDataWithDefaults); - return txHash; - }, - awaitTransactionSuccessAsync( - txData?: Partial, - opts: AwaitTransactionSuccessOpts = { shouldValidate: true }, - ): PromiseWithTransactionHash { - const txHashPromise = this.sendTransactionAsync(txData, opts); - return new PromiseWithTransactionHash( - txHashPromise, - (async (): Promise => { - // When the transaction hash resolves, wait for it to be mined. - return self._web3Wrapper.awaitTransactionSuccessAsync( - await txHashPromise, - opts.pollingIntervalMs, - opts.timeoutMs, - ); - })(), - ); - }, - async estimateGasAsync(txData?: Partial | undefined): Promise { - const encodedData = self._strictEncodeArguments( - 'getAuctionDetails((address,address,address,address,uint256,uint256,uint256,uint256,uint256,uint256,bytes,bytes))', - [order], - ); - const txDataWithDefaults = await BaseContract._applyDefaultsToTxDataAsync( - { - to: self.address, - ...txData, - data: encodedData, - }, - self._web3Wrapper.getContractDefaults(), - ); - if (txDataWithDefaults.from !== undefined) { - txDataWithDefaults.from = txDataWithDefaults.from.toLowerCase(); - } - - const gas = await self._web3Wrapper.estimateGasAsync(txDataWithDefaults); - return gas; - }, - async callAsync( - callData: Partial = {}, - defaultBlock?: BlockParam, - ): Promise<{ - beginTimeSeconds: BigNumber; - endTimeSeconds: BigNumber; - beginAmount: BigNumber; - endAmount: BigNumber; - currentAmount: BigNumber; - currentTimeSeconds: BigNumber; - }> { - assert.doesConformToSchema('callData', callData, schemas.callDataSchema, [ - schemas.addressSchema, - schemas.numberSchema, - schemas.jsNumber, - ]); - if (defaultBlock !== undefined) { - assert.isBlockParam('defaultBlock', defaultBlock); - } - const encodedData = self._strictEncodeArguments( - 'getAuctionDetails((address,address,address,address,uint256,uint256,uint256,uint256,uint256,uint256,bytes,bytes))', - [order], - ); - let rawCallResult; - - const callDataWithDefaults = await BaseContract._applyDefaultsToTxDataAsync( - { - to: self.address, - ...callData, - data: encodedData, - }, - self._web3Wrapper.getContractDefaults(), - ); - callDataWithDefaults.from = callDataWithDefaults.from - ? callDataWithDefaults.from.toLowerCase() - : callDataWithDefaults.from; - try { - rawCallResult = await self._web3Wrapper.callAsync(callDataWithDefaults, defaultBlock); - } catch (err) { - BaseContract._throwIfThrownErrorIsRevertError(err); - throw err; - } - - BaseContract._throwIfCallResultIsRevertError(rawCallResult); - const abiEncoder = self._lookupAbiEncoder( - 'getAuctionDetails((address,address,address,address,uint256,uint256,uint256,uint256,uint256,uint256,bytes,bytes))', - ); - // tslint:disable boolean-naming - const result = abiEncoder.strictDecodeReturnValue<{ - beginTimeSeconds: BigNumber; - endTimeSeconds: BigNumber; - beginAmount: BigNumber; - endAmount: BigNumber; - currentAmount: BigNumber; - currentTimeSeconds: BigNumber; - }>(rawCallResult); - // tslint:enable boolean-naming - return result; - }, - getABIEncodedTransactionData(): string { - const abiEncodedTransactionData = self._strictEncodeArguments( - 'getAuctionDetails((address,address,address,address,uint256,uint256,uint256,uint256,uint256,uint256,bytes,bytes))', - [order], - ); - return abiEncodedTransactionData; - }, - }; - } - /** - * Matches the buy and sell orders at an amount given the following: the current block time, the auction - * start time and the auction begin amount. The sell order is a an order at the lowest amount - * at the end of the auction. Excess from the match is transferred to the seller. - * Over time the price moves from beginAmount to endAmount given the current block.timestamp. - * sellOrder.expiryTimeSeconds is the end time of the auction. - * sellOrder.takerAssetAmount is the end amount of the auction (lowest possible amount). - * sellOrder.makerAssetData is the ABI encoded Asset Proxy data with the following data appended - * buyOrder.makerAssetData is the buyers bid on the auction, must meet the amount for the current block timestamp - * (uint256 beginTimeSeconds, uint256 beginAmount). - * This function reverts in the following scenarios: - * * Auction has not started (auctionDetails.currentTimeSeconds < auctionDetails.beginTimeSeconds) - * * Auction has expired (auctionDetails.endTimeSeconds < auctionDetails.currentTimeSeconds) - * * Amount is invalid: Buy order amount is too low (buyOrder.makerAssetAmount < auctionDetails.currentAmount) - * * Amount is invalid: Invalid begin amount (auctionDetails.beginAmount > auctionDetails.endAmount) - * * Any failure in the 0x Match Orders - * @param buyOrder The Buyer's order. This order is for the current expected - * price of the auction. - * @param sellOrder The Seller's order. This order is for the lowest amount (at - * the end of the auction). - * @param buySignature Proof that order was created by the buyer. - * @param sellSignature Proof that order was created by the seller. - * @returns matchedFillResults amounts filled and fees paid by maker and taker of matched orders. - */ - public matchOrders( - buyOrder: { - makerAddress: string; - takerAddress: string; - feeRecipientAddress: string; - senderAddress: string; - makerAssetAmount: BigNumber; - takerAssetAmount: BigNumber; - makerFee: BigNumber; - takerFee: BigNumber; - expirationTimeSeconds: BigNumber; - salt: BigNumber; - makerAssetData: string; - takerAssetData: string; - }, - sellOrder: { - makerAddress: string; - takerAddress: string; - feeRecipientAddress: string; - senderAddress: string; - makerAssetAmount: BigNumber; - takerAssetAmount: BigNumber; - makerFee: BigNumber; - takerFee: BigNumber; - expirationTimeSeconds: BigNumber; - salt: BigNumber; - makerAssetData: string; - takerAssetData: string; - }, - buySignature: string, - sellSignature: string, - ): ContractTxFunctionObj<{ - left: { - makerAssetFilledAmount: BigNumber; - takerAssetFilledAmount: BigNumber; - makerFeePaid: BigNumber; - takerFeePaid: BigNumber; - }; - right: { - makerAssetFilledAmount: BigNumber; - takerAssetFilledAmount: BigNumber; - makerFeePaid: BigNumber; - takerFeePaid: BigNumber; - }; - leftMakerAssetSpreadAmount: BigNumber; - }> { - const self = (this as any) as DutchAuctionContract; - - assert.isString('buySignature', buySignature); - assert.isString('sellSignature', sellSignature); - - return { - async sendTransactionAsync( - txData?: Partial | undefined, - opts: SendTransactionOpts = { shouldValidate: true }, - ): Promise { - const encodedData = self._strictEncodeArguments( - 'matchOrders((address,address,address,address,uint256,uint256,uint256,uint256,uint256,uint256,bytes,bytes),(address,address,address,address,uint256,uint256,uint256,uint256,uint256,uint256,bytes,bytes),bytes,bytes)', - [buyOrder, sellOrder, buySignature, sellSignature], - ); - const txDataWithDefaults = await BaseContract._applyDefaultsToTxDataAsync( - { - to: self.address, - ...txData, - data: encodedData, - }, - self._web3Wrapper.getContractDefaults(), - ); - if (txDataWithDefaults.from !== undefined) { - txDataWithDefaults.from = txDataWithDefaults.from.toLowerCase(); - } - - if (opts.shouldValidate !== false) { - await this.callAsync(txDataWithDefaults); - } - - const txHash = await self._web3Wrapper.sendTransactionAsync(txDataWithDefaults); - return txHash; - }, - awaitTransactionSuccessAsync( - txData?: Partial, - opts: AwaitTransactionSuccessOpts = { shouldValidate: true }, - ): PromiseWithTransactionHash { - const txHashPromise = this.sendTransactionAsync(txData, opts); - return new PromiseWithTransactionHash( - txHashPromise, - (async (): Promise => { - // When the transaction hash resolves, wait for it to be mined. - return self._web3Wrapper.awaitTransactionSuccessAsync( - await txHashPromise, - opts.pollingIntervalMs, - opts.timeoutMs, - ); - })(), - ); - }, - async estimateGasAsync(txData?: Partial | undefined): Promise { - const encodedData = self._strictEncodeArguments( - 'matchOrders((address,address,address,address,uint256,uint256,uint256,uint256,uint256,uint256,bytes,bytes),(address,address,address,address,uint256,uint256,uint256,uint256,uint256,uint256,bytes,bytes),bytes,bytes)', - [buyOrder, sellOrder, buySignature, sellSignature], - ); - const txDataWithDefaults = await BaseContract._applyDefaultsToTxDataAsync( - { - to: self.address, - ...txData, - data: encodedData, - }, - self._web3Wrapper.getContractDefaults(), - ); - if (txDataWithDefaults.from !== undefined) { - txDataWithDefaults.from = txDataWithDefaults.from.toLowerCase(); - } - - const gas = await self._web3Wrapper.estimateGasAsync(txDataWithDefaults); - return gas; - }, - async callAsync( - callData: Partial = {}, - defaultBlock?: BlockParam, - ): Promise<{ - left: { - makerAssetFilledAmount: BigNumber; - takerAssetFilledAmount: BigNumber; - makerFeePaid: BigNumber; - takerFeePaid: BigNumber; - }; - right: { - makerAssetFilledAmount: BigNumber; - takerAssetFilledAmount: BigNumber; - makerFeePaid: BigNumber; - takerFeePaid: BigNumber; - }; - leftMakerAssetSpreadAmount: BigNumber; - }> { - assert.doesConformToSchema('callData', callData, schemas.callDataSchema, [ - schemas.addressSchema, - schemas.numberSchema, - schemas.jsNumber, - ]); - if (defaultBlock !== undefined) { - assert.isBlockParam('defaultBlock', defaultBlock); - } - const encodedData = self._strictEncodeArguments( - 'matchOrders((address,address,address,address,uint256,uint256,uint256,uint256,uint256,uint256,bytes,bytes),(address,address,address,address,uint256,uint256,uint256,uint256,uint256,uint256,bytes,bytes),bytes,bytes)', - [buyOrder, sellOrder, buySignature, sellSignature], - ); - let rawCallResult; - - const callDataWithDefaults = await BaseContract._applyDefaultsToTxDataAsync( - { - to: self.address, - ...callData, - data: encodedData, - }, - self._web3Wrapper.getContractDefaults(), - ); - callDataWithDefaults.from = callDataWithDefaults.from - ? callDataWithDefaults.from.toLowerCase() - : callDataWithDefaults.from; - try { - rawCallResult = await self._web3Wrapper.callAsync(callDataWithDefaults, defaultBlock); - } catch (err) { - BaseContract._throwIfThrownErrorIsRevertError(err); - throw err; - } - - BaseContract._throwIfCallResultIsRevertError(rawCallResult); - const abiEncoder = self._lookupAbiEncoder( - 'matchOrders((address,address,address,address,uint256,uint256,uint256,uint256,uint256,uint256,bytes,bytes),(address,address,address,address,uint256,uint256,uint256,uint256,uint256,uint256,bytes,bytes),bytes,bytes)', - ); - // tslint:disable boolean-naming - const result = abiEncoder.strictDecodeReturnValue<{ - left: { - makerAssetFilledAmount: BigNumber; - takerAssetFilledAmount: BigNumber; - makerFeePaid: BigNumber; - takerFeePaid: BigNumber; - }; - right: { - makerAssetFilledAmount: BigNumber; - takerAssetFilledAmount: BigNumber; - makerFeePaid: BigNumber; - takerFeePaid: BigNumber; - }; - leftMakerAssetSpreadAmount: BigNumber; - }>(rawCallResult); - // tslint:enable boolean-naming - return result; - }, - getABIEncodedTransactionData(): string { - const abiEncodedTransactionData = self._strictEncodeArguments( - 'matchOrders((address,address,address,address,uint256,uint256,uint256,uint256,uint256,uint256,bytes,bytes),(address,address,address,address,uint256,uint256,uint256,uint256,uint256,uint256,bytes,bytes),bytes,bytes)', - [buyOrder, sellOrder, buySignature, sellSignature], - ); - return abiEncodedTransactionData; - }, - }; - } - - constructor( - address: string, - supportedProvider: SupportedProvider, - txDefaults?: Partial, - logDecodeDependencies?: { [contractName: string]: ContractAbi }, - deployedBytecode: string | undefined = DutchAuctionContract.deployedBytecode, - ) { - super( - 'DutchAuction', - DutchAuctionContract.ABI(), - address, - supportedProvider, - txDefaults, - logDecodeDependencies, - deployedBytecode, - ); - classUtils.bindAll(this, ['_abiEncoderByFunctionSignature', 'address', '_web3Wrapper']); - DutchAuctionContract.ABI().forEach((item, index) => { - if (item.type === 'function') { - const methodAbi = item as MethodAbi; - this._methodABIIndex[methodAbi.name] = index; - } - }); - } -} - -// tslint:disable:max-file-line-count -// tslint:enable:no-unbound-method no-parameter-reassignment no-consecutive-blank-lines ordered-imports align -// tslint:enable:trailing-comma whitespace no-trailing-whitespace diff --git a/packages/abi-gen-wrappers/src/generated-wrappers/erc1155_proxy.ts b/packages/abi-gen-wrappers/src/generated-wrappers/erc1155_proxy.ts deleted file mode 100644 index 340ad339ff..0000000000 --- a/packages/abi-gen-wrappers/src/generated-wrappers/erc1155_proxy.ts +++ /dev/null @@ -1,1311 +0,0 @@ -// tslint:disable:no-consecutive-blank-lines ordered-imports align trailing-comma enum-naming -// tslint:disable:whitespace no-unbound-method no-trailing-whitespace -// tslint:disable:no-unused-variable -import { - AwaitTransactionSuccessOpts, - ContractFunctionObj, - ContractTxFunctionObj, - SendTransactionOpts, - BaseContract, - SubscriptionManager, - PromiseWithTransactionHash, - methodAbiToFunctionSignature, -} from '@0x/base-contract'; -import { schemas } from '@0x/json-schemas'; -import { - BlockParam, - BlockParamLiteral, - BlockRange, - CallData, - ContractAbi, - ContractArtifact, - DecodedLogArgs, - LogWithDecodedArgs, - MethodAbi, - TransactionReceiptWithDecodedLogs, - TxData, - TxDataPayable, - SupportedProvider, -} from 'ethereum-types'; -import { BigNumber, classUtils, logUtils, providerUtils } from '@0x/utils'; -import { EventCallback, IndexedFilterValues, SimpleContractArtifact } from '@0x/types'; -import { Web3Wrapper } from '@0x/web3-wrapper'; -import { assert } from '@0x/assert'; -import * as ethers from 'ethers'; -// tslint:enable:no-unused-variable - -export type ERC1155ProxyEventArgs = - | ERC1155ProxyAuthorizedAddressAddedEventArgs - | ERC1155ProxyAuthorizedAddressRemovedEventArgs; - -export enum ERC1155ProxyEvents { - AuthorizedAddressAdded = 'AuthorizedAddressAdded', - AuthorizedAddressRemoved = 'AuthorizedAddressRemoved', -} - -export interface ERC1155ProxyAuthorizedAddressAddedEventArgs extends DecodedLogArgs { - target: string; - caller: string; -} - -export interface ERC1155ProxyAuthorizedAddressRemovedEventArgs extends DecodedLogArgs { - target: string; - caller: string; -} - -/* istanbul ignore next */ -// tslint:disable:no-parameter-reassignment -// tslint:disable-next-line:class-name -export class ERC1155ProxyContract extends BaseContract { - /** - * @ignore - */ - public static deployedBytecode = - '0x608060405234801561001057600080fd5b50600436106100be5760003560e01c8063a85e59e411610076578063b91816111161005b578063b918161114610285578063d39de6e9146102cc578063f2fde38b14610324576100be565b8063a85e59e4146101b2578063ae25532e14610248576100be565b806370712939116100a7578063707129391461013e5780638da5cb5b146101715780639ad2674414610179576100be565b806342f1181e146100c3578063494503d4146100f8575b600080fd5b6100f6600480360360208110156100d957600080fd5b503573ffffffffffffffffffffffffffffffffffffffff16610357565b005b6101156004803603602081101561010e57600080fd5b5035610543565b6040805173ffffffffffffffffffffffffffffffffffffffff9092168252519081900360200190f35b6100f66004803603602081101561015457600080fd5b503573ffffffffffffffffffffffffffffffffffffffff16610577565b61011561086a565b6100f66004803603604081101561018f57600080fd5b5073ffffffffffffffffffffffffffffffffffffffff8135169060200135610886565b6100f6600480360360808110156101c857600080fd5b8101906020810181356401000000008111156101e357600080fd5b8201836020820111156101f557600080fd5b8035906020019184600183028401116401000000008311171561021757600080fd5b919350915073ffffffffffffffffffffffffffffffffffffffff813581169160208101359091169060400135610c37565b610250611138565b604080517fffffffff000000000000000000000000000000000000000000000000000000009092168252519081900360200190f35b6102b86004803603602081101561029b57600080fd5b503573ffffffffffffffffffffffffffffffffffffffff16611159565b604080519115158252519081900360200190f35b6102d461116e565b60408051602080825283518183015283519192839290830191858101910280838360005b838110156103105781810151838201526020016102f8565b505050509050019250505060405180910390f35b6100f66004803603602081101561033a57600080fd5b503573ffffffffffffffffffffffffffffffffffffffff166111dd565b60005473ffffffffffffffffffffffffffffffffffffffff1633146103dd57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601360248201527f4f4e4c595f434f4e54524143545f4f574e455200000000000000000000000000604482015290519081900360640190fd5b73ffffffffffffffffffffffffffffffffffffffff811660009081526001602052604090205460ff161561047257604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601960248201527f5441524745545f414c52454144595f415554484f52495a454400000000000000604482015290519081900360640190fd5b73ffffffffffffffffffffffffffffffffffffffff8116600081815260016020819052604080832080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00168317905560028054928301815583527f405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5ace90910180547fffffffffffffffffffffffff00000000000000000000000000000000000000001684179055513392917f3147867c59d17e8fa9d522465651d44aae0a9e38f902f3475b97e58072f0ed4c91a350565b6002818154811061055057fe5b60009182526020909120015473ffffffffffffffffffffffffffffffffffffffff16905081565b60005473ffffffffffffffffffffffffffffffffffffffff1633146105fd57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601360248201527f4f4e4c595f434f4e54524143545f4f574e455200000000000000000000000000604482015290519081900360640190fd5b73ffffffffffffffffffffffffffffffffffffffff811660009081526001602052604090205460ff1661069157604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601560248201527f5441524745545f4e4f545f415554484f52495a45440000000000000000000000604482015290519081900360640190fd5b73ffffffffffffffffffffffffffffffffffffffff8116600090815260016020526040812080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001690555b600254811015610823578173ffffffffffffffffffffffffffffffffffffffff166002828154811061070b57fe5b60009182526020909120015473ffffffffffffffffffffffffffffffffffffffff16141561081b57600280547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff810190811061076357fe5b6000918252602090912001546002805473ffffffffffffffffffffffffffffffffffffffff909216918390811061079657fe5b600091825260209091200180547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff92909216919091179055600280547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff01906108159082611407565b50610823565b6001016106dd565b50604051339073ffffffffffffffffffffffffffffffffffffffff8316907f1f32c1b084e2de0713b8fb16bd46bb9df710a3dbeae2f3ca93af46e016dcc6b090600090a350565b60005473ffffffffffffffffffffffffffffffffffffffff1681565b60005473ffffffffffffffffffffffffffffffffffffffff16331461090c57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601360248201527f4f4e4c595f434f4e54524143545f4f574e455200000000000000000000000000604482015290519081900360640190fd5b73ffffffffffffffffffffffffffffffffffffffff821660009081526001602052604090205460ff166109a057604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601560248201527f5441524745545f4e4f545f415554484f52495a45440000000000000000000000604482015290519081900360640190fd5b6002548110610a1057604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601360248201527f494e4445585f4f55545f4f465f424f554e445300000000000000000000000000604482015290519081900360640190fd5b8173ffffffffffffffffffffffffffffffffffffffff1660028281548110610a3457fe5b60009182526020909120015473ffffffffffffffffffffffffffffffffffffffff1614610ac257604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601b60248201527f415554484f52495a45445f414444524553535f4d49534d415443480000000000604482015290519081900360640190fd5b73ffffffffffffffffffffffffffffffffffffffff8216600090815260016020526040902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00169055600280547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8101908110610b3d57fe5b6000918252602090912001546002805473ffffffffffffffffffffffffffffffffffffffff9092169183908110610b7057fe5b600091825260209091200180547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff92909216919091179055600280547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0190610bef9082611407565b50604051339073ffffffffffffffffffffffffffffffffffffffff8416907f1f32c1b084e2de0713b8fb16bd46bb9df710a3dbeae2f3ca93af46e016dcc6b090600090a35050565b3360009081526001602052604090205460ff16610cb557604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601560248201527f53454e4445525f4e4f545f415554484f52495a45440000000000000000000000604482015290519081900360640190fd5b60006060806060610d0b60048a8a90508b8b8080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525092949392505063ffffffff6112c3169050565b8060200190516080811015610d1f57600080fd5b815160208301805160405192949293830192919084640100000000821115610d4657600080fd5b908301906020820185811115610d5b57600080fd5b8251866020820283011164010000000082111715610d7857600080fd5b82525081516020918201928201910280838360005b83811015610da5578181015183820152602001610d8d565b5050505090500160405260200180516040519392919084640100000000821115610dce57600080fd5b908301906020820185811115610de357600080fd5b8251866020820283011164010000000082111715610e0057600080fd5b82525081516020918201928201910280838360005b83811015610e2d578181015183820152602001610e15565b5050505090500160405260200180516040519392919084640100000000821115610e5657600080fd5b908301906020820185811115610e6b57600080fd5b8251640100000000811182820188101715610e8557600080fd5b82525081516020918201929091019080838360005b83811015610eb2578181015183820152602001610e9a565b50505050905090810190601f168015610edf5780820380516001836020036101000a031916815260200191505b506040525050509350935093509350600082519050606081604051908082528060200260200182016040528015610f20578160200160208202803883390190505b50905060005b828114610f6957610f4a858281518110610f3c57fe5b602002602001015189611306565b828281518110610f5657fe5b6020908102919091010152600101610f26565b508573ffffffffffffffffffffffffffffffffffffffff16632eb2c2d68a8a8885886040518663ffffffff1660e01b8152600401808673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001806020018060200180602001848103845287818151815260200191508051906020019060200280838360005b8381101561104657818101518382015260200161102e565b50505050905001848103835286818151815260200191508051906020019060200280838360005b8381101561108557818101518382015260200161106d565b50505050905001848103825285818151815260200191508051906020019080838360005b838110156110c15781810151838201526020016110a9565b50505050905090810190601f1680156110ee5780820380516001836020036101000a031916815260200191505b5098505050505050505050600060405180830381600087803b15801561111357600080fd5b505af1158015611127573d6000803e3d6000fd5b505050505050505050505050505050565b6000604051808061144f603091396030019050604051809103902090505b90565b60016020526000908152604090205460ff1681565b606060028054806020026020016040519081016040528092919081815260200182805480156111d357602002820191906000526020600020905b815473ffffffffffffffffffffffffffffffffffffffff1681526001909101906020018083116111a8575b5050505050905090565b60005473ffffffffffffffffffffffffffffffffffffffff16331461126357604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601360248201527f4f4e4c595f434f4e54524143545f4f574e455200000000000000000000000000604482015290519081900360640190fd5b73ffffffffffffffffffffffffffffffffffffffff8116156112c057600080547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff83161790555b50565b6060818311156112e1576112e16112dc60008585611340565b6113df565b83518211156112fa576112fa6112dc6001848751611340565b50819003910190815290565b6000826113155750600061133a565b8282028284828161132257fe5b0414611337576113376112dc600186866113e7565b90505b92915050565b6060632800659560e01b8484846040516024018084600781111561136057fe5b60ff1681526020018381526020018281526020019350505050604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff838183161783525050505090509392505050565b805160208201fd5b606063e946c1bb60e01b8484846040516024018084600381111561136057fe5b81548183558181111561142b5760008381526020902061142b918101908301611430565b505050565b61115691905b8082111561144a5760008155600101611436565b509056fe4552433131353541737365747328616464726573732c75696e743235365b5d2c75696e743235365b5d2c627974657329a265627a7a72315820be5e6597d38133fd52aac17250498790f106d5d4d0e4ab30d0e854a2db1e2ffe64736f6c634300050c0032'; - private readonly _methodABIIndex: { [name: string]: number } = {}; - private readonly _subscriptionManager: SubscriptionManager; - public static async deployFrom0xArtifactAsync( - artifact: ContractArtifact | SimpleContractArtifact, - supportedProvider: SupportedProvider, - txDefaults: Partial, - logDecodeDependencies: { [contractName: string]: ContractArtifact | SimpleContractArtifact }, - ): Promise { - assert.doesConformToSchema('txDefaults', txDefaults, schemas.txDataSchema, [ - schemas.addressSchema, - schemas.numberSchema, - schemas.jsNumber, - ]); - if (artifact.compilerOutput === undefined) { - throw new Error('Compiler output not found in the artifact file'); - } - const provider = providerUtils.standardizeOrThrow(supportedProvider); - const bytecode = artifact.compilerOutput.evm.bytecode.object; - const abi = artifact.compilerOutput.abi; - const logDecodeDependenciesAbiOnly: { [contractName: string]: ContractAbi } = {}; - if (Object.keys(logDecodeDependencies) !== undefined) { - for (const key of Object.keys(logDecodeDependencies)) { - logDecodeDependenciesAbiOnly[key] = logDecodeDependencies[key].compilerOutput.abi; - } - } - return ERC1155ProxyContract.deployAsync(bytecode, abi, provider, txDefaults, logDecodeDependenciesAbiOnly); - } - public static async deployAsync( - bytecode: string, - abi: ContractAbi, - supportedProvider: SupportedProvider, - txDefaults: Partial, - logDecodeDependencies: { [contractName: string]: ContractAbi }, - ): Promise { - assert.isHexString('bytecode', bytecode); - assert.doesConformToSchema('txDefaults', txDefaults, schemas.txDataSchema, [ - schemas.addressSchema, - schemas.numberSchema, - schemas.jsNumber, - ]); - const provider = providerUtils.standardizeOrThrow(supportedProvider); - const constructorAbi = BaseContract._lookupConstructorAbi(abi); - [] = BaseContract._formatABIDataItemList(constructorAbi.inputs, [], BaseContract._bigNumberToString); - const iface = new ethers.utils.Interface(abi); - const deployInfo = iface.deployFunction; - const txData = deployInfo.encode(bytecode, []); - const web3Wrapper = new Web3Wrapper(provider); - const txDataWithDefaults = await BaseContract._applyDefaultsToTxDataAsync( - { data: txData }, - txDefaults, - web3Wrapper.estimateGasAsync.bind(web3Wrapper), - ); - const txHash = await web3Wrapper.sendTransactionAsync(txDataWithDefaults); - logUtils.log(`transactionHash: ${txHash}`); - const txReceipt = await web3Wrapper.awaitTransactionSuccessAsync(txHash); - logUtils.log(`ERC1155Proxy successfully deployed at ${txReceipt.contractAddress}`); - const contractInstance = new ERC1155ProxyContract( - txReceipt.contractAddress as string, - provider, - txDefaults, - logDecodeDependencies, - ); - contractInstance.constructorArgs = []; - return contractInstance; - } - - /** - * @returns The contract ABI - */ - public static ABI(): ContractAbi { - const abi = [ - { - anonymous: false, - inputs: [ - { - name: 'target', - type: 'address', - indexed: true, - }, - { - name: 'caller', - type: 'address', - indexed: true, - }, - ], - name: 'AuthorizedAddressAdded', - outputs: [], - type: 'event', - }, - { - anonymous: false, - inputs: [ - { - name: 'target', - type: 'address', - indexed: true, - }, - { - name: 'caller', - type: 'address', - indexed: true, - }, - ], - name: 'AuthorizedAddressRemoved', - outputs: [], - type: 'event', - }, - { - constant: false, - inputs: [ - { - name: 'target', - type: 'address', - }, - ], - name: 'addAuthorizedAddress', - outputs: [], - payable: false, - stateMutability: 'nonpayable', - type: 'function', - }, - { - constant: true, - inputs: [ - { - name: 'index_0', - type: 'uint256', - }, - ], - name: 'authorities', - outputs: [ - { - name: '', - type: 'address', - }, - ], - payable: false, - stateMutability: 'view', - type: 'function', - }, - { - constant: true, - inputs: [ - { - name: 'index_0', - type: 'address', - }, - ], - name: 'authorized', - outputs: [ - { - name: '', - type: 'bool', - }, - ], - payable: false, - stateMutability: 'view', - type: 'function', - }, - { - constant: true, - inputs: [], - name: 'getAuthorizedAddresses', - outputs: [ - { - name: '', - type: 'address[]', - }, - ], - payable: false, - stateMutability: 'view', - type: 'function', - }, - { - constant: true, - inputs: [], - name: 'getProxyId', - outputs: [ - { - name: '', - type: 'bytes4', - }, - ], - payable: false, - stateMutability: 'pure', - type: 'function', - }, - { - constant: true, - inputs: [], - name: 'owner', - outputs: [ - { - name: '', - type: 'address', - }, - ], - payable: false, - stateMutability: 'view', - type: 'function', - }, - { - constant: false, - inputs: [ - { - name: 'target', - type: 'address', - }, - ], - name: 'removeAuthorizedAddress', - outputs: [], - payable: false, - stateMutability: 'nonpayable', - type: 'function', - }, - { - constant: false, - inputs: [ - { - name: 'target', - type: 'address', - }, - { - name: 'index', - type: 'uint256', - }, - ], - name: 'removeAuthorizedAddressAtIndex', - outputs: [], - payable: false, - stateMutability: 'nonpayable', - type: 'function', - }, - { - constant: false, - inputs: [ - { - name: 'assetData', - type: 'bytes', - }, - { - name: 'from', - type: 'address', - }, - { - name: 'to', - type: 'address', - }, - { - name: 'amount', - type: 'uint256', - }, - ], - name: 'transferFrom', - outputs: [], - payable: false, - stateMutability: 'nonpayable', - type: 'function', - }, - { - constant: false, - inputs: [ - { - name: 'newOwner', - type: 'address', - }, - ], - name: 'transferOwnership', - outputs: [], - payable: false, - stateMutability: 'nonpayable', - type: 'function', - }, - ] as ContractAbi; - return abi; - } - - public getFunctionSignature(methodName: string): string { - const index = this._methodABIIndex[methodName]; - const methodAbi = ERC1155ProxyContract.ABI()[index] as MethodAbi; // tslint:disable-line:no-unnecessary-type-assertion - const functionSignature = methodAbiToFunctionSignature(methodAbi); - return functionSignature; - } - public getABIDecodedTransactionData(methodName: string, callData: string): T { - const functionSignature = this.getFunctionSignature(methodName); - const self = (this as any) as ERC1155ProxyContract; - const abiEncoder = self._lookupAbiEncoder(functionSignature); - const abiDecodedCallData = abiEncoder.strictDecode(callData); - return abiDecodedCallData; - } - public getABIDecodedReturnData(methodName: string, callData: string): T { - const functionSignature = this.getFunctionSignature(methodName); - const self = (this as any) as ERC1155ProxyContract; - const abiEncoder = self._lookupAbiEncoder(functionSignature); - const abiDecodedCallData = abiEncoder.strictDecodeReturnValue(callData); - return abiDecodedCallData; - } - public getSelector(methodName: string): string { - const functionSignature = this.getFunctionSignature(methodName); - const self = (this as any) as ERC1155ProxyContract; - const abiEncoder = self._lookupAbiEncoder(functionSignature); - return abiEncoder.getSelector(); - } - - /** - * Authorizes an address. - * @param target Address to authorize. - */ - public addAuthorizedAddress(target: string): ContractTxFunctionObj { - const self = (this as any) as ERC1155ProxyContract; - assert.isString('target', target); - - return { - async sendTransactionAsync( - txData?: Partial | undefined, - opts: SendTransactionOpts = { shouldValidate: true }, - ): Promise { - const encodedData = self._strictEncodeArguments('addAuthorizedAddress(address)', [ - target.toLowerCase(), - ]); - const txDataWithDefaults = await BaseContract._applyDefaultsToTxDataAsync( - { - to: self.address, - ...txData, - data: encodedData, - }, - self._web3Wrapper.getContractDefaults(), - ); - if (txDataWithDefaults.from !== undefined) { - txDataWithDefaults.from = txDataWithDefaults.from.toLowerCase(); - } - - if (opts.shouldValidate !== false) { - await this.callAsync(txDataWithDefaults); - } - - const txHash = await self._web3Wrapper.sendTransactionAsync(txDataWithDefaults); - return txHash; - }, - awaitTransactionSuccessAsync( - txData?: Partial, - opts: AwaitTransactionSuccessOpts = { shouldValidate: true }, - ): PromiseWithTransactionHash { - const txHashPromise = this.sendTransactionAsync(txData, opts); - return new PromiseWithTransactionHash( - txHashPromise, - (async (): Promise => { - // When the transaction hash resolves, wait for it to be mined. - return self._web3Wrapper.awaitTransactionSuccessAsync( - await txHashPromise, - opts.pollingIntervalMs, - opts.timeoutMs, - ); - })(), - ); - }, - async estimateGasAsync(txData?: Partial | undefined): Promise { - const encodedData = self._strictEncodeArguments('addAuthorizedAddress(address)', [ - target.toLowerCase(), - ]); - const txDataWithDefaults = await BaseContract._applyDefaultsToTxDataAsync( - { - to: self.address, - ...txData, - data: encodedData, - }, - self._web3Wrapper.getContractDefaults(), - ); - if (txDataWithDefaults.from !== undefined) { - txDataWithDefaults.from = txDataWithDefaults.from.toLowerCase(); - } - - const gas = await self._web3Wrapper.estimateGasAsync(txDataWithDefaults); - return gas; - }, - async callAsync(callData: Partial = {}, defaultBlock?: BlockParam): Promise { - assert.doesConformToSchema('callData', callData, schemas.callDataSchema, [ - schemas.addressSchema, - schemas.numberSchema, - schemas.jsNumber, - ]); - if (defaultBlock !== undefined) { - assert.isBlockParam('defaultBlock', defaultBlock); - } - const encodedData = self._strictEncodeArguments('addAuthorizedAddress(address)', [ - target.toLowerCase(), - ]); - let rawCallResult; - - const callDataWithDefaults = await BaseContract._applyDefaultsToTxDataAsync( - { - to: self.address, - ...callData, - data: encodedData, - }, - self._web3Wrapper.getContractDefaults(), - ); - callDataWithDefaults.from = callDataWithDefaults.from - ? callDataWithDefaults.from.toLowerCase() - : callDataWithDefaults.from; - try { - rawCallResult = await self._web3Wrapper.callAsync(callDataWithDefaults, defaultBlock); - } catch (err) { - BaseContract._throwIfThrownErrorIsRevertError(err); - throw err; - } - - BaseContract._throwIfCallResultIsRevertError(rawCallResult); - const abiEncoder = self._lookupAbiEncoder('addAuthorizedAddress(address)'); - // tslint:disable boolean-naming - const result = abiEncoder.strictDecodeReturnValue(rawCallResult); - // tslint:enable boolean-naming - return result; - }, - getABIEncodedTransactionData(): string { - const abiEncodedTransactionData = self._strictEncodeArguments('addAuthorizedAddress(address)', [ - target.toLowerCase(), - ]); - return abiEncodedTransactionData; - }, - }; - } - public authorities(index_0: BigNumber): ContractFunctionObj { - const self = (this as any) as ERC1155ProxyContract; - assert.isBigNumber('index_0', index_0); - - return { - async callAsync(callData: Partial = {}, defaultBlock?: BlockParam): Promise { - assert.doesConformToSchema('callData', callData, schemas.callDataSchema, [ - schemas.addressSchema, - schemas.numberSchema, - schemas.jsNumber, - ]); - if (defaultBlock !== undefined) { - assert.isBlockParam('defaultBlock', defaultBlock); - } - const encodedData = self._strictEncodeArguments('authorities(uint256)', [index_0]); - let rawCallResult; - - const callDataWithDefaults = await BaseContract._applyDefaultsToTxDataAsync( - { - to: self.address, - ...callData, - data: encodedData, - }, - self._web3Wrapper.getContractDefaults(), - ); - callDataWithDefaults.from = callDataWithDefaults.from - ? callDataWithDefaults.from.toLowerCase() - : callDataWithDefaults.from; - try { - rawCallResult = await self._web3Wrapper.callAsync(callDataWithDefaults, defaultBlock); - } catch (err) { - BaseContract._throwIfThrownErrorIsRevertError(err); - throw err; - } - - BaseContract._throwIfCallResultIsRevertError(rawCallResult); - const abiEncoder = self._lookupAbiEncoder('authorities(uint256)'); - // tslint:disable boolean-naming - const result = abiEncoder.strictDecodeReturnValue(rawCallResult); - // tslint:enable boolean-naming - return result; - }, - getABIEncodedTransactionData(): string { - const abiEncodedTransactionData = self._strictEncodeArguments('authorities(uint256)', [index_0]); - return abiEncodedTransactionData; - }, - }; - } - public authorized(index_0: string): ContractFunctionObj { - const self = (this as any) as ERC1155ProxyContract; - assert.isString('index_0', index_0); - - return { - async callAsync(callData: Partial = {}, defaultBlock?: BlockParam): Promise { - assert.doesConformToSchema('callData', callData, schemas.callDataSchema, [ - schemas.addressSchema, - schemas.numberSchema, - schemas.jsNumber, - ]); - if (defaultBlock !== undefined) { - assert.isBlockParam('defaultBlock', defaultBlock); - } - const encodedData = self._strictEncodeArguments('authorized(address)', [index_0.toLowerCase()]); - let rawCallResult; - - const callDataWithDefaults = await BaseContract._applyDefaultsToTxDataAsync( - { - to: self.address, - ...callData, - data: encodedData, - }, - self._web3Wrapper.getContractDefaults(), - ); - callDataWithDefaults.from = callDataWithDefaults.from - ? callDataWithDefaults.from.toLowerCase() - : callDataWithDefaults.from; - try { - rawCallResult = await self._web3Wrapper.callAsync(callDataWithDefaults, defaultBlock); - } catch (err) { - BaseContract._throwIfThrownErrorIsRevertError(err); - throw err; - } - - BaseContract._throwIfCallResultIsRevertError(rawCallResult); - const abiEncoder = self._lookupAbiEncoder('authorized(address)'); - // tslint:disable boolean-naming - const result = abiEncoder.strictDecodeReturnValue(rawCallResult); - // tslint:enable boolean-naming - return result; - }, - getABIEncodedTransactionData(): string { - const abiEncodedTransactionData = self._strictEncodeArguments('authorized(address)', [ - index_0.toLowerCase(), - ]); - return abiEncodedTransactionData; - }, - }; - } - /** - * Gets all authorized addresses. - * @returns Array of authorized addresses. - */ - public getAuthorizedAddresses(): ContractFunctionObj { - const self = (this as any) as ERC1155ProxyContract; - - return { - async callAsync(callData: Partial = {}, defaultBlock?: BlockParam): Promise { - assert.doesConformToSchema('callData', callData, schemas.callDataSchema, [ - schemas.addressSchema, - schemas.numberSchema, - schemas.jsNumber, - ]); - if (defaultBlock !== undefined) { - assert.isBlockParam('defaultBlock', defaultBlock); - } - const encodedData = self._strictEncodeArguments('getAuthorizedAddresses()', []); - let rawCallResult; - - const callDataWithDefaults = await BaseContract._applyDefaultsToTxDataAsync( - { - to: self.address, - ...callData, - data: encodedData, - }, - self._web3Wrapper.getContractDefaults(), - ); - callDataWithDefaults.from = callDataWithDefaults.from - ? callDataWithDefaults.from.toLowerCase() - : callDataWithDefaults.from; - try { - rawCallResult = await self._web3Wrapper.callAsync(callDataWithDefaults, defaultBlock); - } catch (err) { - BaseContract._throwIfThrownErrorIsRevertError(err); - throw err; - } - - BaseContract._throwIfCallResultIsRevertError(rawCallResult); - const abiEncoder = self._lookupAbiEncoder('getAuthorizedAddresses()'); - // tslint:disable boolean-naming - const result = abiEncoder.strictDecodeReturnValue(rawCallResult); - // tslint:enable boolean-naming - return result; - }, - getABIEncodedTransactionData(): string { - const abiEncodedTransactionData = self._strictEncodeArguments('getAuthorizedAddresses()', []); - return abiEncodedTransactionData; - }, - }; - } - /** - * Gets the proxy id associated with the proxy address. - * @returns Proxy id. - */ - public getProxyId(): ContractFunctionObj { - const self = (this as any) as ERC1155ProxyContract; - - return { - async callAsync(callData: Partial = {}, defaultBlock?: BlockParam): Promise { - assert.doesConformToSchema('callData', callData, schemas.callDataSchema, [ - schemas.addressSchema, - schemas.numberSchema, - schemas.jsNumber, - ]); - if (defaultBlock !== undefined) { - assert.isBlockParam('defaultBlock', defaultBlock); - } - const encodedData = self._strictEncodeArguments('getProxyId()', []); - let rawCallResult; - - const encodedDataBytes = Buffer.from(encodedData.substr(2), 'hex'); - try { - rawCallResult = await self._evmExecAsync(encodedDataBytes); - } catch (err) { - BaseContract._throwIfThrownErrorIsRevertError(err); - throw err; - } - - BaseContract._throwIfCallResultIsRevertError(rawCallResult); - const abiEncoder = self._lookupAbiEncoder('getProxyId()'); - // tslint:disable boolean-naming - const result = abiEncoder.strictDecodeReturnValue(rawCallResult); - // tslint:enable boolean-naming - return result; - }, - getABIEncodedTransactionData(): string { - const abiEncodedTransactionData = self._strictEncodeArguments('getProxyId()', []); - return abiEncodedTransactionData; - }, - }; - } - public owner(): ContractFunctionObj { - const self = (this as any) as ERC1155ProxyContract; - - return { - async callAsync(callData: Partial = {}, defaultBlock?: BlockParam): Promise { - assert.doesConformToSchema('callData', callData, schemas.callDataSchema, [ - schemas.addressSchema, - schemas.numberSchema, - schemas.jsNumber, - ]); - if (defaultBlock !== undefined) { - assert.isBlockParam('defaultBlock', defaultBlock); - } - const encodedData = self._strictEncodeArguments('owner()', []); - let rawCallResult; - - const callDataWithDefaults = await BaseContract._applyDefaultsToTxDataAsync( - { - to: self.address, - ...callData, - data: encodedData, - }, - self._web3Wrapper.getContractDefaults(), - ); - callDataWithDefaults.from = callDataWithDefaults.from - ? callDataWithDefaults.from.toLowerCase() - : callDataWithDefaults.from; - try { - rawCallResult = await self._web3Wrapper.callAsync(callDataWithDefaults, defaultBlock); - } catch (err) { - BaseContract._throwIfThrownErrorIsRevertError(err); - throw err; - } - - BaseContract._throwIfCallResultIsRevertError(rawCallResult); - const abiEncoder = self._lookupAbiEncoder('owner()'); - // tslint:disable boolean-naming - const result = abiEncoder.strictDecodeReturnValue(rawCallResult); - // tslint:enable boolean-naming - return result; - }, - getABIEncodedTransactionData(): string { - const abiEncodedTransactionData = self._strictEncodeArguments('owner()', []); - return abiEncodedTransactionData; - }, - }; - } - /** - * Removes authorizion of an address. - * @param target Address to remove authorization from. - */ - public removeAuthorizedAddress(target: string): ContractTxFunctionObj { - const self = (this as any) as ERC1155ProxyContract; - assert.isString('target', target); - - return { - async sendTransactionAsync( - txData?: Partial | undefined, - opts: SendTransactionOpts = { shouldValidate: true }, - ): Promise { - const encodedData = self._strictEncodeArguments('removeAuthorizedAddress(address)', [ - target.toLowerCase(), - ]); - const txDataWithDefaults = await BaseContract._applyDefaultsToTxDataAsync( - { - to: self.address, - ...txData, - data: encodedData, - }, - self._web3Wrapper.getContractDefaults(), - ); - if (txDataWithDefaults.from !== undefined) { - txDataWithDefaults.from = txDataWithDefaults.from.toLowerCase(); - } - - if (opts.shouldValidate !== false) { - await this.callAsync(txDataWithDefaults); - } - - const txHash = await self._web3Wrapper.sendTransactionAsync(txDataWithDefaults); - return txHash; - }, - awaitTransactionSuccessAsync( - txData?: Partial, - opts: AwaitTransactionSuccessOpts = { shouldValidate: true }, - ): PromiseWithTransactionHash { - const txHashPromise = this.sendTransactionAsync(txData, opts); - return new PromiseWithTransactionHash( - txHashPromise, - (async (): Promise => { - // When the transaction hash resolves, wait for it to be mined. - return self._web3Wrapper.awaitTransactionSuccessAsync( - await txHashPromise, - opts.pollingIntervalMs, - opts.timeoutMs, - ); - })(), - ); - }, - async estimateGasAsync(txData?: Partial | undefined): Promise { - const encodedData = self._strictEncodeArguments('removeAuthorizedAddress(address)', [ - target.toLowerCase(), - ]); - const txDataWithDefaults = await BaseContract._applyDefaultsToTxDataAsync( - { - to: self.address, - ...txData, - data: encodedData, - }, - self._web3Wrapper.getContractDefaults(), - ); - if (txDataWithDefaults.from !== undefined) { - txDataWithDefaults.from = txDataWithDefaults.from.toLowerCase(); - } - - const gas = await self._web3Wrapper.estimateGasAsync(txDataWithDefaults); - return gas; - }, - async callAsync(callData: Partial = {}, defaultBlock?: BlockParam): Promise { - assert.doesConformToSchema('callData', callData, schemas.callDataSchema, [ - schemas.addressSchema, - schemas.numberSchema, - schemas.jsNumber, - ]); - if (defaultBlock !== undefined) { - assert.isBlockParam('defaultBlock', defaultBlock); - } - const encodedData = self._strictEncodeArguments('removeAuthorizedAddress(address)', [ - target.toLowerCase(), - ]); - let rawCallResult; - - const callDataWithDefaults = await BaseContract._applyDefaultsToTxDataAsync( - { - to: self.address, - ...callData, - data: encodedData, - }, - self._web3Wrapper.getContractDefaults(), - ); - callDataWithDefaults.from = callDataWithDefaults.from - ? callDataWithDefaults.from.toLowerCase() - : callDataWithDefaults.from; - try { - rawCallResult = await self._web3Wrapper.callAsync(callDataWithDefaults, defaultBlock); - } catch (err) { - BaseContract._throwIfThrownErrorIsRevertError(err); - throw err; - } - - BaseContract._throwIfCallResultIsRevertError(rawCallResult); - const abiEncoder = self._lookupAbiEncoder('removeAuthorizedAddress(address)'); - // tslint:disable boolean-naming - const result = abiEncoder.strictDecodeReturnValue(rawCallResult); - // tslint:enable boolean-naming - return result; - }, - getABIEncodedTransactionData(): string { - const abiEncodedTransactionData = self._strictEncodeArguments('removeAuthorizedAddress(address)', [ - target.toLowerCase(), - ]); - return abiEncodedTransactionData; - }, - }; - } - /** - * Removes authorizion of an address. - * @param target Address to remove authorization from. - * @param index Index of target in authorities array. - */ - public removeAuthorizedAddressAtIndex(target: string, index: BigNumber): ContractTxFunctionObj { - const self = (this as any) as ERC1155ProxyContract; - assert.isString('target', target); - assert.isBigNumber('index', index); - - return { - async sendTransactionAsync( - txData?: Partial | undefined, - opts: SendTransactionOpts = { shouldValidate: true }, - ): Promise { - const encodedData = self._strictEncodeArguments('removeAuthorizedAddressAtIndex(address,uint256)', [ - target.toLowerCase(), - index, - ]); - const txDataWithDefaults = await BaseContract._applyDefaultsToTxDataAsync( - { - to: self.address, - ...txData, - data: encodedData, - }, - self._web3Wrapper.getContractDefaults(), - ); - if (txDataWithDefaults.from !== undefined) { - txDataWithDefaults.from = txDataWithDefaults.from.toLowerCase(); - } - - if (opts.shouldValidate !== false) { - await this.callAsync(txDataWithDefaults); - } - - const txHash = await self._web3Wrapper.sendTransactionAsync(txDataWithDefaults); - return txHash; - }, - awaitTransactionSuccessAsync( - txData?: Partial, - opts: AwaitTransactionSuccessOpts = { shouldValidate: true }, - ): PromiseWithTransactionHash { - const txHashPromise = this.sendTransactionAsync(txData, opts); - return new PromiseWithTransactionHash( - txHashPromise, - (async (): Promise => { - // When the transaction hash resolves, wait for it to be mined. - return self._web3Wrapper.awaitTransactionSuccessAsync( - await txHashPromise, - opts.pollingIntervalMs, - opts.timeoutMs, - ); - })(), - ); - }, - async estimateGasAsync(txData?: Partial | undefined): Promise { - const encodedData = self._strictEncodeArguments('removeAuthorizedAddressAtIndex(address,uint256)', [ - target.toLowerCase(), - index, - ]); - const txDataWithDefaults = await BaseContract._applyDefaultsToTxDataAsync( - { - to: self.address, - ...txData, - data: encodedData, - }, - self._web3Wrapper.getContractDefaults(), - ); - if (txDataWithDefaults.from !== undefined) { - txDataWithDefaults.from = txDataWithDefaults.from.toLowerCase(); - } - - const gas = await self._web3Wrapper.estimateGasAsync(txDataWithDefaults); - return gas; - }, - async callAsync(callData: Partial = {}, defaultBlock?: BlockParam): Promise { - assert.doesConformToSchema('callData', callData, schemas.callDataSchema, [ - schemas.addressSchema, - schemas.numberSchema, - schemas.jsNumber, - ]); - if (defaultBlock !== undefined) { - assert.isBlockParam('defaultBlock', defaultBlock); - } - const encodedData = self._strictEncodeArguments('removeAuthorizedAddressAtIndex(address,uint256)', [ - target.toLowerCase(), - index, - ]); - let rawCallResult; - - const callDataWithDefaults = await BaseContract._applyDefaultsToTxDataAsync( - { - to: self.address, - ...callData, - data: encodedData, - }, - self._web3Wrapper.getContractDefaults(), - ); - callDataWithDefaults.from = callDataWithDefaults.from - ? callDataWithDefaults.from.toLowerCase() - : callDataWithDefaults.from; - try { - rawCallResult = await self._web3Wrapper.callAsync(callDataWithDefaults, defaultBlock); - } catch (err) { - BaseContract._throwIfThrownErrorIsRevertError(err); - throw err; - } - - BaseContract._throwIfCallResultIsRevertError(rawCallResult); - const abiEncoder = self._lookupAbiEncoder('removeAuthorizedAddressAtIndex(address,uint256)'); - // tslint:disable boolean-naming - const result = abiEncoder.strictDecodeReturnValue(rawCallResult); - // tslint:enable boolean-naming - return result; - }, - getABIEncodedTransactionData(): string { - const abiEncodedTransactionData = self._strictEncodeArguments( - 'removeAuthorizedAddressAtIndex(address,uint256)', - [target.toLowerCase(), index], - ); - return abiEncodedTransactionData; - }, - }; - } - /** - * Transfers batch of ERC1155 assets. Either succeeds or throws. - * @param assetData Byte array encoded with ERC1155 token address, array of - * ids, array of values, and callback data. - * @param from Address to transfer assets from. - * @param to Address to transfer assets to. - * @param amount Amount that will be multiplied with each element of - * `assetData.values` to scale the values that will be transferred. - */ - public transferFrom(assetData: string, from: string, to: string, amount: BigNumber): ContractTxFunctionObj { - const self = (this as any) as ERC1155ProxyContract; - assert.isString('assetData', assetData); - assert.isString('from', from); - assert.isString('to', to); - assert.isBigNumber('amount', amount); - - return { - async sendTransactionAsync( - txData?: Partial | undefined, - opts: SendTransactionOpts = { shouldValidate: true }, - ): Promise { - const encodedData = self._strictEncodeArguments('transferFrom(bytes,address,address,uint256)', [ - assetData, - from.toLowerCase(), - to.toLowerCase(), - amount, - ]); - const txDataWithDefaults = await BaseContract._applyDefaultsToTxDataAsync( - { - to: self.address, - ...txData, - data: encodedData, - }, - self._web3Wrapper.getContractDefaults(), - ); - if (txDataWithDefaults.from !== undefined) { - txDataWithDefaults.from = txDataWithDefaults.from.toLowerCase(); - } - - if (opts.shouldValidate !== false) { - await this.callAsync(txDataWithDefaults); - } - - const txHash = await self._web3Wrapper.sendTransactionAsync(txDataWithDefaults); - return txHash; - }, - awaitTransactionSuccessAsync( - txData?: Partial, - opts: AwaitTransactionSuccessOpts = { shouldValidate: true }, - ): PromiseWithTransactionHash { - const txHashPromise = this.sendTransactionAsync(txData, opts); - return new PromiseWithTransactionHash( - txHashPromise, - (async (): Promise => { - // When the transaction hash resolves, wait for it to be mined. - return self._web3Wrapper.awaitTransactionSuccessAsync( - await txHashPromise, - opts.pollingIntervalMs, - opts.timeoutMs, - ); - })(), - ); - }, - async estimateGasAsync(txData?: Partial | undefined): Promise { - const encodedData = self._strictEncodeArguments('transferFrom(bytes,address,address,uint256)', [ - assetData, - from.toLowerCase(), - to.toLowerCase(), - amount, - ]); - const txDataWithDefaults = await BaseContract._applyDefaultsToTxDataAsync( - { - to: self.address, - ...txData, - data: encodedData, - }, - self._web3Wrapper.getContractDefaults(), - ); - if (txDataWithDefaults.from !== undefined) { - txDataWithDefaults.from = txDataWithDefaults.from.toLowerCase(); - } - - const gas = await self._web3Wrapper.estimateGasAsync(txDataWithDefaults); - return gas; - }, - async callAsync(callData: Partial = {}, defaultBlock?: BlockParam): Promise { - assert.doesConformToSchema('callData', callData, schemas.callDataSchema, [ - schemas.addressSchema, - schemas.numberSchema, - schemas.jsNumber, - ]); - if (defaultBlock !== undefined) { - assert.isBlockParam('defaultBlock', defaultBlock); - } - const encodedData = self._strictEncodeArguments('transferFrom(bytes,address,address,uint256)', [ - assetData, - from.toLowerCase(), - to.toLowerCase(), - amount, - ]); - let rawCallResult; - - const callDataWithDefaults = await BaseContract._applyDefaultsToTxDataAsync( - { - to: self.address, - ...callData, - data: encodedData, - }, - self._web3Wrapper.getContractDefaults(), - ); - callDataWithDefaults.from = callDataWithDefaults.from - ? callDataWithDefaults.from.toLowerCase() - : callDataWithDefaults.from; - try { - rawCallResult = await self._web3Wrapper.callAsync(callDataWithDefaults, defaultBlock); - } catch (err) { - BaseContract._throwIfThrownErrorIsRevertError(err); - throw err; - } - - BaseContract._throwIfCallResultIsRevertError(rawCallResult); - const abiEncoder = self._lookupAbiEncoder('transferFrom(bytes,address,address,uint256)'); - // tslint:disable boolean-naming - const result = abiEncoder.strictDecodeReturnValue(rawCallResult); - // tslint:enable boolean-naming - return result; - }, - getABIEncodedTransactionData(): string { - const abiEncodedTransactionData = self._strictEncodeArguments( - 'transferFrom(bytes,address,address,uint256)', - [assetData, from.toLowerCase(), to.toLowerCase(), amount], - ); - return abiEncodedTransactionData; - }, - }; - } - public transferOwnership(newOwner: string): ContractTxFunctionObj { - const self = (this as any) as ERC1155ProxyContract; - assert.isString('newOwner', newOwner); - - return { - async sendTransactionAsync( - txData?: Partial | undefined, - opts: SendTransactionOpts = { shouldValidate: true }, - ): Promise { - const encodedData = self._strictEncodeArguments('transferOwnership(address)', [newOwner.toLowerCase()]); - const txDataWithDefaults = await BaseContract._applyDefaultsToTxDataAsync( - { - to: self.address, - ...txData, - data: encodedData, - }, - self._web3Wrapper.getContractDefaults(), - ); - if (txDataWithDefaults.from !== undefined) { - txDataWithDefaults.from = txDataWithDefaults.from.toLowerCase(); - } - - if (opts.shouldValidate !== false) { - await this.callAsync(txDataWithDefaults); - } - - const txHash = await self._web3Wrapper.sendTransactionAsync(txDataWithDefaults); - return txHash; - }, - awaitTransactionSuccessAsync( - txData?: Partial, - opts: AwaitTransactionSuccessOpts = { shouldValidate: true }, - ): PromiseWithTransactionHash { - const txHashPromise = this.sendTransactionAsync(txData, opts); - return new PromiseWithTransactionHash( - txHashPromise, - (async (): Promise => { - // When the transaction hash resolves, wait for it to be mined. - return self._web3Wrapper.awaitTransactionSuccessAsync( - await txHashPromise, - opts.pollingIntervalMs, - opts.timeoutMs, - ); - })(), - ); - }, - async estimateGasAsync(txData?: Partial | undefined): Promise { - const encodedData = self._strictEncodeArguments('transferOwnership(address)', [newOwner.toLowerCase()]); - const txDataWithDefaults = await BaseContract._applyDefaultsToTxDataAsync( - { - to: self.address, - ...txData, - data: encodedData, - }, - self._web3Wrapper.getContractDefaults(), - ); - if (txDataWithDefaults.from !== undefined) { - txDataWithDefaults.from = txDataWithDefaults.from.toLowerCase(); - } - - const gas = await self._web3Wrapper.estimateGasAsync(txDataWithDefaults); - return gas; - }, - async callAsync(callData: Partial = {}, defaultBlock?: BlockParam): Promise { - assert.doesConformToSchema('callData', callData, schemas.callDataSchema, [ - schemas.addressSchema, - schemas.numberSchema, - schemas.jsNumber, - ]); - if (defaultBlock !== undefined) { - assert.isBlockParam('defaultBlock', defaultBlock); - } - const encodedData = self._strictEncodeArguments('transferOwnership(address)', [newOwner.toLowerCase()]); - let rawCallResult; - - const callDataWithDefaults = await BaseContract._applyDefaultsToTxDataAsync( - { - to: self.address, - ...callData, - data: encodedData, - }, - self._web3Wrapper.getContractDefaults(), - ); - callDataWithDefaults.from = callDataWithDefaults.from - ? callDataWithDefaults.from.toLowerCase() - : callDataWithDefaults.from; - try { - rawCallResult = await self._web3Wrapper.callAsync(callDataWithDefaults, defaultBlock); - } catch (err) { - BaseContract._throwIfThrownErrorIsRevertError(err); - throw err; - } - - BaseContract._throwIfCallResultIsRevertError(rawCallResult); - const abiEncoder = self._lookupAbiEncoder('transferOwnership(address)'); - // tslint:disable boolean-naming - const result = abiEncoder.strictDecodeReturnValue(rawCallResult); - // tslint:enable boolean-naming - return result; - }, - getABIEncodedTransactionData(): string { - const abiEncodedTransactionData = self._strictEncodeArguments('transferOwnership(address)', [ - newOwner.toLowerCase(), - ]); - return abiEncodedTransactionData; - }, - }; - } - - /** - * Subscribe to an event type emitted by the ERC1155Proxy contract. - * @param eventName The ERC1155Proxy contract event you would like to subscribe to. - * @param indexFilterValues 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}` - * @param callback Callback that gets called when a log is added/removed - * @param isVerbose Enable verbose subscription warnings (e.g recoverable network issues encountered) - * @return Subscription token used later to unsubscribe - */ - public subscribe( - eventName: ERC1155ProxyEvents, - indexFilterValues: IndexedFilterValues, - callback: EventCallback, - isVerbose: boolean = false, - blockPollingIntervalMs?: number, - ): string { - assert.doesBelongToStringEnum('eventName', eventName, ERC1155ProxyEvents); - assert.doesConformToSchema('indexFilterValues', indexFilterValues, schemas.indexFilterValuesSchema); - assert.isFunction('callback', callback); - const subscriptionToken = this._subscriptionManager.subscribe( - this.address, - eventName, - indexFilterValues, - ERC1155ProxyContract.ABI(), - callback, - isVerbose, - blockPollingIntervalMs, - ); - return subscriptionToken; - } - /** - * Cancel a subscription - * @param subscriptionToken Subscription token returned by `subscribe()` - */ - public unsubscribe(subscriptionToken: string): void { - this._subscriptionManager.unsubscribe(subscriptionToken); - } - /** - * Cancels all existing subscriptions - */ - public unsubscribeAll(): void { - this._subscriptionManager.unsubscribeAll(); - } - /** - * Gets historical logs without creating a subscription - * @param eventName The ERC1155Proxy contract event you would like to subscribe to. - * @param blockRange Block range to get logs from. - * @param indexFilterValues 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}` - * @return Array of logs that match the parameters - */ - public async getLogsAsync( - eventName: ERC1155ProxyEvents, - blockRange: BlockRange, - indexFilterValues: IndexedFilterValues, - ): Promise>> { - assert.doesBelongToStringEnum('eventName', eventName, ERC1155ProxyEvents); - assert.doesConformToSchema('blockRange', blockRange, schemas.blockRangeSchema); - assert.doesConformToSchema('indexFilterValues', indexFilterValues, schemas.indexFilterValuesSchema); - const logs = await this._subscriptionManager.getLogsAsync( - this.address, - eventName, - blockRange, - indexFilterValues, - ERC1155ProxyContract.ABI(), - ); - return logs; - } - constructor( - address: string, - supportedProvider: SupportedProvider, - txDefaults?: Partial, - logDecodeDependencies?: { [contractName: string]: ContractAbi }, - deployedBytecode: string | undefined = ERC1155ProxyContract.deployedBytecode, - ) { - super( - 'ERC1155Proxy', - ERC1155ProxyContract.ABI(), - address, - supportedProvider, - txDefaults, - logDecodeDependencies, - deployedBytecode, - ); - classUtils.bindAll(this, ['_abiEncoderByFunctionSignature', 'address', '_web3Wrapper']); - this._subscriptionManager = new SubscriptionManager( - ERC1155ProxyContract.ABI(), - this._web3Wrapper, - ); - ERC1155ProxyContract.ABI().forEach((item, index) => { - if (item.type === 'function') { - const methodAbi = item as MethodAbi; - this._methodABIIndex[methodAbi.name] = index; - } - }); - } -} - -// tslint:disable:max-file-line-count -// tslint:enable:no-unbound-method no-parameter-reassignment no-consecutive-blank-lines ordered-imports align -// tslint:enable:trailing-comma whitespace no-trailing-whitespace diff --git a/packages/abi-gen-wrappers/src/generated-wrappers/erc20_proxy.ts b/packages/abi-gen-wrappers/src/generated-wrappers/erc20_proxy.ts deleted file mode 100644 index 87e40b7ed3..0000000000 --- a/packages/abi-gen-wrappers/src/generated-wrappers/erc20_proxy.ts +++ /dev/null @@ -1,1156 +0,0 @@ -// tslint:disable:no-consecutive-blank-lines ordered-imports align trailing-comma enum-naming -// tslint:disable:whitespace no-unbound-method no-trailing-whitespace -// tslint:disable:no-unused-variable -import { - AwaitTransactionSuccessOpts, - ContractFunctionObj, - ContractTxFunctionObj, - SendTransactionOpts, - BaseContract, - SubscriptionManager, - PromiseWithTransactionHash, - methodAbiToFunctionSignature, -} from '@0x/base-contract'; -import { schemas } from '@0x/json-schemas'; -import { - BlockParam, - BlockParamLiteral, - BlockRange, - CallData, - ContractAbi, - ContractArtifact, - DecodedLogArgs, - LogWithDecodedArgs, - MethodAbi, - TransactionReceiptWithDecodedLogs, - TxData, - TxDataPayable, - SupportedProvider, -} from 'ethereum-types'; -import { BigNumber, classUtils, logUtils, providerUtils } from '@0x/utils'; -import { EventCallback, IndexedFilterValues, SimpleContractArtifact } from '@0x/types'; -import { Web3Wrapper } from '@0x/web3-wrapper'; -import { assert } from '@0x/assert'; -import * as ethers from 'ethers'; -// tslint:enable:no-unused-variable - -export type ERC20ProxyEventArgs = - | ERC20ProxyAuthorizedAddressAddedEventArgs - | ERC20ProxyAuthorizedAddressRemovedEventArgs; - -export enum ERC20ProxyEvents { - AuthorizedAddressAdded = 'AuthorizedAddressAdded', - AuthorizedAddressRemoved = 'AuthorizedAddressRemoved', -} - -export interface ERC20ProxyAuthorizedAddressAddedEventArgs extends DecodedLogArgs { - target: string; - caller: string; -} - -export interface ERC20ProxyAuthorizedAddressRemovedEventArgs extends DecodedLogArgs { - target: string; - caller: string; -} - -/* istanbul ignore next */ -// tslint:disable:no-parameter-reassignment -// tslint:disable-next-line:class-name -export class ERC20ProxyContract extends BaseContract { - /** - * @ignore - */ - public static deployedBytecode = - '0x608060405234801561001057600080fd5b50600436106100a35760003560e01c80639ad2674411610076578063b91816111161005b578063b918161114610374578063d39de6e9146103bb578063f2fde38b14610413576100a3565b80639ad26744146102fe578063ae25532e14610337576100a3565b806342f1181e14610248578063494503d41461027d57806370712939146102c35780638da5cb5b146102f6575b7fffffffff00000000000000000000000000000000000000000000000000000000600035167fa85e59e40000000000000000000000000000000000000000000000000000000081141561024257604080513381526001602082015290812054610177577f08c379a0000000000000000000000000000000000000000000000000000000006000527c20000000000000000000000000000000000000000000000000000000006020527c1553454e4445525f4e4f545f415554484f52495a454400000000000000604052600060605260646000fd5b50602860043501357f23b872dd0000000000000000000000000000000000000000000000000000000060005260606024600437602060006064600080855af1600080511160203d14163d15178116905080156101cf57005b50507f08c379a0000000000000000000000000000000000000000000000000000000006000527c20000000000000000000000000000000000000000000000000000000006020527c0f5452414e534645525f4641494c454400000000000000000000000000604052600060605260646000fd5b50600080fd5b61027b6004803603602081101561025e57600080fd5b503573ffffffffffffffffffffffffffffffffffffffff16610446565b005b61029a6004803603602081101561029357600080fd5b5035610632565b6040805173ffffffffffffffffffffffffffffffffffffffff9092168252519081900360200190f35b61027b600480360360208110156102d957600080fd5b503573ffffffffffffffffffffffffffffffffffffffff16610666565b61029a610959565b61027b6004803603604081101561031457600080fd5b5073ffffffffffffffffffffffffffffffffffffffff8135169060200135610975565b61033f610d26565b604080517fffffffff000000000000000000000000000000000000000000000000000000009092168252519081900360200190f35b6103a76004803603602081101561038a57600080fd5b503573ffffffffffffffffffffffffffffffffffffffff16610d5c565b604080519115158252519081900360200190f35b6103c3610d71565b60408051602080825283518183015283519192839290830191858101910280838360005b838110156103ff5781810151838201526020016103e7565b505050509050019250505060405180910390f35b61027b6004803603602081101561042957600080fd5b503573ffffffffffffffffffffffffffffffffffffffff16610de0565b60005473ffffffffffffffffffffffffffffffffffffffff1633146104cc57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601360248201527f4f4e4c595f434f4e54524143545f4f574e455200000000000000000000000000604482015290519081900360640190fd5b73ffffffffffffffffffffffffffffffffffffffff811660009081526001602052604090205460ff161561056157604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601960248201527f5441524745545f414c52454144595f415554484f52495a454400000000000000604482015290519081900360640190fd5b73ffffffffffffffffffffffffffffffffffffffff8116600081815260016020819052604080832080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00168317905560028054928301815583527f405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5ace90910180547fffffffffffffffffffffffff00000000000000000000000000000000000000001684179055513392917f3147867c59d17e8fa9d522465651d44aae0a9e38f902f3475b97e58072f0ed4c91a350565b6002818154811061063f57fe5b60009182526020909120015473ffffffffffffffffffffffffffffffffffffffff16905081565b60005473ffffffffffffffffffffffffffffffffffffffff1633146106ec57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601360248201527f4f4e4c595f434f4e54524143545f4f574e455200000000000000000000000000604482015290519081900360640190fd5b73ffffffffffffffffffffffffffffffffffffffff811660009081526001602052604090205460ff1661078057604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601560248201527f5441524745545f4e4f545f415554484f52495a45440000000000000000000000604482015290519081900360640190fd5b73ffffffffffffffffffffffffffffffffffffffff8116600090815260016020526040812080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001690555b600254811015610912578173ffffffffffffffffffffffffffffffffffffffff16600282815481106107fa57fe5b60009182526020909120015473ffffffffffffffffffffffffffffffffffffffff16141561090a57600280547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff810190811061085257fe5b6000918252602090912001546002805473ffffffffffffffffffffffffffffffffffffffff909216918390811061088557fe5b600091825260209091200180547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff92909216919091179055600280547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff01906109049082610ec6565b50610912565b6001016107cc565b50604051339073ffffffffffffffffffffffffffffffffffffffff8316907f1f32c1b084e2de0713b8fb16bd46bb9df710a3dbeae2f3ca93af46e016dcc6b090600090a350565b60005473ffffffffffffffffffffffffffffffffffffffff1681565b60005473ffffffffffffffffffffffffffffffffffffffff1633146109fb57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601360248201527f4f4e4c595f434f4e54524143545f4f574e455200000000000000000000000000604482015290519081900360640190fd5b73ffffffffffffffffffffffffffffffffffffffff821660009081526001602052604090205460ff16610a8f57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601560248201527f5441524745545f4e4f545f415554484f52495a45440000000000000000000000604482015290519081900360640190fd5b6002548110610aff57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601360248201527f494e4445585f4f55545f4f465f424f554e445300000000000000000000000000604482015290519081900360640190fd5b8173ffffffffffffffffffffffffffffffffffffffff1660028281548110610b2357fe5b60009182526020909120015473ffffffffffffffffffffffffffffffffffffffff1614610bb157604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601b60248201527f415554484f52495a45445f414444524553535f4d49534d415443480000000000604482015290519081900360640190fd5b73ffffffffffffffffffffffffffffffffffffffff8216600090815260016020526040902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00169055600280547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8101908110610c2c57fe5b6000918252602090912001546002805473ffffffffffffffffffffffffffffffffffffffff9092169183908110610c5f57fe5b600091825260209091200180547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff92909216919091179055600280547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0190610cde9082610ec6565b50604051339073ffffffffffffffffffffffffffffffffffffffff8416907f1f32c1b084e2de0713b8fb16bd46bb9df710a3dbeae2f3ca93af46e016dcc6b090600090a35050565b604080517f4552433230546f6b656e28616464726573732900000000000000000000000000815290519081900360130190205b90565b60016020526000908152604090205460ff1681565b60606002805480602002602001604051908101604052809291908181526020018280548015610dd657602002820191906000526020600020905b815473ffffffffffffffffffffffffffffffffffffffff168152600190910190602001808311610dab575b5050505050905090565b60005473ffffffffffffffffffffffffffffffffffffffff163314610e6657604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601360248201527f4f4e4c595f434f4e54524143545f4f574e455200000000000000000000000000604482015290519081900360640190fd5b73ffffffffffffffffffffffffffffffffffffffff811615610ec357600080547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff83161790555b50565b815481835581811115610eea57600083815260209020610eea918101908301610eef565b505050565b610d5991905b80821115610f095760008155600101610ef5565b509056fea265627a7a72315820cb3312567959522bd12ea03b9812cab2bace85fe5f172b3ae8014b3eacc85fa864736f6c634300050b0032'; - private readonly _methodABIIndex: { [name: string]: number } = {}; - private readonly _subscriptionManager: SubscriptionManager; - public static async deployFrom0xArtifactAsync( - artifact: ContractArtifact | SimpleContractArtifact, - supportedProvider: SupportedProvider, - txDefaults: Partial, - logDecodeDependencies: { [contractName: string]: ContractArtifact | SimpleContractArtifact }, - ): Promise { - assert.doesConformToSchema('txDefaults', txDefaults, schemas.txDataSchema, [ - schemas.addressSchema, - schemas.numberSchema, - schemas.jsNumber, - ]); - if (artifact.compilerOutput === undefined) { - throw new Error('Compiler output not found in the artifact file'); - } - const provider = providerUtils.standardizeOrThrow(supportedProvider); - const bytecode = artifact.compilerOutput.evm.bytecode.object; - const abi = artifact.compilerOutput.abi; - const logDecodeDependenciesAbiOnly: { [contractName: string]: ContractAbi } = {}; - if (Object.keys(logDecodeDependencies) !== undefined) { - for (const key of Object.keys(logDecodeDependencies)) { - logDecodeDependenciesAbiOnly[key] = logDecodeDependencies[key].compilerOutput.abi; - } - } - return ERC20ProxyContract.deployAsync(bytecode, abi, provider, txDefaults, logDecodeDependenciesAbiOnly); - } - public static async deployAsync( - bytecode: string, - abi: ContractAbi, - supportedProvider: SupportedProvider, - txDefaults: Partial, - logDecodeDependencies: { [contractName: string]: ContractAbi }, - ): Promise { - assert.isHexString('bytecode', bytecode); - assert.doesConformToSchema('txDefaults', txDefaults, schemas.txDataSchema, [ - schemas.addressSchema, - schemas.numberSchema, - schemas.jsNumber, - ]); - const provider = providerUtils.standardizeOrThrow(supportedProvider); - const constructorAbi = BaseContract._lookupConstructorAbi(abi); - [] = BaseContract._formatABIDataItemList(constructorAbi.inputs, [], BaseContract._bigNumberToString); - const iface = new ethers.utils.Interface(abi); - const deployInfo = iface.deployFunction; - const txData = deployInfo.encode(bytecode, []); - const web3Wrapper = new Web3Wrapper(provider); - const txDataWithDefaults = await BaseContract._applyDefaultsToTxDataAsync( - { data: txData }, - txDefaults, - web3Wrapper.estimateGasAsync.bind(web3Wrapper), - ); - const txHash = await web3Wrapper.sendTransactionAsync(txDataWithDefaults); - logUtils.log(`transactionHash: ${txHash}`); - const txReceipt = await web3Wrapper.awaitTransactionSuccessAsync(txHash); - logUtils.log(`ERC20Proxy successfully deployed at ${txReceipt.contractAddress}`); - const contractInstance = new ERC20ProxyContract( - txReceipt.contractAddress as string, - provider, - txDefaults, - logDecodeDependencies, - ); - contractInstance.constructorArgs = []; - return contractInstance; - } - - /** - * @returns The contract ABI - */ - public static ABI(): ContractAbi { - const abi = [ - { - constant: false, - inputs: [ - { - name: 'target', - type: 'address', - }, - ], - name: 'addAuthorizedAddress', - outputs: [], - payable: false, - stateMutability: 'nonpayable', - type: 'function', - }, - { - constant: true, - inputs: [ - { - name: 'index_0', - type: 'uint256', - }, - ], - name: 'authorities', - outputs: [ - { - name: '', - type: 'address', - }, - ], - payable: false, - stateMutability: 'view', - type: 'function', - }, - { - constant: false, - inputs: [ - { - name: 'target', - type: 'address', - }, - ], - name: 'removeAuthorizedAddress', - outputs: [], - payable: false, - stateMutability: 'nonpayable', - type: 'function', - }, - { - constant: true, - inputs: [], - name: 'owner', - outputs: [ - { - name: '', - type: 'address', - }, - ], - payable: false, - stateMutability: 'view', - type: 'function', - }, - { - constant: false, - inputs: [ - { - name: 'target', - type: 'address', - }, - { - name: 'index', - type: 'uint256', - }, - ], - name: 'removeAuthorizedAddressAtIndex', - outputs: [], - payable: false, - stateMutability: 'nonpayable', - type: 'function', - }, - { - constant: true, - inputs: [], - name: 'getProxyId', - outputs: [ - { - name: '', - type: 'bytes4', - }, - ], - payable: false, - stateMutability: 'pure', - type: 'function', - }, - { - constant: true, - inputs: [ - { - name: 'index_0', - type: 'address', - }, - ], - name: 'authorized', - outputs: [ - { - name: '', - type: 'bool', - }, - ], - payable: false, - stateMutability: 'view', - type: 'function', - }, - { - constant: true, - inputs: [], - name: 'getAuthorizedAddresses', - outputs: [ - { - name: '', - type: 'address[]', - }, - ], - payable: false, - stateMutability: 'view', - type: 'function', - }, - { - constant: false, - inputs: [ - { - name: 'newOwner', - type: 'address', - }, - ], - name: 'transferOwnership', - outputs: [], - payable: false, - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [], - outputs: [], - payable: false, - stateMutability: 'nonpayable', - type: 'fallback', - }, - { - anonymous: false, - inputs: [ - { - name: 'target', - type: 'address', - indexed: true, - }, - { - name: 'caller', - type: 'address', - indexed: true, - }, - ], - name: 'AuthorizedAddressAdded', - outputs: [], - type: 'event', - }, - { - anonymous: false, - inputs: [ - { - name: 'target', - type: 'address', - indexed: true, - }, - { - name: 'caller', - type: 'address', - indexed: true, - }, - ], - name: 'AuthorizedAddressRemoved', - outputs: [], - type: 'event', - }, - ] as ContractAbi; - return abi; - } - - public getFunctionSignature(methodName: string): string { - const index = this._methodABIIndex[methodName]; - const methodAbi = ERC20ProxyContract.ABI()[index] as MethodAbi; // tslint:disable-line:no-unnecessary-type-assertion - const functionSignature = methodAbiToFunctionSignature(methodAbi); - return functionSignature; - } - public getABIDecodedTransactionData(methodName: string, callData: string): T { - const functionSignature = this.getFunctionSignature(methodName); - const self = (this as any) as ERC20ProxyContract; - const abiEncoder = self._lookupAbiEncoder(functionSignature); - const abiDecodedCallData = abiEncoder.strictDecode(callData); - return abiDecodedCallData; - } - public getABIDecodedReturnData(methodName: string, callData: string): T { - const functionSignature = this.getFunctionSignature(methodName); - const self = (this as any) as ERC20ProxyContract; - const abiEncoder = self._lookupAbiEncoder(functionSignature); - const abiDecodedCallData = abiEncoder.strictDecodeReturnValue(callData); - return abiDecodedCallData; - } - public getSelector(methodName: string): string { - const functionSignature = this.getFunctionSignature(methodName); - const self = (this as any) as ERC20ProxyContract; - const abiEncoder = self._lookupAbiEncoder(functionSignature); - return abiEncoder.getSelector(); - } - - /** - * Authorizes an address. - * @param target Address to authorize. - */ - public addAuthorizedAddress(target: string): ContractTxFunctionObj { - const self = (this as any) as ERC20ProxyContract; - assert.isString('target', target); - - return { - async sendTransactionAsync( - txData?: Partial | undefined, - opts: SendTransactionOpts = { shouldValidate: true }, - ): Promise { - const encodedData = self._strictEncodeArguments('addAuthorizedAddress(address)', [ - target.toLowerCase(), - ]); - const txDataWithDefaults = await BaseContract._applyDefaultsToTxDataAsync( - { - to: self.address, - ...txData, - data: encodedData, - }, - self._web3Wrapper.getContractDefaults(), - ); - if (txDataWithDefaults.from !== undefined) { - txDataWithDefaults.from = txDataWithDefaults.from.toLowerCase(); - } - - if (opts.shouldValidate !== false) { - await this.callAsync(txDataWithDefaults); - } - - const txHash = await self._web3Wrapper.sendTransactionAsync(txDataWithDefaults); - return txHash; - }, - awaitTransactionSuccessAsync( - txData?: Partial, - opts: AwaitTransactionSuccessOpts = { shouldValidate: true }, - ): PromiseWithTransactionHash { - const txHashPromise = this.sendTransactionAsync(txData, opts); - return new PromiseWithTransactionHash( - txHashPromise, - (async (): Promise => { - // When the transaction hash resolves, wait for it to be mined. - return self._web3Wrapper.awaitTransactionSuccessAsync( - await txHashPromise, - opts.pollingIntervalMs, - opts.timeoutMs, - ); - })(), - ); - }, - async estimateGasAsync(txData?: Partial | undefined): Promise { - const encodedData = self._strictEncodeArguments('addAuthorizedAddress(address)', [ - target.toLowerCase(), - ]); - const txDataWithDefaults = await BaseContract._applyDefaultsToTxDataAsync( - { - to: self.address, - ...txData, - data: encodedData, - }, - self._web3Wrapper.getContractDefaults(), - ); - if (txDataWithDefaults.from !== undefined) { - txDataWithDefaults.from = txDataWithDefaults.from.toLowerCase(); - } - - const gas = await self._web3Wrapper.estimateGasAsync(txDataWithDefaults); - return gas; - }, - async callAsync(callData: Partial = {}, defaultBlock?: BlockParam): Promise { - assert.doesConformToSchema('callData', callData, schemas.callDataSchema, [ - schemas.addressSchema, - schemas.numberSchema, - schemas.jsNumber, - ]); - if (defaultBlock !== undefined) { - assert.isBlockParam('defaultBlock', defaultBlock); - } - const encodedData = self._strictEncodeArguments('addAuthorizedAddress(address)', [ - target.toLowerCase(), - ]); - let rawCallResult; - - const callDataWithDefaults = await BaseContract._applyDefaultsToTxDataAsync( - { - to: self.address, - ...callData, - data: encodedData, - }, - self._web3Wrapper.getContractDefaults(), - ); - callDataWithDefaults.from = callDataWithDefaults.from - ? callDataWithDefaults.from.toLowerCase() - : callDataWithDefaults.from; - try { - rawCallResult = await self._web3Wrapper.callAsync(callDataWithDefaults, defaultBlock); - } catch (err) { - BaseContract._throwIfThrownErrorIsRevertError(err); - throw err; - } - - BaseContract._throwIfCallResultIsRevertError(rawCallResult); - const abiEncoder = self._lookupAbiEncoder('addAuthorizedAddress(address)'); - // tslint:disable boolean-naming - const result = abiEncoder.strictDecodeReturnValue(rawCallResult); - // tslint:enable boolean-naming - return result; - }, - getABIEncodedTransactionData(): string { - const abiEncodedTransactionData = self._strictEncodeArguments('addAuthorizedAddress(address)', [ - target.toLowerCase(), - ]); - return abiEncodedTransactionData; - }, - }; - } - public authorities(index_0: BigNumber): ContractFunctionObj { - const self = (this as any) as ERC20ProxyContract; - assert.isBigNumber('index_0', index_0); - - return { - async callAsync(callData: Partial = {}, defaultBlock?: BlockParam): Promise { - assert.doesConformToSchema('callData', callData, schemas.callDataSchema, [ - schemas.addressSchema, - schemas.numberSchema, - schemas.jsNumber, - ]); - if (defaultBlock !== undefined) { - assert.isBlockParam('defaultBlock', defaultBlock); - } - const encodedData = self._strictEncodeArguments('authorities(uint256)', [index_0]); - let rawCallResult; - - const callDataWithDefaults = await BaseContract._applyDefaultsToTxDataAsync( - { - to: self.address, - ...callData, - data: encodedData, - }, - self._web3Wrapper.getContractDefaults(), - ); - callDataWithDefaults.from = callDataWithDefaults.from - ? callDataWithDefaults.from.toLowerCase() - : callDataWithDefaults.from; - try { - rawCallResult = await self._web3Wrapper.callAsync(callDataWithDefaults, defaultBlock); - } catch (err) { - BaseContract._throwIfThrownErrorIsRevertError(err); - throw err; - } - - BaseContract._throwIfCallResultIsRevertError(rawCallResult); - const abiEncoder = self._lookupAbiEncoder('authorities(uint256)'); - // tslint:disable boolean-naming - const result = abiEncoder.strictDecodeReturnValue(rawCallResult); - // tslint:enable boolean-naming - return result; - }, - getABIEncodedTransactionData(): string { - const abiEncodedTransactionData = self._strictEncodeArguments('authorities(uint256)', [index_0]); - return abiEncodedTransactionData; - }, - }; - } - /** - * Removes authorizion of an address. - * @param target Address to remove authorization from. - */ - public removeAuthorizedAddress(target: string): ContractTxFunctionObj { - const self = (this as any) as ERC20ProxyContract; - assert.isString('target', target); - - return { - async sendTransactionAsync( - txData?: Partial | undefined, - opts: SendTransactionOpts = { shouldValidate: true }, - ): Promise { - const encodedData = self._strictEncodeArguments('removeAuthorizedAddress(address)', [ - target.toLowerCase(), - ]); - const txDataWithDefaults = await BaseContract._applyDefaultsToTxDataAsync( - { - to: self.address, - ...txData, - data: encodedData, - }, - self._web3Wrapper.getContractDefaults(), - ); - if (txDataWithDefaults.from !== undefined) { - txDataWithDefaults.from = txDataWithDefaults.from.toLowerCase(); - } - - if (opts.shouldValidate !== false) { - await this.callAsync(txDataWithDefaults); - } - - const txHash = await self._web3Wrapper.sendTransactionAsync(txDataWithDefaults); - return txHash; - }, - awaitTransactionSuccessAsync( - txData?: Partial, - opts: AwaitTransactionSuccessOpts = { shouldValidate: true }, - ): PromiseWithTransactionHash { - const txHashPromise = this.sendTransactionAsync(txData, opts); - return new PromiseWithTransactionHash( - txHashPromise, - (async (): Promise => { - // When the transaction hash resolves, wait for it to be mined. - return self._web3Wrapper.awaitTransactionSuccessAsync( - await txHashPromise, - opts.pollingIntervalMs, - opts.timeoutMs, - ); - })(), - ); - }, - async estimateGasAsync(txData?: Partial | undefined): Promise { - const encodedData = self._strictEncodeArguments('removeAuthorizedAddress(address)', [ - target.toLowerCase(), - ]); - const txDataWithDefaults = await BaseContract._applyDefaultsToTxDataAsync( - { - to: self.address, - ...txData, - data: encodedData, - }, - self._web3Wrapper.getContractDefaults(), - ); - if (txDataWithDefaults.from !== undefined) { - txDataWithDefaults.from = txDataWithDefaults.from.toLowerCase(); - } - - const gas = await self._web3Wrapper.estimateGasAsync(txDataWithDefaults); - return gas; - }, - async callAsync(callData: Partial = {}, defaultBlock?: BlockParam): Promise { - assert.doesConformToSchema('callData', callData, schemas.callDataSchema, [ - schemas.addressSchema, - schemas.numberSchema, - schemas.jsNumber, - ]); - if (defaultBlock !== undefined) { - assert.isBlockParam('defaultBlock', defaultBlock); - } - const encodedData = self._strictEncodeArguments('removeAuthorizedAddress(address)', [ - target.toLowerCase(), - ]); - let rawCallResult; - - const callDataWithDefaults = await BaseContract._applyDefaultsToTxDataAsync( - { - to: self.address, - ...callData, - data: encodedData, - }, - self._web3Wrapper.getContractDefaults(), - ); - callDataWithDefaults.from = callDataWithDefaults.from - ? callDataWithDefaults.from.toLowerCase() - : callDataWithDefaults.from; - try { - rawCallResult = await self._web3Wrapper.callAsync(callDataWithDefaults, defaultBlock); - } catch (err) { - BaseContract._throwIfThrownErrorIsRevertError(err); - throw err; - } - - BaseContract._throwIfCallResultIsRevertError(rawCallResult); - const abiEncoder = self._lookupAbiEncoder('removeAuthorizedAddress(address)'); - // tslint:disable boolean-naming - const result = abiEncoder.strictDecodeReturnValue(rawCallResult); - // tslint:enable boolean-naming - return result; - }, - getABIEncodedTransactionData(): string { - const abiEncodedTransactionData = self._strictEncodeArguments('removeAuthorizedAddress(address)', [ - target.toLowerCase(), - ]); - return abiEncodedTransactionData; - }, - }; - } - public owner(): ContractFunctionObj { - const self = (this as any) as ERC20ProxyContract; - - return { - async callAsync(callData: Partial = {}, defaultBlock?: BlockParam): Promise { - assert.doesConformToSchema('callData', callData, schemas.callDataSchema, [ - schemas.addressSchema, - schemas.numberSchema, - schemas.jsNumber, - ]); - if (defaultBlock !== undefined) { - assert.isBlockParam('defaultBlock', defaultBlock); - } - const encodedData = self._strictEncodeArguments('owner()', []); - let rawCallResult; - - const callDataWithDefaults = await BaseContract._applyDefaultsToTxDataAsync( - { - to: self.address, - ...callData, - data: encodedData, - }, - self._web3Wrapper.getContractDefaults(), - ); - callDataWithDefaults.from = callDataWithDefaults.from - ? callDataWithDefaults.from.toLowerCase() - : callDataWithDefaults.from; - try { - rawCallResult = await self._web3Wrapper.callAsync(callDataWithDefaults, defaultBlock); - } catch (err) { - BaseContract._throwIfThrownErrorIsRevertError(err); - throw err; - } - - BaseContract._throwIfCallResultIsRevertError(rawCallResult); - const abiEncoder = self._lookupAbiEncoder('owner()'); - // tslint:disable boolean-naming - const result = abiEncoder.strictDecodeReturnValue(rawCallResult); - // tslint:enable boolean-naming - return result; - }, - getABIEncodedTransactionData(): string { - const abiEncodedTransactionData = self._strictEncodeArguments('owner()', []); - return abiEncodedTransactionData; - }, - }; - } - /** - * Removes authorizion of an address. - * @param target Address to remove authorization from. - * @param index Index of target in authorities array. - */ - public removeAuthorizedAddressAtIndex(target: string, index: BigNumber): ContractTxFunctionObj { - const self = (this as any) as ERC20ProxyContract; - assert.isString('target', target); - assert.isBigNumber('index', index); - - return { - async sendTransactionAsync( - txData?: Partial | undefined, - opts: SendTransactionOpts = { shouldValidate: true }, - ): Promise { - const encodedData = self._strictEncodeArguments('removeAuthorizedAddressAtIndex(address,uint256)', [ - target.toLowerCase(), - index, - ]); - const txDataWithDefaults = await BaseContract._applyDefaultsToTxDataAsync( - { - to: self.address, - ...txData, - data: encodedData, - }, - self._web3Wrapper.getContractDefaults(), - ); - if (txDataWithDefaults.from !== undefined) { - txDataWithDefaults.from = txDataWithDefaults.from.toLowerCase(); - } - - if (opts.shouldValidate !== false) { - await this.callAsync(txDataWithDefaults); - } - - const txHash = await self._web3Wrapper.sendTransactionAsync(txDataWithDefaults); - return txHash; - }, - awaitTransactionSuccessAsync( - txData?: Partial, - opts: AwaitTransactionSuccessOpts = { shouldValidate: true }, - ): PromiseWithTransactionHash { - const txHashPromise = this.sendTransactionAsync(txData, opts); - return new PromiseWithTransactionHash( - txHashPromise, - (async (): Promise => { - // When the transaction hash resolves, wait for it to be mined. - return self._web3Wrapper.awaitTransactionSuccessAsync( - await txHashPromise, - opts.pollingIntervalMs, - opts.timeoutMs, - ); - })(), - ); - }, - async estimateGasAsync(txData?: Partial | undefined): Promise { - const encodedData = self._strictEncodeArguments('removeAuthorizedAddressAtIndex(address,uint256)', [ - target.toLowerCase(), - index, - ]); - const txDataWithDefaults = await BaseContract._applyDefaultsToTxDataAsync( - { - to: self.address, - ...txData, - data: encodedData, - }, - self._web3Wrapper.getContractDefaults(), - ); - if (txDataWithDefaults.from !== undefined) { - txDataWithDefaults.from = txDataWithDefaults.from.toLowerCase(); - } - - const gas = await self._web3Wrapper.estimateGasAsync(txDataWithDefaults); - return gas; - }, - async callAsync(callData: Partial = {}, defaultBlock?: BlockParam): Promise { - assert.doesConformToSchema('callData', callData, schemas.callDataSchema, [ - schemas.addressSchema, - schemas.numberSchema, - schemas.jsNumber, - ]); - if (defaultBlock !== undefined) { - assert.isBlockParam('defaultBlock', defaultBlock); - } - const encodedData = self._strictEncodeArguments('removeAuthorizedAddressAtIndex(address,uint256)', [ - target.toLowerCase(), - index, - ]); - let rawCallResult; - - const callDataWithDefaults = await BaseContract._applyDefaultsToTxDataAsync( - { - to: self.address, - ...callData, - data: encodedData, - }, - self._web3Wrapper.getContractDefaults(), - ); - callDataWithDefaults.from = callDataWithDefaults.from - ? callDataWithDefaults.from.toLowerCase() - : callDataWithDefaults.from; - try { - rawCallResult = await self._web3Wrapper.callAsync(callDataWithDefaults, defaultBlock); - } catch (err) { - BaseContract._throwIfThrownErrorIsRevertError(err); - throw err; - } - - BaseContract._throwIfCallResultIsRevertError(rawCallResult); - const abiEncoder = self._lookupAbiEncoder('removeAuthorizedAddressAtIndex(address,uint256)'); - // tslint:disable boolean-naming - const result = abiEncoder.strictDecodeReturnValue(rawCallResult); - // tslint:enable boolean-naming - return result; - }, - getABIEncodedTransactionData(): string { - const abiEncodedTransactionData = self._strictEncodeArguments( - 'removeAuthorizedAddressAtIndex(address,uint256)', - [target.toLowerCase(), index], - ); - return abiEncodedTransactionData; - }, - }; - } - /** - * Gets the proxy id associated with the proxy address. - * @returns Proxy id. - */ - public getProxyId(): ContractFunctionObj { - const self = (this as any) as ERC20ProxyContract; - - return { - async callAsync(callData: Partial = {}, defaultBlock?: BlockParam): Promise { - assert.doesConformToSchema('callData', callData, schemas.callDataSchema, [ - schemas.addressSchema, - schemas.numberSchema, - schemas.jsNumber, - ]); - if (defaultBlock !== undefined) { - assert.isBlockParam('defaultBlock', defaultBlock); - } - const encodedData = self._strictEncodeArguments('getProxyId()', []); - let rawCallResult; - - const encodedDataBytes = Buffer.from(encodedData.substr(2), 'hex'); - try { - rawCallResult = await self._evmExecAsync(encodedDataBytes); - } catch (err) { - BaseContract._throwIfThrownErrorIsRevertError(err); - throw err; - } - - BaseContract._throwIfCallResultIsRevertError(rawCallResult); - const abiEncoder = self._lookupAbiEncoder('getProxyId()'); - // tslint:disable boolean-naming - const result = abiEncoder.strictDecodeReturnValue(rawCallResult); - // tslint:enable boolean-naming - return result; - }, - getABIEncodedTransactionData(): string { - const abiEncodedTransactionData = self._strictEncodeArguments('getProxyId()', []); - return abiEncodedTransactionData; - }, - }; - } - public authorized(index_0: string): ContractFunctionObj { - const self = (this as any) as ERC20ProxyContract; - assert.isString('index_0', index_0); - - return { - async callAsync(callData: Partial = {}, defaultBlock?: BlockParam): Promise { - assert.doesConformToSchema('callData', callData, schemas.callDataSchema, [ - schemas.addressSchema, - schemas.numberSchema, - schemas.jsNumber, - ]); - if (defaultBlock !== undefined) { - assert.isBlockParam('defaultBlock', defaultBlock); - } - const encodedData = self._strictEncodeArguments('authorized(address)', [index_0.toLowerCase()]); - let rawCallResult; - - const callDataWithDefaults = await BaseContract._applyDefaultsToTxDataAsync( - { - to: self.address, - ...callData, - data: encodedData, - }, - self._web3Wrapper.getContractDefaults(), - ); - callDataWithDefaults.from = callDataWithDefaults.from - ? callDataWithDefaults.from.toLowerCase() - : callDataWithDefaults.from; - try { - rawCallResult = await self._web3Wrapper.callAsync(callDataWithDefaults, defaultBlock); - } catch (err) { - BaseContract._throwIfThrownErrorIsRevertError(err); - throw err; - } - - BaseContract._throwIfCallResultIsRevertError(rawCallResult); - const abiEncoder = self._lookupAbiEncoder('authorized(address)'); - // tslint:disable boolean-naming - const result = abiEncoder.strictDecodeReturnValue(rawCallResult); - // tslint:enable boolean-naming - return result; - }, - getABIEncodedTransactionData(): string { - const abiEncodedTransactionData = self._strictEncodeArguments('authorized(address)', [ - index_0.toLowerCase(), - ]); - return abiEncodedTransactionData; - }, - }; - } - /** - * Gets all authorized addresses. - * @returns Array of authorized addresses. - */ - public getAuthorizedAddresses(): ContractFunctionObj { - const self = (this as any) as ERC20ProxyContract; - - return { - async callAsync(callData: Partial = {}, defaultBlock?: BlockParam): Promise { - assert.doesConformToSchema('callData', callData, schemas.callDataSchema, [ - schemas.addressSchema, - schemas.numberSchema, - schemas.jsNumber, - ]); - if (defaultBlock !== undefined) { - assert.isBlockParam('defaultBlock', defaultBlock); - } - const encodedData = self._strictEncodeArguments('getAuthorizedAddresses()', []); - let rawCallResult; - - const callDataWithDefaults = await BaseContract._applyDefaultsToTxDataAsync( - { - to: self.address, - ...callData, - data: encodedData, - }, - self._web3Wrapper.getContractDefaults(), - ); - callDataWithDefaults.from = callDataWithDefaults.from - ? callDataWithDefaults.from.toLowerCase() - : callDataWithDefaults.from; - try { - rawCallResult = await self._web3Wrapper.callAsync(callDataWithDefaults, defaultBlock); - } catch (err) { - BaseContract._throwIfThrownErrorIsRevertError(err); - throw err; - } - - BaseContract._throwIfCallResultIsRevertError(rawCallResult); - const abiEncoder = self._lookupAbiEncoder('getAuthorizedAddresses()'); - // tslint:disable boolean-naming - const result = abiEncoder.strictDecodeReturnValue(rawCallResult); - // tslint:enable boolean-naming - return result; - }, - getABIEncodedTransactionData(): string { - const abiEncodedTransactionData = self._strictEncodeArguments('getAuthorizedAddresses()', []); - return abiEncodedTransactionData; - }, - }; - } - public transferOwnership(newOwner: string): ContractTxFunctionObj { - const self = (this as any) as ERC20ProxyContract; - assert.isString('newOwner', newOwner); - - return { - async sendTransactionAsync( - txData?: Partial | undefined, - opts: SendTransactionOpts = { shouldValidate: true }, - ): Promise { - const encodedData = self._strictEncodeArguments('transferOwnership(address)', [newOwner.toLowerCase()]); - const txDataWithDefaults = await BaseContract._applyDefaultsToTxDataAsync( - { - to: self.address, - ...txData, - data: encodedData, - }, - self._web3Wrapper.getContractDefaults(), - ); - if (txDataWithDefaults.from !== undefined) { - txDataWithDefaults.from = txDataWithDefaults.from.toLowerCase(); - } - - if (opts.shouldValidate !== false) { - await this.callAsync(txDataWithDefaults); - } - - const txHash = await self._web3Wrapper.sendTransactionAsync(txDataWithDefaults); - return txHash; - }, - awaitTransactionSuccessAsync( - txData?: Partial, - opts: AwaitTransactionSuccessOpts = { shouldValidate: true }, - ): PromiseWithTransactionHash { - const txHashPromise = this.sendTransactionAsync(txData, opts); - return new PromiseWithTransactionHash( - txHashPromise, - (async (): Promise => { - // When the transaction hash resolves, wait for it to be mined. - return self._web3Wrapper.awaitTransactionSuccessAsync( - await txHashPromise, - opts.pollingIntervalMs, - opts.timeoutMs, - ); - })(), - ); - }, - async estimateGasAsync(txData?: Partial | undefined): Promise { - const encodedData = self._strictEncodeArguments('transferOwnership(address)', [newOwner.toLowerCase()]); - const txDataWithDefaults = await BaseContract._applyDefaultsToTxDataAsync( - { - to: self.address, - ...txData, - data: encodedData, - }, - self._web3Wrapper.getContractDefaults(), - ); - if (txDataWithDefaults.from !== undefined) { - txDataWithDefaults.from = txDataWithDefaults.from.toLowerCase(); - } - - const gas = await self._web3Wrapper.estimateGasAsync(txDataWithDefaults); - return gas; - }, - async callAsync(callData: Partial = {}, defaultBlock?: BlockParam): Promise { - assert.doesConformToSchema('callData', callData, schemas.callDataSchema, [ - schemas.addressSchema, - schemas.numberSchema, - schemas.jsNumber, - ]); - if (defaultBlock !== undefined) { - assert.isBlockParam('defaultBlock', defaultBlock); - } - const encodedData = self._strictEncodeArguments('transferOwnership(address)', [newOwner.toLowerCase()]); - let rawCallResult; - - const callDataWithDefaults = await BaseContract._applyDefaultsToTxDataAsync( - { - to: self.address, - ...callData, - data: encodedData, - }, - self._web3Wrapper.getContractDefaults(), - ); - callDataWithDefaults.from = callDataWithDefaults.from - ? callDataWithDefaults.from.toLowerCase() - : callDataWithDefaults.from; - try { - rawCallResult = await self._web3Wrapper.callAsync(callDataWithDefaults, defaultBlock); - } catch (err) { - BaseContract._throwIfThrownErrorIsRevertError(err); - throw err; - } - - BaseContract._throwIfCallResultIsRevertError(rawCallResult); - const abiEncoder = self._lookupAbiEncoder('transferOwnership(address)'); - // tslint:disable boolean-naming - const result = abiEncoder.strictDecodeReturnValue(rawCallResult); - // tslint:enable boolean-naming - return result; - }, - getABIEncodedTransactionData(): string { - const abiEncodedTransactionData = self._strictEncodeArguments('transferOwnership(address)', [ - newOwner.toLowerCase(), - ]); - return abiEncodedTransactionData; - }, - }; - } - - /** - * Subscribe to an event type emitted by the ERC20Proxy contract. - * @param eventName The ERC20Proxy contract event you would like to subscribe to. - * @param indexFilterValues 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}` - * @param callback Callback that gets called when a log is added/removed - * @param isVerbose Enable verbose subscription warnings (e.g recoverable network issues encountered) - * @return Subscription token used later to unsubscribe - */ - public subscribe( - eventName: ERC20ProxyEvents, - indexFilterValues: IndexedFilterValues, - callback: EventCallback, - isVerbose: boolean = false, - blockPollingIntervalMs?: number, - ): string { - assert.doesBelongToStringEnum('eventName', eventName, ERC20ProxyEvents); - assert.doesConformToSchema('indexFilterValues', indexFilterValues, schemas.indexFilterValuesSchema); - assert.isFunction('callback', callback); - const subscriptionToken = this._subscriptionManager.subscribe( - this.address, - eventName, - indexFilterValues, - ERC20ProxyContract.ABI(), - callback, - isVerbose, - blockPollingIntervalMs, - ); - return subscriptionToken; - } - /** - * Cancel a subscription - * @param subscriptionToken Subscription token returned by `subscribe()` - */ - public unsubscribe(subscriptionToken: string): void { - this._subscriptionManager.unsubscribe(subscriptionToken); - } - /** - * Cancels all existing subscriptions - */ - public unsubscribeAll(): void { - this._subscriptionManager.unsubscribeAll(); - } - /** - * Gets historical logs without creating a subscription - * @param eventName The ERC20Proxy contract event you would like to subscribe to. - * @param blockRange Block range to get logs from. - * @param indexFilterValues 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}` - * @return Array of logs that match the parameters - */ - public async getLogsAsync( - eventName: ERC20ProxyEvents, - blockRange: BlockRange, - indexFilterValues: IndexedFilterValues, - ): Promise>> { - assert.doesBelongToStringEnum('eventName', eventName, ERC20ProxyEvents); - assert.doesConformToSchema('blockRange', blockRange, schemas.blockRangeSchema); - assert.doesConformToSchema('indexFilterValues', indexFilterValues, schemas.indexFilterValuesSchema); - const logs = await this._subscriptionManager.getLogsAsync( - this.address, - eventName, - blockRange, - indexFilterValues, - ERC20ProxyContract.ABI(), - ); - return logs; - } - constructor( - address: string, - supportedProvider: SupportedProvider, - txDefaults?: Partial, - logDecodeDependencies?: { [contractName: string]: ContractAbi }, - deployedBytecode: string | undefined = ERC20ProxyContract.deployedBytecode, - ) { - super( - 'ERC20Proxy', - ERC20ProxyContract.ABI(), - address, - supportedProvider, - txDefaults, - logDecodeDependencies, - deployedBytecode, - ); - classUtils.bindAll(this, ['_abiEncoderByFunctionSignature', 'address', '_web3Wrapper']); - this._subscriptionManager = new SubscriptionManager( - ERC20ProxyContract.ABI(), - this._web3Wrapper, - ); - ERC20ProxyContract.ABI().forEach((item, index) => { - if (item.type === 'function') { - const methodAbi = item as MethodAbi; - this._methodABIIndex[methodAbi.name] = index; - } - }); - } -} - -// tslint:disable:max-file-line-count -// tslint:enable:no-unbound-method no-parameter-reassignment no-consecutive-blank-lines ordered-imports align -// tslint:enable:trailing-comma whitespace no-trailing-whitespace diff --git a/packages/abi-gen-wrappers/src/generated-wrappers/erc721_proxy.ts b/packages/abi-gen-wrappers/src/generated-wrappers/erc721_proxy.ts deleted file mode 100644 index c348b19b1e..0000000000 --- a/packages/abi-gen-wrappers/src/generated-wrappers/erc721_proxy.ts +++ /dev/null @@ -1,1156 +0,0 @@ -// tslint:disable:no-consecutive-blank-lines ordered-imports align trailing-comma enum-naming -// tslint:disable:whitespace no-unbound-method no-trailing-whitespace -// tslint:disable:no-unused-variable -import { - AwaitTransactionSuccessOpts, - ContractFunctionObj, - ContractTxFunctionObj, - SendTransactionOpts, - BaseContract, - SubscriptionManager, - PromiseWithTransactionHash, - methodAbiToFunctionSignature, -} from '@0x/base-contract'; -import { schemas } from '@0x/json-schemas'; -import { - BlockParam, - BlockParamLiteral, - BlockRange, - CallData, - ContractAbi, - ContractArtifact, - DecodedLogArgs, - LogWithDecodedArgs, - MethodAbi, - TransactionReceiptWithDecodedLogs, - TxData, - TxDataPayable, - SupportedProvider, -} from 'ethereum-types'; -import { BigNumber, classUtils, logUtils, providerUtils } from '@0x/utils'; -import { EventCallback, IndexedFilterValues, SimpleContractArtifact } from '@0x/types'; -import { Web3Wrapper } from '@0x/web3-wrapper'; -import { assert } from '@0x/assert'; -import * as ethers from 'ethers'; -// tslint:enable:no-unused-variable - -export type ERC721ProxyEventArgs = - | ERC721ProxyAuthorizedAddressAddedEventArgs - | ERC721ProxyAuthorizedAddressRemovedEventArgs; - -export enum ERC721ProxyEvents { - AuthorizedAddressAdded = 'AuthorizedAddressAdded', - AuthorizedAddressRemoved = 'AuthorizedAddressRemoved', -} - -export interface ERC721ProxyAuthorizedAddressAddedEventArgs extends DecodedLogArgs { - target: string; - caller: string; -} - -export interface ERC721ProxyAuthorizedAddressRemovedEventArgs extends DecodedLogArgs { - target: string; - caller: string; -} - -/* istanbul ignore next */ -// tslint:disable:no-parameter-reassignment -// tslint:disable-next-line:class-name -export class ERC721ProxyContract extends BaseContract { - /** - * @ignore - */ - public static deployedBytecode = - '0x608060405234801561001057600080fd5b50600436106100a35760003560e01c80639ad2674411610076578063b91816111161005b578063b9181611146103ea578063d39de6e914610431578063f2fde38b14610489576100a3565b80639ad2674414610374578063ae25532e146103ad576100a3565b806342f1181e146102be578063494503d4146102f357806370712939146103395780638da5cb5b1461036c575b7fffffffff00000000000000000000000000000000000000000000000000000000600035167fa85e59e4000000000000000000000000000000000000000000000000000000008114156102b857604080513381526001602082015290812054610177577f08c379a0000000000000000000000000000000000000000000000000000000006000527c20000000000000000000000000000000000000000000000000000000006020527c1553454e4445525f4e4f545f415554484f52495a454400000000000000604052600060605260646000fd5b50600160643503156101f4577f08c379a0000000000000000000000000000000000000000000000000000000006000527c20000000000000000000000000000000000000000000000000000000006020527c0e494e56414c49445f414d4f554e540000000000000000000000000000604052600060605260646000fd5b7f23b872dd000000000000000000000000000000000000000000000000000000006000526040602460043760043560206048820160443760288101356000806064600080855af1915050801561024657005b507f08c379a0000000000000000000000000000000000000000000000000000000006000527c20000000000000000000000000000000000000000000000000000000006020527c0f5452414e534645525f4641494c454400000000000000000000000000604052600060605260646000fd5b50600080fd5b6102f1600480360360208110156102d457600080fd5b503573ffffffffffffffffffffffffffffffffffffffff166104bc565b005b6103106004803603602081101561030957600080fd5b50356106a8565b6040805173ffffffffffffffffffffffffffffffffffffffff9092168252519081900360200190f35b6102f16004803603602081101561034f57600080fd5b503573ffffffffffffffffffffffffffffffffffffffff166106dc565b6103106109cf565b6102f16004803603604081101561038a57600080fd5b5073ffffffffffffffffffffffffffffffffffffffff81351690602001356109eb565b6103b5610d9c565b604080517fffffffff000000000000000000000000000000000000000000000000000000009092168252519081900360200190f35b61041d6004803603602081101561040057600080fd5b503573ffffffffffffffffffffffffffffffffffffffff16610dd2565b604080519115158252519081900360200190f35b610439610de7565b60408051602080825283518183015283519192839290830191858101910280838360005b8381101561047557818101518382015260200161045d565b505050509050019250505060405180910390f35b6102f16004803603602081101561049f57600080fd5b503573ffffffffffffffffffffffffffffffffffffffff16610e56565b60005473ffffffffffffffffffffffffffffffffffffffff16331461054257604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601360248201527f4f4e4c595f434f4e54524143545f4f574e455200000000000000000000000000604482015290519081900360640190fd5b73ffffffffffffffffffffffffffffffffffffffff811660009081526001602052604090205460ff16156105d757604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601960248201527f5441524745545f414c52454144595f415554484f52495a454400000000000000604482015290519081900360640190fd5b73ffffffffffffffffffffffffffffffffffffffff8116600081815260016020819052604080832080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00168317905560028054928301815583527f405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5ace90910180547fffffffffffffffffffffffff00000000000000000000000000000000000000001684179055513392917f3147867c59d17e8fa9d522465651d44aae0a9e38f902f3475b97e58072f0ed4c91a350565b600281815481106106b557fe5b60009182526020909120015473ffffffffffffffffffffffffffffffffffffffff16905081565b60005473ffffffffffffffffffffffffffffffffffffffff16331461076257604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601360248201527f4f4e4c595f434f4e54524143545f4f574e455200000000000000000000000000604482015290519081900360640190fd5b73ffffffffffffffffffffffffffffffffffffffff811660009081526001602052604090205460ff166107f657604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601560248201527f5441524745545f4e4f545f415554484f52495a45440000000000000000000000604482015290519081900360640190fd5b73ffffffffffffffffffffffffffffffffffffffff8116600090815260016020526040812080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001690555b600254811015610988578173ffffffffffffffffffffffffffffffffffffffff166002828154811061087057fe5b60009182526020909120015473ffffffffffffffffffffffffffffffffffffffff16141561098057600280547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff81019081106108c857fe5b6000918252602090912001546002805473ffffffffffffffffffffffffffffffffffffffff90921691839081106108fb57fe5b600091825260209091200180547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff92909216919091179055600280547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff019061097a9082610f3c565b50610988565b600101610842565b50604051339073ffffffffffffffffffffffffffffffffffffffff8316907f1f32c1b084e2de0713b8fb16bd46bb9df710a3dbeae2f3ca93af46e016dcc6b090600090a350565b60005473ffffffffffffffffffffffffffffffffffffffff1681565b60005473ffffffffffffffffffffffffffffffffffffffff163314610a7157604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601360248201527f4f4e4c595f434f4e54524143545f4f574e455200000000000000000000000000604482015290519081900360640190fd5b73ffffffffffffffffffffffffffffffffffffffff821660009081526001602052604090205460ff16610b0557604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601560248201527f5441524745545f4e4f545f415554484f52495a45440000000000000000000000604482015290519081900360640190fd5b6002548110610b7557604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601360248201527f494e4445585f4f55545f4f465f424f554e445300000000000000000000000000604482015290519081900360640190fd5b8173ffffffffffffffffffffffffffffffffffffffff1660028281548110610b9957fe5b60009182526020909120015473ffffffffffffffffffffffffffffffffffffffff1614610c2757604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601b60248201527f415554484f52495a45445f414444524553535f4d49534d415443480000000000604482015290519081900360640190fd5b73ffffffffffffffffffffffffffffffffffffffff8216600090815260016020526040902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00169055600280547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8101908110610ca257fe5b6000918252602090912001546002805473ffffffffffffffffffffffffffffffffffffffff9092169183908110610cd557fe5b600091825260209091200180547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff92909216919091179055600280547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0190610d549082610f3c565b50604051339073ffffffffffffffffffffffffffffffffffffffff8416907f1f32c1b084e2de0713b8fb16bd46bb9df710a3dbeae2f3ca93af46e016dcc6b090600090a35050565b604080517f455243373231546f6b656e28616464726573732c75696e7432353629000000008152905190819003601c0190205b90565b60016020526000908152604090205460ff1681565b60606002805480602002602001604051908101604052809291908181526020018280548015610e4c57602002820191906000526020600020905b815473ffffffffffffffffffffffffffffffffffffffff168152600190910190602001808311610e21575b5050505050905090565b60005473ffffffffffffffffffffffffffffffffffffffff163314610edc57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601360248201527f4f4e4c595f434f4e54524143545f4f574e455200000000000000000000000000604482015290519081900360640190fd5b73ffffffffffffffffffffffffffffffffffffffff811615610f3957600080547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff83161790555b50565b815481835581811115610f6057600083815260209020610f60918101908301610f65565b505050565b610dcf91905b80821115610f7f5760008155600101610f6b565b509056fea265627a7a723158201e53a891f6df3931041b820f71387e9eecd97f7ea0d346c54fab37668bd022ec64736f6c634300050b0032'; - private readonly _methodABIIndex: { [name: string]: number } = {}; - private readonly _subscriptionManager: SubscriptionManager; - public static async deployFrom0xArtifactAsync( - artifact: ContractArtifact | SimpleContractArtifact, - supportedProvider: SupportedProvider, - txDefaults: Partial, - logDecodeDependencies: { [contractName: string]: ContractArtifact | SimpleContractArtifact }, - ): Promise { - assert.doesConformToSchema('txDefaults', txDefaults, schemas.txDataSchema, [ - schemas.addressSchema, - schemas.numberSchema, - schemas.jsNumber, - ]); - if (artifact.compilerOutput === undefined) { - throw new Error('Compiler output not found in the artifact file'); - } - const provider = providerUtils.standardizeOrThrow(supportedProvider); - const bytecode = artifact.compilerOutput.evm.bytecode.object; - const abi = artifact.compilerOutput.abi; - const logDecodeDependenciesAbiOnly: { [contractName: string]: ContractAbi } = {}; - if (Object.keys(logDecodeDependencies) !== undefined) { - for (const key of Object.keys(logDecodeDependencies)) { - logDecodeDependenciesAbiOnly[key] = logDecodeDependencies[key].compilerOutput.abi; - } - } - return ERC721ProxyContract.deployAsync(bytecode, abi, provider, txDefaults, logDecodeDependenciesAbiOnly); - } - public static async deployAsync( - bytecode: string, - abi: ContractAbi, - supportedProvider: SupportedProvider, - txDefaults: Partial, - logDecodeDependencies: { [contractName: string]: ContractAbi }, - ): Promise { - assert.isHexString('bytecode', bytecode); - assert.doesConformToSchema('txDefaults', txDefaults, schemas.txDataSchema, [ - schemas.addressSchema, - schemas.numberSchema, - schemas.jsNumber, - ]); - const provider = providerUtils.standardizeOrThrow(supportedProvider); - const constructorAbi = BaseContract._lookupConstructorAbi(abi); - [] = BaseContract._formatABIDataItemList(constructorAbi.inputs, [], BaseContract._bigNumberToString); - const iface = new ethers.utils.Interface(abi); - const deployInfo = iface.deployFunction; - const txData = deployInfo.encode(bytecode, []); - const web3Wrapper = new Web3Wrapper(provider); - const txDataWithDefaults = await BaseContract._applyDefaultsToTxDataAsync( - { data: txData }, - txDefaults, - web3Wrapper.estimateGasAsync.bind(web3Wrapper), - ); - const txHash = await web3Wrapper.sendTransactionAsync(txDataWithDefaults); - logUtils.log(`transactionHash: ${txHash}`); - const txReceipt = await web3Wrapper.awaitTransactionSuccessAsync(txHash); - logUtils.log(`ERC721Proxy successfully deployed at ${txReceipt.contractAddress}`); - const contractInstance = new ERC721ProxyContract( - txReceipt.contractAddress as string, - provider, - txDefaults, - logDecodeDependencies, - ); - contractInstance.constructorArgs = []; - return contractInstance; - } - - /** - * @returns The contract ABI - */ - public static ABI(): ContractAbi { - const abi = [ - { - constant: false, - inputs: [ - { - name: 'target', - type: 'address', - }, - ], - name: 'addAuthorizedAddress', - outputs: [], - payable: false, - stateMutability: 'nonpayable', - type: 'function', - }, - { - constant: true, - inputs: [ - { - name: 'index_0', - type: 'uint256', - }, - ], - name: 'authorities', - outputs: [ - { - name: '', - type: 'address', - }, - ], - payable: false, - stateMutability: 'view', - type: 'function', - }, - { - constant: false, - inputs: [ - { - name: 'target', - type: 'address', - }, - ], - name: 'removeAuthorizedAddress', - outputs: [], - payable: false, - stateMutability: 'nonpayable', - type: 'function', - }, - { - constant: true, - inputs: [], - name: 'owner', - outputs: [ - { - name: '', - type: 'address', - }, - ], - payable: false, - stateMutability: 'view', - type: 'function', - }, - { - constant: false, - inputs: [ - { - name: 'target', - type: 'address', - }, - { - name: 'index', - type: 'uint256', - }, - ], - name: 'removeAuthorizedAddressAtIndex', - outputs: [], - payable: false, - stateMutability: 'nonpayable', - type: 'function', - }, - { - constant: true, - inputs: [], - name: 'getProxyId', - outputs: [ - { - name: '', - type: 'bytes4', - }, - ], - payable: false, - stateMutability: 'pure', - type: 'function', - }, - { - constant: true, - inputs: [ - { - name: 'index_0', - type: 'address', - }, - ], - name: 'authorized', - outputs: [ - { - name: '', - type: 'bool', - }, - ], - payable: false, - stateMutability: 'view', - type: 'function', - }, - { - constant: true, - inputs: [], - name: 'getAuthorizedAddresses', - outputs: [ - { - name: '', - type: 'address[]', - }, - ], - payable: false, - stateMutability: 'view', - type: 'function', - }, - { - constant: false, - inputs: [ - { - name: 'newOwner', - type: 'address', - }, - ], - name: 'transferOwnership', - outputs: [], - payable: false, - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [], - outputs: [], - payable: false, - stateMutability: 'nonpayable', - type: 'fallback', - }, - { - anonymous: false, - inputs: [ - { - name: 'target', - type: 'address', - indexed: true, - }, - { - name: 'caller', - type: 'address', - indexed: true, - }, - ], - name: 'AuthorizedAddressAdded', - outputs: [], - type: 'event', - }, - { - anonymous: false, - inputs: [ - { - name: 'target', - type: 'address', - indexed: true, - }, - { - name: 'caller', - type: 'address', - indexed: true, - }, - ], - name: 'AuthorizedAddressRemoved', - outputs: [], - type: 'event', - }, - ] as ContractAbi; - return abi; - } - - public getFunctionSignature(methodName: string): string { - const index = this._methodABIIndex[methodName]; - const methodAbi = ERC721ProxyContract.ABI()[index] as MethodAbi; // tslint:disable-line:no-unnecessary-type-assertion - const functionSignature = methodAbiToFunctionSignature(methodAbi); - return functionSignature; - } - public getABIDecodedTransactionData(methodName: string, callData: string): T { - const functionSignature = this.getFunctionSignature(methodName); - const self = (this as any) as ERC721ProxyContract; - const abiEncoder = self._lookupAbiEncoder(functionSignature); - const abiDecodedCallData = abiEncoder.strictDecode(callData); - return abiDecodedCallData; - } - public getABIDecodedReturnData(methodName: string, callData: string): T { - const functionSignature = this.getFunctionSignature(methodName); - const self = (this as any) as ERC721ProxyContract; - const abiEncoder = self._lookupAbiEncoder(functionSignature); - const abiDecodedCallData = abiEncoder.strictDecodeReturnValue(callData); - return abiDecodedCallData; - } - public getSelector(methodName: string): string { - const functionSignature = this.getFunctionSignature(methodName); - const self = (this as any) as ERC721ProxyContract; - const abiEncoder = self._lookupAbiEncoder(functionSignature); - return abiEncoder.getSelector(); - } - - /** - * Authorizes an address. - * @param target Address to authorize. - */ - public addAuthorizedAddress(target: string): ContractTxFunctionObj { - const self = (this as any) as ERC721ProxyContract; - assert.isString('target', target); - - return { - async sendTransactionAsync( - txData?: Partial | undefined, - opts: SendTransactionOpts = { shouldValidate: true }, - ): Promise { - const encodedData = self._strictEncodeArguments('addAuthorizedAddress(address)', [ - target.toLowerCase(), - ]); - const txDataWithDefaults = await BaseContract._applyDefaultsToTxDataAsync( - { - to: self.address, - ...txData, - data: encodedData, - }, - self._web3Wrapper.getContractDefaults(), - ); - if (txDataWithDefaults.from !== undefined) { - txDataWithDefaults.from = txDataWithDefaults.from.toLowerCase(); - } - - if (opts.shouldValidate !== false) { - await this.callAsync(txDataWithDefaults); - } - - const txHash = await self._web3Wrapper.sendTransactionAsync(txDataWithDefaults); - return txHash; - }, - awaitTransactionSuccessAsync( - txData?: Partial, - opts: AwaitTransactionSuccessOpts = { shouldValidate: true }, - ): PromiseWithTransactionHash { - const txHashPromise = this.sendTransactionAsync(txData, opts); - return new PromiseWithTransactionHash( - txHashPromise, - (async (): Promise => { - // When the transaction hash resolves, wait for it to be mined. - return self._web3Wrapper.awaitTransactionSuccessAsync( - await txHashPromise, - opts.pollingIntervalMs, - opts.timeoutMs, - ); - })(), - ); - }, - async estimateGasAsync(txData?: Partial | undefined): Promise { - const encodedData = self._strictEncodeArguments('addAuthorizedAddress(address)', [ - target.toLowerCase(), - ]); - const txDataWithDefaults = await BaseContract._applyDefaultsToTxDataAsync( - { - to: self.address, - ...txData, - data: encodedData, - }, - self._web3Wrapper.getContractDefaults(), - ); - if (txDataWithDefaults.from !== undefined) { - txDataWithDefaults.from = txDataWithDefaults.from.toLowerCase(); - } - - const gas = await self._web3Wrapper.estimateGasAsync(txDataWithDefaults); - return gas; - }, - async callAsync(callData: Partial = {}, defaultBlock?: BlockParam): Promise { - assert.doesConformToSchema('callData', callData, schemas.callDataSchema, [ - schemas.addressSchema, - schemas.numberSchema, - schemas.jsNumber, - ]); - if (defaultBlock !== undefined) { - assert.isBlockParam('defaultBlock', defaultBlock); - } - const encodedData = self._strictEncodeArguments('addAuthorizedAddress(address)', [ - target.toLowerCase(), - ]); - let rawCallResult; - - const callDataWithDefaults = await BaseContract._applyDefaultsToTxDataAsync( - { - to: self.address, - ...callData, - data: encodedData, - }, - self._web3Wrapper.getContractDefaults(), - ); - callDataWithDefaults.from = callDataWithDefaults.from - ? callDataWithDefaults.from.toLowerCase() - : callDataWithDefaults.from; - try { - rawCallResult = await self._web3Wrapper.callAsync(callDataWithDefaults, defaultBlock); - } catch (err) { - BaseContract._throwIfThrownErrorIsRevertError(err); - throw err; - } - - BaseContract._throwIfCallResultIsRevertError(rawCallResult); - const abiEncoder = self._lookupAbiEncoder('addAuthorizedAddress(address)'); - // tslint:disable boolean-naming - const result = abiEncoder.strictDecodeReturnValue(rawCallResult); - // tslint:enable boolean-naming - return result; - }, - getABIEncodedTransactionData(): string { - const abiEncodedTransactionData = self._strictEncodeArguments('addAuthorizedAddress(address)', [ - target.toLowerCase(), - ]); - return abiEncodedTransactionData; - }, - }; - } - public authorities(index_0: BigNumber): ContractFunctionObj { - const self = (this as any) as ERC721ProxyContract; - assert.isBigNumber('index_0', index_0); - - return { - async callAsync(callData: Partial = {}, defaultBlock?: BlockParam): Promise { - assert.doesConformToSchema('callData', callData, schemas.callDataSchema, [ - schemas.addressSchema, - schemas.numberSchema, - schemas.jsNumber, - ]); - if (defaultBlock !== undefined) { - assert.isBlockParam('defaultBlock', defaultBlock); - } - const encodedData = self._strictEncodeArguments('authorities(uint256)', [index_0]); - let rawCallResult; - - const callDataWithDefaults = await BaseContract._applyDefaultsToTxDataAsync( - { - to: self.address, - ...callData, - data: encodedData, - }, - self._web3Wrapper.getContractDefaults(), - ); - callDataWithDefaults.from = callDataWithDefaults.from - ? callDataWithDefaults.from.toLowerCase() - : callDataWithDefaults.from; - try { - rawCallResult = await self._web3Wrapper.callAsync(callDataWithDefaults, defaultBlock); - } catch (err) { - BaseContract._throwIfThrownErrorIsRevertError(err); - throw err; - } - - BaseContract._throwIfCallResultIsRevertError(rawCallResult); - const abiEncoder = self._lookupAbiEncoder('authorities(uint256)'); - // tslint:disable boolean-naming - const result = abiEncoder.strictDecodeReturnValue(rawCallResult); - // tslint:enable boolean-naming - return result; - }, - getABIEncodedTransactionData(): string { - const abiEncodedTransactionData = self._strictEncodeArguments('authorities(uint256)', [index_0]); - return abiEncodedTransactionData; - }, - }; - } - /** - * Removes authorizion of an address. - * @param target Address to remove authorization from. - */ - public removeAuthorizedAddress(target: string): ContractTxFunctionObj { - const self = (this as any) as ERC721ProxyContract; - assert.isString('target', target); - - return { - async sendTransactionAsync( - txData?: Partial | undefined, - opts: SendTransactionOpts = { shouldValidate: true }, - ): Promise { - const encodedData = self._strictEncodeArguments('removeAuthorizedAddress(address)', [ - target.toLowerCase(), - ]); - const txDataWithDefaults = await BaseContract._applyDefaultsToTxDataAsync( - { - to: self.address, - ...txData, - data: encodedData, - }, - self._web3Wrapper.getContractDefaults(), - ); - if (txDataWithDefaults.from !== undefined) { - txDataWithDefaults.from = txDataWithDefaults.from.toLowerCase(); - } - - if (opts.shouldValidate !== false) { - await this.callAsync(txDataWithDefaults); - } - - const txHash = await self._web3Wrapper.sendTransactionAsync(txDataWithDefaults); - return txHash; - }, - awaitTransactionSuccessAsync( - txData?: Partial, - opts: AwaitTransactionSuccessOpts = { shouldValidate: true }, - ): PromiseWithTransactionHash { - const txHashPromise = this.sendTransactionAsync(txData, opts); - return new PromiseWithTransactionHash( - txHashPromise, - (async (): Promise => { - // When the transaction hash resolves, wait for it to be mined. - return self._web3Wrapper.awaitTransactionSuccessAsync( - await txHashPromise, - opts.pollingIntervalMs, - opts.timeoutMs, - ); - })(), - ); - }, - async estimateGasAsync(txData?: Partial | undefined): Promise { - const encodedData = self._strictEncodeArguments('removeAuthorizedAddress(address)', [ - target.toLowerCase(), - ]); - const txDataWithDefaults = await BaseContract._applyDefaultsToTxDataAsync( - { - to: self.address, - ...txData, - data: encodedData, - }, - self._web3Wrapper.getContractDefaults(), - ); - if (txDataWithDefaults.from !== undefined) { - txDataWithDefaults.from = txDataWithDefaults.from.toLowerCase(); - } - - const gas = await self._web3Wrapper.estimateGasAsync(txDataWithDefaults); - return gas; - }, - async callAsync(callData: Partial = {}, defaultBlock?: BlockParam): Promise { - assert.doesConformToSchema('callData', callData, schemas.callDataSchema, [ - schemas.addressSchema, - schemas.numberSchema, - schemas.jsNumber, - ]); - if (defaultBlock !== undefined) { - assert.isBlockParam('defaultBlock', defaultBlock); - } - const encodedData = self._strictEncodeArguments('removeAuthorizedAddress(address)', [ - target.toLowerCase(), - ]); - let rawCallResult; - - const callDataWithDefaults = await BaseContract._applyDefaultsToTxDataAsync( - { - to: self.address, - ...callData, - data: encodedData, - }, - self._web3Wrapper.getContractDefaults(), - ); - callDataWithDefaults.from = callDataWithDefaults.from - ? callDataWithDefaults.from.toLowerCase() - : callDataWithDefaults.from; - try { - rawCallResult = await self._web3Wrapper.callAsync(callDataWithDefaults, defaultBlock); - } catch (err) { - BaseContract._throwIfThrownErrorIsRevertError(err); - throw err; - } - - BaseContract._throwIfCallResultIsRevertError(rawCallResult); - const abiEncoder = self._lookupAbiEncoder('removeAuthorizedAddress(address)'); - // tslint:disable boolean-naming - const result = abiEncoder.strictDecodeReturnValue(rawCallResult); - // tslint:enable boolean-naming - return result; - }, - getABIEncodedTransactionData(): string { - const abiEncodedTransactionData = self._strictEncodeArguments('removeAuthorizedAddress(address)', [ - target.toLowerCase(), - ]); - return abiEncodedTransactionData; - }, - }; - } - public owner(): ContractFunctionObj { - const self = (this as any) as ERC721ProxyContract; - - return { - async callAsync(callData: Partial = {}, defaultBlock?: BlockParam): Promise { - assert.doesConformToSchema('callData', callData, schemas.callDataSchema, [ - schemas.addressSchema, - schemas.numberSchema, - schemas.jsNumber, - ]); - if (defaultBlock !== undefined) { - assert.isBlockParam('defaultBlock', defaultBlock); - } - const encodedData = self._strictEncodeArguments('owner()', []); - let rawCallResult; - - const callDataWithDefaults = await BaseContract._applyDefaultsToTxDataAsync( - { - to: self.address, - ...callData, - data: encodedData, - }, - self._web3Wrapper.getContractDefaults(), - ); - callDataWithDefaults.from = callDataWithDefaults.from - ? callDataWithDefaults.from.toLowerCase() - : callDataWithDefaults.from; - try { - rawCallResult = await self._web3Wrapper.callAsync(callDataWithDefaults, defaultBlock); - } catch (err) { - BaseContract._throwIfThrownErrorIsRevertError(err); - throw err; - } - - BaseContract._throwIfCallResultIsRevertError(rawCallResult); - const abiEncoder = self._lookupAbiEncoder('owner()'); - // tslint:disable boolean-naming - const result = abiEncoder.strictDecodeReturnValue(rawCallResult); - // tslint:enable boolean-naming - return result; - }, - getABIEncodedTransactionData(): string { - const abiEncodedTransactionData = self._strictEncodeArguments('owner()', []); - return abiEncodedTransactionData; - }, - }; - } - /** - * Removes authorizion of an address. - * @param target Address to remove authorization from. - * @param index Index of target in authorities array. - */ - public removeAuthorizedAddressAtIndex(target: string, index: BigNumber): ContractTxFunctionObj { - const self = (this as any) as ERC721ProxyContract; - assert.isString('target', target); - assert.isBigNumber('index', index); - - return { - async sendTransactionAsync( - txData?: Partial | undefined, - opts: SendTransactionOpts = { shouldValidate: true }, - ): Promise { - const encodedData = self._strictEncodeArguments('removeAuthorizedAddressAtIndex(address,uint256)', [ - target.toLowerCase(), - index, - ]); - const txDataWithDefaults = await BaseContract._applyDefaultsToTxDataAsync( - { - to: self.address, - ...txData, - data: encodedData, - }, - self._web3Wrapper.getContractDefaults(), - ); - if (txDataWithDefaults.from !== undefined) { - txDataWithDefaults.from = txDataWithDefaults.from.toLowerCase(); - } - - if (opts.shouldValidate !== false) { - await this.callAsync(txDataWithDefaults); - } - - const txHash = await self._web3Wrapper.sendTransactionAsync(txDataWithDefaults); - return txHash; - }, - awaitTransactionSuccessAsync( - txData?: Partial, - opts: AwaitTransactionSuccessOpts = { shouldValidate: true }, - ): PromiseWithTransactionHash { - const txHashPromise = this.sendTransactionAsync(txData, opts); - return new PromiseWithTransactionHash( - txHashPromise, - (async (): Promise => { - // When the transaction hash resolves, wait for it to be mined. - return self._web3Wrapper.awaitTransactionSuccessAsync( - await txHashPromise, - opts.pollingIntervalMs, - opts.timeoutMs, - ); - })(), - ); - }, - async estimateGasAsync(txData?: Partial | undefined): Promise { - const encodedData = self._strictEncodeArguments('removeAuthorizedAddressAtIndex(address,uint256)', [ - target.toLowerCase(), - index, - ]); - const txDataWithDefaults = await BaseContract._applyDefaultsToTxDataAsync( - { - to: self.address, - ...txData, - data: encodedData, - }, - self._web3Wrapper.getContractDefaults(), - ); - if (txDataWithDefaults.from !== undefined) { - txDataWithDefaults.from = txDataWithDefaults.from.toLowerCase(); - } - - const gas = await self._web3Wrapper.estimateGasAsync(txDataWithDefaults); - return gas; - }, - async callAsync(callData: Partial = {}, defaultBlock?: BlockParam): Promise { - assert.doesConformToSchema('callData', callData, schemas.callDataSchema, [ - schemas.addressSchema, - schemas.numberSchema, - schemas.jsNumber, - ]); - if (defaultBlock !== undefined) { - assert.isBlockParam('defaultBlock', defaultBlock); - } - const encodedData = self._strictEncodeArguments('removeAuthorizedAddressAtIndex(address,uint256)', [ - target.toLowerCase(), - index, - ]); - let rawCallResult; - - const callDataWithDefaults = await BaseContract._applyDefaultsToTxDataAsync( - { - to: self.address, - ...callData, - data: encodedData, - }, - self._web3Wrapper.getContractDefaults(), - ); - callDataWithDefaults.from = callDataWithDefaults.from - ? callDataWithDefaults.from.toLowerCase() - : callDataWithDefaults.from; - try { - rawCallResult = await self._web3Wrapper.callAsync(callDataWithDefaults, defaultBlock); - } catch (err) { - BaseContract._throwIfThrownErrorIsRevertError(err); - throw err; - } - - BaseContract._throwIfCallResultIsRevertError(rawCallResult); - const abiEncoder = self._lookupAbiEncoder('removeAuthorizedAddressAtIndex(address,uint256)'); - // tslint:disable boolean-naming - const result = abiEncoder.strictDecodeReturnValue(rawCallResult); - // tslint:enable boolean-naming - return result; - }, - getABIEncodedTransactionData(): string { - const abiEncodedTransactionData = self._strictEncodeArguments( - 'removeAuthorizedAddressAtIndex(address,uint256)', - [target.toLowerCase(), index], - ); - return abiEncodedTransactionData; - }, - }; - } - /** - * Gets the proxy id associated with the proxy address. - * @returns Proxy id. - */ - public getProxyId(): ContractFunctionObj { - const self = (this as any) as ERC721ProxyContract; - - return { - async callAsync(callData: Partial = {}, defaultBlock?: BlockParam): Promise { - assert.doesConformToSchema('callData', callData, schemas.callDataSchema, [ - schemas.addressSchema, - schemas.numberSchema, - schemas.jsNumber, - ]); - if (defaultBlock !== undefined) { - assert.isBlockParam('defaultBlock', defaultBlock); - } - const encodedData = self._strictEncodeArguments('getProxyId()', []); - let rawCallResult; - - const encodedDataBytes = Buffer.from(encodedData.substr(2), 'hex'); - try { - rawCallResult = await self._evmExecAsync(encodedDataBytes); - } catch (err) { - BaseContract._throwIfThrownErrorIsRevertError(err); - throw err; - } - - BaseContract._throwIfCallResultIsRevertError(rawCallResult); - const abiEncoder = self._lookupAbiEncoder('getProxyId()'); - // tslint:disable boolean-naming - const result = abiEncoder.strictDecodeReturnValue(rawCallResult); - // tslint:enable boolean-naming - return result; - }, - getABIEncodedTransactionData(): string { - const abiEncodedTransactionData = self._strictEncodeArguments('getProxyId()', []); - return abiEncodedTransactionData; - }, - }; - } - public authorized(index_0: string): ContractFunctionObj { - const self = (this as any) as ERC721ProxyContract; - assert.isString('index_0', index_0); - - return { - async callAsync(callData: Partial = {}, defaultBlock?: BlockParam): Promise { - assert.doesConformToSchema('callData', callData, schemas.callDataSchema, [ - schemas.addressSchema, - schemas.numberSchema, - schemas.jsNumber, - ]); - if (defaultBlock !== undefined) { - assert.isBlockParam('defaultBlock', defaultBlock); - } - const encodedData = self._strictEncodeArguments('authorized(address)', [index_0.toLowerCase()]); - let rawCallResult; - - const callDataWithDefaults = await BaseContract._applyDefaultsToTxDataAsync( - { - to: self.address, - ...callData, - data: encodedData, - }, - self._web3Wrapper.getContractDefaults(), - ); - callDataWithDefaults.from = callDataWithDefaults.from - ? callDataWithDefaults.from.toLowerCase() - : callDataWithDefaults.from; - try { - rawCallResult = await self._web3Wrapper.callAsync(callDataWithDefaults, defaultBlock); - } catch (err) { - BaseContract._throwIfThrownErrorIsRevertError(err); - throw err; - } - - BaseContract._throwIfCallResultIsRevertError(rawCallResult); - const abiEncoder = self._lookupAbiEncoder('authorized(address)'); - // tslint:disable boolean-naming - const result = abiEncoder.strictDecodeReturnValue(rawCallResult); - // tslint:enable boolean-naming - return result; - }, - getABIEncodedTransactionData(): string { - const abiEncodedTransactionData = self._strictEncodeArguments('authorized(address)', [ - index_0.toLowerCase(), - ]); - return abiEncodedTransactionData; - }, - }; - } - /** - * Gets all authorized addresses. - * @returns Array of authorized addresses. - */ - public getAuthorizedAddresses(): ContractFunctionObj { - const self = (this as any) as ERC721ProxyContract; - - return { - async callAsync(callData: Partial = {}, defaultBlock?: BlockParam): Promise { - assert.doesConformToSchema('callData', callData, schemas.callDataSchema, [ - schemas.addressSchema, - schemas.numberSchema, - schemas.jsNumber, - ]); - if (defaultBlock !== undefined) { - assert.isBlockParam('defaultBlock', defaultBlock); - } - const encodedData = self._strictEncodeArguments('getAuthorizedAddresses()', []); - let rawCallResult; - - const callDataWithDefaults = await BaseContract._applyDefaultsToTxDataAsync( - { - to: self.address, - ...callData, - data: encodedData, - }, - self._web3Wrapper.getContractDefaults(), - ); - callDataWithDefaults.from = callDataWithDefaults.from - ? callDataWithDefaults.from.toLowerCase() - : callDataWithDefaults.from; - try { - rawCallResult = await self._web3Wrapper.callAsync(callDataWithDefaults, defaultBlock); - } catch (err) { - BaseContract._throwIfThrownErrorIsRevertError(err); - throw err; - } - - BaseContract._throwIfCallResultIsRevertError(rawCallResult); - const abiEncoder = self._lookupAbiEncoder('getAuthorizedAddresses()'); - // tslint:disable boolean-naming - const result = abiEncoder.strictDecodeReturnValue(rawCallResult); - // tslint:enable boolean-naming - return result; - }, - getABIEncodedTransactionData(): string { - const abiEncodedTransactionData = self._strictEncodeArguments('getAuthorizedAddresses()', []); - return abiEncodedTransactionData; - }, - }; - } - public transferOwnership(newOwner: string): ContractTxFunctionObj { - const self = (this as any) as ERC721ProxyContract; - assert.isString('newOwner', newOwner); - - return { - async sendTransactionAsync( - txData?: Partial | undefined, - opts: SendTransactionOpts = { shouldValidate: true }, - ): Promise { - const encodedData = self._strictEncodeArguments('transferOwnership(address)', [newOwner.toLowerCase()]); - const txDataWithDefaults = await BaseContract._applyDefaultsToTxDataAsync( - { - to: self.address, - ...txData, - data: encodedData, - }, - self._web3Wrapper.getContractDefaults(), - ); - if (txDataWithDefaults.from !== undefined) { - txDataWithDefaults.from = txDataWithDefaults.from.toLowerCase(); - } - - if (opts.shouldValidate !== false) { - await this.callAsync(txDataWithDefaults); - } - - const txHash = await self._web3Wrapper.sendTransactionAsync(txDataWithDefaults); - return txHash; - }, - awaitTransactionSuccessAsync( - txData?: Partial, - opts: AwaitTransactionSuccessOpts = { shouldValidate: true }, - ): PromiseWithTransactionHash { - const txHashPromise = this.sendTransactionAsync(txData, opts); - return new PromiseWithTransactionHash( - txHashPromise, - (async (): Promise => { - // When the transaction hash resolves, wait for it to be mined. - return self._web3Wrapper.awaitTransactionSuccessAsync( - await txHashPromise, - opts.pollingIntervalMs, - opts.timeoutMs, - ); - })(), - ); - }, - async estimateGasAsync(txData?: Partial | undefined): Promise { - const encodedData = self._strictEncodeArguments('transferOwnership(address)', [newOwner.toLowerCase()]); - const txDataWithDefaults = await BaseContract._applyDefaultsToTxDataAsync( - { - to: self.address, - ...txData, - data: encodedData, - }, - self._web3Wrapper.getContractDefaults(), - ); - if (txDataWithDefaults.from !== undefined) { - txDataWithDefaults.from = txDataWithDefaults.from.toLowerCase(); - } - - const gas = await self._web3Wrapper.estimateGasAsync(txDataWithDefaults); - return gas; - }, - async callAsync(callData: Partial = {}, defaultBlock?: BlockParam): Promise { - assert.doesConformToSchema('callData', callData, schemas.callDataSchema, [ - schemas.addressSchema, - schemas.numberSchema, - schemas.jsNumber, - ]); - if (defaultBlock !== undefined) { - assert.isBlockParam('defaultBlock', defaultBlock); - } - const encodedData = self._strictEncodeArguments('transferOwnership(address)', [newOwner.toLowerCase()]); - let rawCallResult; - - const callDataWithDefaults = await BaseContract._applyDefaultsToTxDataAsync( - { - to: self.address, - ...callData, - data: encodedData, - }, - self._web3Wrapper.getContractDefaults(), - ); - callDataWithDefaults.from = callDataWithDefaults.from - ? callDataWithDefaults.from.toLowerCase() - : callDataWithDefaults.from; - try { - rawCallResult = await self._web3Wrapper.callAsync(callDataWithDefaults, defaultBlock); - } catch (err) { - BaseContract._throwIfThrownErrorIsRevertError(err); - throw err; - } - - BaseContract._throwIfCallResultIsRevertError(rawCallResult); - const abiEncoder = self._lookupAbiEncoder('transferOwnership(address)'); - // tslint:disable boolean-naming - const result = abiEncoder.strictDecodeReturnValue(rawCallResult); - // tslint:enable boolean-naming - return result; - }, - getABIEncodedTransactionData(): string { - const abiEncodedTransactionData = self._strictEncodeArguments('transferOwnership(address)', [ - newOwner.toLowerCase(), - ]); - return abiEncodedTransactionData; - }, - }; - } - - /** - * Subscribe to an event type emitted by the ERC721Proxy contract. - * @param eventName The ERC721Proxy contract event you would like to subscribe to. - * @param indexFilterValues 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}` - * @param callback Callback that gets called when a log is added/removed - * @param isVerbose Enable verbose subscription warnings (e.g recoverable network issues encountered) - * @return Subscription token used later to unsubscribe - */ - public subscribe( - eventName: ERC721ProxyEvents, - indexFilterValues: IndexedFilterValues, - callback: EventCallback, - isVerbose: boolean = false, - blockPollingIntervalMs?: number, - ): string { - assert.doesBelongToStringEnum('eventName', eventName, ERC721ProxyEvents); - assert.doesConformToSchema('indexFilterValues', indexFilterValues, schemas.indexFilterValuesSchema); - assert.isFunction('callback', callback); - const subscriptionToken = this._subscriptionManager.subscribe( - this.address, - eventName, - indexFilterValues, - ERC721ProxyContract.ABI(), - callback, - isVerbose, - blockPollingIntervalMs, - ); - return subscriptionToken; - } - /** - * Cancel a subscription - * @param subscriptionToken Subscription token returned by `subscribe()` - */ - public unsubscribe(subscriptionToken: string): void { - this._subscriptionManager.unsubscribe(subscriptionToken); - } - /** - * Cancels all existing subscriptions - */ - public unsubscribeAll(): void { - this._subscriptionManager.unsubscribeAll(); - } - /** - * Gets historical logs without creating a subscription - * @param eventName The ERC721Proxy contract event you would like to subscribe to. - * @param blockRange Block range to get logs from. - * @param indexFilterValues 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}` - * @return Array of logs that match the parameters - */ - public async getLogsAsync( - eventName: ERC721ProxyEvents, - blockRange: BlockRange, - indexFilterValues: IndexedFilterValues, - ): Promise>> { - assert.doesBelongToStringEnum('eventName', eventName, ERC721ProxyEvents); - assert.doesConformToSchema('blockRange', blockRange, schemas.blockRangeSchema); - assert.doesConformToSchema('indexFilterValues', indexFilterValues, schemas.indexFilterValuesSchema); - const logs = await this._subscriptionManager.getLogsAsync( - this.address, - eventName, - blockRange, - indexFilterValues, - ERC721ProxyContract.ABI(), - ); - return logs; - } - constructor( - address: string, - supportedProvider: SupportedProvider, - txDefaults?: Partial, - logDecodeDependencies?: { [contractName: string]: ContractAbi }, - deployedBytecode: string | undefined = ERC721ProxyContract.deployedBytecode, - ) { - super( - 'ERC721Proxy', - ERC721ProxyContract.ABI(), - address, - supportedProvider, - txDefaults, - logDecodeDependencies, - deployedBytecode, - ); - classUtils.bindAll(this, ['_abiEncoderByFunctionSignature', 'address', '_web3Wrapper']); - this._subscriptionManager = new SubscriptionManager( - ERC721ProxyContract.ABI(), - this._web3Wrapper, - ); - ERC721ProxyContract.ABI().forEach((item, index) => { - if (item.type === 'function') { - const methodAbi = item as MethodAbi; - this._methodABIIndex[methodAbi.name] = index; - } - }); - } -} - -// tslint:disable:max-file-line-count -// tslint:enable:no-unbound-method no-parameter-reassignment no-consecutive-blank-lines ordered-imports align -// tslint:enable:trailing-comma whitespace no-trailing-whitespace diff --git a/packages/abi-gen-wrappers/src/generated-wrappers/eth_balance_checker.ts b/packages/abi-gen-wrappers/src/generated-wrappers/eth_balance_checker.ts deleted file mode 100644 index 7af7d98d53..0000000000 --- a/packages/abi-gen-wrappers/src/generated-wrappers/eth_balance_checker.ts +++ /dev/null @@ -1,245 +0,0 @@ -// tslint:disable:no-consecutive-blank-lines ordered-imports align trailing-comma enum-naming -// tslint:disable:whitespace no-unbound-method no-trailing-whitespace -// tslint:disable:no-unused-variable -import { - AwaitTransactionSuccessOpts, - ContractFunctionObj, - ContractTxFunctionObj, - SendTransactionOpts, - BaseContract, - PromiseWithTransactionHash, - methodAbiToFunctionSignature, -} from '@0x/base-contract'; -import { schemas } from '@0x/json-schemas'; -import { - BlockParam, - BlockParamLiteral, - BlockRange, - CallData, - ContractAbi, - ContractArtifact, - DecodedLogArgs, - MethodAbi, - TransactionReceiptWithDecodedLogs, - TxData, - TxDataPayable, - SupportedProvider, -} from 'ethereum-types'; -import { BigNumber, classUtils, logUtils, providerUtils } from '@0x/utils'; -import { EventCallback, IndexedFilterValues, SimpleContractArtifact } from '@0x/types'; -import { Web3Wrapper } from '@0x/web3-wrapper'; -import { assert } from '@0x/assert'; -import * as ethers from 'ethers'; -// tslint:enable:no-unused-variable - -/* istanbul ignore next */ -// tslint:disable:no-parameter-reassignment -// tslint:disable-next-line:class-name -export class EthBalanceCheckerContract extends BaseContract { - /** - * @ignore - */ - public static deployedBytecode: string | undefined; - private readonly _methodABIIndex: { [name: string]: number } = {}; - public static async deployFrom0xArtifactAsync( - artifact: ContractArtifact | SimpleContractArtifact, - supportedProvider: SupportedProvider, - txDefaults: Partial, - logDecodeDependencies: { [contractName: string]: ContractArtifact | SimpleContractArtifact }, - ): Promise { - assert.doesConformToSchema('txDefaults', txDefaults, schemas.txDataSchema, [ - schemas.addressSchema, - schemas.numberSchema, - schemas.jsNumber, - ]); - if (artifact.compilerOutput === undefined) { - throw new Error('Compiler output not found in the artifact file'); - } - const provider = providerUtils.standardizeOrThrow(supportedProvider); - const bytecode = artifact.compilerOutput.evm.bytecode.object; - const abi = artifact.compilerOutput.abi; - const logDecodeDependenciesAbiOnly: { [contractName: string]: ContractAbi } = {}; - if (Object.keys(logDecodeDependencies) !== undefined) { - for (const key of Object.keys(logDecodeDependencies)) { - logDecodeDependenciesAbiOnly[key] = logDecodeDependencies[key].compilerOutput.abi; - } - } - return EthBalanceCheckerContract.deployAsync(bytecode, abi, provider, txDefaults, logDecodeDependenciesAbiOnly); - } - public static async deployAsync( - bytecode: string, - abi: ContractAbi, - supportedProvider: SupportedProvider, - txDefaults: Partial, - logDecodeDependencies: { [contractName: string]: ContractAbi }, - ): Promise { - assert.isHexString('bytecode', bytecode); - assert.doesConformToSchema('txDefaults', txDefaults, schemas.txDataSchema, [ - schemas.addressSchema, - schemas.numberSchema, - schemas.jsNumber, - ]); - const provider = providerUtils.standardizeOrThrow(supportedProvider); - const constructorAbi = BaseContract._lookupConstructorAbi(abi); - [] = BaseContract._formatABIDataItemList(constructorAbi.inputs, [], BaseContract._bigNumberToString); - const iface = new ethers.utils.Interface(abi); - const deployInfo = iface.deployFunction; - const txData = deployInfo.encode(bytecode, []); - const web3Wrapper = new Web3Wrapper(provider); - const txDataWithDefaults = await BaseContract._applyDefaultsToTxDataAsync( - { data: txData }, - txDefaults, - web3Wrapper.estimateGasAsync.bind(web3Wrapper), - ); - const txHash = await web3Wrapper.sendTransactionAsync(txDataWithDefaults); - logUtils.log(`transactionHash: ${txHash}`); - const txReceipt = await web3Wrapper.awaitTransactionSuccessAsync(txHash); - logUtils.log(`EthBalanceChecker successfully deployed at ${txReceipt.contractAddress}`); - const contractInstance = new EthBalanceCheckerContract( - txReceipt.contractAddress as string, - provider, - txDefaults, - logDecodeDependencies, - ); - contractInstance.constructorArgs = []; - return contractInstance; - } - - /** - * @returns The contract ABI - */ - public static ABI(): ContractAbi { - const abi = [ - { - constant: true, - inputs: [ - { - name: 'addresses', - type: 'address[]', - }, - ], - name: 'getEthBalances', - outputs: [ - { - name: '', - type: 'uint256[]', - }, - ], - payable: false, - stateMutability: 'view', - type: 'function', - }, - ] as ContractAbi; - return abi; - } - - public getFunctionSignature(methodName: string): string { - const index = this._methodABIIndex[methodName]; - const methodAbi = EthBalanceCheckerContract.ABI()[index] as MethodAbi; // tslint:disable-line:no-unnecessary-type-assertion - const functionSignature = methodAbiToFunctionSignature(methodAbi); - return functionSignature; - } - public getABIDecodedTransactionData(methodName: string, callData: string): T { - const functionSignature = this.getFunctionSignature(methodName); - const self = (this as any) as EthBalanceCheckerContract; - const abiEncoder = self._lookupAbiEncoder(functionSignature); - const abiDecodedCallData = abiEncoder.strictDecode(callData); - return abiDecodedCallData; - } - public getABIDecodedReturnData(methodName: string, callData: string): T { - const functionSignature = this.getFunctionSignature(methodName); - const self = (this as any) as EthBalanceCheckerContract; - const abiEncoder = self._lookupAbiEncoder(functionSignature); - const abiDecodedCallData = abiEncoder.strictDecodeReturnValue(callData); - return abiDecodedCallData; - } - public getSelector(methodName: string): string { - const functionSignature = this.getFunctionSignature(methodName); - const self = (this as any) as EthBalanceCheckerContract; - const abiEncoder = self._lookupAbiEncoder(functionSignature); - return abiEncoder.getSelector(); - } - - /** - * Batch fetches ETH balances - * @param addresses Array of addresses. - * @returns Array of ETH balances. - */ - public getEthBalances(addresses: string[]): ContractFunctionObj { - const self = (this as any) as EthBalanceCheckerContract; - assert.isArray('addresses', addresses); - - return { - async callAsync(callData: Partial = {}, defaultBlock?: BlockParam): Promise { - assert.doesConformToSchema('callData', callData, schemas.callDataSchema, [ - schemas.addressSchema, - schemas.numberSchema, - schemas.jsNumber, - ]); - if (defaultBlock !== undefined) { - assert.isBlockParam('defaultBlock', defaultBlock); - } - const encodedData = self._strictEncodeArguments('getEthBalances(address[])', [addresses]); - let rawCallResult; - - const callDataWithDefaults = await BaseContract._applyDefaultsToTxDataAsync( - { - to: self.address, - ...callData, - data: encodedData, - }, - self._web3Wrapper.getContractDefaults(), - ); - callDataWithDefaults.from = callDataWithDefaults.from - ? callDataWithDefaults.from.toLowerCase() - : callDataWithDefaults.from; - try { - rawCallResult = await self._web3Wrapper.callAsync(callDataWithDefaults, defaultBlock); - } catch (err) { - BaseContract._throwIfThrownErrorIsRevertError(err); - throw err; - } - - BaseContract._throwIfCallResultIsRevertError(rawCallResult); - const abiEncoder = self._lookupAbiEncoder('getEthBalances(address[])'); - // tslint:disable boolean-naming - const result = abiEncoder.strictDecodeReturnValue(rawCallResult); - // tslint:enable boolean-naming - return result; - }, - getABIEncodedTransactionData(): string { - const abiEncodedTransactionData = self._strictEncodeArguments('getEthBalances(address[])', [addresses]); - return abiEncodedTransactionData; - }, - }; - } - - constructor( - address: string, - supportedProvider: SupportedProvider, - txDefaults?: Partial, - logDecodeDependencies?: { [contractName: string]: ContractAbi }, - deployedBytecode: string | undefined = EthBalanceCheckerContract.deployedBytecode, - ) { - super( - 'EthBalanceChecker', - EthBalanceCheckerContract.ABI(), - address, - supportedProvider, - txDefaults, - logDecodeDependencies, - deployedBytecode, - ); - classUtils.bindAll(this, ['_abiEncoderByFunctionSignature', 'address', '_web3Wrapper']); - EthBalanceCheckerContract.ABI().forEach((item, index) => { - if (item.type === 'function') { - const methodAbi = item as MethodAbi; - this._methodABIIndex[methodAbi.name] = index; - } - }); - } -} - -// tslint:disable:max-file-line-count -// tslint:enable:no-unbound-method no-parameter-reassignment no-consecutive-blank-lines ordered-imports align -// tslint:enable:trailing-comma whitespace no-trailing-whitespace diff --git a/packages/abi-gen-wrappers/src/generated-wrappers/i_asset_proxy.ts b/packages/abi-gen-wrappers/src/generated-wrappers/i_asset_proxy.ts deleted file mode 100644 index da7037eda3..0000000000 --- a/packages/abi-gen-wrappers/src/generated-wrappers/i_asset_proxy.ts +++ /dev/null @@ -1,388 +0,0 @@ -// tslint:disable:no-consecutive-blank-lines ordered-imports align trailing-comma enum-naming -// tslint:disable:whitespace no-unbound-method no-trailing-whitespace -// tslint:disable:no-unused-variable -import { - AwaitTransactionSuccessOpts, - ContractFunctionObj, - ContractTxFunctionObj, - SendTransactionOpts, - BaseContract, - PromiseWithTransactionHash, - methodAbiToFunctionSignature, -} from '@0x/base-contract'; -import { schemas } from '@0x/json-schemas'; -import { - BlockParam, - BlockParamLiteral, - BlockRange, - CallData, - ContractAbi, - ContractArtifact, - DecodedLogArgs, - MethodAbi, - TransactionReceiptWithDecodedLogs, - TxData, - TxDataPayable, - SupportedProvider, -} from 'ethereum-types'; -import { BigNumber, classUtils, logUtils, providerUtils } from '@0x/utils'; -import { EventCallback, IndexedFilterValues, SimpleContractArtifact } from '@0x/types'; -import { Web3Wrapper } from '@0x/web3-wrapper'; -import { assert } from '@0x/assert'; -import * as ethers from 'ethers'; -// tslint:enable:no-unused-variable - -/* istanbul ignore next */ -// tslint:disable:no-parameter-reassignment -// tslint:disable-next-line:class-name -export class IAssetProxyContract extends BaseContract { - /** - * @ignore - */ - public static deployedBytecode: string | undefined; - private readonly _methodABIIndex: { [name: string]: number } = {}; - public static async deployFrom0xArtifactAsync( - artifact: ContractArtifact | SimpleContractArtifact, - supportedProvider: SupportedProvider, - txDefaults: Partial, - logDecodeDependencies: { [contractName: string]: ContractArtifact | SimpleContractArtifact }, - ): Promise { - assert.doesConformToSchema('txDefaults', txDefaults, schemas.txDataSchema, [ - schemas.addressSchema, - schemas.numberSchema, - schemas.jsNumber, - ]); - if (artifact.compilerOutput === undefined) { - throw new Error('Compiler output not found in the artifact file'); - } - const provider = providerUtils.standardizeOrThrow(supportedProvider); - const bytecode = artifact.compilerOutput.evm.bytecode.object; - const abi = artifact.compilerOutput.abi; - const logDecodeDependenciesAbiOnly: { [contractName: string]: ContractAbi } = {}; - if (Object.keys(logDecodeDependencies) !== undefined) { - for (const key of Object.keys(logDecodeDependencies)) { - logDecodeDependenciesAbiOnly[key] = logDecodeDependencies[key].compilerOutput.abi; - } - } - return IAssetProxyContract.deployAsync(bytecode, abi, provider, txDefaults, logDecodeDependenciesAbiOnly); - } - public static async deployAsync( - bytecode: string, - abi: ContractAbi, - supportedProvider: SupportedProvider, - txDefaults: Partial, - logDecodeDependencies: { [contractName: string]: ContractAbi }, - ): Promise { - assert.isHexString('bytecode', bytecode); - assert.doesConformToSchema('txDefaults', txDefaults, schemas.txDataSchema, [ - schemas.addressSchema, - schemas.numberSchema, - schemas.jsNumber, - ]); - const provider = providerUtils.standardizeOrThrow(supportedProvider); - const constructorAbi = BaseContract._lookupConstructorAbi(abi); - [] = BaseContract._formatABIDataItemList(constructorAbi.inputs, [], BaseContract._bigNumberToString); - const iface = new ethers.utils.Interface(abi); - const deployInfo = iface.deployFunction; - const txData = deployInfo.encode(bytecode, []); - const web3Wrapper = new Web3Wrapper(provider); - const txDataWithDefaults = await BaseContract._applyDefaultsToTxDataAsync( - { data: txData }, - txDefaults, - web3Wrapper.estimateGasAsync.bind(web3Wrapper), - ); - const txHash = await web3Wrapper.sendTransactionAsync(txDataWithDefaults); - logUtils.log(`transactionHash: ${txHash}`); - const txReceipt = await web3Wrapper.awaitTransactionSuccessAsync(txHash); - logUtils.log(`IAssetProxy successfully deployed at ${txReceipt.contractAddress}`); - const contractInstance = new IAssetProxyContract( - txReceipt.contractAddress as string, - provider, - txDefaults, - logDecodeDependencies, - ); - contractInstance.constructorArgs = []; - return contractInstance; - } - - /** - * @returns The contract ABI - */ - public static ABI(): ContractAbi { - const abi = [ - { - constant: false, - inputs: [ - { - name: 'assetData', - type: 'bytes', - }, - { - name: 'from', - type: 'address', - }, - { - name: 'to', - type: 'address', - }, - { - name: 'amount', - type: 'uint256', - }, - ], - name: 'transferFrom', - outputs: [], - payable: false, - stateMutability: 'nonpayable', - type: 'function', - }, - { - constant: true, - inputs: [], - name: 'getProxyId', - outputs: [ - { - name: '', - type: 'bytes4', - }, - ], - payable: false, - stateMutability: 'pure', - type: 'function', - }, - ] as ContractAbi; - return abi; - } - - public getFunctionSignature(methodName: string): string { - const index = this._methodABIIndex[methodName]; - const methodAbi = IAssetProxyContract.ABI()[index] as MethodAbi; // tslint:disable-line:no-unnecessary-type-assertion - const functionSignature = methodAbiToFunctionSignature(methodAbi); - return functionSignature; - } - public getABIDecodedTransactionData(methodName: string, callData: string): T { - const functionSignature = this.getFunctionSignature(methodName); - const self = (this as any) as IAssetProxyContract; - const abiEncoder = self._lookupAbiEncoder(functionSignature); - const abiDecodedCallData = abiEncoder.strictDecode(callData); - return abiDecodedCallData; - } - public getABIDecodedReturnData(methodName: string, callData: string): T { - const functionSignature = this.getFunctionSignature(methodName); - const self = (this as any) as IAssetProxyContract; - const abiEncoder = self._lookupAbiEncoder(functionSignature); - const abiDecodedCallData = abiEncoder.strictDecodeReturnValue(callData); - return abiDecodedCallData; - } - public getSelector(methodName: string): string { - const functionSignature = this.getFunctionSignature(methodName); - const self = (this as any) as IAssetProxyContract; - const abiEncoder = self._lookupAbiEncoder(functionSignature); - return abiEncoder.getSelector(); - } - - /** - * Transfers assets. Either succeeds or throws. - * @param assetData Byte array encoded for the respective asset proxy. - * @param from Address to transfer asset from. - * @param to Address to transfer asset to. - * @param amount Amount of asset to transfer. - */ - public transferFrom(assetData: string, from: string, to: string, amount: BigNumber): ContractTxFunctionObj { - const self = (this as any) as IAssetProxyContract; - assert.isString('assetData', assetData); - assert.isString('from', from); - assert.isString('to', to); - assert.isBigNumber('amount', amount); - - return { - async sendTransactionAsync( - txData?: Partial | undefined, - opts: SendTransactionOpts = { shouldValidate: true }, - ): Promise { - const encodedData = self._strictEncodeArguments('transferFrom(bytes,address,address,uint256)', [ - assetData, - from.toLowerCase(), - to.toLowerCase(), - amount, - ]); - const txDataWithDefaults = await BaseContract._applyDefaultsToTxDataAsync( - { - to: self.address, - ...txData, - data: encodedData, - }, - self._web3Wrapper.getContractDefaults(), - ); - if (txDataWithDefaults.from !== undefined) { - txDataWithDefaults.from = txDataWithDefaults.from.toLowerCase(); - } - - if (opts.shouldValidate !== false) { - await this.callAsync(txDataWithDefaults); - } - - const txHash = await self._web3Wrapper.sendTransactionAsync(txDataWithDefaults); - return txHash; - }, - awaitTransactionSuccessAsync( - txData?: Partial, - opts: AwaitTransactionSuccessOpts = { shouldValidate: true }, - ): PromiseWithTransactionHash { - const txHashPromise = this.sendTransactionAsync(txData, opts); - return new PromiseWithTransactionHash( - txHashPromise, - (async (): Promise => { - // When the transaction hash resolves, wait for it to be mined. - return self._web3Wrapper.awaitTransactionSuccessAsync( - await txHashPromise, - opts.pollingIntervalMs, - opts.timeoutMs, - ); - })(), - ); - }, - async estimateGasAsync(txData?: Partial | undefined): Promise { - const encodedData = self._strictEncodeArguments('transferFrom(bytes,address,address,uint256)', [ - assetData, - from.toLowerCase(), - to.toLowerCase(), - amount, - ]); - const txDataWithDefaults = await BaseContract._applyDefaultsToTxDataAsync( - { - to: self.address, - ...txData, - data: encodedData, - }, - self._web3Wrapper.getContractDefaults(), - ); - if (txDataWithDefaults.from !== undefined) { - txDataWithDefaults.from = txDataWithDefaults.from.toLowerCase(); - } - - const gas = await self._web3Wrapper.estimateGasAsync(txDataWithDefaults); - return gas; - }, - async callAsync(callData: Partial = {}, defaultBlock?: BlockParam): Promise { - assert.doesConformToSchema('callData', callData, schemas.callDataSchema, [ - schemas.addressSchema, - schemas.numberSchema, - schemas.jsNumber, - ]); - if (defaultBlock !== undefined) { - assert.isBlockParam('defaultBlock', defaultBlock); - } - const encodedData = self._strictEncodeArguments('transferFrom(bytes,address,address,uint256)', [ - assetData, - from.toLowerCase(), - to.toLowerCase(), - amount, - ]); - let rawCallResult; - - const callDataWithDefaults = await BaseContract._applyDefaultsToTxDataAsync( - { - to: self.address, - ...callData, - data: encodedData, - }, - self._web3Wrapper.getContractDefaults(), - ); - callDataWithDefaults.from = callDataWithDefaults.from - ? callDataWithDefaults.from.toLowerCase() - : callDataWithDefaults.from; - try { - rawCallResult = await self._web3Wrapper.callAsync(callDataWithDefaults, defaultBlock); - } catch (err) { - BaseContract._throwIfThrownErrorIsRevertError(err); - throw err; - } - - BaseContract._throwIfCallResultIsRevertError(rawCallResult); - const abiEncoder = self._lookupAbiEncoder('transferFrom(bytes,address,address,uint256)'); - // tslint:disable boolean-naming - const result = abiEncoder.strictDecodeReturnValue(rawCallResult); - // tslint:enable boolean-naming - return result; - }, - getABIEncodedTransactionData(): string { - const abiEncodedTransactionData = self._strictEncodeArguments( - 'transferFrom(bytes,address,address,uint256)', - [assetData, from.toLowerCase(), to.toLowerCase(), amount], - ); - return abiEncodedTransactionData; - }, - }; - } - /** - * Gets the proxy id associated with the proxy address. - * @returns Proxy id. - */ - public getProxyId(): ContractFunctionObj { - const self = (this as any) as IAssetProxyContract; - - return { - async callAsync(callData: Partial = {}, defaultBlock?: BlockParam): Promise { - assert.doesConformToSchema('callData', callData, schemas.callDataSchema, [ - schemas.addressSchema, - schemas.numberSchema, - schemas.jsNumber, - ]); - if (defaultBlock !== undefined) { - assert.isBlockParam('defaultBlock', defaultBlock); - } - const encodedData = self._strictEncodeArguments('getProxyId()', []); - let rawCallResult; - - const encodedDataBytes = Buffer.from(encodedData.substr(2), 'hex'); - try { - rawCallResult = await self._evmExecAsync(encodedDataBytes); - } catch (err) { - BaseContract._throwIfThrownErrorIsRevertError(err); - throw err; - } - - BaseContract._throwIfCallResultIsRevertError(rawCallResult); - const abiEncoder = self._lookupAbiEncoder('getProxyId()'); - // tslint:disable boolean-naming - const result = abiEncoder.strictDecodeReturnValue(rawCallResult); - // tslint:enable boolean-naming - return result; - }, - getABIEncodedTransactionData(): string { - const abiEncodedTransactionData = self._strictEncodeArguments('getProxyId()', []); - return abiEncodedTransactionData; - }, - }; - } - - constructor( - address: string, - supportedProvider: SupportedProvider, - txDefaults?: Partial, - logDecodeDependencies?: { [contractName: string]: ContractAbi }, - deployedBytecode: string | undefined = IAssetProxyContract.deployedBytecode, - ) { - super( - 'IAssetProxy', - IAssetProxyContract.ABI(), - address, - supportedProvider, - txDefaults, - logDecodeDependencies, - deployedBytecode, - ); - classUtils.bindAll(this, ['_abiEncoderByFunctionSignature', 'address', '_web3Wrapper']); - IAssetProxyContract.ABI().forEach((item, index) => { - if (item.type === 'function') { - const methodAbi = item as MethodAbi; - this._methodABIIndex[methodAbi.name] = index; - } - }); - } -} - -// tslint:disable:max-file-line-count -// tslint:enable:no-unbound-method no-parameter-reassignment no-consecutive-blank-lines ordered-imports align -// tslint:enable:trailing-comma whitespace no-trailing-whitespace diff --git a/packages/abi-gen-wrappers/src/generated-wrappers/multi_asset_proxy.ts b/packages/abi-gen-wrappers/src/generated-wrappers/multi_asset_proxy.ts deleted file mode 100644 index 7c6189ff1b..0000000000 --- a/packages/abi-gen-wrappers/src/generated-wrappers/multi_asset_proxy.ts +++ /dev/null @@ -1,1453 +0,0 @@ -// tslint:disable:no-consecutive-blank-lines ordered-imports align trailing-comma enum-naming -// tslint:disable:whitespace no-unbound-method no-trailing-whitespace -// tslint:disable:no-unused-variable -import { - AwaitTransactionSuccessOpts, - ContractFunctionObj, - ContractTxFunctionObj, - SendTransactionOpts, - BaseContract, - SubscriptionManager, - PromiseWithTransactionHash, - methodAbiToFunctionSignature, -} from '@0x/base-contract'; -import { schemas } from '@0x/json-schemas'; -import { - BlockParam, - BlockParamLiteral, - BlockRange, - CallData, - ContractAbi, - ContractArtifact, - DecodedLogArgs, - LogWithDecodedArgs, - MethodAbi, - TransactionReceiptWithDecodedLogs, - TxData, - TxDataPayable, - SupportedProvider, -} from 'ethereum-types'; -import { BigNumber, classUtils, logUtils, providerUtils } from '@0x/utils'; -import { EventCallback, IndexedFilterValues, SimpleContractArtifact } from '@0x/types'; -import { Web3Wrapper } from '@0x/web3-wrapper'; -import { assert } from '@0x/assert'; -import * as ethers from 'ethers'; -// tslint:enable:no-unused-variable - -export type MultiAssetProxyEventArgs = - | MultiAssetProxyAuthorizedAddressAddedEventArgs - | MultiAssetProxyAuthorizedAddressRemovedEventArgs - | MultiAssetProxyAssetProxyRegisteredEventArgs; - -export enum MultiAssetProxyEvents { - AuthorizedAddressAdded = 'AuthorizedAddressAdded', - AuthorizedAddressRemoved = 'AuthorizedAddressRemoved', - AssetProxyRegistered = 'AssetProxyRegistered', -} - -export interface MultiAssetProxyAuthorizedAddressAddedEventArgs extends DecodedLogArgs { - target: string; - caller: string; -} - -export interface MultiAssetProxyAuthorizedAddressRemovedEventArgs extends DecodedLogArgs { - target: string; - caller: string; -} - -export interface MultiAssetProxyAssetProxyRegisteredEventArgs extends DecodedLogArgs { - id: string; - assetProxy: string; -} - -/* istanbul ignore next */ -// tslint:disable:no-parameter-reassignment -// tslint:disable-next-line:class-name -export class MultiAssetProxyContract extends BaseContract { - /** - * @ignore - */ - public static deployedBytecode = - '0x608060405234801561001057600080fd5b50600436106100d45760003560e01c80639ad2674411610081578063c585bb931161005b578063c585bb9314610789578063d39de6e9146107bc578063f2fde38b14610814576100d4565b80639ad26744146106cc578063ae25532e14610705578063b918161114610742576100d4565b806360704108116100b2578063607041081461065257806370712939146106915780638da5cb5b146106c4576100d4565b80633fd3c9971461059857806342f1181e14610600578063494503d414610635575b7fffffffff00000000000000000000000000000000000000000000000000000000600035167fa85e59e400000000000000000000000000000000000000000000000000000000811415610592573360005260026020526040600020546101a5577f08c379a0000000000000000000000000000000000000000000000000000000006000527c20000000000000000000000000000000000000000000000000000000006020527c1553454e4445525f4e4f545f415554484f52495a454400000000000000604052600060605260646000fd5b600480350180356020600482030660448210171561022e577f08c379a0000000000000000000000000000000000000000000000000000000006000527c20000000000000000000000000000000000000000000000000000000006020527c19494e56414c49445f41535345545f444154415f4c454e475448000000604052600060605260646000fd5b602081018201368111156102ad577f08c379a0000000000000000000000000000000000000000000000000000000006000527c20000000000000000000000000000000000000000000000000000000006020527c16494e56414c49445f41535345545f444154415f454e44000000000000604052600060605260646000fd5b5050602481013560448201356044820183016020810335925060448201840160208103358085031561034a577f08c379a0000000000000000000000000000000000000000000000000000000006000527c20000000000000000000000000000000000000000000000000000000006020527c0f4c454e4754485f4d49534d4154434800000000000000000000000000604052600060605260646000fd5b5060646000803760806004526000936064359060200285805b82811015610587578086013584810281868204148615176103ef577f08c379a0000000000000000000000000000000000000000000000000000000006000527c20000000000000000000000000000000000000000000000000000000006020527c1055494e543235365f4f564552464c4f57000000000000000000000000604052600060605260646000fd5b60649081528287013589018b01604481019250018135600481101561049e577f08c379a0000000000000000000000000000000000000000000000000000000006000527c20000000000000000000000000000000000000000000000000000000006020527c1e4c454e4754485f475245415445525f5448414e5f335f5245515549526040527f454400000000000000000000000000000000000000000000000000000000000060605260646000fd5b7fffffffff000000000000000000000000000000000000000000000000000000008235168b8103156104df57809b508b608452600160a45260406084205495505b5084610556577f08c379a0000000000000000000000000000000000000000000000000000000006000527c20000000000000000000000000000000000000000000000000000000006020527c1a41535345545f50524f58595f444f45535f4e4f545f45584953540000604052600060605260646000fd5b60208101836084376000808260a401600080895af1925050508061057e573d6000803e3d6000fd5b50602001610363565b505050505050505050005b50600080fd5b6105d7600480360360208110156105ae57600080fd5b50357fffffffff0000000000000000000000000000000000000000000000000000000016610847565b6040805173ffffffffffffffffffffffffffffffffffffffff9092168252519081900360200190f35b6106336004803603602081101561061657600080fd5b503573ffffffffffffffffffffffffffffffffffffffff1661086f565b005b6105d76004803603602081101561064b57600080fd5b5035610a5b565b6105d76004803603602081101561066857600080fd5b50357fffffffff0000000000000000000000000000000000000000000000000000000016610a8f565b610633600480360360208110156106a757600080fd5b503573ffffffffffffffffffffffffffffffffffffffff16610ad9565b6105d7610dcc565b610633600480360360408110156106e257600080fd5b5073ffffffffffffffffffffffffffffffffffffffff8135169060200135610de8565b61070d611199565b604080517fffffffff000000000000000000000000000000000000000000000000000000009092168252519081900360200190f35b6107756004803603602081101561075857600080fd5b503573ffffffffffffffffffffffffffffffffffffffff166111cf565b604080519115158252519081900360200190f35b6106336004803603602081101561079f57600080fd5b503573ffffffffffffffffffffffffffffffffffffffff166111e4565b6107c4611446565b60408051602080825283518183015283519192839290830191858101910280838360005b838110156108005781810151838201526020016107e8565b505050509050019250505060405180910390f35b6106336004803603602081101561082a57600080fd5b503573ffffffffffffffffffffffffffffffffffffffff166114b5565b60016020526000908152604090205473ffffffffffffffffffffffffffffffffffffffff1681565b60005473ffffffffffffffffffffffffffffffffffffffff1633146108f557604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601360248201527f4f4e4c595f434f4e54524143545f4f574e455200000000000000000000000000604482015290519081900360640190fd5b73ffffffffffffffffffffffffffffffffffffffff811660009081526002602052604090205460ff161561098a57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601960248201527f5441524745545f414c52454144595f415554484f52495a454400000000000000604482015290519081900360640190fd5b73ffffffffffffffffffffffffffffffffffffffff811660008181526002602052604080822080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0016600190811790915560038054918201815583527fc2575a0e9e593c00f959f8c92f12db2869c3395a3b0502d05e2516446f71f85b0180547fffffffffffffffffffffffff00000000000000000000000000000000000000001684179055513392917f3147867c59d17e8fa9d522465651d44aae0a9e38f902f3475b97e58072f0ed4c91a350565b60038181548110610a6857fe5b60009182526020909120015473ffffffffffffffffffffffffffffffffffffffff16905081565b7fffffffff000000000000000000000000000000000000000000000000000000001660009081526001602052604090205473ffffffffffffffffffffffffffffffffffffffff1690565b60005473ffffffffffffffffffffffffffffffffffffffff163314610b5f57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601360248201527f4f4e4c595f434f4e54524143545f4f574e455200000000000000000000000000604482015290519081900360640190fd5b73ffffffffffffffffffffffffffffffffffffffff811660009081526002602052604090205460ff16610bf357604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601560248201527f5441524745545f4e4f545f415554484f52495a45440000000000000000000000604482015290519081900360640190fd5b73ffffffffffffffffffffffffffffffffffffffff8116600090815260026020526040812080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001690555b600354811015610d85578173ffffffffffffffffffffffffffffffffffffffff1660038281548110610c6d57fe5b60009182526020909120015473ffffffffffffffffffffffffffffffffffffffff161415610d7d57600380547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8101908110610cc557fe5b6000918252602090912001546003805473ffffffffffffffffffffffffffffffffffffffff9092169183908110610cf857fe5b600091825260209091200180547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff92909216919091179055600380547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0190610d77908261159b565b50610d85565b600101610c3f565b50604051339073ffffffffffffffffffffffffffffffffffffffff8316907f1f32c1b084e2de0713b8fb16bd46bb9df710a3dbeae2f3ca93af46e016dcc6b090600090a350565b60005473ffffffffffffffffffffffffffffffffffffffff1681565b60005473ffffffffffffffffffffffffffffffffffffffff163314610e6e57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601360248201527f4f4e4c595f434f4e54524143545f4f574e455200000000000000000000000000604482015290519081900360640190fd5b73ffffffffffffffffffffffffffffffffffffffff821660009081526002602052604090205460ff16610f0257604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601560248201527f5441524745545f4e4f545f415554484f52495a45440000000000000000000000604482015290519081900360640190fd5b6003548110610f7257604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601360248201527f494e4445585f4f55545f4f465f424f554e445300000000000000000000000000604482015290519081900360640190fd5b8173ffffffffffffffffffffffffffffffffffffffff1660038281548110610f9657fe5b60009182526020909120015473ffffffffffffffffffffffffffffffffffffffff161461102457604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601b60248201527f415554484f52495a45445f414444524553535f4d49534d415443480000000000604482015290519081900360640190fd5b73ffffffffffffffffffffffffffffffffffffffff8216600090815260026020526040902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00169055600380547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff810190811061109f57fe5b6000918252602090912001546003805473ffffffffffffffffffffffffffffffffffffffff90921691839081106110d257fe5b600091825260209091200180547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff92909216919091179055600380547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0190611151908261159b565b50604051339073ffffffffffffffffffffffffffffffffffffffff8416907f1f32c1b084e2de0713b8fb16bd46bb9df710a3dbeae2f3ca93af46e016dcc6b090600090a35050565b604080517f4d756c746941737365742875696e743235365b5d2c62797465735b5d290000008152905190819003601d0190205b90565b60026020526000908152604090205460ff1681565b60005473ffffffffffffffffffffffffffffffffffffffff16331461126a57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601360248201527f4f4e4c595f434f4e54524143545f4f574e455200000000000000000000000000604482015290519081900360640190fd5b60008173ffffffffffffffffffffffffffffffffffffffff1663ae25532e6040518163ffffffff1660e01b815260040160206040518083038186803b1580156112b257600080fd5b505afa1580156112c6573d6000803e3d6000fd5b505050506040513d60208110156112dc57600080fd5b50517fffffffff00000000000000000000000000000000000000000000000000000000811660009081526001602052604090205490915073ffffffffffffffffffffffffffffffffffffffff16801561139657604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601a60248201527f41535345545f50524f58595f414c52454144595f455849535453000000000000604482015290519081900360640190fd5b7fffffffff00000000000000000000000000000000000000000000000000000000821660008181526001602090815260409182902080547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff881690811790915582519384529083015280517fd2c6b762299c609bdb96520b58a49bfb80186934d4f71a86a367571a15c031949281900390910190a1505050565b606060038054806020026020016040519081016040528092919081815260200182805480156114ab57602002820191906000526020600020905b815473ffffffffffffffffffffffffffffffffffffffff168152600190910190602001808311611480575b5050505050905090565b60005473ffffffffffffffffffffffffffffffffffffffff16331461153b57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601360248201527f4f4e4c595f434f4e54524143545f4f574e455200000000000000000000000000604482015290519081900360640190fd5b73ffffffffffffffffffffffffffffffffffffffff81161561159857600080547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff83161790555b50565b8154818355818111156115bf576000838152602090206115bf9181019083016115c4565b505050565b6111cc91905b808211156115de57600081556001016115ca565b509056fea265627a7a72315820ff218c9e47c47135d1028b03281d63826ba3569217fc501ee67c0661fa98fc5164736f6c634300050b0032'; - private readonly _methodABIIndex: { [name: string]: number } = {}; - private readonly _subscriptionManager: SubscriptionManager; - public static async deployFrom0xArtifactAsync( - artifact: ContractArtifact | SimpleContractArtifact, - supportedProvider: SupportedProvider, - txDefaults: Partial, - logDecodeDependencies: { [contractName: string]: ContractArtifact | SimpleContractArtifact }, - ): Promise { - assert.doesConformToSchema('txDefaults', txDefaults, schemas.txDataSchema, [ - schemas.addressSchema, - schemas.numberSchema, - schemas.jsNumber, - ]); - if (artifact.compilerOutput === undefined) { - throw new Error('Compiler output not found in the artifact file'); - } - const provider = providerUtils.standardizeOrThrow(supportedProvider); - const bytecode = artifact.compilerOutput.evm.bytecode.object; - const abi = artifact.compilerOutput.abi; - const logDecodeDependenciesAbiOnly: { [contractName: string]: ContractAbi } = {}; - if (Object.keys(logDecodeDependencies) !== undefined) { - for (const key of Object.keys(logDecodeDependencies)) { - logDecodeDependenciesAbiOnly[key] = logDecodeDependencies[key].compilerOutput.abi; - } - } - return MultiAssetProxyContract.deployAsync(bytecode, abi, provider, txDefaults, logDecodeDependenciesAbiOnly); - } - public static async deployAsync( - bytecode: string, - abi: ContractAbi, - supportedProvider: SupportedProvider, - txDefaults: Partial, - logDecodeDependencies: { [contractName: string]: ContractAbi }, - ): Promise { - assert.isHexString('bytecode', bytecode); - assert.doesConformToSchema('txDefaults', txDefaults, schemas.txDataSchema, [ - schemas.addressSchema, - schemas.numberSchema, - schemas.jsNumber, - ]); - const provider = providerUtils.standardizeOrThrow(supportedProvider); - const constructorAbi = BaseContract._lookupConstructorAbi(abi); - [] = BaseContract._formatABIDataItemList(constructorAbi.inputs, [], BaseContract._bigNumberToString); - const iface = new ethers.utils.Interface(abi); - const deployInfo = iface.deployFunction; - const txData = deployInfo.encode(bytecode, []); - const web3Wrapper = new Web3Wrapper(provider); - const txDataWithDefaults = await BaseContract._applyDefaultsToTxDataAsync( - { data: txData }, - txDefaults, - web3Wrapper.estimateGasAsync.bind(web3Wrapper), - ); - const txHash = await web3Wrapper.sendTransactionAsync(txDataWithDefaults); - logUtils.log(`transactionHash: ${txHash}`); - const txReceipt = await web3Wrapper.awaitTransactionSuccessAsync(txHash); - logUtils.log(`MultiAssetProxy successfully deployed at ${txReceipt.contractAddress}`); - const contractInstance = new MultiAssetProxyContract( - txReceipt.contractAddress as string, - provider, - txDefaults, - logDecodeDependencies, - ); - contractInstance.constructorArgs = []; - return contractInstance; - } - - /** - * @returns The contract ABI - */ - public static ABI(): ContractAbi { - const abi = [ - { - constant: true, - inputs: [ - { - name: 'index_0', - type: 'bytes4', - }, - ], - name: 'assetProxies', - outputs: [ - { - name: '', - type: 'address', - }, - ], - payable: false, - stateMutability: 'view', - type: 'function', - }, - { - constant: false, - inputs: [ - { - name: 'target', - type: 'address', - }, - ], - name: 'addAuthorizedAddress', - outputs: [], - payable: false, - stateMutability: 'nonpayable', - type: 'function', - }, - { - constant: true, - inputs: [ - { - name: 'index_0', - type: 'uint256', - }, - ], - name: 'authorities', - outputs: [ - { - name: '', - type: 'address', - }, - ], - payable: false, - stateMutability: 'view', - type: 'function', - }, - { - constant: true, - inputs: [ - { - name: 'assetProxyId', - type: 'bytes4', - }, - ], - name: 'getAssetProxy', - outputs: [ - { - name: '', - type: 'address', - }, - ], - payable: false, - stateMutability: 'view', - type: 'function', - }, - { - constant: false, - inputs: [ - { - name: 'target', - type: 'address', - }, - ], - name: 'removeAuthorizedAddress', - outputs: [], - payable: false, - stateMutability: 'nonpayable', - type: 'function', - }, - { - constant: true, - inputs: [], - name: 'owner', - outputs: [ - { - name: '', - type: 'address', - }, - ], - payable: false, - stateMutability: 'view', - type: 'function', - }, - { - constant: false, - inputs: [ - { - name: 'target', - type: 'address', - }, - { - name: 'index', - type: 'uint256', - }, - ], - name: 'removeAuthorizedAddressAtIndex', - outputs: [], - payable: false, - stateMutability: 'nonpayable', - type: 'function', - }, - { - constant: true, - inputs: [], - name: 'getProxyId', - outputs: [ - { - name: '', - type: 'bytes4', - }, - ], - payable: false, - stateMutability: 'pure', - type: 'function', - }, - { - constant: true, - inputs: [ - { - name: 'index_0', - type: 'address', - }, - ], - name: 'authorized', - outputs: [ - { - name: '', - type: 'bool', - }, - ], - payable: false, - stateMutability: 'view', - type: 'function', - }, - { - constant: false, - inputs: [ - { - name: 'assetProxy', - type: 'address', - }, - ], - name: 'registerAssetProxy', - outputs: [], - payable: false, - stateMutability: 'nonpayable', - type: 'function', - }, - { - constant: true, - inputs: [], - name: 'getAuthorizedAddresses', - outputs: [ - { - name: '', - type: 'address[]', - }, - ], - payable: false, - stateMutability: 'view', - type: 'function', - }, - { - constant: false, - inputs: [ - { - name: 'newOwner', - type: 'address', - }, - ], - name: 'transferOwnership', - outputs: [], - payable: false, - stateMutability: 'nonpayable', - type: 'function', - }, - { - inputs: [], - outputs: [], - payable: false, - stateMutability: 'nonpayable', - type: 'fallback', - }, - { - anonymous: false, - inputs: [ - { - name: 'target', - type: 'address', - indexed: true, - }, - { - name: 'caller', - type: 'address', - indexed: true, - }, - ], - name: 'AuthorizedAddressAdded', - outputs: [], - type: 'event', - }, - { - anonymous: false, - inputs: [ - { - name: 'target', - type: 'address', - indexed: true, - }, - { - name: 'caller', - type: 'address', - indexed: true, - }, - ], - name: 'AuthorizedAddressRemoved', - outputs: [], - type: 'event', - }, - { - anonymous: false, - inputs: [ - { - name: 'id', - type: 'bytes4', - indexed: false, - }, - { - name: 'assetProxy', - type: 'address', - indexed: false, - }, - ], - name: 'AssetProxyRegistered', - outputs: [], - type: 'event', - }, - ] as ContractAbi; - return abi; - } - - public getFunctionSignature(methodName: string): string { - const index = this._methodABIIndex[methodName]; - const methodAbi = MultiAssetProxyContract.ABI()[index] as MethodAbi; // tslint:disable-line:no-unnecessary-type-assertion - const functionSignature = methodAbiToFunctionSignature(methodAbi); - return functionSignature; - } - public getABIDecodedTransactionData(methodName: string, callData: string): T { - const functionSignature = this.getFunctionSignature(methodName); - const self = (this as any) as MultiAssetProxyContract; - const abiEncoder = self._lookupAbiEncoder(functionSignature); - const abiDecodedCallData = abiEncoder.strictDecode(callData); - return abiDecodedCallData; - } - public getABIDecodedReturnData(methodName: string, callData: string): T { - const functionSignature = this.getFunctionSignature(methodName); - const self = (this as any) as MultiAssetProxyContract; - const abiEncoder = self._lookupAbiEncoder(functionSignature); - const abiDecodedCallData = abiEncoder.strictDecodeReturnValue(callData); - return abiDecodedCallData; - } - public getSelector(methodName: string): string { - const functionSignature = this.getFunctionSignature(methodName); - const self = (this as any) as MultiAssetProxyContract; - const abiEncoder = self._lookupAbiEncoder(functionSignature); - return abiEncoder.getSelector(); - } - - public assetProxies(index_0: string): ContractFunctionObj { - const self = (this as any) as MultiAssetProxyContract; - assert.isString('index_0', index_0); - - return { - async callAsync(callData: Partial = {}, defaultBlock?: BlockParam): Promise { - assert.doesConformToSchema('callData', callData, schemas.callDataSchema, [ - schemas.addressSchema, - schemas.numberSchema, - schemas.jsNumber, - ]); - if (defaultBlock !== undefined) { - assert.isBlockParam('defaultBlock', defaultBlock); - } - const encodedData = self._strictEncodeArguments('assetProxies(bytes4)', [index_0]); - let rawCallResult; - - const callDataWithDefaults = await BaseContract._applyDefaultsToTxDataAsync( - { - to: self.address, - ...callData, - data: encodedData, - }, - self._web3Wrapper.getContractDefaults(), - ); - callDataWithDefaults.from = callDataWithDefaults.from - ? callDataWithDefaults.from.toLowerCase() - : callDataWithDefaults.from; - try { - rawCallResult = await self._web3Wrapper.callAsync(callDataWithDefaults, defaultBlock); - } catch (err) { - BaseContract._throwIfThrownErrorIsRevertError(err); - throw err; - } - - BaseContract._throwIfCallResultIsRevertError(rawCallResult); - const abiEncoder = self._lookupAbiEncoder('assetProxies(bytes4)'); - // tslint:disable boolean-naming - const result = abiEncoder.strictDecodeReturnValue(rawCallResult); - // tslint:enable boolean-naming - return result; - }, - getABIEncodedTransactionData(): string { - const abiEncodedTransactionData = self._strictEncodeArguments('assetProxies(bytes4)', [index_0]); - return abiEncodedTransactionData; - }, - }; - } - /** - * Authorizes an address. - * @param target Address to authorize. - */ - public addAuthorizedAddress(target: string): ContractTxFunctionObj { - const self = (this as any) as MultiAssetProxyContract; - assert.isString('target', target); - - return { - async sendTransactionAsync( - txData?: Partial | undefined, - opts: SendTransactionOpts = { shouldValidate: true }, - ): Promise { - const encodedData = self._strictEncodeArguments('addAuthorizedAddress(address)', [ - target.toLowerCase(), - ]); - const txDataWithDefaults = await BaseContract._applyDefaultsToTxDataAsync( - { - to: self.address, - ...txData, - data: encodedData, - }, - self._web3Wrapper.getContractDefaults(), - ); - if (txDataWithDefaults.from !== undefined) { - txDataWithDefaults.from = txDataWithDefaults.from.toLowerCase(); - } - - if (opts.shouldValidate !== false) { - await this.callAsync(txDataWithDefaults); - } - - const txHash = await self._web3Wrapper.sendTransactionAsync(txDataWithDefaults); - return txHash; - }, - awaitTransactionSuccessAsync( - txData?: Partial, - opts: AwaitTransactionSuccessOpts = { shouldValidate: true }, - ): PromiseWithTransactionHash { - const txHashPromise = this.sendTransactionAsync(txData, opts); - return new PromiseWithTransactionHash( - txHashPromise, - (async (): Promise => { - // When the transaction hash resolves, wait for it to be mined. - return self._web3Wrapper.awaitTransactionSuccessAsync( - await txHashPromise, - opts.pollingIntervalMs, - opts.timeoutMs, - ); - })(), - ); - }, - async estimateGasAsync(txData?: Partial | undefined): Promise { - const encodedData = self._strictEncodeArguments('addAuthorizedAddress(address)', [ - target.toLowerCase(), - ]); - const txDataWithDefaults = await BaseContract._applyDefaultsToTxDataAsync( - { - to: self.address, - ...txData, - data: encodedData, - }, - self._web3Wrapper.getContractDefaults(), - ); - if (txDataWithDefaults.from !== undefined) { - txDataWithDefaults.from = txDataWithDefaults.from.toLowerCase(); - } - - const gas = await self._web3Wrapper.estimateGasAsync(txDataWithDefaults); - return gas; - }, - async callAsync(callData: Partial = {}, defaultBlock?: BlockParam): Promise { - assert.doesConformToSchema('callData', callData, schemas.callDataSchema, [ - schemas.addressSchema, - schemas.numberSchema, - schemas.jsNumber, - ]); - if (defaultBlock !== undefined) { - assert.isBlockParam('defaultBlock', defaultBlock); - } - const encodedData = self._strictEncodeArguments('addAuthorizedAddress(address)', [ - target.toLowerCase(), - ]); - let rawCallResult; - - const callDataWithDefaults = await BaseContract._applyDefaultsToTxDataAsync( - { - to: self.address, - ...callData, - data: encodedData, - }, - self._web3Wrapper.getContractDefaults(), - ); - callDataWithDefaults.from = callDataWithDefaults.from - ? callDataWithDefaults.from.toLowerCase() - : callDataWithDefaults.from; - try { - rawCallResult = await self._web3Wrapper.callAsync(callDataWithDefaults, defaultBlock); - } catch (err) { - BaseContract._throwIfThrownErrorIsRevertError(err); - throw err; - } - - BaseContract._throwIfCallResultIsRevertError(rawCallResult); - const abiEncoder = self._lookupAbiEncoder('addAuthorizedAddress(address)'); - // tslint:disable boolean-naming - const result = abiEncoder.strictDecodeReturnValue(rawCallResult); - // tslint:enable boolean-naming - return result; - }, - getABIEncodedTransactionData(): string { - const abiEncodedTransactionData = self._strictEncodeArguments('addAuthorizedAddress(address)', [ - target.toLowerCase(), - ]); - return abiEncodedTransactionData; - }, - }; - } - public authorities(index_0: BigNumber): ContractFunctionObj { - const self = (this as any) as MultiAssetProxyContract; - assert.isBigNumber('index_0', index_0); - - return { - async callAsync(callData: Partial = {}, defaultBlock?: BlockParam): Promise { - assert.doesConformToSchema('callData', callData, schemas.callDataSchema, [ - schemas.addressSchema, - schemas.numberSchema, - schemas.jsNumber, - ]); - if (defaultBlock !== undefined) { - assert.isBlockParam('defaultBlock', defaultBlock); - } - const encodedData = self._strictEncodeArguments('authorities(uint256)', [index_0]); - let rawCallResult; - - const callDataWithDefaults = await BaseContract._applyDefaultsToTxDataAsync( - { - to: self.address, - ...callData, - data: encodedData, - }, - self._web3Wrapper.getContractDefaults(), - ); - callDataWithDefaults.from = callDataWithDefaults.from - ? callDataWithDefaults.from.toLowerCase() - : callDataWithDefaults.from; - try { - rawCallResult = await self._web3Wrapper.callAsync(callDataWithDefaults, defaultBlock); - } catch (err) { - BaseContract._throwIfThrownErrorIsRevertError(err); - throw err; - } - - BaseContract._throwIfCallResultIsRevertError(rawCallResult); - const abiEncoder = self._lookupAbiEncoder('authorities(uint256)'); - // tslint:disable boolean-naming - const result = abiEncoder.strictDecodeReturnValue(rawCallResult); - // tslint:enable boolean-naming - return result; - }, - getABIEncodedTransactionData(): string { - const abiEncodedTransactionData = self._strictEncodeArguments('authorities(uint256)', [index_0]); - return abiEncodedTransactionData; - }, - }; - } - /** - * Gets an asset proxy. - * @param assetProxyId Id of the asset proxy. - * @returns The asset proxy registered to assetProxyId. Returns 0x0 if no proxy is registered. - */ - public getAssetProxy(assetProxyId: string): ContractFunctionObj { - const self = (this as any) as MultiAssetProxyContract; - assert.isString('assetProxyId', assetProxyId); - - return { - async callAsync(callData: Partial = {}, defaultBlock?: BlockParam): Promise { - assert.doesConformToSchema('callData', callData, schemas.callDataSchema, [ - schemas.addressSchema, - schemas.numberSchema, - schemas.jsNumber, - ]); - if (defaultBlock !== undefined) { - assert.isBlockParam('defaultBlock', defaultBlock); - } - const encodedData = self._strictEncodeArguments('getAssetProxy(bytes4)', [assetProxyId]); - let rawCallResult; - - const callDataWithDefaults = await BaseContract._applyDefaultsToTxDataAsync( - { - to: self.address, - ...callData, - data: encodedData, - }, - self._web3Wrapper.getContractDefaults(), - ); - callDataWithDefaults.from = callDataWithDefaults.from - ? callDataWithDefaults.from.toLowerCase() - : callDataWithDefaults.from; - try { - rawCallResult = await self._web3Wrapper.callAsync(callDataWithDefaults, defaultBlock); - } catch (err) { - BaseContract._throwIfThrownErrorIsRevertError(err); - throw err; - } - - BaseContract._throwIfCallResultIsRevertError(rawCallResult); - const abiEncoder = self._lookupAbiEncoder('getAssetProxy(bytes4)'); - // tslint:disable boolean-naming - const result = abiEncoder.strictDecodeReturnValue(rawCallResult); - // tslint:enable boolean-naming - return result; - }, - getABIEncodedTransactionData(): string { - const abiEncodedTransactionData = self._strictEncodeArguments('getAssetProxy(bytes4)', [assetProxyId]); - return abiEncodedTransactionData; - }, - }; - } - /** - * Removes authorizion of an address. - * @param target Address to remove authorization from. - */ - public removeAuthorizedAddress(target: string): ContractTxFunctionObj { - const self = (this as any) as MultiAssetProxyContract; - assert.isString('target', target); - - return { - async sendTransactionAsync( - txData?: Partial | undefined, - opts: SendTransactionOpts = { shouldValidate: true }, - ): Promise { - const encodedData = self._strictEncodeArguments('removeAuthorizedAddress(address)', [ - target.toLowerCase(), - ]); - const txDataWithDefaults = await BaseContract._applyDefaultsToTxDataAsync( - { - to: self.address, - ...txData, - data: encodedData, - }, - self._web3Wrapper.getContractDefaults(), - ); - if (txDataWithDefaults.from !== undefined) { - txDataWithDefaults.from = txDataWithDefaults.from.toLowerCase(); - } - - if (opts.shouldValidate !== false) { - await this.callAsync(txDataWithDefaults); - } - - const txHash = await self._web3Wrapper.sendTransactionAsync(txDataWithDefaults); - return txHash; - }, - awaitTransactionSuccessAsync( - txData?: Partial, - opts: AwaitTransactionSuccessOpts = { shouldValidate: true }, - ): PromiseWithTransactionHash { - const txHashPromise = this.sendTransactionAsync(txData, opts); - return new PromiseWithTransactionHash( - txHashPromise, - (async (): Promise => { - // When the transaction hash resolves, wait for it to be mined. - return self._web3Wrapper.awaitTransactionSuccessAsync( - await txHashPromise, - opts.pollingIntervalMs, - opts.timeoutMs, - ); - })(), - ); - }, - async estimateGasAsync(txData?: Partial | undefined): Promise { - const encodedData = self._strictEncodeArguments('removeAuthorizedAddress(address)', [ - target.toLowerCase(), - ]); - const txDataWithDefaults = await BaseContract._applyDefaultsToTxDataAsync( - { - to: self.address, - ...txData, - data: encodedData, - }, - self._web3Wrapper.getContractDefaults(), - ); - if (txDataWithDefaults.from !== undefined) { - txDataWithDefaults.from = txDataWithDefaults.from.toLowerCase(); - } - - const gas = await self._web3Wrapper.estimateGasAsync(txDataWithDefaults); - return gas; - }, - async callAsync(callData: Partial = {}, defaultBlock?: BlockParam): Promise { - assert.doesConformToSchema('callData', callData, schemas.callDataSchema, [ - schemas.addressSchema, - schemas.numberSchema, - schemas.jsNumber, - ]); - if (defaultBlock !== undefined) { - assert.isBlockParam('defaultBlock', defaultBlock); - } - const encodedData = self._strictEncodeArguments('removeAuthorizedAddress(address)', [ - target.toLowerCase(), - ]); - let rawCallResult; - - const callDataWithDefaults = await BaseContract._applyDefaultsToTxDataAsync( - { - to: self.address, - ...callData, - data: encodedData, - }, - self._web3Wrapper.getContractDefaults(), - ); - callDataWithDefaults.from = callDataWithDefaults.from - ? callDataWithDefaults.from.toLowerCase() - : callDataWithDefaults.from; - try { - rawCallResult = await self._web3Wrapper.callAsync(callDataWithDefaults, defaultBlock); - } catch (err) { - BaseContract._throwIfThrownErrorIsRevertError(err); - throw err; - } - - BaseContract._throwIfCallResultIsRevertError(rawCallResult); - const abiEncoder = self._lookupAbiEncoder('removeAuthorizedAddress(address)'); - // tslint:disable boolean-naming - const result = abiEncoder.strictDecodeReturnValue(rawCallResult); - // tslint:enable boolean-naming - return result; - }, - getABIEncodedTransactionData(): string { - const abiEncodedTransactionData = self._strictEncodeArguments('removeAuthorizedAddress(address)', [ - target.toLowerCase(), - ]); - return abiEncodedTransactionData; - }, - }; - } - public owner(): ContractFunctionObj { - const self = (this as any) as MultiAssetProxyContract; - - return { - async callAsync(callData: Partial = {}, defaultBlock?: BlockParam): Promise { - assert.doesConformToSchema('callData', callData, schemas.callDataSchema, [ - schemas.addressSchema, - schemas.numberSchema, - schemas.jsNumber, - ]); - if (defaultBlock !== undefined) { - assert.isBlockParam('defaultBlock', defaultBlock); - } - const encodedData = self._strictEncodeArguments('owner()', []); - let rawCallResult; - - const callDataWithDefaults = await BaseContract._applyDefaultsToTxDataAsync( - { - to: self.address, - ...callData, - data: encodedData, - }, - self._web3Wrapper.getContractDefaults(), - ); - callDataWithDefaults.from = callDataWithDefaults.from - ? callDataWithDefaults.from.toLowerCase() - : callDataWithDefaults.from; - try { - rawCallResult = await self._web3Wrapper.callAsync(callDataWithDefaults, defaultBlock); - } catch (err) { - BaseContract._throwIfThrownErrorIsRevertError(err); - throw err; - } - - BaseContract._throwIfCallResultIsRevertError(rawCallResult); - const abiEncoder = self._lookupAbiEncoder('owner()'); - // tslint:disable boolean-naming - const result = abiEncoder.strictDecodeReturnValue(rawCallResult); - // tslint:enable boolean-naming - return result; - }, - getABIEncodedTransactionData(): string { - const abiEncodedTransactionData = self._strictEncodeArguments('owner()', []); - return abiEncodedTransactionData; - }, - }; - } - /** - * Removes authorizion of an address. - * @param target Address to remove authorization from. - * @param index Index of target in authorities array. - */ - public removeAuthorizedAddressAtIndex(target: string, index: BigNumber): ContractTxFunctionObj { - const self = (this as any) as MultiAssetProxyContract; - assert.isString('target', target); - assert.isBigNumber('index', index); - - return { - async sendTransactionAsync( - txData?: Partial | undefined, - opts: SendTransactionOpts = { shouldValidate: true }, - ): Promise { - const encodedData = self._strictEncodeArguments('removeAuthorizedAddressAtIndex(address,uint256)', [ - target.toLowerCase(), - index, - ]); - const txDataWithDefaults = await BaseContract._applyDefaultsToTxDataAsync( - { - to: self.address, - ...txData, - data: encodedData, - }, - self._web3Wrapper.getContractDefaults(), - ); - if (txDataWithDefaults.from !== undefined) { - txDataWithDefaults.from = txDataWithDefaults.from.toLowerCase(); - } - - if (opts.shouldValidate !== false) { - await this.callAsync(txDataWithDefaults); - } - - const txHash = await self._web3Wrapper.sendTransactionAsync(txDataWithDefaults); - return txHash; - }, - awaitTransactionSuccessAsync( - txData?: Partial, - opts: AwaitTransactionSuccessOpts = { shouldValidate: true }, - ): PromiseWithTransactionHash { - const txHashPromise = this.sendTransactionAsync(txData, opts); - return new PromiseWithTransactionHash( - txHashPromise, - (async (): Promise => { - // When the transaction hash resolves, wait for it to be mined. - return self._web3Wrapper.awaitTransactionSuccessAsync( - await txHashPromise, - opts.pollingIntervalMs, - opts.timeoutMs, - ); - })(), - ); - }, - async estimateGasAsync(txData?: Partial | undefined): Promise { - const encodedData = self._strictEncodeArguments('removeAuthorizedAddressAtIndex(address,uint256)', [ - target.toLowerCase(), - index, - ]); - const txDataWithDefaults = await BaseContract._applyDefaultsToTxDataAsync( - { - to: self.address, - ...txData, - data: encodedData, - }, - self._web3Wrapper.getContractDefaults(), - ); - if (txDataWithDefaults.from !== undefined) { - txDataWithDefaults.from = txDataWithDefaults.from.toLowerCase(); - } - - const gas = await self._web3Wrapper.estimateGasAsync(txDataWithDefaults); - return gas; - }, - async callAsync(callData: Partial = {}, defaultBlock?: BlockParam): Promise { - assert.doesConformToSchema('callData', callData, schemas.callDataSchema, [ - schemas.addressSchema, - schemas.numberSchema, - schemas.jsNumber, - ]); - if (defaultBlock !== undefined) { - assert.isBlockParam('defaultBlock', defaultBlock); - } - const encodedData = self._strictEncodeArguments('removeAuthorizedAddressAtIndex(address,uint256)', [ - target.toLowerCase(), - index, - ]); - let rawCallResult; - - const callDataWithDefaults = await BaseContract._applyDefaultsToTxDataAsync( - { - to: self.address, - ...callData, - data: encodedData, - }, - self._web3Wrapper.getContractDefaults(), - ); - callDataWithDefaults.from = callDataWithDefaults.from - ? callDataWithDefaults.from.toLowerCase() - : callDataWithDefaults.from; - try { - rawCallResult = await self._web3Wrapper.callAsync(callDataWithDefaults, defaultBlock); - } catch (err) { - BaseContract._throwIfThrownErrorIsRevertError(err); - throw err; - } - - BaseContract._throwIfCallResultIsRevertError(rawCallResult); - const abiEncoder = self._lookupAbiEncoder('removeAuthorizedAddressAtIndex(address,uint256)'); - // tslint:disable boolean-naming - const result = abiEncoder.strictDecodeReturnValue(rawCallResult); - // tslint:enable boolean-naming - return result; - }, - getABIEncodedTransactionData(): string { - const abiEncodedTransactionData = self._strictEncodeArguments( - 'removeAuthorizedAddressAtIndex(address,uint256)', - [target.toLowerCase(), index], - ); - return abiEncodedTransactionData; - }, - }; - } - /** - * Gets the proxy id associated with the proxy address. - * @returns Proxy id. - */ - public getProxyId(): ContractFunctionObj { - const self = (this as any) as MultiAssetProxyContract; - - return { - async callAsync(callData: Partial = {}, defaultBlock?: BlockParam): Promise { - assert.doesConformToSchema('callData', callData, schemas.callDataSchema, [ - schemas.addressSchema, - schemas.numberSchema, - schemas.jsNumber, - ]); - if (defaultBlock !== undefined) { - assert.isBlockParam('defaultBlock', defaultBlock); - } - const encodedData = self._strictEncodeArguments('getProxyId()', []); - let rawCallResult; - - const encodedDataBytes = Buffer.from(encodedData.substr(2), 'hex'); - try { - rawCallResult = await self._evmExecAsync(encodedDataBytes); - } catch (err) { - BaseContract._throwIfThrownErrorIsRevertError(err); - throw err; - } - - BaseContract._throwIfCallResultIsRevertError(rawCallResult); - const abiEncoder = self._lookupAbiEncoder('getProxyId()'); - // tslint:disable boolean-naming - const result = abiEncoder.strictDecodeReturnValue(rawCallResult); - // tslint:enable boolean-naming - return result; - }, - getABIEncodedTransactionData(): string { - const abiEncodedTransactionData = self._strictEncodeArguments('getProxyId()', []); - return abiEncodedTransactionData; - }, - }; - } - public authorized(index_0: string): ContractFunctionObj { - const self = (this as any) as MultiAssetProxyContract; - assert.isString('index_0', index_0); - - return { - async callAsync(callData: Partial = {}, defaultBlock?: BlockParam): Promise { - assert.doesConformToSchema('callData', callData, schemas.callDataSchema, [ - schemas.addressSchema, - schemas.numberSchema, - schemas.jsNumber, - ]); - if (defaultBlock !== undefined) { - assert.isBlockParam('defaultBlock', defaultBlock); - } - const encodedData = self._strictEncodeArguments('authorized(address)', [index_0.toLowerCase()]); - let rawCallResult; - - const callDataWithDefaults = await BaseContract._applyDefaultsToTxDataAsync( - { - to: self.address, - ...callData, - data: encodedData, - }, - self._web3Wrapper.getContractDefaults(), - ); - callDataWithDefaults.from = callDataWithDefaults.from - ? callDataWithDefaults.from.toLowerCase() - : callDataWithDefaults.from; - try { - rawCallResult = await self._web3Wrapper.callAsync(callDataWithDefaults, defaultBlock); - } catch (err) { - BaseContract._throwIfThrownErrorIsRevertError(err); - throw err; - } - - BaseContract._throwIfCallResultIsRevertError(rawCallResult); - const abiEncoder = self._lookupAbiEncoder('authorized(address)'); - // tslint:disable boolean-naming - const result = abiEncoder.strictDecodeReturnValue(rawCallResult); - // tslint:enable boolean-naming - return result; - }, - getABIEncodedTransactionData(): string { - const abiEncodedTransactionData = self._strictEncodeArguments('authorized(address)', [ - index_0.toLowerCase(), - ]); - return abiEncodedTransactionData; - }, - }; - } - /** - * Registers an asset proxy to its asset proxy id. - * Once an asset proxy is registered, it cannot be unregistered. - * @param assetProxy Address of new asset proxy to register. - */ - public registerAssetProxy(assetProxy: string): ContractTxFunctionObj { - const self = (this as any) as MultiAssetProxyContract; - assert.isString('assetProxy', assetProxy); - - return { - async sendTransactionAsync( - txData?: Partial | undefined, - opts: SendTransactionOpts = { shouldValidate: true }, - ): Promise { - const encodedData = self._strictEncodeArguments('registerAssetProxy(address)', [ - assetProxy.toLowerCase(), - ]); - const txDataWithDefaults = await BaseContract._applyDefaultsToTxDataAsync( - { - to: self.address, - ...txData, - data: encodedData, - }, - self._web3Wrapper.getContractDefaults(), - ); - if (txDataWithDefaults.from !== undefined) { - txDataWithDefaults.from = txDataWithDefaults.from.toLowerCase(); - } - - if (opts.shouldValidate !== false) { - await this.callAsync(txDataWithDefaults); - } - - const txHash = await self._web3Wrapper.sendTransactionAsync(txDataWithDefaults); - return txHash; - }, - awaitTransactionSuccessAsync( - txData?: Partial, - opts: AwaitTransactionSuccessOpts = { shouldValidate: true }, - ): PromiseWithTransactionHash { - const txHashPromise = this.sendTransactionAsync(txData, opts); - return new PromiseWithTransactionHash( - txHashPromise, - (async (): Promise => { - // When the transaction hash resolves, wait for it to be mined. - return self._web3Wrapper.awaitTransactionSuccessAsync( - await txHashPromise, - opts.pollingIntervalMs, - opts.timeoutMs, - ); - })(), - ); - }, - async estimateGasAsync(txData?: Partial | undefined): Promise { - const encodedData = self._strictEncodeArguments('registerAssetProxy(address)', [ - assetProxy.toLowerCase(), - ]); - const txDataWithDefaults = await BaseContract._applyDefaultsToTxDataAsync( - { - to: self.address, - ...txData, - data: encodedData, - }, - self._web3Wrapper.getContractDefaults(), - ); - if (txDataWithDefaults.from !== undefined) { - txDataWithDefaults.from = txDataWithDefaults.from.toLowerCase(); - } - - const gas = await self._web3Wrapper.estimateGasAsync(txDataWithDefaults); - return gas; - }, - async callAsync(callData: Partial = {}, defaultBlock?: BlockParam): Promise { - assert.doesConformToSchema('callData', callData, schemas.callDataSchema, [ - schemas.addressSchema, - schemas.numberSchema, - schemas.jsNumber, - ]); - if (defaultBlock !== undefined) { - assert.isBlockParam('defaultBlock', defaultBlock); - } - const encodedData = self._strictEncodeArguments('registerAssetProxy(address)', [ - assetProxy.toLowerCase(), - ]); - let rawCallResult; - - const callDataWithDefaults = await BaseContract._applyDefaultsToTxDataAsync( - { - to: self.address, - ...callData, - data: encodedData, - }, - self._web3Wrapper.getContractDefaults(), - ); - callDataWithDefaults.from = callDataWithDefaults.from - ? callDataWithDefaults.from.toLowerCase() - : callDataWithDefaults.from; - try { - rawCallResult = await self._web3Wrapper.callAsync(callDataWithDefaults, defaultBlock); - } catch (err) { - BaseContract._throwIfThrownErrorIsRevertError(err); - throw err; - } - - BaseContract._throwIfCallResultIsRevertError(rawCallResult); - const abiEncoder = self._lookupAbiEncoder('registerAssetProxy(address)'); - // tslint:disable boolean-naming - const result = abiEncoder.strictDecodeReturnValue(rawCallResult); - // tslint:enable boolean-naming - return result; - }, - getABIEncodedTransactionData(): string { - const abiEncodedTransactionData = self._strictEncodeArguments('registerAssetProxy(address)', [ - assetProxy.toLowerCase(), - ]); - return abiEncodedTransactionData; - }, - }; - } - /** - * Gets all authorized addresses. - * @returns Array of authorized addresses. - */ - public getAuthorizedAddresses(): ContractFunctionObj { - const self = (this as any) as MultiAssetProxyContract; - - return { - async callAsync(callData: Partial = {}, defaultBlock?: BlockParam): Promise { - assert.doesConformToSchema('callData', callData, schemas.callDataSchema, [ - schemas.addressSchema, - schemas.numberSchema, - schemas.jsNumber, - ]); - if (defaultBlock !== undefined) { - assert.isBlockParam('defaultBlock', defaultBlock); - } - const encodedData = self._strictEncodeArguments('getAuthorizedAddresses()', []); - let rawCallResult; - - const callDataWithDefaults = await BaseContract._applyDefaultsToTxDataAsync( - { - to: self.address, - ...callData, - data: encodedData, - }, - self._web3Wrapper.getContractDefaults(), - ); - callDataWithDefaults.from = callDataWithDefaults.from - ? callDataWithDefaults.from.toLowerCase() - : callDataWithDefaults.from; - try { - rawCallResult = await self._web3Wrapper.callAsync(callDataWithDefaults, defaultBlock); - } catch (err) { - BaseContract._throwIfThrownErrorIsRevertError(err); - throw err; - } - - BaseContract._throwIfCallResultIsRevertError(rawCallResult); - const abiEncoder = self._lookupAbiEncoder('getAuthorizedAddresses()'); - // tslint:disable boolean-naming - const result = abiEncoder.strictDecodeReturnValue(rawCallResult); - // tslint:enable boolean-naming - return result; - }, - getABIEncodedTransactionData(): string { - const abiEncodedTransactionData = self._strictEncodeArguments('getAuthorizedAddresses()', []); - return abiEncodedTransactionData; - }, - }; - } - public transferOwnership(newOwner: string): ContractTxFunctionObj { - const self = (this as any) as MultiAssetProxyContract; - assert.isString('newOwner', newOwner); - - return { - async sendTransactionAsync( - txData?: Partial | undefined, - opts: SendTransactionOpts = { shouldValidate: true }, - ): Promise { - const encodedData = self._strictEncodeArguments('transferOwnership(address)', [newOwner.toLowerCase()]); - const txDataWithDefaults = await BaseContract._applyDefaultsToTxDataAsync( - { - to: self.address, - ...txData, - data: encodedData, - }, - self._web3Wrapper.getContractDefaults(), - ); - if (txDataWithDefaults.from !== undefined) { - txDataWithDefaults.from = txDataWithDefaults.from.toLowerCase(); - } - - if (opts.shouldValidate !== false) { - await this.callAsync(txDataWithDefaults); - } - - const txHash = await self._web3Wrapper.sendTransactionAsync(txDataWithDefaults); - return txHash; - }, - awaitTransactionSuccessAsync( - txData?: Partial, - opts: AwaitTransactionSuccessOpts = { shouldValidate: true }, - ): PromiseWithTransactionHash { - const txHashPromise = this.sendTransactionAsync(txData, opts); - return new PromiseWithTransactionHash( - txHashPromise, - (async (): Promise => { - // When the transaction hash resolves, wait for it to be mined. - return self._web3Wrapper.awaitTransactionSuccessAsync( - await txHashPromise, - opts.pollingIntervalMs, - opts.timeoutMs, - ); - })(), - ); - }, - async estimateGasAsync(txData?: Partial | undefined): Promise { - const encodedData = self._strictEncodeArguments('transferOwnership(address)', [newOwner.toLowerCase()]); - const txDataWithDefaults = await BaseContract._applyDefaultsToTxDataAsync( - { - to: self.address, - ...txData, - data: encodedData, - }, - self._web3Wrapper.getContractDefaults(), - ); - if (txDataWithDefaults.from !== undefined) { - txDataWithDefaults.from = txDataWithDefaults.from.toLowerCase(); - } - - const gas = await self._web3Wrapper.estimateGasAsync(txDataWithDefaults); - return gas; - }, - async callAsync(callData: Partial = {}, defaultBlock?: BlockParam): Promise { - assert.doesConformToSchema('callData', callData, schemas.callDataSchema, [ - schemas.addressSchema, - schemas.numberSchema, - schemas.jsNumber, - ]); - if (defaultBlock !== undefined) { - assert.isBlockParam('defaultBlock', defaultBlock); - } - const encodedData = self._strictEncodeArguments('transferOwnership(address)', [newOwner.toLowerCase()]); - let rawCallResult; - - const callDataWithDefaults = await BaseContract._applyDefaultsToTxDataAsync( - { - to: self.address, - ...callData, - data: encodedData, - }, - self._web3Wrapper.getContractDefaults(), - ); - callDataWithDefaults.from = callDataWithDefaults.from - ? callDataWithDefaults.from.toLowerCase() - : callDataWithDefaults.from; - try { - rawCallResult = await self._web3Wrapper.callAsync(callDataWithDefaults, defaultBlock); - } catch (err) { - BaseContract._throwIfThrownErrorIsRevertError(err); - throw err; - } - - BaseContract._throwIfCallResultIsRevertError(rawCallResult); - const abiEncoder = self._lookupAbiEncoder('transferOwnership(address)'); - // tslint:disable boolean-naming - const result = abiEncoder.strictDecodeReturnValue(rawCallResult); - // tslint:enable boolean-naming - return result; - }, - getABIEncodedTransactionData(): string { - const abiEncodedTransactionData = self._strictEncodeArguments('transferOwnership(address)', [ - newOwner.toLowerCase(), - ]); - return abiEncodedTransactionData; - }, - }; - } - - /** - * Subscribe to an event type emitted by the MultiAssetProxy contract. - * @param eventName The MultiAssetProxy contract event you would like to subscribe to. - * @param indexFilterValues 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}` - * @param callback Callback that gets called when a log is added/removed - * @param isVerbose Enable verbose subscription warnings (e.g recoverable network issues encountered) - * @return Subscription token used later to unsubscribe - */ - public subscribe( - eventName: MultiAssetProxyEvents, - indexFilterValues: IndexedFilterValues, - callback: EventCallback, - isVerbose: boolean = false, - blockPollingIntervalMs?: number, - ): string { - assert.doesBelongToStringEnum('eventName', eventName, MultiAssetProxyEvents); - assert.doesConformToSchema('indexFilterValues', indexFilterValues, schemas.indexFilterValuesSchema); - assert.isFunction('callback', callback); - const subscriptionToken = this._subscriptionManager.subscribe( - this.address, - eventName, - indexFilterValues, - MultiAssetProxyContract.ABI(), - callback, - isVerbose, - blockPollingIntervalMs, - ); - return subscriptionToken; - } - /** - * Cancel a subscription - * @param subscriptionToken Subscription token returned by `subscribe()` - */ - public unsubscribe(subscriptionToken: string): void { - this._subscriptionManager.unsubscribe(subscriptionToken); - } - /** - * Cancels all existing subscriptions - */ - public unsubscribeAll(): void { - this._subscriptionManager.unsubscribeAll(); - } - /** - * Gets historical logs without creating a subscription - * @param eventName The MultiAssetProxy contract event you would like to subscribe to. - * @param blockRange Block range to get logs from. - * @param indexFilterValues 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}` - * @return Array of logs that match the parameters - */ - public async getLogsAsync( - eventName: MultiAssetProxyEvents, - blockRange: BlockRange, - indexFilterValues: IndexedFilterValues, - ): Promise>> { - assert.doesBelongToStringEnum('eventName', eventName, MultiAssetProxyEvents); - assert.doesConformToSchema('blockRange', blockRange, schemas.blockRangeSchema); - assert.doesConformToSchema('indexFilterValues', indexFilterValues, schemas.indexFilterValuesSchema); - const logs = await this._subscriptionManager.getLogsAsync( - this.address, - eventName, - blockRange, - indexFilterValues, - MultiAssetProxyContract.ABI(), - ); - return logs; - } - constructor( - address: string, - supportedProvider: SupportedProvider, - txDefaults?: Partial, - logDecodeDependencies?: { [contractName: string]: ContractAbi }, - deployedBytecode: string | undefined = MultiAssetProxyContract.deployedBytecode, - ) { - super( - 'MultiAssetProxy', - MultiAssetProxyContract.ABI(), - address, - supportedProvider, - txDefaults, - logDecodeDependencies, - deployedBytecode, - ); - classUtils.bindAll(this, ['_abiEncoderByFunctionSignature', 'address', '_web3Wrapper']); - this._subscriptionManager = new SubscriptionManager( - MultiAssetProxyContract.ABI(), - this._web3Wrapper, - ); - MultiAssetProxyContract.ABI().forEach((item, index) => { - if (item.type === 'function') { - const methodAbi = item as MethodAbi; - this._methodABIIndex[methodAbi.name] = index; - } - }); - } -} - -// tslint:disable:max-file-line-count -// tslint:enable:no-unbound-method no-parameter-reassignment no-consecutive-blank-lines ordered-imports align -// tslint:enable:trailing-comma whitespace no-trailing-whitespace diff --git a/packages/abi-gen-wrappers/src/generated-wrappers/staking.ts b/packages/abi-gen-wrappers/src/generated-wrappers/staking.ts index f2dee82f92..8f844b9780 100644 --- a/packages/abi-gen-wrappers/src/generated-wrappers/staking.ts +++ b/packages/abi-gen-wrappers/src/generated-wrappers/staking.ts @@ -179,8 +179,8 @@ export class StakingContract extends BaseContract { supportedProvider: SupportedProvider, txDefaults: Partial, logDecodeDependencies: { [contractName: string]: ContractArtifact | SimpleContractArtifact }, - wethAddress_: string, - zrxVaultAddress_: string, + wethAddress: string, + zrxVaultAddress: string, ): Promise { assert.doesConformToSchema('txDefaults', txDefaults, schemas.txDataSchema, [ schemas.addressSchema, @@ -205,8 +205,8 @@ export class StakingContract extends BaseContract { provider, txDefaults, logDecodeDependenciesAbiOnly, - wethAddress_, - zrxVaultAddress_, + wethAddress, + zrxVaultAddress, ); } public static async deployAsync( @@ -215,8 +215,8 @@ export class StakingContract extends BaseContract { supportedProvider: SupportedProvider, txDefaults: Partial, logDecodeDependencies: { [contractName: string]: ContractAbi }, - wethAddress_: string, - zrxVaultAddress_: string, + wethAddress: string, + zrxVaultAddress: string, ): Promise { assert.isHexString('bytecode', bytecode); assert.doesConformToSchema('txDefaults', txDefaults, schemas.txDataSchema, [ @@ -226,14 +226,14 @@ export class StakingContract extends BaseContract { ]); const provider = providerUtils.standardizeOrThrow(supportedProvider); const constructorAbi = BaseContract._lookupConstructorAbi(abi); - [wethAddress_, zrxVaultAddress_] = BaseContract._formatABIDataItemList( + [wethAddress, zrxVaultAddress] = BaseContract._formatABIDataItemList( constructorAbi.inputs, - [wethAddress_, zrxVaultAddress_], + [wethAddress, zrxVaultAddress], BaseContract._bigNumberToString, ); const iface = new ethers.utils.Interface(abi); const deployInfo = iface.deployFunction; - const txData = deployInfo.encode(bytecode, [wethAddress_, zrxVaultAddress_]); + const txData = deployInfo.encode(bytecode, [wethAddress, zrxVaultAddress]); const web3Wrapper = new Web3Wrapper(provider); const txDataWithDefaults = await BaseContract._applyDefaultsToTxDataAsync( { data: txData }, @@ -250,7 +250,7 @@ export class StakingContract extends BaseContract { txDefaults, logDecodeDependencies, ); - contractInstance.constructorArgs = [wethAddress_, zrxVaultAddress_]; + contractInstance.constructorArgs = [wethAddress, zrxVaultAddress]; return contractInstance; } @@ -262,11 +262,11 @@ export class StakingContract extends BaseContract { { inputs: [ { - name: 'wethAddress_', + name: 'wethAddress', type: 'address', }, { - name: 'zrxVaultAddress_', + name: 'zrxVaultAddress', type: 'address', }, ], diff --git a/packages/abi-gen-wrappers/src/generated-wrappers/static_call_proxy.ts b/packages/abi-gen-wrappers/src/generated-wrappers/static_call_proxy.ts deleted file mode 100644 index c4ce57c1b2..0000000000 --- a/packages/abi-gen-wrappers/src/generated-wrappers/static_call_proxy.ts +++ /dev/null @@ -1,322 +0,0 @@ -// tslint:disable:no-consecutive-blank-lines ordered-imports align trailing-comma enum-naming -// tslint:disable:whitespace no-unbound-method no-trailing-whitespace -// tslint:disable:no-unused-variable -import { - AwaitTransactionSuccessOpts, - ContractFunctionObj, - ContractTxFunctionObj, - SendTransactionOpts, - BaseContract, - PromiseWithTransactionHash, - methodAbiToFunctionSignature, -} from '@0x/base-contract'; -import { schemas } from '@0x/json-schemas'; -import { - BlockParam, - BlockParamLiteral, - BlockRange, - CallData, - ContractAbi, - ContractArtifact, - DecodedLogArgs, - MethodAbi, - TransactionReceiptWithDecodedLogs, - TxData, - TxDataPayable, - SupportedProvider, -} from 'ethereum-types'; -import { BigNumber, classUtils, logUtils, providerUtils } from '@0x/utils'; -import { EventCallback, IndexedFilterValues, SimpleContractArtifact } from '@0x/types'; -import { Web3Wrapper } from '@0x/web3-wrapper'; -import { assert } from '@0x/assert'; -import * as ethers from 'ethers'; -// tslint:enable:no-unused-variable - -/* istanbul ignore next */ -// tslint:disable:no-parameter-reassignment -// tslint:disable-next-line:class-name -export class StaticCallProxyContract extends BaseContract { - /** - * @ignore - */ - public static deployedBytecode = - '0x608060405234801561001057600080fd5b50600436106100365760003560e01c8063a85e59e41461003b578063ae25532e146100d3575b600080fd5b6100d16004803603608081101561005157600080fd5b81019060208101813564010000000081111561006c57600080fd5b82018360208201111561007e57600080fd5b803590602001918460018302840111640100000000831117156100a057600080fd5b919350915073ffffffffffffffffffffffffffffffffffffffff813581169160208101359091169060400135610110565b005b6100db6103a5565b604080517fffffffff000000000000000000000000000000000000000000000000000000009092168252519081900360200190f35b6000606060006101656004898990508a8a8080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525092949392505063ffffffff6103c5169050565b806020019051606081101561017957600080fd5b8151602083018051604051929492938301929190846401000000008211156101a057600080fd5b9083019060208201858111156101b557600080fd5b82516401000000008111828201881017156101cf57600080fd5b82525081516020918201929091019080838360005b838110156101fc5781810151838201526020016101e4565b50505050905090810190601f1680156102295780820380516001836020036101000a031916815260200191505b5060405260200180519060200190929190505050925092509250600060608473ffffffffffffffffffffffffffffffffffffffff16846040518082805190602001908083835b602083106102ac57805182527fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0909201916020918201910161026f565b6001836020036101000a038019825116818451168082178552505050505050905001915050600060405180830381855afa9150503d806000811461030c576040519150601f19603f3d011682016040523d82523d6000602084013e610311565b606091505b50915091508161032357805160208201fd5b8051602082012083811461039857604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601d60248201527f554e45585045435445445f5354415449435f43414c4c5f524553554c54000000604482015290519081900360640190fd5b5050505050505050505050565b600060405180806104b06021913960210190506040518091039020905090565b6060818311156103e3576103e36103de60008585610408565b6104a7565b83518211156103fc576103fc6103de6001848751610408565b50819003910190815290565b6060632800659560e01b8484846040516024018084600781111561042857fe5b60ff1681526020018381526020018281526020019350505050604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff838183161783525050505090509392505050565b805160208201fdfe53746174696343616c6c28616464726573732c62797465732c6279746573333229a265627a7a72315820c55cf13cfcaaf322238d786911313ce7d45854692241ae9b56709bdbfed4f54c64736f6c634300050b0032'; - private readonly _methodABIIndex: { [name: string]: number } = {}; - public static async deployFrom0xArtifactAsync( - artifact: ContractArtifact | SimpleContractArtifact, - supportedProvider: SupportedProvider, - txDefaults: Partial, - logDecodeDependencies: { [contractName: string]: ContractArtifact | SimpleContractArtifact }, - ): Promise { - assert.doesConformToSchema('txDefaults', txDefaults, schemas.txDataSchema, [ - schemas.addressSchema, - schemas.numberSchema, - schemas.jsNumber, - ]); - if (artifact.compilerOutput === undefined) { - throw new Error('Compiler output not found in the artifact file'); - } - const provider = providerUtils.standardizeOrThrow(supportedProvider); - const bytecode = artifact.compilerOutput.evm.bytecode.object; - const abi = artifact.compilerOutput.abi; - const logDecodeDependenciesAbiOnly: { [contractName: string]: ContractAbi } = {}; - if (Object.keys(logDecodeDependencies) !== undefined) { - for (const key of Object.keys(logDecodeDependencies)) { - logDecodeDependenciesAbiOnly[key] = logDecodeDependencies[key].compilerOutput.abi; - } - } - return StaticCallProxyContract.deployAsync(bytecode, abi, provider, txDefaults, logDecodeDependenciesAbiOnly); - } - public static async deployAsync( - bytecode: string, - abi: ContractAbi, - supportedProvider: SupportedProvider, - txDefaults: Partial, - logDecodeDependencies: { [contractName: string]: ContractAbi }, - ): Promise { - assert.isHexString('bytecode', bytecode); - assert.doesConformToSchema('txDefaults', txDefaults, schemas.txDataSchema, [ - schemas.addressSchema, - schemas.numberSchema, - schemas.jsNumber, - ]); - const provider = providerUtils.standardizeOrThrow(supportedProvider); - const constructorAbi = BaseContract._lookupConstructorAbi(abi); - [] = BaseContract._formatABIDataItemList(constructorAbi.inputs, [], BaseContract._bigNumberToString); - const iface = new ethers.utils.Interface(abi); - const deployInfo = iface.deployFunction; - const txData = deployInfo.encode(bytecode, []); - const web3Wrapper = new Web3Wrapper(provider); - const txDataWithDefaults = await BaseContract._applyDefaultsToTxDataAsync( - { data: txData }, - txDefaults, - web3Wrapper.estimateGasAsync.bind(web3Wrapper), - ); - const txHash = await web3Wrapper.sendTransactionAsync(txDataWithDefaults); - logUtils.log(`transactionHash: ${txHash}`); - const txReceipt = await web3Wrapper.awaitTransactionSuccessAsync(txHash); - logUtils.log(`StaticCallProxy successfully deployed at ${txReceipt.contractAddress}`); - const contractInstance = new StaticCallProxyContract( - txReceipt.contractAddress as string, - provider, - txDefaults, - logDecodeDependencies, - ); - contractInstance.constructorArgs = []; - return contractInstance; - } - - /** - * @returns The contract ABI - */ - public static ABI(): ContractAbi { - const abi = [ - { - constant: true, - inputs: [ - { - name: 'assetData', - type: 'bytes', - }, - { - name: 'from', - type: 'address', - }, - { - name: 'to', - type: 'address', - }, - { - name: 'amount', - type: 'uint256', - }, - ], - name: 'transferFrom', - outputs: [], - payable: false, - stateMutability: 'view', - type: 'function', - }, - { - constant: true, - inputs: [], - name: 'getProxyId', - outputs: [ - { - name: '', - type: 'bytes4', - }, - ], - payable: false, - stateMutability: 'pure', - type: 'function', - }, - ] as ContractAbi; - return abi; - } - - public getFunctionSignature(methodName: string): string { - const index = this._methodABIIndex[methodName]; - const methodAbi = StaticCallProxyContract.ABI()[index] as MethodAbi; // tslint:disable-line:no-unnecessary-type-assertion - const functionSignature = methodAbiToFunctionSignature(methodAbi); - return functionSignature; - } - public getABIDecodedTransactionData(methodName: string, callData: string): T { - const functionSignature = this.getFunctionSignature(methodName); - const self = (this as any) as StaticCallProxyContract; - const abiEncoder = self._lookupAbiEncoder(functionSignature); - const abiDecodedCallData = abiEncoder.strictDecode(callData); - return abiDecodedCallData; - } - public getABIDecodedReturnData(methodName: string, callData: string): T { - const functionSignature = this.getFunctionSignature(methodName); - const self = (this as any) as StaticCallProxyContract; - const abiEncoder = self._lookupAbiEncoder(functionSignature); - const abiDecodedCallData = abiEncoder.strictDecodeReturnValue(callData); - return abiDecodedCallData; - } - public getSelector(methodName: string): string { - const functionSignature = this.getFunctionSignature(methodName); - const self = (this as any) as StaticCallProxyContract; - const abiEncoder = self._lookupAbiEncoder(functionSignature); - return abiEncoder.getSelector(); - } - - /** - * Makes a staticcall to a target address and verifies that the data returned matches the expected return data. - * @param assetData Byte array encoded with staticCallTarget, staticCallData, - * and expectedCallResultHash - * @param from This value is ignored. - * @param to This value is ignored. - * @param amount This value is ignored. - */ - public transferFrom(assetData: string, from: string, to: string, amount: BigNumber): ContractFunctionObj { - const self = (this as any) as StaticCallProxyContract; - assert.isString('assetData', assetData); - assert.isString('from', from); - assert.isString('to', to); - assert.isBigNumber('amount', amount); - - return { - async callAsync(callData: Partial = {}, defaultBlock?: BlockParam): Promise { - assert.doesConformToSchema('callData', callData, schemas.callDataSchema, [ - schemas.addressSchema, - schemas.numberSchema, - schemas.jsNumber, - ]); - if (defaultBlock !== undefined) { - assert.isBlockParam('defaultBlock', defaultBlock); - } - const encodedData = self._strictEncodeArguments('transferFrom(bytes,address,address,uint256)', [ - assetData, - from.toLowerCase(), - to.toLowerCase(), - amount, - ]); - let rawCallResult; - - const callDataWithDefaults = await BaseContract._applyDefaultsToTxDataAsync( - { - to: self.address, - ...callData, - data: encodedData, - }, - self._web3Wrapper.getContractDefaults(), - ); - callDataWithDefaults.from = callDataWithDefaults.from - ? callDataWithDefaults.from.toLowerCase() - : callDataWithDefaults.from; - try { - rawCallResult = await self._web3Wrapper.callAsync(callDataWithDefaults, defaultBlock); - } catch (err) { - BaseContract._throwIfThrownErrorIsRevertError(err); - throw err; - } - - BaseContract._throwIfCallResultIsRevertError(rawCallResult); - const abiEncoder = self._lookupAbiEncoder('transferFrom(bytes,address,address,uint256)'); - // tslint:disable boolean-naming - const result = abiEncoder.strictDecodeReturnValue(rawCallResult); - // tslint:enable boolean-naming - return result; - }, - getABIEncodedTransactionData(): string { - const abiEncodedTransactionData = self._strictEncodeArguments( - 'transferFrom(bytes,address,address,uint256)', - [assetData, from.toLowerCase(), to.toLowerCase(), amount], - ); - return abiEncodedTransactionData; - }, - }; - } - /** - * Gets the proxy id associated with the proxy address. - * @returns Proxy id. - */ - public getProxyId(): ContractFunctionObj { - const self = (this as any) as StaticCallProxyContract; - - return { - async callAsync(callData: Partial = {}, defaultBlock?: BlockParam): Promise { - assert.doesConformToSchema('callData', callData, schemas.callDataSchema, [ - schemas.addressSchema, - schemas.numberSchema, - schemas.jsNumber, - ]); - if (defaultBlock !== undefined) { - assert.isBlockParam('defaultBlock', defaultBlock); - } - const encodedData = self._strictEncodeArguments('getProxyId()', []); - let rawCallResult; - - const encodedDataBytes = Buffer.from(encodedData.substr(2), 'hex'); - try { - rawCallResult = await self._evmExecAsync(encodedDataBytes); - } catch (err) { - BaseContract._throwIfThrownErrorIsRevertError(err); - throw err; - } - - BaseContract._throwIfCallResultIsRevertError(rawCallResult); - const abiEncoder = self._lookupAbiEncoder('getProxyId()'); - // tslint:disable boolean-naming - const result = abiEncoder.strictDecodeReturnValue(rawCallResult); - // tslint:enable boolean-naming - return result; - }, - getABIEncodedTransactionData(): string { - const abiEncodedTransactionData = self._strictEncodeArguments('getProxyId()', []); - return abiEncodedTransactionData; - }, - }; - } - - constructor( - address: string, - supportedProvider: SupportedProvider, - txDefaults?: Partial, - logDecodeDependencies?: { [contractName: string]: ContractAbi }, - deployedBytecode: string | undefined = StaticCallProxyContract.deployedBytecode, - ) { - super( - 'StaticCallProxy', - StaticCallProxyContract.ABI(), - address, - supportedProvider, - txDefaults, - logDecodeDependencies, - deployedBytecode, - ); - classUtils.bindAll(this, ['_abiEncoderByFunctionSignature', 'address', '_web3Wrapper']); - StaticCallProxyContract.ABI().forEach((item, index) => { - if (item.type === 'function') { - const methodAbi = item as MethodAbi; - this._methodABIIndex[methodAbi.name] = index; - } - }); - } -} - -// tslint:disable:max-file-line-count -// tslint:enable:no-unbound-method no-parameter-reassignment no-consecutive-blank-lines ordered-imports align -// tslint:enable:trailing-comma whitespace no-trailing-whitespace diff --git a/packages/abi-gen-wrappers/src/generated-wrappers/zrx_token.ts b/packages/abi-gen-wrappers/src/generated-wrappers/zrx_token.ts deleted file mode 100644 index cc95cd3151..0000000000 --- a/packages/abi-gen-wrappers/src/generated-wrappers/zrx_token.ts +++ /dev/null @@ -1,1143 +0,0 @@ -// tslint:disable:no-consecutive-blank-lines ordered-imports align trailing-comma enum-naming -// tslint:disable:whitespace no-unbound-method no-trailing-whitespace -// tslint:disable:no-unused-variable -import { - AwaitTransactionSuccessOpts, - ContractFunctionObj, - ContractTxFunctionObj, - SendTransactionOpts, - BaseContract, - SubscriptionManager, - PromiseWithTransactionHash, - methodAbiToFunctionSignature, -} from '@0x/base-contract'; -import { schemas } from '@0x/json-schemas'; -import { - BlockParam, - BlockParamLiteral, - BlockRange, - CallData, - ContractAbi, - ContractArtifact, - DecodedLogArgs, - LogWithDecodedArgs, - MethodAbi, - TransactionReceiptWithDecodedLogs, - TxData, - TxDataPayable, - SupportedProvider, -} from 'ethereum-types'; -import { BigNumber, classUtils, logUtils, providerUtils } from '@0x/utils'; -import { EventCallback, IndexedFilterValues, SimpleContractArtifact } from '@0x/types'; -import { Web3Wrapper } from '@0x/web3-wrapper'; -import { assert } from '@0x/assert'; -import * as ethers from 'ethers'; -// tslint:enable:no-unused-variable - -export type ZRXTokenEventArgs = ZRXTokenTransferEventArgs | ZRXTokenApprovalEventArgs; - -export enum ZRXTokenEvents { - Transfer = 'Transfer', - Approval = 'Approval', -} - -export interface ZRXTokenTransferEventArgs extends DecodedLogArgs { - _from: string; - _to: string; - _value: BigNumber; -} - -export interface ZRXTokenApprovalEventArgs extends DecodedLogArgs { - _owner: string; - _spender: string; - _value: BigNumber; -} - -/* istanbul ignore next */ -// tslint:disable:no-parameter-reassignment -// tslint:disable-next-line:class-name -export class ZRXTokenContract extends BaseContract { - /** - * @ignore - */ - public static deployedBytecode: string | undefined; - private readonly _methodABIIndex: { [name: string]: number } = {}; - private readonly _subscriptionManager: SubscriptionManager; - public static async deployFrom0xArtifactAsync( - artifact: ContractArtifact | SimpleContractArtifact, - supportedProvider: SupportedProvider, - txDefaults: Partial, - logDecodeDependencies: { [contractName: string]: ContractArtifact | SimpleContractArtifact }, - ): Promise { - assert.doesConformToSchema('txDefaults', txDefaults, schemas.txDataSchema, [ - schemas.addressSchema, - schemas.numberSchema, - schemas.jsNumber, - ]); - if (artifact.compilerOutput === undefined) { - throw new Error('Compiler output not found in the artifact file'); - } - const provider = providerUtils.standardizeOrThrow(supportedProvider); - const bytecode = artifact.compilerOutput.evm.bytecode.object; - const abi = artifact.compilerOutput.abi; - const logDecodeDependenciesAbiOnly: { [contractName: string]: ContractAbi } = {}; - if (Object.keys(logDecodeDependencies) !== undefined) { - for (const key of Object.keys(logDecodeDependencies)) { - logDecodeDependenciesAbiOnly[key] = logDecodeDependencies[key].compilerOutput.abi; - } - } - return ZRXTokenContract.deployAsync(bytecode, abi, provider, txDefaults, logDecodeDependenciesAbiOnly); - } - public static async deployAsync( - bytecode: string, - abi: ContractAbi, - supportedProvider: SupportedProvider, - txDefaults: Partial, - logDecodeDependencies: { [contractName: string]: ContractAbi }, - ): Promise { - assert.isHexString('bytecode', bytecode); - assert.doesConformToSchema('txDefaults', txDefaults, schemas.txDataSchema, [ - schemas.addressSchema, - schemas.numberSchema, - schemas.jsNumber, - ]); - const provider = providerUtils.standardizeOrThrow(supportedProvider); - const constructorAbi = BaseContract._lookupConstructorAbi(abi); - [] = BaseContract._formatABIDataItemList(constructorAbi.inputs, [], BaseContract._bigNumberToString); - const iface = new ethers.utils.Interface(abi); - const deployInfo = iface.deployFunction; - const txData = deployInfo.encode(bytecode, []); - const web3Wrapper = new Web3Wrapper(provider); - const txDataWithDefaults = await BaseContract._applyDefaultsToTxDataAsync( - { data: txData }, - txDefaults, - web3Wrapper.estimateGasAsync.bind(web3Wrapper), - ); - const txHash = await web3Wrapper.sendTransactionAsync(txDataWithDefaults); - logUtils.log(`transactionHash: ${txHash}`); - const txReceipt = await web3Wrapper.awaitTransactionSuccessAsync(txHash); - logUtils.log(`ZRXToken successfully deployed at ${txReceipt.contractAddress}`); - const contractInstance = new ZRXTokenContract( - txReceipt.contractAddress as string, - provider, - txDefaults, - logDecodeDependencies, - ); - contractInstance.constructorArgs = []; - return contractInstance; - } - - /** - * @returns The contract ABI - */ - public static ABI(): ContractAbi { - const abi = [ - { - constant: true, - inputs: [], - name: 'name', - outputs: [ - { - name: '', - type: 'string', - }, - ], - payable: false, - type: 'function', - }, - { - constant: false, - inputs: [ - { - name: '_spender', - type: 'address', - }, - { - name: '_value', - type: 'uint256', - }, - ], - name: 'approve', - outputs: [ - { - name: '', - type: 'bool', - }, - ], - payable: false, - type: 'function', - }, - { - constant: true, - inputs: [], - name: 'totalSupply', - outputs: [ - { - name: '', - type: 'uint256', - }, - ], - payable: false, - type: 'function', - }, - { - constant: false, - inputs: [ - { - name: '_from', - type: 'address', - }, - { - name: '_to', - type: 'address', - }, - { - name: '_value', - type: 'uint256', - }, - ], - name: 'transferFrom', - outputs: [ - { - name: '', - type: 'bool', - }, - ], - payable: false, - type: 'function', - }, - { - constant: true, - inputs: [], - name: 'decimals', - outputs: [ - { - name: '', - type: 'uint8', - }, - ], - payable: false, - type: 'function', - }, - { - constant: true, - inputs: [ - { - name: '_owner', - type: 'address', - }, - ], - name: 'balanceOf', - outputs: [ - { - name: '', - type: 'uint256', - }, - ], - payable: false, - type: 'function', - }, - { - constant: true, - inputs: [], - name: 'symbol', - outputs: [ - { - name: '', - type: 'string', - }, - ], - payable: false, - type: 'function', - }, - { - constant: false, - inputs: [ - { - name: '_to', - type: 'address', - }, - { - name: '_value', - type: 'uint256', - }, - ], - name: 'transfer', - outputs: [ - { - name: '', - type: 'bool', - }, - ], - payable: false, - type: 'function', - }, - { - constant: true, - inputs: [ - { - name: '_owner', - type: 'address', - }, - { - name: '_spender', - type: 'address', - }, - ], - name: 'allowance', - outputs: [ - { - name: '', - type: 'uint256', - }, - ], - payable: false, - type: 'function', - }, - { - inputs: [], - outputs: [], - payable: false, - type: 'constructor', - }, - { - anonymous: false, - inputs: [ - { - name: '_from', - type: 'address', - indexed: true, - }, - { - name: '_to', - type: 'address', - indexed: true, - }, - { - name: '_value', - type: 'uint256', - indexed: false, - }, - ], - name: 'Transfer', - outputs: [], - type: 'event', - }, - { - anonymous: false, - inputs: [ - { - name: '_owner', - type: 'address', - indexed: true, - }, - { - name: '_spender', - type: 'address', - indexed: true, - }, - { - name: '_value', - type: 'uint256', - indexed: false, - }, - ], - name: 'Approval', - outputs: [], - type: 'event', - }, - ] as ContractAbi; - return abi; - } - - public getFunctionSignature(methodName: string): string { - const index = this._methodABIIndex[methodName]; - const methodAbi = ZRXTokenContract.ABI()[index] as MethodAbi; // tslint:disable-line:no-unnecessary-type-assertion - const functionSignature = methodAbiToFunctionSignature(methodAbi); - return functionSignature; - } - public getABIDecodedTransactionData(methodName: string, callData: string): T { - const functionSignature = this.getFunctionSignature(methodName); - const self = (this as any) as ZRXTokenContract; - const abiEncoder = self._lookupAbiEncoder(functionSignature); - const abiDecodedCallData = abiEncoder.strictDecode(callData); - return abiDecodedCallData; - } - public getABIDecodedReturnData(methodName: string, callData: string): T { - const functionSignature = this.getFunctionSignature(methodName); - const self = (this as any) as ZRXTokenContract; - const abiEncoder = self._lookupAbiEncoder(functionSignature); - const abiDecodedCallData = abiEncoder.strictDecodeReturnValue(callData); - return abiDecodedCallData; - } - public getSelector(methodName: string): string { - const functionSignature = this.getFunctionSignature(methodName); - const self = (this as any) as ZRXTokenContract; - const abiEncoder = self._lookupAbiEncoder(functionSignature); - return abiEncoder.getSelector(); - } - - public name(): ContractFunctionObj { - const self = (this as any) as ZRXTokenContract; - - return { - async callAsync(callData: Partial = {}, defaultBlock?: BlockParam): Promise { - assert.doesConformToSchema('callData', callData, schemas.callDataSchema, [ - schemas.addressSchema, - schemas.numberSchema, - schemas.jsNumber, - ]); - if (defaultBlock !== undefined) { - assert.isBlockParam('defaultBlock', defaultBlock); - } - const encodedData = self._strictEncodeArguments('name()', []); - let rawCallResult; - - const callDataWithDefaults = await BaseContract._applyDefaultsToTxDataAsync( - { - to: self.address, - ...callData, - data: encodedData, - }, - self._web3Wrapper.getContractDefaults(), - ); - callDataWithDefaults.from = callDataWithDefaults.from - ? callDataWithDefaults.from.toLowerCase() - : callDataWithDefaults.from; - try { - rawCallResult = await self._web3Wrapper.callAsync(callDataWithDefaults, defaultBlock); - } catch (err) { - BaseContract._throwIfThrownErrorIsRevertError(err); - throw err; - } - - BaseContract._throwIfCallResultIsRevertError(rawCallResult); - const abiEncoder = self._lookupAbiEncoder('name()'); - // tslint:disable boolean-naming - const result = abiEncoder.strictDecodeReturnValue(rawCallResult); - // tslint:enable boolean-naming - return result; - }, - getABIEncodedTransactionData(): string { - const abiEncodedTransactionData = self._strictEncodeArguments('name()', []); - return abiEncodedTransactionData; - }, - }; - } - public approve(_spender: string, _value: BigNumber): ContractTxFunctionObj { - const self = (this as any) as ZRXTokenContract; - assert.isString('_spender', _spender); - assert.isBigNumber('_value', _value); - - return { - async sendTransactionAsync( - txData?: Partial | undefined, - opts: SendTransactionOpts = { shouldValidate: true }, - ): Promise { - const encodedData = self._strictEncodeArguments('approve(address,uint256)', [ - _spender.toLowerCase(), - _value, - ]); - const txDataWithDefaults = await BaseContract._applyDefaultsToTxDataAsync( - { - to: self.address, - ...txData, - data: encodedData, - }, - self._web3Wrapper.getContractDefaults(), - ); - if (txDataWithDefaults.from !== undefined) { - txDataWithDefaults.from = txDataWithDefaults.from.toLowerCase(); - } - - if (opts.shouldValidate !== false) { - await this.callAsync(txDataWithDefaults); - } - - const txHash = await self._web3Wrapper.sendTransactionAsync(txDataWithDefaults); - return txHash; - }, - awaitTransactionSuccessAsync( - txData?: Partial, - opts: AwaitTransactionSuccessOpts = { shouldValidate: true }, - ): PromiseWithTransactionHash { - const txHashPromise = this.sendTransactionAsync(txData, opts); - return new PromiseWithTransactionHash( - txHashPromise, - (async (): Promise => { - // When the transaction hash resolves, wait for it to be mined. - return self._web3Wrapper.awaitTransactionSuccessAsync( - await txHashPromise, - opts.pollingIntervalMs, - opts.timeoutMs, - ); - })(), - ); - }, - async estimateGasAsync(txData?: Partial | undefined): Promise { - const encodedData = self._strictEncodeArguments('approve(address,uint256)', [ - _spender.toLowerCase(), - _value, - ]); - const txDataWithDefaults = await BaseContract._applyDefaultsToTxDataAsync( - { - to: self.address, - ...txData, - data: encodedData, - }, - self._web3Wrapper.getContractDefaults(), - ); - if (txDataWithDefaults.from !== undefined) { - txDataWithDefaults.from = txDataWithDefaults.from.toLowerCase(); - } - - const gas = await self._web3Wrapper.estimateGasAsync(txDataWithDefaults); - return gas; - }, - async callAsync(callData: Partial = {}, defaultBlock?: BlockParam): Promise { - assert.doesConformToSchema('callData', callData, schemas.callDataSchema, [ - schemas.addressSchema, - schemas.numberSchema, - schemas.jsNumber, - ]); - if (defaultBlock !== undefined) { - assert.isBlockParam('defaultBlock', defaultBlock); - } - const encodedData = self._strictEncodeArguments('approve(address,uint256)', [ - _spender.toLowerCase(), - _value, - ]); - let rawCallResult; - - const callDataWithDefaults = await BaseContract._applyDefaultsToTxDataAsync( - { - to: self.address, - ...callData, - data: encodedData, - }, - self._web3Wrapper.getContractDefaults(), - ); - callDataWithDefaults.from = callDataWithDefaults.from - ? callDataWithDefaults.from.toLowerCase() - : callDataWithDefaults.from; - try { - rawCallResult = await self._web3Wrapper.callAsync(callDataWithDefaults, defaultBlock); - } catch (err) { - BaseContract._throwIfThrownErrorIsRevertError(err); - throw err; - } - - BaseContract._throwIfCallResultIsRevertError(rawCallResult); - const abiEncoder = self._lookupAbiEncoder('approve(address,uint256)'); - // tslint:disable boolean-naming - const result = abiEncoder.strictDecodeReturnValue(rawCallResult); - // tslint:enable boolean-naming - return result; - }, - getABIEncodedTransactionData(): string { - const abiEncodedTransactionData = self._strictEncodeArguments('approve(address,uint256)', [ - _spender.toLowerCase(), - _value, - ]); - return abiEncodedTransactionData; - }, - }; - } - public totalSupply(): ContractFunctionObj { - const self = (this as any) as ZRXTokenContract; - - return { - async callAsync(callData: Partial = {}, defaultBlock?: BlockParam): Promise { - assert.doesConformToSchema('callData', callData, schemas.callDataSchema, [ - schemas.addressSchema, - schemas.numberSchema, - schemas.jsNumber, - ]); - if (defaultBlock !== undefined) { - assert.isBlockParam('defaultBlock', defaultBlock); - } - const encodedData = self._strictEncodeArguments('totalSupply()', []); - let rawCallResult; - - const callDataWithDefaults = await BaseContract._applyDefaultsToTxDataAsync( - { - to: self.address, - ...callData, - data: encodedData, - }, - self._web3Wrapper.getContractDefaults(), - ); - callDataWithDefaults.from = callDataWithDefaults.from - ? callDataWithDefaults.from.toLowerCase() - : callDataWithDefaults.from; - try { - rawCallResult = await self._web3Wrapper.callAsync(callDataWithDefaults, defaultBlock); - } catch (err) { - BaseContract._throwIfThrownErrorIsRevertError(err); - throw err; - } - - BaseContract._throwIfCallResultIsRevertError(rawCallResult); - const abiEncoder = self._lookupAbiEncoder('totalSupply()'); - // tslint:disable boolean-naming - const result = abiEncoder.strictDecodeReturnValue(rawCallResult); - // tslint:enable boolean-naming - return result; - }, - getABIEncodedTransactionData(): string { - const abiEncodedTransactionData = self._strictEncodeArguments('totalSupply()', []); - return abiEncodedTransactionData; - }, - }; - } - /** - * ERC20 transferFrom, modified such that an allowance of MAX_UINT represents an unlimited allowance. - * @param _from Address to transfer from. - * @param _to Address to transfer to. - * @param _value Amount to transfer. - * @returns Success of transfer. - */ - public transferFrom(_from: string, _to: string, _value: BigNumber): ContractTxFunctionObj { - const self = (this as any) as ZRXTokenContract; - assert.isString('_from', _from); - assert.isString('_to', _to); - assert.isBigNumber('_value', _value); - - return { - async sendTransactionAsync( - txData?: Partial | undefined, - opts: SendTransactionOpts = { shouldValidate: true }, - ): Promise { - const encodedData = self._strictEncodeArguments('transferFrom(address,address,uint256)', [ - _from.toLowerCase(), - _to.toLowerCase(), - _value, - ]); - const txDataWithDefaults = await BaseContract._applyDefaultsToTxDataAsync( - { - to: self.address, - ...txData, - data: encodedData, - }, - self._web3Wrapper.getContractDefaults(), - ); - if (txDataWithDefaults.from !== undefined) { - txDataWithDefaults.from = txDataWithDefaults.from.toLowerCase(); - } - - if (opts.shouldValidate !== false) { - await this.callAsync(txDataWithDefaults); - } - - const txHash = await self._web3Wrapper.sendTransactionAsync(txDataWithDefaults); - return txHash; - }, - awaitTransactionSuccessAsync( - txData?: Partial, - opts: AwaitTransactionSuccessOpts = { shouldValidate: true }, - ): PromiseWithTransactionHash { - const txHashPromise = this.sendTransactionAsync(txData, opts); - return new PromiseWithTransactionHash( - txHashPromise, - (async (): Promise => { - // When the transaction hash resolves, wait for it to be mined. - return self._web3Wrapper.awaitTransactionSuccessAsync( - await txHashPromise, - opts.pollingIntervalMs, - opts.timeoutMs, - ); - })(), - ); - }, - async estimateGasAsync(txData?: Partial | undefined): Promise { - const encodedData = self._strictEncodeArguments('transferFrom(address,address,uint256)', [ - _from.toLowerCase(), - _to.toLowerCase(), - _value, - ]); - const txDataWithDefaults = await BaseContract._applyDefaultsToTxDataAsync( - { - to: self.address, - ...txData, - data: encodedData, - }, - self._web3Wrapper.getContractDefaults(), - ); - if (txDataWithDefaults.from !== undefined) { - txDataWithDefaults.from = txDataWithDefaults.from.toLowerCase(); - } - - const gas = await self._web3Wrapper.estimateGasAsync(txDataWithDefaults); - return gas; - }, - async callAsync(callData: Partial = {}, defaultBlock?: BlockParam): Promise { - assert.doesConformToSchema('callData', callData, schemas.callDataSchema, [ - schemas.addressSchema, - schemas.numberSchema, - schemas.jsNumber, - ]); - if (defaultBlock !== undefined) { - assert.isBlockParam('defaultBlock', defaultBlock); - } - const encodedData = self._strictEncodeArguments('transferFrom(address,address,uint256)', [ - _from.toLowerCase(), - _to.toLowerCase(), - _value, - ]); - let rawCallResult; - - const callDataWithDefaults = await BaseContract._applyDefaultsToTxDataAsync( - { - to: self.address, - ...callData, - data: encodedData, - }, - self._web3Wrapper.getContractDefaults(), - ); - callDataWithDefaults.from = callDataWithDefaults.from - ? callDataWithDefaults.from.toLowerCase() - : callDataWithDefaults.from; - try { - rawCallResult = await self._web3Wrapper.callAsync(callDataWithDefaults, defaultBlock); - } catch (err) { - BaseContract._throwIfThrownErrorIsRevertError(err); - throw err; - } - - BaseContract._throwIfCallResultIsRevertError(rawCallResult); - const abiEncoder = self._lookupAbiEncoder('transferFrom(address,address,uint256)'); - // tslint:disable boolean-naming - const result = abiEncoder.strictDecodeReturnValue(rawCallResult); - // tslint:enable boolean-naming - return result; - }, - getABIEncodedTransactionData(): string { - const abiEncodedTransactionData = self._strictEncodeArguments('transferFrom(address,address,uint256)', [ - _from.toLowerCase(), - _to.toLowerCase(), - _value, - ]); - return abiEncodedTransactionData; - }, - }; - } - public decimals(): ContractFunctionObj { - const self = (this as any) as ZRXTokenContract; - - return { - async callAsync(callData: Partial = {}, defaultBlock?: BlockParam): Promise { - assert.doesConformToSchema('callData', callData, schemas.callDataSchema, [ - schemas.addressSchema, - schemas.numberSchema, - schemas.jsNumber, - ]); - if (defaultBlock !== undefined) { - assert.isBlockParam('defaultBlock', defaultBlock); - } - const encodedData = self._strictEncodeArguments('decimals()', []); - let rawCallResult; - - const callDataWithDefaults = await BaseContract._applyDefaultsToTxDataAsync( - { - to: self.address, - ...callData, - data: encodedData, - }, - self._web3Wrapper.getContractDefaults(), - ); - callDataWithDefaults.from = callDataWithDefaults.from - ? callDataWithDefaults.from.toLowerCase() - : callDataWithDefaults.from; - try { - rawCallResult = await self._web3Wrapper.callAsync(callDataWithDefaults, defaultBlock); - } catch (err) { - BaseContract._throwIfThrownErrorIsRevertError(err); - throw err; - } - - BaseContract._throwIfCallResultIsRevertError(rawCallResult); - const abiEncoder = self._lookupAbiEncoder('decimals()'); - // tslint:disable boolean-naming - const result = abiEncoder.strictDecodeReturnValue(rawCallResult); - // tslint:enable boolean-naming - return result; - }, - getABIEncodedTransactionData(): string { - const abiEncodedTransactionData = self._strictEncodeArguments('decimals()', []); - return abiEncodedTransactionData; - }, - }; - } - public balanceOf(_owner: string): ContractFunctionObj { - const self = (this as any) as ZRXTokenContract; - assert.isString('_owner', _owner); - - return { - async callAsync(callData: Partial = {}, defaultBlock?: BlockParam): Promise { - assert.doesConformToSchema('callData', callData, schemas.callDataSchema, [ - schemas.addressSchema, - schemas.numberSchema, - schemas.jsNumber, - ]); - if (defaultBlock !== undefined) { - assert.isBlockParam('defaultBlock', defaultBlock); - } - const encodedData = self._strictEncodeArguments('balanceOf(address)', [_owner.toLowerCase()]); - let rawCallResult; - - const callDataWithDefaults = await BaseContract._applyDefaultsToTxDataAsync( - { - to: self.address, - ...callData, - data: encodedData, - }, - self._web3Wrapper.getContractDefaults(), - ); - callDataWithDefaults.from = callDataWithDefaults.from - ? callDataWithDefaults.from.toLowerCase() - : callDataWithDefaults.from; - try { - rawCallResult = await self._web3Wrapper.callAsync(callDataWithDefaults, defaultBlock); - } catch (err) { - BaseContract._throwIfThrownErrorIsRevertError(err); - throw err; - } - - BaseContract._throwIfCallResultIsRevertError(rawCallResult); - const abiEncoder = self._lookupAbiEncoder('balanceOf(address)'); - // tslint:disable boolean-naming - const result = abiEncoder.strictDecodeReturnValue(rawCallResult); - // tslint:enable boolean-naming - return result; - }, - getABIEncodedTransactionData(): string { - const abiEncodedTransactionData = self._strictEncodeArguments('balanceOf(address)', [ - _owner.toLowerCase(), - ]); - return abiEncodedTransactionData; - }, - }; - } - public symbol(): ContractFunctionObj { - const self = (this as any) as ZRXTokenContract; - - return { - async callAsync(callData: Partial = {}, defaultBlock?: BlockParam): Promise { - assert.doesConformToSchema('callData', callData, schemas.callDataSchema, [ - schemas.addressSchema, - schemas.numberSchema, - schemas.jsNumber, - ]); - if (defaultBlock !== undefined) { - assert.isBlockParam('defaultBlock', defaultBlock); - } - const encodedData = self._strictEncodeArguments('symbol()', []); - let rawCallResult; - - const callDataWithDefaults = await BaseContract._applyDefaultsToTxDataAsync( - { - to: self.address, - ...callData, - data: encodedData, - }, - self._web3Wrapper.getContractDefaults(), - ); - callDataWithDefaults.from = callDataWithDefaults.from - ? callDataWithDefaults.from.toLowerCase() - : callDataWithDefaults.from; - try { - rawCallResult = await self._web3Wrapper.callAsync(callDataWithDefaults, defaultBlock); - } catch (err) { - BaseContract._throwIfThrownErrorIsRevertError(err); - throw err; - } - - BaseContract._throwIfCallResultIsRevertError(rawCallResult); - const abiEncoder = self._lookupAbiEncoder('symbol()'); - // tslint:disable boolean-naming - const result = abiEncoder.strictDecodeReturnValue(rawCallResult); - // tslint:enable boolean-naming - return result; - }, - getABIEncodedTransactionData(): string { - const abiEncodedTransactionData = self._strictEncodeArguments('symbol()', []); - return abiEncodedTransactionData; - }, - }; - } - public transfer(_to: string, _value: BigNumber): ContractTxFunctionObj { - const self = (this as any) as ZRXTokenContract; - assert.isString('_to', _to); - assert.isBigNumber('_value', _value); - - return { - async sendTransactionAsync( - txData?: Partial | undefined, - opts: SendTransactionOpts = { shouldValidate: true }, - ): Promise { - const encodedData = self._strictEncodeArguments('transfer(address,uint256)', [ - _to.toLowerCase(), - _value, - ]); - const txDataWithDefaults = await BaseContract._applyDefaultsToTxDataAsync( - { - to: self.address, - ...txData, - data: encodedData, - }, - self._web3Wrapper.getContractDefaults(), - ); - if (txDataWithDefaults.from !== undefined) { - txDataWithDefaults.from = txDataWithDefaults.from.toLowerCase(); - } - - if (opts.shouldValidate !== false) { - await this.callAsync(txDataWithDefaults); - } - - const txHash = await self._web3Wrapper.sendTransactionAsync(txDataWithDefaults); - return txHash; - }, - awaitTransactionSuccessAsync( - txData?: Partial, - opts: AwaitTransactionSuccessOpts = { shouldValidate: true }, - ): PromiseWithTransactionHash { - const txHashPromise = this.sendTransactionAsync(txData, opts); - return new PromiseWithTransactionHash( - txHashPromise, - (async (): Promise => { - // When the transaction hash resolves, wait for it to be mined. - return self._web3Wrapper.awaitTransactionSuccessAsync( - await txHashPromise, - opts.pollingIntervalMs, - opts.timeoutMs, - ); - })(), - ); - }, - async estimateGasAsync(txData?: Partial | undefined): Promise { - const encodedData = self._strictEncodeArguments('transfer(address,uint256)', [ - _to.toLowerCase(), - _value, - ]); - const txDataWithDefaults = await BaseContract._applyDefaultsToTxDataAsync( - { - to: self.address, - ...txData, - data: encodedData, - }, - self._web3Wrapper.getContractDefaults(), - ); - if (txDataWithDefaults.from !== undefined) { - txDataWithDefaults.from = txDataWithDefaults.from.toLowerCase(); - } - - const gas = await self._web3Wrapper.estimateGasAsync(txDataWithDefaults); - return gas; - }, - async callAsync(callData: Partial = {}, defaultBlock?: BlockParam): Promise { - assert.doesConformToSchema('callData', callData, schemas.callDataSchema, [ - schemas.addressSchema, - schemas.numberSchema, - schemas.jsNumber, - ]); - if (defaultBlock !== undefined) { - assert.isBlockParam('defaultBlock', defaultBlock); - } - const encodedData = self._strictEncodeArguments('transfer(address,uint256)', [ - _to.toLowerCase(), - _value, - ]); - let rawCallResult; - - const callDataWithDefaults = await BaseContract._applyDefaultsToTxDataAsync( - { - to: self.address, - ...callData, - data: encodedData, - }, - self._web3Wrapper.getContractDefaults(), - ); - callDataWithDefaults.from = callDataWithDefaults.from - ? callDataWithDefaults.from.toLowerCase() - : callDataWithDefaults.from; - try { - rawCallResult = await self._web3Wrapper.callAsync(callDataWithDefaults, defaultBlock); - } catch (err) { - BaseContract._throwIfThrownErrorIsRevertError(err); - throw err; - } - - BaseContract._throwIfCallResultIsRevertError(rawCallResult); - const abiEncoder = self._lookupAbiEncoder('transfer(address,uint256)'); - // tslint:disable boolean-naming - const result = abiEncoder.strictDecodeReturnValue(rawCallResult); - // tslint:enable boolean-naming - return result; - }, - getABIEncodedTransactionData(): string { - const abiEncodedTransactionData = self._strictEncodeArguments('transfer(address,uint256)', [ - _to.toLowerCase(), - _value, - ]); - return abiEncodedTransactionData; - }, - }; - } - public allowance(_owner: string, _spender: string): ContractFunctionObj { - const self = (this as any) as ZRXTokenContract; - assert.isString('_owner', _owner); - assert.isString('_spender', _spender); - - return { - async callAsync(callData: Partial = {}, defaultBlock?: BlockParam): Promise { - assert.doesConformToSchema('callData', callData, schemas.callDataSchema, [ - schemas.addressSchema, - schemas.numberSchema, - schemas.jsNumber, - ]); - if (defaultBlock !== undefined) { - assert.isBlockParam('defaultBlock', defaultBlock); - } - const encodedData = self._strictEncodeArguments('allowance(address,address)', [ - _owner.toLowerCase(), - _spender.toLowerCase(), - ]); - let rawCallResult; - - const callDataWithDefaults = await BaseContract._applyDefaultsToTxDataAsync( - { - to: self.address, - ...callData, - data: encodedData, - }, - self._web3Wrapper.getContractDefaults(), - ); - callDataWithDefaults.from = callDataWithDefaults.from - ? callDataWithDefaults.from.toLowerCase() - : callDataWithDefaults.from; - try { - rawCallResult = await self._web3Wrapper.callAsync(callDataWithDefaults, defaultBlock); - } catch (err) { - BaseContract._throwIfThrownErrorIsRevertError(err); - throw err; - } - - BaseContract._throwIfCallResultIsRevertError(rawCallResult); - const abiEncoder = self._lookupAbiEncoder('allowance(address,address)'); - // tslint:disable boolean-naming - const result = abiEncoder.strictDecodeReturnValue(rawCallResult); - // tslint:enable boolean-naming - return result; - }, - getABIEncodedTransactionData(): string { - const abiEncodedTransactionData = self._strictEncodeArguments('allowance(address,address)', [ - _owner.toLowerCase(), - _spender.toLowerCase(), - ]); - return abiEncodedTransactionData; - }, - }; - } - - /** - * Subscribe to an event type emitted by the ZRXToken contract. - * @param eventName The ZRXToken contract event you would like to subscribe to. - * @param indexFilterValues 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}` - * @param callback Callback that gets called when a log is added/removed - * @param isVerbose Enable verbose subscription warnings (e.g recoverable network issues encountered) - * @return Subscription token used later to unsubscribe - */ - public subscribe( - eventName: ZRXTokenEvents, - indexFilterValues: IndexedFilterValues, - callback: EventCallback, - isVerbose: boolean = false, - blockPollingIntervalMs?: number, - ): string { - assert.doesBelongToStringEnum('eventName', eventName, ZRXTokenEvents); - assert.doesConformToSchema('indexFilterValues', indexFilterValues, schemas.indexFilterValuesSchema); - assert.isFunction('callback', callback); - const subscriptionToken = this._subscriptionManager.subscribe( - this.address, - eventName, - indexFilterValues, - ZRXTokenContract.ABI(), - callback, - isVerbose, - blockPollingIntervalMs, - ); - return subscriptionToken; - } - /** - * Cancel a subscription - * @param subscriptionToken Subscription token returned by `subscribe()` - */ - public unsubscribe(subscriptionToken: string): void { - this._subscriptionManager.unsubscribe(subscriptionToken); - } - /** - * Cancels all existing subscriptions - */ - public unsubscribeAll(): void { - this._subscriptionManager.unsubscribeAll(); - } - /** - * Gets historical logs without creating a subscription - * @param eventName The ZRXToken contract event you would like to subscribe to. - * @param blockRange Block range to get logs from. - * @param indexFilterValues 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}` - * @return Array of logs that match the parameters - */ - public async getLogsAsync( - eventName: ZRXTokenEvents, - blockRange: BlockRange, - indexFilterValues: IndexedFilterValues, - ): Promise>> { - assert.doesBelongToStringEnum('eventName', eventName, ZRXTokenEvents); - assert.doesConformToSchema('blockRange', blockRange, schemas.blockRangeSchema); - assert.doesConformToSchema('indexFilterValues', indexFilterValues, schemas.indexFilterValuesSchema); - const logs = await this._subscriptionManager.getLogsAsync( - this.address, - eventName, - blockRange, - indexFilterValues, - ZRXTokenContract.ABI(), - ); - return logs; - } - constructor( - address: string, - supportedProvider: SupportedProvider, - txDefaults?: Partial, - logDecodeDependencies?: { [contractName: string]: ContractAbi }, - deployedBytecode: string | undefined = ZRXTokenContract.deployedBytecode, - ) { - super( - 'ZRXToken', - ZRXTokenContract.ABI(), - address, - supportedProvider, - txDefaults, - logDecodeDependencies, - deployedBytecode, - ); - classUtils.bindAll(this, ['_abiEncoderByFunctionSignature', 'address', '_web3Wrapper']); - this._subscriptionManager = new SubscriptionManager( - ZRXTokenContract.ABI(), - this._web3Wrapper, - ); - ZRXTokenContract.ABI().forEach((item, index) => { - if (item.type === 'function') { - const methodAbi = item as MethodAbi; - this._methodABIIndex[methodAbi.name] = index; - } - }); - } -} - -// tslint:disable:max-file-line-count -// tslint:enable:no-unbound-method no-parameter-reassignment no-consecutive-blank-lines ordered-imports align -// tslint:enable:trailing-comma whitespace no-trailing-whitespace diff --git a/packages/abi-gen-wrappers/src/index.ts b/packages/abi-gen-wrappers/src/index.ts index 42b4eaf334..be9d79a8bd 100644 --- a/packages/abi-gen-wrappers/src/index.ts +++ b/packages/abi-gen-wrappers/src/index.ts @@ -1,19 +1,3 @@ -export { - AssetProxyOwnerEventArgs, - AssetProxyOwnerEvents, - AssetProxyOwnerConfirmationTimeSetEventArgs, - AssetProxyOwnerTimeLockChangeEventArgs, - AssetProxyOwnerConfirmationEventArgs, - AssetProxyOwnerRevocationEventArgs, - AssetProxyOwnerSubmissionEventArgs, - AssetProxyOwnerExecutionEventArgs, - AssetProxyOwnerExecutionFailureEventArgs, - AssetProxyOwnerDepositEventArgs, - AssetProxyOwnerOwnerAdditionEventArgs, - AssetProxyOwnerOwnerRemovalEventArgs, - AssetProxyOwnerRequirementChangeEventArgs, - AssetProxyOwnerContract, -} from './generated-wrappers/asset_proxy_owner'; export { DevUtilsContract } from './generated-wrappers/dev_utils'; export { DummyERC20TokenEventArgs, @@ -37,21 +21,6 @@ export { ERC1155MintableTransferSingleEventArgs, ERC1155MintableURIEventArgs, } from './generated-wrappers/erc1155_mintable'; -export { DutchAuctionContract } from './generated-wrappers/dutch_auction'; -export { - ERC1155ProxyEventArgs, - ERC1155ProxyEvents, - ERC1155ProxyAuthorizedAddressAddedEventArgs, - ERC1155ProxyAuthorizedAddressRemovedEventArgs, - ERC1155ProxyContract, -} from './generated-wrappers/erc1155_proxy'; -export { - ERC20ProxyEventArgs, - ERC20ProxyEvents, - ERC20ProxyAuthorizedAddressAddedEventArgs, - ERC20ProxyAuthorizedAddressRemovedEventArgs, - ERC20ProxyContract, -} from './generated-wrappers/erc20_proxy'; export { ERC20TokenEventArgs, ERC20TokenEvents, @@ -59,13 +28,6 @@ export { ERC20TokenApprovalEventArgs, ERC20TokenContract, } from './generated-wrappers/erc20_token'; -export { - ERC721ProxyEventArgs, - ERC721ProxyEvents, - ERC721ProxyAuthorizedAddressAddedEventArgs, - ERC721ProxyAuthorizedAddressRemovedEventArgs, - ERC721ProxyContract, -} from './generated-wrappers/erc721_proxy'; export { ERC721TokenEventArgs, ERC721TokenEvents, @@ -88,19 +50,9 @@ export { ExchangeTransactionExecutionEventArgs, } from './generated-wrappers/exchange'; export { ForwarderContract } from './generated-wrappers/forwarder'; -export { IAssetProxyContract } from './generated-wrappers/i_asset_proxy'; export { IValidatorContract } from './generated-wrappers/i_validator'; export { IWalletContract } from './generated-wrappers/i_wallet'; -export { - MultiAssetProxyEventArgs, - MultiAssetProxyEvents, - MultiAssetProxyAuthorizedAddressAddedEventArgs, - MultiAssetProxyAuthorizedAddressRemovedEventArgs, - MultiAssetProxyAssetProxyRegisteredEventArgs, - MultiAssetProxyContract, -} from './generated-wrappers/multi_asset_proxy'; export { OrderValidatorContract } from './generated-wrappers/order_validator'; -export { StaticCallProxyContract } from './generated-wrappers/static_call_proxy'; export { StakingAuthorizedAddressAddedEventArgs, StakingAuthorizedAddressRemovedEventArgs, @@ -141,13 +93,6 @@ export { WETH9WithdrawalEventArgs, WETH9Contract, } from './generated-wrappers/weth9'; -export { - ZRXTokenEventArgs, - ZRXTokenEvents, - ZRXTokenTransferEventArgs, - ZRXTokenApprovalEventArgs, - ZRXTokenContract, -} from './generated-wrappers/zrx_token'; export { CoordinatorContract } from './generated-wrappers/coordinator'; export { CoordinatorRegistryEventArgs, @@ -155,7 +100,6 @@ export { CoordinatorRegistryCoordinatorEndpointSetEventArgs, CoordinatorRegistryContract, } from './generated-wrappers/coordinator_registry'; -export { EthBalanceCheckerContract } from './generated-wrappers/eth_balance_checker'; export * from '@0x/contract-addresses'; export { diff --git a/packages/abi-gen/CHANGELOG.json b/packages/abi-gen/CHANGELOG.json index 3e61ce1840..5ac4ed7b22 100644 --- a/packages/abi-gen/CHANGELOG.json +++ b/packages/abi-gen/CHANGELOG.json @@ -1,6 +1,6 @@ [ { - "version": "4.4.0-beta.0", + "version": "4.4.0-beta.1", "changes": [ { "note": "In Python wrappers, accept string arguments to bytes parameters", @@ -30,7 +30,8 @@ "note": "Fix templates not being included in published tarball", "pr": 2315 } - ] + ], + "timestamp": 1573159180 }, { "version": "4.3.0-beta.0", diff --git a/packages/abi-gen/CHANGELOG.md b/packages/abi-gen/CHANGELOG.md index d39e9f04dd..22cbe45b41 100644 --- a/packages/abi-gen/CHANGELOG.md +++ b/packages/abi-gen/CHANGELOG.md @@ -5,6 +5,16 @@ Edit the package's CHANGELOG.json file only. CHANGELOG +## v4.4.0-beta.1 - _November 7, 2019_ + + * In Python wrappers, accept string arguments to bytes parameters (#2284) + * In Python wrappers, support module-local, Web3.py-compatible middleware (#2284) + * In Python wrappers, allow contracts to be instantiated with EITHER a Web3.py BaseProvider OR a Web3 client object (#2284) + * In Python wrappers, fix bug with casting some bytes objects using bytes.fromhex() (#2284) + * Add `getSelector` method to all functions (#2224) + * Command-line argument network-id has changed to chain-id (#2313) + * Fix templates not being included in published tarball (#2315) + ## v4.3.0-beta.0 - _October 3, 2019_ * Dependencies updated diff --git a/packages/abi-gen/package.json b/packages/abi-gen/package.json index 88484e7aba..06bdd91c9b 100644 --- a/packages/abi-gen/package.json +++ b/packages/abi-gen/package.json @@ -1,6 +1,6 @@ { "name": "@0x/abi-gen", - "version": "4.3.0-beta.0", + "version": "4.4.0-beta.1", "engines": { "node": ">=6.12" }, @@ -42,7 +42,7 @@ "coverage:report:text": "istanbul report text", "coverage:report:html": "istanbul report html && open coverage/index.html", "profiler:report:html": "istanbul report html && open coverage/index.html", - "contracts:gen": "contracts-gen" + "contracts:gen": "contracts-gen generate" }, "config": { "abis": "./test-cli/fixtures/artifacts/@(AbiGenDummy|LibDummy|TestLibDummy).json", @@ -61,14 +61,14 @@ }, "homepage": "https://github.com/0xProject/0x-monorepo/packages/abi-gen/README.md", "dependencies": { - "@0x/types": "^2.5.0-beta.0", - "@0x/typescript-typings": "^4.4.0-beta.0", - "@0x/utils": "^4.6.0-beta.0", + "@0x/types": "^2.5.0-beta.1", + "@0x/typescript-typings": "^4.4.0-beta.1", + "@0x/utils": "^4.6.0-beta.1", "@types/toposort": "^2.0.1", "chalk": "^2.3.0", "change-case": "^3.0.2", "cli-format": "^3.0.9", - "ethereum-types": "^2.2.0-beta.0", + "ethereum-types": "^2.2.0-beta.1", "glob": "^7.1.2", "handlebars": "^4.1.2", "lodash": "^4.17.11", @@ -79,15 +79,15 @@ "yargs": "^10.0.3" }, "devDependencies": { - "@0x/assert": "^2.2.0-beta.0", - "@0x/base-contract": "^5.5.0-beta.0", - "@0x/contracts-gen": "^1.1.0-beta.0", - "@0x/dev-utils": "^2.4.0-beta.0", - "@0x/json-schemas": "^4.1.0-beta.0", - "@0x/sol-compiler": "^3.2.0-beta.0", - "@0x/subproviders": "^5.1.0-beta.0", - "@0x/tslint-config": "^3.0.1", - "@0x/web3-wrapper": "^6.1.0-beta.0", + "@0x/assert": "^2.2.0-beta.1", + "@0x/base-contract": "^5.5.0-beta.1", + "@0x/contracts-gen": "^1.1.0-beta.1", + "@0x/dev-utils": "^2.4.0-beta.1", + "@0x/json-schemas": "^4.1.0-beta.1", + "@0x/sol-compiler": "^3.2.0-beta.1", + "@0x/subproviders": "^5.1.0-beta.1", + "@0x/tslint-config": "^3.1.0-beta.1", + "@0x/web3-wrapper": "^6.1.0-beta.1", "@types/glob": "5.0.35", "@types/mkdirp": "^0.5.2", "@types/mocha": "^5.2.7", @@ -111,5 +111,10 @@ "publishConfig": { "access": "public" }, - "files": ["templates/*", "*.js", "*.ts", "*.map"] + "files": [ + "templates/*", + "*.js", + "*.ts", + "*.map" + ] } diff --git a/packages/assert/CHANGELOG.json b/packages/assert/CHANGELOG.json index 6989684858..6f74cbb2d5 100644 --- a/packages/assert/CHANGELOG.json +++ b/packages/assert/CHANGELOG.json @@ -1,4 +1,13 @@ [ + { + "version": "2.2.0-beta.1", + "changes": [ + { + "note": "Dependencies updated" + } + ], + "timestamp": 1573159180 + }, { "version": "2.2.0-beta.0", "changes": [ diff --git a/packages/assert/CHANGELOG.md b/packages/assert/CHANGELOG.md index 00a806a0fd..8655034714 100644 --- a/packages/assert/CHANGELOG.md +++ b/packages/assert/CHANGELOG.md @@ -5,6 +5,10 @@ Edit the package's CHANGELOG.json file only. CHANGELOG +## v2.2.0-beta.1 - _November 7, 2019_ + + * Dependencies updated + ## v2.2.0-beta.0 - _October 3, 2019_ * Dependencies updated diff --git a/packages/assert/package.json b/packages/assert/package.json index 3aaf8a1e60..9d6537e96c 100644 --- a/packages/assert/package.json +++ b/packages/assert/package.json @@ -1,6 +1,6 @@ { "name": "@0x/assert", - "version": "2.2.0-beta.0", + "version": "2.2.0-beta.1", "engines": { "node": ">=6.12" }, @@ -30,7 +30,7 @@ }, "homepage": "https://github.com/0xProject/0x-monorepo/packages/assert/README.md", "devDependencies": { - "@0x/tslint-config": "^3.0.1", + "@0x/tslint-config": "^3.1.0-beta.1", "@types/lodash": "4.14.104", "@types/mocha": "^5.2.7", "@types/valid-url": "^1.0.2", @@ -45,9 +45,9 @@ "typescript": "3.0.1" }, "dependencies": { - "@0x/json-schemas": "^4.1.0-beta.0", - "@0x/typescript-typings": "^4.4.0-beta.0", - "@0x/utils": "^4.6.0-beta.0", + "@0x/json-schemas": "^4.1.0-beta.1", + "@0x/typescript-typings": "^4.4.0-beta.1", + "@0x/utils": "^4.6.0-beta.1", "lodash": "^4.17.11", "valid-url": "^1.0.9" }, diff --git a/packages/asset-buyer/CHANGELOG.json b/packages/asset-buyer/CHANGELOG.json index 961c57eb03..d530962a2c 100644 --- a/packages/asset-buyer/CHANGELOG.json +++ b/packages/asset-buyer/CHANGELOG.json @@ -1,12 +1,13 @@ [ { - "version": "7.0.0-beta.0", + "version": "6.2.0-beta.1", "changes": [ { "note": "All references to network ID have been removed, and references to chain ID have been introduced instead", "pr": 2313 } - ] + ], + "timestamp": 1573159180 }, { "version": "6.2.0-beta.0", diff --git a/packages/asset-buyer/CHANGELOG.md b/packages/asset-buyer/CHANGELOG.md index 1e4dbe84fb..e51c51c24f 100644 --- a/packages/asset-buyer/CHANGELOG.md +++ b/packages/asset-buyer/CHANGELOG.md @@ -5,6 +5,10 @@ Edit the package's CHANGELOG.json file only. CHANGELOG +## v6.2.0-beta.1 - _November 7, 2019_ + + * All references to network ID have been removed, and references to chain ID have been introduced instead (#2313) + ## v6.2.0-beta.0 - _October 3, 2019_ * Dependencies updated diff --git a/packages/asset-buyer/docs/reference.mdx b/packages/asset-buyer/docs/reference.mdx index bab6f5c6a6..2f142b1ca1 100644 --- a/packages/asset-buyer/docs/reference.mdx +++ b/packages/asset-buyer/docs/reference.mdx @@ -1,235 +1,4 @@ -# Class: AssetBuyer - - -## Constructors - - - -\+ **new AssetBuyer**(`supportedProvider`: [SupportedProvider](#supportedprovider), `orderProvider`: [OrderProvider](#interface-orderprovider), `options`: `Partial`): *[AssetBuyer](#class-assetbuyer)* - -*Defined in [asset-buyer/src/asset_buyer.ts:83](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/asset-buyer/src/asset_buyer.ts#L83)* - -Instantiates a new AssetBuyer instance - -**Parameters:** - -Name | Type | Default | Description | ------- | ------ | ------ | ------ | -`supportedProvider` | [SupportedProvider](#supportedprovider) | - | The Provider instance you would like to use for interacting with the Ethereum network. | -`orderProvider` | [OrderProvider](#interface-orderprovider) | - | An object that conforms to OrderProvider, see type for definition. | -`options` | `Partial` | {} | Initialization options for the AssetBuyer. See type definition for details. | - -**Returns:** *[AssetBuyer](#class-assetbuyer)* - -An instance of AssetBuyer - -## Properties - -### expiryBufferSeconds - -• **expiryBufferSeconds**: *number* - -*Defined in [asset-buyer/src/asset_buyer.ts:40](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/asset-buyer/src/asset_buyer.ts#L40)* - -___ - -### networkId - -• **networkId**: *number* - -*Defined in [asset-buyer/src/asset_buyer.ts:38](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/asset-buyer/src/asset_buyer.ts#L38)* - -___ - -### orderProvider - -• **orderProvider**: *[OrderProvider](#interface-orderprovider)* - -*Defined in [asset-buyer/src/asset_buyer.ts:37](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/asset-buyer/src/asset_buyer.ts#L37)* - -___ - -### orderRefreshIntervalMs - -• **orderRefreshIntervalMs**: *number* - -*Defined in [asset-buyer/src/asset_buyer.ts:39](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/asset-buyer/src/asset_buyer.ts#L39)* - -___ - -### provider - -• **provider**: *`ZeroExProvider`* - -*Defined in [asset-buyer/src/asset_buyer.ts:36](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/asset-buyer/src/asset_buyer.ts#L36)* - -## Methods - -### executeBuyQuoteAsync - -▸ **executeBuyQuoteAsync**(`buyQuote`: [BuyQuote](#interface-buyquote), `options`: `Partial`): *`Promise`* - -*Defined in [asset-buyer/src/asset_buyer.ts:226](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/asset-buyer/src/asset_buyer.ts#L226)* -Given a BuyQuote and desired rate, attempt to execute the buy. - -**Parameters:** - -Name | Type | Default | Description | ------- | ------ | ------ | ------ | -`buyQuote` | [BuyQuote](#interface-buyquote) | - | An object that conforms to BuyQuote. See type definition for more information. | -`options` | `Partial` | {} | Options for the execution of the BuyQuote. See type definition for more information. | - -**Returns:** *`Promise`* - -A promise of the txHash. - -___ - -### getAvailableAssetDatasAsync - -▸ **getAvailableAssetDatasAsync**(): *`Promise`* - -*Defined in [asset-buyer/src/asset_buyer.ts:300](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/asset-buyer/src/asset_buyer.ts#L300)* - -Get the asset data of all assets that are purchaseable with ether token (wETH) in the order provider passed in at init. - -**Returns:** *`Promise`* - -An array of asset data strings that can be purchased using wETH. - -___ - -### getBuyQuoteAsync - -▸ **getBuyQuoteAsync**(`assetData`: string, `assetBuyAmount`: `BigNumber`, `options`: `Partial`): *`Promise`* - -*Defined in [asset-buyer/src/asset_buyer.ts:125](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/asset-buyer/src/asset_buyer.ts#L125)* - -Get a `BuyQuote` containing all information relevant to fulfilling a buy given a desired assetData. -You can then pass the `BuyQuote` to `executeBuyQuoteAsync` to execute the buy. - -**Parameters:** - -Name | Type | Default | Description | ------- | ------ | ------ | ------ | -`assetData` | string | - | The assetData of the desired asset to buy (for more info: https://github.com/0xProject/0x-protocol-specification/blob/master/v2/v2-specification.md). | -`assetBuyAmount` | `BigNumber` | - | The amount of asset to buy. | -`options` | `Partial` | {} | Options for the request. See type definition for more information. | - -**Returns:** *`Promise`* - -An object that conforms to BuyQuote that satisfies the request. See type definition for more information. - -___ - -### getBuyQuoteForERC20TokenAddressAsync - -▸ **getBuyQuoteForERC20TokenAddressAsync**(`tokenAddress`: string, `assetBuyAmount`: `BigNumber`, `options`: `Partial`): *`Promise`* - -*Defined in [asset-buyer/src/asset_buyer.ts:173](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/asset-buyer/src/asset_buyer.ts#L173)* - -Get a `BuyQuote` containing all information relevant to fulfilling a buy given a desired ERC20 token address. -You can then pass the `BuyQuote` to `executeBuyQuoteAsync` to execute the buy. - -**Parameters:** - -Name | Type | Default | Description | ------- | ------ | ------ | ------ | -`tokenAddress` | string | - | The ERC20 token address. | -`assetBuyAmount` | `BigNumber` | - | The amount of asset to buy. | -`options` | `Partial` | {} | Options for the request. See type definition for more information. | - -**Returns:** *`Promise`* - -An object that conforms to BuyQuote that satisfies the request. See type definition for more information. - -___ - -### getLiquidityForAssetDataAsync - -▸ **getLiquidityForAssetDataAsync**(`assetData`: string, `options`: `Partial`): *`Promise`* - -*Defined in [asset-buyer/src/asset_buyer.ts:192](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/asset-buyer/src/asset_buyer.ts#L192)* - -Returns information about available liquidity for an asset -Does not factor in slippage or fees - -**Parameters:** - -Name | Type | Default | Description | ------- | ------ | ------ | ------ | -`assetData` | string | - | The assetData of the desired asset to buy (for more info: https://github.com/0xProject/0x-protocol-specification/blob/master/v2/v2-specification.md). | -`options` | `Partial` | {} | Options for the request. See type definition for more information. | - -**Returns:** *`Promise`* - -An object that conforms to LiquidityForAssetData that satisfies the request. See type definition for more information. - -___ - -### getOrdersAndFillableAmountsAsync - -▸ **getOrdersAndFillableAmountsAsync**(`assetData`: string, `shouldForceOrderRefresh`: boolean): *`Promise`* - -*Defined in [asset-buyer/src/asset_buyer.ts:309](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/asset-buyer/src/asset_buyer.ts#L309)* - -Grab orders from the map, if there is a miss or it is time to refresh, fetch and process the orders - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`assetData` | string | The assetData of the desired asset to buy (for more info: https://github.com/0xProject/0x-protocol-specification/blob/master/v2/v2-specification.md). | -`shouldForceOrderRefresh` | boolean | If set to true, new orders and state will be fetched instead of waiting for the next orderRefreshIntervalMs. | - -**Returns:** *`Promise`* - -___ - -### `Static` getAssetBuyerForProvidedOrders - -▸ **getAssetBuyerForProvidedOrders**(`supportedProvider`: [SupportedProvider](#supportedprovider), `orders`: `SignedOrder`[], `options`: `Partial`): *[AssetBuyer](#class-assetbuyer)* - -*Defined in [asset-buyer/src/asset_buyer.ts:53](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/asset-buyer/src/asset_buyer.ts#L53)* - -Instantiates a new AssetBuyer instance given existing liquidity in the form of orders and feeOrders. - -**Parameters:** - -Name | Type | Default | Description | ------- | ------ | ------ | ------ | -`supportedProvider` | [SupportedProvider](#supportedprovider) | - | The Provider instance you would like to use for interacting with the Ethereum network. | -`orders` | `SignedOrder`[] | - | A non-empty array of objects that conform to SignedOrder. All orders must have the same makerAssetData and takerAssetData (WETH). | -`options` | `Partial` | {} | Initialization options for the AssetBuyer. See type definition for details. | - -**Returns:** *[AssetBuyer](#class-assetbuyer)* - -An instance of AssetBuyer - -___ - -### `Static` getAssetBuyerForStandardRelayerAPIUrl - -▸ **getAssetBuyerForStandardRelayerAPIUrl**(`supportedProvider`: [SupportedProvider](#supportedprovider), `sraApiUrl`: string, `options`: `Partial`): *[AssetBuyer](#class-assetbuyer)* - -*Defined in [asset-buyer/src/asset_buyer.ts:72](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/asset-buyer/src/asset_buyer.ts#L72)* - -Instantiates a new AssetBuyer instance given a [Standard Relayer API](https://github.com/0xProject/standard-relayer-api) endpoint - -**Parameters:** - -Name | Type | Default | Description | ------- | ------ | ------ | ------ | -`supportedProvider` | [SupportedProvider](#supportedprovider) | - | The Provider instance you would like to use for interacting with the Ethereum network. | -`sraApiUrl` | string | - | The standard relayer API base HTTP url you would like to source orders from. | -`options` | `Partial` | {} | Initialization options for the AssetBuyer. See type definition for details. | - -**Returns:** *[AssetBuyer](#class-assetbuyer)* - -An instance of AssetBuyer - -
# Class: InsufficientAssetLiquidityError @@ -242,7 +11,7 @@ Error class representing insufficient asset liquidity \+ **new InsufficientAssetLiquidityError**(`amountAvailableToFill`: `BigNumber`): *[InsufficientAssetLiquidityError](#class-insufficientassetliquidityerror)* -*Defined in [asset-buyer/src/errors.ts:12](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/asset-buyer/src/errors.ts#L12)* +*Defined in [asset-buyer/src/errors.ts:12](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/asset-buyer/src/errors.ts#L12)* **Parameters:** @@ -258,7 +27,7 @@ Name | Type | Description | • **amountAvailableToFill**: *`BigNumber`* -*Defined in [asset-buyer/src/errors.ts:12](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/asset-buyer/src/errors.ts#L12)* +*Defined in [asset-buyer/src/errors.ts:12](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/asset-buyer/src/errors.ts#L12)* The amount availabe to fill (in base units) factoring in slippage. @@ -318,7 +87,7 @@ ___ \+ **new BasicOrderProvider**(`orders`: `SignedOrder`[]): *[BasicOrderProvider](#class-basicorderprovider)* -*Defined in [asset-buyer/src/order_providers/basic_order_provider.ts:9](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/asset-buyer/src/order_providers/basic_order_provider.ts#L9)* +*Defined in [asset-buyer/src/order_providers/basic_order_provider.ts:9](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/asset-buyer/src/order_providers/basic_order_provider.ts#L9)* Instantiates a new BasicOrderProvider instance @@ -338,7 +107,7 @@ An instance of BasicOrderProvider • **orders**: *`SignedOrder`[]* -*Defined in [asset-buyer/src/order_providers/basic_order_provider.ts:9](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/asset-buyer/src/order_providers/basic_order_provider.ts#L9)* +*Defined in [asset-buyer/src/order_providers/basic_order_provider.ts:9](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/asset-buyer/src/order_providers/basic_order_provider.ts#L9)* ## Methods @@ -346,7 +115,7 @@ An instance of BasicOrderProvider ▸ **getAvailableMakerAssetDatasAsync**(`takerAssetData`: string): *`Promise`* -*Defined in [asset-buyer/src/order_providers/basic_order_provider.ts:37](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/asset-buyer/src/order_providers/basic_order_provider.ts#L37)* +*Defined in [asset-buyer/src/order_providers/basic_order_provider.ts:37](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/asset-buyer/src/order_providers/basic_order_provider.ts#L37)* Given a taker asset data string, return all availabled paired maker asset data strings. @@ -366,7 +135,7 @@ ___ ▸ **getOrdersAsync**(`orderProviderRequest`: [OrderProviderRequest](#interface-orderproviderrequest)): *`Promise`* -*Defined in [asset-buyer/src/order_providers/basic_order_provider.ts:24](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/asset-buyer/src/order_providers/basic_order_provider.ts#L24)* +*Defined in [asset-buyer/src/order_providers/basic_order_provider.ts:24](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/asset-buyer/src/order_providers/basic_order_provider.ts#L24)* Given an object that conforms to OrderFetcherRequest, return the corresponding OrderProviderResponse that satisfies the request. @@ -394,9 +163,9 @@ An instance of OrderProviderResponse. See type for more information. -\+ **new StandardRelayerAPIOrderProvider**(`apiUrl`: string, `networkId`: number): *[StandardRelayerAPIOrderProvider](#class-standardrelayerapiorderprovider)* +\+ **new StandardRelayerAPIOrderProvider**(`apiUrl`: string): *[StandardRelayerAPIOrderProvider](#class-standardrelayerapiorderprovider)* -*Defined in [asset-buyer/src/order_providers/standard_relayer_api_order_provider.ts:48](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/asset-buyer/src/order_providers/standard_relayer_api_order_provider.ts#L48)* +*Defined in [asset-buyer/src/order_providers/standard_relayer_api_order_provider.ts:47](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/asset-buyer/src/order_providers/standard_relayer_api_order_provider.ts#L47)* Instantiates a new StandardRelayerAPIOrderProvider instance @@ -405,7 +174,6 @@ Instantiates a new StandardRelayerAPIOrderProvider instance Name | Type | Description | ------ | ------ | ------ | `apiUrl` | string | The standard relayer API base HTTP url you would like to source orders from. | -`networkId` | number | The ethereum network id. | **Returns:** *[StandardRelayerAPIOrderProvider](#class-standardrelayerapiorderprovider)* @@ -417,15 +185,7 @@ An instance of StandardRelayerAPIOrderProvider • **apiUrl**: *string* -*Defined in [asset-buyer/src/order_providers/standard_relayer_api_order_provider.ts:17](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/asset-buyer/src/order_providers/standard_relayer_api_order_provider.ts#L17)* - -___ - -### networkId - -• **networkId**: *number* - -*Defined in [asset-buyer/src/order_providers/standard_relayer_api_order_provider.ts:18](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/asset-buyer/src/order_providers/standard_relayer_api_order_provider.ts#L18)* +*Defined in [asset-buyer/src/order_providers/standard_relayer_api_order_provider.ts:17](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/asset-buyer/src/order_providers/standard_relayer_api_order_provider.ts#L17)* ## Methods @@ -433,7 +193,7 @@ ___ ▸ **getAvailableMakerAssetDatasAsync**(`takerAssetData`: string): *`Promise`* -*Defined in [asset-buyer/src/order_providers/standard_relayer_api_order_provider.ts:91](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/asset-buyer/src/order_providers/standard_relayer_api_order_provider.ts#L91)* +*Defined in [asset-buyer/src/order_providers/standard_relayer_api_order_provider.ts:86](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/asset-buyer/src/order_providers/standard_relayer_api_order_provider.ts#L86)* Given a taker asset data string, return all availabled paired maker asset data strings. @@ -453,7 +213,7 @@ ___ ▸ **getOrdersAsync**(`orderProviderRequest`: [OrderProviderRequest](#interface-orderproviderrequest)): *`Promise`* -*Defined in [asset-buyer/src/order_providers/standard_relayer_api_order_provider.ts:67](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/asset-buyer/src/order_providers/standard_relayer_api_order_provider.ts#L67)* +*Defined in [asset-buyer/src/order_providers/standard_relayer_api_order_provider.ts:63](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/asset-buyer/src/order_providers/standard_relayer_api_order_provider.ts#L63)* Given an object that conforms to OrderProviderRequest, return the corresponding OrderProviderResponse that satisfies the request. @@ -480,7 +240,7 @@ Possible error messages thrown by an AssetBuyer instance or associated static me • **AssetUnavailable**: = "ASSET_UNAVAILABLE" -*Defined in [asset-buyer/src/types.ts:122](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/asset-buyer/src/types.ts#L122)* +*Defined in [asset-buyer/src/types.ts:122](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/asset-buyer/src/types.ts#L122)* ___ @@ -488,7 +248,7 @@ ___ • **InsufficientAssetLiquidity**: = "INSUFFICIENT_ASSET_LIQUIDITY" -*Defined in [asset-buyer/src/types.ts:118](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/asset-buyer/src/types.ts#L118)* +*Defined in [asset-buyer/src/types.ts:118](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/asset-buyer/src/types.ts#L118)* ___ @@ -496,7 +256,7 @@ ___ • **InsufficientZrxLiquidity**: = "INSUFFICIENT_ZRX_LIQUIDITY" -*Defined in [asset-buyer/src/types.ts:119](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/asset-buyer/src/types.ts#L119)* +*Defined in [asset-buyer/src/types.ts:119](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/asset-buyer/src/types.ts#L119)* ___ @@ -504,7 +264,7 @@ ___ • **InvalidOrderProviderResponse**: = "INVALID_ORDER_PROVIDER_RESPONSE" -*Defined in [asset-buyer/src/types.ts:121](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/asset-buyer/src/types.ts#L121)* +*Defined in [asset-buyer/src/types.ts:121](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/asset-buyer/src/types.ts#L121)* ___ @@ -512,7 +272,7 @@ ___ • **NoAddressAvailable**: = "NO_ADDRESS_AVAILABLE" -*Defined in [asset-buyer/src/types.ts:120](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/asset-buyer/src/types.ts#L120)* +*Defined in [asset-buyer/src/types.ts:120](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/asset-buyer/src/types.ts#L120)* ___ @@ -520,7 +280,7 @@ ___ • **NoEtherTokenContractFound**: = "NO_ETHER_TOKEN_CONTRACT_FOUND" -*Defined in [asset-buyer/src/types.ts:115](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/asset-buyer/src/types.ts#L115)* +*Defined in [asset-buyer/src/types.ts:115](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/asset-buyer/src/types.ts#L115)* ___ @@ -528,7 +288,7 @@ ___ • **NoZrxTokenContractFound**: = "NO_ZRX_TOKEN_CONTRACT_FOUND" -*Defined in [asset-buyer/src/types.ts:116](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/asset-buyer/src/types.ts#L116)* +*Defined in [asset-buyer/src/types.ts:116](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/asset-buyer/src/types.ts#L116)* ___ @@ -536,7 +296,7 @@ ___ • **SignatureRequestDenied**: = "SIGNATURE_REQUEST_DENIED" -*Defined in [asset-buyer/src/types.ts:123](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/asset-buyer/src/types.ts#L123)* +*Defined in [asset-buyer/src/types.ts:123](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/asset-buyer/src/types.ts#L123)* ___ @@ -544,7 +304,7 @@ ___ • **StandardRelayerApiError**: = "STANDARD_RELAYER_API_ERROR" -*Defined in [asset-buyer/src/types.ts:117](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/asset-buyer/src/types.ts#L117)* +*Defined in [asset-buyer/src/types.ts:117](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/asset-buyer/src/types.ts#L117)* ___ @@ -552,7 +312,7 @@ ___ • **TransactionValueTooLow**: = "TRANSACTION_VALUE_TOO_LOW" -*Defined in [asset-buyer/src/types.ts:124](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/asset-buyer/src/types.ts#L124)* +*Defined in [asset-buyer/src/types.ts:124](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/asset-buyer/src/types.ts#L124)*
@@ -587,6 +347,10 @@ ___ + + + +
@@ -607,7 +371,7 @@ worstCaseQuoteInfo: Info about the worst case price for the asset. • **assetBuyAmount**: *`BigNumber`* -*Defined in [asset-buyer/src/types.ts:48](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/asset-buyer/src/types.ts#L48)* +*Defined in [asset-buyer/src/types.ts:48](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/asset-buyer/src/types.ts#L48)* ___ @@ -615,7 +379,7 @@ ___ • **assetData**: *string* -*Defined in [asset-buyer/src/types.ts:47](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/asset-buyer/src/types.ts#L47)* +*Defined in [asset-buyer/src/types.ts:47](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/asset-buyer/src/types.ts#L47)* ___ @@ -623,7 +387,7 @@ ___ • **bestCaseQuoteInfo**: *[BuyQuoteInfo](#class-buyquoteinfo)* -*Defined in [asset-buyer/src/types.ts:52](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/asset-buyer/src/types.ts#L52)* +*Defined in [asset-buyer/src/types.ts:52](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/asset-buyer/src/types.ts#L52)* ___ @@ -631,7 +395,7 @@ ___ • **feeOrders**: *`SignedOrder`[]* -*Defined in [asset-buyer/src/types.ts:50](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/asset-buyer/src/types.ts#L50)* +*Defined in [asset-buyer/src/types.ts:50](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/asset-buyer/src/types.ts#L50)* ___ @@ -639,7 +403,7 @@ ___ • **feePercentage**? : *undefined | number* -*Defined in [asset-buyer/src/types.ts:51](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/asset-buyer/src/types.ts#L51)* +*Defined in [asset-buyer/src/types.ts:51](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/asset-buyer/src/types.ts#L51)* ___ @@ -647,7 +411,7 @@ ___ • **orders**: *`SignedOrder`[]* -*Defined in [asset-buyer/src/types.ts:49](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/asset-buyer/src/types.ts#L49)* +*Defined in [asset-buyer/src/types.ts:49](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/asset-buyer/src/types.ts#L49)* ___ @@ -655,7 +419,7 @@ ___ • **worstCaseQuoteInfo**: *[BuyQuoteInfo](#class-buyquoteinfo)* -*Defined in [asset-buyer/src/types.ts:53](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/asset-buyer/src/types.ts#L53)* +*Defined in [asset-buyer/src/types.ts:53](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/asset-buyer/src/types.ts#L53)*
@@ -674,7 +438,7 @@ feeRecipient: The address where affiliate fees are sent. Defaults to null addres • **ethAmount**? : *`BigNumber`* -*Defined in [asset-buyer/src/types.ts:93](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/asset-buyer/src/types.ts#L93)* +*Defined in [asset-buyer/src/types.ts:93](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/asset-buyer/src/types.ts#L93)* ___ @@ -682,7 +446,7 @@ ___ • **feeRecipient**: *string* -*Defined in [asset-buyer/src/types.ts:97](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/asset-buyer/src/types.ts#L97)* +*Defined in [asset-buyer/src/types.ts:97](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/asset-buyer/src/types.ts#L97)* ___ @@ -690,7 +454,7 @@ ___ • **gasLimit**? : *undefined | number* -*Defined in [asset-buyer/src/types.ts:95](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/asset-buyer/src/types.ts#L95)* +*Defined in [asset-buyer/src/types.ts:95](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/asset-buyer/src/types.ts#L95)* ___ @@ -698,7 +462,7 @@ ___ • **gasPrice**? : *`BigNumber`* -*Defined in [asset-buyer/src/types.ts:96](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/asset-buyer/src/types.ts#L96)* +*Defined in [asset-buyer/src/types.ts:96](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/asset-buyer/src/types.ts#L96)* ___ @@ -706,7 +470,7 @@ ___ • **takerAddress**? : *undefined | string* -*Defined in [asset-buyer/src/types.ts:94](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/asset-buyer/src/types.ts#L94)* +*Defined in [asset-buyer/src/types.ts:94](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/asset-buyer/src/types.ts#L94)*
@@ -723,7 +487,7 @@ totalEthAmount: The total amount of eth required to complete the buy (filling or • **assetEthAmount**: *`BigNumber`* -*Defined in [asset-buyer/src/types.ts:62](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/asset-buyer/src/types.ts#L62)* +*Defined in [asset-buyer/src/types.ts:62](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/asset-buyer/src/types.ts#L62)* ___ @@ -731,7 +495,7 @@ ___ • **feeEthAmount**: *`BigNumber`* -*Defined in [asset-buyer/src/types.ts:63](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/asset-buyer/src/types.ts#L63)* +*Defined in [asset-buyer/src/types.ts:63](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/asset-buyer/src/types.ts#L63)* ___ @@ -739,7 +503,7 @@ ___ • **totalEthAmount**: *`BigNumber`* -*Defined in [asset-buyer/src/types.ts:64](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/asset-buyer/src/types.ts#L64)* +*Defined in [asset-buyer/src/types.ts:64](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/asset-buyer/src/types.ts#L64)*
@@ -756,7 +520,7 @@ slippagePercentage: The percentage buffer to add to account for slippage. Affect • **feePercentage**: *number* -*Defined in [asset-buyer/src/types.ts:73](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/asset-buyer/src/types.ts#L73)* +*Defined in [asset-buyer/src/types.ts:73](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/asset-buyer/src/types.ts#L73)* ___ @@ -764,7 +528,7 @@ ___ • **shouldForceOrderRefresh**: *boolean* -*Defined in [asset-buyer/src/types.ts:74](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/asset-buyer/src/types.ts#L74)* +*Defined in [asset-buyer/src/types.ts:74](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/asset-buyer/src/types.ts#L74)* ___ @@ -772,7 +536,7 @@ ___ • **slippagePercentage**: *number* -*Defined in [asset-buyer/src/types.ts:75](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/asset-buyer/src/types.ts#L75)* +*Defined in [asset-buyer/src/types.ts:75](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/asset-buyer/src/types.ts#L75)*
@@ -787,7 +551,7 @@ Represents available liquidity for a given assetData • **ethValueAvailableInWei**: *`BigNumber`* -*Defined in [asset-buyer/src/types.ts:141](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/asset-buyer/src/types.ts#L141)* +*Defined in [asset-buyer/src/types.ts:141](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/asset-buyer/src/types.ts#L141)* ___ @@ -795,7 +559,7 @@ ___ • **tokensAvailableInBaseUnits**: *`BigNumber`* -*Defined in [asset-buyer/src/types.ts:140](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/asset-buyer/src/types.ts#L140)* +*Defined in [asset-buyer/src/types.ts:140](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/asset-buyer/src/types.ts#L140)*
@@ -909,7 +673,7 @@ ___ • **remainingFillableMakerAssetAmount**? : *`BigNumber`* -*Defined in [asset-buyer/src/types.ts:26](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/asset-buyer/src/types.ts#L26)* +*Defined in [asset-buyer/src/types.ts:26](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/asset-buyer/src/types.ts#L26)* ___ @@ -1038,7 +802,7 @@ Defined in types/lib/index.d.ts:19 • **isEIP1193**: *boolean* -*Defined in [ethereum-types/src/index.ts:73](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L73)* +*Defined in [ethereum-types/src/index.ts:73](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L73)* ## Methods @@ -1046,7 +810,7 @@ Defined in types/lib/index.d.ts:19 ▸ **on**(`event`: [EIP1193Event](#eip1193event), `listener`: function): *this* -*Defined in [ethereum-types/src/index.ts:75](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L75)* +*Defined in [ethereum-types/src/index.ts:75](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L75)* **Parameters:** @@ -1070,7 +834,7 @@ ___ ▸ **send**(`method`: string, `params?`: any[]): *`Promise`* -*Defined in [ethereum-types/src/index.ts:74](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L74)* +*Defined in [ethereum-types/src/index.ts:74](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L74)* **Parameters:** @@ -1104,7 +868,7 @@ Name | Type | ▸ **sendAsync**(`payload`: [JSONRPCRequestPayload](_ethereum_types_src_index_.jsonrpcrequestpayload.md), `callback`: [JSONRPCErrorCallback](#jsonrpcerrorcallback)): *void* -*Defined in [ethereum-types/src/index.ts:14](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L14)* +*Defined in [ethereum-types/src/index.ts:14](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L14)* **Parameters:** @@ -1128,7 +892,7 @@ Name | Type | • **id**: *number* -*Defined in [ethereum-types/src/index.ts:330](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L330)* +*Defined in [ethereum-types/src/index.ts:330](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L330)* ___ @@ -1136,7 +900,7 @@ ___ • **jsonrpc**: *string* -*Defined in [ethereum-types/src/index.ts:331](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L331)* +*Defined in [ethereum-types/src/index.ts:331](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L331)* ___ @@ -1144,7 +908,7 @@ ___ • **method**: *string* -*Defined in [ethereum-types/src/index.ts:329](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L329)* +*Defined in [ethereum-types/src/index.ts:329](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L329)* ___ @@ -1152,7 +916,7 @@ ___ • **params**: *any[]* -*Defined in [ethereum-types/src/index.ts:328](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L328)* +*Defined in [ethereum-types/src/index.ts:328](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L328)*
@@ -1165,7 +929,7 @@ ___ • **code**: *number* -*Defined in [ethereum-types/src/index.ts:336](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L336)* +*Defined in [ethereum-types/src/index.ts:336](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L336)* ___ @@ -1173,7 +937,7 @@ ___ • **message**: *string* -*Defined in [ethereum-types/src/index.ts:335](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L335)* +*Defined in [ethereum-types/src/index.ts:335](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L335)*
@@ -1186,7 +950,7 @@ ___ • **error**? : *[JSONRPCResponseError](#class-jsonrpcresponseerror)* -*Defined in [ethereum-types/src/index.ts:343](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L343)* +*Defined in [ethereum-types/src/index.ts:343](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L343)* ___ @@ -1194,7 +958,7 @@ ___ • **id**: *number* -*Defined in [ethereum-types/src/index.ts:341](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L341)* +*Defined in [ethereum-types/src/index.ts:341](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L341)* ___ @@ -1202,7 +966,7 @@ ___ • **jsonrpc**: *string* -*Defined in [ethereum-types/src/index.ts:342](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L342)* +*Defined in [ethereum-types/src/index.ts:342](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L342)* ___ @@ -1210,7 +974,7 @@ ___ • **result**: *any* -*Defined in [ethereum-types/src/index.ts:340](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L340)* +*Defined in [ethereum-types/src/index.ts:340](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L340)*
@@ -1271,7 +1035,7 @@ This interface allowed sending synchonous requests, support for which was later ▸ **send**(`payload`: [JSONRPCRequestPayload](_ethereum_types_src_index_.jsonrpcrequestpayload.md)): *[JSONRPCResponsePayload](#class-jsonrpcresponsepayload)* -*Defined in [ethereum-types/src/index.ts:45](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L45)* +*Defined in [ethereum-types/src/index.ts:45](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L45)* **Parameters:** @@ -1287,7 +1051,7 @@ ___ ▸ **sendAsync**(`payload`: [JSONRPCRequestPayload](_ethereum_types_src_index_.jsonrpcrequestpayload.md), `callback`: [JSONRPCErrorCallback](#jsonrpcerrorcallback)): *void* -*Defined in [ethereum-types/src/index.ts:44](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L44)* +*Defined in [ethereum-types/src/index.ts:44](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L44)* **Parameters:** @@ -1313,7 +1077,7 @@ before the first attempts to conform to EIP1193 ▸ **send**(`payload`: [JSONRPCRequestPayload](_ethereum_types_src_index_.jsonrpcrequestpayload.md), `callback`: [JSONRPCErrorCallback](#jsonrpcerrorcallback)): *void* -*Defined in [ethereum-types/src/index.ts:54](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L54)* +*Defined in [ethereum-types/src/index.ts:54](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L54)* **Parameters:** @@ -1339,7 +1103,7 @@ however it does not conform entirely. ▸ **send**(`method`: string, `params?`: any[]): *`Promise`* -*Defined in [ethereum-types/src/index.ts:63](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L63)* +*Defined in [ethereum-types/src/index.ts:63](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L63)* **Parameters:** @@ -1365,7 +1129,7 @@ add here • **isMetaMask**? : *undefined | false | true* -*Defined in [ethereum-types/src/index.ts:31](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L31)* +*Defined in [ethereum-types/src/index.ts:31](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L31)* ___ @@ -1373,7 +1137,7 @@ ___ • **isParity**? : *undefined | false | true* -*Defined in [ethereum-types/src/index.ts:32](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L32)* +*Defined in [ethereum-types/src/index.ts:32](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L32)* ___ @@ -1381,7 +1145,7 @@ ___ • **isZeroExProvider**? : *undefined | false | true* -*Defined in [ethereum-types/src/index.ts:30](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L30)* +*Defined in [ethereum-types/src/index.ts:30](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L30)* ## Methods @@ -1389,7 +1153,7 @@ ___ ▸ **enable**(): *`Promise`* -*Defined in [ethereum-types/src/index.ts:34](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L34)* +*Defined in [ethereum-types/src/index.ts:34](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L34)* **Returns:** *`Promise`* @@ -1399,7 +1163,7 @@ ___ ▸ **sendAsync**(`payload`: [JSONRPCRequestPayload](_ethereum_types_src_index_.jsonrpcrequestpayload.md), `callback`: [JSONRPCErrorCallback](#jsonrpcerrorcallback)): *void* -*Defined in [ethereum-types/src/index.ts:35](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L35)* +*Defined in [ethereum-types/src/index.ts:35](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L35)* **Parameters:** @@ -1416,14 +1180,245 @@ ___ ▸ **stop**(): *void* -*Defined in [ethereum-types/src/index.ts:33](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L33)* +*Defined in [ethereum-types/src/index.ts:33](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L33)* **Returns:** *void*
+# Class: AssetBuyer +## Constructors + + + +\+ **new AssetBuyer**(`supportedProvider`: [SupportedProvider](#supportedprovider), `orderProvider`: [OrderProvider](#interface-orderprovider), `options`: `Partial`): *[AssetBuyer](#class-assetbuyer)* + +*Defined in [asset-buyer/src/asset_buyer.ts:83](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/asset-buyer/src/asset_buyer.ts#L83)* + +Instantiates a new AssetBuyer instance + +**Parameters:** + +Name | Type | Default | Description | +------ | ------ | ------ | ------ | +`supportedProvider` | [SupportedProvider](#supportedprovider) | - | The Provider instance you would like to use for interacting with the Ethereum network. | +`orderProvider` | [OrderProvider](#interface-orderprovider) | - | An object that conforms to OrderProvider, see type for definition. | +`options` | `Partial` | {} | Initialization options for the AssetBuyer. See type definition for details. | + +**Returns:** *[AssetBuyer](#class-assetbuyer)* + +An instance of AssetBuyer + +## Properties + +### chainId + +• **chainId**: *number* + +*Defined in [asset-buyer/src/asset_buyer.ts:38](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/asset-buyer/src/asset_buyer.ts#L38)* + +___ + +### expiryBufferSeconds + +• **expiryBufferSeconds**: *number* + +*Defined in [asset-buyer/src/asset_buyer.ts:40](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/asset-buyer/src/asset_buyer.ts#L40)* + +___ + +### orderProvider + +• **orderProvider**: *[OrderProvider](#interface-orderprovider)* + +*Defined in [asset-buyer/src/asset_buyer.ts:37](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/asset-buyer/src/asset_buyer.ts#L37)* + +___ + +### orderRefreshIntervalMs + +• **orderRefreshIntervalMs**: *number* + +*Defined in [asset-buyer/src/asset_buyer.ts:39](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/asset-buyer/src/asset_buyer.ts#L39)* + +___ + +### provider + +• **provider**: *`ZeroExProvider`* + +*Defined in [asset-buyer/src/asset_buyer.ts:36](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/asset-buyer/src/asset_buyer.ts#L36)* + +## Methods + +### executeBuyQuoteAsync + +▸ **executeBuyQuoteAsync**(`buyQuote`: [BuyQuote](#interface-buyquote), `options`: `Partial`): *`Promise`* + +*Defined in [asset-buyer/src/asset_buyer.ts:226](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/asset-buyer/src/asset_buyer.ts#L226)* + +Given a BuyQuote and desired rate, attempt to execute the buy. + +**Parameters:** + +Name | Type | Default | Description | +------ | ------ | ------ | ------ | +`buyQuote` | [BuyQuote](#interface-buyquote) | - | An object that conforms to BuyQuote. See type definition for more information. | +`options` | `Partial` | {} | Options for the execution of the BuyQuote. See type definition for more information. | + +**Returns:** *`Promise`* + +A promise of the txHash. + +___ + +### getAvailableAssetDatasAsync + +▸ **getAvailableAssetDatasAsync**(): *`Promise`* + +*Defined in [asset-buyer/src/asset_buyer.ts:301](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/asset-buyer/src/asset_buyer.ts#L301)* + +Get the asset data of all assets that are purchaseable with ether token (wETH) in the order provider passed in at init. + +**Returns:** *`Promise`* + +An array of asset data strings that can be purchased using wETH. + +___ + +### getBuyQuoteAsync + +▸ **getBuyQuoteAsync**(`assetData`: string, `assetBuyAmount`: `BigNumber`, `options`: `Partial`): *`Promise`* + +*Defined in [asset-buyer/src/asset_buyer.ts:125](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/asset-buyer/src/asset_buyer.ts#L125)* + +Get a `BuyQuote` containing all information relevant to fulfilling a buy given a desired assetData. +You can then pass the `BuyQuote` to `executeBuyQuoteAsync` to execute the buy. + +**Parameters:** + +Name | Type | Default | Description | +------ | ------ | ------ | ------ | +`assetData` | string | - | The assetData of the desired asset to buy (for more info: https://github.com/0xProject/0x-protocol-specification/blob/master/v2/v2-specification.md). | +`assetBuyAmount` | `BigNumber` | - | The amount of asset to buy. | +`options` | `Partial` | {} | Options for the request. See type definition for more information. | + +**Returns:** *`Promise`* + +An object that conforms to BuyQuote that satisfies the request. See type definition for more information. + +___ + +### getBuyQuoteForERC20TokenAddressAsync + +▸ **getBuyQuoteForERC20TokenAddressAsync**(`tokenAddress`: string, `assetBuyAmount`: `BigNumber`, `options`: `Partial`): *`Promise`* + +*Defined in [asset-buyer/src/asset_buyer.ts:173](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/asset-buyer/src/asset_buyer.ts#L173)* + +Get a `BuyQuote` containing all information relevant to fulfilling a buy given a desired ERC20 token address. +You can then pass the `BuyQuote` to `executeBuyQuoteAsync` to execute the buy. + +**Parameters:** + +Name | Type | Default | Description | +------ | ------ | ------ | ------ | +`tokenAddress` | string | - | The ERC20 token address. | +`assetBuyAmount` | `BigNumber` | - | The amount of asset to buy. | +`options` | `Partial` | {} | Options for the request. See type definition for more information. | + +**Returns:** *`Promise`* + +An object that conforms to BuyQuote that satisfies the request. See type definition for more information. + +___ + +### getLiquidityForAssetDataAsync + +▸ **getLiquidityForAssetDataAsync**(`assetData`: string, `options`: `Partial`): *`Promise`* + +*Defined in [asset-buyer/src/asset_buyer.ts:192](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/asset-buyer/src/asset_buyer.ts#L192)* + +Returns information about available liquidity for an asset +Does not factor in slippage or fees + +**Parameters:** + +Name | Type | Default | Description | +------ | ------ | ------ | ------ | +`assetData` | string | - | The assetData of the desired asset to buy (for more info: https://github.com/0xProject/0x-protocol-specification/blob/master/v2/v2-specification.md). | +`options` | `Partial` | {} | Options for the request. See type definition for more information. | + +**Returns:** *`Promise`* + +An object that conforms to LiquidityForAssetData that satisfies the request. See type definition for more information. + +___ + +### getOrdersAndFillableAmountsAsync + +▸ **getOrdersAndFillableAmountsAsync**(`assetData`: string, `shouldForceOrderRefresh`: boolean): *`Promise`* + +*Defined in [asset-buyer/src/asset_buyer.ts:310](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/asset-buyer/src/asset_buyer.ts#L310)* + +Grab orders from the map, if there is a miss or it is time to refresh, fetch and process the orders + +**Parameters:** + +Name | Type | Description | +------ | ------ | ------ | +`assetData` | string | The assetData of the desired asset to buy (for more info: https://github.com/0xProject/0x-protocol-specification/blob/master/v2/v2-specification.md). | +`shouldForceOrderRefresh` | boolean | If set to true, new orders and state will be fetched instead of waiting for the next orderRefreshIntervalMs. | + +**Returns:** *`Promise`* + +___ + +### `Static` getAssetBuyerForProvidedOrders + +▸ **getAssetBuyerForProvidedOrders**(`supportedProvider`: [SupportedProvider](#supportedprovider), `orders`: `SignedOrder`[], `options`: `Partial`): *[AssetBuyer](#class-assetbuyer)* + +*Defined in [asset-buyer/src/asset_buyer.ts:53](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/asset-buyer/src/asset_buyer.ts#L53)* + +Instantiates a new AssetBuyer instance given existing liquidity in the form of orders and feeOrders. + +**Parameters:** + +Name | Type | Default | Description | +------ | ------ | ------ | ------ | +`supportedProvider` | [SupportedProvider](#supportedprovider) | - | The Provider instance you would like to use for interacting with the Ethereum network. | +`orders` | `SignedOrder`[] | - | A non-empty array of objects that conform to SignedOrder. All orders must have the same makerAssetData and takerAssetData (WETH). | +`options` | `Partial` | {} | Initialization options for the AssetBuyer. See type definition for details. | + +**Returns:** *[AssetBuyer](#class-assetbuyer)* + +An instance of AssetBuyer + +___ + +### `Static` getAssetBuyerForStandardRelayerAPIUrl + +▸ **getAssetBuyerForStandardRelayerAPIUrl**(`supportedProvider`: [SupportedProvider](#supportedprovider), `sraApiUrl`: string, `options`: `Partial`): *[AssetBuyer](#class-assetbuyer)* + +*Defined in [asset-buyer/src/asset_buyer.ts:72](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/asset-buyer/src/asset_buyer.ts#L72)* + +Instantiates a new AssetBuyer instance given a [Standard Relayer API](https://github.com/0xProject/standard-relayer-api) endpoint + +**Parameters:** + +Name | Type | Default | Description | +------ | ------ | ------ | ------ | +`supportedProvider` | [SupportedProvider](#supportedprovider) | - | The Provider instance you would like to use for interacting with the Ethereum network. | +`sraApiUrl` | string | - | The standard relayer API base HTTP url you would like to source orders from. | +`options` | `Partial` | {} | Initialization options for the AssetBuyer. See type definition for details. | + +**Returns:** *[AssetBuyer](#class-assetbuyer)* + +An instance of AssetBuyer + +
+ @@ -1521,6 +1516,8 @@ ___ + + @@ -1535,7 +1532,7 @@ ___ *Inherited from [Order](#interface-order).[chainId](#chainid)* -*Defined in [types/src/index.ts:14](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/types/src/index.ts#L14)* +*Defined in [types/src/index.ts:14](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/types/src/index.ts#L14)* ___ @@ -1545,7 +1542,7 @@ ___ *Inherited from [Order](#interface-order).[exchangeAddress](#exchangeaddress)* -*Defined in [types/src/index.ts:15](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/types/src/index.ts#L15)* +*Defined in [types/src/index.ts:15](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/types/src/index.ts#L15)* ___ @@ -1555,7 +1552,7 @@ ___ *Inherited from [Order](#interface-order).[expirationTimeSeconds](#expirationtimeseconds)* -*Defined in [types/src/index.ts:24](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/types/src/index.ts#L24)* +*Defined in [types/src/index.ts:24](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/types/src/index.ts#L24)* ___ @@ -1565,7 +1562,7 @@ ___ *Inherited from [Order](#interface-order).[feeRecipientAddress](#feerecipientaddress)* -*Defined in [types/src/index.ts:18](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/types/src/index.ts#L18)* +*Defined in [types/src/index.ts:18](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/types/src/index.ts#L18)* ___ @@ -1575,7 +1572,7 @@ ___ *Inherited from [Order](#interface-order).[makerAddress](#makeraddress)* -*Defined in [types/src/index.ts:16](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/types/src/index.ts#L16)* +*Defined in [types/src/index.ts:16](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/types/src/index.ts#L16)* ___ @@ -1585,7 +1582,7 @@ ___ *Inherited from [Order](#interface-order).[makerAssetAmount](#makerassetamount)* -*Defined in [types/src/index.ts:20](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/types/src/index.ts#L20)* +*Defined in [types/src/index.ts:20](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/types/src/index.ts#L20)* ___ @@ -1595,7 +1592,7 @@ ___ *Inherited from [Order](#interface-order).[makerAssetData](#makerassetdata)* -*Defined in [types/src/index.ts:26](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/types/src/index.ts#L26)* +*Defined in [types/src/index.ts:26](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/types/src/index.ts#L26)* ___ @@ -1605,7 +1602,7 @@ ___ *Inherited from [Order](#interface-order).[makerFee](#makerfee)* -*Defined in [types/src/index.ts:22](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/types/src/index.ts#L22)* +*Defined in [types/src/index.ts:22](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/types/src/index.ts#L22)* ___ @@ -1615,7 +1612,7 @@ ___ *Inherited from [Order](#interface-order).[makerFeeAssetData](#makerfeeassetdata)* -*Defined in [types/src/index.ts:28](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/types/src/index.ts#L28)* +*Defined in [types/src/index.ts:28](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/types/src/index.ts#L28)* ___ @@ -1625,7 +1622,7 @@ ___ *Inherited from [Order](#interface-order).[salt](#salt)* -*Defined in [types/src/index.ts:25](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/types/src/index.ts#L25)* +*Defined in [types/src/index.ts:25](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/types/src/index.ts#L25)* ___ @@ -1635,7 +1632,7 @@ ___ *Inherited from [Order](#interface-order).[senderAddress](#senderaddress)* -*Defined in [types/src/index.ts:19](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/types/src/index.ts#L19)* +*Defined in [types/src/index.ts:19](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/types/src/index.ts#L19)* ___ @@ -1643,7 +1640,7 @@ ___ • **signature**: *string* -*Defined in [types/src/index.ts:33](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/types/src/index.ts#L33)* +*Defined in [types/src/index.ts:33](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/types/src/index.ts#L33)* ___ @@ -1653,7 +1650,7 @@ ___ *Inherited from [Order](#interface-order).[takerAddress](#takeraddress)* -*Defined in [types/src/index.ts:17](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/types/src/index.ts#L17)* +*Defined in [types/src/index.ts:17](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/types/src/index.ts#L17)* ___ @@ -1663,7 +1660,7 @@ ___ *Inherited from [Order](#interface-order).[takerAssetAmount](#takerassetamount)* -*Defined in [types/src/index.ts:21](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/types/src/index.ts#L21)* +*Defined in [types/src/index.ts:21](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/types/src/index.ts#L21)* ___ @@ -1673,7 +1670,7 @@ ___ *Inherited from [Order](#interface-order).[takerAssetData](#takerassetdata)* -*Defined in [types/src/index.ts:27](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/types/src/index.ts#L27)* +*Defined in [types/src/index.ts:27](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/types/src/index.ts#L27)* ___ @@ -1683,7 +1680,7 @@ ___ *Inherited from [Order](#interface-order).[takerFee](#takerfee)* -*Defined in [types/src/index.ts:23](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/types/src/index.ts#L23)* +*Defined in [types/src/index.ts:23](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/types/src/index.ts#L23)* ___ @@ -1693,7 +1690,7 @@ ___ *Inherited from [Order](#interface-order).[takerFeeAssetData](#takerfeeassetdata)* -*Defined in [types/src/index.ts:29](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/types/src/index.ts#L29)* +*Defined in [types/src/index.ts:29](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/types/src/index.ts#L29)*
@@ -1725,6 +1722,33 @@ ___ + + + + + + + + + + + + + + + + + + + + + +## Type aliases + + + + + @@ -1768,7 +1792,7 @@ ___ Ƭ **LiquidityRequestOpts**: *`Pick`* -*Defined in [asset-buyer/src/types.ts:83](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/asset-buyer/src/types.ts#L83)* +*Defined in [asset-buyer/src/types.ts:83](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/asset-buyer/src/types.ts#L83)*
@@ -1793,7 +1817,7 @@ ___ Ƭ **EIP1193Event**: *"accountsChanged" | "networkChanged" | "close" | "connect" | "notification"* -*Defined in [ethereum-types/src/index.ts:70](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L70)* +*Defined in [ethereum-types/src/index.ts:70](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L70)* Interface for providers that conform to EIP 1193 Source: https://github.com/ethereum/EIPs/blob/master/EIPS/eip-1193.md @@ -1810,7 +1834,7 @@ ___ Ƭ **JSONRPCErrorCallback**: *function* -*Defined in [ethereum-types/src/index.ts:3](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L3)* +*Defined in [ethereum-types/src/index.ts:3](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L3)* #### Type declaration: @@ -1839,7 +1863,7 @@ ___ Ƭ **SupportedProvider**: *[Web3JsProvider](_ethereum_types_src_index_.md#web3jsprovider) | [GanacheProvider](#interface-ganacheprovider) | [EIP1193Provider](#interface-eip1193provider) | [ZeroExProvider](#interface-zeroexprovider)* -*Defined in [ethereum-types/src/index.ts:9](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L9)* +*Defined in [ethereum-types/src/index.ts:9](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L9)* Do not create your own provider. Use an existing provider from a Web3 or ProviderEngine library Read more about Providers in the guides section of the 0x docs. @@ -1854,38 +1878,7 @@ ___ Ƭ **Web3JsProvider**: *[Web3JsV1Provider](#interface-web3jsv1provider) | [Web3JsV2Provider](#interface-web3jsv2provider) | [Web3JsV3Provider](#interface-web3jsv3provider)* -*Defined in [ethereum-types/src/index.ts:11](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L11)* - -
- - - - -## Type aliases - - - - - - - - - - - - - - - - - - - - - - - - +*Defined in [ethereum-types/src/index.ts:11](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L11)*
diff --git a/packages/asset-buyer/package.json b/packages/asset-buyer/package.json index 312280e0e9..7c86697640 100644 --- a/packages/asset-buyer/package.json +++ b/packages/asset-buyer/package.json @@ -1,6 +1,6 @@ { "name": "@0x/asset-buyer", - "version": "6.2.0-beta.0", + "version": "6.2.0-beta.1", "engines": { "node": ">=6.12" }, @@ -40,22 +40,22 @@ }, "homepage": "https://github.com/0xProject/0x-monorepo/packages/asset-buyer/README.md", "dependencies": { - "@0x/assert": "^2.2.0-beta.0", - "@0x/connect": "^5.1.0-beta.0", - "@0x/contract-wrappers": "^12.2.0-beta.0", - "@0x/json-schemas": "^4.1.0-beta.0", - "@0x/order-utils": "^8.5.0-beta.0", - "@0x/subproviders": "^5.1.0-beta.0", - "@0x/types": "^2.5.0-beta.0", - "@0x/typescript-typings": "^4.4.0-beta.0", - "@0x/utils": "^4.6.0-beta.0", - "@0x/web3-wrapper": "^6.1.0-beta.0", - "ethereum-types": "^2.2.0-beta.0", + "@0x/assert": "^2.2.0-beta.1", + "@0x/connect": "^5.1.0-beta.1", + "@0x/contract-wrappers": "^12.2.0-beta.1", + "@0x/json-schemas": "^4.1.0-beta.1", + "@0x/order-utils": "^8.5.0-beta.1", + "@0x/subproviders": "^5.1.0-beta.1", + "@0x/types": "^2.5.0-beta.1", + "@0x/typescript-typings": "^4.4.0-beta.1", + "@0x/utils": "^4.6.0-beta.1", + "@0x/web3-wrapper": "^6.1.0-beta.1", + "ethereum-types": "^2.2.0-beta.1", "lodash": "^4.17.11" }, "devDependencies": { "@0x/ts-doc-gen": "^0.0.22", - "@0x/tslint-config": "^3.0.1", + "@0x/tslint-config": "^3.1.0-beta.1", "@types/lodash": "4.14.104", "@types/mocha": "^5.2.7", "@types/node": "*", diff --git a/packages/asset-buyer/src/asset_buyer.ts b/packages/asset-buyer/src/asset_buyer.ts index 953a254228..cbe6786d20 100644 --- a/packages/asset-buyer/src/asset_buyer.ts +++ b/packages/asset-buyer/src/asset_buyer.ts @@ -76,8 +76,8 @@ export class AssetBuyer { ): AssetBuyer { const provider = providerUtils.standardizeOrThrow(supportedProvider); assert.isWebUri('sraApiUrl', sraApiUrl); - const chainId = options.chainId || constants.DEFAULT_ASSET_BUYER_OPTS.chainId; - const orderProvider = new StandardRelayerAPIOrderProvider(sraApiUrl, chainId); + // HACK: asset-buy will be deleted, but do not pass in chainId to allow everything to compile. + const orderProvider = new StandardRelayerAPIOrderProvider(sraApiUrl); const assetBuyer = new AssetBuyer(provider, orderProvider, options); return assetBuyer; } diff --git a/packages/asset-buyer/src/order_providers/standard_relayer_api_order_provider.ts b/packages/asset-buyer/src/order_providers/standard_relayer_api_order_provider.ts index 43323b5735..9680308c63 100644 --- a/packages/asset-buyer/src/order_providers/standard_relayer_api_order_provider.ts +++ b/packages/asset-buyer/src/order_providers/standard_relayer_api_order_provider.ts @@ -15,7 +15,6 @@ import { assert } from '../utils/assert'; export class StandardRelayerAPIOrderProvider implements OrderProvider { public readonly apiUrl: string; - public readonly chainId: number; private readonly _sraClient: HttpClient; /** * Given an array of APIOrder objects from a standard relayer api, return an array @@ -49,14 +48,11 @@ export class StandardRelayerAPIOrderProvider implements OrderProvider { /** * Instantiates a new StandardRelayerAPIOrderProvider instance * @param apiUrl The standard relayer API base HTTP url you would like to source orders from. - * @param chainId The ethereum chain id. * @return An instance of StandardRelayerAPIOrderProvider */ - constructor(apiUrl: string, chainId: number) { + constructor(apiUrl: string) { assert.isWebUri('apiUrl', apiUrl); - assert.isNumber('chainId', chainId); this.apiUrl = apiUrl; - this.chainId = chainId; this._sraClient = new HttpClient(apiUrl); } /** @@ -68,10 +64,9 @@ export class StandardRelayerAPIOrderProvider implements OrderProvider { assert.isValidOrderProviderRequest('orderProviderRequest', orderProviderRequest); const { makerAssetData, takerAssetData } = orderProviderRequest; const orderbookRequest = { baseAssetData: makerAssetData, quoteAssetData: takerAssetData }; - const requestOpts = { chainId: this.chainId }; let orderbook: OrderbookResponse; try { - orderbook = await this._sraClient.getOrderbookAsync(orderbookRequest, requestOpts); + orderbook = await this._sraClient.getOrderbookAsync(orderbookRequest); } catch (err) { throw new Error(AssetBuyerError.StandardRelayerApiError); } @@ -91,7 +86,7 @@ export class StandardRelayerAPIOrderProvider implements OrderProvider { public async getAvailableMakerAssetDatasAsync(takerAssetData: string): Promise { // Return a maximum of 1000 asset datas const maxPerPage = 1000; - const requestOpts = { chainId: this.chainId, perPage: maxPerPage }; + const requestOpts = { perPage: maxPerPage }; const assetPairsRequest = { assetDataA: takerAssetData }; const fullRequest = { ...requestOpts, diff --git a/packages/asset-swapper/CHANGELOG.json b/packages/asset-swapper/CHANGELOG.json index 2af31c6909..9d0b585531 100644 --- a/packages/asset-swapper/CHANGELOG.json +++ b/packages/asset-swapper/CHANGELOG.json @@ -1,12 +1,13 @@ [ { - "version": "3.0.0-beta.0", + "version": "2.1.0-beta.1", "changes": [ { "note": "All references to network ID have been removed, and references to chain ID have been introduced instead", "pr": 2313 } - ] + ], + "timestamp": 1573159180 }, { "version": "2.1.0-beta.0", diff --git a/packages/asset-swapper/CHANGELOG.md b/packages/asset-swapper/CHANGELOG.md index 6104cb491c..a9c2f3a6cf 100644 --- a/packages/asset-swapper/CHANGELOG.md +++ b/packages/asset-swapper/CHANGELOG.md @@ -5,6 +5,10 @@ Edit the package's CHANGELOG.json file only. CHANGELOG +## v2.1.0-beta.1 - _November 7, 2019_ + + * All references to network ID have been removed, and references to chain ID have been introduced instead (#2313) + ## v2.1.0-beta.0 - _October 3, 2019_ * Dependencies updated diff --git a/packages/asset-swapper/docs/reference.mdx b/packages/asset-swapper/docs/reference.mdx index 7ebf9fa69b..21632fe4db 100644 --- a/packages/asset-swapper/docs/reference.mdx +++ b/packages/asset-swapper/docs/reference.mdx @@ -1,43 +1,15 @@ -# Class: InsufficientAssetLiquidityError - -Error class representing insufficient asset liquidity - - -## Constructors - - - -\+ **new InsufficientAssetLiquidityError**(`amountAvailableToFill`: `BigNumber`): *[InsufficientAssetLiquidityError](#class-insufficientassetliquidityerror)* - -*Defined in [asset-swapper/src/errors.ts:12](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/asset-swapper/src/errors.ts#L12)* - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`amountAvailableToFill` | `BigNumber` | The amount availabe to fill (in base units) factoring in slippage | - -**Returns:** *[InsufficientAssetLiquidityError](#class-insufficientassetliquidityerror)* - -## Properties - -### amountAvailableToFill - -• **amountAvailableToFill**: *`BigNumber`* - -*Defined in [asset-swapper/src/errors.ts:12](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/asset-swapper/src/errors.ts#L12)* - -The amount availabe to fill (in base units) factoring in slippage. - -___ +# Interface: TupleDataItem -### message -• **message**: *string* +## Properties +### components +• **components**: *[DataItem](#class-dataitem)[]* +*Overrides [DataItem](_ethereum_types_src_index_.dataitem.md).[components](#optional-components)* +*Defined in [ethereum-types/src/index.ts:141](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L141)* ___ @@ -45,29 +17,19 @@ ___ • **name**: *string* +*Inherited from [DataItem](#interface-dataitem).[name](#name)* - - - -___ - -### `Optional` stack - -• **stack**? : *undefined | string* - - - -*Overrides void* - - +*Defined in [ethereum-types/src/index.ts:135](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L135)* ___ -### `Static` Error +### type -▪ **Error**: *`ErrorConstructor`* +• **type**: *string* +*Inherited from [DataItem](#interface-dataitem).[type](#type)* +*Defined in [ethereum-types/src/index.ts:136](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L136)*
@@ -85,7 +47,7 @@ ___ \+ **new SwapQuoteConsumer**(`supportedProvider`: [SupportedProvider](#supportedprovider), `options`: `Partial`): *[SwapQuoteConsumer](#class-swapquoteconsumer)* -*Defined in [asset-swapper/src/quote_consumers/swap_quote_consumer.ts:31](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/asset-swapper/src/quote_consumers/swap_quote_consumer.ts#L31)* +*Defined in [asset-swapper/src/quote_consumers/swap_quote_consumer.ts:31](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/asset-swapper/src/quote_consumers/swap_quote_consumer.ts#L31)* **Parameters:** @@ -98,11 +60,11 @@ Name | Type | Default | ## Properties -### networkId +### chainId -• **networkId**: *number* +• **chainId**: *number* -*Defined in [asset-swapper/src/quote_consumers/swap_quote_consumer.ts:27](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/asset-swapper/src/quote_consumers/swap_quote_consumer.ts#L27)* +*Defined in [asset-swapper/src/quote_consumers/swap_quote_consumer.ts:27](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/asset-swapper/src/quote_consumers/swap_quote_consumer.ts#L27)* ___ @@ -110,7 +72,7 @@ ___ • **provider**: *`ZeroExProvider`* -*Defined in [asset-swapper/src/quote_consumers/swap_quote_consumer.ts:26](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/asset-swapper/src/quote_consumers/swap_quote_consumer.ts#L26)* +*Defined in [asset-swapper/src/quote_consumers/swap_quote_consumer.ts:26](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/asset-swapper/src/quote_consumers/swap_quote_consumer.ts#L26)* ## Methods @@ -120,7 +82,7 @@ ___ *Implementation of [SwapQuoteConsumerBase](#interface-swapquoteconsumerbase)* -*Defined in [asset-swapper/src/quote_consumers/swap_quote_consumer.ts:81](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/asset-swapper/src/quote_consumers/swap_quote_consumer.ts#L81)* +*Defined in [asset-swapper/src/quote_consumers/swap_quote_consumer.ts:81](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/asset-swapper/src/quote_consumers/swap_quote_consumer.ts#L81)* Given a SwapQuote and desired rate (in takerAsset), attempt to execute the swap. @@ -141,7 +103,7 @@ ___ *Implementation of [SwapQuoteConsumerBase](#interface-swapquoteconsumerbase)* -*Defined in [asset-swapper/src/quote_consumers/swap_quote_consumer.ts:53](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/asset-swapper/src/quote_consumers/swap_quote_consumer.ts#L53)* +*Defined in [asset-swapper/src/quote_consumers/swap_quote_consumer.ts:53](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/asset-swapper/src/quote_consumers/swap_quote_consumer.ts#L53)* Given a SwapQuote, returns 'CalldataInfo' for a 0x exchange call. See type definition of CalldataInfo for more information. @@ -160,7 +122,7 @@ ___ ▸ **getOptimalExtensionContractTypeAsync**(`quote`: [SwapQuote](#swapquote), `opts`: `Partial`): *`Promise`* -*Defined in [asset-swapper/src/quote_consumers/swap_quote_consumer.ts:90](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/asset-swapper/src/quote_consumers/swap_quote_consumer.ts#L90)* +*Defined in [asset-swapper/src/quote_consumers/swap_quote_consumer.ts:90](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/asset-swapper/src/quote_consumers/swap_quote_consumer.ts#L90)* **Parameters:** @@ -179,7 +141,7 @@ ___ *Implementation of [SwapQuoteConsumerBase](#interface-swapquoteconsumerbase)* -*Defined in [asset-swapper/src/quote_consumers/swap_quote_consumer.ts:67](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/asset-swapper/src/quote_consumers/swap_quote_consumer.ts#L67)* +*Defined in [asset-swapper/src/quote_consumers/swap_quote_consumer.ts:67](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/asset-swapper/src/quote_consumers/swap_quote_consumer.ts#L67)* Given a SwapQuote, returns 'SmartContractParamsInfo' for a 0x exchange call. See type definition of SmartContractParamsInfo for more information. @@ -203,7 +165,7 @@ Name | Type | Default | Description | \+ **new SwapQuoter**(`supportedProvider`: [SupportedProvider](#supportedprovider), `orderbook`: `Orderbook`, `options`: `Partial`): *[SwapQuoter](#class-swapquoter)* -*Defined in [asset-swapper/src/swap_quoter.ts:126](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/asset-swapper/src/swap_quoter.ts#L126)* +*Defined in [asset-swapper/src/swap_quoter.ts:124](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/asset-swapper/src/swap_quoter.ts#L124)* Instantiates a new SwapQuoter instance @@ -225,7 +187,7 @@ An instance of SwapQuoter • **expiryBufferMs**: *number* -*Defined in [asset-swapper/src/swap_quoter.ts:30](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/asset-swapper/src/swap_quoter.ts#L30)* +*Defined in [asset-swapper/src/swap_quoter.ts:30](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/asset-swapper/src/swap_quoter.ts#L30)* ___ @@ -233,7 +195,7 @@ ___ • **orderbook**: *`Orderbook`* -*Defined in [asset-swapper/src/swap_quoter.ts:29](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/asset-swapper/src/swap_quoter.ts#L29)* +*Defined in [asset-swapper/src/swap_quoter.ts:29](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/asset-swapper/src/swap_quoter.ts#L29)* ___ @@ -241,7 +203,7 @@ ___ • **provider**: *`ZeroExProvider`* -*Defined in [asset-swapper/src/swap_quoter.ts:28](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/asset-swapper/src/swap_quoter.ts#L28)* +*Defined in [asset-swapper/src/swap_quoter.ts:28](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/asset-swapper/src/swap_quoter.ts#L28)* ## Methods @@ -249,7 +211,7 @@ ___ ▸ **destroyAsync**(): *`Promise`* -*Defined in [asset-swapper/src/swap_quoter.ts:391](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/asset-swapper/src/swap_quoter.ts#L391)* +*Defined in [asset-swapper/src/swap_quoter.ts:396](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/asset-swapper/src/swap_quoter.ts#L396)* Destroys any subscriptions or connections. @@ -261,7 +223,7 @@ ___ ▸ **getAvailableMakerAssetDatasAsync**(`takerAssetData`: string): *`Promise`* -*Defined in [asset-swapper/src/swap_quoter.ts:309](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/asset-swapper/src/swap_quoter.ts#L309)* +*Defined in [asset-swapper/src/swap_quoter.ts:315](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/asset-swapper/src/swap_quoter.ts#L315)* Get the asset data of all assets that are purchaseable with takerAssetData in the order provider passed in at init. @@ -281,7 +243,7 @@ ___ ▸ **getAvailableTakerAssetDatasAsync**(`makerAssetData`: string): *`Promise`* -*Defined in [asset-swapper/src/swap_quoter.ts:294](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/asset-swapper/src/swap_quoter.ts#L294)* +*Defined in [asset-swapper/src/swap_quoter.ts:300](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/asset-swapper/src/swap_quoter.ts#L300)* Get the asset data of all assets that can be used to purchase makerAssetData in the order provider passed in at init. @@ -301,7 +263,7 @@ ___ ▸ **getLiquidityForMakerTakerAssetDataPairAsync**(`makerAssetData`: string, `takerAssetData`: string): *`Promise`* -*Defined in [asset-swapper/src/swap_quoter.ts:268](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/asset-swapper/src/swap_quoter.ts#L268)* +*Defined in [asset-swapper/src/swap_quoter.ts:274](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/asset-swapper/src/swap_quoter.ts#L274)* Returns information about available liquidity for an asset Does not factor in slippage or fees @@ -323,7 +285,7 @@ ___ ▸ **getMarketBuySwapQuoteAsync**(`makerTokenAddress`: string, `takerTokenAddress`: string, `makerAssetBuyAmount`: `BigNumber`, `options`: `Partial`): *`Promise`* -*Defined in [asset-swapper/src/swap_quoter.ts:210](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/asset-swapper/src/swap_quoter.ts#L210)* +*Defined in [asset-swapper/src/swap_quoter.ts:208](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/asset-swapper/src/swap_quoter.ts#L208)* Get a `SwapQuote` containing all information relevant to fulfilling a swap between a desired ERC20 token address and ERC20 owned by a provided address. You can then pass the `SwapQuote` to a `SwapQuoteConsumer` to execute a buy, or process SwapQuote for on-chain consumption. @@ -347,7 +309,7 @@ ___ ▸ **getMarketBuySwapQuoteForAssetDataAsync**(`makerAssetData`: string, `takerAssetData`: string, `makerAssetBuyAmount`: `BigNumber`, `options`: `Partial`): *`Promise`* -*Defined in [asset-swapper/src/swap_quoter.ts:185](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/asset-swapper/src/swap_quoter.ts#L185)* +*Defined in [asset-swapper/src/swap_quoter.ts:183](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/asset-swapper/src/swap_quoter.ts#L183)* Get a `SwapQuote` containing all information relevant to fulfilling a swap between a desired ERC20 token address and ERC20 owned by a provided address. You can then pass the `SwapQuote` to a `SwapQuoteConsumer` to execute a buy, or process SwapQuote for on-chain consumption. @@ -371,7 +333,7 @@ ___ ▸ **getMarketSellSwapQuoteAsync**(`makerTokenAddress`: string, `takerTokenAddress`: string, `takerAssetSellAmount`: `BigNumber`, `options`: `Partial`): *`Promise`* -*Defined in [asset-swapper/src/swap_quoter.ts:240](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/asset-swapper/src/swap_quoter.ts#L240)* +*Defined in [asset-swapper/src/swap_quoter.ts:242](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/asset-swapper/src/swap_quoter.ts#L242)* Get a `SwapQuote` containing all information relevant to fulfilling a swap between a desired ERC20 token address and ERC20 owned by a provided address. You can then pass the `SwapQuote` to a `SwapQuoteConsumer` to execute a buy, or process SwapQuote for on-chain consumption. @@ -395,7 +357,7 @@ ___ ▸ **getMarketSellSwapQuoteForAssetDataAsync**(`makerAssetData`: string, `takerAssetData`: string, `takerAssetSellAmount`: `BigNumber`, `options`: `Partial`): *`Promise`* -*Defined in [asset-swapper/src/swap_quoter.ts:159](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/asset-swapper/src/swap_quoter.ts#L159)* +*Defined in [asset-swapper/src/swap_quoter.ts:157](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/asset-swapper/src/swap_quoter.ts#L157)* Get a `SwapQuote` containing all information relevant to fulfilling a swap between a desired ERC20 token address and ERC20 owned by a provided address. You can then pass the `SwapQuote` to a `SwapQuoteConsumer` to execute a buy, or process SwapQuote for on-chain consumption. @@ -419,7 +381,7 @@ ___ ▸ **getOrdersAndFillableAmountsAsync**(`makerAssetData`: string, `takerAssetData`: string): *`Promise`* -*Defined in [asset-swapper/src/swap_quoter.ts:341](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/asset-swapper/src/swap_quoter.ts#L341)* +*Defined in [asset-swapper/src/swap_quoter.ts:347](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/asset-swapper/src/swap_quoter.ts#L347)* Grab orders from the map, if there is a miss or it is time to refresh, fetch and process the orders @@ -438,7 +400,7 @@ ___ ▸ **isTakerAddressAllowanceEnoughForBestAndWorstQuoteInfoAsync**(`swapQuote`: [SwapQuote](#swapquote), `takerAddress`: string): *`Promise<[boolean, boolean]>`* -*Defined in [asset-swapper/src/swap_quoter.ts:372](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/asset-swapper/src/swap_quoter.ts#L372)* +*Defined in [asset-swapper/src/swap_quoter.ts:378](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/asset-swapper/src/swap_quoter.ts#L378)* Util function to check if takerAddress's allowance is enough for 0x exchange contracts to conduct the swap specified by the swapQuote. @@ -457,7 +419,7 @@ ___ ▸ **isTakerMakerAssetDataPairAvailableAsync**(`makerAssetData`: string, `takerAssetData`: string): *`Promise`* -*Defined in [asset-swapper/src/swap_quoter.ts:324](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/asset-swapper/src/swap_quoter.ts#L324)* +*Defined in [asset-swapper/src/swap_quoter.ts:330](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/asset-swapper/src/swap_quoter.ts#L330)* Validates the taker + maker asset pair is available from the order provider provided to `SwapQuote`. @@ -478,7 +440,7 @@ ___ ▸ **getSwapQuoterForMeshEndpoint**(`supportedProvider`: [SupportedProvider](#supportedprovider), `meshEndpoint`: string, `options`: `Partial`): *[SwapQuoter](#class-swapquoter)* -*Defined in [asset-swapper/src/swap_quoter.ts:113](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/asset-swapper/src/swap_quoter.ts#L113)* +*Defined in [asset-swapper/src/swap_quoter.ts:111](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/asset-swapper/src/swap_quoter.ts#L111)* Instantiates a new SwapQuoter instance given a 0x Mesh endpoint. This pulls all available liquidity stored in Mesh @@ -500,7 +462,7 @@ ___ ▸ **getSwapQuoterForProvidedOrders**(`supportedProvider`: [SupportedProvider](#supportedprovider), `orders`: `SignedOrder`[], `options`: `Partial`): *[SwapQuoter](#class-swapquoter)* -*Defined in [asset-swapper/src/swap_quoter.ts:41](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/asset-swapper/src/swap_quoter.ts#L41)* +*Defined in [asset-swapper/src/swap_quoter.ts:41](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/asset-swapper/src/swap_quoter.ts#L41)* Instantiates a new SwapQuoter instance given existing liquidity in the form of orders and feeOrders. @@ -522,7 +484,7 @@ ___ ▸ **getSwapQuoterForStandardRelayerAPIUrl**(`supportedProvider`: [SupportedProvider](#supportedprovider), `sraApiUrl`: string, `options`: `Partial`): *[SwapQuoter](#class-swapquoter)* -*Defined in [asset-swapper/src/swap_quoter.ts:61](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/asset-swapper/src/swap_quoter.ts#L61)* +*Defined in [asset-swapper/src/swap_quoter.ts:61](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/asset-swapper/src/swap_quoter.ts#L61)* Instantiates a new SwapQuoter instance given a [Standard Relayer API](https://github.com/0xProject/standard-relayer-api) endpoint @@ -544,7 +506,7 @@ ___ ▸ **getSwapQuoterForStandardRelayerAPIWebsocket**(`supportedProvider`: [SupportedProvider](#supportedprovider), `sraApiUrl`: string, `sraWebsocketAPIUrl`: string, `options`: `Partial`): *[SwapQuoter](#class-swapquoter)* -*Defined in [asset-swapper/src/swap_quoter.ts:88](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/asset-swapper/src/swap_quoter.ts#L88)* +*Defined in [asset-swapper/src/swap_quoter.ts:87](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/asset-swapper/src/swap_quoter.ts#L87)* Instantiates a new SwapQuoter instance given a [Standard Relayer API](https://github.com/0xProject/standard-relayer-api) endpoint and a websocket endpoint. This is more effecient than `getSwapQuoterForStandardRelayerAPIUrl` when requesting multiple quotes. @@ -573,7 +535,7 @@ An instance of SwapQuoter \+ **new BaseOrderProvider**(`orderStore`: [OrderStore](_orderbook_src_order_store_.orderstore.md)): *[BaseOrderProvider](#class-baseorderprovider)* -*Defined in [orderbook/src/order_provider/base_order_provider.ts:12](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/orderbook/src/order_provider/base_order_provider.ts#L12)* +*Defined in [orderbook/src/order_provider/base_order_provider.ts:12](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/orderbook/src/order_provider/base_order_provider.ts#L12)* **Parameters:** @@ -589,7 +551,7 @@ Name | Type | • **_orderStore**: *[OrderStore](#class-orderstore)* -*Defined in [orderbook/src/order_provider/base_order_provider.ts:12](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/orderbook/src/order_provider/base_order_provider.ts#L12)* +*Defined in [orderbook/src/order_provider/base_order_provider.ts:12](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/orderbook/src/order_provider/base_order_provider.ts#L12)* ## Methods @@ -597,7 +559,7 @@ Name | Type | ▸ **addOrdersAsync**(`orders`: `SignedOrder`[]): *`Promise`* -*Defined in [orderbook/src/order_provider/base_order_provider.ts:27](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/orderbook/src/order_provider/base_order_provider.ts#L27)* +*Defined in [orderbook/src/order_provider/base_order_provider.ts:27](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/orderbook/src/order_provider/base_order_provider.ts#L27)* **Parameters:** @@ -613,7 +575,7 @@ ___ ▸ **createSubscriptionForAssetPairAsync**(`makerAssetData`: string, `takerAssetData`: string): *`Promise`* -*Defined in [orderbook/src/order_provider/base_order_provider.ts:18](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/orderbook/src/order_provider/base_order_provider.ts#L18)* +*Defined in [orderbook/src/order_provider/base_order_provider.ts:18](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/orderbook/src/order_provider/base_order_provider.ts#L18)* **Parameters:** @@ -630,7 +592,7 @@ ___ ▸ **destroyAsync**(): *`Promise`* -*Defined in [orderbook/src/order_provider/base_order_provider.ts:25](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/orderbook/src/order_provider/base_order_provider.ts#L25)* +*Defined in [orderbook/src/order_provider/base_order_provider.ts:25](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/orderbook/src/order_provider/base_order_provider.ts#L25)* **Returns:** *`Promise`* @@ -640,7 +602,7 @@ ___ ▸ **getAvailableAssetDatasAsync**(): *`Promise`* -*Defined in [orderbook/src/order_provider/base_order_provider.ts:23](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/orderbook/src/order_provider/base_order_provider.ts#L23)* +*Defined in [orderbook/src/order_provider/base_order_provider.ts:23](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/orderbook/src/order_provider/base_order_provider.ts#L23)* **Returns:** *`Promise`* @@ -655,7 +617,7 @@ ___ \+ **new OrderSet**(`orders`: `APIOrder`[]): *[OrderSet](#class-orderset)* -*Defined in [orderbook/src/order_set.ts:6](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/orderbook/src/order_set.ts#L6)* +*Defined in [orderbook/src/order_set.ts:6](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/orderbook/src/order_set.ts#L6)* **Parameters:** @@ -671,7 +633,7 @@ Name | Type | Default | ▸ **add**(`item`: `APIOrder`): *void* -*Defined in [orderbook/src/order_set.ts:19](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/orderbook/src/order_set.ts#L19)* +*Defined in [orderbook/src/order_set.ts:19](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/orderbook/src/order_set.ts#L19)* **Parameters:** @@ -687,7 +649,7 @@ ___ ▸ **addMany**(`items`: `APIOrder`[]): *void* -*Defined in [orderbook/src/order_set.ts:25](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/orderbook/src/order_set.ts#L25)* +*Defined in [orderbook/src/order_set.ts:25](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/orderbook/src/order_set.ts#L25)* **Parameters:** @@ -703,7 +665,7 @@ ___ ▸ **delete**(`item`: `APIOrder`): *boolean* -*Defined in [orderbook/src/order_set.ts:57](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/orderbook/src/order_set.ts#L57)* +*Defined in [orderbook/src/order_set.ts:57](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/orderbook/src/order_set.ts#L57)* **Parameters:** @@ -719,7 +681,7 @@ ___ ▸ **deleteMany**(`items`: `APIOrder`[]): *void* -*Defined in [orderbook/src/order_set.ts:61](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/orderbook/src/order_set.ts#L61)* +*Defined in [orderbook/src/order_set.ts:61](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/orderbook/src/order_set.ts#L61)* **Parameters:** @@ -735,7 +697,7 @@ ___ ▸ **diff**(`other`: [OrderSet](#class-orderset)): *object* -*Defined in [orderbook/src/order_set.ts:35](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/orderbook/src/order_set.ts#L35)* +*Defined in [orderbook/src/order_set.ts:35](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/orderbook/src/order_set.ts#L35)* **Parameters:** @@ -751,7 +713,7 @@ ___ ▸ **has**(`order`: `APIOrder`): *boolean* -*Defined in [orderbook/src/order_set.ts:31](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/orderbook/src/order_set.ts#L31)* +*Defined in [orderbook/src/order_set.ts:31](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/orderbook/src/order_set.ts#L31)* **Parameters:** @@ -767,7 +729,7 @@ ___ ▸ **size**(): *number* -*Defined in [orderbook/src/order_set.ts:15](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/orderbook/src/order_set.ts#L15)* +*Defined in [orderbook/src/order_set.ts:15](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/orderbook/src/order_set.ts#L15)* **Returns:** *number* @@ -777,7 +739,7 @@ ___ ▸ **values**(): *`IterableIterator`* -*Defined in [orderbook/src/order_set.ts:53](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/orderbook/src/order_set.ts#L53)* +*Defined in [orderbook/src/order_set.ts:53](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/orderbook/src/order_set.ts#L53)* **Returns:** *`IterableIterator`* @@ -792,7 +754,7 @@ ___ ▸ **getOrderSetForAssetPair**(`assetPairKey`: string): *[OrderSet](#class-orderset)* -*Defined in [orderbook/src/order_store.ts:19](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/orderbook/src/order_store.ts#L19)* +*Defined in [orderbook/src/order_store.ts:19](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/orderbook/src/order_store.ts#L19)* **Parameters:** @@ -808,7 +770,7 @@ ___ ▸ **getOrderSetForAssets**(`makerAssetData`: string, `takerAssetData`: string): *[OrderSet](#class-orderset)* -*Defined in [orderbook/src/order_store.ts:15](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/orderbook/src/order_store.ts#L15)* +*Defined in [orderbook/src/order_store.ts:15](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/orderbook/src/order_store.ts#L15)* **Parameters:** @@ -825,7 +787,7 @@ ___ ▸ **has**(`assetPairKey`: string): *boolean* -*Defined in [orderbook/src/order_store.ts:34](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/orderbook/src/order_store.ts#L34)* +*Defined in [orderbook/src/order_store.ts:34](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/orderbook/src/order_store.ts#L34)* **Parameters:** @@ -841,7 +803,7 @@ ___ ▸ **keys**(): *`IterableIterator`* -*Defined in [orderbook/src/order_store.ts:40](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/orderbook/src/order_store.ts#L40)* +*Defined in [orderbook/src/order_store.ts:40](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/orderbook/src/order_store.ts#L40)* **Returns:** *`IterableIterator`* @@ -851,7 +813,7 @@ ___ ▸ **update**(`addedRemoved`: [AddedRemovedOrders](#interface-addedremovedorders)): *void* -*Defined in [orderbook/src/order_store.ts:28](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/orderbook/src/order_store.ts#L28)* +*Defined in [orderbook/src/order_store.ts:28](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/orderbook/src/order_store.ts#L28)* **Parameters:** @@ -867,7 +829,7 @@ ___ ▸ **values**(`assetPairKey`: string): *`APIOrder`[]* -*Defined in [orderbook/src/order_store.ts:37](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/orderbook/src/order_store.ts#L37)* +*Defined in [orderbook/src/order_store.ts:37](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/orderbook/src/order_store.ts#L37)* **Parameters:** @@ -883,7 +845,7 @@ ___ ▸ **assetPairKeyToAssets**(`assetPairKey`: string): *string[]* -*Defined in [orderbook/src/order_store.ts:12](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/orderbook/src/order_store.ts#L12)* +*Defined in [orderbook/src/order_store.ts:12](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/orderbook/src/order_store.ts#L12)* **Parameters:** @@ -899,7 +861,7 @@ ___ ▸ **getKeyForAssetPair**(`makerAssetData`: string, `takerAssetData`: string): *string* -*Defined in [orderbook/src/order_store.ts:9](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/orderbook/src/order_store.ts#L9)* +*Defined in [orderbook/src/order_store.ts:9](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/orderbook/src/order_store.ts#L9)* **Parameters:** @@ -921,7 +883,7 @@ Name | Type | \+ **new Orderbook**(`orderProvider`: [BaseOrderProvider](_orderbook_src_order_provider_base_order_provider_.baseorderprovider.md), `orderStore`: [OrderStore](_orderbook_src_order_store_.orderstore.md)): *[Orderbook](#class-orderbook)* -*Defined in [orderbook/src/orderbook.ts:55](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/orderbook/src/orderbook.ts#L55)* +*Defined in [orderbook/src/orderbook.ts:55](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/orderbook/src/orderbook.ts#L55)* Creates an Orderbook with the order provider. All order updates are stored in the `OrderStore`. @@ -941,7 +903,7 @@ Name | Type | Description | ▸ **addOrdersAsync**(`orders`: `SignedOrder`[]): *`Promise`* -*Defined in [orderbook/src/orderbook.ts:98](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/orderbook/src/orderbook.ts#L98)* +*Defined in [orderbook/src/orderbook.ts:98](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/orderbook/src/orderbook.ts#L98)* Adds the orders to the Order Provider. All accepted orders will be returned and rejected orders will be returned with an message indicating a reason for its rejection @@ -960,7 +922,7 @@ ___ ▸ **destroyAsync**(): *`Promise`* -*Defined in [orderbook/src/orderbook.ts:104](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/orderbook/src/orderbook.ts#L104)* +*Defined in [orderbook/src/orderbook.ts:104](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/orderbook/src/orderbook.ts#L104)* Destroys any subscriptions or connections. @@ -972,7 +934,7 @@ ___ ▸ **getAvailableAssetDatasAsync**(): *`Promise`* -*Defined in [orderbook/src/orderbook.ts:90](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/orderbook/src/orderbook.ts#L90)* +*Defined in [orderbook/src/orderbook.ts:90](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/orderbook/src/orderbook.ts#L90)* Returns all of the Available Asset Pairs for the provided Order Provider. @@ -984,7 +946,7 @@ ___ ▸ **getOrdersAsync**(`makerAssetData`: string, `takerAssetData`: string): *`Promise`* -*Defined in [orderbook/src/orderbook.ts:75](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/orderbook/src/orderbook.ts#L75)* +*Defined in [orderbook/src/orderbook.ts:75](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/orderbook/src/orderbook.ts#L75)* Returns all orders where the order.makerAssetData == makerAssetData and order.takerAssetData == takerAssetData. This pair is then subscribed to @@ -1007,7 +969,7 @@ ___ ▸ **getOrderbookForMeshProvider**(`opts`: [MeshOrderProviderOpts](#interface-meshorderprovideropts)): *[Orderbook](#class-orderbook)* -*Defined in [orderbook/src/orderbook.ts:52](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/orderbook/src/orderbook.ts#L52)* +*Defined in [orderbook/src/orderbook.ts:52](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/orderbook/src/orderbook.ts#L52)* Creates an Orderbook with a Mesh Order Provider. This Provider fetches ALL orders and subscribes to updates on ALL orders. @@ -1026,7 +988,7 @@ ___ ▸ **getOrderbookForPollingProvider**(`opts`: [SRAPollingOrderProviderOpts](#interface-srapollingorderprovideropts)): *[Orderbook](#class-orderbook)* -*Defined in [orderbook/src/orderbook.ts:43](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/orderbook/src/orderbook.ts#L43)* +*Defined in [orderbook/src/orderbook.ts:43](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/orderbook/src/orderbook.ts#L43)* Creates an Orderbook with SRA Polling Provider. This Provider simply polls every interval. @@ -1044,7 +1006,7 @@ ___ ▸ **getOrderbookForProvidedOrders**(`orders`: `SignedOrder`[]): *[Orderbook](#class-orderbook)* -*Defined in [orderbook/src/orderbook.ts:26](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/orderbook/src/orderbook.ts#L26)* +*Defined in [orderbook/src/orderbook.ts:26](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/orderbook/src/orderbook.ts#L26)* Creates an Orderbook with the provided orders. This provider simply stores the orders and allows querying. No validation or subscriptions occur. @@ -1063,7 +1025,7 @@ ___ ▸ **getOrderbookForWebsocketProvider**(`opts`: [SRAWebsocketOrderProviderOpts](#interface-srawebsocketorderprovideropts)): *[Orderbook](#class-orderbook)* -*Defined in [orderbook/src/orderbook.ts:35](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/orderbook/src/orderbook.ts#L35)* +*Defined in [orderbook/src/orderbook.ts:35](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/orderbook/src/orderbook.ts#L35)* Creates an Orderbook with the SRA Websocket Provider. This Provider fetches orders via the SRA http endpoint and then subscribes to the asset pair for future updates. @@ -1089,7 +1051,7 @@ Represents the varying smart contracts that can consume a valid swap quote • **Forwarder**: = "FORWARDER" -*Defined in [asset-swapper/src/types.ts:90](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/asset-swapper/src/types.ts#L90)* +*Defined in [asset-swapper/src/types.ts:88](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/asset-swapper/src/types.ts#L88)* ___ @@ -1097,7 +1059,7 @@ ___ • **None**: = "NONE" -*Defined in [asset-swapper/src/types.ts:91](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/asset-swapper/src/types.ts#L91)* +*Defined in [asset-swapper/src/types.ts:89](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/asset-swapper/src/types.ts#L89)*
@@ -1114,7 +1076,7 @@ Possible error messages thrown by an SwapQuoter instance or associated static me • **AssetUnavailable**: = "ASSET_UNAVAILABLE" -*Defined in [asset-swapper/src/types.ts:305](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/asset-swapper/src/types.ts#L305)* +*Defined in [asset-swapper/src/types.ts:303](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/asset-swapper/src/types.ts#L303)* ___ @@ -1122,7 +1084,7 @@ ___ • **FeeAssetUnavailable**: = "FEE_ASSET_UNAVAILABLE" -*Defined in [asset-swapper/src/types.ts:306](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/asset-swapper/src/types.ts#L306)* +*Defined in [asset-swapper/src/types.ts:304](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/asset-swapper/src/types.ts#L304)* ___ @@ -1130,7 +1092,7 @@ ___ • **InsufficientAssetLiquidity**: = "INSUFFICIENT_ASSET_LIQUIDITY" -*Defined in [asset-swapper/src/types.ts:302](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/asset-swapper/src/types.ts#L302)* +*Defined in [asset-swapper/src/types.ts:300](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/asset-swapper/src/types.ts#L300)* ___ @@ -1138,7 +1100,7 @@ ___ • **InsufficientZrxLiquidity**: = "INSUFFICIENT_ZRX_LIQUIDITY" -*Defined in [asset-swapper/src/types.ts:303](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/asset-swapper/src/types.ts#L303)* +*Defined in [asset-swapper/src/types.ts:301](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/asset-swapper/src/types.ts#L301)* ___ @@ -1146,7 +1108,7 @@ ___ • **InvalidOrderProviderResponse**: = "INVALID_ORDER_PROVIDER_RESPONSE" -*Defined in [asset-swapper/src/types.ts:304](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/asset-swapper/src/types.ts#L304)* +*Defined in [asset-swapper/src/types.ts:302](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/asset-swapper/src/types.ts#L302)* ___ @@ -1154,7 +1116,7 @@ ___ • **NoEtherTokenContractFound**: = "NO_ETHER_TOKEN_CONTRACT_FOUND" -*Defined in [asset-swapper/src/types.ts:299](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/asset-swapper/src/types.ts#L299)* +*Defined in [asset-swapper/src/types.ts:297](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/asset-swapper/src/types.ts#L297)* ___ @@ -1162,7 +1124,7 @@ ___ • **NoZrxTokenContractFound**: = "NO_ZRX_TOKEN_CONTRACT_FOUND" -*Defined in [asset-swapper/src/types.ts:300](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/asset-swapper/src/types.ts#L300)* +*Defined in [asset-swapper/src/types.ts:298](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/asset-swapper/src/types.ts#L298)* ___ @@ -1170,7 +1132,7 @@ ___ • **StandardRelayerApiError**: = "STANDARD_RELAYER_API_ERROR" -*Defined in [asset-swapper/src/types.ts:301](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/asset-swapper/src/types.ts#L301)* +*Defined in [asset-swapper/src/types.ts:299](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/asset-swapper/src/types.ts#L299)*
@@ -1205,6 +1167,10 @@ ___ + + + +
# Interface: CalldataInfo @@ -1221,7 +1187,7 @@ ethAmount: If provided, the eth amount in wei to send with the smart contract ca • **calldataHexString**: *string* -*Defined in [asset-swapper/src/types.ts:39](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/asset-swapper/src/types.ts#L39)* +*Defined in [asset-swapper/src/types.ts:37](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/asset-swapper/src/types.ts#L37)* ___ @@ -1229,7 +1195,7 @@ ___ • **ethAmount**? : *`BigNumber`* -*Defined in [asset-swapper/src/types.ts:42](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/asset-swapper/src/types.ts#L42)* +*Defined in [asset-swapper/src/types.ts:40](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/asset-swapper/src/types.ts#L40)* ___ @@ -1237,7 +1203,7 @@ ___ • **methodAbi**: *`MethodAbi`* -*Defined in [asset-swapper/src/types.ts:40](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/asset-swapper/src/types.ts#L40)* +*Defined in [asset-swapper/src/types.ts:38](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/asset-swapper/src/types.ts#L38)* ___ @@ -1245,7 +1211,7 @@ ___ • **toAddress**: *string* -*Defined in [asset-swapper/src/types.ts:41](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/asset-swapper/src/types.ts#L41)* +*Defined in [asset-swapper/src/types.ts:39](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/asset-swapper/src/types.ts#L39)*
@@ -1270,7 +1236,7 @@ ___ *Inherited from [ForwarderSwapQuoteGetOutputOpts](#interface-forwarderswapquotegetoutputopts).[ethAmount](#optional-ethamount)* -*Defined in [asset-swapper/src/types.ts:181](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/asset-swapper/src/types.ts#L181)* +*Defined in [asset-swapper/src/types.ts:179](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/asset-swapper/src/types.ts#L179)* ___ @@ -1280,7 +1246,7 @@ ___ *Inherited from [ForwarderSwapQuoteGetOutputOpts](#interface-forwarderswapquotegetoutputopts).[feePercentage](#feepercentage)* -*Defined in [asset-swapper/src/types.ts:179](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/asset-swapper/src/types.ts#L179)* +*Defined in [asset-swapper/src/types.ts:177](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/asset-swapper/src/types.ts#L177)* ___ @@ -1290,7 +1256,7 @@ ___ *Inherited from [ForwarderSwapQuoteGetOutputOpts](#interface-forwarderswapquotegetoutputopts).[feeRecipient](#feerecipient)* -*Defined in [asset-swapper/src/types.ts:180](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/asset-swapper/src/types.ts#L180)* +*Defined in [asset-swapper/src/types.ts:178](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/asset-swapper/src/types.ts#L178)* ___ @@ -1300,7 +1266,7 @@ ___ *Inherited from [SwapQuoteExecutionOptsBase](#interface-swapquoteexecutionoptsbase).[gasLimit](#optional-gaslimit)* -*Defined in [asset-swapper/src/types.ts:169](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/asset-swapper/src/types.ts#L169)* +*Defined in [asset-swapper/src/types.ts:167](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/asset-swapper/src/types.ts#L167)* ___ @@ -1310,7 +1276,7 @@ ___ *Inherited from [SwapQuoteExecutionOptsBase](#interface-swapquoteexecutionoptsbase).[gasPrice](#optional-gasprice)* -*Defined in [asset-swapper/src/types.ts:170](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/asset-swapper/src/types.ts#L170)* +*Defined in [asset-swapper/src/types.ts:168](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/asset-swapper/src/types.ts#L168)* ___ @@ -1320,7 +1286,7 @@ ___ *Inherited from [SwapQuoteExecutionOptsBase](#interface-swapquoteexecutionoptsbase).[takerAddress](#optional-takeraddress)* -*Defined in [asset-swapper/src/types.ts:168](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/asset-swapper/src/types.ts#L168)* +*Defined in [asset-swapper/src/types.ts:166](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/asset-swapper/src/types.ts#L166)*
@@ -1337,7 +1303,7 @@ ethAmount: The amount of eth (in Wei) sent to the forwarder contract. • **ethAmount**? : *`BigNumber`* -*Defined in [asset-swapper/src/types.ts:181](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/asset-swapper/src/types.ts#L181)* +*Defined in [asset-swapper/src/types.ts:179](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/asset-swapper/src/types.ts#L179)* ___ @@ -1345,7 +1311,7 @@ ___ • **feePercentage**: *number* -*Defined in [asset-swapper/src/types.ts:179](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/asset-swapper/src/types.ts#L179)* +*Defined in [asset-swapper/src/types.ts:177](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/asset-swapper/src/types.ts#L177)* ___ @@ -1353,7 +1319,7 @@ ___ • **feeRecipient**: *string* -*Defined in [asset-swapper/src/types.ts:180](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/asset-swapper/src/types.ts#L180)* +*Defined in [asset-swapper/src/types.ts:178](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/asset-swapper/src/types.ts#L178)*
@@ -1366,7 +1332,7 @@ ___ • **ethAmount**? : *`BigNumber`* -*Defined in [asset-swapper/src/types.ts:188](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/asset-swapper/src/types.ts#L188)* +*Defined in [asset-swapper/src/types.ts:186](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/asset-swapper/src/types.ts#L186)* ___ @@ -1374,7 +1340,7 @@ ___ • **takerAddress**? : *undefined | string* -*Defined in [asset-swapper/src/types.ts:187](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/asset-swapper/src/types.ts#L187)* +*Defined in [asset-swapper/src/types.ts:185](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/asset-swapper/src/types.ts#L185)*
@@ -1389,7 +1355,7 @@ Represents available liquidity for a given assetData • **makerTokensAvailableInBaseUnits**: *`BigNumber`* -*Defined in [asset-swapper/src/types.ts:322](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/asset-swapper/src/types.ts#L322)* +*Defined in [asset-swapper/src/types.ts:320](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/asset-swapper/src/types.ts#L320)* ___ @@ -1397,7 +1363,7 @@ ___ • **takerTokensAvailableInBaseUnits**: *`BigNumber`* -*Defined in [asset-swapper/src/types.ts:323](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/asset-swapper/src/types.ts#L323)* +*Defined in [asset-swapper/src/types.ts:321](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/asset-swapper/src/types.ts#L321)*
@@ -1415,7 +1381,7 @@ type: Specified MarketOperation the SwapQuote is provided for *Inherited from [SwapQuoteBase](#interface-swapquotebase).[bestCaseQuoteInfo](#bestcasequoteinfo)* -*Defined in [asset-swapper/src/types.ts:219](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/asset-swapper/src/types.ts#L219)* +*Defined in [asset-swapper/src/types.ts:217](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/asset-swapper/src/types.ts#L217)* ___ @@ -1425,7 +1391,7 @@ ___ *Inherited from [SwapQuoteBase](#interface-swapquotebase).[feeOrders](#feeorders)* -*Defined in [asset-swapper/src/types.ts:218](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/asset-swapper/src/types.ts#L218)* +*Defined in [asset-swapper/src/types.ts:216](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/asset-swapper/src/types.ts#L216)* ___ @@ -1435,7 +1401,7 @@ ___ *Inherited from [SwapQuoteBase](#interface-swapquotebase).[makerAssetData](#makerassetdata)* -*Defined in [asset-swapper/src/types.ts:216](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/asset-swapper/src/types.ts#L216)* +*Defined in [asset-swapper/src/types.ts:214](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/asset-swapper/src/types.ts#L214)* ___ @@ -1443,7 +1409,7 @@ ___ • **makerAssetFillAmount**: *`BigNumber`* -*Defined in [asset-swapper/src/types.ts:237](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/asset-swapper/src/types.ts#L237)* +*Defined in [asset-swapper/src/types.ts:235](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/asset-swapper/src/types.ts#L235)* ___ @@ -1453,7 +1419,7 @@ ___ *Inherited from [SwapQuoteBase](#interface-swapquotebase).[orders](#orders)* -*Defined in [asset-swapper/src/types.ts:217](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/asset-swapper/src/types.ts#L217)* +*Defined in [asset-swapper/src/types.ts:215](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/asset-swapper/src/types.ts#L215)* ___ @@ -1463,7 +1429,7 @@ ___ *Inherited from [SwapQuoteBase](#interface-swapquotebase).[takerAssetData](#takerassetdata)* -*Defined in [asset-swapper/src/types.ts:215](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/asset-swapper/src/types.ts#L215)* +*Defined in [asset-swapper/src/types.ts:213](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/asset-swapper/src/types.ts#L213)* ___ @@ -1471,7 +1437,7 @@ ___ • **type**: *`Buy`* -*Defined in [asset-swapper/src/types.ts:238](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/asset-swapper/src/types.ts#L238)* +*Defined in [asset-swapper/src/types.ts:236](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/asset-swapper/src/types.ts#L236)* ___ @@ -1481,7 +1447,7 @@ ___ *Inherited from [SwapQuoteBase](#interface-swapquotebase).[worstCaseQuoteInfo](#worstcasequoteinfo)* -*Defined in [asset-swapper/src/types.ts:220](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/asset-swapper/src/types.ts#L220)* +*Defined in [asset-swapper/src/types.ts:218](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/asset-swapper/src/types.ts#L218)*
@@ -1496,7 +1462,7 @@ ___ *Inherited from [SwapQuoteBase](#interface-swapquotebase).[bestCaseQuoteInfo](#bestcasequoteinfo)* -*Defined in [asset-swapper/src/types.ts:219](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/asset-swapper/src/types.ts#L219)* +*Defined in [asset-swapper/src/types.ts:217](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/asset-swapper/src/types.ts#L217)* ___ @@ -1506,7 +1472,7 @@ ___ *Inherited from [SwapQuoteBase](#interface-swapquotebase).[feeOrders](#feeorders)* -*Defined in [asset-swapper/src/types.ts:218](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/asset-swapper/src/types.ts#L218)* +*Defined in [asset-swapper/src/types.ts:216](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/asset-swapper/src/types.ts#L216)* ___ @@ -1516,7 +1482,7 @@ ___ *Inherited from [SwapQuoteWithAffiliateFeeBase](#interface-swapquotewithaffiliatefeebase).[feePercentage](#feepercentage)* -*Defined in [asset-swapper/src/types.ts:242](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/asset-swapper/src/types.ts#L242)* +*Defined in [asset-swapper/src/types.ts:240](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/asset-swapper/src/types.ts#L240)* ___ @@ -1526,7 +1492,7 @@ ___ *Inherited from [SwapQuoteBase](#interface-swapquotebase).[makerAssetData](#makerassetdata)* -*Defined in [asset-swapper/src/types.ts:216](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/asset-swapper/src/types.ts#L216)* +*Defined in [asset-swapper/src/types.ts:214](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/asset-swapper/src/types.ts#L214)* ___ @@ -1536,7 +1502,7 @@ ___ *Inherited from [MarketBuySwapQuote](#interface-marketbuyswapquote).[makerAssetFillAmount](#makerassetfillamount)* -*Defined in [asset-swapper/src/types.ts:237](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/asset-swapper/src/types.ts#L237)* +*Defined in [asset-swapper/src/types.ts:235](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/asset-swapper/src/types.ts#L235)* ___ @@ -1546,7 +1512,7 @@ ___ *Inherited from [SwapQuoteBase](#interface-swapquotebase).[orders](#orders)* -*Defined in [asset-swapper/src/types.ts:217](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/asset-swapper/src/types.ts#L217)* +*Defined in [asset-swapper/src/types.ts:215](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/asset-swapper/src/types.ts#L215)* ___ @@ -1556,7 +1522,7 @@ ___ *Inherited from [SwapQuoteBase](#interface-swapquotebase).[takerAssetData](#takerassetdata)* -*Defined in [asset-swapper/src/types.ts:215](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/asset-swapper/src/types.ts#L215)* +*Defined in [asset-swapper/src/types.ts:213](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/asset-swapper/src/types.ts#L213)* ___ @@ -1566,7 +1532,7 @@ ___ *Inherited from [MarketBuySwapQuote](#interface-marketbuyswapquote).[type](#type)* -*Defined in [asset-swapper/src/types.ts:238](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/asset-swapper/src/types.ts#L238)* +*Defined in [asset-swapper/src/types.ts:236](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/asset-swapper/src/types.ts#L236)* ___ @@ -1576,7 +1542,7 @@ ___ *Inherited from [SwapQuoteBase](#interface-swapquotebase).[worstCaseQuoteInfo](#worstcasequoteinfo)* -*Defined in [asset-swapper/src/types.ts:220](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/asset-swapper/src/types.ts#L220)* +*Defined in [asset-swapper/src/types.ts:218](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/asset-swapper/src/types.ts#L218)*
@@ -1594,7 +1560,7 @@ type: Specified MarketOperation the SwapQuote is provided for *Inherited from [SwapQuoteBase](#interface-swapquotebase).[bestCaseQuoteInfo](#bestcasequoteinfo)* -*Defined in [asset-swapper/src/types.ts:219](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/asset-swapper/src/types.ts#L219)* +*Defined in [asset-swapper/src/types.ts:217](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/asset-swapper/src/types.ts#L217)* ___ @@ -1604,7 +1570,7 @@ ___ *Inherited from [SwapQuoteBase](#interface-swapquotebase).[feeOrders](#feeorders)* -*Defined in [asset-swapper/src/types.ts:218](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/asset-swapper/src/types.ts#L218)* +*Defined in [asset-swapper/src/types.ts:216](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/asset-swapper/src/types.ts#L216)* ___ @@ -1614,7 +1580,7 @@ ___ *Inherited from [SwapQuoteBase](#interface-swapquotebase).[makerAssetData](#makerassetdata)* -*Defined in [asset-swapper/src/types.ts:216](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/asset-swapper/src/types.ts#L216)* +*Defined in [asset-swapper/src/types.ts:214](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/asset-swapper/src/types.ts#L214)* ___ @@ -1624,7 +1590,7 @@ ___ *Inherited from [SwapQuoteBase](#interface-swapquotebase).[orders](#orders)* -*Defined in [asset-swapper/src/types.ts:217](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/asset-swapper/src/types.ts#L217)* +*Defined in [asset-swapper/src/types.ts:215](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/asset-swapper/src/types.ts#L215)* ___ @@ -1634,7 +1600,7 @@ ___ *Inherited from [SwapQuoteBase](#interface-swapquotebase).[takerAssetData](#takerassetdata)* -*Defined in [asset-swapper/src/types.ts:215](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/asset-swapper/src/types.ts#L215)* +*Defined in [asset-swapper/src/types.ts:213](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/asset-swapper/src/types.ts#L213)* ___ @@ -1642,7 +1608,7 @@ ___ • **takerAssetFillAmount**: *`BigNumber`* -*Defined in [asset-swapper/src/types.ts:228](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/asset-swapper/src/types.ts#L228)* +*Defined in [asset-swapper/src/types.ts:226](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/asset-swapper/src/types.ts#L226)* ___ @@ -1650,7 +1616,7 @@ ___ • **type**: *`Sell`* -*Defined in [asset-swapper/src/types.ts:229](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/asset-swapper/src/types.ts#L229)* +*Defined in [asset-swapper/src/types.ts:227](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/asset-swapper/src/types.ts#L227)* ___ @@ -1660,7 +1626,7 @@ ___ *Inherited from [SwapQuoteBase](#interface-swapquotebase).[worstCaseQuoteInfo](#worstcasequoteinfo)* -*Defined in [asset-swapper/src/types.ts:220](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/asset-swapper/src/types.ts#L220)* +*Defined in [asset-swapper/src/types.ts:218](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/asset-swapper/src/types.ts#L218)*
@@ -1675,7 +1641,7 @@ ___ *Inherited from [SwapQuoteBase](#interface-swapquotebase).[bestCaseQuoteInfo](#bestcasequoteinfo)* -*Defined in [asset-swapper/src/types.ts:219](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/asset-swapper/src/types.ts#L219)* +*Defined in [asset-swapper/src/types.ts:217](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/asset-swapper/src/types.ts#L217)* ___ @@ -1685,7 +1651,7 @@ ___ *Inherited from [SwapQuoteBase](#interface-swapquotebase).[feeOrders](#feeorders)* -*Defined in [asset-swapper/src/types.ts:218](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/asset-swapper/src/types.ts#L218)* +*Defined in [asset-swapper/src/types.ts:216](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/asset-swapper/src/types.ts#L216)* ___ @@ -1695,7 +1661,7 @@ ___ *Inherited from [SwapQuoteWithAffiliateFeeBase](#interface-swapquotewithaffiliatefeebase).[feePercentage](#feepercentage)* -*Defined in [asset-swapper/src/types.ts:242](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/asset-swapper/src/types.ts#L242)* +*Defined in [asset-swapper/src/types.ts:240](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/asset-swapper/src/types.ts#L240)* ___ @@ -1705,7 +1671,7 @@ ___ *Inherited from [SwapQuoteBase](#interface-swapquotebase).[makerAssetData](#makerassetdata)* -*Defined in [asset-swapper/src/types.ts:216](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/asset-swapper/src/types.ts#L216)* +*Defined in [asset-swapper/src/types.ts:214](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/asset-swapper/src/types.ts#L214)* ___ @@ -1715,7 +1681,7 @@ ___ *Inherited from [SwapQuoteBase](#interface-swapquotebase).[orders](#orders)* -*Defined in [asset-swapper/src/types.ts:217](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/asset-swapper/src/types.ts#L217)* +*Defined in [asset-swapper/src/types.ts:215](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/asset-swapper/src/types.ts#L215)* ___ @@ -1725,7 +1691,7 @@ ___ *Inherited from [SwapQuoteBase](#interface-swapquotebase).[takerAssetData](#takerassetdata)* -*Defined in [asset-swapper/src/types.ts:215](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/asset-swapper/src/types.ts#L215)* +*Defined in [asset-swapper/src/types.ts:213](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/asset-swapper/src/types.ts#L213)* ___ @@ -1735,7 +1701,7 @@ ___ *Inherited from [MarketSellSwapQuote](#interface-marketsellswapquote).[takerAssetFillAmount](#takerassetfillamount)* -*Defined in [asset-swapper/src/types.ts:228](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/asset-swapper/src/types.ts#L228)* +*Defined in [asset-swapper/src/types.ts:226](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/asset-swapper/src/types.ts#L226)* ___ @@ -1745,7 +1711,7 @@ ___ *Inherited from [MarketSellSwapQuote](#interface-marketsellswapquote).[type](#type)* -*Defined in [asset-swapper/src/types.ts:229](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/asset-swapper/src/types.ts#L229)* +*Defined in [asset-swapper/src/types.ts:227](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/asset-swapper/src/types.ts#L227)* ___ @@ -1755,7 +1721,7 @@ ___ *Inherited from [SwapQuoteBase](#interface-swapquotebase).[worstCaseQuoteInfo](#worstcasequoteinfo)* -*Defined in [asset-swapper/src/types.ts:220](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/asset-swapper/src/types.ts#L220)* +*Defined in [asset-swapper/src/types.ts:218](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/asset-swapper/src/types.ts#L218)*
@@ -1788,7 +1754,7 @@ methodAbi: The ABI of the smart contract method to call with params. • **ethAmount**? : *`BigNumber`* -*Defined in [asset-swapper/src/types.ts:55](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/asset-swapper/src/types.ts#L55)* +*Defined in [asset-swapper/src/types.ts:53](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/asset-swapper/src/types.ts#L53)* ___ @@ -1796,7 +1762,7 @@ ___ • **methodAbi**: *`MethodAbi`* -*Defined in [asset-swapper/src/types.ts:56](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/asset-swapper/src/types.ts#L56)* +*Defined in [asset-swapper/src/types.ts:54](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/asset-swapper/src/types.ts#L54)* ___ @@ -1804,7 +1770,7 @@ ___ • **params**: *`T`* -*Defined in [asset-swapper/src/types.ts:53](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/asset-swapper/src/types.ts#L53)* +*Defined in [asset-swapper/src/types.ts:51](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/asset-swapper/src/types.ts#L51)* ___ @@ -1812,7 +1778,7 @@ ___ • **toAddress**: *string* -*Defined in [asset-swapper/src/types.ts:54](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/asset-swapper/src/types.ts#L54)* +*Defined in [asset-swapper/src/types.ts:52](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/asset-swapper/src/types.ts#L52)*
@@ -1841,7 +1807,7 @@ executeSwapQuoteOrThrowAsync: Executes a web3 transaction to swap for tokens wit ▸ **executeSwapQuoteOrThrowAsync**(`quote`: [SwapQuote](#swapquote), `opts`: `Partial`): *`Promise`* -*Defined in [asset-swapper/src/types.ts:147](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/asset-swapper/src/types.ts#L147)* +*Defined in [asset-swapper/src/types.ts:145](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/asset-swapper/src/types.ts#L145)* **Parameters:** @@ -1858,7 +1824,7 @@ ___ ▸ **getCalldataOrThrowAsync**(`quote`: [SwapQuote](#swapquote), `opts`: `Partial`): *`Promise`* -*Defined in [asset-swapper/src/types.ts:142](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/asset-swapper/src/types.ts#L142)* +*Defined in [asset-swapper/src/types.ts:140](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/asset-swapper/src/types.ts#L140)* **Parameters:** @@ -1875,7 +1841,7 @@ ___ ▸ **getSmartContractParamsOrThrowAsync**(`quote`: [SwapQuote](#swapquote), `opts`: `Partial`): *`Promise>`* -*Defined in [asset-swapper/src/types.ts:143](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/asset-swapper/src/types.ts#L143)* +*Defined in [asset-swapper/src/types.ts:141](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/asset-swapper/src/types.ts#L141)* **Parameters:** @@ -1890,16 +1856,16 @@ Name | Type | # Interface: SwapQuoteConsumerOpts -networkId: The networkId that the desired orders should be for. +chainId: The chainId that the desired orders should be for. ## Properties -### networkId +### chainId -• **networkId**: *number* +• **chainId**: *number* -*Defined in [asset-swapper/src/types.ts:154](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/asset-swapper/src/types.ts#L154)* +*Defined in [asset-swapper/src/types.ts:152](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/asset-swapper/src/types.ts#L152)*
@@ -1918,7 +1884,7 @@ Represents the options for executing a swap quote with SwapQuoteConsumer *Overrides [ForwarderSwapQuoteGetOutputOpts](_asset_swapper_src_types_.forwarderswapquotegetoutputopts.md).[ethAmount](#optional-ethamount)* -*Defined in [asset-swapper/src/types.ts:181](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/asset-swapper/src/types.ts#L181)* +*Defined in [asset-swapper/src/types.ts:179](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/asset-swapper/src/types.ts#L179)* ___ @@ -1930,7 +1896,7 @@ ___ *Overrides [ForwarderSwapQuoteGetOutputOpts](_asset_swapper_src_types_.forwarderswapquotegetoutputopts.md).[feePercentage](#feepercentage)* -*Defined in [asset-swapper/src/types.ts:179](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/asset-swapper/src/types.ts#L179)* +*Defined in [asset-swapper/src/types.ts:177](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/asset-swapper/src/types.ts#L177)* ___ @@ -1942,7 +1908,7 @@ ___ *Overrides [ForwarderSwapQuoteGetOutputOpts](_asset_swapper_src_types_.forwarderswapquotegetoutputopts.md).[feeRecipient](#feerecipient)* -*Defined in [asset-swapper/src/types.ts:180](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/asset-swapper/src/types.ts#L180)* +*Defined in [asset-swapper/src/types.ts:178](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/asset-swapper/src/types.ts#L178)* ___ @@ -1952,7 +1918,7 @@ ___ *Inherited from [SwapQuoteExecutionOptsBase](#interface-swapquoteexecutionoptsbase).[gasLimit](#optional-gaslimit)* -*Defined in [asset-swapper/src/types.ts:169](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/asset-swapper/src/types.ts#L169)* +*Defined in [asset-swapper/src/types.ts:167](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/asset-swapper/src/types.ts#L167)* ___ @@ -1962,7 +1928,7 @@ ___ *Inherited from [SwapQuoteExecutionOptsBase](#interface-swapquoteexecutionoptsbase).[gasPrice](#optional-gasprice)* -*Defined in [asset-swapper/src/types.ts:170](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/asset-swapper/src/types.ts#L170)* +*Defined in [asset-swapper/src/types.ts:168](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/asset-swapper/src/types.ts#L168)* ___ @@ -1972,7 +1938,7 @@ ___ *Inherited from [SwapQuoteExecutionOptsBase](#interface-swapquoteexecutionoptsbase).[takerAddress](#optional-takeraddress)* -*Defined in [asset-swapper/src/types.ts:168](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/asset-swapper/src/types.ts#L168)* +*Defined in [asset-swapper/src/types.ts:166](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/asset-swapper/src/types.ts#L166)* ___ @@ -1982,7 +1948,7 @@ ___ *Inherited from [SwapQuoteGetOutputOpts](#interface-swapquotegetoutputopts).[useExtensionContract](#useextensioncontract)* -*Defined in [asset-swapper/src/types.ts:196](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/asset-swapper/src/types.ts#L196)* +*Defined in [asset-swapper/src/types.ts:194](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/asset-swapper/src/types.ts#L194)*
@@ -1999,7 +1965,7 @@ gasPrice: Gas price in Wei to use for a transaction • **gasLimit**? : *undefined | number* -*Defined in [asset-swapper/src/types.ts:169](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/asset-swapper/src/types.ts#L169)* +*Defined in [asset-swapper/src/types.ts:167](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/asset-swapper/src/types.ts#L167)* ___ @@ -2007,7 +1973,7 @@ ___ • **gasPrice**? : *`BigNumber`* -*Defined in [asset-swapper/src/types.ts:170](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/asset-swapper/src/types.ts#L170)* +*Defined in [asset-swapper/src/types.ts:168](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/asset-swapper/src/types.ts#L168)* ___ @@ -2015,7 +1981,7 @@ ___ • **takerAddress**? : *undefined | string* -*Defined in [asset-swapper/src/types.ts:168](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/asset-swapper/src/types.ts#L168)* +*Defined in [asset-swapper/src/types.ts:166](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/asset-swapper/src/types.ts#L166)*
@@ -2033,7 +1999,7 @@ useConsumerType: If provided, defaults the SwapQuoteConsumer to create output co *Inherited from [ForwarderSwapQuoteGetOutputOpts](#interface-forwarderswapquotegetoutputopts).[ethAmount](#optional-ethamount)* -*Defined in [asset-swapper/src/types.ts:181](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/asset-swapper/src/types.ts#L181)* +*Defined in [asset-swapper/src/types.ts:179](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/asset-swapper/src/types.ts#L179)* ___ @@ -2043,7 +2009,7 @@ ___ *Inherited from [ForwarderSwapQuoteGetOutputOpts](#interface-forwarderswapquotegetoutputopts).[feePercentage](#feepercentage)* -*Defined in [asset-swapper/src/types.ts:179](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/asset-swapper/src/types.ts#L179)* +*Defined in [asset-swapper/src/types.ts:177](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/asset-swapper/src/types.ts#L177)* ___ @@ -2053,7 +2019,7 @@ ___ *Inherited from [ForwarderSwapQuoteGetOutputOpts](#interface-forwarderswapquotegetoutputopts).[feeRecipient](#feerecipient)* -*Defined in [asset-swapper/src/types.ts:180](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/asset-swapper/src/types.ts#L180)* +*Defined in [asset-swapper/src/types.ts:178](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/asset-swapper/src/types.ts#L178)* ___ @@ -2061,7 +2027,7 @@ ___ • **useExtensionContract**: *[ExtensionContractType](#enumeration-extensioncontracttype)* -*Defined in [asset-swapper/src/types.ts:196](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/asset-swapper/src/types.ts#L196)* +*Defined in [asset-swapper/src/types.ts:194](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/asset-swapper/src/types.ts#L194)*
@@ -2081,7 +2047,7 @@ Represents the options provided to a generic SwapQuoteConsumer • **feeTakerTokenAmount**: *`BigNumber`* -*Defined in [asset-swapper/src/types.ts:258](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/asset-swapper/src/types.ts#L258)* +*Defined in [asset-swapper/src/types.ts:256](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/asset-swapper/src/types.ts#L256)* ___ @@ -2089,7 +2055,7 @@ ___ • **makerTokenAmount**: *`BigNumber`* -*Defined in [asset-swapper/src/types.ts:261](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/asset-swapper/src/types.ts#L261)* +*Defined in [asset-swapper/src/types.ts:259](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/asset-swapper/src/types.ts#L259)* ___ @@ -2097,7 +2063,7 @@ ___ • **takerTokenAmount**: *`BigNumber`* -*Defined in [asset-swapper/src/types.ts:260](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/asset-swapper/src/types.ts#L260)* +*Defined in [asset-swapper/src/types.ts:258](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/asset-swapper/src/types.ts#L258)* ___ @@ -2105,7 +2071,7 @@ ___ • **totalTakerTokenAmount**: *`BigNumber`* -*Defined in [asset-swapper/src/types.ts:259](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/asset-swapper/src/types.ts#L259)* +*Defined in [asset-swapper/src/types.ts:257](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/asset-swapper/src/types.ts#L257)*
@@ -2121,7 +2087,7 @@ slippagePercentage: The percentage buffer to add to account for slippage. Affect • **shouldDisableRequestingFeeOrders**: *boolean* -*Defined in [asset-swapper/src/types.ts:269](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/asset-swapper/src/types.ts#L269)* +*Defined in [asset-swapper/src/types.ts:267](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/asset-swapper/src/types.ts#L267)* ___ @@ -2129,32 +2095,32 @@ ___ • **slippagePercentage**: *number* -*Defined in [asset-swapper/src/types.ts:270](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/asset-swapper/src/types.ts#L270)* +*Defined in [asset-swapper/src/types.ts:268](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/asset-swapper/src/types.ts#L268)*
# Interface: SwapQuoterOpts -networkId: The ethereum network id. Defaults to 1 (mainnet). +chainId: The ethereum chain id. Defaults to 1 (mainnet). orderRefreshIntervalMs: The interval in ms that getBuyQuoteAsync should trigger an refresh of orders and order states. Defaults to 10000ms (10s). expiryBufferMs: The number of seconds to add when calculating whether an order is expired or not. Defaults to 300s (5m). ## Properties -### expiryBufferMs +### chainId -• **expiryBufferMs**: *number* +• **chainId**: *number* -*Defined in [asset-swapper/src/types.ts:281](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/asset-swapper/src/types.ts#L281)* +*Defined in [asset-swapper/src/types.ts:277](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/asset-swapper/src/types.ts#L277)* ___ -### networkId +### expiryBufferMs -• **networkId**: *number* +• **expiryBufferMs**: *number* -*Defined in [asset-swapper/src/types.ts:279](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/asset-swapper/src/types.ts#L279)* +*Defined in [asset-swapper/src/types.ts:279](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/asset-swapper/src/types.ts#L279)* ___ @@ -2162,7 +2128,7 @@ ___ • **orderRefreshIntervalMs**: *number* -*Defined in [asset-swapper/src/types.ts:280](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/asset-swapper/src/types.ts#L280)* +*Defined in [asset-swapper/src/types.ts:278](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/asset-swapper/src/types.ts#L278)*
@@ -2205,7 +2171,7 @@ ___ • **components**? : *[DataItem](#class-dataitem)[]* -*Defined in [ethereum-types/src/index.ts:137](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L137)* +*Defined in [ethereum-types/src/index.ts:137](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L137)* ___ @@ -2213,7 +2179,7 @@ ___ • **name**: *string* -*Defined in [ethereum-types/src/index.ts:135](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L135)* +*Defined in [ethereum-types/src/index.ts:135](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L135)* ___ @@ -2221,7 +2187,7 @@ ___ • **type**: *string* -*Defined in [ethereum-types/src/index.ts:136](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L136)* +*Defined in [ethereum-types/src/index.ts:136](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L136)*
@@ -2240,7 +2206,7 @@ ___ • **isEIP1193**: *boolean* -*Defined in [ethereum-types/src/index.ts:73](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L73)* +*Defined in [ethereum-types/src/index.ts:73](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L73)* ## Methods @@ -2248,7 +2214,7 @@ ___ ▸ **on**(`event`: [EIP1193Event](#eip1193event), `listener`: function): *this* -*Defined in [ethereum-types/src/index.ts:75](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L75)* +*Defined in [ethereum-types/src/index.ts:75](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L75)* **Parameters:** @@ -2272,7 +2238,7 @@ ___ ▸ **send**(`method`: string, `params?`: any[]): *`Promise`* -*Defined in [ethereum-types/src/index.ts:74](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L74)* +*Defined in [ethereum-types/src/index.ts:74](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L74)* **Parameters:** @@ -2306,7 +2272,7 @@ Name | Type | ▸ **sendAsync**(`payload`: [JSONRPCRequestPayload](_ethereum_types_src_index_.jsonrpcrequestpayload.md), `callback`: [JSONRPCErrorCallback](#jsonrpcerrorcallback)): *void* -*Defined in [ethereum-types/src/index.ts:14](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L14)* +*Defined in [ethereum-types/src/index.ts:14](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L14)* **Parameters:** @@ -2330,7 +2296,7 @@ Name | Type | • **id**: *number* -*Defined in [ethereum-types/src/index.ts:330](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L330)* +*Defined in [ethereum-types/src/index.ts:330](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L330)* ___ @@ -2338,7 +2304,7 @@ ___ • **jsonrpc**: *string* -*Defined in [ethereum-types/src/index.ts:331](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L331)* +*Defined in [ethereum-types/src/index.ts:331](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L331)* ___ @@ -2346,7 +2312,7 @@ ___ • **method**: *string* -*Defined in [ethereum-types/src/index.ts:329](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L329)* +*Defined in [ethereum-types/src/index.ts:329](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L329)* ___ @@ -2354,7 +2320,7 @@ ___ • **params**: *any[]* -*Defined in [ethereum-types/src/index.ts:328](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L328)* +*Defined in [ethereum-types/src/index.ts:328](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L328)*
@@ -2367,7 +2333,7 @@ ___ • **code**: *number* -*Defined in [ethereum-types/src/index.ts:336](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L336)* +*Defined in [ethereum-types/src/index.ts:336](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L336)* ___ @@ -2375,7 +2341,7 @@ ___ • **message**: *string* -*Defined in [ethereum-types/src/index.ts:335](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L335)* +*Defined in [ethereum-types/src/index.ts:335](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L335)*
@@ -2388,7 +2354,7 @@ ___ • **error**? : *[JSONRPCResponseError](#class-jsonrpcresponseerror)* -*Defined in [ethereum-types/src/index.ts:343](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L343)* +*Defined in [ethereum-types/src/index.ts:343](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L343)* ___ @@ -2396,7 +2362,7 @@ ___ • **id**: *number* -*Defined in [ethereum-types/src/index.ts:341](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L341)* +*Defined in [ethereum-types/src/index.ts:341](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L341)* ___ @@ -2404,7 +2370,7 @@ ___ • **jsonrpc**: *string* -*Defined in [ethereum-types/src/index.ts:342](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L342)* +*Defined in [ethereum-types/src/index.ts:342](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L342)* ___ @@ -2412,7 +2378,7 @@ ___ • **result**: *any* -*Defined in [ethereum-types/src/index.ts:340](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L340)* +*Defined in [ethereum-types/src/index.ts:340](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L340)*
@@ -2431,7 +2397,7 @@ ___ • **constant**: *boolean* -*Defined in [ethereum-types/src/index.ts:94](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L94)* +*Defined in [ethereum-types/src/index.ts:94](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L94)* ___ @@ -2439,7 +2405,7 @@ ___ • **inputs**: *[DataItem](#class-dataitem)[]* -*Defined in [ethereum-types/src/index.ts:92](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L92)* +*Defined in [ethereum-types/src/index.ts:92](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L92)* ___ @@ -2447,7 +2413,7 @@ ___ • **name**: *string* -*Defined in [ethereum-types/src/index.ts:91](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L91)* +*Defined in [ethereum-types/src/index.ts:91](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L91)* ___ @@ -2455,7 +2421,7 @@ ___ • **outputs**: *[DataItem](#class-dataitem)[]* -*Defined in [ethereum-types/src/index.ts:93](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L93)* +*Defined in [ethereum-types/src/index.ts:93](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L93)* ___ @@ -2463,7 +2429,7 @@ ___ • **payable**: *boolean* -*Defined in [ethereum-types/src/index.ts:96](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L96)* +*Defined in [ethereum-types/src/index.ts:96](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L96)* ___ @@ -2471,7 +2437,7 @@ ___ • **stateMutability**: *[StateMutability](#statemutability)* -*Defined in [ethereum-types/src/index.ts:95](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L95)* +*Defined in [ethereum-types/src/index.ts:95](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L95)* ___ @@ -2479,7 +2445,7 @@ ___ • **type**: *string* -*Defined in [ethereum-types/src/index.ts:90](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L90)* +*Defined in [ethereum-types/src/index.ts:90](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L90)*
@@ -2513,18 +2479,46 @@ ___ -# Interface: TupleDataItem +# Class: InsufficientAssetLiquidityError +Error class representing insufficient asset liquidity -## Properties -### components +## Constructors + + + +\+ **new InsufficientAssetLiquidityError**(`amountAvailableToFill`: `BigNumber`): *[InsufficientAssetLiquidityError](#class-insufficientassetliquidityerror)* + +*Defined in [asset-swapper/src/errors.ts:12](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/asset-swapper/src/errors.ts#L12)* + +**Parameters:** + +Name | Type | Description | +------ | ------ | ------ | +`amountAvailableToFill` | `BigNumber` | The amount availabe to fill (in base units) factoring in slippage | + +**Returns:** *[InsufficientAssetLiquidityError](#class-insufficientassetliquidityerror)* + +## Properties + +### amountAvailableToFill + +• **amountAvailableToFill**: *`BigNumber`* + +*Defined in [asset-swapper/src/errors.ts:12](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/asset-swapper/src/errors.ts#L12)* + +The amount availabe to fill (in base units) factoring in slippage. + +___ + +### message + +• **message**: *string* + -• **components**: *[DataItem](#class-dataitem)[]* -*Overrides [DataItem](_ethereum_types_src_index_.dataitem.md).[components](#optional-components)* -*Defined in [ethereum-types/src/index.ts:141](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L141)* ___ @@ -2532,19 +2526,29 @@ ___ • **name**: *string* -*Inherited from [DataItem](#interface-dataitem).[name](#name)* -*Defined in [ethereum-types/src/index.ts:135](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L135)* + + ___ -### type +### `Optional` stack + +• **stack**? : *undefined | string* + + + +*Overrides void* -• **type**: *string* -*Inherited from [DataItem](#interface-dataitem).[type](#type)* -*Defined in [ethereum-types/src/index.ts:136](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L136)* +___ + +### `Static` Error + +▪ **Error**: *`ErrorConstructor`* + +
@@ -2565,7 +2569,7 @@ This interface allowed sending synchonous requests, support for which was later ▸ **send**(`payload`: [JSONRPCRequestPayload](_ethereum_types_src_index_.jsonrpcrequestpayload.md)): *[JSONRPCResponsePayload](#class-jsonrpcresponsepayload)* -*Defined in [ethereum-types/src/index.ts:45](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L45)* +*Defined in [ethereum-types/src/index.ts:45](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L45)* **Parameters:** @@ -2581,7 +2585,7 @@ ___ ▸ **sendAsync**(`payload`: [JSONRPCRequestPayload](_ethereum_types_src_index_.jsonrpcrequestpayload.md), `callback`: [JSONRPCErrorCallback](#jsonrpcerrorcallback)): *void* -*Defined in [ethereum-types/src/index.ts:44](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L44)* +*Defined in [ethereum-types/src/index.ts:44](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L44)* **Parameters:** @@ -2607,7 +2611,7 @@ before the first attempts to conform to EIP1193 ▸ **send**(`payload`: [JSONRPCRequestPayload](_ethereum_types_src_index_.jsonrpcrequestpayload.md), `callback`: [JSONRPCErrorCallback](#jsonrpcerrorcallback)): *void* -*Defined in [ethereum-types/src/index.ts:54](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L54)* +*Defined in [ethereum-types/src/index.ts:54](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L54)* **Parameters:** @@ -2633,7 +2637,7 @@ however it does not conform entirely. ▸ **send**(`method`: string, `params?`: any[]): *`Promise`* -*Defined in [ethereum-types/src/index.ts:63](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L63)* +*Defined in [ethereum-types/src/index.ts:63](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L63)* **Parameters:** @@ -2659,7 +2663,7 @@ add here • **isMetaMask**? : *undefined | false | true* -*Defined in [ethereum-types/src/index.ts:31](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L31)* +*Defined in [ethereum-types/src/index.ts:31](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L31)* ___ @@ -2667,7 +2671,7 @@ ___ • **isParity**? : *undefined | false | true* -*Defined in [ethereum-types/src/index.ts:32](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L32)* +*Defined in [ethereum-types/src/index.ts:32](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L32)* ___ @@ -2675,7 +2679,7 @@ ___ • **isZeroExProvider**? : *undefined | false | true* -*Defined in [ethereum-types/src/index.ts:30](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L30)* +*Defined in [ethereum-types/src/index.ts:30](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L30)* ## Methods @@ -2683,7 +2687,7 @@ ___ ▸ **enable**(): *`Promise`* -*Defined in [ethereum-types/src/index.ts:34](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L34)* +*Defined in [ethereum-types/src/index.ts:34](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L34)* **Returns:** *`Promise`* @@ -2693,7 +2697,7 @@ ___ ▸ **sendAsync**(`payload`: [JSONRPCRequestPayload](_ethereum_types_src_index_.jsonrpcrequestpayload.md), `callback`: [JSONRPCErrorCallback](#jsonrpcerrorcallback)): *void* -*Defined in [ethereum-types/src/index.ts:35](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L35)* +*Defined in [ethereum-types/src/index.ts:35](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L35)* **Parameters:** @@ -2710,7 +2714,7 @@ ___ ▸ **stop**(): *void* -*Defined in [ethereum-types/src/index.ts:33](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L33)* +*Defined in [ethereum-types/src/index.ts:33](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L33)* **Returns:** *void* @@ -2725,7 +2729,7 @@ ___ • **accepted**: *`SignedOrder`[]* -*Defined in [orderbook/src/types.ts:15](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/orderbook/src/types.ts#L15)* +*Defined in [orderbook/src/types.ts:15](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/orderbook/src/types.ts#L15)* ___ @@ -2733,7 +2737,7 @@ ___ • **rejected**: *[RejectedOrder](#class-rejectedorder)[]* -*Defined in [orderbook/src/types.ts:16](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/orderbook/src/types.ts#L16)* +*Defined in [orderbook/src/types.ts:16](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/orderbook/src/types.ts#L16)*
@@ -2746,7 +2750,7 @@ ___ • **added**: *`APIOrder`[]* -*Defined in [orderbook/src/types.ts:6](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/orderbook/src/types.ts#L6)* +*Defined in [orderbook/src/types.ts:6](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/orderbook/src/types.ts#L6)* ___ @@ -2754,7 +2758,7 @@ ___ • **assetPairKey**: *string* -*Defined in [orderbook/src/types.ts:5](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/orderbook/src/types.ts#L5)* +*Defined in [orderbook/src/types.ts:5](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/orderbook/src/types.ts#L5)* ___ @@ -2762,7 +2766,7 @@ ___ • **removed**: *`APIOrder`[]* -*Defined in [orderbook/src/types.ts:7](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/orderbook/src/types.ts#L7)* +*Defined in [orderbook/src/types.ts:7](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/orderbook/src/types.ts#L7)*
@@ -2777,7 +2781,7 @@ Constructor options for a Mesh Order Provider • **websocketEndpoint**: *string* -*Defined in [orderbook/src/types.ts:52](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/orderbook/src/types.ts#L52)* +*Defined in [orderbook/src/types.ts:50](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/orderbook/src/types.ts#L50)* ___ @@ -2785,7 +2789,7 @@ ___ • **wsOpts**? : *`WSOpts`* -*Defined in [orderbook/src/types.ts:54](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/orderbook/src/types.ts#L54)* +*Defined in [orderbook/src/types.ts:52](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/orderbook/src/types.ts#L52)*
@@ -2798,7 +2802,7 @@ ___ • **message**: *string* -*Defined in [orderbook/src/types.ts:11](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/orderbook/src/types.ts#L11)* +*Defined in [orderbook/src/types.ts:11](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/orderbook/src/types.ts#L11)* ___ @@ -2806,7 +2810,7 @@ ___ • **order**: *`SignedOrder`* -*Defined in [orderbook/src/types.ts:12](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/orderbook/src/types.ts#L12)* +*Defined in [orderbook/src/types.ts:12](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/orderbook/src/types.ts#L12)*
@@ -2817,19 +2821,19 @@ Constructor options for a SRA Polling Order Provider ## Properties -### httpEndpoint +### `Optional` chainId -• **httpEndpoint**: *string* +• **chainId**? : *undefined | number* -*Defined in [orderbook/src/types.ts:38](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/orderbook/src/types.ts#L38)* +*Defined in [orderbook/src/types.ts:42](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/orderbook/src/types.ts#L42)* ___ -### `Optional` networkId +### httpEndpoint -• **networkId**? : *undefined | number* +• **httpEndpoint**: *string* -*Defined in [orderbook/src/types.ts:44](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/orderbook/src/types.ts#L44)* +*Defined in [orderbook/src/types.ts:36](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/orderbook/src/types.ts#L36)* ___ @@ -2837,7 +2841,7 @@ ___ • **perPage**? : *undefined | number* -*Defined in [orderbook/src/types.ts:42](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/orderbook/src/types.ts#L42)* +*Defined in [orderbook/src/types.ts:40](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/orderbook/src/types.ts#L40)* ___ @@ -2845,7 +2849,7 @@ ___ • **pollingIntervalMs**: *number* -*Defined in [orderbook/src/types.ts:40](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/orderbook/src/types.ts#L40)* +*Defined in [orderbook/src/types.ts:38](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/orderbook/src/types.ts#L38)*
@@ -2860,15 +2864,7 @@ Constructor options for a SRA Websocket Order Provider • **httpEndpoint**: *string* -*Defined in [orderbook/src/types.ts:26](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/orderbook/src/types.ts#L26)* - -___ - -### `Optional` networkId - -• **networkId**? : *undefined | number* - -*Defined in [orderbook/src/types.ts:30](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/orderbook/src/types.ts#L30)* +*Defined in [orderbook/src/types.ts:26](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/orderbook/src/types.ts#L26)* ___ @@ -2876,7 +2872,7 @@ ___ • **websocketEndpoint**: *string* -*Defined in [orderbook/src/types.ts:28](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/orderbook/src/types.ts#L28)* +*Defined in [orderbook/src/types.ts:28](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/orderbook/src/types.ts#L28)*
@@ -2889,7 +2885,7 @@ ___ • **metaData**: *object* -*Defined in [types/src/index.ts:408](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/types/src/index.ts#L408)* +*Defined in [types/src/index.ts:408](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/types/src/index.ts#L408)* ___ @@ -2897,7 +2893,7 @@ ___ • **order**: *[SignedOrder](#class-signedorder)* -*Defined in [types/src/index.ts:407](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/types/src/index.ts#L407)* +*Defined in [types/src/index.ts:407](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/types/src/index.ts#L407)*
@@ -2912,7 +2908,7 @@ ___ • **assetData**: *string* -*Defined in [types/src/index.ts:424](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/types/src/index.ts#L424)* +*Defined in [types/src/index.ts:424](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/types/src/index.ts#L424)* ___ @@ -2920,7 +2916,7 @@ ___ • **maxAmount**: *`BigNumber`* -*Defined in [types/src/index.ts:426](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/types/src/index.ts#L426)* +*Defined in [types/src/index.ts:426](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/types/src/index.ts#L426)* ___ @@ -2928,7 +2924,7 @@ ___ • **minAmount**: *`BigNumber`* -*Defined in [types/src/index.ts:425](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/types/src/index.ts#L425)* +*Defined in [types/src/index.ts:425](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/types/src/index.ts#L425)* ___ @@ -2936,7 +2932,7 @@ ___ • **precision**: *number* -*Defined in [types/src/index.ts:427](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/types/src/index.ts#L427)* +*Defined in [types/src/index.ts:427](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/types/src/index.ts#L427)*
@@ -2949,7 +2945,7 @@ ___ • **assetDataA**: *[Asset](#class-asset)* -*Defined in [types/src/index.ts:419](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/types/src/index.ts#L419)* +*Defined in [types/src/index.ts:419](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/types/src/index.ts#L419)* ___ @@ -2957,7 +2953,7 @@ ___ • **assetDataB**: *[Asset](#class-asset)* -*Defined in [types/src/index.ts:420](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/types/src/index.ts#L420)* +*Defined in [types/src/index.ts:420](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/types/src/index.ts#L420)*
@@ -3052,6 +3048,8 @@ ___ + + @@ -3066,7 +3064,7 @@ ___ *Inherited from [Order](#interface-order).[chainId](#chainid)* -*Defined in [types/src/index.ts:14](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/types/src/index.ts#L14)* +*Defined in [types/src/index.ts:14](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/types/src/index.ts#L14)* ___ @@ -3076,7 +3074,7 @@ ___ *Inherited from [Order](#interface-order).[exchangeAddress](#exchangeaddress)* -*Defined in [types/src/index.ts:15](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/types/src/index.ts#L15)* +*Defined in [types/src/index.ts:15](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/types/src/index.ts#L15)* ___ @@ -3086,7 +3084,7 @@ ___ *Inherited from [Order](#interface-order).[expirationTimeSeconds](#expirationtimeseconds)* -*Defined in [types/src/index.ts:24](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/types/src/index.ts#L24)* +*Defined in [types/src/index.ts:24](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/types/src/index.ts#L24)* ___ @@ -3096,7 +3094,7 @@ ___ *Inherited from [Order](#interface-order).[feeRecipientAddress](#feerecipientaddress)* -*Defined in [types/src/index.ts:18](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/types/src/index.ts#L18)* +*Defined in [types/src/index.ts:18](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/types/src/index.ts#L18)* ___ @@ -3106,7 +3104,7 @@ ___ *Inherited from [Order](#interface-order).[makerAddress](#makeraddress)* -*Defined in [types/src/index.ts:16](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/types/src/index.ts#L16)* +*Defined in [types/src/index.ts:16](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/types/src/index.ts#L16)* ___ @@ -3116,7 +3114,7 @@ ___ *Inherited from [Order](#interface-order).[makerAssetAmount](#makerassetamount)* -*Defined in [types/src/index.ts:20](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/types/src/index.ts#L20)* +*Defined in [types/src/index.ts:20](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/types/src/index.ts#L20)* ___ @@ -3126,7 +3124,7 @@ ___ *Inherited from [Order](#interface-order).[makerAssetData](#makerassetdata)* -*Defined in [types/src/index.ts:26](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/types/src/index.ts#L26)* +*Defined in [types/src/index.ts:26](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/types/src/index.ts#L26)* ___ @@ -3136,7 +3134,7 @@ ___ *Inherited from [Order](#interface-order).[makerFee](#makerfee)* -*Defined in [types/src/index.ts:22](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/types/src/index.ts#L22)* +*Defined in [types/src/index.ts:22](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/types/src/index.ts#L22)* ___ @@ -3146,7 +3144,7 @@ ___ *Inherited from [Order](#interface-order).[makerFeeAssetData](#makerfeeassetdata)* -*Defined in [types/src/index.ts:28](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/types/src/index.ts#L28)* +*Defined in [types/src/index.ts:28](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/types/src/index.ts#L28)* ___ @@ -3156,7 +3154,7 @@ ___ *Inherited from [Order](#interface-order).[salt](#salt)* -*Defined in [types/src/index.ts:25](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/types/src/index.ts#L25)* +*Defined in [types/src/index.ts:25](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/types/src/index.ts#L25)* ___ @@ -3166,7 +3164,7 @@ ___ *Inherited from [Order](#interface-order).[senderAddress](#senderaddress)* -*Defined in [types/src/index.ts:19](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/types/src/index.ts#L19)* +*Defined in [types/src/index.ts:19](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/types/src/index.ts#L19)* ___ @@ -3174,7 +3172,7 @@ ___ • **signature**: *string* -*Defined in [types/src/index.ts:33](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/types/src/index.ts#L33)* +*Defined in [types/src/index.ts:33](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/types/src/index.ts#L33)* ___ @@ -3184,7 +3182,7 @@ ___ *Inherited from [Order](#interface-order).[takerAddress](#takeraddress)* -*Defined in [types/src/index.ts:17](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/types/src/index.ts#L17)* +*Defined in [types/src/index.ts:17](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/types/src/index.ts#L17)* ___ @@ -3194,7 +3192,7 @@ ___ *Inherited from [Order](#interface-order).[takerAssetAmount](#takerassetamount)* -*Defined in [types/src/index.ts:21](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/types/src/index.ts#L21)* +*Defined in [types/src/index.ts:21](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/types/src/index.ts#L21)* ___ @@ -3204,7 +3202,7 @@ ___ *Inherited from [Order](#interface-order).[takerAssetData](#takerassetdata)* -*Defined in [types/src/index.ts:27](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/types/src/index.ts#L27)* +*Defined in [types/src/index.ts:27](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/types/src/index.ts#L27)* ___ @@ -3214,7 +3212,7 @@ ___ *Inherited from [Order](#interface-order).[takerFee](#takerfee)* -*Defined in [types/src/index.ts:23](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/types/src/index.ts#L23)* +*Defined in [types/src/index.ts:23](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/types/src/index.ts#L23)* ___ @@ -3224,7 +3222,7 @@ ___ *Inherited from [Order](#interface-order).[takerFeeAssetData](#takerfeeassetdata)* -*Defined in [types/src/index.ts:29](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/types/src/index.ts#L29)* +*Defined in [types/src/index.ts:29](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/types/src/index.ts#L29)*
@@ -3256,6 +3254,33 @@ ___ + + + + + + + + + + + + + + + + + + + + + +## Type aliases + + + + + @@ -3301,7 +3326,7 @@ ___ Ƭ **SwapQuote**: *[MarketBuySwapQuote](#interface-marketbuyswapquote) | [MarketSellSwapQuote](#interface-marketsellswapquote)* -*Defined in [asset-swapper/src/types.ts:184](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/asset-swapper/src/types.ts#L184)* +*Defined in [asset-swapper/src/types.ts:182](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/asset-swapper/src/types.ts#L182)* ___ @@ -3320,7 +3345,7 @@ ___ Ƭ **ConstructorStateMutability**: *"nonpayable" | "payable"* -*Defined in [ethereum-types/src/index.ts:84](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L84)* +*Defined in [ethereum-types/src/index.ts:84](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L84)* ___ @@ -3334,7 +3359,7 @@ ___ Ƭ **EIP1193Event**: *"accountsChanged" | "networkChanged" | "close" | "connect" | "notification"* -*Defined in [ethereum-types/src/index.ts:70](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L70)* +*Defined in [ethereum-types/src/index.ts:70](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L70)* Interface for providers that conform to EIP 1193 Source: https://github.com/ethereum/EIPs/blob/master/EIPS/eip-1193.md @@ -3351,7 +3376,7 @@ ___ Ƭ **JSONRPCErrorCallback**: *function* -*Defined in [ethereum-types/src/index.ts:3](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L3)* +*Defined in [ethereum-types/src/index.ts:3](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L3)* #### Type declaration: @@ -3378,7 +3403,7 @@ ___ Ƭ **StateMutability**: *"pure" | "view" | [ConstructorStateMutability](#constructorstatemutability)* -*Defined in [ethereum-types/src/index.ts:85](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L85)* +*Defined in [ethereum-types/src/index.ts:85](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L85)* ___ @@ -3386,7 +3411,7 @@ ___ Ƭ **SupportedProvider**: *[Web3JsProvider](_ethereum_types_src_index_.md#web3jsprovider) | [GanacheProvider](#interface-ganacheprovider) | [EIP1193Provider](#interface-eip1193provider) | [ZeroExProvider](#interface-zeroexprovider)* -*Defined in [ethereum-types/src/index.ts:9](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L9)* +*Defined in [ethereum-types/src/index.ts:9](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L9)* Do not create your own provider. Use an existing provider from a Web3 or ProviderEngine library Read more about Providers in the guides section of the 0x docs. @@ -3401,7 +3426,7 @@ ___ Ƭ **Web3JsProvider**: *[Web3JsV1Provider](#interface-web3jsv1provider) | [Web3JsV2Provider](#interface-web3jsv2provider) | [Web3JsV3Provider](#interface-web3jsv3provider)* -*Defined in [ethereum-types/src/index.ts:11](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L11)* +*Defined in [ethereum-types/src/index.ts:11](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L11)*
@@ -3414,7 +3439,7 @@ ___ • **DEFAULT_TOKEN_PRECISION**: *`18`* = 18 -*Defined in [orderbook/src/order_provider/base_order_provider.ts:9](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/orderbook/src/order_provider/base_order_provider.ts#L9)* +*Defined in [orderbook/src/order_provider/base_order_provider.ts:9](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/orderbook/src/order_provider/base_order_provider.ts#L9)*
@@ -3437,34 +3462,3 @@ ___ - - - -## Type aliases - - - - - - - - - - - - - - - - - - - - - - - - - -
- diff --git a/packages/asset-swapper/package.json b/packages/asset-swapper/package.json index ab1e33e321..99143ed144 100644 --- a/packages/asset-swapper/package.json +++ b/packages/asset-swapper/package.json @@ -1,6 +1,6 @@ { "name": "@0x/asset-swapper", - "version": "2.1.0-beta.0", + "version": "2.1.0-beta.1", "engines": { "node": ">=6.12" }, @@ -40,28 +40,28 @@ }, "homepage": "https://0x.org/asset-swapper", "dependencies": { - "@0x/assert": "^2.2.0-beta.0", - "@0x/connect": "^5.1.0-beta.0", - "@0x/contract-addresses": "^3.3.0-beta.0", - "@0x/contract-wrappers": "^12.2.0-beta.0", - "@0x/dev-utils": "^2.4.0-beta.0", - "@0x/json-schemas": "^4.1.0-beta.0", - "@0x/migrations": "^4.4.0-beta.0", - "@0x/order-utils": "^8.5.0-beta.0", - "@0x/orderbook": "^0.1.0-beta.0", - "@0x/subproviders": "^5.1.0-beta.0", - "@0x/types": "^2.5.0-beta.0", - "@0x/typescript-typings": "^4.4.0-beta.0", - "@0x/utils": "^4.6.0-beta.0", - "@0x/web3-wrapper": "^6.1.0-beta.0", - "ethereum-types": "^2.2.0-beta.0", + "@0x/assert": "^2.2.0-beta.1", + "@0x/connect": "^5.1.0-beta.1", + "@0x/contract-addresses": "^3.3.0-beta.2", + "@0x/contract-wrappers": "^12.2.0-beta.1", + "@0x/dev-utils": "^2.4.0-beta.1", + "@0x/json-schemas": "^4.1.0-beta.1", + "@0x/migrations": "^4.4.0-beta.1", + "@0x/order-utils": "^8.5.0-beta.1", + "@0x/orderbook": "^0.1.0-beta.1", + "@0x/subproviders": "^5.1.0-beta.1", + "@0x/types": "^2.5.0-beta.1", + "@0x/typescript-typings": "^4.4.0-beta.1", + "@0x/utils": "^4.6.0-beta.1", + "@0x/web3-wrapper": "^6.1.0-beta.1", + "ethereum-types": "^2.2.0-beta.1", "lodash": "^4.17.11" }, "devDependencies": { - "@0x/contracts-test-utils": "^3.2.0-beta.0", + "@0x/contracts-test-utils": "^3.2.0-beta.1", "@0x/mesh-rpc-client": "^4.0.1-beta", "@0x/ts-doc-gen": "^0.0.22", - "@0x/tslint-config": "^3.0.1", + "@0x/tslint-config": "^3.1.0-beta.1", "@types/lodash": "4.14.104", "@types/mocha": "^5.2.7", "@types/node": "*", diff --git a/packages/asset-swapper/src/swap_quoter.ts b/packages/asset-swapper/src/swap_quoter.ts index 65e24e3d9f..5d2d39bd8c 100644 --- a/packages/asset-swapper/src/swap_quoter.ts +++ b/packages/asset-swapper/src/swap_quoter.ts @@ -69,7 +69,6 @@ export class SwapQuoter { httpEndpoint: sraApiUrl, pollingIntervalMs: options.orderRefreshIntervalMs || constants.DEFAULT_SWAP_QUOTER_OPTS.orderRefreshIntervalMs, - chainId: options.chainId || constants.DEFAULT_SWAP_QUOTER_OPTS.chainId, perPage: options.perPage || constants.DEFAULT_PER_PAGE, }); const swapQuoter = new SwapQuoter(provider, orderbook, options); @@ -97,7 +96,6 @@ export class SwapQuoter { const orderbook = Orderbook.getOrderbookForWebsocketProvider({ httpEndpoint: sraApiUrl, websocketEndpoint: sraWebsocketAPIUrl, - chainId: options.chainId, }); const swapQuoter = new SwapQuoter(provider, orderbook, options); return swapQuoter; diff --git a/packages/asset-swapper/src/types.ts b/packages/asset-swapper/src/types.ts index 29ca05c272..1015b3d243 100644 --- a/packages/asset-swapper/src/types.ts +++ b/packages/asset-swapper/src/types.ts @@ -5,12 +5,10 @@ import { MethodAbi } from 'ethereum-types'; /** * makerAssetData: The assetData representing the desired makerAsset. * takerAssetData: The assetData representing the desired takerAsset. - * chainId: The chainId that the desired orders should be for. */ export interface OrderProviderRequest { makerAssetData: string; takerAssetData: string; - chainId: number; } /** diff --git a/packages/asset-swapper/test/forwarder_swap_quote_consumer_test.ts b/packages/asset-swapper/test/forwarder_swap_quote_consumer_test.ts index 6de57242e7..2cdbd90386 100644 --- a/packages/asset-swapper/test/forwarder_swap_quote_consumer_test.ts +++ b/packages/asset-swapper/test/forwarder_swap_quote_consumer_test.ts @@ -77,7 +77,7 @@ describe('ForwarderSwapQuoteConsumer', () => { beforeEach(async () => { await blockchainLifecycle.startAsync(); const UNLIMITED_ALLOWANCE = UNLIMITED_ALLOWANCE_IN_BASE_UNITS; - erc20ProxyAddress = contractWrappers.erc20Proxy.address; + erc20ProxyAddress = contractAddresses.erc20Proxy; const totalFillableAmount = FILLABLE_AMOUNTS.reduce( (a: BigNumber, c: BigNumber) => a.plus(c), diff --git a/packages/asset-swapper/test/swap_quote_calculator_test.ts b/packages/asset-swapper/test/swap_quote_calculator_test.ts index eafa176a15..a46ebd3c75 100644 --- a/packages/asset-swapper/test/swap_quote_calculator_test.ts +++ b/packages/asset-swapper/test/swap_quote_calculator_test.ts @@ -33,12 +33,14 @@ describe('swapQuoteCalculator', () => { // generate one order for fees // the fee order has a rate of 1 ZRX / WETH with no taker fee and has 100 ZRX left to fill (completely fillable) firstOrder = orderFactory.createSignedOrderFromPartial({ + chainId: 42, makerAssetAmount: new BigNumber(400), takerAssetAmount: new BigNumber(100), takerFee: new BigNumber(200), }); firstRemainingFillAmount = new BigNumber(200); secondOrder = orderFactory.createSignedOrderFromPartial({ + chainId: 42, makerAssetAmount: new BigNumber(200), takerAssetAmount: new BigNumber(100), takerFee: new BigNumber(100), @@ -49,6 +51,7 @@ describe('swapQuoteCalculator', () => { remainingFillableMakerAssetAmounts: [firstRemainingFillAmount, secondRemainingFillAmount], }; const smallFeeOrder = orderFactory.createSignedOrderFromPartial({ + chainId: 42, makerAssetAmount: new BigNumber(100), takerAssetAmount: new BigNumber(100), }); @@ -57,6 +60,7 @@ describe('swapQuoteCalculator', () => { remainingFillableMakerAssetAmounts: [smallFeeOrder.makerAssetAmount], }; const largeFeeOrder = orderFactory.createSignedOrderFromPartial({ + chainId: 42, makerAssetAmount: new BigNumber(113), takerAssetAmount: new BigNumber(200), takerFee: new BigNumber(11), @@ -132,6 +136,7 @@ describe('swapQuoteCalculator', () => { }); it('should throw if not enough taker asset liquidity (completely fillable order)', () => { const completelyFillableOrder = orderFactory.createSignedOrderFromPartial({ + chainId: 42, makerAssetAmount: new BigNumber(123), takerAssetAmount: new BigNumber(80), takerFee: new BigNumber(200), @@ -154,6 +159,7 @@ describe('swapQuoteCalculator', () => { }); it('should throw with 1 amount available if no slippage', () => { const smallOrder = orderFactory.createSignedOrderFromPartial({ + chainId: 42, makerAssetAmount: new BigNumber(1), takerAssetAmount: new BigNumber(1), takerFee: new BigNumber(0), @@ -172,6 +178,7 @@ describe('swapQuoteCalculator', () => { }); it('should throw with 0 available to fill if amount rounds to 0', () => { const smallOrder = orderFactory.createSignedOrderFromPartial({ + chainId: 42, makerAssetAmount: new BigNumber(1), takerAssetAmount: new BigNumber(1), takerFee: new BigNumber(0), @@ -391,12 +398,14 @@ describe('swapQuoteCalculator', () => { // generate one order for fees // the fee order has a rate of 1 ZRX / WETH with no taker fee and has 100 ZRX left to fill (completely fillable) firstOrder = orderFactory.createSignedOrderFromPartial({ + chainId: 42, makerAssetAmount: new BigNumber(400), takerAssetAmount: new BigNumber(100), takerFee: new BigNumber(200), }); firstRemainingFillAmount = new BigNumber(200); secondOrder = orderFactory.createSignedOrderFromPartial({ + chainId: 42, makerAssetAmount: new BigNumber(200), takerAssetAmount: new BigNumber(100), takerFee: new BigNumber(100), @@ -407,6 +416,7 @@ describe('swapQuoteCalculator', () => { remainingFillableMakerAssetAmounts: [firstRemainingFillAmount, secondRemainingFillAmount], }; const smallFeeOrder = orderFactory.createSignedOrderFromPartial({ + chainId: 42, makerAssetAmount: new BigNumber(100), takerAssetAmount: new BigNumber(100), }); @@ -415,6 +425,7 @@ describe('swapQuoteCalculator', () => { remainingFillableMakerAssetAmounts: [smallFeeOrder.makerAssetAmount], }; const largeFeeOrder = orderFactory.createSignedOrderFromPartial({ + chainId: 42, makerAssetAmount: new BigNumber(113), takerAssetAmount: new BigNumber(200), takerFee: new BigNumber(11), @@ -490,6 +501,7 @@ describe('swapQuoteCalculator', () => { }); it('should throw if not enough maker asset liquidity (completely fillable order)', () => { const completelyFillableOrder = orderFactory.createSignedOrderFromPartial({ + chainId: 42, makerAssetAmount: new BigNumber(123), takerAssetAmount: new BigNumber(100), takerFee: new BigNumber(200), @@ -512,6 +524,7 @@ describe('swapQuoteCalculator', () => { }); it('should throw with 1 amount available if no slippage', () => { const smallOrder = orderFactory.createSignedOrderFromPartial({ + chainId: 42, makerAssetAmount: new BigNumber(1), takerAssetAmount: new BigNumber(1), takerFee: new BigNumber(0), @@ -530,6 +543,7 @@ describe('swapQuoteCalculator', () => { }); it('should throw with 0 available to fill if amount rounds to 0', () => { const smallOrder = orderFactory.createSignedOrderFromPartial({ + chainId: 42, makerAssetAmount: new BigNumber(1), takerAssetAmount: new BigNumber(1), takerFee: new BigNumber(0), diff --git a/packages/asset-swapper/test/swap_quote_consumer_test.ts b/packages/asset-swapper/test/swap_quote_consumer_test.ts index d7682ebbd8..69cc975158 100644 --- a/packages/asset-swapper/test/swap_quote_consumer_test.ts +++ b/packages/asset-swapper/test/swap_quote_consumer_test.ts @@ -71,7 +71,7 @@ describe('SwapQuoteConsumer', () => { beforeEach(async () => { await blockchainLifecycle.startAsync(); const UNLIMITED_ALLOWANCE = UNLIMITED_ALLOWANCE_IN_BASE_UNITS; - erc20ProxyAddress = contractWrappers.erc20Proxy.address; + erc20ProxyAddress = contractAddresses.erc20Proxy; const totalFillableAmount = FILLABLE_AMOUNTS.reduce( (a: BigNumber, c: BigNumber) => a.plus(c), diff --git a/packages/asset-swapper/test/swap_quoter_test.ts b/packages/asset-swapper/test/swap_quoter_test.ts index 7532356660..8f3b4cd6c5 100644 --- a/packages/asset-swapper/test/swap_quoter_test.ts +++ b/packages/asset-swapper/test/swap_quoter_test.ts @@ -155,10 +155,12 @@ describe('SwapQuoter', () => { const sellTwoTokensFor1Weth: SignedOrder = orderFactory.createSignedOrderFromPartial({ makerAssetAmount: baseUnitAmount(2), takerAssetAmount: baseUnitAmount(1, WETH_DECIMALS), + chainId: 42, }); const sellTenTokensFor10Weth: SignedOrder = orderFactory.createSignedOrderFromPartial({ makerAssetAmount: baseUnitAmount(10), takerAssetAmount: baseUnitAmount(10, WETH_DECIMALS), + chainId: 42, }); beforeEach(() => { diff --git a/packages/asset-swapper/test/utils/swap_quote.ts b/packages/asset-swapper/test/utils/swap_quote.ts index fcf4ca03cc..46bc8b0e2f 100644 --- a/packages/asset-swapper/test/utils/swap_quote.ts +++ b/packages/asset-swapper/test/utils/swap_quote.ts @@ -46,6 +46,7 @@ export const getPartialSignedOrdersWithNoFees = ( makerAssetData, takerAssetAmount: fillableAmount, takerAssetData, + chainId: 42, }), ); }; @@ -69,6 +70,7 @@ export const getPartialSignedOrdersWithFees = ( orderFactory.createSignedOrderFromPartial({ ...order, ...{ takerFee: takerFees[index] }, + chainId: 42, }), ); }; diff --git a/packages/asset-swapper/test/utils_test.ts b/packages/asset-swapper/test/utils_test.ts index 0b4334f652..801ce09761 100644 --- a/packages/asset-swapper/test/utils_test.ts +++ b/packages/asset-swapper/test/utils_test.ts @@ -24,19 +24,23 @@ const baseUnitAmount = (unitAmount: number, decimals = TOKEN_DECIMALS): BigNumbe describe('utils', () => { // orders const sellTwoTokensFor1Weth: SignedOrder = orderFactory.createSignedOrderFromPartial({ + chainId: 42, makerAssetAmount: baseUnitAmount(2), takerAssetAmount: baseUnitAmount(1, WETH_DECIMALS), }); const sellTenTokensFor10Weth: SignedOrder = orderFactory.createSignedOrderFromPartial({ + chainId: 42, makerAssetAmount: baseUnitAmount(10), takerAssetAmount: baseUnitAmount(10, WETH_DECIMALS), }); const sellTwoTokensFor1WethWithTwoTokenFee: SignedOrder = orderFactory.createSignedOrderFromPartial({ + chainId: 42, makerAssetAmount: baseUnitAmount(2), takerAssetAmount: baseUnitAmount(1, WETH_DECIMALS), takerFee: baseUnitAmount(2), }); const sellTenTokensFor1WethWithFourTokenFee: SignedOrder = orderFactory.createSignedOrderFromPartial({ + chainId: 42, makerAssetAmount: baseUnitAmount(2), takerAssetAmount: baseUnitAmount(1, WETH_DECIMALS), takerFee: baseUnitAmount(4), diff --git a/packages/base-contract/CHANGELOG.json b/packages/base-contract/CHANGELOG.json index 9cae42a3ab..37d5dc32ac 100644 --- a/packages/base-contract/CHANGELOG.json +++ b/packages/base-contract/CHANGELOG.json @@ -18,7 +18,8 @@ "note": "Added AwaitTransactionSuccessOpts and SendTransactionOpts", "pr": 2325 } - ] + ], + "timestamp": 1573159180 }, { "version": "5.5.0-beta.0", diff --git a/packages/base-contract/CHANGELOG.md b/packages/base-contract/CHANGELOG.md index 4fcff1d41b..ee321cc760 100644 --- a/packages/base-contract/CHANGELOG.md +++ b/packages/base-contract/CHANGELOG.md @@ -5,6 +5,11 @@ Edit the package's CHANGELOG.json file only. CHANGELOG +## v5.5.0-beta.1 - _November 7, 2019_ + + * Make `evmExecAsync` protected and rename to `_evmExecAsync` (#2243) + * Remove duplicate types `IndexedFilterValues`, `DecodedLogEvent`, `EventCallback` (#2243) + ## v5.5.0-beta.0 - _October 3, 2019_ * Automatically decode and throw rich reverts in `_throwIfRevertWithReasonCallResult` (#1761) diff --git a/packages/base-contract/package.json b/packages/base-contract/package.json index bfb248ed28..368d3876d7 100644 --- a/packages/base-contract/package.json +++ b/packages/base-contract/package.json @@ -1,6 +1,6 @@ { "name": "@0x/base-contract", - "version": "5.5.0-beta.0", + "version": "5.5.0-beta.1", "engines": { "node": ">=6.12" }, @@ -30,7 +30,7 @@ }, "homepage": "https://github.com/0xProject/0x-monorepo/packages/base-contract/README.md", "devDependencies": { - "@0x/tslint-config": "^3.0.1", + "@0x/tslint-config": "^3.1.0-beta.1", "@types/lodash": "4.14.104", "@types/mocha": "^5.2.7", "chai": "^4.0.1", @@ -42,13 +42,13 @@ "typescript": "3.0.1" }, "dependencies": { - "@0x/assert": "^2.2.0-beta.0", - "@0x/json-schemas": "^4.1.0-beta.0", - "@0x/types": "^2.5.0-beta.0", - "@0x/typescript-typings": "^4.4.0-beta.0", - "@0x/utils": "^4.6.0-beta.0", - "@0x/web3-wrapper": "^6.1.0-beta.0", - "ethereum-types": "^2.2.0-beta.0", + "@0x/assert": "^2.2.0-beta.1", + "@0x/json-schemas": "^4.1.0-beta.1", + "@0x/types": "^2.5.0-beta.1", + "@0x/typescript-typings": "^4.4.0-beta.1", + "@0x/utils": "^4.6.0-beta.1", + "@0x/web3-wrapper": "^6.1.0-beta.1", + "ethereum-types": "^2.2.0-beta.1", "ethereumjs-account": "^3.0.0", "ethereumjs-blockstream": "^7.0.0", "ethereumjs-util": "^5.1.1", diff --git a/packages/connect/CHANGELOG.json b/packages/connect/CHANGELOG.json index b467adf1ea..17c0652fac 100644 --- a/packages/connect/CHANGELOG.json +++ b/packages/connect/CHANGELOG.json @@ -1,12 +1,13 @@ [ { - "version": "6.0.0-beta.0", + "version": "5.1.0-beta.1", "changes": [ { "note": "All references to network ID have been removed, and references to chain ID have been introduced instead", "pr": 2313 } - ] + ], + "timestamp": 1573159180 }, { "version": "5.1.0-beta.0", diff --git a/packages/connect/CHANGELOG.md b/packages/connect/CHANGELOG.md index 2a656265d7..69e477906b 100644 --- a/packages/connect/CHANGELOG.md +++ b/packages/connect/CHANGELOG.md @@ -5,6 +5,10 @@ Edit the package's CHANGELOG.json file only. CHANGELOG +## v5.1.0-beta.1 - _November 7, 2019_ + + * All references to network ID have been removed, and references to chain ID have been introduced instead (#2313) + ## v5.1.0-beta.0 - _October 3, 2019_ * Dependencies updated diff --git a/packages/connect/docs/reference.mdx b/packages/connect/docs/reference.mdx index 5dba505116..36c0122b32 100644 --- a/packages/connect/docs/reference.mdx +++ b/packages/connect/docs/reference.mdx @@ -1,172 +1,115 @@ -# Class: HttpClient -This class includes all the functionality related to interacting with a set of HTTP endpoints -that implement the standard relayer API v2 -## Constructors -\+ **new HttpClient**(`url`: string): *[HttpClient](#class-httpclient)* -*Defined in [connect/src/http_client.ts:44](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/connect/src/http_client.ts#L44)* -Instantiates a new HttpClient instance -**Parameters:** -Name | Type | Description | ------- | ------ | ------ | -`url` | string | The relayer API base HTTP url you would like to interact with | -**Returns:** *[HttpClient](#class-httpclient)* -An instance of HttpClient -## Methods -### getAssetPairsAsync -▸ **getAssetPairsAsync**(`requestOpts?`: `RequestOpts` & `AssetPairsRequestOpts` & `PagedRequestOpts`): *`Promise`* -*Defined in [connect/src/http_client.ts:59](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/connect/src/http_client.ts#L59)* -Retrieve assetData pair info from the API -**Parameters:** -Name | Type | Description | ------- | ------ | ------ | -`requestOpts?` | `RequestOpts` & `AssetPairsRequestOpts` & `PagedRequestOpts` | Options specifying assetData information to retrieve, page information, and network id. | -**Returns:** *`Promise`* -The resulting AssetPairsResponse that match the request -___ -### getFeeRecipientsAsync -▸ **getFeeRecipientsAsync**(`requestOpts?`: `RequestOpts` & `PagedRequestOpts`): *`Promise`* -*Defined in [connect/src/http_client.ts:160](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/connect/src/http_client.ts#L160)* -Retrieve the list of fee recipient addresses used by the relayer. -**Parameters:** -Name | Type | Description | ------- | ------ | ------ | -`requestOpts?` | `RequestOpts` & `PagedRequestOpts` | Options specifying page information, and network id. | -**Returns:** *`Promise`* -The resulting FeeRecipientsResponse + +## Type aliases + + + + + +### AssetPairsResponse + +Ƭ **AssetPairsResponse**: *[PaginatedCollection](#interface-paginatedcollection)‹*[AssetPairsItem](#interface-assetpairsitem)*›* + +*Defined in [types/src/index.ts:416](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/types/src/index.ts#L416)* ___ -### getOrderAsync -▸ **getOrderAsync**(`orderHash`: string, `requestOpts?`: [RequestOpts](#interface-requestopts)): *`Promise`* -*Defined in [connect/src/http_client.ts:99](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/connect/src/http_client.ts#L99)* -Retrieve a specific order from the API -**Parameters:** -Name | Type | Description | ------- | ------ | ------ | -`orderHash` | string | An orderHash generated from the desired order | -`requestOpts?` | [RequestOpts](#interface-requestopts) | - | -**Returns:** *`Promise`* +### FeeRecipientsResponse -The APIOrder that matches the supplied orderHash +Ƭ **FeeRecipientsResponse**: *[PaginatedCollection](#interface-paginatedcollection)‹*string*›* -___ +*Defined in [types/src/index.ts:484](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/types/src/index.ts#L484)* -### getOrderConfigAsync +___ -▸ **getOrderConfigAsync**(`request`: `OrderConfigRequest`, `requestOpts?`: [RequestOpts](#interface-requestopts)): *`Promise`* -*Defined in [connect/src/http_client.ts:139](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/connect/src/http_client.ts#L139)* -Retrieve fee information from the API -**Parameters:** -Name | Type | Description | ------- | ------ | ------ | -`request` | `OrderConfigRequest` | A OrderConfigRequest instance describing the specific fees to retrieve | -`requestOpts?` | [RequestOpts](#interface-requestopts) | Options specifying network id. | +### OrdersResponse -**Returns:** *`Promise`* +Ƭ **OrdersResponse**: *[PaginatedCollection](#interface-paginatedcollection)‹*[APIOrder](#interface-apiorder)*›* -The resulting OrderConfigResponse that matches the request +*Defined in [types/src/index.ts:404](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/types/src/index.ts#L404)* ___ -### getOrderbookAsync -▸ **getOrderbookAsync**(`request`: `OrderbookRequest`, `requestOpts?`: `RequestOpts` & `PagedRequestOpts`): *`Promise`* -*Defined in [connect/src/http_client.ts:117](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/connect/src/http_client.ts#L117)* -Retrieve an orderbook from the API -**Parameters:** -Name | Type | Description | ------- | ------ | ------ | -`request` | `OrderbookRequest` | An OrderbookRequest instance describing the specific orderbook to retrieve | -`requestOpts?` | `RequestOpts` & `PagedRequestOpts` | Options specifying page information, and network id. | -**Returns:** *`Promise`* -The resulting OrderbookResponse that matches the request + +# Interface: APIOrder + + +## Properties + +### metaData + +• **metaData**: *object* + +*Defined in [types/src/index.ts:408](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/types/src/index.ts#L408)* ___ -### getOrdersAsync +### order -▸ **getOrdersAsync**(`requestOpts?`: `RequestOpts` & `OrdersRequestOpts` & `PagedRequestOpts`): *`Promise`* +• **order**: *[SignedOrder](#class-signedorder)* -*Defined in [connect/src/http_client.ts:79](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/connect/src/http_client.ts#L79)* +*Defined in [types/src/index.ts:407](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/types/src/index.ts#L407)* -Retrieve orders from the API +
-**Parameters:** -Name | Type | Description | ------- | ------ | ------ | -`requestOpts?` | `RequestOpts` & `OrdersRequestOpts` & `PagedRequestOpts` | Options specifying orders to retrieve and page information, page information, and network id. | -**Returns:** *`Promise`* -The resulting OrdersResponse that match the request -___ -### submitOrderAsync -▸ **submitOrderAsync**(`signedOrder`: `SignedOrder`, `requestOpts?`: [RequestOpts](#interface-requestopts)): *`Promise`* -*Defined in [connect/src/http_client.ts:177](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/connect/src/http_client.ts#L177)* -Submit a signed order to the API -**Parameters:** -Name | Type | Description | ------- | ------ | ------ | -`signedOrder` | `SignedOrder` | A SignedOrder instance to submit | -`requestOpts?` | [RequestOpts](#interface-requestopts) | Options specifying network id. | -**Returns:** *`Promise`* -
@@ -200,84 +143,183 @@ Name | Type | Description | -# Interface: APIOrder -## Properties -### metaData + -• **metaData**: *object* -*Defined in [types/src/index.ts:408](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/types/src/index.ts#L408)* -___ -### order -• **order**: *[SignedOrder](#class-signedorder)* -*Defined in [types/src/index.ts:407](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/types/src/index.ts#L407)* -
+# Class: HttpClient +This class includes all the functionality related to interacting with a set of HTTP endpoints +that implement the standard relayer API v2 +## Constructors +\+ **new HttpClient**(`url`: string): *[HttpClient](#class-httpclient)* +*Defined in [connect/src/http_client.ts:43](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/connect/src/http_client.ts#L43)* +Instantiates a new HttpClient instance +**Parameters:** +Name | Type | Description | +------ | ------ | ------ | +`url` | string | The relayer API base HTTP url you would like to interact with | +**Returns:** *[HttpClient](#class-httpclient)* +An instance of HttpClient +## Methods +### getAssetPairsAsync +▸ **getAssetPairsAsync**(`requestOpts?`: `AssetPairsRequestOpts` & `PagedRequestOpts`): *`Promise`* +*Defined in [connect/src/http_client.ts:58](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/connect/src/http_client.ts#L58)* +Retrieve assetData pair info from the API +**Parameters:** +Name | Type | Description | +------ | ------ | ------ | +`requestOpts?` | `AssetPairsRequestOpts` & `PagedRequestOpts` | Options specifying assetData information to retrieve, page information. | +**Returns:** *`Promise`* +The resulting AssetPairsResponse that match the request +___ +### getFeeRecipientsAsync +▸ **getFeeRecipientsAsync**(`requestOpts?`: [PagedRequestOpts](#interface-pagedrequestopts)): *`Promise`* +*Defined in [connect/src/http_client.ts:140](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/connect/src/http_client.ts#L140)* +Retrieve the list of fee recipient addresses used by the relayer. +**Parameters:** +Name | Type | Description | +------ | ------ | ------ | +`requestOpts?` | [PagedRequestOpts](#interface-pagedrequestopts) | Options specifying page information. | +**Returns:** *`Promise`* +The resulting FeeRecipientsResponse +___ +### getOrderAsync +▸ **getOrderAsync**(`orderHash`: string): *`Promise`* +*Defined in [connect/src/http_client.ts:94](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/connect/src/http_client.ts#L94)* +Retrieve a specific order from the API +**Parameters:** +Name | Type | Description | +------ | ------ | ------ | +`orderHash` | string | An orderHash generated from the desired order | +**Returns:** *`Promise`* +The APIOrder that matches the supplied orderHash +___ +### getOrderConfigAsync +▸ **getOrderConfigAsync**(`request`: `OrderConfigRequest`): *`Promise`* +*Defined in [connect/src/http_client.ts:126](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/connect/src/http_client.ts#L126)* +Retrieve fee information from the API +**Parameters:** +Name | Type | Description | +------ | ------ | ------ | +`request` | `OrderConfigRequest` | A OrderConfigRequest instance describing the specific fees to retrieve | +**Returns:** *`Promise`* +The resulting OrderConfigResponse that matches the request - +___ +### getOrderbookAsync +▸ **getOrderbookAsync**(`request`: `OrderbookRequest`, `requestOpts?`: [PagedRequestOpts](#interface-pagedrequestopts)): *`Promise`* +*Defined in [connect/src/http_client.ts:106](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/connect/src/http_client.ts#L106)* +Retrieve an orderbook from the API +**Parameters:** +Name | Type | Description | +------ | ------ | ------ | +`request` | `OrderbookRequest` | An OrderbookRequest instance describing the specific orderbook to retrieve | +`requestOpts?` | [PagedRequestOpts](#interface-pagedrequestopts) | Options specifying page information. | + +**Returns:** *`Promise`* + +The resulting OrderbookResponse that matches the request + +___ +### getOrdersAsync +▸ **getOrdersAsync**(`requestOpts?`: `OrdersRequestOpts` & `PagedRequestOpts`): *`Promise`* + +*Defined in [connect/src/http_client.ts:77](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/connect/src/http_client.ts#L77)* + +Retrieve orders from the API + +**Parameters:** + +Name | Type | Description | +------ | ------ | ------ | +`requestOpts?` | `OrdersRequestOpts` & `PagedRequestOpts` | Options specifying orders to retrieve and page information, page information. | + +**Returns:** *`Promise`* + +The resulting OrdersResponse that match the request + +___ + +### submitOrderAsync + +▸ **submitOrderAsync**(`signedOrder`: `SignedOrder`): *`Promise`* + +*Defined in [connect/src/http_client.ts:155](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/connect/src/http_client.ts#L155)* + +Submit a signed order to the API + +**Parameters:** + +Name | Type | Description | +------ | ------ | ------ | +`signedOrder` | `SignedOrder` | A SignedOrder instance to submit | + +**Returns:** *`Promise`* + +
@@ -320,7 +362,7 @@ ___ • **page**? : *undefined | number* -*Defined in [types/src/index.ts:491](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/types/src/index.ts#L491)* +*Defined in [types/src/index.ts:491](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/types/src/index.ts#L491)* ___ @@ -328,7 +370,7 @@ ___ • **perPage**? : *undefined | number* -*Defined in [types/src/index.ts:492](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/types/src/index.ts#L492)* +*Defined in [types/src/index.ts:492](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/types/src/index.ts#L492)*
@@ -345,7 +387,7 @@ ___ • **page**: *number* -*Defined in [types/src/index.ts:459](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/types/src/index.ts#L459)* +*Defined in [types/src/index.ts:459](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/types/src/index.ts#L459)* ___ @@ -353,7 +395,7 @@ ___ • **perPage**: *number* -*Defined in [types/src/index.ts:460](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/types/src/index.ts#L460)* +*Defined in [types/src/index.ts:460](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/types/src/index.ts#L460)* ___ @@ -361,7 +403,7 @@ ___ • **records**: *`T`[]* -*Defined in [types/src/index.ts:461](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/types/src/index.ts#L461)* +*Defined in [types/src/index.ts:461](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/types/src/index.ts#L461)* ___ @@ -369,7 +411,7 @@ ___ • **total**: *number* -*Defined in [types/src/index.ts:458](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/types/src/index.ts#L458)* +*Defined in [types/src/index.ts:458](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/types/src/index.ts#L458)*
@@ -377,18 +419,9 @@ ___ -# Interface: RequestOpts - -## Properties - -### `Optional` networkId -• **networkId**? : *undefined | number* -*Defined in [types/src/index.ts:487](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/types/src/index.ts#L487)* - -
# Interface: SignedOrder @@ -401,7 +434,7 @@ ___ *Inherited from [Order](#interface-order).[chainId](#chainid)* -*Defined in [types/src/index.ts:14](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/types/src/index.ts#L14)* +*Defined in [types/src/index.ts:14](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/types/src/index.ts#L14)* ___ @@ -411,7 +444,7 @@ ___ *Inherited from [Order](#interface-order).[exchangeAddress](#exchangeaddress)* -*Defined in [types/src/index.ts:15](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/types/src/index.ts#L15)* +*Defined in [types/src/index.ts:15](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/types/src/index.ts#L15)* ___ @@ -421,7 +454,7 @@ ___ *Inherited from [Order](#interface-order).[expirationTimeSeconds](#expirationtimeseconds)* -*Defined in [types/src/index.ts:24](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/types/src/index.ts#L24)* +*Defined in [types/src/index.ts:24](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/types/src/index.ts#L24)* ___ @@ -431,7 +464,7 @@ ___ *Inherited from [Order](#interface-order).[feeRecipientAddress](#feerecipientaddress)* -*Defined in [types/src/index.ts:18](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/types/src/index.ts#L18)* +*Defined in [types/src/index.ts:18](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/types/src/index.ts#L18)* ___ @@ -441,7 +474,7 @@ ___ *Inherited from [Order](#interface-order).[makerAddress](#makeraddress)* -*Defined in [types/src/index.ts:16](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/types/src/index.ts#L16)* +*Defined in [types/src/index.ts:16](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/types/src/index.ts#L16)* ___ @@ -451,7 +484,7 @@ ___ *Inherited from [Order](#interface-order).[makerAssetAmount](#makerassetamount)* -*Defined in [types/src/index.ts:20](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/types/src/index.ts#L20)* +*Defined in [types/src/index.ts:20](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/types/src/index.ts#L20)* ___ @@ -461,7 +494,7 @@ ___ *Inherited from [Order](#interface-order).[makerAssetData](#makerassetdata)* -*Defined in [types/src/index.ts:26](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/types/src/index.ts#L26)* +*Defined in [types/src/index.ts:26](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/types/src/index.ts#L26)* ___ @@ -471,7 +504,7 @@ ___ *Inherited from [Order](#interface-order).[makerFee](#makerfee)* -*Defined in [types/src/index.ts:22](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/types/src/index.ts#L22)* +*Defined in [types/src/index.ts:22](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/types/src/index.ts#L22)* ___ @@ -481,7 +514,7 @@ ___ *Inherited from [Order](#interface-order).[makerFeeAssetData](#makerfeeassetdata)* -*Defined in [types/src/index.ts:28](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/types/src/index.ts#L28)* +*Defined in [types/src/index.ts:28](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/types/src/index.ts#L28)* ___ @@ -491,7 +524,7 @@ ___ *Inherited from [Order](#interface-order).[salt](#salt)* -*Defined in [types/src/index.ts:25](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/types/src/index.ts#L25)* +*Defined in [types/src/index.ts:25](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/types/src/index.ts#L25)* ___ @@ -501,7 +534,7 @@ ___ *Inherited from [Order](#interface-order).[senderAddress](#senderaddress)* -*Defined in [types/src/index.ts:19](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/types/src/index.ts#L19)* +*Defined in [types/src/index.ts:19](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/types/src/index.ts#L19)* ___ @@ -509,7 +542,7 @@ ___ • **signature**: *string* -*Defined in [types/src/index.ts:33](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/types/src/index.ts#L33)* +*Defined in [types/src/index.ts:33](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/types/src/index.ts#L33)* ___ @@ -519,7 +552,7 @@ ___ *Inherited from [Order](#interface-order).[takerAddress](#takeraddress)* -*Defined in [types/src/index.ts:17](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/types/src/index.ts#L17)* +*Defined in [types/src/index.ts:17](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/types/src/index.ts#L17)* ___ @@ -529,7 +562,7 @@ ___ *Inherited from [Order](#interface-order).[takerAssetAmount](#takerassetamount)* -*Defined in [types/src/index.ts:21](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/types/src/index.ts#L21)* +*Defined in [types/src/index.ts:21](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/types/src/index.ts#L21)* ___ @@ -539,7 +572,7 @@ ___ *Inherited from [Order](#interface-order).[takerAssetData](#takerassetdata)* -*Defined in [types/src/index.ts:27](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/types/src/index.ts#L27)* +*Defined in [types/src/index.ts:27](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/types/src/index.ts#L27)* ___ @@ -549,7 +582,7 @@ ___ *Inherited from [Order](#interface-order).[takerFee](#takerfee)* -*Defined in [types/src/index.ts:23](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/types/src/index.ts#L23)* +*Defined in [types/src/index.ts:23](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/types/src/index.ts#L23)* ___ @@ -559,7 +592,7 @@ ___ *Inherited from [Order](#interface-order).[takerFeeAssetData](#takerfeeassetdata)* -*Defined in [types/src/index.ts:29](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/types/src/index.ts#L29)* +*Defined in [types/src/index.ts:29](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/types/src/index.ts#L29)*
@@ -610,6 +643,10 @@ ___ + +
+ +
@@ -622,13 +659,13 @@ ___ #### ▪ **ordersChannelFactory**: *object* -*Defined in [connect/src/orders_channel_factory.ts:7](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/connect/src/orders_channel_factory.ts#L7)* +*Defined in [connect/src/orders_channel_factory.ts:7](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/connect/src/orders_channel_factory.ts#L7)* #### createWebSocketOrdersChannelAsync ▸ **createWebSocketOrdersChannelAsync**(`url`: string, `handler`: [OrdersChannelHandler](#interface-orderschannelhandler)): *`Promise`* -*Defined in [connect/src/orders_channel_factory.ts:15](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/connect/src/orders_channel_factory.ts#L15)* +*Defined in [connect/src/orders_channel_factory.ts:15](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/connect/src/orders_channel_factory.ts#L15)* Instantiates a new WebSocketOrdersChannel instance @@ -645,52 +682,3 @@ An OrdersChannel Promise
- - -
- - - - -## Type aliases - - - - - -### AssetPairsResponse - -Ƭ **AssetPairsResponse**: *[PaginatedCollection](#interface-paginatedcollection)‹*[AssetPairsItem](#interface-assetpairsitem)*›* - -*Defined in [types/src/index.ts:416](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/types/src/index.ts#L416)* - -___ - - - - - - - -### FeeRecipientsResponse - -Ƭ **FeeRecipientsResponse**: *[PaginatedCollection](#interface-paginatedcollection)‹*string*›* - -*Defined in [types/src/index.ts:484](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/types/src/index.ts#L484)* - -___ - - - - - -### OrdersResponse - -Ƭ **OrdersResponse**: *[PaginatedCollection](#interface-paginatedcollection)‹*[APIOrder](#interface-apiorder)*›* - -*Defined in [types/src/index.ts:404](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/types/src/index.ts#L404)* - -___ - - - diff --git a/packages/connect/package.json b/packages/connect/package.json index cbe00d57d5..aad08f11d0 100644 --- a/packages/connect/package.json +++ b/packages/connect/package.json @@ -1,6 +1,6 @@ { "name": "@0x/connect", - "version": "5.1.0-beta.0", + "version": "5.1.0-beta.1", "engines": { "node": ">=6.12" }, @@ -48,12 +48,12 @@ }, "homepage": "https://github.com/0xProject/0x-monorepo/packages/connect/README.md", "dependencies": { - "@0x/assert": "^2.2.0-beta.0", - "@0x/json-schemas": "^4.1.0-beta.0", - "@0x/order-utils": "^8.5.0-beta.0", - "@0x/types": "^2.5.0-beta.0", - "@0x/typescript-typings": "^4.4.0-beta.0", - "@0x/utils": "^4.6.0-beta.0", + "@0x/assert": "^2.2.0-beta.1", + "@0x/json-schemas": "^4.1.0-beta.1", + "@0x/order-utils": "^8.5.0-beta.1", + "@0x/types": "^2.5.0-beta.1", + "@0x/typescript-typings": "^4.4.0-beta.1", + "@0x/utils": "^4.6.0-beta.1", "lodash": "^4.17.11", "query-string": "^6.0.0", "sinon": "^4.0.0", @@ -62,7 +62,7 @@ }, "devDependencies": { "@0x/ts-doc-gen": "^0.0.22", - "@0x/tslint-config": "^3.0.1", + "@0x/tslint-config": "^3.1.0-beta.1", "@types/fetch-mock": "^6.0.3", "@types/lodash": "4.14.104", "@types/mocha": "^5.2.7", diff --git a/packages/connect/src/http_client.ts b/packages/connect/src/http_client.ts index 9281606fce..c050a374bd 100644 --- a/packages/connect/src/http_client.ts +++ b/packages/connect/src/http_client.ts @@ -12,7 +12,6 @@ import { OrdersRequestOpts, OrdersResponse, PagedRequestOpts, - RequestOpts, SignedOrder, } from '@0x/types'; import { fetchAsync } from '@0x/utils'; @@ -53,16 +52,15 @@ export class HttpClient { } /** * Retrieve assetData pair info from the API - * @param requestOpts Options specifying assetData information to retrieve, page information, and chain id. + * @param requestOpts Options specifying assetData information to retrieve, page information. * @return The resulting AssetPairsResponse that match the request */ public async getAssetPairsAsync( - requestOpts?: RequestOpts & AssetPairsRequestOpts & PagedRequestOpts, + requestOpts?: AssetPairsRequestOpts & PagedRequestOpts, ): Promise { if (requestOpts !== undefined) { assert.doesConformToSchema('requestOpts', requestOpts, schemas.assetPairsRequestOptsSchema); assert.doesConformToSchema('requestOpts', requestOpts, schemas.pagedRequestOptsSchema); - assert.doesConformToSchema('requestOpts', requestOpts, schemas.requestOptsSchema); } const httpRequestOpts = { params: requestOpts, @@ -73,16 +71,13 @@ export class HttpClient { } /** * Retrieve orders from the API - * @param requestOpts Options specifying orders to retrieve and page information, page information, and chain id. + * @param requestOpts Options specifying orders to retrieve and page information, page information. * @return The resulting OrdersResponse that match the request */ - public async getOrdersAsync( - requestOpts?: RequestOpts & OrdersRequestOpts & PagedRequestOpts, - ): Promise { + public async getOrdersAsync(requestOpts?: OrdersRequestOpts & PagedRequestOpts): Promise { if (requestOpts !== undefined) { assert.doesConformToSchema('requestOpts', requestOpts, schemas.ordersRequestOptsSchema); assert.doesConformToSchema('requestOpts', requestOpts, schemas.pagedRequestOptsSchema); - assert.doesConformToSchema('requestOpts', requestOpts, schemas.requestOptsSchema); } const httpRequestOpts = { params: requestOpts, @@ -96,32 +91,25 @@ export class HttpClient { * @param orderHash An orderHash generated from the desired order * @return The APIOrder that matches the supplied orderHash */ - public async getOrderAsync(orderHash: string, requestOpts?: RequestOpts): Promise { - if (requestOpts !== undefined) { - assert.doesConformToSchema('requestOpts', requestOpts, schemas.requestOptsSchema); - } + public async getOrderAsync(orderHash: string): Promise { assert.doesConformToSchema('orderHash', orderHash, schemas.orderHashSchema); - const httpRequestOpts = { - params: requestOpts, - }; - const responseJson = await this._requestAsync(`/order/${orderHash}`, HttpRequestType.Get, httpRequestOpts); + const responseJson = await this._requestAsync(`/order/${orderHash}`, HttpRequestType.Get); const order = relayerResponseJsonParsers.parseAPIOrderJson(responseJson); return order; } /** * Retrieve an orderbook from the API * @param request An OrderbookRequest instance describing the specific orderbook to retrieve - * @param requestOpts Options specifying page information, and chain id. + * @param requestOpts Options specifying page information. * @return The resulting OrderbookResponse that matches the request */ public async getOrderbookAsync( request: OrderbookRequest, - requestOpts?: RequestOpts & PagedRequestOpts, + requestOpts?: PagedRequestOpts, ): Promise { assert.doesConformToSchema('request', request, schemas.orderBookRequestSchema); if (requestOpts !== undefined) { assert.doesConformToSchema('requestOpts', requestOpts, schemas.pagedRequestOptsSchema); - assert.doesConformToSchema('requestOpts', requestOpts, schemas.requestOptsSchema); } const httpRequestOpts = { params: _.defaults({}, request, requestOpts), @@ -133,19 +121,11 @@ export class HttpClient { /** * Retrieve fee information from the API * @param request A OrderConfigRequest instance describing the specific fees to retrieve - * @param requestOpts Options specifying chain id. * @return The resulting OrderConfigResponse that matches the request */ - public async getOrderConfigAsync( - request: OrderConfigRequest, - requestOpts?: RequestOpts, - ): Promise { - if (requestOpts !== undefined) { - assert.doesConformToSchema('requestOpts', requestOpts, schemas.requestOptsSchema); - } + public async getOrderConfigAsync(request: OrderConfigRequest): Promise { assert.doesConformToSchema('request', request, schemas.orderConfigRequestSchema); const httpRequestOpts = { - params: requestOpts, payload: request, }; const responseJson = await this._requestAsync('/order_config', HttpRequestType.Post, httpRequestOpts); @@ -154,13 +134,12 @@ export class HttpClient { } /** * Retrieve the list of fee recipient addresses used by the relayer. - * @param requestOpts Options specifying page information, and chain id. + * @param requestOpts Options specifying page information. * @return The resulting FeeRecipientsResponse */ - public async getFeeRecipientsAsync(requestOpts?: RequestOpts & PagedRequestOpts): Promise { + public async getFeeRecipientsAsync(requestOpts?: PagedRequestOpts): Promise { if (requestOpts !== undefined) { assert.doesConformToSchema('requestOpts', requestOpts, schemas.pagedRequestOptsSchema); - assert.doesConformToSchema('requestOpts', requestOpts, schemas.requestOptsSchema); } const httpRequestOpts = { params: requestOpts, @@ -172,12 +151,10 @@ export class HttpClient { /** * Submit a signed order to the API * @param signedOrder A SignedOrder instance to submit - * @param requestOpts Options specifying chain id. */ - public async submitOrderAsync(signedOrder: SignedOrder, requestOpts?: RequestOpts): Promise { + public async submitOrderAsync(signedOrder: SignedOrder): Promise { assert.doesConformToSchema('signedOrder', signedOrder, schemas.signedOrderSchema); const httpRequestOpts = { - params: requestOpts, payload: signedOrder, }; await this._requestAsync('/order', HttpRequestType.Post, httpRequestOpts); diff --git a/packages/connect/src/index.ts b/packages/connect/src/index.ts index 517678bd52..0849c9a633 100644 --- a/packages/connect/src/index.ts +++ b/packages/connect/src/index.ts @@ -15,6 +15,5 @@ export { OrdersResponse, PagedRequestOpts, PaginatedCollection, - RequestOpts, SignedOrder, } from '@0x/types'; diff --git a/packages/connect/test/http_client_test.ts b/packages/connect/test/http_client_test.ts index 5fb6364eb8..48d767d020 100644 --- a/packages/connect/test/http_client_test.ts +++ b/packages/connect/test/http_client_test.ts @@ -53,9 +53,8 @@ describe('HttpClient', () => { assetDataA: assetData, page: 3, perPage: 50, - chainId: 42, }; - const urlWithQuery = `${url}?assetDataA=${assetData}&chainId=42&page=3&perPage=50`; + const urlWithQuery = `${url}?assetDataA=${assetData}&page=3&perPage=50`; fetchMock.get(urlWithQuery, assetDataPairsResponseJSON); const assetDataPairs = await relayerClient.getAssetPairsAsync(assetPairsRequestOpts); expect(assetDataPairs).to.be.deep.equal(assetDataPairsResponse); @@ -78,9 +77,8 @@ describe('HttpClient', () => { assetDataAddress, page: 3, perPage: 50, - chainId: 42, }; - const urlWithQuery = `${url}?assetDataAddress=${assetDataAddress}&chainId=42&page=3&perPage=50`; + const urlWithQuery = `${url}?assetDataAddress=${assetDataAddress}&page=3&perPage=50`; fetchMock.get(urlWithQuery, ordersResponseJSON); const orders = await relayerClient.getOrdersAsync(ordersRequest); expect(orders).to.be.deep.equal(ordersResponse); @@ -118,14 +116,13 @@ describe('HttpClient', () => { expect(orderbook).to.be.deep.equal(orderbookResponse); }); it('gets orderbook with specified page options', async () => { - const urlWithQuery = `${url}?baseAssetData=${ - request.baseAssetData - }&chainId=42&page=3&perPage=50"eAssetData=${request.quoteAssetData}`; + const urlWithQuery = `${url}?baseAssetData=${request.baseAssetData}&page=3&perPage=50"eAssetData=${ + request.quoteAssetData + }`; fetchMock.get(urlWithQuery, orderbookJSON); const pagedRequestOptions = { page: 3, perPage: 50, - chainId: 42, }; const orderbook = await relayerClient.getOrderbookAsync(request, pagedRequestOptions); expect(orderbook).to.be.deep.equal(orderbookResponse); @@ -175,12 +172,11 @@ describe('HttpClient', () => { expect(feeRecipients).to.be.deep.equal(feeRecipientsResponse); }); it('gets fee recipient with specified page options', async () => { - const urlWithQuery = `${url}?chainId=42&page=3&perPage=50`; + const urlWithQuery = `${url}?page=3&perPage=50`; fetchMock.get(urlWithQuery, feeRecipientsResponseJSON); const pagedRequestOptions = { page: 3, perPage: 50, - chainId: 42, }; const feeRecipients = await relayerClient.getFeeRecipientsAsync(pagedRequestOptions); expect(feeRecipients).to.be.deep.equal(feeRecipientsResponse); diff --git a/packages/contract-addresses/CHANGELOG.json b/packages/contract-addresses/CHANGELOG.json index 23d24fabd2..b96a1f59ff 100644 --- a/packages/contract-addresses/CHANGELOG.json +++ b/packages/contract-addresses/CHANGELOG.json @@ -1,4 +1,26 @@ [ + { + "version": "3.3.0-beta.3", + "changes": [ + { + "note": "Update all v3 mainnet addresses", + "pr": 2322 + }, + { + "note": "Update ZeroExGovernor address on all testnets", + "pr": 2322 + } + ] + }, + { + "version": "3.3.0-beta.2", + "changes": [ + { + "note": "Updated devUtils contract addresses on testnets" + } + ], + "timestamp": 1573159180 + }, { "version": "3.3.0-beta.1", "changes": [ diff --git a/packages/contract-addresses/CHANGELOG.md b/packages/contract-addresses/CHANGELOG.md index 2b371cc63e..3da40c1165 100644 --- a/packages/contract-addresses/CHANGELOG.md +++ b/packages/contract-addresses/CHANGELOG.md @@ -5,11 +5,16 @@ Edit the package's CHANGELOG.json file only. CHANGELOG +## v3.3.0-beta.2 - _November 7, 2019_ + + * Updated devUtils contract addresses on testnets + ## v3.3.0-beta.1 - _November 6, 2019_ * Remove `readOnlyProxy` from addresses interface (#2295) * Add `zeroExGovernor` and `erc20BridgeProxy` to addresses interface (#2296) * Update `exchange`, `staking`, `stakingProxy`, `zeroExGovernor`, `assetProxyOwner`, and `erc20BridgeProxy` addresses for each tesnet (#2296) + * Contract addresses are no longer indexed by network ID. Now they're indexed by chain ID. (#2313) ## v3.3.0-beta.0 - _October 3, 2019_ diff --git a/packages/contract-addresses/addresses.json b/packages/contract-addresses/addresses.json index 6293ab8e0b..5af7c26406 100644 --- a/packages/contract-addresses/addresses.json +++ b/packages/contract-addresses/addresses.json @@ -1,26 +1,26 @@ { "1": { "exchangeV2": "0x080bf510fcbf18b91105470639e9561022937712", - "exchange": "0x0000000000000000000000000000000000000000", + "exchange": "0xb27f1db0a7e473304a5a06e54bdf035f671400c0", "erc20Proxy": "0x95e6f48254609a6ee006f7d493c8e5fb97094cef", "erc721Proxy": "0xefc70a1b18c432bdc64b596838b4d138f6bc6cad", - "forwarder": "0x0000000000000000000000000000000000000000", + "forwarder": "0x132a04f3f6196b499a7ed512c15e002d5dcefa9a", "orderValidator": "0x0000000000000000000000000000000000000000", "zrxToken": "0xe41d2489571d322189246dafa5ebde1f4699f498", "etherToken": "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2", "assetProxyOwner": "0xdffe798c7172dd6deb32baee68af322e8f495ce0", - "zeroExGovernor": "0x0000000000000000000000000000000000000000", + "zeroExGovernor": "0x7d3455421bbc5ed534a83c88fd80387dc8271392", "dutchAuction": "0x0000000000000000000000000000000000000000", "coordinatorRegistry": "0x45797531b873fd5e519477a070a955764c1a5b07", - "coordinator": "0x0000000000000000000000000000000000000000", + "coordinator": "0x9401f3915c387da331b9b6af5e2a57e580f6a201", "multiAssetProxy": "0xef701d5389ae74503d633396c4d654eabedc9d78", "staticCallProxy": "0x3517b88c19508c08650616019062b898ab65ed29", "erc1155Proxy": "0x7eefbd48fd63d441ec7435d024ec7c5131019add", - "zrxVault": "0x0000000000000000000000000000000000000000", - "staking": "0x0000000000000000000000000000000000000000", - "stakingProxy": "0x0000000000000000000000000000000000000000", - "devUtils": "0x0000000000000000000000000000000000000000", - "erc20BridgeProxy": "0x0000000000000000000000000000000000000000" + "zrxVault": "0xce2a4b118813cbfa27ee11cf8e67b101867fa85e", + "staking": "0xe533d7eb513bc90230ec9069a92eac25e1356beb", + "stakingProxy": "0x5fc73bf8c6158fbe205a5e14126b363ab915b8b1", + "devUtils": "0xf15fbafc74e10a9761b6aefd5d2239f098f8fb1e", + "erc20BridgeProxy": "0x8ed95d1746bf1e4dab58d8ed4724f1ef95b20db0" }, "3": { "erc20Proxy": "0xb1408f4c245a23c31b98d2c626777d4c0d766caa", @@ -30,7 +30,7 @@ "exchangeV2": "0xbff9493f92a3df4b0429b6d00743b3cfb4c85831", "exchange": "0xc56388332ddfc98701fefed94535100c6166956c", "assetProxyOwner": "0x0000000000000000000000000000000000000000", - "zeroExGovernor": "0xdcf20f7b447d51f2b3e5499b7f6cbbf7295a5d26", + "zeroExGovernor": "0x53993733d41a88ae86f77a18a024e5548ee26579", "forwarder": "0xe66ae6162b3e9067d6ce9e5b9799cca1ba0d09f8", "orderValidator": "0x0000000000000000000000000000000000000000", "dutchAuction": "0x0000000000000000000000000000000000000000", @@ -39,7 +39,7 @@ "multiAssetProxy": "0xab8fbd189c569ccdee3a4d929bb7f557be4028f6", "staticCallProxy": "0xe1b97e47aa3796276033a5341e884d2ba46b6ac1", "erc1155Proxy": "0x19bb6caa3bc34d39e5a23cedfa3e6c7e7f3c931d", - "devUtils": "0x9a8590eebcfc53f0cc7ab5ebb8c079e9e7d4e0f5", + "devUtils": "0x6bb2fc91a82b55c02b88873958a19e04fbd02090", "zrxVault": "0xffd161026865ad8b4ab28a76840474935eec4dfa", "staking": "0x3f46b98061a3e1e1f41dff296ec19402c298f8a9", "stakingProxy": "0xfaabcee42ab6b9c649794ac6c133711071897ee9", @@ -53,7 +53,7 @@ "zrxToken": "0x8080c7e4b81ecf23aa6f877cfbfd9b0c228c6ffa", "etherToken": "0xc778417e063141139fce010982780140aa0cd5ab", "assetProxyOwner": "0x0000000000000000000000000000000000000000", - "zeroExGovernor": "0x5d751aa855a1aee5fe44cf5350ed25b5727b66ae", + "zeroExGovernor": "0x3f46b98061a3e1e1f41dff296ec19402c298f8a9", "forwarder": "0xf36eabdfe986b35b62c8fd5a98a7f2aebb79b291", "orderValidator": "0x0000000000000000000000000000000000000000", "dutchAuction": "0x0000000000000000000000000000000000000000", @@ -62,7 +62,7 @@ "multiAssetProxy": "0xb34cde0ad3a83d04abebc0b66e75196f22216621", "staticCallProxy": "0xe1b97e47aa3796276033a5341e884d2ba46b6ac1", "erc1155Proxy": "0x19bb6caa3bc34d39e5a23cedfa3e6c7e7f3c931d", - "devUtils": "0xfcbb258112485f18dd68f4b1016e48c23542fdc5", + "devUtils": "0x326a303dc0fe20f43acb8e5dec99154e47f32d01", "zrxVault": "0xa5bf6ac73bc40790fc6ffc9dbbbce76c9176e224", "staking": "0x344d4f661a82afdd84d31456c291822d90d5dc3a", "stakingProxy": "0xc6ad5277ea225ac05e271eb14a7ebb480cd9dd9f", @@ -76,7 +76,7 @@ "exchangeV2": "0x30589010550762d2f0d06f650d8e8b6ade6dbf4b", "exchange": "0xca8b1626b3b7a0da722ca9f264c4630c7d34d3b8", "assetProxyOwner": "0x0000000000000000000000000000000000000000", - "zeroExGovernor": "0x3654e5363cd75c8974c76208137df9691e820e97", + "zeroExGovernor": "0x6ff734d96104965c9c1b0108f83abc46e6e501df", "forwarder": "0xd6330f9d2073e1889a295dd1dd2e28d42dec4bff", "orderValidator": "0x0000000000000000000000000000000000000000", "dutchAuction": "0x0000000000000000000000000000000000000000", @@ -85,7 +85,7 @@ "multiAssetProxy": "0xf6313a772c222f51c28f2304c0703b8cf5428fd8", "staticCallProxy": "0x48e94bdb9033640d45ea7c721e25f380f8bffa43", "erc1155Proxy": "0x64517fa2b480ba3678a2a3c0cf08ef7fd4fad36f", - "devUtils": "0x58c4fbdf9222f10ad2bef8f4d374f209135e71a5", + "devUtils": "0x5078321eec0fd8db5d61d25cce3ea2d6379bb5df", "zrxVault": "0xf36eabdfe986b35b62c8fd5a98a7f2aebb79b291", "staking": "0x89150f5eed50b3528f79bfb539f29d727f92821c", "stakingProxy": "0xbab9145f1d57cd4bb0c9aa2d1ece0a5b6e734d34", diff --git a/packages/contract-addresses/package.json b/packages/contract-addresses/package.json index 6ee5c950f7..b8f9fbabaf 100644 --- a/packages/contract-addresses/package.json +++ b/packages/contract-addresses/package.json @@ -1,6 +1,6 @@ { "name": "@0x/contract-addresses", - "version": "3.3.0-beta.1", + "version": "3.3.0-beta.2", "engines": { "node": ">=6.12" }, diff --git a/packages/contract-artifacts/CHANGELOG.json b/packages/contract-artifacts/CHANGELOG.json index 440f6040fa..c2f6cfd9c7 100644 --- a/packages/contract-artifacts/CHANGELOG.json +++ b/packages/contract-artifacts/CHANGELOG.json @@ -1,4 +1,22 @@ [ + { + "version": "2.3.0-beta.3", + "changes": [ + { + "note": "Replace Staking artifact with TestStaking", + "pr": 2322 + } + ] + }, + { + "version": "2.3.0-beta.2", + "changes": [ + { + "note": "Update DevUtils contract artifacts" + } + ], + "timestamp": 1573159180 + }, { "version": "2.3.0-beta.1", "changes": [ diff --git a/packages/contract-artifacts/CHANGELOG.md b/packages/contract-artifacts/CHANGELOG.md index cc32407f9f..43c39f8f6c 100644 --- a/packages/contract-artifacts/CHANGELOG.md +++ b/packages/contract-artifacts/CHANGELOG.md @@ -5,6 +5,10 @@ Edit the package's CHANGELOG.json file only. CHANGELOG +## v2.3.0-beta.2 - _November 7, 2019_ + + * Update DevUtils contract artifacts + ## v2.3.0-beta.1 - _November 6, 2019_ * Dependencies updated diff --git a/packages/contract-artifacts/artifacts/DevUtils.json b/packages/contract-artifacts/artifacts/DevUtils.json index 72f9585942..3a95c3b624 100644 --- a/packages/contract-artifacts/artifacts/DevUtils.json +++ b/packages/contract-artifacts/artifacts/DevUtils.json @@ -38,6 +38,15 @@ "stateMutability": "pure", "type": "function" }, + { + "constant": true, + "inputs": [{ "internalType": "bytes", "name": "assetData", "type": "bytes" }], + "name": "decodeAssetProxyId", + "outputs": [{ "internalType": "bytes4", "name": "assetProxyId", "type": "bytes4" }], + "payable": false, + "stateMutability": "pure", + "type": "function" + }, { "constant": true, "inputs": [{ "internalType": "bytes", "name": "encoded", "type": "bytes" }], @@ -249,6 +258,20 @@ "stateMutability": "pure", "type": "function" }, + { + "constant": true, + "inputs": [{ "internalType": "bytes", "name": "assetData", "type": "bytes" }], + "name": "decodeStaticCallAssetData", + "outputs": [ + { "internalType": "bytes4", "name": "assetProxyId", "type": "bytes4" }, + { "internalType": "address", "name": "staticCallTargetAddress", "type": "address" }, + { "internalType": "bytes", "name": "staticCallData", "type": "bytes" }, + { "internalType": "bytes32", "name": "expectedReturnDataHash", "type": "bytes32" } + ], + "payable": false, + "stateMutability": "pure", + "type": "function" + }, { "constant": true, "inputs": [{ "internalType": "bytes", "name": "encoded", "type": "bytes" }], @@ -358,6 +381,19 @@ "stateMutability": "pure", "type": "function" }, + { + "constant": true, + "inputs": [ + { "internalType": "address", "name": "staticCallTargetAddress", "type": "address" }, + { "internalType": "bytes", "name": "staticCallData", "type": "bytes" }, + { "internalType": "bytes32", "name": "expectedReturnDataHash", "type": "bytes32" } + ], + "name": "encodeStaticCallAssetData", + "outputs": [{ "internalType": "bytes", "name": "assetData", "type": "bytes" }], + "payable": false, + "stateMutability": "pure", + "type": "function" + }, { "constant": true, "inputs": [ @@ -624,6 +660,15 @@ "payable": false, "stateMutability": "view", "type": "function" + }, + { + "constant": true, + "inputs": [{ "internalType": "bytes", "name": "assetData", "type": "bytes" }], + "name": "revertIfInvalidAssetData", + "outputs": [], + "payable": false, + "stateMutability": "pure", + "type": "function" } ], "devdoc": { @@ -638,6 +683,13 @@ "params": { "encoded": "ABI-encoded revert error." }, "return": "assetProxyId Id of asset proxy.assetProxyAddress The address of the asset proxy." }, + "decodeAssetProxyId(bytes)": { + "details": "Decode AssetProxy identifier ", + "params": { + "assetData": "AssetProxy-compliant asset data describing an ERC-20, ERC-721, ERC1155, or MultiAsset asset." + }, + "return": "The AssetProxy identifier" + }, "decodeAssetProxyTransferError(bytes)": { "details": "Decompose an ABI-encoded AssetProxyTransferError.", "params": { "encoded": "ABI-encoded revert error." }, @@ -656,7 +708,7 @@ "decodeERC20AssetData(bytes)": { "details": "Decode ERC-20 asset data from the format described in the AssetProxy contract specification.", "params": { "assetData": "AssetProxy-compliant asset data describing an ERC-20 asset." }, - "return": "The ERC-20 AssetProxy identifier, and the address of the ERC-20 contract hosting this asset." + "return": "The AssetProxy identifier, and the address of the ERC-20 contract hosting this asset." }, "decodeERC721AssetData(bytes)": { "details": "Decode ERC-721 asset data from the format described in the AssetProxy contract specification.", @@ -713,6 +765,11 @@ "params": { "encoded": "ABI-encoded revert error." }, "return": "errorCode The error code.signerAddress The expected signer of the hash.signature The full signature bytes.errorData The revert data thrown by the validator contract." }, + "decodeStaticCallAssetData(bytes)": { + "details": "Decode StaticCall asset data from the format described in the AssetProxy contract specification.", + "params": { "assetData": "AssetProxy-compliant asset data describing a StaticCall asset" }, + "return": "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." + }, "decodeTransactionError(bytes)": { "details": "Decompose an ABI-encoded TransactionError.", "params": { "encoded": "ABI-encoded revert error." }, @@ -759,6 +816,15 @@ }, "return": "AssetProxy-compliant data describing the set of assets." }, + "encodeStaticCallAssetData(address,bytes,bytes32)": { + "details": "Encode StaticCall asset data into the format described in the AssetProxy contract specification.", + "params": { + "expectedReturnDataHash": "Expected Keccak-256 hash of the StaticCall return data.", + "staticCallData": "Data that will be passed to staticCallTargetAddress in the StaticCall.", + "staticCallTargetAddress": "Target address of StaticCall." + }, + "return": "AssetProxy-compliant asset data describing the set of assets." + }, "getAssetProxyAllowance(address,bytes)": { "details": "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.", "params": { @@ -858,10 +924,10 @@ }, "evm": { "bytecode": { - "object": "0x60806040523480156200001157600080fd5b5060405162005ca838038062005ca88339810160408190526200003491620003be565b600080546001600160a01b0319166001600160a01b0383811691909117918290556040517f60704108000000000000000000000000000000000000000000000000000000008152839283928392911690636070410890620000ba907ff47261b00000000000000000000000000000000000000000000000000000000090600401620003ee565b60206040518083038186803b158015620000d357600080fd5b505afa158015620000e8573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052506200010e9190810190620003be565b600180546001600160a01b0319166001600160a01b039283161790556000546040517f607041080000000000000000000000000000000000000000000000000000000081529116906360704108906200018c907f025717920000000000000000000000000000000000000000000000000000000090600401620003ee565b60206040518083038186803b158015620001a557600080fd5b505afa158015620001ba573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250620001e09190810190620003be565b600280546001600160a01b0319166001600160a01b039283161790556000546040517f607041080000000000000000000000000000000000000000000000000000000081529116906360704108906200025e907fa7cb5fb70000000000000000000000000000000000000000000000000000000090600401620003ee565b60206040518083038186803b1580156200027757600080fd5b505afa1580156200028c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250620002b29190810190620003be565b600380546001600160a01b0319166001600160a01b039283161790556000546040517f6070410800000000000000000000000000000000000000000000000000000000815291169063607041089062000330907fc339d10a0000000000000000000000000000000000000000000000000000000090600401620003ee565b60206040518083038186803b1580156200034957600080fd5b505afa1580156200035e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250620003849190810190620003be565b600480546001600160a01b039283166001600160a01b0319918216179091556005805495909216941693909317909255506200041b915050565b600060208284031215620003d0578081fd5b81516001600160a01b0381168114620003e7578182fd5b9392505050565b7fffffffff0000000000000000000000000000000000000000000000000000000091909116815260200190565b61587d806200042b6000396000f3fe608060405234801561001057600080fd5b506004361061025c5760003560e01c80639a7e752611610145578063cafd3a07116100bd578063d3d862d11161008c578063e4e6e7da11610071578063e4e6e7da1461063a578063e77286eb1461065b578063ee4f5a941461067d5761025c565b8063d3d862d114610605578063e25cabf7146106185761025c565b8063cafd3a071461059e578063d001c5dc146105bf578063d186037f146105d2578063d3637905146105e55761025c565b8063a6627e9f11610114578063b43cffe1116100f9578063b43cffe114610548578063bbb2dcf61461055b578063bc03f9641461057d5761025c565b8063a6627e9f14610512578063acaedc74146105255761025c565b80639a7e7526146104985780639eadc835146104bb578063a0901e51146104df578063a5cd62ba146104f25761025c565b8063459be5e2116101d85780636f83188e116101a75780637b66ad341161018c5780637b66ad34146104515780637d727512146104725780638f4ce479146104855761025c565b80636f83188e1461040d5780637914b2ec146104305761025c565b8063459be5e21461038a5780634dfdac20146103ab578063590aa875146103cb57806365129042146103eb5761025c565b80632322cf761161022f578063327d305411610214578063327d30541461033257806332aae3ad146103455780633db6dc61146103675761025c565b80632322cf76146102f0578063314853ff146103105761025c565b806302d0aec31461026157806304a5618a1461028b5780630d7b7d76146102ad578063165979e1146102ce575b600080fd5b61027461026f3660046149dd565b61069f565b6040516102829291906152e4565b60405180910390f35b61029e6102993660046149dd565b6106fb565b60405161028293929190615387565b6102c06102bb366004614565565b6107a9565b604051610282929190615292565b6102e16102dc3660046149dd565b6107cb565b604051610282939291906154c2565b6103036102fe366004614565565b610828565b6040516102829190615731565b61032361031e3660046149dd565b610850565b604051610282939291906152b9565b6102c06103403660046149dd565b610897565b6103586103533660046149dd565b6108d9565b60405161028293929190615438565b61037a6103753660046149dd565b61092c565b6040516102829493929190615258565b61039d6103983660046149dd565b610976565b6040516102829291906154ab565b6103be6103b936600461448c565b6109cc565b60405161028291906151f2565b6103de6103d936600461435d565b610a4f565b60405161028291906153e7565b6103fe6103f93660046149dd565b610ad3565b60405161028293929190614fdf565b61042061041b3660046149dd565b610b0d565b6040516102829493929190615535565b61044361043e3660046149dd565b61164e565b604051610282929190615301565b61046461045f3660046149dd565b611686565b604051610282929190614fc5565b610303610480366004614565565b6116be565b6104436104933660046149dd565b611dd3565b6104ab6104a63660046149dd565b611e63565b60405161028294939291906154f1565b6104ce6104c93660046149dd565b611ec4565b604051610282959493929190615324565b6103be6104ed3660046145d4565b611f6f565b61050561050036600461463a565b611fe8565b60405161028291906150f9565b6103de6105203660046145a9565b6120ac565b6105386105333660046149dd565b612133565b6040516102829493929190615055565b6103de6105563660046144da565b61216f565b61056e6105693660046149dd565b6121fc565b604051610282939291906153b2565b61059061058b3660046149dd565b6122a9565b6040516102829291906152a0565b6105b16105ac3660046149dd565b6122e2565b604051610282929190615528565b6103be6105cd36600461448c565b612330565b6103036105e0366004614565565b61239e565b6105f86105f3366004614a94565b6129e1565b60405161028291906154dd565b6103de6106133660046147e2565b612f7e565b61062b6106263660046146be565b612fb6565b60405161028293929190615146565b61064d61064836600461448c565b6130ee565b604051610282929190615233565b61066e610669366004614aec565b613107565b604051610282939291906156d5565b61069061068b3660046149dd565b613341565b60405161028293929190615481565b6000806106b3836106ae61337e565b6133a2565b60006106cc60048551866133fc9092919063ffffffff16565b8060200190516106df9190810190614990565b909350905060ff811660068111156106f357fe5b915050915091565b6000808061070f848263ffffffff61343f16565b92506001600160e01b031983167f02571792000000000000000000000000000000000000000000000000000000001461077d576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016107749061569e565b60405180910390fd5b61078e84601063ffffffff61347316565b91506107a184602463ffffffff6134a616565b929491935050565b6000806107b684846116be565b91506107c2848461239e565b90509250929050565b60008060006107dc846106ae6134b2565b60006107f560048651876133fc9092919063ffffffff16565b8060200190516108089190810190614d20565b9094509250905060ff8116600281111561081e57fe5b9350509193909250565b600080600061083785856107a9565b9150915061084582826134d6565b925050505b92915050565b6000606080610861846106ae6134ec565b835161087790859060049063ffffffff6133fc16565b80602001905161088a9190810190614930565b9196909550909350915050565b6000806108a6836106ae613510565b82516108bc90849060049063ffffffff6133fc16565b8060200190516108cf91908101906148d2565b9094909350915050565b60008060606108ea846106ae613534565b600061090360048651876133fc9092919063ffffffff16565b8060200190516109169190810190614cd4565b9094509250905060ff8116600181111561081e57fe5b60008060608061093e856106ae613558565b845161095490869060049063ffffffff6133fc16565b806020019051610967919081019061488e565b92989197509550909350915050565b600080610985836106ae61357c565b600061099e60048551866133fc9092919063ffffffff16565b8060200190516109b19190810190614c07565b9250905060ff811660038111156109c457fe5b925050915091565b6060600082519050806040519080825280602002602001820160405280156109fe578160200160208202803883390190505b50915060005b818114610a4757610a2885858381518110610a1b57fe5b602002602001015161239e565b838281518110610a3457fe5b6020908102919091010152600101610a04565b505092915050565b6040516060907ff47261b00000000000000000000000000000000000000000000000000000000090610a85908490602401614fb1565b60408051601f198184030181529190526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff166001600160e01b0319909316929092179091529050919050565b6000806000610ae4846106ae6135a0565b8351610afa90859060049063ffffffff6133fc16565b80602001905161088a91908101906143b2565b60608080806000610b24868263ffffffff61343f16565b90506001600160e01b031981167fdedfc1f1000000000000000000000000000000000000000000000000000000001415610b95576040518060400160405280601181526020017f626174636843616e63656c4f72646572730000000000000000000000000000008152509450611124565b6001600160e01b031981167f9694a402000000000000000000000000000000000000000000000000000000001415610c04576040518060400160405280600f81526020017f626174636846696c6c4f726465727300000000000000000000000000000000008152509450611124565b6001600160e01b031981167f8ea8dfe4000000000000000000000000000000000000000000000000000000001415610c73576040518060400160405280601681526020017f626174636846696c6c4f72646572734e6f5468726f77000000000000000000008152509450611124565b6001600160e01b031981167fbeee2e14000000000000000000000000000000000000000000000000000000001415610ce2576040518060400160405280601581526020017f626174636846696c6c4f724b696c6c4f726465727300000000000000000000008152509450611124565b6001600160e01b031981167f2da62987000000000000000000000000000000000000000000000000000000001415610d51576040518060400160405280600b81526020017f63616e63656c4f726465720000000000000000000000000000000000000000008152509450611124565b6001600160e01b031981167f9b44d556000000000000000000000000000000000000000000000000000000001415610dc0576040518060400160405280600981526020017f66696c6c4f7264657200000000000000000000000000000000000000000000008152509450611124565b6001600160e01b031981167fe14b58c4000000000000000000000000000000000000000000000000000000001415610e2f576040518060400160405280600f81526020017f66696c6c4f724b696c6c4f7264657200000000000000000000000000000000008152509450611124565b6001600160e01b031981167f78d29ac1000000000000000000000000000000000000000000000000000000001415610e9e576040518060400160405280601681526020017f6d61726b65744275794f72646572734e6f5468726f77000000000000000000008152509450611124565b6001600160e01b031981167f369da099000000000000000000000000000000000000000000000000000000001415610f0d576040518060400160405280601781526020017f6d61726b657453656c6c4f72646572734e6f5468726f770000000000000000008152509450611124565b6001600160e01b031981167f8bc8efb3000000000000000000000000000000000000000000000000000000001415610f7c576040518060400160405280601981526020017f6d61726b65744275794f726465727346696c6c4f724b696c6c000000000000008152509450611124565b6001600160e01b031981167fa6c3bf33000000000000000000000000000000000000000000000000000000001415610feb576040518060400160405280601a81526020017f6d61726b657453656c6c4f726465727346696c6c4f724b696c6c0000000000008152509450611124565b6001600160e01b031981167f88ec79fb00000000000000000000000000000000000000000000000000000000141561105a576040518060400160405280600b81526020017f6d617463684f72646572730000000000000000000000000000000000000000008152509450611124565b6001600160e01b031981167f4f9559b10000000000000000000000000000000000000000000000000000000014806110bb57506001600160e01b031981167f2280c91000000000000000000000000000000000000000000000000000000000145b156110f2576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161077490615630565b6040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610774906155f9565b6001600160e01b031981167fdedfc1f10000000000000000000000000000000000000000000000000000000014156111c957855161116c90879060049063ffffffff6135c416565b80602001905161117f9190810190614607565b604080516000808252602082019092529195505b50604080516000808252602082019092529194506111c1565b60608152602001906001900390816111ac5790505b509150611646565b6001600160e01b031981167fbeee2e1400000000000000000000000000000000000000000000000000000000148061122a57506001600160e01b031981167f9694a40200000000000000000000000000000000000000000000000000000000145b8061125e57506001600160e01b031981167f8ea8dfe400000000000000000000000000000000000000000000000000000000145b156112785761126c86613644565b91955093509150611646565b6001600160e01b031981167f2da629870000000000000000000000000000000000000000000000000000000014156113605760408051600180825281830190925290816020015b6112c7613c90565b8152602001906001900390816112bf57505086519094506112f290879060049063ffffffff6135c416565b8060200190516113059190810190614a61565b8460008151811061131257fe5b602002602001018190525060006040519080825280602002602001820160405280156111935781602001602082028038833901905050604080516000808252602082019092529194506111c1565b6001600160e01b031981167fe14b58c40000000000000000000000000000000000000000000000000000000014806113c157506001600160e01b031981167f9b44d55600000000000000000000000000000000000000000000000000000000145b156113cf5761126c86613673565b6001600160e01b031981167f78d29ac100000000000000000000000000000000000000000000000000000000148061143057506001600160e01b031981167f369da09900000000000000000000000000000000000000000000000000000000145b8061146457506001600160e01b031981167f8bc8efb300000000000000000000000000000000000000000000000000000000145b8061149857506001600160e01b031981167fa6c3bf3300000000000000000000000000000000000000000000000000000000145b156114a65761126c8661376d565b6001600160e01b031981167f88ec79fb000000000000000000000000000000000000000000000000000000001415611646576114e0613c90565b6114e8613c90565b60608061150260048b518c6135c49092919063ffffffff16565b8060200190516115159190810190614b43565b604080516002808252606082019092529498509296509094509250816020015b61153d613c90565b815260200190600190039081611535579050509750838860008151811061156057fe5b6020026020010181905250828860018151811061157957fe5b602090810291909101015260408051600280825260608201909252908160200160208202803883390190505096508360a00151876000815181106115b957fe5b6020026020010181815250508260a00151876001815181106115d757fe5b60209081029190910101526040805160028082526060820190925290816020015b60608152602001906001900390816115f8579050509550818660008151811061161d57fe5b6020026020010181905250808660018151811061163657fe5b6020026020010181905250505050505b509193509193565b60008061165d836106ae6137e1565b825161167390849060049063ffffffff6133fc16565b8060200190516108cf91908101906149b4565b600080611695836106ae613805565b82516116ab90849060049063ffffffff6133fc16565b8060200190516108cf9190810190614379565b6000806116d1838263ffffffff61343f16565b90506001600160e01b031981167ff47261b000000000000000000000000000000000000000000000000000000000141561184657600061171884601063ffffffff61347316565b6040519091506060907f70a082310000000000000000000000000000000000000000000000000000000090611751908890602401614fb1565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050905060006060836001600160a01b0316836040516117cc9190614f95565b600060405180830381855afa9150503d8060008114611807576040519150601f19603f3d011682016040523d82523d6000602084013e61180c565b606091505b509150915081801561181f575080516020145b61182a57600061183b565b61183b81600063ffffffff6134a616565b955050505050611dcc565b6001600160e01b031981167f025717920000000000000000000000000000000000000000000000000000000014156119e157600080611884856106fb565b6040519194509250606091507f6352211e00000000000000000000000000000000000000000000000000000000906118c0908490602401615731565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050905060006060846001600160a01b03168360405161193b9190614f95565b600060405180830381855afa9150503d8060008114611976576040519150601f19603f3d011682016040523d82523d6000602084013e61197b565b606091505b50915091506000828015611990575081516020145b61199b5760006119ac565b6119ac82600c63ffffffff61347316565b9050896001600160a01b0316816001600160a01b0316146119ce5760006119d1565b60015b60ff169750505050505050611dcc565b6001600160e01b031981167fa7cb5fb7000000000000000000000000000000000000000000000000000000001415611bc4576000606080611a2186611ec4565b5081519296509094509250905060005b818114611bba5783516060907efdd58e00000000000000000000000000000000000000000000000000000000908b90879085908110611a6c57fe5b6020026020010151604051602401611a85929190615089565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050905060006060876001600160a01b031683604051611b009190614f95565b600060405180830381855afa9150503d8060008114611b3b576040519150601f19603f3d011682016040523d82523d6000602084013e611b40565b606091505b50915091506000828015611b55575081516020145b611b60576000611b71565b611b7182600063ffffffff6134a616565b90506000878681518110611b8157fe5b60200260200101518281611b9157fe5b0490508b811080611ba057508b155b15611ba957809b505b505060019093019250611a31915050565b5050505050611dcc565b6001600160e01b031981167fc339d10a000000000000000000000000000000000000000000000000000000001415611d15576040516060907fa85e59e40000000000000000000000000000000000000000000000000000000090611c33908690600090819081906024016153fa565b60408051601f198184030181529181526020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff166001600160e01b03199094169390931790925260045491519092506000916001600160a01b031690611c9a908490614f95565b600060405180830381855afa9150503d8060008114611cd5576040519150601f19603f3d011682016040523d82523d6000602084013e611cda565b606091505b5050905080611cea576000611d0c565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff5b93505050611dcc565b6001600160e01b031981167f94cfcdd7000000000000000000000000000000000000000000000000000000001415611dcc57606080611d53856121fc565b80519194509250905060005b818114611dc7576000611d8589858481518110611d7857fe5b60200260200101516116be565b90506000858381518110611d9557fe5b60200260200101518281611da557fe5b04905087811080611db4575087155b15611dbd578097505b5050600101611d5f565b505050505b5092915050565b600080611de6838263ffffffff61343f16565b91506001600160e01b031982167ff47261b00000000000000000000000000000000000000000000000000000000014611e4b576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016107749061569e565b611e5c83601063ffffffff61347316565b9050915091565b60008060006060611e76856106ae613829565b6000611e8f60048751886133fc9092919063ffffffff16565b806020019051611ea29190810190614c76565b91965094509250905060ff81166006811115611eba57fe5b9450509193509193565b60008060608080611edb868563ffffffff61343f16565b94506001600160e01b031985167fa7cb5fb70000000000000000000000000000000000000000000000000000000014611f40576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016107749061569e565b505050506024828101516044840151606485015160848601519496929591820184019490820184019391010190565b6060808251604051908082528060200260200182016040528015611f9d578160200160208202803883390190505b50905060005b83518114611dcc57838181518110611fb757fe5b60200260200101516001600160a01b031631828281518110611fd557fe5b6020908102919091010152600101611fa3565b60606000845190508060405190808252806020026020018201604052801561201a578160200160208202803883390190505b50915060005b8181146120a25761206b86828151811061203657fe5b602002602001015186838151811061204a57fe5b602002602001015186848151811061205e57fe5b60200260200101516129e1565b83828151811061207757fe5b6020026020010190600481111561208a57fe5b9081600481111561209757fe5b905250600101612020565b50505b9392505050565b6040516060907f0257179200000000000000000000000000000000000000000000000000000000906120e49085908590602401615089565b60408051601f198184030181529190526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff166001600160e01b031990931692909217909152905092915050565b60006060806060612146856106ae61384d565b845161215c90869060049063ffffffff6133fc16565b80602001905161096791908101906143f4565b6040516060907fa7cb5fb700000000000000000000000000000000000000000000000000000000906121ab908790879087908790602401615003565b60408051601f198184030181529190526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff166001600160e01b0319909316929092179091529050949350505050565b6000606080612211848463ffffffff61343f16565b92506001600160e01b031983167f94cfcdd70000000000000000000000000000000000000000000000000000000014612276576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016107749061569e565b835161228c90859060049063ffffffff6135c416565b80602001905161229f9190810190614817565b9395909450915050565b600060606122b9836106ae613871565b82516122cf90849060049063ffffffff6133fc16565b8060200190516108cf91908101906148f5565b6000806122f1836106ae613895565b600061230a60048551866133fc9092919063ffffffff16565b80602001905161231d9190810190614c07565b9250905060ff811660018111156109c457fe5b606060008251905080604051908082528060200260200182016040528015612362578160200160208202803883390190505b50915060005b818114610a475761237f85858381518110611d7857fe5b83828151811061238b57fe5b6020908102919091010152600101612368565b6000806123b1838263ffffffff61343f16565b90506001600160e01b031981167f94cfcdd7000000000000000000000000000000000000000000000000000000001415612463576060806123f1856121fc565b80519194509250905060005b81811461245857600061241689858481518110610a1b57fe5b9050600085838151811061242657fe5b6020026020010151828161243657fe5b04905087811080612445575087155b1561244e578097505b50506001016123fd565b5061084a9350505050565b6001600160e01b031981167ff47261b00000000000000000000000000000000000000000000000000000000014156124ee5760006124a884601063ffffffff61347316565b6001546040519192506060917fdd62ed3e00000000000000000000000000000000000000000000000000000000916117519189916001600160a01b031690602401614fc5565b6001600160e01b031981167f025717920000000000000000000000000000000000000000000000000000000014156127de5760008061252c856106fb565b600254604051929550909350606092507fe985e9c50000000000000000000000000000000000000000000000000000000091612578918a916001600160a01b0390911690602401614fc5565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050905060006060846001600160a01b0316836040516125f39190614f95565b600060405180830381855afa9150503d806000811461262e576040519150601f19603f3d011682016040523d82523d6000602084013e612633565b606091505b509150915081158061264757508051602014155b80612663575061265e81600063ffffffff6134a616565b600114155b156127b1576040516060907f081812fc000000000000000000000000000000000000000000000000000000009061269e908790602401615731565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff83818316178352505050509050856001600160a01b0316816040516127159190614f95565b600060405180830381855afa9150503d8060008114612750576040519150601f19603f3d011682016040523d82523d6000602084013e612755565b606091505b509093509150828015612769575081516020145b801561279857506002546001600160a01b031661278d83600c63ffffffff61347316565b6001600160a01b0316145b6127a35760006127a6565b60015b60ff16975050611bba565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff96505050505050611dcc565b6001600160e01b031981167fa7cb5fb700000000000000000000000000000000000000000000000000000000141561298657600061281b84611ec4565b5050600354604051929450606093507fe985e9c50000000000000000000000000000000000000000000000000000000092612865925089916001600160a01b031690602401614fc5565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050905060006060836001600160a01b0316836040516128e09190614f95565b600060405180830381855afa9150503d806000811461291b576040519150601f19603f3d011682016040523d82523d6000602084013e612920565b606091505b5091509150818015612933575080516020145b801561294f575061294b81600063ffffffff6134a616565b6001145b61295a57600061183b565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff955050505050611dcc565b6001600160e01b031981167fc339d10a000000000000000000000000000000000000000000000000000000001415611dcc57507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff9392505050565b60006129eb613d23565b612a7c8584600560009054906101000a90046001600160a01b03166001600160a01b0316631ce4c78b6040518163ffffffff1660e01b815260040160206040518083038186803b158015612a3e57600080fd5b505afa158015612a52573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250612a769190810190614bef565b3a6138b9565b60408051600480825260a0820190925291925060609190816020015b6060815260200190600190039081612a9857505060408051600480825260a082019092529192506060919060208201608080388339505060408051600480825260a08201909252929350606092915060208201608080388339505060408051600480825260a0820190925292935060609291506020820160808038833901905050905088610160015184600081518110612b2e57fe5b60200260200101819052508783600081518110612b4757fe5b60200260200101906001600160a01b031690816001600160a01b031681525050886000015182600081518110612b7957fe5b60200260200101906001600160a01b031690816001600160a01b0316815250508681600081518110612ba757fe5b60200260200101818152505088610140015184600181518110612bc657fe5b6020026020010181905250886000015183600181518110612be357fe5b60200260200101906001600160a01b031690816001600160a01b0316815250508782600181518110612c1157fe5b60200260200101906001600160a01b031690816001600160a01b031681525050846000015181600181518110612c4357fe5b602002602001018181525050886101a0015184600281518110612c6257fe5b60200260200101819052508783600281518110612c7b57fe5b60200260200101906001600160a01b031690816001600160a01b031681525050886040015182600281518110612cad57fe5b60200260200101906001600160a01b031690816001600160a01b031681525050846060015181600281518110612cdf57fe5b60200260200101818152505088610180015184600381518110612cfe57fe5b6020026020010181905250886000015183600381518110612d1b57fe5b60200260200101906001600160a01b031690816001600160a01b031681525050886040015182600381518110612d4d57fe5b60200260200101906001600160a01b031690816001600160a01b031681525050846040015181600381518110612d7f57fe5b60209081029190910101526040516060907fb04fbddd0000000000000000000000000000000000000000000000000000000090612dc69087908790879087906024016150a2565b60408051601f198184030181529181526020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff166001600160e01b03199094169390931790925260055491519092506060916001600160a01b031690612e2d908490614f95565b6000604051808303816000865af19150503d8060008114612e6a576040519150601f19603f3d011682016040523d82523d6000602084013e612e6f565b606091505b50915060009050612e86828263ffffffff61343f16565b9050612e90613534565b6001600160e01b031982811691161415612ed2576000612eaf836108d9565b5091505060ff81166004811115612ec257fe5b99505050505050505050506120a5565b612eda6134ec565b6001600160e01b031982811691161415612f0d576000612ef983610850565b509091505060ff81166004811115612ec257fe5b815160208301207ff43f26ea5a94b478394a975e856464913dc1a8a1ca70939d974aa7c238aa0ce01415612f4c576004985050505050505050506120a5565b6040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610774906155c2565b6040516060907f94cfcdd700000000000000000000000000000000000000000000000000000000906120e49085908590602401615205565b606080606060008551905080604051908082528060200260200182016040528015612ffb57816020015b612fe8613d52565b815260200190600190039081612fe05790505b50935080604051908082528060200260200182016040528015613028578160200160208202803883390190505b50925080604051908082528060200260200182016040528015613055578160200160208202803883390190505b50915060005b8181146130e55761309287828151811061307157fe5b602002602001015187838151811061308557fe5b6020026020010151613107565b87518890859081106130a057fe5b602002602001018785815181106130b357fe5b602002602001018786815181106130c657fe5b931515602094850291909101909301929092529190525260010161305b565b50509250925092565b6060806130fb8484612330565b91506107c284846109cc565b61310f613d52565b600080546040517f9d3fa4b900000000000000000000000000000000000000000000000000000000815282916001600160a01b031690639d3fa4b9906131599088906004016156f9565b60606040518083038186803b15801561317157600080fd5b505afa158015613185573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052506131a99190810190614a10565b85516000546040517fa12dcc6f00000000000000000000000000000000000000000000000000000000815292955090916001600160a01b039091169063a12dcc6f906131fb908990899060040161570c565b60206040518083038186803b15801561321357600080fd5b505afa158015613227573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525061324b919081019061486e565b9150600061325e82886101400151610828565b60a088015160c08901516101808a01516101408b01519394509192909160009161328d9163ffffffff61393016565b156132ba576132b3846132ad848d6080015161395590919063ffffffff16565b85613971565b9050613313565b816132ce576132b3848b6080015185613971565b60006132df868c6101800151610828565b905060006132f2868d6080015187613971565b90506000613301838688613971565b905061330d82826134d6565b93505050505b61333361332d89604001518561399b90919063ffffffff16565b826134d6565b965050505050509250925092565b6000806000613352846106ae6139ba565b600061336b60048651876133fc9092919063ffffffff16565b8060200190516108089190810190614c34565b7ffdb6ca8d0000000000000000000000000000000000000000000000000000000090565b60006133af83600061343f565b90506001600160e01b0319808216908316146133f7576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161077490615667565b505050565b60608183111561341a5761341a613415600085856139de565b613a4d565b83518211156134335761343361341560018487516139de565b50819003910190815290565b600081600401835110156134605761346061341560038551856004016139de565b5001602001516001600160e01b03191690565b600081601401835110156134945761349461341560048551856014016139de565b5001601401516001600160a01b031690565b60006120a58383613a55565b7f18e4b1410000000000000000000000000000000000000000000000000000000090565b60008183106134e557816120a5565b5090919050565b7f4678472b0000000000000000000000000000000000000000000000000000000090565b7fb6555d6f0000000000000000000000000000000000000000000000000000000090565b7f488219a60000000000000000000000000000000000000000000000000000000090565b7f1b8388f70000000000000000000000000000000000000000000000000000000090565b7fe94a7ed00000000000000000000000000000000000000000000000000000000090565b7f4ad312750000000000000000000000000000000000000000000000000000000090565b6060818311156135dd576135dd613415600085856139de565b83518211156135f6576135f661341560018487516139de565b8282036040519080825280601f01601f191660200182016040528015613623576020820181803883390190505b5090506120a561363282613a7f565b8461363c87613a7f565b018351613a85565b606080606061366060048551866135c49092919063ffffffff16565b80602001905161088a9190810190614715565b60408051600180825281830190925260609182918291816020015b613696613c90565b81526020019060019003908161368e5750506040805160018082528183019092529194506020808301908038833901905050604080516001808252818301909252919350816020015b60608152602001906001900390816136df575050845190915061370c90859060049063ffffffff6135c416565b80602001905161371f9190810190614b9c565b8560008151811061372c57fe5b602002602001018560008151811061374057fe5b602002602001018560008151811061375457fe5b6020908102919091010192909252919052529193909250565b6040805160018082528183019092526060918291829160208083019080388339505085519193506137a99186915060049063ffffffff6135c416565b8060200190516137bc919081019061478f565b845185906000906137c957fe5b60209081029190910101919091529095929450925050565b7f11c7b7200000000000000000000000000000000000000000000000000000000090565b7fa15c0d060000000000000000000000000000000000000000000000000000000090565b7f7e5a23180000000000000000000000000000000000000000000000000000000090565b7f5bd0428d0000000000000000000000000000000000000000000000000000000090565b7f20d11f610000000000000000000000000000000000000000000000000000000090565b7ff59851840000000000000000000000000000000000000000000000000000000090565b6138c1613d23565b6020810184905260a085015160808601516138dd918691613b2a565b815260a085015160c08601516138f4918691613b2a565b604082015260a085015160e086015161390e918691613b2a565b6060820152613923828463ffffffff613b5e16565b6080820152949350505050565b6000815183511480156120a55750508051602091820120825192909101919091201490565b6000828201838110156120a5576120a561341560008686613b8b565b600061399383613987868563ffffffff613b5e16565b9063ffffffff613baa16565b949350505050565b6000828211156139b4576139b461341560028585613b8b565b50900390565b7fe53c76c80000000000000000000000000000000000000000000000000000000090565b6060632800659560e01b8484846040516024016139fd939291906154cf565b60408051601f198184030181529190526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff166001600160e01b03199093169290921790915290509392505050565b805160208201fd5b60008160200183511015613a7657613a7661341560058551856020016139de565b50016020015190565b60200190565b6020811015613aaf576001816020036101000a0380198351168185511680821786525050506133f7565b82821415613abc576133f7565b82821115613af65760208103905080820181840181515b82851015613aee578451865260209586019590940193613ad3565b9052506133f7565b60208103905080820181840183515b81861215613b215782518252601f199283019290910190613b05565b85525050505050565b6000613b37848484613bd4565b15613b4a57613b4a613415858585613c3a565b61399383613987868563ffffffff613b5e16565b600082613b6d5750600061084a565b82820282848281613b7a57fe5b04146120a5576120a5613415600186865b606063e946c1bb60e01b8484846040516024016139fd93929190615460565b600081613bc057613bc061341560038585613b8b565b6000828481613bcb57fe5b04949350505050565b600082613be657613be6613415613c59565b811580613bf1575083155b15613bfe575060006120a5565b60008380613c0857fe5b8584099050613c1d858463ffffffff613b5e16565b613c2f826103e863ffffffff613b5e16565b101595945050505050565b606063339f3de260e01b8484846040516024016139fd9392919061573a565b60408051808201909152600481527fa791837c00000000000000000000000000000000000000000000000000000000602082015290565b604051806101c0016040528060006001600160a01b0316815260200160006001600160a01b0316815260200160006001600160a01b0316815260200160006001600160a01b03168152602001600081526020016000815260200160008152602001600081526020016000815260200160008152602001606081526020016060815260200160608152602001606081525090565b6040518060a0016040528060008152602001600081526020016000815260200160008152602001600081525090565b604080516060810182526000808252602082018190529181019190915290565b803561084a81615816565b805161084a81615816565b600082601f830112613d98578081fd5b8135613dab613da682615777565b615750565b818152915060208083019084810181840286018201871015613dcc57600080fd5b60005b84811015611dc7578135613de281615816565b84529282019290820190600101613dcf565b600082601f830112613e04578081fd5b8151613e12613da682615777565b8181529150602080830190840160005b83811015613e4f57613e3a8760208451890101614074565b83526020928301929190910190600101613e22565b5050505092915050565b600082601f830112613e69578081fd5b8135613e77613da682615777565b8181529150602080830190840160005b83811015613e4f57613e9f8760208435890101614026565b83526020928301929190910190600101613e87565b600082601f830112613ec4578081fd5b8151613ed2613da682615777565b8181529150602080830190840160005b83811015613e4f57613efa8760208451890101614209565b83526020928301929190910190600101613ee2565b600082601f830112613f1f578081fd5b8135613f2d613da682615777565b8181529150602080830190840160005b83811015613e4f57613f5587602084358901016140ba565b83526020928301929190910190600101613f3d565b600082601f830112613f7a578081fd5b8151613f88613da682615777565b818152915060208083019084810181840286018201871015613fa957600080fd5b60005b84811015611dc757815184529282019290820190600101613fac565b600082601f830112613fd8578081fd5b8135613fe6613da682615777565b81815291506020808301908481018184028601820187101561400757600080fd5b60005b84811015611dc75781358452928201929082019060010161400a565b600082601f830112614036578081fd5b8135614044613da682615797565b915080825283602082850101111561405b57600080fd5b8060208401602084013760009082016020015292915050565b600082601f830112614084578081fd5b8151614092613da682615797565b91508082528360208285010111156140a957600080fd5b611dcc8160208401602086016157bb565b60006101c08083850312156140cd578182fd5b6140d681615750565b9150506140e38383613d72565b81526140f28360208401613d72565b60208201526141048360408401613d72565b60408201526141168360608401613d72565b60608201526080820135608082015260a082013560a082015260c082013560c082015260e082013560e08201526101008083013581830152506101208083013581830152506101408083013567ffffffffffffffff8082111561417857600080fd5b61418486838701614026565b838501526101609250828501359150808211156141a057600080fd5b6141ac86838701614026565b838501526101809250828501359150808211156141c857600080fd5b6141d486838701614026565b838501526101a09250828501359150808211156141f057600080fd5b506141fd85828601614026565b82840152505092915050565b60006101c080838503121561421c578182fd5b61422581615750565b9150506142328383613d7d565b81526142418360208401613d7d565b60208201526142538360408401613d7d565b60408201526142658360608401613d7d565b60608201526080820151608082015260a082015160a082015260c082015160c082015260e082015160e08201526101008083015181830152506101208083015181830152506101408083015167ffffffffffffffff808211156142c757600080fd5b6142d386838701614074565b838501526101609250828501519150808211156142ef57600080fd5b6142fb86838701614074565b8385015261018092508285015191508082111561431757600080fd5b61432386838701614074565b838501526101a092508285015191508082111561433f57600080fd5b506141fd85828601614074565b805160ff8116811461084a57600080fd5b60006020828403121561436e578081fd5b81356120a581615816565b6000806040838503121561438b578081fd5b825161439681615816565b60208401519092506143a781615816565b809150509250929050565b6000806000606084860312156143c6578081fd5b83516143d181615816565b60208501519093506143e281615816565b80925050604084015190509250925092565b60008060008060808587031215614409578182fd5b845161441481615816565b602086015190945067ffffffffffffffff80821115614431578384fd5b61443d88838901614074565b94506040870151915080821115614452578384fd5b61445e88838901614074565b93506060870151915080821115614473578283fd5b5061448087828801614074565b91505092959194509250565b6000806040838503121561449e578182fd5b82356144a981615816565b9150602083013567ffffffffffffffff8111156144c4578182fd5b6144d085828601613e59565b9150509250929050565b600080600080608085870312156144ef578182fd5b84356144fa81615816565b9350602085013567ffffffffffffffff80821115614516578384fd5b61452288838901613fc8565b94506040870135915080821115614537578384fd5b61454388838901613fc8565b93506060870135915080821115614558578283fd5b5061448087828801614026565b60008060408385031215614577578182fd5b823561458281615816565b9150602083013567ffffffffffffffff81111561459d578182fd5b6144d085828601614026565b600080604083850312156145bb578182fd5b82356145c681615816565b946020939093013593505050565b6000602082840312156145e5578081fd5b813567ffffffffffffffff8111156145fb578182fd5b61399384828501613d88565b600060208284031215614618578081fd5b815167ffffffffffffffff81111561462e578182fd5b61399384828501613eb4565b60008060006060848603121561464e578081fd5b833567ffffffffffffffff80821115614665578283fd5b61467187838801613f0f565b94506020860135915080821115614686578283fd5b61469287838801613d88565b935060408601359150808211156146a7578283fd5b506146b486828701613fc8565b9150509250925092565b600080604083850312156146d0578182fd5b823567ffffffffffffffff808211156146e7578384fd5b6146f386838701613f0f565b93506020850135915080821115614708578283fd5b506144d085828601613e59565b600080600060608486031215614729578081fd5b835167ffffffffffffffff80821115614740578283fd5b61474c87838801613eb4565b94506020860151915080821115614761578283fd5b61476d87838801613f6a565b93506040860151915080821115614782578283fd5b506146b486828701613df4565b6000806000606084860312156147a3578081fd5b835167ffffffffffffffff808211156147ba578283fd5b6147c687838801613eb4565b9450602086015193506040860151915080821115614782578283fd5b600080604083850312156147f4578182fd5b823567ffffffffffffffff8082111561480b578384fd5b6146f386838701613fc8565b60008060408385031215614829578182fd5b825167ffffffffffffffff80821115614840578384fd5b61484c86838701613f6a565b93506020850151915080821115614861578283fd5b506144d085828601613df4565b60006020828403121561487f578081fd5b815180151581146120a5578182fd5b600080600080608085870312156148a3578182fd5b8451935060208501516148b581615816565b604086015190935067ffffffffffffffff80821115614452578384fd5b600080604083850312156148e4578182fd5b505080516020909101519092909150565b60008060408385031215614907578182fd5b82519150602083015167ffffffffffffffff811115614924578182fd5b6144d085828601614074565b600080600060608486031215614944578081fd5b83519250602084015167ffffffffffffffff80821115614962578283fd5b61496e87838801614074565b93506040860151915080821115614983578283fd5b506146b486828701614074565b600080604083850312156149a2578182fd5b8251915060208301516143a78161582b565b600080604083850312156149c6578182fd5b82516001600160e01b031981168114614396578283fd5b6000602082840312156149ee578081fd5b813567ffffffffffffffff811115614a04578182fd5b61399384828501614026565b60006060828403128015614a22578182fd5b8015614a2c578182fd5b50614a376060615750565b8251614a428161582b565b8152602083810151908201526040928301519281019290925250919050565b600060208284031215614a72578081fd5b815167ffffffffffffffff811115614a88578182fd5b61399384828501614209565b600080600060608486031215614aa8578081fd5b833567ffffffffffffffff811115614abe578182fd5b614aca868287016140ba565b9350506020840135614adb81615816565b929592945050506040919091013590565b60008060408385031215614afe578182fd5b823567ffffffffffffffff80821115614b15578384fd5b614b21868387016140ba565b93506020850135915080821115614b36578283fd5b506144d085828601614026565b60008060008060808587031215614b58578182fd5b845167ffffffffffffffff80821115614b6f578384fd5b614b7b88838901614209565b95506020870151915080821115614b90578384fd5b61443d88838901614209565b600080600060608486031215614bb0578081fd5b835167ffffffffffffffff80821115614bc7578283fd5b614bd387838801614209565b9450602086015193506040860151915080821115614983578283fd5b600060208284031215614c00578081fd5b5051919050565b60008060408385031215614c19578182fd5b8251614c248161582b565b6020939093015192949293505050565b600080600060608486031215614c48578081fd5b8351614c538161582b565b602085015160408601519194509250614c6b81615816565b809150509250925092565b60008060008060808587031215614c8b578182fd5b614c95868661434c565b9350602085015192506040850151614cac81615816565b606086015190925067ffffffffffffffff811115614cc8578182fd5b61448087828801614074565b600080600060608486031215614ce8578081fd5b614cf2858561434c565b925060208401519150604084015167ffffffffffffffff811115614d14578182fd5b6146b486828701614074565b600080600060608486031215614d34578081fd5b614d3e858561434c565b925060208401519150604084015190509250925092565b1515815260200190565b6000614d6b8383614e78565b505060600190565b6001600160a01b03169052565b6000815180845260208401935060208301825b82811015614dba5781516001600160a01b0316865260209586019590910190600101614d93565b5093949350505050565b600081518084526020840180819550602083028101915060208501845b84811015614e0f578284038852614df9848351614e4c565b6020988901989094509190910190600101614de1565b50919695505050505050565b6000815180845260208401935060208301825b82811015614dba578151865260209586019590910190600101614e2e565b60008151808452614e648160208601602086016157bb565b601f01601f19169290920160200192915050565b805160ff16825260208082015190830152604090810151910152565b60006101c0614ea4848451614d73565b6020830151614eb66020860182614d73565b506040830151614ec96040860182614d73565b506060830151614edc6060860182614d73565b506080830151608085015260a083015160a085015260c083015160c085015260e083015160e0850152610100808401518186015250610120808401518186015250610140808401518282870152614f3583870182614e4c565b91505061016091508184015185820383870152614f528282614e4c565b925050506101808084015185830382870152614f6e8382614e4c565b9150506101a091508184015185820383870152614f8b8282614e4c565b9695505050505050565b60008251614fa78184602087016157bb565b9190910192915050565b6001600160a01b0391909116815260200190565b6001600160a01b0392831681529116602082015260400190565b6001600160a01b039384168152919092166020820152604081019190915260600190565b60006001600160a01b0386168252608060208301526150256080830186614e1b565b82810360408401526150378186614e1b565b83810360608501526150498186614e4c565b98975050505050505050565b60006001600160a01b0386168252608060208301526150776080830186614e4c565b82810360408401526150378186614e4c565b6001600160a01b03929092168252602082015260400190565b6000608082526150b56080830187614dc4565b82810360208401526150c78187614d80565b83810360408501526150d98187614d80565b91505082810360608401526150ee8185614e1b565b979650505050505050565b602080825282518282018190526000918401906040840190835b8181101561513b5783516005811061512757fe5b835260209384019390920191600101615113565b509095945050505050565b6000606082016060835280865161515d8184615731565b9150602088019250835b8181101561518b5761517a838551614d5f565b602094909401939250600101615167565b5050838103602085015261519f8187614e1b565b91505082810360408401528084516151b78184615731565b9150602086019250835b818110156151e5576151d4838551614d55565b6020949094019392506001016151c1565b5090979650505050505050565b6000602082526120a56020830184614e1b565b6000604082526152186040830185614e1b565b828103602084015261522a8185614dc4565b95945050505050565b6000604082526152466040830185614e1b565b828103602084015261522a8185614e1b565b60008582526001600160a01b0385166020830152608060408301526152806080830185614e4c565b82810360608401526150ee8185614e4c565b918252602082015260400190565b6000838252604060208301526139936040830184614e4c565b6000848252606060208301526152d26060830185614e4c565b8281036040840152614f8b8185614e4c565b828152604081016152f48361580c565b8260208301529392505050565b6001600160e01b03199290921682526001600160a01b0316602082015260400190565b60006001600160e01b0319871682526001600160a01b038616602083015260a0604083015261535660a0830186614e1b565b82810360608401526153688186614e1b565b838103608085015261537a8186614e4c565b9998505050505050505050565b6001600160e01b03199390931683526001600160a01b03919091166020830152604082015260600190565b60006001600160e01b031985168252606060208301526153d56060830185614e1b565b8281036040840152614f8b8185614dc4565b6000602082526120a56020830184614e4c565b60006080825261540d6080830187614e4c565b6001600160a01b03958616602084015293909416604082015260ff9190911660609091015292915050565b6000615443856157eb565b8482528360208301526060604083015261522a6060830184614e4c565b6060810161546d856157f8565b938152602081019290925260409091015290565b6060810161548e85615802565b93815260208101929092526001600160a01b031660409091015290565b604081016154b8846157f8565b9281526020015290565b6060810161546d85615802565b606081016008851061546d57fe5b60208101600583106154eb57fe5b91905290565b60006154fc8661580c565b8582528460208301526001600160a01b038416604083015260806060830152614f8b6080830184614e4c565b604081016154b8846157eb565b6000608082526155486080830187614e4c565b602083820381850152818751808452828401915082838202850101838a01865b8381101561559657601f19878403018552615584838351614e94565b94860194925090850190600101615568565b505086810360408801526155aa818a614e1b565b94505050505082810360608401526150ee8185614dc4565b60208082526013908201527f554e4b4e4f574e5f52455455524e5f4441544100000000000000000000000000604082015260600190565b60208082526019908201527f554e4b4e4f574e5f46554e4354494f4e5f53454c4543544f5200000000000000604082015260600190565b6020808252600d908201527f554e494d504c454d454e54454400000000000000000000000000000000000000604082015260600190565b6020808252600c908201527f4241445f53454c4543544f520000000000000000000000000000000000000000604082015260600190565b6020808252600e908201527f57524f4e475f50524f58595f4944000000000000000000000000000000000000604082015260600190565b60a081016156e38286614e78565b8360608301528215156080830152949350505050565b6000602082526120a56020830184614e94565b60006040825261571f6040830185614e94565b828103602084015261522a8185614e4c565b90815260200190565b9283526020830191909152604082015260600190565b60405181810167ffffffffffffffff8111828210171561576f57600080fd5b604052919050565b600067ffffffffffffffff82111561578d578081fd5b5060209081020190565b600067ffffffffffffffff8211156157ad578081fd5b50601f01601f191660200190565b60005b838110156157d65781810151838201526020016157be565b838111156157e5576000848401525b50505050565b600281106157f557fe5b50565b600481106157f557fe5b600381106157f557fe5b600781106157f557fe5b6001600160a01b03811681146157f557600080fd5b60ff811681146157f557600080fdfea365627a7a723158200ea049525ebc74d73f3bf7858c601bd21168267b0dfb4abbdb7787cfd7233a2c6c6578706572696d656e74616cf564736f6c634300050c0040" + "object": "0x60806040523480156200001157600080fd5b5060405162006253380380620062538339810160408190526200003491620003be565b600080546001600160a01b0319166001600160a01b0383811691909117918290556040517f60704108000000000000000000000000000000000000000000000000000000008152839283928392911690636070410890620000ba907ff47261b00000000000000000000000000000000000000000000000000000000090600401620003ee565b60206040518083038186803b158015620000d357600080fd5b505afa158015620000e8573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052506200010e9190810190620003be565b600180546001600160a01b0319166001600160a01b039283161790556000546040517f607041080000000000000000000000000000000000000000000000000000000081529116906360704108906200018c907f025717920000000000000000000000000000000000000000000000000000000090600401620003ee565b60206040518083038186803b158015620001a557600080fd5b505afa158015620001ba573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250620001e09190810190620003be565b600280546001600160a01b0319166001600160a01b039283161790556000546040517f607041080000000000000000000000000000000000000000000000000000000081529116906360704108906200025e907fa7cb5fb70000000000000000000000000000000000000000000000000000000090600401620003ee565b60206040518083038186803b1580156200027757600080fd5b505afa1580156200028c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250620002b29190810190620003be565b600380546001600160a01b0319166001600160a01b039283161790556000546040517f6070410800000000000000000000000000000000000000000000000000000000815291169063607041089062000330907fc339d10a0000000000000000000000000000000000000000000000000000000090600401620003ee565b60206040518083038186803b1580156200034957600080fd5b505afa1580156200035e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250620003849190810190620003be565b600480546001600160a01b039283166001600160a01b0319918216179091556005805495909216941693909317909255506200041b915050565b600060208284031215620003d0578081fd5b81516001600160a01b0381168114620003e7578182fd5b9392505050565b7fffffffff0000000000000000000000000000000000000000000000000000000091909116815260200190565b615e28806200042b6000396000f3fe608060405234801561001057600080fd5b50600436106102c85760003560e01c80639a7e75261161017b578063cafd3a07116100d8578063d46950281161008c578063e4e6e7da11610071578063e4e6e7da14610711578063e77286eb14610732578063ee4f5a9414610754576102c8565b8063d4695028146106cf578063e25cabf7146106ef576102c8565b8063d186037f116100bd578063d186037f14610689578063d36379051461069c578063d3d862d1146106bc576102c8565b8063cafd3a0714610655578063d001c5dc14610676576102c8565b8063acaedc741161012f578063bbb2dcf611610114578063bbb2dcf6146105ef578063bc03f96414610611578063ca49f47c14610632576102c8565b8063acaedc74146105b9578063b43cffe1146105dc576102c8565b8063a0901e5111610160578063a0901e5114610573578063a5cd62ba14610586578063a6627e9f146105a6576102c8565b80639a7e75261461052c5780639eadc8351461054f576102c8565b806346eb65cb116102295780636f83188e116101dd5780637b66ad34116101c25780637b66ad34146104e55780637d727512146105065780638f4ce47914610519576102c8565b80636f83188e146104a15780637914b2ec146104c4576102c8565b8063590aa8751161020e578063590aa8751461044c57806363eb39921461046c578063651290421461047f576102c8565b806346eb65cb146104175780634dfdac201461042c576102c8565b8063314853ff1161028057806332aae3ad1161026557806332aae3ad146103b15780633db6dc61146103d3578063459be5e2146103f6576102c8565b8063314853ff1461037c578063327d30541461039e576102c8565b80630d7b7d76116102b15780630d7b7d7614610319578063165979e11461033a5780632322cf761461035c576102c8565b806302d0aec3146102cd57806304a5618a146102f7575b600080fd5b6102e06102db366004614f2d565b610776565b6040516102ee929190615836565b60405180910390f35b61030a610305366004614f2d565b6107d2565b6040516102ee93929190615931565b61032c610327366004614a5e565b610880565b6040516102ee9291906157e4565b61034d610348366004614f2d565b6108a2565b6040516102ee93929190615a6e565b61036f61036a366004614a5e565b6108ff565b6040516102ee9190615cdc565b61038f61038a366004614f2d565b610927565b6040516102ee9392919061580b565b61032c6103ac366004614f2d565b61096e565b6103c46103bf366004614f2d565b6109b0565b6040516102ee939291906159e2565b6103e66103e1366004614f2d565b610a03565b6040516102ee94939291906157aa565b610409610404366004614f2d565b610a4d565b6040516102ee929190615a56565b61042a610425366004614f2d565b610aa3565b005b61043f61043a366004614985565b610c36565b6040516102ee9190615744565b61045f61045a3660046147fe565b610cb9565b6040516102ee9190615991565b61045f61047a366004614aa2565b610d3d565b61049261048d366004614f2d565b610dc8565b6040516102ee93929190615511565b6104b46104af366004614f2d565b610e02565b6040516102ee9493929190615ae0565b6104d76104d2366004614f2d565b611943565b6040516102ee929190615868565b6104f86104f3366004614f2d565b61197b565b6040516102ee9291906154f7565b61036f610514366004614a5e565b6119b3565b6104d7610527366004614f2d565b6120c8565b61053f61053a366004614f2d565b612158565b6040516102ee9493929190615a9c565b61056261055d366004614f2d565b6121b9565b6040516102ee95949392919061588b565b61043f610581366004614b24565b612264565b610599610594366004614b8a565b6122dd565b6040516102ee919061565d565b61045f6105b4366004614af9565b6123a0565b6105cc6105c7366004614f2d565b612427565b6040516102ee94939291906155b9565b61045f6105ea3660046149d3565b612463565b6106026105fd366004614f2d565b6124f0565b6040516102ee9392919061595c565b61062461061f366004614f2d565b61259d565b6040516102ee9291906157f2565b610645610640366004614f2d565b6125d6565b6040516102ee94939291906158ee565b610668610663366004614f2d565b612687565b6040516102ee929190615ad3565b61043f610684366004614985565b6126d5565b61036f610697366004614a5e565b612743565b6106af6106aa366004614fe4565b612d86565b6040516102ee9190615a89565b61045f6106ca366004614d32565b613323565b6106e26106dd366004614f2d565b61335b565b6040516102ee9190615853565b6107026106fd366004614c0e565b6134a7565b6040516102ee939291906156a9565b61072461071f366004614985565b6135df565b6040516102ee929190615785565b61074561074036600461503c565b6135f8565b6040516102ee93929190615c80565b610767610762366004614f2d565b613832565b6040516102ee93929190615a2c565b60008061078a8361078561386f565b613893565b60006107a360048551866138ed9092919063ffffffff16565b8060200190516107b69190810190614ee0565b909350905060ff811660068111156107ca57fe5b915050915091565b600080806107e6848263ffffffff61393016565b92506001600160e01b031983167f025717920000000000000000000000000000000000000000000000000000000014610854576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161084b90615c49565b60405180910390fd5b61086584601063ffffffff61396416565b915061087884602463ffffffff61399716565b929491935050565b60008061088d84846119b3565b91506108998484612743565b90509250929050565b60008060006108b3846107856139a3565b60006108cc60048651876138ed9092919063ffffffff16565b8060200190516108df9190810190615270565b9094509250905060ff811660028111156108f557fe5b9350509193909250565b600080600061090e8585610880565b9150915061091c82826139c7565b925050505b92915050565b6000606080610938846107856139dd565b835161094e90859060049063ffffffff6138ed16565b8060200190516109619190810190614e80565b9196909550909350915050565b60008061097d83610785613a01565b825161099390849060049063ffffffff6138ed16565b8060200190516109a69190810190614e22565b9094909350915050565b60008060606109c184610785613a25565b60006109da60048651876138ed9092919063ffffffff16565b8060200190516109ed9190810190615224565b9094509250905060ff811660018111156108f557fe5b600080606080610a1585610785613a49565b8451610a2b90869060049063ffffffff6138ed16565b806020019051610a3e9190810190614dde565b92989197509550909350915050565b600080610a5c83610785613a6d565b6000610a7560048551866138ed9092919063ffffffff16565b806020019051610a889190810190615157565b9250905060ff81166003811115610a9b57fe5b925050915091565b6000610ab5828263ffffffff61393016565b90506001600160e01b031981167ff47261b0000000000000000000000000000000000000000000000000000000001415610af957610af2826120c8565b5050610c32565b6001600160e01b031981167f02571792000000000000000000000000000000000000000000000000000000001415610b3c57610b34826107d2565b505050610c32565b6001600160e01b031981167fa7cb5fb7000000000000000000000000000000000000000000000000000000001415610b8157610b77826121b9565b5050505050610c32565b6001600160e01b031981167f94cfcdd7000000000000000000000000000000000000000000000000000000001415610bbc57610b34826124f0565b6001600160e01b031981167fc339d10a000000000000000000000000000000000000000000000000000000001415610c0057610bf7826125d6565b50505050610c32565b6040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161084b90615c49565b5050565b606060008251905080604051908082528060200260200182016040528015610c68578160200160208202803883390190505b50915060005b818114610cb157610c9285858381518110610c8557fe5b6020026020010151612743565b838281518110610c9e57fe5b6020908102919091010152600101610c6e565b505092915050565b6040516060907ff47261b00000000000000000000000000000000000000000000000000000000090610cef9084906024016154e3565b60408051601f198184030181529190526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff166001600160e01b0319909316929092179091529050919050565b6040516060907fc339d10a0000000000000000000000000000000000000000000000000000000090610d7790869086908690602401615587565b60408051601f198184030181529190526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff166001600160e01b03199093169290921790915290505b9392505050565b6000806000610dd984610785613a91565b8351610def90859060049063ffffffff6138ed16565b8060200190516109619190810190614853565b60608080806000610e19868263ffffffff61393016565b90506001600160e01b031981167fdedfc1f1000000000000000000000000000000000000000000000000000000001415610e8a576040518060400160405280601181526020017f626174636843616e63656c4f72646572730000000000000000000000000000008152509450611419565b6001600160e01b031981167f9694a402000000000000000000000000000000000000000000000000000000001415610ef9576040518060400160405280600f81526020017f626174636846696c6c4f726465727300000000000000000000000000000000008152509450611419565b6001600160e01b031981167f8ea8dfe4000000000000000000000000000000000000000000000000000000001415610f68576040518060400160405280601681526020017f626174636846696c6c4f72646572734e6f5468726f77000000000000000000008152509450611419565b6001600160e01b031981167fbeee2e14000000000000000000000000000000000000000000000000000000001415610fd7576040518060400160405280601581526020017f626174636846696c6c4f724b696c6c4f726465727300000000000000000000008152509450611419565b6001600160e01b031981167f2da62987000000000000000000000000000000000000000000000000000000001415611046576040518060400160405280600b81526020017f63616e63656c4f726465720000000000000000000000000000000000000000008152509450611419565b6001600160e01b031981167f9b44d5560000000000000000000000000000000000000000000000000000000014156110b5576040518060400160405280600981526020017f66696c6c4f7264657200000000000000000000000000000000000000000000008152509450611419565b6001600160e01b031981167fe14b58c4000000000000000000000000000000000000000000000000000000001415611124576040518060400160405280600f81526020017f66696c6c4f724b696c6c4f7264657200000000000000000000000000000000008152509450611419565b6001600160e01b031981167f78d29ac1000000000000000000000000000000000000000000000000000000001415611193576040518060400160405280601681526020017f6d61726b65744275794f72646572734e6f5468726f77000000000000000000008152509450611419565b6001600160e01b031981167f369da099000000000000000000000000000000000000000000000000000000001415611202576040518060400160405280601781526020017f6d61726b657453656c6c4f72646572734e6f5468726f770000000000000000008152509450611419565b6001600160e01b031981167f8bc8efb3000000000000000000000000000000000000000000000000000000001415611271576040518060400160405280601981526020017f6d61726b65744275794f726465727346696c6c4f724b696c6c000000000000008152509450611419565b6001600160e01b031981167fa6c3bf330000000000000000000000000000000000000000000000000000000014156112e0576040518060400160405280601a81526020017f6d61726b657453656c6c4f726465727346696c6c4f724b696c6c0000000000008152509450611419565b6001600160e01b031981167f88ec79fb00000000000000000000000000000000000000000000000000000000141561134f576040518060400160405280600b81526020017f6d617463684f72646572730000000000000000000000000000000000000000008152509450611419565b6001600160e01b031981167f4f9559b10000000000000000000000000000000000000000000000000000000014806113b057506001600160e01b031981167f2280c91000000000000000000000000000000000000000000000000000000000145b156113e7576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161084b90615bdb565b6040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161084b90615ba4565b6001600160e01b031981167fdedfc1f10000000000000000000000000000000000000000000000000000000014156114be57855161146190879060049063ffffffff613ab516565b8060200190516114749190810190614b57565b604080516000808252602082019092529195505b50604080516000808252602082019092529194506114b6565b60608152602001906001900390816114a15790505b50915061193b565b6001600160e01b031981167fbeee2e1400000000000000000000000000000000000000000000000000000000148061151f57506001600160e01b031981167f9694a40200000000000000000000000000000000000000000000000000000000145b8061155357506001600160e01b031981167f8ea8dfe400000000000000000000000000000000000000000000000000000000145b1561156d5761156186613b35565b9195509350915061193b565b6001600160e01b031981167f2da629870000000000000000000000000000000000000000000000000000000014156116555760408051600180825281830190925290816020015b6115bc614131565b8152602001906001900390816115b457505086519094506115e790879060049063ffffffff613ab516565b8060200190516115fa9190810190614fb1565b8460008151811061160757fe5b602002602001018190525060006040519080825280602002602001820160405280156114885781602001602082028038833901905050604080516000808252602082019092529194506114b6565b6001600160e01b031981167fe14b58c40000000000000000000000000000000000000000000000000000000014806116b657506001600160e01b031981167f9b44d55600000000000000000000000000000000000000000000000000000000145b156116c45761156186613b64565b6001600160e01b031981167f78d29ac100000000000000000000000000000000000000000000000000000000148061172557506001600160e01b031981167f369da09900000000000000000000000000000000000000000000000000000000145b8061175957506001600160e01b031981167f8bc8efb300000000000000000000000000000000000000000000000000000000145b8061178d57506001600160e01b031981167fa6c3bf3300000000000000000000000000000000000000000000000000000000145b1561179b5761156186613c5e565b6001600160e01b031981167f88ec79fb00000000000000000000000000000000000000000000000000000000141561193b576117d5614131565b6117dd614131565b6060806117f760048b518c613ab59092919063ffffffff16565b80602001905161180a9190810190615093565b604080516002808252606082019092529498509296509094509250816020015b611832614131565b81526020019060019003908161182a579050509750838860008151811061185557fe5b6020026020010181905250828860018151811061186e57fe5b602090810291909101015260408051600280825260608201909252908160200160208202803883390190505096508360a00151876000815181106118ae57fe5b6020026020010181815250508260a00151876001815181106118cc57fe5b60209081029190910101526040805160028082526060820190925290816020015b60608152602001906001900390816118ed579050509550818660008151811061191257fe5b6020026020010181905250808660018151811061192b57fe5b6020026020010181905250505050505b509193509193565b60008061195283610785613cd2565b825161196890849060049063ffffffff6138ed16565b8060200190516109a69190810190614f04565b60008061198a83610785613cf6565b82516119a090849060049063ffffffff6138ed16565b8060200190516109a6919081019061481a565b6000806119c6838263ffffffff61393016565b90506001600160e01b031981167ff47261b0000000000000000000000000000000000000000000000000000000001415611b3b576000611a0d84601063ffffffff61396416565b6040519091506060907f70a082310000000000000000000000000000000000000000000000000000000090611a469088906024016154e3565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050905060006060836001600160a01b031683604051611ac191906154c7565b600060405180830381855afa9150503d8060008114611afc576040519150601f19603f3d011682016040523d82523d6000602084013e611b01565b606091505b5091509150818015611b14575080516020145b611b1f576000611b30565b611b3081600063ffffffff61399716565b9550505050506120c1565b6001600160e01b031981167f02571792000000000000000000000000000000000000000000000000000000001415611cd657600080611b79856107d2565b6040519194509250606091507f6352211e0000000000000000000000000000000000000000000000000000000090611bb5908490602401615cdc565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050905060006060846001600160a01b031683604051611c3091906154c7565b600060405180830381855afa9150503d8060008114611c6b576040519150601f19603f3d011682016040523d82523d6000602084013e611c70565b606091505b50915091506000828015611c85575081516020145b611c90576000611ca1565b611ca182600c63ffffffff61396416565b9050896001600160a01b0316816001600160a01b031614611cc3576000611cc6565b60015b60ff1697505050505050506120c1565b6001600160e01b031981167fa7cb5fb7000000000000000000000000000000000000000000000000000000001415611eb9576000606080611d16866121b9565b5081519296509094509250905060005b818114611eaf5783516060907efdd58e00000000000000000000000000000000000000000000000000000000908b90879085908110611d6157fe5b6020026020010151604051602401611d7a9291906155ed565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050905060006060876001600160a01b031683604051611df591906154c7565b600060405180830381855afa9150503d8060008114611e30576040519150601f19603f3d011682016040523d82523d6000602084013e611e35565b606091505b50915091506000828015611e4a575081516020145b611e55576000611e66565b611e6682600063ffffffff61399716565b90506000878681518110611e7657fe5b60200260200101518281611e8657fe5b0490508b811080611e9557508b155b15611e9e57809b505b505060019093019250611d26915050565b50505050506120c1565b6001600160e01b031981167fc339d10a00000000000000000000000000000000000000000000000000000000141561200a576040516060907fa85e59e40000000000000000000000000000000000000000000000000000000090611f28908690600090819081906024016159a4565b60408051601f198184030181529181526020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff166001600160e01b03199094169390931790925260045491519092506000916001600160a01b031690611f8f9084906154c7565b600060405180830381855afa9150503d8060008114611fca576040519150601f19603f3d011682016040523d82523d6000602084013e611fcf565b606091505b5050905080611fdf576000612001565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff5b935050506120c1565b6001600160e01b031981167f94cfcdd70000000000000000000000000000000000000000000000000000000014156120c157606080612048856124f0565b80519194509250905060005b8181146120bc57600061207a8985848151811061206d57fe5b60200260200101516119b3565b9050600085838151811061208a57fe5b6020026020010151828161209a57fe5b049050878110806120a9575087155b156120b2578097505b5050600101612054565b505050505b5092915050565b6000806120db838263ffffffff61393016565b91506001600160e01b031982167ff47261b00000000000000000000000000000000000000000000000000000000014612140576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161084b90615c49565b61215183601063ffffffff61396416565b9050915091565b6000806000606061216b85610785613d1a565b600061218460048751886138ed9092919063ffffffff16565b80602001905161219791908101906151c6565b91965094509250905060ff811660068111156121af57fe5b9450509193509193565b600080606080806121d0868563ffffffff61393016565b94506001600160e01b031985167fa7cb5fb70000000000000000000000000000000000000000000000000000000014612235576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161084b90615c49565b505050506024828101516044840151606485015160848601519496929591820184019490820184019391010190565b6060808251604051908082528060200260200182016040528015612292578160200160208202803883390190505b50905060005b835181146120c1578381815181106122ac57fe5b60200260200101516001600160a01b0316318282815181106122ca57fe5b6020908102919091010152600101612298565b60606000845190508060405190808252806020026020018201604052801561230f578160200160208202803883390190505b50915060005b8181146123975761236086828151811061232b57fe5b602002602001015186838151811061233f57fe5b602002602001015186848151811061235357fe5b6020026020010151612d86565b83828151811061236c57fe5b6020026020010190600481111561237f57fe5b9081600481111561238c57fe5b905250600101612315565b50509392505050565b6040516060907f0257179200000000000000000000000000000000000000000000000000000000906123d890859085906024016155ed565b60408051601f198184030181529190526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff166001600160e01b031990931692909217909152905092915050565b6000606080606061243a85610785613d3e565b845161245090869060049063ffffffff6138ed16565b806020019051610a3e91908101906148ed565b6040516060907fa7cb5fb7000000000000000000000000000000000000000000000000000000009061249f908790879087908790602401615535565b60408051601f198184030181529190526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff166001600160e01b0319909316929092179091529050949350505050565b6000606080612505848463ffffffff61393016565b92506001600160e01b031983167f94cfcdd7000000000000000000000000000000000000000000000000000000001461256a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161084b90615c49565b835161258090859060049063ffffffff613ab516565b8060200190516125939190810190614d67565b9395909450915050565b600060606125ad83610785613d62565b82516125c390849060049063ffffffff6138ed16565b8060200190516109a69190810190614e45565b6000806060816125ec858263ffffffff61393016565b93506001600160e01b031984167fc339d10a0000000000000000000000000000000000000000000000000000000014612651576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161084b90615c49565b845161266790869060049063ffffffff613ab516565b80602001905161267a9190810190614895565b9597919650949350915050565b60008061269683610785613d86565b60006126af60048551866138ed9092919063ffffffff16565b8060200190516126c29190810190615157565b9250905060ff81166001811115610a9b57fe5b606060008251905080604051908082528060200260200182016040528015612707578160200160208202803883390190505b50915060005b818114610cb1576127248585838151811061206d57fe5b83828151811061273057fe5b602090810291909101015260010161270d565b600080612756838263ffffffff61393016565b90506001600160e01b031981167f94cfcdd700000000000000000000000000000000000000000000000000000000141561280857606080612796856124f0565b80519194509250905060005b8181146127fd5760006127bb89858481518110610c8557fe5b905060008583815181106127cb57fe5b602002602001015182816127db57fe5b049050878110806127ea575087155b156127f3578097505b50506001016127a2565b506109219350505050565b6001600160e01b031981167ff47261b000000000000000000000000000000000000000000000000000000000141561289357600061284d84601063ffffffff61396416565b6001546040519192506060917fdd62ed3e0000000000000000000000000000000000000000000000000000000091611a469189916001600160a01b0316906024016154f7565b6001600160e01b031981167f02571792000000000000000000000000000000000000000000000000000000001415612b83576000806128d1856107d2565b600254604051929550909350606092507fe985e9c5000000000000000000000000000000000000000000000000000000009161291d918a916001600160a01b03909116906024016154f7565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050905060006060846001600160a01b03168360405161299891906154c7565b600060405180830381855afa9150503d80600081146129d3576040519150601f19603f3d011682016040523d82523d6000602084013e6129d8565b606091505b50915091508115806129ec57508051602014155b80612a085750612a0381600063ffffffff61399716565b600114155b15612b56576040516060907f081812fc0000000000000000000000000000000000000000000000000000000090612a43908790602401615cdc565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff83818316178352505050509050856001600160a01b031681604051612aba91906154c7565b600060405180830381855afa9150503d8060008114612af5576040519150601f19603f3d011682016040523d82523d6000602084013e612afa565b606091505b509093509150828015612b0e575081516020145b8015612b3d57506002546001600160a01b0316612b3283600c63ffffffff61396416565b6001600160a01b0316145b612b48576000612b4b565b60015b60ff16975050611eaf565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff965050505050506120c1565b6001600160e01b031981167fa7cb5fb7000000000000000000000000000000000000000000000000000000001415612d2b576000612bc0846121b9565b5050600354604051929450606093507fe985e9c50000000000000000000000000000000000000000000000000000000092612c0a925089916001600160a01b0316906024016154f7565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050905060006060836001600160a01b031683604051612c8591906154c7565b600060405180830381855afa9150503d8060008114612cc0576040519150601f19603f3d011682016040523d82523d6000602084013e612cc5565b606091505b5091509150818015612cd8575080516020145b8015612cf45750612cf081600063ffffffff61399716565b6001145b612cff576000611b30565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff9550505050506120c1565b6001600160e01b031981167fc339d10a0000000000000000000000000000000000000000000000000000000014156120c157507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff9392505050565b6000612d906141c4565b612e218584600560009054906101000a90046001600160a01b03166001600160a01b0316631ce4c78b6040518163ffffffff1660e01b815260040160206040518083038186803b158015612de357600080fd5b505afa158015612df7573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250612e1b919081019061513f565b3a613daa565b60408051600480825260a0820190925291925060609190816020015b6060815260200190600190039081612e3d57505060408051600480825260a082019092529192506060919060208201608080388339505060408051600480825260a08201909252929350606092915060208201608080388339505060408051600480825260a0820190925292935060609291506020820160808038833901905050905088610160015184600081518110612ed357fe5b60200260200101819052508783600081518110612eec57fe5b60200260200101906001600160a01b031690816001600160a01b031681525050886000015182600081518110612f1e57fe5b60200260200101906001600160a01b031690816001600160a01b0316815250508681600081518110612f4c57fe5b60200260200101818152505088610140015184600181518110612f6b57fe5b6020026020010181905250886000015183600181518110612f8857fe5b60200260200101906001600160a01b031690816001600160a01b0316815250508782600181518110612fb657fe5b60200260200101906001600160a01b031690816001600160a01b031681525050846000015181600181518110612fe857fe5b602002602001018181525050886101a001518460028151811061300757fe5b6020026020010181905250878360028151811061302057fe5b60200260200101906001600160a01b031690816001600160a01b03168152505088604001518260028151811061305257fe5b60200260200101906001600160a01b031690816001600160a01b03168152505084606001518160028151811061308457fe5b602002602001018181525050886101800151846003815181106130a357fe5b60200260200101819052508860000151836003815181106130c057fe5b60200260200101906001600160a01b031690816001600160a01b0316815250508860400151826003815181106130f257fe5b60200260200101906001600160a01b031690816001600160a01b03168152505084604001518160038151811061312457fe5b60209081029190910101526040516060907fb04fbddd000000000000000000000000000000000000000000000000000000009061316b908790879087908790602401615606565b60408051601f198184030181529181526020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff166001600160e01b03199094169390931790925260055491519092506060916001600160a01b0316906131d29084906154c7565b6000604051808303816000865af19150503d806000811461320f576040519150601f19603f3d011682016040523d82523d6000602084013e613214565b606091505b5091506000905061322b828263ffffffff61393016565b9050613235613a25565b6001600160e01b031982811691161415613277576000613254836109b0565b5091505060ff8116600481111561326757fe5b9950505050505050505050610dc1565b61327f6139dd565b6001600160e01b0319828116911614156132b257600061329e83610927565b509091505060ff8116600481111561326757fe5b815160208301207ff43f26ea5a94b478394a975e856464913dc1a8a1ca70939d974aa7c238aa0ce014156132f157600498505050505050505050610dc1565b6040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161084b90615b6d565b6040516060907f94cfcdd700000000000000000000000000000000000000000000000000000000906123d89085908590602401615757565b600061336d828263ffffffff61393016565b90506001600160e01b031981167ff47261b00000000000000000000000000000000000000000000000000000000014806133d057506001600160e01b031981167f0257179200000000000000000000000000000000000000000000000000000000145b8061340457506001600160e01b031981167fa7cb5fb700000000000000000000000000000000000000000000000000000000145b8061343857506001600160e01b031981167f94cfcdd700000000000000000000000000000000000000000000000000000000145b8061346c57506001600160e01b031981167fc339d10a00000000000000000000000000000000000000000000000000000000145b6134a2576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161084b90615c49565b919050565b6060806060600085519050806040519080825280602002602001820160405280156134ec57816020015b6134d96141f3565b8152602001906001900390816134d15790505b50935080604051908082528060200260200182016040528015613519578160200160208202803883390190505b50925080604051908082528060200260200182016040528015613546578160200160208202803883390190505b50915060005b8181146135d65761358387828151811061356257fe5b602002602001015187838151811061357657fe5b60200260200101516135f8565b875188908590811061359157fe5b602002602001018785815181106135a457fe5b602002602001018786815181106135b757fe5b931515602094850291909101909301929092529190525260010161354c565b50509250925092565b6060806135ec84846126d5565b91506108998484610c36565b6136006141f3565b600080546040517f9d3fa4b900000000000000000000000000000000000000000000000000000000815282916001600160a01b031690639d3fa4b99061364a908890600401615ca4565b60606040518083038186803b15801561366257600080fd5b505afa158015613676573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525061369a9190810190614f60565b85516000546040517fa12dcc6f00000000000000000000000000000000000000000000000000000000815292955090916001600160a01b039091169063a12dcc6f906136ec9089908990600401615cb7565b60206040518083038186803b15801561370457600080fd5b505afa158015613718573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525061373c9190810190614dbe565b9150600061374f828861014001516108ff565b60a088015160c08901516101808a01516101408b01519394509192909160009161377e9163ffffffff613e2116565b156137ab576137a48461379e848d60800151613e4690919063ffffffff16565b85613e62565b9050613804565b816137bf576137a4848b6080015185613e62565b60006137d0868c61018001516108ff565b905060006137e3868d6080015187613e62565b905060006137f2838688613e62565b90506137fe82826139c7565b93505050505b61382461381e896040015185613e8c90919063ffffffff16565b826139c7565b965050505050509250925092565b600080600061384384610785613eab565b600061385c60048651876138ed9092919063ffffffff16565b8060200190516108df9190810190615184565b7ffdb6ca8d0000000000000000000000000000000000000000000000000000000090565b60006138a0836000613930565b90506001600160e01b0319808216908316146138e8576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161084b90615c12565b505050565b60608183111561390b5761390b61390660008585613ecf565b613eee565b8351821115613924576139246139066001848751613ecf565b50819003910190815290565b60008160040183511015613951576139516139066003855185600401613ecf565b5001602001516001600160e01b03191690565b60008160140183511015613985576139856139066004855185601401613ecf565b5001601401516001600160a01b031690565b6000610dc18383613ef6565b7f18e4b1410000000000000000000000000000000000000000000000000000000090565b60008183106139d65781610dc1565b5090919050565b7f4678472b0000000000000000000000000000000000000000000000000000000090565b7fb6555d6f0000000000000000000000000000000000000000000000000000000090565b7f488219a60000000000000000000000000000000000000000000000000000000090565b7f1b8388f70000000000000000000000000000000000000000000000000000000090565b7fe94a7ed00000000000000000000000000000000000000000000000000000000090565b7f4ad312750000000000000000000000000000000000000000000000000000000090565b606081831115613ace57613ace61390660008585613ecf565b8351821115613ae757613ae76139066001848751613ecf565b8282036040519080825280601f01601f191660200182016040528015613b14576020820181803883390190505b509050610dc1613b2382613f20565b84613b2d87613f20565b018351613f26565b6060806060613b516004855186613ab59092919063ffffffff16565b8060200190516109619190810190614c65565b60408051600180825281830190925260609182918291816020015b613b87614131565b815260200190600190039081613b7f5750506040805160018082528183019092529194506020808301908038833901905050604080516001808252818301909252919350816020015b6060815260200190600190039081613bd05750508451909150613bfd90859060049063ffffffff613ab516565b806020019051613c1091908101906150ec565b85600081518110613c1d57fe5b6020026020010185600081518110613c3157fe5b6020026020010185600081518110613c4557fe5b6020908102919091010192909252919052529193909250565b604080516001808252818301909252606091829182916020808301908038833950508551919350613c9a9186915060049063ffffffff613ab516565b806020019051613cad9190810190614cdf565b84518590600090613cba57fe5b60209081029190910101919091529095929450925050565b7f11c7b7200000000000000000000000000000000000000000000000000000000090565b7fa15c0d060000000000000000000000000000000000000000000000000000000090565b7f7e5a23180000000000000000000000000000000000000000000000000000000090565b7f5bd0428d0000000000000000000000000000000000000000000000000000000090565b7f20d11f610000000000000000000000000000000000000000000000000000000090565b7ff59851840000000000000000000000000000000000000000000000000000000090565b613db26141c4565b6020810184905260a08501516080860151613dce918691613fcb565b815260a085015160c0860151613de5918691613fcb565b604082015260a085015160e0860151613dff918691613fcb565b6060820152613e14828463ffffffff613fff16565b6080820152949350505050565b600081518351148015610dc15750508051602091820120825192909101919091201490565b600082820183811015610dc157610dc16139066000868661402c565b6000613e8483613e78868563ffffffff613fff16565b9063ffffffff61404b16565b949350505050565b600082821115613ea557613ea56139066002858561402c565b50900390565b7fe53c76c80000000000000000000000000000000000000000000000000000000090565b6060632800659560e01b848484604051602401610d7793929190615a7b565b805160208201fd5b60008160200183511015613f1757613f176139066005855185602001613ecf565b50016020015190565b60200190565b6020811015613f50576001816020036101000a0380198351168185511680821786525050506138e8565b82821415613f5d576138e8565b82821115613f975760208103905080820181840181515b82851015613f8f578451865260209586019590940193613f74565b9052506138e8565b60208103905080820181840183515b81861215613fc25782518252601f199283019290910190613fa6565b85525050505050565b6000613fd8848484614075565b15613feb57613feb6139068585856140db565b613e8483613e78868563ffffffff613fff16565b60008261400e57506000610921565b8282028284828161401b57fe5b0414610dc157610dc1613906600186865b606063e946c1bb60e01b848484604051602401610d7793929190615a0a565b600081614061576140616139066003858561402c565b600082848161406c57fe5b04949350505050565b600082614087576140876139066140fa565b811580614092575083155b1561409f57506000610dc1565b600083806140a957fe5b85840990506140be858463ffffffff613fff16565b6140d0826103e863ffffffff613fff16565b101595945050505050565b606063339f3de260e01b848484604051602401610d7793929190615ce5565b60408051808201909152600481527fa791837c00000000000000000000000000000000000000000000000000000000602082015290565b604051806101c0016040528060006001600160a01b0316815260200160006001600160a01b0316815260200160006001600160a01b0316815260200160006001600160a01b03168152602001600081526020016000815260200160008152602001600081526020016000815260200160008152602001606081526020016060815260200160608152602001606081525090565b6040518060a0016040528060008152602001600081526020016000815260200160008152602001600081525090565b604080516060810182526000808252602082018190529181019190915290565b803561092181615dc1565b805161092181615dc1565b600082601f830112614239578081fd5b813561424c61424782615d22565b615cfb565b81815291506020808301908481018184028601820187101561426d57600080fd5b60005b848110156120bc57813561428381615dc1565b84529282019290820190600101614270565b600082601f8301126142a5578081fd5b81516142b361424782615d22565b8181529150602080830190840160005b838110156142f0576142db8760208451890101614515565b835260209283019291909101906001016142c3565b5050505092915050565b600082601f83011261430a578081fd5b813561431861424782615d22565b8181529150602080830190840160005b838110156142f05761434087602084358901016144c7565b83526020928301929190910190600101614328565b600082601f830112614365578081fd5b815161437361424782615d22565b8181529150602080830190840160005b838110156142f05761439b87602084518901016146aa565b83526020928301929190910190600101614383565b600082601f8301126143c0578081fd5b81356143ce61424782615d22565b8181529150602080830190840160005b838110156142f0576143f6876020843589010161455b565b835260209283019291909101906001016143de565b600082601f83011261441b578081fd5b815161442961424782615d22565b81815291506020808301908481018184028601820187101561444a57600080fd5b60005b848110156120bc5781518452928201929082019060010161444d565b600082601f830112614479578081fd5b813561448761424782615d22565b8181529150602080830190848101818402860182018710156144a857600080fd5b60005b848110156120bc578135845292820192908201906001016144ab565b600082601f8301126144d7578081fd5b81356144e561424782615d42565b91508082528360208285010111156144fc57600080fd5b8060208401602084013760009082016020015292915050565b600082601f830112614525578081fd5b815161453361424782615d42565b915080825283602082850101111561454a57600080fd5b6120c1816020840160208601615d66565b60006101c080838503121561456e578182fd5b61457781615cfb565b9150506145848383614213565b81526145938360208401614213565b60208201526145a58360408401614213565b60408201526145b78360608401614213565b60608201526080820135608082015260a082013560a082015260c082013560c082015260e082013560e08201526101008083013581830152506101208083013581830152506101408083013567ffffffffffffffff8082111561461957600080fd5b614625868387016144c7565b8385015261016092508285013591508082111561464157600080fd5b61464d868387016144c7565b8385015261018092508285013591508082111561466957600080fd5b614675868387016144c7565b838501526101a092508285013591508082111561469157600080fd5b5061469e858286016144c7565b82840152505092915050565b60006101c08083850312156146bd578182fd5b6146c681615cfb565b9150506146d3838361421e565b81526146e2836020840161421e565b60208201526146f4836040840161421e565b6040820152614706836060840161421e565b60608201526080820151608082015260a082015160a082015260c082015160c082015260e082015160e08201526101008083015181830152506101208083015181830152506101408083015167ffffffffffffffff8082111561476857600080fd5b61477486838701614515565b8385015261016092508285015191508082111561479057600080fd5b61479c86838701614515565b838501526101809250828501519150808211156147b857600080fd5b6147c486838701614515565b838501526101a09250828501519150808211156147e057600080fd5b5061469e85828601614515565b805160ff8116811461092157600080fd5b60006020828403121561480f578081fd5b8135610dc181615dc1565b6000806040838503121561482c578081fd5b825161483781615dc1565b602084015190925061484881615dc1565b809150509250929050565b600080600060608486031215614867578081fd5b835161487281615dc1565b602085015190935061488381615dc1565b80925050604084015190509250925092565b6000806000606084860312156148a9578081fd5b83516148b481615dc1565b602085015190935067ffffffffffffffff8111156148d0578182fd5b6148dc86828701614515565b925050604084015190509250925092565b60008060008060808587031215614902578182fd5b845161490d81615dc1565b602086015190945067ffffffffffffffff8082111561492a578384fd5b61493688838901614515565b9450604087015191508082111561494b578384fd5b61495788838901614515565b9350606087015191508082111561496c578283fd5b5061497987828801614515565b91505092959194509250565b60008060408385031215614997578182fd5b82356149a281615dc1565b9150602083013567ffffffffffffffff8111156149bd578182fd5b6149c9858286016142fa565b9150509250929050565b600080600080608085870312156149e8578182fd5b84356149f381615dc1565b9350602085013567ffffffffffffffff80821115614a0f578384fd5b614a1b88838901614469565b94506040870135915080821115614a30578384fd5b614a3c88838901614469565b93506060870135915080821115614a51578283fd5b50614979878288016144c7565b60008060408385031215614a70578182fd5b8235614a7b81615dc1565b9150602083013567ffffffffffffffff811115614a96578182fd5b6149c9858286016144c7565b600080600060608486031215614ab6578081fd5b8335614ac181615dc1565b9250602084013567ffffffffffffffff811115614adc578182fd5b614ae8868287016144c7565b925050604084013590509250925092565b60008060408385031215614b0b578182fd5b8235614b1681615dc1565b946020939093013593505050565b600060208284031215614b35578081fd5b813567ffffffffffffffff811115614b4b578182fd5b613e8484828501614229565b600060208284031215614b68578081fd5b815167ffffffffffffffff811115614b7e578182fd5b613e8484828501614355565b600080600060608486031215614b9e578081fd5b833567ffffffffffffffff80821115614bb5578283fd5b614bc1878388016143b0565b94506020860135915080821115614bd6578283fd5b614be287838801614229565b93506040860135915080821115614bf7578283fd5b50614c0486828701614469565b9150509250925092565b60008060408385031215614c20578182fd5b823567ffffffffffffffff80821115614c37578384fd5b614c43868387016143b0565b93506020850135915080821115614c58578283fd5b506149c9858286016142fa565b600080600060608486031215614c79578081fd5b835167ffffffffffffffff80821115614c90578283fd5b614c9c87838801614355565b94506020860151915080821115614cb1578283fd5b614cbd8783880161440b565b93506040860151915080821115614cd2578283fd5b50614c0486828701614295565b600080600060608486031215614cf3578081fd5b835167ffffffffffffffff80821115614d0a578283fd5b614d1687838801614355565b9450602086015193506040860151915080821115614cd2578283fd5b60008060408385031215614d44578182fd5b823567ffffffffffffffff80821115614d5b578384fd5b614c4386838701614469565b60008060408385031215614d79578182fd5b825167ffffffffffffffff80821115614d90578384fd5b614d9c8683870161440b565b93506020850151915080821115614db1578283fd5b506149c985828601614295565b600060208284031215614dcf578081fd5b81518015158114610dc1578182fd5b60008060008060808587031215614df3578182fd5b845193506020850151614e0581615dc1565b604086015190935067ffffffffffffffff8082111561494b578384fd5b60008060408385031215614e34578182fd5b505080516020909101519092909150565b60008060408385031215614e57578182fd5b82519150602083015167ffffffffffffffff811115614e74578182fd5b6149c985828601614515565b600080600060608486031215614e94578081fd5b83519250602084015167ffffffffffffffff80821115614eb2578283fd5b614ebe87838801614515565b93506040860151915080821115614ed3578283fd5b50614c0486828701614515565b60008060408385031215614ef2578182fd5b82519150602083015161484881615dd6565b60008060408385031215614f16578182fd5b82516001600160e01b031981168114614837578283fd5b600060208284031215614f3e578081fd5b813567ffffffffffffffff811115614f54578182fd5b613e84848285016144c7565b60006060828403128015614f72578182fd5b8015614f7c578182fd5b50614f876060615cfb565b614f9184846147ed565b815260208301516020820152604083015160408201528091505092915050565b600060208284031215614fc2578081fd5b815167ffffffffffffffff811115614fd8578182fd5b613e84848285016146aa565b600080600060608486031215614ff8578081fd5b833567ffffffffffffffff81111561500e578182fd5b61501a8682870161455b565b935050602084013561502b81615dc1565b929592945050506040919091013590565b6000806040838503121561504e578182fd5b823567ffffffffffffffff80821115615065578384fd5b6150718683870161455b565b93506020850135915080821115615086578283fd5b506149c9858286016144c7565b600080600080608085870312156150a8578182fd5b845167ffffffffffffffff808211156150bf578384fd5b6150cb888389016146aa565b955060208701519150808211156150e0578384fd5b614936888389016146aa565b600080600060608486031215615100578081fd5b835167ffffffffffffffff80821115615117578283fd5b615123878388016146aa565b9450602086015193506040860151915080821115614ed3578283fd5b600060208284031215615150578081fd5b5051919050565b60008060408385031215615169578182fd5b825161517481615dd6565b6020939093015192949293505050565b600080600060608486031215615198578081fd5b83516151a381615dd6565b6020850151604086015191945092506151bb81615dc1565b809150509250925092565b600080600080608085870312156151db578182fd5b6151e586866147ed565b93506020850151925060408501516151fc81615dc1565b606086015190925067ffffffffffffffff811115615218578182fd5b61497987828801614515565b600080600060608486031215615238578081fd5b61524285856147ed565b925060208401519150604084015167ffffffffffffffff811115615264578182fd5b614c0486828701614515565b600080600060608486031215615284578081fd5b61528e85856147ed565b925060208401519150604084015190509250925092565b6001600160a01b03169052565b6000815180845260208401935060208301825b828110156152ec5781516001600160a01b03168652602095860195909101906001016152c5565b5093949350505050565b600081518084526020840180819550602083028101915060208501845b8481101561534157828403885261532b84835161537e565b6020988901989094509190910190600101615313565b50919695505050505050565b6000815180845260208401935060208301825b828110156152ec578151865260209586019590910190600101615360565b60008151808452615396816020860160208601615d66565b601f01601f19169290920160200192915050565b805160ff16825260208082015190830152604090810151910152565b60006101c06153d68484516152a5565b60208301516153e860208601826152a5565b5060408301516153fb60408601826152a5565b50606083015161540e60608601826152a5565b506080830151608085015260a083015160a085015260c083015160c085015260e083015160e08501526101008084015181860152506101208084015181860152506101408084015182828701526154678387018261537e565b91505061016091508184015185820383870152615484828261537e565b9250505061018080840151858303828701526154a0838261537e565b9150506101a0915081840151858203838701526154bd828261537e565b9695505050505050565b600082516154d9818460208701615d66565b9190910192915050565b6001600160a01b0391909116815260200190565b6001600160a01b0392831681529116602082015260400190565b6001600160a01b039384168152919092166020820152604081019190915260600190565b60006001600160a01b038616825260806020830152615557608083018661534d565b8281036040840152615569818661534d565b838103606085015261557b818661537e565b98975050505050505050565b60006001600160a01b0385168252606060208301526155a9606083018561537e565b9050826040830152949350505050565b60006001600160a01b0386168252608060208301526155db608083018661537e565b8281036040840152615569818661537e565b6001600160a01b03929092168252602082015260400190565b60006080825261561960808301876152f6565b828103602084015261562b81876152b2565b838103604085015261563d81876152b2565b9150508281036060840152615652818561534d565b979650505050505050565b602080825282518282018190526000918401906040840190835b8181101561569e57835161568a81615db7565b835260209384019390920191600101615677565b509095945050505050565b606080825284519082018190526000906020906080840190828801845b828110156156ec576156d98483516153aa565b60609390930192908401906001016156c6565b50505083810382850152615700818761534d565b84810360408601528551808252908301915082860190845b81811015615736578251151584529284019291840191600101615718565b509198975050505050505050565b600060208252610dc1602083018461534d565b60006040825261576a604083018561534d565b828103602084015261577c81856152f6565b95945050505050565b600060408252615798604083018561534d565b828103602084015261577c818561534d565b60008582526001600160a01b0385166020830152608060408301526157d2608083018561537e565b8281036060840152615652818561537e565b918252602082015260400190565b600083825260406020830152613e84604083018461537e565b600084825260606020830152615824606083018561537e565b82810360408401526154bd818561537e565b8281526040810161584683615dad565b8260208301529392505050565b6001600160e01b031991909116815260200190565b6001600160e01b03199290921682526001600160a01b0316602082015260400190565b60006001600160e01b0319871682526001600160a01b038616602083015260a060408301526158bd60a083018661534d565b82810360608401526158cf818661534d565b83810360808501526158e1818661537e565b9998505050505050505050565b60006001600160e01b0319861682526001600160a01b038516602083015260806040830152615920608083018561537e565b905082606083015295945050505050565b6001600160e01b03199390931683526001600160a01b03919091166020830152604082015260600190565b60006001600160e01b0319851682526060602083015261597f606083018561534d565b82810360408401526154bd81856152f6565b600060208252610dc1602083018461537e565b6000608082526159b7608083018761537e565b6001600160a01b03958616602084015293909416604082015260ff9190911660609091015292915050565b60006159ed85615d96565b8482528360208301526060604083015261577c606083018461537e565b6060810160048510615a1857fe5b938152602081019290925260409091015290565b60608101615a3985615da3565b93815260208101929092526001600160a01b031660409091015290565b6040810160048410615a6457fe5b9281526020015290565b60608101615a1885615da3565b6060810160088510615a1857fe5b60208101615a9683615db7565b91905290565b6000615aa786615dad565b8582528460208301526001600160a01b0384166040830152608060608301526154bd608083018461537e565b60408101615a6484615d96565b600060808252615af3608083018761537e565b602083820381850152818751808452828401915082838202850101838a01865b83811015615b4157601f19878403018552615b2f8383516153c6565b94860194925090850190600101615b13565b50508681036040880152615b55818a61534d565b945050505050828103606084015261565281856152f6565b60208082526013908201527f554e4b4e4f574e5f52455455524e5f4441544100000000000000000000000000604082015260600190565b60208082526019908201527f554e4b4e4f574e5f46554e4354494f4e5f53454c4543544f5200000000000000604082015260600190565b6020808252600d908201527f554e494d504c454d454e54454400000000000000000000000000000000000000604082015260600190565b6020808252600c908201527f4241445f53454c4543544f520000000000000000000000000000000000000000604082015260600190565b6020808252600e908201527f57524f4e475f50524f58595f4944000000000000000000000000000000000000604082015260600190565b60a08101615c8e82866153aa565b8360608301528215156080830152949350505050565b600060208252610dc160208301846153c6565b600060408252615cca60408301856153c6565b828103602084015261577c818561537e565b90815260200190565b9283526020830191909152604082015260600190565b60405181810167ffffffffffffffff81118282101715615d1a57600080fd5b604052919050565b600067ffffffffffffffff821115615d38578081fd5b5060209081020190565b600067ffffffffffffffff821115615d58578081fd5b50601f01601f191660200190565b60005b83811015615d81578181015183820152602001615d69565b83811115615d90576000848401525b50505050565b60028110615da057fe5b50565b60038110615da057fe5b60078110615da057fe5b60058110615da057fe5b6001600160a01b0381168114615da057600080fd5b60ff81168114615da057600080fdfea365627a7a723158209bd08114ba2e3dada6fb089e11dba7dc3bfedf454a0bac82e7a05d67b08360dd6c6578706572696d656e74616cf564736f6c634300050c0040" }, "deployedBytecode": { - "object": "0x608060405234801561001057600080fd5b506004361061025c5760003560e01c80639a7e752611610145578063cafd3a07116100bd578063d3d862d11161008c578063e4e6e7da11610071578063e4e6e7da1461063a578063e77286eb1461065b578063ee4f5a941461067d5761025c565b8063d3d862d114610605578063e25cabf7146106185761025c565b8063cafd3a071461059e578063d001c5dc146105bf578063d186037f146105d2578063d3637905146105e55761025c565b8063a6627e9f11610114578063b43cffe1116100f9578063b43cffe114610548578063bbb2dcf61461055b578063bc03f9641461057d5761025c565b8063a6627e9f14610512578063acaedc74146105255761025c565b80639a7e7526146104985780639eadc835146104bb578063a0901e51146104df578063a5cd62ba146104f25761025c565b8063459be5e2116101d85780636f83188e116101a75780637b66ad341161018c5780637b66ad34146104515780637d727512146104725780638f4ce479146104855761025c565b80636f83188e1461040d5780637914b2ec146104305761025c565b8063459be5e21461038a5780634dfdac20146103ab578063590aa875146103cb57806365129042146103eb5761025c565b80632322cf761161022f578063327d305411610214578063327d30541461033257806332aae3ad146103455780633db6dc61146103675761025c565b80632322cf76146102f0578063314853ff146103105761025c565b806302d0aec31461026157806304a5618a1461028b5780630d7b7d76146102ad578063165979e1146102ce575b600080fd5b61027461026f3660046149dd565b61069f565b6040516102829291906152e4565b60405180910390f35b61029e6102993660046149dd565b6106fb565b60405161028293929190615387565b6102c06102bb366004614565565b6107a9565b604051610282929190615292565b6102e16102dc3660046149dd565b6107cb565b604051610282939291906154c2565b6103036102fe366004614565565b610828565b6040516102829190615731565b61032361031e3660046149dd565b610850565b604051610282939291906152b9565b6102c06103403660046149dd565b610897565b6103586103533660046149dd565b6108d9565b60405161028293929190615438565b61037a6103753660046149dd565b61092c565b6040516102829493929190615258565b61039d6103983660046149dd565b610976565b6040516102829291906154ab565b6103be6103b936600461448c565b6109cc565b60405161028291906151f2565b6103de6103d936600461435d565b610a4f565b60405161028291906153e7565b6103fe6103f93660046149dd565b610ad3565b60405161028293929190614fdf565b61042061041b3660046149dd565b610b0d565b6040516102829493929190615535565b61044361043e3660046149dd565b61164e565b604051610282929190615301565b61046461045f3660046149dd565b611686565b604051610282929190614fc5565b610303610480366004614565565b6116be565b6104436104933660046149dd565b611dd3565b6104ab6104a63660046149dd565b611e63565b60405161028294939291906154f1565b6104ce6104c93660046149dd565b611ec4565b604051610282959493929190615324565b6103be6104ed3660046145d4565b611f6f565b61050561050036600461463a565b611fe8565b60405161028291906150f9565b6103de6105203660046145a9565b6120ac565b6105386105333660046149dd565b612133565b6040516102829493929190615055565b6103de6105563660046144da565b61216f565b61056e6105693660046149dd565b6121fc565b604051610282939291906153b2565b61059061058b3660046149dd565b6122a9565b6040516102829291906152a0565b6105b16105ac3660046149dd565b6122e2565b604051610282929190615528565b6103be6105cd36600461448c565b612330565b6103036105e0366004614565565b61239e565b6105f86105f3366004614a94565b6129e1565b60405161028291906154dd565b6103de6106133660046147e2565b612f7e565b61062b6106263660046146be565b612fb6565b60405161028293929190615146565b61064d61064836600461448c565b6130ee565b604051610282929190615233565b61066e610669366004614aec565b613107565b604051610282939291906156d5565b61069061068b3660046149dd565b613341565b60405161028293929190615481565b6000806106b3836106ae61337e565b6133a2565b60006106cc60048551866133fc9092919063ffffffff16565b8060200190516106df9190810190614990565b909350905060ff811660068111156106f357fe5b915050915091565b6000808061070f848263ffffffff61343f16565b92506001600160e01b031983167f02571792000000000000000000000000000000000000000000000000000000001461077d576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016107749061569e565b60405180910390fd5b61078e84601063ffffffff61347316565b91506107a184602463ffffffff6134a616565b929491935050565b6000806107b684846116be565b91506107c2848461239e565b90509250929050565b60008060006107dc846106ae6134b2565b60006107f560048651876133fc9092919063ffffffff16565b8060200190516108089190810190614d20565b9094509250905060ff8116600281111561081e57fe5b9350509193909250565b600080600061083785856107a9565b9150915061084582826134d6565b925050505b92915050565b6000606080610861846106ae6134ec565b835161087790859060049063ffffffff6133fc16565b80602001905161088a9190810190614930565b9196909550909350915050565b6000806108a6836106ae613510565b82516108bc90849060049063ffffffff6133fc16565b8060200190516108cf91908101906148d2565b9094909350915050565b60008060606108ea846106ae613534565b600061090360048651876133fc9092919063ffffffff16565b8060200190516109169190810190614cd4565b9094509250905060ff8116600181111561081e57fe5b60008060608061093e856106ae613558565b845161095490869060049063ffffffff6133fc16565b806020019051610967919081019061488e565b92989197509550909350915050565b600080610985836106ae61357c565b600061099e60048551866133fc9092919063ffffffff16565b8060200190516109b19190810190614c07565b9250905060ff811660038111156109c457fe5b925050915091565b6060600082519050806040519080825280602002602001820160405280156109fe578160200160208202803883390190505b50915060005b818114610a4757610a2885858381518110610a1b57fe5b602002602001015161239e565b838281518110610a3457fe5b6020908102919091010152600101610a04565b505092915050565b6040516060907ff47261b00000000000000000000000000000000000000000000000000000000090610a85908490602401614fb1565b60408051601f198184030181529190526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff166001600160e01b0319909316929092179091529050919050565b6000806000610ae4846106ae6135a0565b8351610afa90859060049063ffffffff6133fc16565b80602001905161088a91908101906143b2565b60608080806000610b24868263ffffffff61343f16565b90506001600160e01b031981167fdedfc1f1000000000000000000000000000000000000000000000000000000001415610b95576040518060400160405280601181526020017f626174636843616e63656c4f72646572730000000000000000000000000000008152509450611124565b6001600160e01b031981167f9694a402000000000000000000000000000000000000000000000000000000001415610c04576040518060400160405280600f81526020017f626174636846696c6c4f726465727300000000000000000000000000000000008152509450611124565b6001600160e01b031981167f8ea8dfe4000000000000000000000000000000000000000000000000000000001415610c73576040518060400160405280601681526020017f626174636846696c6c4f72646572734e6f5468726f77000000000000000000008152509450611124565b6001600160e01b031981167fbeee2e14000000000000000000000000000000000000000000000000000000001415610ce2576040518060400160405280601581526020017f626174636846696c6c4f724b696c6c4f726465727300000000000000000000008152509450611124565b6001600160e01b031981167f2da62987000000000000000000000000000000000000000000000000000000001415610d51576040518060400160405280600b81526020017f63616e63656c4f726465720000000000000000000000000000000000000000008152509450611124565b6001600160e01b031981167f9b44d556000000000000000000000000000000000000000000000000000000001415610dc0576040518060400160405280600981526020017f66696c6c4f7264657200000000000000000000000000000000000000000000008152509450611124565b6001600160e01b031981167fe14b58c4000000000000000000000000000000000000000000000000000000001415610e2f576040518060400160405280600f81526020017f66696c6c4f724b696c6c4f7264657200000000000000000000000000000000008152509450611124565b6001600160e01b031981167f78d29ac1000000000000000000000000000000000000000000000000000000001415610e9e576040518060400160405280601681526020017f6d61726b65744275794f72646572734e6f5468726f77000000000000000000008152509450611124565b6001600160e01b031981167f369da099000000000000000000000000000000000000000000000000000000001415610f0d576040518060400160405280601781526020017f6d61726b657453656c6c4f72646572734e6f5468726f770000000000000000008152509450611124565b6001600160e01b031981167f8bc8efb3000000000000000000000000000000000000000000000000000000001415610f7c576040518060400160405280601981526020017f6d61726b65744275794f726465727346696c6c4f724b696c6c000000000000008152509450611124565b6001600160e01b031981167fa6c3bf33000000000000000000000000000000000000000000000000000000001415610feb576040518060400160405280601a81526020017f6d61726b657453656c6c4f726465727346696c6c4f724b696c6c0000000000008152509450611124565b6001600160e01b031981167f88ec79fb00000000000000000000000000000000000000000000000000000000141561105a576040518060400160405280600b81526020017f6d617463684f72646572730000000000000000000000000000000000000000008152509450611124565b6001600160e01b031981167f4f9559b10000000000000000000000000000000000000000000000000000000014806110bb57506001600160e01b031981167f2280c91000000000000000000000000000000000000000000000000000000000145b156110f2576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161077490615630565b6040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610774906155f9565b6001600160e01b031981167fdedfc1f10000000000000000000000000000000000000000000000000000000014156111c957855161116c90879060049063ffffffff6135c416565b80602001905161117f9190810190614607565b604080516000808252602082019092529195505b50604080516000808252602082019092529194506111c1565b60608152602001906001900390816111ac5790505b509150611646565b6001600160e01b031981167fbeee2e1400000000000000000000000000000000000000000000000000000000148061122a57506001600160e01b031981167f9694a40200000000000000000000000000000000000000000000000000000000145b8061125e57506001600160e01b031981167f8ea8dfe400000000000000000000000000000000000000000000000000000000145b156112785761126c86613644565b91955093509150611646565b6001600160e01b031981167f2da629870000000000000000000000000000000000000000000000000000000014156113605760408051600180825281830190925290816020015b6112c7613c90565b8152602001906001900390816112bf57505086519094506112f290879060049063ffffffff6135c416565b8060200190516113059190810190614a61565b8460008151811061131257fe5b602002602001018190525060006040519080825280602002602001820160405280156111935781602001602082028038833901905050604080516000808252602082019092529194506111c1565b6001600160e01b031981167fe14b58c40000000000000000000000000000000000000000000000000000000014806113c157506001600160e01b031981167f9b44d55600000000000000000000000000000000000000000000000000000000145b156113cf5761126c86613673565b6001600160e01b031981167f78d29ac100000000000000000000000000000000000000000000000000000000148061143057506001600160e01b031981167f369da09900000000000000000000000000000000000000000000000000000000145b8061146457506001600160e01b031981167f8bc8efb300000000000000000000000000000000000000000000000000000000145b8061149857506001600160e01b031981167fa6c3bf3300000000000000000000000000000000000000000000000000000000145b156114a65761126c8661376d565b6001600160e01b031981167f88ec79fb000000000000000000000000000000000000000000000000000000001415611646576114e0613c90565b6114e8613c90565b60608061150260048b518c6135c49092919063ffffffff16565b8060200190516115159190810190614b43565b604080516002808252606082019092529498509296509094509250816020015b61153d613c90565b815260200190600190039081611535579050509750838860008151811061156057fe5b6020026020010181905250828860018151811061157957fe5b602090810291909101015260408051600280825260608201909252908160200160208202803883390190505096508360a00151876000815181106115b957fe5b6020026020010181815250508260a00151876001815181106115d757fe5b60209081029190910101526040805160028082526060820190925290816020015b60608152602001906001900390816115f8579050509550818660008151811061161d57fe5b6020026020010181905250808660018151811061163657fe5b6020026020010181905250505050505b509193509193565b60008061165d836106ae6137e1565b825161167390849060049063ffffffff6133fc16565b8060200190516108cf91908101906149b4565b600080611695836106ae613805565b82516116ab90849060049063ffffffff6133fc16565b8060200190516108cf9190810190614379565b6000806116d1838263ffffffff61343f16565b90506001600160e01b031981167ff47261b000000000000000000000000000000000000000000000000000000000141561184657600061171884601063ffffffff61347316565b6040519091506060907f70a082310000000000000000000000000000000000000000000000000000000090611751908890602401614fb1565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050905060006060836001600160a01b0316836040516117cc9190614f95565b600060405180830381855afa9150503d8060008114611807576040519150601f19603f3d011682016040523d82523d6000602084013e61180c565b606091505b509150915081801561181f575080516020145b61182a57600061183b565b61183b81600063ffffffff6134a616565b955050505050611dcc565b6001600160e01b031981167f025717920000000000000000000000000000000000000000000000000000000014156119e157600080611884856106fb565b6040519194509250606091507f6352211e00000000000000000000000000000000000000000000000000000000906118c0908490602401615731565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050905060006060846001600160a01b03168360405161193b9190614f95565b600060405180830381855afa9150503d8060008114611976576040519150601f19603f3d011682016040523d82523d6000602084013e61197b565b606091505b50915091506000828015611990575081516020145b61199b5760006119ac565b6119ac82600c63ffffffff61347316565b9050896001600160a01b0316816001600160a01b0316146119ce5760006119d1565b60015b60ff169750505050505050611dcc565b6001600160e01b031981167fa7cb5fb7000000000000000000000000000000000000000000000000000000001415611bc4576000606080611a2186611ec4565b5081519296509094509250905060005b818114611bba5783516060907efdd58e00000000000000000000000000000000000000000000000000000000908b90879085908110611a6c57fe5b6020026020010151604051602401611a85929190615089565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050905060006060876001600160a01b031683604051611b009190614f95565b600060405180830381855afa9150503d8060008114611b3b576040519150601f19603f3d011682016040523d82523d6000602084013e611b40565b606091505b50915091506000828015611b55575081516020145b611b60576000611b71565b611b7182600063ffffffff6134a616565b90506000878681518110611b8157fe5b60200260200101518281611b9157fe5b0490508b811080611ba057508b155b15611ba957809b505b505060019093019250611a31915050565b5050505050611dcc565b6001600160e01b031981167fc339d10a000000000000000000000000000000000000000000000000000000001415611d15576040516060907fa85e59e40000000000000000000000000000000000000000000000000000000090611c33908690600090819081906024016153fa565b60408051601f198184030181529181526020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff166001600160e01b03199094169390931790925260045491519092506000916001600160a01b031690611c9a908490614f95565b600060405180830381855afa9150503d8060008114611cd5576040519150601f19603f3d011682016040523d82523d6000602084013e611cda565b606091505b5050905080611cea576000611d0c565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff5b93505050611dcc565b6001600160e01b031981167f94cfcdd7000000000000000000000000000000000000000000000000000000001415611dcc57606080611d53856121fc565b80519194509250905060005b818114611dc7576000611d8589858481518110611d7857fe5b60200260200101516116be565b90506000858381518110611d9557fe5b60200260200101518281611da557fe5b04905087811080611db4575087155b15611dbd578097505b5050600101611d5f565b505050505b5092915050565b600080611de6838263ffffffff61343f16565b91506001600160e01b031982167ff47261b00000000000000000000000000000000000000000000000000000000014611e4b576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016107749061569e565b611e5c83601063ffffffff61347316565b9050915091565b60008060006060611e76856106ae613829565b6000611e8f60048751886133fc9092919063ffffffff16565b806020019051611ea29190810190614c76565b91965094509250905060ff81166006811115611eba57fe5b9450509193509193565b60008060608080611edb868563ffffffff61343f16565b94506001600160e01b031985167fa7cb5fb70000000000000000000000000000000000000000000000000000000014611f40576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016107749061569e565b505050506024828101516044840151606485015160848601519496929591820184019490820184019391010190565b6060808251604051908082528060200260200182016040528015611f9d578160200160208202803883390190505b50905060005b83518114611dcc57838181518110611fb757fe5b60200260200101516001600160a01b031631828281518110611fd557fe5b6020908102919091010152600101611fa3565b60606000845190508060405190808252806020026020018201604052801561201a578160200160208202803883390190505b50915060005b8181146120a25761206b86828151811061203657fe5b602002602001015186838151811061204a57fe5b602002602001015186848151811061205e57fe5b60200260200101516129e1565b83828151811061207757fe5b6020026020010190600481111561208a57fe5b9081600481111561209757fe5b905250600101612020565b50505b9392505050565b6040516060907f0257179200000000000000000000000000000000000000000000000000000000906120e49085908590602401615089565b60408051601f198184030181529190526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff166001600160e01b031990931692909217909152905092915050565b60006060806060612146856106ae61384d565b845161215c90869060049063ffffffff6133fc16565b80602001905161096791908101906143f4565b6040516060907fa7cb5fb700000000000000000000000000000000000000000000000000000000906121ab908790879087908790602401615003565b60408051601f198184030181529190526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff166001600160e01b0319909316929092179091529050949350505050565b6000606080612211848463ffffffff61343f16565b92506001600160e01b031983167f94cfcdd70000000000000000000000000000000000000000000000000000000014612276576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016107749061569e565b835161228c90859060049063ffffffff6135c416565b80602001905161229f9190810190614817565b9395909450915050565b600060606122b9836106ae613871565b82516122cf90849060049063ffffffff6133fc16565b8060200190516108cf91908101906148f5565b6000806122f1836106ae613895565b600061230a60048551866133fc9092919063ffffffff16565b80602001905161231d9190810190614c07565b9250905060ff811660018111156109c457fe5b606060008251905080604051908082528060200260200182016040528015612362578160200160208202803883390190505b50915060005b818114610a475761237f85858381518110611d7857fe5b83828151811061238b57fe5b6020908102919091010152600101612368565b6000806123b1838263ffffffff61343f16565b90506001600160e01b031981167f94cfcdd7000000000000000000000000000000000000000000000000000000001415612463576060806123f1856121fc565b80519194509250905060005b81811461245857600061241689858481518110610a1b57fe5b9050600085838151811061242657fe5b6020026020010151828161243657fe5b04905087811080612445575087155b1561244e578097505b50506001016123fd565b5061084a9350505050565b6001600160e01b031981167ff47261b00000000000000000000000000000000000000000000000000000000014156124ee5760006124a884601063ffffffff61347316565b6001546040519192506060917fdd62ed3e00000000000000000000000000000000000000000000000000000000916117519189916001600160a01b031690602401614fc5565b6001600160e01b031981167f025717920000000000000000000000000000000000000000000000000000000014156127de5760008061252c856106fb565b600254604051929550909350606092507fe985e9c50000000000000000000000000000000000000000000000000000000091612578918a916001600160a01b0390911690602401614fc5565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050905060006060846001600160a01b0316836040516125f39190614f95565b600060405180830381855afa9150503d806000811461262e576040519150601f19603f3d011682016040523d82523d6000602084013e612633565b606091505b509150915081158061264757508051602014155b80612663575061265e81600063ffffffff6134a616565b600114155b156127b1576040516060907f081812fc000000000000000000000000000000000000000000000000000000009061269e908790602401615731565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff83818316178352505050509050856001600160a01b0316816040516127159190614f95565b600060405180830381855afa9150503d8060008114612750576040519150601f19603f3d011682016040523d82523d6000602084013e612755565b606091505b509093509150828015612769575081516020145b801561279857506002546001600160a01b031661278d83600c63ffffffff61347316565b6001600160a01b0316145b6127a35760006127a6565b60015b60ff16975050611bba565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff96505050505050611dcc565b6001600160e01b031981167fa7cb5fb700000000000000000000000000000000000000000000000000000000141561298657600061281b84611ec4565b5050600354604051929450606093507fe985e9c50000000000000000000000000000000000000000000000000000000092612865925089916001600160a01b031690602401614fc5565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050905060006060836001600160a01b0316836040516128e09190614f95565b600060405180830381855afa9150503d806000811461291b576040519150601f19603f3d011682016040523d82523d6000602084013e612920565b606091505b5091509150818015612933575080516020145b801561294f575061294b81600063ffffffff6134a616565b6001145b61295a57600061183b565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff955050505050611dcc565b6001600160e01b031981167fc339d10a000000000000000000000000000000000000000000000000000000001415611dcc57507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff9392505050565b60006129eb613d23565b612a7c8584600560009054906101000a90046001600160a01b03166001600160a01b0316631ce4c78b6040518163ffffffff1660e01b815260040160206040518083038186803b158015612a3e57600080fd5b505afa158015612a52573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250612a769190810190614bef565b3a6138b9565b60408051600480825260a0820190925291925060609190816020015b6060815260200190600190039081612a9857505060408051600480825260a082019092529192506060919060208201608080388339505060408051600480825260a08201909252929350606092915060208201608080388339505060408051600480825260a0820190925292935060609291506020820160808038833901905050905088610160015184600081518110612b2e57fe5b60200260200101819052508783600081518110612b4757fe5b60200260200101906001600160a01b031690816001600160a01b031681525050886000015182600081518110612b7957fe5b60200260200101906001600160a01b031690816001600160a01b0316815250508681600081518110612ba757fe5b60200260200101818152505088610140015184600181518110612bc657fe5b6020026020010181905250886000015183600181518110612be357fe5b60200260200101906001600160a01b031690816001600160a01b0316815250508782600181518110612c1157fe5b60200260200101906001600160a01b031690816001600160a01b031681525050846000015181600181518110612c4357fe5b602002602001018181525050886101a0015184600281518110612c6257fe5b60200260200101819052508783600281518110612c7b57fe5b60200260200101906001600160a01b031690816001600160a01b031681525050886040015182600281518110612cad57fe5b60200260200101906001600160a01b031690816001600160a01b031681525050846060015181600281518110612cdf57fe5b60200260200101818152505088610180015184600381518110612cfe57fe5b6020026020010181905250886000015183600381518110612d1b57fe5b60200260200101906001600160a01b031690816001600160a01b031681525050886040015182600381518110612d4d57fe5b60200260200101906001600160a01b031690816001600160a01b031681525050846040015181600381518110612d7f57fe5b60209081029190910101526040516060907fb04fbddd0000000000000000000000000000000000000000000000000000000090612dc69087908790879087906024016150a2565b60408051601f198184030181529181526020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff166001600160e01b03199094169390931790925260055491519092506060916001600160a01b031690612e2d908490614f95565b6000604051808303816000865af19150503d8060008114612e6a576040519150601f19603f3d011682016040523d82523d6000602084013e612e6f565b606091505b50915060009050612e86828263ffffffff61343f16565b9050612e90613534565b6001600160e01b031982811691161415612ed2576000612eaf836108d9565b5091505060ff81166004811115612ec257fe5b99505050505050505050506120a5565b612eda6134ec565b6001600160e01b031982811691161415612f0d576000612ef983610850565b509091505060ff81166004811115612ec257fe5b815160208301207ff43f26ea5a94b478394a975e856464913dc1a8a1ca70939d974aa7c238aa0ce01415612f4c576004985050505050505050506120a5565b6040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610774906155c2565b6040516060907f94cfcdd700000000000000000000000000000000000000000000000000000000906120e49085908590602401615205565b606080606060008551905080604051908082528060200260200182016040528015612ffb57816020015b612fe8613d52565b815260200190600190039081612fe05790505b50935080604051908082528060200260200182016040528015613028578160200160208202803883390190505b50925080604051908082528060200260200182016040528015613055578160200160208202803883390190505b50915060005b8181146130e55761309287828151811061307157fe5b602002602001015187838151811061308557fe5b6020026020010151613107565b87518890859081106130a057fe5b602002602001018785815181106130b357fe5b602002602001018786815181106130c657fe5b931515602094850291909101909301929092529190525260010161305b565b50509250925092565b6060806130fb8484612330565b91506107c284846109cc565b61310f613d52565b600080546040517f9d3fa4b900000000000000000000000000000000000000000000000000000000815282916001600160a01b031690639d3fa4b9906131599088906004016156f9565b60606040518083038186803b15801561317157600080fd5b505afa158015613185573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052506131a99190810190614a10565b85516000546040517fa12dcc6f00000000000000000000000000000000000000000000000000000000815292955090916001600160a01b039091169063a12dcc6f906131fb908990899060040161570c565b60206040518083038186803b15801561321357600080fd5b505afa158015613227573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525061324b919081019061486e565b9150600061325e82886101400151610828565b60a088015160c08901516101808a01516101408b01519394509192909160009161328d9163ffffffff61393016565b156132ba576132b3846132ad848d6080015161395590919063ffffffff16565b85613971565b9050613313565b816132ce576132b3848b6080015185613971565b60006132df868c6101800151610828565b905060006132f2868d6080015187613971565b90506000613301838688613971565b905061330d82826134d6565b93505050505b61333361332d89604001518561399b90919063ffffffff16565b826134d6565b965050505050509250925092565b6000806000613352846106ae6139ba565b600061336b60048651876133fc9092919063ffffffff16565b8060200190516108089190810190614c34565b7ffdb6ca8d0000000000000000000000000000000000000000000000000000000090565b60006133af83600061343f565b90506001600160e01b0319808216908316146133f7576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161077490615667565b505050565b60608183111561341a5761341a613415600085856139de565b613a4d565b83518211156134335761343361341560018487516139de565b50819003910190815290565b600081600401835110156134605761346061341560038551856004016139de565b5001602001516001600160e01b03191690565b600081601401835110156134945761349461341560048551856014016139de565b5001601401516001600160a01b031690565b60006120a58383613a55565b7f18e4b1410000000000000000000000000000000000000000000000000000000090565b60008183106134e557816120a5565b5090919050565b7f4678472b0000000000000000000000000000000000000000000000000000000090565b7fb6555d6f0000000000000000000000000000000000000000000000000000000090565b7f488219a60000000000000000000000000000000000000000000000000000000090565b7f1b8388f70000000000000000000000000000000000000000000000000000000090565b7fe94a7ed00000000000000000000000000000000000000000000000000000000090565b7f4ad312750000000000000000000000000000000000000000000000000000000090565b6060818311156135dd576135dd613415600085856139de565b83518211156135f6576135f661341560018487516139de565b8282036040519080825280601f01601f191660200182016040528015613623576020820181803883390190505b5090506120a561363282613a7f565b8461363c87613a7f565b018351613a85565b606080606061366060048551866135c49092919063ffffffff16565b80602001905161088a9190810190614715565b60408051600180825281830190925260609182918291816020015b613696613c90565b81526020019060019003908161368e5750506040805160018082528183019092529194506020808301908038833901905050604080516001808252818301909252919350816020015b60608152602001906001900390816136df575050845190915061370c90859060049063ffffffff6135c416565b80602001905161371f9190810190614b9c565b8560008151811061372c57fe5b602002602001018560008151811061374057fe5b602002602001018560008151811061375457fe5b6020908102919091010192909252919052529193909250565b6040805160018082528183019092526060918291829160208083019080388339505085519193506137a99186915060049063ffffffff6135c416565b8060200190516137bc919081019061478f565b845185906000906137c957fe5b60209081029190910101919091529095929450925050565b7f11c7b7200000000000000000000000000000000000000000000000000000000090565b7fa15c0d060000000000000000000000000000000000000000000000000000000090565b7f7e5a23180000000000000000000000000000000000000000000000000000000090565b7f5bd0428d0000000000000000000000000000000000000000000000000000000090565b7f20d11f610000000000000000000000000000000000000000000000000000000090565b7ff59851840000000000000000000000000000000000000000000000000000000090565b6138c1613d23565b6020810184905260a085015160808601516138dd918691613b2a565b815260a085015160c08601516138f4918691613b2a565b604082015260a085015160e086015161390e918691613b2a565b6060820152613923828463ffffffff613b5e16565b6080820152949350505050565b6000815183511480156120a55750508051602091820120825192909101919091201490565b6000828201838110156120a5576120a561341560008686613b8b565b600061399383613987868563ffffffff613b5e16565b9063ffffffff613baa16565b949350505050565b6000828211156139b4576139b461341560028585613b8b565b50900390565b7fe53c76c80000000000000000000000000000000000000000000000000000000090565b6060632800659560e01b8484846040516024016139fd939291906154cf565b60408051601f198184030181529190526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff166001600160e01b03199093169290921790915290509392505050565b805160208201fd5b60008160200183511015613a7657613a7661341560058551856020016139de565b50016020015190565b60200190565b6020811015613aaf576001816020036101000a0380198351168185511680821786525050506133f7565b82821415613abc576133f7565b82821115613af65760208103905080820181840181515b82851015613aee578451865260209586019590940193613ad3565b9052506133f7565b60208103905080820181840183515b81861215613b215782518252601f199283019290910190613b05565b85525050505050565b6000613b37848484613bd4565b15613b4a57613b4a613415858585613c3a565b61399383613987868563ffffffff613b5e16565b600082613b6d5750600061084a565b82820282848281613b7a57fe5b04146120a5576120a5613415600186865b606063e946c1bb60e01b8484846040516024016139fd93929190615460565b600081613bc057613bc061341560038585613b8b565b6000828481613bcb57fe5b04949350505050565b600082613be657613be6613415613c59565b811580613bf1575083155b15613bfe575060006120a5565b60008380613c0857fe5b8584099050613c1d858463ffffffff613b5e16565b613c2f826103e863ffffffff613b5e16565b101595945050505050565b606063339f3de260e01b8484846040516024016139fd9392919061573a565b60408051808201909152600481527fa791837c00000000000000000000000000000000000000000000000000000000602082015290565b604051806101c0016040528060006001600160a01b0316815260200160006001600160a01b0316815260200160006001600160a01b0316815260200160006001600160a01b03168152602001600081526020016000815260200160008152602001600081526020016000815260200160008152602001606081526020016060815260200160608152602001606081525090565b6040518060a0016040528060008152602001600081526020016000815260200160008152602001600081525090565b604080516060810182526000808252602082018190529181019190915290565b803561084a81615816565b805161084a81615816565b600082601f830112613d98578081fd5b8135613dab613da682615777565b615750565b818152915060208083019084810181840286018201871015613dcc57600080fd5b60005b84811015611dc7578135613de281615816565b84529282019290820190600101613dcf565b600082601f830112613e04578081fd5b8151613e12613da682615777565b8181529150602080830190840160005b83811015613e4f57613e3a8760208451890101614074565b83526020928301929190910190600101613e22565b5050505092915050565b600082601f830112613e69578081fd5b8135613e77613da682615777565b8181529150602080830190840160005b83811015613e4f57613e9f8760208435890101614026565b83526020928301929190910190600101613e87565b600082601f830112613ec4578081fd5b8151613ed2613da682615777565b8181529150602080830190840160005b83811015613e4f57613efa8760208451890101614209565b83526020928301929190910190600101613ee2565b600082601f830112613f1f578081fd5b8135613f2d613da682615777565b8181529150602080830190840160005b83811015613e4f57613f5587602084358901016140ba565b83526020928301929190910190600101613f3d565b600082601f830112613f7a578081fd5b8151613f88613da682615777565b818152915060208083019084810181840286018201871015613fa957600080fd5b60005b84811015611dc757815184529282019290820190600101613fac565b600082601f830112613fd8578081fd5b8135613fe6613da682615777565b81815291506020808301908481018184028601820187101561400757600080fd5b60005b84811015611dc75781358452928201929082019060010161400a565b600082601f830112614036578081fd5b8135614044613da682615797565b915080825283602082850101111561405b57600080fd5b8060208401602084013760009082016020015292915050565b600082601f830112614084578081fd5b8151614092613da682615797565b91508082528360208285010111156140a957600080fd5b611dcc8160208401602086016157bb565b60006101c08083850312156140cd578182fd5b6140d681615750565b9150506140e38383613d72565b81526140f28360208401613d72565b60208201526141048360408401613d72565b60408201526141168360608401613d72565b60608201526080820135608082015260a082013560a082015260c082013560c082015260e082013560e08201526101008083013581830152506101208083013581830152506101408083013567ffffffffffffffff8082111561417857600080fd5b61418486838701614026565b838501526101609250828501359150808211156141a057600080fd5b6141ac86838701614026565b838501526101809250828501359150808211156141c857600080fd5b6141d486838701614026565b838501526101a09250828501359150808211156141f057600080fd5b506141fd85828601614026565b82840152505092915050565b60006101c080838503121561421c578182fd5b61422581615750565b9150506142328383613d7d565b81526142418360208401613d7d565b60208201526142538360408401613d7d565b60408201526142658360608401613d7d565b60608201526080820151608082015260a082015160a082015260c082015160c082015260e082015160e08201526101008083015181830152506101208083015181830152506101408083015167ffffffffffffffff808211156142c757600080fd5b6142d386838701614074565b838501526101609250828501519150808211156142ef57600080fd5b6142fb86838701614074565b8385015261018092508285015191508082111561431757600080fd5b61432386838701614074565b838501526101a092508285015191508082111561433f57600080fd5b506141fd85828601614074565b805160ff8116811461084a57600080fd5b60006020828403121561436e578081fd5b81356120a581615816565b6000806040838503121561438b578081fd5b825161439681615816565b60208401519092506143a781615816565b809150509250929050565b6000806000606084860312156143c6578081fd5b83516143d181615816565b60208501519093506143e281615816565b80925050604084015190509250925092565b60008060008060808587031215614409578182fd5b845161441481615816565b602086015190945067ffffffffffffffff80821115614431578384fd5b61443d88838901614074565b94506040870151915080821115614452578384fd5b61445e88838901614074565b93506060870151915080821115614473578283fd5b5061448087828801614074565b91505092959194509250565b6000806040838503121561449e578182fd5b82356144a981615816565b9150602083013567ffffffffffffffff8111156144c4578182fd5b6144d085828601613e59565b9150509250929050565b600080600080608085870312156144ef578182fd5b84356144fa81615816565b9350602085013567ffffffffffffffff80821115614516578384fd5b61452288838901613fc8565b94506040870135915080821115614537578384fd5b61454388838901613fc8565b93506060870135915080821115614558578283fd5b5061448087828801614026565b60008060408385031215614577578182fd5b823561458281615816565b9150602083013567ffffffffffffffff81111561459d578182fd5b6144d085828601614026565b600080604083850312156145bb578182fd5b82356145c681615816565b946020939093013593505050565b6000602082840312156145e5578081fd5b813567ffffffffffffffff8111156145fb578182fd5b61399384828501613d88565b600060208284031215614618578081fd5b815167ffffffffffffffff81111561462e578182fd5b61399384828501613eb4565b60008060006060848603121561464e578081fd5b833567ffffffffffffffff80821115614665578283fd5b61467187838801613f0f565b94506020860135915080821115614686578283fd5b61469287838801613d88565b935060408601359150808211156146a7578283fd5b506146b486828701613fc8565b9150509250925092565b600080604083850312156146d0578182fd5b823567ffffffffffffffff808211156146e7578384fd5b6146f386838701613f0f565b93506020850135915080821115614708578283fd5b506144d085828601613e59565b600080600060608486031215614729578081fd5b835167ffffffffffffffff80821115614740578283fd5b61474c87838801613eb4565b94506020860151915080821115614761578283fd5b61476d87838801613f6a565b93506040860151915080821115614782578283fd5b506146b486828701613df4565b6000806000606084860312156147a3578081fd5b835167ffffffffffffffff808211156147ba578283fd5b6147c687838801613eb4565b9450602086015193506040860151915080821115614782578283fd5b600080604083850312156147f4578182fd5b823567ffffffffffffffff8082111561480b578384fd5b6146f386838701613fc8565b60008060408385031215614829578182fd5b825167ffffffffffffffff80821115614840578384fd5b61484c86838701613f6a565b93506020850151915080821115614861578283fd5b506144d085828601613df4565b60006020828403121561487f578081fd5b815180151581146120a5578182fd5b600080600080608085870312156148a3578182fd5b8451935060208501516148b581615816565b604086015190935067ffffffffffffffff80821115614452578384fd5b600080604083850312156148e4578182fd5b505080516020909101519092909150565b60008060408385031215614907578182fd5b82519150602083015167ffffffffffffffff811115614924578182fd5b6144d085828601614074565b600080600060608486031215614944578081fd5b83519250602084015167ffffffffffffffff80821115614962578283fd5b61496e87838801614074565b93506040860151915080821115614983578283fd5b506146b486828701614074565b600080604083850312156149a2578182fd5b8251915060208301516143a78161582b565b600080604083850312156149c6578182fd5b82516001600160e01b031981168114614396578283fd5b6000602082840312156149ee578081fd5b813567ffffffffffffffff811115614a04578182fd5b61399384828501614026565b60006060828403128015614a22578182fd5b8015614a2c578182fd5b50614a376060615750565b8251614a428161582b565b8152602083810151908201526040928301519281019290925250919050565b600060208284031215614a72578081fd5b815167ffffffffffffffff811115614a88578182fd5b61399384828501614209565b600080600060608486031215614aa8578081fd5b833567ffffffffffffffff811115614abe578182fd5b614aca868287016140ba565b9350506020840135614adb81615816565b929592945050506040919091013590565b60008060408385031215614afe578182fd5b823567ffffffffffffffff80821115614b15578384fd5b614b21868387016140ba565b93506020850135915080821115614b36578283fd5b506144d085828601614026565b60008060008060808587031215614b58578182fd5b845167ffffffffffffffff80821115614b6f578384fd5b614b7b88838901614209565b95506020870151915080821115614b90578384fd5b61443d88838901614209565b600080600060608486031215614bb0578081fd5b835167ffffffffffffffff80821115614bc7578283fd5b614bd387838801614209565b9450602086015193506040860151915080821115614983578283fd5b600060208284031215614c00578081fd5b5051919050565b60008060408385031215614c19578182fd5b8251614c248161582b565b6020939093015192949293505050565b600080600060608486031215614c48578081fd5b8351614c538161582b565b602085015160408601519194509250614c6b81615816565b809150509250925092565b60008060008060808587031215614c8b578182fd5b614c95868661434c565b9350602085015192506040850151614cac81615816565b606086015190925067ffffffffffffffff811115614cc8578182fd5b61448087828801614074565b600080600060608486031215614ce8578081fd5b614cf2858561434c565b925060208401519150604084015167ffffffffffffffff811115614d14578182fd5b6146b486828701614074565b600080600060608486031215614d34578081fd5b614d3e858561434c565b925060208401519150604084015190509250925092565b1515815260200190565b6000614d6b8383614e78565b505060600190565b6001600160a01b03169052565b6000815180845260208401935060208301825b82811015614dba5781516001600160a01b0316865260209586019590910190600101614d93565b5093949350505050565b600081518084526020840180819550602083028101915060208501845b84811015614e0f578284038852614df9848351614e4c565b6020988901989094509190910190600101614de1565b50919695505050505050565b6000815180845260208401935060208301825b82811015614dba578151865260209586019590910190600101614e2e565b60008151808452614e648160208601602086016157bb565b601f01601f19169290920160200192915050565b805160ff16825260208082015190830152604090810151910152565b60006101c0614ea4848451614d73565b6020830151614eb66020860182614d73565b506040830151614ec96040860182614d73565b506060830151614edc6060860182614d73565b506080830151608085015260a083015160a085015260c083015160c085015260e083015160e0850152610100808401518186015250610120808401518186015250610140808401518282870152614f3583870182614e4c565b91505061016091508184015185820383870152614f528282614e4c565b925050506101808084015185830382870152614f6e8382614e4c565b9150506101a091508184015185820383870152614f8b8282614e4c565b9695505050505050565b60008251614fa78184602087016157bb565b9190910192915050565b6001600160a01b0391909116815260200190565b6001600160a01b0392831681529116602082015260400190565b6001600160a01b039384168152919092166020820152604081019190915260600190565b60006001600160a01b0386168252608060208301526150256080830186614e1b565b82810360408401526150378186614e1b565b83810360608501526150498186614e4c565b98975050505050505050565b60006001600160a01b0386168252608060208301526150776080830186614e4c565b82810360408401526150378186614e4c565b6001600160a01b03929092168252602082015260400190565b6000608082526150b56080830187614dc4565b82810360208401526150c78187614d80565b83810360408501526150d98187614d80565b91505082810360608401526150ee8185614e1b565b979650505050505050565b602080825282518282018190526000918401906040840190835b8181101561513b5783516005811061512757fe5b835260209384019390920191600101615113565b509095945050505050565b6000606082016060835280865161515d8184615731565b9150602088019250835b8181101561518b5761517a838551614d5f565b602094909401939250600101615167565b5050838103602085015261519f8187614e1b565b91505082810360408401528084516151b78184615731565b9150602086019250835b818110156151e5576151d4838551614d55565b6020949094019392506001016151c1565b5090979650505050505050565b6000602082526120a56020830184614e1b565b6000604082526152186040830185614e1b565b828103602084015261522a8185614dc4565b95945050505050565b6000604082526152466040830185614e1b565b828103602084015261522a8185614e1b565b60008582526001600160a01b0385166020830152608060408301526152806080830185614e4c565b82810360608401526150ee8185614e4c565b918252602082015260400190565b6000838252604060208301526139936040830184614e4c565b6000848252606060208301526152d26060830185614e4c565b8281036040840152614f8b8185614e4c565b828152604081016152f48361580c565b8260208301529392505050565b6001600160e01b03199290921682526001600160a01b0316602082015260400190565b60006001600160e01b0319871682526001600160a01b038616602083015260a0604083015261535660a0830186614e1b565b82810360608401526153688186614e1b565b838103608085015261537a8186614e4c565b9998505050505050505050565b6001600160e01b03199390931683526001600160a01b03919091166020830152604082015260600190565b60006001600160e01b031985168252606060208301526153d56060830185614e1b565b8281036040840152614f8b8185614dc4565b6000602082526120a56020830184614e4c565b60006080825261540d6080830187614e4c565b6001600160a01b03958616602084015293909416604082015260ff9190911660609091015292915050565b6000615443856157eb565b8482528360208301526060604083015261522a6060830184614e4c565b6060810161546d856157f8565b938152602081019290925260409091015290565b6060810161548e85615802565b93815260208101929092526001600160a01b031660409091015290565b604081016154b8846157f8565b9281526020015290565b6060810161546d85615802565b606081016008851061546d57fe5b60208101600583106154eb57fe5b91905290565b60006154fc8661580c565b8582528460208301526001600160a01b038416604083015260806060830152614f8b6080830184614e4c565b604081016154b8846157eb565b6000608082526155486080830187614e4c565b602083820381850152818751808452828401915082838202850101838a01865b8381101561559657601f19878403018552615584838351614e94565b94860194925090850190600101615568565b505086810360408801526155aa818a614e1b565b94505050505082810360608401526150ee8185614dc4565b60208082526013908201527f554e4b4e4f574e5f52455455524e5f4441544100000000000000000000000000604082015260600190565b60208082526019908201527f554e4b4e4f574e5f46554e4354494f4e5f53454c4543544f5200000000000000604082015260600190565b6020808252600d908201527f554e494d504c454d454e54454400000000000000000000000000000000000000604082015260600190565b6020808252600c908201527f4241445f53454c4543544f520000000000000000000000000000000000000000604082015260600190565b6020808252600e908201527f57524f4e475f50524f58595f4944000000000000000000000000000000000000604082015260600190565b60a081016156e38286614e78565b8360608301528215156080830152949350505050565b6000602082526120a56020830184614e94565b60006040825261571f6040830185614e94565b828103602084015261522a8185614e4c565b90815260200190565b9283526020830191909152604082015260600190565b60405181810167ffffffffffffffff8111828210171561576f57600080fd5b604052919050565b600067ffffffffffffffff82111561578d578081fd5b5060209081020190565b600067ffffffffffffffff8211156157ad578081fd5b50601f01601f191660200190565b60005b838110156157d65781810151838201526020016157be565b838111156157e5576000848401525b50505050565b600281106157f557fe5b50565b600481106157f557fe5b600381106157f557fe5b600781106157f557fe5b6001600160a01b03811681146157f557600080fd5b60ff811681146157f557600080fdfea365627a7a723158200ea049525ebc74d73f3bf7858c601bd21168267b0dfb4abbdb7787cfd7233a2c6c6578706572696d656e74616cf564736f6c634300050c0040" + "object": "0x608060405234801561001057600080fd5b50600436106102c85760003560e01c80639a7e75261161017b578063cafd3a07116100d8578063d46950281161008c578063e4e6e7da11610071578063e4e6e7da14610711578063e77286eb14610732578063ee4f5a9414610754576102c8565b8063d4695028146106cf578063e25cabf7146106ef576102c8565b8063d186037f116100bd578063d186037f14610689578063d36379051461069c578063d3d862d1146106bc576102c8565b8063cafd3a0714610655578063d001c5dc14610676576102c8565b8063acaedc741161012f578063bbb2dcf611610114578063bbb2dcf6146105ef578063bc03f96414610611578063ca49f47c14610632576102c8565b8063acaedc74146105b9578063b43cffe1146105dc576102c8565b8063a0901e5111610160578063a0901e5114610573578063a5cd62ba14610586578063a6627e9f146105a6576102c8565b80639a7e75261461052c5780639eadc8351461054f576102c8565b806346eb65cb116102295780636f83188e116101dd5780637b66ad34116101c25780637b66ad34146104e55780637d727512146105065780638f4ce47914610519576102c8565b80636f83188e146104a15780637914b2ec146104c4576102c8565b8063590aa8751161020e578063590aa8751461044c57806363eb39921461046c578063651290421461047f576102c8565b806346eb65cb146104175780634dfdac201461042c576102c8565b8063314853ff1161028057806332aae3ad1161026557806332aae3ad146103b15780633db6dc61146103d3578063459be5e2146103f6576102c8565b8063314853ff1461037c578063327d30541461039e576102c8565b80630d7b7d76116102b15780630d7b7d7614610319578063165979e11461033a5780632322cf761461035c576102c8565b806302d0aec3146102cd57806304a5618a146102f7575b600080fd5b6102e06102db366004614f2d565b610776565b6040516102ee929190615836565b60405180910390f35b61030a610305366004614f2d565b6107d2565b6040516102ee93929190615931565b61032c610327366004614a5e565b610880565b6040516102ee9291906157e4565b61034d610348366004614f2d565b6108a2565b6040516102ee93929190615a6e565b61036f61036a366004614a5e565b6108ff565b6040516102ee9190615cdc565b61038f61038a366004614f2d565b610927565b6040516102ee9392919061580b565b61032c6103ac366004614f2d565b61096e565b6103c46103bf366004614f2d565b6109b0565b6040516102ee939291906159e2565b6103e66103e1366004614f2d565b610a03565b6040516102ee94939291906157aa565b610409610404366004614f2d565b610a4d565b6040516102ee929190615a56565b61042a610425366004614f2d565b610aa3565b005b61043f61043a366004614985565b610c36565b6040516102ee9190615744565b61045f61045a3660046147fe565b610cb9565b6040516102ee9190615991565b61045f61047a366004614aa2565b610d3d565b61049261048d366004614f2d565b610dc8565b6040516102ee93929190615511565b6104b46104af366004614f2d565b610e02565b6040516102ee9493929190615ae0565b6104d76104d2366004614f2d565b611943565b6040516102ee929190615868565b6104f86104f3366004614f2d565b61197b565b6040516102ee9291906154f7565b61036f610514366004614a5e565b6119b3565b6104d7610527366004614f2d565b6120c8565b61053f61053a366004614f2d565b612158565b6040516102ee9493929190615a9c565b61056261055d366004614f2d565b6121b9565b6040516102ee95949392919061588b565b61043f610581366004614b24565b612264565b610599610594366004614b8a565b6122dd565b6040516102ee919061565d565b61045f6105b4366004614af9565b6123a0565b6105cc6105c7366004614f2d565b612427565b6040516102ee94939291906155b9565b61045f6105ea3660046149d3565b612463565b6106026105fd366004614f2d565b6124f0565b6040516102ee9392919061595c565b61062461061f366004614f2d565b61259d565b6040516102ee9291906157f2565b610645610640366004614f2d565b6125d6565b6040516102ee94939291906158ee565b610668610663366004614f2d565b612687565b6040516102ee929190615ad3565b61043f610684366004614985565b6126d5565b61036f610697366004614a5e565b612743565b6106af6106aa366004614fe4565b612d86565b6040516102ee9190615a89565b61045f6106ca366004614d32565b613323565b6106e26106dd366004614f2d565b61335b565b6040516102ee9190615853565b6107026106fd366004614c0e565b6134a7565b6040516102ee939291906156a9565b61072461071f366004614985565b6135df565b6040516102ee929190615785565b61074561074036600461503c565b6135f8565b6040516102ee93929190615c80565b610767610762366004614f2d565b613832565b6040516102ee93929190615a2c565b60008061078a8361078561386f565b613893565b60006107a360048551866138ed9092919063ffffffff16565b8060200190516107b69190810190614ee0565b909350905060ff811660068111156107ca57fe5b915050915091565b600080806107e6848263ffffffff61393016565b92506001600160e01b031983167f025717920000000000000000000000000000000000000000000000000000000014610854576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161084b90615c49565b60405180910390fd5b61086584601063ffffffff61396416565b915061087884602463ffffffff61399716565b929491935050565b60008061088d84846119b3565b91506108998484612743565b90509250929050565b60008060006108b3846107856139a3565b60006108cc60048651876138ed9092919063ffffffff16565b8060200190516108df9190810190615270565b9094509250905060ff811660028111156108f557fe5b9350509193909250565b600080600061090e8585610880565b9150915061091c82826139c7565b925050505b92915050565b6000606080610938846107856139dd565b835161094e90859060049063ffffffff6138ed16565b8060200190516109619190810190614e80565b9196909550909350915050565b60008061097d83610785613a01565b825161099390849060049063ffffffff6138ed16565b8060200190516109a69190810190614e22565b9094909350915050565b60008060606109c184610785613a25565b60006109da60048651876138ed9092919063ffffffff16565b8060200190516109ed9190810190615224565b9094509250905060ff811660018111156108f557fe5b600080606080610a1585610785613a49565b8451610a2b90869060049063ffffffff6138ed16565b806020019051610a3e9190810190614dde565b92989197509550909350915050565b600080610a5c83610785613a6d565b6000610a7560048551866138ed9092919063ffffffff16565b806020019051610a889190810190615157565b9250905060ff81166003811115610a9b57fe5b925050915091565b6000610ab5828263ffffffff61393016565b90506001600160e01b031981167ff47261b0000000000000000000000000000000000000000000000000000000001415610af957610af2826120c8565b5050610c32565b6001600160e01b031981167f02571792000000000000000000000000000000000000000000000000000000001415610b3c57610b34826107d2565b505050610c32565b6001600160e01b031981167fa7cb5fb7000000000000000000000000000000000000000000000000000000001415610b8157610b77826121b9565b5050505050610c32565b6001600160e01b031981167f94cfcdd7000000000000000000000000000000000000000000000000000000001415610bbc57610b34826124f0565b6001600160e01b031981167fc339d10a000000000000000000000000000000000000000000000000000000001415610c0057610bf7826125d6565b50505050610c32565b6040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161084b90615c49565b5050565b606060008251905080604051908082528060200260200182016040528015610c68578160200160208202803883390190505b50915060005b818114610cb157610c9285858381518110610c8557fe5b6020026020010151612743565b838281518110610c9e57fe5b6020908102919091010152600101610c6e565b505092915050565b6040516060907ff47261b00000000000000000000000000000000000000000000000000000000090610cef9084906024016154e3565b60408051601f198184030181529190526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff166001600160e01b0319909316929092179091529050919050565b6040516060907fc339d10a0000000000000000000000000000000000000000000000000000000090610d7790869086908690602401615587565b60408051601f198184030181529190526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff166001600160e01b03199093169290921790915290505b9392505050565b6000806000610dd984610785613a91565b8351610def90859060049063ffffffff6138ed16565b8060200190516109619190810190614853565b60608080806000610e19868263ffffffff61393016565b90506001600160e01b031981167fdedfc1f1000000000000000000000000000000000000000000000000000000001415610e8a576040518060400160405280601181526020017f626174636843616e63656c4f72646572730000000000000000000000000000008152509450611419565b6001600160e01b031981167f9694a402000000000000000000000000000000000000000000000000000000001415610ef9576040518060400160405280600f81526020017f626174636846696c6c4f726465727300000000000000000000000000000000008152509450611419565b6001600160e01b031981167f8ea8dfe4000000000000000000000000000000000000000000000000000000001415610f68576040518060400160405280601681526020017f626174636846696c6c4f72646572734e6f5468726f77000000000000000000008152509450611419565b6001600160e01b031981167fbeee2e14000000000000000000000000000000000000000000000000000000001415610fd7576040518060400160405280601581526020017f626174636846696c6c4f724b696c6c4f726465727300000000000000000000008152509450611419565b6001600160e01b031981167f2da62987000000000000000000000000000000000000000000000000000000001415611046576040518060400160405280600b81526020017f63616e63656c4f726465720000000000000000000000000000000000000000008152509450611419565b6001600160e01b031981167f9b44d5560000000000000000000000000000000000000000000000000000000014156110b5576040518060400160405280600981526020017f66696c6c4f7264657200000000000000000000000000000000000000000000008152509450611419565b6001600160e01b031981167fe14b58c4000000000000000000000000000000000000000000000000000000001415611124576040518060400160405280600f81526020017f66696c6c4f724b696c6c4f7264657200000000000000000000000000000000008152509450611419565b6001600160e01b031981167f78d29ac1000000000000000000000000000000000000000000000000000000001415611193576040518060400160405280601681526020017f6d61726b65744275794f72646572734e6f5468726f77000000000000000000008152509450611419565b6001600160e01b031981167f369da099000000000000000000000000000000000000000000000000000000001415611202576040518060400160405280601781526020017f6d61726b657453656c6c4f72646572734e6f5468726f770000000000000000008152509450611419565b6001600160e01b031981167f8bc8efb3000000000000000000000000000000000000000000000000000000001415611271576040518060400160405280601981526020017f6d61726b65744275794f726465727346696c6c4f724b696c6c000000000000008152509450611419565b6001600160e01b031981167fa6c3bf330000000000000000000000000000000000000000000000000000000014156112e0576040518060400160405280601a81526020017f6d61726b657453656c6c4f726465727346696c6c4f724b696c6c0000000000008152509450611419565b6001600160e01b031981167f88ec79fb00000000000000000000000000000000000000000000000000000000141561134f576040518060400160405280600b81526020017f6d617463684f72646572730000000000000000000000000000000000000000008152509450611419565b6001600160e01b031981167f4f9559b10000000000000000000000000000000000000000000000000000000014806113b057506001600160e01b031981167f2280c91000000000000000000000000000000000000000000000000000000000145b156113e7576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161084b90615bdb565b6040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161084b90615ba4565b6001600160e01b031981167fdedfc1f10000000000000000000000000000000000000000000000000000000014156114be57855161146190879060049063ffffffff613ab516565b8060200190516114749190810190614b57565b604080516000808252602082019092529195505b50604080516000808252602082019092529194506114b6565b60608152602001906001900390816114a15790505b50915061193b565b6001600160e01b031981167fbeee2e1400000000000000000000000000000000000000000000000000000000148061151f57506001600160e01b031981167f9694a40200000000000000000000000000000000000000000000000000000000145b8061155357506001600160e01b031981167f8ea8dfe400000000000000000000000000000000000000000000000000000000145b1561156d5761156186613b35565b9195509350915061193b565b6001600160e01b031981167f2da629870000000000000000000000000000000000000000000000000000000014156116555760408051600180825281830190925290816020015b6115bc614131565b8152602001906001900390816115b457505086519094506115e790879060049063ffffffff613ab516565b8060200190516115fa9190810190614fb1565b8460008151811061160757fe5b602002602001018190525060006040519080825280602002602001820160405280156114885781602001602082028038833901905050604080516000808252602082019092529194506114b6565b6001600160e01b031981167fe14b58c40000000000000000000000000000000000000000000000000000000014806116b657506001600160e01b031981167f9b44d55600000000000000000000000000000000000000000000000000000000145b156116c45761156186613b64565b6001600160e01b031981167f78d29ac100000000000000000000000000000000000000000000000000000000148061172557506001600160e01b031981167f369da09900000000000000000000000000000000000000000000000000000000145b8061175957506001600160e01b031981167f8bc8efb300000000000000000000000000000000000000000000000000000000145b8061178d57506001600160e01b031981167fa6c3bf3300000000000000000000000000000000000000000000000000000000145b1561179b5761156186613c5e565b6001600160e01b031981167f88ec79fb00000000000000000000000000000000000000000000000000000000141561193b576117d5614131565b6117dd614131565b6060806117f760048b518c613ab59092919063ffffffff16565b80602001905161180a9190810190615093565b604080516002808252606082019092529498509296509094509250816020015b611832614131565b81526020019060019003908161182a579050509750838860008151811061185557fe5b6020026020010181905250828860018151811061186e57fe5b602090810291909101015260408051600280825260608201909252908160200160208202803883390190505096508360a00151876000815181106118ae57fe5b6020026020010181815250508260a00151876001815181106118cc57fe5b60209081029190910101526040805160028082526060820190925290816020015b60608152602001906001900390816118ed579050509550818660008151811061191257fe5b6020026020010181905250808660018151811061192b57fe5b6020026020010181905250505050505b509193509193565b60008061195283610785613cd2565b825161196890849060049063ffffffff6138ed16565b8060200190516109a69190810190614f04565b60008061198a83610785613cf6565b82516119a090849060049063ffffffff6138ed16565b8060200190516109a6919081019061481a565b6000806119c6838263ffffffff61393016565b90506001600160e01b031981167ff47261b0000000000000000000000000000000000000000000000000000000001415611b3b576000611a0d84601063ffffffff61396416565b6040519091506060907f70a082310000000000000000000000000000000000000000000000000000000090611a469088906024016154e3565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050905060006060836001600160a01b031683604051611ac191906154c7565b600060405180830381855afa9150503d8060008114611afc576040519150601f19603f3d011682016040523d82523d6000602084013e611b01565b606091505b5091509150818015611b14575080516020145b611b1f576000611b30565b611b3081600063ffffffff61399716565b9550505050506120c1565b6001600160e01b031981167f02571792000000000000000000000000000000000000000000000000000000001415611cd657600080611b79856107d2565b6040519194509250606091507f6352211e0000000000000000000000000000000000000000000000000000000090611bb5908490602401615cdc565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050905060006060846001600160a01b031683604051611c3091906154c7565b600060405180830381855afa9150503d8060008114611c6b576040519150601f19603f3d011682016040523d82523d6000602084013e611c70565b606091505b50915091506000828015611c85575081516020145b611c90576000611ca1565b611ca182600c63ffffffff61396416565b9050896001600160a01b0316816001600160a01b031614611cc3576000611cc6565b60015b60ff1697505050505050506120c1565b6001600160e01b031981167fa7cb5fb7000000000000000000000000000000000000000000000000000000001415611eb9576000606080611d16866121b9565b5081519296509094509250905060005b818114611eaf5783516060907efdd58e00000000000000000000000000000000000000000000000000000000908b90879085908110611d6157fe5b6020026020010151604051602401611d7a9291906155ed565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050905060006060876001600160a01b031683604051611df591906154c7565b600060405180830381855afa9150503d8060008114611e30576040519150601f19603f3d011682016040523d82523d6000602084013e611e35565b606091505b50915091506000828015611e4a575081516020145b611e55576000611e66565b611e6682600063ffffffff61399716565b90506000878681518110611e7657fe5b60200260200101518281611e8657fe5b0490508b811080611e9557508b155b15611e9e57809b505b505060019093019250611d26915050565b50505050506120c1565b6001600160e01b031981167fc339d10a00000000000000000000000000000000000000000000000000000000141561200a576040516060907fa85e59e40000000000000000000000000000000000000000000000000000000090611f28908690600090819081906024016159a4565b60408051601f198184030181529181526020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff166001600160e01b03199094169390931790925260045491519092506000916001600160a01b031690611f8f9084906154c7565b600060405180830381855afa9150503d8060008114611fca576040519150601f19603f3d011682016040523d82523d6000602084013e611fcf565b606091505b5050905080611fdf576000612001565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff5b935050506120c1565b6001600160e01b031981167f94cfcdd70000000000000000000000000000000000000000000000000000000014156120c157606080612048856124f0565b80519194509250905060005b8181146120bc57600061207a8985848151811061206d57fe5b60200260200101516119b3565b9050600085838151811061208a57fe5b6020026020010151828161209a57fe5b049050878110806120a9575087155b156120b2578097505b5050600101612054565b505050505b5092915050565b6000806120db838263ffffffff61393016565b91506001600160e01b031982167ff47261b00000000000000000000000000000000000000000000000000000000014612140576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161084b90615c49565b61215183601063ffffffff61396416565b9050915091565b6000806000606061216b85610785613d1a565b600061218460048751886138ed9092919063ffffffff16565b80602001905161219791908101906151c6565b91965094509250905060ff811660068111156121af57fe5b9450509193509193565b600080606080806121d0868563ffffffff61393016565b94506001600160e01b031985167fa7cb5fb70000000000000000000000000000000000000000000000000000000014612235576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161084b90615c49565b505050506024828101516044840151606485015160848601519496929591820184019490820184019391010190565b6060808251604051908082528060200260200182016040528015612292578160200160208202803883390190505b50905060005b835181146120c1578381815181106122ac57fe5b60200260200101516001600160a01b0316318282815181106122ca57fe5b6020908102919091010152600101612298565b60606000845190508060405190808252806020026020018201604052801561230f578160200160208202803883390190505b50915060005b8181146123975761236086828151811061232b57fe5b602002602001015186838151811061233f57fe5b602002602001015186848151811061235357fe5b6020026020010151612d86565b83828151811061236c57fe5b6020026020010190600481111561237f57fe5b9081600481111561238c57fe5b905250600101612315565b50509392505050565b6040516060907f0257179200000000000000000000000000000000000000000000000000000000906123d890859085906024016155ed565b60408051601f198184030181529190526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff166001600160e01b031990931692909217909152905092915050565b6000606080606061243a85610785613d3e565b845161245090869060049063ffffffff6138ed16565b806020019051610a3e91908101906148ed565b6040516060907fa7cb5fb7000000000000000000000000000000000000000000000000000000009061249f908790879087908790602401615535565b60408051601f198184030181529190526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff166001600160e01b0319909316929092179091529050949350505050565b6000606080612505848463ffffffff61393016565b92506001600160e01b031983167f94cfcdd7000000000000000000000000000000000000000000000000000000001461256a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161084b90615c49565b835161258090859060049063ffffffff613ab516565b8060200190516125939190810190614d67565b9395909450915050565b600060606125ad83610785613d62565b82516125c390849060049063ffffffff6138ed16565b8060200190516109a69190810190614e45565b6000806060816125ec858263ffffffff61393016565b93506001600160e01b031984167fc339d10a0000000000000000000000000000000000000000000000000000000014612651576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161084b90615c49565b845161266790869060049063ffffffff613ab516565b80602001905161267a9190810190614895565b9597919650949350915050565b60008061269683610785613d86565b60006126af60048551866138ed9092919063ffffffff16565b8060200190516126c29190810190615157565b9250905060ff81166001811115610a9b57fe5b606060008251905080604051908082528060200260200182016040528015612707578160200160208202803883390190505b50915060005b818114610cb1576127248585838151811061206d57fe5b83828151811061273057fe5b602090810291909101015260010161270d565b600080612756838263ffffffff61393016565b90506001600160e01b031981167f94cfcdd700000000000000000000000000000000000000000000000000000000141561280857606080612796856124f0565b80519194509250905060005b8181146127fd5760006127bb89858481518110610c8557fe5b905060008583815181106127cb57fe5b602002602001015182816127db57fe5b049050878110806127ea575087155b156127f3578097505b50506001016127a2565b506109219350505050565b6001600160e01b031981167ff47261b000000000000000000000000000000000000000000000000000000000141561289357600061284d84601063ffffffff61396416565b6001546040519192506060917fdd62ed3e0000000000000000000000000000000000000000000000000000000091611a469189916001600160a01b0316906024016154f7565b6001600160e01b031981167f02571792000000000000000000000000000000000000000000000000000000001415612b83576000806128d1856107d2565b600254604051929550909350606092507fe985e9c5000000000000000000000000000000000000000000000000000000009161291d918a916001600160a01b03909116906024016154f7565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050905060006060846001600160a01b03168360405161299891906154c7565b600060405180830381855afa9150503d80600081146129d3576040519150601f19603f3d011682016040523d82523d6000602084013e6129d8565b606091505b50915091508115806129ec57508051602014155b80612a085750612a0381600063ffffffff61399716565b600114155b15612b56576040516060907f081812fc0000000000000000000000000000000000000000000000000000000090612a43908790602401615cdc565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff83818316178352505050509050856001600160a01b031681604051612aba91906154c7565b600060405180830381855afa9150503d8060008114612af5576040519150601f19603f3d011682016040523d82523d6000602084013e612afa565b606091505b509093509150828015612b0e575081516020145b8015612b3d57506002546001600160a01b0316612b3283600c63ffffffff61396416565b6001600160a01b0316145b612b48576000612b4b565b60015b60ff16975050611eaf565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff965050505050506120c1565b6001600160e01b031981167fa7cb5fb7000000000000000000000000000000000000000000000000000000001415612d2b576000612bc0846121b9565b5050600354604051929450606093507fe985e9c50000000000000000000000000000000000000000000000000000000092612c0a925089916001600160a01b0316906024016154f7565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050905060006060836001600160a01b031683604051612c8591906154c7565b600060405180830381855afa9150503d8060008114612cc0576040519150601f19603f3d011682016040523d82523d6000602084013e612cc5565b606091505b5091509150818015612cd8575080516020145b8015612cf45750612cf081600063ffffffff61399716565b6001145b612cff576000611b30565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff9550505050506120c1565b6001600160e01b031981167fc339d10a0000000000000000000000000000000000000000000000000000000014156120c157507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff9392505050565b6000612d906141c4565b612e218584600560009054906101000a90046001600160a01b03166001600160a01b0316631ce4c78b6040518163ffffffff1660e01b815260040160206040518083038186803b158015612de357600080fd5b505afa158015612df7573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250612e1b919081019061513f565b3a613daa565b60408051600480825260a0820190925291925060609190816020015b6060815260200190600190039081612e3d57505060408051600480825260a082019092529192506060919060208201608080388339505060408051600480825260a08201909252929350606092915060208201608080388339505060408051600480825260a0820190925292935060609291506020820160808038833901905050905088610160015184600081518110612ed357fe5b60200260200101819052508783600081518110612eec57fe5b60200260200101906001600160a01b031690816001600160a01b031681525050886000015182600081518110612f1e57fe5b60200260200101906001600160a01b031690816001600160a01b0316815250508681600081518110612f4c57fe5b60200260200101818152505088610140015184600181518110612f6b57fe5b6020026020010181905250886000015183600181518110612f8857fe5b60200260200101906001600160a01b031690816001600160a01b0316815250508782600181518110612fb657fe5b60200260200101906001600160a01b031690816001600160a01b031681525050846000015181600181518110612fe857fe5b602002602001018181525050886101a001518460028151811061300757fe5b6020026020010181905250878360028151811061302057fe5b60200260200101906001600160a01b031690816001600160a01b03168152505088604001518260028151811061305257fe5b60200260200101906001600160a01b031690816001600160a01b03168152505084606001518160028151811061308457fe5b602002602001018181525050886101800151846003815181106130a357fe5b60200260200101819052508860000151836003815181106130c057fe5b60200260200101906001600160a01b031690816001600160a01b0316815250508860400151826003815181106130f257fe5b60200260200101906001600160a01b031690816001600160a01b03168152505084604001518160038151811061312457fe5b60209081029190910101526040516060907fb04fbddd000000000000000000000000000000000000000000000000000000009061316b908790879087908790602401615606565b60408051601f198184030181529181526020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff166001600160e01b03199094169390931790925260055491519092506060916001600160a01b0316906131d29084906154c7565b6000604051808303816000865af19150503d806000811461320f576040519150601f19603f3d011682016040523d82523d6000602084013e613214565b606091505b5091506000905061322b828263ffffffff61393016565b9050613235613a25565b6001600160e01b031982811691161415613277576000613254836109b0565b5091505060ff8116600481111561326757fe5b9950505050505050505050610dc1565b61327f6139dd565b6001600160e01b0319828116911614156132b257600061329e83610927565b509091505060ff8116600481111561326757fe5b815160208301207ff43f26ea5a94b478394a975e856464913dc1a8a1ca70939d974aa7c238aa0ce014156132f157600498505050505050505050610dc1565b6040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161084b90615b6d565b6040516060907f94cfcdd700000000000000000000000000000000000000000000000000000000906123d89085908590602401615757565b600061336d828263ffffffff61393016565b90506001600160e01b031981167ff47261b00000000000000000000000000000000000000000000000000000000014806133d057506001600160e01b031981167f0257179200000000000000000000000000000000000000000000000000000000145b8061340457506001600160e01b031981167fa7cb5fb700000000000000000000000000000000000000000000000000000000145b8061343857506001600160e01b031981167f94cfcdd700000000000000000000000000000000000000000000000000000000145b8061346c57506001600160e01b031981167fc339d10a00000000000000000000000000000000000000000000000000000000145b6134a2576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161084b90615c49565b919050565b6060806060600085519050806040519080825280602002602001820160405280156134ec57816020015b6134d96141f3565b8152602001906001900390816134d15790505b50935080604051908082528060200260200182016040528015613519578160200160208202803883390190505b50925080604051908082528060200260200182016040528015613546578160200160208202803883390190505b50915060005b8181146135d65761358387828151811061356257fe5b602002602001015187838151811061357657fe5b60200260200101516135f8565b875188908590811061359157fe5b602002602001018785815181106135a457fe5b602002602001018786815181106135b757fe5b931515602094850291909101909301929092529190525260010161354c565b50509250925092565b6060806135ec84846126d5565b91506108998484610c36565b6136006141f3565b600080546040517f9d3fa4b900000000000000000000000000000000000000000000000000000000815282916001600160a01b031690639d3fa4b99061364a908890600401615ca4565b60606040518083038186803b15801561366257600080fd5b505afa158015613676573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525061369a9190810190614f60565b85516000546040517fa12dcc6f00000000000000000000000000000000000000000000000000000000815292955090916001600160a01b039091169063a12dcc6f906136ec9089908990600401615cb7565b60206040518083038186803b15801561370457600080fd5b505afa158015613718573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525061373c9190810190614dbe565b9150600061374f828861014001516108ff565b60a088015160c08901516101808a01516101408b01519394509192909160009161377e9163ffffffff613e2116565b156137ab576137a48461379e848d60800151613e4690919063ffffffff16565b85613e62565b9050613804565b816137bf576137a4848b6080015185613e62565b60006137d0868c61018001516108ff565b905060006137e3868d6080015187613e62565b905060006137f2838688613e62565b90506137fe82826139c7565b93505050505b61382461381e896040015185613e8c90919063ffffffff16565b826139c7565b965050505050509250925092565b600080600061384384610785613eab565b600061385c60048651876138ed9092919063ffffffff16565b8060200190516108df9190810190615184565b7ffdb6ca8d0000000000000000000000000000000000000000000000000000000090565b60006138a0836000613930565b90506001600160e01b0319808216908316146138e8576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161084b90615c12565b505050565b60608183111561390b5761390b61390660008585613ecf565b613eee565b8351821115613924576139246139066001848751613ecf565b50819003910190815290565b60008160040183511015613951576139516139066003855185600401613ecf565b5001602001516001600160e01b03191690565b60008160140183511015613985576139856139066004855185601401613ecf565b5001601401516001600160a01b031690565b6000610dc18383613ef6565b7f18e4b1410000000000000000000000000000000000000000000000000000000090565b60008183106139d65781610dc1565b5090919050565b7f4678472b0000000000000000000000000000000000000000000000000000000090565b7fb6555d6f0000000000000000000000000000000000000000000000000000000090565b7f488219a60000000000000000000000000000000000000000000000000000000090565b7f1b8388f70000000000000000000000000000000000000000000000000000000090565b7fe94a7ed00000000000000000000000000000000000000000000000000000000090565b7f4ad312750000000000000000000000000000000000000000000000000000000090565b606081831115613ace57613ace61390660008585613ecf565b8351821115613ae757613ae76139066001848751613ecf565b8282036040519080825280601f01601f191660200182016040528015613b14576020820181803883390190505b509050610dc1613b2382613f20565b84613b2d87613f20565b018351613f26565b6060806060613b516004855186613ab59092919063ffffffff16565b8060200190516109619190810190614c65565b60408051600180825281830190925260609182918291816020015b613b87614131565b815260200190600190039081613b7f5750506040805160018082528183019092529194506020808301908038833901905050604080516001808252818301909252919350816020015b6060815260200190600190039081613bd05750508451909150613bfd90859060049063ffffffff613ab516565b806020019051613c1091908101906150ec565b85600081518110613c1d57fe5b6020026020010185600081518110613c3157fe5b6020026020010185600081518110613c4557fe5b6020908102919091010192909252919052529193909250565b604080516001808252818301909252606091829182916020808301908038833950508551919350613c9a9186915060049063ffffffff613ab516565b806020019051613cad9190810190614cdf565b84518590600090613cba57fe5b60209081029190910101919091529095929450925050565b7f11c7b7200000000000000000000000000000000000000000000000000000000090565b7fa15c0d060000000000000000000000000000000000000000000000000000000090565b7f7e5a23180000000000000000000000000000000000000000000000000000000090565b7f5bd0428d0000000000000000000000000000000000000000000000000000000090565b7f20d11f610000000000000000000000000000000000000000000000000000000090565b7ff59851840000000000000000000000000000000000000000000000000000000090565b613db26141c4565b6020810184905260a08501516080860151613dce918691613fcb565b815260a085015160c0860151613de5918691613fcb565b604082015260a085015160e0860151613dff918691613fcb565b6060820152613e14828463ffffffff613fff16565b6080820152949350505050565b600081518351148015610dc15750508051602091820120825192909101919091201490565b600082820183811015610dc157610dc16139066000868661402c565b6000613e8483613e78868563ffffffff613fff16565b9063ffffffff61404b16565b949350505050565b600082821115613ea557613ea56139066002858561402c565b50900390565b7fe53c76c80000000000000000000000000000000000000000000000000000000090565b6060632800659560e01b848484604051602401610d7793929190615a7b565b805160208201fd5b60008160200183511015613f1757613f176139066005855185602001613ecf565b50016020015190565b60200190565b6020811015613f50576001816020036101000a0380198351168185511680821786525050506138e8565b82821415613f5d576138e8565b82821115613f975760208103905080820181840181515b82851015613f8f578451865260209586019590940193613f74565b9052506138e8565b60208103905080820181840183515b81861215613fc25782518252601f199283019290910190613fa6565b85525050505050565b6000613fd8848484614075565b15613feb57613feb6139068585856140db565b613e8483613e78868563ffffffff613fff16565b60008261400e57506000610921565b8282028284828161401b57fe5b0414610dc157610dc1613906600186865b606063e946c1bb60e01b848484604051602401610d7793929190615a0a565b600081614061576140616139066003858561402c565b600082848161406c57fe5b04949350505050565b600082614087576140876139066140fa565b811580614092575083155b1561409f57506000610dc1565b600083806140a957fe5b85840990506140be858463ffffffff613fff16565b6140d0826103e863ffffffff613fff16565b101595945050505050565b606063339f3de260e01b848484604051602401610d7793929190615ce5565b60408051808201909152600481527fa791837c00000000000000000000000000000000000000000000000000000000602082015290565b604051806101c0016040528060006001600160a01b0316815260200160006001600160a01b0316815260200160006001600160a01b0316815260200160006001600160a01b03168152602001600081526020016000815260200160008152602001600081526020016000815260200160008152602001606081526020016060815260200160608152602001606081525090565b6040518060a0016040528060008152602001600081526020016000815260200160008152602001600081525090565b604080516060810182526000808252602082018190529181019190915290565b803561092181615dc1565b805161092181615dc1565b600082601f830112614239578081fd5b813561424c61424782615d22565b615cfb565b81815291506020808301908481018184028601820187101561426d57600080fd5b60005b848110156120bc57813561428381615dc1565b84529282019290820190600101614270565b600082601f8301126142a5578081fd5b81516142b361424782615d22565b8181529150602080830190840160005b838110156142f0576142db8760208451890101614515565b835260209283019291909101906001016142c3565b5050505092915050565b600082601f83011261430a578081fd5b813561431861424782615d22565b8181529150602080830190840160005b838110156142f05761434087602084358901016144c7565b83526020928301929190910190600101614328565b600082601f830112614365578081fd5b815161437361424782615d22565b8181529150602080830190840160005b838110156142f05761439b87602084518901016146aa565b83526020928301929190910190600101614383565b600082601f8301126143c0578081fd5b81356143ce61424782615d22565b8181529150602080830190840160005b838110156142f0576143f6876020843589010161455b565b835260209283019291909101906001016143de565b600082601f83011261441b578081fd5b815161442961424782615d22565b81815291506020808301908481018184028601820187101561444a57600080fd5b60005b848110156120bc5781518452928201929082019060010161444d565b600082601f830112614479578081fd5b813561448761424782615d22565b8181529150602080830190848101818402860182018710156144a857600080fd5b60005b848110156120bc578135845292820192908201906001016144ab565b600082601f8301126144d7578081fd5b81356144e561424782615d42565b91508082528360208285010111156144fc57600080fd5b8060208401602084013760009082016020015292915050565b600082601f830112614525578081fd5b815161453361424782615d42565b915080825283602082850101111561454a57600080fd5b6120c1816020840160208601615d66565b60006101c080838503121561456e578182fd5b61457781615cfb565b9150506145848383614213565b81526145938360208401614213565b60208201526145a58360408401614213565b60408201526145b78360608401614213565b60608201526080820135608082015260a082013560a082015260c082013560c082015260e082013560e08201526101008083013581830152506101208083013581830152506101408083013567ffffffffffffffff8082111561461957600080fd5b614625868387016144c7565b8385015261016092508285013591508082111561464157600080fd5b61464d868387016144c7565b8385015261018092508285013591508082111561466957600080fd5b614675868387016144c7565b838501526101a092508285013591508082111561469157600080fd5b5061469e858286016144c7565b82840152505092915050565b60006101c08083850312156146bd578182fd5b6146c681615cfb565b9150506146d3838361421e565b81526146e2836020840161421e565b60208201526146f4836040840161421e565b6040820152614706836060840161421e565b60608201526080820151608082015260a082015160a082015260c082015160c082015260e082015160e08201526101008083015181830152506101208083015181830152506101408083015167ffffffffffffffff8082111561476857600080fd5b61477486838701614515565b8385015261016092508285015191508082111561479057600080fd5b61479c86838701614515565b838501526101809250828501519150808211156147b857600080fd5b6147c486838701614515565b838501526101a09250828501519150808211156147e057600080fd5b5061469e85828601614515565b805160ff8116811461092157600080fd5b60006020828403121561480f578081fd5b8135610dc181615dc1565b6000806040838503121561482c578081fd5b825161483781615dc1565b602084015190925061484881615dc1565b809150509250929050565b600080600060608486031215614867578081fd5b835161487281615dc1565b602085015190935061488381615dc1565b80925050604084015190509250925092565b6000806000606084860312156148a9578081fd5b83516148b481615dc1565b602085015190935067ffffffffffffffff8111156148d0578182fd5b6148dc86828701614515565b925050604084015190509250925092565b60008060008060808587031215614902578182fd5b845161490d81615dc1565b602086015190945067ffffffffffffffff8082111561492a578384fd5b61493688838901614515565b9450604087015191508082111561494b578384fd5b61495788838901614515565b9350606087015191508082111561496c578283fd5b5061497987828801614515565b91505092959194509250565b60008060408385031215614997578182fd5b82356149a281615dc1565b9150602083013567ffffffffffffffff8111156149bd578182fd5b6149c9858286016142fa565b9150509250929050565b600080600080608085870312156149e8578182fd5b84356149f381615dc1565b9350602085013567ffffffffffffffff80821115614a0f578384fd5b614a1b88838901614469565b94506040870135915080821115614a30578384fd5b614a3c88838901614469565b93506060870135915080821115614a51578283fd5b50614979878288016144c7565b60008060408385031215614a70578182fd5b8235614a7b81615dc1565b9150602083013567ffffffffffffffff811115614a96578182fd5b6149c9858286016144c7565b600080600060608486031215614ab6578081fd5b8335614ac181615dc1565b9250602084013567ffffffffffffffff811115614adc578182fd5b614ae8868287016144c7565b925050604084013590509250925092565b60008060408385031215614b0b578182fd5b8235614b1681615dc1565b946020939093013593505050565b600060208284031215614b35578081fd5b813567ffffffffffffffff811115614b4b578182fd5b613e8484828501614229565b600060208284031215614b68578081fd5b815167ffffffffffffffff811115614b7e578182fd5b613e8484828501614355565b600080600060608486031215614b9e578081fd5b833567ffffffffffffffff80821115614bb5578283fd5b614bc1878388016143b0565b94506020860135915080821115614bd6578283fd5b614be287838801614229565b93506040860135915080821115614bf7578283fd5b50614c0486828701614469565b9150509250925092565b60008060408385031215614c20578182fd5b823567ffffffffffffffff80821115614c37578384fd5b614c43868387016143b0565b93506020850135915080821115614c58578283fd5b506149c9858286016142fa565b600080600060608486031215614c79578081fd5b835167ffffffffffffffff80821115614c90578283fd5b614c9c87838801614355565b94506020860151915080821115614cb1578283fd5b614cbd8783880161440b565b93506040860151915080821115614cd2578283fd5b50614c0486828701614295565b600080600060608486031215614cf3578081fd5b835167ffffffffffffffff80821115614d0a578283fd5b614d1687838801614355565b9450602086015193506040860151915080821115614cd2578283fd5b60008060408385031215614d44578182fd5b823567ffffffffffffffff80821115614d5b578384fd5b614c4386838701614469565b60008060408385031215614d79578182fd5b825167ffffffffffffffff80821115614d90578384fd5b614d9c8683870161440b565b93506020850151915080821115614db1578283fd5b506149c985828601614295565b600060208284031215614dcf578081fd5b81518015158114610dc1578182fd5b60008060008060808587031215614df3578182fd5b845193506020850151614e0581615dc1565b604086015190935067ffffffffffffffff8082111561494b578384fd5b60008060408385031215614e34578182fd5b505080516020909101519092909150565b60008060408385031215614e57578182fd5b82519150602083015167ffffffffffffffff811115614e74578182fd5b6149c985828601614515565b600080600060608486031215614e94578081fd5b83519250602084015167ffffffffffffffff80821115614eb2578283fd5b614ebe87838801614515565b93506040860151915080821115614ed3578283fd5b50614c0486828701614515565b60008060408385031215614ef2578182fd5b82519150602083015161484881615dd6565b60008060408385031215614f16578182fd5b82516001600160e01b031981168114614837578283fd5b600060208284031215614f3e578081fd5b813567ffffffffffffffff811115614f54578182fd5b613e84848285016144c7565b60006060828403128015614f72578182fd5b8015614f7c578182fd5b50614f876060615cfb565b614f9184846147ed565b815260208301516020820152604083015160408201528091505092915050565b600060208284031215614fc2578081fd5b815167ffffffffffffffff811115614fd8578182fd5b613e84848285016146aa565b600080600060608486031215614ff8578081fd5b833567ffffffffffffffff81111561500e578182fd5b61501a8682870161455b565b935050602084013561502b81615dc1565b929592945050506040919091013590565b6000806040838503121561504e578182fd5b823567ffffffffffffffff80821115615065578384fd5b6150718683870161455b565b93506020850135915080821115615086578283fd5b506149c9858286016144c7565b600080600080608085870312156150a8578182fd5b845167ffffffffffffffff808211156150bf578384fd5b6150cb888389016146aa565b955060208701519150808211156150e0578384fd5b614936888389016146aa565b600080600060608486031215615100578081fd5b835167ffffffffffffffff80821115615117578283fd5b615123878388016146aa565b9450602086015193506040860151915080821115614ed3578283fd5b600060208284031215615150578081fd5b5051919050565b60008060408385031215615169578182fd5b825161517481615dd6565b6020939093015192949293505050565b600080600060608486031215615198578081fd5b83516151a381615dd6565b6020850151604086015191945092506151bb81615dc1565b809150509250925092565b600080600080608085870312156151db578182fd5b6151e586866147ed565b93506020850151925060408501516151fc81615dc1565b606086015190925067ffffffffffffffff811115615218578182fd5b61497987828801614515565b600080600060608486031215615238578081fd5b61524285856147ed565b925060208401519150604084015167ffffffffffffffff811115615264578182fd5b614c0486828701614515565b600080600060608486031215615284578081fd5b61528e85856147ed565b925060208401519150604084015190509250925092565b6001600160a01b03169052565b6000815180845260208401935060208301825b828110156152ec5781516001600160a01b03168652602095860195909101906001016152c5565b5093949350505050565b600081518084526020840180819550602083028101915060208501845b8481101561534157828403885261532b84835161537e565b6020988901989094509190910190600101615313565b50919695505050505050565b6000815180845260208401935060208301825b828110156152ec578151865260209586019590910190600101615360565b60008151808452615396816020860160208601615d66565b601f01601f19169290920160200192915050565b805160ff16825260208082015190830152604090810151910152565b60006101c06153d68484516152a5565b60208301516153e860208601826152a5565b5060408301516153fb60408601826152a5565b50606083015161540e60608601826152a5565b506080830151608085015260a083015160a085015260c083015160c085015260e083015160e08501526101008084015181860152506101208084015181860152506101408084015182828701526154678387018261537e565b91505061016091508184015185820383870152615484828261537e565b9250505061018080840151858303828701526154a0838261537e565b9150506101a0915081840151858203838701526154bd828261537e565b9695505050505050565b600082516154d9818460208701615d66565b9190910192915050565b6001600160a01b0391909116815260200190565b6001600160a01b0392831681529116602082015260400190565b6001600160a01b039384168152919092166020820152604081019190915260600190565b60006001600160a01b038616825260806020830152615557608083018661534d565b8281036040840152615569818661534d565b838103606085015261557b818661537e565b98975050505050505050565b60006001600160a01b0385168252606060208301526155a9606083018561537e565b9050826040830152949350505050565b60006001600160a01b0386168252608060208301526155db608083018661537e565b8281036040840152615569818661537e565b6001600160a01b03929092168252602082015260400190565b60006080825261561960808301876152f6565b828103602084015261562b81876152b2565b838103604085015261563d81876152b2565b9150508281036060840152615652818561534d565b979650505050505050565b602080825282518282018190526000918401906040840190835b8181101561569e57835161568a81615db7565b835260209384019390920191600101615677565b509095945050505050565b606080825284519082018190526000906020906080840190828801845b828110156156ec576156d98483516153aa565b60609390930192908401906001016156c6565b50505083810382850152615700818761534d565b84810360408601528551808252908301915082860190845b81811015615736578251151584529284019291840191600101615718565b509198975050505050505050565b600060208252610dc1602083018461534d565b60006040825261576a604083018561534d565b828103602084015261577c81856152f6565b95945050505050565b600060408252615798604083018561534d565b828103602084015261577c818561534d565b60008582526001600160a01b0385166020830152608060408301526157d2608083018561537e565b8281036060840152615652818561537e565b918252602082015260400190565b600083825260406020830152613e84604083018461537e565b600084825260606020830152615824606083018561537e565b82810360408401526154bd818561537e565b8281526040810161584683615dad565b8260208301529392505050565b6001600160e01b031991909116815260200190565b6001600160e01b03199290921682526001600160a01b0316602082015260400190565b60006001600160e01b0319871682526001600160a01b038616602083015260a060408301526158bd60a083018661534d565b82810360608401526158cf818661534d565b83810360808501526158e1818661537e565b9998505050505050505050565b60006001600160e01b0319861682526001600160a01b038516602083015260806040830152615920608083018561537e565b905082606083015295945050505050565b6001600160e01b03199390931683526001600160a01b03919091166020830152604082015260600190565b60006001600160e01b0319851682526060602083015261597f606083018561534d565b82810360408401526154bd81856152f6565b600060208252610dc1602083018461537e565b6000608082526159b7608083018761537e565b6001600160a01b03958616602084015293909416604082015260ff9190911660609091015292915050565b60006159ed85615d96565b8482528360208301526060604083015261577c606083018461537e565b6060810160048510615a1857fe5b938152602081019290925260409091015290565b60608101615a3985615da3565b93815260208101929092526001600160a01b031660409091015290565b6040810160048410615a6457fe5b9281526020015290565b60608101615a1885615da3565b6060810160088510615a1857fe5b60208101615a9683615db7565b91905290565b6000615aa786615dad565b8582528460208301526001600160a01b0384166040830152608060608301526154bd608083018461537e565b60408101615a6484615d96565b600060808252615af3608083018761537e565b602083820381850152818751808452828401915082838202850101838a01865b83811015615b4157601f19878403018552615b2f8383516153c6565b94860194925090850190600101615b13565b50508681036040880152615b55818a61534d565b945050505050828103606084015261565281856152f6565b60208082526013908201527f554e4b4e4f574e5f52455455524e5f4441544100000000000000000000000000604082015260600190565b60208082526019908201527f554e4b4e4f574e5f46554e4354494f4e5f53454c4543544f5200000000000000604082015260600190565b6020808252600d908201527f554e494d504c454d454e54454400000000000000000000000000000000000000604082015260600190565b6020808252600c908201527f4241445f53454c4543544f520000000000000000000000000000000000000000604082015260600190565b6020808252600e908201527f57524f4e475f50524f58595f4944000000000000000000000000000000000000604082015260600190565b60a08101615c8e82866153aa565b8360608301528215156080830152949350505050565b600060208252610dc160208301846153c6565b600060408252615cca60408301856153c6565b828103602084015261577c818561537e565b90815260200190565b9283526020830191909152604082015260600190565b60405181810167ffffffffffffffff81118282101715615d1a57600080fd5b604052919050565b600067ffffffffffffffff821115615d38578081fd5b5060209081020190565b600067ffffffffffffffff821115615d58578081fd5b50601f01601f191660200190565b60005b83811015615d81578181015183820152602001615d69565b83811115615d90576000848401525b50505050565b60028110615da057fe5b50565b60038110615da057fe5b60078110615da057fe5b60058110615da057fe5b6001600160a01b0381168114615da057600080fd5b60ff81168114615da057600080fdfea365627a7a723158209bd08114ba2e3dada6fb089e11dba7dc3bfedf454a0bac82e7a05d67b08360dd6c6578706572696d656e74616cf564736f6c634300050c0040" } } }, @@ -889,5 +955,5 @@ "evmVersion": "constantinople" } }, - "networks": {} + "chains": {} } diff --git a/packages/contract-artifacts/artifacts/EthBalanceChecker.json b/packages/contract-artifacts/artifacts/EthBalanceChecker.json deleted file mode 100644 index 37d20e9223..0000000000 --- a/packages/contract-artifacts/artifacts/EthBalanceChecker.json +++ /dev/null @@ -1,59 +0,0 @@ -{ - "schemaVersion": "2.0.0", - "contractName": "EthBalanceChecker", - "compilerOutput": { - "abi": [ - { - "constant": true, - "inputs": [{ "internalType": "address[]", "name": "addresses", "type": "address[]" }], - "name": "getEthBalances", - "outputs": [{ "internalType": "uint256[]", "name": "", "type": "uint256[]" }], - "payable": false, - "stateMutability": "view", - "type": "function" - } - ], - "devdoc": { - "methods": { - "getEthBalances(address[])": { - "details": "Batch fetches ETH balances", - "params": { "addresses": "Array of addresses." }, - "return": "Array of ETH balances." - } - } - }, - "evm": { - "bytecode": { - "object": "0x608060405234801561001057600080fd5b506101e5806100206000396000f3fe608060405234801561001057600080fd5b506004361061002b5760003560e01c8063a0901e5114610030575b600080fd5b6100d36004803603602081101561004657600080fd5b81019060208101813564010000000081111561006157600080fd5b82018360208201111561007357600080fd5b8035906020019184602083028401116401000000008311171561009557600080fd5b919080806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250929550610123945050505050565b60408051602080825283518183015283519192839290830191858101910280838360005b8381101561010f5781810151838201526020016100f7565b505050509050019250505060405180910390f35b6060808251604051908082528060200260200182016040528015610151578160200160208202803883390190505b50905060005b835181146101a95783818151811061016b57fe5b602002602001015173ffffffffffffffffffffffffffffffffffffffff163182828151811061019657fe5b6020908102919091010152600101610157565b509291505056fea265627a7a7231582094309783f0b63086d85d9cb4f6e5be253699056ac1580a863367c5076ecb5c1864736f6c634300050b0032" - }, - "deployedBytecode": { - "object": "0x608060405234801561001057600080fd5b506004361061002b5760003560e01c8063a0901e5114610030575b600080fd5b6100d36004803603602081101561004657600080fd5b81019060208101813564010000000081111561006157600080fd5b82018360208201111561007357600080fd5b8035906020019184602083028401116401000000008311171561009557600080fd5b919080806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250929550610123945050505050565b60408051602080825283518183015283519192839290830191858101910280838360005b8381101561010f5781810151838201526020016100f7565b505050509050019250505060405180910390f35b6060808251604051908082528060200260200182016040528015610151578160200160208202803883390190505b50905060005b835181146101a95783818151811061016b57fe5b602002602001015173ffffffffffffffffffffffffffffffffffffffff163182828151811061019657fe5b6020908102919091010152600101610157565b509291505056fea265627a7a7231582094309783f0b63086d85d9cb4f6e5be253699056ac1580a863367c5076ecb5c1864736f6c634300050b0032" - } - } - }, - "compiler": { - "name": "solc", - "version": "soljson-v0.5.11+commit.c082d0b4.js", - "settings": { - "optimizer": { - "enabled": true, - "runs": 10000, - "details": { "yul": true, "deduplicate": true, "cse": true, "constantOptimizer": true } - }, - "outputSelection": { - "*": { - "*": [ - "abi", - "devdoc", - "evm.bytecode.object", - "evm.bytecode.sourceMap", - "evm.deployedBytecode.object", - "evm.deployedBytecode.sourceMap" - ] - } - }, - "evmVersion": "constantinople" - } - }, - "networks": {} -} diff --git a/packages/contract-artifacts/artifacts/Staking.json b/packages/contract-artifacts/artifacts/Staking.json index fb94c6ae64..e5ef42a938 100644 --- a/packages/contract-artifacts/artifacts/Staking.json +++ b/packages/contract-artifacts/artifacts/Staking.json @@ -5,8 +5,8 @@ "abi": [ { "inputs": [ - { "internalType": "address", "name": "wethAddress_", "type": "address" }, - { "internalType": "address", "name": "zrxVaultAddress_", "type": "address" } + { "internalType": "address", "name": "wethAddress", "type": "address" }, + { "internalType": "address", "name": "zrxVaultAddress", "type": "address" } ], "payable": false, "stateMutability": "nonpayable", @@ -933,10 +933,10 @@ }, "evm": { "bytecode": { - "object": "0x60806040523480156200001157600080fd5b506040516200577538038062005775833981016040819052620000349162000071565b600080546001600160a01b03199081163317909155601880546001600160a01b0394851690831617905560198054929093169116179055620000c8565b6000806040838503121562000084578182fd5b82516200009181620000af565b6020840151909250620000a481620000af565b809150509250929050565b6001600160a01b0381168114620000c557600080fd5b50565b61569d80620000d86000396000f3fe6080604052600436106103295760003560e01c80638da5cb5b116101a5578063bb7ef7e0116100ec578063e8eeb3f811610095578063f18765321161006f578063f1876532146108bf578063f252b7a1146108df578063f2fde38b146108ff578063ff691b111461091f57610329565b8063e8eeb3f814610875578063e907f0031461088a578063ee99205c146108aa57610329565b8063e0ee036e116100c6578063e0ee036e1461082b578063e1c7392a14610840578063e804d0a41461085557610329565b8063bb7ef7e0146107c9578063c18c9141146107e9578063d39de6e91461080957610329565b8063a694fc3a1161014e578063b3e3337911610128578063b3e3337914610769578063b510879f14610789578063b9181611146107a957610329565b8063a694fc3a1461071f578063b05315241461073f578063b2baa33e1461075457610329565b8063a26171e21161017f578063a26171e2146106e2578063a3b4a327146106f7578063a657e5791461070a57610329565b80638da5cb5b1461068d5780639ad26744146106a25780639c3ccc82146106c257610329565b80634bcc3f6711610274578063624a72321161021d57806370712939116101f757806370712939146106165780637667180814610636578063816667961461064b5780638a2e271a1461066d57610329565b8063624a7232146105cc57806363403801146105e157806368a7d6cd146105f657610329565b80635bd4ab731161024e5780635bd4ab73146105595780635d91121d146105865780635e615a6b146105a657610329565b80634bcc3f67146104f7578063587da0231461052457806358f6c7e31461053957610329565b80633c277fc5116102d657806344a6958b116102b057806344a6958b1461048a57806346b97959146104aa578063494503d4146104d757610329565b80633c277fc51461041b5780633e4ad7321461043d57806342f1181e1461046a57610329565b80632a94c279116103075780632a94c2791461039b5780632e17de78146103ca57806338229d93146103ea57610329565b806301e28d841461032e5780630b9663db146103505780631e7ff8f61461037b575b600080fd5b34801561033a57600080fd5b5061034e610349366004614fb8565b61093f565b005b34801561035c57600080fd5b50610365610a0d565b6040516103729190615318565b60405180910390f35b34801561038757600080fd5b50610365610396366004614fb8565b610b5a565b3480156103a757600080fd5b506103bb6103b63660046150cc565b610bf4565b60405161037293929190615505565b3480156103d657600080fd5b5061034e6103e5366004615090565b610c20565b3480156103f657600080fd5b5061040a610405366004615090565b610dd5565b604051610372959493929190615536565b34801561042757600080fd5b50610430610e04565b6040516103729190615215565b34801561044957600080fd5b5061045d610458366004615090565b610e20565b60405161037291906154c6565b34801561047657600080fd5b5061034e610485366004614fb8565b610e3f565b34801561049657600080fd5b5061045d6104a536600461503d565b610e53565b3480156104b657600080fd5b506104ca6104c5366004615090565b610eb2565b6040516103729190615472565b3480156104e357600080fd5b506104306104f2366004615090565b610efd565b34801561050357600080fd5b50610517610512366004615090565b610f31565b6040516103729190615493565b34801561053057600080fd5b50610365610f93565b34801561054557600080fd5b5061034e610554366004615135565b610f99565b34801561056557600080fd5b50610579610574366004614fb8565b611196565b604051610372919061530d565b34801561059257600080fd5b5061034e6105a13660046150ed565b6111ab565b3480156105b257600080fd5b506105bb611274565b604051610372959493929190615559565b3480156105d857600080fd5b5061043061129d565b3480156105ed57600080fd5b506103656112b9565b34801561060257600080fd5b506103656106113660046151e8565b6112bf565b34801561062257600080fd5b5061034e610631366004614fb8565b6113f8565b34801561064257600080fd5b506103656114ad565b34801561065757600080fd5b506106606114b3565b604051610372919061559d565b34801561067957600080fd5b5061034e610688366004614fb8565b6114bf565b34801561069957600080fd5b50610430611581565b3480156106ae57600080fd5b5061034e6106bd366004615013565b61159d565b3480156106ce57600080fd5b5061034e6106dd36600461518a565b6115af565b3480156106ee57600080fd5b50610365611629565b61034e610705366004614fd3565b61162f565b34801561071657600080fd5b5061036561187f565b34801561072b57600080fd5b5061034e61073a366004615090565b611885565b34801561074b57600080fd5b5061036561199a565b34801561076057600080fd5b506103656119a0565b34801561077557600080fd5b5061034e610784366004615090565b6119be565b34801561079557600080fd5b5061034e6107a4366004615090565b6119fe565b3480156107b557600080fd5b506105796107c4366004614fb8565b611a08565b3480156107d557600080fd5b506103656107e4366004615090565b611a1d565b3480156107f557600080fd5b50610365610804366004615090565b611aa8565b34801561081557600080fd5b5061081e611aba565b60405161037291906152b4565b34801561083757600080fd5b50610660611b29565b34801561084c57600080fd5b5061034e611b35565b34801561086157600080fd5b5061045d610870366004615119565b611b4f565b34801561088157600080fd5b50610660611c9f565b34801561089657600080fd5b506103656108a53660046150a8565b611cb3565b3480156108b657600080fd5b50610430611d50565b3480156108cb57600080fd5b506103656108da366004614fb8565b611d6c565b3480156108eb57600080fd5b5061045d6108fa366004615013565b611d7e565b34801561090b57600080fd5b5061034e61091a366004614fb8565b611dbf565b34801561092b57600080fd5b5061034e61093a366004615090565b611e62565b61094761208f565b73ffffffffffffffffffffffffffffffffffffffff811660009081526010602052604090205460ff16610987576109876109826001836120b2565b612154565b73ffffffffffffffffffffffffffffffffffffffff81166000908152601060205260409081902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00169055517ff50d0d312d501878616eb5e78ebf3ed6dcd3955aaef8165af9c6b057cc4832fb90610a02908390615215565b60405180910390a150565b600c5460009081610a2582600163ffffffff61215c16565b6000818152601660205260409020600101549091508015610a4d57610a4d610982838361217b565b610a55612198565b610a5d61220b565b600084815260166020526040902055610a74614ea0565b50600083815260166020908152604091829020825160a08101845281548082526001830154938201849052600283015482860181905260038401546060840181905260049094015460808401529451919488947fbb4a26fa0ace13ee4da343896c20eaa44a618fb9071fdd8c2e2c960a4583189d94610af6949193929161551b565b60405180910390a2610b066122af565b6020810151610b4d57805160405185917fb463d19ecf455be65365092cf8e1db6934a0334cf8cd532ddf9964d01f36b5b291610b4491600091615363565b60405180910390a25b6020015193505050505b90565b6000610b6461129d565b73ffffffffffffffffffffffffffffffffffffffff166370a08231836040518263ffffffff1660e01b8152600401610b9c9190615215565b60206040518083038186803b158015610bb457600080fd5b505afa158015610bc8573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250610bec9190810190615172565b90505b919050565b601560209081526000928352604080842090915290825290208054600182015460029092015490919083565b33610c29614ecf565b73ffffffffffffffffffffffffffffffffffffffff821660009081527f05b8ccbb9d4d8fb16ea74ce3c29a41f1b461fbdaff4714a0d9a8eb05499746bc60205260409020610c76906122f2565b90506000610ca882602001516bffffffffffffffffffffffff1683604001516bffffffffffffffffffffffff16612398565b905080841115610cbf57610cbf61098285836123ae565b73ffffffffffffffffffffffffffffffffffffffff831660009081527f05b8ccbb9d4d8fb16ea74ce3c29a41f1b461fbdaff4714a0d9a8eb05499746bc60205260409020610d0d90856123cb565b610d1561129d565b73ffffffffffffffffffffffffffffffffffffffff16639470b0bd84866040518363ffffffff1660e01b8152600401610d4f92919061528e565b600060405180830381600087803b158015610d6957600080fd5b505af1158015610d7d573d6000803e3d6000fd5b505050508273ffffffffffffffffffffffffffffffffffffffff167f85082129d87b2fe11527cb1b3b7a520aeb5aa6913f88a3d8757fe40d1db02fdd85604051610dc79190615318565b60405180910390a250505050565b601660205260009081526040902080546001820154600283015460038401546004909401549293919290919085565b60185473ffffffffffffffffffffffffffffffffffffffff1690565b610e28614ecf565b6000828152600760205260409020610bec906122f2565b610e47612452565b610e5081612499565b50565b610e5b614ecf565b610ea960056000846001811115610e6e57fe5b60ff1681526020808201929092526040908101600090812073ffffffffffffffffffffffffffffffffffffffff8816825290925290206122f2565b90505b92915050565b610eba614eef565b506000908152601560209081526040808320600c548452825291829020825160608101845281548152600182015492810192909252600201549181019190915290565b60028181548110610f0a57fe5b60009182526020909120015473ffffffffffffffffffffffffffffffffffffffff16905081565b610f39614f10565b506000908152600a602090815260409182902082518084019093525473ffffffffffffffffffffffffffffffffffffffff8116835274010000000000000000000000000000000000000000900463ffffffff169082015290565b600d5481565b3381610fa55750611191565b6000610fb46020860186615119565b6001811115610fbf57fe5b148015610fe357506000610fd66020850185615119565b6001811115610fe157fe5b145b15610fee5750611191565b6001610ffd6020860186615119565b600181111561100857fe5b141561101d5761101d846020013582846125ca565b600161102c6020850185615119565b600181111561103757fe5b141561104c5761104c83602001358284612663565b600060058161105e6020880188615119565b600181111561106957fe5b60ff1681526020808201929092526040908101600090812073ffffffffffffffffffffffffffffffffffffffff86168252835290812092509060059082906110b390880188615119565b60018111156110be57fe5b60ff1681526020808201929092526040908101600090812073ffffffffffffffffffffffffffffffffffffffff87168252909252902090506111018282866126fc565b60208086013590870180359073ffffffffffffffffffffffffffffffffffffffff8616907f7d3ad1dcf03b9027064d1d9a474a69e0cecc31324c541d3eb9b5e6fa2f106c8d908890611153908c615119565b600181111561115e57fe5b61116b60208c018c615119565b600181111561117657fe5b60405161118593929190615584565b60405180910390a45050505b505050565b60106020526000908152604090205460ff1681565b816111b5816127f5565b6000838152600a602052604090205474010000000000000000000000000000000000000000900463ffffffff166111ed84828561282e565b6000848152600a60205260409081902080547fffffffffffffffff00000000ffffffffffffffffffffffffffffffffffffffff167401000000000000000000000000000000000000000063ffffffff8716021790555184907f8ea2a7a959bd25f226b7b0a4393613f7fdcaa8404e8bad96aa52dc1c1459016790610dc790849087906155ae565b601154601254601354601454929363ffffffff9283169391928281169264010000000090041690565b60195473ffffffffffffffffffffffffffffffffffffffff1690565b60115481565b60085460009033906112d890600163ffffffff61287516565b600881905591506112ed82620f42408661282e565b6112f5614f10565b5060408051808201825273ffffffffffffffffffffffffffffffffffffffff838116825263ffffffff87811660208085019182526000888152600a9091528590208451815492517fffffffffffffffffffffffff00000000000000000000000000000000000000009093169416939093177fffffffffffffffff00000000ffffffffffffffffffffffffffffffffffffffff1674010000000000000000000000000000000000000000919092160217905590517fcec6fc86ea644053f6edff1160dfe3fa5c61e7a5ef9f873f145bb03a0bd319e7906113d990859085908990615321565b60405180910390a183156113f0576113f0836119be565b505092915050565b611400612452565b73ffffffffffffffffffffffffffffffffffffffff811660009081526001602052604090205460ff166114395761143961098282612891565b60005b6002548110156114a9578173ffffffffffffffffffffffffffffffffffffffff166002828154811061146a57fe5b60009182526020909120015473ffffffffffffffffffffffffffffffffffffffff1614156114a15761149c8282612930565b6114a9565b60010161143c565b5050565b600c5481565b60145463ffffffff1681565b6114c761208f565b73ffffffffffffffffffffffffffffffffffffffff811660009081526010602052604090205460ff1615611503576115036109826000836120b2565b73ffffffffffffffffffffffffffffffffffffffff81166000908152601060205260409081902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00166001179055517f3e535d1ab441ef41c268fd9b52b478aee02d693c5ca2a84b5d26b89e0922e5e190610a02908390615215565b60005473ffffffffffffffffffffffffffffffffffffffff1681565b6115a5612452565b6114a98282612930565b6115b761208f565b6115c48585858585612b7f565b3073ffffffffffffffffffffffffffffffffffffffff1663c6f3a4276040518163ffffffff1660e01b815260040160006040518083038186803b15801561160a57600080fd5b505afa15801561161e573d6000803e3d6000fd5b505050505050505050565b60135481565b3360009081526010602052604090205460ff166116525761165261098233612c42565b61165b81612c5d565b3461173557611668610e04565b73ffffffffffffffffffffffffffffffffffffffff166323b872dd8330846040518463ffffffff1660e01b81526004016116a49392919061525d565b602060405180830381600087803b1580156116be57600080fd5b505af11580156116d2573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052506116f69190810190615074565b611735576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161172c9061543b565b60405180910390fd5b73ffffffffffffffffffffffffffffffffffffffff8316600090815260096020526040902054806117665750611191565b600061177182610e20565b602001516bffffffffffffffffffffffff169050601354811015611796575050611191565b600c54600083815260156020908152604080832084845282528083206016909252909120815480611845576000806117ce8888612c7e565b6002870182905560018701819055600386015491935091506117f6908263ffffffff61287516565b60038501556001808501546118109163ffffffff61287516565b6001850155604051889087907f14b098103235344975b17508c2391721cc9ac3f3fa2b56c7ff46f8480dfd074f90600090a350505b611855818863ffffffff61287516565b8355600282015461186c908863ffffffff61287516565b8260020181905550505050505050505050565b60085481565b3361188e61129d565b73ffffffffffffffffffffffffffffffffffffffff166315cc36f282846040518363ffffffff1660e01b81526004016118c892919061528e565b600060405180830381600087803b1580156118e257600080fd5b505af11580156118f6573d6000803e3d6000fd5b5050505073ffffffffffffffffffffffffffffffffffffffff811660009081527f05b8ccbb9d4d8fb16ea74ce3c29a41f1b461fbdaff4714a0d9a8eb05499746bc602052604090206119489083612d0a565b8073ffffffffffffffffffffffffffffffffffffffff167febedb8b3c678666e7f36970bc8f57abf6d8fa2e828c0da91ea5b75bf68ed101a8360405161198e9190615318565b60405180910390a25050565b60175481565b60006119b9601154600d5461287590919063ffffffff16565b905090565b3360008181526009602052604080822084905551839183917f5640833634fce74eb9211d1209a91dd5a1c8c6a751696bff9323b4db67f815139190a35050565b610e508133612d74565b60016020526000908152604090205460ff1681565b6000611a27614f10565b506000828152600a6020908152604080832081518083019092525473ffffffffffffffffffffffffffffffffffffffff8116825274010000000000000000000000000000000000000000900463ffffffff16918101919091529080611a8b85612f4c565b91509150611a9e83602001518383613009565b5095945050505050565b600b6020526000908152604090205481565b60606002805480602002602001604051908101604052809291908181526020018280548015611b1f57602002820191906000526020600020905b815473ffffffffffffffffffffffffffffffffffffffff168152600190910190602001808311611af4575b5050505050905090565b60125463ffffffff1681565b611b3d61208f565b611b4561304a565b611b4d61305d565b565b611b57614ecf565b60016000526004602052611b8a7fabd6e7cb50984ff9c2f3e18a2660c3353dadf4e3291deeb275dae2cd1e44fe056122f2565b90506000826001811115611b9a57fe5b1415610bef576000611baa61129d565b73ffffffffffffffffffffffffffffffffffffffff16639706e0c06040518163ffffffff1660e01b815260040160206040518083038186803b158015611bef57600080fd5b505afa158015611c03573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250611c279190810190615172565b9050611c56611c5183602001516bffffffffffffffffffffffff168361215c90919063ffffffff16565b613088565b6bffffffffffffffffffffffff90811660208401526040830151611c8691611c519184911663ffffffff61215c16565b6bffffffffffffffffffffffff16604083015250919050565b601454640100000000900463ffffffff1681565b6000611cbd614f10565b506000838152600a6020908152604080832081518083019092525473ffffffffffffffffffffffffffffffffffffffff8116825274010000000000000000000000000000000000000000900463ffffffff16918101919091529080611d2186612f4c565b915091506000611d3684602001518484613009565b915050611d45878783856130ac565b979650505050505050565b60035473ffffffffffffffffffffffffffffffffffffffff1681565b60096020526000908152604090205481565b611d86614ecf565b73ffffffffffffffffffffffffffffffffffffffff831660009081526006602090815260408083208584529091529020610ea9906122f2565b611dc7612452565b73ffffffffffffffffffffffffffffffffffffffff8116611df257611ded6109826131f9565b610e50565b600080547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff83169081178255604051909133917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a350565b600c546000611e7882600163ffffffff61215c16565b9050611e82614ea0565b50600081815260166020908152604091829020825160a08101845281548152600182015492810183905260028201549381019390935260038101546060840152600401546080830152611ed757505050610e50565b611edf614eef565b5060008481526015602090815260408083208584528252918290208251606081018452815480825260018301549382019390935260029091015492810192909252611f2d5750505050610e50565b6000858152601560209081526040808320868452909152812081815560018101829055600201819055611f608284613230565b9050600080611f74888486604001516132a5565b9150915087877ff1116b309178aa62dcb6bf8c3b8bc2321724907c7ebf52192d14c8ce3aa9194c8484604051611fab929190615363565b60405180910390a36000611fc5838363ffffffff61287516565b6080870151909150611fdd908263ffffffff61287516565b6080870181905260008881526016602090815260409091206004019190915586015161201090600163ffffffff61215c16565b602080880182815260008a815260169092526040909120600101919091555161161e576080860151865188917fb463d19ecf455be65365092cf8e1db6934a0334cf8cd532ddf9964d01f36b5b29161206e908263ffffffff61215c16565b60405161207c929190615363565b60405180910390a2505050505050505050565b3360009081526001602052604090205460ff16611b4d57611b4d610982336133f5565b606063b9588e4360e01b83836040516024016120cf9291906153ab565b604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe08184030181529190526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fffffffff0000000000000000000000000000000000000000000000000000000090931692909217909152905092915050565b805160208201fd5b6000828211156121755761217561098260028585613410565b50900390565b606063614b800a60e01b83836040516024016120cf929190615363565b30318015610e50576121a8610e04565b73ffffffffffffffffffffffffffffffffffffffff1663d0e30db0826040518263ffffffff1660e01b81526004016000604051808303818588803b1580156121ef57600080fd5b505af1158015612203573d6000803e3d6000fd5b505050505050565b60006119b960175461221b610e04565b73ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b81526004016122539190615215565b60206040518083038186803b15801561226b57600080fd5b505afa15801561227f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052506122a39190810190615172565b9063ffffffff61215c16565b4260006122ba6119a0565b9050818111156122d1576122d161098282846134b5565b600c546000906122e890600163ffffffff61287516565b600c555050600d55565b6122fa614ecf565b5060408051606081018252825467ffffffffffffffff81168083526bffffffffffffffffffffffff680100000000000000008304811660208501527401000000000000000000000000000000000000000090920490911692820192909252600c5490918111156123925761236d816134d2565b67ffffffffffffffff16825260408201516bffffffffffffffffffffffff1660208301525b50919050565b60008183106123a75781610ea9565b5090919050565b60606384c8b7c960e01b83836040516024016120cf929190615363565b6123d3614ecf565b6123dc836122f2565b9050612406611c518383604001516bffffffffffffffffffffffff1661215c90919063ffffffff16565b6bffffffffffffffffffffffff9081166040830152602082015161243591611c5191168463ffffffff61215c16565b6bffffffffffffffffffffffff16602082015261119183826134f2565b60005473ffffffffffffffffffffffffffffffffffffffff163314611b4d57600054611b4d9061098290339073ffffffffffffffffffffffffffffffffffffffff166135ac565b73ffffffffffffffffffffffffffffffffffffffff81166124bf576124bf6109826135c9565b73ffffffffffffffffffffffffffffffffffffffff811660009081526001602052604090205460ff16156124f9576124f961098282613600565b73ffffffffffffffffffffffffffffffffffffffff8116600081815260016020819052604080832080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00168317905560028054928301815583527f405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5ace90910180547fffffffffffffffffffffffff00000000000000000000000000000000000000001684179055513392917f3147867c59d17e8fa9d522465651d44aae0a9e38f902f3475b97e58072f0ed4c91a350565b6125d38361361b565b6125dd8383612d74565b73ffffffffffffffffffffffffffffffffffffffff8216600090815260066020908152604080832086845290915290206126179082613652565b600083815260076020526040902061262f9082613652565b600160005260046020526111917fabd6e7cb50984ff9c2f3e18a2660c3353dadf4e3291deeb275dae2cd1e44fe0582613652565b61266c8361361b565b6126768383612d74565b73ffffffffffffffffffffffffffffffffffffffff8216600090815260066020908152604080832086845290915290206126b090826136aa565b60008381526007602052604090206126c890826136aa565b600160005260046020526111917fabd6e7cb50984ff9c2f3e18a2660c3353dadf4e3291deeb275dae2cd1e44fe05826136aa565b61270683836136e5565b1561271057611191565b612718614ecf565b612721846122f2565b905061272b614ecf565b612734846122f2565b905081604001516bffffffffffffffffffffffff1683111561276f5761276f6109828484604001516bffffffffffffffffffffffff166123ae565b604082015161279690611c51906bffffffffffffffffffffffff168563ffffffff61215c16565b6bffffffffffffffffffffffff9081166040808501919091528201516127c791611c5191168563ffffffff61287516565b6bffffffffffffffffffffffff1660408201526127e485836134f2565b6127ee84826134f2565b5050505050565b6000818152600a602052604090205473ffffffffffffffffffffffffffffffffffffffff163381146114a9576114a961098233846136ec565b620f424063ffffffff821611156128535761284e61098260008584613709565b611191565b8163ffffffff168163ffffffff16106111915761119161098260018584613709565b600082820183811015610ea957610ea961098260008686613410565b606063eb5108a260e01b826040516024016128ac9190615215565b604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe08184030181529190526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fffffffff00000000000000000000000000000000000000000000000000000000909316929092179091529050919050565b73ffffffffffffffffffffffffffffffffffffffff821660009081526001602052604090205460ff166129695761296961098283612891565b60025481106129845761298461098282600280549050613728565b8173ffffffffffffffffffffffffffffffffffffffff16600282815481106129a857fe5b60009182526020909120015473ffffffffffffffffffffffffffffffffffffffff1614612a0a57612a0a610982600283815481106129e257fe5b60009182526020909120015473ffffffffffffffffffffffffffffffffffffffff1684613745565b73ffffffffffffffffffffffffffffffffffffffff8216600090815260016020526040902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00169055600280547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8101908110612a8557fe5b6000918252602090912001546002805473ffffffffffffffffffffffffffffffffffffffff9092169183908110612ab857fe5b600091825260209091200180547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff92909216919091179055600280547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0190612b379082614f27565b50604051339073ffffffffffffffffffffffffffffffffffffffff8416907f1f32c1b084e2de0713b8fb16bd46bb9df710a3dbeae2f3ca93af46e016dcc6b090600090a35050565b60118590556012805463ffffffff8087167fffffffffffffffffffffffffffffffffffffffffffffffffffffffff0000000092831617909255601385905560148054848416640100000000027fffffffffffffffffffffffffffffffffffffffffffffffff00000000ffffffff9487169190931617929092161790556040517f613157dbb0e920deab8ad6ddd3805e87cbf57344b9fe780f1764790ec789754290612c339087908790879087908790615559565b60405180910390a15050505050565b606063b56d2df060e01b826040516024016128ac9190615215565b803414158015612c6c57503415155b15610e5057610e506109828234613762565b6000828152600a602052604081205481908190612cb19073ffffffffffffffffffffffffffffffffffffffff1686611d7e565b602001516bffffffffffffffffffffffff169050612cd5848263ffffffff61215c16565b601254909350612d0090612cf39063ffffffff16620f42408661377f565b829063ffffffff61287516565b9150509250929050565b612d12614ecf565b612d1b836122f2565b9050612d45611c518383604001516bffffffffffffffffffffffff1661287590919063ffffffff16565b6bffffffffffffffffffffffff9081166040830152602082015161243591611c5191168463ffffffff61287516565b612d7d826137a1565b6000612d8c83836000806130ac565b73ffffffffffffffffffffffffffffffffffffffff831660009081526006602090815260408083208784529091529020909150612dc8906122f2565b73ffffffffffffffffffffffffffffffffffffffff8381166000908152600660209081526040808320888452825291829020845181549286015195909301517fffffffffffffffffffffffffffffffffffffffffffffffff000000000000000090921667ffffffffffffffff909316929092177fffffffffffffffffffffffff000000000000000000000000ffffffffffffffff16680100000000000000006bffffffffffffffffffffffff95861602179092167401000000000000000000000000000000000000000093909216929092021790558015612f4357612ead8382613815565b612eb5610e04565b73ffffffffffffffffffffffffffffffffffffffff1663a9059cbb83836040518363ffffffff1660e01b8152600401612eef92919061528e565b602060405180830381600087803b158015612f0957600080fd5b505af1158015612f1d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250612f419190810190615074565b505b6111918361385d565b6000806000612f676001600c5461215c90919063ffffffff16565b9050612f71614eef565b50600084815260156020908152604080832084845282528083208151606080820184528254825260018084015483870152600293840154838601528787526016865295849020845160a0810186528154815296810154958701959095529184015492850192909252600383015490840152600490910154608083015290612ff9908290613230565b9350806040015192505050915091565b6000808261301957839150613042565b61302d63ffffffff8616620f42408661386a565b915061303f848363ffffffff61215c16565b90505b935093915050565b6130526138a0565b42600d556001600c55565b6130656138b5565b620d2f00620dbba068056bc75e2d63100000600260036127ee8585858585612b7f565b806bffffffffffffffffffffffff81168114610bef57610bef61098260028461391a565b600c546000906130ba614ecf565b5073ffffffffffffffffffffffffffffffffffffffff851660009081526006602090815260408083208984528252918290208251606081018452905467ffffffffffffffff81168083526bffffffffffffffffffffffff680100000000000000008304811694840194909452740100000000000000000000000000000000000000009091049092169281019290925282141561315b576000925050506131f1565b61316781838787613937565b815190935060009061318a9067ffffffffffffffff16600163ffffffff61287516565b90506131c86131bb8984602001516bffffffffffffffffffffffff16856000015167ffffffffffffffff16856139ba565b859063ffffffff61287516565b93506131eb6131bb8984604001516bffffffffffffffffffffffff1684876139ba565b93505050505b949350505050565b60408051808201909152600481527fe69edc3e00000000000000000000000000000000000000000000000000000000602082015290565b815160009061323e57610eac565b8151835160408401516020860151606086015160145461327495949392919063ffffffff80821691640100000000900416613a53565b608083015183519192506000916132909163ffffffff61215c16565b90508181101561329e578091505b5092915050565b6000806132b0614f10565b506000858152600a602090815260409182902082518084019093525473ffffffffffffffffffffffffffffffffffffffff8116835274010000000000000000000000000000000000000000900463ffffffff16908201819052613314908686613009565b909350915082156133d157613327610e04565b81516040517fa9059cbb00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff929092169163a9059cbb9161337d91879060040161528e565b602060405180830381600087803b15801561339757600080fd5b505af11580156133ab573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052506133cf9190810190615074565b505b81156133ec576133e18683613b16565b6133ec868386613b57565b50935093915050565b606063b65a25b960e01b826040516024016128ac9190615215565b606063e946c1bb60e01b84848460405160240161342f93929190615371565b604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe08184030181529190526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fffffffff000000000000000000000000000000000000000000000000000000009093169290921790915290509392505050565b606063a6bcde4760e01b83836040516024016120cf929190615363565b8067ffffffffffffffff81168114610bef57610bef61098260018461391a565b8051825460408301516020909301516bffffffffffffffffffffffff90811668010000000000000000027fffffffffffffffffffffffff000000000000000000000000ffffffffffffffff91909416740100000000000000000000000000000000000000000273ffffffffffffffffffffffffffffffffffffffff67ffffffffffffffff9094167fffffffffffffffffffffffffffffffffffffffffffffffff000000000000000090931692909217929092161716179055565b6060631de45ad160e01b83836040516024016120cf929190615236565b60408051808201909152600481527f57654fe400000000000000000000000000000000000000000000000000000000602082015290565b606063de16f1a060e01b826040516024016128ac9190615215565b6000818152600a602052604090205473ffffffffffffffffffffffffffffffffffffffff16610e5057610e50610982826000613c40565b61365a614ecf565b613663836122f2565b905061368d611c518383604001516bffffffffffffffffffffffff1661215c90919063ffffffff16565b6bffffffffffffffffffffffff16604082015261119183826134f2565b6136b2614ecf565b6136bb836122f2565b905061368d611c518383604001516bffffffffffffffffffffffff1661287590919063ffffffff16565b1460011690565b60606382ded78560e01b83836040516024016120cf92919061528e565b60606322df959760e01b84848460405160240161342f939291906153dd565b606063e9f8377160e01b83836040516024016120cf929190615363565b606063140a84db60e01b83836040516024016120cf929190615236565b60606331d7a50560e01b83836040516024016120cf929190615363565b60006131f183613795868563ffffffff613c5d16565b9063ffffffff613c8e16565b600c546000906137b890600163ffffffff61215c16565b90506137c2614eef565b506000828152601560209081526040808320848452825291829020825160608101845281548082526001830154938201939093526002909101549281019290925215611191576111916109828484613cb8565b6000828152600b6020526040902054613834908263ffffffff61215c16565b6000838152600b6020526040902055601754613856908263ffffffff61215c16565b6017555050565b610e508160006001613b57565b60006131f18361379561388482600163ffffffff61215c16565b613894888763ffffffff613c5d16565b9063ffffffff61287516565b600d5415611b4d57611b4d6109826000613cd5565b601154158015906138cd575060125463ffffffff1615155b80156138da575060135415155b80156138ed575060145463ffffffff1615155b80156139085750601454640100000000900463ffffffff1615155b15611b4d57611b4d6109826001613cd5565b606063c996af7b60e01b83836040516024016120cf929190615393565b6000821580613944575081155b15613951575060006131f1565b600061396485600163ffffffff61215c16565b865167ffffffffffffffff161015613980578560400151613986565b85602001515b6bffffffffffffffffffffffff169050806139a55760009150506131f1565b6139b084848361377f565b9695505050505050565b60008315806139c857508183145b156139d5575060006131f1565b818310613a0e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161172c90615404565b613a16614f4b565b613a208685613d14565b9050613a2a614f4b565b613a348785613d14565b9050611d4581600001518260200151846000015185602001518a613e32565b600080613a608888613ebe565b90506000613a6e8787613ebe565b9050811580613a7b575080155b15613a8c575060009150611d459050565b600081831315613aa557613aa08284613f10565b613aaf565b613aaf8383613f10565b9050613ad8613ad3613ac083613f2f565b8863ffffffff168863ffffffff166145d1565b6145e0565b905081831315613af157613aec8282613f10565b613afb565b613afb8282614bca565b9050613b07818c614bf6565b9b9a5050505050505050505050565b6000828152600b6020526040902054613b35908263ffffffff61287516565b6000838152600b6020526040902055601754613856908263ffffffff61287516565b6000838152600f6020526040902054600c5480821415613b78575050611191565b613b80614f4b565b506000858152600e602090815260408083208584528252918290208251808401909352805483526001015490820152613bb7614f4b565b613bc082614c38565b15613bf957613bd9826000015183602001518888614c41565b60208301819052818352613bed9190614ca3565b60208301528152613c04565b602081018590528581525b6000878152600e6020908152604080832086845282528083208451815593820151600190940193909355978152600f9097529095205550505050565b6060639ae94f0160e01b83836040516024016120cf929190615353565b600082613c6c57506000610eac565b82820282848281613c7957fe5b0414610ea957610ea961098260018686613410565b600081613ca457613ca461098260038585613410565b6000828481613caf57fe5b04949350505050565b6060635caa0b0560e01b83836040516024016120cf929190615363565b60607f0b02d77300000000000000000000000000000000000000000000000000000000826001811115613d0457fe5b6040516024016128ac91906155c5565b613d1c614f4b565b506000828152600e602090815260408083208484528252918290208251808401909352805483526001015490820152613d5481614c38565b15613d5e57610eac565b6000613d7183600163ffffffff61215c16565b6000858152600e60209081526040808320848452825291829020825180840190935280548352600101549082015292509050613dac82614c38565b15613db75750610eac565b6000848152600f602052604090205483811015613e14576000858152600e6020908152604080832084845282529182902082518084019093528054835260010154908201529250613e0783614c38565b15613e145750610eac9050565b50506040805180820190915260008152600160208201529392505050565b600081613e4157506000613eb5565b83613e6157613e5a85613795848963ffffffff613c5d16565b9050613eb5565b6000613e86613e76868863ffffffff613c5d16565b6122a3898763ffffffff613c5d16565b90506000613e9a828663ffffffff613c8e16565b9050613eb087613795868463ffffffff613c5d16565b925050505b95945050505050565b600080831215613ed657613ed6610982600185614ccc565b6000821215613eed57613eed610982600184614ccc565b610ea9613f0a846f80000000000000000000000000000000614d0d565b83614d3f565b6000610ea9613f0a846f80000000000000000000000000000000614d0d565b60006f80000000000000000000000000000000821315613f5757613f57610982600184614dc0565b60008213613f6d57613f6d610982600084614dc0565b6f80000000000000000000000000000000821415613f8d57506000610bef565b640733048c5a8213613fc057507fffffffffffffffffffffffffffffffe010000000000000000000000000000000610bef565b60008060006a01c8464f76164760000000851361401f577ffffffffffffffffffffffffffffffff000000000000000000000000000000000909301926a01c8464f761647600000006f8000000000000000000000000000000086020594505b6cf1aaddd7742e90000000000000851361407d577ffffffffffffffffffffffffffffffff800000000000000000000000000000000909301926cf1aaddd7742e900000000000006f8000000000000000000000000000000086020594505b6e0afe10820813d7800000000000000085136140df577ffffffffffffffffffffffffffffffffc00000000000000000000000000000000909301926e0afe10820813d780000000000000006f8000000000000000000000000000000086020594505b6f02582ab704279ec000000000000000008513614143577ffffffffffffffffffffffffffffffffe00000000000000000000000000000000909301926f02582ab704279ec000000000000000006f8000000000000000000000000000000086020594505b6f1152aaa3bf81cc00000000000000000085136141a7577fffffffffffffffffffffffffffffffff00000000000000000000000000000000909301926f1152aaa3bf81cc0000000000000000006f8000000000000000000000000000000086020594505b6f2f16ac6c59de70000000000000000000851361420b577fffffffffffffffffffffffffffffffff80000000000000000000000000000000909301926f2f16ac6c59de700000000000000000006f8000000000000000000000000000000086020594505b6f4da2cbf1be5828000000000000000000851361426f577fffffffffffffffffffffffffffffffffc0000000000000000000000000000000909301926f4da2cbf1be58280000000000000000006f8000000000000000000000000000000086020594505b6f63afbe7ab2082c00000000000000000085136142d3577fffffffffffffffffffffffffffffffffe0000000000000000000000000000000909301926f63afbe7ab2082c0000000000000000006f8000000000000000000000000000000086020594505b6f70f5a893b608861e1f58934f97aea57d8513614337577ffffffffffffffffffffffffffffffffff0000000000000000000000000000000909301926f70f5a893b608861e1f58934f97aea57d6f8000000000000000000000000000000086020594505b7fffffffffffffffffffffffffffffffff80000000000000000000000000000000850192508291506f80000000000000000000000000000000828002059050700100000000000000000000000000000000838103830205840193506f80000000000000000000000000000000818302816143ad57fe5b059150700200000000000000000000000000000000836faaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa038302816143de57fe5b05840193506f80000000000000000000000000000000818302816143fe57fe5b059150700300000000000000000000000000000000836f999999999999999999999999999999990383028161442f57fe5b05840193506f800000000000000000000000000000008183028161444f57fe5b059150700400000000000000000000000000000000836f924924924924924924924924924924920383028161448057fe5b05840193506f80000000000000000000000000000000818302816144a057fe5b059150700500000000000000000000000000000000836f8e38e38e38e38e38e38e38e38e38e38e038302816144d157fe5b05840193506f80000000000000000000000000000000818302816144f157fe5b059150700600000000000000000000000000000000836f8ba2e8ba2e8ba2e8ba2e8ba2e8ba2e8b0383028161452257fe5b05840193506f800000000000000000000000000000008183028161454257fe5b059150700700000000000000000000000000000000836f89d89d89d89d89d89d89d89d89d89d890383028161457357fe5b05840193506f800000000000000000000000000000008183028161459357fe5b059150700800000000000000000000000000000000836f88888888888888888888888888888888038302816145c457fe5b0584019350505050919050565b60006131f1613f0a8585614d0d565b60007fffffffffffffffffffffffffffffffe01000000000000000000000000000000082121561461257506000610bef565b8161462e57506f80000000000000000000000000000000610bef565b600082131561464557614645610982600184614dc0565b6f800000000000000000000000000000006f1000000000000000000000000000000083078080028290056710e1b3be415a0000810293909301929091818302059050806705a0913f6b1e000002830192506f80000000000000000000000000000000828202816146b157fe5b05905080670168244fdac7800002830192506f80000000000000000000000000000000828202816146de57fe5b05905080664807432bc1800002830192506f800000000000000000000000000000008282028161470a57fe5b05905080660c0135dca0400002830192506f800000000000000000000000000000008282028161473657fe5b059050806601b707b1cdc00002830192506f800000000000000000000000000000008282028161476257fe5b059050806536e0f639b80002830192506f800000000000000000000000000000008282028161478d57fe5b05905080650618fee9f80002830192506f80000000000000000000000000000000828202816147b857fe5b05905080649c197dcc0002830192506f80000000000000000000000000000000828202816147e257fe5b05905080640e30dce40002830192506f800000000000000000000000000000008282028161480c57fe5b0590508064012ebd130002830192506f800000000000000000000000000000008282028161483657fe5b059050806317499f0002830192506f800000000000000000000000000000008282028161485f57fe5b059050806301a9d48002830192506f800000000000000000000000000000008282028161488857fe5b05905080621c638002830192506f80000000000000000000000000000000828202816148b057fe5b059050806201c63802830192506f80000000000000000000000000000000828202816148d857fe5b05905080611ab802830192506f80000000000000000000000000000000828202816148ff57fe5b0590508061017c02830192506f800000000000000000000000000000008282028161492657fe5b05905080601402830192506f800000000000000000000000000000008282028161494c57fe5b600095909503946721c3677c82b400009190059384010582016f80000000000000000000000000000000019290507010000000000000000000000000000000008416156149bb577243cbaf42a000812488fc5c220ad7b97bf6e99e6cf1aaddd7742e56d32fb9f9974484020592505b7008000000000000000000000000000000008416156149fd577105d27a9f51c31b7c2f8038212a05747799916e0afe10820813d65dfe6a33c07f738f84020592505b700400000000000000000000000000000000841615614a3f57701b4c902e273a58678d6d3bfdb93db96d026f02582ab704279e8efd15e0265855c47a84020592505b700200000000000000000000000000000000841615614a81577003b1cc971a9bb5b9867477440d6d1577506f1152aaa3bf81cb9fdb76eae12d02957184020592505b700100000000000000000000000000000000841615614ac35770015bf0a8b1457695355fb8ac404e7a79e36f2f16ac6c59de6f8d5d6f63c1482a7c8684020592505b6f80000000000000000000000000000000841615614b03576fd3094c70f034de4b96ff7d5b6f99fcd86f4da2cbf1be5827f9eb3ad1aa9866ebb384020592505b6f40000000000000000000000000000000841615614b43576fa45af1e1f40c333b3de1db4dd55f29a76f63afbe7ab2082ba1a0ae5e4eb1b479dc84020592505b6f20000000000000000000000000000000841615614b83576f910b022db7ae67ce76b441c27035c6a16f70f5a893b608861e1f58934f97aea57d84020592505b6f10000000000000000000000000000000841615614bc3576f88415abbe9a76bead8d00cf112e4d4a86f783eafef1c0a8f3978c7f81824d62ebf84020592505b5050919050565b60006f80000000000000000000000000000000614be78484614d0d565b81614bee57fe5b059392505050565b600080821215614c0e57614c0e610982600184614ccc565b6000614c1a8484614d0d565b905060008113614c2e576000915050610eac565b607f1c9392505050565b60200151151590565b60008085614c53575082905081614c9a565b83614c62575084905083614c9a565b614c85614c75858763ffffffff613c5d16565b613894888663ffffffff613c5d16565b9150614c97858463ffffffff613c5d16565b90505b94509492505050565b600080614cc184846f80000000000000000000000000000000614def565b915091509250929050565b60607fbd79545f00000000000000000000000000000000000000000000000000000000836001811115614cfb57fe5b836040516024016120cf9291906155d3565b600082614d1c57506000610eac565b5081810281838281614d2a57fe5b0514610eac57610eac61098260018585614e5d565b600081614d5557614d5561098260028585614e5d565b7f800000000000000000000000000000000000000000000000000000000000000083148015614da35750817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff145b15614db757614db761098260038585614e5d565b818381614bee57fe5b60607fed2f26a100000000000000000000000000000000000000000000000000000000836001811115614cfb57fe5b60008082851180614dff57508284115b15614e5457600084861015614e145784614e16565b855b9050614e28818563ffffffff613c8e16565b9050614e3a868263ffffffff613c8e16565b9250614e4c858263ffffffff613c8e16565b915050613042565b50929391925050565b60607f8c12dfe700000000000000000000000000000000000000000000000000000000846003811115614e8c57fe5b848460405160240161342f939291906155e6565b6040518060a0016040528060008152602001600081526020016000815260200160008152602001600081525090565b604080516060810182526000808252602082018190529181019190915290565b60405180606001604052806000815260200160008152602001600081525090565b604080518082019091526000808252602082015290565b81548183558181111561119157600083815260209020611191918101908301614f65565b604051806040016040528060008152602001600081525090565b610b5791905b80821115614f7f5760008155600101614f6b565b5090565b803573ffffffffffffffffffffffffffffffffffffffff81168114610eac57600080fd5b600060408284031215612392578081fd5b600060208284031215614fc9578081fd5b610ea98383614f83565b600080600060608486031215614fe7578182fd5b8335614ff28161560b565b925060208401356150028161560b565b929592945050506040919091013590565b60008060408385031215615025578182fd5b61502f8484614f83565b946020939093013593505050565b6000806040838503121561504f578182fd5b6150598484614f83565b915060208301356150698161563b565b809150509250929050565b600060208284031215615085578081fd5b8151610ea98161562d565b6000602082840312156150a1578081fd5b5035919050565b600080604083850312156150ba578182fd5b8235915060208301356150698161560b565b600080604083850312156150de578182fd5b50508035926020909101359150565b600080604083850312156150ff578182fd5b82359150602083013563ffffffff81168114615069578182fd5b60006020828403121561512a578081fd5b8135610ea98161563b565b600080600060a08486031215615149578283fd5b6151538585614fa7565b92506151628560408601614fa7565b9150608084013590509250925092565b600060208284031215615183578081fd5b5051919050565b600080600080600060a086880312156151a1578283fd5b8535945060208601356151b381615648565b93506040860135925060608601356151ca81615648565b915060808601356151da81615648565b809150509295509295909350565b600080604083850312156151fa578182fd5b823561520581615648565b915060208301356150698161562d565b73ffffffffffffffffffffffffffffffffffffffff91909116815260200190565b73ffffffffffffffffffffffffffffffffffffffff92831681529116602082015260400190565b73ffffffffffffffffffffffffffffffffffffffff9384168152919092166020820152604081019190915260600190565b73ffffffffffffffffffffffffffffffffffffffff929092168252602082015260400190565b602080825282518282018190526000918401906040840190835b8181101561530257835173ffffffffffffffffffffffffffffffffffffffff168352602093840193909201916001016152ce565b509095945050505050565b901515815260200190565b90815260200190565b92835273ffffffffffffffffffffffffffffffffffffffff91909116602083015263ffffffff16604082015260600190565b9182521515602082015260400190565b918252602082015260400190565b606081016004851061537f57fe5b938152602081019290925260409091015290565b60408101600384106153a157fe5b9281526020015290565b604081016153b884615601565b92815273ffffffffffffffffffffffffffffffffffffffff9190911660209091015290565b606081016153ea85615601565b938152602081019290925263ffffffff1660409091015290565b60208082526013908201527f43525f494e54455256414c5f494e56414c494400000000000000000000000000604082015260600190565b60208082526014908201527f574554485f5452414e534645525f4641494c4544000000000000000000000000604082015260600190565b81518152602080830151908201526040918201519181019190915260600190565b815173ffffffffffffffffffffffffffffffffffffffff16815260209182015163ffffffff169181019190915260400190565b815167ffffffffffffffff1681526020808301516bffffffffffffffffffffffff90811691830191909152604092830151169181019190915260600190565b9283526020830191909152604082015260600190565b93845260208401929092526040830152606082015260800190565b948552602085019390935260408401919091526060830152608082015260a00190565b94855263ffffffff938416602086015260408501929092528216606084015216608082015260a00190565b92835260ff918216602084015216604082015260600190565b63ffffffff91909116815260200190565b63ffffffff92831681529116602082015260400190565b60ff91909116815260200190565b60ff929092168252602082015260400190565b60ff9390931683526020830191909152604082015260600190565b60028110610e5057fe5b73ffffffffffffffffffffffffffffffffffffffff81168114610e5057600080fd5b8015158114610e5057600080fd5b60028110610e5057600080fd5b63ffffffff81168114610e5057600080fdfea365627a7a72315820405f679c9973463d3088bfe457347d17202e3319adf7067235fc4905ae0f29646c6578706572696d656e74616cf564736f6c634300050c0040" + "object": "0x60806040523480156200001157600080fd5b50604051620059be380380620059be833981016040819052620000349162000071565b600080546001600160a01b03199081163317909155601880546001600160a01b0394851690831617905560198054929093169116179055620000c8565b6000806040838503121562000084578182fd5b82516200009181620000af565b6020840151909250620000a481620000af565b809150509250929050565b6001600160a01b0381168114620000c557600080fd5b50565b6158e680620000d86000396000f3fe6080604052600436106103555760003560e01c80639051c3ee116101bb578063bb7ef7e0116100f7578063e8eeb3f811610095578063f18765321161006f578063f187653214610955578063f252b7a114610975578063f2fde38b14610995578063ff691b11146109b557610355565b8063e8eeb3f81461090b578063e907f00314610920578063ee99205c1461094057610355565b8063dcb31f76116100d1578063dcb31f76146108ac578063e0ee036e146108c1578063e1c7392a146108d6578063e804d0a4146108eb57610355565b8063bb7ef7e01461084a578063c18c91411461086a578063d39de6e91461088a57610355565b8063a694fc3a11610164578063b2baa33e1161013e578063b2baa33e146107d5578063b3e33379146107ea578063b510879f1461080a578063b91816111461082a57610355565b8063a694fc3a14610780578063abe0906a146107a0578063b0531524146107c057610355565b8063a26171e211610195578063a26171e214610743578063a3b4a32714610758578063a657e5791461076b57610355565b80639051c3ee146106ee5780639ad26744146107035780639c3ccc821461072357610355565b80634e67339f116102955780636340380111610233578063766718081161020d578063766718081461068257806381666796146106975780638a2e271a146106b95780638da5cb5b146106d957610355565b8063634038011461062d57806368a7d6cd14610642578063707129391461066257610355565b80635bd4ab731161026f5780635bd4ab73146105a55780635d91121d146105d25780635e615a6b146105f2578063624a72321461061857610355565b80634e67339f14610550578063587da0231461057057806358f6c7e31461058557610355565b80633c277fc51161030257806344a6958b116102dc57806344a6958b146104b657806346b97959146104d6578063494503d4146105035780634bcc3f671461052357610355565b80633c277fc5146104475780633e4ad7321461046957806342f1181e1461049657610355565b80632a94c279116103335780632a94c279146103c75780632e17de78146103f657806338229d931461041657610355565b806301e28d841461035a5780630b9663db1461037c5780631e7ff8f6146103a7575b600080fd5b34801561036657600080fd5b5061037a6103753660046151e2565b6109d5565b005b34801561038857600080fd5b50610391610aa3565b60405161039e9190615561565b60405180910390f35b3480156103b357600080fd5b506103916103c23660046151e2565b610bf0565b3480156103d357600080fd5b506103e76103e2366004615315565b610c8a565b60405161039e9392919061574e565b34801561040257600080fd5b5061037a6104113660046152d9565b610cb6565b34801561042257600080fd5b506104366104313660046152d9565b610e6b565b60405161039e95949392919061577f565b34801561045357600080fd5b5061045c610e9a565b60405161039e919061545e565b34801561047557600080fd5b506104896104843660046152d9565b610f43565b60405161039e919061570f565b3480156104a257600080fd5b5061037a6104b13660046151e2565b610f62565b3480156104c257600080fd5b506104896104d1366004615285565b610f76565b3480156104e257600080fd5b506104f66104f13660046152d9565b610fd5565b60405161039e91906156bb565b34801561050f57600080fd5b5061045c61051e3660046152d9565b611020565b34801561052f57600080fd5b5061054361053e3660046152d9565b611054565b60405161039e91906156dc565b34801561055c57600080fd5b5061037a61056b3660046151e2565b6110b6565b34801561057c57600080fd5b506103916110fd565b34801561059157600080fd5b5061037a6105a036600461537e565b611103565b3480156105b157600080fd5b506105c56105c03660046151e2565b611300565b60405161039e9190615556565b3480156105de57600080fd5b5061037a6105ed366004615336565b611315565b3480156105fe57600080fd5b506106076113de565b60405161039e9594939291906157a2565b34801561062457600080fd5b5061045c611407565b34801561063957600080fd5b50610391611472565b34801561064e57600080fd5b5061039161065d366004615431565b611478565b34801561066e57600080fd5b5061037a61067d3660046151e2565b6115b1565b34801561068e57600080fd5b50610391611666565b3480156106a357600080fd5b506106ac61166c565b60405161039e91906157e6565b3480156106c557600080fd5b5061037a6106d43660046151e2565b611678565b3480156106e557600080fd5b5061045c61173a565b3480156106fa57600080fd5b5061045c611756565b34801561070f57600080fd5b5061037a61071e36600461525a565b611772565b34801561072f57600080fd5b5061037a61073e3660046153d3565b611784565b34801561074f57600080fd5b506103916117fe565b61037a61076636600461521a565b611804565b34801561077757600080fd5b50610391611a54565b34801561078c57600080fd5b5061037a61079b3660046152d9565b611a5a565b3480156107ac57600080fd5b5061037a6107bb3660046151e2565b611b6f565b3480156107cc57600080fd5b50610391611bb6565b3480156107e157600080fd5b50610391611bbc565b3480156107f657600080fd5b5061037a6108053660046152d9565b611bda565b34801561081657600080fd5b5061037a6108253660046152d9565b611c1a565b34801561083657600080fd5b506105c56108453660046151e2565b611c24565b34801561085657600080fd5b506103916108653660046152d9565b611c39565b34801561087657600080fd5b506103916108853660046152d9565b611cc4565b34801561089657600080fd5b5061089f611cd6565b60405161039e91906154fd565b3480156108b857600080fd5b5061045c611d45565b3480156108cd57600080fd5b506106ac611d61565b3480156108e257600080fd5b5061037a611d6d565b3480156108f757600080fd5b50610489610906366004615362565b611d87565b34801561091757600080fd5b506106ac611ed7565b34801561092c57600080fd5b5061039161093b3660046152f1565b611eeb565b34801561094c57600080fd5b5061045c611f88565b34801561096157600080fd5b506103916109703660046151e2565b611fa4565b34801561098157600080fd5b5061048961099036600461525a565b611fb6565b3480156109a157600080fd5b5061037a6109b03660046151e2565b611ff7565b3480156109c157600080fd5b5061037a6109d03660046152d9565b61209a565b6109dd6122c7565b73ffffffffffffffffffffffffffffffffffffffff811660009081526010602052604090205460ff16610a1d57610a1d610a186001836122ea565b61238c565b73ffffffffffffffffffffffffffffffffffffffff81166000908152601060205260409081902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00169055517ff50d0d312d501878616eb5e78ebf3ed6dcd3955aaef8165af9c6b057cc4832fb90610a9890839061545e565b60405180910390a150565b600c5460009081610abb82600163ffffffff61239416565b6000818152601660205260409020600101549091508015610ae357610ae3610a1883836123b3565b610aeb6123d0565b610af3612443565b600084815260166020526040902055610b0a6150ee565b50600083815260166020908152604091829020825160a08101845281548082526001830154938201849052600283015482860181905260038401546060840181905260049094015460808401529451919488947fbb4a26fa0ace13ee4da343896c20eaa44a618fb9071fdd8c2e2c960a4583189d94610b8c9491939291615764565b60405180910390a2610b9c6124e7565b6020810151610be357805160405185917fb463d19ecf455be65365092cf8e1db6934a0334cf8cd532ddf9964d01f36b5b291610bda916000916155ac565b60405180910390a25b6020015193505050505b90565b6000610bfa611407565b73ffffffffffffffffffffffffffffffffffffffff166370a08231836040518263ffffffff1660e01b8152600401610c32919061545e565b60206040518083038186803b158015610c4a57600080fd5b505afa158015610c5e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250610c8291908101906153bb565b90505b919050565b601560209081526000928352604080842090915290825290208054600182015460029092015490919083565b33610cbf61511d565b73ffffffffffffffffffffffffffffffffffffffff821660009081527f05b8ccbb9d4d8fb16ea74ce3c29a41f1b461fbdaff4714a0d9a8eb05499746bc60205260409020610d0c9061252a565b90506000610d3e82602001516bffffffffffffffffffffffff1683604001516bffffffffffffffffffffffff166125d0565b905080841115610d5557610d55610a1885836125e6565b73ffffffffffffffffffffffffffffffffffffffff831660009081527f05b8ccbb9d4d8fb16ea74ce3c29a41f1b461fbdaff4714a0d9a8eb05499746bc60205260409020610da39085612603565b610dab611407565b73ffffffffffffffffffffffffffffffffffffffff16639470b0bd84866040518363ffffffff1660e01b8152600401610de59291906154d7565b600060405180830381600087803b158015610dff57600080fd5b505af1158015610e13573d6000803e3d6000fd5b505050508273ffffffffffffffffffffffffffffffffffffffff167f85082129d87b2fe11527cb1b3b7a520aeb5aa6913f88a3d8757fe40d1db02fdd85604051610e5d9190615561565b60405180910390a250505050565b601660205260009081526040902080546001820154600283015460038401546004909401549293919290919085565b600080600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663dcb31f766040518163ffffffff1660e01b815260040160206040518083038186803b158015610f0557600080fd5b505afa158015610f19573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250610f3d91908101906151fe565b91505090565b610f4b61511d565b6000828152600760205260409020610c829061252a565b610f6a61268a565b610f73816126d1565b50565b610f7e61511d565b610fcc60056000846001811115610f9157fe5b60ff1681526020808201929092526040908101600090812073ffffffffffffffffffffffffffffffffffffffff88168252909252902061252a565b90505b92915050565b610fdd61513d565b506000908152601560209081526040808320600c548452825291829020825160608101845281548152600182015492810192909252600201549181019190915290565b6002818154811061102d57fe5b60009182526020909120015473ffffffffffffffffffffffffffffffffffffffff16905081565b61105c61515e565b506000908152600a602090815260409182902082518084019093525473ffffffffffffffffffffffffffffffffffffffff8116835274010000000000000000000000000000000000000000900463ffffffff169082015290565b601980547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff92909216919091179055565b600d5481565b338161110f57506112fb565b600061111e6020860186615362565b600181111561112957fe5b14801561114d575060006111406020850185615362565b600181111561114b57fe5b145b1561115857506112fb565b60016111676020860186615362565b600181111561117257fe5b14156111875761118784602001358284612802565b60016111966020850185615362565b60018111156111a157fe5b14156111b6576111b68360200135828461289b565b60006005816111c86020880188615362565b60018111156111d357fe5b60ff1681526020808201929092526040908101600090812073ffffffffffffffffffffffffffffffffffffffff861682528352908120925090600590829061121d90880188615362565b600181111561122857fe5b60ff1681526020808201929092526040908101600090812073ffffffffffffffffffffffffffffffffffffffff871682529092529020905061126b828286612934565b60208086013590870180359073ffffffffffffffffffffffffffffffffffffffff8616907f7d3ad1dcf03b9027064d1d9a474a69e0cecc31324c541d3eb9b5e6fa2f106c8d9088906112bd908c615362565b60018111156112c857fe5b6112d560208c018c615362565b60018111156112e057fe5b6040516112ef939291906157cd565b60405180910390a45050505b505050565b60106020526000908152604090205460ff1681565b8161131f81612a2d565b6000838152600a602052604090205474010000000000000000000000000000000000000000900463ffffffff16611357848285612a66565b6000848152600a60205260409081902080547fffffffffffffffff00000000ffffffffffffffffffffffffffffffffffffffff167401000000000000000000000000000000000000000063ffffffff8716021790555184907f8ea2a7a959bd25f226b7b0a4393613f7fdcaa8404e8bad96aa52dc1c1459016790610e5d90849087906157f7565b601154601254601354601454929363ffffffff9283169391928281169264010000000090041690565b600080600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16639051c3ee6040518163ffffffff1660e01b815260040160206040518083038186803b158015610f0557600080fd5b60115481565b600854600090339061149190600163ffffffff612aad16565b600881905591506114a682620f424086612a66565b6114ae61515e565b5060408051808201825273ffffffffffffffffffffffffffffffffffffffff838116825263ffffffff87811660208085019182526000888152600a9091528590208451815492517fffffffffffffffffffffffff00000000000000000000000000000000000000009093169416939093177fffffffffffffffff00000000ffffffffffffffffffffffffffffffffffffffff1674010000000000000000000000000000000000000000919092160217905590517fcec6fc86ea644053f6edff1160dfe3fa5c61e7a5ef9f873f145bb03a0bd319e7906115929085908590899061556a565b60405180910390a183156115a9576115a983611bda565b505092915050565b6115b961268a565b73ffffffffffffffffffffffffffffffffffffffff811660009081526001602052604090205460ff166115f2576115f2610a1882612ac9565b60005b600254811015611662578173ffffffffffffffffffffffffffffffffffffffff166002828154811061162357fe5b60009182526020909120015473ffffffffffffffffffffffffffffffffffffffff16141561165a576116558282612b68565b611662565b6001016115f5565b5050565b600c5481565b60145463ffffffff1681565b6116806122c7565b73ffffffffffffffffffffffffffffffffffffffff811660009081526010602052604090205460ff16156116bc576116bc610a186000836122ea565b73ffffffffffffffffffffffffffffffffffffffff81166000908152601060205260409081902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00166001179055517f3e535d1ab441ef41c268fd9b52b478aee02d693c5ca2a84b5d26b89e0922e5e190610a9890839061545e565b60005473ffffffffffffffffffffffffffffffffffffffff1681565b60195473ffffffffffffffffffffffffffffffffffffffff1681565b61177a61268a565b6116628282612b68565b61178c6122c7565b6117998585858585612db7565b3073ffffffffffffffffffffffffffffffffffffffff1663c6f3a4276040518163ffffffff1660e01b815260040160006040518083038186803b1580156117df57600080fd5b505afa1580156117f3573d6000803e3d6000fd5b505050505050505050565b60135481565b3360009081526010602052604090205460ff1661182757611827610a1833612e7a565b61183081612e95565b3461190a5761183d610e9a565b73ffffffffffffffffffffffffffffffffffffffff166323b872dd8330846040518463ffffffff1660e01b8152600401611879939291906154a6565b602060405180830381600087803b15801561189357600080fd5b505af11580156118a7573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052506118cb91908101906152bd565b61190a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161190190615684565b60405180910390fd5b73ffffffffffffffffffffffffffffffffffffffff83166000908152600960205260409020548061193b57506112fb565b600061194682610f43565b602001516bffffffffffffffffffffffff16905060135481101561196b5750506112fb565b600c54600083815260156020908152604080832084845282528083206016909252909120815480611a1a576000806119a38888612eb6565b6002870182905560018701819055600386015491935091506119cb908263ffffffff612aad16565b60038501556001808501546119e59163ffffffff612aad16565b6001850155604051889087907f14b098103235344975b17508c2391721cc9ac3f3fa2b56c7ff46f8480dfd074f90600090a350505b611a2a818863ffffffff612aad16565b83556002820154611a41908863ffffffff612aad16565b8260020181905550505050505050505050565b60085481565b33611a63611407565b73ffffffffffffffffffffffffffffffffffffffff166315cc36f282846040518363ffffffff1660e01b8152600401611a9d9291906154d7565b600060405180830381600087803b158015611ab757600080fd5b505af1158015611acb573d6000803e3d6000fd5b5050505073ffffffffffffffffffffffffffffffffffffffff811660009081527f05b8ccbb9d4d8fb16ea74ce3c29a41f1b461fbdaff4714a0d9a8eb05499746bc60205260409020611b1d9083612f42565b8073ffffffffffffffffffffffffffffffffffffffff167febedb8b3c678666e7f36970bc8f57abf6d8fa2e828c0da91ea5b75bf68ed101a83604051611b639190615561565b60405180910390a25050565b601880547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff92909216919091179055565b60175481565b6000611bd5601154600d54612aad90919063ffffffff16565b905090565b3360008181526009602052604080822084905551839183917f5640833634fce74eb9211d1209a91dd5a1c8c6a751696bff9323b4db67f815139190a35050565b610f738133612fac565b60016020526000908152604090205460ff1681565b6000611c4361515e565b506000828152600a6020908152604080832081518083019092525473ffffffffffffffffffffffffffffffffffffffff8116825274010000000000000000000000000000000000000000900463ffffffff16918101919091529080611ca785613184565b91509150611cba83602001518383613241565b5095945050505050565b600b6020526000908152604090205481565b60606002805480602002602001604051908101604052809291908181526020018280548015611d3b57602002820191906000526020600020905b815473ffffffffffffffffffffffffffffffffffffffff168152600190910190602001808311611d10575b5050505050905090565b60185473ffffffffffffffffffffffffffffffffffffffff1681565b60125463ffffffff1681565b611d756122c7565b611d7d613282565b611d85613295565b565b611d8f61511d565b60016000526004602052611dc27fabd6e7cb50984ff9c2f3e18a2660c3353dadf4e3291deeb275dae2cd1e44fe0561252a565b90506000826001811115611dd257fe5b1415610c85576000611de2611407565b73ffffffffffffffffffffffffffffffffffffffff16639706e0c06040518163ffffffff1660e01b815260040160206040518083038186803b158015611e2757600080fd5b505afa158015611e3b573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250611e5f91908101906153bb565b9050611e8e611e8983602001516bffffffffffffffffffffffff168361239490919063ffffffff16565b6132c0565b6bffffffffffffffffffffffff90811660208401526040830151611ebe91611e899184911663ffffffff61239416565b6bffffffffffffffffffffffff16604083015250919050565b601454640100000000900463ffffffff1681565b6000611ef561515e565b506000838152600a6020908152604080832081518083019092525473ffffffffffffffffffffffffffffffffffffffff8116825274010000000000000000000000000000000000000000900463ffffffff16918101919091529080611f5986613184565b915091506000611f6e84602001518484613241565b915050611f7d878783856132e4565b979650505050505050565b60035473ffffffffffffffffffffffffffffffffffffffff1681565b60096020526000908152604090205481565b611fbe61511d565b73ffffffffffffffffffffffffffffffffffffffff831660009081526006602090815260408083208584529091529020610fcc9061252a565b611fff61268a565b73ffffffffffffffffffffffffffffffffffffffff811661202a57612025610a18613431565b610f73565b600080547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff83169081178255604051909133917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a350565b600c5460006120b082600163ffffffff61239416565b90506120ba6150ee565b50600081815260166020908152604091829020825160a0810184528154815260018201549281018390526002820154938101939093526003810154606084015260040154608083015261210f57505050610f73565b61211761513d565b50600084815260156020908152604080832085845282529182902082516060810184528154808252600183015493820193909352600290910154928101929092526121655750505050610f73565b60008581526015602090815260408083208684529091528120818155600181018290556002018190556121988284613468565b90506000806121ac888486604001516134dd565b9150915087877ff1116b309178aa62dcb6bf8c3b8bc2321724907c7ebf52192d14c8ce3aa9194c84846040516121e39291906155ac565b60405180910390a360006121fd838363ffffffff612aad16565b6080870151909150612215908263ffffffff612aad16565b6080870181905260008881526016602090815260409091206004019190915586015161224890600163ffffffff61239416565b602080880182815260008a81526016909252604090912060010191909155516117f3576080860151865188917fb463d19ecf455be65365092cf8e1db6934a0334cf8cd532ddf9964d01f36b5b2916122a6908263ffffffff61239416565b6040516122b49291906155ac565b60405180910390a2505050505050505050565b3360009081526001602052604090205460ff16611d8557611d85610a183361362d565b606063b9588e4360e01b83836040516024016123079291906155f4565b604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe08184030181529190526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fffffffff0000000000000000000000000000000000000000000000000000000090931692909217909152905092915050565b805160208201fd5b6000828211156123ad576123ad610a1860028585613648565b50900390565b606063614b800a60e01b83836040516024016123079291906155ac565b30318015610f73576123e0610e9a565b73ffffffffffffffffffffffffffffffffffffffff1663d0e30db0826040518263ffffffff1660e01b81526004016000604051808303818588803b15801561242757600080fd5b505af115801561243b573d6000803e3d6000fd5b505050505050565b6000611bd5601754612453610e9a565b73ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b815260040161248b919061545e565b60206040518083038186803b1580156124a357600080fd5b505afa1580156124b7573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052506124db91908101906153bb565b9063ffffffff61239416565b4260006124f2611bbc565b90508181111561250957612509610a1882846136ed565b600c5460009061252090600163ffffffff612aad16565b600c555050600d55565b61253261511d565b5060408051606081018252825467ffffffffffffffff81168083526bffffffffffffffffffffffff680100000000000000008304811660208501527401000000000000000000000000000000000000000090920490911692820192909252600c5490918111156125ca576125a58161370a565b67ffffffffffffffff16825260408201516bffffffffffffffffffffffff1660208301525b50919050565b60008183106125df5781610fcc565b5090919050565b60606384c8b7c960e01b83836040516024016123079291906155ac565b61260b61511d565b6126148361252a565b905061263e611e898383604001516bffffffffffffffffffffffff1661239490919063ffffffff16565b6bffffffffffffffffffffffff9081166040830152602082015161266d91611e8991168463ffffffff61239416565b6bffffffffffffffffffffffff1660208201526112fb838261372a565b60005473ffffffffffffffffffffffffffffffffffffffff163314611d8557600054611d8590610a1890339073ffffffffffffffffffffffffffffffffffffffff166137e4565b73ffffffffffffffffffffffffffffffffffffffff81166126f7576126f7610a18613801565b73ffffffffffffffffffffffffffffffffffffffff811660009081526001602052604090205460ff161561273157612731610a1882613838565b73ffffffffffffffffffffffffffffffffffffffff8116600081815260016020819052604080832080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00168317905560028054928301815583527f405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5ace90910180547fffffffffffffffffffffffff00000000000000000000000000000000000000001684179055513392917f3147867c59d17e8fa9d522465651d44aae0a9e38f902f3475b97e58072f0ed4c91a350565b61280b83613853565b6128158383612fac565b73ffffffffffffffffffffffffffffffffffffffff82166000908152600660209081526040808320868452909152902061284f908261388a565b6000838152600760205260409020612867908261388a565b600160005260046020526112fb7fabd6e7cb50984ff9c2f3e18a2660c3353dadf4e3291deeb275dae2cd1e44fe058261388a565b6128a483613853565b6128ae8383612fac565b73ffffffffffffffffffffffffffffffffffffffff8216600090815260066020908152604080832086845290915290206128e890826138e2565b600083815260076020526040902061290090826138e2565b600160005260046020526112fb7fabd6e7cb50984ff9c2f3e18a2660c3353dadf4e3291deeb275dae2cd1e44fe05826138e2565b61293e838361391d565b15612948576112fb565b61295061511d565b6129598461252a565b905061296361511d565b61296c8461252a565b905081604001516bffffffffffffffffffffffff168311156129a7576129a7610a188484604001516bffffffffffffffffffffffff166125e6565b60408201516129ce90611e89906bffffffffffffffffffffffff168563ffffffff61239416565b6bffffffffffffffffffffffff9081166040808501919091528201516129ff91611e8991168563ffffffff612aad16565b6bffffffffffffffffffffffff166040820152612a1c858361372a565b612a26848261372a565b5050505050565b6000818152600a602052604090205473ffffffffffffffffffffffffffffffffffffffff1633811461166257611662610a183384613924565b620f424063ffffffff82161115612a8b57612a86610a1860008584613941565b6112fb565b8163ffffffff168163ffffffff16106112fb576112fb610a1860018584613941565b600082820183811015610fcc57610fcc610a1860008686613648565b606063eb5108a260e01b82604051602401612ae4919061545e565b604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe08184030181529190526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fffffffff00000000000000000000000000000000000000000000000000000000909316929092179091529050919050565b73ffffffffffffffffffffffffffffffffffffffff821660009081526001602052604090205460ff16612ba157612ba1610a1883612ac9565b6002548110612bbc57612bbc610a1882600280549050613960565b8173ffffffffffffffffffffffffffffffffffffffff1660028281548110612be057fe5b60009182526020909120015473ffffffffffffffffffffffffffffffffffffffff1614612c4257612c42610a1860028381548110612c1a57fe5b60009182526020909120015473ffffffffffffffffffffffffffffffffffffffff168461397d565b73ffffffffffffffffffffffffffffffffffffffff8216600090815260016020526040902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00169055600280547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8101908110612cbd57fe5b6000918252602090912001546002805473ffffffffffffffffffffffffffffffffffffffff9092169183908110612cf057fe5b600091825260209091200180547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff92909216919091179055600280547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0190612d6f9082615175565b50604051339073ffffffffffffffffffffffffffffffffffffffff8416907f1f32c1b084e2de0713b8fb16bd46bb9df710a3dbeae2f3ca93af46e016dcc6b090600090a35050565b60118590556012805463ffffffff8087167fffffffffffffffffffffffffffffffffffffffffffffffffffffffff0000000092831617909255601385905560148054848416640100000000027fffffffffffffffffffffffffffffffffffffffffffffffff00000000ffffffff9487169190931617929092161790556040517f613157dbb0e920deab8ad6ddd3805e87cbf57344b9fe780f1764790ec789754290612e6b90879087908790879087906157a2565b60405180910390a15050505050565b606063b56d2df060e01b82604051602401612ae4919061545e565b803414158015612ea457503415155b15610f7357610f73610a18823461399a565b6000828152600a602052604081205481908190612ee99073ffffffffffffffffffffffffffffffffffffffff1686611fb6565b602001516bffffffffffffffffffffffff169050612f0d848263ffffffff61239416565b601254909350612f3890612f2b9063ffffffff16620f4240866139b7565b829063ffffffff612aad16565b9150509250929050565b612f4a61511d565b612f538361252a565b9050612f7d611e898383604001516bffffffffffffffffffffffff16612aad90919063ffffffff16565b6bffffffffffffffffffffffff9081166040830152602082015161266d91611e8991168463ffffffff612aad16565b612fb5826139d9565b6000612fc483836000806132e4565b73ffffffffffffffffffffffffffffffffffffffff8316600090815260066020908152604080832087845290915290209091506130009061252a565b73ffffffffffffffffffffffffffffffffffffffff8381166000908152600660209081526040808320888452825291829020845181549286015195909301517fffffffffffffffffffffffffffffffffffffffffffffffff000000000000000090921667ffffffffffffffff909316929092177fffffffffffffffffffffffff000000000000000000000000ffffffffffffffff16680100000000000000006bffffffffffffffffffffffff9586160217909216740100000000000000000000000000000000000000009390921692909202179055801561317b576130e58382613a4d565b6130ed610e9a565b73ffffffffffffffffffffffffffffffffffffffff1663a9059cbb83836040518363ffffffff1660e01b81526004016131279291906154d7565b602060405180830381600087803b15801561314157600080fd5b505af1158015613155573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525061317991908101906152bd565b505b6112fb83613a95565b600080600061319f6001600c5461239490919063ffffffff16565b90506131a961513d565b50600084815260156020908152604080832084845282528083208151606080820184528254825260018084015483870152600293840154838601528787526016865295849020845160a0810186528154815296810154958701959095529184015492850192909252600383015490840152600490910154608083015290613231908290613468565b9350806040015192505050915091565b600080826132515783915061327a565b61326563ffffffff8616620f424086613aa2565b9150613277848363ffffffff61239416565b90505b935093915050565b61328a613ad8565b42600d556001600c55565b61329d613aed565b620d2f00620dbba068056bc75e2d6310000060026003612a268585858585612db7565b806bffffffffffffffffffffffff81168114610c8557610c85610a18600284613b52565b600c546000906132f261511d565b5073ffffffffffffffffffffffffffffffffffffffff851660009081526006602090815260408083208984528252918290208251606081018452905467ffffffffffffffff81168083526bffffffffffffffffffffffff680100000000000000008304811694840194909452740100000000000000000000000000000000000000009091049092169281019290925282141561339357600092505050613429565b61339f81838787613b6f565b81519093506000906133c29067ffffffffffffffff16600163ffffffff612aad16565b90506134006133f38984602001516bffffffffffffffffffffffff16856000015167ffffffffffffffff1685613bf2565b859063ffffffff612aad16565b93506134236133f38984604001516bffffffffffffffffffffffff168487613bf2565b93505050505b949350505050565b60408051808201909152600481527fe69edc3e00000000000000000000000000000000000000000000000000000000602082015290565b815160009061347657610fcf565b815183516040840151602086015160608601516014546134ac95949392919063ffffffff80821691640100000000900416613c8b565b608083015183519192506000916134c89163ffffffff61239416565b9050818110156134d6578091505b5092915050565b6000806134e861515e565b506000858152600a602090815260409182902082518084019093525473ffffffffffffffffffffffffffffffffffffffff8116835274010000000000000000000000000000000000000000900463ffffffff1690820181905261354c908686613241565b909350915082156136095761355f610e9a565b81516040517fa9059cbb00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff929092169163a9059cbb916135b59187906004016154d7565b602060405180830381600087803b1580156135cf57600080fd5b505af11580156135e3573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525061360791908101906152bd565b505b8115613624576136198683613d4e565b613624868386613d8f565b50935093915050565b606063b65a25b960e01b82604051602401612ae4919061545e565b606063e946c1bb60e01b848484604051602401613667939291906155ba565b604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe08184030181529190526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fffffffff000000000000000000000000000000000000000000000000000000009093169290921790915290509392505050565b606063a6bcde4760e01b83836040516024016123079291906155ac565b8067ffffffffffffffff81168114610c8557610c85610a18600184613b52565b8051825460408301516020909301516bffffffffffffffffffffffff90811668010000000000000000027fffffffffffffffffffffffff000000000000000000000000ffffffffffffffff91909416740100000000000000000000000000000000000000000273ffffffffffffffffffffffffffffffffffffffff67ffffffffffffffff9094167fffffffffffffffffffffffffffffffffffffffffffffffff000000000000000090931692909217929092161716179055565b6060631de45ad160e01b838360405160240161230792919061547f565b60408051808201909152600481527f57654fe400000000000000000000000000000000000000000000000000000000602082015290565b606063de16f1a060e01b82604051602401612ae4919061545e565b6000818152600a602052604090205473ffffffffffffffffffffffffffffffffffffffff16610f7357610f73610a18826000613e78565b61389261511d565b61389b8361252a565b90506138c5611e898383604001516bffffffffffffffffffffffff1661239490919063ffffffff16565b6bffffffffffffffffffffffff1660408201526112fb838261372a565b6138ea61511d565b6138f38361252a565b90506138c5611e898383604001516bffffffffffffffffffffffff16612aad90919063ffffffff16565b1460011690565b60606382ded78560e01b83836040516024016123079291906154d7565b60606322df959760e01b84848460405160240161366793929190615626565b606063e9f8377160e01b83836040516024016123079291906155ac565b606063140a84db60e01b838360405160240161230792919061547f565b60606331d7a50560e01b83836040516024016123079291906155ac565b6000613429836139cd868563ffffffff613e9516565b9063ffffffff613ec616565b600c546000906139f090600163ffffffff61239416565b90506139fa61513d565b5060008281526015602090815260408083208484528252918290208251606081018452815480825260018301549382019390935260029091015492810192909252156112fb576112fb610a188484613ef0565b6000828152600b6020526040902054613a6c908263ffffffff61239416565b6000838152600b6020526040902055601754613a8e908263ffffffff61239416565b6017555050565b610f738160006001613d8f565b6000613429836139cd613abc82600163ffffffff61239416565b613acc888763ffffffff613e9516565b9063ffffffff612aad16565b600d5415611d8557611d85610a186000613f0d565b60115415801590613b05575060125463ffffffff1615155b8015613b12575060135415155b8015613b25575060145463ffffffff1615155b8015613b405750601454640100000000900463ffffffff1615155b15611d8557611d85610a186001613f0d565b606063c996af7b60e01b83836040516024016123079291906155dc565b6000821580613b7c575081155b15613b8957506000613429565b6000613b9c85600163ffffffff61239416565b865167ffffffffffffffff161015613bb8578560400151613bbe565b85602001515b6bffffffffffffffffffffffff16905080613bdd576000915050613429565b613be88484836139b7565b9695505050505050565b6000831580613c0057508183145b15613c0d57506000613429565b818310613c46576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016119019061564d565b613c4e615199565b613c588685613f4c565b9050613c62615199565b613c6c8785613f4c565b9050611f7d81600001518260200151846000015185602001518a61406a565b600080613c9888886140f6565b90506000613ca687876140f6565b9050811580613cb3575080155b15613cc4575060009150611f7d9050565b600081831315613cdd57613cd88284614148565b613ce7565b613ce78383614148565b9050613d10613d0b613cf883614167565b8863ffffffff168863ffffffff16614809565b614818565b905081831315613d2957613d248282614148565b613d33565b613d338282614e02565b9050613d3f818c614e2e565b9b9a5050505050505050505050565b6000828152600b6020526040902054613d6d908263ffffffff612aad16565b6000838152600b6020526040902055601754613a8e908263ffffffff612aad16565b6000838152600f6020526040902054600c5480821415613db05750506112fb565b613db8615199565b506000858152600e602090815260408083208584528252918290208251808401909352805483526001015490820152613def615199565b613df882614e70565b15613e3157613e11826000015183602001518888614e79565b60208301819052818352613e259190614edb565b60208301528152613e3c565b602081018590528581525b6000878152600e6020908152604080832086845282528083208451815593820151600190940193909355978152600f9097529095205550505050565b6060639ae94f0160e01b838360405160240161230792919061559c565b600082613ea457506000610fcf565b82820282848281613eb157fe5b0414610fcc57610fcc610a1860018686613648565b600081613edc57613edc610a1860038585613648565b6000828481613ee757fe5b04949350505050565b6060635caa0b0560e01b83836040516024016123079291906155ac565b60607f0b02d77300000000000000000000000000000000000000000000000000000000826001811115613f3c57fe5b604051602401612ae4919061580e565b613f54615199565b506000828152600e602090815260408083208484528252918290208251808401909352805483526001015490820152613f8c81614e70565b15613f9657610fcf565b6000613fa983600163ffffffff61239416565b6000858152600e60209081526040808320848452825291829020825180840190935280548352600101549082015292509050613fe482614e70565b15613fef5750610fcf565b6000848152600f60205260409020548381101561404c576000858152600e602090815260408083208484528252918290208251808401909352805483526001015490820152925061403f83614e70565b1561404c5750610fcf9050565b50506040805180820190915260008152600160208201529392505050565b600081614079575060006140ed565b8361409957614092856139cd848963ffffffff613e9516565b90506140ed565b60006140be6140ae868863ffffffff613e9516565b6124db898763ffffffff613e9516565b905060006140d2828663ffffffff613ec616565b90506140e8876139cd868463ffffffff613e9516565b925050505b95945050505050565b60008083121561410e5761410e610a18600185614f04565b600082121561412557614125610a18600184614f04565b610fcc614142846f80000000000000000000000000000000614f45565b83614f8d565b6000610fcc614142846f80000000000000000000000000000000614f45565b60006f8000000000000000000000000000000082131561418f5761418f610a1860018461500e565b600082136141a5576141a5610a1860008461500e565b6f800000000000000000000000000000008214156141c557506000610c85565b640733048c5a82136141f857507fffffffffffffffffffffffffffffffe010000000000000000000000000000000610c85565b60008060006a01c8464f761647600000008513614257577ffffffffffffffffffffffffffffffff000000000000000000000000000000000909301926a01c8464f761647600000006f8000000000000000000000000000000086020594505b6cf1aaddd7742e9000000000000085136142b5577ffffffffffffffffffffffffffffffff800000000000000000000000000000000909301926cf1aaddd7742e900000000000006f8000000000000000000000000000000086020594505b6e0afe10820813d780000000000000008513614317577ffffffffffffffffffffffffffffffffc00000000000000000000000000000000909301926e0afe10820813d780000000000000006f8000000000000000000000000000000086020594505b6f02582ab704279ec00000000000000000851361437b577ffffffffffffffffffffffffffffffffe00000000000000000000000000000000909301926f02582ab704279ec000000000000000006f8000000000000000000000000000000086020594505b6f1152aaa3bf81cc00000000000000000085136143df577fffffffffffffffffffffffffffffffff00000000000000000000000000000000909301926f1152aaa3bf81cc0000000000000000006f8000000000000000000000000000000086020594505b6f2f16ac6c59de700000000000000000008513614443577fffffffffffffffffffffffffffffffff80000000000000000000000000000000909301926f2f16ac6c59de700000000000000000006f8000000000000000000000000000000086020594505b6f4da2cbf1be582800000000000000000085136144a7577fffffffffffffffffffffffffffffffffc0000000000000000000000000000000909301926f4da2cbf1be58280000000000000000006f8000000000000000000000000000000086020594505b6f63afbe7ab2082c000000000000000000851361450b577fffffffffffffffffffffffffffffffffe0000000000000000000000000000000909301926f63afbe7ab2082c0000000000000000006f8000000000000000000000000000000086020594505b6f70f5a893b608861e1f58934f97aea57d851361456f577ffffffffffffffffffffffffffffffffff0000000000000000000000000000000909301926f70f5a893b608861e1f58934f97aea57d6f8000000000000000000000000000000086020594505b7fffffffffffffffffffffffffffffffff80000000000000000000000000000000850192508291506f80000000000000000000000000000000828002059050700100000000000000000000000000000000838103830205840193506f80000000000000000000000000000000818302816145e557fe5b059150700200000000000000000000000000000000836faaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa0383028161461657fe5b05840193506f800000000000000000000000000000008183028161463657fe5b059150700300000000000000000000000000000000836f999999999999999999999999999999990383028161466757fe5b05840193506f800000000000000000000000000000008183028161468757fe5b059150700400000000000000000000000000000000836f92492492492492492492492492492492038302816146b857fe5b05840193506f80000000000000000000000000000000818302816146d857fe5b059150700500000000000000000000000000000000836f8e38e38e38e38e38e38e38e38e38e38e0383028161470957fe5b05840193506f800000000000000000000000000000008183028161472957fe5b059150700600000000000000000000000000000000836f8ba2e8ba2e8ba2e8ba2e8ba2e8ba2e8b0383028161475a57fe5b05840193506f800000000000000000000000000000008183028161477a57fe5b059150700700000000000000000000000000000000836f89d89d89d89d89d89d89d89d89d89d89038302816147ab57fe5b05840193506f80000000000000000000000000000000818302816147cb57fe5b059150700800000000000000000000000000000000836f88888888888888888888888888888888038302816147fc57fe5b0584019350505050919050565b60006134296141428585614f45565b60007fffffffffffffffffffffffffffffffe01000000000000000000000000000000082121561484a57506000610c85565b8161486657506f80000000000000000000000000000000610c85565b600082131561487d5761487d610a1860018461500e565b6f800000000000000000000000000000006f1000000000000000000000000000000083078080028290056710e1b3be415a0000810293909301929091818302059050806705a0913f6b1e000002830192506f80000000000000000000000000000000828202816148e957fe5b05905080670168244fdac7800002830192506f800000000000000000000000000000008282028161491657fe5b05905080664807432bc1800002830192506f800000000000000000000000000000008282028161494257fe5b05905080660c0135dca0400002830192506f800000000000000000000000000000008282028161496e57fe5b059050806601b707b1cdc00002830192506f800000000000000000000000000000008282028161499a57fe5b059050806536e0f639b80002830192506f80000000000000000000000000000000828202816149c557fe5b05905080650618fee9f80002830192506f80000000000000000000000000000000828202816149f057fe5b05905080649c197dcc0002830192506f8000000000000000000000000000000082820281614a1a57fe5b05905080640e30dce40002830192506f8000000000000000000000000000000082820281614a4457fe5b0590508064012ebd130002830192506f8000000000000000000000000000000082820281614a6e57fe5b059050806317499f0002830192506f8000000000000000000000000000000082820281614a9757fe5b059050806301a9d48002830192506f8000000000000000000000000000000082820281614ac057fe5b05905080621c638002830192506f8000000000000000000000000000000082820281614ae857fe5b059050806201c63802830192506f8000000000000000000000000000000082820281614b1057fe5b05905080611ab802830192506f8000000000000000000000000000000082820281614b3757fe5b0590508061017c02830192506f8000000000000000000000000000000082820281614b5e57fe5b05905080601402830192506f8000000000000000000000000000000082820281614b8457fe5b600095909503946721c3677c82b400009190059384010582016f8000000000000000000000000000000001929050701000000000000000000000000000000000841615614bf3577243cbaf42a000812488fc5c220ad7b97bf6e99e6cf1aaddd7742e56d32fb9f9974484020592505b700800000000000000000000000000000000841615614c35577105d27a9f51c31b7c2f8038212a05747799916e0afe10820813d65dfe6a33c07f738f84020592505b700400000000000000000000000000000000841615614c7757701b4c902e273a58678d6d3bfdb93db96d026f02582ab704279e8efd15e0265855c47a84020592505b700200000000000000000000000000000000841615614cb9577003b1cc971a9bb5b9867477440d6d1577506f1152aaa3bf81cb9fdb76eae12d02957184020592505b700100000000000000000000000000000000841615614cfb5770015bf0a8b1457695355fb8ac404e7a79e36f2f16ac6c59de6f8d5d6f63c1482a7c8684020592505b6f80000000000000000000000000000000841615614d3b576fd3094c70f034de4b96ff7d5b6f99fcd86f4da2cbf1be5827f9eb3ad1aa9866ebb384020592505b6f40000000000000000000000000000000841615614d7b576fa45af1e1f40c333b3de1db4dd55f29a76f63afbe7ab2082ba1a0ae5e4eb1b479dc84020592505b6f20000000000000000000000000000000841615614dbb576f910b022db7ae67ce76b441c27035c6a16f70f5a893b608861e1f58934f97aea57d84020592505b6f10000000000000000000000000000000841615614dfb576f88415abbe9a76bead8d00cf112e4d4a86f783eafef1c0a8f3978c7f81824d62ebf84020592505b5050919050565b60006f80000000000000000000000000000000614e1f8484614f45565b81614e2657fe5b059392505050565b600080821215614e4657614e46610a18600184614f04565b6000614e528484614f45565b905060008113614e66576000915050610fcf565b607f1c9392505050565b60200151151590565b60008085614e8b575082905081614ed2565b83614e9a575084905083614ed2565b614ebd614ead858763ffffffff613e9516565b613acc888663ffffffff613e9516565b9150614ecf858463ffffffff613e9516565b90505b94509492505050565b600080614ef984846f8000000000000000000000000000000061503d565b915091509250929050565b60607fbd79545f00000000000000000000000000000000000000000000000000000000836001811115614f3357fe5b8360405160240161230792919061581c565b600082614f5457506000610fcf565b5081810281838281614f6257fe5b05141580614f79575082828281614f7557fe5b0514155b15610fcf57610fcf610a18600185856150ab565b600081614fa357614fa3610a18600285856150ab565b7f800000000000000000000000000000000000000000000000000000000000000083148015614ff15750817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff145b1561500557615005610a18600385856150ab565b818381614e2657fe5b60607fed2f26a100000000000000000000000000000000000000000000000000000000836001811115614f3357fe5b6000808285118061504d57508284115b156150a2576000848610156150625784615064565b855b9050615076818563ffffffff613ec616565b9050615088868263ffffffff613ec616565b925061509a858263ffffffff613ec616565b91505061327a565b50929391925050565b60607f8c12dfe7000000000000000000000000000000000000000000000000000000008460038111156150da57fe5b84846040516024016136679392919061582f565b6040518060a0016040528060008152602001600081526020016000815260200160008152602001600081525090565b604080516060810182526000808252602082018190529181019190915290565b60405180606001604052806000815260200160008152602001600081525090565b604080518082019091526000808252602082015290565b8154818355818111156112fb576000838152602090206112fb9181019083016151b3565b604051806040016040528060008152602001600081525090565b610bed91905b808211156151cd57600081556001016151b9565b5090565b6000604082840312156125ca578081fd5b6000602082840312156151f3578081fd5b8135610fcc81615854565b60006020828403121561520f578081fd5b8151610fcc81615854565b60008060006060848603121561522e578182fd5b833561523981615854565b9250602084013561524981615854565b929592945050506040919091013590565b6000806040838503121561526c578182fd5b823561527781615854565b946020939093013593505050565b60008060408385031215615297578182fd5b82356152a281615854565b915060208301356152b281615884565b809150509250929050565b6000602082840312156152ce578081fd5b8151610fcc81615876565b6000602082840312156152ea578081fd5b5035919050565b60008060408385031215615303578182fd5b8235915060208301356152b281615854565b60008060408385031215615327578182fd5b50508035926020909101359150565b60008060408385031215615348578182fd5b82359150602083013563ffffffff811681146152b2578182fd5b600060208284031215615373578081fd5b8135610fcc81615884565b600080600060a08486031215615392578283fd5b61539c85856151d1565b92506153ab85604086016151d1565b9150608084013590509250925092565b6000602082840312156153cc578081fd5b5051919050565b600080600080600060a086880312156153ea578283fd5b8535945060208601356153fc81615891565b935060408601359250606086013561541381615891565b9150608086013561542381615891565b809150509295509295909350565b60008060408385031215615443578182fd5b823561544e81615891565b915060208301356152b281615876565b73ffffffffffffffffffffffffffffffffffffffff91909116815260200190565b73ffffffffffffffffffffffffffffffffffffffff92831681529116602082015260400190565b73ffffffffffffffffffffffffffffffffffffffff9384168152919092166020820152604081019190915260600190565b73ffffffffffffffffffffffffffffffffffffffff929092168252602082015260400190565b602080825282518282018190526000918401906040840190835b8181101561554b57835173ffffffffffffffffffffffffffffffffffffffff16835260209384019390920191600101615517565b509095945050505050565b901515815260200190565b90815260200190565b92835273ffffffffffffffffffffffffffffffffffffffff91909116602083015263ffffffff16604082015260600190565b9182521515602082015260400190565b918252602082015260400190565b60608101600485106155c857fe5b938152602081019290925260409091015290565b60408101600384106155ea57fe5b9281526020015290565b604081016156018461584a565b92815273ffffffffffffffffffffffffffffffffffffffff9190911660209091015290565b606081016156338561584a565b938152602081019290925263ffffffff1660409091015290565b60208082526013908201527f43525f494e54455256414c5f494e56414c494400000000000000000000000000604082015260600190565b60208082526014908201527f574554485f5452414e534645525f4641494c4544000000000000000000000000604082015260600190565b81518152602080830151908201526040918201519181019190915260600190565b815173ffffffffffffffffffffffffffffffffffffffff16815260209182015163ffffffff169181019190915260400190565b815167ffffffffffffffff1681526020808301516bffffffffffffffffffffffff90811691830191909152604092830151169181019190915260600190565b9283526020830191909152604082015260600190565b93845260208401929092526040830152606082015260800190565b948552602085019390935260408401919091526060830152608082015260a00190565b94855263ffffffff938416602086015260408501929092528216606084015216608082015260a00190565b92835260ff918216602084015216604082015260600190565b63ffffffff91909116815260200190565b63ffffffff92831681529116602082015260400190565b60ff91909116815260200190565b60ff929092168252602082015260400190565b60ff9390931683526020830191909152604082015260600190565b60028110610f7357fe5b73ffffffffffffffffffffffffffffffffffffffff81168114610f7357600080fd5b8015158114610f7357600080fd5b60028110610f7357600080fd5b63ffffffff81168114610f7357600080fdfea365627a7a72315820cd4dcb64a07325df26d38404ffcca0f57d30f570cbe815c03c543316add5e5a46c6578706572696d656e74616cf564736f6c634300050c0040" }, "deployedBytecode": { - "object": "0x6080604052600436106103295760003560e01c80638da5cb5b116101a5578063bb7ef7e0116100ec578063e8eeb3f811610095578063f18765321161006f578063f1876532146108bf578063f252b7a1146108df578063f2fde38b146108ff578063ff691b111461091f57610329565b8063e8eeb3f814610875578063e907f0031461088a578063ee99205c146108aa57610329565b8063e0ee036e116100c6578063e0ee036e1461082b578063e1c7392a14610840578063e804d0a41461085557610329565b8063bb7ef7e0146107c9578063c18c9141146107e9578063d39de6e91461080957610329565b8063a694fc3a1161014e578063b3e3337911610128578063b3e3337914610769578063b510879f14610789578063b9181611146107a957610329565b8063a694fc3a1461071f578063b05315241461073f578063b2baa33e1461075457610329565b8063a26171e21161017f578063a26171e2146106e2578063a3b4a327146106f7578063a657e5791461070a57610329565b80638da5cb5b1461068d5780639ad26744146106a25780639c3ccc82146106c257610329565b80634bcc3f6711610274578063624a72321161021d57806370712939116101f757806370712939146106165780637667180814610636578063816667961461064b5780638a2e271a1461066d57610329565b8063624a7232146105cc57806363403801146105e157806368a7d6cd146105f657610329565b80635bd4ab731161024e5780635bd4ab73146105595780635d91121d146105865780635e615a6b146105a657610329565b80634bcc3f67146104f7578063587da0231461052457806358f6c7e31461053957610329565b80633c277fc5116102d657806344a6958b116102b057806344a6958b1461048a57806346b97959146104aa578063494503d4146104d757610329565b80633c277fc51461041b5780633e4ad7321461043d57806342f1181e1461046a57610329565b80632a94c279116103075780632a94c2791461039b5780632e17de78146103ca57806338229d93146103ea57610329565b806301e28d841461032e5780630b9663db146103505780631e7ff8f61461037b575b600080fd5b34801561033a57600080fd5b5061034e610349366004614fb8565b61093f565b005b34801561035c57600080fd5b50610365610a0d565b6040516103729190615318565b60405180910390f35b34801561038757600080fd5b50610365610396366004614fb8565b610b5a565b3480156103a757600080fd5b506103bb6103b63660046150cc565b610bf4565b60405161037293929190615505565b3480156103d657600080fd5b5061034e6103e5366004615090565b610c20565b3480156103f657600080fd5b5061040a610405366004615090565b610dd5565b604051610372959493929190615536565b34801561042757600080fd5b50610430610e04565b6040516103729190615215565b34801561044957600080fd5b5061045d610458366004615090565b610e20565b60405161037291906154c6565b34801561047657600080fd5b5061034e610485366004614fb8565b610e3f565b34801561049657600080fd5b5061045d6104a536600461503d565b610e53565b3480156104b657600080fd5b506104ca6104c5366004615090565b610eb2565b6040516103729190615472565b3480156104e357600080fd5b506104306104f2366004615090565b610efd565b34801561050357600080fd5b50610517610512366004615090565b610f31565b6040516103729190615493565b34801561053057600080fd5b50610365610f93565b34801561054557600080fd5b5061034e610554366004615135565b610f99565b34801561056557600080fd5b50610579610574366004614fb8565b611196565b604051610372919061530d565b34801561059257600080fd5b5061034e6105a13660046150ed565b6111ab565b3480156105b257600080fd5b506105bb611274565b604051610372959493929190615559565b3480156105d857600080fd5b5061043061129d565b3480156105ed57600080fd5b506103656112b9565b34801561060257600080fd5b506103656106113660046151e8565b6112bf565b34801561062257600080fd5b5061034e610631366004614fb8565b6113f8565b34801561064257600080fd5b506103656114ad565b34801561065757600080fd5b506106606114b3565b604051610372919061559d565b34801561067957600080fd5b5061034e610688366004614fb8565b6114bf565b34801561069957600080fd5b50610430611581565b3480156106ae57600080fd5b5061034e6106bd366004615013565b61159d565b3480156106ce57600080fd5b5061034e6106dd36600461518a565b6115af565b3480156106ee57600080fd5b50610365611629565b61034e610705366004614fd3565b61162f565b34801561071657600080fd5b5061036561187f565b34801561072b57600080fd5b5061034e61073a366004615090565b611885565b34801561074b57600080fd5b5061036561199a565b34801561076057600080fd5b506103656119a0565b34801561077557600080fd5b5061034e610784366004615090565b6119be565b34801561079557600080fd5b5061034e6107a4366004615090565b6119fe565b3480156107b557600080fd5b506105796107c4366004614fb8565b611a08565b3480156107d557600080fd5b506103656107e4366004615090565b611a1d565b3480156107f557600080fd5b50610365610804366004615090565b611aa8565b34801561081557600080fd5b5061081e611aba565b60405161037291906152b4565b34801561083757600080fd5b50610660611b29565b34801561084c57600080fd5b5061034e611b35565b34801561086157600080fd5b5061045d610870366004615119565b611b4f565b34801561088157600080fd5b50610660611c9f565b34801561089657600080fd5b506103656108a53660046150a8565b611cb3565b3480156108b657600080fd5b50610430611d50565b3480156108cb57600080fd5b506103656108da366004614fb8565b611d6c565b3480156108eb57600080fd5b5061045d6108fa366004615013565b611d7e565b34801561090b57600080fd5b5061034e61091a366004614fb8565b611dbf565b34801561092b57600080fd5b5061034e61093a366004615090565b611e62565b61094761208f565b73ffffffffffffffffffffffffffffffffffffffff811660009081526010602052604090205460ff16610987576109876109826001836120b2565b612154565b73ffffffffffffffffffffffffffffffffffffffff81166000908152601060205260409081902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00169055517ff50d0d312d501878616eb5e78ebf3ed6dcd3955aaef8165af9c6b057cc4832fb90610a02908390615215565b60405180910390a150565b600c5460009081610a2582600163ffffffff61215c16565b6000818152601660205260409020600101549091508015610a4d57610a4d610982838361217b565b610a55612198565b610a5d61220b565b600084815260166020526040902055610a74614ea0565b50600083815260166020908152604091829020825160a08101845281548082526001830154938201849052600283015482860181905260038401546060840181905260049094015460808401529451919488947fbb4a26fa0ace13ee4da343896c20eaa44a618fb9071fdd8c2e2c960a4583189d94610af6949193929161551b565b60405180910390a2610b066122af565b6020810151610b4d57805160405185917fb463d19ecf455be65365092cf8e1db6934a0334cf8cd532ddf9964d01f36b5b291610b4491600091615363565b60405180910390a25b6020015193505050505b90565b6000610b6461129d565b73ffffffffffffffffffffffffffffffffffffffff166370a08231836040518263ffffffff1660e01b8152600401610b9c9190615215565b60206040518083038186803b158015610bb457600080fd5b505afa158015610bc8573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250610bec9190810190615172565b90505b919050565b601560209081526000928352604080842090915290825290208054600182015460029092015490919083565b33610c29614ecf565b73ffffffffffffffffffffffffffffffffffffffff821660009081527f05b8ccbb9d4d8fb16ea74ce3c29a41f1b461fbdaff4714a0d9a8eb05499746bc60205260409020610c76906122f2565b90506000610ca882602001516bffffffffffffffffffffffff1683604001516bffffffffffffffffffffffff16612398565b905080841115610cbf57610cbf61098285836123ae565b73ffffffffffffffffffffffffffffffffffffffff831660009081527f05b8ccbb9d4d8fb16ea74ce3c29a41f1b461fbdaff4714a0d9a8eb05499746bc60205260409020610d0d90856123cb565b610d1561129d565b73ffffffffffffffffffffffffffffffffffffffff16639470b0bd84866040518363ffffffff1660e01b8152600401610d4f92919061528e565b600060405180830381600087803b158015610d6957600080fd5b505af1158015610d7d573d6000803e3d6000fd5b505050508273ffffffffffffffffffffffffffffffffffffffff167f85082129d87b2fe11527cb1b3b7a520aeb5aa6913f88a3d8757fe40d1db02fdd85604051610dc79190615318565b60405180910390a250505050565b601660205260009081526040902080546001820154600283015460038401546004909401549293919290919085565b60185473ffffffffffffffffffffffffffffffffffffffff1690565b610e28614ecf565b6000828152600760205260409020610bec906122f2565b610e47612452565b610e5081612499565b50565b610e5b614ecf565b610ea960056000846001811115610e6e57fe5b60ff1681526020808201929092526040908101600090812073ffffffffffffffffffffffffffffffffffffffff8816825290925290206122f2565b90505b92915050565b610eba614eef565b506000908152601560209081526040808320600c548452825291829020825160608101845281548152600182015492810192909252600201549181019190915290565b60028181548110610f0a57fe5b60009182526020909120015473ffffffffffffffffffffffffffffffffffffffff16905081565b610f39614f10565b506000908152600a602090815260409182902082518084019093525473ffffffffffffffffffffffffffffffffffffffff8116835274010000000000000000000000000000000000000000900463ffffffff169082015290565b600d5481565b3381610fa55750611191565b6000610fb46020860186615119565b6001811115610fbf57fe5b148015610fe357506000610fd66020850185615119565b6001811115610fe157fe5b145b15610fee5750611191565b6001610ffd6020860186615119565b600181111561100857fe5b141561101d5761101d846020013582846125ca565b600161102c6020850185615119565b600181111561103757fe5b141561104c5761104c83602001358284612663565b600060058161105e6020880188615119565b600181111561106957fe5b60ff1681526020808201929092526040908101600090812073ffffffffffffffffffffffffffffffffffffffff86168252835290812092509060059082906110b390880188615119565b60018111156110be57fe5b60ff1681526020808201929092526040908101600090812073ffffffffffffffffffffffffffffffffffffffff87168252909252902090506111018282866126fc565b60208086013590870180359073ffffffffffffffffffffffffffffffffffffffff8616907f7d3ad1dcf03b9027064d1d9a474a69e0cecc31324c541d3eb9b5e6fa2f106c8d908890611153908c615119565b600181111561115e57fe5b61116b60208c018c615119565b600181111561117657fe5b60405161118593929190615584565b60405180910390a45050505b505050565b60106020526000908152604090205460ff1681565b816111b5816127f5565b6000838152600a602052604090205474010000000000000000000000000000000000000000900463ffffffff166111ed84828561282e565b6000848152600a60205260409081902080547fffffffffffffffff00000000ffffffffffffffffffffffffffffffffffffffff167401000000000000000000000000000000000000000063ffffffff8716021790555184907f8ea2a7a959bd25f226b7b0a4393613f7fdcaa8404e8bad96aa52dc1c1459016790610dc790849087906155ae565b601154601254601354601454929363ffffffff9283169391928281169264010000000090041690565b60195473ffffffffffffffffffffffffffffffffffffffff1690565b60115481565b60085460009033906112d890600163ffffffff61287516565b600881905591506112ed82620f42408661282e565b6112f5614f10565b5060408051808201825273ffffffffffffffffffffffffffffffffffffffff838116825263ffffffff87811660208085019182526000888152600a9091528590208451815492517fffffffffffffffffffffffff00000000000000000000000000000000000000009093169416939093177fffffffffffffffff00000000ffffffffffffffffffffffffffffffffffffffff1674010000000000000000000000000000000000000000919092160217905590517fcec6fc86ea644053f6edff1160dfe3fa5c61e7a5ef9f873f145bb03a0bd319e7906113d990859085908990615321565b60405180910390a183156113f0576113f0836119be565b505092915050565b611400612452565b73ffffffffffffffffffffffffffffffffffffffff811660009081526001602052604090205460ff166114395761143961098282612891565b60005b6002548110156114a9578173ffffffffffffffffffffffffffffffffffffffff166002828154811061146a57fe5b60009182526020909120015473ffffffffffffffffffffffffffffffffffffffff1614156114a15761149c8282612930565b6114a9565b60010161143c565b5050565b600c5481565b60145463ffffffff1681565b6114c761208f565b73ffffffffffffffffffffffffffffffffffffffff811660009081526010602052604090205460ff1615611503576115036109826000836120b2565b73ffffffffffffffffffffffffffffffffffffffff81166000908152601060205260409081902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00166001179055517f3e535d1ab441ef41c268fd9b52b478aee02d693c5ca2a84b5d26b89e0922e5e190610a02908390615215565b60005473ffffffffffffffffffffffffffffffffffffffff1681565b6115a5612452565b6114a98282612930565b6115b761208f565b6115c48585858585612b7f565b3073ffffffffffffffffffffffffffffffffffffffff1663c6f3a4276040518163ffffffff1660e01b815260040160006040518083038186803b15801561160a57600080fd5b505afa15801561161e573d6000803e3d6000fd5b505050505050505050565b60135481565b3360009081526010602052604090205460ff166116525761165261098233612c42565b61165b81612c5d565b3461173557611668610e04565b73ffffffffffffffffffffffffffffffffffffffff166323b872dd8330846040518463ffffffff1660e01b81526004016116a49392919061525d565b602060405180830381600087803b1580156116be57600080fd5b505af11580156116d2573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052506116f69190810190615074565b611735576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161172c9061543b565b60405180910390fd5b73ffffffffffffffffffffffffffffffffffffffff8316600090815260096020526040902054806117665750611191565b600061177182610e20565b602001516bffffffffffffffffffffffff169050601354811015611796575050611191565b600c54600083815260156020908152604080832084845282528083206016909252909120815480611845576000806117ce8888612c7e565b6002870182905560018701819055600386015491935091506117f6908263ffffffff61287516565b60038501556001808501546118109163ffffffff61287516565b6001850155604051889087907f14b098103235344975b17508c2391721cc9ac3f3fa2b56c7ff46f8480dfd074f90600090a350505b611855818863ffffffff61287516565b8355600282015461186c908863ffffffff61287516565b8260020181905550505050505050505050565b60085481565b3361188e61129d565b73ffffffffffffffffffffffffffffffffffffffff166315cc36f282846040518363ffffffff1660e01b81526004016118c892919061528e565b600060405180830381600087803b1580156118e257600080fd5b505af11580156118f6573d6000803e3d6000fd5b5050505073ffffffffffffffffffffffffffffffffffffffff811660009081527f05b8ccbb9d4d8fb16ea74ce3c29a41f1b461fbdaff4714a0d9a8eb05499746bc602052604090206119489083612d0a565b8073ffffffffffffffffffffffffffffffffffffffff167febedb8b3c678666e7f36970bc8f57abf6d8fa2e828c0da91ea5b75bf68ed101a8360405161198e9190615318565b60405180910390a25050565b60175481565b60006119b9601154600d5461287590919063ffffffff16565b905090565b3360008181526009602052604080822084905551839183917f5640833634fce74eb9211d1209a91dd5a1c8c6a751696bff9323b4db67f815139190a35050565b610e508133612d74565b60016020526000908152604090205460ff1681565b6000611a27614f10565b506000828152600a6020908152604080832081518083019092525473ffffffffffffffffffffffffffffffffffffffff8116825274010000000000000000000000000000000000000000900463ffffffff16918101919091529080611a8b85612f4c565b91509150611a9e83602001518383613009565b5095945050505050565b600b6020526000908152604090205481565b60606002805480602002602001604051908101604052809291908181526020018280548015611b1f57602002820191906000526020600020905b815473ffffffffffffffffffffffffffffffffffffffff168152600190910190602001808311611af4575b5050505050905090565b60125463ffffffff1681565b611b3d61208f565b611b4561304a565b611b4d61305d565b565b611b57614ecf565b60016000526004602052611b8a7fabd6e7cb50984ff9c2f3e18a2660c3353dadf4e3291deeb275dae2cd1e44fe056122f2565b90506000826001811115611b9a57fe5b1415610bef576000611baa61129d565b73ffffffffffffffffffffffffffffffffffffffff16639706e0c06040518163ffffffff1660e01b815260040160206040518083038186803b158015611bef57600080fd5b505afa158015611c03573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250611c279190810190615172565b9050611c56611c5183602001516bffffffffffffffffffffffff168361215c90919063ffffffff16565b613088565b6bffffffffffffffffffffffff90811660208401526040830151611c8691611c519184911663ffffffff61215c16565b6bffffffffffffffffffffffff16604083015250919050565b601454640100000000900463ffffffff1681565b6000611cbd614f10565b506000838152600a6020908152604080832081518083019092525473ffffffffffffffffffffffffffffffffffffffff8116825274010000000000000000000000000000000000000000900463ffffffff16918101919091529080611d2186612f4c565b915091506000611d3684602001518484613009565b915050611d45878783856130ac565b979650505050505050565b60035473ffffffffffffffffffffffffffffffffffffffff1681565b60096020526000908152604090205481565b611d86614ecf565b73ffffffffffffffffffffffffffffffffffffffff831660009081526006602090815260408083208584529091529020610ea9906122f2565b611dc7612452565b73ffffffffffffffffffffffffffffffffffffffff8116611df257611ded6109826131f9565b610e50565b600080547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff83169081178255604051909133917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a350565b600c546000611e7882600163ffffffff61215c16565b9050611e82614ea0565b50600081815260166020908152604091829020825160a08101845281548152600182015492810183905260028201549381019390935260038101546060840152600401546080830152611ed757505050610e50565b611edf614eef565b5060008481526015602090815260408083208584528252918290208251606081018452815480825260018301549382019390935260029091015492810192909252611f2d5750505050610e50565b6000858152601560209081526040808320868452909152812081815560018101829055600201819055611f608284613230565b9050600080611f74888486604001516132a5565b9150915087877ff1116b309178aa62dcb6bf8c3b8bc2321724907c7ebf52192d14c8ce3aa9194c8484604051611fab929190615363565b60405180910390a36000611fc5838363ffffffff61287516565b6080870151909150611fdd908263ffffffff61287516565b6080870181905260008881526016602090815260409091206004019190915586015161201090600163ffffffff61215c16565b602080880182815260008a815260169092526040909120600101919091555161161e576080860151865188917fb463d19ecf455be65365092cf8e1db6934a0334cf8cd532ddf9964d01f36b5b29161206e908263ffffffff61215c16565b60405161207c929190615363565b60405180910390a2505050505050505050565b3360009081526001602052604090205460ff16611b4d57611b4d610982336133f5565b606063b9588e4360e01b83836040516024016120cf9291906153ab565b604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe08184030181529190526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fffffffff0000000000000000000000000000000000000000000000000000000090931692909217909152905092915050565b805160208201fd5b6000828211156121755761217561098260028585613410565b50900390565b606063614b800a60e01b83836040516024016120cf929190615363565b30318015610e50576121a8610e04565b73ffffffffffffffffffffffffffffffffffffffff1663d0e30db0826040518263ffffffff1660e01b81526004016000604051808303818588803b1580156121ef57600080fd5b505af1158015612203573d6000803e3d6000fd5b505050505050565b60006119b960175461221b610e04565b73ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b81526004016122539190615215565b60206040518083038186803b15801561226b57600080fd5b505afa15801561227f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052506122a39190810190615172565b9063ffffffff61215c16565b4260006122ba6119a0565b9050818111156122d1576122d161098282846134b5565b600c546000906122e890600163ffffffff61287516565b600c555050600d55565b6122fa614ecf565b5060408051606081018252825467ffffffffffffffff81168083526bffffffffffffffffffffffff680100000000000000008304811660208501527401000000000000000000000000000000000000000090920490911692820192909252600c5490918111156123925761236d816134d2565b67ffffffffffffffff16825260408201516bffffffffffffffffffffffff1660208301525b50919050565b60008183106123a75781610ea9565b5090919050565b60606384c8b7c960e01b83836040516024016120cf929190615363565b6123d3614ecf565b6123dc836122f2565b9050612406611c518383604001516bffffffffffffffffffffffff1661215c90919063ffffffff16565b6bffffffffffffffffffffffff9081166040830152602082015161243591611c5191168463ffffffff61215c16565b6bffffffffffffffffffffffff16602082015261119183826134f2565b60005473ffffffffffffffffffffffffffffffffffffffff163314611b4d57600054611b4d9061098290339073ffffffffffffffffffffffffffffffffffffffff166135ac565b73ffffffffffffffffffffffffffffffffffffffff81166124bf576124bf6109826135c9565b73ffffffffffffffffffffffffffffffffffffffff811660009081526001602052604090205460ff16156124f9576124f961098282613600565b73ffffffffffffffffffffffffffffffffffffffff8116600081815260016020819052604080832080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00168317905560028054928301815583527f405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5ace90910180547fffffffffffffffffffffffff00000000000000000000000000000000000000001684179055513392917f3147867c59d17e8fa9d522465651d44aae0a9e38f902f3475b97e58072f0ed4c91a350565b6125d38361361b565b6125dd8383612d74565b73ffffffffffffffffffffffffffffffffffffffff8216600090815260066020908152604080832086845290915290206126179082613652565b600083815260076020526040902061262f9082613652565b600160005260046020526111917fabd6e7cb50984ff9c2f3e18a2660c3353dadf4e3291deeb275dae2cd1e44fe0582613652565b61266c8361361b565b6126768383612d74565b73ffffffffffffffffffffffffffffffffffffffff8216600090815260066020908152604080832086845290915290206126b090826136aa565b60008381526007602052604090206126c890826136aa565b600160005260046020526111917fabd6e7cb50984ff9c2f3e18a2660c3353dadf4e3291deeb275dae2cd1e44fe05826136aa565b61270683836136e5565b1561271057611191565b612718614ecf565b612721846122f2565b905061272b614ecf565b612734846122f2565b905081604001516bffffffffffffffffffffffff1683111561276f5761276f6109828484604001516bffffffffffffffffffffffff166123ae565b604082015161279690611c51906bffffffffffffffffffffffff168563ffffffff61215c16565b6bffffffffffffffffffffffff9081166040808501919091528201516127c791611c5191168563ffffffff61287516565b6bffffffffffffffffffffffff1660408201526127e485836134f2565b6127ee84826134f2565b5050505050565b6000818152600a602052604090205473ffffffffffffffffffffffffffffffffffffffff163381146114a9576114a961098233846136ec565b620f424063ffffffff821611156128535761284e61098260008584613709565b611191565b8163ffffffff168163ffffffff16106111915761119161098260018584613709565b600082820183811015610ea957610ea961098260008686613410565b606063eb5108a260e01b826040516024016128ac9190615215565b604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe08184030181529190526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fffffffff00000000000000000000000000000000000000000000000000000000909316929092179091529050919050565b73ffffffffffffffffffffffffffffffffffffffff821660009081526001602052604090205460ff166129695761296961098283612891565b60025481106129845761298461098282600280549050613728565b8173ffffffffffffffffffffffffffffffffffffffff16600282815481106129a857fe5b60009182526020909120015473ffffffffffffffffffffffffffffffffffffffff1614612a0a57612a0a610982600283815481106129e257fe5b60009182526020909120015473ffffffffffffffffffffffffffffffffffffffff1684613745565b73ffffffffffffffffffffffffffffffffffffffff8216600090815260016020526040902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00169055600280547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8101908110612a8557fe5b6000918252602090912001546002805473ffffffffffffffffffffffffffffffffffffffff9092169183908110612ab857fe5b600091825260209091200180547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff92909216919091179055600280547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0190612b379082614f27565b50604051339073ffffffffffffffffffffffffffffffffffffffff8416907f1f32c1b084e2de0713b8fb16bd46bb9df710a3dbeae2f3ca93af46e016dcc6b090600090a35050565b60118590556012805463ffffffff8087167fffffffffffffffffffffffffffffffffffffffffffffffffffffffff0000000092831617909255601385905560148054848416640100000000027fffffffffffffffffffffffffffffffffffffffffffffffff00000000ffffffff9487169190931617929092161790556040517f613157dbb0e920deab8ad6ddd3805e87cbf57344b9fe780f1764790ec789754290612c339087908790879087908790615559565b60405180910390a15050505050565b606063b56d2df060e01b826040516024016128ac9190615215565b803414158015612c6c57503415155b15610e5057610e506109828234613762565b6000828152600a602052604081205481908190612cb19073ffffffffffffffffffffffffffffffffffffffff1686611d7e565b602001516bffffffffffffffffffffffff169050612cd5848263ffffffff61215c16565b601254909350612d0090612cf39063ffffffff16620f42408661377f565b829063ffffffff61287516565b9150509250929050565b612d12614ecf565b612d1b836122f2565b9050612d45611c518383604001516bffffffffffffffffffffffff1661287590919063ffffffff16565b6bffffffffffffffffffffffff9081166040830152602082015161243591611c5191168463ffffffff61287516565b612d7d826137a1565b6000612d8c83836000806130ac565b73ffffffffffffffffffffffffffffffffffffffff831660009081526006602090815260408083208784529091529020909150612dc8906122f2565b73ffffffffffffffffffffffffffffffffffffffff8381166000908152600660209081526040808320888452825291829020845181549286015195909301517fffffffffffffffffffffffffffffffffffffffffffffffff000000000000000090921667ffffffffffffffff909316929092177fffffffffffffffffffffffff000000000000000000000000ffffffffffffffff16680100000000000000006bffffffffffffffffffffffff95861602179092167401000000000000000000000000000000000000000093909216929092021790558015612f4357612ead8382613815565b612eb5610e04565b73ffffffffffffffffffffffffffffffffffffffff1663a9059cbb83836040518363ffffffff1660e01b8152600401612eef92919061528e565b602060405180830381600087803b158015612f0957600080fd5b505af1158015612f1d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250612f419190810190615074565b505b6111918361385d565b6000806000612f676001600c5461215c90919063ffffffff16565b9050612f71614eef565b50600084815260156020908152604080832084845282528083208151606080820184528254825260018084015483870152600293840154838601528787526016865295849020845160a0810186528154815296810154958701959095529184015492850192909252600383015490840152600490910154608083015290612ff9908290613230565b9350806040015192505050915091565b6000808261301957839150613042565b61302d63ffffffff8616620f42408661386a565b915061303f848363ffffffff61215c16565b90505b935093915050565b6130526138a0565b42600d556001600c55565b6130656138b5565b620d2f00620dbba068056bc75e2d63100000600260036127ee8585858585612b7f565b806bffffffffffffffffffffffff81168114610bef57610bef61098260028461391a565b600c546000906130ba614ecf565b5073ffffffffffffffffffffffffffffffffffffffff851660009081526006602090815260408083208984528252918290208251606081018452905467ffffffffffffffff81168083526bffffffffffffffffffffffff680100000000000000008304811694840194909452740100000000000000000000000000000000000000009091049092169281019290925282141561315b576000925050506131f1565b61316781838787613937565b815190935060009061318a9067ffffffffffffffff16600163ffffffff61287516565b90506131c86131bb8984602001516bffffffffffffffffffffffff16856000015167ffffffffffffffff16856139ba565b859063ffffffff61287516565b93506131eb6131bb8984604001516bffffffffffffffffffffffff1684876139ba565b93505050505b949350505050565b60408051808201909152600481527fe69edc3e00000000000000000000000000000000000000000000000000000000602082015290565b815160009061323e57610eac565b8151835160408401516020860151606086015160145461327495949392919063ffffffff80821691640100000000900416613a53565b608083015183519192506000916132909163ffffffff61215c16565b90508181101561329e578091505b5092915050565b6000806132b0614f10565b506000858152600a602090815260409182902082518084019093525473ffffffffffffffffffffffffffffffffffffffff8116835274010000000000000000000000000000000000000000900463ffffffff16908201819052613314908686613009565b909350915082156133d157613327610e04565b81516040517fa9059cbb00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff929092169163a9059cbb9161337d91879060040161528e565b602060405180830381600087803b15801561339757600080fd5b505af11580156133ab573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052506133cf9190810190615074565b505b81156133ec576133e18683613b16565b6133ec868386613b57565b50935093915050565b606063b65a25b960e01b826040516024016128ac9190615215565b606063e946c1bb60e01b84848460405160240161342f93929190615371565b604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe08184030181529190526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fffffffff000000000000000000000000000000000000000000000000000000009093169290921790915290509392505050565b606063a6bcde4760e01b83836040516024016120cf929190615363565b8067ffffffffffffffff81168114610bef57610bef61098260018461391a565b8051825460408301516020909301516bffffffffffffffffffffffff90811668010000000000000000027fffffffffffffffffffffffff000000000000000000000000ffffffffffffffff91909416740100000000000000000000000000000000000000000273ffffffffffffffffffffffffffffffffffffffff67ffffffffffffffff9094167fffffffffffffffffffffffffffffffffffffffffffffffff000000000000000090931692909217929092161716179055565b6060631de45ad160e01b83836040516024016120cf929190615236565b60408051808201909152600481527f57654fe400000000000000000000000000000000000000000000000000000000602082015290565b606063de16f1a060e01b826040516024016128ac9190615215565b6000818152600a602052604090205473ffffffffffffffffffffffffffffffffffffffff16610e5057610e50610982826000613c40565b61365a614ecf565b613663836122f2565b905061368d611c518383604001516bffffffffffffffffffffffff1661215c90919063ffffffff16565b6bffffffffffffffffffffffff16604082015261119183826134f2565b6136b2614ecf565b6136bb836122f2565b905061368d611c518383604001516bffffffffffffffffffffffff1661287590919063ffffffff16565b1460011690565b60606382ded78560e01b83836040516024016120cf92919061528e565b60606322df959760e01b84848460405160240161342f939291906153dd565b606063e9f8377160e01b83836040516024016120cf929190615363565b606063140a84db60e01b83836040516024016120cf929190615236565b60606331d7a50560e01b83836040516024016120cf929190615363565b60006131f183613795868563ffffffff613c5d16565b9063ffffffff613c8e16565b600c546000906137b890600163ffffffff61215c16565b90506137c2614eef565b506000828152601560209081526040808320848452825291829020825160608101845281548082526001830154938201939093526002909101549281019290925215611191576111916109828484613cb8565b6000828152600b6020526040902054613834908263ffffffff61215c16565b6000838152600b6020526040902055601754613856908263ffffffff61215c16565b6017555050565b610e508160006001613b57565b60006131f18361379561388482600163ffffffff61215c16565b613894888763ffffffff613c5d16565b9063ffffffff61287516565b600d5415611b4d57611b4d6109826000613cd5565b601154158015906138cd575060125463ffffffff1615155b80156138da575060135415155b80156138ed575060145463ffffffff1615155b80156139085750601454640100000000900463ffffffff1615155b15611b4d57611b4d6109826001613cd5565b606063c996af7b60e01b83836040516024016120cf929190615393565b6000821580613944575081155b15613951575060006131f1565b600061396485600163ffffffff61215c16565b865167ffffffffffffffff161015613980578560400151613986565b85602001515b6bffffffffffffffffffffffff169050806139a55760009150506131f1565b6139b084848361377f565b9695505050505050565b60008315806139c857508183145b156139d5575060006131f1565b818310613a0e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161172c90615404565b613a16614f4b565b613a208685613d14565b9050613a2a614f4b565b613a348785613d14565b9050611d4581600001518260200151846000015185602001518a613e32565b600080613a608888613ebe565b90506000613a6e8787613ebe565b9050811580613a7b575080155b15613a8c575060009150611d459050565b600081831315613aa557613aa08284613f10565b613aaf565b613aaf8383613f10565b9050613ad8613ad3613ac083613f2f565b8863ffffffff168863ffffffff166145d1565b6145e0565b905081831315613af157613aec8282613f10565b613afb565b613afb8282614bca565b9050613b07818c614bf6565b9b9a5050505050505050505050565b6000828152600b6020526040902054613b35908263ffffffff61287516565b6000838152600b6020526040902055601754613856908263ffffffff61287516565b6000838152600f6020526040902054600c5480821415613b78575050611191565b613b80614f4b565b506000858152600e602090815260408083208584528252918290208251808401909352805483526001015490820152613bb7614f4b565b613bc082614c38565b15613bf957613bd9826000015183602001518888614c41565b60208301819052818352613bed9190614ca3565b60208301528152613c04565b602081018590528581525b6000878152600e6020908152604080832086845282528083208451815593820151600190940193909355978152600f9097529095205550505050565b6060639ae94f0160e01b83836040516024016120cf929190615353565b600082613c6c57506000610eac565b82820282848281613c7957fe5b0414610ea957610ea961098260018686613410565b600081613ca457613ca461098260038585613410565b6000828481613caf57fe5b04949350505050565b6060635caa0b0560e01b83836040516024016120cf929190615363565b60607f0b02d77300000000000000000000000000000000000000000000000000000000826001811115613d0457fe5b6040516024016128ac91906155c5565b613d1c614f4b565b506000828152600e602090815260408083208484528252918290208251808401909352805483526001015490820152613d5481614c38565b15613d5e57610eac565b6000613d7183600163ffffffff61215c16565b6000858152600e60209081526040808320848452825291829020825180840190935280548352600101549082015292509050613dac82614c38565b15613db75750610eac565b6000848152600f602052604090205483811015613e14576000858152600e6020908152604080832084845282529182902082518084019093528054835260010154908201529250613e0783614c38565b15613e145750610eac9050565b50506040805180820190915260008152600160208201529392505050565b600081613e4157506000613eb5565b83613e6157613e5a85613795848963ffffffff613c5d16565b9050613eb5565b6000613e86613e76868863ffffffff613c5d16565b6122a3898763ffffffff613c5d16565b90506000613e9a828663ffffffff613c8e16565b9050613eb087613795868463ffffffff613c5d16565b925050505b95945050505050565b600080831215613ed657613ed6610982600185614ccc565b6000821215613eed57613eed610982600184614ccc565b610ea9613f0a846f80000000000000000000000000000000614d0d565b83614d3f565b6000610ea9613f0a846f80000000000000000000000000000000614d0d565b60006f80000000000000000000000000000000821315613f5757613f57610982600184614dc0565b60008213613f6d57613f6d610982600084614dc0565b6f80000000000000000000000000000000821415613f8d57506000610bef565b640733048c5a8213613fc057507fffffffffffffffffffffffffffffffe010000000000000000000000000000000610bef565b60008060006a01c8464f76164760000000851361401f577ffffffffffffffffffffffffffffffff000000000000000000000000000000000909301926a01c8464f761647600000006f8000000000000000000000000000000086020594505b6cf1aaddd7742e90000000000000851361407d577ffffffffffffffffffffffffffffffff800000000000000000000000000000000909301926cf1aaddd7742e900000000000006f8000000000000000000000000000000086020594505b6e0afe10820813d7800000000000000085136140df577ffffffffffffffffffffffffffffffffc00000000000000000000000000000000909301926e0afe10820813d780000000000000006f8000000000000000000000000000000086020594505b6f02582ab704279ec000000000000000008513614143577ffffffffffffffffffffffffffffffffe00000000000000000000000000000000909301926f02582ab704279ec000000000000000006f8000000000000000000000000000000086020594505b6f1152aaa3bf81cc00000000000000000085136141a7577fffffffffffffffffffffffffffffffff00000000000000000000000000000000909301926f1152aaa3bf81cc0000000000000000006f8000000000000000000000000000000086020594505b6f2f16ac6c59de70000000000000000000851361420b577fffffffffffffffffffffffffffffffff80000000000000000000000000000000909301926f2f16ac6c59de700000000000000000006f8000000000000000000000000000000086020594505b6f4da2cbf1be5828000000000000000000851361426f577fffffffffffffffffffffffffffffffffc0000000000000000000000000000000909301926f4da2cbf1be58280000000000000000006f8000000000000000000000000000000086020594505b6f63afbe7ab2082c00000000000000000085136142d3577fffffffffffffffffffffffffffffffffe0000000000000000000000000000000909301926f63afbe7ab2082c0000000000000000006f8000000000000000000000000000000086020594505b6f70f5a893b608861e1f58934f97aea57d8513614337577ffffffffffffffffffffffffffffffffff0000000000000000000000000000000909301926f70f5a893b608861e1f58934f97aea57d6f8000000000000000000000000000000086020594505b7fffffffffffffffffffffffffffffffff80000000000000000000000000000000850192508291506f80000000000000000000000000000000828002059050700100000000000000000000000000000000838103830205840193506f80000000000000000000000000000000818302816143ad57fe5b059150700200000000000000000000000000000000836faaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa038302816143de57fe5b05840193506f80000000000000000000000000000000818302816143fe57fe5b059150700300000000000000000000000000000000836f999999999999999999999999999999990383028161442f57fe5b05840193506f800000000000000000000000000000008183028161444f57fe5b059150700400000000000000000000000000000000836f924924924924924924924924924924920383028161448057fe5b05840193506f80000000000000000000000000000000818302816144a057fe5b059150700500000000000000000000000000000000836f8e38e38e38e38e38e38e38e38e38e38e038302816144d157fe5b05840193506f80000000000000000000000000000000818302816144f157fe5b059150700600000000000000000000000000000000836f8ba2e8ba2e8ba2e8ba2e8ba2e8ba2e8b0383028161452257fe5b05840193506f800000000000000000000000000000008183028161454257fe5b059150700700000000000000000000000000000000836f89d89d89d89d89d89d89d89d89d89d890383028161457357fe5b05840193506f800000000000000000000000000000008183028161459357fe5b059150700800000000000000000000000000000000836f88888888888888888888888888888888038302816145c457fe5b0584019350505050919050565b60006131f1613f0a8585614d0d565b60007fffffffffffffffffffffffffffffffe01000000000000000000000000000000082121561461257506000610bef565b8161462e57506f80000000000000000000000000000000610bef565b600082131561464557614645610982600184614dc0565b6f800000000000000000000000000000006f1000000000000000000000000000000083078080028290056710e1b3be415a0000810293909301929091818302059050806705a0913f6b1e000002830192506f80000000000000000000000000000000828202816146b157fe5b05905080670168244fdac7800002830192506f80000000000000000000000000000000828202816146de57fe5b05905080664807432bc1800002830192506f800000000000000000000000000000008282028161470a57fe5b05905080660c0135dca0400002830192506f800000000000000000000000000000008282028161473657fe5b059050806601b707b1cdc00002830192506f800000000000000000000000000000008282028161476257fe5b059050806536e0f639b80002830192506f800000000000000000000000000000008282028161478d57fe5b05905080650618fee9f80002830192506f80000000000000000000000000000000828202816147b857fe5b05905080649c197dcc0002830192506f80000000000000000000000000000000828202816147e257fe5b05905080640e30dce40002830192506f800000000000000000000000000000008282028161480c57fe5b0590508064012ebd130002830192506f800000000000000000000000000000008282028161483657fe5b059050806317499f0002830192506f800000000000000000000000000000008282028161485f57fe5b059050806301a9d48002830192506f800000000000000000000000000000008282028161488857fe5b05905080621c638002830192506f80000000000000000000000000000000828202816148b057fe5b059050806201c63802830192506f80000000000000000000000000000000828202816148d857fe5b05905080611ab802830192506f80000000000000000000000000000000828202816148ff57fe5b0590508061017c02830192506f800000000000000000000000000000008282028161492657fe5b05905080601402830192506f800000000000000000000000000000008282028161494c57fe5b600095909503946721c3677c82b400009190059384010582016f80000000000000000000000000000000019290507010000000000000000000000000000000008416156149bb577243cbaf42a000812488fc5c220ad7b97bf6e99e6cf1aaddd7742e56d32fb9f9974484020592505b7008000000000000000000000000000000008416156149fd577105d27a9f51c31b7c2f8038212a05747799916e0afe10820813d65dfe6a33c07f738f84020592505b700400000000000000000000000000000000841615614a3f57701b4c902e273a58678d6d3bfdb93db96d026f02582ab704279e8efd15e0265855c47a84020592505b700200000000000000000000000000000000841615614a81577003b1cc971a9bb5b9867477440d6d1577506f1152aaa3bf81cb9fdb76eae12d02957184020592505b700100000000000000000000000000000000841615614ac35770015bf0a8b1457695355fb8ac404e7a79e36f2f16ac6c59de6f8d5d6f63c1482a7c8684020592505b6f80000000000000000000000000000000841615614b03576fd3094c70f034de4b96ff7d5b6f99fcd86f4da2cbf1be5827f9eb3ad1aa9866ebb384020592505b6f40000000000000000000000000000000841615614b43576fa45af1e1f40c333b3de1db4dd55f29a76f63afbe7ab2082ba1a0ae5e4eb1b479dc84020592505b6f20000000000000000000000000000000841615614b83576f910b022db7ae67ce76b441c27035c6a16f70f5a893b608861e1f58934f97aea57d84020592505b6f10000000000000000000000000000000841615614bc3576f88415abbe9a76bead8d00cf112e4d4a86f783eafef1c0a8f3978c7f81824d62ebf84020592505b5050919050565b60006f80000000000000000000000000000000614be78484614d0d565b81614bee57fe5b059392505050565b600080821215614c0e57614c0e610982600184614ccc565b6000614c1a8484614d0d565b905060008113614c2e576000915050610eac565b607f1c9392505050565b60200151151590565b60008085614c53575082905081614c9a565b83614c62575084905083614c9a565b614c85614c75858763ffffffff613c5d16565b613894888663ffffffff613c5d16565b9150614c97858463ffffffff613c5d16565b90505b94509492505050565b600080614cc184846f80000000000000000000000000000000614def565b915091509250929050565b60607fbd79545f00000000000000000000000000000000000000000000000000000000836001811115614cfb57fe5b836040516024016120cf9291906155d3565b600082614d1c57506000610eac565b5081810281838281614d2a57fe5b0514610eac57610eac61098260018585614e5d565b600081614d5557614d5561098260028585614e5d565b7f800000000000000000000000000000000000000000000000000000000000000083148015614da35750817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff145b15614db757614db761098260038585614e5d565b818381614bee57fe5b60607fed2f26a100000000000000000000000000000000000000000000000000000000836001811115614cfb57fe5b60008082851180614dff57508284115b15614e5457600084861015614e145784614e16565b855b9050614e28818563ffffffff613c8e16565b9050614e3a868263ffffffff613c8e16565b9250614e4c858263ffffffff613c8e16565b915050613042565b50929391925050565b60607f8c12dfe700000000000000000000000000000000000000000000000000000000846003811115614e8c57fe5b848460405160240161342f939291906155e6565b6040518060a0016040528060008152602001600081526020016000815260200160008152602001600081525090565b604080516060810182526000808252602082018190529181019190915290565b60405180606001604052806000815260200160008152602001600081525090565b604080518082019091526000808252602082015290565b81548183558181111561119157600083815260209020611191918101908301614f65565b604051806040016040528060008152602001600081525090565b610b5791905b80821115614f7f5760008155600101614f6b565b5090565b803573ffffffffffffffffffffffffffffffffffffffff81168114610eac57600080fd5b600060408284031215612392578081fd5b600060208284031215614fc9578081fd5b610ea98383614f83565b600080600060608486031215614fe7578182fd5b8335614ff28161560b565b925060208401356150028161560b565b929592945050506040919091013590565b60008060408385031215615025578182fd5b61502f8484614f83565b946020939093013593505050565b6000806040838503121561504f578182fd5b6150598484614f83565b915060208301356150698161563b565b809150509250929050565b600060208284031215615085578081fd5b8151610ea98161562d565b6000602082840312156150a1578081fd5b5035919050565b600080604083850312156150ba578182fd5b8235915060208301356150698161560b565b600080604083850312156150de578182fd5b50508035926020909101359150565b600080604083850312156150ff578182fd5b82359150602083013563ffffffff81168114615069578182fd5b60006020828403121561512a578081fd5b8135610ea98161563b565b600080600060a08486031215615149578283fd5b6151538585614fa7565b92506151628560408601614fa7565b9150608084013590509250925092565b600060208284031215615183578081fd5b5051919050565b600080600080600060a086880312156151a1578283fd5b8535945060208601356151b381615648565b93506040860135925060608601356151ca81615648565b915060808601356151da81615648565b809150509295509295909350565b600080604083850312156151fa578182fd5b823561520581615648565b915060208301356150698161562d565b73ffffffffffffffffffffffffffffffffffffffff91909116815260200190565b73ffffffffffffffffffffffffffffffffffffffff92831681529116602082015260400190565b73ffffffffffffffffffffffffffffffffffffffff9384168152919092166020820152604081019190915260600190565b73ffffffffffffffffffffffffffffffffffffffff929092168252602082015260400190565b602080825282518282018190526000918401906040840190835b8181101561530257835173ffffffffffffffffffffffffffffffffffffffff168352602093840193909201916001016152ce565b509095945050505050565b901515815260200190565b90815260200190565b92835273ffffffffffffffffffffffffffffffffffffffff91909116602083015263ffffffff16604082015260600190565b9182521515602082015260400190565b918252602082015260400190565b606081016004851061537f57fe5b938152602081019290925260409091015290565b60408101600384106153a157fe5b9281526020015290565b604081016153b884615601565b92815273ffffffffffffffffffffffffffffffffffffffff9190911660209091015290565b606081016153ea85615601565b938152602081019290925263ffffffff1660409091015290565b60208082526013908201527f43525f494e54455256414c5f494e56414c494400000000000000000000000000604082015260600190565b60208082526014908201527f574554485f5452414e534645525f4641494c4544000000000000000000000000604082015260600190565b81518152602080830151908201526040918201519181019190915260600190565b815173ffffffffffffffffffffffffffffffffffffffff16815260209182015163ffffffff169181019190915260400190565b815167ffffffffffffffff1681526020808301516bffffffffffffffffffffffff90811691830191909152604092830151169181019190915260600190565b9283526020830191909152604082015260600190565b93845260208401929092526040830152606082015260800190565b948552602085019390935260408401919091526060830152608082015260a00190565b94855263ffffffff938416602086015260408501929092528216606084015216608082015260a00190565b92835260ff918216602084015216604082015260600190565b63ffffffff91909116815260200190565b63ffffffff92831681529116602082015260400190565b60ff91909116815260200190565b60ff929092168252602082015260400190565b60ff9390931683526020830191909152604082015260600190565b60028110610e5057fe5b73ffffffffffffffffffffffffffffffffffffffff81168114610e5057600080fd5b8015158114610e5057600080fd5b60028110610e5057600080fd5b63ffffffff81168114610e5057600080fdfea365627a7a72315820405f679c9973463d3088bfe457347d17202e3319adf7067235fc4905ae0f29646c6578706572696d656e74616cf564736f6c634300050c0040" + "object": "0x6080604052600436106103555760003560e01c80639051c3ee116101bb578063bb7ef7e0116100f7578063e8eeb3f811610095578063f18765321161006f578063f187653214610955578063f252b7a114610975578063f2fde38b14610995578063ff691b11146109b557610355565b8063e8eeb3f81461090b578063e907f00314610920578063ee99205c1461094057610355565b8063dcb31f76116100d1578063dcb31f76146108ac578063e0ee036e146108c1578063e1c7392a146108d6578063e804d0a4146108eb57610355565b8063bb7ef7e01461084a578063c18c91411461086a578063d39de6e91461088a57610355565b8063a694fc3a11610164578063b2baa33e1161013e578063b2baa33e146107d5578063b3e33379146107ea578063b510879f1461080a578063b91816111461082a57610355565b8063a694fc3a14610780578063abe0906a146107a0578063b0531524146107c057610355565b8063a26171e211610195578063a26171e214610743578063a3b4a32714610758578063a657e5791461076b57610355565b80639051c3ee146106ee5780639ad26744146107035780639c3ccc821461072357610355565b80634e67339f116102955780636340380111610233578063766718081161020d578063766718081461068257806381666796146106975780638a2e271a146106b95780638da5cb5b146106d957610355565b8063634038011461062d57806368a7d6cd14610642578063707129391461066257610355565b80635bd4ab731161026f5780635bd4ab73146105a55780635d91121d146105d25780635e615a6b146105f2578063624a72321461061857610355565b80634e67339f14610550578063587da0231461057057806358f6c7e31461058557610355565b80633c277fc51161030257806344a6958b116102dc57806344a6958b146104b657806346b97959146104d6578063494503d4146105035780634bcc3f671461052357610355565b80633c277fc5146104475780633e4ad7321461046957806342f1181e1461049657610355565b80632a94c279116103335780632a94c279146103c75780632e17de78146103f657806338229d931461041657610355565b806301e28d841461035a5780630b9663db1461037c5780631e7ff8f6146103a7575b600080fd5b34801561036657600080fd5b5061037a6103753660046151e2565b6109d5565b005b34801561038857600080fd5b50610391610aa3565b60405161039e9190615561565b60405180910390f35b3480156103b357600080fd5b506103916103c23660046151e2565b610bf0565b3480156103d357600080fd5b506103e76103e2366004615315565b610c8a565b60405161039e9392919061574e565b34801561040257600080fd5b5061037a6104113660046152d9565b610cb6565b34801561042257600080fd5b506104366104313660046152d9565b610e6b565b60405161039e95949392919061577f565b34801561045357600080fd5b5061045c610e9a565b60405161039e919061545e565b34801561047557600080fd5b506104896104843660046152d9565b610f43565b60405161039e919061570f565b3480156104a257600080fd5b5061037a6104b13660046151e2565b610f62565b3480156104c257600080fd5b506104896104d1366004615285565b610f76565b3480156104e257600080fd5b506104f66104f13660046152d9565b610fd5565b60405161039e91906156bb565b34801561050f57600080fd5b5061045c61051e3660046152d9565b611020565b34801561052f57600080fd5b5061054361053e3660046152d9565b611054565b60405161039e91906156dc565b34801561055c57600080fd5b5061037a61056b3660046151e2565b6110b6565b34801561057c57600080fd5b506103916110fd565b34801561059157600080fd5b5061037a6105a036600461537e565b611103565b3480156105b157600080fd5b506105c56105c03660046151e2565b611300565b60405161039e9190615556565b3480156105de57600080fd5b5061037a6105ed366004615336565b611315565b3480156105fe57600080fd5b506106076113de565b60405161039e9594939291906157a2565b34801561062457600080fd5b5061045c611407565b34801561063957600080fd5b50610391611472565b34801561064e57600080fd5b5061039161065d366004615431565b611478565b34801561066e57600080fd5b5061037a61067d3660046151e2565b6115b1565b34801561068e57600080fd5b50610391611666565b3480156106a357600080fd5b506106ac61166c565b60405161039e91906157e6565b3480156106c557600080fd5b5061037a6106d43660046151e2565b611678565b3480156106e557600080fd5b5061045c61173a565b3480156106fa57600080fd5b5061045c611756565b34801561070f57600080fd5b5061037a61071e36600461525a565b611772565b34801561072f57600080fd5b5061037a61073e3660046153d3565b611784565b34801561074f57600080fd5b506103916117fe565b61037a61076636600461521a565b611804565b34801561077757600080fd5b50610391611a54565b34801561078c57600080fd5b5061037a61079b3660046152d9565b611a5a565b3480156107ac57600080fd5b5061037a6107bb3660046151e2565b611b6f565b3480156107cc57600080fd5b50610391611bb6565b3480156107e157600080fd5b50610391611bbc565b3480156107f657600080fd5b5061037a6108053660046152d9565b611bda565b34801561081657600080fd5b5061037a6108253660046152d9565b611c1a565b34801561083657600080fd5b506105c56108453660046151e2565b611c24565b34801561085657600080fd5b506103916108653660046152d9565b611c39565b34801561087657600080fd5b506103916108853660046152d9565b611cc4565b34801561089657600080fd5b5061089f611cd6565b60405161039e91906154fd565b3480156108b857600080fd5b5061045c611d45565b3480156108cd57600080fd5b506106ac611d61565b3480156108e257600080fd5b5061037a611d6d565b3480156108f757600080fd5b50610489610906366004615362565b611d87565b34801561091757600080fd5b506106ac611ed7565b34801561092c57600080fd5b5061039161093b3660046152f1565b611eeb565b34801561094c57600080fd5b5061045c611f88565b34801561096157600080fd5b506103916109703660046151e2565b611fa4565b34801561098157600080fd5b5061048961099036600461525a565b611fb6565b3480156109a157600080fd5b5061037a6109b03660046151e2565b611ff7565b3480156109c157600080fd5b5061037a6109d03660046152d9565b61209a565b6109dd6122c7565b73ffffffffffffffffffffffffffffffffffffffff811660009081526010602052604090205460ff16610a1d57610a1d610a186001836122ea565b61238c565b73ffffffffffffffffffffffffffffffffffffffff81166000908152601060205260409081902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00169055517ff50d0d312d501878616eb5e78ebf3ed6dcd3955aaef8165af9c6b057cc4832fb90610a9890839061545e565b60405180910390a150565b600c5460009081610abb82600163ffffffff61239416565b6000818152601660205260409020600101549091508015610ae357610ae3610a1883836123b3565b610aeb6123d0565b610af3612443565b600084815260166020526040902055610b0a6150ee565b50600083815260166020908152604091829020825160a08101845281548082526001830154938201849052600283015482860181905260038401546060840181905260049094015460808401529451919488947fbb4a26fa0ace13ee4da343896c20eaa44a618fb9071fdd8c2e2c960a4583189d94610b8c9491939291615764565b60405180910390a2610b9c6124e7565b6020810151610be357805160405185917fb463d19ecf455be65365092cf8e1db6934a0334cf8cd532ddf9964d01f36b5b291610bda916000916155ac565b60405180910390a25b6020015193505050505b90565b6000610bfa611407565b73ffffffffffffffffffffffffffffffffffffffff166370a08231836040518263ffffffff1660e01b8152600401610c32919061545e565b60206040518083038186803b158015610c4a57600080fd5b505afa158015610c5e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250610c8291908101906153bb565b90505b919050565b601560209081526000928352604080842090915290825290208054600182015460029092015490919083565b33610cbf61511d565b73ffffffffffffffffffffffffffffffffffffffff821660009081527f05b8ccbb9d4d8fb16ea74ce3c29a41f1b461fbdaff4714a0d9a8eb05499746bc60205260409020610d0c9061252a565b90506000610d3e82602001516bffffffffffffffffffffffff1683604001516bffffffffffffffffffffffff166125d0565b905080841115610d5557610d55610a1885836125e6565b73ffffffffffffffffffffffffffffffffffffffff831660009081527f05b8ccbb9d4d8fb16ea74ce3c29a41f1b461fbdaff4714a0d9a8eb05499746bc60205260409020610da39085612603565b610dab611407565b73ffffffffffffffffffffffffffffffffffffffff16639470b0bd84866040518363ffffffff1660e01b8152600401610de59291906154d7565b600060405180830381600087803b158015610dff57600080fd5b505af1158015610e13573d6000803e3d6000fd5b505050508273ffffffffffffffffffffffffffffffffffffffff167f85082129d87b2fe11527cb1b3b7a520aeb5aa6913f88a3d8757fe40d1db02fdd85604051610e5d9190615561565b60405180910390a250505050565b601660205260009081526040902080546001820154600283015460038401546004909401549293919290919085565b600080600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663dcb31f766040518163ffffffff1660e01b815260040160206040518083038186803b158015610f0557600080fd5b505afa158015610f19573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250610f3d91908101906151fe565b91505090565b610f4b61511d565b6000828152600760205260409020610c829061252a565b610f6a61268a565b610f73816126d1565b50565b610f7e61511d565b610fcc60056000846001811115610f9157fe5b60ff1681526020808201929092526040908101600090812073ffffffffffffffffffffffffffffffffffffffff88168252909252902061252a565b90505b92915050565b610fdd61513d565b506000908152601560209081526040808320600c548452825291829020825160608101845281548152600182015492810192909252600201549181019190915290565b6002818154811061102d57fe5b60009182526020909120015473ffffffffffffffffffffffffffffffffffffffff16905081565b61105c61515e565b506000908152600a602090815260409182902082518084019093525473ffffffffffffffffffffffffffffffffffffffff8116835274010000000000000000000000000000000000000000900463ffffffff169082015290565b601980547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff92909216919091179055565b600d5481565b338161110f57506112fb565b600061111e6020860186615362565b600181111561112957fe5b14801561114d575060006111406020850185615362565b600181111561114b57fe5b145b1561115857506112fb565b60016111676020860186615362565b600181111561117257fe5b14156111875761118784602001358284612802565b60016111966020850185615362565b60018111156111a157fe5b14156111b6576111b68360200135828461289b565b60006005816111c86020880188615362565b60018111156111d357fe5b60ff1681526020808201929092526040908101600090812073ffffffffffffffffffffffffffffffffffffffff861682528352908120925090600590829061121d90880188615362565b600181111561122857fe5b60ff1681526020808201929092526040908101600090812073ffffffffffffffffffffffffffffffffffffffff871682529092529020905061126b828286612934565b60208086013590870180359073ffffffffffffffffffffffffffffffffffffffff8616907f7d3ad1dcf03b9027064d1d9a474a69e0cecc31324c541d3eb9b5e6fa2f106c8d9088906112bd908c615362565b60018111156112c857fe5b6112d560208c018c615362565b60018111156112e057fe5b6040516112ef939291906157cd565b60405180910390a45050505b505050565b60106020526000908152604090205460ff1681565b8161131f81612a2d565b6000838152600a602052604090205474010000000000000000000000000000000000000000900463ffffffff16611357848285612a66565b6000848152600a60205260409081902080547fffffffffffffffff00000000ffffffffffffffffffffffffffffffffffffffff167401000000000000000000000000000000000000000063ffffffff8716021790555184907f8ea2a7a959bd25f226b7b0a4393613f7fdcaa8404e8bad96aa52dc1c1459016790610e5d90849087906157f7565b601154601254601354601454929363ffffffff9283169391928281169264010000000090041690565b600080600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16639051c3ee6040518163ffffffff1660e01b815260040160206040518083038186803b158015610f0557600080fd5b60115481565b600854600090339061149190600163ffffffff612aad16565b600881905591506114a682620f424086612a66565b6114ae61515e565b5060408051808201825273ffffffffffffffffffffffffffffffffffffffff838116825263ffffffff87811660208085019182526000888152600a9091528590208451815492517fffffffffffffffffffffffff00000000000000000000000000000000000000009093169416939093177fffffffffffffffff00000000ffffffffffffffffffffffffffffffffffffffff1674010000000000000000000000000000000000000000919092160217905590517fcec6fc86ea644053f6edff1160dfe3fa5c61e7a5ef9f873f145bb03a0bd319e7906115929085908590899061556a565b60405180910390a183156115a9576115a983611bda565b505092915050565b6115b961268a565b73ffffffffffffffffffffffffffffffffffffffff811660009081526001602052604090205460ff166115f2576115f2610a1882612ac9565b60005b600254811015611662578173ffffffffffffffffffffffffffffffffffffffff166002828154811061162357fe5b60009182526020909120015473ffffffffffffffffffffffffffffffffffffffff16141561165a576116558282612b68565b611662565b6001016115f5565b5050565b600c5481565b60145463ffffffff1681565b6116806122c7565b73ffffffffffffffffffffffffffffffffffffffff811660009081526010602052604090205460ff16156116bc576116bc610a186000836122ea565b73ffffffffffffffffffffffffffffffffffffffff81166000908152601060205260409081902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00166001179055517f3e535d1ab441ef41c268fd9b52b478aee02d693c5ca2a84b5d26b89e0922e5e190610a9890839061545e565b60005473ffffffffffffffffffffffffffffffffffffffff1681565b60195473ffffffffffffffffffffffffffffffffffffffff1681565b61177a61268a565b6116628282612b68565b61178c6122c7565b6117998585858585612db7565b3073ffffffffffffffffffffffffffffffffffffffff1663c6f3a4276040518163ffffffff1660e01b815260040160006040518083038186803b1580156117df57600080fd5b505afa1580156117f3573d6000803e3d6000fd5b505050505050505050565b60135481565b3360009081526010602052604090205460ff1661182757611827610a1833612e7a565b61183081612e95565b3461190a5761183d610e9a565b73ffffffffffffffffffffffffffffffffffffffff166323b872dd8330846040518463ffffffff1660e01b8152600401611879939291906154a6565b602060405180830381600087803b15801561189357600080fd5b505af11580156118a7573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052506118cb91908101906152bd565b61190a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161190190615684565b60405180910390fd5b73ffffffffffffffffffffffffffffffffffffffff83166000908152600960205260409020548061193b57506112fb565b600061194682610f43565b602001516bffffffffffffffffffffffff16905060135481101561196b5750506112fb565b600c54600083815260156020908152604080832084845282528083206016909252909120815480611a1a576000806119a38888612eb6565b6002870182905560018701819055600386015491935091506119cb908263ffffffff612aad16565b60038501556001808501546119e59163ffffffff612aad16565b6001850155604051889087907f14b098103235344975b17508c2391721cc9ac3f3fa2b56c7ff46f8480dfd074f90600090a350505b611a2a818863ffffffff612aad16565b83556002820154611a41908863ffffffff612aad16565b8260020181905550505050505050505050565b60085481565b33611a63611407565b73ffffffffffffffffffffffffffffffffffffffff166315cc36f282846040518363ffffffff1660e01b8152600401611a9d9291906154d7565b600060405180830381600087803b158015611ab757600080fd5b505af1158015611acb573d6000803e3d6000fd5b5050505073ffffffffffffffffffffffffffffffffffffffff811660009081527f05b8ccbb9d4d8fb16ea74ce3c29a41f1b461fbdaff4714a0d9a8eb05499746bc60205260409020611b1d9083612f42565b8073ffffffffffffffffffffffffffffffffffffffff167febedb8b3c678666e7f36970bc8f57abf6d8fa2e828c0da91ea5b75bf68ed101a83604051611b639190615561565b60405180910390a25050565b601880547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff92909216919091179055565b60175481565b6000611bd5601154600d54612aad90919063ffffffff16565b905090565b3360008181526009602052604080822084905551839183917f5640833634fce74eb9211d1209a91dd5a1c8c6a751696bff9323b4db67f815139190a35050565b610f738133612fac565b60016020526000908152604090205460ff1681565b6000611c4361515e565b506000828152600a6020908152604080832081518083019092525473ffffffffffffffffffffffffffffffffffffffff8116825274010000000000000000000000000000000000000000900463ffffffff16918101919091529080611ca785613184565b91509150611cba83602001518383613241565b5095945050505050565b600b6020526000908152604090205481565b60606002805480602002602001604051908101604052809291908181526020018280548015611d3b57602002820191906000526020600020905b815473ffffffffffffffffffffffffffffffffffffffff168152600190910190602001808311611d10575b5050505050905090565b60185473ffffffffffffffffffffffffffffffffffffffff1681565b60125463ffffffff1681565b611d756122c7565b611d7d613282565b611d85613295565b565b611d8f61511d565b60016000526004602052611dc27fabd6e7cb50984ff9c2f3e18a2660c3353dadf4e3291deeb275dae2cd1e44fe0561252a565b90506000826001811115611dd257fe5b1415610c85576000611de2611407565b73ffffffffffffffffffffffffffffffffffffffff16639706e0c06040518163ffffffff1660e01b815260040160206040518083038186803b158015611e2757600080fd5b505afa158015611e3b573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250611e5f91908101906153bb565b9050611e8e611e8983602001516bffffffffffffffffffffffff168361239490919063ffffffff16565b6132c0565b6bffffffffffffffffffffffff90811660208401526040830151611ebe91611e899184911663ffffffff61239416565b6bffffffffffffffffffffffff16604083015250919050565b601454640100000000900463ffffffff1681565b6000611ef561515e565b506000838152600a6020908152604080832081518083019092525473ffffffffffffffffffffffffffffffffffffffff8116825274010000000000000000000000000000000000000000900463ffffffff16918101919091529080611f5986613184565b915091506000611f6e84602001518484613241565b915050611f7d878783856132e4565b979650505050505050565b60035473ffffffffffffffffffffffffffffffffffffffff1681565b60096020526000908152604090205481565b611fbe61511d565b73ffffffffffffffffffffffffffffffffffffffff831660009081526006602090815260408083208584529091529020610fcc9061252a565b611fff61268a565b73ffffffffffffffffffffffffffffffffffffffff811661202a57612025610a18613431565b610f73565b600080547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff83169081178255604051909133917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a350565b600c5460006120b082600163ffffffff61239416565b90506120ba6150ee565b50600081815260166020908152604091829020825160a0810184528154815260018201549281018390526002820154938101939093526003810154606084015260040154608083015261210f57505050610f73565b61211761513d565b50600084815260156020908152604080832085845282529182902082516060810184528154808252600183015493820193909352600290910154928101929092526121655750505050610f73565b60008581526015602090815260408083208684529091528120818155600181018290556002018190556121988284613468565b90506000806121ac888486604001516134dd565b9150915087877ff1116b309178aa62dcb6bf8c3b8bc2321724907c7ebf52192d14c8ce3aa9194c84846040516121e39291906155ac565b60405180910390a360006121fd838363ffffffff612aad16565b6080870151909150612215908263ffffffff612aad16565b6080870181905260008881526016602090815260409091206004019190915586015161224890600163ffffffff61239416565b602080880182815260008a81526016909252604090912060010191909155516117f3576080860151865188917fb463d19ecf455be65365092cf8e1db6934a0334cf8cd532ddf9964d01f36b5b2916122a6908263ffffffff61239416565b6040516122b49291906155ac565b60405180910390a2505050505050505050565b3360009081526001602052604090205460ff16611d8557611d85610a183361362d565b606063b9588e4360e01b83836040516024016123079291906155f4565b604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe08184030181529190526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fffffffff0000000000000000000000000000000000000000000000000000000090931692909217909152905092915050565b805160208201fd5b6000828211156123ad576123ad610a1860028585613648565b50900390565b606063614b800a60e01b83836040516024016123079291906155ac565b30318015610f73576123e0610e9a565b73ffffffffffffffffffffffffffffffffffffffff1663d0e30db0826040518263ffffffff1660e01b81526004016000604051808303818588803b15801561242757600080fd5b505af115801561243b573d6000803e3d6000fd5b505050505050565b6000611bd5601754612453610e9a565b73ffffffffffffffffffffffffffffffffffffffff166370a08231306040518263ffffffff1660e01b815260040161248b919061545e565b60206040518083038186803b1580156124a357600080fd5b505afa1580156124b7573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052506124db91908101906153bb565b9063ffffffff61239416565b4260006124f2611bbc565b90508181111561250957612509610a1882846136ed565b600c5460009061252090600163ffffffff612aad16565b600c555050600d55565b61253261511d565b5060408051606081018252825467ffffffffffffffff81168083526bffffffffffffffffffffffff680100000000000000008304811660208501527401000000000000000000000000000000000000000090920490911692820192909252600c5490918111156125ca576125a58161370a565b67ffffffffffffffff16825260408201516bffffffffffffffffffffffff1660208301525b50919050565b60008183106125df5781610fcc565b5090919050565b60606384c8b7c960e01b83836040516024016123079291906155ac565b61260b61511d565b6126148361252a565b905061263e611e898383604001516bffffffffffffffffffffffff1661239490919063ffffffff16565b6bffffffffffffffffffffffff9081166040830152602082015161266d91611e8991168463ffffffff61239416565b6bffffffffffffffffffffffff1660208201526112fb838261372a565b60005473ffffffffffffffffffffffffffffffffffffffff163314611d8557600054611d8590610a1890339073ffffffffffffffffffffffffffffffffffffffff166137e4565b73ffffffffffffffffffffffffffffffffffffffff81166126f7576126f7610a18613801565b73ffffffffffffffffffffffffffffffffffffffff811660009081526001602052604090205460ff161561273157612731610a1882613838565b73ffffffffffffffffffffffffffffffffffffffff8116600081815260016020819052604080832080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00168317905560028054928301815583527f405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5ace90910180547fffffffffffffffffffffffff00000000000000000000000000000000000000001684179055513392917f3147867c59d17e8fa9d522465651d44aae0a9e38f902f3475b97e58072f0ed4c91a350565b61280b83613853565b6128158383612fac565b73ffffffffffffffffffffffffffffffffffffffff82166000908152600660209081526040808320868452909152902061284f908261388a565b6000838152600760205260409020612867908261388a565b600160005260046020526112fb7fabd6e7cb50984ff9c2f3e18a2660c3353dadf4e3291deeb275dae2cd1e44fe058261388a565b6128a483613853565b6128ae8383612fac565b73ffffffffffffffffffffffffffffffffffffffff8216600090815260066020908152604080832086845290915290206128e890826138e2565b600083815260076020526040902061290090826138e2565b600160005260046020526112fb7fabd6e7cb50984ff9c2f3e18a2660c3353dadf4e3291deeb275dae2cd1e44fe05826138e2565b61293e838361391d565b15612948576112fb565b61295061511d565b6129598461252a565b905061296361511d565b61296c8461252a565b905081604001516bffffffffffffffffffffffff168311156129a7576129a7610a188484604001516bffffffffffffffffffffffff166125e6565b60408201516129ce90611e89906bffffffffffffffffffffffff168563ffffffff61239416565b6bffffffffffffffffffffffff9081166040808501919091528201516129ff91611e8991168563ffffffff612aad16565b6bffffffffffffffffffffffff166040820152612a1c858361372a565b612a26848261372a565b5050505050565b6000818152600a602052604090205473ffffffffffffffffffffffffffffffffffffffff1633811461166257611662610a183384613924565b620f424063ffffffff82161115612a8b57612a86610a1860008584613941565b6112fb565b8163ffffffff168163ffffffff16106112fb576112fb610a1860018584613941565b600082820183811015610fcc57610fcc610a1860008686613648565b606063eb5108a260e01b82604051602401612ae4919061545e565b604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe08184030181529190526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fffffffff00000000000000000000000000000000000000000000000000000000909316929092179091529050919050565b73ffffffffffffffffffffffffffffffffffffffff821660009081526001602052604090205460ff16612ba157612ba1610a1883612ac9565b6002548110612bbc57612bbc610a1882600280549050613960565b8173ffffffffffffffffffffffffffffffffffffffff1660028281548110612be057fe5b60009182526020909120015473ffffffffffffffffffffffffffffffffffffffff1614612c4257612c42610a1860028381548110612c1a57fe5b60009182526020909120015473ffffffffffffffffffffffffffffffffffffffff168461397d565b73ffffffffffffffffffffffffffffffffffffffff8216600090815260016020526040902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00169055600280547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8101908110612cbd57fe5b6000918252602090912001546002805473ffffffffffffffffffffffffffffffffffffffff9092169183908110612cf057fe5b600091825260209091200180547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff92909216919091179055600280547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0190612d6f9082615175565b50604051339073ffffffffffffffffffffffffffffffffffffffff8416907f1f32c1b084e2de0713b8fb16bd46bb9df710a3dbeae2f3ca93af46e016dcc6b090600090a35050565b60118590556012805463ffffffff8087167fffffffffffffffffffffffffffffffffffffffffffffffffffffffff0000000092831617909255601385905560148054848416640100000000027fffffffffffffffffffffffffffffffffffffffffffffffff00000000ffffffff9487169190931617929092161790556040517f613157dbb0e920deab8ad6ddd3805e87cbf57344b9fe780f1764790ec789754290612e6b90879087908790879087906157a2565b60405180910390a15050505050565b606063b56d2df060e01b82604051602401612ae4919061545e565b803414158015612ea457503415155b15610f7357610f73610a18823461399a565b6000828152600a602052604081205481908190612ee99073ffffffffffffffffffffffffffffffffffffffff1686611fb6565b602001516bffffffffffffffffffffffff169050612f0d848263ffffffff61239416565b601254909350612f3890612f2b9063ffffffff16620f4240866139b7565b829063ffffffff612aad16565b9150509250929050565b612f4a61511d565b612f538361252a565b9050612f7d611e898383604001516bffffffffffffffffffffffff16612aad90919063ffffffff16565b6bffffffffffffffffffffffff9081166040830152602082015161266d91611e8991168463ffffffff612aad16565b612fb5826139d9565b6000612fc483836000806132e4565b73ffffffffffffffffffffffffffffffffffffffff8316600090815260066020908152604080832087845290915290209091506130009061252a565b73ffffffffffffffffffffffffffffffffffffffff8381166000908152600660209081526040808320888452825291829020845181549286015195909301517fffffffffffffffffffffffffffffffffffffffffffffffff000000000000000090921667ffffffffffffffff909316929092177fffffffffffffffffffffffff000000000000000000000000ffffffffffffffff16680100000000000000006bffffffffffffffffffffffff9586160217909216740100000000000000000000000000000000000000009390921692909202179055801561317b576130e58382613a4d565b6130ed610e9a565b73ffffffffffffffffffffffffffffffffffffffff1663a9059cbb83836040518363ffffffff1660e01b81526004016131279291906154d7565b602060405180830381600087803b15801561314157600080fd5b505af1158015613155573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525061317991908101906152bd565b505b6112fb83613a95565b600080600061319f6001600c5461239490919063ffffffff16565b90506131a961513d565b50600084815260156020908152604080832084845282528083208151606080820184528254825260018084015483870152600293840154838601528787526016865295849020845160a0810186528154815296810154958701959095529184015492850192909252600383015490840152600490910154608083015290613231908290613468565b9350806040015192505050915091565b600080826132515783915061327a565b61326563ffffffff8616620f424086613aa2565b9150613277848363ffffffff61239416565b90505b935093915050565b61328a613ad8565b42600d556001600c55565b61329d613aed565b620d2f00620dbba068056bc75e2d6310000060026003612a268585858585612db7565b806bffffffffffffffffffffffff81168114610c8557610c85610a18600284613b52565b600c546000906132f261511d565b5073ffffffffffffffffffffffffffffffffffffffff851660009081526006602090815260408083208984528252918290208251606081018452905467ffffffffffffffff81168083526bffffffffffffffffffffffff680100000000000000008304811694840194909452740100000000000000000000000000000000000000009091049092169281019290925282141561339357600092505050613429565b61339f81838787613b6f565b81519093506000906133c29067ffffffffffffffff16600163ffffffff612aad16565b90506134006133f38984602001516bffffffffffffffffffffffff16856000015167ffffffffffffffff1685613bf2565b859063ffffffff612aad16565b93506134236133f38984604001516bffffffffffffffffffffffff168487613bf2565b93505050505b949350505050565b60408051808201909152600481527fe69edc3e00000000000000000000000000000000000000000000000000000000602082015290565b815160009061347657610fcf565b815183516040840151602086015160608601516014546134ac95949392919063ffffffff80821691640100000000900416613c8b565b608083015183519192506000916134c89163ffffffff61239416565b9050818110156134d6578091505b5092915050565b6000806134e861515e565b506000858152600a602090815260409182902082518084019093525473ffffffffffffffffffffffffffffffffffffffff8116835274010000000000000000000000000000000000000000900463ffffffff1690820181905261354c908686613241565b909350915082156136095761355f610e9a565b81516040517fa9059cbb00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff929092169163a9059cbb916135b59187906004016154d7565b602060405180830381600087803b1580156135cf57600080fd5b505af11580156135e3573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525061360791908101906152bd565b505b8115613624576136198683613d4e565b613624868386613d8f565b50935093915050565b606063b65a25b960e01b82604051602401612ae4919061545e565b606063e946c1bb60e01b848484604051602401613667939291906155ba565b604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe08184030181529190526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fffffffff000000000000000000000000000000000000000000000000000000009093169290921790915290509392505050565b606063a6bcde4760e01b83836040516024016123079291906155ac565b8067ffffffffffffffff81168114610c8557610c85610a18600184613b52565b8051825460408301516020909301516bffffffffffffffffffffffff90811668010000000000000000027fffffffffffffffffffffffff000000000000000000000000ffffffffffffffff91909416740100000000000000000000000000000000000000000273ffffffffffffffffffffffffffffffffffffffff67ffffffffffffffff9094167fffffffffffffffffffffffffffffffffffffffffffffffff000000000000000090931692909217929092161716179055565b6060631de45ad160e01b838360405160240161230792919061547f565b60408051808201909152600481527f57654fe400000000000000000000000000000000000000000000000000000000602082015290565b606063de16f1a060e01b82604051602401612ae4919061545e565b6000818152600a602052604090205473ffffffffffffffffffffffffffffffffffffffff16610f7357610f73610a18826000613e78565b61389261511d565b61389b8361252a565b90506138c5611e898383604001516bffffffffffffffffffffffff1661239490919063ffffffff16565b6bffffffffffffffffffffffff1660408201526112fb838261372a565b6138ea61511d565b6138f38361252a565b90506138c5611e898383604001516bffffffffffffffffffffffff16612aad90919063ffffffff16565b1460011690565b60606382ded78560e01b83836040516024016123079291906154d7565b60606322df959760e01b84848460405160240161366793929190615626565b606063e9f8377160e01b83836040516024016123079291906155ac565b606063140a84db60e01b838360405160240161230792919061547f565b60606331d7a50560e01b83836040516024016123079291906155ac565b6000613429836139cd868563ffffffff613e9516565b9063ffffffff613ec616565b600c546000906139f090600163ffffffff61239416565b90506139fa61513d565b5060008281526015602090815260408083208484528252918290208251606081018452815480825260018301549382019390935260029091015492810192909252156112fb576112fb610a188484613ef0565b6000828152600b6020526040902054613a6c908263ffffffff61239416565b6000838152600b6020526040902055601754613a8e908263ffffffff61239416565b6017555050565b610f738160006001613d8f565b6000613429836139cd613abc82600163ffffffff61239416565b613acc888763ffffffff613e9516565b9063ffffffff612aad16565b600d5415611d8557611d85610a186000613f0d565b60115415801590613b05575060125463ffffffff1615155b8015613b12575060135415155b8015613b25575060145463ffffffff1615155b8015613b405750601454640100000000900463ffffffff1615155b15611d8557611d85610a186001613f0d565b606063c996af7b60e01b83836040516024016123079291906155dc565b6000821580613b7c575081155b15613b8957506000613429565b6000613b9c85600163ffffffff61239416565b865167ffffffffffffffff161015613bb8578560400151613bbe565b85602001515b6bffffffffffffffffffffffff16905080613bdd576000915050613429565b613be88484836139b7565b9695505050505050565b6000831580613c0057508183145b15613c0d57506000613429565b818310613c46576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016119019061564d565b613c4e615199565b613c588685613f4c565b9050613c62615199565b613c6c8785613f4c565b9050611f7d81600001518260200151846000015185602001518a61406a565b600080613c9888886140f6565b90506000613ca687876140f6565b9050811580613cb3575080155b15613cc4575060009150611f7d9050565b600081831315613cdd57613cd88284614148565b613ce7565b613ce78383614148565b9050613d10613d0b613cf883614167565b8863ffffffff168863ffffffff16614809565b614818565b905081831315613d2957613d248282614148565b613d33565b613d338282614e02565b9050613d3f818c614e2e565b9b9a5050505050505050505050565b6000828152600b6020526040902054613d6d908263ffffffff612aad16565b6000838152600b6020526040902055601754613a8e908263ffffffff612aad16565b6000838152600f6020526040902054600c5480821415613db05750506112fb565b613db8615199565b506000858152600e602090815260408083208584528252918290208251808401909352805483526001015490820152613def615199565b613df882614e70565b15613e3157613e11826000015183602001518888614e79565b60208301819052818352613e259190614edb565b60208301528152613e3c565b602081018590528581525b6000878152600e6020908152604080832086845282528083208451815593820151600190940193909355978152600f9097529095205550505050565b6060639ae94f0160e01b838360405160240161230792919061559c565b600082613ea457506000610fcf565b82820282848281613eb157fe5b0414610fcc57610fcc610a1860018686613648565b600081613edc57613edc610a1860038585613648565b6000828481613ee757fe5b04949350505050565b6060635caa0b0560e01b83836040516024016123079291906155ac565b60607f0b02d77300000000000000000000000000000000000000000000000000000000826001811115613f3c57fe5b604051602401612ae4919061580e565b613f54615199565b506000828152600e602090815260408083208484528252918290208251808401909352805483526001015490820152613f8c81614e70565b15613f9657610fcf565b6000613fa983600163ffffffff61239416565b6000858152600e60209081526040808320848452825291829020825180840190935280548352600101549082015292509050613fe482614e70565b15613fef5750610fcf565b6000848152600f60205260409020548381101561404c576000858152600e602090815260408083208484528252918290208251808401909352805483526001015490820152925061403f83614e70565b1561404c5750610fcf9050565b50506040805180820190915260008152600160208201529392505050565b600081614079575060006140ed565b8361409957614092856139cd848963ffffffff613e9516565b90506140ed565b60006140be6140ae868863ffffffff613e9516565b6124db898763ffffffff613e9516565b905060006140d2828663ffffffff613ec616565b90506140e8876139cd868463ffffffff613e9516565b925050505b95945050505050565b60008083121561410e5761410e610a18600185614f04565b600082121561412557614125610a18600184614f04565b610fcc614142846f80000000000000000000000000000000614f45565b83614f8d565b6000610fcc614142846f80000000000000000000000000000000614f45565b60006f8000000000000000000000000000000082131561418f5761418f610a1860018461500e565b600082136141a5576141a5610a1860008461500e565b6f800000000000000000000000000000008214156141c557506000610c85565b640733048c5a82136141f857507fffffffffffffffffffffffffffffffe010000000000000000000000000000000610c85565b60008060006a01c8464f761647600000008513614257577ffffffffffffffffffffffffffffffff000000000000000000000000000000000909301926a01c8464f761647600000006f8000000000000000000000000000000086020594505b6cf1aaddd7742e9000000000000085136142b5577ffffffffffffffffffffffffffffffff800000000000000000000000000000000909301926cf1aaddd7742e900000000000006f8000000000000000000000000000000086020594505b6e0afe10820813d780000000000000008513614317577ffffffffffffffffffffffffffffffffc00000000000000000000000000000000909301926e0afe10820813d780000000000000006f8000000000000000000000000000000086020594505b6f02582ab704279ec00000000000000000851361437b577ffffffffffffffffffffffffffffffffe00000000000000000000000000000000909301926f02582ab704279ec000000000000000006f8000000000000000000000000000000086020594505b6f1152aaa3bf81cc00000000000000000085136143df577fffffffffffffffffffffffffffffffff00000000000000000000000000000000909301926f1152aaa3bf81cc0000000000000000006f8000000000000000000000000000000086020594505b6f2f16ac6c59de700000000000000000008513614443577fffffffffffffffffffffffffffffffff80000000000000000000000000000000909301926f2f16ac6c59de700000000000000000006f8000000000000000000000000000000086020594505b6f4da2cbf1be582800000000000000000085136144a7577fffffffffffffffffffffffffffffffffc0000000000000000000000000000000909301926f4da2cbf1be58280000000000000000006f8000000000000000000000000000000086020594505b6f63afbe7ab2082c000000000000000000851361450b577fffffffffffffffffffffffffffffffffe0000000000000000000000000000000909301926f63afbe7ab2082c0000000000000000006f8000000000000000000000000000000086020594505b6f70f5a893b608861e1f58934f97aea57d851361456f577ffffffffffffffffffffffffffffffffff0000000000000000000000000000000909301926f70f5a893b608861e1f58934f97aea57d6f8000000000000000000000000000000086020594505b7fffffffffffffffffffffffffffffffff80000000000000000000000000000000850192508291506f80000000000000000000000000000000828002059050700100000000000000000000000000000000838103830205840193506f80000000000000000000000000000000818302816145e557fe5b059150700200000000000000000000000000000000836faaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa0383028161461657fe5b05840193506f800000000000000000000000000000008183028161463657fe5b059150700300000000000000000000000000000000836f999999999999999999999999999999990383028161466757fe5b05840193506f800000000000000000000000000000008183028161468757fe5b059150700400000000000000000000000000000000836f92492492492492492492492492492492038302816146b857fe5b05840193506f80000000000000000000000000000000818302816146d857fe5b059150700500000000000000000000000000000000836f8e38e38e38e38e38e38e38e38e38e38e0383028161470957fe5b05840193506f800000000000000000000000000000008183028161472957fe5b059150700600000000000000000000000000000000836f8ba2e8ba2e8ba2e8ba2e8ba2e8ba2e8b0383028161475a57fe5b05840193506f800000000000000000000000000000008183028161477a57fe5b059150700700000000000000000000000000000000836f89d89d89d89d89d89d89d89d89d89d89038302816147ab57fe5b05840193506f80000000000000000000000000000000818302816147cb57fe5b059150700800000000000000000000000000000000836f88888888888888888888888888888888038302816147fc57fe5b0584019350505050919050565b60006134296141428585614f45565b60007fffffffffffffffffffffffffffffffe01000000000000000000000000000000082121561484a57506000610c85565b8161486657506f80000000000000000000000000000000610c85565b600082131561487d5761487d610a1860018461500e565b6f800000000000000000000000000000006f1000000000000000000000000000000083078080028290056710e1b3be415a0000810293909301929091818302059050806705a0913f6b1e000002830192506f80000000000000000000000000000000828202816148e957fe5b05905080670168244fdac7800002830192506f800000000000000000000000000000008282028161491657fe5b05905080664807432bc1800002830192506f800000000000000000000000000000008282028161494257fe5b05905080660c0135dca0400002830192506f800000000000000000000000000000008282028161496e57fe5b059050806601b707b1cdc00002830192506f800000000000000000000000000000008282028161499a57fe5b059050806536e0f639b80002830192506f80000000000000000000000000000000828202816149c557fe5b05905080650618fee9f80002830192506f80000000000000000000000000000000828202816149f057fe5b05905080649c197dcc0002830192506f8000000000000000000000000000000082820281614a1a57fe5b05905080640e30dce40002830192506f8000000000000000000000000000000082820281614a4457fe5b0590508064012ebd130002830192506f8000000000000000000000000000000082820281614a6e57fe5b059050806317499f0002830192506f8000000000000000000000000000000082820281614a9757fe5b059050806301a9d48002830192506f8000000000000000000000000000000082820281614ac057fe5b05905080621c638002830192506f8000000000000000000000000000000082820281614ae857fe5b059050806201c63802830192506f8000000000000000000000000000000082820281614b1057fe5b05905080611ab802830192506f8000000000000000000000000000000082820281614b3757fe5b0590508061017c02830192506f8000000000000000000000000000000082820281614b5e57fe5b05905080601402830192506f8000000000000000000000000000000082820281614b8457fe5b600095909503946721c3677c82b400009190059384010582016f8000000000000000000000000000000001929050701000000000000000000000000000000000841615614bf3577243cbaf42a000812488fc5c220ad7b97bf6e99e6cf1aaddd7742e56d32fb9f9974484020592505b700800000000000000000000000000000000841615614c35577105d27a9f51c31b7c2f8038212a05747799916e0afe10820813d65dfe6a33c07f738f84020592505b700400000000000000000000000000000000841615614c7757701b4c902e273a58678d6d3bfdb93db96d026f02582ab704279e8efd15e0265855c47a84020592505b700200000000000000000000000000000000841615614cb9577003b1cc971a9bb5b9867477440d6d1577506f1152aaa3bf81cb9fdb76eae12d02957184020592505b700100000000000000000000000000000000841615614cfb5770015bf0a8b1457695355fb8ac404e7a79e36f2f16ac6c59de6f8d5d6f63c1482a7c8684020592505b6f80000000000000000000000000000000841615614d3b576fd3094c70f034de4b96ff7d5b6f99fcd86f4da2cbf1be5827f9eb3ad1aa9866ebb384020592505b6f40000000000000000000000000000000841615614d7b576fa45af1e1f40c333b3de1db4dd55f29a76f63afbe7ab2082ba1a0ae5e4eb1b479dc84020592505b6f20000000000000000000000000000000841615614dbb576f910b022db7ae67ce76b441c27035c6a16f70f5a893b608861e1f58934f97aea57d84020592505b6f10000000000000000000000000000000841615614dfb576f88415abbe9a76bead8d00cf112e4d4a86f783eafef1c0a8f3978c7f81824d62ebf84020592505b5050919050565b60006f80000000000000000000000000000000614e1f8484614f45565b81614e2657fe5b059392505050565b600080821215614e4657614e46610a18600184614f04565b6000614e528484614f45565b905060008113614e66576000915050610fcf565b607f1c9392505050565b60200151151590565b60008085614e8b575082905081614ed2565b83614e9a575084905083614ed2565b614ebd614ead858763ffffffff613e9516565b613acc888663ffffffff613e9516565b9150614ecf858463ffffffff613e9516565b90505b94509492505050565b600080614ef984846f8000000000000000000000000000000061503d565b915091509250929050565b60607fbd79545f00000000000000000000000000000000000000000000000000000000836001811115614f3357fe5b8360405160240161230792919061581c565b600082614f5457506000610fcf565b5081810281838281614f6257fe5b05141580614f79575082828281614f7557fe5b0514155b15610fcf57610fcf610a18600185856150ab565b600081614fa357614fa3610a18600285856150ab565b7f800000000000000000000000000000000000000000000000000000000000000083148015614ff15750817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff145b1561500557615005610a18600385856150ab565b818381614e2657fe5b60607fed2f26a100000000000000000000000000000000000000000000000000000000836001811115614f3357fe5b6000808285118061504d57508284115b156150a2576000848610156150625784615064565b855b9050615076818563ffffffff613ec616565b9050615088868263ffffffff613ec616565b925061509a858263ffffffff613ec616565b91505061327a565b50929391925050565b60607f8c12dfe7000000000000000000000000000000000000000000000000000000008460038111156150da57fe5b84846040516024016136679392919061582f565b6040518060a0016040528060008152602001600081526020016000815260200160008152602001600081525090565b604080516060810182526000808252602082018190529181019190915290565b60405180606001604052806000815260200160008152602001600081525090565b604080518082019091526000808252602082015290565b8154818355818111156112fb576000838152602090206112fb9181019083016151b3565b604051806040016040528060008152602001600081525090565b610bed91905b808211156151cd57600081556001016151b9565b5090565b6000604082840312156125ca578081fd5b6000602082840312156151f3578081fd5b8135610fcc81615854565b60006020828403121561520f578081fd5b8151610fcc81615854565b60008060006060848603121561522e578182fd5b833561523981615854565b9250602084013561524981615854565b929592945050506040919091013590565b6000806040838503121561526c578182fd5b823561527781615854565b946020939093013593505050565b60008060408385031215615297578182fd5b82356152a281615854565b915060208301356152b281615884565b809150509250929050565b6000602082840312156152ce578081fd5b8151610fcc81615876565b6000602082840312156152ea578081fd5b5035919050565b60008060408385031215615303578182fd5b8235915060208301356152b281615854565b60008060408385031215615327578182fd5b50508035926020909101359150565b60008060408385031215615348578182fd5b82359150602083013563ffffffff811681146152b2578182fd5b600060208284031215615373578081fd5b8135610fcc81615884565b600080600060a08486031215615392578283fd5b61539c85856151d1565b92506153ab85604086016151d1565b9150608084013590509250925092565b6000602082840312156153cc578081fd5b5051919050565b600080600080600060a086880312156153ea578283fd5b8535945060208601356153fc81615891565b935060408601359250606086013561541381615891565b9150608086013561542381615891565b809150509295509295909350565b60008060408385031215615443578182fd5b823561544e81615891565b915060208301356152b281615876565b73ffffffffffffffffffffffffffffffffffffffff91909116815260200190565b73ffffffffffffffffffffffffffffffffffffffff92831681529116602082015260400190565b73ffffffffffffffffffffffffffffffffffffffff9384168152919092166020820152604081019190915260600190565b73ffffffffffffffffffffffffffffffffffffffff929092168252602082015260400190565b602080825282518282018190526000918401906040840190835b8181101561554b57835173ffffffffffffffffffffffffffffffffffffffff16835260209384019390920191600101615517565b509095945050505050565b901515815260200190565b90815260200190565b92835273ffffffffffffffffffffffffffffffffffffffff91909116602083015263ffffffff16604082015260600190565b9182521515602082015260400190565b918252602082015260400190565b60608101600485106155c857fe5b938152602081019290925260409091015290565b60408101600384106155ea57fe5b9281526020015290565b604081016156018461584a565b92815273ffffffffffffffffffffffffffffffffffffffff9190911660209091015290565b606081016156338561584a565b938152602081019290925263ffffffff1660409091015290565b60208082526013908201527f43525f494e54455256414c5f494e56414c494400000000000000000000000000604082015260600190565b60208082526014908201527f574554485f5452414e534645525f4641494c4544000000000000000000000000604082015260600190565b81518152602080830151908201526040918201519181019190915260600190565b815173ffffffffffffffffffffffffffffffffffffffff16815260209182015163ffffffff169181019190915260400190565b815167ffffffffffffffff1681526020808301516bffffffffffffffffffffffff90811691830191909152604092830151169181019190915260600190565b9283526020830191909152604082015260600190565b93845260208401929092526040830152606082015260800190565b948552602085019390935260408401919091526060830152608082015260a00190565b94855263ffffffff938416602086015260408501929092528216606084015216608082015260a00190565b92835260ff918216602084015216604082015260600190565b63ffffffff91909116815260200190565b63ffffffff92831681529116602082015260400190565b60ff91909116815260200190565b60ff929092168252602082015260400190565b60ff9390931683526020830191909152604082015260600190565b60028110610f7357fe5b73ffffffffffffffffffffffffffffffffffffffff81168114610f7357600080fd5b8015158114610f7357600080fd5b60028110610f7357600080fd5b63ffffffff81168114610f7357600080fdfea365627a7a72315820cd4dcb64a07325df26d38404ffcca0f57d30f570cbe815c03c543316add5e5a46c6578706572696d656e74616cf564736f6c634300050c0040" } } }, @@ -964,5 +964,5 @@ "evmVersion": "constantinople" } }, - "networks": {} + "chains": {} } diff --git a/packages/contract-artifacts/package.json b/packages/contract-artifacts/package.json index 4029f4eb78..788c9094ba 100644 --- a/packages/contract-artifacts/package.json +++ b/packages/contract-artifacts/package.json @@ -1,6 +1,6 @@ { "name": "@0x/contract-artifacts", - "version": "2.3.0-beta.1", + "version": "2.3.0-beta.2", "engines": { "node": ">=6.12" }, @@ -30,7 +30,7 @@ }, "homepage": "https://github.com/0xProject/0x-monorepo/packages/contract-artifacts/README.md", "devDependencies": { - "@0x/utils": "^4.6.0-beta.0", + "@0x/utils": "^4.6.0-beta.1", "@types/mocha": "^5.2.7", "chai": "^4.0.1", "lodash": "^4.17.11", diff --git a/packages/contract-artifacts/src/index.ts b/packages/contract-artifacts/src/index.ts index 11095e349a..45ade678de 100644 --- a/packages/contract-artifacts/src/index.ts +++ b/packages/contract-artifacts/src/index.ts @@ -11,7 +11,6 @@ import * as ERC20Proxy from '../artifacts/ERC20Proxy.json'; import * as ERC20Token from '../artifacts/ERC20Token.json'; import * as ERC721Proxy from '../artifacts/ERC721Proxy.json'; import * as ERC721Token from '../artifacts/ERC721Token.json'; -import * as EthBalanceChecker from '../artifacts/EthBalanceChecker.json'; import * as Exchange from '../artifacts/Exchange.json'; import * as Forwarder from '../artifacts/Forwarder.json'; import * as IAssetProxy from '../artifacts/IAssetProxy.json'; @@ -49,7 +48,6 @@ export { ZRXToken, Coordinator, CoordinatorRegistry, - EthBalanceChecker, Staking, StakingProxy, }; diff --git a/packages/contract-artifacts/tsconfig.json b/packages/contract-artifacts/tsconfig.json index 4453f41c10..9d815d9b96 100644 --- a/packages/contract-artifacts/tsconfig.json +++ b/packages/contract-artifacts/tsconfig.json @@ -28,7 +28,6 @@ "./artifacts/ZRXToken.json", "./artifacts/CoordinatorRegistry.json", "./artifacts/Coordinator.json", - "./artifacts/EthBalanceChecker.json", "./artifacts/ERC1155Proxy.json", "./artifacts/StaticCallProxy.json", "./artifacts/Staking.json", diff --git a/packages/contract-wrappers/CHANGELOG.json b/packages/contract-wrappers/CHANGELOG.json index a2fffaed24..b458b6b125 100644 --- a/packages/contract-wrappers/CHANGELOG.json +++ b/packages/contract-wrappers/CHANGELOG.json @@ -1,12 +1,22 @@ [ { - "version": "13.0.0-beta.0", + "version": "12.2.0-beta.2", + "changes": [ + { + "note": "[Breaking] Remove `erc20Proxy`, `erc721Proxy` and `dutchAuction` wrappers", + "pr": 2324 + } + ] + }, + { + "version": "12.2.0-beta.1", "changes": [ { "note": "All references to network ID have been removed, and references to chain ID have been introduced instead", "pr": 2313 } - ] + ], + "timestamp": 1573159180 }, { "version": "12.2.0-beta.0", diff --git a/packages/contract-wrappers/CHANGELOG.md b/packages/contract-wrappers/CHANGELOG.md index cd13f04bd6..807981dbba 100644 --- a/packages/contract-wrappers/CHANGELOG.md +++ b/packages/contract-wrappers/CHANGELOG.md @@ -5,6 +5,10 @@ Edit the package's CHANGELOG.json file only. CHANGELOG +## v12.2.0-beta.1 - _November 7, 2019_ + + * All references to network ID have been removed, and references to chain ID have been introduced instead (#2313) + ## v12.2.0-beta.0 - _October 3, 2019_ * Use new `Order` and `ZeroExTransaction` structures with `domain` field (#1742) diff --git a/packages/contract-wrappers/docs/reference.mdx b/packages/contract-wrappers/docs/reference.mdx index 3761684f44..df339995f7 100644 --- a/packages/contract-wrappers/docs/reference.mdx +++ b/packages/contract-wrappers/docs/reference.mdx @@ -1,15 +1,17 @@ -# Class: CoordinatorContract + + +# Class: CoordinatorRegistryContract ## Constructors -\+ **new CoordinatorContract**(`address`: string, `supportedProvider`: [SupportedProvider](#supportedprovider), `txDefaults?`: `Partial`, `logDecodeDependencies?`: undefined | object, `deployedBytecode`: string | undefined): *[CoordinatorContract](#class-coordinatorcontract)* +\+ **new CoordinatorRegistryContract**(`address`: string, `supportedProvider`: [SupportedProvider](#supportedprovider), `txDefaults?`: `Partial`, `logDecodeDependencies?`: undefined | object, `deployedBytecode`: string | undefined): *[CoordinatorRegistryContract](#class-coordinatorregistrycontract)* *Overrides void* -*Defined in [abi-gen-wrappers/src/generated-wrappers/coordinator.ts:1489](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/coordinator.ts#L1489)* +*Defined in [abi-gen-wrappers/src/generated-wrappers/coordinator_registry.ts:464](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/coordinator_registry.ts#L464)* **Parameters:** @@ -19,19 +21,29 @@ Name | Type | Default | `supportedProvider` | [SupportedProvider](#supportedprovider) | - | `txDefaults?` | `Partial` | - | `logDecodeDependencies?` | undefined \| object | - | -`deployedBytecode` | string \| undefined | CoordinatorContract.deployedBytecode | +`deployedBytecode` | string \| undefined | CoordinatorRegistryContract.deployedBytecode | -**Returns:** *[CoordinatorContract](#class-coordinatorcontract)* +**Returns:** *[CoordinatorRegistryContract](#class-coordinatorregistrycontract)* ## Properties +### `Optional` _deployedBytecodeIfExists + +• **_deployedBytecodeIfExists**? : *`Buffer`* + + + +Defined in base-contract/lib/src/index.d.ts:32 + +___ + ### abi • **abi**: *[ContractAbi](#contractabi)* -Defined in base-contract/lib/src/index.d.ts:27 +Defined in base-contract/lib/src/index.d.ts:28 ___ @@ -41,7 +53,7 @@ ___ -Defined in base-contract/lib/src/index.d.ts:28 +Defined in base-contract/lib/src/index.d.ts:29 ___ @@ -51,7 +63,7 @@ Args -Defined in base-contract/lib/src/index.d.ts:30 +Defined in base-contract/lib/src/index.d.ts:31 ___ @@ -61,5101 +73,4719 @@ ___ -Defined in base-contract/lib/src/index.d.ts:29 - -___ - -### `Static` deployedBytecode - -▪ **deployedBytecode**: *string | undefined* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/coordinator.ts:31](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/coordinator.ts#L31)* +Defined in base-contract/lib/src/index.d.ts:30 ## Methods -### evmExecAsync +### getABIDecodedReturnData -▸ **evmExecAsync**(`input`: `Buffer`): *`Promise`* +▸ **getABIDecodedReturnData**<**T**>(`methodName`: string, `callData`: string): *`T`* +*Defined in [abi-gen-wrappers/src/generated-wrappers/coordinator_registry.ts:208](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/coordinator_registry.ts#L208)* +**Type parameters:** -Defined in base-contract/lib/src/index.d.ts:42 +▪ **T** **Parameters:** Name | Type | ------ | ------ | -`input` | `Buffer` | +`methodName` | string | +`callData` | string | -**Returns:** *`Promise`* +**Returns:** *`T`* ___ -### `Static` ABI - -▸ **ABI**(): *[ContractAbi](#contractabi)* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/coordinator.ts:1195](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/coordinator.ts#L1195)* - -**Returns:** *[ContractAbi](#contractabi)* - -The contract ABI +### getABIDecodedTransactionData -___ +▸ **getABIDecodedTransactionData**<**T**>(`methodName`: string, `callData`: string): *`T`* -### `Static` deployAsync +*Defined in [abi-gen-wrappers/src/generated-wrappers/coordinator_registry.ts:201](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/coordinator_registry.ts#L201)* -▸ **deployAsync**(`bytecode`: string, `abi`: [ContractAbi](#contractabi), `supportedProvider`: [SupportedProvider](#supportedprovider), `txDefaults`: `Partial`, `logDecodeDependencies`: object, `_exchange`: string): *`Promise`* +**Type parameters:** -*Defined in [abi-gen-wrappers/src/generated-wrappers/coordinator.ts:1148](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/coordinator.ts#L1148)* +▪ **T** **Parameters:** Name | Type | ------ | ------ | -`bytecode` | string | -`abi` | [ContractAbi](#contractabi) | -`supportedProvider` | [SupportedProvider](#supportedprovider) | -`txDefaults` | `Partial` | -`logDecodeDependencies` | object | -`_exchange` | string | +`methodName` | string | +`callData` | string | -**Returns:** *`Promise`* +**Returns:** *`T`* ___ -### `Static` deployFrom0xArtifactAsync +### getCoordinatorEndpoint -▸ **deployFrom0xArtifactAsync**(`artifact`: `ContractArtifact` | `SimpleContractArtifact`, `supportedProvider`: [SupportedProvider](#supportedprovider), `txDefaults`: `Partial`, `logDecodeDependencies`: object, `_exchange`: string): *`Promise`* +▸ **getCoordinatorEndpoint**(`coordinatorOperator`: string): *`ContractFunctionObj`* + +*Defined in [abi-gen-wrappers/src/generated-wrappers/coordinator_registry.ts:344](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/coordinator_registry.ts#L344)* -*Defined in [abi-gen-wrappers/src/generated-wrappers/coordinator.ts:1115](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/coordinator.ts#L1115)* +Gets the endpoint for a Coordinator. **Parameters:** -Name | Type | ------- | ------ | -`artifact` | `ContractArtifact` \| `SimpleContractArtifact` | -`supportedProvider` | [SupportedProvider](#supportedprovider) | -`txDefaults` | `Partial` | -`logDecodeDependencies` | object | -`_exchange` | string | +Name | Type | Description | +------ | ------ | ------ | +`coordinatorOperator` | string | operator of the Coordinator endpoint. | -**Returns:** *`Promise`* +**Returns:** *`ContractFunctionObj`* ___ -### `Static` strictArgumentEncodingCheck - -▸ **strictArgumentEncodingCheck**(`inputAbi`: `DataItem`[], `args`: any[]): *string* - +### getFunctionSignature +▸ **getFunctionSignature**(`methodName`: string): *string* -Defined in base-contract/lib/src/index.d.ts:41 +*Defined in [abi-gen-wrappers/src/generated-wrappers/coordinator_registry.ts:195](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/coordinator_registry.ts#L195)* **Parameters:** Name | Type | ------ | ------ | -`inputAbi` | `DataItem`[] | -`args` | any[] | +`methodName` | string | **Returns:** *string* -## Object literals - -### EIP712_COORDINATOR_DOMAIN_HASH +___ -#### ▪ **EIP712_COORDINATOR_DOMAIN_HASH**: *object* +### getLogsAsync -*Defined in [abi-gen-wrappers/src/generated-wrappers/coordinator.ts:1037](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/coordinator.ts#L1037)* +▸ **getLogsAsync**<**ArgsType**>(`eventName`: [CoordinatorRegistryEvents](#enumeration-coordinatorregistryevents), `blockRange`: `BlockRange`, `indexFilterValues`: `IndexedFilterValues`): *`Promise>>`* -#### callAsync +*Defined in [abi-gen-wrappers/src/generated-wrappers/coordinator_registry.ts:448](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/coordinator_registry.ts#L448)* -▸ **callAsync**(`callData`: `Partial`, `defaultBlock?`: [BlockParam](#blockparam)): *`Promise`* +Gets historical logs without creating a subscription -*Defined in [abi-gen-wrappers/src/generated-wrappers/coordinator.ts:1043](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/coordinator.ts#L1043)* +**Type parameters:** -Sends a read-only call to the contract method. Returns the result that would happen if one were to send an -Ethereum transaction to this method, given the current state of the blockchain. Calls do not cost gas -since they don't modify state. +▪ **ArgsType**: *[CoordinatorRegistryEventArgs](#coordinatorregistryeventargs)* **Parameters:** -Name | Type | Default | +Name | Type | Description | ------ | ------ | ------ | -`callData` | `Partial` | {} | -`defaultBlock?` | [BlockParam](#blockparam) | - | +`eventName` | [CoordinatorRegistryEvents](#enumeration-coordinatorregistryevents) | The CoordinatorRegistry 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`* +**Returns:** *`Promise>>`* + +Array of logs that match the parameters -#### getABIDecodedReturnData +___ -▸ **getABIDecodedReturnData**(`returnData`: string): *string* +### getSelector -*Defined in [abi-gen-wrappers/src/generated-wrappers/coordinator.ts:1107](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/coordinator.ts#L1107)* +▸ **getSelector**(`methodName`: string): *string* -Decode the ABI-encoded return data from a transaction +*Defined in [abi-gen-wrappers/src/generated-wrappers/coordinator_registry.ts:215](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/coordinator_registry.ts#L215)* **Parameters:** -Name | Type | Description | ------- | ------ | ------ | -`returnData` | string | the data returned after transaction execution | +Name | Type | +------ | ------ | +`methodName` | string | **Returns:** *string* -An array representing the output results in order. Keynames of nested structs are preserved. +___ -#### getABIDecodedTransactionData +### setCoordinatorEndpoint -▸ **getABIDecodedTransactionData**(`callData`: string): *void* +▸ **setCoordinatorEndpoint**(`coordinatorEndpoint`: string): *`ContractTxFunctionObj`* -*Defined in [abi-gen-wrappers/src/generated-wrappers/coordinator.ts:1095](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/coordinator.ts#L1095)* +*Defined in [abi-gen-wrappers/src/generated-wrappers/coordinator_registry.ts:226](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/coordinator_registry.ts#L226)* -Decode the ABI-encoded transaction data into its input arguments +Called by a Coordinator operator to set the endpoint of their Coordinator. **Parameters:** Name | Type | Description | ------ | ------ | ------ | -`callData` | string | The ABI-encoded transaction data | +`coordinatorEndpoint` | string | endpoint of the Coordinator. | -**Returns:** *void* +**Returns:** *`ContractTxFunctionObj`* -An array representing the input arguments in order. Keynames of nested structs are preserved. +___ -#### getABIEncodedTransactionData +### subscribe -▸ **getABIEncodedTransactionData**(): *string* +▸ **subscribe**<**ArgsType**>(`eventName`: [CoordinatorRegistryEvents](#enumeration-coordinatorregistryevents), `indexFilterValues`: `IndexedFilterValues`, `callback`: [EventCallback](#eventcallback)‹*`ArgsType`*›, `isVerbose`: boolean, `blockPollingIntervalMs?`: undefined | number): *string* -*Defined in [abi-gen-wrappers/src/generated-wrappers/coordinator.ts:1085](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/coordinator.ts#L1085)* +*Defined in [abi-gen-wrappers/src/generated-wrappers/coordinator_registry.ts:406](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/coordinator_registry.ts#L406)* -Returns the ABI encoded transaction data needed to send an Ethereum transaction calling this method. Before -sending the Ethereum tx, this encoded tx data can first be sent to a separate signing service or can be used -to create a 0x transaction (see protocol spec for more details). +Subscribe to an event type emitted by the CoordinatorRegistry contract. -**Returns:** *string* +**Type parameters:** -The ABI encoded transaction data as a string +▪ **ArgsType**: *[CoordinatorRegistryEventArgs](#coordinatorregistryeventargs)* -___ +**Parameters:** -### EIP712_EXCHANGE_DOMAIN_HASH +Name | Type | Default | Description | +------ | ------ | ------ | ------ | +`eventName` | [CoordinatorRegistryEvents](#enumeration-coordinatorregistryevents) | - | The CoordinatorRegistry 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* -#### ▪ **EIP712_EXCHANGE_DOMAIN_HASH**: *object* +Subscription token used later to unsubscribe -*Defined in [abi-gen-wrappers/src/generated-wrappers/coordinator.ts:667](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/coordinator.ts#L667)* +___ -#### callAsync +### unsubscribe -▸ **callAsync**(`callData`: `Partial`, `defaultBlock?`: [BlockParam](#blockparam)): *`Promise`* +▸ **unsubscribe**(`subscriptionToken`: string): *void* -*Defined in [abi-gen-wrappers/src/generated-wrappers/coordinator.ts:673](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/coordinator.ts#L673)* +*Defined in [abi-gen-wrappers/src/generated-wrappers/coordinator_registry.ts:431](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/coordinator_registry.ts#L431)* -Sends a read-only call to the contract method. Returns the result that would happen if one were to send an -Ethereum transaction to this method, given the current state of the blockchain. Calls do not cost gas -since they don't modify state. +Cancel a subscription **Parameters:** -Name | Type | Default | +Name | Type | Description | ------ | ------ | ------ | -`callData` | `Partial` | {} | -`defaultBlock?` | [BlockParam](#blockparam) | - | +`subscriptionToken` | string | Subscription token returned by `subscribe()` | -**Returns:** *`Promise`* +**Returns:** *void* + +___ -#### getABIDecodedReturnData +### unsubscribeAll -▸ **getABIDecodedReturnData**(`returnData`: string): *string* +▸ **unsubscribeAll**(): *void* -*Defined in [abi-gen-wrappers/src/generated-wrappers/coordinator.ts:737](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/coordinator.ts#L737)* +*Defined in [abi-gen-wrappers/src/generated-wrappers/coordinator_registry.ts:437](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/coordinator_registry.ts#L437)* -Decode the ABI-encoded return data from a transaction +Cancels all existing subscriptions -**Parameters:** +**Returns:** *void* -Name | Type | Description | ------- | ------ | ------ | -`returnData` | string | the data returned after transaction execution | +___ -**Returns:** *string* +### `Static` ABI + +▸ **ABI**(): *[ContractAbi](#contractabi)* + +*Defined in [abi-gen-wrappers/src/generated-wrappers/coordinator_registry.ts:131](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/coordinator_registry.ts#L131)* + +**Returns:** *[ContractAbi](#contractabi)* -An array representing the output results in order. Keynames of nested structs are preserved. +The contract ABI -#### getABIDecodedTransactionData +___ -▸ **getABIDecodedTransactionData**(`callData`: string): *void* +### `Static` deployAsync -*Defined in [abi-gen-wrappers/src/generated-wrappers/coordinator.ts:725](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/coordinator.ts#L725)* +▸ **deployAsync**(`bytecode`: string, `abi`: [ContractAbi](#contractabi), `supportedProvider`: [SupportedProvider](#supportedprovider), `txDefaults`: `Partial`, `logDecodeDependencies`: object): *`Promise`* -Decode the ABI-encoded transaction data into its input arguments +*Defined in [abi-gen-wrappers/src/generated-wrappers/coordinator_registry.ts:89](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/coordinator_registry.ts#L89)* **Parameters:** -Name | Type | Description | ------- | ------ | ------ | -`callData` | string | The ABI-encoded transaction data | +Name | Type | +------ | ------ | +`bytecode` | string | +`abi` | [ContractAbi](#contractabi) | +`supportedProvider` | [SupportedProvider](#supportedprovider) | +`txDefaults` | `Partial` | +`logDecodeDependencies` | object | -**Returns:** *void* +**Returns:** *`Promise`* -An array representing the input arguments in order. Keynames of nested structs are preserved. +___ -#### getABIEncodedTransactionData +### `Static` deployFrom0xArtifactAsync -▸ **getABIEncodedTransactionData**(): *string* +▸ **deployFrom0xArtifactAsync**(`artifact`: `ContractArtifact` | `SimpleContractArtifact`, `supportedProvider`: [SupportedProvider](#supportedprovider), `txDefaults`: `Partial`, `logDecodeDependencies`: object): *`Promise`* -*Defined in [abi-gen-wrappers/src/generated-wrappers/coordinator.ts:715](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/coordinator.ts#L715)* +*Defined in [abi-gen-wrappers/src/generated-wrappers/coordinator_registry.ts:58](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/coordinator_registry.ts#L58)* -Returns the ABI encoded transaction data needed to send an Ethereum transaction calling this method. Before -sending the Ethereum tx, this encoded tx data can first be sent to a separate signing service or can be used -to create a 0x transaction (see protocol spec for more details). +**Parameters:** -**Returns:** *string* +Name | Type | +------ | ------ | +`artifact` | `ContractArtifact` \| `SimpleContractArtifact` | +`supportedProvider` | [SupportedProvider](#supportedprovider) | +`txDefaults` | `Partial` | +`logDecodeDependencies` | object | -The ABI encoded transaction data as a string +**Returns:** *`Promise`* ___ -### assertValidCoordinatorApprovals +### `Static` strictArgumentEncodingCheck -#### ▪ **assertValidCoordinatorApprovals**: *object* +▸ **strictArgumentEncodingCheck**(`inputAbi`: `DataItem`[], `args`: any[]): *string* -*Defined in [abi-gen-wrappers/src/generated-wrappers/coordinator.ts:749](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/coordinator.ts#L749)* -Validates that the 0x transaction has been approved by all of the feeRecipients -that correspond to each order in the transaction's Exchange calldata. -#### callAsync +Defined in base-contract/lib/src/index.d.ts:42 + +**Parameters:** -▸ **callAsync**(`transaction`: object, `txOrigin`: string, `transactionSignature`: string, `approvalExpirationTimeSeconds`: `BigNumber`[], `approvalSignatures`: string[], `callData`: `Partial`, `defaultBlock?`: [BlockParam](#blockparam)): *`Promise`* +Name | Type | +------ | ------ | +`inputAbi` | `DataItem`[] | +`args` | any[] | -*Defined in [abi-gen-wrappers/src/generated-wrappers/coordinator.ts:764](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/coordinator.ts#L764)* +**Returns:** *string* -Sends a read-only call to the contract method. Returns the result that would happen if one were to send an -Ethereum transaction to this method, given the current state of the blockchain. Calls do not cost gas -since they don't modify state. +
-**Parameters:** +# Class: DevUtilsContract -Name | Type | Default | 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. | -`approvalExpirationTimeSeconds` | `BigNumber`[] | - | Array of expiration times in seconds for which each corresponding approval signature expires. | -`approvalSignatures` | string[] | - | Array of signatures that correspond to the feeRecipients of each order in the transaction's Exchange calldata. | -`callData` | `Partial` | {} | - | -`defaultBlock?` | [BlockParam](#blockparam) | - | - | -**Returns:** *`Promise`* +## Constructors -#### getABIDecodedReturnData -▸ **getABIDecodedReturnData**(`returnData`: string): *void* -*Defined in [abi-gen-wrappers/src/generated-wrappers/coordinator.ts:885](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/coordinator.ts#L885)* +\+ **new DevUtilsContract**(`address`: string, `supportedProvider`: [SupportedProvider](#supportedprovider), `txDefaults?`: `Partial`, `logDecodeDependencies?`: undefined | object, `deployedBytecode`: string | undefined): *[DevUtilsContract](#class-devutilscontract)* + +*Overrides void* -Decode the ABI-encoded return data from a transaction +*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:3929](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L3929)* **Parameters:** -Name | Type | Description | +Name | Type | Default | ------ | ------ | ------ | -`returnData` | string | the data returned after transaction execution | +`address` | string | - | +`supportedProvider` | [SupportedProvider](#supportedprovider) | - | +`txDefaults?` | `Partial` | - | +`logDecodeDependencies?` | undefined \| object | - | +`deployedBytecode` | string \| undefined | DevUtilsContract.deployedBytecode | -**Returns:** *void* +**Returns:** *[DevUtilsContract](#class-devutilscontract)* -An array representing the output results in order. Keynames of nested structs are preserved. +## Properties -#### getABIDecodedTransactionData +### `Optional` _deployedBytecodeIfExists -▸ **getABIDecodedTransactionData**(`callData`: string): *[object, string, string, `BigNumber`[], string[]]* +• **_deployedBytecodeIfExists**? : *`Buffer`* -*Defined in [abi-gen-wrappers/src/generated-wrappers/coordinator.ts:867](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/coordinator.ts#L867)* -Decode the ABI-encoded transaction data into its input arguments -**Parameters:** +Defined in base-contract/lib/src/index.d.ts:32 -Name | Type | Description | ------- | ------ | ------ | -`callData` | string | The ABI-encoded transaction data | +___ -**Returns:** *[object, string, string, `BigNumber`[], string[]]* +### abi -An array representing the input arguments in order. Keynames of nested structs are preserved. +• **abi**: *[ContractAbi](#contractabi)* -#### getABIEncodedTransactionData -▸ **getABIEncodedTransactionData**(`transaction`: object, `txOrigin`: string, `transactionSignature`: string, `approvalExpirationTimeSeconds`: `BigNumber`[], `approvalSignatures`: string[]): *string* -*Defined in [abi-gen-wrappers/src/generated-wrappers/coordinator.ts:838](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/coordinator.ts#L838)* +Defined in base-contract/lib/src/index.d.ts:28 -Returns the ABI encoded transaction data needed to send an Ethereum transaction calling this method. Before -sending the Ethereum tx, this encoded tx data can first be sent to a separate signing service or can be used -to create a 0x transaction (see protocol spec for more details). +___ -**Parameters:** +### address + +• **address**: *string* -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. | -`approvalExpirationTimeSeconds` | `BigNumber`[] | Array of expiration times in seconds for which each corresponding approval signature expires. | -`approvalSignatures` | string[] | Array of signatures that correspond to the feeRecipients of each order in the transaction's Exchange calldata. | -**Returns:** *string* -The ABI encoded transaction data as a string +Defined in base-contract/lib/src/index.d.ts:29 ___ -### decodeOrdersFromFillData +Args -#### ▪ **decodeOrdersFromFillData**: *object* +• **constructorArgs**: *any[]* -*Defined in [abi-gen-wrappers/src/generated-wrappers/coordinator.ts:898](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/coordinator.ts#L898)* -Decodes the orders from Exchange calldata representing any fill method. -#### callAsync +Defined in base-contract/lib/src/index.d.ts:31 -▸ **callAsync**(`data`: string, `callData`: `Partial`, `defaultBlock?`: [BlockParam](#blockparam)): *`Promise>`* +___ -*Defined in [abi-gen-wrappers/src/generated-wrappers/coordinator.ts:906](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/coordinator.ts#L906)* +### contractName -Sends a read-only call to the contract method. Returns the result that would happen if one were to send an -Ethereum transaction to this method, given the current state of the blockchain. Calls do not cost gas -since they don't modify state. +• **contractName**: *string* -**Parameters:** -Name | Type | Default | Description | ------- | ------ | ------ | ------ | -`data` | string | - | Exchange calldata representing a fill method. | -`callData` | `Partial` | {} | - | -`defaultBlock?` | [BlockParam](#blockparam) | - | - | -**Returns:** *`Promise>`* +Defined in base-contract/lib/src/index.d.ts:30 -The orders from the Exchange calldata. +## Methods -#### getABIDecodedReturnData +### decodeAssetProxyDispatchError -▸ **getABIDecodedReturnData**(`returnData`: string): *`Array`* +▸ **decodeAssetProxyDispatchError**(`encoded`: string): *`ContractFunctionObj<[number, string, string]>`* -*Defined in [abi-gen-wrappers/src/generated-wrappers/coordinator.ts:999](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/coordinator.ts#L999)* +*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:1516](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L1516)* -Decode the ABI-encoded return data from a transaction +Decompose an ABI-encoded AssetProxyDispatchError. **Parameters:** Name | Type | Description | ------ | ------ | ------ | -`returnData` | string | the data returned after transaction execution | +`encoded` | string | ABI-encoded revert error. | + +**Returns:** *`ContractFunctionObj<[number, string, string]>`* -**Returns:** *`Array`* +errorCode The error code.orderHash Hash of the order being dispatched.assetData Asset data of the order being dispatched. -An array representing the output results in order. Keynames of nested structs are preserved. +___ -#### getABIDecodedTransactionData +### decodeAssetProxyExistsError -▸ **getABIDecodedTransactionData**(`callData`: string): *string* +▸ **decodeAssetProxyExistsError**(`encoded`: string): *`ContractFunctionObj<[string, string]>`* -*Defined in [abi-gen-wrappers/src/generated-wrappers/coordinator.ts:987](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/coordinator.ts#L987)* +*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:1564](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L1564)* -Decode the ABI-encoded transaction data into its input arguments +Decompose an ABI-encoded AssetProxyExistsError. **Parameters:** Name | Type | Description | ------ | ------ | ------ | -`callData` | string | The ABI-encoded transaction data | +`encoded` | string | ABI-encoded revert error. | -**Returns:** *string* +**Returns:** *`ContractFunctionObj<[string, string]>`* -An array representing the input arguments in order. Keynames of nested structs are preserved. +assetProxyId Id of asset proxy.assetProxyAddress The address of the asset proxy. + +___ -#### getABIEncodedTransactionData +### decodeAssetProxyId -▸ **getABIEncodedTransactionData**(`data`: string): *string* +▸ **decodeAssetProxyId**(`assetData`: string): *`ContractFunctionObj`* -*Defined in [abi-gen-wrappers/src/generated-wrappers/coordinator.ts:976](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/coordinator.ts#L976)* +*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:1610](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L1610)* -Returns the ABI encoded transaction data needed to send an Ethereum transaction calling this method. Before -sending the Ethereum tx, this encoded tx data can first be sent to a separate signing service or can be used -to create a 0x transaction (see protocol spec for more details). +Decode AssetProxy identifier **Parameters:** Name | Type | Description | ------ | ------ | ------ | -`data` | string | Exchange calldata representing a fill method. | +`assetData` | string | AssetProxy-compliant asset data describing an ERC-20, ERC- 721, ERC1155, or MultiAsset asset. | -**Returns:** *string* +**Returns:** *`ContractFunctionObj`* -The ABI encoded transaction data as a string +The AssetProxy identifier ___ -### executeTransaction +### decodeAssetProxyTransferError -#### ▪ **executeTransaction**: *object* +▸ **decodeAssetProxyTransferError**(`encoded`: string): *`ContractFunctionObj<[string, string, string]>`* -*Defined in [abi-gen-wrappers/src/generated-wrappers/coordinator.ts:339](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/coordinator.ts#L339)* +*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:1653](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L1653)* -Executes a 0x transaction that has been signed by the feeRecipients that correspond to each order in the transaction's Exchange calldata. - -#### awaitTransactionSuccessAsync - -▸ **awaitTransactionSuccessAsync**(`transaction`: object, `txOrigin`: string, `transactionSignature`: string, `approvalExpirationTimeSeconds`: `BigNumber`[], `approvalSignatures`: string[], `txData?`: `Partial`, `pollingIntervalMs?`: undefined | number, `timeoutMs?`: undefined | number): *`PromiseWithTransactionHash`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/coordinator.ts:409](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/coordinator.ts#L409)* - -Sends an Ethereum transaction and waits until the transaction has been successfully mined without reverting. -If the transaction was mined, but reverted, an error is thrown. +Decompose an ABI-encoded AssetProxyTransferError. **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. | -`approvalExpirationTimeSeconds` | `BigNumber`[] | Array of expiration times in seconds for which each corresponding approval signature expires. | -`approvalSignatures` | string[] | Array of signatures that correspond to the feeRecipients of each order in the transaction's Exchange calldata. | -`txData?` | `Partial` | Additional data for transaction | -`pollingIntervalMs?` | undefined \| number | Interval at which to poll for success | -`timeoutMs?` | undefined \| number | - | +`encoded` | string | ABI-encoded revert error. | -**Returns:** *`PromiseWithTransactionHash`* +**Returns:** *`ContractFunctionObj<[string, string, string]>`* + +orderHash Hash of the order being dispatched.assetData Asset data of the order being dispatched.errorData ABI-encoded revert data from the asset proxy. -A promise that resolves when the transaction is successful +___ -#### callAsync +### decodeEIP1271SignatureError -▸ **callAsync**(`transaction`: object, `txOrigin`: string, `transactionSignature`: string, `approvalExpirationTimeSeconds`: `BigNumber`[], `approvalSignatures`: string[], `callData`: `Partial`, `defaultBlock?`: [BlockParam](#blockparam)): *`Promise`* +▸ **decodeEIP1271SignatureError**(`encoded`: string): *`ContractFunctionObj<[string, string, string, string]>`* -*Defined in [abi-gen-wrappers/src/generated-wrappers/coordinator.ts:536](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/coordinator.ts#L536)* +*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:1701](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L1701)* -Sends a read-only call to the contract method. Returns the result that would happen if one were to send an -Ethereum transaction to this method, given the current state of the blockchain. Calls do not cost gas -since they don't modify state. +Decompose an ABI-encoded SignatureValidatorError. **Parameters:** -Name | Type | Default | 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. | -`approvalExpirationTimeSeconds` | `BigNumber`[] | - | Array of expiration times in seconds for which each corresponding approval signature expires. | -`approvalSignatures` | string[] | - | Array of signatures that correspond to the feeRecipients of each order in the transaction's Exchange calldata. | -`callData` | `Partial` | {} | - | -`defaultBlock?` | [BlockParam](#blockparam) | - | - | +Name | Type | Description | +------ | ------ | ------ | +`encoded` | string | ABI-encoded revert error. | -**Returns:** *`Promise`* +**Returns:** *`ContractFunctionObj<[string, string, string, string]>`* + +signerAddress The expected signer of the hash.signature The full signature bytes.errorData The revert data thrown by the validator contract. -#### estimateGasAsync +___ + +### decodeERC1155AssetData -▸ **estimateGasAsync**(`transaction`: object, `txOrigin`: string, `transactionSignature`: string, `approvalExpirationTimeSeconds`: `BigNumber`[], `approvalSignatures`: string[], `txData?`: `Partial` | undefined): *`Promise`* +▸ **decodeERC1155AssetData**(`assetData`: string): *`ContractFunctionObj<[string, string, BigNumber[], BigNumber[], string]>`* -*Defined in [abi-gen-wrappers/src/generated-wrappers/coordinator.ts:458](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/coordinator.ts#L458)* +*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:1750](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L1750)* -Estimates the gas cost of sending an Ethereum transaction calling this method with these arguments. +Decode ERC-1155 asset data from the format described in the AssetProxy contract specification. **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. | -`approvalExpirationTimeSeconds` | `BigNumber`[] | Array of expiration times in seconds for which each corresponding approval signature expires. | -`approvalSignatures` | string[] | Array of signatures that correspond to the feeRecipients of each order in the transaction's Exchange calldata. | -`txData?` | `Partial` \| undefined | Additional data for transaction | +`assetData` | string | AssetProxy-compliant asset data describing an ERC-1155 set of assets. | -**Returns:** *`Promise`* +**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`. -The hash of the transaction +___ -#### getABIDecodedReturnData +### decodeERC20AssetData -▸ **getABIDecodedReturnData**(`returnData`: string): *void* +▸ **decodeERC20AssetData**(`assetData`: string): *`ContractFunctionObj<[string, string]>`* -*Defined in [abi-gen-wrappers/src/generated-wrappers/coordinator.ts:657](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/coordinator.ts#L657)* +*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:1802](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L1802)* -Decode the ABI-encoded return data from a transaction +Decode ERC-20 asset data from the format described in the AssetProxy contract specification. **Parameters:** Name | Type | Description | ------ | ------ | ------ | -`returnData` | string | the data returned after transaction execution | +`assetData` | string | AssetProxy-compliant asset data describing an ERC-20 asset. | -**Returns:** *void* +**Returns:** *`ContractFunctionObj<[string, string]>`* + +The AssetProxy identifier, and the address of the ERC-20 contract hosting this asset. -An array representing the output results in order. Keynames of nested structs are preserved. +___ -#### getABIDecodedTransactionData +### decodeERC721AssetData -▸ **getABIDecodedTransactionData**(`callData`: string): *[object, string, string, `BigNumber`[], string[]]* +▸ **decodeERC721AssetData**(`assetData`: string): *`ContractFunctionObj<[string, string, BigNumber]>`* -*Defined in [abi-gen-wrappers/src/generated-wrappers/coordinator.ts:639](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/coordinator.ts#L639)* +*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:1848](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L1848)* -Decode the ABI-encoded transaction data into its input arguments +Decode ERC-721 asset data from the format described in the AssetProxy contract specification. **Parameters:** Name | Type | Description | ------ | ------ | ------ | -`callData` | string | The ABI-encoded transaction data | +`assetData` | string | AssetProxy-compliant asset data describing an ERC-721 asset. | -**Returns:** *[object, string, string, `BigNumber`[], string[]]* +**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. -An array representing the input arguments in order. Keynames of nested structs are preserved. +___ -#### getABIEncodedTransactionData +### decodeExchangeInvalidContextError -▸ **getABIEncodedTransactionData**(`transaction`: object, `txOrigin`: string, `transactionSignature`: string, `approvalExpirationTimeSeconds`: `BigNumber`[], `approvalSignatures`: string[]): *string* +▸ **decodeExchangeInvalidContextError**(`encoded`: string): *`ContractFunctionObj<[number, string, string]>`* -*Defined in [abi-gen-wrappers/src/generated-wrappers/coordinator.ts:610](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/coordinator.ts#L610)* +*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:1896](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L1896)* -Returns the ABI encoded transaction data needed to send an Ethereum transaction calling this method. Before -sending the Ethereum tx, this encoded tx data can first be sent to a separate signing service or can be used -to create a 0x transaction (see protocol spec for more details). +Decompose an ABI-encoded OrderStatusError. **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. | -`approvalExpirationTimeSeconds` | `BigNumber`[] | Array of expiration times in seconds for which each corresponding approval signature expires. | -`approvalSignatures` | string[] | Array of signatures that correspond to the feeRecipients of each order in the transaction's Exchange calldata. | +`encoded` | string | ABI-encoded revert error. | -**Returns:** *string* +**Returns:** *`ContractFunctionObj<[number, string, string]>`* + +errorCode Error code that corresponds to invalid maker, taker, or sender.orderHash The order hash.contextAddress The maker, taker, or sender address -The ABI encoded transaction data as a string +___ -#### sendTransactionAsync +### decodeFillError -▸ **sendTransactionAsync**(`transaction`: object, `txOrigin`: string, `transactionSignature`: string, `approvalExpirationTimeSeconds`: `BigNumber`[], `approvalSignatures`: string[], `txData?`: `Partial` | undefined): *`Promise`* +▸ **decodeFillError**(`encoded`: string): *`ContractFunctionObj<[number, string]>`* -*Defined in [abi-gen-wrappers/src/generated-wrappers/coordinator.ts:355](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/coordinator.ts#L355)* +*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:1945](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L1945)* -Sends an Ethereum transaction executing this method with the supplied parameters. This is a read/write -Ethereum operation and will cost gas. +Decompose an ABI-encoded FillError. **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. | -`approvalExpirationTimeSeconds` | `BigNumber`[] | Array of expiration times in seconds for which each corresponding approval signature expires. | -`approvalSignatures` | string[] | Array of signatures that correspond to the feeRecipients of each order in the transaction's Exchange calldata. | -`txData?` | `Partial` \| undefined | Additional data for transaction | - -**Returns:** *`Promise`* +`encoded` | string | ABI-encoded revert error. | -The hash of the transaction +**Returns:** *`ContractFunctionObj<[number, string]>`* -#### validateAndSendTransactionAsync +errorCode The error code.orderHash The order hash. -▸ **validateAndSendTransactionAsync**(`transaction`: object, `txOrigin`: string, `transactionSignature`: string, `approvalExpirationTimeSeconds`: `BigNumber`[], `approvalSignatures`: string[], `txData?`: `Partial` | undefined): *`Promise`* +___ -*Defined in [abi-gen-wrappers/src/generated-wrappers/coordinator.ts:496](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/coordinator.ts#L496)* +### decodeIncompleteFillError -**Parameters:** +▸ **decodeIncompleteFillError**(`encoded`: string): *`ContractFunctionObj<[number, BigNumber, BigNumber]>`* -Name | Type | ------- | ------ | -`transaction` | object | -`txOrigin` | string | -`transactionSignature` | string | -`approvalExpirationTimeSeconds` | `BigNumber`[] | -`approvalSignatures` | string[] | -`txData?` | `Partial` \| undefined | +*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:1988](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L1988)* -**Returns:** *`Promise`* +Decompose an ABI-encoded IncompleteFillError. -___ +**Parameters:** -### getCoordinatorApprovalHash +Name | Type | Description | +------ | ------ | ------ | +`encoded` | string | ABI-encoded revert error. | -#### ▪ **getCoordinatorApprovalHash**: *object* +**Returns:** *`ContractFunctionObj<[number, BigNumber, BigNumber]>`* -*Defined in [abi-gen-wrappers/src/generated-wrappers/coordinator.ts:221](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/coordinator.ts#L221)* +orderHash Hash of the order being filled. -Calculated the EIP712 hash of the Coordinator approval mesasage using the domain separator of this contract. +___ -#### callAsync +### decodeMultiAssetData -▸ **callAsync**(`approval`: object, `callData`: `Partial`, `defaultBlock?`: [BlockParam](#blockparam)): *`Promise`* +▸ **decodeMultiAssetData**(`assetData`: string): *`ContractFunctionObj<[string, BigNumber[], string[]]>`* -*Defined in [abi-gen-wrappers/src/generated-wrappers/coordinator.ts:230](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/coordinator.ts#L230)* +*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:2036](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L2036)* -Sends a read-only call to the contract method. Returns the result that would happen if one were to send an -Ethereum transaction to this method, given the current state of the blockchain. Calls do not cost gas -since they don't modify state. +Decode multi-asset data from the format described in the AssetProxy contract specification. **Parameters:** -Name | Type | Default | Description | ------- | ------ | ------ | ------ | -`approval` | object | - | Coordinator approval message containing the transaction hash, transaction signature, and expiration of the approval. | -`callData` | `Partial` | {} | - | -`defaultBlock?` | [BlockParam](#blockparam) | - | - | +Name | Type | Description | +------ | ------ | ------ | +`assetData` | string | AssetProxy-compliant data describing a multi-asset basket. | -**Returns:** *`Promise`* +**Returns:** *`ContractFunctionObj<[string, BigNumber[], string[]]>`* -EIP712 hash of the Coordinator approval message with the domain separator of this contract. +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. -#### getABIDecodedReturnData +___ + +### decodeNegativeSpreadError -▸ **getABIDecodedReturnData**(`returnData`: string): *string* +▸ **decodeNegativeSpreadError**(`encoded`: string): *`ContractFunctionObj<[string, string]>`* -*Defined in [abi-gen-wrappers/src/generated-wrappers/coordinator.ts:328](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/coordinator.ts#L328)* +*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:2084](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L2084)* -Decode the ABI-encoded return data from a transaction +Decompose an ABI-encoded NegativeSpreadError. **Parameters:** Name | Type | Description | ------ | ------ | ------ | -`returnData` | string | the data returned after transaction execution | +`encoded` | string | ABI-encoded revert error. | -**Returns:** *string* +**Returns:** *`ContractFunctionObj<[string, string]>`* + +leftOrderHash Hash of the left order being matched.rightOrderHash Hash of the right order being matched. -An array representing the output results in order. Keynames of nested structs are preserved. +___ -#### getABIDecodedTransactionData +### decodeOrderEpochError -▸ **getABIDecodedTransactionData**(`callData`: string): *object* +▸ **decodeOrderEpochError**(`encoded`: string): *`ContractFunctionObj<[string, string, BigNumber]>`* -*Defined in [abi-gen-wrappers/src/generated-wrappers/coordinator.ts:304](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/coordinator.ts#L304)* +*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:2129](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L2129)* -Decode the ABI-encoded transaction data into its input arguments +Decompose an ABI-encoded OrderEpochError. **Parameters:** Name | Type | Description | ------ | ------ | ------ | -`callData` | string | The ABI-encoded transaction data | +`encoded` | string | ABI-encoded revert error. | -**Returns:** *object* +**Returns:** *`ContractFunctionObj<[string, string, BigNumber]>`* -An array representing the input arguments in order. Keynames of nested structs are preserved. +makerAddress The order maker.orderSenderAddress The order sender.currentEpoch The current epoch for the maker. + +___ -#### getABIEncodedTransactionData +### decodeOrderStatusError -▸ **getABIEncodedTransactionData**(`approval`: object): *string* +▸ **decodeOrderStatusError**(`encoded`: string): *`ContractFunctionObj<[string, number]>`* -*Defined in [abi-gen-wrappers/src/generated-wrappers/coordinator.ts:286](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/coordinator.ts#L286)* +*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:2177](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L2177)* -Returns the ABI encoded transaction data needed to send an Ethereum transaction calling this method. Before -sending the Ethereum tx, this encoded tx data can first be sent to a separate signing service or can be used -to create a 0x transaction (see protocol spec for more details). +Decompose an ABI-encoded OrderStatusError. **Parameters:** Name | Type | Description | ------ | ------ | ------ | -`approval` | object | Coordinator approval message containing the transaction hash, transaction signature, and expiration of the approval. | +`encoded` | string | ABI-encoded revert error. | -**Returns:** *string* +**Returns:** *`ContractFunctionObj<[string, number]>`* -The ABI encoded transaction data as a string +orderHash The order hash.orderStatus The order status. ___ -### getSignerAddress - -#### ▪ **getSignerAddress**: *object* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/coordinator.ts:35](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/coordinator.ts#L35)* +### decodeSignatureError -Recovers the address of a signer given a hash and signature. +▸ **decodeSignatureError**(`encoded`: string): *`ContractFunctionObj<[number, string, string, string]>`* -#### callAsync +*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:2222](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L2222)* -▸ **callAsync**(`hash`: string, `signature`: string, `callData`: `Partial`, `defaultBlock?`: [BlockParam](#blockparam)): *`Promise`* +Decompose an ABI-encoded SignatureError. -*Defined in [abi-gen-wrappers/src/generated-wrappers/coordinator.ts:43](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/coordinator.ts#L43)* +**Parameters:** -Sends a read-only call to the contract method. Returns the result that would happen if one were to send an -Ethereum transaction to this method, given the current state of the blockchain. Calls do not cost gas -since they don't modify state. +Name | Type | Description | +------ | ------ | ------ | +`encoded` | string | ABI-encoded revert error. | -**Parameters:** +**Returns:** *`ContractFunctionObj<[number, string, string, string]>`* -Name | Type | Default | Description | ------- | ------ | ------ | ------ | -`hash` | string | - | Any 32 byte hash. | -`signature` | string | - | Proof that the hash has been signed by signer. | -`callData` | `Partial` | {} | - | -`defaultBlock?` | [BlockParam](#blockparam) | - | - | +errorCode The error code.signerAddress The expected signer of the hash.signature The full signature. -**Returns:** *`Promise`* +___ -#### getABIDecodedReturnData +### decodeSignatureValidatorNotApprovedError -▸ **getABIDecodedReturnData**(`returnData`: string): *string* +▸ **decodeSignatureValidatorNotApprovedError**(`encoded`: string): *`ContractFunctionObj<[string, string]>`* -*Defined in [abi-gen-wrappers/src/generated-wrappers/coordinator.ts:113](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/coordinator.ts#L113)* +*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:2268](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L2268)* -Decode the ABI-encoded return data from a transaction +Decompose an ABI-encoded SignatureValidatorNotApprovedError. **Parameters:** Name | Type | Description | ------ | ------ | ------ | -`returnData` | string | the data returned after transaction execution | +`encoded` | string | ABI-encoded revert error. | -**Returns:** *string* +**Returns:** *`ContractFunctionObj<[string, string]>`* + +signerAddress The expected signer of the hash.validatorAddress The expected validator. -An array representing the output results in order. Keynames of nested structs are preserved. +___ -#### getABIDecodedTransactionData +### decodeSignatureWalletError -▸ **getABIDecodedTransactionData**(`callData`: string): *string* +▸ **decodeSignatureWalletError**(`encoded`: string): *`ContractFunctionObj<[string, string, string, string]>`* -*Defined in [abi-gen-wrappers/src/generated-wrappers/coordinator.ts:101](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/coordinator.ts#L101)* +*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:2316](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L2316)* -Decode the ABI-encoded transaction data into its input arguments +Decompose an ABI-encoded SignatureWalletError. **Parameters:** Name | Type | Description | ------ | ------ | ------ | -`callData` | string | The ABI-encoded transaction data | +`encoded` | string | ABI-encoded revert error. | -**Returns:** *string* +**Returns:** *`ContractFunctionObj<[string, string, string, string]>`* -An array representing the input arguments in order. Keynames of nested structs are preserved. +errorCode The error code.signerAddress The expected signer of the hash.signature The full signature bytes.errorData The revert data thrown by the validator contract. + +___ -#### getABIEncodedTransactionData +### decodeStaticCallAssetData -▸ **getABIEncodedTransactionData**(`hash`: string, `signature`: string): *string* +▸ **decodeStaticCallAssetData**(`assetData`: string): *`ContractFunctionObj<[string, string, string, string]>`* -*Defined in [abi-gen-wrappers/src/generated-wrappers/coordinator.ts:86](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/coordinator.ts#L86)* +*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:2365](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L2365)* -Returns the ABI encoded transaction data needed to send an Ethereum transaction calling this method. Before -sending the Ethereum tx, this encoded tx data can first be sent to a separate signing service or can be used -to create a 0x transaction (see protocol spec for more details). +Decode StaticCall asset data from the format described in the AssetProxy contract specification. **Parameters:** Name | Type | Description | ------ | ------ | ------ | -`hash` | string | Any 32 byte hash. | -`signature` | string | Proof that the hash has been signed by signer. | +`assetData` | string | AssetProxy-compliant asset data describing a StaticCall asset | -**Returns:** *string* +**Returns:** *`ContractFunctionObj<[string, string, string, string]>`* -The ABI encoded transaction data as a 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. ___ -### getTransactionHash - -#### ▪ **getTransactionHash**: *object* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/coordinator.ts:124](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/coordinator.ts#L124)* - -Calculates the EIP712 hash of a 0x transaction using the domain separator of the Exchange contract. - -#### callAsync +### decodeTransactionError -▸ **callAsync**(`transaction`: object, `callData`: `Partial`, `defaultBlock?`: [BlockParam](#blockparam)): *`Promise`* +▸ **decodeTransactionError**(`encoded`: string): *`ContractFunctionObj<[number, string]>`* -*Defined in [abi-gen-wrappers/src/generated-wrappers/coordinator.ts:132](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/coordinator.ts#L132)* +*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:2413](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L2413)* -Sends a read-only call to the contract method. Returns the result that would happen if one were to send an -Ethereum transaction to this method, given the current state of the blockchain. Calls do not cost gas -since they don't modify state. +Decompose an ABI-encoded TransactionError. **Parameters:** -Name | Type | Default | Description | ------- | ------ | ------ | ------ | -`transaction` | object | - | 0x transaction containing salt, signerAddress, and data. | -`callData` | `Partial` | {} | - | -`defaultBlock?` | [BlockParam](#blockparam) | - | - | +Name | Type | Description | +------ | ------ | ------ | +`encoded` | string | ABI-encoded revert error. | -**Returns:** *`Promise`* +**Returns:** *`ContractFunctionObj<[number, string]>`* -EIP712 hash of the transaction with the domain separator of this contract. +errorCode The error code.transactionHash Hash of the transaction. + +___ -#### getABIDecodedReturnData +### decodeTransactionExecutionError -▸ **getABIDecodedReturnData**(`returnData`: string): *string* +▸ **decodeTransactionExecutionError**(`encoded`: string): *`ContractFunctionObj<[string, string]>`* -*Defined in [abi-gen-wrappers/src/generated-wrappers/coordinator.ts:210](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/coordinator.ts#L210)* +*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:2458](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L2458)* -Decode the ABI-encoded return data from a transaction +Decompose an ABI-encoded TransactionExecutionError. **Parameters:** Name | Type | Description | ------ | ------ | ------ | -`returnData` | string | the data returned after transaction execution | +`encoded` | string | ABI-encoded revert error. | -**Returns:** *string* +**Returns:** *`ContractFunctionObj<[string, string]>`* -An array representing the output results in order. Keynames of nested structs are preserved. +transactionHash Hash of the transaction.errorData Error thrown by exeucteTransaction(). + +___ -#### getABIDecodedTransactionData +### decodeZeroExTransactionData -▸ **getABIDecodedTransactionData**(`callData`: string): *object* +▸ **decodeZeroExTransactionData**(`transactionData`: string): *`ContractFunctionObj<[string, Array, BigNumber[], string[]]>`* -*Defined in [abi-gen-wrappers/src/generated-wrappers/coordinator.ts:194](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/coordinator.ts#L194)* +*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:2505](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L2505)* -Decode the ABI-encoded transaction data into its input arguments +Decodes the call data for an Exchange contract method call. **Parameters:** Name | Type | Description | ------ | ------ | ------ | -`callData` | string | The ABI-encoded transaction data | +`transactionData` | string | ABI-encoded calldata for an Exchange contract method call. | -**Returns:** *object* +**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. -An array representing the input arguments in order. Keynames of nested structs are preserved. +___ -#### getABIEncodedTransactionData +### encodeERC1155AssetData -▸ **getABIEncodedTransactionData**(`transaction`: object): *string* +▸ **encodeERC1155AssetData**(`tokenAddress`: string, `tokenIds`: `BigNumber`[], `tokenValues`: `BigNumber`[], `callbackData`: string): *`ContractFunctionObj`* -*Defined in [abi-gen-wrappers/src/generated-wrappers/coordinator.ts:181](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/coordinator.ts#L181)* +*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:2628](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L2628)* -Returns the ABI encoded transaction data needed to send an Ethereum transaction calling this method. Before -sending the Ethereum tx, this encoded tx data can first be sent to a separate signing service or can be used -to create a 0x transaction (see protocol spec for more details). +Encode ERC-1155 asset data into the format described in the AssetProxy contract specification. **Parameters:** Name | Type | Description | ------ | ------ | ------ | -`transaction` | object | 0x transaction containing salt, signerAddress, and data. | - -**Returns:** *string* - -The ABI encoded transaction data as a string - -
- -# Class: CoordinatorRegistryContract +`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`* -## Constructors +AssetProxy-compliant asset data describing the set of assets. +___ +### encodeERC20AssetData -\+ **new CoordinatorRegistryContract**(`address`: string, `supportedProvider`: [SupportedProvider](#supportedprovider), `txDefaults?`: `Partial`, `logDecodeDependencies?`: undefined | object, `deployedBytecode`: string | undefined): *[CoordinatorRegistryContract](#class-coordinatorregistrycontract)* +▸ **encodeERC20AssetData**(`tokenAddress`: string): *`ContractFunctionObj`* -*Overrides void* +*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:2686](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L2686)* -*Defined in [abi-gen-wrappers/src/generated-wrappers/coordinator_registry.ts:520](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/coordinator_registry.ts#L520)* +Encode ERC-20 asset data into the format described in the AssetProxy contract specification. **Parameters:** -Name | Type | Default | +Name | Type | Description | ------ | ------ | ------ | -`address` | string | - | -`supportedProvider` | [SupportedProvider](#supportedprovider) | - | -`txDefaults?` | `Partial` | - | -`logDecodeDependencies?` | undefined \| object | - | -`deployedBytecode` | string \| undefined | CoordinatorRegistryContract.deployedBytecode | +`tokenAddress` | string | The address of the ERC-20 contract hosting the asset to be traded. | -**Returns:** *[CoordinatorRegistryContract](#class-coordinatorregistrycontract)* +**Returns:** *`ContractFunctionObj`* -## Properties +AssetProxy-compliant data describing the asset. -#### abi +___ -• **abi**: *[ContractAbi](#contractabi)* +### encodeERC721AssetData +▸ **encodeERC721AssetData**(`tokenAddress`: string, `tokenId`: `BigNumber`): *`ContractFunctionObj`* +*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:2735](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L2735)* -Defined in base-contract/lib/src/index.d.ts:27 +Encode ERC-721 asset data into the format described in the AssetProxy specification. -___ +**Parameters:** -### address +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. | -• **address**: *string* +**Returns:** *`ContractFunctionObj`* +AssetProxy-compliant asset data describing the asset. +___ -Defined in base-contract/lib/src/index.d.ts:28 +### encodeMultiAssetData -___ +▸ **encodeMultiAssetData**(`amounts`: `BigNumber`[], `nestedAssetData`: string[]): *`ContractFunctionObj`* -Args +*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:2787](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L2787)* -• **constructorArgs**: *any[]* +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. | -Defined in base-contract/lib/src/index.d.ts:30 +**Returns:** *`ContractFunctionObj`* -___ +AssetProxy-compliant data describing the set of assets. -### contractName +___ -• **contractName**: *string* +### encodeStaticCallAssetData +▸ **encodeStaticCallAssetData**(`staticCallTargetAddress`: string, `staticCallData`: string, `expectedReturnDataHash`: string): *`ContractFunctionObj`* +*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:2841](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L2841)* -Defined in base-contract/lib/src/index.d.ts:29 +Encode StaticCall asset data into the format described in the AssetProxy contract specification. -___ +**Parameters:** -### `Static` deployedBytecode +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. | -▪ **deployedBytecode**: *string | undefined* +**Returns:** *`ContractFunctionObj`* -*Defined in [abi-gen-wrappers/src/generated-wrappers/coordinator_registry.ts:43](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/coordinator_registry.ts#L43)* +AssetProxy-compliant asset data describing the set of assets. -## Methods +___ -### evmExecAsync +### getABIDecodedReturnData -▸ **evmExecAsync**(`input`: `Buffer`): *`Promise`* +▸ **getABIDecodedReturnData**<**T**>(`methodName`: string, `callData`: string): *`T`* +*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:1497](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L1497)* +**Type parameters:** -Defined in base-contract/lib/src/index.d.ts:42 +▪ **T** **Parameters:** Name | Type | ------ | ------ | -`input` | `Buffer` | +`methodName` | string | +`callData` | string | -**Returns:** *`Promise`* +**Returns:** *`T`* ___ -### getLogsAsync +### getABIDecodedTransactionData -▸ **getLogsAsync**<**ArgsType**>(`eventName`: [CoordinatorRegistryEvents](#enumeration-coordinatorregistryevents), `blockRange`: `BlockRange`, `indexFilterValues`: `IndexedFilterValues`): *`Promise>>`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/coordinator_registry.ts:504](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/coordinator_registry.ts#L504)* +▸ **getABIDecodedTransactionData**<**T**>(`methodName`: string, `callData`: string): *`T`* -Gets historical logs without creating a subscription +*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:1490](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L1490)* **Type parameters:** -▪ **ArgsType**: *[CoordinatorRegistryEventArgs](#coordinatorregistryeventargs)* +▪ **T** **Parameters:** -Name | Type | Description | ------- | ------ | ------ | -`eventName` | [CoordinatorRegistryEvents](#enumeration-coordinatorregistryevents) | The CoordinatorRegistry 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>>`* +Name | Type | +------ | ------ | +`methodName` | string | +`callData` | string | -Array of logs that match the parameters +**Returns:** *`T`* ___ -### subscribe - -▸ **subscribe**<**ArgsType**>(`eventName`: [CoordinatorRegistryEvents](#enumeration-coordinatorregistryevents), `indexFilterValues`: `IndexedFilterValues`, `callback`: [EventCallback](#eventcallback)‹*`ArgsType`*›, `isVerbose`: boolean, `blockPollingIntervalMs?`: undefined | number): *string* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/coordinator_registry.ts:462](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/coordinator_registry.ts#L462)* +### getAssetProxyAllowance -Subscribe to an event type emitted by the CoordinatorRegistry contract. +▸ **getAssetProxyAllowance**(`ownerAddress`: string, `assetData`: string): *`ContractFunctionObj`* -**Type parameters:** +*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:2899](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L2899)* -▪ **ArgsType**: *[CoordinatorRegistryEventArgs](#coordinatorregistryeventargs)* +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 | Default | Description | ------- | ------ | ------ | ------ | -`eventName` | [CoordinatorRegistryEvents](#enumeration-coordinatorregistryevents) | - | The CoordinatorRegistry 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 | - | - | +Name | Type | Description | +------ | ------ | ------ | +`ownerAddress` | string | Owner of the assets specified by assetData. | +`assetData` | string | Details of asset, encoded per the AssetProxy contract specification. | -**Returns:** *string* +**Returns:** *`ContractFunctionObj`* -Subscription token used later to unsubscribe +Number of assets (or asset baskets) that the corresponding AssetProxy is authorized to spend. ___ -### unsubscribe +### getBalance -▸ **unsubscribe**(`subscriptionToken`: string): *void* +▸ **getBalance**(`ownerAddress`: string, `assetData`: string): *`ContractFunctionObj`* -*Defined in [abi-gen-wrappers/src/generated-wrappers/coordinator_registry.ts:487](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/coordinator_registry.ts#L487)* +*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:2961](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L2961)* -Cancel a subscription +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 | ------ | ------ | ------ | -`subscriptionToken` | string | Subscription token returned by `subscribe()` | - -**Returns:** *void* - -___ - -### unsubscribeAll - -▸ **unsubscribeAll**(): *void* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/coordinator_registry.ts:493](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/coordinator_registry.ts#L493)* +`ownerAddress` | string | Owner of the assets specified by assetData. | +`assetData` | string | Details of asset, encoded per the AssetProxy contract specification. | -Cancels all existing subscriptions +**Returns:** *`ContractFunctionObj`* -**Returns:** *void* +Number of assets (or asset baskets) held by owner. ___ -### `Static` ABI - -▸ **ABI**(): *[ContractAbi](#contractabi)* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/coordinator_registry.ts:390](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/coordinator_registry.ts#L390)* - -**Returns:** *[ContractAbi](#contractabi)* - -The contract ABI - -___ +### getBalanceAndAssetProxyAllowance -### `Static` deployAsync +▸ **getBalanceAndAssetProxyAllowance**(`ownerAddress`: string, `assetData`: string): *`ContractFunctionObj<[BigNumber, BigNumber]>`* -▸ **deployAsync**(`bytecode`: string, `abi`: [ContractAbi](#contractabi), `supportedProvider`: [SupportedProvider](#supportedprovider), `txDefaults`: `Partial`, `logDecodeDependencies`: object): *`Promise`* +*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:3023](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L3023)* -*Defined in [abi-gen-wrappers/src/generated-wrappers/coordinator_registry.ts:348](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/coordinator_registry.ts#L348)* +Calls getBalance() and getAllowance() for assetData. **Parameters:** -Name | Type | ------- | ------ | -`bytecode` | string | -`abi` | [ContractAbi](#contractabi) | -`supportedProvider` | [SupportedProvider](#supportedprovider) | -`txDefaults` | `Partial` | -`logDecodeDependencies` | object | +Name | Type | Description | +------ | ------ | ------ | +`ownerAddress` | string | Owner of the assets specified by assetData. | +`assetData` | string | Details of asset, encoded per the AssetProxy contract specification. | -**Returns:** *`Promise`* +**Returns:** *`ContractFunctionObj<[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. ___ -### `Static` deployFrom0xArtifactAsync +### getBatchAssetProxyAllowances -▸ **deployFrom0xArtifactAsync**(`artifact`: `ContractArtifact` | `SimpleContractArtifact`, `supportedProvider`: [SupportedProvider](#supportedprovider), `txDefaults`: `Partial`, `logDecodeDependencies`: object): *`Promise`* +▸ **getBatchAssetProxyAllowances**(`ownerAddress`: string, `assetData`: string[]): *`ContractFunctionObj`* -*Defined in [abi-gen-wrappers/src/generated-wrappers/coordinator_registry.ts:317](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/coordinator_registry.ts#L317)* +*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:3091](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L3091)* + +Calls getAssetProxyAllowance() for each element of assetData. **Parameters:** -Name | Type | ------- | ------ | -`artifact` | `ContractArtifact` \| `SimpleContractArtifact` | -`supportedProvider` | [SupportedProvider](#supportedprovider) | -`txDefaults` | `Partial` | -`logDecodeDependencies` | object | +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:** *`Promise`* +**Returns:** *`ContractFunctionObj`* -___ +An array of asset allowances from getAllowance(), with each element corresponding to the same-indexed element in the assetData input. -### `Static` strictArgumentEncodingCheck +___ -▸ **strictArgumentEncodingCheck**(`inputAbi`: `DataItem`[], `args`: any[]): *string* +### getBatchBalances +▸ **getBatchBalances**(`ownerAddress`: string, `assetData`: string[]): *`ContractFunctionObj`* +*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:3153](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L3153)* -Defined in base-contract/lib/src/index.d.ts:41 +Calls getBalance() for each element of assetData. **Parameters:** -Name | Type | ------- | ------ | -`inputAbi` | `DataItem`[] | -`args` | any[] | - -**Returns:** *string* +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. | -## Object literals +**Returns:** *`ContractFunctionObj`* -### getCoordinatorEndpoint +Array of asset balances from getBalance(), with each element corresponding to the same-indexed element in the assetData input. -#### ▪ **getCoordinatorEndpoint**: *object* +___ -*Defined in [abi-gen-wrappers/src/generated-wrappers/coordinator_registry.ts:226](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/coordinator_registry.ts#L226)* +### getBatchBalancesAndAssetProxyAllowances -Gets the endpoint for a Coordinator. +▸ **getBatchBalancesAndAssetProxyAllowances**(`ownerAddress`: string, `assetData`: string[]): *`ContractFunctionObj<[BigNumber[], BigNumber[]]>`* -#### callAsync +*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:3215](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L3215)* -▸ **callAsync**(`coordinatorOperator`: string, `callData`: `Partial`, `defaultBlock?`: [BlockParam](#blockparam)): *`Promise`* +Calls getBatchBalances() and getBatchAllowances() for each element of assetData. -*Defined in [abi-gen-wrappers/src/generated-wrappers/coordinator_registry.ts:233](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/coordinator_registry.ts#L233)* +**Parameters:** -Sends a read-only call to the contract method. Returns the result that would happen if one were to send an -Ethereum transaction to this method, given the current state of the blockchain. Calls do not cost gas -since they don't modify state. +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. | -**Parameters:** +**Returns:** *`ContractFunctionObj<[BigNumber[], BigNumber[]]>`* -Name | Type | Default | Description | ------- | ------ | ------ | ------ | -`coordinatorOperator` | string | - | operator of the Coordinator endpoint. | -`callData` | `Partial` | {} | - | -`defaultBlock?` | [BlockParam](#blockparam) | - | - | +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. -**Returns:** *`Promise`* +___ -#### getABIDecodedReturnData +### getEthBalances -▸ **getABIDecodedReturnData**(`returnData`: string): *string* +▸ **getEthBalances**(`addresses`: string[]): *`ContractFunctionObj`* -*Defined in [abi-gen-wrappers/src/generated-wrappers/coordinator_registry.ts:308](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/coordinator_registry.ts#L308)* +*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:3281](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L3281)* -Decode the ABI-encoded return data from a transaction +Batch fetches ETH balances **Parameters:** Name | Type | Description | ------ | ------ | ------ | -`returnData` | string | the data returned after transaction execution | +`addresses` | string[] | Array of addresses. | -**Returns:** *string* +**Returns:** *`ContractFunctionObj`* -An array representing the output results in order. Keynames of nested structs are preserved. +Array of ETH balances. -#### getABIDecodedTransactionData +___ -▸ **getABIDecodedTransactionData**(`callData`: string): *string* +### getFunctionSignature -*Defined in [abi-gen-wrappers/src/generated-wrappers/coordinator_registry.ts:296](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/coordinator_registry.ts#L296)* +▸ **getFunctionSignature**(`methodName`: string): *string* -Decode the ABI-encoded transaction data into its input arguments +*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:1484](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L1484)* **Parameters:** -Name | Type | Description | ------- | ------ | ------ | -`callData` | string | The ABI-encoded transaction data | +Name | Type | +------ | ------ | +`methodName` | string | **Returns:** *string* -An array representing the input arguments in order. Keynames of nested structs are preserved. +___ -#### getABIEncodedTransactionData +### getOrderRelevantState -▸ **getABIEncodedTransactionData**(`coordinatorOperator`: string): *string* +▸ **getOrderRelevantState**(`order`: object, `signature`: string): *`ContractFunctionObj<[object, BigNumber, boolean]>`* -*Defined in [abi-gen-wrappers/src/generated-wrappers/coordinator_registry.ts:283](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/coordinator_registry.ts#L283)* +*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:3337](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L3337)* -Returns the ABI encoded transaction data needed to send an Ethereum transaction calling this method. Before -sending the Ethereum tx, this encoded tx data can first be sent to a separate signing service or can be used -to create a 0x transaction (see protocol spec for more details). +Fetches all order-relevant information needed to validate if the supplied order is fillable. **Parameters:** Name | Type | Description | ------ | ------ | ------ | -`coordinatorOperator` | string | operator of the Coordinator endpoint. | +`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:** *string* +**Returns:** *`ContractFunctionObj<[object, BigNumber, boolean]>`* -The ABI encoded transaction data as a string +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. ___ -### setCoordinatorEndpoint - -#### ▪ **setCoordinatorEndpoint**: *object* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/coordinator_registry.ts:47](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/coordinator_registry.ts#L47)* - -Called by a Coordinator operator to set the endpoint of their Coordinator. - -#### awaitTransactionSuccessAsync +### getOrderRelevantStates -▸ **awaitTransactionSuccessAsync**(`coordinatorEndpoint`: string, `txData?`: `Partial`, `pollingIntervalMs?`: undefined | number, `timeoutMs?`: undefined | number): *`PromiseWithTransactionHash`* +▸ **getOrderRelevantStates**(`orders`: `Array`, `signatures`: string[]): *`ContractFunctionObj<[Array, BigNumber[], boolean[]]>`* -*Defined in [abi-gen-wrappers/src/generated-wrappers/coordinator_registry.ts:82](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/coordinator_registry.ts#L82)* +*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:3433](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L3433)* -Sends an Ethereum transaction and waits until the transaction has been successfully mined without reverting. -If the transaction was mined, but reverted, an error is thrown. +Fetches all order-relevant information needed to validate if the supplied orders are fillable. **Parameters:** Name | Type | Description | ------ | ------ | ------ | -`coordinatorEndpoint` | string | endpoint of the Coordinator. | -`txData?` | `Partial` | Additional data for transaction | -`pollingIntervalMs?` | undefined \| number | Interval at which to poll for success | -`timeoutMs?` | undefined \| number | - | +`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:** *`PromiseWithTransactionHash`* +**Returns:** *`ContractFunctionObj<[Array, BigNumber[], boolean[]]>`* -A promise that resolves when the transaction is successful +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. -#### callAsync +___ -▸ **callAsync**(`coordinatorEndpoint`: string, `callData`: `Partial`, `defaultBlock?`: [BlockParam](#blockparam)): *`Promise`* +### getSelector -*Defined in [abi-gen-wrappers/src/generated-wrappers/coordinator_registry.ts:142](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/coordinator_registry.ts#L142)* +▸ **getSelector**(`methodName`: string): *string* -Sends a read-only call to the contract method. Returns the result that would happen if one were to send an -Ethereum transaction to this method, given the current state of the blockchain. Calls do not cost gas -since they don't modify state. +*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:1504](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L1504)* **Parameters:** -Name | Type | Default | Description | ------- | ------ | ------ | ------ | -`coordinatorEndpoint` | string | - | endpoint of the Coordinator. | -`callData` | `Partial` | {} | - | -`defaultBlock?` | [BlockParam](#blockparam) | - | - | +Name | Type | +------ | ------ | +`methodName` | string | -**Returns:** *`Promise`* +**Returns:** *string* + +___ -#### estimateGasAsync +### getSimulatedOrderTransferResults -▸ **estimateGasAsync**(`coordinatorEndpoint`: string, `txData?`: `Partial` | undefined): *`Promise`* +▸ **getSimulatedOrderTransferResults**(`order`: object, `takerAddress`: string, `takerAssetFillAmount`: `BigNumber`): *`ContractTxFunctionObj`* -*Defined in [abi-gen-wrappers/src/generated-wrappers/coordinator_registry.ts:109](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/coordinator_registry.ts#L109)* +*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:3537](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L3537)* -Estimates the gas cost of sending an Ethereum transaction calling this method with these arguments. +Simulates all of the transfers within an order and returns the index of the first failed transfer. **Parameters:** Name | Type | Description | ------ | ------ | ------ | -`coordinatorEndpoint` | string | endpoint of the Coordinator. | -`txData?` | `Partial` \| undefined | Additional data for transaction | +`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:** *`Promise`* +**Returns:** *`ContractTxFunctionObj`* + +The index of the first failed transfer (or 4 if all transfers are successful). -The hash of the transaction +___ -#### getABIDecodedReturnData +### getSimulatedOrdersTransferResults -▸ **getABIDecodedReturnData**(`returnData`: string): *void* +▸ **getSimulatedOrdersTransferResults**(`orders`: `Array`, `takerAddresses`: string[], `takerAssetFillAmounts`: `BigNumber`[]): *`ContractTxFunctionObj`* -*Defined in [abi-gen-wrappers/src/generated-wrappers/coordinator_registry.ts:215](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/coordinator_registry.ts#L215)* +*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:3687](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L3687)* -Decode the ABI-encoded return data from a transaction +Simulates all of the transfers for each given order and returns the indices of each first failed transfer. **Parameters:** Name | Type | Description | ------ | ------ | ------ | -`returnData` | string | the data returned after transaction execution | +`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:** *void* +**Returns:** *`ContractTxFunctionObj`* -An array representing the output results in order. Keynames of nested structs are preserved. +The indices of the first failed transfer (or 4 if all transfers are successful) for each order. + +___ -#### getABIDecodedTransactionData +### getTransferableAssetAmount -▸ **getABIDecodedTransactionData**(`callData`: string): *[string]* +▸ **getTransferableAssetAmount**(`ownerAddress`: string, `assetData`: string): *`ContractFunctionObj`* -*Defined in [abi-gen-wrappers/src/generated-wrappers/coordinator_registry.ts:203](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/coordinator_registry.ts#L203)* +*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:3835](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L3835)* -Decode the ABI-encoded transaction data into its input arguments +Gets the amount of an asset transferable by the owner. **Parameters:** Name | Type | Description | ------ | ------ | ------ | -`callData` | string | The ABI-encoded transaction data | +`ownerAddress` | string | Address of the owner of the asset. | +`assetData` | string | Description of tokens, per the AssetProxy contract specification. | -**Returns:** *[string]* +**Returns:** *`ContractFunctionObj`* -An array representing the input arguments in order. Keynames of nested structs are preserved. +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`. -#### getABIEncodedTransactionData +___ -▸ **getABIEncodedTransactionData**(`coordinatorEndpoint`: string): *string* +### revertIfInvalidAssetData -*Defined in [abi-gen-wrappers/src/generated-wrappers/coordinator_registry.ts:190](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/coordinator_registry.ts#L190)* +▸ **revertIfInvalidAssetData**(`assetData`: string): *`ContractFunctionObj`* -Returns the ABI encoded transaction data needed to send an Ethereum transaction calling this method. Before -sending the Ethereum tx, this encoded tx data can first be sent to a separate signing service or can be used -to create a 0x transaction (see protocol spec for more details). +*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:3890](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L3890)* **Parameters:** -Name | Type | Description | ------- | ------ | ------ | -`coordinatorEndpoint` | string | endpoint of the Coordinator. | - -**Returns:** *string* - -The ABI encoded transaction data as a string +Name | Type | +------ | ------ | +`assetData` | string | -#### sendTransactionAsync +**Returns:** *`ContractFunctionObj`* -▸ **sendTransactionAsync**(`coordinatorEndpoint`: string, `txData?`: `Partial` | undefined): *`Promise`* +___ -*Defined in [abi-gen-wrappers/src/generated-wrappers/coordinator_registry.ts:55](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/coordinator_registry.ts#L55)* +### `Static` ABI -Sends an Ethereum transaction executing this method with the supplied parameters. This is a read/write -Ethereum operation and will cost gas. +▸ **ABI**(): *[ContractAbi](#contractabi)* -**Parameters:** +*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:125](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L125)* -Name | Type | Description | ------- | ------ | ------ | -`coordinatorEndpoint` | string | endpoint of the Coordinator. | -`txData?` | `Partial` \| undefined | Additional data for transaction | +**Returns:** *[ContractAbi](#contractabi)* -**Returns:** *`Promise`* +The contract ABI -The hash of the transaction +___ -#### validateAndSendTransactionAsync +### `Static` deployAsync -▸ **validateAndSendTransactionAsync**(`coordinatorEndpoint`: string, `txData?`: `Partial` | undefined): *`Promise`* +▸ **deployAsync**(`bytecode`: string, `abi`: [ContractAbi](#contractabi), `supportedProvider`: [SupportedProvider](#supportedprovider), `txDefaults`: `Partial`, `logDecodeDependencies`: object, `_exchange`: string): *`Promise`* -*Defined in [abi-gen-wrappers/src/generated-wrappers/coordinator_registry.ts:128](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/coordinator_registry.ts#L128)* +*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:78](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L78)* **Parameters:** Name | Type | ------ | ------ | -`coordinatorEndpoint` | string | -`txData?` | `Partial` \| undefined | +`bytecode` | string | +`abi` | [ContractAbi](#contractabi) | +`supportedProvider` | [SupportedProvider](#supportedprovider) | +`txDefaults` | `Partial` | +`logDecodeDependencies` | object | +`_exchange` | string | -**Returns:** *`Promise`* +**Returns:** *`Promise`* -
+___ -# Class: DevUtilsContract +### `Static` deployFrom0xArtifactAsync +▸ **deployFrom0xArtifactAsync**(`artifact`: `ContractArtifact` | `SimpleContractArtifact`, `supportedProvider`: [SupportedProvider](#supportedprovider), `txDefaults`: `Partial`, `logDecodeDependencies`: object, `_exchange`: string): *`Promise`* -## Constructors +*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:45](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L45)* +**Parameters:** +Name | Type | +------ | ------ | +`artifact` | `ContractArtifact` \| `SimpleContractArtifact` | +`supportedProvider` | [SupportedProvider](#supportedprovider) | +`txDefaults` | `Partial` | +`logDecodeDependencies` | object | +`_exchange` | string | -\+ **new DevUtilsContract**(`address`: string, `supportedProvider`: [SupportedProvider](#supportedprovider), `txDefaults?`: `Partial`, `logDecodeDependencies?`: undefined | object, `deployedBytecode`: string | undefined): *[DevUtilsContract](#class-devutilscontract)* +**Returns:** *`Promise`* -*Overrides void* +___ -*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:5507](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L5507)* +### `Static` strictArgumentEncodingCheck -**Parameters:** +▸ **strictArgumentEncodingCheck**(`inputAbi`: `DataItem`[], `args`: any[]): *string* -Name | Type | Default | ------- | ------ | ------ | -`address` | string | - | -`supportedProvider` | [SupportedProvider](#supportedprovider) | - | -`txDefaults?` | `Partial` | - | -`logDecodeDependencies?` | undefined \| object | - | -`deployedBytecode` | string \| undefined | DevUtilsContract.deployedBytecode | -**Returns:** *[DevUtilsContract](#class-devutilscontract)* -## Properties - -#### abi - -• **abi**: *[ContractAbi](#contractabi)* +Defined in base-contract/lib/src/index.d.ts:42 +**Parameters:** +Name | Type | +------ | ------ | +`inputAbi` | `DataItem`[] | +`args` | any[] | -Defined in base-contract/lib/src/index.d.ts:27 +**Returns:** *string* -___ +
-### address +# Class: DummyERC20TokenContract -• **address**: *string* +## Constructors -Defined in base-contract/lib/src/index.d.ts:28 -___ +\+ **new DummyERC20TokenContract**(`address`: string, `supportedProvider`: [SupportedProvider](#supportedprovider), `txDefaults?`: `Partial`, `logDecodeDependencies?`: undefined | object, `deployedBytecode`: string | undefined): *[DummyERC20TokenContract](#class-dummyerc20tokencontract)* -Args +*Overrides void* -• **constructorArgs**: *any[]* +*Defined in [abi-gen-wrappers/src/generated-wrappers/dummy_erc20_token.ts:1690](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/dummy_erc20_token.ts#L1690)* +**Parameters:** +Name | Type | Default | +------ | ------ | ------ | +`address` | string | - | +`supportedProvider` | [SupportedProvider](#supportedprovider) | - | +`txDefaults?` | `Partial` | - | +`logDecodeDependencies?` | undefined \| object | - | +`deployedBytecode` | string \| undefined | DummyERC20TokenContract.deployedBytecode | -Defined in base-contract/lib/src/index.d.ts:30 +**Returns:** *[DummyERC20TokenContract](#class-dummyerc20tokencontract)* -___ +## Properties -### contractName +### `Optional` _deployedBytecodeIfExists -• **contractName**: *string* +• **_deployedBytecodeIfExists**? : *`Buffer`* -Defined in base-contract/lib/src/index.d.ts:29 +Defined in base-contract/lib/src/index.d.ts:32 ___ -### `Static` deployedBytecode - -▪ **deployedBytecode**: *string* = "0x608060405234801561001057600080fd5b506004361061025c5760003560e01c80639a7e752611610145578063cafd3a07116100bd578063d3d862d11161008c578063e4e6e7da11610071578063e4e6e7da1461063a578063e77286eb1461065b578063ee4f5a941461067d5761025c565b8063d3d862d114610605578063e25cabf7146106185761025c565b8063cafd3a071461059e578063d001c5dc146105bf578063d186037f146105d2578063d3637905146105e55761025c565b8063a6627e9f11610114578063b43cffe1116100f9578063b43cffe114610548578063bbb2dcf61461055b578063bc03f9641461057d5761025c565b8063a6627e9f14610512578063acaedc74146105255761025c565b80639a7e7526146104985780639eadc835146104bb578063a0901e51146104df578063a5cd62ba146104f25761025c565b8063459be5e2116101d85780636f83188e116101a75780637b66ad341161018c5780637b66ad34146104515780637d727512146104725780638f4ce479146104855761025c565b80636f83188e1461040d5780637914b2ec146104305761025c565b8063459be5e21461038a5780634dfdac20146103ab578063590aa875146103cb57806365129042146103eb5761025c565b80632322cf761161022f578063327d305411610214578063327d30541461033257806332aae3ad146103455780633db6dc61146103675761025c565b80632322cf76146102f0578063314853ff146103105761025c565b806302d0aec31461026157806304a5618a1461028b5780630d7b7d76146102ad578063165979e1146102ce575b600080fd5b61027461026f3660046149dd565b61069f565b6040516102829291906152e4565b60405180910390f35b61029e6102993660046149dd565b6106fb565b60405161028293929190615387565b6102c06102bb366004614565565b6107a9565b604051610282929190615292565b6102e16102dc3660046149dd565b6107cb565b604051610282939291906154c2565b6103036102fe366004614565565b610828565b6040516102829190615731565b61032361031e3660046149dd565b610850565b604051610282939291906152b9565b6102c06103403660046149dd565b610897565b6103586103533660046149dd565b6108d9565b60405161028293929190615438565b61037a6103753660046149dd565b61092c565b6040516102829493929190615258565b61039d6103983660046149dd565b610976565b6040516102829291906154ab565b6103be6103b936600461448c565b6109cc565b60405161028291906151f2565b6103de6103d936600461435d565b610a4f565b60405161028291906153e7565b6103fe6103f93660046149dd565b610ad3565b60405161028293929190614fdf565b61042061041b3660046149dd565b610b0d565b6040516102829493929190615535565b61044361043e3660046149dd565b61164e565b604051610282929190615301565b61046461045f3660046149dd565b611686565b604051610282929190614fc5565b610303610480366004614565565b6116be565b6104436104933660046149dd565b611dd3565b6104ab6104a63660046149dd565b611e63565b60405161028294939291906154f1565b6104ce6104c93660046149dd565b611ec4565b604051610282959493929190615324565b6103be6104ed3660046145d4565b611f6f565b61050561050036600461463a565b611fe8565b60405161028291906150f9565b6103de6105203660046145a9565b6120ac565b6105386105333660046149dd565b612133565b6040516102829493929190615055565b6103de6105563660046144da565b61216f565b61056e6105693660046149dd565b6121fc565b604051610282939291906153b2565b61059061058b3660046149dd565b6122a9565b6040516102829291906152a0565b6105b16105ac3660046149dd565b6122e2565b604051610282929190615528565b6103be6105cd36600461448c565b612330565b6103036105e0366004614565565b61239e565b6105f86105f3366004614a94565b6129e1565b60405161028291906154dd565b6103de6106133660046147e2565b612f7e565b61062b6106263660046146be565b612fb6565b60405161028293929190615146565b61064d61064836600461448c565b6130ee565b604051610282929190615233565b61066e610669366004614aec565b613107565b604051610282939291906156d5565b61069061068b3660046149dd565b613341565b60405161028293929190615481565b6000806106b3836106ae61337e565b6133a2565b60006106cc60048551866133fc9092919063ffffffff16565b8060200190516106df9190810190614990565b909350905060ff811660068111156106f357fe5b915050915091565b6000808061070f848263ffffffff61343f16565b92506001600160e01b031983167f02571792000000000000000000000000000000000000000000000000000000001461077d576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016107749061569e565b60405180910390fd5b61078e84601063ffffffff61347316565b91506107a184602463ffffffff6134a616565b929491935050565b6000806107b684846116be565b91506107c2848461239e565b90509250929050565b60008060006107dc846106ae6134b2565b60006107f560048651876133fc9092919063ffffffff16565b8060200190516108089190810190614d20565b9094509250905060ff8116600281111561081e57fe5b9350509193909250565b600080600061083785856107a9565b9150915061084582826134d6565b925050505b92915050565b6000606080610861846106ae6134ec565b835161087790859060049063ffffffff6133fc16565b80602001905161088a9190810190614930565b9196909550909350915050565b6000806108a6836106ae613510565b82516108bc90849060049063ffffffff6133fc16565b8060200190516108cf91908101906148d2565b9094909350915050565b60008060606108ea846106ae613534565b600061090360048651876133fc9092919063ffffffff16565b8060200190516109169190810190614cd4565b9094509250905060ff8116600181111561081e57fe5b60008060608061093e856106ae613558565b845161095490869060049063ffffffff6133fc16565b806020019051610967919081019061488e565b92989197509550909350915050565b600080610985836106ae61357c565b600061099e60048551866133fc9092919063ffffffff16565b8060200190516109b19190810190614c07565b9250905060ff811660038111156109c457fe5b925050915091565b6060600082519050806040519080825280602002602001820160405280156109fe578160200160208202803883390190505b50915060005b818114610a4757610a2885858381518110610a1b57fe5b602002602001015161239e565b838281518110610a3457fe5b6020908102919091010152600101610a04565b505092915050565b6040516060907ff47261b00000000000000000000000000000000000000000000000000000000090610a85908490602401614fb1565b60408051601f198184030181529190526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff166001600160e01b0319909316929092179091529050919050565b6000806000610ae4846106ae6135a0565b8351610afa90859060049063ffffffff6133fc16565b80602001905161088a91908101906143b2565b60608080806000610b24868263ffffffff61343f16565b90506001600160e01b031981167fdedfc1f1000000000000000000000000000000000000000000000000000000001415610b95576040518060400160405280601181526020017f626174636843616e63656c4f72646572730000000000000000000000000000008152509450611124565b6001600160e01b031981167f9694a402000000000000000000000000000000000000000000000000000000001415610c04576040518060400160405280600f81526020017f626174636846696c6c4f726465727300000000000000000000000000000000008152509450611124565b6001600160e01b031981167f8ea8dfe4000000000000000000000000000000000000000000000000000000001415610c73576040518060400160405280601681526020017f626174636846696c6c4f72646572734e6f5468726f77000000000000000000008152509450611124565b6001600160e01b031981167fbeee2e14000000000000000000000000000000000000000000000000000000001415610ce2576040518060400160405280601581526020017f626174636846696c6c4f724b696c6c4f726465727300000000000000000000008152509450611124565b6001600160e01b031981167f2da62987000000000000000000000000000000000000000000000000000000001415610d51576040518060400160405280600b81526020017f63616e63656c4f726465720000000000000000000000000000000000000000008152509450611124565b6001600160e01b031981167f9b44d556000000000000000000000000000000000000000000000000000000001415610dc0576040518060400160405280600981526020017f66696c6c4f7264657200000000000000000000000000000000000000000000008152509450611124565b6001600160e01b031981167fe14b58c4000000000000000000000000000000000000000000000000000000001415610e2f576040518060400160405280600f81526020017f66696c6c4f724b696c6c4f7264657200000000000000000000000000000000008152509450611124565b6001600160e01b031981167f78d29ac1000000000000000000000000000000000000000000000000000000001415610e9e576040518060400160405280601681526020017f6d61726b65744275794f72646572734e6f5468726f77000000000000000000008152509450611124565b6001600160e01b031981167f369da099000000000000000000000000000000000000000000000000000000001415610f0d576040518060400160405280601781526020017f6d61726b657453656c6c4f72646572734e6f5468726f770000000000000000008152509450611124565b6001600160e01b031981167f8bc8efb3000000000000000000000000000000000000000000000000000000001415610f7c576040518060400160405280601981526020017f6d61726b65744275794f726465727346696c6c4f724b696c6c000000000000008152509450611124565b6001600160e01b031981167fa6c3bf33000000000000000000000000000000000000000000000000000000001415610feb576040518060400160405280601a81526020017f6d61726b657453656c6c4f726465727346696c6c4f724b696c6c0000000000008152509450611124565b6001600160e01b031981167f88ec79fb00000000000000000000000000000000000000000000000000000000141561105a576040518060400160405280600b81526020017f6d617463684f72646572730000000000000000000000000000000000000000008152509450611124565b6001600160e01b031981167f4f9559b10000000000000000000000000000000000000000000000000000000014806110bb57506001600160e01b031981167f2280c91000000000000000000000000000000000000000000000000000000000145b156110f2576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161077490615630565b6040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610774906155f9565b6001600160e01b031981167fdedfc1f10000000000000000000000000000000000000000000000000000000014156111c957855161116c90879060049063ffffffff6135c416565b80602001905161117f9190810190614607565b604080516000808252602082019092529195505b50604080516000808252602082019092529194506111c1565b60608152602001906001900390816111ac5790505b509150611646565b6001600160e01b031981167fbeee2e1400000000000000000000000000000000000000000000000000000000148061122a57506001600160e01b031981167f9694a40200000000000000000000000000000000000000000000000000000000145b8061125e57506001600160e01b031981167f8ea8dfe400000000000000000000000000000000000000000000000000000000145b156112785761126c86613644565b91955093509150611646565b6001600160e01b031981167f2da629870000000000000000000000000000000000000000000000000000000014156113605760408051600180825281830190925290816020015b6112c7613c90565b8152602001906001900390816112bf57505086519094506112f290879060049063ffffffff6135c416565b8060200190516113059190810190614a61565b8460008151811061131257fe5b602002602001018190525060006040519080825280602002602001820160405280156111935781602001602082028038833901905050604080516000808252602082019092529194506111c1565b6001600160e01b031981167fe14b58c40000000000000000000000000000000000000000000000000000000014806113c157506001600160e01b031981167f9b44d55600000000000000000000000000000000000000000000000000000000145b156113cf5761126c86613673565b6001600160e01b031981167f78d29ac100000000000000000000000000000000000000000000000000000000148061143057506001600160e01b031981167f369da09900000000000000000000000000000000000000000000000000000000145b8061146457506001600160e01b031981167f8bc8efb300000000000000000000000000000000000000000000000000000000145b8061149857506001600160e01b031981167fa6c3bf3300000000000000000000000000000000000000000000000000000000145b156114a65761126c8661376d565b6001600160e01b031981167f88ec79fb000000000000000000000000000000000000000000000000000000001415611646576114e0613c90565b6114e8613c90565b60608061150260048b518c6135c49092919063ffffffff16565b8060200190516115159190810190614b43565b604080516002808252606082019092529498509296509094509250816020015b61153d613c90565b815260200190600190039081611535579050509750838860008151811061156057fe5b6020026020010181905250828860018151811061157957fe5b602090810291909101015260408051600280825260608201909252908160200160208202803883390190505096508360a00151876000815181106115b957fe5b6020026020010181815250508260a00151876001815181106115d757fe5b60209081029190910101526040805160028082526060820190925290816020015b60608152602001906001900390816115f8579050509550818660008151811061161d57fe5b6020026020010181905250808660018151811061163657fe5b6020026020010181905250505050505b509193509193565b60008061165d836106ae6137e1565b825161167390849060049063ffffffff6133fc16565b8060200190516108cf91908101906149b4565b600080611695836106ae613805565b82516116ab90849060049063ffffffff6133fc16565b8060200190516108cf9190810190614379565b6000806116d1838263ffffffff61343f16565b90506001600160e01b031981167ff47261b000000000000000000000000000000000000000000000000000000000141561184657600061171884601063ffffffff61347316565b6040519091506060907f70a082310000000000000000000000000000000000000000000000000000000090611751908890602401614fb1565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050905060006060836001600160a01b0316836040516117cc9190614f95565b600060405180830381855afa9150503d8060008114611807576040519150601f19603f3d011682016040523d82523d6000602084013e61180c565b606091505b509150915081801561181f575080516020145b61182a57600061183b565b61183b81600063ffffffff6134a616565b955050505050611dcc565b6001600160e01b031981167f025717920000000000000000000000000000000000000000000000000000000014156119e157600080611884856106fb565b6040519194509250606091507f6352211e00000000000000000000000000000000000000000000000000000000906118c0908490602401615731565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050905060006060846001600160a01b03168360405161193b9190614f95565b600060405180830381855afa9150503d8060008114611976576040519150601f19603f3d011682016040523d82523d6000602084013e61197b565b606091505b50915091506000828015611990575081516020145b61199b5760006119ac565b6119ac82600c63ffffffff61347316565b9050896001600160a01b0316816001600160a01b0316146119ce5760006119d1565b60015b60ff169750505050505050611dcc565b6001600160e01b031981167fa7cb5fb7000000000000000000000000000000000000000000000000000000001415611bc4576000606080611a2186611ec4565b5081519296509094509250905060005b818114611bba5783516060907efdd58e00000000000000000000000000000000000000000000000000000000908b90879085908110611a6c57fe5b6020026020010151604051602401611a85929190615089565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050905060006060876001600160a01b031683604051611b009190614f95565b600060405180830381855afa9150503d8060008114611b3b576040519150601f19603f3d011682016040523d82523d6000602084013e611b40565b606091505b50915091506000828015611b55575081516020145b611b60576000611b71565b611b7182600063ffffffff6134a616565b90506000878681518110611b8157fe5b60200260200101518281611b9157fe5b0490508b811080611ba057508b155b15611ba957809b505b505060019093019250611a31915050565b5050505050611dcc565b6001600160e01b031981167fc339d10a000000000000000000000000000000000000000000000000000000001415611d15576040516060907fa85e59e40000000000000000000000000000000000000000000000000000000090611c33908690600090819081906024016153fa565b60408051601f198184030181529181526020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff166001600160e01b03199094169390931790925260045491519092506000916001600160a01b031690611c9a908490614f95565b600060405180830381855afa9150503d8060008114611cd5576040519150601f19603f3d011682016040523d82523d6000602084013e611cda565b606091505b5050905080611cea576000611d0c565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff5b93505050611dcc565b6001600160e01b031981167f94cfcdd7000000000000000000000000000000000000000000000000000000001415611dcc57606080611d53856121fc565b80519194509250905060005b818114611dc7576000611d8589858481518110611d7857fe5b60200260200101516116be565b90506000858381518110611d9557fe5b60200260200101518281611da557fe5b04905087811080611db4575087155b15611dbd578097505b5050600101611d5f565b505050505b5092915050565b600080611de6838263ffffffff61343f16565b91506001600160e01b031982167ff47261b00000000000000000000000000000000000000000000000000000000014611e4b576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016107749061569e565b611e5c83601063ffffffff61347316565b9050915091565b60008060006060611e76856106ae613829565b6000611e8f60048751886133fc9092919063ffffffff16565b806020019051611ea29190810190614c76565b91965094509250905060ff81166006811115611eba57fe5b9450509193509193565b60008060608080611edb868563ffffffff61343f16565b94506001600160e01b031985167fa7cb5fb70000000000000000000000000000000000000000000000000000000014611f40576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016107749061569e565b505050506024828101516044840151606485015160848601519496929591820184019490820184019391010190565b6060808251604051908082528060200260200182016040528015611f9d578160200160208202803883390190505b50905060005b83518114611dcc57838181518110611fb757fe5b60200260200101516001600160a01b031631828281518110611fd557fe5b6020908102919091010152600101611fa3565b60606000845190508060405190808252806020026020018201604052801561201a578160200160208202803883390190505b50915060005b8181146120a25761206b86828151811061203657fe5b602002602001015186838151811061204a57fe5b602002602001015186848151811061205e57fe5b60200260200101516129e1565b83828151811061207757fe5b6020026020010190600481111561208a57fe5b9081600481111561209757fe5b905250600101612020565b50505b9392505050565b6040516060907f0257179200000000000000000000000000000000000000000000000000000000906120e49085908590602401615089565b60408051601f198184030181529190526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff166001600160e01b031990931692909217909152905092915050565b60006060806060612146856106ae61384d565b845161215c90869060049063ffffffff6133fc16565b80602001905161096791908101906143f4565b6040516060907fa7cb5fb700000000000000000000000000000000000000000000000000000000906121ab908790879087908790602401615003565b60408051601f198184030181529190526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff166001600160e01b0319909316929092179091529050949350505050565b6000606080612211848463ffffffff61343f16565b92506001600160e01b031983167f94cfcdd70000000000000000000000000000000000000000000000000000000014612276576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016107749061569e565b835161228c90859060049063ffffffff6135c416565b80602001905161229f9190810190614817565b9395909450915050565b600060606122b9836106ae613871565b82516122cf90849060049063ffffffff6133fc16565b8060200190516108cf91908101906148f5565b6000806122f1836106ae613895565b600061230a60048551866133fc9092919063ffffffff16565b80602001905161231d9190810190614c07565b9250905060ff811660018111156109c457fe5b606060008251905080604051908082528060200260200182016040528015612362578160200160208202803883390190505b50915060005b818114610a475761237f85858381518110611d7857fe5b83828151811061238b57fe5b6020908102919091010152600101612368565b6000806123b1838263ffffffff61343f16565b90506001600160e01b031981167f94cfcdd7000000000000000000000000000000000000000000000000000000001415612463576060806123f1856121fc565b80519194509250905060005b81811461245857600061241689858481518110610a1b57fe5b9050600085838151811061242657fe5b6020026020010151828161243657fe5b04905087811080612445575087155b1561244e578097505b50506001016123fd565b5061084a9350505050565b6001600160e01b031981167ff47261b00000000000000000000000000000000000000000000000000000000014156124ee5760006124a884601063ffffffff61347316565b6001546040519192506060917fdd62ed3e00000000000000000000000000000000000000000000000000000000916117519189916001600160a01b031690602401614fc5565b6001600160e01b031981167f025717920000000000000000000000000000000000000000000000000000000014156127de5760008061252c856106fb565b600254604051929550909350606092507fe985e9c50000000000000000000000000000000000000000000000000000000091612578918a916001600160a01b0390911690602401614fc5565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050905060006060846001600160a01b0316836040516125f39190614f95565b600060405180830381855afa9150503d806000811461262e576040519150601f19603f3d011682016040523d82523d6000602084013e612633565b606091505b509150915081158061264757508051602014155b80612663575061265e81600063ffffffff6134a616565b600114155b156127b1576040516060907f081812fc000000000000000000000000000000000000000000000000000000009061269e908790602401615731565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff83818316178352505050509050856001600160a01b0316816040516127159190614f95565b600060405180830381855afa9150503d8060008114612750576040519150601f19603f3d011682016040523d82523d6000602084013e612755565b606091505b509093509150828015612769575081516020145b801561279857506002546001600160a01b031661278d83600c63ffffffff61347316565b6001600160a01b0316145b6127a35760006127a6565b60015b60ff16975050611bba565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff96505050505050611dcc565b6001600160e01b031981167fa7cb5fb700000000000000000000000000000000000000000000000000000000141561298657600061281b84611ec4565b5050600354604051929450606093507fe985e9c50000000000000000000000000000000000000000000000000000000092612865925089916001600160a01b031690602401614fc5565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050905060006060836001600160a01b0316836040516128e09190614f95565b600060405180830381855afa9150503d806000811461291b576040519150601f19603f3d011682016040523d82523d6000602084013e612920565b606091505b5091509150818015612933575080516020145b801561294f575061294b81600063ffffffff6134a616565b6001145b61295a57600061183b565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff955050505050611dcc565b6001600160e01b031981167fc339d10a000000000000000000000000000000000000000000000000000000001415611dcc57507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff9392505050565b60006129eb613d23565b612a7c8584600560009054906101000a90046001600160a01b03166001600160a01b0316631ce4c78b6040518163ffffffff1660e01b815260040160206040518083038186803b158015612a3e57600080fd5b505afa158015612a52573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250612a769190810190614bef565b3a6138b9565b60408051600480825260a0820190925291925060609190816020015b6060815260200190600190039081612a9857505060408051600480825260a082019092529192506060919060208201608080388339505060408051600480825260a08201909252929350606092915060208201608080388339505060408051600480825260a0820190925292935060609291506020820160808038833901905050905088610160015184600081518110612b2e57fe5b60200260200101819052508783600081518110612b4757fe5b60200260200101906001600160a01b031690816001600160a01b031681525050886000015182600081518110612b7957fe5b60200260200101906001600160a01b031690816001600160a01b0316815250508681600081518110612ba757fe5b60200260200101818152505088610140015184600181518110612bc657fe5b6020026020010181905250886000015183600181518110612be357fe5b60200260200101906001600160a01b031690816001600160a01b0316815250508782600181518110612c1157fe5b60200260200101906001600160a01b031690816001600160a01b031681525050846000015181600181518110612c4357fe5b602002602001018181525050886101a0015184600281518110612c6257fe5b60200260200101819052508783600281518110612c7b57fe5b60200260200101906001600160a01b031690816001600160a01b031681525050886040015182600281518110612cad57fe5b60200260200101906001600160a01b031690816001600160a01b031681525050846060015181600281518110612cdf57fe5b60200260200101818152505088610180015184600381518110612cfe57fe5b6020026020010181905250886000015183600381518110612d1b57fe5b60200260200101906001600160a01b031690816001600160a01b031681525050886040015182600381518110612d4d57fe5b60200260200101906001600160a01b031690816001600160a01b031681525050846040015181600381518110612d7f57fe5b60209081029190910101526040516060907fb04fbddd0000000000000000000000000000000000000000000000000000000090612dc69087908790879087906024016150a2565b60408051601f198184030181529181526020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff166001600160e01b03199094169390931790925260055491519092506060916001600160a01b031690612e2d908490614f95565b6000604051808303816000865af19150503d8060008114612e6a576040519150601f19603f3d011682016040523d82523d6000602084013e612e6f565b606091505b50915060009050612e86828263ffffffff61343f16565b9050612e90613534565b6001600160e01b031982811691161415612ed2576000612eaf836108d9565b5091505060ff81166004811115612ec257fe5b99505050505050505050506120a5565b612eda6134ec565b6001600160e01b031982811691161415612f0d576000612ef983610850565b509091505060ff81166004811115612ec257fe5b815160208301207ff43f26ea5a94b478394a975e856464913dc1a8a1ca70939d974aa7c238aa0ce01415612f4c576004985050505050505050506120a5565b6040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610774906155c2565b6040516060907f94cfcdd700000000000000000000000000000000000000000000000000000000906120e49085908590602401615205565b606080606060008551905080604051908082528060200260200182016040528015612ffb57816020015b612fe8613d52565b815260200190600190039081612fe05790505b50935080604051908082528060200260200182016040528015613028578160200160208202803883390190505b50925080604051908082528060200260200182016040528015613055578160200160208202803883390190505b50915060005b8181146130e55761309287828151811061307157fe5b602002602001015187838151811061308557fe5b6020026020010151613107565b87518890859081106130a057fe5b602002602001018785815181106130b357fe5b602002602001018786815181106130c657fe5b931515602094850291909101909301929092529190525260010161305b565b50509250925092565b6060806130fb8484612330565b91506107c284846109cc565b61310f613d52565b600080546040517f9d3fa4b900000000000000000000000000000000000000000000000000000000815282916001600160a01b031690639d3fa4b9906131599088906004016156f9565b60606040518083038186803b15801561317157600080fd5b505afa158015613185573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052506131a99190810190614a10565b85516000546040517fa12dcc6f00000000000000000000000000000000000000000000000000000000815292955090916001600160a01b039091169063a12dcc6f906131fb908990899060040161570c565b60206040518083038186803b15801561321357600080fd5b505afa158015613227573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525061324b919081019061486e565b9150600061325e82886101400151610828565b60a088015160c08901516101808a01516101408b01519394509192909160009161328d9163ffffffff61393016565b156132ba576132b3846132ad848d6080015161395590919063ffffffff16565b85613971565b9050613313565b816132ce576132b3848b6080015185613971565b60006132df868c6101800151610828565b905060006132f2868d6080015187613971565b90506000613301838688613971565b905061330d82826134d6565b93505050505b61333361332d89604001518561399b90919063ffffffff16565b826134d6565b965050505050509250925092565b6000806000613352846106ae6139ba565b600061336b60048651876133fc9092919063ffffffff16565b8060200190516108089190810190614c34565b7ffdb6ca8d0000000000000000000000000000000000000000000000000000000090565b60006133af83600061343f565b90506001600160e01b0319808216908316146133f7576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161077490615667565b505050565b60608183111561341a5761341a613415600085856139de565b613a4d565b83518211156134335761343361341560018487516139de565b50819003910190815290565b600081600401835110156134605761346061341560038551856004016139de565b5001602001516001600160e01b03191690565b600081601401835110156134945761349461341560048551856014016139de565b5001601401516001600160a01b031690565b60006120a58383613a55565b7f18e4b1410000000000000000000000000000000000000000000000000000000090565b60008183106134e557816120a5565b5090919050565b7f4678472b0000000000000000000000000000000000000000000000000000000090565b7fb6555d6f0000000000000000000000000000000000000000000000000000000090565b7f488219a60000000000000000000000000000000000000000000000000000000090565b7f1b8388f70000000000000000000000000000000000000000000000000000000090565b7fe94a7ed00000000000000000000000000000000000000000000000000000000090565b7f4ad312750000000000000000000000000000000000000000000000000000000090565b6060818311156135dd576135dd613415600085856139de565b83518211156135f6576135f661341560018487516139de565b8282036040519080825280601f01601f191660200182016040528015613623576020820181803883390190505b5090506120a561363282613a7f565b8461363c87613a7f565b018351613a85565b606080606061366060048551866135c49092919063ffffffff16565b80602001905161088a9190810190614715565b60408051600180825281830190925260609182918291816020015b613696613c90565b81526020019060019003908161368e5750506040805160018082528183019092529194506020808301908038833901905050604080516001808252818301909252919350816020015b60608152602001906001900390816136df575050845190915061370c90859060049063ffffffff6135c416565b80602001905161371f9190810190614b9c565b8560008151811061372c57fe5b602002602001018560008151811061374057fe5b602002602001018560008151811061375457fe5b6020908102919091010192909252919052529193909250565b6040805160018082528183019092526060918291829160208083019080388339505085519193506137a99186915060049063ffffffff6135c416565b8060200190516137bc919081019061478f565b845185906000906137c957fe5b60209081029190910101919091529095929450925050565b7f11c7b7200000000000000000000000000000000000000000000000000000000090565b7fa15c0d060000000000000000000000000000000000000000000000000000000090565b7f7e5a23180000000000000000000000000000000000000000000000000000000090565b7f5bd0428d0000000000000000000000000000000000000000000000000000000090565b7f20d11f610000000000000000000000000000000000000000000000000000000090565b7ff59851840000000000000000000000000000000000000000000000000000000090565b6138c1613d23565b6020810184905260a085015160808601516138dd918691613b2a565b815260a085015160c08601516138f4918691613b2a565b604082015260a085015160e086015161390e918691613b2a565b6060820152613923828463ffffffff613b5e16565b6080820152949350505050565b6000815183511480156120a55750508051602091820120825192909101919091201490565b6000828201838110156120a5576120a561341560008686613b8b565b600061399383613987868563ffffffff613b5e16565b9063ffffffff613baa16565b949350505050565b6000828211156139b4576139b461341560028585613b8b565b50900390565b7fe53c76c80000000000000000000000000000000000000000000000000000000090565b6060632800659560e01b8484846040516024016139fd939291906154cf565b60408051601f198184030181529190526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff166001600160e01b03199093169290921790915290509392505050565b805160208201fd5b60008160200183511015613a7657613a7661341560058551856020016139de565b50016020015190565b60200190565b6020811015613aaf576001816020036101000a0380198351168185511680821786525050506133f7565b82821415613abc576133f7565b82821115613af65760208103905080820181840181515b82851015613aee578451865260209586019590940193613ad3565b9052506133f7565b60208103905080820181840183515b81861215613b215782518252601f199283019290910190613b05565b85525050505050565b6000613b37848484613bd4565b15613b4a57613b4a613415858585613c3a565b61399383613987868563ffffffff613b5e16565b600082613b6d5750600061084a565b82820282848281613b7a57fe5b04146120a5576120a5613415600186865b606063e946c1bb60e01b8484846040516024016139fd93929190615460565b600081613bc057613bc061341560038585613b8b565b6000828481613bcb57fe5b04949350505050565b600082613be657613be6613415613c59565b811580613bf1575083155b15613bfe575060006120a5565b60008380613c0857fe5b8584099050613c1d858463ffffffff613b5e16565b613c2f826103e863ffffffff613b5e16565b101595945050505050565b606063339f3de260e01b8484846040516024016139fd9392919061573a565b60408051808201909152600481527fa791837c00000000000000000000000000000000000000000000000000000000602082015290565b604051806101c0016040528060006001600160a01b0316815260200160006001600160a01b0316815260200160006001600160a01b0316815260200160006001600160a01b03168152602001600081526020016000815260200160008152602001600081526020016000815260200160008152602001606081526020016060815260200160608152602001606081525090565b6040518060a0016040528060008152602001600081526020016000815260200160008152602001600081525090565b604080516060810182526000808252602082018190529181019190915290565b803561084a81615816565b805161084a81615816565b600082601f830112613d98578081fd5b8135613dab613da682615777565b615750565b818152915060208083019084810181840286018201871015613dcc57600080fd5b60005b84811015611dc7578135613de281615816565b84529282019290820190600101613dcf565b600082601f830112613e04578081fd5b8151613e12613da682615777565b8181529150602080830190840160005b83811015613e4f57613e3a8760208451890101614074565b83526020928301929190910190600101613e22565b5050505092915050565b600082601f830112613e69578081fd5b8135613e77613da682615777565b8181529150602080830190840160005b83811015613e4f57613e9f8760208435890101614026565b83526020928301929190910190600101613e87565b600082601f830112613ec4578081fd5b8151613ed2613da682615777565b8181529150602080830190840160005b83811015613e4f57613efa8760208451890101614209565b83526020928301929190910190600101613ee2565b600082601f830112613f1f578081fd5b8135613f2d613da682615777565b8181529150602080830190840160005b83811015613e4f57613f5587602084358901016140ba565b83526020928301929190910190600101613f3d565b600082601f830112613f7a578081fd5b8151613f88613da682615777565b818152915060208083019084810181840286018201871015613fa957600080fd5b60005b84811015611dc757815184529282019290820190600101613fac565b600082601f830112613fd8578081fd5b8135613fe6613da682615777565b81815291506020808301908481018184028601820187101561400757600080fd5b60005b84811015611dc75781358452928201929082019060010161400a565b600082601f830112614036578081fd5b8135614044613da682615797565b915080825283602082850101111561405b57600080fd5b8060208401602084013760009082016020015292915050565b600082601f830112614084578081fd5b8151614092613da682615797565b91508082528360208285010111156140a957600080fd5b611dcc8160208401602086016157bb565b60006101c08083850312156140cd578182fd5b6140d681615750565b9150506140e38383613d72565b81526140f28360208401613d72565b60208201526141048360408401613d72565b60408201526141168360608401613d72565b60608201526080820135608082015260a082013560a082015260c082013560c082015260e082013560e08201526101008083013581830152506101208083013581830152506101408083013567ffffffffffffffff8082111561417857600080fd5b61418486838701614026565b838501526101609250828501359150808211156141a057600080fd5b6141ac86838701614026565b838501526101809250828501359150808211156141c857600080fd5b6141d486838701614026565b838501526101a09250828501359150808211156141f057600080fd5b506141fd85828601614026565b82840152505092915050565b60006101c080838503121561421c578182fd5b61422581615750565b9150506142328383613d7d565b81526142418360208401613d7d565b60208201526142538360408401613d7d565b60408201526142658360608401613d7d565b60608201526080820151608082015260a082015160a082015260c082015160c082015260e082015160e08201526101008083015181830152506101208083015181830152506101408083015167ffffffffffffffff808211156142c757600080fd5b6142d386838701614074565b838501526101609250828501519150808211156142ef57600080fd5b6142fb86838701614074565b8385015261018092508285015191508082111561431757600080fd5b61432386838701614074565b838501526101a092508285015191508082111561433f57600080fd5b506141fd85828601614074565b805160ff8116811461084a57600080fd5b60006020828403121561436e578081fd5b81356120a581615816565b6000806040838503121561438b578081fd5b825161439681615816565b60208401519092506143a781615816565b809150509250929050565b6000806000606084860312156143c6578081fd5b83516143d181615816565b60208501519093506143e281615816565b80925050604084015190509250925092565b60008060008060808587031215614409578182fd5b845161441481615816565b602086015190945067ffffffffffffffff80821115614431578384fd5b61443d88838901614074565b94506040870151915080821115614452578384fd5b61445e88838901614074565b93506060870151915080821115614473578283fd5b5061448087828801614074565b91505092959194509250565b6000806040838503121561449e578182fd5b82356144a981615816565b9150602083013567ffffffffffffffff8111156144c4578182fd5b6144d085828601613e59565b9150509250929050565b600080600080608085870312156144ef578182fd5b84356144fa81615816565b9350602085013567ffffffffffffffff80821115614516578384fd5b61452288838901613fc8565b94506040870135915080821115614537578384fd5b61454388838901613fc8565b93506060870135915080821115614558578283fd5b5061448087828801614026565b60008060408385031215614577578182fd5b823561458281615816565b9150602083013567ffffffffffffffff81111561459d578182fd5b6144d085828601614026565b600080604083850312156145bb578182fd5b82356145c681615816565b946020939093013593505050565b6000602082840312156145e5578081fd5b813567ffffffffffffffff8111156145fb578182fd5b61399384828501613d88565b600060208284031215614618578081fd5b815167ffffffffffffffff81111561462e578182fd5b61399384828501613eb4565b60008060006060848603121561464e578081fd5b833567ffffffffffffffff80821115614665578283fd5b61467187838801613f0f565b94506020860135915080821115614686578283fd5b61469287838801613d88565b935060408601359150808211156146a7578283fd5b506146b486828701613fc8565b9150509250925092565b600080604083850312156146d0578182fd5b823567ffffffffffffffff808211156146e7578384fd5b6146f386838701613f0f565b93506020850135915080821115614708578283fd5b506144d085828601613e59565b600080600060608486031215614729578081fd5b835167ffffffffffffffff80821115614740578283fd5b61474c87838801613eb4565b94506020860151915080821115614761578283fd5b61476d87838801613f6a565b93506040860151915080821115614782578283fd5b506146b486828701613df4565b6000806000606084860312156147a3578081fd5b835167ffffffffffffffff808211156147ba578283fd5b6147c687838801613eb4565b9450602086015193506040860151915080821115614782578283fd5b600080604083850312156147f4578182fd5b823567ffffffffffffffff8082111561480b578384fd5b6146f386838701613fc8565b60008060408385031215614829578182fd5b825167ffffffffffffffff80821115614840578384fd5b61484c86838701613f6a565b93506020850151915080821115614861578283fd5b506144d085828601613df4565b60006020828403121561487f578081fd5b815180151581146120a5578182fd5b600080600080608085870312156148a3578182fd5b8451935060208501516148b581615816565b604086015190935067ffffffffffffffff80821115614452578384fd5b600080604083850312156148e4578182fd5b505080516020909101519092909150565b60008060408385031215614907578182fd5b82519150602083015167ffffffffffffffff811115614924578182fd5b6144d085828601614074565b600080600060608486031215614944578081fd5b83519250602084015167ffffffffffffffff80821115614962578283fd5b61496e87838801614074565b93506040860151915080821115614983578283fd5b506146b486828701614074565b600080604083850312156149a2578182fd5b8251915060208301516143a78161582b565b600080604083850312156149c6578182fd5b82516001600160e01b031981168114614396578283fd5b6000602082840312156149ee578081fd5b813567ffffffffffffffff811115614a04578182fd5b61399384828501614026565b60006060828403128015614a22578182fd5b8015614a2c578182fd5b50614a376060615750565b8251614a428161582b565b8152602083810151908201526040928301519281019290925250919050565b600060208284031215614a72578081fd5b815167ffffffffffffffff811115614a88578182fd5b61399384828501614209565b600080600060608486031215614aa8578081fd5b833567ffffffffffffffff811115614abe578182fd5b614aca868287016140ba565b9350506020840135614adb81615816565b929592945050506040919091013590565b60008060408385031215614afe578182fd5b823567ffffffffffffffff80821115614b15578384fd5b614b21868387016140ba565b93506020850135915080821115614b36578283fd5b506144d085828601614026565b60008060008060808587031215614b58578182fd5b845167ffffffffffffffff80821115614b6f578384fd5b614b7b88838901614209565b95506020870151915080821115614b90578384fd5b61443d88838901614209565b600080600060608486031215614bb0578081fd5b835167ffffffffffffffff80821115614bc7578283fd5b614bd387838801614209565b9450602086015193506040860151915080821115614983578283fd5b600060208284031215614c00578081fd5b5051919050565b60008060408385031215614c19578182fd5b8251614c248161582b565b6020939093015192949293505050565b600080600060608486031215614c48578081fd5b8351614c538161582b565b602085015160408601519194509250614c6b81615816565b809150509250925092565b60008060008060808587031215614c8b578182fd5b614c95868661434c565b9350602085015192506040850151614cac81615816565b606086015190925067ffffffffffffffff811115614cc8578182fd5b61448087828801614074565b600080600060608486031215614ce8578081fd5b614cf2858561434c565b925060208401519150604084015167ffffffffffffffff811115614d14578182fd5b6146b486828701614074565b600080600060608486031215614d34578081fd5b614d3e858561434c565b925060208401519150604084015190509250925092565b1515815260200190565b6000614d6b8383614e78565b505060600190565b6001600160a01b03169052565b6000815180845260208401935060208301825b82811015614dba5781516001600160a01b0316865260209586019590910190600101614d93565b5093949350505050565b600081518084526020840180819550602083028101915060208501845b84811015614e0f578284038852614df9848351614e4c565b6020988901989094509190910190600101614de1565b50919695505050505050565b6000815180845260208401935060208301825b82811015614dba578151865260209586019590910190600101614e2e565b60008151808452614e648160208601602086016157bb565b601f01601f19169290920160200192915050565b805160ff16825260208082015190830152604090810151910152565b60006101c0614ea4848451614d73565b6020830151614eb66020860182614d73565b506040830151614ec96040860182614d73565b506060830151614edc6060860182614d73565b506080830151608085015260a083015160a085015260c083015160c085015260e083015160e0850152610100808401518186015250610120808401518186015250610140808401518282870152614f3583870182614e4c565b91505061016091508184015185820383870152614f528282614e4c565b925050506101808084015185830382870152614f6e8382614e4c565b9150506101a091508184015185820383870152614f8b8282614e4c565b9695505050505050565b60008251614fa78184602087016157bb565b9190910192915050565b6001600160a01b0391909116815260200190565b6001600160a01b0392831681529116602082015260400190565b6001600160a01b039384168152919092166020820152604081019190915260600190565b60006001600160a01b0386168252608060208301526150256080830186614e1b565b82810360408401526150378186614e1b565b83810360608501526150498186614e4c565b98975050505050505050565b60006001600160a01b0386168252608060208301526150776080830186614e4c565b82810360408401526150378186614e4c565b6001600160a01b03929092168252602082015260400190565b6000608082526150b56080830187614dc4565b82810360208401526150c78187614d80565b83810360408501526150d98187614d80565b91505082810360608401526150ee8185614e1b565b979650505050505050565b602080825282518282018190526000918401906040840190835b8181101561513b5783516005811061512757fe5b835260209384019390920191600101615113565b509095945050505050565b6000606082016060835280865161515d8184615731565b9150602088019250835b8181101561518b5761517a838551614d5f565b602094909401939250600101615167565b5050838103602085015261519f8187614e1b565b91505082810360408401528084516151b78184615731565b9150602086019250835b818110156151e5576151d4838551614d55565b6020949094019392506001016151c1565b5090979650505050505050565b6000602082526120a56020830184614e1b565b6000604082526152186040830185614e1b565b828103602084015261522a8185614dc4565b95945050505050565b6000604082526152466040830185614e1b565b828103602084015261522a8185614e1b565b60008582526001600160a01b0385166020830152608060408301526152806080830185614e4c565b82810360608401526150ee8185614e4c565b918252602082015260400190565b6000838252604060208301526139936040830184614e4c565b6000848252606060208301526152d26060830185614e4c565b8281036040840152614f8b8185614e4c565b828152604081016152f48361580c565b8260208301529392505050565b6001600160e01b03199290921682526001600160a01b0316602082015260400190565b60006001600160e01b0319871682526001600160a01b038616602083015260a0604083015261535660a0830186614e1b565b82810360608401526153688186614e1b565b838103608085015261537a8186614e4c565b9998505050505050505050565b6001600160e01b03199390931683526001600160a01b03919091166020830152604082015260600190565b60006001600160e01b031985168252606060208301526153d56060830185614e1b565b8281036040840152614f8b8185614dc4565b6000602082526120a56020830184614e4c565b60006080825261540d6080830187614e4c565b6001600160a01b03958616602084015293909416604082015260ff9190911660609091015292915050565b6000615443856157eb565b8482528360208301526060604083015261522a6060830184614e4c565b6060810161546d856157f8565b938152602081019290925260409091015290565b6060810161548e85615802565b93815260208101929092526001600160a01b031660409091015290565b604081016154b8846157f8565b9281526020015290565b6060810161546d85615802565b606081016008851061546d57fe5b60208101600583106154eb57fe5b91905290565b60006154fc8661580c565b8582528460208301526001600160a01b038416604083015260806060830152614f8b6080830184614e4c565b604081016154b8846157eb565b6000608082526155486080830187614e4c565b602083820381850152818751808452828401915082838202850101838a01865b8381101561559657601f19878403018552615584838351614e94565b94860194925090850190600101615568565b505086810360408801526155aa818a614e1b565b94505050505082810360608401526150ee8185614dc4565b60208082526013908201527f554e4b4e4f574e5f52455455524e5f4441544100000000000000000000000000604082015260600190565b60208082526019908201527f554e4b4e4f574e5f46554e4354494f4e5f53454c4543544f5200000000000000604082015260600190565b6020808252600d908201527f554e494d504c454d454e54454400000000000000000000000000000000000000604082015260600190565b6020808252600c908201527f4241445f53454c4543544f520000000000000000000000000000000000000000604082015260600190565b6020808252600e908201527f57524f4e475f50524f58595f4944000000000000000000000000000000000000604082015260600190565b60a081016156e38286614e78565b8360608301528215156080830152949350505050565b6000602082526120a56020830184614e94565b60006040825261571f6040830185614e94565b828103602084015261522a8185614e4c565b90815260200190565b9283526020830191909152604082015260600190565b60405181810167ffffffffffffffff8111828210171561576f57600080fd5b604052919050565b600067ffffffffffffffff82111561578d578081fd5b5060209081020190565b600067ffffffffffffffff8211156157ad578081fd5b50601f01601f191660200190565b60005b838110156157d65781810151838201526020016157be565b838111156157e5576000848401525b50505050565b600281106157f557fe5b50565b600481106157f557fe5b600381106157f557fe5b600781106157f557fe5b6001600160a01b03811681146157f557600080fd5b60ff811681146157f557600080fdfea365627a7a723158200ea049525ebc74d73f3bf7858c601bd21168267b0dfb4abbdb7787cfd7233a2c6c6578706572696d656e74616cf564736f6c634300050c0040" +### abi -*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:31](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L31)* +• **abi**: *[ContractAbi](#contractabi)* -## Methods -### evmExecAsync -▸ **evmExecAsync**(`input`: `Buffer`): *`Promise`* +Defined in base-contract/lib/src/index.d.ts:28 +___ +### address -Defined in base-contract/lib/src/index.d.ts:42 +• **address**: *string* -**Parameters:** -Name | Type | ------- | ------ | -`input` | `Buffer` | -**Returns:** *`Promise`* +Defined in base-contract/lib/src/index.d.ts:29 ___ -### `Static` ABI +Args -▸ **ABI**(): *[ContractAbi](#contractabi)* +• **constructorArgs**: *any[]* -*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:4241](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L4241)* -**Returns:** *[ContractAbi](#contractabi)* -The contract ABI +Defined in base-contract/lib/src/index.d.ts:31 ___ -### `Static` deployAsync - -▸ **deployAsync**(`bytecode`: string, `abi`: [ContractAbi](#contractabi), `supportedProvider`: [SupportedProvider](#supportedprovider), `txDefaults`: `Partial`, `logDecodeDependencies`: object, `_exchange`: string): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:4194](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L4194)* - -**Parameters:** +### contractName -Name | Type | ------- | ------ | -`bytecode` | string | -`abi` | [ContractAbi](#contractabi) | -`supportedProvider` | [SupportedProvider](#supportedprovider) | -`txDefaults` | `Partial` | -`logDecodeDependencies` | object | -`_exchange` | string | +• **contractName**: *string* -**Returns:** *`Promise`* -___ -### `Static` deployFrom0xArtifactAsync +Defined in base-contract/lib/src/index.d.ts:30 -▸ **deployFrom0xArtifactAsync**(`artifact`: `ContractArtifact` | `SimpleContractArtifact`, `supportedProvider`: [SupportedProvider](#supportedprovider), `txDefaults`: `Partial`, `logDecodeDependencies`: object, `_exchange`: string): *`Promise`* +## Methods -*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:4161](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L4161)* +### MAX_MINT_AMOUNT -**Parameters:** +▸ **MAX_MINT_AMOUNT**(): *`ContractFunctionObj`* -Name | Type | ------- | ------ | -`artifact` | `ContractArtifact` \| `SimpleContractArtifact` | -`supportedProvider` | [SupportedProvider](#supportedprovider) | -`txDefaults` | `Partial` | -`logDecodeDependencies` | object | -`_exchange` | string | +*Defined in [abi-gen-wrappers/src/generated-wrappers/dummy_erc20_token.ts:503](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/dummy_erc20_token.ts#L503)* -**Returns:** *`Promise`* +**Returns:** *`ContractFunctionObj`* ___ -### `Static` strictArgumentEncodingCheck - -▸ **strictArgumentEncodingCheck**(`inputAbi`: `DataItem`[], `args`: any[]): *string* - +### allowance +▸ **allowance**(`_owner`: string, `_spender`: string): *`ContractFunctionObj`* -Defined in base-contract/lib/src/index.d.ts:41 +*Defined in [abi-gen-wrappers/src/generated-wrappers/dummy_erc20_token.ts:550](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/dummy_erc20_token.ts#L550)* **Parameters:** Name | Type | ------ | ------ | -`inputAbi` | `DataItem`[] | -`args` | any[] | - -**Returns:** *string* - -## Object literals - -### decodeAssetProxyDispatchError - -#### ▪ **decodeAssetProxyDispatchError**: *object* +`_owner` | string | +`_spender` | string | -*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:36](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L36)* +**Returns:** *`ContractFunctionObj`* -Decompose an ABI-encoded AssetProxyDispatchError. +___ -#### callAsync +### approve -▸ **callAsync**(`encoded`: string, `callData`: `Partial`, `defaultBlock?`: [BlockParam](#blockparam)): *`Promise<[number, string, string]>`* +▸ **approve**(`_spender`: string, `_value`: `BigNumber`): *`ContractTxFunctionObj`* -*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:44](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L44)* +*Defined in [abi-gen-wrappers/src/generated-wrappers/dummy_erc20_token.ts:611](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/dummy_erc20_token.ts#L611)* -Sends a read-only call to the contract method. Returns the result that would happen if one were to send an -Ethereum transaction to this method, given the current state of the blockchain. Calls do not cost gas -since they don't modify state. +`msg.sender` approves `_spender` to spend `_value` tokens **Parameters:** -Name | Type | Default | Description | ------- | ------ | ------ | ------ | -`encoded` | string | - | ABI-encoded revert error. | -`callData` | `Partial` | {} | - | -`defaultBlock?` | [BlockParam](#blockparam) | - | - | +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:** *`Promise<[number, string, string]>`* +**Returns:** *`ContractTxFunctionObj`* -errorCode The error code.orderHash Hash of the order being dispatched.assetData Asset data of the order being dispatched. +Always true if the call has enough gas to complete execution + +___ -#### getABIDecodedReturnData +### balanceOf -▸ **getABIDecodedReturnData**(`returnData`: string): *[number, string, string]* +▸ **balanceOf**(`_owner`: string): *`ContractFunctionObj`* -*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:109](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L109)* +*Defined in [abi-gen-wrappers/src/generated-wrappers/dummy_erc20_token.ts:735](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/dummy_erc20_token.ts#L735)* -Decode the ABI-encoded return data from a transaction +Query the balance of owner **Parameters:** Name | Type | Description | ------ | ------ | ------ | -`returnData` | string | the data returned after transaction execution | - -**Returns:** *[number, string, string]* +`_owner` | string | The address from which the balance will be retrieved | -An array representing the output results in order. Keynames of nested structs are preserved. +**Returns:** *`ContractFunctionObj`* -#### getABIDecodedTransactionData +Balance of owner -▸ **getABIDecodedTransactionData**(`callData`: string): *[string]* +___ -*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:97](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L97)* +### decimals -Decode the ABI-encoded transaction data into its input arguments +▸ **decimals**(): *`ContractFunctionObj`* -**Parameters:** +*Defined in [abi-gen-wrappers/src/generated-wrappers/dummy_erc20_token.ts:785](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/dummy_erc20_token.ts#L785)* -Name | Type | Description | ------- | ------ | ------ | -`callData` | string | The ABI-encoded transaction data | +**Returns:** *`ContractFunctionObj`* -**Returns:** *[string]* +___ -An array representing the input arguments in order. Keynames of nested structs are preserved. +### getABIDecodedReturnData -#### getABIEncodedTransactionData +▸ **getABIDecodedReturnData**<**T**>(`methodName`: string, `callData`: string): *`T`* -▸ **getABIEncodedTransactionData**(`encoded`: string): *string* +*Defined in [abi-gen-wrappers/src/generated-wrappers/dummy_erc20_token.ts:489](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/dummy_erc20_token.ts#L489)* -*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:84](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L84)* +**Type parameters:** -Returns the ABI encoded transaction data needed to send an Ethereum transaction calling this method. Before -sending the Ethereum tx, this encoded tx data can first be sent to a separate signing service or can be used -to create a 0x transaction (see protocol spec for more details). +▪ **T** **Parameters:** -Name | Type | Description | ------- | ------ | ------ | -`encoded` | string | ABI-encoded revert error. | - -**Returns:** *string* +Name | Type | +------ | ------ | +`methodName` | string | +`callData` | string | -The ABI encoded transaction data as a string +**Returns:** *`T`* ___ -### decodeAssetProxyExistsError - -#### ▪ **decodeAssetProxyExistsError**: *object* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:120](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L120)* - -Decompose an ABI-encoded AssetProxyExistsError. +### getABIDecodedTransactionData -#### callAsync +▸ **getABIDecodedTransactionData**<**T**>(`methodName`: string, `callData`: string): *`T`* -▸ **callAsync**(`encoded`: string, `callData`: `Partial`, `defaultBlock?`: [BlockParam](#blockparam)): *`Promise<[string, string]>`* +*Defined in [abi-gen-wrappers/src/generated-wrappers/dummy_erc20_token.ts:482](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/dummy_erc20_token.ts#L482)* -*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:128](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L128)* +**Type parameters:** -Sends a read-only call to the contract method. Returns the result that would happen if one were to send an -Ethereum transaction to this method, given the current state of the blockchain. Calls do not cost gas -since they don't modify state. +▪ **T** **Parameters:** -Name | Type | Default | Description | ------- | ------ | ------ | ------ | -`encoded` | string | - | ABI-encoded revert error. | -`callData` | `Partial` | {} | - | -`defaultBlock?` | [BlockParam](#blockparam) | - | - | - -**Returns:** *`Promise<[string, string]>`* +Name | Type | +------ | ------ | +`methodName` | string | +`callData` | string | -assetProxyId Id of asset proxy.assetProxyAddress The address of the asset proxy. +**Returns:** *`T`* -#### getABIDecodedReturnData +___ -▸ **getABIDecodedReturnData**(`returnData`: string): *[string, string]* +### getFunctionSignature -*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:193](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L193)* +▸ **getFunctionSignature**(`methodName`: string): *string* -Decode the ABI-encoded return data from a transaction +*Defined in [abi-gen-wrappers/src/generated-wrappers/dummy_erc20_token.ts:476](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/dummy_erc20_token.ts#L476)* **Parameters:** -Name | Type | Description | ------- | ------ | ------ | -`returnData` | string | the data returned after transaction execution | +Name | Type | +------ | ------ | +`methodName` | string | + +**Returns:** *string* + +___ -**Returns:** *[string, string]* +### getLogsAsync -An array representing the output results in order. Keynames of nested structs are preserved. +▸ **getLogsAsync**<**ArgsType**>(`eventName`: [DummyERC20TokenEvents](#enumeration-dummyerc20tokenevents), `blockRange`: `BlockRange`, `indexFilterValues`: `IndexedFilterValues`): *`Promise>>`* -#### getABIDecodedTransactionData +*Defined in [abi-gen-wrappers/src/generated-wrappers/dummy_erc20_token.ts:1674](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/dummy_erc20_token.ts#L1674)* -▸ **getABIDecodedTransactionData**(`callData`: string): *[string]* +Gets historical logs without creating a subscription -*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:181](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L181)* +**Type parameters:** -Decode the ABI-encoded transaction data into its input arguments +▪ **ArgsType**: *[DummyERC20TokenEventArgs](#dummyerc20tokeneventargs)* **Parameters:** Name | Type | Description | ------ | ------ | ------ | -`callData` | string | The ABI-encoded transaction data | +`eventName` | [DummyERC20TokenEvents](#enumeration-dummyerc20tokenevents) | The DummyERC20Token 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:** *[string]* +**Returns:** *`Promise>>`* -An array representing the input arguments in order. Keynames of nested structs are preserved. +Array of logs that match the parameters -#### getABIEncodedTransactionData +___ -▸ **getABIEncodedTransactionData**(`encoded`: string): *string* +### getSelector -*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:168](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L168)* +▸ **getSelector**(`methodName`: string): *string* -Returns the ABI encoded transaction data needed to send an Ethereum transaction calling this method. Before -sending the Ethereum tx, this encoded tx data can first be sent to a separate signing service or can be used -to create a 0x transaction (see protocol spec for more details). +*Defined in [abi-gen-wrappers/src/generated-wrappers/dummy_erc20_token.ts:496](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/dummy_erc20_token.ts#L496)* **Parameters:** -Name | Type | Description | ------- | ------ | ------ | -`encoded` | string | ABI-encoded revert error. | +Name | Type | +------ | ------ | +`methodName` | string | **Returns:** *string* -The ABI encoded transaction data as a string - ___ -### decodeAssetProxyTransferError - -#### ▪ **decodeAssetProxyTransferError**: *object* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:204](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L204)* +### mint -Decompose an ABI-encoded AssetProxyTransferError. +▸ **mint**(`_value`: `BigNumber`): *`ContractTxFunctionObj`* -#### callAsync +*Defined in [abi-gen-wrappers/src/generated-wrappers/dummy_erc20_token.ts:836](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/dummy_erc20_token.ts#L836)* -▸ **callAsync**(`encoded`: string, `callData`: `Partial`, `defaultBlock?`: [BlockParam](#blockparam)): *`Promise<[string, string, string]>`* +Mints new tokens for sender -*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:212](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L212)* +**Parameters:** -Sends a read-only call to the contract method. Returns the result that would happen if one were to send an -Ethereum transaction to this method, given the current state of the blockchain. Calls do not cost gas -since they don't modify state. +Name | Type | Description | +------ | ------ | ------ | +`_value` | `BigNumber` | Amount of tokens to mint | -**Parameters:** +**Returns:** *`ContractTxFunctionObj`* -Name | Type | Default | Description | ------- | ------ | ------ | ------ | -`encoded` | string | - | ABI-encoded revert error. | -`callData` | `Partial` | {} | - | -`defaultBlock?` | [BlockParam](#blockparam) | - | - | +___ -**Returns:** *`Promise<[string, string, string]>`* +### name -orderHash Hash of the order being dispatched.assetData Asset data of the order being dispatched.errorData ABI-encoded revert data from the asset proxy. +▸ **name**(): *`ContractFunctionObj`* -#### getABIDecodedReturnData +*Defined in [abi-gen-wrappers/src/generated-wrappers/dummy_erc20_token.ts:942](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/dummy_erc20_token.ts#L942)* -▸ **getABIDecodedReturnData**(`returnData`: string): *[string, string, string]* +**Returns:** *`ContractFunctionObj`* -*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:277](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L277)* +___ -Decode the ABI-encoded return data from a transaction +### owner -**Parameters:** +▸ **owner**(): *`ContractFunctionObj`* -Name | Type | Description | ------- | ------ | ------ | -`returnData` | string | the data returned after transaction execution | +*Defined in [abi-gen-wrappers/src/generated-wrappers/dummy_erc20_token.ts:989](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/dummy_erc20_token.ts#L989)* -**Returns:** *[string, string, string]* +**Returns:** *`ContractFunctionObj`* -An array representing the output results in order. Keynames of nested structs are preserved. +___ -#### getABIDecodedTransactionData +### setBalance -▸ **getABIDecodedTransactionData**(`callData`: string): *[string]* +▸ **setBalance**(`_target`: string, `_value`: `BigNumber`): *`ContractTxFunctionObj`* -*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:265](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L265)* +*Defined in [abi-gen-wrappers/src/generated-wrappers/dummy_erc20_token.ts:1041](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/dummy_erc20_token.ts#L1041)* -Decode the ABI-encoded transaction data into its input arguments +Sets the balance of target address **Parameters:** Name | Type | Description | ------ | ------ | ------ | -`callData` | string | The ABI-encoded transaction data | +`_target` | string | Address or which balance will be updated | +`_value` | `BigNumber` | New balance of target address | + +**Returns:** *`ContractTxFunctionObj`* + +___ -**Returns:** *[string]* +### subscribe -An array representing the input arguments in order. Keynames of nested structs are preserved. +▸ **subscribe**<**ArgsType**>(`eventName`: [DummyERC20TokenEvents](#enumeration-dummyerc20tokenevents), `indexFilterValues`: `IndexedFilterValues`, `callback`: [EventCallback](#eventcallback)‹*`ArgsType`*›, `isVerbose`: boolean, `blockPollingIntervalMs?`: undefined | number): *string* -#### getABIEncodedTransactionData +*Defined in [abi-gen-wrappers/src/generated-wrappers/dummy_erc20_token.ts:1632](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/dummy_erc20_token.ts#L1632)* -▸ **getABIEncodedTransactionData**(`encoded`: string): *string* +Subscribe to an event type emitted by the DummyERC20Token contract. -*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:252](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L252)* +**Type parameters:** -Returns the ABI encoded transaction data needed to send an Ethereum transaction calling this method. Before -sending the Ethereum tx, this encoded tx data can first be sent to a separate signing service or can be used -to create a 0x transaction (see protocol spec for more details). +▪ **ArgsType**: *[DummyERC20TokenEventArgs](#dummyerc20tokeneventargs)* **Parameters:** -Name | Type | Description | ------- | ------ | ------ | -`encoded` | string | ABI-encoded revert error. | +Name | Type | Default | Description | +------ | ------ | ------ | ------ | +`eventName` | [DummyERC20TokenEvents](#enumeration-dummyerc20tokenevents) | - | The DummyERC20Token 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* -The ABI encoded transaction data as a string +Subscription token used later to unsubscribe ___ -### decodeEIP1271SignatureError +### symbol -#### ▪ **decodeEIP1271SignatureError**: *object* +▸ **symbol**(): *`ContractFunctionObj`* -*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:288](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L288)* +*Defined in [abi-gen-wrappers/src/generated-wrappers/dummy_erc20_token.ts:1160](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/dummy_erc20_token.ts#L1160)* -Decompose an ABI-encoded SignatureValidatorError. +**Returns:** *`ContractFunctionObj`* -#### callAsync +___ -▸ **callAsync**(`encoded`: string, `callData`: `Partial`, `defaultBlock?`: [BlockParam](#blockparam)): *`Promise<[string, string, string, string]>`* +### totalSupply -*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:296](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L296)* +▸ **totalSupply**(): *`ContractFunctionObj`* -Sends a read-only call to the contract method. Returns the result that would happen if one were to send an -Ethereum transaction to this method, given the current state of the blockchain. Calls do not cost gas -since they don't modify state. +*Defined in [abi-gen-wrappers/src/generated-wrappers/dummy_erc20_token.ts:1211](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/dummy_erc20_token.ts#L1211)* -**Parameters:** +Query total supply of token -Name | Type | Default | Description | ------- | ------ | ------ | ------ | -`encoded` | string | - | ABI-encoded revert error. | -`callData` | `Partial` | {} | - | -`defaultBlock?` | [BlockParam](#blockparam) | - | - | +**Returns:** *`ContractFunctionObj`* -**Returns:** *`Promise<[string, string, string, string]>`* +Total supply of token -signerAddress The expected signer of the hash.signature The full signature bytes.errorData The revert data thrown by the validator contract. +___ -#### getABIDecodedReturnData +### transfer -▸ **getABIDecodedReturnData**(`returnData`: string): *[string, string, string, string]* +▸ **transfer**(`_to`: string, `_value`: `BigNumber`): *`ContractTxFunctionObj`* -*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:361](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L361)* +*Defined in [abi-gen-wrappers/src/generated-wrappers/dummy_erc20_token.ts:1264](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/dummy_erc20_token.ts#L1264)* -Decode the ABI-encoded return data from a transaction +send `value` token to `to` from `msg.sender` **Parameters:** Name | Type | Description | ------ | ------ | ------ | -`returnData` | string | the data returned after transaction execution | +`_to` | string | The address of the recipient | +`_value` | `BigNumber` | The amount of token to be transferred | + +**Returns:** *`ContractTxFunctionObj`* -**Returns:** *[string, string, string, string]* +True if transfer was successful -An array representing the output results in order. Keynames of nested structs are preserved. +___ -#### getABIDecodedTransactionData +### transferFrom -▸ **getABIDecodedTransactionData**(`callData`: string): *[string]* +▸ **transferFrom**(`_from`: string, `_to`: string, `_value`: `BigNumber`): *`ContractTxFunctionObj`* -*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:349](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L349)* +*Defined in [abi-gen-wrappers/src/generated-wrappers/dummy_erc20_token.ts:1390](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/dummy_erc20_token.ts#L1390)* -Decode the ABI-encoded transaction data into its input arguments +ERC20 transferFrom, modified such that an allowance of MAX_UINT represents an unlimited allowance. See https://github.com/ethereum/EIPs/issues/717 **Parameters:** Name | Type | Description | ------ | ------ | ------ | -`callData` | string | The ABI-encoded transaction data | +`_from` | string | Address to transfer from. | +`_to` | string | Address to transfer to. | +`_value` | `BigNumber` | Amount to transfer. | -**Returns:** *[string]* +**Returns:** *`ContractTxFunctionObj`* -An array representing the input arguments in order. Keynames of nested structs are preserved. +Success of transfer. -#### getABIEncodedTransactionData +___ -▸ **getABIEncodedTransactionData**(`encoded`: string): *string* +### transferOwnership -*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:336](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L336)* +▸ **transferOwnership**(`newOwner`: string): *`ContractTxFunctionObj`* -Returns the ABI encoded transaction data needed to send an Ethereum transaction calling this method. Before -sending the Ethereum tx, this encoded tx data can first be sent to a separate signing service or can be used -to create a 0x transaction (see protocol spec for more details). +*Defined in [abi-gen-wrappers/src/generated-wrappers/dummy_erc20_token.ts:1514](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/dummy_erc20_token.ts#L1514)* **Parameters:** -Name | Type | Description | ------- | ------ | ------ | -`encoded` | string | ABI-encoded revert error. | - -**Returns:** *string* +Name | Type | +------ | ------ | +`newOwner` | string | -The ABI encoded transaction data as a string +**Returns:** *`ContractTxFunctionObj`* ___ -### decodeERC1155AssetData +### unsubscribe -#### ▪ **decodeERC1155AssetData**: *object* +▸ **unsubscribe**(`subscriptionToken`: string): *void* -*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:374](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L374)* +*Defined in [abi-gen-wrappers/src/generated-wrappers/dummy_erc20_token.ts:1657](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/dummy_erc20_token.ts#L1657)* -Decode ERC-1155 asset data from the format described in the AssetProxy contract specification. - -#### callAsync +Cancel a subscription -▸ **callAsync**(`assetData`: string, `callData`: `Partial`, `defaultBlock?`: [BlockParam](#blockparam)): *`Promise<[string, string, BigNumber[], BigNumber[], string]>`* +**Parameters:** -*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:383](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L383)* +Name | Type | Description | +------ | ------ | ------ | +`subscriptionToken` | string | Subscription token returned by `subscribe()` | -Sends a read-only call to the contract method. Returns the result that would happen if one were to send an -Ethereum transaction to this method, given the current state of the blockchain. Calls do not cost gas -since they don't modify state. +**Returns:** *void* -**Parameters:** +___ -Name | Type | Default | Description | ------- | ------ | ------ | ------ | -`assetData` | string | - | AssetProxy-compliant asset data describing an ERC-1155 set of assets. | -`callData` | `Partial` | {} | - | -`defaultBlock?` | [BlockParam](#blockparam) | - | - | +### unsubscribeAll -**Returns:** *`Promise<[string, string, BigNumber[], BigNumber[], string]>`* +▸ **unsubscribeAll**(): *void* -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`. +*Defined in [abi-gen-wrappers/src/generated-wrappers/dummy_erc20_token.ts:1663](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/dummy_erc20_token.ts#L1663)* -#### getABIDecodedReturnData +Cancels all existing subscriptions -▸ **getABIDecodedReturnData**(`returnData`: string): *[string, string, `BigNumber`[], `BigNumber`[], string]* +**Returns:** *void* -*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:449](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L449)* +___ -Decode the ABI-encoded return data from a transaction +### `Static` ABI -**Parameters:** +▸ **ABI**(): *[ContractAbi](#contractabi)* -Name | Type | Description | ------- | ------ | ------ | -`returnData` | string | the data returned after transaction execution | +*Defined in [abi-gen-wrappers/src/generated-wrappers/dummy_erc20_token.ts:155](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/dummy_erc20_token.ts#L155)* -**Returns:** *[string, string, `BigNumber`[], `BigNumber`[], string]* +**Returns:** *[ContractAbi](#contractabi)* -An array representing the output results in order. Keynames of nested structs are preserved. +The contract ABI -#### getABIDecodedTransactionData +___ -▸ **getABIDecodedTransactionData**(`callData`: string): *[string]* +### `Static` deployAsync -*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:437](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L437)* +▸ **deployAsync**(`bytecode`: string, `abi`: [ContractAbi](#contractabi), `supportedProvider`: [SupportedProvider](#supportedprovider), `txDefaults`: `Partial`, `logDecodeDependencies`: object, `_name`: string, `_symbol`: string, `_decimals`: `BigNumber`, `_totalSupply`: `BigNumber`): *`Promise`* -Decode the ABI-encoded transaction data into its input arguments +*Defined in [abi-gen-wrappers/src/generated-wrappers/dummy_erc20_token.ts:105](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/dummy_erc20_token.ts#L105)* **Parameters:** -Name | Type | Description | ------- | ------ | ------ | -`callData` | string | The ABI-encoded transaction data | - -**Returns:** *[string]* +Name | Type | +------ | ------ | +`bytecode` | string | +`abi` | [ContractAbi](#contractabi) | +`supportedProvider` | [SupportedProvider](#supportedprovider) | +`txDefaults` | `Partial` | +`logDecodeDependencies` | object | +`_name` | string | +`_symbol` | string | +`_decimals` | `BigNumber` | +`_totalSupply` | `BigNumber` | -An array representing the input arguments in order. Keynames of nested structs are preserved. +**Returns:** *`Promise`* -#### getABIEncodedTransactionData +___ -▸ **getABIEncodedTransactionData**(`assetData`: string): *string* +### `Static` deployFrom0xArtifactAsync -*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:426](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L426)* +▸ **deployFrom0xArtifactAsync**(`artifact`: `ContractArtifact` | `SimpleContractArtifact`, `supportedProvider`: [SupportedProvider](#supportedprovider), `txDefaults`: `Partial`, `logDecodeDependencies`: object, `_name`: string, `_symbol`: string, `_decimals`: `BigNumber`, `_totalSupply`: `BigNumber`): *`Promise`* -Returns the ABI encoded transaction data needed to send an Ethereum transaction calling this method. Before -sending the Ethereum tx, this encoded tx data can first be sent to a separate signing service or can be used -to create a 0x transaction (see protocol spec for more details). +*Defined in [abi-gen-wrappers/src/generated-wrappers/dummy_erc20_token.ts:66](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/dummy_erc20_token.ts#L66)* **Parameters:** -Name | Type | Description | ------- | ------ | ------ | -`assetData` | string | AssetProxy-compliant asset data describing an ERC-1155 set of assets. | - -**Returns:** *string* +Name | Type | +------ | ------ | +`artifact` | `ContractArtifact` \| `SimpleContractArtifact` | +`supportedProvider` | [SupportedProvider](#supportedprovider) | +`txDefaults` | `Partial` | +`logDecodeDependencies` | object | +`_name` | string | +`_symbol` | string | +`_decimals` | `BigNumber` | +`_totalSupply` | `BigNumber` | -The ABI encoded transaction data as a string +**Returns:** *`Promise`* ___ -### decodeERC20AssetData +### `Static` strictArgumentEncodingCheck + +▸ **strictArgumentEncodingCheck**(`inputAbi`: `DataItem`[], `args`: any[]): *string* -#### ▪ **decodeERC20AssetData**: *object* -*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:462](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L462)* -Decode ERC-20 asset data from the format described in the AssetProxy contract specification. +Defined in base-contract/lib/src/index.d.ts:42 -#### callAsync +**Parameters:** -▸ **callAsync**(`assetData`: string, `callData`: `Partial`, `defaultBlock?`: [BlockParam](#blockparam)): *`Promise<[string, string]>`* +Name | Type | +------ | ------ | +`inputAbi` | `DataItem`[] | +`args` | any[] | -*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:470](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L470)* +**Returns:** *string* -Sends a read-only call to the contract method. Returns the result that would happen if one were to send an -Ethereum transaction to this method, given the current state of the blockchain. Calls do not cost gas -since they don't modify state. +
-**Parameters:** +# Class: DummyERC721TokenContract -Name | Type | Default | Description | ------- | ------ | ------ | ------ | -`assetData` | string | - | AssetProxy-compliant asset data describing an ERC-20 asset. | -`callData` | `Partial` | {} | - | -`defaultBlock?` | [BlockParam](#blockparam) | - | - | -**Returns:** *`Promise<[string, string]>`* +## Constructors -The ERC-20 AssetProxy identifier, and the address of the ERC-20 contract hosting this asset. -#### getABIDecodedReturnData -▸ **getABIDecodedReturnData**(`returnData`: string): *[string, string]* +\+ **new DummyERC721TokenContract**(`address`: string, `supportedProvider`: [SupportedProvider](#supportedprovider), `txDefaults?`: `Partial`, `logDecodeDependencies?`: undefined | object, `deployedBytecode`: string | undefined): *[DummyERC721TokenContract](#class-dummyerc721tokencontract)* -*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:533](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L533)* +*Overrides void* -Decode the ABI-encoded return data from a transaction +*Defined in [abi-gen-wrappers/src/generated-wrappers/dummy_erc721_token.ts:1990](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/dummy_erc721_token.ts#L1990)* **Parameters:** -Name | Type | Description | +Name | Type | Default | ------ | ------ | ------ | -`returnData` | string | the data returned after transaction execution | +`address` | string | - | +`supportedProvider` | [SupportedProvider](#supportedprovider) | - | +`txDefaults?` | `Partial` | - | +`logDecodeDependencies?` | undefined \| object | - | +`deployedBytecode` | string \| undefined | DummyERC721TokenContract.deployedBytecode | -**Returns:** *[string, string]* +**Returns:** *[DummyERC721TokenContract](#class-dummyerc721tokencontract)* -An array representing the output results in order. Keynames of nested structs are preserved. +## Properties -#### getABIDecodedTransactionData +### `Optional` _deployedBytecodeIfExists -▸ **getABIDecodedTransactionData**(`callData`: string): *[string]* +• **_deployedBytecodeIfExists**? : *`Buffer`* -*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:521](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L521)* -Decode the ABI-encoded transaction data into its input arguments -**Parameters:** +Defined in base-contract/lib/src/index.d.ts:32 -Name | Type | Description | ------- | ------ | ------ | -`callData` | string | The ABI-encoded transaction data | +___ + +### abi -**Returns:** *[string]* +• **abi**: *[ContractAbi](#contractabi)* -An array representing the input arguments in order. Keynames of nested structs are preserved. -#### getABIEncodedTransactionData -▸ **getABIEncodedTransactionData**(`assetData`: string): *string* +Defined in base-contract/lib/src/index.d.ts:28 -*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:510](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L510)* +___ -Returns the ABI encoded transaction data needed to send an Ethereum transaction calling this method. Before -sending the Ethereum tx, this encoded tx data can first be sent to a separate signing service or can be used -to create a 0x transaction (see protocol spec for more details). +### address -**Parameters:** +• **address**: *string* -Name | Type | Description | ------- | ------ | ------ | -`assetData` | string | AssetProxy-compliant asset data describing an ERC-20 asset. | -**Returns:** *string* -The ABI encoded transaction data as a string +Defined in base-contract/lib/src/index.d.ts:29 ___ -### decodeERC721AssetData +Args -#### ▪ **decodeERC721AssetData**: *object* +• **constructorArgs**: *any[]* -*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:544](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L544)* -Decode ERC-721 asset data from the format described in the AssetProxy contract specification. -#### callAsync +Defined in base-contract/lib/src/index.d.ts:31 -▸ **callAsync**(`assetData`: string, `callData`: `Partial`, `defaultBlock?`: [BlockParam](#blockparam)): *`Promise<[string, string, BigNumber]>`* +___ -*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:553](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L553)* +### contractName -Sends a read-only call to the contract method. Returns the result that would happen if one were to send an -Ethereum transaction to this method, given the current state of the blockchain. Calls do not cost gas -since they don't modify state. +• **contractName**: *string* -**Parameters:** -Name | Type | Default | Description | ------- | ------ | ------ | ------ | -`assetData` | string | - | AssetProxy-compliant asset data describing an ERC-721 asset. | -`callData` | `Partial` | {} | - | -`defaultBlock?` | [BlockParam](#blockparam) | - | - | -**Returns:** *`Promise<[string, string, BigNumber]>`* +Defined in base-contract/lib/src/index.d.ts:30 -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. +## Methods -#### getABIDecodedReturnData +### approve -▸ **getABIDecodedReturnData**(`returnData`: string): *[string, string, `BigNumber`]* +▸ **approve**(`_approved`: string, `_tokenId`: `BigNumber`): *`ContractTxFunctionObj`* -*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:617](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L617)* +*Defined in [abi-gen-wrappers/src/generated-wrappers/dummy_erc721_token.ts:562](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/dummy_erc721_token.ts#L562)* -Decode the ABI-encoded return data from a transaction +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 | ------ | ------ | ------ | -`returnData` | string | the data returned after transaction execution | +`_approved` | string | The new approved NFT controller | +`_tokenId` | `BigNumber` | The NFT to approve | -**Returns:** *[string, string, `BigNumber`]* +**Returns:** *`ContractTxFunctionObj`* -An array representing the output results in order. Keynames of nested structs are preserved. +___ -#### getABIDecodedTransactionData +### balanceOf -▸ **getABIDecodedTransactionData**(`callData`: string): *[string]* +▸ **balanceOf**(`_owner`: string): *`ContractFunctionObj`* -*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:605](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L605)* +*Defined in [abi-gen-wrappers/src/generated-wrappers/dummy_erc721_token.ts:687](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/dummy_erc721_token.ts#L687)* -Decode the ABI-encoded transaction data into its input arguments +NFTs assigned to the zero address are considered invalid, and this +function throws for queries about the zero address. **Parameters:** Name | Type | Description | ------ | ------ | ------ | -`callData` | string | The ABI-encoded transaction data | +`_owner` | string | An address for whom to query the balance | -**Returns:** *[string]* +**Returns:** *`ContractFunctionObj`* + +The number of NFTs owned by `_owner`, possibly zero -An array representing the input arguments in order. Keynames of nested structs are preserved. +___ -#### getABIEncodedTransactionData +### burn -▸ **getABIEncodedTransactionData**(`assetData`: string): *string* +▸ **burn**(`_owner`: string, `_tokenId`: `BigNumber`): *`ContractTxFunctionObj`* -*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:594](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L594)* +*Defined in [abi-gen-wrappers/src/generated-wrappers/dummy_erc721_token.ts:743](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/dummy_erc721_token.ts#L743)* -Returns the ABI encoded transaction data needed to send an Ethereum transaction calling this method. Before -sending the Ethereum tx, this encoded tx data can first be sent to a separate signing service or can be used -to create a 0x transaction (see protocol spec for more details). +Function to burn a token +Reverts if the given token ID doesn't exist or not called by contract owner **Parameters:** Name | Type | Description | ------ | ------ | ------ | -`assetData` | string | AssetProxy-compliant asset data describing an ERC-721 asset. | - -**Returns:** *string* +`_owner` | string | Owner of token with given token ID | +`_tokenId` | `BigNumber` | ID of the token to be burned by the msg.sender | -The ABI encoded transaction data as a string +**Returns:** *`ContractTxFunctionObj`* ___ -### decodeExchangeInvalidContextError - -#### ▪ **decodeExchangeInvalidContextError**: *object* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:628](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L628)* - -Decompose an ABI-encoded OrderStatusError. +### getABIDecodedReturnData -#### callAsync +▸ **getABIDecodedReturnData**<**T**>(`methodName`: string, `callData`: string): *`T`* -▸ **callAsync**(`encoded`: string, `callData`: `Partial`, `defaultBlock?`: [BlockParam](#blockparam)): *`Promise<[number, string, string]>`* +*Defined in [abi-gen-wrappers/src/generated-wrappers/dummy_erc721_token.ts:541](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/dummy_erc721_token.ts#L541)* -*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:636](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L636)* +**Type parameters:** -Sends a read-only call to the contract method. Returns the result that would happen if one were to send an -Ethereum transaction to this method, given the current state of the blockchain. Calls do not cost gas -since they don't modify state. +▪ **T** **Parameters:** -Name | Type | Default | Description | ------- | ------ | ------ | ------ | -`encoded` | string | - | ABI-encoded revert error. | -`callData` | `Partial` | {} | - | -`defaultBlock?` | [BlockParam](#blockparam) | - | - | +Name | Type | +------ | ------ | +`methodName` | string | +`callData` | string | -**Returns:** *`Promise<[number, string, string]>`* +**Returns:** *`T`* -errorCode Error code that corresponds to invalid maker, taker, or sender.orderHash The order hash.contextAddress The maker, taker, or sender address +___ -#### getABIDecodedReturnData +### getABIDecodedTransactionData -▸ **getABIDecodedReturnData**(`returnData`: string): *[number, string, string]* +▸ **getABIDecodedTransactionData**<**T**>(`methodName`: string, `callData`: string): *`T`* -*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:701](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L701)* +*Defined in [abi-gen-wrappers/src/generated-wrappers/dummy_erc721_token.ts:534](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/dummy_erc721_token.ts#L534)* -Decode the ABI-encoded return data from a transaction +**Type parameters:** + +▪ **T** **Parameters:** -Name | Type | Description | ------- | ------ | ------ | -`returnData` | string | the data returned after transaction execution | +Name | Type | +------ | ------ | +`methodName` | string | +`callData` | string | -**Returns:** *[number, string, string]* +**Returns:** *`T`* -An array representing the output results in order. Keynames of nested structs are preserved. +___ -#### getABIDecodedTransactionData +### getApproved -▸ **getABIDecodedTransactionData**(`callData`: string): *[string]* +▸ **getApproved**(`_tokenId`: `BigNumber`): *`ContractFunctionObj`* -*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:689](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L689)* +*Defined in [abi-gen-wrappers/src/generated-wrappers/dummy_erc721_token.ts:867](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/dummy_erc721_token.ts#L867)* -Decode the ABI-encoded transaction data into its input arguments +Throws if `_tokenId` is not a valid NFT. **Parameters:** Name | Type | Description | ------ | ------ | ------ | -`callData` | string | The ABI-encoded transaction data | +`_tokenId` | `BigNumber` | The NFT to find the approved address for | -**Returns:** *[string]* +**Returns:** *`ContractFunctionObj`* -An array representing the input arguments in order. Keynames of nested structs are preserved. +The approved address for this NFT, or the zero address if there is none -#### getABIEncodedTransactionData +___ -▸ **getABIEncodedTransactionData**(`encoded`: string): *string* +### getFunctionSignature -*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:676](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L676)* +▸ **getFunctionSignature**(`methodName`: string): *string* -Returns the ABI encoded transaction data needed to send an Ethereum transaction calling this method. Before -sending the Ethereum tx, this encoded tx data can first be sent to a separate signing service or can be used -to create a 0x transaction (see protocol spec for more details). +*Defined in [abi-gen-wrappers/src/generated-wrappers/dummy_erc721_token.ts:528](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/dummy_erc721_token.ts#L528)* **Parameters:** -Name | Type | Description | ------- | ------ | ------ | -`encoded` | string | ABI-encoded revert error. | +Name | Type | +------ | ------ | +`methodName` | string | **Returns:** *string* -The ABI encoded transaction data as a string - ___ -### decodeFillError - -#### ▪ **decodeFillError**: *object* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:712](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L712)* +### getLogsAsync -Decompose an ABI-encoded FillError. +▸ **getLogsAsync**<**ArgsType**>(`eventName`: [DummyERC721TokenEvents](#enumeration-dummyerc721tokenevents), `blockRange`: `BlockRange`, `indexFilterValues`: `IndexedFilterValues`): *`Promise>>`* -#### callAsync +*Defined in [abi-gen-wrappers/src/generated-wrappers/dummy_erc721_token.ts:1974](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/dummy_erc721_token.ts#L1974)* -▸ **callAsync**(`encoded`: string, `callData`: `Partial`, `defaultBlock?`: [BlockParam](#blockparam)): *`Promise<[number, string]>`* +Gets historical logs without creating a subscription -*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:720](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L720)* +**Type parameters:** -Sends a read-only call to the contract method. Returns the result that would happen if one were to send an -Ethereum transaction to this method, given the current state of the blockchain. Calls do not cost gas -since they don't modify state. +▪ **ArgsType**: *[DummyERC721TokenEventArgs](#dummyerc721tokeneventargs)* **Parameters:** -Name | Type | Default | Description | ------- | ------ | ------ | ------ | -`encoded` | string | - | ABI-encoded revert error. | -`callData` | `Partial` | {} | - | -`defaultBlock?` | [BlockParam](#blockparam) | - | - | +Name | Type | Description | +------ | ------ | ------ | +`eventName` | [DummyERC721TokenEvents](#enumeration-dummyerc721tokenevents) | The DummyERC721Token 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<[number, string]>`* +**Returns:** *`Promise>>`* -errorCode The error code.orderHash The order hash. +Array of logs that match the parameters -#### getABIDecodedReturnData +___ -▸ **getABIDecodedReturnData**(`returnData`: string): *[number, string]* +### getSelector -*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:783](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L783)* +▸ **getSelector**(`methodName`: string): *string* -Decode the ABI-encoded return data from a transaction +*Defined in [abi-gen-wrappers/src/generated-wrappers/dummy_erc721_token.ts:548](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/dummy_erc721_token.ts#L548)* **Parameters:** -Name | Type | Description | ------- | ------ | ------ | -`returnData` | string | the data returned after transaction execution | - -**Returns:** *[number, string]* +Name | Type | +------ | ------ | +`methodName` | string | -An array representing the output results in order. Keynames of nested structs are preserved. +**Returns:** *string* -#### getABIDecodedTransactionData +___ -▸ **getABIDecodedTransactionData**(`callData`: string): *[string]* +### isApprovedForAll -*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:771](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L771)* +▸ **isApprovedForAll**(`_owner`: string, `_operator`: string): *`ContractFunctionObj`* -Decode the ABI-encoded transaction data into its input arguments +*Defined in [abi-gen-wrappers/src/generated-wrappers/dummy_erc721_token.ts:915](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/dummy_erc721_token.ts#L915)* **Parameters:** -Name | Type | Description | ------- | ------ | ------ | -`callData` | string | The ABI-encoded transaction data | +Name | Type | +------ | ------ | +`_owner` | string | +`_operator` | string | -**Returns:** *[string]* +**Returns:** *`ContractFunctionObj`* -An array representing the input arguments in order. Keynames of nested structs are preserved. +___ -#### getABIEncodedTransactionData +### mint -▸ **getABIEncodedTransactionData**(`encoded`: string): *string* +▸ **mint**(`_to`: string, `_tokenId`: `BigNumber`): *`ContractTxFunctionObj`* -*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:760](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L760)* +*Defined in [abi-gen-wrappers/src/generated-wrappers/dummy_erc721_token.ts:976](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/dummy_erc721_token.ts#L976)* -Returns the ABI encoded transaction data needed to send an Ethereum transaction calling this method. Before -sending the Ethereum tx, this encoded tx data can first be sent to a separate signing service or can be used -to create a 0x transaction (see protocol spec for more details). +Function to mint a new token +Reverts if the given token ID already exists **Parameters:** Name | Type | Description | ------ | ------ | ------ | -`encoded` | string | ABI-encoded revert error. | - -**Returns:** *string* +`_to` | string | Address of the beneficiary that will own the minted token | +`_tokenId` | `BigNumber` | ID of the token to be minted by the msg.sender | -The ABI encoded transaction data as a string +**Returns:** *`ContractTxFunctionObj`* ___ -### decodeIncompleteFillError - -#### ▪ **decodeIncompleteFillError**: *object* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:794](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L794)* +### name -Decompose an ABI-encoded IncompleteFillError. +▸ **name**(): *`ContractFunctionObj`* -#### callAsync +*Defined in [abi-gen-wrappers/src/generated-wrappers/dummy_erc721_token.ts:1086](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/dummy_erc721_token.ts#L1086)* -▸ **callAsync**(`encoded`: string, `callData`: `Partial`, `defaultBlock?`: [BlockParam](#blockparam)): *`Promise<[number, BigNumber, BigNumber]>`* +**Returns:** *`ContractFunctionObj`* -*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:802](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L802)* +___ -Sends a read-only call to the contract method. Returns the result that would happen if one were to send an -Ethereum transaction to this method, given the current state of the blockchain. Calls do not cost gas -since they don't modify state. +### owner -**Parameters:** +▸ **owner**(): *`ContractFunctionObj`* -Name | Type | Default | Description | ------- | ------ | ------ | ------ | -`encoded` | string | - | ABI-encoded revert error. | -`callData` | `Partial` | {} | - | -`defaultBlock?` | [BlockParam](#blockparam) | - | - | +*Defined in [abi-gen-wrappers/src/generated-wrappers/dummy_erc721_token.ts:1133](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/dummy_erc721_token.ts#L1133)* -**Returns:** *`Promise<[number, BigNumber, BigNumber]>`* +**Returns:** *`ContractFunctionObj`* -orderHash Hash of the order being filled. +___ -#### getABIDecodedReturnData +### ownerOf -▸ **getABIDecodedReturnData**(`returnData`: string): *[number, `BigNumber`, `BigNumber`]* +▸ **ownerOf**(`_tokenId`: `BigNumber`): *`ContractFunctionObj`* -*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:867](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L867)* +*Defined in [abi-gen-wrappers/src/generated-wrappers/dummy_erc721_token.ts:1186](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/dummy_erc721_token.ts#L1186)* -Decode the ABI-encoded return data from a transaction +NFTs assigned to zero address are considered invalid, and queries +about them do throw. **Parameters:** Name | Type | Description | ------ | ------ | ------ | -`returnData` | string | the data returned after transaction execution | +`_tokenId` | `BigNumber` | The identifier for an NFT | -**Returns:** *[number, `BigNumber`, `BigNumber`]* +**Returns:** *`ContractFunctionObj`* -An array representing the output results in order. Keynames of nested structs are preserved. +The address of the owner of the NFT + +___ -#### getABIDecodedTransactionData +### safeTransferFrom1 -▸ **getABIDecodedTransactionData**(`callData`: string): *[string]* +▸ **safeTransferFrom1**(`_from`: string, `_to`: string, `_tokenId`: `BigNumber`): *`ContractTxFunctionObj`* -*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:855](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L855)* +*Defined in [abi-gen-wrappers/src/generated-wrappers/dummy_erc721_token.ts:1241](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/dummy_erc721_token.ts#L1241)* -Decode the ABI-encoded transaction data into its input arguments +This works identically to the other function with an extra data parameter, +except this function just sets data to "". **Parameters:** Name | Type | Description | ------ | ------ | ------ | -`callData` | string | The ABI-encoded transaction data | +`_from` | string | The current owner of the NFT | +`_to` | string | The new owner | +`_tokenId` | `BigNumber` | The NFT to transfer | -**Returns:** *[string]* +**Returns:** *`ContractTxFunctionObj`* -An array representing the input arguments in order. Keynames of nested structs are preserved. +___ -#### getABIEncodedTransactionData +### safeTransferFrom2 -▸ **getABIEncodedTransactionData**(`encoded`: string): *string* +▸ **safeTransferFrom2**(`_from`: string, `_to`: string, `_tokenId`: `BigNumber`, `_data`: string): *`ContractTxFunctionObj`* -*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:842](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L842)* +*Defined in [abi-gen-wrappers/src/generated-wrappers/dummy_erc721_token.ts:1377](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/dummy_erc721_token.ts#L1377)* -Returns the ABI encoded transaction data needed to send an Ethereum transaction calling this method. Before -sending the Ethereum tx, this encoded tx data can first be sent to a separate signing service or can be used -to create a 0x transaction (see protocol spec for more details). +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 | ------ | ------ | ------ | -`encoded` | string | ABI-encoded revert error. | - -**Returns:** *string* +`_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` | -The ABI encoded transaction data as a string +**Returns:** *`ContractTxFunctionObj`* ___ -### decodeMultiAssetData +### setApprovalForAll -#### ▪ **decodeMultiAssetData**: *object* +▸ **setApprovalForAll**(`_operator`: string, `_approved`: boolean): *`ContractTxFunctionObj`* -*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:878](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L878)* +*Defined in [abi-gen-wrappers/src/generated-wrappers/dummy_erc721_token.ts:1515](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/dummy_erc721_token.ts#L1515)* -Decode multi-asset data from the format described in the AssetProxy contract specification. +Emits the ApprovalForAll event. The contract MUST allow +multiple operators per owner. -#### callAsync +**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`* + +___ -▸ **callAsync**(`assetData`: string, `callData`: `Partial`, `defaultBlock?`: [BlockParam](#blockparam)): *`Promise<[string, BigNumber[], string[]]>`* +### subscribe + +▸ **subscribe**<**ArgsType**>(`eventName`: [DummyERC721TokenEvents](#enumeration-dummyerc721tokenevents), `indexFilterValues`: `IndexedFilterValues`, `callback`: [EventCallback](#eventcallback)‹*`ArgsType`*›, `isVerbose`: boolean, `blockPollingIntervalMs?`: undefined | number): *string* + +*Defined in [abi-gen-wrappers/src/generated-wrappers/dummy_erc721_token.ts:1932](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/dummy_erc721_token.ts#L1932)* -*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:886](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L886)* +Subscribe to an event type emitted by the DummyERC721Token contract. + +**Type parameters:** -Sends a read-only call to the contract method. Returns the result that would happen if one were to send an -Ethereum transaction to this method, given the current state of the blockchain. Calls do not cost gas -since they don't modify state. +▪ **ArgsType**: *[DummyERC721TokenEventArgs](#dummyerc721tokeneventargs)* **Parameters:** Name | Type | Default | Description | ------ | ------ | ------ | ------ | -`assetData` | string | - | AssetProxy-compliant data describing a multi-asset basket. | -`callData` | `Partial` | {} | - | -`defaultBlock?` | [BlockParam](#blockparam) | - | - | +`eventName` | [DummyERC721TokenEvents](#enumeration-dummyerc721tokenevents) | - | The DummyERC721Token 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:** *`Promise<[string, BigNumber[], string[]]>`* +**Returns:** *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. +Subscription token used later to unsubscribe + +___ + +### symbol + +▸ **symbol**(): *`ContractFunctionObj`* + +*Defined in [abi-gen-wrappers/src/generated-wrappers/dummy_erc721_token.ts:1634](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/dummy_erc721_token.ts#L1634)* + +**Returns:** *`ContractFunctionObj`* + +___ -#### getABIDecodedReturnData +### transferFrom -▸ **getABIDecodedReturnData**(`returnData`: string): *[string, `BigNumber`[], string[]]* +▸ **transferFrom**(`_from`: string, `_to`: string, `_tokenId`: `BigNumber`): *`ContractTxFunctionObj`* -*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:949](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L949)* +*Defined in [abi-gen-wrappers/src/generated-wrappers/dummy_erc721_token.ts:1690](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/dummy_erc721_token.ts#L1690)* -Decode the ABI-encoded return data from a transaction +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 | ------ | ------ | ------ | -`returnData` | string | the data returned after transaction execution | - -**Returns:** *[string, `BigNumber`[], string[]]* +`_from` | string | The current owner of the NFT | +`_to` | string | The new owner | +`_tokenId` | `BigNumber` | The NFT to transfer | -An array representing the output results in order. Keynames of nested structs are preserved. +**Returns:** *`ContractTxFunctionObj`* -#### getABIDecodedTransactionData +___ -▸ **getABIDecodedTransactionData**(`callData`: string): *[string]* +### transferOwnership -*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:937](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L937)* +▸ **transferOwnership**(`newOwner`: string): *`ContractTxFunctionObj`* -Decode the ABI-encoded transaction data into its input arguments +*Defined in [abi-gen-wrappers/src/generated-wrappers/dummy_erc721_token.ts:1814](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/dummy_erc721_token.ts#L1814)* **Parameters:** -Name | Type | Description | ------- | ------ | ------ | -`callData` | string | The ABI-encoded transaction data | +Name | Type | +------ | ------ | +`newOwner` | string | -**Returns:** *[string]* +**Returns:** *`ContractTxFunctionObj`* -An array representing the input arguments in order. Keynames of nested structs are preserved. +___ -#### getABIEncodedTransactionData +### unsubscribe -▸ **getABIEncodedTransactionData**(`assetData`: string): *string* +▸ **unsubscribe**(`subscriptionToken`: string): *void* -*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:926](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L926)* +*Defined in [abi-gen-wrappers/src/generated-wrappers/dummy_erc721_token.ts:1957](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/dummy_erc721_token.ts#L1957)* -Returns the ABI encoded transaction data needed to send an Ethereum transaction calling this method. Before -sending the Ethereum tx, this encoded tx data can first be sent to a separate signing service or can be used -to create a 0x transaction (see protocol spec for more details). +Cancel a subscription **Parameters:** Name | Type | Description | ------ | ------ | ------ | -`assetData` | string | AssetProxy-compliant data describing a multi-asset basket. | - -**Returns:** *string* +`subscriptionToken` | string | Subscription token returned by `subscribe()` | -The ABI encoded transaction data as a string +**Returns:** *void* ___ -### decodeNegativeSpreadError - -#### ▪ **decodeNegativeSpreadError**: *object* +### unsubscribeAll -*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:962](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L962)* +▸ **unsubscribeAll**(): *void* -Decompose an ABI-encoded NegativeSpreadError. +*Defined in [abi-gen-wrappers/src/generated-wrappers/dummy_erc721_token.ts:1963](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/dummy_erc721_token.ts#L1963)* -#### callAsync +Cancels all existing subscriptions -▸ **callAsync**(`encoded`: string, `callData`: `Partial`, `defaultBlock?`: [BlockParam](#blockparam)): *`Promise<[string, string]>`* +**Returns:** *void* -*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:970](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L970)* +___ -Sends a read-only call to the contract method. Returns the result that would happen if one were to send an -Ethereum transaction to this method, given the current state of the blockchain. Calls do not cost gas -since they don't modify state. +### `Static` ABI -**Parameters:** +▸ **ABI**(): *[ContractAbi](#contractabi)* -Name | Type | Default | Description | ------- | ------ | ------ | ------ | -`encoded` | string | - | ABI-encoded revert error. | -`callData` | `Partial` | {} | - | -`defaultBlock?` | [BlockParam](#blockparam) | - | - | +*Defined in [abi-gen-wrappers/src/generated-wrappers/dummy_erc721_token.ts:159](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/dummy_erc721_token.ts#L159)* -**Returns:** *`Promise<[string, string]>`* +**Returns:** *[ContractAbi](#contractabi)* -leftOrderHash Hash of the left order being matched.rightOrderHash Hash of the right order being matched. +The contract ABI -#### getABIDecodedReturnData +___ -▸ **getABIDecodedReturnData**(`returnData`: string): *[string, string]* +### `Static` deployAsync -*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:1035](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L1035)* +▸ **deployAsync**(`bytecode`: string, `abi`: [ContractAbi](#contractabi), `supportedProvider`: [SupportedProvider](#supportedprovider), `txDefaults`: `Partial`, `logDecodeDependencies`: object, `_name`: string, `_symbol`: string): *`Promise`* -Decode the ABI-encoded return data from a transaction +*Defined in [abi-gen-wrappers/src/generated-wrappers/dummy_erc721_token.ts:111](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/dummy_erc721_token.ts#L111)* **Parameters:** -Name | Type | Description | ------- | ------ | ------ | -`returnData` | string | the data returned after transaction execution | - -**Returns:** *[string, string]* +Name | Type | +------ | ------ | +`bytecode` | string | +`abi` | [ContractAbi](#contractabi) | +`supportedProvider` | [SupportedProvider](#supportedprovider) | +`txDefaults` | `Partial` | +`logDecodeDependencies` | object | +`_name` | string | +`_symbol` | string | -An array representing the output results in order. Keynames of nested structs are preserved. +**Returns:** *`Promise`* -#### getABIDecodedTransactionData +___ -▸ **getABIDecodedTransactionData**(`callData`: string): *[string]* +### `Static` deployFrom0xArtifactAsync -*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:1023](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L1023)* +▸ **deployFrom0xArtifactAsync**(`artifact`: `ContractArtifact` | `SimpleContractArtifact`, `supportedProvider`: [SupportedProvider](#supportedprovider), `txDefaults`: `Partial`, `logDecodeDependencies`: object, `_name`: string, `_symbol`: string): *`Promise`* -Decode the ABI-encoded transaction data into its input arguments +*Defined in [abi-gen-wrappers/src/generated-wrappers/dummy_erc721_token.ts:76](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/dummy_erc721_token.ts#L76)* **Parameters:** -Name | Type | Description | ------- | ------ | ------ | -`callData` | string | The ABI-encoded transaction data | +Name | Type | +------ | ------ | +`artifact` | `ContractArtifact` \| `SimpleContractArtifact` | +`supportedProvider` | [SupportedProvider](#supportedprovider) | +`txDefaults` | `Partial` | +`logDecodeDependencies` | object | +`_name` | string | +`_symbol` | string | + +**Returns:** *`Promise`* -**Returns:** *[string]* +___ -An array representing the input arguments in order. Keynames of nested structs are preserved. +### `Static` strictArgumentEncodingCheck -#### getABIEncodedTransactionData +▸ **strictArgumentEncodingCheck**(`inputAbi`: `DataItem`[], `args`: any[]): *string* -▸ **getABIEncodedTransactionData**(`encoded`: string): *string* -*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:1010](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L1010)* -Returns the ABI encoded transaction data needed to send an Ethereum transaction calling this method. Before -sending the Ethereum tx, this encoded tx data can first be sent to a separate signing service or can be used -to create a 0x transaction (see protocol spec for more details). +Defined in base-contract/lib/src/index.d.ts:42 **Parameters:** -Name | Type | Description | ------- | ------ | ------ | -`encoded` | string | ABI-encoded revert error. | +Name | Type | +------ | ------ | +`inputAbi` | `DataItem`[] | +`args` | any[] | **Returns:** *string* -The ABI encoded transaction data as a string - -___ +
-### decodeOrderEpochError +# Class: ERC20TokenContract -#### ▪ **decodeOrderEpochError**: *object* -*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:1046](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L1046)* +## Constructors -Decompose an ABI-encoded OrderEpochError. -#### callAsync -▸ **callAsync**(`encoded`: string, `callData`: `Partial`, `defaultBlock?`: [BlockParam](#blockparam)): *`Promise<[string, string, BigNumber]>`* +\+ **new ERC20TokenContract**(`address`: string, `supportedProvider`: [SupportedProvider](#supportedprovider), `txDefaults?`: `Partial`, `logDecodeDependencies?`: undefined | object, `deployedBytecode`: string | undefined): *[ERC20TokenContract](#class-erc20tokencontract)* -*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:1054](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L1054)* +*Overrides void* -Sends a read-only call to the contract method. Returns the result that would happen if one were to send an -Ethereum transaction to this method, given the current state of the blockchain. Calls do not cost gas -since they don't modify state. +*Defined in [abi-gen-wrappers/src/generated-wrappers/erc20_token.ts:951](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/erc20_token.ts#L951)* **Parameters:** -Name | Type | Default | Description | ------- | ------ | ------ | ------ | -`encoded` | string | - | ABI-encoded revert error. | -`callData` | `Partial` | {} | - | -`defaultBlock?` | [BlockParam](#blockparam) | - | - | - -**Returns:** *`Promise<[string, string, BigNumber]>`* +Name | Type | Default | +------ | ------ | ------ | +`address` | string | - | +`supportedProvider` | [SupportedProvider](#supportedprovider) | - | +`txDefaults?` | `Partial` | - | +`logDecodeDependencies?` | undefined \| object | - | +`deployedBytecode` | string \| undefined | ERC20TokenContract.deployedBytecode | -makerAddress The order maker.orderSenderAddress The order sender.currentEpoch The current epoch for the maker. +**Returns:** *[ERC20TokenContract](#class-erc20tokencontract)* -#### getABIDecodedReturnData +## Properties -▸ **getABIDecodedReturnData**(`returnData`: string): *[string, string, `BigNumber`]* +### `Optional` _deployedBytecodeIfExists -*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:1117](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L1117)* +• **_deployedBytecodeIfExists**? : *`Buffer`* -Decode the ABI-encoded return data from a transaction -**Parameters:** -Name | Type | Description | ------- | ------ | ------ | -`returnData` | string | the data returned after transaction execution | +Defined in base-contract/lib/src/index.d.ts:32 -**Returns:** *[string, string, `BigNumber`]* +___ -An array representing the output results in order. Keynames of nested structs are preserved. +### abi -#### getABIDecodedTransactionData +• **abi**: *[ContractAbi](#contractabi)* -▸ **getABIDecodedTransactionData**(`callData`: string): *[string]* -*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:1105](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L1105)* -Decode the ABI-encoded transaction data into its input arguments +Defined in base-contract/lib/src/index.d.ts:28 -**Parameters:** +___ -Name | Type | Description | ------- | ------ | ------ | -`callData` | string | The ABI-encoded transaction data | +### address -**Returns:** *[string]* +• **address**: *string* -An array representing the input arguments in order. Keynames of nested structs are preserved. -#### getABIEncodedTransactionData -▸ **getABIEncodedTransactionData**(`encoded`: string): *string* +Defined in base-contract/lib/src/index.d.ts:29 -*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:1094](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L1094)* +___ -Returns the ABI encoded transaction data needed to send an Ethereum transaction calling this method. Before -sending the Ethereum tx, this encoded tx data can first be sent to a separate signing service or can be used -to create a 0x transaction (see protocol spec for more details). +Args -**Parameters:** +• **constructorArgs**: *any[]* -Name | Type | Description | ------- | ------ | ------ | -`encoded` | string | ABI-encoded revert error. | -**Returns:** *string* -The ABI encoded transaction data as a string +Defined in base-contract/lib/src/index.d.ts:31 ___ -### decodeOrderStatusError +### contractName + +• **contractName**: *string* -#### ▪ **decodeOrderStatusError**: *object* -*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:1128](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L1128)* -Decompose an ABI-encoded OrderStatusError. +Defined in base-contract/lib/src/index.d.ts:30 -#### callAsync +## Methods -▸ **callAsync**(`encoded`: string, `callData`: `Partial`, `defaultBlock?`: [BlockParam](#blockparam)): *`Promise<[string, number]>`* +### allowance -*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:1136](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L1136)* +▸ **allowance**(`_owner`: string, `_spender`: string): *`ContractFunctionObj`* -Sends a read-only call to the contract method. Returns the result that would happen if one were to send an -Ethereum transaction to this method, given the current state of the blockchain. Calls do not cost gas -since they don't modify state. +*Defined in [abi-gen-wrappers/src/generated-wrappers/erc20_token.ts:828](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/erc20_token.ts#L828)* **Parameters:** -Name | Type | Default | Description | ------- | ------ | ------ | ------ | -`encoded` | string | - | ABI-encoded revert error. | -`callData` | `Partial` | {} | - | -`defaultBlock?` | [BlockParam](#blockparam) | - | - | +Name | Type | +------ | ------ | +`_owner` | string | +`_spender` | string | -**Returns:** *`Promise<[string, number]>`* +**Returns:** *`ContractFunctionObj`* -orderHash The order hash.orderStatus The order status. +___ -#### getABIDecodedReturnData +### approve -▸ **getABIDecodedReturnData**(`returnData`: string): *[string, number]* +▸ **approve**(`_spender`: string, `_value`: `BigNumber`): *`ContractTxFunctionObj`* -*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:1199](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L1199)* +*Defined in [abi-gen-wrappers/src/generated-wrappers/erc20_token.ts:347](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/erc20_token.ts#L347)* -Decode the ABI-encoded return data from a transaction +`msg.sender` approves `_spender` to spend `_value` tokens **Parameters:** Name | Type | Description | ------ | ------ | ------ | -`returnData` | string | the data returned after transaction execution | +`_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`* -**Returns:** *[string, number]* +Always true if the call has enough gas to complete execution -An array representing the output results in order. Keynames of nested structs are preserved. +___ -#### getABIDecodedTransactionData +### balanceOf -▸ **getABIDecodedTransactionData**(`callData`: string): *[string]* +▸ **balanceOf**(`_owner`: string): *`ContractFunctionObj`* -*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:1187](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L1187)* +*Defined in [abi-gen-wrappers/src/generated-wrappers/erc20_token.ts:653](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/erc20_token.ts#L653)* -Decode the ABI-encoded transaction data into its input arguments +Query the balance of owner **Parameters:** Name | Type | Description | ------ | ------ | ------ | -`callData` | string | The ABI-encoded transaction data | - -**Returns:** *[string]* - -An array representing the input arguments in order. Keynames of nested structs are preserved. +`_owner` | string | The address from which the balance will be retrieved | -#### getABIEncodedTransactionData +**Returns:** *`ContractFunctionObj`* -▸ **getABIEncodedTransactionData**(`encoded`: string): *string* +Balance of owner -*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:1176](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L1176)* +___ -Returns the ABI encoded transaction data needed to send an Ethereum transaction calling this method. Before -sending the Ethereum tx, this encoded tx data can first be sent to a separate signing service or can be used -to create a 0x transaction (see protocol spec for more details). +### getABIDecodedReturnData -**Parameters:** +▸ **getABIDecodedReturnData**<**T**>(`methodName`: string, `callData`: string): *`T`* -Name | Type | Description | ------- | ------ | ------ | -`encoded` | string | ABI-encoded revert error. | +*Defined in [abi-gen-wrappers/src/generated-wrappers/erc20_token.ts:327](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/erc20_token.ts#L327)* -**Returns:** *string* +**Type parameters:** -The ABI encoded transaction data as a string +▪ **T** -___ +**Parameters:** -### decodeSignatureError +Name | Type | +------ | ------ | +`methodName` | string | +`callData` | string | -#### ▪ **decodeSignatureError**: *object* +**Returns:** *`T`* -*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:1210](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L1210)* +___ -Decompose an ABI-encoded SignatureError. +### getABIDecodedTransactionData -#### callAsync +▸ **getABIDecodedTransactionData**<**T**>(`methodName`: string, `callData`: string): *`T`* -▸ **callAsync**(`encoded`: string, `callData`: `Partial`, `defaultBlock?`: [BlockParam](#blockparam)): *`Promise<[number, string, string, string]>`* +*Defined in [abi-gen-wrappers/src/generated-wrappers/erc20_token.ts:320](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/erc20_token.ts#L320)* -*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:1218](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L1218)* +**Type parameters:** -Sends a read-only call to the contract method. Returns the result that would happen if one were to send an -Ethereum transaction to this method, given the current state of the blockchain. Calls do not cost gas -since they don't modify state. +▪ **T** **Parameters:** -Name | Type | Default | Description | ------- | ------ | ------ | ------ | -`encoded` | string | - | ABI-encoded revert error. | -`callData` | `Partial` | {} | - | -`defaultBlock?` | [BlockParam](#blockparam) | - | - | - -**Returns:** *`Promise<[number, string, string, string]>`* +Name | Type | +------ | ------ | +`methodName` | string | +`callData` | string | -errorCode The error code.signerAddress The expected signer of the hash.signature The full signature. +**Returns:** *`T`* -#### getABIDecodedReturnData +___ -▸ **getABIDecodedReturnData**(`returnData`: string): *[number, string, string, string]* +### getFunctionSignature -*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:1281](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L1281)* +▸ **getFunctionSignature**(`methodName`: string): *string* -Decode the ABI-encoded return data from a transaction +*Defined in [abi-gen-wrappers/src/generated-wrappers/erc20_token.ts:314](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/erc20_token.ts#L314)* **Parameters:** -Name | Type | Description | ------- | ------ | ------ | -`returnData` | string | the data returned after transaction execution | +Name | Type | +------ | ------ | +`methodName` | string | + +**Returns:** *string* -**Returns:** *[number, string, string, string]* +___ + +### getLogsAsync -An array representing the output results in order. Keynames of nested structs are preserved. +▸ **getLogsAsync**<**ArgsType**>(`eventName`: [ERC20TokenEvents](#enumeration-erc20tokenevents), `blockRange`: `BlockRange`, `indexFilterValues`: `IndexedFilterValues`): *`Promise>>`* -#### getABIDecodedTransactionData +*Defined in [abi-gen-wrappers/src/generated-wrappers/erc20_token.ts:935](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/erc20_token.ts#L935)* -▸ **getABIDecodedTransactionData**(`callData`: string): *[string]* +Gets historical logs without creating a subscription -*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:1269](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L1269)* +**Type parameters:** -Decode the ABI-encoded transaction data into its input arguments +▪ **ArgsType**: *[ERC20TokenEventArgs](#erc20tokeneventargs)* **Parameters:** Name | Type | Description | ------ | ------ | ------ | -`callData` | string | The ABI-encoded transaction data | +`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:** *[string]* +**Returns:** *`Promise>>`* -An array representing the input arguments in order. Keynames of nested structs are preserved. +Array of logs that match the parameters -#### getABIEncodedTransactionData +___ -▸ **getABIEncodedTransactionData**(`encoded`: string): *string* +### getSelector -*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:1258](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L1258)* +▸ **getSelector**(`methodName`: string): *string* -Returns the ABI encoded transaction data needed to send an Ethereum transaction calling this method. Before -sending the Ethereum tx, this encoded tx data can first be sent to a separate signing service or can be used -to create a 0x transaction (see protocol spec for more details). +*Defined in [abi-gen-wrappers/src/generated-wrappers/erc20_token.ts:334](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/erc20_token.ts#L334)* **Parameters:** -Name | Type | Description | ------- | ------ | ------ | -`encoded` | string | ABI-encoded revert error. | +Name | Type | +------ | ------ | +`methodName` | string | **Returns:** *string* -The ABI encoded transaction data as a string - ___ -### decodeSignatureValidatorNotApprovedError - -#### ▪ **decodeSignatureValidatorNotApprovedError**: *object* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:1294](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L1294)* +### subscribe -Decompose an ABI-encoded SignatureValidatorNotApprovedError. +▸ **subscribe**<**ArgsType**>(`eventName`: [ERC20TokenEvents](#enumeration-erc20tokenevents), `indexFilterValues`: `IndexedFilterValues`, `callback`: [EventCallback](#eventcallback)‹*`ArgsType`*›, `isVerbose`: boolean, `blockPollingIntervalMs?`: undefined | number): *string* -#### callAsync +*Defined in [abi-gen-wrappers/src/generated-wrappers/erc20_token.ts:893](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/erc20_token.ts#L893)* -▸ **callAsync**(`encoded`: string, `callData`: `Partial`, `defaultBlock?`: [BlockParam](#blockparam)): *`Promise<[string, string]>`* +Subscribe to an event type emitted by the ERC20Token contract. -*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:1302](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L1302)* +**Type parameters:** -Sends a read-only call to the contract method. Returns the result that would happen if one were to send an -Ethereum transaction to this method, given the current state of the blockchain. Calls do not cost gas -since they don't modify state. +▪ **ArgsType**: *[ERC20TokenEventArgs](#erc20tokeneventargs)* **Parameters:** Name | Type | Default | Description | ------ | ------ | ------ | ------ | -`encoded` | string | - | ABI-encoded revert error. | -`callData` | `Partial` | {} | - | -`defaultBlock?` | [BlockParam](#blockparam) | - | - | +`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:** *`Promise<[string, string]>`* +**Returns:** *string* -signerAddress The expected signer of the hash.validatorAddress The expected validator. +Subscription token used later to unsubscribe -#### getABIDecodedReturnData +___ -▸ **getABIDecodedReturnData**(`returnData`: string): *[string, string]* +### totalSupply -*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:1370](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L1370)* +▸ **totalSupply**(): *`ContractFunctionObj`* -Decode the ABI-encoded return data from a transaction +*Defined in [abi-gen-wrappers/src/generated-wrappers/erc20_token.ts:470](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/erc20_token.ts#L470)* -**Parameters:** +Query total supply of token -Name | Type | Description | ------- | ------ | ------ | -`returnData` | string | the data returned after transaction execution | +**Returns:** *`ContractFunctionObj`* -**Returns:** *[string, string]* +Total supply of token -An array representing the output results in order. Keynames of nested structs are preserved. +___ -#### getABIDecodedTransactionData +### transfer -▸ **getABIDecodedTransactionData**(`callData`: string): *[string]* +▸ **transfer**(`_to`: string, `_value`: `BigNumber`): *`ContractTxFunctionObj`* -*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:1358](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L1358)* +*Defined in [abi-gen-wrappers/src/generated-wrappers/erc20_token.ts:709](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/erc20_token.ts#L709)* -Decode the ABI-encoded transaction data into its input arguments +send `value` token to `to` from `msg.sender` **Parameters:** Name | Type | Description | ------ | ------ | ------ | -`callData` | string | The ABI-encoded transaction data | +`_to` | string | The address of the recipient | +`_value` | `BigNumber` | The amount of token to be transferred | -**Returns:** *[string]* +**Returns:** *`ContractTxFunctionObj`* -An array representing the input arguments in order. Keynames of nested structs are preserved. +True if transfer was successful + +___ -#### getABIEncodedTransactionData +### transferFrom -▸ **getABIEncodedTransactionData**(`encoded`: string): *string* +▸ **transferFrom**(`_from`: string, `_to`: string, `_value`: `BigNumber`): *`ContractTxFunctionObj`* -*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:1344](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L1344)* +*Defined in [abi-gen-wrappers/src/generated-wrappers/erc20_token.ts:524](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/erc20_token.ts#L524)* -Returns the ABI encoded transaction data needed to send an Ethereum transaction calling this method. Before -sending the Ethereum tx, this encoded tx data can first be sent to a separate signing service or can be used -to create a 0x transaction (see protocol spec for more details). +send `value` token to `to` from `from` on the condition it is approved by `from` **Parameters:** Name | Type | Description | ------ | ------ | ------ | -`encoded` | string | ABI-encoded revert error. | +`_from` | string | The address of the sender | +`_to` | string | The address of the recipient | +`_value` | `BigNumber` | The amount of token to be transferred | -**Returns:** *string* +**Returns:** *`ContractTxFunctionObj`* -The ABI encoded transaction data as a string +True if transfer was successful ___ -### decodeSignatureWalletError - -#### ▪ **decodeSignatureWalletError**: *object* +### unsubscribe -*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:1381](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L1381)* +▸ **unsubscribe**(`subscriptionToken`: string): *void* -Decompose an ABI-encoded SignatureWalletError. +*Defined in [abi-gen-wrappers/src/generated-wrappers/erc20_token.ts:918](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/erc20_token.ts#L918)* -#### callAsync +Cancel a subscription -▸ **callAsync**(`encoded`: string, `callData`: `Partial`, `defaultBlock?`: [BlockParam](#blockparam)): *`Promise<[string, string, string, string]>`* +**Parameters:** -*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:1389](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L1389)* +Name | Type | Description | +------ | ------ | ------ | +`subscriptionToken` | string | Subscription token returned by `subscribe()` | -Sends a read-only call to the contract method. Returns the result that would happen if one were to send an -Ethereum transaction to this method, given the current state of the blockchain. Calls do not cost gas -since they don't modify state. +**Returns:** *void* -**Parameters:** +___ -Name | Type | Default | Description | ------- | ------ | ------ | ------ | -`encoded` | string | - | ABI-encoded revert error. | -`callData` | `Partial` | {} | - | -`defaultBlock?` | [BlockParam](#blockparam) | - | - | +### unsubscribeAll -**Returns:** *`Promise<[string, string, string, string]>`* +▸ **unsubscribeAll**(): *void* -errorCode The error code.signerAddress The expected signer of the hash.signature The full signature bytes.errorData The revert data thrown by the validator contract. +*Defined in [abi-gen-wrappers/src/generated-wrappers/erc20_token.ts:924](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/erc20_token.ts#L924)* -#### getABIDecodedReturnData +Cancels all existing subscriptions -▸ **getABIDecodedReturnData**(`returnData`: string): *[string, string, string, string]* +**Returns:** *void* -*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:1454](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L1454)* +___ -Decode the ABI-encoded return data from a transaction +### `Static` ABI -**Parameters:** +▸ **ABI**(): *[ContractAbi](#contractabi)* -Name | Type | Description | ------- | ------ | ------ | -`returnData` | string | the data returned after transaction execution | +*Defined in [abi-gen-wrappers/src/generated-wrappers/erc20_token.ts:133](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/erc20_token.ts#L133)* -**Returns:** *[string, string, string, string]* +**Returns:** *[ContractAbi](#contractabi)* -An array representing the output results in order. Keynames of nested structs are preserved. +The contract ABI -#### getABIDecodedTransactionData +___ -▸ **getABIDecodedTransactionData**(`callData`: string): *[string]* +### `Static` deployAsync -*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:1442](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L1442)* +▸ **deployAsync**(`bytecode`: string, `abi`: [ContractAbi](#contractabi), `supportedProvider`: [SupportedProvider](#supportedprovider), `txDefaults`: `Partial`, `logDecodeDependencies`: object): *`Promise`* -Decode the ABI-encoded transaction data into its input arguments +*Defined in [abi-gen-wrappers/src/generated-wrappers/erc20_token.ts:91](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/erc20_token.ts#L91)* **Parameters:** -Name | Type | Description | ------- | ------ | ------ | -`callData` | string | The ABI-encoded transaction data | - -**Returns:** *[string]* +Name | Type | +------ | ------ | +`bytecode` | string | +`abi` | [ContractAbi](#contractabi) | +`supportedProvider` | [SupportedProvider](#supportedprovider) | +`txDefaults` | `Partial` | +`logDecodeDependencies` | object | -An array representing the input arguments in order. Keynames of nested structs are preserved. +**Returns:** *`Promise`* -#### getABIEncodedTransactionData +___ -▸ **getABIEncodedTransactionData**(`encoded`: string): *string* +### `Static` deployFrom0xArtifactAsync -*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:1429](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L1429)* +▸ **deployFrom0xArtifactAsync**(`artifact`: `ContractArtifact` | `SimpleContractArtifact`, `supportedProvider`: [SupportedProvider](#supportedprovider), `txDefaults`: `Partial`, `logDecodeDependencies`: object): *`Promise`* -Returns the ABI encoded transaction data needed to send an Ethereum transaction calling this method. Before -sending the Ethereum tx, this encoded tx data can first be sent to a separate signing service or can be used -to create a 0x transaction (see protocol spec for more details). +*Defined in [abi-gen-wrappers/src/generated-wrappers/erc20_token.ts:66](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/erc20_token.ts#L66)* **Parameters:** -Name | Type | Description | ------- | ------ | ------ | -`encoded` | string | ABI-encoded revert error. | - -**Returns:** *string* +Name | Type | +------ | ------ | +`artifact` | `ContractArtifact` \| `SimpleContractArtifact` | +`supportedProvider` | [SupportedProvider](#supportedprovider) | +`txDefaults` | `Partial` | +`logDecodeDependencies` | object | -The ABI encoded transaction data as a string +**Returns:** *`Promise`* ___ -### decodeTransactionError +### `Static` strictArgumentEncodingCheck -#### ▪ **decodeTransactionError**: *object* +▸ **strictArgumentEncodingCheck**(`inputAbi`: `DataItem`[], `args`: any[]): *string* -*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:1467](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L1467)* -Decompose an ABI-encoded TransactionError. -#### callAsync +Defined in base-contract/lib/src/index.d.ts:42 -▸ **callAsync**(`encoded`: string, `callData`: `Partial`, `defaultBlock?`: [BlockParam](#blockparam)): *`Promise<[number, string]>`* +**Parameters:** -*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:1475](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L1475)* +Name | Type | +------ | ------ | +`inputAbi` | `DataItem`[] | +`args` | any[] | -Sends a read-only call to the contract method. Returns the result that would happen if one were to send an -Ethereum transaction to this method, given the current state of the blockchain. Calls do not cost gas -since they don't modify state. +**Returns:** *string* -**Parameters:** +
-Name | Type | Default | Description | ------- | ------ | ------ | ------ | -`encoded` | string | - | ABI-encoded revert error. | -`callData` | `Partial` | {} | - | -`defaultBlock?` | [BlockParam](#blockparam) | - | - | +# Class: ERC721TokenContract -**Returns:** *`Promise<[number, string]>`* -errorCode The error code.transactionHash Hash of the transaction. +## Constructors -#### getABIDecodedReturnData -▸ **getABIDecodedReturnData**(`returnData`: string): *[number, string]* -*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:1538](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L1538)* +\+ **new ERC721TokenContract**(`address`: string, `supportedProvider`: [SupportedProvider](#supportedprovider), `txDefaults?`: `Partial`, `logDecodeDependencies?`: undefined | object, `deployedBytecode`: string | undefined): *[ERC721TokenContract](#class-erc721tokencontract)* + +*Overrides void* -Decode the ABI-encoded return data from a transaction +*Defined in [abi-gen-wrappers/src/generated-wrappers/erc721_token.ts:1376](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/erc721_token.ts#L1376)* **Parameters:** -Name | Type | Description | +Name | Type | Default | ------ | ------ | ------ | -`returnData` | string | the data returned after transaction execution | +`address` | string | - | +`supportedProvider` | [SupportedProvider](#supportedprovider) | - | +`txDefaults?` | `Partial` | - | +`logDecodeDependencies?` | undefined \| object | - | +`deployedBytecode` | string \| undefined | ERC721TokenContract.deployedBytecode | -**Returns:** *[number, string]* +**Returns:** *[ERC721TokenContract](#class-erc721tokencontract)* -An array representing the output results in order. Keynames of nested structs are preserved. +## Properties -#### getABIDecodedTransactionData +### `Optional` _deployedBytecodeIfExists -▸ **getABIDecodedTransactionData**(`callData`: string): *[string]* +• **_deployedBytecodeIfExists**? : *`Buffer`* -*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:1526](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L1526)* -Decode the ABI-encoded transaction data into its input arguments -**Parameters:** +Defined in base-contract/lib/src/index.d.ts:32 -Name | Type | Description | ------- | ------ | ------ | -`callData` | string | The ABI-encoded transaction data | +___ + +### abi -**Returns:** *[string]* +• **abi**: *[ContractAbi](#contractabi)* -An array representing the input arguments in order. Keynames of nested structs are preserved. -#### getABIEncodedTransactionData -▸ **getABIEncodedTransactionData**(`encoded`: string): *string* +Defined in base-contract/lib/src/index.d.ts:28 -*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:1515](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L1515)* +___ -Returns the ABI encoded transaction data needed to send an Ethereum transaction calling this method. Before -sending the Ethereum tx, this encoded tx data can first be sent to a separate signing service or can be used -to create a 0x transaction (see protocol spec for more details). +### address -**Parameters:** +• **address**: *string* -Name | Type | Description | ------- | ------ | ------ | -`encoded` | string | ABI-encoded revert error. | -**Returns:** *string* -The ABI encoded transaction data as a string +Defined in base-contract/lib/src/index.d.ts:29 ___ -### decodeTransactionExecutionError +Args -#### ▪ **decodeTransactionExecutionError**: *object* +• **constructorArgs**: *any[]* -*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:1549](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L1549)* -Decompose an ABI-encoded TransactionExecutionError. -#### callAsync +Defined in base-contract/lib/src/index.d.ts:31 -▸ **callAsync**(`encoded`: string, `callData`: `Partial`, `defaultBlock?`: [BlockParam](#blockparam)): *`Promise<[string, string]>`* +___ -*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:1557](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L1557)* +### contractName -Sends a read-only call to the contract method. Returns the result that would happen if one were to send an -Ethereum transaction to this method, given the current state of the blockchain. Calls do not cost gas -since they don't modify state. +• **contractName**: *string* -**Parameters:** -Name | Type | Default | Description | ------- | ------ | ------ | ------ | -`encoded` | string | - | ABI-encoded revert error. | -`callData` | `Partial` | {} | - | -`defaultBlock?` | [BlockParam](#blockparam) | - | - | -**Returns:** *`Promise<[string, string]>`* +Defined in base-contract/lib/src/index.d.ts:30 -transactionHash Hash of the transaction.errorData Error thrown by exeucteTransaction(). +## Methods -#### getABIDecodedReturnData +### approve -▸ **getABIDecodedReturnData**(`returnData`: string): *[string, string]* +▸ **approve**(`_approved`: string, `_tokenId`: `BigNumber`): *`ContractTxFunctionObj`* -*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:1622](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L1622)* +*Defined in [abi-gen-wrappers/src/generated-wrappers/erc721_token.ts:438](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/erc721_token.ts#L438)* -Decode the ABI-encoded return data from a transaction +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 | ------ | ------ | ------ | -`returnData` | string | the data returned after transaction execution | +`_approved` | string | The new approved NFT controller | +`_tokenId` | `BigNumber` | The NFT to approve | -**Returns:** *[string, string]* +**Returns:** *`ContractTxFunctionObj`* -An array representing the output results in order. Keynames of nested structs are preserved. +___ -#### getABIDecodedTransactionData +### balanceOf -▸ **getABIDecodedTransactionData**(`callData`: string): *[string]* +▸ **balanceOf**(`_owner`: string): *`ContractFunctionObj`* -*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:1610](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L1610)* +*Defined in [abi-gen-wrappers/src/generated-wrappers/erc721_token.ts:563](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/erc721_token.ts#L563)* -Decode the ABI-encoded transaction data into its input arguments +NFTs assigned to the zero address are considered invalid, and this +function throws for queries about the zero address. **Parameters:** Name | Type | Description | ------ | ------ | ------ | -`callData` | string | The ABI-encoded transaction data | - -**Returns:** *[string]* - -An array representing the input arguments in order. Keynames of nested structs are preserved. +`_owner` | string | An address for whom to query the balance | -#### getABIEncodedTransactionData +**Returns:** *`ContractFunctionObj`* -▸ **getABIEncodedTransactionData**(`encoded`: string): *string* +The number of NFTs owned by `_owner`, possibly zero -*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:1597](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L1597)* +___ -Returns the ABI encoded transaction data needed to send an Ethereum transaction calling this method. Before -sending the Ethereum tx, this encoded tx data can first be sent to a separate signing service or can be used -to create a 0x transaction (see protocol spec for more details). +### getABIDecodedReturnData -**Parameters:** +▸ **getABIDecodedReturnData**<**T**>(`methodName`: string, `callData`: string): *`T`* -Name | Type | Description | ------- | ------ | ------ | -`encoded` | string | ABI-encoded revert error. | +*Defined in [abi-gen-wrappers/src/generated-wrappers/erc721_token.ts:417](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/erc721_token.ts#L417)* -**Returns:** *string* +**Type parameters:** -The ABI encoded transaction data as a string +▪ **T** -___ +**Parameters:** -### decodeZeroExTransactionData +Name | Type | +------ | ------ | +`methodName` | string | +`callData` | string | -#### ▪ **decodeZeroExTransactionData**: *object* +**Returns:** *`T`* -*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:1633](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L1633)* +___ -Decodes the call data for an Exchange contract method call. +### getABIDecodedTransactionData -#### callAsync +▸ **getABIDecodedTransactionData**<**T**>(`methodName`: string, `callData`: string): *`T`* -▸ **callAsync**(`transactionData`: string, `callData`: `Partial`, `defaultBlock?`: [BlockParam](#blockparam)): *`Promise<[string, Array, BigNumber[], string[]]>`* +*Defined in [abi-gen-wrappers/src/generated-wrappers/erc721_token.ts:410](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/erc721_token.ts#L410)* -*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:1642](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L1642)* +**Type parameters:** -Sends a read-only call to the contract method. Returns the result that would happen if one were to send an -Ethereum transaction to this method, given the current state of the blockchain. Calls do not cost gas -since they don't modify state. +▪ **T** **Parameters:** -Name | Type | Default | Description | ------- | ------ | ------ | ------ | -`transactionData` | string | - | ABI-encoded calldata for an Exchange contract method call. | -`callData` | `Partial` | {} | - | -`defaultBlock?` | [BlockParam](#blockparam) | - | - | +Name | Type | +------ | ------ | +`methodName` | string | +`callData` | string | -**Returns:** *`Promise<[string, Array, BigNumber[], string[]]>`* +**Returns:** *`T`* -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. +___ -#### getABIDecodedReturnData +### getApproved -▸ **getABIDecodedReturnData**(`returnData`: string): *[string, `Array`, `BigNumber`[], string[]]* +▸ **getApproved**(`_tokenId`: `BigNumber`): *`ContractFunctionObj`* -*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:1752](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L1752)* +*Defined in [abi-gen-wrappers/src/generated-wrappers/erc721_token.ts:618](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/erc721_token.ts#L618)* -Decode the ABI-encoded return data from a transaction +Throws if `_tokenId` is not a valid NFT. **Parameters:** Name | Type | Description | ------ | ------ | ------ | -`returnData` | string | the data returned after transaction execution | +`_tokenId` | `BigNumber` | The NFT to find the approved address for | -**Returns:** *[string, `Array`, `BigNumber`[], string[]]* +**Returns:** *`ContractFunctionObj`* -An array representing the output results in order. Keynames of nested structs are preserved. +The approved address for this NFT, or the zero address if there is none -#### getABIDecodedTransactionData +___ -▸ **getABIDecodedTransactionData**(`callData`: string): *[string]* +### getFunctionSignature -*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:1740](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L1740)* +▸ **getFunctionSignature**(`methodName`: string): *string* -Decode the ABI-encoded transaction data into its input arguments +*Defined in [abi-gen-wrappers/src/generated-wrappers/erc721_token.ts:404](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/erc721_token.ts#L404)* **Parameters:** -Name | Type | Description | ------- | ------ | ------ | -`callData` | string | The ABI-encoded transaction data | +Name | Type | +------ | ------ | +`methodName` | string | + +**Returns:** *string* + +___ -**Returns:** *[string]* +### getLogsAsync -An array representing the input arguments in order. Keynames of nested structs are preserved. +▸ **getLogsAsync**<**ArgsType**>(`eventName`: [ERC721TokenEvents](#enumeration-erc721tokenevents), `blockRange`: `BlockRange`, `indexFilterValues`: `IndexedFilterValues`): *`Promise>>`* -#### getABIEncodedTransactionData +*Defined in [abi-gen-wrappers/src/generated-wrappers/erc721_token.ts:1360](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/erc721_token.ts#L1360)* -▸ **getABIEncodedTransactionData**(`transactionData`: string): *string* +Gets historical logs without creating a subscription -*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:1727](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L1727)* +**Type parameters:** -Returns the ABI encoded transaction data needed to send an Ethereum transaction calling this method. Before -sending the Ethereum tx, this encoded tx data can first be sent to a separate signing service or can be used -to create a 0x transaction (see protocol spec for more details). +▪ **ArgsType**: *[ERC721TokenEventArgs](#erc721tokeneventargs)* **Parameters:** Name | Type | Description | ------ | ------ | ------ | -`transactionData` | string | ABI-encoded calldata for an Exchange contract method call. | +`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:** *string* +**Returns:** *`Promise>>`* -The ABI encoded transaction data as a string +Array of logs that match the parameters ___ -### encodeERC1155AssetData +### getSelector -#### ▪ **encodeERC1155AssetData**: *object* +▸ **getSelector**(`methodName`: string): *string* -*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:1807](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L1807)* +*Defined in [abi-gen-wrappers/src/generated-wrappers/erc721_token.ts:424](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/erc721_token.ts#L424)* -Encode ERC-1155 asset data into the format described in the AssetProxy contract specification. +**Parameters:** + +Name | Type | +------ | ------ | +`methodName` | string | + +**Returns:** *string* -#### callAsync +___ -▸ **callAsync**(`tokenAddress`: string, `tokenIds`: `BigNumber`[], `tokenValues`: `BigNumber`[], `callbackData`: string, `callData`: `Partial`, `defaultBlock?`: [BlockParam](#blockparam)): *`Promise`* +### isApprovedForAll -*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:1820](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L1820)* +▸ **isApprovedForAll**(`_owner`: string, `_operator`: string): *`ContractFunctionObj`* -Sends a read-only call to the contract method. Returns the result that would happen if one were to send an -Ethereum transaction to this method, given the current state of the blockchain. Calls do not cost gas -since they don't modify state. +*Defined in [abi-gen-wrappers/src/generated-wrappers/erc721_token.ts:666](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/erc721_token.ts#L666)* **Parameters:** -Name | Type | Default | 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. | -`callData` | `Partial` | {} | - | -`defaultBlock?` | [BlockParam](#blockparam) | - | - | +Name | Type | +------ | ------ | +`_owner` | string | +`_operator` | string | -**Returns:** *`Promise`* +**Returns:** *`ContractFunctionObj`* -AssetProxy-compliant asset data describing the set of assets. +___ -#### getABIDecodedReturnData +### ownerOf -▸ **getABIDecodedReturnData**(`returnData`: string): *string* +▸ **ownerOf**(`_tokenId`: `BigNumber`): *`ContractFunctionObj`* -*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:1908](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L1908)* +*Defined in [abi-gen-wrappers/src/generated-wrappers/erc721_token.ts:727](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/erc721_token.ts#L727)* -Decode the ABI-encoded return data from a transaction +NFTs assigned to zero address are considered invalid, and queries +about them do throw. **Parameters:** Name | Type | Description | ------ | ------ | ------ | -`returnData` | string | the data returned after transaction execution | +`_tokenId` | `BigNumber` | The identifier for an NFT | -**Returns:** *string* +**Returns:** *`ContractFunctionObj`* + +The address of the owner of the NFT -An array representing the output results in order. Keynames of nested structs are preserved. +___ -#### getABIDecodedTransactionData +### safeTransferFrom1 -▸ **getABIDecodedTransactionData**(`callData`: string): *string* +▸ **safeTransferFrom1**(`_from`: string, `_to`: string, `_tokenId`: `BigNumber`): *`ContractTxFunctionObj`* -*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:1896](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L1896)* +*Defined in [abi-gen-wrappers/src/generated-wrappers/erc721_token.ts:782](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/erc721_token.ts#L782)* -Decode the ABI-encoded transaction data into its input arguments +This works identically to the other function with an extra data parameter, +except this function just sets data to "". **Parameters:** Name | Type | Description | ------ | ------ | ------ | -`callData` | string | The ABI-encoded transaction data | +`_from` | string | The current owner of the NFT | +`_to` | string | The new owner | +`_tokenId` | `BigNumber` | The NFT to transfer | -**Returns:** *string* +**Returns:** *`ContractTxFunctionObj`* -An array representing the input arguments in order. Keynames of nested structs are preserved. +___ -#### getABIEncodedTransactionData +### safeTransferFrom2 -▸ **getABIEncodedTransactionData**(`tokenAddress`: string, `tokenIds`: `BigNumber`[], `tokenValues`: `BigNumber`[], `callbackData`: string): *string* +▸ **safeTransferFrom2**(`_from`: string, `_to`: string, `_tokenId`: `BigNumber`, `_data`: string): *`ContractTxFunctionObj`* -*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:1874](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L1874)* +*Defined in [abi-gen-wrappers/src/generated-wrappers/erc721_token.ts:918](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/erc721_token.ts#L918)* -Returns the ABI encoded transaction data needed to send an Ethereum transaction calling this method. Before -sending the Ethereum tx, this encoded tx data can first be sent to a separate signing service or can be used -to create a 0x transaction (see protocol spec for more details). +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 | ------ | ------ | ------ | -`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:** *string* +`_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` | -The ABI encoded transaction data as a string +**Returns:** *`ContractTxFunctionObj`* ___ -### encodeERC20AssetData +### setApprovalForAll -#### ▪ **encodeERC20AssetData**: *object* +▸ **setApprovalForAll**(`_operator`: string, `_approved`: boolean): *`ContractTxFunctionObj`* -*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:1919](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L1919)* +*Defined in [abi-gen-wrappers/src/generated-wrappers/erc721_token.ts:1056](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/erc721_token.ts#L1056)* -Encode ERC-20 asset data into the format described in the AssetProxy contract specification. +Emits the ApprovalForAll event. The contract MUST allow +multiple operators per owner. -#### callAsync +**Parameters:** -▸ **callAsync**(`tokenAddress`: string, `callData`: `Partial`, `defaultBlock?`: [BlockParam](#blockparam)): *`Promise`* +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 | -*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:1928](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L1928)* +**Returns:** *`ContractTxFunctionObj`* -Sends a read-only call to the contract method. Returns the result that would happen if one were to send an -Ethereum transaction to this method, given the current state of the blockchain. Calls do not cost gas -since they don't modify state. +___ -**Parameters:** - -Name | Type | Default | Description | ------- | ------ | ------ | ------ | -`tokenAddress` | string | - | The address of the ERC-20 contract hosting the asset to be traded. | -`callData` | `Partial` | {} | - | -`defaultBlock?` | [BlockParam](#blockparam) | - | - | - -**Returns:** *`Promise`* +### subscribe -AssetProxy-compliant data describing the asset. +▸ **subscribe**<**ArgsType**>(`eventName`: [ERC721TokenEvents](#enumeration-erc721tokenevents), `indexFilterValues`: `IndexedFilterValues`, `callback`: [EventCallback](#eventcallback)‹*`ArgsType`*›, `isVerbose`: boolean, `blockPollingIntervalMs?`: undefined | number): *string* -#### getABIDecodedReturnData +*Defined in [abi-gen-wrappers/src/generated-wrappers/erc721_token.ts:1318](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/erc721_token.ts#L1318)* -▸ **getABIDecodedReturnData**(`returnData`: string): *string* +Subscribe to an event type emitted by the ERC721Token contract. -*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:1996](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L1996)* +**Type parameters:** -Decode the ABI-encoded return data from a transaction +▪ **ArgsType**: *[ERC721TokenEventArgs](#erc721tokeneventargs)* **Parameters:** -Name | Type | Description | ------- | ------ | ------ | -`returnData` | string | the data returned after transaction execution | +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* -An array representing the output results in order. Keynames of nested structs are preserved. +Subscription token used later to unsubscribe + +___ -#### getABIDecodedTransactionData +### transferFrom -▸ **getABIDecodedTransactionData**(`callData`: string): *string* +▸ **transferFrom**(`_from`: string, `_to`: string, `_tokenId`: `BigNumber`): *`ContractTxFunctionObj`* -*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:1984](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L1984)* +*Defined in [abi-gen-wrappers/src/generated-wrappers/erc721_token.ts:1184](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/erc721_token.ts#L1184)* -Decode the ABI-encoded transaction data into its input arguments +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 | ------ | ------ | ------ | -`callData` | string | The ABI-encoded transaction data | +`_from` | string | The current owner of the NFT | +`_to` | string | The new owner | +`_tokenId` | `BigNumber` | The NFT to transfer | -**Returns:** *string* +**Returns:** *`ContractTxFunctionObj`* -An array representing the input arguments in order. Keynames of nested structs are preserved. +___ -#### getABIEncodedTransactionData +### unsubscribe -▸ **getABIEncodedTransactionData**(`tokenAddress`: string): *string* +▸ **unsubscribe**(`subscriptionToken`: string): *void* -*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:1971](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L1971)* +*Defined in [abi-gen-wrappers/src/generated-wrappers/erc721_token.ts:1343](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/erc721_token.ts#L1343)* -Returns the ABI encoded transaction data needed to send an Ethereum transaction calling this method. Before -sending the Ethereum tx, this encoded tx data can first be sent to a separate signing service or can be used -to create a 0x transaction (see protocol spec for more details). +Cancel a subscription **Parameters:** Name | Type | Description | ------ | ------ | ------ | -`tokenAddress` | string | The address of the ERC-20 contract hosting the asset to be traded. | - -**Returns:** *string* +`subscriptionToken` | string | Subscription token returned by `subscribe()` | -The ABI encoded transaction data as a string +**Returns:** *void* ___ -### encodeERC721AssetData - -#### ▪ **encodeERC721AssetData**: *object* +### unsubscribeAll -*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:2007](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L2007)* +▸ **unsubscribeAll**(): *void* -Encode ERC-721 asset data into the format described in the AssetProxy specification. +*Defined in [abi-gen-wrappers/src/generated-wrappers/erc721_token.ts:1349](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/erc721_token.ts#L1349)* -#### callAsync +Cancels all existing subscriptions -▸ **callAsync**(`tokenAddress`: string, `tokenId`: `BigNumber`, `callData`: `Partial`, `defaultBlock?`: [BlockParam](#blockparam)): *`Promise`* +**Returns:** *void* -*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:2017](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L2017)* +___ -Sends a read-only call to the contract method. Returns the result that would happen if one were to send an -Ethereum transaction to this method, given the current state of the blockchain. Calls do not cost gas -since they don't modify state. +### `Static` ABI -**Parameters:** +▸ **ABI**(): *[ContractAbi](#contractabi)* -Name | Type | Default | 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. | -`callData` | `Partial` | {} | - | -`defaultBlock?` | [BlockParam](#blockparam) | - | - | +*Defined in [abi-gen-wrappers/src/generated-wrappers/erc721_token.ts:143](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/erc721_token.ts#L143)* -**Returns:** *`Promise`* +**Returns:** *[ContractAbi](#contractabi)* -AssetProxy-compliant asset data describing the asset. +The contract ABI -#### getABIDecodedReturnData +___ -▸ **getABIDecodedReturnData**(`returnData`: string): *string* +### `Static` deployAsync -*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:2091](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L2091)* +▸ **deployAsync**(`bytecode`: string, `abi`: [ContractAbi](#contractabi), `supportedProvider`: [SupportedProvider](#supportedprovider), `txDefaults`: `Partial`, `logDecodeDependencies`: object): *`Promise`* -Decode the ABI-encoded return data from a transaction +*Defined in [abi-gen-wrappers/src/generated-wrappers/erc721_token.ts:101](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/erc721_token.ts#L101)* **Parameters:** -Name | Type | Description | ------- | ------ | ------ | -`returnData` | string | the data returned after transaction execution | - -**Returns:** *string* +Name | Type | +------ | ------ | +`bytecode` | string | +`abi` | [ContractAbi](#contractabi) | +`supportedProvider` | [SupportedProvider](#supportedprovider) | +`txDefaults` | `Partial` | +`logDecodeDependencies` | object | -An array representing the output results in order. Keynames of nested structs are preserved. +**Returns:** *`Promise`* -#### getABIDecodedTransactionData +___ -▸ **getABIDecodedTransactionData**(`callData`: string): *string* +### `Static` deployFrom0xArtifactAsync -*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:2079](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L2079)* +▸ **deployFrom0xArtifactAsync**(`artifact`: `ContractArtifact` | `SimpleContractArtifact`, `supportedProvider`: [SupportedProvider](#supportedprovider), `txDefaults`: `Partial`, `logDecodeDependencies`: object): *`Promise`* -Decode the ABI-encoded transaction data into its input arguments +*Defined in [abi-gen-wrappers/src/generated-wrappers/erc721_token.ts:76](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/erc721_token.ts#L76)* **Parameters:** -Name | Type | Description | ------- | ------ | ------ | -`callData` | string | The ABI-encoded transaction data | +Name | Type | +------ | ------ | +`artifact` | `ContractArtifact` \| `SimpleContractArtifact` | +`supportedProvider` | [SupportedProvider](#supportedprovider) | +`txDefaults` | `Partial` | +`logDecodeDependencies` | object | -**Returns:** *string* +**Returns:** *`Promise`* + +___ -An array representing the input arguments in order. Keynames of nested structs are preserved. +### `Static` strictArgumentEncodingCheck -#### getABIEncodedTransactionData +▸ **strictArgumentEncodingCheck**(`inputAbi`: `DataItem`[], `args`: any[]): *string* -▸ **getABIEncodedTransactionData**(`tokenAddress`: string, `tokenId`: `BigNumber`): *string* -*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:2064](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L2064)* -Returns the ABI encoded transaction data needed to send an Ethereum transaction calling this method. Before -sending the Ethereum tx, this encoded tx data can first be sent to a separate signing service or can be used -to create a 0x transaction (see protocol spec for more details). +Defined in base-contract/lib/src/index.d.ts:42 **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. | +Name | Type | +------ | ------ | +`inputAbi` | `DataItem`[] | +`args` | any[] | **Returns:** *string* -The ABI encoded transaction data as a string - -___ +
-### encodeMultiAssetData +# Class: ExchangeContract -#### ▪ **encodeMultiAssetData**: *object* -*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:2102](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L2102)* +## Constructors -Encode data for multiple assets, per the AssetProxy contract specification. -#### callAsync -▸ **callAsync**(`amounts`: `BigNumber`[], `nestedAssetData`: string[], `callData`: `Partial`, `defaultBlock?`: [BlockParam](#blockparam)): *`Promise`* +\+ **new ExchangeContract**(`address`: string, `supportedProvider`: [SupportedProvider](#supportedprovider), `txDefaults?`: `Partial`, `logDecodeDependencies?`: undefined | object, `deployedBytecode`: string | undefined): *[ExchangeContract](#class-exchangecontract)* -*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:2112](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L2112)* +*Overrides void* -Sends a read-only call to the contract method. Returns the result that would happen if one were to send an -Ethereum transaction to this method, given the current state of the blockchain. Calls do not cost gas -since they don't modify state. +*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:8066](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L8066)* **Parameters:** -Name | Type | Default | Description | ------- | ------ | ------ | ------ | -`amounts` | `BigNumber`[] | - | The amounts of each asset to be traded. | -`nestedAssetData` | string[] | - | AssetProxy-compliant data describing each asset to be traded. | -`callData` | `Partial` | {} | - | -`defaultBlock?` | [BlockParam](#blockparam) | - | - | - -**Returns:** *`Promise`* +Name | Type | Default | +------ | ------ | ------ | +`address` | string | - | +`supportedProvider` | [SupportedProvider](#supportedprovider) | - | +`txDefaults?` | `Partial` | - | +`logDecodeDependencies?` | undefined \| object | - | +`deployedBytecode` | string \| undefined | ExchangeContract.deployedBytecode | -AssetProxy-compliant data describing the set of assets. +**Returns:** *[ExchangeContract](#class-exchangecontract)* -#### getABIDecodedReturnData +## Properties -▸ **getABIDecodedReturnData**(`returnData`: string): *string* +### `Optional` _deployedBytecodeIfExists -*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:2186](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L2186)* +• **_deployedBytecodeIfExists**? : *`Buffer`* -Decode the ABI-encoded return data from a transaction -**Parameters:** -Name | Type | Description | ------- | ------ | ------ | -`returnData` | string | the data returned after transaction execution | +Defined in base-contract/lib/src/index.d.ts:32 -**Returns:** *string* +___ -An array representing the output results in order. Keynames of nested structs are preserved. +### abi -#### getABIDecodedTransactionData +• **abi**: *[ContractAbi](#contractabi)* -▸ **getABIDecodedTransactionData**(`callData`: string): *`BigNumber`[]* -*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:2174](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L2174)* -Decode the ABI-encoded transaction data into its input arguments +Defined in base-contract/lib/src/index.d.ts:28 -**Parameters:** +___ -Name | Type | Description | ------- | ------ | ------ | -`callData` | string | The ABI-encoded transaction data | +### address -**Returns:** *`BigNumber`[]* +• **address**: *string* -An array representing the input arguments in order. Keynames of nested structs are preserved. -#### getABIEncodedTransactionData -▸ **getABIEncodedTransactionData**(`amounts`: `BigNumber`[], `nestedAssetData`: string[]): *string* +Defined in base-contract/lib/src/index.d.ts:29 -*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:2159](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L2159)* +___ -Returns the ABI encoded transaction data needed to send an Ethereum transaction calling this method. Before -sending the Ethereum tx, this encoded tx data can first be sent to a separate signing service or can be used -to create a 0x transaction (see protocol spec for more details). +Args -**Parameters:** +• **constructorArgs**: *any[]* -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:** *string* -The ABI encoded transaction data as a string +Defined in base-contract/lib/src/index.d.ts:31 ___ -### getAssetProxyAllowance +### contractName -#### ▪ **getAssetProxyAllowance**: *object* +• **contractName**: *string* -*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:2197](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L2197)* -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. -#### callAsync +Defined in base-contract/lib/src/index.d.ts:30 + +## Methods -▸ **callAsync**(`ownerAddress`: string, `assetData`: string, `callData`: `Partial`, `defaultBlock?`: [BlockParam](#blockparam)): *`Promise`* +### EIP1271_MAGIC_VALUE -*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:2207](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L2207)* +▸ **EIP1271_MAGIC_VALUE**(): *`ContractFunctionObj`* -Sends a read-only call to the contract method. Returns the result that would happen if one were to send an -Ethereum transaction to this method, given the current state of the blockchain. Calls do not cost gas -since they don't modify state. +*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:3106](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L3106)* -**Parameters:** +**Returns:** *`ContractFunctionObj`* -Name | Type | Default | Description | ------- | ------ | ------ | ------ | -`ownerAddress` | string | - | Owner of the assets specified by assetData. | -`assetData` | string | - | Details of asset, encoded per the AssetProxy contract specification. | -`callData` | `Partial` | {} | - | -`defaultBlock?` | [BlockParam](#blockparam) | - | - | +___ -**Returns:** *`Promise`* +### EIP712_EXCHANGE_DOMAIN_HASH -Number of assets (or asset baskets) that the corresponding AssetProxy is authorized to spend. +▸ **EIP712_EXCHANGE_DOMAIN_HASH**(): *`ContractFunctionObj`* -#### getABIDecodedReturnData +*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:3153](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L3153)* -▸ **getABIDecodedReturnData**(`returnData`: string): *`BigNumber`* +**Returns:** *`ContractFunctionObj`* -*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:2289](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L2289)* +___ + +### allowedValidators + +▸ **allowedValidators**(`index_0`: string, `index_1`: string): *`ContractFunctionObj`* -Decode the ABI-encoded return data from a transaction +*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:3200](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L3200)* **Parameters:** -Name | Type | Description | ------- | ------ | ------ | -`returnData` | string | the data returned after transaction execution | +Name | Type | +------ | ------ | +`index_0` | string | +`index_1` | string | -**Returns:** *`BigNumber`* +**Returns:** *`ContractFunctionObj`* -An array representing the output results in order. Keynames of nested structs are preserved. +___ -#### getABIDecodedTransactionData +### batchCancelOrders -▸ **getABIDecodedTransactionData**(`callData`: string): *string* +▸ **batchCancelOrders**(`orders`: `Array`): *`ContractTxFunctionObj`* -*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:2277](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L2277)* +*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:3259](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L3259)* -Decode the ABI-encoded transaction data into its input arguments +Executes multiple calls of cancelOrder. **Parameters:** Name | Type | Description | ------ | ------ | ------ | -`callData` | string | The ABI-encoded transaction data | +`orders` | `Array` | Array of order specifications. | -**Returns:** *string* +**Returns:** *`ContractTxFunctionObj`* -An array representing the input arguments in order. Keynames of nested structs are preserved. +___ -#### getABIEncodedTransactionData +### batchExecuteTransactions -▸ **getABIEncodedTransactionData**(`ownerAddress`: string, `assetData`: string): *string* +▸ **batchExecuteTransactions**(`transactions`: `Array`, `signatures`: string[]): *`ContractTxFunctionObj`* -*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:2262](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L2262)* +*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:3403](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L3403)* -Returns the ABI encoded transaction data needed to send an Ethereum transaction calling this method. Before -sending the Ethereum tx, this encoded tx data can first be sent to a separate signing service or can be used -to create a 0x transaction (see protocol spec for more details). +Executes a batch of Exchange method calls in the context of signer(s). **Parameters:** Name | Type | Description | ------ | ------ | ------ | -`ownerAddress` | string | Owner of the assets specified by assetData. | -`assetData` | string | Details of asset, encoded per the AssetProxy contract specification. | +`transactions` | `Array` | Array of 0x transaction structures. | +`signatures` | string[] | Array of proofs that transactions have been signed by signer(s). | -**Returns:** *string* +**Returns:** *`ContractTxFunctionObj`* -The ABI encoded transaction data as a string +Array containing ABI encoded return data for each of the underlying Exchange function calls. ___ -### getBalance - -#### ▪ **getBalance**: *object* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:2300](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L2300)* - -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. - -#### callAsync +### batchFillOrKillOrders -▸ **callAsync**(`ownerAddress`: string, `assetData`: string, `callData`: `Partial`, `defaultBlock?`: [BlockParam](#blockparam)): *`Promise`* +▸ **batchFillOrKillOrders**(`orders`: `Array`, `takerAssetFillAmounts`: `BigNumber`[], `signatures`: string[]): *`ContractTxFunctionObj>`* -*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:2310](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L2310)* +*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:3541](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L3541)* -Sends a read-only call to the contract method. Returns the result that would happen if one were to send an -Ethereum transaction to this method, given the current state of the blockchain. Calls do not cost gas -since they don't modify state. +Executes multiple calls of fillOrKillOrder. **Parameters:** -Name | Type | Default | Description | ------- | ------ | ------ | ------ | -`ownerAddress` | string | - | Owner of the assets specified by assetData. | -`assetData` | string | - | Details of asset, encoded per the AssetProxy contract specification. | -`callData` | `Partial` | {} | - | -`defaultBlock?` | [BlockParam](#blockparam) | - | - | +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:** *`Promise`* +**Returns:** *`ContractTxFunctionObj>`* -Number of assets (or asset baskets) held by owner. +Array of amounts filled and fees paid by makers and taker. -#### getABIDecodedReturnData +___ + +### batchFillOrders -▸ **getABIDecodedReturnData**(`returnData`: string): *`BigNumber`* +▸ **batchFillOrders**(`orders`: `Array`, `takerAssetFillAmounts`: `BigNumber`[], `signatures`: string[]): *`ContractTxFunctionObj>`* -*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:2392](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L2392)* +*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:3717](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L3717)* -Decode the ABI-encoded return data from a transaction +Executes multiple calls of fillOrder. **Parameters:** Name | Type | Description | ------ | ------ | ------ | -`returnData` | string | the data returned after transaction execution | +`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>`* -**Returns:** *`BigNumber`* +Array of amounts filled and fees paid by makers and taker. -An array representing the output results in order. Keynames of nested structs are preserved. +___ -#### getABIDecodedTransactionData +### batchFillOrdersNoThrow -▸ **getABIDecodedTransactionData**(`callData`: string): *string* +▸ **batchFillOrdersNoThrow**(`orders`: `Array`, `takerAssetFillAmounts`: `BigNumber`[], `signatures`: string[]): *`ContractTxFunctionObj>`* -*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:2380](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L2380)* +*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:3893](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L3893)* -Decode the ABI-encoded transaction data into its input arguments +Executes multiple calls of fillOrder. If any fill reverts, the error is caught and ignored. **Parameters:** Name | Type | Description | ------ | ------ | ------ | -`callData` | string | The ABI-encoded transaction data | +`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:** *string* +**Returns:** *`ContractTxFunctionObj>`* -An array representing the input arguments in order. Keynames of nested structs are preserved. +Array of amounts filled and fees paid by makers and taker. + +___ -#### getABIEncodedTransactionData +### batchMatchOrders -▸ **getABIEncodedTransactionData**(`ownerAddress`: string, `assetData`: string): *string* +▸ **batchMatchOrders**(`leftOrders`: `Array`, `rightOrders`: `Array`, `leftSignatures`: string[], `rightSignatures`: string[]): *`ContractTxFunctionObj`* -*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:2365](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L2365)* +*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:4073](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L4073)* -Returns the ABI encoded transaction data needed to send an Ethereum transaction calling this method. Before -sending the Ethereum tx, this encoded tx data can first be sent to a separate signing service or can be used -to create a 0x transaction (see protocol spec for more details). +Match complementary orders that have a profitable spread. +Each order is filled at their respective price point, and +the matcher receives a profit denominated in the left maker asset. **Parameters:** Name | Type | Description | ------ | ------ | ------ | -`ownerAddress` | string | Owner of the assets specified by assetData. | -`assetData` | string | Details of asset, encoded per the AssetProxy contract specification. | +`leftOrders` | `Array` | Set of orders with the same maker / taker asset. | +`rightOrders` | `Array` | Set of orders to match against `leftOrders` | +`leftSignatures` | string[] | Proof that left orders were created by the left makers. | +`rightSignatures` | string[] | Proof that right orders were created by the right makers. | -**Returns:** *string* +**Returns:** *`ContractTxFunctionObj`* -The ABI encoded transaction data as a string +batchMatchedFillResults Amounts filled and profit generated. ___ -### getBalanceAndAssetProxyAllowance - -#### ▪ **getBalanceAndAssetProxyAllowance**: *object* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:2403](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L2403)* - -Calls getBalance() and getAllowance() for assetData. - -#### callAsync +### batchMatchOrdersWithMaximalFill -▸ **callAsync**(`ownerAddress`: string, `assetData`: string, `callData`: `Partial`, `defaultBlock?`: [BlockParam](#blockparam)): *`Promise<[BigNumber, BigNumber]>`* +▸ **batchMatchOrdersWithMaximalFill**(`leftOrders`: `Array`, `rightOrders`: `Array`, `leftSignatures`: string[], `rightSignatures`: string[]): *`ContractTxFunctionObj`* -*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:2413](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L2413)* +*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:4298](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L4298)* -Sends a read-only call to the contract method. Returns the result that would happen if one were to send an -Ethereum transaction to this method, given the current state of the blockchain. Calls do not cost gas -since they don't modify state. +Match complementary orders that have a profitable spread. +Each order is maximally filled at their respective price point, and +the matcher receives a profit denominated in either the left maker asset, +right maker asset, or a combination of both. **Parameters:** -Name | Type | Default | Description | ------- | ------ | ------ | ------ | -`ownerAddress` | string | - | Owner of the assets specified by assetData. | -`assetData` | string | - | Details of asset, encoded per the AssetProxy contract specification. | -`callData` | `Partial` | {} | - | -`defaultBlock?` | [BlockParam](#blockparam) | - | - | +Name | Type | Description | +------ | ------ | ------ | +`leftOrders` | `Array` | Set of orders with the same maker / taker asset. | +`rightOrders` | `Array` | Set of orders to match against `leftOrders` | +`leftSignatures` | string[] | Proof that left orders were created by the left makers. | +`rightSignatures` | string[] | Proof that right orders were created by the right makers. | -**Returns:** *`Promise<[BigNumber, BigNumber]>`* +**Returns:** *`ContractTxFunctionObj`* -Number of assets (or asset baskets) held by owner, and number of assets (or asset baskets) that the corresponding AssetProxy is authorized to spend. +batchMatchedFillResults Amounts filled and profit generated. -#### getABIDecodedReturnData +___ + +### cancelOrder -▸ **getABIDecodedReturnData**(`returnData`: string): *[`BigNumber`, `BigNumber`]* +▸ **cancelOrder**(`order`: object): *`ContractTxFunctionObj`* -*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:2495](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L2495)* +*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:4514](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L4514)* -Decode the ABI-encoded return data from a transaction +After calling, the order can not be filled anymore. **Parameters:** Name | Type | Description | ------ | ------ | ------ | -`returnData` | string | the data returned after transaction execution | +`order` | object | Order struct containing order specifications. | -**Returns:** *[`BigNumber`, `BigNumber`]* +**Returns:** *`ContractTxFunctionObj`* -An array representing the output results in order. Keynames of nested structs are preserved. +___ -#### getABIDecodedTransactionData +### cancelOrdersUpTo -▸ **getABIDecodedTransactionData**(`callData`: string): *[string, string]* +▸ **cancelOrdersUpTo**(`targetOrderEpoch`: `BigNumber`): *`ContractTxFunctionObj`* -*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:2483](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L2483)* +*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:4654](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L4654)* -Decode the ABI-encoded transaction data into its input arguments +Cancels all orders created by makerAddress with a salt less than or equal to the targetOrderEpoch +and senderAddress equal to msg.sender (or null address if msg.sender == makerAddress). **Parameters:** Name | Type | Description | ------ | ------ | ------ | -`callData` | string | The ABI-encoded transaction data | +`targetOrderEpoch` | `BigNumber` | Orders created with a salt less or equal to this value will be cancelled. | -**Returns:** *[string, string]* +**Returns:** *`ContractTxFunctionObj`* -An array representing the input arguments in order. Keynames of nested structs are preserved. - -#### getABIEncodedTransactionData +___ -▸ **getABIEncodedTransactionData**(`ownerAddress`: string, `assetData`: string): *string* +### cancelled -*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:2468](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L2468)* +▸ **cancelled**(`index_0`: string): *`ContractFunctionObj`* -Returns the ABI encoded transaction data needed to send an Ethereum transaction calling this method. Before -sending the Ethereum tx, this encoded tx data can first be sent to a separate signing service or can be used -to create a 0x transaction (see protocol spec for more details). +*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:4762](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L4762)* **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:** *string* +Name | Type | +------ | ------ | +`index_0` | string | -The ABI encoded transaction data as a string +**Returns:** *`ContractFunctionObj`* ___ -### getBatchAssetProxyAllowances +### currentContextAddress -#### ▪ **getBatchAssetProxyAllowances**: *object* +▸ **currentContextAddress**(): *`ContractFunctionObj`* -*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:2506](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L2506)* +*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:4810](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L4810)* -Calls getAssetProxyAllowance() for each element of assetData. +**Returns:** *`ContractFunctionObj`* + +___ -#### callAsync +### executeTransaction -▸ **callAsync**(`ownerAddress`: string, `assetData`: string[], `callData`: `Partial`, `defaultBlock?`: [BlockParam](#blockparam)): *`Promise`* +▸ **executeTransaction**(`transaction`: object, `signature`: string): *`ContractTxFunctionObj`* -*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:2516](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L2516)* +*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:4863](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L4863)* -Sends a read-only call to the contract method. Returns the result that would happen if one were to send an -Ethereum transaction to this method, given the current state of the blockchain. Calls do not cost gas -since they don't modify state. +Executes an Exchange method call in the context of signer. **Parameters:** -Name | Type | Default | Description | ------- | ------ | ------ | ------ | -`ownerAddress` | string | - | Owner of the assets specified by assetData. | -`assetData` | string[] | - | Array of asset details, each encoded per the AssetProxy contract specification. | -`callData` | `Partial` | {} | - | -`defaultBlock?` | [BlockParam](#blockparam) | - | - | +Name | Type | Description | +------ | ------ | ------ | +`transaction` | object | 0x transaction structure. | +`signature` | string | Proof that transaction has been signed by signer. | -**Returns:** *`Promise`* +**Returns:** *`ContractTxFunctionObj`* -An array of asset allowances from getAllowance(), with each element corresponding to the same-indexed element in the assetData input. +ABI encoded return data of the underlying Exchange function call. + +___ -#### getABIDecodedReturnData +### fillOrKillOrder -▸ **getABIDecodedReturnData**(`returnData`: string): *`BigNumber`[]* +▸ **fillOrKillOrder**(`order`: object, `takerAssetFillAmount`: `BigNumber`, `signature`: string): *`ContractTxFunctionObj`* -*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:2598](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L2598)* +*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:4999](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L4999)* -Decode the ABI-encoded return data from a transaction +Fills the input order. Reverts if exact takerAssetFillAmount not filled. **Parameters:** Name | Type | Description | ------ | ------ | ------ | -`returnData` | string | the data returned after transaction execution | +`order` | object | Order struct containing order specifications. | +`takerAssetFillAmount` | `BigNumber` | Desired amount of takerAsset to sell. | +`signature` | string | Proof that order has been created by maker. | -**Returns:** *`BigNumber`[]* +**Returns:** *`ContractTxFunctionObj`* -An array representing the output results in order. Keynames of nested structs are preserved. +___ -#### getABIDecodedTransactionData +### fillOrder -▸ **getABIDecodedTransactionData**(`callData`: string): *string* +▸ **fillOrder**(`order`: object, `takerAssetFillAmount`: `BigNumber`, `signature`: string): *`ContractTxFunctionObj`* -*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:2586](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L2586)* +*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:5168](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L5168)* -Decode the ABI-encoded transaction data into its input arguments +Fills the input order. **Parameters:** Name | Type | Description | ------ | ------ | ------ | -`callData` | string | The ABI-encoded transaction data | +`order` | object | Order struct containing order specifications. | +`takerAssetFillAmount` | `BigNumber` | Desired amount of takerAsset to sell. | +`signature` | string | Proof that order has been created by maker. | -**Returns:** *string* +**Returns:** *`ContractTxFunctionObj`* -An array representing the input arguments in order. Keynames of nested structs are preserved. +Amounts filled and fees paid by maker and taker. -#### getABIEncodedTransactionData +___ -▸ **getABIEncodedTransactionData**(`ownerAddress`: string, `assetData`: string[]): *string* +### filled -*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:2571](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L2571)* +▸ **filled**(`index_0`: string): *`ContractFunctionObj`* -Returns the ABI encoded transaction data needed to send an Ethereum transaction calling this method. Before -sending the Ethereum tx, this encoded tx data can first be sent to a separate signing service or can be used -to create a 0x transaction (see protocol spec for more details). +*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:5330](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L5330)* **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:** *string* +Name | Type | +------ | ------ | +`index_0` | string | -The ABI encoded transaction data as a string +**Returns:** *`ContractFunctionObj`* ___ -### getBatchBalances - -#### ▪ **getBatchBalances**: *object* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:2609](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L2609)* - -Calls getBalance() for each element of assetData. +### getABIDecodedReturnData -#### callAsync +▸ **getABIDecodedReturnData**<**T**>(`methodName`: string, `callData`: string): *`T`* -▸ **callAsync**(`ownerAddress`: string, `assetData`: string[], `callData`: `Partial`, `defaultBlock?`: [BlockParam](#blockparam)): *`Promise`* +*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:3092](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L3092)* -*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:2619](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L2619)* +**Type parameters:** -Sends a read-only call to the contract method. Returns the result that would happen if one were to send an -Ethereum transaction to this method, given the current state of the blockchain. Calls do not cost gas -since they don't modify state. +▪ **T** **Parameters:** -Name | Type | Default | Description | ------- | ------ | ------ | ------ | -`ownerAddress` | string | - | Owner of the assets specified by assetData. | -`assetData` | string[] | - | Array of asset details, each encoded per the AssetProxy contract specification. | -`callData` | `Partial` | {} | - | -`defaultBlock?` | [BlockParam](#blockparam) | - | - | +Name | Type | +------ | ------ | +`methodName` | string | +`callData` | string | -**Returns:** *`Promise`* +**Returns:** *`T`* -Array of asset balances from getBalance(), with each element corresponding to the same-indexed element in the assetData input. +___ -#### getABIDecodedReturnData +### getABIDecodedTransactionData -▸ **getABIDecodedReturnData**(`returnData`: string): *`BigNumber`[]* +▸ **getABIDecodedTransactionData**<**T**>(`methodName`: string, `callData`: string): *`T`* -*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:2701](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L2701)* +*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:3085](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L3085)* -Decode the ABI-encoded return data from a transaction +**Type parameters:** + +▪ **T** **Parameters:** -Name | Type | Description | ------- | ------ | ------ | -`returnData` | string | the data returned after transaction execution | +Name | Type | +------ | ------ | +`methodName` | string | +`callData` | string | -**Returns:** *`BigNumber`[]* +**Returns:** *`T`* -An array representing the output results in order. Keynames of nested structs are preserved. +___ -#### getABIDecodedTransactionData +### getAssetProxy -▸ **getABIDecodedTransactionData**(`callData`: string): *string* +▸ **getAssetProxy**(`assetProxyId`: string): *`ContractFunctionObj`* -*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:2689](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L2689)* +*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:5383](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L5383)* -Decode the ABI-encoded transaction data into its input arguments +Gets an asset proxy. **Parameters:** Name | Type | Description | ------ | ------ | ------ | -`callData` | string | The ABI-encoded transaction data | +`assetProxyId` | string | Id of the asset proxy. | -**Returns:** *string* +**Returns:** *`ContractFunctionObj`* -An array representing the input arguments in order. Keynames of nested structs are preserved. +The asset proxy registered to assetProxyId. Returns 0x0 if no proxy is registered. -#### getABIEncodedTransactionData +___ -▸ **getABIEncodedTransactionData**(`ownerAddress`: string, `assetData`: string[]): *string* +### getFunctionSignature -*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:2674](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L2674)* +▸ **getFunctionSignature**(`methodName`: string): *string* -Returns the ABI encoded transaction data needed to send an Ethereum transaction calling this method. Before -sending the Ethereum tx, this encoded tx data can first be sent to a separate signing service or can be used -to create a 0x transaction (see protocol spec for more details). +*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:3079](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L3079)* **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. | +Name | Type | +------ | ------ | +`methodName` | string | **Returns:** *string* -The ABI encoded transaction data as a string - ___ -### getBatchBalancesAndAssetProxyAllowances - -#### ▪ **getBatchBalancesAndAssetProxyAllowances**: *object* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:2712](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L2712)* +### getLogsAsync -Calls getBatchBalances() and getBatchAllowances() for each element of assetData. +▸ **getLogsAsync**<**ArgsType**>(`eventName`: [ExchangeEvents](#enumeration-exchangeevents), `blockRange`: `BlockRange`, `indexFilterValues`: `IndexedFilterValues`): *`Promise>>`* -#### callAsync +*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:8050](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L8050)* -▸ **callAsync**(`ownerAddress`: string, `assetData`: string[], `callData`: `Partial`, `defaultBlock?`: [BlockParam](#blockparam)): *`Promise<[BigNumber[], BigNumber[]]>`* +Gets historical logs without creating a subscription -*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:2722](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L2722)* +**Type parameters:** -Sends a read-only call to the contract method. Returns the result that would happen if one were to send an -Ethereum transaction to this method, given the current state of the blockchain. Calls do not cost gas -since they don't modify state. +▪ **ArgsType**: *[ExchangeEventArgs](#exchangeeventargs)* **Parameters:** -Name | Type | Default | Description | ------- | ------ | ------ | ------ | -`ownerAddress` | string | - | Owner of the assets specified by assetData. | -`assetData` | string[] | - | Array of asset details, each encoded per the AssetProxy contract specification. | -`callData` | `Partial` | {} | - | -`defaultBlock?` | [BlockParam](#blockparam) | - | - | +Name | Type | Description | +------ | ------ | ------ | +`eventName` | [ExchangeEvents](#enumeration-exchangeevents) | The Exchange 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<[BigNumber[], BigNumber[]]>`* +**Returns:** *`Promise>>`* -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. +Array of logs that match the parameters + +___ -#### getABIDecodedReturnData +### getOrderInfo -▸ **getABIDecodedReturnData**(`returnData`: string): *[`BigNumber`[], `BigNumber`[]]* +▸ **getOrderInfo**(`order`: object): *`ContractFunctionObj`* -*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:2804](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L2804)* +*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:5436](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L5436)* -Decode the ABI-encoded return data from a transaction +Gets information about an order: status, hash, and amount filled. **Parameters:** Name | Type | Description | ------ | ------ | ------ | -`returnData` | string | the data returned after transaction execution | +`order` | object | Order to gather information on. | -**Returns:** *[`BigNumber`[], `BigNumber`[]]* +**Returns:** *`ContractFunctionObj`* -An array representing the output results in order. Keynames of nested structs are preserved. +OrderInfo Information about the order and its state. See LibOrder.OrderInfo for a complete description. -#### getABIDecodedTransactionData +___ -▸ **getABIDecodedTransactionData**(`callData`: string): *[string, string[]]* +### getSelector -*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:2792](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L2792)* +▸ **getSelector**(`methodName`: string): *string* -Decode the ABI-encoded transaction data into its input arguments +*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:3099](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L3099)* **Parameters:** -Name | Type | Description | ------- | ------ | ------ | -`callData` | string | The ABI-encoded transaction data | +Name | Type | +------ | ------ | +`methodName` | string | -**Returns:** *[string, string[]]* +**Returns:** *string* -An array representing the input arguments in order. Keynames of nested structs are preserved. +___ -#### getABIEncodedTransactionData +### isValidHashSignature -▸ **getABIEncodedTransactionData**(`ownerAddress`: string, `assetData`: string[]): *string* +▸ **isValidHashSignature**(`hash`: string, `signerAddress`: string, `signature`: string): *`ContractFunctionObj`* -*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:2777](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L2777)* +*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:5520](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L5520)* -Returns the ABI encoded transaction data needed to send an Ethereum transaction calling this method. Before -sending the Ethereum tx, this encoded tx data can first be sent to a separate signing service or can be used -to create a 0x transaction (see protocol spec for more details). +Verifies that a hash has been signed by the given signer. **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. | +`hash` | string | Any 32-byte hash. | +`signerAddress` | string | Address that should have signed the given hash. | +`signature` | string | Proof that the hash has been signed by signer. | -**Returns:** *string* +**Returns:** *`ContractFunctionObj`* -The ABI encoded transaction data as a string +isValid `true` if the signature is valid for the given hash and signer. ___ -### getEthBalances - -#### ▪ **getEthBalances**: *object* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:2815](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L2815)* - -Batch fetches ETH balances - -#### callAsync +### isValidOrderSignature -▸ **callAsync**(`addresses`: string[], `callData`: `Partial`, `defaultBlock?`: [BlockParam](#blockparam)): *`Promise`* +▸ **isValidOrderSignature**(`order`: object, `signature`: string): *`ContractFunctionObj`* -*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:2823](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L2823)* +*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:5583](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L5583)* -Sends a read-only call to the contract method. Returns the result that would happen if one were to send an -Ethereum transaction to this method, given the current state of the blockchain. Calls do not cost gas -since they don't modify state. +Verifies that a signature for an order is valid. **Parameters:** -Name | Type | Default | Description | ------- | ------ | ------ | ------ | -`addresses` | string[] | - | Array of addresses. | -`callData` | `Partial` | {} | - | -`defaultBlock?` | [BlockParam](#blockparam) | - | - | +Name | Type | Description | +------ | ------ | ------ | +`order` | object | The order. | +`signature` | string | Proof that the order has been signed by signer. | -**Returns:** *`Promise`* +**Returns:** *`ContractFunctionObj`* -Array of ETH balances. +isValid `true` if the signature is valid for the given order and signer. + +___ -#### getABIDecodedReturnData +### isValidTransactionSignature -▸ **getABIDecodedReturnData**(`returnData`: string): *`BigNumber`[]* +▸ **isValidTransactionSignature**(`transaction`: object, `signature`: string): *`ContractFunctionObj`* -*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:2894](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L2894)* +*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:5664](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L5664)* -Decode the ABI-encoded return data from a transaction +Verifies that a signature for a transaction is valid. **Parameters:** Name | Type | Description | ------ | ------ | ------ | -`returnData` | string | the data returned after transaction execution | +`transaction` | object | The transaction. | +`signature` | string | Proof that the order has been signed by signer. | + +**Returns:** *`ContractFunctionObj`* -**Returns:** *`BigNumber`[]* +isValid `true` if the signature is valid for the given transaction and signer. -An array representing the output results in order. Keynames of nested structs are preserved. +___ -#### getABIDecodedTransactionData +### marketBuyOrdersFillOrKill -▸ **getABIDecodedTransactionData**(`callData`: string): *string[]* +▸ **marketBuyOrdersFillOrKill**(`orders`: `Array`, `makerAssetFillAmount`: `BigNumber`, `signatures`: string[]): *`ContractTxFunctionObj`* -*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:2882](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L2882)* +*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:5738](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L5738)* -Decode the ABI-encoded transaction data into its input arguments +Calls marketBuyOrdersNoThrow then reverts if < makerAssetFillAmount has been bought. +NOTE: This function does not enforce that the makerAsset is the same for each order. **Parameters:** Name | Type | Description | ------ | ------ | ------ | -`callData` | string | The ABI-encoded transaction data | +`orders` | `Array` | Array of order specifications. | +`makerAssetFillAmount` | `BigNumber` | Minimum amount of makerAsset to buy. | +`signatures` | string[] | Proofs that orders have been signed by makers. | -**Returns:** *string[]* +**Returns:** *`ContractTxFunctionObj`* -An array representing the input arguments in order. Keynames of nested structs are preserved. +Amounts filled and fees paid by makers and taker. + +___ -#### getABIEncodedTransactionData +### marketBuyOrdersNoThrow -▸ **getABIEncodedTransactionData**(`addresses`: string[]): *string* +▸ **marketBuyOrdersNoThrow**(`orders`: `Array`, `makerAssetFillAmount`: `BigNumber`, `signatures`: string[]): *`ContractTxFunctionObj`* -*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:2871](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L2871)* +*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:5909](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L5909)* -Returns the ABI encoded transaction data needed to send an Ethereum transaction calling this method. Before -sending the Ethereum tx, this encoded tx data can first be sent to a separate signing service or can be used -to create a 0x transaction (see protocol spec for more details). +Executes multiple calls of fillOrder until total amount of makerAsset is bought by taker. +If any fill reverts, the error is caught and ignored. +NOTE: This function does not enforce that the makerAsset is the same for each order. **Parameters:** Name | Type | Description | ------ | ------ | ------ | -`addresses` | string[] | Array of addresses. | +`orders` | `Array` | Array of order specifications. | +`makerAssetFillAmount` | `BigNumber` | Desired amount of makerAsset to buy. | +`signatures` | string[] | Proofs that orders have been signed by makers. | -**Returns:** *string* +**Returns:** *`ContractTxFunctionObj`* -The ABI encoded transaction data as a string +Amounts filled and fees paid by makers and taker. ___ -### getOrderRelevantState - -#### ▪ **getOrderRelevantState**: *object* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:2905](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L2905)* - -Fetches all order-relevant information needed to validate if the supplied order is fillable. - -#### callAsync +### marketSellOrdersFillOrKill -▸ **callAsync**(`order`: object, `signature`: string, `callData`: `Partial`, `defaultBlock?`: [BlockParam](#blockparam)): *`Promise<[object, BigNumber, boolean]>`* +▸ **marketSellOrdersFillOrKill**(`orders`: `Array`, `takerAssetFillAmount`: `BigNumber`, `signatures`: string[]): *`ContractTxFunctionObj`* -*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:2916](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L2916)* +*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:6079](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L6079)* -Sends a read-only call to the contract method. Returns the result that would happen if one were to send an -Ethereum transaction to this method, given the current state of the blockchain. Calls do not cost gas -since they don't modify state. +Calls marketSellOrdersNoThrow then reverts if < takerAssetFillAmount has been sold. +NOTE: This function does not enforce that the takerAsset is the same for each order. **Parameters:** -Name | Type | Default | 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. | -`callData` | `Partial` | {} | - | -`defaultBlock?` | [BlockParam](#blockparam) | - | - | +Name | Type | Description | +------ | ------ | ------ | +`orders` | `Array` | Array of order specifications. | +`takerAssetFillAmount` | `BigNumber` | Minimum amount of takerAsset to sell. | +`signatures` | string[] | Proofs that orders have been signed by makers. | -**Returns:** *`Promise<[object, BigNumber, boolean]>`* +**Returns:** *`ContractTxFunctionObj`* -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. +Amounts filled and fees paid by makers and taker. + +___ -#### getABIDecodedReturnData +### marketSellOrdersNoThrow -▸ **getABIDecodedReturnData**(`returnData`: string): *[object, `BigNumber`, boolean]* +▸ **marketSellOrdersNoThrow**(`orders`: `Array`, `takerAssetFillAmount`: `BigNumber`, `signatures`: string[]): *`ContractTxFunctionObj`* -*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:3078](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L3078)* +*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:6250](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L6250)* -Decode the ABI-encoded return data from a transaction +Executes multiple calls of fillOrder until total amount of takerAsset is sold by taker. +If any fill reverts, the error is caught and ignored. +NOTE: This function does not enforce that the takerAsset is the same for each order. **Parameters:** Name | Type | Description | ------ | ------ | ------ | -`returnData` | string | the data returned after transaction execution | +`orders` | `Array` | Array of order specifications. | +`takerAssetFillAmount` | `BigNumber` | Desired amount of takerAsset to sell. | +`signatures` | string[] | Proofs that orders have been signed by makers. | -**Returns:** *[object, `BigNumber`, boolean]* +**Returns:** *`ContractTxFunctionObj`* -An array representing the output results in order. Keynames of nested structs are preserved. +Amounts filled and fees paid by makers and taker. + +___ -#### getABIDecodedTransactionData +### matchOrders -▸ **getABIDecodedTransactionData**(`callData`: string): *[object, string]* +▸ **matchOrders**(`leftOrder`: object, `rightOrder`: object, `leftSignature`: string, `rightSignature`: string): *`ContractTxFunctionObj`* -*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:3024](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L3024)* +*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:6423](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L6423)* -Decode the ABI-encoded transaction data into its input arguments +Match two complementary orders that have a profitable spread. +Each order is filled at their respective price point. However, the calculations are +carried out as though the orders are both being filled at the right order's price point. +The profit made by the left order goes to the taker (who matched the two orders). **Parameters:** Name | Type | Description | ------ | ------ | ------ | -`callData` | string | The ABI-encoded transaction data | +`leftOrder` | object | First order to match. | +`rightOrder` | object | Second order to match. | +`leftSignature` | string | Proof that order was created by the left maker. | +`rightSignature` | string | Proof that order was created by the right maker. | -**Returns:** *[object, string]* +**Returns:** *`ContractTxFunctionObj`* -An array representing the input arguments in order. Keynames of nested structs are preserved. +matchedFillResults Amounts filled and fees paid by maker and taker of matched orders. + +___ -#### getABIEncodedTransactionData +### matchOrdersWithMaximalFill -▸ **getABIEncodedTransactionData**(`order`: object, `signature`: string): *string* +▸ **matchOrdersWithMaximalFill**(`leftOrder`: object, `rightOrder`: object, `leftSignature`: string, `rightSignature`: string): *`ContractTxFunctionObj`* -*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:2992](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L2992)* +*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:6645](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L6645)* -Returns the ABI encoded transaction data needed to send an Ethereum transaction calling this method. Before -sending the Ethereum tx, this encoded tx data can first be sent to a separate signing service or can be used -to create a 0x transaction (see protocol spec for more details). +Match two complementary orders that have a profitable spread. +Each order is maximally filled at their respective price point, and +the matcher receives a profit denominated in either the left maker asset, +right maker asset, or a combination of both. **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. | +`leftOrder` | object | First order to match. | +`rightOrder` | object | Second order to match. | +`leftSignature` | string | Proof that order was created by the left maker. | +`rightSignature` | string | Proof that order was created by the right maker. | -**Returns:** *string* +**Returns:** *`ContractTxFunctionObj`* -The ABI encoded transaction data as a string +matchedFillResults Amounts filled by maker and taker of matched orders. ___ -### getOrderRelevantStates +### orderEpoch -#### ▪ **getOrderRelevantStates**: *object* +▸ **orderEpoch**(`index_0`: string, `index_1`: string): *`ContractFunctionObj`* -*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:3095](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L3095)* +*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:6856](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L6856)* -Fetches all order-relevant information needed to validate if the supplied orders are fillable. +**Parameters:** -#### callAsync +Name | Type | +------ | ------ | +`index_0` | string | +`index_1` | string | -▸ **callAsync**(`orders`: `Array`, `signatures`: string[], `callData`: `Partial`, `defaultBlock?`: [BlockParam](#blockparam)): *`Promise<[Array, BigNumber[], boolean[]]>`* +**Returns:** *`ContractFunctionObj`* -*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:3106](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L3106)* +___ -Sends a read-only call to the contract method. Returns the result that would happen if one were to send an -Ethereum transaction to this method, given the current state of the blockchain. Calls do not cost gas -since they don't modify state. +### owner -**Parameters:** +▸ **owner**(): *`ContractFunctionObj`* -Name | Type | Default | 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. | -`callData` | `Partial` | {} | - | -`defaultBlock?` | [BlockParam](#blockparam) | - | - | +*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:6911](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L6911)* -**Returns:** *`Promise<[Array, BigNumber[], boolean[]]>`* +**Returns:** *`ContractFunctionObj`* -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. +___ -#### getABIDecodedReturnData +### preSign -▸ **getABIDecodedReturnData**(`returnData`: string): *[`Array`, `BigNumber`[], boolean[]]* +▸ **preSign**(`hash`: string): *`ContractTxFunctionObj`* -*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:3278](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L3278)* +*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:6963](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L6963)* -Decode the ABI-encoded return data from a transaction +Approves a hash on-chain. +After presigning a hash, the preSign signature type will become valid for that hash and signer. **Parameters:** Name | Type | Description | ------ | ------ | ------ | -`returnData` | string | the data returned after transaction execution | +`hash` | string | Any 32-byte hash. | -**Returns:** *[`Array`, `BigNumber`[], boolean[]]* +**Returns:** *`ContractTxFunctionObj`* -An array representing the output results in order. Keynames of nested structs are preserved. - -#### getABIDecodedTransactionData +___ -▸ **getABIDecodedTransactionData**(`callData`: string): *[`Array`, string[]]* +### preSigned -*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:3224](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L3224)* +▸ **preSigned**(`index_0`: string, `index_1`: string): *`ContractFunctionObj`* -Decode the ABI-encoded transaction data into its input arguments +*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:7069](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L7069)* **Parameters:** -Name | Type | Description | ------- | ------ | ------ | -`callData` | string | The ABI-encoded transaction data | +Name | Type | +------ | ------ | +`index_0` | string | +`index_1` | string | -**Returns:** *[`Array`, string[]]* +**Returns:** *`ContractFunctionObj`* -An array representing the input arguments in order. Keynames of nested structs are preserved. +___ -#### getABIEncodedTransactionData - -▸ **getABIEncodedTransactionData**(`orders`: `Array`, `signatures`: string[]): *string* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:3191](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L3191)* - -Returns the ABI encoded transaction data needed to send an Ethereum transaction calling this method. Before -sending the Ethereum tx, this encoded tx data can first be sent to a separate signing service or can be used -to create a 0x transaction (see protocol spec for more details). - -**Parameters:** +### protocolFeeCollector -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. | +▸ **protocolFeeCollector**(): *`ContractFunctionObj`* -**Returns:** *string* +*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:7124](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L7124)* -The ABI encoded transaction data as a string +**Returns:** *`ContractFunctionObj`* ___ -### getSimulatedOrderTransferResults +### protocolFeeMultiplier -#### ▪ **getSimulatedOrderTransferResults**: *object* +▸ **protocolFeeMultiplier**(): *`ContractFunctionObj`* -*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:3303](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L3303)* +*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:7171](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L7171)* -Simulates all of the transfers within an order and returns the index of the first failed transfer. +**Returns:** *`ContractFunctionObj`* + +___ -#### awaitTransactionSuccessAsync +### registerAssetProxy -▸ **awaitTransactionSuccessAsync**(`order`: object, `takerAddress`: string, `takerAssetFillAmount`: `BigNumber`, `txData?`: `Partial`, `pollingIntervalMs?`: undefined | number, `timeoutMs?`: undefined | number): *`PromiseWithTransactionHash`* +▸ **registerAssetProxy**(`assetProxy`: string): *`ContractTxFunctionObj`* -*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:3368](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L3368)* +*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:7223](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L7223)* -Sends an Ethereum transaction and waits until the transaction has been successfully mined without reverting. -If the transaction was mined, but reverted, an error is thrown. +Registers an asset proxy to its asset proxy id. +Once an asset proxy is registered, it cannot be unregistered. **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. | -`txData?` | `Partial` | Additional data for transaction | -`pollingIntervalMs?` | undefined \| number | Interval at which to poll for success | -`timeoutMs?` | undefined \| number | - | +`assetProxy` | string | Address of new asset proxy to register. | -**Returns:** *`PromiseWithTransactionHash`* +**Returns:** *`ContractTxFunctionObj`* -A promise that resolves when the transaction is successful +___ -#### callAsync +### setProtocolFeeCollectorAddress -▸ **callAsync**(`order`: object, `takerAddress`: string, `takerAssetFillAmount`: `BigNumber`, `callData`: `Partial`, `defaultBlock?`: [BlockParam](#blockparam)): *`Promise`* +▸ **setProtocolFeeCollectorAddress**(`updatedProtocolFeeCollector`: string): *`ContractTxFunctionObj`* -*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:3509](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L3509)* +*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:7342](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L7342)* -Sends a read-only call to the contract method. Returns the result that would happen if one were to send an -Ethereum transaction to this method, given the current state of the blockchain. Calls do not cost gas -since they don't modify state. +Allows the owner to update the protocolFeeCollector address. **Parameters:** -Name | Type | Default | 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. | -`callData` | `Partial` | {} | - | -`defaultBlock?` | [BlockParam](#blockparam) | - | - | +Name | Type | Description | +------ | ------ | ------ | +`updatedProtocolFeeCollector` | string | The updated protocolFeeCollector contract address. | -**Returns:** *`Promise`* +**Returns:** *`ContractTxFunctionObj`* -The index of the first failed transfer (or 4 if all transfers are successful). +___ -#### estimateGasAsync +### setProtocolFeeMultiplier -▸ **estimateGasAsync**(`order`: object, `takerAddress`: string, `takerAssetFillAmount`: `BigNumber`, `txData?`: `Partial` | undefined): *`Promise`* +▸ **setProtocolFeeMultiplier**(`updatedProtocolFeeMultiplier`: `BigNumber`): *`ContractTxFunctionObj`* -*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:3421](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L3421)* +*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:7461](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L7461)* -Estimates the gas cost of sending an Ethereum transaction calling this method with these arguments. +Allows the owner to update the protocol fee multiplier. **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. | -`txData?` | `Partial` \| undefined | Additional data for transaction | +`updatedProtocolFeeMultiplier` | `BigNumber` | The updated protocol fee multiplier. | -**Returns:** *`Promise`* +**Returns:** *`ContractTxFunctionObj`* -The hash of the transaction +___ -#### getABIDecodedReturnData +### setSignatureValidatorApproval -▸ **getABIDecodedReturnData**(`returnData`: string): *number* +▸ **setSignatureValidatorApproval**(`validatorAddress`: string, `approval`: boolean): *`ContractTxFunctionObj`* -*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:3663](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L3663)* +*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:7581](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L7581)* -Decode the ABI-encoded return data from a transaction +Approves/unnapproves a Validator contract to verify signatures on signer's behalf +using the `Validator` signature type. **Parameters:** Name | Type | Description | ------ | ------ | ------ | -`returnData` | string | the data returned after transaction execution | +`validatorAddress` | string | Address of Validator contract. | +`approval` | boolean | Approval or disapproval of Validator contract. | -**Returns:** *number* +**Returns:** *`ContractTxFunctionObj`* -An array representing the output results in order. Keynames of nested structs are preserved. +___ -#### getABIDecodedTransactionData +### simulateDispatchTransferFromCalls -▸ **getABIDecodedTransactionData**(`callData`: string): *object* +▸ **simulateDispatchTransferFromCalls**(`assetData`: string[], `fromAddresses`: string[], `toAddresses`: string[], `amounts`: `BigNumber`[]): *`ContractTxFunctionObj`* -*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:3617](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L3617)* +*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:7712](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L7712)* -Decode the ABI-encoded transaction data into its input arguments +This function may be used to simulate any amount of transfers As they would occur through the Exchange contract. Note that this function will always revert, even if all transfers are successful. However, it may be used with eth_call or with a try/catch pattern in order to simulate the results of the transfers. **Parameters:** Name | Type | Description | ------ | ------ | ------ | -`callData` | string | The ABI-encoded transaction data | +`assetData` | string[] | Array of asset details, each encoded per the AssetProxy contract specification. | +`fromAddresses` | string[] | Array containing the `from` addresses that correspond with each transfer. | +`toAddresses` | string[] | Array containing the `to` addresses that correspond with each transfer. | +`amounts` | `BigNumber`[] | Array containing the amounts that correspond to each transfer. | + +**Returns:** *`ContractTxFunctionObj`* + +This function does not return a value. However, it will always revert with `Error("TRANSFERS_SUCCESSFUL")` if all of the transfers were successful. + +___ -**Returns:** *object* +### subscribe -An array representing the input arguments in order. Keynames of nested structs are preserved. +▸ **subscribe**<**ArgsType**>(`eventName`: [ExchangeEvents](#enumeration-exchangeevents), `indexFilterValues`: `IndexedFilterValues`, `callback`: [EventCallback](#eventcallback)‹*`ArgsType`*›, `isVerbose`: boolean, `blockPollingIntervalMs?`: undefined | number): *string* -#### getABIEncodedTransactionData +*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:8008](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L8008)* -▸ **getABIEncodedTransactionData**(`order`: object, `takerAddress`: string, `takerAssetFillAmount`: `BigNumber`): *string* +Subscribe to an event type emitted by the Exchange contract. -*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:3583](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L3583)* +**Type parameters:** -Returns the ABI encoded transaction data needed to send an Ethereum transaction calling this method. Before -sending the Ethereum tx, this encoded tx data can first be sent to a separate signing service or can be used -to create a 0x transaction (see protocol spec for more details). +▪ **ArgsType**: *[ExchangeEventArgs](#exchangeeventargs)* **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. | +Name | Type | Default | Description | +------ | ------ | ------ | ------ | +`eventName` | [ExchangeEvents](#enumeration-exchangeevents) | - | The Exchange 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* -The ABI encoded transaction data as a string +Subscription token used later to unsubscribe -#### sendTransactionAsync +___ -▸ **sendTransactionAsync**(`order`: object, `takerAddress`: string, `takerAssetFillAmount`: `BigNumber`, `txData?`: `Partial` | undefined): *`Promise`* +### transactionsExecuted -*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:3314](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L3314)* +▸ **transactionsExecuted**(`index_0`: string): *`ContractFunctionObj`* -Sends an Ethereum transaction executing this method with the supplied parameters. This is a read/write -Ethereum operation and will cost gas. +*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:7840](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L7840)* **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. | -`txData?` | `Partial` \| undefined | Additional data for transaction | +Name | Type | +------ | ------ | +`index_0` | string | -**Returns:** *`Promise`* +**Returns:** *`ContractFunctionObj`* -The hash of the transaction +___ -#### validateAndSendTransactionAsync +### transferOwnership -▸ **validateAndSendTransactionAsync**(`order`: object, `takerAddress`: string, `takerAssetFillAmount`: `BigNumber`, `txData?`: `Partial` | undefined): *`Promise`* +▸ **transferOwnership**(`newOwner`: string): *`ContractTxFunctionObj`* -*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:3464](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L3464)* +*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:7890](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L7890)* **Parameters:** Name | Type | ------ | ------ | -`order` | object | -`takerAddress` | string | -`takerAssetFillAmount` | `BigNumber` | -`txData?` | `Partial` \| undefined | +`newOwner` | string | -**Returns:** *`Promise`* +**Returns:** *`ContractTxFunctionObj`* ___ -### getSimulatedOrdersTransferResults - -#### ▪ **getSimulatedOrdersTransferResults**: *object* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:3676](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L3676)* - -Simulates all of the transfers for each given order and returns the indices of each first failed transfer. - -#### awaitTransactionSuccessAsync +### unsubscribe -▸ **awaitTransactionSuccessAsync**(`orders`: `Array`, `takerAddresses`: string[], `takerAssetFillAmounts`: `BigNumber`[], `txData?`: `Partial`, `pollingIntervalMs?`: undefined | number, `timeoutMs?`: undefined | number): *`PromiseWithTransactionHash`* +▸ **unsubscribe**(`subscriptionToken`: string): *void* -*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:3744](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L3744)* +*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:8033](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L8033)* -Sends an Ethereum transaction and waits until the transaction has been successfully mined without reverting. -If the transaction was mined, but reverted, an error is thrown. +Cancel a subscription **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. | -`txData?` | `Partial` | Additional data for transaction | -`pollingIntervalMs?` | undefined \| number | Interval at which to poll for success | -`timeoutMs?` | undefined \| number | - | +`subscriptionToken` | string | Subscription token returned by `subscribe()` | -**Returns:** *`PromiseWithTransactionHash`* +**Returns:** *void* -A promise that resolves when the transaction is successful +___ -#### callAsync +### unsubscribeAll -▸ **callAsync**(`orders`: `Array`, `takerAddresses`: string[], `takerAssetFillAmounts`: `BigNumber`[], `callData`: `Partial`, `defaultBlock?`: [BlockParam](#blockparam)): *`Promise`* +▸ **unsubscribeAll**(): *void* -*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:3889](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L3889)* +*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:8039](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L8039)* -Sends a read-only call to the contract method. Returns the result that would happen if one were to send an -Ethereum transaction to this method, given the current state of the blockchain. Calls do not cost gas -since they don't modify state. +Cancels all existing subscriptions -**Parameters:** +**Returns:** *void* -Name | Type | Default | 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. | -`callData` | `Partial` | {} | - | -`defaultBlock?` | [BlockParam](#blockparam) | - | - | +___ -**Returns:** *`Promise`* +### `Static` ABI -The indices of the first failed transfer (or 4 if all transfers are successful) for each order. +▸ **ABI**(): *[ContractAbi](#contractabi)* -#### estimateGasAsync +*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:198](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L198)* -▸ **estimateGasAsync**(`orders`: `Array`, `takerAddresses`: string[], `takerAssetFillAmounts`: `BigNumber`[], `txData?`: `Partial` | undefined): *`Promise`* +**Returns:** *[ContractAbi](#contractabi)* -*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:3799](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L3799)* +The contract ABI -Estimates the gas cost of sending an Ethereum transaction calling this method with these arguments. +___ -**Parameters:** +### `Static` deployAsync -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. | -`txData?` | `Partial` \| undefined | Additional data for transaction | +▸ **deployAsync**(`bytecode`: string, `abi`: [ContractAbi](#contractabi), `supportedProvider`: [SupportedProvider](#supportedprovider), `txDefaults`: `Partial`, `logDecodeDependencies`: object, `chainId`: `BigNumber`): *`Promise`* -**Returns:** *`Promise`* +*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:151](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L151)* + +**Parameters:** + +Name | Type | +------ | ------ | +`bytecode` | string | +`abi` | [ContractAbi](#contractabi) | +`supportedProvider` | [SupportedProvider](#supportedprovider) | +`txDefaults` | `Partial` | +`logDecodeDependencies` | object | +`chainId` | `BigNumber` | -The hash of the transaction +**Returns:** *`Promise`* -#### getABIDecodedReturnData +___ -▸ **getABIDecodedReturnData**(`returnData`: string): *number[]* +### `Static` deployFrom0xArtifactAsync -*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:4048](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L4048)* +▸ **deployFrom0xArtifactAsync**(`artifact`: `ContractArtifact` | `SimpleContractArtifact`, `supportedProvider`: [SupportedProvider](#supportedprovider), `txDefaults`: `Partial`, `logDecodeDependencies`: object, `chainId`: `BigNumber`): *`Promise`* -Decode the ABI-encoded return data from a transaction +*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:125](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L125)* **Parameters:** -Name | Type | Description | ------- | ------ | ------ | -`returnData` | string | the data returned after transaction execution | +Name | Type | +------ | ------ | +`artifact` | `ContractArtifact` \| `SimpleContractArtifact` | +`supportedProvider` | [SupportedProvider](#supportedprovider) | +`txDefaults` | `Partial` | +`logDecodeDependencies` | object | +`chainId` | `BigNumber` | + +**Returns:** *`Promise`* -**Returns:** *number[]* +___ -An array representing the output results in order. Keynames of nested structs are preserved. +### `Static` strictArgumentEncodingCheck -#### getABIDecodedTransactionData +▸ **strictArgumentEncodingCheck**(`inputAbi`: `DataItem`[], `args`: any[]): *string* -▸ **getABIDecodedTransactionData**(`callData`: string): *`Array`* -*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:4000](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L4000)* -Decode the ABI-encoded transaction data into its input arguments +Defined in base-contract/lib/src/index.d.ts:42 **Parameters:** -Name | Type | Description | ------- | ------ | ------ | -`callData` | string | The ABI-encoded transaction data | +Name | Type | +------ | ------ | +`inputAbi` | `DataItem`[] | +`args` | any[] | + +**Returns:** *string* + +
+ +# Class: ForwarderContract -**Returns:** *`Array`* -An array representing the input arguments in order. Keynames of nested structs are preserved. +## Constructors + -#### getABIEncodedTransactionData -▸ **getABIEncodedTransactionData**(`orders`: `Array`, `takerAddresses`: string[], `takerAssetFillAmounts`: `BigNumber`[]): *string* +\+ **new ForwarderContract**(`address`: string, `supportedProvider`: [SupportedProvider](#supportedprovider), `txDefaults?`: `Partial`, `logDecodeDependencies?`: undefined | object, `deployedBytecode`: string | undefined): *[ForwarderContract](#class-forwardercontract)* -*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:3965](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L3965)* +*Overrides void* -Returns the ABI encoded transaction data needed to send an Ethereum transaction calling this method. Before -sending the Ethereum tx, this encoded tx data can first be sent to a separate signing service or can be used -to create a 0x transaction (see protocol spec for more details). +*Defined in [abi-gen-wrappers/src/generated-wrappers/forwarder.ts:1147](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/forwarder.ts#L1147)* **Parameters:** -Name | Type | Description | +Name | Type | Default | ------ | ------ | ------ | -`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. | +`address` | string | - | +`supportedProvider` | [SupportedProvider](#supportedprovider) | - | +`txDefaults?` | `Partial` | - | +`logDecodeDependencies?` | undefined \| object | - | +`deployedBytecode` | string \| undefined | ForwarderContract.deployedBytecode | -**Returns:** *string* +**Returns:** *[ForwarderContract](#class-forwardercontract)* -The ABI encoded transaction data as a string +## Properties -#### sendTransactionAsync +### `Optional` _deployedBytecodeIfExists -▸ **sendTransactionAsync**(`orders`: `Array`, `takerAddresses`: string[], `takerAssetFillAmounts`: `BigNumber`[], `txData?`: `Partial` | undefined): *`Promise`* +• **_deployedBytecodeIfExists**? : *`Buffer`* -*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:3688](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L3688)* -Sends an Ethereum transaction executing this method with the supplied parameters. This is a read/write -Ethereum operation and will cost gas. -**Parameters:** +Defined in base-contract/lib/src/index.d.ts:32 -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. | -`txData?` | `Partial` \| undefined | Additional data for transaction | +___ -**Returns:** *`Promise`* +### abi -The hash of the transaction +• **abi**: *[ContractAbi](#contractabi)* -#### validateAndSendTransactionAsync -▸ **validateAndSendTransactionAsync**(`orders`: `Array`, `takerAddresses`: string[], `takerAssetFillAmounts`: `BigNumber`[], `txData?`: `Partial` | undefined): *`Promise`* -*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:3843](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L3843)* +Defined in base-contract/lib/src/index.d.ts:28 -**Parameters:** +___ -Name | Type | ------- | ------ | -`orders` | `Array` | -`takerAddresses` | string[] | -`takerAssetFillAmounts` | `BigNumber`[] | -`txData?` | `Partial` \| undefined | +### address -**Returns:** *`Promise`* +• **address**: *string* + + + +Defined in base-contract/lib/src/index.d.ts:29 ___ -### getTransferableAssetAmount +Args -#### ▪ **getTransferableAssetAmount**: *object* +• **constructorArgs**: *any[]* -*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:4061](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L4061)* -Gets the amount of an asset transferable by the owner. -#### callAsync +Defined in base-contract/lib/src/index.d.ts:31 -▸ **callAsync**(`ownerAddress`: string, `assetData`: string, `callData`: `Partial`, `defaultBlock?`: [BlockParam](#blockparam)): *`Promise`* +___ -*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:4071](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L4071)* +### contractName -Sends a read-only call to the contract method. Returns the result that would happen if one were to send an -Ethereum transaction to this method, given the current state of the blockchain. Calls do not cost gas -since they don't modify state. +• **contractName**: *string* -**Parameters:** -Name | Type | Default | Description | ------- | ------ | ------ | ------ | -`ownerAddress` | string | - | Address of the owner of the asset. | -`assetData` | string | - | Description of tokens, per the AssetProxy contract specification. | -`callData` | `Partial` | {} | - | -`defaultBlock?` | [BlockParam](#blockparam) | - | - | -**Returns:** *`Promise`* +Defined in base-contract/lib/src/index.d.ts:30 -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`. +## Methods -#### getABIDecodedReturnData +### approveMakerAssetProxy -▸ **getABIDecodedReturnData**(`returnData`: string): *`BigNumber`* +▸ **approveMakerAssetProxy**(`assetData`: string): *`ContractTxFunctionObj`* -*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:4153](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L4153)* +*Defined in [abi-gen-wrappers/src/generated-wrappers/forwarder.ts:449](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/forwarder.ts#L449)* -Decode the ABI-encoded return data from a transaction +Approves the respective proxy for a given asset to transfer tokens on the Forwarder contract's behalf. +This is necessary because an order fee denominated in the maker asset (i.e. a percentage fee) is sent by the +Forwarder contract to the fee recipient. +This method needs to be called before forwarding orders of a maker asset that hasn't +previously been approved. **Parameters:** Name | Type | Description | ------ | ------ | ------ | -`returnData` | string | the data returned after transaction execution | +`assetData` | string | Byte array encoded for the respective asset proxy. | -**Returns:** *`BigNumber`* +**Returns:** *`ContractTxFunctionObj`* -An array representing the output results in order. Keynames of nested structs are preserved. +___ + +### getABIDecodedReturnData -#### getABIDecodedTransactionData +▸ **getABIDecodedReturnData**<**T**>(`methodName`: string, `callData`: string): *`T`* -▸ **getABIDecodedTransactionData**(`callData`: string): *string* +*Defined in [abi-gen-wrappers/src/generated-wrappers/forwarder.ts:427](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/forwarder.ts#L427)* -*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:4141](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L4141)* +**Type parameters:** -Decode the ABI-encoded transaction data into its input arguments +▪ **T** **Parameters:** -Name | Type | Description | ------- | ------ | ------ | -`callData` | string | The ABI-encoded transaction data | +Name | Type | +------ | ------ | +`methodName` | string | +`callData` | string | -**Returns:** *string* +**Returns:** *`T`* -An array representing the input arguments in order. Keynames of nested structs are preserved. +___ -#### getABIEncodedTransactionData +### getABIDecodedTransactionData -▸ **getABIEncodedTransactionData**(`ownerAddress`: string, `assetData`: string): *string* +▸ **getABIDecodedTransactionData**<**T**>(`methodName`: string, `callData`: string): *`T`* -*Defined in [abi-gen-wrappers/src/generated-wrappers/dev_utils.ts:4126](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dev_utils.ts#L4126)* +*Defined in [abi-gen-wrappers/src/generated-wrappers/forwarder.ts:420](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/forwarder.ts#L420)* -Returns the ABI encoded transaction data needed to send an Ethereum transaction calling this method. Before -sending the Ethereum tx, this encoded tx data can first be sent to a separate signing service or can be used -to create a 0x transaction (see protocol spec for more details). +**Type parameters:** -**Parameters:** +▪ **T** -Name | Type | Description | ------- | ------ | ------ | -`ownerAddress` | string | Address of the owner of the asset. | -`assetData` | string | Description of tokens, per the AssetProxy contract specification. | +**Parameters:** -**Returns:** *string* +Name | Type | +------ | ------ | +`methodName` | string | +`callData` | string | -The ABI encoded transaction data as a string +**Returns:** *`T`* -
+___ -# Class: DummyERC20TokenContract +### getFunctionSignature +▸ **getFunctionSignature**(`methodName`: string): *string* -## Constructors - - - -\+ **new DummyERC20TokenContract**(`address`: string, `supportedProvider`: [SupportedProvider](#supportedprovider), `txDefaults?`: `Partial`, `logDecodeDependencies?`: undefined | object, `deployedBytecode`: string | undefined): *[DummyERC20TokenContract](#class-dummyerc20tokencontract)* - -*Overrides void* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/dummy_erc20_token.ts:2381](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dummy_erc20_token.ts#L2381)* - -**Parameters:** - -Name | Type | Default | ------- | ------ | ------ | -`address` | string | - | -`supportedProvider` | [SupportedProvider](#supportedprovider) | - | -`txDefaults?` | `Partial` | - | -`logDecodeDependencies?` | undefined \| object | - | -`deployedBytecode` | string \| undefined | DummyERC20TokenContract.deployedBytecode | - -**Returns:** *[DummyERC20TokenContract](#class-dummyerc20tokencontract)* - -## Properties - -#### abi - -• **abi**: *[ContractAbi](#contractabi)* - - - -Defined in base-contract/lib/src/index.d.ts:27 - -___ - -### address - -• **address**: *string* +*Defined in [abi-gen-wrappers/src/generated-wrappers/forwarder.ts:414](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/forwarder.ts#L414)* +**Parameters:** +Name | Type | +------ | ------ | +`methodName` | string | -Defined in base-contract/lib/src/index.d.ts:28 +**Returns:** *string* ___ -Args - -• **constructorArgs**: *any[]* - - - -Defined in base-contract/lib/src/index.d.ts:30 - -___ +### getSelector -### contractName +▸ **getSelector**(`methodName`: string): *string* -• **contractName**: *string* +*Defined in [abi-gen-wrappers/src/generated-wrappers/forwarder.ts:434](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/forwarder.ts#L434)* +**Parameters:** +Name | Type | +------ | ------ | +`methodName` | string | -Defined in base-contract/lib/src/index.d.ts:29 +**Returns:** *string* ___ -### `Static` deployedBytecode - -▪ **deployedBytecode**: *string* = "0x608060405234801561001057600080fd5b50600436106100ea5760003560e01c806395d89b411161008c578063dd62ed3e11610066578063dd62ed3e146102e2578063e30443bc1461031d578063f2fde38b14610356578063fa9b701814610389576100ea565b806395d89b4114610282578063a0712d681461028a578063a9059cbb146102a9576100ea565b806323b872dd116100c857806323b872dd146101d3578063313ce5671461021657806370a082311461021e5780638da5cb5b14610251576100ea565b806306fdde03146100ef578063095ea7b31461016c57806318160ddd146101b9575b600080fd5b6100f7610391565b6040805160208082528351818301528351919283929083019185019080838360005b83811015610131578181015183820152602001610119565b50505050905090810190601f16801561015e5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6101a56004803603604081101561018257600080fd5b5073ffffffffffffffffffffffffffffffffffffffff813516906020013561043d565b604080519115158252519081900360200190f35b6101c16104b0565b60408051918252519081900360200190f35b6101a5600480360360608110156101e957600080fd5b5073ffffffffffffffffffffffffffffffffffffffff8135811691602081013590911690604001356104b6565b6101c1610772565b6101c16004803603602081101561023457600080fd5b503573ffffffffffffffffffffffffffffffffffffffff16610778565b6102596107a0565b6040805173ffffffffffffffffffffffffffffffffffffffff9092168252519081900360200190f35b6100f76107bc565b6102a7600480360360208110156102a057600080fd5b5035610835565b005b6101a5600480360360408110156102bf57600080fd5b5073ffffffffffffffffffffffffffffffffffffffff81351690602001356108bb565b6101c1600480360360408110156102f857600080fd5b5073ffffffffffffffffffffffffffffffffffffffff81358116916020013516610a4a565b6102a76004803603604081101561033357600080fd5b5073ffffffffffffffffffffffffffffffffffffffff8135169060200135610a82565b6102a76004803603602081101561036c57600080fd5b503573ffffffffffffffffffffffffffffffffffffffff16610b18565b6101c1610b95565b6004805460408051602060026001851615610100027fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0190941693909304601f810184900484028201840190925281815292918301828280156104355780601f1061040a57610100808354040283529160200191610435565b820191906000526020600020905b81548152906001019060200180831161041857829003601f168201915b505050505081565b33600081815260026020908152604080832073ffffffffffffffffffffffffffffffffffffffff8716808552908352818420869055815186815291519394909390927f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925928290030190a350600192915050565b60035490565b73ffffffffffffffffffffffffffffffffffffffff83166000818152600260209081526040808320338452825280832054938352600190915281205490919083111561056357604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601a60248201527f45524332305f494e53554646494349454e545f42414c414e4345000000000000604482015290519081900360640190fd5b828110156105d257604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601c60248201527f45524332305f494e53554646494349454e545f414c4c4f57414e434500000000604482015290519081900360640190fd5b73ffffffffffffffffffffffffffffffffffffffff8416600090815260016020526040902054838101101561066857604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601060248201527f55494e543235365f4f564552464c4f5700000000000000000000000000000000604482015290519081900360640190fd5b73ffffffffffffffffffffffffffffffffffffffff808516600090815260016020526040808220805487019055918716815220805484900390557fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8110156107025773ffffffffffffffffffffffffffffffffffffffff851660009081526002602090815260408083203384529091529020805484900390555b8373ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef856040518082815260200191505060405180910390a3506001949350505050565b60065481565b73ffffffffffffffffffffffffffffffffffffffff1660009081526001602052604090205490565b60005473ffffffffffffffffffffffffffffffffffffffff1681565b6005805460408051602060026001851615610100027fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0190941693909304601f810184900484028201840190925281815292918301828280156104355780601f1061040a57610100808354040283529160200191610435565b69021e19e0c9bab24000008111156108ae57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600f60248201527f56414c55455f544f4f5f4c415247450000000000000000000000000000000000604482015290519081900360640190fd5b6108b83382610ba3565b50565b3360009081526001602052604081205482111561093957604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601a60248201527f45524332305f494e53554646494349454e545f42414c414e4345000000000000604482015290519081900360640190fd5b73ffffffffffffffffffffffffffffffffffffffff831660009081526001602052604090205482810110156109cf57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601060248201527f55494e543235365f4f564552464c4f5700000000000000000000000000000000604482015290519081900360640190fd5b3360008181526001602090815260408083208054879003905573ffffffffffffffffffffffffffffffffffffffff871680845292819020805487019055805186815290519293927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef929181900390910190a350600192915050565b73ffffffffffffffffffffffffffffffffffffffff918216600090815260026020908152604080832093909416825291909152205490565b610a8a610c5c565b73ffffffffffffffffffffffffffffffffffffffff821660009081526001602052604090205480821015610ad557610acd600354610ac88385610ca5565b610ca5565b600355610aee565b610aea600354610ae58484610ca5565b610cc4565b6003555b5073ffffffffffffffffffffffffffffffffffffffff909116600090815260016020526040902055565b610b20610c5c565b73ffffffffffffffffffffffffffffffffffffffff8116610b5057610b4b610b46610ce7565b610d1e565b6108b8565b6000805473ffffffffffffffffffffffffffffffffffffffff83167fffffffffffffffffffffffff000000000000000000000000000000000000000090911617905550565b69021e19e0c9bab240000081565b73ffffffffffffffffffffffffffffffffffffffff8216600090815260016020526040902054610bd4908290610cc4565b73ffffffffffffffffffffffffffffffffffffffff8316600090815260016020526040902055600354610c079082610cc4565b60035560408051828152905173ffffffffffffffffffffffffffffffffffffffff8416916000917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9181900360200190a35050565b60005473ffffffffffffffffffffffffffffffffffffffff163314610ca357600054610ca390610b4690339073ffffffffffffffffffffffffffffffffffffffff16610d26565b565b600082821115610cbe57610cbe610b4660028585610db2565b50900390565b600082820183811015610ce057610ce0610b4660008686610db2565b9392505050565b60408051808201909152600481527fe69edc3e00000000000000000000000000000000000000000000000000000000602082015290565b805160208201fd5b6040805173ffffffffffffffffffffffffffffffffffffffff808516602483015283166044808301919091528251808303909101815260649091019091526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167f1de45ad10000000000000000000000000000000000000000000000000000000017905292915050565b606063e946c1bb60e01b84848460405160240180846003811115610dd257fe5b60ff1681526020018381526020018281526020019350505050604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff83818316178352505050509050939250505056fea265627a7a7231582089c03e503c77db7069bea8a94ec1c47ee5201d8bdb53857e70a882a1130e1ac364736f6c634300050c0032" - -*Defined in [abi-gen-wrappers/src/generated-wrappers/dummy_erc20_token.ts:51](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dummy_erc20_token.ts#L51)* - -## Methods - -### evmExecAsync - -▸ **evmExecAsync**(`input`: `Buffer`): *`Promise`* +### marketBuyOrdersWithEth +▸ **marketBuyOrdersWithEth**(`orders`: `Array`, `makerAssetBuyAmount`: `BigNumber`, `signatures`: string[], `feePercentage`: `BigNumber`, `feeRecipient`: string): *`ContractTxFunctionObj<[BigNumber, BigNumber, BigNumber]>`* +*Defined in [abi-gen-wrappers/src/generated-wrappers/forwarder.ts:571](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/forwarder.ts#L571)* -Defined in base-contract/lib/src/index.d.ts:42 +Attempt to buy makerAssetBuyAmount of makerAsset by selling ETH provided with transaction. +The Forwarder may *fill* more than makerAssetBuyAmount of the makerAsset so that it can +pay takerFees where takerFeeAssetData == makerAssetData (i.e. percentage fees). +Any ETH not spent will be refunded to sender. **Parameters:** -Name | Type | ------- | ------ | -`input` | `Buffer` | - -**Returns:** *`Promise`* +Name | Type | Description | +------ | ------ | ------ | +`orders` | `Array` | Array of order specifications used containing desired makerAsset and WETH as takerAsset. | +`makerAssetBuyAmount` | `BigNumber` | Desired amount of makerAsset to purchase. | +`signatures` | string[] | Proofs that orders have been created by makers. | +`feePercentage` | `BigNumber` | Percentage of WETH sold that will payed as fee to forwarding contract feeRecipient. | +`feeRecipient` | string | Address that will receive ETH when orders are filled. | -___ +**Returns:** *`ContractTxFunctionObj<[BigNumber, BigNumber, BigNumber]>`* -### getLogsAsync +wethSpentAmount Amount of WETH spent on the given set of orders.makerAssetAcquiredAmount Amount of maker asset acquired from the given set of orders.ethFeePaid Amount of ETH spent on the given forwarder fee. -▸ **getLogsAsync**<**ArgsType**>(`eventName`: [DummyERC20TokenEvents](#enumeration-dummyerc20tokenevents), `blockRange`: `BlockRange`, `indexFilterValues`: `IndexedFilterValues`): *`Promise>>`* +___ -*Defined in [abi-gen-wrappers/src/generated-wrappers/dummy_erc20_token.ts:2365](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dummy_erc20_token.ts#L2365)* +### marketSellOrdersWithEth -Gets historical logs without creating a subscription +▸ **marketSellOrdersWithEth**(`orders`: `Array`, `signatures`: string[], `feePercentage`: `BigNumber`, `feeRecipient`: string): *`ContractTxFunctionObj<[BigNumber, BigNumber, BigNumber]>`* -**Type parameters:** +*Defined in [abi-gen-wrappers/src/generated-wrappers/forwarder.ts:730](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/forwarder.ts#L730)* -▪ **ArgsType**: *[DummyERC20TokenEventArgs](#dummyerc20tokeneventargs)* +Purchases as much of orders' makerAssets as possible by selling as much of the ETH value sent +as possible, accounting for order and forwarder fees. **Parameters:** Name | Type | Description | ------ | ------ | ------ | -`eventName` | [DummyERC20TokenEvents](#enumeration-dummyerc20tokenevents) | The DummyERC20Token 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}` | +`orders` | `Array` | Array of order specifications used containing desired makerAsset and WETH as takerAsset. | +`signatures` | string[] | Proofs that orders have been created by makers. | +`feePercentage` | `BigNumber` | Percentage of WETH sold that will payed as fee to forwarding contract feeRecipient. | +`feeRecipient` | string | Address that will receive ETH when orders are filled. | -**Returns:** *`Promise>>`* +**Returns:** *`ContractTxFunctionObj<[BigNumber, BigNumber, BigNumber]>`* -Array of logs that match the parameters +wethSpentAmount Amount of WETH spent on the given set of orders.makerAssetAcquiredAmount Amount of maker asset acquired from the given set of orders.ethFeePaid Amount of ETH spent on the given forwarder fee. ___ -### subscribe +### owner -▸ **subscribe**<**ArgsType**>(`eventName`: [DummyERC20TokenEvents](#enumeration-dummyerc20tokenevents), `indexFilterValues`: `IndexedFilterValues`, `callback`: [EventCallback](#eventcallback)‹*`ArgsType`*›, `isVerbose`: boolean, `blockPollingIntervalMs?`: undefined | number): *string* +▸ **owner**(): *`ContractFunctionObj`* -*Defined in [abi-gen-wrappers/src/generated-wrappers/dummy_erc20_token.ts:2323](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dummy_erc20_token.ts#L2323)* +*Defined in [abi-gen-wrappers/src/generated-wrappers/forwarder.ts:876](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/forwarder.ts#L876)* -Subscribe to an event type emitted by the DummyERC20Token contract. +**Returns:** *`ContractFunctionObj`* -**Type parameters:** +___ -▪ **ArgsType**: *[DummyERC20TokenEventArgs](#dummyerc20tokeneventargs)* +### transferOwnership -**Parameters:** +▸ **transferOwnership**(`newOwner`: string): *`ContractTxFunctionObj`* -Name | Type | Default | Description | ------- | ------ | ------ | ------ | -`eventName` | [DummyERC20TokenEvents](#enumeration-dummyerc20tokenevents) | - | The DummyERC20Token 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 | - | - | +*Defined in [abi-gen-wrappers/src/generated-wrappers/forwarder.ts:923](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/forwarder.ts#L923)* -**Returns:** *string* +**Parameters:** -Subscription token used later to unsubscribe +Name | Type | +------ | ------ | +`newOwner` | string | + +**Returns:** *`ContractTxFunctionObj`* ___ -### unsubscribe +### withdrawAsset -▸ **unsubscribe**(`subscriptionToken`: string): *void* +▸ **withdrawAsset**(`assetData`: string, `amount`: `BigNumber`): *`ContractTxFunctionObj`* -*Defined in [abi-gen-wrappers/src/generated-wrappers/dummy_erc20_token.ts:2348](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dummy_erc20_token.ts#L2348)* +*Defined in [abi-gen-wrappers/src/generated-wrappers/forwarder.ts:1038](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/forwarder.ts#L1038)* -Cancel a subscription +Withdraws assets from this contract. The contract formerly required a ZRX balance in order +to function optimally, and this function allows the ZRX to be withdrawn by owner. +It may also be used to withdraw assets that were accidentally sent to this contract. **Parameters:** Name | Type | Description | ------ | ------ | ------ | -`subscriptionToken` | string | Subscription token returned by `subscribe()` | - -**Returns:** *void* - -___ - -### unsubscribeAll - -▸ **unsubscribeAll**(): *void* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/dummy_erc20_token.ts:2354](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dummy_erc20_token.ts#L2354)* - -Cancels all existing subscriptions +`assetData` | string | Byte array encoded for the respective asset proxy. | +`amount` | `BigNumber` | Amount of ERC20 token to withdraw. | -**Returns:** *void* +**Returns:** *`ContractTxFunctionObj`* ___ @@ -5163,7 +4793,7 @@ ___ ▸ **ABI**(): *[ContractAbi](#contractabi)* -*Defined in [abi-gen-wrappers/src/generated-wrappers/dummy_erc20_token.ts:1994](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dummy_erc20_token.ts#L1994)* +*Defined in [abi-gen-wrappers/src/generated-wrappers/forwarder.ts:127](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/forwarder.ts#L127)* **Returns:** *[ContractAbi](#contractabi)* @@ -5173,9 +4803,9 @@ ___ ### `Static` deployAsync -▸ **deployAsync**(`bytecode`: string, `abi`: [ContractAbi](#contractabi), `supportedProvider`: [SupportedProvider](#supportedprovider), `txDefaults`: `Partial`, `logDecodeDependencies`: object, `_name`: string, `_symbol`: string, `_decimals`: `BigNumber`, `_totalSupply`: `BigNumber`): *`Promise`* +▸ **deployAsync**(`bytecode`: string, `abi`: [ContractAbi](#contractabi), `supportedProvider`: [SupportedProvider](#supportedprovider), `txDefaults`: `Partial`, `logDecodeDependencies`: object, `_exchange`: string, `_wethAssetData`: string): *`Promise`* -*Defined in [abi-gen-wrappers/src/generated-wrappers/dummy_erc20_token.ts:1944](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dummy_erc20_token.ts#L1944)* +*Defined in [abi-gen-wrappers/src/generated-wrappers/forwarder.ts:79](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/forwarder.ts#L79)* **Parameters:** @@ -5186,20 +4816,18 @@ Name | Type | `supportedProvider` | [SupportedProvider](#supportedprovider) | `txDefaults` | `Partial` | `logDecodeDependencies` | object | -`_name` | string | -`_symbol` | string | -`_decimals` | `BigNumber` | -`_totalSupply` | `BigNumber` | +`_exchange` | string | +`_wethAssetData` | string | -**Returns:** *`Promise`* +**Returns:** *`Promise`* ___ ### `Static` deployFrom0xArtifactAsync -▸ **deployFrom0xArtifactAsync**(`artifact`: `ContractArtifact` | `SimpleContractArtifact`, `supportedProvider`: [SupportedProvider](#supportedprovider), `txDefaults`: `Partial`, `logDecodeDependencies`: object, `_name`: string, `_symbol`: string, `_decimals`: `BigNumber`, `_totalSupply`: `BigNumber`): *`Promise`* +▸ **deployFrom0xArtifactAsync**(`artifact`: `ContractArtifact` | `SimpleContractArtifact`, `supportedProvider`: [SupportedProvider](#supportedprovider), `txDefaults`: `Partial`, `logDecodeDependencies`: object, `_exchange`: string, `_wethAssetData`: string): *`Promise`* -*Defined in [abi-gen-wrappers/src/generated-wrappers/dummy_erc20_token.ts:1905](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dummy_erc20_token.ts#L1905)* +*Defined in [abi-gen-wrappers/src/generated-wrappers/forwarder.ts:44](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/forwarder.ts#L44)* **Parameters:** @@ -5209,12 +4837,10 @@ Name | Type | `supportedProvider` | [SupportedProvider](#supportedprovider) | `txDefaults` | `Partial` | `logDecodeDependencies` | object | -`_name` | string | -`_symbol` | string | -`_decimals` | `BigNumber` | -`_totalSupply` | `BigNumber` | +`_exchange` | string | +`_wethAssetData` | string | -**Returns:** *`Promise`* +**Returns:** *`Promise`* ___ @@ -5224,7 +4850,7 @@ ___ -Defined in base-contract/lib/src/index.d.ts:41 +Defined in base-contract/lib/src/index.d.ts:42 **Parameters:** @@ -5235,1690 +4861,1467 @@ Name | Type | **Returns:** *string* -## Object literals +
+ +# Class: IValidatorContract -### MAX_MINT_AMOUNT -#### ▪ **MAX_MINT_AMOUNT**: *object* +## Constructors -*Defined in [abi-gen-wrappers/src/generated-wrappers/dummy_erc20_token.ts:53](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dummy_erc20_token.ts#L53)* -#### callAsync -▸ **callAsync**(`callData`: `Partial`, `defaultBlock?`: [BlockParam](#blockparam)): *`Promise`* +\+ **new IValidatorContract**(`address`: string, `supportedProvider`: [SupportedProvider](#supportedprovider), `txDefaults?`: `Partial`, `logDecodeDependencies?`: undefined | object, `deployedBytecode`: string | undefined): *[IValidatorContract](#class-ivalidatorcontract)* -*Defined in [abi-gen-wrappers/src/generated-wrappers/dummy_erc20_token.ts:59](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dummy_erc20_token.ts#L59)* +*Overrides void* -Sends a read-only call to the contract method. Returns the result that would happen if one were to send an -Ethereum transaction to this method, given the current state of the blockchain. Calls do not cost gas -since they don't modify state. +*Defined in [abi-gen-wrappers/src/generated-wrappers/i_validator.ts:234](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/i_validator.ts#L234)* **Parameters:** Name | Type | Default | ------ | ------ | ------ | -`callData` | `Partial` | {} | -`defaultBlock?` | [BlockParam](#blockparam) | - | - -**Returns:** *`Promise`* - -#### getABIDecodedReturnData +`address` | string | - | +`supportedProvider` | [SupportedProvider](#supportedprovider) | - | +`txDefaults?` | `Partial` | - | +`logDecodeDependencies?` | undefined \| object | - | +`deployedBytecode` | string \| undefined | IValidatorContract.deployedBytecode | -▸ **getABIDecodedReturnData**(`returnData`: string): *`BigNumber`* +**Returns:** *[IValidatorContract](#class-ivalidatorcontract)* -*Defined in [abi-gen-wrappers/src/generated-wrappers/dummy_erc20_token.ts:123](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dummy_erc20_token.ts#L123)* +## Properties -Decode the ABI-encoded return data from a transaction +### `Optional` _deployedBytecodeIfExists -**Parameters:** +• **_deployedBytecodeIfExists**? : *`Buffer`* -Name | Type | Description | ------- | ------ | ------ | -`returnData` | string | the data returned after transaction execution | -**Returns:** *`BigNumber`* -An array representing the output results in order. Keynames of nested structs are preserved. +Defined in base-contract/lib/src/index.d.ts:32 -#### getABIDecodedTransactionData +___ -▸ **getABIDecodedTransactionData**(`callData`: string): *void* +### abi -*Defined in [abi-gen-wrappers/src/generated-wrappers/dummy_erc20_token.ts:111](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dummy_erc20_token.ts#L111)* +• **abi**: *[ContractAbi](#contractabi)* -Decode the ABI-encoded transaction data into its input arguments -**Parameters:** -Name | Type | Description | ------- | ------ | ------ | -`callData` | string | The ABI-encoded transaction data | +Defined in base-contract/lib/src/index.d.ts:28 -**Returns:** *void* +___ -An array representing the input arguments in order. Keynames of nested structs are preserved. +### address -#### getABIEncodedTransactionData +• **address**: *string* -▸ **getABIEncodedTransactionData**(): *string* -*Defined in [abi-gen-wrappers/src/generated-wrappers/dummy_erc20_token.ts:101](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dummy_erc20_token.ts#L101)* -Returns the ABI encoded transaction data needed to send an Ethereum transaction calling this method. Before -sending the Ethereum tx, this encoded tx data can first be sent to a separate signing service or can be used -to create a 0x transaction (see protocol spec for more details). +Defined in base-contract/lib/src/index.d.ts:29 -**Returns:** *string* +___ -The ABI encoded transaction data as a string +Args -___ +• **constructorArgs**: *any[]* -### allowance -#### ▪ **allowance**: *object* -*Defined in [abi-gen-wrappers/src/generated-wrappers/dummy_erc20_token.ts:131](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dummy_erc20_token.ts#L131)* +Defined in base-contract/lib/src/index.d.ts:31 -#### callAsync +___ -▸ **callAsync**(`_owner`: string, `_spender`: string, `callData`: `Partial`, `defaultBlock?`: [BlockParam](#blockparam)): *`Promise`* +### contractName -*Defined in [abi-gen-wrappers/src/generated-wrappers/dummy_erc20_token.ts:140](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dummy_erc20_token.ts#L140)* +• **contractName**: *string* -Sends a read-only call to the contract method. Returns the result that would happen if one were to send an -Ethereum transaction to this method, given the current state of the blockchain. Calls do not cost gas -since they don't modify state. -**Parameters:** -Name | Type | Default | Description | ------- | ------ | ------ | ------ | -`_owner` | string | - | The address of the account owning tokens | -`_spender` | string | - | The address of the account able to transfer the tokens | -`callData` | `Partial` | {} | - | -`defaultBlock?` | [BlockParam](#blockparam) | - | - | +Defined in base-contract/lib/src/index.d.ts:30 -**Returns:** *`Promise`* +## Methods -Amount of remaining tokens allowed to spent +### getABIDecodedReturnData -#### getABIDecodedReturnData +▸ **getABIDecodedReturnData**<**T**>(`methodName`: string, `callData`: string): *`T`* -▸ **getABIDecodedReturnData**(`returnData`: string): *`BigNumber`* +*Defined in [abi-gen-wrappers/src/generated-wrappers/i_validator.ts:157](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/i_validator.ts#L157)* -*Defined in [abi-gen-wrappers/src/generated-wrappers/dummy_erc20_token.ts:221](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dummy_erc20_token.ts#L221)* +**Type parameters:** -Decode the ABI-encoded return data from a transaction +▪ **T** **Parameters:** -Name | Type | Description | ------- | ------ | ------ | -`returnData` | string | the data returned after transaction execution | +Name | Type | +------ | ------ | +`methodName` | string | +`callData` | string | -**Returns:** *`BigNumber`* +**Returns:** *`T`* -An array representing the output results in order. Keynames of nested structs are preserved. +___ -#### getABIDecodedTransactionData +### getABIDecodedTransactionData -▸ **getABIDecodedTransactionData**(`callData`: string): *string* +▸ **getABIDecodedTransactionData**<**T**>(`methodName`: string, `callData`: string): *`T`* -*Defined in [abi-gen-wrappers/src/generated-wrappers/dummy_erc20_token.ts:209](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dummy_erc20_token.ts#L209)* +*Defined in [abi-gen-wrappers/src/generated-wrappers/i_validator.ts:150](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/i_validator.ts#L150)* -Decode the ABI-encoded transaction data into its input arguments +**Type parameters:** -**Parameters:** +▪ **T** -Name | Type | Description | ------- | ------ | ------ | -`callData` | string | The ABI-encoded transaction data | +**Parameters:** -**Returns:** *string* +Name | Type | +------ | ------ | +`methodName` | string | +`callData` | string | -An array representing the input arguments in order. Keynames of nested structs are preserved. +**Returns:** *`T`* -#### getABIEncodedTransactionData +___ -▸ **getABIEncodedTransactionData**(`_owner`: string, `_spender`: string): *string* +### getFunctionSignature -*Defined in [abi-gen-wrappers/src/generated-wrappers/dummy_erc20_token.ts:194](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dummy_erc20_token.ts#L194)* +▸ **getFunctionSignature**(`methodName`: string): *string* -Returns the ABI encoded transaction data needed to send an Ethereum transaction calling this method. Before -sending the Ethereum tx, this encoded tx data can first be sent to a separate signing service or can be used -to create a 0x transaction (see protocol spec for more details). +*Defined in [abi-gen-wrappers/src/generated-wrappers/i_validator.ts:144](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/i_validator.ts#L144)* **Parameters:** -Name | Type | Description | ------- | ------ | ------ | -`_owner` | string | The address of the account owning tokens | -`_spender` | string | The address of the account able to transfer the tokens | +Name | Type | +------ | ------ | +`methodName` | string | **Returns:** *string* -The ABI encoded transaction data as a string - ___ -### approve +### getSelector -#### ▪ **approve**: *object* +▸ **getSelector**(`methodName`: string): *string* -*Defined in [abi-gen-wrappers/src/generated-wrappers/dummy_erc20_token.ts:232](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dummy_erc20_token.ts#L232)* +*Defined in [abi-gen-wrappers/src/generated-wrappers/i_validator.ts:164](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/i_validator.ts#L164)* -`msg.sender` approves `_spender` to spend `_value` tokens +**Parameters:** -#### awaitTransactionSuccessAsync +Name | Type | +------ | ------ | +`methodName` | string | + +**Returns:** *string* + +___ + +### isValidSignature -▸ **awaitTransactionSuccessAsync**(`_spender`: string, `_value`: `BigNumber`, `txData?`: `Partial`, `pollingIntervalMs?`: undefined | number, `timeoutMs?`: undefined | number): *`PromiseWithTransactionHash`* +▸ **isValidSignature**(`hash`: string, `signerAddress`: string, `signature`: string): *`ContractFunctionObj`* -*Defined in [abi-gen-wrappers/src/generated-wrappers/dummy_erc20_token.ts:277](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dummy_erc20_token.ts#L277)* +*Defined in [abi-gen-wrappers/src/generated-wrappers/i_validator.ts:178](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/i_validator.ts#L178)* -Sends an Ethereum transaction and waits until the transaction has been successfully mined without reverting. -If the transaction was mined, but reverted, an error is thrown. +Verifies that a signature is valid. **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 | -`txData?` | `Partial` | Additional data for transaction | -`pollingIntervalMs?` | undefined \| number | Interval at which to poll for success | -`timeoutMs?` | undefined \| number | - | +`hash` | string | Message hash that is signed. | +`signerAddress` | string | Address that should have signed the given hash. | +`signature` | string | Proof of signing. | -**Returns:** *`PromiseWithTransactionHash`* +**Returns:** *`ContractFunctionObj`* -A promise that resolves when the transaction is successful +Magic bytes4 value if the signature is valid. Magic value is bytes4(keccak256("isValidValidatorSignature(address,bytes32,address,bytes)")) -#### callAsync +___ -▸ **callAsync**(`_spender`: string, `_value`: `BigNumber`, `callData`: `Partial`, `defaultBlock?`: [BlockParam](#blockparam)): *`Promise`* +### `Static` ABI -*Defined in [abi-gen-wrappers/src/generated-wrappers/dummy_erc20_token.ts:351](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dummy_erc20_token.ts#L351)* +▸ **ABI**(): *[ContractAbi](#contractabi)* -Sends a read-only call to the contract method. Returns the result that would happen if one were to send an -Ethereum transaction to this method, given the current state of the blockchain. Calls do not cost gas -since they don't modify state. +*Defined in [abi-gen-wrappers/src/generated-wrappers/i_validator.ts:111](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/i_validator.ts#L111)* -**Parameters:** +**Returns:** *[ContractAbi](#contractabi)* -Name | Type | Default | Description | ------- | ------ | ------ | ------ | -`_spender` | string | - | The address of the account able to transfer the tokens | -`_value` | `BigNumber` | - | The amount of wei to be approved for transfer | -`callData` | `Partial` | {} | - | -`defaultBlock?` | [BlockParam](#blockparam) | - | - | +The contract ABI -**Returns:** *`Promise`* - -Always true if the call has enough gas to complete execution - -#### estimateGasAsync +___ -▸ **estimateGasAsync**(`_spender`: string, `_value`: `BigNumber`, `txData?`: `Partial` | undefined): *`Promise`* +### `Static` deployAsync -*Defined in [abi-gen-wrappers/src/generated-wrappers/dummy_erc20_token.ts:307](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dummy_erc20_token.ts#L307)* +▸ **deployAsync**(`bytecode`: string, `abi`: [ContractAbi](#contractabi), `supportedProvider`: [SupportedProvider](#supportedprovider), `txDefaults`: `Partial`, `logDecodeDependencies`: object): *`Promise`* -Estimates the gas cost of sending an Ethereum transaction calling this method with these arguments. +*Defined in [abi-gen-wrappers/src/generated-wrappers/i_validator.ts:69](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/i_validator.ts#L69)* **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 | -`txData?` | `Partial` \| undefined | Additional data for transaction | - -**Returns:** *`Promise`* +Name | Type | +------ | ------ | +`bytecode` | string | +`abi` | [ContractAbi](#contractabi) | +`supportedProvider` | [SupportedProvider](#supportedprovider) | +`txDefaults` | `Partial` | +`logDecodeDependencies` | object | -The hash of the transaction +**Returns:** *`Promise`* -#### getABIDecodedReturnData +___ -▸ **getABIDecodedReturnData**(`returnData`: string): *boolean* +### `Static` deployFrom0xArtifactAsync -*Defined in [abi-gen-wrappers/src/generated-wrappers/dummy_erc20_token.ts:432](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dummy_erc20_token.ts#L432)* +▸ **deployFrom0xArtifactAsync**(`artifact`: `ContractArtifact` | `SimpleContractArtifact`, `supportedProvider`: [SupportedProvider](#supportedprovider), `txDefaults`: `Partial`, `logDecodeDependencies`: object): *`Promise`* -Decode the ABI-encoded return data from a transaction +*Defined in [abi-gen-wrappers/src/generated-wrappers/i_validator.ts:44](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/i_validator.ts#L44)* **Parameters:** -Name | Type | Description | ------- | ------ | ------ | -`returnData` | string | the data returned after transaction execution | +Name | Type | +------ | ------ | +`artifact` | `ContractArtifact` \| `SimpleContractArtifact` | +`supportedProvider` | [SupportedProvider](#supportedprovider) | +`txDefaults` | `Partial` | +`logDecodeDependencies` | object | + +**Returns:** *`Promise`* -**Returns:** *boolean* +___ -An array representing the output results in order. Keynames of nested structs are preserved. +### `Static` strictArgumentEncodingCheck -#### getABIDecodedTransactionData +▸ **strictArgumentEncodingCheck**(`inputAbi`: `DataItem`[], `args`: any[]): *string* -▸ **getABIDecodedTransactionData**(`callData`: string): *string* -*Defined in [abi-gen-wrappers/src/generated-wrappers/dummy_erc20_token.ts:420](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dummy_erc20_token.ts#L420)* -Decode the ABI-encoded transaction data into its input arguments +Defined in base-contract/lib/src/index.d.ts:42 **Parameters:** -Name | Type | Description | ------- | ------ | ------ | -`callData` | string | The ABI-encoded transaction data | +Name | Type | +------ | ------ | +`inputAbi` | `DataItem`[] | +`args` | any[] | **Returns:** *string* -An array representing the input arguments in order. Keynames of nested structs are preserved. - -#### getABIEncodedTransactionData - -▸ **getABIEncodedTransactionData**(`_spender`: string, `_value`: `BigNumber`): *string* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/dummy_erc20_token.ts:405](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dummy_erc20_token.ts#L405)* - -Returns the ABI encoded transaction data needed to send an Ethereum transaction calling this method. Before -sending the Ethereum tx, this encoded tx data can first be sent to a separate signing service or can be used -to create a 0x transaction (see protocol spec for more details). +
-**Parameters:** +# Class: IWalletContract -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:** *string* +## Constructors -The ABI encoded transaction data as a string -#### sendTransactionAsync -▸ **sendTransactionAsync**(`_spender`: string, `_value`: `BigNumber`, `txData?`: `Partial` | undefined): *`Promise`* +\+ **new IWalletContract**(`address`: string, `supportedProvider`: [SupportedProvider](#supportedprovider), `txDefaults?`: `Partial`, `logDecodeDependencies?`: undefined | object, `deployedBytecode`: string | undefined): *[IWalletContract](#class-iwalletcontract)* -*Defined in [abi-gen-wrappers/src/generated-wrappers/dummy_erc20_token.ts:241](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dummy_erc20_token.ts#L241)* +*Overrides void* -Sends an Ethereum transaction executing this method with the supplied parameters. This is a read/write -Ethereum operation and will cost gas. +*Defined in [abi-gen-wrappers/src/generated-wrappers/i_wallet.ts:224](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/i_wallet.ts#L224)* **Parameters:** -Name | Type | Description | +Name | Type | Default | ------ | ------ | ------ | -`_spender` | string | The address of the account able to transfer the tokens | -`_value` | `BigNumber` | The amount of wei to be approved for transfer | -`txData?` | `Partial` \| undefined | Additional data for transaction | - -**Returns:** *`Promise`* +`address` | string | - | +`supportedProvider` | [SupportedProvider](#supportedprovider) | - | +`txDefaults?` | `Partial` | - | +`logDecodeDependencies?` | undefined \| object | - | +`deployedBytecode` | string \| undefined | IWalletContract.deployedBytecode | -The hash of the transaction +**Returns:** *[IWalletContract](#class-iwalletcontract)* -#### validateAndSendTransactionAsync +## Properties -▸ **validateAndSendTransactionAsync**(`_spender`: string, `_value`: `BigNumber`, `txData?`: `Partial` | undefined): *`Promise`* +### `Optional` _deployedBytecodeIfExists -*Defined in [abi-gen-wrappers/src/generated-wrappers/dummy_erc20_token.ts:334](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dummy_erc20_token.ts#L334)* +• **_deployedBytecodeIfExists**? : *`Buffer`* -**Parameters:** -Name | Type | ------- | ------ | -`_spender` | string | -`_value` | `BigNumber` | -`txData?` | `Partial` \| undefined | -**Returns:** *`Promise`* +Defined in base-contract/lib/src/index.d.ts:32 ___ -### balanceOf +### abi -#### ▪ **balanceOf**: *object* +• **abi**: *[ContractAbi](#contractabi)* -*Defined in [abi-gen-wrappers/src/generated-wrappers/dummy_erc20_token.ts:443](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dummy_erc20_token.ts#L443)* -Query the balance of owner -#### callAsync +Defined in base-contract/lib/src/index.d.ts:28 -▸ **callAsync**(`_owner`: string, `callData`: `Partial`, `defaultBlock?`: [BlockParam](#blockparam)): *`Promise`* +___ -*Defined in [abi-gen-wrappers/src/generated-wrappers/dummy_erc20_token.ts:451](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dummy_erc20_token.ts#L451)* +### address -Sends a read-only call to the contract method. Returns the result that would happen if one were to send an -Ethereum transaction to this method, given the current state of the blockchain. Calls do not cost gas -since they don't modify state. +• **address**: *string* -**Parameters:** -Name | Type | Default | Description | ------- | ------ | ------ | ------ | -`_owner` | string | - | The address from which the balance will be retrieved | -`callData` | `Partial` | {} | - | -`defaultBlock?` | [BlockParam](#blockparam) | - | - | -**Returns:** *`Promise`* +Defined in base-contract/lib/src/index.d.ts:29 -Balance of owner +___ -#### getABIDecodedReturnData +Args -▸ **getABIDecodedReturnData**(`returnData`: string): *`BigNumber`* +• **constructorArgs**: *any[]* -*Defined in [abi-gen-wrappers/src/generated-wrappers/dummy_erc20_token.ts:522](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dummy_erc20_token.ts#L522)* -Decode the ABI-encoded return data from a transaction -**Parameters:** +Defined in base-contract/lib/src/index.d.ts:31 -Name | Type | Description | ------- | ------ | ------ | -`returnData` | string | the data returned after transaction execution | +___ -**Returns:** *`BigNumber`* +### contractName -An array representing the output results in order. Keynames of nested structs are preserved. +• **contractName**: *string* -#### getABIDecodedTransactionData -▸ **getABIDecodedTransactionData**(`callData`: string): *string* -*Defined in [abi-gen-wrappers/src/generated-wrappers/dummy_erc20_token.ts:510](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dummy_erc20_token.ts#L510)* +Defined in base-contract/lib/src/index.d.ts:30 -Decode the ABI-encoded transaction data into its input arguments +## Methods -**Parameters:** +### getABIDecodedReturnData -Name | Type | Description | ------- | ------ | ------ | -`callData` | string | The ABI-encoded transaction data | +▸ **getABIDecodedReturnData**<**T**>(`methodName`: string, `callData`: string): *`T`* -**Returns:** *string* +*Defined in [abi-gen-wrappers/src/generated-wrappers/i_wallet.ts:153](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/i_wallet.ts#L153)* -An array representing the input arguments in order. Keynames of nested structs are preserved. +**Type parameters:** -#### getABIEncodedTransactionData +▪ **T** -▸ **getABIEncodedTransactionData**(`_owner`: string): *string* +**Parameters:** -*Defined in [abi-gen-wrappers/src/generated-wrappers/dummy_erc20_token.ts:499](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dummy_erc20_token.ts#L499)* +Name | Type | +------ | ------ | +`methodName` | string | +`callData` | string | -Returns the ABI encoded transaction data needed to send an Ethereum transaction calling this method. Before -sending the Ethereum tx, this encoded tx data can first be sent to a separate signing service or can be used -to create a 0x transaction (see protocol spec for more details). +**Returns:** *`T`* -**Parameters:** +___ -Name | Type | Description | ------- | ------ | ------ | -`_owner` | string | The address from which the balance will be retrieved | +### getABIDecodedTransactionData -**Returns:** *string* +▸ **getABIDecodedTransactionData**<**T**>(`methodName`: string, `callData`: string): *`T`* -The ABI encoded transaction data as a string +*Defined in [abi-gen-wrappers/src/generated-wrappers/i_wallet.ts:146](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/i_wallet.ts#L146)* -___ +**Type parameters:** -### decimals +▪ **T** + +**Parameters:** -#### ▪ **decimals**: *object* +Name | Type | +------ | ------ | +`methodName` | string | +`callData` | string | -*Defined in [abi-gen-wrappers/src/generated-wrappers/dummy_erc20_token.ts:530](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dummy_erc20_token.ts#L530)* +**Returns:** *`T`* -#### callAsync +___ -▸ **callAsync**(`callData`: `Partial`, `defaultBlock?`: [BlockParam](#blockparam)): *`Promise`* +### getFunctionSignature -*Defined in [abi-gen-wrappers/src/generated-wrappers/dummy_erc20_token.ts:536](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dummy_erc20_token.ts#L536)* +▸ **getFunctionSignature**(`methodName`: string): *string* -Sends a read-only call to the contract method. Returns the result that would happen if one were to send an -Ethereum transaction to this method, given the current state of the blockchain. Calls do not cost gas -since they don't modify state. +*Defined in [abi-gen-wrappers/src/generated-wrappers/i_wallet.ts:140](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/i_wallet.ts#L140)* **Parameters:** -Name | Type | Default | ------- | ------ | ------ | -`callData` | `Partial` | {} | -`defaultBlock?` | [BlockParam](#blockparam) | - | +Name | Type | +------ | ------ | +`methodName` | string | -**Returns:** *`Promise`* +**Returns:** *string* -#### getABIDecodedReturnData +___ -▸ **getABIDecodedReturnData**(`returnData`: string): *`BigNumber`* +### getSelector -*Defined in [abi-gen-wrappers/src/generated-wrappers/dummy_erc20_token.ts:600](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dummy_erc20_token.ts#L600)* +▸ **getSelector**(`methodName`: string): *string* -Decode the ABI-encoded return data from a transaction +*Defined in [abi-gen-wrappers/src/generated-wrappers/i_wallet.ts:160](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/i_wallet.ts#L160)* **Parameters:** -Name | Type | Description | ------- | ------ | ------ | -`returnData` | string | the data returned after transaction execution | +Name | Type | +------ | ------ | +`methodName` | string | -**Returns:** *`BigNumber`* +**Returns:** *string* -An array representing the output results in order. Keynames of nested structs are preserved. +___ -#### getABIDecodedTransactionData +### isValidSignature -▸ **getABIDecodedTransactionData**(`callData`: string): *void* +▸ **isValidSignature**(`hash`: string, `signature`: string): *`ContractFunctionObj`* -*Defined in [abi-gen-wrappers/src/generated-wrappers/dummy_erc20_token.ts:588](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dummy_erc20_token.ts#L588)* +*Defined in [abi-gen-wrappers/src/generated-wrappers/i_wallet.ts:173](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/i_wallet.ts#L173)* -Decode the ABI-encoded transaction data into its input arguments +Validates a hash with the `Wallet` signature type. **Parameters:** Name | Type | Description | ------ | ------ | ------ | -`callData` | string | The ABI-encoded transaction data | +`hash` | string | Message hash that is signed. | +`signature` | string | Proof of signing. | -**Returns:** *void* +**Returns:** *`ContractFunctionObj`* -An array representing the input arguments in order. Keynames of nested structs are preserved. +magicValue `bytes4(0xb0671381)` if the signature check succeeds. -#### getABIEncodedTransactionData +___ -▸ **getABIEncodedTransactionData**(): *string* +### `Static` ABI -*Defined in [abi-gen-wrappers/src/generated-wrappers/dummy_erc20_token.ts:578](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dummy_erc20_token.ts#L578)* +▸ **ABI**(): *[ContractAbi](#contractabi)* -Returns the ABI encoded transaction data needed to send an Ethereum transaction calling this method. Before -sending the Ethereum tx, this encoded tx data can first be sent to a separate signing service or can be used -to create a 0x transaction (see protocol spec for more details). +*Defined in [abi-gen-wrappers/src/generated-wrappers/i_wallet.ts:111](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/i_wallet.ts#L111)* -**Returns:** *string* +**Returns:** *[ContractAbi](#contractabi)* -The ABI encoded transaction data as a string +The contract ABI ___ -### mint +### `Static` deployAsync -#### ▪ **mint**: *object* +▸ **deployAsync**(`bytecode`: string, `abi`: [ContractAbi](#contractabi), `supportedProvider`: [SupportedProvider](#supportedprovider), `txDefaults`: `Partial`, `logDecodeDependencies`: object): *`Promise`* -*Defined in [abi-gen-wrappers/src/generated-wrappers/dummy_erc20_token.ts:611](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dummy_erc20_token.ts#L611)* +*Defined in [abi-gen-wrappers/src/generated-wrappers/i_wallet.ts:69](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/i_wallet.ts#L69)* -Mints new tokens for sender +**Parameters:** + +Name | Type | +------ | ------ | +`bytecode` | string | +`abi` | [ContractAbi](#contractabi) | +`supportedProvider` | [SupportedProvider](#supportedprovider) | +`txDefaults` | `Partial` | +`logDecodeDependencies` | object | -#### awaitTransactionSuccessAsync +**Returns:** *`Promise`* + +___ -▸ **awaitTransactionSuccessAsync**(`_value`: `BigNumber`, `txData?`: `Partial`, `pollingIntervalMs?`: undefined | number, `timeoutMs?`: undefined | number): *`PromiseWithTransactionHash`* +### `Static` deployFrom0xArtifactAsync -*Defined in [abi-gen-wrappers/src/generated-wrappers/dummy_erc20_token.ts:646](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dummy_erc20_token.ts#L646)* +▸ **deployFrom0xArtifactAsync**(`artifact`: `ContractArtifact` | `SimpleContractArtifact`, `supportedProvider`: [SupportedProvider](#supportedprovider), `txDefaults`: `Partial`, `logDecodeDependencies`: object): *`Promise`* -Sends an Ethereum transaction and waits until the transaction has been successfully mined without reverting. -If the transaction was mined, but reverted, an error is thrown. +*Defined in [abi-gen-wrappers/src/generated-wrappers/i_wallet.ts:44](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/i_wallet.ts#L44)* **Parameters:** -Name | Type | Description | ------- | ------ | ------ | -`_value` | `BigNumber` | Amount of tokens to mint | -`txData?` | `Partial` | Additional data for transaction | -`pollingIntervalMs?` | undefined \| number | Interval at which to poll for success | -`timeoutMs?` | undefined \| number | - | +Name | Type | +------ | ------ | +`artifact` | `ContractArtifact` \| `SimpleContractArtifact` | +`supportedProvider` | [SupportedProvider](#supportedprovider) | +`txDefaults` | `Partial` | +`logDecodeDependencies` | object | -**Returns:** *`PromiseWithTransactionHash`* +**Returns:** *`Promise`* + +___ -A promise that resolves when the transaction is successful +### `Static` strictArgumentEncodingCheck -#### callAsync +▸ **strictArgumentEncodingCheck**(`inputAbi`: `DataItem`[], `args`: any[]): *string* -▸ **callAsync**(`_value`: `BigNumber`, `callData`: `Partial`, `defaultBlock?`: [BlockParam](#blockparam)): *`Promise`* -*Defined in [abi-gen-wrappers/src/generated-wrappers/dummy_erc20_token.ts:706](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dummy_erc20_token.ts#L706)* -Sends a read-only call to the contract method. Returns the result that would happen if one were to send an -Ethereum transaction to this method, given the current state of the blockchain. Calls do not cost gas -since they don't modify state. +Defined in base-contract/lib/src/index.d.ts:42 **Parameters:** -Name | Type | Default | Description | ------- | ------ | ------ | ------ | -`_value` | `BigNumber` | - | Amount of tokens to mint | -`callData` | `Partial` | {} | - | -`defaultBlock?` | [BlockParam](#blockparam) | - | - | +Name | Type | +------ | ------ | +`inputAbi` | `DataItem`[] | +`args` | any[] | -**Returns:** *`Promise`* +**Returns:** *string* + +
+ +# Class: OrderValidatorContract -#### estimateGasAsync -▸ **estimateGasAsync**(`_value`: `BigNumber`, `txData?`: `Partial` | undefined): *`Promise`* +## Constructors + + + +\+ **new OrderValidatorContract**(`address`: string, `supportedProvider`: [SupportedProvider](#supportedprovider), `txDefaults?`: `Partial`, `logDecodeDependencies?`: undefined | object, `deployedBytecode`: string | undefined): *[OrderValidatorContract](#class-ordervalidatorcontract)* -*Defined in [abi-gen-wrappers/src/generated-wrappers/dummy_erc20_token.ts:673](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dummy_erc20_token.ts#L673)* +*Overrides void* -Estimates the gas cost of sending an Ethereum transaction calling this method with these arguments. +*Defined in [abi-gen-wrappers/src/generated-wrappers/order_validator.ts:1338](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/order_validator.ts#L1338)* **Parameters:** -Name | Type | Description | +Name | Type | Default | ------ | ------ | ------ | -`_value` | `BigNumber` | Amount of tokens to mint | -`txData?` | `Partial` \| undefined | Additional data for transaction | +`address` | string | - | +`supportedProvider` | [SupportedProvider](#supportedprovider) | - | +`txDefaults?` | `Partial` | - | +`logDecodeDependencies?` | undefined \| object | - | +`deployedBytecode` | string \| undefined | OrderValidatorContract.deployedBytecode | -**Returns:** *`Promise`* +**Returns:** *[OrderValidatorContract](#class-ordervalidatorcontract)* -The hash of the transaction +## Properties -#### getABIDecodedReturnData +### `Optional` _deployedBytecodeIfExists -▸ **getABIDecodedReturnData**(`returnData`: string): *void* +• **_deployedBytecodeIfExists**? : *`Buffer`* -*Defined in [abi-gen-wrappers/src/generated-wrappers/dummy_erc20_token.ts:773](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dummy_erc20_token.ts#L773)* -Decode the ABI-encoded return data from a transaction -**Parameters:** +Defined in base-contract/lib/src/index.d.ts:32 -Name | Type | Description | ------- | ------ | ------ | -`returnData` | string | the data returned after transaction execution | +___ -**Returns:** *void* +### abi -An array representing the output results in order. Keynames of nested structs are preserved. +• **abi**: *[ContractAbi](#contractabi)* -#### getABIDecodedTransactionData -▸ **getABIDecodedTransactionData**(`callData`: string): *[`BigNumber`]* -*Defined in [abi-gen-wrappers/src/generated-wrappers/dummy_erc20_token.ts:761](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dummy_erc20_token.ts#L761)* +Defined in base-contract/lib/src/index.d.ts:28 -Decode the ABI-encoded transaction data into its input arguments +___ -**Parameters:** +### address -Name | Type | Description | ------- | ------ | ------ | -`callData` | string | The ABI-encoded transaction data | +• **address**: *string* -**Returns:** *[`BigNumber`]* -An array representing the input arguments in order. Keynames of nested structs are preserved. -#### getABIEncodedTransactionData +Defined in base-contract/lib/src/index.d.ts:29 -▸ **getABIEncodedTransactionData**(`_value`: `BigNumber`): *string* +___ -*Defined in [abi-gen-wrappers/src/generated-wrappers/dummy_erc20_token.ts:750](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dummy_erc20_token.ts#L750)* +Args -Returns the ABI encoded transaction data needed to send an Ethereum transaction calling this method. Before -sending the Ethereum tx, this encoded tx data can first be sent to a separate signing service or can be used -to create a 0x transaction (see protocol spec for more details). +• **constructorArgs**: *any[]* -**Parameters:** -Name | Type | Description | ------- | ------ | ------ | -`_value` | `BigNumber` | Amount of tokens to mint | -**Returns:** *string* +Defined in base-contract/lib/src/index.d.ts:31 -The ABI encoded transaction data as a string +___ -#### sendTransactionAsync +### contractName -▸ **sendTransactionAsync**(`_value`: `BigNumber`, `txData?`: `Partial` | undefined): *`Promise`* +• **contractName**: *string* -*Defined in [abi-gen-wrappers/src/generated-wrappers/dummy_erc20_token.ts:619](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dummy_erc20_token.ts#L619)* -Sends an Ethereum transaction executing this method with the supplied parameters. This is a read/write -Ethereum operation and will cost gas. -**Parameters:** +Defined in base-contract/lib/src/index.d.ts:30 -Name | Type | Description | ------- | ------ | ------ | -`_value` | `BigNumber` | Amount of tokens to mint | -`txData?` | `Partial` \| undefined | Additional data for transaction | +## Methods -**Returns:** *`Promise`* +### getABIDecodedReturnData -The hash of the transaction +▸ **getABIDecodedReturnData**<**T**>(`methodName`: string, `callData`: string): *`T`* -#### validateAndSendTransactionAsync +*Defined in [abi-gen-wrappers/src/generated-wrappers/order_validator.ts:703](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/order_validator.ts#L703)* -▸ **validateAndSendTransactionAsync**(`_value`: `BigNumber`, `txData?`: `Partial` | undefined): *`Promise`* +**Type parameters:** -*Defined in [abi-gen-wrappers/src/generated-wrappers/dummy_erc20_token.ts:692](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dummy_erc20_token.ts#L692)* +▪ **T** **Parameters:** Name | Type | ------ | ------ | -`_value` | `BigNumber` | -`txData?` | `Partial` \| undefined | +`methodName` | string | +`callData` | string | -**Returns:** *`Promise`* +**Returns:** *`T`* ___ -### name - -#### ▪ **name**: *object* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/dummy_erc20_token.ts:781](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dummy_erc20_token.ts#L781)* +### getABIDecodedTransactionData -#### callAsync +▸ **getABIDecodedTransactionData**<**T**>(`methodName`: string, `callData`: string): *`T`* -▸ **callAsync**(`callData`: `Partial`, `defaultBlock?`: [BlockParam](#blockparam)): *`Promise`* +*Defined in [abi-gen-wrappers/src/generated-wrappers/order_validator.ts:696](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/order_validator.ts#L696)* -*Defined in [abi-gen-wrappers/src/generated-wrappers/dummy_erc20_token.ts:787](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dummy_erc20_token.ts#L787)* +**Type parameters:** -Sends a read-only call to the contract method. Returns the result that would happen if one were to send an -Ethereum transaction to this method, given the current state of the blockchain. Calls do not cost gas -since they don't modify state. +▪ **T** **Parameters:** -Name | Type | Default | ------- | ------ | ------ | -`callData` | `Partial` | {} | -`defaultBlock?` | [BlockParam](#blockparam) | - | +Name | Type | +------ | ------ | +`methodName` | string | +`callData` | string | -**Returns:** *`Promise`* +**Returns:** *`T`* -#### getABIDecodedReturnData +___ -▸ **getABIDecodedReturnData**(`returnData`: string): *string* +### getBalanceAndAllowance -*Defined in [abi-gen-wrappers/src/generated-wrappers/dummy_erc20_token.ts:851](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dummy_erc20_token.ts#L851)* +▸ **getBalanceAndAllowance**(`target`: string, `assetData`: string): *`ContractFunctionObj<[BigNumber, BigNumber]>`* -Decode the ABI-encoded return data from a transaction +*Defined in [abi-gen-wrappers/src/generated-wrappers/order_validator.ts:835](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/order_validator.ts#L835)* **Parameters:** -Name | Type | Description | ------- | ------ | ------ | -`returnData` | string | the data returned after transaction execution | - -**Returns:** *string* +Name | Type | +------ | ------ | +`target` | string | +`assetData` | string | -An array representing the output results in order. Keynames of nested structs are preserved. +**Returns:** *`ContractFunctionObj<[BigNumber, BigNumber]>`* -#### getABIDecodedTransactionData +___ -▸ **getABIDecodedTransactionData**(`callData`: string): *void* +### getBalancesAndAllowances -*Defined in [abi-gen-wrappers/src/generated-wrappers/dummy_erc20_token.ts:839](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dummy_erc20_token.ts#L839)* +▸ **getBalancesAndAllowances**(`target`: string, `assetData`: string[]): *`ContractFunctionObj<[BigNumber[], BigNumber[]]>`* -Decode the ABI-encoded transaction data into its input arguments +*Defined in [abi-gen-wrappers/src/generated-wrappers/order_validator.ts:1175](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/order_validator.ts#L1175)* **Parameters:** -Name | Type | Description | ------- | ------ | ------ | -`callData` | string | The ABI-encoded transaction data | +Name | Type | +------ | ------ | +`target` | string | +`assetData` | string[] | -**Returns:** *void* +**Returns:** *`ContractFunctionObj<[BigNumber[], BigNumber[]]>`* -An array representing the input arguments in order. Keynames of nested structs are preserved. +___ -#### getABIEncodedTransactionData +### getERC721TokenOwner -▸ **getABIEncodedTransactionData**(): *string* +▸ **getERC721TokenOwner**(`token`: string, `tokenId`: `BigNumber`): *`ContractFunctionObj`* -*Defined in [abi-gen-wrappers/src/generated-wrappers/dummy_erc20_token.ts:829](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dummy_erc20_token.ts#L829)* +*Defined in [abi-gen-wrappers/src/generated-wrappers/order_validator.ts:1120](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/order_validator.ts#L1120)* -Returns the ABI encoded transaction data needed to send an Ethereum transaction calling this method. Before -sending the Ethereum tx, this encoded tx data can first be sent to a separate signing service or can be used -to create a 0x transaction (see protocol spec for more details). +**Parameters:** -**Returns:** *string* +Name | Type | +------ | ------ | +`token` | string | +`tokenId` | `BigNumber` | -The ABI encoded transaction data as a string +**Returns:** *`ContractFunctionObj`* ___ -### owner +### getFunctionSignature + +▸ **getFunctionSignature**(`methodName`: string): *string* -#### ▪ **owner**: *object* +*Defined in [abi-gen-wrappers/src/generated-wrappers/order_validator.ts:690](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/order_validator.ts#L690)* -*Defined in [abi-gen-wrappers/src/generated-wrappers/dummy_erc20_token.ts:859](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dummy_erc20_token.ts#L859)* +**Parameters:** + +Name | Type | +------ | ------ | +`methodName` | string | -#### callAsync +**Returns:** *string* + +___ -▸ **callAsync**(`callData`: `Partial`, `defaultBlock?`: [BlockParam](#blockparam)): *`Promise`* +### getOrderAndTraderInfo -*Defined in [abi-gen-wrappers/src/generated-wrappers/dummy_erc20_token.ts:865](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dummy_erc20_token.ts#L865)* +▸ **getOrderAndTraderInfo**(`order`: object, `takerAddress`: string): *`ContractFunctionObj<[object, object]>`* -Sends a read-only call to the contract method. Returns the result that would happen if one were to send an -Ethereum transaction to this method, given the current state of the blockchain. Calls do not cost gas -since they don't modify state. +*Defined in [abi-gen-wrappers/src/generated-wrappers/order_validator.ts:717](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/order_validator.ts#L717)* **Parameters:** -Name | Type | Default | ------- | ------ | ------ | -`callData` | `Partial` | {} | -`defaultBlock?` | [BlockParam](#blockparam) | - | +Name | Type | +------ | ------ | +`order` | object | +`takerAddress` | string | -**Returns:** *`Promise`* +**Returns:** *`ContractFunctionObj<[object, object]>`* -#### getABIDecodedReturnData +___ -▸ **getABIDecodedReturnData**(`returnData`: string): *string* +### getOrdersAndTradersInfo -*Defined in [abi-gen-wrappers/src/generated-wrappers/dummy_erc20_token.ts:929](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dummy_erc20_token.ts#L929)* +▸ **getOrdersAndTradersInfo**(`orders`: `Array`, `takerAddresses`: string[]): *`ContractFunctionObj<[Array, Array]>`* -Decode the ABI-encoded return data from a transaction +*Defined in [abi-gen-wrappers/src/generated-wrappers/order_validator.ts:893](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/order_validator.ts#L893)* **Parameters:** -Name | Type | Description | ------- | ------ | ------ | -`returnData` | string | the data returned after transaction execution | - -**Returns:** *string* +Name | Type | +------ | ------ | +`orders` | `Array` | +`takerAddresses` | string[] | -An array representing the output results in order. Keynames of nested structs are preserved. +**Returns:** *`ContractFunctionObj<[Array, Array]>`* -#### getABIDecodedTransactionData +___ -▸ **getABIDecodedTransactionData**(`callData`: string): *void* +### getSelector -*Defined in [abi-gen-wrappers/src/generated-wrappers/dummy_erc20_token.ts:917](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dummy_erc20_token.ts#L917)* +▸ **getSelector**(`methodName`: string): *string* -Decode the ABI-encoded transaction data into its input arguments +*Defined in [abi-gen-wrappers/src/generated-wrappers/order_validator.ts:710](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/order_validator.ts#L710)* **Parameters:** -Name | Type | Description | ------- | ------ | ------ | -`callData` | string | The ABI-encoded transaction data | +Name | Type | +------ | ------ | +`methodName` | string | -**Returns:** *void* +**Returns:** *string* -An array representing the input arguments in order. Keynames of nested structs are preserved. +___ -#### getABIEncodedTransactionData +### getTraderInfo -▸ **getABIEncodedTransactionData**(): *string* +▸ **getTraderInfo**(`order`: object, `takerAddress`: string): *`ContractFunctionObj`* -*Defined in [abi-gen-wrappers/src/generated-wrappers/dummy_erc20_token.ts:907](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dummy_erc20_token.ts#L907)* +*Defined in [abi-gen-wrappers/src/generated-wrappers/order_validator.ts:1236](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/order_validator.ts#L1236)* -Returns the ABI encoded transaction data needed to send an Ethereum transaction calling this method. Before -sending the Ethereum tx, this encoded tx data can first be sent to a separate signing service or can be used -to create a 0x transaction (see protocol spec for more details). +**Parameters:** -**Returns:** *string* +Name | Type | +------ | ------ | +`order` | object | +`takerAddress` | string | -The ABI encoded transaction data as a string +**Returns:** *`ContractFunctionObj`* ___ -### setBalance +### getTradersInfo -#### ▪ **setBalance**: *object* +▸ **getTradersInfo**(`orders`: `Array`, `takerAddresses`: string[]): *`ContractFunctionObj>`* -*Defined in [abi-gen-wrappers/src/generated-wrappers/dummy_erc20_token.ts:940](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dummy_erc20_token.ts#L940)* +*Defined in [abi-gen-wrappers/src/generated-wrappers/order_validator.ts:1011](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/order_validator.ts#L1011)* -Sets the balance of target address +**Parameters:** -#### awaitTransactionSuccessAsync +Name | Type | +------ | ------ | +`orders` | `Array` | +`takerAddresses` | string[] | -▸ **awaitTransactionSuccessAsync**(`_target`: string, `_value`: `BigNumber`, `txData?`: `Partial`, `pollingIntervalMs?`: undefined | number, `timeoutMs?`: undefined | number): *`PromiseWithTransactionHash`* +**Returns:** *`ContractFunctionObj>`* -*Defined in [abi-gen-wrappers/src/generated-wrappers/dummy_erc20_token.ts:985](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dummy_erc20_token.ts#L985)* +___ -Sends an Ethereum transaction and waits until the transaction has been successfully mined without reverting. -If the transaction was mined, but reverted, an error is thrown. +### `Static` ABI -**Parameters:** +▸ **ABI**(): *[ContractAbi](#contractabi)* -Name | Type | Description | ------- | ------ | ------ | -`_target` | string | Address or which balance will be updated | -`_value` | `BigNumber` | New balance of target address | -`txData?` | `Partial` | Additional data for transaction | -`pollingIntervalMs?` | undefined \| number | Interval at which to poll for success | -`timeoutMs?` | undefined \| number | - | +*Defined in [abi-gen-wrappers/src/generated-wrappers/order_validator.ts:127](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/order_validator.ts#L127)* -**Returns:** *`PromiseWithTransactionHash`* +**Returns:** *[ContractAbi](#contractabi)* -A promise that resolves when the transaction is successful +The contract ABI -#### callAsync +___ -▸ **callAsync**(`_target`: string, `_value`: `BigNumber`, `callData`: `Partial`, `defaultBlock?`: [BlockParam](#blockparam)): *`Promise`* +### `Static` deployAsync -*Defined in [abi-gen-wrappers/src/generated-wrappers/dummy_erc20_token.ts:1058](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dummy_erc20_token.ts#L1058)* +▸ **deployAsync**(`bytecode`: string, `abi`: [ContractAbi](#contractabi), `supportedProvider`: [SupportedProvider](#supportedprovider), `txDefaults`: `Partial`, `logDecodeDependencies`: object, `_exchange`: string, `_zrxAssetData`: string): *`Promise`* -Sends a read-only call to the contract method. Returns the result that would happen if one were to send an -Ethereum transaction to this method, given the current state of the blockchain. Calls do not cost gas -since they don't modify state. +*Defined in [abi-gen-wrappers/src/generated-wrappers/order_validator.ts:79](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/order_validator.ts#L79)* **Parameters:** -Name | Type | Default | Description | ------- | ------ | ------ | ------ | -`_target` | string | - | Address or which balance will be updated | -`_value` | `BigNumber` | - | New balance of target address | -`callData` | `Partial` | {} | - | -`defaultBlock?` | [BlockParam](#blockparam) | - | - | +Name | Type | +------ | ------ | +`bytecode` | string | +`abi` | [ContractAbi](#contractabi) | +`supportedProvider` | [SupportedProvider](#supportedprovider) | +`txDefaults` | `Partial` | +`logDecodeDependencies` | object | +`_exchange` | string | +`_zrxAssetData` | string | -**Returns:** *`Promise`* +**Returns:** *`Promise`* -#### estimateGasAsync +___ -▸ **estimateGasAsync**(`_target`: string, `_value`: `BigNumber`, `txData?`: `Partial` | undefined): *`Promise`* +### `Static` deployFrom0xArtifactAsync -*Defined in [abi-gen-wrappers/src/generated-wrappers/dummy_erc20_token.ts:1015](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dummy_erc20_token.ts#L1015)* +▸ **deployFrom0xArtifactAsync**(`artifact`: `ContractArtifact` | `SimpleContractArtifact`, `supportedProvider`: [SupportedProvider](#supportedprovider), `txDefaults`: `Partial`, `logDecodeDependencies`: object, `_exchange`: string, `_zrxAssetData`: string): *`Promise`* -Estimates the gas cost of sending an Ethereum transaction calling this method with these arguments. +*Defined in [abi-gen-wrappers/src/generated-wrappers/order_validator.ts:44](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/order_validator.ts#L44)* **Parameters:** -Name | Type | Description | ------- | ------ | ------ | -`_target` | string | Address or which balance will be updated | -`_value` | `BigNumber` | New balance of target address | -`txData?` | `Partial` \| undefined | Additional data for transaction | +Name | Type | +------ | ------ | +`artifact` | `ContractArtifact` \| `SimpleContractArtifact` | +`supportedProvider` | [SupportedProvider](#supportedprovider) | +`txDefaults` | `Partial` | +`logDecodeDependencies` | object | +`_exchange` | string | +`_zrxAssetData` | string | -**Returns:** *`Promise`* +**Returns:** *`Promise`* -The hash of the transaction +___ -#### getABIDecodedReturnData +### `Static` strictArgumentEncodingCheck -▸ **getABIDecodedReturnData**(`returnData`: string): *void* +▸ **strictArgumentEncodingCheck**(`inputAbi`: `DataItem`[], `args`: any[]): *string* -*Defined in [abi-gen-wrappers/src/generated-wrappers/dummy_erc20_token.ts:1139](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dummy_erc20_token.ts#L1139)* -Decode the ABI-encoded return data from a transaction -**Parameters:** +Defined in base-contract/lib/src/index.d.ts:42 -Name | Type | Description | ------- | ------ | ------ | -`returnData` | string | the data returned after transaction execution | +**Parameters:** -**Returns:** *void* +Name | Type | +------ | ------ | +`inputAbi` | `DataItem`[] | +`args` | any[] | -An array representing the output results in order. Keynames of nested structs are preserved. +**Returns:** *string* -#### getABIDecodedTransactionData +
-▸ **getABIDecodedTransactionData**(`callData`: string): *[string, `BigNumber`]* +# Class: WETH9Contract -*Defined in [abi-gen-wrappers/src/generated-wrappers/dummy_erc20_token.ts:1127](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dummy_erc20_token.ts#L1127)* -Decode the ABI-encoded transaction data into its input arguments +## Constructors -**Parameters:** -Name | Type | Description | ------- | ------ | ------ | -`callData` | string | The ABI-encoded transaction data | -**Returns:** *[string, `BigNumber`]* +\+ **new WETH9Contract**(`address`: string, `supportedProvider`: [SupportedProvider](#supportedprovider), `txDefaults?`: `Partial`, `logDecodeDependencies?`: undefined | object, `deployedBytecode`: string | undefined): *[WETH9Contract](#class-weth9contract)* -An array representing the input arguments in order. Keynames of nested structs are preserved. +*Overrides void* -#### getABIEncodedTransactionData +*Defined in [abi-gen-wrappers/src/generated-wrappers/weth9.ts:1381](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/weth9.ts#L1381)* -▸ **getABIEncodedTransactionData**(`_target`: string, `_value`: `BigNumber`): *string* +**Parameters:** -*Defined in [abi-gen-wrappers/src/generated-wrappers/dummy_erc20_token.ts:1112](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dummy_erc20_token.ts#L1112)* +Name | Type | Default | +------ | ------ | ------ | +`address` | string | - | +`supportedProvider` | [SupportedProvider](#supportedprovider) | - | +`txDefaults?` | `Partial` | - | +`logDecodeDependencies?` | undefined \| object | - | +`deployedBytecode` | string \| undefined | WETH9Contract.deployedBytecode | -Returns the ABI encoded transaction data needed to send an Ethereum transaction calling this method. Before -sending the Ethereum tx, this encoded tx data can first be sent to a separate signing service or can be used -to create a 0x transaction (see protocol spec for more details). +**Returns:** *[WETH9Contract](#class-weth9contract)* -**Parameters:** +## Properties -Name | Type | Description | ------- | ------ | ------ | -`_target` | string | Address or which balance will be updated | -`_value` | `BigNumber` | New balance of target address | +### `Optional` _deployedBytecodeIfExists -**Returns:** *string* +• **_deployedBytecodeIfExists**? : *`Buffer`* -The ABI encoded transaction data as a string -#### sendTransactionAsync -▸ **sendTransactionAsync**(`_target`: string, `_value`: `BigNumber`, `txData?`: `Partial` | undefined): *`Promise`* +Defined in base-contract/lib/src/index.d.ts:32 -*Defined in [abi-gen-wrappers/src/generated-wrappers/dummy_erc20_token.ts:949](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dummy_erc20_token.ts#L949)* +___ -Sends an Ethereum transaction executing this method with the supplied parameters. This is a read/write -Ethereum operation and will cost gas. +### abi -**Parameters:** +• **abi**: *[ContractAbi](#contractabi)* -Name | Type | Description | ------- | ------ | ------ | -`_target` | string | Address or which balance will be updated | -`_value` | `BigNumber` | New balance of target address | -`txData?` | `Partial` \| undefined | Additional data for transaction | -**Returns:** *`Promise`* -The hash of the transaction +Defined in base-contract/lib/src/index.d.ts:28 -#### validateAndSendTransactionAsync +___ -▸ **validateAndSendTransactionAsync**(`_target`: string, `_value`: `BigNumber`, `txData?`: `Partial` | undefined): *`Promise`* +### address -*Defined in [abi-gen-wrappers/src/generated-wrappers/dummy_erc20_token.ts:1042](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dummy_erc20_token.ts#L1042)* +• **address**: *string* -**Parameters:** -Name | Type | ------- | ------ | -`_target` | string | -`_value` | `BigNumber` | -`txData?` | `Partial` \| undefined | -**Returns:** *`Promise`* +Defined in base-contract/lib/src/index.d.ts:29 ___ -### symbol +Args -#### ▪ **symbol**: *object* +• **constructorArgs**: *any[]* -*Defined in [abi-gen-wrappers/src/generated-wrappers/dummy_erc20_token.ts:1147](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dummy_erc20_token.ts#L1147)* -#### callAsync -▸ **callAsync**(`callData`: `Partial`, `defaultBlock?`: [BlockParam](#blockparam)): *`Promise`* +Defined in base-contract/lib/src/index.d.ts:31 -*Defined in [abi-gen-wrappers/src/generated-wrappers/dummy_erc20_token.ts:1153](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dummy_erc20_token.ts#L1153)* +___ -Sends a read-only call to the contract method. Returns the result that would happen if one were to send an -Ethereum transaction to this method, given the current state of the blockchain. Calls do not cost gas -since they don't modify state. +### contractName -**Parameters:** +• **contractName**: *string* -Name | Type | Default | ------- | ------ | ------ | -`callData` | `Partial` | {} | -`defaultBlock?` | [BlockParam](#blockparam) | - | -**Returns:** *`Promise`* -#### getABIDecodedReturnData +Defined in base-contract/lib/src/index.d.ts:30 -▸ **getABIDecodedReturnData**(`returnData`: string): *string* +## Methods -*Defined in [abi-gen-wrappers/src/generated-wrappers/dummy_erc20_token.ts:1217](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dummy_erc20_token.ts#L1217)* +### allowance -Decode the ABI-encoded return data from a transaction +▸ **allowance**(`index_0`: string, `index_1`: string): *`ContractFunctionObj`* -**Parameters:** +*Defined in [abi-gen-wrappers/src/generated-wrappers/weth9.ts:1258](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/weth9.ts#L1258)* -Name | Type | Description | ------- | ------ | ------ | -`returnData` | string | the data returned after transaction execution | +**Parameters:** -**Returns:** *string* +Name | Type | +------ | ------ | +`index_0` | string | +`index_1` | string | -An array representing the output results in order. Keynames of nested structs are preserved. +**Returns:** *`ContractFunctionObj`* -#### getABIDecodedTransactionData +___ -▸ **getABIDecodedTransactionData**(`callData`: string): *void* +### approve -*Defined in [abi-gen-wrappers/src/generated-wrappers/dummy_erc20_token.ts:1205](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dummy_erc20_token.ts#L1205)* +▸ **approve**(`guy`: string, `wad`: `BigNumber`): *`ContractTxFunctionObj`* -Decode the ABI-encoded transaction data into its input arguments +*Defined in [abi-gen-wrappers/src/generated-wrappers/weth9.ts:512](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/weth9.ts#L512)* **Parameters:** -Name | Type | Description | ------- | ------ | ------ | -`callData` | string | The ABI-encoded transaction data | +Name | Type | +------ | ------ | +`guy` | string | +`wad` | `BigNumber` | -**Returns:** *void* +**Returns:** *`ContractTxFunctionObj`* -An array representing the input arguments in order. Keynames of nested structs are preserved. +___ -#### getABIEncodedTransactionData +### balanceOf -▸ **getABIEncodedTransactionData**(): *string* +▸ **balanceOf**(`index_0`: string): *`ContractFunctionObj`* -*Defined in [abi-gen-wrappers/src/generated-wrappers/dummy_erc20_token.ts:1195](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dummy_erc20_token.ts#L1195)* +*Defined in [abi-gen-wrappers/src/generated-wrappers/weth9.ts:946](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/weth9.ts#L946)* -Returns the ABI encoded transaction data needed to send an Ethereum transaction calling this method. Before -sending the Ethereum tx, this encoded tx data can first be sent to a separate signing service or can be used -to create a 0x transaction (see protocol spec for more details). +**Parameters:** -**Returns:** *string* +Name | Type | +------ | ------ | +`index_0` | string | -The ABI encoded transaction data as a string +**Returns:** *`ContractFunctionObj`* ___ -### totalSupply - -#### ▪ **totalSupply**: *object* +### decimals -*Defined in [abi-gen-wrappers/src/generated-wrappers/dummy_erc20_token.ts:1228](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dummy_erc20_token.ts#L1228)* +▸ **decimals**(): *`ContractFunctionObj`* -Query total supply of token +*Defined in [abi-gen-wrappers/src/generated-wrappers/weth9.ts:899](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/weth9.ts#L899)* -#### callAsync +**Returns:** *`ContractFunctionObj`* -▸ **callAsync**(`callData`: `Partial`, `defaultBlock?`: [BlockParam](#blockparam)): *`Promise`* +___ -*Defined in [abi-gen-wrappers/src/generated-wrappers/dummy_erc20_token.ts:1235](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dummy_erc20_token.ts#L1235)* +### deposit -Sends a read-only call to the contract method. Returns the result that would happen if one were to send an -Ethereum transaction to this method, given the current state of the blockchain. Calls do not cost gas -since they don't modify state. +▸ **deposit**(): *`ContractTxFunctionObj`* -**Parameters:** +*Defined in [abi-gen-wrappers/src/generated-wrappers/weth9.ts:1153](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/weth9.ts#L1153)* -Name | Type | Default | ------- | ------ | ------ | -`callData` | `Partial` | {} | -`defaultBlock?` | [BlockParam](#blockparam) | - | +**Returns:** *`ContractTxFunctionObj`* -**Returns:** *`Promise`* +___ -Total supply of token +### getABIDecodedReturnData -#### getABIDecodedReturnData +▸ **getABIDecodedReturnData**<**T**>(`methodName`: string, `callData`: string): *`T`* -▸ **getABIDecodedReturnData**(`returnData`: string): *`BigNumber`* +*Defined in [abi-gen-wrappers/src/generated-wrappers/weth9.ts:451](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/weth9.ts#L451)* -*Defined in [abi-gen-wrappers/src/generated-wrappers/dummy_erc20_token.ts:1299](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dummy_erc20_token.ts#L1299)* +**Type parameters:** -Decode the ABI-encoded return data from a transaction +▪ **T** **Parameters:** -Name | Type | Description | ------- | ------ | ------ | -`returnData` | string | the data returned after transaction execution | +Name | Type | +------ | ------ | +`methodName` | string | +`callData` | string | -**Returns:** *`BigNumber`* +**Returns:** *`T`* -An array representing the output results in order. Keynames of nested structs are preserved. +___ + +### getABIDecodedTransactionData -#### getABIDecodedTransactionData +▸ **getABIDecodedTransactionData**<**T**>(`methodName`: string, `callData`: string): *`T`* -▸ **getABIDecodedTransactionData**(`callData`: string): *void* +*Defined in [abi-gen-wrappers/src/generated-wrappers/weth9.ts:444](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/weth9.ts#L444)* -*Defined in [abi-gen-wrappers/src/generated-wrappers/dummy_erc20_token.ts:1287](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dummy_erc20_token.ts#L1287)* +**Type parameters:** -Decode the ABI-encoded transaction data into its input arguments +▪ **T** **Parameters:** -Name | Type | Description | ------- | ------ | ------ | -`callData` | string | The ABI-encoded transaction data | +Name | Type | +------ | ------ | +`methodName` | string | +`callData` | string | -**Returns:** *void* +**Returns:** *`T`* -An array representing the input arguments in order. Keynames of nested structs are preserved. +___ -#### getABIEncodedTransactionData +### getFunctionSignature -▸ **getABIEncodedTransactionData**(): *string* +▸ **getFunctionSignature**(`methodName`: string): *string* -*Defined in [abi-gen-wrappers/src/generated-wrappers/dummy_erc20_token.ts:1277](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dummy_erc20_token.ts#L1277)* +*Defined in [abi-gen-wrappers/src/generated-wrappers/weth9.ts:438](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/weth9.ts#L438)* -Returns the ABI encoded transaction data needed to send an Ethereum transaction calling this method. Before -sending the Ethereum tx, this encoded tx data can first be sent to a separate signing service or can be used -to create a 0x transaction (see protocol spec for more details). +**Parameters:** -**Returns:** *string* +Name | Type | +------ | ------ | +`methodName` | string | -The ABI encoded transaction data as a string +**Returns:** *string* ___ -### transfer - -#### ▪ **transfer**: *object* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/dummy_erc20_token.ts:1310](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dummy_erc20_token.ts#L1310)* +### getLogsAsync -send `value` token to `to` from `msg.sender` +▸ **getLogsAsync**<**ArgsType**>(`eventName`: [WETH9Events](#enumeration-weth9events), `blockRange`: `BlockRange`, `indexFilterValues`: `IndexedFilterValues`): *`Promise>>`* -#### awaitTransactionSuccessAsync +*Defined in [abi-gen-wrappers/src/generated-wrappers/weth9.ts:1365](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/weth9.ts#L1365)* -▸ **awaitTransactionSuccessAsync**(`_to`: string, `_value`: `BigNumber`, `txData?`: `Partial`, `pollingIntervalMs?`: undefined | number, `timeoutMs?`: undefined | number): *`PromiseWithTransactionHash`* +Gets historical logs without creating a subscription -*Defined in [abi-gen-wrappers/src/generated-wrappers/dummy_erc20_token.ts:1352](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dummy_erc20_token.ts#L1352)* +**Type parameters:** -Sends an Ethereum transaction and waits until the transaction has been successfully mined without reverting. -If the transaction was mined, but reverted, an error is thrown. +▪ **ArgsType**: *[WETH9EventArgs](#weth9eventargs)* **Parameters:** Name | Type | Description | ------ | ------ | ------ | -`_to` | string | The address of the recipient | -`_value` | `BigNumber` | The amount of token to be transferred | -`txData?` | `Partial` | Additional data for transaction | -`pollingIntervalMs?` | undefined \| number | Interval at which to poll for success | -`timeoutMs?` | undefined \| number | - | +`eventName` | [WETH9Events](#enumeration-weth9events) | The WETH9 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:** *`PromiseWithTransactionHash`* +**Returns:** *`Promise>>`* -A promise that resolves when the transaction is successful +Array of logs that match the parameters -#### callAsync +___ -▸ **callAsync**(`_to`: string, `_value`: `BigNumber`, `callData`: `Partial`, `defaultBlock?`: [BlockParam](#blockparam)): *`Promise`* +### getSelector -*Defined in [abi-gen-wrappers/src/generated-wrappers/dummy_erc20_token.ts:1419](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dummy_erc20_token.ts#L1419)* +▸ **getSelector**(`methodName`: string): *string* -Sends a read-only call to the contract method. Returns the result that would happen if one were to send an -Ethereum transaction to this method, given the current state of the blockchain. Calls do not cost gas -since they don't modify state. +*Defined in [abi-gen-wrappers/src/generated-wrappers/weth9.ts:458](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/weth9.ts#L458)* **Parameters:** -Name | Type | Default | Description | ------- | ------ | ------ | ------ | -`_to` | string | - | The address of the recipient | -`_value` | `BigNumber` | - | The amount of token to be transferred | -`callData` | `Partial` | {} | - | -`defaultBlock?` | [BlockParam](#blockparam) | - | - | - -**Returns:** *`Promise`* +Name | Type | +------ | ------ | +`methodName` | string | -True if transfer was successful +**Returns:** *string* -#### estimateGasAsync +___ -▸ **estimateGasAsync**(`_to`: string, `_value`: `BigNumber`, `txData?`: `Partial` | undefined): *`Promise`* +### name -*Defined in [abi-gen-wrappers/src/generated-wrappers/dummy_erc20_token.ts:1382](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dummy_erc20_token.ts#L1382)* +▸ **name**(): *`ContractFunctionObj`* -Estimates the gas cost of sending an Ethereum transaction calling this method with these arguments. +*Defined in [abi-gen-wrappers/src/generated-wrappers/weth9.ts:465](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/weth9.ts#L465)* -**Parameters:** +**Returns:** *`ContractFunctionObj`* -Name | Type | Description | ------- | ------ | ------ | -`_to` | string | The address of the recipient | -`_value` | `BigNumber` | The amount of token to be transferred | -`txData?` | `Partial` \| undefined | Additional data for transaction | +___ -**Returns:** *`Promise`* +### subscribe -The hash of the transaction +▸ **subscribe**<**ArgsType**>(`eventName`: [WETH9Events](#enumeration-weth9events), `indexFilterValues`: `IndexedFilterValues`, `callback`: [EventCallback](#eventcallback)‹*`ArgsType`*›, `isVerbose`: boolean, `blockPollingIntervalMs?`: undefined | number): *string* -#### getABIDecodedReturnData +*Defined in [abi-gen-wrappers/src/generated-wrappers/weth9.ts:1323](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/weth9.ts#L1323)* -▸ **getABIDecodedReturnData**(`returnData`: string): *boolean* +Subscribe to an event type emitted by the WETH9 contract. -*Defined in [abi-gen-wrappers/src/generated-wrappers/dummy_erc20_token.ts:1497](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dummy_erc20_token.ts#L1497)* +**Type parameters:** -Decode the ABI-encoded return data from a transaction +▪ **ArgsType**: *[WETH9EventArgs](#weth9eventargs)* **Parameters:** -Name | Type | Description | ------- | ------ | ------ | -`returnData` | string | the data returned after transaction execution | - -**Returns:** *boolean* - -An array representing the output results in order. Keynames of nested structs are preserved. - -#### getABIDecodedTransactionData - -▸ **getABIDecodedTransactionData**(`callData`: string): *string* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/dummy_erc20_token.ts:1485](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dummy_erc20_token.ts#L1485)* - -Decode the ABI-encoded transaction data into its input arguments +Name | Type | Default | Description | +------ | ------ | ------ | ------ | +`eventName` | [WETH9Events](#enumeration-weth9events) | - | The WETH9 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 | - | - | -**Parameters:** +**Returns:** *string* -Name | Type | Description | ------- | ------ | ------ | -`callData` | string | The ABI-encoded transaction data | +Subscription token used later to unsubscribe -**Returns:** *string* +___ -An array representing the input arguments in order. Keynames of nested structs are preserved. +### symbol -#### getABIEncodedTransactionData +▸ **symbol**(): *`ContractFunctionObj`* -▸ **getABIEncodedTransactionData**(`_to`: string, `_value`: `BigNumber`): *string* +*Defined in [abi-gen-wrappers/src/generated-wrappers/weth9.ts:996](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/weth9.ts#L996)* -*Defined in [abi-gen-wrappers/src/generated-wrappers/dummy_erc20_token.ts:1470](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dummy_erc20_token.ts#L1470)* +**Returns:** *`ContractFunctionObj`* -Returns the ABI encoded transaction data needed to send an Ethereum transaction calling this method. Before -sending the Ethereum tx, this encoded tx data can first be sent to a separate signing service or can be used -to create a 0x transaction (see protocol spec for more details). +___ -**Parameters:** +### totalSupply -Name | Type | Description | ------- | ------ | ------ | -`_to` | string | The address of the recipient | -`_value` | `BigNumber` | The amount of token to be transferred | +▸ **totalSupply**(): *`ContractFunctionObj`* -**Returns:** *string* +*Defined in [abi-gen-wrappers/src/generated-wrappers/weth9.ts:622](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/weth9.ts#L622)* -The ABI encoded transaction data as a string +**Returns:** *`ContractFunctionObj`* -#### sendTransactionAsync +___ -▸ **sendTransactionAsync**(`_to`: string, `_value`: `BigNumber`, `txData?`: `Partial` | undefined): *`Promise`* +### transfer -*Defined in [abi-gen-wrappers/src/generated-wrappers/dummy_erc20_token.ts:1319](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dummy_erc20_token.ts#L1319)* +▸ **transfer**(`dst`: string, `wad`: `BigNumber`): *`ContractTxFunctionObj`* -Sends an Ethereum transaction executing this method with the supplied parameters. This is a read/write -Ethereum operation and will cost gas. +*Defined in [abi-gen-wrappers/src/generated-wrappers/weth9.ts:1043](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/weth9.ts#L1043)* **Parameters:** -Name | Type | Description | ------- | ------ | ------ | -`_to` | string | The address of the recipient | -`_value` | `BigNumber` | The amount of token to be transferred | -`txData?` | `Partial` \| undefined | Additional data for transaction | +Name | Type | +------ | ------ | +`dst` | string | +`wad` | `BigNumber` | -**Returns:** *`Promise`* +**Returns:** *`ContractTxFunctionObj`* -The hash of the transaction +___ -#### validateAndSendTransactionAsync +### transferFrom -▸ **validateAndSendTransactionAsync**(`_to`: string, `_value`: `BigNumber`, `txData?`: `Partial` | undefined): *`Promise`* +▸ **transferFrom**(`src`: string, `dst`: string, `wad`: `BigNumber`): *`ContractTxFunctionObj`* -*Defined in [abi-gen-wrappers/src/generated-wrappers/dummy_erc20_token.ts:1402](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dummy_erc20_token.ts#L1402)* +*Defined in [abi-gen-wrappers/src/generated-wrappers/weth9.ts:669](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/weth9.ts#L669)* **Parameters:** Name | Type | ------ | ------ | -`_to` | string | -`_value` | `BigNumber` | -`txData?` | `Partial` \| undefined | +`src` | string | +`dst` | string | +`wad` | `BigNumber` | -**Returns:** *`Promise`* +**Returns:** *`ContractTxFunctionObj`* ___ -### transferFrom - -#### ▪ **transferFrom**: *object* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/dummy_erc20_token.ts:1508](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dummy_erc20_token.ts#L1508)* - -ERC20 transferFrom, modified such that an allowance of MAX_UINT represents an unlimited allowance. See https://github.com/ethereum/EIPs/issues/717 - -#### awaitTransactionSuccessAsync +### unsubscribe -▸ **awaitTransactionSuccessAsync**(`_from`: string, `_to`: string, `_value`: `BigNumber`, `txData?`: `Partial`, `pollingIntervalMs?`: undefined | number, `timeoutMs?`: undefined | number): *`PromiseWithTransactionHash`* +▸ **unsubscribe**(`subscriptionToken`: string): *void* -*Defined in [abi-gen-wrappers/src/generated-wrappers/dummy_erc20_token.ts:1558](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dummy_erc20_token.ts#L1558)* +*Defined in [abi-gen-wrappers/src/generated-wrappers/weth9.ts:1348](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/weth9.ts#L1348)* -Sends an Ethereum transaction and waits until the transaction has been successfully mined without reverting. -If the transaction was mined, but reverted, an error is thrown. +Cancel a subscription **Parameters:** Name | Type | Description | ------ | ------ | ------ | -`_from` | string | Address to transfer from. | -`_to` | string | Address to transfer to. | -`_value` | `BigNumber` | Amount to transfer. | -`txData?` | `Partial` | Additional data for transaction | -`pollingIntervalMs?` | undefined \| number | Interval at which to poll for success | -`timeoutMs?` | undefined \| number | - | +`subscriptionToken` | string | Subscription token returned by `subscribe()` | -**Returns:** *`PromiseWithTransactionHash`* +**Returns:** *void* -A promise that resolves when the transaction is successful +___ -#### callAsync +### unsubscribeAll -▸ **callAsync**(`_from`: string, `_to`: string, `_value`: `BigNumber`, `callData`: `Partial`, `defaultBlock?`: [BlockParam](#blockparam)): *`Promise`* +▸ **unsubscribeAll**(): *void* -*Defined in [abi-gen-wrappers/src/generated-wrappers/dummy_erc20_token.ts:1645](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dummy_erc20_token.ts#L1645)* +*Defined in [abi-gen-wrappers/src/generated-wrappers/weth9.ts:1354](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/weth9.ts#L1354)* -Sends a read-only call to the contract method. Returns the result that would happen if one were to send an -Ethereum transaction to this method, given the current state of the blockchain. Calls do not cost gas -since they don't modify state. +Cancels all existing subscriptions -**Parameters:** +**Returns:** *void* -Name | Type | Default | Description | ------- | ------ | ------ | ------ | -`_from` | string | - | Address to transfer from. | -`_to` | string | - | Address to transfer to. | -`_value` | `BigNumber` | - | Amount to transfer. | -`callData` | `Partial` | {} | - | -`defaultBlock?` | [BlockParam](#blockparam) | - | - | +___ -**Returns:** *`Promise`* +### withdraw -Success of transfer. +▸ **withdraw**(`wad`: `BigNumber`): *`ContractTxFunctionObj`* -#### estimateGasAsync +*Defined in [abi-gen-wrappers/src/generated-wrappers/weth9.ts:793](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/weth9.ts#L793)* -▸ **estimateGasAsync**(`_from`: string, `_to`: string, `_value`: `BigNumber`, `txData?`: `Partial` | undefined): *`Promise`* +**Parameters:** -*Defined in [abi-gen-wrappers/src/generated-wrappers/dummy_erc20_token.ts:1596](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dummy_erc20_token.ts#L1596)* +Name | Type | +------ | ------ | +`wad` | `BigNumber` | -Estimates the gas cost of sending an Ethereum transaction calling this method with these arguments. +**Returns:** *`ContractTxFunctionObj`* -**Parameters:** +___ -Name | Type | Description | ------- | ------ | ------ | -`_from` | string | Address to transfer from. | -`_to` | string | Address to transfer to. | -`_value` | `BigNumber` | Amount to transfer. | -`txData?` | `Partial` \| undefined | Additional data for transaction | +### `Static` ABI -**Returns:** *`Promise`* +▸ **ABI**(): *[ContractAbi](#contractabi)* + +*Defined in [abi-gen-wrappers/src/generated-wrappers/weth9.ts:149](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/weth9.ts#L149)* + +**Returns:** *[ContractAbi](#contractabi)* -The hash of the transaction +The contract ABI -#### getABIDecodedReturnData +___ -▸ **getABIDecodedReturnData**(`returnData`: string): *boolean* +### `Static` deployAsync -*Defined in [abi-gen-wrappers/src/generated-wrappers/dummy_erc20_token.ts:1732](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dummy_erc20_token.ts#L1732)* +▸ **deployAsync**(`bytecode`: string, `abi`: [ContractAbi](#contractabi), `supportedProvider`: [SupportedProvider](#supportedprovider), `txDefaults`: `Partial`, `logDecodeDependencies`: object): *`Promise`* -Decode the ABI-encoded return data from a transaction +*Defined in [abi-gen-wrappers/src/generated-wrappers/weth9.ts:107](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/weth9.ts#L107)* **Parameters:** -Name | Type | Description | ------- | ------ | ------ | -`returnData` | string | the data returned after transaction execution | - -**Returns:** *boolean* +Name | Type | +------ | ------ | +`bytecode` | string | +`abi` | [ContractAbi](#contractabi) | +`supportedProvider` | [SupportedProvider](#supportedprovider) | +`txDefaults` | `Partial` | +`logDecodeDependencies` | object | -An array representing the output results in order. Keynames of nested structs are preserved. +**Returns:** *`Promise`* -#### getABIDecodedTransactionData +___ -▸ **getABIDecodedTransactionData**(`callData`: string): *string* +### `Static` deployFrom0xArtifactAsync -*Defined in [abi-gen-wrappers/src/generated-wrappers/dummy_erc20_token.ts:1720](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dummy_erc20_token.ts#L1720)* +▸ **deployFrom0xArtifactAsync**(`artifact`: `ContractArtifact` | `SimpleContractArtifact`, `supportedProvider`: [SupportedProvider](#supportedprovider), `txDefaults`: `Partial`, `logDecodeDependencies`: object): *`Promise`* -Decode the ABI-encoded transaction data into its input arguments +*Defined in [abi-gen-wrappers/src/generated-wrappers/weth9.ts:82](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/weth9.ts#L82)* **Parameters:** -Name | Type | Description | ------- | ------ | ------ | -`callData` | string | The ABI-encoded transaction data | +Name | Type | +------ | ------ | +`artifact` | `ContractArtifact` \| `SimpleContractArtifact` | +`supportedProvider` | [SupportedProvider](#supportedprovider) | +`txDefaults` | `Partial` | +`logDecodeDependencies` | object | -**Returns:** *string* +**Returns:** *`Promise`* + +___ -An array representing the input arguments in order. Keynames of nested structs are preserved. +### `Static` strictArgumentEncodingCheck -#### getABIEncodedTransactionData +▸ **strictArgumentEncodingCheck**(`inputAbi`: `DataItem`[], `args`: any[]): *string* -▸ **getABIEncodedTransactionData**(`_from`: string, `_to`: string, `_value`: `BigNumber`): *string* -*Defined in [abi-gen-wrappers/src/generated-wrappers/dummy_erc20_token.ts:1703](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dummy_erc20_token.ts#L1703)* -Returns the ABI encoded transaction data needed to send an Ethereum transaction calling this method. Before -sending the Ethereum tx, this encoded tx data can first be sent to a separate signing service or can be used -to create a 0x transaction (see protocol spec for more details). +Defined in base-contract/lib/src/index.d.ts:42 **Parameters:** -Name | Type | Description | ------- | ------ | ------ | -`_from` | string | Address to transfer from. | -`_to` | string | Address to transfer to. | -`_value` | `BigNumber` | Amount to transfer. | +Name | Type | +------ | ------ | +`inputAbi` | `DataItem`[] | +`args` | any[] | **Returns:** *string* -The ABI encoded transaction data as a string +
+ +# Class: ContractWrappers + +The ContractWrappers class contains smart contract wrappers helpful when building on 0x protocol. + + +## Constructors + -#### sendTransactionAsync -▸ **sendTransactionAsync**(`_from`: string, `_to`: string, `_value`: `BigNumber`, `txData?`: `Partial` | undefined): *`Promise`* +\+ **new ContractWrappers**(`supportedProvider`: [SupportedProvider](#supportedprovider), `config`: [ContractWrappersConfig](#interface-contractwrappersconfig)): *[ContractWrappers](#class-contractwrappers)* -*Defined in [abi-gen-wrappers/src/generated-wrappers/dummy_erc20_token.ts:1518](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dummy_erc20_token.ts#L1518)* +*Defined in [contract-wrappers/src/contract_wrappers.ts:66](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/contract-wrappers/src/contract_wrappers.ts#L66)* -Sends an Ethereum transaction executing this method with the supplied parameters. This is a read/write -Ethereum operation and will cost gas. +Instantiates a new ContractWrappers instance. **Parameters:** Name | Type | Description | ------ | ------ | ------ | -`_from` | string | Address to transfer from. | -`_to` | string | Address to transfer to. | -`_value` | `BigNumber` | Amount to transfer. | -`txData?` | `Partial` \| undefined | Additional data for transaction | +`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:** *`Promise`* +**Returns:** *[ContractWrappers](#class-contractwrappers)* + +An instance of the ContractWrappers class. + +## Properties -The hash of the transaction +### contractAddresses -#### validateAndSendTransactionAsync +• **contractAddresses**: *`ContractAddresses`* -▸ **validateAndSendTransactionAsync**(`_from`: string, `_to`: string, `_value`: `BigNumber`, `txData?`: `Partial` | undefined): *`Promise`* +*Defined in [contract-wrappers/src/contract_wrappers.ts:38](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/contract-wrappers/src/contract_wrappers.ts#L38)* -*Defined in [abi-gen-wrappers/src/generated-wrappers/dummy_erc20_token.ts:1626](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dummy_erc20_token.ts#L1626)* +An index of the default contract addresses for this chain. -**Parameters:** +___ -Name | Type | ------- | ------ | -`_from` | string | -`_to` | string | -`_value` | `BigNumber` | -`txData?` | `Partial` \| undefined | +### coordinator -**Returns:** *`Promise`* +• **coordinator**: *[CoordinatorWrapper](#class-coordinatorwrapper)* + +*Defined in [contract-wrappers/src/contract_wrappers.ts:64](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/contract-wrappers/src/contract_wrappers.ts#L64)* + +An instance of the CoordinatorWrapper class containing methods for interacting with the Coordinator extension contract. ___ -### transferOwnership +### devUtils -#### ▪ **transferOwnership**: *object* +• **devUtils**: *`DevUtilsContract`* -*Defined in [abi-gen-wrappers/src/generated-wrappers/dummy_erc20_token.ts:1740](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dummy_erc20_token.ts#L1740)* +*Defined in [contract-wrappers/src/contract_wrappers.ts:60](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/contract-wrappers/src/contract_wrappers.ts#L60)* -#### awaitTransactionSuccessAsync +An instance of the DevUtilsContract class containing methods for interacting with the DevUtils smart contract. -▸ **awaitTransactionSuccessAsync**(`newOwner`: string, `txData?`: `Partial`, `pollingIntervalMs?`: undefined | number, `timeoutMs?`: undefined | number): *`PromiseWithTransactionHash`* +___ -*Defined in [abi-gen-wrappers/src/generated-wrappers/dummy_erc20_token.ts:1773](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dummy_erc20_token.ts#L1773)* +### exchange -Sends an Ethereum transaction and waits until the transaction has been successfully mined without reverting. -If the transaction was mined, but reverted, an error is thrown. +• **exchange**: *`ExchangeContract`* -**Parameters:** +*Defined in [contract-wrappers/src/contract_wrappers.ts:42](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/contract-wrappers/src/contract_wrappers.ts#L42)* -Name | Type | Description | ------- | ------ | ------ | -`newOwner` | string | - | -`txData?` | `Partial` | Additional data for transaction | -`pollingIntervalMs?` | undefined \| number | Interval at which to poll for success | -`timeoutMs?` | undefined \| number | - | +An instance of the ExchangeContract class containing methods for interacting with the 0x Exchange smart contract. -**Returns:** *`PromiseWithTransactionHash`* +___ -A promise that resolves when the transaction is successful +### forwarder -#### callAsync +• **forwarder**: *`ForwarderContract`* -▸ **callAsync**(`newOwner`: string, `callData`: `Partial`, `defaultBlock?`: [BlockParam](#blockparam)): *`Promise`* +*Defined in [contract-wrappers/src/contract_wrappers.ts:51](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/contract-wrappers/src/contract_wrappers.ts#L51)* -*Defined in [abi-gen-wrappers/src/generated-wrappers/dummy_erc20_token.ts:1828](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dummy_erc20_token.ts#L1828)* +An instance of the ForwarderContract class containing methods for interacting with any Forwarder smart contract. -Sends a read-only call to the contract method. Returns the result that would happen if one were to send an -Ethereum transaction to this method, given the current state of the blockchain. Calls do not cost gas -since they don't modify state. +___ -**Parameters:** +### orderValidator -Name | Type | Default | ------- | ------ | ------ | -`newOwner` | string | - | -`callData` | `Partial` | {} | -`defaultBlock?` | [BlockParam](#blockparam) | - | +• **orderValidator**: *`OrderValidatorContract`* -**Returns:** *`Promise`* +*Defined in [contract-wrappers/src/contract_wrappers.ts:56](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/contract-wrappers/src/contract_wrappers.ts#L56)* -#### estimateGasAsync +An instance of the OrderValidatorContract class containing methods for interacting with any OrderValidator smart contract. -▸ **estimateGasAsync**(`newOwner`: string, `txData?`: `Partial` | undefined): *`Promise`* +___ -*Defined in [abi-gen-wrappers/src/generated-wrappers/dummy_erc20_token.ts:1799](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dummy_erc20_token.ts#L1799)* +### weth9 -Estimates the gas cost of sending an Ethereum transaction calling this method with these arguments. +• **weth9**: *`WETH9Contract`* -**Parameters:** +*Defined in [contract-wrappers/src/contract_wrappers.ts:47](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/contract-wrappers/src/contract_wrappers.ts#L47)* -Name | Type | Description | ------- | ------ | ------ | -`newOwner` | string | - | -`txData?` | `Partial` \| undefined | Additional data for transaction | +An instance of the WETH9Contract class containing methods for interacting with the +WETH9 smart contract. -**Returns:** *`Promise`* +## Methods -The hash of the transaction +### getAbiDecoder -#### getABIDecodedReturnData +▸ **getAbiDecoder**(): *`AbiDecoder`* -▸ **getABIDecodedReturnData**(`returnData`: string): *void* +*Defined in [contract-wrappers/src/contract_wrappers.ts:130](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/contract-wrappers/src/contract_wrappers.ts#L130)* -*Defined in [abi-gen-wrappers/src/generated-wrappers/dummy_erc20_token.ts:1896](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dummy_erc20_token.ts#L1896)* +Get the abi decoder instance currently used by contract-wrappers -Decode the ABI-encoded return data from a transaction +**Returns:** *`AbiDecoder`* -**Parameters:** +AbiDecoder instance -Name | Type | Description | ------- | ------ | ------ | -`returnData` | string | the data returned after transaction execution | +___ -**Returns:** *void* +### getProvider -An array representing the output results in order. Keynames of nested structs are preserved. +▸ **getProvider**(): *[SupportedProvider](#supportedprovider)* -#### getABIDecodedTransactionData +*Defined in [contract-wrappers/src/contract_wrappers.ts:123](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/contract-wrappers/src/contract_wrappers.ts#L123)* -▸ **getABIDecodedTransactionData**(`callData`: string): *[string]* +Get the provider instance currently used by contract-wrappers -*Defined in [abi-gen-wrappers/src/generated-wrappers/dummy_erc20_token.ts:1884](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dummy_erc20_token.ts#L1884)* +**Returns:** *[SupportedProvider](#supportedprovider)* -Decode the ABI-encoded transaction data into its input arguments +Web3 provider instance -**Parameters:** +___ -Name | Type | Description | ------- | ------ | ------ | -`callData` | string | The ABI-encoded transaction data | +### unsubscribeAll -**Returns:** *[string]* +▸ **unsubscribeAll**(): *void* -An array representing the input arguments in order. Keynames of nested structs are preserved. +*Defined in [contract-wrappers/src/contract_wrappers.ts:115](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/contract-wrappers/src/contract_wrappers.ts#L115)* -#### getABIEncodedTransactionData +Unsubscribes from all subscriptions for all contracts. -▸ **getABIEncodedTransactionData**(`newOwner`: string): *string* +**Returns:** *void* -*Defined in [abi-gen-wrappers/src/generated-wrappers/dummy_erc20_token.ts:1871](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dummy_erc20_token.ts#L1871)* +
-Returns the ABI encoded transaction data needed to send an Ethereum transaction calling this method. Before -sending the Ethereum tx, this encoded tx data can first be sent to a separate signing service or can be used -to create a 0x transaction (see protocol spec for more details). +# Class: CoordinatorWrapper -**Parameters:** +This class includes all the functionality related to filling or cancelling orders through +the 0x V2 Coordinator extension contract. -Name | Type | ------- | ------ | -`newOwner` | string | -**Returns:** *string* +## Constructors -The ABI encoded transaction data as a string -#### sendTransactionAsync -▸ **sendTransactionAsync**(`newOwner`: string, `txData?`: `Partial` | undefined): *`Promise`* +\+ **new CoordinatorWrapper**(`provider`: [SupportedProvider](#supportedprovider), `chainId`: number, `address?`: undefined | string, `exchangeAddress?`: undefined | string, `registryAddress?`: undefined | string): *[CoordinatorWrapper](#class-coordinatorwrapper)* -*Defined in [abi-gen-wrappers/src/generated-wrappers/dummy_erc20_token.ts:1747](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dummy_erc20_token.ts#L1747)* +*Defined in [contract-wrappers/src/coordinator_wrapper.ts:42](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/contract-wrappers/src/coordinator_wrapper.ts#L42)* -Sends an Ethereum transaction executing this method with the supplied parameters. This is a read/write -Ethereum operation and will cost gas. +Instantiate CoordinatorWrapper **Parameters:** Name | Type | Description | ------ | ------ | ------ | -`newOwner` | string | - | -`txData?` | `Partial` \| undefined | Additional data for transaction | - -**Returns:** *`Promise`* - -The hash of the transaction - -#### validateAndSendTransactionAsync - -▸ **validateAndSendTransactionAsync**(`newOwner`: string, `txData?`: `Partial` | undefined): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/dummy_erc20_token.ts:1818](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dummy_erc20_token.ts#L1818)* - -**Parameters:** - -Name | Type | ------- | ------ | -`newOwner` | string | -`txData?` | `Partial` \| undefined | - -**Returns:** *`Promise`* - -
- -# Class: DummyERC721TokenContract - - -## Constructors - - - -\+ **new DummyERC721TokenContract**(`address`: string, `supportedProvider`: [SupportedProvider](#supportedprovider), `txDefaults?`: `Partial`, `logDecodeDependencies?`: undefined | object, `deployedBytecode`: string | undefined): *[DummyERC721TokenContract](#class-dummyerc721tokencontract)* - -*Overrides void* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/dummy_erc721_token.ts:2917](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dummy_erc721_token.ts#L2917)* - -**Parameters:** - -Name | Type | Default | ------- | ------ | ------ | -`address` | string | - | -`supportedProvider` | [SupportedProvider](#supportedprovider) | - | -`txDefaults?` | `Partial` | - | -`logDecodeDependencies?` | undefined \| object | - | -`deployedBytecode` | string \| undefined | DummyERC721TokenContract.deployedBytecode | +`provider` | [SupportedProvider](#supportedprovider) | - | +`chainId` | number | Desired chainId. | +`address?` | undefined \| string | The address of the Coordinator contract. If undefined, will default to the known address corresponding to the chainId. | +`exchangeAddress?` | undefined \| string | The address of the Exchange contract. If undefined, will default to the known address corresponding to the chainId. | +`registryAddress?` | undefined \| string | The address of the CoordinatorRegistry contract. If undefined, will default to the known address corresponding to the chainId. | -**Returns:** *[DummyERC721TokenContract](#class-dummyerc721tokencontract)* +**Returns:** *[CoordinatorWrapper](#class-coordinatorwrapper)* ## Properties -#### abi - -• **abi**: *[ContractAbi](#contractabi)* - +### abi +• **abi**: *[ContractAbi](#contractabi)* = Coordinator.compilerOutput.abi -Defined in base-contract/lib/src/index.d.ts:27 +*Defined in [contract-wrappers/src/coordinator_wrapper.ts:33](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/contract-wrappers/src/coordinator_wrapper.ts#L33)* ___ @@ -6926,21909 +6329,1631 @@ ___ • **address**: *string* - - -Defined in base-contract/lib/src/index.d.ts:28 +*Defined in [contract-wrappers/src/coordinator_wrapper.ts:35](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/contract-wrappers/src/coordinator_wrapper.ts#L35)* ___ -Args - -• **constructorArgs**: *any[]* - +### chainId +• **chainId**: *number* -Defined in base-contract/lib/src/index.d.ts:30 +*Defined in [contract-wrappers/src/coordinator_wrapper.ts:34](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/contract-wrappers/src/coordinator_wrapper.ts#L34)* ___ -### contractName - -• **contractName**: *string* - +### exchangeAddress +• **exchangeAddress**: *string* -Defined in base-contract/lib/src/index.d.ts:29 +*Defined in [contract-wrappers/src/coordinator_wrapper.ts:36](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/contract-wrappers/src/coordinator_wrapper.ts#L36)* ___ -### `Static` deployedBytecode +### registryAddress -▪ **deployedBytecode**: *string* = "0x608060405234801561001057600080fd5b50600436106100f55760003560e01c806370a0823111610097578063a22cb46511610066578063a22cb46514610362578063b88d4fde1461039d578063e985e9c51461043a578063f2fde38b14610489576100f5565b806370a08231146102d45780638da5cb5b1461031957806395d89b41146103215780639dc29fac14610329576100f5565b806323b872dd116100d357806323b872dd146101f857806340c10f191461023b57806342842e0e146102745780636352211e146102b7576100f5565b806306fdde03146100fa578063081812fc14610177578063095ea7b3146101bd575b600080fd5b6101026104bc565b6040805160208082528351818301528351919283929083019185019080838360005b8381101561013c578181015183820152602001610124565b50505050905090810190601f1680156101695780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6101946004803603602081101561018d57600080fd5b5035610568565b6040805173ffffffffffffffffffffffffffffffffffffffff9092168252519081900360200190f35b6101f6600480360360408110156101d357600080fd5b5073ffffffffffffffffffffffffffffffffffffffff8135169060200135610590565b005b6101f66004803603606081101561020e57600080fd5b5073ffffffffffffffffffffffffffffffffffffffff8135811691602081013590911690604001356106b2565b6101f66004803603604081101561025157600080fd5b5073ffffffffffffffffffffffffffffffffffffffff8135169060200135610a20565b6101f66004803603606081101561028a57600080fd5b5073ffffffffffffffffffffffffffffffffffffffff813581169160208101359091169060400135610a2e565b610194600480360360208110156102cd57600080fd5b5035610bc8565b610307600480360360208110156102ea57600080fd5b503573ffffffffffffffffffffffffffffffffffffffff16610c5f565b60408051918252519081900360200190f35b610194610d0c565b610102610d28565b6101f66004803603604081101561033f57600080fd5b5073ffffffffffffffffffffffffffffffffffffffff8135169060200135610da1565b6101f66004803603604081101561037857600080fd5b5073ffffffffffffffffffffffffffffffffffffffff81351690602001351515610db3565b6101f6600480360360808110156103b357600080fd5b73ffffffffffffffffffffffffffffffffffffffff8235811692602081013590911691604082013591908101906080810160608201356401000000008111156103fb57600080fd5b82018360208201111561040d57600080fd5b8035906020019184600183028401116401000000008311171561042f57600080fd5b509092509050610e4c565b6104756004803603604081101561045057600080fd5b5073ffffffffffffffffffffffffffffffffffffffff81358116916020013516611017565b604080519115158252519081900360200190f35b6101f66004803603602081101561049f57600080fd5b503573ffffffffffffffffffffffffffffffffffffffff16611052565b6005805460408051602060026001851615610100027fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0190941693909304601f810184900484028201840190925281815292918301828280156105605780601f1061053557610100808354040283529160200191610560565b820191906000526020600020905b81548152906001019060200180831161054357829003601f168201915b505050505081565b60009081526002602052604090205473ffffffffffffffffffffffffffffffffffffffff1690565b600061059b82610bc8565b90503373ffffffffffffffffffffffffffffffffffffffff821614806105c657506105c68133611017565b61063157604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601560248201527f4552433732315f494e56414c49445f53454e4445520000000000000000000000604482015290519081900360640190fd5b60008281526002602052604080822080547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff87811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b73ffffffffffffffffffffffffffffffffffffffff821661073457604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601660248201527f4552433732315f5a45524f5f544f5f4144445245535300000000000000000000604482015290519081900360640190fd5b600061073f82610bc8565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff16146107db57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601560248201527f4552433732315f4f574e45525f4d49534d415443480000000000000000000000604482015290519081900360640190fd5b3360006107e784610568565b90508273ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16148061082857506108288383611017565b8061085e57508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16145b6108c957604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601660248201527f4552433732315f494e56414c49445f5350454e44455200000000000000000000604482015290519081900360640190fd5b73ffffffffffffffffffffffffffffffffffffffff81161561091a57600084815260026020526040902080547fffffffffffffffffffffffff00000000000000000000000000000000000000001690555b600084815260016020818152604080842080547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff8b8116919091179091558a168452600390915290912054610984916110ce565b73ffffffffffffffffffffffffffffffffffffffff80881660009081526003602052604080822093909355908716815220546109c19060016110ed565b73ffffffffffffffffffffffffffffffffffffffff808716600081815260036020526040808220949094559251879391928a16917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050505050565b610a2a8282611110565b5050565b610a398383836106b2565b813b8015610bc257604080517f150b7a0200000000000000000000000000000000000000000000000000000000815233600482015273ffffffffffffffffffffffffffffffffffffffff8681166024830152604482018590526080606483015260006084830181905292519086169163150b7a029160c480830192602092919082900301818787803b158015610ace57600080fd5b505af1158015610ae2573d6000803e3d6000fd5b505050506040513d6020811015610af857600080fd5b505160405190915080602f61166c8239602f01905060405180910390207bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614610bc057604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601760248201527f4552433732315f494e56414c49445f53454c4543544f52000000000000000000604482015290519081900360640190fd5b505b50505050565b60008181526001602052604081205473ffffffffffffffffffffffffffffffffffffffff1680610c5957604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601160248201527f4552433732315f5a45524f5f4f574e4552000000000000000000000000000000604482015290519081900360640190fd5b92915050565b600073ffffffffffffffffffffffffffffffffffffffff8216610ce357604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601160248201527f4552433732315f5a45524f5f4f574e4552000000000000000000000000000000604482015290519081900360640190fd5b5073ffffffffffffffffffffffffffffffffffffffff1660009081526003602052604090205490565b60005473ffffffffffffffffffffffffffffffffffffffff1681565b6006805460408051602060026001851615610100027fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0190941693909304601f810184900484028201840190925281815292918301828280156105605780601f1061053557610100808354040283529160200191610560565b610da96112e3565b610a2a828261132c565b33600081815260046020908152604080832073ffffffffffffffffffffffffffffffffffffffff87168085529083529281902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0016861515908117909155815190815290519293927f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31929181900390910190a35050565b610e578585856106b2565b833b801561100f576040517f150b7a02000000000000000000000000000000000000000000000000000000008152336004820181815273ffffffffffffffffffffffffffffffffffffffff89811660248501526044840188905260806064850190815260848501879052600094918a169363150b7a029390928c928b928b928b929060a401848480828437600081840152601f19601f8201169050808301925050509650505050505050602060405180830381600087803b158015610f1b57600080fd5b505af1158015610f2f573d6000803e3d6000fd5b505050506040513d6020811015610f4557600080fd5b505160405190915080602f61166c8239602f01905060405180910390207bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161461100d57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601760248201527f4552433732315f494e56414c49445f53454c4543544f52000000000000000000604482015290519081900360640190fd5b505b505050505050565b73ffffffffffffffffffffffffffffffffffffffff918216600090815260046020908152604080832093909416825291909152205460ff1690565b61105a6112e3565b73ffffffffffffffffffffffffffffffffffffffff811661108a57611085611080611501565b611538565b6110cb565b600080547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff83161790555b50565b6000828211156110e7576110e761108060028585611540565b50900390565b6000828201838110156111095761110961108060008686611540565b9392505050565b73ffffffffffffffffffffffffffffffffffffffff821661119257604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601660248201527f4552433732315f5a45524f5f544f5f4144445245535300000000000000000000604482015290519081900360640190fd5b60008181526001602052604090205473ffffffffffffffffffffffffffffffffffffffff16801561122457604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601b60248201527f4552433732315f4f574e45525f414c52454144595f4558495354530000000000604482015290519081900360640190fd5b600082815260016020818152604080842080547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff8916908117909155845260039091529091205461128a916110ed565b73ffffffffffffffffffffffffffffffffffffffff84166000818152600360205260408082209390935591518492907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a4505050565b60005473ffffffffffffffffffffffffffffffffffffffff16331461132a5760005461132a9061108090339073ffffffffffffffffffffffffffffffffffffffff166115df565b565b73ffffffffffffffffffffffffffffffffffffffff82166113ae57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601960248201527f4552433732315f5a45524f5f4f574e45525f4144445245535300000000000000604482015290519081900360640190fd5b60008181526001602052604090205473ffffffffffffffffffffffffffffffffffffffff908116908316811461144557604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601560248201527f4552433732315f4f574e45525f4d49534d415443480000000000000000000000604482015290519081900360640190fd5b600082815260016020818152604080842080547fffffffffffffffffffffffff000000000000000000000000000000000000000016905573ffffffffffffffffffffffffffffffffffffffff871684526003909152909120546114a7916110ce565b73ffffffffffffffffffffffffffffffffffffffff8416600081815260036020526040808220939093559151849291907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a4505050565b60408051808201909152600481527fe69edc3e00000000000000000000000000000000000000000000000000000000602082015290565b805160208201fd5b606063e946c1bb60e01b8484846040516024018084600381111561156057fe5b60ff1681526020018381526020018281526020019350505050604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff838183161783525050505090509392505050565b6040805173ffffffffffffffffffffffffffffffffffffffff808516602483015283166044808301919091528251808303909101815260649091019091526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167f1de45ad1000000000000000000000000000000000000000000000000000000001790529291505056fe6f6e455243373231526563656976656428616464726573732c616464726573732c75696e743235362c627974657329a265627a7a723158207bb3c4b1d40aa051fbb8e4f8230bb310013e75ca9fa97c528018b4c4aba3b92564736f6c634300050c0032" +• **registryAddress**: *string* -*Defined in [abi-gen-wrappers/src/generated-wrappers/dummy_erc721_token.ts:61](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dummy_erc721_token.ts#L61)* +*Defined in [contract-wrappers/src/coordinator_wrapper.ts:37](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/contract-wrappers/src/coordinator_wrapper.ts#L37)* ## Methods -### evmExecAsync - -▸ **evmExecAsync**(`input`: `Buffer`): *`Promise`* - - - -Defined in base-contract/lib/src/index.d.ts:42 - -**Parameters:** - -Name | Type | ------- | ------ | -`input` | `Buffer` | - -**Returns:** *`Promise`* - -___ - -### getLogsAsync - -▸ **getLogsAsync**<**ArgsType**>(`eventName`: [DummyERC721TokenEvents](#enumeration-dummyerc721tokenevents), `blockRange`: `BlockRange`, `indexFilterValues`: `IndexedFilterValues`): *`Promise>>`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/dummy_erc721_token.ts:2901](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dummy_erc721_token.ts#L2901)* +### assertValidCoordinatorApprovalsOrThrowAsync -Gets historical logs without creating a subscription +▸ **assertValidCoordinatorApprovalsOrThrowAsync**(`transaction`: `ZeroExTransaction`, `txOrigin`: string, `transactionSignature`: string, `approvalExpirationTimeSeconds`: `BigNumber`[], `approvalSignatures`: string[]): *`Promise`* -**Type parameters:** +*Defined in [contract-wrappers/src/coordinator_wrapper.ts:507](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/contract-wrappers/src/coordinator_wrapper.ts#L507)* -▪ **ArgsType**: *[DummyERC721TokenEventArgs](#dummyerc721tokeneventargs)* +Validates that the 0x transaction has been approved by all of the feeRecipients that correspond to each order in the transaction's Exchange calldata. +Throws an error if the transaction approvals are not valid. Will not detect failures that would occur when the transaction is executed on the Exchange contract. **Parameters:** Name | Type | Description | ------ | ------ | ------ | -`eventName` | [DummyERC721TokenEvents](#enumeration-dummyerc721tokenevents) | The DummyERC721Token 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>>`* +`transaction` | `ZeroExTransaction` | 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. | +`approvalExpirationTimeSeconds` | `BigNumber`[] | Array of expiration times in seconds for which each corresponding approval signature expires. | +`approvalSignatures` | string[] | Array of signatures that correspond to the feeRecipients of each order in the transaction's Exchange calldata. | -Array of logs that match the parameters +**Returns:** *`Promise`* ___ -### subscribe - -▸ **subscribe**<**ArgsType**>(`eventName`: [DummyERC721TokenEvents](#enumeration-dummyerc721tokenevents), `indexFilterValues`: `IndexedFilterValues`, `callback`: [EventCallback](#eventcallback)‹*`ArgsType`*›, `isVerbose`: boolean, `blockPollingIntervalMs?`: undefined | number): *string* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/dummy_erc721_token.ts:2859](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dummy_erc721_token.ts#L2859)* +### batchFillOrKillOrdersAsync -Subscribe to an event type emitted by the DummyERC721Token contract. +▸ **batchFillOrKillOrdersAsync**(`signedOrders`: `SignedOrder`[], `takerAssetFillAmounts`: `BigNumber`[], `takerAddress`: string, `orderTransactionOpts`: [OrderTransactionOpts](#interface-ordertransactionopts)): *`Promise`* -**Type parameters:** +*Defined in [contract-wrappers/src/coordinator_wrapper.ts:228](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/contract-wrappers/src/coordinator_wrapper.ts#L228)* -▪ **ArgsType**: *[DummyERC721TokenEventArgs](#dummyerc721tokeneventargs)* +Batch version of fillOrKillOrderAsync. Executes multiple fills atomically in a single transaction. **Parameters:** Name | Type | Default | Description | ------ | ------ | ------ | ------ | -`eventName` | [DummyERC721TokenEvents](#enumeration-dummyerc721tokenevents) | - | The DummyERC721Token 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 - -___ - -### unsubscribe - -▸ **unsubscribe**(`subscriptionToken`: string): *void* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/dummy_erc721_token.ts:2884](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dummy_erc721_token.ts#L2884)* - -Cancel a subscription - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`subscriptionToken` | string | Subscription token returned by `subscribe()` | - -**Returns:** *void* - -___ - -### unsubscribeAll - -▸ **unsubscribeAll**(): *void* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/dummy_erc721_token.ts:2890](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dummy_erc721_token.ts#L2890)* - -Cancels all existing subscriptions - -**Returns:** *void* - -___ - -### `Static` ABI - -▸ **ABI**(): *[ContractAbi](#contractabi)* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/dummy_erc721_token.ts:2482](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dummy_erc721_token.ts#L2482)* - -**Returns:** *[ContractAbi](#contractabi)* - -The contract ABI - -___ - -### `Static` deployAsync - -▸ **deployAsync**(`bytecode`: string, `abi`: [ContractAbi](#contractabi), `supportedProvider`: [SupportedProvider](#supportedprovider), `txDefaults`: `Partial`, `logDecodeDependencies`: object, `_name`: string, `_symbol`: string): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/dummy_erc721_token.ts:2434](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dummy_erc721_token.ts#L2434)* - -**Parameters:** - -Name | Type | ------- | ------ | -`bytecode` | string | -`abi` | [ContractAbi](#contractabi) | -`supportedProvider` | [SupportedProvider](#supportedprovider) | -`txDefaults` | `Partial` | -`logDecodeDependencies` | object | -`_name` | string | -`_symbol` | string | - -**Returns:** *`Promise`* - -___ - -### `Static` deployFrom0xArtifactAsync - -▸ **deployFrom0xArtifactAsync**(`artifact`: `ContractArtifact` | `SimpleContractArtifact`, `supportedProvider`: [SupportedProvider](#supportedprovider), `txDefaults`: `Partial`, `logDecodeDependencies`: object, `_name`: string, `_symbol`: string): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/dummy_erc721_token.ts:2399](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dummy_erc721_token.ts#L2399)* - -**Parameters:** +`signedOrders` | `SignedOrder`[] | - | An array of signed orders to fill. | +`takerAssetFillAmounts` | `BigNumber`[] | - | The amounts of the orders (in taker asset baseUnits) that you wish to fill. | +`takerAddress` | string | - | The user Ethereum address who would like to fill these orders. Must be available via the supplied Provider provided at instantiation. | +`orderTransactionOpts` | [OrderTransactionOpts](#interface-ordertransactionopts) | { shouldValidate: true } | Optional arguments this method accepts. | -Name | Type | ------- | ------ | -`artifact` | `ContractArtifact` \| `SimpleContractArtifact` | -`supportedProvider` | [SupportedProvider](#supportedprovider) | -`txDefaults` | `Partial` | -`logDecodeDependencies` | object | -`_name` | string | -`_symbol` | string | +**Returns:** *`Promise`* -**Returns:** *`Promise`* +Transaction hash. ___ -### `Static` strictArgumentEncodingCheck - -▸ **strictArgumentEncodingCheck**(`inputAbi`: `DataItem`[], `args`: any[]): *string* - - - -Defined in base-contract/lib/src/index.d.ts:41 - -**Parameters:** - -Name | Type | ------- | ------ | -`inputAbi` | `DataItem`[] | -`args` | any[] | - -**Returns:** *string* - -## Object literals - -### approve - -#### ▪ **approve**: *object* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/dummy_erc721_token.ts:68](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dummy_erc721_token.ts#L68)* - -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. - -#### awaitTransactionSuccessAsync - -▸ **awaitTransactionSuccessAsync**(`_approved`: string, `_tokenId`: `BigNumber`, `txData?`: `Partial`, `pollingIntervalMs?`: undefined | number, `timeoutMs?`: undefined | number): *`PromiseWithTransactionHash`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/dummy_erc721_token.ts:113](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dummy_erc721_token.ts#L113)* - -Sends an Ethereum transaction and waits until the transaction has been successfully mined without reverting. -If the transaction was mined, but reverted, an error is thrown. - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`_approved` | string | The new approved NFT controller | -`_tokenId` | `BigNumber` | The NFT to approve | -`txData?` | `Partial` | Additional data for transaction | -`pollingIntervalMs?` | undefined \| number | Interval at which to poll for success | -`timeoutMs?` | undefined \| number | - | - -**Returns:** *`PromiseWithTransactionHash`* - -A promise that resolves when the transaction is successful - -#### callAsync +### batchFillOrdersAsync -▸ **callAsync**(`_approved`: string, `_tokenId`: `BigNumber`, `callData`: `Partial`, `defaultBlock?`: [BlockParam](#blockparam)): *`Promise`* +▸ **batchFillOrdersAsync**(`signedOrders`: `SignedOrder`[], `takerAssetFillAmounts`: `BigNumber`[], `takerAddress`: string, `orderTransactionOpts`: [OrderTransactionOpts](#interface-ordertransactionopts)): *`Promise`* -*Defined in [abi-gen-wrappers/src/generated-wrappers/dummy_erc721_token.ts:186](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dummy_erc721_token.ts#L186)* +*Defined in [contract-wrappers/src/coordinator_wrapper.ts:164](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/contract-wrappers/src/coordinator_wrapper.ts#L164)* -Sends a read-only call to the contract method. Returns the result that would happen if one were to send an -Ethereum transaction to this method, given the current state of the blockchain. Calls do not cost gas -since they don't modify state. +Batch version of fillOrderAsync. Executes multiple fills atomically in a single transaction. +Under-the-hood, this method uses the `feeRecipientAddress`s of the orders to looks up the coordinator server endpoints +registered in the coordinator registry contract. It requests a signature from each coordinator server before +submitting the orders and signatures as a 0x transaction to the coordinator extension contract, which validates the +signatures and then fills the order through the Exchange contract. +If any `feeRecipientAddress` in the batch is not registered to a coordinator server, the whole batch fails. **Parameters:** Name | Type | Default | Description | ------ | ------ | ------ | ------ | -`_approved` | string | - | The new approved NFT controller | -`_tokenId` | `BigNumber` | - | The NFT to approve | -`callData` | `Partial` | {} | - | -`defaultBlock?` | [BlockParam](#blockparam) | - | - | - -**Returns:** *`Promise`* - -#### estimateGasAsync - -▸ **estimateGasAsync**(`_approved`: string, `_tokenId`: `BigNumber`, `txData?`: `Partial` | undefined): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/dummy_erc721_token.ts:143](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dummy_erc721_token.ts#L143)* - -Estimates the gas cost of sending an Ethereum transaction calling this method with these arguments. - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`_approved` | string | The new approved NFT controller | -`_tokenId` | `BigNumber` | The NFT to approve | -`txData?` | `Partial` \| undefined | Additional data for transaction | - -**Returns:** *`Promise`* - -The hash of the transaction - -#### getABIDecodedReturnData - -▸ **getABIDecodedReturnData**(`returnData`: string): *void* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/dummy_erc721_token.ts:267](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dummy_erc721_token.ts#L267)* - -Decode the ABI-encoded return data from a transaction - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`returnData` | string | the data returned after transaction execution | - -**Returns:** *void* - -An array representing the output results in order. Keynames of nested structs are preserved. - -#### getABIDecodedTransactionData - -▸ **getABIDecodedTransactionData**(`callData`: string): *[string, `BigNumber`]* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/dummy_erc721_token.ts:255](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dummy_erc721_token.ts#L255)* - -Decode the ABI-encoded transaction data into its input arguments - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`callData` | string | The ABI-encoded transaction data | - -**Returns:** *[string, `BigNumber`]* - -An array representing the input arguments in order. Keynames of nested structs are preserved. - -#### getABIEncodedTransactionData - -▸ **getABIEncodedTransactionData**(`_approved`: string, `_tokenId`: `BigNumber`): *string* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/dummy_erc721_token.ts:240](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dummy_erc721_token.ts#L240)* - -Returns the ABI encoded transaction data needed to send an Ethereum transaction calling this method. Before -sending the Ethereum tx, this encoded tx data can first be sent to a separate signing service or can be used -to create a 0x transaction (see protocol spec for more details). - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`_approved` | string | The new approved NFT controller | -`_tokenId` | `BigNumber` | The NFT to approve | - -**Returns:** *string* - -The ABI encoded transaction data as a string - -#### sendTransactionAsync - -▸ **sendTransactionAsync**(`_approved`: string, `_tokenId`: `BigNumber`, `txData?`: `Partial` | undefined): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/dummy_erc721_token.ts:77](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dummy_erc721_token.ts#L77)* - -Sends an Ethereum transaction executing this method with the supplied parameters. This is a read/write -Ethereum operation and will cost gas. - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`_approved` | string | The new approved NFT controller | -`_tokenId` | `BigNumber` | The NFT to approve | -`txData?` | `Partial` \| undefined | Additional data for transaction | - -**Returns:** *`Promise`* - -The hash of the transaction - -#### validateAndSendTransactionAsync - -▸ **validateAndSendTransactionAsync**(`_approved`: string, `_tokenId`: `BigNumber`, `txData?`: `Partial` | undefined): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/dummy_erc721_token.ts:170](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dummy_erc721_token.ts#L170)* - -**Parameters:** - -Name | Type | ------- | ------ | -`_approved` | string | -`_tokenId` | `BigNumber` | -`txData?` | `Partial` \| undefined | - -**Returns:** *`Promise`* - -___ - -### balanceOf - -#### ▪ **balanceOf**: *object* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/dummy_erc721_token.ts:279](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dummy_erc721_token.ts#L279)* - -NFTs assigned to the zero address are considered invalid, and this -function throws for queries about the zero address. - -#### callAsync - -▸ **callAsync**(`_owner`: string, `callData`: `Partial`, `defaultBlock?`: [BlockParam](#blockparam)): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/dummy_erc721_token.ts:287](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dummy_erc721_token.ts#L287)* - -Sends a read-only call to the contract method. Returns the result that would happen if one were to send an -Ethereum transaction to this method, given the current state of the blockchain. Calls do not cost gas -since they don't modify state. - -**Parameters:** - -Name | Type | Default | Description | ------- | ------ | ------ | ------ | -`_owner` | string | - | An address for whom to query the balance | -`callData` | `Partial` | {} | - | -`defaultBlock?` | [BlockParam](#blockparam) | - | - | - -**Returns:** *`Promise`* - -The number of NFTs owned by `_owner`, possibly zero - -#### getABIDecodedReturnData - -▸ **getABIDecodedReturnData**(`returnData`: string): *`BigNumber`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/dummy_erc721_token.ts:358](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dummy_erc721_token.ts#L358)* - -Decode the ABI-encoded return data from a transaction - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`returnData` | string | the data returned after transaction execution | - -**Returns:** *`BigNumber`* - -An array representing the output results in order. Keynames of nested structs are preserved. - -#### getABIDecodedTransactionData - -▸ **getABIDecodedTransactionData**(`callData`: string): *string* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/dummy_erc721_token.ts:346](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dummy_erc721_token.ts#L346)* - -Decode the ABI-encoded transaction data into its input arguments - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`callData` | string | The ABI-encoded transaction data | - -**Returns:** *string* - -An array representing the input arguments in order. Keynames of nested structs are preserved. - -#### getABIEncodedTransactionData - -▸ **getABIEncodedTransactionData**(`_owner`: string): *string* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/dummy_erc721_token.ts:335](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dummy_erc721_token.ts#L335)* - -Returns the ABI encoded transaction data needed to send an Ethereum transaction calling this method. Before -sending the Ethereum tx, this encoded tx data can first be sent to a separate signing service or can be used -to create a 0x transaction (see protocol spec for more details). - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`_owner` | string | An address for whom to query the balance | - -**Returns:** *string* - -The ABI encoded transaction data as a string - -___ - -### burn - -#### ▪ **burn**: *object* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/dummy_erc721_token.ts:370](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dummy_erc721_token.ts#L370)* - -Function to burn a token -Reverts if the given token ID doesn't exist or not called by contract owner - -#### awaitTransactionSuccessAsync - -▸ **awaitTransactionSuccessAsync**(`_owner`: string, `_tokenId`: `BigNumber`, `txData?`: `Partial`, `pollingIntervalMs?`: undefined | number, `timeoutMs?`: undefined | number): *`PromiseWithTransactionHash`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/dummy_erc721_token.ts:412](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dummy_erc721_token.ts#L412)* - -Sends an Ethereum transaction and waits until the transaction has been successfully mined without reverting. -If the transaction was mined, but reverted, an error is thrown. - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`_owner` | string | Owner of token with given token ID | -`_tokenId` | `BigNumber` | ID of the token to be burned by the msg.sender | -`txData?` | `Partial` | Additional data for transaction | -`pollingIntervalMs?` | undefined \| number | Interval at which to poll for success | -`timeoutMs?` | undefined \| number | - | - -**Returns:** *`PromiseWithTransactionHash`* - -A promise that resolves when the transaction is successful - -#### callAsync - -▸ **callAsync**(`_owner`: string, `_tokenId`: `BigNumber`, `callData`: `Partial`, `defaultBlock?`: [BlockParam](#blockparam)): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/dummy_erc721_token.ts:482](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dummy_erc721_token.ts#L482)* - -Sends a read-only call to the contract method. Returns the result that would happen if one were to send an -Ethereum transaction to this method, given the current state of the blockchain. Calls do not cost gas -since they don't modify state. - -**Parameters:** - -Name | Type | Default | Description | ------- | ------ | ------ | ------ | -`_owner` | string | - | Owner of token with given token ID | -`_tokenId` | `BigNumber` | - | ID of the token to be burned by the msg.sender | -`callData` | `Partial` | {} | - | -`defaultBlock?` | [BlockParam](#blockparam) | - | - | - -**Returns:** *`Promise`* - -#### estimateGasAsync - -▸ **estimateGasAsync**(`_owner`: string, `_tokenId`: `BigNumber`, `txData?`: `Partial` | undefined): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/dummy_erc721_token.ts:442](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dummy_erc721_token.ts#L442)* - -Estimates the gas cost of sending an Ethereum transaction calling this method with these arguments. - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`_owner` | string | Owner of token with given token ID | -`_tokenId` | `BigNumber` | ID of the token to be burned by the msg.sender | -`txData?` | `Partial` \| undefined | Additional data for transaction | - -**Returns:** *`Promise`* - -The hash of the transaction - -#### getABIDecodedReturnData - -▸ **getABIDecodedReturnData**(`returnData`: string): *void* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/dummy_erc721_token.ts:560](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dummy_erc721_token.ts#L560)* - -Decode the ABI-encoded return data from a transaction - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`returnData` | string | the data returned after transaction execution | - -**Returns:** *void* - -An array representing the output results in order. Keynames of nested structs are preserved. - -#### getABIDecodedTransactionData - -▸ **getABIDecodedTransactionData**(`callData`: string): *[string, `BigNumber`]* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/dummy_erc721_token.ts:548](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dummy_erc721_token.ts#L548)* - -Decode the ABI-encoded transaction data into its input arguments - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`callData` | string | The ABI-encoded transaction data | - -**Returns:** *[string, `BigNumber`]* - -An array representing the input arguments in order. Keynames of nested structs are preserved. - -#### getABIEncodedTransactionData - -▸ **getABIEncodedTransactionData**(`_owner`: string, `_tokenId`: `BigNumber`): *string* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/dummy_erc721_token.ts:533](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dummy_erc721_token.ts#L533)* - -Returns the ABI encoded transaction data needed to send an Ethereum transaction calling this method. Before -sending the Ethereum tx, this encoded tx data can first be sent to a separate signing service or can be used -to create a 0x transaction (see protocol spec for more details). - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`_owner` | string | Owner of token with given token ID | -`_tokenId` | `BigNumber` | ID of the token to be burned by the msg.sender | - -**Returns:** *string* - -The ABI encoded transaction data as a string - -#### sendTransactionAsync - -▸ **sendTransactionAsync**(`_owner`: string, `_tokenId`: `BigNumber`, `txData?`: `Partial` | undefined): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/dummy_erc721_token.ts:379](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dummy_erc721_token.ts#L379)* - -Sends an Ethereum transaction executing this method with the supplied parameters. This is a read/write -Ethereum operation and will cost gas. - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`_owner` | string | Owner of token with given token ID | -`_tokenId` | `BigNumber` | ID of the token to be burned by the msg.sender | -`txData?` | `Partial` \| undefined | Additional data for transaction | - -**Returns:** *`Promise`* - -The hash of the transaction - -#### validateAndSendTransactionAsync - -▸ **validateAndSendTransactionAsync**(`_owner`: string, `_tokenId`: `BigNumber`, `txData?`: `Partial` | undefined): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/dummy_erc721_token.ts:466](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dummy_erc721_token.ts#L466)* - -**Parameters:** - -Name | Type | ------- | ------ | -`_owner` | string | -`_tokenId` | `BigNumber` | -`txData?` | `Partial` \| undefined | - -**Returns:** *`Promise`* - -___ - -### getApproved - -#### ▪ **getApproved**: *object* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/dummy_erc721_token.ts:571](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dummy_erc721_token.ts#L571)* - -Throws if `_tokenId` is not a valid NFT. - -#### callAsync - -▸ **callAsync**(`_tokenId`: `BigNumber`, `callData`: `Partial`, `defaultBlock?`: [BlockParam](#blockparam)): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/dummy_erc721_token.ts:579](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dummy_erc721_token.ts#L579)* - -Sends a read-only call to the contract method. Returns the result that would happen if one were to send an -Ethereum transaction to this method, given the current state of the blockchain. Calls do not cost gas -since they don't modify state. - -**Parameters:** - -Name | Type | Default | Description | ------- | ------ | ------ | ------ | -`_tokenId` | `BigNumber` | - | The NFT to find the approved address for | -`callData` | `Partial` | {} | - | -`defaultBlock?` | [BlockParam](#blockparam) | - | - | - -**Returns:** *`Promise`* - -The approved address for this NFT, or the zero address if there is none - -#### getABIDecodedReturnData - -▸ **getABIDecodedReturnData**(`returnData`: string): *string* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/dummy_erc721_token.ts:650](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dummy_erc721_token.ts#L650)* - -Decode the ABI-encoded return data from a transaction - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`returnData` | string | the data returned after transaction execution | - -**Returns:** *string* - -An array representing the output results in order. Keynames of nested structs are preserved. - -#### getABIDecodedTransactionData - -▸ **getABIDecodedTransactionData**(`callData`: string): *`BigNumber`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/dummy_erc721_token.ts:638](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dummy_erc721_token.ts#L638)* - -Decode the ABI-encoded transaction data into its input arguments - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`callData` | string | The ABI-encoded transaction data | - -**Returns:** *`BigNumber`* - -An array representing the input arguments in order. Keynames of nested structs are preserved. - -#### getABIEncodedTransactionData - -▸ **getABIEncodedTransactionData**(`_tokenId`: `BigNumber`): *string* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/dummy_erc721_token.ts:627](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dummy_erc721_token.ts#L627)* - -Returns the ABI encoded transaction data needed to send an Ethereum transaction calling this method. Before -sending the Ethereum tx, this encoded tx data can first be sent to a separate signing service or can be used -to create a 0x transaction (see protocol spec for more details). - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`_tokenId` | `BigNumber` | The NFT to find the approved address for | - -**Returns:** *string* - -The ABI encoded transaction data as a string - -___ - -### isApprovedForAll - -#### ▪ **isApprovedForAll**: *object* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/dummy_erc721_token.ts:658](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dummy_erc721_token.ts#L658)* - -#### callAsync - -▸ **callAsync**(`_owner`: string, `_operator`: string, `callData`: `Partial`, `defaultBlock?`: [BlockParam](#blockparam)): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/dummy_erc721_token.ts:667](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dummy_erc721_token.ts#L667)* - -Sends a read-only call to the contract method. Returns the result that would happen if one were to send an -Ethereum transaction to this method, given the current state of the blockchain. Calls do not cost gas -since they don't modify state. - -**Parameters:** - -Name | Type | Default | Description | ------- | ------ | ------ | ------ | -`_owner` | string | - | The address that owns the NFTs | -`_operator` | string | - | The address that acts on behalf of the owner | -`callData` | `Partial` | {} | - | -`defaultBlock?` | [BlockParam](#blockparam) | - | - | - -**Returns:** *`Promise`* - -True if `_operator` is an approved operator for `_owner`, false otherwise - -#### getABIDecodedReturnData - -▸ **getABIDecodedReturnData**(`returnData`: string): *boolean* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/dummy_erc721_token.ts:748](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dummy_erc721_token.ts#L748)* - -Decode the ABI-encoded return data from a transaction - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`returnData` | string | the data returned after transaction execution | - -**Returns:** *boolean* - -An array representing the output results in order. Keynames of nested structs are preserved. - -#### getABIDecodedTransactionData - -▸ **getABIDecodedTransactionData**(`callData`: string): *string* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/dummy_erc721_token.ts:736](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dummy_erc721_token.ts#L736)* - -Decode the ABI-encoded transaction data into its input arguments - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`callData` | string | The ABI-encoded transaction data | - -**Returns:** *string* - -An array representing the input arguments in order. Keynames of nested structs are preserved. - -#### getABIEncodedTransactionData - -▸ **getABIEncodedTransactionData**(`_owner`: string, `_operator`: string): *string* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/dummy_erc721_token.ts:721](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dummy_erc721_token.ts#L721)* - -Returns the ABI encoded transaction data needed to send an Ethereum transaction calling this method. Before -sending the Ethereum tx, this encoded tx data can first be sent to a separate signing service or can be used -to create a 0x transaction (see protocol spec for more details). - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`_owner` | string | The address that owns the NFTs | -`_operator` | string | The address that acts on behalf of the owner | - -**Returns:** *string* - -The ABI encoded transaction data as a string - -___ - -### mint - -#### ▪ **mint**: *object* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/dummy_erc721_token.ts:760](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dummy_erc721_token.ts#L760)* - -Function to mint a new token -Reverts if the given token ID already exists - -#### awaitTransactionSuccessAsync - -▸ **awaitTransactionSuccessAsync**(`_to`: string, `_tokenId`: `BigNumber`, `txData?`: `Partial`, `pollingIntervalMs?`: undefined | number, `timeoutMs?`: undefined | number): *`PromiseWithTransactionHash`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/dummy_erc721_token.ts:802](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dummy_erc721_token.ts#L802)* - -Sends an Ethereum transaction and waits until the transaction has been successfully mined without reverting. -If the transaction was mined, but reverted, an error is thrown. - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`_to` | string | Address of the beneficiary that will own the minted token | -`_tokenId` | `BigNumber` | ID of the token to be minted by the msg.sender | -`txData?` | `Partial` | Additional data for transaction | -`pollingIntervalMs?` | undefined \| number | Interval at which to poll for success | -`timeoutMs?` | undefined \| number | - | - -**Returns:** *`PromiseWithTransactionHash`* - -A promise that resolves when the transaction is successful - -#### callAsync - -▸ **callAsync**(`_to`: string, `_tokenId`: `BigNumber`, `callData`: `Partial`, `defaultBlock?`: [BlockParam](#blockparam)): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/dummy_erc721_token.ts:872](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dummy_erc721_token.ts#L872)* - -Sends a read-only call to the contract method. Returns the result that would happen if one were to send an -Ethereum transaction to this method, given the current state of the blockchain. Calls do not cost gas -since they don't modify state. - -**Parameters:** - -Name | Type | Default | Description | ------- | ------ | ------ | ------ | -`_to` | string | - | Address of the beneficiary that will own the minted token | -`_tokenId` | `BigNumber` | - | ID of the token to be minted by the msg.sender | -`callData` | `Partial` | {} | - | -`defaultBlock?` | [BlockParam](#blockparam) | - | - | - -**Returns:** *`Promise`* - -#### estimateGasAsync - -▸ **estimateGasAsync**(`_to`: string, `_tokenId`: `BigNumber`, `txData?`: `Partial` | undefined): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/dummy_erc721_token.ts:832](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dummy_erc721_token.ts#L832)* - -Estimates the gas cost of sending an Ethereum transaction calling this method with these arguments. - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`_to` | string | Address of the beneficiary that will own the minted token | -`_tokenId` | `BigNumber` | ID of the token to be minted by the msg.sender | -`txData?` | `Partial` \| undefined | Additional data for transaction | - -**Returns:** *`Promise`* - -The hash of the transaction - -#### getABIDecodedReturnData - -▸ **getABIDecodedReturnData**(`returnData`: string): *void* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/dummy_erc721_token.ts:950](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dummy_erc721_token.ts#L950)* - -Decode the ABI-encoded return data from a transaction - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`returnData` | string | the data returned after transaction execution | - -**Returns:** *void* - -An array representing the output results in order. Keynames of nested structs are preserved. - -#### getABIDecodedTransactionData - -▸ **getABIDecodedTransactionData**(`callData`: string): *[string, `BigNumber`]* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/dummy_erc721_token.ts:938](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dummy_erc721_token.ts#L938)* - -Decode the ABI-encoded transaction data into its input arguments - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`callData` | string | The ABI-encoded transaction data | - -**Returns:** *[string, `BigNumber`]* - -An array representing the input arguments in order. Keynames of nested structs are preserved. - -#### getABIEncodedTransactionData - -▸ **getABIEncodedTransactionData**(`_to`: string, `_tokenId`: `BigNumber`): *string* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/dummy_erc721_token.ts:923](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dummy_erc721_token.ts#L923)* - -Returns the ABI encoded transaction data needed to send an Ethereum transaction calling this method. Before -sending the Ethereum tx, this encoded tx data can first be sent to a separate signing service or can be used -to create a 0x transaction (see protocol spec for more details). - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`_to` | string | Address of the beneficiary that will own the minted token | -`_tokenId` | `BigNumber` | ID of the token to be minted by the msg.sender | - -**Returns:** *string* - -The ABI encoded transaction data as a string - -#### sendTransactionAsync - -▸ **sendTransactionAsync**(`_to`: string, `_tokenId`: `BigNumber`, `txData?`: `Partial` | undefined): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/dummy_erc721_token.ts:769](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dummy_erc721_token.ts#L769)* - -Sends an Ethereum transaction executing this method with the supplied parameters. This is a read/write -Ethereum operation and will cost gas. - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`_to` | string | Address of the beneficiary that will own the minted token | -`_tokenId` | `BigNumber` | ID of the token to be minted by the msg.sender | -`txData?` | `Partial` \| undefined | Additional data for transaction | - -**Returns:** *`Promise`* - -The hash of the transaction - -#### validateAndSendTransactionAsync - -▸ **validateAndSendTransactionAsync**(`_to`: string, `_tokenId`: `BigNumber`, `txData?`: `Partial` | undefined): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/dummy_erc721_token.ts:856](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dummy_erc721_token.ts#L856)* - -**Parameters:** - -Name | Type | ------- | ------ | -`_to` | string | -`_tokenId` | `BigNumber` | -`txData?` | `Partial` \| undefined | - -**Returns:** *`Promise`* - -___ - -### name - -#### ▪ **name**: *object* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/dummy_erc721_token.ts:958](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dummy_erc721_token.ts#L958)* - -#### callAsync - -▸ **callAsync**(`callData`: `Partial`, `defaultBlock?`: [BlockParam](#blockparam)): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/dummy_erc721_token.ts:964](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dummy_erc721_token.ts#L964)* - -Sends a read-only call to the contract method. Returns the result that would happen if one were to send an -Ethereum transaction to this method, given the current state of the blockchain. Calls do not cost gas -since they don't modify state. - -**Parameters:** - -Name | Type | Default | ------- | ------ | ------ | -`callData` | `Partial` | {} | -`defaultBlock?` | [BlockParam](#blockparam) | - | - -**Returns:** *`Promise`* - -#### getABIDecodedReturnData - -▸ **getABIDecodedReturnData**(`returnData`: string): *string* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/dummy_erc721_token.ts:1028](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dummy_erc721_token.ts#L1028)* - -Decode the ABI-encoded return data from a transaction - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`returnData` | string | the data returned after transaction execution | - -**Returns:** *string* - -An array representing the output results in order. Keynames of nested structs are preserved. - -#### getABIDecodedTransactionData - -▸ **getABIDecodedTransactionData**(`callData`: string): *void* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/dummy_erc721_token.ts:1016](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dummy_erc721_token.ts#L1016)* - -Decode the ABI-encoded transaction data into its input arguments - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`callData` | string | The ABI-encoded transaction data | - -**Returns:** *void* - -An array representing the input arguments in order. Keynames of nested structs are preserved. - -#### getABIEncodedTransactionData - -▸ **getABIEncodedTransactionData**(): *string* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/dummy_erc721_token.ts:1006](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dummy_erc721_token.ts#L1006)* - -Returns the ABI encoded transaction data needed to send an Ethereum transaction calling this method. Before -sending the Ethereum tx, this encoded tx data can first be sent to a separate signing service or can be used -to create a 0x transaction (see protocol spec for more details). - -**Returns:** *string* - -The ABI encoded transaction data as a string - -___ - -### owner - -#### ▪ **owner**: *object* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/dummy_erc721_token.ts:1036](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dummy_erc721_token.ts#L1036)* - -#### callAsync - -▸ **callAsync**(`callData`: `Partial`, `defaultBlock?`: [BlockParam](#blockparam)): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/dummy_erc721_token.ts:1042](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dummy_erc721_token.ts#L1042)* - -Sends a read-only call to the contract method. Returns the result that would happen if one were to send an -Ethereum transaction to this method, given the current state of the blockchain. Calls do not cost gas -since they don't modify state. - -**Parameters:** - -Name | Type | Default | ------- | ------ | ------ | -`callData` | `Partial` | {} | -`defaultBlock?` | [BlockParam](#blockparam) | - | - -**Returns:** *`Promise`* - -#### getABIDecodedReturnData - -▸ **getABIDecodedReturnData**(`returnData`: string): *string* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/dummy_erc721_token.ts:1106](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dummy_erc721_token.ts#L1106)* - -Decode the ABI-encoded return data from a transaction - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`returnData` | string | the data returned after transaction execution | - -**Returns:** *string* - -An array representing the output results in order. Keynames of nested structs are preserved. - -#### getABIDecodedTransactionData - -▸ **getABIDecodedTransactionData**(`callData`: string): *void* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/dummy_erc721_token.ts:1094](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dummy_erc721_token.ts#L1094)* - -Decode the ABI-encoded transaction data into its input arguments - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`callData` | string | The ABI-encoded transaction data | - -**Returns:** *void* - -An array representing the input arguments in order. Keynames of nested structs are preserved. - -#### getABIEncodedTransactionData - -▸ **getABIEncodedTransactionData**(): *string* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/dummy_erc721_token.ts:1084](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dummy_erc721_token.ts#L1084)* - -Returns the ABI encoded transaction data needed to send an Ethereum transaction calling this method. Before -sending the Ethereum tx, this encoded tx data can first be sent to a separate signing service or can be used -to create a 0x transaction (see protocol spec for more details). - -**Returns:** *string* - -The ABI encoded transaction data as a string - -___ - -### ownerOf - -#### ▪ **ownerOf**: *object* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/dummy_erc721_token.ts:1118](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dummy_erc721_token.ts#L1118)* - -NFTs assigned to zero address are considered invalid, and queries -about them do throw. - -#### callAsync - -▸ **callAsync**(`_tokenId`: `BigNumber`, `callData`: `Partial`, `defaultBlock?`: [BlockParam](#blockparam)): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/dummy_erc721_token.ts:1126](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dummy_erc721_token.ts#L1126)* - -Sends a read-only call to the contract method. Returns the result that would happen if one were to send an -Ethereum transaction to this method, given the current state of the blockchain. Calls do not cost gas -since they don't modify state. - -**Parameters:** - -Name | Type | Default | Description | ------- | ------ | ------ | ------ | -`_tokenId` | `BigNumber` | - | The identifier for an NFT | -`callData` | `Partial` | {} | - | -`defaultBlock?` | [BlockParam](#blockparam) | - | - | - -**Returns:** *`Promise`* - -The address of the owner of the NFT - -#### getABIDecodedReturnData - -▸ **getABIDecodedReturnData**(`returnData`: string): *string* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/dummy_erc721_token.ts:1197](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dummy_erc721_token.ts#L1197)* - -Decode the ABI-encoded return data from a transaction - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`returnData` | string | the data returned after transaction execution | - -**Returns:** *string* - -An array representing the output results in order. Keynames of nested structs are preserved. - -#### getABIDecodedTransactionData - -▸ **getABIDecodedTransactionData**(`callData`: string): *`BigNumber`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/dummy_erc721_token.ts:1185](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dummy_erc721_token.ts#L1185)* - -Decode the ABI-encoded transaction data into its input arguments - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`callData` | string | The ABI-encoded transaction data | - -**Returns:** *`BigNumber`* - -An array representing the input arguments in order. Keynames of nested structs are preserved. - -#### getABIEncodedTransactionData - -▸ **getABIEncodedTransactionData**(`_tokenId`: `BigNumber`): *string* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/dummy_erc721_token.ts:1174](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dummy_erc721_token.ts#L1174)* - -Returns the ABI encoded transaction data needed to send an Ethereum transaction calling this method. Before -sending the Ethereum tx, this encoded tx data can first be sent to a separate signing service or can be used -to create a 0x transaction (see protocol spec for more details). - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`_tokenId` | `BigNumber` | The identifier for an NFT | - -**Returns:** *string* - -The ABI encoded transaction data as a string - -___ - -### safeTransferFrom1 - -#### ▪ **safeTransferFrom1**: *object* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/dummy_erc721_token.ts:1209](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dummy_erc721_token.ts#L1209)* - -This works identically to the other function with an extra data parameter, -except this function just sets data to "". - -#### awaitTransactionSuccessAsync - -▸ **awaitTransactionSuccessAsync**(`_from`: string, `_to`: string, `_tokenId`: `BigNumber`, `txData?`: `Partial`, `pollingIntervalMs?`: undefined | number, `timeoutMs?`: undefined | number): *`PromiseWithTransactionHash`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/dummy_erc721_token.ts:1259](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dummy_erc721_token.ts#L1259)* - -Sends an Ethereum transaction and waits until the transaction has been successfully mined without reverting. -If the transaction was mined, but reverted, an error is thrown. - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`_from` | string | The current owner of the NFT | -`_to` | string | The new owner | -`_tokenId` | `BigNumber` | The NFT to transfer | -`txData?` | `Partial` | Additional data for transaction | -`pollingIntervalMs?` | undefined \| number | Interval at which to poll for success | -`timeoutMs?` | undefined \| number | - | - -**Returns:** *`PromiseWithTransactionHash`* - -A promise that resolves when the transaction is successful - -#### callAsync - -▸ **callAsync**(`_from`: string, `_to`: string, `_tokenId`: `BigNumber`, `callData`: `Partial`, `defaultBlock?`: [BlockParam](#blockparam)): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/dummy_erc721_token.ts:1345](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dummy_erc721_token.ts#L1345)* - -Sends a read-only call to the contract method. Returns the result that would happen if one were to send an -Ethereum transaction to this method, given the current state of the blockchain. Calls do not cost gas -since they don't modify state. - -**Parameters:** - -Name | Type | Default | Description | ------- | ------ | ------ | ------ | -`_from` | string | - | The current owner of the NFT | -`_to` | string | - | The new owner | -`_tokenId` | `BigNumber` | - | The NFT to transfer | -`callData` | `Partial` | {} | - | -`defaultBlock?` | [BlockParam](#blockparam) | - | - | - -**Returns:** *`Promise`* - -#### estimateGasAsync - -▸ **estimateGasAsync**(`_from`: string, `_to`: string, `_tokenId`: `BigNumber`, `txData?`: `Partial` | undefined): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/dummy_erc721_token.ts:1297](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dummy_erc721_token.ts#L1297)* - -Estimates the gas cost of sending an Ethereum transaction calling this method with these arguments. - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`_from` | string | The current owner of the NFT | -`_to` | string | The new owner | -`_tokenId` | `BigNumber` | The NFT to transfer | -`txData?` | `Partial` \| undefined | Additional data for transaction | - -**Returns:** *`Promise`* - -The hash of the transaction - -#### getABIDecodedReturnData - -▸ **getABIDecodedReturnData**(`returnData`: string): *void* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/dummy_erc721_token.ts:1432](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dummy_erc721_token.ts#L1432)* - -Decode the ABI-encoded return data from a transaction - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`returnData` | string | the data returned after transaction execution | - -**Returns:** *void* - -An array representing the output results in order. Keynames of nested structs are preserved. - -#### getABIDecodedTransactionData - -▸ **getABIDecodedTransactionData**(`callData`: string): *[string, string, `BigNumber`]* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/dummy_erc721_token.ts:1420](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dummy_erc721_token.ts#L1420)* - -Decode the ABI-encoded transaction data into its input arguments - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`callData` | string | The ABI-encoded transaction data | - -**Returns:** *[string, string, `BigNumber`]* - -An array representing the input arguments in order. Keynames of nested structs are preserved. - -#### getABIEncodedTransactionData - -▸ **getABIEncodedTransactionData**(`_from`: string, `_to`: string, `_tokenId`: `BigNumber`): *string* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/dummy_erc721_token.ts:1403](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dummy_erc721_token.ts#L1403)* - -Returns the ABI encoded transaction data needed to send an Ethereum transaction calling this method. Before -sending the Ethereum tx, this encoded tx data can first be sent to a separate signing service or can be used -to create a 0x transaction (see protocol spec for more details). - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`_from` | string | The current owner of the NFT | -`_to` | string | The new owner | -`_tokenId` | `BigNumber` | The NFT to transfer | - -**Returns:** *string* - -The ABI encoded transaction data as a string - -#### sendTransactionAsync - -▸ **sendTransactionAsync**(`_from`: string, `_to`: string, `_tokenId`: `BigNumber`, `txData?`: `Partial` | undefined): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/dummy_erc721_token.ts:1219](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dummy_erc721_token.ts#L1219)* - -Sends an Ethereum transaction executing this method with the supplied parameters. This is a read/write -Ethereum operation and will cost gas. - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`_from` | string | The current owner of the NFT | -`_to` | string | The new owner | -`_tokenId` | `BigNumber` | The NFT to transfer | -`txData?` | `Partial` \| undefined | Additional data for transaction | - -**Returns:** *`Promise`* - -The hash of the transaction - -#### validateAndSendTransactionAsync - -▸ **validateAndSendTransactionAsync**(`_from`: string, `_to`: string, `_tokenId`: `BigNumber`, `txData?`: `Partial` | undefined): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/dummy_erc721_token.ts:1327](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dummy_erc721_token.ts#L1327)* - -**Parameters:** - -Name | Type | ------- | ------ | -`_from` | string | -`_to` | string | -`_tokenId` | `BigNumber` | -`txData?` | `Partial` \| undefined | - -**Returns:** *`Promise`* - -___ - -### safeTransferFrom2 - -#### ▪ **safeTransferFrom2**: *object* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/dummy_erc721_token.ts:1449](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dummy_erc721_token.ts#L1449)* - -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)"))`. - -#### awaitTransactionSuccessAsync - -▸ **awaitTransactionSuccessAsync**(`_from`: string, `_to`: string, `_tokenId`: `BigNumber`, `_data`: string, `txData?`: `Partial`, `pollingIntervalMs?`: undefined | number, `timeoutMs?`: undefined | number): *`PromiseWithTransactionHash`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/dummy_erc721_token.ts:1504](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dummy_erc721_token.ts#L1504)* - -Sends an Ethereum transaction and waits until the transaction has been successfully mined without reverting. -If the transaction was mined, but reverted, an error is thrown. - -**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` | -`txData?` | `Partial` | Additional data for transaction | -`pollingIntervalMs?` | undefined \| number | Interval at which to poll for success | -`timeoutMs?` | undefined \| number | - | - -**Returns:** *`PromiseWithTransactionHash`* - -A promise that resolves when the transaction is successful - -#### callAsync - -▸ **callAsync**(`_from`: string, `_to`: string, `_tokenId`: `BigNumber`, `_data`: string, `callData`: `Partial`, `defaultBlock?`: [BlockParam](#blockparam)): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/dummy_erc721_token.ts:1605](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dummy_erc721_token.ts#L1605)* - -Sends a read-only call to the contract method. Returns the result that would happen if one were to send an -Ethereum transaction to this method, given the current state of the blockchain. Calls do not cost gas -since they don't modify state. - -**Parameters:** - -Name | Type | Default | 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` | -`callData` | `Partial` | {} | - | -`defaultBlock?` | [BlockParam](#blockparam) | - | - | - -**Returns:** *`Promise`* - -#### estimateGasAsync - -▸ **estimateGasAsync**(`_from`: string, `_to`: string, `_tokenId`: `BigNumber`, `_data`: string, `txData?`: `Partial` | undefined): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/dummy_erc721_token.ts:1546](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dummy_erc721_token.ts#L1546)* - -Estimates the gas cost of sending an Ethereum transaction calling this method with these arguments. - -**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` | -`txData?` | `Partial` \| undefined | Additional data for transaction | - -**Returns:** *`Promise`* - -The hash of the transaction - -#### getABIDecodedReturnData - -▸ **getABIDecodedReturnData**(`returnData`: string): *void* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/dummy_erc721_token.ts:1696](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dummy_erc721_token.ts#L1696)* - -Decode the ABI-encoded return data from a transaction - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`returnData` | string | the data returned after transaction execution | - -**Returns:** *void* - -An array representing the output results in order. Keynames of nested structs are preserved. - -#### getABIDecodedTransactionData - -▸ **getABIDecodedTransactionData**(`callData`: string): *[string, string, `BigNumber`, string]* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/dummy_erc721_token.ts:1684](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dummy_erc721_token.ts#L1684)* - -Decode the ABI-encoded transaction data into its input arguments - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`callData` | string | The ABI-encoded transaction data | - -**Returns:** *[string, string, `BigNumber`, string]* - -An array representing the input arguments in order. Keynames of nested structs are preserved. - -#### getABIEncodedTransactionData - -▸ **getABIEncodedTransactionData**(`_from`: string, `_to`: string, `_tokenId`: `BigNumber`, `_data`: string): *string* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/dummy_erc721_token.ts:1667](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dummy_erc721_token.ts#L1667)* - -Returns the ABI encoded transaction data needed to send an Ethereum transaction calling this method. Before -sending the Ethereum tx, this encoded tx data can first be sent to a separate signing service or can be used -to create a 0x transaction (see protocol spec for more details). - -**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:** *string* - -The ABI encoded transaction data as a string - -#### sendTransactionAsync - -▸ **sendTransactionAsync**(`_from`: string, `_to`: string, `_tokenId`: `BigNumber`, `_data`: string, `txData?`: `Partial` | undefined): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/dummy_erc721_token.ts:1460](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dummy_erc721_token.ts#L1460)* - -Sends an Ethereum transaction executing this method with the supplied parameters. This is a read/write -Ethereum operation and will cost gas. - -**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` | -`txData?` | `Partial` \| undefined | Additional data for transaction | - -**Returns:** *`Promise`* - -The hash of the transaction - -#### validateAndSendTransactionAsync - -▸ **validateAndSendTransactionAsync**(`_from`: string, `_to`: string, `_tokenId`: `BigNumber`, `_data`: string, `txData?`: `Partial` | undefined): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/dummy_erc721_token.ts:1579](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dummy_erc721_token.ts#L1579)* - -**Parameters:** - -Name | Type | ------- | ------ | -`_from` | string | -`_to` | string | -`_tokenId` | `BigNumber` | -`_data` | string | -`txData?` | `Partial` \| undefined | - -**Returns:** *`Promise`* - -___ - -### setApprovalForAll - -#### ▪ **setApprovalForAll**: *object* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/dummy_erc721_token.ts:1708](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dummy_erc721_token.ts#L1708)* - -Emits the ApprovalForAll event. The contract MUST allow -multiple operators per owner. - -#### awaitTransactionSuccessAsync - -▸ **awaitTransactionSuccessAsync**(`_operator`: string, `_approved`: boolean, `txData?`: `Partial`, `pollingIntervalMs?`: undefined | number, `timeoutMs?`: undefined | number): *`PromiseWithTransactionHash`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/dummy_erc721_token.ts:1753](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dummy_erc721_token.ts#L1753)* - -Sends an Ethereum transaction and waits until the transaction has been successfully mined without reverting. -If the transaction was mined, but reverted, an error is thrown. - -**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 | -`txData?` | `Partial` | Additional data for transaction | -`pollingIntervalMs?` | undefined \| number | Interval at which to poll for success | -`timeoutMs?` | undefined \| number | - | - -**Returns:** *`PromiseWithTransactionHash`* - -A promise that resolves when the transaction is successful - -#### callAsync - -▸ **callAsync**(`_operator`: string, `_approved`: boolean, `callData`: `Partial`, `defaultBlock?`: [BlockParam](#blockparam)): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/dummy_erc721_token.ts:1830](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dummy_erc721_token.ts#L1830)* - -Sends a read-only call to the contract method. Returns the result that would happen if one were to send an -Ethereum transaction to this method, given the current state of the blockchain. Calls do not cost gas -since they don't modify state. - -**Parameters:** - -Name | Type | Default | Description | ------- | ------ | ------ | ------ | -`_operator` | string | - | Address to add to the set of authorized operators | -`_approved` | boolean | - | True if the operator is approved, false to revoke approval | -`callData` | `Partial` | {} | - | -`defaultBlock?` | [BlockParam](#blockparam) | - | - | - -**Returns:** *`Promise`* - -#### estimateGasAsync - -▸ **estimateGasAsync**(`_operator`: string, `_approved`: boolean, `txData?`: `Partial` | undefined): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/dummy_erc721_token.ts:1787](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dummy_erc721_token.ts#L1787)* - -Estimates the gas cost of sending an Ethereum transaction calling this method with these arguments. - -**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 | -`txData?` | `Partial` \| undefined | Additional data for transaction | - -**Returns:** *`Promise`* - -The hash of the transaction - -#### getABIDecodedReturnData - -▸ **getABIDecodedReturnData**(`returnData`: string): *void* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/dummy_erc721_token.ts:1911](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dummy_erc721_token.ts#L1911)* - -Decode the ABI-encoded return data from a transaction - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`returnData` | string | the data returned after transaction execution | - -**Returns:** *void* - -An array representing the output results in order. Keynames of nested structs are preserved. - -#### getABIDecodedTransactionData - -▸ **getABIDecodedTransactionData**(`callData`: string): *[string, boolean]* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/dummy_erc721_token.ts:1899](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dummy_erc721_token.ts#L1899)* - -Decode the ABI-encoded transaction data into its input arguments - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`callData` | string | The ABI-encoded transaction data | - -**Returns:** *[string, boolean]* - -An array representing the input arguments in order. Keynames of nested structs are preserved. - -#### getABIEncodedTransactionData - -▸ **getABIEncodedTransactionData**(`_operator`: string, `_approved`: boolean): *string* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/dummy_erc721_token.ts:1884](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dummy_erc721_token.ts#L1884)* - -Returns the ABI encoded transaction data needed to send an Ethereum transaction calling this method. Before -sending the Ethereum tx, this encoded tx data can first be sent to a separate signing service or can be used -to create a 0x transaction (see protocol spec for more details). - -**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:** *string* - -The ABI encoded transaction data as a string - -#### sendTransactionAsync - -▸ **sendTransactionAsync**(`_operator`: string, `_approved`: boolean, `txData?`: `Partial` | undefined): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/dummy_erc721_token.ts:1717](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dummy_erc721_token.ts#L1717)* - -Sends an Ethereum transaction executing this method with the supplied parameters. This is a read/write -Ethereum operation and will cost gas. - -**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 | -`txData?` | `Partial` \| undefined | Additional data for transaction | - -**Returns:** *`Promise`* - -The hash of the transaction - -#### validateAndSendTransactionAsync - -▸ **validateAndSendTransactionAsync**(`_operator`: string, `_approved`: boolean, `txData?`: `Partial` | undefined): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/dummy_erc721_token.ts:1814](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dummy_erc721_token.ts#L1814)* - -**Parameters:** - -Name | Type | ------- | ------ | -`_operator` | string | -`_approved` | boolean | -`txData?` | `Partial` \| undefined | - -**Returns:** *`Promise`* - -___ - -### symbol - -#### ▪ **symbol**: *object* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/dummy_erc721_token.ts:1919](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dummy_erc721_token.ts#L1919)* - -#### callAsync - -▸ **callAsync**(`callData`: `Partial`, `defaultBlock?`: [BlockParam](#blockparam)): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/dummy_erc721_token.ts:1925](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dummy_erc721_token.ts#L1925)* - -Sends a read-only call to the contract method. Returns the result that would happen if one were to send an -Ethereum transaction to this method, given the current state of the blockchain. Calls do not cost gas -since they don't modify state. - -**Parameters:** - -Name | Type | Default | ------- | ------ | ------ | -`callData` | `Partial` | {} | -`defaultBlock?` | [BlockParam](#blockparam) | - | - -**Returns:** *`Promise`* - -#### getABIDecodedReturnData - -▸ **getABIDecodedReturnData**(`returnData`: string): *string* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/dummy_erc721_token.ts:1989](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dummy_erc721_token.ts#L1989)* - -Decode the ABI-encoded return data from a transaction - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`returnData` | string | the data returned after transaction execution | - -**Returns:** *string* - -An array representing the output results in order. Keynames of nested structs are preserved. - -#### getABIDecodedTransactionData - -▸ **getABIDecodedTransactionData**(`callData`: string): *void* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/dummy_erc721_token.ts:1977](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dummy_erc721_token.ts#L1977)* - -Decode the ABI-encoded transaction data into its input arguments - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`callData` | string | The ABI-encoded transaction data | - -**Returns:** *void* - -An array representing the input arguments in order. Keynames of nested structs are preserved. - -#### getABIEncodedTransactionData - -▸ **getABIEncodedTransactionData**(): *string* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/dummy_erc721_token.ts:1967](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dummy_erc721_token.ts#L1967)* - -Returns the ABI encoded transaction data needed to send an Ethereum transaction calling this method. Before -sending the Ethereum tx, this encoded tx data can first be sent to a separate signing service or can be used -to create a 0x transaction (see protocol spec for more details). - -**Returns:** *string* - -The ABI encoded transaction data as a string - -___ - -### transferFrom - -#### ▪ **transferFrom**: *object* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/dummy_erc721_token.ts:2003](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dummy_erc721_token.ts#L2003)* - -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. - -#### awaitTransactionSuccessAsync - -▸ **awaitTransactionSuccessAsync**(`_from`: string, `_to`: string, `_tokenId`: `BigNumber`, `txData?`: `Partial`, `pollingIntervalMs?`: undefined | number, `timeoutMs?`: undefined | number): *`PromiseWithTransactionHash`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/dummy_erc721_token.ts:2053](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dummy_erc721_token.ts#L2053)* - -Sends an Ethereum transaction and waits until the transaction has been successfully mined without reverting. -If the transaction was mined, but reverted, an error is thrown. - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`_from` | string | The current owner of the NFT | -`_to` | string | The new owner | -`_tokenId` | `BigNumber` | The NFT to transfer | -`txData?` | `Partial` | Additional data for transaction | -`pollingIntervalMs?` | undefined \| number | Interval at which to poll for success | -`timeoutMs?` | undefined \| number | - | - -**Returns:** *`PromiseWithTransactionHash`* - -A promise that resolves when the transaction is successful - -#### callAsync - -▸ **callAsync**(`_from`: string, `_to`: string, `_tokenId`: `BigNumber`, `callData`: `Partial`, `defaultBlock?`: [BlockParam](#blockparam)): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/dummy_erc721_token.ts:2139](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dummy_erc721_token.ts#L2139)* - -Sends a read-only call to the contract method. Returns the result that would happen if one were to send an -Ethereum transaction to this method, given the current state of the blockchain. Calls do not cost gas -since they don't modify state. - -**Parameters:** - -Name | Type | Default | Description | ------- | ------ | ------ | ------ | -`_from` | string | - | The current owner of the NFT | -`_to` | string | - | The new owner | -`_tokenId` | `BigNumber` | - | The NFT to transfer | -`callData` | `Partial` | {} | - | -`defaultBlock?` | [BlockParam](#blockparam) | - | - | - -**Returns:** *`Promise`* - -#### estimateGasAsync - -▸ **estimateGasAsync**(`_from`: string, `_to`: string, `_tokenId`: `BigNumber`, `txData?`: `Partial` | undefined): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/dummy_erc721_token.ts:2091](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dummy_erc721_token.ts#L2091)* - -Estimates the gas cost of sending an Ethereum transaction calling this method with these arguments. - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`_from` | string | The current owner of the NFT | -`_to` | string | The new owner | -`_tokenId` | `BigNumber` | The NFT to transfer | -`txData?` | `Partial` \| undefined | Additional data for transaction | - -**Returns:** *`Promise`* - -The hash of the transaction - -#### getABIDecodedReturnData - -▸ **getABIDecodedReturnData**(`returnData`: string): *void* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/dummy_erc721_token.ts:2226](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dummy_erc721_token.ts#L2226)* - -Decode the ABI-encoded return data from a transaction - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`returnData` | string | the data returned after transaction execution | - -**Returns:** *void* - -An array representing the output results in order. Keynames of nested structs are preserved. - -#### getABIDecodedTransactionData - -▸ **getABIDecodedTransactionData**(`callData`: string): *[string, string, `BigNumber`]* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/dummy_erc721_token.ts:2214](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dummy_erc721_token.ts#L2214)* - -Decode the ABI-encoded transaction data into its input arguments - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`callData` | string | The ABI-encoded transaction data | - -**Returns:** *[string, string, `BigNumber`]* - -An array representing the input arguments in order. Keynames of nested structs are preserved. - -#### getABIEncodedTransactionData - -▸ **getABIEncodedTransactionData**(`_from`: string, `_to`: string, `_tokenId`: `BigNumber`): *string* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/dummy_erc721_token.ts:2197](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dummy_erc721_token.ts#L2197)* - -Returns the ABI encoded transaction data needed to send an Ethereum transaction calling this method. Before -sending the Ethereum tx, this encoded tx data can first be sent to a separate signing service or can be used -to create a 0x transaction (see protocol spec for more details). - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`_from` | string | The current owner of the NFT | -`_to` | string | The new owner | -`_tokenId` | `BigNumber` | The NFT to transfer | - -**Returns:** *string* - -The ABI encoded transaction data as a string - -#### sendTransactionAsync - -▸ **sendTransactionAsync**(`_from`: string, `_to`: string, `_tokenId`: `BigNumber`, `txData?`: `Partial` | undefined): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/dummy_erc721_token.ts:2013](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dummy_erc721_token.ts#L2013)* - -Sends an Ethereum transaction executing this method with the supplied parameters. This is a read/write -Ethereum operation and will cost gas. - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`_from` | string | The current owner of the NFT | -`_to` | string | The new owner | -`_tokenId` | `BigNumber` | The NFT to transfer | -`txData?` | `Partial` \| undefined | Additional data for transaction | - -**Returns:** *`Promise`* - -The hash of the transaction - -#### validateAndSendTransactionAsync - -▸ **validateAndSendTransactionAsync**(`_from`: string, `_to`: string, `_tokenId`: `BigNumber`, `txData?`: `Partial` | undefined): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/dummy_erc721_token.ts:2121](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dummy_erc721_token.ts#L2121)* - -**Parameters:** - -Name | Type | ------- | ------ | -`_from` | string | -`_to` | string | -`_tokenId` | `BigNumber` | -`txData?` | `Partial` \| undefined | - -**Returns:** *`Promise`* - -___ - -### transferOwnership - -#### ▪ **transferOwnership**: *object* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/dummy_erc721_token.ts:2234](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dummy_erc721_token.ts#L2234)* - -#### awaitTransactionSuccessAsync - -▸ **awaitTransactionSuccessAsync**(`newOwner`: string, `txData?`: `Partial`, `pollingIntervalMs?`: undefined | number, `timeoutMs?`: undefined | number): *`PromiseWithTransactionHash`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/dummy_erc721_token.ts:2267](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dummy_erc721_token.ts#L2267)* - -Sends an Ethereum transaction and waits until the transaction has been successfully mined without reverting. -If the transaction was mined, but reverted, an error is thrown. - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`newOwner` | string | - | -`txData?` | `Partial` | Additional data for transaction | -`pollingIntervalMs?` | undefined \| number | Interval at which to poll for success | -`timeoutMs?` | undefined \| number | - | - -**Returns:** *`PromiseWithTransactionHash`* - -A promise that resolves when the transaction is successful - -#### callAsync - -▸ **callAsync**(`newOwner`: string, `callData`: `Partial`, `defaultBlock?`: [BlockParam](#blockparam)): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/dummy_erc721_token.ts:2322](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dummy_erc721_token.ts#L2322)* - -Sends a read-only call to the contract method. Returns the result that would happen if one were to send an -Ethereum transaction to this method, given the current state of the blockchain. Calls do not cost gas -since they don't modify state. - -**Parameters:** - -Name | Type | Default | ------- | ------ | ------ | -`newOwner` | string | - | -`callData` | `Partial` | {} | -`defaultBlock?` | [BlockParam](#blockparam) | - | - -**Returns:** *`Promise`* - -#### estimateGasAsync - -▸ **estimateGasAsync**(`newOwner`: string, `txData?`: `Partial` | undefined): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/dummy_erc721_token.ts:2293](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dummy_erc721_token.ts#L2293)* - -Estimates the gas cost of sending an Ethereum transaction calling this method with these arguments. - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`newOwner` | string | - | -`txData?` | `Partial` \| undefined | Additional data for transaction | - -**Returns:** *`Promise`* - -The hash of the transaction - -#### getABIDecodedReturnData - -▸ **getABIDecodedReturnData**(`returnData`: string): *void* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/dummy_erc721_token.ts:2390](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dummy_erc721_token.ts#L2390)* - -Decode the ABI-encoded return data from a transaction - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`returnData` | string | the data returned after transaction execution | - -**Returns:** *void* - -An array representing the output results in order. Keynames of nested structs are preserved. - -#### getABIDecodedTransactionData - -▸ **getABIDecodedTransactionData**(`callData`: string): *[string]* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/dummy_erc721_token.ts:2378](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dummy_erc721_token.ts#L2378)* - -Decode the ABI-encoded transaction data into its input arguments - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`callData` | string | The ABI-encoded transaction data | - -**Returns:** *[string]* - -An array representing the input arguments in order. Keynames of nested structs are preserved. - -#### getABIEncodedTransactionData - -▸ **getABIEncodedTransactionData**(`newOwner`: string): *string* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/dummy_erc721_token.ts:2365](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dummy_erc721_token.ts#L2365)* - -Returns the ABI encoded transaction data needed to send an Ethereum transaction calling this method. Before -sending the Ethereum tx, this encoded tx data can first be sent to a separate signing service or can be used -to create a 0x transaction (see protocol spec for more details). - -**Parameters:** - -Name | Type | ------- | ------ | -`newOwner` | string | - -**Returns:** *string* - -The ABI encoded transaction data as a string - -#### sendTransactionAsync - -▸ **sendTransactionAsync**(`newOwner`: string, `txData?`: `Partial` | undefined): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/dummy_erc721_token.ts:2241](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dummy_erc721_token.ts#L2241)* - -Sends an Ethereum transaction executing this method with the supplied parameters. This is a read/write -Ethereum operation and will cost gas. - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`newOwner` | string | - | -`txData?` | `Partial` \| undefined | Additional data for transaction | - -**Returns:** *`Promise`* - -The hash of the transaction - -#### validateAndSendTransactionAsync - -▸ **validateAndSendTransactionAsync**(`newOwner`: string, `txData?`: `Partial` | undefined): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/dummy_erc721_token.ts:2312](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dummy_erc721_token.ts#L2312)* - -**Parameters:** - -Name | Type | ------- | ------ | -`newOwner` | string | -`txData?` | `Partial` \| undefined | - -**Returns:** *`Promise`* - -
- -# Class: DutchAuctionContract - - -## Constructors - - - -\+ **new DutchAuctionContract**(`address`: string, `supportedProvider`: [SupportedProvider](#supportedprovider), `txDefaults?`: `Partial`, `logDecodeDependencies?`: undefined | object, `deployedBytecode`: string | undefined): *[DutchAuctionContract](#class-dutchauctioncontract)* - -*Overrides void* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/dutch_auction.ts:1257](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dutch_auction.ts#L1257)* - -**Parameters:** - -Name | Type | Default | ------- | ------ | ------ | -`address` | string | - | -`supportedProvider` | [SupportedProvider](#supportedprovider) | - | -`txDefaults?` | `Partial` | - | -`logDecodeDependencies?` | undefined \| object | - | -`deployedBytecode` | string \| undefined | DutchAuctionContract.deployedBytecode | - -**Returns:** *[DutchAuctionContract](#class-dutchauctioncontract)* - -## Properties - -#### abi - -• **abi**: *[ContractAbi](#contractabi)* - - - -Defined in base-contract/lib/src/index.d.ts:27 - -___ - -### address - -• **address**: *string* - - - -Defined in base-contract/lib/src/index.d.ts:28 - -___ - -Args - -• **constructorArgs**: *any[]* - - - -Defined in base-contract/lib/src/index.d.ts:30 - -___ - -### contractName - -• **contractName**: *string* - - - -Defined in base-contract/lib/src/index.d.ts:29 - -___ - -### `Static` deployedBytecode - -▪ **deployedBytecode**: *string | undefined* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/dutch_auction.ts:31](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dutch_auction.ts#L31)* - -## Methods - -### evmExecAsync - -▸ **evmExecAsync**(`input`: `Buffer`): *`Promise`* - - - -Defined in base-contract/lib/src/index.d.ts:42 - -**Parameters:** - -Name | Type | ------- | ------ | -`input` | `Buffer` | - -**Returns:** *`Promise`* - -___ - -### `Static` ABI - -▸ **ABI**(): *[ContractAbi](#contractabi)* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/dutch_auction.ts:965](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dutch_auction.ts#L965)* - -**Returns:** *[ContractAbi](#contractabi)* - -The contract ABI - -___ - -### `Static` deployAsync - -▸ **deployAsync**(`bytecode`: string, `abi`: [ContractAbi](#contractabi), `supportedProvider`: [SupportedProvider](#supportedprovider), `txDefaults`: `Partial`, `logDecodeDependencies`: object, `_exchange`: string): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/dutch_auction.ts:918](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dutch_auction.ts#L918)* - -**Parameters:** - -Name | Type | ------- | ------ | -`bytecode` | string | -`abi` | [ContractAbi](#contractabi) | -`supportedProvider` | [SupportedProvider](#supportedprovider) | -`txDefaults` | `Partial` | -`logDecodeDependencies` | object | -`_exchange` | string | - -**Returns:** *`Promise`* - -___ - -### `Static` deployFrom0xArtifactAsync - -▸ **deployFrom0xArtifactAsync**(`artifact`: `ContractArtifact` | `SimpleContractArtifact`, `supportedProvider`: [SupportedProvider](#supportedprovider), `txDefaults`: `Partial`, `logDecodeDependencies`: object, `_exchange`: string): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/dutch_auction.ts:885](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dutch_auction.ts#L885)* - -**Parameters:** - -Name | Type | ------- | ------ | -`artifact` | `ContractArtifact` \| `SimpleContractArtifact` | -`supportedProvider` | [SupportedProvider](#supportedprovider) | -`txDefaults` | `Partial` | -`logDecodeDependencies` | object | -`_exchange` | string | - -**Returns:** *`Promise`* - -___ - -### `Static` strictArgumentEncodingCheck - -▸ **strictArgumentEncodingCheck**(`inputAbi`: `DataItem`[], `args`: any[]): *string* - - - -Defined in base-contract/lib/src/index.d.ts:41 - -**Parameters:** - -Name | Type | ------- | ------ | -`inputAbi` | `DataItem`[] | -`args` | any[] | - -**Returns:** *string* - -## Object literals - -### getAuctionDetails - -#### ▪ **getAuctionDetails**: *object* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/dutch_auction.ts:35](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dutch_auction.ts#L35)* - -Calculates the Auction Details for the given order - -#### awaitTransactionSuccessAsync - -▸ **awaitTransactionSuccessAsync**(`order`: object, `txData?`: `Partial`, `pollingIntervalMs?`: undefined | number, `timeoutMs?`: undefined | number): *`PromiseWithTransactionHash`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/dutch_auction.ts:88](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dutch_auction.ts#L88)* - -Sends an Ethereum transaction and waits until the transaction has been successfully mined without reverting. -If the transaction was mined, but reverted, an error is thrown. - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`order` | object | The sell order | -`txData?` | `Partial` | Additional data for transaction | -`pollingIntervalMs?` | undefined \| number | Interval at which to poll for success | -`timeoutMs?` | undefined \| number | - | - -**Returns:** *`PromiseWithTransactionHash`* - -A promise that resolves when the transaction is successful - -#### callAsync - -▸ **callAsync**(`order`: object, `callData`: `Partial`, `defaultBlock?`: [BlockParam](#blockparam)): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/dutch_auction.ts:192](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dutch_auction.ts#L192)* - -Sends a read-only call to the contract method. Returns the result that would happen if one were to send an -Ethereum transaction to this method, given the current state of the blockchain. Calls do not cost gas -since they don't modify state. - -**Parameters:** - -Name | Type | Default | Description | ------- | ------ | ------ | ------ | -`order` | object | - | The sell order | -`callData` | `Partial` | {} | - | -`defaultBlock?` | [BlockParam](#blockparam) | - | - | - -**Returns:** *`Promise`* - -AuctionDetails - -#### estimateGasAsync - -▸ **estimateGasAsync**(`order`: object, `txData?`: `Partial` | undefined): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/dutch_auction.ts:127](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dutch_auction.ts#L127)* - -Estimates the gas cost of sending an Ethereum transaction calling this method with these arguments. - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`order` | object | The sell order | -`txData?` | `Partial` \| undefined | Additional data for transaction | - -**Returns:** *`Promise`* - -The hash of the transaction - -#### getABIDecodedReturnData - -▸ **getABIDecodedReturnData**(`returnData`: string): *object* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/dutch_auction.ts:339](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dutch_auction.ts#L339)* - -Decode the ABI-encoded return data from a transaction - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`returnData` | string | the data returned after transaction execution | - -**Returns:** *object* - -An array representing the output results in order. Keynames of nested structs are preserved. - -#### getABIDecodedTransactionData - -▸ **getABIDecodedTransactionData**(`callData`: string): *object* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/dutch_auction.ts:297](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dutch_auction.ts#L297)* - -Decode the ABI-encoded transaction data into its input arguments - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`callData` | string | The ABI-encoded transaction data | - -**Returns:** *object* - -An array representing the input arguments in order. Keynames of nested structs are preserved. - -#### getABIEncodedTransactionData - -▸ **getABIEncodedTransactionData**(`order`: object): *string* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/dutch_auction.ts:271](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dutch_auction.ts#L271)* - -Returns the ABI encoded transaction data needed to send an Ethereum transaction calling this method. Before -sending the Ethereum tx, this encoded tx data can first be sent to a separate signing service or can be used -to create a 0x transaction (see protocol spec for more details). - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`order` | object | The sell order | - -**Returns:** *string* - -The ABI encoded transaction data as a string - -#### sendTransactionAsync - -▸ **sendTransactionAsync**(`order`: object, `txData?`: `Partial` | undefined): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/dutch_auction.ts:43](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dutch_auction.ts#L43)* - -Sends an Ethereum transaction executing this method with the supplied parameters. This is a read/write -Ethereum operation and will cost gas. - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`order` | object | The sell order | -`txData?` | `Partial` \| undefined | Additional data for transaction | - -**Returns:** *`Promise`* - -The hash of the transaction - -#### validateAndSendTransactionAsync - -▸ **validateAndSendTransactionAsync**(`order`: object, `txData?`: `Partial` | undefined): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/dutch_auction.ts:164](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dutch_auction.ts#L164)* - -**Parameters:** - -Name | Type | ------- | ------ | -`order` | object | -`txData?` | `Partial` \| undefined | - -**Returns:** *`Promise`* - -___ - -### matchOrders - -#### ▪ **matchOrders**: *object* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/dutch_auction.ts:382](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dutch_auction.ts#L382)* - -Matches the buy and sell orders at an amount given the following: the current block time, the auction -start time and the auction begin amount. The sell order is a an order at the lowest amount -at the end of the auction. Excess from the match is transferred to the seller. -Over time the price moves from beginAmount to endAmount given the current block.timestamp. -sellOrder.expiryTimeSeconds is the end time of the auction. -sellOrder.takerAssetAmount is the end amount of the auction (lowest possible amount). -sellOrder.makerAssetData is the ABI encoded Asset Proxy data with the following data appended -buyOrder.makerAssetData is the buyers bid on the auction, must meet the amount for the current block timestamp -(uint256 beginTimeSeconds, uint256 beginAmount). -This function reverts in the following scenarios: -* Auction has not started (auctionDetails.currentTimeSeconds < auctionDetails.beginTimeSeconds) -* Auction has expired (auctionDetails.endTimeSeconds < auctionDetails.currentTimeSeconds) -* Amount is invalid: Buy order amount is too low (buyOrder.makerAssetAmount < auctionDetails.currentAmount) -* Amount is invalid: Invalid begin amount (auctionDetails.beginAmount > auctionDetails.endAmount) -* Any failure in the 0x Match Orders - -#### awaitTransactionSuccessAsync - -▸ **awaitTransactionSuccessAsync**(`buyOrder`: object, `sellOrder`: object, `buySignature`: string, `sellSignature`: string, `txData?`: `Partial`, `pollingIntervalMs?`: undefined | number, `timeoutMs?`: undefined | number): *`PromiseWithTransactionHash`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/dutch_auction.ts:463](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dutch_auction.ts#L463)* - -Sends an Ethereum transaction and waits until the transaction has been successfully mined without reverting. -If the transaction was mined, but reverted, an error is thrown. - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`buyOrder` | object | The Buyer's order. This order is for the current expected price of the auction. | -`sellOrder` | object | The Seller's order. This order is for the lowest amount (at the end of the auction). | -`buySignature` | string | Proof that order was created by the buyer. | -`sellSignature` | string | Proof that order was created by the seller. | -`txData?` | `Partial` | Additional data for transaction | -`pollingIntervalMs?` | undefined \| number | Interval at which to poll for success | -`timeoutMs?` | undefined \| number | - | - -**Returns:** *`PromiseWithTransactionHash`* - -A promise that resolves when the transaction is successful - -#### callAsync - -▸ **callAsync**(`buyOrder`: object, `sellOrder`: object, `buySignature`: string, `sellSignature`: string, `callData`: `Partial`, `defaultBlock?`: [BlockParam](#blockparam)): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/dutch_auction.ts:641](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dutch_auction.ts#L641)* - -Sends a read-only call to the contract method. Returns the result that would happen if one were to send an -Ethereum transaction to this method, given the current state of the blockchain. Calls do not cost gas -since they don't modify state. - -**Parameters:** - -Name | Type | Default | Description | ------- | ------ | ------ | ------ | -`buyOrder` | object | - | The Buyer's order. This order is for the current expected price of the auction. | -`sellOrder` | object | - | The Seller's order. This order is for the lowest amount (at the end of the auction). | -`buySignature` | string | - | Proof that order was created by the buyer. | -`sellSignature` | string | - | Proof that order was created by the seller. | -`callData` | `Partial` | {} | - | -`defaultBlock?` | [BlockParam](#blockparam) | - | - | - -**Returns:** *`Promise`* - -matchedFillResults amounts filled and fees paid by maker and taker of matched orders. - -#### estimateGasAsync - -▸ **estimateGasAsync**(`buyOrder`: object, `sellOrder`: object, `buySignature`: string, `sellSignature`: string, `txData?`: `Partial` | undefined): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/dutch_auction.ts:531](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dutch_auction.ts#L531)* - -Estimates the gas cost of sending an Ethereum transaction calling this method with these arguments. - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`buyOrder` | object | The Buyer's order. This order is for the current expected price of the auction. | -`sellOrder` | object | The Seller's order. This order is for the lowest amount (at the end of the auction). | -`buySignature` | string | Proof that order was created by the buyer. | -`sellSignature` | string | Proof that order was created by the seller. | -`txData?` | `Partial` \| undefined | Additional data for transaction | - -**Returns:** *`Promise`* - -The hash of the transaction - -#### getABIDecodedReturnData - -▸ **getABIDecodedReturnData**(`returnData`: string): *object* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/dutch_auction.ts:845](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dutch_auction.ts#L845)* - -Decode the ABI-encoded return data from a transaction - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`returnData` | string | the data returned after transaction execution | - -**Returns:** *object* - -An array representing the output results in order. Keynames of nested structs are preserved. - -#### getABIDecodedTransactionData - -▸ **getABIDecodedTransactionData**(`callData`: string): *object* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/dutch_auction.ts:803](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dutch_auction.ts#L803)* - -Decode the ABI-encoded transaction data into its input arguments - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`callData` | string | The ABI-encoded transaction data | - -**Returns:** *object* - -An array representing the input arguments in order. Keynames of nested structs are preserved. - -#### getABIEncodedTransactionData - -▸ **getABIEncodedTransactionData**(`buyOrder`: object, `sellOrder`: object, `buySignature`: string, `sellSignature`: string): *string* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/dutch_auction.ts:757](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dutch_auction.ts#L757)* - -Returns the ABI encoded transaction data needed to send an Ethereum transaction calling this method. Before -sending the Ethereum tx, this encoded tx data can first be sent to a separate signing service or can be used -to create a 0x transaction (see protocol spec for more details). - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`buyOrder` | object | The Buyer's order. This order is for the current expected price of the auction. | -`sellOrder` | object | The Seller's order. This order is for the lowest amount (at the end of the auction). | -`buySignature` | string | Proof that order was created by the buyer. | -`sellSignature` | string | Proof that order was created by the seller. | - -**Returns:** *string* - -The ABI encoded transaction data as a string - -#### sendTransactionAsync - -▸ **sendTransactionAsync**(`buyOrder`: object, `sellOrder`: object, `buySignature`: string, `sellSignature`: string, `txData?`: `Partial` | undefined): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/dutch_auction.ts:395](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dutch_auction.ts#L395)* - -Sends an Ethereum transaction executing this method with the supplied parameters. This is a read/write -Ethereum operation and will cost gas. - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`buyOrder` | object | The Buyer's order. This order is for the current expected price of the auction. | -`sellOrder` | object | The Seller's order. This order is for the lowest amount (at the end of the auction). | -`buySignature` | string | Proof that order was created by the buyer. | -`sellSignature` | string | Proof that order was created by the seller. | -`txData?` | `Partial` \| undefined | Additional data for transaction | - -**Returns:** *`Promise`* - -The hash of the transaction - -#### validateAndSendTransactionAsync - -▸ **validateAndSendTransactionAsync**(`buyOrder`: object, `sellOrder`: object, `buySignature`: string, `sellSignature`: string, `txData?`: `Partial` | undefined): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/dutch_auction.ts:586](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dutch_auction.ts#L586)* - -**Parameters:** - -Name | Type | ------- | ------ | -`buyOrder` | object | -`sellOrder` | object | -`buySignature` | string | -`sellSignature` | string | -`txData?` | `Partial` \| undefined | - -**Returns:** *`Promise`* - -
- -# Class: ERC1155ProxyContract - - -## Constructors - - - -\+ **new ERC1155ProxyContract**(`address`: string, `supportedProvider`: [SupportedProvider](#supportedprovider), `txDefaults?`: `Partial`, `logDecodeDependencies?`: undefined | object, `deployedBytecode`: string | undefined): *[ERC1155ProxyContract](#class-erc1155proxycontract)* - -*Overrides void* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc1155_proxy.ts:1787](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc1155_proxy.ts#L1787)* - -**Parameters:** - -Name | Type | Default | ------- | ------ | ------ | -`address` | string | - | -`supportedProvider` | [SupportedProvider](#supportedprovider) | - | -`txDefaults?` | `Partial` | - | -`logDecodeDependencies?` | undefined \| object | - | -`deployedBytecode` | string \| undefined | ERC1155ProxyContract.deployedBytecode | - -**Returns:** *[ERC1155ProxyContract](#class-erc1155proxycontract)* - -## Properties - -#### abi - -• **abi**: *[ContractAbi](#contractabi)* - - - -Defined in base-contract/lib/src/index.d.ts:27 - -___ - -### address - -• **address**: *string* - - - -Defined in base-contract/lib/src/index.d.ts:28 - -___ - -Args - -• **constructorArgs**: *any[]* - - - -Defined in base-contract/lib/src/index.d.ts:30 - -___ - -### contractName - -• **contractName**: *string* - - - -Defined in base-contract/lib/src/index.d.ts:29 - -___ - -### `Static` deployedBytecode - -▪ **deployedBytecode**: *string* = "0x608060405234801561001057600080fd5b50600436106100be5760003560e01c8063a85e59e411610076578063b91816111161005b578063b918161114610285578063d39de6e9146102cc578063f2fde38b14610324576100be565b8063a85e59e4146101b2578063ae25532e14610248576100be565b806370712939116100a7578063707129391461013e5780638da5cb5b146101715780639ad2674414610179576100be565b806342f1181e146100c3578063494503d4146100f8575b600080fd5b6100f6600480360360208110156100d957600080fd5b503573ffffffffffffffffffffffffffffffffffffffff16610357565b005b6101156004803603602081101561010e57600080fd5b5035610543565b6040805173ffffffffffffffffffffffffffffffffffffffff9092168252519081900360200190f35b6100f66004803603602081101561015457600080fd5b503573ffffffffffffffffffffffffffffffffffffffff16610577565b61011561086a565b6100f66004803603604081101561018f57600080fd5b5073ffffffffffffffffffffffffffffffffffffffff8135169060200135610886565b6100f6600480360360808110156101c857600080fd5b8101906020810181356401000000008111156101e357600080fd5b8201836020820111156101f557600080fd5b8035906020019184600183028401116401000000008311171561021757600080fd5b919350915073ffffffffffffffffffffffffffffffffffffffff813581169160208101359091169060400135610c37565b610250611138565b604080517fffffffff000000000000000000000000000000000000000000000000000000009092168252519081900360200190f35b6102b86004803603602081101561029b57600080fd5b503573ffffffffffffffffffffffffffffffffffffffff16611159565b604080519115158252519081900360200190f35b6102d461116e565b60408051602080825283518183015283519192839290830191858101910280838360005b838110156103105781810151838201526020016102f8565b505050509050019250505060405180910390f35b6100f66004803603602081101561033a57600080fd5b503573ffffffffffffffffffffffffffffffffffffffff166111dd565b60005473ffffffffffffffffffffffffffffffffffffffff1633146103dd57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601360248201527f4f4e4c595f434f4e54524143545f4f574e455200000000000000000000000000604482015290519081900360640190fd5b73ffffffffffffffffffffffffffffffffffffffff811660009081526001602052604090205460ff161561047257604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601960248201527f5441524745545f414c52454144595f415554484f52495a454400000000000000604482015290519081900360640190fd5b73ffffffffffffffffffffffffffffffffffffffff8116600081815260016020819052604080832080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00168317905560028054928301815583527f405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5ace90910180547fffffffffffffffffffffffff00000000000000000000000000000000000000001684179055513392917f3147867c59d17e8fa9d522465651d44aae0a9e38f902f3475b97e58072f0ed4c91a350565b6002818154811061055057fe5b60009182526020909120015473ffffffffffffffffffffffffffffffffffffffff16905081565b60005473ffffffffffffffffffffffffffffffffffffffff1633146105fd57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601360248201527f4f4e4c595f434f4e54524143545f4f574e455200000000000000000000000000604482015290519081900360640190fd5b73ffffffffffffffffffffffffffffffffffffffff811660009081526001602052604090205460ff1661069157604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601560248201527f5441524745545f4e4f545f415554484f52495a45440000000000000000000000604482015290519081900360640190fd5b73ffffffffffffffffffffffffffffffffffffffff8116600090815260016020526040812080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001690555b600254811015610823578173ffffffffffffffffffffffffffffffffffffffff166002828154811061070b57fe5b60009182526020909120015473ffffffffffffffffffffffffffffffffffffffff16141561081b57600280547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff810190811061076357fe5b6000918252602090912001546002805473ffffffffffffffffffffffffffffffffffffffff909216918390811061079657fe5b600091825260209091200180547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff92909216919091179055600280547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff01906108159082611407565b50610823565b6001016106dd565b50604051339073ffffffffffffffffffffffffffffffffffffffff8316907f1f32c1b084e2de0713b8fb16bd46bb9df710a3dbeae2f3ca93af46e016dcc6b090600090a350565b60005473ffffffffffffffffffffffffffffffffffffffff1681565b60005473ffffffffffffffffffffffffffffffffffffffff16331461090c57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601360248201527f4f4e4c595f434f4e54524143545f4f574e455200000000000000000000000000604482015290519081900360640190fd5b73ffffffffffffffffffffffffffffffffffffffff821660009081526001602052604090205460ff166109a057604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601560248201527f5441524745545f4e4f545f415554484f52495a45440000000000000000000000604482015290519081900360640190fd5b6002548110610a1057604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601360248201527f494e4445585f4f55545f4f465f424f554e445300000000000000000000000000604482015290519081900360640190fd5b8173ffffffffffffffffffffffffffffffffffffffff1660028281548110610a3457fe5b60009182526020909120015473ffffffffffffffffffffffffffffffffffffffff1614610ac257604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601b60248201527f415554484f52495a45445f414444524553535f4d49534d415443480000000000604482015290519081900360640190fd5b73ffffffffffffffffffffffffffffffffffffffff8216600090815260016020526040902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00169055600280547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8101908110610b3d57fe5b6000918252602090912001546002805473ffffffffffffffffffffffffffffffffffffffff9092169183908110610b7057fe5b600091825260209091200180547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff92909216919091179055600280547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0190610bef9082611407565b50604051339073ffffffffffffffffffffffffffffffffffffffff8416907f1f32c1b084e2de0713b8fb16bd46bb9df710a3dbeae2f3ca93af46e016dcc6b090600090a35050565b3360009081526001602052604090205460ff16610cb557604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601560248201527f53454e4445525f4e4f545f415554484f52495a45440000000000000000000000604482015290519081900360640190fd5b60006060806060610d0b60048a8a90508b8b8080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525092949392505063ffffffff6112c3169050565b8060200190516080811015610d1f57600080fd5b815160208301805160405192949293830192919084640100000000821115610d4657600080fd5b908301906020820185811115610d5b57600080fd5b8251866020820283011164010000000082111715610d7857600080fd5b82525081516020918201928201910280838360005b83811015610da5578181015183820152602001610d8d565b5050505090500160405260200180516040519392919084640100000000821115610dce57600080fd5b908301906020820185811115610de357600080fd5b8251866020820283011164010000000082111715610e0057600080fd5b82525081516020918201928201910280838360005b83811015610e2d578181015183820152602001610e15565b5050505090500160405260200180516040519392919084640100000000821115610e5657600080fd5b908301906020820185811115610e6b57600080fd5b8251640100000000811182820188101715610e8557600080fd5b82525081516020918201929091019080838360005b83811015610eb2578181015183820152602001610e9a565b50505050905090810190601f168015610edf5780820380516001836020036101000a031916815260200191505b506040525050509350935093509350600082519050606081604051908082528060200260200182016040528015610f20578160200160208202803883390190505b50905060005b828114610f6957610f4a858281518110610f3c57fe5b602002602001015189611306565b828281518110610f5657fe5b6020908102919091010152600101610f26565b508573ffffffffffffffffffffffffffffffffffffffff16632eb2c2d68a8a8885886040518663ffffffff1660e01b8152600401808673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001806020018060200180602001848103845287818151815260200191508051906020019060200280838360005b8381101561104657818101518382015260200161102e565b50505050905001848103835286818151815260200191508051906020019060200280838360005b8381101561108557818101518382015260200161106d565b50505050905001848103825285818151815260200191508051906020019080838360005b838110156110c15781810151838201526020016110a9565b50505050905090810190601f1680156110ee5780820380516001836020036101000a031916815260200191505b5098505050505050505050600060405180830381600087803b15801561111357600080fd5b505af1158015611127573d6000803e3d6000fd5b505050505050505050505050505050565b6000604051808061144f603091396030019050604051809103902090505b90565b60016020526000908152604090205460ff1681565b606060028054806020026020016040519081016040528092919081815260200182805480156111d357602002820191906000526020600020905b815473ffffffffffffffffffffffffffffffffffffffff1681526001909101906020018083116111a8575b5050505050905090565b60005473ffffffffffffffffffffffffffffffffffffffff16331461126357604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601360248201527f4f4e4c595f434f4e54524143545f4f574e455200000000000000000000000000604482015290519081900360640190fd5b73ffffffffffffffffffffffffffffffffffffffff8116156112c057600080547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff83161790555b50565b6060818311156112e1576112e16112dc60008585611340565b6113df565b83518211156112fa576112fa6112dc6001848751611340565b50819003910190815290565b6000826113155750600061133a565b8282028284828161132257fe5b0414611337576113376112dc600186866113e7565b90505b92915050565b6060632800659560e01b8484846040516024018084600781111561136057fe5b60ff1681526020018381526020018281526020019350505050604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff838183161783525050505090509392505050565b805160208201fd5b606063e946c1bb60e01b8484846040516024018084600381111561136057fe5b81548183558181111561142b5760008381526020902061142b918101908301611430565b505050565b61115691905b8082111561144a5760008155600101611436565b509056fe4552433131353541737365747328616464726573732c75696e743235365b5d2c75696e743235365b5d2c627974657329a265627a7a72315820be5e6597d38133fd52aac17250498790f106d5d4d0e4ab30d0e854a2db1e2ffe64736f6c634300050c0032" - -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc1155_proxy.ts:51](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc1155_proxy.ts#L51)* - -## Methods - -### evmExecAsync - -▸ **evmExecAsync**(`input`: `Buffer`): *`Promise`* - - - -Defined in base-contract/lib/src/index.d.ts:42 - -**Parameters:** - -Name | Type | ------- | ------ | -`input` | `Buffer` | - -**Returns:** *`Promise`* - -___ - -### getLogsAsync - -▸ **getLogsAsync**<**ArgsType**>(`eventName`: [ERC1155ProxyEvents](#enumeration-erc1155proxyevents), `blockRange`: `BlockRange`, `indexFilterValues`: `IndexedFilterValues`): *`Promise>>`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc1155_proxy.ts:1771](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc1155_proxy.ts#L1771)* - -Gets historical logs without creating a subscription - -**Type parameters:** - -▪ **ArgsType**: *[ERC1155ProxyEventArgs](#erc1155proxyeventargs)* - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`eventName` | [ERC1155ProxyEvents](#enumeration-erc1155proxyevents) | The ERC1155Proxy 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 - -___ - -### subscribe - -▸ **subscribe**<**ArgsType**>(`eventName`: [ERC1155ProxyEvents](#enumeration-erc1155proxyevents), `indexFilterValues`: `IndexedFilterValues`, `callback`: [EventCallback](#eventcallback)‹*`ArgsType`*›, `isVerbose`: boolean, `blockPollingIntervalMs?`: undefined | number): *string* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc1155_proxy.ts:1729](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc1155_proxy.ts#L1729)* - -Subscribe to an event type emitted by the ERC1155Proxy contract. - -**Type parameters:** - -▪ **ArgsType**: *[ERC1155ProxyEventArgs](#erc1155proxyeventargs)* - -**Parameters:** - -Name | Type | Default | Description | ------- | ------ | ------ | ------ | -`eventName` | [ERC1155ProxyEvents](#enumeration-erc1155proxyevents) | - | The ERC1155Proxy 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 - -___ - -### unsubscribe - -▸ **unsubscribe**(`subscriptionToken`: string): *void* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc1155_proxy.ts:1754](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc1155_proxy.ts#L1754)* - -Cancel a subscription - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`subscriptionToken` | string | Subscription token returned by `subscribe()` | - -**Returns:** *void* - -___ - -### unsubscribeAll - -▸ **unsubscribeAll**(): *void* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc1155_proxy.ts:1760](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc1155_proxy.ts#L1760)* - -Cancels all existing subscriptions - -**Returns:** *void* - -___ - -### `Static` ABI - -▸ **ABI**(): *[ContractAbi](#contractabi)* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc1155_proxy.ts:1513](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc1155_proxy.ts#L1513)* - -**Returns:** *[ContractAbi](#contractabi)* - -The contract ABI - -___ - -### `Static` deployAsync - -▸ **deployAsync**(`bytecode`: string, `abi`: [ContractAbi](#contractabi), `supportedProvider`: [SupportedProvider](#supportedprovider), `txDefaults`: `Partial`, `logDecodeDependencies`: object): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc1155_proxy.ts:1471](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc1155_proxy.ts#L1471)* - -**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 [abi-gen-wrappers/src/generated-wrappers/erc1155_proxy.ts:1446](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc1155_proxy.ts#L1446)* - -**Parameters:** - -Name | Type | ------- | ------ | -`artifact` | `ContractArtifact` \| `SimpleContractArtifact` | -`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:41 - -**Parameters:** - -Name | Type | ------- | ------ | -`inputAbi` | `DataItem`[] | -`args` | any[] | - -**Returns:** *string* - -## Object literals - -### addAuthorizedAddress - -#### ▪ **addAuthorizedAddress**: *object* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc1155_proxy.ts:56](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc1155_proxy.ts#L56)* - -Authorizes an address. - -#### awaitTransactionSuccessAsync - -▸ **awaitTransactionSuccessAsync**(`target`: string, `txData?`: `Partial`, `pollingIntervalMs?`: undefined | number, `timeoutMs?`: undefined | number): *`PromiseWithTransactionHash`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc1155_proxy.ts:91](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc1155_proxy.ts#L91)* - -Sends an Ethereum transaction and waits until the transaction has been successfully mined without reverting. -If the transaction was mined, but reverted, an error is thrown. - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`target` | string | Address to authorize. | -`txData?` | `Partial` | Additional data for transaction | -`pollingIntervalMs?` | undefined \| number | Interval at which to poll for success | -`timeoutMs?` | undefined \| number | - | - -**Returns:** *`PromiseWithTransactionHash`* - -A promise that resolves when the transaction is successful - -#### callAsync - -▸ **callAsync**(`target`: string, `callData`: `Partial`, `defaultBlock?`: [BlockParam](#blockparam)): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc1155_proxy.ts:148](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc1155_proxy.ts#L148)* - -Sends a read-only call to the contract method. Returns the result that would happen if one were to send an -Ethereum transaction to this method, given the current state of the blockchain. Calls do not cost gas -since they don't modify state. - -**Parameters:** - -Name | Type | Default | Description | ------- | ------ | ------ | ------ | -`target` | string | - | Address to authorize. | -`callData` | `Partial` | {} | - | -`defaultBlock?` | [BlockParam](#blockparam) | - | - | - -**Returns:** *`Promise`* - -#### estimateGasAsync - -▸ **estimateGasAsync**(`target`: string, `txData?`: `Partial` | undefined): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc1155_proxy.ts:118](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc1155_proxy.ts#L118)* - -Estimates the gas cost of sending an Ethereum transaction calling this method with these arguments. - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`target` | string | Address to authorize. | -`txData?` | `Partial` \| undefined | Additional data for transaction | - -**Returns:** *`Promise`* - -The hash of the transaction - -#### getABIDecodedReturnData - -▸ **getABIDecodedReturnData**(`returnData`: string): *void* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc1155_proxy.ts:217](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc1155_proxy.ts#L217)* - -Decode the ABI-encoded return data from a transaction - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`returnData` | string | the data returned after transaction execution | - -**Returns:** *void* - -An array representing the output results in order. Keynames of nested structs are preserved. - -#### getABIDecodedTransactionData - -▸ **getABIDecodedTransactionData**(`callData`: string): *[string]* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc1155_proxy.ts:205](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc1155_proxy.ts#L205)* - -Decode the ABI-encoded transaction data into its input arguments - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`callData` | string | The ABI-encoded transaction data | - -**Returns:** *[string]* - -An array representing the input arguments in order. Keynames of nested structs are preserved. - -#### getABIEncodedTransactionData - -▸ **getABIEncodedTransactionData**(`target`: string): *string* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc1155_proxy.ts:192](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc1155_proxy.ts#L192)* - -Returns the ABI encoded transaction data needed to send an Ethereum transaction calling this method. Before -sending the Ethereum tx, this encoded tx data can first be sent to a separate signing service or can be used -to create a 0x transaction (see protocol spec for more details). - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`target` | string | Address to authorize. | - -**Returns:** *string* - -The ABI encoded transaction data as a string - -#### sendTransactionAsync - -▸ **sendTransactionAsync**(`target`: string, `txData?`: `Partial` | undefined): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc1155_proxy.ts:64](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc1155_proxy.ts#L64)* - -Sends an Ethereum transaction executing this method with the supplied parameters. This is a read/write -Ethereum operation and will cost gas. - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`target` | string | Address to authorize. | -`txData?` | `Partial` \| undefined | Additional data for transaction | - -**Returns:** *`Promise`* - -The hash of the transaction - -#### validateAndSendTransactionAsync - -▸ **validateAndSendTransactionAsync**(`target`: string, `txData?`: `Partial` | undefined): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc1155_proxy.ts:137](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc1155_proxy.ts#L137)* - -**Parameters:** - -Name | Type | ------- | ------ | -`target` | string | -`txData?` | `Partial` \| undefined | - -**Returns:** *`Promise`* - -___ - -### authorities - -#### ▪ **authorities**: *object* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc1155_proxy.ts:225](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc1155_proxy.ts#L225)* - -#### callAsync - -▸ **callAsync**(`index_0`: `BigNumber`, `callData`: `Partial`, `defaultBlock?`: [BlockParam](#blockparam)): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc1155_proxy.ts:231](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc1155_proxy.ts#L231)* - -Sends a read-only call to the contract method. Returns the result that would happen if one were to send an -Ethereum transaction to this method, given the current state of the blockchain. Calls do not cost gas -since they don't modify state. - -**Parameters:** - -Name | Type | Default | ------- | ------ | ------ | -`index_0` | `BigNumber` | - | -`callData` | `Partial` | {} | -`defaultBlock?` | [BlockParam](#blockparam) | - | - -**Returns:** *`Promise`* - -#### getABIDecodedReturnData - -▸ **getABIDecodedReturnData**(`returnData`: string): *string* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc1155_proxy.ts:301](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc1155_proxy.ts#L301)* - -Decode the ABI-encoded return data from a transaction - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`returnData` | string | the data returned after transaction execution | - -**Returns:** *string* - -An array representing the output results in order. Keynames of nested structs are preserved. - -#### getABIDecodedTransactionData - -▸ **getABIDecodedTransactionData**(`callData`: string): *`BigNumber`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc1155_proxy.ts:289](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc1155_proxy.ts#L289)* - -Decode the ABI-encoded transaction data into its input arguments - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`callData` | string | The ABI-encoded transaction data | - -**Returns:** *`BigNumber`* - -An array representing the input arguments in order. Keynames of nested structs are preserved. - -#### getABIEncodedTransactionData - -▸ **getABIEncodedTransactionData**(`index_0`: `BigNumber`): *string* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc1155_proxy.ts:278](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc1155_proxy.ts#L278)* - -Returns the ABI encoded transaction data needed to send an Ethereum transaction calling this method. Before -sending the Ethereum tx, this encoded tx data can first be sent to a separate signing service or can be used -to create a 0x transaction (see protocol spec for more details). - -**Parameters:** - -Name | Type | ------- | ------ | -`index_0` | `BigNumber` | - -**Returns:** *string* - -The ABI encoded transaction data as a string - -___ - -### authorized - -#### ▪ **authorized**: *object* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc1155_proxy.ts:309](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc1155_proxy.ts#L309)* - -#### callAsync - -▸ **callAsync**(`index_0`: string, `callData`: `Partial`, `defaultBlock?`: [BlockParam](#blockparam)): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc1155_proxy.ts:315](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc1155_proxy.ts#L315)* - -Sends a read-only call to the contract method. Returns the result that would happen if one were to send an -Ethereum transaction to this method, given the current state of the blockchain. Calls do not cost gas -since they don't modify state. - -**Parameters:** - -Name | Type | Default | ------- | ------ | ------ | -`index_0` | string | - | -`callData` | `Partial` | {} | -`defaultBlock?` | [BlockParam](#blockparam) | - | - -**Returns:** *`Promise`* - -#### getABIDecodedReturnData - -▸ **getABIDecodedReturnData**(`returnData`: string): *boolean* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc1155_proxy.ts:387](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc1155_proxy.ts#L387)* - -Decode the ABI-encoded return data from a transaction - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`returnData` | string | the data returned after transaction execution | - -**Returns:** *boolean* - -An array representing the output results in order. Keynames of nested structs are preserved. - -#### getABIDecodedTransactionData - -▸ **getABIDecodedTransactionData**(`callData`: string): *string* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc1155_proxy.ts:375](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc1155_proxy.ts#L375)* - -Decode the ABI-encoded transaction data into its input arguments - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`callData` | string | The ABI-encoded transaction data | - -**Returns:** *string* - -An array representing the input arguments in order. Keynames of nested structs are preserved. - -#### getABIEncodedTransactionData - -▸ **getABIEncodedTransactionData**(`index_0`: string): *string* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc1155_proxy.ts:362](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc1155_proxy.ts#L362)* - -Returns the ABI encoded transaction data needed to send an Ethereum transaction calling this method. Before -sending the Ethereum tx, this encoded tx data can first be sent to a separate signing service or can be used -to create a 0x transaction (see protocol spec for more details). - -**Parameters:** - -Name | Type | ------- | ------ | -`index_0` | string | - -**Returns:** *string* - -The ABI encoded transaction data as a string - -___ - -### getAuthorizedAddresses - -#### ▪ **getAuthorizedAddresses**: *object* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc1155_proxy.ts:398](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc1155_proxy.ts#L398)* - -Gets all authorized addresses. - -#### callAsync - -▸ **callAsync**(`callData`: `Partial`, `defaultBlock?`: [BlockParam](#blockparam)): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc1155_proxy.ts:405](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc1155_proxy.ts#L405)* - -Sends a read-only call to the contract method. Returns the result that would happen if one were to send an -Ethereum transaction to this method, given the current state of the blockchain. Calls do not cost gas -since they don't modify state. - -**Parameters:** - -Name | Type | Default | ------- | ------ | ------ | -`callData` | `Partial` | {} | -`defaultBlock?` | [BlockParam](#blockparam) | - | - -**Returns:** *`Promise`* - -Array of authorized addresses. - -#### getABIDecodedReturnData - -▸ **getABIDecodedReturnData**(`returnData`: string): *string[]* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc1155_proxy.ts:469](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc1155_proxy.ts#L469)* - -Decode the ABI-encoded return data from a transaction - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`returnData` | string | the data returned after transaction execution | - -**Returns:** *string[]* - -An array representing the output results in order. Keynames of nested structs are preserved. - -#### getABIDecodedTransactionData - -▸ **getABIDecodedTransactionData**(`callData`: string): *void* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc1155_proxy.ts:457](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc1155_proxy.ts#L457)* - -Decode the ABI-encoded transaction data into its input arguments - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`callData` | string | The ABI-encoded transaction data | - -**Returns:** *void* - -An array representing the input arguments in order. Keynames of nested structs are preserved. - -#### getABIEncodedTransactionData - -▸ **getABIEncodedTransactionData**(): *string* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc1155_proxy.ts:447](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc1155_proxy.ts#L447)* - -Returns the ABI encoded transaction data needed to send an Ethereum transaction calling this method. Before -sending the Ethereum tx, this encoded tx data can first be sent to a separate signing service or can be used -to create a 0x transaction (see protocol spec for more details). - -**Returns:** *string* - -The ABI encoded transaction data as a string - -___ - -### getProxyId - -#### ▪ **getProxyId**: *object* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc1155_proxy.ts:480](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc1155_proxy.ts#L480)* - -Gets the proxy id associated with the proxy address. - -#### callAsync - -▸ **callAsync**(`callData`: `Partial`, `defaultBlock?`: [BlockParam](#blockparam)): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc1155_proxy.ts:487](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc1155_proxy.ts#L487)* - -Sends a read-only call to the contract method. Returns the result that would happen if one were to send an -Ethereum transaction to this method, given the current state of the blockchain. Calls do not cost gas -since they don't modify state. - -**Parameters:** - -Name | Type | Default | ------- | ------ | ------ | -`callData` | `Partial` | {} | -`defaultBlock?` | [BlockParam](#blockparam) | - | - -**Returns:** *`Promise`* - -Proxy id. - -#### getABIDecodedReturnData - -▸ **getABIDecodedReturnData**(`returnData`: string): *string* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc1155_proxy.ts:543](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc1155_proxy.ts#L543)* - -Decode the ABI-encoded return data from a transaction - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`returnData` | string | the data returned after transaction execution | - -**Returns:** *string* - -An array representing the output results in order. Keynames of nested structs are preserved. - -#### getABIDecodedTransactionData - -▸ **getABIDecodedTransactionData**(`callData`: string): *void* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc1155_proxy.ts:531](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc1155_proxy.ts#L531)* - -Decode the ABI-encoded transaction data into its input arguments - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`callData` | string | The ABI-encoded transaction data | - -**Returns:** *void* - -An array representing the input arguments in order. Keynames of nested structs are preserved. - -#### getABIEncodedTransactionData - -▸ **getABIEncodedTransactionData**(): *string* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc1155_proxy.ts:521](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc1155_proxy.ts#L521)* - -Returns the ABI encoded transaction data needed to send an Ethereum transaction calling this method. Before -sending the Ethereum tx, this encoded tx data can first be sent to a separate signing service or can be used -to create a 0x transaction (see protocol spec for more details). - -**Returns:** *string* - -The ABI encoded transaction data as a string - -___ - -### owner - -#### ▪ **owner**: *object* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc1155_proxy.ts:551](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc1155_proxy.ts#L551)* - -#### callAsync - -▸ **callAsync**(`callData`: `Partial`, `defaultBlock?`: [BlockParam](#blockparam)): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc1155_proxy.ts:557](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc1155_proxy.ts#L557)* - -Sends a read-only call to the contract method. Returns the result that would happen if one were to send an -Ethereum transaction to this method, given the current state of the blockchain. Calls do not cost gas -since they don't modify state. - -**Parameters:** - -Name | Type | Default | ------- | ------ | ------ | -`callData` | `Partial` | {} | -`defaultBlock?` | [BlockParam](#blockparam) | - | - -**Returns:** *`Promise`* - -#### getABIDecodedReturnData - -▸ **getABIDecodedReturnData**(`returnData`: string): *string* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc1155_proxy.ts:621](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc1155_proxy.ts#L621)* - -Decode the ABI-encoded return data from a transaction - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`returnData` | string | the data returned after transaction execution | - -**Returns:** *string* - -An array representing the output results in order. Keynames of nested structs are preserved. - -#### getABIDecodedTransactionData - -▸ **getABIDecodedTransactionData**(`callData`: string): *void* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc1155_proxy.ts:609](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc1155_proxy.ts#L609)* - -Decode the ABI-encoded transaction data into its input arguments - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`callData` | string | The ABI-encoded transaction data | - -**Returns:** *void* - -An array representing the input arguments in order. Keynames of nested structs are preserved. - -#### getABIEncodedTransactionData - -▸ **getABIEncodedTransactionData**(): *string* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc1155_proxy.ts:599](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc1155_proxy.ts#L599)* - -Returns the ABI encoded transaction data needed to send an Ethereum transaction calling this method. Before -sending the Ethereum tx, this encoded tx data can first be sent to a separate signing service or can be used -to create a 0x transaction (see protocol spec for more details). - -**Returns:** *string* - -The ABI encoded transaction data as a string - -___ - -### removeAuthorizedAddress - -#### ▪ **removeAuthorizedAddress**: *object* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc1155_proxy.ts:632](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc1155_proxy.ts#L632)* - -Removes authorizion of an address. - -#### awaitTransactionSuccessAsync - -▸ **awaitTransactionSuccessAsync**(`target`: string, `txData?`: `Partial`, `pollingIntervalMs?`: undefined | number, `timeoutMs?`: undefined | number): *`PromiseWithTransactionHash`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc1155_proxy.ts:667](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc1155_proxy.ts#L667)* - -Sends an Ethereum transaction and waits until the transaction has been successfully mined without reverting. -If the transaction was mined, but reverted, an error is thrown. - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`target` | string | Address to remove authorization from. | -`txData?` | `Partial` | Additional data for transaction | -`pollingIntervalMs?` | undefined \| number | Interval at which to poll for success | -`timeoutMs?` | undefined \| number | - | - -**Returns:** *`PromiseWithTransactionHash`* - -A promise that resolves when the transaction is successful - -#### callAsync - -▸ **callAsync**(`target`: string, `callData`: `Partial`, `defaultBlock?`: [BlockParam](#blockparam)): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc1155_proxy.ts:724](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc1155_proxy.ts#L724)* - -Sends a read-only call to the contract method. Returns the result that would happen if one were to send an -Ethereum transaction to this method, given the current state of the blockchain. Calls do not cost gas -since they don't modify state. - -**Parameters:** - -Name | Type | Default | Description | ------- | ------ | ------ | ------ | -`target` | string | - | Address to remove authorization from. | -`callData` | `Partial` | {} | - | -`defaultBlock?` | [BlockParam](#blockparam) | - | - | - -**Returns:** *`Promise`* - -#### estimateGasAsync - -▸ **estimateGasAsync**(`target`: string, `txData?`: `Partial` | undefined): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc1155_proxy.ts:694](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc1155_proxy.ts#L694)* - -Estimates the gas cost of sending an Ethereum transaction calling this method with these arguments. - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`target` | string | Address to remove authorization from. | -`txData?` | `Partial` \| undefined | Additional data for transaction | - -**Returns:** *`Promise`* - -The hash of the transaction - -#### getABIDecodedReturnData - -▸ **getABIDecodedReturnData**(`returnData`: string): *void* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc1155_proxy.ts:793](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc1155_proxy.ts#L793)* - -Decode the ABI-encoded return data from a transaction - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`returnData` | string | the data returned after transaction execution | - -**Returns:** *void* - -An array representing the output results in order. Keynames of nested structs are preserved. - -#### getABIDecodedTransactionData - -▸ **getABIDecodedTransactionData**(`callData`: string): *[string]* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc1155_proxy.ts:781](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc1155_proxy.ts#L781)* - -Decode the ABI-encoded transaction data into its input arguments - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`callData` | string | The ABI-encoded transaction data | - -**Returns:** *[string]* - -An array representing the input arguments in order. Keynames of nested structs are preserved. - -#### getABIEncodedTransactionData - -▸ **getABIEncodedTransactionData**(`target`: string): *string* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc1155_proxy.ts:768](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc1155_proxy.ts#L768)* - -Returns the ABI encoded transaction data needed to send an Ethereum transaction calling this method. Before -sending the Ethereum tx, this encoded tx data can first be sent to a separate signing service or can be used -to create a 0x transaction (see protocol spec for more details). - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`target` | string | Address to remove authorization from. | - -**Returns:** *string* - -The ABI encoded transaction data as a string - -#### sendTransactionAsync - -▸ **sendTransactionAsync**(`target`: string, `txData?`: `Partial` | undefined): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc1155_proxy.ts:640](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc1155_proxy.ts#L640)* - -Sends an Ethereum transaction executing this method with the supplied parameters. This is a read/write -Ethereum operation and will cost gas. - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`target` | string | Address to remove authorization from. | -`txData?` | `Partial` \| undefined | Additional data for transaction | - -**Returns:** *`Promise`* - -The hash of the transaction - -#### validateAndSendTransactionAsync - -▸ **validateAndSendTransactionAsync**(`target`: string, `txData?`: `Partial` | undefined): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc1155_proxy.ts:713](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc1155_proxy.ts#L713)* - -**Parameters:** - -Name | Type | ------- | ------ | -`target` | string | -`txData?` | `Partial` \| undefined | - -**Returns:** *`Promise`* - -___ - -### removeAuthorizedAddressAtIndex - -#### ▪ **removeAuthorizedAddressAtIndex**: *object* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc1155_proxy.ts:804](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc1155_proxy.ts#L804)* - -Removes authorizion of an address. - -#### awaitTransactionSuccessAsync - -▸ **awaitTransactionSuccessAsync**(`target`: string, `index`: `BigNumber`, `txData?`: `Partial`, `pollingIntervalMs?`: undefined | number, `timeoutMs?`: undefined | number): *`PromiseWithTransactionHash`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc1155_proxy.ts:849](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc1155_proxy.ts#L849)* - -Sends an Ethereum transaction and waits until the transaction has been successfully mined without reverting. -If the transaction was mined, but reverted, an error is thrown. - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`target` | string | Address to remove authorization from. | -`index` | `BigNumber` | Index of target in authorities array. | -`txData?` | `Partial` | Additional data for transaction | -`pollingIntervalMs?` | undefined \| number | Interval at which to poll for success | -`timeoutMs?` | undefined \| number | - | - -**Returns:** *`PromiseWithTransactionHash`* - -A promise that resolves when the transaction is successful - -#### callAsync - -▸ **callAsync**(`target`: string, `index`: `BigNumber`, `callData`: `Partial`, `defaultBlock?`: [BlockParam](#blockparam)): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc1155_proxy.ts:930](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc1155_proxy.ts#L930)* - -Sends a read-only call to the contract method. Returns the result that would happen if one were to send an -Ethereum transaction to this method, given the current state of the blockchain. Calls do not cost gas -since they don't modify state. - -**Parameters:** - -Name | Type | Default | Description | ------- | ------ | ------ | ------ | -`target` | string | - | Address to remove authorization from. | -`index` | `BigNumber` | - | Index of target in authorities array. | -`callData` | `Partial` | {} | - | -`defaultBlock?` | [BlockParam](#blockparam) | - | - | - -**Returns:** *`Promise`* - -#### estimateGasAsync - -▸ **estimateGasAsync**(`target`: string, `index`: `BigNumber`, `txData?`: `Partial` | undefined): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc1155_proxy.ts:883](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc1155_proxy.ts#L883)* - -Estimates the gas cost of sending an Ethereum transaction calling this method with these arguments. - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`target` | string | Address to remove authorization from. | -`index` | `BigNumber` | Index of target in authorities array. | -`txData?` | `Partial` \| undefined | Additional data for transaction | - -**Returns:** *`Promise`* - -The hash of the transaction - -#### getABIDecodedReturnData - -▸ **getABIDecodedReturnData**(`returnData`: string): *void* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc1155_proxy.ts:1011](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc1155_proxy.ts#L1011)* - -Decode the ABI-encoded return data from a transaction - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`returnData` | string | the data returned after transaction execution | - -**Returns:** *void* - -An array representing the output results in order. Keynames of nested structs are preserved. - -#### getABIDecodedTransactionData - -▸ **getABIDecodedTransactionData**(`callData`: string): *[string, `BigNumber`]* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc1155_proxy.ts:999](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc1155_proxy.ts#L999)* - -Decode the ABI-encoded transaction data into its input arguments - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`callData` | string | The ABI-encoded transaction data | - -**Returns:** *[string, `BigNumber`]* - -An array representing the input arguments in order. Keynames of nested structs are preserved. - -#### getABIEncodedTransactionData - -▸ **getABIEncodedTransactionData**(`target`: string, `index`: `BigNumber`): *string* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc1155_proxy.ts:984](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc1155_proxy.ts#L984)* - -Returns the ABI encoded transaction data needed to send an Ethereum transaction calling this method. Before -sending the Ethereum tx, this encoded tx data can first be sent to a separate signing service or can be used -to create a 0x transaction (see protocol spec for more details). - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`target` | string | Address to remove authorization from. | -`index` | `BigNumber` | Index of target in authorities array. | - -**Returns:** *string* - -The ABI encoded transaction data as a string - -#### sendTransactionAsync - -▸ **sendTransactionAsync**(`target`: string, `index`: `BigNumber`, `txData?`: `Partial` | undefined): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc1155_proxy.ts:813](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc1155_proxy.ts#L813)* - -Sends an Ethereum transaction executing this method with the supplied parameters. This is a read/write -Ethereum operation and will cost gas. - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`target` | string | Address to remove authorization from. | -`index` | `BigNumber` | Index of target in authorities array. | -`txData?` | `Partial` \| undefined | Additional data for transaction | - -**Returns:** *`Promise`* - -The hash of the transaction - -#### validateAndSendTransactionAsync - -▸ **validateAndSendTransactionAsync**(`target`: string, `index`: `BigNumber`, `txData?`: `Partial` | undefined): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc1155_proxy.ts:910](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc1155_proxy.ts#L910)* - -**Parameters:** - -Name | Type | ------- | ------ | -`target` | string | -`index` | `BigNumber` | -`txData?` | `Partial` \| undefined | - -**Returns:** *`Promise`* - -___ - -### transferFrom - -#### ▪ **transferFrom**: *object* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc1155_proxy.ts:1022](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc1155_proxy.ts#L1022)* - -Transfers batch of ERC1155 assets. Either succeeds or throws. - -#### awaitTransactionSuccessAsync - -▸ **awaitTransactionSuccessAsync**(`assetData`: string, `from`: string, `to`: string, `amount`: `BigNumber`, `txData?`: `Partial`, `pollingIntervalMs?`: undefined | number, `timeoutMs?`: undefined | number): *`PromiseWithTransactionHash`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc1155_proxy.ts:1081](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc1155_proxy.ts#L1081)* - -Sends an Ethereum transaction and waits until the transaction has been successfully mined without reverting. -If the transaction was mined, but reverted, an error is thrown. - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`assetData` | string | Byte array encoded with ERC1155 token address, array of ids, array of values, and callback data. | -`from` | string | Address to transfer assets from. | -`to` | string | Address to transfer assets to. | -`amount` | `BigNumber` | Amount that will be multiplied with each element of `assetData.values` to scale the values that will be transferred. | -`txData?` | `Partial` | Additional data for transaction | -`pollingIntervalMs?` | undefined \| number | Interval at which to poll for success | -`timeoutMs?` | undefined \| number | - | - -**Returns:** *`PromiseWithTransactionHash`* - -A promise that resolves when the transaction is successful - -#### callAsync - -▸ **callAsync**(`assetData`: string, `from`: string, `to`: string, `amount`: `BigNumber`, `callData`: `Partial`, `defaultBlock?`: [BlockParam](#blockparam)): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc1155_proxy.ts:1180](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc1155_proxy.ts#L1180)* - -Sends a read-only call to the contract method. Returns the result that would happen if one were to send an -Ethereum transaction to this method, given the current state of the blockchain. Calls do not cost gas -since they don't modify state. - -**Parameters:** - -Name | Type | Default | Description | ------- | ------ | ------ | ------ | -`assetData` | string | - | Byte array encoded with ERC1155 token address, array of ids, array of values, and callback data. | -`from` | string | - | Address to transfer assets from. | -`to` | string | - | Address to transfer assets to. | -`amount` | `BigNumber` | - | Amount that will be multiplied with each element of `assetData.values` to scale the values that will be transferred. | -`callData` | `Partial` | {} | - | -`defaultBlock?` | [BlockParam](#blockparam) | - | - | - -**Returns:** *`Promise`* - -#### estimateGasAsync - -▸ **estimateGasAsync**(`assetData`: string, `from`: string, `to`: string, `amount`: `BigNumber`, `txData?`: `Partial` | undefined): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc1155_proxy.ts:1125](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc1155_proxy.ts#L1125)* - -Estimates the gas cost of sending an Ethereum transaction calling this method with these arguments. - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`assetData` | string | Byte array encoded with ERC1155 token address, array of ids, array of values, and callback data. | -`from` | string | Address to transfer assets from. | -`to` | string | Address to transfer assets to. | -`amount` | `BigNumber` | Amount that will be multiplied with each element of `assetData.values` to scale the values that will be transferred. | -`txData?` | `Partial` \| undefined | Additional data for transaction | - -**Returns:** *`Promise`* - -The hash of the transaction - -#### getABIDecodedReturnData - -▸ **getABIDecodedReturnData**(`returnData`: string): *void* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc1155_proxy.ts:1273](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc1155_proxy.ts#L1273)* - -Decode the ABI-encoded return data from a transaction - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`returnData` | string | the data returned after transaction execution | - -**Returns:** *void* - -An array representing the output results in order. Keynames of nested structs are preserved. - -#### getABIDecodedTransactionData - -▸ **getABIDecodedTransactionData**(`callData`: string): *[string, string, string, `BigNumber`]* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc1155_proxy.ts:1261](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc1155_proxy.ts#L1261)* - -Decode the ABI-encoded transaction data into its input arguments - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`callData` | string | The ABI-encoded transaction data | - -**Returns:** *[string, string, string, `BigNumber`]* - -An array representing the input arguments in order. Keynames of nested structs are preserved. - -#### getABIEncodedTransactionData - -▸ **getABIEncodedTransactionData**(`assetData`: string, `from`: string, `to`: string, `amount`: `BigNumber`): *string* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc1155_proxy.ts:1244](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc1155_proxy.ts#L1244)* - -Returns the ABI encoded transaction data needed to send an Ethereum transaction calling this method. Before -sending the Ethereum tx, this encoded tx data can first be sent to a separate signing service or can be used -to create a 0x transaction (see protocol spec for more details). - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`assetData` | string | Byte array encoded with ERC1155 token address, array of ids, array of values, and callback data. | -`from` | string | Address to transfer assets from. | -`to` | string | Address to transfer assets to. | -`amount` | `BigNumber` | Amount that will be multiplied with each element of `assetData.values` to scale the values that will be transferred. | - -**Returns:** *string* - -The ABI encoded transaction data as a string - -#### sendTransactionAsync - -▸ **sendTransactionAsync**(`assetData`: string, `from`: string, `to`: string, `amount`: `BigNumber`, `txData?`: `Partial` | undefined): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc1155_proxy.ts:1035](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc1155_proxy.ts#L1035)* - -Sends an Ethereum transaction executing this method with the supplied parameters. This is a read/write -Ethereum operation and will cost gas. - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`assetData` | string | Byte array encoded with ERC1155 token address, array of ids, array of values, and callback data. | -`from` | string | Address to transfer assets from. | -`to` | string | Address to transfer assets to. | -`amount` | `BigNumber` | Amount that will be multiplied with each element of `assetData.values` to scale the values that will be transferred. | -`txData?` | `Partial` \| undefined | Additional data for transaction | - -**Returns:** *`Promise`* - -The hash of the transaction - -#### validateAndSendTransactionAsync - -▸ **validateAndSendTransactionAsync**(`assetData`: string, `from`: string, `to`: string, `amount`: `BigNumber`, `txData?`: `Partial` | undefined): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc1155_proxy.ts:1158](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc1155_proxy.ts#L1158)* - -**Parameters:** - -Name | Type | ------- | ------ | -`assetData` | string | -`from` | string | -`to` | string | -`amount` | `BigNumber` | -`txData?` | `Partial` \| undefined | - -**Returns:** *`Promise`* - -___ - -### transferOwnership - -#### ▪ **transferOwnership**: *object* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc1155_proxy.ts:1281](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc1155_proxy.ts#L1281)* - -#### awaitTransactionSuccessAsync - -▸ **awaitTransactionSuccessAsync**(`newOwner`: string, `txData?`: `Partial`, `pollingIntervalMs?`: undefined | number, `timeoutMs?`: undefined | number): *`PromiseWithTransactionHash`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc1155_proxy.ts:1314](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc1155_proxy.ts#L1314)* - -Sends an Ethereum transaction and waits until the transaction has been successfully mined without reverting. -If the transaction was mined, but reverted, an error is thrown. - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`newOwner` | string | - | -`txData?` | `Partial` | Additional data for transaction | -`pollingIntervalMs?` | undefined \| number | Interval at which to poll for success | -`timeoutMs?` | undefined \| number | - | - -**Returns:** *`PromiseWithTransactionHash`* - -A promise that resolves when the transaction is successful - -#### callAsync - -▸ **callAsync**(`newOwner`: string, `callData`: `Partial`, `defaultBlock?`: [BlockParam](#blockparam)): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc1155_proxy.ts:1369](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc1155_proxy.ts#L1369)* - -Sends a read-only call to the contract method. Returns the result that would happen if one were to send an -Ethereum transaction to this method, given the current state of the blockchain. Calls do not cost gas -since they don't modify state. - -**Parameters:** - -Name | Type | Default | ------- | ------ | ------ | -`newOwner` | string | - | -`callData` | `Partial` | {} | -`defaultBlock?` | [BlockParam](#blockparam) | - | - -**Returns:** *`Promise`* - -#### estimateGasAsync - -▸ **estimateGasAsync**(`newOwner`: string, `txData?`: `Partial` | undefined): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc1155_proxy.ts:1340](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc1155_proxy.ts#L1340)* - -Estimates the gas cost of sending an Ethereum transaction calling this method with these arguments. - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`newOwner` | string | - | -`txData?` | `Partial` \| undefined | Additional data for transaction | - -**Returns:** *`Promise`* - -The hash of the transaction - -#### getABIDecodedReturnData - -▸ **getABIDecodedReturnData**(`returnData`: string): *void* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc1155_proxy.ts:1437](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc1155_proxy.ts#L1437)* - -Decode the ABI-encoded return data from a transaction - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`returnData` | string | the data returned after transaction execution | - -**Returns:** *void* - -An array representing the output results in order. Keynames of nested structs are preserved. - -#### getABIDecodedTransactionData - -▸ **getABIDecodedTransactionData**(`callData`: string): *[string]* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc1155_proxy.ts:1425](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc1155_proxy.ts#L1425)* - -Decode the ABI-encoded transaction data into its input arguments - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`callData` | string | The ABI-encoded transaction data | - -**Returns:** *[string]* - -An array representing the input arguments in order. Keynames of nested structs are preserved. - -#### getABIEncodedTransactionData - -▸ **getABIEncodedTransactionData**(`newOwner`: string): *string* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc1155_proxy.ts:1412](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc1155_proxy.ts#L1412)* - -Returns the ABI encoded transaction data needed to send an Ethereum transaction calling this method. Before -sending the Ethereum tx, this encoded tx data can first be sent to a separate signing service or can be used -to create a 0x transaction (see protocol spec for more details). - -**Parameters:** - -Name | Type | ------- | ------ | -`newOwner` | string | - -**Returns:** *string* - -The ABI encoded transaction data as a string - -#### sendTransactionAsync - -▸ **sendTransactionAsync**(`newOwner`: string, `txData?`: `Partial` | undefined): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc1155_proxy.ts:1288](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc1155_proxy.ts#L1288)* - -Sends an Ethereum transaction executing this method with the supplied parameters. This is a read/write -Ethereum operation and will cost gas. - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`newOwner` | string | - | -`txData?` | `Partial` \| undefined | Additional data for transaction | - -**Returns:** *`Promise`* - -The hash of the transaction - -#### validateAndSendTransactionAsync - -▸ **validateAndSendTransactionAsync**(`newOwner`: string, `txData?`: `Partial` | undefined): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc1155_proxy.ts:1359](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc1155_proxy.ts#L1359)* - -**Parameters:** - -Name | Type | ------- | ------ | -`newOwner` | string | -`txData?` | `Partial` \| undefined | - -**Returns:** *`Promise`* - -
- -# Class: ERC20ProxyContract - - -## Constructors - - - -\+ **new ERC20ProxyContract**(`address`: string, `supportedProvider`: [SupportedProvider](#supportedprovider), `txDefaults?`: `Partial`, `logDecodeDependencies?`: undefined | object, `deployedBytecode`: string | undefined): *[ERC20ProxyContract](#class-erc20proxycontract)* - -*Overrides void* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc20_proxy.ts:1506](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc20_proxy.ts#L1506)* - -**Parameters:** - -Name | Type | Default | ------- | ------ | ------ | -`address` | string | - | -`supportedProvider` | [SupportedProvider](#supportedprovider) | - | -`txDefaults?` | `Partial` | - | -`logDecodeDependencies?` | undefined \| object | - | -`deployedBytecode` | string \| undefined | ERC20ProxyContract.deployedBytecode | - -**Returns:** *[ERC20ProxyContract](#class-erc20proxycontract)* - -## Properties - -#### abi - -• **abi**: *[ContractAbi](#contractabi)* - - - -Defined in base-contract/lib/src/index.d.ts:27 - -___ - -### address - -• **address**: *string* - - - -Defined in base-contract/lib/src/index.d.ts:28 - -___ - -Args - -• **constructorArgs**: *any[]* - - - -Defined in base-contract/lib/src/index.d.ts:30 - -___ - -### contractName - -• **contractName**: *string* - - - -Defined in base-contract/lib/src/index.d.ts:29 - -___ - -### `Static` deployedBytecode - -▪ **deployedBytecode**: *string* = "0x608060405234801561001057600080fd5b50600436106100a35760003560e01c80639ad2674411610076578063b91816111161005b578063b918161114610374578063d39de6e9146103bb578063f2fde38b14610413576100a3565b80639ad26744146102fe578063ae25532e14610337576100a3565b806342f1181e14610248578063494503d41461027d57806370712939146102c35780638da5cb5b146102f6575b7fffffffff00000000000000000000000000000000000000000000000000000000600035167fa85e59e40000000000000000000000000000000000000000000000000000000081141561024257604080513381526001602082015290812054610177577f08c379a0000000000000000000000000000000000000000000000000000000006000527c20000000000000000000000000000000000000000000000000000000006020527c1553454e4445525f4e4f545f415554484f52495a454400000000000000604052600060605260646000fd5b50602860043501357f23b872dd0000000000000000000000000000000000000000000000000000000060005260606024600437602060006064600080855af1600080511160203d14163d15178116905080156101cf57005b50507f08c379a0000000000000000000000000000000000000000000000000000000006000527c20000000000000000000000000000000000000000000000000000000006020527c0f5452414e534645525f4641494c454400000000000000000000000000604052600060605260646000fd5b50600080fd5b61027b6004803603602081101561025e57600080fd5b503573ffffffffffffffffffffffffffffffffffffffff16610446565b005b61029a6004803603602081101561029357600080fd5b5035610632565b6040805173ffffffffffffffffffffffffffffffffffffffff9092168252519081900360200190f35b61027b600480360360208110156102d957600080fd5b503573ffffffffffffffffffffffffffffffffffffffff16610666565b61029a610959565b61027b6004803603604081101561031457600080fd5b5073ffffffffffffffffffffffffffffffffffffffff8135169060200135610975565b61033f610d26565b604080517fffffffff000000000000000000000000000000000000000000000000000000009092168252519081900360200190f35b6103a76004803603602081101561038a57600080fd5b503573ffffffffffffffffffffffffffffffffffffffff16610d5c565b604080519115158252519081900360200190f35b6103c3610d71565b60408051602080825283518183015283519192839290830191858101910280838360005b838110156103ff5781810151838201526020016103e7565b505050509050019250505060405180910390f35b61027b6004803603602081101561042957600080fd5b503573ffffffffffffffffffffffffffffffffffffffff16610de0565b60005473ffffffffffffffffffffffffffffffffffffffff1633146104cc57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601360248201527f4f4e4c595f434f4e54524143545f4f574e455200000000000000000000000000604482015290519081900360640190fd5b73ffffffffffffffffffffffffffffffffffffffff811660009081526001602052604090205460ff161561056157604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601960248201527f5441524745545f414c52454144595f415554484f52495a454400000000000000604482015290519081900360640190fd5b73ffffffffffffffffffffffffffffffffffffffff8116600081815260016020819052604080832080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00168317905560028054928301815583527f405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5ace90910180547fffffffffffffffffffffffff00000000000000000000000000000000000000001684179055513392917f3147867c59d17e8fa9d522465651d44aae0a9e38f902f3475b97e58072f0ed4c91a350565b6002818154811061063f57fe5b60009182526020909120015473ffffffffffffffffffffffffffffffffffffffff16905081565b60005473ffffffffffffffffffffffffffffffffffffffff1633146106ec57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601360248201527f4f4e4c595f434f4e54524143545f4f574e455200000000000000000000000000604482015290519081900360640190fd5b73ffffffffffffffffffffffffffffffffffffffff811660009081526001602052604090205460ff1661078057604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601560248201527f5441524745545f4e4f545f415554484f52495a45440000000000000000000000604482015290519081900360640190fd5b73ffffffffffffffffffffffffffffffffffffffff8116600090815260016020526040812080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001690555b600254811015610912578173ffffffffffffffffffffffffffffffffffffffff16600282815481106107fa57fe5b60009182526020909120015473ffffffffffffffffffffffffffffffffffffffff16141561090a57600280547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff810190811061085257fe5b6000918252602090912001546002805473ffffffffffffffffffffffffffffffffffffffff909216918390811061088557fe5b600091825260209091200180547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff92909216919091179055600280547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff01906109049082610ec6565b50610912565b6001016107cc565b50604051339073ffffffffffffffffffffffffffffffffffffffff8316907f1f32c1b084e2de0713b8fb16bd46bb9df710a3dbeae2f3ca93af46e016dcc6b090600090a350565b60005473ffffffffffffffffffffffffffffffffffffffff1681565b60005473ffffffffffffffffffffffffffffffffffffffff1633146109fb57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601360248201527f4f4e4c595f434f4e54524143545f4f574e455200000000000000000000000000604482015290519081900360640190fd5b73ffffffffffffffffffffffffffffffffffffffff821660009081526001602052604090205460ff16610a8f57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601560248201527f5441524745545f4e4f545f415554484f52495a45440000000000000000000000604482015290519081900360640190fd5b6002548110610aff57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601360248201527f494e4445585f4f55545f4f465f424f554e445300000000000000000000000000604482015290519081900360640190fd5b8173ffffffffffffffffffffffffffffffffffffffff1660028281548110610b2357fe5b60009182526020909120015473ffffffffffffffffffffffffffffffffffffffff1614610bb157604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601b60248201527f415554484f52495a45445f414444524553535f4d49534d415443480000000000604482015290519081900360640190fd5b73ffffffffffffffffffffffffffffffffffffffff8216600090815260016020526040902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00169055600280547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8101908110610c2c57fe5b6000918252602090912001546002805473ffffffffffffffffffffffffffffffffffffffff9092169183908110610c5f57fe5b600091825260209091200180547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff92909216919091179055600280547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0190610cde9082610ec6565b50604051339073ffffffffffffffffffffffffffffffffffffffff8416907f1f32c1b084e2de0713b8fb16bd46bb9df710a3dbeae2f3ca93af46e016dcc6b090600090a35050565b604080517f4552433230546f6b656e28616464726573732900000000000000000000000000815290519081900360130190205b90565b60016020526000908152604090205460ff1681565b60606002805480602002602001604051908101604052809291908181526020018280548015610dd657602002820191906000526020600020905b815473ffffffffffffffffffffffffffffffffffffffff168152600190910190602001808311610dab575b5050505050905090565b60005473ffffffffffffffffffffffffffffffffffffffff163314610e6657604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601360248201527f4f4e4c595f434f4e54524143545f4f574e455200000000000000000000000000604482015290519081900360640190fd5b73ffffffffffffffffffffffffffffffffffffffff811615610ec357600080547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff83161790555b50565b815481835581811115610eea57600083815260209020610eea918101908301610eef565b505050565b610d5991905b80821115610f095760008155600101610ef5565b509056fea265627a7a72315820cb3312567959522bd12ea03b9812cab2bace85fe5f172b3ae8014b3eacc85fa864736f6c634300050b0032" - -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc20_proxy.ts:51](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc20_proxy.ts#L51)* - -## Methods - -### evmExecAsync - -▸ **evmExecAsync**(`input`: `Buffer`): *`Promise`* - - - -Defined in base-contract/lib/src/index.d.ts:42 - -**Parameters:** - -Name | Type | ------- | ------ | -`input` | `Buffer` | - -**Returns:** *`Promise`* - -___ - -### getLogsAsync - -▸ **getLogsAsync**<**ArgsType**>(`eventName`: [ERC20ProxyEvents](#enumeration-erc20proxyevents), `blockRange`: `BlockRange`, `indexFilterValues`: `IndexedFilterValues`): *`Promise>>`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc20_proxy.ts:1490](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc20_proxy.ts#L1490)* - -Gets historical logs without creating a subscription - -**Type parameters:** - -▪ **ArgsType**: *[ERC20ProxyEventArgs](#erc20proxyeventargs)* - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`eventName` | [ERC20ProxyEvents](#enumeration-erc20proxyevents) | The ERC20Proxy 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 - -___ - -### subscribe - -▸ **subscribe**<**ArgsType**>(`eventName`: [ERC20ProxyEvents](#enumeration-erc20proxyevents), `indexFilterValues`: `IndexedFilterValues`, `callback`: [EventCallback](#eventcallback)‹*`ArgsType`*›, `isVerbose`: boolean, `blockPollingIntervalMs?`: undefined | number): *string* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc20_proxy.ts:1448](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc20_proxy.ts#L1448)* - -Subscribe to an event type emitted by the ERC20Proxy contract. - -**Type parameters:** - -▪ **ArgsType**: *[ERC20ProxyEventArgs](#erc20proxyeventargs)* - -**Parameters:** - -Name | Type | Default | Description | ------- | ------ | ------ | ------ | -`eventName` | [ERC20ProxyEvents](#enumeration-erc20proxyevents) | - | The ERC20Proxy 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 - -___ - -### unsubscribe - -▸ **unsubscribe**(`subscriptionToken`: string): *void* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc20_proxy.ts:1473](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc20_proxy.ts#L1473)* - -Cancel a subscription - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`subscriptionToken` | string | Subscription token returned by `subscribe()` | - -**Returns:** *void* - -___ - -### unsubscribeAll - -▸ **unsubscribeAll**(): *void* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc20_proxy.ts:1479](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc20_proxy.ts#L1479)* - -Cancels all existing subscriptions - -**Returns:** *void* - -___ - -### `Static` ABI - -▸ **ABI**(): *[ContractAbi](#contractabi)* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc20_proxy.ts:1251](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc20_proxy.ts#L1251)* - -**Returns:** *[ContractAbi](#contractabi)* - -The contract ABI - -___ - -### `Static` deployAsync - -▸ **deployAsync**(`bytecode`: string, `abi`: [ContractAbi](#contractabi), `supportedProvider`: [SupportedProvider](#supportedprovider), `txDefaults`: `Partial`, `logDecodeDependencies`: object): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc20_proxy.ts:1209](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc20_proxy.ts#L1209)* - -**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 [abi-gen-wrappers/src/generated-wrappers/erc20_proxy.ts:1184](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc20_proxy.ts#L1184)* - -**Parameters:** - -Name | Type | ------- | ------ | -`artifact` | `ContractArtifact` \| `SimpleContractArtifact` | -`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:41 - -**Parameters:** - -Name | Type | ------- | ------ | -`inputAbi` | `DataItem`[] | -`args` | any[] | - -**Returns:** *string* - -## Object literals - -### addAuthorizedAddress - -#### ▪ **addAuthorizedAddress**: *object* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc20_proxy.ts:56](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc20_proxy.ts#L56)* - -Authorizes an address. - -#### awaitTransactionSuccessAsync - -▸ **awaitTransactionSuccessAsync**(`target`: string, `txData?`: `Partial`, `pollingIntervalMs?`: undefined | number, `timeoutMs?`: undefined | number): *`PromiseWithTransactionHash`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc20_proxy.ts:91](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc20_proxy.ts#L91)* - -Sends an Ethereum transaction and waits until the transaction has been successfully mined without reverting. -If the transaction was mined, but reverted, an error is thrown. - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`target` | string | Address to authorize. | -`txData?` | `Partial` | Additional data for transaction | -`pollingIntervalMs?` | undefined \| number | Interval at which to poll for success | -`timeoutMs?` | undefined \| number | - | - -**Returns:** *`PromiseWithTransactionHash`* - -A promise that resolves when the transaction is successful - -#### callAsync - -▸ **callAsync**(`target`: string, `callData`: `Partial`, `defaultBlock?`: [BlockParam](#blockparam)): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc20_proxy.ts:148](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc20_proxy.ts#L148)* - -Sends a read-only call to the contract method. Returns the result that would happen if one were to send an -Ethereum transaction to this method, given the current state of the blockchain. Calls do not cost gas -since they don't modify state. - -**Parameters:** - -Name | Type | Default | Description | ------- | ------ | ------ | ------ | -`target` | string | - | Address to authorize. | -`callData` | `Partial` | {} | - | -`defaultBlock?` | [BlockParam](#blockparam) | - | - | - -**Returns:** *`Promise`* - -#### estimateGasAsync - -▸ **estimateGasAsync**(`target`: string, `txData?`: `Partial` | undefined): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc20_proxy.ts:118](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc20_proxy.ts#L118)* - -Estimates the gas cost of sending an Ethereum transaction calling this method with these arguments. - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`target` | string | Address to authorize. | -`txData?` | `Partial` \| undefined | Additional data for transaction | - -**Returns:** *`Promise`* - -The hash of the transaction - -#### getABIDecodedReturnData - -▸ **getABIDecodedReturnData**(`returnData`: string): *void* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc20_proxy.ts:217](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc20_proxy.ts#L217)* - -Decode the ABI-encoded return data from a transaction - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`returnData` | string | the data returned after transaction execution | - -**Returns:** *void* - -An array representing the output results in order. Keynames of nested structs are preserved. - -#### getABIDecodedTransactionData - -▸ **getABIDecodedTransactionData**(`callData`: string): *[string]* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc20_proxy.ts:205](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc20_proxy.ts#L205)* - -Decode the ABI-encoded transaction data into its input arguments - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`callData` | string | The ABI-encoded transaction data | - -**Returns:** *[string]* - -An array representing the input arguments in order. Keynames of nested structs are preserved. - -#### getABIEncodedTransactionData - -▸ **getABIEncodedTransactionData**(`target`: string): *string* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc20_proxy.ts:192](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc20_proxy.ts#L192)* - -Returns the ABI encoded transaction data needed to send an Ethereum transaction calling this method. Before -sending the Ethereum tx, this encoded tx data can first be sent to a separate signing service or can be used -to create a 0x transaction (see protocol spec for more details). - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`target` | string | Address to authorize. | - -**Returns:** *string* - -The ABI encoded transaction data as a string - -#### sendTransactionAsync - -▸ **sendTransactionAsync**(`target`: string, `txData?`: `Partial` | undefined): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc20_proxy.ts:64](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc20_proxy.ts#L64)* - -Sends an Ethereum transaction executing this method with the supplied parameters. This is a read/write -Ethereum operation and will cost gas. - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`target` | string | Address to authorize. | -`txData?` | `Partial` \| undefined | Additional data for transaction | - -**Returns:** *`Promise`* - -The hash of the transaction - -#### validateAndSendTransactionAsync - -▸ **validateAndSendTransactionAsync**(`target`: string, `txData?`: `Partial` | undefined): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc20_proxy.ts:137](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc20_proxy.ts#L137)* - -**Parameters:** - -Name | Type | ------- | ------ | -`target` | string | -`txData?` | `Partial` \| undefined | - -**Returns:** *`Promise`* - -___ - -### authorities - -#### ▪ **authorities**: *object* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc20_proxy.ts:225](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc20_proxy.ts#L225)* - -#### callAsync - -▸ **callAsync**(`index_0`: `BigNumber`, `callData`: `Partial`, `defaultBlock?`: [BlockParam](#blockparam)): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc20_proxy.ts:231](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc20_proxy.ts#L231)* - -Sends a read-only call to the contract method. Returns the result that would happen if one were to send an -Ethereum transaction to this method, given the current state of the blockchain. Calls do not cost gas -since they don't modify state. - -**Parameters:** - -Name | Type | Default | ------- | ------ | ------ | -`index_0` | `BigNumber` | - | -`callData` | `Partial` | {} | -`defaultBlock?` | [BlockParam](#blockparam) | - | - -**Returns:** *`Promise`* - -#### getABIDecodedReturnData - -▸ **getABIDecodedReturnData**(`returnData`: string): *string* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc20_proxy.ts:301](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc20_proxy.ts#L301)* - -Decode the ABI-encoded return data from a transaction - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`returnData` | string | the data returned after transaction execution | - -**Returns:** *string* - -An array representing the output results in order. Keynames of nested structs are preserved. - -#### getABIDecodedTransactionData - -▸ **getABIDecodedTransactionData**(`callData`: string): *`BigNumber`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc20_proxy.ts:289](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc20_proxy.ts#L289)* - -Decode the ABI-encoded transaction data into its input arguments - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`callData` | string | The ABI-encoded transaction data | - -**Returns:** *`BigNumber`* - -An array representing the input arguments in order. Keynames of nested structs are preserved. - -#### getABIEncodedTransactionData - -▸ **getABIEncodedTransactionData**(`index_0`: `BigNumber`): *string* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc20_proxy.ts:278](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc20_proxy.ts#L278)* - -Returns the ABI encoded transaction data needed to send an Ethereum transaction calling this method. Before -sending the Ethereum tx, this encoded tx data can first be sent to a separate signing service or can be used -to create a 0x transaction (see protocol spec for more details). - -**Parameters:** - -Name | Type | ------- | ------ | -`index_0` | `BigNumber` | - -**Returns:** *string* - -The ABI encoded transaction data as a string - -___ - -### authorized - -#### ▪ **authorized**: *object* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc20_proxy.ts:851](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc20_proxy.ts#L851)* - -#### callAsync - -▸ **callAsync**(`index_0`: string, `callData`: `Partial`, `defaultBlock?`: [BlockParam](#blockparam)): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc20_proxy.ts:857](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc20_proxy.ts#L857)* - -Sends a read-only call to the contract method. Returns the result that would happen if one were to send an -Ethereum transaction to this method, given the current state of the blockchain. Calls do not cost gas -since they don't modify state. - -**Parameters:** - -Name | Type | Default | ------- | ------ | ------ | -`index_0` | string | - | -`callData` | `Partial` | {} | -`defaultBlock?` | [BlockParam](#blockparam) | - | - -**Returns:** *`Promise`* - -#### getABIDecodedReturnData - -▸ **getABIDecodedReturnData**(`returnData`: string): *boolean* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc20_proxy.ts:929](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc20_proxy.ts#L929)* - -Decode the ABI-encoded return data from a transaction - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`returnData` | string | the data returned after transaction execution | - -**Returns:** *boolean* - -An array representing the output results in order. Keynames of nested structs are preserved. - -#### getABIDecodedTransactionData - -▸ **getABIDecodedTransactionData**(`callData`: string): *string* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc20_proxy.ts:917](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc20_proxy.ts#L917)* - -Decode the ABI-encoded transaction data into its input arguments - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`callData` | string | The ABI-encoded transaction data | - -**Returns:** *string* - -An array representing the input arguments in order. Keynames of nested structs are preserved. - -#### getABIEncodedTransactionData - -▸ **getABIEncodedTransactionData**(`index_0`: string): *string* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc20_proxy.ts:904](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc20_proxy.ts#L904)* - -Returns the ABI encoded transaction data needed to send an Ethereum transaction calling this method. Before -sending the Ethereum tx, this encoded tx data can first be sent to a separate signing service or can be used -to create a 0x transaction (see protocol spec for more details). - -**Parameters:** - -Name | Type | ------- | ------ | -`index_0` | string | - -**Returns:** *string* - -The ABI encoded transaction data as a string - -___ - -### getAuthorizedAddresses - -#### ▪ **getAuthorizedAddresses**: *object* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc20_proxy.ts:940](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc20_proxy.ts#L940)* - -Gets all authorized addresses. - -#### callAsync - -▸ **callAsync**(`callData`: `Partial`, `defaultBlock?`: [BlockParam](#blockparam)): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc20_proxy.ts:947](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc20_proxy.ts#L947)* - -Sends a read-only call to the contract method. Returns the result that would happen if one were to send an -Ethereum transaction to this method, given the current state of the blockchain. Calls do not cost gas -since they don't modify state. - -**Parameters:** - -Name | Type | Default | ------- | ------ | ------ | -`callData` | `Partial` | {} | -`defaultBlock?` | [BlockParam](#blockparam) | - | - -**Returns:** *`Promise`* - -Array of authorized addresses. - -#### getABIDecodedReturnData - -▸ **getABIDecodedReturnData**(`returnData`: string): *string[]* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc20_proxy.ts:1011](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc20_proxy.ts#L1011)* - -Decode the ABI-encoded return data from a transaction - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`returnData` | string | the data returned after transaction execution | - -**Returns:** *string[]* - -An array representing the output results in order. Keynames of nested structs are preserved. - -#### getABIDecodedTransactionData - -▸ **getABIDecodedTransactionData**(`callData`: string): *void* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc20_proxy.ts:999](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc20_proxy.ts#L999)* - -Decode the ABI-encoded transaction data into its input arguments - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`callData` | string | The ABI-encoded transaction data | - -**Returns:** *void* - -An array representing the input arguments in order. Keynames of nested structs are preserved. - -#### getABIEncodedTransactionData - -▸ **getABIEncodedTransactionData**(): *string* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc20_proxy.ts:989](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc20_proxy.ts#L989)* - -Returns the ABI encoded transaction data needed to send an Ethereum transaction calling this method. Before -sending the Ethereum tx, this encoded tx data can first be sent to a separate signing service or can be used -to create a 0x transaction (see protocol spec for more details). - -**Returns:** *string* - -The ABI encoded transaction data as a string - -___ - -### getProxyId - -#### ▪ **getProxyId**: *object* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc20_proxy.ts:780](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc20_proxy.ts#L780)* - -Gets the proxy id associated with the proxy address. - -#### callAsync - -▸ **callAsync**(`callData`: `Partial`, `defaultBlock?`: [BlockParam](#blockparam)): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc20_proxy.ts:787](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc20_proxy.ts#L787)* - -Sends a read-only call to the contract method. Returns the result that would happen if one were to send an -Ethereum transaction to this method, given the current state of the blockchain. Calls do not cost gas -since they don't modify state. - -**Parameters:** - -Name | Type | Default | ------- | ------ | ------ | -`callData` | `Partial` | {} | -`defaultBlock?` | [BlockParam](#blockparam) | - | - -**Returns:** *`Promise`* - -Proxy id. - -#### getABIDecodedReturnData - -▸ **getABIDecodedReturnData**(`returnData`: string): *string* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc20_proxy.ts:843](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc20_proxy.ts#L843)* - -Decode the ABI-encoded return data from a transaction - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`returnData` | string | the data returned after transaction execution | - -**Returns:** *string* - -An array representing the output results in order. Keynames of nested structs are preserved. - -#### getABIDecodedTransactionData - -▸ **getABIDecodedTransactionData**(`callData`: string): *void* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc20_proxy.ts:831](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc20_proxy.ts#L831)* - -Decode the ABI-encoded transaction data into its input arguments - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`callData` | string | The ABI-encoded transaction data | - -**Returns:** *void* - -An array representing the input arguments in order. Keynames of nested structs are preserved. - -#### getABIEncodedTransactionData - -▸ **getABIEncodedTransactionData**(): *string* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc20_proxy.ts:821](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc20_proxy.ts#L821)* - -Returns the ABI encoded transaction data needed to send an Ethereum transaction calling this method. Before -sending the Ethereum tx, this encoded tx data can first be sent to a separate signing service or can be used -to create a 0x transaction (see protocol spec for more details). - -**Returns:** *string* - -The ABI encoded transaction data as a string - -___ - -### owner - -#### ▪ **owner**: *object* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc20_proxy.ts:481](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc20_proxy.ts#L481)* - -#### callAsync - -▸ **callAsync**(`callData`: `Partial`, `defaultBlock?`: [BlockParam](#blockparam)): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc20_proxy.ts:487](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc20_proxy.ts#L487)* - -Sends a read-only call to the contract method. Returns the result that would happen if one were to send an -Ethereum transaction to this method, given the current state of the blockchain. Calls do not cost gas -since they don't modify state. - -**Parameters:** - -Name | Type | Default | ------- | ------ | ------ | -`callData` | `Partial` | {} | -`defaultBlock?` | [BlockParam](#blockparam) | - | - -**Returns:** *`Promise`* - -#### getABIDecodedReturnData - -▸ **getABIDecodedReturnData**(`returnData`: string): *string* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc20_proxy.ts:551](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc20_proxy.ts#L551)* - -Decode the ABI-encoded return data from a transaction - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`returnData` | string | the data returned after transaction execution | - -**Returns:** *string* - -An array representing the output results in order. Keynames of nested structs are preserved. - -#### getABIDecodedTransactionData - -▸ **getABIDecodedTransactionData**(`callData`: string): *void* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc20_proxy.ts:539](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc20_proxy.ts#L539)* - -Decode the ABI-encoded transaction data into its input arguments - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`callData` | string | The ABI-encoded transaction data | - -**Returns:** *void* - -An array representing the input arguments in order. Keynames of nested structs are preserved. - -#### getABIEncodedTransactionData - -▸ **getABIEncodedTransactionData**(): *string* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc20_proxy.ts:529](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc20_proxy.ts#L529)* - -Returns the ABI encoded transaction data needed to send an Ethereum transaction calling this method. Before -sending the Ethereum tx, this encoded tx data can first be sent to a separate signing service or can be used -to create a 0x transaction (see protocol spec for more details). - -**Returns:** *string* - -The ABI encoded transaction data as a string - -___ - -### removeAuthorizedAddress - -#### ▪ **removeAuthorizedAddress**: *object* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc20_proxy.ts:312](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc20_proxy.ts#L312)* - -Removes authorizion of an address. - -#### awaitTransactionSuccessAsync - -▸ **awaitTransactionSuccessAsync**(`target`: string, `txData?`: `Partial`, `pollingIntervalMs?`: undefined | number, `timeoutMs?`: undefined | number): *`PromiseWithTransactionHash`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc20_proxy.ts:347](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc20_proxy.ts#L347)* - -Sends an Ethereum transaction and waits until the transaction has been successfully mined without reverting. -If the transaction was mined, but reverted, an error is thrown. - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`target` | string | Address to remove authorization from. | -`txData?` | `Partial` | Additional data for transaction | -`pollingIntervalMs?` | undefined \| number | Interval at which to poll for success | -`timeoutMs?` | undefined \| number | - | - -**Returns:** *`PromiseWithTransactionHash`* - -A promise that resolves when the transaction is successful - -#### callAsync - -▸ **callAsync**(`target`: string, `callData`: `Partial`, `defaultBlock?`: [BlockParam](#blockparam)): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc20_proxy.ts:404](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc20_proxy.ts#L404)* - -Sends a read-only call to the contract method. Returns the result that would happen if one were to send an -Ethereum transaction to this method, given the current state of the blockchain. Calls do not cost gas -since they don't modify state. - -**Parameters:** - -Name | Type | Default | Description | ------- | ------ | ------ | ------ | -`target` | string | - | Address to remove authorization from. | -`callData` | `Partial` | {} | - | -`defaultBlock?` | [BlockParam](#blockparam) | - | - | - -**Returns:** *`Promise`* - -#### estimateGasAsync - -▸ **estimateGasAsync**(`target`: string, `txData?`: `Partial` | undefined): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc20_proxy.ts:374](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc20_proxy.ts#L374)* - -Estimates the gas cost of sending an Ethereum transaction calling this method with these arguments. - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`target` | string | Address to remove authorization from. | -`txData?` | `Partial` \| undefined | Additional data for transaction | - -**Returns:** *`Promise`* - -The hash of the transaction - -#### getABIDecodedReturnData - -▸ **getABIDecodedReturnData**(`returnData`: string): *void* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc20_proxy.ts:473](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc20_proxy.ts#L473)* - -Decode the ABI-encoded return data from a transaction - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`returnData` | string | the data returned after transaction execution | - -**Returns:** *void* - -An array representing the output results in order. Keynames of nested structs are preserved. - -#### getABIDecodedTransactionData - -▸ **getABIDecodedTransactionData**(`callData`: string): *[string]* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc20_proxy.ts:461](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc20_proxy.ts#L461)* - -Decode the ABI-encoded transaction data into its input arguments - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`callData` | string | The ABI-encoded transaction data | - -**Returns:** *[string]* - -An array representing the input arguments in order. Keynames of nested structs are preserved. - -#### getABIEncodedTransactionData - -▸ **getABIEncodedTransactionData**(`target`: string): *string* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc20_proxy.ts:448](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc20_proxy.ts#L448)* - -Returns the ABI encoded transaction data needed to send an Ethereum transaction calling this method. Before -sending the Ethereum tx, this encoded tx data can first be sent to a separate signing service or can be used -to create a 0x transaction (see protocol spec for more details). - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`target` | string | Address to remove authorization from. | - -**Returns:** *string* - -The ABI encoded transaction data as a string - -#### sendTransactionAsync - -▸ **sendTransactionAsync**(`target`: string, `txData?`: `Partial` | undefined): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc20_proxy.ts:320](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc20_proxy.ts#L320)* - -Sends an Ethereum transaction executing this method with the supplied parameters. This is a read/write -Ethereum operation and will cost gas. - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`target` | string | Address to remove authorization from. | -`txData?` | `Partial` \| undefined | Additional data for transaction | - -**Returns:** *`Promise`* - -The hash of the transaction - -#### validateAndSendTransactionAsync - -▸ **validateAndSendTransactionAsync**(`target`: string, `txData?`: `Partial` | undefined): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc20_proxy.ts:393](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc20_proxy.ts#L393)* - -**Parameters:** - -Name | Type | ------- | ------ | -`target` | string | -`txData?` | `Partial` \| undefined | - -**Returns:** *`Promise`* - -___ - -### removeAuthorizedAddressAtIndex - -#### ▪ **removeAuthorizedAddressAtIndex**: *object* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc20_proxy.ts:562](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc20_proxy.ts#L562)* - -Removes authorizion of an address. - -#### awaitTransactionSuccessAsync - -▸ **awaitTransactionSuccessAsync**(`target`: string, `index`: `BigNumber`, `txData?`: `Partial`, `pollingIntervalMs?`: undefined | number, `timeoutMs?`: undefined | number): *`PromiseWithTransactionHash`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc20_proxy.ts:607](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc20_proxy.ts#L607)* - -Sends an Ethereum transaction and waits until the transaction has been successfully mined without reverting. -If the transaction was mined, but reverted, an error is thrown. - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`target` | string | Address to remove authorization from. | -`index` | `BigNumber` | Index of target in authorities array. | -`txData?` | `Partial` | Additional data for transaction | -`pollingIntervalMs?` | undefined \| number | Interval at which to poll for success | -`timeoutMs?` | undefined \| number | - | - -**Returns:** *`PromiseWithTransactionHash`* - -A promise that resolves when the transaction is successful - -#### callAsync - -▸ **callAsync**(`target`: string, `index`: `BigNumber`, `callData`: `Partial`, `defaultBlock?`: [BlockParam](#blockparam)): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc20_proxy.ts:688](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc20_proxy.ts#L688)* - -Sends a read-only call to the contract method. Returns the result that would happen if one were to send an -Ethereum transaction to this method, given the current state of the blockchain. Calls do not cost gas -since they don't modify state. - -**Parameters:** - -Name | Type | Default | Description | ------- | ------ | ------ | ------ | -`target` | string | - | Address to remove authorization from. | -`index` | `BigNumber` | - | Index of target in authorities array. | -`callData` | `Partial` | {} | - | -`defaultBlock?` | [BlockParam](#blockparam) | - | - | - -**Returns:** *`Promise`* - -#### estimateGasAsync - -▸ **estimateGasAsync**(`target`: string, `index`: `BigNumber`, `txData?`: `Partial` | undefined): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc20_proxy.ts:641](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc20_proxy.ts#L641)* - -Estimates the gas cost of sending an Ethereum transaction calling this method with these arguments. - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`target` | string | Address to remove authorization from. | -`index` | `BigNumber` | Index of target in authorities array. | -`txData?` | `Partial` \| undefined | Additional data for transaction | - -**Returns:** *`Promise`* - -The hash of the transaction - -#### getABIDecodedReturnData - -▸ **getABIDecodedReturnData**(`returnData`: string): *void* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc20_proxy.ts:769](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc20_proxy.ts#L769)* - -Decode the ABI-encoded return data from a transaction - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`returnData` | string | the data returned after transaction execution | - -**Returns:** *void* - -An array representing the output results in order. Keynames of nested structs are preserved. - -#### getABIDecodedTransactionData - -▸ **getABIDecodedTransactionData**(`callData`: string): *[string, `BigNumber`]* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc20_proxy.ts:757](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc20_proxy.ts#L757)* - -Decode the ABI-encoded transaction data into its input arguments - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`callData` | string | The ABI-encoded transaction data | - -**Returns:** *[string, `BigNumber`]* - -An array representing the input arguments in order. Keynames of nested structs are preserved. - -#### getABIEncodedTransactionData - -▸ **getABIEncodedTransactionData**(`target`: string, `index`: `BigNumber`): *string* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc20_proxy.ts:742](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc20_proxy.ts#L742)* - -Returns the ABI encoded transaction data needed to send an Ethereum transaction calling this method. Before -sending the Ethereum tx, this encoded tx data can first be sent to a separate signing service or can be used -to create a 0x transaction (see protocol spec for more details). - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`target` | string | Address to remove authorization from. | -`index` | `BigNumber` | Index of target in authorities array. | - -**Returns:** *string* - -The ABI encoded transaction data as a string - -#### sendTransactionAsync - -▸ **sendTransactionAsync**(`target`: string, `index`: `BigNumber`, `txData?`: `Partial` | undefined): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc20_proxy.ts:571](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc20_proxy.ts#L571)* - -Sends an Ethereum transaction executing this method with the supplied parameters. This is a read/write -Ethereum operation and will cost gas. - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`target` | string | Address to remove authorization from. | -`index` | `BigNumber` | Index of target in authorities array. | -`txData?` | `Partial` \| undefined | Additional data for transaction | - -**Returns:** *`Promise`* - -The hash of the transaction - -#### validateAndSendTransactionAsync - -▸ **validateAndSendTransactionAsync**(`target`: string, `index`: `BigNumber`, `txData?`: `Partial` | undefined): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc20_proxy.ts:668](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc20_proxy.ts#L668)* - -**Parameters:** - -Name | Type | ------- | ------ | -`target` | string | -`index` | `BigNumber` | -`txData?` | `Partial` \| undefined | - -**Returns:** *`Promise`* - -___ - -### transferOwnership - -#### ▪ **transferOwnership**: *object* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc20_proxy.ts:1019](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc20_proxy.ts#L1019)* - -#### awaitTransactionSuccessAsync - -▸ **awaitTransactionSuccessAsync**(`newOwner`: string, `txData?`: `Partial`, `pollingIntervalMs?`: undefined | number, `timeoutMs?`: undefined | number): *`PromiseWithTransactionHash`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc20_proxy.ts:1052](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc20_proxy.ts#L1052)* - -Sends an Ethereum transaction and waits until the transaction has been successfully mined without reverting. -If the transaction was mined, but reverted, an error is thrown. - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`newOwner` | string | - | -`txData?` | `Partial` | Additional data for transaction | -`pollingIntervalMs?` | undefined \| number | Interval at which to poll for success | -`timeoutMs?` | undefined \| number | - | - -**Returns:** *`PromiseWithTransactionHash`* - -A promise that resolves when the transaction is successful - -#### callAsync - -▸ **callAsync**(`newOwner`: string, `callData`: `Partial`, `defaultBlock?`: [BlockParam](#blockparam)): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc20_proxy.ts:1107](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc20_proxy.ts#L1107)* - -Sends a read-only call to the contract method. Returns the result that would happen if one were to send an -Ethereum transaction to this method, given the current state of the blockchain. Calls do not cost gas -since they don't modify state. - -**Parameters:** - -Name | Type | Default | ------- | ------ | ------ | -`newOwner` | string | - | -`callData` | `Partial` | {} | -`defaultBlock?` | [BlockParam](#blockparam) | - | - -**Returns:** *`Promise`* - -#### estimateGasAsync - -▸ **estimateGasAsync**(`newOwner`: string, `txData?`: `Partial` | undefined): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc20_proxy.ts:1078](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc20_proxy.ts#L1078)* - -Estimates the gas cost of sending an Ethereum transaction calling this method with these arguments. - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`newOwner` | string | - | -`txData?` | `Partial` \| undefined | Additional data for transaction | - -**Returns:** *`Promise`* - -The hash of the transaction - -#### getABIDecodedReturnData - -▸ **getABIDecodedReturnData**(`returnData`: string): *void* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc20_proxy.ts:1175](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc20_proxy.ts#L1175)* - -Decode the ABI-encoded return data from a transaction - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`returnData` | string | the data returned after transaction execution | - -**Returns:** *void* - -An array representing the output results in order. Keynames of nested structs are preserved. - -#### getABIDecodedTransactionData - -▸ **getABIDecodedTransactionData**(`callData`: string): *[string]* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc20_proxy.ts:1163](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc20_proxy.ts#L1163)* - -Decode the ABI-encoded transaction data into its input arguments - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`callData` | string | The ABI-encoded transaction data | - -**Returns:** *[string]* - -An array representing the input arguments in order. Keynames of nested structs are preserved. - -#### getABIEncodedTransactionData - -▸ **getABIEncodedTransactionData**(`newOwner`: string): *string* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc20_proxy.ts:1150](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc20_proxy.ts#L1150)* - -Returns the ABI encoded transaction data needed to send an Ethereum transaction calling this method. Before -sending the Ethereum tx, this encoded tx data can first be sent to a separate signing service or can be used -to create a 0x transaction (see protocol spec for more details). - -**Parameters:** - -Name | Type | ------- | ------ | -`newOwner` | string | - -**Returns:** *string* - -The ABI encoded transaction data as a string - -#### sendTransactionAsync - -▸ **sendTransactionAsync**(`newOwner`: string, `txData?`: `Partial` | undefined): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc20_proxy.ts:1026](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc20_proxy.ts#L1026)* - -Sends an Ethereum transaction executing this method with the supplied parameters. This is a read/write -Ethereum operation and will cost gas. - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`newOwner` | string | - | -`txData?` | `Partial` \| undefined | Additional data for transaction | - -**Returns:** *`Promise`* - -The hash of the transaction - -#### validateAndSendTransactionAsync - -▸ **validateAndSendTransactionAsync**(`newOwner`: string, `txData?`: `Partial` | undefined): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc20_proxy.ts:1097](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc20_proxy.ts#L1097)* - -**Parameters:** - -Name | Type | ------- | ------ | -`newOwner` | string | -`txData?` | `Partial` \| undefined | - -**Returns:** *`Promise`* - -
- -# 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 [abi-gen-wrappers/src/generated-wrappers/erc20_token.ts:1282](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc20_token.ts#L1282)* - -**Parameters:** - -Name | Type | Default | ------- | ------ | ------ | -`address` | string | - | -`supportedProvider` | [SupportedProvider](#supportedprovider) | - | -`txDefaults?` | `Partial` | - | -`logDecodeDependencies?` | undefined \| object | - | -`deployedBytecode` | string \| undefined | ERC20TokenContract.deployedBytecode | - -**Returns:** *[ERC20TokenContract](#class-erc20tokencontract)* - -## Properties - -#### abi - -• **abi**: *[ContractAbi](#contractabi)* - - - -Defined in base-contract/lib/src/index.d.ts:27 - -___ - -### address - -• **address**: *string* - - - -Defined in base-contract/lib/src/index.d.ts:28 - -___ - -Args - -• **constructorArgs**: *any[]* - - - -Defined in base-contract/lib/src/index.d.ts:30 - -___ - -### contractName - -• **contractName**: *string* - - - -Defined in base-contract/lib/src/index.d.ts:29 - -___ - -### `Static` deployedBytecode - -▪ **deployedBytecode**: *string* = "0x608060405234801561001057600080fd5b50600436106100725760003560e01c806370a082311161005057806370a0823114610121578063a9059cbb14610154578063dd62ed3e1461018d57610072565b8063095ea7b31461007757806318160ddd146100c457806323b872dd146100de575b600080fd5b6100b06004803603604081101561008d57600080fd5b5073ffffffffffffffffffffffffffffffffffffffff81351690602001356101c8565b604080519115158252519081900360200190f35b6100cc61023b565b60408051918252519081900360200190f35b6100b0600480360360608110156100f457600080fd5b5073ffffffffffffffffffffffffffffffffffffffff813581169160208101359091169060400135610241565b6100cc6004803603602081101561013757600080fd5b503573ffffffffffffffffffffffffffffffffffffffff1661049d565b6100b06004803603604081101561016a57600080fd5b5073ffffffffffffffffffffffffffffffffffffffff81351690602001356104c5565b6100cc600480360360408110156101a357600080fd5b5073ffffffffffffffffffffffffffffffffffffffff81358116916020013516610652565b33600081815260016020908152604080832073ffffffffffffffffffffffffffffffffffffffff8716808552908352818420869055815186815291519394909390927f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925928290030190a350600192915050565b60025490565b73ffffffffffffffffffffffffffffffffffffffff83166000908152602081905260408120548211156102d557604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601a60248201527f45524332305f494e53554646494349454e545f42414c414e4345000000000000604482015290519081900360640190fd5b73ffffffffffffffffffffffffffffffffffffffff8416600090815260016020908152604080832033845290915290205482111561037457604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601c60248201527f45524332305f494e53554646494349454e545f414c4c4f57414e434500000000604482015290519081900360640190fd5b73ffffffffffffffffffffffffffffffffffffffff8316600090815260208190526040902054828101101561040a57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601060248201527f55494e543235365f4f564552464c4f5700000000000000000000000000000000604482015290519081900360640190fd5b73ffffffffffffffffffffffffffffffffffffffff80841660008181526020818152604080832080548801905593881680835284832080548890039055600182528483203384528252918490208054879003905583518681529351929391927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a35060019392505050565b73ffffffffffffffffffffffffffffffffffffffff1660009081526020819052604090205490565b3360009081526020819052604081205482111561054357604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601a60248201527f45524332305f494e53554646494349454e545f42414c414e4345000000000000604482015290519081900360640190fd5b73ffffffffffffffffffffffffffffffffffffffff831660009081526020819052604090205482810110156105d957604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601060248201527f55494e543235365f4f564552464c4f5700000000000000000000000000000000604482015290519081900360640190fd5b336000818152602081815260408083208054879003905573ffffffffffffffffffffffffffffffffffffffff871680845292819020805487019055805186815290519293927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef929181900390910190a350600192915050565b73ffffffffffffffffffffffffffffffffffffffff91821660009081526001602090815260408083209390941682529190915220549056fea265627a7a723158205713efa92f66e67a8d01b80af8500df66bd6e9862dcf791e587181109d8ab0c464736f6c634300050b0032" - -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc20_token.ts:51](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc20_token.ts#L51)* - -## Methods - -### evmExecAsync - -▸ **evmExecAsync**(`input`: `Buffer`): *`Promise`* - - - -Defined in base-contract/lib/src/index.d.ts:42 - -**Parameters:** - -Name | Type | ------- | ------ | -`input` | `Buffer` | - -**Returns:** *`Promise`* - -___ - -### getLogsAsync - -▸ **getLogsAsync**<**ArgsType**>(`eventName`: [ERC20TokenEvents](#enumeration-erc20tokenevents), `blockRange`: `BlockRange`, `indexFilterValues`: `IndexedFilterValues`): *`Promise>>`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc20_token.ts:1266](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc20_token.ts#L1266)* - -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 - -___ - -### subscribe - -▸ **subscribe**<**ArgsType**>(`eventName`: [ERC20TokenEvents](#enumeration-erc20tokenevents), `indexFilterValues`: `IndexedFilterValues`, `callback`: [EventCallback](#eventcallback)‹*`ArgsType`*›, `isVerbose`: boolean, `blockPollingIntervalMs?`: undefined | number): *string* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc20_token.ts:1224](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc20_token.ts#L1224)* - -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 - -___ - -### unsubscribe - -▸ **unsubscribe**(`subscriptionToken`: string): *void* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc20_token.ts:1249](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc20_token.ts#L1249)* - -Cancel a subscription - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`subscriptionToken` | string | Subscription token returned by `subscribe()` | - -**Returns:** *void* - -___ - -### unsubscribeAll - -▸ **unsubscribeAll**(): *void* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc20_token.ts:1255](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc20_token.ts#L1255)* - -Cancels all existing subscriptions - -**Returns:** *void* - -___ - -### `Static` ABI - -▸ **ABI**(): *[ContractAbi](#contractabi)* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc20_token.ts:1035](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc20_token.ts#L1035)* - -**Returns:** *[ContractAbi](#contractabi)* - -The contract ABI - -___ - -### `Static` deployAsync - -▸ **deployAsync**(`bytecode`: string, `abi`: [ContractAbi](#contractabi), `supportedProvider`: [SupportedProvider](#supportedprovider), `txDefaults`: `Partial`, `logDecodeDependencies`: object): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc20_token.ts:993](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc20_token.ts#L993)* - -**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 [abi-gen-wrappers/src/generated-wrappers/erc20_token.ts:968](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc20_token.ts#L968)* - -**Parameters:** - -Name | Type | ------- | ------ | -`artifact` | `ContractArtifact` \| `SimpleContractArtifact` | -`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:41 - -**Parameters:** - -Name | Type | ------- | ------ | -`inputAbi` | `DataItem`[] | -`args` | any[] | - -**Returns:** *string* - -## Object literals - -### allowance - -#### ▪ **allowance**: *object* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc20_token.ts:869](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc20_token.ts#L869)* - -#### callAsync - -▸ **callAsync**(`_owner`: string, `_spender`: string, `callData`: `Partial`, `defaultBlock?`: [BlockParam](#blockparam)): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc20_token.ts:878](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc20_token.ts#L878)* - -Sends a read-only call to the contract method. Returns the result that would happen if one were to send an -Ethereum transaction to this method, given the current state of the blockchain. Calls do not cost gas -since they don't modify state. - -**Parameters:** - -Name | Type | Default | Description | ------- | ------ | ------ | ------ | -`_owner` | string | - | The address of the account owning tokens | -`_spender` | string | - | The address of the account able to transfer the tokens | -`callData` | `Partial` | {} | - | -`defaultBlock?` | [BlockParam](#blockparam) | - | - | - -**Returns:** *`Promise`* - -Amount of remaining tokens allowed to spent - -#### getABIDecodedReturnData - -▸ **getABIDecodedReturnData**(`returnData`: string): *`BigNumber`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc20_token.ts:959](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc20_token.ts#L959)* - -Decode the ABI-encoded return data from a transaction - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`returnData` | string | the data returned after transaction execution | - -**Returns:** *`BigNumber`* - -An array representing the output results in order. Keynames of nested structs are preserved. - -#### getABIDecodedTransactionData - -▸ **getABIDecodedTransactionData**(`callData`: string): *string* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc20_token.ts:947](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc20_token.ts#L947)* - -Decode the ABI-encoded transaction data into its input arguments - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`callData` | string | The ABI-encoded transaction data | - -**Returns:** *string* - -An array representing the input arguments in order. Keynames of nested structs are preserved. - -#### getABIEncodedTransactionData - -▸ **getABIEncodedTransactionData**(`_owner`: string, `_spender`: string): *string* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc20_token.ts:932](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc20_token.ts#L932)* - -Returns the ABI encoded transaction data needed to send an Ethereum transaction calling this method. Before -sending the Ethereum tx, this encoded tx data can first be sent to a separate signing service or can be used -to create a 0x transaction (see protocol spec for more details). - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`_owner` | string | The address of the account owning tokens | -`_spender` | string | The address of the account able to transfer the tokens | - -**Returns:** *string* - -The ABI encoded transaction data as a string - -___ - -### approve - -#### ▪ **approve**: *object* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc20_token.ts:56](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc20_token.ts#L56)* - -`msg.sender` approves `_spender` to spend `_value` tokens - -#### awaitTransactionSuccessAsync - -▸ **awaitTransactionSuccessAsync**(`_spender`: string, `_value`: `BigNumber`, `txData?`: `Partial`, `pollingIntervalMs?`: undefined | number, `timeoutMs?`: undefined | number): *`PromiseWithTransactionHash`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc20_token.ts:101](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc20_token.ts#L101)* - -Sends an Ethereum transaction and waits until the transaction has been successfully mined without reverting. -If the transaction was mined, but reverted, an error is thrown. - -**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 | -`txData?` | `Partial` | Additional data for transaction | -`pollingIntervalMs?` | undefined \| number | Interval at which to poll for success | -`timeoutMs?` | undefined \| number | - | - -**Returns:** *`PromiseWithTransactionHash`* - -A promise that resolves when the transaction is successful - -#### callAsync - -▸ **callAsync**(`_spender`: string, `_value`: `BigNumber`, `callData`: `Partial`, `defaultBlock?`: [BlockParam](#blockparam)): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc20_token.ts:175](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc20_token.ts#L175)* - -Sends a read-only call to the contract method. Returns the result that would happen if one were to send an -Ethereum transaction to this method, given the current state of the blockchain. Calls do not cost gas -since they don't modify state. - -**Parameters:** - -Name | Type | Default | Description | ------- | ------ | ------ | ------ | -`_spender` | string | - | The address of the account able to transfer the tokens | -`_value` | `BigNumber` | - | The amount of wei to be approved for transfer | -`callData` | `Partial` | {} | - | -`defaultBlock?` | [BlockParam](#blockparam) | - | - | - -**Returns:** *`Promise`* - -Always true if the call has enough gas to complete execution - -#### estimateGasAsync - -▸ **estimateGasAsync**(`_spender`: string, `_value`: `BigNumber`, `txData?`: `Partial` | undefined): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc20_token.ts:131](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc20_token.ts#L131)* - -Estimates the gas cost of sending an Ethereum transaction calling this method with these arguments. - -**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 | -`txData?` | `Partial` \| undefined | Additional data for transaction | - -**Returns:** *`Promise`* - -The hash of the transaction - -#### getABIDecodedReturnData - -▸ **getABIDecodedReturnData**(`returnData`: string): *boolean* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc20_token.ts:256](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc20_token.ts#L256)* - -Decode the ABI-encoded return data from a transaction - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`returnData` | string | the data returned after transaction execution | - -**Returns:** *boolean* - -An array representing the output results in order. Keynames of nested structs are preserved. - -#### getABIDecodedTransactionData - -▸ **getABIDecodedTransactionData**(`callData`: string): *string* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc20_token.ts:244](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc20_token.ts#L244)* - -Decode the ABI-encoded transaction data into its input arguments - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`callData` | string | The ABI-encoded transaction data | - -**Returns:** *string* - -An array representing the input arguments in order. Keynames of nested structs are preserved. - -#### getABIEncodedTransactionData - -▸ **getABIEncodedTransactionData**(`_spender`: string, `_value`: `BigNumber`): *string* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc20_token.ts:229](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc20_token.ts#L229)* - -Returns the ABI encoded transaction data needed to send an Ethereum transaction calling this method. Before -sending the Ethereum tx, this encoded tx data can first be sent to a separate signing service or can be used -to create a 0x transaction (see protocol spec for more details). - -**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:** *string* - -The ABI encoded transaction data as a string - -#### sendTransactionAsync - -▸ **sendTransactionAsync**(`_spender`: string, `_value`: `BigNumber`, `txData?`: `Partial` | undefined): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc20_token.ts:65](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc20_token.ts#L65)* - -Sends an Ethereum transaction executing this method with the supplied parameters. This is a read/write -Ethereum operation and will cost gas. - -**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 | -`txData?` | `Partial` \| undefined | Additional data for transaction | - -**Returns:** *`Promise`* - -The hash of the transaction - -#### validateAndSendTransactionAsync - -▸ **validateAndSendTransactionAsync**(`_spender`: string, `_value`: `BigNumber`, `txData?`: `Partial` | undefined): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc20_token.ts:158](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc20_token.ts#L158)* - -**Parameters:** - -Name | Type | ------- | ------ | -`_spender` | string | -`_value` | `BigNumber` | -`txData?` | `Partial` \| undefined | - -**Returns:** *`Promise`* - -___ - -### balanceOf - -#### ▪ **balanceOf**: *object* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc20_token.ts:584](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc20_token.ts#L584)* - -Query the balance of owner - -#### callAsync - -▸ **callAsync**(`_owner`: string, `callData`: `Partial`, `defaultBlock?`: [BlockParam](#blockparam)): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc20_token.ts:592](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc20_token.ts#L592)* - -Sends a read-only call to the contract method. Returns the result that would happen if one were to send an -Ethereum transaction to this method, given the current state of the blockchain. Calls do not cost gas -since they don't modify state. - -**Parameters:** - -Name | Type | Default | Description | ------- | ------ | ------ | ------ | -`_owner` | string | - | The address from which the balance will be retrieved | -`callData` | `Partial` | {} | - | -`defaultBlock?` | [BlockParam](#blockparam) | - | - | - -**Returns:** *`Promise`* - -Balance of owner - -#### getABIDecodedReturnData - -▸ **getABIDecodedReturnData**(`returnData`: string): *`BigNumber`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc20_token.ts:663](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc20_token.ts#L663)* - -Decode the ABI-encoded return data from a transaction - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`returnData` | string | the data returned after transaction execution | - -**Returns:** *`BigNumber`* - -An array representing the output results in order. Keynames of nested structs are preserved. - -#### getABIDecodedTransactionData - -▸ **getABIDecodedTransactionData**(`callData`: string): *string* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc20_token.ts:651](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc20_token.ts#L651)* - -Decode the ABI-encoded transaction data into its input arguments - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`callData` | string | The ABI-encoded transaction data | - -**Returns:** *string* - -An array representing the input arguments in order. Keynames of nested structs are preserved. - -#### getABIEncodedTransactionData - -▸ **getABIEncodedTransactionData**(`_owner`: string): *string* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc20_token.ts:640](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc20_token.ts#L640)* - -Returns the ABI encoded transaction data needed to send an Ethereum transaction calling this method. Before -sending the Ethereum tx, this encoded tx data can first be sent to a separate signing service or can be used -to create a 0x transaction (see protocol spec for more details). - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`_owner` | string | The address from which the balance will be retrieved | - -**Returns:** *string* - -The ABI encoded transaction data as a string - -___ - -### totalSupply - -#### ▪ **totalSupply**: *object* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc20_token.ts:267](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc20_token.ts#L267)* - -Query total supply of token - -#### callAsync - -▸ **callAsync**(`callData`: `Partial`, `defaultBlock?`: [BlockParam](#blockparam)): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc20_token.ts:274](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc20_token.ts#L274)* - -Sends a read-only call to the contract method. Returns the result that would happen if one were to send an -Ethereum transaction to this method, given the current state of the blockchain. Calls do not cost gas -since they don't modify state. - -**Parameters:** - -Name | Type | Default | ------- | ------ | ------ | -`callData` | `Partial` | {} | -`defaultBlock?` | [BlockParam](#blockparam) | - | - -**Returns:** *`Promise`* - -Total supply of token - -#### getABIDecodedReturnData - -▸ **getABIDecodedReturnData**(`returnData`: string): *`BigNumber`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc20_token.ts:338](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc20_token.ts#L338)* - -Decode the ABI-encoded return data from a transaction - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`returnData` | string | the data returned after transaction execution | - -**Returns:** *`BigNumber`* - -An array representing the output results in order. Keynames of nested structs are preserved. - -#### getABIDecodedTransactionData - -▸ **getABIDecodedTransactionData**(`callData`: string): *void* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc20_token.ts:326](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc20_token.ts#L326)* - -Decode the ABI-encoded transaction data into its input arguments - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`callData` | string | The ABI-encoded transaction data | - -**Returns:** *void* - -An array representing the input arguments in order. Keynames of nested structs are preserved. - -#### getABIEncodedTransactionData - -▸ **getABIEncodedTransactionData**(): *string* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc20_token.ts:316](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc20_token.ts#L316)* - -Returns the ABI encoded transaction data needed to send an Ethereum transaction calling this method. Before -sending the Ethereum tx, this encoded tx data can first be sent to a separate signing service or can be used -to create a 0x transaction (see protocol spec for more details). - -**Returns:** *string* - -The ABI encoded transaction data as a string - -___ - -### transfer - -#### ▪ **transfer**: *object* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc20_token.ts:674](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc20_token.ts#L674)* - -send `value` token to `to` from `msg.sender` - -#### awaitTransactionSuccessAsync - -▸ **awaitTransactionSuccessAsync**(`_to`: string, `_value`: `BigNumber`, `txData?`: `Partial`, `pollingIntervalMs?`: undefined | number, `timeoutMs?`: undefined | number): *`PromiseWithTransactionHash`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc20_token.ts:716](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc20_token.ts#L716)* - -Sends an Ethereum transaction and waits until the transaction has been successfully mined without reverting. -If the transaction was mined, but reverted, an error is thrown. - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`_to` | string | The address of the recipient | -`_value` | `BigNumber` | The amount of token to be transferred | -`txData?` | `Partial` | Additional data for transaction | -`pollingIntervalMs?` | undefined \| number | Interval at which to poll for success | -`timeoutMs?` | undefined \| number | - | - -**Returns:** *`PromiseWithTransactionHash`* - -A promise that resolves when the transaction is successful - -#### callAsync - -▸ **callAsync**(`_to`: string, `_value`: `BigNumber`, `callData`: `Partial`, `defaultBlock?`: [BlockParam](#blockparam)): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc20_token.ts:783](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc20_token.ts#L783)* - -Sends a read-only call to the contract method. Returns the result that would happen if one were to send an -Ethereum transaction to this method, given the current state of the blockchain. Calls do not cost gas -since they don't modify state. - -**Parameters:** - -Name | Type | Default | Description | ------- | ------ | ------ | ------ | -`_to` | string | - | The address of the recipient | -`_value` | `BigNumber` | - | The amount of token to be transferred | -`callData` | `Partial` | {} | - | -`defaultBlock?` | [BlockParam](#blockparam) | - | - | - -**Returns:** *`Promise`* - -True if transfer was successful - -#### estimateGasAsync - -▸ **estimateGasAsync**(`_to`: string, `_value`: `BigNumber`, `txData?`: `Partial` | undefined): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc20_token.ts:746](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc20_token.ts#L746)* - -Estimates the gas cost of sending an Ethereum transaction calling this method with these arguments. - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`_to` | string | The address of the recipient | -`_value` | `BigNumber` | The amount of token to be transferred | -`txData?` | `Partial` \| undefined | Additional data for transaction | - -**Returns:** *`Promise`* - -The hash of the transaction - -#### getABIDecodedReturnData - -▸ **getABIDecodedReturnData**(`returnData`: string): *boolean* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc20_token.ts:861](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc20_token.ts#L861)* - -Decode the ABI-encoded return data from a transaction - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`returnData` | string | the data returned after transaction execution | - -**Returns:** *boolean* - -An array representing the output results in order. Keynames of nested structs are preserved. - -#### getABIDecodedTransactionData - -▸ **getABIDecodedTransactionData**(`callData`: string): *string* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc20_token.ts:849](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc20_token.ts#L849)* - -Decode the ABI-encoded transaction data into its input arguments - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`callData` | string | The ABI-encoded transaction data | - -**Returns:** *string* - -An array representing the input arguments in order. Keynames of nested structs are preserved. - -#### getABIEncodedTransactionData - -▸ **getABIEncodedTransactionData**(`_to`: string, `_value`: `BigNumber`): *string* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc20_token.ts:834](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc20_token.ts#L834)* - -Returns the ABI encoded transaction data needed to send an Ethereum transaction calling this method. Before -sending the Ethereum tx, this encoded tx data can first be sent to a separate signing service or can be used -to create a 0x transaction (see protocol spec for more details). - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`_to` | string | The address of the recipient | -`_value` | `BigNumber` | The amount of token to be transferred | - -**Returns:** *string* - -The ABI encoded transaction data as a string - -#### sendTransactionAsync - -▸ **sendTransactionAsync**(`_to`: string, `_value`: `BigNumber`, `txData?`: `Partial` | undefined): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc20_token.ts:683](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc20_token.ts#L683)* - -Sends an Ethereum transaction executing this method with the supplied parameters. This is a read/write -Ethereum operation and will cost gas. - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`_to` | string | The address of the recipient | -`_value` | `BigNumber` | The amount of token to be transferred | -`txData?` | `Partial` \| undefined | Additional data for transaction | - -**Returns:** *`Promise`* - -The hash of the transaction - -#### validateAndSendTransactionAsync - -▸ **validateAndSendTransactionAsync**(`_to`: string, `_value`: `BigNumber`, `txData?`: `Partial` | undefined): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc20_token.ts:766](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc20_token.ts#L766)* - -**Parameters:** - -Name | Type | ------- | ------ | -`_to` | string | -`_value` | `BigNumber` | -`txData?` | `Partial` \| undefined | - -**Returns:** *`Promise`* - -___ - -### transferFrom - -#### ▪ **transferFrom**: *object* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc20_token.ts:349](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc20_token.ts#L349)* - -send `value` token to `to` from `from` on the condition it is approved by `from` - -#### awaitTransactionSuccessAsync - -▸ **awaitTransactionSuccessAsync**(`_from`: string, `_to`: string, `_value`: `BigNumber`, `txData?`: `Partial`, `pollingIntervalMs?`: undefined | number, `timeoutMs?`: undefined | number): *`PromiseWithTransactionHash`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc20_token.ts:399](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc20_token.ts#L399)* - -Sends an Ethereum transaction and waits until the transaction has been successfully mined without reverting. -If the transaction was mined, but reverted, an error is thrown. - -**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 | -`txData?` | `Partial` | Additional data for transaction | -`pollingIntervalMs?` | undefined \| number | Interval at which to poll for success | -`timeoutMs?` | undefined \| number | - | - -**Returns:** *`PromiseWithTransactionHash`* - -A promise that resolves when the transaction is successful - -#### callAsync - -▸ **callAsync**(`_from`: string, `_to`: string, `_value`: `BigNumber`, `callData`: `Partial`, `defaultBlock?`: [BlockParam](#blockparam)): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc20_token.ts:486](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc20_token.ts#L486)* - -Sends a read-only call to the contract method. Returns the result that would happen if one were to send an -Ethereum transaction to this method, given the current state of the blockchain. Calls do not cost gas -since they don't modify state. - -**Parameters:** - -Name | Type | Default | Description | ------- | ------ | ------ | ------ | -`_from` | string | - | The address of the sender | -`_to` | string | - | The address of the recipient | -`_value` | `BigNumber` | - | The amount of token to be transferred | -`callData` | `Partial` | {} | - | -`defaultBlock?` | [BlockParam](#blockparam) | - | - | - -**Returns:** *`Promise`* - -True if transfer was successful - -#### estimateGasAsync - -▸ **estimateGasAsync**(`_from`: string, `_to`: string, `_value`: `BigNumber`, `txData?`: `Partial` | undefined): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc20_token.ts:437](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc20_token.ts#L437)* - -Estimates the gas cost of sending an Ethereum transaction calling this method with these arguments. - -**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 | -`txData?` | `Partial` \| undefined | Additional data for transaction | - -**Returns:** *`Promise`* - -The hash of the transaction - -#### getABIDecodedReturnData - -▸ **getABIDecodedReturnData**(`returnData`: string): *boolean* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc20_token.ts:573](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc20_token.ts#L573)* - -Decode the ABI-encoded return data from a transaction - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`returnData` | string | the data returned after transaction execution | - -**Returns:** *boolean* - -An array representing the output results in order. Keynames of nested structs are preserved. - -#### getABIDecodedTransactionData - -▸ **getABIDecodedTransactionData**(`callData`: string): *string* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc20_token.ts:561](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc20_token.ts#L561)* - -Decode the ABI-encoded transaction data into its input arguments - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`callData` | string | The ABI-encoded transaction data | - -**Returns:** *string* - -An array representing the input arguments in order. Keynames of nested structs are preserved. - -#### getABIEncodedTransactionData - -▸ **getABIEncodedTransactionData**(`_from`: string, `_to`: string, `_value`: `BigNumber`): *string* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc20_token.ts:544](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc20_token.ts#L544)* - -Returns the ABI encoded transaction data needed to send an Ethereum transaction calling this method. Before -sending the Ethereum tx, this encoded tx data can first be sent to a separate signing service or can be used -to create a 0x transaction (see protocol spec for more details). - -**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:** *string* - -The ABI encoded transaction data as a string - -#### sendTransactionAsync - -▸ **sendTransactionAsync**(`_from`: string, `_to`: string, `_value`: `BigNumber`, `txData?`: `Partial` | undefined): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc20_token.ts:359](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc20_token.ts#L359)* - -Sends an Ethereum transaction executing this method with the supplied parameters. This is a read/write -Ethereum operation and will cost gas. - -**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 | -`txData?` | `Partial` \| undefined | Additional data for transaction | - -**Returns:** *`Promise`* - -The hash of the transaction - -#### validateAndSendTransactionAsync - -▸ **validateAndSendTransactionAsync**(`_from`: string, `_to`: string, `_value`: `BigNumber`, `txData?`: `Partial` | undefined): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc20_token.ts:467](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc20_token.ts#L467)* - -**Parameters:** - -Name | Type | ------- | ------ | -`_from` | string | -`_to` | string | -`_value` | `BigNumber` | -`txData?` | `Partial` \| undefined | - -**Returns:** *`Promise`* - -
- -# Class: ERC721ProxyContract - - -## Constructors - - - -\+ **new ERC721ProxyContract**(`address`: string, `supportedProvider`: [SupportedProvider](#supportedprovider), `txDefaults?`: `Partial`, `logDecodeDependencies?`: undefined | object, `deployedBytecode`: string | undefined): *[ERC721ProxyContract](#class-erc721proxycontract)* - -*Overrides void* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc721_proxy.ts:1506](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc721_proxy.ts#L1506)* - -**Parameters:** - -Name | Type | Default | ------- | ------ | ------ | -`address` | string | - | -`supportedProvider` | [SupportedProvider](#supportedprovider) | - | -`txDefaults?` | `Partial` | - | -`logDecodeDependencies?` | undefined \| object | - | -`deployedBytecode` | string \| undefined | ERC721ProxyContract.deployedBytecode | - -**Returns:** *[ERC721ProxyContract](#class-erc721proxycontract)* - -## Properties - -#### abi - -• **abi**: *[ContractAbi](#contractabi)* - - - -Defined in base-contract/lib/src/index.d.ts:27 - -___ - -### address - -• **address**: *string* - - - -Defined in base-contract/lib/src/index.d.ts:28 - -___ - -Args - -• **constructorArgs**: *any[]* - - - -Defined in base-contract/lib/src/index.d.ts:30 - -___ - -### contractName - -• **contractName**: *string* - - - -Defined in base-contract/lib/src/index.d.ts:29 - -___ - -### `Static` deployedBytecode - -▪ **deployedBytecode**: *string* = "0x608060405234801561001057600080fd5b50600436106100a35760003560e01c80639ad2674411610076578063b91816111161005b578063b9181611146103ea578063d39de6e914610431578063f2fde38b14610489576100a3565b80639ad2674414610374578063ae25532e146103ad576100a3565b806342f1181e146102be578063494503d4146102f357806370712939146103395780638da5cb5b1461036c575b7fffffffff00000000000000000000000000000000000000000000000000000000600035167fa85e59e4000000000000000000000000000000000000000000000000000000008114156102b857604080513381526001602082015290812054610177577f08c379a0000000000000000000000000000000000000000000000000000000006000527c20000000000000000000000000000000000000000000000000000000006020527c1553454e4445525f4e4f545f415554484f52495a454400000000000000604052600060605260646000fd5b50600160643503156101f4577f08c379a0000000000000000000000000000000000000000000000000000000006000527c20000000000000000000000000000000000000000000000000000000006020527c0e494e56414c49445f414d4f554e540000000000000000000000000000604052600060605260646000fd5b7f23b872dd000000000000000000000000000000000000000000000000000000006000526040602460043760043560206048820160443760288101356000806064600080855af1915050801561024657005b507f08c379a0000000000000000000000000000000000000000000000000000000006000527c20000000000000000000000000000000000000000000000000000000006020527c0f5452414e534645525f4641494c454400000000000000000000000000604052600060605260646000fd5b50600080fd5b6102f1600480360360208110156102d457600080fd5b503573ffffffffffffffffffffffffffffffffffffffff166104bc565b005b6103106004803603602081101561030957600080fd5b50356106a8565b6040805173ffffffffffffffffffffffffffffffffffffffff9092168252519081900360200190f35b6102f16004803603602081101561034f57600080fd5b503573ffffffffffffffffffffffffffffffffffffffff166106dc565b6103106109cf565b6102f16004803603604081101561038a57600080fd5b5073ffffffffffffffffffffffffffffffffffffffff81351690602001356109eb565b6103b5610d9c565b604080517fffffffff000000000000000000000000000000000000000000000000000000009092168252519081900360200190f35b61041d6004803603602081101561040057600080fd5b503573ffffffffffffffffffffffffffffffffffffffff16610dd2565b604080519115158252519081900360200190f35b610439610de7565b60408051602080825283518183015283519192839290830191858101910280838360005b8381101561047557818101518382015260200161045d565b505050509050019250505060405180910390f35b6102f16004803603602081101561049f57600080fd5b503573ffffffffffffffffffffffffffffffffffffffff16610e56565b60005473ffffffffffffffffffffffffffffffffffffffff16331461054257604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601360248201527f4f4e4c595f434f4e54524143545f4f574e455200000000000000000000000000604482015290519081900360640190fd5b73ffffffffffffffffffffffffffffffffffffffff811660009081526001602052604090205460ff16156105d757604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601960248201527f5441524745545f414c52454144595f415554484f52495a454400000000000000604482015290519081900360640190fd5b73ffffffffffffffffffffffffffffffffffffffff8116600081815260016020819052604080832080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00168317905560028054928301815583527f405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5ace90910180547fffffffffffffffffffffffff00000000000000000000000000000000000000001684179055513392917f3147867c59d17e8fa9d522465651d44aae0a9e38f902f3475b97e58072f0ed4c91a350565b600281815481106106b557fe5b60009182526020909120015473ffffffffffffffffffffffffffffffffffffffff16905081565b60005473ffffffffffffffffffffffffffffffffffffffff16331461076257604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601360248201527f4f4e4c595f434f4e54524143545f4f574e455200000000000000000000000000604482015290519081900360640190fd5b73ffffffffffffffffffffffffffffffffffffffff811660009081526001602052604090205460ff166107f657604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601560248201527f5441524745545f4e4f545f415554484f52495a45440000000000000000000000604482015290519081900360640190fd5b73ffffffffffffffffffffffffffffffffffffffff8116600090815260016020526040812080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001690555b600254811015610988578173ffffffffffffffffffffffffffffffffffffffff166002828154811061087057fe5b60009182526020909120015473ffffffffffffffffffffffffffffffffffffffff16141561098057600280547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff81019081106108c857fe5b6000918252602090912001546002805473ffffffffffffffffffffffffffffffffffffffff90921691839081106108fb57fe5b600091825260209091200180547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff92909216919091179055600280547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff019061097a9082610f3c565b50610988565b600101610842565b50604051339073ffffffffffffffffffffffffffffffffffffffff8316907f1f32c1b084e2de0713b8fb16bd46bb9df710a3dbeae2f3ca93af46e016dcc6b090600090a350565b60005473ffffffffffffffffffffffffffffffffffffffff1681565b60005473ffffffffffffffffffffffffffffffffffffffff163314610a7157604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601360248201527f4f4e4c595f434f4e54524143545f4f574e455200000000000000000000000000604482015290519081900360640190fd5b73ffffffffffffffffffffffffffffffffffffffff821660009081526001602052604090205460ff16610b0557604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601560248201527f5441524745545f4e4f545f415554484f52495a45440000000000000000000000604482015290519081900360640190fd5b6002548110610b7557604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601360248201527f494e4445585f4f55545f4f465f424f554e445300000000000000000000000000604482015290519081900360640190fd5b8173ffffffffffffffffffffffffffffffffffffffff1660028281548110610b9957fe5b60009182526020909120015473ffffffffffffffffffffffffffffffffffffffff1614610c2757604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601b60248201527f415554484f52495a45445f414444524553535f4d49534d415443480000000000604482015290519081900360640190fd5b73ffffffffffffffffffffffffffffffffffffffff8216600090815260016020526040902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00169055600280547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8101908110610ca257fe5b6000918252602090912001546002805473ffffffffffffffffffffffffffffffffffffffff9092169183908110610cd557fe5b600091825260209091200180547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff92909216919091179055600280547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0190610d549082610f3c565b50604051339073ffffffffffffffffffffffffffffffffffffffff8416907f1f32c1b084e2de0713b8fb16bd46bb9df710a3dbeae2f3ca93af46e016dcc6b090600090a35050565b604080517f455243373231546f6b656e28616464726573732c75696e7432353629000000008152905190819003601c0190205b90565b60016020526000908152604090205460ff1681565b60606002805480602002602001604051908101604052809291908181526020018280548015610e4c57602002820191906000526020600020905b815473ffffffffffffffffffffffffffffffffffffffff168152600190910190602001808311610e21575b5050505050905090565b60005473ffffffffffffffffffffffffffffffffffffffff163314610edc57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601360248201527f4f4e4c595f434f4e54524143545f4f574e455200000000000000000000000000604482015290519081900360640190fd5b73ffffffffffffffffffffffffffffffffffffffff811615610f3957600080547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff83161790555b50565b815481835581811115610f6057600083815260209020610f60918101908301610f65565b505050565b610dcf91905b80821115610f7f5760008155600101610f6b565b509056fea265627a7a723158201e53a891f6df3931041b820f71387e9eecd97f7ea0d346c54fab37668bd022ec64736f6c634300050b0032" - -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc721_proxy.ts:51](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc721_proxy.ts#L51)* - -## Methods - -### evmExecAsync - -▸ **evmExecAsync**(`input`: `Buffer`): *`Promise`* - - - -Defined in base-contract/lib/src/index.d.ts:42 - -**Parameters:** - -Name | Type | ------- | ------ | -`input` | `Buffer` | - -**Returns:** *`Promise`* - -___ - -### getLogsAsync - -▸ **getLogsAsync**<**ArgsType**>(`eventName`: [ERC721ProxyEvents](#enumeration-erc721proxyevents), `blockRange`: `BlockRange`, `indexFilterValues`: `IndexedFilterValues`): *`Promise>>`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc721_proxy.ts:1490](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc721_proxy.ts#L1490)* - -Gets historical logs without creating a subscription - -**Type parameters:** - -▪ **ArgsType**: *[ERC721ProxyEventArgs](#erc721proxyeventargs)* - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`eventName` | [ERC721ProxyEvents](#enumeration-erc721proxyevents) | The ERC721Proxy 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 - -___ - -### subscribe - -▸ **subscribe**<**ArgsType**>(`eventName`: [ERC721ProxyEvents](#enumeration-erc721proxyevents), `indexFilterValues`: `IndexedFilterValues`, `callback`: [EventCallback](#eventcallback)‹*`ArgsType`*›, `isVerbose`: boolean, `blockPollingIntervalMs?`: undefined | number): *string* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc721_proxy.ts:1448](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc721_proxy.ts#L1448)* - -Subscribe to an event type emitted by the ERC721Proxy contract. - -**Type parameters:** - -▪ **ArgsType**: *[ERC721ProxyEventArgs](#erc721proxyeventargs)* - -**Parameters:** - -Name | Type | Default | Description | ------- | ------ | ------ | ------ | -`eventName` | [ERC721ProxyEvents](#enumeration-erc721proxyevents) | - | The ERC721Proxy 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 - -___ - -### unsubscribe - -▸ **unsubscribe**(`subscriptionToken`: string): *void* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc721_proxy.ts:1473](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc721_proxy.ts#L1473)* - -Cancel a subscription - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`subscriptionToken` | string | Subscription token returned by `subscribe()` | - -**Returns:** *void* - -___ - -### unsubscribeAll - -▸ **unsubscribeAll**(): *void* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc721_proxy.ts:1479](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc721_proxy.ts#L1479)* - -Cancels all existing subscriptions - -**Returns:** *void* - -___ - -### `Static` ABI - -▸ **ABI**(): *[ContractAbi](#contractabi)* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc721_proxy.ts:1251](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc721_proxy.ts#L1251)* - -**Returns:** *[ContractAbi](#contractabi)* - -The contract ABI - -___ - -### `Static` deployAsync - -▸ **deployAsync**(`bytecode`: string, `abi`: [ContractAbi](#contractabi), `supportedProvider`: [SupportedProvider](#supportedprovider), `txDefaults`: `Partial`, `logDecodeDependencies`: object): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc721_proxy.ts:1209](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc721_proxy.ts#L1209)* - -**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 [abi-gen-wrappers/src/generated-wrappers/erc721_proxy.ts:1184](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc721_proxy.ts#L1184)* - -**Parameters:** - -Name | Type | ------- | ------ | -`artifact` | `ContractArtifact` \| `SimpleContractArtifact` | -`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:41 - -**Parameters:** - -Name | Type | ------- | ------ | -`inputAbi` | `DataItem`[] | -`args` | any[] | - -**Returns:** *string* - -## Object literals - -### addAuthorizedAddress - -#### ▪ **addAuthorizedAddress**: *object* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc721_proxy.ts:56](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc721_proxy.ts#L56)* - -Authorizes an address. - -#### awaitTransactionSuccessAsync - -▸ **awaitTransactionSuccessAsync**(`target`: string, `txData?`: `Partial`, `pollingIntervalMs?`: undefined | number, `timeoutMs?`: undefined | number): *`PromiseWithTransactionHash`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc721_proxy.ts:91](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc721_proxy.ts#L91)* - -Sends an Ethereum transaction and waits until the transaction has been successfully mined without reverting. -If the transaction was mined, but reverted, an error is thrown. - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`target` | string | Address to authorize. | -`txData?` | `Partial` | Additional data for transaction | -`pollingIntervalMs?` | undefined \| number | Interval at which to poll for success | -`timeoutMs?` | undefined \| number | - | - -**Returns:** *`PromiseWithTransactionHash`* - -A promise that resolves when the transaction is successful - -#### callAsync - -▸ **callAsync**(`target`: string, `callData`: `Partial`, `defaultBlock?`: [BlockParam](#blockparam)): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc721_proxy.ts:148](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc721_proxy.ts#L148)* - -Sends a read-only call to the contract method. Returns the result that would happen if one were to send an -Ethereum transaction to this method, given the current state of the blockchain. Calls do not cost gas -since they don't modify state. - -**Parameters:** - -Name | Type | Default | Description | ------- | ------ | ------ | ------ | -`target` | string | - | Address to authorize. | -`callData` | `Partial` | {} | - | -`defaultBlock?` | [BlockParam](#blockparam) | - | - | - -**Returns:** *`Promise`* - -#### estimateGasAsync - -▸ **estimateGasAsync**(`target`: string, `txData?`: `Partial` | undefined): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc721_proxy.ts:118](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc721_proxy.ts#L118)* - -Estimates the gas cost of sending an Ethereum transaction calling this method with these arguments. - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`target` | string | Address to authorize. | -`txData?` | `Partial` \| undefined | Additional data for transaction | - -**Returns:** *`Promise`* - -The hash of the transaction - -#### getABIDecodedReturnData - -▸ **getABIDecodedReturnData**(`returnData`: string): *void* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc721_proxy.ts:217](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc721_proxy.ts#L217)* - -Decode the ABI-encoded return data from a transaction - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`returnData` | string | the data returned after transaction execution | - -**Returns:** *void* - -An array representing the output results in order. Keynames of nested structs are preserved. - -#### getABIDecodedTransactionData - -▸ **getABIDecodedTransactionData**(`callData`: string): *[string]* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc721_proxy.ts:205](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc721_proxy.ts#L205)* - -Decode the ABI-encoded transaction data into its input arguments - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`callData` | string | The ABI-encoded transaction data | - -**Returns:** *[string]* - -An array representing the input arguments in order. Keynames of nested structs are preserved. - -#### getABIEncodedTransactionData - -▸ **getABIEncodedTransactionData**(`target`: string): *string* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc721_proxy.ts:192](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc721_proxy.ts#L192)* - -Returns the ABI encoded transaction data needed to send an Ethereum transaction calling this method. Before -sending the Ethereum tx, this encoded tx data can first be sent to a separate signing service or can be used -to create a 0x transaction (see protocol spec for more details). - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`target` | string | Address to authorize. | - -**Returns:** *string* - -The ABI encoded transaction data as a string - -#### sendTransactionAsync - -▸ **sendTransactionAsync**(`target`: string, `txData?`: `Partial` | undefined): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc721_proxy.ts:64](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc721_proxy.ts#L64)* - -Sends an Ethereum transaction executing this method with the supplied parameters. This is a read/write -Ethereum operation and will cost gas. - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`target` | string | Address to authorize. | -`txData?` | `Partial` \| undefined | Additional data for transaction | - -**Returns:** *`Promise`* - -The hash of the transaction - -#### validateAndSendTransactionAsync - -▸ **validateAndSendTransactionAsync**(`target`: string, `txData?`: `Partial` | undefined): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc721_proxy.ts:137](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc721_proxy.ts#L137)* - -**Parameters:** - -Name | Type | ------- | ------ | -`target` | string | -`txData?` | `Partial` \| undefined | - -**Returns:** *`Promise`* - -___ - -### authorities - -#### ▪ **authorities**: *object* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc721_proxy.ts:225](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc721_proxy.ts#L225)* - -#### callAsync - -▸ **callAsync**(`index_0`: `BigNumber`, `callData`: `Partial`, `defaultBlock?`: [BlockParam](#blockparam)): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc721_proxy.ts:231](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc721_proxy.ts#L231)* - -Sends a read-only call to the contract method. Returns the result that would happen if one were to send an -Ethereum transaction to this method, given the current state of the blockchain. Calls do not cost gas -since they don't modify state. - -**Parameters:** - -Name | Type | Default | ------- | ------ | ------ | -`index_0` | `BigNumber` | - | -`callData` | `Partial` | {} | -`defaultBlock?` | [BlockParam](#blockparam) | - | - -**Returns:** *`Promise`* - -#### getABIDecodedReturnData - -▸ **getABIDecodedReturnData**(`returnData`: string): *string* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc721_proxy.ts:301](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc721_proxy.ts#L301)* - -Decode the ABI-encoded return data from a transaction - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`returnData` | string | the data returned after transaction execution | - -**Returns:** *string* - -An array representing the output results in order. Keynames of nested structs are preserved. - -#### getABIDecodedTransactionData - -▸ **getABIDecodedTransactionData**(`callData`: string): *`BigNumber`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc721_proxy.ts:289](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc721_proxy.ts#L289)* - -Decode the ABI-encoded transaction data into its input arguments - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`callData` | string | The ABI-encoded transaction data | - -**Returns:** *`BigNumber`* - -An array representing the input arguments in order. Keynames of nested structs are preserved. - -#### getABIEncodedTransactionData - -▸ **getABIEncodedTransactionData**(`index_0`: `BigNumber`): *string* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc721_proxy.ts:278](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc721_proxy.ts#L278)* - -Returns the ABI encoded transaction data needed to send an Ethereum transaction calling this method. Before -sending the Ethereum tx, this encoded tx data can first be sent to a separate signing service or can be used -to create a 0x transaction (see protocol spec for more details). - -**Parameters:** - -Name | Type | ------- | ------ | -`index_0` | `BigNumber` | - -**Returns:** *string* - -The ABI encoded transaction data as a string - -___ - -### authorized - -#### ▪ **authorized**: *object* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc721_proxy.ts:851](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc721_proxy.ts#L851)* - -#### callAsync - -▸ **callAsync**(`index_0`: string, `callData`: `Partial`, `defaultBlock?`: [BlockParam](#blockparam)): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc721_proxy.ts:857](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc721_proxy.ts#L857)* - -Sends a read-only call to the contract method. Returns the result that would happen if one were to send an -Ethereum transaction to this method, given the current state of the blockchain. Calls do not cost gas -since they don't modify state. - -**Parameters:** - -Name | Type | Default | ------- | ------ | ------ | -`index_0` | string | - | -`callData` | `Partial` | {} | -`defaultBlock?` | [BlockParam](#blockparam) | - | - -**Returns:** *`Promise`* - -#### getABIDecodedReturnData - -▸ **getABIDecodedReturnData**(`returnData`: string): *boolean* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc721_proxy.ts:929](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc721_proxy.ts#L929)* - -Decode the ABI-encoded return data from a transaction - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`returnData` | string | the data returned after transaction execution | - -**Returns:** *boolean* - -An array representing the output results in order. Keynames of nested structs are preserved. - -#### getABIDecodedTransactionData - -▸ **getABIDecodedTransactionData**(`callData`: string): *string* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc721_proxy.ts:917](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc721_proxy.ts#L917)* - -Decode the ABI-encoded transaction data into its input arguments - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`callData` | string | The ABI-encoded transaction data | - -**Returns:** *string* - -An array representing the input arguments in order. Keynames of nested structs are preserved. - -#### getABIEncodedTransactionData - -▸ **getABIEncodedTransactionData**(`index_0`: string): *string* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc721_proxy.ts:904](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc721_proxy.ts#L904)* - -Returns the ABI encoded transaction data needed to send an Ethereum transaction calling this method. Before -sending the Ethereum tx, this encoded tx data can first be sent to a separate signing service or can be used -to create a 0x transaction (see protocol spec for more details). - -**Parameters:** - -Name | Type | ------- | ------ | -`index_0` | string | - -**Returns:** *string* - -The ABI encoded transaction data as a string - -___ - -### getAuthorizedAddresses - -#### ▪ **getAuthorizedAddresses**: *object* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc721_proxy.ts:940](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc721_proxy.ts#L940)* - -Gets all authorized addresses. - -#### callAsync - -▸ **callAsync**(`callData`: `Partial`, `defaultBlock?`: [BlockParam](#blockparam)): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc721_proxy.ts:947](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc721_proxy.ts#L947)* - -Sends a read-only call to the contract method. Returns the result that would happen if one were to send an -Ethereum transaction to this method, given the current state of the blockchain. Calls do not cost gas -since they don't modify state. - -**Parameters:** - -Name | Type | Default | ------- | ------ | ------ | -`callData` | `Partial` | {} | -`defaultBlock?` | [BlockParam](#blockparam) | - | - -**Returns:** *`Promise`* - -Array of authorized addresses. - -#### getABIDecodedReturnData - -▸ **getABIDecodedReturnData**(`returnData`: string): *string[]* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc721_proxy.ts:1011](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc721_proxy.ts#L1011)* - -Decode the ABI-encoded return data from a transaction - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`returnData` | string | the data returned after transaction execution | - -**Returns:** *string[]* - -An array representing the output results in order. Keynames of nested structs are preserved. - -#### getABIDecodedTransactionData - -▸ **getABIDecodedTransactionData**(`callData`: string): *void* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc721_proxy.ts:999](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc721_proxy.ts#L999)* - -Decode the ABI-encoded transaction data into its input arguments - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`callData` | string | The ABI-encoded transaction data | - -**Returns:** *void* - -An array representing the input arguments in order. Keynames of nested structs are preserved. - -#### getABIEncodedTransactionData - -▸ **getABIEncodedTransactionData**(): *string* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc721_proxy.ts:989](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc721_proxy.ts#L989)* - -Returns the ABI encoded transaction data needed to send an Ethereum transaction calling this method. Before -sending the Ethereum tx, this encoded tx data can first be sent to a separate signing service or can be used -to create a 0x transaction (see protocol spec for more details). - -**Returns:** *string* - -The ABI encoded transaction data as a string - -___ - -### getProxyId - -#### ▪ **getProxyId**: *object* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc721_proxy.ts:780](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc721_proxy.ts#L780)* - -Gets the proxy id associated with the proxy address. - -#### callAsync - -▸ **callAsync**(`callData`: `Partial`, `defaultBlock?`: [BlockParam](#blockparam)): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc721_proxy.ts:787](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc721_proxy.ts#L787)* - -Sends a read-only call to the contract method. Returns the result that would happen if one were to send an -Ethereum transaction to this method, given the current state of the blockchain. Calls do not cost gas -since they don't modify state. - -**Parameters:** - -Name | Type | Default | ------- | ------ | ------ | -`callData` | `Partial` | {} | -`defaultBlock?` | [BlockParam](#blockparam) | - | - -**Returns:** *`Promise`* - -Proxy id. - -#### getABIDecodedReturnData - -▸ **getABIDecodedReturnData**(`returnData`: string): *string* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc721_proxy.ts:843](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc721_proxy.ts#L843)* - -Decode the ABI-encoded return data from a transaction - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`returnData` | string | the data returned after transaction execution | - -**Returns:** *string* - -An array representing the output results in order. Keynames of nested structs are preserved. - -#### getABIDecodedTransactionData - -▸ **getABIDecodedTransactionData**(`callData`: string): *void* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc721_proxy.ts:831](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc721_proxy.ts#L831)* - -Decode the ABI-encoded transaction data into its input arguments - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`callData` | string | The ABI-encoded transaction data | - -**Returns:** *void* - -An array representing the input arguments in order. Keynames of nested structs are preserved. - -#### getABIEncodedTransactionData - -▸ **getABIEncodedTransactionData**(): *string* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc721_proxy.ts:821](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc721_proxy.ts#L821)* - -Returns the ABI encoded transaction data needed to send an Ethereum transaction calling this method. Before -sending the Ethereum tx, this encoded tx data can first be sent to a separate signing service or can be used -to create a 0x transaction (see protocol spec for more details). - -**Returns:** *string* - -The ABI encoded transaction data as a string - -___ - -### owner - -#### ▪ **owner**: *object* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc721_proxy.ts:481](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc721_proxy.ts#L481)* - -#### callAsync - -▸ **callAsync**(`callData`: `Partial`, `defaultBlock?`: [BlockParam](#blockparam)): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc721_proxy.ts:487](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc721_proxy.ts#L487)* - -Sends a read-only call to the contract method. Returns the result that would happen if one were to send an -Ethereum transaction to this method, given the current state of the blockchain. Calls do not cost gas -since they don't modify state. - -**Parameters:** - -Name | Type | Default | ------- | ------ | ------ | -`callData` | `Partial` | {} | -`defaultBlock?` | [BlockParam](#blockparam) | - | - -**Returns:** *`Promise`* - -#### getABIDecodedReturnData - -▸ **getABIDecodedReturnData**(`returnData`: string): *string* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc721_proxy.ts:551](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc721_proxy.ts#L551)* - -Decode the ABI-encoded return data from a transaction - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`returnData` | string | the data returned after transaction execution | - -**Returns:** *string* - -An array representing the output results in order. Keynames of nested structs are preserved. - -#### getABIDecodedTransactionData - -▸ **getABIDecodedTransactionData**(`callData`: string): *void* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc721_proxy.ts:539](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc721_proxy.ts#L539)* - -Decode the ABI-encoded transaction data into its input arguments - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`callData` | string | The ABI-encoded transaction data | - -**Returns:** *void* - -An array representing the input arguments in order. Keynames of nested structs are preserved. - -#### getABIEncodedTransactionData - -▸ **getABIEncodedTransactionData**(): *string* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc721_proxy.ts:529](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc721_proxy.ts#L529)* - -Returns the ABI encoded transaction data needed to send an Ethereum transaction calling this method. Before -sending the Ethereum tx, this encoded tx data can first be sent to a separate signing service or can be used -to create a 0x transaction (see protocol spec for more details). - -**Returns:** *string* - -The ABI encoded transaction data as a string - -___ - -### removeAuthorizedAddress - -#### ▪ **removeAuthorizedAddress**: *object* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc721_proxy.ts:312](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc721_proxy.ts#L312)* - -Removes authorizion of an address. - -#### awaitTransactionSuccessAsync - -▸ **awaitTransactionSuccessAsync**(`target`: string, `txData?`: `Partial`, `pollingIntervalMs?`: undefined | number, `timeoutMs?`: undefined | number): *`PromiseWithTransactionHash`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc721_proxy.ts:347](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc721_proxy.ts#L347)* - -Sends an Ethereum transaction and waits until the transaction has been successfully mined without reverting. -If the transaction was mined, but reverted, an error is thrown. - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`target` | string | Address to remove authorization from. | -`txData?` | `Partial` | Additional data for transaction | -`pollingIntervalMs?` | undefined \| number | Interval at which to poll for success | -`timeoutMs?` | undefined \| number | - | - -**Returns:** *`PromiseWithTransactionHash`* - -A promise that resolves when the transaction is successful - -#### callAsync - -▸ **callAsync**(`target`: string, `callData`: `Partial`, `defaultBlock?`: [BlockParam](#blockparam)): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc721_proxy.ts:404](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc721_proxy.ts#L404)* - -Sends a read-only call to the contract method. Returns the result that would happen if one were to send an -Ethereum transaction to this method, given the current state of the blockchain. Calls do not cost gas -since they don't modify state. - -**Parameters:** - -Name | Type | Default | Description | ------- | ------ | ------ | ------ | -`target` | string | - | Address to remove authorization from. | -`callData` | `Partial` | {} | - | -`defaultBlock?` | [BlockParam](#blockparam) | - | - | - -**Returns:** *`Promise`* - -#### estimateGasAsync - -▸ **estimateGasAsync**(`target`: string, `txData?`: `Partial` | undefined): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc721_proxy.ts:374](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc721_proxy.ts#L374)* - -Estimates the gas cost of sending an Ethereum transaction calling this method with these arguments. - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`target` | string | Address to remove authorization from. | -`txData?` | `Partial` \| undefined | Additional data for transaction | - -**Returns:** *`Promise`* - -The hash of the transaction - -#### getABIDecodedReturnData - -▸ **getABIDecodedReturnData**(`returnData`: string): *void* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc721_proxy.ts:473](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc721_proxy.ts#L473)* - -Decode the ABI-encoded return data from a transaction - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`returnData` | string | the data returned after transaction execution | - -**Returns:** *void* - -An array representing the output results in order. Keynames of nested structs are preserved. - -#### getABIDecodedTransactionData - -▸ **getABIDecodedTransactionData**(`callData`: string): *[string]* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc721_proxy.ts:461](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc721_proxy.ts#L461)* - -Decode the ABI-encoded transaction data into its input arguments - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`callData` | string | The ABI-encoded transaction data | - -**Returns:** *[string]* - -An array representing the input arguments in order. Keynames of nested structs are preserved. - -#### getABIEncodedTransactionData - -▸ **getABIEncodedTransactionData**(`target`: string): *string* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc721_proxy.ts:448](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc721_proxy.ts#L448)* - -Returns the ABI encoded transaction data needed to send an Ethereum transaction calling this method. Before -sending the Ethereum tx, this encoded tx data can first be sent to a separate signing service or can be used -to create a 0x transaction (see protocol spec for more details). - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`target` | string | Address to remove authorization from. | - -**Returns:** *string* - -The ABI encoded transaction data as a string - -#### sendTransactionAsync - -▸ **sendTransactionAsync**(`target`: string, `txData?`: `Partial` | undefined): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc721_proxy.ts:320](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc721_proxy.ts#L320)* - -Sends an Ethereum transaction executing this method with the supplied parameters. This is a read/write -Ethereum operation and will cost gas. - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`target` | string | Address to remove authorization from. | -`txData?` | `Partial` \| undefined | Additional data for transaction | - -**Returns:** *`Promise`* - -The hash of the transaction - -#### validateAndSendTransactionAsync - -▸ **validateAndSendTransactionAsync**(`target`: string, `txData?`: `Partial` | undefined): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc721_proxy.ts:393](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc721_proxy.ts#L393)* - -**Parameters:** - -Name | Type | ------- | ------ | -`target` | string | -`txData?` | `Partial` \| undefined | - -**Returns:** *`Promise`* - -___ - -### removeAuthorizedAddressAtIndex - -#### ▪ **removeAuthorizedAddressAtIndex**: *object* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc721_proxy.ts:562](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc721_proxy.ts#L562)* - -Removes authorizion of an address. - -#### awaitTransactionSuccessAsync - -▸ **awaitTransactionSuccessAsync**(`target`: string, `index`: `BigNumber`, `txData?`: `Partial`, `pollingIntervalMs?`: undefined | number, `timeoutMs?`: undefined | number): *`PromiseWithTransactionHash`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc721_proxy.ts:607](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc721_proxy.ts#L607)* - -Sends an Ethereum transaction and waits until the transaction has been successfully mined without reverting. -If the transaction was mined, but reverted, an error is thrown. - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`target` | string | Address to remove authorization from. | -`index` | `BigNumber` | Index of target in authorities array. | -`txData?` | `Partial` | Additional data for transaction | -`pollingIntervalMs?` | undefined \| number | Interval at which to poll for success | -`timeoutMs?` | undefined \| number | - | - -**Returns:** *`PromiseWithTransactionHash`* - -A promise that resolves when the transaction is successful - -#### callAsync - -▸ **callAsync**(`target`: string, `index`: `BigNumber`, `callData`: `Partial`, `defaultBlock?`: [BlockParam](#blockparam)): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc721_proxy.ts:688](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc721_proxy.ts#L688)* - -Sends a read-only call to the contract method. Returns the result that would happen if one were to send an -Ethereum transaction to this method, given the current state of the blockchain. Calls do not cost gas -since they don't modify state. - -**Parameters:** - -Name | Type | Default | Description | ------- | ------ | ------ | ------ | -`target` | string | - | Address to remove authorization from. | -`index` | `BigNumber` | - | Index of target in authorities array. | -`callData` | `Partial` | {} | - | -`defaultBlock?` | [BlockParam](#blockparam) | - | - | - -**Returns:** *`Promise`* - -#### estimateGasAsync - -▸ **estimateGasAsync**(`target`: string, `index`: `BigNumber`, `txData?`: `Partial` | undefined): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc721_proxy.ts:641](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc721_proxy.ts#L641)* - -Estimates the gas cost of sending an Ethereum transaction calling this method with these arguments. - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`target` | string | Address to remove authorization from. | -`index` | `BigNumber` | Index of target in authorities array. | -`txData?` | `Partial` \| undefined | Additional data for transaction | - -**Returns:** *`Promise`* - -The hash of the transaction - -#### getABIDecodedReturnData - -▸ **getABIDecodedReturnData**(`returnData`: string): *void* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc721_proxy.ts:769](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc721_proxy.ts#L769)* - -Decode the ABI-encoded return data from a transaction - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`returnData` | string | the data returned after transaction execution | - -**Returns:** *void* - -An array representing the output results in order. Keynames of nested structs are preserved. - -#### getABIDecodedTransactionData - -▸ **getABIDecodedTransactionData**(`callData`: string): *[string, `BigNumber`]* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc721_proxy.ts:757](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc721_proxy.ts#L757)* - -Decode the ABI-encoded transaction data into its input arguments - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`callData` | string | The ABI-encoded transaction data | - -**Returns:** *[string, `BigNumber`]* - -An array representing the input arguments in order. Keynames of nested structs are preserved. - -#### getABIEncodedTransactionData - -▸ **getABIEncodedTransactionData**(`target`: string, `index`: `BigNumber`): *string* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc721_proxy.ts:742](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc721_proxy.ts#L742)* - -Returns the ABI encoded transaction data needed to send an Ethereum transaction calling this method. Before -sending the Ethereum tx, this encoded tx data can first be sent to a separate signing service or can be used -to create a 0x transaction (see protocol spec for more details). - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`target` | string | Address to remove authorization from. | -`index` | `BigNumber` | Index of target in authorities array. | - -**Returns:** *string* - -The ABI encoded transaction data as a string - -#### sendTransactionAsync - -▸ **sendTransactionAsync**(`target`: string, `index`: `BigNumber`, `txData?`: `Partial` | undefined): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc721_proxy.ts:571](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc721_proxy.ts#L571)* - -Sends an Ethereum transaction executing this method with the supplied parameters. This is a read/write -Ethereum operation and will cost gas. - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`target` | string | Address to remove authorization from. | -`index` | `BigNumber` | Index of target in authorities array. | -`txData?` | `Partial` \| undefined | Additional data for transaction | - -**Returns:** *`Promise`* - -The hash of the transaction - -#### validateAndSendTransactionAsync - -▸ **validateAndSendTransactionAsync**(`target`: string, `index`: `BigNumber`, `txData?`: `Partial` | undefined): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc721_proxy.ts:668](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc721_proxy.ts#L668)* - -**Parameters:** - -Name | Type | ------- | ------ | -`target` | string | -`index` | `BigNumber` | -`txData?` | `Partial` \| undefined | - -**Returns:** *`Promise`* - -___ - -### transferOwnership - -#### ▪ **transferOwnership**: *object* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc721_proxy.ts:1019](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc721_proxy.ts#L1019)* - -#### awaitTransactionSuccessAsync - -▸ **awaitTransactionSuccessAsync**(`newOwner`: string, `txData?`: `Partial`, `pollingIntervalMs?`: undefined | number, `timeoutMs?`: undefined | number): *`PromiseWithTransactionHash`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc721_proxy.ts:1052](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc721_proxy.ts#L1052)* - -Sends an Ethereum transaction and waits until the transaction has been successfully mined without reverting. -If the transaction was mined, but reverted, an error is thrown. - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`newOwner` | string | - | -`txData?` | `Partial` | Additional data for transaction | -`pollingIntervalMs?` | undefined \| number | Interval at which to poll for success | -`timeoutMs?` | undefined \| number | - | - -**Returns:** *`PromiseWithTransactionHash`* - -A promise that resolves when the transaction is successful - -#### callAsync - -▸ **callAsync**(`newOwner`: string, `callData`: `Partial`, `defaultBlock?`: [BlockParam](#blockparam)): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc721_proxy.ts:1107](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc721_proxy.ts#L1107)* - -Sends a read-only call to the contract method. Returns the result that would happen if one were to send an -Ethereum transaction to this method, given the current state of the blockchain. Calls do not cost gas -since they don't modify state. - -**Parameters:** - -Name | Type | Default | ------- | ------ | ------ | -`newOwner` | string | - | -`callData` | `Partial` | {} | -`defaultBlock?` | [BlockParam](#blockparam) | - | - -**Returns:** *`Promise`* - -#### estimateGasAsync - -▸ **estimateGasAsync**(`newOwner`: string, `txData?`: `Partial` | undefined): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc721_proxy.ts:1078](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc721_proxy.ts#L1078)* - -Estimates the gas cost of sending an Ethereum transaction calling this method with these arguments. - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`newOwner` | string | - | -`txData?` | `Partial` \| undefined | Additional data for transaction | - -**Returns:** *`Promise`* - -The hash of the transaction - -#### getABIDecodedReturnData - -▸ **getABIDecodedReturnData**(`returnData`: string): *void* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc721_proxy.ts:1175](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc721_proxy.ts#L1175)* - -Decode the ABI-encoded return data from a transaction - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`returnData` | string | the data returned after transaction execution | - -**Returns:** *void* - -An array representing the output results in order. Keynames of nested structs are preserved. - -#### getABIDecodedTransactionData - -▸ **getABIDecodedTransactionData**(`callData`: string): *[string]* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc721_proxy.ts:1163](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc721_proxy.ts#L1163)* - -Decode the ABI-encoded transaction data into its input arguments - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`callData` | string | The ABI-encoded transaction data | - -**Returns:** *[string]* - -An array representing the input arguments in order. Keynames of nested structs are preserved. - -#### getABIEncodedTransactionData - -▸ **getABIEncodedTransactionData**(`newOwner`: string): *string* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc721_proxy.ts:1150](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc721_proxy.ts#L1150)* - -Returns the ABI encoded transaction data needed to send an Ethereum transaction calling this method. Before -sending the Ethereum tx, this encoded tx data can first be sent to a separate signing service or can be used -to create a 0x transaction (see protocol spec for more details). - -**Parameters:** - -Name | Type | ------- | ------ | -`newOwner` | string | - -**Returns:** *string* - -The ABI encoded transaction data as a string - -#### sendTransactionAsync - -▸ **sendTransactionAsync**(`newOwner`: string, `txData?`: `Partial` | undefined): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc721_proxy.ts:1026](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc721_proxy.ts#L1026)* - -Sends an Ethereum transaction executing this method with the supplied parameters. This is a read/write -Ethereum operation and will cost gas. - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`newOwner` | string | - | -`txData?` | `Partial` \| undefined | Additional data for transaction | - -**Returns:** *`Promise`* - -The hash of the transaction - -#### validateAndSendTransactionAsync - -▸ **validateAndSendTransactionAsync**(`newOwner`: string, `txData?`: `Partial` | undefined): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc721_proxy.ts:1097](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc721_proxy.ts#L1097)* - -**Parameters:** - -Name | Type | ------- | ------ | -`newOwner` | string | -`txData?` | `Partial` \| undefined | - -**Returns:** *`Promise`* - -
- -# 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 [abi-gen-wrappers/src/generated-wrappers/erc721_token.ts:1991](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc721_token.ts#L1991)* - -**Parameters:** - -Name | Type | Default | ------- | ------ | ------ | -`address` | string | - | -`supportedProvider` | [SupportedProvider](#supportedprovider) | - | -`txDefaults?` | `Partial` | - | -`logDecodeDependencies?` | undefined \| object | - | -`deployedBytecode` | string \| undefined | ERC721TokenContract.deployedBytecode | - -**Returns:** *[ERC721TokenContract](#class-erc721tokencontract)* - -## Properties - -#### abi - -• **abi**: *[ContractAbi](#contractabi)* - - - -Defined in base-contract/lib/src/index.d.ts:27 - -___ - -### address - -• **address**: *string* - - - -Defined in base-contract/lib/src/index.d.ts:28 - -___ - -Args - -• **constructorArgs**: *any[]* - - - -Defined in base-contract/lib/src/index.d.ts:30 - -___ - -### contractName - -• **contractName**: *string* - - - -Defined in base-contract/lib/src/index.d.ts:29 - -___ - -### `Static` deployedBytecode - -▪ **deployedBytecode**: *string* = "0x608060405234801561001057600080fd5b50600436106100a35760003560e01c80636352211e11610076578063a22cb4651161005b578063a22cb46514610211578063b88d4fde1461024c578063e985e9c5146102e9576100a3565b80636352211e146101af57806370a08231146101cc576100a3565b8063081812fc146100a8578063095ea7b3146100ee57806323b872dd1461012957806342842e0e1461016c575b600080fd5b6100c5600480360360208110156100be57600080fd5b5035610338565b6040805173ffffffffffffffffffffffffffffffffffffffff9092168252519081900360200190f35b6101276004803603604081101561010457600080fd5b5073ffffffffffffffffffffffffffffffffffffffff8135169060200135610360565b005b6101276004803603606081101561013f57600080fd5b5073ffffffffffffffffffffffffffffffffffffffff813581169160208101359091169060400135610482565b6101276004803603606081101561018257600080fd5b5073ffffffffffffffffffffffffffffffffffffffff8135811691602081013590911690604001356107ef565b6100c5600480360360208110156101c557600080fd5b5035610989565b6101ff600480360360208110156101e257600080fd5b503573ffffffffffffffffffffffffffffffffffffffff16610a20565b60408051918252519081900360200190f35b6101276004803603604081101561022757600080fd5b5073ffffffffffffffffffffffffffffffffffffffff81351690602001351515610acd565b6101276004803603608081101561026257600080fd5b73ffffffffffffffffffffffffffffffffffffffff8235811692602081013590911691604082013591908101906080810160608201356401000000008111156102aa57600080fd5b8201836020820111156102bc57600080fd5b803590602001918460018302840111640100000000831117156102de57600080fd5b509092509050610b66565b610324600480360360408110156102ff57600080fd5b5073ffffffffffffffffffffffffffffffffffffffff81358116916020013516610d31565b604080519115158252519081900360200190f35b60009081526001602052604090205473ffffffffffffffffffffffffffffffffffffffff1690565b600061036b82610989565b90503373ffffffffffffffffffffffffffffffffffffffff8216148061039657506103968133610d31565b61040157604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601560248201527f4552433732315f494e56414c49445f53454e4445520000000000000000000000604482015290519081900360640190fd5b60008281526001602052604080822080547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff87811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b73ffffffffffffffffffffffffffffffffffffffff821661050457604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601660248201527f4552433732315f5a45524f5f544f5f4144445245535300000000000000000000604482015290519081900360640190fd5b600061050f82610989565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff16146105ab57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601560248201527f4552433732315f4f574e45525f4d49534d415443480000000000000000000000604482015290519081900360640190fd5b3360006105b784610338565b90508273ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614806105f857506105f88383610d31565b8061062e57508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16145b61069957604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601660248201527f4552433732315f494e56414c49445f5350454e44455200000000000000000000604482015290519081900360640190fd5b73ffffffffffffffffffffffffffffffffffffffff8116156106ea57600084815260016020526040902080547fffffffffffffffffffffffff00000000000000000000000000000000000000001690555b60008481526020818152604080832080547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff8a811691909117909155891683526002909152902054610753906001610d6c565b73ffffffffffffffffffffffffffffffffffffffff8088166000908152600260205260408082209390935590871681522054610790906001610d90565b73ffffffffffffffffffffffffffffffffffffffff808716600081815260026020526040808220949094559251879391928a16917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050505050565b6107fa838383610482565b813b801561098357604080517f150b7a0200000000000000000000000000000000000000000000000000000000815233600482015273ffffffffffffffffffffffffffffffffffffffff8681166024830152604482018590526080606483015260006084830181905292519086169163150b7a029160c480830192602092919082900301818787803b15801561088f57600080fd5b505af11580156108a3573d6000803e3d6000fd5b505050506040513d60208110156108b957600080fd5b505160405190915080602f610e5b8239602f01905060405180910390207bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161461098157604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601760248201527f4552433732315f494e56414c49445f53454c4543544f52000000000000000000604482015290519081900360640190fd5b505b50505050565b60008181526020819052604081205473ffffffffffffffffffffffffffffffffffffffff1680610a1a57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601160248201527f4552433732315f5a45524f5f4f574e4552000000000000000000000000000000604482015290519081900360640190fd5b92915050565b600073ffffffffffffffffffffffffffffffffffffffff8216610aa457604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601160248201527f4552433732315f5a45524f5f4f574e4552000000000000000000000000000000604482015290519081900360640190fd5b5073ffffffffffffffffffffffffffffffffffffffff1660009081526002602052604090205490565b33600081815260036020908152604080832073ffffffffffffffffffffffffffffffffffffffff87168085529083529281902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0016861515908117909155815190815290519293927f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31929181900390910190a35050565b610b71858585610482565b833b8015610d29576040517f150b7a02000000000000000000000000000000000000000000000000000000008152336004820181815273ffffffffffffffffffffffffffffffffffffffff89811660248501526044840188905260806064850190815260848501879052600094918a169363150b7a029390928c928b928b928b929060a401848480828437600081840152601f19601f8201169050808301925050509650505050505050602060405180830381600087803b158015610c3557600080fd5b505af1158015610c49573d6000803e3d6000fd5b505050506040513d6020811015610c5f57600080fd5b505160405190915080602f610e5b8239602f01905060405180910390207bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614610d2757604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601760248201527f4552433732315f494e56414c49445f53454c4543544f52000000000000000000604482015290519081900360640190fd5b505b505050505050565b73ffffffffffffffffffffffffffffffffffffffff918216600090815260036020908152604080832093909416825291909152205460ff1690565b600082821115610d8a57610d8a610d8560028585610db3565b610e52565b50900390565b600082820183811015610dac57610dac610d8560008686610db3565b9392505050565b606063e946c1bb60e01b84848460405160240180846003811115610dd357fe5b60ff1681526020018381526020018281526020019350505050604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff838183161783525050505090509392505050565b805160208201fdfe6f6e455243373231526563656976656428616464726573732c616464726573732c75696e743235362c627974657329a265627a7a723158204bc74831490bca4fbe1805808d58d6b0e12f618a37565e744e91d8dc73dc18b164736f6c634300050c0032" - -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc721_token.ts:61](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc721_token.ts#L61)* - -## Methods - -### evmExecAsync - -▸ **evmExecAsync**(`input`: `Buffer`): *`Promise`* - - - -Defined in base-contract/lib/src/index.d.ts:42 - -**Parameters:** - -Name | Type | ------- | ------ | -`input` | `Buffer` | - -**Returns:** *`Promise`* - -___ - -### getLogsAsync - -▸ **getLogsAsync**<**ArgsType**>(`eventName`: [ERC721TokenEvents](#enumeration-erc721tokenevents), `blockRange`: `BlockRange`, `indexFilterValues`: `IndexedFilterValues`): *`Promise>>`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc721_token.ts:1975](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc721_token.ts#L1975)* - -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 - -___ - -### subscribe - -▸ **subscribe**<**ArgsType**>(`eventName`: [ERC721TokenEvents](#enumeration-erc721tokenevents), `indexFilterValues`: `IndexedFilterValues`, `callback`: [EventCallback](#eventcallback)‹*`ArgsType`*›, `isVerbose`: boolean, `blockPollingIntervalMs?`: undefined | number): *string* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc721_token.ts:1933](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc721_token.ts#L1933)* - -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 - -___ - -### unsubscribe - -▸ **unsubscribe**(`subscriptionToken`: string): *void* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc721_token.ts:1958](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc721_token.ts#L1958)* - -Cancel a subscription - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`subscriptionToken` | string | Subscription token returned by `subscribe()` | - -**Returns:** *void* - -___ - -### unsubscribeAll - -▸ **unsubscribeAll**(): *void* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc721_token.ts:1964](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc721_token.ts#L1964)* - -Cancels all existing subscriptions - -**Returns:** *void* - -___ - -### `Static` ABI - -▸ **ABI**(): *[ContractAbi](#contractabi)* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc721_token.ts:1664](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc721_token.ts#L1664)* - -**Returns:** *[ContractAbi](#contractabi)* - -The contract ABI - -___ - -### `Static` deployAsync - -▸ **deployAsync**(`bytecode`: string, `abi`: [ContractAbi](#contractabi), `supportedProvider`: [SupportedProvider](#supportedprovider), `txDefaults`: `Partial`, `logDecodeDependencies`: object): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc721_token.ts:1622](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc721_token.ts#L1622)* - -**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 [abi-gen-wrappers/src/generated-wrappers/erc721_token.ts:1597](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc721_token.ts#L1597)* - -**Parameters:** - -Name | Type | ------- | ------ | -`artifact` | `ContractArtifact` \| `SimpleContractArtifact` | -`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:41 - -**Parameters:** - -Name | Type | ------- | ------ | -`inputAbi` | `DataItem`[] | -`args` | any[] | - -**Returns:** *string* - -## Object literals - -### approve - -#### ▪ **approve**: *object* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc721_token.ts:68](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc721_token.ts#L68)* - -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. - -#### awaitTransactionSuccessAsync - -▸ **awaitTransactionSuccessAsync**(`_approved`: string, `_tokenId`: `BigNumber`, `txData?`: `Partial`, `pollingIntervalMs?`: undefined | number, `timeoutMs?`: undefined | number): *`PromiseWithTransactionHash`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc721_token.ts:113](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc721_token.ts#L113)* - -Sends an Ethereum transaction and waits until the transaction has been successfully mined without reverting. -If the transaction was mined, but reverted, an error is thrown. - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`_approved` | string | The new approved NFT controller | -`_tokenId` | `BigNumber` | The NFT to approve | -`txData?` | `Partial` | Additional data for transaction | -`pollingIntervalMs?` | undefined \| number | Interval at which to poll for success | -`timeoutMs?` | undefined \| number | - | - -**Returns:** *`PromiseWithTransactionHash`* - -A promise that resolves when the transaction is successful - -#### callAsync - -▸ **callAsync**(`_approved`: string, `_tokenId`: `BigNumber`, `callData`: `Partial`, `defaultBlock?`: [BlockParam](#blockparam)): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc721_token.ts:186](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc721_token.ts#L186)* - -Sends a read-only call to the contract method. Returns the result that would happen if one were to send an -Ethereum transaction to this method, given the current state of the blockchain. Calls do not cost gas -since they don't modify state. - -**Parameters:** - -Name | Type | Default | Description | ------- | ------ | ------ | ------ | -`_approved` | string | - | The new approved NFT controller | -`_tokenId` | `BigNumber` | - | The NFT to approve | -`callData` | `Partial` | {} | - | -`defaultBlock?` | [BlockParam](#blockparam) | - | - | - -**Returns:** *`Promise`* - -#### estimateGasAsync - -▸ **estimateGasAsync**(`_approved`: string, `_tokenId`: `BigNumber`, `txData?`: `Partial` | undefined): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc721_token.ts:143](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc721_token.ts#L143)* - -Estimates the gas cost of sending an Ethereum transaction calling this method with these arguments. - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`_approved` | string | The new approved NFT controller | -`_tokenId` | `BigNumber` | The NFT to approve | -`txData?` | `Partial` \| undefined | Additional data for transaction | - -**Returns:** *`Promise`* - -The hash of the transaction - -#### getABIDecodedReturnData - -▸ **getABIDecodedReturnData**(`returnData`: string): *void* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc721_token.ts:267](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc721_token.ts#L267)* - -Decode the ABI-encoded return data from a transaction - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`returnData` | string | the data returned after transaction execution | - -**Returns:** *void* - -An array representing the output results in order. Keynames of nested structs are preserved. - -#### getABIDecodedTransactionData - -▸ **getABIDecodedTransactionData**(`callData`: string): *[string, `BigNumber`]* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc721_token.ts:255](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc721_token.ts#L255)* - -Decode the ABI-encoded transaction data into its input arguments - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`callData` | string | The ABI-encoded transaction data | - -**Returns:** *[string, `BigNumber`]* - -An array representing the input arguments in order. Keynames of nested structs are preserved. - -#### getABIEncodedTransactionData - -▸ **getABIEncodedTransactionData**(`_approved`: string, `_tokenId`: `BigNumber`): *string* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc721_token.ts:240](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc721_token.ts#L240)* - -Returns the ABI encoded transaction data needed to send an Ethereum transaction calling this method. Before -sending the Ethereum tx, this encoded tx data can first be sent to a separate signing service or can be used -to create a 0x transaction (see protocol spec for more details). - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`_approved` | string | The new approved NFT controller | -`_tokenId` | `BigNumber` | The NFT to approve | - -**Returns:** *string* - -The ABI encoded transaction data as a string - -#### sendTransactionAsync - -▸ **sendTransactionAsync**(`_approved`: string, `_tokenId`: `BigNumber`, `txData?`: `Partial` | undefined): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc721_token.ts:77](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc721_token.ts#L77)* - -Sends an Ethereum transaction executing this method with the supplied parameters. This is a read/write -Ethereum operation and will cost gas. - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`_approved` | string | The new approved NFT controller | -`_tokenId` | `BigNumber` | The NFT to approve | -`txData?` | `Partial` \| undefined | Additional data for transaction | - -**Returns:** *`Promise`* - -The hash of the transaction - -#### validateAndSendTransactionAsync - -▸ **validateAndSendTransactionAsync**(`_approved`: string, `_tokenId`: `BigNumber`, `txData?`: `Partial` | undefined): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc721_token.ts:170](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc721_token.ts#L170)* - -**Parameters:** - -Name | Type | ------- | ------ | -`_approved` | string | -`_tokenId` | `BigNumber` | -`txData?` | `Partial` \| undefined | - -**Returns:** *`Promise`* - -___ - -### balanceOf - -#### ▪ **balanceOf**: *object* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc721_token.ts:279](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc721_token.ts#L279)* - -NFTs assigned to the zero address are considered invalid, and this -function throws for queries about the zero address. - -#### callAsync - -▸ **callAsync**(`_owner`: string, `callData`: `Partial`, `defaultBlock?`: [BlockParam](#blockparam)): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc721_token.ts:287](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc721_token.ts#L287)* - -Sends a read-only call to the contract method. Returns the result that would happen if one were to send an -Ethereum transaction to this method, given the current state of the blockchain. Calls do not cost gas -since they don't modify state. - -**Parameters:** - -Name | Type | Default | Description | ------- | ------ | ------ | ------ | -`_owner` | string | - | An address for whom to query the balance | -`callData` | `Partial` | {} | - | -`defaultBlock?` | [BlockParam](#blockparam) | - | - | - -**Returns:** *`Promise`* - -The number of NFTs owned by `_owner`, possibly zero - -#### getABIDecodedReturnData - -▸ **getABIDecodedReturnData**(`returnData`: string): *`BigNumber`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc721_token.ts:358](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc721_token.ts#L358)* - -Decode the ABI-encoded return data from a transaction - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`returnData` | string | the data returned after transaction execution | - -**Returns:** *`BigNumber`* - -An array representing the output results in order. Keynames of nested structs are preserved. - -#### getABIDecodedTransactionData - -▸ **getABIDecodedTransactionData**(`callData`: string): *string* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc721_token.ts:346](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc721_token.ts#L346)* - -Decode the ABI-encoded transaction data into its input arguments - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`callData` | string | The ABI-encoded transaction data | - -**Returns:** *string* - -An array representing the input arguments in order. Keynames of nested structs are preserved. - -#### getABIEncodedTransactionData - -▸ **getABIEncodedTransactionData**(`_owner`: string): *string* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc721_token.ts:335](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc721_token.ts#L335)* - -Returns the ABI encoded transaction data needed to send an Ethereum transaction calling this method. Before -sending the Ethereum tx, this encoded tx data can first be sent to a separate signing service or can be used -to create a 0x transaction (see protocol spec for more details). - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`_owner` | string | An address for whom to query the balance | - -**Returns:** *string* - -The ABI encoded transaction data as a string - -___ - -### getApproved - -#### ▪ **getApproved**: *object* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc721_token.ts:369](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc721_token.ts#L369)* - -Throws if `_tokenId` is not a valid NFT. - -#### callAsync - -▸ **callAsync**(`_tokenId`: `BigNumber`, `callData`: `Partial`, `defaultBlock?`: [BlockParam](#blockparam)): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc721_token.ts:377](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc721_token.ts#L377)* - -Sends a read-only call to the contract method. Returns the result that would happen if one were to send an -Ethereum transaction to this method, given the current state of the blockchain. Calls do not cost gas -since they don't modify state. - -**Parameters:** - -Name | Type | Default | Description | ------- | ------ | ------ | ------ | -`_tokenId` | `BigNumber` | - | The NFT to find the approved address for | -`callData` | `Partial` | {} | - | -`defaultBlock?` | [BlockParam](#blockparam) | - | - | - -**Returns:** *`Promise`* - -The approved address for this NFT, or the zero address if there is none - -#### getABIDecodedReturnData - -▸ **getABIDecodedReturnData**(`returnData`: string): *string* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc721_token.ts:448](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc721_token.ts#L448)* - -Decode the ABI-encoded return data from a transaction - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`returnData` | string | the data returned after transaction execution | - -**Returns:** *string* - -An array representing the output results in order. Keynames of nested structs are preserved. - -#### getABIDecodedTransactionData - -▸ **getABIDecodedTransactionData**(`callData`: string): *`BigNumber`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc721_token.ts:436](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc721_token.ts#L436)* - -Decode the ABI-encoded transaction data into its input arguments - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`callData` | string | The ABI-encoded transaction data | - -**Returns:** *`BigNumber`* - -An array representing the input arguments in order. Keynames of nested structs are preserved. - -#### getABIEncodedTransactionData - -▸ **getABIEncodedTransactionData**(`_tokenId`: `BigNumber`): *string* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc721_token.ts:425](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc721_token.ts#L425)* - -Returns the ABI encoded transaction data needed to send an Ethereum transaction calling this method. Before -sending the Ethereum tx, this encoded tx data can first be sent to a separate signing service or can be used -to create a 0x transaction (see protocol spec for more details). - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`_tokenId` | `BigNumber` | The NFT to find the approved address for | - -**Returns:** *string* - -The ABI encoded transaction data as a string - -___ - -### isApprovedForAll - -#### ▪ **isApprovedForAll**: *object* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc721_token.ts:456](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc721_token.ts#L456)* - -#### callAsync - -▸ **callAsync**(`_owner`: string, `_operator`: string, `callData`: `Partial`, `defaultBlock?`: [BlockParam](#blockparam)): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc721_token.ts:465](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc721_token.ts#L465)* - -Sends a read-only call to the contract method. Returns the result that would happen if one were to send an -Ethereum transaction to this method, given the current state of the blockchain. Calls do not cost gas -since they don't modify state. - -**Parameters:** - -Name | Type | Default | Description | ------- | ------ | ------ | ------ | -`_owner` | string | - | The address that owns the NFTs | -`_operator` | string | - | The address that acts on behalf of the owner | -`callData` | `Partial` | {} | - | -`defaultBlock?` | [BlockParam](#blockparam) | - | - | - -**Returns:** *`Promise`* - -True if `_operator` is an approved operator for `_owner`, false otherwise - -#### getABIDecodedReturnData - -▸ **getABIDecodedReturnData**(`returnData`: string): *boolean* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc721_token.ts:546](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc721_token.ts#L546)* - -Decode the ABI-encoded return data from a transaction - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`returnData` | string | the data returned after transaction execution | - -**Returns:** *boolean* - -An array representing the output results in order. Keynames of nested structs are preserved. - -#### getABIDecodedTransactionData - -▸ **getABIDecodedTransactionData**(`callData`: string): *string* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc721_token.ts:534](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc721_token.ts#L534)* - -Decode the ABI-encoded transaction data into its input arguments - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`callData` | string | The ABI-encoded transaction data | - -**Returns:** *string* - -An array representing the input arguments in order. Keynames of nested structs are preserved. - -#### getABIEncodedTransactionData - -▸ **getABIEncodedTransactionData**(`_owner`: string, `_operator`: string): *string* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc721_token.ts:519](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc721_token.ts#L519)* - -Returns the ABI encoded transaction data needed to send an Ethereum transaction calling this method. Before -sending the Ethereum tx, this encoded tx data can first be sent to a separate signing service or can be used -to create a 0x transaction (see protocol spec for more details). - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`_owner` | string | The address that owns the NFTs | -`_operator` | string | The address that acts on behalf of the owner | - -**Returns:** *string* - -The ABI encoded transaction data as a string - -___ - -### ownerOf - -#### ▪ **ownerOf**: *object* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc721_token.ts:558](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc721_token.ts#L558)* - -NFTs assigned to zero address are considered invalid, and queries -about them do throw. - -#### callAsync - -▸ **callAsync**(`_tokenId`: `BigNumber`, `callData`: `Partial`, `defaultBlock?`: [BlockParam](#blockparam)): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc721_token.ts:566](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc721_token.ts#L566)* - -Sends a read-only call to the contract method. Returns the result that would happen if one were to send an -Ethereum transaction to this method, given the current state of the blockchain. Calls do not cost gas -since they don't modify state. - -**Parameters:** - -Name | Type | Default | Description | ------- | ------ | ------ | ------ | -`_tokenId` | `BigNumber` | - | The identifier for an NFT | -`callData` | `Partial` | {} | - | -`defaultBlock?` | [BlockParam](#blockparam) | - | - | - -**Returns:** *`Promise`* - -The address of the owner of the NFT - -#### getABIDecodedReturnData - -▸ **getABIDecodedReturnData**(`returnData`: string): *string* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc721_token.ts:637](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc721_token.ts#L637)* - -Decode the ABI-encoded return data from a transaction - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`returnData` | string | the data returned after transaction execution | - -**Returns:** *string* - -An array representing the output results in order. Keynames of nested structs are preserved. - -#### getABIDecodedTransactionData - -▸ **getABIDecodedTransactionData**(`callData`: string): *`BigNumber`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc721_token.ts:625](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc721_token.ts#L625)* - -Decode the ABI-encoded transaction data into its input arguments - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`callData` | string | The ABI-encoded transaction data | - -**Returns:** *`BigNumber`* - -An array representing the input arguments in order. Keynames of nested structs are preserved. - -#### getABIEncodedTransactionData - -▸ **getABIEncodedTransactionData**(`_tokenId`: `BigNumber`): *string* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc721_token.ts:614](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc721_token.ts#L614)* - -Returns the ABI encoded transaction data needed to send an Ethereum transaction calling this method. Before -sending the Ethereum tx, this encoded tx data can first be sent to a separate signing service or can be used -to create a 0x transaction (see protocol spec for more details). - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`_tokenId` | `BigNumber` | The identifier for an NFT | - -**Returns:** *string* - -The ABI encoded transaction data as a string - -___ - -### safeTransferFrom1 - -#### ▪ **safeTransferFrom1**: *object* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc721_token.ts:649](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc721_token.ts#L649)* - -This works identically to the other function with an extra data parameter, -except this function just sets data to "". - -#### awaitTransactionSuccessAsync - -▸ **awaitTransactionSuccessAsync**(`_from`: string, `_to`: string, `_tokenId`: `BigNumber`, `txData?`: `Partial`, `pollingIntervalMs?`: undefined | number, `timeoutMs?`: undefined | number): *`PromiseWithTransactionHash`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc721_token.ts:699](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc721_token.ts#L699)* - -Sends an Ethereum transaction and waits until the transaction has been successfully mined without reverting. -If the transaction was mined, but reverted, an error is thrown. - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`_from` | string | The current owner of the NFT | -`_to` | string | The new owner | -`_tokenId` | `BigNumber` | The NFT to transfer | -`txData?` | `Partial` | Additional data for transaction | -`pollingIntervalMs?` | undefined \| number | Interval at which to poll for success | -`timeoutMs?` | undefined \| number | - | - -**Returns:** *`PromiseWithTransactionHash`* - -A promise that resolves when the transaction is successful - -#### callAsync - -▸ **callAsync**(`_from`: string, `_to`: string, `_tokenId`: `BigNumber`, `callData`: `Partial`, `defaultBlock?`: [BlockParam](#blockparam)): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc721_token.ts:785](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc721_token.ts#L785)* - -Sends a read-only call to the contract method. Returns the result that would happen if one were to send an -Ethereum transaction to this method, given the current state of the blockchain. Calls do not cost gas -since they don't modify state. - -**Parameters:** - -Name | Type | Default | Description | ------- | ------ | ------ | ------ | -`_from` | string | - | The current owner of the NFT | -`_to` | string | - | The new owner | -`_tokenId` | `BigNumber` | - | The NFT to transfer | -`callData` | `Partial` | {} | - | -`defaultBlock?` | [BlockParam](#blockparam) | - | - | - -**Returns:** *`Promise`* - -#### estimateGasAsync - -▸ **estimateGasAsync**(`_from`: string, `_to`: string, `_tokenId`: `BigNumber`, `txData?`: `Partial` | undefined): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc721_token.ts:737](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc721_token.ts#L737)* - -Estimates the gas cost of sending an Ethereum transaction calling this method with these arguments. - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`_from` | string | The current owner of the NFT | -`_to` | string | The new owner | -`_tokenId` | `BigNumber` | The NFT to transfer | -`txData?` | `Partial` \| undefined | Additional data for transaction | - -**Returns:** *`Promise`* - -The hash of the transaction - -#### getABIDecodedReturnData - -▸ **getABIDecodedReturnData**(`returnData`: string): *void* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc721_token.ts:872](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc721_token.ts#L872)* - -Decode the ABI-encoded return data from a transaction - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`returnData` | string | the data returned after transaction execution | - -**Returns:** *void* - -An array representing the output results in order. Keynames of nested structs are preserved. - -#### getABIDecodedTransactionData - -▸ **getABIDecodedTransactionData**(`callData`: string): *[string, string, `BigNumber`]* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc721_token.ts:860](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc721_token.ts#L860)* - -Decode the ABI-encoded transaction data into its input arguments - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`callData` | string | The ABI-encoded transaction data | - -**Returns:** *[string, string, `BigNumber`]* - -An array representing the input arguments in order. Keynames of nested structs are preserved. - -#### getABIEncodedTransactionData - -▸ **getABIEncodedTransactionData**(`_from`: string, `_to`: string, `_tokenId`: `BigNumber`): *string* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc721_token.ts:843](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc721_token.ts#L843)* - -Returns the ABI encoded transaction data needed to send an Ethereum transaction calling this method. Before -sending the Ethereum tx, this encoded tx data can first be sent to a separate signing service or can be used -to create a 0x transaction (see protocol spec for more details). - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`_from` | string | The current owner of the NFT | -`_to` | string | The new owner | -`_tokenId` | `BigNumber` | The NFT to transfer | - -**Returns:** *string* - -The ABI encoded transaction data as a string - -#### sendTransactionAsync - -▸ **sendTransactionAsync**(`_from`: string, `_to`: string, `_tokenId`: `BigNumber`, `txData?`: `Partial` | undefined): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc721_token.ts:659](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc721_token.ts#L659)* - -Sends an Ethereum transaction executing this method with the supplied parameters. This is a read/write -Ethereum operation and will cost gas. - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`_from` | string | The current owner of the NFT | -`_to` | string | The new owner | -`_tokenId` | `BigNumber` | The NFT to transfer | -`txData?` | `Partial` \| undefined | Additional data for transaction | - -**Returns:** *`Promise`* - -The hash of the transaction - -#### validateAndSendTransactionAsync - -▸ **validateAndSendTransactionAsync**(`_from`: string, `_to`: string, `_tokenId`: `BigNumber`, `txData?`: `Partial` | undefined): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc721_token.ts:767](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc721_token.ts#L767)* - -**Parameters:** - -Name | Type | ------- | ------ | -`_from` | string | -`_to` | string | -`_tokenId` | `BigNumber` | -`txData?` | `Partial` \| undefined | - -**Returns:** *`Promise`* - -___ - -### safeTransferFrom2 - -#### ▪ **safeTransferFrom2**: *object* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc721_token.ts:889](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc721_token.ts#L889)* - -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)"))`. - -#### awaitTransactionSuccessAsync - -▸ **awaitTransactionSuccessAsync**(`_from`: string, `_to`: string, `_tokenId`: `BigNumber`, `_data`: string, `txData?`: `Partial`, `pollingIntervalMs?`: undefined | number, `timeoutMs?`: undefined | number): *`PromiseWithTransactionHash`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc721_token.ts:944](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc721_token.ts#L944)* - -Sends an Ethereum transaction and waits until the transaction has been successfully mined without reverting. -If the transaction was mined, but reverted, an error is thrown. - -**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` | -`txData?` | `Partial` | Additional data for transaction | -`pollingIntervalMs?` | undefined \| number | Interval at which to poll for success | -`timeoutMs?` | undefined \| number | - | - -**Returns:** *`PromiseWithTransactionHash`* - -A promise that resolves when the transaction is successful - -#### callAsync - -▸ **callAsync**(`_from`: string, `_to`: string, `_tokenId`: `BigNumber`, `_data`: string, `callData`: `Partial`, `defaultBlock?`: [BlockParam](#blockparam)): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc721_token.ts:1045](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc721_token.ts#L1045)* - -Sends a read-only call to the contract method. Returns the result that would happen if one were to send an -Ethereum transaction to this method, given the current state of the blockchain. Calls do not cost gas -since they don't modify state. - -**Parameters:** - -Name | Type | Default | 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` | -`callData` | `Partial` | {} | - | -`defaultBlock?` | [BlockParam](#blockparam) | - | - | - -**Returns:** *`Promise`* - -#### estimateGasAsync - -▸ **estimateGasAsync**(`_from`: string, `_to`: string, `_tokenId`: `BigNumber`, `_data`: string, `txData?`: `Partial` | undefined): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc721_token.ts:986](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc721_token.ts#L986)* - -Estimates the gas cost of sending an Ethereum transaction calling this method with these arguments. - -**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` | -`txData?` | `Partial` \| undefined | Additional data for transaction | - -**Returns:** *`Promise`* - -The hash of the transaction - -#### getABIDecodedReturnData - -▸ **getABIDecodedReturnData**(`returnData`: string): *void* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc721_token.ts:1136](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc721_token.ts#L1136)* - -Decode the ABI-encoded return data from a transaction - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`returnData` | string | the data returned after transaction execution | - -**Returns:** *void* - -An array representing the output results in order. Keynames of nested structs are preserved. - -#### getABIDecodedTransactionData - -▸ **getABIDecodedTransactionData**(`callData`: string): *[string, string, `BigNumber`, string]* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc721_token.ts:1124](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc721_token.ts#L1124)* - -Decode the ABI-encoded transaction data into its input arguments - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`callData` | string | The ABI-encoded transaction data | - -**Returns:** *[string, string, `BigNumber`, string]* - -An array representing the input arguments in order. Keynames of nested structs are preserved. - -#### getABIEncodedTransactionData - -▸ **getABIEncodedTransactionData**(`_from`: string, `_to`: string, `_tokenId`: `BigNumber`, `_data`: string): *string* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc721_token.ts:1107](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc721_token.ts#L1107)* - -Returns the ABI encoded transaction data needed to send an Ethereum transaction calling this method. Before -sending the Ethereum tx, this encoded tx data can first be sent to a separate signing service or can be used -to create a 0x transaction (see protocol spec for more details). - -**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:** *string* - -The ABI encoded transaction data as a string - -#### sendTransactionAsync - -▸ **sendTransactionAsync**(`_from`: string, `_to`: string, `_tokenId`: `BigNumber`, `_data`: string, `txData?`: `Partial` | undefined): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc721_token.ts:900](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc721_token.ts#L900)* - -Sends an Ethereum transaction executing this method with the supplied parameters. This is a read/write -Ethereum operation and will cost gas. - -**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` | -`txData?` | `Partial` \| undefined | Additional data for transaction | - -**Returns:** *`Promise`* - -The hash of the transaction - -#### validateAndSendTransactionAsync - -▸ **validateAndSendTransactionAsync**(`_from`: string, `_to`: string, `_tokenId`: `BigNumber`, `_data`: string, `txData?`: `Partial` | undefined): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc721_token.ts:1019](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc721_token.ts#L1019)* - -**Parameters:** - -Name | Type | ------- | ------ | -`_from` | string | -`_to` | string | -`_tokenId` | `BigNumber` | -`_data` | string | -`txData?` | `Partial` \| undefined | - -**Returns:** *`Promise`* - -___ - -### setApprovalForAll - -#### ▪ **setApprovalForAll**: *object* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc721_token.ts:1148](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc721_token.ts#L1148)* - -Emits the ApprovalForAll event. The contract MUST allow -multiple operators per owner. - -#### awaitTransactionSuccessAsync - -▸ **awaitTransactionSuccessAsync**(`_operator`: string, `_approved`: boolean, `txData?`: `Partial`, `pollingIntervalMs?`: undefined | number, `timeoutMs?`: undefined | number): *`PromiseWithTransactionHash`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc721_token.ts:1193](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc721_token.ts#L1193)* - -Sends an Ethereum transaction and waits until the transaction has been successfully mined without reverting. -If the transaction was mined, but reverted, an error is thrown. - -**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 | -`txData?` | `Partial` | Additional data for transaction | -`pollingIntervalMs?` | undefined \| number | Interval at which to poll for success | -`timeoutMs?` | undefined \| number | - | - -**Returns:** *`PromiseWithTransactionHash`* - -A promise that resolves when the transaction is successful - -#### callAsync - -▸ **callAsync**(`_operator`: string, `_approved`: boolean, `callData`: `Partial`, `defaultBlock?`: [BlockParam](#blockparam)): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc721_token.ts:1270](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc721_token.ts#L1270)* - -Sends a read-only call to the contract method. Returns the result that would happen if one were to send an -Ethereum transaction to this method, given the current state of the blockchain. Calls do not cost gas -since they don't modify state. - -**Parameters:** - -Name | Type | Default | Description | ------- | ------ | ------ | ------ | -`_operator` | string | - | Address to add to the set of authorized operators | -`_approved` | boolean | - | True if the operator is approved, false to revoke approval | -`callData` | `Partial` | {} | - | -`defaultBlock?` | [BlockParam](#blockparam) | - | - | - -**Returns:** *`Promise`* - -#### estimateGasAsync - -▸ **estimateGasAsync**(`_operator`: string, `_approved`: boolean, `txData?`: `Partial` | undefined): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc721_token.ts:1227](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc721_token.ts#L1227)* - -Estimates the gas cost of sending an Ethereum transaction calling this method with these arguments. - -**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 | -`txData?` | `Partial` \| undefined | Additional data for transaction | - -**Returns:** *`Promise`* - -The hash of the transaction - -#### getABIDecodedReturnData - -▸ **getABIDecodedReturnData**(`returnData`: string): *void* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc721_token.ts:1351](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc721_token.ts#L1351)* - -Decode the ABI-encoded return data from a transaction - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`returnData` | string | the data returned after transaction execution | - -**Returns:** *void* - -An array representing the output results in order. Keynames of nested structs are preserved. - -#### getABIDecodedTransactionData - -▸ **getABIDecodedTransactionData**(`callData`: string): *[string, boolean]* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc721_token.ts:1339](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc721_token.ts#L1339)* - -Decode the ABI-encoded transaction data into its input arguments - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`callData` | string | The ABI-encoded transaction data | - -**Returns:** *[string, boolean]* - -An array representing the input arguments in order. Keynames of nested structs are preserved. - -#### getABIEncodedTransactionData - -▸ **getABIEncodedTransactionData**(`_operator`: string, `_approved`: boolean): *string* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc721_token.ts:1324](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc721_token.ts#L1324)* - -Returns the ABI encoded transaction data needed to send an Ethereum transaction calling this method. Before -sending the Ethereum tx, this encoded tx data can first be sent to a separate signing service or can be used -to create a 0x transaction (see protocol spec for more details). - -**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:** *string* - -The ABI encoded transaction data as a string - -#### sendTransactionAsync - -▸ **sendTransactionAsync**(`_operator`: string, `_approved`: boolean, `txData?`: `Partial` | undefined): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc721_token.ts:1157](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc721_token.ts#L1157)* - -Sends an Ethereum transaction executing this method with the supplied parameters. This is a read/write -Ethereum operation and will cost gas. - -**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 | -`txData?` | `Partial` \| undefined | Additional data for transaction | - -**Returns:** *`Promise`* - -The hash of the transaction - -#### validateAndSendTransactionAsync - -▸ **validateAndSendTransactionAsync**(`_operator`: string, `_approved`: boolean, `txData?`: `Partial` | undefined): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc721_token.ts:1254](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc721_token.ts#L1254)* - -**Parameters:** - -Name | Type | ------- | ------ | -`_operator` | string | -`_approved` | boolean | -`txData?` | `Partial` \| undefined | - -**Returns:** *`Promise`* - -___ - -### transferFrom - -#### ▪ **transferFrom**: *object* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc721_token.ts:1365](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc721_token.ts#L1365)* - -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. - -#### awaitTransactionSuccessAsync - -▸ **awaitTransactionSuccessAsync**(`_from`: string, `_to`: string, `_tokenId`: `BigNumber`, `txData?`: `Partial`, `pollingIntervalMs?`: undefined | number, `timeoutMs?`: undefined | number): *`PromiseWithTransactionHash`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc721_token.ts:1415](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc721_token.ts#L1415)* - -Sends an Ethereum transaction and waits until the transaction has been successfully mined without reverting. -If the transaction was mined, but reverted, an error is thrown. - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`_from` | string | The current owner of the NFT | -`_to` | string | The new owner | -`_tokenId` | `BigNumber` | The NFT to transfer | -`txData?` | `Partial` | Additional data for transaction | -`pollingIntervalMs?` | undefined \| number | Interval at which to poll for success | -`timeoutMs?` | undefined \| number | - | - -**Returns:** *`PromiseWithTransactionHash`* - -A promise that resolves when the transaction is successful - -#### callAsync - -▸ **callAsync**(`_from`: string, `_to`: string, `_tokenId`: `BigNumber`, `callData`: `Partial`, `defaultBlock?`: [BlockParam](#blockparam)): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc721_token.ts:1501](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc721_token.ts#L1501)* - -Sends a read-only call to the contract method. Returns the result that would happen if one were to send an -Ethereum transaction to this method, given the current state of the blockchain. Calls do not cost gas -since they don't modify state. - -**Parameters:** - -Name | Type | Default | Description | ------- | ------ | ------ | ------ | -`_from` | string | - | The current owner of the NFT | -`_to` | string | - | The new owner | -`_tokenId` | `BigNumber` | - | The NFT to transfer | -`callData` | `Partial` | {} | - | -`defaultBlock?` | [BlockParam](#blockparam) | - | - | - -**Returns:** *`Promise`* - -#### estimateGasAsync - -▸ **estimateGasAsync**(`_from`: string, `_to`: string, `_tokenId`: `BigNumber`, `txData?`: `Partial` | undefined): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc721_token.ts:1453](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc721_token.ts#L1453)* - -Estimates the gas cost of sending an Ethereum transaction calling this method with these arguments. - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`_from` | string | The current owner of the NFT | -`_to` | string | The new owner | -`_tokenId` | `BigNumber` | The NFT to transfer | -`txData?` | `Partial` \| undefined | Additional data for transaction | - -**Returns:** *`Promise`* - -The hash of the transaction - -#### getABIDecodedReturnData - -▸ **getABIDecodedReturnData**(`returnData`: string): *void* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc721_token.ts:1588](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc721_token.ts#L1588)* - -Decode the ABI-encoded return data from a transaction - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`returnData` | string | the data returned after transaction execution | - -**Returns:** *void* - -An array representing the output results in order. Keynames of nested structs are preserved. - -#### getABIDecodedTransactionData - -▸ **getABIDecodedTransactionData**(`callData`: string): *[string, string, `BigNumber`]* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc721_token.ts:1576](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc721_token.ts#L1576)* - -Decode the ABI-encoded transaction data into its input arguments - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`callData` | string | The ABI-encoded transaction data | - -**Returns:** *[string, string, `BigNumber`]* - -An array representing the input arguments in order. Keynames of nested structs are preserved. - -#### getABIEncodedTransactionData - -▸ **getABIEncodedTransactionData**(`_from`: string, `_to`: string, `_tokenId`: `BigNumber`): *string* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc721_token.ts:1559](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc721_token.ts#L1559)* - -Returns the ABI encoded transaction data needed to send an Ethereum transaction calling this method. Before -sending the Ethereum tx, this encoded tx data can first be sent to a separate signing service or can be used -to create a 0x transaction (see protocol spec for more details). - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`_from` | string | The current owner of the NFT | -`_to` | string | The new owner | -`_tokenId` | `BigNumber` | The NFT to transfer | - -**Returns:** *string* - -The ABI encoded transaction data as a string - -#### sendTransactionAsync - -▸ **sendTransactionAsync**(`_from`: string, `_to`: string, `_tokenId`: `BigNumber`, `txData?`: `Partial` | undefined): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc721_token.ts:1375](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc721_token.ts#L1375)* - -Sends an Ethereum transaction executing this method with the supplied parameters. This is a read/write -Ethereum operation and will cost gas. - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`_from` | string | The current owner of the NFT | -`_to` | string | The new owner | -`_tokenId` | `BigNumber` | The NFT to transfer | -`txData?` | `Partial` \| undefined | Additional data for transaction | - -**Returns:** *`Promise`* - -The hash of the transaction - -#### validateAndSendTransactionAsync - -▸ **validateAndSendTransactionAsync**(`_from`: string, `_to`: string, `_tokenId`: `BigNumber`, `txData?`: `Partial` | undefined): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc721_token.ts:1483](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc721_token.ts#L1483)* - -**Parameters:** - -Name | Type | ------- | ------ | -`_from` | string | -`_to` | string | -`_tokenId` | `BigNumber` | -`txData?` | `Partial` \| undefined | - -**Returns:** *`Promise`* - -
- -# 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 [abi-gen-wrappers/src/generated-wrappers/exchange.ts:13414](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L13414)* - -**Parameters:** - -Name | Type | Default | ------- | ------ | ------ | -`address` | string | - | -`supportedProvider` | [SupportedProvider](#supportedprovider) | - | -`txDefaults?` | `Partial` | - | -`logDecodeDependencies?` | undefined \| object | - | -`deployedBytecode` | string \| undefined | ExchangeContract.deployedBytecode | - -**Returns:** *[ExchangeContract](#class-exchangecontract)* - -## Properties - -#### abi - -• **abi**: *[ContractAbi](#contractabi)* - - - -Defined in base-contract/lib/src/index.d.ts:27 - -___ - -### address - -• **address**: *string* - - - -Defined in base-contract/lib/src/index.d.ts:28 - -___ - -Args - -• **constructorArgs**: *any[]* - - - -Defined in base-contract/lib/src/index.d.ts:30 - -___ - -### contractName - -• **contractName**: *string* - - - -Defined in base-contract/lib/src/index.d.ts:29 - -___ - -### `Static` deployedBytecode - -▪ **deployedBytecode**: *string* = "0x6080604052600436106102d15760003560e01c80638da5cb5b11610179578063beee2e14116100d6578063dd885e2d1161008a578063eea086ba11610064578063eea086ba14610715578063f2fde38b1461072a578063fc74896d1461074a576102d1565b8063dd885e2d146106cd578063dedfc1f1146106ef578063e14b58c414610702576102d1565b8063c26cfecd116100bb578063c26cfecd14610678578063c585bb931461068d578063d9bfa73e146106ad576102d1565b8063beee2e1414610645578063c0fa16cc14610658576102d1565b80639d3fa4b91161012d578063a6c3bf3311610112578063a6c3bf33146105ff578063b04fbddd14610612578063b718e29214610632576102d1565b80639d3fa4b9146105b2578063a12dcc6f146105df576102d1565b80639331c7421161015e5780639331c7421461056c5780639694a4021461058c5780639b44d5561461059f576102d1565b80638da5cb5b146105375780638ea8dfe41461054c576102d1565b80636a1a80fd116102325780638171c407116101e657806388ec79fb116101c057806388ec79fb146104e45780638bc8efb3146105045780638d45cd2314610517576102d1565b80638171c4071461048f57806382c174d0146104af578063850a1501146104cf576102d1565b806377fcce681161021757806377fcce681461044957806378d29ac11461045c5780637b8e35141461046f576102d1565b80636a1a80fd146104165780636fcf3e9e14610436576102d1565b80632da629871161028957806346c02d7a1161026e57806346c02d7a146103c35780634f9559b1146103d657806360704108146103e9576102d1565b80632da629871461038e578063369da099146103a3576102d1565b80632280c910116102ba5780632280c9101461032e578063288cdc911461034e5780632ac126221461036e576102d1565b80630228e168146102d65780631ce4c78b1461030c575b600080fd5b3480156102e257600080fd5b506102f66102f1366004614e64565b61076a565b60405161030391906154c4565b60405180910390f35b34801561031857600080fd5b5061032161077f565b60405161030391906154cf565b61034161033c366004615108565b610785565b60405161030391906156a0565b34801561035a57600080fd5b50610321610369366004614e64565b6107c7565b34801561037a57600080fd5b506102f6610389366004614e64565b6107d9565b6103a161039c366004614f82565b6107ee565b005b6103b66103b1366004614d60565b610812565b60405161030391906159c2565b6103a16103d1366004614e64565b610939565b6103a16103e4366004614e64565b6109ac565b3480156103f557600080fd5b50610409610404366004614eed565b610ab9565b604051610303919061535b565b610429610424366004614c40565b610b07565b604051610303919061594b565b610429610444366004614c40565b610b3f565b6103a1610457366004614b2a565b610b5d565b6103b661046a366004614d60565b610c20565b34801561047b57600080fd5b506102f661048a366004614af6565b610d70565b34801561049b57600080fd5b506102f66104aa366004614ea0565b610d90565b3480156104bb57600080fd5b506102f66104ca366004614e7c565b610def565b3480156104db57600080fd5b50610409610e0f565b6104f76104f236600461500c565b610e2b565b60405161030391906159d0565b6103b6610512366004614d60565b610e49565b34801561052357600080fd5b506102f6610532366004615108565b610e7d565b34801561054357600080fd5b50610409610ea2565b61055f61055a366004614cdc565b610ebe565b60405161030391906154b1565b34801561057857600080fd5b506103a1610587366004614e64565b610fe9565b61055f61059a366004614cdc565b611031565b6103b66105ad3660046150a8565b6110f8565b3480156105be57600080fd5b506105d26105cd366004614f82565b61111d565b6040516103039190615a12565b3480156105eb57600080fd5b506102f66105fa366004614fb5565b611201565b6103b661060d366004614d60565b611226565b34801561061e57600080fd5b506103a161062d366004614b65565b61125a565b6104f761064036600461500c565b611306565b61055f610653366004614cdc565b611324565b34801561066457600080fd5b506103a1610673366004614adb565b6113d9565b34801561068457600080fd5b5061032161147c565b34801561069957600080fd5b506103a16106a8366004614adb565b611482565b3480156106b957600080fd5b506103216106c8366004614af6565b611616565b3480156106d957600080fd5b506106e2611633565b604051610303919061562b565b6103a16106fd366004614c0d565b611657565b6103b66107103660046150a8565b611699565b34801561072157600080fd5b506104096116b4565b34801561073657600080fd5b506103a1610745366004614adb565b6116d0565b61075d610758366004614db3565b611748565b6040516103039190615433565b60056020526000908152604090205460ff1681565b60035481565b606061078f61187b565b156107a55761079e838361189d565b90506107c1565b6107ad6119b7565b6107b7838361189d565b90506107c16119f9565b92915050565b60096020526000908152604090205481565b600a6020526000908152604090205460ff1681565b6107f6611a2b565b6107ff81611a9a565b610807611ad7565b61080f611aeb565b50565b61081a614561565b61082261187b565b156108b857835160005b8181146108b157600061084c846020015187611b1590919063ffffffff16565b9050610856614561565b61088788848151811061086557fe5b60200260200101518388868151811061087a57fe5b6020026020010151611b34565b90506108938582611c75565b9450868560200151106108a75750506108b1565b505060010161082c565b5050610932565b6108c06119b7565b835160005b8181146109285760006108e5846020015187611b1590919063ffffffff16565b90506108ef614561565b6108fe88848151811061086557fe5b905061090a8582611c75565b94508685602001511061091e575050610928565b50506001016108c5565b50506109326119f9565b9392505050565b610941611a2b565b600061094b611d10565b600083815260076020908152604080832073ffffffffffffffffffffffffffffffffffffffff90941683529290522080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0016600117905550610807611ad7565b6109b4611a2b565b60006109be611d10565b9050600073ffffffffffffffffffffffffffffffffffffffff821633146109e557336109e8565b60005b73ffffffffffffffffffffffffffffffffffffffff8084166000908152600b60209081526040808320938516835292905220549091506001840190808211610a3d57610a3d610a38858584611d42565b611de7565b73ffffffffffffffffffffffffffffffffffffffff8085166000818152600b602090815260408083209488168084529490915290819020859055517f82af639571738f4ebd4268fb0363d8957ebe1bbb9e78dba5ebd69eed39b154f090610aa59086906154cf565b60405180910390a350505050610807611ad7565b7fffffffff00000000000000000000000000000000000000000000000000000000811660009081526002602052604090205473ffffffffffffffffffffffffffffffffffffffff165b919050565b610b0f614590565b610b17611a2b565b610b25858585856001611def565b9050610b2f611ad7565b610b37611aeb565b949350505050565b610b47614590565b610b4f611a2b565b610b25858585856000611def565b610b65611a2b565b6000610b6f611d10565b73ffffffffffffffffffffffffffffffffffffffff8181166000818152600860209081526040808320948916808452949091529081902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00168715151790555192935090917fa8656e308026eeabce8f0bc18048433252318ab80ac79da0b3d3d8697dfba89190610c039086906154c4565b60405180910390a350610c14611ad7565b610c1c611aeb565b5050565b610c28614561565b610c3061187b565b15610cee57835160005b8181146108b1578251600090610c5790879063ffffffff611b1516565b90506000610c94888481518110610c6a57fe5b602002602001015160a00151898581518110610c8257fe5b6020026020010151608001518461215c565b9050610c9e614561565b610cc2898581518110610cad57fe5b60200260200101518389878151811061087a57fe5b9050610cce8682611c75565b955087866000015110610ce3575050506108b1565b505050600101610c3a565b610cf66119b7565b835160005b818114610928578251600090610d1890879063ffffffff611b1516565b90506000610d2b888481518110610c6a57fe5b9050610d35614561565b610d44898581518110610cad57fe5b9050610d508682611c75565b955087866000015110610d6557505050610928565b505050600101610cfb565b600860209081526000928352604080842090915290825290205460ff1681565b600080610d9e85858561217e565b90506005816008811115610dae57fe5b1480610dc557506007816008811115610dc357fe5b145b15610dda57610dda610a3860058787876121fd565b610de6818686866122a5565b95945050505050565b600760209081526000928352604080842090915290825290205460ff1681565b60045473ffffffffffffffffffffffffffffffffffffffff1681565b610e336145b8565b610e3b611a2b565b610b25858585856000612515565b610e51614561565b610e5c848484610c20565b9050828160000151101561093257610932610a386000858460000151612602565b600080610e956001548561262190919063ffffffff16565b9050610b37848285612635565b60005473ffffffffffffffffffffffffffffffffffffffff1681565b6060610ec861187b565b15610f6b578351604080518281526020808402820101909152818015610f0857816020015b610ef5614561565b815260200190600190039081610eed5790505b50915060005b8181146108b157610f4c868281518110610f2457fe5b6020026020010151868381518110610f3857fe5b602002602001015186848151811061087a57fe5b838281518110610f5857fe5b6020908102919091010152600101610f0e565b610f736119b7565b8351604080518281526020808402820101909152818015610fae57816020015b610f9b614561565b815260200190600190039081610f935790505b50915060005b81811461092857610fca868281518110610f2457fe5b838281518110610fd657fe5b6020908102919091010152600101610fb4565b610ff16126bb565b7f3a3e76d7a75e198aef1f53137e4f2a8a2ec74e2e9526db8404d08ccc9f1e621d60035482604051611024929190615543565b60405180910390a1600355565b606061103b611a2b565b835160408051828152602080840282010190915281801561107657816020015b611063614561565b81526020019060019003908161105b5790505b50915060005b8181146110e6576110c786828151811061109257fe5b60200260200101518683815181106110a657fe5b60200260200101518684815181106110ba57fe5b6020026020010151612702565b8382815181106110d357fe5b602090810291909101015260010161107c565b50506110f0611ad7565b610932611aeb565b611100614561565b611108611a2b565b611113848484612702565b90506110f0611ad7565b6111256145ec565b61112e826127a4565b60408301526020820152608082015161114e5760015b60ff168152610b02565b60a082015161115e576002611144565b8160a00151816040015110611174576005611144565b8161010001514210611187576004611144565b6020808201516000908152600a909152604090205460ff16156111ab576006611144565b610120820151825173ffffffffffffffffffffffffffffffffffffffff9081166000908152600b6020908152604080832060608801519094168352929052205411156111f8576006611144565b60038152919050565b600080611219600154856127d590919063ffffffff16565b9050610b378482856127e4565b61122e614561565b611239848484610812565b9050828160200151101561093257610932610a386001858460200151612602565b835160005b8181146112ca576112c28160001b87838151811061127957fe5b602002602001015187848151811061128d57fe5b60200260200101518785815181106112a157fe5b60200260200101518786815181106112b557fe5b6020026020010151612839565b60010161125f565b506040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112fd90615914565b60405180910390fd5b61130e6145b8565b611316611a2b565b610b25858585856001612515565b606061132e611a2b565b835160408051828152602080840282010190915281801561136957816020015b611356614561565b81526020019060019003908161134e5790505b50915060005b8181146110e6576113ba86828151811061138557fe5b602002602001015186838151811061139957fe5b60200260200101518684815181106113ad57fe5b60200260200101516129f3565b8382815181106113c657fe5b602090810291909101015260010161136f565b6113e16126bb565b6004546040517fe1a5430ebec577336427f40f15822f1f36c5e3509ff209d6db9e6c9e6941cb0b9161142d9173ffffffffffffffffffffffffffffffffffffffff90911690849061537c565b60405180910390a1600480547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff92909216919091179055565b60015481565b61148a6126bb565b60008173ffffffffffffffffffffffffffffffffffffffff1663ae25532e6040518163ffffffff1660e01b815260040160206040518083038186803b1580156114d257600080fd5b505afa1580156114e6573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525061150a9190810190614f09565b7fffffffff00000000000000000000000000000000000000000000000000000000811660009081526002602052604090205490915073ffffffffffffffffffffffffffffffffffffffff16801561156857611568610a388383612a26565b7fffffffff0000000000000000000000000000000000000000000000000000000082166000908152600260205260409081902080547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff8616179055517fd2c6b762299c609bdb96520b58a49bfb80186934d4f71a86a367571a15c03194906116099084908690615658565b60405180910390a1505050565b600b60209081526000928352604080842090915290825290205481565b7f20c13b0b0000000000000000000000000000000000000000000000000000000081565b61165f611a2b565b805160005b81811461168f5761168783828151811061167a57fe5b6020026020010151611a9a565b600101611664565b5050610807611ad7565b6116a1614561565b6116a9611a2b565b6111138484846129f3565b60065473ffffffffffffffffffffffffffffffffffffffff1681565b6116d86126bb565b73ffffffffffffffffffffffffffffffffffffffff8116611703576116fe610a38612ac8565b61080f565b6000805473ffffffffffffffffffffffffffffffffffffffff83167fffffffffffffffffffffffff000000000000000000000000000000000000000090911617905550565b606061175261187b565b156117f457825160408051828152602080840282010190915260609082801561178f57816020015b606081526020019060019003908161177a5790505b50905060005b8281146117eb576117cc8682815181106117ab57fe5b60200260200101518683815181106117bf57fe5b602002602001015161189d565b8282815181106117d857fe5b6020908102919091010152600101611795565b509150506107c1565b6117fc6119b7565b825160408051828152602080840282010190915260609082801561183457816020015b606081526020019060019003908161181f5790505b50905060005b82811461186f576118508682815181106117ab57fe5b82828151811061185c57fe5b602090810291909101015260010161183a565b509150506107c16119f9565b6000547501000000000000000000000000000000000000000000900460ff1690565b606060006118b66001548561262190919063ffffffff16565b90506118c3848483612aff565b60608401516118d28180612bd3565b60008281526005602052604080822080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00166001179055608087015190516060913091611920919061530e565b600060405180830381855af49150503d806000811461195b576040519150601f19603f3d011682016040523d82523d6000602084013e611960565b606091505b50915091508161197757611977610a388583612c36565b611982836000612bd3565b60405184907fa4a7329f1dd821363067e07d359e347b4af9b1efe4b6cccf13240228af3c800d90600090a29695505050505050565b600080547fffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffffff167501000000000000000000000000000000000000000000179055565b600080547fffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffffff169055611a29612c53565b565b60005474010000000000000000000000000000000000000000900460ff1615611a5957611a59610a38612c88565b600080547fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff1674010000000000000000000000000000000000000000179055565b611aa26145ec565b611aab8261111d565b9050611ab78282612cbf565b805160ff16600314611ac9575061080f565b610c1c828260200151612d6e565b611adf61187b565b611a2957611a29612c53565b600080547fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff169055565b600082821115611b2e57611b2e610a3860028585612e17565b50900390565b611b3c614561565b6040516060907f9b44d5560000000000000000000000000000000000000000000000000000000090611b7690879087908790602401615a58565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff83818316178352505050509050600060603073ffffffffffffffffffffffffffffffffffffffff1683604051611bfe919061530e565b600060405180830381855af49150503d8060008114611c39576040519150601f19603f3d011682016040523d82523d6000602084013e611c3e565b606091505b50915091508115611c6b57805160a014611c5457fe5b80806020019051611c689190810190614f25565b93505b5050509392505050565b611c7d614561565b81518351611c909163ffffffff612e3616565b815260208083015190840151611cab9163ffffffff612e3616565b602082015260408083015190840151611cc99163ffffffff612e3616565b604082015260608083015190840151611ce79163ffffffff612e3616565b606082015260808083015190840151611d059163ffffffff612e3616565b608082015292915050565b60065460009073ffffffffffffffffffffffffffffffffffffffff16818115611d395781611d3b565b335b9250505090565b6060634ad3127560e01b848484604051602401611d61939291906153a3565b604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe08184030181529190526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fffffffff000000000000000000000000000000000000000000000000000000009093169290921790915290509392505050565b805160208201fd5b611df7614590565b8551611e0a57611e0a610a386000612e52565b8451611e1d57611e1d610a386001612e52565b8351865114611e3357611e33610a386002612e52565b8251855114611e4957611e49610a386003612e52565b8551604051908082528060200260200182016040528015611e8457816020015b611e71614561565b815260200190600190039081611e695790505b5081528451604080518281526020808402820101909152908015611ec257816020015b611eaf614561565b815260200190600190039081611ea75790505b506020820152600080611ed361460c565b88600081518110611ee057fe5b60200260200101519050611ef261460c565b88600081518110611eff57fe5b602002602001015190506000611f14836127a4565b9150506000611f22836127a4565b915050611f2d614561565b611f35614561565b611f3d6145b8565b611f7087878f8c81518110611f4e57fe5b60200260200101518f8c81518110611f6257fe5b60200260200101518f612515565b805160200151909150611f8a90869063ffffffff612e3616565b9450611fa781602001516020015185612e3690919063ffffffff16565b9350611fb7838260000151611c75565b9250611fc7828260200151611c75565b9150611fe481604001518b60400151612e3690919063ffffffff16565b60408b0152606080820151908b01516120029163ffffffff612e3616565b60608b015260a087015185106120ad578951805160018b019a859291811061202657fe5b60200260200101819052506040518060a0016040528060008152602001600081526020016000815260200160008152602001600081525092508e5189141561208a57818a60200151898151811061207957fe5b60200260200101819052505061214b565b8e898151811061209657fe5b602002602001015196506120a9876127a4565b9550505b8560a00151841061214557818a6020015189806001019a50815181106120cf57fe5b60200260200101819052506040518060a0016040528060008152602001600081526020016000815260200160008152602001600081525091508d5188141561212257828a600001518a8151811061207957fe5b8d888151811061212e57fe5b60200260200101519550612141866127a4565b9450505b50611f35565b505050505050505095945050505050565b6000610b3783612172868563ffffffff612ef116565b9063ffffffff612f2216565b600061218b848484612f4c565b905073ffffffffffffffffffffffffffffffffffffffff83166121b8576121b8610a3860068686866121fd565b600881818111156121c557fe5b60ff16106121dd576121dd610a3860038686866121fd565b60008160088111156121eb57fe5b141561093257610932610a3860048686865b6060637e5a231860e01b8585858560405160240161221e94939291906158b9565b604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe08184030181529190526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fffffffff00000000000000000000000000000000000000000000000000000000909316929092179091529050949350505050565b600060018560088111156122b557fe5b14156122dc5781516001146122d4576122d4610a3860028686866121fd565b506000610b37565b60028560088111156122ea57fe5b14156123e357815160421461230957612309610a3860028686866121fd565b60008260008151811061231857fe5b016020015160f81c9050600061233584600163ffffffff612f8b16565b9050600061234a85602163ffffffff612f8b16565b9050600060018885858560405160008152602001604052604051612371949392919061560d565b6020604051602081039080840390855afa158015612393573d6000803e3d6000fd5b50506040517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0015173ffffffffffffffffffffffffffffffffffffffff8981169116149550610b37945050505050565b60038560088111156123f157fe5b141561249e57815160421461241057612410610a3860028686866121fd565b60008260008151811061241f57fe5b016020015160f81c9050600061243c84600163ffffffff612f8b16565b9050600061245185602163ffffffff612f8b16565b90506000600188604051602001612468919061532a565b6040516020818303038152906040528051906020012085858560405160008152602001604052604051612371949392919061560d565b60048560088111156124ac57fe5b14156124c4576124bd848484612fb5565b9050610b37565b60068560088111156124d257fe5b146124d957fe5b50600083815260076020908152604080832073ffffffffffffffffffffffffffffffffffffffff8616845290915290205460ff16949350505050565b61251d6145b8565b61016080870151610140808801919091528701519086015261253d6145ec565b6125468761111d565b90506125506145ec565b6125598761111d565b90506000612565611d10565b90506125738984838a6131ab565b61257f888383896131ab565b6125938989856020015185602001516132e1565b6125ac8989856040015185604001516003543a8b61332c565b93506125c78982856020015186604001518860000151613481565b6125e08882846020015185604001518860200151613481565b6125f6836020015183602001518b8b858961355f565b50505095945050505050565b60606318e4b14160e01b848484604051602401611d619392919061589e565b60006109328261263085613706565b61378e565b60608301516000908161264985838661217e565b9050600581600881111561265957fe5b141561267b5761267461266c87876137c8565b868487613800565b92506126b2565b600781600881111561268957fe5b14156126a35761267461269c87876137c8565b83866138b4565b6126af818684876122a5565b92505b50509392505050565b60005473ffffffffffffffffffffffffffffffffffffffff163314611a2957600054611a2990610a3890339073ffffffffffffffffffffffffffffffffffffffff166138c3565b61270a614561565b6127126145ec565b61271b8561111d565b90506000612727611d10565b9050612735868383876131ab565b600061275283604001518860a00151611b1590919063ffffffff16565b9050600061276087836138e0565b905061277088826003543a6138f6565b945060008460200151905061278c89858388604001518a613481565b612798818a868961396d565b50505050509392505050565b6000806127bc600154846127d590919063ffffffff16565b6000818152600960205260409020549092509050915091565b60006109328261263085613a04565b8251600090816127f585838661217e565b9050600581600881111561280557fe5b14156128185761267461266c8787613adb565b600781600881111561282657fe5b14156126a35761267461269c8787613adb565b80156129ec57600384511161285757612857610a3860008787613b13565b6000612869858263ffffffff613b3216565b7fffffffff00000000000000000000000000000000000000000000000000000000811660009081526002602052604090205490915073ffffffffffffffffffffffffffffffffffffffff16806128c8576128c8610a3860018989613b13565b6040516060907fa85e59e400000000000000000000000000000000000000000000000000000000906129049089908990899089906024016156b3565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff83818316178352505050509050600060608373ffffffffffffffffffffffffffffffffffffffff168360405161298c919061530e565b6000604051808303816000865af19150503d80600081146129c9576040519150601f19603f3d011682016040523d82523d6000602084013e6129ce565b606091505b5091509150816129e6576129e6610a388b8b84613b7e565b50505050505b5050505050565b6129fb614561565b612a06848484612702565b90508281602001511461093257610932610a386002858460200151612602565b60606311c7b72060e01b8383604051602401612a43929190615658565b604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe08184030181529190526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fffffffff0000000000000000000000000000000000000000000000000000000090931692909217909152905092915050565b60408051808201909152600481527fe69edc3e00000000000000000000000000000000000000000000000000000000602082015290565b82602001514210612b1857612b18610a38600183613b9d565b60408301513a8114612b3257612b32610a38833a84613bba565b60065473ffffffffffffffffffffffffffffffffffffffff168015612b5e57612b5e610a388483613bd9565b60008381526005602052604090205460ff1615612b8357612b83610a38600085613b9d565b606085015173ffffffffffffffffffffffffffffffffffffffff81163314801590612bb65750612bb4868587612635565b155b15612bcb57612bcb610a3860018684896121fd565b505050505050565b73ffffffffffffffffffffffffffffffffffffffff82163314610c1c576006805473ffffffffffffffffffffffffffffffffffffffff83167fffffffffffffffffffffffff00000000000000000000000000000000000000009091161790555050565b60606320d11f6160e01b8383604051602401612a43929190615551565b3031801561080f57604051339082156108fc029083906000818181858888f19350505050158015610c1c573d6000803e3d6000fd5b60408051808201909152600481527f0c3b823f00000000000000000000000000000000000000000000000000000000602082015290565b606082015173ffffffffffffffffffffffffffffffffffffffff1615612d1357606082015173ffffffffffffffffffffffffffffffffffffffff163314612d1357612d13610a386002836020015133613bf6565b6000612d1d611d10565b90508073ffffffffffffffffffffffffffffffffffffffff16836000015173ffffffffffffffffffffffffffffffffffffffff1614612d6957612d69610a386000846020015184613bf6565b505050565b6000818152600a60205260409081902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001660011790558281015183516101408501516101608601519351859473ffffffffffffffffffffffffffffffffffffffff9485169493909316927f02c310a9a43963ff31a754a4099cc435ed498049687539d72d7818d9b093415c92612e0b92909190339061571b565b60405180910390a45050565b606063e946c1bb60e01b848484604051602401611d6193929190615846565b60008282018381101561093257610932610a3860008686612e17565b606063d4092f4f60e01b82604051602401612e6d9190615833565b604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe08184030181529190526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fffffffff00000000000000000000000000000000000000000000000000000000909316929092179091529050919050565b600082612f00575060006107c1565b82820282848281612f0d57fe5b041461093257610932610a3860018686612e17565b600081612f3857612f38610a3860038585612e17565b6000828481612f4357fe5b04949350505050565b6000815160001415612f6857612f68610a3860028686866121fd565b81600183510381518110612f7857fe5b016020015160f81c6008811115610b3757fe5b60008160200183511015612fac57612fac610a386005855185602001613c15565b50016020015190565b8051600090612fec837fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff830163ffffffff613c3416565b6040516060907f1626ba7e00000000000000000000000000000000000000000000000000000000906130249088908790602401615551565b604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe08184030181529190526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fffffffff000000000000000000000000000000000000000000000000000000009093169290921790915290506130b3848363ffffffff613c3416565b600060608673ffffffffffffffffffffffffffffffffffffffff16836040516130dc919061530e565b600060405180830381855afa9150503d8060008114613117576040519150601f19603f3d011682016040523d82523d6000602084013e61311c565b606091505b509150915081801561312f575080516020145b15613191577fb06713810000000000000000000000000000000000000000000000000000000061316682600063ffffffff613b3216565b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614945050505050610932565b6131a0610a3889898985613c38565b505050509392505050565b825160ff166003146131da576131da610a388460200151856000015160ff1660068111156131d557fe5b613c59565b606084015173ffffffffffffffffffffffffffffffffffffffff161561322e57606084015173ffffffffffffffffffffffffffffffffffffffff16331461322e5761322e610a386002856020015133613bf6565b602084015173ffffffffffffffffffffffffffffffffffffffff1615613298578173ffffffffffffffffffffffffffffffffffffffff16846020015173ffffffffffffffffffffffffffffffffffffffff161461329857613298610a386001856020015185613bf6565b8351604084015115806132b557506132b584602001518284613c76565b156129ec576132c9858560200151846127e4565b6129ec576129ec610a386000866020015184866121fd565b60a080840151908501516132fa9163ffffffff612ef116565b608080850151908601516133139163ffffffff612ef116565b101561332657613326610a388383613cc9565b50505050565b6133346145b8565b60a088015160009061334c908863ffffffff611b1516565b905060006133638a608001518b60a0015184613ce6565b9050600061337e888b60a00151611b1590919063ffffffff16565b905060006133958b608001518c60a0015184613ce6565b905085156133b2576133ab8c8c85878587613d1a565b94506133c3565b6133c08c8c85878587613dec565b94505b84515160808d015160c08e01516133db929190613ce6565b85516040015284516020015160a08d015160e08e01516133fc929190613ce6565b85516060015260208501515160808c015160c08d015161341d929190613ce6565b856020015160400181815250506134458560200151602001518c60a001518d60e00151613ce6565b6020860151606001526000613460888a63ffffffff612ef116565b86516080908101829052602088015101525050505050979650505050505050565b602081015161349790839063ffffffff612e3616565b600960008581526020019081526020016000208190555082856040015173ffffffffffffffffffffffffffffffffffffffff16866000015173ffffffffffffffffffffffffffffffffffffffff167f6869791f0a34781b29882982cc39e882768cf2c96995c2a110c577c53bc932d58861014001518961016001518a61018001518b6101a001518b338a600001518b602001518c604001518d606001518e608001516040516135509b9a99989796959493929190615767565b60405180910390a45050505050565b8351835160408087015190860151610140870151855160200151613588918b9186908890612839565b6135a28a8961014001518686896020015160200151612839565b6135bc898861018001518584896020015160400151612839565b6135d68a8961018001518685896000015160400151612839565b6135ec8a89610140015186898960400151612839565b6136028988610140015185898960600151612839565b600061361a8b8b88600001516080015188888c613e85565b905080613637578551600060809182018190526020880151909101525b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614801561368757506101a080890151908a01516136879163ffffffff613ee216565b156136c5576136c08b8a6101a0015189866136bb8b60200151606001518c6000015160600151612e3690919063ffffffff16565b612839565b6136f9565b6136df8a896101a0015189858a6020015160600151612839565b6136f98b8a6101a0015189868a6000015160600151612839565b5050505050505050505050565b608081810151825160208085015160408087015160609788015186519685019690962082517fec69816980a3a3ca4554410e60253953e9ff375ba4536a98adfa15cc71541508815294850195909552908301919091529481019490945273ffffffffffffffffffffffffffffffffffffffff9091169183019190915260a082015260c0902090565b6040517f19010000000000000000000000000000000000000000000000000000000000008152600281019290925260228201526042902090565b6040516060907fde047db40000000000000000000000000000000000000000000000000000000090612a439085908590602401615a83565b8051600090601581101561381e5761381e610a3860028787876121fd565b6000613852847fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffeb840163ffffffff613f0716565b73ffffffffffffffffffffffffffffffffffffffff80871660009081526008602090815260408083209385168352929052205490915060ff1661389c5761389c610a388683613f47565b6138a98188866015613f64565b979650505050505050565b6000610b378385846001613f64565b6060631de45ad160e01b8383604051602401612a4392919061537c565b60008183106138ef5781610932565b5090919050565b6138fe614561565b6020810184905260a0850151608086015161391a918691613ce6565b815260a085015160c0860151613931918691613ce6565b604082015260a085015160e086015161394b918691613ce6565b6060820152613960828463ffffffff612ef116565b6080820152949350505050565b613987848461016001518486600001518560200151612839565b6139a1848461014001518560000151858560000151612839565b6139bb84846101a001518486604001518560600151612839565b6139d984846101800151856000015186604001518560400151612839565b60006139ef85836080015186600001518661413b565b9050806129ec57600060808301525050505050565b6101408101516101608201516101808301516101a08401516000937ff80322eb8376aafb64eadf8f0d7623f22130fd9491a221e902b713cb984a753493909290916020871015613a5057fe5b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe087018051610140890180516101608b0180516101808d0180516101a08f0180519d89528c5160209d8e012087528b519b8d019b909b2084528951998c01999099208152875197909a019690962088526101e085209390945290529190529252919091529050919050565b6040516060907f3efe50c80000000000000000000000000000000000000000000000000000000090612a439085908590602401615a36565b606063488219a660e01b848484604051602401611d619392919061580b565b60008160040183511015613b5357613b53610a386003855185600401613c15565b5001602001517fffffffff000000000000000000000000000000000000000000000000000000001690565b6060634678472b60e01b848484604051602401611d619392919061556a565b606063f598518460e01b8383604051602401612a439291906158fd565b606063a26dac0960e01b848484604051602401611d61939291906155f7565b606063dec4aedf60e01b8383604051602401612a439291906154d8565b606063e53c76c860e01b848484604051602401611d6193929190615867565b6060632800659560e01b848484604051602401611d61939291906158ab565b9052565b6060631b8388f760e01b8585858560405160240161221e94939291906154fc565b606063fdb6ca8d60e01b8383604051602401612a43929190615595565b600080613c84858585612f4c565b90506004816008811115613c9457fe5b1480613cab57506005816008811115613ca957fe5b145b80610de657506007816008811115613cbf57fe5b1495945050505050565b606063b6555d6f60e01b8383604051602401612a43929190615543565b6000613cf3848484614181565b15613d0657613d06610a388585856141e7565b610b3783612172868563ffffffff612ef116565b613d226145b8565b81851184841184861115613d4257613d3b898686614206565b9250613d91565b86841115613d825782518790528251602001869052608088015160a0890151613d6c919089613ce6565b6020808501805192909252905101879052613d91565b613d8e87878787614243565b92505b8115613db7576020808401510151835151613db19163ffffffff611b1516565b60408401525b8015613ddf5782516020908101519084015151613dd99163ffffffff611b1516565b60608401525b50505b9695505050505050565b613df46145b8565b82841115613e0e57613e07878484614206565b9050613e5c565b82841015613e4d5780518590528051602090810185905281015184905260a08601516080870151613e4091908661426e565b6020808301510152613e5c565b613e5985858585614243565b90505b6020808201510151815151613e769163ffffffff611b1516565b60408201529695505050505050565b60045460009073ffffffffffffffffffffffffffffffffffffffff168015613ed85730316000613eb98a84848b8b8a6142c2565b9050613ecb89848385038b8a8a6142c2565b5060019350505050613de2565b6000915050613de2565b6000815183511480156109325750508051602091820120825192909101919091201490565b60008160140183511015613f2857613f28610a386004855185601401613c15565b50016014015173ffffffffffffffffffffffffffffffffffffffff1690565b606063a15c0d0660e01b8383604051602401612a4392919061537c565b8151600090613f7b8484830363ffffffff613c3416565b6040516060907f20c13b0b0000000000000000000000000000000000000000000000000000000090613fb390889088906024016156f6565b604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe08184030181529190526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fffffffff00000000000000000000000000000000000000000000000000000000909316929092179091529050614042858363ffffffff613c3416565b600060608873ffffffffffffffffffffffffffffffffffffffff168360405161406b919061530e565b600060405180830381855afa9150503d80600081146140a6576040519150601f19603f3d011682016040523d82523d6000602084013e6140ab565b606091505b50915091508180156140be575080516020145b15614120577f20c13b0b000000000000000000000000000000000000000000000000000000006140f582600063ffffffff613b3216565b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614945050505050610b37565b61412f610a388a8a8a856143fa565b50505050949350505050565b60045460009073ffffffffffffffffffffffffffffffffffffffff1680156141775761416c868230318888886142c2565b506001915050610b37565b6000915050610b37565b60008261419357614193610a3861441b565b81158061419e575083155b156141ab57506000610932565b600083806141b557fe5b85840990506141ca858463ffffffff612ef116565b6141dc826103e863ffffffff612ef116565b101595945050505050565b606063339f3de260e01b848484604051602401611d61939291906155f7565b61420e6145b8565b60208082018051859052518101839052815101839052608084015160a0850151614239919085613ce6565b8151529392505050565b61424b6145b8565b805194909452835160209081019390935282840180519290925290519091015290565b600061427b848484614452565b1561428e5761428e610a388585856141e7565b610b37836121726142a682600163ffffffff611b1516565b6142b6888763ffffffff612ef116565b9063ffffffff612e3616565b60008385106142ce5750825b6040516060907fa3b4a3270000000000000000000000000000000000000000000000000000000090614308908690869089906024016153a3565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff83818316178352505050509050600060608873ffffffffffffffffffffffffffffffffffffffff168484604051614391919061530e565b60006040518083038185875af1925050503d80600081146143ce576040519150601f19603f3d011682016040523d82523d6000602084013e6143d3565b606091505b5091509150816143ed576143ed610a388b898989866144b6565b5050509695505050505050565b6060635bd0428d60e01b8585858560405160240161221e94939291906153d4565b60408051808201909152600481527fa791837c00000000000000000000000000000000000000000000000000000000602082015290565b60008261446457614464610a3861441b565b81158061446f575083155b1561447c57506000610932565b6000838061448657fe5b85840990508361449c818363ffffffff611b1516565b816144a357fe5b0690506141ca858463ffffffff612ef116565b60606387cb1e7560e01b86868686866040516024016144d99594939291906155b2565b604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe08184030181529190526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fffffffff0000000000000000000000000000000000000000000000000000000090931692909217909152905095945050505050565b6040518060a0016040528060008152602001600081526020016000815260200160008152602001600081525090565b6040518060800160405280606081526020016060815260200160008152602001600081525090565b60405180608001604052806145cb614561565b81526020016145d8614561565b815260200160008152602001600081525090565b604080516060810182526000808252602082018190529181019190915290565b604051806101c00160405280600073ffffffffffffffffffffffffffffffffffffffff168152602001600073ffffffffffffffffffffffffffffffffffffffff168152602001600073ffffffffffffffffffffffffffffffffffffffff168152602001600073ffffffffffffffffffffffffffffffffffffffff168152602001600081526020016000815260200160008152602001600081526020016000815260200160008152602001606081526020016060815260200160608152602001606081525090565b803573ffffffffffffffffffffffffffffffffffffffff811681146107c157600080fd5b600082601f830112614707578081fd5b813561471a61471582615b14565b615aed565b81815291506020808301908481018184028601820187101561473b57600080fd5b60005b848110156147625761475088836146d3565b8452928201929082019060010161473e565b505050505092915050565b600082601f83011261477d578081fd5b813561478b61471582615b14565b8181529150602080830190840160005b838110156147c8576147b3876020843589010161488b565b8352602092830192919091019060010161479b565b5050505092915050565b600082601f8301126147e2578081fd5b81356147f061471582615b14565b8181529150602080830190840160005b838110156147c8576148188760208435890101614912565b83526020928301929190910190600101614800565b600082601f83011261483d578081fd5b813561484b61471582615b14565b81815291506020808301908481018184028601820187101561486c57600080fd5b60005b848110156147625781358452928201929082019060010161486f565b600082601f83011261489b578081fd5b813567ffffffffffffffff8111156148b1578182fd5b6148e260207fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f84011601615aed565b91508082528360208285010111156148f957600080fd5b8060208401602084013760009082016020015292915050565b60006101c0808385031215614925578182fd5b61492e81615aed565b91505061493b83836146d3565b815261494a83602084016146d3565b602082015261495c83604084016146d3565b604082015261496e83606084016146d3565b60608201526080820135608082015260a082013560a082015260c082013560c082015260e082013560e08201526101008083013581830152506101208083013581830152506101408083013567ffffffffffffffff808211156149d057600080fd5b6149dc8683870161488b565b838501526101609250828501359150808211156149f857600080fd5b614a048683870161488b565b83850152610180925082850135915080821115614a2057600080fd5b614a2c8683870161488b565b838501526101a0925082850135915080821115614a4857600080fd5b50614a558582860161488b565b82840152505092915050565b600060a08284031215614a72578081fd5b614a7c60a0615aed565b90508135815260208201356020820152604082013560408201526060820135614aa481615b88565b6060820152608082013567ffffffffffffffff811115614ac357600080fd5b614acf8482850161488b565b60808301525092915050565b600060208284031215614aec578081fd5b61093283836146d3565b60008060408385031215614b08578081fd5b614b1284846146d3565b9150614b2184602085016146d3565b90509250929050565b60008060408385031215614b3c578182fd5b614b4684846146d3565b915060208301358015158114614b5a578182fd5b809150509250929050565b60008060008060808587031215614b7a578182fd5b843567ffffffffffffffff80821115614b91578384fd5b614b9d8883890161476d565b95506020870135915080821115614bb2578384fd5b614bbe888389016146f7565b94506040870135915080821115614bd3578384fd5b614bdf888389016146f7565b93506060870135915080821115614bf4578283fd5b50614c018782880161482d565b91505092959194509250565b600060208284031215614c1e578081fd5b813567ffffffffffffffff811115614c34578182fd5b610b37848285016147d2565b60008060008060808587031215614c55578182fd5b843567ffffffffffffffff80821115614c6c578384fd5b614c78888389016147d2565b95506020870135915080821115614c8d578384fd5b614c99888389016147d2565b94506040870135915080821115614cae578384fd5b614cba8883890161476d565b93506060870135915080821115614ccf578283fd5b50614c018782880161476d565b600080600060608486031215614cf0578081fd5b833567ffffffffffffffff80821115614d07578283fd5b614d13878388016147d2565b94506020860135915080821115614d28578283fd5b614d348783880161482d565b93506040860135915080821115614d49578283fd5b50614d568682870161476d565b9150509250925092565b600080600060608486031215614d74578081fd5b833567ffffffffffffffff80821115614d8b578283fd5b614d97878388016147d2565b9450602086013593506040860135915080821115614d49578283fd5b60008060408385031215614dc5578182fd5b823567ffffffffffffffff80821115614ddc578384fd5b81850186601f820112614ded578485fd5b80359250614dfd61471584615b14565b83815260208082019190838101885b87811015614e3557614e238c848435890101614a61565b85529382019390820190600101614e0c565b50919750880135945050505080821115614e4d578283fd5b50614e5a8582860161476d565b9150509250929050565b600060208284031215614e75578081fd5b5035919050565b60008060408385031215614e8e578182fd5b823591506020830135614b5a81615b88565b600080600060608486031215614eb4578081fd5b833592506020840135614ec681615b88565b9150604084013567ffffffffffffffff811115614ee1578182fd5b614d568682870161488b565b600060208284031215614efe578081fd5b813561093281615baa565b600060208284031215614f1a578081fd5b815161093281615baa565b600060a0828403128015614f37578182fd5b8015614f41578182fd5b50614f4c60a0615aed565b82518152602083015160208201526040830151604082015260608301516060820152608083015160808201528091505092915050565b600060208284031215614f93578081fd5b813567ffffffffffffffff811115614fa9578182fd5b610b3784828501614912565b60008060408385031215614fc7578182fd5b823567ffffffffffffffff80821115614fde578384fd5b614fea86838701614912565b93506020850135915080821115614fff578283fd5b50614e5a8582860161488b565b60008060008060808587031215615021578182fd5b843567ffffffffffffffff80821115615038578384fd5b61504488838901614912565b95506020870135915080821115615059578384fd5b61506588838901614912565b9450604087013591508082111561507a578384fd5b6150868883890161488b565b9350606087013591508082111561509b578283fd5b50614c018782880161488b565b6000806000606084860312156150bc578081fd5b833567ffffffffffffffff808211156150d3578283fd5b6150df87838801614912565b94506020860135935060408601359150808211156150fb578283fd5b50614d568682870161488b565b6000806040838503121561511a578182fd5b823567ffffffffffffffff80821115615131578384fd5b614fea86838701614a61565b73ffffffffffffffffffffffffffffffffffffffff169052565b6000815180845260208401935060208301825b828110156151935761517d8683516151e7565b60a095909501946020919091019060010161516a565b5093949350505050565b600081518084526151b5816020860160208601615b34565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0169290920160200192915050565b80518252602081015160208301526040810151604083015260608101516060830152608081015160808301525050565b60006101c061522784845161513d565b6020830151615239602086018261513d565b50604083015161524c604086018261513d565b50606083015161525f606086018261513d565b506080830151608085015260a083015160a085015260c083015160c085015260e083015160e08501526101008084015181860152506101208084015181860152506101408084015182828701526152b88387018261519d565b915050610160915081840151858203838701526152d5828261519d565b9250505061018080840151858303828701526152f1838261519d565b9150506101a091508184015185820383870152613de2828261519d565b60008251615320818460208701615b34565b9190910192915050565b7f19457468657265756d205369676e6564204d6573736167653a0a3332000000008152601c810191909152603c0190565b73ffffffffffffffffffffffffffffffffffffffff91909116815260200190565b73ffffffffffffffffffffffffffffffffffffffff92831681529116602082015260400190565b73ffffffffffffffffffffffffffffffffffffffff9384168152919092166020820152604081019190915260600190565b600073ffffffffffffffffffffffffffffffffffffffff8616825260806020830152615403608083018661519d565b8281036040840152615415818661519d565b8381036060850152615427818661519d565b98975050505050505050565b6000602080830181845280855180835260408601915060408482028701019250838701855b828110156154a4577fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc088860301845261549285835161519d565b94509285019290850190600101615458565b5092979650505050505050565b6000602082526109326020830184615157565b901515815260200190565b90815260200190565b91825273ffffffffffffffffffffffffffffffffffffffff16602082015260400190565b600085825273ffffffffffffffffffffffffffffffffffffffff8516602083015260806040830152615531608083018561519d565b82810360608401526138a9818561519d565b918252602082015260400190565b600083825260406020830152610b37604083018461519d565b600084825260606020830152615583606083018561519d565b8281036040840152613de2818561519d565b828152604081016155a583615b7e565b8260208301529392505050565b600086825285602083015273ffffffffffffffffffffffffffffffffffffffff808616604084015280851660608401525060a060808301526138a960a083018461519d565b9283526020830191909152604082015260600190565b93845260ff9290921660208401526040830152606082015260800190565b7fffffffff0000000000000000000000000000000000000000000000000000000091909116815260200190565b7fffffffff0000000000000000000000000000000000000000000000000000000092909216825273ffffffffffffffffffffffffffffffffffffffff16602082015260400190565b600060208252610932602083018461519d565b6000608082526156c6608083018761519d565b73ffffffffffffffffffffffffffffffffffffffff95861660208401529390941660408201526060015292915050565b600060408252615709604083018561519d565b8281036020840152610de6818561519d565b60006060825261572e606083018661519d565b8281036020840152615740818661519d565b91505073ffffffffffffffffffffffffffffffffffffffff83166040830152949350505050565b600061016080835261577b8184018f61519d565b838103602085015261578d818f61519d565b91505082810360408401526157a2818d61519d565b83810360608501526157b4818d61519d565b73ffffffffffffffffffffffffffffffffffffffff9b8c16608086015299909a1660a0840152505060c081019590955260e08501939093526101008401919091526101208301526101409091015295945050505050565b600061581685615b60565b84825283602083015260606040830152610de6606083018461519d565b6020810161584083615b6a565b91905290565b6060810161585385615b6a565b938152602081019290925260409091015290565b6060810161587485615b74565b938152602081019290925273ffffffffffffffffffffffffffffffffffffffff1660409091015290565b6060810161585385615b74565b606081016008851061585357fe5b60006158c486615b7e565b85825284602083015273ffffffffffffffffffffffffffffffffffffffff8416604083015260806060830152613de2608083018461519d565b6040810161590a84615b60565b9281526020015290565b60208082526014908201527f5452414e53464552535f5355434345535346554c000000000000000000000000604082015260600190565b60006020825282516080602084015261596760a0840182615157565b602085015191507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe08482030160408501526159a28183615157565b604086015160608601526060860151608086015280935050505092915050565b60a081016107c182846151e7565b6000610180820190506159e48284516151e7565b60208301516159f660a08401826151e7565b5060408301516101408301526060909201516101609091015290565b815160ff168152602080830151908201526040918201519181019190915260600190565b600060408252615a496040830185615217565b90508260208301529392505050565b600060608252615a6b6060830186615217565b8460208401528281036040840152613de2818561519d565b60006040825283516040830152602084015160608301526040840151608083015273ffffffffffffffffffffffffffffffffffffffff60608501511660a0830152608084015160a060c0840152615add60e084018261519d565b9150508260208301529392505050565b60405181810167ffffffffffffffff81118282101715615b0c57600080fd5b604052919050565b600067ffffffffffffffff821115615b2a578081fd5b5060209081020190565b60005b83811015615b4f578181015183820152602001615b37565b838111156133265750506000910152565b6002811061080f57fe5b6004811061080f57fe5b6003811061080f57fe5b6007811061080f57fe5b73ffffffffffffffffffffffffffffffffffffffff8116811461080f57600080fd5b7fffffffff000000000000000000000000000000000000000000000000000000008116811461080f57600080fd5b8351602094850120835193850193909320604080517f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f815295860194909452928401929092526060830152608082015260a090209056fea365627a7a723158206fc97c5a1d6fde6b2ada9eb4429966e52d7e2da39180893c04bf55c840b346a16c6578706572696d656e74616cf564736f6c634300050c0040" - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:110](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L110)* - -## Methods - -### evmExecAsync - -▸ **evmExecAsync**(`input`: `Buffer`): *`Promise`* - - - -Defined in base-contract/lib/src/index.d.ts:42 - -**Parameters:** - -Name | Type | ------- | ------ | -`input` | `Buffer` | - -**Returns:** *`Promise`* - -___ - -### getLogsAsync - -▸ **getLogsAsync**<**ArgsType**>(`eventName`: [ExchangeEvents](#enumeration-exchangeevents), `blockRange`: `BlockRange`, `indexFilterValues`: `IndexedFilterValues`): *`Promise>>`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:13398](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L13398)* - -Gets historical logs without creating a subscription - -**Type parameters:** - -▪ **ArgsType**: *[ExchangeEventArgs](#exchangeeventargs)* - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`eventName` | [ExchangeEvents](#enumeration-exchangeevents) | The Exchange 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 - -___ - -### subscribe - -▸ **subscribe**<**ArgsType**>(`eventName`: [ExchangeEvents](#enumeration-exchangeevents), `indexFilterValues`: `IndexedFilterValues`, `callback`: [EventCallback](#eventcallback)‹*`ArgsType`*›, `isVerbose`: boolean, `blockPollingIntervalMs?`: undefined | number): *string* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:13356](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L13356)* - -Subscribe to an event type emitted by the Exchange contract. - -**Type parameters:** - -▪ **ArgsType**: *[ExchangeEventArgs](#exchangeeventargs)* - -**Parameters:** - -Name | Type | Default | Description | ------- | ------ | ------ | ------ | -`eventName` | [ExchangeEvents](#enumeration-exchangeevents) | - | The Exchange 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 - -___ - -### unsubscribe - -▸ **unsubscribe**(`subscriptionToken`: string): *void* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:13381](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L13381)* - -Cancel a subscription - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`subscriptionToken` | string | Subscription token returned by `subscribe()` | - -**Returns:** *void* - -___ - -### unsubscribeAll - -▸ **unsubscribeAll**(): *void* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:13387](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L13387)* - -Cancels all existing subscriptions - -**Returns:** *void* - -___ - -### `Static` ABI - -▸ **ABI**(): *[ContractAbi](#contractabi)* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:10467](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L10467)* - -**Returns:** *[ContractAbi](#contractabi)* - -The contract ABI - -___ - -### `Static` deployAsync - -▸ **deployAsync**(`bytecode`: string, `abi`: [ContractAbi](#contractabi), `supportedProvider`: [SupportedProvider](#supportedprovider), `txDefaults`: `Partial`, `logDecodeDependencies`: object, `chainId`: `BigNumber`): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:10420](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L10420)* - -**Parameters:** - -Name | Type | ------- | ------ | -`bytecode` | string | -`abi` | [ContractAbi](#contractabi) | -`supportedProvider` | [SupportedProvider](#supportedprovider) | -`txDefaults` | `Partial` | -`logDecodeDependencies` | object | -`chainId` | `BigNumber` | - -**Returns:** *`Promise`* - -___ - -### `Static` deployFrom0xArtifactAsync - -▸ **deployFrom0xArtifactAsync**(`artifact`: `ContractArtifact` | `SimpleContractArtifact`, `supportedProvider`: [SupportedProvider](#supportedprovider), `txDefaults`: `Partial`, `logDecodeDependencies`: object, `chainId`: `BigNumber`): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:10394](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L10394)* - -**Parameters:** - -Name | Type | ------- | ------ | -`artifact` | `ContractArtifact` \| `SimpleContractArtifact` | -`supportedProvider` | [SupportedProvider](#supportedprovider) | -`txDefaults` | `Partial` | -`logDecodeDependencies` | object | -`chainId` | `BigNumber` | - -**Returns:** *`Promise`* - -___ - -### `Static` strictArgumentEncodingCheck - -▸ **strictArgumentEncodingCheck**(`inputAbi`: `DataItem`[], `args`: any[]): *string* - - - -Defined in base-contract/lib/src/index.d.ts:41 - -**Parameters:** - -Name | Type | ------- | ------ | -`inputAbi` | `DataItem`[] | -`args` | any[] | - -**Returns:** *string* - -## Object literals - -### EIP1271_MAGIC_VALUE - -#### ▪ **EIP1271_MAGIC_VALUE**: *object* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:112](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L112)* - -#### callAsync - -▸ **callAsync**(`callData`: `Partial`, `defaultBlock?`: [BlockParam](#blockparam)): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:118](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L118)* - -Sends a read-only call to the contract method. Returns the result that would happen if one were to send an -Ethereum transaction to this method, given the current state of the blockchain. Calls do not cost gas -since they don't modify state. - -**Parameters:** - -Name | Type | Default | ------- | ------ | ------ | -`callData` | `Partial` | {} | -`defaultBlock?` | [BlockParam](#blockparam) | - | - -**Returns:** *`Promise`* - -#### getABIDecodedReturnData - -▸ **getABIDecodedReturnData**(`returnData`: string): *string* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:182](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L182)* - -Decode the ABI-encoded return data from a transaction - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`returnData` | string | the data returned after transaction execution | - -**Returns:** *string* - -An array representing the output results in order. Keynames of nested structs are preserved. - -#### getABIDecodedTransactionData - -▸ **getABIDecodedTransactionData**(`callData`: string): *void* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:170](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L170)* - -Decode the ABI-encoded transaction data into its input arguments - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`callData` | string | The ABI-encoded transaction data | - -**Returns:** *void* - -An array representing the input arguments in order. Keynames of nested structs are preserved. - -#### getABIEncodedTransactionData - -▸ **getABIEncodedTransactionData**(): *string* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:160](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L160)* - -Returns the ABI encoded transaction data needed to send an Ethereum transaction calling this method. Before -sending the Ethereum tx, this encoded tx data can first be sent to a separate signing service or can be used -to create a 0x transaction (see protocol spec for more details). - -**Returns:** *string* - -The ABI encoded transaction data as a string - -___ - -### EIP712_EXCHANGE_DOMAIN_HASH - -#### ▪ **EIP712_EXCHANGE_DOMAIN_HASH**: *object* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:190](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L190)* - -#### callAsync - -▸ **callAsync**(`callData`: `Partial`, `defaultBlock?`: [BlockParam](#blockparam)): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:196](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L196)* - -Sends a read-only call to the contract method. Returns the result that would happen if one were to send an -Ethereum transaction to this method, given the current state of the blockchain. Calls do not cost gas -since they don't modify state. - -**Parameters:** - -Name | Type | Default | ------- | ------ | ------ | -`callData` | `Partial` | {} | -`defaultBlock?` | [BlockParam](#blockparam) | - | - -**Returns:** *`Promise`* - -#### getABIDecodedReturnData - -▸ **getABIDecodedReturnData**(`returnData`: string): *string* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:260](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L260)* - -Decode the ABI-encoded return data from a transaction - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`returnData` | string | the data returned after transaction execution | - -**Returns:** *string* - -An array representing the output results in order. Keynames of nested structs are preserved. - -#### getABIDecodedTransactionData - -▸ **getABIDecodedTransactionData**(`callData`: string): *void* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:248](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L248)* - -Decode the ABI-encoded transaction data into its input arguments - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`callData` | string | The ABI-encoded transaction data | - -**Returns:** *void* - -An array representing the input arguments in order. Keynames of nested structs are preserved. - -#### getABIEncodedTransactionData - -▸ **getABIEncodedTransactionData**(): *string* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:238](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L238)* - -Returns the ABI encoded transaction data needed to send an Ethereum transaction calling this method. Before -sending the Ethereum tx, this encoded tx data can first be sent to a separate signing service or can be used -to create a 0x transaction (see protocol spec for more details). - -**Returns:** *string* - -The ABI encoded transaction data as a string - -___ - -### allowedValidators - -#### ▪ **allowedValidators**: *object* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:268](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L268)* - -#### callAsync - -▸ **callAsync**(`index_0`: string, `index_1`: string, `callData`: `Partial`, `defaultBlock?`: [BlockParam](#blockparam)): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:274](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L274)* - -Sends a read-only call to the contract method. Returns the result that would happen if one were to send an -Ethereum transaction to this method, given the current state of the blockchain. Calls do not cost gas -since they don't modify state. - -**Parameters:** - -Name | Type | Default | ------- | ------ | ------ | -`index_0` | string | - | -`index_1` | string | - | -`callData` | `Partial` | {} | -`defaultBlock?` | [BlockParam](#blockparam) | - | - -**Returns:** *`Promise`* - -#### getABIDecodedReturnData - -▸ **getABIDecodedReturnData**(`returnData`: string): *boolean* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:353](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L353)* - -Decode the ABI-encoded return data from a transaction - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`returnData` | string | the data returned after transaction execution | - -**Returns:** *boolean* - -An array representing the output results in order. Keynames of nested structs are preserved. - -#### getABIDecodedTransactionData - -▸ **getABIDecodedTransactionData**(`callData`: string): *string* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:341](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L341)* - -Decode the ABI-encoded transaction data into its input arguments - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`callData` | string | The ABI-encoded transaction data | - -**Returns:** *string* - -An array representing the input arguments in order. Keynames of nested structs are preserved. - -#### getABIEncodedTransactionData - -▸ **getABIEncodedTransactionData**(`index_0`: string, `index_1`: string): *string* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:326](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L326)* - -Returns the ABI encoded transaction data needed to send an Ethereum transaction calling this method. Before -sending the Ethereum tx, this encoded tx data can first be sent to a separate signing service or can be used -to create a 0x transaction (see protocol spec for more details). - -**Parameters:** - -Name | Type | ------- | ------ | -`index_0` | string | -`index_1` | string | - -**Returns:** *string* - -The ABI encoded transaction data as a string - -___ - -### batchCancelOrders - -#### ▪ **batchCancelOrders**: *object* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:364](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L364)* - -Executes multiple calls of cancelOrder. - -#### awaitTransactionSuccessAsync - -▸ **awaitTransactionSuccessAsync**(`orders`: `Array`, `txData?`: `Partial`, `pollingIntervalMs?`: undefined | number, `timeoutMs?`: undefined | number): *`PromiseWithTransactionHash`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:420](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L420)* - -Sends an Ethereum transaction and waits until the transaction has been successfully mined without reverting. -If the transaction was mined, but reverted, an error is thrown. - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`orders` | `Array` | Array of order specifications. | -`txData?` | `Partial` | Additional data for transaction | -`pollingIntervalMs?` | undefined \| number | Interval at which to poll for success | -`timeoutMs?` | undefined \| number | - | - -**Returns:** *`PromiseWithTransactionHash`* - -A promise that resolves when the transaction is successful - -#### callAsync - -▸ **callAsync**(`orders`: `Array`, `callData`: `Partial`, `defaultBlock?`: [BlockParam](#blockparam)): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:531](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L531)* - -Sends a read-only call to the contract method. Returns the result that would happen if one were to send an -Ethereum transaction to this method, given the current state of the blockchain. Calls do not cost gas -since they don't modify state. - -**Parameters:** - -Name | Type | Default | Description | ------- | ------ | ------ | ------ | -`orders` | `Array` | - | Array of order specifications. | -`callData` | `Partial` | {} | - | -`defaultBlock?` | [BlockParam](#blockparam) | - | - | - -**Returns:** *`Promise`* - -#### estimateGasAsync - -▸ **estimateGasAsync**(`orders`: `Array`, `txData?`: `Partial` | undefined): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:462](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L462)* - -Estimates the gas cost of sending an Ethereum transaction calling this method with these arguments. - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`orders` | `Array` | Array of order specifications. | -`txData?` | `Partial` \| undefined | Additional data for transaction | - -**Returns:** *`Promise`* - -The hash of the transaction - -#### getABIDecodedReturnData - -▸ **getABIDecodedReturnData**(`returnData`: string): *void* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:682](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L682)* - -Decode the ABI-encoded return data from a transaction - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`returnData` | string | the data returned after transaction execution | - -**Returns:** *void* - -An array representing the output results in order. Keynames of nested structs are preserved. - -#### getABIDecodedTransactionData - -▸ **getABIDecodedTransactionData**(`callData`: string): *[`Array`]* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:630](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L630)* - -Decode the ABI-encoded transaction data into its input arguments - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`callData` | string | The ABI-encoded transaction data | - -**Returns:** *[`Array`]* - -An array representing the input arguments in order. Keynames of nested structs are preserved. - -#### getABIEncodedTransactionData - -▸ **getABIEncodedTransactionData**(`orders`: `Array`): *string* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:599](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L599)* - -Returns the ABI encoded transaction data needed to send an Ethereum transaction calling this method. Before -sending the Ethereum tx, this encoded tx data can first be sent to a separate signing service or can be used -to create a 0x transaction (see protocol spec for more details). - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`orders` | `Array` | Array of order specifications. | - -**Returns:** *string* - -The ABI encoded transaction data as a string - -#### sendTransactionAsync - -▸ **sendTransactionAsync**(`orders`: `Array`, `txData?`: `Partial` | undefined): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:372](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L372)* - -Sends an Ethereum transaction executing this method with the supplied parameters. This is a read/write -Ethereum operation and will cost gas. - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`orders` | `Array` | Array of order specifications. | -`txData?` | `Partial` \| undefined | Additional data for transaction | - -**Returns:** *`Promise`* - -The hash of the transaction - -#### validateAndSendTransactionAsync - -▸ **validateAndSendTransactionAsync**(`orders`: `Array`, `txData?`: `Partial` | undefined): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:502](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L502)* - -**Parameters:** - -Name | Type | ------- | ------ | -`orders` | `Array` | -`txData?` | `Partial` \| undefined | - -**Returns:** *`Promise`* - -___ - -### batchExecuteTransactions - -#### ▪ **batchExecuteTransactions**: *object* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:695](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L695)* - -Executes a batch of Exchange method calls in the context of signer(s). - -#### awaitTransactionSuccessAsync - -▸ **awaitTransactionSuccessAsync**(`transactions`: `Array`, `signatures`: string[], `txData?`: `Partial`, `pollingIntervalMs?`: undefined | number, `timeoutMs?`: undefined | number): *`PromiseWithTransactionHash`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:748](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L748)* - -Sends an Ethereum transaction and waits until the transaction has been successfully mined without reverting. -If the transaction was mined, but reverted, an error is thrown. - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`transactions` | `Array` | Array of 0x transaction structures. | -`signatures` | string[] | Array of proofs that transactions have been signed by signer(s). | -`txData?` | `Partial` | Additional data for transaction | -`pollingIntervalMs?` | undefined \| number | Interval at which to poll for success | -`timeoutMs?` | undefined \| number | - | - -**Returns:** *`PromiseWithTransactionHash`* - -A promise that resolves when the transaction is successful - -#### callAsync - -▸ **callAsync**(`transactions`: `Array`, `signatures`: string[], `callData`: `Partial`, `defaultBlock?`: [BlockParam](#blockparam)): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:846](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L846)* - -Sends a read-only call to the contract method. Returns the result that would happen if one were to send an -Ethereum transaction to this method, given the current state of the blockchain. Calls do not cost gas -since they don't modify state. - -**Parameters:** - -Name | Type | Default | Description | ------- | ------ | ------ | ------ | -`transactions` | `Array` | - | Array of 0x transaction structures. | -`signatures` | string[] | - | Array of proofs that transactions have been signed by signer(s). | -`callData` | `Partial` | {} | - | -`defaultBlock?` | [BlockParam](#blockparam) | - | - | - -**Returns:** *`Promise`* - -Array containing ABI encoded return data for each of the underlying Exchange function calls. - -#### estimateGasAsync - -▸ **estimateGasAsync**(`transactions`: `Array`, `signatures`: string[], `txData?`: `Partial` | undefined): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:785](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L785)* - -Estimates the gas cost of sending an Ethereum transaction calling this method with these arguments. - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`transactions` | `Array` | Array of 0x transaction structures. | -`signatures` | string[] | Array of proofs that transactions have been signed by signer(s). | -`txData?` | `Partial` \| undefined | Additional data for transaction | - -**Returns:** *`Promise`* - -The hash of the transaction - -#### getABIDecodedReturnData - -▸ **getABIDecodedReturnData**(`returnData`: string): *string[]* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:963](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L963)* - -Decode the ABI-encoded return data from a transaction - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`returnData` | string | the data returned after transaction execution | - -**Returns:** *string[]* - -An array representing the output results in order. Keynames of nested structs are preserved. - -#### getABIDecodedTransactionData - -▸ **getABIDecodedTransactionData**(`callData`: string): *`Array`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:933](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L933)* - -Decode the ABI-encoded transaction data into its input arguments - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`callData` | string | The ABI-encoded transaction data | - -**Returns:** *`Array`* - -An array representing the input arguments in order. Keynames of nested structs are preserved. - -#### getABIEncodedTransactionData - -▸ **getABIEncodedTransactionData**(`transactions`: `Array`, `signatures`: string[]): *string* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:909](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L909)* - -Returns the ABI encoded transaction data needed to send an Ethereum transaction calling this method. Before -sending the Ethereum tx, this encoded tx data can first be sent to a separate signing service or can be used -to create a 0x transaction (see protocol spec for more details). - -**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:** *string* - -The ABI encoded transaction data as a string - -#### sendTransactionAsync - -▸ **sendTransactionAsync**(`transactions`: `Array`, `signatures`: string[], `txData?`: `Partial` | undefined): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:705](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L705)* - -Sends an Ethereum transaction executing this method with the supplied parameters. This is a read/write -Ethereum operation and will cost gas. - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`transactions` | `Array` | Array of 0x transaction structures. | -`signatures` | string[] | Array of proofs that transactions have been signed by signer(s). | -`txData?` | `Partial` \| undefined | Additional data for transaction | - -**Returns:** *`Promise`* - -The hash of the transaction - -#### validateAndSendTransactionAsync - -▸ **validateAndSendTransactionAsync**(`transactions`: `Array`, `signatures`: string[], `txData?`: `Partial` | undefined): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:818](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L818)* - -**Parameters:** - -Name | Type | ------- | ------ | -`transactions` | `Array` | -`signatures` | string[] | -`txData?` | `Partial` \| undefined | - -**Returns:** *`Promise`* - -___ - -### batchFillOrKillOrders - -#### ▪ **batchFillOrKillOrders**: *object* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:976](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L976)* - -Executes multiple calls of fillOrKillOrder. - -#### awaitTransactionSuccessAsync - -▸ **awaitTransactionSuccessAsync**(`orders`: `Array`, `takerAssetFillAmounts`: `BigNumber`[], `signatures`: string[], `txData?`: `Partial`, `pollingIntervalMs?`: undefined | number, `timeoutMs?`: undefined | number): *`PromiseWithTransactionHash`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:1042](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L1042)* - -Sends an Ethereum transaction and waits until the transaction has been successfully mined without reverting. -If the transaction was mined, but reverted, an error is thrown. - -**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. | -`txData?` | `Partial` | Additional data for transaction | -`pollingIntervalMs?` | undefined \| number | Interval at which to poll for success | -`timeoutMs?` | undefined \| number | - | - -**Returns:** *`PromiseWithTransactionHash`* - -A promise that resolves when the transaction is successful - -#### callAsync - -▸ **callAsync**(`orders`: `Array`, `takerAssetFillAmounts`: `BigNumber`[], `signatures`: string[], `callData`: `Partial`, `defaultBlock?`: [BlockParam](#blockparam)): *`Promise>`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:1180](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L1180)* - -Sends a read-only call to the contract method. Returns the result that would happen if one were to send an -Ethereum transaction to this method, given the current state of the blockchain. Calls do not cost gas -since they don't modify state. - -**Parameters:** - -Name | Type | Default | 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. | -`callData` | `Partial` | {} | - | -`defaultBlock?` | [BlockParam](#blockparam) | - | - | - -**Returns:** *`Promise>`* - -Array of amounts filled and fees paid by makers and taker. - -#### estimateGasAsync - -▸ **estimateGasAsync**(`orders`: `Array`, `takerAssetFillAmounts`: `BigNumber`[], `signatures`: string[], `txData?`: `Partial` | undefined): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:1096](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L1096)* - -Estimates the gas cost of sending an Ethereum transaction calling this method with these arguments. - -**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. | -`txData?` | `Partial` \| undefined | Additional data for transaction | - -**Returns:** *`Promise`* - -The hash of the transaction - -#### getABIDecodedReturnData - -▸ **getABIDecodedReturnData**(`returnData`: string): *`Array`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:1354](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L1354)* - -Decode the ABI-encoded return data from a transaction - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`returnData` | string | the data returned after transaction execution | - -**Returns:** *`Array`* - -An array representing the output results in order. Keynames of nested structs are preserved. - -#### getABIDecodedTransactionData - -▸ **getABIDecodedTransactionData**(`callData`: string): *`Array`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:1306](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L1306)* - -Decode the ABI-encoded transaction data into its input arguments - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`callData` | string | The ABI-encoded transaction data | - -**Returns:** *`Array`* - -An array representing the input arguments in order. Keynames of nested structs are preserved. - -#### getABIEncodedTransactionData - -▸ **getABIEncodedTransactionData**(`orders`: `Array`, `takerAssetFillAmounts`: `BigNumber`[], `signatures`: string[]): *string* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:1271](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L1271)* - -Returns the ABI encoded transaction data needed to send an Ethereum transaction calling this method. Before -sending the Ethereum tx, this encoded tx data can first be sent to a separate signing service or can be used -to create a 0x transaction (see protocol spec for more details). - -**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:** *string* - -The ABI encoded transaction data as a string - -#### sendTransactionAsync - -▸ **sendTransactionAsync**(`orders`: `Array`, `takerAssetFillAmounts`: `BigNumber`[], `signatures`: string[], `txData?`: `Partial` | undefined): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:987](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L987)* - -Sends an Ethereum transaction executing this method with the supplied parameters. This is a read/write -Ethereum operation and will cost gas. - -**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. | -`txData?` | `Partial` \| undefined | Additional data for transaction | - -**Returns:** *`Promise`* - -The hash of the transaction - -#### validateAndSendTransactionAsync - -▸ **validateAndSendTransactionAsync**(`orders`: `Array`, `takerAssetFillAmounts`: `BigNumber`[], `signatures`: string[], `txData?`: `Partial` | undefined): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:1140](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L1140)* - -**Parameters:** - -Name | Type | ------- | ------ | -`orders` | `Array` | -`takerAssetFillAmounts` | `BigNumber`[] | -`signatures` | string[] | -`txData?` | `Partial` \| undefined | - -**Returns:** *`Promise`* - -___ - -### batchFillOrders - -#### ▪ **batchFillOrders**: *object* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:1383](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L1383)* - -Executes multiple calls of fillOrder. - -#### awaitTransactionSuccessAsync - -▸ **awaitTransactionSuccessAsync**(`orders`: `Array`, `takerAssetFillAmounts`: `BigNumber`[], `signatures`: string[], `txData?`: `Partial`, `pollingIntervalMs?`: undefined | number, `timeoutMs?`: undefined | number): *`PromiseWithTransactionHash`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:1449](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L1449)* - -Sends an Ethereum transaction and waits until the transaction has been successfully mined without reverting. -If the transaction was mined, but reverted, an error is thrown. - -**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. | -`txData?` | `Partial` | Additional data for transaction | -`pollingIntervalMs?` | undefined \| number | Interval at which to poll for success | -`timeoutMs?` | undefined \| number | - | - -**Returns:** *`PromiseWithTransactionHash`* - -A promise that resolves when the transaction is successful - -#### callAsync - -▸ **callAsync**(`orders`: `Array`, `takerAssetFillAmounts`: `BigNumber`[], `signatures`: string[], `callData`: `Partial`, `defaultBlock?`: [BlockParam](#blockparam)): *`Promise>`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:1587](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L1587)* - -Sends a read-only call to the contract method. Returns the result that would happen if one were to send an -Ethereum transaction to this method, given the current state of the blockchain. Calls do not cost gas -since they don't modify state. - -**Parameters:** - -Name | Type | Default | 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. | -`callData` | `Partial` | {} | - | -`defaultBlock?` | [BlockParam](#blockparam) | - | - | - -**Returns:** *`Promise>`* - -Array of amounts filled and fees paid by makers and taker. - -#### estimateGasAsync - -▸ **estimateGasAsync**(`orders`: `Array`, `takerAssetFillAmounts`: `BigNumber`[], `signatures`: string[], `txData?`: `Partial` | undefined): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:1503](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L1503)* - -Estimates the gas cost of sending an Ethereum transaction calling this method with these arguments. - -**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. | -`txData?` | `Partial` \| undefined | Additional data for transaction | - -**Returns:** *`Promise`* - -The hash of the transaction - -#### getABIDecodedReturnData - -▸ **getABIDecodedReturnData**(`returnData`: string): *`Array`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:1761](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L1761)* - -Decode the ABI-encoded return data from a transaction - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`returnData` | string | the data returned after transaction execution | - -**Returns:** *`Array`* - -An array representing the output results in order. Keynames of nested structs are preserved. - -#### getABIDecodedTransactionData - -▸ **getABIDecodedTransactionData**(`callData`: string): *`Array`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:1713](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L1713)* - -Decode the ABI-encoded transaction data into its input arguments - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`callData` | string | The ABI-encoded transaction data | - -**Returns:** *`Array`* - -An array representing the input arguments in order. Keynames of nested structs are preserved. - -#### getABIEncodedTransactionData - -▸ **getABIEncodedTransactionData**(`orders`: `Array`, `takerAssetFillAmounts`: `BigNumber`[], `signatures`: string[]): *string* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:1678](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L1678)* - -Returns the ABI encoded transaction data needed to send an Ethereum transaction calling this method. Before -sending the Ethereum tx, this encoded tx data can first be sent to a separate signing service or can be used -to create a 0x transaction (see protocol spec for more details). - -**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:** *string* - -The ABI encoded transaction data as a string - -#### sendTransactionAsync - -▸ **sendTransactionAsync**(`orders`: `Array`, `takerAssetFillAmounts`: `BigNumber`[], `signatures`: string[], `txData?`: `Partial` | undefined): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:1394](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L1394)* - -Sends an Ethereum transaction executing this method with the supplied parameters. This is a read/write -Ethereum operation and will cost gas. - -**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. | -`txData?` | `Partial` \| undefined | Additional data for transaction | - -**Returns:** *`Promise`* - -The hash of the transaction - -#### validateAndSendTransactionAsync - -▸ **validateAndSendTransactionAsync**(`orders`: `Array`, `takerAssetFillAmounts`: `BigNumber`[], `signatures`: string[], `txData?`: `Partial` | undefined): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:1547](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L1547)* - -**Parameters:** - -Name | Type | ------- | ------ | -`orders` | `Array` | -`takerAssetFillAmounts` | `BigNumber`[] | -`signatures` | string[] | -`txData?` | `Partial` \| undefined | - -**Returns:** *`Promise`* - -___ - -### batchFillOrdersNoThrow - -#### ▪ **batchFillOrdersNoThrow**: *object* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:1790](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L1790)* - -Executes multiple calls of fillOrder. If any fill reverts, the error is caught and ignored. - -#### awaitTransactionSuccessAsync - -▸ **awaitTransactionSuccessAsync**(`orders`: `Array`, `takerAssetFillAmounts`: `BigNumber`[], `signatures`: string[], `txData?`: `Partial`, `pollingIntervalMs?`: undefined | number, `timeoutMs?`: undefined | number): *`PromiseWithTransactionHash`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:1856](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L1856)* - -Sends an Ethereum transaction and waits until the transaction has been successfully mined without reverting. -If the transaction was mined, but reverted, an error is thrown. - -**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. | -`txData?` | `Partial` | Additional data for transaction | -`pollingIntervalMs?` | undefined \| number | Interval at which to poll for success | -`timeoutMs?` | undefined \| number | - | - -**Returns:** *`PromiseWithTransactionHash`* - -A promise that resolves when the transaction is successful - -#### callAsync - -▸ **callAsync**(`orders`: `Array`, `takerAssetFillAmounts`: `BigNumber`[], `signatures`: string[], `callData`: `Partial`, `defaultBlock?`: [BlockParam](#blockparam)): *`Promise>`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:1994](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L1994)* - -Sends a read-only call to the contract method. Returns the result that would happen if one were to send an -Ethereum transaction to this method, given the current state of the blockchain. Calls do not cost gas -since they don't modify state. - -**Parameters:** - -Name | Type | Default | 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. | -`callData` | `Partial` | {} | - | -`defaultBlock?` | [BlockParam](#blockparam) | - | - | - -**Returns:** *`Promise>`* - -Array of amounts filled and fees paid by makers and taker. - -#### estimateGasAsync - -▸ **estimateGasAsync**(`orders`: `Array`, `takerAssetFillAmounts`: `BigNumber`[], `signatures`: string[], `txData?`: `Partial` | undefined): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:1910](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L1910)* - -Estimates the gas cost of sending an Ethereum transaction calling this method with these arguments. - -**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. | -`txData?` | `Partial` \| undefined | Additional data for transaction | - -**Returns:** *`Promise`* - -The hash of the transaction - -#### getABIDecodedReturnData - -▸ **getABIDecodedReturnData**(`returnData`: string): *`Array`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:2168](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L2168)* - -Decode the ABI-encoded return data from a transaction - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`returnData` | string | the data returned after transaction execution | - -**Returns:** *`Array`* - -An array representing the output results in order. Keynames of nested structs are preserved. - -#### getABIDecodedTransactionData - -▸ **getABIDecodedTransactionData**(`callData`: string): *`Array`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:2120](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L2120)* - -Decode the ABI-encoded transaction data into its input arguments - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`callData` | string | The ABI-encoded transaction data | - -**Returns:** *`Array`* - -An array representing the input arguments in order. Keynames of nested structs are preserved. - -#### getABIEncodedTransactionData - -▸ **getABIEncodedTransactionData**(`orders`: `Array`, `takerAssetFillAmounts`: `BigNumber`[], `signatures`: string[]): *string* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:2085](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L2085)* - -Returns the ABI encoded transaction data needed to send an Ethereum transaction calling this method. Before -sending the Ethereum tx, this encoded tx data can first be sent to a separate signing service or can be used -to create a 0x transaction (see protocol spec for more details). - -**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:** *string* - -The ABI encoded transaction data as a string - -#### sendTransactionAsync - -▸ **sendTransactionAsync**(`orders`: `Array`, `takerAssetFillAmounts`: `BigNumber`[], `signatures`: string[], `txData?`: `Partial` | undefined): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:1801](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L1801)* - -Sends an Ethereum transaction executing this method with the supplied parameters. This is a read/write -Ethereum operation and will cost gas. - -**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. | -`txData?` | `Partial` \| undefined | Additional data for transaction | - -**Returns:** *`Promise`* - -The hash of the transaction - -#### validateAndSendTransactionAsync - -▸ **validateAndSendTransactionAsync**(`orders`: `Array`, `takerAssetFillAmounts`: `BigNumber`[], `signatures`: string[], `txData?`: `Partial` | undefined): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:1954](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L1954)* - -**Parameters:** - -Name | Type | ------- | ------ | -`orders` | `Array` | -`takerAssetFillAmounts` | `BigNumber`[] | -`signatures` | string[] | -`txData?` | `Partial` \| undefined | - -**Returns:** *`Promise`* - -___ - -### batchMatchOrders - -#### ▪ **batchMatchOrders**: *object* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:2199](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L2199)* - -Match complementary orders that have a profitable spread. -Each order is filled at their respective price point, and -the matcher receives a profit denominated in the left maker asset. - -#### awaitTransactionSuccessAsync - -▸ **awaitTransactionSuccessAsync**(`leftOrders`: `Array`, `rightOrders`: `Array`, `leftSignatures`: string[], `rightSignatures`: string[], `txData?`: `Partial`, `pollingIntervalMs?`: undefined | number, `timeoutMs?`: undefined | number): *`PromiseWithTransactionHash`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:2286](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L2286)* - -Sends an Ethereum transaction and waits until the transaction has been successfully mined without reverting. -If the transaction was mined, but reverted, an error is thrown. - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`leftOrders` | `Array` | Set of orders with the same maker / taker asset. | -`rightOrders` | `Array` | Set of orders to match against `leftOrders` | -`leftSignatures` | string[] | Proof that left orders were created by the left makers. | -`rightSignatures` | string[] | Proof that right orders were created by the right makers. | -`txData?` | `Partial` | Additional data for transaction | -`pollingIntervalMs?` | undefined \| number | Interval at which to poll for success | -`timeoutMs?` | undefined \| number | - | - -**Returns:** *`PromiseWithTransactionHash`* - -A promise that resolves when the transaction is successful - -#### callAsync - -▸ **callAsync**(`leftOrders`: `Array`, `rightOrders`: `Array`, `leftSignatures`: string[], `rightSignatures`: string[], `callData`: `Partial`, `defaultBlock?`: [BlockParam](#blockparam)): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:2486](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L2486)* - -Sends a read-only call to the contract method. Returns the result that would happen if one were to send an -Ethereum transaction to this method, given the current state of the blockchain. Calls do not cost gas -since they don't modify state. - -**Parameters:** - -Name | Type | Default | Description | ------- | ------ | ------ | ------ | -`leftOrders` | `Array` | - | Set of orders with the same maker / taker asset. | -`rightOrders` | `Array` | - | Set of orders to match against `leftOrders` | -`leftSignatures` | string[] | - | Proof that left orders were created by the left makers. | -`rightSignatures` | string[] | - | Proof that right orders were created by the right makers. | -`callData` | `Partial` | {} | - | -`defaultBlock?` | [BlockParam](#blockparam) | - | - | - -**Returns:** *`Promise`* - -batchMatchedFillResults Amounts filled and profit generated. - -#### estimateGasAsync - -▸ **estimateGasAsync**(`leftOrders`: `Array`, `rightOrders`: `Array`, `leftSignatures`: string[], `rightSignatures`: string[], `txData?`: `Partial` | undefined): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:2360](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L2360)* - -Estimates the gas cost of sending an Ethereum transaction calling this method with these arguments. - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`leftOrders` | `Array` | Set of orders with the same maker / taker asset. | -`rightOrders` | `Array` | Set of orders to match against `leftOrders` | -`leftSignatures` | string[] | Proof that left orders were created by the left makers. | -`rightSignatures` | string[] | Proof that right orders were created by the right makers. | -`txData?` | `Partial` \| undefined | Additional data for transaction | - -**Returns:** *`Promise`* - -The hash of the transaction - -#### getABIDecodedReturnData - -▸ **getABIDecodedReturnData**(`returnData`: string): *object* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:2714](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L2714)* - -Decode the ABI-encoded return data from a transaction - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`returnData` | string | the data returned after transaction execution | - -**Returns:** *object* - -An array representing the output results in order. Keynames of nested structs are preserved. - -#### getABIDecodedTransactionData - -▸ **getABIDecodedTransactionData**(`callData`: string): *`Array`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:2666](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L2666)* - -Decode the ABI-encoded transaction data into its input arguments - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`callData` | string | The ABI-encoded transaction data | - -**Returns:** *`Array`* - -An array representing the input arguments in order. Keynames of nested structs are preserved. - -#### getABIEncodedTransactionData - -▸ **getABIEncodedTransactionData**(`leftOrders`: `Array`, `rightOrders`: `Array`, `leftSignatures`: string[], `rightSignatures`: string[]): *string* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:2614](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L2614)* - -Returns the ABI encoded transaction data needed to send an Ethereum transaction calling this method. Before -sending the Ethereum tx, this encoded tx data can first be sent to a separate signing service or can be used -to create a 0x transaction (see protocol spec for more details). - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`leftOrders` | `Array` | Set of orders with the same maker / taker asset. | -`rightOrders` | `Array` | Set of orders to match against `leftOrders` | -`leftSignatures` | string[] | Proof that left orders were created by the left makers. | -`rightSignatures` | string[] | Proof that right orders were created by the right makers. | - -**Returns:** *string* - -The ABI encoded transaction data as a string - -#### sendTransactionAsync - -▸ **sendTransactionAsync**(`leftOrders`: `Array`, `rightOrders`: `Array`, `leftSignatures`: string[], `rightSignatures`: string[], `txData?`: `Partial` | undefined): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:2212](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L2212)* - -Sends an Ethereum transaction executing this method with the supplied parameters. This is a read/write -Ethereum operation and will cost gas. - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`leftOrders` | `Array` | Set of orders with the same maker / taker asset. | -`rightOrders` | `Array` | Set of orders to match against `leftOrders` | -`leftSignatures` | string[] | Proof that left orders were created by the left makers. | -`rightSignatures` | string[] | Proof that right orders were created by the right makers. | -`txData?` | `Partial` \| undefined | Additional data for transaction | - -**Returns:** *`Promise`* - -The hash of the transaction - -#### validateAndSendTransactionAsync - -▸ **validateAndSendTransactionAsync**(`leftOrders`: `Array`, `rightOrders`: `Array`, `leftSignatures`: string[], `rightSignatures`: string[], `txData?`: `Partial` | undefined): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:2421](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L2421)* - -**Parameters:** - -Name | Type | ------- | ------ | -`leftOrders` | `Array` | -`rightOrders` | `Array` | -`leftSignatures` | string[] | -`rightSignatures` | string[] | -`txData?` | `Partial` \| undefined | - -**Returns:** *`Promise`* - -___ - -### batchMatchOrdersWithMaximalFill - -#### ▪ **batchMatchOrdersWithMaximalFill**: *object* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:2766](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L2766)* - -Match complementary orders that have a profitable spread. -Each order is maximally filled at their respective price point, and -the matcher receives a profit denominated in either the left maker asset, -right maker asset, or a combination of both. - -#### awaitTransactionSuccessAsync - -▸ **awaitTransactionSuccessAsync**(`leftOrders`: `Array`, `rightOrders`: `Array`, `leftSignatures`: string[], `rightSignatures`: string[], `txData?`: `Partial`, `pollingIntervalMs?`: undefined | number, `timeoutMs?`: undefined | number): *`PromiseWithTransactionHash`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:2853](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L2853)* - -Sends an Ethereum transaction and waits until the transaction has been successfully mined without reverting. -If the transaction was mined, but reverted, an error is thrown. - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`leftOrders` | `Array` | Set of orders with the same maker / taker asset. | -`rightOrders` | `Array` | Set of orders to match against `leftOrders` | -`leftSignatures` | string[] | Proof that left orders were created by the left makers. | -`rightSignatures` | string[] | Proof that right orders were created by the right makers. | -`txData?` | `Partial` | Additional data for transaction | -`pollingIntervalMs?` | undefined \| number | Interval at which to poll for success | -`timeoutMs?` | undefined \| number | - | - -**Returns:** *`PromiseWithTransactionHash`* - -A promise that resolves when the transaction is successful - -#### callAsync - -▸ **callAsync**(`leftOrders`: `Array`, `rightOrders`: `Array`, `leftSignatures`: string[], `rightSignatures`: string[], `callData`: `Partial`, `defaultBlock?`: [BlockParam](#blockparam)): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:3053](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L3053)* - -Sends a read-only call to the contract method. Returns the result that would happen if one were to send an -Ethereum transaction to this method, given the current state of the blockchain. Calls do not cost gas -since they don't modify state. - -**Parameters:** - -Name | Type | Default | Description | ------- | ------ | ------ | ------ | -`leftOrders` | `Array` | - | Set of orders with the same maker / taker asset. | -`rightOrders` | `Array` | - | Set of orders to match against `leftOrders` | -`leftSignatures` | string[] | - | Proof that left orders were created by the left makers. | -`rightSignatures` | string[] | - | Proof that right orders were created by the right makers. | -`callData` | `Partial` | {} | - | -`defaultBlock?` | [BlockParam](#blockparam) | - | - | - -**Returns:** *`Promise`* - -batchMatchedFillResults Amounts filled and profit generated. - -#### estimateGasAsync - -▸ **estimateGasAsync**(`leftOrders`: `Array`, `rightOrders`: `Array`, `leftSignatures`: string[], `rightSignatures`: string[], `txData?`: `Partial` | undefined): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:2927](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L2927)* - -Estimates the gas cost of sending an Ethereum transaction calling this method with these arguments. - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`leftOrders` | `Array` | Set of orders with the same maker / taker asset. | -`rightOrders` | `Array` | Set of orders to match against `leftOrders` | -`leftSignatures` | string[] | Proof that left orders were created by the left makers. | -`rightSignatures` | string[] | Proof that right orders were created by the right makers. | -`txData?` | `Partial` \| undefined | Additional data for transaction | - -**Returns:** *`Promise`* - -The hash of the transaction - -#### getABIDecodedReturnData - -▸ **getABIDecodedReturnData**(`returnData`: string): *object* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:3281](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L3281)* - -Decode the ABI-encoded return data from a transaction - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`returnData` | string | the data returned after transaction execution | - -**Returns:** *object* - -An array representing the output results in order. Keynames of nested structs are preserved. - -#### getABIDecodedTransactionData - -▸ **getABIDecodedTransactionData**(`callData`: string): *`Array`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:3233](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L3233)* - -Decode the ABI-encoded transaction data into its input arguments - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`callData` | string | The ABI-encoded transaction data | - -**Returns:** *`Array`* - -An array representing the input arguments in order. Keynames of nested structs are preserved. - -#### getABIEncodedTransactionData - -▸ **getABIEncodedTransactionData**(`leftOrders`: `Array`, `rightOrders`: `Array`, `leftSignatures`: string[], `rightSignatures`: string[]): *string* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:3181](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L3181)* - -Returns the ABI encoded transaction data needed to send an Ethereum transaction calling this method. Before -sending the Ethereum tx, this encoded tx data can first be sent to a separate signing service or can be used -to create a 0x transaction (see protocol spec for more details). - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`leftOrders` | `Array` | Set of orders with the same maker / taker asset. | -`rightOrders` | `Array` | Set of orders to match against `leftOrders` | -`leftSignatures` | string[] | Proof that left orders were created by the left makers. | -`rightSignatures` | string[] | Proof that right orders were created by the right makers. | - -**Returns:** *string* - -The ABI encoded transaction data as a string - -#### sendTransactionAsync - -▸ **sendTransactionAsync**(`leftOrders`: `Array`, `rightOrders`: `Array`, `leftSignatures`: string[], `rightSignatures`: string[], `txData?`: `Partial` | undefined): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:2779](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L2779)* - -Sends an Ethereum transaction executing this method with the supplied parameters. This is a read/write -Ethereum operation and will cost gas. - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`leftOrders` | `Array` | Set of orders with the same maker / taker asset. | -`rightOrders` | `Array` | Set of orders to match against `leftOrders` | -`leftSignatures` | string[] | Proof that left orders were created by the left makers. | -`rightSignatures` | string[] | Proof that right orders were created by the right makers. | -`txData?` | `Partial` \| undefined | Additional data for transaction | - -**Returns:** *`Promise`* - -The hash of the transaction - -#### validateAndSendTransactionAsync - -▸ **validateAndSendTransactionAsync**(`leftOrders`: `Array`, `rightOrders`: `Array`, `leftSignatures`: string[], `rightSignatures`: string[], `txData?`: `Partial` | undefined): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:2988](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L2988)* - -**Parameters:** - -Name | Type | ------- | ------ | -`leftOrders` | `Array` | -`rightOrders` | `Array` | -`leftSignatures` | string[] | -`rightSignatures` | string[] | -`txData?` | `Partial` \| undefined | - -**Returns:** *`Promise`* - -___ - -### cancelOrder - -#### ▪ **cancelOrder**: *object* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:3330](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L3330)* - -After calling, the order can not be filled anymore. - -#### awaitTransactionSuccessAsync - -▸ **awaitTransactionSuccessAsync**(`order`: object, `txData?`: `Partial`, `pollingIntervalMs?`: undefined | number, `timeoutMs?`: undefined | number): *`PromiseWithTransactionHash`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:3385](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L3385)* - -Sends an Ethereum transaction and waits until the transaction has been successfully mined without reverting. -If the transaction was mined, but reverted, an error is thrown. - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`order` | object | Order struct containing order specifications. | -`txData?` | `Partial` | Additional data for transaction | -`pollingIntervalMs?` | undefined \| number | Interval at which to poll for success | -`timeoutMs?` | undefined \| number | - | - -**Returns:** *`PromiseWithTransactionHash`* - -A promise that resolves when the transaction is successful - -#### callAsync - -▸ **callAsync**(`order`: object, `callData`: `Partial`, `defaultBlock?`: [BlockParam](#blockparam)): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:3494](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L3494)* - -Sends a read-only call to the contract method. Returns the result that would happen if one were to send an -Ethereum transaction to this method, given the current state of the blockchain. Calls do not cost gas -since they don't modify state. - -**Parameters:** - -Name | Type | Default | Description | ------- | ------ | ------ | ------ | -`order` | object | - | Order struct containing order specifications. | -`callData` | `Partial` | {} | - | -`defaultBlock?` | [BlockParam](#blockparam) | - | - | - -**Returns:** *`Promise`* - -#### estimateGasAsync - -▸ **estimateGasAsync**(`order`: object, `txData?`: `Partial` | undefined): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:3426](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L3426)* - -Estimates the gas cost of sending an Ethereum transaction calling this method with these arguments. - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`order` | object | Order struct containing order specifications. | -`txData?` | `Partial` \| undefined | Additional data for transaction | - -**Returns:** *`Promise`* - -The hash of the transaction - -#### getABIDecodedReturnData - -▸ **getABIDecodedReturnData**(`returnData`: string): *void* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:3641](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L3641)* - -Decode the ABI-encoded return data from a transaction - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`returnData` | string | the data returned after transaction execution | - -**Returns:** *void* - -An array representing the output results in order. Keynames of nested structs are preserved. - -#### getABIDecodedTransactionData - -▸ **getABIDecodedTransactionData**(`callData`: string): *[object]* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:3589](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L3589)* - -Decode the ABI-encoded transaction data into its input arguments - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`callData` | string | The ABI-encoded transaction data | - -**Returns:** *[object]* - -An array representing the input arguments in order. Keynames of nested structs are preserved. - -#### getABIEncodedTransactionData - -▸ **getABIEncodedTransactionData**(`order`: object): *string* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:3561](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L3561)* - -Returns the ABI encoded transaction data needed to send an Ethereum transaction calling this method. Before -sending the Ethereum tx, this encoded tx data can first be sent to a separate signing service or can be used -to create a 0x transaction (see protocol spec for more details). - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`order` | object | Order struct containing order specifications. | - -**Returns:** *string* - -The ABI encoded transaction data as a string - -#### sendTransactionAsync - -▸ **sendTransactionAsync**(`order`: object, `txData?`: `Partial` | undefined): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:3338](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L3338)* - -Sends an Ethereum transaction executing this method with the supplied parameters. This is a read/write -Ethereum operation and will cost gas. - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`order` | object | Order struct containing order specifications. | -`txData?` | `Partial` \| undefined | Additional data for transaction | - -**Returns:** *`Promise`* - -The hash of the transaction - -#### validateAndSendTransactionAsync - -▸ **validateAndSendTransactionAsync**(`order`: object, `txData?`: `Partial` | undefined): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:3465](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L3465)* - -**Parameters:** - -Name | Type | ------- | ------ | -`order` | object | -`txData?` | `Partial` \| undefined | - -**Returns:** *`Promise`* - -___ - -### cancelOrdersUpTo - -#### ▪ **cancelOrdersUpTo**: *object* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:3655](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L3655)* - -Cancels all orders created by makerAddress with a salt less than or equal to the targetOrderEpoch -and senderAddress equal to msg.sender (or null address if msg.sender == makerAddress). - -#### awaitTransactionSuccessAsync - -▸ **awaitTransactionSuccessAsync**(`targetOrderEpoch`: `BigNumber`, `txData?`: `Partial`, `pollingIntervalMs?`: undefined | number, `timeoutMs?`: undefined | number): *`PromiseWithTransactionHash`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:3692](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L3692)* - -Sends an Ethereum transaction and waits until the transaction has been successfully mined without reverting. -If the transaction was mined, but reverted, an error is thrown. - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`targetOrderEpoch` | `BigNumber` | Orders created with a salt less or equal to this value will be cancelled. | -`txData?` | `Partial` | Additional data for transaction | -`pollingIntervalMs?` | undefined \| number | Interval at which to poll for success | -`timeoutMs?` | undefined \| number | - | - -**Returns:** *`PromiseWithTransactionHash`* - -A promise that resolves when the transaction is successful - -#### callAsync - -▸ **callAsync**(`targetOrderEpoch`: `BigNumber`, `callData`: `Partial`, `defaultBlock?`: [BlockParam](#blockparam)): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:3754](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L3754)* - -Sends a read-only call to the contract method. Returns the result that would happen if one were to send an -Ethereum transaction to this method, given the current state of the blockchain. Calls do not cost gas -since they don't modify state. - -**Parameters:** - -Name | Type | Default | Description | ------- | ------ | ------ | ------ | -`targetOrderEpoch` | `BigNumber` | - | Orders created with a salt less or equal to this value will be cancelled. | -`callData` | `Partial` | {} | - | -`defaultBlock?` | [BlockParam](#blockparam) | - | - | - -**Returns:** *`Promise`* - -#### estimateGasAsync - -▸ **estimateGasAsync**(`targetOrderEpoch`: `BigNumber`, `txData?`: `Partial` | undefined): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:3720](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L3720)* - -Estimates the gas cost of sending an Ethereum transaction calling this method with these arguments. - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`targetOrderEpoch` | `BigNumber` | Orders created with a salt less or equal to this value will be cancelled. | -`txData?` | `Partial` \| undefined | Additional data for transaction | - -**Returns:** *`Promise`* - -The hash of the transaction - -#### getABIDecodedReturnData - -▸ **getABIDecodedReturnData**(`returnData`: string): *void* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:3828](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L3828)* - -Decode the ABI-encoded return data from a transaction - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`returnData` | string | the data returned after transaction execution | - -**Returns:** *void* - -An array representing the output results in order. Keynames of nested structs are preserved. - -#### getABIDecodedTransactionData - -▸ **getABIDecodedTransactionData**(`callData`: string): *[`BigNumber`]* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:3816](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L3816)* - -Decode the ABI-encoded transaction data into its input arguments - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`callData` | string | The ABI-encoded transaction data | - -**Returns:** *[`BigNumber`]* - -An array representing the input arguments in order. Keynames of nested structs are preserved. - -#### getABIEncodedTransactionData - -▸ **getABIEncodedTransactionData**(`targetOrderEpoch`: `BigNumber`): *string* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:3803](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L3803)* - -Returns the ABI encoded transaction data needed to send an Ethereum transaction calling this method. Before -sending the Ethereum tx, this encoded tx data can first be sent to a separate signing service or can be used -to create a 0x transaction (see protocol spec for more details). - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`targetOrderEpoch` | `BigNumber` | Orders created with a salt less or equal to this value will be cancelled. | - -**Returns:** *string* - -The ABI encoded transaction data as a string - -#### sendTransactionAsync - -▸ **sendTransactionAsync**(`targetOrderEpoch`: `BigNumber`, `txData?`: `Partial` | undefined): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:3664](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L3664)* - -Sends an Ethereum transaction executing this method with the supplied parameters. This is a read/write -Ethereum operation and will cost gas. - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`targetOrderEpoch` | `BigNumber` | Orders created with a salt less or equal to this value will be cancelled. | -`txData?` | `Partial` \| undefined | Additional data for transaction | - -**Returns:** *`Promise`* - -The hash of the transaction - -#### validateAndSendTransactionAsync - -▸ **validateAndSendTransactionAsync**(`targetOrderEpoch`: `BigNumber`, `txData?`: `Partial` | undefined): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:3739](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L3739)* - -**Parameters:** - -Name | Type | ------- | ------ | -`targetOrderEpoch` | `BigNumber` | -`txData?` | `Partial` \| undefined | - -**Returns:** *`Promise`* - -___ - -### cancelled - -#### ▪ **cancelled**: *object* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:3836](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L3836)* - -#### callAsync - -▸ **callAsync**(`index_0`: string, `callData`: `Partial`, `defaultBlock?`: [BlockParam](#blockparam)): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:3842](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L3842)* - -Sends a read-only call to the contract method. Returns the result that would happen if one were to send an -Ethereum transaction to this method, given the current state of the blockchain. Calls do not cost gas -since they don't modify state. - -**Parameters:** - -Name | Type | Default | ------- | ------ | ------ | -`index_0` | string | - | -`callData` | `Partial` | {} | -`defaultBlock?` | [BlockParam](#blockparam) | - | - -**Returns:** *`Promise`* - -#### getABIDecodedReturnData - -▸ **getABIDecodedReturnData**(`returnData`: string): *boolean* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:3912](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L3912)* - -Decode the ABI-encoded return data from a transaction - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`returnData` | string | the data returned after transaction execution | - -**Returns:** *boolean* - -An array representing the output results in order. Keynames of nested structs are preserved. - -#### getABIDecodedTransactionData - -▸ **getABIDecodedTransactionData**(`callData`: string): *string* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:3900](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L3900)* - -Decode the ABI-encoded transaction data into its input arguments - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`callData` | string | The ABI-encoded transaction data | - -**Returns:** *string* - -An array representing the input arguments in order. Keynames of nested structs are preserved. - -#### getABIEncodedTransactionData - -▸ **getABIEncodedTransactionData**(`index_0`: string): *string* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:3889](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L3889)* - -Returns the ABI encoded transaction data needed to send an Ethereum transaction calling this method. Before -sending the Ethereum tx, this encoded tx data can first be sent to a separate signing service or can be used -to create a 0x transaction (see protocol spec for more details). - -**Parameters:** - -Name | Type | ------- | ------ | -`index_0` | string | - -**Returns:** *string* - -The ABI encoded transaction data as a string - -___ - -### currentContextAddress - -#### ▪ **currentContextAddress**: *object* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:3920](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L3920)* - -#### callAsync - -▸ **callAsync**(`callData`: `Partial`, `defaultBlock?`: [BlockParam](#blockparam)): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:3926](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L3926)* - -Sends a read-only call to the contract method. Returns the result that would happen if one were to send an -Ethereum transaction to this method, given the current state of the blockchain. Calls do not cost gas -since they don't modify state. - -**Parameters:** - -Name | Type | Default | ------- | ------ | ------ | -`callData` | `Partial` | {} | -`defaultBlock?` | [BlockParam](#blockparam) | - | - -**Returns:** *`Promise`* - -#### getABIDecodedReturnData - -▸ **getABIDecodedReturnData**(`returnData`: string): *string* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:3990](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L3990)* - -Decode the ABI-encoded return data from a transaction - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`returnData` | string | the data returned after transaction execution | - -**Returns:** *string* - -An array representing the output results in order. Keynames of nested structs are preserved. - -#### getABIDecodedTransactionData - -▸ **getABIDecodedTransactionData**(`callData`: string): *void* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:3978](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L3978)* - -Decode the ABI-encoded transaction data into its input arguments - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`callData` | string | The ABI-encoded transaction data | - -**Returns:** *void* - -An array representing the input arguments in order. Keynames of nested structs are preserved. - -#### getABIEncodedTransactionData - -▸ **getABIEncodedTransactionData**(): *string* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:3968](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L3968)* - -Returns the ABI encoded transaction data needed to send an Ethereum transaction calling this method. Before -sending the Ethereum tx, this encoded tx data can first be sent to a separate signing service or can be used -to create a 0x transaction (see protocol spec for more details). - -**Returns:** *string* - -The ABI encoded transaction data as a string - -___ - -### executeTransaction - -#### ▪ **executeTransaction**: *object* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:4001](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L4001)* - -Executes an Exchange method call in the context of signer. - -#### awaitTransactionSuccessAsync - -▸ **awaitTransactionSuccessAsync**(`transaction`: object, `signature`: string, `txData?`: `Partial`, `pollingIntervalMs?`: undefined | number, `timeoutMs?`: undefined | number): *`PromiseWithTransactionHash`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:4051](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L4051)* - -Sends an Ethereum transaction and waits until the transaction has been successfully mined without reverting. -If the transaction was mined, but reverted, an error is thrown. - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`transaction` | object | 0x transaction structure. | -`signature` | string | Proof that transaction has been signed by signer. | -`txData?` | `Partial` | Additional data for transaction | -`pollingIntervalMs?` | undefined \| number | Interval at which to poll for success | -`timeoutMs?` | undefined \| number | - | - -**Returns:** *`PromiseWithTransactionHash`* - -A promise that resolves when the transaction is successful - -#### callAsync - -▸ **callAsync**(`transaction`: object, `signature`: string, `callData`: `Partial`, `defaultBlock?`: [BlockParam](#blockparam)): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:4141](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L4141)* - -Sends a read-only call to the contract method. Returns the result that would happen if one were to send an -Ethereum transaction to this method, given the current state of the blockchain. Calls do not cost gas -since they don't modify state. - -**Parameters:** - -Name | Type | Default | Description | ------- | ------ | ------ | ------ | -`transaction` | object | - | 0x transaction structure. | -`signature` | string | - | Proof that transaction has been signed by signer. | -`callData` | `Partial` | {} | - | -`defaultBlock?` | [BlockParam](#blockparam) | - | - | - -**Returns:** *`Promise`* - -ABI encoded return data of the underlying Exchange function call. - -#### estimateGasAsync - -▸ **estimateGasAsync**(`transaction`: object, `signature`: string, `txData?`: `Partial` | undefined): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:4086](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L4086)* - -Estimates the gas cost of sending an Ethereum transaction calling this method with these arguments. - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`transaction` | object | 0x transaction structure. | -`signature` | string | Proof that transaction has been signed by signer. | -`txData?` | `Partial` \| undefined | Additional data for transaction | - -**Returns:** *`Promise`* - -The hash of the transaction - -#### getABIDecodedReturnData - -▸ **getABIDecodedReturnData**(`returnData`: string): *string* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:4253](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L4253)* - -Decode the ABI-encoded return data from a transaction - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`returnData` | string | the data returned after transaction execution | - -**Returns:** *string* - -An array representing the output results in order. Keynames of nested structs are preserved. - -#### getABIDecodedTransactionData - -▸ **getABIDecodedTransactionData**(`callData`: string): *object* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:4225](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L4225)* - -Decode the ABI-encoded transaction data into its input arguments - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`callData` | string | The ABI-encoded transaction data | - -**Returns:** *object* - -An array representing the input arguments in order. Keynames of nested structs are preserved. - -#### getABIEncodedTransactionData - -▸ **getABIEncodedTransactionData**(`transaction`: object, `signature`: string): *string* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:4202](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L4202)* - -Returns the ABI encoded transaction data needed to send an Ethereum transaction calling this method. Before -sending the Ethereum tx, this encoded tx data can first be sent to a separate signing service or can be used -to create a 0x transaction (see protocol spec for more details). - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`transaction` | object | 0x transaction structure. | -`signature` | string | Proof that transaction has been signed by signer. | - -**Returns:** *string* - -The ABI encoded transaction data as a string - -#### sendTransactionAsync - -▸ **sendTransactionAsync**(`transaction`: object, `signature`: string, `txData?`: `Partial` | undefined): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:4010](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L4010)* - -Sends an Ethereum transaction executing this method with the supplied parameters. This is a read/write -Ethereum operation and will cost gas. - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`transaction` | object | 0x transaction structure. | -`signature` | string | Proof that transaction has been signed by signer. | -`txData?` | `Partial` \| undefined | Additional data for transaction | - -**Returns:** *`Promise`* - -The hash of the transaction - -#### validateAndSendTransactionAsync - -▸ **validateAndSendTransactionAsync**(`transaction`: object, `signature`: string, `txData?`: `Partial` | undefined): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:4118](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L4118)* - -**Parameters:** - -Name | Type | ------- | ------ | -`transaction` | object | -`signature` | string | -`txData?` | `Partial` \| undefined | - -**Returns:** *`Promise`* - -___ - -### fillOrKillOrder - -#### ▪ **fillOrKillOrder**: *object* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:4266](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L4266)* - -Fills the input order. Reverts if exact takerAssetFillAmount not filled. - -#### awaitTransactionSuccessAsync - -▸ **awaitTransactionSuccessAsync**(`order`: object, `takerAssetFillAmount`: `BigNumber`, `signature`: string, `txData?`: `Partial`, `pollingIntervalMs?`: undefined | number, `timeoutMs?`: undefined | number): *`PromiseWithTransactionHash`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:4329](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L4329)* - -Sends an Ethereum transaction and waits until the transaction has been successfully mined without reverting. -If the transaction was mined, but reverted, an error is thrown. - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`order` | object | Order struct containing order specifications. | -`takerAssetFillAmount` | `BigNumber` | Desired amount of takerAsset to sell. | -`signature` | string | Proof that order has been created by maker. | -`txData?` | `Partial` | Additional data for transaction | -`pollingIntervalMs?` | undefined \| number | Interval at which to poll for success | -`timeoutMs?` | undefined \| number | - | - -**Returns:** *`PromiseWithTransactionHash`* - -A promise that resolves when the transaction is successful - -#### callAsync - -▸ **callAsync**(`order`: object, `takerAssetFillAmount`: `BigNumber`, `signature`: string, `callData`: `Partial`, `defaultBlock?`: [BlockParam](#blockparam)): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:4462](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L4462)* - -Sends a read-only call to the contract method. Returns the result that would happen if one were to send an -Ethereum transaction to this method, given the current state of the blockchain. Calls do not cost gas -since they don't modify state. - -**Parameters:** - -Name | Type | Default | Description | ------- | ------ | ------ | ------ | -`order` | object | - | Order struct containing order specifications. | -`takerAssetFillAmount` | `BigNumber` | - | Desired amount of takerAsset to sell. | -`signature` | string | - | Proof that order has been created by maker. | -`callData` | `Partial` | {} | - | -`defaultBlock?` | [BlockParam](#blockparam) | - | - | - -**Returns:** *`Promise`* - -#### estimateGasAsync - -▸ **estimateGasAsync**(`order`: object, `takerAssetFillAmount`: `BigNumber`, `signature`: string, `txData?`: `Partial` | undefined): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:4381](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L4381)* - -Estimates the gas cost of sending an Ethereum transaction calling this method with these arguments. - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`order` | object | Order struct containing order specifications. | -`takerAssetFillAmount` | `BigNumber` | Desired amount of takerAsset to sell. | -`signature` | string | Proof that order has been created by maker. | -`txData?` | `Partial` \| undefined | Additional data for transaction | - -**Returns:** *`Promise`* - -The hash of the transaction - -#### getABIDecodedReturnData - -▸ **getABIDecodedReturnData**(`returnData`: string): *object* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:4627](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L4627)* - -Decode the ABI-encoded return data from a transaction - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`returnData` | string | the data returned after transaction execution | - -**Returns:** *object* - -An array representing the output results in order. Keynames of nested structs are preserved. - -#### getABIDecodedTransactionData - -▸ **getABIDecodedTransactionData**(`callData`: string): *object* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:4581](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L4581)* - -Decode the ABI-encoded transaction data into its input arguments - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`callData` | string | The ABI-encoded transaction data | - -**Returns:** *object* - -An array representing the input arguments in order. Keynames of nested structs are preserved. - -#### getABIEncodedTransactionData - -▸ **getABIEncodedTransactionData**(`order`: object, `takerAssetFillAmount`: `BigNumber`, `signature`: string): *string* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:4547](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L4547)* - -Returns the ABI encoded transaction data needed to send an Ethereum transaction calling this method. Before -sending the Ethereum tx, this encoded tx data can first be sent to a separate signing service or can be used -to create a 0x transaction (see protocol spec for more details). - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`order` | object | Order struct containing order specifications. | -`takerAssetFillAmount` | `BigNumber` | Desired amount of takerAsset to sell. | -`signature` | string | Proof that order has been created by maker. | - -**Returns:** *string* - -The ABI encoded transaction data as a string - -#### sendTransactionAsync - -▸ **sendTransactionAsync**(`order`: object, `takerAssetFillAmount`: `BigNumber`, `signature`: string, `txData?`: `Partial` | undefined): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:4276](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L4276)* - -Sends an Ethereum transaction executing this method with the supplied parameters. This is a read/write -Ethereum operation and will cost gas. - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`order` | object | Order struct containing order specifications. | -`takerAssetFillAmount` | `BigNumber` | Desired amount of takerAsset to sell. | -`signature` | string | Proof that order has been created by maker. | -`txData?` | `Partial` \| undefined | Additional data for transaction | - -**Returns:** *`Promise`* - -The hash of the transaction - -#### validateAndSendTransactionAsync - -▸ **validateAndSendTransactionAsync**(`order`: object, `takerAssetFillAmount`: `BigNumber`, `signature`: string, `txData?`: `Partial` | undefined): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:4424](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L4424)* - -**Parameters:** - -Name | Type | ------- | ------ | -`order` | object | -`takerAssetFillAmount` | `BigNumber` | -`signature` | string | -`txData?` | `Partial` \| undefined | - -**Returns:** *`Promise`* - -___ - -### fillOrder - -#### ▪ **fillOrder**: *object* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:4654](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L4654)* - -Fills the input order. - -#### awaitTransactionSuccessAsync - -▸ **awaitTransactionSuccessAsync**(`order`: object, `takerAssetFillAmount`: `BigNumber`, `signature`: string, `txData?`: `Partial`, `pollingIntervalMs?`: undefined | number, `timeoutMs?`: undefined | number): *`PromiseWithTransactionHash`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:4717](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L4717)* - -Sends an Ethereum transaction and waits until the transaction has been successfully mined without reverting. -If the transaction was mined, but reverted, an error is thrown. - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`order` | object | Order struct containing order specifications. | -`takerAssetFillAmount` | `BigNumber` | Desired amount of takerAsset to sell. | -`signature` | string | Proof that order has been created by maker. | -`txData?` | `Partial` | Additional data for transaction | -`pollingIntervalMs?` | undefined \| number | Interval at which to poll for success | -`timeoutMs?` | undefined \| number | - | - -**Returns:** *`PromiseWithTransactionHash`* - -A promise that resolves when the transaction is successful - -#### callAsync - -▸ **callAsync**(`order`: object, `takerAssetFillAmount`: `BigNumber`, `signature`: string, `callData`: `Partial`, `defaultBlock?`: [BlockParam](#blockparam)): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:4846](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L4846)* - -Sends a read-only call to the contract method. Returns the result that would happen if one were to send an -Ethereum transaction to this method, given the current state of the blockchain. Calls do not cost gas -since they don't modify state. - -**Parameters:** - -Name | Type | Default | Description | ------- | ------ | ------ | ------ | -`order` | object | - | Order struct containing order specifications. | -`takerAssetFillAmount` | `BigNumber` | - | Desired amount of takerAsset to sell. | -`signature` | string | - | Proof that order has been created by maker. | -`callData` | `Partial` | {} | - | -`defaultBlock?` | [BlockParam](#blockparam) | - | - | - -**Returns:** *`Promise`* - -Amounts filled and fees paid by maker and taker. - -#### estimateGasAsync - -▸ **estimateGasAsync**(`order`: object, `takerAssetFillAmount`: `BigNumber`, `signature`: string, `txData?`: `Partial` | undefined): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:4764](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L4764)* - -Estimates the gas cost of sending an Ethereum transaction calling this method with these arguments. - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`order` | object | Order struct containing order specifications. | -`takerAssetFillAmount` | `BigNumber` | Desired amount of takerAsset to sell. | -`signature` | string | Proof that order has been created by maker. | -`txData?` | `Partial` \| undefined | Additional data for transaction | - -**Returns:** *`Promise`* - -The hash of the transaction - -#### getABIDecodedReturnData - -▸ **getABIDecodedReturnData**(`returnData`: string): *object* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:5011](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L5011)* - -Decode the ABI-encoded return data from a transaction - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`returnData` | string | the data returned after transaction execution | - -**Returns:** *object* - -An array representing the output results in order. Keynames of nested structs are preserved. - -#### getABIDecodedTransactionData - -▸ **getABIDecodedTransactionData**(`callData`: string): *object* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:4965](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L4965)* - -Decode the ABI-encoded transaction data into its input arguments - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`callData` | string | The ABI-encoded transaction data | - -**Returns:** *object* - -An array representing the input arguments in order. Keynames of nested structs are preserved. - -#### getABIEncodedTransactionData - -▸ **getABIEncodedTransactionData**(`order`: object, `takerAssetFillAmount`: `BigNumber`, `signature`: string): *string* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:4931](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L4931)* - -Returns the ABI encoded transaction data needed to send an Ethereum transaction calling this method. Before -sending the Ethereum tx, this encoded tx data can first be sent to a separate signing service or can be used -to create a 0x transaction (see protocol spec for more details). - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`order` | object | Order struct containing order specifications. | -`takerAssetFillAmount` | `BigNumber` | Desired amount of takerAsset to sell. | -`signature` | string | Proof that order has been created by maker. | - -**Returns:** *string* - -The ABI encoded transaction data as a string - -#### sendTransactionAsync - -▸ **sendTransactionAsync**(`order`: object, `takerAssetFillAmount`: `BigNumber`, `signature`: string, `txData?`: `Partial` | undefined): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:4664](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L4664)* - -Sends an Ethereum transaction executing this method with the supplied parameters. This is a read/write -Ethereum operation and will cost gas. - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`order` | object | Order struct containing order specifications. | -`takerAssetFillAmount` | `BigNumber` | Desired amount of takerAsset to sell. | -`signature` | string | Proof that order has been created by maker. | -`txData?` | `Partial` \| undefined | Additional data for transaction | - -**Returns:** *`Promise`* - -The hash of the transaction - -#### validateAndSendTransactionAsync - -▸ **validateAndSendTransactionAsync**(`order`: object, `takerAssetFillAmount`: `BigNumber`, `signature`: string, `txData?`: `Partial` | undefined): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:4807](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L4807)* - -**Parameters:** - -Name | Type | ------- | ------ | -`order` | object | -`takerAssetFillAmount` | `BigNumber` | -`signature` | string | -`txData?` | `Partial` \| undefined | - -**Returns:** *`Promise`* - -___ - -### filled - -#### ▪ **filled**: *object* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:5035](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L5035)* - -#### callAsync - -▸ **callAsync**(`index_0`: string, `callData`: `Partial`, `defaultBlock?`: [BlockParam](#blockparam)): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:5041](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L5041)* - -Sends a read-only call to the contract method. Returns the result that would happen if one were to send an -Ethereum transaction to this method, given the current state of the blockchain. Calls do not cost gas -since they don't modify state. - -**Parameters:** - -Name | Type | Default | ------- | ------ | ------ | -`index_0` | string | - | -`callData` | `Partial` | {} | -`defaultBlock?` | [BlockParam](#blockparam) | - | - -**Returns:** *`Promise`* - -#### getABIDecodedReturnData - -▸ **getABIDecodedReturnData**(`returnData`: string): *`BigNumber`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:5111](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L5111)* - -Decode the ABI-encoded return data from a transaction - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`returnData` | string | the data returned after transaction execution | - -**Returns:** *`BigNumber`* - -An array representing the output results in order. Keynames of nested structs are preserved. - -#### getABIDecodedTransactionData - -▸ **getABIDecodedTransactionData**(`callData`: string): *string* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:5099](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L5099)* - -Decode the ABI-encoded transaction data into its input arguments - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`callData` | string | The ABI-encoded transaction data | - -**Returns:** *string* - -An array representing the input arguments in order. Keynames of nested structs are preserved. - -#### getABIEncodedTransactionData - -▸ **getABIEncodedTransactionData**(`index_0`: string): *string* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:5088](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L5088)* - -Returns the ABI encoded transaction data needed to send an Ethereum transaction calling this method. Before -sending the Ethereum tx, this encoded tx data can first be sent to a separate signing service or can be used -to create a 0x transaction (see protocol spec for more details). - -**Parameters:** - -Name | Type | ------- | ------ | -`index_0` | string | - -**Returns:** *string* - -The ABI encoded transaction data as a string - -___ - -### getAssetProxy - -#### ▪ **getAssetProxy**: *object* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:5122](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L5122)* - -Gets an asset proxy. - -#### callAsync - -▸ **callAsync**(`assetProxyId`: string, `callData`: `Partial`, `defaultBlock?`: [BlockParam](#blockparam)): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:5130](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L5130)* - -Sends a read-only call to the contract method. Returns the result that would happen if one were to send an -Ethereum transaction to this method, given the current state of the blockchain. Calls do not cost gas -since they don't modify state. - -**Parameters:** - -Name | Type | Default | Description | ------- | ------ | ------ | ------ | -`assetProxyId` | string | - | Id of the asset proxy. | -`callData` | `Partial` | {} | - | -`defaultBlock?` | [BlockParam](#blockparam) | - | - | - -**Returns:** *`Promise`* - -The asset proxy registered to assetProxyId. Returns 0x0 if no proxy is registered. - -#### getABIDecodedReturnData - -▸ **getABIDecodedReturnData**(`returnData`: string): *string* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:5201](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L5201)* - -Decode the ABI-encoded return data from a transaction - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`returnData` | string | the data returned after transaction execution | - -**Returns:** *string* - -An array representing the output results in order. Keynames of nested structs are preserved. - -#### getABIDecodedTransactionData - -▸ **getABIDecodedTransactionData**(`callData`: string): *string* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:5189](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L5189)* - -Decode the ABI-encoded transaction data into its input arguments - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`callData` | string | The ABI-encoded transaction data | - -**Returns:** *string* - -An array representing the input arguments in order. Keynames of nested structs are preserved. - -#### getABIEncodedTransactionData - -▸ **getABIEncodedTransactionData**(`assetProxyId`: string): *string* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:5178](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L5178)* - -Returns the ABI encoded transaction data needed to send an Ethereum transaction calling this method. Before -sending the Ethereum tx, this encoded tx data can first be sent to a separate signing service or can be used -to create a 0x transaction (see protocol spec for more details). - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`assetProxyId` | string | Id of the asset proxy. | - -**Returns:** *string* - -The ABI encoded transaction data as a string - -___ - -### getOrderInfo - -#### ▪ **getOrderInfo**: *object* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:5212](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L5212)* - -Gets information about an order: status, hash, and amount filled. - -#### callAsync - -▸ **callAsync**(`order`: object, `callData`: `Partial`, `defaultBlock?`: [BlockParam](#blockparam)): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:5220](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L5220)* - -Sends a read-only call to the contract method. Returns the result that would happen if one were to send an -Ethereum transaction to this method, given the current state of the blockchain. Calls do not cost gas -since they don't modify state. - -**Parameters:** - -Name | Type | Default | Description | ------- | ------ | ------ | ------ | -`order` | object | - | Order to gather information on. | -`callData` | `Partial` | {} | - | -`defaultBlock?` | [BlockParam](#blockparam) | - | - | - -**Returns:** *`Promise`* - -OrderInfo Information about the order and its state. See LibOrder.OrderInfo for a complete description. - -#### getABIDecodedReturnData - -▸ **getABIDecodedReturnData**(`returnData`: string): *object* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:5365](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L5365)* - -Decode the ABI-encoded return data from a transaction - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`returnData` | string | the data returned after transaction execution | - -**Returns:** *object* - -An array representing the output results in order. Keynames of nested structs are preserved. - -#### getABIDecodedTransactionData - -▸ **getABIDecodedTransactionData**(`callData`: string): *object* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:5319](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L5319)* - -Decode the ABI-encoded transaction data into its input arguments - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`callData` | string | The ABI-encoded transaction data | - -**Returns:** *object* - -An array representing the input arguments in order. Keynames of nested structs are preserved. - -#### getABIEncodedTransactionData - -▸ **getABIEncodedTransactionData**(`order`: object): *string* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:5291](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L5291)* - -Returns the ABI encoded transaction data needed to send an Ethereum transaction calling this method. Before -sending the Ethereum tx, this encoded tx data can first be sent to a separate signing service or can be used -to create a 0x transaction (see protocol spec for more details). - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`order` | object | Order to gather information on. | - -**Returns:** *string* - -The ABI encoded transaction data as a string - -___ - -### isValidHashSignature - -#### ▪ **isValidHashSignature**: *object* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:5384](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L5384)* - -Verifies that a hash has been signed by the given signer. - -#### callAsync - -▸ **callAsync**(`hash`: string, `signerAddress`: string, `signature`: string, `callData`: `Partial`, `defaultBlock?`: [BlockParam](#blockparam)): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:5394](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L5394)* - -Sends a read-only call to the contract method. Returns the result that would happen if one were to send an -Ethereum transaction to this method, given the current state of the blockchain. Calls do not cost gas -since they don't modify state. - -**Parameters:** - -Name | Type | Default | Description | ------- | ------ | ------ | ------ | -`hash` | string | - | Any 32-byte hash. | -`signerAddress` | string | - | Address that should have signed the given hash. | -`signature` | string | - | Proof that the hash has been signed by signer. | -`callData` | `Partial` | {} | - | -`defaultBlock?` | [BlockParam](#blockparam) | - | - | - -**Returns:** *`Promise`* - -isValid `true` if the signature is valid for the given hash and signer. - -#### getABIDecodedReturnData - -▸ **getABIDecodedReturnData**(`returnData`: string): *boolean* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:5480](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L5480)* - -Decode the ABI-encoded return data from a transaction - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`returnData` | string | the data returned after transaction execution | - -**Returns:** *boolean* - -An array representing the output results in order. Keynames of nested structs are preserved. - -#### getABIDecodedTransactionData - -▸ **getABIDecodedTransactionData**(`callData`: string): *string* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:5468](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L5468)* - -Decode the ABI-encoded transaction data into its input arguments - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`callData` | string | The ABI-encoded transaction data | - -**Returns:** *string* - -An array representing the input arguments in order. Keynames of nested structs are preserved. - -#### getABIEncodedTransactionData - -▸ **getABIEncodedTransactionData**(`hash`: string, `signerAddress`: string, `signature`: string): *string* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:5452](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L5452)* - -Returns the ABI encoded transaction data needed to send an Ethereum transaction calling this method. Before -sending the Ethereum tx, this encoded tx data can first be sent to a separate signing service or can be used -to create a 0x transaction (see protocol spec for more details). - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`hash` | string | Any 32-byte hash. | -`signerAddress` | string | Address that should have signed the given hash. | -`signature` | string | Proof that the hash has been signed by signer. | - -**Returns:** *string* - -The ABI encoded transaction data as a string - -___ - -### isValidOrderSignature - -#### ▪ **isValidOrderSignature**: *object* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:5491](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L5491)* - -Verifies that a signature for an order is valid. - -#### callAsync - -▸ **callAsync**(`order`: object, `signature`: string, `callData`: `Partial`, `defaultBlock?`: [BlockParam](#blockparam)): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:5500](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L5500)* - -Sends a read-only call to the contract method. Returns the result that would happen if one were to send an -Ethereum transaction to this method, given the current state of the blockchain. Calls do not cost gas -since they don't modify state. - -**Parameters:** - -Name | Type | Default | Description | ------- | ------ | ------ | ------ | -`order` | object | - | The order. | -`signature` | string | - | Proof that the order has been signed by signer. | -`callData` | `Partial` | {} | - | -`defaultBlock?` | [BlockParam](#blockparam) | - | - | - -**Returns:** *`Promise`* - -isValid `true` if the signature is valid for the given order and signer. - -#### getABIDecodedReturnData - -▸ **getABIDecodedReturnData**(`returnData`: string): *boolean* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:5648](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L5648)* - -Decode the ABI-encoded return data from a transaction - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`returnData` | string | the data returned after transaction execution | - -**Returns:** *boolean* - -An array representing the output results in order. Keynames of nested structs are preserved. - -#### getABIDecodedTransactionData - -▸ **getABIDecodedTransactionData**(`callData`: string): *object* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:5602](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L5602)* - -Decode the ABI-encoded transaction data into its input arguments - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`callData` | string | The ABI-encoded transaction data | - -**Returns:** *object* - -An array representing the input arguments in order. Keynames of nested structs are preserved. - -#### getABIEncodedTransactionData - -▸ **getABIEncodedTransactionData**(`order`: object, `signature`: string): *string* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:5570](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L5570)* - -Returns the ABI encoded transaction data needed to send an Ethereum transaction calling this method. Before -sending the Ethereum tx, this encoded tx data can first be sent to a separate signing service or can be used -to create a 0x transaction (see protocol spec for more details). - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`order` | object | The order. | -`signature` | string | Proof that the order has been signed by signer. | - -**Returns:** *string* - -The ABI encoded transaction data as a string - -___ - -### isValidTransactionSignature - -#### ▪ **isValidTransactionSignature**: *object* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:5661](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L5661)* - -Verifies that a signature for a transaction is valid. - -#### callAsync - -▸ **callAsync**(`transaction`: object, `signature`: string, `callData`: `Partial`, `defaultBlock?`: [BlockParam](#blockparam)): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:5670](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L5670)* - -Sends a read-only call to the contract method. Returns the result that would happen if one were to send an -Ethereum transaction to this method, given the current state of the blockchain. Calls do not cost gas -since they don't modify state. - -**Parameters:** - -Name | Type | Default | Description | ------- | ------ | ------ | ------ | -`transaction` | object | - | The transaction. | -`signature` | string | - | Proof that the order has been signed by signer. | -`callData` | `Partial` | {} | - | -`defaultBlock?` | [BlockParam](#blockparam) | - | - | - -**Returns:** *`Promise`* - -isValid `true` if the signature is valid for the given transaction and signer. - -#### getABIDecodedReturnData - -▸ **getABIDecodedReturnData**(`returnData`: string): *boolean* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:5782](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L5782)* - -Decode the ABI-encoded return data from a transaction - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`returnData` | string | the data returned after transaction execution | - -**Returns:** *boolean* - -An array representing the output results in order. Keynames of nested structs are preserved. - -#### getABIDecodedTransactionData - -▸ **getABIDecodedTransactionData**(`callData`: string): *object* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:5754](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L5754)* - -Decode the ABI-encoded transaction data into its input arguments - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`callData` | string | The ABI-encoded transaction data | - -**Returns:** *object* - -An array representing the input arguments in order. Keynames of nested structs are preserved. - -#### getABIEncodedTransactionData - -▸ **getABIEncodedTransactionData**(`transaction`: object, `signature`: string): *string* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:5731](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L5731)* - -Returns the ABI encoded transaction data needed to send an Ethereum transaction calling this method. Before -sending the Ethereum tx, this encoded tx data can first be sent to a separate signing service or can be used -to create a 0x transaction (see protocol spec for more details). - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`transaction` | object | The transaction. | -`signature` | string | Proof that the order has been signed by signer. | - -**Returns:** *string* - -The ABI encoded transaction data as a string - -___ - -### marketBuyOrdersFillOrKill - -#### ▪ **marketBuyOrdersFillOrKill**: *object* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:5796](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L5796)* - -Calls marketBuyOrdersNoThrow then reverts if < makerAssetFillAmount has been bought. -NOTE: This function does not enforce that the makerAsset is the same for each order. - -#### awaitTransactionSuccessAsync - -▸ **awaitTransactionSuccessAsync**(`orders`: `Array`, `makerAssetFillAmount`: `BigNumber`, `signatures`: string[], `txData?`: `Partial`, `pollingIntervalMs?`: undefined | number, `timeoutMs?`: undefined | number): *`PromiseWithTransactionHash`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:5860](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L5860)* - -Sends an Ethereum transaction and waits until the transaction has been successfully mined without reverting. -If the transaction was mined, but reverted, an error is thrown. - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`orders` | `Array` | Array of order specifications. | -`makerAssetFillAmount` | `BigNumber` | Minimum amount of makerAsset to buy. | -`signatures` | string[] | Proofs that orders have been signed by makers. | -`txData?` | `Partial` | Additional data for transaction | -`pollingIntervalMs?` | undefined \| number | Interval at which to poll for success | -`timeoutMs?` | undefined \| number | - | - -**Returns:** *`PromiseWithTransactionHash`* - -A promise that resolves when the transaction is successful - -#### callAsync - -▸ **callAsync**(`orders`: `Array`, `makerAssetFillAmount`: `BigNumber`, `signatures`: string[], `callData`: `Partial`, `defaultBlock?`: [BlockParam](#blockparam)): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:5996](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L5996)* - -Sends a read-only call to the contract method. Returns the result that would happen if one were to send an -Ethereum transaction to this method, given the current state of the blockchain. Calls do not cost gas -since they don't modify state. - -**Parameters:** - -Name | Type | Default | Description | ------- | ------ | ------ | ------ | -`orders` | `Array` | - | Array of order specifications. | -`makerAssetFillAmount` | `BigNumber` | - | Minimum amount of makerAsset to buy. | -`signatures` | string[] | - | Proofs that orders have been signed by makers. | -`callData` | `Partial` | {} | - | -`defaultBlock?` | [BlockParam](#blockparam) | - | - | - -**Returns:** *`Promise`* - -Amounts filled and fees paid by makers and taker. - -#### estimateGasAsync - -▸ **estimateGasAsync**(`orders`: `Array`, `makerAssetFillAmount`: `BigNumber`, `signatures`: string[], `txData?`: `Partial` | undefined): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:5913](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L5913)* - -Estimates the gas cost of sending an Ethereum transaction calling this method with these arguments. - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`orders` | `Array` | Array of order specifications. | -`makerAssetFillAmount` | `BigNumber` | Minimum amount of makerAsset to buy. | -`signatures` | string[] | Proofs that orders have been signed by makers. | -`txData?` | `Partial` \| undefined | Additional data for transaction | - -**Returns:** *`Promise`* - -The hash of the transaction - -#### getABIDecodedReturnData - -▸ **getABIDecodedReturnData**(`returnData`: string): *object* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:6165](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L6165)* - -Decode the ABI-encoded return data from a transaction - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`returnData` | string | the data returned after transaction execution | - -**Returns:** *object* - -An array representing the output results in order. Keynames of nested structs are preserved. - -#### getABIDecodedTransactionData - -▸ **getABIDecodedTransactionData**(`callData`: string): *`Array`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:6117](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L6117)* - -Decode the ABI-encoded transaction data into its input arguments - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`callData` | string | The ABI-encoded transaction data | - -**Returns:** *`Array`* - -An array representing the input arguments in order. Keynames of nested structs are preserved. - -#### getABIEncodedTransactionData - -▸ **getABIEncodedTransactionData**(`orders`: `Array`, `makerAssetFillAmount`: `BigNumber`, `signatures`: string[]): *string* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:6082](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L6082)* - -Returns the ABI encoded transaction data needed to send an Ethereum transaction calling this method. Before -sending the Ethereum tx, this encoded tx data can first be sent to a separate signing service or can be used -to create a 0x transaction (see protocol spec for more details). - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`orders` | `Array` | Array of order specifications. | -`makerAssetFillAmount` | `BigNumber` | Minimum amount of makerAsset to buy. | -`signatures` | string[] | Proofs that orders have been signed by makers. | - -**Returns:** *string* - -The ABI encoded transaction data as a string - -#### sendTransactionAsync - -▸ **sendTransactionAsync**(`orders`: `Array`, `makerAssetFillAmount`: `BigNumber`, `signatures`: string[], `txData?`: `Partial` | undefined): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:5806](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L5806)* - -Sends an Ethereum transaction executing this method with the supplied parameters. This is a read/write -Ethereum operation and will cost gas. - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`orders` | `Array` | Array of order specifications. | -`makerAssetFillAmount` | `BigNumber` | Minimum amount of makerAsset to buy. | -`signatures` | string[] | Proofs that orders have been signed by makers. | -`txData?` | `Partial` \| undefined | Additional data for transaction | - -**Returns:** *`Promise`* - -The hash of the transaction - -#### validateAndSendTransactionAsync - -▸ **validateAndSendTransactionAsync**(`orders`: `Array`, `makerAssetFillAmount`: `BigNumber`, `signatures`: string[], `txData?`: `Partial` | undefined): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:5957](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L5957)* - -**Parameters:** - -Name | Type | ------- | ------ | -`orders` | `Array` | -`makerAssetFillAmount` | `BigNumber` | -`signatures` | string[] | -`txData?` | `Partial` \| undefined | - -**Returns:** *`Promise`* - -___ - -### marketBuyOrdersNoThrow - -#### ▪ **marketBuyOrdersNoThrow**: *object* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:6194](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L6194)* - -Executes multiple calls of fillOrder until total amount of makerAsset is bought by taker. -If any fill reverts, the error is caught and ignored. -NOTE: This function does not enforce that the makerAsset is the same for each order. - -#### awaitTransactionSuccessAsync - -▸ **awaitTransactionSuccessAsync**(`orders`: `Array`, `makerAssetFillAmount`: `BigNumber`, `signatures`: string[], `txData?`: `Partial`, `pollingIntervalMs?`: undefined | number, `timeoutMs?`: undefined | number): *`PromiseWithTransactionHash`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:6258](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L6258)* - -Sends an Ethereum transaction and waits until the transaction has been successfully mined without reverting. -If the transaction was mined, but reverted, an error is thrown. - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`orders` | `Array` | Array of order specifications. | -`makerAssetFillAmount` | `BigNumber` | Desired amount of makerAsset to buy. | -`signatures` | string[] | Proofs that orders have been signed by makers. | -`txData?` | `Partial` | Additional data for transaction | -`pollingIntervalMs?` | undefined \| number | Interval at which to poll for success | -`timeoutMs?` | undefined \| number | - | - -**Returns:** *`PromiseWithTransactionHash`* - -A promise that resolves when the transaction is successful - -#### callAsync - -▸ **callAsync**(`orders`: `Array`, `makerAssetFillAmount`: `BigNumber`, `signatures`: string[], `callData`: `Partial`, `defaultBlock?`: [BlockParam](#blockparam)): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:6394](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L6394)* - -Sends a read-only call to the contract method. Returns the result that would happen if one were to send an -Ethereum transaction to this method, given the current state of the blockchain. Calls do not cost gas -since they don't modify state. - -**Parameters:** - -Name | Type | Default | Description | ------- | ------ | ------ | ------ | -`orders` | `Array` | - | Array of order specifications. | -`makerAssetFillAmount` | `BigNumber` | - | Desired amount of makerAsset to buy. | -`signatures` | string[] | - | Proofs that orders have been signed by makers. | -`callData` | `Partial` | {} | - | -`defaultBlock?` | [BlockParam](#blockparam) | - | - | - -**Returns:** *`Promise`* - -Amounts filled and fees paid by makers and taker. - -#### estimateGasAsync - -▸ **estimateGasAsync**(`orders`: `Array`, `makerAssetFillAmount`: `BigNumber`, `signatures`: string[], `txData?`: `Partial` | undefined): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:6311](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L6311)* - -Estimates the gas cost of sending an Ethereum transaction calling this method with these arguments. - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`orders` | `Array` | Array of order specifications. | -`makerAssetFillAmount` | `BigNumber` | Desired amount of makerAsset to buy. | -`signatures` | string[] | Proofs that orders have been signed by makers. | -`txData?` | `Partial` \| undefined | Additional data for transaction | - -**Returns:** *`Promise`* - -The hash of the transaction - -#### getABIDecodedReturnData - -▸ **getABIDecodedReturnData**(`returnData`: string): *object* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:6563](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L6563)* - -Decode the ABI-encoded return data from a transaction - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`returnData` | string | the data returned after transaction execution | - -**Returns:** *object* - -An array representing the output results in order. Keynames of nested structs are preserved. - -#### getABIDecodedTransactionData - -▸ **getABIDecodedTransactionData**(`callData`: string): *`Array`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:6515](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L6515)* - -Decode the ABI-encoded transaction data into its input arguments - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`callData` | string | The ABI-encoded transaction data | - -**Returns:** *`Array`* - -An array representing the input arguments in order. Keynames of nested structs are preserved. - -#### getABIEncodedTransactionData - -▸ **getABIEncodedTransactionData**(`orders`: `Array`, `makerAssetFillAmount`: `BigNumber`, `signatures`: string[]): *string* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:6480](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L6480)* - -Returns the ABI encoded transaction data needed to send an Ethereum transaction calling this method. Before -sending the Ethereum tx, this encoded tx data can first be sent to a separate signing service or can be used -to create a 0x transaction (see protocol spec for more details). - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`orders` | `Array` | Array of order specifications. | -`makerAssetFillAmount` | `BigNumber` | Desired amount of makerAsset to buy. | -`signatures` | string[] | Proofs that orders have been signed by makers. | - -**Returns:** *string* - -The ABI encoded transaction data as a string - -#### sendTransactionAsync - -▸ **sendTransactionAsync**(`orders`: `Array`, `makerAssetFillAmount`: `BigNumber`, `signatures`: string[], `txData?`: `Partial` | undefined): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:6204](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L6204)* - -Sends an Ethereum transaction executing this method with the supplied parameters. This is a read/write -Ethereum operation and will cost gas. - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`orders` | `Array` | Array of order specifications. | -`makerAssetFillAmount` | `BigNumber` | Desired amount of makerAsset to buy. | -`signatures` | string[] | Proofs that orders have been signed by makers. | -`txData?` | `Partial` \| undefined | Additional data for transaction | - -**Returns:** *`Promise`* - -The hash of the transaction - -#### validateAndSendTransactionAsync - -▸ **validateAndSendTransactionAsync**(`orders`: `Array`, `makerAssetFillAmount`: `BigNumber`, `signatures`: string[], `txData?`: `Partial` | undefined): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:6355](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L6355)* - -**Parameters:** - -Name | Type | ------- | ------ | -`orders` | `Array` | -`makerAssetFillAmount` | `BigNumber` | -`signatures` | string[] | -`txData?` | `Partial` \| undefined | - -**Returns:** *`Promise`* - -___ - -### marketSellOrdersFillOrKill - -#### ▪ **marketSellOrdersFillOrKill**: *object* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:6591](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L6591)* - -Calls marketSellOrdersNoThrow then reverts if < takerAssetFillAmount has been sold. -NOTE: This function does not enforce that the takerAsset is the same for each order. - -#### awaitTransactionSuccessAsync - -▸ **awaitTransactionSuccessAsync**(`orders`: `Array`, `takerAssetFillAmount`: `BigNumber`, `signatures`: string[], `txData?`: `Partial`, `pollingIntervalMs?`: undefined | number, `timeoutMs?`: undefined | number): *`PromiseWithTransactionHash`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:6655](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L6655)* - -Sends an Ethereum transaction and waits until the transaction has been successfully mined without reverting. -If the transaction was mined, but reverted, an error is thrown. - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`orders` | `Array` | Array of order specifications. | -`takerAssetFillAmount` | `BigNumber` | Minimum amount of takerAsset to sell. | -`signatures` | string[] | Proofs that orders have been signed by makers. | -`txData?` | `Partial` | Additional data for transaction | -`pollingIntervalMs?` | undefined \| number | Interval at which to poll for success | -`timeoutMs?` | undefined \| number | - | - -**Returns:** *`PromiseWithTransactionHash`* - -A promise that resolves when the transaction is successful - -#### callAsync - -▸ **callAsync**(`orders`: `Array`, `takerAssetFillAmount`: `BigNumber`, `signatures`: string[], `callData`: `Partial`, `defaultBlock?`: [BlockParam](#blockparam)): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:6791](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L6791)* - -Sends a read-only call to the contract method. Returns the result that would happen if one were to send an -Ethereum transaction to this method, given the current state of the blockchain. Calls do not cost gas -since they don't modify state. - -**Parameters:** - -Name | Type | Default | Description | ------- | ------ | ------ | ------ | -`orders` | `Array` | - | Array of order specifications. | -`takerAssetFillAmount` | `BigNumber` | - | Minimum amount of takerAsset to sell. | -`signatures` | string[] | - | Proofs that orders have been signed by makers. | -`callData` | `Partial` | {} | - | -`defaultBlock?` | [BlockParam](#blockparam) | - | - | - -**Returns:** *`Promise`* - -Amounts filled and fees paid by makers and taker. - -#### estimateGasAsync - -▸ **estimateGasAsync**(`orders`: `Array`, `takerAssetFillAmount`: `BigNumber`, `signatures`: string[], `txData?`: `Partial` | undefined): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:6708](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L6708)* - -Estimates the gas cost of sending an Ethereum transaction calling this method with these arguments. - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`orders` | `Array` | Array of order specifications. | -`takerAssetFillAmount` | `BigNumber` | Minimum amount of takerAsset to sell. | -`signatures` | string[] | Proofs that orders have been signed by makers. | -`txData?` | `Partial` \| undefined | Additional data for transaction | - -**Returns:** *`Promise`* - -The hash of the transaction - -#### getABIDecodedReturnData - -▸ **getABIDecodedReturnData**(`returnData`: string): *object* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:6960](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L6960)* - -Decode the ABI-encoded return data from a transaction - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`returnData` | string | the data returned after transaction execution | - -**Returns:** *object* - -An array representing the output results in order. Keynames of nested structs are preserved. - -#### getABIDecodedTransactionData - -▸ **getABIDecodedTransactionData**(`callData`: string): *`Array`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:6912](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L6912)* - -Decode the ABI-encoded transaction data into its input arguments - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`callData` | string | The ABI-encoded transaction data | - -**Returns:** *`Array`* - -An array representing the input arguments in order. Keynames of nested structs are preserved. - -#### getABIEncodedTransactionData - -▸ **getABIEncodedTransactionData**(`orders`: `Array`, `takerAssetFillAmount`: `BigNumber`, `signatures`: string[]): *string* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:6877](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L6877)* - -Returns the ABI encoded transaction data needed to send an Ethereum transaction calling this method. Before -sending the Ethereum tx, this encoded tx data can first be sent to a separate signing service or can be used -to create a 0x transaction (see protocol spec for more details). - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`orders` | `Array` | Array of order specifications. | -`takerAssetFillAmount` | `BigNumber` | Minimum amount of takerAsset to sell. | -`signatures` | string[] | Proofs that orders have been signed by makers. | - -**Returns:** *string* - -The ABI encoded transaction data as a string - -#### sendTransactionAsync - -▸ **sendTransactionAsync**(`orders`: `Array`, `takerAssetFillAmount`: `BigNumber`, `signatures`: string[], `txData?`: `Partial` | undefined): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:6601](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L6601)* - -Sends an Ethereum transaction executing this method with the supplied parameters. This is a read/write -Ethereum operation and will cost gas. - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`orders` | `Array` | Array of order specifications. | -`takerAssetFillAmount` | `BigNumber` | Minimum amount of takerAsset to sell. | -`signatures` | string[] | Proofs that orders have been signed by makers. | -`txData?` | `Partial` \| undefined | Additional data for transaction | - -**Returns:** *`Promise`* - -The hash of the transaction - -#### validateAndSendTransactionAsync - -▸ **validateAndSendTransactionAsync**(`orders`: `Array`, `takerAssetFillAmount`: `BigNumber`, `signatures`: string[], `txData?`: `Partial` | undefined): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:6752](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L6752)* - -**Parameters:** - -Name | Type | ------- | ------ | -`orders` | `Array` | -`takerAssetFillAmount` | `BigNumber` | -`signatures` | string[] | -`txData?` | `Partial` \| undefined | - -**Returns:** *`Promise`* - -___ - -### marketSellOrdersNoThrow - -#### ▪ **marketSellOrdersNoThrow**: *object* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:6989](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L6989)* - -Executes multiple calls of fillOrder until total amount of takerAsset is sold by taker. -If any fill reverts, the error is caught and ignored. -NOTE: This function does not enforce that the takerAsset is the same for each order. - -#### awaitTransactionSuccessAsync - -▸ **awaitTransactionSuccessAsync**(`orders`: `Array`, `takerAssetFillAmount`: `BigNumber`, `signatures`: string[], `txData?`: `Partial`, `pollingIntervalMs?`: undefined | number, `timeoutMs?`: undefined | number): *`PromiseWithTransactionHash`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:7053](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L7053)* - -Sends an Ethereum transaction and waits until the transaction has been successfully mined without reverting. -If the transaction was mined, but reverted, an error is thrown. - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`orders` | `Array` | Array of order specifications. | -`takerAssetFillAmount` | `BigNumber` | Desired amount of takerAsset to sell. | -`signatures` | string[] | Proofs that orders have been signed by makers. | -`txData?` | `Partial` | Additional data for transaction | -`pollingIntervalMs?` | undefined \| number | Interval at which to poll for success | -`timeoutMs?` | undefined \| number | - | - -**Returns:** *`PromiseWithTransactionHash`* - -A promise that resolves when the transaction is successful - -#### callAsync - -▸ **callAsync**(`orders`: `Array`, `takerAssetFillAmount`: `BigNumber`, `signatures`: string[], `callData`: `Partial`, `defaultBlock?`: [BlockParam](#blockparam)): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:7189](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L7189)* - -Sends a read-only call to the contract method. Returns the result that would happen if one were to send an -Ethereum transaction to this method, given the current state of the blockchain. Calls do not cost gas -since they don't modify state. - -**Parameters:** - -Name | Type | Default | Description | ------- | ------ | ------ | ------ | -`orders` | `Array` | - | Array of order specifications. | -`takerAssetFillAmount` | `BigNumber` | - | Desired amount of takerAsset to sell. | -`signatures` | string[] | - | Proofs that orders have been signed by makers. | -`callData` | `Partial` | {} | - | -`defaultBlock?` | [BlockParam](#blockparam) | - | - | - -**Returns:** *`Promise`* - -Amounts filled and fees paid by makers and taker. - -#### estimateGasAsync - -▸ **estimateGasAsync**(`orders`: `Array`, `takerAssetFillAmount`: `BigNumber`, `signatures`: string[], `txData?`: `Partial` | undefined): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:7106](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L7106)* - -Estimates the gas cost of sending an Ethereum transaction calling this method with these arguments. - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`orders` | `Array` | Array of order specifications. | -`takerAssetFillAmount` | `BigNumber` | Desired amount of takerAsset to sell. | -`signatures` | string[] | Proofs that orders have been signed by makers. | -`txData?` | `Partial` \| undefined | Additional data for transaction | - -**Returns:** *`Promise`* - -The hash of the transaction - -#### getABIDecodedReturnData - -▸ **getABIDecodedReturnData**(`returnData`: string): *object* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:7358](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L7358)* - -Decode the ABI-encoded return data from a transaction - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`returnData` | string | the data returned after transaction execution | - -**Returns:** *object* - -An array representing the output results in order. Keynames of nested structs are preserved. - -#### getABIDecodedTransactionData - -▸ **getABIDecodedTransactionData**(`callData`: string): *`Array`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:7310](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L7310)* - -Decode the ABI-encoded transaction data into its input arguments - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`callData` | string | The ABI-encoded transaction data | - -**Returns:** *`Array`* - -An array representing the input arguments in order. Keynames of nested structs are preserved. - -#### getABIEncodedTransactionData - -▸ **getABIEncodedTransactionData**(`orders`: `Array`, `takerAssetFillAmount`: `BigNumber`, `signatures`: string[]): *string* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:7275](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L7275)* - -Returns the ABI encoded transaction data needed to send an Ethereum transaction calling this method. Before -sending the Ethereum tx, this encoded tx data can first be sent to a separate signing service or can be used -to create a 0x transaction (see protocol spec for more details). - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`orders` | `Array` | Array of order specifications. | -`takerAssetFillAmount` | `BigNumber` | Desired amount of takerAsset to sell. | -`signatures` | string[] | Proofs that orders have been signed by makers. | - -**Returns:** *string* - -The ABI encoded transaction data as a string - -#### sendTransactionAsync - -▸ **sendTransactionAsync**(`orders`: `Array`, `takerAssetFillAmount`: `BigNumber`, `signatures`: string[], `txData?`: `Partial` | undefined): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:6999](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L6999)* - -Sends an Ethereum transaction executing this method with the supplied parameters. This is a read/write -Ethereum operation and will cost gas. - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`orders` | `Array` | Array of order specifications. | -`takerAssetFillAmount` | `BigNumber` | Desired amount of takerAsset to sell. | -`signatures` | string[] | Proofs that orders have been signed by makers. | -`txData?` | `Partial` \| undefined | Additional data for transaction | - -**Returns:** *`Promise`* - -The hash of the transaction - -#### validateAndSendTransactionAsync - -▸ **validateAndSendTransactionAsync**(`orders`: `Array`, `takerAssetFillAmount`: `BigNumber`, `signatures`: string[], `txData?`: `Partial` | undefined): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:7150](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L7150)* - -**Parameters:** - -Name | Type | ------- | ------ | -`orders` | `Array` | -`takerAssetFillAmount` | `BigNumber` | -`signatures` | string[] | -`txData?` | `Partial` \| undefined | - -**Returns:** *`Promise`* - -___ - -### matchOrders - -#### ▪ **matchOrders**: *object* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:7388](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L7388)* - -Match two complementary orders that have a profitable spread. -Each order is filled at their respective price point. However, the calculations are -carried out as though the orders are both being filled at the right order's price point. -The profit made by the left order goes to the taker (who matched the two orders). - -#### awaitTransactionSuccessAsync - -▸ **awaitTransactionSuccessAsync**(`leftOrder`: object, `rightOrder`: object, `leftSignature`: string, `rightSignature`: string, `txData?`: `Partial`, `pollingIntervalMs?`: undefined | number, `timeoutMs?`: undefined | number): *`PromiseWithTransactionHash`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:7469](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L7469)* - -Sends an Ethereum transaction and waits until the transaction has been successfully mined without reverting. -If the transaction was mined, but reverted, an error is thrown. - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`leftOrder` | object | First order to match. | -`rightOrder` | object | Second order to match. | -`leftSignature` | string | Proof that order was created by the left maker. | -`rightSignature` | string | Proof that order was created by the right maker. | -`txData?` | `Partial` | Additional data for transaction | -`pollingIntervalMs?` | undefined \| number | Interval at which to poll for success | -`timeoutMs?` | undefined \| number | - | - -**Returns:** *`PromiseWithTransactionHash`* - -A promise that resolves when the transaction is successful - -#### callAsync - -▸ **callAsync**(`leftOrder`: object, `rightOrder`: object, `leftSignature`: string, `rightSignature`: string, `callData`: `Partial`, `defaultBlock?`: [BlockParam](#blockparam)): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:7655](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L7655)* - -Sends a read-only call to the contract method. Returns the result that would happen if one were to send an -Ethereum transaction to this method, given the current state of the blockchain. Calls do not cost gas -since they don't modify state. - -**Parameters:** - -Name | Type | Default | Description | ------- | ------ | ------ | ------ | -`leftOrder` | object | - | First order to match. | -`rightOrder` | object | - | Second order to match. | -`leftSignature` | string | - | Proof that order was created by the left maker. | -`rightSignature` | string | - | Proof that order was created by the right maker. | -`callData` | `Partial` | {} | - | -`defaultBlock?` | [BlockParam](#blockparam) | - | - | - -**Returns:** *`Promise`* - -matchedFillResults Amounts filled and fees paid by maker and taker of matched orders. - -#### estimateGasAsync - -▸ **estimateGasAsync**(`leftOrder`: object, `rightOrder`: object, `leftSignature`: string, `rightSignature`: string, `txData?`: `Partial` | undefined): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:7539](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L7539)* - -Estimates the gas cost of sending an Ethereum transaction calling this method with these arguments. - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`leftOrder` | object | First order to match. | -`rightOrder` | object | Second order to match. | -`leftSignature` | string | Proof that order was created by the left maker. | -`rightSignature` | string | Proof that order was created by the right maker. | -`txData?` | `Partial` \| undefined | Additional data for transaction | - -**Returns:** *`Promise`* - -The hash of the transaction - -#### getABIDecodedReturnData - -▸ **getABIDecodedReturnData**(`returnData`: string): *object* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:7875](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L7875)* - -Decode the ABI-encoded return data from a transaction - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`returnData` | string | the data returned after transaction execution | - -**Returns:** *object* - -An array representing the output results in order. Keynames of nested structs are preserved. - -#### getABIDecodedTransactionData - -▸ **getABIDecodedTransactionData**(`callData`: string): *object* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:7829](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L7829)* - -Decode the ABI-encoded transaction data into its input arguments - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`callData` | string | The ABI-encoded transaction data | - -**Returns:** *object* - -An array representing the input arguments in order. Keynames of nested structs are preserved. - -#### getABIEncodedTransactionData - -▸ **getABIEncodedTransactionData**(`leftOrder`: object, `rightOrder`: object, `leftSignature`: string, `rightSignature`: string): *string* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:7779](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L7779)* - -Returns the ABI encoded transaction data needed to send an Ethereum transaction calling this method. Before -sending the Ethereum tx, this encoded tx data can first be sent to a separate signing service or can be used -to create a 0x transaction (see protocol spec for more details). - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`leftOrder` | object | First order to match. | -`rightOrder` | object | Second order to match. | -`leftSignature` | string | Proof that order was created by the left maker. | -`rightSignature` | string | Proof that order was created by the right maker. | - -**Returns:** *string* - -The ABI encoded transaction data as a string - -#### sendTransactionAsync - -▸ **sendTransactionAsync**(`leftOrder`: object, `rightOrder`: object, `leftSignature`: string, `rightSignature`: string, `txData?`: `Partial` | undefined): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:7399](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L7399)* - -Sends an Ethereum transaction executing this method with the supplied parameters. This is a read/write -Ethereum operation and will cost gas. - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`leftOrder` | object | First order to match. | -`rightOrder` | object | Second order to match. | -`leftSignature` | string | Proof that order was created by the left maker. | -`rightSignature` | string | Proof that order was created by the right maker. | -`txData?` | `Partial` \| undefined | Additional data for transaction | - -**Returns:** *`Promise`* - -The hash of the transaction - -#### validateAndSendTransactionAsync - -▸ **validateAndSendTransactionAsync**(`leftOrder`: object, `rightOrder`: object, `leftSignature`: string, `rightSignature`: string, `txData?`: `Partial` | undefined): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:7598](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L7598)* - -**Parameters:** - -Name | Type | ------- | ------ | -`leftOrder` | object | -`rightOrder` | object | -`leftSignature` | string | -`rightSignature` | string | -`txData?` | `Partial` \| undefined | - -**Returns:** *`Promise`* - -___ - -### matchOrdersWithMaximalFill - -#### ▪ **matchOrdersWithMaximalFill**: *object* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:7927](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L7927)* - -Match two complementary orders that have a profitable spread. -Each order is maximally filled at their respective price point, and -the matcher receives a profit denominated in either the left maker asset, -right maker asset, or a combination of both. - -#### awaitTransactionSuccessAsync - -▸ **awaitTransactionSuccessAsync**(`leftOrder`: object, `rightOrder`: object, `leftSignature`: string, `rightSignature`: string, `txData?`: `Partial`, `pollingIntervalMs?`: undefined | number, `timeoutMs?`: undefined | number): *`PromiseWithTransactionHash`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:8008](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L8008)* - -Sends an Ethereum transaction and waits until the transaction has been successfully mined without reverting. -If the transaction was mined, but reverted, an error is thrown. - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`leftOrder` | object | First order to match. | -`rightOrder` | object | Second order to match. | -`leftSignature` | string | Proof that order was created by the left maker. | -`rightSignature` | string | Proof that order was created by the right maker. | -`txData?` | `Partial` | Additional data for transaction | -`pollingIntervalMs?` | undefined \| number | Interval at which to poll for success | -`timeoutMs?` | undefined \| number | - | - -**Returns:** *`PromiseWithTransactionHash`* - -A promise that resolves when the transaction is successful - -#### callAsync - -▸ **callAsync**(`leftOrder`: object, `rightOrder`: object, `leftSignature`: string, `rightSignature`: string, `callData`: `Partial`, `defaultBlock?`: [BlockParam](#blockparam)): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:8200](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L8200)* - -Sends a read-only call to the contract method. Returns the result that would happen if one were to send an -Ethereum transaction to this method, given the current state of the blockchain. Calls do not cost gas -since they don't modify state. - -**Parameters:** - -Name | Type | Default | Description | ------- | ------ | ------ | ------ | -`leftOrder` | object | - | First order to match. | -`rightOrder` | object | - | Second order to match. | -`leftSignature` | string | - | Proof that order was created by the left maker. | -`rightSignature` | string | - | Proof that order was created by the right maker. | -`callData` | `Partial` | {} | - | -`defaultBlock?` | [BlockParam](#blockparam) | - | - | - -**Returns:** *`Promise`* - -matchedFillResults Amounts filled by maker and taker of matched orders. - -#### estimateGasAsync - -▸ **estimateGasAsync**(`leftOrder`: object, `rightOrder`: object, `leftSignature`: string, `rightSignature`: string, `txData?`: `Partial` | undefined): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:8078](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L8078)* - -Estimates the gas cost of sending an Ethereum transaction calling this method with these arguments. - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`leftOrder` | object | First order to match. | -`rightOrder` | object | Second order to match. | -`leftSignature` | string | Proof that order was created by the left maker. | -`rightSignature` | string | Proof that order was created by the right maker. | -`txData?` | `Partial` \| undefined | Additional data for transaction | - -**Returns:** *`Promise`* - -The hash of the transaction - -#### getABIDecodedReturnData - -▸ **getABIDecodedReturnData**(`returnData`: string): *object* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:8420](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L8420)* - -Decode the ABI-encoded return data from a transaction - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`returnData` | string | the data returned after transaction execution | - -**Returns:** *object* - -An array representing the output results in order. Keynames of nested structs are preserved. - -#### getABIDecodedTransactionData - -▸ **getABIDecodedTransactionData**(`callData`: string): *object* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:8374](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L8374)* - -Decode the ABI-encoded transaction data into its input arguments - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`callData` | string | The ABI-encoded transaction data | - -**Returns:** *object* - -An array representing the input arguments in order. Keynames of nested structs are preserved. - -#### getABIEncodedTransactionData - -▸ **getABIEncodedTransactionData**(`leftOrder`: object, `rightOrder`: object, `leftSignature`: string, `rightSignature`: string): *string* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:8324](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L8324)* - -Returns the ABI encoded transaction data needed to send an Ethereum transaction calling this method. Before -sending the Ethereum tx, this encoded tx data can first be sent to a separate signing service or can be used -to create a 0x transaction (see protocol spec for more details). - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`leftOrder` | object | First order to match. | -`rightOrder` | object | Second order to match. | -`leftSignature` | string | Proof that order was created by the left maker. | -`rightSignature` | string | Proof that order was created by the right maker. | - -**Returns:** *string* - -The ABI encoded transaction data as a string - -#### sendTransactionAsync - -▸ **sendTransactionAsync**(`leftOrder`: object, `rightOrder`: object, `leftSignature`: string, `rightSignature`: string, `txData?`: `Partial` | undefined): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:7938](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L7938)* - -Sends an Ethereum transaction executing this method with the supplied parameters. This is a read/write -Ethereum operation and will cost gas. - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`leftOrder` | object | First order to match. | -`rightOrder` | object | Second order to match. | -`leftSignature` | string | Proof that order was created by the left maker. | -`rightSignature` | string | Proof that order was created by the right maker. | -`txData?` | `Partial` \| undefined | Additional data for transaction | - -**Returns:** *`Promise`* - -The hash of the transaction - -#### validateAndSendTransactionAsync - -▸ **validateAndSendTransactionAsync**(`leftOrder`: object, `rightOrder`: object, `leftSignature`: string, `rightSignature`: string, `txData?`: `Partial` | undefined): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:8137](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L8137)* - -**Parameters:** - -Name | Type | ------- | ------ | -`leftOrder` | object | -`rightOrder` | object | -`leftSignature` | string | -`rightSignature` | string | -`txData?` | `Partial` \| undefined | - -**Returns:** *`Promise`* - -___ - -### orderEpoch - -#### ▪ **orderEpoch**: *object* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:8466](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L8466)* - -#### callAsync - -▸ **callAsync**(`index_0`: string, `index_1`: string, `callData`: `Partial`, `defaultBlock?`: [BlockParam](#blockparam)): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:8472](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L8472)* - -Sends a read-only call to the contract method. Returns the result that would happen if one were to send an -Ethereum transaction to this method, given the current state of the blockchain. Calls do not cost gas -since they don't modify state. - -**Parameters:** - -Name | Type | Default | ------- | ------ | ------ | -`index_0` | string | - | -`index_1` | string | - | -`callData` | `Partial` | {} | -`defaultBlock?` | [BlockParam](#blockparam) | - | - -**Returns:** *`Promise`* - -#### getABIDecodedReturnData - -▸ **getABIDecodedReturnData**(`returnData`: string): *`BigNumber`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:8551](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L8551)* - -Decode the ABI-encoded return data from a transaction - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`returnData` | string | the data returned after transaction execution | - -**Returns:** *`BigNumber`* - -An array representing the output results in order. Keynames of nested structs are preserved. - -#### getABIDecodedTransactionData - -▸ **getABIDecodedTransactionData**(`callData`: string): *string* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:8539](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L8539)* - -Decode the ABI-encoded transaction data into its input arguments - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`callData` | string | The ABI-encoded transaction data | - -**Returns:** *string* - -An array representing the input arguments in order. Keynames of nested structs are preserved. - -#### getABIEncodedTransactionData - -▸ **getABIEncodedTransactionData**(`index_0`: string, `index_1`: string): *string* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:8524](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L8524)* - -Returns the ABI encoded transaction data needed to send an Ethereum transaction calling this method. Before -sending the Ethereum tx, this encoded tx data can first be sent to a separate signing service or can be used -to create a 0x transaction (see protocol spec for more details). - -**Parameters:** - -Name | Type | ------- | ------ | -`index_0` | string | -`index_1` | string | - -**Returns:** *string* - -The ABI encoded transaction data as a string - -___ - -### owner - -#### ▪ **owner**: *object* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:8559](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L8559)* - -#### callAsync - -▸ **callAsync**(`callData`: `Partial`, `defaultBlock?`: [BlockParam](#blockparam)): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:8565](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L8565)* - -Sends a read-only call to the contract method. Returns the result that would happen if one were to send an -Ethereum transaction to this method, given the current state of the blockchain. Calls do not cost gas -since they don't modify state. - -**Parameters:** - -Name | Type | Default | ------- | ------ | ------ | -`callData` | `Partial` | {} | -`defaultBlock?` | [BlockParam](#blockparam) | - | - -**Returns:** *`Promise`* - -#### getABIDecodedReturnData - -▸ **getABIDecodedReturnData**(`returnData`: string): *string* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:8629](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L8629)* - -Decode the ABI-encoded return data from a transaction - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`returnData` | string | the data returned after transaction execution | - -**Returns:** *string* - -An array representing the output results in order. Keynames of nested structs are preserved. - -#### getABIDecodedTransactionData - -▸ **getABIDecodedTransactionData**(`callData`: string): *void* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:8617](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L8617)* - -Decode the ABI-encoded transaction data into its input arguments - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`callData` | string | The ABI-encoded transaction data | - -**Returns:** *void* - -An array representing the input arguments in order. Keynames of nested structs are preserved. - -#### getABIEncodedTransactionData - -▸ **getABIEncodedTransactionData**(): *string* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:8607](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L8607)* - -Returns the ABI encoded transaction data needed to send an Ethereum transaction calling this method. Before -sending the Ethereum tx, this encoded tx data can first be sent to a separate signing service or can be used -to create a 0x transaction (see protocol spec for more details). - -**Returns:** *string* - -The ABI encoded transaction data as a string - -___ - -### preSign - -#### ▪ **preSign**: *object* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:8641](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L8641)* - -Approves a hash on-chain. -After presigning a hash, the preSign signature type will become valid for that hash and signer. - -#### awaitTransactionSuccessAsync - -▸ **awaitTransactionSuccessAsync**(`hash`: string, `txData?`: `Partial`, `pollingIntervalMs?`: undefined | number, `timeoutMs?`: undefined | number): *`PromiseWithTransactionHash`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:8676](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L8676)* - -Sends an Ethereum transaction and waits until the transaction has been successfully mined without reverting. -If the transaction was mined, but reverted, an error is thrown. - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`hash` | string | Any 32-byte hash. | -`txData?` | `Partial` | Additional data for transaction | -`pollingIntervalMs?` | undefined \| number | Interval at which to poll for success | -`timeoutMs?` | undefined \| number | - | - -**Returns:** *`PromiseWithTransactionHash`* - -A promise that resolves when the transaction is successful - -#### callAsync - -▸ **callAsync**(`hash`: string, `callData`: `Partial`, `defaultBlock?`: [BlockParam](#blockparam)): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:8733](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L8733)* - -Sends a read-only call to the contract method. Returns the result that would happen if one were to send an -Ethereum transaction to this method, given the current state of the blockchain. Calls do not cost gas -since they don't modify state. - -**Parameters:** - -Name | Type | Default | Description | ------- | ------ | ------ | ------ | -`hash` | string | - | Any 32-byte hash. | -`callData` | `Partial` | {} | - | -`defaultBlock?` | [BlockParam](#blockparam) | - | - | - -**Returns:** *`Promise`* - -#### estimateGasAsync - -▸ **estimateGasAsync**(`hash`: string, `txData?`: `Partial` | undefined): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:8703](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L8703)* - -Estimates the gas cost of sending an Ethereum transaction calling this method with these arguments. - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`hash` | string | Any 32-byte hash. | -`txData?` | `Partial` \| undefined | Additional data for transaction | - -**Returns:** *`Promise`* - -The hash of the transaction - -#### getABIDecodedReturnData - -▸ **getABIDecodedReturnData**(`returnData`: string): *void* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:8800](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L8800)* - -Decode the ABI-encoded return data from a transaction - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`returnData` | string | the data returned after transaction execution | - -**Returns:** *void* - -An array representing the output results in order. Keynames of nested structs are preserved. - -#### getABIDecodedTransactionData - -▸ **getABIDecodedTransactionData**(`callData`: string): *[string]* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:8788](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L8788)* - -Decode the ABI-encoded transaction data into its input arguments - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`callData` | string | The ABI-encoded transaction data | - -**Returns:** *[string]* - -An array representing the input arguments in order. Keynames of nested structs are preserved. - -#### getABIEncodedTransactionData - -▸ **getABIEncodedTransactionData**(`hash`: string): *string* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:8777](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L8777)* - -Returns the ABI encoded transaction data needed to send an Ethereum transaction calling this method. Before -sending the Ethereum tx, this encoded tx data can first be sent to a separate signing service or can be used -to create a 0x transaction (see protocol spec for more details). - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`hash` | string | Any 32-byte hash. | - -**Returns:** *string* - -The ABI encoded transaction data as a string - -#### sendTransactionAsync - -▸ **sendTransactionAsync**(`hash`: string, `txData?`: `Partial` | undefined): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:8649](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L8649)* - -Sends an Ethereum transaction executing this method with the supplied parameters. This is a read/write -Ethereum operation and will cost gas. - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`hash` | string | Any 32-byte hash. | -`txData?` | `Partial` \| undefined | Additional data for transaction | - -**Returns:** *`Promise`* - -The hash of the transaction - -#### validateAndSendTransactionAsync - -▸ **validateAndSendTransactionAsync**(`hash`: string, `txData?`: `Partial` | undefined): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:8722](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L8722)* - -**Parameters:** - -Name | Type | ------- | ------ | -`hash` | string | -`txData?` | `Partial` \| undefined | - -**Returns:** *`Promise`* - -___ - -### preSigned - -#### ▪ **preSigned**: *object* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:8808](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L8808)* - -#### callAsync - -▸ **callAsync**(`index_0`: string, `index_1`: string, `callData`: `Partial`, `defaultBlock?`: [BlockParam](#blockparam)): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:8814](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L8814)* - -Sends a read-only call to the contract method. Returns the result that would happen if one were to send an -Ethereum transaction to this method, given the current state of the blockchain. Calls do not cost gas -since they don't modify state. - -**Parameters:** - -Name | Type | Default | ------- | ------ | ------ | -`index_0` | string | - | -`index_1` | string | - | -`callData` | `Partial` | {} | -`defaultBlock?` | [BlockParam](#blockparam) | - | - -**Returns:** *`Promise`* - -#### getABIDecodedReturnData - -▸ **getABIDecodedReturnData**(`returnData`: string): *boolean* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:8893](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L8893)* - -Decode the ABI-encoded return data from a transaction - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`returnData` | string | the data returned after transaction execution | - -**Returns:** *boolean* - -An array representing the output results in order. Keynames of nested structs are preserved. - -#### getABIDecodedTransactionData - -▸ **getABIDecodedTransactionData**(`callData`: string): *string* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:8881](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L8881)* - -Decode the ABI-encoded transaction data into its input arguments - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`callData` | string | The ABI-encoded transaction data | - -**Returns:** *string* - -An array representing the input arguments in order. Keynames of nested structs are preserved. - -#### getABIEncodedTransactionData - -▸ **getABIEncodedTransactionData**(`index_0`: string, `index_1`: string): *string* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:8866](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L8866)* - -Returns the ABI encoded transaction data needed to send an Ethereum transaction calling this method. Before -sending the Ethereum tx, this encoded tx data can first be sent to a separate signing service or can be used -to create a 0x transaction (see protocol spec for more details). - -**Parameters:** - -Name | Type | ------- | ------ | -`index_0` | string | -`index_1` | string | - -**Returns:** *string* - -The ABI encoded transaction data as a string - -___ - -### protocolFeeCollector - -#### ▪ **protocolFeeCollector**: *object* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:8901](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L8901)* - -#### callAsync - -▸ **callAsync**(`callData`: `Partial`, `defaultBlock?`: [BlockParam](#blockparam)): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:8907](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L8907)* - -Sends a read-only call to the contract method. Returns the result that would happen if one were to send an -Ethereum transaction to this method, given the current state of the blockchain. Calls do not cost gas -since they don't modify state. - -**Parameters:** - -Name | Type | Default | ------- | ------ | ------ | -`callData` | `Partial` | {} | -`defaultBlock?` | [BlockParam](#blockparam) | - | - -**Returns:** *`Promise`* - -#### getABIDecodedReturnData - -▸ **getABIDecodedReturnData**(`returnData`: string): *string* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:8971](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L8971)* - -Decode the ABI-encoded return data from a transaction - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`returnData` | string | the data returned after transaction execution | - -**Returns:** *string* - -An array representing the output results in order. Keynames of nested structs are preserved. - -#### getABIDecodedTransactionData - -▸ **getABIDecodedTransactionData**(`callData`: string): *void* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:8959](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L8959)* - -Decode the ABI-encoded transaction data into its input arguments - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`callData` | string | The ABI-encoded transaction data | - -**Returns:** *void* - -An array representing the input arguments in order. Keynames of nested structs are preserved. - -#### getABIEncodedTransactionData - -▸ **getABIEncodedTransactionData**(): *string* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:8949](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L8949)* - -Returns the ABI encoded transaction data needed to send an Ethereum transaction calling this method. Before -sending the Ethereum tx, this encoded tx data can first be sent to a separate signing service or can be used -to create a 0x transaction (see protocol spec for more details). - -**Returns:** *string* - -The ABI encoded transaction data as a string - -___ - -### protocolFeeMultiplier - -#### ▪ **protocolFeeMultiplier**: *object* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:8979](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L8979)* - -#### callAsync - -▸ **callAsync**(`callData`: `Partial`, `defaultBlock?`: [BlockParam](#blockparam)): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:8985](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L8985)* - -Sends a read-only call to the contract method. Returns the result that would happen if one were to send an -Ethereum transaction to this method, given the current state of the blockchain. Calls do not cost gas -since they don't modify state. - -**Parameters:** - -Name | Type | Default | ------- | ------ | ------ | -`callData` | `Partial` | {} | -`defaultBlock?` | [BlockParam](#blockparam) | - | - -**Returns:** *`Promise`* - -#### getABIDecodedReturnData - -▸ **getABIDecodedReturnData**(`returnData`: string): *`BigNumber`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:9049](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L9049)* - -Decode the ABI-encoded return data from a transaction - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`returnData` | string | the data returned after transaction execution | - -**Returns:** *`BigNumber`* - -An array representing the output results in order. Keynames of nested structs are preserved. - -#### getABIDecodedTransactionData - -▸ **getABIDecodedTransactionData**(`callData`: string): *void* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:9037](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L9037)* - -Decode the ABI-encoded transaction data into its input arguments - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`callData` | string | The ABI-encoded transaction data | - -**Returns:** *void* - -An array representing the input arguments in order. Keynames of nested structs are preserved. - -#### getABIEncodedTransactionData - -▸ **getABIEncodedTransactionData**(): *string* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:9027](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L9027)* - -Returns the ABI encoded transaction data needed to send an Ethereum transaction calling this method. Before -sending the Ethereum tx, this encoded tx data can first be sent to a separate signing service or can be used -to create a 0x transaction (see protocol spec for more details). - -**Returns:** *string* - -The ABI encoded transaction data as a string - -___ - -### registerAssetProxy - -#### ▪ **registerAssetProxy**: *object* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:9061](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L9061)* - -Registers an asset proxy to its asset proxy id. -Once an asset proxy is registered, it cannot be unregistered. - -#### awaitTransactionSuccessAsync - -▸ **awaitTransactionSuccessAsync**(`assetProxy`: string, `txData?`: `Partial`, `pollingIntervalMs?`: undefined | number, `timeoutMs?`: undefined | number): *`PromiseWithTransactionHash`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:9096](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L9096)* - -Sends an Ethereum transaction and waits until the transaction has been successfully mined without reverting. -If the transaction was mined, but reverted, an error is thrown. - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`assetProxy` | string | Address of new asset proxy to register. | -`txData?` | `Partial` | Additional data for transaction | -`pollingIntervalMs?` | undefined \| number | Interval at which to poll for success | -`timeoutMs?` | undefined \| number | - | - -**Returns:** *`PromiseWithTransactionHash`* - -A promise that resolves when the transaction is successful - -#### callAsync - -▸ **callAsync**(`assetProxy`: string, `callData`: `Partial`, `defaultBlock?`: [BlockParam](#blockparam)): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:9156](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L9156)* - -Sends a read-only call to the contract method. Returns the result that would happen if one were to send an -Ethereum transaction to this method, given the current state of the blockchain. Calls do not cost gas -since they don't modify state. - -**Parameters:** - -Name | Type | Default | Description | ------- | ------ | ------ | ------ | -`assetProxy` | string | - | Address of new asset proxy to register. | -`callData` | `Partial` | {} | - | -`defaultBlock?` | [BlockParam](#blockparam) | - | - | - -**Returns:** *`Promise`* - -#### estimateGasAsync - -▸ **estimateGasAsync**(`assetProxy`: string, `txData?`: `Partial` | undefined): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:9123](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L9123)* - -Estimates the gas cost of sending an Ethereum transaction calling this method with these arguments. - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`assetProxy` | string | Address of new asset proxy to register. | -`txData?` | `Partial` \| undefined | Additional data for transaction | - -**Returns:** *`Promise`* - -The hash of the transaction - -#### getABIDecodedReturnData - -▸ **getABIDecodedReturnData**(`returnData`: string): *void* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:9229](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L9229)* - -Decode the ABI-encoded return data from a transaction - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`returnData` | string | the data returned after transaction execution | - -**Returns:** *void* - -An array representing the output results in order. Keynames of nested structs are preserved. - -#### getABIDecodedTransactionData - -▸ **getABIDecodedTransactionData**(`callData`: string): *[string]* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:9217](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L9217)* - -Decode the ABI-encoded transaction data into its input arguments - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`callData` | string | The ABI-encoded transaction data | - -**Returns:** *[string]* - -An array representing the input arguments in order. Keynames of nested structs are preserved. - -#### getABIEncodedTransactionData - -▸ **getABIEncodedTransactionData**(`assetProxy`: string): *string* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:9204](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L9204)* - -Returns the ABI encoded transaction data needed to send an Ethereum transaction calling this method. Before -sending the Ethereum tx, this encoded tx data can first be sent to a separate signing service or can be used -to create a 0x transaction (see protocol spec for more details). - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`assetProxy` | string | Address of new asset proxy to register. | - -**Returns:** *string* - -The ABI encoded transaction data as a string - -#### sendTransactionAsync - -▸ **sendTransactionAsync**(`assetProxy`: string, `txData?`: `Partial` | undefined): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:9069](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L9069)* - -Sends an Ethereum transaction executing this method with the supplied parameters. This is a read/write -Ethereum operation and will cost gas. - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`assetProxy` | string | Address of new asset proxy to register. | -`txData?` | `Partial` \| undefined | Additional data for transaction | - -**Returns:** *`Promise`* - -The hash of the transaction - -#### validateAndSendTransactionAsync - -▸ **validateAndSendTransactionAsync**(`assetProxy`: string, `txData?`: `Partial` | undefined): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:9142](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L9142)* - -**Parameters:** - -Name | Type | ------- | ------ | -`assetProxy` | string | -`txData?` | `Partial` \| undefined | - -**Returns:** *`Promise`* - -___ - -### setProtocolFeeCollectorAddress - -#### ▪ **setProtocolFeeCollectorAddress**: *object* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:9240](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L9240)* - -Allows the owner to update the protocolFeeCollector address. - -#### awaitTransactionSuccessAsync - -▸ **awaitTransactionSuccessAsync**(`updatedProtocolFeeCollector`: string, `txData?`: `Partial`, `pollingIntervalMs?`: undefined | number, `timeoutMs?`: undefined | number): *`PromiseWithTransactionHash`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:9282](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L9282)* - -Sends an Ethereum transaction and waits until the transaction has been successfully mined without reverting. -If the transaction was mined, but reverted, an error is thrown. - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`updatedProtocolFeeCollector` | string | The updated protocolFeeCollector contract address. | -`txData?` | `Partial` | Additional data for transaction | -`pollingIntervalMs?` | undefined \| number | Interval at which to poll for success | -`timeoutMs?` | undefined \| number | - | - -**Returns:** *`PromiseWithTransactionHash`* - -A promise that resolves when the transaction is successful - -#### callAsync - -▸ **callAsync**(`updatedProtocolFeeCollector`: string, `callData`: `Partial`, `defaultBlock?`: [BlockParam](#blockparam)): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:9355](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L9355)* - -Sends a read-only call to the contract method. Returns the result that would happen if one were to send an -Ethereum transaction to this method, given the current state of the blockchain. Calls do not cost gas -since they don't modify state. - -**Parameters:** - -Name | Type | Default | Description | ------- | ------ | ------ | ------ | -`updatedProtocolFeeCollector` | string | - | The updated protocolFeeCollector contract address. | -`callData` | `Partial` | {} | - | -`defaultBlock?` | [BlockParam](#blockparam) | - | - | - -**Returns:** *`Promise`* - -#### estimateGasAsync - -▸ **estimateGasAsync**(`updatedProtocolFeeCollector`: string, `txData?`: `Partial` | undefined): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:9313](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L9313)* - -Estimates the gas cost of sending an Ethereum transaction calling this method with these arguments. - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`updatedProtocolFeeCollector` | string | The updated protocolFeeCollector contract address. | -`txData?` | `Partial` \| undefined | Additional data for transaction | - -**Returns:** *`Promise`* - -The hash of the transaction - -#### getABIDecodedReturnData - -▸ **getABIDecodedReturnData**(`returnData`: string): *void* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:9431](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L9431)* - -Decode the ABI-encoded return data from a transaction - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`returnData` | string | the data returned after transaction execution | - -**Returns:** *void* - -An array representing the output results in order. Keynames of nested structs are preserved. - -#### getABIDecodedTransactionData - -▸ **getABIDecodedTransactionData**(`callData`: string): *[string]* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:9419](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L9419)* - -Decode the ABI-encoded transaction data into its input arguments - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`callData` | string | The ABI-encoded transaction data | - -**Returns:** *[string]* - -An array representing the input arguments in order. Keynames of nested structs are preserved. - -#### getABIEncodedTransactionData - -▸ **getABIEncodedTransactionData**(`updatedProtocolFeeCollector`: string): *string* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:9406](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L9406)* - -Returns the ABI encoded transaction data needed to send an Ethereum transaction calling this method. Before -sending the Ethereum tx, this encoded tx data can first be sent to a separate signing service or can be used -to create a 0x transaction (see protocol spec for more details). - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`updatedProtocolFeeCollector` | string | The updated protocolFeeCollector contract address. | - -**Returns:** *string* - -The ABI encoded transaction data as a string - -#### sendTransactionAsync - -▸ **sendTransactionAsync**(`updatedProtocolFeeCollector`: string, `txData?`: `Partial` | undefined): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:9249](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L9249)* - -Sends an Ethereum transaction executing this method with the supplied parameters. This is a read/write -Ethereum operation and will cost gas. - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`updatedProtocolFeeCollector` | string | The updated protocolFeeCollector contract address. | -`txData?` | `Partial` \| undefined | Additional data for transaction | - -**Returns:** *`Promise`* - -The hash of the transaction - -#### validateAndSendTransactionAsync - -▸ **validateAndSendTransactionAsync**(`updatedProtocolFeeCollector`: string, `txData?`: `Partial` | undefined): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:9337](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L9337)* - -**Parameters:** - -Name | Type | ------- | ------ | -`updatedProtocolFeeCollector` | string | -`txData?` | `Partial` \| undefined | - -**Returns:** *`Promise`* - -___ - -### setProtocolFeeMultiplier - -#### ▪ **setProtocolFeeMultiplier**: *object* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:9442](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L9442)* - -Allows the owner to update the protocol fee multiplier. - -#### awaitTransactionSuccessAsync - -▸ **awaitTransactionSuccessAsync**(`updatedProtocolFeeMultiplier`: `BigNumber`, `txData?`: `Partial`, `pollingIntervalMs?`: undefined | number, `timeoutMs?`: undefined | number): *`PromiseWithTransactionHash`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:9482](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L9482)* - -Sends an Ethereum transaction and waits until the transaction has been successfully mined without reverting. -If the transaction was mined, but reverted, an error is thrown. - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`updatedProtocolFeeMultiplier` | `BigNumber` | The updated protocol fee multiplier. | -`txData?` | `Partial` | Additional data for transaction | -`pollingIntervalMs?` | undefined \| number | Interval at which to poll for success | -`timeoutMs?` | undefined \| number | - | - -**Returns:** *`PromiseWithTransactionHash`* - -A promise that resolves when the transaction is successful - -#### callAsync - -▸ **callAsync**(`updatedProtocolFeeMultiplier`: `BigNumber`, `callData`: `Partial`, `defaultBlock?`: [BlockParam](#blockparam)): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:9553](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L9553)* - -Sends a read-only call to the contract method. Returns the result that would happen if one were to send an -Ethereum transaction to this method, given the current state of the blockchain. Calls do not cost gas -since they don't modify state. - -**Parameters:** - -Name | Type | Default | Description | ------- | ------ | ------ | ------ | -`updatedProtocolFeeMultiplier` | `BigNumber` | - | The updated protocol fee multiplier. | -`callData` | `Partial` | {} | - | -`defaultBlock?` | [BlockParam](#blockparam) | - | - | - -**Returns:** *`Promise`* - -#### estimateGasAsync - -▸ **estimateGasAsync**(`updatedProtocolFeeMultiplier`: `BigNumber`, `txData?`: `Partial` | undefined): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:9512](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L9512)* - -Estimates the gas cost of sending an Ethereum transaction calling this method with these arguments. - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`updatedProtocolFeeMultiplier` | `BigNumber` | The updated protocol fee multiplier. | -`txData?` | `Partial` \| undefined | Additional data for transaction | - -**Returns:** *`Promise`* - -The hash of the transaction - -#### getABIDecodedReturnData - -▸ **getABIDecodedReturnData**(`returnData`: string): *void* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:9628](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L9628)* - -Decode the ABI-encoded return data from a transaction - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`returnData` | string | the data returned after transaction execution | - -**Returns:** *void* - -An array representing the output results in order. Keynames of nested structs are preserved. - -#### getABIDecodedTransactionData - -▸ **getABIDecodedTransactionData**(`callData`: string): *[`BigNumber`]* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:9616](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L9616)* - -Decode the ABI-encoded transaction data into its input arguments - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`callData` | string | The ABI-encoded transaction data | - -**Returns:** *[`BigNumber`]* - -An array representing the input arguments in order. Keynames of nested structs are preserved. - -#### getABIEncodedTransactionData - -▸ **getABIEncodedTransactionData**(`updatedProtocolFeeMultiplier`: `BigNumber`): *string* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:9603](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L9603)* - -Returns the ABI encoded transaction data needed to send an Ethereum transaction calling this method. Before -sending the Ethereum tx, this encoded tx data can first be sent to a separate signing service or can be used -to create a 0x transaction (see protocol spec for more details). - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`updatedProtocolFeeMultiplier` | `BigNumber` | The updated protocol fee multiplier. | - -**Returns:** *string* - -The ABI encoded transaction data as a string - -#### sendTransactionAsync - -▸ **sendTransactionAsync**(`updatedProtocolFeeMultiplier`: `BigNumber`, `txData?`: `Partial` | undefined): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:9450](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L9450)* - -Sends an Ethereum transaction executing this method with the supplied parameters. This is a read/write -Ethereum operation and will cost gas. - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`updatedProtocolFeeMultiplier` | `BigNumber` | The updated protocol fee multiplier. | -`txData?` | `Partial` \| undefined | Additional data for transaction | - -**Returns:** *`Promise`* - -The hash of the transaction - -#### validateAndSendTransactionAsync - -▸ **validateAndSendTransactionAsync**(`updatedProtocolFeeMultiplier`: `BigNumber`, `txData?`: `Partial` | undefined): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:9536](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L9536)* - -**Parameters:** - -Name | Type | ------- | ------ | -`updatedProtocolFeeMultiplier` | `BigNumber` | -`txData?` | `Partial` \| undefined | - -**Returns:** *`Promise`* - -___ - -### setSignatureValidatorApproval - -#### ▪ **setSignatureValidatorApproval**: *object* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:9640](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L9640)* - -Approves/unnapproves a Validator contract to verify signatures on signer's behalf -using the `Validator` signature type. - -#### awaitTransactionSuccessAsync - -▸ **awaitTransactionSuccessAsync**(`validatorAddress`: string, `approval`: boolean, `txData?`: `Partial`, `pollingIntervalMs?`: undefined | number, `timeoutMs?`: undefined | number): *`PromiseWithTransactionHash`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:9685](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L9685)* - -Sends an Ethereum transaction and waits until the transaction has been successfully mined without reverting. -If the transaction was mined, but reverted, an error is thrown. - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`validatorAddress` | string | Address of Validator contract. | -`approval` | boolean | Approval or disapproval of Validator contract. | -`txData?` | `Partial` | Additional data for transaction | -`pollingIntervalMs?` | undefined \| number | Interval at which to poll for success | -`timeoutMs?` | undefined \| number | - | - -**Returns:** *`PromiseWithTransactionHash`* - -A promise that resolves when the transaction is successful - -#### callAsync - -▸ **callAsync**(`validatorAddress`: string, `approval`: boolean, `callData`: `Partial`, `defaultBlock?`: [BlockParam](#blockparam)): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:9766](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L9766)* - -Sends a read-only call to the contract method. Returns the result that would happen if one were to send an -Ethereum transaction to this method, given the current state of the blockchain. Calls do not cost gas -since they don't modify state. - -**Parameters:** - -Name | Type | Default | Description | ------- | ------ | ------ | ------ | -`validatorAddress` | string | - | Address of Validator contract. | -`approval` | boolean | - | Approval or disapproval of Validator contract. | -`callData` | `Partial` | {} | - | -`defaultBlock?` | [BlockParam](#blockparam) | - | - | - -**Returns:** *`Promise`* - -#### estimateGasAsync - -▸ **estimateGasAsync**(`validatorAddress`: string, `approval`: boolean, `txData?`: `Partial` | undefined): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:9719](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L9719)* - -Estimates the gas cost of sending an Ethereum transaction calling this method with these arguments. - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`validatorAddress` | string | Address of Validator contract. | -`approval` | boolean | Approval or disapproval of Validator contract. | -`txData?` | `Partial` \| undefined | Additional data for transaction | - -**Returns:** *`Promise`* - -The hash of the transaction - -#### getABIDecodedReturnData - -▸ **getABIDecodedReturnData**(`returnData`: string): *void* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:9847](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L9847)* - -Decode the ABI-encoded return data from a transaction - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`returnData` | string | the data returned after transaction execution | - -**Returns:** *void* - -An array representing the output results in order. Keynames of nested structs are preserved. - -#### getABIDecodedTransactionData - -▸ **getABIDecodedTransactionData**(`callData`: string): *[string, boolean]* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:9835](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L9835)* - -Decode the ABI-encoded transaction data into its input arguments - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`callData` | string | The ABI-encoded transaction data | - -**Returns:** *[string, boolean]* - -An array representing the input arguments in order. Keynames of nested structs are preserved. - -#### getABIEncodedTransactionData - -▸ **getABIEncodedTransactionData**(`validatorAddress`: string, `approval`: boolean): *string* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:9820](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L9820)* - -Returns the ABI encoded transaction data needed to send an Ethereum transaction calling this method. Before -sending the Ethereum tx, this encoded tx data can first be sent to a separate signing service or can be used -to create a 0x transaction (see protocol spec for more details). - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`validatorAddress` | string | Address of Validator contract. | -`approval` | boolean | Approval or disapproval of Validator contract. | - -**Returns:** *string* - -The ABI encoded transaction data as a string - -#### sendTransactionAsync - -▸ **sendTransactionAsync**(`validatorAddress`: string, `approval`: boolean, `txData?`: `Partial` | undefined): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:9649](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L9649)* - -Sends an Ethereum transaction executing this method with the supplied parameters. This is a read/write -Ethereum operation and will cost gas. - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`validatorAddress` | string | Address of Validator contract. | -`approval` | boolean | Approval or disapproval of Validator contract. | -`txData?` | `Partial` \| undefined | Additional data for transaction | - -**Returns:** *`Promise`* - -The hash of the transaction - -#### validateAndSendTransactionAsync - -▸ **validateAndSendTransactionAsync**(`validatorAddress`: string, `approval`: boolean, `txData?`: `Partial` | undefined): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:9746](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L9746)* - -**Parameters:** - -Name | Type | ------- | ------ | -`validatorAddress` | string | -`approval` | boolean | -`txData?` | `Partial` \| undefined | - -**Returns:** *`Promise`* - -___ - -### simulateDispatchTransferFromCalls - -#### ▪ **simulateDispatchTransferFromCalls**: *object* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:9858](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L9858)* - -This function may be used to simulate any amount of transfers As they would occur through the Exchange contract. Note that this function will always revert, even if all transfers are successful. However, it may be used with eth_call or with a try/catch pattern in order to simulate the results of the transfers. - -#### awaitTransactionSuccessAsync - -▸ **awaitTransactionSuccessAsync**(`assetData`: string[], `fromAddresses`: string[], `toAddresses`: string[], `amounts`: `BigNumber`[], `txData?`: `Partial`, `pollingIntervalMs?`: undefined | number, `timeoutMs?`: undefined | number): *`PromiseWithTransactionHash`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:9919](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L9919)* - -Sends an Ethereum transaction and waits until the transaction has been successfully mined without reverting. -If the transaction was mined, but reverted, an error is thrown. - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`assetData` | string[] | Array of asset details, each encoded per the AssetProxy contract specification. | -`fromAddresses` | string[] | Array containing the `from` addresses that correspond with each transfer. | -`toAddresses` | string[] | Array containing the `to` addresses that correspond with each transfer. | -`amounts` | `BigNumber`[] | Array containing the amounts that correspond to each transfer. | -`txData?` | `Partial` | Additional data for transaction | -`pollingIntervalMs?` | undefined \| number | Interval at which to poll for success | -`timeoutMs?` | undefined \| number | - | - -**Returns:** *`PromiseWithTransactionHash`* - -A promise that resolves when the transaction is successful - -#### callAsync - -▸ **callAsync**(`assetData`: string[], `fromAddresses`: string[], `toAddresses`: string[], `amounts`: `BigNumber`[], `callData`: `Partial`, `defaultBlock?`: [BlockParam](#blockparam)): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:10033](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L10033)* - -Sends a read-only call to the contract method. Returns the result that would happen if one were to send an -Ethereum transaction to this method, given the current state of the blockchain. Calls do not cost gas -since they don't modify state. - -**Parameters:** - -Name | Type | Default | Description | ------- | ------ | ------ | ------ | -`assetData` | string[] | - | Array of asset details, each encoded per the AssetProxy contract specification. | -`fromAddresses` | string[] | - | Array containing the `from` addresses that correspond with each transfer. | -`toAddresses` | string[] | - | Array containing the `to` addresses that correspond with each transfer. | -`amounts` | `BigNumber`[] | - | Array containing the amounts that correspond to each transfer. | -`callData` | `Partial` | {} | - | -`defaultBlock?` | [BlockParam](#blockparam) | - | - | - -**Returns:** *`Promise`* - -This function does not return a value. However, it will always revert with `Error("TRANSFERS_SUCCESSFUL")` if all of the transfers were successful. - -#### estimateGasAsync - -▸ **estimateGasAsync**(`assetData`: string[], `fromAddresses`: string[], `toAddresses`: string[], `amounts`: `BigNumber`[], `txData?`: `Partial` | undefined): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:9965](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L9965)* - -Estimates the gas cost of sending an Ethereum transaction calling this method with these arguments. - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`assetData` | string[] | Array of asset details, each encoded per the AssetProxy contract specification. | -`fromAddresses` | string[] | Array containing the `from` addresses that correspond with each transfer. | -`toAddresses` | string[] | Array containing the `to` addresses that correspond with each transfer. | -`amounts` | `BigNumber`[] | Array containing the amounts that correspond to each transfer. | -`txData?` | `Partial` \| undefined | Additional data for transaction | - -**Returns:** *`Promise`* - -The hash of the transaction - -#### getABIDecodedReturnData - -▸ **getABIDecodedReturnData**(`returnData`: string): *void* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:10135](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L10135)* - -Decode the ABI-encoded return data from a transaction - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`returnData` | string | the data returned after transaction execution | - -**Returns:** *void* - -An array representing the output results in order. Keynames of nested structs are preserved. - -#### getABIDecodedTransactionData - -▸ **getABIDecodedTransactionData**(`callData`: string): *[string[], string[], string[], `BigNumber`[]]* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:10121](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L10121)* - -Decode the ABI-encoded transaction data into its input arguments - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`callData` | string | The ABI-encoded transaction data | - -**Returns:** *[string[], string[], string[], `BigNumber`[]]* - -An array representing the input arguments in order. Keynames of nested structs are preserved. - -#### getABIEncodedTransactionData - -▸ **getABIEncodedTransactionData**(`assetData`: string[], `fromAddresses`: string[], `toAddresses`: string[], `amounts`: `BigNumber`[]): *string* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:10099](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L10099)* - -Returns the ABI encoded transaction data needed to send an Ethereum transaction calling this method. Before -sending the Ethereum tx, this encoded tx data can first be sent to a separate signing service or can be used -to create a 0x transaction (see protocol spec for more details). - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`assetData` | string[] | Array of asset details, each encoded per the AssetProxy contract specification. | -`fromAddresses` | string[] | Array containing the `from` addresses that correspond with each transfer. | -`toAddresses` | string[] | Array containing the `to` addresses that correspond with each transfer. | -`amounts` | `BigNumber`[] | Array containing the amounts that correspond to each transfer. | - -**Returns:** *string* - -The ABI encoded transaction data as a string - -#### sendTransactionAsync - -▸ **sendTransactionAsync**(`assetData`: string[], `fromAddresses`: string[], `toAddresses`: string[], `amounts`: `BigNumber`[], `txData?`: `Partial` | undefined): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:9873](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L9873)* - -Sends an Ethereum transaction executing this method with the supplied parameters. This is a read/write -Ethereum operation and will cost gas. - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`assetData` | string[] | Array of asset details, each encoded per the AssetProxy contract specification. | -`fromAddresses` | string[] | Array containing the `from` addresses that correspond with each transfer. | -`toAddresses` | string[] | Array containing the `to` addresses that correspond with each transfer. | -`amounts` | `BigNumber`[] | Array containing the amounts that correspond to each transfer. | -`txData?` | `Partial` \| undefined | Additional data for transaction | - -**Returns:** *`Promise`* - -The hash of the transaction - -#### validateAndSendTransactionAsync - -▸ **validateAndSendTransactionAsync**(`assetData`: string[], `fromAddresses`: string[], `toAddresses`: string[], `amounts`: `BigNumber`[], `txData?`: `Partial` | undefined): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:9996](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L9996)* - -**Parameters:** - -Name | Type | ------- | ------ | -`assetData` | string[] | -`fromAddresses` | string[] | -`toAddresses` | string[] | -`amounts` | `BigNumber`[] | -`txData?` | `Partial` \| undefined | - -**Returns:** *`Promise`* - -___ - -### transactionsExecuted - -#### ▪ **transactionsExecuted**: *object* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:10145](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L10145)* - -#### callAsync - -▸ **callAsync**(`index_0`: string, `callData`: `Partial`, `defaultBlock?`: [BlockParam](#blockparam)): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:10151](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L10151)* - -Sends a read-only call to the contract method. Returns the result that would happen if one were to send an -Ethereum transaction to this method, given the current state of the blockchain. Calls do not cost gas -since they don't modify state. - -**Parameters:** - -Name | Type | Default | ------- | ------ | ------ | -`index_0` | string | - | -`callData` | `Partial` | {} | -`defaultBlock?` | [BlockParam](#blockparam) | - | - -**Returns:** *`Promise`* - -#### getABIDecodedReturnData - -▸ **getABIDecodedReturnData**(`returnData`: string): *boolean* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:10221](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L10221)* - -Decode the ABI-encoded return data from a transaction - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`returnData` | string | the data returned after transaction execution | - -**Returns:** *boolean* - -An array representing the output results in order. Keynames of nested structs are preserved. - -#### getABIDecodedTransactionData - -▸ **getABIDecodedTransactionData**(`callData`: string): *string* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:10209](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L10209)* - -Decode the ABI-encoded transaction data into its input arguments - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`callData` | string | The ABI-encoded transaction data | - -**Returns:** *string* - -An array representing the input arguments in order. Keynames of nested structs are preserved. - -#### getABIEncodedTransactionData - -▸ **getABIEncodedTransactionData**(`index_0`: string): *string* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:10198](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L10198)* - -Returns the ABI encoded transaction data needed to send an Ethereum transaction calling this method. Before -sending the Ethereum tx, this encoded tx data can first be sent to a separate signing service or can be used -to create a 0x transaction (see protocol spec for more details). - -**Parameters:** - -Name | Type | ------- | ------ | -`index_0` | string | - -**Returns:** *string* - -The ABI encoded transaction data as a string - -___ - -### transferOwnership - -#### ▪ **transferOwnership**: *object* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:10229](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L10229)* - -#### awaitTransactionSuccessAsync - -▸ **awaitTransactionSuccessAsync**(`newOwner`: string, `txData?`: `Partial`, `pollingIntervalMs?`: undefined | number, `timeoutMs?`: undefined | number): *`PromiseWithTransactionHash`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:10262](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L10262)* - -Sends an Ethereum transaction and waits until the transaction has been successfully mined without reverting. -If the transaction was mined, but reverted, an error is thrown. - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`newOwner` | string | - | -`txData?` | `Partial` | Additional data for transaction | -`pollingIntervalMs?` | undefined \| number | Interval at which to poll for success | -`timeoutMs?` | undefined \| number | - | - -**Returns:** *`PromiseWithTransactionHash`* - -A promise that resolves when the transaction is successful - -#### callAsync - -▸ **callAsync**(`newOwner`: string, `callData`: `Partial`, `defaultBlock?`: [BlockParam](#blockparam)): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:10317](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L10317)* - -Sends a read-only call to the contract method. Returns the result that would happen if one were to send an -Ethereum transaction to this method, given the current state of the blockchain. Calls do not cost gas -since they don't modify state. - -**Parameters:** - -Name | Type | Default | ------- | ------ | ------ | -`newOwner` | string | - | -`callData` | `Partial` | {} | -`defaultBlock?` | [BlockParam](#blockparam) | - | - -**Returns:** *`Promise`* - -#### estimateGasAsync - -▸ **estimateGasAsync**(`newOwner`: string, `txData?`: `Partial` | undefined): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:10288](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L10288)* - -Estimates the gas cost of sending an Ethereum transaction calling this method with these arguments. - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`newOwner` | string | - | -`txData?` | `Partial` \| undefined | Additional data for transaction | - -**Returns:** *`Promise`* - -The hash of the transaction - -#### getABIDecodedReturnData - -▸ **getABIDecodedReturnData**(`returnData`: string): *void* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:10385](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L10385)* - -Decode the ABI-encoded return data from a transaction - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`returnData` | string | the data returned after transaction execution | - -**Returns:** *void* - -An array representing the output results in order. Keynames of nested structs are preserved. - -#### getABIDecodedTransactionData - -▸ **getABIDecodedTransactionData**(`callData`: string): *[string]* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:10373](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L10373)* - -Decode the ABI-encoded transaction data into its input arguments - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`callData` | string | The ABI-encoded transaction data | - -**Returns:** *[string]* - -An array representing the input arguments in order. Keynames of nested structs are preserved. - -#### getABIEncodedTransactionData - -▸ **getABIEncodedTransactionData**(`newOwner`: string): *string* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:10360](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L10360)* - -Returns the ABI encoded transaction data needed to send an Ethereum transaction calling this method. Before -sending the Ethereum tx, this encoded tx data can first be sent to a separate signing service or can be used -to create a 0x transaction (see protocol spec for more details). - -**Parameters:** - -Name | Type | ------- | ------ | -`newOwner` | string | - -**Returns:** *string* - -The ABI encoded transaction data as a string - -#### sendTransactionAsync - -▸ **sendTransactionAsync**(`newOwner`: string, `txData?`: `Partial` | undefined): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:10236](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L10236)* - -Sends an Ethereum transaction executing this method with the supplied parameters. This is a read/write -Ethereum operation and will cost gas. - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`newOwner` | string | - | -`txData?` | `Partial` \| undefined | Additional data for transaction | - -**Returns:** *`Promise`* - -The hash of the transaction - -#### validateAndSendTransactionAsync - -▸ **validateAndSendTransactionAsync**(`newOwner`: string, `txData?`: `Partial` | undefined): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:10307](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L10307)* - -**Parameters:** - -Name | Type | ------- | ------ | -`newOwner` | string | -`txData?` | `Partial` \| undefined | - -**Returns:** *`Promise`* - -
- -# Class: ForwarderContract - - -## Constructors - - - -\+ **new ForwarderContract**(`address`: string, `supportedProvider`: [SupportedProvider](#supportedprovider), `txDefaults?`: `Partial`, `logDecodeDependencies?`: undefined | object, `deployedBytecode`: string | undefined): *[ForwarderContract](#class-forwardercontract)* - -*Overrides void* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/forwarder.ts:1880](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/forwarder.ts#L1880)* - -**Parameters:** - -Name | Type | Default | ------- | ------ | ------ | -`address` | string | - | -`supportedProvider` | [SupportedProvider](#supportedprovider) | - | -`txDefaults?` | `Partial` | - | -`logDecodeDependencies?` | undefined \| object | - | -`deployedBytecode` | string \| undefined | ForwarderContract.deployedBytecode | - -**Returns:** *[ForwarderContract](#class-forwardercontract)* - -## Properties - -#### abi - -• **abi**: *[ContractAbi](#contractabi)* - - - -Defined in base-contract/lib/src/index.d.ts:27 - -___ - -### address - -• **address**: *string* - - - -Defined in base-contract/lib/src/index.d.ts:28 - -___ - -Args - -• **constructorArgs**: *any[]* - - - -Defined in base-contract/lib/src/index.d.ts:30 - -___ - -### contractName - -• **contractName**: *string* - - - -Defined in base-contract/lib/src/index.d.ts:29 - -___ - -### `Static` deployedBytecode - -▪ **deployedBytecode**: *string* = "0x6080604052600436106100655760003560e01c8063942d33c011610043578063942d33c014610102578063ae93b97a14610124578063f2fde38b1461013757610065565b8063442026ed14610097578063630f1e6c146100b75780638da5cb5b146100d7575b60025473ffffffffffffffffffffffffffffffffffffffff1633146100955761009561009033610157565b6101f6565b005b3480156100a357600080fd5b506100956100b2366004611bc6565b6101fe565b3480156100c357600080fd5b506100956100d2366004611c06565b6104a8565b3480156100e357600080fd5b506100ec6104f1565b6040516100f99190611dc0565b60405180910390f35b610115610110366004611b1d565b61050d565b6040516100f993929190612047565b610115610132366004611aa0565b610542565b34801561014357600080fd5b50610095610152366004611a68565b61059d565b60606308b1869860e01b826040516024016101729190611dc0565b604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe08184030181529190526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fffffffff00000000000000000000000000000000000000000000000000000000909316929092179091529050919050565b805160208201fd5b600061024a600084848080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929392505063ffffffff610614169050565b905060405161025890611d97565b60405180910390207bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614156104a35760015460405160009173ffffffffffffffffffffffffffffffffffffffff16906360704108906102d490611d97565b6040519081900381207fffffffff0000000000000000000000000000000000000000000000000000000060e084901b16825261031291600401611e5f565b60206040518083038186803b15801561032a57600080fd5b505afa15801561033e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052506103629190810190611a84565b905073ffffffffffffffffffffffffffffffffffffffff811661038a5761038a61009061066a565b60006103d6601086868080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929392505063ffffffff6106c4169050565b6040517f095ea7b300000000000000000000000000000000000000000000000000000000815290915073ffffffffffffffffffffffffffffffffffffffff82169063095ea7b39061044d9085907fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff90600401611de1565b602060405180830381600087803b15801561046757600080fd5b505af115801561047b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525061049f9190810190611ba6565b5050505b505050565b6104b0610704565b6104a383838080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525085925061074d915050565b60005473ffffffffffffffffffffffffffffffffffffffff1681565b600080600061051a610838565b6105258888886108cd565b90935091506105358386866109f0565b9050955095509592505050565b600080600061054f610838565b6000610573670de0b6b3a764000061056d888263ffffffff610b8f16565b34610bb2565b9050610580888289610bdc565b90945092506105908487876109f0565b9150509450945094915050565b6105a5610704565b73ffffffffffffffffffffffffffffffffffffffff81166105d0576105cb610090610d9f565b610611565b600080547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff83161790555b50565b60008160040183511015610635576106356100906003855185600401610dd6565b5060208183018101519101907fffffffff00000000000000000000000000000000000000000000000000000000165b92915050565b6040805160048152602481019091526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167ff3b96b8d0000000000000000000000000000000000000000000000000000000017905290565b600081601401835110156106e5576106e56100906004855185601401610dd6565b50016014015173ffffffffffffffffffffffffffffffffffffffff1690565b60005473ffffffffffffffffffffffffffffffffffffffff16331461074b5760005461074b9061009090339073ffffffffffffffffffffffffffffffffffffffff16610e7b565b565b600061075f838263ffffffff61061416565b905060405161076d90611d97565b60405180910390207bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614156107c9576107c48383610f1d565b6104a3565b6040516107d590611d45565b60405180910390207bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916141561082c576107c48383611085565b6104a361009082611152565b346108485761084861009061116d565b600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663d0e30db0346040518263ffffffff1660e01b81526004016000604051808303818588803b1580156108b257600080fd5b505af11580156108c6573d6000803e3d6000fd5b5050505050565b82516000908190815b8181146109d1578681815181106108e957fe5b6020026020010151608001516000148061091a575086818151811061090a57fe5b602002602001015160a001516000145b15610924576109c9565b6000610936878563ffffffff6111c716565b905060008061096c8a858151811061094a57fe5b602002602001015189868151811061095e57fe5b6020026020010151856111e6565b915091506109928a858151811061097f57fe5b602002602001015161014001518261074d565b6109a2878363ffffffff610b8f16565b96506109b4868263ffffffff610b8f16565b95508886106109c5575050506109d1565b5050505b6001016108d6565b50848210156109e7576109e76100908684611339565b50935093915050565b600066b1a2bc2ec50000831115610a0d57610a0d61009084611356565b34841115610a2257610a226100908534611371565b6000610a34348663ffffffff6111c716565b9050610a4984670de0b6b3a764000087610bb2565b915080821115610a6057610a60610090838361138e565b8015610b87576002546040517f2e1a7d4d00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff90911690632e1a7d4d90610abc908490600401612030565b600060405180830381600087803b158015610ad657600080fd5b505af1158015610aea573d6000803e3d6000fd5b505050506000821115610b3c5760405173ffffffffffffffffffffffffffffffffffffffff84169083156108fc029084906000818181858888f19350505050158015610b3a573d6000803e3d6000fd5b505b6000610b4e828463ffffffff6111c716565b90508015610b8557604051339082156108fc029083906000818181858888f19350505050158015610b83573d6000803e3d6000fd5b505b505b509392505050565b600082820183811015610bab57610bab610090600086866113ab565b9392505050565b6000610bd483610bc8868563ffffffff6113ca16565b9063ffffffff6113fb16565b949350505050565b6000806000855190506000610c97600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16631ce4c78b6040518163ffffffff1660e01b815260040160206040518083038186803b158015610c5257600080fd5b505afa158015610c66573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250610c8a9190810190611cad565b3a9063ffffffff6113ca16565b905060005b828114610d9457878181518110610caf57fe5b60200260200101516080015160001480610ce05750878181518110610cd057fe5b602002602001015160a001516000145b15610cea57610d8c565b6000610d0c83610d008a8963ffffffff6111c716565b9063ffffffff6111c716565b9050600080610d428b8581518110610d2057fe5b60200260200101518a8681518110610d3457fe5b602002602001015185611425565b91509150610d558b858151811061097f57fe5b610d65888363ffffffff610b8f16565b9750610d77878263ffffffff610b8f16565b9650898810610d8857505050610d94565b5050505b600101610c9c565b505050935093915050565b60408051808201909152600481527fe69edc3e00000000000000000000000000000000000000000000000000000000602082015290565b6060632800659560e01b848484604051602401610df593929190611ec1565b604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe08184030181529190526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fffffffff000000000000000000000000000000000000000000000000000000009093169290921790915290509392505050565b6060631de45ad160e01b8383604051602401610e98929190611e07565b604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe08184030181529190526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fffffffff0000000000000000000000000000000000000000000000000000000090931692909217909152905092915050565b6000610f3083601063ffffffff6106c416565b9050600060608273ffffffffffffffffffffffffffffffffffffffff16604051610f5990611d6e565b60405180910390203386604051602401610f74929190611de1565b604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe08184030181529181526020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fffffffff00000000000000000000000000000000000000000000000000000000909416939093179092529051610ffd9190611d29565b6000604051808303816000865af19150503d806000811461103a576040519150601f19603f3d011682016040523d82523d6000602084013e61103f565b606091505b50915091508161105557611055610090826114ea565b3d15611074576000915060203d14156110745760206000803e60005191505b816108c6576108c6610090826114ea565b806001146110995761109961009082611505565b60006110ac83601063ffffffff6106c416565b905060006110c184602463ffffffff61152016565b6040517f23b872dd00000000000000000000000000000000000000000000000000000000815290915073ffffffffffffffffffffffffffffffffffffffff8316906323b872dd9061111a90309033908690600401611e2e565b600060405180830381600087803b15801561113457600080fd5b505af1158015611148573d6000803e3d6000fd5b5050505050505050565b6060637996a27160e01b826040516024016101729190611e5f565b6040805160048152602481019091526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167f8c0e562b0000000000000000000000000000000000000000000000000000000017905290565b6000828211156111e0576111e0610090600285856113ab565b50900390565b6000808460e001516000148061121257506101608501516101a08601516112129163ffffffff61152c16565b1561128057600061122c8660a00151876080015186611552565b905061123661172e565b61124187838861157c565b9050611272816080015161126683606001518460200151610b8f90919063ffffffff16565b9063ffffffff610b8f16565b905190935091506113319050565b6101408501516101a086015161129b9163ffffffff61152c16565b156113205760006112cb8660a001516112c58860e0015189608001516111c790919063ffffffff16565b86611552565b90506112d561172e565b6112e087838861157c565b90506112fd81608001518260200151610b8f90919063ffffffff16565b60608201518251919550611317919063ffffffff6111c716565b92505050611331565b611331610090866101a001516116e9565b935093915050565b60606391353a0c60e01b8383604051602401610e98929190612039565b6060631174fb8060e01b826040516024016101729190612030565b606063cdcbed5d60e01b8383604051602401610e98929190612039565b606063ecf40fd960e01b8383604051602401610e98929190612039565b606063e946c1bb60e01b848484604051602401610df593929190611e9f565b6000826113d957506000610664565b828202828482816113e657fe5b0414610bab57610bab610090600186866113ab565b60008161141157611411610090600385856113ab565b600082848161141c57fe5b04949350505050565b6000808460e001516000148061145157506101408501516101a08601516114519163ffffffff61152c16565b156114a85761145e61172e565b61146986858761157c565b905061148681608001518260200151610b8f90919063ffffffff16565b606082015182519194506114a0919063ffffffff6111c716565b915050611331565b6101608501516101a08601516114c39163ffffffff61152c16565b156113205760a085015160e086015160009161122c916112c590829063ffffffff610b8f16565b6060635e7eb60f60e01b826040516024016101729190611e8c565b606063baffa47460e01b826040516024016101729190612030565b6000610bab8383611704565b600081518351148015610bab575081805190602001208380519060200120149392505050565b6000610bd483610bc861156c82600163ffffffff6111c716565b611266888763ffffffff6113ca16565b61158461172e565b6040516060907f9b44d55600000000000000000000000000000000000000000000000000000000906115be90879087908790602401611ecf565b604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe08184030181529181526020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fffffffff0000000000000000000000000000000000000000000000000000000090941693909317909252600154915190925073ffffffffffffffffffffffffffffffffffffffff90911690600090606090839061166f908690611d29565b6000604051808303816000865af19150503d80600081146116ac576040519150601f19603f3d011682016040523d82523d6000602084013e6116b1565b606091505b509150915081156116de57805160a0146116c757fe5b808060200190516116db9190810190611c50565b94505b505050509392505050565b60606331360af160e01b826040516024016101729190611e8c565b60008160200183511015611725576117256100906005855185602001610dd6565b50016020015190565b6040518060a0016040528060008152602001600081526020016000815260200160008152602001600081525090565b8035610664816120d4565b600082601f830112611778578081fd5b813561178b61178682612084565b61205d565b8181529150602080830190840160005b838110156117c8576117b387602084358901016119e1565b8352602092830192919091019060010161179b565b5050505092915050565b600082601f8301126117e2578081fd5b81356117f061178682612084565b818152915060208083019084810160005b8481101561198f57813587016101c0807fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0838c0301121561184157600080fd5b61184a8161205d565b6118568b87850161175d565b81526118658b6040850161175d565b868201526118768b6060850161175d565b60408201526118888b6080850161175d565b606082015260a0830135608082015260c083013560a082015260e083013560c08201526101008084013560e0830152610120808501358284015261014091508185013581840152506101608085013567ffffffffffffffff808211156118ed57600080fd5b6118fb8f8b848a01016119e1565b8486015261018093508387013591508082111561191757600080fd5b6119258f8b848a01016119e1565b838601526101a092508287013591508082111561194157600080fd5b61194f8f8b848a01016119e1565b848601528587013593508084111561196657600080fd5b50506119768d89848801016119e1565b9083015250865250509282019290820190600101611801565b505050505092915050565b60008083601f8401126119ab578182fd5b50813567ffffffffffffffff8111156119c2578182fd5b6020830191508360208285010111156119da57600080fd5b9250929050565b600082601f8301126119f1578081fd5b813567ffffffffffffffff811115611a07578182fd5b611a3860207fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f8401160161205d565b9150808252836020828501011115611a4f57600080fd5b8060208401602084013760009082016020015292915050565b600060208284031215611a79578081fd5b8135610bab816120d4565b600060208284031215611a95578081fd5b8151610bab816120d4565b60008060008060808587031215611ab5578283fd5b843567ffffffffffffffff80821115611acc578485fd5b611ad8888389016117d2565b95506020870135915080821115611aed578485fd5b50611afa87828801611768565b935050604085013591506060850135611b12816120d4565b939692955090935050565b600080600080600060a08688031215611b34578081fd5b853567ffffffffffffffff80821115611b4b578283fd5b611b5789838a016117d2565b9650602088013595506040880135915080821115611b73578283fd5b50611b8088828901611768565b935050606086013591506080860135611b98816120d4565b809150509295509295909350565b600060208284031215611bb7578081fd5b81518015158114610bab578182fd5b60008060208385031215611bd8578182fd5b823567ffffffffffffffff811115611bee578283fd5b611bfa8582860161199a565b90969095509350505050565b600080600060408486031215611c1a578283fd5b833567ffffffffffffffff811115611c30578384fd5b611c3c8682870161199a565b909790965060209590950135949350505050565b600060a0828403128015611c62578182fd5b8015611c6c578182fd5b50611c7760a061205d565b82518152602083015160208201526040830151604082015260608301516060820152608083015160808201528091505092915050565b600060208284031215611cbe578081fd5b5051919050565b73ffffffffffffffffffffffffffffffffffffffff169052565b60008151808452611cf78160208601602086016120a4565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0169290920160200192915050565b60008251611d3b8184602087016120a4565b9190910192915050565b7f455243373231546f6b656e28616464726573732c75696e7432353629000000008152601c0190565b7f7472616e7366657228616464726573732c75696e743235362900000000000000815260190190565b7f4552433230546f6b656e28616464726573732900000000000000000000000000815260130190565b73ffffffffffffffffffffffffffffffffffffffff91909116815260200190565b73ffffffffffffffffffffffffffffffffffffffff929092168252602082015260400190565b73ffffffffffffffffffffffffffffffffffffffff92831681529116602082015260400190565b73ffffffffffffffffffffffffffffffffffffffff9384168152919092166020820152604081019190915260600190565b7fffffffff0000000000000000000000000000000000000000000000000000000091909116815260200190565b600060208252610bab6020830184611cdf565b6060810160048510611ead57fe5b938152602081019290925260409091015290565b6060810160088510611ead57fe5b600060608252611ee3606083018651611cc5565b6020850151611ef56080840182611cc5565b506040850151611f0860a0840182611cc5565b506060850151611f1b60c0840182611cc5565b50608085015160e083015260a0850151610100818185015260c08701519150610120828186015260e0880151925061014083818701528289015193506101609250838387015281890151935061018091508382870152808901519350506101c06101a08181880152611f91610220880186611cdf565b848b015195507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffa09450848882030183890152611fcd8187611cdf565b925050828a0151945083878303016101e0880152611feb8286611cdf565b9250808a015194505050818582030161020086015261200a8184611cdf565b91505085602085015283810360408501526120258186611cdf565b979650505050505050565b90815260200190565b918252602082015260400190565b9283526020830191909152604082015260600190565b60405181810167ffffffffffffffff8111828210171561207c57600080fd5b604052919050565b600067ffffffffffffffff82111561209a578081fd5b5060209081020190565b60005b838110156120bf5781810151838201526020016120a7565b838111156120ce576000848401525b50505050565b73ffffffffffffffffffffffffffffffffffffffff8116811461061157600080fdfea365627a7a72315820afeb88c9cc19090963cb885eb76d709ca1a151f8f73996031898e2b50578a89b6c6578706572696d656e74616cf564736f6c634300050c0040" - -*Defined in [abi-gen-wrappers/src/generated-wrappers/forwarder.ts:31](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/forwarder.ts#L31)* - -## Methods - -### evmExecAsync - -▸ **evmExecAsync**(`input`: `Buffer`): *`Promise`* - - - -Defined in base-contract/lib/src/index.d.ts:42 - -**Parameters:** - -Name | Type | ------- | ------ | -`input` | `Buffer` | - -**Returns:** *`Promise`* - -___ - -### `Static` ABI - -▸ **ABI**(): *[ContractAbi](#contractabi)* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/forwarder.ts:1595](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/forwarder.ts#L1595)* - -**Returns:** *[ContractAbi](#contractabi)* - -The contract ABI - -___ - -### `Static` deployAsync - -▸ **deployAsync**(`bytecode`: string, `abi`: [ContractAbi](#contractabi), `supportedProvider`: [SupportedProvider](#supportedprovider), `txDefaults`: `Partial`, `logDecodeDependencies`: object, `_exchange`: string, `_wethAssetData`: string): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/forwarder.ts:1547](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/forwarder.ts#L1547)* - -**Parameters:** - -Name | Type | ------- | ------ | -`bytecode` | string | -`abi` | [ContractAbi](#contractabi) | -`supportedProvider` | [SupportedProvider](#supportedprovider) | -`txDefaults` | `Partial` | -`logDecodeDependencies` | object | -`_exchange` | string | -`_wethAssetData` | string | - -**Returns:** *`Promise`* - -___ - -### `Static` deployFrom0xArtifactAsync - -▸ **deployFrom0xArtifactAsync**(`artifact`: `ContractArtifact` | `SimpleContractArtifact`, `supportedProvider`: [SupportedProvider](#supportedprovider), `txDefaults`: `Partial`, `logDecodeDependencies`: object, `_exchange`: string, `_wethAssetData`: string): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/forwarder.ts:1512](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/forwarder.ts#L1512)* - -**Parameters:** - -Name | Type | ------- | ------ | -`artifact` | `ContractArtifact` \| `SimpleContractArtifact` | -`supportedProvider` | [SupportedProvider](#supportedprovider) | -`txDefaults` | `Partial` | -`logDecodeDependencies` | object | -`_exchange` | string | -`_wethAssetData` | string | - -**Returns:** *`Promise`* - -___ - -### `Static` strictArgumentEncodingCheck - -▸ **strictArgumentEncodingCheck**(`inputAbi`: `DataItem`[], `args`: any[]): *string* - - - -Defined in base-contract/lib/src/index.d.ts:41 - -**Parameters:** - -Name | Type | ------- | ------ | -`inputAbi` | `DataItem`[] | -`args` | any[] | - -**Returns:** *string* - -## Object literals - -### approveMakerAssetProxy - -#### ▪ **approveMakerAssetProxy**: *object* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/forwarder.ts:40](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/forwarder.ts#L40)* - -Approves the respective proxy for a given asset to transfer tokens on the Forwarder contract's behalf. -This is necessary because an order fee denominated in the maker asset (i.e. a percentage fee) is sent by the -Forwarder contract to the fee recipient. -This method needs to be called before forwarding orders of a maker asset that hasn't -previously been approved. - -#### awaitTransactionSuccessAsync - -▸ **awaitTransactionSuccessAsync**(`assetData`: string, `txData?`: `Partial`, `pollingIntervalMs?`: undefined | number, `timeoutMs?`: undefined | number): *`PromiseWithTransactionHash`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/forwarder.ts:75](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/forwarder.ts#L75)* - -Sends an Ethereum transaction and waits until the transaction has been successfully mined without reverting. -If the transaction was mined, but reverted, an error is thrown. - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`assetData` | string | Byte array encoded for the respective asset proxy. | -`txData?` | `Partial` | Additional data for transaction | -`pollingIntervalMs?` | undefined \| number | Interval at which to poll for success | -`timeoutMs?` | undefined \| number | - | - -**Returns:** *`PromiseWithTransactionHash`* - -A promise that resolves when the transaction is successful - -#### callAsync - -▸ **callAsync**(`assetData`: string, `callData`: `Partial`, `defaultBlock?`: [BlockParam](#blockparam)): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/forwarder.ts:135](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/forwarder.ts#L135)* - -Sends a read-only call to the contract method. Returns the result that would happen if one were to send an -Ethereum transaction to this method, given the current state of the blockchain. Calls do not cost gas -since they don't modify state. - -**Parameters:** - -Name | Type | Default | Description | ------- | ------ | ------ | ------ | -`assetData` | string | - | Byte array encoded for the respective asset proxy. | -`callData` | `Partial` | {} | - | -`defaultBlock?` | [BlockParam](#blockparam) | - | - | - -**Returns:** *`Promise`* - -#### estimateGasAsync - -▸ **estimateGasAsync**(`assetData`: string, `txData?`: `Partial` | undefined): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/forwarder.ts:102](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/forwarder.ts#L102)* - -Estimates the gas cost of sending an Ethereum transaction calling this method with these arguments. - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`assetData` | string | Byte array encoded for the respective asset proxy. | -`txData?` | `Partial` \| undefined | Additional data for transaction | - -**Returns:** *`Promise`* - -The hash of the transaction - -#### getABIDecodedReturnData - -▸ **getABIDecodedReturnData**(`returnData`: string): *void* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/forwarder.ts:202](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/forwarder.ts#L202)* - -Decode the ABI-encoded return data from a transaction - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`returnData` | string | the data returned after transaction execution | - -**Returns:** *void* - -An array representing the output results in order. Keynames of nested structs are preserved. - -#### getABIDecodedTransactionData - -▸ **getABIDecodedTransactionData**(`callData`: string): *[string]* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/forwarder.ts:190](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/forwarder.ts#L190)* - -Decode the ABI-encoded transaction data into its input arguments - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`callData` | string | The ABI-encoded transaction data | - -**Returns:** *[string]* - -An array representing the input arguments in order. Keynames of nested structs are preserved. - -#### getABIEncodedTransactionData - -▸ **getABIEncodedTransactionData**(`assetData`: string): *string* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/forwarder.ts:179](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/forwarder.ts#L179)* - -Returns the ABI encoded transaction data needed to send an Ethereum transaction calling this method. Before -sending the Ethereum tx, this encoded tx data can first be sent to a separate signing service or can be used -to create a 0x transaction (see protocol spec for more details). - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`assetData` | string | Byte array encoded for the respective asset proxy. | - -**Returns:** *string* - -The ABI encoded transaction data as a string - -#### sendTransactionAsync - -▸ **sendTransactionAsync**(`assetData`: string, `txData?`: `Partial` | undefined): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/forwarder.ts:48](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/forwarder.ts#L48)* - -Sends an Ethereum transaction executing this method with the supplied parameters. This is a read/write -Ethereum operation and will cost gas. - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`assetData` | string | Byte array encoded for the respective asset proxy. | -`txData?` | `Partial` \| undefined | Additional data for transaction | - -**Returns:** *`Promise`* - -The hash of the transaction - -#### validateAndSendTransactionAsync - -▸ **validateAndSendTransactionAsync**(`assetData`: string, `txData?`: `Partial` | undefined): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/forwarder.ts:121](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/forwarder.ts#L121)* - -**Parameters:** - -Name | Type | ------- | ------ | -`assetData` | string | -`txData?` | `Partial` \| undefined | - -**Returns:** *`Promise`* - -___ - -### marketBuyOrdersWithEth - -#### ▪ **marketBuyOrdersWithEth**: *object* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/forwarder.ts:216](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/forwarder.ts#L216)* - -Attempt to buy makerAssetBuyAmount of makerAsset by selling ETH provided with transaction. -The Forwarder may *fill* more than makerAssetBuyAmount of the makerAsset so that it can -pay takerFees where takerFeeAssetData == makerAssetData (i.e. percentage fees). -Any ETH not spent will be refunded to sender. - -#### awaitTransactionSuccessAsync - -▸ **awaitTransactionSuccessAsync**(`orders`: `Array`, `makerAssetBuyAmount`: `BigNumber`, `signatures`: string[], `feePercentage`: `BigNumber`, `feeRecipient`: string, `txData?`: `Partial`, `pollingIntervalMs?`: undefined | number, `timeoutMs?`: undefined | number): *`PromiseWithTransactionHash`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/forwarder.ts:292](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/forwarder.ts#L292)* - -Sends an Ethereum transaction and waits until the transaction has been successfully mined without reverting. -If the transaction was mined, but reverted, an error is thrown. - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`orders` | `Array` | Array of order specifications used containing desired makerAsset and WETH as takerAsset. | -`makerAssetBuyAmount` | `BigNumber` | Desired amount of makerAsset to purchase. | -`signatures` | string[] | Proofs that orders have been created by makers. | -`feePercentage` | `BigNumber` | Percentage of WETH sold that will payed as fee to forwarding contract feeRecipient. | -`feeRecipient` | string | Address that will receive ETH when orders are filled. | -`txData?` | `Partial` | Additional data for transaction | -`pollingIntervalMs?` | undefined \| number | Interval at which to poll for success | -`timeoutMs?` | undefined \| number | - | - -**Returns:** *`PromiseWithTransactionHash`* - -A promise that resolves when the transaction is successful - -#### callAsync - -▸ **callAsync**(`orders`: `Array`, `makerAssetBuyAmount`: `BigNumber`, `signatures`: string[], `feePercentage`: `BigNumber`, `feeRecipient`: string, `callData`: `Partial`, `defaultBlock?`: [BlockParam](#blockparam)): *`Promise<[BigNumber, BigNumber, BigNumber]>`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/forwarder.ts:457](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/forwarder.ts#L457)* - -Sends a read-only call to the contract method. Returns the result that would happen if one were to send an -Ethereum transaction to this method, given the current state of the blockchain. Calls do not cost gas -since they don't modify state. - -**Parameters:** - -Name | Type | Default | Description | ------- | ------ | ------ | ------ | -`orders` | `Array` | - | Array of order specifications used containing desired makerAsset and WETH as takerAsset. | -`makerAssetBuyAmount` | `BigNumber` | - | Desired amount of makerAsset to purchase. | -`signatures` | string[] | - | Proofs that orders have been created by makers. | -`feePercentage` | `BigNumber` | - | Percentage of WETH sold that will payed as fee to forwarding contract feeRecipient. | -`feeRecipient` | string | - | Address that will receive ETH when orders are filled. | -`callData` | `Partial` | {} | - | -`defaultBlock?` | [BlockParam](#blockparam) | - | - | - -**Returns:** *`Promise<[BigNumber, BigNumber, BigNumber]>`* - -wethSpentAmount Amount of WETH spent on the given set of orders.makerAssetAcquiredAmount Amount of maker asset acquired from the given set of orders.ethFeePaid Amount of ETH spent on the given forwarder fee. - -#### estimateGasAsync - -▸ **estimateGasAsync**(`orders`: `Array`, `makerAssetBuyAmount`: `BigNumber`, `signatures`: string[], `feePercentage`: `BigNumber`, `feeRecipient`: string, `txData?`: `Partial` | undefined): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/forwarder.ts:355](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/forwarder.ts#L355)* - -Estimates the gas cost of sending an Ethereum transaction calling this method with these arguments. - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`orders` | `Array` | Array of order specifications used containing desired makerAsset and WETH as takerAsset. | -`makerAssetBuyAmount` | `BigNumber` | Desired amount of makerAsset to purchase. | -`signatures` | string[] | Proofs that orders have been created by makers. | -`feePercentage` | `BigNumber` | Percentage of WETH sold that will payed as fee to forwarding contract feeRecipient. | -`feeRecipient` | string | Address that will receive ETH when orders are filled. | -`txData?` | `Partial` \| undefined | Additional data for transaction | - -**Returns:** *`Promise`* - -The hash of the transaction - -#### getABIDecodedReturnData - -▸ **getABIDecodedReturnData**(`returnData`: string): *[`BigNumber`, `BigNumber`, `BigNumber`]* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/forwarder.ts:638](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/forwarder.ts#L638)* - -Decode the ABI-encoded return data from a transaction - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`returnData` | string | the data returned after transaction execution | - -**Returns:** *[`BigNumber`, `BigNumber`, `BigNumber`]* - -An array representing the output results in order. Keynames of nested structs are preserved. - -#### getABIDecodedTransactionData - -▸ **getABIDecodedTransactionData**(`callData`: string): *[`Array`, `BigNumber`, string[], `BigNumber`, string]* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/forwarder.ts:578](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/forwarder.ts#L578)* - -Decode the ABI-encoded transaction data into its input arguments - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`callData` | string | The ABI-encoded transaction data | - -**Returns:** *[`Array`, `BigNumber`, string[], `BigNumber`, string]* - -An array representing the input arguments in order. Keynames of nested structs are preserved. - -#### getABIEncodedTransactionData - -▸ **getABIEncodedTransactionData**(`orders`: `Array`, `makerAssetBuyAmount`: `BigNumber`, `signatures`: string[], `feePercentage`: `BigNumber`, `feeRecipient`: string): *string* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/forwarder.ts:539](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/forwarder.ts#L539)* - -Returns the ABI encoded transaction data needed to send an Ethereum transaction calling this method. Before -sending the Ethereum tx, this encoded tx data can first be sent to a separate signing service or can be used -to create a 0x transaction (see protocol spec for more details). - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`orders` | `Array` | Array of order specifications used containing desired makerAsset and WETH as takerAsset. | -`makerAssetBuyAmount` | `BigNumber` | Desired amount of makerAsset to purchase. | -`signatures` | string[] | Proofs that orders have been created by makers. | -`feePercentage` | `BigNumber` | Percentage of WETH sold that will payed as fee to forwarding contract feeRecipient. | -`feeRecipient` | string | Address that will receive ETH when orders are filled. | - -**Returns:** *string* - -The ABI encoded transaction data as a string - -#### sendTransactionAsync - -▸ **sendTransactionAsync**(`orders`: `Array`, `makerAssetBuyAmount`: `BigNumber`, `signatures`: string[], `feePercentage`: `BigNumber`, `feeRecipient`: string, `txData?`: `Partial` | undefined): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/forwarder.ts:230](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/forwarder.ts#L230)* - -Sends an Ethereum transaction executing this method with the supplied parameters. This is a read/write -Ethereum operation and will cost gas. - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`orders` | `Array` | Array of order specifications used containing desired makerAsset and WETH as takerAsset. | -`makerAssetBuyAmount` | `BigNumber` | Desired amount of makerAsset to purchase. | -`signatures` | string[] | Proofs that orders have been created by makers. | -`feePercentage` | `BigNumber` | Percentage of WETH sold that will payed as fee to forwarding contract feeRecipient. | -`feeRecipient` | string | Address that will receive ETH when orders are filled. | -`txData?` | `Partial` \| undefined | Additional data for transaction | - -**Returns:** *`Promise`* - -The hash of the transaction - -#### validateAndSendTransactionAsync - -▸ **validateAndSendTransactionAsync**(`orders`: `Array`, `makerAssetBuyAmount`: `BigNumber`, `signatures`: string[], `feePercentage`: `BigNumber`, `feeRecipient`: string, `txData?`: `Partial` | undefined): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/forwarder.ts:403](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/forwarder.ts#L403)* - -**Parameters:** - -Name | Type | ------- | ------ | -`orders` | `Array` | -`makerAssetBuyAmount` | `BigNumber` | -`signatures` | string[] | -`feePercentage` | `BigNumber` | -`feeRecipient` | string | -`txData?` | `Partial` \| undefined | - -**Returns:** *`Promise`* - -___ - -### marketSellOrdersWithEth - -#### ▪ **marketSellOrdersWithEth**: *object* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/forwarder.ts:654](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/forwarder.ts#L654)* - -Purchases as much of orders' makerAssets as possible by selling as much of the ETH value sent -as possible, accounting for order and forwarder fees. - -#### awaitTransactionSuccessAsync - -▸ **awaitTransactionSuccessAsync**(`orders`: `Array`, `signatures`: string[], `feePercentage`: `BigNumber`, `feeRecipient`: string, `txData?`: `Partial`, `pollingIntervalMs?`: undefined | number, `timeoutMs?`: undefined | number): *`PromiseWithTransactionHash`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/forwarder.ts:726](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/forwarder.ts#L726)* - -Sends an Ethereum transaction and waits until the transaction has been successfully mined without reverting. -If the transaction was mined, but reverted, an error is thrown. - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`orders` | `Array` | Array of order specifications used containing desired makerAsset and WETH as takerAsset. | -`signatures` | string[] | Proofs that orders have been created by makers. | -`feePercentage` | `BigNumber` | Percentage of WETH sold that will payed as fee to forwarding contract feeRecipient. | -`feeRecipient` | string | Address that will receive ETH when orders are filled. | -`txData?` | `Partial` | Additional data for transaction | -`pollingIntervalMs?` | undefined \| number | Interval at which to poll for success | -`timeoutMs?` | undefined \| number | - | - -**Returns:** *`PromiseWithTransactionHash`* - -A promise that resolves when the transaction is successful - -#### callAsync - -▸ **callAsync**(`orders`: `Array`, `signatures`: string[], `feePercentage`: `BigNumber`, `feeRecipient`: string, `callData`: `Partial`, `defaultBlock?`: [BlockParam](#blockparam)): *`Promise<[BigNumber, BigNumber, BigNumber]>`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/forwarder.ts:881](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/forwarder.ts#L881)* - -Sends a read-only call to the contract method. Returns the result that would happen if one were to send an -Ethereum transaction to this method, given the current state of the blockchain. Calls do not cost gas -since they don't modify state. - -**Parameters:** - -Name | Type | Default | Description | ------- | ------ | ------ | ------ | -`orders` | `Array` | - | Array of order specifications used containing desired makerAsset and WETH as takerAsset. | -`signatures` | string[] | - | Proofs that orders have been created by makers. | -`feePercentage` | `BigNumber` | - | Percentage of WETH sold that will payed as fee to forwarding contract feeRecipient. | -`feeRecipient` | string | - | Address that will receive ETH when orders are filled. | -`callData` | `Partial` | {} | - | -`defaultBlock?` | [BlockParam](#blockparam) | - | - | - -**Returns:** *`Promise<[BigNumber, BigNumber, BigNumber]>`* - -wethSpentAmount Amount of WETH spent on the given set of orders.makerAssetAcquiredAmount Amount of maker asset acquired from the given set of orders.ethFeePaid Amount of ETH spent on the given forwarder fee. - -#### estimateGasAsync - -▸ **estimateGasAsync**(`orders`: `Array`, `signatures`: string[], `feePercentage`: `BigNumber`, `feeRecipient`: string, `txData?`: `Partial` | undefined): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/forwarder.ts:785](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/forwarder.ts#L785)* - -Estimates the gas cost of sending an Ethereum transaction calling this method with these arguments. - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`orders` | `Array` | Array of order specifications used containing desired makerAsset and WETH as takerAsset. | -`signatures` | string[] | Proofs that orders have been created by makers. | -`feePercentage` | `BigNumber` | Percentage of WETH sold that will payed as fee to forwarding contract feeRecipient. | -`feeRecipient` | string | Address that will receive ETH when orders are filled. | -`txData?` | `Partial` \| undefined | Additional data for transaction | - -**Returns:** *`Promise`* - -The hash of the transaction - -#### getABIDecodedReturnData - -▸ **getABIDecodedReturnData**(`returnData`: string): *[`BigNumber`, `BigNumber`, `BigNumber`]* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/forwarder.ts:1055](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/forwarder.ts#L1055)* - -Decode the ABI-encoded return data from a transaction - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`returnData` | string | the data returned after transaction execution | - -**Returns:** *[`BigNumber`, `BigNumber`, `BigNumber`]* - -An array representing the output results in order. Keynames of nested structs are preserved. - -#### getABIDecodedTransactionData - -▸ **getABIDecodedTransactionData**(`callData`: string): *[`Array`, string[], `BigNumber`, string]* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/forwarder.ts:997](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/forwarder.ts#L997)* - -Decode the ABI-encoded transaction data into its input arguments - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`callData` | string | The ABI-encoded transaction data | - -**Returns:** *[`Array`, string[], `BigNumber`, string]* - -An array representing the input arguments in order. Keynames of nested structs are preserved. - -#### getABIEncodedTransactionData - -▸ **getABIEncodedTransactionData**(`orders`: `Array`, `signatures`: string[], `feePercentage`: `BigNumber`, `feeRecipient`: string): *string* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/forwarder.ts:960](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/forwarder.ts#L960)* - -Returns the ABI encoded transaction data needed to send an Ethereum transaction calling this method. Before -sending the Ethereum tx, this encoded tx data can first be sent to a separate signing service or can be used -to create a 0x transaction (see protocol spec for more details). - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`orders` | `Array` | Array of order specifications used containing desired makerAsset and WETH as takerAsset. | -`signatures` | string[] | Proofs that orders have been created by makers. | -`feePercentage` | `BigNumber` | Percentage of WETH sold that will payed as fee to forwarding contract feeRecipient. | -`feeRecipient` | string | Address that will receive ETH when orders are filled. | - -**Returns:** *string* - -The ABI encoded transaction data as a string - -#### sendTransactionAsync - -▸ **sendTransactionAsync**(`orders`: `Array`, `signatures`: string[], `feePercentage`: `BigNumber`, `feeRecipient`: string, `txData?`: `Partial` | undefined): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/forwarder.ts:667](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/forwarder.ts#L667)* - -Sends an Ethereum transaction executing this method with the supplied parameters. This is a read/write -Ethereum operation and will cost gas. - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`orders` | `Array` | Array of order specifications used containing desired makerAsset and WETH as takerAsset. | -`signatures` | string[] | Proofs that orders have been created by makers. | -`feePercentage` | `BigNumber` | Percentage of WETH sold that will payed as fee to forwarding contract feeRecipient. | -`feeRecipient` | string | Address that will receive ETH when orders are filled. | -`txData?` | `Partial` \| undefined | Additional data for transaction | - -**Returns:** *`Promise`* - -The hash of the transaction - -#### validateAndSendTransactionAsync - -▸ **validateAndSendTransactionAsync**(`orders`: `Array`, `signatures`: string[], `feePercentage`: `BigNumber`, `feeRecipient`: string, `txData?`: `Partial` | undefined): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/forwarder.ts:831](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/forwarder.ts#L831)* - -**Parameters:** - -Name | Type | ------- | ------ | -`orders` | `Array` | -`signatures` | string[] | -`feePercentage` | `BigNumber` | -`feeRecipient` | string | -`txData?` | `Partial` \| undefined | - -**Returns:** *`Promise`* - -___ - -### owner - -#### ▪ **owner**: *object* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/forwarder.ts:1067](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/forwarder.ts#L1067)* - -#### callAsync - -▸ **callAsync**(`callData`: `Partial`, `defaultBlock?`: [BlockParam](#blockparam)): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/forwarder.ts:1073](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/forwarder.ts#L1073)* - -Sends a read-only call to the contract method. Returns the result that would happen if one were to send an -Ethereum transaction to this method, given the current state of the blockchain. Calls do not cost gas -since they don't modify state. - -**Parameters:** - -Name | Type | Default | ------- | ------ | ------ | -`callData` | `Partial` | {} | -`defaultBlock?` | [BlockParam](#blockparam) | - | - -**Returns:** *`Promise`* - -#### getABIDecodedReturnData - -▸ **getABIDecodedReturnData**(`returnData`: string): *string* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/forwarder.ts:1137](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/forwarder.ts#L1137)* - -Decode the ABI-encoded return data from a transaction - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`returnData` | string | the data returned after transaction execution | - -**Returns:** *string* - -An array representing the output results in order. Keynames of nested structs are preserved. - -#### getABIDecodedTransactionData - -▸ **getABIDecodedTransactionData**(`callData`: string): *void* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/forwarder.ts:1125](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/forwarder.ts#L1125)* - -Decode the ABI-encoded transaction data into its input arguments - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`callData` | string | The ABI-encoded transaction data | - -**Returns:** *void* - -An array representing the input arguments in order. Keynames of nested structs are preserved. - -#### getABIEncodedTransactionData - -▸ **getABIEncodedTransactionData**(): *string* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/forwarder.ts:1115](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/forwarder.ts#L1115)* - -Returns the ABI encoded transaction data needed to send an Ethereum transaction calling this method. Before -sending the Ethereum tx, this encoded tx data can first be sent to a separate signing service or can be used -to create a 0x transaction (see protocol spec for more details). - -**Returns:** *string* - -The ABI encoded transaction data as a string - -___ - -### transferOwnership - -#### ▪ **transferOwnership**: *object* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/forwarder.ts:1145](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/forwarder.ts#L1145)* - -#### awaitTransactionSuccessAsync - -▸ **awaitTransactionSuccessAsync**(`newOwner`: string, `txData?`: `Partial`, `pollingIntervalMs?`: undefined | number, `timeoutMs?`: undefined | number): *`PromiseWithTransactionHash`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/forwarder.ts:1178](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/forwarder.ts#L1178)* - -Sends an Ethereum transaction and waits until the transaction has been successfully mined without reverting. -If the transaction was mined, but reverted, an error is thrown. - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`newOwner` | string | - | -`txData?` | `Partial` | Additional data for transaction | -`pollingIntervalMs?` | undefined \| number | Interval at which to poll for success | -`timeoutMs?` | undefined \| number | - | - -**Returns:** *`PromiseWithTransactionHash`* - -A promise that resolves when the transaction is successful - -#### callAsync - -▸ **callAsync**(`newOwner`: string, `callData`: `Partial`, `defaultBlock?`: [BlockParam](#blockparam)): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/forwarder.ts:1233](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/forwarder.ts#L1233)* - -Sends a read-only call to the contract method. Returns the result that would happen if one were to send an -Ethereum transaction to this method, given the current state of the blockchain. Calls do not cost gas -since they don't modify state. - -**Parameters:** - -Name | Type | Default | ------- | ------ | ------ | -`newOwner` | string | - | -`callData` | `Partial` | {} | -`defaultBlock?` | [BlockParam](#blockparam) | - | - -**Returns:** *`Promise`* - -#### estimateGasAsync - -▸ **estimateGasAsync**(`newOwner`: string, `txData?`: `Partial` | undefined): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/forwarder.ts:1204](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/forwarder.ts#L1204)* - -Estimates the gas cost of sending an Ethereum transaction calling this method with these arguments. - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`newOwner` | string | - | -`txData?` | `Partial` \| undefined | Additional data for transaction | - -**Returns:** *`Promise`* - -The hash of the transaction - -#### getABIDecodedReturnData - -▸ **getABIDecodedReturnData**(`returnData`: string): *void* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/forwarder.ts:1301](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/forwarder.ts#L1301)* - -Decode the ABI-encoded return data from a transaction - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`returnData` | string | the data returned after transaction execution | - -**Returns:** *void* - -An array representing the output results in order. Keynames of nested structs are preserved. - -#### getABIDecodedTransactionData - -▸ **getABIDecodedTransactionData**(`callData`: string): *[string]* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/forwarder.ts:1289](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/forwarder.ts#L1289)* - -Decode the ABI-encoded transaction data into its input arguments - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`callData` | string | The ABI-encoded transaction data | - -**Returns:** *[string]* - -An array representing the input arguments in order. Keynames of nested structs are preserved. - -#### getABIEncodedTransactionData - -▸ **getABIEncodedTransactionData**(`newOwner`: string): *string* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/forwarder.ts:1276](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/forwarder.ts#L1276)* - -Returns the ABI encoded transaction data needed to send an Ethereum transaction calling this method. Before -sending the Ethereum tx, this encoded tx data can first be sent to a separate signing service or can be used -to create a 0x transaction (see protocol spec for more details). - -**Parameters:** - -Name | Type | ------- | ------ | -`newOwner` | string | - -**Returns:** *string* - -The ABI encoded transaction data as a string - -#### sendTransactionAsync - -▸ **sendTransactionAsync**(`newOwner`: string, `txData?`: `Partial` | undefined): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/forwarder.ts:1152](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/forwarder.ts#L1152)* - -Sends an Ethereum transaction executing this method with the supplied parameters. This is a read/write -Ethereum operation and will cost gas. - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`newOwner` | string | - | -`txData?` | `Partial` \| undefined | Additional data for transaction | - -**Returns:** *`Promise`* - -The hash of the transaction - -#### validateAndSendTransactionAsync - -▸ **validateAndSendTransactionAsync**(`newOwner`: string, `txData?`: `Partial` | undefined): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/forwarder.ts:1223](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/forwarder.ts#L1223)* - -**Parameters:** - -Name | Type | ------- | ------ | -`newOwner` | string | -`txData?` | `Partial` \| undefined | - -**Returns:** *`Promise`* - -___ - -### withdrawAsset - -#### ▪ **withdrawAsset**: *object* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/forwarder.ts:1314](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/forwarder.ts#L1314)* - -Withdraws assets from this contract. The contract formerly required a ZRX balance in order -to function optimally, and this function allows the ZRX to be withdrawn by owner. -It may also be used to withdraw assets that were accidentally sent to this contract. - -#### awaitTransactionSuccessAsync - -▸ **awaitTransactionSuccessAsync**(`assetData`: string, `amount`: `BigNumber`, `txData?`: `Partial`, `pollingIntervalMs?`: undefined | number, `timeoutMs?`: undefined | number): *`PromiseWithTransactionHash`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/forwarder.ts:1356](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/forwarder.ts#L1356)* - -Sends an Ethereum transaction and waits until the transaction has been successfully mined without reverting. -If the transaction was mined, but reverted, an error is thrown. - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`assetData` | string | Byte array encoded for the respective asset proxy. | -`amount` | `BigNumber` | Amount of ERC20 token to withdraw. | -`txData?` | `Partial` | Additional data for transaction | -`pollingIntervalMs?` | undefined \| number | Interval at which to poll for success | -`timeoutMs?` | undefined \| number | - | - -**Returns:** *`PromiseWithTransactionHash`* - -A promise that resolves when the transaction is successful - -#### callAsync - -▸ **callAsync**(`assetData`: string, `amount`: `BigNumber`, `callData`: `Partial`, `defaultBlock?`: [BlockParam](#blockparam)): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/forwarder.ts:1426](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/forwarder.ts#L1426)* - -Sends a read-only call to the contract method. Returns the result that would happen if one were to send an -Ethereum transaction to this method, given the current state of the blockchain. Calls do not cost gas -since they don't modify state. - -**Parameters:** - -Name | Type | Default | Description | ------- | ------ | ------ | ------ | -`assetData` | string | - | Byte array encoded for the respective asset proxy. | -`amount` | `BigNumber` | - | Amount of ERC20 token to withdraw. | -`callData` | `Partial` | {} | - | -`defaultBlock?` | [BlockParam](#blockparam) | - | - | - -**Returns:** *`Promise`* - -#### estimateGasAsync - -▸ **estimateGasAsync**(`assetData`: string, `amount`: `BigNumber`, `txData?`: `Partial` | undefined): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/forwarder.ts:1386](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/forwarder.ts#L1386)* - -Estimates the gas cost of sending an Ethereum transaction calling this method with these arguments. - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`assetData` | string | Byte array encoded for the respective asset proxy. | -`amount` | `BigNumber` | Amount of ERC20 token to withdraw. | -`txData?` | `Partial` \| undefined | Additional data for transaction | - -**Returns:** *`Promise`* - -The hash of the transaction - -#### getABIDecodedReturnData - -▸ **getABIDecodedReturnData**(`returnData`: string): *void* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/forwarder.ts:1504](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/forwarder.ts#L1504)* - -Decode the ABI-encoded return data from a transaction - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`returnData` | string | the data returned after transaction execution | - -**Returns:** *void* - -An array representing the output results in order. Keynames of nested structs are preserved. - -#### getABIDecodedTransactionData - -▸ **getABIDecodedTransactionData**(`callData`: string): *[string, `BigNumber`]* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/forwarder.ts:1492](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/forwarder.ts#L1492)* - -Decode the ABI-encoded transaction data into its input arguments - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`callData` | string | The ABI-encoded transaction data | - -**Returns:** *[string, `BigNumber`]* - -An array representing the input arguments in order. Keynames of nested structs are preserved. - -#### getABIEncodedTransactionData - -▸ **getABIEncodedTransactionData**(`assetData`: string, `amount`: `BigNumber`): *string* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/forwarder.ts:1477](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/forwarder.ts#L1477)* - -Returns the ABI encoded transaction data needed to send an Ethereum transaction calling this method. Before -sending the Ethereum tx, this encoded tx data can first be sent to a separate signing service or can be used -to create a 0x transaction (see protocol spec for more details). - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`assetData` | string | Byte array encoded for the respective asset proxy. | -`amount` | `BigNumber` | Amount of ERC20 token to withdraw. | - -**Returns:** *string* - -The ABI encoded transaction data as a string - -#### sendTransactionAsync - -▸ **sendTransactionAsync**(`assetData`: string, `amount`: `BigNumber`, `txData?`: `Partial` | undefined): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/forwarder.ts:1323](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/forwarder.ts#L1323)* - -Sends an Ethereum transaction executing this method with the supplied parameters. This is a read/write -Ethereum operation and will cost gas. - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`assetData` | string | Byte array encoded for the respective asset proxy. | -`amount` | `BigNumber` | Amount of ERC20 token to withdraw. | -`txData?` | `Partial` \| undefined | Additional data for transaction | - -**Returns:** *`Promise`* - -The hash of the transaction - -#### validateAndSendTransactionAsync - -▸ **validateAndSendTransactionAsync**(`assetData`: string, `amount`: `BigNumber`, `txData?`: `Partial` | undefined): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/forwarder.ts:1410](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/forwarder.ts#L1410)* - -**Parameters:** - -Name | Type | ------- | ------ | -`assetData` | string | -`amount` | `BigNumber` | -`txData?` | `Partial` \| undefined | - -**Returns:** *`Promise`* - -
- -# Class: IValidatorContract - - -## Constructors - - - -\+ **new IValidatorContract**(`address`: string, `supportedProvider`: [SupportedProvider](#supportedprovider), `txDefaults?`: `Partial`, `logDecodeDependencies?`: undefined | object, `deployedBytecode`: string | undefined): *[IValidatorContract](#class-ivalidatorcontract)* - -*Overrides void* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/i_validator.ts:238](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/i_validator.ts#L238)* - -**Parameters:** - -Name | Type | Default | ------- | ------ | ------ | -`address` | string | - | -`supportedProvider` | [SupportedProvider](#supportedprovider) | - | -`txDefaults?` | `Partial` | - | -`logDecodeDependencies?` | undefined \| object | - | -`deployedBytecode` | string \| undefined | IValidatorContract.deployedBytecode | - -**Returns:** *[IValidatorContract](#class-ivalidatorcontract)* - -## Properties - -#### abi - -• **abi**: *[ContractAbi](#contractabi)* - - - -Defined in base-contract/lib/src/index.d.ts:27 - -___ - -### address - -• **address**: *string* - - - -Defined in base-contract/lib/src/index.d.ts:28 - -___ - -Args - -• **constructorArgs**: *any[]* - - - -Defined in base-contract/lib/src/index.d.ts:30 - -___ - -### contractName - -• **contractName**: *string* - - - -Defined in base-contract/lib/src/index.d.ts:29 - -___ - -### `Static` deployedBytecode - -▪ **deployedBytecode**: *string | undefined* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/i_validator.ts:31](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/i_validator.ts#L31)* - -## Methods - -### evmExecAsync - -▸ **evmExecAsync**(`input`: `Buffer`): *`Promise`* - - - -Defined in base-contract/lib/src/index.d.ts:42 - -**Parameters:** - -Name | Type | ------- | ------ | -`input` | `Buffer` | - -**Returns:** *`Promise`* - -___ - -### `Static` ABI - -▸ **ABI**(): *[ContractAbi](#contractabi)* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/i_validator.ts:207](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/i_validator.ts#L207)* - -**Returns:** *[ContractAbi](#contractabi)* - -The contract ABI - -___ - -### `Static` deployAsync - -▸ **deployAsync**(`bytecode`: string, `abi`: [ContractAbi](#contractabi), `supportedProvider`: [SupportedProvider](#supportedprovider), `txDefaults`: `Partial`, `logDecodeDependencies`: object): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/i_validator.ts:165](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/i_validator.ts#L165)* - -**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 [abi-gen-wrappers/src/generated-wrappers/i_validator.ts:140](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/i_validator.ts#L140)* - -**Parameters:** - -Name | Type | ------- | ------ | -`artifact` | `ContractArtifact` \| `SimpleContractArtifact` | -`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:41 - -**Parameters:** - -Name | Type | ------- | ------ | -`inputAbi` | `DataItem`[] | -`args` | any[] | - -**Returns:** *string* - -## Object literals - -### isValidSignature - -#### ▪ **isValidSignature**: *object* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/i_validator.ts:35](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/i_validator.ts#L35)* - -Verifies that a signature is valid. - -#### callAsync - -▸ **callAsync**(`hash`: string, `signerAddress`: string, `signature`: string, `callData`: `Partial`, `defaultBlock?`: [BlockParam](#blockparam)): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/i_validator.ts:45](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/i_validator.ts#L45)* - -Sends a read-only call to the contract method. Returns the result that would happen if one were to send an -Ethereum transaction to this method, given the current state of the blockchain. Calls do not cost gas -since they don't modify state. - -**Parameters:** - -Name | Type | Default | Description | ------- | ------ | ------ | ------ | -`hash` | string | - | Message hash that is signed. | -`signerAddress` | string | - | Address that should have signed the given hash. | -`signature` | string | - | Proof of signing. | -`callData` | `Partial` | {} | - | -`defaultBlock?` | [BlockParam](#blockparam) | - | - | - -**Returns:** *`Promise`* - -Magic bytes4 value if the signature is valid. Magic value is bytes4(keccak256("isValidValidatorSignature(address,bytes32,address,bytes)")) - -#### getABIDecodedReturnData - -▸ **getABIDecodedReturnData**(`returnData`: string): *string* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/i_validator.ts:132](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/i_validator.ts#L132)* - -Decode the ABI-encoded return data from a transaction - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`returnData` | string | the data returned after transaction execution | - -**Returns:** *string* - -An array representing the output results in order. Keynames of nested structs are preserved. - -#### getABIDecodedTransactionData - -▸ **getABIDecodedTransactionData**(`callData`: string): *string* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/i_validator.ts:120](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/i_validator.ts#L120)* - -Decode the ABI-encoded transaction data into its input arguments - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`callData` | string | The ABI-encoded transaction data | - -**Returns:** *string* - -An array representing the input arguments in order. Keynames of nested structs are preserved. - -#### getABIEncodedTransactionData - -▸ **getABIEncodedTransactionData**(`hash`: string, `signerAddress`: string, `signature`: string): *string* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/i_validator.ts:103](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/i_validator.ts#L103)* - -Returns the ABI encoded transaction data needed to send an Ethereum transaction calling this method. Before -sending the Ethereum tx, this encoded tx data can first be sent to a separate signing service or can be used -to create a 0x transaction (see protocol spec for more details). - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`hash` | string | Message hash that is signed. | -`signerAddress` | string | Address that should have signed the given hash. | -`signature` | string | Proof of signing. | - -**Returns:** *string* - -The ABI encoded transaction data as a string - -
- -# Class: IWalletContract - - -## Constructors - - - -\+ **new IWalletContract**(`address`: string, `supportedProvider`: [SupportedProvider](#supportedprovider), `txDefaults?`: `Partial`, `logDecodeDependencies?`: undefined | object, `deployedBytecode`: string | undefined): *[IWalletContract](#class-iwalletcontract)* - -*Overrides void* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/i_wallet.ts:224](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/i_wallet.ts#L224)* - -**Parameters:** - -Name | Type | Default | ------- | ------ | ------ | -`address` | string | - | -`supportedProvider` | [SupportedProvider](#supportedprovider) | - | -`txDefaults?` | `Partial` | - | -`logDecodeDependencies?` | undefined \| object | - | -`deployedBytecode` | string \| undefined | IWalletContract.deployedBytecode | - -**Returns:** *[IWalletContract](#class-iwalletcontract)* - -## Properties - -#### abi - -• **abi**: *[ContractAbi](#contractabi)* - - - -Defined in base-contract/lib/src/index.d.ts:27 - -___ - -### address - -• **address**: *string* - - - -Defined in base-contract/lib/src/index.d.ts:28 - -___ - -Args - -• **constructorArgs**: *any[]* - - - -Defined in base-contract/lib/src/index.d.ts:30 - -___ - -### contractName - -• **contractName**: *string* - - - -Defined in base-contract/lib/src/index.d.ts:29 - -___ - -### `Static` deployedBytecode - -▪ **deployedBytecode**: *string | undefined* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/i_wallet.ts:31](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/i_wallet.ts#L31)* - -## Methods - -### evmExecAsync - -▸ **evmExecAsync**(`input`: `Buffer`): *`Promise`* - - - -Defined in base-contract/lib/src/index.d.ts:42 - -**Parameters:** - -Name | Type | ------- | ------ | -`input` | `Buffer` | - -**Returns:** *`Promise`* - -___ - -### `Static` ABI - -▸ **ABI**(): *[ContractAbi](#contractabi)* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/i_wallet.ts:197](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/i_wallet.ts#L197)* - -**Returns:** *[ContractAbi](#contractabi)* - -The contract ABI - -___ - -### `Static` deployAsync - -▸ **deployAsync**(`bytecode`: string, `abi`: [ContractAbi](#contractabi), `supportedProvider`: [SupportedProvider](#supportedprovider), `txDefaults`: `Partial`, `logDecodeDependencies`: object): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/i_wallet.ts:155](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/i_wallet.ts#L155)* - -**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 [abi-gen-wrappers/src/generated-wrappers/i_wallet.ts:130](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/i_wallet.ts#L130)* - -**Parameters:** - -Name | Type | ------- | ------ | -`artifact` | `ContractArtifact` \| `SimpleContractArtifact` | -`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:41 - -**Parameters:** - -Name | Type | ------- | ------ | -`inputAbi` | `DataItem`[] | -`args` | any[] | - -**Returns:** *string* - -## Object literals - -### isValidSignature - -#### ▪ **isValidSignature**: *object* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/i_wallet.ts:35](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/i_wallet.ts#L35)* - -Validates a hash with the `Wallet` signature type. - -#### callAsync - -▸ **callAsync**(`hash`: string, `signature`: string, `callData`: `Partial`, `defaultBlock?`: [BlockParam](#blockparam)): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/i_wallet.ts:44](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/i_wallet.ts#L44)* - -Sends a read-only call to the contract method. Returns the result that would happen if one were to send an -Ethereum transaction to this method, given the current state of the blockchain. Calls do not cost gas -since they don't modify state. - -**Parameters:** - -Name | Type | Default | Description | ------- | ------ | ------ | ------ | -`hash` | string | - | Message hash that is signed. | -`signature` | string | - | Proof of signing. | -`callData` | `Partial` | {} | - | -`defaultBlock?` | [BlockParam](#blockparam) | - | - | - -**Returns:** *`Promise`* - -magicValue `bytes4(0xb0671381)` if the signature check succeeds. - -#### getABIDecodedReturnData - -▸ **getABIDecodedReturnData**(`returnData`: string): *string* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/i_wallet.ts:122](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/i_wallet.ts#L122)* - -Decode the ABI-encoded return data from a transaction - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`returnData` | string | the data returned after transaction execution | - -**Returns:** *string* - -An array representing the output results in order. Keynames of nested structs are preserved. - -#### getABIDecodedTransactionData - -▸ **getABIDecodedTransactionData**(`callData`: string): *string* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/i_wallet.ts:110](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/i_wallet.ts#L110)* - -Decode the ABI-encoded transaction data into its input arguments - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`callData` | string | The ABI-encoded transaction data | - -**Returns:** *string* - -An array representing the input arguments in order. Keynames of nested structs are preserved. - -#### getABIEncodedTransactionData - -▸ **getABIEncodedTransactionData**(`hash`: string, `signature`: string): *string* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/i_wallet.ts:95](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/i_wallet.ts#L95)* - -Returns the ABI encoded transaction data needed to send an Ethereum transaction calling this method. Before -sending the Ethereum tx, this encoded tx data can first be sent to a separate signing service or can be used -to create a 0x transaction (see protocol spec for more details). - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`hash` | string | Message hash that is signed. | -`signature` | string | Proof of signing. | - -**Returns:** *string* - -The ABI encoded transaction data as a string - -
- -# Class: OrderValidatorContract - - -## Constructors - - - -\+ **new OrderValidatorContract**(`address`: string, `supportedProvider`: [SupportedProvider](#supportedprovider), `txDefaults?`: `Partial`, `logDecodeDependencies?`: undefined | object, `deployedBytecode`: string | undefined): *[OrderValidatorContract](#class-ordervalidatorcontract)* - -*Overrides void* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/order_validator.ts:1787](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/order_validator.ts#L1787)* - -**Parameters:** - -Name | Type | Default | ------- | ------ | ------ | -`address` | string | - | -`supportedProvider` | [SupportedProvider](#supportedprovider) | - | -`txDefaults?` | `Partial` | - | -`logDecodeDependencies?` | undefined \| object | - | -`deployedBytecode` | string \| undefined | OrderValidatorContract.deployedBytecode | - -**Returns:** *[OrderValidatorContract](#class-ordervalidatorcontract)* - -## Properties - -#### abi - -• **abi**: *[ContractAbi](#contractabi)* - - - -Defined in base-contract/lib/src/index.d.ts:27 - -___ - -### address - -• **address**: *string* - - - -Defined in base-contract/lib/src/index.d.ts:28 - -___ - -Args - -• **constructorArgs**: *any[]* - - - -Defined in base-contract/lib/src/index.d.ts:30 - -___ - -### contractName - -• **contractName**: *string* - - - -Defined in base-contract/lib/src/index.d.ts:29 - -___ - -### `Static` deployedBytecode - -▪ **deployedBytecode**: *string | undefined* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/order_validator.ts:31](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/order_validator.ts#L31)* - -## Methods - -### evmExecAsync - -▸ **evmExecAsync**(`input`: `Buffer`): *`Promise`* - - - -Defined in base-contract/lib/src/index.d.ts:42 - -**Parameters:** - -Name | Type | ------- | ------ | -`input` | `Buffer` | - -**Returns:** *`Promise`* - -___ - -### `Static` ABI - -▸ **ABI**(): *[ContractAbi](#contractabi)* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/order_validator.ts:1226](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/order_validator.ts#L1226)* - -**Returns:** *[ContractAbi](#contractabi)* - -The contract ABI - -___ - -### `Static` deployAsync - -▸ **deployAsync**(`bytecode`: string, `abi`: [ContractAbi](#contractabi), `supportedProvider`: [SupportedProvider](#supportedprovider), `txDefaults`: `Partial`, `logDecodeDependencies`: object, `_exchange`: string, `_zrxAssetData`: string): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/order_validator.ts:1178](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/order_validator.ts#L1178)* - -**Parameters:** - -Name | Type | ------- | ------ | -`bytecode` | string | -`abi` | [ContractAbi](#contractabi) | -`supportedProvider` | [SupportedProvider](#supportedprovider) | -`txDefaults` | `Partial` | -`logDecodeDependencies` | object | -`_exchange` | string | -`_zrxAssetData` | string | - -**Returns:** *`Promise`* - -___ - -### `Static` deployFrom0xArtifactAsync - -▸ **deployFrom0xArtifactAsync**(`artifact`: `ContractArtifact` | `SimpleContractArtifact`, `supportedProvider`: [SupportedProvider](#supportedprovider), `txDefaults`: `Partial`, `logDecodeDependencies`: object, `_exchange`: string, `_zrxAssetData`: string): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/order_validator.ts:1143](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/order_validator.ts#L1143)* - -**Parameters:** - -Name | Type | ------- | ------ | -`artifact` | `ContractArtifact` \| `SimpleContractArtifact` | -`supportedProvider` | [SupportedProvider](#supportedprovider) | -`txDefaults` | `Partial` | -`logDecodeDependencies` | object | -`_exchange` | string | -`_zrxAssetData` | string | - -**Returns:** *`Promise`* - -___ - -### `Static` strictArgumentEncodingCheck - -▸ **strictArgumentEncodingCheck**(`inputAbi`: `DataItem`[], `args`: any[]): *string* - - - -Defined in base-contract/lib/src/index.d.ts:41 - -**Parameters:** - -Name | Type | ------- | ------ | -`inputAbi` | `DataItem`[] | -`args` | any[] | - -**Returns:** *string* - -## Object literals - -### getBalanceAndAllowance - -#### ▪ **getBalanceAndAllowance**: *object* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/order_validator.ts:250](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/order_validator.ts#L250)* - -#### callAsync - -▸ **callAsync**(`target`: string, `assetData`: string, `callData`: `Partial`, `defaultBlock?`: [BlockParam](#blockparam)): *`Promise<[BigNumber, BigNumber]>`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/order_validator.ts:256](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/order_validator.ts#L256)* - -Sends a read-only call to the contract method. Returns the result that would happen if one were to send an -Ethereum transaction to this method, given the current state of the blockchain. Calls do not cost gas -since they don't modify state. - -**Parameters:** - -Name | Type | Default | ------- | ------ | ------ | -`target` | string | - | -`assetData` | string | - | -`callData` | `Partial` | {} | -`defaultBlock?` | [BlockParam](#blockparam) | - | - -**Returns:** *`Promise<[BigNumber, BigNumber]>`* - -#### getABIDecodedReturnData - -▸ **getABIDecodedReturnData**(`returnData`: string): *[`BigNumber`, `BigNumber`]* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/order_validator.ts:335](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/order_validator.ts#L335)* - -Decode the ABI-encoded return data from a transaction - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`returnData` | string | the data returned after transaction execution | - -**Returns:** *[`BigNumber`, `BigNumber`]* - -An array representing the output results in order. Keynames of nested structs are preserved. - -#### getABIDecodedTransactionData - -▸ **getABIDecodedTransactionData**(`callData`: string): *[string, string]* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/order_validator.ts:323](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/order_validator.ts#L323)* - -Decode the ABI-encoded transaction data into its input arguments - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`callData` | string | The ABI-encoded transaction data | - -**Returns:** *[string, string]* - -An array representing the input arguments in order. Keynames of nested structs are preserved. - -#### getABIEncodedTransactionData - -▸ **getABIEncodedTransactionData**(`target`: string, `assetData`: string): *string* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/order_validator.ts:308](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/order_validator.ts#L308)* - -Returns the ABI encoded transaction data needed to send an Ethereum transaction calling this method. Before -sending the Ethereum tx, this encoded tx data can first be sent to a separate signing service or can be used -to create a 0x transaction (see protocol spec for more details). - -**Parameters:** - -Name | Type | ------- | ------ | -`target` | string | -`assetData` | string | - -**Returns:** *string* - -The ABI encoded transaction data as a string - -___ - -### getBalancesAndAllowances - -#### ▪ **getBalancesAndAllowances**: *object* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/order_validator.ts:858](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/order_validator.ts#L858)* - -#### callAsync - -▸ **callAsync**(`target`: string, `assetData`: string[], `callData`: `Partial`, `defaultBlock?`: [BlockParam](#blockparam)): *`Promise<[BigNumber[], BigNumber[]]>`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/order_validator.ts:864](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/order_validator.ts#L864)* - -Sends a read-only call to the contract method. Returns the result that would happen if one were to send an -Ethereum transaction to this method, given the current state of the blockchain. Calls do not cost gas -since they don't modify state. - -**Parameters:** - -Name | Type | Default | ------- | ------ | ------ | -`target` | string | - | -`assetData` | string[] | - | -`callData` | `Partial` | {} | -`defaultBlock?` | [BlockParam](#blockparam) | - | - -**Returns:** *`Promise<[BigNumber[], BigNumber[]]>`* - -#### getABIDecodedReturnData - -▸ **getABIDecodedReturnData**(`returnData`: string): *[`BigNumber`[], `BigNumber`[]]* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/order_validator.ts:943](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/order_validator.ts#L943)* - -Decode the ABI-encoded return data from a transaction - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`returnData` | string | the data returned after transaction execution | - -**Returns:** *[`BigNumber`[], `BigNumber`[]]* - -An array representing the output results in order. Keynames of nested structs are preserved. - -#### getABIDecodedTransactionData - -▸ **getABIDecodedTransactionData**(`callData`: string): *[string, string[]]* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/order_validator.ts:931](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/order_validator.ts#L931)* - -Decode the ABI-encoded transaction data into its input arguments - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`callData` | string | The ABI-encoded transaction data | - -**Returns:** *[string, string[]]* - -An array representing the input arguments in order. Keynames of nested structs are preserved. - -#### getABIEncodedTransactionData - -▸ **getABIEncodedTransactionData**(`target`: string, `assetData`: string[]): *string* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/order_validator.ts:916](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/order_validator.ts#L916)* - -Returns the ABI encoded transaction data needed to send an Ethereum transaction calling this method. Before -sending the Ethereum tx, this encoded tx data can first be sent to a separate signing service or can be used -to create a 0x transaction (see protocol spec for more details). - -**Parameters:** - -Name | Type | ------- | ------ | -`target` | string | -`assetData` | string[] | - -**Returns:** *string* - -The ABI encoded transaction data as a string - -___ - -### getERC721TokenOwner - -#### ▪ **getERC721TokenOwner**: *object* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/order_validator.ts:765](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/order_validator.ts#L765)* - -#### callAsync - -▸ **callAsync**(`token`: string, `tokenId`: `BigNumber`, `callData`: `Partial`, `defaultBlock?`: [BlockParam](#blockparam)): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/order_validator.ts:771](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/order_validator.ts#L771)* - -Sends a read-only call to the contract method. Returns the result that would happen if one were to send an -Ethereum transaction to this method, given the current state of the blockchain. Calls do not cost gas -since they don't modify state. - -**Parameters:** - -Name | Type | Default | ------- | ------ | ------ | -`token` | string | - | -`tokenId` | `BigNumber` | - | -`callData` | `Partial` | {} | -`defaultBlock?` | [BlockParam](#blockparam) | - | - -**Returns:** *`Promise`* - -#### getABIDecodedReturnData - -▸ **getABIDecodedReturnData**(`returnData`: string): *string* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/order_validator.ts:850](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/order_validator.ts#L850)* - -Decode the ABI-encoded return data from a transaction - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`returnData` | string | the data returned after transaction execution | - -**Returns:** *string* - -An array representing the output results in order. Keynames of nested structs are preserved. - -#### getABIDecodedTransactionData - -▸ **getABIDecodedTransactionData**(`callData`: string): *string* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/order_validator.ts:838](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/order_validator.ts#L838)* - -Decode the ABI-encoded transaction data into its input arguments - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`callData` | string | The ABI-encoded transaction data | - -**Returns:** *string* - -An array representing the input arguments in order. Keynames of nested structs are preserved. - -#### getABIEncodedTransactionData - -▸ **getABIEncodedTransactionData**(`token`: string, `tokenId`: `BigNumber`): *string* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/order_validator.ts:823](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/order_validator.ts#L823)* - -Returns the ABI encoded transaction data needed to send an Ethereum transaction calling this method. Before -sending the Ethereum tx, this encoded tx data can first be sent to a separate signing service or can be used -to create a 0x transaction (see protocol spec for more details). - -**Parameters:** - -Name | Type | ------- | ------ | -`token` | string | -`tokenId` | `BigNumber` | - -**Returns:** *string* - -The ABI encoded transaction data as a string - -___ - -### getOrderAndTraderInfo - -#### ▪ **getOrderAndTraderInfo**: *object* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/order_validator.ts:32](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/order_validator.ts#L32)* - -#### callAsync - -▸ **callAsync**(`order`: object, `takerAddress`: string, `callData`: `Partial`, `defaultBlock?`: [BlockParam](#blockparam)): *`Promise<[object, object]>`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/order_validator.ts:38](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/order_validator.ts#L38)* - -Sends a read-only call to the contract method. Returns the result that would happen if one were to send an -Ethereum transaction to this method, given the current state of the blockchain. Calls do not cost gas -since they don't modify state. - -**Parameters:** - -Name | Type | Default | ------- | ------ | ------ | -`order` | object | - | -`takerAddress` | string | - | -`callData` | `Partial` | {} | -`defaultBlock?` | [BlockParam](#blockparam) | - | - -**Returns:** *`Promise<[object, object]>`* - -#### getABIDecodedReturnData - -▸ **getABIDecodedReturnData**(`returnData`: string): *[object, object]* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/order_validator.ts:212](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/order_validator.ts#L212)* - -Decode the ABI-encoded return data from a transaction - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`returnData` | string | the data returned after transaction execution | - -**Returns:** *[object, object]* - -An array representing the output results in order. Keynames of nested structs are preserved. - -#### getABIDecodedTransactionData - -▸ **getABIDecodedTransactionData**(`callData`: string): *[object, string]* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/order_validator.ts:162](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/order_validator.ts#L162)* - -Decode the ABI-encoded transaction data into its input arguments - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`callData` | string | The ABI-encoded transaction data | - -**Returns:** *[object, string]* - -An array representing the input arguments in order. Keynames of nested structs are preserved. - -#### getABIEncodedTransactionData - -▸ **getABIEncodedTransactionData**(`order`: object, `takerAddress`: string): *string* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/order_validator.ts:132](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/order_validator.ts#L132)* - -Returns the ABI encoded transaction data needed to send an Ethereum transaction calling this method. Before -sending the Ethereum tx, this encoded tx data can first be sent to a separate signing service or can be used -to create a 0x transaction (see protocol spec for more details). - -**Parameters:** - -Name | Type | ------- | ------ | -`order` | object | -`takerAddress` | string | - -**Returns:** *string* - -The ABI encoded transaction data as a string - -___ - -### getOrdersAndTradersInfo - -#### ▪ **getOrdersAndTradersInfo**: *object* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/order_validator.ts:343](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/order_validator.ts#L343)* - -#### callAsync - -▸ **callAsync**(`orders`: `Array`, `takerAddresses`: string[], `callData`: `Partial`, `defaultBlock?`: [BlockParam](#blockparam)): *`Promise<[Array, Array]>`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/order_validator.ts:349](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/order_validator.ts#L349)* - -Sends a read-only call to the contract method. Returns the result that would happen if one were to send an -Ethereum transaction to this method, given the current state of the blockchain. Calls do not cost gas -since they don't modify state. - -**Parameters:** - -Name | Type | Default | ------- | ------ | ------ | -`orders` | `Array` | - | -`takerAddresses` | string[] | - | -`callData` | `Partial` | {} | -`defaultBlock?` | [BlockParam](#blockparam) | - | - -**Returns:** *`Promise<[Array, Array]>`* - -#### getABIDecodedReturnData - -▸ **getABIDecodedReturnData**(`returnData`: string): *[`Array`, `Array`]* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/order_validator.ts:525](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/order_validator.ts#L525)* - -Decode the ABI-encoded return data from a transaction - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`returnData` | string | the data returned after transaction execution | - -**Returns:** *[`Array`, `Array`]* - -An array representing the output results in order. Keynames of nested structs are preserved. - -#### getABIDecodedTransactionData - -▸ **getABIDecodedTransactionData**(`callData`: string): *[`Array`, string[]]* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/order_validator.ts:475](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/order_validator.ts#L475)* - -Decode the ABI-encoded transaction data into its input arguments - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`callData` | string | The ABI-encoded transaction data | - -**Returns:** *[`Array`, string[]]* - -An array representing the input arguments in order. Keynames of nested structs are preserved. - -#### getABIEncodedTransactionData - -▸ **getABIEncodedTransactionData**(`orders`: `Array`, `takerAddresses`: string[]): *string* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/order_validator.ts:444](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/order_validator.ts#L444)* - -Returns the ABI encoded transaction data needed to send an Ethereum transaction calling this method. Before -sending the Ethereum tx, this encoded tx data can first be sent to a separate signing service or can be used -to create a 0x transaction (see protocol spec for more details). - -**Parameters:** - -Name | Type | ------- | ------ | -`orders` | `Array` | -`takerAddresses` | string[] | - -**Returns:** *string* - -The ABI encoded transaction data as a string - -___ - -### getTraderInfo - -#### ▪ **getTraderInfo**: *object* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/order_validator.ts:951](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/order_validator.ts#L951)* - -#### callAsync - -▸ **callAsync**(`order`: object, `takerAddress`: string, `callData`: `Partial`, `defaultBlock?`: [BlockParam](#blockparam)): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/order_validator.ts:957](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/order_validator.ts#L957)* - -Sends a read-only call to the contract method. Returns the result that would happen if one were to send an -Ethereum transaction to this method, given the current state of the blockchain. Calls do not cost gas -since they don't modify state. - -**Parameters:** - -Name | Type | Default | ------- | ------ | ------ | -`order` | object | - | -`takerAddress` | string | - | -`callData` | `Partial` | {} | -`defaultBlock?` | [BlockParam](#blockparam) | - | - -**Returns:** *`Promise`* - -#### getABIDecodedReturnData - -▸ **getABIDecodedReturnData**(`returnData`: string): *object* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/order_validator.ts:1113](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/order_validator.ts#L1113)* - -Decode the ABI-encoded return data from a transaction - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`returnData` | string | the data returned after transaction execution | - -**Returns:** *object* - -An array representing the output results in order. Keynames of nested structs are preserved. - -#### getABIDecodedTransactionData - -▸ **getABIDecodedTransactionData**(`callData`: string): *object* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/order_validator.ts:1071](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/order_validator.ts#L1071)* - -Decode the ABI-encoded transaction data into its input arguments - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`callData` | string | The ABI-encoded transaction data | - -**Returns:** *object* - -An array representing the input arguments in order. Keynames of nested structs are preserved. - -#### getABIEncodedTransactionData - -▸ **getABIEncodedTransactionData**(`order`: object, `takerAddress`: string): *string* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/order_validator.ts:1041](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/order_validator.ts#L1041)* - -Returns the ABI encoded transaction data needed to send an Ethereum transaction calling this method. Before -sending the Ethereum tx, this encoded tx data can first be sent to a separate signing service or can be used -to create a 0x transaction (see protocol spec for more details). - -**Parameters:** - -Name | Type | ------- | ------ | -`order` | object | -`takerAddress` | string | - -**Returns:** *string* - -The ABI encoded transaction data as a string - -___ - -### getTradersInfo - -#### ▪ **getTradersInfo**: *object* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/order_validator.ts:563](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/order_validator.ts#L563)* - -#### callAsync - -▸ **callAsync**(`orders`: `Array`, `takerAddresses`: string[], `callData`: `Partial`, `defaultBlock?`: [BlockParam](#blockparam)): *`Promise>`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/order_validator.ts:569](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/order_validator.ts#L569)* - -Sends a read-only call to the contract method. Returns the result that would happen if one were to send an -Ethereum transaction to this method, given the current state of the blockchain. Calls do not cost gas -since they don't modify state. - -**Parameters:** - -Name | Type | Default | ------- | ------ | ------ | -`orders` | `Array` | - | -`takerAddresses` | string[] | - | -`callData` | `Partial` | {} | -`defaultBlock?` | [BlockParam](#blockparam) | - | - -**Returns:** *`Promise>`* - -#### getABIDecodedReturnData - -▸ **getABIDecodedReturnData**(`returnData`: string): *`Array`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/order_validator.ts:733](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/order_validator.ts#L733)* - -Decode the ABI-encoded return data from a transaction - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`returnData` | string | the data returned after transaction execution | - -**Returns:** *`Array`* - -An array representing the output results in order. Keynames of nested structs are preserved. - -#### getABIDecodedTransactionData - -▸ **getABIDecodedTransactionData**(`callData`: string): *`Array`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/order_validator.ts:689](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/order_validator.ts#L689)* - -Decode the ABI-encoded transaction data into its input arguments - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`callData` | string | The ABI-encoded transaction data | - -**Returns:** *`Array`* - -An array representing the input arguments in order. Keynames of nested structs are preserved. - -#### getABIEncodedTransactionData - -▸ **getABIEncodedTransactionData**(`orders`: `Array`, `takerAddresses`: string[]): *string* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/order_validator.ts:658](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/order_validator.ts#L658)* - -Returns the ABI encoded transaction data needed to send an Ethereum transaction calling this method. Before -sending the Ethereum tx, this encoded tx data can first be sent to a separate signing service or can be used -to create a 0x transaction (see protocol spec for more details). - -**Parameters:** - -Name | Type | ------- | ------ | -`orders` | `Array` | -`takerAddresses` | string[] | - -**Returns:** *string* - -The ABI encoded transaction data as a string - -
- -# Class: WETH9Contract - - -## Constructors - - - -\+ **new WETH9Contract**(`address`: string, `supportedProvider`: [SupportedProvider](#supportedprovider), `txDefaults?`: `Partial`, `logDecodeDependencies?`: undefined | object, `deployedBytecode`: string | undefined): *[WETH9Contract](#class-weth9contract)* - -*Overrides void* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/weth9.ts:1877](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/weth9.ts#L1877)* - -**Parameters:** - -Name | Type | Default | ------- | ------ | ------ | -`address` | string | - | -`supportedProvider` | [SupportedProvider](#supportedprovider) | - | -`txDefaults?` | `Partial` | - | -`logDecodeDependencies?` | undefined \| object | - | -`deployedBytecode` | string \| undefined | WETH9Contract.deployedBytecode | - -**Returns:** *[WETH9Contract](#class-weth9contract)* - -## Properties - -#### abi - -• **abi**: *[ContractAbi](#contractabi)* - - - -Defined in base-contract/lib/src/index.d.ts:27 - -___ - -### address - -• **address**: *string* - - - -Defined in base-contract/lib/src/index.d.ts:28 - -___ - -Args - -• **constructorArgs**: *any[]* - - - -Defined in base-contract/lib/src/index.d.ts:30 - -___ - -### contractName - -• **contractName**: *string* - - - -Defined in base-contract/lib/src/index.d.ts:29 - -___ - -### `Static` deployedBytecode - -▪ **deployedBytecode**: *string* = "0x6080604052600436106100925760003560e01c63ffffffff16806306fdde031461009c578063095ea7b31461012657806318160ddd1461016b57806323b872dd146101925780632e1a7d4d146101c9578063313ce567146101e157806370a082311461020c57806395d89b411461023a578063a9059cbb1461024f578063d0e30db014610092578063dd62ed3e14610280575b61009a6102b4565b005b3480156100a857600080fd5b506100b1610303565b6040805160208082528351818301528351919283929083019185019080838360005b838110156100eb5781810151838201526020016100d3565b50505050905090810190601f1680156101185780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b34801561013257600080fd5b5061015773ffffffffffffffffffffffffffffffffffffffff600435166024356103af565b604080519115158252519081900360200190f35b34801561017757600080fd5b50610180610422565b60408051918252519081900360200190f35b34801561019e57600080fd5b5061015773ffffffffffffffffffffffffffffffffffffffff60043581169060243516604435610427565b3480156101d557600080fd5b5061009a6004356105c7565b3480156101ed57600080fd5b506101f661065c565b6040805160ff9092168252519081900360200190f35b34801561021857600080fd5b5061018073ffffffffffffffffffffffffffffffffffffffff60043516610665565b34801561024657600080fd5b506100b1610677565b34801561025b57600080fd5b5061015773ffffffffffffffffffffffffffffffffffffffff600435166024356106ef565b34801561028c57600080fd5b5061018073ffffffffffffffffffffffffffffffffffffffff60043581169060243516610703565b33600081815260036020908152604091829020805434908101909155825190815291517fe1fffcc4923d04b559f4d29a8bfc6cda04eb5b0d3c460751c2402c5c5cc9109c9281900390910190a2565b6000805460408051602060026001851615610100027fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0190941693909304601f810184900484028201840190925281815292918301828280156103a75780601f1061037c576101008083540402835291602001916103a7565b820191906000526020600020905b81548152906001019060200180831161038a57829003601f168201915b505050505081565b33600081815260046020908152604080832073ffffffffffffffffffffffffffffffffffffffff8716808552908352818420869055815186815291519394909390927f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925928290030190a350600192915050565b303190565b73ffffffffffffffffffffffffffffffffffffffff831660009081526003602052604081205482111561045957600080fd5b73ffffffffffffffffffffffffffffffffffffffff841633148015906104cf575073ffffffffffffffffffffffffffffffffffffffff841660009081526004602090815260408083203384529091529020547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff14155b156105495773ffffffffffffffffffffffffffffffffffffffff8416600090815260046020908152604080832033845290915290205482111561051157600080fd5b73ffffffffffffffffffffffffffffffffffffffff841660009081526004602090815260408083203384529091529020805483900390555b73ffffffffffffffffffffffffffffffffffffffff808516600081815260036020908152604080832080548890039055938716808352918490208054870190558351868152935191937fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef929081900390910190a35060019392505050565b336000908152600360205260409020548111156105e357600080fd5b33600081815260036020526040808220805485900390555183156108fc0291849190818181858888f19350505050158015610622573d6000803e3d6000fd5b5060408051828152905133917f7fcf532c15f0a6db0bd6d0e038bea71d30d808c7d98cb3bf7268a95bf5081b65919081900360200190a250565b60025460ff1681565b60036020526000908152604090205481565b60018054604080516020600284861615610100027fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0190941693909304601f810184900484028201840190925281815292918301828280156103a75780601f1061037c576101008083540402835291602001916103a7565b60006106fc338484610427565b9392505050565b6004602090815260009283526040808420909152908252902054815600a165627a7a723058201ebe888a6b56dd871f599adbe0f19ec3c29c28aec0685788dfac9b37a99fc9d20029" - -*Defined in [abi-gen-wrappers/src/generated-wrappers/weth9.ts:67](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/weth9.ts#L67)* - -## Methods - -### evmExecAsync - -▸ **evmExecAsync**(`input`: `Buffer`): *`Promise`* - - - -Defined in base-contract/lib/src/index.d.ts:42 - -**Parameters:** - -Name | Type | ------- | ------ | -`input` | `Buffer` | - -**Returns:** *`Promise`* - -___ - -### getLogsAsync - -▸ **getLogsAsync**<**ArgsType**>(`eventName`: [WETH9Events](#enumeration-weth9events), `blockRange`: `BlockRange`, `indexFilterValues`: `IndexedFilterValues`): *`Promise>>`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/weth9.ts:1861](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/weth9.ts#L1861)* - -Gets historical logs without creating a subscription - -**Type parameters:** - -▪ **ArgsType**: *[WETH9EventArgs](#weth9eventargs)* - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`eventName` | [WETH9Events](#enumeration-weth9events) | The WETH9 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 - -___ - -### subscribe - -▸ **subscribe**<**ArgsType**>(`eventName`: [WETH9Events](#enumeration-weth9events), `indexFilterValues`: `IndexedFilterValues`, `callback`: [EventCallback](#eventcallback)‹*`ArgsType`*›, `isVerbose`: boolean, `blockPollingIntervalMs?`: undefined | number): *string* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/weth9.ts:1819](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/weth9.ts#L1819)* - -Subscribe to an event type emitted by the WETH9 contract. - -**Type parameters:** - -▪ **ArgsType**: *[WETH9EventArgs](#weth9eventargs)* - -**Parameters:** - -Name | Type | Default | Description | ------- | ------ | ------ | ------ | -`eventName` | [WETH9Events](#enumeration-weth9events) | - | The WETH9 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 - -___ - -### unsubscribe - -▸ **unsubscribe**(`subscriptionToken`: string): *void* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/weth9.ts:1844](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/weth9.ts#L1844)* - -Cancel a subscription - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`subscriptionToken` | string | Subscription token returned by `subscribe()` | - -**Returns:** *void* - -___ - -### unsubscribeAll - -▸ **unsubscribeAll**(): *void* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/weth9.ts:1850](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/weth9.ts#L1850)* - -Cancels all existing subscriptions - -**Returns:** *void* - -___ - -### `Static` ABI - -▸ **ABI**(): *[ContractAbi](#contractabi)* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/weth9.ts:1522](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/weth9.ts#L1522)* - -**Returns:** *[ContractAbi](#contractabi)* - -The contract ABI - -___ - -### `Static` deployAsync - -▸ **deployAsync**(`bytecode`: string, `abi`: [ContractAbi](#contractabi), `supportedProvider`: [SupportedProvider](#supportedprovider), `txDefaults`: `Partial`, `logDecodeDependencies`: object): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/weth9.ts:1480](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/weth9.ts#L1480)* - -**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 [abi-gen-wrappers/src/generated-wrappers/weth9.ts:1455](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/weth9.ts#L1455)* - -**Parameters:** - -Name | Type | ------- | ------ | -`artifact` | `ContractArtifact` \| `SimpleContractArtifact` | -`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:41 - -**Parameters:** - -Name | Type | ------- | ------ | -`inputAbi` | `DataItem`[] | -`args` | any[] | - -**Returns:** *string* - -## Object literals - -### allowance - -#### ▪ **allowance**: *object* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/weth9.ts:1361](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/weth9.ts#L1361)* - -#### callAsync - -▸ **callAsync**(`index_0`: string, `index_1`: string, `callData`: `Partial`, `defaultBlock?`: [BlockParam](#blockparam)): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/weth9.ts:1367](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/weth9.ts#L1367)* - -Sends a read-only call to the contract method. Returns the result that would happen if one were to send an -Ethereum transaction to this method, given the current state of the blockchain. Calls do not cost gas -since they don't modify state. - -**Parameters:** - -Name | Type | Default | ------- | ------ | ------ | -`index_0` | string | - | -`index_1` | string | - | -`callData` | `Partial` | {} | -`defaultBlock?` | [BlockParam](#blockparam) | - | - -**Returns:** *`Promise`* - -#### getABIDecodedReturnData - -▸ **getABIDecodedReturnData**(`returnData`: string): *`BigNumber`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/weth9.ts:1446](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/weth9.ts#L1446)* - -Decode the ABI-encoded return data from a transaction - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`returnData` | string | the data returned after transaction execution | - -**Returns:** *`BigNumber`* - -An array representing the output results in order. Keynames of nested structs are preserved. - -#### getABIDecodedTransactionData - -▸ **getABIDecodedTransactionData**(`callData`: string): *string* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/weth9.ts:1434](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/weth9.ts#L1434)* - -Decode the ABI-encoded transaction data into its input arguments - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`callData` | string | The ABI-encoded transaction data | - -**Returns:** *string* - -An array representing the input arguments in order. Keynames of nested structs are preserved. - -#### getABIEncodedTransactionData - -▸ **getABIEncodedTransactionData**(`index_0`: string, `index_1`: string): *string* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/weth9.ts:1419](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/weth9.ts#L1419)* - -Returns the ABI encoded transaction data needed to send an Ethereum transaction calling this method. Before -sending the Ethereum tx, this encoded tx data can first be sent to a separate signing service or can be used -to create a 0x transaction (see protocol spec for more details). - -**Parameters:** - -Name | Type | ------- | ------ | -`index_0` | string | -`index_1` | string | - -**Returns:** *string* - -The ABI encoded transaction data as a string - -___ - -### approve - -#### ▪ **approve**: *object* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/weth9.ts:147](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/weth9.ts#L147)* - -#### awaitTransactionSuccessAsync - -▸ **awaitTransactionSuccessAsync**(`guy`: string, `wad`: `BigNumber`, `txData?`: `Partial`, `pollingIntervalMs?`: undefined | number, `timeoutMs?`: undefined | number): *`PromiseWithTransactionHash`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/weth9.ts:181](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/weth9.ts#L181)* - -Sends an Ethereum transaction and waits until the transaction has been successfully mined without reverting. -If the transaction was mined, but reverted, an error is thrown. - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`guy` | string | - | -`wad` | `BigNumber` | - | -`txData?` | `Partial` | Additional data for transaction | -`pollingIntervalMs?` | undefined \| number | Interval at which to poll for success | -`timeoutMs?` | undefined \| number | - | - -**Returns:** *`PromiseWithTransactionHash`* - -A promise that resolves when the transaction is successful - -#### callAsync - -▸ **callAsync**(`guy`: string, `wad`: `BigNumber`, `callData`: `Partial`, `defaultBlock?`: [BlockParam](#blockparam)): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/weth9.ts:243](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/weth9.ts#L243)* - -Sends a read-only call to the contract method. Returns the result that would happen if one were to send an -Ethereum transaction to this method, given the current state of the blockchain. Calls do not cost gas -since they don't modify state. - -**Parameters:** - -Name | Type | Default | ------- | ------ | ------ | -`guy` | string | - | -`wad` | `BigNumber` | - | -`callData` | `Partial` | {} | -`defaultBlock?` | [BlockParam](#blockparam) | - | - -**Returns:** *`Promise`* - -#### estimateGasAsync - -▸ **estimateGasAsync**(`guy`: string, `wad`: `BigNumber`, `txData?`: `Partial` | undefined): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/weth9.ts:209](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/weth9.ts#L209)* - -Estimates the gas cost of sending an Ethereum transaction calling this method with these arguments. - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`guy` | string | - | -`wad` | `BigNumber` | - | -`txData?` | `Partial` \| undefined | Additional data for transaction | - -**Returns:** *`Promise`* - -The hash of the transaction - -#### getABIDecodedReturnData - -▸ **getABIDecodedReturnData**(`returnData`: string): *boolean* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/weth9.ts:319](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/weth9.ts#L319)* - -Decode the ABI-encoded return data from a transaction - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`returnData` | string | the data returned after transaction execution | - -**Returns:** *boolean* - -An array representing the output results in order. Keynames of nested structs are preserved. - -#### getABIDecodedTransactionData - -▸ **getABIDecodedTransactionData**(`callData`: string): *string* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/weth9.ts:307](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/weth9.ts#L307)* - -Decode the ABI-encoded transaction data into its input arguments - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`callData` | string | The ABI-encoded transaction data | - -**Returns:** *string* - -An array representing the input arguments in order. Keynames of nested structs are preserved. - -#### getABIEncodedTransactionData - -▸ **getABIEncodedTransactionData**(`guy`: string, `wad`: `BigNumber`): *string* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/weth9.ts:292](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/weth9.ts#L292)* - -Returns the ABI encoded transaction data needed to send an Ethereum transaction calling this method. Before -sending the Ethereum tx, this encoded tx data can first be sent to a separate signing service or can be used -to create a 0x transaction (see protocol spec for more details). - -**Parameters:** - -Name | Type | ------- | ------ | -`guy` | string | -`wad` | `BigNumber` | - -**Returns:** *string* - -The ABI encoded transaction data as a string - -#### sendTransactionAsync - -▸ **sendTransactionAsync**(`guy`: string, `wad`: `BigNumber`, `txData?`: `Partial` | undefined): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/weth9.ts:154](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/weth9.ts#L154)* - -Sends an Ethereum transaction executing this method with the supplied parameters. This is a read/write -Ethereum operation and will cost gas. - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`guy` | string | - | -`wad` | `BigNumber` | - | -`txData?` | `Partial` \| undefined | Additional data for transaction | - -**Returns:** *`Promise`* - -The hash of the transaction - -#### validateAndSendTransactionAsync - -▸ **validateAndSendTransactionAsync**(`guy`: string, `wad`: `BigNumber`, `txData?`: `Partial` | undefined): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/weth9.ts:229](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/weth9.ts#L229)* - -**Parameters:** - -Name | Type | ------- | ------ | -`guy` | string | -`wad` | `BigNumber` | -`txData?` | `Partial` \| undefined | - -**Returns:** *`Promise`* - -___ - -### balanceOf - -#### ▪ **balanceOf**: *object* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/weth9.ts:861](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/weth9.ts#L861)* - -#### callAsync - -▸ **callAsync**(`index_0`: string, `callData`: `Partial`, `defaultBlock?`: [BlockParam](#blockparam)): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/weth9.ts:867](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/weth9.ts#L867)* - -Sends a read-only call to the contract method. Returns the result that would happen if one were to send an -Ethereum transaction to this method, given the current state of the blockchain. Calls do not cost gas -since they don't modify state. - -**Parameters:** - -Name | Type | Default | ------- | ------ | ------ | -`index_0` | string | - | -`callData` | `Partial` | {} | -`defaultBlock?` | [BlockParam](#blockparam) | - | - -**Returns:** *`Promise`* - -#### getABIDecodedReturnData - -▸ **getABIDecodedReturnData**(`returnData`: string): *`BigNumber`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/weth9.ts:939](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/weth9.ts#L939)* - -Decode the ABI-encoded return data from a transaction - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`returnData` | string | the data returned after transaction execution | - -**Returns:** *`BigNumber`* - -An array representing the output results in order. Keynames of nested structs are preserved. - -#### getABIDecodedTransactionData - -▸ **getABIDecodedTransactionData**(`callData`: string): *string* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/weth9.ts:927](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/weth9.ts#L927)* - -Decode the ABI-encoded transaction data into its input arguments - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`callData` | string | The ABI-encoded transaction data | - -**Returns:** *string* - -An array representing the input arguments in order. Keynames of nested structs are preserved. - -#### getABIEncodedTransactionData - -▸ **getABIEncodedTransactionData**(`index_0`: string): *string* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/weth9.ts:914](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/weth9.ts#L914)* - -Returns the ABI encoded transaction data needed to send an Ethereum transaction calling this method. Before -sending the Ethereum tx, this encoded tx data can first be sent to a separate signing service or can be used -to create a 0x transaction (see protocol spec for more details). - -**Parameters:** - -Name | Type | ------- | ------ | -`index_0` | string | - -**Returns:** *string* - -The ABI encoded transaction data as a string - -___ - -### decimals - -#### ▪ **decimals**: *object* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/weth9.ts:783](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/weth9.ts#L783)* - -#### callAsync - -▸ **callAsync**(`callData`: `Partial`, `defaultBlock?`: [BlockParam](#blockparam)): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/weth9.ts:789](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/weth9.ts#L789)* - -Sends a read-only call to the contract method. Returns the result that would happen if one were to send an -Ethereum transaction to this method, given the current state of the blockchain. Calls do not cost gas -since they don't modify state. - -**Parameters:** - -Name | Type | Default | ------- | ------ | ------ | -`callData` | `Partial` | {} | -`defaultBlock?` | [BlockParam](#blockparam) | - | - -**Returns:** *`Promise`* - -#### getABIDecodedReturnData - -▸ **getABIDecodedReturnData**(`returnData`: string): *number* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/weth9.ts:853](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/weth9.ts#L853)* - -Decode the ABI-encoded return data from a transaction - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`returnData` | string | the data returned after transaction execution | - -**Returns:** *number* - -An array representing the output results in order. Keynames of nested structs are preserved. - -#### getABIDecodedTransactionData - -▸ **getABIDecodedTransactionData**(`callData`: string): *void* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/weth9.ts:841](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/weth9.ts#L841)* - -Decode the ABI-encoded transaction data into its input arguments - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`callData` | string | The ABI-encoded transaction data | - -**Returns:** *void* - -An array representing the input arguments in order. Keynames of nested structs are preserved. - -#### getABIEncodedTransactionData - -▸ **getABIEncodedTransactionData**(): *string* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/weth9.ts:831](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/weth9.ts#L831)* - -Returns the ABI encoded transaction data needed to send an Ethereum transaction calling this method. Before -sending the Ethereum tx, this encoded tx data can first be sent to a separate signing service or can be used -to create a 0x transaction (see protocol spec for more details). - -**Returns:** *string* - -The ABI encoded transaction data as a string - -___ - -### deposit - -#### ▪ **deposit**: *object* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/weth9.ts:1205](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/weth9.ts#L1205)* - -#### awaitTransactionSuccessAsync - -▸ **awaitTransactionSuccessAsync**(`txData?`: `Partial`, `pollingIntervalMs?`: undefined | number, `timeoutMs?`: undefined | number): *`PromiseWithTransactionHash`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/weth9.ts:1237](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/weth9.ts#L1237)* - -Sends an Ethereum transaction and waits until the transaction has been successfully mined without reverting. -If the transaction was mined, but reverted, an error is thrown. - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`txData?` | `Partial` | Additional data for transaction | -`pollingIntervalMs?` | undefined \| number | Interval at which to poll for success | -`timeoutMs?` | undefined \| number | - | - -**Returns:** *`PromiseWithTransactionHash`* - -A promise that resolves when the transaction is successful - -#### callAsync - -▸ **callAsync**(`callData`: `Partial`, `defaultBlock?`: [BlockParam](#blockparam)): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/weth9.ts:1289](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/weth9.ts#L1289)* - -Sends a read-only call to the contract method. Returns the result that would happen if one were to send an -Ethereum transaction to this method, given the current state of the blockchain. Calls do not cost gas -since they don't modify state. - -**Parameters:** - -Name | Type | Default | ------- | ------ | ------ | -`callData` | `Partial` | {} | -`defaultBlock?` | [BlockParam](#blockparam) | - | - -**Returns:** *`Promise`* - -#### estimateGasAsync - -▸ **estimateGasAsync**(`txData?`: `Partial` | undefined): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/weth9.ts:1261](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/weth9.ts#L1261)* - -Estimates the gas cost of sending an Ethereum transaction calling this method with these arguments. - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`txData?` | `Partial` \| undefined | Additional data for transaction | - -**Returns:** *`Promise`* - -The hash of the transaction - -#### getABIDecodedReturnData - -▸ **getABIDecodedReturnData**(`returnData`: string): *void* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/weth9.ts:1353](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/weth9.ts#L1353)* - -Decode the ABI-encoded return data from a transaction - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`returnData` | string | the data returned after transaction execution | - -**Returns:** *void* - -An array representing the output results in order. Keynames of nested structs are preserved. - -#### getABIDecodedTransactionData - -▸ **getABIDecodedTransactionData**(`callData`: string): *void* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/weth9.ts:1341](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/weth9.ts#L1341)* - -Decode the ABI-encoded transaction data into its input arguments - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`callData` | string | The ABI-encoded transaction data | - -**Returns:** *void* - -An array representing the input arguments in order. Keynames of nested structs are preserved. - -#### getABIEncodedTransactionData - -▸ **getABIEncodedTransactionData**(): *string* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/weth9.ts:1331](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/weth9.ts#L1331)* - -Returns the ABI encoded transaction data needed to send an Ethereum transaction calling this method. Before -sending the Ethereum tx, this encoded tx data can first be sent to a separate signing service or can be used -to create a 0x transaction (see protocol spec for more details). - -**Returns:** *string* - -The ABI encoded transaction data as a string - -#### sendTransactionAsync - -▸ **sendTransactionAsync**(`txData?`: `Partial` | undefined): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/weth9.ts:1212](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/weth9.ts#L1212)* - -Sends an Ethereum transaction executing this method with the supplied parameters. This is a read/write -Ethereum operation and will cost gas. - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`txData?` | `Partial` \| undefined | Additional data for transaction | - -**Returns:** *`Promise`* - -The hash of the transaction - -#### validateAndSendTransactionAsync - -▸ **validateAndSendTransactionAsync**(`txData?`: `Partial` | undefined): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/weth9.ts:1279](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/weth9.ts#L1279)* - -**Parameters:** - -Name | Type | ------- | ------ | -`txData?` | `Partial` \| undefined | - -**Returns:** *`Promise`* - -___ - -### name - -#### ▪ **name**: *object* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/weth9.ts:69](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/weth9.ts#L69)* - -#### callAsync - -▸ **callAsync**(`callData`: `Partial`, `defaultBlock?`: [BlockParam](#blockparam)): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/weth9.ts:75](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/weth9.ts#L75)* - -Sends a read-only call to the contract method. Returns the result that would happen if one were to send an -Ethereum transaction to this method, given the current state of the blockchain. Calls do not cost gas -since they don't modify state. - -**Parameters:** - -Name | Type | Default | ------- | ------ | ------ | -`callData` | `Partial` | {} | -`defaultBlock?` | [BlockParam](#blockparam) | - | - -**Returns:** *`Promise`* - -#### getABIDecodedReturnData - -▸ **getABIDecodedReturnData**(`returnData`: string): *string* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/weth9.ts:139](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/weth9.ts#L139)* - -Decode the ABI-encoded return data from a transaction - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`returnData` | string | the data returned after transaction execution | - -**Returns:** *string* - -An array representing the output results in order. Keynames of nested structs are preserved. - -#### getABIDecodedTransactionData - -▸ **getABIDecodedTransactionData**(`callData`: string): *void* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/weth9.ts:127](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/weth9.ts#L127)* - -Decode the ABI-encoded transaction data into its input arguments - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`callData` | string | The ABI-encoded transaction data | - -**Returns:** *void* - -An array representing the input arguments in order. Keynames of nested structs are preserved. - -#### getABIEncodedTransactionData - -▸ **getABIEncodedTransactionData**(): *string* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/weth9.ts:117](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/weth9.ts#L117)* - -Returns the ABI encoded transaction data needed to send an Ethereum transaction calling this method. Before -sending the Ethereum tx, this encoded tx data can first be sent to a separate signing service or can be used -to create a 0x transaction (see protocol spec for more details). - -**Returns:** *string* - -The ABI encoded transaction data as a string - -___ - -### symbol - -#### ▪ **symbol**: *object* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/weth9.ts:947](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/weth9.ts#L947)* - -#### callAsync - -▸ **callAsync**(`callData`: `Partial`, `defaultBlock?`: [BlockParam](#blockparam)): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/weth9.ts:953](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/weth9.ts#L953)* - -Sends a read-only call to the contract method. Returns the result that would happen if one were to send an -Ethereum transaction to this method, given the current state of the blockchain. Calls do not cost gas -since they don't modify state. - -**Parameters:** - -Name | Type | Default | ------- | ------ | ------ | -`callData` | `Partial` | {} | -`defaultBlock?` | [BlockParam](#blockparam) | - | - -**Returns:** *`Promise`* - -#### getABIDecodedReturnData - -▸ **getABIDecodedReturnData**(`returnData`: string): *string* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/weth9.ts:1017](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/weth9.ts#L1017)* - -Decode the ABI-encoded return data from a transaction - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`returnData` | string | the data returned after transaction execution | - -**Returns:** *string* - -An array representing the output results in order. Keynames of nested structs are preserved. - -#### getABIDecodedTransactionData - -▸ **getABIDecodedTransactionData**(`callData`: string): *void* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/weth9.ts:1005](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/weth9.ts#L1005)* - -Decode the ABI-encoded transaction data into its input arguments - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`callData` | string | The ABI-encoded transaction data | - -**Returns:** *void* - -An array representing the input arguments in order. Keynames of nested structs are preserved. - -#### getABIEncodedTransactionData - -▸ **getABIEncodedTransactionData**(): *string* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/weth9.ts:995](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/weth9.ts#L995)* - -Returns the ABI encoded transaction data needed to send an Ethereum transaction calling this method. Before -sending the Ethereum tx, this encoded tx data can first be sent to a separate signing service or can be used -to create a 0x transaction (see protocol spec for more details). - -**Returns:** *string* - -The ABI encoded transaction data as a string - -___ - -### totalSupply - -#### ▪ **totalSupply**: *object* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/weth9.ts:327](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/weth9.ts#L327)* - -#### callAsync - -▸ **callAsync**(`callData`: `Partial`, `defaultBlock?`: [BlockParam](#blockparam)): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/weth9.ts:333](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/weth9.ts#L333)* - -Sends a read-only call to the contract method. Returns the result that would happen if one were to send an -Ethereum transaction to this method, given the current state of the blockchain. Calls do not cost gas -since they don't modify state. - -**Parameters:** - -Name | Type | Default | ------- | ------ | ------ | -`callData` | `Partial` | {} | -`defaultBlock?` | [BlockParam](#blockparam) | - | - -**Returns:** *`Promise`* - -#### getABIDecodedReturnData - -▸ **getABIDecodedReturnData**(`returnData`: string): *`BigNumber`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/weth9.ts:397](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/weth9.ts#L397)* - -Decode the ABI-encoded return data from a transaction - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`returnData` | string | the data returned after transaction execution | - -**Returns:** *`BigNumber`* - -An array representing the output results in order. Keynames of nested structs are preserved. - -#### getABIDecodedTransactionData - -▸ **getABIDecodedTransactionData**(`callData`: string): *void* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/weth9.ts:385](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/weth9.ts#L385)* - -Decode the ABI-encoded transaction data into its input arguments - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`callData` | string | The ABI-encoded transaction data | - -**Returns:** *void* - -An array representing the input arguments in order. Keynames of nested structs are preserved. - -#### getABIEncodedTransactionData - -▸ **getABIEncodedTransactionData**(): *string* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/weth9.ts:375](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/weth9.ts#L375)* - -Returns the ABI encoded transaction data needed to send an Ethereum transaction calling this method. Before -sending the Ethereum tx, this encoded tx data can first be sent to a separate signing service or can be used -to create a 0x transaction (see protocol spec for more details). - -**Returns:** *string* - -The ABI encoded transaction data as a string - -___ - -### transfer - -#### ▪ **transfer**: *object* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/weth9.ts:1025](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/weth9.ts#L1025)* - -#### awaitTransactionSuccessAsync - -▸ **awaitTransactionSuccessAsync**(`dst`: string, `wad`: `BigNumber`, `txData?`: `Partial`, `pollingIntervalMs?`: undefined | number, `timeoutMs?`: undefined | number): *`PromiseWithTransactionHash`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/weth9.ts:1059](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/weth9.ts#L1059)* - -Sends an Ethereum transaction and waits until the transaction has been successfully mined without reverting. -If the transaction was mined, but reverted, an error is thrown. - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`dst` | string | - | -`wad` | `BigNumber` | - | -`txData?` | `Partial` | Additional data for transaction | -`pollingIntervalMs?` | undefined \| number | Interval at which to poll for success | -`timeoutMs?` | undefined \| number | - | - -**Returns:** *`PromiseWithTransactionHash`* - -A promise that resolves when the transaction is successful - -#### callAsync - -▸ **callAsync**(`dst`: string, `wad`: `BigNumber`, `callData`: `Partial`, `defaultBlock?`: [BlockParam](#blockparam)): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/weth9.ts:1121](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/weth9.ts#L1121)* - -Sends a read-only call to the contract method. Returns the result that would happen if one were to send an -Ethereum transaction to this method, given the current state of the blockchain. Calls do not cost gas -since they don't modify state. - -**Parameters:** - -Name | Type | Default | ------- | ------ | ------ | -`dst` | string | - | -`wad` | `BigNumber` | - | -`callData` | `Partial` | {} | -`defaultBlock?` | [BlockParam](#blockparam) | - | - -**Returns:** *`Promise`* - -#### estimateGasAsync - -▸ **estimateGasAsync**(`dst`: string, `wad`: `BigNumber`, `txData?`: `Partial` | undefined): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/weth9.ts:1087](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/weth9.ts#L1087)* - -Estimates the gas cost of sending an Ethereum transaction calling this method with these arguments. - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`dst` | string | - | -`wad` | `BigNumber` | - | -`txData?` | `Partial` \| undefined | Additional data for transaction | - -**Returns:** *`Promise`* - -The hash of the transaction - -#### getABIDecodedReturnData - -▸ **getABIDecodedReturnData**(`returnData`: string): *boolean* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/weth9.ts:1197](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/weth9.ts#L1197)* - -Decode the ABI-encoded return data from a transaction - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`returnData` | string | the data returned after transaction execution | - -**Returns:** *boolean* - -An array representing the output results in order. Keynames of nested structs are preserved. - -#### getABIDecodedTransactionData - -▸ **getABIDecodedTransactionData**(`callData`: string): *string* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/weth9.ts:1185](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/weth9.ts#L1185)* - -Decode the ABI-encoded transaction data into its input arguments - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`callData` | string | The ABI-encoded transaction data | - -**Returns:** *string* - -An array representing the input arguments in order. Keynames of nested structs are preserved. - -#### getABIEncodedTransactionData - -▸ **getABIEncodedTransactionData**(`dst`: string, `wad`: `BigNumber`): *string* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/weth9.ts:1170](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/weth9.ts#L1170)* - -Returns the ABI encoded transaction data needed to send an Ethereum transaction calling this method. Before -sending the Ethereum tx, this encoded tx data can first be sent to a separate signing service or can be used -to create a 0x transaction (see protocol spec for more details). - -**Parameters:** - -Name | Type | ------- | ------ | -`dst` | string | -`wad` | `BigNumber` | - -**Returns:** *string* - -The ABI encoded transaction data as a string - -#### sendTransactionAsync - -▸ **sendTransactionAsync**(`dst`: string, `wad`: `BigNumber`, `txData?`: `Partial` | undefined): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/weth9.ts:1032](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/weth9.ts#L1032)* - -Sends an Ethereum transaction executing this method with the supplied parameters. This is a read/write -Ethereum operation and will cost gas. - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`dst` | string | - | -`wad` | `BigNumber` | - | -`txData?` | `Partial` \| undefined | Additional data for transaction | - -**Returns:** *`Promise`* - -The hash of the transaction - -#### validateAndSendTransactionAsync - -▸ **validateAndSendTransactionAsync**(`dst`: string, `wad`: `BigNumber`, `txData?`: `Partial` | undefined): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/weth9.ts:1107](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/weth9.ts#L1107)* - -**Parameters:** - -Name | Type | ------- | ------ | -`dst` | string | -`wad` | `BigNumber` | -`txData?` | `Partial` \| undefined | - -**Returns:** *`Promise`* - -___ - -### transferFrom - -#### ▪ **transferFrom**: *object* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/weth9.ts:405](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/weth9.ts#L405)* - -#### awaitTransactionSuccessAsync - -▸ **awaitTransactionSuccessAsync**(`src`: string, `dst`: string, `wad`: `BigNumber`, `txData?`: `Partial`, `pollingIntervalMs?`: undefined | number, `timeoutMs?`: undefined | number): *`PromiseWithTransactionHash`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/weth9.ts:449](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/weth9.ts#L449)* - -Sends an Ethereum transaction and waits until the transaction has been successfully mined without reverting. -If the transaction was mined, but reverted, an error is thrown. - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`src` | string | - | -`dst` | string | - | -`wad` | `BigNumber` | - | -`txData?` | `Partial` | Additional data for transaction | -`pollingIntervalMs?` | undefined \| number | Interval at which to poll for success | -`timeoutMs?` | undefined \| number | - | - -**Returns:** *`PromiseWithTransactionHash`* - -A promise that resolves when the transaction is successful - -#### callAsync - -▸ **callAsync**(`src`: string, `dst`: string, `wad`: `BigNumber`, `callData`: `Partial`, `defaultBlock?`: [BlockParam](#blockparam)): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/weth9.ts:529](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/weth9.ts#L529)* - -Sends a read-only call to the contract method. Returns the result that would happen if one were to send an -Ethereum transaction to this method, given the current state of the blockchain. Calls do not cost gas -since they don't modify state. - -**Parameters:** - -Name | Type | Default | ------- | ------ | ------ | -`src` | string | - | -`dst` | string | - | -`wad` | `BigNumber` | - | -`callData` | `Partial` | {} | -`defaultBlock?` | [BlockParam](#blockparam) | - | - -**Returns:** *`Promise`* - -#### estimateGasAsync - -▸ **estimateGasAsync**(`src`: string, `dst`: string, `wad`: `BigNumber`, `txData?`: `Partial` | undefined): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/weth9.ts:484](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/weth9.ts#L484)* - -Estimates the gas cost of sending an Ethereum transaction calling this method with these arguments. - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`src` | string | - | -`dst` | string | - | -`wad` | `BigNumber` | - | -`txData?` | `Partial` \| undefined | Additional data for transaction | - -**Returns:** *`Promise`* - -The hash of the transaction - -#### getABIDecodedReturnData - -▸ **getABIDecodedReturnData**(`returnData`: string): *boolean* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/weth9.ts:613](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/weth9.ts#L613)* - -Decode the ABI-encoded return data from a transaction - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`returnData` | string | the data returned after transaction execution | - -**Returns:** *boolean* - -An array representing the output results in order. Keynames of nested structs are preserved. - -#### getABIDecodedTransactionData - -▸ **getABIDecodedTransactionData**(`callData`: string): *string* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/weth9.ts:601](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/weth9.ts#L601)* - -Decode the ABI-encoded transaction data into its input arguments - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`callData` | string | The ABI-encoded transaction data | - -**Returns:** *string* - -An array representing the input arguments in order. Keynames of nested structs are preserved. - -#### getABIEncodedTransactionData - -▸ **getABIEncodedTransactionData**(`src`: string, `dst`: string, `wad`: `BigNumber`): *string* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/weth9.ts:584](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/weth9.ts#L584)* - -Returns the ABI encoded transaction data needed to send an Ethereum transaction calling this method. Before -sending the Ethereum tx, this encoded tx data can first be sent to a separate signing service or can be used -to create a 0x transaction (see protocol spec for more details). - -**Parameters:** - -Name | Type | ------- | ------ | -`src` | string | -`dst` | string | -`wad` | `BigNumber` | - -**Returns:** *string* - -The ABI encoded transaction data as a string - -#### sendTransactionAsync - -▸ **sendTransactionAsync**(`src`: string, `dst`: string, `wad`: `BigNumber`, `txData?`: `Partial` | undefined): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/weth9.ts:412](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/weth9.ts#L412)* - -Sends an Ethereum transaction executing this method with the supplied parameters. This is a read/write -Ethereum operation and will cost gas. - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`src` | string | - | -`dst` | string | - | -`wad` | `BigNumber` | - | -`txData?` | `Partial` \| undefined | Additional data for transaction | - -**Returns:** *`Promise`* - -The hash of the transaction - -#### validateAndSendTransactionAsync - -▸ **validateAndSendTransactionAsync**(`src`: string, `dst`: string, `wad`: `BigNumber`, `txData?`: `Partial` | undefined): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/weth9.ts:514](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/weth9.ts#L514)* - -**Parameters:** - -Name | Type | ------- | ------ | -`src` | string | -`dst` | string | -`wad` | `BigNumber` | -`txData?` | `Partial` \| undefined | - -**Returns:** *`Promise`* - -___ - -### withdraw - -#### ▪ **withdraw**: *object* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/weth9.ts:621](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/weth9.ts#L621)* - -#### awaitTransactionSuccessAsync - -▸ **awaitTransactionSuccessAsync**(`wad`: `BigNumber`, `txData?`: `Partial`, `pollingIntervalMs?`: undefined | number, `timeoutMs?`: undefined | number): *`PromiseWithTransactionHash`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/weth9.ts:654](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/weth9.ts#L654)* - -Sends an Ethereum transaction and waits until the transaction has been successfully mined without reverting. -If the transaction was mined, but reverted, an error is thrown. - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`wad` | `BigNumber` | - | -`txData?` | `Partial` | Additional data for transaction | -`pollingIntervalMs?` | undefined \| number | Interval at which to poll for success | -`timeoutMs?` | undefined \| number | - | - -**Returns:** *`PromiseWithTransactionHash`* - -A promise that resolves when the transaction is successful - -#### callAsync - -▸ **callAsync**(`wad`: `BigNumber`, `callData`: `Partial`, `defaultBlock?`: [BlockParam](#blockparam)): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/weth9.ts:709](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/weth9.ts#L709)* - -Sends a read-only call to the contract method. Returns the result that would happen if one were to send an -Ethereum transaction to this method, given the current state of the blockchain. Calls do not cost gas -since they don't modify state. - -**Parameters:** - -Name | Type | Default | ------- | ------ | ------ | -`wad` | `BigNumber` | - | -`callData` | `Partial` | {} | -`defaultBlock?` | [BlockParam](#blockparam) | - | - -**Returns:** *`Promise`* - -#### estimateGasAsync - -▸ **estimateGasAsync**(`wad`: `BigNumber`, `txData?`: `Partial` | undefined): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/weth9.ts:680](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/weth9.ts#L680)* - -Estimates the gas cost of sending an Ethereum transaction calling this method with these arguments. - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`wad` | `BigNumber` | - | -`txData?` | `Partial` \| undefined | Additional data for transaction | - -**Returns:** *`Promise`* - -The hash of the transaction - -#### getABIDecodedReturnData - -▸ **getABIDecodedReturnData**(`returnData`: string): *void* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/weth9.ts:775](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/weth9.ts#L775)* - -Decode the ABI-encoded return data from a transaction - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`returnData` | string | the data returned after transaction execution | - -**Returns:** *void* - -An array representing the output results in order. Keynames of nested structs are preserved. - -#### getABIDecodedTransactionData - -▸ **getABIDecodedTransactionData**(`callData`: string): *[`BigNumber`]* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/weth9.ts:763](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/weth9.ts#L763)* - -Decode the ABI-encoded transaction data into its input arguments - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`callData` | string | The ABI-encoded transaction data | - -**Returns:** *[`BigNumber`]* - -An array representing the input arguments in order. Keynames of nested structs are preserved. - -#### getABIEncodedTransactionData - -▸ **getABIEncodedTransactionData**(`wad`: `BigNumber`): *string* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/weth9.ts:752](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/weth9.ts#L752)* - -Returns the ABI encoded transaction data needed to send an Ethereum transaction calling this method. Before -sending the Ethereum tx, this encoded tx data can first be sent to a separate signing service or can be used -to create a 0x transaction (see protocol spec for more details). - -**Parameters:** - -Name | Type | ------- | ------ | -`wad` | `BigNumber` | - -**Returns:** *string* - -The ABI encoded transaction data as a string - -#### sendTransactionAsync - -▸ **sendTransactionAsync**(`wad`: `BigNumber`, `txData?`: `Partial` | undefined): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/weth9.ts:628](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/weth9.ts#L628)* - -Sends an Ethereum transaction executing this method with the supplied parameters. This is a read/write -Ethereum operation and will cost gas. - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`wad` | `BigNumber` | - | -`txData?` | `Partial` \| undefined | Additional data for transaction | - -**Returns:** *`Promise`* - -The hash of the transaction - -#### validateAndSendTransactionAsync - -▸ **validateAndSendTransactionAsync**(`wad`: `BigNumber`, `txData?`: `Partial` | undefined): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/weth9.ts:699](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/weth9.ts#L699)* - -**Parameters:** - -Name | Type | ------- | ------ | -`wad` | `BigNumber` | -`txData?` | `Partial` \| undefined | - -**Returns:** *`Promise`* - -
- -# Class: ZRXTokenContract - - -## Constructors - - - -\+ **new ZRXTokenContract**(`address`: string, `supportedProvider`: [SupportedProvider](#supportedprovider), `txDefaults?`: `Partial`, `logDecodeDependencies?`: undefined | object, `deployedBytecode`: string | undefined): *[ZRXTokenContract](#class-zrxtokencontract)* - -*Overrides void* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/zrx_token.ts:1512](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/zrx_token.ts#L1512)* - -**Parameters:** - -Name | Type | Default | ------- | ------ | ------ | -`address` | string | - | -`supportedProvider` | [SupportedProvider](#supportedprovider) | - | -`txDefaults?` | `Partial` | - | -`logDecodeDependencies?` | undefined \| object | - | -`deployedBytecode` | string \| undefined | ZRXTokenContract.deployedBytecode | - -**Returns:** *[ZRXTokenContract](#class-zrxtokencontract)* - -## Properties - -#### abi - -• **abi**: *[ContractAbi](#contractabi)* - - - -Defined in base-contract/lib/src/index.d.ts:27 - -___ - -### address - -• **address**: *string* - - - -Defined in base-contract/lib/src/index.d.ts:28 - -___ - -Args - -• **constructorArgs**: *any[]* - - - -Defined in base-contract/lib/src/index.d.ts:30 - -___ - -### contractName - -• **contractName**: *string* - - - -Defined in base-contract/lib/src/index.d.ts:29 - -___ - -### `Static` deployedBytecode - -▪ **deployedBytecode**: *string* = "0x606060405236156100965763ffffffff7c010000000000000000000000000000000000000000000000000000000060003504166306fdde038114610098578063095ea7b31461014657806318160ddd1461018657806323b872dd146101a8578063313ce567146101ee57806370a082311461021457806395d89b411461024f578063a9059cbb146102fd578063dd62ed3e1461033d575bfe5b34156100a057fe5b6100a861037e565b60408051602080825283518183015283519192839290830191850190808383821561010c575b80518252602083111561010c577fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe090920191602091820191016100ce565b505050905090810190601f1680156101385780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b341561014e57fe5b61017273ffffffffffffffffffffffffffffffffffffffff600435166024356103b5565b604080519115158252519081900360200190f35b341561018e57fe5b61019661042d565b60408051918252519081900360200190f35b34156101b057fe5b61017273ffffffffffffffffffffffffffffffffffffffff60043581169060243516604435610433565b604080519115158252519081900360200190f35b34156101f657fe5b6101fe6105d4565b6040805160ff9092168252519081900360200190f35b341561021c57fe5b61019673ffffffffffffffffffffffffffffffffffffffff600435166105d9565b60408051918252519081900360200190f35b341561025757fe5b6100a8610605565b60408051602080825283518183015283519192839290830191850190808383821561010c575b80518252602083111561010c577fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe090920191602091820191016100ce565b505050905090810190601f1680156101385780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b341561030557fe5b61017273ffffffffffffffffffffffffffffffffffffffff6004351660243561063c565b604080519115158252519081900360200190f35b341561034557fe5b61019673ffffffffffffffffffffffffffffffffffffffff60043581169060243516610727565b60408051918252519081900360200190f35b60408051808201909152601181527f30782050726f746f636f6c20546f6b656e000000000000000000000000000000602082015281565b73ffffffffffffffffffffffffffffffffffffffff338116600081815260016020908152604080832094871680845294825280832086905580518681529051929493927f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925929181900390910190a35060015b92915050565b60035481565b73ffffffffffffffffffffffffffffffffffffffff808416600081815260016020908152604080832033909516835293815283822054928252819052918220548390108015906104835750828110155b80156104b6575073ffffffffffffffffffffffffffffffffffffffff841660009081526020819052604090205483810110155b156105c65773ffffffffffffffffffffffffffffffffffffffff808516600090815260208190526040808220805487019055918716815220805484900390557fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8110156105585773ffffffffffffffffffffffffffffffffffffffff808616600090815260016020908152604080832033909416835292905220805484900390555b8373ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef856040518082815260200191505060405180910390a3600191506105cb565b600091505b5b509392505050565b601281565b73ffffffffffffffffffffffffffffffffffffffff81166000908152602081905260409020545b919050565b60408051808201909152600381527f5a52580000000000000000000000000000000000000000000000000000000000602082015281565b73ffffffffffffffffffffffffffffffffffffffff3316600090815260208190526040812054829010801590610699575073ffffffffffffffffffffffffffffffffffffffff831660009081526020819052604090205482810110155b156107185773ffffffffffffffffffffffffffffffffffffffff33811660008181526020818152604080832080548890039055938716808352918490208054870190558351868152935191937fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef929081900390910190a3506001610427565b506000610427565b5b92915050565b73ffffffffffffffffffffffffffffffffffffffff8083166000908152600160209081526040808320938516835292905220545b929150505600a165627a7a72305820d984298155c708a8164f1cbf83c7275bcc6851dd082c0404013c1f4463b238fa0029" - -*Defined in [abi-gen-wrappers/src/generated-wrappers/zrx_token.ts:51](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/zrx_token.ts#L51)* - -## Methods - -### evmExecAsync - -▸ **evmExecAsync**(`input`: `Buffer`): *`Promise`* - - - -Defined in base-contract/lib/src/index.d.ts:42 - -**Parameters:** - -Name | Type | ------- | ------ | -`input` | `Buffer` | - -**Returns:** *`Promise`* - -___ - -### getLogsAsync - -▸ **getLogsAsync**<**ArgsType**>(`eventName`: [ZRXTokenEvents](#enumeration-zrxtokenevents), `blockRange`: `BlockRange`, `indexFilterValues`: `IndexedFilterValues`): *`Promise>>`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/zrx_token.ts:1496](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/zrx_token.ts#L1496)* - -Gets historical logs without creating a subscription - -**Type parameters:** - -▪ **ArgsType**: *[ZRXTokenEventArgs](#zrxtokeneventargs)* - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`eventName` | [ZRXTokenEvents](#enumeration-zrxtokenevents) | The ZRXToken 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 - -___ - -### subscribe - -▸ **subscribe**<**ArgsType**>(`eventName`: [ZRXTokenEvents](#enumeration-zrxtokenevents), `indexFilterValues`: `IndexedFilterValues`, `callback`: [EventCallback](#eventcallback)‹*`ArgsType`*›, `isVerbose`: boolean, `blockPollingIntervalMs?`: undefined | number): *string* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/zrx_token.ts:1454](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/zrx_token.ts#L1454)* - -Subscribe to an event type emitted by the ZRXToken contract. - -**Type parameters:** - -▪ **ArgsType**: *[ZRXTokenEventArgs](#zrxtokeneventargs)* - -**Parameters:** - -Name | Type | Default | Description | ------- | ------ | ------ | ------ | -`eventName` | [ZRXTokenEvents](#enumeration-zrxtokenevents) | - | The ZRXToken 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 - -___ - -### unsubscribe - -▸ **unsubscribe**(`subscriptionToken`: string): *void* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/zrx_token.ts:1479](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/zrx_token.ts#L1479)* - -Cancel a subscription - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`subscriptionToken` | string | Subscription token returned by `subscribe()` | - -**Returns:** *void* - -___ - -### unsubscribeAll - -▸ **unsubscribeAll**(): *void* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/zrx_token.ts:1485](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/zrx_token.ts#L1485)* - -Cancels all existing subscriptions - -**Returns:** *void* - -___ - -### `Static` ABI - -▸ **ABI**(): *[ContractAbi](#contractabi)* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/zrx_token.ts:1226](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/zrx_token.ts#L1226)* - -**Returns:** *[ContractAbi](#contractabi)* - -The contract ABI - -___ - -### `Static` deployAsync - -▸ **deployAsync**(`bytecode`: string, `abi`: [ContractAbi](#contractabi), `supportedProvider`: [SupportedProvider](#supportedprovider), `txDefaults`: `Partial`, `logDecodeDependencies`: object): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/zrx_token.ts:1184](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/zrx_token.ts#L1184)* - -**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 [abi-gen-wrappers/src/generated-wrappers/zrx_token.ts:1159](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/zrx_token.ts#L1159)* - -**Parameters:** - -Name | Type | ------- | ------ | -`artifact` | `ContractArtifact` \| `SimpleContractArtifact` | -`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:41 - -**Parameters:** - -Name | Type | ------- | ------ | -`inputAbi` | `DataItem`[] | -`args` | any[] | - -**Returns:** *string* - -## Object literals - -### allowance - -#### ▪ **allowance**: *object* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/zrx_token.ts:1065](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/zrx_token.ts#L1065)* - -#### callAsync - -▸ **callAsync**(`_owner`: string, `_spender`: string, `callData`: `Partial`, `defaultBlock?`: [BlockParam](#blockparam)): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/zrx_token.ts:1071](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/zrx_token.ts#L1071)* - -Sends a read-only call to the contract method. Returns the result that would happen if one were to send an -Ethereum transaction to this method, given the current state of the blockchain. Calls do not cost gas -since they don't modify state. - -**Parameters:** - -Name | Type | Default | ------- | ------ | ------ | -`_owner` | string | - | -`_spender` | string | - | -`callData` | `Partial` | {} | -`defaultBlock?` | [BlockParam](#blockparam) | - | - -**Returns:** *`Promise`* - -#### getABIDecodedReturnData - -▸ **getABIDecodedReturnData**(`returnData`: string): *`BigNumber`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/zrx_token.ts:1150](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/zrx_token.ts#L1150)* - -Decode the ABI-encoded return data from a transaction - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`returnData` | string | the data returned after transaction execution | - -**Returns:** *`BigNumber`* - -An array representing the output results in order. Keynames of nested structs are preserved. - -#### getABIDecodedTransactionData - -▸ **getABIDecodedTransactionData**(`callData`: string): *string* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/zrx_token.ts:1138](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/zrx_token.ts#L1138)* - -Decode the ABI-encoded transaction data into its input arguments - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`callData` | string | The ABI-encoded transaction data | - -**Returns:** *string* - -An array representing the input arguments in order. Keynames of nested structs are preserved. - -#### getABIEncodedTransactionData - -▸ **getABIEncodedTransactionData**(`_owner`: string, `_spender`: string): *string* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/zrx_token.ts:1123](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/zrx_token.ts#L1123)* - -Returns the ABI encoded transaction data needed to send an Ethereum transaction calling this method. Before -sending the Ethereum tx, this encoded tx data can first be sent to a separate signing service or can be used -to create a 0x transaction (see protocol spec for more details). - -**Parameters:** - -Name | Type | ------- | ------ | -`_owner` | string | -`_spender` | string | - -**Returns:** *string* - -The ABI encoded transaction data as a string - -___ - -### approve - -#### ▪ **approve**: *object* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/zrx_token.ts:131](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/zrx_token.ts#L131)* - -#### awaitTransactionSuccessAsync - -▸ **awaitTransactionSuccessAsync**(`_spender`: string, `_value`: `BigNumber`, `txData?`: `Partial`, `pollingIntervalMs?`: undefined | number, `timeoutMs?`: undefined | number): *`PromiseWithTransactionHash`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/zrx_token.ts:172](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/zrx_token.ts#L172)* - -Sends an Ethereum transaction and waits until the transaction has been successfully mined without reverting. -If the transaction was mined, but reverted, an error is thrown. - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`_spender` | string | - | -`_value` | `BigNumber` | - | -`txData?` | `Partial` | Additional data for transaction | -`pollingIntervalMs?` | undefined \| number | Interval at which to poll for success | -`timeoutMs?` | undefined \| number | - | - -**Returns:** *`PromiseWithTransactionHash`* - -A promise that resolves when the transaction is successful - -#### callAsync - -▸ **callAsync**(`_spender`: string, `_value`: `BigNumber`, `callData`: `Partial`, `defaultBlock?`: [BlockParam](#blockparam)): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/zrx_token.ts:241](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/zrx_token.ts#L241)* - -Sends a read-only call to the contract method. Returns the result that would happen if one were to send an -Ethereum transaction to this method, given the current state of the blockchain. Calls do not cost gas -since they don't modify state. - -**Parameters:** - -Name | Type | Default | ------- | ------ | ------ | -`_spender` | string | - | -`_value` | `BigNumber` | - | -`callData` | `Partial` | {} | -`defaultBlock?` | [BlockParam](#blockparam) | - | - -**Returns:** *`Promise`* - -#### estimateGasAsync - -▸ **estimateGasAsync**(`_spender`: string, `_value`: `BigNumber`, `txData?`: `Partial` | undefined): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/zrx_token.ts:200](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/zrx_token.ts#L200)* - -Estimates the gas cost of sending an Ethereum transaction calling this method with these arguments. - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`_spender` | string | - | -`_value` | `BigNumber` | - | -`txData?` | `Partial` \| undefined | Additional data for transaction | - -**Returns:** *`Promise`* - -The hash of the transaction - -#### getABIDecodedReturnData - -▸ **getABIDecodedReturnData**(`returnData`: string): *boolean* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/zrx_token.ts:320](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/zrx_token.ts#L320)* - -Decode the ABI-encoded return data from a transaction - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`returnData` | string | the data returned after transaction execution | - -**Returns:** *boolean* - -An array representing the output results in order. Keynames of nested structs are preserved. - -#### getABIDecodedTransactionData - -▸ **getABIDecodedTransactionData**(`callData`: string): *string* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/zrx_token.ts:308](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/zrx_token.ts#L308)* - -Decode the ABI-encoded transaction data into its input arguments - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`callData` | string | The ABI-encoded transaction data | - -**Returns:** *string* - -An array representing the input arguments in order. Keynames of nested structs are preserved. - -#### getABIEncodedTransactionData - -▸ **getABIEncodedTransactionData**(`_spender`: string, `_value`: `BigNumber`): *string* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/zrx_token.ts:293](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/zrx_token.ts#L293)* - -Returns the ABI encoded transaction data needed to send an Ethereum transaction calling this method. Before -sending the Ethereum tx, this encoded tx data can first be sent to a separate signing service or can be used -to create a 0x transaction (see protocol spec for more details). - -**Parameters:** - -Name | Type | ------- | ------ | -`_spender` | string | -`_value` | `BigNumber` | - -**Returns:** *string* - -The ABI encoded transaction data as a string - -#### sendTransactionAsync - -▸ **sendTransactionAsync**(`_spender`: string, `_value`: `BigNumber`, `txData?`: `Partial` | undefined): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/zrx_token.ts:138](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/zrx_token.ts#L138)* - -Sends an Ethereum transaction executing this method with the supplied parameters. This is a read/write -Ethereum operation and will cost gas. - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`_spender` | string | - | -`_value` | `BigNumber` | - | -`txData?` | `Partial` \| undefined | Additional data for transaction | - -**Returns:** *`Promise`* - -The hash of the transaction - -#### validateAndSendTransactionAsync - -▸ **validateAndSendTransactionAsync**(`_spender`: string, `_value`: `BigNumber`, `txData?`: `Partial` | undefined): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/zrx_token.ts:227](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/zrx_token.ts#L227)* - -**Parameters:** - -Name | Type | ------- | ------ | -`_spender` | string | -`_value` | `BigNumber` | -`txData?` | `Partial` \| undefined | - -**Returns:** *`Promise`* - -___ - -### balanceOf - -#### ▪ **balanceOf**: *object* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/zrx_token.ts:719](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/zrx_token.ts#L719)* - -#### callAsync - -▸ **callAsync**(`_owner`: string, `callData`: `Partial`, `defaultBlock?`: [BlockParam](#blockparam)): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/zrx_token.ts:725](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/zrx_token.ts#L725)* - -Sends a read-only call to the contract method. Returns the result that would happen if one were to send an -Ethereum transaction to this method, given the current state of the blockchain. Calls do not cost gas -since they don't modify state. - -**Parameters:** - -Name | Type | Default | ------- | ------ | ------ | -`_owner` | string | - | -`callData` | `Partial` | {} | -`defaultBlock?` | [BlockParam](#blockparam) | - | - -**Returns:** *`Promise`* - -#### getABIDecodedReturnData - -▸ **getABIDecodedReturnData**(`returnData`: string): *`BigNumber`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/zrx_token.ts:795](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/zrx_token.ts#L795)* - -Decode the ABI-encoded return data from a transaction - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`returnData` | string | the data returned after transaction execution | - -**Returns:** *`BigNumber`* - -An array representing the output results in order. Keynames of nested structs are preserved. - -#### getABIDecodedTransactionData - -▸ **getABIDecodedTransactionData**(`callData`: string): *string* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/zrx_token.ts:783](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/zrx_token.ts#L783)* - -Decode the ABI-encoded transaction data into its input arguments - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`callData` | string | The ABI-encoded transaction data | - -**Returns:** *string* - -An array representing the input arguments in order. Keynames of nested structs are preserved. - -#### getABIEncodedTransactionData - -▸ **getABIEncodedTransactionData**(`_owner`: string): *string* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/zrx_token.ts:772](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/zrx_token.ts#L772)* - -Returns the ABI encoded transaction data needed to send an Ethereum transaction calling this method. Before -sending the Ethereum tx, this encoded tx data can first be sent to a separate signing service or can be used -to create a 0x transaction (see protocol spec for more details). - -**Parameters:** - -Name | Type | ------- | ------ | -`_owner` | string | - -**Returns:** *string* - -The ABI encoded transaction data as a string - -___ - -### decimals - -#### ▪ **decimals**: *object* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/zrx_token.ts:641](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/zrx_token.ts#L641)* - -#### callAsync - -▸ **callAsync**(`callData`: `Partial`, `defaultBlock?`: [BlockParam](#blockparam)): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/zrx_token.ts:647](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/zrx_token.ts#L647)* - -Sends a read-only call to the contract method. Returns the result that would happen if one were to send an -Ethereum transaction to this method, given the current state of the blockchain. Calls do not cost gas -since they don't modify state. - -**Parameters:** - -Name | Type | Default | ------- | ------ | ------ | -`callData` | `Partial` | {} | -`defaultBlock?` | [BlockParam](#blockparam) | - | - -**Returns:** *`Promise`* - -#### getABIDecodedReturnData - -▸ **getABIDecodedReturnData**(`returnData`: string): *number* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/zrx_token.ts:711](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/zrx_token.ts#L711)* - -Decode the ABI-encoded return data from a transaction - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`returnData` | string | the data returned after transaction execution | - -**Returns:** *number* - -An array representing the output results in order. Keynames of nested structs are preserved. - -#### getABIDecodedTransactionData - -▸ **getABIDecodedTransactionData**(`callData`: string): *void* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/zrx_token.ts:699](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/zrx_token.ts#L699)* - -Decode the ABI-encoded transaction data into its input arguments - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`callData` | string | The ABI-encoded transaction data | - -**Returns:** *void* - -An array representing the input arguments in order. Keynames of nested structs are preserved. - -#### getABIEncodedTransactionData - -▸ **getABIEncodedTransactionData**(): *string* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/zrx_token.ts:689](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/zrx_token.ts#L689)* - -Returns the ABI encoded transaction data needed to send an Ethereum transaction calling this method. Before -sending the Ethereum tx, this encoded tx data can first be sent to a separate signing service or can be used -to create a 0x transaction (see protocol spec for more details). - -**Returns:** *string* - -The ABI encoded transaction data as a string - -___ - -### name - -#### ▪ **name**: *object* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/zrx_token.ts:53](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/zrx_token.ts#L53)* - -#### callAsync - -▸ **callAsync**(`callData`: `Partial`, `defaultBlock?`: [BlockParam](#blockparam)): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/zrx_token.ts:59](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/zrx_token.ts#L59)* - -Sends a read-only call to the contract method. Returns the result that would happen if one were to send an -Ethereum transaction to this method, given the current state of the blockchain. Calls do not cost gas -since they don't modify state. - -**Parameters:** - -Name | Type | Default | ------- | ------ | ------ | -`callData` | `Partial` | {} | -`defaultBlock?` | [BlockParam](#blockparam) | - | - -**Returns:** *`Promise`* - -#### getABIDecodedReturnData - -▸ **getABIDecodedReturnData**(`returnData`: string): *string* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/zrx_token.ts:123](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/zrx_token.ts#L123)* - -Decode the ABI-encoded return data from a transaction - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`returnData` | string | the data returned after transaction execution | - -**Returns:** *string* - -An array representing the output results in order. Keynames of nested structs are preserved. - -#### getABIDecodedTransactionData - -▸ **getABIDecodedTransactionData**(`callData`: string): *void* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/zrx_token.ts:111](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/zrx_token.ts#L111)* - -Decode the ABI-encoded transaction data into its input arguments - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`callData` | string | The ABI-encoded transaction data | - -**Returns:** *void* - -An array representing the input arguments in order. Keynames of nested structs are preserved. - -#### getABIEncodedTransactionData - -▸ **getABIEncodedTransactionData**(): *string* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/zrx_token.ts:101](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/zrx_token.ts#L101)* - -Returns the ABI encoded transaction data needed to send an Ethereum transaction calling this method. Before -sending the Ethereum tx, this encoded tx data can first be sent to a separate signing service or can be used -to create a 0x transaction (see protocol spec for more details). - -**Returns:** *string* - -The ABI encoded transaction data as a string - -___ - -### symbol - -#### ▪ **symbol**: *object* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/zrx_token.ts:803](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/zrx_token.ts#L803)* - -#### callAsync - -▸ **callAsync**(`callData`: `Partial`, `defaultBlock?`: [BlockParam](#blockparam)): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/zrx_token.ts:809](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/zrx_token.ts#L809)* - -Sends a read-only call to the contract method. Returns the result that would happen if one were to send an -Ethereum transaction to this method, given the current state of the blockchain. Calls do not cost gas -since they don't modify state. - -**Parameters:** - -Name | Type | Default | ------- | ------ | ------ | -`callData` | `Partial` | {} | -`defaultBlock?` | [BlockParam](#blockparam) | - | - -**Returns:** *`Promise`* - -#### getABIDecodedReturnData - -▸ **getABIDecodedReturnData**(`returnData`: string): *string* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/zrx_token.ts:873](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/zrx_token.ts#L873)* - -Decode the ABI-encoded return data from a transaction - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`returnData` | string | the data returned after transaction execution | - -**Returns:** *string* - -An array representing the output results in order. Keynames of nested structs are preserved. - -#### getABIDecodedTransactionData - -▸ **getABIDecodedTransactionData**(`callData`: string): *void* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/zrx_token.ts:861](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/zrx_token.ts#L861)* - -Decode the ABI-encoded transaction data into its input arguments - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`callData` | string | The ABI-encoded transaction data | - -**Returns:** *void* - -An array representing the input arguments in order. Keynames of nested structs are preserved. - -#### getABIEncodedTransactionData - -▸ **getABIEncodedTransactionData**(): *string* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/zrx_token.ts:851](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/zrx_token.ts#L851)* - -Returns the ABI encoded transaction data needed to send an Ethereum transaction calling this method. Before -sending the Ethereum tx, this encoded tx data can first be sent to a separate signing service or can be used -to create a 0x transaction (see protocol spec for more details). - -**Returns:** *string* - -The ABI encoded transaction data as a string - -___ - -### totalSupply - -#### ▪ **totalSupply**: *object* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/zrx_token.ts:328](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/zrx_token.ts#L328)* - -#### callAsync - -▸ **callAsync**(`callData`: `Partial`, `defaultBlock?`: [BlockParam](#blockparam)): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/zrx_token.ts:334](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/zrx_token.ts#L334)* - -Sends a read-only call to the contract method. Returns the result that would happen if one were to send an -Ethereum transaction to this method, given the current state of the blockchain. Calls do not cost gas -since they don't modify state. - -**Parameters:** - -Name | Type | Default | ------- | ------ | ------ | -`callData` | `Partial` | {} | -`defaultBlock?` | [BlockParam](#blockparam) | - | - -**Returns:** *`Promise`* - -#### getABIDecodedReturnData - -▸ **getABIDecodedReturnData**(`returnData`: string): *`BigNumber`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/zrx_token.ts:398](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/zrx_token.ts#L398)* - -Decode the ABI-encoded return data from a transaction - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`returnData` | string | the data returned after transaction execution | - -**Returns:** *`BigNumber`* - -An array representing the output results in order. Keynames of nested structs are preserved. - -#### getABIDecodedTransactionData - -▸ **getABIDecodedTransactionData**(`callData`: string): *void* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/zrx_token.ts:386](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/zrx_token.ts#L386)* - -Decode the ABI-encoded transaction data into its input arguments - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`callData` | string | The ABI-encoded transaction data | - -**Returns:** *void* - -An array representing the input arguments in order. Keynames of nested structs are preserved. - -#### getABIEncodedTransactionData - -▸ **getABIEncodedTransactionData**(): *string* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/zrx_token.ts:376](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/zrx_token.ts#L376)* - -Returns the ABI encoded transaction data needed to send an Ethereum transaction calling this method. Before -sending the Ethereum tx, this encoded tx data can first be sent to a separate signing service or can be used -to create a 0x transaction (see protocol spec for more details). - -**Returns:** *string* - -The ABI encoded transaction data as a string - -___ - -### transfer - -#### ▪ **transfer**: *object* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/zrx_token.ts:881](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/zrx_token.ts#L881)* - -#### awaitTransactionSuccessAsync - -▸ **awaitTransactionSuccessAsync**(`_to`: string, `_value`: `BigNumber`, `txData?`: `Partial`, `pollingIntervalMs?`: undefined | number, `timeoutMs?`: undefined | number): *`PromiseWithTransactionHash`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/zrx_token.ts:919](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/zrx_token.ts#L919)* - -Sends an Ethereum transaction and waits until the transaction has been successfully mined without reverting. -If the transaction was mined, but reverted, an error is thrown. - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`_to` | string | - | -`_value` | `BigNumber` | - | -`txData?` | `Partial` | Additional data for transaction | -`pollingIntervalMs?` | undefined \| number | Interval at which to poll for success | -`timeoutMs?` | undefined \| number | - | - -**Returns:** *`PromiseWithTransactionHash`* - -A promise that resolves when the transaction is successful - -#### callAsync - -▸ **callAsync**(`_to`: string, `_value`: `BigNumber`, `callData`: `Partial`, `defaultBlock?`: [BlockParam](#blockparam)): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/zrx_token.ts:981](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/zrx_token.ts#L981)* - -Sends a read-only call to the contract method. Returns the result that would happen if one were to send an -Ethereum transaction to this method, given the current state of the blockchain. Calls do not cost gas -since they don't modify state. - -**Parameters:** - -Name | Type | Default | ------- | ------ | ------ | -`_to` | string | - | -`_value` | `BigNumber` | - | -`callData` | `Partial` | {} | -`defaultBlock?` | [BlockParam](#blockparam) | - | - -**Returns:** *`Promise`* - -#### estimateGasAsync - -▸ **estimateGasAsync**(`_to`: string, `_value`: `BigNumber`, `txData?`: `Partial` | undefined): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/zrx_token.ts:947](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/zrx_token.ts#L947)* - -Estimates the gas cost of sending an Ethereum transaction calling this method with these arguments. - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`_to` | string | - | -`_value` | `BigNumber` | - | -`txData?` | `Partial` \| undefined | Additional data for transaction | - -**Returns:** *`Promise`* - -The hash of the transaction - -#### getABIDecodedReturnData - -▸ **getABIDecodedReturnData**(`returnData`: string): *boolean* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/zrx_token.ts:1057](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/zrx_token.ts#L1057)* - -Decode the ABI-encoded return data from a transaction - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`returnData` | string | the data returned after transaction execution | - -**Returns:** *boolean* - -An array representing the output results in order. Keynames of nested structs are preserved. - -#### getABIDecodedTransactionData - -▸ **getABIDecodedTransactionData**(`callData`: string): *string* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/zrx_token.ts:1045](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/zrx_token.ts#L1045)* - -Decode the ABI-encoded transaction data into its input arguments - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`callData` | string | The ABI-encoded transaction data | - -**Returns:** *string* - -An array representing the input arguments in order. Keynames of nested structs are preserved. - -#### getABIEncodedTransactionData - -▸ **getABIEncodedTransactionData**(`_to`: string, `_value`: `BigNumber`): *string* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/zrx_token.ts:1030](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/zrx_token.ts#L1030)* - -Returns the ABI encoded transaction data needed to send an Ethereum transaction calling this method. Before -sending the Ethereum tx, this encoded tx data can first be sent to a separate signing service or can be used -to create a 0x transaction (see protocol spec for more details). - -**Parameters:** - -Name | Type | ------- | ------ | -`_to` | string | -`_value` | `BigNumber` | - -**Returns:** *string* - -The ABI encoded transaction data as a string - -#### sendTransactionAsync - -▸ **sendTransactionAsync**(`_to`: string, `_value`: `BigNumber`, `txData?`: `Partial` | undefined): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/zrx_token.ts:888](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/zrx_token.ts#L888)* - -Sends an Ethereum transaction executing this method with the supplied parameters. This is a read/write -Ethereum operation and will cost gas. - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`_to` | string | - | -`_value` | `BigNumber` | - | -`txData?` | `Partial` \| undefined | Additional data for transaction | - -**Returns:** *`Promise`* - -The hash of the transaction - -#### validateAndSendTransactionAsync - -▸ **validateAndSendTransactionAsync**(`_to`: string, `_value`: `BigNumber`, `txData?`: `Partial` | undefined): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/zrx_token.ts:967](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/zrx_token.ts#L967)* - -**Parameters:** - -Name | Type | ------- | ------ | -`_to` | string | -`_value` | `BigNumber` | -`txData?` | `Partial` \| undefined | - -**Returns:** *`Promise`* - -___ - -### transferFrom - -#### ▪ **transferFrom**: *object* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/zrx_token.ts:409](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/zrx_token.ts#L409)* - -ERC20 transferFrom, modified such that an allowance of MAX_UINT represents an unlimited allowance. - -#### awaitTransactionSuccessAsync - -▸ **awaitTransactionSuccessAsync**(`_from`: string, `_to`: string, `_value`: `BigNumber`, `txData?`: `Partial`, `pollingIntervalMs?`: undefined | number, `timeoutMs?`: undefined | number): *`PromiseWithTransactionHash`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/zrx_token.ts:459](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/zrx_token.ts#L459)* - -Sends an Ethereum transaction and waits until the transaction has been successfully mined without reverting. -If the transaction was mined, but reverted, an error is thrown. - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`_from` | string | Address to transfer from. | -`_to` | string | Address to transfer to. | -`_value` | `BigNumber` | Amount to transfer. | -`txData?` | `Partial` | Additional data for transaction | -`pollingIntervalMs?` | undefined \| number | Interval at which to poll for success | -`timeoutMs?` | undefined \| number | - | - -**Returns:** *`PromiseWithTransactionHash`* - -A promise that resolves when the transaction is successful - -#### callAsync - -▸ **callAsync**(`_from`: string, `_to`: string, `_value`: `BigNumber`, `callData`: `Partial`, `defaultBlock?`: [BlockParam](#blockparam)): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/zrx_token.ts:546](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/zrx_token.ts#L546)* - -Sends a read-only call to the contract method. Returns the result that would happen if one were to send an -Ethereum transaction to this method, given the current state of the blockchain. Calls do not cost gas -since they don't modify state. - -**Parameters:** - -Name | Type | Default | Description | ------- | ------ | ------ | ------ | -`_from` | string | - | Address to transfer from. | -`_to` | string | - | Address to transfer to. | -`_value` | `BigNumber` | - | Amount to transfer. | -`callData` | `Partial` | {} | - | -`defaultBlock?` | [BlockParam](#blockparam) | - | - | - -**Returns:** *`Promise`* - -Success of transfer. - -#### estimateGasAsync - -▸ **estimateGasAsync**(`_from`: string, `_to`: string, `_value`: `BigNumber`, `txData?`: `Partial` | undefined): *`Promise`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/zrx_token.ts:497](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/zrx_token.ts#L497)* - -Estimates the gas cost of sending an Ethereum transaction calling this method with these arguments. - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`_from` | string | Address to transfer from. | -`_to` | string | Address to transfer to. | -`_value` | `BigNumber` | Amount to transfer. | -`txData?` | `Partial` \| undefined | Additional data for transaction | - -**Returns:** *`Promise`* - -The hash of the transaction - -#### getABIDecodedReturnData - -▸ **getABIDecodedReturnData**(`returnData`: string): *boolean* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/zrx_token.ts:633](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/zrx_token.ts#L633)* - -Decode the ABI-encoded return data from a transaction - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`returnData` | string | the data returned after transaction execution | - -**Returns:** *boolean* - -An array representing the output results in order. Keynames of nested structs are preserved. - -#### getABIDecodedTransactionData - -▸ **getABIDecodedTransactionData**(`callData`: string): *string* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/zrx_token.ts:621](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/zrx_token.ts#L621)* - -Decode the ABI-encoded transaction data into its input arguments - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`callData` | string | The ABI-encoded transaction data | - -**Returns:** *string* - -An array representing the input arguments in order. Keynames of nested structs are preserved. - -#### getABIEncodedTransactionData - -▸ **getABIEncodedTransactionData**(`_from`: string, `_to`: string, `_value`: `BigNumber`): *string* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/zrx_token.ts:604](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/zrx_token.ts#L604)* - -Returns the ABI encoded transaction data needed to send an Ethereum transaction calling this method. Before -sending the Ethereum tx, this encoded tx data can first be sent to a separate signing service or can be used -to create a 0x transaction (see protocol spec for more details). - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`_from` | string | Address to transfer from. | -`_to` | string | Address to transfer to. | -`_value` | `BigNumber` | Amount to transfer. | +`signedOrders` | `SignedOrder`[] | - | An array of signed orders to fill. | +`takerAssetFillAmounts` | `BigNumber`[] | - | The amounts of the orders (in taker asset baseUnits) that you wish to fill. | +`takerAddress` | string | - | The user Ethereum address who would like to fill these orders. Must be available via the supplied Provider provided at instantiation. | +`orderTransactionOpts` | [OrderTransactionOpts](#interface-ordertransactionopts) | { shouldValidate: true } | Optional arguments this method accepts. | -**Returns:** *string* +**Returns:** *`Promise`* + +Transaction hash. -The ABI encoded transaction data as a string +___ -#### sendTransactionAsync +### batchFillOrdersNoThrowAsync -▸ **sendTransactionAsync**(`_from`: string, `_to`: string, `_value`: `BigNumber`, `txData?`: `Partial` | undefined): *`Promise`* +▸ **batchFillOrdersNoThrowAsync**(`signedOrders`: `SignedOrder`[], `takerAssetFillAmounts`: `BigNumber`[], `takerAddress`: string, `orderTransactionOpts`: [OrderTransactionOpts](#interface-ordertransactionopts)): *`Promise`* -*Defined in [abi-gen-wrappers/src/generated-wrappers/zrx_token.ts:419](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/zrx_token.ts#L419)* +*Defined in [contract-wrappers/src/coordinator_wrapper.ts:196](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/contract-wrappers/src/coordinator_wrapper.ts#L196)* -Sends an Ethereum transaction executing this method with the supplied parameters. This is a read/write -Ethereum operation and will cost gas. +No throw version of batchFillOrdersAsync **Parameters:** -Name | Type | Description | ------- | ------ | ------ | -`_from` | string | Address to transfer from. | -`_to` | string | Address to transfer to. | -`_value` | `BigNumber` | Amount to transfer. | -`txData?` | `Partial` \| undefined | Additional data for transaction | +Name | Type | Default | Description | +------ | ------ | ------ | ------ | +`signedOrders` | `SignedOrder`[] | - | An array of signed orders to fill. | +`takerAssetFillAmounts` | `BigNumber`[] | - | The amounts of the orders (in taker asset baseUnits) that you wish to fill. | +`takerAddress` | string | - | The user Ethereum address who would like to fill these orders. Must be available via the supplied Provider provided at instantiation. | +`orderTransactionOpts` | [OrderTransactionOpts](#interface-ordertransactionopts) | { shouldValidate: true } | Optional arguments this method accepts. | **Returns:** *`Promise`* -The hash of the transaction - -#### validateAndSendTransactionAsync - -▸ **validateAndSendTransactionAsync**(`_from`: string, `_to`: string, `_value`: `BigNumber`, `txData?`: `Partial` | undefined): *`Promise`* +Transaction hash. -*Defined in [abi-gen-wrappers/src/generated-wrappers/zrx_token.ts:527](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/zrx_token.ts#L527)* +___ -**Parameters:** +### batchHardCancelOrdersAsync -Name | Type | ------- | ------ | -`_from` | string | -`_to` | string | -`_value` | `BigNumber` | -`txData?` | `Partial` \| undefined | +▸ **batchHardCancelOrdersAsync**(`orders`: `SignedOrder`[], `orderTransactionOpts`: [OrderTransactionOpts](#interface-ordertransactionopts)): *`Promise`* -**Returns:** *`Promise`* +*Defined in [contract-wrappers/src/coordinator_wrapper.ts:438](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/contract-wrappers/src/coordinator_wrapper.ts#L438)* -
+Batch version of hardCancelOrderAsync. Cancels orders on-chain by submitting an Ethereum transaction. +Executes multiple cancels atomically in a single transaction. -# Class: ContractWrappers +**Parameters:** -The ContractWrappers class contains smart contract wrappers helpful when building on 0x protocol. +Name | Type | Default | Description | +------ | ------ | ------ | ------ | +`orders` | `SignedOrder`[] | - | An array of orders to cancel. | +`orderTransactionOpts` | [OrderTransactionOpts](#interface-ordertransactionopts) | { shouldValidate: true } | Optional arguments this method accepts. | +**Returns:** *`Promise`* -## Constructors +Transaction hash. +___ +### batchSoftCancelOrdersAsync -\+ **new ContractWrappers**(`supportedProvider`: [SupportedProvider](#supportedprovider), `config`: [ContractWrappersConfig](#interface-contractwrappersconfig)): *[ContractWrappers](#class-contractwrappers)* +▸ **batchSoftCancelOrdersAsync**(`orders`: `SignedOrder`[]): *`Promise`* -*Defined in [contract-wrappers/src/contract_wrappers.ts:84](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/contract-wrappers/src/contract_wrappers.ts#L84)* +*Defined in [contract-wrappers/src/coordinator_wrapper.ts:352](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/contract-wrappers/src/coordinator_wrapper.ts#L352)* -Instantiates a new ContractWrappers instance. +Batch version of softCancelOrderAsync. Requests multiple soft cancels **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)* +`orders` | `SignedOrder`[] | An array of orders to cancel. | -An instance of the ContractWrappers class. +**Returns:** *`Promise`* -## Properties +CoordinatorServerCancellationResponse. See [Cancellation Response](https://github.com/0xProject/0x-protocol-specification/blob/master/v2/coordinator-specification.md#response). -#### contractAddresses +___ -• **contractAddresses**: *`ContractAddresses`* +### fillOrKillOrderAsync -*Defined in [contract-wrappers/src/contract_wrappers.ts:43](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/contract-wrappers/src/contract_wrappers.ts#L43)* +▸ **fillOrKillOrderAsync**(`signedOrder`: `SignedOrder`, `takerAssetFillAmount`: `BigNumber`, `takerAddress`: string, `orderTransactionOpts`: [OrderTransactionOpts](#interface-ordertransactionopts)): *`Promise`* -An index of the default contract addresses for this network. +*Defined in [contract-wrappers/src/coordinator_wrapper.ts:130](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/contract-wrappers/src/coordinator_wrapper.ts#L130)* -___ +Attempts to fill a specific amount of an order. If the entire amount specified cannot be filled, +the fill order is abandoned. -### coordinator +**Parameters:** -• **coordinator**: *[CoordinatorWrapper](#class-coordinatorwrapper)* +Name | Type | Default | Description | +------ | ------ | ------ | ------ | +`signedOrder` | `SignedOrder` | - | An object that conforms to the SignedOrder interface. | +`takerAssetFillAmount` | `BigNumber` | - | The amount of the order (in taker asset baseUnits) that you wish to fill. | +`takerAddress` | string | - | The user Ethereum address who would like to fill this order. Must be available via the supplied Provider provided at instantiation. | +`orderTransactionOpts` | [OrderTransactionOpts](#interface-ordertransactionopts) | { shouldValidate: true } | Optional arguments this method accepts. | -*Defined in [contract-wrappers/src/contract_wrappers.ts:82](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/contract-wrappers/src/contract_wrappers.ts#L82)* +**Returns:** *`Promise`* -An instance of the CoordinatorWrapper class containing methods for interacting with the Coordinator extension contract. +Transaction hash. ___ -### devUtils - -• **devUtils**: *`DevUtilsContract`* +### fillOrderAsync -*Defined in [contract-wrappers/src/contract_wrappers.ts:78](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/contract-wrappers/src/contract_wrappers.ts#L78)* +▸ **fillOrderAsync**(`signedOrder`: `SignedOrder`, `takerAssetFillAmount`: `BigNumber`, `takerAddress`: string, `orderTransactionOpts`: [OrderTransactionOpts](#interface-ordertransactionopts)): *`Promise`* -An instance of the DevUtilsContract class containing methods for interacting with the DevUtils smart contract. +*Defined in [contract-wrappers/src/coordinator_wrapper.ts:100](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/contract-wrappers/src/coordinator_wrapper.ts#L100)* -___ +Fills a signed order with an amount denominated in baseUnits of the taker asset. Under-the-hood, this +method uses the `feeRecipientAddress` of the order to look up the coordinator server endpoint registered in the +coordinator registry contract. It requests a signature from that coordinator server before +submitting the order and signature as a 0x transaction to the coordinator extension contract. The coordinator extension +contract validates signatures and then fills the order via the Exchange contract. -### dutchAuction +**Parameters:** -• **dutchAuction**: *`DutchAuctionContract`* +Name | Type | Default | Description | +------ | ------ | ------ | ------ | +`signedOrder` | `SignedOrder` | - | An object that conforms to the SignedOrder interface. | +`takerAssetFillAmount` | `BigNumber` | - | The amount of the order (in taker asset baseUnits) that you wish to fill. | +`takerAddress` | string | - | The user Ethereum address who would like to fill this order. Must be available via the supplied Provider provided at instantiation. | +`orderTransactionOpts` | [OrderTransactionOpts](#interface-ordertransactionopts) | { shouldValidate: true } | Optional arguments this method accepts. | -*Defined in [contract-wrappers/src/contract_wrappers.ts:74](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/contract-wrappers/src/contract_wrappers.ts#L74)* +**Returns:** *`Promise`* -An instance of the DutchAuctionContract class containing methods for interacting with any DutchAuction smart contract. +Transaction hash. ___ -### erc20Proxy - -• **erc20Proxy**: *`ERC20ProxyContract`* +### getSignerAddressAsync -*Defined in [contract-wrappers/src/contract_wrappers.ts:52](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/contract-wrappers/src/contract_wrappers.ts#L52)* +▸ **getSignerAddressAsync**(`hash`: string, `signature`: string): *`Promise`* -An instance of the ERC20ProxyContract class containing methods for interacting with the -erc20Proxy smart contract. +*Defined in [contract-wrappers/src/coordinator_wrapper.ts:541](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/contract-wrappers/src/coordinator_wrapper.ts#L541)* -___ +Recovers the address of a signer given a hash and signature. -### erc721Proxy +**Parameters:** -• **erc721Proxy**: *`ERC721ProxyContract`* +Name | Type | Description | +------ | ------ | ------ | +`hash` | string | Any 32 byte hash. | +`signature` | string | Proof that the hash has been signed by signer. | -*Defined in [contract-wrappers/src/contract_wrappers.ts:57](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/contract-wrappers/src/contract_wrappers.ts#L57)* +**Returns:** *`Promise`* -An instance of the ERC721ProxyContract class containing methods for interacting with the -erc721Proxy smart contract. +Signer address. ___ -### exchange - -• **exchange**: *`ExchangeContract`* +### hardCancelOrderAsync -*Defined in [contract-wrappers/src/contract_wrappers.ts:47](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/contract-wrappers/src/contract_wrappers.ts#L47)* +▸ **hardCancelOrderAsync**(`order`: `Order` | `SignedOrder`, `orderTransactionOpts`: [OrderTransactionOpts](#interface-ordertransactionopts)): *`Promise`* -An instance of the ExchangeContract class containing methods for interacting with the 0x Exchange smart contract. +*Defined in [contract-wrappers/src/coordinator_wrapper.ts:406](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/contract-wrappers/src/coordinator_wrapper.ts#L406)* -___ +Cancels an order on-chain by submitting an Ethereum transaction. -### forwarder +**Parameters:** -• **forwarder**: *`ForwarderContract`* +Name | Type | Default | Description | +------ | ------ | ------ | ------ | +`order` | `Order` \| `SignedOrder` | - | An object that conforms to the Order or SignedOrder interface. The order you would like to cancel. | +`orderTransactionOpts` | [OrderTransactionOpts](#interface-ordertransactionopts) | { shouldValidate: true } | Optional arguments this method accepts. | -*Defined in [contract-wrappers/src/contract_wrappers.ts:66](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/contract-wrappers/src/contract_wrappers.ts#L66)* +**Returns:** *`Promise`* -An instance of the ForwarderContract class containing methods for interacting with any Forwarder smart contract. +Transaction hash. ___ -### orderValidator +### hardCancelOrdersUpToAsync -• **orderValidator**: *`OrderValidatorContract`* +▸ **hardCancelOrdersUpToAsync**(`targetOrderEpoch`: `BigNumber`, `senderAddress`: string, `orderTransactionOpts`: [OrderTransactionOpts](#interface-ordertransactionopts)): *`Promise`* -*Defined in [contract-wrappers/src/contract_wrappers.ts:70](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/contract-wrappers/src/contract_wrappers.ts#L70)* +*Defined in [contract-wrappers/src/coordinator_wrapper.ts:473](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/contract-wrappers/src/coordinator_wrapper.ts#L473)* -An instance of the OrderValidatorContract class containing methods for interacting with any OrderValidator smart contract. +Cancels orders on-chain by submitting an Ethereum transaction. +Cancels all orders created by makerAddress with a salt less than or equal to the targetOrderEpoch +and senderAddress equal to coordinator extension contract address. -___ +**Parameters:** -### weth9 +Name | Type | Default | Description | +------ | ------ | ------ | ------ | +`targetOrderEpoch` | `BigNumber` | - | Target order epoch. | +`senderAddress` | string | - | Address that should send the transaction. | +`orderTransactionOpts` | [OrderTransactionOpts](#interface-ordertransactionopts) | { shouldValidate: true } | Optional arguments this method accepts. | -• **weth9**: *`WETH9Contract`* +**Returns:** *`Promise`* -*Defined in [contract-wrappers/src/contract_wrappers.ts:62](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/contract-wrappers/src/contract_wrappers.ts#L62)* +Transaction hash. -An instance of the WETH9Contract class containing methods for interacting with the -WETH9 smart contract. +___ -## Methods +### marketBuyOrdersNoThrowAsync -### getAbiDecoder +▸ **marketBuyOrdersNoThrowAsync**(`signedOrders`: `SignedOrder`[], `makerAssetFillAmount`: `BigNumber`, `takerAddress`: string, `orderTransactionOpts`: [OrderTransactionOpts](#interface-ordertransactionopts)): *`Promise`* -▸ **getAbiDecoder**(): *`AbiDecoder`* +*Defined in [contract-wrappers/src/coordinator_wrapper.ts:260](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/contract-wrappers/src/coordinator_wrapper.ts#L260)* -*Defined in [contract-wrappers/src/contract_wrappers.ts:155](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/contract-wrappers/src/contract_wrappers.ts#L155)* +No throw version of marketBuyOrdersAsync -Get the abi decoder instance currently used by contract-wrappers +**Parameters:** -**Returns:** *`AbiDecoder`* +Name | Type | Default | Description | +------ | ------ | ------ | ------ | +`signedOrders` | `SignedOrder`[] | - | An array of signed orders to fill. | +`makerAssetFillAmount` | `BigNumber` | - | Maker asset fill amount. | +`takerAddress` | string | - | The user Ethereum address who would like to fill these orders. Must be available via the supplied Provider provided at instantiation. | +`orderTransactionOpts` | [OrderTransactionOpts](#interface-ordertransactionopts) | { shouldValidate: true } | Optional arguments this method accepts. | -AbiDecoder instance +**Returns:** *`Promise`* + +Transaction hash. ___ -### getProvider +### marketSellOrdersNoThrowAsync -▸ **getProvider**(): *[SupportedProvider](#supportedprovider)* +▸ **marketSellOrdersNoThrowAsync**(`signedOrders`: `SignedOrder`[], `takerAssetFillAmount`: `BigNumber`, `takerAddress`: string, `orderTransactionOpts`: [OrderTransactionOpts](#interface-ordertransactionopts)): *`Promise`* -*Defined in [contract-wrappers/src/contract_wrappers.ts:148](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/contract-wrappers/src/contract_wrappers.ts#L148)* +*Defined in [contract-wrappers/src/coordinator_wrapper.ts:290](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/contract-wrappers/src/coordinator_wrapper.ts#L290)* -Get the provider instance currently used by contract-wrappers +No throw version of marketSellOrdersAsync -**Returns:** *[SupportedProvider](#supportedprovider)* +**Parameters:** -Web3 provider instance +Name | Type | Default | Description | +------ | ------ | ------ | ------ | +`signedOrders` | `SignedOrder`[] | - | An array of signed orders to fill. | +`takerAssetFillAmount` | `BigNumber` | - | Taker asset fill amount. | +`takerAddress` | string | - | The user Ethereum address who would like to fill these orders. Must be available via the supplied Provider provided at instantiation. | +`orderTransactionOpts` | [OrderTransactionOpts](#interface-ordertransactionopts) | { shouldValidate: true } | Optional arguments this method accepts. | + +**Returns:** *`Promise`* + +Transaction hash. ___ -### unsubscribeAll +### softCancelOrderAsync -▸ **unsubscribeAll**(): *void* +▸ **softCancelOrderAsync**(`order`: `Order` | `SignedOrder`): *`Promise`* -*Defined in [contract-wrappers/src/contract_wrappers.ts:138](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/contract-wrappers/src/contract_wrappers.ts#L138)* +*Defined in [contract-wrappers/src/coordinator_wrapper.ts:317](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/contract-wrappers/src/coordinator_wrapper.ts#L317)* -Unsubscribes from all subscriptions for all contracts. +Soft cancel a given order. +Soft cancels are recorded only on coordinator operator servers and do not involve an Ethereum transaction. +See [soft cancels](https://github.com/0xProject/0x-protocol-specification/blob/master/v2/coordinator-specification.md#soft-cancels). -**Returns:** *void* +**Parameters:** + +Name | Type | Description | +------ | ------ | ------ | +`order` | `Order` \| `SignedOrder` | An object that conforms to the Order or SignedOrder interface. The order you would like to cancel. | + +**Returns:** *`Promise`* + +CoordinatorServerCancellationResponse. See [Cancellation Response](https://github.com/0xProject/0x-protocol-specification/blob/master/v2/coordinator-specification.md#response).
-# Class: CoordinatorWrapper +# Class: AbiDecoder -This class includes all the functionality related to filling or cancelling orders through -the 0x V2 Coordinator extension contract. +AbiDecoder allows you to decode event logs given a set of supplied contract ABI's. It takes the contract's event +signature from the ABI and attempts to decode the logs using it. ## Constructors -\+ **new CoordinatorWrapper**(`provider`: [SupportedProvider](#supportedprovider), `networkId`: number, `address?`: undefined | string, `exchangeAddress?`: undefined | string, `registryAddress?`: undefined | string): *[CoordinatorWrapper](#class-coordinatorwrapper)* +\+ **new AbiDecoder**(`abiArrays`: [AbiDefinition](#abidefinition)[][]): *[AbiDecoder](#class-abidecoder)* -*Defined in [contract-wrappers/src/coordinator_wrapper.ts:43](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/contract-wrappers/src/coordinator_wrapper.ts#L43)* +*Defined in [utils/src/abi_decoder.ts:42](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/utils/src/abi_decoder.ts#L42)* -Instantiate CoordinatorWrapper +Instantiate an AbiDecoder **Parameters:** Name | Type | Description | ------ | ------ | ------ | -`provider` | [SupportedProvider](#supportedprovider) | - | -`networkId` | number | Desired networkId. | -`address?` | undefined \| string | The address of the Coordinator contract. If undefined, will default to the known address corresponding to the networkId. | -`exchangeAddress?` | undefined \| string | The address of the Exchange contract. If undefined, will default to the known address corresponding to the networkId. | -`registryAddress?` | undefined \| string | The address of the CoordinatorRegistry contract. If undefined, will default to the known address corresponding to the networkId. | +`abiArrays` | [AbiDefinition](#abidefinition)[][] | An array of contract ABI's | -**Returns:** *[CoordinatorWrapper](#class-coordinatorwrapper)* +**Returns:** *[AbiDecoder](#class-abidecoder)* -## Properties +AbiDecoder instance -### abi +## Methods -• **abi**: *[ContractAbi](#contractabi)* = Coordinator.compilerOutput.abi +### addABI -*Defined in [contract-wrappers/src/coordinator_wrapper.ts:34](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/contract-wrappers/src/coordinator_wrapper.ts#L34)* +▸ **addABI**(`abiArray`: [AbiDefinition](#abidefinition)[], `contractName?`: undefined | string): *void* -___ +*Defined in [utils/src/abi_decoder.ts:158](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/utils/src/abi_decoder.ts#L158)* -### address +Adds a set of ABI definitions, after which calldata and logs targeting these ABI's can be decoded. +Additional properties can be included to disambiguate similar ABI's. For example, if two functions +have the same signature but different parameter names, then their ABI definitions can be disambiguated +by specifying a contract name. -• **address**: *string* +**Parameters:** + +Name | Type | Description | +------ | ------ | ------ | +`abiArray` | [AbiDefinition](#abidefinition)[] | - | +`contractName?` | undefined \| string | Name of contract that encapsulates the ABI definitions (optional). This can be used when decoding calldata to disambiguate methods with the same signature but different parameter names. | -*Defined in [contract-wrappers/src/coordinator_wrapper.ts:36](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/contract-wrappers/src/coordinator_wrapper.ts#L36)* +**Returns:** *void* ___ -### exchangeAddress +### decodeCalldataOrThrow -• **exchangeAddress**: *string* +▸ **decodeCalldataOrThrow**(`calldata`: string, `contractName?`: undefined | string): *`DecodedCalldata`* -*Defined in [contract-wrappers/src/coordinator_wrapper.ts:37](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/contract-wrappers/src/coordinator_wrapper.ts#L37)* +*Defined in [utils/src/abi_decoder.ts:118](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/utils/src/abi_decoder.ts#L118)* -___ +Decodes calldata for a known ABI. + +**Parameters:** -### networkId +Name | Type | Description | +------ | ------ | ------ | +`calldata` | string | hex-encoded calldata. | +`contractName?` | undefined \| string | used to disambiguate similar ABI's (optional). | -• **networkId**: *number* +**Returns:** *`DecodedCalldata`* -*Defined in [contract-wrappers/src/coordinator_wrapper.ts:35](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/contract-wrappers/src/coordinator_wrapper.ts#L35)* +Decoded calldata. Includes: function name and signature, along with the decoded arguments. ___ -### registryAddress - -• **registryAddress**: *string* - -*Defined in [contract-wrappers/src/coordinator_wrapper.ts:38](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/contract-wrappers/src/coordinator_wrapper.ts#L38)* +### tryToDecodeLogOrNoop -## Methods +▸ **tryToDecodeLogOrNoop**<**ArgsType**>(`log`: `LogEntry`): *`LogWithDecodedArgs` | [RawLog](#rawlog)* -### assertValidCoordinatorApprovalsOrThrowAsync +*Defined in [utils/src/abi_decoder.ts:58](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/utils/src/abi_decoder.ts#L58)* -▸ **assertValidCoordinatorApprovalsOrThrowAsync**(`transaction`: `ZeroExTransaction`, `txOrigin`: string, `transactionSignature`: string, `approvalExpirationTimeSeconds`: `BigNumber`[], `approvalSignatures`: string[]): *`Promise`* +Attempt to decode a log given the ABI's the AbiDecoder knows about. -*Defined in [contract-wrappers/src/coordinator_wrapper.ts:529](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/contract-wrappers/src/coordinator_wrapper.ts#L529)* +**Type parameters:** -Validates that the 0x transaction has been approved by all of the feeRecipients that correspond to each order in the transaction's Exchange calldata. -Throws an error if the transaction approvals are not valid. Will not detect failures that would occur when the transaction is executed on the Exchange contract. +▪ **ArgsType**: *`DecodedLogArgs`* **Parameters:** Name | Type | Description | ------ | ------ | ------ | -`transaction` | `ZeroExTransaction` | 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. | -`approvalExpirationTimeSeconds` | `BigNumber`[] | Array of expiration times in seconds for which each corresponding approval signature expires. | -`approvalSignatures` | string[] | Array of signatures that correspond to the feeRecipients of each order in the transaction's Exchange calldata. | - -**Returns:** *`Promise`* +`log` | `LogEntry` | The log to attempt to decode | -___ +**Returns:** *`LogWithDecodedArgs` | [RawLog](#rawlog)* -### batchFillOrKillOrdersAsync +The decoded log if the requisite ABI was available. Otherwise the log unaltered. -▸ **batchFillOrKillOrdersAsync**(`signedOrders`: `SignedOrder`[], `takerAssetFillAmounts`: `BigNumber`[], `takerAddress`: string, `orderTransactionOpts`: [OrderTransactionOpts](#interface-ordertransactionopts)): *`Promise`* +
-*Defined in [contract-wrappers/src/coordinator_wrapper.ts:241](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/contract-wrappers/src/coordinator_wrapper.ts#L241)* +# Enumeration: CoordinatorRegistryEvents -Batch version of fillOrKillOrderAsync. Executes multiple fills atomically in a single transaction. -**Parameters:** +## Enumeration members -Name | Type | Default | Description | ------- | ------ | ------ | ------ | -`signedOrders` | `SignedOrder`[] | - | An array of signed orders to fill. | -`takerAssetFillAmounts` | `BigNumber`[] | - | The amounts of the orders (in taker asset baseUnits) that you wish to fill. | -`takerAddress` | string | - | The user Ethereum address who would like to fill these orders. Must be available via the supplied Provider provided at instantiation. | -`orderTransactionOpts` | [OrderTransactionOpts](#interface-ordertransactionopts) | { shouldValidate: true } | Optional arguments this method accepts. | +### CoordinatorEndpointSet -**Returns:** *`Promise`* +• **CoordinatorEndpointSet**: = "CoordinatorEndpointSet" -Transaction hash. +*Defined in [abi-gen-wrappers/src/generated-wrappers/coordinator_registry.ts:40](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/coordinator_registry.ts#L40)* -___ +
-### batchFillOrdersAsync +# Enumeration: DummyERC20TokenEvents -▸ **batchFillOrdersAsync**(`signedOrders`: `SignedOrder`[], `takerAssetFillAmounts`: `BigNumber`[], `takerAddress`: string, `orderTransactionOpts`: [OrderTransactionOpts](#interface-ordertransactionopts)): *`Promise`* -*Defined in [contract-wrappers/src/coordinator_wrapper.ts:171](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/contract-wrappers/src/coordinator_wrapper.ts#L171)* +## Enumeration members -Batch version of fillOrderAsync. Executes multiple fills atomically in a single transaction. -Under-the-hood, this method uses the `feeRecipientAddress`s of the orders to looks up the coordinator server endpoints -registered in the coordinator registry contract. It requests a signature from each coordinator server before -submitting the orders and signatures as a 0x transaction to the coordinator extension contract, which validates the -signatures and then fills the order through the Exchange contract. -If any `feeRecipientAddress` in the batch is not registered to a coordinator server, the whole batch fails. +### Approval -**Parameters:** +• **Approval**: = "Approval" -Name | Type | Default | Description | ------- | ------ | ------ | ------ | -`signedOrders` | `SignedOrder`[] | - | An array of signed orders to fill. | -`takerAssetFillAmounts` | `BigNumber`[] | - | The amounts of the orders (in taker asset baseUnits) that you wish to fill. | -`takerAddress` | string | - | The user Ethereum address who would like to fill these orders. Must be available via the supplied Provider provided at instantiation. | -`orderTransactionOpts` | [OrderTransactionOpts](#interface-ordertransactionopts) | { shouldValidate: true } | Optional arguments this method accepts. | +*Defined in [abi-gen-wrappers/src/generated-wrappers/dummy_erc20_token.ts:40](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/dummy_erc20_token.ts#L40)* -**Returns:** *`Promise`* +___ -Transaction hash. +### Transfer -___ +• **Transfer**: = "Transfer" -### batchFillOrdersNoThrowAsync +*Defined in [abi-gen-wrappers/src/generated-wrappers/dummy_erc20_token.ts:41](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/dummy_erc20_token.ts#L41)* -▸ **batchFillOrdersNoThrowAsync**(`signedOrders`: `SignedOrder`[], `takerAssetFillAmounts`: `BigNumber`[], `takerAddress`: string, `orderTransactionOpts`: [OrderTransactionOpts](#interface-ordertransactionopts)): *`Promise`* +
-*Defined in [contract-wrappers/src/coordinator_wrapper.ts:206](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/contract-wrappers/src/coordinator_wrapper.ts#L206)* +# Enumeration: DummyERC721TokenEvents -No throw version of batchFillOrdersAsync -**Parameters:** +## Enumeration members -Name | Type | Default | Description | ------- | ------ | ------ | ------ | -`signedOrders` | `SignedOrder`[] | - | An array of signed orders to fill. | -`takerAssetFillAmounts` | `BigNumber`[] | - | The amounts of the orders (in taker asset baseUnits) that you wish to fill. | -`takerAddress` | string | - | The user Ethereum address who would like to fill these orders. Must be available via the supplied Provider provided at instantiation. | -`orderTransactionOpts` | [OrderTransactionOpts](#interface-ordertransactionopts) | { shouldValidate: true } | Optional arguments this method accepts. | +### Approval -**Returns:** *`Promise`* +• **Approval**: = "Approval" -Transaction hash. +*Defined in [abi-gen-wrappers/src/generated-wrappers/dummy_erc721_token.ts:43](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/dummy_erc721_token.ts#L43)* ___ -### batchHardCancelOrdersAsync - -▸ **batchHardCancelOrdersAsync**(`orders`: `SignedOrder`[], `orderTransactionOpts`: [OrderTransactionOpts](#interface-ordertransactionopts)): *`Promise`* +### ApprovalForAll -*Defined in [contract-wrappers/src/coordinator_wrapper.ts:460](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/contract-wrappers/src/coordinator_wrapper.ts#L460)* +• **ApprovalForAll**: = "ApprovalForAll" -Batch version of hardCancelOrderAsync. Cancels orders on-chain by submitting an Ethereum transaction. -Executes multiple cancels atomically in a single transaction. +*Defined in [abi-gen-wrappers/src/generated-wrappers/dummy_erc721_token.ts:44](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/dummy_erc721_token.ts#L44)* -**Parameters:** +___ -Name | Type | Default | Description | ------- | ------ | ------ | ------ | -`orders` | `SignedOrder`[] | - | An array of orders to cancel. | -`orderTransactionOpts` | [OrderTransactionOpts](#interface-ordertransactionopts) | { shouldValidate: true } | Optional arguments this method accepts. | +### Transfer -**Returns:** *`Promise`* +• **Transfer**: = "Transfer" -Transaction hash. +*Defined in [abi-gen-wrappers/src/generated-wrappers/dummy_erc721_token.ts:45](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/dummy_erc721_token.ts#L45)* -___ +
-### batchSoftCancelOrdersAsync +# Enumeration: ERC20TokenEvents -▸ **batchSoftCancelOrdersAsync**(`orders`: `SignedOrder`[]): *`Promise`* -*Defined in [contract-wrappers/src/coordinator_wrapper.ts:374](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/contract-wrappers/src/coordinator_wrapper.ts#L374)* +## Enumeration members -Batch version of softCancelOrderAsync. Requests multiple soft cancels +### Approval -**Parameters:** +• **Approval**: = "Approval" -Name | Type | Description | ------- | ------ | ------ | -`orders` | `SignedOrder`[] | An array of orders to cancel. | +*Defined in [abi-gen-wrappers/src/generated-wrappers/erc20_token.ts:41](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/erc20_token.ts#L41)* -**Returns:** *`Promise`* +___ -CoordinatorServerCancellationResponse. See [Cancellation Response](https://github.com/0xProject/0x-protocol-specification/blob/master/v2/coordinator-specification.md#response). +### Transfer -___ +• **Transfer**: = "Transfer" -### fillOrKillOrderAsync +*Defined in [abi-gen-wrappers/src/generated-wrappers/erc20_token.ts:40](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/erc20_token.ts#L40)* -▸ **fillOrKillOrderAsync**(`signedOrder`: `SignedOrder`, `takerAssetFillAmount`: `BigNumber`, `takerAddress`: string, `orderTransactionOpts`: [OrderTransactionOpts](#interface-ordertransactionopts)): *`Promise`* +
-*Defined in [contract-wrappers/src/coordinator_wrapper.ts:134](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/contract-wrappers/src/coordinator_wrapper.ts#L134)* +# Enumeration: ERC721TokenEvents -Attempts to fill a specific amount of an order. If the entire amount specified cannot be filled, -the fill order is abandoned. -**Parameters:** +## Enumeration members -Name | Type | Default | Description | ------- | ------ | ------ | ------ | -`signedOrder` | `SignedOrder` | - | An object that conforms to the SignedOrder interface. | -`takerAssetFillAmount` | `BigNumber` | - | The amount of the order (in taker asset baseUnits) that you wish to fill. | -`takerAddress` | string | - | The user Ethereum address who would like to fill this order. Must be available via the supplied Provider provided at instantiation. | -`orderTransactionOpts` | [OrderTransactionOpts](#interface-ordertransactionopts) | { shouldValidate: true } | Optional arguments this method accepts. | +### Approval -**Returns:** *`Promise`* +• **Approval**: = "Approval" -Transaction hash. +*Defined in [abi-gen-wrappers/src/generated-wrappers/erc721_token.ts:43](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/erc721_token.ts#L43)* ___ -### fillOrderAsync +### ApprovalForAll -▸ **fillOrderAsync**(`signedOrder`: `SignedOrder`, `takerAssetFillAmount`: `BigNumber`, `takerAddress`: string, `orderTransactionOpts`: [OrderTransactionOpts](#interface-ordertransactionopts)): *`Promise`* +• **ApprovalForAll**: = "ApprovalForAll" -*Defined in [contract-wrappers/src/coordinator_wrapper.ts:101](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/contract-wrappers/src/coordinator_wrapper.ts#L101)* +*Defined in [abi-gen-wrappers/src/generated-wrappers/erc721_token.ts:44](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/erc721_token.ts#L44)* -Fills a signed order with an amount denominated in baseUnits of the taker asset. Under-the-hood, this -method uses the `feeRecipientAddress` of the order to look up the coordinator server endpoint registered in the -coordinator registry contract. It requests a signature from that coordinator server before -submitting the order and signature as a 0x transaction to the coordinator extension contract. The coordinator extension -contract validates signatures and then fills the order via the Exchange contract. +___ -**Parameters:** +### Transfer -Name | Type | Default | Description | ------- | ------ | ------ | ------ | -`signedOrder` | `SignedOrder` | - | An object that conforms to the SignedOrder interface. | -`takerAssetFillAmount` | `BigNumber` | - | The amount of the order (in taker asset baseUnits) that you wish to fill. | -`takerAddress` | string | - | The user Ethereum address who would like to fill this order. Must be available via the supplied Provider provided at instantiation. | -`orderTransactionOpts` | [OrderTransactionOpts](#interface-ordertransactionopts) | { shouldValidate: true } | Optional arguments this method accepts. | +• **Transfer**: = "Transfer" -**Returns:** *`Promise`* +*Defined in [abi-gen-wrappers/src/generated-wrappers/erc721_token.ts:45](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/erc721_token.ts#L45)* -Transaction hash. +
-___ +# Enumeration: ExchangeEvents -### getSignerAddressAsync -▸ **getSignerAddressAsync**(`hash`: string, `signature`: string): *`Promise`* +## Enumeration members -*Defined in [contract-wrappers/src/coordinator_wrapper.ts:561](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/contract-wrappers/src/coordinator_wrapper.ts#L561)* +### AssetProxyRegistered -Recovers the address of a signer given a hash and signature. +• **AssetProxyRegistered**: = "AssetProxyRegistered" -**Parameters:** +*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:48](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L48)* -Name | Type | Description | ------- | ------ | ------ | -`hash` | string | Any 32 byte hash. | -`signature` | string | Proof that the hash has been signed by signer. | +___ -**Returns:** *`Promise`* +### Cancel -Signer address. +• **Cancel**: = "Cancel" -___ +*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:49](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L49)* -### hardCancelOrderAsync +___ -▸ **hardCancelOrderAsync**(`order`: `Order` | `SignedOrder`, `orderTransactionOpts`: [OrderTransactionOpts](#interface-ordertransactionopts)): *`Promise`* +### CancelUpTo -*Defined in [contract-wrappers/src/coordinator_wrapper.ts:428](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/contract-wrappers/src/coordinator_wrapper.ts#L428)* +• **CancelUpTo**: = "CancelUpTo" -Cancels an order on-chain by submitting an Ethereum transaction. +*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:50](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L50)* -**Parameters:** +___ -Name | Type | Default | Description | ------- | ------ | ------ | ------ | -`order` | `Order` \| `SignedOrder` | - | An object that conforms to the Order or SignedOrder interface. The order you would like to cancel. | -`orderTransactionOpts` | [OrderTransactionOpts](#interface-ordertransactionopts) | { shouldValidate: true } | Optional arguments this method accepts. | +### Fill -**Returns:** *`Promise`* +• **Fill**: = "Fill" -Transaction hash. +*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:51](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L51)* ___ -### hardCancelOrdersUpToAsync - -▸ **hardCancelOrdersUpToAsync**(`targetOrderEpoch`: `BigNumber`, `senderAddress`: string, `orderTransactionOpts`: [OrderTransactionOpts](#interface-ordertransactionopts)): *`Promise`* +### ProtocolFeeCollectorAddress -*Defined in [contract-wrappers/src/coordinator_wrapper.ts:495](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/contract-wrappers/src/coordinator_wrapper.ts#L495)* +• **ProtocolFeeCollectorAddress**: = "ProtocolFeeCollectorAddress" -Cancels orders on-chain by submitting an Ethereum transaction. -Cancels all orders created by makerAddress with a salt less than or equal to the targetOrderEpoch -and senderAddress equal to coordinator extension contract address. +*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:52](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L52)* -**Parameters:** +___ -Name | Type | Default | Description | ------- | ------ | ------ | ------ | -`targetOrderEpoch` | `BigNumber` | - | Target order epoch. | -`senderAddress` | string | - | Address that should send the transaction. | -`orderTransactionOpts` | [OrderTransactionOpts](#interface-ordertransactionopts) | { shouldValidate: true } | Optional arguments this method accepts. | +### ProtocolFeeMultiplier -**Returns:** *`Promise`* +• **ProtocolFeeMultiplier**: = "ProtocolFeeMultiplier" -Transaction hash. +*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:53](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L53)* ___ -### marketBuyOrdersNoThrowAsync +### SignatureValidatorApproval -▸ **marketBuyOrdersNoThrowAsync**(`signedOrders`: `SignedOrder`[], `makerAssetFillAmount`: `BigNumber`, `takerAddress`: string, `orderTransactionOpts`: [OrderTransactionOpts](#interface-ordertransactionopts)): *`Promise`* +• **SignatureValidatorApproval**: = "SignatureValidatorApproval" -*Defined in [contract-wrappers/src/coordinator_wrapper.ts:276](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/contract-wrappers/src/coordinator_wrapper.ts#L276)* +*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:54](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L54)* -No throw version of marketBuyOrdersAsync +___ -**Parameters:** +### TransactionExecution -Name | Type | Default | Description | ------- | ------ | ------ | ------ | -`signedOrders` | `SignedOrder`[] | - | An array of signed orders to fill. | -`makerAssetFillAmount` | `BigNumber` | - | Maker asset fill amount. | -`takerAddress` | string | - | The user Ethereum address who would like to fill these orders. Must be available via the supplied Provider provided at instantiation. | -`orderTransactionOpts` | [OrderTransactionOpts](#interface-ordertransactionopts) | { shouldValidate: true } | Optional arguments this method accepts. | +• **TransactionExecution**: = "TransactionExecution" -**Returns:** *`Promise`* +*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:55](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L55)* -Transaction hash. +
-___ +# Enumeration: WETH9Events -### marketSellOrdersNoThrowAsync -▸ **marketSellOrdersNoThrowAsync**(`signedOrders`: `SignedOrder`[], `takerAssetFillAmount`: `BigNumber`, `takerAddress`: string, `orderTransactionOpts`: [OrderTransactionOpts](#interface-ordertransactionopts)): *`Promise`* +## Enumeration members -*Defined in [contract-wrappers/src/coordinator_wrapper.ts:309](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/contract-wrappers/src/coordinator_wrapper.ts#L309)* +### Approval -No throw version of marketSellOrdersAsync +• **Approval**: = "Approval" -**Parameters:** +*Defined in [abi-gen-wrappers/src/generated-wrappers/weth9.ts:44](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/weth9.ts#L44)* -Name | Type | Default | Description | ------- | ------ | ------ | ------ | -`signedOrders` | `SignedOrder`[] | - | An array of signed orders to fill. | -`takerAssetFillAmount` | `BigNumber` | - | Taker asset fill amount. | -`takerAddress` | string | - | The user Ethereum address who would like to fill these orders. Must be available via the supplied Provider provided at instantiation. | -`orderTransactionOpts` | [OrderTransactionOpts](#interface-ordertransactionopts) | { shouldValidate: true } | Optional arguments this method accepts. | +___ -**Returns:** *`Promise`* +### Deposit + +• **Deposit**: = "Deposit" -Transaction hash. +*Defined in [abi-gen-wrappers/src/generated-wrappers/weth9.ts:46](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/weth9.ts#L46)* ___ -### softCancelOrderAsync - -▸ **softCancelOrderAsync**(`order`: `Order` | `SignedOrder`): *`Promise`* +### Transfer -*Defined in [contract-wrappers/src/coordinator_wrapper.ts:339](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/contract-wrappers/src/coordinator_wrapper.ts#L339)* +• **Transfer**: = "Transfer" -Soft cancel a given order. -Soft cancels are recorded only on coordinator operator servers and do not involve an Ethereum transaction. -See [soft cancels](https://github.com/0xProject/0x-protocol-specification/blob/master/v2/coordinator-specification.md#soft-cancels). +*Defined in [abi-gen-wrappers/src/generated-wrappers/weth9.ts:45](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/weth9.ts#L45)* -**Parameters:** +___ -Name | Type | Description | ------- | ------ | ------ | -`order` | `Order` \| `SignedOrder` | An object that conforms to the Order or SignedOrder interface. The order you would like to cancel. | +### Withdrawal -**Returns:** *`Promise`* +• **Withdrawal**: = "Withdrawal" -CoordinatorServerCancellationResponse. See [Cancellation Response](https://github.com/0xProject/0x-protocol-specification/blob/master/v2/coordinator-specification.md#response). +*Defined in [abi-gen-wrappers/src/generated-wrappers/weth9.ts:47](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/weth9.ts#L47)*
-# Class: AbiDecoder -AbiDecoder allows you to decode event logs given a set of supplied contract ABI's. It takes the contract's event -signature from the ABI and attempts to decode the logs using it. -## Constructors +# Enumeration: ContractError -\+ **new AbiDecoder**(`abiArrays`: [AbiDefinition](#abidefinition)[][]): *[AbiDecoder](#class-abidecoder)* +## Enumeration members -*Defined in [utils/src/abi_decoder.ts:42](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/utils/src/abi_decoder.ts#L42)* +### ContractNotDeployedOnChain -Instantiate an AbiDecoder +• **ContractNotDeployedOnChain**: = "CONTRACT_NOT_DEPLOYED_ON_CHAIN" -**Parameters:** +*Defined in [contract-wrappers/src/types.ts:16](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/contract-wrappers/src/types.ts#L16)* -Name | Type | Description | ------- | ------ | ------ | -`abiArrays` | [AbiDefinition](#abidefinition)[][] | An array of contract ABI's | +___ -**Returns:** *[AbiDecoder](#class-abidecoder)* +### ERC721NoApproval -AbiDecoder instance +• **ERC721NoApproval**: = "ERC_721_NO_APPROVAL" -## Methods +*Defined in [contract-wrappers/src/types.ts:26](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/contract-wrappers/src/types.ts#L26)* -### addABI +___ -▸ **addABI**(`abiArray`: [AbiDefinition](#abidefinition)[], `contractName?`: undefined | string): *void* +### ERC721OwnerNotFound -*Defined in [utils/src/abi_decoder.ts:158](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/utils/src/abi_decoder.ts#L158)* +• **ERC721OwnerNotFound**: = "ERC_721_OWNER_NOT_FOUND" -Adds a set of ABI definitions, after which calldata and logs targeting these ABI's can be decoded. -Additional properties can be included to disambiguate similar ABI's. For example, if two functions -have the same signature but different parameter names, then their ABI definitions can be disambiguated -by specifying a contract name. +*Defined in [contract-wrappers/src/types.ts:25](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/contract-wrappers/src/types.ts#L25)* -**Parameters:** +___ -Name | Type | Description | ------- | ------ | ------ | -`abiArray` | [AbiDefinition](#abidefinition)[] | - | -`contractName?` | undefined \| string | Name of contract that encapsulates the ABI definitions (optional). This can be used when decoding calldata to disambiguate methods with the same signature but different parameter names. | +### InsufficientAllowanceForTransfer -**Returns:** *void* +• **InsufficientAllowanceForTransfer**: = "INSUFFICIENT_ALLOWANCE_FOR_TRANSFER" + +*Defined in [contract-wrappers/src/types.ts:17](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/contract-wrappers/src/types.ts#L17)* ___ -### decodeCalldataOrThrow +### InsufficientBalanceForTransfer -▸ **decodeCalldataOrThrow**(`calldata`: string, `contractName?`: undefined | string): *`DecodedCalldata`* +• **InsufficientBalanceForTransfer**: = "INSUFFICIENT_BALANCE_FOR_TRANSFER" -*Defined in [utils/src/abi_decoder.ts:118](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/utils/src/abi_decoder.ts#L118)* +*Defined in [contract-wrappers/src/types.ts:18](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/contract-wrappers/src/types.ts#L18)* -Decodes calldata for a known ABI. +___ -**Parameters:** +### InsufficientEthBalanceForDeposit -Name | Type | Description | ------- | ------ | ------ | -`calldata` | string | hex-encoded calldata. | -`contractName?` | undefined \| string | used to disambiguate similar ABI's (optional). | +• **InsufficientEthBalanceForDeposit**: = "INSUFFICIENT_ETH_BALANCE_FOR_DEPOSIT" -**Returns:** *`DecodedCalldata`* +*Defined in [contract-wrappers/src/types.ts:19](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/contract-wrappers/src/types.ts#L19)* -Decoded calldata. Includes: function name and signature, along with the decoded arguments. +___ + +### InsufficientWEthBalanceForWithdrawal + +• **InsufficientWEthBalanceForWithdrawal**: = "INSUFFICIENT_WETH_BALANCE_FOR_WITHDRAWAL" + +*Defined in [contract-wrappers/src/types.ts:20](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/contract-wrappers/src/types.ts#L20)* ___ -### tryToDecodeLogOrNoop +### InvalidJump -▸ **tryToDecodeLogOrNoop**<**ArgsType**>(`log`: `LogEntry`): *`LogWithDecodedArgs` | [RawLog](#rawlog)* +• **InvalidJump**: = "INVALID_JUMP" -*Defined in [utils/src/abi_decoder.ts:58](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/utils/src/abi_decoder.ts#L58)* +*Defined in [contract-wrappers/src/types.ts:21](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/contract-wrappers/src/types.ts#L21)* -Attempt to decode a log given the ABI's the AbiDecoder knows about. +___ -**Type parameters:** +### OutOfGas -▪ **ArgsType**: *`DecodedLogArgs`* +• **OutOfGas**: = "OUT_OF_GAS" -**Parameters:** +*Defined in [contract-wrappers/src/types.ts:22](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/contract-wrappers/src/types.ts#L22)* -Name | Type | Description | ------- | ------ | ------ | -`log` | `LogEntry` | The log to attempt to decode | +___ -**Returns:** *`LogWithDecodedArgs` | [RawLog](#rawlog)* +### SignatureRequestDenied -The decoded log if the requisite ABI was available. Otherwise the log unaltered. +• **SignatureRequestDenied**: = "SIGNATURE_REQUEST_DENIED" -
+*Defined in [contract-wrappers/src/types.ts:27](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/contract-wrappers/src/types.ts#L27)* -# Enumeration: CoordinatorRegistryEvents +___ +### SubscriptionAlreadyPresent -## Enumeration members +• **SubscriptionAlreadyPresent**: = "SUBSCRIPTION_ALREADY_PRESENT" -### CoordinatorEndpointSet +*Defined in [contract-wrappers/src/types.ts:24](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/contract-wrappers/src/types.ts#L24)* -• **CoordinatorEndpointSet**: = "CoordinatorEndpointSet" +___ + +### SubscriptionNotFound + +• **SubscriptionNotFound**: = "SUBSCRIPTION_NOT_FOUND" -*Defined in [abi-gen-wrappers/src/generated-wrappers/coordinator_registry.ts:31](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/coordinator_registry.ts#L31)* +*Defined in [contract-wrappers/src/types.ts:23](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/contract-wrappers/src/types.ts#L23)*
-# Enumeration: DummyERC20TokenEvents +# Enumeration: ForwarderError ## Enumeration members -### Approval +### CompleteFillFailed -• **Approval**: = "Approval" +• **CompleteFillFailed**: = "COMPLETE_FILL_FAILED" -*Defined in [abi-gen-wrappers/src/generated-wrappers/dummy_erc20_token.ts:31](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dummy_erc20_token.ts#L31)* +*Defined in [contract-wrappers/src/types.ts:12](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/contract-wrappers/src/types.ts#L12)* -___ +
-### Transfer -• **Transfer**: = "Transfer" -*Defined in [abi-gen-wrappers/src/generated-wrappers/dummy_erc20_token.ts:32](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dummy_erc20_token.ts#L32)* -
-# Enumeration: DummyERC721TokenEvents +# Enumeration: BlockParamLiteral ## Enumeration members -### Approval +### Earliest -• **Approval**: = "Approval" +• **Earliest**: = "earliest" -*Defined in [abi-gen-wrappers/src/generated-wrappers/dummy_erc721_token.ts:34](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dummy_erc721_token.ts#L34)* +*Defined in [ethereum-types/src/index.ts:478](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L478)* ___ -### ApprovalForAll +### Latest -• **ApprovalForAll**: = "ApprovalForAll" +• **Latest**: = "latest" -*Defined in [abi-gen-wrappers/src/generated-wrappers/dummy_erc721_token.ts:35](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dummy_erc721_token.ts#L35)* +*Defined in [ethereum-types/src/index.ts:479](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L479)* ___ -### Transfer +### Pending -• **Transfer**: = "Transfer" +• **Pending**: = "pending" -*Defined in [abi-gen-wrappers/src/generated-wrappers/dummy_erc721_token.ts:36](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dummy_erc721_token.ts#L36)* +*Defined in [ethereum-types/src/index.ts:480](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L480)*
-# Enumeration: ERC1155ProxyEvents -## Enumeration members -### AuthorizedAddressAdded -• **AuthorizedAddressAdded**: = "AuthorizedAddressAdded" -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc1155_proxy.ts:33](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc1155_proxy.ts#L33)* -___ -### AuthorizedAddressRemoved -• **AuthorizedAddressRemoved**: = "AuthorizedAddressRemoved" -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc1155_proxy.ts:34](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc1155_proxy.ts#L34)* -
-# Enumeration: ERC20ProxyEvents -## Enumeration members -### AuthorizedAddressAdded -• **AuthorizedAddressAdded**: = "AuthorizedAddressAdded" -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc20_proxy.ts:33](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc20_proxy.ts#L33)* -___ -### AuthorizedAddressRemoved -• **AuthorizedAddressRemoved**: = "AuthorizedAddressRemoved" -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc20_proxy.ts:34](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc20_proxy.ts#L34)* -
-# Enumeration: ERC20TokenEvents -## Enumeration members -### Approval -• **Approval**: = "Approval" -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc20_token.ts:32](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc20_token.ts#L32)* -___ -### Transfer -• **Transfer**: = "Transfer" +
-*Defined in [abi-gen-wrappers/src/generated-wrappers/erc20_token.ts:31](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc20_token.ts#L31)* +# Interface: CoordinatorRegistryCoordinatorEndpointSetEventArgs -
-# Enumeration: ERC721ProxyEvents +## Index + +### Properties +* [coordinatorEndpoint](#coordinatorendpoint) +* [coordinatorOperator](#coordinatoroperator) -## Enumeration members +## Properties -### AuthorizedAddressAdded +### coordinatorEndpoint -• **AuthorizedAddressAdded**: = "AuthorizedAddressAdded" +• **coordinatorEndpoint**: *string* -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc721_proxy.ts:33](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc721_proxy.ts#L33)* +*Defined in [abi-gen-wrappers/src/generated-wrappers/coordinator_registry.ts:45](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/coordinator_registry.ts#L45)* ___ -### AuthorizedAddressRemoved +### coordinatorOperator -• **AuthorizedAddressRemoved**: = "AuthorizedAddressRemoved" +• **coordinatorOperator**: *string* -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc721_proxy.ts:34](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc721_proxy.ts#L34)* +*Defined in [abi-gen-wrappers/src/generated-wrappers/coordinator_registry.ts:44](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/coordinator_registry.ts#L44)*
-# Enumeration: ERC721TokenEvents +# Interface: DummyERC20TokenApprovalEventArgs -## Enumeration members +## Index -### Approval +### Properties -• **Approval**: = "Approval" +* [_owner](#_owner) +* [_spender](#_spender) +* [_value](#_value) + +## Properties + +### _owner + +• **_owner**: *string* -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc721_token.ts:34](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc721_token.ts#L34)* +*Defined in [abi-gen-wrappers/src/generated-wrappers/dummy_erc20_token.ts:45](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/dummy_erc20_token.ts#L45)* ___ -### ApprovalForAll +### _spender -• **ApprovalForAll**: = "ApprovalForAll" +• **_spender**: *string* -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc721_token.ts:35](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc721_token.ts#L35)* +*Defined in [abi-gen-wrappers/src/generated-wrappers/dummy_erc20_token.ts:46](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/dummy_erc20_token.ts#L46)* ___ -### Transfer +### _value -• **Transfer**: = "Transfer" +• **_value**: *`BigNumber`* -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc721_token.ts:36](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc721_token.ts#L36)* +*Defined in [abi-gen-wrappers/src/generated-wrappers/dummy_erc20_token.ts:47](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/dummy_erc20_token.ts#L47)*
-# Enumeration: ExchangeEvents - +# Interface: DummyERC20TokenTransferEventArgs -## Enumeration members -### AssetProxyRegistered +## Index -• **AssetProxyRegistered**: = "AssetProxyRegistered" +### Properties -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:39](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L39)* +* [_from](#_from) +* [_to](#_to) +* [_value](#_value) -___ +## Properties -### Cancel +### _from -• **Cancel**: = "Cancel" +• **_from**: *string* -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:40](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L40)* +*Defined in [abi-gen-wrappers/src/generated-wrappers/dummy_erc20_token.ts:51](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/dummy_erc20_token.ts#L51)* ___ -### CancelUpTo +### _to -• **CancelUpTo**: = "CancelUpTo" +• **_to**: *string* -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:41](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L41)* +*Defined in [abi-gen-wrappers/src/generated-wrappers/dummy_erc20_token.ts:52](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/dummy_erc20_token.ts#L52)* ___ -### Fill +### _value -• **Fill**: = "Fill" +• **_value**: *`BigNumber`* -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:42](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L42)* +*Defined in [abi-gen-wrappers/src/generated-wrappers/dummy_erc20_token.ts:53](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/dummy_erc20_token.ts#L53)* -___ +
-### ProtocolFeeCollectorAddress +# Interface: DummyERC721TokenApprovalEventArgs -• **ProtocolFeeCollectorAddress**: = "ProtocolFeeCollectorAddress" -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:43](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L43)* +## Index -___ +### Properties -### ProtocolFeeMultiplier +* [_approved](#_approved) +* [_owner](#_owner) +* [_tokenId](#_tokenid) -• **ProtocolFeeMultiplier**: = "ProtocolFeeMultiplier" +## Properties -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:44](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L44)* +### _approved + +• **_approved**: *string* + +*Defined in [abi-gen-wrappers/src/generated-wrappers/dummy_erc721_token.ts:50](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/dummy_erc721_token.ts#L50)* ___ -### SignatureValidatorApproval +### _owner -• **SignatureValidatorApproval**: = "SignatureValidatorApproval" +• **_owner**: *string* -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:45](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L45)* +*Defined in [abi-gen-wrappers/src/generated-wrappers/dummy_erc721_token.ts:49](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/dummy_erc721_token.ts#L49)* ___ -### TransactionExecution +### _tokenId -• **TransactionExecution**: = "TransactionExecution" +• **_tokenId**: *`BigNumber`* -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:46](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L46)* +*Defined in [abi-gen-wrappers/src/generated-wrappers/dummy_erc721_token.ts:51](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/dummy_erc721_token.ts#L51)*
-# Enumeration: WETH9Events - +# Interface: DummyERC721TokenApprovalForAllEventArgs -## Enumeration members -### Approval +## Index -• **Approval**: = "Approval" +### Properties -*Defined in [abi-gen-wrappers/src/generated-wrappers/weth9.ts:35](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/weth9.ts#L35)* +* [_approved](#_approved) +* [_operator](#_operator) +* [_owner](#_owner) -___ +## Properties -### Deposit +### _approved -• **Deposit**: = "Deposit" +• **_approved**: *boolean* -*Defined in [abi-gen-wrappers/src/generated-wrappers/weth9.ts:37](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/weth9.ts#L37)* +*Defined in [abi-gen-wrappers/src/generated-wrappers/dummy_erc721_token.ts:57](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/dummy_erc721_token.ts#L57)* ___ -### Transfer +### _operator -• **Transfer**: = "Transfer" +• **_operator**: *string* -*Defined in [abi-gen-wrappers/src/generated-wrappers/weth9.ts:36](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/weth9.ts#L36)* +*Defined in [abi-gen-wrappers/src/generated-wrappers/dummy_erc721_token.ts:56](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/dummy_erc721_token.ts#L56)* ___ -### Withdrawal +### _owner -• **Withdrawal**: = "Withdrawal" +• **_owner**: *string* -*Defined in [abi-gen-wrappers/src/generated-wrappers/weth9.ts:38](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/weth9.ts#L38)* +*Defined in [abi-gen-wrappers/src/generated-wrappers/dummy_erc721_token.ts:55](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/dummy_erc721_token.ts#L55)*
-# Enumeration: ZRXTokenEvents +# Interface: DummyERC721TokenTransferEventArgs -## Enumeration members +## Index -### Approval +### Properties -• **Approval**: = "Approval" +* [_from](#_from) +* [_to](#_to) +* [_tokenId](#_tokenid) -*Defined in [abi-gen-wrappers/src/generated-wrappers/zrx_token.ts:32](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/zrx_token.ts#L32)* +## Properties -___ +### _from -### Transfer +• **_from**: *string* -• **Transfer**: = "Transfer" +*Defined in [abi-gen-wrappers/src/generated-wrappers/dummy_erc721_token.ts:61](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/dummy_erc721_token.ts#L61)* -*Defined in [abi-gen-wrappers/src/generated-wrappers/zrx_token.ts:31](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/zrx_token.ts#L31)* +___ -
+### _to +• **_to**: *string* +*Defined in [abi-gen-wrappers/src/generated-wrappers/dummy_erc721_token.ts:62](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/dummy_erc721_token.ts#L62)* -# Enumeration: ContractError +___ +### _tokenId -## Enumeration members +• **_tokenId**: *`BigNumber`* -### ContractNotDeployedOnNetwork +*Defined in [abi-gen-wrappers/src/generated-wrappers/dummy_erc721_token.ts:63](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/dummy_erc721_token.ts#L63)* -• **ContractNotDeployedOnNetwork**: = "CONTRACT_NOT_DEPLOYED_ON_NETWORK" +
-*Defined in [contract-wrappers/src/types.ts:16](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/contract-wrappers/src/types.ts#L16)* +# Interface: ERC20TokenApprovalEventArgs -___ -### ERC721NoApproval +## Index -• **ERC721NoApproval**: = "ERC_721_NO_APPROVAL" +### Properties -*Defined in [contract-wrappers/src/types.ts:26](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/contract-wrappers/src/types.ts#L26)* +* [_owner](#_owner) +* [_spender](#_spender) +* [_value](#_value) -___ +## Properties -### ERC721OwnerNotFound +### _owner -• **ERC721OwnerNotFound**: = "ERC_721_OWNER_NOT_FOUND" +• **_owner**: *string* -*Defined in [contract-wrappers/src/types.ts:25](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/contract-wrappers/src/types.ts#L25)* +*Defined in [abi-gen-wrappers/src/generated-wrappers/erc20_token.ts:51](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/erc20_token.ts#L51)* ___ -### InsufficientAllowanceForTransfer +### _spender -• **InsufficientAllowanceForTransfer**: = "INSUFFICIENT_ALLOWANCE_FOR_TRANSFER" +• **_spender**: *string* -*Defined in [contract-wrappers/src/types.ts:17](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/contract-wrappers/src/types.ts#L17)* +*Defined in [abi-gen-wrappers/src/generated-wrappers/erc20_token.ts:52](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/erc20_token.ts#L52)* ___ -### InsufficientBalanceForTransfer +### _value -• **InsufficientBalanceForTransfer**: = "INSUFFICIENT_BALANCE_FOR_TRANSFER" +• **_value**: *`BigNumber`* -*Defined in [contract-wrappers/src/types.ts:18](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/contract-wrappers/src/types.ts#L18)* +*Defined in [abi-gen-wrappers/src/generated-wrappers/erc20_token.ts:53](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/erc20_token.ts#L53)* -___ +
-### InsufficientEthBalanceForDeposit +# Interface: ERC20TokenTransferEventArgs -• **InsufficientEthBalanceForDeposit**: = "INSUFFICIENT_ETH_BALANCE_FOR_DEPOSIT" -*Defined in [contract-wrappers/src/types.ts:19](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/contract-wrappers/src/types.ts#L19)* +## Index -___ +### Properties -### InsufficientWEthBalanceForWithdrawal +* [_from](#_from) +* [_to](#_to) +* [_value](#_value) -• **InsufficientWEthBalanceForWithdrawal**: = "INSUFFICIENT_WETH_BALANCE_FOR_WITHDRAWAL" +## Properties + +### _from + +• **_from**: *string* -*Defined in [contract-wrappers/src/types.ts:20](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/contract-wrappers/src/types.ts#L20)* +*Defined in [abi-gen-wrappers/src/generated-wrappers/erc20_token.ts:45](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/erc20_token.ts#L45)* ___ -### InvalidJump +### _to -• **InvalidJump**: = "INVALID_JUMP" +• **_to**: *string* -*Defined in [contract-wrappers/src/types.ts:21](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/contract-wrappers/src/types.ts#L21)* +*Defined in [abi-gen-wrappers/src/generated-wrappers/erc20_token.ts:46](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/erc20_token.ts#L46)* ___ -### OutOfGas - -• **OutOfGas**: = "OUT_OF_GAS" +### _value -*Defined in [contract-wrappers/src/types.ts:22](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/contract-wrappers/src/types.ts#L22)* +• **_value**: *`BigNumber`* -___ +*Defined in [abi-gen-wrappers/src/generated-wrappers/erc20_token.ts:47](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/erc20_token.ts#L47)* -### SignatureRequestDenied +
-• **SignatureRequestDenied**: = "SIGNATURE_REQUEST_DENIED" +# Interface: ERC721TokenApprovalEventArgs -*Defined in [contract-wrappers/src/types.ts:27](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/contract-wrappers/src/types.ts#L27)* -___ +## Index -### SubscriptionAlreadyPresent +### Properties -• **SubscriptionAlreadyPresent**: = "SUBSCRIPTION_ALREADY_PRESENT" +* [_approved](#_approved) +* [_owner](#_owner) +* [_tokenId](#_tokenid) -*Defined in [contract-wrappers/src/types.ts:24](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/contract-wrappers/src/types.ts#L24)* +## Properties -___ +### _approved -### SubscriptionNotFound +• **_approved**: *string* -• **SubscriptionNotFound**: = "SUBSCRIPTION_NOT_FOUND" +*Defined in [abi-gen-wrappers/src/generated-wrappers/erc721_token.ts:50](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/erc721_token.ts#L50)* -*Defined in [contract-wrappers/src/types.ts:23](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/contract-wrappers/src/types.ts#L23)* +___ -
+### _owner -# Enumeration: ForwarderError +• **_owner**: *string* +*Defined in [abi-gen-wrappers/src/generated-wrappers/erc721_token.ts:49](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/erc721_token.ts#L49)* -## Enumeration members +___ -### CompleteFillFailed +### _tokenId -• **CompleteFillFailed**: = "COMPLETE_FILL_FAILED" +• **_tokenId**: *`BigNumber`* -*Defined in [contract-wrappers/src/types.ts:12](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/contract-wrappers/src/types.ts#L12)* +*Defined in [abi-gen-wrappers/src/generated-wrappers/erc721_token.ts:51](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/erc721_token.ts#L51)*
+# Interface: ERC721TokenApprovalForAllEventArgs +## Index +### Properties -# Enumeration: BlockParamLiteral - +* [_approved](#_approved) +* [_operator](#_operator) +* [_owner](#_owner) -## Enumeration members +## Properties -### Earliest +### _approved -• **Earliest**: = "earliest" +• **_approved**: *boolean* -*Defined in [ethereum-types/src/index.ts:478](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L478)* +*Defined in [abi-gen-wrappers/src/generated-wrappers/erc721_token.ts:57](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/erc721_token.ts#L57)* ___ -### Latest +### _operator -• **Latest**: = "latest" +• **_operator**: *string* -*Defined in [ethereum-types/src/index.ts:479](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L479)* +*Defined in [abi-gen-wrappers/src/generated-wrappers/erc721_token.ts:56](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/erc721_token.ts#L56)* ___ -### Pending +### _owner -• **Pending**: = "pending" +• **_owner**: *string* -*Defined in [ethereum-types/src/index.ts:480](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L480)* +*Defined in [abi-gen-wrappers/src/generated-wrappers/erc721_token.ts:55](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/erc721_token.ts#L55)*
+# Interface: ERC721TokenTransferEventArgs + +## Index +### Properties +* [_from](#_from) +* [_to](#_to) +* [_tokenId](#_tokenid) +## Properties +### _from +• **_from**: *string* +*Defined in [abi-gen-wrappers/src/generated-wrappers/erc721_token.ts:61](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/erc721_token.ts#L61)* +___ +### _to +• **_to**: *string* +*Defined in [abi-gen-wrappers/src/generated-wrappers/erc721_token.ts:62](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/erc721_token.ts#L62)* +___ +### _tokenId +• **_tokenId**: *`BigNumber`* +*Defined in [abi-gen-wrappers/src/generated-wrappers/erc721_token.ts:63](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/erc721_token.ts#L63)* +
+# Interface: ExchangeAssetProxyRegisteredEventArgs +## Index +### Properties +* [assetProxy](#assetproxy) +* [id](#id) +## Properties +### assetProxy +• **assetProxy**: *string* +*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:60](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L60)* +___ +### id -# Interface: CoordinatorRegistryCoordinatorEndpointSetEventArgs +• **id**: *string* + +*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:59](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L59)* + +
+ +# Interface: ExchangeCancelEventArgs ## Index ### Properties -* [coordinatorEndpoint](#coordinatorendpoint) -* [coordinatorOperator](#coordinatoroperator) +* [feeRecipientAddress](#feerecipientaddress) +* [makerAddress](#makeraddress) +* [makerAssetData](#makerassetdata) +* [orderHash](#orderhash) +* [senderAddress](#senderaddress) +* [takerAssetData](#takerassetdata) ## Properties -### coordinatorEndpoint +### feeRecipientAddress -• **coordinatorEndpoint**: *string* +• **feeRecipientAddress**: *string* -*Defined in [abi-gen-wrappers/src/generated-wrappers/coordinator_registry.ts:36](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/coordinator_registry.ts#L36)* +*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:65](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L65)* ___ -### coordinatorOperator - -• **coordinatorOperator**: *string* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/coordinator_registry.ts:35](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/coordinator_registry.ts#L35)* +### makerAddress -
+• **makerAddress**: *string* -# Interface: DummyERC20TokenApprovalEventArgs +*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:64](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L64)* +___ -## Index +### makerAssetData -### Properties +• **makerAssetData**: *string* -* [_owner](#_owner) -* [_spender](#_spender) -* [_value](#_value) +*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:66](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L66)* -## Properties +___ -### _owner +### orderHash -• **_owner**: *string* +• **orderHash**: *string* -*Defined in [abi-gen-wrappers/src/generated-wrappers/dummy_erc20_token.ts:36](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dummy_erc20_token.ts#L36)* +*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:69](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L69)* ___ -### _spender +### senderAddress -• **_spender**: *string* +• **senderAddress**: *string* -*Defined in [abi-gen-wrappers/src/generated-wrappers/dummy_erc20_token.ts:37](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dummy_erc20_token.ts#L37)* +*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:68](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L68)* ___ -### _value +### takerAssetData -• **_value**: *`BigNumber`* +• **takerAssetData**: *string* -*Defined in [abi-gen-wrappers/src/generated-wrappers/dummy_erc20_token.ts:38](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dummy_erc20_token.ts#L38)* +*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:67](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L67)*
-# Interface: DummyERC20TokenTransferEventArgs +# Interface: ExchangeCancelUpToEventArgs ## Index ### Properties -* [_from](#_from) -* [_to](#_to) -* [_value](#_value) +* [makerAddress](#makeraddress) +* [orderEpoch](#orderepoch) +* [orderSenderAddress](#ordersenderaddress) ## Properties -### _from +### makerAddress -• **_from**: *string* +• **makerAddress**: *string* -*Defined in [abi-gen-wrappers/src/generated-wrappers/dummy_erc20_token.ts:42](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dummy_erc20_token.ts#L42)* +*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:73](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L73)* ___ -### _to +### orderEpoch -• **_to**: *string* +• **orderEpoch**: *`BigNumber`* -*Defined in [abi-gen-wrappers/src/generated-wrappers/dummy_erc20_token.ts:43](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dummy_erc20_token.ts#L43)* +*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:75](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L75)* ___ -### _value +### orderSenderAddress -• **_value**: *`BigNumber`* +• **orderSenderAddress**: *string* -*Defined in [abi-gen-wrappers/src/generated-wrappers/dummy_erc20_token.ts:44](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dummy_erc20_token.ts#L44)* +*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:74](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L74)*
-# Interface: DummyERC721TokenApprovalEventArgs +# Interface: ExchangeFillEventArgs + + +## Index + +### Properties + +* [feeRecipientAddress](#feerecipientaddress) +* [makerAddress](#makeraddress) +* [makerAssetData](#makerassetdata) +* [makerAssetFilledAmount](#makerassetfilledamount) +* [makerFeeAssetData](#makerfeeassetdata) +* [makerFeePaid](#makerfeepaid) +* [orderHash](#orderhash) +* [protocolFeePaid](#protocolfeepaid) +* [senderAddress](#senderaddress) +* [takerAddress](#takeraddress) +* [takerAssetData](#takerassetdata) +* [takerAssetFilledAmount](#takerassetfilledamount) +* [takerFeeAssetData](#takerfeeassetdata) +* [takerFeePaid](#takerfeepaid) + +## Properties + +### feeRecipientAddress + +• **feeRecipientAddress**: *string* + +*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:80](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L80)* +___ -## Index +### makerAddress -### Properties +• **makerAddress**: *string* -* [_approved](#_approved) -* [_owner](#_owner) -* [_tokenId](#_tokenid) +*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:79](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L79)* -## Properties +___ -### _approved +### makerAssetData -• **_approved**: *string* +• **makerAssetData**: *string* -*Defined in [abi-gen-wrappers/src/generated-wrappers/dummy_erc721_token.ts:41](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dummy_erc721_token.ts#L41)* +*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:81](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L81)* ___ -### _owner +### makerAssetFilledAmount -• **_owner**: *string* +• **makerAssetFilledAmount**: *`BigNumber`* -*Defined in [abi-gen-wrappers/src/generated-wrappers/dummy_erc721_token.ts:40](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dummy_erc721_token.ts#L40)* +*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:88](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L88)* ___ -### _tokenId - -• **_tokenId**: *`BigNumber`* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/dummy_erc721_token.ts:42](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dummy_erc721_token.ts#L42)* +### makerFeeAssetData -
+• **makerFeeAssetData**: *string* -# Interface: DummyERC721TokenApprovalForAllEventArgs +*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:83](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L83)* +___ -## Index +### makerFeePaid -### Properties +• **makerFeePaid**: *`BigNumber`* -* [_approved](#_approved) -* [_operator](#_operator) -* [_owner](#_owner) +*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:90](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L90)* -## Properties +___ -### _approved +### orderHash -• **_approved**: *boolean* +• **orderHash**: *string* -*Defined in [abi-gen-wrappers/src/generated-wrappers/dummy_erc721_token.ts:48](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dummy_erc721_token.ts#L48)* +*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:85](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L85)* ___ -### _operator +### protocolFeePaid -• **_operator**: *string* +• **protocolFeePaid**: *`BigNumber`* -*Defined in [abi-gen-wrappers/src/generated-wrappers/dummy_erc721_token.ts:47](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dummy_erc721_token.ts#L47)* +*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:92](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L92)* ___ -### _owner +### senderAddress -• **_owner**: *string* +• **senderAddress**: *string* -*Defined in [abi-gen-wrappers/src/generated-wrappers/dummy_erc721_token.ts:46](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dummy_erc721_token.ts#L46)* +*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:87](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L87)* -
+___ -# Interface: DummyERC721TokenTransferEventArgs +### takerAddress +• **takerAddress**: *string* -## Index +*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:86](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L86)* -### Properties +___ -* [_from](#_from) -* [_to](#_to) -* [_tokenId](#_tokenid) +### takerAssetData -## Properties +• **takerAssetData**: *string* -### _from +*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:82](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L82)* -• **_from**: *string* +___ + +### takerAssetFilledAmount -*Defined in [abi-gen-wrappers/src/generated-wrappers/dummy_erc721_token.ts:52](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dummy_erc721_token.ts#L52)* +• **takerAssetFilledAmount**: *`BigNumber`* + +*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:89](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L89)* ___ -### _to +### takerFeeAssetData -• **_to**: *string* +• **takerFeeAssetData**: *string* -*Defined in [abi-gen-wrappers/src/generated-wrappers/dummy_erc721_token.ts:53](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dummy_erc721_token.ts#L53)* +*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:84](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L84)* ___ -### _tokenId +### takerFeePaid -• **_tokenId**: *`BigNumber`* +• **takerFeePaid**: *`BigNumber`* -*Defined in [abi-gen-wrappers/src/generated-wrappers/dummy_erc721_token.ts:54](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dummy_erc721_token.ts#L54)* +*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:91](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L91)*
-# Interface: ERC1155ProxyAuthorizedAddressAddedEventArgs +# Interface: ExchangeProtocolFeeCollectorAddressEventArgs ## Index ### Properties -* [caller](#caller) -* [target](#target) +* [oldProtocolFeeCollector](#oldprotocolfeecollector) +* [updatedProtocolFeeCollector](#updatedprotocolfeecollector) ## Properties -### caller +### oldProtocolFeeCollector -• **caller**: *string* +• **oldProtocolFeeCollector**: *string* -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc1155_proxy.ts:39](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc1155_proxy.ts#L39)* +*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:96](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L96)* ___ -### target +### updatedProtocolFeeCollector -• **target**: *string* +• **updatedProtocolFeeCollector**: *string* -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc1155_proxy.ts:38](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc1155_proxy.ts#L38)* +*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:97](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L97)*
-# Interface: ERC1155ProxyAuthorizedAddressRemovedEventArgs +# Interface: ExchangeProtocolFeeMultiplierEventArgs ## Index ### Properties -* [caller](#caller) -* [target](#target) +* [oldProtocolFeeMultiplier](#oldprotocolfeemultiplier) +* [updatedProtocolFeeMultiplier](#updatedprotocolfeemultiplier) ## Properties -### caller +### oldProtocolFeeMultiplier -• **caller**: *string* +• **oldProtocolFeeMultiplier**: *`BigNumber`* -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc1155_proxy.ts:44](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc1155_proxy.ts#L44)* +*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:101](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L101)* ___ -### target +### updatedProtocolFeeMultiplier -• **target**: *string* +• **updatedProtocolFeeMultiplier**: *`BigNumber`* -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc1155_proxy.ts:43](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc1155_proxy.ts#L43)* +*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:102](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L102)*
-# Interface: ERC20ProxyAuthorizedAddressAddedEventArgs +# Interface: ExchangeSignatureValidatorApprovalEventArgs ## Index ### Properties -* [caller](#caller) -* [target](#target) +* [isApproved](#isapproved) +* [signerAddress](#signeraddress) +* [validatorAddress](#validatoraddress) ## Properties -### caller +### isApproved -• **caller**: *string* +• **isApproved**: *boolean* -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc20_proxy.ts:39](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc20_proxy.ts#L39)* +*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:108](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L108)* ___ -### target +### signerAddress -• **target**: *string* +• **signerAddress**: *string* -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc20_proxy.ts:38](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc20_proxy.ts#L38)* +*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:106](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L106)* -
+___ -# Interface: ERC20ProxyAuthorizedAddressRemovedEventArgs +### validatorAddress +• **validatorAddress**: *string* -## Index +*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:107](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L107)* -### Properties +
-* [caller](#caller) -* [target](#target) +# Interface: ExchangeTransactionExecutionEventArgs -## Properties -### caller +## Index -• **caller**: *string* +### Properties -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc20_proxy.ts:44](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc20_proxy.ts#L44)* +* [transactionHash](#transactionhash) -___ +## Properties -### target +### transactionHash -• **target**: *string* +• **transactionHash**: *string* -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc20_proxy.ts:43](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc20_proxy.ts#L43)* +*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:112](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L112)*
-# Interface: ERC20TokenApprovalEventArgs +# Interface: WETH9ApprovalEventArgs ## Index @@ -28845,7 +7970,7 @@ ___ • **_owner**: *string* -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc20_token.ts:42](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc20_token.ts#L42)* +*Defined in [abi-gen-wrappers/src/generated-wrappers/weth9.ts:51](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/weth9.ts#L51)* ___ @@ -28853,7 +7978,7 @@ ___ • **_spender**: *string* -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc20_token.ts:43](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc20_token.ts#L43)* +*Defined in [abi-gen-wrappers/src/generated-wrappers/weth9.ts:52](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/weth9.ts#L52)* ___ @@ -28861,36 +7986,27 @@ ___ • **_value**: *`BigNumber`* -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc20_token.ts:44](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc20_token.ts#L44)* +*Defined in [abi-gen-wrappers/src/generated-wrappers/weth9.ts:53](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/weth9.ts#L53)*
-# Interface: ERC20TokenTransferEventArgs +# Interface: WETH9DepositEventArgs ## Index ### Properties -* [_from](#_from) -* [_to](#_to) +* [_owner](#_owner) * [_value](#_value) ## Properties -### _from - -• **_from**: *string* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc20_token.ts:36](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc20_token.ts#L36)* - -___ - -### _to +### _owner -• **_to**: *string* +• **_owner**: *string* -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc20_token.ts:37](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc20_token.ts#L37)* +*Defined in [abi-gen-wrappers/src/generated-wrappers/weth9.ts:63](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/weth9.ts#L63)* ___ @@ -28898,1452 +8014,1475 @@ ___ • **_value**: *`BigNumber`* -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc20_token.ts:38](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc20_token.ts#L38)* +*Defined in [abi-gen-wrappers/src/generated-wrappers/weth9.ts:64](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/weth9.ts#L64)*
-# Interface: ERC721ProxyAuthorizedAddressAddedEventArgs +# Interface: WETH9TransferEventArgs ## Index ### Properties -* [caller](#caller) -* [target](#target) +* [_from](#_from) +* [_to](#_to) +* [_value](#_value) ## Properties -### caller +### _from + +• **_from**: *string* + +*Defined in [abi-gen-wrappers/src/generated-wrappers/weth9.ts:57](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/weth9.ts#L57)* + +___ + +### _to -• **caller**: *string* +• **_to**: *string* -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc721_proxy.ts:39](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc721_proxy.ts#L39)* +*Defined in [abi-gen-wrappers/src/generated-wrappers/weth9.ts:58](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/weth9.ts#L58)* ___ -### target +### _value -• **target**: *string* +• **_value**: *`BigNumber`* -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc721_proxy.ts:38](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc721_proxy.ts#L38)* +*Defined in [abi-gen-wrappers/src/generated-wrappers/weth9.ts:59](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/weth9.ts#L59)*
-# Interface: ERC721ProxyAuthorizedAddressRemovedEventArgs +# Interface: WETH9WithdrawalEventArgs ## Index ### Properties -* [caller](#caller) -* [target](#target) +* [_owner](#_owner) +* [_value](#_value) ## Properties -### caller +### _owner -• **caller**: *string* +• **_owner**: *string* -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc721_proxy.ts:44](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc721_proxy.ts#L44)* +*Defined in [abi-gen-wrappers/src/generated-wrappers/weth9.ts:68](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/weth9.ts#L68)* ___ -### target +### _value -• **target**: *string* +• **_value**: *`BigNumber`* -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc721_proxy.ts:43](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc721_proxy.ts#L43)* +*Defined in [abi-gen-wrappers/src/generated-wrappers/weth9.ts:69](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/weth9.ts#L69)*
-# Interface: ERC721TokenApprovalEventArgs - - -## Index +# Interface: AwaitTransactionSuccessOpts -### Properties +Used with `awaitTransactionSuccessAsync` +* pollingIntervalMs: Determine polling intervals in milliseconds +* timeoutMs: Determines timeout in milliseconds -* [_approved](#_approved) -* [_owner](#_owner) -* [_tokenId](#_tokenid) -## Properties +## Properties -### _approved +### `Optional` pollingIntervalMs -• **_approved**: *string* +• **pollingIntervalMs**? : *undefined | number* -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc721_token.ts:41](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc721_token.ts#L41)* +*Defined in [base-contract/src/types.ts:39](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/base-contract/src/types.ts#L39)* ___ -### _owner +### `Optional` shouldValidate -• **_owner**: *string* +• **shouldValidate**? : *undefined | false | true* -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc721_token.ts:40](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc721_token.ts#L40)* +*Inherited from [SendTransactionOpts](#interface-sendtransactionopts).[shouldValidate](#optional-shouldvalidate)* + +*Defined in [base-contract/src/types.ts:30](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/base-contract/src/types.ts#L30)* ___ -### _tokenId +### `Optional` timeoutMs -• **_tokenId**: *`BigNumber`* +• **timeoutMs**? : *undefined | number* -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc721_token.ts:42](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc721_token.ts#L42)* +*Defined in [base-contract/src/types.ts:40](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/base-contract/src/types.ts#L40)*
-# Interface: ERC721TokenApprovalForAllEventArgs -## Index +# Interface: ContractFunctionObj <**T**> -### Properties +## Type parameters -* [_approved](#_approved) -* [_operator](#_operator) -* [_owner](#_owner) +▪ **T** -## Properties -### _approved +## Methods -• **_approved**: *boolean* +### callAsync -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc721_token.ts:48](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc721_token.ts#L48)* +▸ **callAsync**(`callData?`: `Partial`, `defaultBlock?`: [BlockParam](#blockparam)): *`Promise`* -___ +*Defined in [base-contract/src/types.ts:44](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/base-contract/src/types.ts#L44)* -### _operator +**Parameters:** -• **_operator**: *string* +Name | Type | +------ | ------ | +`callData?` | `Partial` | +`defaultBlock?` | [BlockParam](#blockparam) | -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc721_token.ts:47](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc721_token.ts#L47)* +**Returns:** *`Promise`* ___ -### _owner +### getABIEncodedTransactionData -• **_owner**: *string* +▸ **getABIEncodedTransactionData**(): *string* + +*Defined in [base-contract/src/types.ts:45](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/base-contract/src/types.ts#L45)* -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc721_token.ts:46](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc721_token.ts#L46)* +**Returns:** *string*
-# Interface: ERC721TokenTransferEventArgs +# Interface: ContractTxFunctionObj <**T**> +## Type parameters -## Index +▪ **T** -### Properties -* [_from](#_from) -* [_to](#_to) -* [_tokenId](#_tokenid) +## Methods -## Properties +### awaitTransactionSuccessAsync -### _from +▸ **awaitTransactionSuccessAsync**(`txData?`: `Partial`, `opts?`: [AwaitTransactionSuccessOpts](#class-awaittransactionsuccessopts)): *`PromiseWithTransactionHash`* -• **_from**: *string* +*Defined in [base-contract/src/types.ts:50](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/base-contract/src/types.ts#L50)* -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc721_token.ts:52](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc721_token.ts#L52)* +**Parameters:** + +Name | Type | +------ | ------ | +`txData?` | `Partial` | +`opts?` | [AwaitTransactionSuccessOpts](#class-awaittransactionsuccessopts) | + +**Returns:** *`PromiseWithTransactionHash`* ___ -### _to +### callAsync -• **_to**: *string* +▸ **callAsync**(`callData?`: `Partial`, `defaultBlock?`: [BlockParam](#blockparam)): *`Promise`* -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc721_token.ts:53](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc721_token.ts#L53)* +*Inherited from [ContractFunctionObj](#interface-contractfunctionobj).[callAsync](#callasync)* -___ +*Defined in [base-contract/src/types.ts:44](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/base-contract/src/types.ts#L44)* -### _tokenId +**Parameters:** -• **_tokenId**: *`BigNumber`* +Name | Type | +------ | ------ | +`callData?` | `Partial` | +`defaultBlock?` | [BlockParam](#blockparam) | -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc721_token.ts:54](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc721_token.ts#L54)* +**Returns:** *`Promise`* -
+___ -# Interface: ExchangeAssetProxyRegisteredEventArgs +### estimateGasAsync +▸ **estimateGasAsync**(`txData?`: `Partial`): *`Promise`* -## Index +*Defined in [base-contract/src/types.ts:54](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/base-contract/src/types.ts#L54)* -### Properties +**Parameters:** -* [assetProxy](#assetproxy) -* [id](#id) +Name | Type | +------ | ------ | +`txData?` | `Partial` | -## Properties +**Returns:** *`Promise`* -### assetProxy +___ -• **assetProxy**: *string* +### getABIEncodedTransactionData -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:51](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L51)* +▸ **getABIEncodedTransactionData**(): *string* -___ +*Inherited from [ContractFunctionObj](#interface-contractfunctionobj).[getABIEncodedTransactionData](#getabiencodedtransactiondata)* -### id +*Defined in [base-contract/src/types.ts:45](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/base-contract/src/types.ts#L45)* -• **id**: *string* +**Returns:** *string* -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:50](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L50)* +___ -
+### sendTransactionAsync -# Interface: ExchangeCancelEventArgs +▸ **sendTransactionAsync**(`txData?`: `Partial`, `opts?`: [SendTransactionOpts](#class-sendtransactionopts)): *`Promise`* +*Defined in [base-contract/src/types.ts:49](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/base-contract/src/types.ts#L49)* -## Index +**Parameters:** -### Properties +Name | Type | +------ | ------ | +`txData?` | `Partial` | +`opts?` | [SendTransactionOpts](#class-sendtransactionopts) | -* [feeRecipientAddress](#feerecipientaddress) -* [makerAddress](#makeraddress) -* [makerAssetData](#makerassetdata) -* [orderHash](#orderhash) -* [senderAddress](#senderaddress) -* [takerAssetData](#takerassetdata) +**Returns:** *`Promise`* -## Properties +
-### feeRecipientAddress -• **feeRecipientAddress**: *string* -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:56](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L56)* +# Interface: ContractAddresses -___ -### makerAddress +## Properties -• **makerAddress**: *string* +### assetProxyOwner + +• **assetProxyOwner**: *string* -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:55](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L55)* +*Defined in [contract-addresses/src/index.ts:12](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/contract-addresses/src/index.ts#L12)* ___ -### makerAssetData +### coordinator -• **makerAssetData**: *string* +• **coordinator**: *string* -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:57](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L57)* +*Defined in [contract-addresses/src/index.ts:18](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/contract-addresses/src/index.ts#L18)* ___ -### orderHash +### coordinatorRegistry -• **orderHash**: *string* +• **coordinatorRegistry**: *string* -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:60](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L60)* +*Defined in [contract-addresses/src/index.ts:17](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/contract-addresses/src/index.ts#L17)* ___ -### senderAddress +### devUtils -• **senderAddress**: *string* +• **devUtils**: *string* -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:59](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L59)* +*Defined in [contract-addresses/src/index.ts:22](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/contract-addresses/src/index.ts#L22)* ___ -### takerAssetData +### dutchAuction -• **takerAssetData**: *string* +• **dutchAuction**: *string* -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:58](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L58)* +*Defined in [contract-addresses/src/index.ts:16](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/contract-addresses/src/index.ts#L16)* -
+___ -# Interface: ExchangeCancelUpToEventArgs +### erc1155Proxy +• **erc1155Proxy**: *string* -## Index +*Defined in [contract-addresses/src/index.ts:21](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/contract-addresses/src/index.ts#L21)* -### Properties +___ -* [makerAddress](#makeraddress) -* [orderEpoch](#orderepoch) -* [orderSenderAddress](#ordersenderaddress) +### erc20BridgeProxy -## Properties +• **erc20BridgeProxy**: *string* -### makerAddress +*Defined in [contract-addresses/src/index.ts:26](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/contract-addresses/src/index.ts#L26)* -• **makerAddress**: *string* +___ + +### erc20Proxy + +• **erc20Proxy**: *string* -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:64](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L64)* +*Defined in [contract-addresses/src/index.ts:6](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/contract-addresses/src/index.ts#L6)* ___ -### orderEpoch +### erc721Proxy -• **orderEpoch**: *`BigNumber`* +• **erc721Proxy**: *string* -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:66](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L66)* +*Defined in [contract-addresses/src/index.ts:7](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/contract-addresses/src/index.ts#L7)* ___ -### orderSenderAddress +### etherToken -• **orderSenderAddress**: *string* +• **etherToken**: *string* -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:65](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L65)* +*Defined in [contract-addresses/src/index.ts:9](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/contract-addresses/src/index.ts#L9)* -
+___ -# Interface: ExchangeFillEventArgs +### exchange +• **exchange**: *string* -## Index +*Defined in [contract-addresses/src/index.ts:11](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/contract-addresses/src/index.ts#L11)* -### Properties +___ -* [feeRecipientAddress](#feerecipientaddress) -* [makerAddress](#makeraddress) -* [makerAssetData](#makerassetdata) -* [makerAssetFilledAmount](#makerassetfilledamount) -* [makerFeeAssetData](#makerfeeassetdata) -* [makerFeePaid](#makerfeepaid) -* [orderHash](#orderhash) -* [protocolFeePaid](#protocolfeepaid) -* [senderAddress](#senderaddress) -* [takerAddress](#takeraddress) -* [takerAssetData](#takerassetdata) -* [takerAssetFilledAmount](#takerassetfilledamount) -* [takerFeeAssetData](#takerfeeassetdata) -* [takerFeePaid](#takerfeepaid) +### exchangeV2 -## Properties +• **exchangeV2**: *string* -### feeRecipientAddress +*Defined in [contract-addresses/src/index.ts:10](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/contract-addresses/src/index.ts#L10)* -• **feeRecipientAddress**: *string* +___ + +### forwarder -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:71](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L71)* +• **forwarder**: *string* + +*Defined in [contract-addresses/src/index.ts:14](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/contract-addresses/src/index.ts#L14)* ___ -### makerAddress +### multiAssetProxy -• **makerAddress**: *string* +• **multiAssetProxy**: *string* -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:70](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L70)* +*Defined in [contract-addresses/src/index.ts:19](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/contract-addresses/src/index.ts#L19)* ___ -### makerAssetData +### orderValidator -• **makerAssetData**: *string* +• **orderValidator**: *string* -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:72](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L72)* +*Defined in [contract-addresses/src/index.ts:15](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/contract-addresses/src/index.ts#L15)* ___ -### makerAssetFilledAmount +### staking -• **makerAssetFilledAmount**: *`BigNumber`* +• **staking**: *string* -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:79](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L79)* +*Defined in [contract-addresses/src/index.ts:24](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/contract-addresses/src/index.ts#L24)* ___ -### makerFeeAssetData +### stakingProxy -• **makerFeeAssetData**: *string* +• **stakingProxy**: *string* -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:74](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L74)* +*Defined in [contract-addresses/src/index.ts:25](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/contract-addresses/src/index.ts#L25)* ___ -### makerFeePaid +### staticCallProxy -• **makerFeePaid**: *`BigNumber`* +• **staticCallProxy**: *string* -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:81](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L81)* +*Defined in [contract-addresses/src/index.ts:20](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/contract-addresses/src/index.ts#L20)* ___ -### orderHash +### zeroExGovernor -• **orderHash**: *string* +• **zeroExGovernor**: *string* -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:76](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L76)* +*Defined in [contract-addresses/src/index.ts:13](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/contract-addresses/src/index.ts#L13)* ___ -### protocolFeePaid +### zrxToken -• **protocolFeePaid**: *`BigNumber`* +• **zrxToken**: *string* -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:83](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L83)* +*Defined in [contract-addresses/src/index.ts:8](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/contract-addresses/src/index.ts#L8)* ___ -### senderAddress +### zrxVault -• **senderAddress**: *string* +• **zrxVault**: *string* -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:78](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L78)* +*Defined in [contract-addresses/src/index.ts:23](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/contract-addresses/src/index.ts#L23)* -___ +
-### takerAddress +# Interface: ContractWrappersConfig -• **takerAddress**: *string* +chainId: The id of the underlying ethereum chain your provider is connected to. (1-mainnet, 3-ropsten, 4-rinkeby, 42-kovan, 1337-testrpc) +gasPrice: Gas price to use with every transaction +contractAddresses: The address of all contracts to use. Defaults to the known addresses based on chainId. +blockPollingIntervalMs: The interval to use for block polling in event watching methods (defaults to 1000) -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:77](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L77)* -___ +## Properties -### takerAssetData +### `Optional` blockPollingIntervalMs -• **takerAssetData**: *string* +• **blockPollingIntervalMs**? : *undefined | number* -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:73](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L73)* +*Defined in [contract-wrappers/src/types.ts:40](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/contract-wrappers/src/types.ts#L40)* ___ -### takerAssetFilledAmount +### chainId -• **takerAssetFilledAmount**: *`BigNumber`* +• **chainId**: *number* -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:80](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L80)* +*Defined in [contract-wrappers/src/types.ts:37](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/contract-wrappers/src/types.ts#L37)* ___ -### takerFeeAssetData +### `Optional` contractAddresses -• **takerFeeAssetData**: *string* +• **contractAddresses**? : *[ContractAddresses](#class-contractaddresses)* -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:75](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L75)* +*Defined in [contract-wrappers/src/types.ts:39](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/contract-wrappers/src/types.ts#L39)* ___ -### takerFeePaid +### `Optional` gasPrice -• **takerFeePaid**: *`BigNumber`* +• **gasPrice**? : *`BigNumber`* -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:82](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L82)* +*Defined in [contract-wrappers/src/types.ts:38](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/contract-wrappers/src/types.ts#L38)*
-# Interface: ExchangeProtocolFeeCollectorAddressEventArgs -## Index -### Properties -* [oldProtocolFeeCollector](#oldprotocolfeecollector) -* [updatedProtocolFeeCollector](#updatedprotocolfeecollector) -## Properties -### oldProtocolFeeCollector +# Interface: OrderTransactionOpts -• **oldProtocolFeeCollector**: *string* +shouldValidate: Flag indicating whether the library should make attempts to validate a transaction before +broadcasting it. For example, order has a valid signature, maker has sufficient funds, etc. Default=true. -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:87](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L87)* -___ +## Properties -### updatedProtocolFeeCollector +### `Optional` gasLimit -• **updatedProtocolFeeCollector**: *string* +• **gasLimit**? : *undefined | number* -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:88](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L88)* +*Inherited from [TransactionOpts](#interface-transactionopts).[gasLimit](#optional-gaslimit)* -
+*Defined in [contract-wrappers/src/types.ts:51](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/contract-wrappers/src/types.ts#L51)* -# Interface: ExchangeProtocolFeeMultiplierEventArgs +___ +### `Optional` gasPrice -## Index +• **gasPrice**? : *`BigNumber`* -### Properties +*Inherited from [TransactionOpts](#interface-transactionopts).[gasPrice](#optional-gasprice)* -* [oldProtocolFeeMultiplier](#oldprotocolfeemultiplier) -* [updatedProtocolFeeMultiplier](#updatedprotocolfeemultiplier) +*Defined in [contract-wrappers/src/types.ts:50](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/contract-wrappers/src/types.ts#L50)* -## Properties +___ -### oldProtocolFeeMultiplier +### `Optional` nonce -• **oldProtocolFeeMultiplier**: *`BigNumber`* +• **nonce**? : *undefined | number* + +*Inherited from [TransactionOpts](#interface-transactionopts).[nonce](#optional-nonce)* -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:92](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L92)* +*Defined in [contract-wrappers/src/types.ts:52](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/contract-wrappers/src/types.ts#L52)* ___ -### updatedProtocolFeeMultiplier +### `Optional` shouldValidate -• **updatedProtocolFeeMultiplier**: *`BigNumber`* +• **shouldValidate**? : *undefined | false | true* -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:93](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L93)* +*Defined in [contract-wrappers/src/types.ts:61](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/contract-wrappers/src/types.ts#L61)*
-# Interface: ExchangeSignatureValidatorApprovalEventArgs -## Index -### Properties -* [isApproved](#isapproved) -* [signerAddress](#signeraddress) -* [validatorAddress](#validatoraddress) -## Properties -### isApproved -• **isApproved**: *boolean* -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:99](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L99)* +# Interface: BlockRange -___ -### signerAddress +## Properties -• **signerAddress**: *string* +### fromBlock + +• **fromBlock**: *[BlockParam](#blockparam)* -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:97](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L97)* +*Defined in [ethereum-types/src/index.ts:742](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L742)* ___ -### validatorAddress +### toBlock -• **validatorAddress**: *string* +• **toBlock**: *[BlockParam](#blockparam)* -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:98](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L98)* +*Defined in [ethereum-types/src/index.ts:743](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L743)*
-# Interface: ExchangeTransactionExecutionEventArgs - - -## Index - -### Properties - -* [transactionHash](#transactionhash) -## Properties -### transactionHash -• **transactionHash**: *string* -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:103](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L103)* +# Interface: CallData -
-# Interface: WETH9ApprovalEventArgs +## Properties +### `Optional` data -## Index +• **data**? : *undefined | string* -### Properties +*Inherited from [CallTxDataBase](#interface-calltxdatabase).[data](#optional-data)* -* [_owner](#_owner) -* [_spender](#_spender) -* [_value](#_value) +*Defined in [ethereum-types/src/index.ts:393](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L393)* -## Properties +___ -### _owner +### `Optional` from -• **_owner**: *string* +• **from**? : *undefined | string* -*Defined in [abi-gen-wrappers/src/generated-wrappers/weth9.ts:42](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/weth9.ts#L42)* +*Defined in [ethereum-types/src/index.ts:402](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L402)* ___ -### _spender +### `Optional` gas -• **_spender**: *string* +• **gas**? : *number | string | `BigNumber`* + +*Inherited from [CallTxDataBase](#interface-calltxdatabase).[gas](#optional-gas)* -*Defined in [abi-gen-wrappers/src/generated-wrappers/weth9.ts:43](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/weth9.ts#L43)* +*Defined in [ethereum-types/src/index.ts:391](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L391)* ___ -### _value +### `Optional` gasPrice -• **_value**: *`BigNumber`* +• **gasPrice**? : *number | string | `BigNumber`* + +*Inherited from [CallTxDataBase](#interface-calltxdatabase).[gasPrice](#optional-gasprice)* -*Defined in [abi-gen-wrappers/src/generated-wrappers/weth9.ts:44](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/weth9.ts#L44)* +*Defined in [ethereum-types/src/index.ts:392](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L392)* -
+___ -# Interface: WETH9DepositEventArgs +### `Optional` nonce +• **nonce**? : *undefined | number* -## Index +*Inherited from [CallTxDataBase](#interface-calltxdatabase).[nonce](#optional-nonce)* -### Properties +*Defined in [ethereum-types/src/index.ts:394](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L394)* -* [_owner](#_owner) -* [_value](#_value) +___ -## Properties +### `Optional` to -### _owner +• **to**? : *undefined | string* -• **_owner**: *string* +*Inherited from [CallTxDataBase](#interface-calltxdatabase).[to](#optional-to)* -*Defined in [abi-gen-wrappers/src/generated-wrappers/weth9.ts:54](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/weth9.ts#L54)* +*Defined in [ethereum-types/src/index.ts:389](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L389)* ___ -### _value +### `Optional` value + +• **value**? : *number | string | `BigNumber`* -• **_value**: *`BigNumber`* +*Inherited from [CallTxDataBase](#interface-calltxdatabase).[value](#optional-value)* -*Defined in [abi-gen-wrappers/src/generated-wrappers/weth9.ts:55](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/weth9.ts#L55)* +*Defined in [ethereum-types/src/index.ts:390](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L390)*
-# Interface: WETH9TransferEventArgs -## Index -### Properties -* [_from](#_from) -* [_to](#_to) -* [_value](#_value) +# Interface: CompilerOpts -## Properties -### _from +## Properties -• **_from**: *string* +### name -*Defined in [abi-gen-wrappers/src/generated-wrappers/weth9.ts:48](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/weth9.ts#L48)* +• **name**: *"solc"* + +*Defined in [ethereum-types/src/index.ts:655](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L655)* ___ -### _to +### settings -• **_to**: *string* +• **settings**: *[CompilerSettings](#class-compilersettings)* -*Defined in [abi-gen-wrappers/src/generated-wrappers/weth9.ts:49](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/weth9.ts#L49)* +*Defined in [ethereum-types/src/index.ts:657](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L657)* ___ -### _value +### version -• **_value**: *`BigNumber`* +• **version**: *string* -*Defined in [abi-gen-wrappers/src/generated-wrappers/weth9.ts:50](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/weth9.ts#L50)* +*Defined in [ethereum-types/src/index.ts:656](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L656)*
-# Interface: WETH9WithdrawalEventArgs +# Interface: CompilerSettings -## Index +## Properties -### Properties +### `Optional` evmVersion -* [_owner](#_owner) -* [_value](#_value) +• **evmVersion**? : *"homestead" | "tangerineWhistle" | "spuriousDragon" | "byzantium" | "constantinople"* -## Properties +*Defined in [ethereum-types/src/index.ts:689](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L689)* -### _owner +___ -• **_owner**: *string* +### `Optional` libraries -*Defined in [abi-gen-wrappers/src/generated-wrappers/weth9.ts:59](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/weth9.ts#L59)* +• **libraries**? : *undefined | object* + +*Defined in [ethereum-types/src/index.ts:691](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L691)* ___ -### _value +### `Optional` metadata -• **_value**: *`BigNumber`* +• **metadata**? : *[CompilerSettingsMetadata](#class-compilersettingsmetadata)* -*Defined in [abi-gen-wrappers/src/generated-wrappers/weth9.ts:60](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/weth9.ts#L60)* +*Defined in [ethereum-types/src/index.ts:690](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L690)* -
+___ -# Interface: ZRXTokenApprovalEventArgs +### `Optional` optimizer +• **optimizer**? : *[OptimizerSettings](#class-optimizersettings)* -## Index +*Defined in [ethereum-types/src/index.ts:688](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L688)* -### Properties +___ -* [_owner](#_owner) -* [_spender](#_spender) -* [_value](#_value) +### outputSelection -## Properties +• **outputSelection**: *object* -### _owner +*Defined in [ethereum-types/src/index.ts:696](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L696)* -• **_owner**: *string* +#### Type declaration: + +● \[▪ **fileName**: *string*\]: object -*Defined in [abi-gen-wrappers/src/generated-wrappers/zrx_token.ts:42](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/zrx_token.ts#L42)* +● \[▪ **contractName**: *string*\]: [OutputField](#outputfield)[] ___ -### _spender +### `Optional` remappings -• **_spender**: *string* +• **remappings**? : *string[]* -*Defined in [abi-gen-wrappers/src/generated-wrappers/zrx_token.ts:43](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/zrx_token.ts#L43)* +*Defined in [ethereum-types/src/index.ts:687](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L687)* -___ +
-### _value +# Interface: CompilerSettingsMetadata -• **_value**: *`BigNumber`* -*Defined in [abi-gen-wrappers/src/generated-wrappers/zrx_token.ts:44](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/zrx_token.ts#L44)* +## Properties + +### useLiteralContent + +• **useLiteralContent**: *true* + +*Defined in [ethereum-types/src/index.ts:704](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L704)*
-# Interface: ZRXTokenTransferEventArgs +# Interface: ConstructorAbi -## Index +## Properties -### Properties +### inputs -* [_from](#_from) -* [_to](#_to) -* [_value](#_value) +• **inputs**: *[DataItem](#class-dataitem)[]* -## Properties +*Defined in [ethereum-types/src/index.ts:103](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L103)* -### _from +___ -• **_from**: *string* +### payable + +• **payable**: *boolean* -*Defined in [abi-gen-wrappers/src/generated-wrappers/zrx_token.ts:36](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/zrx_token.ts#L36)* +*Defined in [ethereum-types/src/index.ts:104](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L104)* ___ -### _to +### stateMutability -• **_to**: *string* +• **stateMutability**: *[ConstructorStateMutability](#constructorstatemutability)* -*Defined in [abi-gen-wrappers/src/generated-wrappers/zrx_token.ts:37](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/zrx_token.ts#L37)* +*Defined in [ethereum-types/src/index.ts:105](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L105)* ___ -### _value +### type -• **_value**: *`BigNumber`* +• **type**: *string* -*Defined in [abi-gen-wrappers/src/generated-wrappers/zrx_token.ts:38](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/zrx_token.ts#L38)* +*Defined in [ethereum-types/src/index.ts:102](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L102)*
-# Interface: ContractAddresses +# Interface: ContractArtifact + +This type defines the schema of the artifact.json file generated by Sol-compiler +schemaVersion: The version of the artifact schema +contractName: The contract name it represents +chains: Chain specific information by chain (address, id, constructor args, etc...) +compilerOutput: The Solidity compiler output generated from the specified compiler input +description (http://solidity.readthedocs.io/en/v0.4.24/using-the-compiler.html#compiler-input-and-output-json-description) +compiler: The compiler settings used +sourceCodes: The source code of the contract and all it's dependencies +sources: A mapping from source filePath to sourceMap id +sourceTreeHashHex: A unique hash generated from the contract source and that of it's dependencies. +If any of the sources change, the hash would change notifying us that a re-compilation is necessary ## Properties -### assetProxyOwner +### chains -• **assetProxyOwner**: *string* +• **chains**: *[ContractChains](#class-contractchains)* -*Defined in [contract-addresses/src/index.ts:9](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/contract-addresses/src/index.ts#L9)* +*Defined in [ethereum-types/src/index.ts:676](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L676)* ___ -### coordinator +### compiler -• **coordinator**: *string* +• **compiler**: *[CompilerOpts](#class-compileropts)* + +*Inherited from [ContractVersionData](#interface-contractversiondata).[compiler](#compiler)* -*Defined in [contract-addresses/src/index.ts:14](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/contract-addresses/src/index.ts#L14)* +*Defined in [ethereum-types/src/index.ts:641](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L641)* ___ -### coordinatorRegistry +### compilerOutput -• **coordinatorRegistry**: *string* +• **compilerOutput**: *[StandardContractOutput](#class-standardcontractoutput)* + +*Inherited from [ContractVersionData](#interface-contractversiondata).[compilerOutput](#compileroutput)* -*Defined in [contract-addresses/src/index.ts:13](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/contract-addresses/src/index.ts#L13)* +*Defined in [ethereum-types/src/index.ts:651](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L651)* ___ -### devUtils +### contractName -• **devUtils**: *string* +• **contractName**: *string* -*Defined in [contract-addresses/src/index.ts:18](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/contract-addresses/src/index.ts#L18)* +*Defined in [ethereum-types/src/index.ts:675](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L675)* ___ -### dutchAuction +### schemaVersion -• **dutchAuction**: *string* +• **schemaVersion**: *string* -*Defined in [contract-addresses/src/index.ts:12](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/contract-addresses/src/index.ts#L12)* +*Defined in [ethereum-types/src/index.ts:674](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L674)* ___ -### erc1155Proxy - -• **erc1155Proxy**: *string* +### sourceCodes -*Defined in [contract-addresses/src/index.ts:17](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/contract-addresses/src/index.ts#L17)* +• **sourceCodes**: *object* -___ +*Inherited from [ContractVersionData](#interface-contractversiondata).[sourceCodes](#sourcecodes)* -### erc20Proxy +*Defined in [ethereum-types/src/index.ts:647](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L647)* -• **erc20Proxy**: *string* +#### Type declaration: -*Defined in [contract-addresses/src/index.ts:4](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/contract-addresses/src/index.ts#L4)* +● \[▪ **sourceName**: *string*\]: string ___ -### erc721Proxy - -• **erc721Proxy**: *string* +### sourceTreeHashHex -*Defined in [contract-addresses/src/index.ts:5](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/contract-addresses/src/index.ts#L5)* +• **sourceTreeHashHex**: *string* -___ +*Inherited from [ContractVersionData](#interface-contractversiondata).[sourceTreeHashHex](#sourcetreehashhex)* -### etherToken +*Defined in [ethereum-types/src/index.ts:650](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L650)* -• **etherToken**: *string* +___ -*Defined in [contract-addresses/src/index.ts:7](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/contract-addresses/src/index.ts#L7)* +### sources -___ +• **sources**: *object* -### exchange +*Inherited from [ContractVersionData](#interface-contractversiondata).[sources](#sources)* -• **exchange**: *string* +*Defined in [ethereum-types/src/index.ts:642](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L642)* -*Defined in [contract-addresses/src/index.ts:8](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/contract-addresses/src/index.ts#L8)* +#### Type declaration: -___ +● \[▪ **sourceName**: *string*\]: object -### forwarder +
-• **forwarder**: *string* +# Interface: ContractChainData -*Defined in [contract-addresses/src/index.ts:10](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/contract-addresses/src/index.ts#L10)* -___ +## Properties -### multiAssetProxy +### address -• **multiAssetProxy**: *string* +• **address**: *string* -*Defined in [contract-addresses/src/index.ts:15](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/contract-addresses/src/index.ts#L15)* +*Defined in [ethereum-types/src/index.ts:554](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L554)* ___ -### orderValidator +Args -• **orderValidator**: *string* +• **constructorArgs**: *string* -*Defined in [contract-addresses/src/index.ts:11](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/contract-addresses/src/index.ts#L11)* +*Defined in [ethereum-types/src/index.ts:558](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L558)* ___ -### staticCallProxy - -• **staticCallProxy**: *string* - -*Defined in [contract-addresses/src/index.ts:16](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/contract-addresses/src/index.ts#L16)* +### links -___ +• **links**: *object* -### zrxToken +*Defined in [ethereum-types/src/index.ts:555](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L555)* -• **zrxToken**: *string* +#### Type declaration: -*Defined in [contract-addresses/src/index.ts:6](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/contract-addresses/src/index.ts#L6)* +● \[▪ **linkName**: *string*\]: string
-# Interface: ContractWrappersConfig - -networkId: The id of the underlying ethereum network your provider is connected to. (1-mainnet, 3-ropsten, 4-rinkeby, 42-kovan, 50-testrpc) -gasPrice: Gas price to use with every transaction -contractAddresses: The address of all contracts to use. Defaults to the known addresses based on networkId. -blockPollingIntervalMs: The interval to use for block polling in event watching methods (defaults to 1000) +# Interface: ContractChains -## Properties +## Hierarchy -### `Optional` blockPollingIntervalMs +* **ContractVersionData** -• **blockPollingIntervalMs**? : *undefined | number* + * [ContractArtifact](#class-contractartifact) -*Defined in [contract-wrappers/src/types.ts:40](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/contract-wrappers/src/types.ts#L40)* -___ +## Properties -### `Optional` contractAddresses +### compiler -• **contractAddresses**? : *[ContractAddresses](#class-contractaddresses)* +• **compiler**: *[CompilerOpts](#class-compileropts)* -*Defined in [contract-wrappers/src/types.ts:39](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/contract-wrappers/src/types.ts#L39)* +*Defined in [ethereum-types/src/index.ts:641](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L641)* ___ -### `Optional` gasPrice +### compilerOutput -• **gasPrice**? : *`BigNumber`* +• **compilerOutput**: *[StandardContractOutput](#class-standardcontractoutput)* -*Defined in [contract-wrappers/src/types.ts:38](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/contract-wrappers/src/types.ts#L38)* +*Defined in [ethereum-types/src/index.ts:651](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L651)* ___ -### networkId - -• **networkId**: *number* +### sourceCodes -*Defined in [contract-wrappers/src/types.ts:37](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/contract-wrappers/src/types.ts#L37)* +• **sourceCodes**: *object* -
+*Defined in [ethereum-types/src/index.ts:647](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L647)* +#### Type declaration: +● \[▪ **sourceName**: *string*\]: string +___ +### sourceTreeHashHex +• **sourceTreeHashHex**: *string* +*Defined in [ethereum-types/src/index.ts:650](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L650)* -# Interface: OrderTransactionOpts +___ -shouldValidate: Flag indicating whether the library should make attempts to validate a transaction before -broadcasting it. For example, order has a valid signature, maker has sufficient funds, etc. Default=true. +### sources +• **sources**: *object* -## Properties +*Defined in [ethereum-types/src/index.ts:642](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L642)* -### `Optional` gasLimit +#### Type declaration: -• **gasLimit**? : *undefined | number* +● \[▪ **sourceName**: *string*\]: object -*Inherited from [TransactionOpts](#interface-transactionopts).[gasLimit](#optional-gaslimit)* +
-*Defined in [contract-wrappers/src/types.ts:50](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/contract-wrappers/src/types.ts#L50)* +# Interface: DataItem -___ -### `Optional` gasPrice +## Properties -• **gasPrice**? : *`BigNumber`* +### `Optional` components -*Inherited from [TransactionOpts](#interface-transactionopts).[gasPrice](#optional-gasprice)* +• **components**? : *[DataItem](#class-dataitem)[]* -*Defined in [contract-wrappers/src/types.ts:49](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/contract-wrappers/src/types.ts#L49)* +*Defined in [ethereum-types/src/index.ts:137](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L137)* ___ -### `Optional` nonce - -• **nonce**? : *undefined | number* +### name -*Inherited from [TransactionOpts](#interface-transactionopts).[nonce](#optional-nonce)* +• **name**: *string* -*Defined in [contract-wrappers/src/types.ts:51](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/contract-wrappers/src/types.ts#L51)* +*Defined in [ethereum-types/src/index.ts:135](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L135)* ___ -### `Optional` shouldValidate +### type -• **shouldValidate**? : *undefined | false | true* +• **type**: *string* -*Defined in [contract-wrappers/src/types.ts:59](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/contract-wrappers/src/types.ts#L59)* +*Defined in [ethereum-types/src/index.ts:136](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L136)*
+# Interface: DecodedLogArgs +## Type parameters +▪ **A** +## Properties +### address +• **address**: *string* -# Interface: BlockRange +*Inherited from [LogEntry](#interface-logentry).[address](#address)* +*Defined in [ethereum-types/src/index.ts:434](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L434)* -## Properties +___ -### fromBlock +### args -• **fromBlock**: *[BlockParam](#blockparam)* +• **args**: *`A`* -*Defined in [ethereum-types/src/index.ts:740](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L740)* +*Defined in [ethereum-types/src/index.ts:417](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L417)* ___ -### toBlock - -• **toBlock**: *[BlockParam](#blockparam)* +### blockHash -*Defined in [ethereum-types/src/index.ts:741](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L741)* +• **blockHash**: *string | null* -
+*Inherited from [LogEntry](#interface-logentry).[blockHash](#blockhash)* +*Defined in [ethereum-types/src/index.ts:432](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L432)* +___ +### blockNumber +• **blockNumber**: *number | null* -# Interface: CallData +*Inherited from [LogEntry](#interface-logentry).[blockNumber](#blocknumber)* +*Defined in [ethereum-types/src/index.ts:433](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L433)* -## Properties +___ -### `Optional` data +### data -• **data**? : *undefined | string* +• **data**: *string* -*Inherited from [CallTxDataBase](#interface-calltxdatabase).[data](#optional-data)* +*Inherited from [LogEntry](#interface-logentry).[data](#data)* -*Defined in [ethereum-types/src/index.ts:393](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L393)* +*Defined in [ethereum-types/src/index.ts:435](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L435)* ___ -### `Optional` from +### event -• **from**? : *undefined | string* +• **event**: *string* -*Defined in [ethereum-types/src/index.ts:402](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L402)* +*Defined in [ethereum-types/src/index.ts:416](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L416)* ___ -### `Optional` gas +### logIndex -• **gas**? : *number | string | `BigNumber`* +• **logIndex**: *number | null* -*Inherited from [CallTxDataBase](#interface-calltxdatabase).[gas](#optional-gas)* +*Inherited from [LogEntry](#interface-logentry).[logIndex](#logindex)* -*Defined in [ethereum-types/src/index.ts:391](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L391)* +*Defined in [ethereum-types/src/index.ts:429](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L429)* ___ -### `Optional` gasPrice +### topics -• **gasPrice**? : *number | string | `BigNumber`* +• **topics**: *string[]* -*Inherited from [CallTxDataBase](#interface-calltxdatabase).[gasPrice](#optional-gasprice)* +*Inherited from [LogEntry](#interface-logentry).[topics](#topics)* -*Defined in [ethereum-types/src/index.ts:392](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L392)* +*Defined in [ethereum-types/src/index.ts:436](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L436)* ___ -### `Optional` nonce +### transactionHash -• **nonce**? : *undefined | number* +• **transactionHash**: *string* -*Inherited from [CallTxDataBase](#interface-calltxdatabase).[nonce](#optional-nonce)* +*Inherited from [LogEntry](#interface-logentry).[transactionHash](#transactionhash)* -*Defined in [ethereum-types/src/index.ts:394](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L394)* +*Defined in [ethereum-types/src/index.ts:431](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L431)* ___ -### `Optional` to - -• **to**? : *undefined | string* +### transactionIndex -*Inherited from [CallTxDataBase](#interface-calltxdatabase).[to](#optional-to)* +• **transactionIndex**: *number | null* -*Defined in [ethereum-types/src/index.ts:389](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L389)* +*Inherited from [LogEntry](#interface-logentry).[transactionIndex](#transactionindex)* -___ +*Defined in [ethereum-types/src/index.ts:430](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L430)* -### `Optional` value +
-• **value**? : *number | string | `BigNumber`* +# Interface: DecodedLogEntryEvent <**A**> -*Inherited from [CallTxDataBase](#interface-calltxdatabase).[value](#optional-value)* +## Type parameters -*Defined in [ethereum-types/src/index.ts:390](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L390)* +▪ **A** -
+## Properties +### address +• **address**: *string* +*Inherited from [LogEntry](#interface-logentry).[address](#address)* -# Interface: CompilerOpts +*Defined in [ethereum-types/src/index.ts:434](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L434)* +___ -## Properties +### args -### name +• **args**: *`A`* -• **name**: *"solc"* +*Inherited from [DecodedLogEntry](#interface-decodedlogentry).[args](#args)* -*Defined in [ethereum-types/src/index.ts:655](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L655)* +*Defined in [ethereum-types/src/index.ts:417](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L417)* ___ -### settings +### blockHash -• **settings**: *[CompilerSettings](#class-compilersettings)* +• **blockHash**: *string | null* -*Defined in [ethereum-types/src/index.ts:657](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L657)* +*Inherited from [LogEntry](#interface-logentry).[blockHash](#blockhash)* -___ +*Defined in [ethereum-types/src/index.ts:432](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L432)* -### version +___ -• **version**: *string* +### blockNumber -*Defined in [ethereum-types/src/index.ts:656](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L656)* +• **blockNumber**: *number | null* -
+*Inherited from [LogEntry](#interface-logentry).[blockNumber](#blocknumber)* -# Interface: CompilerSettings +*Defined in [ethereum-types/src/index.ts:433](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L433)* +___ -## Properties +### data -### `Optional` evmVersion +• **data**: *string* -• **evmVersion**? : *"homestead" | "tangerineWhistle" | "spuriousDragon" | "byzantium" | "constantinople"* +*Inherited from [LogEntry](#interface-logentry).[data](#data)* -*Defined in [ethereum-types/src/index.ts:689](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L689)* +*Defined in [ethereum-types/src/index.ts:435](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L435)* ___ -### `Optional` libraries +### event -• **libraries**? : *undefined | object* +• **event**: *string* + +*Inherited from [DecodedLogEntry](#interface-decodedlogentry).[event](#event)* -*Defined in [ethereum-types/src/index.ts:691](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L691)* +*Defined in [ethereum-types/src/index.ts:416](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L416)* ___ -### `Optional` metadata +### logIndex -• **metadata**? : *[CompilerSettingsMetadata](#class-compilersettingsmetadata)* +• **logIndex**: *number | null* -*Defined in [ethereum-types/src/index.ts:690](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L690)* +*Inherited from [LogEntry](#interface-logentry).[logIndex](#logindex)* + +*Defined in [ethereum-types/src/index.ts:429](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L429)* ___ -### `Optional` optimizer +### removed -• **optimizer**? : *[OptimizerSettings](#class-optimizersettings)* +• **removed**: *boolean* -*Defined in [ethereum-types/src/index.ts:688](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L688)* +*Defined in [ethereum-types/src/index.ts:421](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L421)* ___ -### outputSelection +### topics -• **outputSelection**: *object* +• **topics**: *string[]* -*Defined in [ethereum-types/src/index.ts:696](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L696)* +*Inherited from [LogEntry](#interface-logentry).[topics](#topics)* -#### Type declaration: +*Defined in [ethereum-types/src/index.ts:436](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L436)* -● \[▪ **fileName**: *string*\]: object +___ -● \[▪ **contractName**: *string*\]: [OutputField](#outputfield)[] +### transactionHash + +• **transactionHash**: *string* + +*Inherited from [LogEntry](#interface-logentry).[transactionHash](#transactionhash)* + +*Defined in [ethereum-types/src/index.ts:431](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L431)* ___ -### `Optional` remappings +### transactionIndex -• **remappings**? : *string[]* +• **transactionIndex**: *number | null* + +*Inherited from [LogEntry](#interface-logentry).[transactionIndex](#transactionindex)* -*Defined in [ethereum-types/src/index.ts:687](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L687)* +*Defined in [ethereum-types/src/index.ts:430](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L430)*
-# Interface: CompilerSettingsMetadata +# Interface: DevdocOutput ## Properties -### useLiteralContent - -• **useLiteralContent**: *true* +### `Optional` author -*Defined in [ethereum-types/src/index.ts:704](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L704)* +• **author**? : *undefined | string* -
+*Defined in [ethereum-types/src/index.ts:628](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L628)* -# Interface: ConstructorAbi +___ +### methods -## Properties +• **methods**: *object* -### inputs +*Defined in [ethereum-types/src/index.ts:629](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L629)* -• **inputs**: *[DataItem](#class-dataitem)[]* +#### Type declaration: -*Defined in [ethereum-types/src/index.ts:103](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L103)* +● \[▪ **signature**: *string*\]: object ___ -### payable +### `Optional` title -• **payable**: *boolean* +• **title**? : *undefined | string* -*Defined in [ethereum-types/src/index.ts:104](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L104)* +*Defined in [ethereum-types/src/index.ts:627](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L627)* -___ +
-### stateMutability +# Interface: EIP1193Provider -• **stateMutability**: *[ConstructorStateMutability](#constructorstatemutability)* -*Defined in [ethereum-types/src/index.ts:105](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L105)* +## Properties -___ +### isEIP1193 -### type +• **isEIP1193**: *boolean* -• **type**: *string* +*Defined in [ethereum-types/src/index.ts:73](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L73)* -*Defined in [ethereum-types/src/index.ts:102](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L102)* +## Methods -
+### on -# Interface: ContractArtifact +▸ **on**(`event`: [EIP1193Event](#eip1193event), `listener`: function): *this* -This type defines the schema of the artifact.json file generated by Sol-compiler -schemaVersion: The version of the artifact schema -contractName: The contract name it represents -networks: Network specific information by network (address, id, constructor args, etc...) -compilerOutput: The Solidity compiler output generated from the specified compiler input -description (http://solidity.readthedocs.io/en/v0.4.24/using-the-compiler.html#compiler-input-and-output-json-description) -compiler: The compiler settings used -sourceCodes: The source code of the contract and all it's dependencies -sources: A mapping from source filePath to sourceMap id -sourceTreeHashHex: A unique hash generated from the contract source and that of it's dependencies. -If any of the sources change, the hash would change notifying us that a re-compilation is necessary +*Defined in [ethereum-types/src/index.ts:75](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L75)* +**Parameters:** -## Properties +▪ **event**: *[EIP1193Event](#eip1193event)* -### compiler +▪ **listener**: *function* -• **compiler**: *[CompilerOpts](#class-compileropts)* +▸ (`result`: any): *void* -*Inherited from [ContractVersionData](#interface-contractversiondata).[compiler](#compiler)* +**Parameters:** + +Name | Type | +------ | ------ | +`result` | any | -*Defined in [ethereum-types/src/index.ts:641](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L641)* +**Returns:** *this* ___ -### compilerOutput +### send -• **compilerOutput**: *[StandardContractOutput](#class-standardcontractoutput)* +▸ **send**(`method`: string, `params?`: any[]): *`Promise`* -*Inherited from [ContractVersionData](#interface-contractversiondata).[compilerOutput](#compileroutput)* +*Defined in [ethereum-types/src/index.ts:74](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L74)* -*Defined in [ethereum-types/src/index.ts:651](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L651)* +**Parameters:** -___ +Name | Type | +------ | ------ | +`method` | string | +`params?` | any[] | -### contractName +**Returns:** *`Promise`* -• **contractName**: *string* +
-*Defined in [ethereum-types/src/index.ts:675](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L675)* -___ -### networks -• **networks**: *[ContractNetworks](#class-contractnetworks)* -*Defined in [ethereum-types/src/index.ts:676](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L676)* +# Interface: EvmBytecodeOutput -___ -### schemaVersion +## Properties -• **schemaVersion**: *string* +### object -*Defined in [ethereum-types/src/index.ts:674](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L674)* +• **object**: *string* -___ +*Defined in [ethereum-types/src/index.ts:622](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L622)* -### sourceCodes +___ -• **sourceCodes**: *object* +### sourceMap -*Inherited from [ContractVersionData](#interface-contractversiondata).[sourceCodes](#sourcecodes)* +• **sourceMap**: *string* -*Defined in [ethereum-types/src/index.ts:647](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L647)* +*Defined in [ethereum-types/src/index.ts:623](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L623)* -#### Type declaration: +
-● \[▪ **sourceName**: *string*\]: string +# Interface: EvmOutput -___ -### sourceTreeHashHex +## Properties -• **sourceTreeHashHex**: *string* +### bytecode -*Inherited from [ContractVersionData](#interface-contractversiondata).[sourceTreeHashHex](#sourcetreehashhex)* +• **bytecode**: *[EvmBytecodeOutput](#class-evmbytecodeoutput)* -*Defined in [ethereum-types/src/index.ts:650](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L650)* +*Defined in [ethereum-types/src/index.ts:617](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L617)* ___ -### sources +### deployedBytecode -• **sources**: *object* +• **deployedBytecode**: *[EvmBytecodeOutput](#class-evmbytecodeoutput)* -*Inherited from [ContractVersionData](#interface-contractversiondata).[sources](#sources)* +*Defined in [ethereum-types/src/index.ts:618](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L618)* -*Defined in [ethereum-types/src/index.ts:642](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L642)* +
-#### Type declaration: +# Interface: FallbackAbi -● \[▪ **sourceName**: *string*\]: object -
+## Properties + +### payable + +• **payable**: *boolean* + +*Defined in [ethereum-types/src/index.ts:112](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L112)* -# Interface: ContractNetworkData +___ +### type -## Properties +• **type**: *string* -### address +*Defined in [ethereum-types/src/index.ts:111](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L111)* -• **address**: *string* +
-*Defined in [ethereum-types/src/index.ts:554](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L554)* -___ -Args +# Interface: GanacheProvider -• **constructorArgs**: *string* -*Defined in [ethereum-types/src/index.ts:558](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L558)* +## Methods -___ +### sendAsync -### links +▸ **sendAsync**(`payload`: [JSONRPCRequestPayload](_ethereum_types_src_index_.jsonrpcrequestpayload.md), `callback`: [JSONRPCErrorCallback](#jsonrpcerrorcallback)): *void* -• **links**: *object* +*Defined in [ethereum-types/src/index.ts:14](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L14)* -*Defined in [ethereum-types/src/index.ts:555](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L555)* +**Parameters:** -#### Type declaration: +Name | Type | +------ | ------ | +`payload` | [JSONRPCRequestPayload](#class-jsonrpcrequestpayload) | +`callback` | [JSONRPCErrorCallback](#jsonrpcerrorcallback) | -● \[▪ **linkName**: *string*\]: string +**Returns:** *void*
-# Interface: ContractNetworks -## Hierarchy +# Interface: JSONRPCRequestPayload -* **ContractVersionData** - * [ContractArtifact](#class-contractartifact) +## Properties + +### id +• **id**: *number* -## Properties +*Defined in [ethereum-types/src/index.ts:330](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L330)* -### compiler +___ -• **compiler**: *[CompilerOpts](#class-compileropts)* +### jsonrpc + +• **jsonrpc**: *string* -*Defined in [ethereum-types/src/index.ts:641](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L641)* +*Defined in [ethereum-types/src/index.ts:331](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L331)* ___ -### compilerOutput +### method -• **compilerOutput**: *[StandardContractOutput](#class-standardcontractoutput)* +• **method**: *string* -*Defined in [ethereum-types/src/index.ts:651](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L651)* +*Defined in [ethereum-types/src/index.ts:329](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L329)* ___ -### sourceCodes - -• **sourceCodes**: *object* +### params -*Defined in [ethereum-types/src/index.ts:647](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L647)* +• **params**: *any[]* -#### Type declaration: +*Defined in [ethereum-types/src/index.ts:328](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L328)* -● \[▪ **sourceName**: *string*\]: string +
-___ +# Interface: JSONRPCResponseError -### sourceTreeHashHex -• **sourceTreeHashHex**: *string* +## Properties -*Defined in [ethereum-types/src/index.ts:650](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L650)* +### code -___ +• **code**: *number* -### sources +*Defined in [ethereum-types/src/index.ts:336](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L336)* -• **sources**: *object* +___ -*Defined in [ethereum-types/src/index.ts:642](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L642)* +### message -#### Type declaration: +• **message**: *string* -● \[▪ **sourceName**: *string*\]: object +*Defined in [ethereum-types/src/index.ts:335](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L335)*
-# Interface: DataItem +# Interface: JSONRPCResponsePayload ## Properties -### `Optional` components +### `Optional` error -• **components**? : *[DataItem](#class-dataitem)[]* +• **error**? : *[JSONRPCResponseError](#class-jsonrpcresponseerror)* -*Defined in [ethereum-types/src/index.ts:137](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L137)* +*Defined in [ethereum-types/src/index.ts:343](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L343)* ___ -### name +### id -• **name**: *string* +• **id**: *number* -*Defined in [ethereum-types/src/index.ts:135](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L135)* +*Defined in [ethereum-types/src/index.ts:341](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L341)* ___ -### type +### jsonrpc -• **type**: *string* +• **jsonrpc**: *string* -*Defined in [ethereum-types/src/index.ts:136](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L136)* +*Defined in [ethereum-types/src/index.ts:342](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L342)* -
+___ -# Interface: DecodedLogArgs +### result +• **result**: *any* -## Type parameters +*Defined in [ethereum-types/src/index.ts:340](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L340)* -▪ **A** +
+ +# Interface: LogEntry ## Properties @@ -30352,17 +9491,7 @@ ___ • **address**: *string* -*Inherited from [LogEntry](#interface-logentry).[address](#address)* - -*Defined in [ethereum-types/src/index.ts:434](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L434)* - -___ - -### args - -• **args**: *`A`* - -*Defined in [ethereum-types/src/index.ts:417](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L417)* +*Defined in [ethereum-types/src/index.ts:434](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L434)* ___ @@ -30370,9 +9499,7 @@ ___ • **blockHash**: *string | null* -*Inherited from [LogEntry](#interface-logentry).[blockHash](#blockhash)* - -*Defined in [ethereum-types/src/index.ts:432](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L432)* +*Defined in [ethereum-types/src/index.ts:432](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L432)* ___ @@ -30380,9 +9507,7 @@ ___ • **blockNumber**: *number | null* -*Inherited from [LogEntry](#interface-logentry).[blockNumber](#blocknumber)* - -*Defined in [ethereum-types/src/index.ts:433](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L433)* +*Defined in [ethereum-types/src/index.ts:433](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L433)* ___ @@ -30390,17 +9515,7 @@ ___ • **data**: *string* -*Inherited from [LogEntry](#interface-logentry).[data](#data)* - -*Defined in [ethereum-types/src/index.ts:435](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L435)* - -___ - -### event - -• **event**: *string* - -*Defined in [ethereum-types/src/index.ts:416](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L416)* +*Defined in [ethereum-types/src/index.ts:435](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L435)* ___ @@ -30408,9 +9523,7 @@ ___ • **logIndex**: *number | null* -*Inherited from [LogEntry](#interface-logentry).[logIndex](#logindex)* - -*Defined in [ethereum-types/src/index.ts:429](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L429)* +*Defined in [ethereum-types/src/index.ts:429](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L429)* ___ @@ -30418,9 +9531,7 @@ ___ • **topics**: *string[]* -*Inherited from [LogEntry](#interface-logentry).[topics](#topics)* - -*Defined in [ethereum-types/src/index.ts:436](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L436)* +*Defined in [ethereum-types/src/index.ts:436](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L436)* ___ @@ -30428,9 +9539,7 @@ ___ • **transactionHash**: *string* -*Inherited from [LogEntry](#interface-logentry).[transactionHash](#transactionhash)* - -*Defined in [ethereum-types/src/index.ts:431](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L431)* +*Defined in [ethereum-types/src/index.ts:431](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L431)* ___ @@ -30438,17 +9547,11 @@ ___ • **transactionIndex**: *number | null* -*Inherited from [LogEntry](#interface-logentry).[transactionIndex](#transactionindex)* - -*Defined in [ethereum-types/src/index.ts:430](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L430)* +*Defined in [ethereum-types/src/index.ts:430](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L430)*
-# Interface: DecodedLogEntryEvent <**A**> - -## Type parameters - -▪ **A** +# Interface: LogEntryEvent ## Properties @@ -30459,17 +9562,7 @@ ___ *Inherited from [LogEntry](#interface-logentry).[address](#address)* -*Defined in [ethereum-types/src/index.ts:434](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L434)* - -___ - -### args - -• **args**: *`A`* - -*Inherited from [DecodedLogEntry](#interface-decodedlogentry).[args](#args)* - -*Defined in [ethereum-types/src/index.ts:417](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L417)* +*Defined in [ethereum-types/src/index.ts:434](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L434)* ___ @@ -30479,7 +9572,7 @@ ___ *Inherited from [LogEntry](#interface-logentry).[blockHash](#blockhash)* -*Defined in [ethereum-types/src/index.ts:432](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L432)* +*Defined in [ethereum-types/src/index.ts:432](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L432)* ___ @@ -30489,7 +9582,7 @@ ___ *Inherited from [LogEntry](#interface-logentry).[blockNumber](#blocknumber)* -*Defined in [ethereum-types/src/index.ts:433](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L433)* +*Defined in [ethereum-types/src/index.ts:433](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L433)* ___ @@ -30499,17 +9592,7 @@ ___ *Inherited from [LogEntry](#interface-logentry).[data](#data)* -*Defined in [ethereum-types/src/index.ts:435](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L435)* - -___ - -### event - -• **event**: *string* - -*Inherited from [DecodedLogEntry](#interface-decodedlogentry).[event](#event)* - -*Defined in [ethereum-types/src/index.ts:416](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L416)* +*Defined in [ethereum-types/src/index.ts:435](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L435)* ___ @@ -30519,7 +9602,7 @@ ___ *Inherited from [LogEntry](#interface-logentry).[logIndex](#logindex)* -*Defined in [ethereum-types/src/index.ts:429](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L429)* +*Defined in [ethereum-types/src/index.ts:429](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L429)* ___ @@ -30527,7 +9610,7 @@ ___ • **removed**: *boolean* -*Defined in [ethereum-types/src/index.ts:421](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L421)* +*Defined in [ethereum-types/src/index.ts:425](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L425)* ___ @@ -30537,7 +9620,7 @@ ___ *Inherited from [LogEntry](#interface-logentry).[topics](#topics)* -*Defined in [ethereum-types/src/index.ts:436](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L436)* +*Defined in [ethereum-types/src/index.ts:436](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L436)* ___ @@ -30547,682 +9630,610 @@ ___ *Inherited from [LogEntry](#interface-logentry).[transactionHash](#transactionhash)* -*Defined in [ethereum-types/src/index.ts:431](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L431)* - -___ - -### transactionIndex - -• **transactionIndex**: *number | null* - -*Inherited from [LogEntry](#interface-logentry).[transactionIndex](#transactionindex)* - -*Defined in [ethereum-types/src/index.ts:430](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L430)* - -
- -# Interface: DevdocOutput - - -## Properties - -### `Optional` author - -• **author**? : *undefined | string* - -*Defined in [ethereum-types/src/index.ts:628](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L628)* - -___ - -### methods - -• **methods**: *object* - -*Defined in [ethereum-types/src/index.ts:629](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L629)* - -#### Type declaration: - -● \[▪ **signature**: *string*\]: object - -___ - -### `Optional` title - -• **title**? : *undefined | string* - -*Defined in [ethereum-types/src/index.ts:627](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L627)* - -
- -# Interface: EIP1193Provider - - -## Properties - -### isEIP1193 - -• **isEIP1193**: *boolean* - -*Defined in [ethereum-types/src/index.ts:73](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L73)* - -## Methods - -### on - -▸ **on**(`event`: [EIP1193Event](#eip1193event), `listener`: function): *this* - -*Defined in [ethereum-types/src/index.ts:75](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L75)* - -**Parameters:** - -▪ **event**: *[EIP1193Event](#eip1193event)* - -▪ **listener**: *function* - -▸ (`result`: any): *void* - -**Parameters:** - -Name | Type | ------- | ------ | -`result` | any | - -**Returns:** *this* - -___ - -### send - -▸ **send**(`method`: string, `params?`: any[]): *`Promise`* - -*Defined in [ethereum-types/src/index.ts:74](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L74)* - -**Parameters:** - -Name | Type | ------- | ------ | -`method` | string | -`params?` | any[] | - -**Returns:** *`Promise`* - -
- - - - - -# Interface: EvmBytecodeOutput - - -## Properties - -### object - -• **object**: *string* - -*Defined in [ethereum-types/src/index.ts:622](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L622)* +*Defined in [ethereum-types/src/index.ts:431](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L431)* ___ -### sourceMap - -• **sourceMap**: *string* - -*Defined in [ethereum-types/src/index.ts:623](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L623)* +### transactionIndex -
+• **transactionIndex**: *number | null* -# Interface: EvmOutput +*Inherited from [LogEntry](#interface-logentry).[transactionIndex](#transactionindex)* +*Defined in [ethereum-types/src/index.ts:430](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L430)* -## Properties +
-### bytecode +# Interface: LogWithDecodedArgs <**ArgsType**> -• **bytecode**: *[EvmBytecodeOutput](#class-evmbytecodeoutput)* +## Type parameters -*Defined in [ethereum-types/src/index.ts:617](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L617)* +▪ **ArgsType**: *[DecodedLogArgs](#class-decodedlogargs)* -___ -### deployedBytecode +## Properties -• **deployedBytecode**: *[EvmBytecodeOutput](#class-evmbytecodeoutput)* +### address -*Defined in [ethereum-types/src/index.ts:618](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L618)* +• **address**: *string* -
+*Inherited from [LogEntry](#interface-logentry).[address](#address)* -# Interface: FallbackAbi +*Defined in [ethereum-types/src/index.ts:434](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L434)* +___ -## Properties +### args -### payable +• **args**: *`ArgsType`* -• **payable**: *boolean* +*Inherited from [DecodedLogEntry](#interface-decodedlogentry).[args](#args)* -*Defined in [ethereum-types/src/index.ts:112](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L112)* +*Defined in [ethereum-types/src/index.ts:417](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L417)* ___ -### type +### blockHash -• **type**: *string* +• **blockHash**: *string | null* -*Defined in [ethereum-types/src/index.ts:111](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L111)* +*Inherited from [LogEntry](#interface-logentry).[blockHash](#blockhash)* -
+*Defined in [ethereum-types/src/index.ts:432](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L432)* +___ +### blockNumber -# Interface: GanacheProvider +• **blockNumber**: *number | null* +*Inherited from [LogEntry](#interface-logentry).[blockNumber](#blocknumber)* -## Methods +*Defined in [ethereum-types/src/index.ts:433](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L433)* -### sendAsync +___ -▸ **sendAsync**(`payload`: [JSONRPCRequestPayload](_ethereum_types_src_index_.jsonrpcrequestpayload.md), `callback`: [JSONRPCErrorCallback](#jsonrpcerrorcallback)): *void* +### data -*Defined in [ethereum-types/src/index.ts:14](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L14)* +• **data**: *string* -**Parameters:** +*Inherited from [LogEntry](#interface-logentry).[data](#data)* -Name | Type | ------- | ------ | -`payload` | [JSONRPCRequestPayload](#class-jsonrpcrequestpayload) | -`callback` | [JSONRPCErrorCallback](#jsonrpcerrorcallback) | +*Defined in [ethereum-types/src/index.ts:435](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L435)* -**Returns:** *void* +___ -
+### event +• **event**: *string* +*Inherited from [DecodedLogEntry](#interface-decodedlogentry).[event](#event)* -# Interface: JSONRPCRequestPayload +*Defined in [ethereum-types/src/index.ts:416](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L416)* +___ -## Properties +### logIndex -### id +• **logIndex**: *number | null* -• **id**: *number* +*Inherited from [LogEntry](#interface-logentry).[logIndex](#logindex)* -*Defined in [ethereum-types/src/index.ts:330](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L330)* +*Defined in [ethereum-types/src/index.ts:429](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L429)* ___ -### jsonrpc +### topics -• **jsonrpc**: *string* +• **topics**: *string[]* + +*Inherited from [LogEntry](#interface-logentry).[topics](#topics)* -*Defined in [ethereum-types/src/index.ts:331](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L331)* +*Defined in [ethereum-types/src/index.ts:436](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L436)* ___ -### method +### transactionHash -• **method**: *string* +• **transactionHash**: *string* + +*Inherited from [LogEntry](#interface-logentry).[transactionHash](#transactionhash)* -*Defined in [ethereum-types/src/index.ts:329](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L329)* +*Defined in [ethereum-types/src/index.ts:431](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L431)* ___ -### params +### transactionIndex -• **params**: *any[]* +• **transactionIndex**: *number | null* + +*Inherited from [LogEntry](#interface-logentry).[transactionIndex](#transactionindex)* -*Defined in [ethereum-types/src/index.ts:328](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L328)* +*Defined in [ethereum-types/src/index.ts:430](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L430)*
-# Interface: JSONRPCResponseError +# Interface: MethodAbi ## Properties -### code +### constant -• **code**: *number* +• **constant**: *boolean* -*Defined in [ethereum-types/src/index.ts:336](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L336)* +*Defined in [ethereum-types/src/index.ts:94](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L94)* ___ -### message +### inputs -• **message**: *string* +• **inputs**: *[DataItem](#class-dataitem)[]* -*Defined in [ethereum-types/src/index.ts:335](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L335)* +*Defined in [ethereum-types/src/index.ts:92](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L92)* -
+___ -# Interface: JSONRPCResponsePayload +### name +• **name**: *string* -## Properties +*Defined in [ethereum-types/src/index.ts:91](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L91)* -### `Optional` error +___ -• **error**? : *[JSONRPCResponseError](#class-jsonrpcresponseerror)* +### outputs + +• **outputs**: *[DataItem](#class-dataitem)[]* -*Defined in [ethereum-types/src/index.ts:343](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L343)* +*Defined in [ethereum-types/src/index.ts:93](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L93)* ___ -### id +### payable -• **id**: *number* +• **payable**: *boolean* -*Defined in [ethereum-types/src/index.ts:341](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L341)* +*Defined in [ethereum-types/src/index.ts:96](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L96)* ___ -### jsonrpc +### stateMutability -• **jsonrpc**: *string* +• **stateMutability**: *[StateMutability](#statemutability)* -*Defined in [ethereum-types/src/index.ts:342](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L342)* +*Defined in [ethereum-types/src/index.ts:95](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L95)* ___ -### result +### type -• **result**: *any* +• **type**: *string* -*Defined in [ethereum-types/src/index.ts:340](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L340)* +*Defined in [ethereum-types/src/index.ts:90](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L90)*
-# Interface: LogEntry +# Interface: OptimizerSettings ## Properties -### address - -• **address**: *string* - -*Defined in [ethereum-types/src/index.ts:434](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L434)* - -___ - -### blockHash +### enabled -• **blockHash**: *string | null* +• **enabled**: *boolean* -*Defined in [ethereum-types/src/index.ts:432](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L432)* +*Defined in [ethereum-types/src/index.ts:708](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L708)* ___ -### blockNumber - -• **blockNumber**: *number | null* +### `Optional` runs -*Defined in [ethereum-types/src/index.ts:433](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L433)* +• **runs**? : *undefined | number* -___ +*Defined in [ethereum-types/src/index.ts:709](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L709)* -### data +
-• **data**: *string* -*Defined in [ethereum-types/src/index.ts:435](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L435)* -___ -### logIndex -• **logIndex**: *number | null* +# Interface: RevertErrorAbi -*Defined in [ethereum-types/src/index.ts:429](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L429)* -___ +## Properties -### topics +### `Optional` arguments -• **topics**: *string[]* +• **arguments**? : *[DataItem](#class-dataitem)[]* -*Defined in [ethereum-types/src/index.ts:436](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L436)* +*Defined in [ethereum-types/src/index.ts:122](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L122)* ___ -### transactionHash +### name -• **transactionHash**: *string* +• **name**: *string* -*Defined in [ethereum-types/src/index.ts:431](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L431)* +*Defined in [ethereum-types/src/index.ts:121](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L121)* ___ -### transactionIndex +### type -• **transactionIndex**: *number | null* +• **type**: *"error"* -*Defined in [ethereum-types/src/index.ts:430](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L430)* +*Defined in [ethereum-types/src/index.ts:120](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L120)*
-# Interface: LogEntryEvent +# Class: CoordinatorContract -## Properties +## Constructors -### address -• **address**: *string* -*Inherited from [LogEntry](#interface-logentry).[address](#address)* +\+ **new CoordinatorContract**(`address`: string, `supportedProvider`: [SupportedProvider](#supportedprovider), `txDefaults?`: `Partial`, `logDecodeDependencies?`: undefined | object, `deployedBytecode`: string | undefined): *[CoordinatorContract](#class-coordinatorcontract)* -*Defined in [ethereum-types/src/index.ts:434](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L434)* +*Overrides void* -___ +*Defined in [abi-gen-wrappers/src/generated-wrappers/coordinator.ts:1066](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/coordinator.ts#L1066)* -### blockHash +**Parameters:** -• **blockHash**: *string | null* +Name | Type | Default | +------ | ------ | ------ | +`address` | string | - | +`supportedProvider` | [SupportedProvider](#supportedprovider) | - | +`txDefaults?` | `Partial` | - | +`logDecodeDependencies?` | undefined \| object | - | +`deployedBytecode` | string \| undefined | CoordinatorContract.deployedBytecode | -*Inherited from [LogEntry](#interface-logentry).[blockHash](#blockhash)* +**Returns:** *[CoordinatorContract](#class-coordinatorcontract)* -*Defined in [ethereum-types/src/index.ts:432](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L432)* +## Properties -___ +### `Optional` _deployedBytecodeIfExists -### blockNumber +• **_deployedBytecodeIfExists**? : *`Buffer`* -• **blockNumber**: *number | null* -*Inherited from [LogEntry](#interface-logentry).[blockNumber](#blocknumber)* -*Defined in [ethereum-types/src/index.ts:433](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L433)* +Defined in base-contract/lib/src/index.d.ts:32 ___ -### data +### abi + +• **abi**: *[ContractAbi](#contractabi)* -• **data**: *string* -*Inherited from [LogEntry](#interface-logentry).[data](#data)* -*Defined in [ethereum-types/src/index.ts:435](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L435)* +Defined in base-contract/lib/src/index.d.ts:28 ___ -### logIndex +### address -• **logIndex**: *number | null* +• **address**: *string* -*Inherited from [LogEntry](#interface-logentry).[logIndex](#logindex)* -*Defined in [ethereum-types/src/index.ts:429](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L429)* + +Defined in base-contract/lib/src/index.d.ts:29 ___ -### removed +Args + +• **constructorArgs**: *any[]* + -• **removed**: *boolean* -*Defined in [ethereum-types/src/index.ts:425](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L425)* +Defined in base-contract/lib/src/index.d.ts:31 ___ -### topics +### contractName -• **topics**: *string[]* +• **contractName**: *string* -*Inherited from [LogEntry](#interface-logentry).[topics](#topics)* -*Defined in [ethereum-types/src/index.ts:436](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L436)* -___ +Defined in base-contract/lib/src/index.d.ts:30 -### transactionHash +## Methods -• **transactionHash**: *string* +### EIP712_COORDINATOR_DOMAIN_HASH -*Inherited from [LogEntry](#interface-logentry).[transactionHash](#transactionhash)* +▸ **EIP712_COORDINATOR_DOMAIN_HASH**(): *`ContractFunctionObj`* -*Defined in [ethereum-types/src/index.ts:431](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L431)* +*Defined in [abi-gen-wrappers/src/generated-wrappers/coordinator.ts:1020](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/coordinator.ts#L1020)* + +**Returns:** *`ContractFunctionObj`* ___ -### transactionIndex +### EIP712_EXCHANGE_DOMAIN_HASH -• **transactionIndex**: *number | null* +▸ **EIP712_EXCHANGE_DOMAIN_HASH**(): *`ContractFunctionObj`* -*Inherited from [LogEntry](#interface-logentry).[transactionIndex](#transactionindex)* +*Defined in [abi-gen-wrappers/src/generated-wrappers/coordinator.ts:787](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/coordinator.ts#L787)* -*Defined in [ethereum-types/src/index.ts:430](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L430)* +**Returns:** *`ContractFunctionObj`* -
+___ -# Interface: LogWithDecodedArgs <**ArgsType**> +### assertValidCoordinatorApprovals -## Type parameters +▸ **assertValidCoordinatorApprovals**(`transaction`: object, `txOrigin`: string, `transactionSignature`: string, `approvalExpirationTimeSeconds`: `BigNumber`[], `approvalSignatures`: string[]): *`ContractFunctionObj`* -▪ **ArgsType**: *[DecodedLogArgs](#class-decodedlogargs)* +*Defined in [abi-gen-wrappers/src/generated-wrappers/coordinator.ts:847](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/coordinator.ts#L847)* +Validates that the 0x transaction has been approved by all of the feeRecipients +that correspond to each order in the transaction's Exchange calldata. -## Properties +**Parameters:** -### address +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. | +`approvalExpirationTimeSeconds` | `BigNumber`[] | Array of expiration times in seconds for which each corresponding approval signature expires. | +`approvalSignatures` | string[] | Array of signatures that correspond to the feeRecipients of each order in the transaction's Exchange calldata. | -• **address**: *string* +**Returns:** *`ContractFunctionObj`* -*Inherited from [LogEntry](#interface-logentry).[address](#address)* +___ -*Defined in [ethereum-types/src/index.ts:434](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L434)* +### decodeOrdersFromFillData -___ +▸ **decodeOrdersFromFillData**(`data`: string): *`ContractFunctionObj>`* -### args +*Defined in [abi-gen-wrappers/src/generated-wrappers/coordinator.ts:930](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/coordinator.ts#L930)* -• **args**: *`ArgsType`* +Decodes the orders from Exchange calldata representing any fill method. -*Inherited from [DecodedLogEntry](#interface-decodedlogentry).[args](#args)* +**Parameters:** -*Defined in [ethereum-types/src/index.ts:417](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L417)* +Name | Type | Description | +------ | ------ | ------ | +`data` | string | Exchange calldata representing a fill method. | -___ +**Returns:** *`ContractFunctionObj>`* -### blockHash +The orders from the Exchange calldata. -• **blockHash**: *string | null* +___ -*Inherited from [LogEntry](#interface-logentry).[blockHash](#blockhash)* +### executeTransaction -*Defined in [ethereum-types/src/index.ts:432](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L432)* +▸ **executeTransaction**(`transaction`: object, `txOrigin`: string, `transactionSignature`: string, `approvalExpirationTimeSeconds`: `BigNumber`[], `approvalSignatures`: string[]): *`ContractTxFunctionObj`* -___ +*Defined in [abi-gen-wrappers/src/generated-wrappers/coordinator.ts:633](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/coordinator.ts#L633)* -### blockNumber +Executes a 0x transaction that has been signed by the feeRecipients that correspond to each order in the transaction's Exchange calldata. -• **blockNumber**: *number | null* +**Parameters:** -*Inherited from [LogEntry](#interface-logentry).[blockNumber](#blocknumber)* +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. | +`approvalExpirationTimeSeconds` | `BigNumber`[] | Array of expiration times in seconds for which each corresponding approval signature expires. | +`approvalSignatures` | string[] | Array of signatures that correspond to the feeRecipients of each order in the transaction's Exchange calldata. | -*Defined in [ethereum-types/src/index.ts:433](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L433)* +**Returns:** *`ContractTxFunctionObj`* ___ -### data - -• **data**: *string* +### getABIDecodedReturnData -*Inherited from [LogEntry](#interface-logentry).[data](#data)* +▸ **getABIDecodedReturnData**<**T**>(`methodName`: string, `callData`: string): *`T`* -*Defined in [ethereum-types/src/index.ts:435](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L435)* +*Defined in [abi-gen-wrappers/src/generated-wrappers/coordinator.ts:433](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/coordinator.ts#L433)* -___ +**Type parameters:** -### event +▪ **T** -• **event**: *string* +**Parameters:** -*Inherited from [DecodedLogEntry](#interface-decodedlogentry).[event](#event)* +Name | Type | +------ | ------ | +`methodName` | string | +`callData` | string | -*Defined in [ethereum-types/src/index.ts:416](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L416)* +**Returns:** *`T`* ___ -### logIndex - -• **logIndex**: *number | null* +### getABIDecodedTransactionData -*Inherited from [LogEntry](#interface-logentry).[logIndex](#logindex)* +▸ **getABIDecodedTransactionData**<**T**>(`methodName`: string, `callData`: string): *`T`* -*Defined in [ethereum-types/src/index.ts:429](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L429)* +*Defined in [abi-gen-wrappers/src/generated-wrappers/coordinator.ts:426](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/coordinator.ts#L426)* -___ +**Type parameters:** -### topics +▪ **T** -• **topics**: *string[]* +**Parameters:** -*Inherited from [LogEntry](#interface-logentry).[topics](#topics)* +Name | Type | +------ | ------ | +`methodName` | string | +`callData` | string | -*Defined in [ethereum-types/src/index.ts:436](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L436)* +**Returns:** *`T`* ___ -### transactionHash - -• **transactionHash**: *string* +### getCoordinatorApprovalHash -*Inherited from [LogEntry](#interface-logentry).[transactionHash](#transactionhash)* +▸ **getCoordinatorApprovalHash**(`approval`: object): *`ContractFunctionObj`* -*Defined in [ethereum-types/src/index.ts:431](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L431)* +*Defined in [abi-gen-wrappers/src/generated-wrappers/coordinator.ts:561](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/coordinator.ts#L561)* -___ +Calculated the EIP712 hash of the Coordinator approval mesasage using the domain separator of this contract. -### transactionIndex +**Parameters:** -• **transactionIndex**: *number | null* +Name | Type | Description | +------ | ------ | ------ | +`approval` | object | Coordinator approval message containing the transaction hash, transaction signature, and expiration of the approval. | -*Inherited from [LogEntry](#interface-logentry).[transactionIndex](#transactionindex)* +**Returns:** *`ContractFunctionObj`* -*Defined in [ethereum-types/src/index.ts:430](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L430)* +EIP712 hash of the Coordinator approval message with the domain separator of this contract. -
+___ -# Interface: MethodAbi +### getFunctionSignature +▸ **getFunctionSignature**(`methodName`: string): *string* -## Properties +*Defined in [abi-gen-wrappers/src/generated-wrappers/coordinator.ts:420](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/coordinator.ts#L420)* -### constant +**Parameters:** -• **constant**: *boolean* +Name | Type | +------ | ------ | +`methodName` | string | -*Defined in [ethereum-types/src/index.ts:94](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L94)* +**Returns:** *string* ___ -### inputs - -• **inputs**: *[DataItem](#class-dataitem)[]* +### getSelector -*Defined in [ethereum-types/src/index.ts:92](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L92)* +▸ **getSelector**(`methodName`: string): *string* -___ +*Defined in [abi-gen-wrappers/src/generated-wrappers/coordinator.ts:440](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/coordinator.ts#L440)* -### name +**Parameters:** -• **name**: *string* +Name | Type | +------ | ------ | +`methodName` | string | -*Defined in [ethereum-types/src/index.ts:91](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L91)* +**Returns:** *string* ___ -### outputs +### getSignerAddress -• **outputs**: *[DataItem](#class-dataitem)[]* +▸ **getSignerAddress**(`hash`: string, `signature`: string): *`ContractFunctionObj`* -*Defined in [ethereum-types/src/index.ts:93](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L93)* +*Defined in [abi-gen-wrappers/src/generated-wrappers/coordinator.ts:452](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/coordinator.ts#L452)* -___ +Recovers the address of a signer given a hash and signature. -### payable +**Parameters:** -• **payable**: *boolean* +Name | Type | Description | +------ | ------ | ------ | +`hash` | string | Any 32 byte hash. | +`signature` | string | Proof that the hash has been signed by signer. | -*Defined in [ethereum-types/src/index.ts:96](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L96)* +**Returns:** *`ContractFunctionObj`* ___ -### stateMutability +### getTransactionHash -• **stateMutability**: *[StateMutability](#statemutability)* +▸ **getTransactionHash**(`transaction`: object): *`ContractFunctionObj`* -*Defined in [ethereum-types/src/index.ts:95](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L95)* +*Defined in [abi-gen-wrappers/src/generated-wrappers/coordinator.ts:499](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/coordinator.ts#L499)* -___ +Calculates the EIP712 hash of a 0x transaction using the domain separator of the Exchange contract. -### type +**Parameters:** -• **type**: *string* +Name | Type | Description | +------ | ------ | ------ | +`transaction` | object | 0x transaction containing salt, signerAddress, and data. | -*Defined in [ethereum-types/src/index.ts:90](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L90)* +**Returns:** *`ContractFunctionObj`* -
+EIP712 hash of the transaction with the domain separator of this contract. -# Interface: OptimizerSettings +___ +### `Static` ABI -## Properties +▸ **ABI**(): *[ContractAbi](#contractabi)* -### enabled +*Defined in [abi-gen-wrappers/src/generated-wrappers/coordinator.ts:124](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/coordinator.ts#L124)* -• **enabled**: *boolean* +**Returns:** *[ContractAbi](#contractabi)* -*Defined in [ethereum-types/src/index.ts:708](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L708)* +The contract ABI ___ -### `Optional` runs - -• **runs**? : *undefined | number* +### `Static` deployAsync -*Defined in [ethereum-types/src/index.ts:709](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L709)* +▸ **deployAsync**(`bytecode`: string, `abi`: [ContractAbi](#contractabi), `supportedProvider`: [SupportedProvider](#supportedprovider), `txDefaults`: `Partial`, `logDecodeDependencies`: object, `_exchange`: string): *`Promise`* -
+*Defined in [abi-gen-wrappers/src/generated-wrappers/coordinator.ts:77](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/coordinator.ts#L77)* +**Parameters:** +Name | Type | +------ | ------ | +`bytecode` | string | +`abi` | [ContractAbi](#contractabi) | +`supportedProvider` | [SupportedProvider](#supportedprovider) | +`txDefaults` | `Partial` | +`logDecodeDependencies` | object | +`_exchange` | string | +**Returns:** *`Promise`* +___ -# Interface: RevertErrorAbi +### `Static` deployFrom0xArtifactAsync +▸ **deployFrom0xArtifactAsync**(`artifact`: `ContractArtifact` | `SimpleContractArtifact`, `supportedProvider`: [SupportedProvider](#supportedprovider), `txDefaults`: `Partial`, `logDecodeDependencies`: object, `_exchange`: string): *`Promise`* -## Properties +*Defined in [abi-gen-wrappers/src/generated-wrappers/coordinator.ts:44](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/coordinator.ts#L44)* -### `Optional` arguments +**Parameters:** -• **arguments**? : *[DataItem](#class-dataitem)[]* +Name | Type | +------ | ------ | +`artifact` | `ContractArtifact` \| `SimpleContractArtifact` | +`supportedProvider` | [SupportedProvider](#supportedprovider) | +`txDefaults` | `Partial` | +`logDecodeDependencies` | object | +`_exchange` | string | -*Defined in [ethereum-types/src/index.ts:122](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L122)* +**Returns:** *`Promise`* ___ -### name - -• **name**: *string* +### `Static` strictArgumentEncodingCheck -*Defined in [ethereum-types/src/index.ts:121](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L121)* +▸ **strictArgumentEncodingCheck**(`inputAbi`: `DataItem`[], `args`: any[]): *string* -___ -### type -• **type**: *"error"* +Defined in base-contract/lib/src/index.d.ts:42 -*Defined in [ethereum-types/src/index.ts:120](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L120)* +**Parameters:** -
+Name | Type | +------ | ------ | +`inputAbi` | `DataItem`[] | +`args` | any[] | +**Returns:** *string* +
@@ -31237,7 +10248,7 @@ ___ • **abi**: *[ContractAbi](#contractabi)* -*Defined in [ethereum-types/src/index.ts:564](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L564)* +*Defined in [ethereum-types/src/index.ts:564](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L564)* ___ @@ -31245,7 +10256,7 @@ ___ • **devdoc**? : *[DevdocOutput](#class-devdocoutput)* -*Defined in [ethereum-types/src/index.ts:566](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L566)* +*Defined in [ethereum-types/src/index.ts:566](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L566)* ___ @@ -31253,7 +10264,7 @@ ___ • **evm**: *[EvmOutput](#class-evmoutput)* -*Defined in [ethereum-types/src/index.ts:565](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L565)* +*Defined in [ethereum-types/src/index.ts:565](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L565)*
@@ -31282,7 +10293,7 @@ ___ *Overrides [DataItem](_ethereum_types_src_index_.dataitem.md).[components](#optional-components)* -*Defined in [ethereum-types/src/index.ts:141](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L141)* +*Defined in [ethereum-types/src/index.ts:141](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L141)* ___ @@ -31292,7 +10303,7 @@ ___ *Inherited from [DataItem](#interface-dataitem).[name](#name)* -*Defined in [ethereum-types/src/index.ts:135](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L135)* +*Defined in [ethereum-types/src/index.ts:135](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L135)* ___ @@ -31302,7 +10313,7 @@ ___ *Inherited from [DataItem](#interface-dataitem).[type](#type)* -*Defined in [ethereum-types/src/index.ts:136](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L136)* +*Defined in [ethereum-types/src/index.ts:136](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L136)*
@@ -31317,7 +10328,7 @@ ___ *Inherited from [CallTxDataBase](#interface-calltxdatabase).[data](#optional-data)* -*Defined in [ethereum-types/src/index.ts:393](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L393)* +*Defined in [ethereum-types/src/index.ts:393](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L393)* ___ @@ -31325,7 +10336,7 @@ ___ • **from**: *string* -*Defined in [ethereum-types/src/index.ts:398](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L398)* +*Defined in [ethereum-types/src/index.ts:398](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L398)* ___ @@ -31335,7 +10346,7 @@ ___ *Inherited from [CallTxDataBase](#interface-calltxdatabase).[gas](#optional-gas)* -*Defined in [ethereum-types/src/index.ts:391](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L391)* +*Defined in [ethereum-types/src/index.ts:391](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L391)* ___ @@ -31345,7 +10356,7 @@ ___ *Inherited from [CallTxDataBase](#interface-calltxdatabase).[gasPrice](#optional-gasprice)* -*Defined in [ethereum-types/src/index.ts:392](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L392)* +*Defined in [ethereum-types/src/index.ts:392](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L392)* ___ @@ -31355,7 +10366,7 @@ ___ *Inherited from [CallTxDataBase](#interface-calltxdatabase).[nonce](#optional-nonce)* -*Defined in [ethereum-types/src/index.ts:394](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L394)* +*Defined in [ethereum-types/src/index.ts:394](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L394)* ___ @@ -31365,7 +10376,7 @@ ___ *Inherited from [CallTxDataBase](#interface-calltxdatabase).[to](#optional-to)* -*Defined in [ethereum-types/src/index.ts:389](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L389)* +*Defined in [ethereum-types/src/index.ts:389](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L389)* ___ @@ -31375,7 +10386,7 @@ ___ *Inherited from [CallTxDataBase](#interface-calltxdatabase).[value](#optional-value)* -*Defined in [ethereum-types/src/index.ts:390](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L390)* +*Defined in [ethereum-types/src/index.ts:390](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L390)*
@@ -31390,7 +10401,7 @@ ___ *Inherited from [CallTxDataBase](#interface-calltxdatabase).[data](#optional-data)* -*Defined in [ethereum-types/src/index.ts:393](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L393)* +*Defined in [ethereum-types/src/index.ts:393](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L393)* ___ @@ -31400,7 +10411,7 @@ ___ *Inherited from [TxData](#interface-txdata).[from](#from)* -*Defined in [ethereum-types/src/index.ts:398](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L398)* +*Defined in [ethereum-types/src/index.ts:398](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L398)* ___ @@ -31410,7 +10421,7 @@ ___ *Inherited from [CallTxDataBase](#interface-calltxdatabase).[gas](#optional-gas)* -*Defined in [ethereum-types/src/index.ts:391](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L391)* +*Defined in [ethereum-types/src/index.ts:391](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L391)* ___ @@ -31420,7 +10431,7 @@ ___ *Inherited from [CallTxDataBase](#interface-calltxdatabase).[gasPrice](#optional-gasprice)* -*Defined in [ethereum-types/src/index.ts:392](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L392)* +*Defined in [ethereum-types/src/index.ts:392](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L392)* ___ @@ -31430,7 +10441,7 @@ ___ *Inherited from [CallTxDataBase](#interface-calltxdatabase).[nonce](#optional-nonce)* -*Defined in [ethereum-types/src/index.ts:394](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L394)* +*Defined in [ethereum-types/src/index.ts:394](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L394)* ___ @@ -31440,7 +10451,7 @@ ___ *Inherited from [CallTxDataBase](#interface-calltxdatabase).[to](#optional-to)* -*Defined in [ethereum-types/src/index.ts:389](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L389)* +*Defined in [ethereum-types/src/index.ts:389](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L389)* ___ @@ -31450,7 +10461,7 @@ ___ *Overrides [CallTxDataBase](_ethereum_types_src_index_.calltxdatabase.md).[value](#optional-value)* -*Defined in [ethereum-types/src/index.ts:442](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L442)* +*Defined in [ethereum-types/src/index.ts:442](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L442)*
@@ -31467,7 +10478,7 @@ This interface allowed sending synchonous requests, support for which was later ▸ **send**(`payload`: [JSONRPCRequestPayload](_ethereum_types_src_index_.jsonrpcrequestpayload.md)): *[JSONRPCResponsePayload](#class-jsonrpcresponsepayload)* -*Defined in [ethereum-types/src/index.ts:45](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L45)* +*Defined in [ethereum-types/src/index.ts:45](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L45)* **Parameters:** @@ -31483,7 +10494,7 @@ ___ ▸ **sendAsync**(`payload`: [JSONRPCRequestPayload](_ethereum_types_src_index_.jsonrpcrequestpayload.md), `callback`: [JSONRPCErrorCallback](#jsonrpcerrorcallback)): *void* -*Defined in [ethereum-types/src/index.ts:44](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L44)* +*Defined in [ethereum-types/src/index.ts:44](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L44)* **Parameters:** @@ -31509,7 +10520,7 @@ before the first attempts to conform to EIP1193 ▸ **send**(`payload`: [JSONRPCRequestPayload](_ethereum_types_src_index_.jsonrpcrequestpayload.md), `callback`: [JSONRPCErrorCallback](#jsonrpcerrorcallback)): *void* -*Defined in [ethereum-types/src/index.ts:54](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L54)* +*Defined in [ethereum-types/src/index.ts:54](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L54)* **Parameters:** @@ -31535,7 +10546,7 @@ however it does not conform entirely. ▸ **send**(`method`: string, `params?`: any[]): *`Promise`* -*Defined in [ethereum-types/src/index.ts:63](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L63)* +*Defined in [ethereum-types/src/index.ts:63](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L63)* **Parameters:** @@ -31561,7 +10572,7 @@ add here • **isMetaMask**? : *undefined | false | true* -*Defined in [ethereum-types/src/index.ts:31](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L31)* +*Defined in [ethereum-types/src/index.ts:31](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L31)* ___ @@ -31569,7 +10580,7 @@ ___ • **isParity**? : *undefined | false | true* -*Defined in [ethereum-types/src/index.ts:32](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L32)* +*Defined in [ethereum-types/src/index.ts:32](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L32)* ___ @@ -31577,7 +10588,7 @@ ___ • **isZeroExProvider**? : *undefined | false | true* -*Defined in [ethereum-types/src/index.ts:30](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L30)* +*Defined in [ethereum-types/src/index.ts:30](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L30)* ## Methods @@ -31585,7 +10596,7 @@ ___ ▸ **enable**(): *`Promise`* -*Defined in [ethereum-types/src/index.ts:34](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L34)* +*Defined in [ethereum-types/src/index.ts:34](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L34)* **Returns:** *`Promise`* @@ -31595,7 +10606,7 @@ ___ ▸ **sendAsync**(`payload`: [JSONRPCRequestPayload](_ethereum_types_src_index_.jsonrpcrequestpayload.md), `callback`: [JSONRPCErrorCallback](#jsonrpcerrorcallback)): *void* -*Defined in [ethereum-types/src/index.ts:35](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L35)* +*Defined in [ethereum-types/src/index.ts:35](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L35)* **Parameters:** @@ -31612,7 +10623,7 @@ ___ ▸ **stop**(): *void* -*Defined in [ethereum-types/src/index.ts:33](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L33)* +*Defined in [ethereum-types/src/index.ts:33](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L33)* **Returns:** *void* @@ -31651,7 +10662,7 @@ ___ • **isRemoved**: *boolean* -*Defined in [types/src/index.ts:853](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/types/src/index.ts#L853)* +*Defined in [types/src/index.ts:844](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/types/src/index.ts#L844)* ___ @@ -31659,7 +10670,7 @@ ___ • **log**: *`LogWithDecodedArgs`* -*Defined in [types/src/index.ts:854](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/types/src/index.ts#L854)* +*Defined in [types/src/index.ts:845](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/types/src/index.ts#L845)*
@@ -31680,7 +10691,7 @@ ___ • **chainId**: *number* -*Defined in [types/src/index.ts:802](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/types/src/index.ts#L802)* +*Defined in [types/src/index.ts:793](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/types/src/index.ts#L793)* ___ @@ -31688,7 +10699,7 @@ ___ • **name**? : *undefined | string* -*Defined in [types/src/index.ts:800](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/types/src/index.ts#L800)* +*Defined in [types/src/index.ts:791](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/types/src/index.ts#L791)* ___ @@ -31696,7 +10707,7 @@ ___ • **verifyingContract**: *string* -*Defined in [types/src/index.ts:803](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/types/src/index.ts#L803)* +*Defined in [types/src/index.ts:794](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/types/src/index.ts#L794)* ___ @@ -31704,7 +10715,7 @@ ___ • **version**? : *undefined | string* -*Defined in [types/src/index.ts:801](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/types/src/index.ts#L801)* +*Defined in [types/src/index.ts:792](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/types/src/index.ts#L792)*
@@ -31746,7 +10757,7 @@ ___ • **keyName**: *string* -*Defined in [types/src/index.ts:679](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/types/src/index.ts#L679)* +*Defined in [types/src/index.ts:691](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/types/src/index.ts#L691)* ___ @@ -31754,7 +10765,7 @@ ___ • **keyType**: *[Type](#class-type)* -*Defined in [types/src/index.ts:680](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/types/src/index.ts#L680)* +*Defined in [types/src/index.ts:692](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/types/src/index.ts#L692)* ___ @@ -31762,7 +10773,7 @@ ___ • **valueName**: *string* -*Defined in [types/src/index.ts:681](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/types/src/index.ts#L681)* +*Defined in [types/src/index.ts:693](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/types/src/index.ts#L693)*
@@ -31807,6 +10818,8 @@ ___ + + @@ -31821,7 +10834,7 @@ ___ *Inherited from [Order](#interface-order).[chainId](#chainid)* -*Defined in [types/src/index.ts:14](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/types/src/index.ts#L14)* +*Defined in [types/src/index.ts:14](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/types/src/index.ts#L14)* ___ @@ -31831,7 +10844,7 @@ ___ *Inherited from [Order](#interface-order).[exchangeAddress](#exchangeaddress)* -*Defined in [types/src/index.ts:15](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/types/src/index.ts#L15)* +*Defined in [types/src/index.ts:15](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/types/src/index.ts#L15)* ___ @@ -31841,7 +10854,7 @@ ___ *Inherited from [Order](#interface-order).[expirationTimeSeconds](#expirationtimeseconds)* -*Defined in [types/src/index.ts:24](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/types/src/index.ts#L24)* +*Defined in [types/src/index.ts:24](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/types/src/index.ts#L24)* ___ @@ -31851,7 +10864,7 @@ ___ *Inherited from [Order](#interface-order).[feeRecipientAddress](#feerecipientaddress)* -*Defined in [types/src/index.ts:18](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/types/src/index.ts#L18)* +*Defined in [types/src/index.ts:18](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/types/src/index.ts#L18)* ___ @@ -31861,7 +10874,7 @@ ___ *Inherited from [Order](#interface-order).[makerAddress](#makeraddress)* -*Defined in [types/src/index.ts:16](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/types/src/index.ts#L16)* +*Defined in [types/src/index.ts:16](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/types/src/index.ts#L16)* ___ @@ -31871,7 +10884,7 @@ ___ *Inherited from [Order](#interface-order).[makerAssetAmount](#makerassetamount)* -*Defined in [types/src/index.ts:20](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/types/src/index.ts#L20)* +*Defined in [types/src/index.ts:20](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/types/src/index.ts#L20)* ___ @@ -31881,7 +10894,7 @@ ___ *Inherited from [Order](#interface-order).[makerAssetData](#makerassetdata)* -*Defined in [types/src/index.ts:26](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/types/src/index.ts#L26)* +*Defined in [types/src/index.ts:26](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/types/src/index.ts#L26)* ___ @@ -31891,7 +10904,7 @@ ___ *Inherited from [Order](#interface-order).[makerFee](#makerfee)* -*Defined in [types/src/index.ts:22](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/types/src/index.ts#L22)* +*Defined in [types/src/index.ts:22](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/types/src/index.ts#L22)* ___ @@ -31901,7 +10914,7 @@ ___ *Inherited from [Order](#interface-order).[makerFeeAssetData](#makerfeeassetdata)* -*Defined in [types/src/index.ts:28](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/types/src/index.ts#L28)* +*Defined in [types/src/index.ts:28](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/types/src/index.ts#L28)* ___ @@ -31911,7 +10924,7 @@ ___ *Inherited from [Order](#interface-order).[salt](#salt)* -*Defined in [types/src/index.ts:25](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/types/src/index.ts#L25)* +*Defined in [types/src/index.ts:25](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/types/src/index.ts#L25)* ___ @@ -31921,7 +10934,7 @@ ___ *Inherited from [Order](#interface-order).[senderAddress](#senderaddress)* -*Defined in [types/src/index.ts:19](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/types/src/index.ts#L19)* +*Defined in [types/src/index.ts:19](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/types/src/index.ts#L19)* ___ @@ -31929,7 +10942,7 @@ ___ • **signature**: *string* -*Defined in [types/src/index.ts:33](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/types/src/index.ts#L33)* +*Defined in [types/src/index.ts:33](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/types/src/index.ts#L33)* ___ @@ -31939,7 +10952,7 @@ ___ *Inherited from [Order](#interface-order).[takerAddress](#takeraddress)* -*Defined in [types/src/index.ts:17](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/types/src/index.ts#L17)* +*Defined in [types/src/index.ts:17](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/types/src/index.ts#L17)* ___ @@ -31949,7 +10962,7 @@ ___ *Inherited from [Order](#interface-order).[takerAssetAmount](#takerassetamount)* -*Defined in [types/src/index.ts:21](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/types/src/index.ts#L21)* +*Defined in [types/src/index.ts:21](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/types/src/index.ts#L21)* ___ @@ -31959,7 +10972,7 @@ ___ *Inherited from [Order](#interface-order).[takerAssetData](#takerassetdata)* -*Defined in [types/src/index.ts:27](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/types/src/index.ts#L27)* +*Defined in [types/src/index.ts:27](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/types/src/index.ts#L27)* ___ @@ -31969,7 +10982,7 @@ ___ *Inherited from [Order](#interface-order).[takerFee](#takerfee)* -*Defined in [types/src/index.ts:23](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/types/src/index.ts#L23)* +*Defined in [types/src/index.ts:23](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/types/src/index.ts#L23)* ___ @@ -31979,7 +10992,7 @@ ___ *Inherited from [Order](#interface-order).[takerFeeAssetData](#takerfeeassetdata)* -*Defined in [types/src/index.ts:29](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/types/src/index.ts#L29)* +*Defined in [types/src/index.ts:29](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/types/src/index.ts#L29)*
@@ -31994,7 +11007,7 @@ ___ *Inherited from [ZeroExTransaction](#interface-zeroextransaction).[data](#data)* -*Defined in [types/src/index.ts:49](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/types/src/index.ts#L49)* +*Defined in [types/src/index.ts:49](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/types/src/index.ts#L49)* ___ @@ -32004,7 +11017,7 @@ ___ *Inherited from [ZeroExTransaction](#interface-zeroextransaction).[domain](#domain)* -*Defined in [types/src/index.ts:50](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/types/src/index.ts#L50)* +*Defined in [types/src/index.ts:50](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/types/src/index.ts#L50)* ___ @@ -32014,7 +11027,7 @@ ___ *Inherited from [ZeroExTransaction](#interface-zeroextransaction).[expirationTimeSeconds](#expirationtimeseconds)* -*Defined in [types/src/index.ts:46](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/types/src/index.ts#L46)* +*Defined in [types/src/index.ts:46](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/types/src/index.ts#L46)* ___ @@ -32024,7 +11037,7 @@ ___ *Inherited from [ZeroExTransaction](#interface-zeroextransaction).[gasPrice](#gasprice)* -*Defined in [types/src/index.ts:47](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/types/src/index.ts#L47)* +*Defined in [types/src/index.ts:47](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/types/src/index.ts#L47)* ___ @@ -32034,7 +11047,7 @@ ___ *Inherited from [ZeroExTransaction](#interface-zeroextransaction).[salt](#salt)* -*Defined in [types/src/index.ts:45](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/types/src/index.ts#L45)* +*Defined in [types/src/index.ts:45](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/types/src/index.ts#L45)* ___ @@ -32042,7 +11055,7 @@ ___ • **signature**: *string* -*Defined in [types/src/index.ts:54](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/types/src/index.ts#L54)* +*Defined in [types/src/index.ts:54](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/types/src/index.ts#L54)* ___ @@ -32052,7 +11065,7 @@ ___ *Inherited from [ZeroExTransaction](#interface-zeroextransaction).[signerAddress](#signeraddress)* -*Defined in [types/src/index.ts:48](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/types/src/index.ts#L48)* +*Defined in [types/src/index.ts:48](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/types/src/index.ts#L48)*
@@ -32061,27 +11074,27 @@ ___ ## Properties -### compilerOutput +### chains -• **compilerOutput**: *[SimpleStandardContractOutput](#class-simplestandardcontractoutput)* +• **chains**: *`ContractChains`* -*Defined in [types/src/index.ts:748](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/types/src/index.ts#L748)* +*Defined in [types/src/index.ts:861](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/types/src/index.ts#L861)* ___ -### contractName +### compilerOutput -• **contractName**: *string* +• **compilerOutput**: *[SimpleStandardContractOutput](#class-simplestandardcontractoutput)* -*Defined in [types/src/index.ts:747](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/types/src/index.ts#L747)* +*Defined in [types/src/index.ts:860](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/types/src/index.ts#L860)* ___ -### networks +### contractName -• **networks**: *`ContractNetworks`* +• **contractName**: *string* -*Defined in [types/src/index.ts:749](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/types/src/index.ts#L749)* +*Defined in [types/src/index.ts:859](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/types/src/index.ts#L859)* ___ @@ -32089,7 +11102,7 @@ ___ • **schemaVersion**: *string* -*Defined in [types/src/index.ts:746](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/types/src/index.ts#L746)* +*Defined in [types/src/index.ts:858](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/types/src/index.ts#L858)*
@@ -32102,7 +11115,7 @@ ___ • **object**: *string* -*Defined in [types/src/index.ts:763](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/types/src/index.ts#L763)* +*Defined in [types/src/index.ts:875](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/types/src/index.ts#L875)*
@@ -32115,7 +11128,7 @@ ___ • **bytecode**: *[SimpleEvmBytecodeOutput](#class-simpleevmbytecodeoutput)* -*Defined in [types/src/index.ts:759](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/types/src/index.ts#L759)* +*Defined in [types/src/index.ts:871](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/types/src/index.ts#L871)*
@@ -32128,7 +11141,7 @@ ___ • **abi**: *[ContractAbi](#contractabi)* -*Defined in [types/src/index.ts:753](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/types/src/index.ts#L753)* +*Defined in [types/src/index.ts:865](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/types/src/index.ts#L865)* ___ @@ -32136,7 +11149,7 @@ ___ • **devdoc**? : *[DevdocOutput](#class-devdocoutput)* -*Defined in [types/src/index.ts:755](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/types/src/index.ts#L755)* +*Defined in [types/src/index.ts:867](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/types/src/index.ts#L867)* ___ @@ -32144,7 +11157,7 @@ ___ • **evm**: *[SimpleEvmOutput](#class-simpleevmoutput)* -*Defined in [types/src/index.ts:754](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/types/src/index.ts#L754)* +*Defined in [types/src/index.ts:866](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/types/src/index.ts#L866)*
@@ -32193,7 +11206,7 @@ ZeroExTransaction for use with 0x Exchange executeTransaction • **data**: *string* -*Defined in [types/src/index.ts:49](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/types/src/index.ts#L49)* +*Defined in [types/src/index.ts:49](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/types/src/index.ts#L49)* ___ @@ -32201,7 +11214,7 @@ ___ • **domain**: *[EIP712DomainWithDefaultSchema](#class-eip712domainwithdefaultschema)* -*Defined in [types/src/index.ts:50](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/types/src/index.ts#L50)* +*Defined in [types/src/index.ts:50](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/types/src/index.ts#L50)* ___ @@ -32209,7 +11222,7 @@ ___ • **expirationTimeSeconds**: *`BigNumber`* -*Defined in [types/src/index.ts:46](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/types/src/index.ts#L46)* +*Defined in [types/src/index.ts:46](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/types/src/index.ts#L46)* ___ @@ -32217,7 +11230,7 @@ ___ • **gasPrice**: *`BigNumber`* -*Defined in [types/src/index.ts:47](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/types/src/index.ts#L47)* +*Defined in [types/src/index.ts:47](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/types/src/index.ts#L47)* ___ @@ -32225,7 +11238,7 @@ ___ • **salt**: *`BigNumber`* -*Defined in [types/src/index.ts:45](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/types/src/index.ts#L45)* +*Defined in [types/src/index.ts:45](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/types/src/index.ts#L45)* ___ @@ -32233,56 +11246,53 @@ ___ • **signerAddress**: *string* -*Defined in [types/src/index.ts:48](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/types/src/index.ts#L48)* +*Defined in [types/src/index.ts:48](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/types/src/index.ts#L48)*
-
+## Type aliases -## Type aliases -### CoordinatorRegistryEventArgs -Ƭ **CoordinatorRegistryEventArgs**: *[CoordinatorRegistryCoordinatorEndpointSetEventArgs](#interface-coordinatorregistrycoordinatorendpointseteventargs)* -*Defined in [abi-gen-wrappers/src/generated-wrappers/coordinator_registry.ts:28](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/coordinator_registry.ts#L28)* -
-
+### EventCallback +Ƭ **EventCallback**: *function* +*Defined in [types/src/index.ts:848](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/types/src/index.ts#L848)* -## Type aliases +#### Type declaration: -### DummyERC20TokenEventArgs +▸ (`err`: null | `Error`, `log?`: [DecodedLogEvent](#interface-decodedlogevent)‹*`ArgsType`*›): *void* -Ƭ **DummyERC20TokenEventArgs**: *[DummyERC20TokenApprovalEventArgs](#interface-dummyerc20tokenapprovaleventargs) | [DummyERC20TokenTransferEventArgs](#interface-dummyerc20tokentransfereventargs)* +**Parameters:** + +Name | Type | +------ | ------ | +`err` | null \| `Error` | +`log?` | [DecodedLogEvent](#interface-decodedlogevent)‹*`ArgsType`*› | + +___ -*Defined in [abi-gen-wrappers/src/generated-wrappers/dummy_erc20_token.ts:28](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dummy_erc20_token.ts#L28)* -
-## Type aliases -### DummyERC721TokenEventArgs -Ƭ **DummyERC721TokenEventArgs**: *[DummyERC721TokenApprovalEventArgs](#interface-dummyerc721tokenapprovaleventargs) | [DummyERC721TokenApprovalForAllEventArgs](#interface-dummyerc721tokenapprovalforalleventargs) | [DummyERC721TokenTransferEventArgs](#interface-dummyerc721tokentransfereventargs)* -*Defined in [abi-gen-wrappers/src/generated-wrappers/dummy_erc721_token.ts:28](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/dummy_erc721_token.ts#L28)* -
@@ -32293,24 +11303,28 @@ ___ ## Type aliases -### ERC1155ProxyEventArgs +### CoordinatorRegistryEventArgs -Ƭ **ERC1155ProxyEventArgs**: *[ERC1155ProxyAuthorizedAddressAddedEventArgs](#interface-erc1155proxyauthorizedaddressaddedeventargs) | [ERC1155ProxyAuthorizedAddressRemovedEventArgs](#interface-erc1155proxyauthorizedaddressremovedeventargs)* +Ƭ **CoordinatorRegistryEventArgs**: *[CoordinatorRegistryCoordinatorEndpointSetEventArgs](#interface-coordinatorregistrycoordinatorendpointseteventargs)* -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc1155_proxy.ts:28](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc1155_proxy.ts#L28)* +*Defined in [abi-gen-wrappers/src/generated-wrappers/coordinator_registry.ts:37](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/coordinator_registry.ts#L37)*
+
+ + + ## Type aliases -### ERC20ProxyEventArgs +### DummyERC20TokenEventArgs -Ƭ **ERC20ProxyEventArgs**: *[ERC20ProxyAuthorizedAddressAddedEventArgs](#interface-erc20proxyauthorizedaddressaddedeventargs) | [ERC20ProxyAuthorizedAddressRemovedEventArgs](#interface-erc20proxyauthorizedaddressremovedeventargs)* +Ƭ **DummyERC20TokenEventArgs**: *[DummyERC20TokenApprovalEventArgs](#interface-dummyerc20tokenapprovaleventargs) | [DummyERC20TokenTransferEventArgs](#interface-dummyerc20tokentransfereventargs)* -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc20_proxy.ts:28](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc20_proxy.ts#L28)* +*Defined in [abi-gen-wrappers/src/generated-wrappers/dummy_erc20_token.ts:37](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/dummy_erc20_token.ts#L37)*
@@ -32319,11 +11333,11 @@ ___ ## Type aliases -### ERC20TokenEventArgs +### DummyERC721TokenEventArgs -Ƭ **ERC20TokenEventArgs**: *[ERC20TokenTransferEventArgs](#interface-erc20tokentransfereventargs) | [ERC20TokenApprovalEventArgs](#interface-erc20tokenapprovaleventargs)* +Ƭ **DummyERC721TokenEventArgs**: *[DummyERC721TokenApprovalEventArgs](#interface-dummyerc721tokenapprovaleventargs) | [DummyERC721TokenApprovalForAllEventArgs](#interface-dummyerc721tokenapprovalforalleventargs) | [DummyERC721TokenTransferEventArgs](#interface-dummyerc721tokentransfereventargs)* -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc20_token.ts:28](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc20_token.ts#L28)* +*Defined in [abi-gen-wrappers/src/generated-wrappers/dummy_erc721_token.ts:37](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/dummy_erc721_token.ts#L37)*
@@ -32332,11 +11346,11 @@ ___ ## Type aliases -### ERC721ProxyEventArgs +### ERC20TokenEventArgs -Ƭ **ERC721ProxyEventArgs**: *[ERC721ProxyAuthorizedAddressAddedEventArgs](#interface-erc721proxyauthorizedaddressaddedeventargs) | [ERC721ProxyAuthorizedAddressRemovedEventArgs](#interface-erc721proxyauthorizedaddressremovedeventargs)* +Ƭ **ERC20TokenEventArgs**: *[ERC20TokenTransferEventArgs](#interface-erc20tokentransfereventargs) | [ERC20TokenApprovalEventArgs](#interface-erc20tokenapprovaleventargs)* -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc721_proxy.ts:28](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc721_proxy.ts#L28)* +*Defined in [abi-gen-wrappers/src/generated-wrappers/erc20_token.ts:37](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/erc20_token.ts#L37)*
@@ -32349,7 +11363,7 @@ ___ Ƭ **ERC721TokenEventArgs**: *[ERC721TokenApprovalEventArgs](#interface-erc721tokenapprovaleventargs) | [ERC721TokenApprovalForAllEventArgs](#interface-erc721tokenapprovalforalleventargs) | [ERC721TokenTransferEventArgs](#interface-erc721tokentransfereventargs)* -*Defined in [abi-gen-wrappers/src/generated-wrappers/erc721_token.ts:28](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/erc721_token.ts#L28)* +*Defined in [abi-gen-wrappers/src/generated-wrappers/erc721_token.ts:37](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/erc721_token.ts#L37)*
@@ -32362,7 +11376,7 @@ ___ Ƭ **ExchangeEventArgs**: *[ExchangeAssetProxyRegisteredEventArgs](#interface-exchangeassetproxyregisteredeventargs) | [ExchangeCancelEventArgs](#interface-exchangecanceleventargs) | [ExchangeCancelUpToEventArgs](#interface-exchangecanceluptoeventargs) | [ExchangeFillEventArgs](#interface-exchangefilleventargs) | [ExchangeProtocolFeeCollectorAddressEventArgs](#interface-exchangeprotocolfeecollectoraddresseventargs) | [ExchangeProtocolFeeMultiplierEventArgs](#interface-exchangeprotocolfeemultipliereventargs) | [ExchangeSignatureValidatorApprovalEventArgs](#interface-exchangesignaturevalidatorapprovaleventargs) | [ExchangeTransactionExecutionEventArgs](#interface-exchangetransactionexecutioneventargs)* -*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:28](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L28)* +*Defined in [abi-gen-wrappers/src/generated-wrappers/exchange.ts:37](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/exchange.ts#L37)*
@@ -32391,7 +11405,7 @@ ___ Ƭ **WETH9EventArgs**: *[WETH9ApprovalEventArgs](#interface-weth9approvaleventargs) | [WETH9TransferEventArgs](#interface-weth9transfereventargs) | [WETH9DepositEventArgs](#interface-weth9depositeventargs) | [WETH9WithdrawalEventArgs](#interface-weth9withdrawaleventargs)* -*Defined in [abi-gen-wrappers/src/generated-wrappers/weth9.ts:28](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/weth9.ts#L28)* +*Defined in [abi-gen-wrappers/src/generated-wrappers/weth9.ts:37](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/abi-gen-wrappers/src/generated-wrappers/weth9.ts#L37)*
@@ -32400,39 +11414,33 @@ ___ ## Type aliases -### ZRXTokenEventArgs - -Ƭ **ZRXTokenEventArgs**: *[ZRXTokenTransferEventArgs](#interface-zrxtokentransfereventargs) | [ZRXTokenApprovalEventArgs](#interface-zrxtokenapprovaleventargs)* - -*Defined in [abi-gen-wrappers/src/generated-wrappers/zrx_token.ts:28](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/abi-gen-wrappers/src/generated-wrappers/zrx_token.ts#L28)* -
## Functions -### getContractAddressesForNetworkOrThrow +### getContractAddressesForChainOrThrow -▸ **getContractAddressesForNetworkOrThrow**(`networkId`: [NetworkId](#enumeration-networkid)): *[ContractAddresses](#interface-contractaddresses)* +▸ **getContractAddressesForChainOrThrow**(`chainId`: [ChainId](#enumeration-chainid)): *[ContractAddresses](#interface-contractaddresses)* -*Defined in [contract-addresses/src/index.ts:128](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/contract-addresses/src/index.ts#L128)* +*Defined in [contract-addresses/src/index.ts:45](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/contract-addresses/src/index.ts#L45)* Used to get addresses of contracts that have been deployed to either the Ethereum mainnet or a supported testnet. Throws if there are no known -contracts deployed on the corresponding network. +contracts deployed on the corresponding chain. **Parameters:** Name | Type | Description | ------ | ------ | ------ | -`networkId` | [NetworkId](#enumeration-networkid) | The desired networkId. | +`chainId` | [ChainId](#enumeration-chainid) | The desired chainId. | **Returns:** *[ContractAddresses](#interface-contractaddresses)* The set of addresses for contracts which have been deployed on the -given networkId. +given chainId.
@@ -32457,7 +11465,7 @@ given networkId. Ƭ **AbiDefinition**: *[FunctionAbi](_ethereum_types_src_index_.md#functionabi) | [EventAbi](#interface-eventabi) | [RevertErrorAbi](#interface-reverterrorabi)* -*Defined in [ethereum-types/src/index.ts:80](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L80)* +*Defined in [ethereum-types/src/index.ts:80](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L80)* ___ @@ -32465,7 +11473,7 @@ ___ Ƭ **BlockParam**: *[BlockParamLiteral](#enumeration-blockparamliteral) | number* -*Defined in [ethereum-types/src/index.ts:483](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L483)* +*Defined in [ethereum-types/src/index.ts:483](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L483)* ___ @@ -32473,7 +11481,7 @@ ___ Ƭ **ConstructorStateMutability**: *"nonpayable" | "payable"* -*Defined in [ethereum-types/src/index.ts:84](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L84)* +*Defined in [ethereum-types/src/index.ts:84](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L84)* ___ @@ -32481,7 +11489,7 @@ ___ Ƭ **ContractAbi**: *[AbiDefinition](#abidefinition)[]* -*Defined in [ethereum-types/src/index.ts:78](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L78)* +*Defined in [ethereum-types/src/index.ts:78](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L78)* ___ @@ -32489,7 +11497,7 @@ ___ Ƭ **ContractEventArg**: *any* -*Defined in [ethereum-types/src/index.ts:468](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L468)* +*Defined in [ethereum-types/src/index.ts:468](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L468)* ___ @@ -32499,7 +11507,7 @@ ___ Ƭ **EIP1193Event**: *"accountsChanged" | "networkChanged" | "close" | "connect" | "notification"* -*Defined in [ethereum-types/src/index.ts:70](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L70)* +*Defined in [ethereum-types/src/index.ts:70](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L70)* Interface for providers that conform to EIP 1193 Source: https://github.com/ethereum/EIPs/blob/master/EIPS/eip-1193.md @@ -32514,7 +11522,7 @@ ___ Ƭ **FunctionAbi**: *[MethodAbi](#interface-methodabi) | [ConstructorAbi](#interface-constructorabi) | [FallbackAbi](#interface-fallbackabi)* -*Defined in [ethereum-types/src/index.ts:82](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L82)* +*Defined in [ethereum-types/src/index.ts:82](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L82)* ___ @@ -32522,7 +11530,7 @@ ___ Ƭ **JSONRPCErrorCallback**: *function* -*Defined in [ethereum-types/src/index.ts:3](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L3)* +*Defined in [ethereum-types/src/index.ts:3](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L3)* #### Type declaration: @@ -32543,7 +11551,7 @@ ___ Ƭ **OutputField**: *"*" | "ast" | "legacyAST" | "abi" | "devdoc" | "userdoc" | "metadata" | "ir" | "evm.assembly" | "evm.legacyAssembly" | "evm.bytecode.object" | "evm.bytecode.opcodes" | "evm.bytecode.sourceMap" | "evm.bytecode.linkReferences" | "evm.deployedBytecode.object" | "evm.deployedBytecode.opcodes" | "evm.deployedBytecode.sourceMap" | "evm.deployedBytecode.linkReferences" | "evm.methodIdentifiers" | "evm.gasEstimates" | "ewasm.wast" | "ewasm.wasm"* -*Defined in [ethereum-types/src/index.ts:525](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L525)* +*Defined in [ethereum-types/src/index.ts:525](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L525)* ___ @@ -32551,7 +11559,7 @@ ___ Ƭ **ParamDescription**: *string* -*Defined in [ethereum-types/src/index.ts:561](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L561)* +*Defined in [ethereum-types/src/index.ts:561](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L561)* ___ @@ -32559,7 +11567,7 @@ ___ Ƭ **RawLog**: *[LogEntry](#interface-logentry)* -*Defined in [ethereum-types/src/index.ts:475](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L475)* +*Defined in [ethereum-types/src/index.ts:475](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L475)* ___ @@ -32567,7 +11575,7 @@ ___ Ƭ **StateMutability**: *"pure" | "view" | [ConstructorStateMutability](#constructorstatemutability)* -*Defined in [ethereum-types/src/index.ts:85](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L85)* +*Defined in [ethereum-types/src/index.ts:85](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L85)* ___ @@ -32575,7 +11583,7 @@ ___ Ƭ **SupportedProvider**: *[Web3JsProvider](_ethereum_types_src_index_.md#web3jsprovider) | [GanacheProvider](#interface-ganacheprovider) | [EIP1193Provider](#interface-eip1193provider) | [ZeroExProvider](#interface-zeroexprovider)* -*Defined in [ethereum-types/src/index.ts:9](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L9)* +*Defined in [ethereum-types/src/index.ts:9](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L9)* Do not create your own provider. Use an existing provider from a Web3 or ProviderEngine library Read more about Providers in the guides section of the 0x docs. @@ -32590,55 +11598,7 @@ ___ Ƭ **Web3JsProvider**: *[Web3JsV1Provider](#interface-web3jsv1provider) | [Web3JsV2Provider](#interface-web3jsv2provider) | [Web3JsV3Provider](#interface-web3jsv3provider)* -*Defined in [ethereum-types/src/index.ts:11](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L11)* +*Defined in [ethereum-types/src/index.ts:11](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L11)*
- - - -## Type aliases - - - - - - - - - - - -### EventCallback - -Ƭ **EventCallback**: *function* - -*Defined in [types/src/index.ts:857](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/types/src/index.ts#L857)* - -#### Type declaration: - -▸ (`err`: null | `Error`, `log?`: [DecodedLogEvent](#interface-decodedlogevent)‹*`ArgsType`*›): *void* - -**Parameters:** - -Name | Type | ------- | ------ | -`err` | null \| `Error` | -`log?` | [DecodedLogEvent](#interface-decodedlogevent)‹*`ArgsType`*› | - -___ - - - - - - - - - - - - - -
- diff --git a/packages/contract-wrappers/package.json b/packages/contract-wrappers/package.json index 1c03eb7ea1..046326f46d 100644 --- a/packages/contract-wrappers/package.json +++ b/packages/contract-wrappers/package.json @@ -1,6 +1,6 @@ { "name": "@0x/contract-wrappers", - "version": "12.2.0-beta.0", + "version": "12.2.0-beta.1", "engines": { "node": ">=6.12" }, @@ -34,9 +34,6 @@ "docs:md": "ts-doc-gen --sourceDir='$PROJECT_FILES' --output=$MD_FILE_DIR --fileExtension=mdx --tsconfig=./typedoc-tsconfig.json", "docs:json": "typedoc --excludePrivate --excludeExternals --excludeProtected --ignoreCompilerErrors --target ES5 --tsconfig typedoc-tsconfig.json --json $JSON_FILE_PATH $PROJECT_FILES" }, - "config": { - "abis": "../contract-artifacts/artifacts/@(AssetProxyOwner|DevUtils|DutchAuction|DummyERC20Token|DummyERC721Token|ERC20Proxy|ERC20Token|ERC721Proxy|ERC721Token|Exchange|Forwarder|IAssetProxy|IValidator|IWallet|MultiAssetProxy|OrderValidator|WETH9|ZRXToken|Coordinator|CoordinatorRegistry|EthBalanceChecker).json" - }, "repository": { "type": "git", "url": "https://github.com/0xProject/0x-monorepo.git" @@ -47,24 +44,24 @@ }, "homepage": "https://github.com/0xProject/0x-monorepo/packages/contract-wrappers/README.md", "devDependencies": { - "@0x/assert": "^2.2.0-beta.0", - "@0x/contracts-test-utils": "^3.2.0-beta.0", + "@0x/assert": "^2.2.0-beta.1", + "@0x/contracts-test-utils": "^3.2.0-beta.1", "@0x/coordinator-server": "^0.1.3", - "@0x/dev-utils": "^2.4.0-beta.0", - "@0x/json-schemas": "^4.1.0-beta.0", - "@0x/migrations": "^4.4.0-beta.0", - "@0x/subproviders": "^5.1.0-beta.0", + "@0x/dev-utils": "^2.4.0-beta.1", + "@0x/json-schemas": "^4.1.0-beta.1", + "@0x/migrations": "^4.4.0-beta.1", + "@0x/subproviders": "^5.1.0-beta.1", "@0x/ts-doc-gen": "^0.0.22", - "@0x/tslint-config": "^3.0.1", - "@0x/types": "^2.5.0-beta.0", - "@0x/utils": "^4.6.0-beta.0", - "@0x/web3-wrapper": "^6.1.0-beta.0", + "@0x/tslint-config": "^3.1.0-beta.1", + "@0x/types": "^2.5.0-beta.1", + "@0x/utils": "^4.6.0-beta.1", + "@0x/web3-wrapper": "^6.1.0-beta.1", "@types/nock": "^10.0.3", "chai": "^4.0.1", "chai-as-promised": "^7.1.0", "chai-bignumber": "^3.0.0", "dirty-chai": "^2.0.1", - "ethereum-types": "^2.2.0-beta.0", + "ethereum-types": "^2.2.0-beta.1", "lodash": "^4.17.11", "mocha": "^6.2.0", "nock": "^10.0.6", @@ -74,11 +71,11 @@ "typescript": "3.0.1" }, "dependencies": { - "@0x/abi-gen-wrappers": "^5.4.0-beta.0", - "@0x/base-contract": "^5.5.0-beta.0", - "@0x/contract-addresses": "^3.3.0-beta.0", - "@0x/contract-artifacts": "^2.3.0-beta.0", - "@0x/order-utils": "^8.5.0-beta.0", + "@0x/abi-gen-wrappers": "^5.4.0-beta.1", + "@0x/base-contract": "^5.5.0-beta.1", + "@0x/contract-addresses": "^3.3.0-beta.2", + "@0x/contract-artifacts": "^2.3.0-beta.2", + "@0x/order-utils": "^8.5.0-beta.1", "ethers": "~4.0.4", "http-status-codes": "^1.3.2" }, diff --git a/packages/contract-wrappers/src/contract_wrappers.ts b/packages/contract-wrappers/src/contract_wrappers.ts index 93b40fe761..d1ab2d18a8 100644 --- a/packages/contract-wrappers/src/contract_wrappers.ts +++ b/packages/contract-wrappers/src/contract_wrappers.ts @@ -1,8 +1,5 @@ import { DevUtilsContract, - DutchAuctionContract, - ERC20ProxyContract, - ERC721ProxyContract, ExchangeContract, ForwarderContract, OrderValidatorContract, @@ -13,9 +10,7 @@ import { Coordinator, DevUtils, DutchAuction, - ERC20Proxy, ERC20Token, - ERC721Proxy, ERC721Token, Exchange, Forwarder, @@ -45,16 +40,6 @@ export class ContractWrappers { * An instance of the ExchangeContract class containing methods for interacting with the 0x Exchange smart contract. */ public exchange: ExchangeContract; - /** - * An instance of the ERC20ProxyContract class containing methods for interacting with the - * erc20Proxy smart contract. - */ - public erc20Proxy: ERC20ProxyContract; - /** - * An instance of the ERC721ProxyContract class containing methods for interacting with the - * erc721Proxy smart contract. - */ - public erc721Proxy: ERC721ProxyContract; /** * An instance of the WETH9Contract class containing methods for interacting with the * WETH9 smart contract. @@ -64,14 +49,11 @@ export class ContractWrappers { * An instance of the ForwarderContract class containing methods for interacting with any Forwarder smart contract. */ public forwarder: ForwarderContract; + // TODO(fabio): Remove orderValidator after @0x/asset-buyer is deleted /** * An instance of the OrderValidatorContract class containing methods for interacting with any OrderValidator smart contract. */ public orderValidator: OrderValidatorContract; - /** - * An instance of the DutchAuctionContract class containing methods for interacting with any DutchAuction smart contract. - */ - public dutchAuction: DutchAuctionContract; /** * An instance of the DevUtilsContract class containing methods for interacting with the DevUtils smart contract. */ @@ -99,9 +81,7 @@ export class ContractWrappers { Coordinator, DevUtils, DutchAuction, - ERC20Proxy, ERC20Token, - ERC721Proxy, ERC721Token, Exchange, Forwarder, @@ -115,13 +95,10 @@ export class ContractWrappers { config.contractAddresses === undefined ? _getDefaultContractAddresses(config.chainId) : config.contractAddresses; - this.erc20Proxy = new ERC20ProxyContract(contractAddresses.erc20Proxy, this.getProvider()); - this.erc721Proxy = new ERC721ProxyContract(contractAddresses.erc721Proxy, this.getProvider()); this.weth9 = new WETH9Contract(contractAddresses.etherToken, this.getProvider()); this.exchange = new ExchangeContract(contractAddresses.exchange, this.getProvider()); this.forwarder = new ForwarderContract(contractAddresses.forwarder, this.getProvider()); this.orderValidator = new OrderValidatorContract(contractAddresses.orderValidator, this.getProvider()); - this.dutchAuction = new DutchAuctionContract(contractAddresses.dutchAuction, this.getProvider()); this.devUtils = new DevUtilsContract(contractAddresses.devUtils, this.getProvider()); this.coordinator = new CoordinatorWrapper( this.getProvider(), @@ -137,8 +114,6 @@ export class ContractWrappers { */ public unsubscribeAll(): void { this.exchange.unsubscribeAll(); - this.erc20Proxy.unsubscribeAll(); - this.erc721Proxy.unsubscribeAll(); this.weth9.unsubscribeAll(); } /** diff --git a/packages/contract-wrappers/src/index.ts b/packages/contract-wrappers/src/index.ts index f02e1a31a2..48a6c6c80d 100644 --- a/packages/contract-wrappers/src/index.ts +++ b/packages/contract-wrappers/src/index.ts @@ -14,7 +14,6 @@ export { ExchangeContract, DevUtilsContract, ForwarderContract, - DutchAuctionContract, CoordinatorContract, CoordinatorRegistryEventArgs, CoordinatorRegistryEvents, @@ -40,16 +39,6 @@ export { ERC721TokenApprovalEventArgs, ERC721TokenApprovalForAllEventArgs, ERC721TokenContract, - ERC1155ProxyEventArgs, - ERC1155ProxyEvents, - ERC1155ProxyAuthorizedAddressAddedEventArgs, - ERC1155ProxyAuthorizedAddressRemovedEventArgs, - ERC1155ProxyContract, - ZRXTokenEventArgs, - ZRXTokenEvents, - ZRXTokenTransferEventArgs, - ZRXTokenApprovalEventArgs, - ZRXTokenContract, DummyERC20TokenEventArgs, DummyERC20TokenEvents, DummyERC20TokenTransferEventArgs, @@ -61,16 +50,6 @@ export { DummyERC721TokenApprovalEventArgs, DummyERC721TokenApprovalForAllEventArgs, DummyERC721TokenContract, - ERC20ProxyEventArgs, - ERC20ProxyEvents, - ERC20ProxyContract, - ERC20ProxyAuthorizedAddressAddedEventArgs, - ERC20ProxyAuthorizedAddressRemovedEventArgs, - ERC721ProxyEventArgs, - ERC721ProxyEvents, - ERC721ProxyAuthorizedAddressAddedEventArgs, - ERC721ProxyAuthorizedAddressRemovedEventArgs, - ERC721ProxyContract, OrderValidatorContract, ExchangeProtocolFeeCollectorAddressEventArgs, ExchangeProtocolFeeMultiplierEventArgs, @@ -161,4 +140,9 @@ export { } from '@0x/types'; export { AbiDecoder, DecodedCalldata } from '@0x/utils'; -export { AwaitTransactionSuccessOpts, SendTransactionOpts, ContractFunctionObj, ContractTxFunctionObj } from '@0x/base-contract'; +export { + AwaitTransactionSuccessOpts, + SendTransactionOpts, + ContractFunctionObj, + ContractTxFunctionObj, +} from '@0x/base-contract'; diff --git a/packages/contracts-gen/CHANGELOG.json b/packages/contracts-gen/CHANGELOG.json index cbaad0fafc..ba3cdfbe72 100644 --- a/packages/contracts-gen/CHANGELOG.json +++ b/packages/contracts-gen/CHANGELOG.json @@ -1,4 +1,13 @@ [ + { + "version": "1.1.0-beta.1", + "changes": [ + { + "note": "Dependencies updated" + } + ], + "timestamp": 1573159180 + }, { "version": "1.1.0-beta.0", "changes": [ diff --git a/packages/contracts-gen/CHANGELOG.md b/packages/contracts-gen/CHANGELOG.md index 874b994727..29cc8ae18f 100644 --- a/packages/contracts-gen/CHANGELOG.md +++ b/packages/contracts-gen/CHANGELOG.md @@ -5,6 +5,10 @@ Edit the package's CHANGELOG.json file only. CHANGELOG +## v1.1.0-beta.1 - _November 7, 2019_ + + * Dependencies updated + ## v1.1.0-beta.0 - _October 3, 2019_ * Generate boilerplate for all contracts if none are specified or if all contracts identifier is used (#2055) diff --git a/packages/contracts-gen/package.json b/packages/contracts-gen/package.json index 2142a8b1a6..68a5e927fe 100644 --- a/packages/contracts-gen/package.json +++ b/packages/contracts-gen/package.json @@ -1,6 +1,6 @@ { "name": "@0x/contracts-gen", - "version": "1.1.0-beta.0", + "version": "1.1.0-beta.1", "engines": { "node": ">=6.12" }, @@ -27,23 +27,25 @@ }, "homepage": "https://github.com/0xProject/0x-monorepo/packages/contracts-gen/README.md", "dependencies": { - "@0x/sol-compiler": "^3.2.0-beta.0", - "@0x/sol-resolver": "^2.1.0-beta.0", - "@0x/types": "^2.5.0-beta.0", - "@0x/typescript-typings": "^4.4.0-beta.0", - "@0x/utils": "^4.6.0-beta.0", - "ethereum-types": "^2.2.0-beta.0", + "@0x/sol-compiler": "^3.2.0-beta.1", + "@0x/sol-resolver": "^2.1.0-beta.1", + "@0x/types": "^2.5.0-beta.1", + "@0x/typescript-typings": "^4.4.0-beta.1", + "@0x/utils": "^4.6.0-beta.1", + "ethereum-types": "^2.2.0-beta.1", "lodash": "^4.17.11", "prettier": "^1.16.3", - "to-snake-case": "^1.0.0" + "to-snake-case": "^1.0.0", + "mkdirp": "^0.5.1" }, "devDependencies": { - "@0x/tslint-config": "^3.0.1", + "@0x/tslint-config": "^3.1.0-beta.1", "@types/node": "*", "@types/prettier": "^1.15.2", "shx": "^0.2.2", "tslint": "5.11.0", - "typescript": "3.0.1" + "typescript": "3.0.1", + "@types/mkdirp": "^0.5.2" }, "publishConfig": { "access": "public" diff --git a/packages/contracts-gen/src/contracts-gen.ts b/packages/contracts-gen/src/contracts-gen.ts index c5fb4be505..3b73662dfc 100644 --- a/packages/contracts-gen/src/contracts-gen.ts +++ b/packages/contracts-gen/src/contracts-gen.ts @@ -7,14 +7,19 @@ import { logUtils } from '@0x/utils'; import { CompilerOptions } from 'ethereum-types'; import * as fs from 'fs'; import * as _ from 'lodash'; +import * as mkdirp from 'mkdirp'; import * as path from 'path'; import * as prettier from 'prettier'; import toSnakeCase = require('to-snake-case'); const SOLIDITY_EXTENSION = '.sol'; -const DEFAULT_ARTIFACTS_DIR = 'artifacts'; +const DEFAULT_ARTIFACTS_DIR = 'test/artifacts'; const DEFAULT_CONTRACTS_DIR = 'contracts'; -const DEFAULT_WRAPPERS_DIR = 'generated-wrappers'; +const DEFAULT_WRAPPERS_DIR = 'test/generated-wrappers'; +const SRC_ARTIFACTS_TS_FILE_PATH = 'src/artifacts.ts'; +const TEST_ARTIFACTS_TS_FILE_PATH = 'test/artifacts.ts'; +const SRC_WRAPPERS_TS_FILE_PATH = 'src/wrappers.ts'; +const TEST_WRAPPERS_TS_FILE_PATH = 'test/wrappers.ts'; const AUTO_GENERATED_BANNER = `/* * ----------------------------------------------------------------------------- * Warning: This file is auto-generated by contracts-gen. Don't edit manually. @@ -22,30 +27,126 @@ const AUTO_GENERATED_BANNER = `/* */`; const AUTO_GENERATED_BANNER_FOR_LISTS = `This list is auto-generated by contracts-gen. Don't edit manually.`; const ALL_CONTRACTS_IDENTIFIER = '*'; +const GENERATE = 'generate'; +const COPY = 'copy'; (async () => { - const packageDir = process.cwd(); + const command = process.argv.pop(); + if (command !== GENERATE && command !== COPY) { + throw new Error(`Unknown command found: ${command}`); + } + const compilerJSON = readJSONFile('compiler.json'); const compiler = new Compiler(compilerJSON); - const contracts = compiler.getContractNamesToCompile(); - const contractsDir = compilerJSON.contractsDir || DEFAULT_CONTRACTS_DIR; - const artifactsDir = compilerJSON.artifactsDir || DEFAULT_ARTIFACTS_DIR; - const wrappersDir = DEFAULT_WRAPPERS_DIR; - if (!_.isArray(contracts)) { + const testContracts = compiler.getContractNamesToCompile(); + if (!_.isArray(testContracts)) { throw new Error('Unable to run the generator bacause contracts key in compiler.json is not of type array'); } - const prettierConfig = await prettier.resolveConfig(packageDir); - generateCompilerJSONContractsList(contracts, contractsDir, prettierConfig); - generateArtifactsTs(contracts, artifactsDir, prettierConfig); - generateWrappersTs(contracts, wrappersDir, prettierConfig); - generateTsConfigJSONFilesList(contracts, artifactsDir, prettierConfig); - generatePackageJSONABIConfig(contracts, artifactsDir, prettierConfig); + let srcContracts = testContracts; + const packageJSON = readJSONFile('package.json'); + if (packageJSON.config !== undefined && (packageJSON.config as any).publicInterfaceContracts !== undefined) { + srcContracts = (packageJSON.config as any).publicInterfaceContracts.split(','); + } + if (!_.isArray(testContracts)) { + throw new Error('Unable to run the generator bacause contracts key in compiler.json is not of type array'); + } + const testArtifactsDir = compilerJSON.artifactsDir || DEFAULT_ARTIFACTS_DIR; + const srcArtifactsDir = convertToTopLevelDir('testArtifactsDir', testArtifactsDir); + const testWrappersDir = DEFAULT_WRAPPERS_DIR; + const srcWrappersDir = convertToTopLevelDir('testWrappersDir', testWrappersDir); + + // Make sure all dirs exist, if not, create them + mkdirp.sync(testArtifactsDir); + mkdirp.sync(srcArtifactsDir); + mkdirp.sync(testWrappersDir); + mkdirp.sync(srcWrappersDir); + + if (command === GENERATE) { + await regenerateContractPackageAsync( + testContracts, + srcContracts, + testArtifactsDir, + srcArtifactsDir, + testWrappersDir, + srcWrappersDir, + ); + } else if (command === COPY) { + copyOverTestArtifactsAndWrappersToSrc( + srcContracts, + testArtifactsDir, + srcArtifactsDir, + testWrappersDir, + srcWrappersDir, + ); + } process.exit(0); })().catch(err => { logUtils.log(err); process.exit(1); }); +function copyOverTestArtifactsAndWrappersToSrc( + srcContracts: string[], + testArtifactsDir: string, + srcArtifactsDir: string, + testWrappersDir: string, + srcWrappersDir: string, +): void { + // Copy over artifacts + srcContracts.forEach(contract => { + const srcPath = `${srcArtifactsDir}/${contract}.json`; + mkdirp.sync(srcArtifactsDir); + fs.copyFileSync(`${testArtifactsDir}/${contract}.json`, srcPath); + }); + + // Copy over wrappers + srcContracts.forEach(contract => { + const wrapperFileName = makeOutputFileName(contract); + const srcPath = `${srcWrappersDir}/${wrapperFileName}.ts`; + mkdirp.sync(srcWrappersDir); + fs.copyFileSync(`${testWrappersDir}/${wrapperFileName}.ts`, srcPath); + }); +} + +async function regenerateContractPackageAsync( + testContracts: string[], + srcContracts: string[], + testArtifactsDir: string, + srcArtifactsDir: string, + testWrappersDir: string, + srcWrappersDir: string, +): Promise { + const compilerJSON = readJSONFile('compiler.json'); + + const packageDir = process.cwd(); + const testContractsDir = compilerJSON.contractsDir || DEFAULT_CONTRACTS_DIR; + const prettierConfig = await prettier.resolveConfig(packageDir); + generateCompilerJSONContractsList(testContracts, testContractsDir, prettierConfig); + generateArtifactsTs(testContracts, testArtifactsDir, TEST_ARTIFACTS_TS_FILE_PATH, prettierConfig); + generateArtifactsTs(srcContracts, srcArtifactsDir, SRC_ARTIFACTS_TS_FILE_PATH, prettierConfig); + generateWrappersTs(testContracts, testWrappersDir, TEST_WRAPPERS_TS_FILE_PATH, prettierConfig); + generateWrappersTs(srcContracts, srcWrappersDir, SRC_WRAPPERS_TS_FILE_PATH, prettierConfig); + generateTsConfigJSONFilesList(testContracts, testArtifactsDir, srcContracts, srcArtifactsDir, prettierConfig); + generatePackageJSONABIConfig(testContracts, 'abis', testArtifactsDir, prettierConfig); +} + +function convertToTopLevelDir(name: string, aPath: string): string { + let finalPath = aPath; + const hasDotPrefix = aPath.startsWith('./'); + if (hasDotPrefix) { + finalPath = aPath.substr(2); + } + const segments = finalPath.split('/'); + if (segments.length === 0) { + throw new Error(`Cannot have empty path for ${name}`); + } + if (segments.length === 1) { + return aPath; + } + segments.shift(); + return `${hasDotPrefix ? './' : ''}${segments.join('/')}`; +} + function generateCompilerJSONContractsList( contracts: string[], contractsDir: string, @@ -73,7 +174,12 @@ function generateCompilerJSONContractsList( fs.writeFileSync(COMPILER_JSON_FILE_PATH, formattedCompilerJSON); } -function generateArtifactsTs(contracts: string[], artifactsDir: string, prettierConfig: prettier.Options | null): void { +function generateArtifactsTs( + contracts: string[], + artifactsDir: string, + artifactsTsFilePath: string, + prettierConfig: prettier.Options | null, +): void { const imports = _.map(contracts, contract => { const contractName = path.basename(contract, SOLIDITY_EXTENSION); const importPath = path.join('..', artifactsDir, `${contractName}.json`); @@ -97,12 +203,16 @@ function generateArtifactsTs(contracts: string[], artifactsDir: string, prettier ${sortedImports.join('\n')} export const artifacts = {${artifacts.join('\n')}}; `; - const ARTIFACTS_TS_FILE_PATH = 'src/artifacts.ts'; - const formattedArtifactsTs = prettier.format(artifactsTs, { ...prettierConfig, filepath: ARTIFACTS_TS_FILE_PATH }); - fs.writeFileSync(ARTIFACTS_TS_FILE_PATH, formattedArtifactsTs); + const formattedArtifactsTs = prettier.format(artifactsTs, { ...prettierConfig, filepath: artifactsTsFilePath }); + fs.writeFileSync(artifactsTsFilePath, formattedArtifactsTs); } -function generateWrappersTs(contracts: string[], wrappersDir: string, prettierConfig: prettier.Options | null): void { +function generateWrappersTs( + contracts: string[], + wrappersDir: string, + wrappersTsFilePath: string, + prettierConfig: prettier.Options | null, +): void { const imports = _.map(contracts, contract => { const contractName = path.basename(contract, SOLIDITY_EXTENSION); const outputFileName = makeOutputFileName(contractName); @@ -114,23 +224,30 @@ function generateWrappersTs(contracts: string[], wrappersDir: string, prettierCo ${AUTO_GENERATED_BANNER} ${sortedImports.join('\n')} `; - const WRAPPERS_TS_FILE_PATH = 'src/wrappers.ts'; - const formattedArtifactsTs = prettier.format(wrappersTs, { ...prettierConfig, filepath: WRAPPERS_TS_FILE_PATH }); - fs.writeFileSync(WRAPPERS_TS_FILE_PATH, formattedArtifactsTs); + const formattedArtifactsTs = prettier.format(wrappersTs, { ...prettierConfig, filepath: wrappersTsFilePath }); + fs.writeFileSync(wrappersTsFilePath, formattedArtifactsTs); } function generateTsConfigJSONFilesList( - contracts: string[], - artifactsDir: string, + testContracts: string[], + testArtifactsDir: string, + srcContracts: string[], + srcArtifactsDir: string, prettierConfig: prettier.Options | null, ): void { const TS_CONFIG_FILE_PATH = 'tsconfig.json'; const tsConfig = readJSONFile(TS_CONFIG_FILE_PATH); - tsConfig.files = _.map(contracts, contract => { + const testFiles = _.map(testContracts, contract => { + const contractName = path.basename(contract, SOLIDITY_EXTENSION); + const artifactPath = path.join(testArtifactsDir, `${contractName}.json`); + return artifactPath; + }); + const srcFiles = _.map(srcContracts, contract => { const contractName = path.basename(contract, SOLIDITY_EXTENSION); - const artifactPath = path.join(artifactsDir, `${contractName}.json`); + const artifactPath = path.join(srcArtifactsDir, `${contractName}.json`); return artifactPath; }); + tsConfig.files = [...testFiles, ...srcFiles]; tsConfig.files = _.sortBy(tsConfig.files); const tsConfigString = JSON.stringify(tsConfig); const formattedTsConfig = prettier.format(tsConfigString, { ...prettierConfig, filepath: TS_CONFIG_FILE_PATH }); @@ -139,6 +256,7 @@ function generateTsConfigJSONFilesList( function generatePackageJSONABIConfig( contracts: string[], + configName: string, artifactsDir: string, prettierConfig: prettier.Options | null, ): void { @@ -152,8 +270,8 @@ function generatePackageJSONABIConfig( ...packageJSON, config: { ...packageJSON.config, - 'abis:comment': AUTO_GENERATED_BANNER_FOR_LISTS, - abis: `${artifactsDir}/@(${sortedContractNames.join('|')}).json`, + [`${configName}:comment`]: AUTO_GENERATED_BANNER_FOR_LISTS, + [configName]: `${artifactsDir}/@(${sortedContractNames.join('|')}).json`, }, }; const PACKAGE_JSON_FILE_PATH = 'package.json'; diff --git a/packages/dev-utils/CHANGELOG.json b/packages/dev-utils/CHANGELOG.json index 61e1e91d6e..e74d6eaf96 100644 --- a/packages/dev-utils/CHANGELOG.json +++ b/packages/dev-utils/CHANGELOG.json @@ -1,4 +1,13 @@ [ + { + "version": "2.4.0-beta.1", + "changes": [ + { + "note": "Dependencies updated" + } + ], + "timestamp": 1573159180 + }, { "version": "2.4.0-beta.0", "changes": [ diff --git a/packages/dev-utils/CHANGELOG.md b/packages/dev-utils/CHANGELOG.md index fa74ba77b1..ab966e86bb 100644 --- a/packages/dev-utils/CHANGELOG.md +++ b/packages/dev-utils/CHANGELOG.md @@ -5,6 +5,10 @@ Edit the package's CHANGELOG.json file only. CHANGELOG +## v2.4.0-beta.1 - _November 7, 2019_ + + * Dependencies updated + ## v2.4.0-beta.0 - _October 3, 2019_ * `revertWith` mocha extensions now accept Promise-like objects instead of just Promises (#2031) diff --git a/packages/dev-utils/package.json b/packages/dev-utils/package.json index b3c5bf0cea..6f76ebbb32 100644 --- a/packages/dev-utils/package.json +++ b/packages/dev-utils/package.json @@ -1,6 +1,6 @@ { "name": "@0x/dev-utils", - "version": "2.4.0-beta.0", + "version": "2.4.0-beta.1", "engines": { "node": ">=6.12" }, @@ -30,7 +30,7 @@ }, "homepage": "https://github.com/0xProject/0x-monorepo/packages/dev-utils/README.md", "devDependencies": { - "@0x/tslint-config": "^3.0.1", + "@0x/tslint-config": "^3.1.0-beta.1", "@types/lodash": "4.14.104", "@types/mocha": "^5.2.7", "make-promises-safe": "^1.1.0", @@ -42,17 +42,17 @@ "typescript": "3.0.1" }, "dependencies": { - "@0x/subproviders": "^5.1.0-beta.0", - "@0x/types": "^2.5.0-beta.0", - "@0x/typescript-typings": "^4.4.0-beta.0", - "@0x/utils": "^4.6.0-beta.0", - "@0x/web3-wrapper": "^6.1.0-beta.0", + "@0x/subproviders": "^5.1.0-beta.1", + "@0x/types": "^2.5.0-beta.1", + "@0x/typescript-typings": "^4.4.0-beta.1", + "@0x/utils": "^4.6.0-beta.1", + "@0x/web3-wrapper": "^6.1.0-beta.1", "@types/web3-provider-engine": "^14.0.0", "chai": "^4.0.1", "chai-as-promised": "^7.1.0", "chai-bignumber": "^3.0.0", "dirty-chai": "^2.0.1", - "ethereum-types": "^2.2.0-beta.0", + "ethereum-types": "^2.2.0-beta.1", "lodash": "^4.17.11" }, "publishConfig": { diff --git a/packages/ethereum-types/CHANGELOG.json b/packages/ethereum-types/CHANGELOG.json index cada85485e..a8c9e5c7cd 100644 --- a/packages/ethereum-types/CHANGELOG.json +++ b/packages/ethereum-types/CHANGELOG.json @@ -1,12 +1,13 @@ [ { - "version": "3.0.0-beta.0", + "version": "2.2.0-beta.1", "changes": [ { "note": "All references to network ID have been removed, and references to chain ID have been introduced instead", "pr": 2313 } - ] + ], + "timestamp": 1573159180 }, { "version": "2.2.0-beta.0", diff --git a/packages/ethereum-types/CHANGELOG.md b/packages/ethereum-types/CHANGELOG.md index 152485e402..ca95fcd7c5 100644 --- a/packages/ethereum-types/CHANGELOG.md +++ b/packages/ethereum-types/CHANGELOG.md @@ -5,6 +5,10 @@ Edit the package's CHANGELOG.json file only. CHANGELOG +## v2.2.0-beta.1 - _November 7, 2019_ + + * All references to network ID have been removed, and references to chain ID have been introduced instead (#2313) + ## v2.2.0-beta.0 - _October 3, 2019_ * Add `RevertErrorAbi` interface as part of `AbiDefinition` types (#1761) diff --git a/packages/ethereum-types/docs/reference.mdx b/packages/ethereum-types/docs/reference.mdx index 7e66f9c26b..25fea802b0 100644 --- a/packages/ethereum-types/docs/reference.mdx +++ b/packages/ethereum-types/docs/reference.mdx @@ -1,37 +1,22 @@ -# Enumeration: AbiType - - -## Enumeration members - -### Constructor - -• **Constructor**: = "constructor" - -*Defined in [index.ts:463](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L463)* - -___ - -### Event - -• **Event**: = "event" - -*Defined in [index.ts:464](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L464)* +# Interface: GanacheProvider -___ -### Fallback +## Methods -• **Fallback**: = "fallback" +### sendAsync -*Defined in [index.ts:465](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L465)* +▸ **sendAsync**(`payload`: [JSONRPCRequestPayload](_index_.jsonrpcrequestpayload.md), `callback`: [JSONRPCErrorCallback](#jsonrpcerrorcallback)): *void* -___ +*Defined in [index.ts:14](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L14)* -### Function +**Parameters:** -• **Function**: = "function" +Name | Type | +------ | ------ | +`payload` | [JSONRPCRequestPayload](#class-jsonrpcrequestpayload) | +`callback` | [JSONRPCErrorCallback](#jsonrpcerrorcallback) | -*Defined in [index.ts:462](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L462)* +**Returns:** *void*
@@ -44,7 +29,7 @@ ___ • **Earliest**: = "earliest" -*Defined in [index.ts:478](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L478)* +*Defined in [index.ts:478](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L478)* ___ @@ -52,7 +37,7 @@ ___ • **Latest**: = "latest" -*Defined in [index.ts:479](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L479)* +*Defined in [index.ts:479](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L479)* ___ @@ -60,7 +45,7 @@ ___ • **Pending**: = "pending" -*Defined in [index.ts:480](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L480)* +*Defined in [index.ts:480](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L480)*
@@ -73,7 +58,7 @@ ___ • **Add**: = "ADD" -*Defined in [index.ts:147](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L147)* +*Defined in [index.ts:147](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L147)* ___ @@ -81,7 +66,7 @@ ___ • **AddMod**: = "ADDMOD" -*Defined in [index.ts:154](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L154)* +*Defined in [index.ts:154](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L154)* ___ @@ -89,7 +74,7 @@ ___ • **Address**: = "ADDRESS" -*Defined in [index.ts:173](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L173)* +*Defined in [index.ts:173](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L173)* ___ @@ -97,7 +82,7 @@ ___ • **And**: = "AND" -*Defined in [index.ts:165](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L165)* +*Defined in [index.ts:165](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L165)* ___ @@ -105,7 +90,7 @@ ___ • **Balance**: = "BALANCE" -*Defined in [index.ts:174](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L174)* +*Defined in [index.ts:174](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L174)* ___ @@ -113,7 +98,7 @@ ___ • **BlockHash**: = "BLOCKHASH" -*Defined in [index.ts:189](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L189)* +*Defined in [index.ts:189](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L189)* ___ @@ -121,7 +106,7 @@ ___ • **Byte**: = "BYTE" -*Defined in [index.ts:169](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L169)* +*Defined in [index.ts:169](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L169)* ___ @@ -129,7 +114,7 @@ ___ • **Call**: = "CALL" -*Defined in [index.ts:282](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L282)* +*Defined in [index.ts:282](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L282)* ___ @@ -137,7 +122,7 @@ ___ • **CallCode**: = "CALLCODE" -*Defined in [index.ts:283](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L283)* +*Defined in [index.ts:283](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L283)* ___ @@ -145,7 +130,7 @@ ___ • **CallDataCopy**: = "CALLDATACOPY" -*Defined in [index.ts:180](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L180)* +*Defined in [index.ts:180](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L180)* ___ @@ -153,7 +138,7 @@ ___ • **CallDataLoad**: = "CALLDATALOAD" -*Defined in [index.ts:178](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L178)* +*Defined in [index.ts:178](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L178)* ___ @@ -161,7 +146,7 @@ ___ • **CallDataSize**: = "CALLDATASIZE" -*Defined in [index.ts:179](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L179)* +*Defined in [index.ts:179](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L179)* ___ @@ -169,7 +154,7 @@ ___ • **CallValue**: = "CALLVALUE" -*Defined in [index.ts:177](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L177)* +*Defined in [index.ts:177](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L177)* ___ @@ -177,7 +162,7 @@ ___ • **Caller**: = "CALLER" -*Defined in [index.ts:176](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L176)* +*Defined in [index.ts:176](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L176)* ___ @@ -185,7 +170,7 @@ ___ • **CodeCopy**: = "CODECOPY" -*Defined in [index.ts:182](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L182)* +*Defined in [index.ts:182](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L182)* ___ @@ -193,7 +178,7 @@ ___ • **CodeSize**: = "CODESIZE" -*Defined in [index.ts:181](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L181)* +*Defined in [index.ts:181](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L181)* ___ @@ -201,7 +186,7 @@ ___ • **Coinbase**: = "COINBASE" -*Defined in [index.ts:190](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L190)* +*Defined in [index.ts:190](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L190)* ___ @@ -209,7 +194,7 @@ ___ • **Create**: = "CREATE" -*Defined in [index.ts:281](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L281)* +*Defined in [index.ts:281](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L281)* ___ @@ -217,7 +202,7 @@ ___ • **DelegateCall**: = "DELEGATECALL" -*Defined in [index.ts:285](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L285)* +*Defined in [index.ts:285](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L285)* ___ @@ -225,7 +210,7 @@ ___ • **Difficulty**: = "DIFFICULTY" -*Defined in [index.ts:193](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L193)* +*Defined in [index.ts:193](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L193)* ___ @@ -233,7 +218,7 @@ ___ • **Div**: = "DIV" -*Defined in [index.ts:150](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L150)* +*Defined in [index.ts:150](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L150)* ___ @@ -241,7 +226,7 @@ ___ • **Dup1**: = "DUP1" -*Defined in [index.ts:242](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L242)* +*Defined in [index.ts:242](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L242)* ___ @@ -249,7 +234,7 @@ ___ • **Dup10**: = "DUP10" -*Defined in [index.ts:251](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L251)* +*Defined in [index.ts:251](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L251)* ___ @@ -257,7 +242,7 @@ ___ • **Dup11**: = "DUP11" -*Defined in [index.ts:252](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L252)* +*Defined in [index.ts:252](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L252)* ___ @@ -265,7 +250,7 @@ ___ • **Dup12**: = "DUP12" -*Defined in [index.ts:253](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L253)* +*Defined in [index.ts:253](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L253)* ___ @@ -273,7 +258,7 @@ ___ • **Dup13**: = "DUP13" -*Defined in [index.ts:254](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L254)* +*Defined in [index.ts:254](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L254)* ___ @@ -281,7 +266,7 @@ ___ • **Dup14**: = "DUP14" -*Defined in [index.ts:255](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L255)* +*Defined in [index.ts:255](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L255)* ___ @@ -289,7 +274,7 @@ ___ • **Dup15**: = "DUP15" -*Defined in [index.ts:256](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L256)* +*Defined in [index.ts:256](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L256)* ___ @@ -297,7 +282,7 @@ ___ • **Dup16**: = "DUP16" -*Defined in [index.ts:257](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L257)* +*Defined in [index.ts:257](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L257)* ___ @@ -305,7 +290,7 @@ ___ • **Dup2**: = "DUP2" -*Defined in [index.ts:243](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L243)* +*Defined in [index.ts:243](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L243)* ___ @@ -313,7 +298,7 @@ ___ • **Dup3**: = "DUP3" -*Defined in [index.ts:244](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L244)* +*Defined in [index.ts:244](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L244)* ___ @@ -321,7 +306,7 @@ ___ • **Dup4**: = "DUP4" -*Defined in [index.ts:245](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L245)* +*Defined in [index.ts:245](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L245)* ___ @@ -329,7 +314,7 @@ ___ • **Dup5**: = "DUP5" -*Defined in [index.ts:246](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L246)* +*Defined in [index.ts:246](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L246)* ___ @@ -337,7 +322,7 @@ ___ • **Dup6**: = "DUP6" -*Defined in [index.ts:247](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L247)* +*Defined in [index.ts:247](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L247)* ___ @@ -345,7 +330,7 @@ ___ • **Dup7**: = "DUP7" -*Defined in [index.ts:248](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L248)* +*Defined in [index.ts:248](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L248)* ___ @@ -353,7 +338,7 @@ ___ • **Dup8**: = "DUP8" -*Defined in [index.ts:249](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L249)* +*Defined in [index.ts:249](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L249)* ___ @@ -361,7 +346,7 @@ ___ • **Dup9**: = "DUP9" -*Defined in [index.ts:250](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L250)* +*Defined in [index.ts:250](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L250)* ___ @@ -369,7 +354,7 @@ ___ • **Eq**: = "EQ" -*Defined in [index.ts:163](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L163)* +*Defined in [index.ts:163](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L163)* ___ @@ -377,7 +362,7 @@ ___ • **Exp**: = "EXP" -*Defined in [index.ts:156](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L156)* +*Defined in [index.ts:156](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L156)* ___ @@ -385,7 +370,7 @@ ___ • **ExtCodeCopy**: = "EXTCODECOPY" -*Defined in [index.ts:185](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L185)* +*Defined in [index.ts:185](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L185)* ___ @@ -393,7 +378,7 @@ ___ • **ExtCodeSize**: = "EXTCODESIZE" -*Defined in [index.ts:184](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L184)* +*Defined in [index.ts:184](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L184)* ___ @@ -401,7 +386,7 @@ ___ • **Gas**: = "GAS" -*Defined in [index.ts:206](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L206)* +*Defined in [index.ts:206](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L206)* ___ @@ -409,7 +394,7 @@ ___ • **GasPrice**: = "GASPRICE" -*Defined in [index.ts:183](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L183)* +*Defined in [index.ts:183](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L183)* ___ @@ -417,7 +402,7 @@ ___ • **Gaslimit**: = "GASLIMIT" -*Defined in [index.ts:194](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L194)* +*Defined in [index.ts:194](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L194)* ___ @@ -425,7 +410,7 @@ ___ • **Gt**: = "GT" -*Defined in [index.ts:160](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L160)* +*Defined in [index.ts:160](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L160)* ___ @@ -433,7 +418,7 @@ ___ • **Invalid**: = "INVALID" -*Defined in [index.ts:288](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L288)* +*Defined in [index.ts:288](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L288)* ___ @@ -441,7 +426,7 @@ ___ • **IsZero**: = "ISZERO" -*Defined in [index.ts:164](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L164)* +*Defined in [index.ts:164](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L164)* ___ @@ -449,7 +434,7 @@ ___ • **Jump**: = "JUMP" -*Defined in [index.ts:202](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L202)* +*Defined in [index.ts:202](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L202)* ___ @@ -457,7 +442,7 @@ ___ • **JumpDest**: = "JUMPDEST" -*Defined in [index.ts:207](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L207)* +*Defined in [index.ts:207](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L207)* ___ @@ -465,7 +450,7 @@ ___ • **Jumpi**: = "JUMPI" -*Defined in [index.ts:203](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L203)* +*Defined in [index.ts:203](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L203)* ___ @@ -473,7 +458,7 @@ ___ • **Log1**: = "LOG1" -*Defined in [index.ts:276](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L276)* +*Defined in [index.ts:276](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L276)* ___ @@ -481,7 +466,7 @@ ___ • **Log2**: = "LOG2" -*Defined in [index.ts:277](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L277)* +*Defined in [index.ts:277](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L277)* ___ @@ -489,7 +474,7 @@ ___ • **Log3**: = "LOG3" -*Defined in [index.ts:278](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L278)* +*Defined in [index.ts:278](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L278)* ___ @@ -497,7 +482,7 @@ ___ • **Log4**: = "LOG4" -*Defined in [index.ts:279](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L279)* +*Defined in [index.ts:279](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L279)* ___ @@ -505,7 +490,7 @@ ___ • **Lt**: = "LT" -*Defined in [index.ts:159](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L159)* +*Defined in [index.ts:159](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L159)* ___ @@ -513,7 +498,7 @@ ___ • **MLoad**: = "MLOAD" -*Defined in [index.ts:197](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L197)* +*Defined in [index.ts:197](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L197)* ___ @@ -521,7 +506,7 @@ ___ • **MSize**: = "MSIZE" -*Defined in [index.ts:205](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L205)* +*Defined in [index.ts:205](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L205)* ___ @@ -529,7 +514,7 @@ ___ • **MStore**: = "MSTORE" -*Defined in [index.ts:198](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L198)* +*Defined in [index.ts:198](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L198)* ___ @@ -537,7 +522,7 @@ ___ • **MStore8**: = "MSTORE8" -*Defined in [index.ts:199](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L199)* +*Defined in [index.ts:199](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L199)* ___ @@ -545,7 +530,7 @@ ___ • **Mod**: = "MOD" -*Defined in [index.ts:152](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L152)* +*Defined in [index.ts:152](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L152)* ___ @@ -553,7 +538,7 @@ ___ • **Mul**: = "MUL" -*Defined in [index.ts:148](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L148)* +*Defined in [index.ts:148](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L148)* ___ @@ -561,7 +546,7 @@ ___ • **MulMod**: = "MULMOD" -*Defined in [index.ts:155](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L155)* +*Defined in [index.ts:155](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L155)* ___ @@ -569,7 +554,7 @@ ___ • **Not**: = "NOT" -*Defined in [index.ts:168](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L168)* +*Defined in [index.ts:168](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L168)* ___ @@ -577,7 +562,7 @@ ___ • **Number**: = "NUMBER" -*Defined in [index.ts:192](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L192)* +*Defined in [index.ts:192](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L192)* ___ @@ -585,7 +570,7 @@ ___ • **Or**: = "OR" -*Defined in [index.ts:166](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L166)* +*Defined in [index.ts:166](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L166)* ___ @@ -593,7 +578,7 @@ ___ • **Origin**: = "ORIGIN" -*Defined in [index.ts:175](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L175)* +*Defined in [index.ts:175](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L175)* ___ @@ -601,7 +586,7 @@ ___ • **Pc**: = "PC" -*Defined in [index.ts:204](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L204)* +*Defined in [index.ts:204](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L204)* ___ @@ -609,7 +594,7 @@ ___ • **Pop**: = "POP" -*Defined in [index.ts:196](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L196)* +*Defined in [index.ts:196](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L196)* ___ @@ -617,7 +602,7 @@ ___ • **Push1**: = "PUSH1" -*Defined in [index.ts:209](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L209)* +*Defined in [index.ts:209](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L209)* ___ @@ -625,7 +610,7 @@ ___ • **Push10**: = "PUSH10" -*Defined in [index.ts:218](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L218)* +*Defined in [index.ts:218](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L218)* ___ @@ -633,7 +618,7 @@ ___ • **Push11**: = "PUSH11" -*Defined in [index.ts:219](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L219)* +*Defined in [index.ts:219](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L219)* ___ @@ -641,7 +626,7 @@ ___ • **Push12**: = "PUSH12" -*Defined in [index.ts:220](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L220)* +*Defined in [index.ts:220](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L220)* ___ @@ -649,7 +634,7 @@ ___ • **Push13**: = "PUSH13" -*Defined in [index.ts:221](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L221)* +*Defined in [index.ts:221](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L221)* ___ @@ -657,7 +642,7 @@ ___ • **Push14**: = "PUSH14" -*Defined in [index.ts:222](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L222)* +*Defined in [index.ts:222](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L222)* ___ @@ -665,7 +650,7 @@ ___ • **Push15**: = "PUSH15" -*Defined in [index.ts:223](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L223)* +*Defined in [index.ts:223](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L223)* ___ @@ -673,7 +658,7 @@ ___ • **Push16**: = "PUSH16" -*Defined in [index.ts:224](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L224)* +*Defined in [index.ts:224](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L224)* ___ @@ -681,7 +666,7 @@ ___ • **Push17**: = "PUSH17" -*Defined in [index.ts:225](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L225)* +*Defined in [index.ts:225](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L225)* ___ @@ -689,7 +674,7 @@ ___ • **Push18**: = "PUSH18" -*Defined in [index.ts:226](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L226)* +*Defined in [index.ts:226](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L226)* ___ @@ -697,7 +682,7 @@ ___ • **Push19**: = "PUSH19" -*Defined in [index.ts:227](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L227)* +*Defined in [index.ts:227](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L227)* ___ @@ -705,7 +690,7 @@ ___ • **Push2**: = "PUSH2" -*Defined in [index.ts:210](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L210)* +*Defined in [index.ts:210](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L210)* ___ @@ -713,7 +698,7 @@ ___ • **Push20**: = "PUSH20" -*Defined in [index.ts:228](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L228)* +*Defined in [index.ts:228](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L228)* ___ @@ -721,7 +706,7 @@ ___ • **Push21**: = "PUSH21" -*Defined in [index.ts:229](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L229)* +*Defined in [index.ts:229](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L229)* ___ @@ -729,7 +714,7 @@ ___ • **Push22**: = "PUSH22" -*Defined in [index.ts:230](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L230)* +*Defined in [index.ts:230](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L230)* ___ @@ -737,7 +722,7 @@ ___ • **Push23**: = "PUSH23" -*Defined in [index.ts:231](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L231)* +*Defined in [index.ts:231](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L231)* ___ @@ -745,7 +730,7 @@ ___ • **Push24**: = "PUSH24" -*Defined in [index.ts:232](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L232)* +*Defined in [index.ts:232](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L232)* ___ @@ -753,7 +738,7 @@ ___ • **Push25**: = "PUSH25" -*Defined in [index.ts:233](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L233)* +*Defined in [index.ts:233](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L233)* ___ @@ -761,7 +746,7 @@ ___ • **Push26**: = "PUSH26" -*Defined in [index.ts:234](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L234)* +*Defined in [index.ts:234](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L234)* ___ @@ -769,7 +754,7 @@ ___ • **Push27**: = "PUSH27" -*Defined in [index.ts:235](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L235)* +*Defined in [index.ts:235](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L235)* ___ @@ -777,7 +762,7 @@ ___ • **Push28**: = "PUSH28" -*Defined in [index.ts:236](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L236)* +*Defined in [index.ts:236](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L236)* ___ @@ -785,7 +770,7 @@ ___ • **Push29**: = "PUSH29" -*Defined in [index.ts:237](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L237)* +*Defined in [index.ts:237](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L237)* ___ @@ -793,7 +778,7 @@ ___ • **Push3**: = "PUSH3" -*Defined in [index.ts:211](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L211)* +*Defined in [index.ts:211](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L211)* ___ @@ -801,7 +786,7 @@ ___ • **Push30**: = "PUSH30" -*Defined in [index.ts:238](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L238)* +*Defined in [index.ts:238](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L238)* ___ @@ -809,7 +794,7 @@ ___ • **Push31**: = "PUSH31" -*Defined in [index.ts:239](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L239)* +*Defined in [index.ts:239](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L239)* ___ @@ -817,7 +802,7 @@ ___ • **Push32**: = "PUSH32" -*Defined in [index.ts:240](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L240)* +*Defined in [index.ts:240](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L240)* ___ @@ -825,7 +810,7 @@ ___ • **Push4**: = "PUSH4" -*Defined in [index.ts:212](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L212)* +*Defined in [index.ts:212](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L212)* ___ @@ -833,7 +818,7 @@ ___ • **Push5**: = "PUSH5" -*Defined in [index.ts:213](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L213)* +*Defined in [index.ts:213](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L213)* ___ @@ -841,7 +826,7 @@ ___ • **Push6**: = "PUSH6" -*Defined in [index.ts:214](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L214)* +*Defined in [index.ts:214](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L214)* ___ @@ -849,7 +834,7 @@ ___ • **Push7**: = "PUSH7" -*Defined in [index.ts:215](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L215)* +*Defined in [index.ts:215](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L215)* ___ @@ -857,7 +842,7 @@ ___ • **Push8**: = "PUSH8" -*Defined in [index.ts:216](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L216)* +*Defined in [index.ts:216](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L216)* ___ @@ -865,7 +850,7 @@ ___ • **Push9**: = "PUSH9" -*Defined in [index.ts:217](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L217)* +*Defined in [index.ts:217](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L217)* ___ @@ -873,7 +858,7 @@ ___ • **Return**: = "RETURN" -*Defined in [index.ts:284](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L284)* +*Defined in [index.ts:284](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L284)* ___ @@ -881,7 +866,7 @@ ___ • **ReturnDataCopy**: = "RETURNDATACOPY" -*Defined in [index.ts:187](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L187)* +*Defined in [index.ts:187](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L187)* ___ @@ -889,7 +874,7 @@ ___ • **ReturnDataSize**: = "RETURNDATASIZE" -*Defined in [index.ts:186](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L186)* +*Defined in [index.ts:186](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L186)* ___ @@ -897,7 +882,7 @@ ___ • **Revert**: = "REVERT" -*Defined in [index.ts:287](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L287)* +*Defined in [index.ts:287](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L287)* ___ @@ -905,7 +890,7 @@ ___ • **SDiv**: = "SDIV" -*Defined in [index.ts:151](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L151)* +*Defined in [index.ts:151](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L151)* ___ @@ -913,7 +898,7 @@ ___ • **SGt**: = "SGT" -*Defined in [index.ts:162](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L162)* +*Defined in [index.ts:162](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L162)* ___ @@ -921,7 +906,7 @@ ___ • **SLoad**: = "SLOAD" -*Defined in [index.ts:200](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L200)* +*Defined in [index.ts:200](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L200)* ___ @@ -929,7 +914,7 @@ ___ • **SLt**: = "SLT" -*Defined in [index.ts:161](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L161)* +*Defined in [index.ts:161](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L161)* ___ @@ -937,7 +922,7 @@ ___ • **SMod**: = "SMOD" -*Defined in [index.ts:153](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L153)* +*Defined in [index.ts:153](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L153)* ___ @@ -945,7 +930,7 @@ ___ • **SStore**: = "SSTORE" -*Defined in [index.ts:201](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L201)* +*Defined in [index.ts:201](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L201)* ___ @@ -953,7 +938,7 @@ ___ • **SelfDestruct**: = "SELFDESTRUCT" -*Defined in [index.ts:289](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L289)* +*Defined in [index.ts:289](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L289)* ___ @@ -961,7 +946,7 @@ ___ • **Sha3**: = "SHA3" -*Defined in [index.ts:171](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L171)* +*Defined in [index.ts:171](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L171)* ___ @@ -969,7 +954,7 @@ ___ • **SignExtend**: = "SIGNEXTEND" -*Defined in [index.ts:157](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L157)* +*Defined in [index.ts:157](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L157)* ___ @@ -977,7 +962,7 @@ ___ • **StaticCall**: = "STATICCALL" -*Defined in [index.ts:286](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L286)* +*Defined in [index.ts:286](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L286)* ___ @@ -985,7 +970,7 @@ ___ • **Stop**: = "STOP" -*Defined in [index.ts:146](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L146)* +*Defined in [index.ts:146](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L146)* ___ @@ -993,7 +978,7 @@ ___ • **Sub**: = "SUB" -*Defined in [index.ts:149](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L149)* +*Defined in [index.ts:149](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L149)* ___ @@ -1001,7 +986,7 @@ ___ • **Swap1**: = "SWAP1" -*Defined in [index.ts:259](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L259)* +*Defined in [index.ts:259](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L259)* ___ @@ -1009,7 +994,7 @@ ___ • **Swap10**: = "SWAP10" -*Defined in [index.ts:268](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L268)* +*Defined in [index.ts:268](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L268)* ___ @@ -1017,7 +1002,7 @@ ___ • **Swap11**: = "SWAP11" -*Defined in [index.ts:269](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L269)* +*Defined in [index.ts:269](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L269)* ___ @@ -1025,7 +1010,7 @@ ___ • **Swap12**: = "SWAP12" -*Defined in [index.ts:270](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L270)* +*Defined in [index.ts:270](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L270)* ___ @@ -1033,7 +1018,7 @@ ___ • **Swap13**: = "SWAP13" -*Defined in [index.ts:271](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L271)* +*Defined in [index.ts:271](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L271)* ___ @@ -1041,7 +1026,7 @@ ___ • **Swap14**: = "SWAP14" -*Defined in [index.ts:272](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L272)* +*Defined in [index.ts:272](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L272)* ___ @@ -1049,7 +1034,7 @@ ___ • **Swap15**: = "SWAP15" -*Defined in [index.ts:273](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L273)* +*Defined in [index.ts:273](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L273)* ___ @@ -1057,7 +1042,7 @@ ___ • **Swap16**: = "SWAP16" -*Defined in [index.ts:274](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L274)* +*Defined in [index.ts:274](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L274)* ___ @@ -1065,7 +1050,7 @@ ___ • **Swap2**: = "SWAP2" -*Defined in [index.ts:260](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L260)* +*Defined in [index.ts:260](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L260)* ___ @@ -1073,7 +1058,7 @@ ___ • **Swap3**: = "SWAP3" -*Defined in [index.ts:261](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L261)* +*Defined in [index.ts:261](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L261)* ___ @@ -1081,7 +1066,7 @@ ___ • **Swap4**: = "SWAP4" -*Defined in [index.ts:262](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L262)* +*Defined in [index.ts:262](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L262)* ___ @@ -1089,7 +1074,7 @@ ___ • **Swap5**: = "SWAP5" -*Defined in [index.ts:263](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L263)* +*Defined in [index.ts:263](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L263)* ___ @@ -1097,7 +1082,7 @@ ___ • **Swap6**: = "SWAP6" -*Defined in [index.ts:264](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L264)* +*Defined in [index.ts:264](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L264)* ___ @@ -1105,7 +1090,7 @@ ___ • **Swap7**: = "SWAP7" -*Defined in [index.ts:265](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L265)* +*Defined in [index.ts:265](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L265)* ___ @@ -1113,7 +1098,7 @@ ___ • **Swap8**: = "SWAP8" -*Defined in [index.ts:266](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L266)* +*Defined in [index.ts:266](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L266)* ___ @@ -1121,7 +1106,7 @@ ___ • **Swap9**: = "SWAP9" -*Defined in [index.ts:267](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L267)* +*Defined in [index.ts:267](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L267)* ___ @@ -1129,7 +1114,7 @@ ___ • **TimeStamp**: = "TimeStamp" -*Defined in [index.ts:191](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L191)* +*Defined in [index.ts:191](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L191)* ___ @@ -1137,7 +1122,7 @@ ___ • **Xor**: = "XOR" -*Defined in [index.ts:167](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L167)* +*Defined in [index.ts:167](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L167)*
@@ -1150,7 +1135,7 @@ ___ • **Address**: = "address" -*Defined in [index.ts:497](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L497)* +*Defined in [index.ts:497](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L497)* ___ @@ -1158,7 +1143,7 @@ ___ • **Bool**: = "bool" -*Defined in [index.ts:498](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L498)* +*Defined in [index.ts:498](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L498)* ___ @@ -1166,7 +1151,7 @@ ___ • **Bytes**: = "bytes" -*Defined in [index.ts:499](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L499)* +*Defined in [index.ts:499](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L499)* ___ @@ -1174,7 +1159,7 @@ ___ • **Int**: = "int" -*Defined in [index.ts:500](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L500)* +*Defined in [index.ts:500](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L500)* ___ @@ -1182,7 +1167,7 @@ ___ • **String**: = "string" -*Defined in [index.ts:501](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L501)* +*Defined in [index.ts:501](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L501)* ___ @@ -1190,7 +1175,7 @@ ___ • **Tuple**: = "tuple" -*Defined in [index.ts:502](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L502)* +*Defined in [index.ts:502](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L502)* ___ @@ -1198,7 +1183,7 @@ ___ • **Uint**: = "uint" -*Defined in [index.ts:505](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L505)* +*Defined in [index.ts:505](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L505)* ___ @@ -1206,7 +1191,7 @@ ___ • **Uint256**: = "uint256" -*Defined in [index.ts:503](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L503)* +*Defined in [index.ts:503](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L503)* ___ @@ -1214,7 +1199,7 @@ ___ • **Uint8**: = "uint8" -*Defined in [index.ts:504](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L504)* +*Defined in [index.ts:504](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L504)*
@@ -1227,7 +1212,7 @@ ___ • **difficulty**: *`BigNumber`* -*Defined in [index.ts:356](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L356)* +*Defined in [index.ts:356](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L356)* ___ @@ -1235,7 +1220,7 @@ ___ • **extraData**: *string* -*Defined in [index.ts:358](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L358)* +*Defined in [index.ts:358](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L358)* ___ @@ -1243,7 +1228,7 @@ ___ • **gasLimit**: *number* -*Defined in [index.ts:360](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L360)* +*Defined in [index.ts:360](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L360)* ___ @@ -1251,7 +1236,7 @@ ___ • **gasUsed**: *number* -*Defined in [index.ts:361](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L361)* +*Defined in [index.ts:361](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L361)* ___ @@ -1259,7 +1244,7 @@ ___ • **hash**: *string | null* -*Defined in [index.ts:348](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L348)* +*Defined in [index.ts:348](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L348)* ___ @@ -1267,7 +1252,7 @@ ___ • **logsBloom**: *string | null* -*Defined in [index.ts:352](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L352)* +*Defined in [index.ts:352](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L352)* ___ @@ -1275,7 +1260,7 @@ ___ • **miner**: *string* -*Defined in [index.ts:355](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L355)* +*Defined in [index.ts:355](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L355)* ___ @@ -1283,7 +1268,7 @@ ___ • **nonce**: *string | null* -*Defined in [index.ts:350](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L350)* +*Defined in [index.ts:350](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L350)* ___ @@ -1291,7 +1276,7 @@ ___ • **number**: *number | null* -*Defined in [index.ts:347](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L347)* +*Defined in [index.ts:347](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L347)* ___ @@ -1299,7 +1284,7 @@ ___ • **parentHash**: *string* -*Defined in [index.ts:349](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L349)* +*Defined in [index.ts:349](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L349)* ___ @@ -1307,7 +1292,7 @@ ___ • **sha3Uncles**: *string* -*Defined in [index.ts:351](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L351)* +*Defined in [index.ts:351](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L351)* ___ @@ -1315,7 +1300,7 @@ ___ • **size**: *number* -*Defined in [index.ts:359](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L359)* +*Defined in [index.ts:359](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L359)* ___ @@ -1323,7 +1308,7 @@ ___ • **stateRoot**: *string* -*Defined in [index.ts:354](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L354)* +*Defined in [index.ts:354](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L354)* ___ @@ -1331,7 +1316,7 @@ ___ • **timestamp**: *number* -*Defined in [index.ts:362](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L362)* +*Defined in [index.ts:362](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L362)* ___ @@ -1339,7 +1324,7 @@ ___ • **totalDifficulty**: *`BigNumber`* -*Defined in [index.ts:357](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L357)* +*Defined in [index.ts:357](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L357)* ___ @@ -1347,7 +1332,7 @@ ___ • **transactionsRoot**: *string* -*Defined in [index.ts:353](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L353)* +*Defined in [index.ts:353](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L353)* ___ @@ -1355,7 +1340,7 @@ ___ • **uncles**: *string[]* -*Defined in [index.ts:363](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L363)* +*Defined in [index.ts:363](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L363)*
@@ -1368,7 +1353,7 @@ ___ • **fromBlock**: *[BlockParam](#blockparam)* -*Defined in [index.ts:740](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L740)* +*Defined in [index.ts:742](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L742)* ___ @@ -1376,7 +1361,7 @@ ___ • **toBlock**: *[BlockParam](#blockparam)* -*Defined in [index.ts:741](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L741)* +*Defined in [index.ts:743](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L743)*
@@ -1391,7 +1376,7 @@ ___ *Inherited from [AbstractBlock](#interface-abstractblock).[difficulty](#difficulty)* -*Defined in [index.ts:356](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L356)* +*Defined in [index.ts:356](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L356)* ___ @@ -1401,7 +1386,7 @@ ___ *Inherited from [AbstractBlock](#interface-abstractblock).[extraData](#extradata)* -*Defined in [index.ts:358](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L358)* +*Defined in [index.ts:358](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L358)* ___ @@ -1411,7 +1396,7 @@ ___ *Inherited from [AbstractBlock](#interface-abstractblock).[gasLimit](#gaslimit)* -*Defined in [index.ts:360](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L360)* +*Defined in [index.ts:360](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L360)* ___ @@ -1421,7 +1406,7 @@ ___ *Inherited from [AbstractBlock](#interface-abstractblock).[gasUsed](#gasused)* -*Defined in [index.ts:361](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L361)* +*Defined in [index.ts:361](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L361)* ___ @@ -1431,7 +1416,7 @@ ___ *Inherited from [AbstractBlock](#interface-abstractblock).[hash](#hash)* -*Defined in [index.ts:348](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L348)* +*Defined in [index.ts:348](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L348)* ___ @@ -1441,7 +1426,7 @@ ___ *Inherited from [AbstractBlock](#interface-abstractblock).[logsBloom](#logsbloom)* -*Defined in [index.ts:352](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L352)* +*Defined in [index.ts:352](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L352)* ___ @@ -1451,7 +1436,7 @@ ___ *Inherited from [AbstractBlock](#interface-abstractblock).[miner](#miner)* -*Defined in [index.ts:355](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L355)* +*Defined in [index.ts:355](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L355)* ___ @@ -1461,7 +1446,7 @@ ___ *Inherited from [AbstractBlock](#interface-abstractblock).[nonce](#nonce)* -*Defined in [index.ts:350](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L350)* +*Defined in [index.ts:350](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L350)* ___ @@ -1471,7 +1456,7 @@ ___ *Inherited from [AbstractBlock](#interface-abstractblock).[number](#number)* -*Defined in [index.ts:347](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L347)* +*Defined in [index.ts:347](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L347)* ___ @@ -1481,7 +1466,7 @@ ___ *Inherited from [AbstractBlock](#interface-abstractblock).[parentHash](#parenthash)* -*Defined in [index.ts:349](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L349)* +*Defined in [index.ts:349](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L349)* ___ @@ -1491,7 +1476,7 @@ ___ *Inherited from [AbstractBlock](#interface-abstractblock).[sha3Uncles](#sha3uncles)* -*Defined in [index.ts:351](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L351)* +*Defined in [index.ts:351](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L351)* ___ @@ -1501,7 +1486,7 @@ ___ *Inherited from [AbstractBlock](#interface-abstractblock).[size](#size)* -*Defined in [index.ts:359](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L359)* +*Defined in [index.ts:359](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L359)* ___ @@ -1511,7 +1496,7 @@ ___ *Inherited from [AbstractBlock](#interface-abstractblock).[stateRoot](#stateroot)* -*Defined in [index.ts:354](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L354)* +*Defined in [index.ts:354](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L354)* ___ @@ -1521,7 +1506,7 @@ ___ *Inherited from [AbstractBlock](#interface-abstractblock).[timestamp](#timestamp)* -*Defined in [index.ts:362](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L362)* +*Defined in [index.ts:362](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L362)* ___ @@ -1531,7 +1516,7 @@ ___ *Inherited from [AbstractBlock](#interface-abstractblock).[totalDifficulty](#totaldifficulty)* -*Defined in [index.ts:357](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L357)* +*Defined in [index.ts:357](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L357)* ___ @@ -1539,7 +1524,7 @@ ___ • **transactions**: *string[]* -*Defined in [index.ts:367](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L367)* +*Defined in [index.ts:367](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L367)* ___ @@ -1549,7 +1534,7 @@ ___ *Inherited from [AbstractBlock](#interface-abstractblock).[transactionsRoot](#transactionsroot)* -*Defined in [index.ts:353](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L353)* +*Defined in [index.ts:353](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L353)* ___ @@ -1559,7 +1544,7 @@ ___ *Inherited from [AbstractBlock](#interface-abstractblock).[uncles](#uncles)* -*Defined in [index.ts:363](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L363)* +*Defined in [index.ts:363](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L363)*
@@ -1574,7 +1559,7 @@ ___ *Inherited from [AbstractBlock](#interface-abstractblock).[difficulty](#difficulty)* -*Defined in [index.ts:356](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L356)* +*Defined in [index.ts:356](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L356)* ___ @@ -1584,7 +1569,7 @@ ___ *Inherited from [AbstractBlock](#interface-abstractblock).[extraData](#extradata)* -*Defined in [index.ts:358](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L358)* +*Defined in [index.ts:358](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L358)* ___ @@ -1594,7 +1579,7 @@ ___ *Inherited from [AbstractBlock](#interface-abstractblock).[gasLimit](#gaslimit)* -*Defined in [index.ts:360](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L360)* +*Defined in [index.ts:360](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L360)* ___ @@ -1604,7 +1589,7 @@ ___ *Inherited from [AbstractBlock](#interface-abstractblock).[gasUsed](#gasused)* -*Defined in [index.ts:361](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L361)* +*Defined in [index.ts:361](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L361)* ___ @@ -1614,7 +1599,7 @@ ___ *Inherited from [AbstractBlock](#interface-abstractblock).[hash](#hash)* -*Defined in [index.ts:348](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L348)* +*Defined in [index.ts:348](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L348)* ___ @@ -1624,7 +1609,7 @@ ___ *Inherited from [AbstractBlock](#interface-abstractblock).[logsBloom](#logsbloom)* -*Defined in [index.ts:352](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L352)* +*Defined in [index.ts:352](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L352)* ___ @@ -1634,7 +1619,7 @@ ___ *Inherited from [AbstractBlock](#interface-abstractblock).[miner](#miner)* -*Defined in [index.ts:355](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L355)* +*Defined in [index.ts:355](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L355)* ___ @@ -1644,7 +1629,7 @@ ___ *Inherited from [AbstractBlock](#interface-abstractblock).[nonce](#nonce)* -*Defined in [index.ts:350](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L350)* +*Defined in [index.ts:350](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L350)* ___ @@ -1654,7 +1639,7 @@ ___ *Inherited from [AbstractBlock](#interface-abstractblock).[number](#number)* -*Defined in [index.ts:347](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L347)* +*Defined in [index.ts:347](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L347)* ___ @@ -1664,7 +1649,7 @@ ___ *Inherited from [AbstractBlock](#interface-abstractblock).[parentHash](#parenthash)* -*Defined in [index.ts:349](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L349)* +*Defined in [index.ts:349](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L349)* ___ @@ -1674,7 +1659,7 @@ ___ *Inherited from [AbstractBlock](#interface-abstractblock).[sha3Uncles](#sha3uncles)* -*Defined in [index.ts:351](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L351)* +*Defined in [index.ts:351](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L351)* ___ @@ -1684,7 +1669,7 @@ ___ *Inherited from [AbstractBlock](#interface-abstractblock).[size](#size)* -*Defined in [index.ts:359](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L359)* +*Defined in [index.ts:359](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L359)* ___ @@ -1694,7 +1679,7 @@ ___ *Inherited from [AbstractBlock](#interface-abstractblock).[stateRoot](#stateroot)* -*Defined in [index.ts:354](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L354)* +*Defined in [index.ts:354](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L354)* ___ @@ -1704,7 +1689,7 @@ ___ *Inherited from [AbstractBlock](#interface-abstractblock).[timestamp](#timestamp)* -*Defined in [index.ts:362](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L362)* +*Defined in [index.ts:362](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L362)* ___ @@ -1714,7 +1699,7 @@ ___ *Inherited from [AbstractBlock](#interface-abstractblock).[totalDifficulty](#totaldifficulty)* -*Defined in [index.ts:357](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L357)* +*Defined in [index.ts:357](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L357)* ___ @@ -1722,7 +1707,7 @@ ___ • **transactions**: *[Transaction](#class-transaction)[]* -*Defined in [index.ts:371](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L371)* +*Defined in [index.ts:371](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L371)* ___ @@ -1732,7 +1717,7 @@ ___ *Inherited from [AbstractBlock](#interface-abstractblock).[transactionsRoot](#transactionsroot)* -*Defined in [index.ts:353](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L353)* +*Defined in [index.ts:353](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L353)* ___ @@ -1742,7 +1727,7 @@ ___ *Inherited from [AbstractBlock](#interface-abstractblock).[uncles](#uncles)* -*Defined in [index.ts:363](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L363)* +*Defined in [index.ts:363](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L363)*
@@ -1757,7 +1742,7 @@ ___ *Inherited from [CallTxDataBase](#interface-calltxdatabase).[data](#optional-data)* -*Defined in [index.ts:393](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L393)* +*Defined in [index.ts:393](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L393)* ___ @@ -1765,7 +1750,7 @@ ___ • **from**? : *undefined | string* -*Defined in [index.ts:402](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L402)* +*Defined in [index.ts:402](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L402)* ___ @@ -1775,7 +1760,7 @@ ___ *Inherited from [CallTxDataBase](#interface-calltxdatabase).[gas](#optional-gas)* -*Defined in [index.ts:391](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L391)* +*Defined in [index.ts:391](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L391)* ___ @@ -1785,7 +1770,7 @@ ___ *Inherited from [CallTxDataBase](#interface-calltxdatabase).[gasPrice](#optional-gasprice)* -*Defined in [index.ts:392](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L392)* +*Defined in [index.ts:392](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L392)* ___ @@ -1795,7 +1780,7 @@ ___ *Inherited from [CallTxDataBase](#interface-calltxdatabase).[nonce](#optional-nonce)* -*Defined in [index.ts:394](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L394)* +*Defined in [index.ts:394](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L394)* ___ @@ -1805,7 +1790,7 @@ ___ *Inherited from [CallTxDataBase](#interface-calltxdatabase).[to](#optional-to)* -*Defined in [index.ts:389](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L389)* +*Defined in [index.ts:389](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L389)* ___ @@ -1815,7 +1800,7 @@ ___ *Inherited from [CallTxDataBase](#interface-calltxdatabase).[value](#optional-value)* -*Defined in [index.ts:390](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L390)* +*Defined in [index.ts:390](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L390)*
@@ -1828,7 +1813,7 @@ ___ • **data**? : *undefined | string* -*Defined in [index.ts:393](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L393)* +*Defined in [index.ts:393](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L393)* ___ @@ -1836,7 +1821,7 @@ ___ • **gas**? : *number | string | `BigNumber`* -*Defined in [index.ts:391](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L391)* +*Defined in [index.ts:391](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L391)* ___ @@ -1844,7 +1829,7 @@ ___ • **gasPrice**? : *number | string | `BigNumber`* -*Defined in [index.ts:392](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L392)* +*Defined in [index.ts:392](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L392)* ___ @@ -1852,7 +1837,7 @@ ___ • **nonce**? : *undefined | number* -*Defined in [index.ts:394](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L394)* +*Defined in [index.ts:394](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L394)* ___ @@ -1860,7 +1845,7 @@ ___ • **to**? : *undefined | string* -*Defined in [index.ts:389](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L389)* +*Defined in [index.ts:389](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L389)* ___ @@ -1868,7 +1853,7 @@ ___ • **value**? : *number | string | `BigNumber`* -*Defined in [index.ts:390](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L390)* +*Defined in [index.ts:390](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L390)*
@@ -1885,6 +1870,7 @@ useDockerisedSolc: If set to true - sol-compiler will try calling a dockerized i isOfflineMode: If set to true - sol-compiler will not fetch the list of solc releases from github. It will use the hardcoded list. Defaults to false. solcVersion: If you don't want to compile each contract with the Solidity version specified in-file, you can force all contracts to compile with the the version specified here. +shouldSaveStandardInput: Write the standard JSON input in ${contractsDir}/${contractName}.input.json ## Properties @@ -1893,7 +1879,7 @@ contracts to compile with the the version specified here. • **artifactsDir**? : *undefined | string* -*Defined in [index.ts:731](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L731)* +*Defined in [index.ts:732](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L732)* ___ @@ -1901,7 +1887,7 @@ ___ • **compilerSettings**? : *[CompilerSettings](#class-compilersettings)* -*Defined in [index.ts:732](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L732)* +*Defined in [index.ts:733](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L733)* ___ @@ -1909,7 +1895,7 @@ ___ • **contracts**? : *string[] | "*"* -*Defined in [index.ts:733](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L733)* +*Defined in [index.ts:734](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L734)* ___ @@ -1917,7 +1903,7 @@ ___ • **contractsDir**? : *undefined | string* -*Defined in [index.ts:730](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L730)* +*Defined in [index.ts:731](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L731)* ___ @@ -1925,7 +1911,15 @@ ___ • **isOfflineMode**? : *undefined | false | true* -*Defined in [index.ts:735](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L735)* +*Defined in [index.ts:736](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L736)* + +___ + +### `Optional` shouldSaveStandardInput + +• **shouldSaveStandardInput**? : *undefined | false | true* + +*Defined in [index.ts:738](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L738)* ___ @@ -1933,7 +1927,7 @@ ___ • **solcVersion**? : *undefined | string* -*Defined in [index.ts:736](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L736)* +*Defined in [index.ts:737](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L737)* ___ @@ -1941,7 +1935,7 @@ ___ • **useDockerisedSolc**? : *undefined | false | true* -*Defined in [index.ts:734](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L734)* +*Defined in [index.ts:735](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L735)*
@@ -1954,7 +1948,7 @@ ___ • **name**: *"solc"* -*Defined in [index.ts:655](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L655)* +*Defined in [index.ts:655](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L655)* ___ @@ -1962,7 +1956,7 @@ ___ • **settings**: *[CompilerSettings](#class-compilersettings)* -*Defined in [index.ts:657](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L657)* +*Defined in [index.ts:657](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L657)* ___ @@ -1970,7 +1964,7 @@ ___ • **version**: *string* -*Defined in [index.ts:656](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L656)* +*Defined in [index.ts:656](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L656)*
@@ -1983,7 +1977,7 @@ ___ • **evmVersion**? : *"homestead" | "tangerineWhistle" | "spuriousDragon" | "byzantium" | "constantinople"* -*Defined in [index.ts:689](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L689)* +*Defined in [index.ts:689](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L689)* ___ @@ -1991,7 +1985,7 @@ ___ • **libraries**? : *undefined | object* -*Defined in [index.ts:691](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L691)* +*Defined in [index.ts:691](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L691)* ___ @@ -1999,7 +1993,7 @@ ___ • **metadata**? : *[CompilerSettingsMetadata](#class-compilersettingsmetadata)* -*Defined in [index.ts:690](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L690)* +*Defined in [index.ts:690](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L690)* ___ @@ -2007,7 +2001,7 @@ ___ • **optimizer**? : *[OptimizerSettings](#class-optimizersettings)* -*Defined in [index.ts:688](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L688)* +*Defined in [index.ts:688](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L688)* ___ @@ -2015,7 +2009,7 @@ ___ • **outputSelection**: *object* -*Defined in [index.ts:696](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L696)* +*Defined in [index.ts:696](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L696)* #### Type declaration: @@ -2029,7 +2023,7 @@ ___ • **remappings**? : *string[]* -*Defined in [index.ts:687](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L687)* +*Defined in [index.ts:687](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L687)*
@@ -2042,7 +2036,7 @@ ___ • **useLiteralContent**: *true* -*Defined in [index.ts:704](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L704)* +*Defined in [index.ts:704](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L704)*
@@ -2055,7 +2049,7 @@ ___ • **inputs**: *[DataItem](#class-dataitem)[]* -*Defined in [index.ts:103](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L103)* +*Defined in [index.ts:103](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L103)* ___ @@ -2063,7 +2057,7 @@ ___ • **payable**: *boolean* -*Defined in [index.ts:104](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L104)* +*Defined in [index.ts:104](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L104)* ___ @@ -2071,7 +2065,7 @@ ___ • **stateMutability**: *[ConstructorStateMutability](#constructorstatemutability)* -*Defined in [index.ts:105](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L105)* +*Defined in [index.ts:105](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L105)* ___ @@ -2079,7 +2073,7 @@ ___ • **type**: *string* -*Defined in [index.ts:102](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L102)* +*Defined in [index.ts:102](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L102)*
@@ -2088,7 +2082,7 @@ ___ This type defines the schema of the artifact.json file generated by Sol-compiler schemaVersion: The version of the artifact schema contractName: The contract name it represents -networks: Network specific information by network (address, id, constructor args, etc...) +chains: Chain specific information by chain (address, id, constructor args, etc...) compilerOutput: The Solidity compiler output generated from the specified compiler input description (http://solidity.readthedocs.io/en/v0.4.24/using-the-compiler.html#compiler-input-and-output-json-description) compiler: The compiler settings used @@ -2100,13 +2094,21 @@ If any of the sources change, the hash would change notifying us that a re-compi ## Properties +### chains + +• **chains**: *[ContractChains](#class-contractchains)* + +*Defined in [index.ts:676](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L676)* + +___ + ### compiler • **compiler**: *[CompilerOpts](#class-compileropts)* *Inherited from [ContractVersionData](#interface-contractversiondata).[compiler](#compiler)* -*Defined in [index.ts:641](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L641)* +*Defined in [index.ts:641](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L641)* ___ @@ -2116,7 +2118,7 @@ ___ *Inherited from [ContractVersionData](#interface-contractversiondata).[compilerOutput](#compileroutput)* -*Defined in [index.ts:651](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L651)* +*Defined in [index.ts:651](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L651)* ___ @@ -2124,15 +2126,7 @@ ___ • **contractName**: *string* -*Defined in [index.ts:675](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L675)* - -___ - -### networks - -• **networks**: *[ContractNetworks](#class-contractnetworks)* - -*Defined in [index.ts:676](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L676)* +*Defined in [index.ts:675](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L675)* ___ @@ -2140,7 +2134,7 @@ ___ • **schemaVersion**: *string* -*Defined in [index.ts:674](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L674)* +*Defined in [index.ts:674](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L674)* ___ @@ -2150,7 +2144,7 @@ ___ *Inherited from [ContractVersionData](#interface-contractversiondata).[sourceCodes](#sourcecodes)* -*Defined in [index.ts:647](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L647)* +*Defined in [index.ts:647](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L647)* #### Type declaration: @@ -2164,7 +2158,7 @@ ___ *Inherited from [ContractVersionData](#interface-contractversiondata).[sourceTreeHashHex](#sourcetreehashhex)* -*Defined in [index.ts:650](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L650)* +*Defined in [index.ts:650](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L650)* ___ @@ -2174,7 +2168,7 @@ ___ *Inherited from [ContractVersionData](#interface-contractversiondata).[sources](#sources)* -*Defined in [index.ts:642](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L642)* +*Defined in [index.ts:642](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L642)* #### Type declaration: @@ -2182,7 +2176,7 @@ ___
-# Interface: ContractNetworkData +# Interface: ContractChainData ## Properties @@ -2191,7 +2185,7 @@ ___ • **address**: *string* -*Defined in [index.ts:554](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L554)* +*Defined in [index.ts:554](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L554)* ___ @@ -2199,7 +2193,7 @@ Args • **constructorArgs**: *string* -*Defined in [index.ts:558](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L558)* +*Defined in [index.ts:558](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L558)* ___ @@ -2207,7 +2201,7 @@ ___ • **links**: *object* -*Defined in [index.ts:555](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L555)* +*Defined in [index.ts:555](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L555)* #### Type declaration: @@ -2215,7 +2209,7 @@ ___
-# Interface: ContractNetworks +# Interface: ContractChains ## Hierarchy @@ -2231,7 +2225,7 @@ ___ • **compiler**: *[CompilerOpts](#class-compileropts)* -*Defined in [index.ts:641](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L641)* +*Defined in [index.ts:641](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L641)* ___ @@ -2239,7 +2233,7 @@ ___ • **compilerOutput**: *[StandardContractOutput](#class-standardcontractoutput)* -*Defined in [index.ts:651](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L651)* +*Defined in [index.ts:651](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L651)* ___ @@ -2247,7 +2241,7 @@ ___ • **sourceCodes**: *object* -*Defined in [index.ts:647](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L647)* +*Defined in [index.ts:647](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L647)* #### Type declaration: @@ -2259,7 +2253,7 @@ ___ • **sourceTreeHashHex**: *string* -*Defined in [index.ts:650](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L650)* +*Defined in [index.ts:650](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L650)* ___ @@ -2267,7 +2261,7 @@ ___ • **sources**: *object* -*Defined in [index.ts:642](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L642)* +*Defined in [index.ts:642](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L642)* #### Type declaration: @@ -2284,7 +2278,7 @@ ___ • **components**? : *[DataItem](#class-dataitem)[]* -*Defined in [index.ts:137](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L137)* +*Defined in [index.ts:137](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L137)* ___ @@ -2292,7 +2286,7 @@ ___ • **name**: *string* -*Defined in [index.ts:135](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L135)* +*Defined in [index.ts:135](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L135)* ___ @@ -2300,7 +2294,7 @@ ___ • **type**: *string* -*Defined in [index.ts:136](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L136)* +*Defined in [index.ts:136](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L136)*
@@ -2320,7 +2314,7 @@ ___ *Inherited from [LogEntry](#interface-logentry).[address](#address)* -*Defined in [index.ts:434](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L434)* +*Defined in [index.ts:434](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L434)* ___ @@ -2328,7 +2322,7 @@ ___ • **args**: *`A`* -*Defined in [index.ts:417](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L417)* +*Defined in [index.ts:417](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L417)* ___ @@ -2338,7 +2332,7 @@ ___ *Inherited from [LogEntry](#interface-logentry).[blockHash](#blockhash)* -*Defined in [index.ts:432](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L432)* +*Defined in [index.ts:432](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L432)* ___ @@ -2348,7 +2342,7 @@ ___ *Inherited from [LogEntry](#interface-logentry).[blockNumber](#blocknumber)* -*Defined in [index.ts:433](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L433)* +*Defined in [index.ts:433](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L433)* ___ @@ -2358,7 +2352,7 @@ ___ *Inherited from [LogEntry](#interface-logentry).[data](#data)* -*Defined in [index.ts:435](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L435)* +*Defined in [index.ts:435](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L435)* ___ @@ -2366,7 +2360,7 @@ ___ • **event**: *string* -*Defined in [index.ts:416](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L416)* +*Defined in [index.ts:416](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L416)* ___ @@ -2376,7 +2370,7 @@ ___ *Inherited from [LogEntry](#interface-logentry).[logIndex](#logindex)* -*Defined in [index.ts:429](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L429)* +*Defined in [index.ts:429](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L429)* ___ @@ -2386,7 +2380,7 @@ ___ *Inherited from [LogEntry](#interface-logentry).[topics](#topics)* -*Defined in [index.ts:436](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L436)* +*Defined in [index.ts:436](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L436)* ___ @@ -2396,7 +2390,7 @@ ___ *Inherited from [LogEntry](#interface-logentry).[transactionHash](#transactionhash)* -*Defined in [index.ts:431](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L431)* +*Defined in [index.ts:431](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L431)* ___ @@ -2406,7 +2400,7 @@ ___ *Inherited from [LogEntry](#interface-logentry).[transactionIndex](#transactionindex)* -*Defined in [index.ts:430](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L430)* +*Defined in [index.ts:430](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L430)*
@@ -2425,7 +2419,7 @@ ___ *Inherited from [LogEntry](#interface-logentry).[address](#address)* -*Defined in [index.ts:434](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L434)* +*Defined in [index.ts:434](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L434)* ___ @@ -2435,7 +2429,7 @@ ___ *Inherited from [DecodedLogEntry](#interface-decodedlogentry).[args](#args)* -*Defined in [index.ts:417](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L417)* +*Defined in [index.ts:417](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L417)* ___ @@ -2445,7 +2439,7 @@ ___ *Inherited from [LogEntry](#interface-logentry).[blockHash](#blockhash)* -*Defined in [index.ts:432](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L432)* +*Defined in [index.ts:432](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L432)* ___ @@ -2455,7 +2449,7 @@ ___ *Inherited from [LogEntry](#interface-logentry).[blockNumber](#blocknumber)* -*Defined in [index.ts:433](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L433)* +*Defined in [index.ts:433](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L433)* ___ @@ -2465,7 +2459,7 @@ ___ *Inherited from [LogEntry](#interface-logentry).[data](#data)* -*Defined in [index.ts:435](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L435)* +*Defined in [index.ts:435](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L435)* ___ @@ -2475,7 +2469,7 @@ ___ *Inherited from [DecodedLogEntry](#interface-decodedlogentry).[event](#event)* -*Defined in [index.ts:416](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L416)* +*Defined in [index.ts:416](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L416)* ___ @@ -2485,7 +2479,7 @@ ___ *Inherited from [LogEntry](#interface-logentry).[logIndex](#logindex)* -*Defined in [index.ts:429](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L429)* +*Defined in [index.ts:429](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L429)* ___ @@ -2493,7 +2487,7 @@ ___ • **removed**: *boolean* -*Defined in [index.ts:421](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L421)* +*Defined in [index.ts:421](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L421)* ___ @@ -2503,7 +2497,7 @@ ___ *Inherited from [LogEntry](#interface-logentry).[topics](#topics)* -*Defined in [index.ts:436](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L436)* +*Defined in [index.ts:436](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L436)* ___ @@ -2513,7 +2507,7 @@ ___ *Inherited from [LogEntry](#interface-logentry).[transactionHash](#transactionhash)* -*Defined in [index.ts:431](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L431)* +*Defined in [index.ts:431](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L431)* ___ @@ -2523,7 +2517,7 @@ ___ *Inherited from [LogEntry](#interface-logentry).[transactionIndex](#transactionindex)* -*Defined in [index.ts:430](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L430)* +*Defined in [index.ts:430](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L430)*
@@ -2536,7 +2530,7 @@ ___ • **author**? : *undefined | string* -*Defined in [index.ts:628](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L628)* +*Defined in [index.ts:628](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L628)* ___ @@ -2544,7 +2538,7 @@ ___ • **methods**: *object* -*Defined in [index.ts:629](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L629)* +*Defined in [index.ts:629](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L629)* #### Type declaration: @@ -2556,7 +2550,7 @@ ___ • **title**? : *undefined | string* -*Defined in [index.ts:627](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L627)* +*Defined in [index.ts:627](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L627)*
@@ -2569,7 +2563,7 @@ ___ • **isEIP1193**: *boolean* -*Defined in [index.ts:73](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L73)* +*Defined in [index.ts:73](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L73)* ## Methods @@ -2577,7 +2571,7 @@ ___ ▸ **on**(`event`: [EIP1193Event](#eip1193event), `listener`: function): *this* -*Defined in [index.ts:75](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L75)* +*Defined in [index.ts:75](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L75)* **Parameters:** @@ -2601,7 +2595,7 @@ ___ ▸ **send**(`method`: string, `params?`: any[]): *`Promise`* -*Defined in [index.ts:74](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L74)* +*Defined in [index.ts:74](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L74)* **Parameters:** @@ -2623,7 +2617,7 @@ Name | Type | • **anonymous**: *boolean* -*Defined in [index.ts:131](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L131)* +*Defined in [index.ts:131](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L131)* ___ @@ -2631,7 +2625,7 @@ ___ • **inputs**: *[EventParameter](#class-eventparameter)[]* -*Defined in [index.ts:130](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L130)* +*Defined in [index.ts:130](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L130)* ___ @@ -2639,7 +2633,7 @@ ___ • **name**: *string* -*Defined in [index.ts:129](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L129)* +*Defined in [index.ts:129](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L129)* ___ @@ -2647,7 +2641,7 @@ ___ • **type**: *string* -*Defined in [index.ts:128](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L128)* +*Defined in [index.ts:128](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L128)*
@@ -2662,7 +2656,7 @@ ___ *Inherited from [DataItem](#interface-dataitem).[components](#optional-components)* -*Defined in [index.ts:137](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L137)* +*Defined in [index.ts:137](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L137)* ___ @@ -2670,7 +2664,7 @@ ___ • **indexed**: *boolean* -*Defined in [index.ts:116](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L116)* +*Defined in [index.ts:116](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L116)* ___ @@ -2680,7 +2674,7 @@ ___ *Inherited from [DataItem](#interface-dataitem).[name](#name)* -*Defined in [index.ts:135](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L135)* +*Defined in [index.ts:135](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L135)* ___ @@ -2690,7 +2684,7 @@ ___ *Inherited from [DataItem](#interface-dataitem).[type](#type)* -*Defined in [index.ts:136](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L136)* +*Defined in [index.ts:136](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L136)*
@@ -2703,7 +2697,7 @@ ___ • **object**: *string* -*Defined in [index.ts:622](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L622)* +*Defined in [index.ts:622](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L622)* ___ @@ -2711,7 +2705,7 @@ ___ • **sourceMap**: *string* -*Defined in [index.ts:623](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L623)* +*Defined in [index.ts:623](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L623)*
@@ -2724,7 +2718,7 @@ ___ • **bytecode**: *[EvmBytecodeOutput](#class-evmbytecodeoutput)* -*Defined in [index.ts:617](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L617)* +*Defined in [index.ts:617](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L617)* ___ @@ -2732,7 +2726,7 @@ ___ • **deployedBytecode**: *[EvmBytecodeOutput](#class-evmbytecodeoutput)* -*Defined in [index.ts:618](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L618)* +*Defined in [index.ts:618](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L618)*
@@ -2745,7 +2739,7 @@ ___ • **payable**: *boolean* -*Defined in [index.ts:112](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L112)* +*Defined in [index.ts:112](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L112)* ___ @@ -2753,7 +2747,7 @@ ___ • **type**: *string* -*Defined in [index.ts:111](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L111)* +*Defined in [index.ts:111](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L111)*
@@ -2766,7 +2760,7 @@ ___ • **address**? : *undefined | string* -*Defined in [index.ts:409](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L409)* +*Defined in [index.ts:409](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L409)* ___ @@ -2774,7 +2768,7 @@ ___ • **blockHash**? : *undefined | string* -*Defined in [index.ts:408](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L408)* +*Defined in [index.ts:408](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L408)* ___ @@ -2782,7 +2776,7 @@ ___ • **fromBlock**? : *number | string* -*Defined in [index.ts:406](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L406)* +*Defined in [index.ts:406](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L406)* ___ @@ -2790,7 +2784,7 @@ ___ • **toBlock**? : *number | string* -*Defined in [index.ts:407](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L407)* +*Defined in [index.ts:407](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L407)* ___ @@ -2798,29 +2792,44 @@ ___ • **topics**? : *[LogTopic](#logtopic)[]* -*Defined in [index.ts:410](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L410)* +*Defined in [index.ts:410](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L410)*
-# Interface: GanacheProvider +# Enumeration: AbiType -## Methods +## Enumeration members -### sendAsync +### Constructor -▸ **sendAsync**(`payload`: [JSONRPCRequestPayload](_index_.jsonrpcrequestpayload.md), `callback`: [JSONRPCErrorCallback](#jsonrpcerrorcallback)): *void* +• **Constructor**: = "constructor" -*Defined in [index.ts:14](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L14)* +*Defined in [index.ts:463](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L463)* -**Parameters:** +___ -Name | Type | ------- | ------ | -`payload` | [JSONRPCRequestPayload](#class-jsonrpcrequestpayload) | -`callback` | [JSONRPCErrorCallback](#jsonrpcerrorcallback) | +### Event -**Returns:** *void* +• **Event**: = "event" + +*Defined in [index.ts:464](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L464)* + +___ + +### Fallback + +• **Fallback**: = "fallback" + +*Defined in [index.ts:465](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L465)* + +___ + +### Function + +• **Function**: = "function" + +*Defined in [index.ts:462](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L462)*
@@ -2833,7 +2842,7 @@ Name | Type | • **name**: *"solc"* -*Defined in [index.ts:680](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L680)* +*Defined in [index.ts:680](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L680)* ___ @@ -2841,7 +2850,7 @@ ___ • **settings**: *[CompilerSettings](#class-compilersettings)* -*Defined in [index.ts:682](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L682)* +*Defined in [index.ts:682](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L682)* ___ @@ -2849,7 +2858,7 @@ ___ • **version**: *string* -*Defined in [index.ts:681](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L681)* +*Defined in [index.ts:681](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L681)*
@@ -2862,7 +2871,7 @@ ___ • **id**: *number* -*Defined in [index.ts:330](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L330)* +*Defined in [index.ts:330](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L330)* ___ @@ -2870,7 +2879,7 @@ ___ • **jsonrpc**: *string* -*Defined in [index.ts:331](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L331)* +*Defined in [index.ts:331](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L331)* ___ @@ -2878,7 +2887,7 @@ ___ • **method**: *string* -*Defined in [index.ts:329](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L329)* +*Defined in [index.ts:329](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L329)* ___ @@ -2886,7 +2895,7 @@ ___ • **params**: *any[]* -*Defined in [index.ts:328](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L328)* +*Defined in [index.ts:328](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L328)*
@@ -2899,7 +2908,7 @@ ___ • **code**: *number* -*Defined in [index.ts:336](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L336)* +*Defined in [index.ts:336](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L336)* ___ @@ -2907,7 +2916,7 @@ ___ • **message**: *string* -*Defined in [index.ts:335](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L335)* +*Defined in [index.ts:335](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L335)*
@@ -2920,7 +2929,7 @@ ___ • **error**? : *[JSONRPCResponseError](#class-jsonrpcresponseerror)* -*Defined in [index.ts:343](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L343)* +*Defined in [index.ts:343](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L343)* ___ @@ -2928,7 +2937,7 @@ ___ • **id**: *number* -*Defined in [index.ts:341](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L341)* +*Defined in [index.ts:341](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L341)* ___ @@ -2936,7 +2945,7 @@ ___ • **jsonrpc**: *string* -*Defined in [index.ts:342](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L342)* +*Defined in [index.ts:342](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L342)* ___ @@ -2944,7 +2953,7 @@ ___ • **result**: *any* -*Defined in [index.ts:340](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L340)* +*Defined in [index.ts:340](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L340)*
@@ -2957,7 +2966,7 @@ ___ • **address**: *string* -*Defined in [index.ts:434](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L434)* +*Defined in [index.ts:434](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L434)* ___ @@ -2965,7 +2974,7 @@ ___ • **blockHash**: *string | null* -*Defined in [index.ts:432](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L432)* +*Defined in [index.ts:432](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L432)* ___ @@ -2973,7 +2982,7 @@ ___ • **blockNumber**: *number | null* -*Defined in [index.ts:433](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L433)* +*Defined in [index.ts:433](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L433)* ___ @@ -2981,7 +2990,7 @@ ___ • **data**: *string* -*Defined in [index.ts:435](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L435)* +*Defined in [index.ts:435](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L435)* ___ @@ -2989,7 +2998,7 @@ ___ • **logIndex**: *number | null* -*Defined in [index.ts:429](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L429)* +*Defined in [index.ts:429](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L429)* ___ @@ -2997,7 +3006,7 @@ ___ • **topics**: *string[]* -*Defined in [index.ts:436](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L436)* +*Defined in [index.ts:436](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L436)* ___ @@ -3005,7 +3014,7 @@ ___ • **transactionHash**: *string* -*Defined in [index.ts:431](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L431)* +*Defined in [index.ts:431](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L431)* ___ @@ -3013,7 +3022,7 @@ ___ • **transactionIndex**: *number | null* -*Defined in [index.ts:430](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L430)* +*Defined in [index.ts:430](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L430)*
@@ -3028,7 +3037,7 @@ ___ *Inherited from [LogEntry](#interface-logentry).[address](#address)* -*Defined in [index.ts:434](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L434)* +*Defined in [index.ts:434](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L434)* ___ @@ -3038,7 +3047,7 @@ ___ *Inherited from [LogEntry](#interface-logentry).[blockHash](#blockhash)* -*Defined in [index.ts:432](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L432)* +*Defined in [index.ts:432](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L432)* ___ @@ -3048,7 +3057,7 @@ ___ *Inherited from [LogEntry](#interface-logentry).[blockNumber](#blocknumber)* -*Defined in [index.ts:433](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L433)* +*Defined in [index.ts:433](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L433)* ___ @@ -3058,7 +3067,7 @@ ___ *Inherited from [LogEntry](#interface-logentry).[data](#data)* -*Defined in [index.ts:435](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L435)* +*Defined in [index.ts:435](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L435)* ___ @@ -3068,7 +3077,7 @@ ___ *Inherited from [LogEntry](#interface-logentry).[logIndex](#logindex)* -*Defined in [index.ts:429](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L429)* +*Defined in [index.ts:429](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L429)* ___ @@ -3076,7 +3085,7 @@ ___ • **removed**: *boolean* -*Defined in [index.ts:425](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L425)* +*Defined in [index.ts:425](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L425)* ___ @@ -3086,7 +3095,7 @@ ___ *Inherited from [LogEntry](#interface-logentry).[topics](#topics)* -*Defined in [index.ts:436](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L436)* +*Defined in [index.ts:436](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L436)* ___ @@ -3096,7 +3105,7 @@ ___ *Inherited from [LogEntry](#interface-logentry).[transactionHash](#transactionhash)* -*Defined in [index.ts:431](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L431)* +*Defined in [index.ts:431](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L431)* ___ @@ -3106,7 +3115,7 @@ ___ *Inherited from [LogEntry](#interface-logentry).[transactionIndex](#transactionindex)* -*Defined in [index.ts:430](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L430)* +*Defined in [index.ts:430](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L430)*
@@ -3125,7 +3134,7 @@ ___ *Inherited from [LogEntry](#interface-logentry).[address](#address)* -*Defined in [index.ts:434](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L434)* +*Defined in [index.ts:434](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L434)* ___ @@ -3135,7 +3144,7 @@ ___ *Inherited from [DecodedLogEntry](#interface-decodedlogentry).[args](#args)* -*Defined in [index.ts:417](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L417)* +*Defined in [index.ts:417](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L417)* ___ @@ -3145,7 +3154,7 @@ ___ *Inherited from [LogEntry](#interface-logentry).[blockHash](#blockhash)* -*Defined in [index.ts:432](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L432)* +*Defined in [index.ts:432](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L432)* ___ @@ -3155,7 +3164,7 @@ ___ *Inherited from [LogEntry](#interface-logentry).[blockNumber](#blocknumber)* -*Defined in [index.ts:433](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L433)* +*Defined in [index.ts:433](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L433)* ___ @@ -3165,7 +3174,7 @@ ___ *Inherited from [LogEntry](#interface-logentry).[data](#data)* -*Defined in [index.ts:435](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L435)* +*Defined in [index.ts:435](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L435)* ___ @@ -3175,7 +3184,7 @@ ___ *Inherited from [DecodedLogEntry](#interface-decodedlogentry).[event](#event)* -*Defined in [index.ts:416](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L416)* +*Defined in [index.ts:416](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L416)* ___ @@ -3185,7 +3194,7 @@ ___ *Inherited from [LogEntry](#interface-logentry).[logIndex](#logindex)* -*Defined in [index.ts:429](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L429)* +*Defined in [index.ts:429](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L429)* ___ @@ -3195,7 +3204,7 @@ ___ *Inherited from [LogEntry](#interface-logentry).[topics](#topics)* -*Defined in [index.ts:436](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L436)* +*Defined in [index.ts:436](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L436)* ___ @@ -3205,7 +3214,7 @@ ___ *Inherited from [LogEntry](#interface-logentry).[transactionHash](#transactionhash)* -*Defined in [index.ts:431](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L431)* +*Defined in [index.ts:431](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L431)* ___ @@ -3215,7 +3224,7 @@ ___ *Inherited from [LogEntry](#interface-logentry).[transactionIndex](#transactionindex)* -*Defined in [index.ts:430](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L430)* +*Defined in [index.ts:430](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L430)*
@@ -3228,7 +3237,7 @@ ___ • **constant**: *boolean* -*Defined in [index.ts:94](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L94)* +*Defined in [index.ts:94](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L94)* ___ @@ -3236,7 +3245,7 @@ ___ • **inputs**: *[DataItem](#class-dataitem)[]* -*Defined in [index.ts:92](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L92)* +*Defined in [index.ts:92](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L92)* ___ @@ -3244,7 +3253,7 @@ ___ • **name**: *string* -*Defined in [index.ts:91](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L91)* +*Defined in [index.ts:91](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L91)* ___ @@ -3252,7 +3261,7 @@ ___ • **outputs**: *[DataItem](#class-dataitem)[]* -*Defined in [index.ts:93](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L93)* +*Defined in [index.ts:93](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L93)* ___ @@ -3260,7 +3269,7 @@ ___ • **payable**: *boolean* -*Defined in [index.ts:96](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L96)* +*Defined in [index.ts:96](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L96)* ___ @@ -3268,7 +3277,7 @@ ___ • **stateMutability**: *[StateMutability](#statemutability)* -*Defined in [index.ts:95](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L95)* +*Defined in [index.ts:95](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L95)* ___ @@ -3276,7 +3285,7 @@ ___ • **type**: *string* -*Defined in [index.ts:90](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L90)* +*Defined in [index.ts:90](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L90)*
@@ -3289,7 +3298,7 @@ ___ • **enabled**: *boolean* -*Defined in [index.ts:708](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L708)* +*Defined in [index.ts:708](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L708)* ___ @@ -3297,7 +3306,7 @@ ___ • **runs**? : *undefined | number* -*Defined in [index.ts:709](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L709)* +*Defined in [index.ts:709](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L709)*
@@ -3310,7 +3319,7 @@ ___ ▸ **sendAsync**(`payload`: [JSONRPCRequestPayload](_index_.jsonrpcrequestpayload.md), `callback`: [JSONRPCErrorCallback](#jsonrpcerrorcallback)): *void* -*Defined in [index.ts:20](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L20)* +*Defined in [index.ts:20](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L20)* **Parameters:** @@ -3332,7 +3341,7 @@ Name | Type | • **address**: *string* -*Defined in [index.ts:491](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L491)* +*Defined in [index.ts:491](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L491)* ___ @@ -3340,7 +3349,7 @@ ___ • **blockHash**: *string | null* -*Defined in [index.ts:489](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L489)* +*Defined in [index.ts:489](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L489)* ___ @@ -3348,7 +3357,7 @@ ___ • **blockNumber**: *string | null* -*Defined in [index.ts:490](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L490)* +*Defined in [index.ts:490](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L490)* ___ @@ -3356,7 +3365,7 @@ ___ • **data**: *string* -*Defined in [index.ts:492](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L492)* +*Defined in [index.ts:492](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L492)* ___ @@ -3364,7 +3373,7 @@ ___ • **logIndex**: *string | null* -*Defined in [index.ts:486](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L486)* +*Defined in [index.ts:486](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L486)* ___ @@ -3372,7 +3381,7 @@ ___ • **topics**: *string[]* -*Defined in [index.ts:493](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L493)* +*Defined in [index.ts:493](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L493)* ___ @@ -3380,7 +3389,7 @@ ___ • **transactionHash**: *string* -*Defined in [index.ts:488](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L488)* +*Defined in [index.ts:488](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L488)* ___ @@ -3388,7 +3397,7 @@ ___ • **transactionIndex**: *string | null* -*Defined in [index.ts:487](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L487)* +*Defined in [index.ts:487](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L487)*
@@ -3401,7 +3410,7 @@ ___ • **arguments**? : *[DataItem](#class-dataitem)[]* -*Defined in [index.ts:122](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L122)* +*Defined in [index.ts:122](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L122)* ___ @@ -3409,7 +3418,7 @@ ___ • **name**: *string* -*Defined in [index.ts:121](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L121)* +*Defined in [index.ts:121](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L121)* ___ @@ -3417,7 +3426,7 @@ ___ • **type**: *"error"* -*Defined in [index.ts:120](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L120)* +*Defined in [index.ts:120](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L120)*
@@ -3430,7 +3439,7 @@ ___ • **component**: *"general" | "ewasm"* -*Defined in [index.ts:604](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L604)* +*Defined in [index.ts:604](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L604)* ___ @@ -3438,7 +3447,7 @@ ___ • **formattedMessage**? : *undefined | string* -*Defined in [index.ts:607](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L607)* +*Defined in [index.ts:607](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L607)* ___ @@ -3446,7 +3455,7 @@ ___ • **message**: *string* -*Defined in [index.ts:606](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L606)* +*Defined in [index.ts:606](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L606)* ___ @@ -3454,7 +3463,7 @@ ___ • **severity**: *[ErrorSeverity](#errorseverity)* -*Defined in [index.ts:605](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L605)* +*Defined in [index.ts:605](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L605)* ___ @@ -3462,7 +3471,7 @@ ___ • **sourceLocation**? : *[SourceLocation](#class-sourcelocation)* -*Defined in [index.ts:602](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L602)* +*Defined in [index.ts:602](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L602)* ___ @@ -3470,7 +3479,7 @@ ___ • **type**: *[ErrorType](#errortype)* -*Defined in [index.ts:603](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L603)* +*Defined in [index.ts:603](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L603)*
@@ -3483,7 +3492,7 @@ ___ • **id**: *number* -*Defined in [index.ts:713](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L713)* +*Defined in [index.ts:713](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L713)*
@@ -3496,7 +3505,7 @@ ___ • **end**: *number* -*Defined in [index.ts:613](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L613)* +*Defined in [index.ts:613](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L613)* ___ @@ -3504,7 +3513,7 @@ ___ • **file**: *string* -*Defined in [index.ts:611](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L611)* +*Defined in [index.ts:611](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L611)* ___ @@ -3512,7 +3521,7 @@ ___ • **start**: *number* -*Defined in [index.ts:612](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L612)* +*Defined in [index.ts:612](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L612)*
@@ -3525,7 +3534,7 @@ ___ • **abi**: *[ContractAbi](#contractabi)* -*Defined in [index.ts:564](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L564)* +*Defined in [index.ts:564](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L564)* ___ @@ -3533,7 +3542,7 @@ ___ • **devdoc**? : *[DevdocOutput](#class-devdocoutput)* -*Defined in [index.ts:566](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L566)* +*Defined in [index.ts:566](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L566)* ___ @@ -3541,7 +3550,7 @@ ___ • **evm**: *[EvmOutput](#class-evmoutput)* -*Defined in [index.ts:565](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L565)* +*Defined in [index.ts:565](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L565)*
@@ -3554,7 +3563,7 @@ ___ • **contracts**: *object* -*Defined in [index.ts:578](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L578)* +*Defined in [index.ts:578](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L578)* #### Type declaration: @@ -3568,7 +3577,7 @@ ___ • **errors**: *[SolcError](#class-solcerror)[]* -*Defined in [index.ts:570](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L570)* +*Defined in [index.ts:570](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L570)* ___ @@ -3576,7 +3585,7 @@ ___ • **sources**: *object* -*Defined in [index.ts:571](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L571)* +*Defined in [index.ts:571](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L571)* #### Type declaration: @@ -3593,7 +3602,7 @@ ___ • **depth**: *number* -*Defined in [index.ts:293](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L293)* +*Defined in [index.ts:293](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L293)* ___ @@ -3601,7 +3610,7 @@ ___ • **error**: *string* -*Defined in [index.ts:294](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L294)* +*Defined in [index.ts:294](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L294)* ___ @@ -3609,7 +3618,7 @@ ___ • **gas**: *number* -*Defined in [index.ts:295](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L295)* +*Defined in [index.ts:295](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L295)* ___ @@ -3617,7 +3626,7 @@ ___ • **gasCost**: *number* -*Defined in [index.ts:296](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L296)* +*Defined in [index.ts:296](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L296)* ___ @@ -3625,7 +3634,7 @@ ___ • **memory**: *string[]* -*Defined in [index.ts:297](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L297)* +*Defined in [index.ts:297](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L297)* ___ @@ -3633,7 +3642,7 @@ ___ • **op**: *[OpCode](#enumeration-opcode)* -*Defined in [index.ts:298](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L298)* +*Defined in [index.ts:298](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L298)* ___ @@ -3641,7 +3650,7 @@ ___ • **pc**: *number* -*Defined in [index.ts:299](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L299)* +*Defined in [index.ts:299](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L299)* ___ @@ -3649,7 +3658,7 @@ ___ • **stack**: *string[]* -*Defined in [index.ts:300](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L300)* +*Defined in [index.ts:300](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L300)* ___ @@ -3657,7 +3666,7 @@ ___ • **storage**: *object* -*Defined in [index.ts:301](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L301)* +*Defined in [index.ts:301](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L301)* #### Type declaration: @@ -3674,7 +3683,7 @@ ___ • **disableMemory**? : *undefined | false | true* -*Defined in [index.ts:518](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L518)* +*Defined in [index.ts:518](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L518)* ___ @@ -3682,7 +3691,7 @@ ___ • **disableStack**? : *undefined | false | true* -*Defined in [index.ts:519](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L519)* +*Defined in [index.ts:519](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L519)* ___ @@ -3690,7 +3699,7 @@ ___ • **disableStorage**? : *undefined | false | true* -*Defined in [index.ts:520](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L520)* +*Defined in [index.ts:520](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L520)* ___ @@ -3698,7 +3707,7 @@ ___ • **timeout**? : *undefined | string* -*Defined in [index.ts:522](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L522)* +*Defined in [index.ts:522](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L522)* ___ @@ -3706,7 +3715,7 @@ ___ • **tracer**? : *undefined | string* -*Defined in [index.ts:521](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L521)* +*Defined in [index.ts:521](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L521)*
@@ -3719,7 +3728,7 @@ ___ • **blockHash**: *string | null* -*Defined in [index.ts:377](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L377)* +*Defined in [index.ts:377](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L377)* ___ @@ -3727,7 +3736,7 @@ ___ • **blockNumber**: *number | null* -*Defined in [index.ts:378](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L378)* +*Defined in [index.ts:378](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L378)* ___ @@ -3735,7 +3744,7 @@ ___ • **from**: *string* -*Defined in [index.ts:380](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L380)* +*Defined in [index.ts:380](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L380)* ___ @@ -3743,7 +3752,7 @@ ___ • **gas**: *number* -*Defined in [index.ts:384](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L384)* +*Defined in [index.ts:384](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L384)* ___ @@ -3751,7 +3760,7 @@ ___ • **gasPrice**: *`BigNumber`* -*Defined in [index.ts:383](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L383)* +*Defined in [index.ts:383](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L383)* ___ @@ -3759,7 +3768,7 @@ ___ • **hash**: *string* -*Defined in [index.ts:375](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L375)* +*Defined in [index.ts:375](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L375)* ___ @@ -3767,7 +3776,7 @@ ___ • **input**: *string* -*Defined in [index.ts:385](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L385)* +*Defined in [index.ts:385](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L385)* ___ @@ -3775,7 +3784,7 @@ ___ • **nonce**: *number* -*Defined in [index.ts:376](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L376)* +*Defined in [index.ts:376](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L376)* ___ @@ -3783,7 +3792,7 @@ ___ • **to**: *string | null* -*Defined in [index.ts:381](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L381)* +*Defined in [index.ts:381](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L381)* ___ @@ -3791,7 +3800,7 @@ ___ • **transactionIndex**: *number | null* -*Defined in [index.ts:379](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L379)* +*Defined in [index.ts:379](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L379)* ___ @@ -3799,7 +3808,7 @@ ___ • **value**: *`BigNumber`* -*Defined in [index.ts:382](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L382)* +*Defined in [index.ts:382](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L382)*
@@ -3812,7 +3821,7 @@ ___ • **blockHash**: *string* -*Defined in [index.ts:448](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L448)* +*Defined in [index.ts:448](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L448)* ___ @@ -3820,7 +3829,7 @@ ___ • **blockNumber**: *number* -*Defined in [index.ts:449](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L449)* +*Defined in [index.ts:449](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L449)* ___ @@ -3828,7 +3837,7 @@ ___ • **contractAddress**: *string | null* -*Defined in [index.ts:457](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L457)* +*Defined in [index.ts:457](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L457)* ___ @@ -3836,7 +3845,7 @@ ___ • **cumulativeGasUsed**: *number* -*Defined in [index.ts:455](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L455)* +*Defined in [index.ts:455](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L455)* ___ @@ -3844,7 +3853,7 @@ ___ • **from**: *string* -*Defined in [index.ts:452](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L452)* +*Defined in [index.ts:452](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L452)* ___ @@ -3852,7 +3861,7 @@ ___ • **gasUsed**: *number* -*Defined in [index.ts:456](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L456)* +*Defined in [index.ts:456](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L456)* ___ @@ -3860,7 +3869,7 @@ ___ • **logs**: *[LogEntry](#class-logentry)[]* -*Defined in [index.ts:458](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L458)* +*Defined in [index.ts:458](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L458)* ___ @@ -3868,7 +3877,7 @@ ___ • **status**: *[TransactionReceiptStatus](#transactionreceiptstatus)* -*Defined in [index.ts:454](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L454)* +*Defined in [index.ts:454](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L454)* ___ @@ -3876,7 +3885,7 @@ ___ • **to**: *string* -*Defined in [index.ts:453](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L453)* +*Defined in [index.ts:453](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L453)* ___ @@ -3884,7 +3893,7 @@ ___ • **transactionHash**: *string* -*Defined in [index.ts:450](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L450)* +*Defined in [index.ts:450](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L450)* ___ @@ -3892,7 +3901,7 @@ ___ • **transactionIndex**: *number* -*Defined in [index.ts:451](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L451)* +*Defined in [index.ts:451](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L451)*
@@ -3911,7 +3920,7 @@ otherwise we don't. *Inherited from [TransactionReceipt](#interface-transactionreceipt).[blockHash](#blockhash)* -*Defined in [index.ts:448](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L448)* +*Defined in [index.ts:448](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L448)* ___ @@ -3921,7 +3930,7 @@ ___ *Inherited from [TransactionReceipt](#interface-transactionreceipt).[blockNumber](#blocknumber)* -*Defined in [index.ts:449](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L449)* +*Defined in [index.ts:449](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L449)* ___ @@ -3931,7 +3940,7 @@ ___ *Inherited from [TransactionReceipt](#interface-transactionreceipt).[contractAddress](#contractaddress)* -*Defined in [index.ts:457](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L457)* +*Defined in [index.ts:457](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L457)* ___ @@ -3941,7 +3950,7 @@ ___ *Inherited from [TransactionReceipt](#interface-transactionreceipt).[cumulativeGasUsed](#cumulativegasused)* -*Defined in [index.ts:455](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L455)* +*Defined in [index.ts:455](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L455)* ___ @@ -3951,7 +3960,7 @@ ___ *Inherited from [TransactionReceipt](#interface-transactionreceipt).[from](#from)* -*Defined in [index.ts:452](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L452)* +*Defined in [index.ts:452](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L452)* ___ @@ -3961,7 +3970,7 @@ ___ *Inherited from [TransactionReceipt](#interface-transactionreceipt).[gasUsed](#gasused)* -*Defined in [index.ts:456](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L456)* +*Defined in [index.ts:456](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L456)* ___ @@ -3971,7 +3980,7 @@ ___ *Overrides [TransactionReceipt](_index_.transactionreceipt.md).[logs](#logs)* -*Defined in [index.ts:514](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L514)* +*Defined in [index.ts:514](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L514)* ___ @@ -3981,7 +3990,7 @@ ___ *Inherited from [TransactionReceipt](#interface-transactionreceipt).[status](#status)* -*Defined in [index.ts:454](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L454)* +*Defined in [index.ts:454](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L454)* ___ @@ -3991,7 +4000,7 @@ ___ *Inherited from [TransactionReceipt](#interface-transactionreceipt).[to](#to)* -*Defined in [index.ts:453](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L453)* +*Defined in [index.ts:453](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L453)* ___ @@ -4001,7 +4010,7 @@ ___ *Inherited from [TransactionReceipt](#interface-transactionreceipt).[transactionHash](#transactionhash)* -*Defined in [index.ts:450](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L450)* +*Defined in [index.ts:450](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L450)* ___ @@ -4011,7 +4020,7 @@ ___ *Inherited from [TransactionReceipt](#interface-transactionreceipt).[transactionIndex](#transactionindex)* -*Defined in [index.ts:451](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L451)* +*Defined in [index.ts:451](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L451)*
@@ -4024,7 +4033,7 @@ ___ • **gas**: *number* -*Defined in [index.ts:305](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L305)* +*Defined in [index.ts:305](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L305)* ___ @@ -4032,7 +4041,7 @@ ___ • **returnValue**: *any* -*Defined in [index.ts:306](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L306)* +*Defined in [index.ts:306](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L306)* ___ @@ -4040,7 +4049,7 @@ ___ • **structLogs**: *[StructLog](#class-structlog)[]* -*Defined in [index.ts:307](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L307)* +*Defined in [index.ts:307](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L307)*
@@ -4055,7 +4064,7 @@ ___ *Overrides [DataItem](_index_.dataitem.md).[components](#optional-components)* -*Defined in [index.ts:141](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L141)* +*Defined in [index.ts:141](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L141)* ___ @@ -4065,7 +4074,7 @@ ___ *Inherited from [DataItem](#interface-dataitem).[name](#name)* -*Defined in [index.ts:135](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L135)* +*Defined in [index.ts:135](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L135)* ___ @@ -4075,7 +4084,7 @@ ___ *Inherited from [DataItem](#interface-dataitem).[type](#type)* -*Defined in [index.ts:136](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L136)* +*Defined in [index.ts:136](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L136)*
@@ -4090,7 +4099,7 @@ ___ *Inherited from [CallTxDataBase](#interface-calltxdatabase).[data](#optional-data)* -*Defined in [index.ts:393](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L393)* +*Defined in [index.ts:393](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L393)* ___ @@ -4098,7 +4107,7 @@ ___ • **from**: *string* -*Defined in [index.ts:398](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L398)* +*Defined in [index.ts:398](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L398)* ___ @@ -4108,7 +4117,7 @@ ___ *Inherited from [CallTxDataBase](#interface-calltxdatabase).[gas](#optional-gas)* -*Defined in [index.ts:391](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L391)* +*Defined in [index.ts:391](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L391)* ___ @@ -4118,7 +4127,7 @@ ___ *Inherited from [CallTxDataBase](#interface-calltxdatabase).[gasPrice](#optional-gasprice)* -*Defined in [index.ts:392](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L392)* +*Defined in [index.ts:392](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L392)* ___ @@ -4128,7 +4137,7 @@ ___ *Inherited from [CallTxDataBase](#interface-calltxdatabase).[nonce](#optional-nonce)* -*Defined in [index.ts:394](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L394)* +*Defined in [index.ts:394](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L394)* ___ @@ -4138,7 +4147,7 @@ ___ *Inherited from [CallTxDataBase](#interface-calltxdatabase).[to](#optional-to)* -*Defined in [index.ts:389](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L389)* +*Defined in [index.ts:389](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L389)* ___ @@ -4148,7 +4157,7 @@ ___ *Inherited from [CallTxDataBase](#interface-calltxdatabase).[value](#optional-value)* -*Defined in [index.ts:390](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L390)* +*Defined in [index.ts:390](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L390)*
@@ -4163,7 +4172,7 @@ ___ *Inherited from [CallTxDataBase](#interface-calltxdatabase).[data](#optional-data)* -*Defined in [index.ts:393](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L393)* +*Defined in [index.ts:393](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L393)* ___ @@ -4173,7 +4182,7 @@ ___ *Inherited from [TxData](#interface-txdata).[from](#from)* -*Defined in [index.ts:398](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L398)* +*Defined in [index.ts:398](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L398)* ___ @@ -4183,7 +4192,7 @@ ___ *Inherited from [CallTxDataBase](#interface-calltxdatabase).[gas](#optional-gas)* -*Defined in [index.ts:391](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L391)* +*Defined in [index.ts:391](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L391)* ___ @@ -4193,7 +4202,7 @@ ___ *Inherited from [CallTxDataBase](#interface-calltxdatabase).[gasPrice](#optional-gasprice)* -*Defined in [index.ts:392](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L392)* +*Defined in [index.ts:392](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L392)* ___ @@ -4203,7 +4212,7 @@ ___ *Inherited from [CallTxDataBase](#interface-calltxdatabase).[nonce](#optional-nonce)* -*Defined in [index.ts:394](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L394)* +*Defined in [index.ts:394](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L394)* ___ @@ -4213,7 +4222,7 @@ ___ *Inherited from [CallTxDataBase](#interface-calltxdatabase).[to](#optional-to)* -*Defined in [index.ts:389](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L389)* +*Defined in [index.ts:389](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L389)* ___ @@ -4223,7 +4232,7 @@ ___ *Overrides [CallTxDataBase](_index_.calltxdatabase.md).[value](#optional-value)* -*Defined in [index.ts:442](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L442)* +*Defined in [index.ts:442](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L442)*
@@ -4240,7 +4249,7 @@ This interface allowed sending synchonous requests, support for which was later ▸ **send**(`payload`: [JSONRPCRequestPayload](_index_.jsonrpcrequestpayload.md)): *[JSONRPCResponsePayload](#class-jsonrpcresponsepayload)* -*Defined in [index.ts:45](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L45)* +*Defined in [index.ts:45](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L45)* **Parameters:** @@ -4256,7 +4265,7 @@ ___ ▸ **sendAsync**(`payload`: [JSONRPCRequestPayload](_index_.jsonrpcrequestpayload.md), `callback`: [JSONRPCErrorCallback](#jsonrpcerrorcallback)): *void* -*Defined in [index.ts:44](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L44)* +*Defined in [index.ts:44](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L44)* **Parameters:** @@ -4282,7 +4291,7 @@ before the first attempts to conform to EIP1193 ▸ **send**(`payload`: [JSONRPCRequestPayload](_index_.jsonrpcrequestpayload.md), `callback`: [JSONRPCErrorCallback](#jsonrpcerrorcallback)): *void* -*Defined in [index.ts:54](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L54)* +*Defined in [index.ts:54](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L54)* **Parameters:** @@ -4308,7 +4317,7 @@ however it does not conform entirely. ▸ **send**(`method`: string, `params?`: any[]): *`Promise`* -*Defined in [index.ts:63](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L63)* +*Defined in [index.ts:63](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L63)* **Parameters:** @@ -4334,7 +4343,7 @@ add here • **isMetaMask**? : *undefined | false | true* -*Defined in [index.ts:31](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L31)* +*Defined in [index.ts:31](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L31)* ___ @@ -4342,7 +4351,7 @@ ___ • **isParity**? : *undefined | false | true* -*Defined in [index.ts:32](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L32)* +*Defined in [index.ts:32](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L32)* ___ @@ -4350,7 +4359,7 @@ ___ • **isZeroExProvider**? : *undefined | false | true* -*Defined in [index.ts:30](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L30)* +*Defined in [index.ts:30](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L30)* ## Methods @@ -4358,7 +4367,7 @@ ___ ▸ **enable**(): *`Promise`* -*Defined in [index.ts:34](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L34)* +*Defined in [index.ts:34](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L34)* **Returns:** *`Promise`* @@ -4368,7 +4377,7 @@ ___ ▸ **sendAsync**(`payload`: [JSONRPCRequestPayload](_index_.jsonrpcrequestpayload.md), `callback`: [JSONRPCErrorCallback](#jsonrpcerrorcallback)): *void* -*Defined in [index.ts:35](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L35)* +*Defined in [index.ts:35](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L35)* **Parameters:** @@ -4385,7 +4394,7 @@ ___ ▸ **stop**(): *void* -*Defined in [index.ts:33](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L33)* +*Defined in [index.ts:33](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L33)* **Returns:** *void* @@ -4400,7 +4409,7 @@ ___ Ƭ **AbiDefinition**: *[FunctionAbi](_index_.md#functionabi) | [EventAbi](#interface-eventabi) | [RevertErrorAbi](#interface-reverterrorabi)* -*Defined in [index.ts:80](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L80)* +*Defined in [index.ts:80](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L80)* ___ @@ -4408,7 +4417,7 @@ ___ Ƭ **BlockParam**: *[BlockParamLiteral](#enumeration-blockparamliteral) | number* -*Defined in [index.ts:483](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L483)* +*Defined in [index.ts:483](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L483)* ___ @@ -4416,7 +4425,7 @@ ___ Ƭ **ConstructorStateMutability**: *"nonpayable" | "payable"* -*Defined in [index.ts:84](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L84)* +*Defined in [index.ts:84](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L84)* ___ @@ -4424,7 +4433,7 @@ ___ Ƭ **ContractAbi**: *[AbiDefinition](#abidefinition)[]* -*Defined in [index.ts:78](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L78)* +*Defined in [index.ts:78](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L78)* ___ @@ -4432,7 +4441,7 @@ ___ Ƭ **ContractEventArg**: *any* -*Defined in [index.ts:468](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L468)* +*Defined in [index.ts:468](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L468)* ___ @@ -4440,7 +4449,7 @@ ___ Ƭ **DecodedLogs**: *`Array>`* -*Defined in [index.ts:439](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L439)* +*Defined in [index.ts:439](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L439)* ___ @@ -4448,7 +4457,7 @@ ___ Ƭ **EIP1193Event**: *"accountsChanged" | "networkChanged" | "close" | "connect" | "notification"* -*Defined in [index.ts:70](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L70)* +*Defined in [index.ts:70](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L70)* Interface for providers that conform to EIP 1193 Source: https://github.com/ethereum/EIPs/blob/master/EIPS/eip-1193.md @@ -4459,7 +4468,7 @@ ___ Ƭ **ErrorSeverity**: *"error" | "warning"* -*Defined in [index.ts:599](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L599)* +*Defined in [index.ts:599](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L599)* ___ @@ -4467,7 +4476,7 @@ ___ Ƭ **ErrorType**: *"JSONError" | "IOError" | "ParserError" | "DocstringParsingError" | "SyntaxError" | "DeclarationError" | "TypeError" | "UnimplementedFeatureError" | "InternalCompilerError" | "Exception" | "CompilerError" | "FatalError" | "Warning"* -*Defined in [index.ts:585](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L585)* +*Defined in [index.ts:585](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L585)* ___ @@ -4475,7 +4484,7 @@ ___ Ƭ **FunctionAbi**: *[MethodAbi](#interface-methodabi) | [ConstructorAbi](#interface-constructorabi) | [FallbackAbi](#interface-fallbackabi)* -*Defined in [index.ts:82](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L82)* +*Defined in [index.ts:82](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L82)* ___ @@ -4483,7 +4492,7 @@ ___ Ƭ **JSONRPCErrorCallback**: *function* -*Defined in [index.ts:3](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L3)* +*Defined in [index.ts:3](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L3)* #### Type declaration: @@ -4502,7 +4511,7 @@ ___ Ƭ **LogTopic**: *null | string | string[]* -*Defined in [index.ts:413](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L413)* +*Defined in [index.ts:413](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L413)* ___ @@ -4510,7 +4519,7 @@ ___ Ƭ **OutputField**: *"*" | "ast" | "legacyAST" | "abi" | "devdoc" | "userdoc" | "metadata" | "ir" | "evm.assembly" | "evm.legacyAssembly" | "evm.bytecode.object" | "evm.bytecode.opcodes" | "evm.bytecode.sourceMap" | "evm.bytecode.linkReferences" | "evm.deployedBytecode.object" | "evm.deployedBytecode.opcodes" | "evm.deployedBytecode.sourceMap" | "evm.deployedBytecode.linkReferences" | "evm.methodIdentifiers" | "evm.gasEstimates" | "ewasm.wast" | "ewasm.wasm"* -*Defined in [index.ts:525](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L525)* +*Defined in [index.ts:525](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L525)* ___ @@ -4518,7 +4527,7 @@ ___ Ƭ **ParamDescription**: *string* -*Defined in [index.ts:561](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L561)* +*Defined in [index.ts:561](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L561)* ___ @@ -4526,7 +4535,7 @@ ___ Ƭ **RawLog**: *[LogEntry](#interface-logentry)* -*Defined in [index.ts:475](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L475)* +*Defined in [index.ts:475](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L475)* ___ @@ -4534,7 +4543,7 @@ ___ Ƭ **StateMutability**: *"pure" | "view" | [ConstructorStateMutability](#constructorstatemutability)* -*Defined in [index.ts:85](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L85)* +*Defined in [index.ts:85](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L85)* ___ @@ -4542,7 +4551,7 @@ ___ Ƭ **SupportedProvider**: *[Web3JsProvider](_index_.md#web3jsprovider) | [GanacheProvider](#interface-ganacheprovider) | [EIP1193Provider](#interface-eip1193provider) | [ZeroExProvider](#interface-zeroexprovider)* -*Defined in [index.ts:9](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L9)* +*Defined in [index.ts:9](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L9)* Do not create your own provider. Use an existing provider from a Web3 or ProviderEngine library Read more about Providers in the guides section of the 0x docs. @@ -4553,7 +4562,7 @@ ___ Ƭ **TransactionReceiptStatus**: *null | string | `0` | `1`* -*Defined in [index.ts:445](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L445)* +*Defined in [index.ts:445](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L445)* ___ @@ -4561,7 +4570,7 @@ ___ Ƭ **Unit**: *"kwei" | "ada" | "mwei" | "babbage" | "gwei" | "shannon" | "szabo" | "finney" | "ether" | "kether" | "grand" | "einstein" | "mether" | "gether" | "tether"* -*Defined in [index.ts:310](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L310)* +*Defined in [index.ts:310](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L310)* ___ @@ -4569,7 +4578,7 @@ ___ Ƭ **Web3JsProvider**: *[Web3JsV1Provider](#interface-web3jsv1provider) | [Web3JsV2Provider](#interface-web3jsv2provider) | [Web3JsV3Provider](#interface-web3jsv3provider)* -*Defined in [index.ts:11](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L11)* +*Defined in [index.ts:11](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L11)*
diff --git a/packages/ethereum-types/package.json b/packages/ethereum-types/package.json index 38a1f38f1e..e7ac6daadd 100644 --- a/packages/ethereum-types/package.json +++ b/packages/ethereum-types/package.json @@ -1,6 +1,6 @@ { "name": "ethereum-types", - "version": "2.2.0-beta.0", + "version": "2.2.0-beta.1", "engines": { "node": ">=6.12" }, @@ -34,7 +34,7 @@ "homepage": "https://github.com/0xProject/0x-monorepo/packages/ethereum-types/README.md", "devDependencies": { "@0x/ts-doc-gen": "^0.0.22", - "@0x/tslint-config": "^3.0.1", + "@0x/tslint-config": "^3.1.0-beta.1", "make-promises-safe": "^1.1.0", "shx": "^0.2.2", "tslint": "5.11.0", diff --git a/packages/ethereum-types/src/index.ts b/packages/ethereum-types/src/index.ts index 82df4f3f9d..a23fbd5002 100644 --- a/packages/ethereum-types/src/index.ts +++ b/packages/ethereum-types/src/index.ts @@ -725,6 +725,7 @@ export interface Source { * isOfflineMode: If set to true - sol-compiler will not fetch the list of solc releases from github. It will use the hardcoded list. Defaults to false. * solcVersion: If you don't want to compile each contract with the Solidity version specified in-file, you can force all * contracts to compile with the the version specified here. + * shouldSaveStandardInput: Write the standard JSON input in ${contractsDir}/${contractName}.input.json */ export interface CompilerOptions { contractsDir?: string; @@ -734,6 +735,7 @@ export interface CompilerOptions { useDockerisedSolc?: boolean; isOfflineMode?: boolean; solcVersion?: string; + shouldSaveStandardInput?: boolean; } export interface BlockRange { diff --git a/packages/instant/package.json b/packages/instant/package.json index ff8c595176..558227917b 100644 --- a/packages/instant/package.json +++ b/packages/instant/package.json @@ -1,6 +1,6 @@ { "name": "@0x/instant", - "version": "1.0.32", + "version": "1.0.33", "engines": { "node": ">=6.12" }, @@ -43,19 +43,19 @@ }, "homepage": "https://github.com/0xProject/0x-monorepo/packages/instant/README.md", "dependencies": { - "@0x/assert": "^2.2.0-beta.0", + "@0x/assert": "^2.2.0-beta.1", "@0x/asset-buyer": "6.1.8", - "@0x/json-schemas": "^4.1.0-beta.0", - "@0x/order-utils": "^8.5.0-beta.0", - "@0x/subproviders": "^5.1.0-beta.0", - "@0x/types": "^2.5.0-beta.0", - "@0x/typescript-typings": "^4.4.0-beta.0", - "@0x/utils": "^4.6.0-beta.0", - "@0x/web3-wrapper": "^6.1.0-beta.0", + "@0x/json-schemas": "^4.1.0-beta.1", + "@0x/order-utils": "^8.5.0-beta.1", + "@0x/subproviders": "^5.1.0-beta.1", + "@0x/types": "^2.5.0-beta.1", + "@0x/typescript-typings": "^4.4.0-beta.1", + "@0x/utils": "^4.6.0-beta.1", + "@0x/web3-wrapper": "^6.1.0-beta.1", "babel-runtime": "^6.26.0", "bowser": "^1.9.4", "copy-to-clipboard": "^3.0.8", - "ethereum-types": "^2.2.0-beta.0", + "ethereum-types": "^2.2.0-beta.1", "lodash": "^4.17.11", "polished": "^1.9.2", "react": "^16.5.2", @@ -68,7 +68,7 @@ "ts-optchain": "^0.1.1" }, "devDependencies": { - "@0x/tslint-config": "^3.0.1", + "@0x/tslint-config": "^3.1.0-beta.1", "@static/discharge": "https://github.com/0xProject/discharge.git", "@types/enzyme": "^3.1.14", "@types/enzyme-adapter-react-16": "^1.0.3", diff --git a/packages/json-schemas/CHANGELOG.json b/packages/json-schemas/CHANGELOG.json index b328dbc6b2..3ba2cbcec5 100644 --- a/packages/json-schemas/CHANGELOG.json +++ b/packages/json-schemas/CHANGELOG.json @@ -1,12 +1,13 @@ [ { - "version": "5.0.0-beta.0", + "version": "4.1.0-beta.1", "changes": [ { "note": "All references to network ID have been removed, and references to chain ID have been introduced instead", "pr": 2313 } - ] + ], + "timestamp": 1573159180 }, { "version": "4.1.0-beta.0", diff --git a/packages/json-schemas/CHANGELOG.md b/packages/json-schemas/CHANGELOG.md index 9d107cd0ad..3e9379ad27 100644 --- a/packages/json-schemas/CHANGELOG.md +++ b/packages/json-schemas/CHANGELOG.md @@ -5,6 +5,10 @@ Edit the package's CHANGELOG.json file only. CHANGELOG +## v4.1.0-beta.1 - _November 7, 2019_ + + * All references to network ID have been removed, and references to chain ID have been introduced instead (#2313) + ## v4.1.0-beta.0 - _October 3, 2019_ * Add `eip712DomainSchema` schema (#1742) diff --git a/packages/json-schemas/docs/reference.mdx b/packages/json-schemas/docs/reference.mdx index 077fd6dedc..401ae7e51e 100644 --- a/packages/json-schemas/docs/reference.mdx +++ b/packages/json-schemas/docs/reference.mdx @@ -9,7 +9,7 @@ A validator for [JSON-schemas](http://json-schema.org/) \+ **new SchemaValidator**(): *[SchemaValidator](#class-schemavalidator)* -*Defined in [schema_validator.ts:15](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/json-schemas/src/schema_validator.ts#L15)* +*Defined in [schema_validator.ts:15](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/json-schemas/src/schema_validator.ts#L15)* Instantiates a SchemaValidator instance @@ -21,7 +21,7 @@ Instantiates a SchemaValidator instance ▸ **addSchema**(`schema`: `Schema`): *void* -*Defined in [schema_validator.ts:32](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/json-schemas/src/schema_validator.ts#L32)* +*Defined in [schema_validator.ts:32](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/json-schemas/src/schema_validator.ts#L32)* Add a schema to the validator. All schemas and sub-schemas must be added to the validator before the `validate` and `isValid` methods can be called with @@ -41,7 +41,7 @@ ___ ▸ **isValid**(`instance`: any, `schema`: `Schema`): *boolean* -*Defined in [schema_validator.ts:57](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/json-schemas/src/schema_validator.ts#L57)* +*Defined in [schema_validator.ts:57](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/json-schemas/src/schema_validator.ts#L57)* Check whether an instance properly adheres to a JSON schema @@ -62,7 +62,7 @@ ___ ▸ **validate**(`instance`: any, `schema`: `Schema`): *`ValidatorResult`* -*Defined in [schema_validator.ts:46](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/json-schemas/src/schema_validator.ts#L46)* +*Defined in [schema_validator.ts:46](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/json-schemas/src/schema_validator.ts#L46)* Validate the JS object conforms to a specific JSON schema diff --git a/packages/json-schemas/package.json b/packages/json-schemas/package.json index c6f2e10def..06a27a2ff2 100644 --- a/packages/json-schemas/package.json +++ b/packages/json-schemas/package.json @@ -1,6 +1,6 @@ { "name": "@0x/json-schemas", - "version": "4.1.0-beta.0", + "version": "4.1.0-beta.1", "engines": { "node": ">=6.12" }, @@ -43,15 +43,15 @@ }, "homepage": "https://github.com/0xProject/0x-monorepo/packages/json-schemas/README.md", "dependencies": { - "@0x/typescript-typings": "^4.4.0-beta.0", + "@0x/typescript-typings": "^4.4.0-beta.1", "@types/node": "*", "jsonschema": "^1.2.0", "lodash.values": "^4.3.0" }, "devDependencies": { "@0x/ts-doc-gen": "^0.0.22", - "@0x/tslint-config": "^3.0.1", - "@0x/utils": "^4.6.0-beta.0", + "@0x/tslint-config": "^3.1.0-beta.1", + "@0x/utils": "^4.6.0-beta.1", "@types/lodash.foreach": "^4.5.3", "@types/lodash.values": "^4.3.3", "@types/mocha": "^5.2.7", diff --git a/packages/json-schemas/schemas/relayer_api_orders_channel_subscribe_payload_schema.json b/packages/json-schemas/schemas/relayer_api_orders_channel_subscribe_payload_schema.json index 120ec5ab25..a002c21fb9 100644 --- a/packages/json-schemas/schemas/relayer_api_orders_channel_subscribe_payload_schema.json +++ b/packages/json-schemas/schemas/relayer_api_orders_channel_subscribe_payload_schema.json @@ -2,13 +2,26 @@ "id": "/relayerApiOrdersChannelSubscribePayloadSchema", "type": "object", "properties": { - "makerAssetProxyId": { "$ref": "/hexSchema" }, - "takerAssetProxyId": { "$ref": "/hexSchema" }, - "chainId": { "type": "number" }, - "makerAssetAddress": { "$ref": "/addressSchema" }, - "takerAssetAddress": { "$ref": "/addressSchema" }, - "makerAssetData": { "$ref": "/hexSchema" }, - "takerAssetData": { "$ref": "/hexSchema" }, - "traderAssetData": { "$ref": "/hexSchema" } + "makerAssetProxyId": { + "$ref": "/hexSchema" + }, + "takerAssetProxyId": { + "$ref": "/hexSchema" + }, + "makerAssetAddress": { + "$ref": "/addressSchema" + }, + "takerAssetAddress": { + "$ref": "/addressSchema" + }, + "makerAssetData": { + "$ref": "/hexSchema" + }, + "takerAssetData": { + "$ref": "/hexSchema" + }, + "traderAssetData": { + "$ref": "/hexSchema" + } } } diff --git a/packages/json-schemas/schemas/request_opts_schema.json b/packages/json-schemas/schemas/request_opts_schema.json deleted file mode 100644 index 54dba1d66b..0000000000 --- a/packages/json-schemas/schemas/request_opts_schema.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "id": "/RequestOptsSchema", - "type": "object", - "properties": { - "chainId": { "type": "number" } - } -} diff --git a/packages/json-schemas/src/schemas.ts b/packages/json-schemas/src/schemas.ts index 7c05322fd9..23836257b1 100644 --- a/packages/json-schemas/src/schemas.ts +++ b/packages/json-schemas/src/schemas.ts @@ -36,7 +36,6 @@ import * as relayerApiOrdersChannelSubscribeSchema from '../schemas/relayer_api_ import * as relayerApiOrdersChannelUpdateSchema from '../schemas/relayer_api_orders_channel_update_response_schema.json'; import * as relayerApiOrdersResponseSchema from '../schemas/relayer_api_orders_response_schema.json'; import * as relayerApiOrdersSchema from '../schemas/relayer_api_orders_schema.json'; -import * as requestOptsSchema from '../schemas/request_opts_schema.json'; import * as signedOrderSchema from '../schemas/signed_order_schema.json'; import * as signedOrdersSchema from '../schemas/signed_orders_schema.json'; import * as tokenSchema from '../schemas/token_schema.json'; @@ -66,7 +65,6 @@ export const schemas = { blockRangeSchema, tokenSchema, jsNumber, - requestOptsSchema, pagedRequestOptsSchema, ordersRequestOptsSchema, orderBookRequestSchema, diff --git a/packages/json-schemas/tsconfig.json b/packages/json-schemas/tsconfig.json index 84cd571ffb..75fe2277af 100644 --- a/packages/json-schemas/tsconfig.json +++ b/packages/json-schemas/tsconfig.json @@ -50,7 +50,6 @@ "./schemas/orderbook_request_schema.json", "./schemas/orders_request_opts_schema.json", "./schemas/paged_request_opts_schema.json", - "./schemas/request_opts_schema.json", "./schemas/order_config_request_schema.json" ] } diff --git a/packages/migrations/CHANGELOG.json b/packages/migrations/CHANGELOG.json index 0d82545df3..e956bfe4f2 100644 --- a/packages/migrations/CHANGELOG.json +++ b/packages/migrations/CHANGELOG.json @@ -1,6 +1,15 @@ [ { - "version": "5.0.0-beta.0", + "version": "4.4.0-beta.2", + "changes": [ + { + "note": "Migrations script no longer deploys DutchAuction since it is not yet upgraded for V3 of the protocol", + "pr": 2324 + } + ] + }, + { + "version": "4.4.0-beta.1", "changes": [ { "note": "Update all contract deployments to pass the actual chain ID (rather than the network ID) via the newly modified @0x/utils/provider_utils", @@ -10,7 +19,8 @@ "note": "All references to network ID have been removed, and references to chain ID have been introduced instead", "pr": 2313 } - ] + ], + "timestamp": 1573159180 }, { "version": "4.4.0-beta.0", diff --git a/packages/migrations/CHANGELOG.md b/packages/migrations/CHANGELOG.md index e9cd247c72..0dca6758c8 100644 --- a/packages/migrations/CHANGELOG.md +++ b/packages/migrations/CHANGELOG.md @@ -5,6 +5,11 @@ Edit the package's CHANGELOG.json file only. CHANGELOG +## v4.4.0-beta.1 - _November 7, 2019_ + + * Update all contract deployments to pass the actual chain ID (rather than the network ID) via the newly modified @0x/utils/provider_utils (#2270) + * All references to network ID have been removed, and references to chain ID have been introduced instead (#2313) + ## v4.4.0-beta.0 - _October 3, 2019_ * Update Coordinator and Exchange deployments to pass `chainId` (#1742) diff --git a/packages/migrations/docs/reference.mdx b/packages/migrations/docs/reference.mdx index be2b4248f5..c31a00ebd2 100644 --- a/packages/migrations/docs/reference.mdx +++ b/packages/migrations/docs/reference.mdx @@ -1,5 +1,25 @@ +# Interface: GanacheProvider +## Methods + +### sendAsync + +▸ **sendAsync**(`payload`: [JSONRPCRequestPayload](_ethereum_types_src_index_.jsonrpcrequestpayload.md), `callback`: [JSONRPCErrorCallback](#jsonrpcerrorcallback)): *void* + +*Defined in [ethereum-types/src/index.ts:14](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L14)* + +**Parameters:** + +Name | Type | +------ | ------ | +`payload` | [JSONRPCRequestPayload](#class-jsonrpcrequestpayload) | +`callback` | [JSONRPCErrorCallback](#jsonrpcerrorcallback) | + +**Returns:** *void* + +
+ @@ -17,7 +37,7 @@ • **assetProxyOwner**: *string* -*Defined in [contract-addresses/src/index.ts:9](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/contract-addresses/src/index.ts#L9)* +*Defined in [contract-addresses/src/index.ts:12](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/contract-addresses/src/index.ts#L12)* ___ @@ -25,7 +45,7 @@ ___ • **coordinator**: *string* -*Defined in [contract-addresses/src/index.ts:14](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/contract-addresses/src/index.ts#L14)* +*Defined in [contract-addresses/src/index.ts:18](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/contract-addresses/src/index.ts#L18)* ___ @@ -33,7 +53,7 @@ ___ • **coordinatorRegistry**: *string* -*Defined in [contract-addresses/src/index.ts:13](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/contract-addresses/src/index.ts#L13)* +*Defined in [contract-addresses/src/index.ts:17](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/contract-addresses/src/index.ts#L17)* ___ @@ -41,7 +61,7 @@ ___ • **devUtils**: *string* -*Defined in [contract-addresses/src/index.ts:18](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/contract-addresses/src/index.ts#L18)* +*Defined in [contract-addresses/src/index.ts:22](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/contract-addresses/src/index.ts#L22)* ___ @@ -49,7 +69,7 @@ ___ • **dutchAuction**: *string* -*Defined in [contract-addresses/src/index.ts:12](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/contract-addresses/src/index.ts#L12)* +*Defined in [contract-addresses/src/index.ts:16](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/contract-addresses/src/index.ts#L16)* ___ @@ -57,7 +77,15 @@ ___ • **erc1155Proxy**: *string* -*Defined in [contract-addresses/src/index.ts:17](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/contract-addresses/src/index.ts#L17)* +*Defined in [contract-addresses/src/index.ts:21](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/contract-addresses/src/index.ts#L21)* + +___ + +### erc20BridgeProxy + +• **erc20BridgeProxy**: *string* + +*Defined in [contract-addresses/src/index.ts:26](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/contract-addresses/src/index.ts#L26)* ___ @@ -65,7 +93,7 @@ ___ • **erc20Proxy**: *string* -*Defined in [contract-addresses/src/index.ts:4](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/contract-addresses/src/index.ts#L4)* +*Defined in [contract-addresses/src/index.ts:6](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/contract-addresses/src/index.ts#L6)* ___ @@ -73,7 +101,7 @@ ___ • **erc721Proxy**: *string* -*Defined in [contract-addresses/src/index.ts:5](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/contract-addresses/src/index.ts#L5)* +*Defined in [contract-addresses/src/index.ts:7](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/contract-addresses/src/index.ts#L7)* ___ @@ -81,7 +109,7 @@ ___ • **etherToken**: *string* -*Defined in [contract-addresses/src/index.ts:7](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/contract-addresses/src/index.ts#L7)* +*Defined in [contract-addresses/src/index.ts:9](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/contract-addresses/src/index.ts#L9)* ___ @@ -89,7 +117,15 @@ ___ • **exchange**: *string* -*Defined in [contract-addresses/src/index.ts:8](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/contract-addresses/src/index.ts#L8)* +*Defined in [contract-addresses/src/index.ts:11](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/contract-addresses/src/index.ts#L11)* + +___ + +### exchangeV2 + +• **exchangeV2**: *string* + +*Defined in [contract-addresses/src/index.ts:10](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/contract-addresses/src/index.ts#L10)* ___ @@ -97,7 +133,7 @@ ___ • **forwarder**: *string* -*Defined in [contract-addresses/src/index.ts:10](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/contract-addresses/src/index.ts#L10)* +*Defined in [contract-addresses/src/index.ts:14](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/contract-addresses/src/index.ts#L14)* ___ @@ -105,7 +141,7 @@ ___ • **multiAssetProxy**: *string* -*Defined in [contract-addresses/src/index.ts:15](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/contract-addresses/src/index.ts#L15)* +*Defined in [contract-addresses/src/index.ts:19](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/contract-addresses/src/index.ts#L19)* ___ @@ -113,7 +149,23 @@ ___ • **orderValidator**: *string* -*Defined in [contract-addresses/src/index.ts:11](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/contract-addresses/src/index.ts#L11)* +*Defined in [contract-addresses/src/index.ts:15](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/contract-addresses/src/index.ts#L15)* + +___ + +### staking + +• **staking**: *string* + +*Defined in [contract-addresses/src/index.ts:24](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/contract-addresses/src/index.ts#L24)* + +___ + +### stakingProxy + +• **stakingProxy**: *string* + +*Defined in [contract-addresses/src/index.ts:25](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/contract-addresses/src/index.ts#L25)* ___ @@ -121,7 +173,15 @@ ___ • **staticCallProxy**: *string* -*Defined in [contract-addresses/src/index.ts:16](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/contract-addresses/src/index.ts#L16)* +*Defined in [contract-addresses/src/index.ts:20](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/contract-addresses/src/index.ts#L20)* + +___ + +### zeroExGovernor + +• **zeroExGovernor**: *string* + +*Defined in [contract-addresses/src/index.ts:13](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/contract-addresses/src/index.ts#L13)* ___ @@ -129,7 +189,15 @@ ___ • **zrxToken**: *string* -*Defined in [contract-addresses/src/index.ts:6](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/contract-addresses/src/index.ts#L6)* +*Defined in [contract-addresses/src/index.ts:8](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/contract-addresses/src/index.ts#L8)* + +___ + +### zrxVault + +• **zrxVault**: *string* + +*Defined in [contract-addresses/src/index.ts:23](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/contract-addresses/src/index.ts#L23)*
@@ -178,7 +246,7 @@ ___ • **isEIP1193**: *boolean* -*Defined in [ethereum-types/src/index.ts:73](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L73)* +*Defined in [ethereum-types/src/index.ts:73](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L73)* ## Methods @@ -186,7 +254,7 @@ ___ ▸ **on**(`event`: [EIP1193Event](#eip1193event), `listener`: function): *this* -*Defined in [ethereum-types/src/index.ts:75](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L75)* +*Defined in [ethereum-types/src/index.ts:75](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L75)* **Parameters:** @@ -210,7 +278,7 @@ ___ ▸ **send**(`method`: string, `params?`: any[]): *`Promise`* -*Defined in [ethereum-types/src/index.ts:74](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L74)* +*Defined in [ethereum-types/src/index.ts:74](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L74)* **Parameters:** @@ -235,28 +303,8 @@ Name | Type | -# Interface: GanacheProvider -## Methods - -### sendAsync - -▸ **sendAsync**(`payload`: [JSONRPCRequestPayload](_ethereum_types_src_index_.jsonrpcrequestpayload.md), `callback`: [JSONRPCErrorCallback](#jsonrpcerrorcallback)): *void* - -*Defined in [ethereum-types/src/index.ts:14](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L14)* - -**Parameters:** - -Name | Type | ------- | ------ | -`payload` | [JSONRPCRequestPayload](#class-jsonrpcrequestpayload) | -`callback` | [JSONRPCErrorCallback](#jsonrpcerrorcallback) | - -**Returns:** *void* - -
- # Interface: JSONRPCRequestPayload @@ -268,7 +316,7 @@ Name | Type | • **id**: *number* -*Defined in [ethereum-types/src/index.ts:330](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L330)* +*Defined in [ethereum-types/src/index.ts:330](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L330)* ___ @@ -276,7 +324,7 @@ ___ • **jsonrpc**: *string* -*Defined in [ethereum-types/src/index.ts:331](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L331)* +*Defined in [ethereum-types/src/index.ts:331](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L331)* ___ @@ -284,7 +332,7 @@ ___ • **method**: *string* -*Defined in [ethereum-types/src/index.ts:329](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L329)* +*Defined in [ethereum-types/src/index.ts:329](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L329)* ___ @@ -292,7 +340,7 @@ ___ • **params**: *any[]* -*Defined in [ethereum-types/src/index.ts:328](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L328)* +*Defined in [ethereum-types/src/index.ts:328](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L328)*
@@ -305,7 +353,7 @@ ___ • **code**: *number* -*Defined in [ethereum-types/src/index.ts:336](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L336)* +*Defined in [ethereum-types/src/index.ts:336](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L336)* ___ @@ -313,7 +361,7 @@ ___ • **message**: *string* -*Defined in [ethereum-types/src/index.ts:335](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L335)* +*Defined in [ethereum-types/src/index.ts:335](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L335)*
@@ -326,7 +374,7 @@ ___ • **error**? : *[JSONRPCResponseError](#class-jsonrpcresponseerror)* -*Defined in [ethereum-types/src/index.ts:343](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L343)* +*Defined in [ethereum-types/src/index.ts:343](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L343)* ___ @@ -334,7 +382,7 @@ ___ • **id**: *number* -*Defined in [ethereum-types/src/index.ts:341](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L341)* +*Defined in [ethereum-types/src/index.ts:341](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L341)* ___ @@ -342,7 +390,7 @@ ___ • **jsonrpc**: *string* -*Defined in [ethereum-types/src/index.ts:342](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L342)* +*Defined in [ethereum-types/src/index.ts:342](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L342)* ___ @@ -350,7 +398,7 @@ ___ • **result**: *any* -*Defined in [ethereum-types/src/index.ts:340](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L340)* +*Defined in [ethereum-types/src/index.ts:340](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L340)*
@@ -405,7 +453,7 @@ ___ *Inherited from [CallTxDataBase](#interface-calltxdatabase).[data](#optional-data)* -*Defined in [ethereum-types/src/index.ts:393](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L393)* +*Defined in [ethereum-types/src/index.ts:393](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L393)* ___ @@ -413,7 +461,7 @@ ___ • **from**: *string* -*Defined in [ethereum-types/src/index.ts:398](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L398)* +*Defined in [ethereum-types/src/index.ts:398](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L398)* ___ @@ -423,7 +471,7 @@ ___ *Inherited from [CallTxDataBase](#interface-calltxdatabase).[gas](#optional-gas)* -*Defined in [ethereum-types/src/index.ts:391](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L391)* +*Defined in [ethereum-types/src/index.ts:391](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L391)* ___ @@ -433,7 +481,7 @@ ___ *Inherited from [CallTxDataBase](#interface-calltxdatabase).[gasPrice](#optional-gasprice)* -*Defined in [ethereum-types/src/index.ts:392](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L392)* +*Defined in [ethereum-types/src/index.ts:392](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L392)* ___ @@ -443,7 +491,7 @@ ___ *Inherited from [CallTxDataBase](#interface-calltxdatabase).[nonce](#optional-nonce)* -*Defined in [ethereum-types/src/index.ts:394](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L394)* +*Defined in [ethereum-types/src/index.ts:394](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L394)* ___ @@ -453,7 +501,7 @@ ___ *Inherited from [CallTxDataBase](#interface-calltxdatabase).[to](#optional-to)* -*Defined in [ethereum-types/src/index.ts:389](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L389)* +*Defined in [ethereum-types/src/index.ts:389](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L389)* ___ @@ -463,7 +511,7 @@ ___ *Inherited from [CallTxDataBase](#interface-calltxdatabase).[value](#optional-value)* -*Defined in [ethereum-types/src/index.ts:390](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L390)* +*Defined in [ethereum-types/src/index.ts:390](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L390)*
@@ -478,7 +526,7 @@ ___ *Inherited from [CallTxDataBase](#interface-calltxdatabase).[data](#optional-data)* -*Defined in [ethereum-types/src/index.ts:393](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L393)* +*Defined in [ethereum-types/src/index.ts:393](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L393)* ___ @@ -488,7 +536,7 @@ ___ *Inherited from [TxData](#interface-txdata).[from](#from)* -*Defined in [ethereum-types/src/index.ts:398](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L398)* +*Defined in [ethereum-types/src/index.ts:398](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L398)* ___ @@ -498,7 +546,7 @@ ___ *Inherited from [CallTxDataBase](#interface-calltxdatabase).[gas](#optional-gas)* -*Defined in [ethereum-types/src/index.ts:391](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L391)* +*Defined in [ethereum-types/src/index.ts:391](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L391)* ___ @@ -508,7 +556,7 @@ ___ *Inherited from [CallTxDataBase](#interface-calltxdatabase).[gasPrice](#optional-gasprice)* -*Defined in [ethereum-types/src/index.ts:392](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L392)* +*Defined in [ethereum-types/src/index.ts:392](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L392)* ___ @@ -518,7 +566,7 @@ ___ *Inherited from [CallTxDataBase](#interface-calltxdatabase).[nonce](#optional-nonce)* -*Defined in [ethereum-types/src/index.ts:394](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L394)* +*Defined in [ethereum-types/src/index.ts:394](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L394)* ___ @@ -528,7 +576,7 @@ ___ *Inherited from [CallTxDataBase](#interface-calltxdatabase).[to](#optional-to)* -*Defined in [ethereum-types/src/index.ts:389](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L389)* +*Defined in [ethereum-types/src/index.ts:389](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L389)* ___ @@ -538,7 +586,7 @@ ___ *Overrides [CallTxDataBase](_ethereum_types_src_index_.calltxdatabase.md).[value](#optional-value)* -*Defined in [ethereum-types/src/index.ts:442](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L442)* +*Defined in [ethereum-types/src/index.ts:442](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L442)*
@@ -555,7 +603,7 @@ This interface allowed sending synchonous requests, support for which was later ▸ **send**(`payload`: [JSONRPCRequestPayload](_ethereum_types_src_index_.jsonrpcrequestpayload.md)): *[JSONRPCResponsePayload](#class-jsonrpcresponsepayload)* -*Defined in [ethereum-types/src/index.ts:45](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L45)* +*Defined in [ethereum-types/src/index.ts:45](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L45)* **Parameters:** @@ -571,7 +619,7 @@ ___ ▸ **sendAsync**(`payload`: [JSONRPCRequestPayload](_ethereum_types_src_index_.jsonrpcrequestpayload.md), `callback`: [JSONRPCErrorCallback](#jsonrpcerrorcallback)): *void* -*Defined in [ethereum-types/src/index.ts:44](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L44)* +*Defined in [ethereum-types/src/index.ts:44](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L44)* **Parameters:** @@ -597,7 +645,7 @@ before the first attempts to conform to EIP1193 ▸ **send**(`payload`: [JSONRPCRequestPayload](_ethereum_types_src_index_.jsonrpcrequestpayload.md), `callback`: [JSONRPCErrorCallback](#jsonrpcerrorcallback)): *void* -*Defined in [ethereum-types/src/index.ts:54](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L54)* +*Defined in [ethereum-types/src/index.ts:54](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L54)* **Parameters:** @@ -623,7 +671,7 @@ however it does not conform entirely. ▸ **send**(`method`: string, `params?`: any[]): *`Promise`* -*Defined in [ethereum-types/src/index.ts:63](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L63)* +*Defined in [ethereum-types/src/index.ts:63](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L63)* **Parameters:** @@ -649,7 +697,7 @@ add here • **isMetaMask**? : *undefined | false | true* -*Defined in [ethereum-types/src/index.ts:31](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L31)* +*Defined in [ethereum-types/src/index.ts:31](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L31)* ___ @@ -657,7 +705,7 @@ ___ • **isParity**? : *undefined | false | true* -*Defined in [ethereum-types/src/index.ts:32](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L32)* +*Defined in [ethereum-types/src/index.ts:32](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L32)* ___ @@ -665,7 +713,7 @@ ___ • **isZeroExProvider**? : *undefined | false | true* -*Defined in [ethereum-types/src/index.ts:30](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L30)* +*Defined in [ethereum-types/src/index.ts:30](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L30)* ## Methods @@ -673,7 +721,7 @@ ___ ▸ **enable**(): *`Promise`* -*Defined in [ethereum-types/src/index.ts:34](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L34)* +*Defined in [ethereum-types/src/index.ts:34](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L34)* **Returns:** *`Promise`* @@ -683,7 +731,7 @@ ___ ▸ **sendAsync**(`payload`: [JSONRPCRequestPayload](_ethereum_types_src_index_.jsonrpcrequestpayload.md), `callback`: [JSONRPCErrorCallback](#jsonrpcerrorcallback)): *void* -*Defined in [ethereum-types/src/index.ts:35](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L35)* +*Defined in [ethereum-types/src/index.ts:35](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L35)* **Parameters:** @@ -700,7 +748,7 @@ ___ ▸ **stop**(): *void* -*Defined in [ethereum-types/src/index.ts:33](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L33)* +*Defined in [ethereum-types/src/index.ts:33](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L33)* **Returns:** *void* @@ -711,26 +759,76 @@ ___ ## Functions -### getContractAddressesForNetworkOrThrow +### runMigrationsAsync + +▸ **runMigrationsAsync**(`supportedProvider`: [SupportedProvider](#supportedprovider), `txDefaults`: `TxData`): *`Promise`* + +*Defined in [migrations/src/migration.ts:63](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/migrations/src/migration.ts#L63)* + +Creates and deploys all the contracts that are required for the latest +version of the 0x protocol. + +**Parameters:** + +Name | Type | Description | +------ | ------ | ------ | +`supportedProvider` | [SupportedProvider](#supportedprovider) | Web3 provider instance. Your provider instance should connect to the testnet you want to deploy to. | +`txDefaults` | `TxData` | Default transaction values to use when deploying contracts (e.g., specify the desired contract creator with the `from` parameter). | + +**Returns:** *`Promise`* + +The addresses of the contracts that were deployed. + +___ + +### runMigrationsOnceAsync + +▸ **runMigrationsOnceAsync**(`provider`: `Web3ProviderEngine`, `txDefaults`: `TxData`): *`Promise`* + +*Defined in [migrations/src/migration.ts:330](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/migrations/src/migration.ts#L330)* + +Exactly like runMigrationsAsync but will only run the migrations the first +time it is called. Any subsequent calls will return the cached contract +addresses. + +**Parameters:** + +Name | Type | Description | +------ | ------ | ------ | +`provider` | `Web3ProviderEngine` | Web3 provider instance. Your provider instance should connect to the testnet you want to deploy to. | +`txDefaults` | `TxData` | Default transaction values to use when deploying contracts (e.g., specify the desired contract creator with the `from` parameter). | + +**Returns:** *`Promise`* + +The addresses of the contracts that were deployed. + +
+ + + + +## Functions + +### getContractAddressesForChainOrThrow -▸ **getContractAddressesForNetworkOrThrow**(`networkId`: [NetworkId](#enumeration-networkid)): *[ContractAddresses](#interface-contractaddresses)* +▸ **getContractAddressesForChainOrThrow**(`chainId`: [ChainId](#enumeration-chainid)): *[ContractAddresses](#interface-contractaddresses)* -*Defined in [contract-addresses/src/index.ts:128](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/contract-addresses/src/index.ts#L128)* +*Defined in [contract-addresses/src/index.ts:45](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/contract-addresses/src/index.ts#L45)* Used to get addresses of contracts that have been deployed to either the Ethereum mainnet or a supported testnet. Throws if there are no known -contracts deployed on the corresponding network. +contracts deployed on the corresponding chain. **Parameters:** Name | Type | Description | ------ | ------ | ------ | -`networkId` | [NetworkId](#enumeration-networkid) | The desired networkId. | +`chainId` | [ChainId](#enumeration-chainid) | The desired chainId. | **Returns:** *[ContractAddresses](#interface-contractaddresses)* The set of addresses for contracts which have been deployed on the -given networkId. +given chainId.
@@ -755,7 +853,7 @@ given networkId. Ƭ **EIP1193Event**: *"accountsChanged" | "networkChanged" | "close" | "connect" | "notification"* -*Defined in [ethereum-types/src/index.ts:70](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L70)* +*Defined in [ethereum-types/src/index.ts:70](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L70)* Interface for providers that conform to EIP 1193 Source: https://github.com/ethereum/EIPs/blob/master/EIPS/eip-1193.md @@ -772,7 +870,7 @@ ___ Ƭ **JSONRPCErrorCallback**: *function* -*Defined in [ethereum-types/src/index.ts:3](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L3)* +*Defined in [ethereum-types/src/index.ts:3](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L3)* #### Type declaration: @@ -801,7 +899,7 @@ ___ Ƭ **SupportedProvider**: *[Web3JsProvider](_ethereum_types_src_index_.md#web3jsprovider) | [GanacheProvider](#interface-ganacheprovider) | [EIP1193Provider](#interface-eip1193provider) | [ZeroExProvider](#interface-zeroexprovider)* -*Defined in [ethereum-types/src/index.ts:9](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L9)* +*Defined in [ethereum-types/src/index.ts:9](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L9)* Do not create your own provider. Use an existing provider from a Web3 or ProviderEngine library Read more about Providers in the guides section of the 0x docs. @@ -816,57 +914,7 @@ ___ Ƭ **Web3JsProvider**: *[Web3JsV1Provider](#interface-web3jsv1provider) | [Web3JsV2Provider](#interface-web3jsv2provider) | [Web3JsV3Provider](#interface-web3jsv3provider)* -*Defined in [ethereum-types/src/index.ts:11](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L11)* - -
- - - - -## Functions - -### runMigrationsAsync - -▸ **runMigrationsAsync**(`supportedProvider`: [SupportedProvider](#supportedprovider), `txDefaults`: `TxData`): *`Promise`* - -*Defined in [migrations/src/migration.ts:48](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/migrations/src/migration.ts#L48)* - -Creates and deploys all the contracts that are required for the latest -version of the 0x protocol. - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`supportedProvider` | [SupportedProvider](#supportedprovider) | Web3 provider instance. Your provider instance should connect to the testnet you want to deploy to. | -`txDefaults` | `TxData` | Default transaction values to use when deploying contracts (e.g., specify the desired contract creator with the `from` parameter). | - -**Returns:** *`Promise`* - -The addresses of the contracts that were deployed. - -___ - -### runMigrationsOnceAsync - -▸ **runMigrationsOnceAsync**(`provider`: `Web3ProviderEngine`, `txDefaults`: `TxData`): *`Promise`* - -*Defined in [migrations/src/migration.ts:335](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/migrations/src/migration.ts#L335)* - -Exactly like runMigrationsAsync but will only run the migrations the first -time it is called. Any subsequent calls will return the cached contract -addresses. - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`provider` | `Web3ProviderEngine` | Web3 provider instance. Your provider instance should connect to the testnet you want to deploy to. | -`txDefaults` | `TxData` | Default transaction values to use when deploying contracts (e.g., specify the desired contract creator with the `from` parameter). | - -**Returns:** *`Promise`* - -The addresses of the contracts that were deployed. +*Defined in [ethereum-types/src/index.ts:11](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L11)*
diff --git a/packages/migrations/package.json b/packages/migrations/package.json index b5384238d1..fa9e0960da 100644 --- a/packages/migrations/package.json +++ b/packages/migrations/package.json @@ -1,6 +1,6 @@ { "name": "@0x/migrations", - "version": "4.4.0-beta.0", + "version": "4.4.0-beta.1", "engines": { "node": ">=6.12" }, @@ -40,10 +40,10 @@ }, "license": "Apache-2.0", "devDependencies": { - "@0x/dev-utils": "^2.4.0-beta.0", + "@0x/dev-utils": "^2.4.0-beta.1", "@0x/ts-doc-gen": "^0.0.22", - "@0x/tslint-config": "^3.0.1", - "@0x/types": "^2.5.0-beta.0", + "@0x/tslint-config": "^3.1.0-beta.1", + "@0x/types": "^2.5.0-beta.1", "@types/yargs": "^11.0.0", "make-promises-safe": "^1.1.0", "npm-run-all": "^4.1.2", @@ -55,26 +55,30 @@ "yargs": "^10.0.3" }, "dependencies": { - "@0x/contracts-asset-proxy": "2.3.0-beta.0", - "@0x/contracts-exchange-forwarder": "3.1.0-beta.0", - "@0x/contracts-dev-utils": "0.1.0-beta.0", - "@0x/contracts-coordinator": "2.1.0-beta.0", - "@0x/contracts-multisig": "^3.2.0-beta.0", - "@0x/contracts-staking": "^1.1.0-beta.0", - "@0x/contracts-exchange": "^2.2.0-beta.0", - "@0x/contracts-utils": "^3.3.0-beta.0", - "@0x/abi-gen-wrappers": "^5.4.0-beta.0", - "@0x/base-contract": "^5.5.0-beta.0", - "@0x/contract-addresses": "^3.3.0-beta.0", - "@0x/contract-artifacts": "^2.3.0-beta.0", - "@0x/sol-compiler": "^3.2.0-beta.0", - "@0x/subproviders": "^5.1.0-beta.0", - "@0x/typescript-typings": "^4.4.0-beta.0", - "@0x/utils": "^4.6.0-beta.0", - "@0x/web3-wrapper": "^6.1.0-beta.0", + "@0x/abi-gen-wrappers": "^5.4.0-beta.1", + "@0x/base-contract": "^5.5.0-beta.1", + "@0x/contract-addresses": "^3.3.0-beta.2", + "@0x/contract-artifacts": "^2.3.0-beta.2", + "@0x/contracts-asset-proxy": "2.3.0-beta.1", + "@0x/contracts-exchange-forwarder": "3.1.0-beta.1", + "@0x/contracts-dev-utils": "^0.1.0-beta.1", + "@0x/contracts-coordinator": "2.1.0-beta.1", + "@0x/contracts-multisig": "^3.2.0-beta.1", + "@0x/contracts-staking": "^1.1.0-beta.1", + "@0x/contracts-exchange": "^2.2.0-beta.1", + "@0x/contracts-extensions": "^4.1.0-beta.1", + "@0x/contracts-utils": "^3.3.0-beta.1", + "@0x/contracts-erc20": "^2.3.0-beta.1", + "@0x/contracts-erc721": "^2.2.0-beta.1", + "@0x/contracts-erc1155": "^1.2.0-beta.1", + "@0x/sol-compiler": "^3.2.0-beta.1", + "@0x/subproviders": "^5.1.0-beta.1", + "@0x/typescript-typings": "^4.4.0-beta.1", + "@0x/utils": "^4.6.0-beta.1", + "@0x/web3-wrapper": "^6.1.0-beta.1", "@ledgerhq/hw-app-eth": "^4.3.0", "@types/web3-provider-engine": "^14.0.0", - "ethereum-types": "^2.2.0-beta.0", + "ethereum-types": "^2.2.0-beta.1", "ethers": "~4.0.4", "lodash": "^4.17.11" }, diff --git a/packages/migrations/src/migration.ts b/packages/migrations/src/migration.ts index 7bd22f948f..a2247ffc29 100644 --- a/packages/migrations/src/migration.ts +++ b/packages/migrations/src/migration.ts @@ -1,6 +1,20 @@ -import * as wrappers from '@0x/abi-gen-wrappers'; +import { CoordinatorContract, OrderValidatorContract } from '@0x/abi-gen-wrappers'; import { ContractAddresses } from '@0x/contract-addresses'; import * as artifacts from '@0x/contract-artifacts'; +import { + ERC1155ProxyContract, + ERC20ProxyContract, + ERC721ProxyContract, + MultiAssetProxyContract, + StaticCallProxyContract, +} from '@0x/contracts-asset-proxy'; +import { CoordinatorRegistryContract } from '@0x/contracts-coordinator'; +import { DevUtilsContract } from '@0x/contracts-dev-utils'; +import { ERC1155MintableContract } from '@0x/contracts-erc1155'; +import { DummyERC20TokenContract, WETH9Contract, ZRXTokenContract } from '@0x/contracts-erc20'; +import { DummyERC721TokenContract } from '@0x/contracts-erc721'; +import { ExchangeContract } from '@0x/contracts-exchange'; +import { ForwarderContract } from '@0x/contracts-exchange-forwarder'; import { Web3ProviderEngine } from '@0x/subproviders'; import { AbiEncoder, BigNumber, providerUtils } from '@0x/utils'; import { Web3Wrapper } from '@0x/web3-wrapper'; @@ -55,13 +69,13 @@ export async function runMigrationsAsync( const chainId = new BigNumber(await providerUtils.getChainIdAsync(provider)); // Proxies - const erc20Proxy = await wrappers.ERC20ProxyContract.deployFrom0xArtifactAsync( + const erc20Proxy = await ERC20ProxyContract.deployFrom0xArtifactAsync( artifacts.ERC20Proxy, provider, txDefaults, artifacts, ); - const erc721Proxy = await wrappers.ERC721ProxyContract.deployFrom0xArtifactAsync( + const erc721Proxy = await ERC721ProxyContract.deployFrom0xArtifactAsync( artifacts.ERC721Proxy, provider, txDefaults, @@ -69,7 +83,7 @@ export async function runMigrationsAsync( ); // ZRX - const zrxToken = await wrappers.ZRXTokenContract.deployFrom0xArtifactAsync( + const zrxToken = await ZRXTokenContract.deployFrom0xArtifactAsync( artifacts.ZRXToken, provider, txDefaults, @@ -77,16 +91,12 @@ export async function runMigrationsAsync( ); // Ether token - const etherToken = await wrappers.WETH9Contract.deployFrom0xArtifactAsync( - artifacts.WETH9, - provider, - txDefaults, - artifacts, - ); + const etherToken = await WETH9Contract.deployFrom0xArtifactAsync(artifacts.WETH9, provider, txDefaults, artifacts); // Exchange + // tslint:disable-next-line:no-unused-variable const zrxAssetData = encodeERC20AssetData(zrxToken.address); - const exchange = await wrappers.ExchangeContract.deployFrom0xArtifactAsync( + const exchange = await ExchangeContract.deployFrom0xArtifactAsync( artifacts.Exchange, provider, txDefaults, @@ -98,7 +108,7 @@ export async function runMigrationsAsync( for (const token of erc20TokenInfo) { const totalSupply = new BigNumber(1000000000000000000000000000); // tslint:disable-next-line:no-unused-variable - const dummyErc20Token = await wrappers.DummyERC20TokenContract.deployFrom0xArtifactAsync( + const dummyErc20Token = await DummyERC20TokenContract.deployFrom0xArtifactAsync( artifacts.DummyERC20Token, provider, txDefaults, @@ -112,7 +122,7 @@ export async function runMigrationsAsync( // ERC721 // tslint:disable-next-line:no-unused-variable - const cryptoKittieToken = await wrappers.DummyERC721TokenContract.deployFrom0xArtifactAsync( + const cryptoKittieToken = await DummyERC721TokenContract.deployFrom0xArtifactAsync( artifacts.DummyERC721Token, provider, txDefaults, @@ -122,21 +132,21 @@ export async function runMigrationsAsync( ); // 1155 Asset Proxy - const erc1155Proxy = await wrappers.ERC1155ProxyContract.deployFrom0xArtifactAsync( + const erc1155Proxy = await ERC1155ProxyContract.deployFrom0xArtifactAsync( artifacts.ERC1155Proxy, provider, txDefaults, artifacts, ); - const staticCallProxy = await wrappers.StaticCallProxyContract.deployFrom0xArtifactAsync( + const staticCallProxy = await StaticCallProxyContract.deployFrom0xArtifactAsync( artifacts.StaticCallProxy, provider, txDefaults, artifacts, ); - const multiAssetProxy = await wrappers.MultiAssetProxyContract.deployFrom0xArtifactAsync( + const multiAssetProxy = await MultiAssetProxyContract.deployFrom0xArtifactAsync( artifacts.MultiAssetProxy, provider, txDefaults, @@ -165,7 +175,7 @@ export async function runMigrationsAsync( await exchange.registerAssetProxy(staticCallProxy.address).awaitTransactionSuccessAsync(txDefaults); // Forwarder - const forwarder = await wrappers.ForwarderContract.deployFrom0xArtifactAsync( + const forwarder = await ForwarderContract.deployFrom0xArtifactAsync( artifacts.Forwarder, provider, txDefaults, @@ -174,8 +184,9 @@ export async function runMigrationsAsync( encodeERC20AssetData(etherToken.address), ); + // TODO(fabio): Remove orderValidator after @0x/asset-buyer is deleted // OrderValidator - const orderValidator = await wrappers.OrderValidatorContract.deployFrom0xArtifactAsync( + const orderValidator = await OrderValidatorContract.deployFrom0xArtifactAsync( artifacts.OrderValidator, provider, txDefaults, @@ -184,14 +195,16 @@ export async function runMigrationsAsync( zrxAssetData, ); - // DutchAuction - const dutchAuction = await wrappers.DutchAuctionContract.deployFrom0xArtifactAsync( - artifacts.DutchAuction, - provider, - txDefaults, - artifacts, - exchange.address, - ); + // TODO(fabio): Uncomment dutchAuction once the @0x/contracts-extensions is refactored + // for V3 + // // DutchAuction + // const dutchAuction = await DutchAuctionContract.deployFrom0xArtifactAsync( + // artifacts.DutchAuction, + // provider, + // txDefaults, + // artifacts, + // exchange.address, + // ); // TODO (xianny): figure out how to deploy AssetProxyOwnerContract properly // // Multisigs @@ -202,7 +215,7 @@ export async function runMigrationsAsync( // // AssetProxyOwner - // const assetProxyOwner = await wrappers.AssetProxyOwnerContract.deployFrom0xArtifactAsync( + // const assetProxyOwner = await AssetProxyOwnerContract.deployFrom0xArtifactAsync( // artifacts.AssetProxyOwner, // provider, // txDefaults, @@ -231,7 +244,7 @@ export async function runMigrationsAsync( // Fake the above transactions so our nonce increases and we result with the same addresses // while AssetProxyOwner is disabled (TODO: @dekz remove) - const dummyTransactionCount = 5; + const dummyTransactionCount = 6; for (let index = 0; index < dummyTransactionCount; index++) { await web3Wrapper.sendTransactionAsync({ to: txDefaults.from, from: txDefaults.from, value: new BigNumber(0) }); } @@ -242,7 +255,7 @@ export async function runMigrationsAsync( await zrxToken.transfer(forwarder.address, zrxForwarderAmount).awaitTransactionSuccessAsync(txDefaults); // CoordinatorRegistry - const coordinatorRegistry = await wrappers.CoordinatorRegistryContract.deployFrom0xArtifactAsync( + const coordinatorRegistry = await CoordinatorRegistryContract.deployFrom0xArtifactAsync( artifacts.CoordinatorRegistry, provider, txDefaults, @@ -250,7 +263,7 @@ export async function runMigrationsAsync( ); // Coordinator - const coordinator = await wrappers.CoordinatorContract.deployFrom0xArtifactAsync( + const coordinator = await CoordinatorContract.deployFrom0xArtifactAsync( artifacts.Coordinator, provider, txDefaults, @@ -259,7 +272,7 @@ export async function runMigrationsAsync( ); // Dev Utils - const devUtils = await wrappers.DevUtilsContract.deployFrom0xArtifactAsync( + const devUtils = await DevUtilsContract.deployFrom0xArtifactAsync( artifacts.DevUtils, provider, txDefaults, @@ -268,7 +281,7 @@ export async function runMigrationsAsync( ); // tslint:disable-next-line:no-unused-variable - const erc1155DummyToken = await wrappers.ERC1155MintableContract.deployFrom0xArtifactAsync( + const erc1155DummyToken = await ERC1155MintableContract.deployFrom0xArtifactAsync( artifacts.ERC1155Mintable, provider, txDefaults, @@ -288,7 +301,7 @@ export async function runMigrationsAsync( zeroExGovernor: constants.NULL_ADDRESS, forwarder: forwarder.address, orderValidator: orderValidator.address, - dutchAuction: dutchAuction.address, + dutchAuction: constants.NULL_ADDRESS, coordinatorRegistry: coordinatorRegistry.address, coordinator: coordinator.address, multiAssetProxy: multiAssetProxy.address, diff --git a/packages/migrations/src/test_contract_configs.ts b/packages/migrations/src/test_contract_configs.ts index fcaa16e6c6..b3f21d7d91 100644 --- a/packages/migrations/src/test_contract_configs.ts +++ b/packages/migrations/src/test_contract_configs.ts @@ -1,6 +1,11 @@ #!/usr/bin/env node -import * as wrappers from '@0x/abi-gen-wrappers'; import { getContractAddressesForChainOrThrow } from '@0x/contract-addresses'; +import { + ERC1155ProxyContract, + ERC20ProxyContract, + ERC721ProxyContract, + MultiAssetProxyContract, +} from '@0x/contracts-asset-proxy'; import { ExchangeContract } from '@0x/contracts-exchange'; import { ZeroExGovernorContract } from '@0x/contracts-multisig'; import { StakingContract, StakingProxyContract, ZrxVaultContract } from '@0x/contracts-staking'; @@ -10,6 +15,9 @@ import { logUtils, providerUtils } from '@0x/utils'; import { Web3Wrapper } from '@0x/web3-wrapper'; import { SupportedProvider } from 'ethereum-types'; +import { getConfigsByChainId } from './utils/configs_by_chain'; +import { getTimelockRegistrationsAsync } from './utils/timelocks'; + // NOTE: add your own Infura Project ID to RPC urls before running const INFURA_PROJECT_ID = ''; @@ -25,6 +33,7 @@ async function testContractConfigsAsync(provider: SupportedProvider): Promise {} + async function verifyZeroExGovernorConfigsAsync(): Promise { + const timelockRegistrations = await getTimelockRegistrationsAsync(provider); + for (const timelockRegistration of timelockRegistrations) { + const actualRegistration = await governor + .functionCallTimeLocks(timelockRegistration.functionSelector, timelockRegistration.destination) + .callAsync(); + warnIfMismatch( + actualRegistration[0], + true, + `Function ${timelockRegistration.functionSelector} at address ${ + timelockRegistration.destination + } not registered in ZeroExGovernor`, + ); + warnIfMismatch( + actualRegistration[1].toNumber(), + timelockRegistration.secondsTimeLocked.toNumber(), + `Timelock for function ${timelockRegistration.functionSelector} at address ${ + timelockRegistration.destination + } in ZeroExGovernor`, + ); + } + + const owners = await governor.getOwners().callAsync(); + warnIfMismatch( + owners.length, + configs.zeroExGovernor.owners.length, + 'Unexpected number of owners in ZeroExGovernor', + ); + owners.forEach((owner, i) => { + warnIfMismatch( + owners[i], + configs.zeroExGovernor.owners[i], + `Unexpected owner in ZeroExGovernor at index ${i}`, + ); + }); + + const secondsTimeLocked = await governor.secondsTimeLocked().callAsync(); + warnIfMismatch( + secondsTimeLocked.toNumber(), + configs.zeroExGovernor.secondsTimeLocked.toNumber(), + 'Unexpected secondsTimeLocked in ZeroExGovernor', + ); + + const confirmationsRequired = await governor.required().callAsync(); + warnIfMismatch( + confirmationsRequired.toNumber(), + configs.zeroExGovernor.required.toNumber(), + 'Unexpected number of confirmations required in ZeroExGovernor', + ); + } await verifyExchangeV2ConfigsAsync(); await verifyExchangeV3ConfigsAsync(); await verifyStakingConfigsAsync(); await verifyAssetProxyConfigsAsync(); + await verifyZeroExGovernorConfigsAsync(); } (async () => { diff --git a/packages/migrations/src/testnet_migrations.ts b/packages/migrations/src/testnet_migrations.ts index 341fe02e35..0666772c84 100644 --- a/packages/migrations/src/testnet_migrations.ts +++ b/packages/migrations/src/testnet_migrations.ts @@ -19,19 +19,21 @@ import { IAuthorizableContract, IOwnableContract } from '@0x/contracts-utils'; import { AbiEncoder, BigNumber, logUtils, providerUtils } from '@0x/utils'; import { LogWithDecodedArgs, SupportedProvider, TxData } from 'ethereum-types'; +import { getConfigsByChainId } from './utils/configs_by_chain'; import { constants } from './utils/constants'; import { providerFactory } from './utils/provider_factory'; +import { getTimelockRegistrationsAsync } from './utils/timelocks'; async function submitAndExecuteTransactionAsync( governor: ZeroExGovernorContract, destination: string, data: string, ): Promise { - const txReceipt = await governor + const { logs } = await governor .submitTransaction(destination, constants.ZERO_AMOUNT, data) .awaitTransactionSuccessAsync(); // tslint:disable-next-line:no-unnecessary-type-assertion - const txId = (txReceipt.logs[0] as LogWithDecodedArgs).args.transactionId; + const txId = (logs[0] as LogWithDecodedArgs).args.transactionId; logUtils.log(`${txId} submitted`); await governor.executeTransaction(txId).awaitTransactionSuccessAsync(); logUtils.log(`${txId} executed`); @@ -46,6 +48,7 @@ export async function runMigrationsAsync(supportedProvider: SupportedProvider, t const provider = providerUtils.standardizeOrThrow(supportedProvider); const chainId = new BigNumber(await providerUtils.getChainIdAsync(provider)); const deployedAddresses = getContractAddressesForChainOrThrow(chainId.toNumber()); + const configs = getConfigsByChainId(chainId.toNumber()); // NOTE: This must be deployed before running these migrations, since its address is hard coded in the // staking logic contract. @@ -81,187 +84,10 @@ export async function runMigrationsAsync(supportedProvider: SupportedProvider, t assetProxyArtifacts, ); - const devUtils = await DevUtilsContract.deployFrom0xArtifactAsync( - devUtilsArtifacts.DevUtils, - provider, - txDefaults, - devUtilsArtifacts, - exchange.address, - ); - - await CoordinatorContract.deployFrom0xArtifactAsync( - coordinatorArtifacts.Coordinator, - provider, - txDefaults, - coordinatorArtifacts, - exchange.address, - chainId, - ); - - const wethAssetData = await devUtils.encodeERC20AssetData(deployedAddresses.etherToken).callAsync(); - await ForwarderContract.deployFrom0xArtifactAsync( - forwarderArtifacts.Forwarder, - provider, - txDefaults, - forwarderArtifacts, - exchange.address, - wethAssetData, - ); - const authorizableInterface = new IAuthorizableContract(constants.NULL_ADDRESS, provider, txDefaults); const ownableInterface = new IOwnableContract(constants.NULL_ADDRESS, provider, txDefaults); - const customTimeLocks = [ - // AssetProxy timelocks - { - destination: deployedAddresses.erc20Proxy, - functionSelector: authorizableInterface.getSelector('removeAuthorizedAddress'), - secondsTimeLocked: constants.ZERO_AMOUNT, - }, - { - destination: deployedAddresses.erc20Proxy, - functionSelector: authorizableInterface.getSelector('removeAuthorizedAddressAtIndex'), - secondsTimeLocked: constants.ZERO_AMOUNT, - }, - { - destination: deployedAddresses.erc721Proxy, - functionSelector: authorizableInterface.getSelector('removeAuthorizedAddress'), - secondsTimeLocked: constants.ZERO_AMOUNT, - }, - { - destination: deployedAddresses.erc721Proxy, - functionSelector: authorizableInterface.getSelector('removeAuthorizedAddressAtIndex'), - secondsTimeLocked: constants.ZERO_AMOUNT, - }, - { - destination: deployedAddresses.erc1155Proxy, - functionSelector: authorizableInterface.getSelector('removeAuthorizedAddress'), - secondsTimeLocked: constants.ZERO_AMOUNT, - }, - { - destination: deployedAddresses.erc1155Proxy, - functionSelector: authorizableInterface.getSelector('removeAuthorizedAddressAtIndex'), - secondsTimeLocked: constants.ZERO_AMOUNT, - }, - { - destination: deployedAddresses.multiAssetProxy, - functionSelector: authorizableInterface.getSelector('removeAuthorizedAddress'), - secondsTimeLocked: constants.ZERO_AMOUNT, - }, - { - destination: deployedAddresses.multiAssetProxy, - functionSelector: authorizableInterface.getSelector('removeAuthorizedAddressAtIndex'), - secondsTimeLocked: constants.ZERO_AMOUNT, - }, - { - destination: erc20BridgeProxy.address, - functionSelector: authorizableInterface.getSelector('removeAuthorizedAddress'), - secondsTimeLocked: constants.ZERO_AMOUNT, - }, - { - destination: erc20BridgeProxy.address, - functionSelector: authorizableInterface.getSelector('removeAuthorizedAddressAtIndex'), - secondsTimeLocked: constants.ZERO_AMOUNT, - }, - // ZrxVault timelocks - { - destination: deployedAddresses.zrxVault, - functionSelector: zrxVault.getSelector('enterCatastrophicFailure'), - secondsTimeLocked: constants.ZERO_AMOUNT, - }, - { - destination: deployedAddresses.zrxVault, - functionSelector: zrxVault.getSelector('setStakingProxy'), - secondsTimeLocked: constants.ZERO_AMOUNT, // 20 days on mainnet - }, - { - destination: deployedAddresses.zrxVault, - functionSelector: zrxVault.getSelector('setZrxProxy'), - secondsTimeLocked: constants.ZERO_AMOUNT, // 20 days on mainnet - }, - { - destination: deployedAddresses.zrxVault, - functionSelector: ownableInterface.getSelector('transferOwnership'), - secondsTimeLocked: constants.ZERO_AMOUNT, // 20 days on mainnet - }, - { - destination: deployedAddresses.zrxVault, - functionSelector: authorizableInterface.getSelector('addAuthorizedAddress'), - secondsTimeLocked: constants.ZERO_AMOUNT, // 20 days on mainnet - }, - { - destination: deployedAddresses.zrxVault, - functionSelector: authorizableInterface.getSelector('removeAuthorizedAddress'), - secondsTimeLocked: constants.ZERO_AMOUNT, // 20 days on mainnet - }, - { - destination: deployedAddresses.zrxVault, - functionSelector: authorizableInterface.getSelector('removeAuthorizedAddressAtIndex'), - secondsTimeLocked: constants.ZERO_AMOUNT, // 20 days on mainnet - }, - // StakingProxy timelocks - { - destination: deployedAddresses.stakingProxy, - functionSelector: stakingProxy.getSelector('attachStakingContract'), - secondsTimeLocked: constants.ZERO_AMOUNT, // 20 days on mainnet - }, - { - destination: deployedAddresses.stakingProxy, - functionSelector: stakingProxy.getSelector('detachStakingContract'), - secondsTimeLocked: constants.ZERO_AMOUNT, // 20 days on mainnet - }, - { - destination: deployedAddresses.stakingProxy, - functionSelector: stakingLogic.getSelector('setParams'), - secondsTimeLocked: constants.ZERO_AMOUNT, // 10 days on mainnet - }, - { - destination: deployedAddresses.stakingProxy, - functionSelector: stakingLogic.getSelector('addExchangeAddress'), - secondsTimeLocked: constants.ZERO_AMOUNT, // 20 days on mainnet - }, - { - destination: deployedAddresses.stakingProxy, - functionSelector: stakingLogic.getSelector('removeExchangeAddress'), - secondsTimeLocked: constants.ZERO_AMOUNT, // 20 days on mainnet - }, - { - destination: deployedAddresses.stakingProxy, - functionSelector: ownableInterface.getSelector('transferOwnership'), - secondsTimeLocked: constants.ZERO_AMOUNT, // 20 days on mainnet - }, - { - destination: deployedAddresses.stakingProxy, - functionSelector: authorizableInterface.getSelector('addAuthorizedAddress'), - secondsTimeLocked: constants.ZERO_AMOUNT, // 20 days on mainnet - }, - { - destination: deployedAddresses.stakingProxy, - functionSelector: authorizableInterface.getSelector('removeAuthorizedAddress'), - secondsTimeLocked: constants.ZERO_AMOUNT, // 20 days on mainnet - }, - { - destination: deployedAddresses.stakingProxy, - functionSelector: authorizableInterface.getSelector('removeAuthorizedAddressAtIndex'), - secondsTimeLocked: constants.ZERO_AMOUNT, // 20 days on mainnet - }, - // Exchange timelocks - { - destination: exchange.address, - functionSelector: exchange.getSelector('setProtocolFeeMultiplier'), - secondsTimeLocked: constants.ZERO_AMOUNT, // 10 days on mainnet - }, - { - destination: exchange.address, - functionSelector: exchange.getSelector('setProtocolFeeCollectorAddress'), - secondsTimeLocked: constants.ZERO_AMOUNT, // 20 days on mainnet - }, - { - destination: exchange.address, - functionSelector: exchange.getSelector('detachProtocolFeeCollector'), - secondsTimeLocked: constants.ZERO_AMOUNT, - }, - ]; + const customTimeLocks = await getTimelockRegistrationsAsync(provider); const governor = await ZeroExGovernorContract.deployFrom0xArtifactAsync( multisigArtifacts.ZeroExGovernor, @@ -271,24 +97,43 @@ export async function runMigrationsAsync(supportedProvider: SupportedProvider, t customTimeLocks.map(timeLockInfo => timeLockInfo.functionSelector), customTimeLocks.map(timeLockInfo => timeLockInfo.destination), customTimeLocks.map(timeLockInfo => timeLockInfo.secondsTimeLocked), - constants.ASSET_PROXY_OWNER_OWNERS, - constants.ASSET_PROXY_OWNER_CONFIRMATIONS, - constants.ASSET_PROXY_OWNER_TIMELOCK, + configs.zeroExGovernor.owners, + configs.zeroExGovernor.required, + configs.zeroExGovernor.secondsTimeLocked, ); logUtils.log('Configuring Exchange...'); + await exchange.setProtocolFeeCollectorAddress(stakingProxy.address).awaitTransactionSuccessAsync(); + await exchange.setProtocolFeeMultiplier(new BigNumber(150000)).awaitTransactionSuccessAsync(); + await exchange.registerAssetProxy(deployedAddresses.erc20Proxy).awaitTransactionSuccessAsync(); + await exchange.registerAssetProxy(deployedAddresses.erc721Proxy).awaitTransactionSuccessAsync(); + await exchange.registerAssetProxy(deployedAddresses.erc1155Proxy).awaitTransactionSuccessAsync(); + await exchange.registerAssetProxy(deployedAddresses.multiAssetProxy).awaitTransactionSuccessAsync(); + await exchange.registerAssetProxy(deployedAddresses.staticCallProxy).awaitTransactionSuccessAsync(); + await exchange.registerAssetProxy(erc20BridgeProxy.address).awaitTransactionSuccessAsync(); await exchange.transferOwnership(governor.address).awaitTransactionSuccessAsync(); logUtils.log('Exchange configured!'); logUtils.log('Configuring ERC20BridgeProxy...'); + await erc20BridgeProxy.addAuthorizedAddress(exchange.address).awaitTransactionSuccessAsync(); + await erc20BridgeProxy.addAuthorizedAddress(deployedAddresses.multiAssetProxy).awaitTransactionSuccessAsync(); await erc20BridgeProxy.transferOwnership(governor.address).awaitTransactionSuccessAsync(); logUtils.log('ERC20BridgeProxy configured!'); logUtils.log('Configuring ZrxVault...'); + await zrxVault.addAuthorizedAddress(txDefaults.from).awaitTransactionSuccessAsync(); + await zrxVault.setStakingProxy(stakingProxy.address).awaitTransactionSuccessAsync(); + await zrxVault.removeAuthorizedAddress(txDefaults.from).awaitTransactionSuccessAsync(); + await zrxVault.addAuthorizedAddress(governor.address).awaitTransactionSuccessAsync(); await zrxVault.transferOwnership(governor.address).awaitTransactionSuccessAsync(); logUtils.log('ZrxVault configured!'); logUtils.log('Configuring StakingProxy...'); + await stakingProxy.addAuthorizedAddress(txDefaults.from).awaitTransactionSuccessAsync(); + const staking = new StakingContract(stakingProxy.address, provider, txDefaults); + await staking.addExchangeAddress(exchange.address).awaitTransactionSuccessAsync(); + await stakingProxy.removeAuthorizedAddress(txDefaults.from).awaitTransactionSuccessAsync(); + await stakingProxy.addAuthorizedAddress(governor.address).awaitTransactionSuccessAsync(); await stakingProxy.transferOwnership(governor.address).awaitTransactionSuccessAsync(); logUtils.log('StakingProxy configured!'); @@ -322,58 +167,6 @@ export async function runMigrationsAsync(supportedProvider: SupportedProvider, t logUtils.log('Ownership transferred!'); const functionCalls = [ - // Exchange staking configs - { - destination: exchange.address, - data: exchange.setProtocolFeeCollectorAddress(stakingProxy.address).getABIEncodedTransactionData(), - }, - { - destination: exchange.address, - data: exchange.setProtocolFeeMultiplier(new BigNumber(150000)).getABIEncodedTransactionData(), - }, - // Exchange AssetProxy registrations - { - destination: exchange.address, - data: exchange.registerAssetProxy(deployedAddresses.erc20Proxy).getABIEncodedTransactionData(), - }, - { - destination: exchange.address, - data: exchange.registerAssetProxy(deployedAddresses.erc721Proxy).getABIEncodedTransactionData(), - }, - { - destination: exchange.address, - data: exchange.registerAssetProxy(deployedAddresses.erc1155Proxy).getABIEncodedTransactionData(), - }, - { - destination: exchange.address, - data: exchange.registerAssetProxy(deployedAddresses.multiAssetProxy).getABIEncodedTransactionData(), - }, - { - destination: exchange.address, - data: exchange.registerAssetProxy(deployedAddresses.staticCallProxy).getABIEncodedTransactionData(), - }, - { - destination: exchange.address, - data: exchange.registerAssetProxy(erc20BridgeProxy.address).getABIEncodedTransactionData(), - }, - // ZrxVault configs - { - destination: zrxVault.address, - data: authorizableInterface.addAuthorizedAddress(governor.address).getABIEncodedTransactionData(), - }, - { - destination: zrxVault.address, - data: zrxVault.setStakingProxy(stakingProxy.address).getABIEncodedTransactionData(), - }, - // StakingProxy configs - { - destination: stakingProxy.address, - data: authorizableInterface.addAuthorizedAddress(governor.address).getABIEncodedTransactionData(), - }, - { - destination: stakingProxy.address, - data: stakingLogic.addExchangeAddress(exchange.address).getABIEncodedTransactionData(), - }, // AssetProxy configs { destination: deployedAddresses.erc20Proxy, @@ -399,16 +192,6 @@ export async function runMigrationsAsync(supportedProvider: SupportedProvider, t destination: deployedAddresses.multiAssetProxy, data: exchange.registerAssetProxy(erc20BridgeProxy.address).getABIEncodedTransactionData(), }, - { - destination: erc20BridgeProxy.address, - data: authorizableInterface.addAuthorizedAddress(exchange.address).getABIEncodedTransactionData(), - }, - { - destination: erc20BridgeProxy.address, - data: authorizableInterface - .addAuthorizedAddress(deployedAddresses.multiAssetProxy) - .getABIEncodedTransactionData(), - }, ]; const batchTransactionEncoder = AbiEncoder.create('(bytes[],address[],uint256[])'); @@ -418,13 +201,41 @@ export async function runMigrationsAsync(supportedProvider: SupportedProvider, t functionCalls.map(() => constants.ZERO_AMOUNT), ]); await submitAndExecuteTransactionAsync(governor, governor.address, batchTransactionData); + + const devUtils = await DevUtilsContract.deployFrom0xArtifactAsync( + devUtilsArtifacts.DevUtils, + provider, + txDefaults, + devUtilsArtifacts, + exchange.address, + ); + + await CoordinatorContract.deployFrom0xArtifactAsync( + coordinatorArtifacts.Coordinator, + provider, + txDefaults, + coordinatorArtifacts, + exchange.address, + chainId, + ); + + const wethAssetData = await devUtils.encodeERC20AssetData(deployedAddresses.etherToken).callAsync(); + const forwarder = await ForwarderContract.deployFrom0xArtifactAsync( + forwarderArtifacts.Forwarder, + provider, + txDefaults, + forwarderArtifacts, + exchange.address, + wethAssetData, + ); + await forwarder.approveMakerAssetProxy(deployedAddresses.etherToken).awaitTransactionSuccessAsync(); } (async () => { - const networkId = 4; - const rpcUrl = 'https://rinkeby.infura.io/v3/'; + const networkId = 1; + const rpcUrl = 'https://mainnet.infura.io/v3/'; const provider = await providerFactory.getLedgerProviderAsync(networkId, rpcUrl); - await runMigrationsAsync(provider, { from: constants.ASSET_PROXY_OWNER_OWNERS[0], gasPrice: 60000000000 }); + await runMigrationsAsync(provider, { from: '0x3b39078f2a3e1512eecc8d6792fdc7f33e1cd2cf', gasPrice: 10000000000 }); })().catch(err => { logUtils.log(err); process.exit(1); diff --git a/packages/migrations/src/utils/configs_by_chain.ts b/packages/migrations/src/utils/configs_by_chain.ts new file mode 100644 index 0000000000..7aed7d9b5e --- /dev/null +++ b/packages/migrations/src/utils/configs_by_chain.ts @@ -0,0 +1,59 @@ +import { BigNumber } from '@0x/utils'; + +import { constants } from './constants'; + +export interface ConfigsByChain { + zeroExGovernor: { owners: string[]; secondsTimeLocked: BigNumber; required: BigNumber }; + staking: { + epochDurationInSeconds: BigNumber; + rewardDelegatedStakeWeight: number; + minimumPoolStake: BigNumber; + cobbDouglasAlphaNumerator: number; + cobbDouglasAlphaDenominator: number; + }; +} + +// tslint:disable custom-no-magic-numbers +/** + * Gets configs that correspond to the given chainId. + * @param chainId Id of the netowrk. + */ +export function getConfigsByChainId(chainId: number): ConfigsByChain { + const mainnetConfigs = { + zeroExGovernor: { + owners: [ + '0x257619b7155d247e43c8b6d90c8c17278ae481f0', + '0x5ee2a00f8f01d099451844af7f894f26a57fcbf2', + '0x894d623e0e0e8ed12c4a73dada999e275684a37d', + ], + secondsTimeLocked: constants.TWO_WEEKS_IN_SEC, + required: new BigNumber(2), + }, + staking: { + epochDurationInSeconds: constants.TEN_DAYS_IN_SEC, + rewardDelegatedStakeWeight: 10 ** 6 * 0.9, + minimumPoolStake: new BigNumber(10).pow(18).times(100), + cobbDouglasAlphaNumerator: 2, + cobbDouglasAlphaDenominator: 3, + }, + }; + const testnetConfigs = { + zeroExGovernor: { + owners: [ + '0x9df8137872ac09a8fee71d0da5c7539923fb9bf0', + '0xcf34d44db312d188789f43a63d11cf2bebb4da15', + '0x73fd50f2a6beac9cdac9fe87ef68a18edc415831', + ], + secondsTimeLocked: constants.ZERO_AMOUNT, + required: new BigNumber(1), + }, + staking: { + epochDurationInSeconds: constants.TEN_DAYS_IN_SEC.dividedToIntegerBy(2), + rewardDelegatedStakeWeight: 10 ** 6 * 0.9, + minimumPoolStake: new BigNumber(10).pow(18).times(100), + cobbDouglasAlphaNumerator: 2, + cobbDouglasAlphaDenominator: 3, + }, + }; + return chainId === constants.MAINNET_CHAIN_ID ? mainnetConfigs : testnetConfigs; +} diff --git a/packages/migrations/src/utils/constants.ts b/packages/migrations/src/utils/constants.ts index 84928510fd..95f93130e6 100644 --- a/packages/migrations/src/utils/constants.ts +++ b/packages/migrations/src/utils/constants.ts @@ -1,19 +1,20 @@ import { BigNumber } from '@0x/utils'; +// tslint:disable custom-no-magic-numbers export const constants = { - ASSET_PROXY_OWNER_OWNERS: [ - '0x9df8137872ac09a8fee71d0da5c7539923fb9bf0', - '0xcf34d44db312d188789f43a63d11cf2bebb4da15', - '0x73fd50f2a6beac9cdac9fe87ef68a18edc415831', - ], - ASSET_PROXY_OWNER_TIMELOCK: new BigNumber(0), - ASSET_PROXY_OWNER_CONFIRMATIONS: new BigNumber(1), - ERC20_PROXY_ID: '0xf47261b0', - ERC721_PROXY_ID: '0x02571792', NULL_ADDRESS: '0x0000000000000000000000000000000000000000', - KOVAN_RPC_URL: 'https://kovan.infura.io/', - KOVAN_CHAIN_ID: 42, - MAINNET_RPC_URL: 'https://mainnet.infura.io/', MAINNET_CHAIN_ID: 1, ZERO_AMOUNT: new BigNumber(0), + TWO_WEEKS_IN_SEC: new BigNumber(14) + .times(24) + .times(60) + .times(60), + TEN_DAYS_IN_SEC: new BigNumber(10) + .times(24) + .times(60) + .times(60), + TWENTY_DAYS_IN_SEC: new BigNumber(20) + .times(24) + .times(60) + .times(60), }; diff --git a/packages/migrations/src/utils/timelocks.ts b/packages/migrations/src/utils/timelocks.ts new file mode 100644 index 0000000000..6b09fcf542 --- /dev/null +++ b/packages/migrations/src/utils/timelocks.ts @@ -0,0 +1,209 @@ +import { getContractAddressesForChainOrThrow } from '@0x/contract-addresses'; +import { ExchangeContract } from '@0x/contracts-exchange'; +import { StakingContract, StakingProxyContract, ZrxVaultContract } from '@0x/contracts-staking'; +import { IAuthorizableContract, IOwnableContract } from '@0x/contracts-utils'; +import { BigNumber } from '@0x/utils'; +import { Web3Wrapper } from '@0x/web3-wrapper'; +import { SupportedProvider } from 'ethereum-types'; + +import { constants } from './constants'; + +export interface TimelockRegistration { + functionSelector: string; + destination: string; + secondsTimeLocked: BigNumber; +} + +/** + * Gets the custom timelock configs that correspond the the network of the given provider. + * @param provider Web3 provider instance. + */ +export async function getTimelockRegistrationsAsync(provider: SupportedProvider): Promise { + const web3Wrapper = new Web3Wrapper(provider); + const chainId = await web3Wrapper.getChainIdAsync(); + const deployedAddresses = getContractAddressesForChainOrThrow(chainId); + + const authorizableInterface = new IAuthorizableContract(constants.NULL_ADDRESS, provider); + const ownableInterface = new IOwnableContract(constants.NULL_ADDRESS, provider); + const zrxVault = new ZrxVaultContract(constants.NULL_ADDRESS, provider); + const stakingProxy = new StakingProxyContract(constants.NULL_ADDRESS, provider); + const exchange = new ExchangeContract(constants.NULL_ADDRESS, provider); + const stakingLogic = new StakingContract(constants.NULL_ADDRESS, provider); + + const noTimelockRegistrations = [ + // AssetProxy timelocks + { + destination: deployedAddresses.erc20Proxy, + functionSelector: authorizableInterface.getSelector('removeAuthorizedAddress'), + secondsTimeLocked: constants.ZERO_AMOUNT, + }, + { + destination: deployedAddresses.erc20Proxy, + functionSelector: authorizableInterface.getSelector('removeAuthorizedAddressAtIndex'), + secondsTimeLocked: constants.ZERO_AMOUNT, + }, + { + destination: deployedAddresses.erc721Proxy, + functionSelector: authorizableInterface.getSelector('removeAuthorizedAddress'), + secondsTimeLocked: constants.ZERO_AMOUNT, + }, + { + destination: deployedAddresses.erc721Proxy, + functionSelector: authorizableInterface.getSelector('removeAuthorizedAddressAtIndex'), + secondsTimeLocked: constants.ZERO_AMOUNT, + }, + { + destination: deployedAddresses.erc1155Proxy, + functionSelector: authorizableInterface.getSelector('removeAuthorizedAddress'), + secondsTimeLocked: constants.ZERO_AMOUNT, + }, + { + destination: deployedAddresses.erc1155Proxy, + functionSelector: authorizableInterface.getSelector('removeAuthorizedAddressAtIndex'), + secondsTimeLocked: constants.ZERO_AMOUNT, + }, + { + destination: deployedAddresses.multiAssetProxy, + functionSelector: authorizableInterface.getSelector('removeAuthorizedAddress'), + secondsTimeLocked: constants.ZERO_AMOUNT, + }, + { + destination: deployedAddresses.multiAssetProxy, + functionSelector: authorizableInterface.getSelector('removeAuthorizedAddressAtIndex'), + secondsTimeLocked: constants.ZERO_AMOUNT, + }, + { + destination: deployedAddresses.erc20BridgeProxy, + functionSelector: authorizableInterface.getSelector('removeAuthorizedAddress'), + secondsTimeLocked: constants.ZERO_AMOUNT, + }, + { + destination: deployedAddresses.erc20BridgeProxy, + functionSelector: authorizableInterface.getSelector('removeAuthorizedAddressAtIndex'), + secondsTimeLocked: constants.ZERO_AMOUNT, + }, + // ZrxVault timelocks + { + destination: deployedAddresses.zrxVault, + functionSelector: zrxVault.getSelector('enterCatastrophicFailure'), + secondsTimeLocked: constants.ZERO_AMOUNT, + }, + // Exchange timelocks + + { + destination: exchange.address, + functionSelector: exchange.getSelector('detachProtocolFeeCollector'), + secondsTimeLocked: constants.ZERO_AMOUNT, + }, + ]; + + const customTimelockRegistrations = [ + // ZrxVault timelocks + { + destination: deployedAddresses.zrxVault, + functionSelector: zrxVault.getSelector('setStakingProxy'), + secondsTimeLocked: + chainId === constants.MAINNET_CHAIN_ID ? constants.TWENTY_DAYS_IN_SEC : constants.ZERO_AMOUNT, + }, + { + destination: deployedAddresses.zrxVault, + functionSelector: zrxVault.getSelector('setZrxProxy'), + secondsTimeLocked: + chainId === constants.MAINNET_CHAIN_ID ? constants.TWENTY_DAYS_IN_SEC : constants.ZERO_AMOUNT, + }, + { + destination: deployedAddresses.zrxVault, + functionSelector: ownableInterface.getSelector('transferOwnership'), + secondsTimeLocked: + chainId === constants.MAINNET_CHAIN_ID ? constants.TWENTY_DAYS_IN_SEC : constants.ZERO_AMOUNT, + }, + { + destination: deployedAddresses.zrxVault, + functionSelector: authorizableInterface.getSelector('addAuthorizedAddress'), + secondsTimeLocked: + chainId === constants.MAINNET_CHAIN_ID ? constants.TWENTY_DAYS_IN_SEC : constants.ZERO_AMOUNT, + }, + { + destination: deployedAddresses.zrxVault, + functionSelector: authorizableInterface.getSelector('removeAuthorizedAddress'), + secondsTimeLocked: + chainId === constants.MAINNET_CHAIN_ID ? constants.TWENTY_DAYS_IN_SEC : constants.ZERO_AMOUNT, + }, + { + destination: deployedAddresses.zrxVault, + functionSelector: authorizableInterface.getSelector('removeAuthorizedAddressAtIndex'), + secondsTimeLocked: + chainId === constants.MAINNET_CHAIN_ID ? constants.TWENTY_DAYS_IN_SEC : constants.ZERO_AMOUNT, + }, + // StakingProxy timelocks + { + destination: deployedAddresses.stakingProxy, + functionSelector: stakingProxy.getSelector('attachStakingContract'), + secondsTimeLocked: + chainId === constants.MAINNET_CHAIN_ID ? constants.TWENTY_DAYS_IN_SEC : constants.ZERO_AMOUNT, + }, + { + destination: deployedAddresses.stakingProxy, + functionSelector: stakingProxy.getSelector('detachStakingContract'), + secondsTimeLocked: + chainId === constants.MAINNET_CHAIN_ID ? constants.TWENTY_DAYS_IN_SEC : constants.ZERO_AMOUNT, + }, + { + destination: deployedAddresses.stakingProxy, + functionSelector: stakingLogic.getSelector('setParams'), + secondsTimeLocked: + chainId === constants.MAINNET_CHAIN_ID ? constants.TEN_DAYS_IN_SEC : constants.ZERO_AMOUNT, + }, + { + destination: deployedAddresses.stakingProxy, + functionSelector: stakingLogic.getSelector('addExchangeAddress'), + secondsTimeLocked: + chainId === constants.MAINNET_CHAIN_ID ? constants.TWENTY_DAYS_IN_SEC : constants.ZERO_AMOUNT, + }, + { + destination: deployedAddresses.stakingProxy, + functionSelector: stakingLogic.getSelector('removeExchangeAddress'), + secondsTimeLocked: + chainId === constants.MAINNET_CHAIN_ID ? constants.TWENTY_DAYS_IN_SEC : constants.ZERO_AMOUNT, + }, + { + destination: deployedAddresses.stakingProxy, + functionSelector: ownableInterface.getSelector('transferOwnership'), + secondsTimeLocked: + chainId === constants.MAINNET_CHAIN_ID ? constants.TWENTY_DAYS_IN_SEC : constants.ZERO_AMOUNT, + }, + { + destination: deployedAddresses.stakingProxy, + functionSelector: authorizableInterface.getSelector('addAuthorizedAddress'), + secondsTimeLocked: + chainId === constants.MAINNET_CHAIN_ID ? constants.TWENTY_DAYS_IN_SEC : constants.ZERO_AMOUNT, + }, + { + destination: deployedAddresses.stakingProxy, + functionSelector: authorizableInterface.getSelector('removeAuthorizedAddress'), + secondsTimeLocked: + chainId === constants.MAINNET_CHAIN_ID ? constants.TWENTY_DAYS_IN_SEC : constants.ZERO_AMOUNT, + }, + { + destination: deployedAddresses.stakingProxy, + functionSelector: authorizableInterface.getSelector('removeAuthorizedAddressAtIndex'), + secondsTimeLocked: + chainId === constants.MAINNET_CHAIN_ID ? constants.TWENTY_DAYS_IN_SEC : constants.ZERO_AMOUNT, + }, + // Exchange timelocks + { + destination: exchange.address, + functionSelector: exchange.getSelector('setProtocolFeeMultiplier'), + secondsTimeLocked: + chainId === constants.MAINNET_CHAIN_ID ? constants.TEN_DAYS_IN_SEC : constants.ZERO_AMOUNT, + }, + { + destination: exchange.address, + functionSelector: exchange.getSelector('setProtocolFeeCollectorAddress'), + secondsTimeLocked: + chainId === constants.MAINNET_CHAIN_ID ? constants.TWENTY_DAYS_IN_SEC : constants.ZERO_AMOUNT, + }, + ]; + + return [...noTimelockRegistrations, ...customTimelockRegistrations]; +} diff --git a/packages/monorepo-scripts/package.json b/packages/monorepo-scripts/package.json index 628878ca40..012373af90 100644 --- a/packages/monorepo-scripts/package.json +++ b/packages/monorepo-scripts/package.json @@ -1,7 +1,7 @@ { "private": true, "name": "@0x/monorepo-scripts", - "version": "1.0.38", + "version": "1.0.39", "engines": { "node": ">=6.12" }, @@ -47,8 +47,8 @@ "typescript": "3.0.1" }, "dependencies": { - "@0x/types": "^2.5.0-beta.0", - "@0x/utils": "^4.6.0-beta.0", + "@0x/types": "^2.5.0-beta.1", + "@0x/utils": "^4.6.0-beta.1", "@lerna/batch-packages": "^3.0.0-beta.18", "@types/depcheck": "^0.6.0", "async-child-process": "^1.1.1", diff --git a/packages/order-utils/CHANGELOG.json b/packages/order-utils/CHANGELOG.json index 8d97c9288b..c5bb757eb5 100644 --- a/packages/order-utils/CHANGELOG.json +++ b/packages/order-utils/CHANGELOG.json @@ -1,6 +1,15 @@ [ { - "version": "9.0.0-beta.0", + "version": "8.5.0-beta.2", + "changes": [ + { + "note": "[Breaking] Removed `OrderStateUtils`, `OrderValidationUtils`, `ExchangeTransferSimulator` and all abstract and store classes. For order validation, please use the `DevUtils` contract wrapper method `getOrderRelevantState`|`getOrderRelevantStates`", + "pr": 2324 + } + ] + }, + { + "version": "8.5.0-beta.1", "changes": [ { "note": "Remove `TransferFailedError` from `ForwarderRevertErrors`.", @@ -10,7 +19,8 @@ "note": "All references to network ID have been removed, and references to chain ID have been introduced instead", "pr": 2313 } - ] + ], + "timestamp": 1573159180 }, { "version": "8.5.0-beta.0", diff --git a/packages/order-utils/CHANGELOG.md b/packages/order-utils/CHANGELOG.md index 2f217d5671..9ca24c981b 100644 --- a/packages/order-utils/CHANGELOG.md +++ b/packages/order-utils/CHANGELOG.md @@ -5,6 +5,11 @@ Edit the package's CHANGELOG.json file only. CHANGELOG +## v8.5.0-beta.1 - _November 7, 2019_ + + * Remove `TransferFailedError` from `ForwarderRevertErrors`. (#2309) + * All references to network ID have been removed, and references to chain ID have been introduced instead (#2313) + ## v8.5.0-beta.0 - _October 3, 2019_ * Add `chainId` `OrderValidationUtils`, `OrderFactory` (#1742) @@ -34,6 +39,8 @@ CHANGELOG * Remove `validateOrderFillableOrThrowAsync`, `simpleValidateOrderFillableOrThrowAsync`, `validateMakerTransferThrowIfInvalidAsync` (#2181) * Add `PreviousEpochNotFinalizedError` to `StakingRevertErrors`. (#2155) * Add `InvalidMinimumPoolStake` to `StakingRevertErrors.InvalidParamValueErrorCode`. (#2155) + * Renamed `OnlyCallableByPoolOperatorOrMakerError` to `OnlyCallableByPoolOperatorError`. (#2250) + * Removed protocol fee != 0 error. (#2278) ## v8.4.0 - _September 17, 2019_ diff --git a/packages/order-utils/docs/reference.mdx b/packages/order-utils/docs/reference.mdx index ce24c7ebd6..81716ae148 100644 --- a/packages/order-utils/docs/reference.mdx +++ b/packages/order-utils/docs/reference.mdx @@ -1,1037 +1,84 @@ -# Class: AbstractBalanceAndProxyAllowanceFetcher -An abstract class to be implemented in order to use OrderStateUtils. The class that -implements this interface must be capable of fetching the balance and proxyAllowance -for an Ethereum address and assetData -## Methods - -### `Abstract` getBalanceAsync - -▸ **getBalanceAsync**(`assetData`: string, `userAddress`: string): *`Promise`* - -*Defined in [order-utils/src/abstract/abstract_balance_and_proxy_allowance_fetcher.ts:15](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/order-utils/src/abstract/abstract_balance_and_proxy_allowance_fetcher.ts#L15)* - -Get balance of assetData for userAddress - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`assetData` | string | AssetData for which to fetch the balance | -`userAddress` | string | Ethereum address for which to fetch the balance | - -**Returns:** *`Promise`* - -Balance amount in base units - -___ - -### `Abstract` getProxyAllowanceAsync - -▸ **getProxyAllowanceAsync**(`assetData`: string, `userAddress`: string): *`Promise`* - -*Defined in [order-utils/src/abstract/abstract_balance_and_proxy_allowance_fetcher.ts:22](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/order-utils/src/abstract/abstract_balance_and_proxy_allowance_fetcher.ts#L22)* - -Get the 0x asset proxy allowance of assetData for userAddress - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`assetData` | string | AssetData for which to fetch the allowance | -`userAddress` | string | Ethereum address for which to fetch the allowance | - -**Returns:** *`Promise`* - -Allowance amount in base units - -
- -# Class: AbstractBalanceAndProxyAllowanceLazyStore - - -## Implemented by - -* [BalanceAndProxyAllowanceLazyStore](#class-balanceandproxyallowancelazystore) - - -## Methods - -### `Abstract` deleteAll - -▸ **deleteAll**(): *void* - -*Defined in [order-utils/src/abstract/abstract_balance_and_proxy_allowance_lazy_store.ts:10](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/order-utils/src/abstract/abstract_balance_and_proxy_allowance_lazy_store.ts#L10)* - -**Returns:** *void* - -___ - -### `Abstract` deleteBalance - -▸ **deleteBalance**(`assetData`: string, `userAddress`: string): *void* - -*Defined in [order-utils/src/abstract/abstract_balance_and_proxy_allowance_lazy_store.ts:7](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/order-utils/src/abstract/abstract_balance_and_proxy_allowance_lazy_store.ts#L7)* - -**Parameters:** - -Name | Type | ------- | ------ | -`assetData` | string | -`userAddress` | string | - -**Returns:** *void* - -___ - -### `Abstract` deleteProxyAllowance - -▸ **deleteProxyAllowance**(`assetData`: string, `userAddress`: string): *void* - -*Defined in [order-utils/src/abstract/abstract_balance_and_proxy_allowance_lazy_store.ts:9](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/order-utils/src/abstract/abstract_balance_and_proxy_allowance_lazy_store.ts#L9)* - -**Parameters:** - -Name | Type | ------- | ------ | -`assetData` | string | -`userAddress` | string | - -**Returns:** *void* - -___ - -### `Abstract` getBalanceAsync - -▸ **getBalanceAsync**(`assetData`: string, `userAddress`: string): *`Promise`* - -*Defined in [order-utils/src/abstract/abstract_balance_and_proxy_allowance_lazy_store.ts:4](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/order-utils/src/abstract/abstract_balance_and_proxy_allowance_lazy_store.ts#L4)* - -**Parameters:** - -Name | Type | ------- | ------ | -`assetData` | string | -`userAddress` | string | - -**Returns:** *`Promise`* - -___ - -### `Abstract` getProxyAllowanceAsync - -▸ **getProxyAllowanceAsync**(`assetData`: string, `userAddress`: string): *`Promise`* - -*Defined in [order-utils/src/abstract/abstract_balance_and_proxy_allowance_lazy_store.ts:5](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/order-utils/src/abstract/abstract_balance_and_proxy_allowance_lazy_store.ts#L5)* - -**Parameters:** - -Name | Type | ------- | ------ | -`assetData` | string | -`userAddress` | string | - -**Returns:** *`Promise`* - -___ - -### `Abstract` setBalance - -▸ **setBalance**(`assetData`: string, `userAddress`: string, `balance`: `BigNumber`): *void* - -*Defined in [order-utils/src/abstract/abstract_balance_and_proxy_allowance_lazy_store.ts:6](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/order-utils/src/abstract/abstract_balance_and_proxy_allowance_lazy_store.ts#L6)* - -**Parameters:** - -Name | Type | ------- | ------ | -`assetData` | string | -`userAddress` | string | -`balance` | `BigNumber` | - -**Returns:** *void* - -___ - -### `Abstract` setProxyAllowance - -▸ **setProxyAllowance**(`assetData`: string, `userAddress`: string, `proxyAllowance`: `BigNumber`): *void* - -*Defined in [order-utils/src/abstract/abstract_balance_and_proxy_allowance_lazy_store.ts:8](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/order-utils/src/abstract/abstract_balance_and_proxy_allowance_lazy_store.ts#L8)* - -**Parameters:** - -Name | Type | ------- | ------ | -`assetData` | string | -`userAddress` | string | -`proxyAllowance` | `BigNumber` | - -**Returns:** *void* - -
- -# Class: AbstractOrderFilledCancelledFetcher - -An abstract class to be implemented in order to use OrderStateUtils. The class that -implements this interface must be capable of fetching the amount filled of an order -and whether it's been cancelled. - - -## Methods - -### `Abstract` getFilledTakerAmountAsync - -▸ **getFilledTakerAmountAsync**(`orderHash`: string): *`Promise`* - -*Defined in [order-utils/src/abstract/abstract_order_filled_cancelled_fetcher.ts:15](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/order-utils/src/abstract/abstract_order_filled_cancelled_fetcher.ts#L15)* - -Get the amount of the order's takerToken amount already filled - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`orderHash` | string | OrderHash of order we are interested in | - -**Returns:** *`Promise`* - -FilledTakerAmount - -___ - -### `Abstract` isOrderCancelledAsync - -▸ **isOrderCancelledAsync**(`signedOrder`: `SignedOrder`): *`Promise`* - -*Defined in [order-utils/src/abstract/abstract_order_filled_cancelled_fetcher.ts:21](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/order-utils/src/abstract/abstract_order_filled_cancelled_fetcher.ts#L21)* - -Whether an order is cancelled - -**Parameters:** - -Name | Type | ------- | ------ | -`signedOrder` | `SignedOrder` | - -**Returns:** *`Promise`* - -Whether or not the order is cancelled - -
- -# Class: AbstractOrderFilledCancelledLazyStore - - -## Implemented by - -* [OrderFilledCancelledLazyStore](#class-orderfilledcancelledlazystore) - - -## Methods - -### `Abstract` deleteAll - -▸ **deleteAll**(): *void* - -*Defined in [order-utils/src/abstract/abstract_order_filled_cancelled_lazy_store.ts:11](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/order-utils/src/abstract/abstract_order_filled_cancelled_lazy_store.ts#L11)* - -**Returns:** *void* - -___ - -### `Abstract` deleteFilledTakerAmount - -▸ **deleteFilledTakerAmount**(`orderHash`: string): *void* - -*Defined in [order-utils/src/abstract/abstract_order_filled_cancelled_lazy_store.ts:8](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/order-utils/src/abstract/abstract_order_filled_cancelled_lazy_store.ts#L8)* - -**Parameters:** - -Name | Type | ------- | ------ | -`orderHash` | string | - -**Returns:** *void* - -___ - -### `Abstract` deleteIsCancelled - -▸ **deleteIsCancelled**(`orderHash`: string): *void* - -*Defined in [order-utils/src/abstract/abstract_order_filled_cancelled_lazy_store.ts:10](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/order-utils/src/abstract/abstract_order_filled_cancelled_lazy_store.ts#L10)* - -**Parameters:** - -Name | Type | ------- | ------ | -`orderHash` | string | - -**Returns:** *void* - -___ - -### `Abstract` getFilledTakerAmountAsync - -▸ **getFilledTakerAmountAsync**(`orderHash`: string): *`Promise`* - -*Defined in [order-utils/src/abstract/abstract_order_filled_cancelled_lazy_store.ts:5](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/order-utils/src/abstract/abstract_order_filled_cancelled_lazy_store.ts#L5)* - -**Parameters:** - -Name | Type | ------- | ------ | -`orderHash` | string | - -**Returns:** *`Promise`* - -___ - -### `Abstract` getIsCancelledAsync - -▸ **getIsCancelledAsync**(`signedOrder`: `SignedOrder`): *`Promise`* - -*Defined in [order-utils/src/abstract/abstract_order_filled_cancelled_lazy_store.ts:6](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/order-utils/src/abstract/abstract_order_filled_cancelled_lazy_store.ts#L6)* - -**Parameters:** - -Name | Type | ------- | ------ | -`signedOrder` | `SignedOrder` | - -**Returns:** *`Promise`* - -___ - -### `Abstract` setFilledTakerAmount - -▸ **setFilledTakerAmount**(`orderHash`: string, `balance`: `BigNumber`): *void* - -*Defined in [order-utils/src/abstract/abstract_order_filled_cancelled_lazy_store.ts:7](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/order-utils/src/abstract/abstract_order_filled_cancelled_lazy_store.ts#L7)* - -**Parameters:** - -Name | Type | ------- | ------ | -`orderHash` | string | -`balance` | `BigNumber` | - -**Returns:** *void* - -___ - -### `Abstract` setIsCancelled - -▸ **setIsCancelled**(`orderHash`: string, `isCancelled`: boolean): *void* - -*Defined in [order-utils/src/abstract/abstract_order_filled_cancelled_lazy_store.ts:9](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/order-utils/src/abstract/abstract_order_filled_cancelled_lazy_store.ts#L9)* - -**Parameters:** - -Name | Type | ------- | ------ | -`orderHash` | string | -`isCancelled` | boolean | - -**Returns:** *void* - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -# Class: ExchangeTransferSimulator - -An exchange transfer simulator which simulates asset transfers exactly how the -0x exchange contract would do them. - - -## Constructors - - - -\+ **new ExchangeTransferSimulator**(`store`: [AbstractBalanceAndProxyAllowanceLazyStore](_order_utils_src_abstract_abstract_balance_and_proxy_allowance_lazy_store_.abstractbalanceandproxyallowancelazystore.md)): *[ExchangeTransferSimulator](#class-exchangetransfersimulator)* - -*Defined in [order-utils/src/exchange_transfer_simulator.ts:50](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/order-utils/src/exchange_transfer_simulator.ts#L50)* - -Instantiate a ExchangeTransferSimulator - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`store` | [AbstractBalanceAndProxyAllowanceLazyStore](#class-abstractbalanceandproxyallowancelazystore) | A class that implements AbstractBalanceAndProxyAllowanceLazyStore | - -**Returns:** *[ExchangeTransferSimulator](#class-exchangetransfersimulator)* - -an instance of ExchangeTransferSimulator - -## Methods - -### transferFromAsync - -▸ **transferFromAsync**(`assetData`: string, `from`: string, `to`: string, `amountInBaseUnits`: `BigNumber`, `tradeSide`: [TradeSide](#enumeration-tradeside), `transferType`: [TransferType](#enumeration-transfertype)): *`Promise`* - -*Defined in [order-utils/src/exchange_transfer_simulator.ts:70](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/order-utils/src/exchange_transfer_simulator.ts#L70)* - -Simulates transferFrom call performed by a proxy - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`assetData` | string | Data of the asset being transferred. Includes it's identifying information and assetType, e.g address for ERC20, address & tokenId for ERC721 | -`from` | string | Owner of the transferred tokens | -`to` | string | Recipient of the transferred tokens | -`amountInBaseUnits` | `BigNumber` | The amount of tokens being transferred | -`tradeSide` | [TradeSide](#enumeration-tradeside) | Is Maker/Taker transferring | -`transferType` | [TransferType](#enumeration-transfertype) | Is it a fee payment or a value transfer | - -**Returns:** *`Promise`* - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - -# Class: OrderStateUtils - - -## Constructors - - - -\+ **new OrderStateUtils**(`balanceAndProxyAllowanceFetcher`: [AbstractBalanceAndProxyAllowanceFetcher](_order_utils_src_abstract_abstract_balance_and_proxy_allowance_fetcher_.abstractbalanceandproxyallowancefetcher.md), `orderFilledCancelledFetcher`: [AbstractOrderFilledCancelledFetcher](_order_utils_src_abstract_abstract_order_filled_cancelled_fetcher_.abstractorderfilledcancelledfetcher.md)): *[OrderStateUtils](#class-orderstateutils)* - -*Defined in [order-utils/src/order_state_utils.ts:98](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/order-utils/src/order_state_utils.ts#L98)* - -Instantiate OrderStateUtils - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`balanceAndProxyAllowanceFetcher` | [AbstractBalanceAndProxyAllowanceFetcher](#class-abstractbalanceandproxyallowancefetcher) | A class that is capable of fetching balances and proxyAllowances for Ethereum addresses. It must implement AbstractBalanceAndProxyAllowanceFetcher | -`orderFilledCancelledFetcher` | [AbstractOrderFilledCancelledFetcher](#class-abstractorderfilledcancelledfetcher) | A class that is capable of fetching whether an order is cancelled and how much of it has been filled. It must implement AbstractOrderFilledCancelledFetcher | - -**Returns:** *[OrderStateUtils](#class-orderstateutils)* - -Instance of OrderStateUtils - -## Methods - -### getMaxFillableTakerAssetAmountAsync - -▸ **getMaxFillableTakerAssetAmountAsync**(`signedOrder`: `SignedOrder`, `takerAddress`: string): *`Promise`* - -*Defined in [order-utils/src/order_state_utils.ts:192](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/order-utils/src/order_state_utils.ts#L192)* - -Get the max amount of the supplied order's takerAmount that could still be filled - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`signedOrder` | `SignedOrder` | Order of interest | -`takerAddress` | string | Hypothetical taker of the order | - -**Returns:** *`Promise`* - -fillableTakerAssetAmount - -___ - -### getOpenOrderRelevantStateAsync - -▸ **getOpenOrderRelevantStateAsync**(`signedOrder`: `SignedOrder`): *`Promise`* - -*Defined in [order-utils/src/order_state_utils.ts:162](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/order-utils/src/order_state_utils.ts#L162)* - -Get state relevant to an order (i.e makerBalance, makerAllowance, filledTakerAssetAmount, etc... - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`signedOrder` | `SignedOrder` | Order of interest | - -**Returns:** *`Promise`* - -An instance of OrderRelevantState - -___ - -### getOpenOrderStateAsync - -▸ **getOpenOrderStateAsync**(`signedOrder`: `SignedOrder`, `transactionHash?`: undefined | string): *`Promise`* - -*Defined in [order-utils/src/order_state_utils.ts:122](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/order-utils/src/order_state_utils.ts#L122)* - -Get the orderState for an "open" order (i.e where takerAddress=NULL_ADDRESS) -This method will only check the maker's balance/allowance to calculate the -OrderState. - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`signedOrder` | `SignedOrder` | The order of interest | -`transactionHash?` | undefined \| string | - | - -**Returns:** *`Promise`* - -State relevant to the signedOrder, as well as whether the signedOrder is "valid". -Validity is defined as a non-zero amount of the order can still be filled. - -
- -# Class: OrderValidationUtils - -A utility class for validating orders - - -## Constructors - - - -\+ **new OrderValidationUtils**(`orderFilledCancelledFetcher`: [AbstractOrderFilledCancelledFetcher](_order_utils_src_abstract_abstract_order_filled_cancelled_fetcher_.abstractorderfilledcancelledfetcher.md), `supportedProvider`: [SupportedProvider](#supportedprovider)): *[OrderValidationUtils](#class-ordervalidationutils)* - -*Defined in [order-utils/src/order_validation_utils.ts:113](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/order-utils/src/order_validation_utils.ts#L113)* - -Instantiate OrderValidationUtils - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`orderFilledCancelledFetcher` | [AbstractOrderFilledCancelledFetcher](#class-abstractorderfilledcancelledfetcher) | A module that implements the AbstractOrderFilledCancelledFetcher | -`supportedProvider` | [SupportedProvider](#supportedprovider) | Web3 provider to use for JSON RPC calls | - -**Returns:** *[OrderValidationUtils](#class-ordervalidationutils)* - -An instance of OrderValidationUtils - -## Methods - -### validateFillOrderThrowIfInvalidAsync - -▸ **validateFillOrderThrowIfInvalidAsync**(`exchangeTradeEmulator`: [ExchangeTransferSimulator](#class-exchangetransfersimulator), `signedOrder`: `SignedOrder`, `fillTakerAssetAmount`: `BigNumber`, `takerAddress`: string): *`Promise`* - -*Defined in [order-utils/src/order_validation_utils.ts:135](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/order-utils/src/order_validation_utils.ts#L135)* - -Validate a call to FillOrder and throw if it wouldn't succeed - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`exchangeTradeEmulator` | [ExchangeTransferSimulator](#class-exchangetransfersimulator) | ExchangeTradeEmulator to use | -`signedOrder` | `SignedOrder` | SignedOrder of interest | -`fillTakerAssetAmount` | `BigNumber` | Amount we'd like to fill the order for | -`takerAddress` | string | The taker of the order | - -**Returns:** *`Promise`* - -___ - -### `Static` isRoundingErrorFloor - -▸ **isRoundingErrorFloor**(`numerator`: `BigNumber`, `denominator`: `BigNumber`, `target`: `BigNumber`): *boolean* - -*Defined in [order-utils/src/order_validation_utils.ts:27](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/order-utils/src/order_validation_utils.ts#L27)* - -A TypeScript implementation mirroring the implementation of isRoundingError in the -Exchange smart contract - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`numerator` | `BigNumber` | Numerator value. When used to check an order, pass in `takerAssetFilledAmount` | -`denominator` | `BigNumber` | Denominator value. When used to check an order, pass in `order.takerAssetAmount` | -`target` | `BigNumber` | Target value. When used to check an order, pass in `order.makerAssetAmount` | - -**Returns:** *boolean* - -___ - -### `Static` validateFillOrderBalancesAllowancesThrowIfInvalidAsync - -▸ **validateFillOrderBalancesAllowancesThrowIfInvalidAsync**(`exchangeTradeEmulator`: [ExchangeTransferSimulator](#class-exchangetransfersimulator), `signedOrder`: `SignedOrder`, `fillTakerAssetAmount`: `BigNumber`, `senderAddress`: string): *`Promise`* - -*Defined in [order-utils/src/order_validation_utils.ts:53](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/order-utils/src/order_validation_utils.ts#L53)* - -Validate that the maker & taker have sufficient balances/allowances -to fill the supplied order to the fillTakerAssetAmount amount - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`exchangeTradeEmulator` | [ExchangeTransferSimulator](#class-exchangetransfersimulator) | ExchangeTradeEmulator to use | -`signedOrder` | `SignedOrder` | SignedOrder to test | -`fillTakerAssetAmount` | `BigNumber` | Amount of takerAsset to fill the signedOrder | -`senderAddress` | string | Sender of the fillOrder tx | - -**Returns:** *`Promise`* - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -# Class: BalanceAndProxyAllowanceLazyStore - -Copy on read store for balances/proxyAllowances of tokens/accounts - - -## Implements - -* [AbstractBalanceAndProxyAllowanceLazyStore](#class-abstractbalanceandproxyallowancelazystore) - - -## Constructors - - - -\+ **new BalanceAndProxyAllowanceLazyStore**(`balanceAndProxyAllowanceFetcher`: [AbstractBalanceAndProxyAllowanceFetcher](_order_utils_src_abstract_abstract_balance_and_proxy_allowance_fetcher_.abstractbalanceandproxyallowancefetcher.md)): *[BalanceAndProxyAllowanceLazyStore](#class-balanceandproxyallowancelazystore)* - -*Defined in [order-utils/src/store/balance_and_proxy_allowance_lazy_store.ts:23](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/order-utils/src/store/balance_and_proxy_allowance_lazy_store.ts#L23)* - -Instantiates a BalanceAndProxyAllowanceLazyStore - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`balanceAndProxyAllowanceFetcher` | [AbstractBalanceAndProxyAllowanceFetcher](#class-abstractbalanceandproxyallowancefetcher) | Class the implements the AbstractBalanceAndProxyAllowanceFetcher | - -**Returns:** *[BalanceAndProxyAllowanceLazyStore](#class-balanceandproxyallowancelazystore)* - -Instance of BalanceAndProxyAllowanceLazyStore - -## Methods - -### deleteAll - -▸ **deleteAll**(): *void* - -*Defined in [order-utils/src/store/balance_and_proxy_allowance_lazy_store.ts:136](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/order-utils/src/store/balance_and_proxy_allowance_lazy_store.ts#L136)* - -Delete all balances & allowances - -**Returns:** *void* -___ - -### deleteAllERC721ProxyAllowance - -▸ **deleteAllERC721ProxyAllowance**(`tokenAddress`: string, `userAddress`: string): *void* - -*Defined in [order-utils/src/store/balance_and_proxy_allowance_lazy_store.ts:119](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/order-utils/src/store/balance_and_proxy_allowance_lazy_store.ts#L119)* - -Clear all ERC721 0x proxy allowances a user has on all items of a specific ERC721 contract - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`tokenAddress` | string | ERc721 token address | -`userAddress` | string | Owner Ethereum address | - -**Returns:** *void* - -___ - -### deleteBalance - -▸ **deleteBalance**(`assetData`: string, `userAddress`: string): *void* - -*Defined in [order-utils/src/store/balance_and_proxy_allowance_lazy_store.ts:63](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/order-utils/src/store/balance_and_proxy_allowance_lazy_store.ts#L63)* - -Clear the balance of an asset for a user - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`assetData` | string | AssetData of interest | -`userAddress` | string | Ethereum address of interest | - -**Returns:** *void* - -___ - -### deleteProxyAllowance - -▸ **deleteProxyAllowance**(`assetData`: string, `userAddress`: string): *void* - -*Defined in [order-utils/src/store/balance_and_proxy_allowance_lazy_store.ts:106](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/order-utils/src/store/balance_and_proxy_allowance_lazy_store.ts#L106)* - -Clear the 0x asset proxy allowance - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`assetData` | string | AssetData of interest | -`userAddress` | string | Ethereum address of interest | - -**Returns:** *void* - -___ - -### getBalanceAsync - -▸ **getBalanceAsync**(`assetData`: string, `userAddress`: string): *`Promise`* - -*Defined in [order-utils/src/store/balance_and_proxy_allowance_lazy_store.ts:39](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/order-utils/src/store/balance_and_proxy_allowance_lazy_store.ts#L39)* - -Get a users balance of an asset - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`assetData` | string | AssetData of interest | -`userAddress` | string | Ethereum address of interest | - -**Returns:** *`Promise`* - -___ - -### getProxyAllowanceAsync - -▸ **getProxyAllowanceAsync**(`assetData`: string, `userAddress`: string): *`Promise`* - -*Defined in [order-utils/src/store/balance_and_proxy_allowance_lazy_store.ts:76](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/order-utils/src/store/balance_and_proxy_allowance_lazy_store.ts#L76)* - -Get the 0x asset proxy allowance - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`assetData` | string | AssetData of interest | -`userAddress` | string | Ethereum address of interest | - -**Returns:** *`Promise`* - -___ -### setBalance -▸ **setBalance**(`assetData`: string, `userAddress`: string, `balance`: `BigNumber`): *void* -*Defined in [order-utils/src/store/balance_and_proxy_allowance_lazy_store.ts:52](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/order-utils/src/store/balance_and_proxy_allowance_lazy_store.ts#L52)* -Set the balance of an asset for a user -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`assetData` | string | AssetData of interest | -`userAddress` | string | Ethereum address of interest | -`balance` | `BigNumber` | - | - -**Returns:** *void* - -___ - -### setProxyAllowance - -▸ **setProxyAllowance**(`assetData`: string, `userAddress`: string, `proxyAllowance`: `BigNumber`): *void* - -*Defined in [order-utils/src/store/balance_and_proxy_allowance_lazy_store.ts:95](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/order-utils/src/store/balance_and_proxy_allowance_lazy_store.ts#L95)* - -Set the 0x asset proxy allowance - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`assetData` | string | AssetData of interest | -`userAddress` | string | Ethereum address of interest | -`proxyAllowance` | `BigNumber` | - | - -**Returns:** *void* - -
- -# Class: OrderFilledCancelledLazyStore - -Copy on read store for balances/proxyAllowances of tokens/accounts - - -## Implements - -* [AbstractOrderFilledCancelledLazyStore](#class-abstractorderfilledcancelledlazystore) - - -## Constructors - - - -\+ **new OrderFilledCancelledLazyStore**(`orderFilledCancelledFetcher`: [AbstractOrderFilledCancelledFetcher](_order_utils_src_abstract_abstract_order_filled_cancelled_fetcher_.abstractorderfilledcancelledfetcher.md)): *[OrderFilledCancelledLazyStore](#class-orderfilledcancelledlazystore)* - -*Defined in [order-utils/src/store/order_filled_cancelled_lazy_store.ts:19](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/order-utils/src/store/order_filled_cancelled_lazy_store.ts#L19)* -Instantiate a OrderFilledCancelledLazyStore -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`orderFilledCancelledFetcher` | [AbstractOrderFilledCancelledFetcher](#class-abstractorderfilledcancelledfetcher) | Class instance that implements the AbstractOrderFilledCancelledFetcher | -**Returns:** *[OrderFilledCancelledLazyStore](#class-orderfilledcancelledlazystore)* -An instance of OrderFilledCancelledLazyStore -## Methods - -### deleteAll -▸ **deleteAll**(): *void* -*Defined in [order-utils/src/store/order_filled_cancelled_lazy_store.ts:90](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/order-utils/src/store/order_filled_cancelled_lazy_store.ts#L90)* -Clear all filled/cancelled state -**Returns:** *void* -___ -### deleteAllFilled -▸ **deleteAllFilled**(): *void* -*Defined in [order-utils/src/store/order_filled_cancelled_lazy_store.ts:103](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/order-utils/src/store/order_filled_cancelled_lazy_store.ts#L103)* -Clear all filled state -**Returns:** *void* -___ -### deleteAllIsCancelled -▸ **deleteAllIsCancelled**(): *void* -*Defined in [order-utils/src/store/order_filled_cancelled_lazy_store.ts:97](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/order-utils/src/store/order_filled_cancelled_lazy_store.ts#L97)* -Clear all cancelled state -**Returns:** *void* -___ -### deleteFilledTakerAmount -▸ **deleteFilledTakerAmount**(`orderHash`: string): *void* -*Defined in [order-utils/src/store/order_filled_cancelled_lazy_store.ts:55](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/order-utils/src/store/order_filled_cancelled_lazy_store.ts#L55)* -Clear the filledTakerAssetAmount of an order -**Parameters:** -Name | Type | Description | ------- | ------ | ------ | -`orderHash` | string | OrderHash from order of interest | -**Returns:** *void* -___ -### deleteIsCancelled -▸ **deleteIsCancelled**(`orderHash`: string): *void* -*Defined in [order-utils/src/store/order_filled_cancelled_lazy_store.ts:84](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/order-utils/src/store/order_filled_cancelled_lazy_store.ts#L84)* -Clear whether the order has been cancelled if already set -**Parameters:** -Name | Type | Description | ------- | ------ | ------ | -`orderHash` | string | OrderHash from order of interest | -**Returns:** *void* -___ -### getFilledTakerAmountAsync -▸ **getFilledTakerAmountAsync**(`orderHash`: string): *`Promise`* -*Defined in [order-utils/src/store/order_filled_cancelled_lazy_store.ts:35](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/order-utils/src/store/order_filled_cancelled_lazy_store.ts#L35)* -Get the filledTakerAssetAmount of an order -**Parameters:** -Name | Type | Description | ------- | ------ | ------ | -`orderHash` | string | OrderHash from order of interest | -**Returns:** *`Promise`* -filledTakerAssetAmount -___ -### getIsCancelledAsync -▸ **getIsCancelledAsync**(`signedOrder`: `SignedOrder`): *`Promise`* -*Defined in [order-utils/src/store/order_filled_cancelled_lazy_store.ts:63](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/order-utils/src/store/order_filled_cancelled_lazy_store.ts#L63)* -Check if an order has been cancelled -**Parameters:** -Name | Type | ------- | ------ | -`signedOrder` | `SignedOrder` | -**Returns:** *`Promise`* -Whether the order has been cancelled -___ -### setFilledTakerAmount -▸ **setFilledTakerAmount**(`orderHash`: string, `filledTakerAmount`: `BigNumber`): *void* -*Defined in [order-utils/src/store/order_filled_cancelled_lazy_store.ts:48](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/order-utils/src/store/order_filled_cancelled_lazy_store.ts#L48)* -Set the filledTakerAssetAmount of an order -**Parameters:** -Name | Type | Description | ------- | ------ | ------ | -`orderHash` | string | OrderHash from order of interest | -`filledTakerAmount` | `BigNumber` | Desired filledTakerAssetAmount | -**Returns:** *void* -___ -### setIsCancelled -▸ **setIsCancelled**(`orderHash`: string, `isCancelled`: boolean): *void* -*Defined in [order-utils/src/store/order_filled_cancelled_lazy_store.ts:77](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/order-utils/src/store/order_filled_cancelled_lazy_store.ts#L77)* -Set whether an order has been cancelled or not -**Parameters:** -Name | Type | Description | ------- | ------ | ------ | -`orderHash` | string | OrderHash from order of interest | -`isCancelled` | boolean | Whether this order should be cancelled or not | -**Returns:** *void* -
@@ -1067,47 +114,27 @@ Name | Type | Description | -# Enumeration: TradeSide -## Enumeration members -### Maker -• **Maker**: = "maker" -*Defined in [order-utils/src/types.ts:9](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/order-utils/src/types.ts#L9)* -___ -### Taker -• **Taker**: = "taker" -*Defined in [order-utils/src/types.ts:10](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/order-utils/src/types.ts#L10)* -
-# Enumeration: TransferType -## Enumeration members -### Fee -• **Fee**: = "fee" -*Defined in [order-utils/src/types.ts:15](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/order-utils/src/types.ts#L15)* -___ -### Trade -• **Trade**: = "trade" -*Defined in [order-utils/src/types.ts:14](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/order-utils/src/types.ts#L14)* -
# Enumeration: TypedDataError @@ -1118,7 +145,7 @@ ___ • **InvalidMetamaskSigner**: = "MetaMask provider must be wrapped in a MetamaskSubprovider (from the '@0x/subproviders' package) in order to work with this method." -*Defined in [order-utils/src/types.ts:5](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/order-utils/src/types.ts#L5)* +*Defined in [order-utils/src/types.ts:5](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/order-utils/src/types.ts#L5)* ___ @@ -1126,7 +153,7 @@ ___ • **InvalidSignature**: = "INVALID_SIGNATURE" -*Defined in [order-utils/src/types.ts:4](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/order-utils/src/types.ts#L4)* +*Defined in [order-utils/src/types.ts:4](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/order-utils/src/types.ts#L4)*
@@ -1139,7 +166,7 @@ ___ • **ERC1155**: = "0xa7cb5fb7" -*Defined in [types/src/index.ts:166](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/types/src/index.ts#L166)* +*Defined in [types/src/index.ts:166](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/types/src/index.ts#L166)* ___ @@ -1147,7 +174,7 @@ ___ • **ERC20**: = "0xf47261b0" -*Defined in [types/src/index.ts:163](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/types/src/index.ts#L163)* +*Defined in [types/src/index.ts:163](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/types/src/index.ts#L163)* ___ @@ -1155,7 +182,7 @@ ___ • **ERC20Bridge**: = "0xdc1600f3" -*Defined in [types/src/index.ts:168](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/types/src/index.ts#L168)* +*Defined in [types/src/index.ts:168](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/types/src/index.ts#L168)* ___ @@ -1163,7 +190,7 @@ ___ • **ERC721**: = "0x02571792" -*Defined in [types/src/index.ts:164](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/types/src/index.ts#L164)* +*Defined in [types/src/index.ts:164](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/types/src/index.ts#L164)* ___ @@ -1171,7 +198,7 @@ ___ • **MultiAsset**: = "0x94cfcdd7" -*Defined in [types/src/index.ts:165](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/types/src/index.ts#L165)* +*Defined in [types/src/index.ts:165](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/types/src/index.ts#L165)* ___ @@ -1179,182 +206,96 @@ ___ • **StaticCall**: = "0xc339d10a" -*Defined in [types/src/index.ts:167](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/types/src/index.ts#L167)* +*Defined in [types/src/index.ts:167](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/types/src/index.ts#L167)*
-# Enumeration: ExchangeContractErrs - -Errors originating from the 0x exchange contract - - -## Enumeration members - -### BatchOrdersMustHaveAtLeastOneItem - -• **BatchOrdersMustHaveAtLeastOneItem**: = "BATCH_ORDERS_MUST_HAVE_AT_LEAST_ONE_ITEM" - -*Defined in [types/src/index.ts:98](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/types/src/index.ts#L98)* - -___ - -### BatchOrdersMustHaveSameExchangeAddress - -• **BatchOrdersMustHaveSameExchangeAddress**: = "BATCH_ORDERS_MUST_HAVE_SAME_EXCHANGE_ADDRESS" - -*Defined in [types/src/index.ts:97](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/types/src/index.ts#L97)* - -___ - -### FillBalanceAllowanceError - -• **FillBalanceAllowanceError**: = "FILL_BALANCE_ALLOWANCE_ERROR" - -*Defined in [types/src/index.ts:84](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/types/src/index.ts#L84)* -___ - -### InsufficientMakerAllowance - -• **InsufficientMakerAllowance**: = "INSUFFICIENT_MAKER_ALLOWANCE" - -*Defined in [types/src/index.ts:88](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/types/src/index.ts#L88)* - -___ - -### InsufficientMakerBalance - -• **InsufficientMakerBalance**: = "INSUFFICIENT_MAKER_BALANCE" - -*Defined in [types/src/index.ts:87](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/types/src/index.ts#L87)* - -___ - -### InsufficientMakerFeeAllowance - -• **InsufficientMakerFeeAllowance**: = "INSUFFICIENT_MAKER_FEE_ALLOWANCE" - -*Defined in [types/src/index.ts:92](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/types/src/index.ts#L92)* - -___ -### InsufficientMakerFeeBalance -• **InsufficientMakerFeeBalance**: = "INSUFFICIENT_MAKER_FEE_BALANCE" -*Defined in [types/src/index.ts:91](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/types/src/index.ts#L91)* -___ - -### InsufficientRemainingFillAmount - -• **InsufficientRemainingFillAmount**: = "INSUFFICIENT_REMAINING_FILL_AMOUNT" - -*Defined in [types/src/index.ts:95](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/types/src/index.ts#L95)* - -___ - -### InsufficientTakerAllowance - -• **InsufficientTakerAllowance**: = "INSUFFICIENT_TAKER_ALLOWANCE" -*Defined in [types/src/index.ts:86](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/types/src/index.ts#L86)* -___ - -### InsufficientTakerBalance - -• **InsufficientTakerBalance**: = "INSUFFICIENT_TAKER_BALANCE" - -*Defined in [types/src/index.ts:85](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/types/src/index.ts#L85)* -___ - -### InsufficientTakerFeeAllowance -• **InsufficientTakerFeeAllowance**: = "INSUFFICIENT_TAKER_FEE_ALLOWANCE" -*Defined in [types/src/index.ts:90](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/types/src/index.ts#L90)* - -___ -### InsufficientTakerFeeBalance -• **InsufficientTakerFeeBalance**: = "INSUFFICIENT_TAKER_FEE_BALANCE" +# Enumeration: SignatureType -*Defined in [types/src/index.ts:89](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/types/src/index.ts#L89)* -___ +## Enumeration members -### MultipleMakersInSingleCancelBatchDisallowed +### EIP1271Wallet -• **MultipleMakersInSingleCancelBatchDisallowed**: = "MULTIPLE_MAKERS_IN_SINGLE_CANCEL_BATCH_DISALLOWED" +• **EIP1271Wallet**: -*Defined in [types/src/index.ts:94](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/types/src/index.ts#L94)* +*Defined in [types/src/index.ts:158](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/types/src/index.ts#L158)* ___ -### MultipleTakerTokensInFillUpToDisallowed +### EIP712 -• **MultipleTakerTokensInFillUpToDisallowed**: = "MULTIPLE_TAKER_TOKENS_IN_FILL_UP_TO_DISALLOWED" +• **EIP712**: -*Defined in [types/src/index.ts:96](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/types/src/index.ts#L96)* +*Defined in [types/src/index.ts:153](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/types/src/index.ts#L153)* ___ -### OrderCancelExpired +### EthSign -• **OrderCancelExpired**: = "ORDER_CANCEL_EXPIRED" +• **EthSign**: -*Defined in [types/src/index.ts:79](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/types/src/index.ts#L79)* +*Defined in [types/src/index.ts:154](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/types/src/index.ts#L154)* ___ -### OrderCancelled +### Illegal -• **OrderCancelled**: = "ORDER_CANCELLED" +• **Illegal**: -*Defined in [types/src/index.ts:80](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/types/src/index.ts#L80)* +*Defined in [types/src/index.ts:151](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/types/src/index.ts#L151)* ___ -### OrderFillAmountZero +### Invalid -• **OrderFillAmountZero**: = "ORDER_FILL_AMOUNT_ZERO" +• **Invalid**: -*Defined in [types/src/index.ts:81](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/types/src/index.ts#L81)* +*Defined in [types/src/index.ts:152](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/types/src/index.ts#L152)* ___ -### OrderFillExpired +### NSignatureTypes -• **OrderFillExpired**: = "ORDER_FILL_EXPIRED" +• **NSignatureTypes**: -*Defined in [types/src/index.ts:78](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/types/src/index.ts#L78)* +*Defined in [types/src/index.ts:159](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/types/src/index.ts#L159)* ___ -### OrderFillRoundingError +### PreSigned -• **OrderFillRoundingError**: = "ORDER_FILL_ROUNDING_ERROR" +• **PreSigned**: -*Defined in [types/src/index.ts:83](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/types/src/index.ts#L83)* +*Defined in [types/src/index.ts:157](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/types/src/index.ts#L157)* ___ -### OrderRemainingFillAmountZero +### Validator -• **OrderRemainingFillAmountZero**: = "ORDER_REMAINING_FILL_AMOUNT_ZERO" +• **Validator**: -*Defined in [types/src/index.ts:82](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/types/src/index.ts#L82)* +*Defined in [types/src/index.ts:156](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/types/src/index.ts#L156)* ___ -### TransactionSenderIsNotFillOrderTaker +### Wallet -• **TransactionSenderIsNotFillOrderTaker**: = "TRANSACTION_SENDER_IS_NOT_FILL_ORDER_TAKER" +• **Wallet**: -*Defined in [types/src/index.ts:93](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/types/src/index.ts#L93)* +*Defined in [types/src/index.ts:155](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/types/src/index.ts#L155)*
@@ -1368,82 +309,34 @@ ___ -# Enumeration: SignatureType - - -## Enumeration members - -### EIP1271Wallet - -• **EIP1271Wallet**: - -*Defined in [types/src/index.ts:158](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/types/src/index.ts#L158)* - -___ - -### EIP712 - -• **EIP712**: - -*Defined in [types/src/index.ts:153](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/types/src/index.ts#L153)* - -___ - -### EthSign - -• **EthSign**: - -*Defined in [types/src/index.ts:154](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/types/src/index.ts#L154)* - -___ - -### Illegal - -• **Illegal**: - -*Defined in [types/src/index.ts:151](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/types/src/index.ts#L151)* - -___ - -### Invalid -• **Invalid**: +## Type aliases -*Defined in [types/src/index.ts:152](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/types/src/index.ts#L152)* -___ -### NSignatureTypes +### AssetData -• **NSignatureTypes**: +Ƭ **AssetData**: *[SingleAssetData](_types_src_index_.md#singleassetdata) | [MultiAssetData](#interface-multiassetdata) | [MultiAssetDataWithRecursiveDecoding](#interface-multiassetdatawithrecursivedecoding)* -*Defined in [types/src/index.ts:159](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/types/src/index.ts#L159)* +*Defined in [types/src/index.ts:224](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/types/src/index.ts#L224)* ___ -### PreSigned -• **PreSigned**: -*Defined in [types/src/index.ts:157](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/types/src/index.ts#L157)* -___ -### Validator +### EIP712ObjectValue -• **Validator**: +Ƭ **EIP712ObjectValue**: *string | number | [EIP712Object](#interface-eip712object)* -*Defined in [types/src/index.ts:156](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/types/src/index.ts#L156)* +*Defined in [types/src/index.ts:740](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/types/src/index.ts#L740)* ___ -### Wallet -• **Wallet**: -*Defined in [types/src/index.ts:155](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/types/src/index.ts#L155)* -
@@ -1451,7 +344,13 @@ ___ +### SingleAssetData + +Ƭ **SingleAssetData**: *[ERC20AssetData](#interface-erc20assetdata) | [ERC721AssetData](#interface-erc721assetdata) | [ERC1155AssetData](#interface-erc1155assetdata) | [StaticCallAssetData](#interface-staticcallassetdata)* + +*Defined in [types/src/index.ts:204](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/types/src/index.ts#L204)* +
@@ -1498,7 +397,7 @@ ___ • **isEIP1193**: *boolean* -*Defined in [ethereum-types/src/index.ts:73](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L73)* +*Defined in [ethereum-types/src/index.ts:73](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L73)* ## Methods @@ -1506,7 +405,7 @@ ___ ▸ **on**(`event`: [EIP1193Event](#eip1193event), `listener`: function): *this* -*Defined in [ethereum-types/src/index.ts:75](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L75)* +*Defined in [ethereum-types/src/index.ts:75](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L75)* **Parameters:** @@ -1530,7 +429,7 @@ ___ ▸ **send**(`method`: string, `params?`: any[]): *`Promise`* -*Defined in [ethereum-types/src/index.ts:74](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L74)* +*Defined in [ethereum-types/src/index.ts:74](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L74)* **Parameters:** @@ -1564,7 +463,7 @@ Name | Type | ▸ **sendAsync**(`payload`: [JSONRPCRequestPayload](_ethereum_types_src_index_.jsonrpcrequestpayload.md), `callback`: [JSONRPCErrorCallback](#jsonrpcerrorcallback)): *void* -*Defined in [ethereum-types/src/index.ts:14](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L14)* +*Defined in [ethereum-types/src/index.ts:14](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L14)* **Parameters:** @@ -1588,7 +487,7 @@ Name | Type | • **id**: *number* -*Defined in [ethereum-types/src/index.ts:330](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L330)* +*Defined in [ethereum-types/src/index.ts:330](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L330)* ___ @@ -1596,7 +495,7 @@ ___ • **jsonrpc**: *string* -*Defined in [ethereum-types/src/index.ts:331](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L331)* +*Defined in [ethereum-types/src/index.ts:331](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L331)* ___ @@ -1604,7 +503,7 @@ ___ • **method**: *string* -*Defined in [ethereum-types/src/index.ts:329](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L329)* +*Defined in [ethereum-types/src/index.ts:329](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L329)* ___ @@ -1612,7 +511,7 @@ ___ • **params**: *any[]* -*Defined in [ethereum-types/src/index.ts:328](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L328)* +*Defined in [ethereum-types/src/index.ts:328](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L328)*
@@ -1625,7 +524,7 @@ ___ • **code**: *number* -*Defined in [ethereum-types/src/index.ts:336](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L336)* +*Defined in [ethereum-types/src/index.ts:336](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L336)* ___ @@ -1633,7 +532,7 @@ ___ • **message**: *string* -*Defined in [ethereum-types/src/index.ts:335](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L335)* +*Defined in [ethereum-types/src/index.ts:335](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L335)*
@@ -1646,7 +545,7 @@ ___ • **error**? : *[JSONRPCResponseError](#class-jsonrpcresponseerror)* -*Defined in [ethereum-types/src/index.ts:343](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L343)* +*Defined in [ethereum-types/src/index.ts:343](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L343)* ___ @@ -1654,7 +553,7 @@ ___ • **id**: *number* -*Defined in [ethereum-types/src/index.ts:341](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L341)* +*Defined in [ethereum-types/src/index.ts:341](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L341)* ___ @@ -1662,7 +561,7 @@ ___ • **jsonrpc**: *string* -*Defined in [ethereum-types/src/index.ts:342](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L342)* +*Defined in [ethereum-types/src/index.ts:342](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L342)* ___ @@ -1670,7 +569,7 @@ ___ • **result**: *any* -*Defined in [ethereum-types/src/index.ts:340](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L340)* +*Defined in [ethereum-types/src/index.ts:340](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L340)*
@@ -1731,7 +630,7 @@ This interface allowed sending synchonous requests, support for which was later ▸ **send**(`payload`: [JSONRPCRequestPayload](_ethereum_types_src_index_.jsonrpcrequestpayload.md)): *[JSONRPCResponsePayload](#class-jsonrpcresponsepayload)* -*Defined in [ethereum-types/src/index.ts:45](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L45)* +*Defined in [ethereum-types/src/index.ts:45](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L45)* **Parameters:** @@ -1747,7 +646,7 @@ ___ ▸ **sendAsync**(`payload`: [JSONRPCRequestPayload](_ethereum_types_src_index_.jsonrpcrequestpayload.md), `callback`: [JSONRPCErrorCallback](#jsonrpcerrorcallback)): *void* -*Defined in [ethereum-types/src/index.ts:44](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L44)* +*Defined in [ethereum-types/src/index.ts:44](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L44)* **Parameters:** @@ -1773,7 +672,7 @@ before the first attempts to conform to EIP1193 ▸ **send**(`payload`: [JSONRPCRequestPayload](_ethereum_types_src_index_.jsonrpcrequestpayload.md), `callback`: [JSONRPCErrorCallback](#jsonrpcerrorcallback)): *void* -*Defined in [ethereum-types/src/index.ts:54](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L54)* +*Defined in [ethereum-types/src/index.ts:54](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L54)* **Parameters:** @@ -1799,7 +698,7 @@ however it does not conform entirely. ▸ **send**(`method`: string, `params?`: any[]): *`Promise`* -*Defined in [ethereum-types/src/index.ts:63](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L63)* +*Defined in [ethereum-types/src/index.ts:63](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L63)* **Parameters:** @@ -1825,7 +724,7 @@ add here • **isMetaMask**? : *undefined | false | true* -*Defined in [ethereum-types/src/index.ts:31](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L31)* +*Defined in [ethereum-types/src/index.ts:31](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L31)* ___ @@ -1833,7 +732,7 @@ ___ • **isParity**? : *undefined | false | true* -*Defined in [ethereum-types/src/index.ts:32](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L32)* +*Defined in [ethereum-types/src/index.ts:32](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L32)* ___ @@ -1841,7 +740,7 @@ ___ • **isZeroExProvider**? : *undefined | false | true* -*Defined in [ethereum-types/src/index.ts:30](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L30)* +*Defined in [ethereum-types/src/index.ts:30](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L30)* ## Methods @@ -1849,7 +748,7 @@ ___ ▸ **enable**(): *`Promise`* -*Defined in [ethereum-types/src/index.ts:34](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L34)* +*Defined in [ethereum-types/src/index.ts:34](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L34)* **Returns:** *`Promise`* @@ -1859,7 +758,7 @@ ___ ▸ **sendAsync**(`payload`: [JSONRPCRequestPayload](_ethereum_types_src_index_.jsonrpcrequestpayload.md), `callback`: [JSONRPCErrorCallback](#jsonrpcerrorcallback)): *void* -*Defined in [ethereum-types/src/index.ts:35](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L35)* +*Defined in [ethereum-types/src/index.ts:35](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L35)* **Parameters:** @@ -1876,7 +775,7 @@ ___ ▸ **stop**(): *void* -*Defined in [ethereum-types/src/index.ts:33](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L33)* +*Defined in [ethereum-types/src/index.ts:33](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L33)* **Returns:** *void* @@ -1897,7 +796,7 @@ ___ • **feeOrdersRemainingFillableMakerAssetAmounts**: *`BigNumber`[]* -*Defined in [order-utils/src/types.ts:78](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/order-utils/src/types.ts#L78)* +*Defined in [order-utils/src/types.ts:68](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/order-utils/src/types.ts#L68)* ___ @@ -1905,7 +804,7 @@ ___ • **remainingFeeAmount**: *`BigNumber`* -*Defined in [order-utils/src/types.ts:79](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/order-utils/src/types.ts#L79)* +*Defined in [order-utils/src/types.ts:69](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/order-utils/src/types.ts#L69)* ___ @@ -1913,7 +812,7 @@ ___ • **resultFeeOrders**: *`T`[]* -*Defined in [order-utils/src/types.ts:77](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/order-utils/src/types.ts#L77)* +*Defined in [order-utils/src/types.ts:67](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/order-utils/src/types.ts#L67)*
@@ -1935,7 +834,7 @@ Defaults to 0 • **remainingFillableFeeAmounts**? : *`BigNumber`[]* -*Defined in [order-utils/src/types.ts:72](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/order-utils/src/types.ts#L72)* +*Defined in [order-utils/src/types.ts:62](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/order-utils/src/types.ts#L62)* ___ @@ -1943,7 +842,7 @@ ___ • **remainingFillableMakerAssetAmounts**? : *`BigNumber`[]* -*Defined in [order-utils/src/types.ts:71](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/order-utils/src/types.ts#L71)* +*Defined in [order-utils/src/types.ts:61](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/order-utils/src/types.ts#L61)* ___ @@ -1951,7 +850,7 @@ ___ • **slippageBufferAmount**? : *`BigNumber`* -*Defined in [order-utils/src/types.ts:73](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/order-utils/src/types.ts#L73)* +*Defined in [order-utils/src/types.ts:63](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/order-utils/src/types.ts#L63)*
@@ -1970,7 +869,7 @@ Defaults to 0 • **remainingFillableMakerAssetAmounts**? : *`BigNumber`[]* -*Defined in [order-utils/src/types.ts:44](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/order-utils/src/types.ts#L44)* +*Defined in [order-utils/src/types.ts:34](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/order-utils/src/types.ts#L34)* ___ @@ -1978,7 +877,7 @@ ___ • **slippageBufferAmount**? : *`BigNumber`* -*Defined in [order-utils/src/types.ts:45](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/order-utils/src/types.ts#L45)* +*Defined in [order-utils/src/types.ts:35](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/order-utils/src/types.ts#L35)*
@@ -1997,7 +896,7 @@ Defaults to 0 • **remainingFillableTakerAssetAmounts**? : *`BigNumber`[]* -*Defined in [order-utils/src/types.ts:56](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/order-utils/src/types.ts#L56)* +*Defined in [order-utils/src/types.ts:46](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/order-utils/src/types.ts#L46)* ___ @@ -2005,7 +904,7 @@ ___ • **slippageBufferAmount**? : *`BigNumber`* -*Defined in [order-utils/src/types.ts:57](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/order-utils/src/types.ts#L57)* +*Defined in [order-utils/src/types.ts:47](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/order-utils/src/types.ts#L47)*
@@ -2022,7 +921,7 @@ ___ • **ordersRemainingFillableMakerAssetAmounts**: *`BigNumber`[]* -*Defined in [order-utils/src/types.ts:84](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/order-utils/src/types.ts#L84)* +*Defined in [order-utils/src/types.ts:74](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/order-utils/src/types.ts#L74)* ___ @@ -2030,7 +929,7 @@ ___ • **remainingFillAmount**: *`BigNumber`* -*Defined in [order-utils/src/types.ts:85](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/order-utils/src/types.ts#L85)* +*Defined in [order-utils/src/types.ts:75](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/order-utils/src/types.ts#L75)* ___ @@ -2038,7 +937,7 @@ ___ • **resultOrders**: *`T`[]* -*Defined in [order-utils/src/types.ts:83](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/order-utils/src/types.ts#L83)* +*Defined in [order-utils/src/types.ts:73](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/order-utils/src/types.ts#L73)*
@@ -2055,7 +954,7 @@ ___ • **ordersRemainingFillableTakerAssetAmounts**: *`BigNumber`[]* -*Defined in [order-utils/src/types.ts:90](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/order-utils/src/types.ts#L90)* +*Defined in [order-utils/src/types.ts:80](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/order-utils/src/types.ts#L80)* ___ @@ -2063,7 +962,7 @@ ___ • **remainingFillAmount**: *`BigNumber`* -*Defined in [order-utils/src/types.ts:91](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/order-utils/src/types.ts#L91)* +*Defined in [order-utils/src/types.ts:81](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/order-utils/src/types.ts#L81)* ___ @@ -2071,7 +970,7 @@ ___ • **resultOrders**: *`T`[]* -*Defined in [order-utils/src/types.ts:89](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/order-utils/src/types.ts#L89)* +*Defined in [order-utils/src/types.ts:79](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/order-utils/src/types.ts#L79)*
@@ -2110,7 +1009,7 @@ ___ • **assetData**: *[AssetData](#assetdata)* -*Defined in [types/src/index.ts:219](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/types/src/index.ts#L219)* +*Defined in [types/src/index.ts:219](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/types/src/index.ts#L219)* ___ @@ -2118,7 +1017,7 @@ ___ • **beginAmount**: *`BigNumber`* -*Defined in [types/src/index.ts:221](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/types/src/index.ts#L221)* +*Defined in [types/src/index.ts:221](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/types/src/index.ts#L221)* ___ @@ -2126,7 +1025,7 @@ ___ • **beginTimeSeconds**: *`BigNumber`* -*Defined in [types/src/index.ts:220](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/types/src/index.ts#L220)* +*Defined in [types/src/index.ts:220](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/types/src/index.ts#L220)*
@@ -2143,7 +1042,7 @@ Elliptic Curve signature • **r**: *string* -*Defined in [types/src/index.ts:62](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/types/src/index.ts#L62)* +*Defined in [types/src/index.ts:62](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/types/src/index.ts#L62)* ___ @@ -2151,623 +1050,338 @@ ___ • **s**: *string* -*Defined in [types/src/index.ts:63](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/types/src/index.ts#L63)* - -___ - -### v - -• **v**: *number* - -*Defined in [types/src/index.ts:61](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/types/src/index.ts#L61)* - -
- -# Interface: EIP712DomainWithDefaultSchema - - -## Properties - -### chainId - -• **chainId**: *number* - -*Defined in [types/src/index.ts:802](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/types/src/index.ts#L802)* - -___ - -### `Optional` name - -• **name**? : *undefined | string* - -*Defined in [types/src/index.ts:800](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/types/src/index.ts#L800)* - -___ - -### verifyingContract - -• **verifyingContract**: *string* - -*Defined in [types/src/index.ts:803](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/types/src/index.ts#L803)* - -___ - -### `Optional` version - -• **version**? : *undefined | string* - -*Defined in [types/src/index.ts:801](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/types/src/index.ts#L801)* - -
- -# Interface: EIP712Object - - -## Hierarchy - -* **EIP712Parameter** - - -## Properties - -### name - -• **name**: *string* - -*Defined in [types/src/index.ts:720](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/types/src/index.ts#L720)* - -___ - -### type - -• **type**: *string* - -*Defined in [types/src/index.ts:721](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/types/src/index.ts#L721)* - -
- -# Interface: EIP712TypedData - - -## Properties - -### domain - -• **domain**: *[EIP712Object](#class-eip712object)* - -*Defined in [types/src/index.ts:736](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/types/src/index.ts#L736)* - -___ - -### message - -• **message**: *[EIP712Object](#class-eip712object)* - -*Defined in [types/src/index.ts:737](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/types/src/index.ts#L737)* - -___ - -### primaryType - -• **primaryType**: *string* - -*Defined in [types/src/index.ts:738](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/types/src/index.ts#L738)* - -___ - -### types - -• **types**: *[EIP712Types](#class-eip712types)* - -*Defined in [types/src/index.ts:735](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/types/src/index.ts#L735)* - -
- -# Interface: EIP712Types - - -## Hierarchy - -* **ElementType** - - -## Properties - -### name - -• **name**: *string* - -*Defined in [types/src/index.ts:674](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/types/src/index.ts#L674)* - -___ - -### typeDocType - -• **typeDocType**: *[TypeDocTypes](#enumeration-typedoctypes)* - -*Defined in [types/src/index.ts:675](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/types/src/index.ts#L675)* - -
- -# Interface: ERC1155AssetData - - -## Properties - -### assetProxyId - -• **assetProxyId**: *string* - -*Defined in [types/src/index.ts:183](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/types/src/index.ts#L183)* - -___ - -### callbackData - -• **callbackData**: *string* - -*Defined in [types/src/index.ts:187](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/types/src/index.ts#L187)* - -___ - -### tokenAddress - -• **tokenAddress**: *string* - -*Defined in [types/src/index.ts:184](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/types/src/index.ts#L184)* - -___ - -### tokenIds - -• **tokenIds**: *`BigNumber`[]* - -*Defined in [types/src/index.ts:185](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/types/src/index.ts#L185)* - -___ - -### tokenValues - -• **tokenValues**: *`BigNumber`[]* - -*Defined in [types/src/index.ts:186](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/types/src/index.ts#L186)* - -
- - - -# Interface: ERC20AssetData - - -## Properties - -### assetProxyId - -• **assetProxyId**: *string* - -*Defined in [types/src/index.ts:172](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/types/src/index.ts#L172)* - -___ - -### tokenAddress - -• **tokenAddress**: *string* - -*Defined in [types/src/index.ts:173](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/types/src/index.ts#L173)* - -
- -# Interface: ERC721AssetData - - -## Properties - -### assetProxyId - -• **assetProxyId**: *string* - -*Defined in [types/src/index.ts:177](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/types/src/index.ts#L177)* - -___ - -### tokenAddress - -• **tokenAddress**: *string* - -*Defined in [types/src/index.ts:178](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/types/src/index.ts#L178)* - -___ - -### tokenId - -• **tokenId**: *`BigNumber`* - -*Defined in [types/src/index.ts:179](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/types/src/index.ts#L179)* - -
- - - - - - - - - - - - - - - - - -# Interface: MultiAssetData - - -## Properties - -### amounts - -• **amounts**: *`BigNumber`[]* - -*Defined in [types/src/index.ts:208](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/types/src/index.ts#L208)* - -___ - -### assetProxyId - -• **assetProxyId**: *string* - -*Defined in [types/src/index.ts:207](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/types/src/index.ts#L207)* +*Defined in [types/src/index.ts:63](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/types/src/index.ts#L63)* ___ -### nestedAssetData +### v -• **nestedAssetData**: *string[]* +• **v**: *number* -*Defined in [types/src/index.ts:209](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/types/src/index.ts#L209)* +*Defined in [types/src/index.ts:61](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/types/src/index.ts#L61)*
-# Interface: MultiAssetDataWithRecursiveDecoding +# Interface: EIP712DomainWithDefaultSchema ## Properties -### amounts +### chainId -• **amounts**: *`BigNumber`[]* +• **chainId**: *number* -*Defined in [types/src/index.ts:214](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/types/src/index.ts#L214)* +*Defined in [types/src/index.ts:793](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/types/src/index.ts#L793)* ___ -### assetProxyId +### `Optional` name -• **assetProxyId**: *string* +• **name**? : *undefined | string* -*Defined in [types/src/index.ts:213](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/types/src/index.ts#L213)* +*Defined in [types/src/index.ts:791](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/types/src/index.ts#L791)* ___ -### nestedAssetData +### verifyingContract -• **nestedAssetData**: *[SingleAssetData](#singleassetdata)[]* +• **verifyingContract**: *string* -*Defined in [types/src/index.ts:215](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/types/src/index.ts#L215)* +*Defined in [types/src/index.ts:794](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/types/src/index.ts#L794)* -
+___ -# Interface: ObjectMap <**T**> +### `Optional` version -## Type parameters +• **version**? : *undefined | string* -▪ **T** +*Defined in [types/src/index.ts:792](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/types/src/index.ts#L792)* +
+ +# Interface: EIP712Object -## Hierarchy -* **Order** +## Hierarchy - * [SignedOrder](#class-signedorder) +* **EIP712Parameter** ## Properties -### chainId +### name -• **chainId**: *number* +• **name**: *string* -*Defined in [types/src/index.ts:14](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/types/src/index.ts#L14)* +*Defined in [types/src/index.ts:732](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/types/src/index.ts#L732)* ___ -### exchangeAddress - -• **exchangeAddress**: *string* +### type -*Defined in [types/src/index.ts:15](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/types/src/index.ts#L15)* +• **type**: *string* -___ +*Defined in [types/src/index.ts:733](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/types/src/index.ts#L733)* -### expirationTimeSeconds +
-• **expirationTimeSeconds**: *`BigNumber`* +# Interface: EIP712TypedData -*Defined in [types/src/index.ts:24](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/types/src/index.ts#L24)* -___ +## Properties -### feeRecipientAddress +### domain -• **feeRecipientAddress**: *string* +• **domain**: *[EIP712Object](#class-eip712object)* -*Defined in [types/src/index.ts:18](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/types/src/index.ts#L18)* +*Defined in [types/src/index.ts:748](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/types/src/index.ts#L748)* ___ -### makerAddress +### message -• **makerAddress**: *string* +• **message**: *[EIP712Object](#class-eip712object)* -*Defined in [types/src/index.ts:16](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/types/src/index.ts#L16)* +*Defined in [types/src/index.ts:749](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/types/src/index.ts#L749)* ___ -### makerAssetAmount +### primaryType -• **makerAssetAmount**: *`BigNumber`* +• **primaryType**: *string* -*Defined in [types/src/index.ts:20](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/types/src/index.ts#L20)* +*Defined in [types/src/index.ts:750](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/types/src/index.ts#L750)* ___ -### makerAssetData +### types -• **makerAssetData**: *string* +• **types**: *[EIP712Types](#class-eip712types)* -*Defined in [types/src/index.ts:26](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/types/src/index.ts#L26)* +*Defined in [types/src/index.ts:747](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/types/src/index.ts#L747)* -___ +
-### makerFee +# Interface: EIP712Types -• **makerFee**: *`BigNumber`* -*Defined in [types/src/index.ts:22](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/types/src/index.ts#L22)* +## Hierarchy -___ +* **ElementType** -### makerFeeAssetData -• **makerFeeAssetData**: *string* +## Properties -*Defined in [types/src/index.ts:28](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/types/src/index.ts#L28)* +### name -___ +• **name**: *string* -### salt +*Defined in [types/src/index.ts:686](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/types/src/index.ts#L686)* -• **salt**: *`BigNumber`* +___ + +### typeDocType -*Defined in [types/src/index.ts:25](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/types/src/index.ts#L25)* +• **typeDocType**: *[TypeDocTypes](#enumeration-typedoctypes)* -___ +*Defined in [types/src/index.ts:687](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/types/src/index.ts#L687)* -### senderAddress +
-• **senderAddress**: *string* +# Interface: ERC1155AssetData -*Defined in [types/src/index.ts:19](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/types/src/index.ts#L19)* -___ +## Properties -### takerAddress +### assetProxyId -• **takerAddress**: *string* +• **assetProxyId**: *string* -*Defined in [types/src/index.ts:17](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/types/src/index.ts#L17)* +*Defined in [types/src/index.ts:183](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/types/src/index.ts#L183)* ___ -### takerAssetAmount +### callbackData -• **takerAssetAmount**: *`BigNumber`* +• **callbackData**: *string* -*Defined in [types/src/index.ts:21](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/types/src/index.ts#L21)* +*Defined in [types/src/index.ts:187](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/types/src/index.ts#L187)* ___ -### takerAssetData +### tokenAddress -• **takerAssetData**: *string* +• **tokenAddress**: *string* -*Defined in [types/src/index.ts:27](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/types/src/index.ts#L27)* +*Defined in [types/src/index.ts:184](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/types/src/index.ts#L184)* ___ -### takerFee +### tokenIds -• **takerFee**: *`BigNumber`* +• **tokenIds**: *`BigNumber`[]* -*Defined in [types/src/index.ts:23](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/types/src/index.ts#L23)* +*Defined in [types/src/index.ts:185](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/types/src/index.ts#L185)* ___ -### takerFeeAssetData +### tokenValues -• **takerFeeAssetData**: *string* +• **tokenValues**: *`BigNumber`[]* -*Defined in [types/src/index.ts:29](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/types/src/index.ts#L29)* +*Defined in [types/src/index.ts:186](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/types/src/index.ts#L186)*
+# Interface: ERC20AssetData + + +## Properties + +### assetProxyId +• **assetProxyId**: *string* +*Defined in [types/src/index.ts:172](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/types/src/index.ts#L172)* +___ +### tokenAddress +• **tokenAddress**: *string* +*Defined in [types/src/index.ts:173](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/types/src/index.ts#L173)* +
-# Interface: OrderRelevantState +# Interface: ERC721AssetData ## Properties -### filledTakerAssetAmount +### assetProxyId -• **filledTakerAssetAmount**: *`BigNumber`* +• **assetProxyId**: *string* -*Defined in [types/src/index.ts:122](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/types/src/index.ts#L122)* +*Defined in [types/src/index.ts:177](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/types/src/index.ts#L177)* ___ -### makerBalance +### tokenAddress -• **makerBalance**: *`BigNumber`* +• **tokenAddress**: *string* -*Defined in [types/src/index.ts:116](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/types/src/index.ts#L116)* +*Defined in [types/src/index.ts:178](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/types/src/index.ts#L178)* ___ -### makerFeeBalance +### tokenId -• **makerFeeBalance**: *`BigNumber`* +• **tokenId**: *`BigNumber`* -*Defined in [types/src/index.ts:120](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/types/src/index.ts#L120)* +*Defined in [types/src/index.ts:179](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/types/src/index.ts#L179)* -___ +
-### makerFeeProxyAllowance -• **makerFeeProxyAllowance**: *`BigNumber`* -*Defined in [types/src/index.ts:121](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/types/src/index.ts#L121)* -___ -### makerIndividualBalances + -• **makerIndividualBalances**: *[ObjectMap](#class-objectmap)‹*`BigNumber`*›* -*Defined in [types/src/index.ts:117](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/types/src/index.ts#L117)* -___ -### makerIndividualProxyAllowances -• **makerIndividualProxyAllowances**: *[ObjectMap](#class-objectmap)‹*`BigNumber`*›* -*Defined in [types/src/index.ts:119](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/types/src/index.ts#L119)* -___ -### makerProxyAllowance -• **makerProxyAllowance**: *`BigNumber`* -*Defined in [types/src/index.ts:118](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/types/src/index.ts#L118)* -___ +# Interface: MultiAssetData + -### remainingFillableMakerAssetAmount +## Properties + +### amounts -• **remainingFillableMakerAssetAmount**: *`BigNumber`* +• **amounts**: *`BigNumber`[]* -*Defined in [types/src/index.ts:123](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/types/src/index.ts#L123)* +*Defined in [types/src/index.ts:208](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/types/src/index.ts#L208)* ___ -### remainingFillableTakerAssetAmount +### assetProxyId -• **remainingFillableTakerAssetAmount**: *`BigNumber`* +• **assetProxyId**: *string* -*Defined in [types/src/index.ts:124](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/types/src/index.ts#L124)* +*Defined in [types/src/index.ts:207](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/types/src/index.ts#L207)* -
+___ +### nestedAssetData +• **nestedAssetData**: *string[]* +*Defined in [types/src/index.ts:209](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/types/src/index.ts#L209)* +
-# Interface: OrderStateInvalid +# Interface: MultiAssetDataWithRecursiveDecoding ## Properties -### error +### amounts -• **error**: *[ExchangeContractErrs](#enumeration-exchangecontracterrs)* +• **amounts**: *`BigNumber`[]* -*Defined in [types/src/index.ts:137](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/types/src/index.ts#L137)* +*Defined in [types/src/index.ts:214](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/types/src/index.ts#L214)* ___ -### isValid +### assetProxyId -• **isValid**: *false* +• **assetProxyId**: *string* -*Defined in [types/src/index.ts:135](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/types/src/index.ts#L135)* +*Defined in [types/src/index.ts:213](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/types/src/index.ts#L213)* ___ -### orderHash +### nestedAssetData -• **orderHash**: *string* +• **nestedAssetData**: *[SingleAssetData](#singleassetdata)[]* -*Defined in [types/src/index.ts:136](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/types/src/index.ts#L136)* +*Defined in [types/src/index.ts:215](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/types/src/index.ts#L215)* + +
-___ -### `Optional` transactionHash -• **transactionHash**? : *undefined | string* -*Defined in [types/src/index.ts:138](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/types/src/index.ts#L138)* -
-# Interface: OrderStateValid -## Properties -### isValid -• **isValid**: *true* -*Defined in [types/src/index.ts:128](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/types/src/index.ts#L128)* -___ -### orderHash -• **orderHash**: *string* -*Defined in [types/src/index.ts:129](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/types/src/index.ts#L129)* -___ -### orderRelevantState -• **orderRelevantState**: *[OrderRelevantState](#class-orderrelevantstate)* -*Defined in [types/src/index.ts:130](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/types/src/index.ts#L130)* -___ -### `Optional` transactionHash -• **transactionHash**? : *undefined | string* -*Defined in [types/src/index.ts:131](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/types/src/index.ts#L131)* -
@@ -2794,7 +1408,7 @@ ___ *Inherited from [Order](#interface-order).[chainId](#chainid)* -*Defined in [types/src/index.ts:14](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/types/src/index.ts#L14)* +*Defined in [types/src/index.ts:14](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/types/src/index.ts#L14)* ___ @@ -2804,7 +1418,7 @@ ___ *Inherited from [Order](#interface-order).[exchangeAddress](#exchangeaddress)* -*Defined in [types/src/index.ts:15](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/types/src/index.ts#L15)* +*Defined in [types/src/index.ts:15](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/types/src/index.ts#L15)* ___ @@ -2814,7 +1428,7 @@ ___ *Inherited from [Order](#interface-order).[expirationTimeSeconds](#expirationtimeseconds)* -*Defined in [types/src/index.ts:24](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/types/src/index.ts#L24)* +*Defined in [types/src/index.ts:24](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/types/src/index.ts#L24)* ___ @@ -2824,7 +1438,7 @@ ___ *Inherited from [Order](#interface-order).[feeRecipientAddress](#feerecipientaddress)* -*Defined in [types/src/index.ts:18](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/types/src/index.ts#L18)* +*Defined in [types/src/index.ts:18](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/types/src/index.ts#L18)* ___ @@ -2834,7 +1448,7 @@ ___ *Inherited from [Order](#interface-order).[makerAddress](#makeraddress)* -*Defined in [types/src/index.ts:16](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/types/src/index.ts#L16)* +*Defined in [types/src/index.ts:16](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/types/src/index.ts#L16)* ___ @@ -2844,7 +1458,7 @@ ___ *Inherited from [Order](#interface-order).[makerAssetAmount](#makerassetamount)* -*Defined in [types/src/index.ts:20](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/types/src/index.ts#L20)* +*Defined in [types/src/index.ts:20](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/types/src/index.ts#L20)* ___ @@ -2854,7 +1468,7 @@ ___ *Inherited from [Order](#interface-order).[makerAssetData](#makerassetdata)* -*Defined in [types/src/index.ts:26](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/types/src/index.ts#L26)* +*Defined in [types/src/index.ts:26](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/types/src/index.ts#L26)* ___ @@ -2864,7 +1478,7 @@ ___ *Inherited from [Order](#interface-order).[makerFee](#makerfee)* -*Defined in [types/src/index.ts:22](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/types/src/index.ts#L22)* +*Defined in [types/src/index.ts:22](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/types/src/index.ts#L22)* ___ @@ -2874,7 +1488,7 @@ ___ *Inherited from [Order](#interface-order).[makerFeeAssetData](#makerfeeassetdata)* -*Defined in [types/src/index.ts:28](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/types/src/index.ts#L28)* +*Defined in [types/src/index.ts:28](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/types/src/index.ts#L28)* ___ @@ -2884,7 +1498,7 @@ ___ *Inherited from [Order](#interface-order).[salt](#salt)* -*Defined in [types/src/index.ts:25](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/types/src/index.ts#L25)* +*Defined in [types/src/index.ts:25](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/types/src/index.ts#L25)* ___ @@ -2894,7 +1508,7 @@ ___ *Inherited from [Order](#interface-order).[senderAddress](#senderaddress)* -*Defined in [types/src/index.ts:19](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/types/src/index.ts#L19)* +*Defined in [types/src/index.ts:19](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/types/src/index.ts#L19)* ___ @@ -2902,7 +1516,7 @@ ___ • **signature**: *string* -*Defined in [types/src/index.ts:33](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/types/src/index.ts#L33)* +*Defined in [types/src/index.ts:33](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/types/src/index.ts#L33)* ___ @@ -2912,7 +1526,7 @@ ___ *Inherited from [Order](#interface-order).[takerAddress](#takeraddress)* -*Defined in [types/src/index.ts:17](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/types/src/index.ts#L17)* +*Defined in [types/src/index.ts:17](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/types/src/index.ts#L17)* ___ @@ -2922,7 +1536,7 @@ ___ *Inherited from [Order](#interface-order).[takerAssetAmount](#takerassetamount)* -*Defined in [types/src/index.ts:21](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/types/src/index.ts#L21)* +*Defined in [types/src/index.ts:21](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/types/src/index.ts#L21)* ___ @@ -2932,7 +1546,7 @@ ___ *Inherited from [Order](#interface-order).[takerAssetData](#takerassetdata)* -*Defined in [types/src/index.ts:27](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/types/src/index.ts#L27)* +*Defined in [types/src/index.ts:27](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/types/src/index.ts#L27)* ___ @@ -2942,7 +1556,7 @@ ___ *Inherited from [Order](#interface-order).[takerFee](#takerfee)* -*Defined in [types/src/index.ts:23](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/types/src/index.ts#L23)* +*Defined in [types/src/index.ts:23](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/types/src/index.ts#L23)* ___ @@ -2952,7 +1566,7 @@ ___ *Inherited from [Order](#interface-order).[takerFeeAssetData](#takerfeeassetdata)* -*Defined in [types/src/index.ts:29](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/types/src/index.ts#L29)* +*Defined in [types/src/index.ts:29](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/types/src/index.ts#L29)*
@@ -2967,7 +1581,7 @@ ___ *Inherited from [ZeroExTransaction](#interface-zeroextransaction).[data](#data)* -*Defined in [types/src/index.ts:49](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/types/src/index.ts#L49)* +*Defined in [types/src/index.ts:49](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/types/src/index.ts#L49)* ___ @@ -2977,7 +1591,7 @@ ___ *Inherited from [ZeroExTransaction](#interface-zeroextransaction).[domain](#domain)* -*Defined in [types/src/index.ts:50](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/types/src/index.ts#L50)* +*Defined in [types/src/index.ts:50](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/types/src/index.ts#L50)* ___ @@ -2987,7 +1601,7 @@ ___ *Inherited from [ZeroExTransaction](#interface-zeroextransaction).[expirationTimeSeconds](#expirationtimeseconds)* -*Defined in [types/src/index.ts:46](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/types/src/index.ts#L46)* +*Defined in [types/src/index.ts:46](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/types/src/index.ts#L46)* ___ @@ -2997,7 +1611,7 @@ ___ *Inherited from [ZeroExTransaction](#interface-zeroextransaction).[gasPrice](#gasprice)* -*Defined in [types/src/index.ts:47](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/types/src/index.ts#L47)* +*Defined in [types/src/index.ts:47](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/types/src/index.ts#L47)* ___ @@ -3007,7 +1621,7 @@ ___ *Inherited from [ZeroExTransaction](#interface-zeroextransaction).[salt](#salt)* -*Defined in [types/src/index.ts:45](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/types/src/index.ts#L45)* +*Defined in [types/src/index.ts:45](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/types/src/index.ts#L45)* ___ @@ -3015,7 +1629,7 @@ ___ • **signature**: *string* -*Defined in [types/src/index.ts:54](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/types/src/index.ts#L54)* +*Defined in [types/src/index.ts:54](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/types/src/index.ts#L54)* ___ @@ -3025,7 +1639,7 @@ ___ *Inherited from [ZeroExTransaction](#interface-zeroextransaction).[signerAddress](#signeraddress)* -*Defined in [types/src/index.ts:48](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/types/src/index.ts#L48)* +*Defined in [types/src/index.ts:48](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/types/src/index.ts#L48)*
@@ -3050,7 +1664,7 @@ ___ • **assetProxyId**: *string* -*Defined in [types/src/index.ts:191](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/types/src/index.ts#L191)* +*Defined in [types/src/index.ts:191](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/types/src/index.ts#L191)* ___ @@ -3058,7 +1672,7 @@ ___ • **callResultHash**: *string* -*Defined in [types/src/index.ts:194](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/types/src/index.ts#L194)* +*Defined in [types/src/index.ts:194](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/types/src/index.ts#L194)* ___ @@ -3066,7 +1680,7 @@ ___ • **callTarget**: *string* -*Defined in [types/src/index.ts:192](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/types/src/index.ts#L192)* +*Defined in [types/src/index.ts:192](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/types/src/index.ts#L192)* ___ @@ -3074,7 +1688,7 @@ ___ • **staticCallData**: *string* -*Defined in [types/src/index.ts:193](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/types/src/index.ts#L193)* +*Defined in [types/src/index.ts:193](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/types/src/index.ts#L193)*
@@ -3115,7 +1729,7 @@ Validator signature components • **signature**: *string* -*Defined in [types/src/index.ts:71](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/types/src/index.ts#L71)* +*Defined in [types/src/index.ts:71](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/types/src/index.ts#L71)* ___ @@ -3123,7 +1737,7 @@ ___ • **validatorAddress**: *string* -*Defined in [types/src/index.ts:70](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/types/src/index.ts#L70)* +*Defined in [types/src/index.ts:70](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/types/src/index.ts#L70)*
@@ -3138,7 +1752,7 @@ ZeroExTransaction for use with 0x Exchange executeTransaction • **data**: *string* -*Defined in [types/src/index.ts:49](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/types/src/index.ts#L49)* +*Defined in [types/src/index.ts:49](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/types/src/index.ts#L49)* ___ @@ -3146,7 +1760,7 @@ ___ • **domain**: *[EIP712DomainWithDefaultSchema](#class-eip712domainwithdefaultschema)* -*Defined in [types/src/index.ts:50](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/types/src/index.ts#L50)* +*Defined in [types/src/index.ts:50](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/types/src/index.ts#L50)* ___ @@ -3154,7 +1768,7 @@ ___ • **expirationTimeSeconds**: *`BigNumber`* -*Defined in [types/src/index.ts:46](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/types/src/index.ts#L46)* +*Defined in [types/src/index.ts:46](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/types/src/index.ts#L46)* ___ @@ -3162,7 +1776,7 @@ ___ • **gasPrice**: *`BigNumber`* -*Defined in [types/src/index.ts:47](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/types/src/index.ts#L47)* +*Defined in [types/src/index.ts:47](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/types/src/index.ts#L47)* ___ @@ -3170,7 +1784,7 @@ ___ • **salt**: *`BigNumber`* -*Defined in [types/src/index.ts:45](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/types/src/index.ts#L45)* +*Defined in [types/src/index.ts:45](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/types/src/index.ts#L45)* ___ @@ -3178,12 +1792,16 @@ ___ • **signerAddress**: *string* -*Defined in [types/src/index.ts:48](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/types/src/index.ts#L48)* +*Defined in [types/src/index.ts:48](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/types/src/index.ts#L48)*
+
+ + + ## Type aliases @@ -3203,7 +1821,7 @@ ___ Ƭ **EIP1193Event**: *"accountsChanged" | "networkChanged" | "close" | "connect" | "notification"* -*Defined in [ethereum-types/src/index.ts:70](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L70)* +*Defined in [ethereum-types/src/index.ts:70](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L70)* Interface for providers that conform to EIP 1193 Source: https://github.com/ethereum/EIPs/blob/master/EIPS/eip-1193.md @@ -3220,7 +1838,7 @@ ___ Ƭ **JSONRPCErrorCallback**: *function* -*Defined in [ethereum-types/src/index.ts:3](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L3)* +*Defined in [ethereum-types/src/index.ts:3](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L3)* #### Type declaration: @@ -3249,7 +1867,7 @@ ___ Ƭ **SupportedProvider**: *[Web3JsProvider](_ethereum_types_src_index_.md#web3jsprovider) | [GanacheProvider](#interface-ganacheprovider) | [EIP1193Provider](#interface-eip1193provider) | [ZeroExProvider](#interface-zeroexprovider)* -*Defined in [ethereum-types/src/index.ts:9](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L9)* +*Defined in [ethereum-types/src/index.ts:9](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L9)* Do not create your own provider. Use an existing provider from a Web3 or ProviderEngine library Read more about Providers in the guides section of the 0x docs. @@ -3264,28 +1882,12 @@ ___ Ƭ **Web3JsProvider**: *[Web3JsV1Provider](#interface-web3jsv1provider) | [Web3JsV2Provider](#interface-web3jsv2provider) | [Web3JsV3Provider](#interface-web3jsv3provider)* -*Defined in [ethereum-types/src/index.ts:11](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L11)* +*Defined in [ethereum-types/src/index.ts:11](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L11)*
-
- - - -
- - - -
- - - -
- - - ## Object literals @@ -3293,13 +1895,13 @@ ___ #### ▪ **assetDataUtils**: *object* -*Defined in [order-utils/src/asset_data_utils.ts:23](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/order-utils/src/asset_data_utils.ts#L23)* +*Defined in [order-utils/src/asset_data_utils.ts:23](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/order-utils/src/asset_data_utils.ts#L23)* #### assertIsERC1155AssetData ▸ **assertIsERC1155AssetData**(`assetData`: string): *void* -*Defined in [order-utils/src/asset_data_utils.ts:397](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/order-utils/src/asset_data_utils.ts#L397)* +*Defined in [order-utils/src/asset_data_utils.ts:397](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/order-utils/src/asset_data_utils.ts#L397)* Throws if the assetData is not ERC1155. @@ -3315,7 +1917,7 @@ Name | Type | Description | ▸ **assertIsERC20AssetData**(`assetData`: string): *void* -*Defined in [order-utils/src/asset_data_utils.ts:353](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/order-utils/src/asset_data_utils.ts#L353)* +*Defined in [order-utils/src/asset_data_utils.ts:353](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/order-utils/src/asset_data_utils.ts#L353)* Throws if the length or assetProxyId are invalid for the ERC20Proxy. @@ -3331,7 +1933,7 @@ Name | Type | Description | ▸ **assertIsERC721AssetData**(`assetData`: string): *void* -*Defined in [order-utils/src/asset_data_utils.ts:375](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/order-utils/src/asset_data_utils.ts#L375)* +*Defined in [order-utils/src/asset_data_utils.ts:375](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/order-utils/src/asset_data_utils.ts#L375)* Throws if the length or assetProxyId are invalid for the ERC721Proxy. @@ -3347,7 +1949,7 @@ Name | Type | Description | ▸ **assertIsMultiAssetData**(`assetData`: string): *void* -*Defined in [order-utils/src/asset_data_utils.ts:419](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/order-utils/src/asset_data_utils.ts#L419)* +*Defined in [order-utils/src/asset_data_utils.ts:419](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/order-utils/src/asset_data_utils.ts#L419)* Throws if the length or assetProxyId are invalid for the MultiAssetProxy. @@ -3363,7 +1965,7 @@ Name | Type | Description | ▸ **assertIsStaticCallAssetData**(`assetData`: string): *void* -*Defined in [order-utils/src/asset_data_utils.ts:441](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/order-utils/src/asset_data_utils.ts#L441)* +*Defined in [order-utils/src/asset_data_utils.ts:441](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/order-utils/src/asset_data_utils.ts#L441)* Throws if the assetData is not StaticCallData. @@ -3379,7 +1981,7 @@ Name | Type | Description | ▸ **assertWordAlignedAssetData**(`assetData`: string): *void* -*Defined in [order-utils/src/asset_data_utils.ts:463](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/order-utils/src/asset_data_utils.ts#L463)* +*Defined in [order-utils/src/asset_data_utils.ts:463](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/order-utils/src/asset_data_utils.ts#L463)* Throws if the assetData is not padded to 32 bytes. @@ -3395,7 +1997,7 @@ Name | Type | Description | ▸ **decodeAssetDataOrThrow**(`assetData`: string): *[SingleAssetData](#singleassetdata) | `MultiAssetData`* -*Defined in [order-utils/src/asset_data_utils.ts:502](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/order-utils/src/asset_data_utils.ts#L502)* +*Defined in [order-utils/src/asset_data_utils.ts:502](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/order-utils/src/asset_data_utils.ts#L502)* Decode any assetData into its corresponding assetData object @@ -3413,7 +2015,7 @@ Either a ERC20, ERC721, ERC1155, or MultiAsset assetData object ▸ **decodeAssetProxyId**(`assetData`: string): *`AssetProxyId`* -*Defined in [order-utils/src/asset_data_utils.ts:294](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/order-utils/src/asset_data_utils.ts#L294)* +*Defined in [order-utils/src/asset_data_utils.ts:294](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/order-utils/src/asset_data_utils.ts#L294)* Decode and return the assetProxyId from the assetData @@ -3431,7 +2033,7 @@ The assetProxyId ▸ **decodeDutchAuctionData**(`dutchAuctionData`: string): *`DutchAuctionData`* -*Defined in [order-utils/src/asset_data_utils.ts:263](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/order-utils/src/asset_data_utils.ts#L263)* +*Defined in [order-utils/src/asset_data_utils.ts:263](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/order-utils/src/asset_data_utils.ts#L263)* Dutch auction details are encoded with the asset data for a 0x order. This function decodes a hex encoded assetData string, containing information both about the asset being traded and the @@ -3451,7 +2053,7 @@ An object containing the auction asset, auction begin time and auction begin amo ▸ **decodeERC1155AssetData**(`assetData`: string): *`ERC1155AssetData`* -*Defined in [order-utils/src/asset_data_utils.ts:107](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/order-utils/src/asset_data_utils.ts#L107)* +*Defined in [order-utils/src/asset_data_utils.ts:107](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/order-utils/src/asset_data_utils.ts#L107)* Decodes an ERC1155 assetData hex string into its corresponding ERC1155 components. @@ -3469,7 +2071,7 @@ An object containing the decoded tokenAddress, tokenIds, tokenValues, callbackDa ▸ **decodeERC20AssetData**(`assetData`: string): *`ERC20AssetData`* -*Defined in [order-utils/src/asset_data_utils.ts:41](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/order-utils/src/asset_data_utils.ts#L41)* +*Defined in [order-utils/src/asset_data_utils.ts:41](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/order-utils/src/asset_data_utils.ts#L41)* Decodes an ERC20 assetData hex string into its corresponding ERC20 tokenAddress & assetProxyId @@ -3487,7 +2089,7 @@ An object containing the decoded tokenAddress & assetProxyId ▸ **decodeERC721AssetData**(`assetData`: string): *`ERC721AssetData`* -*Defined in [order-utils/src/asset_data_utils.ts:70](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/order-utils/src/asset_data_utils.ts#L70)* +*Defined in [order-utils/src/asset_data_utils.ts:70](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/order-utils/src/asset_data_utils.ts#L70)* Decodes an ERC721 assetData hex string into its corresponding ERC721 tokenAddress, tokenId & assetProxyId @@ -3505,7 +2107,7 @@ An object containing the decoded tokenAddress, tokenId & assetProxyId ▸ **decodeMultiAssetData**(`assetData`: string): *`MultiAssetData`* -*Defined in [order-utils/src/asset_data_utils.ts:149](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/order-utils/src/asset_data_utils.ts#L149)* +*Defined in [order-utils/src/asset_data_utils.ts:149](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/order-utils/src/asset_data_utils.ts#L149)* Decodes a MultiAsset assetData hex string into its corresponding amounts and nestedAssetData @@ -3523,7 +2125,7 @@ An object containing the decoded amounts and nestedAssetData ▸ **decodeMultiAssetDataRecursively**(`assetData`: string): *`MultiAssetDataWithRecursiveDecoding`* -*Defined in [order-utils/src/asset_data_utils.ts:175](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/order-utils/src/asset_data_utils.ts#L175)* +*Defined in [order-utils/src/asset_data_utils.ts:175](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/order-utils/src/asset_data_utils.ts#L175)* Decodes a MultiAsset assetData hex string into its corresponding amounts and decoded nestedAssetData elements (all nested elements are flattened) @@ -3541,7 +2143,7 @@ An object containing the decoded amounts and nestedAssetData ▸ **decodeStaticCallAssetData**(`assetData`: string): *`StaticCallAssetData`* -*Defined in [order-utils/src/asset_data_utils.ts:225](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/order-utils/src/asset_data_utils.ts#L225)* +*Defined in [order-utils/src/asset_data_utils.ts:225](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/order-utils/src/asset_data_utils.ts#L225)* Decoded StaticCall assetData into its corresponding callTarget, staticCallData, and expected callResultHash @@ -3559,7 +2161,7 @@ An object containing the decoded callTarget, staticCallData, and expected callRe ▸ **encodeDutchAuctionAssetData**(`assetData`: string, `beginTimeSeconds`: `BigNumber`, `beginAmount`: `BigNumber`): *string* -*Defined in [order-utils/src/asset_data_utils.ts:245](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/order-utils/src/asset_data_utils.ts#L245)* +*Defined in [order-utils/src/asset_data_utils.ts:245](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/order-utils/src/asset_data_utils.ts#L245)* Dutch auction details are encoded with the asset data for a 0x order. This function produces a hex encoded assetData string, containing information both about the asset being traded and the @@ -3581,7 +2183,7 @@ The hex encoded assetData string. ▸ **encodeERC1155AssetData**(`tokenAddress`: string, `tokenIds`: `BigNumber`[], `tokenValues`: `BigNumber`[], `callbackData`: string): *string* -*Defined in [order-utils/src/asset_data_utils.ts:91](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/order-utils/src/asset_data_utils.ts#L91)* +*Defined in [order-utils/src/asset_data_utils.ts:91](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/order-utils/src/asset_data_utils.ts#L91)* Encodes a set of ERC1155 assets into an assetData string, usable in the makerAssetData or takerAssetData fields of a 0x order. @@ -3603,7 +2205,7 @@ The hex encoded assetData string ▸ **encodeERC20AssetData**(`tokenAddress`: string): *string* -*Defined in [order-utils/src/asset_data_utils.ts:30](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/order-utils/src/asset_data_utils.ts#L30)* +*Defined in [order-utils/src/asset_data_utils.ts:30](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/order-utils/src/asset_data_utils.ts#L30)* Encodes an ERC20 token address into a hex encoded assetData string, usable in the makerAssetData or takerAssetData fields in a 0x order. @@ -3622,7 +2224,7 @@ The hex encoded assetData string ▸ **encodeERC721AssetData**(`tokenAddress`: string, `tokenId`: `BigNumber`): *string* -*Defined in [order-utils/src/asset_data_utils.ts:59](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/order-utils/src/asset_data_utils.ts#L59)* +*Defined in [order-utils/src/asset_data_utils.ts:59](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/order-utils/src/asset_data_utils.ts#L59)* Encodes an ERC721 token address into a hex encoded assetData string, usable in the makerAssetData or takerAssetData fields in a 0x order. @@ -3642,7 +2244,7 @@ The hex encoded assetData string ▸ **encodeMultiAssetData**(`amounts`: `BigNumber`[], `nestedAssetData`: string[]): *string* -*Defined in [order-utils/src/asset_data_utils.ts:130](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/order-utils/src/asset_data_utils.ts#L130)* +*Defined in [order-utils/src/asset_data_utils.ts:130](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/order-utils/src/asset_data_utils.ts#L130)* Encodes assetData for multiple AssetProxies into a single hex encoded assetData string, usable in the makerAssetData or takerAssetData fields in a 0x order. @@ -3662,7 +2264,7 @@ The hex encoded assetData string ▸ **encodeStaticCallAssetData**(`callTarget`: string, `staticCallData`: string, `callResultHash`: string): *string* -*Defined in [order-utils/src/asset_data_utils.ts:214](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/order-utils/src/asset_data_utils.ts#L214)* +*Defined in [order-utils/src/asset_data_utils.ts:214](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/order-utils/src/asset_data_utils.ts#L214)* Encodes StaticCallProxy data into an assetData hex string @@ -3682,7 +2284,7 @@ The hex encoded assetData string ▸ **isERC1155AssetData**(`decodedAssetData`: [SingleAssetData](#singleassetdata) | `MultiAssetData`): *boolean* -*Defined in [order-utils/src/asset_data_utils.ts:332](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/order-utils/src/asset_data_utils.ts#L332)* +*Defined in [order-utils/src/asset_data_utils.ts:332](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/order-utils/src/asset_data_utils.ts#L332)* Checks if the decoded asset data is valid ERC1155 data @@ -3698,7 +2300,7 @@ Name | Type | Description | ▸ **isERC20AssetData**(`decodedAssetData`: [SingleAssetData](#singleassetdata) | `MultiAssetData`): *boolean* -*Defined in [order-utils/src/asset_data_utils.ts:318](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/order-utils/src/asset_data_utils.ts#L318)* +*Defined in [order-utils/src/asset_data_utils.ts:318](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/order-utils/src/asset_data_utils.ts#L318)* Checks if the decoded asset data is valid ERC20 data @@ -3714,7 +2316,7 @@ Name | Type | Description | ▸ **isERC721AssetData**(`decodedAssetData`: [SingleAssetData](#singleassetdata) | `MultiAssetData`): *boolean* -*Defined in [order-utils/src/asset_data_utils.ts:325](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/order-utils/src/asset_data_utils.ts#L325)* +*Defined in [order-utils/src/asset_data_utils.ts:325](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/order-utils/src/asset_data_utils.ts#L325)* Checks if the decoded asset data is valid ERC721 data @@ -3730,7 +2332,7 @@ Name | Type | Description | ▸ **isMultiAssetData**(`decodedAssetData`: [SingleAssetData](#singleassetdata) | `MultiAssetData`): *boolean* -*Defined in [order-utils/src/asset_data_utils.ts:339](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/order-utils/src/asset_data_utils.ts#L339)* +*Defined in [order-utils/src/asset_data_utils.ts:339](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/order-utils/src/asset_data_utils.ts#L339)* Checks if the decoded asset data is valid MultiAsset data @@ -3746,7 +2348,7 @@ Name | Type | Description | ▸ **isStaticCallAssetData**(`decodedAssetData`: [SingleAssetData](#singleassetdata) | `MultiAssetData`): *boolean* -*Defined in [order-utils/src/asset_data_utils.ts:346](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/order-utils/src/asset_data_utils.ts#L346)* +*Defined in [order-utils/src/asset_data_utils.ts:346](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/order-utils/src/asset_data_utils.ts#L346)* Checks if the decoded asset data is valid StaticCall data @@ -3762,7 +2364,7 @@ Name | Type | Description | ▸ **validateAssetDataOrThrow**(`assetData`: string): *void* -*Defined in [order-utils/src/asset_data_utils.ts:475](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/order-utils/src/asset_data_utils.ts#L475)* +*Defined in [order-utils/src/asset_data_utils.ts:475](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/order-utils/src/asset_data_utils.ts#L475)* Throws if the length or assetProxyId are invalid for the corresponding AssetProxy. @@ -3778,6 +2380,10 @@ Name | Type | Description | +
+ + + ## Object literals @@ -3785,15 +2391,15 @@ Name | Type | Description | #### ▪ **eip712Utils**: *object* -*Defined in [order-utils/src/eip712_utils.ts:18](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/order-utils/src/eip712_utils.ts#L18)* +*Defined in [order-utils/src/eip712_utils.ts:17](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/order-utils/src/eip712_utils.ts#L17)* #### createCoordinatorApprovalTypedData -▸ **createCoordinatorApprovalTypedData**(`transaction`: `SignedZeroExTransaction`, `verifyingContract`: string, `txOrigin`: string, `approvalExpirationTimeSeconds`: `BigNumber`): *`EIP712TypedData`* +▸ **createCoordinatorApprovalTypedData**(`transaction`: `SignedZeroExTransaction`, `verifyingContract`: string, `txOrigin`: string): *`EIP712TypedData`* -*Defined in [order-utils/src/eip712_utils.ts:105](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/order-utils/src/eip712_utils.ts#L105)* +*Defined in [order-utils/src/eip712_utils.ts:103](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/order-utils/src/eip712_utils.ts#L103)* -Creates an Coordiantor typedData EIP712TypedData object for use with the Coordinator extension contract +Creates an Coordinator typedData EIP712TypedData object for use with the Coordinator extension contract **Parameters:** @@ -3802,7 +2408,6 @@ Name | Type | Description | `transaction` | `SignedZeroExTransaction` | A 0x transaction | `verifyingContract` | string | The coordinator extension contract address that will be verifying the typedData | `txOrigin` | string | The desired `tx.origin` that should be able to submit an Ethereum txn involving this 0x transaction | -`approvalExpirationTimeSeconds` | `BigNumber` | The approvals expiration time | **Returns:** *`EIP712TypedData`* @@ -3812,7 +2417,7 @@ A typed data object ▸ **createOrderTypedData**(`order`: `Order`): *`EIP712TypedData`* -*Defined in [order-utils/src/eip712_utils.ts:57](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/order-utils/src/eip712_utils.ts#L57)* +*Defined in [order-utils/src/eip712_utils.ts:56](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/order-utils/src/eip712_utils.ts#L56)* Creates an Order EIP712TypedData object for use with signTypedData. @@ -3830,7 +2435,7 @@ A typed data object ▸ **createTypedData**(`primaryType`: string, `types`: `EIP712Types`, `message`: `EIP712Object`, `domain`: `EIP712DomainWithDefaultSchema`): *`EIP712TypedData`* -*Defined in [order-utils/src/eip712_utils.ts:27](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/order-utils/src/eip712_utils.ts#L27)* +*Defined in [order-utils/src/eip712_utils.ts:26](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/order-utils/src/eip712_utils.ts#L26)* Creates a EIP712TypedData object specific to the 0x protocol for use with signTypedData. @@ -3851,7 +2456,7 @@ A typed data object ▸ **createZeroExTransactionTypedData**(`zeroExTransaction`: `ZeroExTransaction`): *`EIP712TypedData`* -*Defined in [order-utils/src/eip712_utils.ts:82](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/order-utils/src/eip712_utils.ts#L82)* +*Defined in [order-utils/src/eip712_utils.ts:81](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/order-utils/src/eip712_utils.ts#L81)* Creates an ExecuteTransaction EIP712TypedData object for use with signTypedData and 0x Exchange executeTransaction. @@ -3882,10 +2487,6 @@ A typed data object -
- - - ## Object literals @@ -3893,13 +2494,13 @@ A typed data object #### ▪ **marketUtils**: *object* -*Defined in [order-utils/src/market_utils.ts:17](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/order-utils/src/market_utils.ts#L17)* +*Defined in [order-utils/src/market_utils.ts:17](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/order-utils/src/market_utils.ts#L17)* #### findFeeOrdersThatCoverFeesForTargetOrders ▸ **findFeeOrdersThatCoverFeesForTargetOrders**<**T**>(`orders`: `T`[], `feeOrders`: `T`[], `opts?`: [FindFeeOrdersThatCoverFeesForTargetOrdersOpts](#interface-findfeeordersthatcoverfeesfortargetordersopts)): *[FeeOrdersAndRemainingFeeAmount](#interface-feeordersandremainingfeeamount)‹*`T`*›* -*Defined in [order-utils/src/market_utils.ts:64](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/order-utils/src/market_utils.ts#L64)* +*Defined in [order-utils/src/market_utils.ts:64](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/order-utils/src/market_utils.ts#L64)* Takes an array of orders and an array of feeOrders. Returns a subset of the feeOrders that has enough ZRX in order to fill the takerFees required by orders plus a slippageBufferAmount. @@ -3926,7 +2527,7 @@ Resulting orders and remaining fee amount that could not be covered by the input ▸ **findOrdersThatCoverMakerAssetFillAmount**<**T**>(`orders`: `T`[], `makerAssetFillAmount`: `BigNumber`, `opts?`: [FindOrdersThatCoverMakerAssetFillAmountOpts](#interface-findordersthatcovermakerassetfillamountopts)): *[OrdersAndRemainingMakerFillAmount](#interface-ordersandremainingmakerfillamount)‹*`T`*›* -*Defined in [order-utils/src/market_utils.ts:40](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/order-utils/src/market_utils.ts#L40)* +*Defined in [order-utils/src/market_utils.ts:40](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/order-utils/src/market_utils.ts#L40)* Takes an array of orders and returns a subset of those orders that has enough makerAssetAmount in order to fill the input makerAssetFillAmount plus slippageBufferAmount. Iterates from first order to last order. @@ -3952,7 +2553,7 @@ Resulting orders and remaining fill amount that could not be covered by the inpu ▸ **findOrdersThatCoverTakerAssetFillAmount**<**T**>(`orders`: `T`[], `takerAssetFillAmount`: `BigNumber`, `opts?`: [FindOrdersThatCoverTakerAssetFillAmountOpts](#interface-findordersthatcovertakerassetfillamountopts)): *[OrdersAndRemainingTakerFillAmount](#interface-ordersandremainingtakerfillamount)‹*`T`*›* -*Defined in [order-utils/src/market_utils.ts:18](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/order-utils/src/market_utils.ts#L18)* +*Defined in [order-utils/src/market_utils.ts:18](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/order-utils/src/market_utils.ts#L18)* **Type parameters:** @@ -3979,13 +2580,13 @@ Name | Type | #### ▪ **orderCalculationUtils**: *object* -*Defined in [order-utils/src/order_calculation_utils.ts:6](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/order-utils/src/order_calculation_utils.ts#L6)* +*Defined in [order-utils/src/order_calculation_utils.ts:6](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/order-utils/src/order_calculation_utils.ts#L6)* #### getMakerFeeAmount ▸ **getMakerFeeAmount**(`order`: `Order`, `makerFillAmount`: `BigNumber`): *`BigNumber`* -*Defined in [order-utils/src/order_calculation_utils.ts:75](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/order-utils/src/order_calculation_utils.ts#L75)* +*Defined in [order-utils/src/order_calculation_utils.ts:75](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/order-utils/src/order_calculation_utils.ts#L75)* Given an amount of maker asset, calculate the fee amount required for the maker @@ -4002,7 +2603,7 @@ Name | Type | Description | ▸ **getMakerFillAmount**(`order`: `Order`, `takerFillAmount`: `BigNumber`): *`BigNumber`* -*Defined in [order-utils/src/order_calculation_utils.ts:36](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/order-utils/src/order_calculation_utils.ts#L36)* +*Defined in [order-utils/src/order_calculation_utils.ts:36](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/order-utils/src/order_calculation_utils.ts#L36)* Given an amount of taker asset, calculate the the amount of maker asset @@ -4019,7 +2620,7 @@ Name | Type | Description | ▸ **getTakerFeeAmount**(`order`: `Order`, `takerFillAmount`: `BigNumber`): *`BigNumber`* -*Defined in [order-utils/src/order_calculation_utils.ts:62](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/order-utils/src/order_calculation_utils.ts#L62)* +*Defined in [order-utils/src/order_calculation_utils.ts:62](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/order-utils/src/order_calculation_utils.ts#L62)* Given an amount of taker asset, calculate the fee amount required for the taker @@ -4036,7 +2637,7 @@ Name | Type | Description | ▸ **getTakerFillAmount**(`order`: `Order`, `makerFillAmount`: `BigNumber`): *`BigNumber`* -*Defined in [order-utils/src/order_calculation_utils.ts:49](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/order-utils/src/order_calculation_utils.ts#L49)* +*Defined in [order-utils/src/order_calculation_utils.ts:49](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/order-utils/src/order_calculation_utils.ts#L49)* Given an amount of maker asset, calculate the equivalent amount in taker asset @@ -4053,7 +2654,7 @@ Name | Type | Description | ▸ **getTakerFillAmountForFeeOrder**(`order`: `Order`, `makerFillAmount`: `BigNumber`): *[`BigNumber`, `BigNumber`]* -*Defined in [order-utils/src/order_calculation_utils.ts:89](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/order-utils/src/order_calculation_utils.ts#L89)* +*Defined in [order-utils/src/order_calculation_utils.ts:89](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/order-utils/src/order_calculation_utils.ts#L89)* Given a desired amount of ZRX from a fee order, calculate the amount of taker asset required to fill. Also calculate how much ZRX needs to be purchased in order to fill the desired amount plus the taker fee amount @@ -4071,7 +2672,7 @@ Name | Type | Description | ▸ **isOpenOrder**(`order`: `Order`): *boolean* -*Defined in [order-utils/src/order_calculation_utils.ts:28](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/order-utils/src/order_calculation_utils.ts#L28)* +*Defined in [order-utils/src/order_calculation_utils.ts:28](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/order-utils/src/order_calculation_utils.ts#L28)* Determines if the order is open and fillable by any taker. @@ -4087,7 +2688,7 @@ Name | Type | Description | ▸ **isOrderExpired**(`order`: `Order`): *boolean* -*Defined in [order-utils/src/order_calculation_utils.ts:11](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/order-utils/src/order_calculation_utils.ts#L11)* +*Defined in [order-utils/src/order_calculation_utils.ts:11](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/order-utils/src/order_calculation_utils.ts#L11)* Determines if the order is expired given the current time @@ -4103,7 +2704,7 @@ Name | Type | Description | ▸ **willOrderExpire**(`order`: `Order`, `secondsFromNow`: number): *boolean* -*Defined in [order-utils/src/order_calculation_utils.ts:19](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/order-utils/src/order_calculation_utils.ts#L19)* +*Defined in [order-utils/src/order_calculation_utils.ts:19](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/order-utils/src/order_calculation_utils.ts#L19)* Calculates if the order will expire in the future. @@ -4127,13 +2728,13 @@ Name | Type | Description | #### ▪ **orderHashUtils**: *object* -*Defined in [order-utils/src/order_hash.ts:12](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/order-utils/src/order_hash.ts#L12)* +*Defined in [order-utils/src/order_hash.ts:12](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/order-utils/src/order_hash.ts#L12)* #### getOrderHashBuffer ▸ **getOrderHashBuffer**(`order`: `SignedOrder` | `Order`): *`Buffer`* -*Defined in [order-utils/src/order_hash.ts:55](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/order-utils/src/order_hash.ts#L55)* +*Defined in [order-utils/src/order_hash.ts:55](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/order-utils/src/order_hash.ts#L55)* Computes the orderHash for a supplied order @@ -4151,7 +2752,7 @@ A Buffer containing the resulting orderHash from hashing the supplied order ▸ **getOrderHashHex**(`order`: `SignedOrder` | `Order`): *string* -*Defined in [order-utils/src/order_hash.ts:33](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/order-utils/src/order_hash.ts#L33)* +*Defined in [order-utils/src/order_hash.ts:33](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/order-utils/src/order_hash.ts#L33)* Computes the orderHash for a supplied order. @@ -4169,7 +2770,7 @@ Hex encoded string orderHash from hashing the supplied order. ▸ **isValidOrderHash**(`orderHash`: string): *boolean* -*Defined in [order-utils/src/order_hash.ts:20](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/order-utils/src/order_hash.ts#L20)* +*Defined in [order-utils/src/order_hash.ts:20](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/order-utils/src/order_hash.ts#L20)* Checks if the supplied hex encoded order hash is valid. Note: Valid means it has the expected format, not that an order with the orderHash exists. @@ -4189,14 +2790,6 @@ Whether the supplied orderHash has the expected format. -
- - - -
- - - ## Object literals @@ -4204,13 +2797,13 @@ Whether the supplied orderHash has the expected format. #### ▪ **orderParsingUtils**: *object* -*Defined in [order-utils/src/parsing_utils.ts:4](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/order-utils/src/parsing_utils.ts#L4)* +*Defined in [order-utils/src/parsing_utils.ts:4](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/order-utils/src/parsing_utils.ts#L4)* #### convertOrderStringFieldsToBigNumber ▸ **convertOrderStringFieldsToBigNumber**(`order`: any): *any* -*Defined in [order-utils/src/parsing_utils.ts:17](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/order-utils/src/parsing_utils.ts#L17)* +*Defined in [order-utils/src/parsing_utils.ts:17](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/order-utils/src/parsing_utils.ts#L17)* **Parameters:** @@ -4224,7 +2817,7 @@ Name | Type | ▸ **convertStringsFieldsToBigNumbers**(`obj`: any, `fields`: string[]): *any* -*Defined in [order-utils/src/parsing_utils.ts:5](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/order-utils/src/parsing_utils.ts#L5)* +*Defined in [order-utils/src/parsing_utils.ts:5](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/order-utils/src/parsing_utils.ts#L5)* **Parameters:** @@ -4246,13 +2839,13 @@ Name | Type | #### ▪ **rateUtils**: *object* -*Defined in [order-utils/src/rate_utils.ts:8](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/order-utils/src/rate_utils.ts#L8)* +*Defined in [order-utils/src/rate_utils.ts:8](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/order-utils/src/rate_utils.ts#L8)* #### getFeeAdjustedRateOfFeeOrder ▸ **getFeeAdjustedRateOfFeeOrder**(`feeOrder`: `Order`): *`BigNumber`* -*Defined in [order-utils/src/rate_utils.ts:36](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/order-utils/src/rate_utils.ts#L36)* +*Defined in [order-utils/src/rate_utils.ts:36](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/order-utils/src/rate_utils.ts#L36)* Takes a fee order (makerAssetData corresponds to ZRX and takerAssetData corresponds to WETH) and calculates the fee adjusted rate (WETH/ZRX) by dividing the takerAssetAmount by the makerAmount minus the takerFee @@ -4271,7 +2864,7 @@ The rate (WETH/ZRX) of the fee order adjusted for fees ▸ **getFeeAdjustedRateOfOrder**(`order`: `Order`, `feeRate`: `BigNumber`): *`BigNumber`* -*Defined in [order-utils/src/rate_utils.ts:18](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/order-utils/src/rate_utils.ts#L18)* +*Defined in [order-utils/src/rate_utils.ts:18](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/order-utils/src/rate_utils.ts#L18)* Takes an order and calculates the fee adjusted rate (takerAsset/makerAsset) by calculating how much takerAsset is required to cover the fees (feeRate * takerFee), adding the takerAssetAmount and dividing by makerAssetAmount @@ -4298,7 +2891,7 @@ The rate (takerAsset/makerAsset) of the order adjusted for fees ▸ **generatePseudoRandomSalt**(): *`BigNumber`* -*Defined in [order-utils/src/salt.ts:9](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/order-utils/src/salt.ts#L9)* +*Defined in [order-utils/src/salt.ts:9](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/order-utils/src/salt.ts#L9)* Generates a pseudo-random 256-bit salt. The salt can be included in a 0x order, ensuring that the order generates a unique orderHash @@ -4319,13 +2912,13 @@ A pseudo-random 256-bit number that can be used as a salt. #### ▪ **signatureUtils**: *object* -*Defined in [order-utils/src/signature_utils.ts:27](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/order-utils/src/signature_utils.ts#L27)* +*Defined in [order-utils/src/signature_utils.ts:27](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/order-utils/src/signature_utils.ts#L27)* #### addSignedMessagePrefix ▸ **addSignedMessagePrefix**(`message`: string): *string* -*Defined in [order-utils/src/signature_utils.ts:500](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/order-utils/src/signature_utils.ts#L500)* +*Defined in [order-utils/src/signature_utils.ts:497](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/order-utils/src/signature_utils.ts#L497)* Adds the relevant prefix to the message being signed. @@ -4343,7 +2936,7 @@ Prefixed message ▸ **convertECSignatureToSignatureHex**(`ecSignature`: `ECSignature`): *string* -*Defined in [order-utils/src/signature_utils.ts:474](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/order-utils/src/signature_utils.ts#L474)* +*Defined in [order-utils/src/signature_utils.ts:471](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/order-utils/src/signature_utils.ts#L471)* Combines ECSignature with V,R,S and the EthSign signature type for use in 0x protocol @@ -4361,7 +2954,7 @@ Hex encoded string of signature (v,r,s) with Signature Type ▸ **convertToSignatureWithType**(`signature`: string, `signatureType`: `SignatureType`): *string* -*Defined in [order-utils/src/signature_utils.ts:490](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/order-utils/src/signature_utils.ts#L490)* +*Defined in [order-utils/src/signature_utils.ts:487](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/order-utils/src/signature_utils.ts#L487)* Combines the signature proof and the Signature Type. @@ -4380,7 +2973,7 @@ Hex encoded string of signature proof with Signature Type ▸ **ecSignHashAsync**(`supportedProvider`: [SupportedProvider](#supportedprovider), `msgHash`: string, `signerAddress`: string): *`Promise`* -*Defined in [order-utils/src/signature_utils.ts:417](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/order-utils/src/signature_utils.ts#L417)* +*Defined in [order-utils/src/signature_utils.ts:414](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/order-utils/src/signature_utils.ts#L414)* Signs a hash using `eth_sign` and returns its elliptic curve signature and signature type. @@ -4400,7 +2993,7 @@ A hex encoded string containing the Elliptic curve signature generated by signin ▸ **ecSignOrderAsync**(`supportedProvider`: [SupportedProvider](#supportedprovider), `order`: `Order`, `signerAddress`: string): *`Promise`* -*Defined in [order-utils/src/signature_utils.ts:252](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/order-utils/src/signature_utils.ts#L252)* +*Defined in [order-utils/src/signature_utils.ts:249](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/order-utils/src/signature_utils.ts#L249)* Signs an order and returns a SignedOrder. First `eth_signTypedData` is requested then a fallback to `eth_sign` if not available on the supplied provider. @@ -4421,7 +3014,7 @@ A SignedOrder containing the order and Elliptic curve signature with Signature T ▸ **ecSignTransactionAsync**(`supportedProvider`: [SupportedProvider](#supportedprovider), `transaction`: `ZeroExTransaction`, `signerAddress`: string): *`Promise`* -*Defined in [order-utils/src/signature_utils.ts:331](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/order-utils/src/signature_utils.ts#L331)* +*Defined in [order-utils/src/signature_utils.ts:328](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/order-utils/src/signature_utils.ts#L328)* Signs a transaction and returns a SignedZeroExTransaction. First `eth_signTypedData` is requested then a fallback to `eth_sign` if not available on the supplied provider. @@ -4442,7 +3035,7 @@ A SignedTransaction containing the order and Elliptic curve signature with Signa ▸ **ecSignTypedDataOrderAsync**(`supportedProvider`: [SupportedProvider](#supportedprovider), `order`: `Order`, `signerAddress`: string): *`Promise`* -*Defined in [order-utils/src/signature_utils.ts:287](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/order-utils/src/signature_utils.ts#L287)* +*Defined in [order-utils/src/signature_utils.ts:284](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/order-utils/src/signature_utils.ts#L284)* Signs an order using `eth_signTypedData` and returns a SignedOrder. @@ -4462,7 +3055,7 @@ A SignedOrder containing the order and Elliptic curve signature with Signature T ▸ **ecSignTypedDataTransactionAsync**(`supportedProvider`: [SupportedProvider](#supportedprovider), `transaction`: `ZeroExTransaction`, `signerAddress`: string): *`Promise`* -*Defined in [order-utils/src/signature_utils.ts:374](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/order-utils/src/signature_utils.ts#L374)* +*Defined in [order-utils/src/signature_utils.ts:371](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/order-utils/src/signature_utils.ts#L371)* Signs a ZeroExTransaction using `eth_signTypedData` and returns a SignedZeroExTransaction. @@ -4482,7 +3075,7 @@ A SignedZeroExTransaction containing the ZeroExTransaction and Elliptic curve si ▸ **isValidECSignature**(`data`: string, `signature`: `ECSignature`, `signerAddress`: string): *boolean* -*Defined in [order-utils/src/signature_utils.ts:222](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/order-utils/src/signature_utils.ts#L222)* +*Defined in [order-utils/src/signature_utils.ts:219](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/order-utils/src/signature_utils.ts#L219)* Checks if the supplied elliptic curve signature corresponds to signing `data` with the private key corresponding to `signerAddress` @@ -4503,7 +3096,7 @@ Whether the ECSignature is valid. ▸ **isValidPresignedSignatureAsync**(`supportedProvider`: [SupportedProvider](#supportedprovider), `data`: string, `signerAddress`: string, `exchangeAddress?`: undefined | string): *`Promise`* -*Defined in [order-utils/src/signature_utils.ts:107](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/order-utils/src/signature_utils.ts#L107)* +*Defined in [order-utils/src/signature_utils.ts:107](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/order-utils/src/signature_utils.ts#L107)* Verifies that the provided presigned signature is valid according to the 0x Protocol smart contracts @@ -4524,7 +3117,7 @@ Whether the data was preSigned by the supplied signerAddress ▸ **isValidSignatureAsync**(`supportedProvider`: [SupportedProvider](#supportedprovider), `data`: string, `signature`: string, `signerAddress`: string, `exchangeAddress?`: undefined | string): *`Promise`* -*Defined in [order-utils/src/signature_utils.ts:38](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/order-utils/src/signature_utils.ts#L38)* +*Defined in [order-utils/src/signature_utils.ts:38](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/order-utils/src/signature_utils.ts#L38)* Verifies that the provided signature is valid according to the 0x Protocol smart contracts @@ -4546,7 +3139,7 @@ Whether the signature is valid for the supplied signerAddress and data. ▸ **isValidValidatorSignatureAsync**(`supportedProvider`: [SupportedProvider](#supportedprovider), `data`: string, `signature`: string, `signerAddress`: string, `exchangeAddress?`: undefined | string): *`Promise`* -*Defined in [order-utils/src/signature_utils.ts:168](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/order-utils/src/signature_utils.ts#L168)* +*Defined in [order-utils/src/signature_utils.ts:168](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/order-utils/src/signature_utils.ts#L168)* Verifies that the provided validator signature is valid according to the 0x Protocol smart contracts @@ -4568,7 +3161,7 @@ Whether the data was preSigned by the supplied signerAddress. ▸ **isValidWalletSignatureAsync**(`supportedProvider`: [SupportedProvider](#supportedprovider), `data`: string, `signature`: string, `signerAddress`: string): *`Promise`* -*Defined in [order-utils/src/signature_utils.ts:139](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/order-utils/src/signature_utils.ts#L139)* +*Defined in [order-utils/src/signature_utils.ts:139](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/order-utils/src/signature_utils.ts#L139)* Verifies that the provided wallet signature is valid according to the 0x Protocol smart contracts @@ -4589,7 +3182,7 @@ Whether the data was preSigned by the supplied signerAddress. ▸ **parseECSignature**(`signature`: string): *`ECSignature`* -*Defined in [order-utils/src/signature_utils.ts:512](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/order-utils/src/signature_utils.ts#L512)* +*Defined in [order-utils/src/signature_utils.ts:509](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/order-utils/src/signature_utils.ts#L509)* Parse a 0x protocol hex-encoded signature string into its ECSignature components @@ -4607,7 +3200,7 @@ An ECSignature object with r,s,v parameters ▸ **parseValidatorSignature**(`signature`: string): *`ValidatorSignature`* -*Defined in [order-utils/src/signature_utils.ts:529](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/order-utils/src/signature_utils.ts#L529)* +*Defined in [order-utils/src/signature_utils.ts:526](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/order-utils/src/signature_utils.ts#L526)* Parse a hex-encoded Validator signature into validator address and signature components @@ -4632,13 +3225,13 @@ A ValidatorSignature with validatorAddress and signature parameters #### ▪ **sortingUtils**: *object* -*Defined in [order-utils/src/sorting_utils.ts:10](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/order-utils/src/sorting_utils.ts#L10)* +*Defined in [order-utils/src/sorting_utils.ts:10](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/order-utils/src/sorting_utils.ts#L10)* #### sortFeeOrdersByFeeAdjustedRate ▸ **sortFeeOrdersByFeeAdjustedRate**<**T**>(`feeOrders`: `T`[]): *`T`[]* -*Defined in [order-utils/src/sorting_utils.ts:35](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/order-utils/src/sorting_utils.ts#L35)* +*Defined in [order-utils/src/sorting_utils.ts:35](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/order-utils/src/sorting_utils.ts#L35)* Takes an array of fee orders (makerAssetData corresponds to ZRX and takerAssetData corresponds to WETH) and sorts them by rate in ascending order (best rate first). Adjusts the rate according to the takerFee. @@ -4661,7 +3254,7 @@ The input orders sorted by rate in ascending order ▸ **sortOrdersByFeeAdjustedRate**<**T**>(`orders`: `T`[], `feeRate`: `BigNumber`): *`T`[]* -*Defined in [order-utils/src/sorting_utils.ts:21](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/order-utils/src/sorting_utils.ts#L21)* +*Defined in [order-utils/src/sorting_utils.ts:21](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/order-utils/src/sorting_utils.ts#L21)* Takes an array of orders and sorts them by takerAsset/makerAsset rate in ascending order (best rate first). Adjusts the rate of each order according to the feeRate and takerFee for that order. @@ -4689,14 +3282,6 @@ The input orders sorted by rate in ascending order -
- - - -
- - - ## Object literals @@ -4704,13 +3289,13 @@ The input orders sorted by rate in ascending order #### ▪ **transactionHashUtils**: *object* -*Defined in [order-utils/src/transaction_hash.ts:9](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/order-utils/src/transaction_hash.ts#L9)* +*Defined in [order-utils/src/transaction_hash.ts:9](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/order-utils/src/transaction_hash.ts#L9)* #### getTransactionHashBuffer ▸ **getTransactionHashBuffer**(`transaction`: `ZeroExTransaction` | `SignedZeroExTransaction`): *`Buffer`* -*Defined in [order-utils/src/transaction_hash.ts:41](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/order-utils/src/transaction_hash.ts#L41)* +*Defined in [order-utils/src/transaction_hash.ts:41](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/order-utils/src/transaction_hash.ts#L41)* Computes the transactionHash for a supplied 0x transaction. @@ -4728,7 +3313,7 @@ A Buffer containing the resulting transactionHash from hashing the supplied 0x t ▸ **getTransactionHashHex**(`transaction`: `ZeroExTransaction` | `SignedZeroExTransaction`): *string* -*Defined in [order-utils/src/transaction_hash.ts:30](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/order-utils/src/transaction_hash.ts#L30)* +*Defined in [order-utils/src/transaction_hash.ts:30](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/order-utils/src/transaction_hash.ts#L30)* Computes the transactionHash for a supplied 0x transaction. @@ -4746,7 +3331,7 @@ Hex encoded string transactionHash from hashing the supplied order. ▸ **isValidTransactionHash**(`transactionHash`: string): *boolean* -*Defined in [order-utils/src/transaction_hash.ts:17](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/order-utils/src/transaction_hash.ts#L17)* +*Defined in [order-utils/src/transaction_hash.ts:17](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/order-utils/src/transaction_hash.ts#L17)* Checks if the supplied hex encoded 0x transaction hash is valid. Note: Valid means it has the expected format, not that a transaction with the transactionHash exists. @@ -4764,58 +3349,3 @@ Whether the supplied transactionHash has the expected format.
- - -
- - - - -## Type aliases - - - -### AssetData - -Ƭ **AssetData**: *[SingleAssetData](_types_src_index_.md#singleassetdata) | [MultiAssetData](#interface-multiassetdata) | [MultiAssetDataWithRecursiveDecoding](#interface-multiassetdatawithrecursivedecoding)* - -*Defined in [types/src/index.ts:224](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/types/src/index.ts#L224)* - -___ - - - - - -### EIP712ObjectValue - -Ƭ **EIP712ObjectValue**: *string | number | [EIP712Object](#interface-eip712object)* - -*Defined in [types/src/index.ts:728](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/types/src/index.ts#L728)* - -___ - - - - - -### OrderState - -Ƭ **OrderState**: *[OrderStateValid](#interface-orderstatevalid) | [OrderStateInvalid](#interface-orderstateinvalid)* - -*Defined in [types/src/index.ts:141](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/types/src/index.ts#L141)* - -___ - - - - - -### SingleAssetData - -Ƭ **SingleAssetData**: *[ERC20AssetData](#interface-erc20assetdata) | [ERC721AssetData](#interface-erc721assetdata) | [ERC1155AssetData](#interface-erc1155assetdata) | [StaticCallAssetData](#interface-staticcallassetdata)* - -*Defined in [types/src/index.ts:204](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/types/src/index.ts#L204)* - -
- diff --git a/packages/order-utils/package.json b/packages/order-utils/package.json index b2fabad0c2..0f9959c6d0 100644 --- a/packages/order-utils/package.json +++ b/packages/order-utils/package.json @@ -1,6 +1,6 @@ { "name": "@0x/order-utils", - "version": "8.5.0-beta.0", + "version": "8.5.0-beta.1", "engines": { "node": ">=6.12" }, @@ -39,10 +39,10 @@ }, "homepage": "https://github.com/0xProject/0x-monorepo/packages/order-utils/README.md", "devDependencies": { - "@0x/dev-utils": "^2.4.0-beta.0", - "@0x/subproviders": "^5.1.0-beta.0", + "@0x/dev-utils": "^2.4.0-beta.1", + "@0x/subproviders": "^5.1.0-beta.1", "@0x/ts-doc-gen": "^0.0.22", - "@0x/tslint-config": "^3.0.1", + "@0x/tslint-config": "^3.1.0-beta.1", "@types/bn.js": "^4.11.0", "@types/lodash": "4.14.104", "@types/mocha": "^5.2.7", @@ -59,18 +59,18 @@ "web3-provider-engine": "14.0.6" }, "dependencies": { - "@0x/abi-gen-wrappers": "^5.4.0-beta.0", - "@0x/assert": "^2.2.0-beta.0", - "@0x/contract-addresses": "^3.3.0-beta.0", - "@0x/contract-artifacts": "^2.3.0-beta.0", - "@0x/json-schemas": "^4.1.0-beta.0", - "@0x/types": "^2.5.0-beta.0", - "@0x/typescript-typings": "^4.4.0-beta.0", - "@0x/utils": "^4.6.0-beta.0", - "@0x/web3-wrapper": "^6.1.0-beta.0", + "@0x/abi-gen-wrappers": "^5.4.0-beta.1", + "@0x/assert": "^2.2.0-beta.1", + "@0x/contract-addresses": "^3.3.0-beta.2", + "@0x/contract-artifacts": "^2.3.0-beta.2", + "@0x/json-schemas": "^4.1.0-beta.1", + "@0x/types": "^2.5.0-beta.1", + "@0x/typescript-typings": "^4.4.0-beta.1", + "@0x/utils": "^4.6.0-beta.1", + "@0x/web3-wrapper": "^6.1.0-beta.1", "@types/node": "*", "bn.js": "^4.11.8", - "ethereum-types": "^2.2.0-beta.0", + "ethereum-types": "^2.2.0-beta.1", "ethereumjs-abi": "0.6.5", "ethereumjs-util": "^5.1.1", "ethers": "~4.0.4", diff --git a/packages/order-utils/src/index.ts b/packages/order-utils/src/index.ts index 3b20d0ea14..2c05a038fd 100644 --- a/packages/order-utils/src/index.ts +++ b/packages/order-utils/src/index.ts @@ -15,17 +15,6 @@ export { sortingUtils } from './sorting_utils'; export { orderParsingUtils } from './parsing_utils'; export { orderCalculationUtils } from './order_calculation_utils'; -export { OrderStateUtils } from './order_state_utils'; -export { AbstractBalanceAndProxyAllowanceFetcher } from './abstract/abstract_balance_and_proxy_allowance_fetcher'; -export { AbstractBalanceAndProxyAllowanceLazyStore } from './abstract/abstract_balance_and_proxy_allowance_lazy_store'; -export { AbstractOrderFilledCancelledFetcher } from './abstract/abstract_order_filled_cancelled_fetcher'; -export { AbstractOrderFilledCancelledLazyStore } from './abstract/abstract_order_filled_cancelled_lazy_store'; - -export { OrderValidationUtils } from './order_validation_utils'; -export { ExchangeTransferSimulator } from './exchange_transfer_simulator'; -export { BalanceAndProxyAllowanceLazyStore } from './store/balance_and_proxy_allowance_lazy_store'; -export { OrderFilledCancelledLazyStore } from './store/order_filled_cancelled_lazy_store'; - export { eip712Utils } from './eip712_utils'; export { @@ -47,8 +36,6 @@ export { export { SignedOrder, Order, - OrderRelevantState, - OrderState, ECSignature, AssetData, SingleAssetData, @@ -61,10 +48,6 @@ export { MultiAssetDataWithRecursiveDecoding, AssetProxyId, SignatureType, - ObjectMap, - OrderStateValid, - OrderStateInvalid, - ExchangeContractErrs, EIP712Parameter, EIP712TypedData, EIP712Types, @@ -78,8 +61,6 @@ export { export { TypedDataError, - TradeSide, - TransferType, FindFeeOrdersThatCoverFeesForTargetOrdersOpts, FindOrdersThatCoverMakerAssetFillAmountOpts, FindOrdersThatCoverTakerAssetFillAmountOpts, diff --git a/packages/order-utils/src/order_state_utils.ts b/packages/order-utils/src/order_state_utils.ts deleted file mode 100644 index 72d6c48410..0000000000 --- a/packages/order-utils/src/order_state_utils.ts +++ /dev/null @@ -1,363 +0,0 @@ -import { - AssetProxyId, - ERC20AssetData, - ERC721AssetData, - ExchangeContractErrs, - MultiAssetData, - ObjectMap, - OrderRelevantState, - OrderState, - OrderStateInvalid, - OrderStateValid, - SignedOrder, - SingleAssetData, -} from '@0x/types'; -import { BigNumber } from '@0x/utils'; -import * as _ from 'lodash'; - -import { AbstractBalanceAndProxyAllowanceFetcher } from './abstract/abstract_balance_and_proxy_allowance_fetcher'; -import { AbstractOrderFilledCancelledFetcher } from './abstract/abstract_order_filled_cancelled_fetcher'; -import { assetDataUtils } from './asset_data_utils'; -import { orderHashUtils } from './order_hash'; -import { OrderValidationUtils } from './order_validation_utils'; -import { RemainingFillableCalculator } from './remaining_fillable_calculator'; -import { utils } from './utils'; - -interface SidedOrderRelevantState { - isMakerSide: boolean; - traderBalance: BigNumber; - traderIndividualBalances: ObjectMap; - traderProxyAllowance: BigNumber; - traderIndividualProxyAllowances: ObjectMap; - traderFeeBalance: BigNumber; - traderFeeProxyAllowance: BigNumber; - filledTakerAssetAmount: BigNumber; - remainingFillableAssetAmount: BigNumber; - isOrderCancelled: boolean; -} -interface OrderValidResult { - isValid: true; -} -interface OrderInvalidResult { - isValid: false; - error: ExchangeContractErrs; -} -type OrderValidationResult = OrderValidResult | OrderInvalidResult; - -export class OrderStateUtils { - private readonly _balanceAndProxyAllowanceFetcher: AbstractBalanceAndProxyAllowanceFetcher; - private readonly _orderFilledCancelledFetcher: AbstractOrderFilledCancelledFetcher; - private static _validateIfOrderIsValid( - signedOrder: SignedOrder, - sidedOrderRelevantState: SidedOrderRelevantState, - ): OrderValidationResult { - const isMakerSide = sidedOrderRelevantState.isMakerSide; - if (sidedOrderRelevantState.isOrderCancelled) { - return { isValid: false, error: ExchangeContractErrs.OrderCancelled }; - } - const availableTakerAssetAmount = signedOrder.takerAssetAmount.minus( - sidedOrderRelevantState.filledTakerAssetAmount, - ); - if (availableTakerAssetAmount.eq(0)) { - return { isValid: false, error: ExchangeContractErrs.OrderRemainingFillAmountZero }; - } - - if (sidedOrderRelevantState.traderBalance.eq(0)) { - const error = isMakerSide - ? ExchangeContractErrs.InsufficientMakerBalance - : ExchangeContractErrs.InsufficientTakerBalance; - return { isValid: false, error }; - } - if (sidedOrderRelevantState.traderProxyAllowance.eq(0)) { - const error = isMakerSide - ? ExchangeContractErrs.InsufficientMakerAllowance - : ExchangeContractErrs.InsufficientTakerAllowance; - return { isValid: false, error }; - } - if (!signedOrder.makerFee.eq(0)) { - if (sidedOrderRelevantState.traderFeeBalance.eq(0)) { - const error = isMakerSide - ? ExchangeContractErrs.InsufficientMakerFeeBalance - : ExchangeContractErrs.InsufficientTakerFeeBalance; - return { isValid: false, error }; - } - if (sidedOrderRelevantState.traderFeeProxyAllowance.eq(0)) { - const error = isMakerSide - ? ExchangeContractErrs.InsufficientMakerFeeAllowance - : ExchangeContractErrs.InsufficientTakerFeeAllowance; - return { isValid: false, error }; - } - } - const remainingTakerAssetAmount = signedOrder.takerAssetAmount.minus( - sidedOrderRelevantState.filledTakerAssetAmount, - ); - const isRoundingError = OrderValidationUtils.isRoundingErrorFloor( - remainingTakerAssetAmount, - signedOrder.takerAssetAmount, - signedOrder.makerAssetAmount, - ); - if (isRoundingError) { - return { isValid: false, error: ExchangeContractErrs.OrderFillRoundingError }; - } - return { isValid: true }; - } - /** - * Instantiate OrderStateUtils - * @param balanceAndProxyAllowanceFetcher A class that is capable of fetching balances - * and proxyAllowances for Ethereum addresses. It must implement AbstractBalanceAndProxyAllowanceFetcher - * @param orderFilledCancelledFetcher A class that is capable of fetching whether an order - * is cancelled and how much of it has been filled. It must implement AbstractOrderFilledCancelledFetcher - * @return Instance of OrderStateUtils - */ - constructor( - balanceAndProxyAllowanceFetcher: AbstractBalanceAndProxyAllowanceFetcher, - orderFilledCancelledFetcher: AbstractOrderFilledCancelledFetcher, - ) { - this._balanceAndProxyAllowanceFetcher = balanceAndProxyAllowanceFetcher; - this._orderFilledCancelledFetcher = orderFilledCancelledFetcher; - } - /** - * Get the orderState for an "open" order (i.e where takerAddress=NULL_ADDRESS) - * This method will only check the maker's balance/allowance to calculate the - * OrderState. - * @param signedOrder The order of interest - * @return State relevant to the signedOrder, as well as whether the signedOrder is "valid". - * Validity is defined as a non-zero amount of the order can still be filled. - */ - public async getOpenOrderStateAsync(signedOrder: SignedOrder, transactionHash?: string): Promise { - const orderRelevantState = await this.getOpenOrderRelevantStateAsync(signedOrder); - const orderHash = orderHashUtils.getOrderHashHex(signedOrder); - const isOrderCancelled = await this._orderFilledCancelledFetcher.isOrderCancelledAsync(signedOrder); - const sidedOrderRelevantState = { - isMakerSide: true, - traderBalance: orderRelevantState.makerBalance, - traderIndividualBalances: orderRelevantState.makerIndividualBalances, - traderProxyAllowance: orderRelevantState.makerProxyAllowance, - traderIndividualProxyAllowances: orderRelevantState.makerIndividualProxyAllowances, - traderFeeBalance: orderRelevantState.makerFeeBalance, - traderFeeProxyAllowance: orderRelevantState.makerFeeProxyAllowance, - filledTakerAssetAmount: orderRelevantState.filledTakerAssetAmount, - remainingFillableAssetAmount: orderRelevantState.remainingFillableMakerAssetAmount, - isOrderCancelled, - }; - const orderValidationResult = OrderStateUtils._validateIfOrderIsValid(signedOrder, sidedOrderRelevantState); - if (orderValidationResult.isValid) { - const orderState: OrderStateValid = { - isValid: true, - orderHash, - orderRelevantState, - transactionHash, - }; - return orderState; - } else { - const orderState: OrderStateInvalid = { - isValid: false, - orderHash, - error: orderValidationResult.error, - transactionHash, - }; - return orderState; - } - } - /** - * Get state relevant to an order (i.e makerBalance, makerAllowance, filledTakerAssetAmount, etc... - * @param signedOrder Order of interest - * @return An instance of OrderRelevantState - */ - public async getOpenOrderRelevantStateAsync(signedOrder: SignedOrder): Promise { - const isMaker = true; - const sidedOrderRelevantState = await this._getSidedOrderRelevantStateAsync( - isMaker, - signedOrder, - signedOrder.takerAddress, - ); - const remainingFillableTakerAssetAmount = sidedOrderRelevantState.remainingFillableAssetAmount - .times(signedOrder.takerAssetAmount) - .dividedToIntegerBy(signedOrder.makerAssetAmount); - - const orderRelevantState = { - makerBalance: sidedOrderRelevantState.traderBalance, - makerIndividualBalances: sidedOrderRelevantState.traderIndividualBalances, - makerProxyAllowance: sidedOrderRelevantState.traderProxyAllowance, - makerIndividualProxyAllowances: sidedOrderRelevantState.traderIndividualProxyAllowances, - makerFeeBalance: sidedOrderRelevantState.traderFeeBalance, - makerFeeProxyAllowance: sidedOrderRelevantState.traderFeeProxyAllowance, - filledTakerAssetAmount: sidedOrderRelevantState.filledTakerAssetAmount, - remainingFillableMakerAssetAmount: sidedOrderRelevantState.remainingFillableAssetAmount, - remainingFillableTakerAssetAmount, - }; - return orderRelevantState; - } - /** - * Get the max amount of the supplied order's takerAmount that could still be filled - * @param signedOrder Order of interest - * @param takerAddress Hypothetical taker of the order - * @return fillableTakerAssetAmount - */ - public async getMaxFillableTakerAssetAmountAsync( - signedOrder: SignedOrder, - takerAddress: string, - ): Promise { - // Get max fillable amount for an order, considering the makers ability to fill - let isMaker = true; - const orderRelevantMakerState = await this._getSidedOrderRelevantStateAsync( - isMaker, - signedOrder, - signedOrder.takerAddress, - ); - const remainingFillableTakerAssetAmountGivenMakersStatus = signedOrder.makerAssetAmount.eq(0) - ? new BigNumber(0) - : utils.getPartialAmountFloor( - orderRelevantMakerState.remainingFillableAssetAmount, - signedOrder.makerAssetAmount, - signedOrder.takerAssetAmount, - ); - - // Get max fillable amount for an order, considering the takers ability to fill - isMaker = false; - const orderRelevantTakerState = await this._getSidedOrderRelevantStateAsync(isMaker, signedOrder, takerAddress); - const remainingFillableTakerAssetAmountGivenTakersStatus = orderRelevantTakerState.remainingFillableAssetAmount; - - // The min of these two in the actualy max fillable by either party - const fillableTakerAssetAmount = BigNumber.min( - remainingFillableTakerAssetAmountGivenMakersStatus, - remainingFillableTakerAssetAmountGivenTakersStatus, - ); - - return fillableTakerAssetAmount; - } - private async _getSidedOrderRelevantStateAsync( - isMakerSide: boolean, - signedOrder: SignedOrder, - takerAddress: string, - ): Promise { - let traderAddress; - let assetData; - let assetAmount; - let feeAssetData; - let feeAmount; - if (isMakerSide) { - traderAddress = signedOrder.makerAddress; - assetData = signedOrder.makerAssetData; - assetAmount = signedOrder.makerAssetAmount; - feeAssetData = signedOrder.makerFeeAssetData; - feeAmount = signedOrder.makerFee; - } else { - traderAddress = takerAddress; - assetData = signedOrder.takerAssetData; - assetAmount = signedOrder.takerAssetAmount; - feeAssetData = signedOrder.takerFeeAssetData; - feeAmount = signedOrder.takerFee; - } - const isPercentageFee = assetData === feeAssetData; - - const traderBalance = await this._balanceAndProxyAllowanceFetcher.getBalanceAsync(assetData, traderAddress); - const traderIndividualBalances = await this._getAssetBalancesAsync(assetData, traderAddress); - const traderProxyAllowance = await this._balanceAndProxyAllowanceFetcher.getProxyAllowanceAsync( - assetData, - traderAddress, - ); - const traderIndividualProxyAllowances = await this._getAssetProxyAllowancesAsync(assetData, traderAddress); - const traderFeeBalance = await this._balanceAndProxyAllowanceFetcher.getBalanceAsync( - feeAssetData, - traderAddress, - ); - const traderFeeProxyAllowance = await this._balanceAndProxyAllowanceFetcher.getProxyAllowanceAsync( - feeAssetData, - traderAddress, - ); - - const transferrableTraderAssetAmount = BigNumber.min(traderProxyAllowance, traderBalance); - const transferrableFeeAssetAmount = BigNumber.min(traderFeeProxyAllowance, traderFeeBalance); - - const orderHash = orderHashUtils.getOrderHashHex(signedOrder); - const filledTakerAssetAmount = await this._orderFilledCancelledFetcher.getFilledTakerAmountAsync(orderHash); - const totalMakerAssetAmount = signedOrder.makerAssetAmount; - const totalTakerAssetAmount = signedOrder.takerAssetAmount; - const isOrderCancelled = await this._orderFilledCancelledFetcher.isOrderCancelledAsync(signedOrder); - const remainingTakerAssetAmount = isOrderCancelled - ? new BigNumber(0) - : totalTakerAssetAmount.minus(filledTakerAssetAmount); - const remainingMakerAssetAmount = remainingTakerAssetAmount.eq(0) - ? new BigNumber(0) - : remainingTakerAssetAmount.times(totalMakerAssetAmount).dividedToIntegerBy(totalTakerAssetAmount); - const remainingAssetAmount = isMakerSide ? remainingMakerAssetAmount : remainingTakerAssetAmount; - - const remainingFillableCalculator = new RemainingFillableCalculator( - feeAmount, - assetAmount, - isPercentageFee, - transferrableTraderAssetAmount, - transferrableFeeAssetAmount, - remainingAssetAmount, - ); - const remainingFillableAssetAmount = remainingFillableCalculator.computeRemainingFillable(); - - const sidedOrderRelevantState = { - isMakerSide, - traderBalance, - traderIndividualBalances, - traderProxyAllowance, - traderIndividualProxyAllowances, - traderFeeBalance, - traderFeeProxyAllowance, - filledTakerAssetAmount, - remainingFillableAssetAmount, - isOrderCancelled, - }; - return sidedOrderRelevantState; - } - private async _getAssetBalancesAsync( - assetData: string, - traderAddress: string, - initialBalances: ObjectMap = {}, - ): Promise> { - const decodedAssetData = assetDataUtils.decodeAssetDataOrThrow(assetData); - let balances: ObjectMap = { ...initialBalances }; - if (isERC20AssetData(decodedAssetData) || isERC721AssetData(decodedAssetData)) { - const balance = await this._balanceAndProxyAllowanceFetcher.getBalanceAsync(assetData, traderAddress); - // tslint:disable-next-line:no-unnecessary-type-assertion - const tokenAddress = (decodedAssetData as ERC20AssetData | ERC721AssetData).tokenAddress; - balances[tokenAddress] = - initialBalances[tokenAddress] === undefined ? balance : balances[tokenAddress].plus(balance); - } else if (isMultiAssetData(decodedAssetData)) { - for (const assetDataElement of (decodedAssetData as MultiAssetData).nestedAssetData) { - balances = await this._getAssetBalancesAsync(assetDataElement, traderAddress, balances); - } - } - return balances; - } - private async _getAssetProxyAllowancesAsync( - assetData: string, - traderAddress: string, - initialAllowances: ObjectMap = {}, - ): Promise> { - const decodedAssetData = assetDataUtils.decodeAssetDataOrThrow(assetData); - let allowances: ObjectMap = { ...initialAllowances }; - if (isERC20AssetData(decodedAssetData) || isERC721AssetData(decodedAssetData)) { - const allowance = await this._balanceAndProxyAllowanceFetcher.getProxyAllowanceAsync( - assetData, - traderAddress, - ); - // tslint:disable-next-line:no-unnecessary-type-assertion - const tokenAddress = (decodedAssetData as ERC20AssetData | ERC721AssetData).tokenAddress; - allowances[tokenAddress] = - initialAllowances[tokenAddress] === undefined ? allowance : allowances[tokenAddress].plus(allowance); - } else if (isMultiAssetData(decodedAssetData)) { - for (const assetDataElement of (decodedAssetData as MultiAssetData).nestedAssetData) { - allowances = await this._getAssetBalancesAsync(assetDataElement, traderAddress, allowances); - } - } - return allowances; - } -} - -function isERC20AssetData(decodedAssetData: SingleAssetData | MultiAssetData): boolean { - return decodedAssetData.assetProxyId === AssetProxyId.ERC20; -} -function isERC721AssetData(decodedAssetData: SingleAssetData | MultiAssetData): boolean { - return decodedAssetData.assetProxyId === AssetProxyId.ERC721; -} -function isMultiAssetData(decodedAssetData: SingleAssetData | MultiAssetData): boolean { - return decodedAssetData.assetProxyId === AssetProxyId.MultiAsset; -} diff --git a/packages/order-utils/src/order_validation_utils.ts b/packages/order-utils/src/order_validation_utils.ts deleted file mode 100644 index 19141c2208..0000000000 --- a/packages/order-utils/src/order_validation_utils.ts +++ /dev/null @@ -1,204 +0,0 @@ -import { ExchangeContractErrs, RevertReason, SignedOrder } from '@0x/types'; -import { BigNumber, providerUtils } from '@0x/utils'; -import { SupportedProvider, ZeroExProvider } from 'ethereum-types'; -import * as _ from 'lodash'; - -import { AbstractOrderFilledCancelledFetcher } from './abstract/abstract_order_filled_cancelled_fetcher'; -import { constants } from './constants'; -import { ExchangeTransferSimulator } from './exchange_transfer_simulator'; -import { orderHashUtils } from './order_hash'; -import { signatureUtils } from './signature_utils'; -import { TradeSide, TransferType, TypedDataError } from './types'; -import { utils } from './utils'; - -/** - * A utility class for validating orders - */ -export class OrderValidationUtils { - private readonly _orderFilledCancelledFetcher: AbstractOrderFilledCancelledFetcher; - private readonly _provider: ZeroExProvider; - /** - * A TypeScript implementation mirroring the implementation of isRoundingError in the - * Exchange smart contract - * @param numerator Numerator value. When used to check an order, pass in `takerAssetFilledAmount` - * @param denominator Denominator value. When used to check an order, pass in `order.takerAssetAmount` - * @param target Target value. When used to check an order, pass in `order.makerAssetAmount` - */ - public static isRoundingErrorFloor(numerator: BigNumber, denominator: BigNumber, target: BigNumber): boolean { - // Solidity's mulmod() in JS - // Source: https://solidity.readthedocs.io/en/latest/units-and-global-variables.html#mathematical-and-cryptographic-functions - if (denominator.eq(0)) { - throw new Error('denominator cannot be 0'); - } - const remainder = target.multipliedBy(numerator).mod(denominator); - if (remainder.eq(0)) { - return false; // no rounding error - } - - // tslint:disable-next-line:custom-no-magic-numbers - const errPercentageTimes1000000 = remainder.multipliedBy(1000000).div(numerator.multipliedBy(target)); - // tslint:disable-next-line:custom-no-magic-numbers - const isError = errPercentageTimes1000000.gt(1000); - return isError; - } - - /** - * Validate that the maker & taker have sufficient balances/allowances - * to fill the supplied order to the fillTakerAssetAmount amount - * @param exchangeTradeEmulator ExchangeTradeEmulator to use - * @param signedOrder SignedOrder to test - * @param fillTakerAssetAmount Amount of takerAsset to fill the signedOrder - * @param senderAddress Sender of the fillOrder tx - */ - public static async validateFillOrderBalancesAllowancesThrowIfInvalidAsync( - exchangeTradeEmulator: ExchangeTransferSimulator, - signedOrder: SignedOrder, - fillTakerAssetAmount: BigNumber, - senderAddress: string, - ): Promise { - const fillMakerTokenAmount = utils.getPartialAmountFloor( - fillTakerAssetAmount, - signedOrder.takerAssetAmount, - signedOrder.makerAssetAmount, - ); - const makerFeeAmount = utils.getPartialAmountFloor( - fillTakerAssetAmount, - signedOrder.takerAssetAmount, - signedOrder.makerFee, - ); - const takerFeeAmount = utils.getPartialAmountFloor( - fillTakerAssetAmount, - signedOrder.takerAssetAmount, - signedOrder.takerFee, - ); - await exchangeTradeEmulator.transferFromAsync( - signedOrder.makerAssetData, - signedOrder.makerAddress, - senderAddress, - fillMakerTokenAmount, - TradeSide.Maker, - TransferType.Trade, - ); - await exchangeTradeEmulator.transferFromAsync( - signedOrder.takerAssetData, - senderAddress, - signedOrder.makerAddress, - fillTakerAssetAmount, - TradeSide.Taker, - TransferType.Trade, - ); - await exchangeTradeEmulator.transferFromAsync( - signedOrder.makerFeeAssetData, - signedOrder.makerAddress, - signedOrder.feeRecipientAddress, - makerFeeAmount, - TradeSide.Maker, - TransferType.Fee, - ); - await exchangeTradeEmulator.transferFromAsync( - signedOrder.takerFeeAssetData, - senderAddress, - signedOrder.feeRecipientAddress, - takerFeeAmount, - TradeSide.Taker, - TransferType.Fee, - ); - } - - private static _validateOrderNotExpiredOrThrow(expirationTimeSeconds: BigNumber): void { - const currentUnixTimestampSec = utils.getCurrentUnixTimestampSec(); - if (expirationTimeSeconds.isLessThan(currentUnixTimestampSec)) { - throw new Error(RevertReason.OrderUnfillable); - } - } - /** - * Instantiate OrderValidationUtils - * @param orderFilledCancelledFetcher A module that implements the AbstractOrderFilledCancelledFetcher - * @param supportedProvider Web3 provider to use for JSON RPC calls - * @return An instance of OrderValidationUtils - */ - constructor( - orderFilledCancelledFetcher: AbstractOrderFilledCancelledFetcher, - supportedProvider: SupportedProvider, - ) { - this._orderFilledCancelledFetcher = orderFilledCancelledFetcher; - this._provider = providerUtils.standardizeOrThrow(supportedProvider); - } - - /** - * Validate a call to FillOrder and throw if it wouldn't succeed - * @param exchangeTradeEmulator ExchangeTradeEmulator to use - * @param signedOrder SignedOrder of interest - * @param fillTakerAssetAmount Amount we'd like to fill the order for - * @param takerAddress The taker of the order - */ - public async validateFillOrderThrowIfInvalidAsync( - exchangeTradeEmulator: ExchangeTransferSimulator, - signedOrder: SignedOrder, - fillTakerAssetAmount: BigNumber, - takerAddress: string, - ): Promise { - OrderValidationUtils._validateOrderNotExpiredOrThrow(signedOrder.expirationTimeSeconds); - if (signedOrder.makerAssetAmount.eq(0) || signedOrder.takerAssetAmount.eq(0)) { - throw new Error(RevertReason.OrderUnfillable); - } - if (fillTakerAssetAmount.eq(0)) { - throw new Error(RevertReason.InvalidTakerAmount); - } - - const orderHash = orderHashUtils.getOrderHashHex(signedOrder); - const isValid = await signatureUtils.isValidSignatureAsync( - this._provider, - orderHash, - signedOrder.signature, - signedOrder.makerAddress, - ); - if (!isValid) { - throw new Error(TypedDataError.InvalidSignature); - } - const filledTakerTokenAmount = await this._orderFilledCancelledFetcher.getFilledTakerAmountAsync(orderHash); - if (signedOrder.takerAssetAmount.eq(filledTakerTokenAmount)) { - throw new Error(RevertReason.OrderUnfillable); - } - if (signedOrder.takerAddress !== constants.NULL_ADDRESS && signedOrder.takerAddress !== takerAddress) { - throw new Error(RevertReason.InvalidTaker); - } - const remainingTakerTokenAmount = signedOrder.takerAssetAmount.minus(filledTakerTokenAmount); - const desiredFillTakerTokenAmount = remainingTakerTokenAmount.isLessThan(fillTakerAssetAmount) - ? remainingTakerTokenAmount - : fillTakerAssetAmount; - try { - await OrderValidationUtils.validateFillOrderBalancesAllowancesThrowIfInvalidAsync( - exchangeTradeEmulator, - signedOrder, - desiredFillTakerTokenAmount, - takerAddress, - ); - } catch (err) { - const transferFailedErrorMessages = [ - ExchangeContractErrs.InsufficientMakerBalance, - ExchangeContractErrs.InsufficientMakerFeeBalance, - ExchangeContractErrs.InsufficientTakerBalance, - ExchangeContractErrs.InsufficientTakerFeeBalance, - ExchangeContractErrs.InsufficientMakerAllowance, - ExchangeContractErrs.InsufficientMakerFeeAllowance, - ExchangeContractErrs.InsufficientTakerAllowance, - ExchangeContractErrs.InsufficientTakerFeeAllowance, - ]; - if (_.includes(transferFailedErrorMessages, err.message)) { - throw new Error(RevertReason.TransferFailed); - } - throw err; - } - - const wouldRoundingErrorOccur = OrderValidationUtils.isRoundingErrorFloor( - desiredFillTakerTokenAmount, - signedOrder.takerAssetAmount, - signedOrder.makerAssetAmount, - ); - if (wouldRoundingErrorOccur) { - throw new Error(RevertReason.RoundingError); - } - return filledTakerTokenAmount; - } -} diff --git a/packages/order-utils/src/types.ts b/packages/order-utils/src/types.ts index 18d4901812..53380db4e7 100644 --- a/packages/order-utils/src/types.ts +++ b/packages/order-utils/src/types.ts @@ -5,16 +5,6 @@ export enum TypedDataError { InvalidMetamaskSigner = "MetaMask provider must be wrapped in a MetamaskSubprovider (from the '@0x/subproviders' package) in order to work with this method.", } -export enum TradeSide { - Maker = 'maker', - Taker = 'taker', -} - -export enum TransferType { - Trade = 'trade', - Fee = 'fee', -} - export interface CreateOrderOpts { takerAddress?: string; senderAddress?: string; diff --git a/packages/order-utils/test/order_state_utils_test.ts b/packages/order-utils/test/order_state_utils_test.ts deleted file mode 100644 index ec0bfec57c..0000000000 --- a/packages/order-utils/test/order_state_utils_test.ts +++ /dev/null @@ -1,142 +0,0 @@ -import { SignedOrder } from '@0x/types'; -import { BigNumber } from '@0x/utils'; -import * as chai from 'chai'; -import 'mocha'; - -import { AbstractBalanceAndProxyAllowanceFetcher } from '../src/abstract/abstract_balance_and_proxy_allowance_fetcher'; -import { AbstractOrderFilledCancelledFetcher } from '../src/abstract/abstract_order_filled_cancelled_fetcher'; -import { OrderStateUtils } from '../src/order_state_utils'; - -import { chaiSetup } from './utils/chai_setup'; -import { testOrderFactory } from './utils/test_order_factory'; - -chaiSetup.configure(); -const expect = chai.expect; - -describe('OrderStateUtils', () => { - describe('#getOpenOrderStateAsync', () => { - const buildMockBalanceFetcher = (takerBalance: BigNumber): AbstractBalanceAndProxyAllowanceFetcher => { - const balanceFetcher = { - async getBalanceAsync(_assetData: string, _userAddress: string): Promise { - return takerBalance; - }, - async getProxyAllowanceAsync(_assetData: string, _userAddress: string): Promise { - return takerBalance; - }, - }; - return balanceFetcher; - }; - const buildMockOrderFilledFetcher = ( - filledAmount: BigNumber = new BigNumber(0), - cancelled: boolean = false, - ): AbstractOrderFilledCancelledFetcher => { - const orderFetcher = { - async getFilledTakerAmountAsync(_orderHash: string): Promise { - return filledAmount; - }, - async isOrderCancelledAsync(_signedOrder: SignedOrder): Promise { - return cancelled; - }, - }; - return orderFetcher; - }; - it('should have valid order state if order can be fully filled with small maker amount', async () => { - const makerAssetAmount = new BigNumber(10); - const takerAssetAmount = new BigNumber(10000000000000000); - const takerBalance = takerAssetAmount; - const orderFilledAmount = new BigNumber(0); - const mockBalanceFetcher = buildMockBalanceFetcher(takerBalance); - const mockOrderFilledFetcher = buildMockOrderFilledFetcher(orderFilledAmount); - const [signedOrder] = testOrderFactory.generateTestSignedOrders( - { - makerAssetAmount, - takerAssetAmount, - }, - 1, - ); - - const orderStateUtils = new OrderStateUtils(mockBalanceFetcher, mockOrderFilledFetcher); - const orderState = await orderStateUtils.getOpenOrderStateAsync(signedOrder); - expect(orderState.isValid).to.eq(true); - }); - it('should be invalid when an order is partially filled where only a rounding error remains', async () => { - const makerAssetAmount = new BigNumber(1001); - const takerAssetAmount = new BigNumber(3); - const takerBalance = takerAssetAmount; - const orderFilledAmount = new BigNumber(2); - const mockBalanceFetcher = buildMockBalanceFetcher(takerBalance); - const mockOrderFilledFetcher = buildMockOrderFilledFetcher(orderFilledAmount); - const [signedOrder] = testOrderFactory.generateTestSignedOrders( - { - makerAssetAmount, - takerAssetAmount, - }, - 1, - ); - - const orderStateUtils = new OrderStateUtils(mockBalanceFetcher, mockOrderFilledFetcher); - const orderState = await orderStateUtils.getOpenOrderStateAsync(signedOrder); - expect(orderState.isValid).to.eq(false); - }); - it('should be invalid when an order is cancelled', async () => { - const makerAssetAmount = new BigNumber(1000); - const takerAssetAmount = new BigNumber(2); - const takerBalance = takerAssetAmount; - const orderFilledAmount = new BigNumber(0); - const isCancelled = true; - const mockBalanceFetcher = buildMockBalanceFetcher(takerBalance); - const mockOrderFilledFetcher = buildMockOrderFilledFetcher(orderFilledAmount, isCancelled); - const [signedOrder] = testOrderFactory.generateTestSignedOrders( - { - makerAssetAmount, - takerAssetAmount, - }, - 1, - ); - - const orderStateUtils = new OrderStateUtils(mockBalanceFetcher, mockOrderFilledFetcher); - const orderState = await orderStateUtils.getOpenOrderStateAsync(signedOrder); - expect(orderState.isValid).to.eq(false); - }); - it('should be invalid when an order is fully filled', async () => { - const makerAssetAmount = new BigNumber(1000); - const takerAssetAmount = new BigNumber(2); - const takerBalance = takerAssetAmount; - const orderFilledAmount = takerAssetAmount; - const isCancelled = false; - const mockBalanceFetcher = buildMockBalanceFetcher(takerBalance); - const mockOrderFilledFetcher = buildMockOrderFilledFetcher(orderFilledAmount, isCancelled); - const [signedOrder] = testOrderFactory.generateTestSignedOrders( - { - makerAssetAmount, - takerAssetAmount, - }, - 1, - ); - - const orderStateUtils = new OrderStateUtils(mockBalanceFetcher, mockOrderFilledFetcher); - const orderState = await orderStateUtils.getOpenOrderStateAsync(signedOrder); - expect(orderState.isValid).to.eq(false); - }); - it('should include the transactionHash in orderState if supplied in method invocation', async () => { - const makerAssetAmount = new BigNumber(10); - const takerAssetAmount = new BigNumber(10000000000000000); - const takerBalance = takerAssetAmount; - const orderFilledAmount = new BigNumber(0); - const mockBalanceFetcher = buildMockBalanceFetcher(takerBalance); - const mockOrderFilledFetcher = buildMockOrderFilledFetcher(orderFilledAmount); - const [signedOrder] = testOrderFactory.generateTestSignedOrders( - { - makerAssetAmount, - takerAssetAmount, - }, - 1, - ); - - const orderStateUtils = new OrderStateUtils(mockBalanceFetcher, mockOrderFilledFetcher); - const transactionHash = '0xdeadbeef'; - const orderState = await orderStateUtils.getOpenOrderStateAsync(signedOrder, transactionHash); - expect(orderState.transactionHash).to.eq(transactionHash); - }); - }); -}); diff --git a/packages/order-utils/test/order_validation_utils_test.ts b/packages/order-utils/test/order_validation_utils_test.ts deleted file mode 100644 index d4d12a6a7f..0000000000 --- a/packages/order-utils/test/order_validation_utils_test.ts +++ /dev/null @@ -1,70 +0,0 @@ -import { BigNumber } from '@0x/utils'; -import * as chai from 'chai'; -import 'mocha'; - -import { OrderValidationUtils } from '../src/order_validation_utils'; - -import { chaiSetup } from './utils/chai_setup'; - -chaiSetup.configure(); -const expect = chai.expect; - -describe('OrderValidationUtils', () => { - describe('#isRoundingError', () => { - it('should return false if there is a rounding error of 0.1%', async () => { - const numerator = new BigNumber(20); - const denominator = new BigNumber(999); - const target = new BigNumber(50); - // rounding error = ((20*50/999) - floor(20*50/999)) / (20*50/999) = 0.1% - const isRoundingError = OrderValidationUtils.isRoundingErrorFloor(numerator, denominator, target); - expect(isRoundingError).to.be.false(); - }); - - it('should return false if there is a rounding of 0.09%', async () => { - const numerator = new BigNumber(20); - const denominator = new BigNumber(9991); - const target = new BigNumber(500); - // rounding error = ((20*500/9991) - floor(20*500/9991)) / (20*500/9991) = 0.09% - const isRoundingError = OrderValidationUtils.isRoundingErrorFloor(numerator, denominator, target); - expect(isRoundingError).to.be.false(); - }); - - it('should return true if there is a rounding error of 0.11%', async () => { - const numerator = new BigNumber(20); - const denominator = new BigNumber(9989); - const target = new BigNumber(500); - // rounding error = ((20*500/9989) - floor(20*500/9989)) / (20*500/9989) = 0.011% - const isRoundingError = OrderValidationUtils.isRoundingErrorFloor(numerator, denominator, target); - expect(isRoundingError).to.be.true(); - }); - - it('should return true if there is a rounding error > 0.1%', async () => { - const numerator = new BigNumber(3); - const denominator = new BigNumber(7); - const target = new BigNumber(10); - // rounding error = ((3*10/7) - floor(3*10/7)) / (3*10/7) = 6.67% - const isRoundingError = OrderValidationUtils.isRoundingErrorFloor(numerator, denominator, target); - expect(isRoundingError).to.be.true(); - }); - - it('should return false when there is no rounding error', async () => { - const numerator = new BigNumber(1); - const denominator = new BigNumber(2); - const target = new BigNumber(10); - - const isRoundingError = OrderValidationUtils.isRoundingErrorFloor(numerator, denominator, target); - expect(isRoundingError).to.be.false(); - }); - - it('should return false when there is rounding error <= 0.1%', async () => { - // randomly generated numbers - const numerator = new BigNumber(76564); - const denominator = new BigNumber(676373677); - const target = new BigNumber(105762562); - // rounding error = ((76564*105762562/676373677) - floor(76564*105762562/676373677)) / - // (76564*105762562/676373677) = 0.0007% - const isRoundingError = OrderValidationUtils.isRoundingErrorFloor(numerator, denominator, target); - expect(isRoundingError).to.be.false(); - }); - }); -}); diff --git a/packages/orderbook/CHANGELOG.json b/packages/orderbook/CHANGELOG.json index adb8c546a0..a994d473c0 100644 --- a/packages/orderbook/CHANGELOG.json +++ b/packages/orderbook/CHANGELOG.json @@ -1,12 +1,13 @@ [ { - "version": "1.0.0-beta.0", + "version": "0.1.0-beta.1", "changes": [ { "note": "All references to network ID have been removed, and references to chain ID have been introduced instead", "pr": 2313 } - ] + ], + "timestamp": 1573159180 }, { "version": "0.1.0-beta.0", diff --git a/packages/orderbook/CHANGELOG.md b/packages/orderbook/CHANGELOG.md index 9f5e9d1237..460d9ca387 100644 --- a/packages/orderbook/CHANGELOG.md +++ b/packages/orderbook/CHANGELOG.md @@ -5,6 +5,10 @@ Edit the package's CHANGELOG.json file only. CHANGELOG +## v0.1.0-beta.1 - _November 7, 2019_ + + * All references to network ID have been removed, and references to chain ID have been introduced instead (#2313) + ## v0.1.0-beta.0 - _October 3, 2019_ * Dependencies updated diff --git a/packages/orderbook/package.json b/packages/orderbook/package.json index d559ff82d4..93ec135b50 100644 --- a/packages/orderbook/package.json +++ b/packages/orderbook/package.json @@ -1,6 +1,6 @@ { "name": "@0x/orderbook", - "version": "0.1.0-beta.0", + "version": "0.1.0-beta.1", "description": "Library for retrieving and syncing a remote orderbook locally", "main": "lib/src/index.js", "types": "lib/src/index.d.ts", @@ -29,8 +29,8 @@ "author": "Jacob Evans", "license": "Apache-2.0", "devDependencies": { - "@0x/tslint-config": "^3.0.1", - "@0x/types": "^2.5.0-beta.0", + "@0x/tslint-config": "^3.1.0-beta.1", + "@0x/types": "^2.5.0-beta.1", "@types/jest": "^24.0.17", "@types/sinon": "^2.2.2", "@types/websocket": "^0.0.39", @@ -41,10 +41,10 @@ "typescript": "3.0.1" }, "dependencies": { - "@0x/assert": "^2.2.0-beta.0", - "@0x/connect": "^5.1.0-beta.0", + "@0x/assert": "^2.2.0-beta.1", + "@0x/connect": "^5.1.0-beta.1", "@0x/mesh-rpc-client": "^4.0.1-beta", - "@0x/order-utils": "^8.5.0-beta.0", - "@0x/utils": "^4.6.0-beta.0" + "@0x/order-utils": "^8.5.0-beta.1", + "@0x/utils": "^4.6.0-beta.1" } } diff --git a/packages/orderbook/src/order_provider/base_sra_order_provider.ts b/packages/orderbook/src/order_provider/base_sra_order_provider.ts index 16d0c68d84..0aa2c37ed9 100644 --- a/packages/orderbook/src/order_provider/base_sra_order_provider.ts +++ b/packages/orderbook/src/order_provider/base_sra_order_provider.ts @@ -10,17 +10,15 @@ export const PER_PAGE_DEFAULT = 100; export abstract class BaseSRAOrderProvider extends BaseOrderProvider { protected readonly _httpClient: HttpClient; - protected readonly _chainId?: number; protected readonly _perPage: number; /** * This is an internal class for Websocket and Polling Order Providers */ - constructor(orderStore: OrderStore, httpEndpoint: string, perPage: number = PER_PAGE_DEFAULT, chainId?: number) { + constructor(orderStore: OrderStore, httpEndpoint: string, perPage: number = PER_PAGE_DEFAULT) { super(orderStore); this._httpClient = new HttpClient(httpEndpoint); this._perPage = perPage; - this._chainId = chainId; } /** @@ -30,7 +28,6 @@ export abstract class BaseSRAOrderProvider extends BaseOrderProvider { public async getAvailableAssetDatasAsync(): Promise { const requestOpts = { perPage: this._perPage, - chainId: this._chainId, }; let recordsToReturn: AssetPairsItem[] = []; @@ -60,7 +57,7 @@ export abstract class BaseSRAOrderProvider extends BaseOrderProvider { const rejected: RejectedOrder[] = []; for (const order of orders) { try { - await this._httpClient.submitOrderAsync(order, { chainId: this._chainId }); + await this._httpClient.submitOrderAsync(order); accepted.push(order); } catch (e) { rejected.push({ order, message: e.message }); @@ -83,7 +80,6 @@ export abstract class BaseSRAOrderProvider extends BaseOrderProvider { makerAssetData, takerAssetData, perPage: this._perPage, - chainId: this._chainId, }; let hasMorePages = true; diff --git a/packages/orderbook/src/order_provider/sra_polling_order_provider.ts b/packages/orderbook/src/order_provider/sra_polling_order_provider.ts index c60fd78797..a3f6ab2f57 100644 --- a/packages/orderbook/src/order_provider/sra_polling_order_provider.ts +++ b/packages/orderbook/src/order_provider/sra_polling_order_provider.ts @@ -18,7 +18,7 @@ export class SRAPollingOrderProvider extends BaseSRAOrderProvider { * @param orderStore The `OrderStore` where orders are added and removed from */ constructor(opts: SRAPollingOrderProviderOpts, orderStore: OrderStore) { - super(orderStore, opts.httpEndpoint, opts.perPage, opts.chainId); + super(orderStore, opts.httpEndpoint, opts.perPage); assert.isNumber('pollingIntervalMs', opts.pollingIntervalMs); this._pollingIntervalMs = opts.pollingIntervalMs; } diff --git a/packages/orderbook/src/order_provider/sra_websocket_order_provider.ts b/packages/orderbook/src/order_provider/sra_websocket_order_provider.ts index 80fe81e02b..f54c855e43 100644 --- a/packages/orderbook/src/order_provider/sra_websocket_order_provider.ts +++ b/packages/orderbook/src/order_provider/sra_websocket_order_provider.ts @@ -28,7 +28,7 @@ export class SRAWebsocketOrderProvider extends BaseSRAOrderProvider { * @param orderStore The `OrderStore` where orders are added and removed from */ constructor(opts: SRAWebsocketOrderProviderOpts, orderStore: OrderStore) { - super(orderStore, opts.httpEndpoint, PER_PAGE_DEFAULT, opts.chainId); + super(orderStore, opts.httpEndpoint, PER_PAGE_DEFAULT); assert.isUri('websocketEndpoint', opts.websocketEndpoint); this._websocketEndpoint = opts.websocketEndpoint; } diff --git a/packages/orderbook/src/types.ts b/packages/orderbook/src/types.ts index b7e68bbfe1..2b1074a71f 100644 --- a/packages/orderbook/src/types.ts +++ b/packages/orderbook/src/types.ts @@ -26,8 +26,6 @@ export interface SRAWebsocketOrderProviderOpts { httpEndpoint: string; // The websocket endpoint to the SRA service, e.g wss://ws.sra.0x.org/ websocketEndpoint: string; - // The chain Id - chainId?: number; } /** diff --git a/packages/sol-compiler/CHANGELOG.json b/packages/sol-compiler/CHANGELOG.json index 46563b5ec8..fa0caa14b7 100644 --- a/packages/sol-compiler/CHANGELOG.json +++ b/packages/sol-compiler/CHANGELOG.json @@ -1,12 +1,22 @@ [ { - "version": "4.0.0-beta.0", + "version": "3.2.0-beta.2", + "changes": [ + { + "note": "Add `shouldSaveStandardInput` config", + "pr": 2322 + } + ] + }, + { + "version": "3.2.0-beta.1", "changes": [ { "note": "Output artifacts now include a 'chains' attribute rather than 'networks'", "pr": 2313 } - ] + ], + "timestamp": 1573159180 }, { "version": "3.2.0-beta.0", diff --git a/packages/sol-compiler/CHANGELOG.md b/packages/sol-compiler/CHANGELOG.md index d848c556b2..31bcc8e965 100644 --- a/packages/sol-compiler/CHANGELOG.md +++ b/packages/sol-compiler/CHANGELOG.md @@ -5,6 +5,10 @@ Edit the package's CHANGELOG.json file only. CHANGELOG +## v3.2.0-beta.1 - _November 7, 2019_ + + * Output artifacts now include a 'chains' attribute rather than 'networks' (#2313) + ## v3.2.0-beta.0 - _October 3, 2019_ * Convert `getContractNamesToCompile` to public function of `Compiler` class (#2055) diff --git a/packages/sol-compiler/docs/reference.mdx b/packages/sol-compiler/docs/reference.mdx index 3219d48829..cecbf00faf 100644 --- a/packages/sol-compiler/docs/reference.mdx +++ b/packages/sol-compiler/docs/reference.mdx @@ -1,81 +1,7 @@ -# Class: Compiler - -The Compiler facilitates compiling Solidity smart contracts and saves the results -to artifact files. - - -## Constructors - - - -\+ **new Compiler**(`opts?`: [CompilerOptions](#interface-compileroptions)): *[Compiler](#class-compiler)* - -*Defined in [sol-compiler/src/compiler.ts:94](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/sol-compiler/src/compiler.ts#L94)* - -Instantiates a new instance of the Compiler class. - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`opts?` | [CompilerOptions](#interface-compileroptions) | Optional compiler options | - -**Returns:** *[Compiler](#class-compiler)* - -An instance of the Compiler class. - -## Methods - -### compileAsync - -▸ **compileAsync**(): *`Promise`* - -*Defined in [sol-compiler/src/compiler.ts:132](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/sol-compiler/src/compiler.ts#L132)* - -Compiles selected Solidity files found in `contractsDir` and writes JSON artifacts to `artifactsDir`. - -**Returns:** *`Promise`* - -___ - -### getCompilerOutputsAsync - -▸ **getCompilerOutputsAsync**(): *`Promise`* - -*Defined in [sol-compiler/src/compiler.ts:145](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/sol-compiler/src/compiler.ts#L145)* - -Compiles Solidity files specified during instantiation, and returns the -compiler output given by solc. Return value is an array of outputs: -Solidity modules are batched together by version required, and each -element of the returned array corresponds to a compiler version, and -each element contains the output for all of the modules compiled with -that version. - -**Returns:** *`Promise`* - -___ - -### getContractNamesToCompile - -▸ **getContractNamesToCompile**(): *string[]* -*Defined in [sol-compiler/src/compiler.ts:186](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/sol-compiler/src/compiler.ts#L186)* -Gets a list of contracts to compile. - -**Returns:** *string[]* - -___ -### watchAsync -▸ **watchAsync**(): *`Promise`* - -*Defined in [sol-compiler/src/compiler.ts:149](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/sol-compiler/src/compiler.ts#L149)* - -**Returns:** *`Promise`* - -
@@ -84,6 +10,7 @@ ___ +
@@ -110,6 +37,7 @@ useDockerisedSolc: If set to true - sol-compiler will try calling a dockerized i isOfflineMode: If set to true - sol-compiler will not fetch the list of solc releases from github. It will use the hardcoded list. Defaults to false. solcVersion: If you don't want to compile each contract with the Solidity version specified in-file, you can force all contracts to compile with the the version specified here. +shouldSaveStandardInput: Write the standard JSON input in ${contractsDir}/${contractName}.input.json ## Properties @@ -118,7 +46,7 @@ contracts to compile with the the version specified here. • **artifactsDir**? : *undefined | string* -*Defined in [ethereum-types/src/index.ts:731](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L731)* +*Defined in [ethereum-types/src/index.ts:732](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L732)* ___ @@ -126,7 +54,7 @@ ___ • **compilerSettings**? : *[CompilerSettings](#class-compilersettings)* -*Defined in [ethereum-types/src/index.ts:732](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L732)* +*Defined in [ethereum-types/src/index.ts:733](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L733)* ___ @@ -134,7 +62,7 @@ ___ • **contracts**? : *string[] | "*"* -*Defined in [ethereum-types/src/index.ts:733](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L733)* +*Defined in [ethereum-types/src/index.ts:734](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L734)* ___ @@ -142,7 +70,7 @@ ___ • **contractsDir**? : *undefined | string* -*Defined in [ethereum-types/src/index.ts:730](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L730)* +*Defined in [ethereum-types/src/index.ts:731](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L731)* ___ @@ -150,7 +78,15 @@ ___ • **isOfflineMode**? : *undefined | false | true* -*Defined in [ethereum-types/src/index.ts:735](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L735)* +*Defined in [ethereum-types/src/index.ts:736](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L736)* + +___ + +### `Optional` shouldSaveStandardInput + +• **shouldSaveStandardInput**? : *undefined | false | true* + +*Defined in [ethereum-types/src/index.ts:738](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L738)* ___ @@ -158,7 +94,7 @@ ___ • **solcVersion**? : *undefined | string* -*Defined in [ethereum-types/src/index.ts:736](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L736)* +*Defined in [ethereum-types/src/index.ts:737](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L737)* ___ @@ -166,7 +102,7 @@ ___ • **useDockerisedSolc**? : *undefined | false | true* -*Defined in [ethereum-types/src/index.ts:734](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L734)* +*Defined in [ethereum-types/src/index.ts:735](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L735)*
@@ -181,7 +117,7 @@ ___ • **evmVersion**? : *"homestead" | "tangerineWhistle" | "spuriousDragon" | "byzantium" | "constantinople"* -*Defined in [ethereum-types/src/index.ts:689](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L689)* +*Defined in [ethereum-types/src/index.ts:689](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L689)* ___ @@ -189,7 +125,7 @@ ___ • **libraries**? : *undefined | object* -*Defined in [ethereum-types/src/index.ts:691](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L691)* +*Defined in [ethereum-types/src/index.ts:691](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L691)* ___ @@ -197,7 +133,7 @@ ___ • **metadata**? : *[CompilerSettingsMetadata](#class-compilersettingsmetadata)* -*Defined in [ethereum-types/src/index.ts:690](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L690)* +*Defined in [ethereum-types/src/index.ts:690](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L690)* ___ @@ -205,7 +141,7 @@ ___ • **optimizer**? : *[OptimizerSettings](#class-optimizersettings)* -*Defined in [ethereum-types/src/index.ts:688](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L688)* +*Defined in [ethereum-types/src/index.ts:688](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L688)* ___ @@ -213,7 +149,7 @@ ___ • **outputSelection**: *object* -*Defined in [ethereum-types/src/index.ts:696](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L696)* +*Defined in [ethereum-types/src/index.ts:696](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L696)* #### Type declaration: @@ -227,7 +163,7 @@ ___ • **remappings**? : *string[]* -*Defined in [ethereum-types/src/index.ts:687](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L687)* +*Defined in [ethereum-types/src/index.ts:687](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L687)*
@@ -240,7 +176,7 @@ ___ • **useLiteralContent**: *true* -*Defined in [ethereum-types/src/index.ts:704](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L704)* +*Defined in [ethereum-types/src/index.ts:704](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L704)*
@@ -253,7 +189,7 @@ ___ • **inputs**: *[DataItem](#class-dataitem)[]* -*Defined in [ethereum-types/src/index.ts:103](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L103)* +*Defined in [ethereum-types/src/index.ts:103](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L103)* ___ @@ -261,7 +197,7 @@ ___ • **payable**: *boolean* -*Defined in [ethereum-types/src/index.ts:104](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L104)* +*Defined in [ethereum-types/src/index.ts:104](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L104)* ___ @@ -269,7 +205,7 @@ ___ • **stateMutability**: *[ConstructorStateMutability](#constructorstatemutability)* -*Defined in [ethereum-types/src/index.ts:105](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L105)* +*Defined in [ethereum-types/src/index.ts:105](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L105)* ___ @@ -277,7 +213,7 @@ ___ • **type**: *string* -*Defined in [ethereum-types/src/index.ts:102](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L102)* +*Defined in [ethereum-types/src/index.ts:102](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L102)*
@@ -296,7 +232,7 @@ ___ • **components**? : *[DataItem](#class-dataitem)[]* -*Defined in [ethereum-types/src/index.ts:137](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L137)* +*Defined in [ethereum-types/src/index.ts:137](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L137)* ___ @@ -304,7 +240,7 @@ ___ • **name**: *string* -*Defined in [ethereum-types/src/index.ts:135](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L135)* +*Defined in [ethereum-types/src/index.ts:135](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L135)* ___ @@ -312,7 +248,7 @@ ___ • **type**: *string* -*Defined in [ethereum-types/src/index.ts:136](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L136)* +*Defined in [ethereum-types/src/index.ts:136](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L136)*
@@ -329,7 +265,7 @@ ___ • **author**? : *undefined | string* -*Defined in [ethereum-types/src/index.ts:628](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L628)* +*Defined in [ethereum-types/src/index.ts:628](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L628)* ___ @@ -337,7 +273,7 @@ ___ • **methods**: *object* -*Defined in [ethereum-types/src/index.ts:629](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L629)* +*Defined in [ethereum-types/src/index.ts:629](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L629)* #### Type declaration: @@ -349,7 +285,7 @@ ___ • **title**? : *undefined | string* -*Defined in [ethereum-types/src/index.ts:627](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L627)* +*Defined in [ethereum-types/src/index.ts:627](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L627)*
@@ -364,7 +300,7 @@ ___ • **anonymous**: *boolean* -*Defined in [ethereum-types/src/index.ts:131](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L131)* +*Defined in [ethereum-types/src/index.ts:131](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L131)* ___ @@ -372,7 +308,7 @@ ___ • **inputs**: *[EventParameter](#class-eventparameter)[]* -*Defined in [ethereum-types/src/index.ts:130](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L130)* +*Defined in [ethereum-types/src/index.ts:130](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L130)* ___ @@ -380,7 +316,7 @@ ___ • **name**: *string* -*Defined in [ethereum-types/src/index.ts:129](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L129)* +*Defined in [ethereum-types/src/index.ts:129](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L129)* ___ @@ -388,7 +324,7 @@ ___ • **type**: *string* -*Defined in [ethereum-types/src/index.ts:128](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L128)* +*Defined in [ethereum-types/src/index.ts:128](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L128)*
@@ -403,7 +339,7 @@ ___ *Inherited from [DataItem](#interface-dataitem).[components](#optional-components)* -*Defined in [ethereum-types/src/index.ts:137](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L137)* +*Defined in [ethereum-types/src/index.ts:137](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L137)* ___ @@ -411,7 +347,7 @@ ___ • **indexed**: *boolean* -*Defined in [ethereum-types/src/index.ts:116](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L116)* +*Defined in [ethereum-types/src/index.ts:116](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L116)* ___ @@ -421,7 +357,7 @@ ___ *Inherited from [DataItem](#interface-dataitem).[name](#name)* -*Defined in [ethereum-types/src/index.ts:135](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L135)* +*Defined in [ethereum-types/src/index.ts:135](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L135)* ___ @@ -431,7 +367,7 @@ ___ *Inherited from [DataItem](#interface-dataitem).[type](#type)* -*Defined in [ethereum-types/src/index.ts:136](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L136)* +*Defined in [ethereum-types/src/index.ts:136](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L136)*
@@ -444,7 +380,7 @@ ___ • **object**: *string* -*Defined in [ethereum-types/src/index.ts:622](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L622)* +*Defined in [ethereum-types/src/index.ts:622](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L622)* ___ @@ -452,7 +388,7 @@ ___ • **sourceMap**: *string* -*Defined in [ethereum-types/src/index.ts:623](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L623)* +*Defined in [ethereum-types/src/index.ts:623](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L623)*
@@ -465,7 +401,7 @@ ___ • **bytecode**: *[EvmBytecodeOutput](#class-evmbytecodeoutput)* -*Defined in [ethereum-types/src/index.ts:617](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L617)* +*Defined in [ethereum-types/src/index.ts:617](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L617)* ___ @@ -473,7 +409,7 @@ ___ • **deployedBytecode**: *[EvmBytecodeOutput](#class-evmbytecodeoutput)* -*Defined in [ethereum-types/src/index.ts:618](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L618)* +*Defined in [ethereum-types/src/index.ts:618](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L618)*
@@ -486,7 +422,7 @@ ___ • **payable**: *boolean* -*Defined in [ethereum-types/src/index.ts:112](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L112)* +*Defined in [ethereum-types/src/index.ts:112](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L112)* ___ @@ -494,13 +430,90 @@ ___ • **type**: *string* -*Defined in [ethereum-types/src/index.ts:111](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L111)* +*Defined in [ethereum-types/src/index.ts:111](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L111)*
+# Class: Compiler +The Compiler facilitates compiling Solidity smart contracts and saves the results +to artifact files. + + +## Constructors + + + +\+ **new Compiler**(`opts?`: [CompilerOptions](#interface-compileroptions)): *[Compiler](#class-compiler)* + +*Defined in [sol-compiler/src/compiler.ts:100](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/sol-compiler/src/compiler.ts#L100)* + +Instantiates a new instance of the Compiler class. + +**Parameters:** + +Name | Type | Description | +------ | ------ | ------ | +`opts?` | [CompilerOptions](#interface-compileroptions) | Optional compiler options | + +**Returns:** *[Compiler](#class-compiler)* + +An instance of the Compiler class. + +## Methods + +### compileAsync + +▸ **compileAsync**(): *`Promise`* + +*Defined in [sol-compiler/src/compiler.ts:143](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/sol-compiler/src/compiler.ts#L143)* + +Compiles selected Solidity files found in `contractsDir` and writes JSON artifacts to `artifactsDir`. + +**Returns:** *`Promise`* + +___ + +### getCompilerOutputsAsync + +▸ **getCompilerOutputsAsync**(): *`Promise`* + +*Defined in [sol-compiler/src/compiler.ts:156](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/sol-compiler/src/compiler.ts#L156)* + +Compiles Solidity files specified during instantiation, and returns the +compiler output given by solc. Return value is an array of outputs: +Solidity modules are batched together by version required, and each +element of the returned array corresponds to a compiler version, and +each element contains the output for all of the modules compiled with +that version. + +**Returns:** *`Promise`* + +___ + +### getContractNamesToCompile + +▸ **getContractNamesToCompile**(): *string[]* + +*Defined in [sol-compiler/src/compiler.ts:197](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/sol-compiler/src/compiler.ts#L197)* + +Gets a list of contracts to compile. + +**Returns:** *string[]* + +___ + +### watchAsync + +▸ **watchAsync**(): *`Promise`* + +*Defined in [sol-compiler/src/compiler.ts:160](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/sol-compiler/src/compiler.ts#L160)* + +**Returns:** *`Promise`* + +
@@ -525,7 +538,7 @@ ___ • **constant**: *boolean* -*Defined in [ethereum-types/src/index.ts:94](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L94)* +*Defined in [ethereum-types/src/index.ts:94](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L94)* ___ @@ -533,7 +546,7 @@ ___ • **inputs**: *[DataItem](#class-dataitem)[]* -*Defined in [ethereum-types/src/index.ts:92](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L92)* +*Defined in [ethereum-types/src/index.ts:92](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L92)* ___ @@ -541,7 +554,7 @@ ___ • **name**: *string* -*Defined in [ethereum-types/src/index.ts:91](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L91)* +*Defined in [ethereum-types/src/index.ts:91](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L91)* ___ @@ -549,7 +562,7 @@ ___ • **outputs**: *[DataItem](#class-dataitem)[]* -*Defined in [ethereum-types/src/index.ts:93](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L93)* +*Defined in [ethereum-types/src/index.ts:93](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L93)* ___ @@ -557,7 +570,7 @@ ___ • **payable**: *boolean* -*Defined in [ethereum-types/src/index.ts:96](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L96)* +*Defined in [ethereum-types/src/index.ts:96](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L96)* ___ @@ -565,7 +578,7 @@ ___ • **stateMutability**: *[StateMutability](#statemutability)* -*Defined in [ethereum-types/src/index.ts:95](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L95)* +*Defined in [ethereum-types/src/index.ts:95](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L95)* ___ @@ -573,7 +586,7 @@ ___ • **type**: *string* -*Defined in [ethereum-types/src/index.ts:90](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L90)* +*Defined in [ethereum-types/src/index.ts:90](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L90)*
@@ -586,7 +599,7 @@ ___ • **enabled**: *boolean* -*Defined in [ethereum-types/src/index.ts:708](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L708)* +*Defined in [ethereum-types/src/index.ts:708](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L708)* ___ @@ -594,7 +607,7 @@ ___ • **runs**? : *undefined | number* -*Defined in [ethereum-types/src/index.ts:709](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L709)* +*Defined in [ethereum-types/src/index.ts:709](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L709)*
@@ -611,7 +624,7 @@ ___ • **arguments**? : *[DataItem](#class-dataitem)[]* -*Defined in [ethereum-types/src/index.ts:122](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L122)* +*Defined in [ethereum-types/src/index.ts:122](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L122)* ___ @@ -619,7 +632,7 @@ ___ • **name**: *string* -*Defined in [ethereum-types/src/index.ts:121](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L121)* +*Defined in [ethereum-types/src/index.ts:121](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L121)* ___ @@ -627,7 +640,7 @@ ___ • **type**: *"error"* -*Defined in [ethereum-types/src/index.ts:120](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L120)* +*Defined in [ethereum-types/src/index.ts:120](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L120)*
@@ -640,7 +653,7 @@ ___ • **component**: *"general" | "ewasm"* -*Defined in [ethereum-types/src/index.ts:604](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L604)* +*Defined in [ethereum-types/src/index.ts:604](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L604)* ___ @@ -648,7 +661,7 @@ ___ • **formattedMessage**? : *undefined | string* -*Defined in [ethereum-types/src/index.ts:607](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L607)* +*Defined in [ethereum-types/src/index.ts:607](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L607)* ___ @@ -656,7 +669,7 @@ ___ • **message**: *string* -*Defined in [ethereum-types/src/index.ts:606](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L606)* +*Defined in [ethereum-types/src/index.ts:606](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L606)* ___ @@ -664,7 +677,7 @@ ___ • **severity**: *[ErrorSeverity](#errorseverity)* -*Defined in [ethereum-types/src/index.ts:605](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L605)* +*Defined in [ethereum-types/src/index.ts:605](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L605)* ___ @@ -672,7 +685,7 @@ ___ • **sourceLocation**? : *[SourceLocation](#class-sourcelocation)* -*Defined in [ethereum-types/src/index.ts:602](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L602)* +*Defined in [ethereum-types/src/index.ts:602](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L602)* ___ @@ -680,7 +693,7 @@ ___ • **type**: *[ErrorType](#errortype)* -*Defined in [ethereum-types/src/index.ts:603](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L603)* +*Defined in [ethereum-types/src/index.ts:603](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L603)*
@@ -697,7 +710,7 @@ ___ • **abi**: *[ContractAbi](#contractabi)* -*Defined in [ethereum-types/src/index.ts:564](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L564)* +*Defined in [ethereum-types/src/index.ts:564](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L564)* ___ @@ -705,7 +718,7 @@ ___ • **devdoc**? : *[DevdocOutput](#class-devdocoutput)* -*Defined in [ethereum-types/src/index.ts:566](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L566)* +*Defined in [ethereum-types/src/index.ts:566](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L566)* ___ @@ -713,7 +726,7 @@ ___ • **evm**: *[EvmOutput](#class-evmoutput)* -*Defined in [ethereum-types/src/index.ts:565](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L565)* +*Defined in [ethereum-types/src/index.ts:565](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L565)*
@@ -726,7 +739,7 @@ ___ • **contracts**: *object* -*Defined in [ethereum-types/src/index.ts:578](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L578)* +*Defined in [ethereum-types/src/index.ts:578](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L578)* #### Type declaration: @@ -740,7 +753,7 @@ ___ • **errors**: *[SolcError](#class-solcerror)[]* -*Defined in [ethereum-types/src/index.ts:570](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L570)* +*Defined in [ethereum-types/src/index.ts:570](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L570)* ___ @@ -748,7 +761,7 @@ ___ • **sources**: *object* -*Defined in [ethereum-types/src/index.ts:571](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L571)* +*Defined in [ethereum-types/src/index.ts:571](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L571)* #### Type declaration: @@ -779,7 +792,7 @@ ___ *Overrides [DataItem](_ethereum_types_src_index_.dataitem.md).[components](#optional-components)* -*Defined in [ethereum-types/src/index.ts:141](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L141)* +*Defined in [ethereum-types/src/index.ts:141](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L141)* ___ @@ -789,7 +802,7 @@ ___ *Inherited from [DataItem](#interface-dataitem).[name](#name)* -*Defined in [ethereum-types/src/index.ts:135](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L135)* +*Defined in [ethereum-types/src/index.ts:135](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L135)* ___ @@ -799,7 +812,7 @@ ___ *Inherited from [DataItem](#interface-dataitem).[type](#type)* -*Defined in [ethereum-types/src/index.ts:136](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L136)* +*Defined in [ethereum-types/src/index.ts:136](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L136)*
@@ -824,7 +837,7 @@ ___ Ƭ **AbiDefinition**: *[FunctionAbi](_ethereum_types_src_index_.md#functionabi) | [EventAbi](#interface-eventabi) | [RevertErrorAbi](#interface-reverterrorabi)* -*Defined in [ethereum-types/src/index.ts:80](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L80)* +*Defined in [ethereum-types/src/index.ts:80](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L80)* ___ @@ -834,7 +847,7 @@ ___ Ƭ **ConstructorStateMutability**: *"nonpayable" | "payable"* -*Defined in [ethereum-types/src/index.ts:84](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L84)* +*Defined in [ethereum-types/src/index.ts:84](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L84)* ___ @@ -842,7 +855,7 @@ ___ Ƭ **ContractAbi**: *[AbiDefinition](#abidefinition)[]* -*Defined in [ethereum-types/src/index.ts:78](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L78)* +*Defined in [ethereum-types/src/index.ts:78](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L78)* ___ @@ -856,7 +869,7 @@ ___ Ƭ **ErrorSeverity**: *"error" | "warning"* -*Defined in [ethereum-types/src/index.ts:599](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L599)* +*Defined in [ethereum-types/src/index.ts:599](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L599)* ___ @@ -864,7 +877,7 @@ ___ Ƭ **ErrorType**: *"JSONError" | "IOError" | "ParserError" | "DocstringParsingError" | "SyntaxError" | "DeclarationError" | "TypeError" | "UnimplementedFeatureError" | "InternalCompilerError" | "Exception" | "CompilerError" | "FatalError" | "Warning"* -*Defined in [ethereum-types/src/index.ts:585](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L585)* +*Defined in [ethereum-types/src/index.ts:585](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L585)* ___ @@ -872,7 +885,7 @@ ___ Ƭ **FunctionAbi**: *[MethodAbi](#interface-methodabi) | [ConstructorAbi](#interface-constructorabi) | [FallbackAbi](#interface-fallbackabi)* -*Defined in [ethereum-types/src/index.ts:82](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L82)* +*Defined in [ethereum-types/src/index.ts:82](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L82)* ___ @@ -884,7 +897,7 @@ ___ Ƭ **OutputField**: *"*" | "ast" | "legacyAST" | "abi" | "devdoc" | "userdoc" | "metadata" | "ir" | "evm.assembly" | "evm.legacyAssembly" | "evm.bytecode.object" | "evm.bytecode.opcodes" | "evm.bytecode.sourceMap" | "evm.bytecode.linkReferences" | "evm.deployedBytecode.object" | "evm.deployedBytecode.opcodes" | "evm.deployedBytecode.sourceMap" | "evm.deployedBytecode.linkReferences" | "evm.methodIdentifiers" | "evm.gasEstimates" | "ewasm.wast" | "ewasm.wasm"* -*Defined in [ethereum-types/src/index.ts:525](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L525)* +*Defined in [ethereum-types/src/index.ts:525](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L525)* ___ @@ -892,7 +905,7 @@ ___ Ƭ **ParamDescription**: *string* -*Defined in [ethereum-types/src/index.ts:561](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L561)* +*Defined in [ethereum-types/src/index.ts:561](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L561)* ___ @@ -902,7 +915,7 @@ ___ Ƭ **StateMutability**: *"pure" | "view" | [ConstructorStateMutability](#constructorstatemutability)* -*Defined in [ethereum-types/src/index.ts:85](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L85)* +*Defined in [ethereum-types/src/index.ts:85](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L85)* ___ @@ -914,7 +927,3 @@ ___ - - -
- diff --git a/packages/sol-compiler/package.json b/packages/sol-compiler/package.json index 909976284d..f37bfba5a4 100644 --- a/packages/sol-compiler/package.json +++ b/packages/sol-compiler/package.json @@ -1,6 +1,6 @@ { "name": "@0x/sol-compiler", - "version": "3.2.0-beta.0", + "version": "3.2.0-beta.1", "engines": { "node": ">=6.12" }, @@ -46,9 +46,9 @@ }, "homepage": "https://github.com/0xProject/0x-monorepo/packages/sol-compiler/README.md", "devDependencies": { - "@0x/dev-utils": "^2.4.0-beta.0", + "@0x/dev-utils": "^2.4.0-beta.1", "@0x/ts-doc-gen": "^0.0.22", - "@0x/tslint-config": "^3.0.1", + "@0x/tslint-config": "^3.1.0-beta.1", "@types/mkdirp": "^0.5.2", "@types/mocha": "^5.2.7", "@types/pluralize": "^0.0.29", @@ -74,17 +74,17 @@ "zeppelin-solidity": "1.8.0" }, "dependencies": { - "@0x/assert": "^2.2.0-beta.0", - "@0x/json-schemas": "^4.1.0-beta.0", - "@0x/sol-resolver": "^2.1.0-beta.0", - "@0x/types": "^2.5.0-beta.0", - "@0x/typescript-typings": "^4.4.0-beta.0", - "@0x/utils": "^4.6.0-beta.0", - "@0x/web3-wrapper": "^6.1.0-beta.0", + "@0x/assert": "^2.2.0-beta.1", + "@0x/json-schemas": "^4.1.0-beta.1", + "@0x/sol-resolver": "^2.1.0-beta.1", + "@0x/types": "^2.5.0-beta.1", + "@0x/typescript-typings": "^4.4.0-beta.1", + "@0x/utils": "^4.6.0-beta.1", + "@0x/web3-wrapper": "^6.1.0-beta.1", "@types/yargs": "^11.0.0", "chalk": "^2.3.0", "chokidar": "^3.0.2", - "ethereum-types": "^2.2.0-beta.0", + "ethereum-types": "^2.2.0-beta.1", "ethereumjs-util": "^5.1.1", "lodash": "^4.17.11", "mkdirp": "^0.5.1", diff --git a/packages/sol-compiler/src/compiler.ts b/packages/sol-compiler/src/compiler.ts index adb13415da..0e770048d7 100644 --- a/packages/sol-compiler/src/compiler.ts +++ b/packages/sol-compiler/src/compiler.ts @@ -49,6 +49,8 @@ const DEFAULT_CONTRACTS_DIR = path.resolve('contracts'); const DEFAULT_ARTIFACTS_DIR = path.resolve('artifacts'); const DEFAULT_USE_DOCKERISED_SOLC = false; const DEFAULT_IS_OFFLINE_MODE = false; +const DEFAULT_SHOULD_SAVE_STANDARD_INPUT = false; + // Solc compiler settings cannot be configured from the commandline. // If you need this configured, please create a `compiler.json` config file // with your desired configurations. @@ -95,6 +97,7 @@ export class Compiler { private readonly _specifiedContracts: string[] | TYPE_ALL_FILES_IDENTIFIER; private readonly _useDockerisedSolc: boolean; private readonly _isOfflineMode: boolean; + private readonly _shouldSaveStandardInput: boolean; /** * Instantiates a new instance of the Compiler class. * @param opts Optional compiler options @@ -123,6 +126,8 @@ export class Compiler { this._useDockerisedSolc = passedOpts.useDockerisedSolc || config.useDockerisedSolc || DEFAULT_USE_DOCKERISED_SOLC; this._isOfflineMode = passedOpts.isOfflineMode || config.isOfflineMode || DEFAULT_IS_OFFLINE_MODE; + this._shouldSaveStandardInput = + passedOpts.shouldSaveStandardInput || config.shouldSaveStandardInput || DEFAULT_SHOULD_SAVE_STANDARD_INPUT; this._nameResolver = new NameResolver(this._contractsDir); const resolver = new FallthroughResolver(); resolver.appendResolver(new URLResolver()); @@ -327,7 +332,12 @@ export class Compiler { `Contract ${contractName} not found in ${contractPath}. Please make sure your contract has the same name as it's file name`, ); } - + if (this._shouldSaveStandardInput) { + await fsWrapper.writeFileAsync( + `${this._artifactsDir}/${contractName}.input.json`, + utils.stringifyWithFormatting(input.standardInput), + ); + } addHexPrefixToContractBytecode(compiledContract); if (shouldPersist) { diff --git a/packages/sol-compiler/src/schemas/compiler_options_schema.ts b/packages/sol-compiler/src/schemas/compiler_options_schema.ts index d1c4a05bfe..4b34ff1477 100644 --- a/packages/sol-compiler/src/schemas/compiler_options_schema.ts +++ b/packages/sol-compiler/src/schemas/compiler_options_schema.ts @@ -21,6 +21,7 @@ export const compilerOptionsSchema = { }, useDockerisedSolc: { type: 'boolean' }, isOfflineMode: { type: 'boolean' }, + shouldSaveStandardInput: { type: 'boolean' }, }, type: 'object', required: [], diff --git a/packages/sol-coverage/CHANGELOG.json b/packages/sol-coverage/CHANGELOG.json index 791dd3c6d5..1cb1987d42 100644 --- a/packages/sol-coverage/CHANGELOG.json +++ b/packages/sol-coverage/CHANGELOG.json @@ -1,4 +1,13 @@ [ + { + "version": "3.1.0-beta.1", + "changes": [ + { + "note": "Dependencies updated" + } + ], + "timestamp": 1573159180 + }, { "version": "3.1.0-beta.0", "changes": [ diff --git a/packages/sol-coverage/CHANGELOG.md b/packages/sol-coverage/CHANGELOG.md index 48a4aa8ddb..53a691d8bd 100644 --- a/packages/sol-coverage/CHANGELOG.md +++ b/packages/sol-coverage/CHANGELOG.md @@ -5,6 +5,10 @@ Edit the package's CHANGELOG.json file only. CHANGELOG +## v3.1.0-beta.1 - _November 7, 2019_ + + * Dependencies updated + ## v3.1.0-beta.0 - _October 3, 2019_ * Dependencies updated diff --git a/packages/sol-coverage/docs/reference.mdx b/packages/sol-coverage/docs/reference.mdx index 3d48323485..6bb2085322 100644 --- a/packages/sol-coverage/docs/reference.mdx +++ b/packages/sol-coverage/docs/reference.mdx @@ -1,249 +1,185 @@ -# Class: CoverageSubprovider - -This class implements the [web3-provider-engine](https://github.com/MetaMask/provider-engine) subprovider interface. -It's used to compute your code coverage while running solidity tests. -## Constructors +# Class: AbstractArtifactAdapter +## Methods -\+ **new CoverageSubprovider**(`artifactAdapter`: `AbstractArtifactAdapter`, `defaultFromAddress`: string, `partialConfig`: [CoverageSubproviderPartialConfig](#coveragesubproviderpartialconfig)): *[CoverageSubprovider](#class-coveragesubprovider)* +### `Abstract` collectContractsDataAsync -*Overrides void* +▸ **collectContractsDataAsync**(): *`Promise`* -*Defined in [sol-coverage/src/coverage_subprovider.ts:44](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/sol-coverage/src/coverage_subprovider.ts#L44)* +*Defined in [sol-tracing-utils/src/artifact_adapters/abstract_artifact_adapter.ts:4](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/sol-tracing-utils/src/artifact_adapters/abstract_artifact_adapter.ts#L4)* -Instantiates a CoverageSubprovider instance +**Returns:** *`Promise`* -**Parameters:** +
-Name | Type | Default | Description | ------- | ------ | ------ | ------ | -`artifactAdapter` | `AbstractArtifactAdapter` | - | Adapter for used artifacts format (0x, truffle, giveth, etc.) | -`defaultFromAddress` | string | - | default from address to use when sending transactions | -`partialConfig` | [CoverageSubproviderPartialConfig](#coveragesubproviderpartialconfig) | {} | Partial configuration object | +# Class: SolCompilerArtifactAdapter -**Returns:** *[CoverageSubprovider](#class-coveragesubprovider)* -## Methods +## Constructors -### emitPayloadAsync - -▸ **emitPayloadAsync**(`payload`: `Partial`): *`Promise`* +\+ **new SolCompilerArtifactAdapter**(`artifactsPath?`: undefined | string, `sourcesPath?`: undefined | string): *[SolCompilerArtifactAdapter](#class-solcompilerartifactadapter)* -Defined in subproviders/lib/src/subproviders/subprovider.d.ts:25 +*Defined in [sol-tracing-utils/src/artifact_adapters/sol_compiler_artifact_adapter.ts:18](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/sol-tracing-utils/src/artifact_adapters/sol_compiler_artifact_adapter.ts#L18)* -Emits a JSON RPC payload that will then be handled by the ProviderEngine instance -this subprovider is a part of. The payload will cascade down the subprovider middleware -stack until finding the responsible entity for handling the request. +Instantiates a SolCompilerArtifactAdapter **Parameters:** Name | Type | Description | ------ | ------ | ------ | -`payload` | `Partial` | JSON RPC payload | - -**Returns:** *`Promise`* - -JSON RPC response payload - -___ - -### handleRequest - -▸ **handleRequest**(`payload`: `JSONRPCRequestPayload`, `next`: [NextCallback](#nextcallback), `_end`: [ErrorCallback](#errorcallback)): *`Promise`* +`artifactsPath?` | undefined \| string | Path to your artifacts directory | +`sourcesPath?` | undefined \| string | Path to your contract sources directory | +**Returns:** *[SolCompilerArtifactAdapter](#class-solcompilerartifactadapter)* +## Methods -*Overrides void* +### collectContractsDataAsync -Defined in sol-tracing-utils/lib/src/trace_collection_subprovider.d.ts:42 +▸ **collectContractsDataAsync**(): *`Promise`* -This method conforms to the web3-provider-engine interface. -It is called internally by the ProviderEngine when it is this subproviders -turn to handle a JSON RPC request. +*Overrides [AbstractArtifactAdapter](_sol_tracing_utils_src_artifact_adapters_abstract_artifact_adapter_.abstractartifactadapter.md).[collectContractsDataAsync](#abstract-collectcontractsdataasync)* -**Parameters:** +*Defined in [sol-tracing-utils/src/artifact_adapters/sol_compiler_artifact_adapter.ts:44](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/sol-tracing-utils/src/artifact_adapters/sol_compiler_artifact_adapter.ts#L44)* -Name | Type | Description | ------- | ------ | ------ | -`payload` | `JSONRPCRequestPayload` | JSON RPC payload | -`next` | [NextCallback](#nextcallback) | Callback to call if this subprovider decides not to handle the request | -`_end` | [ErrorCallback](#errorcallback) | Callback to call if subprovider handled the request and wants to pass back the request. | +**Returns:** *`Promise`* -**Returns:** *`Promise`* +
-___ +# Class: TruffleArtifactAdapter -### setEngine -▸ **setEngine**(`engine`: `Web3ProviderEngine`): *void* +## Constructors -*Overrides void* +\+ **new TruffleArtifactAdapter**(`projectRoot`: string, `solcVersion`: string): *[TruffleArtifactAdapter](#class-truffleartifactadapter)* -Defined in sol-tracing-utils/lib/src/trace_collection_subprovider.d.ts:49 +*Defined in [sol-tracing-utils/src/artifact_adapters/truffle_artifact_adapter.ts:29](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/sol-tracing-utils/src/artifact_adapters/truffle_artifact_adapter.ts#L29)* -Set's the subprovider's engine to the ProviderEngine it is added to. -This is only called within the ProviderEngine source code, do not call -directly. +Instantiates a TruffleArtifactAdapter **Parameters:** Name | Type | Description | ------ | ------ | ------ | -`engine` | `Web3ProviderEngine` | The ProviderEngine this subprovider is added to | - -**Returns:** *void* - -___ - -### start - -▸ **start**(): *void* - - - -Defined in sol-tracing-utils/lib/src/trace_collection_subprovider.d.ts:29 - -Starts trace collection - -**Returns:** *void* - -___ - -### stop - -▸ **stop**(): *void* - - - -Defined in sol-tracing-utils/lib/src/trace_collection_subprovider.d.ts:33 - -Stops trace collection +`projectRoot` | string | Path to the truffle project's root directory | +`solcVersion` | string | Solidity version with which to compile all the contracts | -**Returns:** *void* +**Returns:** *[TruffleArtifactAdapter](#class-truffleartifactadapter)* -___ +## Methods -### writeCoverageAsync +### collectContractsDataAsync -▸ **writeCoverageAsync**(): *`Promise`* +▸ **collectContractsDataAsync**(): *`Promise`* -*Defined in [sol-coverage/src/coverage_subprovider.ts:78](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/sol-coverage/src/coverage_subprovider.ts#L78)* +*Overrides [AbstractArtifactAdapter](_sol_tracing_utils_src_artifact_adapters_abstract_artifact_adapter_.abstractartifactadapter.md).[collectContractsDataAsync](#abstract-collectcontractsdataasync)* -Write the test coverage results to a file in Istanbul format. +*Defined in [sol-tracing-utils/src/artifact_adapters/truffle_artifact_adapter.ts:40](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/sol-tracing-utils/src/artifact_adapters/truffle_artifact_adapter.ts#L40)* -**Returns:** *`Promise`* +**Returns:** *`Promise`*
-# Class: AbstractArtifactAdapter -## Methods -### `Abstract` collectContractsDataAsync -▸ **collectContractsDataAsync**(): *`Promise`* -*Defined in [sol-tracing-utils/src/artifact_adapters/abstract_artifact_adapter.ts:4](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/sol-tracing-utils/src/artifact_adapters/abstract_artifact_adapter.ts#L4)* -**Returns:** *`Promise`* -
-# Class: SolCompilerArtifactAdapter -## Constructors -\+ **new SolCompilerArtifactAdapter**(`artifactsPath?`: undefined | string, `sourcesPath?`: undefined | string): *[SolCompilerArtifactAdapter](#class-solcompilerartifactadapter)* -*Defined in [sol-tracing-utils/src/artifact_adapters/sol_compiler_artifact_adapter.ts:18](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/sol-tracing-utils/src/artifact_adapters/sol_compiler_artifact_adapter.ts#L18)* -Instantiates a SolCompilerArtifactAdapter -**Parameters:** -Name | Type | Description | ------- | ------ | ------ | -`artifactsPath?` | undefined \| string | Path to your artifacts directory | -`sourcesPath?` | undefined \| string | Path to your contract sources directory | -**Returns:** *[SolCompilerArtifactAdapter](#class-solcompilerartifactadapter)* - -## Methods -### collectContractsDataAsync +## Type aliases -▸ **collectContractsDataAsync**(): *`Promise`* +### Callback -*Overrides [AbstractArtifactAdapter](_sol_tracing_utils_src_artifact_adapters_abstract_artifact_adapter_.abstractartifactadapter.md).[collectContractsDataAsync](#abstract-collectcontractsdataasync)* +Ƭ **Callback**: *function* -*Defined in [sol-tracing-utils/src/artifact_adapters/sol_compiler_artifact_adapter.ts:44](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/sol-tracing-utils/src/artifact_adapters/sol_compiler_artifact_adapter.ts#L44)* +*Defined in [subproviders/src/types.ts:131](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/subproviders/src/types.ts#L131)* -**Returns:** *`Promise`* +#### Type declaration: -
+▸ (): *void* -# Class: TruffleArtifactAdapter +___ -## Constructors +### ErrorCallback +Ƭ **ErrorCallback**: *function* -\+ **new TruffleArtifactAdapter**(`projectRoot`: string, `solcVersion`: string): *[TruffleArtifactAdapter](#class-truffleartifactadapter)* +*Defined in [subproviders/src/types.ts:130](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/subproviders/src/types.ts#L130)* -*Defined in [sol-tracing-utils/src/artifact_adapters/truffle_artifact_adapter.ts:29](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/sol-tracing-utils/src/artifact_adapters/truffle_artifact_adapter.ts#L29)* +#### Type declaration: -Instantiates a TruffleArtifactAdapter +▸ (`err`: `Error` | null, `data?`: any): *void* **Parameters:** -Name | Type | Description | ------- | ------ | ------ | -`projectRoot` | string | Path to the truffle project's root directory | -`solcVersion` | string | Solidity version with which to compile all the contracts | - -**Returns:** *[TruffleArtifactAdapter](#class-truffleartifactadapter)* - -## Methods - -### collectContractsDataAsync - -▸ **collectContractsDataAsync**(): *`Promise`* - -*Overrides [AbstractArtifactAdapter](_sol_tracing_utils_src_artifact_adapters_abstract_artifact_adapter_.abstractartifactadapter.md).[collectContractsDataAsync](#abstract-collectcontractsdataasync)* +Name | Type | +------ | ------ | +`err` | `Error` \| null | +`data?` | any | -*Defined in [sol-tracing-utils/src/artifact_adapters/truffle_artifact_adapter.ts:40](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/sol-tracing-utils/src/artifact_adapters/truffle_artifact_adapter.ts#L40)* +___ -**Returns:** *`Promise`* -
+### NextCallback +Ƭ **NextCallback**: *function* +*Defined in [subproviders/src/types.ts:133](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/subproviders/src/types.ts#L133)* +#### Type declaration: +▸ (`callback?`: [OnNextCompleted](#onnextcompleted)): *void* +**Parameters:** +Name | Type | +------ | ------ | +`callback?` | [OnNextCompleted](#onnextcompleted) | +___ +### OnNextCompleted +Ƭ **OnNextCompleted**: *function* +*Defined in [subproviders/src/types.ts:132](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/subproviders/src/types.ts#L132)* +#### Type declaration: +▸ (`err`: `Error` | null, `result`: any, `cb`: [Callback](#callback)): *void* +**Parameters:** +Name | Type | +------ | ------ | +`err` | `Error` \| null | +`result` | any | +`cb` | [Callback](#callback) | +
@@ -308,7 +244,7 @@ Name | Type | Description | • **id**: *number* -*Defined in [ethereum-types/src/index.ts:330](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L330)* +*Defined in [ethereum-types/src/index.ts:330](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L330)* ___ @@ -316,7 +252,7 @@ ___ • **jsonrpc**: *string* -*Defined in [ethereum-types/src/index.ts:331](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L331)* +*Defined in [ethereum-types/src/index.ts:331](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L331)* ___ @@ -324,7 +260,7 @@ ___ • **method**: *string* -*Defined in [ethereum-types/src/index.ts:329](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L329)* +*Defined in [ethereum-types/src/index.ts:329](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L329)* ___ @@ -332,7 +268,7 @@ ___ • **params**: *any[]* -*Defined in [ethereum-types/src/index.ts:328](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L328)* +*Defined in [ethereum-types/src/index.ts:328](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L328)*
@@ -345,7 +281,7 @@ ___ • **code**: *number* -*Defined in [ethereum-types/src/index.ts:336](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L336)* +*Defined in [ethereum-types/src/index.ts:336](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L336)* ___ @@ -353,7 +289,7 @@ ___ • **message**: *string* -*Defined in [ethereum-types/src/index.ts:335](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L335)* +*Defined in [ethereum-types/src/index.ts:335](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L335)*
@@ -366,7 +302,7 @@ ___ • **error**? : *[JSONRPCResponseError](#class-jsonrpcresponseerror)* -*Defined in [ethereum-types/src/index.ts:343](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L343)* +*Defined in [ethereum-types/src/index.ts:343](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L343)* ___ @@ -374,7 +310,7 @@ ___ • **id**: *number* -*Defined in [ethereum-types/src/index.ts:341](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L341)* +*Defined in [ethereum-types/src/index.ts:341](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L341)* ___ @@ -382,7 +318,7 @@ ___ • **jsonrpc**: *string* -*Defined in [ethereum-types/src/index.ts:342](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L342)* +*Defined in [ethereum-types/src/index.ts:342](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L342)* ___ @@ -390,7 +326,7 @@ ___ • **result**: *any* -*Defined in [ethereum-types/src/index.ts:340](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L340)* +*Defined in [ethereum-types/src/index.ts:340](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L340)*
@@ -426,110 +362,169 @@ ___ +# Class: CoverageSubprovider + +This class implements the [web3-provider-engine](https://github.com/MetaMask/provider-engine) subprovider interface. +It's used to compute your code coverage while running solidity tests. + + +## Constructors + + + +\+ **new CoverageSubprovider**(`artifactAdapter`: `AbstractArtifactAdapter`, `defaultFromAddress`: string, `partialConfig`: [CoverageSubproviderPartialConfig](#coveragesubproviderpartialconfig)): *[CoverageSubprovider](#class-coveragesubprovider)* +*Overrides void* +*Defined in [sol-coverage/src/coverage_subprovider.ts:44](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/sol-coverage/src/coverage_subprovider.ts#L44)* +Instantiates a CoverageSubprovider instance +**Parameters:** +Name | Type | Default | Description | +------ | ------ | ------ | ------ | +`artifactAdapter` | `AbstractArtifactAdapter` | - | Adapter for used artifacts format (0x, truffle, giveth, etc.) | +`defaultFromAddress` | string | - | default from address to use when sending transactions | +`partialConfig` | [CoverageSubproviderPartialConfig](#coveragesubproviderpartialconfig) | {} | Partial configuration object | +**Returns:** *[CoverageSubprovider](#class-coveragesubprovider)* +## Methods +### emitPayloadAsync +▸ **emitPayloadAsync**(`payload`: `Partial`): *`Promise`* +Defined in subproviders/lib/src/subproviders/subprovider.d.ts:25 +Emits a JSON RPC payload that will then be handled by the ProviderEngine instance +this subprovider is a part of. The payload will cascade down the subprovider middleware +stack until finding the responsible entity for handling the request. +**Parameters:** +Name | Type | Description | +------ | ------ | ------ | +`payload` | `Partial` | JSON RPC payload | +**Returns:** *`Promise`* +JSON RPC response payload +___ +### handleRequest +▸ **handleRequest**(`payload`: `JSONRPCRequestPayload`, `next`: [NextCallback](#nextcallback), `_end`: [ErrorCallback](#errorcallback)): *`Promise`* +*Overrides void* +Defined in sol-tracing-utils/lib/src/trace_collection_subprovider.d.ts:42 +This method conforms to the web3-provider-engine interface. +It is called internally by the ProviderEngine when it is this subproviders +turn to handle a JSON RPC request. +**Parameters:** +Name | Type | Description | +------ | ------ | ------ | +`payload` | `JSONRPCRequestPayload` | JSON RPC payload | +`next` | [NextCallback](#nextcallback) | Callback to call if this subprovider decides not to handle the request | +`_end` | [ErrorCallback](#errorcallback) | Callback to call if subprovider handled the request and wants to pass back the request. | - +**Returns:** *`Promise`* + +___ +### setEngine +▸ **setEngine**(`engine`: `Web3ProviderEngine`): *void* - +*Overrides void* - +Defined in sol-tracing-utils/lib/src/trace_collection_subprovider.d.ts:49 +Set's the subprovider's engine to the ProviderEngine it is added to. +This is only called within the ProviderEngine source code, do not call +directly. +**Parameters:** +Name | Type | Description | +------ | ------ | ------ | +`engine` | `Web3ProviderEngine` | The ProviderEngine this subprovider is added to | +**Returns:** *void* +___ +### start - +▸ **start**(): *void* +Defined in sol-tracing-utils/lib/src/trace_collection_subprovider.d.ts:29 +Starts trace collection +**Returns:** *void* +___ +### stop +▸ **stop**(): *void* +Defined in sol-tracing-utils/lib/src/trace_collection_subprovider.d.ts:33 +Stops trace collection +**Returns:** *void* +___ -# Interface: JSONRPCRequestPayloadWithMethod +### writeCoverageAsync +▸ **writeCoverageAsync**(): *`Promise`* -## Properties +*Defined in [sol-coverage/src/coverage_subprovider.ts:78](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/sol-coverage/src/coverage_subprovider.ts#L78)* -### id +Write the test coverage results to a file in Istanbul format. -• **id**: *number* +**Returns:** *`Promise`* +
-Defined in ethereum-types/lib/index.d.ts:267 -___ -### jsonrpc -• **jsonrpc**: *string* -Defined in ethereum-types/lib/index.d.ts:268 -___ -### method -• **method**: *string* -*Overrides void* -*Defined in [subproviders/src/types.ts:136](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/subproviders/src/types.ts#L136)* -___ -### params -• **params**: *any[]* -Defined in ethereum-types/lib/index.d.ts:265 -
@@ -537,11 +532,15 @@ Defined in ethereum-types/lib/index.d.ts:265 + + + + @@ -549,6 +548,7 @@ Defined in ethereum-types/lib/index.d.ts:265 + @@ -564,32 +564,50 @@ Defined in ethereum-types/lib/index.d.ts:265 -## Type aliases +# Interface: JSONRPCRequestPayloadWithMethod +## Properties +### id +• **id**: *number* +Defined in ethereum-types/lib/index.d.ts:267 +___ +### jsonrpc +• **jsonrpc**: *string* +Defined in ethereum-types/lib/index.d.ts:268 +___ +### method +• **method**: *string* +*Overrides void* +*Defined in [subproviders/src/types.ts:136](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/subproviders/src/types.ts#L136)* +___ +### params +• **params**: *any[]* +Defined in ethereum-types/lib/index.d.ts:265 +
@@ -609,47 +627,30 @@ Defined in ethereum-types/lib/index.d.ts:265 -## Type aliases -### CoverageSubproviderPartialConfig -Ƭ **CoverageSubproviderPartialConfig**: *`Partial`* -*Defined in [sol-coverage/src/coverage_subprovider.ts:31](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/sol-coverage/src/coverage_subprovider.ts#L31)* -## Object literals -### `Const` DEFAULT_COVERAGE_SUBPROVIDER_CONFIG -#### ▪ **DEFAULT_COVERAGE_SUBPROVIDER_CONFIG**: *object* -*Defined in [sol-coverage/src/coverage_subprovider.ts:33](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/sol-coverage/src/coverage_subprovider.ts#L33)* -#### ignoreFilesGlobs -• **ignoreFilesGlobs**: *never[]* = [] -*Defined in [sol-coverage/src/coverage_subprovider.ts:35](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/sol-coverage/src/coverage_subprovider.ts#L35)* -#### isVerbose -• **isVerbose**: *boolean* = true -*Defined in [sol-coverage/src/coverage_subprovider.ts:34](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/sol-coverage/src/coverage_subprovider.ts#L34)* -
+## Type aliases -
-
-
@@ -667,78 +668,77 @@ Defined in ethereum-types/lib/index.d.ts:265 -## Type aliases -### Callback -Ƭ **Callback**: *function* -*Defined in [subproviders/src/types.ts:131](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/subproviders/src/types.ts#L131)* -#### Type declaration: -▸ (): *void* -___ -### ErrorCallback -Ƭ **ErrorCallback**: *function* -*Defined in [subproviders/src/types.ts:130](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/subproviders/src/types.ts#L130)* -#### Type declaration: -▸ (`err`: `Error` | null, `data?`: any): *void* -**Parameters:** -Name | Type | ------- | ------ | -`err` | `Error` \| null | -`data?` | any | -___ -### NextCallback -Ƭ **NextCallback**: *function* -*Defined in [subproviders/src/types.ts:133](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/subproviders/src/types.ts#L133)* -#### Type declaration: -▸ (`callback?`: [OnNextCompleted](#onnextcompleted)): *void* -**Parameters:** -Name | Type | ------- | ------ | -`callback?` | [OnNextCompleted](#onnextcompleted) | -___ -### OnNextCompleted -Ƭ **OnNextCompleted**: *function* -*Defined in [subproviders/src/types.ts:132](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/subproviders/src/types.ts#L132)* -#### Type declaration: -▸ (`err`: `Error` | null, `result`: any, `cb`: [Callback](#callback)): *void* -**Parameters:** +## Type aliases -Name | Type | ------- | ------ | -`err` | `Error` \| null | -`result` | any | -`cb` | [Callback](#callback) | +### CoverageSubproviderPartialConfig + +Ƭ **CoverageSubproviderPartialConfig**: *`Partial`* + +*Defined in [sol-coverage/src/coverage_subprovider.ts:31](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/sol-coverage/src/coverage_subprovider.ts#L31)* + +## Object literals + +### `Const` DEFAULT_COVERAGE_SUBPROVIDER_CONFIG + +#### ▪ **DEFAULT_COVERAGE_SUBPROVIDER_CONFIG**: *object* + +*Defined in [sol-coverage/src/coverage_subprovider.ts:33](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/sol-coverage/src/coverage_subprovider.ts#L33)* + +#### ignoreFilesGlobs + +• **ignoreFilesGlobs**: *never[]* = [] + +*Defined in [sol-coverage/src/coverage_subprovider.ts:35](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/sol-coverage/src/coverage_subprovider.ts#L35)* + +#### isVerbose + +• **isVerbose**: *boolean* = true + +*Defined in [sol-coverage/src/coverage_subprovider.ts:34](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/sol-coverage/src/coverage_subprovider.ts#L34)*
+ + +
+ + + +
+ + + +
+ diff --git a/packages/sol-coverage/package.json b/packages/sol-coverage/package.json index ce6f9f1164..1076d941d8 100644 --- a/packages/sol-coverage/package.json +++ b/packages/sol-coverage/package.json @@ -1,6 +1,6 @@ { "name": "@0x/sol-coverage", - "version": "3.1.0-beta.0", + "version": "3.1.0-beta.1", "engines": { "node": ">=6.12" }, @@ -33,18 +33,18 @@ }, "homepage": "https://github.com/0xProject/0x-monorepo/packages/sol-coverage/README.md", "dependencies": { - "@0x/sol-tracing-utils": "^6.1.0-beta.0", - "@0x/subproviders": "^5.1.0-beta.0", - "@0x/typescript-typings": "^4.4.0-beta.0", + "@0x/sol-tracing-utils": "^6.1.0-beta.1", + "@0x/subproviders": "^5.1.0-beta.1", + "@0x/typescript-typings": "^4.4.0-beta.1", "@types/minimatch": "^3.0.3", - "ethereum-types": "^2.2.0-beta.0", + "ethereum-types": "^2.2.0-beta.1", "lodash": "^4.17.11", "minimatch": "^3.0.4", "web3-provider-engine": "14.0.6" }, "devDependencies": { "@0x/ts-doc-gen": "^0.0.22", - "@0x/tslint-config": "^3.0.1", + "@0x/tslint-config": "^3.1.0-beta.1", "@types/node": "*", "@types/web3-provider-engine": "^14.0.0", "npm-run-all": "^4.1.2", diff --git a/packages/sol-doc/CHANGELOG.json b/packages/sol-doc/CHANGELOG.json index 89ae9ceea5..13c9c70b5e 100644 --- a/packages/sol-doc/CHANGELOG.json +++ b/packages/sol-doc/CHANGELOG.json @@ -1,4 +1,13 @@ [ + { + "version": "2.1.0-beta.1", + "changes": [ + { + "note": "Dependencies updated" + } + ], + "timestamp": 1573159180 + }, { "version": "2.1.0-beta.0", "changes": [ diff --git a/packages/sol-doc/CHANGELOG.md b/packages/sol-doc/CHANGELOG.md index aeaf0294a3..f516deb0d4 100644 --- a/packages/sol-doc/CHANGELOG.md +++ b/packages/sol-doc/CHANGELOG.md @@ -5,6 +5,10 @@ Edit the package's CHANGELOG.json file only. CHANGELOG +## v2.1.0-beta.1 - _November 7, 2019_ + + * Dependencies updated + ## v2.1.0-beta.0 - _October 3, 2019_ * Dependencies updated diff --git a/packages/sol-doc/package.json b/packages/sol-doc/package.json index 0aba6f92cb..4323784716 100644 --- a/packages/sol-doc/package.json +++ b/packages/sol-doc/package.json @@ -1,6 +1,6 @@ { "name": "@0x/sol-doc", - "version": "2.1.0-beta.0", + "version": "2.1.0-beta.1", "description": "Solidity documentation generator", "main": "lib/src/index.js", "types": "lib/src/index.d.js", @@ -26,16 +26,16 @@ "author": "F. Eugene Aumson", "license": "Apache-2.0", "dependencies": { - "@0x/sol-compiler": "^3.2.0-beta.0", - "@0x/types": "^2.5.0-beta.0", - "@0x/utils": "^4.6.0-beta.0", - "ethereum-types": "^2.2.0-beta.0", + "@0x/sol-compiler": "^3.2.0-beta.1", + "@0x/types": "^2.5.0-beta.1", + "@0x/utils": "^4.6.0-beta.1", + "ethereum-types": "^2.2.0-beta.1", "ethereumjs-util": "^5.1.1", "lodash": "^4.17.11", "yargs": "^10.0.3" }, "devDependencies": { - "@0x/tslint-config": "^3.0.1", + "@0x/tslint-config": "^3.1.0-beta.1", "@types/mocha": "^5.2.7", "chai": "^4.0.1", "chai-as-promised": "^7.1.0", diff --git a/packages/sol-profiler/CHANGELOG.json b/packages/sol-profiler/CHANGELOG.json index c8b7df531d..e1f80ed4a6 100644 --- a/packages/sol-profiler/CHANGELOG.json +++ b/packages/sol-profiler/CHANGELOG.json @@ -1,4 +1,13 @@ [ + { + "version": "3.2.0-beta.1", + "changes": [ + { + "note": "Dependencies updated" + } + ], + "timestamp": 1573159180 + }, { "version": "3.2.0-beta.0", "changes": [ diff --git a/packages/sol-profiler/CHANGELOG.md b/packages/sol-profiler/CHANGELOG.md index 24edb2152c..8d1dc7b1d0 100644 --- a/packages/sol-profiler/CHANGELOG.md +++ b/packages/sol-profiler/CHANGELOG.md @@ -5,6 +5,10 @@ Edit the package's CHANGELOG.json file only. CHANGELOG +## v3.2.0-beta.1 - _November 7, 2019_ + + * Dependencies updated + ## v3.2.0-beta.0 - _October 3, 2019_ * Dependencies updated diff --git a/packages/sol-profiler/docs/reference.mdx b/packages/sol-profiler/docs/reference.mdx index a4182b1098..bc1c7d0a83 100644 --- a/packages/sol-profiler/docs/reference.mdx +++ b/packages/sol-profiler/docs/reference.mdx @@ -1,249 +1,185 @@ -# Class: ProfilerSubprovider - -This class implements the [web3-provider-engine](https://github.com/MetaMask/provider-engine) subprovider interface. -ProfilerSubprovider is used to profile Solidity code while running tests. -## Constructors - +# Class: AbstractArtifactAdapter -\+ **new ProfilerSubprovider**(`artifactAdapter`: `AbstractArtifactAdapter`, `defaultFromAddress`: string, `isVerbose`: boolean): *[ProfilerSubprovider](#class-profilersubprovider)* +## Methods -*Overrides void* +### `Abstract` collectContractsDataAsync -*Defined in [sol-profiler/src/profiler_subprovider.ts:30](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/sol-profiler/src/profiler_subprovider.ts#L30)* +▸ **collectContractsDataAsync**(): *`Promise`* -Instantiates a ProfilerSubprovider instance +*Defined in [sol-tracing-utils/src/artifact_adapters/abstract_artifact_adapter.ts:4](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/sol-tracing-utils/src/artifact_adapters/abstract_artifact_adapter.ts#L4)* -**Parameters:** +**Returns:** *`Promise`* -Name | Type | Default | Description | ------- | ------ | ------ | ------ | -`artifactAdapter` | `AbstractArtifactAdapter` | - | Adapter for used artifacts format (0x, truffle, giveth, etc.) | -`defaultFromAddress` | string | - | default from address to use when sending transactions | -`isVerbose` | boolean | true | If true, we will log any unknown transactions. Otherwise we will ignore them | +
-**Returns:** *[ProfilerSubprovider](#class-profilersubprovider)* +# Class: SolCompilerArtifactAdapter -## Methods -### emitPayloadAsync +## Constructors -▸ **emitPayloadAsync**(`payload`: `Partial`): *`Promise`* +\+ **new SolCompilerArtifactAdapter**(`artifactsPath?`: undefined | string, `sourcesPath?`: undefined | string): *[SolCompilerArtifactAdapter](#class-solcompilerartifactadapter)* -Defined in subproviders/lib/src/subproviders/subprovider.d.ts:25 +*Defined in [sol-tracing-utils/src/artifact_adapters/sol_compiler_artifact_adapter.ts:18](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/sol-tracing-utils/src/artifact_adapters/sol_compiler_artifact_adapter.ts#L18)* -Emits a JSON RPC payload that will then be handled by the ProviderEngine instance -this subprovider is a part of. The payload will cascade down the subprovider middleware -stack until finding the responsible entity for handling the request. +Instantiates a SolCompilerArtifactAdapter **Parameters:** Name | Type | Description | ------ | ------ | ------ | -`payload` | `Partial` | JSON RPC payload | - -**Returns:** *`Promise`* - -JSON RPC response payload - -___ - -### handleRequest - -▸ **handleRequest**(`payload`: `JSONRPCRequestPayload`, `next`: [NextCallback](#nextcallback), `_end`: [ErrorCallback](#errorcallback)): *`Promise`* +`artifactsPath?` | undefined \| string | Path to your artifacts directory | +`sourcesPath?` | undefined \| string | Path to your contract sources directory | +**Returns:** *[SolCompilerArtifactAdapter](#class-solcompilerartifactadapter)* +## Methods -*Overrides void* +### collectContractsDataAsync -Defined in sol-tracing-utils/lib/src/trace_collection_subprovider.d.ts:42 +▸ **collectContractsDataAsync**(): *`Promise`* -This method conforms to the web3-provider-engine interface. -It is called internally by the ProviderEngine when it is this subproviders -turn to handle a JSON RPC request. +*Overrides [AbstractArtifactAdapter](_sol_tracing_utils_src_artifact_adapters_abstract_artifact_adapter_.abstractartifactadapter.md).[collectContractsDataAsync](#abstract-collectcontractsdataasync)* -**Parameters:** +*Defined in [sol-tracing-utils/src/artifact_adapters/sol_compiler_artifact_adapter.ts:44](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/sol-tracing-utils/src/artifact_adapters/sol_compiler_artifact_adapter.ts#L44)* -Name | Type | Description | ------- | ------ | ------ | -`payload` | `JSONRPCRequestPayload` | JSON RPC payload | -`next` | [NextCallback](#nextcallback) | Callback to call if this subprovider decides not to handle the request | -`_end` | [ErrorCallback](#errorcallback) | Callback to call if subprovider handled the request and wants to pass back the request. | +**Returns:** *`Promise`* -**Returns:** *`Promise`* +
-___ +# Class: TruffleArtifactAdapter -### setEngine -▸ **setEngine**(`engine`: `Web3ProviderEngine`): *void* +## Constructors -*Overrides void* +\+ **new TruffleArtifactAdapter**(`projectRoot`: string, `solcVersion`: string): *[TruffleArtifactAdapter](#class-truffleartifactadapter)* -Defined in sol-tracing-utils/lib/src/trace_collection_subprovider.d.ts:49 +*Defined in [sol-tracing-utils/src/artifact_adapters/truffle_artifact_adapter.ts:29](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/sol-tracing-utils/src/artifact_adapters/truffle_artifact_adapter.ts#L29)* -Set's the subprovider's engine to the ProviderEngine it is added to. -This is only called within the ProviderEngine source code, do not call -directly. +Instantiates a TruffleArtifactAdapter **Parameters:** Name | Type | Description | ------ | ------ | ------ | -`engine` | `Web3ProviderEngine` | The ProviderEngine this subprovider is added to | - -**Returns:** *void* - -___ - -### start - -▸ **start**(): *void* - - - -Defined in sol-tracing-utils/lib/src/trace_collection_subprovider.d.ts:29 - -Starts trace collection - -**Returns:** *void* - -___ - -### stop - -▸ **stop**(): *void* - - - -Defined in sol-tracing-utils/lib/src/trace_collection_subprovider.d.ts:33 - -Stops trace collection +`projectRoot` | string | Path to the truffle project's root directory | +`solcVersion` | string | Solidity version with which to compile all the contracts | -**Returns:** *void* +**Returns:** *[TruffleArtifactAdapter](#class-truffleartifactadapter)* -___ +## Methods -### writeProfilerOutputAsync +### collectContractsDataAsync -▸ **writeProfilerOutputAsync**(): *`Promise`* +▸ **collectContractsDataAsync**(): *`Promise`* -*Defined in [sol-profiler/src/profiler_subprovider.ts:104](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/sol-profiler/src/profiler_subprovider.ts#L104)* +*Overrides [AbstractArtifactAdapter](_sol_tracing_utils_src_artifact_adapters_abstract_artifact_adapter_.abstractartifactadapter.md).[collectContractsDataAsync](#abstract-collectcontractsdataasync)* -Write the test profiler results to a file in Istanbul format. +*Defined in [sol-tracing-utils/src/artifact_adapters/truffle_artifact_adapter.ts:40](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/sol-tracing-utils/src/artifact_adapters/truffle_artifact_adapter.ts#L40)* -**Returns:** *`Promise`* +**Returns:** *`Promise`*
-# Class: AbstractArtifactAdapter -## Methods -### `Abstract` collectContractsDataAsync -▸ **collectContractsDataAsync**(): *`Promise`* -*Defined in [sol-tracing-utils/src/artifact_adapters/abstract_artifact_adapter.ts:4](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/sol-tracing-utils/src/artifact_adapters/abstract_artifact_adapter.ts#L4)* -**Returns:** *`Promise`* -
-# Class: SolCompilerArtifactAdapter -## Constructors -\+ **new SolCompilerArtifactAdapter**(`artifactsPath?`: undefined | string, `sourcesPath?`: undefined | string): *[SolCompilerArtifactAdapter](#class-solcompilerartifactadapter)* -*Defined in [sol-tracing-utils/src/artifact_adapters/sol_compiler_artifact_adapter.ts:18](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/sol-tracing-utils/src/artifact_adapters/sol_compiler_artifact_adapter.ts#L18)* -Instantiates a SolCompilerArtifactAdapter -**Parameters:** -Name | Type | Description | ------- | ------ | ------ | -`artifactsPath?` | undefined \| string | Path to your artifacts directory | -`sourcesPath?` | undefined \| string | Path to your contract sources directory | -**Returns:** *[SolCompilerArtifactAdapter](#class-solcompilerartifactadapter)* -## Methods - -### collectContractsDataAsync +## Type aliases -▸ **collectContractsDataAsync**(): *`Promise`* +### Callback -*Overrides [AbstractArtifactAdapter](_sol_tracing_utils_src_artifact_adapters_abstract_artifact_adapter_.abstractartifactadapter.md).[collectContractsDataAsync](#abstract-collectcontractsdataasync)* +Ƭ **Callback**: *function* -*Defined in [sol-tracing-utils/src/artifact_adapters/sol_compiler_artifact_adapter.ts:44](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/sol-tracing-utils/src/artifact_adapters/sol_compiler_artifact_adapter.ts#L44)* +*Defined in [subproviders/src/types.ts:131](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/subproviders/src/types.ts#L131)* -**Returns:** *`Promise`* +#### Type declaration: -
+▸ (): *void* -# Class: TruffleArtifactAdapter +___ -## Constructors +### ErrorCallback +Ƭ **ErrorCallback**: *function* -\+ **new TruffleArtifactAdapter**(`projectRoot`: string, `solcVersion`: string): *[TruffleArtifactAdapter](#class-truffleartifactadapter)* +*Defined in [subproviders/src/types.ts:130](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/subproviders/src/types.ts#L130)* -*Defined in [sol-tracing-utils/src/artifact_adapters/truffle_artifact_adapter.ts:29](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/sol-tracing-utils/src/artifact_adapters/truffle_artifact_adapter.ts#L29)* +#### Type declaration: -Instantiates a TruffleArtifactAdapter +▸ (`err`: `Error` | null, `data?`: any): *void* **Parameters:** -Name | Type | Description | ------- | ------ | ------ | -`projectRoot` | string | Path to the truffle project's root directory | -`solcVersion` | string | Solidity version with which to compile all the contracts | - -**Returns:** *[TruffleArtifactAdapter](#class-truffleartifactadapter)* - -## Methods - -### collectContractsDataAsync - -▸ **collectContractsDataAsync**(): *`Promise`* - -*Overrides [AbstractArtifactAdapter](_sol_tracing_utils_src_artifact_adapters_abstract_artifact_adapter_.abstractartifactadapter.md).[collectContractsDataAsync](#abstract-collectcontractsdataasync)* +Name | Type | +------ | ------ | +`err` | `Error` \| null | +`data?` | any | -*Defined in [sol-tracing-utils/src/artifact_adapters/truffle_artifact_adapter.ts:40](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/sol-tracing-utils/src/artifact_adapters/truffle_artifact_adapter.ts#L40)* +___ -**Returns:** *`Promise`* -
+### NextCallback +Ƭ **NextCallback**: *function* +*Defined in [subproviders/src/types.ts:133](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/subproviders/src/types.ts#L133)* +#### Type declaration: +▸ (`callback?`: [OnNextCompleted](#onnextcompleted)): *void* +**Parameters:** +Name | Type | +------ | ------ | +`callback?` | [OnNextCompleted](#onnextcompleted) | +___ +### OnNextCompleted +Ƭ **OnNextCompleted**: *function* +*Defined in [subproviders/src/types.ts:132](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/subproviders/src/types.ts#L132)* +#### Type declaration: +▸ (`err`: `Error` | null, `result`: any, `cb`: [Callback](#callback)): *void* +**Parameters:** +Name | Type | +------ | ------ | +`err` | `Error` \| null | +`result` | any | +`cb` | [Callback](#callback) | +
@@ -308,7 +244,7 @@ Name | Type | Description | • **id**: *number* -*Defined in [ethereum-types/src/index.ts:330](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L330)* +*Defined in [ethereum-types/src/index.ts:330](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L330)* ___ @@ -316,7 +252,7 @@ ___ • **jsonrpc**: *string* -*Defined in [ethereum-types/src/index.ts:331](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L331)* +*Defined in [ethereum-types/src/index.ts:331](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L331)* ___ @@ -324,7 +260,7 @@ ___ • **method**: *string* -*Defined in [ethereum-types/src/index.ts:329](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L329)* +*Defined in [ethereum-types/src/index.ts:329](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L329)* ___ @@ -332,7 +268,7 @@ ___ • **params**: *any[]* -*Defined in [ethereum-types/src/index.ts:328](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L328)* +*Defined in [ethereum-types/src/index.ts:328](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L328)*
@@ -345,7 +281,7 @@ ___ • **code**: *number* -*Defined in [ethereum-types/src/index.ts:336](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L336)* +*Defined in [ethereum-types/src/index.ts:336](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L336)* ___ @@ -353,7 +289,7 @@ ___ • **message**: *string* -*Defined in [ethereum-types/src/index.ts:335](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L335)* +*Defined in [ethereum-types/src/index.ts:335](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L335)*
@@ -366,7 +302,7 @@ ___ • **error**? : *[JSONRPCResponseError](#class-jsonrpcresponseerror)* -*Defined in [ethereum-types/src/index.ts:343](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L343)* +*Defined in [ethereum-types/src/index.ts:343](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L343)* ___ @@ -374,7 +310,7 @@ ___ • **id**: *number* -*Defined in [ethereum-types/src/index.ts:341](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L341)* +*Defined in [ethereum-types/src/index.ts:341](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L341)* ___ @@ -382,7 +318,7 @@ ___ • **jsonrpc**: *string* -*Defined in [ethereum-types/src/index.ts:342](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L342)* +*Defined in [ethereum-types/src/index.ts:342](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L342)* ___ @@ -390,7 +326,7 @@ ___ • **result**: *any* -*Defined in [ethereum-types/src/index.ts:340](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L340)* +*Defined in [ethereum-types/src/index.ts:340](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L340)*
@@ -426,108 +362,160 @@ ___ +# Class: ProfilerSubprovider +This class implements the [web3-provider-engine](https://github.com/MetaMask/provider-engine) subprovider interface. +ProfilerSubprovider is used to profile Solidity code while running tests. +## Constructors +\+ **new ProfilerSubprovider**(`artifactAdapter`: `AbstractArtifactAdapter`, `defaultFromAddress`: string, `isVerbose`: boolean): *[ProfilerSubprovider](#class-profilersubprovider)* +*Overrides void* +*Defined in [sol-profiler/src/profiler_subprovider.ts:30](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/sol-profiler/src/profiler_subprovider.ts#L30)* +Instantiates a ProfilerSubprovider instance +**Parameters:** +Name | Type | Default | Description | +------ | ------ | ------ | ------ | +`artifactAdapter` | `AbstractArtifactAdapter` | - | Adapter for used artifacts format (0x, truffle, giveth, etc.) | +`defaultFromAddress` | string | - | default from address to use when sending transactions | +`isVerbose` | boolean | true | If true, we will log any unknown transactions. Otherwise we will ignore them | +**Returns:** *[ProfilerSubprovider](#class-profilersubprovider)* +## Methods +### emitPayloadAsync +▸ **emitPayloadAsync**(`payload`: `Partial`): *`Promise`* +Defined in subproviders/lib/src/subproviders/subprovider.d.ts:25 +Emits a JSON RPC payload that will then be handled by the ProviderEngine instance +this subprovider is a part of. The payload will cascade down the subprovider middleware +stack until finding the responsible entity for handling the request. +**Parameters:** +Name | Type | Description | +------ | ------ | ------ | +`payload` | `Partial` | JSON RPC payload | +**Returns:** *`Promise`* +JSON RPC response payload +___ +### handleRequest - +▸ **handleRequest**(`payload`: `JSONRPCRequestPayload`, `next`: [NextCallback](#nextcallback), `_end`: [ErrorCallback](#errorcallback)): *`Promise`* +*Overrides void* +Defined in sol-tracing-utils/lib/src/trace_collection_subprovider.d.ts:42 - +This method conforms to the web3-provider-engine interface. +It is called internally by the ProviderEngine when it is this subproviders +turn to handle a JSON RPC request. - +**Parameters:** +Name | Type | Description | +------ | ------ | ------ | +`payload` | `JSONRPCRequestPayload` | JSON RPC payload | +`next` | [NextCallback](#nextcallback) | Callback to call if this subprovider decides not to handle the request | +`_end` | [ErrorCallback](#errorcallback) | Callback to call if subprovider handled the request and wants to pass back the request. | +**Returns:** *`Promise`* +___ +### setEngine +▸ **setEngine**(`engine`: `Web3ProviderEngine`): *void* - +*Overrides void* +Defined in sol-tracing-utils/lib/src/trace_collection_subprovider.d.ts:49 +Set's the subprovider's engine to the ProviderEngine it is added to. +This is only called within the ProviderEngine source code, do not call +directly. +**Parameters:** +Name | Type | Description | +------ | ------ | ------ | +`engine` | `Web3ProviderEngine` | The ProviderEngine this subprovider is added to | +**Returns:** *void* +___ +### start +▸ **start**(): *void* +Defined in sol-tracing-utils/lib/src/trace_collection_subprovider.d.ts:29 +Starts trace collection +**Returns:** *void* -# Interface: JSONRPCRequestPayloadWithMethod +___ +### stop -## Properties +▸ **stop**(): *void* -### id -• **id**: *number* +Defined in sol-tracing-utils/lib/src/trace_collection_subprovider.d.ts:33 +Stops trace collection -Defined in ethereum-types/lib/index.d.ts:267 +**Returns:** *void* ___ -### jsonrpc +### writeProfilerOutputAsync -• **jsonrpc**: *string* +▸ **writeProfilerOutputAsync**(): *`Promise`* +*Defined in [sol-profiler/src/profiler_subprovider.ts:104](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/sol-profiler/src/profiler_subprovider.ts#L104)* +Write the test profiler results to a file in Istanbul format. -Defined in ethereum-types/lib/index.d.ts:268 +**Returns:** *`Promise`* -___ +
-### method -• **method**: *string* -*Overrides void* -*Defined in [subproviders/src/types.ts:136](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/subproviders/src/types.ts#L136)* -___ -### params -• **params**: *any[]* -Defined in ethereum-types/lib/index.d.ts:265 -
@@ -542,12 +530,15 @@ Defined in ethereum-types/lib/index.d.ts:265 + + + @@ -555,6 +546,7 @@ Defined in ethereum-types/lib/index.d.ts:265 + @@ -562,7 +554,6 @@ Defined in ethereum-types/lib/index.d.ts:265 -## Type aliases @@ -571,30 +562,50 @@ Defined in ethereum-types/lib/index.d.ts:265 +# Interface: JSONRPCRequestPayloadWithMethod +## Properties +### id +• **id**: *number* +Defined in ethereum-types/lib/index.d.ts:267 +___ +### jsonrpc +• **jsonrpc**: *string* +Defined in ethereum-types/lib/index.d.ts:268 +___ +### method +• **method**: *string* +*Overrides void* +*Defined in [subproviders/src/types.ts:136](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/subproviders/src/types.ts#L136)* +___ +### params +• **params**: *any[]* +Defined in ethereum-types/lib/index.d.ts:265 + +
@@ -607,43 +618,24 @@ Defined in ethereum-types/lib/index.d.ts:265 -## Functions -### `Const` profilerHandler -▸ **profilerHandler**(`contractData`: `ContractData`, `subtrace`: [Subtrace](#subtrace), `pcToSourceRange`: object, `fileIndex`: number): *`Coverage`* -*Defined in [sol-profiler/src/profiler_subprovider.ts:118](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/sol-profiler/src/profiler_subprovider.ts#L118)* -Computed partial coverage for a single file & subtrace for the purposes of -gas profiling. -**Parameters:** -Name | Type | Description | ------- | ------ | ------ | -`contractData` | `ContractData` | Contract metadata (source, srcMap, bytecode) | -`subtrace` | [Subtrace](#subtrace) | A subset of a transcation/call trace that was executed within that contract | -`pcToSourceRange` | object | A mapping from program counters to source ranges | -`fileIndex` | number | Index of a file to compute coverage for | -**Returns:** *`Coverage`* -Partial istanbul coverage for that file & subtrace -
-
-
-
@@ -663,76 +655,84 @@ Partial istanbul coverage for that file & subtrace ## Type aliases -### Callback -Ƭ **Callback**: *function* -*Defined in [subproviders/src/types.ts:131](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/subproviders/src/types.ts#L131)* -#### Type declaration: -▸ (): *void* -___ -### ErrorCallback -Ƭ **ErrorCallback**: *function* -*Defined in [subproviders/src/types.ts:130](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/subproviders/src/types.ts#L130)* -#### Type declaration: -▸ (`err`: `Error` | null, `data?`: any): *void* -**Parameters:** -Name | Type | ------- | ------ | -`err` | `Error` \| null | -`data?` | any | -___ -### NextCallback -Ƭ **NextCallback**: *function* -*Defined in [subproviders/src/types.ts:133](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/subproviders/src/types.ts#L133)* -#### Type declaration: -▸ (`callback?`: [OnNextCompleted](#onnextcompleted)): *void* -**Parameters:** -Name | Type | ------- | ------ | -`callback?` | [OnNextCompleted](#onnextcompleted) | -___ -### OnNextCompleted -Ƭ **OnNextCompleted**: *function* -*Defined in [subproviders/src/types.ts:132](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/subproviders/src/types.ts#L132)* -#### Type declaration: -▸ (`err`: `Error` | null, `result`: any, `cb`: [Callback](#callback)): *void* + + + + + + + + + + + + + +## Functions + +### `Const` profilerHandler + +▸ **profilerHandler**(`contractData`: `ContractData`, `subtrace`: [Subtrace](#subtrace), `pcToSourceRange`: object, `fileIndex`: number): *`Coverage`* + +*Defined in [sol-profiler/src/profiler_subprovider.ts:118](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/sol-profiler/src/profiler_subprovider.ts#L118)* + +Computed partial coverage for a single file & subtrace for the purposes of +gas profiling. **Parameters:** -Name | Type | ------- | ------ | -`err` | `Error` \| null | -`result` | any | -`cb` | [Callback](#callback) | +Name | Type | Description | +------ | ------ | ------ | +`contractData` | `ContractData` | Contract metadata (source, srcMap, bytecode) | +`subtrace` | [Subtrace](#subtrace) | A subset of a transcation/call trace that was executed within that contract | +`pcToSourceRange` | object | A mapping from program counters to source ranges | +`fileIndex` | number | Index of a file to compute coverage for | + +**Returns:** *`Coverage`* + +Partial istanbul coverage for that file & subtrace
+ + +
+ + + +
+ + + +
+ diff --git a/packages/sol-profiler/package.json b/packages/sol-profiler/package.json index d5bef0151f..0e5cb2b2b1 100644 --- a/packages/sol-profiler/package.json +++ b/packages/sol-profiler/package.json @@ -1,6 +1,6 @@ { "name": "@0x/sol-profiler", - "version": "3.2.0-beta.0", + "version": "3.2.0-beta.1", "engines": { "node": ">=6.12" }, @@ -33,18 +33,18 @@ }, "homepage": "https://github.com/0xProject/0x-monorepo/packages/sol-profiler/README.md", "dependencies": { - "@0x/sol-tracing-utils": "^6.1.0-beta.0", - "@0x/subproviders": "^5.1.0-beta.0", - "@0x/typescript-typings": "^4.4.0-beta.0", - "@0x/utils": "^4.6.0-beta.0", - "ethereum-types": "^2.2.0-beta.0", + "@0x/sol-tracing-utils": "^6.1.0-beta.1", + "@0x/subproviders": "^5.1.0-beta.1", + "@0x/typescript-typings": "^4.4.0-beta.1", + "@0x/utils": "^4.6.0-beta.1", + "ethereum-types": "^2.2.0-beta.1", "ethereumjs-util": "^5.1.1", "lodash": "^4.17.11", "web3-provider-engine": "14.0.6" }, "devDependencies": { "@0x/ts-doc-gen": "^0.0.22", - "@0x/tslint-config": "^3.0.1", + "@0x/tslint-config": "^3.1.0-beta.1", "@types/node": "*", "@types/web3-provider-engine": "^14.0.0", "npm-run-all": "^4.1.2", diff --git a/packages/sol-resolver/CHANGELOG.json b/packages/sol-resolver/CHANGELOG.json index d8bbdd3b4d..44bb15d546 100644 --- a/packages/sol-resolver/CHANGELOG.json +++ b/packages/sol-resolver/CHANGELOG.json @@ -1,4 +1,13 @@ [ + { + "version": "2.1.0-beta.1", + "changes": [ + { + "note": "Dependencies updated" + } + ], + "timestamp": 1573159180 + }, { "version": "2.1.0-beta.0", "changes": [ diff --git a/packages/sol-resolver/CHANGELOG.md b/packages/sol-resolver/CHANGELOG.md index b5d9e90583..932e42455a 100644 --- a/packages/sol-resolver/CHANGELOG.md +++ b/packages/sol-resolver/CHANGELOG.md @@ -5,6 +5,10 @@ Edit the package's CHANGELOG.json file only. CHANGELOG +## v2.1.0-beta.1 - _November 7, 2019_ + + * Dependencies updated + ## v2.1.0-beta.0 - _October 3, 2019_ * Dependencies updated diff --git a/packages/sol-resolver/package.json b/packages/sol-resolver/package.json index d41ad1caec..a1bb9bb1a5 100644 --- a/packages/sol-resolver/package.json +++ b/packages/sol-resolver/package.json @@ -1,6 +1,6 @@ { "name": "@0x/sol-resolver", - "version": "2.1.0-beta.0", + "version": "2.1.0-beta.1", "engines": { "node": ">=6.12" }, @@ -24,15 +24,15 @@ }, "homepage": "https://github.com/0xProject/0x-monorepo/packages/resolver/README.md", "devDependencies": { - "@0x/tslint-config": "^3.0.1", + "@0x/tslint-config": "^3.1.0-beta.1", "make-promises-safe": "^1.1.0", "shx": "^0.2.2", "tslint": "5.11.0", "typescript": "3.0.1" }, "dependencies": { - "@0x/types": "^2.5.0-beta.0", - "@0x/typescript-typings": "^4.4.0-beta.0", + "@0x/types": "^2.5.0-beta.1", + "@0x/typescript-typings": "^4.4.0-beta.1", "lodash": "^4.17.11" }, "publishConfig": { diff --git a/packages/sol-trace/CHANGELOG.json b/packages/sol-trace/CHANGELOG.json index b5dc26f1b7..983cd595af 100644 --- a/packages/sol-trace/CHANGELOG.json +++ b/packages/sol-trace/CHANGELOG.json @@ -1,4 +1,13 @@ [ + { + "version": "2.1.0-beta.1", + "changes": [ + { + "note": "Dependencies updated" + } + ], + "timestamp": 1573159180 + }, { "version": "2.1.0-beta.0", "changes": [ diff --git a/packages/sol-trace/CHANGELOG.md b/packages/sol-trace/CHANGELOG.md index f111048b0e..696eb0bd2f 100644 --- a/packages/sol-trace/CHANGELOG.md +++ b/packages/sol-trace/CHANGELOG.md @@ -5,6 +5,10 @@ Edit the package's CHANGELOG.json file only. CHANGELOG +## v2.1.0-beta.1 - _November 7, 2019_ + + * Dependencies updated + ## v2.1.0-beta.0 - _October 3, 2019_ * Dependencies updated diff --git a/packages/sol-trace/docs/reference.mdx b/packages/sol-trace/docs/reference.mdx index da74c459cd..0339cb722e 100644 --- a/packages/sol-trace/docs/reference.mdx +++ b/packages/sol-trace/docs/reference.mdx @@ -1,237 +1,185 @@ -# Class: RevertTraceSubprovider - -This class implements the [web3-provider-engine](https://github.com/MetaMask/provider-engine) subprovider interface. -It is used to report call stack traces whenever a revert occurs. -## Constructors +# Class: AbstractArtifactAdapter +## Methods -\+ **new RevertTraceSubprovider**(`artifactAdapter`: `AbstractArtifactAdapter`, `defaultFromAddress`: string, `isVerbose`: boolean): *[RevertTraceSubprovider](#class-reverttracesubprovider)* +### `Abstract` collectContractsDataAsync -*Overrides void* +▸ **collectContractsDataAsync**(): *`Promise`* -*Defined in [sol-trace/src/revert_trace_subprovider.ts:27](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/sol-trace/src/revert_trace_subprovider.ts#L27)* +*Defined in [sol-tracing-utils/src/artifact_adapters/abstract_artifact_adapter.ts:4](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/sol-tracing-utils/src/artifact_adapters/abstract_artifact_adapter.ts#L4)* -Instantiates a RevertTraceSubprovider instance - -**Parameters:** +**Returns:** *`Promise`* -Name | Type | Default | Description | ------- | ------ | ------ | ------ | -`artifactAdapter` | `AbstractArtifactAdapter` | - | Adapter for used artifacts format (0x, truffle, giveth, etc.) | -`defaultFromAddress` | string | - | default from address to use when sending transactions | -`isVerbose` | boolean | true | If true, we will log any unknown transactions. Otherwise we will ignore them | +
-**Returns:** *[RevertTraceSubprovider](#class-reverttracesubprovider)* +# Class: SolCompilerArtifactAdapter -## Methods -### emitPayloadAsync +## Constructors -▸ **emitPayloadAsync**(`payload`: `Partial`): *`Promise`* +\+ **new SolCompilerArtifactAdapter**(`artifactsPath?`: undefined | string, `sourcesPath?`: undefined | string): *[SolCompilerArtifactAdapter](#class-solcompilerartifactadapter)* -Defined in subproviders/lib/src/subproviders/subprovider.d.ts:25 +*Defined in [sol-tracing-utils/src/artifact_adapters/sol_compiler_artifact_adapter.ts:18](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/sol-tracing-utils/src/artifact_adapters/sol_compiler_artifact_adapter.ts#L18)* -Emits a JSON RPC payload that will then be handled by the ProviderEngine instance -this subprovider is a part of. The payload will cascade down the subprovider middleware -stack until finding the responsible entity for handling the request. +Instantiates a SolCompilerArtifactAdapter **Parameters:** Name | Type | Description | ------ | ------ | ------ | -`payload` | `Partial` | JSON RPC payload | - -**Returns:** *`Promise`* - -JSON RPC response payload - -___ - -### handleRequest - -▸ **handleRequest**(`payload`: `JSONRPCRequestPayload`, `next`: [NextCallback](#nextcallback), `_end`: [ErrorCallback](#errorcallback)): *`Promise`* +`artifactsPath?` | undefined \| string | Path to your artifacts directory | +`sourcesPath?` | undefined \| string | Path to your contract sources directory | +**Returns:** *[SolCompilerArtifactAdapter](#class-solcompilerartifactadapter)* +## Methods -*Overrides void* +### collectContractsDataAsync -Defined in sol-tracing-utils/lib/src/trace_collection_subprovider.d.ts:42 +▸ **collectContractsDataAsync**(): *`Promise`* -This method conforms to the web3-provider-engine interface. -It is called internally by the ProviderEngine when it is this subproviders -turn to handle a JSON RPC request. +*Overrides [AbstractArtifactAdapter](_sol_tracing_utils_src_artifact_adapters_abstract_artifact_adapter_.abstractartifactadapter.md).[collectContractsDataAsync](#abstract-collectcontractsdataasync)* -**Parameters:** +*Defined in [sol-tracing-utils/src/artifact_adapters/sol_compiler_artifact_adapter.ts:44](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/sol-tracing-utils/src/artifact_adapters/sol_compiler_artifact_adapter.ts#L44)* -Name | Type | Description | ------- | ------ | ------ | -`payload` | `JSONRPCRequestPayload` | JSON RPC payload | -`next` | [NextCallback](#nextcallback) | Callback to call if this subprovider decides not to handle the request | -`_end` | [ErrorCallback](#errorcallback) | Callback to call if subprovider handled the request and wants to pass back the request. | +**Returns:** *`Promise`* -**Returns:** *`Promise`* +
-___ +# Class: TruffleArtifactAdapter -### setEngine -▸ **setEngine**(`engine`: `Web3ProviderEngine`): *void* +## Constructors -*Overrides void* +\+ **new TruffleArtifactAdapter**(`projectRoot`: string, `solcVersion`: string): *[TruffleArtifactAdapter](#class-truffleartifactadapter)* -Defined in sol-tracing-utils/lib/src/trace_collection_subprovider.d.ts:49 +*Defined in [sol-tracing-utils/src/artifact_adapters/truffle_artifact_adapter.ts:29](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/sol-tracing-utils/src/artifact_adapters/truffle_artifact_adapter.ts#L29)* -Set's the subprovider's engine to the ProviderEngine it is added to. -This is only called within the ProviderEngine source code, do not call -directly. +Instantiates a TruffleArtifactAdapter **Parameters:** Name | Type | Description | ------ | ------ | ------ | -`engine` | `Web3ProviderEngine` | The ProviderEngine this subprovider is added to | - -**Returns:** *void* - -___ - -### start - -▸ **start**(): *void* - - - -Defined in sol-tracing-utils/lib/src/trace_collection_subprovider.d.ts:29 - -Starts trace collection - -**Returns:** *void* - -___ +`projectRoot` | string | Path to the truffle project's root directory | +`solcVersion` | string | Solidity version with which to compile all the contracts | -### stop +**Returns:** *[TruffleArtifactAdapter](#class-truffleartifactadapter)* -▸ **stop**(): *void* +## Methods +### collectContractsDataAsync +▸ **collectContractsDataAsync**(): *`Promise`* -Defined in sol-tracing-utils/lib/src/trace_collection_subprovider.d.ts:33 +*Overrides [AbstractArtifactAdapter](_sol_tracing_utils_src_artifact_adapters_abstract_artifact_adapter_.abstractartifactadapter.md).[collectContractsDataAsync](#abstract-collectcontractsdataasync)* -Stops trace collection +*Defined in [sol-tracing-utils/src/artifact_adapters/truffle_artifact_adapter.ts:40](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/sol-tracing-utils/src/artifact_adapters/truffle_artifact_adapter.ts#L40)* -**Returns:** *void* +**Returns:** *`Promise`*
-# Class: AbstractArtifactAdapter -## Methods -### `Abstract` collectContractsDataAsync -▸ **collectContractsDataAsync**(): *`Promise`* -*Defined in [sol-tracing-utils/src/artifact_adapters/abstract_artifact_adapter.ts:4](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/sol-tracing-utils/src/artifact_adapters/abstract_artifact_adapter.ts#L4)* - -**Returns:** *`Promise`* -
-# Class: SolCompilerArtifactAdapter -## Constructors -\+ **new SolCompilerArtifactAdapter**(`artifactsPath?`: undefined | string, `sourcesPath?`: undefined | string): *[SolCompilerArtifactAdapter](#class-solcompilerartifactadapter)* -*Defined in [sol-tracing-utils/src/artifact_adapters/sol_compiler_artifact_adapter.ts:18](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/sol-tracing-utils/src/artifact_adapters/sol_compiler_artifact_adapter.ts#L18)* -Instantiates a SolCompilerArtifactAdapter -**Parameters:** -Name | Type | Description | ------- | ------ | ------ | -`artifactsPath?` | undefined \| string | Path to your artifacts directory | -`sourcesPath?` | undefined \| string | Path to your contract sources directory | -**Returns:** *[SolCompilerArtifactAdapter](#class-solcompilerartifactadapter)* -## Methods -### collectContractsDataAsync +## Type aliases -▸ **collectContractsDataAsync**(): *`Promise`* +### Callback -*Overrides [AbstractArtifactAdapter](_sol_tracing_utils_src_artifact_adapters_abstract_artifact_adapter_.abstractartifactadapter.md).[collectContractsDataAsync](#abstract-collectcontractsdataasync)* +Ƭ **Callback**: *function* -*Defined in [sol-tracing-utils/src/artifact_adapters/sol_compiler_artifact_adapter.ts:44](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/sol-tracing-utils/src/artifact_adapters/sol_compiler_artifact_adapter.ts#L44)* +*Defined in [subproviders/src/types.ts:131](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/subproviders/src/types.ts#L131)* -**Returns:** *`Promise`* +#### Type declaration: -
+▸ (): *void* -# Class: TruffleArtifactAdapter +___ -## Constructors +### ErrorCallback +Ƭ **ErrorCallback**: *function* -\+ **new TruffleArtifactAdapter**(`projectRoot`: string, `solcVersion`: string): *[TruffleArtifactAdapter](#class-truffleartifactadapter)* +*Defined in [subproviders/src/types.ts:130](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/subproviders/src/types.ts#L130)* -*Defined in [sol-tracing-utils/src/artifact_adapters/truffle_artifact_adapter.ts:29](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/sol-tracing-utils/src/artifact_adapters/truffle_artifact_adapter.ts#L29)* +#### Type declaration: -Instantiates a TruffleArtifactAdapter +▸ (`err`: `Error` | null, `data?`: any): *void* **Parameters:** -Name | Type | Description | ------- | ------ | ------ | -`projectRoot` | string | Path to the truffle project's root directory | -`solcVersion` | string | Solidity version with which to compile all the contracts | - -**Returns:** *[TruffleArtifactAdapter](#class-truffleartifactadapter)* - -## Methods - -### collectContractsDataAsync - -▸ **collectContractsDataAsync**(): *`Promise`* - -*Overrides [AbstractArtifactAdapter](_sol_tracing_utils_src_artifact_adapters_abstract_artifact_adapter_.abstractartifactadapter.md).[collectContractsDataAsync](#abstract-collectcontractsdataasync)* +Name | Type | +------ | ------ | +`err` | `Error` \| null | +`data?` | any | -*Defined in [sol-tracing-utils/src/artifact_adapters/truffle_artifact_adapter.ts:40](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/sol-tracing-utils/src/artifact_adapters/truffle_artifact_adapter.ts#L40)* +___ -**Returns:** *`Promise`* -
+### NextCallback +Ƭ **NextCallback**: *function* +*Defined in [subproviders/src/types.ts:133](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/subproviders/src/types.ts#L133)* +#### Type declaration: +▸ (`callback?`: [OnNextCompleted](#onnextcompleted)): *void* +**Parameters:** +Name | Type | +------ | ------ | +`callback?` | [OnNextCompleted](#onnextcompleted) | +___ +### OnNextCompleted +Ƭ **OnNextCompleted**: *function* +*Defined in [subproviders/src/types.ts:132](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/subproviders/src/types.ts#L132)* +#### Type declaration: +▸ (`err`: `Error` | null, `result`: any, `cb`: [Callback](#callback)): *void* +**Parameters:** +Name | Type | +------ | ------ | +`err` | `Error` \| null | +`result` | any | +`cb` | [Callback](#callback) | +
@@ -296,7 +244,7 @@ Name | Type | Description | • **id**: *number* -*Defined in [ethereum-types/src/index.ts:330](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L330)* +*Defined in [ethereum-types/src/index.ts:330](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L330)* ___ @@ -304,7 +252,7 @@ ___ • **jsonrpc**: *string* -*Defined in [ethereum-types/src/index.ts:331](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L331)* +*Defined in [ethereum-types/src/index.ts:331](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L331)* ___ @@ -312,7 +260,7 @@ ___ • **method**: *string* -*Defined in [ethereum-types/src/index.ts:329](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L329)* +*Defined in [ethereum-types/src/index.ts:329](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L329)* ___ @@ -320,7 +268,7 @@ ___ • **params**: *any[]* -*Defined in [ethereum-types/src/index.ts:328](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L328)* +*Defined in [ethereum-types/src/index.ts:328](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L328)*
@@ -333,7 +281,7 @@ ___ • **code**: *number* -*Defined in [ethereum-types/src/index.ts:336](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L336)* +*Defined in [ethereum-types/src/index.ts:336](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L336)* ___ @@ -341,7 +289,7 @@ ___ • **message**: *string* -*Defined in [ethereum-types/src/index.ts:335](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L335)* +*Defined in [ethereum-types/src/index.ts:335](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L335)*
@@ -354,7 +302,7 @@ ___ • **error**? : *[JSONRPCResponseError](#class-jsonrpcresponseerror)* -*Defined in [ethereum-types/src/index.ts:343](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L343)* +*Defined in [ethereum-types/src/index.ts:343](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L343)* ___ @@ -362,7 +310,7 @@ ___ • **id**: *number* -*Defined in [ethereum-types/src/index.ts:341](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L341)* +*Defined in [ethereum-types/src/index.ts:341](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L341)* ___ @@ -370,7 +318,7 @@ ___ • **jsonrpc**: *string* -*Defined in [ethereum-types/src/index.ts:342](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L342)* +*Defined in [ethereum-types/src/index.ts:342](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L342)* ___ @@ -378,7 +326,7 @@ ___ • **result**: *any* -*Defined in [ethereum-types/src/index.ts:340](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L340)* +*Defined in [ethereum-types/src/index.ts:340](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L340)*
@@ -414,108 +362,154 @@ ___ +# Class: RevertTraceSubprovider +This class implements the [web3-provider-engine](https://github.com/MetaMask/provider-engine) subprovider interface. +It is used to report call stack traces whenever a revert occurs. +## Constructors +\+ **new RevertTraceSubprovider**(`artifactAdapter`: `AbstractArtifactAdapter`, `defaultFromAddress`: string, `isVerbose`: boolean): *[RevertTraceSubprovider](#class-reverttracesubprovider)* +*Overrides void* +*Defined in [sol-trace/src/revert_trace_subprovider.ts:27](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/sol-trace/src/revert_trace_subprovider.ts#L27)* +Instantiates a RevertTraceSubprovider instance +**Parameters:** +Name | Type | Default | Description | +------ | ------ | ------ | ------ | +`artifactAdapter` | `AbstractArtifactAdapter` | - | Adapter for used artifacts format (0x, truffle, giveth, etc.) | +`defaultFromAddress` | string | - | default from address to use when sending transactions | +`isVerbose` | boolean | true | If true, we will log any unknown transactions. Otherwise we will ignore them | +**Returns:** *[RevertTraceSubprovider](#class-reverttracesubprovider)* +## Methods +### emitPayloadAsync +▸ **emitPayloadAsync**(`payload`: `Partial`): *`Promise`* +Defined in subproviders/lib/src/subproviders/subprovider.d.ts:25 +Emits a JSON RPC payload that will then be handled by the ProviderEngine instance +this subprovider is a part of. The payload will cascade down the subprovider middleware +stack until finding the responsible entity for handling the request. +**Parameters:** +Name | Type | Description | +------ | ------ | ------ | +`payload` | `Partial` | JSON RPC payload | +**Returns:** *`Promise`* +JSON RPC response payload +___ +### handleRequest - +▸ **handleRequest**(`payload`: `JSONRPCRequestPayload`, `next`: [NextCallback](#nextcallback), `_end`: [ErrorCallback](#errorcallback)): *`Promise`* +*Overrides void* +Defined in sol-tracing-utils/lib/src/trace_collection_subprovider.d.ts:42 - +This method conforms to the web3-provider-engine interface. +It is called internally by the ProviderEngine when it is this subproviders +turn to handle a JSON RPC request. - +**Parameters:** +Name | Type | Description | +------ | ------ | ------ | +`payload` | `JSONRPCRequestPayload` | JSON RPC payload | +`next` | [NextCallback](#nextcallback) | Callback to call if this subprovider decides not to handle the request | +`_end` | [ErrorCallback](#errorcallback) | Callback to call if subprovider handled the request and wants to pass back the request. | +**Returns:** *`Promise`* +___ +### setEngine +▸ **setEngine**(`engine`: `Web3ProviderEngine`): *void* - +*Overrides void* +Defined in sol-tracing-utils/lib/src/trace_collection_subprovider.d.ts:49 +Set's the subprovider's engine to the ProviderEngine it is added to. +This is only called within the ProviderEngine source code, do not call +directly. +**Parameters:** +Name | Type | Description | +------ | ------ | ------ | +`engine` | `Web3ProviderEngine` | The ProviderEngine this subprovider is added to | +**Returns:** *void* +___ +### start +▸ **start**(): *void* +Defined in sol-tracing-utils/lib/src/trace_collection_subprovider.d.ts:29 +Starts trace collection +**Returns:** *void* -# Interface: JSONRPCRequestPayloadWithMethod +___ +### stop -## Properties +▸ **stop**(): *void* -### id -• **id**: *number* +Defined in sol-tracing-utils/lib/src/trace_collection_subprovider.d.ts:33 +Stops trace collection -Defined in ethereum-types/lib/index.d.ts:267 +**Returns:** *void* -___ +
-### jsonrpc -• **jsonrpc**: *string* -Defined in ethereum-types/lib/index.d.ts:268 -___ -### method -• **method**: *string* -*Overrides void* -*Defined in [subproviders/src/types.ts:136](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/subproviders/src/types.ts#L136)* -___ -### params -• **params**: *any[]* -Defined in ethereum-types/lib/index.d.ts:265 -
@@ -524,12 +518,15 @@ Defined in ethereum-types/lib/index.d.ts:265 + + + @@ -537,6 +534,7 @@ Defined in ethereum-types/lib/index.d.ts:265 + @@ -550,29 +548,52 @@ Defined in ethereum-types/lib/index.d.ts:265 -## Type aliases +# Interface: JSONRPCRequestPayloadWithMethod +## Properties +### id +• **id**: *number* +Defined in ethereum-types/lib/index.d.ts:267 + +___ + +### jsonrpc + +• **jsonrpc**: *string* +Defined in ethereum-types/lib/index.d.ts:268 + +___ + +### method +• **method**: *string* +*Overrides void* +*Defined in [subproviders/src/types.ts:136](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/subproviders/src/types.ts#L136)* +___ +### params +• **params**: *any[]* +Defined in ethereum-types/lib/index.d.ts:265 +
@@ -594,19 +615,15 @@ Defined in ethereum-types/lib/index.d.ts:265 -
-
-
-
@@ -626,76 +643,59 @@ Defined in ethereum-types/lib/index.d.ts:265 ## Type aliases -### Callback -Ƭ **Callback**: *function* -*Defined in [subproviders/src/types.ts:131](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/subproviders/src/types.ts#L131)* -#### Type declaration: -▸ (): *void* -___ -### ErrorCallback -Ƭ **ErrorCallback**: *function* -*Defined in [subproviders/src/types.ts:130](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/subproviders/src/types.ts#L130)* -#### Type declaration: -▸ (`err`: `Error` | null, `data?`: any): *void* -**Parameters:** -Name | Type | ------- | ------ | -`err` | `Error` \| null | -`data?` | any | -___ -### NextCallback -Ƭ **NextCallback**: *function* -*Defined in [subproviders/src/types.ts:133](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/subproviders/src/types.ts#L133)* -#### Type declaration: -▸ (`callback?`: [OnNextCompleted](#onnextcompleted)): *void* -**Parameters:** -Name | Type | ------- | ------ | -`callback?` | [OnNextCompleted](#onnextcompleted) | -___ -### OnNextCompleted -Ƭ **OnNextCompleted**: *function* -*Defined in [subproviders/src/types.ts:132](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/subproviders/src/types.ts#L132)* -#### Type declaration: -▸ (`err`: `Error` | null, `result`: any, `cb`: [Callback](#callback)): *void* -**Parameters:** -Name | Type | ------- | ------ | -`err` | `Error` \| null | -`result` | any | -`cb` | [Callback](#callback) | -
+ + + + + + + + + +
+ + + +
+ + + +
+ + + +
diff --git a/packages/sol-trace/package.json b/packages/sol-trace/package.json index 5550e1a069..83acbb599d 100644 --- a/packages/sol-trace/package.json +++ b/packages/sol-trace/package.json @@ -1,6 +1,6 @@ { "name": "@0x/sol-trace", - "version": "2.1.0-beta.0", + "version": "2.1.0-beta.1", "engines": { "node": ">=6.12" }, @@ -33,11 +33,11 @@ }, "homepage": "https://github.com/0xProject/0x-monorepo/packages/sol-trace/README.md", "dependencies": { - "@0x/sol-tracing-utils": "^6.1.0-beta.0", - "@0x/subproviders": "^5.1.0-beta.0", - "@0x/typescript-typings": "^4.4.0-beta.0", + "@0x/sol-tracing-utils": "^6.1.0-beta.1", + "@0x/subproviders": "^5.1.0-beta.1", + "@0x/typescript-typings": "^4.4.0-beta.1", "chalk": "^2.3.0", - "ethereum-types": "^2.2.0-beta.0", + "ethereum-types": "^2.2.0-beta.1", "ethereumjs-util": "^5.1.1", "lodash": "^4.17.11", "loglevel": "^1.6.1", @@ -45,7 +45,7 @@ }, "devDependencies": { "@0x/ts-doc-gen": "^0.0.22", - "@0x/tslint-config": "^3.0.1", + "@0x/tslint-config": "^3.1.0-beta.1", "@types/loglevel": "^1.5.3", "@types/node": "*", "@types/web3-provider-engine": "^14.0.0", diff --git a/packages/sol-tracing-utils/CHANGELOG.json b/packages/sol-tracing-utils/CHANGELOG.json index 9996466552..1fee5e067c 100644 --- a/packages/sol-tracing-utils/CHANGELOG.json +++ b/packages/sol-tracing-utils/CHANGELOG.json @@ -1,4 +1,13 @@ [ + { + "version": "6.1.0-beta.1", + "changes": [ + { + "note": "Dependencies updated" + } + ], + "timestamp": 1573159180 + }, { "version": "6.1.0-beta.0", "changes": [ diff --git a/packages/sol-tracing-utils/CHANGELOG.md b/packages/sol-tracing-utils/CHANGELOG.md index 30f7884801..fdc0f6adf1 100644 --- a/packages/sol-tracing-utils/CHANGELOG.md +++ b/packages/sol-tracing-utils/CHANGELOG.md @@ -5,6 +5,10 @@ Edit the package's CHANGELOG.json file only. CHANGELOG +## v6.1.0-beta.1 - _November 7, 2019_ + + * Dependencies updated + ## v6.1.0-beta.0 - _October 3, 2019_ * Dependencies updated diff --git a/packages/sol-tracing-utils/package.json b/packages/sol-tracing-utils/package.json index 02b3a19356..769873c96d 100644 --- a/packages/sol-tracing-utils/package.json +++ b/packages/sol-tracing-utils/package.json @@ -1,6 +1,6 @@ { "name": "@0x/sol-tracing-utils", - "version": "6.1.0-beta.0", + "version": "6.1.0-beta.1", "engines": { "node": ">=6.12" }, @@ -38,16 +38,16 @@ }, "homepage": "https://github.com/0xProject/0x-monorepo/packages/sol-tracing-utils/README.md", "dependencies": { - "@0x/dev-utils": "^2.4.0-beta.0", - "@0x/sol-compiler": "^3.2.0-beta.0", - "@0x/sol-resolver": "^2.1.0-beta.0", - "@0x/subproviders": "^5.1.0-beta.0", - "@0x/typescript-typings": "^4.4.0-beta.0", - "@0x/utils": "^4.6.0-beta.0", - "@0x/web3-wrapper": "^6.1.0-beta.0", + "@0x/dev-utils": "^2.4.0-beta.1", + "@0x/sol-compiler": "^3.2.0-beta.1", + "@0x/sol-resolver": "^2.1.0-beta.1", + "@0x/subproviders": "^5.1.0-beta.1", + "@0x/typescript-typings": "^4.4.0-beta.1", + "@0x/utils": "^4.6.0-beta.1", + "@0x/web3-wrapper": "^6.1.0-beta.1", "@types/solidity-parser-antlr": "^0.2.3", "chalk": "^2.3.0", - "ethereum-types": "^2.2.0-beta.0", + "ethereum-types": "^2.2.0-beta.1", "ethereumjs-util": "^5.1.1", "ethers": "~4.0.4", "glob": "^7.1.2", @@ -61,7 +61,7 @@ "solidity-parser-antlr": "^0.4.2" }, "devDependencies": { - "@0x/tslint-config": "^3.0.1", + "@0x/tslint-config": "^3.1.0-beta.1", "@types/istanbul": "^0.4.30", "@types/loglevel": "^1.5.3", "@types/mkdirp": "^0.5.2", diff --git a/packages/sra-spec/CHANGELOG.json b/packages/sra-spec/CHANGELOG.json index aaa3fa77b3..3f6dff3471 100644 --- a/packages/sra-spec/CHANGELOG.json +++ b/packages/sra-spec/CHANGELOG.json @@ -1,12 +1,13 @@ [ { - "version": "3.0.0-beta.0", + "version": "2.1.0-beta.1", "changes": [ { "note": "All references to network ID have been removed, and references to chain ID have been introduced instead", "pr": 2313 } - ] + ], + "timestamp": 1573159180 }, { "version": "2.1.0-beta.0", diff --git a/packages/sra-spec/CHANGELOG.md b/packages/sra-spec/CHANGELOG.md index 066e399a61..3fd349a5c2 100644 --- a/packages/sra-spec/CHANGELOG.md +++ b/packages/sra-spec/CHANGELOG.md @@ -5,6 +5,10 @@ Edit the package's CHANGELOG.json file only. CHANGELOG +## v2.1.0-beta.1 - _November 7, 2019_ + + * All references to network ID have been removed, and references to chain ID have been introduced instead (#2313) + ## v2.1.0-beta.0 - _October 3, 2019_ * Dependencies updated diff --git a/packages/sra-spec/package.json b/packages/sra-spec/package.json index 58942beb49..4df92f32d0 100644 --- a/packages/sra-spec/package.json +++ b/packages/sra-spec/package.json @@ -1,6 +1,6 @@ { "name": "@0x/sra-spec", - "version": "2.1.0-beta.0", + "version": "2.1.0-beta.1", "engines": { "node": ">=6.12" }, @@ -35,11 +35,11 @@ }, "homepage": "https://github.com/0xProject/0x-monorepo/packages/sra-spec/README.md", "dependencies": { - "@0x/json-schemas": "^4.1.0-beta.0", + "@0x/json-schemas": "^4.1.0-beta.1", "@loopback/openapi-v3-types": "^0.8.2" }, "devDependencies": { - "@0x/tslint-config": "^3.0.1", + "@0x/tslint-config": "^3.1.0-beta.1", "@types/mocha": "^5.2.7", "@types/node": "*", "chai": "^4.0.1", diff --git a/packages/sra-spec/src/examples/errors.ts b/packages/sra-spec/src/examples/errors.ts index 525367ef3a..1c834c55cd 100644 --- a/packages/sra-spec/src/examples/errors.ts +++ b/packages/sra-spec/src/examples/errors.ts @@ -1,11 +1,11 @@ export const validationError = { - code: 100, + code: 101, reason: 'Validation failed', validationErrors: [ { - field: 'chainId', - code: 1006, - reason: 'Chain id 42 is not supported', + field: 'maker', + code: 1002, + reason: 'Invalid address', }, ], }; diff --git a/packages/sra-spec/src/md/introduction.md b/packages/sra-spec/src/md/introduction.md index c735c44361..79c588f242 100644 --- a/packages/sra-spec/src/md/introduction.md +++ b/packages/sra-spec/src/md/introduction.md @@ -34,41 +34,6 @@ All endpoints that are paginated should return a `total`, `page`, `perPage` and These requests include the [`/v3/asset_pairs`](#operation/getAssetPairs), [`/v3/orders`](#operation/getOrders), [`/v3/fee_recipients`](#operation/getFeeRecipients) and [`/v3/orderbook`](#operation/getOrderbook) endpoints. -# Chain Id - -All requests should be able to specify a **?chainId** query param for all supported chains. For example: - -```bash -$ curl https://api.example-relayer.com/v3/asset_pairs?chainId=1 -``` - -If the query param is not provided, it should default to **1** (mainnet). - -Chains and their Ids: - -| Chain Id | Chain Name | -| -------- | ---------- | -| 1 | Mainnet | -| 42 | Kovan | -| 3 | Ropsten | -| 4 | Rinkeby | - -If a certain chain is not supported, the response should **400** as specified in the [error response](#section/Errors) section. For example: - -```json -{ - "code": 100, - "reason": "Validation failed", - "validationErrors": [ - { - "field": "chainId", - "code": 1006, - "reason": "Chain id 42 is not supported" - } - ] -} -``` - # Link Header A [Link Header](https://tools.ietf.org/html/rfc5988) can be included in a response to provide clients with more context about paging diff --git a/packages/sra-spec/src/parameters.ts b/packages/sra-spec/src/parameters.ts index 496e9d05cb..7915598c53 100644 --- a/packages/sra-spec/src/parameters.ts +++ b/packages/sra-spec/src/parameters.ts @@ -22,18 +22,7 @@ export const paginationParameters: ParameterObject[] = [ }, ]; -export const chainIdParameter: ParameterObject = { - name: 'chainId', - in: 'query', - description: 'The id of the Ethereum chain', - example: 42, - schema: { - type: 'number', - default: 1, - }, -}; - export const generateParameters = (parameters: ParameterObject[], isPaginated: boolean = false): ParameterObject[] => { const optionalParameters = isPaginated ? paginationParameters : []; - return [...parameters, chainIdParameter, ...optionalParameters]; + return [...parameters, ...optionalParameters]; }; diff --git a/packages/subproviders/CHANGELOG.json b/packages/subproviders/CHANGELOG.json index 718b2d2e36..6d4e234332 100644 --- a/packages/subproviders/CHANGELOG.json +++ b/packages/subproviders/CHANGELOG.json @@ -1,4 +1,22 @@ [ + { + "version": "5.1.0-beta.2", + "changes": [ + { + "note": "Adds DebugSubprovider", + "pr": 2329 + } + ] + }, + { + "version": "5.1.0-beta.1", + "changes": [ + { + "note": "Dependencies updated" + } + ], + "timestamp": 1573159180 + }, { "version": "5.1.0-beta.0", "changes": [ diff --git a/packages/subproviders/CHANGELOG.md b/packages/subproviders/CHANGELOG.md index b0b9fac5a1..7206635c5b 100644 --- a/packages/subproviders/CHANGELOG.md +++ b/packages/subproviders/CHANGELOG.md @@ -5,6 +5,10 @@ Edit the package's CHANGELOG.json file only. CHANGELOG +## v5.1.0-beta.1 - _November 7, 2019_ + + * Dependencies updated + ## v5.1.0-beta.0 - _October 3, 2019_ * Dependencies updated diff --git a/packages/subproviders/docs/reference.mdx b/packages/subproviders/docs/reference.mdx index a0ad4f0629..e549a76af6 100644 --- a/packages/subproviders/docs/reference.mdx +++ b/packages/subproviders/docs/reference.mdx @@ -1,3 +1,5 @@ + + # Class: EmptyWalletSubprovider This class implements the [web3-provider-engine](https://github.com/MetaMask/provider-engine) subprovider interface. @@ -12,7 +14,7 @@ It intercepts the `eth_accounts` JSON RPC requests and never returns any address *Inherited from [Subprovider](#interface-subprovider).[emitPayloadAsync](#emitpayloadasync)* -*Defined in [subproviders/src/subproviders/subprovider.ts:55](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/subproviders/src/subproviders/subprovider.ts#L55)* +*Defined in [subproviders/src/subproviders/subprovider.ts:55](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/subproviders/src/subproviders/subprovider.ts#L55)* Emits a JSON RPC payload that will then be handled by the ProviderEngine instance this subprovider is a part of. The payload will cascade down the subprovider middleware @@ -36,7 +38,7 @@ ___ *Overrides [Subprovider](_subproviders_src_subproviders_subprovider_.subprovider.md).[handleRequest](#abstract-handlerequest)* -*Defined in [subproviders/src/subproviders/empty_wallet_subprovider.ts:21](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/subproviders/src/subproviders/empty_wallet_subprovider.ts#L21)* +*Defined in [subproviders/src/subproviders/empty_wallet_subprovider.ts:21](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/subproviders/src/subproviders/empty_wallet_subprovider.ts#L21)* This method conforms to the web3-provider-engine interface. It is called internally by the ProviderEngine when it is this subproviders @@ -60,7 +62,7 @@ ___ *Inherited from [Subprovider](#interface-subprovider).[setEngine](#setengine)* -*Defined in [subproviders/src/subproviders/subprovider.ts:68](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/subproviders/src/subproviders/subprovider.ts#L68)* +*Defined in [subproviders/src/subproviders/subprovider.ts:68](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/subproviders/src/subproviders/subprovider.ts#L68)* Set's the subprovider's engine to the ProviderEngine it is added to. This is only called within the ProviderEngine source code, do not call @@ -88,7 +90,7 @@ It intercepts the `eth_estimateGas` JSON RPC call and always returns a constant \+ **new FakeGasEstimateSubprovider**(`constantGasAmount`: number): *[FakeGasEstimateSubprovider](#class-fakegasestimatesubprovider)* -*Defined in [subproviders/src/subproviders/fake_gas_estimate_subprovider.ts:17](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/subproviders/src/subproviders/fake_gas_estimate_subprovider.ts#L17)* +*Defined in [subproviders/src/subproviders/fake_gas_estimate_subprovider.ts:17](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/subproviders/src/subproviders/fake_gas_estimate_subprovider.ts#L17)* Instantiates an instance of the FakeGasEstimateSubprovider @@ -108,7 +110,7 @@ Name | Type | Description | *Inherited from [Subprovider](#interface-subprovider).[emitPayloadAsync](#emitpayloadasync)* -*Defined in [subproviders/src/subproviders/subprovider.ts:55](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/subproviders/src/subproviders/subprovider.ts#L55)* +*Defined in [subproviders/src/subproviders/subprovider.ts:55](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/subproviders/src/subproviders/subprovider.ts#L55)* Emits a JSON RPC payload that will then be handled by the ProviderEngine instance this subprovider is a part of. The payload will cascade down the subprovider middleware @@ -132,7 +134,7 @@ ___ *Overrides [Subprovider](_subproviders_src_subproviders_subprovider_.subprovider.md).[handleRequest](#abstract-handlerequest)* -*Defined in [subproviders/src/subproviders/fake_gas_estimate_subprovider.ts:35](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/subproviders/src/subproviders/fake_gas_estimate_subprovider.ts#L35)* +*Defined in [subproviders/src/subproviders/fake_gas_estimate_subprovider.ts:35](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/subproviders/src/subproviders/fake_gas_estimate_subprovider.ts#L35)* This method conforms to the web3-provider-engine interface. It is called internally by the ProviderEngine when it is this subproviders @@ -156,7 +158,7 @@ ___ *Inherited from [Subprovider](#interface-subprovider).[setEngine](#setengine)* -*Defined in [subproviders/src/subproviders/subprovider.ts:68](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/subproviders/src/subproviders/subprovider.ts#L68)* +*Defined in [subproviders/src/subproviders/subprovider.ts:68](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/subproviders/src/subproviders/subprovider.ts#L68)* Set's the subprovider's engine to the ProviderEngine it is added to. This is only called within the ProviderEngine source code, do not call @@ -184,7 +186,7 @@ It intercepts all JSON RPC requests and relays them to an in-process ganache ins \+ **new GanacheSubprovider**(`opts`: `GanacheOpts`): *[GanacheSubprovider](#class-ganachesubprovider)* -*Defined in [subproviders/src/subproviders/ganache.ts:13](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/subproviders/src/subproviders/ganache.ts#L13)* +*Defined in [subproviders/src/subproviders/ganache.ts:13](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/subproviders/src/subproviders/ganache.ts#L13)* Instantiates a GanacheSubprovider @@ -204,7 +206,7 @@ Name | Type | Description | *Inherited from [Subprovider](#interface-subprovider).[emitPayloadAsync](#emitpayloadasync)* -*Defined in [subproviders/src/subproviders/subprovider.ts:55](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/subproviders/src/subproviders/subprovider.ts#L55)* +*Defined in [subproviders/src/subproviders/subprovider.ts:55](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/subproviders/src/subproviders/subprovider.ts#L55)* Emits a JSON RPC payload that will then be handled by the ProviderEngine instance this subprovider is a part of. The payload will cascade down the subprovider middleware @@ -228,7 +230,7 @@ ___ *Overrides [Subprovider](_subproviders_src_subproviders_subprovider_.subprovider.md).[handleRequest](#abstract-handlerequest)* -*Defined in [subproviders/src/subproviders/ganache.ts:31](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/subproviders/src/subproviders/ganache.ts#L31)* +*Defined in [subproviders/src/subproviders/ganache.ts:31](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/subproviders/src/subproviders/ganache.ts#L31)* This method conforms to the web3-provider-engine interface. It is called internally by the ProviderEngine when it is this subproviders @@ -252,7 +254,7 @@ ___ *Inherited from [Subprovider](#interface-subprovider).[setEngine](#setengine)* -*Defined in [subproviders/src/subproviders/subprovider.ts:68](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/subproviders/src/subproviders/subprovider.ts#L68)* +*Defined in [subproviders/src/subproviders/subprovider.ts:68](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/subproviders/src/subproviders/subprovider.ts#L68)* Set's the subprovider's engine to the ProviderEngine it is added to. This is only called within the ProviderEngine source code, do not call @@ -281,7 +283,7 @@ re-routes them to a Ledger device plugged into the users computer. \+ **new LedgerSubprovider**(`config`: [LedgerSubproviderConfigs](#interface-ledgersubproviderconfigs)): *[LedgerSubprovider](#class-ledgersubprovider)* -*Defined in [subproviders/src/subproviders/ledger.ts:41](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/subproviders/src/subproviders/ledger.ts#L41)* +*Defined in [subproviders/src/subproviders/ledger.ts:41](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/subproviders/src/subproviders/ledger.ts#L41)* Instantiates a LedgerSubprovider. Defaults to derivationPath set to `44'/60'/0'`. TestRPC/Ganache defaults to `m/44'/60'/0'/0`, so set this in the configs if desired. @@ -304,7 +306,7 @@ LedgerSubprovider instance *Inherited from [Subprovider](#interface-subprovider).[emitPayloadAsync](#emitpayloadasync)* -*Defined in [subproviders/src/subproviders/subprovider.ts:55](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/subproviders/src/subproviders/subprovider.ts#L55)* +*Defined in [subproviders/src/subproviders/subprovider.ts:55](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/subproviders/src/subproviders/subprovider.ts#L55)* Emits a JSON RPC payload that will then be handled by the ProviderEngine instance this subprovider is a part of. The payload will cascade down the subprovider middleware @@ -328,7 +330,7 @@ ___ *Overrides void* -*Defined in [subproviders/src/subproviders/ledger.ts:87](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/subproviders/src/subproviders/ledger.ts#L87)* +*Defined in [subproviders/src/subproviders/ledger.ts:87](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/subproviders/src/subproviders/ledger.ts#L87)* Retrieve a users Ledger accounts. The accounts are derived from the derivationPath, master public key and chain code. Because of this, you can request as many accounts @@ -352,7 +354,7 @@ ___ ▸ **getPath**(): *string* -*Defined in [subproviders/src/subproviders/ledger.ts:68](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/subproviders/src/subproviders/ledger.ts#L68)* +*Defined in [subproviders/src/subproviders/ledger.ts:68](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/subproviders/src/subproviders/ledger.ts#L68)* Retrieve the set derivation path @@ -370,7 +372,7 @@ ___ *Overrides [Subprovider](_subproviders_src_subproviders_subprovider_.subprovider.md).[handleRequest](#abstract-handlerequest)* -*Defined in [subproviders/src/subproviders/base_wallet_subprovider.ts:37](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/subproviders/src/subproviders/base_wallet_subprovider.ts#L37)* +*Defined in [subproviders/src/subproviders/base_wallet_subprovider.ts:37](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/subproviders/src/subproviders/base_wallet_subprovider.ts#L37)* This method conforms to the web3-provider-engine interface. It is called internally by the ProviderEngine when it is this subproviders @@ -394,7 +396,7 @@ ___ *Inherited from [Subprovider](#interface-subprovider).[setEngine](#setengine)* -*Defined in [subproviders/src/subproviders/subprovider.ts:68](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/subproviders/src/subproviders/subprovider.ts#L68)* +*Defined in [subproviders/src/subproviders/subprovider.ts:68](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/subproviders/src/subproviders/subprovider.ts#L68)* Set's the subprovider's engine to the ProviderEngine it is added to. This is only called within the ProviderEngine source code, do not call @@ -414,7 +416,7 @@ ___ ▸ **setPath**(`basDerivationPath`: string): *void* -*Defined in [subproviders/src/subproviders/ledger.ts:75](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/subproviders/src/subproviders/ledger.ts#L75)* +*Defined in [subproviders/src/subproviders/ledger.ts:75](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/subproviders/src/subproviders/ledger.ts#L75)* Set a desired derivation path when computing the available user addresses @@ -434,7 +436,7 @@ ___ *Overrides void* -*Defined in [subproviders/src/subproviders/ledger.ts:158](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/subproviders/src/subproviders/ledger.ts#L158)* +*Defined in [subproviders/src/subproviders/ledger.ts:158](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/subproviders/src/subproviders/ledger.ts#L158)* Sign a personal Ethereum signed message. The signing account will be the account associated with the provided address. @@ -462,7 +464,7 @@ ___ *Overrides void* -*Defined in [subproviders/src/subproviders/ledger.ts:101](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/subproviders/src/subproviders/ledger.ts#L101)* +*Defined in [subproviders/src/subproviders/ledger.ts:101](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/subproviders/src/subproviders/ledger.ts#L101)* Signs a transaction on the Ledger with the account specificed by the `from` field in txParams. If you've added the LedgerSubprovider to your app's provider, you can simply send an `eth_sendTransaction` @@ -487,7 +489,7 @@ ___ *Overrides void* -*Defined in [subproviders/src/subproviders/ledger.ts:196](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/subproviders/src/subproviders/ledger.ts#L196)* +*Defined in [subproviders/src/subproviders/ledger.ts:196](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/subproviders/src/subproviders/ledger.ts#L196)* eth_signTypedData is currently not supported on Ledger devices. @@ -520,7 +522,7 @@ are passed onwards for subsequent subproviders to handle. \+ **new MetamaskSubprovider**(`supportedProvider`: [SupportedProvider](#supportedprovider)): *[MetamaskSubprovider](#class-metamasksubprovider)* -*Defined in [subproviders/src/subproviders/metamask_subprovider.ts:19](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/subproviders/src/subproviders/metamask_subprovider.ts#L19)* +*Defined in [subproviders/src/subproviders/metamask_subprovider.ts:19](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/subproviders/src/subproviders/metamask_subprovider.ts#L19)* Instantiates a new MetamaskSubprovider @@ -540,7 +542,7 @@ Name | Type | Description | *Inherited from [Subprovider](#interface-subprovider).[emitPayloadAsync](#emitpayloadasync)* -*Defined in [subproviders/src/subproviders/subprovider.ts:55](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/subproviders/src/subproviders/subprovider.ts#L55)* +*Defined in [subproviders/src/subproviders/subprovider.ts:55](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/subproviders/src/subproviders/subprovider.ts#L55)* Emits a JSON RPC payload that will then be handled by the ProviderEngine instance this subprovider is a part of. The payload will cascade down the subprovider middleware @@ -564,7 +566,7 @@ ___ *Overrides [Subprovider](_subproviders_src_subproviders_subprovider_.subprovider.md).[handleRequest](#abstract-handlerequest)* -*Defined in [subproviders/src/subproviders/metamask_subprovider.ts:39](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/subproviders/src/subproviders/metamask_subprovider.ts#L39)* +*Defined in [subproviders/src/subproviders/metamask_subprovider.ts:39](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/subproviders/src/subproviders/metamask_subprovider.ts#L39)* This method conforms to the web3-provider-engine interface. It is called internally by the ProviderEngine when it is this subproviders @@ -586,7 +588,7 @@ ___ ▸ **sendAsync**(`payload`: `JSONRPCRequestPayload`, `callback`: [ErrorCallback](#errorcallback)): *void* -*Defined in [subproviders/src/subproviders/metamask_subprovider.ts:117](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/subproviders/src/subproviders/metamask_subprovider.ts#L117)* +*Defined in [subproviders/src/subproviders/metamask_subprovider.ts:117](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/subproviders/src/subproviders/metamask_subprovider.ts#L117)* This method conforms to the provider sendAsync interface. Allowing the MetamaskSubprovider to be used as a generic provider (outside of Web3ProviderEngine) with the @@ -611,7 +613,7 @@ ___ *Inherited from [Subprovider](#interface-subprovider).[setEngine](#setengine)* -*Defined in [subproviders/src/subproviders/subprovider.ts:68](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/subproviders/src/subproviders/subprovider.ts#L68)* +*Defined in [subproviders/src/subproviders/subprovider.ts:68](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/subproviders/src/subproviders/subprovider.ts#L68)* Set's the subprovider's engine to the ProviderEngine it is added to. This is only called within the ProviderEngine source code, do not call @@ -640,7 +642,7 @@ all requests with accounts derived from the supplied mnemonic. \+ **new MnemonicWalletSubprovider**(`config`: [MnemonicWalletSubproviderConfigs](#interface-mnemonicwalletsubproviderconfigs)): *[MnemonicWalletSubprovider](#class-mnemonicwalletsubprovider)* -*Defined in [subproviders/src/subproviders/mnemonic_wallet.ts:27](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/subproviders/src/subproviders/mnemonic_wallet.ts#L27)* +*Defined in [subproviders/src/subproviders/mnemonic_wallet.ts:27](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/subproviders/src/subproviders/mnemonic_wallet.ts#L27)* Instantiates a MnemonicWalletSubprovider. Defaults to baseDerivationPath set to `44'/60'/0'/0`. This is the default in TestRPC/Ganache, it can be overridden if desired. @@ -663,7 +665,7 @@ MnemonicWalletSubprovider instance *Inherited from [Subprovider](#interface-subprovider).[emitPayloadAsync](#emitpayloadasync)* -*Defined in [subproviders/src/subproviders/subprovider.ts:55](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/subproviders/src/subproviders/subprovider.ts#L55)* +*Defined in [subproviders/src/subproviders/subprovider.ts:55](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/subproviders/src/subproviders/subprovider.ts#L55)* Emits a JSON RPC payload that will then be handled by the ProviderEngine instance this subprovider is a part of. The payload will cascade down the subprovider middleware @@ -687,7 +689,7 @@ ___ *Overrides void* -*Defined in [subproviders/src/subproviders/mnemonic_wallet.ts:70](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/subproviders/src/subproviders/mnemonic_wallet.ts#L70)* +*Defined in [subproviders/src/subproviders/mnemonic_wallet.ts:70](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/subproviders/src/subproviders/mnemonic_wallet.ts#L70)* Retrieve the accounts associated with the mnemonic. This method is implicitly called when issuing a `eth_accounts` JSON RPC request @@ -709,7 +711,7 @@ ___ ▸ **getPath**(): *string* -*Defined in [subproviders/src/subproviders/mnemonic_wallet.ts:52](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/subproviders/src/subproviders/mnemonic_wallet.ts#L52)* +*Defined in [subproviders/src/subproviders/mnemonic_wallet.ts:52](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/subproviders/src/subproviders/mnemonic_wallet.ts#L52)* Retrieve the set derivation path @@ -727,7 +729,7 @@ ___ *Overrides [Subprovider](_subproviders_src_subproviders_subprovider_.subprovider.md).[handleRequest](#abstract-handlerequest)* -*Defined in [subproviders/src/subproviders/base_wallet_subprovider.ts:37](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/subproviders/src/subproviders/base_wallet_subprovider.ts#L37)* +*Defined in [subproviders/src/subproviders/base_wallet_subprovider.ts:37](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/subproviders/src/subproviders/base_wallet_subprovider.ts#L37)* This method conforms to the web3-provider-engine interface. It is called internally by the ProviderEngine when it is this subproviders @@ -751,7 +753,7 @@ ___ *Inherited from [Subprovider](#interface-subprovider).[setEngine](#setengine)* -*Defined in [subproviders/src/subproviders/subprovider.ts:68](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/subproviders/src/subproviders/subprovider.ts#L68)* +*Defined in [subproviders/src/subproviders/subprovider.ts:68](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/subproviders/src/subproviders/subprovider.ts#L68)* Set's the subprovider's engine to the ProviderEngine it is added to. This is only called within the ProviderEngine source code, do not call @@ -771,7 +773,7 @@ ___ ▸ **setPath**(`baseDerivationPath`: string): *void* -*Defined in [subproviders/src/subproviders/mnemonic_wallet.ts:59](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/subproviders/src/subproviders/mnemonic_wallet.ts#L59)* +*Defined in [subproviders/src/subproviders/mnemonic_wallet.ts:59](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/subproviders/src/subproviders/mnemonic_wallet.ts#L59)* Set a desired derivation path when computing the available user addresses @@ -791,7 +793,7 @@ ___ *Overrides void* -*Defined in [subproviders/src/subproviders/mnemonic_wallet.ts:102](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/subproviders/src/subproviders/mnemonic_wallet.ts#L102)* +*Defined in [subproviders/src/subproviders/mnemonic_wallet.ts:102](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/subproviders/src/subproviders/mnemonic_wallet.ts#L102)* Sign a personal Ethereum signed message. The signing account will be the account associated with the provided address. If you've added the MnemonicWalletSubprovider to @@ -818,7 +820,7 @@ ___ *Overrides void* -*Defined in [subproviders/src/subproviders/mnemonic_wallet.ts:84](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/subproviders/src/subproviders/mnemonic_wallet.ts#L84)* +*Defined in [subproviders/src/subproviders/mnemonic_wallet.ts:84](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/subproviders/src/subproviders/mnemonic_wallet.ts#L84)* Signs a transaction with the account specificed by the `from` field in txParams. If you've added this Subprovider to your app's provider, you can simply send @@ -843,7 +845,7 @@ ___ *Overrides void* -*Defined in [subproviders/src/subproviders/mnemonic_wallet.ts:122](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/subproviders/src/subproviders/mnemonic_wallet.ts#L122)* +*Defined in [subproviders/src/subproviders/mnemonic_wallet.ts:122](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/subproviders/src/subproviders/mnemonic_wallet.ts#L122)* Sign an EIP712 Typed Data message. The signing account will be the account associated with the provided address. If you've added this MnemonicWalletSubprovider to @@ -879,7 +881,7 @@ We added the additional feature of clearing the cached nonce value when a `nonce *Inherited from [Subprovider](#interface-subprovider).[emitPayloadAsync](#emitpayloadasync)* -*Defined in [subproviders/src/subproviders/subprovider.ts:55](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/subproviders/src/subproviders/subprovider.ts#L55)* +*Defined in [subproviders/src/subproviders/subprovider.ts:55](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/subproviders/src/subproviders/subprovider.ts#L55)* Emits a JSON RPC payload that will then be handled by the ProviderEngine instance this subprovider is a part of. The payload will cascade down the subprovider middleware @@ -903,7 +905,7 @@ ___ *Overrides [Subprovider](_subproviders_src_subproviders_subprovider_.subprovider.md).[handleRequest](#abstract-handlerequest)* -*Defined in [subproviders/src/subproviders/nonce_tracker.ts:57](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/subproviders/src/subproviders/nonce_tracker.ts#L57)* +*Defined in [subproviders/src/subproviders/nonce_tracker.ts:57](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/subproviders/src/subproviders/nonce_tracker.ts#L57)* This method conforms to the web3-provider-engine interface. It is called internally by the ProviderEngine when it is this subproviders @@ -927,7 +929,7 @@ ___ *Inherited from [Subprovider](#interface-subprovider).[setEngine](#setengine)* -*Defined in [subproviders/src/subproviders/subprovider.ts:68](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/subproviders/src/subproviders/subprovider.ts#L68)* +*Defined in [subproviders/src/subproviders/subprovider.ts:68](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/subproviders/src/subproviders/subprovider.ts#L68)* Set's the subprovider's engine to the ProviderEngine it is added to. This is only called within the ProviderEngine source code, do not call @@ -956,7 +958,7 @@ all requests with the supplied Ethereum private key. \+ **new PrivateKeyWalletSubprovider**(`privateKey`: string): *[PrivateKeyWalletSubprovider](#class-privatekeywalletsubprovider)* -*Defined in [subproviders/src/subproviders/private_key_wallet.ts:19](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/subproviders/src/subproviders/private_key_wallet.ts#L19)* +*Defined in [subproviders/src/subproviders/private_key_wallet.ts:19](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/subproviders/src/subproviders/private_key_wallet.ts#L19)* Instantiates a PrivateKeyWalletSubprovider. @@ -978,7 +980,7 @@ PrivateKeyWalletSubprovider instance *Inherited from [Subprovider](#interface-subprovider).[emitPayloadAsync](#emitpayloadasync)* -*Defined in [subproviders/src/subproviders/subprovider.ts:55](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/subproviders/src/subproviders/subprovider.ts#L55)* +*Defined in [subproviders/src/subproviders/subprovider.ts:55](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/subproviders/src/subproviders/subprovider.ts#L55)* Emits a JSON RPC payload that will then be handled by the ProviderEngine instance this subprovider is a part of. The payload will cascade down the subprovider middleware @@ -1002,7 +1004,7 @@ ___ *Overrides void* -*Defined in [subproviders/src/subproviders/private_key_wallet.ts:37](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/subproviders/src/subproviders/private_key_wallet.ts#L37)* +*Defined in [subproviders/src/subproviders/private_key_wallet.ts:37](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/subproviders/src/subproviders/private_key_wallet.ts#L37)* Retrieve the account associated with the supplied private key. This method is implicitly called when issuing a `eth_accounts` JSON RPC request @@ -1022,7 +1024,7 @@ ___ *Overrides [Subprovider](_subproviders_src_subproviders_subprovider_.subprovider.md).[handleRequest](#abstract-handlerequest)* -*Defined in [subproviders/src/subproviders/base_wallet_subprovider.ts:37](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/subproviders/src/subproviders/base_wallet_subprovider.ts#L37)* +*Defined in [subproviders/src/subproviders/base_wallet_subprovider.ts:37](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/subproviders/src/subproviders/base_wallet_subprovider.ts#L37)* This method conforms to the web3-provider-engine interface. It is called internally by the ProviderEngine when it is this subproviders @@ -1046,7 +1048,7 @@ ___ *Inherited from [Subprovider](#interface-subprovider).[setEngine](#setengine)* -*Defined in [subproviders/src/subproviders/subprovider.ts:68](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/subproviders/src/subproviders/subprovider.ts#L68)* +*Defined in [subproviders/src/subproviders/subprovider.ts:68](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/subproviders/src/subproviders/subprovider.ts#L68)* Set's the subprovider's engine to the ProviderEngine it is added to. This is only called within the ProviderEngine source code, do not call @@ -1068,7 +1070,7 @@ ___ *Overrides void* -*Defined in [subproviders/src/subproviders/private_key_wallet.ts:72](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/subproviders/src/subproviders/private_key_wallet.ts#L72)* +*Defined in [subproviders/src/subproviders/private_key_wallet.ts:72](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/subproviders/src/subproviders/private_key_wallet.ts#L72)* Sign a personal Ethereum signed message. The signing address will be calculated from the private key. The address must be provided it must match the address calculated from the private key. @@ -1095,7 +1097,7 @@ ___ *Overrides void* -*Defined in [subproviders/src/subproviders/private_key_wallet.ts:48](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/subproviders/src/subproviders/private_key_wallet.ts#L48)* +*Defined in [subproviders/src/subproviders/private_key_wallet.ts:48](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/subproviders/src/subproviders/private_key_wallet.ts#L48)* Sign a transaction with the private key. If you've added this Subprovider to your app's provider, you can simply send an `eth_sendTransaction` JSON RPC request, and @@ -1120,7 +1122,7 @@ ___ *Overrides void* -*Defined in [subproviders/src/subproviders/private_key_wallet.ts:99](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/subproviders/src/subproviders/private_key_wallet.ts#L99)* +*Defined in [subproviders/src/subproviders/private_key_wallet.ts:99](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/subproviders/src/subproviders/private_key_wallet.ts#L99)* Sign an EIP712 Typed Data message. The signing address will be calculated from the private key. The address must be provided it must match the address calculated from the private key. @@ -1154,7 +1156,7 @@ set of JSON RPC endpoints. \+ **new RedundantSubprovider**(`subproviders`: [Subprovider](_subproviders_src_subproviders_subprovider_.subprovider.md)[]): *[RedundantSubprovider](#class-redundantsubprovider)* -*Defined in [subproviders/src/subproviders/redundant_subprovider.ts:33](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/subproviders/src/subproviders/redundant_subprovider.ts#L33)* +*Defined in [subproviders/src/subproviders/redundant_subprovider.ts:33](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/subproviders/src/subproviders/redundant_subprovider.ts#L33)* Instantiates a new RedundantSubprovider @@ -1174,7 +1176,7 @@ Name | Type | Description | *Inherited from [Subprovider](#interface-subprovider).[emitPayloadAsync](#emitpayloadasync)* -*Defined in [subproviders/src/subproviders/subprovider.ts:55](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/subproviders/src/subproviders/subprovider.ts#L55)* +*Defined in [subproviders/src/subproviders/subprovider.ts:55](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/subproviders/src/subproviders/subprovider.ts#L55)* Emits a JSON RPC payload that will then be handled by the ProviderEngine instance this subprovider is a part of. The payload will cascade down the subprovider middleware @@ -1198,7 +1200,7 @@ ___ *Overrides [Subprovider](_subproviders_src_subproviders_subprovider_.subprovider.md).[handleRequest](#abstract-handlerequest)* -*Defined in [subproviders/src/subproviders/redundant_subprovider.ts:51](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/subproviders/src/subproviders/redundant_subprovider.ts#L51)* +*Defined in [subproviders/src/subproviders/redundant_subprovider.ts:51](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/subproviders/src/subproviders/redundant_subprovider.ts#L51)* This method conforms to the web3-provider-engine interface. It is called internally by the ProviderEngine when it is this subproviders @@ -1237,7 +1239,7 @@ ___ *Inherited from [Subprovider](#interface-subprovider).[setEngine](#setengine)* -*Defined in [subproviders/src/subproviders/subprovider.ts:68](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/subproviders/src/subproviders/subprovider.ts#L68)* +*Defined in [subproviders/src/subproviders/subprovider.ts:68](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/subproviders/src/subproviders/subprovider.ts#L68)* Set's the subprovider's engine to the ProviderEngine it is added to. This is only called within the ProviderEngine source code, do not call @@ -1265,7 +1267,7 @@ It forwards on JSON RPC requests to the supplied `rpcUrl` endpoint \+ **new RPCSubprovider**(`rpcUrl`: string, `requestTimeoutMs`: number): *[RPCSubprovider](#class-rpcsubprovider)* -*Defined in [subproviders/src/subproviders/rpc_subprovider.ts:17](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/subproviders/src/subproviders/rpc_subprovider.ts#L17)* +*Defined in [subproviders/src/subproviders/rpc_subprovider.ts:17](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/subproviders/src/subproviders/rpc_subprovider.ts#L17)* **Parameters:** @@ -1284,7 +1286,7 @@ Name | Type | Default | Description | *Inherited from [Subprovider](#interface-subprovider).[emitPayloadAsync](#emitpayloadasync)* -*Defined in [subproviders/src/subproviders/subprovider.ts:55](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/subproviders/src/subproviders/subprovider.ts#L55)* +*Defined in [subproviders/src/subproviders/subprovider.ts:55](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/subproviders/src/subproviders/subprovider.ts#L55)* Emits a JSON RPC payload that will then be handled by the ProviderEngine instance this subprovider is a part of. The payload will cascade down the subprovider middleware @@ -1308,7 +1310,7 @@ ___ *Overrides [Subprovider](_subproviders_src_subproviders_subprovider_.subprovider.md).[handleRequest](#abstract-handlerequest)* -*Defined in [subproviders/src/subproviders/rpc_subprovider.ts:38](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/subproviders/src/subproviders/rpc_subprovider.ts#L38)* +*Defined in [subproviders/src/subproviders/rpc_subprovider.ts:38](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/subproviders/src/subproviders/rpc_subprovider.ts#L38)* This method conforms to the web3-provider-engine interface. It is called internally by the ProviderEngine when it is this subproviders @@ -1332,7 +1334,7 @@ ___ *Inherited from [Subprovider](#interface-subprovider).[setEngine](#setengine)* -*Defined in [subproviders/src/subproviders/subprovider.ts:68](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/subproviders/src/subproviders/subprovider.ts#L68)* +*Defined in [subproviders/src/subproviders/subprovider.ts:68](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/subproviders/src/subproviders/subprovider.ts#L68)* Set's the subprovider's engine to the ProviderEngine it is added to. This is only called within the ProviderEngine source code, do not call @@ -1362,7 +1364,7 @@ are passed onwards for subsequent subproviders to handle. \+ **new SignerSubprovider**(`supportedProvider`: [SupportedProvider](#supportedprovider)): *[SignerSubprovider](#class-signersubprovider)* -*Defined in [subproviders/src/subproviders/signer.ts:15](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/subproviders/src/subproviders/signer.ts#L15)* +*Defined in [subproviders/src/subproviders/signer.ts:15](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/subproviders/src/subproviders/signer.ts#L15)* Instantiates a new SignerSubprovider. @@ -1382,7 +1384,7 @@ Name | Type | Description | *Inherited from [Subprovider](#interface-subprovider).[emitPayloadAsync](#emitpayloadasync)* -*Defined in [subproviders/src/subproviders/subprovider.ts:55](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/subproviders/src/subproviders/subprovider.ts#L55)* +*Defined in [subproviders/src/subproviders/subprovider.ts:55](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/subproviders/src/subproviders/subprovider.ts#L55)* Emits a JSON RPC payload that will then be handled by the ProviderEngine instance this subprovider is a part of. The payload will cascade down the subprovider middleware @@ -1406,7 +1408,7 @@ ___ *Overrides [Subprovider](_subproviders_src_subproviders_subprovider_.subprovider.md).[handleRequest](#abstract-handlerequest)* -*Defined in [subproviders/src/subproviders/signer.ts:33](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/subproviders/src/subproviders/signer.ts#L33)* +*Defined in [subproviders/src/subproviders/signer.ts:33](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/subproviders/src/subproviders/signer.ts#L33)* This method conforms to the web3-provider-engine interface. It is called internally by the ProviderEngine when it is this subproviders @@ -1430,7 +1432,7 @@ ___ *Inherited from [Subprovider](#interface-subprovider).[setEngine](#setengine)* -*Defined in [subproviders/src/subproviders/subprovider.ts:68](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/subproviders/src/subproviders/subprovider.ts#L68)* +*Defined in [subproviders/src/subproviders/subprovider.ts:68](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/subproviders/src/subproviders/subprovider.ts#L68)* Set's the subprovider's engine to the ProviderEngine it is added to. This is only called within the ProviderEngine source code, do not call @@ -1458,7 +1460,7 @@ This one has an async/await `emitPayloadAsync` and also defined types. ▸ **emitPayloadAsync**(`payload`: `Partial`): *`Promise`* -*Defined in [subproviders/src/subproviders/subprovider.ts:55](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/subproviders/src/subproviders/subprovider.ts#L55)* +*Defined in [subproviders/src/subproviders/subprovider.ts:55](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/subproviders/src/subproviders/subprovider.ts#L55)* Emits a JSON RPC payload that will then be handled by the ProviderEngine instance this subprovider is a part of. The payload will cascade down the subprovider middleware @@ -1480,7 +1482,7 @@ ___ ▸ **handleRequest**(`payload`: `JSONRPCRequestPayload`, `next`: [Callback](#callback), `end`: [ErrorCallback](#errorcallback)): *`Promise`* -*Defined in [subproviders/src/subproviders/subprovider.ts:42](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/subproviders/src/subproviders/subprovider.ts#L42)* +*Defined in [subproviders/src/subproviders/subprovider.ts:42](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/subproviders/src/subproviders/subprovider.ts#L42)* **Parameters:** @@ -1498,7 +1500,7 @@ ___ ▸ **setEngine**(`engine`: `Web3ProviderEngine`): *void* -*Defined in [subproviders/src/subproviders/subprovider.ts:68](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/subproviders/src/subproviders/subprovider.ts#L68)* +*Defined in [subproviders/src/subproviders/subprovider.ts:68](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/subproviders/src/subproviders/subprovider.ts#L68)* Set's the subprovider's engine to the ProviderEngine it is added to. This is only called within the ProviderEngine source code, do not call @@ -1523,7 +1525,7 @@ Name | Type | Description | \+ **new TrezorSubprovider**(`config`: [TrezorSubproviderConfig](#interface-trezorsubproviderconfig)): *[TrezorSubprovider](#class-trezorsubprovider)* -*Defined in [subproviders/src/subproviders/trezor.ts:32](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/subproviders/src/subproviders/trezor.ts#L32)* +*Defined in [subproviders/src/subproviders/trezor.ts:32](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/subproviders/src/subproviders/trezor.ts#L32)* Instantiates a TrezorSubprovider. Defaults to private key path set to `44'/60'/0'/0/`. Must be initialized with trezor-connect API module https://github.com/trezor/connect. @@ -1546,7 +1548,7 @@ TrezorSubprovider instance *Inherited from [Subprovider](#interface-subprovider).[emitPayloadAsync](#emitpayloadasync)* -*Defined in [subproviders/src/subproviders/subprovider.ts:55](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/subproviders/src/subproviders/subprovider.ts#L55)* +*Defined in [subproviders/src/subproviders/subprovider.ts:55](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/subproviders/src/subproviders/subprovider.ts#L55)* Emits a JSON RPC payload that will then be handled by the ProviderEngine instance this subprovider is a part of. The payload will cascade down the subprovider middleware @@ -1570,7 +1572,7 @@ ___ *Overrides void* -*Defined in [subproviders/src/subproviders/trezor.ts:56](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/subproviders/src/subproviders/trezor.ts#L56)* +*Defined in [subproviders/src/subproviders/trezor.ts:56](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/subproviders/src/subproviders/trezor.ts#L56)* Retrieve a users Trezor account. This method is automatically called when issuing a `eth_accounts` JSON RPC request via your providerEngine @@ -1596,7 +1598,7 @@ ___ *Overrides [Subprovider](_subproviders_src_subproviders_subprovider_.subprovider.md).[handleRequest](#abstract-handlerequest)* -*Defined in [subproviders/src/subproviders/base_wallet_subprovider.ts:37](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/subproviders/src/subproviders/base_wallet_subprovider.ts#L37)* +*Defined in [subproviders/src/subproviders/base_wallet_subprovider.ts:37](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/subproviders/src/subproviders/base_wallet_subprovider.ts#L37)* This method conforms to the web3-provider-engine interface. It is called internally by the ProviderEngine when it is this subproviders @@ -1620,7 +1622,7 @@ ___ *Inherited from [Subprovider](#interface-subprovider).[setEngine](#setengine)* -*Defined in [subproviders/src/subproviders/subprovider.ts:68](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/subproviders/src/subproviders/subprovider.ts#L68)* +*Defined in [subproviders/src/subproviders/subprovider.ts:68](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/subproviders/src/subproviders/subprovider.ts#L68)* Set's the subprovider's engine to the ProviderEngine it is added to. This is only called within the ProviderEngine source code, do not call @@ -1642,7 +1644,7 @@ ___ *Overrides void* -*Defined in [subproviders/src/subproviders/trezor.ts:129](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/subproviders/src/subproviders/trezor.ts#L129)* +*Defined in [subproviders/src/subproviders/trezor.ts:129](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/subproviders/src/subproviders/trezor.ts#L129)* Sign a personal Ethereum signed message. The signing account will be the account associated with the provided address. If you've added the TrezorSubprovider to @@ -1669,7 +1671,7 @@ ___ *Overrides void* -*Defined in [subproviders/src/subproviders/trezor.ts:70](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/subproviders/src/subproviders/trezor.ts#L70)* +*Defined in [subproviders/src/subproviders/trezor.ts:70](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/subproviders/src/subproviders/trezor.ts#L70)* Signs a transaction on the Trezor with the account specificed by the `from` field in txParams. If you've added the TrezorSubprovider to your app's provider, you can simply send an `eth_sendTransaction` @@ -1694,7 +1696,7 @@ ___ *Overrides void* -*Defined in [subproviders/src/subproviders/trezor.ts:161](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/subproviders/src/subproviders/trezor.ts#L161)* +*Defined in [subproviders/src/subproviders/trezor.ts:161](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/subproviders/src/subproviders/trezor.ts#L161)* TODO:: eth_signTypedData is currently not supported on Trezor devices. @@ -1730,7 +1732,7 @@ Signature hex string (order: rsv) • **CannotDetermineAddressFromPayload**: = "CANNOT_DETERMINE_ADDRESS_FROM_PAYLOAD" -*Defined in [subproviders/src/types.ts:121](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/subproviders/src/types.ts#L121)* +*Defined in [subproviders/src/types.ts:121](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/subproviders/src/types.ts#L121)* ___ @@ -1738,7 +1740,7 @@ ___ • **EmptyParametersFound**: = "EMPTY_PARAMETERS_FOUND" -*Defined in [subproviders/src/types.ts:120](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/subproviders/src/types.ts#L120)* +*Defined in [subproviders/src/types.ts:120](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/subproviders/src/types.ts#L120)*
@@ -1771,6 +1773,39 @@ ___ +## Type aliases + + + + + + + + + +### EIP712ObjectValue + +Ƭ **EIP712ObjectValue**: *string | number | [EIP712Object](#interface-eip712object)* + +*Defined in [types/src/index.ts:740](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/types/src/index.ts#L740)* + +___ + + + + + + + + + + + + + + + + @@ -1813,7 +1848,7 @@ ___ • **isEIP1193**: *boolean* -*Defined in [ethereum-types/src/index.ts:73](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L73)* +*Defined in [ethereum-types/src/index.ts:73](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L73)* ## Methods @@ -1821,7 +1856,7 @@ ___ ▸ **on**(`event`: [EIP1193Event](#eip1193event), `listener`: function): *this* -*Defined in [ethereum-types/src/index.ts:75](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L75)* +*Defined in [ethereum-types/src/index.ts:75](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L75)* **Parameters:** @@ -1845,7 +1880,7 @@ ___ ▸ **send**(`method`: string, `params?`: any[]): *`Promise`* -*Defined in [ethereum-types/src/index.ts:74](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L74)* +*Defined in [ethereum-types/src/index.ts:74](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L74)* **Parameters:** @@ -1879,7 +1914,7 @@ Name | Type | ▸ **sendAsync**(`payload`: [JSONRPCRequestPayload](_ethereum_types_src_index_.jsonrpcrequestpayload.md), `callback`: [JSONRPCErrorCallback](#jsonrpcerrorcallback)): *void* -*Defined in [ethereum-types/src/index.ts:14](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L14)* +*Defined in [ethereum-types/src/index.ts:14](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L14)* **Parameters:** @@ -1903,7 +1938,7 @@ Name | Type | • **id**: *number* -*Defined in [ethereum-types/src/index.ts:330](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L330)* +*Defined in [ethereum-types/src/index.ts:330](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L330)* ___ @@ -1911,7 +1946,7 @@ ___ • **jsonrpc**: *string* -*Defined in [ethereum-types/src/index.ts:331](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L331)* +*Defined in [ethereum-types/src/index.ts:331](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L331)* ___ @@ -1919,7 +1954,7 @@ ___ • **method**: *string* -*Defined in [ethereum-types/src/index.ts:329](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L329)* +*Defined in [ethereum-types/src/index.ts:329](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L329)* ___ @@ -1927,7 +1962,7 @@ ___ • **params**: *any[]* -*Defined in [ethereum-types/src/index.ts:328](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L328)* +*Defined in [ethereum-types/src/index.ts:328](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L328)*
@@ -1940,7 +1975,7 @@ ___ • **code**: *number* -*Defined in [ethereum-types/src/index.ts:336](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L336)* +*Defined in [ethereum-types/src/index.ts:336](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L336)* ___ @@ -1948,7 +1983,7 @@ ___ • **message**: *string* -*Defined in [ethereum-types/src/index.ts:335](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L335)* +*Defined in [ethereum-types/src/index.ts:335](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L335)*
@@ -1961,7 +1996,7 @@ ___ • **error**? : *[JSONRPCResponseError](#class-jsonrpcresponseerror)* -*Defined in [ethereum-types/src/index.ts:343](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L343)* +*Defined in [ethereum-types/src/index.ts:343](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L343)* ___ @@ -1969,7 +2004,7 @@ ___ • **id**: *number* -*Defined in [ethereum-types/src/index.ts:341](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L341)* +*Defined in [ethereum-types/src/index.ts:341](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L341)* ___ @@ -1977,7 +2012,7 @@ ___ • **jsonrpc**: *string* -*Defined in [ethereum-types/src/index.ts:342](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L342)* +*Defined in [ethereum-types/src/index.ts:342](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L342)* ___ @@ -1985,7 +2020,7 @@ ___ • **result**: *any* -*Defined in [ethereum-types/src/index.ts:340](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L340)* +*Defined in [ethereum-types/src/index.ts:340](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L340)*
@@ -2046,7 +2081,7 @@ This interface allowed sending synchonous requests, support for which was later ▸ **send**(`payload`: [JSONRPCRequestPayload](_ethereum_types_src_index_.jsonrpcrequestpayload.md)): *[JSONRPCResponsePayload](#class-jsonrpcresponsepayload)* -*Defined in [ethereum-types/src/index.ts:45](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L45)* +*Defined in [ethereum-types/src/index.ts:45](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L45)* **Parameters:** @@ -2062,7 +2097,7 @@ ___ ▸ **sendAsync**(`payload`: [JSONRPCRequestPayload](_ethereum_types_src_index_.jsonrpcrequestpayload.md), `callback`: [JSONRPCErrorCallback](#jsonrpcerrorcallback)): *void* -*Defined in [ethereum-types/src/index.ts:44](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L44)* +*Defined in [ethereum-types/src/index.ts:44](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L44)* **Parameters:** @@ -2088,7 +2123,7 @@ before the first attempts to conform to EIP1193 ▸ **send**(`payload`: [JSONRPCRequestPayload](_ethereum_types_src_index_.jsonrpcrequestpayload.md), `callback`: [JSONRPCErrorCallback](#jsonrpcerrorcallback)): *void* -*Defined in [ethereum-types/src/index.ts:54](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L54)* +*Defined in [ethereum-types/src/index.ts:54](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L54)* **Parameters:** @@ -2114,7 +2149,7 @@ however it does not conform entirely. ▸ **send**(`method`: string, `params?`: any[]): *`Promise`* -*Defined in [ethereum-types/src/index.ts:63](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L63)* +*Defined in [ethereum-types/src/index.ts:63](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L63)* **Parameters:** @@ -2140,7 +2175,7 @@ add here • **isMetaMask**? : *undefined | false | true* -*Defined in [ethereum-types/src/index.ts:31](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L31)* +*Defined in [ethereum-types/src/index.ts:31](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L31)* ___ @@ -2148,7 +2183,7 @@ ___ • **isParity**? : *undefined | false | true* -*Defined in [ethereum-types/src/index.ts:32](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L32)* +*Defined in [ethereum-types/src/index.ts:32](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L32)* ___ @@ -2156,7 +2191,7 @@ ___ • **isZeroExProvider**? : *undefined | false | true* -*Defined in [ethereum-types/src/index.ts:30](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L30)* +*Defined in [ethereum-types/src/index.ts:30](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L30)* ## Methods @@ -2164,7 +2199,7 @@ ___ ▸ **enable**(): *`Promise`* -*Defined in [ethereum-types/src/index.ts:34](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L34)* +*Defined in [ethereum-types/src/index.ts:34](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L34)* **Returns:** *`Promise`* @@ -2174,7 +2209,7 @@ ___ ▸ **sendAsync**(`payload`: [JSONRPCRequestPayload](_ethereum_types_src_index_.jsonrpcrequestpayload.md), `callback`: [JSONRPCErrorCallback](#jsonrpcerrorcallback)): *void* -*Defined in [ethereum-types/src/index.ts:35](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L35)* +*Defined in [ethereum-types/src/index.ts:35](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L35)* **Parameters:** @@ -2191,12 +2226,110 @@ ___ ▸ **stop**(): *void* -*Defined in [ethereum-types/src/index.ts:33](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L33)* +*Defined in [ethereum-types/src/index.ts:33](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L33)* **Returns:** *void*
+# Interface: DebugPayload + + +## Properties + +### id + +• **id**: *number* + + + +Defined in ethereum-types/lib/index.d.ts:267 + +___ + +### jsonrpc + +• **jsonrpc**: *string* + + + +Defined in ethereum-types/lib/index.d.ts:268 + +___ + +### method + +• **method**: *string* + + + +Defined in ethereum-types/lib/index.d.ts:266 + +___ + +### params + +• **params**: *any[]* + + + +Defined in ethereum-types/lib/index.d.ts:265 + +___ + +### `Optional` rawTransactionAttributes + +• **rawTransactionAttributes**? : *[DebugPayloadRawTransactionAttributes](#class-debugpayloadrawtransactionattributes)* + +*Defined in [subproviders/src/subproviders/debug_subprovider.ts:19](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/subproviders/src/subproviders/debug_subprovider.ts#L19)* + +
+ +# Interface: DebugPayloadRawTransactionAttributes + + +## Properties + +### gasLimit + +• **gasLimit**: *string* + +*Defined in [subproviders/src/subproviders/debug_subprovider.ts:13](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/subproviders/src/subproviders/debug_subprovider.ts#L13)* + +___ + +### gasPrice + +• **gasPrice**: *string* + +*Defined in [subproviders/src/subproviders/debug_subprovider.ts:12](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/subproviders/src/subproviders/debug_subprovider.ts#L12)* + +___ + +### nonce + +• **nonce**: *string* + +*Defined in [subproviders/src/subproviders/debug_subprovider.ts:14](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/subproviders/src/subproviders/debug_subprovider.ts#L14)* + +___ + +### to + +• **to**: *string* + +*Defined in [subproviders/src/subproviders/debug_subprovider.ts:16](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/subproviders/src/subproviders/debug_subprovider.ts#L16)* + +___ + +### value + +• **value**: *string* + +*Defined in [subproviders/src/subproviders/debug_subprovider.ts:15](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/subproviders/src/subproviders/debug_subprovider.ts#L15)* + +
+ # Interface: AccountFetchingConfigs addressSearchLimit: The maximum number of addresses to search through, defaults to 1000 @@ -2211,7 +2344,7 @@ shouldAskForOnDeviceConfirmation: Whether you wish to prompt the user on their L • **addressSearchLimit**? : *undefined | number* -*Defined in [subproviders/src/types.ts:55](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/subproviders/src/types.ts#L55)* +*Defined in [subproviders/src/types.ts:55](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/subproviders/src/types.ts#L55)* ___ @@ -2219,7 +2352,7 @@ ___ • **numAddressesToReturn**? : *undefined | number* -*Defined in [subproviders/src/types.ts:56](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/subproviders/src/types.ts#L56)* +*Defined in [subproviders/src/types.ts:56](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/subproviders/src/types.ts#L56)* ___ @@ -2227,7 +2360,7 @@ ___ • **shouldAskForOnDeviceConfirmation**? : *undefined | false | true* -*Defined in [subproviders/src/types.ts:57](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/subproviders/src/types.ts#L57)* +*Defined in [subproviders/src/types.ts:57](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/subproviders/src/types.ts#L57)*
@@ -2242,7 +2375,7 @@ ___ • **r**: *string* -*Defined in [subproviders/src/types.ts:29](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/subproviders/src/types.ts#L29)* +*Defined in [subproviders/src/types.ts:29](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/subproviders/src/types.ts#L29)* ___ @@ -2250,7 +2383,7 @@ ___ • **s**: *string* -*Defined in [subproviders/src/types.ts:30](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/subproviders/src/types.ts#L30)* +*Defined in [subproviders/src/types.ts:30](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/subproviders/src/types.ts#L30)* ___ @@ -2258,7 +2391,7 @@ ___ • **v**: *string* -*Defined in [subproviders/src/types.ts:28](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/subproviders/src/types.ts#L28)* +*Defined in [subproviders/src/types.ts:28](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/subproviders/src/types.ts#L28)*
@@ -2293,7 +2426,7 @@ ___ *Overrides void* -*Defined in [subproviders/src/types.ts:136](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/subproviders/src/types.ts#L136)* +*Defined in [subproviders/src/types.ts:136](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/subproviders/src/types.ts#L136)* ___ @@ -2325,7 +2458,7 @@ NodeJs and Browser communication are supported. • **getAddress**: *function* -*Defined in [subproviders/src/types.ts:17](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/subproviders/src/types.ts#L17)* +*Defined in [subproviders/src/types.ts:17](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/subproviders/src/types.ts#L17)* #### Type declaration: @@ -2345,7 +2478,7 @@ ___ • **signPersonalMessage**: *function* -*Defined in [subproviders/src/types.ts:23](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/subproviders/src/types.ts#L23)* +*Defined in [subproviders/src/types.ts:23](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/subproviders/src/types.ts#L23)* #### Type declaration: @@ -2364,7 +2497,7 @@ ___ • **signTransaction**: *function* -*Defined in [subproviders/src/types.ts:22](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/subproviders/src/types.ts#L22)* +*Defined in [subproviders/src/types.ts:22](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/subproviders/src/types.ts#L22)* #### Type declaration: @@ -2383,7 +2516,7 @@ ___ • **transport**: *[LedgerCommunicationClient](#class-ledgercommunicationclient)* -*Defined in [subproviders/src/types.ts:24](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/subproviders/src/types.ts#L24)* +*Defined in [subproviders/src/types.ts:24](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/subproviders/src/types.ts#L24)*
@@ -2396,7 +2529,7 @@ ___ • **address**: *string* -*Defined in [subproviders/src/types.ts:79](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/subproviders/src/types.ts#L79)* +*Defined in [subproviders/src/types.ts:79](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/subproviders/src/types.ts#L79)* ___ @@ -2404,7 +2537,7 @@ ___ • **chainCode**: *string* -*Defined in [subproviders/src/types.ts:81](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/subproviders/src/types.ts#L81)* +*Defined in [subproviders/src/types.ts:81](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/subproviders/src/types.ts#L81)* ___ @@ -2412,7 +2545,7 @@ ___ • **publicKey**: *string* -*Defined in [subproviders/src/types.ts:80](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/subproviders/src/types.ts#L80)* +*Defined in [subproviders/src/types.ts:80](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/subproviders/src/types.ts#L80)*
@@ -2430,7 +2563,7 @@ accountFetchingConfigs: configs related to fetching accounts from a Ledger • **accountFetchingConfigs**? : *[AccountFetchingConfigs](#class-accountfetchingconfigs)* -*Defined in [subproviders/src/types.ts:45](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/subproviders/src/types.ts#L45)* +*Defined in [subproviders/src/types.ts:45](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/subproviders/src/types.ts#L45)* ___ @@ -2438,7 +2571,7 @@ ___ • **baseDerivationPath**? : *undefined | string* -*Defined in [subproviders/src/types.ts:44](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/subproviders/src/types.ts#L44)* +*Defined in [subproviders/src/types.ts:44](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/subproviders/src/types.ts#L44)* ___ @@ -2446,7 +2579,7 @@ ___ • **ledgerEthereumClientFactoryAsync**: *[LedgerEthereumClientFactoryAsync](#ledgerethereumclientfactoryasync)* -*Defined in [subproviders/src/types.ts:43](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/subproviders/src/types.ts#L43)* +*Defined in [subproviders/src/types.ts:43](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/subproviders/src/types.ts#L43)* ___ @@ -2454,7 +2587,7 @@ ___ • **networkId**: *number* -*Defined in [subproviders/src/types.ts:42](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/subproviders/src/types.ts#L42)* +*Defined in [subproviders/src/types.ts:42](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/subproviders/src/types.ts#L42)*
@@ -2471,7 +2604,7 @@ baseDerivationPath: The base derivation path (e.g 44'/60'/0'/0) • **addressSearchLimit**? : *undefined | number* -*Defined in [subproviders/src/types.ts:67](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/subproviders/src/types.ts#L67)* +*Defined in [subproviders/src/types.ts:67](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/subproviders/src/types.ts#L67)* ___ @@ -2479,7 +2612,7 @@ ___ • **baseDerivationPath**? : *undefined | string* -*Defined in [subproviders/src/types.ts:68](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/subproviders/src/types.ts#L68)* +*Defined in [subproviders/src/types.ts:68](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/subproviders/src/types.ts#L68)* ___ @@ -2487,7 +2620,7 @@ ___ • **mnemonic**: *string* -*Defined in [subproviders/src/types.ts:66](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/subproviders/src/types.ts#L66)* +*Defined in [subproviders/src/types.ts:66](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/subproviders/src/types.ts#L66)*
@@ -2500,7 +2633,7 @@ ___ • **chainId**: *number* -*Defined in [subproviders/src/types.ts:92](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/subproviders/src/types.ts#L92)* +*Defined in [subproviders/src/types.ts:92](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/subproviders/src/types.ts#L92)* ___ @@ -2508,7 +2641,7 @@ ___ • **data**? : *undefined | string* -*Defined in [subproviders/src/types.ts:91](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/subproviders/src/types.ts#L91)* +*Defined in [subproviders/src/types.ts:91](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/subproviders/src/types.ts#L91)* ___ @@ -2516,7 +2649,7 @@ ___ • **from**: *string* -*Defined in [subproviders/src/types.ts:89](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/subproviders/src/types.ts#L89)* +*Defined in [subproviders/src/types.ts:89](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/subproviders/src/types.ts#L89)* ___ @@ -2524,7 +2657,7 @@ ___ • **gas**: *string* -*Defined in [subproviders/src/types.ts:87](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/subproviders/src/types.ts#L87)* +*Defined in [subproviders/src/types.ts:87](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/subproviders/src/types.ts#L87)* ___ @@ -2532,7 +2665,7 @@ ___ • **gasPrice**? : *undefined | string* -*Defined in [subproviders/src/types.ts:86](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/subproviders/src/types.ts#L86)* +*Defined in [subproviders/src/types.ts:86](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/subproviders/src/types.ts#L86)* ___ @@ -2540,7 +2673,7 @@ ___ • **nonce**: *string* -*Defined in [subproviders/src/types.ts:85](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/subproviders/src/types.ts#L85)* +*Defined in [subproviders/src/types.ts:85](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/subproviders/src/types.ts#L85)* ___ @@ -2548,7 +2681,7 @@ ___ • **to**: *string* -*Defined in [subproviders/src/types.ts:88](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/subproviders/src/types.ts#L88)* +*Defined in [subproviders/src/types.ts:88](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/subproviders/src/types.ts#L88)* ___ @@ -2556,7 +2689,7 @@ ___ • **value**? : *undefined | string* -*Defined in [subproviders/src/types.ts:90](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/subproviders/src/types.ts#L90)* +*Defined in [subproviders/src/types.ts:90](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/subproviders/src/types.ts#L90)*
@@ -2566,7 +2699,100 @@ ___ +# Class: DebugSubprovider + +This class implements the [web3-provider-engine](https://github.com/MetaMask/provider-engine) subprovider interface. +For every request, a object for debugging will be sent to the function specified in the constructor +Useful for debugging RPC requests which are not expecting as you expect. + + +## Constructors + + + +\+ **new DebugSubprovider**(`debugCallback`: [WithDebugPayload](#withdebugpayload)): *[DebugSubprovider](#class-debugsubprovider)* + +*Defined in [subproviders/src/subproviders/debug_subprovider.ts:44](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/subproviders/src/subproviders/debug_subprovider.ts#L44)* + +**Parameters:** + +Name | Type | Default | +------ | ------ | ------ | +`debugCallback` | [WithDebugPayload](#withdebugpayload) | defaultDebugCallback | + +**Returns:** *[DebugSubprovider](#class-debugsubprovider)* + +## Methods + +### emitPayloadAsync + +▸ **emitPayloadAsync**(`payload`: `Partial`): *`Promise`* + +*Inherited from [Subprovider](#interface-subprovider).[emitPayloadAsync](#emitpayloadasync)* + +*Defined in [subproviders/src/subproviders/subprovider.ts:55](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/subproviders/src/subproviders/subprovider.ts#L55)* + +Emits a JSON RPC payload that will then be handled by the ProviderEngine instance +this subprovider is a part of. The payload will cascade down the subprovider middleware +stack until finding the responsible entity for handling the request. + +**Parameters:** + +Name | Type | Description | +------ | ------ | ------ | +`payload` | `Partial` | JSON RPC payload | + +**Returns:** *`Promise`* + +JSON RPC response payload + +___ + +### handleRequest + +▸ **handleRequest**(`payload`: `JSONRPCRequestPayload`, `next`: [Callback](#callback), `end`: [ErrorCallback](#errorcallback)): *`Promise`* + +*Overrides [Subprovider](_subproviders_src_subproviders_subprovider_.subprovider.md).[handleRequest](#abstract-handlerequest)* + +*Defined in [subproviders/src/subproviders/debug_subprovider.ts:60](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/subproviders/src/subproviders/debug_subprovider.ts#L60)* + +This method conforms to the web3-provider-engine interface. +It is called internally by the ProviderEngine when it is this subproviders +turn to handle a JSON RPC request. + +**Parameters:** + +Name | Type | Description | +------ | ------ | ------ | +`payload` | `JSONRPCRequestPayload` | JSON RPC payload | +`next` | [Callback](#callback) | Callback to call if this subprovider decides not to handle the request | +`end` | [ErrorCallback](#errorcallback) | Callback to call if subprovider handled the request and wants to pass back the request. | + +**Returns:** *`Promise`* + +___ + +### setEngine + +▸ **setEngine**(`engine`: `Web3ProviderEngine`): *void* + +*Inherited from [Subprovider](#interface-subprovider).[setEngine](#setengine)* + +*Defined in [subproviders/src/subproviders/subprovider.ts:68](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/subproviders/src/subproviders/subprovider.ts#L68)* + +Set's the subprovider's engine to the ProviderEngine it is added to. +This is only called within the ProviderEngine source code, do not call +directly. + +**Parameters:** + +Name | Type | Description | +------ | ------ | ------ | +`engine` | `Web3ProviderEngine` | The ProviderEngine this subprovider is added to | +**Returns:** *void* + +
@@ -2583,7 +2809,7 @@ ___ • **accountFetchingConfigs**: *[AccountFetchingConfigs](#class-accountfetchingconfigs)* -*Defined in [subproviders/src/types.ts:140](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/subproviders/src/types.ts#L140)* +*Defined in [subproviders/src/types.ts:140](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/subproviders/src/types.ts#L140)* ___ @@ -2591,7 +2817,7 @@ ___ • **networkId**: *number* -*Defined in [subproviders/src/types.ts:142](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/subproviders/src/types.ts#L142)* +*Defined in [subproviders/src/types.ts:142](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/subproviders/src/types.ts#L142)* ___ @@ -2599,7 +2825,7 @@ ___ • **trezorConnectClientApi**: *any* -*Defined in [subproviders/src/types.ts:141](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/subproviders/src/types.ts#L141)* +*Defined in [subproviders/src/types.ts:141](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/subproviders/src/types.ts#L141)*
@@ -2642,7 +2868,7 @@ Elliptic Curve signature • **r**: *string* -*Defined in [types/src/index.ts:62](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/types/src/index.ts#L62)* +*Defined in [types/src/index.ts:62](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/types/src/index.ts#L62)* ___ @@ -2650,7 +2876,7 @@ ___ • **s**: *string* -*Defined in [types/src/index.ts:63](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/types/src/index.ts#L63)* +*Defined in [types/src/index.ts:63](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/types/src/index.ts#L63)* ___ @@ -2658,7 +2884,7 @@ ___ • **v**: *number* -*Defined in [types/src/index.ts:61](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/types/src/index.ts#L61)* +*Defined in [types/src/index.ts:61](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/types/src/index.ts#L61)*
@@ -2678,7 +2904,7 @@ ___ • **name**: *string* -*Defined in [types/src/index.ts:720](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/types/src/index.ts#L720)* +*Defined in [types/src/index.ts:732](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/types/src/index.ts#L732)* ___ @@ -2686,7 +2912,7 @@ ___ • **type**: *string* -*Defined in [types/src/index.ts:721](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/types/src/index.ts#L721)* +*Defined in [types/src/index.ts:733](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/types/src/index.ts#L733)*
@@ -2699,7 +2925,7 @@ ___ • **domain**: *[EIP712Object](#class-eip712object)* -*Defined in [types/src/index.ts:736](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/types/src/index.ts#L736)* +*Defined in [types/src/index.ts:748](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/types/src/index.ts#L748)* ___ @@ -2707,7 +2933,7 @@ ___ • **message**: *[EIP712Object](#class-eip712object)* -*Defined in [types/src/index.ts:737](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/types/src/index.ts#L737)* +*Defined in [types/src/index.ts:749](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/types/src/index.ts#L749)* ___ @@ -2715,7 +2941,7 @@ ___ • **primaryType**: *string* -*Defined in [types/src/index.ts:738](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/types/src/index.ts#L738)* +*Defined in [types/src/index.ts:750](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/types/src/index.ts#L750)* ___ @@ -2723,7 +2949,7 @@ ___ • **types**: *[EIP712Types](#class-eip712types)* -*Defined in [types/src/index.ts:735](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/types/src/index.ts#L735)* +*Defined in [types/src/index.ts:747](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/types/src/index.ts#L747)*
@@ -2741,7 +2967,7 @@ ___ • **name**: *string* -*Defined in [types/src/index.ts:674](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/types/src/index.ts#L674)* +*Defined in [types/src/index.ts:686](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/types/src/index.ts#L686)* ___ @@ -2749,7 +2975,7 @@ ___ • **typeDocType**: *[TypeDocTypes](#enumeration-typedoctypes)* -*Defined in [types/src/index.ts:675](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/types/src/index.ts#L675)* +*Defined in [types/src/index.ts:687](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/types/src/index.ts#L687)*
@@ -2864,6 +3090,32 @@ ___ + + + + + + +## Functions + +### prependSubprovider + +▸ **prependSubprovider**(`provider`: `Web3ProviderEngine`, `subprovider`: [Subprovider](#class-subprovider)): *void* + +*Defined in [subproviders/src/utils/subprovider_utils.ts:10](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/subproviders/src/utils/subprovider_utils.ts#L10)* + +Prepends a subprovider to a provider + +**Parameters:** + +Name | Type | Description | +------ | ------ | ------ | +`provider` | `Web3ProviderEngine` | Given provider | +`subprovider` | [Subprovider](#class-subprovider) | Subprovider to prepend | + +**Returns:** *void* + +
@@ -2886,7 +3138,7 @@ ___ Ƭ **EIP1193Event**: *"accountsChanged" | "networkChanged" | "close" | "connect" | "notification"* -*Defined in [ethereum-types/src/index.ts:70](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L70)* +*Defined in [ethereum-types/src/index.ts:70](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L70)* Interface for providers that conform to EIP 1193 Source: https://github.com/ethereum/EIPs/blob/master/EIPS/eip-1193.md @@ -2903,7 +3155,7 @@ ___ Ƭ **JSONRPCErrorCallback**: *function* -*Defined in [ethereum-types/src/index.ts:3](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L3)* +*Defined in [ethereum-types/src/index.ts:3](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L3)* #### Type declaration: @@ -2932,7 +3184,7 @@ ___ Ƭ **SupportedProvider**: *[Web3JsProvider](_ethereum_types_src_index_.md#web3jsprovider) | [GanacheProvider](#interface-ganacheprovider) | [EIP1193Provider](#interface-eip1193provider) | [ZeroExProvider](#interface-zeroexprovider)* -*Defined in [ethereum-types/src/index.ts:9](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L9)* +*Defined in [ethereum-types/src/index.ts:9](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L9)* Do not create your own provider. Use an existing provider from a Web3 or ProviderEngine library Read more about Providers in the guides section of the 0x docs. @@ -2947,7 +3199,7 @@ ___ Ƭ **Web3JsProvider**: *[Web3JsV1Provider](#interface-web3jsv1provider) | [Web3JsV2Provider](#interface-web3jsv2provider) | [Web3JsV3Provider](#interface-web3jsv3provider)* -*Defined in [ethereum-types/src/index.ts:11](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L11)* +*Defined in [ethereum-types/src/index.ts:11](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L11)*
@@ -2960,7 +3212,7 @@ ___ ▸ **ledgerEthereumBrowserClientFactoryAsync**(): *`Promise`* -*Defined in [subproviders/src/index.ts:11](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/subproviders/src/index.ts#L11)* +*Defined in [subproviders/src/index.ts:11](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/subproviders/src/index.ts#L11)* A factory method for creating a LedgerEthereumClient usable in a browser context. @@ -2972,6 +3224,29 @@ LedgerEthereumClient A browser client for the LedgerSubprovider + +## Type aliases + +### WithDebugPayload + +Ƭ **WithDebugPayload**: *function* + +*Defined in [subproviders/src/subproviders/debug_subprovider.ts:22](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/subproviders/src/subproviders/debug_subprovider.ts#L22)* + +#### Type declaration: + +▸ (`debugPayload`: [DebugPayload](#interface-debugpayload)): *void* + +**Parameters:** + +Name | Type | +------ | ------ | +`debugPayload` | [DebugPayload](#interface-debugpayload) | + +
+ + +
@@ -3031,7 +3306,7 @@ LedgerEthereumClient A browser client for the LedgerSubprovider Ƭ **Callback**: *function* -*Defined in [subproviders/src/types.ts:131](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/subproviders/src/types.ts#L131)* +*Defined in [subproviders/src/types.ts:131](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/subproviders/src/types.ts#L131)* #### Type declaration: @@ -3045,7 +3320,7 @@ ___ Ƭ **ErrorCallback**: *function* -*Defined in [subproviders/src/types.ts:130](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/subproviders/src/types.ts#L130)* +*Defined in [subproviders/src/types.ts:130](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/subproviders/src/types.ts#L130)* #### Type declaration: @@ -3064,7 +3339,7 @@ ___ Ƭ **LedgerEthereumClientFactoryAsync**: *function* -*Defined in [subproviders/src/types.ts:33](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/subproviders/src/types.ts#L33)* +*Defined in [subproviders/src/types.ts:33](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/subproviders/src/types.ts#L33)* #### Type declaration: @@ -3076,7 +3351,7 @@ ___ Ƭ **NextCallback**: *function* -*Defined in [subproviders/src/types.ts:133](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/subproviders/src/types.ts#L133)* +*Defined in [subproviders/src/types.ts:133](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/subproviders/src/types.ts#L133)* #### Type declaration: @@ -3094,7 +3369,7 @@ ___ Ƭ **OnNextCompleted**: *function* -*Defined in [subproviders/src/types.ts:132](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/subproviders/src/types.ts#L132)* +*Defined in [subproviders/src/types.ts:132](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/subproviders/src/types.ts#L132)* #### Type declaration: @@ -3110,60 +3385,3 @@ Name | Type |
- - - -## Functions - -### prependSubprovider - -▸ **prependSubprovider**(`provider`: `Web3ProviderEngine`, `subprovider`: [Subprovider](#class-subprovider)): *void* - -*Defined in [subproviders/src/utils/subprovider_utils.ts:10](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/subproviders/src/utils/subprovider_utils.ts#L10)* - -Prepends a subprovider to a provider - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`provider` | `Web3ProviderEngine` | Given provider | -`subprovider` | [Subprovider](#class-subprovider) | Subprovider to prepend | - -**Returns:** *void* - -
- - - - -## Type aliases - - - - - - - - - -### EIP712ObjectValue - -Ƭ **EIP712ObjectValue**: *string | number | [EIP712Object](#interface-eip712object)* - -*Defined in [types/src/index.ts:728](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/types/src/index.ts#L728)* - -___ - - - - - - - - - - - - - diff --git a/packages/subproviders/package.json b/packages/subproviders/package.json index 4d4af6bc4a..0d4b54f568 100644 --- a/packages/subproviders/package.json +++ b/packages/subproviders/package.json @@ -1,6 +1,6 @@ { "name": "@0x/subproviders", - "version": "5.1.0-beta.0", + "version": "5.1.0-beta.1", "engines": { "node": ">=6.12" }, @@ -33,18 +33,18 @@ } }, "dependencies": { - "@0x/assert": "^2.2.0-beta.0", - "@0x/types": "^2.5.0-beta.0", - "@0x/typescript-typings": "^4.4.0-beta.0", - "@0x/utils": "^4.6.0-beta.0", - "@0x/web3-wrapper": "^6.1.0-beta.0", + "@0x/assert": "^2.2.0-beta.1", + "@0x/types": "^2.5.0-beta.1", + "@0x/typescript-typings": "^4.4.0-beta.1", + "@0x/utils": "^4.6.0-beta.1", + "@0x/web3-wrapper": "^6.1.0-beta.1", "@ledgerhq/hw-app-eth": "^4.3.0", "@ledgerhq/hw-transport-u2f": "4.24.0", "@types/hdkey": "^0.7.0", "@types/web3-provider-engine": "^14.0.0", "bip39": "^2.5.0", "bn.js": "^4.11.8", - "ethereum-types": "^2.2.0-beta.0", + "ethereum-types": "^2.2.0-beta.1", "ethereumjs-tx": "^1.3.5", "ethereumjs-util": "^5.1.1", "ganache-core": "^2.6.0", @@ -56,10 +56,10 @@ }, "devDependencies": { "@0x/ts-doc-gen": "^0.0.22", - "@0x/tslint-config": "^3.0.1", + "@0x/tslint-config": "^3.1.0-beta.1", "@types/bip39": "^2.4.0", "@types/bn.js": "^4.11.0", - "@types/ethereumjs-tx": "^1.0.0", + "@types/ethereumjs-tx": "^1.0.1", "@types/hdkey": "^0.7.0", "@types/lodash": "4.14.104", "@types/mocha": "^5.2.7", diff --git a/packages/subproviders/src/index.ts b/packages/subproviders/src/index.ts index 5b5c8b0847..6d720e3f9d 100644 --- a/packages/subproviders/src/index.ts +++ b/packages/subproviders/src/index.ts @@ -24,6 +24,12 @@ export { LedgerSubprovider } from './subproviders/ledger'; export { RPCSubprovider } from './subproviders/rpc_subprovider'; export { GanacheSubprovider } from './subproviders/ganache'; export { Subprovider } from './subproviders/subprovider'; +export { + DebugPayloadRawTransactionAttributes, + DebugPayload, + DebugSubprovider, + WithDebugPayload, +} from './subproviders/debug_subprovider'; export { NonceTrackerSubprovider } from './subproviders/nonce_tracker'; export { PrivateKeyWalletSubprovider } from './subproviders/private_key_wallet'; export { MnemonicWalletSubprovider } from './subproviders/mnemonic_wallet'; diff --git a/packages/subproviders/src/subproviders/debug_subprovider.ts b/packages/subproviders/src/subproviders/debug_subprovider.ts new file mode 100644 index 0000000000..332bcd81a8 --- /dev/null +++ b/packages/subproviders/src/subproviders/debug_subprovider.ts @@ -0,0 +1,70 @@ +import { BigNumber } from '@0x/utils'; +import { JSONRPCRequestPayload } from 'ethereum-types'; +import EthereumTx = require('ethereumjs-tx'); + +import { Callback, ErrorCallback } from '../types'; + +import { Subprovider } from './subprovider'; + +const HEX_BASE = 16; + +export interface DebugPayloadRawTransactionAttributes { + gasPrice: string; + gasLimit: string; + nonce: string; + value: string; + to: string; +} +export interface DebugPayload extends JSONRPCRequestPayload { + rawTransactionAttributes?: DebugPayloadRawTransactionAttributes; +} + +export type WithDebugPayload = (debugPayload: DebugPayload) => void; +// tslint:disable-next-line:no-console +const defaultDebugCallback = (debugPayload: DebugPayload) => console.debug(JSON.stringify(debugPayload, null, 2)); + +/** + * This class implements the [web3-provider-engine](https://github.com/MetaMask/provider-engine) subprovider interface. + * For every request, a object for debugging will be sent to the function specified in the constructor + * Useful for debugging RPC requests which are not expecting as you expect. + */ +export class DebugSubprovider extends Subprovider { + private readonly _debugCallback: WithDebugPayload; + + private static _generateRawTransactionAttributes(txn: EthereumTx): DebugPayloadRawTransactionAttributes { + const hexBufferToString = (value: Buffer): string => new BigNumber(value.toString('hex'), HEX_BASE).toString(); + + return { + gasLimit: hexBufferToString(txn.gasLimit), + gasPrice: hexBufferToString(txn.gasPrice), + nonce: hexBufferToString(txn.nonce), + value: hexBufferToString(txn.value), + to: `0x${txn.to.toString('hex')}`, + }; + } + + public constructor(debugCallback: WithDebugPayload = defaultDebugCallback) { + super(); + this._debugCallback = debugCallback; + } + + /** + * This method conforms to the web3-provider-engine interface. + * It is called internally by the ProviderEngine when it is this subproviders + * turn to handle a JSON RPC request. + * @param payload JSON RPC payload + * @param next Callback to call if this subprovider decides not to handle the request + * @param end Callback to call if subprovider handled the request and wants to pass back the request. + */ + // tslint:disable-next-line:prefer-function-over-method async-suffix + public async handleRequest(payload: JSONRPCRequestPayload, next: Callback, end: ErrorCallback): Promise { + const debugPayload: DebugPayload = payload; + if (payload.method === 'eth_sendRawTransaction' && payload.params[0]) { + const txn = new EthereumTx(payload.params[0]); + debugPayload.rawTransactionAttributes = DebugSubprovider._generateRawTransactionAttributes(txn); + } + this._debugCallback(debugPayload); + + next(); + } +} diff --git a/packages/subproviders/test/unit/debug_subprovider_test.ts b/packages/subproviders/test/unit/debug_subprovider_test.ts new file mode 100644 index 0000000000..1c2e178639 --- /dev/null +++ b/packages/subproviders/test/unit/debug_subprovider_test.ts @@ -0,0 +1,87 @@ +import * as chai from 'chai'; + +import { chaiSetup } from '../chai_setup'; +import { fixtureData } from '../utils/fixture_data'; + +import { DebugPayload, DebugSubprovider } from './../../src/subproviders/debug_subprovider'; + +chaiSetup.configure(); +const expect = chai.expect; + +const blankCallback = () => { + return; +}; + +describe('DebugSubprovider', () => { + describe('sends debug message to callback', async () => { + let sentDebugData: DebugPayload | undefined; + const debugCallback = (curDebugData: DebugPayload) => { + sentDebugData = curDebugData; + return; + }; + before(() => { + sentDebugData = undefined; + }); + it('for ERC20 transfer', async () => { + const fixtureRpcPayload = fixtureData.ERC20_TRANSFER_RPC_PAYLOAD; + const debugSubprovider = new DebugSubprovider(debugCallback); + await debugSubprovider.handleRequest(fixtureRpcPayload, blankCallback, blankCallback); + + if (!sentDebugData) { + fail('No debug data sent'); + } else { + expect(sentDebugData.id).to.eql(fixtureRpcPayload.id); + expect(sentDebugData.jsonrpc).to.eql(fixtureRpcPayload.jsonrpc); + expect(sentDebugData.params).to.eql(fixtureRpcPayload.params); + expect(sentDebugData.method).to.eql(fixtureRpcPayload.method); + + const rawTxnAttrs = sentDebugData.rawTransactionAttributes; + if (!rawTxnAttrs) { + fail('No rawTransactionAttributes'); + } else { + expect(rawTxnAttrs.gasLimit).to.eql('37428'); + expect(rawTxnAttrs.gasPrice).to.eql('1000000000'); + expect(rawTxnAttrs.nonce).to.eql('32'); + expect(rawTxnAttrs.value).to.eql('0'); + expect(rawTxnAttrs.to).to.eql('0x2002d3812f58e35f0ea1ffbf80a75a38c32175fa'); + } + } + }); + it('for eth_blockNumber command', async () => { + const fixtureRpcPayload = fixtureData.ETH_GETBLOCK_RPC_PAYLOAD; + const debugSubprovider = new DebugSubprovider(debugCallback); + await debugSubprovider.handleRequest(fixtureRpcPayload, blankCallback, blankCallback); + + if (!sentDebugData) { + fail('No debug data sent'); + } else { + expect(sentDebugData).to.eql(fixtureRpcPayload); + } + }); + it('for regular ETH transfer', async () => { + const fixtureRpcPayload = fixtureData.ETH_TRANSFER_PAYLOAD; + const debugSubprovider = new DebugSubprovider(debugCallback); + await debugSubprovider.handleRequest(fixtureRpcPayload, blankCallback, blankCallback); + + if (!sentDebugData) { + fail('No debug data sent'); + } else { + expect(sentDebugData.id).to.eql(fixtureRpcPayload.id); + expect(sentDebugData.jsonrpc).to.eql(fixtureRpcPayload.jsonrpc); + expect(sentDebugData.params).to.eql(fixtureRpcPayload.params); + expect(sentDebugData.method).to.eql(fixtureRpcPayload.method); + + const rawTxnAttrs = sentDebugData.rawTransactionAttributes; + if (!rawTxnAttrs) { + fail('No rawTransactionAttributes'); + } else { + expect(rawTxnAttrs.gasLimit).to.eql('21000'); + expect(rawTxnAttrs.gasPrice).to.eql('8000000000'); + expect(rawTxnAttrs.nonce).to.eql('38'); + expect(rawTxnAttrs.value).to.eql('410000000000000'); + expect(rawTxnAttrs.to).to.eql('0x8a333a18b924554d6e83ef9e9944de6260f61d3b'); + } + } + }); + }); +}); diff --git a/packages/subproviders/test/unit/mnemonic_wallet_subprovider_test.ts b/packages/subproviders/test/unit/mnemonic_wallet_subprovider_test.ts index 151addd23b..456d93e761 100644 --- a/packages/subproviders/test/unit/mnemonic_wallet_subprovider_test.ts +++ b/packages/subproviders/test/unit/mnemonic_wallet_subprovider_test.ts @@ -4,6 +4,7 @@ import { JSONRPCResponsePayload } from 'ethereum-types'; import * as ethUtils from 'ethereumjs-util'; import { GanacheSubprovider, MnemonicWalletSubprovider, Web3ProviderEngine } from '../../src/'; + import { DoneCallback, WalletSubproviderErrors } from '../../src/types'; import { chaiSetup } from '../chai_setup'; import { fixtureData } from '../utils/fixture_data'; diff --git a/packages/subproviders/test/utils/fixture_data.ts b/packages/subproviders/test/utils/fixture_data.ts index d23fb73a77..7a8d907e3d 100644 --- a/packages/subproviders/test/utils/fixture_data.ts +++ b/packages/subproviders/test/utils/fixture_data.ts @@ -63,4 +63,26 @@ export const fixtureData = { EIP712_TEST_TYPED_DATA_HASH: '0xb460d69ca60383293877cd765c0f97bd832d66bca720f7e32222ce1118832493', EIP712_TEST_TYPED_DATA_SIGNED_RESULT: '0x20af5b6bfc3658942198d6eeda159b4ed589f90cee6eac3ba117818ffba5fd7e354a353aad93faabd6eb6c66e17921c92bd1cd09c92a770f554470dc3e254ce701', + ERC20_TRANSFER_RPC_PAYLOAD: { + id: 1573248819933307, + jsonrpc: '2.0', + params: [ + '0xf8a820843b9aca00829234942002d3812f58e35f0ea1ffbf80a75a38c32175fa80b844a9059cbb0000000000000000000000008a333a18b924554d6e83ef9e9944de6260f61d3b00000000000000000000000000000000000000000000000000005af3107a40001ba0aef7ea75bfc9c8fd6ecd9572e78de6aabfe856a69658ce259a64cffd5b31ac22a0386d4669313a21a59e27d629810fc4ab4e1ff08eb7c20f5fa4f533a23fd5533f', + ], + method: 'eth_sendRawTransaction', + }, + ETH_TRANSFER_PAYLOAD: { + id: 1573451366422343, + jsonrpc: '2.0', + params: [ + '0xf86b268501dcd65000825208948a333a18b924554d6e83ef9e9944de6260f61d3b870174e4905ba000801ba0b71c9f67a42b53288cbf8d73741e8d189e79031c00f0e029f6501057fdb71affa035f306598dbc3f1f60db8ca0a4fe0d2e189c4caead7c6179da512e6abc481cbb', + ], + method: 'eth_sendRawTransaction', + }, + ETH_GETBLOCK_RPC_PAYLOAD: { + id: 1, + params: [], + jsonrpc: '2.0', + method: 'eth_blockNumber', + }, }; diff --git a/packages/testnet-faucets/Dockerfile b/packages/testnet-faucets/Dockerfile deleted file mode 100644 index cfd22aa39a..0000000000 --- a/packages/testnet-faucets/Dockerfile +++ /dev/null @@ -1,13 +0,0 @@ -FROM node - -WORKDIR /src - -COPY package.json . -RUN npm i -RUN npm install forever -g - -COPY . . - -EXPOSE 3000 - -CMD ["forever", "./server/server.js"] diff --git a/packages/testnet-faucets/README.md b/packages/testnet-faucets/README.md deleted file mode 100644 index 8b85e35179..0000000000 --- a/packages/testnet-faucets/README.md +++ /dev/null @@ -1,153 +0,0 @@ -## @0x/testnet-faucets - -This faucet dispenses 0.1 test ether to one recipient per second and 0.1 test ZRX every 5 seconds. It has a max queue size of 1000. - -## Installation - -This is a private package and therefore is not published to npm. In order to build and run this package locally, see the contributing instructions below. - -## Contributing - -We welcome improvements and fixes from the wider community! To report bugs within this package, please create an issue in this repository. - -Please read our [contribution guidelines](../../CONTRIBUTING.md) before getting started. - -### Install dependencies - -If you don't have yarn workspaces enabled (Yarn < v1.0) - enable them: - -```bash -yarn config set workspaces-experimental true -``` - -Then install dependencies - -```bash -yarn install -``` - -### Build - -To build this package and all other monorepo packages that it depends on, run the following from the monorepo root directory: - -```bash -PKG=@0x/testnet-faucets yarn build -``` - -Or continuously rebuild on change: - -```bash -PKG=@0x/testnet-faucets yarn watch -``` - -### Clean - -```bash -yarn clean -``` - -### Lint - -```bash -yarn lint -``` - -### Start - -Set the following environment variables: - -```bash -export DISPENSER_ADDRESS=0x5409ed021d9299bf6814279a6a1411a7e866a631 -export DISPENSER_PRIVATE_KEY=f2f48ee19680706196e2e339e5da3491186e0c4c5030670656b0e0164837257d -export FAUCET_ROLLBAR_ACCESS_KEY={GET_THIS_FROM_ROLLBAR_ACCOUNT_SETTINGS} -export INFURA_API_KEY={GET_THIS_FROM_INFURA} -``` - -If you want to talk to testrpc, set the following environment variable: - -```bash -export FAUCET_ENVIRONMENT=development -``` - -Infura API Key can be requested here: https://infura.io/signup - -Note: The above public/private keys exist when running `testrpc` with the following option `--mnemonic concert load couple harbor equip island argue ramp clarify fence smart topic`. - -```bash -PKG=0x.js yarn watch -``` - -### Endpoints - -`GET /ping` - -Returns `pong` - -`GET /info` - -Returns a JSON payload describing the state of the queues for each network. For example: - -```json -{ - "3": { - "ether": { - "full": false, - "size": 4 - }, - "zrx": { - "full": false, - "size": 6 - } - }, - "42": { - "ether": { - "full": false, - "size": 8 - }, - "zrx": { - "full": false, - "size": 20 - } - } -} -``` - -`GET /ether/:recipient?networkId=:networkId` - -Schedules a transaction that sends 0.1 ETH to the `recipient` on the network specified by `networkId` where `recipient` is a hex encoded Ethereum address prefixed with `0x`. If no `networkId` is provided via query parameters the faucet will default to network 42 (Kovan). - -`GET /zrx/:recipient?networkId=:networkId` - -Schedules a transaction that sends 0.1 ZRX to the `recipient` on the network specified by `networkId` where `recipient` is a hex encoded Ethereum address prefixed with `0x`. If no `networkId` is provided via query parameters the faucet will default to network 42 (Kovan). - -`GET /order/weth/:recipient?networkId=:networkId` - -Returns a JSON payload describing an order for 0.1 WETH in exchange for 0.1 ZRX signed by the dispenser address on the network specified by `networkId`. The taker is specified by `recipient` where `recipient` is a hex encoded Ethereum address prefixed with `0x`. If no `networkId` is provided via query parameters the faucet will default to network 42 (Kovan). - -`GET /order/zrx/:recipient?networkId=:networkId` - -Returns a JSON payload describing an order for 0.1 ZRX in exchange for 0.1 WETH signed by the dispenser address on the network specified by `networkId`. The taker is specified by `recipient` where `recipient` is a hex encoded Ethereum address prefixed with `0x`. If no `networkId` is provided via query parameters the faucet will default to network 42 (Kovan). - -#### Example request - -```bash -curl -i http://localhost:3000/ether/0x14e2F1F157E7DD4057D02817436D628A37120FD1\?networkId=3 -``` - -This command will request the local server to initiate a transfer of 0.1 ETH from the dispensing address to `0x14e2F1F157E7DD4057D02817436D628A37120FD1` on the Ropsten testnet. - -### Docker configs - -``` -docker run -d \ --p 80:3000 \ ---name testnet-faucets \ ---log-opt max-size=100m \ ---log-opt max-file=20 \ --e DISPENSER_ADDRESS=$DISPENSER_ADDRESS \ --e DISPENSER_PRIVATE_KEY=$DISPENSER_PRIVATE_KEY \ --e FAUCET_ROLLBAR_ACCESS_KEY=$FAUCET_ROLLBAR_ACCESS_KEY \ --e FAUCET_ENVIRONMENT=production \ --e INFURA_API_KEY=$INFURA_API_KEY \ -testnet-faucets -``` diff --git a/packages/testnet-faucets/gulpfile.js b/packages/testnet-faucets/gulpfile.js deleted file mode 100644 index 839ef851b4..0000000000 --- a/packages/testnet-faucets/gulpfile.js +++ /dev/null @@ -1,91 +0,0 @@ -const gulp = require('gulp'); -const nodemon = require('nodemon'); -const path = require('path'); -const webpack = require('webpack'); -const fs = require('fs'); -const nodeExternals = require('webpack-node-externals'); - -const config = { - target: 'node', - entry: [path.join(__dirname, '/src/ts/server.ts')], - output: { - path: path.join(__dirname, '/server'), - filename: 'server.js', - }, - devtool: 'source-map', - resolve: { - modules: [path.join(__dirname, '/src/ts'), 'node_modules'], - extensions: ['.ts', '.tsx', '.js', '.jsx', '.json'], - alias: { - ts: path.join(__dirname, '/src/ts'), - contract_artifacts: path.join(__dirname, '/src/contract_artifacts'), - }, - }, - module: { - rules: [ - { - test: /\.js$/, - loader: 'source-map-loader', - }, - { - test: /\.tsx?$/, - loader: 'awesome-typescript-loader', - }, - ], - }, - plugins: [ - new webpack.BannerPlugin({ - banner: 'require("source-map-support").install();', - raw: true, - entryOnly: false, - }), - ], - externals: nodeExternals({ - modulesDir: path.join(__dirname, '../../node_modules'), - }), - watchOptions: { - ignored: /server|node_modules|transpiled/, - }, -}; - -gulp.task('build', function(done) { - webpack(config).run(onBuild(done)); -}); - -gulp.task('watch', function() { - webpack(config).watch(100, function(err, stats) { - onBuild()(err, stats); - nodemon.restart(); - }); -}); - -gulp.task('run', ['watch'], function() { - nodemon({ - execMap: { - js: 'node', - }, - script: path.join(__dirname, 'server/server'), - ignore: ['*'], - watch: ['foo/'], - ext: 'noop', - }).on('restart', function() { - console.log('Restarted!'); - }); -}); - -function onBuild(done) { - return function(err, stats) { - if (err) { - console.log('Error', err); - process.exit(1); - } else { - console.log(stats.toString()); - } - if (done) { - if (stats.compilation.errors && stats.compilation.errors.length > 0) { - process.exit(1); - } - done(); - } - }; -} diff --git a/packages/testnet-faucets/package.json b/packages/testnet-faucets/package.json deleted file mode 100644 index 83d3d7aa9d..0000000000 --- a/packages/testnet-faucets/package.json +++ /dev/null @@ -1,53 +0,0 @@ -{ - "private": true, - "name": "@0x/testnet-faucets", - "version": "1.0.88", - "engines": { - "node": ">=6.12" - }, - "description": "A faucet micro-service that dispenses test ERC20 tokens or Ether", - "main": "server.js", - "scripts": { - "build": "node ../../node_modules/gulp/bin/gulp.js build", - "build:ci": "yarn build", - "dev": "node ../../node_modules/gulp/bin/gulp.js run", - "start": "node ./server/server.js", - "lint": "tslint --format stylish --project .", - "fix": "tslint --fix --format stylish --project .", - "clean": "shx rm -rf server" - }, - "author": "Fabio Berger", - "license": "Apache-2.0", - "dependencies": { - "0x.js": "^7.1.0-beta.0", - "@0x/contract-addresses": "^3.3.0-beta.0", - "@0x/contract-wrappers": "^12.2.0-beta.0", - "@0x/subproviders": "^5.1.0-beta.0", - "@0x/typescript-typings": "^4.4.0-beta.0", - "@0x/utils": "^4.6.0-beta.0", - "@0x/web3-wrapper": "^6.1.0-beta.0", - "body-parser": "^1.17.1", - "ethereum-types": "^2.2.0-beta.0", - "ethereumjs-tx": "^1.3.5", - "ethereumjs-util": "^5.1.1", - "express": "^4.15.2", - "lodash": "^4.17.11", - "rollbar": "^2.5.0" - }, - "devDependencies": { - "@0x/tslint-config": "^3.0.1", - "@types/body-parser": "^1.16.1", - "@types/express": "^4.0.35", - "@types/lodash": "4.14.104", - "awesome-typescript-loader": "^5.2.1", - "gulp": "^3.9.1", - "make-promises-safe": "^1.1.0", - "nodemon": "^1.11.0", - "shx": "^0.2.2", - "source-map-loader": "^0.2.4", - "tslint": "5.11.0", - "typescript": "3.0.1", - "webpack": "^4.20.2", - "webpack-node-externals": "^1.6.0" - } -} diff --git a/packages/testnet-faucets/src/ts/configs.ts b/packages/testnet-faucets/src/ts/configs.ts deleted file mode 100644 index 038c8e22a6..0000000000 --- a/packages/testnet-faucets/src/ts/configs.ts +++ /dev/null @@ -1,7 +0,0 @@ -export const configs = { - DISPENSER_ADDRESS: (process.env.DISPENSER_ADDRESS as string).toLowerCase(), - DISPENSER_PRIVATE_KEY: process.env.DISPENSER_PRIVATE_KEY, - ENVIRONMENT: process.env.FAUCET_ENVIRONMENT, - INFURA_API_KEY: process.env.INFURA_API_KEY, - ROLLBAR_ACCESS_KEY: process.env.FAUCET_ROLLBAR_ACCESS_KEY, -}; diff --git a/packages/testnet-faucets/src/ts/constants.ts b/packages/testnet-faucets/src/ts/constants.ts deleted file mode 100644 index c6370e3f63..0000000000 --- a/packages/testnet-faucets/src/ts/constants.ts +++ /dev/null @@ -1,5 +0,0 @@ -export const constants = { - SUCCESS_STATUS: 200, - SERVICE_UNAVAILABLE_STATUS: 503, - BAD_REQUEST_STATUS: 400, -}; diff --git a/packages/testnet-faucets/src/ts/dispatch_queue.ts b/packages/testnet-faucets/src/ts/dispatch_queue.ts deleted file mode 100644 index 02def5fbf8..0000000000 --- a/packages/testnet-faucets/src/ts/dispatch_queue.ts +++ /dev/null @@ -1,52 +0,0 @@ -import { intervalUtils, logUtils } from '@0x/utils'; - -import { errorReporter } from './error_reporter'; - -const MAX_QUEUE_SIZE = 500; -const DEFAULT_QUEUE_INTERVAL_MS = 1000; - -export class DispatchQueue { - private readonly _queueIntervalMs: number; - private readonly _queue: Array<() => Promise>; - private _queueIntervalIdIfExists?: NodeJS.Timer; - constructor() { - this._queueIntervalMs = DEFAULT_QUEUE_INTERVAL_MS; - this._queue = []; - this._start(); - } - public add(taskAsync: () => Promise): boolean { - if (this.isFull()) { - return false; - } - this._queue.push(taskAsync); - return true; - } - public size(): number { - return this._queue.length; - } - public isFull(): boolean { - return this.size() >= MAX_QUEUE_SIZE; - } - public stop(): void { - if (this._queueIntervalIdIfExists !== undefined) { - intervalUtils.clearAsyncExcludingInterval(this._queueIntervalIdIfExists); - } - } - private _start(): void { - this._queueIntervalIdIfExists = intervalUtils.setAsyncExcludingInterval( - async () => { - const taskAsync = this._queue.shift(); - if (taskAsync === undefined) { - return Promise.resolve(); - } - await taskAsync(); - }, - this._queueIntervalMs, - (err: Error) => { - logUtils.log(`Unexpected err: ${err} - ${JSON.stringify(err)}`); - // tslint:disable-next-line:no-floating-promises - errorReporter.reportAsync(err); - }, - ); - } -} diff --git a/packages/testnet-faucets/src/ts/dispense_asset_tasks.ts b/packages/testnet-faucets/src/ts/dispense_asset_tasks.ts deleted file mode 100644 index d10819c4d5..0000000000 --- a/packages/testnet-faucets/src/ts/dispense_asset_tasks.ts +++ /dev/null @@ -1,68 +0,0 @@ -import { ERC20TokenContract, SupportedProvider } from '0x.js'; -import { BigNumber, logUtils } from '@0x/utils'; -import { Web3Wrapper } from '@0x/web3-wrapper'; -import * as _ from 'lodash'; - -import { configs } from './configs'; -import { TOKENS_BY_CHAIN } from './tokens'; - -const DISPENSE_AMOUNT_ETHER = 0.1; -const DISPENSE_AMOUNT_TOKEN = 1; -const DISPENSE_MAX_AMOUNT_TOKEN = 100; -const DISPENSE_MAX_AMOUNT_ETHER = 2; - -type AsyncTask = () => Promise; - -export const dispenseAssetTasks = { - dispenseEtherTask(recipientAddress: string, web3Wrapper: Web3Wrapper): AsyncTask { - return async () => { - logUtils.log(`Processing ETH ${recipientAddress}`); - const userBalance = await web3Wrapper.getBalanceInWeiAsync(recipientAddress); - const maxAmountInWei = Web3Wrapper.toWei(new BigNumber(DISPENSE_MAX_AMOUNT_ETHER)); - if (userBalance.isGreaterThanOrEqualTo(maxAmountInWei)) { - logUtils.log( - `User exceeded ETH balance maximum (${maxAmountInWei}) ${recipientAddress} ${userBalance} `, - ); - return; - } - const txHash = await web3Wrapper.sendTransactionAsync({ - from: configs.DISPENSER_ADDRESS, - to: recipientAddress, - value: Web3Wrapper.toWei(new BigNumber(DISPENSE_AMOUNT_ETHER)), - }); - logUtils.log(`Sent ${DISPENSE_AMOUNT_ETHER} ETH to ${recipientAddress} tx: ${txHash}`); - }; - }, - dispenseTokenTask( - recipientAddress: string, - tokenSymbol: string, - chainId: number, - provider: SupportedProvider, - ): AsyncTask { - return async () => { - logUtils.log(`Processing ${tokenSymbol} ${recipientAddress}`); - const amountToDispense = new BigNumber(DISPENSE_AMOUNT_TOKEN); - const tokenIfExists = _.get(TOKENS_BY_CHAIN, [chainId, tokenSymbol]); - if (tokenIfExists === undefined) { - throw new Error(`Unsupported asset type: ${tokenSymbol}`); - } - const baseUnitAmount = Web3Wrapper.toBaseUnitAmount(amountToDispense, tokenIfExists.decimals); - const erc20Token = new ERC20TokenContract(tokenIfExists.address, provider); - const userBalanceBaseUnits = await erc20Token.balanceOf(recipientAddress).callAsync(); - const maxAmountBaseUnits = Web3Wrapper.toBaseUnitAmount( - new BigNumber(DISPENSE_MAX_AMOUNT_TOKEN), - tokenIfExists.decimals, - ); - if (userBalanceBaseUnits.isGreaterThanOrEqualTo(maxAmountBaseUnits)) { - logUtils.log( - `User exceeded token balance maximum (${maxAmountBaseUnits}) ${recipientAddress} ${userBalanceBaseUnits} `, - ); - return; - } - const txHash = await erc20Token.transfer(recipientAddress, baseUnitAmount).sendTransactionAsync({ - from: configs.DISPENSER_ADDRESS, - }); - logUtils.log(`Sent ${amountToDispense} ${tokenSymbol} to ${recipientAddress} tx: ${txHash}`); - }; - }, -}; diff --git a/packages/testnet-faucets/src/ts/error_reporter.ts b/packages/testnet-faucets/src/ts/error_reporter.ts deleted file mode 100644 index d5358aed03..0000000000 --- a/packages/testnet-faucets/src/ts/error_reporter.ts +++ /dev/null @@ -1,37 +0,0 @@ -import { logUtils } from '@0x/utils'; -import * as express from 'express'; -import rollbar = require('rollbar'); - -import { configs } from './configs'; - -export const errorReporter = { - setup(): void { - rollbar.init(configs.ROLLBAR_ACCESS_KEY, { - environment: configs.ENVIRONMENT, - }); - rollbar.handleUncaughtExceptions(configs.ROLLBAR_ACCESS_KEY); - process.on('unhandledRejection', async (err: Error) => { - logUtils.log(`Uncaught exception ${err}. Stack: ${err.stack}`); - await errorReporter.reportAsync(err); - process.exit(1); - }); - }, - async reportAsync(err: Error, req?: express.Request): Promise { - if (configs.ENVIRONMENT === 'development') { - return; // Do not log development environment errors - } - return new Promise((resolve, reject) => { - rollbar.handleError(err, req, (rollbarErr: Error) => { - if (rollbarErr) { - logUtils.log(`Error reporting to rollbar, ignoring: ${rollbarErr}`); - reject(rollbarErr); - } else { - resolve(); - } - }); - }); - }, - errorHandler(): any { - return rollbar.errorHandler(configs.ROLLBAR_ACCESS_KEY); - }, -}; diff --git a/packages/testnet-faucets/src/ts/global.d.ts b/packages/testnet-faucets/src/ts/global.d.ts deleted file mode 100644 index 94e63a32de..0000000000 --- a/packages/testnet-faucets/src/ts/global.d.ts +++ /dev/null @@ -1,6 +0,0 @@ -declare module '*.json' { - const json: any; - /* tslint:disable */ - export default json; - /* tslint:enable */ -} diff --git a/packages/testnet-faucets/src/ts/handler.ts b/packages/testnet-faucets/src/ts/handler.ts deleted file mode 100644 index e50e1b8656..0000000000 --- a/packages/testnet-faucets/src/ts/handler.ts +++ /dev/null @@ -1,199 +0,0 @@ -import { - assetDataUtils, - BigNumber, - generatePseudoRandomSalt, - Order, - orderHashUtils, - RPCSubprovider, - signatureUtils, - SignedOrder, - Web3ProviderEngine, -} from '0x.js'; -import { getContractAddressesForChainOrThrow } from '@0x/contract-addresses'; -import { NonceTrackerSubprovider, PrivateKeyWalletSubprovider } from '@0x/subproviders'; -import { logUtils } from '@0x/utils'; -import { SupportedProvider, Web3Wrapper } from '@0x/web3-wrapper'; -import * as express from 'express'; -import * as _ from 'lodash'; - -import { configs } from './configs'; -import { constants } from './constants'; -import { DispatchQueue } from './dispatch_queue'; -import { dispenseAssetTasks } from './dispense_asset_tasks'; -import { rpcUrls } from './rpc_urls'; -import { TOKENS_BY_CHAIN } from './tokens'; - -interface ChainConfig { - dispatchQueue: DispatchQueue; - web3Wrapper: Web3Wrapper; - provider: SupportedProvider; - chainId: number; -} - -interface ItemByChainId { - [chainId: string]: T; -} - -enum RequestedAssetType { - ETH = 'ETH', // tslint:disable-line:enum-naming - WETH = 'WETH', // tslint:disable-line:enum-naming - ZRX = 'ZRX', // tslint:disable-line:enum-naming -} - -const FIVE_DAYS_IN_MS = 4.32e8; // TODO: make this configurable -const NULL_ADDRESS = '0x0000000000000000000000000000000000000000'; -const ZERO = new BigNumber(0); -const ASSET_AMOUNT = new BigNumber(0.1); - -export class Handler { - private readonly _chainConfigByChainId: ItemByChainId = {}; - private static _createProviderEngine(rpcUrl: string): Web3ProviderEngine { - if (configs.DISPENSER_PRIVATE_KEY === undefined) { - throw new Error('Dispenser Private key not found'); - } - const engine = new Web3ProviderEngine(); - engine.addProvider(new NonceTrackerSubprovider()); - engine.addProvider(new PrivateKeyWalletSubprovider(configs.DISPENSER_PRIVATE_KEY)); - engine.addProvider(new RPCSubprovider(rpcUrl)); - engine.start(); - return engine; - } - constructor() { - _.forIn(rpcUrls, (rpcUrl: string, chainIdString: string) => { - const providerObj = Handler._createProviderEngine(rpcUrl); - const web3Wrapper = new Web3Wrapper(providerObj); - // tslint:disable-next-line:custom-no-magic-numbers - const chainId = parseInt(chainIdString, 10); - const dispatchQueue = new DispatchQueue(); - this._chainConfigByChainId[chainId] = { - dispatchQueue, - web3Wrapper, - provider: providerObj, - chainId, - }; - }); - } - public getQueueInfo(_req: express.Request, res: express.Response): void { - res.setHeader('Content-Type', 'application/json'); - const queueInfo = _.mapValues(rpcUrls, (_rpcUrl: string, chainId: string) => { - const dispatchQueue = this._chainConfigByChainId[chainId].dispatchQueue; - return { - full: dispatchQueue.isFull(), - size: dispatchQueue.size(), - }; - }); - const payload = JSON.stringify(queueInfo); - res.status(constants.SUCCESS_STATUS).send(payload); - } - public dispenseEther(req: express.Request, res: express.Response): void { - this._dispenseAsset(req, res, RequestedAssetType.ETH); - } - public dispenseZRX(req: express.Request, res: express.Response): void { - this._dispenseAsset(req, res, RequestedAssetType.ZRX); - } - public async dispenseWETHOrderAsync(req: express.Request, res: express.Response): Promise { - await this._dispenseOrderAsync(req, res, RequestedAssetType.WETH); - } - public async dispenseZRXOrderAsync( - req: express.Request, - res: express.Response, - _next: express.NextFunction, - ): Promise { - await this._dispenseOrderAsync(req, res, RequestedAssetType.ZRX); - } - private _dispenseAsset(req: express.Request, res: express.Response, requestedAssetType: RequestedAssetType): void { - const chainId = req.params.chainId; - const recipient = req.params.recipient; - const chainConfig = _.get(this._chainConfigByChainId, chainId); - if (chainConfig === undefined) { - res.status(constants.BAD_REQUEST_STATUS).send('UNSUPPORTED_CHAIN_ID'); - return; - } - let dispenserTask; - switch (requestedAssetType) { - case RequestedAssetType.ETH: - dispenserTask = dispenseAssetTasks.dispenseEtherTask(recipient, chainConfig.web3Wrapper); - break; - case RequestedAssetType.WETH: - case RequestedAssetType.ZRX: - dispenserTask = dispenseAssetTasks.dispenseTokenTask( - recipient, - requestedAssetType, - chainConfig.chainId, - chainConfig.provider, - ); - break; - default: - throw new Error(`Unsupported asset type: ${requestedAssetType}`); - } - const didAddToQueue = chainConfig.dispatchQueue.add(dispenserTask); - if (!didAddToQueue) { - res.status(constants.SERVICE_UNAVAILABLE_STATUS).send('QUEUE_IS_FULL'); - return; - } - logUtils.log(`Added ${recipient} to queue: ${requestedAssetType} chainId: ${chainId}`); - res.status(constants.SUCCESS_STATUS).end(); - } - private async _dispenseOrderAsync( - req: express.Request, - res: express.Response, - requestedAssetType: RequestedAssetType, - ): Promise { - const chainConfig = _.get(this._chainConfigByChainId, req.params.chainId); - if (chainConfig === undefined) { - res.status(constants.BAD_REQUEST_STATUS).send('UNSUPPORTED_CHAIN_ID'); - return; - } - res.setHeader('Content-Type', 'application/json'); - const makerTokenIfExists = _.get(TOKENS_BY_CHAIN, [chainConfig.chainId, requestedAssetType]); - if (makerTokenIfExists === undefined) { - throw new Error(`Unsupported asset type: ${requestedAssetType}`); - } - const takerTokenSymbol = - requestedAssetType === RequestedAssetType.WETH ? RequestedAssetType.ZRX : RequestedAssetType.WETH; - const takerTokenIfExists = _.get(TOKENS_BY_CHAIN, [chainConfig.chainId, takerTokenSymbol]); - if (takerTokenIfExists === undefined) { - throw new Error(`Unsupported asset type: ${takerTokenSymbol}`); - } - - const makerAssetAmount = Web3Wrapper.toBaseUnitAmount(ASSET_AMOUNT, makerTokenIfExists.decimals); - const takerAssetAmount = Web3Wrapper.toBaseUnitAmount(ASSET_AMOUNT, takerTokenIfExists.decimals); - const makerAssetData = assetDataUtils.encodeERC20AssetData(makerTokenIfExists.address); - const takerAssetData = assetDataUtils.encodeERC20AssetData(takerTokenIfExists.address); - const contractAddresses = getContractAddressesForChainOrThrow(chainConfig.chainId); - const order: Order = { - makerAddress: configs.DISPENSER_ADDRESS, - takerAddress: req.params.recipient as string, - makerFee: ZERO, - takerFee: ZERO, - makerAssetAmount, - takerAssetAmount, - makerAssetData, - takerAssetData, - salt: generatePseudoRandomSalt(), - makerFeeAssetData: makerAssetData, - takerFeeAssetData: takerAssetData, - feeRecipientAddress: NULL_ADDRESS, - senderAddress: NULL_ADDRESS, - expirationTimeSeconds: new BigNumber(Date.now() + FIVE_DAYS_IN_MS) - // tslint:disable-next-line:custom-no-magic-numbers - .div(1000) - .integerValue(BigNumber.ROUND_FLOOR), - exchangeAddress: contractAddresses.exchange, - chainId: chainConfig.chainId, - }; - const orderHash = orderHashUtils.getOrderHashHex(order); - const signature = await signatureUtils.ecSignHashAsync( - chainConfig.web3Wrapper.getProvider(), - orderHash, - configs.DISPENSER_ADDRESS, - ); - const signedOrder: SignedOrder = { - ...order, - signature, - }; - const payload = JSON.stringify(signedOrder); - logUtils.log(`Dispensed signed order: ${payload}`); - res.status(constants.SUCCESS_STATUS).send(payload); - } -} diff --git a/packages/testnet-faucets/src/ts/parameter_transformer.ts b/packages/testnet-faucets/src/ts/parameter_transformer.ts deleted file mode 100644 index 8c85a5cbf2..0000000000 --- a/packages/testnet-faucets/src/ts/parameter_transformer.ts +++ /dev/null @@ -1,28 +0,0 @@ -import { addressUtils } from '@0x/utils'; -import { NextFunction, Request, Response } from 'express'; -import * as _ from 'lodash'; - -import { constants } from './constants'; -import { rpcUrls } from './rpc_urls'; - -const DEFAULT_CHAIN_ID = 42; // kovan - -export const parameterTransformer = { - transform(req: Request, res: Response, next: NextFunction): void { - const recipientAddress = req.params.recipient; - if (recipientAddress === undefined || !addressUtils.isAddress(recipientAddress)) { - res.status(constants.BAD_REQUEST_STATUS).send('INVALID_RECIPIENT_ADDRESS'); - return; - } - const lowerCaseRecipientAddress = recipientAddress.toLowerCase(); - req.params.recipient = lowerCaseRecipientAddress; - const chainId = _.get(req.query, 'chainId', DEFAULT_CHAIN_ID); - const rpcUrlIfExists = _.get(rpcUrls, chainId); - if (rpcUrlIfExists === undefined) { - res.status(constants.BAD_REQUEST_STATUS).send('UNSUPPORTED_CHAIN_ID'); - return; - } - req.params.chainId = chainId; - next(); - }, -}; diff --git a/packages/testnet-faucets/src/ts/rpc_urls.ts b/packages/testnet-faucets/src/ts/rpc_urls.ts deleted file mode 100644 index d319082571..0000000000 --- a/packages/testnet-faucets/src/ts/rpc_urls.ts +++ /dev/null @@ -1,12 +0,0 @@ -import { configs } from './configs'; - -const productionRpcUrls = { - '3': `https://ropsten.infura.io/${configs.INFURA_API_KEY}`, - '42': `https://kovan.infura.io/${configs.INFURA_API_KEY}`, -}; - -const developmentRpcUrls = { - '50': 'http://127.0.0.1:8545', -}; - -export const rpcUrls = configs.ENVIRONMENT === 'development' ? developmentRpcUrls : productionRpcUrls; diff --git a/packages/testnet-faucets/src/ts/server.ts b/packages/testnet-faucets/src/ts/server.ts deleted file mode 100644 index f005620009..0000000000 --- a/packages/testnet-faucets/src/ts/server.ts +++ /dev/null @@ -1,52 +0,0 @@ -import * as bodyParser from 'body-parser'; -import * as express from 'express'; - -import { constants } from './constants'; -import { errorReporter } from './error_reporter'; -import { Handler } from './handler'; -import { parameterTransformer } from './parameter_transformer'; - -// Setup the errorReporter to catch uncaught exceptions and unhandled rejections -errorReporter.setup(); - -const app = express(); -app.use(bodyParser.json()); // for parsing application/json -// tslint:disable-next-line:no-unused-variable -app.use((req, res, next) => { - res.header('Access-Control-Allow-Origin', '*'); - res.header('Access-Control-Allow-Headers', 'Origin, X-Requested-With, Content-Type, Accept'); - next(); -}); - -const handler = new Handler(); -// tslint:disable-next-line:no-unused-variable -app.get('/ping', (req: express.Request, res: express.Response) => { - res.status(constants.SUCCESS_STATUS).send('pong'); -}); -app.get('/info', handler.getQueueInfo.bind(handler)); -app.get( - '/ether/:recipient', - parameterTransformer.transform.bind(parameterTransformer), - handler.dispenseEther.bind(handler), -); -app.get( - '/zrx/:recipient', - parameterTransformer.transform.bind(parameterTransformer), - handler.dispenseZRX.bind(handler), -); -app.get( - '/order/weth/:recipient', - parameterTransformer.transform.bind(parameterTransformer), - handler.dispenseWETHOrderAsync.bind(handler), -); -app.get( - '/order/zrx/:recipient', - parameterTransformer.transform.bind(parameterTransformer), - handler.dispenseZRXOrderAsync.bind(handler), -); - -// Log to rollbar any errors unhandled by handlers -app.use(errorReporter.errorHandler()); -const DEFAULT_PORT = 3000; -const port = process.env.PORT || DEFAULT_PORT; -app.listen(port); diff --git a/packages/testnet-faucets/src/ts/tokens.ts b/packages/testnet-faucets/src/ts/tokens.ts deleted file mode 100644 index a769aa8a2a..0000000000 --- a/packages/testnet-faucets/src/ts/tokens.ts +++ /dev/null @@ -1,44 +0,0 @@ -interface TokensByChain { - [chainId: number]: { [tokenSymbol: string]: { address: string; decimals: number } }; -} - -export const tokens = { - ZRX: { - decimals: 18, - }, - WETH: { - decimals: 18, - }, -}; -export const TOKENS_BY_CHAIN: TokensByChain = { - 3: { - ZRX: { - ...tokens.ZRX, - address: '0xff67881f8d12f372d91baae9752eb3631ff0ed00', - }, - WETH: { - ...tokens.WETH, - address: '0xc778417e063141139fce010982780140aa0cd5ab', - }, - }, - 42: { - ZRX: { - ...tokens.ZRX, - address: '0x2002d3812f58e35f0ea1ffbf80a75a38c32175fa', - }, - WETH: { - ...tokens.WETH, - address: '0xd0a1e359811322d97991e03f863a0c30c2cf029c', - }, - }, - 50: { - ZRX: { - ...tokens.ZRX, - address: '0x871dd7c2b4b25e1aa18728e9d5f2af4c4e431f5c', - }, - WETH: { - ...tokens.WETH, - address: '0x0b1ba0af832d7c05fd64161e0db78e85978e8082', - }, - }, -}; diff --git a/packages/testnet-faucets/tsconfig.json b/packages/testnet-faucets/tsconfig.json deleted file mode 100644 index 4997ce208b..0000000000 --- a/packages/testnet-faucets/tsconfig.json +++ /dev/null @@ -1,9 +0,0 @@ -{ - "extends": "../../tsconfig", - "compilerOptions": { - "outDir": "lib", - "rootDir": "src/ts", - "strictPropertyInitialization": false - }, - "include": ["./src/ts/**/*"] -} diff --git a/packages/testnet-faucets/tslint.json b/packages/testnet-faucets/tslint.json deleted file mode 100644 index dd9053357e..0000000000 --- a/packages/testnet-faucets/tslint.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": ["@0x/tslint-config"] -} diff --git a/packages/tslint-config/CHANGELOG.json b/packages/tslint-config/CHANGELOG.json index 34ba702768..cd3d9d0d1f 100644 --- a/packages/tslint-config/CHANGELOG.json +++ b/packages/tslint-config/CHANGELOG.json @@ -1,4 +1,13 @@ [ + { + "version": "3.1.0-beta.1", + "changes": [ + { + "note": "Dependencies updated" + } + ], + "timestamp": 1573159180 + }, { "version": "3.1.0-beta.0", "changes": [ diff --git a/packages/tslint-config/CHANGELOG.md b/packages/tslint-config/CHANGELOG.md index 6d7c95b599..ade36111d8 100644 --- a/packages/tslint-config/CHANGELOG.md +++ b/packages/tslint-config/CHANGELOG.md @@ -5,6 +5,14 @@ Edit the package's CHANGELOG.json file only. CHANGELOG +## v3.1.0-beta.1 - _November 7, 2019_ + + * Dependencies updated + +## v3.1.0-beta.0 - _Invalid date_ + + * Dependencies updated + ## v3.0.1 - _April 11, 2019_ * Dependencies updated diff --git a/packages/tslint-config/package.json b/packages/tslint-config/package.json index 4210c533c8..f919357c04 100644 --- a/packages/tslint-config/package.json +++ b/packages/tslint-config/package.json @@ -1,6 +1,6 @@ { "name": "@0x/tslint-config", - "version": "3.0.1", + "version": "3.1.0-beta.1", "engines": { "node": ">=6.12" }, diff --git a/packages/types/CHANGELOG.json b/packages/types/CHANGELOG.json index 398df453b5..99a78647fe 100644 --- a/packages/types/CHANGELOG.json +++ b/packages/types/CHANGELOG.json @@ -1,12 +1,13 @@ [ { - "version": "3.0.0-beta.0", + "version": "2.5.0-beta.1", "changes": [ { "note": "All references to network ID have been removed, and references to chain ID have been introduced instead", "pr": 2313 } - ] + ], + "timestamp": 1573159180 }, { "version": "2.5.0-beta.0", diff --git a/packages/types/CHANGELOG.md b/packages/types/CHANGELOG.md index e4c1db6425..2a66e963ca 100644 --- a/packages/types/CHANGELOG.md +++ b/packages/types/CHANGELOG.md @@ -5,6 +5,11 @@ Edit the package's CHANGELOG.json file only. CHANGELOG +## v2.5.0-beta.1 - _November 7, 2019_ + + * Add `SendTransactionOpts` and `AwaitTransactionSuccessOpts` types for contract wrappers (#2243) + * All references to network ID have been removed, and references to chain ID have been introduced instead (#2313) + ## v2.5.0-beta.0 - _October 3, 2019_ * Add `OrderStatus` type (#1761) diff --git a/packages/types/package.json b/packages/types/package.json index 3848789982..bd5afa052e 100644 --- a/packages/types/package.json +++ b/packages/types/package.json @@ -1,6 +1,6 @@ { "name": "@0x/types", - "version": "2.5.0-beta.0", + "version": "2.5.0-beta.1", "engines": { "node": ">=6.12" }, @@ -23,7 +23,7 @@ }, "homepage": "https://github.com/0xProject/0x-monorepo/packages/types/README.md", "devDependencies": { - "@0x/tslint-config": "^3.0.1", + "@0x/tslint-config": "^3.1.0-beta.1", "make-promises-safe": "^1.1.0", "shx": "^0.2.2", "tslint": "5.11.0", @@ -32,7 +32,7 @@ "dependencies": { "@types/node": "*", "bignumber.js": "~8.0.2", - "ethereum-types": "^2.2.0-beta.0" + "ethereum-types": "^2.2.0-beta.1" }, "publishConfig": { "access": "public" diff --git a/packages/typescript-typings/CHANGELOG.json b/packages/typescript-typings/CHANGELOG.json index f5c199d24b..59280a84a1 100644 --- a/packages/typescript-typings/CHANGELOG.json +++ b/packages/typescript-typings/CHANGELOG.json @@ -1,4 +1,13 @@ [ + { + "version": "4.4.0-beta.1", + "changes": [ + { + "note": "Dependencies updated" + } + ], + "timestamp": 1573159180 + }, { "version": "4.4.0-beta.0", "changes": [ diff --git a/packages/typescript-typings/CHANGELOG.md b/packages/typescript-typings/CHANGELOG.md index d24bc819e5..c3b4cc0936 100644 --- a/packages/typescript-typings/CHANGELOG.md +++ b/packages/typescript-typings/CHANGELOG.md @@ -5,6 +5,10 @@ Edit the package's CHANGELOG.json file only. CHANGELOG +## v4.4.0-beta.1 - _November 7, 2019_ + + * Dependencies updated + ## v4.4.0-beta.0 - _October 3, 2019_ * Add types for `@0x/dev-utils` chai helpers in `types/@0x` (#1761) diff --git a/packages/typescript-typings/package.json b/packages/typescript-typings/package.json index 6134d63544..7d292f9c47 100644 --- a/packages/typescript-typings/package.json +++ b/packages/typescript-typings/package.json @@ -1,6 +1,6 @@ { "name": "@0x/typescript-typings", - "version": "4.4.0-beta.0", + "version": "4.4.0-beta.1", "engines": { "node": ">=6.12" }, @@ -27,7 +27,7 @@ "@types/bn.js": "^4.11.0", "@types/react": "*", "bignumber.js": "~8.0.2", - "ethereum-types": "^2.2.0-beta.0", + "ethereum-types": "^2.2.0-beta.1", "popper.js": "1.14.3" }, "devDependencies": { diff --git a/packages/utils/CHANGELOG.json b/packages/utils/CHANGELOG.json index 769fd80687..badd6f835f 100644 --- a/packages/utils/CHANGELOG.json +++ b/packages/utils/CHANGELOG.json @@ -10,7 +10,8 @@ "note": "Changed provider_utils.providerUtils.getChainIdAsync() to invoke RPC method eth_chainId rather than net_version", "pr": 2270 } - ] + ], + "timestamp": 1573159180 }, { "version": "4.6.0-beta.0", diff --git a/packages/utils/CHANGELOG.md b/packages/utils/CHANGELOG.md index deed673b2c..510dfc61d9 100644 --- a/packages/utils/CHANGELOG.md +++ b/packages/utils/CHANGELOG.md @@ -5,6 +5,11 @@ Edit the package's CHANGELOG.json file only. CHANGELOG +## v4.6.0-beta.1 - _November 7, 2019_ + + * Consolidated FixedMathRevertErrors (#2255) + * Changed provider_utils.providerUtils.getChainIdAsync() to invoke RPC method eth_chainId rather than net_version (#2270) + ## v4.6.0-beta.0 - _October 3, 2019_ * Allow for array types in `RevertError`s. (#2075) diff --git a/packages/utils/package.json b/packages/utils/package.json index 61ee6cb720..dc5222db2e 100644 --- a/packages/utils/package.json +++ b/packages/utils/package.json @@ -1,6 +1,6 @@ { "name": "@0x/utils", - "version": "4.6.0-beta.0", + "version": "4.6.0-beta.1", "engines": { "node": ">=6.12" }, @@ -29,7 +29,7 @@ }, "homepage": "https://github.com/0xProject/0x-monorepo/packages/utils/README.md", "devDependencies": { - "@0x/tslint-config": "^3.0.1", + "@0x/tslint-config": "^3.1.0-beta.1", "@types/detect-node": "2.0.0", "@types/lodash": "4.14.104", "@types/mocha": "^5.2.7", @@ -45,14 +45,14 @@ "typescript": "3.0.1" }, "dependencies": { - "@0x/types": "^2.5.0-beta.0", - "@0x/typescript-typings": "^4.4.0-beta.0", + "@0x/types": "^2.5.0-beta.1", + "@0x/typescript-typings": "^4.4.0-beta.1", "@types/node": "*", "abortcontroller-polyfill": "^1.1.9", "bignumber.js": "~8.0.2", "chalk": "^2.3.0", "detect-node": "2.0.3", - "ethereum-types": "^2.2.0-beta.0", + "ethereum-types": "^2.2.0-beta.1", "ethereumjs-util": "^5.1.1", "ethers": "~4.0.4", "isomorphic-fetch": "2.2.1", diff --git a/packages/web3-wrapper/CHANGELOG.json b/packages/web3-wrapper/CHANGELOG.json index 427b1e2a74..847ce61582 100644 --- a/packages/web3-wrapper/CHANGELOG.json +++ b/packages/web3-wrapper/CHANGELOG.json @@ -1,4 +1,13 @@ [ + { + "version": "6.1.0-beta.1", + "changes": [ + { + "note": "Dependencies updated" + } + ], + "timestamp": 1573159180 + }, { "version": "6.1.0-beta.0", "changes": [ diff --git a/packages/web3-wrapper/CHANGELOG.md b/packages/web3-wrapper/CHANGELOG.md index 258eda180e..cd813e53a0 100644 --- a/packages/web3-wrapper/CHANGELOG.md +++ b/packages/web3-wrapper/CHANGELOG.md @@ -5,6 +5,10 @@ Edit the package's CHANGELOG.json file only. CHANGELOG +## v6.1.0-beta.1 - _November 7, 2019_ + + * Dependencies updated + ## v6.1.0-beta.0 - _October 3, 2019_ * Let `toBaseUnitAmount()` accept a `number` (#1819) diff --git a/packages/web3-wrapper/docs/reference.mdx b/packages/web3-wrapper/docs/reference.mdx index 60eab6fac1..0a01acbe1e 100644 --- a/packages/web3-wrapper/docs/reference.mdx +++ b/packages/web3-wrapper/docs/reference.mdx @@ -1,95 +1,37 @@ -# Class: AbiDecoder - -AbiDecoder allows you to decode event logs given a set of supplied contract ABI's. It takes the contract's event -signature from the ABI and attempts to decode the logs using it. - - -## Constructors - - - -\+ **new AbiDecoder**(`abiArrays`: [AbiDefinition](#abidefinition)[][]): *[AbiDecoder](#class-abidecoder)* - -*Defined in [utils/src/abi_decoder.ts:42](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/utils/src/abi_decoder.ts#L42)* - -Instantiate an AbiDecoder - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`abiArrays` | [AbiDefinition](#abidefinition)[][] | An array of contract ABI's | - -**Returns:** *[AbiDecoder](#class-abidecoder)* - -AbiDecoder instance - -## Methods - -### addABI - -▸ **addABI**(`abiArray`: [AbiDefinition](#abidefinition)[], `contractName?`: undefined | string): *void* +# Interface: JSONRPCResponsePayload -*Defined in [utils/src/abi_decoder.ts:158](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/utils/src/abi_decoder.ts#L158)* -Adds a set of ABI definitions, after which calldata and logs targeting these ABI's can be decoded. -Additional properties can be included to disambiguate similar ABI's. For example, if two functions -have the same signature but different parameter names, then their ABI definitions can be disambiguated -by specifying a contract name. +## Properties -**Parameters:** +### `Optional` error -Name | Type | Description | ------- | ------ | ------ | -`abiArray` | [AbiDefinition](#abidefinition)[] | - | -`contractName?` | undefined \| string | Name of contract that encapsulates the ABI definitions (optional). This can be used when decoding calldata to disambiguate methods with the same signature but different parameter names. | +• **error**? : *[JSONRPCResponseError](#class-jsonrpcresponseerror)* -**Returns:** *void* +*Defined in [ethereum-types/src/index.ts:343](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L343)* ___ -### decodeCalldataOrThrow - -▸ **decodeCalldataOrThrow**(`calldata`: string, `contractName?`: undefined | string): *`DecodedCalldata`* - -*Defined in [utils/src/abi_decoder.ts:118](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/utils/src/abi_decoder.ts#L118)* - -Decodes calldata for a known ABI. - -**Parameters:** - -Name | Type | Description | ------- | ------ | ------ | -`calldata` | string | hex-encoded calldata. | -`contractName?` | undefined \| string | used to disambiguate similar ABI's (optional). | +### id -**Returns:** *`DecodedCalldata`* +• **id**: *number* -Decoded calldata. Includes: function name and signature, along with the decoded arguments. +*Defined in [ethereum-types/src/index.ts:341](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L341)* ___ -### tryToDecodeLogOrNoop - -▸ **tryToDecodeLogOrNoop**<**ArgsType**>(`log`: `LogEntry`): *`LogWithDecodedArgs` | [RawLog](#rawlog)* - -*Defined in [utils/src/abi_decoder.ts:58](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/utils/src/abi_decoder.ts#L58)* - -Attempt to decode a log given the ABI's the AbiDecoder knows about. +### jsonrpc -**Type parameters:** +• **jsonrpc**: *string* -▪ **ArgsType**: *`DecodedLogArgs`* +*Defined in [ethereum-types/src/index.ts:342](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L342)* -**Parameters:** +___ -Name | Type | Description | ------- | ------ | ------ | -`log` | `LogEntry` | The log to attempt to decode | +### result -**Returns:** *`LogWithDecodedArgs` | [RawLog](#rawlog)* +• **result**: *any* -The decoded log if the requisite ABI was available. Otherwise the log unaltered. +*Defined in [ethereum-types/src/index.ts:340](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L340)*
@@ -104,7 +46,7 @@ An alternative to the Web3.js library that provides a consistent, clean, promise \+ **new Web3Wrapper**(`supportedProvider`: [SupportedProvider](#supportedprovider), `callAndTxnDefaults`: `Partial`): *[Web3Wrapper](#class-web3wrapper)* -*Defined in [web3-wrapper/src/web3_wrapper.ts:144](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/web3-wrapper/src/web3_wrapper.ts#L144)* +*Defined in [web3-wrapper/src/web3_wrapper.ts:144](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/web3-wrapper/src/web3_wrapper.ts#L144)* Instantiates a new Web3Wrapper. @@ -125,7 +67,7 @@ An instance of the Web3Wrapper class. • **abiDecoder**: *`AbiDecoder`* -*Defined in [web3-wrapper/src/web3_wrapper.ts:54](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/web3-wrapper/src/web3_wrapper.ts#L54)* +*Defined in [web3-wrapper/src/web3_wrapper.ts:54](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/web3-wrapper/src/web3_wrapper.ts#L54)* ___ @@ -133,7 +75,7 @@ ___ • **isZeroExWeb3Wrapper**: *boolean* = true -*Defined in [web3-wrapper/src/web3_wrapper.ts:53](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/web3-wrapper/src/web3_wrapper.ts#L53)* +*Defined in [web3-wrapper/src/web3_wrapper.ts:53](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/web3-wrapper/src/web3_wrapper.ts#L53)* Flag to check if this instance is of type Web3Wrapper @@ -143,7 +85,7 @@ Flag to check if this instance is of type Web3Wrapper ▸ **awaitTransactionMinedAsync**(`txHash`: string, `pollingIntervalMs`: number, `timeoutMs?`: undefined | number): *`Promise`* -*Defined in [web3-wrapper/src/web3_wrapper.ts:576](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/web3-wrapper/src/web3_wrapper.ts#L576)* +*Defined in [web3-wrapper/src/web3_wrapper.ts:576](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/web3-wrapper/src/web3_wrapper.ts#L576)* Waits for a transaction to be mined and returns the transaction receipt. Note that just because a transaction was mined does not mean it was @@ -169,7 +111,7 @@ ___ ▸ **awaitTransactionSuccessAsync**(`txHash`: string, `pollingIntervalMs`: number, `timeoutMs?`: undefined | number): *`Promise`* -*Defined in [web3-wrapper/src/web3_wrapper.ts:651](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/web3-wrapper/src/web3_wrapper.ts#L651)* +*Defined in [web3-wrapper/src/web3_wrapper.ts:651](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/web3-wrapper/src/web3_wrapper.ts#L651)* Waits for a transaction to be mined and returns the transaction receipt. Unlike awaitTransactionMinedAsync, it will throw if the receipt has a @@ -195,7 +137,7 @@ ___ ▸ **callAsync**(`callData`: `CallData`, `defaultBlock?`: [BlockParam](#blockparam)): *`Promise`* -*Defined in [web3-wrapper/src/web3_wrapper.ts:533](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/web3-wrapper/src/web3_wrapper.ts#L533)* +*Defined in [web3-wrapper/src/web3_wrapper.ts:533](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/web3-wrapper/src/web3_wrapper.ts#L533)* Call a smart contract method at a given block height @@ -216,7 +158,7 @@ ___ ▸ **doesContractExistAtAddressAsync**(`address`: string): *`Promise`* -*Defined in [web3-wrapper/src/web3_wrapper.ts:281](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/web3-wrapper/src/web3_wrapper.ts#L281)* +*Defined in [web3-wrapper/src/web3_wrapper.ts:281](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/web3-wrapper/src/web3_wrapper.ts#L281)* Check if a contract exists at a given address @@ -236,7 +178,7 @@ ___ ▸ **estimateGasAsync**(`txData`: `Partial`): *`Promise`* -*Defined in [web3-wrapper/src/web3_wrapper.ts:516](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/web3-wrapper/src/web3_wrapper.ts#L516)* +*Defined in [web3-wrapper/src/web3_wrapper.ts:516](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/web3-wrapper/src/web3_wrapper.ts#L516)* Calculate the estimated gas cost for a given transaction @@ -256,7 +198,7 @@ ___ ▸ **getAvailableAddressesAsync**(): *`Promise`* -*Defined in [web3-wrapper/src/web3_wrapper.ts:429](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/web3-wrapper/src/web3_wrapper.ts#L429)* +*Defined in [web3-wrapper/src/web3_wrapper.ts:429](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/web3-wrapper/src/web3_wrapper.ts#L429)* Retrieve the user addresses available through the backing provider @@ -270,7 +212,7 @@ ___ ▸ **getBalanceInWeiAsync**(`owner`: string, `defaultBlock?`: [BlockParam](#blockparam)): *`Promise`* -*Defined in [web3-wrapper/src/web3_wrapper.ts:262](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/web3-wrapper/src/web3_wrapper.ts#L262)* +*Defined in [web3-wrapper/src/web3_wrapper.ts:262](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/web3-wrapper/src/web3_wrapper.ts#L262)* Retrieves an accounts Ether balance in wei @@ -291,7 +233,7 @@ ___ ▸ **getBlockIfExistsAsync**(`blockParam`: string | [BlockParam](#blockparam)): *`Promise`* -*Defined in [web3-wrapper/src/web3_wrapper.ts:369](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/web3-wrapper/src/web3_wrapper.ts#L369)* +*Defined in [web3-wrapper/src/web3_wrapper.ts:369](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/web3-wrapper/src/web3_wrapper.ts#L369)* Fetch a specific Ethereum block without transaction data @@ -312,7 +254,7 @@ ___ ▸ **getBlockNumberAsync**(): *`Promise`* -*Defined in [web3-wrapper/src/web3_wrapper.ts:355](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/web3-wrapper/src/web3_wrapper.ts#L355)* +*Defined in [web3-wrapper/src/web3_wrapper.ts:355](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/web3-wrapper/src/web3_wrapper.ts#L355)* Fetches the latest block number @@ -326,7 +268,7 @@ ___ ▸ **getBlockTimestampAsync**(`blockParam`: string | [BlockParam](#blockparam)): *`Promise`* -*Defined in [web3-wrapper/src/web3_wrapper.ts:417](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/web3-wrapper/src/web3_wrapper.ts#L417)* +*Defined in [web3-wrapper/src/web3_wrapper.ts:417](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/web3-wrapper/src/web3_wrapper.ts#L417)* Fetch a block's timestamp @@ -346,7 +288,7 @@ ___ ▸ **getBlockWithTransactionDataAsync**(`blockParam`: string | [BlockParam](#blockparam)): *`Promise`* -*Defined in [web3-wrapper/src/web3_wrapper.ts:395](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/web3-wrapper/src/web3_wrapper.ts#L395)* +*Defined in [web3-wrapper/src/web3_wrapper.ts:395](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/web3-wrapper/src/web3_wrapper.ts#L395)* Fetch a specific Ethereum block with transaction data @@ -366,7 +308,7 @@ ___ ▸ **getChainIdAsync**(): *`Promise`* -*Defined in [web3-wrapper/src/web3_wrapper.ts:215](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/web3-wrapper/src/web3_wrapper.ts#L215)* +*Defined in [web3-wrapper/src/web3_wrapper.ts:215](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/web3-wrapper/src/web3_wrapper.ts#L215)* Fetches the chainId of the backing Ethereum node @@ -380,7 +322,7 @@ ___ ▸ **getContractCodeAsync**(`address`: string, `defaultBlock?`: [BlockParam](#blockparam)): *`Promise`* -*Defined in [web3-wrapper/src/web3_wrapper.ts:294](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/web3-wrapper/src/web3_wrapper.ts#L294)* +*Defined in [web3-wrapper/src/web3_wrapper.ts:294](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/web3-wrapper/src/web3_wrapper.ts#L294)* Gets the contract code by address @@ -401,7 +343,7 @@ ___ ▸ **getContractDefaults**(): *`Partial` | undefined* -*Defined in [web3-wrapper/src/web3_wrapper.ts:163](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/web3-wrapper/src/web3_wrapper.ts#L163)* +*Defined in [web3-wrapper/src/web3_wrapper.ts:163](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/web3-wrapper/src/web3_wrapper.ts#L163)* Get the contract defaults set to the Web3Wrapper instance @@ -415,7 +357,7 @@ ___ ▸ **getLogsAsync**(`filter`: `FilterObject`): *`Promise`* -*Defined in [web3-wrapper/src/web3_wrapper.ts:483](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/web3-wrapper/src/web3_wrapper.ts#L483)* +*Defined in [web3-wrapper/src/web3_wrapper.ts:483](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/web3-wrapper/src/web3_wrapper.ts#L483)* Retrieve smart contract logs for a given filter @@ -435,7 +377,7 @@ ___ ▸ **getNetworkIdAsync**(): *`Promise`* -*Defined in [web3-wrapper/src/web3_wrapper.ts:206](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/web3-wrapper/src/web3_wrapper.ts#L206)* +*Defined in [web3-wrapper/src/web3_wrapper.ts:206](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/web3-wrapper/src/web3_wrapper.ts#L206)* Fetches the networkId of the backing Ethereum node @@ -449,7 +391,7 @@ ___ ▸ **getNodeTypeAsync**(): *`Promise`* -*Defined in [web3-wrapper/src/web3_wrapper.ts:698](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/web3-wrapper/src/web3_wrapper.ts#L698)* +*Defined in [web3-wrapper/src/web3_wrapper.ts:698](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/web3-wrapper/src/web3_wrapper.ts#L698)* Returns either NodeType.Geth or NodeType.Ganache depending on the type of the backing Ethereum node. Throws for any other type of node. @@ -462,7 +404,7 @@ ___ ▸ **getNodeVersionAsync**(): *`Promise`* -*Defined in [web3-wrapper/src/web3_wrapper.ts:198](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/web3-wrapper/src/web3_wrapper.ts#L198)* +*Defined in [web3-wrapper/src/web3_wrapper.ts:198](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/web3-wrapper/src/web3_wrapper.ts#L198)* Fetch the backing Ethereum node's version string (e.g `MetaMask/v4.2.0`) @@ -476,7 +418,7 @@ ___ ▸ **getProvider**(): *[SupportedProvider](#supportedprovider)* -*Defined in [web3-wrapper/src/web3_wrapper.ts:170](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/web3-wrapper/src/web3_wrapper.ts#L170)* +*Defined in [web3-wrapper/src/web3_wrapper.ts:170](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/web3-wrapper/src/web3_wrapper.ts#L170)* Retrieve the Web3 provider @@ -490,7 +432,7 @@ ___ ▸ **getTransactionByHashAsync**(`txHash`: string): *`Promise`* -*Defined in [web3-wrapper/src/web3_wrapper.ts:247](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/web3-wrapper/src/web3_wrapper.ts#L247)* +*Defined in [web3-wrapper/src/web3_wrapper.ts:247](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/web3-wrapper/src/web3_wrapper.ts#L247)* Retrieves the transaction data for a given transaction @@ -510,7 +452,7 @@ ___ ▸ **getTransactionReceiptIfExistsAsync**(`txHash`: string): *`Promise`* -*Defined in [web3-wrapper/src/web3_wrapper.ts:225](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/web3-wrapper/src/web3_wrapper.ts#L225)* +*Defined in [web3-wrapper/src/web3_wrapper.ts:225](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/web3-wrapper/src/web3_wrapper.ts#L225)* Retrieves the transaction receipt for a given transaction hash if found @@ -530,7 +472,7 @@ ___ ▸ **getTransactionTraceAsync**(`txHash`: string, `traceParams`: `TraceParams`): *`Promise`* -*Defined in [web3-wrapper/src/web3_wrapper.ts:313](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/web3-wrapper/src/web3_wrapper.ts#L313)* +*Defined in [web3-wrapper/src/web3_wrapper.ts:313](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/web3-wrapper/src/web3_wrapper.ts#L313)* Gets the debug trace of a transaction @@ -551,7 +493,7 @@ ___ ▸ **increaseTimeAsync**(`timeDelta`: number): *`Promise`* -*Defined in [web3-wrapper/src/web3_wrapper.ts:466](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/web3-wrapper/src/web3_wrapper.ts#L466)* +*Defined in [web3-wrapper/src/web3_wrapper.ts:466](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/web3-wrapper/src/web3_wrapper.ts#L466)* Increase the next blocks timestamp on TestRPC/Ganache or Geth local node. Will throw if provider is neither TestRPC/Ganache or Geth. @@ -570,7 +512,7 @@ ___ ▸ **isSenderAddressAvailableAsync**(`senderAddress`: string): *`Promise`* -*Defined in [web3-wrapper/src/web3_wrapper.ts:188](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/web3-wrapper/src/web3_wrapper.ts#L188)* +*Defined in [web3-wrapper/src/web3_wrapper.ts:188](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/web3-wrapper/src/web3_wrapper.ts#L188)* Check whether an address is available through the backing provider. This can be useful if you want to know whether a user can sign messages or transactions from @@ -592,7 +534,7 @@ ___ ▸ **mineBlockAsync**(): *`Promise`* -*Defined in [web3-wrapper/src/web3_wrapper.ts:458](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/web3-wrapper/src/web3_wrapper.ts#L458)* +*Defined in [web3-wrapper/src/web3_wrapper.ts:458](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/web3-wrapper/src/web3_wrapper.ts#L458)* Mine a block on a TestRPC/Ganache local node @@ -604,7 +546,7 @@ ___ ▸ **revertSnapshotAsync**(`snapshotId`: number): *`Promise`* -*Defined in [web3-wrapper/src/web3_wrapper.ts:450](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/web3-wrapper/src/web3_wrapper.ts#L450)* +*Defined in [web3-wrapper/src/web3_wrapper.ts:450](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/web3-wrapper/src/web3_wrapper.ts#L450)* Revert the blockchain state to a previous snapshot state on TestRPC/Ganache local node @@ -624,7 +566,7 @@ ___ ▸ **sendRawPayloadAsync**<**A**>(`payload`: `Partial`): *`Promise`* -*Defined in [web3-wrapper/src/web3_wrapper.ts:679](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/web3-wrapper/src/web3_wrapper.ts#L679)* +*Defined in [web3-wrapper/src/web3_wrapper.ts:679](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/web3-wrapper/src/web3_wrapper.ts#L679)* Sends a raw Ethereum JSON RPC payload and returns the response's `result` key @@ -648,7 +590,7 @@ ___ ▸ **sendTransactionAsync**(`txData`: `TxData`): *`Promise`* -*Defined in [web3-wrapper/src/web3_wrapper.ts:555](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/web3-wrapper/src/web3_wrapper.ts#L555)* +*Defined in [web3-wrapper/src/web3_wrapper.ts:555](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/web3-wrapper/src/web3_wrapper.ts#L555)* Send a transaction @@ -668,7 +610,7 @@ ___ ▸ **setHeadAsync**(`blockNumber`: number): *`Promise`* -*Defined in [web3-wrapper/src/web3_wrapper.ts:670](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/web3-wrapper/src/web3_wrapper.ts#L670)* +*Defined in [web3-wrapper/src/web3_wrapper.ts:670](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/web3-wrapper/src/web3_wrapper.ts#L670)* Calls the 'debug_setHead' JSON RPC method, which sets the current head of the local chain by block number. Note, this is a destructive action and @@ -690,7 +632,7 @@ ___ ▸ **setProvider**(`supportedProvider`: [SupportedProvider](#supportedprovider)): *void* -*Defined in [web3-wrapper/src/web3_wrapper.ts:177](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/web3-wrapper/src/web3_wrapper.ts#L177)* +*Defined in [web3-wrapper/src/web3_wrapper.ts:177](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/web3-wrapper/src/web3_wrapper.ts#L177)* Update the used Web3 provider @@ -708,7 +650,7 @@ ___ ▸ **signMessageAsync**(`address`: string, `message`: string): *`Promise`* -*Defined in [web3-wrapper/src/web3_wrapper.ts:327](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/web3-wrapper/src/web3_wrapper.ts#L327)* +*Defined in [web3-wrapper/src/web3_wrapper.ts:327](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/web3-wrapper/src/web3_wrapper.ts#L327)* Sign a message with a specific address's private key (`eth_sign`) @@ -729,7 +671,7 @@ ___ ▸ **signTypedDataAsync**(`address`: string, `typedData`: any): *`Promise`* -*Defined in [web3-wrapper/src/web3_wrapper.ts:342](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/web3-wrapper/src/web3_wrapper.ts#L342)* +*Defined in [web3-wrapper/src/web3_wrapper.ts:342](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/web3-wrapper/src/web3_wrapper.ts#L342)* Sign an EIP712 typed data message with a specific address's private key (`eth_signTypedData`) @@ -750,7 +692,7 @@ ___ ▸ **takeSnapshotAsync**(): *`Promise`* -*Defined in [web3-wrapper/src/web3_wrapper.ts:441](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/web3-wrapper/src/web3_wrapper.ts#L441)* +*Defined in [web3-wrapper/src/web3_wrapper.ts:441](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/web3-wrapper/src/web3_wrapper.ts#L441)* Take a snapshot of the blockchain state on a TestRPC/Ganache local node @@ -764,7 +706,7 @@ ___ ▸ **isAddress**(`address`: string): *boolean* -*Defined in [web3-wrapper/src/web3_wrapper.ts:65](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/web3-wrapper/src/web3_wrapper.ts#L65)* +*Defined in [web3-wrapper/src/web3_wrapper.ts:65](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/web3-wrapper/src/web3_wrapper.ts#L65)* Check if an address is a valid Ethereum address @@ -784,7 +726,7 @@ ___ ▸ **toBaseUnitAmount**(`amount`: `BigNumber` | number, `decimals`: number): *`BigNumber`* -*Defined in [web3-wrapper/src/web3_wrapper.ts:91](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/web3-wrapper/src/web3_wrapper.ts#L91)* +*Defined in [web3-wrapper/src/web3_wrapper.ts:91](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/web3-wrapper/src/web3_wrapper.ts#L91)* A baseUnit is defined as the smallest denomination of a token. An amount expressed in baseUnits is the amount expressed in the smallest denomination. @@ -807,7 +749,7 @@ ___ ▸ **toUnitAmount**(`amount`: `BigNumber`, `decimals`: number): *`BigNumber`* -*Defined in [web3-wrapper/src/web3_wrapper.ts:76](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/web3-wrapper/src/web3_wrapper.ts#L76)* +*Defined in [web3-wrapper/src/web3_wrapper.ts:76](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/web3-wrapper/src/web3_wrapper.ts#L76)* A unit amount is defined as the amount of a token above the specified decimal places (integer part). E.g: If a currency has 18 decimal places, 1e18 or one quintillion of the currency is equivalent @@ -830,7 +772,7 @@ ___ ▸ **toWei**(`ethAmount`: `BigNumber`): *`BigNumber`* -*Defined in [web3-wrapper/src/web3_wrapper.ts:106](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/web3-wrapper/src/web3_wrapper.ts#L106)* +*Defined in [web3-wrapper/src/web3_wrapper.ts:106](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/web3-wrapper/src/web3_wrapper.ts#L106)* Convert an Ether amount from ETH to Wei @@ -857,7 +799,7 @@ Amount in wei • **Earliest**: = "earliest" -*Defined in [ethereum-types/src/index.ts:478](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L478)* +*Defined in [ethereum-types/src/index.ts:478](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L478)* ___ @@ -865,7 +807,7 @@ ___ • **Latest**: = "latest" -*Defined in [ethereum-types/src/index.ts:479](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L479)* +*Defined in [ethereum-types/src/index.ts:479](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L479)* ___ @@ -873,7 +815,7 @@ ___ • **Pending**: = "pending" -*Defined in [ethereum-types/src/index.ts:480](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L480)* +*Defined in [ethereum-types/src/index.ts:480](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L480)*
@@ -886,7 +828,7 @@ ___ • **Add**: = "ADD" -*Defined in [ethereum-types/src/index.ts:147](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L147)* +*Defined in [ethereum-types/src/index.ts:147](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L147)* ___ @@ -894,7 +836,7 @@ ___ • **AddMod**: = "ADDMOD" -*Defined in [ethereum-types/src/index.ts:154](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L154)* +*Defined in [ethereum-types/src/index.ts:154](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L154)* ___ @@ -902,7 +844,7 @@ ___ • **Address**: = "ADDRESS" -*Defined in [ethereum-types/src/index.ts:173](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L173)* +*Defined in [ethereum-types/src/index.ts:173](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L173)* ___ @@ -910,7 +852,7 @@ ___ • **And**: = "AND" -*Defined in [ethereum-types/src/index.ts:165](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L165)* +*Defined in [ethereum-types/src/index.ts:165](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L165)* ___ @@ -918,7 +860,7 @@ ___ • **Balance**: = "BALANCE" -*Defined in [ethereum-types/src/index.ts:174](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L174)* +*Defined in [ethereum-types/src/index.ts:174](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L174)* ___ @@ -926,7 +868,7 @@ ___ • **BlockHash**: = "BLOCKHASH" -*Defined in [ethereum-types/src/index.ts:189](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L189)* +*Defined in [ethereum-types/src/index.ts:189](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L189)* ___ @@ -934,7 +876,7 @@ ___ • **Byte**: = "BYTE" -*Defined in [ethereum-types/src/index.ts:169](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L169)* +*Defined in [ethereum-types/src/index.ts:169](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L169)* ___ @@ -942,7 +884,7 @@ ___ • **Call**: = "CALL" -*Defined in [ethereum-types/src/index.ts:282](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L282)* +*Defined in [ethereum-types/src/index.ts:282](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L282)* ___ @@ -950,7 +892,7 @@ ___ • **CallCode**: = "CALLCODE" -*Defined in [ethereum-types/src/index.ts:283](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L283)* +*Defined in [ethereum-types/src/index.ts:283](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L283)* ___ @@ -958,7 +900,7 @@ ___ • **CallDataCopy**: = "CALLDATACOPY" -*Defined in [ethereum-types/src/index.ts:180](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L180)* +*Defined in [ethereum-types/src/index.ts:180](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L180)* ___ @@ -966,7 +908,7 @@ ___ • **CallDataLoad**: = "CALLDATALOAD" -*Defined in [ethereum-types/src/index.ts:178](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L178)* +*Defined in [ethereum-types/src/index.ts:178](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L178)* ___ @@ -974,7 +916,7 @@ ___ • **CallDataSize**: = "CALLDATASIZE" -*Defined in [ethereum-types/src/index.ts:179](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L179)* +*Defined in [ethereum-types/src/index.ts:179](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L179)* ___ @@ -982,7 +924,7 @@ ___ • **CallValue**: = "CALLVALUE" -*Defined in [ethereum-types/src/index.ts:177](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L177)* +*Defined in [ethereum-types/src/index.ts:177](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L177)* ___ @@ -990,7 +932,7 @@ ___ • **Caller**: = "CALLER" -*Defined in [ethereum-types/src/index.ts:176](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L176)* +*Defined in [ethereum-types/src/index.ts:176](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L176)* ___ @@ -998,7 +940,7 @@ ___ • **CodeCopy**: = "CODECOPY" -*Defined in [ethereum-types/src/index.ts:182](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L182)* +*Defined in [ethereum-types/src/index.ts:182](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L182)* ___ @@ -1006,7 +948,7 @@ ___ • **CodeSize**: = "CODESIZE" -*Defined in [ethereum-types/src/index.ts:181](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L181)* +*Defined in [ethereum-types/src/index.ts:181](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L181)* ___ @@ -1014,7 +956,7 @@ ___ • **Coinbase**: = "COINBASE" -*Defined in [ethereum-types/src/index.ts:190](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L190)* +*Defined in [ethereum-types/src/index.ts:190](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L190)* ___ @@ -1022,7 +964,7 @@ ___ • **Create**: = "CREATE" -*Defined in [ethereum-types/src/index.ts:281](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L281)* +*Defined in [ethereum-types/src/index.ts:281](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L281)* ___ @@ -1030,7 +972,7 @@ ___ • **DelegateCall**: = "DELEGATECALL" -*Defined in [ethereum-types/src/index.ts:285](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L285)* +*Defined in [ethereum-types/src/index.ts:285](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L285)* ___ @@ -1038,7 +980,7 @@ ___ • **Difficulty**: = "DIFFICULTY" -*Defined in [ethereum-types/src/index.ts:193](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L193)* +*Defined in [ethereum-types/src/index.ts:193](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L193)* ___ @@ -1046,7 +988,7 @@ ___ • **Div**: = "DIV" -*Defined in [ethereum-types/src/index.ts:150](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L150)* +*Defined in [ethereum-types/src/index.ts:150](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L150)* ___ @@ -1054,7 +996,7 @@ ___ • **Dup1**: = "DUP1" -*Defined in [ethereum-types/src/index.ts:242](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L242)* +*Defined in [ethereum-types/src/index.ts:242](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L242)* ___ @@ -1062,7 +1004,7 @@ ___ • **Dup10**: = "DUP10" -*Defined in [ethereum-types/src/index.ts:251](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L251)* +*Defined in [ethereum-types/src/index.ts:251](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L251)* ___ @@ -1070,7 +1012,7 @@ ___ • **Dup11**: = "DUP11" -*Defined in [ethereum-types/src/index.ts:252](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L252)* +*Defined in [ethereum-types/src/index.ts:252](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L252)* ___ @@ -1078,7 +1020,7 @@ ___ • **Dup12**: = "DUP12" -*Defined in [ethereum-types/src/index.ts:253](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L253)* +*Defined in [ethereum-types/src/index.ts:253](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L253)* ___ @@ -1086,7 +1028,7 @@ ___ • **Dup13**: = "DUP13" -*Defined in [ethereum-types/src/index.ts:254](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L254)* +*Defined in [ethereum-types/src/index.ts:254](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L254)* ___ @@ -1094,7 +1036,7 @@ ___ • **Dup14**: = "DUP14" -*Defined in [ethereum-types/src/index.ts:255](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L255)* +*Defined in [ethereum-types/src/index.ts:255](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L255)* ___ @@ -1102,7 +1044,7 @@ ___ • **Dup15**: = "DUP15" -*Defined in [ethereum-types/src/index.ts:256](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L256)* +*Defined in [ethereum-types/src/index.ts:256](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L256)* ___ @@ -1110,7 +1052,7 @@ ___ • **Dup16**: = "DUP16" -*Defined in [ethereum-types/src/index.ts:257](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L257)* +*Defined in [ethereum-types/src/index.ts:257](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L257)* ___ @@ -1118,7 +1060,7 @@ ___ • **Dup2**: = "DUP2" -*Defined in [ethereum-types/src/index.ts:243](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L243)* +*Defined in [ethereum-types/src/index.ts:243](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L243)* ___ @@ -1126,7 +1068,7 @@ ___ • **Dup3**: = "DUP3" -*Defined in [ethereum-types/src/index.ts:244](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L244)* +*Defined in [ethereum-types/src/index.ts:244](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L244)* ___ @@ -1134,7 +1076,7 @@ ___ • **Dup4**: = "DUP4" -*Defined in [ethereum-types/src/index.ts:245](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L245)* +*Defined in [ethereum-types/src/index.ts:245](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L245)* ___ @@ -1142,7 +1084,7 @@ ___ • **Dup5**: = "DUP5" -*Defined in [ethereum-types/src/index.ts:246](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L246)* +*Defined in [ethereum-types/src/index.ts:246](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L246)* ___ @@ -1150,7 +1092,7 @@ ___ • **Dup6**: = "DUP6" -*Defined in [ethereum-types/src/index.ts:247](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L247)* +*Defined in [ethereum-types/src/index.ts:247](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L247)* ___ @@ -1158,7 +1100,7 @@ ___ • **Dup7**: = "DUP7" -*Defined in [ethereum-types/src/index.ts:248](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L248)* +*Defined in [ethereum-types/src/index.ts:248](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L248)* ___ @@ -1166,7 +1108,7 @@ ___ • **Dup8**: = "DUP8" -*Defined in [ethereum-types/src/index.ts:249](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L249)* +*Defined in [ethereum-types/src/index.ts:249](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L249)* ___ @@ -1174,7 +1116,7 @@ ___ • **Dup9**: = "DUP9" -*Defined in [ethereum-types/src/index.ts:250](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L250)* +*Defined in [ethereum-types/src/index.ts:250](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L250)* ___ @@ -1182,7 +1124,7 @@ ___ • **Eq**: = "EQ" -*Defined in [ethereum-types/src/index.ts:163](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L163)* +*Defined in [ethereum-types/src/index.ts:163](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L163)* ___ @@ -1190,7 +1132,7 @@ ___ • **Exp**: = "EXP" -*Defined in [ethereum-types/src/index.ts:156](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L156)* +*Defined in [ethereum-types/src/index.ts:156](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L156)* ___ @@ -1198,7 +1140,7 @@ ___ • **ExtCodeCopy**: = "EXTCODECOPY" -*Defined in [ethereum-types/src/index.ts:185](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L185)* +*Defined in [ethereum-types/src/index.ts:185](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L185)* ___ @@ -1206,7 +1148,7 @@ ___ • **ExtCodeSize**: = "EXTCODESIZE" -*Defined in [ethereum-types/src/index.ts:184](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L184)* +*Defined in [ethereum-types/src/index.ts:184](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L184)* ___ @@ -1214,7 +1156,7 @@ ___ • **Gas**: = "GAS" -*Defined in [ethereum-types/src/index.ts:206](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L206)* +*Defined in [ethereum-types/src/index.ts:206](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L206)* ___ @@ -1222,7 +1164,7 @@ ___ • **GasPrice**: = "GASPRICE" -*Defined in [ethereum-types/src/index.ts:183](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L183)* +*Defined in [ethereum-types/src/index.ts:183](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L183)* ___ @@ -1230,7 +1172,7 @@ ___ • **Gaslimit**: = "GASLIMIT" -*Defined in [ethereum-types/src/index.ts:194](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L194)* +*Defined in [ethereum-types/src/index.ts:194](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L194)* ___ @@ -1238,7 +1180,7 @@ ___ • **Gt**: = "GT" -*Defined in [ethereum-types/src/index.ts:160](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L160)* +*Defined in [ethereum-types/src/index.ts:160](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L160)* ___ @@ -1246,7 +1188,7 @@ ___ • **Invalid**: = "INVALID" -*Defined in [ethereum-types/src/index.ts:288](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L288)* +*Defined in [ethereum-types/src/index.ts:288](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L288)* ___ @@ -1254,7 +1196,7 @@ ___ • **IsZero**: = "ISZERO" -*Defined in [ethereum-types/src/index.ts:164](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L164)* +*Defined in [ethereum-types/src/index.ts:164](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L164)* ___ @@ -1262,7 +1204,7 @@ ___ • **Jump**: = "JUMP" -*Defined in [ethereum-types/src/index.ts:202](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L202)* +*Defined in [ethereum-types/src/index.ts:202](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L202)* ___ @@ -1270,7 +1212,7 @@ ___ • **JumpDest**: = "JUMPDEST" -*Defined in [ethereum-types/src/index.ts:207](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L207)* +*Defined in [ethereum-types/src/index.ts:207](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L207)* ___ @@ -1278,7 +1220,7 @@ ___ • **Jumpi**: = "JUMPI" -*Defined in [ethereum-types/src/index.ts:203](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L203)* +*Defined in [ethereum-types/src/index.ts:203](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L203)* ___ @@ -1286,7 +1228,7 @@ ___ • **Log1**: = "LOG1" -*Defined in [ethereum-types/src/index.ts:276](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L276)* +*Defined in [ethereum-types/src/index.ts:276](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L276)* ___ @@ -1294,7 +1236,7 @@ ___ • **Log2**: = "LOG2" -*Defined in [ethereum-types/src/index.ts:277](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L277)* +*Defined in [ethereum-types/src/index.ts:277](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L277)* ___ @@ -1302,7 +1244,7 @@ ___ • **Log3**: = "LOG3" -*Defined in [ethereum-types/src/index.ts:278](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L278)* +*Defined in [ethereum-types/src/index.ts:278](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L278)* ___ @@ -1310,7 +1252,7 @@ ___ • **Log4**: = "LOG4" -*Defined in [ethereum-types/src/index.ts:279](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L279)* +*Defined in [ethereum-types/src/index.ts:279](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L279)* ___ @@ -1318,7 +1260,7 @@ ___ • **Lt**: = "LT" -*Defined in [ethereum-types/src/index.ts:159](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L159)* +*Defined in [ethereum-types/src/index.ts:159](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L159)* ___ @@ -1326,7 +1268,7 @@ ___ • **MLoad**: = "MLOAD" -*Defined in [ethereum-types/src/index.ts:197](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L197)* +*Defined in [ethereum-types/src/index.ts:197](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L197)* ___ @@ -1334,7 +1276,7 @@ ___ • **MSize**: = "MSIZE" -*Defined in [ethereum-types/src/index.ts:205](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L205)* +*Defined in [ethereum-types/src/index.ts:205](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L205)* ___ @@ -1342,7 +1284,7 @@ ___ • **MStore**: = "MSTORE" -*Defined in [ethereum-types/src/index.ts:198](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L198)* +*Defined in [ethereum-types/src/index.ts:198](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L198)* ___ @@ -1350,7 +1292,7 @@ ___ • **MStore8**: = "MSTORE8" -*Defined in [ethereum-types/src/index.ts:199](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L199)* +*Defined in [ethereum-types/src/index.ts:199](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L199)* ___ @@ -1358,7 +1300,7 @@ ___ • **Mod**: = "MOD" -*Defined in [ethereum-types/src/index.ts:152](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L152)* +*Defined in [ethereum-types/src/index.ts:152](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L152)* ___ @@ -1366,7 +1308,7 @@ ___ • **Mul**: = "MUL" -*Defined in [ethereum-types/src/index.ts:148](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L148)* +*Defined in [ethereum-types/src/index.ts:148](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L148)* ___ @@ -1374,7 +1316,7 @@ ___ • **MulMod**: = "MULMOD" -*Defined in [ethereum-types/src/index.ts:155](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L155)* +*Defined in [ethereum-types/src/index.ts:155](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L155)* ___ @@ -1382,7 +1324,7 @@ ___ • **Not**: = "NOT" -*Defined in [ethereum-types/src/index.ts:168](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L168)* +*Defined in [ethereum-types/src/index.ts:168](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L168)* ___ @@ -1390,7 +1332,7 @@ ___ • **Number**: = "NUMBER" -*Defined in [ethereum-types/src/index.ts:192](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L192)* +*Defined in [ethereum-types/src/index.ts:192](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L192)* ___ @@ -1398,7 +1340,7 @@ ___ • **Or**: = "OR" -*Defined in [ethereum-types/src/index.ts:166](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L166)* +*Defined in [ethereum-types/src/index.ts:166](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L166)* ___ @@ -1406,7 +1348,7 @@ ___ • **Origin**: = "ORIGIN" -*Defined in [ethereum-types/src/index.ts:175](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L175)* +*Defined in [ethereum-types/src/index.ts:175](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L175)* ___ @@ -1414,7 +1356,7 @@ ___ • **Pc**: = "PC" -*Defined in [ethereum-types/src/index.ts:204](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L204)* +*Defined in [ethereum-types/src/index.ts:204](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L204)* ___ @@ -1422,7 +1364,7 @@ ___ • **Pop**: = "POP" -*Defined in [ethereum-types/src/index.ts:196](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L196)* +*Defined in [ethereum-types/src/index.ts:196](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L196)* ___ @@ -1430,7 +1372,7 @@ ___ • **Push1**: = "PUSH1" -*Defined in [ethereum-types/src/index.ts:209](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L209)* +*Defined in [ethereum-types/src/index.ts:209](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L209)* ___ @@ -1438,7 +1380,7 @@ ___ • **Push10**: = "PUSH10" -*Defined in [ethereum-types/src/index.ts:218](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L218)* +*Defined in [ethereum-types/src/index.ts:218](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L218)* ___ @@ -1446,7 +1388,7 @@ ___ • **Push11**: = "PUSH11" -*Defined in [ethereum-types/src/index.ts:219](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L219)* +*Defined in [ethereum-types/src/index.ts:219](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L219)* ___ @@ -1454,7 +1396,7 @@ ___ • **Push12**: = "PUSH12" -*Defined in [ethereum-types/src/index.ts:220](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L220)* +*Defined in [ethereum-types/src/index.ts:220](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L220)* ___ @@ -1462,7 +1404,7 @@ ___ • **Push13**: = "PUSH13" -*Defined in [ethereum-types/src/index.ts:221](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L221)* +*Defined in [ethereum-types/src/index.ts:221](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L221)* ___ @@ -1470,7 +1412,7 @@ ___ • **Push14**: = "PUSH14" -*Defined in [ethereum-types/src/index.ts:222](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L222)* +*Defined in [ethereum-types/src/index.ts:222](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L222)* ___ @@ -1478,7 +1420,7 @@ ___ • **Push15**: = "PUSH15" -*Defined in [ethereum-types/src/index.ts:223](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L223)* +*Defined in [ethereum-types/src/index.ts:223](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L223)* ___ @@ -1486,7 +1428,7 @@ ___ • **Push16**: = "PUSH16" -*Defined in [ethereum-types/src/index.ts:224](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L224)* +*Defined in [ethereum-types/src/index.ts:224](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L224)* ___ @@ -1494,7 +1436,7 @@ ___ • **Push17**: = "PUSH17" -*Defined in [ethereum-types/src/index.ts:225](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L225)* +*Defined in [ethereum-types/src/index.ts:225](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L225)* ___ @@ -1502,7 +1444,7 @@ ___ • **Push18**: = "PUSH18" -*Defined in [ethereum-types/src/index.ts:226](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L226)* +*Defined in [ethereum-types/src/index.ts:226](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L226)* ___ @@ -1510,7 +1452,7 @@ ___ • **Push19**: = "PUSH19" -*Defined in [ethereum-types/src/index.ts:227](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L227)* +*Defined in [ethereum-types/src/index.ts:227](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L227)* ___ @@ -1518,7 +1460,7 @@ ___ • **Push2**: = "PUSH2" -*Defined in [ethereum-types/src/index.ts:210](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L210)* +*Defined in [ethereum-types/src/index.ts:210](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L210)* ___ @@ -1526,7 +1468,7 @@ ___ • **Push20**: = "PUSH20" -*Defined in [ethereum-types/src/index.ts:228](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L228)* +*Defined in [ethereum-types/src/index.ts:228](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L228)* ___ @@ -1534,7 +1476,7 @@ ___ • **Push21**: = "PUSH21" -*Defined in [ethereum-types/src/index.ts:229](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L229)* +*Defined in [ethereum-types/src/index.ts:229](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L229)* ___ @@ -1542,7 +1484,7 @@ ___ • **Push22**: = "PUSH22" -*Defined in [ethereum-types/src/index.ts:230](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L230)* +*Defined in [ethereum-types/src/index.ts:230](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L230)* ___ @@ -1550,7 +1492,7 @@ ___ • **Push23**: = "PUSH23" -*Defined in [ethereum-types/src/index.ts:231](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L231)* +*Defined in [ethereum-types/src/index.ts:231](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L231)* ___ @@ -1558,7 +1500,7 @@ ___ • **Push24**: = "PUSH24" -*Defined in [ethereum-types/src/index.ts:232](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L232)* +*Defined in [ethereum-types/src/index.ts:232](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L232)* ___ @@ -1566,7 +1508,7 @@ ___ • **Push25**: = "PUSH25" -*Defined in [ethereum-types/src/index.ts:233](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L233)* +*Defined in [ethereum-types/src/index.ts:233](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L233)* ___ @@ -1574,7 +1516,7 @@ ___ • **Push26**: = "PUSH26" -*Defined in [ethereum-types/src/index.ts:234](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L234)* +*Defined in [ethereum-types/src/index.ts:234](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L234)* ___ @@ -1582,7 +1524,7 @@ ___ • **Push27**: = "PUSH27" -*Defined in [ethereum-types/src/index.ts:235](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L235)* +*Defined in [ethereum-types/src/index.ts:235](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L235)* ___ @@ -1590,7 +1532,7 @@ ___ • **Push28**: = "PUSH28" -*Defined in [ethereum-types/src/index.ts:236](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L236)* +*Defined in [ethereum-types/src/index.ts:236](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L236)* ___ @@ -1598,7 +1540,7 @@ ___ • **Push29**: = "PUSH29" -*Defined in [ethereum-types/src/index.ts:237](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L237)* +*Defined in [ethereum-types/src/index.ts:237](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L237)* ___ @@ -1606,7 +1548,7 @@ ___ • **Push3**: = "PUSH3" -*Defined in [ethereum-types/src/index.ts:211](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L211)* +*Defined in [ethereum-types/src/index.ts:211](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L211)* ___ @@ -1614,7 +1556,7 @@ ___ • **Push30**: = "PUSH30" -*Defined in [ethereum-types/src/index.ts:238](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L238)* +*Defined in [ethereum-types/src/index.ts:238](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L238)* ___ @@ -1622,7 +1564,7 @@ ___ • **Push31**: = "PUSH31" -*Defined in [ethereum-types/src/index.ts:239](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L239)* +*Defined in [ethereum-types/src/index.ts:239](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L239)* ___ @@ -1630,7 +1572,7 @@ ___ • **Push32**: = "PUSH32" -*Defined in [ethereum-types/src/index.ts:240](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L240)* +*Defined in [ethereum-types/src/index.ts:240](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L240)* ___ @@ -1638,7 +1580,7 @@ ___ • **Push4**: = "PUSH4" -*Defined in [ethereum-types/src/index.ts:212](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L212)* +*Defined in [ethereum-types/src/index.ts:212](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L212)* ___ @@ -1646,7 +1588,7 @@ ___ • **Push5**: = "PUSH5" -*Defined in [ethereum-types/src/index.ts:213](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L213)* +*Defined in [ethereum-types/src/index.ts:213](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L213)* ___ @@ -1654,7 +1596,7 @@ ___ • **Push6**: = "PUSH6" -*Defined in [ethereum-types/src/index.ts:214](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L214)* +*Defined in [ethereum-types/src/index.ts:214](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L214)* ___ @@ -1662,7 +1604,7 @@ ___ • **Push7**: = "PUSH7" -*Defined in [ethereum-types/src/index.ts:215](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L215)* +*Defined in [ethereum-types/src/index.ts:215](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L215)* ___ @@ -1670,7 +1612,7 @@ ___ • **Push8**: = "PUSH8" -*Defined in [ethereum-types/src/index.ts:216](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L216)* +*Defined in [ethereum-types/src/index.ts:216](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L216)* ___ @@ -1678,7 +1620,7 @@ ___ • **Push9**: = "PUSH9" -*Defined in [ethereum-types/src/index.ts:217](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L217)* +*Defined in [ethereum-types/src/index.ts:217](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L217)* ___ @@ -1686,7 +1628,7 @@ ___ • **Return**: = "RETURN" -*Defined in [ethereum-types/src/index.ts:284](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L284)* +*Defined in [ethereum-types/src/index.ts:284](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L284)* ___ @@ -1694,7 +1636,7 @@ ___ • **ReturnDataCopy**: = "RETURNDATACOPY" -*Defined in [ethereum-types/src/index.ts:187](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L187)* +*Defined in [ethereum-types/src/index.ts:187](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L187)* ___ @@ -1702,7 +1644,7 @@ ___ • **ReturnDataSize**: = "RETURNDATASIZE" -*Defined in [ethereum-types/src/index.ts:186](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L186)* +*Defined in [ethereum-types/src/index.ts:186](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L186)* ___ @@ -1710,7 +1652,7 @@ ___ • **Revert**: = "REVERT" -*Defined in [ethereum-types/src/index.ts:287](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L287)* +*Defined in [ethereum-types/src/index.ts:287](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L287)* ___ @@ -1718,7 +1660,7 @@ ___ • **SDiv**: = "SDIV" -*Defined in [ethereum-types/src/index.ts:151](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L151)* +*Defined in [ethereum-types/src/index.ts:151](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L151)* ___ @@ -1726,7 +1668,7 @@ ___ • **SGt**: = "SGT" -*Defined in [ethereum-types/src/index.ts:162](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L162)* +*Defined in [ethereum-types/src/index.ts:162](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L162)* ___ @@ -1734,7 +1676,7 @@ ___ • **SLoad**: = "SLOAD" -*Defined in [ethereum-types/src/index.ts:200](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L200)* +*Defined in [ethereum-types/src/index.ts:200](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L200)* ___ @@ -1742,7 +1684,7 @@ ___ • **SLt**: = "SLT" -*Defined in [ethereum-types/src/index.ts:161](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L161)* +*Defined in [ethereum-types/src/index.ts:161](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L161)* ___ @@ -1750,7 +1692,7 @@ ___ • **SMod**: = "SMOD" -*Defined in [ethereum-types/src/index.ts:153](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L153)* +*Defined in [ethereum-types/src/index.ts:153](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L153)* ___ @@ -1758,7 +1700,7 @@ ___ • **SStore**: = "SSTORE" -*Defined in [ethereum-types/src/index.ts:201](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L201)* +*Defined in [ethereum-types/src/index.ts:201](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L201)* ___ @@ -1766,7 +1708,7 @@ ___ • **SelfDestruct**: = "SELFDESTRUCT" -*Defined in [ethereum-types/src/index.ts:289](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L289)* +*Defined in [ethereum-types/src/index.ts:289](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L289)* ___ @@ -1774,7 +1716,7 @@ ___ • **Sha3**: = "SHA3" -*Defined in [ethereum-types/src/index.ts:171](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L171)* +*Defined in [ethereum-types/src/index.ts:171](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L171)* ___ @@ -1782,7 +1724,7 @@ ___ • **SignExtend**: = "SIGNEXTEND" -*Defined in [ethereum-types/src/index.ts:157](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L157)* +*Defined in [ethereum-types/src/index.ts:157](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L157)* ___ @@ -1790,7 +1732,7 @@ ___ • **StaticCall**: = "STATICCALL" -*Defined in [ethereum-types/src/index.ts:286](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L286)* +*Defined in [ethereum-types/src/index.ts:286](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L286)* ___ @@ -1798,7 +1740,7 @@ ___ • **Stop**: = "STOP" -*Defined in [ethereum-types/src/index.ts:146](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L146)* +*Defined in [ethereum-types/src/index.ts:146](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L146)* ___ @@ -1806,7 +1748,7 @@ ___ • **Sub**: = "SUB" -*Defined in [ethereum-types/src/index.ts:149](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L149)* +*Defined in [ethereum-types/src/index.ts:149](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L149)* ___ @@ -1814,7 +1756,7 @@ ___ • **Swap1**: = "SWAP1" -*Defined in [ethereum-types/src/index.ts:259](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L259)* +*Defined in [ethereum-types/src/index.ts:259](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L259)* ___ @@ -1822,7 +1764,7 @@ ___ • **Swap10**: = "SWAP10" -*Defined in [ethereum-types/src/index.ts:268](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L268)* +*Defined in [ethereum-types/src/index.ts:268](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L268)* ___ @@ -1830,7 +1772,7 @@ ___ • **Swap11**: = "SWAP11" -*Defined in [ethereum-types/src/index.ts:269](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L269)* +*Defined in [ethereum-types/src/index.ts:269](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L269)* ___ @@ -1838,7 +1780,7 @@ ___ • **Swap12**: = "SWAP12" -*Defined in [ethereum-types/src/index.ts:270](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L270)* +*Defined in [ethereum-types/src/index.ts:270](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L270)* ___ @@ -1846,7 +1788,7 @@ ___ • **Swap13**: = "SWAP13" -*Defined in [ethereum-types/src/index.ts:271](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L271)* +*Defined in [ethereum-types/src/index.ts:271](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L271)* ___ @@ -1854,7 +1796,7 @@ ___ • **Swap14**: = "SWAP14" -*Defined in [ethereum-types/src/index.ts:272](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L272)* +*Defined in [ethereum-types/src/index.ts:272](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L272)* ___ @@ -1862,7 +1804,7 @@ ___ • **Swap15**: = "SWAP15" -*Defined in [ethereum-types/src/index.ts:273](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L273)* +*Defined in [ethereum-types/src/index.ts:273](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L273)* ___ @@ -1870,7 +1812,7 @@ ___ • **Swap16**: = "SWAP16" -*Defined in [ethereum-types/src/index.ts:274](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L274)* +*Defined in [ethereum-types/src/index.ts:274](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L274)* ___ @@ -1878,7 +1820,7 @@ ___ • **Swap2**: = "SWAP2" -*Defined in [ethereum-types/src/index.ts:260](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L260)* +*Defined in [ethereum-types/src/index.ts:260](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L260)* ___ @@ -1886,7 +1828,7 @@ ___ • **Swap3**: = "SWAP3" -*Defined in [ethereum-types/src/index.ts:261](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L261)* +*Defined in [ethereum-types/src/index.ts:261](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L261)* ___ @@ -1894,7 +1836,7 @@ ___ • **Swap4**: = "SWAP4" -*Defined in [ethereum-types/src/index.ts:262](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L262)* +*Defined in [ethereum-types/src/index.ts:262](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L262)* ___ @@ -1902,7 +1844,7 @@ ___ • **Swap5**: = "SWAP5" -*Defined in [ethereum-types/src/index.ts:263](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L263)* +*Defined in [ethereum-types/src/index.ts:263](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L263)* ___ @@ -1910,7 +1852,7 @@ ___ • **Swap6**: = "SWAP6" -*Defined in [ethereum-types/src/index.ts:264](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L264)* +*Defined in [ethereum-types/src/index.ts:264](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L264)* ___ @@ -1918,7 +1860,7 @@ ___ • **Swap7**: = "SWAP7" -*Defined in [ethereum-types/src/index.ts:265](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L265)* +*Defined in [ethereum-types/src/index.ts:265](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L265)* ___ @@ -1926,7 +1868,7 @@ ___ • **Swap8**: = "SWAP8" -*Defined in [ethereum-types/src/index.ts:266](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L266)* +*Defined in [ethereum-types/src/index.ts:266](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L266)* ___ @@ -1934,7 +1876,7 @@ ___ • **Swap9**: = "SWAP9" -*Defined in [ethereum-types/src/index.ts:267](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L267)* +*Defined in [ethereum-types/src/index.ts:267](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L267)* ___ @@ -1942,7 +1884,7 @@ ___ • **TimeStamp**: = "TimeStamp" -*Defined in [ethereum-types/src/index.ts:191](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L191)* +*Defined in [ethereum-types/src/index.ts:191](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L191)* ___ @@ -1950,7 +1892,7 @@ ___ • **Xor**: = "XOR" -*Defined in [ethereum-types/src/index.ts:167](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L167)* +*Defined in [ethereum-types/src/index.ts:167](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L167)*
@@ -1965,7 +1907,7 @@ ___ • **Ganache**: = "GANACHE" -*Defined in [web3-wrapper/src/types.ts:91](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/web3-wrapper/src/types.ts#L91)* +*Defined in [web3-wrapper/src/types.ts:91](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/web3-wrapper/src/types.ts#L91)* ___ @@ -1973,7 +1915,7 @@ ___ • **Geth**: = "GETH" -*Defined in [web3-wrapper/src/types.ts:90](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/web3-wrapper/src/types.ts#L90)* +*Defined in [web3-wrapper/src/types.ts:90](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/web3-wrapper/src/types.ts#L90)*
@@ -1986,12 +1928,16 @@ ___ • **TransactionMiningTimeout**: = "TRANSACTION_MINING_TIMEOUT" -*Defined in [web3-wrapper/src/types.ts:2](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/web3-wrapper/src/types.ts#L2)* +*Defined in [web3-wrapper/src/types.ts:2](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/web3-wrapper/src/types.ts#L2)*
+
+ + + # Interface: BlockWithoutTransactionData @@ -2005,7 +1951,7 @@ ___ *Inherited from [AbstractBlock](#interface-abstractblock).[difficulty](#difficulty)* -*Defined in [ethereum-types/src/index.ts:356](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L356)* +*Defined in [ethereum-types/src/index.ts:356](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L356)* ___ @@ -2015,7 +1961,7 @@ ___ *Inherited from [AbstractBlock](#interface-abstractblock).[extraData](#extradata)* -*Defined in [ethereum-types/src/index.ts:358](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L358)* +*Defined in [ethereum-types/src/index.ts:358](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L358)* ___ @@ -2025,7 +1971,7 @@ ___ *Inherited from [AbstractBlock](#interface-abstractblock).[gasLimit](#gaslimit)* -*Defined in [ethereum-types/src/index.ts:360](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L360)* +*Defined in [ethereum-types/src/index.ts:360](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L360)* ___ @@ -2035,7 +1981,7 @@ ___ *Inherited from [AbstractBlock](#interface-abstractblock).[gasUsed](#gasused)* -*Defined in [ethereum-types/src/index.ts:361](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L361)* +*Defined in [ethereum-types/src/index.ts:361](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L361)* ___ @@ -2045,7 +1991,7 @@ ___ *Inherited from [AbstractBlock](#interface-abstractblock).[hash](#hash)* -*Defined in [ethereum-types/src/index.ts:348](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L348)* +*Defined in [ethereum-types/src/index.ts:348](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L348)* ___ @@ -2055,7 +2001,7 @@ ___ *Inherited from [AbstractBlock](#interface-abstractblock).[logsBloom](#logsbloom)* -*Defined in [ethereum-types/src/index.ts:352](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L352)* +*Defined in [ethereum-types/src/index.ts:352](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L352)* ___ @@ -2065,7 +2011,7 @@ ___ *Inherited from [AbstractBlock](#interface-abstractblock).[miner](#miner)* -*Defined in [ethereum-types/src/index.ts:355](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L355)* +*Defined in [ethereum-types/src/index.ts:355](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L355)* ___ @@ -2075,7 +2021,7 @@ ___ *Inherited from [AbstractBlock](#interface-abstractblock).[nonce](#nonce)* -*Defined in [ethereum-types/src/index.ts:350](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L350)* +*Defined in [ethereum-types/src/index.ts:350](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L350)* ___ @@ -2085,7 +2031,7 @@ ___ *Inherited from [AbstractBlock](#interface-abstractblock).[number](#number)* -*Defined in [ethereum-types/src/index.ts:347](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L347)* +*Defined in [ethereum-types/src/index.ts:347](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L347)* ___ @@ -2095,7 +2041,7 @@ ___ *Inherited from [AbstractBlock](#interface-abstractblock).[parentHash](#parenthash)* -*Defined in [ethereum-types/src/index.ts:349](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L349)* +*Defined in [ethereum-types/src/index.ts:349](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L349)* ___ @@ -2105,7 +2051,7 @@ ___ *Inherited from [AbstractBlock](#interface-abstractblock).[sha3Uncles](#sha3uncles)* -*Defined in [ethereum-types/src/index.ts:351](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L351)* +*Defined in [ethereum-types/src/index.ts:351](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L351)* ___ @@ -2115,7 +2061,7 @@ ___ *Inherited from [AbstractBlock](#interface-abstractblock).[size](#size)* -*Defined in [ethereum-types/src/index.ts:359](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L359)* +*Defined in [ethereum-types/src/index.ts:359](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L359)* ___ @@ -2125,7 +2071,7 @@ ___ *Inherited from [AbstractBlock](#interface-abstractblock).[stateRoot](#stateroot)* -*Defined in [ethereum-types/src/index.ts:354](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L354)* +*Defined in [ethereum-types/src/index.ts:354](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L354)* ___ @@ -2135,7 +2081,7 @@ ___ *Inherited from [AbstractBlock](#interface-abstractblock).[timestamp](#timestamp)* -*Defined in [ethereum-types/src/index.ts:362](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L362)* +*Defined in [ethereum-types/src/index.ts:362](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L362)* ___ @@ -2145,7 +2091,7 @@ ___ *Inherited from [AbstractBlock](#interface-abstractblock).[totalDifficulty](#totaldifficulty)* -*Defined in [ethereum-types/src/index.ts:357](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L357)* +*Defined in [ethereum-types/src/index.ts:357](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L357)* ___ @@ -2153,7 +2099,7 @@ ___ • **transactions**: *string[]* -*Defined in [ethereum-types/src/index.ts:367](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L367)* +*Defined in [ethereum-types/src/index.ts:367](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L367)* ___ @@ -2163,7 +2109,7 @@ ___ *Inherited from [AbstractBlock](#interface-abstractblock).[transactionsRoot](#transactionsroot)* -*Defined in [ethereum-types/src/index.ts:353](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L353)* +*Defined in [ethereum-types/src/index.ts:353](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L353)* ___ @@ -2173,7 +2119,7 @@ ___ *Inherited from [AbstractBlock](#interface-abstractblock).[uncles](#uncles)* -*Defined in [ethereum-types/src/index.ts:363](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L363)* +*Defined in [ethereum-types/src/index.ts:363](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L363)*
@@ -2188,7 +2134,7 @@ ___ *Inherited from [AbstractBlock](#interface-abstractblock).[difficulty](#difficulty)* -*Defined in [ethereum-types/src/index.ts:356](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L356)* +*Defined in [ethereum-types/src/index.ts:356](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L356)* ___ @@ -2198,7 +2144,7 @@ ___ *Inherited from [AbstractBlock](#interface-abstractblock).[extraData](#extradata)* -*Defined in [ethereum-types/src/index.ts:358](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L358)* +*Defined in [ethereum-types/src/index.ts:358](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L358)* ___ @@ -2208,7 +2154,7 @@ ___ *Inherited from [AbstractBlock](#interface-abstractblock).[gasLimit](#gaslimit)* -*Defined in [ethereum-types/src/index.ts:360](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L360)* +*Defined in [ethereum-types/src/index.ts:360](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L360)* ___ @@ -2218,7 +2164,7 @@ ___ *Inherited from [AbstractBlock](#interface-abstractblock).[gasUsed](#gasused)* -*Defined in [ethereum-types/src/index.ts:361](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L361)* +*Defined in [ethereum-types/src/index.ts:361](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L361)* ___ @@ -2228,7 +2174,7 @@ ___ *Inherited from [AbstractBlock](#interface-abstractblock).[hash](#hash)* -*Defined in [ethereum-types/src/index.ts:348](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L348)* +*Defined in [ethereum-types/src/index.ts:348](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L348)* ___ @@ -2238,7 +2184,7 @@ ___ *Inherited from [AbstractBlock](#interface-abstractblock).[logsBloom](#logsbloom)* -*Defined in [ethereum-types/src/index.ts:352](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L352)* +*Defined in [ethereum-types/src/index.ts:352](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L352)* ___ @@ -2248,7 +2194,7 @@ ___ *Inherited from [AbstractBlock](#interface-abstractblock).[miner](#miner)* -*Defined in [ethereum-types/src/index.ts:355](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L355)* +*Defined in [ethereum-types/src/index.ts:355](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L355)* ___ @@ -2258,7 +2204,7 @@ ___ *Inherited from [AbstractBlock](#interface-abstractblock).[nonce](#nonce)* -*Defined in [ethereum-types/src/index.ts:350](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L350)* +*Defined in [ethereum-types/src/index.ts:350](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L350)* ___ @@ -2268,7 +2214,7 @@ ___ *Inherited from [AbstractBlock](#interface-abstractblock).[number](#number)* -*Defined in [ethereum-types/src/index.ts:347](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L347)* +*Defined in [ethereum-types/src/index.ts:347](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L347)* ___ @@ -2278,7 +2224,7 @@ ___ *Inherited from [AbstractBlock](#interface-abstractblock).[parentHash](#parenthash)* -*Defined in [ethereum-types/src/index.ts:349](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L349)* +*Defined in [ethereum-types/src/index.ts:349](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L349)* ___ @@ -2288,7 +2234,7 @@ ___ *Inherited from [AbstractBlock](#interface-abstractblock).[sha3Uncles](#sha3uncles)* -*Defined in [ethereum-types/src/index.ts:351](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L351)* +*Defined in [ethereum-types/src/index.ts:351](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L351)* ___ @@ -2298,7 +2244,7 @@ ___ *Inherited from [AbstractBlock](#interface-abstractblock).[size](#size)* -*Defined in [ethereum-types/src/index.ts:359](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L359)* +*Defined in [ethereum-types/src/index.ts:359](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L359)* ___ @@ -2308,7 +2254,7 @@ ___ *Inherited from [AbstractBlock](#interface-abstractblock).[stateRoot](#stateroot)* -*Defined in [ethereum-types/src/index.ts:354](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L354)* +*Defined in [ethereum-types/src/index.ts:354](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L354)* ___ @@ -2318,7 +2264,7 @@ ___ *Inherited from [AbstractBlock](#interface-abstractblock).[timestamp](#timestamp)* -*Defined in [ethereum-types/src/index.ts:362](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L362)* +*Defined in [ethereum-types/src/index.ts:362](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L362)* ___ @@ -2328,7 +2274,7 @@ ___ *Inherited from [AbstractBlock](#interface-abstractblock).[totalDifficulty](#totaldifficulty)* -*Defined in [ethereum-types/src/index.ts:357](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L357)* +*Defined in [ethereum-types/src/index.ts:357](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L357)* ___ @@ -2336,7 +2282,7 @@ ___ • **transactions**: *[Transaction](#class-transaction)[]* -*Defined in [ethereum-types/src/index.ts:371](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L371)* +*Defined in [ethereum-types/src/index.ts:371](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L371)* ___ @@ -2346,7 +2292,7 @@ ___ *Inherited from [AbstractBlock](#interface-abstractblock).[transactionsRoot](#transactionsroot)* -*Defined in [ethereum-types/src/index.ts:353](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L353)* +*Defined in [ethereum-types/src/index.ts:353](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L353)* ___ @@ -2356,7 +2302,7 @@ ___ *Inherited from [AbstractBlock](#interface-abstractblock).[uncles](#uncles)* -*Defined in [ethereum-types/src/index.ts:363](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L363)* +*Defined in [ethereum-types/src/index.ts:363](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L363)*
@@ -2371,7 +2317,7 @@ ___ *Inherited from [CallTxDataBase](#interface-calltxdatabase).[data](#optional-data)* -*Defined in [ethereum-types/src/index.ts:393](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L393)* +*Defined in [ethereum-types/src/index.ts:393](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L393)* ___ @@ -2379,7 +2325,7 @@ ___ • **from**? : *undefined | string* -*Defined in [ethereum-types/src/index.ts:402](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L402)* +*Defined in [ethereum-types/src/index.ts:402](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L402)* ___ @@ -2389,7 +2335,7 @@ ___ *Inherited from [CallTxDataBase](#interface-calltxdatabase).[gas](#optional-gas)* -*Defined in [ethereum-types/src/index.ts:391](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L391)* +*Defined in [ethereum-types/src/index.ts:391](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L391)* ___ @@ -2399,7 +2345,7 @@ ___ *Inherited from [CallTxDataBase](#interface-calltxdatabase).[gasPrice](#optional-gasprice)* -*Defined in [ethereum-types/src/index.ts:392](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L392)* +*Defined in [ethereum-types/src/index.ts:392](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L392)* ___ @@ -2409,7 +2355,7 @@ ___ *Inherited from [CallTxDataBase](#interface-calltxdatabase).[nonce](#optional-nonce)* -*Defined in [ethereum-types/src/index.ts:394](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L394)* +*Defined in [ethereum-types/src/index.ts:394](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L394)* ___ @@ -2419,7 +2365,7 @@ ___ *Inherited from [CallTxDataBase](#interface-calltxdatabase).[to](#optional-to)* -*Defined in [ethereum-types/src/index.ts:389](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L389)* +*Defined in [ethereum-types/src/index.ts:389](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L389)* ___ @@ -2429,7 +2375,7 @@ ___ *Inherited from [CallTxDataBase](#interface-calltxdatabase).[value](#optional-value)* -*Defined in [ethereum-types/src/index.ts:390](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L390)* +*Defined in [ethereum-types/src/index.ts:390](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L390)*
@@ -2452,7 +2398,7 @@ ___ • **inputs**: *[DataItem](#class-dataitem)[]* -*Defined in [ethereum-types/src/index.ts:103](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L103)* +*Defined in [ethereum-types/src/index.ts:103](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L103)* ___ @@ -2460,7 +2406,7 @@ ___ • **payable**: *boolean* -*Defined in [ethereum-types/src/index.ts:104](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L104)* +*Defined in [ethereum-types/src/index.ts:104](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L104)* ___ @@ -2468,7 +2414,7 @@ ___ • **stateMutability**: *[ConstructorStateMutability](#constructorstatemutability)* -*Defined in [ethereum-types/src/index.ts:105](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L105)* +*Defined in [ethereum-types/src/index.ts:105](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L105)* ___ @@ -2476,7 +2422,7 @@ ___ • **type**: *string* -*Defined in [ethereum-types/src/index.ts:102](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L102)* +*Defined in [ethereum-types/src/index.ts:102](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L102)*
@@ -2495,7 +2441,7 @@ ___ • **components**? : *[DataItem](#class-dataitem)[]* -*Defined in [ethereum-types/src/index.ts:137](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L137)* +*Defined in [ethereum-types/src/index.ts:137](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L137)* ___ @@ -2503,7 +2449,7 @@ ___ • **name**: *string* -*Defined in [ethereum-types/src/index.ts:135](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L135)* +*Defined in [ethereum-types/src/index.ts:135](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L135)* ___ @@ -2511,7 +2457,7 @@ ___ • **type**: *string* -*Defined in [ethereum-types/src/index.ts:136](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L136)* +*Defined in [ethereum-types/src/index.ts:136](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L136)*
@@ -2531,7 +2477,7 @@ ___ *Inherited from [LogEntry](#interface-logentry).[address](#address)* -*Defined in [ethereum-types/src/index.ts:434](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L434)* +*Defined in [ethereum-types/src/index.ts:434](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L434)* ___ @@ -2539,7 +2485,7 @@ ___ • **args**: *`A`* -*Defined in [ethereum-types/src/index.ts:417](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L417)* +*Defined in [ethereum-types/src/index.ts:417](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L417)* ___ @@ -2549,7 +2495,7 @@ ___ *Inherited from [LogEntry](#interface-logentry).[blockHash](#blockhash)* -*Defined in [ethereum-types/src/index.ts:432](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L432)* +*Defined in [ethereum-types/src/index.ts:432](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L432)* ___ @@ -2559,7 +2505,7 @@ ___ *Inherited from [LogEntry](#interface-logentry).[blockNumber](#blocknumber)* -*Defined in [ethereum-types/src/index.ts:433](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L433)* +*Defined in [ethereum-types/src/index.ts:433](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L433)* ___ @@ -2569,7 +2515,7 @@ ___ *Inherited from [LogEntry](#interface-logentry).[data](#data)* -*Defined in [ethereum-types/src/index.ts:435](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L435)* +*Defined in [ethereum-types/src/index.ts:435](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L435)* ___ @@ -2577,7 +2523,7 @@ ___ • **event**: *string* -*Defined in [ethereum-types/src/index.ts:416](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L416)* +*Defined in [ethereum-types/src/index.ts:416](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L416)* ___ @@ -2587,7 +2533,7 @@ ___ *Inherited from [LogEntry](#interface-logentry).[logIndex](#logindex)* -*Defined in [ethereum-types/src/index.ts:429](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L429)* +*Defined in [ethereum-types/src/index.ts:429](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L429)* ___ @@ -2597,7 +2543,7 @@ ___ *Inherited from [LogEntry](#interface-logentry).[topics](#topics)* -*Defined in [ethereum-types/src/index.ts:436](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L436)* +*Defined in [ethereum-types/src/index.ts:436](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L436)* ___ @@ -2607,7 +2553,7 @@ ___ *Inherited from [LogEntry](#interface-logentry).[transactionHash](#transactionhash)* -*Defined in [ethereum-types/src/index.ts:431](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L431)* +*Defined in [ethereum-types/src/index.ts:431](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L431)* ___ @@ -2617,7 +2563,7 @@ ___ *Inherited from [LogEntry](#interface-logentry).[transactionIndex](#transactionindex)* -*Defined in [ethereum-types/src/index.ts:430](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L430)* +*Defined in [ethereum-types/src/index.ts:430](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L430)*
@@ -2636,7 +2582,7 @@ ___ *Inherited from [LogEntry](#interface-logentry).[address](#address)* -*Defined in [ethereum-types/src/index.ts:434](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L434)* +*Defined in [ethereum-types/src/index.ts:434](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L434)* ___ @@ -2646,7 +2592,7 @@ ___ *Inherited from [DecodedLogEntry](#interface-decodedlogentry).[args](#args)* -*Defined in [ethereum-types/src/index.ts:417](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L417)* +*Defined in [ethereum-types/src/index.ts:417](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L417)* ___ @@ -2656,7 +2602,7 @@ ___ *Inherited from [LogEntry](#interface-logentry).[blockHash](#blockhash)* -*Defined in [ethereum-types/src/index.ts:432](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L432)* +*Defined in [ethereum-types/src/index.ts:432](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L432)* ___ @@ -2666,7 +2612,7 @@ ___ *Inherited from [LogEntry](#interface-logentry).[blockNumber](#blocknumber)* -*Defined in [ethereum-types/src/index.ts:433](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L433)* +*Defined in [ethereum-types/src/index.ts:433](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L433)* ___ @@ -2676,7 +2622,7 @@ ___ *Inherited from [LogEntry](#interface-logentry).[data](#data)* -*Defined in [ethereum-types/src/index.ts:435](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L435)* +*Defined in [ethereum-types/src/index.ts:435](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L435)* ___ @@ -2686,7 +2632,7 @@ ___ *Inherited from [DecodedLogEntry](#interface-decodedlogentry).[event](#event)* -*Defined in [ethereum-types/src/index.ts:416](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L416)* +*Defined in [ethereum-types/src/index.ts:416](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L416)* ___ @@ -2696,7 +2642,7 @@ ___ *Inherited from [LogEntry](#interface-logentry).[logIndex](#logindex)* -*Defined in [ethereum-types/src/index.ts:429](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L429)* +*Defined in [ethereum-types/src/index.ts:429](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L429)* ___ @@ -2704,7 +2650,7 @@ ___ • **removed**: *boolean* -*Defined in [ethereum-types/src/index.ts:421](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L421)* +*Defined in [ethereum-types/src/index.ts:421](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L421)* ___ @@ -2714,7 +2660,7 @@ ___ *Inherited from [LogEntry](#interface-logentry).[topics](#topics)* -*Defined in [ethereum-types/src/index.ts:436](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L436)* +*Defined in [ethereum-types/src/index.ts:436](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L436)* ___ @@ -2724,7 +2670,7 @@ ___ *Inherited from [LogEntry](#interface-logentry).[transactionHash](#transactionhash)* -*Defined in [ethereum-types/src/index.ts:431](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L431)* +*Defined in [ethereum-types/src/index.ts:431](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L431)* ___ @@ -2734,7 +2680,7 @@ ___ *Inherited from [LogEntry](#interface-logentry).[transactionIndex](#transactionindex)* -*Defined in [ethereum-types/src/index.ts:430](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L430)* +*Defined in [ethereum-types/src/index.ts:430](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L430)*
@@ -2749,7 +2695,7 @@ ___ • **isEIP1193**: *boolean* -*Defined in [ethereum-types/src/index.ts:73](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L73)* +*Defined in [ethereum-types/src/index.ts:73](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L73)* ## Methods @@ -2757,7 +2703,7 @@ ___ ▸ **on**(`event`: [EIP1193Event](#eip1193event), `listener`: function): *this* -*Defined in [ethereum-types/src/index.ts:75](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L75)* +*Defined in [ethereum-types/src/index.ts:75](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L75)* **Parameters:** @@ -2781,7 +2727,7 @@ ___ ▸ **send**(`method`: string, `params?`: any[]): *`Promise`* -*Defined in [ethereum-types/src/index.ts:74](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L74)* +*Defined in [ethereum-types/src/index.ts:74](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L74)* **Parameters:** @@ -2803,7 +2749,7 @@ Name | Type | • **anonymous**: *boolean* -*Defined in [ethereum-types/src/index.ts:131](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L131)* +*Defined in [ethereum-types/src/index.ts:131](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L131)* ___ @@ -2811,7 +2757,7 @@ ___ • **inputs**: *[EventParameter](#class-eventparameter)[]* -*Defined in [ethereum-types/src/index.ts:130](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L130)* +*Defined in [ethereum-types/src/index.ts:130](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L130)* ___ @@ -2819,7 +2765,7 @@ ___ • **name**: *string* -*Defined in [ethereum-types/src/index.ts:129](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L129)* +*Defined in [ethereum-types/src/index.ts:129](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L129)* ___ @@ -2827,7 +2773,7 @@ ___ • **type**: *string* -*Defined in [ethereum-types/src/index.ts:128](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L128)* +*Defined in [ethereum-types/src/index.ts:128](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L128)*
@@ -2842,7 +2788,7 @@ ___ *Inherited from [DataItem](#interface-dataitem).[components](#optional-components)* -*Defined in [ethereum-types/src/index.ts:137](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L137)* +*Defined in [ethereum-types/src/index.ts:137](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L137)* ___ @@ -2850,7 +2796,7 @@ ___ • **indexed**: *boolean* -*Defined in [ethereum-types/src/index.ts:116](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L116)* +*Defined in [ethereum-types/src/index.ts:116](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L116)* ___ @@ -2860,7 +2806,7 @@ ___ *Inherited from [DataItem](#interface-dataitem).[name](#name)* -*Defined in [ethereum-types/src/index.ts:135](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L135)* +*Defined in [ethereum-types/src/index.ts:135](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L135)* ___ @@ -2870,7 +2816,7 @@ ___ *Inherited from [DataItem](#interface-dataitem).[type](#type)* -*Defined in [ethereum-types/src/index.ts:136](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L136)* +*Defined in [ethereum-types/src/index.ts:136](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L136)*
@@ -2887,7 +2833,7 @@ ___ • **payable**: *boolean* -*Defined in [ethereum-types/src/index.ts:112](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L112)* +*Defined in [ethereum-types/src/index.ts:112](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L112)* ___ @@ -2895,7 +2841,7 @@ ___ • **type**: *string* -*Defined in [ethereum-types/src/index.ts:111](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L111)* +*Defined in [ethereum-types/src/index.ts:111](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L111)*
@@ -2908,7 +2854,7 @@ ___ • **address**? : *undefined | string* -*Defined in [ethereum-types/src/index.ts:409](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L409)* +*Defined in [ethereum-types/src/index.ts:409](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L409)* ___ @@ -2916,7 +2862,7 @@ ___ • **blockHash**? : *undefined | string* -*Defined in [ethereum-types/src/index.ts:408](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L408)* +*Defined in [ethereum-types/src/index.ts:408](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L408)* ___ @@ -2924,7 +2870,7 @@ ___ • **fromBlock**? : *number | string* -*Defined in [ethereum-types/src/index.ts:406](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L406)* +*Defined in [ethereum-types/src/index.ts:406](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L406)* ___ @@ -2932,7 +2878,7 @@ ___ • **toBlock**? : *number | string* -*Defined in [ethereum-types/src/index.ts:407](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L407)* +*Defined in [ethereum-types/src/index.ts:407](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L407)* ___ @@ -2940,7 +2886,7 @@ ___ • **topics**? : *[LogTopic](#logtopic)[]* -*Defined in [ethereum-types/src/index.ts:410](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L410)* +*Defined in [ethereum-types/src/index.ts:410](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L410)*
@@ -2953,7 +2899,7 @@ ___ ▸ **sendAsync**(`payload`: [JSONRPCRequestPayload](_ethereum_types_src_index_.jsonrpcrequestpayload.md), `callback`: [JSONRPCErrorCallback](#jsonrpcerrorcallback)): *void* -*Defined in [ethereum-types/src/index.ts:14](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L14)* +*Defined in [ethereum-types/src/index.ts:14](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L14)* **Parameters:** @@ -2977,7 +2923,7 @@ Name | Type | • **id**: *number* -*Defined in [ethereum-types/src/index.ts:330](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L330)* +*Defined in [ethereum-types/src/index.ts:330](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L330)* ___ @@ -2985,7 +2931,7 @@ ___ • **jsonrpc**: *string* -*Defined in [ethereum-types/src/index.ts:331](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L331)* +*Defined in [ethereum-types/src/index.ts:331](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L331)* ___ @@ -2993,7 +2939,7 @@ ___ • **method**: *string* -*Defined in [ethereum-types/src/index.ts:329](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L329)* +*Defined in [ethereum-types/src/index.ts:329](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L329)* ___ @@ -3001,7 +2947,7 @@ ___ • **params**: *any[]* -*Defined in [ethereum-types/src/index.ts:328](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L328)* +*Defined in [ethereum-types/src/index.ts:328](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L328)*
@@ -3014,7 +2960,7 @@ ___ • **code**: *number* -*Defined in [ethereum-types/src/index.ts:336](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L336)* +*Defined in [ethereum-types/src/index.ts:336](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L336)* ___ @@ -3022,44 +2968,102 @@ ___ • **message**: *string* -*Defined in [ethereum-types/src/index.ts:335](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L335)* +*Defined in [ethereum-types/src/index.ts:335](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L335)*
-# Interface: JSONRPCResponsePayload +# Class: AbiDecoder +AbiDecoder allows you to decode event logs given a set of supplied contract ABI's. It takes the contract's event +signature from the ABI and attempts to decode the logs using it. -## Properties -### `Optional` error +## Constructors -• **error**? : *[JSONRPCResponseError](#class-jsonrpcresponseerror)* -*Defined in [ethereum-types/src/index.ts:343](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L343)* -___ +\+ **new AbiDecoder**(`abiArrays`: [AbiDefinition](#abidefinition)[][]): *[AbiDecoder](#class-abidecoder)* -### id +*Defined in [utils/src/abi_decoder.ts:42](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/utils/src/abi_decoder.ts#L42)* -• **id**: *number* +Instantiate an AbiDecoder + +**Parameters:** + +Name | Type | Description | +------ | ------ | ------ | +`abiArrays` | [AbiDefinition](#abidefinition)[][] | An array of contract ABI's | + +**Returns:** *[AbiDecoder](#class-abidecoder)* + +AbiDecoder instance + +## Methods + +### addABI + +▸ **addABI**(`abiArray`: [AbiDefinition](#abidefinition)[], `contractName?`: undefined | string): *void* + +*Defined in [utils/src/abi_decoder.ts:158](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/utils/src/abi_decoder.ts#L158)* + +Adds a set of ABI definitions, after which calldata and logs targeting these ABI's can be decoded. +Additional properties can be included to disambiguate similar ABI's. For example, if two functions +have the same signature but different parameter names, then their ABI definitions can be disambiguated +by specifying a contract name. -*Defined in [ethereum-types/src/index.ts:341](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L341)* +**Parameters:** + +Name | Type | Description | +------ | ------ | ------ | +`abiArray` | [AbiDefinition](#abidefinition)[] | - | +`contractName?` | undefined \| string | Name of contract that encapsulates the ABI definitions (optional). This can be used when decoding calldata to disambiguate methods with the same signature but different parameter names. | + +**Returns:** *void* ___ -### jsonrpc +### decodeCalldataOrThrow -• **jsonrpc**: *string* +▸ **decodeCalldataOrThrow**(`calldata`: string, `contractName?`: undefined | string): *`DecodedCalldata`* -*Defined in [ethereum-types/src/index.ts:342](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L342)* +*Defined in [utils/src/abi_decoder.ts:118](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/utils/src/abi_decoder.ts#L118)* + +Decodes calldata for a known ABI. + +**Parameters:** + +Name | Type | Description | +------ | ------ | ------ | +`calldata` | string | hex-encoded calldata. | +`contractName?` | undefined \| string | used to disambiguate similar ABI's (optional). | + +**Returns:** *`DecodedCalldata`* + +Decoded calldata. Includes: function name and signature, along with the decoded arguments. ___ -### result +### tryToDecodeLogOrNoop -• **result**: *any* +▸ **tryToDecodeLogOrNoop**<**ArgsType**>(`log`: `LogEntry`): *`LogWithDecodedArgs` | [RawLog](#rawlog)* + +*Defined in [utils/src/abi_decoder.ts:58](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/utils/src/abi_decoder.ts#L58)* + +Attempt to decode a log given the ABI's the AbiDecoder knows about. + +**Type parameters:** + +▪ **ArgsType**: *`DecodedLogArgs`* -*Defined in [ethereum-types/src/index.ts:340](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L340)* +**Parameters:** + +Name | Type | Description | +------ | ------ | ------ | +`log` | `LogEntry` | The log to attempt to decode | + +**Returns:** *`LogWithDecodedArgs` | [RawLog](#rawlog)* + +The decoded log if the requisite ABI was available. Otherwise the log unaltered.
@@ -3072,7 +3076,7 @@ ___ • **address**: *string* -*Defined in [ethereum-types/src/index.ts:434](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L434)* +*Defined in [ethereum-types/src/index.ts:434](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L434)* ___ @@ -3080,7 +3084,7 @@ ___ • **blockHash**: *string | null* -*Defined in [ethereum-types/src/index.ts:432](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L432)* +*Defined in [ethereum-types/src/index.ts:432](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L432)* ___ @@ -3088,7 +3092,7 @@ ___ • **blockNumber**: *number | null* -*Defined in [ethereum-types/src/index.ts:433](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L433)* +*Defined in [ethereum-types/src/index.ts:433](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L433)* ___ @@ -3096,7 +3100,7 @@ ___ • **data**: *string* -*Defined in [ethereum-types/src/index.ts:435](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L435)* +*Defined in [ethereum-types/src/index.ts:435](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L435)* ___ @@ -3104,7 +3108,7 @@ ___ • **logIndex**: *number | null* -*Defined in [ethereum-types/src/index.ts:429](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L429)* +*Defined in [ethereum-types/src/index.ts:429](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L429)* ___ @@ -3112,7 +3116,7 @@ ___ • **topics**: *string[]* -*Defined in [ethereum-types/src/index.ts:436](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L436)* +*Defined in [ethereum-types/src/index.ts:436](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L436)* ___ @@ -3120,7 +3124,7 @@ ___ • **transactionHash**: *string* -*Defined in [ethereum-types/src/index.ts:431](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L431)* +*Defined in [ethereum-types/src/index.ts:431](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L431)* ___ @@ -3128,7 +3132,7 @@ ___ • **transactionIndex**: *number | null* -*Defined in [ethereum-types/src/index.ts:430](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L430)* +*Defined in [ethereum-types/src/index.ts:430](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L430)*
@@ -3143,7 +3147,7 @@ ___ *Inherited from [LogEntry](#interface-logentry).[address](#address)* -*Defined in [ethereum-types/src/index.ts:434](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L434)* +*Defined in [ethereum-types/src/index.ts:434](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L434)* ___ @@ -3153,7 +3157,7 @@ ___ *Inherited from [LogEntry](#interface-logentry).[blockHash](#blockhash)* -*Defined in [ethereum-types/src/index.ts:432](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L432)* +*Defined in [ethereum-types/src/index.ts:432](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L432)* ___ @@ -3163,7 +3167,7 @@ ___ *Inherited from [LogEntry](#interface-logentry).[blockNumber](#blocknumber)* -*Defined in [ethereum-types/src/index.ts:433](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L433)* +*Defined in [ethereum-types/src/index.ts:433](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L433)* ___ @@ -3173,7 +3177,7 @@ ___ *Inherited from [LogEntry](#interface-logentry).[data](#data)* -*Defined in [ethereum-types/src/index.ts:435](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L435)* +*Defined in [ethereum-types/src/index.ts:435](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L435)* ___ @@ -3183,7 +3187,7 @@ ___ *Inherited from [LogEntry](#interface-logentry).[logIndex](#logindex)* -*Defined in [ethereum-types/src/index.ts:429](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L429)* +*Defined in [ethereum-types/src/index.ts:429](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L429)* ___ @@ -3191,7 +3195,7 @@ ___ • **removed**: *boolean* -*Defined in [ethereum-types/src/index.ts:425](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L425)* +*Defined in [ethereum-types/src/index.ts:425](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L425)* ___ @@ -3201,7 +3205,7 @@ ___ *Inherited from [LogEntry](#interface-logentry).[topics](#topics)* -*Defined in [ethereum-types/src/index.ts:436](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L436)* +*Defined in [ethereum-types/src/index.ts:436](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L436)* ___ @@ -3211,7 +3215,7 @@ ___ *Inherited from [LogEntry](#interface-logentry).[transactionHash](#transactionhash)* -*Defined in [ethereum-types/src/index.ts:431](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L431)* +*Defined in [ethereum-types/src/index.ts:431](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L431)* ___ @@ -3221,7 +3225,7 @@ ___ *Inherited from [LogEntry](#interface-logentry).[transactionIndex](#transactionindex)* -*Defined in [ethereum-types/src/index.ts:430](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L430)* +*Defined in [ethereum-types/src/index.ts:430](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L430)*
@@ -3240,7 +3244,7 @@ ___ *Inherited from [LogEntry](#interface-logentry).[address](#address)* -*Defined in [ethereum-types/src/index.ts:434](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L434)* +*Defined in [ethereum-types/src/index.ts:434](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L434)* ___ @@ -3250,7 +3254,7 @@ ___ *Inherited from [DecodedLogEntry](#interface-decodedlogentry).[args](#args)* -*Defined in [ethereum-types/src/index.ts:417](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L417)* +*Defined in [ethereum-types/src/index.ts:417](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L417)* ___ @@ -3260,7 +3264,7 @@ ___ *Inherited from [LogEntry](#interface-logentry).[blockHash](#blockhash)* -*Defined in [ethereum-types/src/index.ts:432](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L432)* +*Defined in [ethereum-types/src/index.ts:432](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L432)* ___ @@ -3270,7 +3274,7 @@ ___ *Inherited from [LogEntry](#interface-logentry).[blockNumber](#blocknumber)* -*Defined in [ethereum-types/src/index.ts:433](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L433)* +*Defined in [ethereum-types/src/index.ts:433](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L433)* ___ @@ -3280,7 +3284,7 @@ ___ *Inherited from [LogEntry](#interface-logentry).[data](#data)* -*Defined in [ethereum-types/src/index.ts:435](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L435)* +*Defined in [ethereum-types/src/index.ts:435](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L435)* ___ @@ -3290,7 +3294,7 @@ ___ *Inherited from [DecodedLogEntry](#interface-decodedlogentry).[event](#event)* -*Defined in [ethereum-types/src/index.ts:416](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L416)* +*Defined in [ethereum-types/src/index.ts:416](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L416)* ___ @@ -3300,7 +3304,7 @@ ___ *Inherited from [LogEntry](#interface-logentry).[logIndex](#logindex)* -*Defined in [ethereum-types/src/index.ts:429](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L429)* +*Defined in [ethereum-types/src/index.ts:429](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L429)* ___ @@ -3310,7 +3314,7 @@ ___ *Inherited from [LogEntry](#interface-logentry).[topics](#topics)* -*Defined in [ethereum-types/src/index.ts:436](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L436)* +*Defined in [ethereum-types/src/index.ts:436](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L436)* ___ @@ -3320,7 +3324,7 @@ ___ *Inherited from [LogEntry](#interface-logentry).[transactionHash](#transactionhash)* -*Defined in [ethereum-types/src/index.ts:431](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L431)* +*Defined in [ethereum-types/src/index.ts:431](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L431)* ___ @@ -3330,7 +3334,7 @@ ___ *Inherited from [LogEntry](#interface-logentry).[transactionIndex](#transactionindex)* -*Defined in [ethereum-types/src/index.ts:430](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L430)* +*Defined in [ethereum-types/src/index.ts:430](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L430)*
@@ -3343,7 +3347,7 @@ ___ • **constant**: *boolean* -*Defined in [ethereum-types/src/index.ts:94](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L94)* +*Defined in [ethereum-types/src/index.ts:94](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L94)* ___ @@ -3351,7 +3355,7 @@ ___ • **inputs**: *[DataItem](#class-dataitem)[]* -*Defined in [ethereum-types/src/index.ts:92](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L92)* +*Defined in [ethereum-types/src/index.ts:92](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L92)* ___ @@ -3359,7 +3363,7 @@ ___ • **name**: *string* -*Defined in [ethereum-types/src/index.ts:91](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L91)* +*Defined in [ethereum-types/src/index.ts:91](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L91)* ___ @@ -3367,7 +3371,7 @@ ___ • **outputs**: *[DataItem](#class-dataitem)[]* -*Defined in [ethereum-types/src/index.ts:93](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L93)* +*Defined in [ethereum-types/src/index.ts:93](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L93)* ___ @@ -3375,7 +3379,7 @@ ___ • **payable**: *boolean* -*Defined in [ethereum-types/src/index.ts:96](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L96)* +*Defined in [ethereum-types/src/index.ts:96](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L96)* ___ @@ -3383,7 +3387,7 @@ ___ • **stateMutability**: *[StateMutability](#statemutability)* -*Defined in [ethereum-types/src/index.ts:95](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L95)* +*Defined in [ethereum-types/src/index.ts:95](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L95)* ___ @@ -3391,7 +3395,7 @@ ___ • **type**: *string* -*Defined in [ethereum-types/src/index.ts:90](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L90)* +*Defined in [ethereum-types/src/index.ts:90](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L90)*
@@ -3408,7 +3412,7 @@ ___ • **address**: *string* -*Defined in [ethereum-types/src/index.ts:491](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L491)* +*Defined in [ethereum-types/src/index.ts:491](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L491)* ___ @@ -3416,7 +3420,7 @@ ___ • **blockHash**: *string | null* -*Defined in [ethereum-types/src/index.ts:489](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L489)* +*Defined in [ethereum-types/src/index.ts:489](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L489)* ___ @@ -3424,7 +3428,7 @@ ___ • **blockNumber**: *string | null* -*Defined in [ethereum-types/src/index.ts:490](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L490)* +*Defined in [ethereum-types/src/index.ts:490](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L490)* ___ @@ -3432,7 +3436,7 @@ ___ • **data**: *string* -*Defined in [ethereum-types/src/index.ts:492](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L492)* +*Defined in [ethereum-types/src/index.ts:492](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L492)* ___ @@ -3440,7 +3444,7 @@ ___ • **logIndex**: *string | null* -*Defined in [ethereum-types/src/index.ts:486](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L486)* +*Defined in [ethereum-types/src/index.ts:486](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L486)* ___ @@ -3448,7 +3452,7 @@ ___ • **topics**: *string[]* -*Defined in [ethereum-types/src/index.ts:493](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L493)* +*Defined in [ethereum-types/src/index.ts:493](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L493)* ___ @@ -3456,7 +3460,7 @@ ___ • **transactionHash**: *string* -*Defined in [ethereum-types/src/index.ts:488](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L488)* +*Defined in [ethereum-types/src/index.ts:488](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L488)* ___ @@ -3464,7 +3468,7 @@ ___ • **transactionIndex**: *string | null* -*Defined in [ethereum-types/src/index.ts:487](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L487)* +*Defined in [ethereum-types/src/index.ts:487](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L487)*
@@ -3477,7 +3481,7 @@ ___ • **arguments**? : *[DataItem](#class-dataitem)[]* -*Defined in [ethereum-types/src/index.ts:122](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L122)* +*Defined in [ethereum-types/src/index.ts:122](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L122)* ___ @@ -3485,7 +3489,7 @@ ___ • **name**: *string* -*Defined in [ethereum-types/src/index.ts:121](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L121)* +*Defined in [ethereum-types/src/index.ts:121](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L121)* ___ @@ -3493,7 +3497,7 @@ ___ • **type**: *"error"* -*Defined in [ethereum-types/src/index.ts:120](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L120)* +*Defined in [ethereum-types/src/index.ts:120](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L120)*
@@ -3516,7 +3520,7 @@ ___ • **depth**: *number* -*Defined in [ethereum-types/src/index.ts:293](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L293)* +*Defined in [ethereum-types/src/index.ts:293](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L293)* ___ @@ -3524,7 +3528,7 @@ ___ • **error**: *string* -*Defined in [ethereum-types/src/index.ts:294](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L294)* +*Defined in [ethereum-types/src/index.ts:294](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L294)* ___ @@ -3532,7 +3536,7 @@ ___ • **gas**: *number* -*Defined in [ethereum-types/src/index.ts:295](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L295)* +*Defined in [ethereum-types/src/index.ts:295](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L295)* ___ @@ -3540,7 +3544,7 @@ ___ • **gasCost**: *number* -*Defined in [ethereum-types/src/index.ts:296](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L296)* +*Defined in [ethereum-types/src/index.ts:296](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L296)* ___ @@ -3548,7 +3552,7 @@ ___ • **memory**: *string[]* -*Defined in [ethereum-types/src/index.ts:297](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L297)* +*Defined in [ethereum-types/src/index.ts:297](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L297)* ___ @@ -3556,7 +3560,7 @@ ___ • **op**: *[OpCode](#enumeration-opcode)* -*Defined in [ethereum-types/src/index.ts:298](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L298)* +*Defined in [ethereum-types/src/index.ts:298](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L298)* ___ @@ -3564,7 +3568,7 @@ ___ • **pc**: *number* -*Defined in [ethereum-types/src/index.ts:299](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L299)* +*Defined in [ethereum-types/src/index.ts:299](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L299)* ___ @@ -3572,7 +3576,7 @@ ___ • **stack**: *string[]* -*Defined in [ethereum-types/src/index.ts:300](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L300)* +*Defined in [ethereum-types/src/index.ts:300](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L300)* ___ @@ -3580,7 +3584,7 @@ ___ • **storage**: *object* -*Defined in [ethereum-types/src/index.ts:301](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L301)* +*Defined in [ethereum-types/src/index.ts:301](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L301)* #### Type declaration: @@ -3597,7 +3601,7 @@ ___ • **disableMemory**? : *undefined | false | true* -*Defined in [ethereum-types/src/index.ts:518](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L518)* +*Defined in [ethereum-types/src/index.ts:518](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L518)* ___ @@ -3605,7 +3609,7 @@ ___ • **disableStack**? : *undefined | false | true* -*Defined in [ethereum-types/src/index.ts:519](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L519)* +*Defined in [ethereum-types/src/index.ts:519](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L519)* ___ @@ -3613,7 +3617,7 @@ ___ • **disableStorage**? : *undefined | false | true* -*Defined in [ethereum-types/src/index.ts:520](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L520)* +*Defined in [ethereum-types/src/index.ts:520](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L520)* ___ @@ -3621,7 +3625,7 @@ ___ • **timeout**? : *undefined | string* -*Defined in [ethereum-types/src/index.ts:522](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L522)* +*Defined in [ethereum-types/src/index.ts:522](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L522)* ___ @@ -3629,7 +3633,7 @@ ___ • **tracer**? : *undefined | string* -*Defined in [ethereum-types/src/index.ts:521](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L521)* +*Defined in [ethereum-types/src/index.ts:521](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L521)*
@@ -3642,7 +3646,7 @@ ___ • **blockHash**: *string | null* -*Defined in [ethereum-types/src/index.ts:377](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L377)* +*Defined in [ethereum-types/src/index.ts:377](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L377)* ___ @@ -3650,7 +3654,7 @@ ___ • **blockNumber**: *number | null* -*Defined in [ethereum-types/src/index.ts:378](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L378)* +*Defined in [ethereum-types/src/index.ts:378](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L378)* ___ @@ -3658,7 +3662,7 @@ ___ • **from**: *string* -*Defined in [ethereum-types/src/index.ts:380](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L380)* +*Defined in [ethereum-types/src/index.ts:380](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L380)* ___ @@ -3666,7 +3670,7 @@ ___ • **gas**: *number* -*Defined in [ethereum-types/src/index.ts:384](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L384)* +*Defined in [ethereum-types/src/index.ts:384](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L384)* ___ @@ -3674,7 +3678,7 @@ ___ • **gasPrice**: *`BigNumber`* -*Defined in [ethereum-types/src/index.ts:383](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L383)* +*Defined in [ethereum-types/src/index.ts:383](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L383)* ___ @@ -3682,7 +3686,7 @@ ___ • **hash**: *string* -*Defined in [ethereum-types/src/index.ts:375](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L375)* +*Defined in [ethereum-types/src/index.ts:375](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L375)* ___ @@ -3690,7 +3694,7 @@ ___ • **input**: *string* -*Defined in [ethereum-types/src/index.ts:385](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L385)* +*Defined in [ethereum-types/src/index.ts:385](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L385)* ___ @@ -3698,7 +3702,7 @@ ___ • **nonce**: *number* -*Defined in [ethereum-types/src/index.ts:376](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L376)* +*Defined in [ethereum-types/src/index.ts:376](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L376)* ___ @@ -3706,7 +3710,7 @@ ___ • **to**: *string | null* -*Defined in [ethereum-types/src/index.ts:381](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L381)* +*Defined in [ethereum-types/src/index.ts:381](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L381)* ___ @@ -3714,7 +3718,7 @@ ___ • **transactionIndex**: *number | null* -*Defined in [ethereum-types/src/index.ts:379](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L379)* +*Defined in [ethereum-types/src/index.ts:379](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L379)* ___ @@ -3722,7 +3726,7 @@ ___ • **value**: *`BigNumber`* -*Defined in [ethereum-types/src/index.ts:382](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L382)* +*Defined in [ethereum-types/src/index.ts:382](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L382)*
@@ -3735,7 +3739,7 @@ ___ • **blockHash**: *string* -*Defined in [ethereum-types/src/index.ts:448](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L448)* +*Defined in [ethereum-types/src/index.ts:448](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L448)* ___ @@ -3743,7 +3747,7 @@ ___ • **blockNumber**: *number* -*Defined in [ethereum-types/src/index.ts:449](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L449)* +*Defined in [ethereum-types/src/index.ts:449](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L449)* ___ @@ -3751,7 +3755,7 @@ ___ • **contractAddress**: *string | null* -*Defined in [ethereum-types/src/index.ts:457](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L457)* +*Defined in [ethereum-types/src/index.ts:457](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L457)* ___ @@ -3759,7 +3763,7 @@ ___ • **cumulativeGasUsed**: *number* -*Defined in [ethereum-types/src/index.ts:455](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L455)* +*Defined in [ethereum-types/src/index.ts:455](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L455)* ___ @@ -3767,7 +3771,7 @@ ___ • **from**: *string* -*Defined in [ethereum-types/src/index.ts:452](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L452)* +*Defined in [ethereum-types/src/index.ts:452](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L452)* ___ @@ -3775,7 +3779,7 @@ ___ • **gasUsed**: *number* -*Defined in [ethereum-types/src/index.ts:456](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L456)* +*Defined in [ethereum-types/src/index.ts:456](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L456)* ___ @@ -3783,7 +3787,7 @@ ___ • **logs**: *[LogEntry](#class-logentry)[]* -*Defined in [ethereum-types/src/index.ts:458](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L458)* +*Defined in [ethereum-types/src/index.ts:458](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L458)* ___ @@ -3791,7 +3795,7 @@ ___ • **status**: *[TransactionReceiptStatus](#transactionreceiptstatus)* -*Defined in [ethereum-types/src/index.ts:454](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L454)* +*Defined in [ethereum-types/src/index.ts:454](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L454)* ___ @@ -3799,7 +3803,7 @@ ___ • **to**: *string* -*Defined in [ethereum-types/src/index.ts:453](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L453)* +*Defined in [ethereum-types/src/index.ts:453](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L453)* ___ @@ -3807,7 +3811,7 @@ ___ • **transactionHash**: *string* -*Defined in [ethereum-types/src/index.ts:450](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L450)* +*Defined in [ethereum-types/src/index.ts:450](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L450)* ___ @@ -3815,7 +3819,7 @@ ___ • **transactionIndex**: *number* -*Defined in [ethereum-types/src/index.ts:451](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L451)* +*Defined in [ethereum-types/src/index.ts:451](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L451)*
@@ -3834,7 +3838,7 @@ otherwise we don't. *Inherited from [TransactionReceipt](#interface-transactionreceipt).[blockHash](#blockhash)* -*Defined in [ethereum-types/src/index.ts:448](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L448)* +*Defined in [ethereum-types/src/index.ts:448](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L448)* ___ @@ -3844,7 +3848,7 @@ ___ *Inherited from [TransactionReceipt](#interface-transactionreceipt).[blockNumber](#blocknumber)* -*Defined in [ethereum-types/src/index.ts:449](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L449)* +*Defined in [ethereum-types/src/index.ts:449](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L449)* ___ @@ -3854,7 +3858,7 @@ ___ *Inherited from [TransactionReceipt](#interface-transactionreceipt).[contractAddress](#contractaddress)* -*Defined in [ethereum-types/src/index.ts:457](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L457)* +*Defined in [ethereum-types/src/index.ts:457](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L457)* ___ @@ -3864,7 +3868,7 @@ ___ *Inherited from [TransactionReceipt](#interface-transactionreceipt).[cumulativeGasUsed](#cumulativegasused)* -*Defined in [ethereum-types/src/index.ts:455](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L455)* +*Defined in [ethereum-types/src/index.ts:455](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L455)* ___ @@ -3874,7 +3878,7 @@ ___ *Inherited from [TransactionReceipt](#interface-transactionreceipt).[from](#from)* -*Defined in [ethereum-types/src/index.ts:452](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L452)* +*Defined in [ethereum-types/src/index.ts:452](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L452)* ___ @@ -3884,7 +3888,7 @@ ___ *Inherited from [TransactionReceipt](#interface-transactionreceipt).[gasUsed](#gasused)* -*Defined in [ethereum-types/src/index.ts:456](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L456)* +*Defined in [ethereum-types/src/index.ts:456](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L456)* ___ @@ -3894,7 +3898,7 @@ ___ *Overrides [TransactionReceipt](_ethereum_types_src_index_.transactionreceipt.md).[logs](#logs)* -*Defined in [ethereum-types/src/index.ts:514](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L514)* +*Defined in [ethereum-types/src/index.ts:514](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L514)* ___ @@ -3904,7 +3908,7 @@ ___ *Inherited from [TransactionReceipt](#interface-transactionreceipt).[status](#status)* -*Defined in [ethereum-types/src/index.ts:454](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L454)* +*Defined in [ethereum-types/src/index.ts:454](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L454)* ___ @@ -3914,7 +3918,7 @@ ___ *Inherited from [TransactionReceipt](#interface-transactionreceipt).[to](#to)* -*Defined in [ethereum-types/src/index.ts:453](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L453)* +*Defined in [ethereum-types/src/index.ts:453](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L453)* ___ @@ -3924,7 +3928,7 @@ ___ *Inherited from [TransactionReceipt](#interface-transactionreceipt).[transactionHash](#transactionhash)* -*Defined in [ethereum-types/src/index.ts:450](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L450)* +*Defined in [ethereum-types/src/index.ts:450](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L450)* ___ @@ -3934,7 +3938,7 @@ ___ *Inherited from [TransactionReceipt](#interface-transactionreceipt).[transactionIndex](#transactionindex)* -*Defined in [ethereum-types/src/index.ts:451](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L451)* +*Defined in [ethereum-types/src/index.ts:451](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L451)*
@@ -3947,7 +3951,7 @@ ___ • **gas**: *number* -*Defined in [ethereum-types/src/index.ts:305](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L305)* +*Defined in [ethereum-types/src/index.ts:305](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L305)* ___ @@ -3955,7 +3959,7 @@ ___ • **returnValue**: *any* -*Defined in [ethereum-types/src/index.ts:306](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L306)* +*Defined in [ethereum-types/src/index.ts:306](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L306)* ___ @@ -3963,7 +3967,7 @@ ___ • **structLogs**: *[StructLog](#class-structlog)[]* -*Defined in [ethereum-types/src/index.ts:307](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L307)* +*Defined in [ethereum-types/src/index.ts:307](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L307)*
@@ -3978,7 +3982,7 @@ ___ *Overrides [DataItem](_ethereum_types_src_index_.dataitem.md).[components](#optional-components)* -*Defined in [ethereum-types/src/index.ts:141](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L141)* +*Defined in [ethereum-types/src/index.ts:141](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L141)* ___ @@ -3988,7 +3992,7 @@ ___ *Inherited from [DataItem](#interface-dataitem).[name](#name)* -*Defined in [ethereum-types/src/index.ts:135](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L135)* +*Defined in [ethereum-types/src/index.ts:135](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L135)* ___ @@ -3998,7 +4002,7 @@ ___ *Inherited from [DataItem](#interface-dataitem).[type](#type)* -*Defined in [ethereum-types/src/index.ts:136](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L136)* +*Defined in [ethereum-types/src/index.ts:136](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L136)*
@@ -4013,7 +4017,7 @@ ___ *Inherited from [CallTxDataBase](#interface-calltxdatabase).[data](#optional-data)* -*Defined in [ethereum-types/src/index.ts:393](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L393)* +*Defined in [ethereum-types/src/index.ts:393](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L393)* ___ @@ -4021,7 +4025,7 @@ ___ • **from**: *string* -*Defined in [ethereum-types/src/index.ts:398](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L398)* +*Defined in [ethereum-types/src/index.ts:398](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L398)* ___ @@ -4031,7 +4035,7 @@ ___ *Inherited from [CallTxDataBase](#interface-calltxdatabase).[gas](#optional-gas)* -*Defined in [ethereum-types/src/index.ts:391](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L391)* +*Defined in [ethereum-types/src/index.ts:391](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L391)* ___ @@ -4041,7 +4045,7 @@ ___ *Inherited from [CallTxDataBase](#interface-calltxdatabase).[gasPrice](#optional-gasprice)* -*Defined in [ethereum-types/src/index.ts:392](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L392)* +*Defined in [ethereum-types/src/index.ts:392](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L392)* ___ @@ -4051,7 +4055,7 @@ ___ *Inherited from [CallTxDataBase](#interface-calltxdatabase).[nonce](#optional-nonce)* -*Defined in [ethereum-types/src/index.ts:394](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L394)* +*Defined in [ethereum-types/src/index.ts:394](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L394)* ___ @@ -4061,7 +4065,7 @@ ___ *Inherited from [CallTxDataBase](#interface-calltxdatabase).[to](#optional-to)* -*Defined in [ethereum-types/src/index.ts:389](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L389)* +*Defined in [ethereum-types/src/index.ts:389](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L389)* ___ @@ -4071,7 +4075,7 @@ ___ *Inherited from [CallTxDataBase](#interface-calltxdatabase).[value](#optional-value)* -*Defined in [ethereum-types/src/index.ts:390](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L390)* +*Defined in [ethereum-types/src/index.ts:390](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L390)*
@@ -4086,7 +4090,7 @@ ___ *Inherited from [CallTxDataBase](#interface-calltxdatabase).[data](#optional-data)* -*Defined in [ethereum-types/src/index.ts:393](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L393)* +*Defined in [ethereum-types/src/index.ts:393](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L393)* ___ @@ -4096,7 +4100,7 @@ ___ *Inherited from [TxData](#interface-txdata).[from](#from)* -*Defined in [ethereum-types/src/index.ts:398](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L398)* +*Defined in [ethereum-types/src/index.ts:398](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L398)* ___ @@ -4106,7 +4110,7 @@ ___ *Inherited from [CallTxDataBase](#interface-calltxdatabase).[gas](#optional-gas)* -*Defined in [ethereum-types/src/index.ts:391](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L391)* +*Defined in [ethereum-types/src/index.ts:391](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L391)* ___ @@ -4116,7 +4120,7 @@ ___ *Inherited from [CallTxDataBase](#interface-calltxdatabase).[gasPrice](#optional-gasprice)* -*Defined in [ethereum-types/src/index.ts:392](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L392)* +*Defined in [ethereum-types/src/index.ts:392](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L392)* ___ @@ -4126,7 +4130,7 @@ ___ *Inherited from [CallTxDataBase](#interface-calltxdatabase).[nonce](#optional-nonce)* -*Defined in [ethereum-types/src/index.ts:394](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L394)* +*Defined in [ethereum-types/src/index.ts:394](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L394)* ___ @@ -4136,7 +4140,7 @@ ___ *Inherited from [CallTxDataBase](#interface-calltxdatabase).[to](#optional-to)* -*Defined in [ethereum-types/src/index.ts:389](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L389)* +*Defined in [ethereum-types/src/index.ts:389](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L389)* ___ @@ -4146,7 +4150,7 @@ ___ *Overrides [CallTxDataBase](_ethereum_types_src_index_.calltxdatabase.md).[value](#optional-value)* -*Defined in [ethereum-types/src/index.ts:442](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L442)* +*Defined in [ethereum-types/src/index.ts:442](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L442)*
@@ -4163,7 +4167,7 @@ This interface allowed sending synchonous requests, support for which was later ▸ **send**(`payload`: [JSONRPCRequestPayload](_ethereum_types_src_index_.jsonrpcrequestpayload.md)): *[JSONRPCResponsePayload](#class-jsonrpcresponsepayload)* -*Defined in [ethereum-types/src/index.ts:45](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L45)* +*Defined in [ethereum-types/src/index.ts:45](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L45)* **Parameters:** @@ -4179,7 +4183,7 @@ ___ ▸ **sendAsync**(`payload`: [JSONRPCRequestPayload](_ethereum_types_src_index_.jsonrpcrequestpayload.md), `callback`: [JSONRPCErrorCallback](#jsonrpcerrorcallback)): *void* -*Defined in [ethereum-types/src/index.ts:44](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L44)* +*Defined in [ethereum-types/src/index.ts:44](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L44)* **Parameters:** @@ -4205,7 +4209,7 @@ before the first attempts to conform to EIP1193 ▸ **send**(`payload`: [JSONRPCRequestPayload](_ethereum_types_src_index_.jsonrpcrequestpayload.md), `callback`: [JSONRPCErrorCallback](#jsonrpcerrorcallback)): *void* -*Defined in [ethereum-types/src/index.ts:54](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L54)* +*Defined in [ethereum-types/src/index.ts:54](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L54)* **Parameters:** @@ -4231,7 +4235,7 @@ however it does not conform entirely. ▸ **send**(`method`: string, `params?`: any[]): *`Promise`* -*Defined in [ethereum-types/src/index.ts:63](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L63)* +*Defined in [ethereum-types/src/index.ts:63](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L63)* **Parameters:** @@ -4257,7 +4261,7 @@ add here • **isMetaMask**? : *undefined | false | true* -*Defined in [ethereum-types/src/index.ts:31](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L31)* +*Defined in [ethereum-types/src/index.ts:31](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L31)* ___ @@ -4265,7 +4269,7 @@ ___ • **isParity**? : *undefined | false | true* -*Defined in [ethereum-types/src/index.ts:32](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L32)* +*Defined in [ethereum-types/src/index.ts:32](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L32)* ___ @@ -4273,7 +4277,7 @@ ___ • **isZeroExProvider**? : *undefined | false | true* -*Defined in [ethereum-types/src/index.ts:30](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L30)* +*Defined in [ethereum-types/src/index.ts:30](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L30)* ## Methods @@ -4281,7 +4285,7 @@ ___ ▸ **enable**(): *`Promise`* -*Defined in [ethereum-types/src/index.ts:34](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L34)* +*Defined in [ethereum-types/src/index.ts:34](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L34)* **Returns:** *`Promise`* @@ -4291,7 +4295,7 @@ ___ ▸ **sendAsync**(`payload`: [JSONRPCRequestPayload](_ethereum_types_src_index_.jsonrpcrequestpayload.md), `callback`: [JSONRPCErrorCallback](#jsonrpcerrorcallback)): *void* -*Defined in [ethereum-types/src/index.ts:35](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L35)* +*Defined in [ethereum-types/src/index.ts:35](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L35)* **Parameters:** @@ -4308,7 +4312,7 @@ ___ ▸ **stop**(): *void* -*Defined in [ethereum-types/src/index.ts:33](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L33)* +*Defined in [ethereum-types/src/index.ts:33](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L33)* **Returns:** *void* @@ -4327,7 +4331,7 @@ ___ *Inherited from [AbstractBlockRPC](#interface-abstractblockrpc).[difficulty](#difficulty)* -*Defined in [web3-wrapper/src/types.ts:15](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/web3-wrapper/src/types.ts#L15)* +*Defined in [web3-wrapper/src/types.ts:15](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/web3-wrapper/src/types.ts#L15)* ___ @@ -4337,7 +4341,7 @@ ___ *Inherited from [AbstractBlockRPC](#interface-abstractblockrpc).[extraData](#extradata)* -*Defined in [web3-wrapper/src/types.ts:17](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/web3-wrapper/src/types.ts#L17)* +*Defined in [web3-wrapper/src/types.ts:17](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/web3-wrapper/src/types.ts#L17)* ___ @@ -4347,7 +4351,7 @@ ___ *Inherited from [AbstractBlockRPC](#interface-abstractblockrpc).[gasLimit](#gaslimit)* -*Defined in [web3-wrapper/src/types.ts:19](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/web3-wrapper/src/types.ts#L19)* +*Defined in [web3-wrapper/src/types.ts:19](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/web3-wrapper/src/types.ts#L19)* ___ @@ -4357,7 +4361,7 @@ ___ *Inherited from [AbstractBlockRPC](#interface-abstractblockrpc).[gasUsed](#gasused)* -*Defined in [web3-wrapper/src/types.ts:20](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/web3-wrapper/src/types.ts#L20)* +*Defined in [web3-wrapper/src/types.ts:20](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/web3-wrapper/src/types.ts#L20)* ___ @@ -4367,7 +4371,7 @@ ___ *Inherited from [AbstractBlockRPC](#interface-abstractblockrpc).[hash](#hash)* -*Defined in [web3-wrapper/src/types.ts:7](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/web3-wrapper/src/types.ts#L7)* +*Defined in [web3-wrapper/src/types.ts:7](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/web3-wrapper/src/types.ts#L7)* ___ @@ -4377,7 +4381,7 @@ ___ *Inherited from [AbstractBlockRPC](#interface-abstractblockrpc).[logsBloom](#logsbloom)* -*Defined in [web3-wrapper/src/types.ts:11](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/web3-wrapper/src/types.ts#L11)* +*Defined in [web3-wrapper/src/types.ts:11](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/web3-wrapper/src/types.ts#L11)* ___ @@ -4387,7 +4391,7 @@ ___ *Inherited from [AbstractBlockRPC](#interface-abstractblockrpc).[miner](#miner)* -*Defined in [web3-wrapper/src/types.ts:14](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/web3-wrapper/src/types.ts#L14)* +*Defined in [web3-wrapper/src/types.ts:14](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/web3-wrapper/src/types.ts#L14)* ___ @@ -4397,7 +4401,7 @@ ___ *Inherited from [AbstractBlockRPC](#interface-abstractblockrpc).[nonce](#nonce)* -*Defined in [web3-wrapper/src/types.ts:9](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/web3-wrapper/src/types.ts#L9)* +*Defined in [web3-wrapper/src/types.ts:9](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/web3-wrapper/src/types.ts#L9)* ___ @@ -4407,7 +4411,7 @@ ___ *Inherited from [AbstractBlockRPC](#interface-abstractblockrpc).[number](#number)* -*Defined in [web3-wrapper/src/types.ts:6](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/web3-wrapper/src/types.ts#L6)* +*Defined in [web3-wrapper/src/types.ts:6](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/web3-wrapper/src/types.ts#L6)* ___ @@ -4417,7 +4421,7 @@ ___ *Inherited from [AbstractBlockRPC](#interface-abstractblockrpc).[parentHash](#parenthash)* -*Defined in [web3-wrapper/src/types.ts:8](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/web3-wrapper/src/types.ts#L8)* +*Defined in [web3-wrapper/src/types.ts:8](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/web3-wrapper/src/types.ts#L8)* ___ @@ -4427,7 +4431,7 @@ ___ *Inherited from [AbstractBlockRPC](#interface-abstractblockrpc).[sha3Uncles](#sha3uncles)* -*Defined in [web3-wrapper/src/types.ts:10](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/web3-wrapper/src/types.ts#L10)* +*Defined in [web3-wrapper/src/types.ts:10](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/web3-wrapper/src/types.ts#L10)* ___ @@ -4437,7 +4441,7 @@ ___ *Inherited from [AbstractBlockRPC](#interface-abstractblockrpc).[size](#size)* -*Defined in [web3-wrapper/src/types.ts:18](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/web3-wrapper/src/types.ts#L18)* +*Defined in [web3-wrapper/src/types.ts:18](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/web3-wrapper/src/types.ts#L18)* ___ @@ -4447,7 +4451,7 @@ ___ *Inherited from [AbstractBlockRPC](#interface-abstractblockrpc).[stateRoot](#stateroot)* -*Defined in [web3-wrapper/src/types.ts:13](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/web3-wrapper/src/types.ts#L13)* +*Defined in [web3-wrapper/src/types.ts:13](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/web3-wrapper/src/types.ts#L13)* ___ @@ -4457,7 +4461,7 @@ ___ *Inherited from [AbstractBlockRPC](#interface-abstractblockrpc).[timestamp](#timestamp)* -*Defined in [web3-wrapper/src/types.ts:21](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/web3-wrapper/src/types.ts#L21)* +*Defined in [web3-wrapper/src/types.ts:21](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/web3-wrapper/src/types.ts#L21)* ___ @@ -4467,7 +4471,7 @@ ___ *Inherited from [AbstractBlockRPC](#interface-abstractblockrpc).[totalDifficulty](#totaldifficulty)* -*Defined in [web3-wrapper/src/types.ts:16](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/web3-wrapper/src/types.ts#L16)* +*Defined in [web3-wrapper/src/types.ts:16](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/web3-wrapper/src/types.ts#L16)* ___ @@ -4475,7 +4479,7 @@ ___ • **transactions**: *string[]* -*Defined in [web3-wrapper/src/types.ts:25](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/web3-wrapper/src/types.ts#L25)* +*Defined in [web3-wrapper/src/types.ts:25](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/web3-wrapper/src/types.ts#L25)* ___ @@ -4485,7 +4489,7 @@ ___ *Inherited from [AbstractBlockRPC](#interface-abstractblockrpc).[transactionsRoot](#transactionsroot)* -*Defined in [web3-wrapper/src/types.ts:12](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/web3-wrapper/src/types.ts#L12)* +*Defined in [web3-wrapper/src/types.ts:12](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/web3-wrapper/src/types.ts#L12)* ___ @@ -4495,7 +4499,7 @@ ___ *Inherited from [AbstractBlockRPC](#interface-abstractblockrpc).[uncles](#uncles)* -*Defined in [web3-wrapper/src/types.ts:22](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/web3-wrapper/src/types.ts#L22)* +*Defined in [web3-wrapper/src/types.ts:22](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/web3-wrapper/src/types.ts#L22)*
@@ -4510,7 +4514,7 @@ ___ *Inherited from [AbstractBlockRPC](#interface-abstractblockrpc).[difficulty](#difficulty)* -*Defined in [web3-wrapper/src/types.ts:15](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/web3-wrapper/src/types.ts#L15)* +*Defined in [web3-wrapper/src/types.ts:15](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/web3-wrapper/src/types.ts#L15)* ___ @@ -4520,7 +4524,7 @@ ___ *Inherited from [AbstractBlockRPC](#interface-abstractblockrpc).[extraData](#extradata)* -*Defined in [web3-wrapper/src/types.ts:17](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/web3-wrapper/src/types.ts#L17)* +*Defined in [web3-wrapper/src/types.ts:17](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/web3-wrapper/src/types.ts#L17)* ___ @@ -4530,7 +4534,7 @@ ___ *Inherited from [AbstractBlockRPC](#interface-abstractblockrpc).[gasLimit](#gaslimit)* -*Defined in [web3-wrapper/src/types.ts:19](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/web3-wrapper/src/types.ts#L19)* +*Defined in [web3-wrapper/src/types.ts:19](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/web3-wrapper/src/types.ts#L19)* ___ @@ -4540,7 +4544,7 @@ ___ *Inherited from [AbstractBlockRPC](#interface-abstractblockrpc).[gasUsed](#gasused)* -*Defined in [web3-wrapper/src/types.ts:20](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/web3-wrapper/src/types.ts#L20)* +*Defined in [web3-wrapper/src/types.ts:20](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/web3-wrapper/src/types.ts#L20)* ___ @@ -4550,7 +4554,7 @@ ___ *Inherited from [AbstractBlockRPC](#interface-abstractblockrpc).[hash](#hash)* -*Defined in [web3-wrapper/src/types.ts:7](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/web3-wrapper/src/types.ts#L7)* +*Defined in [web3-wrapper/src/types.ts:7](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/web3-wrapper/src/types.ts#L7)* ___ @@ -4560,7 +4564,7 @@ ___ *Inherited from [AbstractBlockRPC](#interface-abstractblockrpc).[logsBloom](#logsbloom)* -*Defined in [web3-wrapper/src/types.ts:11](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/web3-wrapper/src/types.ts#L11)* +*Defined in [web3-wrapper/src/types.ts:11](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/web3-wrapper/src/types.ts#L11)* ___ @@ -4570,7 +4574,7 @@ ___ *Inherited from [AbstractBlockRPC](#interface-abstractblockrpc).[miner](#miner)* -*Defined in [web3-wrapper/src/types.ts:14](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/web3-wrapper/src/types.ts#L14)* +*Defined in [web3-wrapper/src/types.ts:14](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/web3-wrapper/src/types.ts#L14)* ___ @@ -4580,7 +4584,7 @@ ___ *Inherited from [AbstractBlockRPC](#interface-abstractblockrpc).[nonce](#nonce)* -*Defined in [web3-wrapper/src/types.ts:9](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/web3-wrapper/src/types.ts#L9)* +*Defined in [web3-wrapper/src/types.ts:9](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/web3-wrapper/src/types.ts#L9)* ___ @@ -4590,7 +4594,7 @@ ___ *Inherited from [AbstractBlockRPC](#interface-abstractblockrpc).[number](#number)* -*Defined in [web3-wrapper/src/types.ts:6](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/web3-wrapper/src/types.ts#L6)* +*Defined in [web3-wrapper/src/types.ts:6](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/web3-wrapper/src/types.ts#L6)* ___ @@ -4600,7 +4604,7 @@ ___ *Inherited from [AbstractBlockRPC](#interface-abstractblockrpc).[parentHash](#parenthash)* -*Defined in [web3-wrapper/src/types.ts:8](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/web3-wrapper/src/types.ts#L8)* +*Defined in [web3-wrapper/src/types.ts:8](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/web3-wrapper/src/types.ts#L8)* ___ @@ -4610,7 +4614,7 @@ ___ *Inherited from [AbstractBlockRPC](#interface-abstractblockrpc).[sha3Uncles](#sha3uncles)* -*Defined in [web3-wrapper/src/types.ts:10](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/web3-wrapper/src/types.ts#L10)* +*Defined in [web3-wrapper/src/types.ts:10](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/web3-wrapper/src/types.ts#L10)* ___ @@ -4620,7 +4624,7 @@ ___ *Inherited from [AbstractBlockRPC](#interface-abstractblockrpc).[size](#size)* -*Defined in [web3-wrapper/src/types.ts:18](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/web3-wrapper/src/types.ts#L18)* +*Defined in [web3-wrapper/src/types.ts:18](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/web3-wrapper/src/types.ts#L18)* ___ @@ -4630,7 +4634,7 @@ ___ *Inherited from [AbstractBlockRPC](#interface-abstractblockrpc).[stateRoot](#stateroot)* -*Defined in [web3-wrapper/src/types.ts:13](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/web3-wrapper/src/types.ts#L13)* +*Defined in [web3-wrapper/src/types.ts:13](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/web3-wrapper/src/types.ts#L13)* ___ @@ -4640,7 +4644,7 @@ ___ *Inherited from [AbstractBlockRPC](#interface-abstractblockrpc).[timestamp](#timestamp)* -*Defined in [web3-wrapper/src/types.ts:21](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/web3-wrapper/src/types.ts#L21)* +*Defined in [web3-wrapper/src/types.ts:21](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/web3-wrapper/src/types.ts#L21)* ___ @@ -4650,7 +4654,7 @@ ___ *Inherited from [AbstractBlockRPC](#interface-abstractblockrpc).[totalDifficulty](#totaldifficulty)* -*Defined in [web3-wrapper/src/types.ts:16](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/web3-wrapper/src/types.ts#L16)* +*Defined in [web3-wrapper/src/types.ts:16](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/web3-wrapper/src/types.ts#L16)* ___ @@ -4658,7 +4662,7 @@ ___ • **transactions**: *[TransactionRPC](#class-transactionrpc)[]* -*Defined in [web3-wrapper/src/types.ts:28](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/web3-wrapper/src/types.ts#L28)* +*Defined in [web3-wrapper/src/types.ts:28](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/web3-wrapper/src/types.ts#L28)* ___ @@ -4668,7 +4672,7 @@ ___ *Inherited from [AbstractBlockRPC](#interface-abstractblockrpc).[transactionsRoot](#transactionsroot)* -*Defined in [web3-wrapper/src/types.ts:12](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/web3-wrapper/src/types.ts#L12)* +*Defined in [web3-wrapper/src/types.ts:12](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/web3-wrapper/src/types.ts#L12)* ___ @@ -4678,7 +4682,7 @@ ___ *Inherited from [AbstractBlockRPC](#interface-abstractblockrpc).[uncles](#uncles)* -*Defined in [web3-wrapper/src/types.ts:22](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/web3-wrapper/src/types.ts#L22)* +*Defined in [web3-wrapper/src/types.ts:22](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/web3-wrapper/src/types.ts#L22)*
@@ -4693,7 +4697,7 @@ ___ *Inherited from [CallTxDataBaseRPC](#interface-calltxdatabaserpc).[data](#optional-data)* -*Defined in [web3-wrapper/src/types.ts:76](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/web3-wrapper/src/types.ts#L76)* +*Defined in [web3-wrapper/src/types.ts:76](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/web3-wrapper/src/types.ts#L76)* ___ @@ -4701,7 +4705,7 @@ ___ • **from**? : *undefined | string* -*Defined in [web3-wrapper/src/types.ts:85](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/web3-wrapper/src/types.ts#L85)* +*Defined in [web3-wrapper/src/types.ts:85](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/web3-wrapper/src/types.ts#L85)* ___ @@ -4711,7 +4715,7 @@ ___ *Inherited from [CallTxDataBaseRPC](#interface-calltxdatabaserpc).[gas](#optional-gas)* -*Defined in [web3-wrapper/src/types.ts:74](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/web3-wrapper/src/types.ts#L74)* +*Defined in [web3-wrapper/src/types.ts:74](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/web3-wrapper/src/types.ts#L74)* ___ @@ -4721,7 +4725,7 @@ ___ *Inherited from [CallTxDataBaseRPC](#interface-calltxdatabaserpc).[gasPrice](#optional-gasprice)* -*Defined in [web3-wrapper/src/types.ts:75](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/web3-wrapper/src/types.ts#L75)* +*Defined in [web3-wrapper/src/types.ts:75](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/web3-wrapper/src/types.ts#L75)* ___ @@ -4731,7 +4735,7 @@ ___ *Inherited from [CallTxDataBaseRPC](#interface-calltxdatabaserpc).[nonce](#optional-nonce)* -*Defined in [web3-wrapper/src/types.ts:77](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/web3-wrapper/src/types.ts#L77)* +*Defined in [web3-wrapper/src/types.ts:77](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/web3-wrapper/src/types.ts#L77)* ___ @@ -4741,7 +4745,7 @@ ___ *Inherited from [CallTxDataBaseRPC](#interface-calltxdatabaserpc).[to](#optional-to)* -*Defined in [web3-wrapper/src/types.ts:72](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/web3-wrapper/src/types.ts#L72)* +*Defined in [web3-wrapper/src/types.ts:72](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/web3-wrapper/src/types.ts#L72)* ___ @@ -4751,7 +4755,7 @@ ___ *Inherited from [CallTxDataBaseRPC](#interface-calltxdatabaserpc).[value](#optional-value)* -*Defined in [web3-wrapper/src/types.ts:73](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/web3-wrapper/src/types.ts#L73)* +*Defined in [web3-wrapper/src/types.ts:73](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/web3-wrapper/src/types.ts#L73)*
@@ -4766,7 +4770,7 @@ ___ • **address**: *string* -*Defined in [web3-wrapper/src/types.ts:64](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/web3-wrapper/src/types.ts#L64)* +*Defined in [web3-wrapper/src/types.ts:64](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/web3-wrapper/src/types.ts#L64)* ___ @@ -4774,7 +4778,7 @@ ___ • **blockHash**: *string | null* -*Defined in [web3-wrapper/src/types.ts:62](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/web3-wrapper/src/types.ts#L62)* +*Defined in [web3-wrapper/src/types.ts:62](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/web3-wrapper/src/types.ts#L62)* ___ @@ -4782,7 +4786,7 @@ ___ • **blockNumber**: *string | null* -*Defined in [web3-wrapper/src/types.ts:63](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/web3-wrapper/src/types.ts#L63)* +*Defined in [web3-wrapper/src/types.ts:63](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/web3-wrapper/src/types.ts#L63)* ___ @@ -4790,7 +4794,7 @@ ___ • **data**: *string* -*Defined in [web3-wrapper/src/types.ts:65](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/web3-wrapper/src/types.ts#L65)* +*Defined in [web3-wrapper/src/types.ts:65](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/web3-wrapper/src/types.ts#L65)* ___ @@ -4798,7 +4802,7 @@ ___ • **logIndex**: *string | null* -*Defined in [web3-wrapper/src/types.ts:59](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/web3-wrapper/src/types.ts#L59)* +*Defined in [web3-wrapper/src/types.ts:59](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/web3-wrapper/src/types.ts#L59)* ___ @@ -4806,7 +4810,7 @@ ___ • **topics**: *string[]* -*Defined in [web3-wrapper/src/types.ts:66](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/web3-wrapper/src/types.ts#L66)* +*Defined in [web3-wrapper/src/types.ts:66](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/web3-wrapper/src/types.ts#L66)* ___ @@ -4814,7 +4818,7 @@ ___ • **transactionHash**: *string* -*Defined in [web3-wrapper/src/types.ts:61](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/web3-wrapper/src/types.ts#L61)* +*Defined in [web3-wrapper/src/types.ts:61](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/web3-wrapper/src/types.ts#L61)* ___ @@ -4822,7 +4826,7 @@ ___ • **transactionIndex**: *string | null* -*Defined in [web3-wrapper/src/types.ts:60](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/web3-wrapper/src/types.ts#L60)* +*Defined in [web3-wrapper/src/types.ts:60](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/web3-wrapper/src/types.ts#L60)*
@@ -4835,7 +4839,7 @@ ___ • **blockHash**: *string* -*Defined in [web3-wrapper/src/types.ts:45](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/web3-wrapper/src/types.ts#L45)* +*Defined in [web3-wrapper/src/types.ts:45](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/web3-wrapper/src/types.ts#L45)* ___ @@ -4843,7 +4847,7 @@ ___ • **blockNumber**: *string* -*Defined in [web3-wrapper/src/types.ts:46](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/web3-wrapper/src/types.ts#L46)* +*Defined in [web3-wrapper/src/types.ts:46](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/web3-wrapper/src/types.ts#L46)* ___ @@ -4851,7 +4855,7 @@ ___ • **contractAddress**: *string | null* -*Defined in [web3-wrapper/src/types.ts:54](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/web3-wrapper/src/types.ts#L54)* +*Defined in [web3-wrapper/src/types.ts:54](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/web3-wrapper/src/types.ts#L54)* ___ @@ -4859,7 +4863,7 @@ ___ • **cumulativeGasUsed**: *string* -*Defined in [web3-wrapper/src/types.ts:52](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/web3-wrapper/src/types.ts#L52)* +*Defined in [web3-wrapper/src/types.ts:52](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/web3-wrapper/src/types.ts#L52)* ___ @@ -4867,7 +4871,7 @@ ___ • **from**: *string* -*Defined in [web3-wrapper/src/types.ts:49](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/web3-wrapper/src/types.ts#L49)* +*Defined in [web3-wrapper/src/types.ts:49](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/web3-wrapper/src/types.ts#L49)* ___ @@ -4875,7 +4879,7 @@ ___ • **gasUsed**: *string* -*Defined in [web3-wrapper/src/types.ts:53](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/web3-wrapper/src/types.ts#L53)* +*Defined in [web3-wrapper/src/types.ts:53](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/web3-wrapper/src/types.ts#L53)* ___ @@ -4883,7 +4887,7 @@ ___ • **logs**: *[LogEntryRPC](#class-logentryrpc)[]* -*Defined in [web3-wrapper/src/types.ts:55](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/web3-wrapper/src/types.ts#L55)* +*Defined in [web3-wrapper/src/types.ts:55](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/web3-wrapper/src/types.ts#L55)* ___ @@ -4891,7 +4895,7 @@ ___ • **status**: *[TransactionReceiptStatusRPC](#transactionreceiptstatusrpc)* -*Defined in [web3-wrapper/src/types.ts:51](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/web3-wrapper/src/types.ts#L51)* +*Defined in [web3-wrapper/src/types.ts:51](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/web3-wrapper/src/types.ts#L51)* ___ @@ -4899,7 +4903,7 @@ ___ • **to**: *string* -*Defined in [web3-wrapper/src/types.ts:50](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/web3-wrapper/src/types.ts#L50)* +*Defined in [web3-wrapper/src/types.ts:50](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/web3-wrapper/src/types.ts#L50)* ___ @@ -4907,7 +4911,7 @@ ___ • **transactionHash**: *string* -*Defined in [web3-wrapper/src/types.ts:47](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/web3-wrapper/src/types.ts#L47)* +*Defined in [web3-wrapper/src/types.ts:47](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/web3-wrapper/src/types.ts#L47)* ___ @@ -4915,7 +4919,7 @@ ___ • **transactionIndex**: *string* -*Defined in [web3-wrapper/src/types.ts:48](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/web3-wrapper/src/types.ts#L48)* +*Defined in [web3-wrapper/src/types.ts:48](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/web3-wrapper/src/types.ts#L48)*
@@ -4928,7 +4932,7 @@ ___ • **blockHash**: *string | null* -*Defined in [web3-wrapper/src/types.ts:33](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/web3-wrapper/src/types.ts#L33)* +*Defined in [web3-wrapper/src/types.ts:33](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/web3-wrapper/src/types.ts#L33)* ___ @@ -4936,7 +4940,7 @@ ___ • **blockNumber**: *string | null* -*Defined in [web3-wrapper/src/types.ts:34](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/web3-wrapper/src/types.ts#L34)* +*Defined in [web3-wrapper/src/types.ts:34](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/web3-wrapper/src/types.ts#L34)* ___ @@ -4944,7 +4948,7 @@ ___ • **from**: *string* -*Defined in [web3-wrapper/src/types.ts:36](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/web3-wrapper/src/types.ts#L36)* +*Defined in [web3-wrapper/src/types.ts:36](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/web3-wrapper/src/types.ts#L36)* ___ @@ -4952,7 +4956,7 @@ ___ • **gas**: *string* -*Defined in [web3-wrapper/src/types.ts:40](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/web3-wrapper/src/types.ts#L40)* +*Defined in [web3-wrapper/src/types.ts:40](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/web3-wrapper/src/types.ts#L40)* ___ @@ -4960,7 +4964,7 @@ ___ • **gasPrice**: *string* -*Defined in [web3-wrapper/src/types.ts:39](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/web3-wrapper/src/types.ts#L39)* +*Defined in [web3-wrapper/src/types.ts:39](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/web3-wrapper/src/types.ts#L39)* ___ @@ -4968,7 +4972,7 @@ ___ • **hash**: *string* -*Defined in [web3-wrapper/src/types.ts:31](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/web3-wrapper/src/types.ts#L31)* +*Defined in [web3-wrapper/src/types.ts:31](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/web3-wrapper/src/types.ts#L31)* ___ @@ -4976,7 +4980,7 @@ ___ • **input**: *string* -*Defined in [web3-wrapper/src/types.ts:41](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/web3-wrapper/src/types.ts#L41)* +*Defined in [web3-wrapper/src/types.ts:41](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/web3-wrapper/src/types.ts#L41)* ___ @@ -4984,7 +4988,7 @@ ___ • **nonce**: *string* -*Defined in [web3-wrapper/src/types.ts:32](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/web3-wrapper/src/types.ts#L32)* +*Defined in [web3-wrapper/src/types.ts:32](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/web3-wrapper/src/types.ts#L32)* ___ @@ -4992,7 +4996,7 @@ ___ • **to**: *string | null* -*Defined in [web3-wrapper/src/types.ts:37](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/web3-wrapper/src/types.ts#L37)* +*Defined in [web3-wrapper/src/types.ts:37](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/web3-wrapper/src/types.ts#L37)* ___ @@ -5000,7 +5004,7 @@ ___ • **transactionIndex**: *string | null* -*Defined in [web3-wrapper/src/types.ts:35](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/web3-wrapper/src/types.ts#L35)* +*Defined in [web3-wrapper/src/types.ts:35](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/web3-wrapper/src/types.ts#L35)* ___ @@ -5008,7 +5012,7 @@ ___ • **value**: *string* -*Defined in [web3-wrapper/src/types.ts:38](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/web3-wrapper/src/types.ts#L38)* +*Defined in [web3-wrapper/src/types.ts:38](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/web3-wrapper/src/types.ts#L38)*
@@ -5023,7 +5027,7 @@ ___ *Inherited from [CallTxDataBaseRPC](#interface-calltxdatabaserpc).[data](#optional-data)* -*Defined in [web3-wrapper/src/types.ts:76](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/web3-wrapper/src/types.ts#L76)* +*Defined in [web3-wrapper/src/types.ts:76](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/web3-wrapper/src/types.ts#L76)* ___ @@ -5031,7 +5035,7 @@ ___ • **from**: *string* -*Defined in [web3-wrapper/src/types.ts:81](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/web3-wrapper/src/types.ts#L81)* +*Defined in [web3-wrapper/src/types.ts:81](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/web3-wrapper/src/types.ts#L81)* ___ @@ -5041,7 +5045,7 @@ ___ *Inherited from [CallTxDataBaseRPC](#interface-calltxdatabaserpc).[gas](#optional-gas)* -*Defined in [web3-wrapper/src/types.ts:74](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/web3-wrapper/src/types.ts#L74)* +*Defined in [web3-wrapper/src/types.ts:74](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/web3-wrapper/src/types.ts#L74)* ___ @@ -5051,7 +5055,7 @@ ___ *Inherited from [CallTxDataBaseRPC](#interface-calltxdatabaserpc).[gasPrice](#optional-gasprice)* -*Defined in [web3-wrapper/src/types.ts:75](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/web3-wrapper/src/types.ts#L75)* +*Defined in [web3-wrapper/src/types.ts:75](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/web3-wrapper/src/types.ts#L75)* ___ @@ -5061,7 +5065,7 @@ ___ *Inherited from [CallTxDataBaseRPC](#interface-calltxdatabaserpc).[nonce](#optional-nonce)* -*Defined in [web3-wrapper/src/types.ts:77](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/web3-wrapper/src/types.ts#L77)* +*Defined in [web3-wrapper/src/types.ts:77](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/web3-wrapper/src/types.ts#L77)* ___ @@ -5071,7 +5075,7 @@ ___ *Inherited from [CallTxDataBaseRPC](#interface-calltxdatabaserpc).[to](#optional-to)* -*Defined in [web3-wrapper/src/types.ts:72](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/web3-wrapper/src/types.ts#L72)* +*Defined in [web3-wrapper/src/types.ts:72](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/web3-wrapper/src/types.ts#L72)* ___ @@ -5081,7 +5085,20 @@ ___ *Inherited from [CallTxDataBaseRPC](#interface-calltxdatabaserpc).[value](#optional-value)* -*Defined in [web3-wrapper/src/types.ts:73](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/web3-wrapper/src/types.ts#L73)* +*Defined in [web3-wrapper/src/types.ts:73](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/web3-wrapper/src/types.ts#L73)* + +
+ + + + +## Type aliases + +### TransactionReceiptStatusRPC + +Ƭ **TransactionReceiptStatusRPC**: *null | string | `0` | `1`* + +*Defined in [web3-wrapper/src/types.ts:69](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/web3-wrapper/src/types.ts#L69)*
@@ -5094,7 +5111,7 @@ ___ Ƭ **AbiDefinition**: *[FunctionAbi](_ethereum_types_src_index_.md#functionabi) | [EventAbi](#interface-eventabi) | [RevertErrorAbi](#interface-reverterrorabi)* -*Defined in [ethereum-types/src/index.ts:80](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L80)* +*Defined in [ethereum-types/src/index.ts:80](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L80)* ___ @@ -5102,7 +5119,7 @@ ___ Ƭ **BlockParam**: *[BlockParamLiteral](#enumeration-blockparamliteral) | number* -*Defined in [ethereum-types/src/index.ts:483](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L483)* +*Defined in [ethereum-types/src/index.ts:483](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L483)* ___ @@ -5110,7 +5127,7 @@ ___ Ƭ **ConstructorStateMutability**: *"nonpayable" | "payable"* -*Defined in [ethereum-types/src/index.ts:84](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L84)* +*Defined in [ethereum-types/src/index.ts:84](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L84)* ___ @@ -5120,7 +5137,7 @@ ___ Ƭ **ContractEventArg**: *any* -*Defined in [ethereum-types/src/index.ts:468](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L468)* +*Defined in [ethereum-types/src/index.ts:468](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L468)* ___ @@ -5130,7 +5147,7 @@ ___ Ƭ **EIP1193Event**: *"accountsChanged" | "networkChanged" | "close" | "connect" | "notification"* -*Defined in [ethereum-types/src/index.ts:70](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L70)* +*Defined in [ethereum-types/src/index.ts:70](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L70)* Interface for providers that conform to EIP 1193 Source: https://github.com/ethereum/EIPs/blob/master/EIPS/eip-1193.md @@ -5145,7 +5162,7 @@ ___ Ƭ **FunctionAbi**: *[MethodAbi](#interface-methodabi) | [ConstructorAbi](#interface-constructorabi) | [FallbackAbi](#interface-fallbackabi)* -*Defined in [ethereum-types/src/index.ts:82](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L82)* +*Defined in [ethereum-types/src/index.ts:82](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L82)* ___ @@ -5153,7 +5170,7 @@ ___ Ƭ **JSONRPCErrorCallback**: *function* -*Defined in [ethereum-types/src/index.ts:3](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L3)* +*Defined in [ethereum-types/src/index.ts:3](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L3)* #### Type declaration: @@ -5172,7 +5189,7 @@ ___ Ƭ **LogTopic**: *null | string | string[]* -*Defined in [ethereum-types/src/index.ts:413](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L413)* +*Defined in [ethereum-types/src/index.ts:413](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L413)* ___ @@ -5184,7 +5201,7 @@ ___ Ƭ **RawLog**: *[LogEntry](#interface-logentry)* -*Defined in [ethereum-types/src/index.ts:475](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L475)* +*Defined in [ethereum-types/src/index.ts:475](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L475)* ___ @@ -5192,7 +5209,7 @@ ___ Ƭ **StateMutability**: *"pure" | "view" | [ConstructorStateMutability](#constructorstatemutability)* -*Defined in [ethereum-types/src/index.ts:85](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L85)* +*Defined in [ethereum-types/src/index.ts:85](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L85)* ___ @@ -5200,7 +5217,7 @@ ___ Ƭ **SupportedProvider**: *[Web3JsProvider](_ethereum_types_src_index_.md#web3jsprovider) | [GanacheProvider](#interface-ganacheprovider) | [EIP1193Provider](#interface-eip1193provider) | [ZeroExProvider](#interface-zeroexprovider)* -*Defined in [ethereum-types/src/index.ts:9](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L9)* +*Defined in [ethereum-types/src/index.ts:9](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L9)* Do not create your own provider. Use an existing provider from a Web3 or ProviderEngine library Read more about Providers in the guides section of the 0x docs. @@ -5211,7 +5228,7 @@ ___ Ƭ **TransactionReceiptStatus**: *null | string | `0` | `1`* -*Defined in [ethereum-types/src/index.ts:445](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L445)* +*Defined in [ethereum-types/src/index.ts:445](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L445)* ___ @@ -5221,7 +5238,7 @@ ___ Ƭ **Web3JsProvider**: *[Web3JsV1Provider](#interface-web3jsv1provider) | [Web3JsV2Provider](#interface-web3jsv2provider) | [Web3JsV3Provider](#interface-web3jsv3provider)* -*Defined in [ethereum-types/src/index.ts:11](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/ethereum-types/src/index.ts#L11)* +*Defined in [ethereum-types/src/index.ts:11](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/ethereum-types/src/index.ts#L11)*
@@ -5238,7 +5255,7 @@ ___ #### ▪ **marshaller**: *object* -*Defined in [web3-wrapper/src/marshaller.ts:33](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/web3-wrapper/src/marshaller.ts#L33)* +*Defined in [web3-wrapper/src/marshaller.ts:33](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/web3-wrapper/src/marshaller.ts#L33)* Utils to convert ethereum structures from user-space format to RPC format. (marshall/unmarshall) @@ -5246,7 +5263,7 @@ Utils to convert ethereum structures from user-space format to RPC format. (mars ▸ **_marshalCallTxDataBase**(`callTxDataBase`: `Partial`): *`Partial`* -*Defined in [web3-wrapper/src/marshaller.ts:208](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/web3-wrapper/src/marshaller.ts#L208)* +*Defined in [web3-wrapper/src/marshaller.ts:208](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/web3-wrapper/src/marshaller.ts#L208)* **Parameters:** @@ -5260,7 +5277,7 @@ Name | Type | ▸ **marshalAddress**(`address`: string): *string* -*Defined in [web3-wrapper/src/marshaller.ts:176](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/web3-wrapper/src/marshaller.ts#L176)* +*Defined in [web3-wrapper/src/marshaller.ts:176](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/web3-wrapper/src/marshaller.ts#L176)* Marshall address @@ -5278,7 +5295,7 @@ marshalled address ▸ **marshalBlockParam**(`blockParam`: [BlockParam](#blockparam) | string | number | undefined): *string | undefined* -*Defined in [web3-wrapper/src/marshaller.ts:187](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/web3-wrapper/src/marshaller.ts#L187)* +*Defined in [web3-wrapper/src/marshaller.ts:187](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/web3-wrapper/src/marshaller.ts#L187)* Marshall block param @@ -5296,7 +5313,7 @@ marshalled block param ▸ **marshalCallData**(`callData`: `Partial`): *`Partial`* -*Defined in [web3-wrapper/src/marshaller.ts:159](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/web3-wrapper/src/marshaller.ts#L159)* +*Defined in [web3-wrapper/src/marshaller.ts:159](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/web3-wrapper/src/marshaller.ts#L159)* Marshall call data @@ -5314,7 +5331,7 @@ marshalled call data ▸ **marshalTxData**(`txData`: `Partial`): *`Partial`* -*Defined in [web3-wrapper/src/marshaller.ts:133](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/web3-wrapper/src/marshaller.ts#L133)* +*Defined in [web3-wrapper/src/marshaller.ts:133](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/web3-wrapper/src/marshaller.ts#L133)* Marshall transaction data @@ -5332,7 +5349,7 @@ marshalled transaction data ▸ **unmarshalIntoBlockWithTransactionData**(`blockWithHexValues`: [BlockWithTransactionDataRPC](#interface-blockwithtransactiondatarpc)): *`BlockWithTransactionData`* -*Defined in [web3-wrapper/src/marshaller.ts:59](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/web3-wrapper/src/marshaller.ts#L59)* +*Defined in [web3-wrapper/src/marshaller.ts:59](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/web3-wrapper/src/marshaller.ts#L59)* Unmarshall block with transaction data @@ -5350,7 +5367,7 @@ unmarshalled block with transaction data ▸ **unmarshalIntoBlockWithoutTransactionData**(`blockWithHexValues`: [BlockWithoutTransactionDataRPC](#interface-blockwithouttransactiondatarpc)): *`BlockWithoutTransactionData`* -*Defined in [web3-wrapper/src/marshaller.ts:39](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/web3-wrapper/src/marshaller.ts#L39)* +*Defined in [web3-wrapper/src/marshaller.ts:39](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/web3-wrapper/src/marshaller.ts#L39)* Unmarshall block without transaction data @@ -5368,7 +5385,7 @@ unmarshalled block without transaction data ▸ **unmarshalLog**(`rawLog`: `RawLogEntry`): *`LogEntry`* -*Defined in [web3-wrapper/src/marshaller.ts:199](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/web3-wrapper/src/marshaller.ts#L199)* +*Defined in [web3-wrapper/src/marshaller.ts:199](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/web3-wrapper/src/marshaller.ts#L199)* Unmarshall log @@ -5386,7 +5403,7 @@ unmarshalled log ▸ **unmarshalTransaction**(`txRpc`: [TransactionRPC](#interface-transactionrpc)): *`Transaction`* -*Defined in [web3-wrapper/src/marshaller.ts:82](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/web3-wrapper/src/marshaller.ts#L82)* +*Defined in [web3-wrapper/src/marshaller.ts:82](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/web3-wrapper/src/marshaller.ts#L82)* Unmarshall transaction @@ -5404,7 +5421,7 @@ unmarshalled transaction ▸ **unmarshalTransactionReceipt**(`txReceiptRpc`: [TransactionReceiptRPC](#interface-transactionreceiptrpc)): *`TransactionReceipt`* -*Defined in [web3-wrapper/src/marshaller.ts:99](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/web3-wrapper/src/marshaller.ts#L99)* +*Defined in [web3-wrapper/src/marshaller.ts:99](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/web3-wrapper/src/marshaller.ts#L99)* Unmarshall transaction receipt @@ -5422,7 +5439,7 @@ unmarshalled transaction receipt ▸ **unmarshalTxData**(`txDataRpc`: [TxDataRPC](#interface-txdatarpc)): *`TxData`* -*Defined in [web3-wrapper/src/marshaller.ts:115](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/web3-wrapper/src/marshaller.ts#L115)* +*Defined in [web3-wrapper/src/marshaller.ts:115](https://github.com/0xProject/0x-monorepo/blob/c61ada8a1/packages/web3-wrapper/src/marshaller.ts#L115)* Unmarshall transaction data @@ -5438,20 +5455,3 @@ unmarshalled transaction data
- - - -## Type aliases - -#### TransactionReceiptStatusRPC - -Ƭ **TransactionReceiptStatusRPC**: *null | string | `0` | `1`* - -*Defined in [web3-wrapper/src/types.ts:69](https://github.com/0xProject/0x-monorepo/blob/9fe6c196a/packages/web3-wrapper/src/types.ts#L69)* - -
- - - -
- diff --git a/packages/web3-wrapper/package.json b/packages/web3-wrapper/package.json index 524ed4ed05..8c88677cb1 100644 --- a/packages/web3-wrapper/package.json +++ b/packages/web3-wrapper/package.json @@ -1,6 +1,6 @@ { "name": "@0x/web3-wrapper", - "version": "6.1.0-beta.0", + "version": "6.1.0-beta.1", "engines": { "node": ">=6.12" }, @@ -41,7 +41,7 @@ "homepage": "https://github.com/0xProject/0x-monorepo/packages/web3-wrapper/README.md", "devDependencies": { "@0x/ts-doc-gen": "^0.0.22", - "@0x/tslint-config": "^3.0.1", + "@0x/tslint-config": "^3.1.0-beta.1", "@types/lodash": "4.14.104", "@types/mocha": "^5.2.7", "chai": "^4.0.1", @@ -59,11 +59,11 @@ "typescript": "3.0.1" }, "dependencies": { - "@0x/assert": "^2.2.0-beta.0", - "@0x/json-schemas": "^4.1.0-beta.0", - "@0x/typescript-typings": "^4.4.0-beta.0", - "@0x/utils": "^4.6.0-beta.0", - "ethereum-types": "^2.2.0-beta.0", + "@0x/assert": "^2.2.0-beta.1", + "@0x/json-schemas": "^4.1.0-beta.1", + "@0x/typescript-typings": "^4.4.0-beta.1", + "@0x/utils": "^4.6.0-beta.1", + "ethereum-types": "^2.2.0-beta.1", "ethereumjs-util": "^5.1.1", "ethers": "~4.0.4", "lodash": "^4.17.11" diff --git a/python-packages/contract_wrappers/setup.py b/python-packages/contract_wrappers/setup.py index 301fb6f514..6442036d1b 100755 --- a/python-packages/contract_wrappers/setup.py +++ b/python-packages/contract_wrappers/setup.py @@ -30,7 +30,6 @@ "erc20_token", "erc721_proxy", "erc721_token", - "eth_balance_checker", "exchange", "forwarder", "i_asset_proxy", diff --git a/python-packages/contract_wrappers/src/index.rst b/python-packages/contract_wrappers/src/index.rst index 7a20f701e2..005b33981d 100644 --- a/python-packages/contract_wrappers/src/index.rst +++ b/python-packages/contract_wrappers/src/index.rst @@ -97,14 +97,6 @@ zero_ex.contract_wrappers.erc721_token :special-members: -zero_ex.contract_wrappers.eth_balance_checker -============================================= - -.. automodule:: zero_ex.contract_wrappers.eth_balance_checker - :members: - :special-members: - - zero_ex.contract_wrappers.exchange ================================== diff --git a/python-packages/contract_wrappers/src/zero_ex/contract_wrappers/eth_balance_checker/.gitkeep b/python-packages/contract_wrappers/src/zero_ex/contract_wrappers/eth_balance_checker/.gitkeep deleted file mode 100644 index e69de29bb2..0000000000 diff --git a/python-packages/sra_client/src/zero_ex/sra_client/__init__.py b/python-packages/sra_client/src/zero_ex/sra_client/__init__.py index 89ae2443aa..ab30fed4c1 100644 --- a/python-packages/sra_client/src/zero_ex/sra_client/__init__.py +++ b/python-packages/sra_client/src/zero_ex/sra_client/__init__.py @@ -38,9 +38,24 @@ docker run -d -p 8545:8545 0xorg/ganache-cli + docker run -d -p 60557:60557 --network host \ + -e ETHEREUM_RPC_URL=http://localhost:8545 \ + -e ETHEREUM_NETWORK_ID=50 \ + -e ETHEREUM_CHAIN_ID=1337 \ + -e USE_BOOTSTRAP_LIST=false \ + -e VERBOSITY=3 \ + -e PRIVATE_KEY_PATH= \ + -e BLOCK_POLLING_INTERVAL=5s \ + -e P2P_LISTEN_PORT=60557 + 0xorg/mesh:6.0.0-beta-0xv3 + docker run -d --network host \ -e RPC_URL=http://localhost:8545 \ - -e NETWORK_ID=50 \ + -e CHAIN_ID=1337 \ + -e FEE_RECIPIENT=0x0000000000000000000000000000000000000001 \ + -e MAKER_FEE_UNIT_AMOUNT=0 \ + -e TAKER_FEE_UNIT_AMOUNT=0 + -e MESH_ENDPOINT=ws://localhost:60557 -e WHITELIST_ALL_TOKENS=True \ 0xorg/launch-kit-ci @@ -69,11 +84,6 @@ >>> from web3 import HTTPProvider, Web3 >>> eth_node = HTTPProvider("http://localhost:8545") -What chain are we on? - ->>> from zero_ex.contract_addresses import ChainId ->>> chain_id = ChainId.GANACHE # you might use .MAINNET or .KOVAN - For our Maker role, we'll just use the first address available in the node: >>> maker_address = Web3(eth_node).eth.accounts[0] @@ -83,8 +93,8 @@ Before such an order can be valid, though, the maker must give the 0x contracts permission to trade their ZRX tokens: ->>> from zero_ex.contract_addresses import chain_to_addresses ->>> contract_addresses = chain_to_addresses(chain_id) +>>> from zero_ex.contract_addresses import chain_to_addresses, ChainId +>>> contract_addresses = chain_to_addresses(ChainId(Web3(eth_node).eth.chainId)) >>> >>> from zero_ex.contract_artifacts import abi_by_name >>> zrx_token_contract = Web3(eth_node).eth.contract( @@ -141,7 +151,6 @@ ... order, contract_addresses.exchange, Web3(eth_node).eth.chainId ... ) >>> relayer.post_order_with_http_info( -... chain_id=chain_id.value, ... signed_order_schema=order_to_jsdict( ... order=order, ... exchange_address=contract_addresses.exchange, @@ -168,7 +177,7 @@ >>> relayer.get_order("0x" + order_hash_hex) {'meta_data': {'orderHash': '0x...', 'remainingFillableTakerAssetAmount': '2'}, - 'order': {'chainId': 50, + 'order': {'chainId': 1337, 'exchangeAddress': '0x...', 'expirationTimeSeconds': '...', 'feeRecipientAddress': '0x0000000000000000000000000000000000000000', @@ -195,7 +204,7 @@ >>> relayer.get_orders() {'records': [{'meta_data': {'orderHash': '0x...', 'remainingFillableTakerAssetAmount': '2'}, - 'order': {'chainId': 50, + 'order': {'chainId': 1337, 'exchangeAddress': '0x...', 'expirationTimeSeconds': '...', 'feeRecipientAddress': '0x0000000000000000000000000000000000000000', @@ -255,7 +264,7 @@ {'asks': {'records': [...]}, 'bids': {'records': [{'meta_data': {'orderHash': '0x...', 'remainingFillableTakerAssetAmount': '2'}, - 'order': {'chainId': 50, + 'order': {'chainId': 1337, 'exchangeAddress': '0x...', 'expirationTimeSeconds': '...', 'feeRecipientAddress': '0x0000000000000000000000000000000000000000', @@ -280,7 +289,7 @@ >>> order = jsdict_to_order(orderbook.bids.records[0].order) >>> from pprint import pprint >>> pprint(order) -{'chainId': 50, +{'chainId': 1337, 'expirationTimeSeconds': ..., 'feeRecipientAddress': '0x0000000000000000000000000000000000000000', 'makerAddress': '0x...', diff --git a/python-packages/sra_client/src/zero_ex/sra_client/api/default_api.py b/python-packages/sra_client/src/zero_ex/sra_client/api/default_api.py index 9fe92406f5..f6457ff702 100644 --- a/python-packages/sra_client/src/zero_ex/sra_client/api/default_api.py +++ b/python-packages/sra_client/src/zero_ex/sra_client/api/default_api.py @@ -42,7 +42,6 @@ def get_asset_pairs(self, **kwargs): :param bool async_req: Whether request should be asynchronous. :param str asset_data_a: The assetData value for the first asset in the pair. :param str asset_data_b: The assetData value for the second asset in the pair. - :param int chain_id: The id of the Ethereum chain :param int page: The number of the page to request in the collection. :param int per_page: The number of records to return per page. @@ -71,7 +70,6 @@ def get_asset_pairs_with_http_info(self, **kwargs): :param bool async_req: Whether request should be asynchronous. :param str asset_data_a: The assetData value for the first asset in the pair. :param str asset_data_b: The assetData value for the second asset in the pair. - :param int chain_id: The id of the Ethereum chain :param int page: The number of the page to request in the collection. :param int per_page: The number of records to return per page. @@ -86,7 +84,6 @@ def get_asset_pairs_with_http_info(self, **kwargs): all_params = [ "asset_data_a", "asset_data_b", - "chain_id", "page", "per_page", ] @@ -117,8 +114,6 @@ def get_asset_pairs_with_http_info(self, **kwargs): query_params.append( ("assetDataB", local_var_params["asset_data_b"]) ) - if "chain_id" in local_var_params: - query_params.append(("chainId", local_var_params["chain_id"])) if "page" in local_var_params: query_params.append(("page", local_var_params["page"])) if "per_page" in local_var_params: @@ -170,7 +165,6 @@ def get_fee_recipients(self, **kwargs): >>> result = thread.get() # doctest: +SKIP :param bool async_req: Whether request should be asynchronous. - :param int chain_id: The id of the Ethereum chain :param int page: The number of the page to request in the collection. :param int per_page: The number of records to return per page. @@ -196,7 +190,6 @@ def get_fee_recipients_with_http_info(self, **kwargs): >>> result = thread.get() # doctest: +SKIP :param bool async_req: Whether request should be asynchronous. - :param int chain_id: The id of the Ethereum chain :param int page: The number of the page to request in the collection. :param int per_page: The number of records to return per page. @@ -208,7 +201,7 @@ def get_fee_recipients_with_http_info(self, **kwargs): local_var_params = locals() - all_params = ["chain_id", "page", "per_page"] + all_params = ["page", "per_page"] all_params.append("async_req") all_params.append("_return_http_data_only") all_params.append("_preload_content") @@ -228,8 +221,6 @@ def get_fee_recipients_with_http_info(self, **kwargs): path_params = {} query_params = [] - if "chain_id" in local_var_params: - query_params.append(("chainId", local_var_params["chain_id"])) if "page" in local_var_params: query_params.append(("page", local_var_params["page"])) if "per_page" in local_var_params: @@ -281,7 +272,6 @@ def get_order(self, order_hash, **kwargs): :param bool async_req: Whether request should be asynchronous. :param str order_hash: The hash of the desired 0x order. (required) - :param int chain_id: The id of the Ethereum chain :return: :class:`RelayerApiOrderSchema`. If the method is called asynchronously, returns the request thread. @@ -305,7 +295,6 @@ def get_order_with_http_info(self, order_hash, **kwargs): :param bool async_req: Whether request should be asynchronous. :param str order_hash: The hash of the desired 0x order. (required) - :param int chain_id: The id of the Ethereum chain :return: A tuple consisting of a :class:`RelayerApiOrderSchema`, an HTTP status code integer, and a @@ -315,7 +304,7 @@ def get_order_with_http_info(self, order_hash, **kwargs): local_var_params = locals() - all_params = ["order_hash", "chain_id"] + all_params = ["order_hash"] all_params.append("async_req") all_params.append("_return_http_data_only") all_params.append("_preload_content") @@ -345,8 +334,6 @@ def get_order_with_http_info(self, order_hash, **kwargs): path_params["orderHash"] = local_var_params["order_hash"] query_params = [] - if "chain_id" in local_var_params: - query_params.append(("chainId", local_var_params["chain_id"])) header_params = {} @@ -401,7 +388,6 @@ def get_order_config(self, **kwargs): >>> result = thread.get() # doctest: +SKIP :param bool async_req: Whether request should be asynchronous. - :param int chain_id: The id of the Ethereum chain :param relayer_api_order_config_payload_schema: instance of :class:`RelayerApiOrderConfigPayloadSchema`. The fields of a 0x order the relayer may want to decide what configuration to send @@ -436,7 +422,6 @@ def get_order_config_with_http_info(self, **kwargs): >>> result = thread.get() # doctest: +SKIP :param bool async_req: Whether request should be asynchronous. - :param int chain_id: The id of the Ethereum chain :param relayer_api_order_config_payload_schema: instance of :class: `RelayerApiOrderConfigPayloadSchema`. The fields of a 0x order the relayer may want to decide what configuration to send @@ -450,7 +435,7 @@ def get_order_config_with_http_info(self, **kwargs): local_var_params = locals() - all_params = ["chain_id", "relayer_api_order_config_payload_schema"] + all_params = ["relayer_api_order_config_payload_schema"] all_params.append("async_req") all_params.append("_return_http_data_only") all_params.append("_preload_content") @@ -470,8 +455,6 @@ def get_order_config_with_http_info(self, **kwargs): path_params = {} query_params = [] - if "chain_id" in local_var_params: - query_params.append(("chainId", local_var_params["chain_id"])) header_params = {} @@ -545,7 +528,6 @@ def get_orderbook(self, base_asset_data, quote_asset_data, **kwargs): :param str quote_asset_data: assetData (makerAssetData or takerAssetData) designated as the quote currency in the currency pair calculation of price. (required) - :param int chain_id: The id of the Ethereum chain :param int page: The number of the page to request in the collection. :param int per_page: The number of records to return per page. @@ -594,7 +576,6 @@ def get_orderbook_with_http_info( :param str quote_asset_data: assetData (makerAssetData or takerAssetData) designated as the quote currency in the currency pair calculation of price. (required) - :param int chain_id: The id of the Ethereum chain :param int page: The number of the page to request in the collection. :param int per_page: The number of records to return per page. @@ -609,7 +590,6 @@ def get_orderbook_with_http_info( all_params = [ "base_asset_data", "quote_asset_data", - "chain_id", "page", "per_page", ] @@ -658,8 +638,6 @@ def get_orderbook_with_http_info( query_params.append( ("quoteAssetData", local_var_params["quote_asset_data"]) ) - if "chain_id" in local_var_params: - query_params.append(("chainId", local_var_params["chain_id"])) if "page" in local_var_params: query_params.append(("page", local_var_params["page"])) if "per_page" in local_var_params: @@ -760,7 +738,6 @@ def get_orders(self, **kwargs): `0x Protocol v3 Specification `__ - :param int chain_id: The id of the Ethereum chain :param int page: The number of the page to request in the collection. :param int per_page: The number of records to return per page. @@ -837,7 +814,6 @@ def get_orders_with_http_info(self, **kwargs): `0x Protocol v3 Specification `__ - :param int chain_id: The id of the Ethereum chain :param int page: The number of the page to request in the collection. :param int per_page: The number of records to return per page. @@ -863,7 +839,6 @@ def get_orders_with_http_info(self, **kwargs): "taker_address", "trader_address", "fee_recipient_address", - "chain_id", "page", "per_page", ] @@ -941,8 +916,6 @@ def get_orders_with_http_info(self, **kwargs): local_var_params["fee_recipient_address"], ) ) - if "chain_id" in local_var_params: - query_params.append(("chainId", local_var_params["chain_id"])) if "page" in local_var_params: query_params.append(("page", local_var_params["page"])) if "per_page" in local_var_params: @@ -993,7 +966,6 @@ def post_order(self, **kwargs): >>> result = thread.get() # doctest: +SKIP :param bool async_req: Whether request should be asynchronous. - :param int chain_id: The id of the Ethereum chain :param signed_order_schema: Instance of :class:`SignedOrderSchema`. A valid signed 0x order based on the schema. @@ -1018,7 +990,6 @@ def post_order_with_http_info(self, **kwargs): >>> result = thread.get() # doctest: +SKIP :param bool async_req: Whether request should be asynchronous. - :param int chain_id: The id of the Ethereum chain :param signed_order_schema: Instance of :class:`SignedOrderSchema` A valid signed 0x order based on the schema. @@ -1030,7 +1001,7 @@ def post_order_with_http_info(self, **kwargs): local_var_params = locals() - all_params = ["chain_id", "signed_order_schema"] + all_params = ["signed_order_schema"] all_params.append("async_req") all_params.append("_return_http_data_only") all_params.append("_preload_content") @@ -1050,8 +1021,6 @@ def post_order_with_http_info(self, **kwargs): path_params = {} query_params = [] - if "chain_id" in local_var_params: - query_params.append(("chainId", local_var_params["chain_id"])) header_params = {} diff --git a/python-packages/sra_client/src/zero_ex/sra_client/models/relayer_api_orders_channel_subscribe_payload_schema.py b/python-packages/sra_client/src/zero_ex/sra_client/models/relayer_api_orders_channel_subscribe_payload_schema.py index f7e1f5dbcc..cfb27fce40 100644 --- a/python-packages/sra_client/src/zero_ex/sra_client/models/relayer_api_orders_channel_subscribe_payload_schema.py +++ b/python-packages/sra_client/src/zero_ex/sra_client/models/relayer_api_orders_channel_subscribe_payload_schema.py @@ -24,7 +24,6 @@ class RelayerApiOrdersChannelSubscribePayloadSchema(object): openapi_types = { "maker_asset_proxy_id": "str", "taker_asset_proxy_id": "str", - "chain_id": "float", "maker_asset_address": "str", "taker_asset_address": "str", "maker_asset_data": "str", @@ -35,7 +34,6 @@ class RelayerApiOrdersChannelSubscribePayloadSchema(object): attribute_map = { "maker_asset_proxy_id": "makerAssetProxyId", "taker_asset_proxy_id": "takerAssetProxyId", - "chain_id": "chainId", "maker_asset_address": "makerAssetAddress", "taker_asset_address": "takerAssetAddress", "maker_asset_data": "makerAssetData", @@ -47,7 +45,6 @@ def __init__( self, maker_asset_proxy_id=None, taker_asset_proxy_id=None, - chain_id=None, maker_asset_address=None, taker_asset_address=None, maker_asset_data=None, @@ -58,7 +55,6 @@ def __init__( self._maker_asset_proxy_id = None self._taker_asset_proxy_id = None - self._chain_id = None self._maker_asset_address = None self._taker_asset_address = None self._maker_asset_data = None @@ -70,8 +66,6 @@ def __init__( self.maker_asset_proxy_id = maker_asset_proxy_id if taker_asset_proxy_id is not None: self.taker_asset_proxy_id = taker_asset_proxy_id - if chain_id is not None: - self.chain_id = chain_id if maker_asset_address is not None: self.maker_asset_address = maker_asset_address if taker_asset_address is not None: @@ -137,27 +131,6 @@ def taker_asset_proxy_id(self, taker_asset_proxy_id): self._taker_asset_proxy_id = taker_asset_proxy_id - @property - def chain_id(self): - """Gets the chain_id of this RelayerApiOrdersChannelSubscribePayloadSchema. # noqa: E501 - - - :return: The chain_id of this RelayerApiOrdersChannelSubscribePayloadSchema. # noqa: E501 - :rtype: float - """ - return self._chain_id - - @chain_id.setter - def chain_id(self, chain_id): - """Sets the chain_id of this RelayerApiOrdersChannelSubscribePayloadSchema. - - - :param chain_id: The chain_id of this RelayerApiOrdersChannelSubscribePayloadSchema. # noqa: E501 - :type: float - """ - - self._chain_id = chain_id - @property def maker_asset_address(self): """Gets the maker_asset_address of this RelayerApiOrdersChannelSubscribePayloadSchema. # noqa: E501 diff --git a/python-packages/sra_client/test/relayer/docker-compose.yml b/python-packages/sra_client/test/relayer/docker-compose.yml index e5b6657ab4..12353c3b34 100644 --- a/python-packages/sra_client/test/relayer/docker-compose.yml +++ b/python-packages/sra_client/test/relayer/docker-compose.yml @@ -35,7 +35,7 @@ services: - "3000:3000" network_mode: "host" # to connect to ganache environment: - - NETWORK_ID=50 + - CHAIN_ID=1337 - RPC_URL=http://localhost:8545 - WHITELIST_ALL_TOKENS=True - FEE_RECIPIENT=0x0000000000000000000000000000000000000001 diff --git a/tsconfig.json b/tsconfig.json index 400566c2d0..6161598f76 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -2,7 +2,7 @@ "compilerOptions": { "module": "commonjs", "target": "es5", - "lib": ["es2017", "dom"], + "lib": ["es2017", "dom", "esnext.asynciterable"], "experimentalDecorators": true, "downlevelIteration": true, "noImplicitReturns": true, @@ -60,7 +60,6 @@ { "path": "./packages/sol-resolver" }, { "path": "./packages/sra-spec" }, { "path": "./packages/subproviders" }, - { "path": "./packages/testnet-faucets" }, { "path": "./packages/tslint-config" }, { "path": "./packages/types" }, { "path": "./packages/typescript-typings" }, diff --git a/yarn.lock b/yarn.lock index 44eab8d016..c19b2e6331 100644 --- a/yarn.lock +++ b/yarn.lock @@ -646,7 +646,6 @@ "@0x/abi-gen-wrappers@^5.0.3", "@0x/abi-gen-wrappers@^5.3.2": version "5.3.2" resolved "https://registry.npmjs.org/@0x/abi-gen-wrappers/-/abi-gen-wrappers-5.3.2.tgz#bf7d1942f56916b7d13fae627f6455f309c5c8b5" - integrity sha512-zf5RDhdmPal06exhavdjpHknYxFJ9CJc6Fsc39Ju3hFhRUn57duQozKcFSwnpPHSqUq+gddZnRTfsSRfgpRplQ== dependencies: "@0x/base-contract" "^5.4.0" "@0x/contract-addresses" "^3.2.0" @@ -655,7 +654,6 @@ "@0x/assert@^2.1.0", "@0x/assert@^2.1.1", "@0x/assert@^2.1.2", "@0x/assert@^2.1.6": version "2.1.6" resolved "https://registry.npmjs.org/@0x/assert/-/assert-2.1.6.tgz#61c5854b555bca1f1f0503754f2fd0169bee0ef1" - integrity sha512-Gu8eBnFdEuIAH2GubWYOSVz/BIoRccKof68AziduYDHxh4nSPM6NUH52xtfUGk4nXljiOXU1XHZJhcjTObI+8Q== dependencies: "@0x/json-schemas" "^4.0.2" "@0x/typescript-typings" "^4.3.0" @@ -683,7 +681,6 @@ "@0x/base-contract@^5.4.0": version "5.4.0" resolved "https://registry.npmjs.org/@0x/base-contract/-/base-contract-5.4.0.tgz#466ea98af22d7e629a21a7d16211c825664e2a48" - integrity sha512-YYkv8NwoOFCPqYS4xHAhdhYzM9PrkS03E2L4EaTJmUGOwYkfoRkbzun26Ml1fh4co7NWCfYyBqq9gfeO+wYXrA== dependencies: "@0x/assert" "^2.1.6" "@0x/json-schemas" "^4.0.2" @@ -703,7 +700,6 @@ "@0x/connect@^5.0.13": version "5.0.19" resolved "https://registry.npmjs.org/@0x/connect/-/connect-5.0.19.tgz#569679af661ef84a4c34958388e1be7f1c250a04" - integrity sha512-XdqCxXOZfqr/WwkHseRgG+Wf9/zcfhPsUNhGZ8KUr5agFeXnUjAiS0vfV5gDThPSW/Juu0eaDT6LPapBHp+C3A== dependencies: "@0x/assert" "^2.1.6" "@0x/json-schemas" "^4.0.2" @@ -720,14 +716,12 @@ "@0x/contract-addresses@^3.0.1", "@0x/contract-addresses@^3.0.2", "@0x/contract-addresses@^3.2.0": version "3.2.0" resolved "https://registry.npmjs.org/@0x/contract-addresses/-/contract-addresses-3.2.0.tgz#606307696d9622764220a34e9d4638b899093eec" - integrity sha512-jCVEOgXPa3his4h2qm+O7tn9A2r8UJDgSzDhqhk+za237XxFc2No8TnnMP6qjew3l9ElNM1L+exZHxSd06xB/w== dependencies: lodash "^4.17.11" "@0x/contract-artifacts@^2.0.2", "@0x/contract-artifacts@^2.2.2": version "2.2.2" resolved "https://registry.npmjs.org/@0x/contract-artifacts/-/contract-artifacts-2.2.2.tgz#e6d771afb58d0b59c19c5364af5a42a3dfd17219" - integrity sha512-sbFnSXE6PlmYsbPXpKtEOR3YdVlSn63HhbPgQB3J5jm27wwQtnZ2Lf21I7BdiRBsHwwbf75C/s2pjNqafaRrgQ== "@0x/contract-wrappers@^9.1.6", "@0x/contract-wrappers@^9.1.7": version "9.1.8" @@ -756,7 +750,6 @@ "@0x/contracts-erc20@^2.2.7": version "2.2.14" resolved "https://registry.npmjs.org/@0x/contracts-erc20/-/contracts-erc20-2.2.14.tgz#bac2528a590c0f9668811cfd23948a941ae0ad30" - integrity sha512-zGCg0Yhu/0ZMnjfEZ4ho+VWv/f0sCUQa8xHz36owB3+vnBhzz2o3+vFCctdVVR33SVe2QSgS4A97iJ2M0UsH0g== dependencies: "@0x/base-contract" "^5.4.0" "@0x/contracts-utils" "^3.2.4" @@ -770,7 +763,6 @@ "@0x/contracts-utils@^3.2.4": version "3.2.4" resolved "https://registry.npmjs.org/@0x/contracts-utils/-/contracts-utils-3.2.4.tgz#b5ae80684ac0542eb59925f52113ce2c8b1bdb2b" - integrity sha512-Jk3Ntdt4SUNaHua49ZBty9hMv3gwUJN5US9OLxotbrJSmqdMpZ47FD4MzQ8ORLNcnMRbtyecQabq6pJbezu2jw== dependencies: "@0x/base-contract" "^5.4.0" "@0x/order-utils" "^8.4.0" @@ -815,7 +807,6 @@ "@0x/dev-utils@^2.2.6": version "2.3.3" resolved "https://registry.npmjs.org/@0x/dev-utils/-/dev-utils-2.3.3.tgz#9b6df00fea357fa6da02b35ca93fc89d100e1992" - integrity sha512-Pi664W/jj1U6WU+kHEPyKpflBnmKRsclB69RaL7wpnvOOFjAPhFV2/0FvIZ25w62rMzKEpfD1/1NcZ7NjAk7OQ== dependencies: "@0x/subproviders" "^5.0.4" "@0x/types" "^2.4.3" @@ -839,7 +830,6 @@ "@0x/json-schemas@^4.0.2": version "4.0.2" resolved "https://registry.npmjs.org/@0x/json-schemas/-/json-schemas-4.0.2.tgz#6f7c1dcde04d3acc3e8ca2f24177b9705c10e772" - integrity sha512-JHOwESZeWKAzT5Z42ZNvOvQUQ5vuRIFQWS0FNjYwV8Cv4/dRlLHd7kwxxsvlm9NxgXnOW0ddEDBbVGxhVSYNIg== dependencies: "@0x/typescript-typings" "^4.3.0" "@types/node" "*" @@ -863,7 +853,6 @@ "@0x/order-utils@^8.2.1", "@0x/order-utils@^8.2.2", "@0x/order-utils@^8.2.3", "@0x/order-utils@^8.2.4", "@0x/order-utils@^8.4.0": version "8.4.0" resolved "https://registry.npmjs.org/@0x/order-utils/-/order-utils-8.4.0.tgz#f7fe9c73f9fd82ab05ec3c04951049e904aab46a" - integrity sha512-EQh/YpfSKZSbfxetgN6RQmYuc2EpbpWF4f6WUAzm/JjXkCNAK429cMgofVr6Zy4U9ldj89zcODsnK6y6gnNIZQ== dependencies: "@0x/abi-gen-wrappers" "^5.3.2" "@0x/assert" "^2.1.6" @@ -915,7 +904,6 @@ "@0x/subproviders@^5.0.4": version "5.0.4" resolved "https://registry.npmjs.org/@0x/subproviders/-/subproviders-5.0.4.tgz#e4b165634ef6a50c4bd41baacf0dbd2a9390c2f8" - integrity sha512-1LiGcOXkP5eUOl/0JRqkrqYtCvIL4NJj1GbbLIRq4TvkfqrRbF7zJM2SaayxPo3Z48zVsqk0ZE5+RrNAdK/Rrg== dependencies: "@0x/assert" "^2.1.6" "@0x/types" "^2.4.3" @@ -956,7 +944,6 @@ "@0x/types@^2.4.0", "@0x/types@^2.4.1", "@0x/types@^2.4.3": version "2.4.3" resolved "https://registry.npmjs.org/@0x/types/-/types-2.4.3.tgz#ea014889789e9013fdf48ce97b79f2c016e10fb3" - integrity sha512-3z4ca9fb9pyTu9lJhTSll5EuEthkA3tLAayyZixCoCnwi4ok6PJ83PnMMsSxlRY2iXr7QGbrQr6nU64YWk2WjA== dependencies: "@types/node" "*" bignumber.js "~8.0.2" @@ -965,7 +952,6 @@ "@0x/typescript-typings@^4.2.2", "@0x/typescript-typings@^4.2.3", "@0x/typescript-typings@^4.2.4", "@0x/typescript-typings@^4.3.0": version "4.3.0" resolved "https://registry.npmjs.org/@0x/typescript-typings/-/typescript-typings-4.3.0.tgz#4813a996ac5101841d1c22f4aa1738ab56168857" - integrity sha512-6IH2JyKyl33+40tJ5rEhaMPTS2mVuRvoNmoXlCd/F0GPYSsDHMGObIXOkx+Qsw5SyCmqNs/3CTLeeCCqiSUdaw== dependencies: "@types/bn.js" "^4.11.0" "@types/react" "*" @@ -976,7 +962,6 @@ "@0x/utils@^4.3.3", "@0x/utils@^4.4.0", "@0x/utils@^4.4.1", "@0x/utils@^4.4.2", "@0x/utils@^4.5.2": version "4.5.2" resolved "https://registry.npmjs.org/@0x/utils/-/utils-4.5.2.tgz#6cc89f2d0dda341e0fb4e76049a35abfb67a4ac5" - integrity sha512-NWfNcvyiOhouk662AWxX0ZVe4ednBZJS9WZT/by3DBCY/WvN7WHMpEy9M5rBCxO+JJndLYeB5eBztDp7W+Ytkw== dependencies: "@0x/types" "^2.4.3" "@0x/typescript-typings" "^4.3.0" @@ -1011,7 +996,6 @@ "@0x/web3-wrapper@^6.0.13", "@0x/web3-wrapper@^6.0.7", "@0x/web3-wrapper@^6.0.8": version "6.0.13" resolved "https://registry.npmjs.org/@0x/web3-wrapper/-/web3-wrapper-6.0.13.tgz#2e666221bd44ceebe02762028214d4aa41ad7247" - integrity sha512-LQjKBCCNdkJuhcJld+/sy+G0+sJu5qp9VDNNwJGLDxWIJpgoshhUpBPi7vUnZ79UY4SYuNcC4yM9yI61cs7ZiA== dependencies: "@0x/assert" "^2.1.6" "@0x/json-schemas" "^4.0.2" @@ -1028,6 +1012,10 @@ dependencies: npm-registry-client "7.0.9" +"@azure/core-asynciterator-polyfill@^1.0.0": + version "1.0.0" + resolved "https://registry.yarnpkg.com/@azure/core-asynciterator-polyfill/-/core-asynciterator-polyfill-1.0.0.tgz#dcccebb88406e5c76e0e1d52e8cc4c43a68b3ee7" + "@babel/code-frame@^7.0.0", "@babel/code-frame@^7.0.0-beta.35": version "7.0.0" resolved "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.0.0.tgz#06e2ab19bdb535385559aabb5ba59729482800f8" @@ -1401,6 +1389,14 @@ "@types/istanbul-reports" "^1.1.1" "@types/yargs" "^12.0.9" +"@jest/types@^24.9.0": + version "24.9.0" + resolved "https://registry.yarnpkg.com/@jest/types/-/types-24.9.0.tgz#63cb26cb7500d069e5a389441a7c6ab5e909fc59" + dependencies: + "@types/istanbul-lib-coverage" "^2.0.0" + "@types/istanbul-reports" "^1.1.1" + "@types/yargs" "^13.0.0" + "@ledgerhq/hw-app-eth@^4.3.0": version "4.7.3" resolved "https://registry.yarnpkg.com/@ledgerhq/hw-app-eth/-/hw-app-eth-4.7.3.tgz#d352e19658ae296532e522c53c8ec2a1a77b64e5" @@ -2101,23 +2097,16 @@ dependencies: "@types/node" "*" -"@types/bn.js@^4.11.0": - version "4.11.0" - resolved "https://registry.yarnpkg.com/@types/bn.js/-/bn.js-4.11.0.tgz#401cb20874f0a7b8414e46308a99c449759b7de9" - dependencies: - "@types/node" "*" - -"@types/bn.js@^4.11.4": +"@types/bn.js@*", "@types/bn.js@^4.11.4": version "4.11.5" resolved "https://registry.yarnpkg.com/@types/bn.js/-/bn.js-4.11.5.tgz#40e36197433f78f807524ec623afcf0169ac81dc" dependencies: "@types/node" "*" -"@types/body-parser@*", "@types/body-parser@^1.16.1": - version "1.16.8" - resolved "https://registry.yarnpkg.com/@types/body-parser/-/body-parser-1.16.8.tgz#687ec34140624a3bec2b1a8ea9268478ae8f3be3" +"@types/bn.js@^4.11.0": + version "4.11.0" + resolved "https://registry.yarnpkg.com/@types/bn.js/-/bn.js-4.11.0.tgz#401cb20874f0a7b8414e46308a99c449759b7de9" dependencies: - "@types/express" "*" "@types/node" "*" "@types/cheerio@*": @@ -2157,31 +2146,17 @@ dependencies: bignumber.js "7.2.1" -"@types/ethereumjs-tx@^1.0.0": - version "1.0.0" - resolved "https://registry.yarnpkg.com/@types/ethereumjs-tx/-/ethereumjs-tx-1.0.0.tgz#ae2ce90a145cc1a6849656db38baf0e793ff7927" +"@types/ethereumjs-tx@^1.0.1": + version "1.0.1" + resolved "https://registry.yarnpkg.com/@types/ethereumjs-tx/-/ethereumjs-tx-1.0.1.tgz#31a46b858a51ec4395959b2ae37f5064a8688fbd" dependencies: + "@types/bn.js" "*" "@types/node" "*" "@types/events@*": version "1.2.0" resolved "https://registry.yarnpkg.com/@types/events/-/events-1.2.0.tgz#81a6731ce4df43619e5c8c945383b3e62a89ea86" -"@types/express-serve-static-core@*": - version "4.11.1" - resolved "https://registry.yarnpkg.com/@types/express-serve-static-core/-/express-serve-static-core-4.11.1.tgz#f6f7212382d59b19d696677bcaa48a37280f5d45" - dependencies: - "@types/events" "*" - "@types/node" "*" - -"@types/express@*", "@types/express@^4.0.35": - version "4.11.1" - resolved "https://registry.yarnpkg.com/@types/express/-/express-4.11.1.tgz#f99663b3ab32d04cb11db612ef5dd7933f75465b" - dependencies: - "@types/body-parser" "*" - "@types/express-serve-static-core" "*" - "@types/serve-static" "*" - "@types/fetch-mock@^6.0.3": version "6.0.3" resolved "https://registry.yarnpkg.com/@types/fetch-mock/-/fetch-mock-6.0.3.tgz#54ba90776293e728089bf53ba53e3c69f1c80655" @@ -2271,10 +2246,6 @@ version "1.5.3" resolved "https://registry.yarnpkg.com/@types/loglevel/-/loglevel-1.5.3.tgz#adfce55383edc5998a2170ad581b3e23d6adb5b8" -"@types/mime@*": - version "2.0.0" - resolved "https://registry.yarnpkg.com/@types/mime/-/mime-2.0.0.tgz#5a7306e367c539b9f6543499de8dd519fac37a8b" - "@types/minimatch@*", "@types/minimatch@3.0.3", "@types/minimatch@^3.0.3": version "3.0.3" resolved "https://registry.yarnpkg.com/@types/minimatch/-/minimatch-3.0.3.tgz#3dca0e3f33b200fc7d1139c0cd96c1268cadfd9d" @@ -2367,13 +2338,6 @@ version "5.5.0" resolved "https://registry.yarnpkg.com/@types/semver/-/semver-5.5.0.tgz#146c2a29ee7d3bae4bf2fcb274636e264c813c45" -"@types/serve-static@*": - version "1.13.1" - resolved "https://registry.yarnpkg.com/@types/serve-static/-/serve-static-1.13.1.tgz#1d2801fa635d274cd97d4ec07e26b21b44127492" - dependencies: - "@types/express-serve-static-core" "*" - "@types/mime" "*" - "@types/sinon@^2.2.2": version "2.3.7" resolved "https://registry.yarnpkg.com/@types/sinon/-/sinon-2.3.7.tgz#e92c2fed3297eae078d78d1da032b26788b4af86" @@ -2425,6 +2389,10 @@ "@types/events" "*" "@types/node" "*" +"@types/yargs-parser@*": + version "13.1.0" + resolved "https://registry.yarnpkg.com/@types/yargs-parser/-/yargs-parser-13.1.0.tgz#c563aa192f39350a1d18da36c5a8da382bbd8228" + "@types/yargs@^11.0.0": version "11.0.0" resolved "https://registry.yarnpkg.com/@types/yargs/-/yargs-11.0.0.tgz#124b9ed9c65b7091cc36da59ae12cbd47d8745ea" @@ -2433,6 +2401,12 @@ version "12.0.12" resolved "https://registry.yarnpkg.com/@types/yargs/-/yargs-12.0.12.tgz#45dd1d0638e8c8f153e87d296907659296873916" +"@types/yargs@^13.0.0": + version "13.0.3" + resolved "https://registry.yarnpkg.com/@types/yargs/-/yargs-13.0.3.tgz#76482af3981d4412d65371a318f992d33464a380" + dependencies: + "@types/yargs-parser" "*" + "@webassemblyjs/ast@1.7.8": version "1.7.8" resolved "https://registry.npmjs.org/@webassemblyjs/ast/-/ast-1.7.8.tgz#f31f480debeef957f01b623f27eabc695fa4fe8f" @@ -2985,7 +2959,7 @@ array-union@^1.0.1, array-union@^1.0.2: dependencies: array-uniq "^1.0.1" -array-uniq@^1.0.1, array-uniq@^1.0.2: +array-uniq@^1.0.1: version "1.0.3" resolved "https://registry.yarnpkg.com/array-uniq/-/array-uniq-1.0.3.tgz#af6ac877a25cc7f74e058894753858dfdb24fdb6" @@ -3921,10 +3895,6 @@ bcrypt-pbkdf@^1.0.0: dependencies: tweetnacl "^0.14.3" -beeper@^1.0.0: - version "1.1.1" - resolved "https://registry.yarnpkg.com/beeper/-/beeper-1.1.1.tgz#e6d5ea8c5dad001304a70b22638447f69cb2f809" - before-after-hook@^2.0.0: version "2.1.0" resolved "https://registry.yarnpkg.com/before-after-hook/-/before-after-hook-2.1.0.tgz#b6c03487f44e24200dd30ca5e6a1979c5d2fb635" @@ -4061,7 +4031,7 @@ bn.js@^2.0.3: version "2.2.0" resolved "https://registry.yarnpkg.com/bn.js/-/bn.js-2.2.0.tgz#12162bc2ae71fc40a5626c33438f3a875cd37625" -body-parser@1.18.2, body-parser@^1.16.0, body-parser@^1.17.1: +body-parser@1.18.2, body-parser@^1.16.0: version "1.18.2" resolved "https://registry.yarnpkg.com/body-parser/-/body-parser-1.18.2.tgz#87678a19d84b47d859b83199bd59bce222b10454" dependencies: @@ -4155,7 +4125,7 @@ boxen@^1.2.1: term-size "^1.2.0" widest-line "^2.0.0" -brace-expansion@^1.0.0, brace-expansion@^1.1.7: +brace-expansion@^1.1.7: version "1.1.11" resolved "https://registry.yarnpkg.com/brace-expansion/-/brace-expansion-1.1.11.tgz#3c7fcbf529d87226f3d2f52b966ff5271eb441dd" dependencies: @@ -4969,10 +4939,6 @@ clone-buffer@^1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/clone-buffer/-/clone-buffer-1.0.0.tgz#e3e25b207ac4e701af721e2cb5a16792cac3dc58" -clone-stats@^0.0.1: - version "0.0.1" - resolved "https://registry.yarnpkg.com/clone-stats/-/clone-stats-0.0.1.tgz#b88f94a82cf38b8791d58046ea4029ad88ca99d1" - clone-stats@^1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/clone-stats/-/clone-stats-1.0.0.tgz#b3782dff8bb5474e18b9b6bf0fdfe782f8777680" @@ -4981,11 +4947,7 @@ clone@2.1.2, clone@^2.0.0, clone@^2.1.1: version "2.1.2" resolved "https://registry.yarnpkg.com/clone/-/clone-2.1.2.tgz#1b7f4b9f591f1e8f83670401600345a02887435f" -clone@^0.2.0: - version "0.2.0" - resolved "https://registry.yarnpkg.com/clone/-/clone-0.2.0.tgz#c6126a90ad4f72dbf5acdb243cc37724fe93fc1f" - -clone@^1.0.0, clone@^1.0.2: +clone@^1.0.2: version "1.0.4" resolved "https://registry.yarnpkg.com/clone/-/clone-1.0.4.tgz#da309cc263df15994c688ca902179ca3c7cd7c7e" @@ -5705,10 +5667,6 @@ date-now@^0.1.4: version "0.1.4" resolved "https://registry.yarnpkg.com/date-now/-/date-now-0.1.4.tgz#eaf439fd4d4848ad74e5cc7dbef200672b9e345b" -dateformat@^2.0.0: - version "2.2.0" - resolved "https://registry.yarnpkg.com/dateformat/-/dateformat-2.2.0.tgz#4065e2013cf9fb916ddfd82efb506ad4c6769062" - dateformat@^3.0.0: version "3.0.3" resolved "https://registry.yarnpkg.com/dateformat/-/dateformat-3.0.3.tgz#a6e37499a4d9a9cf85ef5872044d62901c9889ae" @@ -5891,7 +5849,7 @@ default-resolution@^2.0.0: version "2.0.0" resolved "https://registry.yarnpkg.com/default-resolution/-/default-resolution-2.0.0.tgz#bcb82baa72ad79b426a76732f1a81ad6df26d684" -defaults@^1.0.0, defaults@^1.0.3: +defaults@^1.0.3: version "1.0.3" resolved "https://registry.yarnpkg.com/defaults/-/defaults-1.0.3.tgz#c656051e9817d9ff08ed881477f3fe4019f3ef7d" dependencies: @@ -6003,10 +5961,6 @@ deprecate@^1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/deprecate/-/deprecate-1.0.0.tgz#661490ed2428916a6c8883d8834e5646f4e4a4a8" -deprecated@^0.0.1: - version "0.0.1" - resolved "https://registry.yarnpkg.com/deprecated/-/deprecated-0.0.1.tgz#f9c9af5464afa1e7a971458a8bdef2aa94d5bb19" - deprecation@^2.0.0: version "2.3.1" resolved "https://registry.yarnpkg.com/deprecation/-/deprecation-2.3.1.tgz#6368cbdb40abf3373b525ac87e4a260c3a700919" @@ -6242,7 +6196,7 @@ drbg.js@^1.0.1: create-hash "^1.1.2" create-hmac "^1.1.4" -duplexer2@0.0.2, duplexer2@~0.0.2: +duplexer2@~0.0.2: version "0.0.2" resolved "https://registry.yarnpkg.com/duplexer2/-/duplexer2-0.0.2.tgz#c614dcf67e2fb14995a91711e5a617e8a60a31db" dependencies: @@ -6371,12 +6325,6 @@ end-of-stream@^1.0.0, end-of-stream@^1.1.0: dependencies: once "^1.4.0" -end-of-stream@~0.1.5: - version "0.1.5" - resolved "https://registry.yarnpkg.com/end-of-stream/-/end-of-stream-0.1.5.tgz#8e177206c3c80837d85632e8b9359dfe8b2f6eaf" - dependencies: - once "~1.3.0" - enhanced-resolve@^4.0.0: version "4.0.0" resolved "https://registry.yarnpkg.com/enhanced-resolve/-/enhanced-resolve-4.0.0.tgz#e34a6eaa790f62fccd71d93959f56b2b432db10a" @@ -6865,7 +6813,6 @@ ethereum-common@^0.0.18: ethereum-types@^2.1.3, ethereum-types@^2.1.4, ethereum-types@^2.1.6: version "2.1.6" resolved "https://registry.npmjs.org/ethereum-types/-/ethereum-types-2.1.6.tgz#57d9d515fad86ab987c0f6962c4203be37da8579" - integrity sha512-xaN5TxLvkdFCGjGfUQ5wV00GHzDHStozP1j+K/YdmUeQXVGiD15cogYPhBVWG3pQJM/aBjtYrpMrjywvKkNC4A== dependencies: "@types/node" "*" bignumber.js "~8.0.2" @@ -7397,7 +7344,7 @@ express-async-handler@^1.1.4: version "1.1.4" resolved "https://registry.yarnpkg.com/express-async-handler/-/express-async-handler-1.1.4.tgz#225a84908df63b35ae9df94b6f0f1af061266426" -express@^4.14.0, express@^4.15.2, express@^4.16.2: +express@^4.14.0, express@^4.16.2: version "4.16.3" resolved "https://registry.yarnpkg.com/express/-/express-4.16.3.tgz#6af8a502350db3246ecc4becf6b5a34d22f7ed53" dependencies: @@ -7548,14 +7495,6 @@ fake-merkle-patricia-tree@^1.0.1: dependencies: checkpoint-store "^1.1.0" -fancy-log@^1.1.0: - version "1.3.2" - resolved "https://registry.yarnpkg.com/fancy-log/-/fancy-log-1.3.2.tgz#f41125e3d84f2e7d89a43d06d958c8f78be16be1" - dependencies: - ansi-gray "^0.1.1" - color-support "^1.1.3" - time-stamp "^1.0.0" - fancy-log@^1.3.2: version "1.3.3" resolved "https://registry.yarnpkg.com/fancy-log/-/fancy-log-1.3.3.tgz#dbc19154f558690150a23953a0adbd035be45fc7" @@ -7769,20 +7708,16 @@ find-cache-dir@^2.0.0: pkg-dir "^3.0.0" find-cache-dir@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/find-cache-dir/-/find-cache-dir-3.0.0.tgz#cd4b7dd97b7185b7e17dbfe2d6e4115ee3eeb8fc" + version "3.1.0" + resolved "https://registry.yarnpkg.com/find-cache-dir/-/find-cache-dir-3.1.0.tgz#9935894999debef4cf9f677fdf646d002c4cdecb" dependencies: commondir "^1.0.1" make-dir "^3.0.0" pkg-dir "^4.1.0" -find-index@^0.1.1: - version "0.1.1" - resolved "https://registry.yarnpkg.com/find-index/-/find-index-0.1.1.tgz#675d358b2ca3892d795a1ab47232f8b6e2e0dde4" - find-up@3.0.0, find-up@^3.0.0: version "3.0.0" - resolved "https://registry.npmjs.org/find-up/-/find-up-3.0.0.tgz#49169f1d7993430646da61ecc5ae355c21c97b73" + resolved "https://registry.yarnpkg.com/find-up/-/find-up-3.0.0.tgz#49169f1d7993430646da61ecc5ae355c21c97b73" dependencies: locate-path "^3.0.0" @@ -7831,8 +7766,8 @@ findup-sync@^3.0.0: resolve-dir "^1.0.1" fined@^1.0.1: - version "1.1.0" - resolved "https://registry.yarnpkg.com/fined/-/fined-1.1.0.tgz#b37dc844b76a2f5e7081e884f7c0ae344f153476" + version "1.2.0" + resolved "https://registry.yarnpkg.com/fined/-/fined-1.2.0.tgz#d00beccf1aa2b475d16d423b0238b713a2c4a37b" dependencies: expand-tilde "^2.0.2" is-plain-object "^2.0.3" @@ -7840,13 +7775,9 @@ fined@^1.0.1: object.pick "^1.2.0" parse-filepath "^1.0.1" -first-chunk-stream@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/first-chunk-stream/-/first-chunk-stream-1.0.0.tgz#59bfb50cd905f60d7c394cd3d9acaab4e6ad934e" - flagged-respawn@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/flagged-respawn/-/flagged-respawn-1.0.0.tgz#4e79ae9b2eb38bf86b3bb56bf3e0a56aa5fcabd7" + version "1.0.1" + resolved "https://registry.yarnpkg.com/flagged-respawn/-/flagged-respawn-1.0.1.tgz#e7de6f1279ddd9ca9aac8a5971d618606b3aab41" flat-cache@^1.2.1: version "1.3.0" @@ -8209,12 +8140,6 @@ gauge@~2.7.3: strip-ansi "^3.0.1" wide-align "^1.1.0" -gaze@^0.5.1: - version "0.5.2" - resolved "https://registry.yarnpkg.com/gaze/-/gaze-0.5.2.tgz#40b709537d24d1d45767db5a908689dfe69ac44f" - dependencies: - globule "~0.1.0" - genfun@^4.0.1: version "4.0.1" resolved "https://registry.yarnpkg.com/genfun/-/genfun-4.0.1.tgz#ed10041f2e4a7f1b0a38466d17a5c3e27df1dfc1" @@ -8391,17 +8316,6 @@ glob-parent@^5.0.0: dependencies: is-glob "^4.0.1" -glob-stream@^3.1.5: - version "3.1.18" - resolved "https://registry.yarnpkg.com/glob-stream/-/glob-stream-3.1.18.tgz#9170a5f12b790306fdfe598f313f8f7954fd143b" - dependencies: - glob "^4.3.1" - glob2base "^0.0.12" - minimatch "^2.0.1" - ordered-read-streams "^0.1.0" - through2 "^0.6.1" - unique-stream "^1.0.0" - glob-stream@^6.1.0: version "6.1.0" resolved "https://registry.yarnpkg.com/glob-stream/-/glob-stream-6.1.0.tgz#7045c99413b3eb94888d83ab46d0b404cc7bdde4" @@ -8421,12 +8335,6 @@ glob-to-regexp@^0.3.0: version "0.3.0" resolved "https://registry.yarnpkg.com/glob-to-regexp/-/glob-to-regexp-0.3.0.tgz#8c5a1494d2066c570cc3bfe4496175acc4d502ab" -glob-watcher@^0.0.6: - version "0.0.6" - resolved "https://registry.yarnpkg.com/glob-watcher/-/glob-watcher-0.0.6.tgz#b95b4a8df74b39c83298b0c05c978b4d9a3b710b" - dependencies: - gaze "^0.5.1" - glob-watcher@^5.0.3: version "5.0.3" resolved "https://registry.yarnpkg.com/glob-watcher/-/glob-watcher-5.0.3.tgz#88a8abf1c4d131eb93928994bc4a593c2e5dd626" @@ -8438,13 +8346,7 @@ glob-watcher@^5.0.3: just-debounce "^1.0.0" object.defaults "^1.1.0" -glob2base@^0.0.12: - version "0.0.12" - resolved "https://registry.yarnpkg.com/glob2base/-/glob2base-0.0.12.tgz#9d419b3e28f12e83a362164a277055922c9c0d56" - dependencies: - find-index "^0.1.1" - -glob@7.1.2, glob@^7.0.0, glob@^7.0.3, glob@^7.0.5, glob@^7.0.6, glob@^7.1.1, glob@^7.1.2, glob@~7.1.2: +glob@7.1.2: version "7.1.2" resolved "https://registry.yarnpkg.com/glob/-/glob-7.1.2.tgz#c19c9df9a028702d678612384a6552404c636d15" dependencies: @@ -8466,22 +8368,24 @@ glob@7.1.3, glob@^7.1.3: once "^1.3.0" path-is-absolute "^1.0.0" -glob@^4.3.1: - version "4.5.3" - resolved "https://registry.yarnpkg.com/glob/-/glob-4.5.3.tgz#c6cb73d3226c1efef04de3c56d012f03377ee15f" +glob@^5.0.15: + version "5.0.15" + resolved "https://registry.yarnpkg.com/glob/-/glob-5.0.15.tgz#1bc936b9e02f4a603fcc222ecf7633d30b8b93b1" dependencies: inflight "^1.0.4" inherits "2" - minimatch "^2.0.1" + minimatch "2 || 3" once "^1.3.0" + path-is-absolute "^1.0.0" -glob@^5.0.15: - version "5.0.15" - resolved "https://registry.yarnpkg.com/glob/-/glob-5.0.15.tgz#1bc936b9e02f4a603fcc222ecf7633d30b8b93b1" +glob@^7.0.0, glob@^7.0.3, glob@^7.0.5, glob@^7.0.6, glob@^7.1.1, glob@^7.1.2, glob@~7.1.2: + version "7.1.6" + resolved "https://registry.yarnpkg.com/glob/-/glob-7.1.6.tgz#141f33b81a7c2492e125594307480c46679278a6" dependencies: + fs.realpath "^1.0.0" inflight "^1.0.4" inherits "2" - minimatch "2 || 3" + minimatch "^3.0.4" once "^1.3.0" path-is-absolute "^1.0.0" @@ -8496,14 +8400,6 @@ glob@^7.1.4: once "^1.3.0" path-is-absolute "^1.0.0" -glob@~3.1.21: - version "3.1.21" - resolved "https://registry.yarnpkg.com/glob/-/glob-3.1.21.tgz#d29e0a055dea5138f4d07ed40e8982e83c2066cd" - dependencies: - graceful-fs "~1.2.0" - inherits "1" - minimatch "~0.2.11" - global-dirs@^0.1.0: version "0.1.1" resolved "https://registry.yarnpkg.com/global-dirs/-/global-dirs-0.1.1.tgz#b319c0dd4607f353f3be9cca4c72fc148c49f445" @@ -8597,17 +8493,9 @@ globby@^9.2.0: pify "^4.0.1" slash "^2.0.0" -globule@~0.1.0: - version "0.1.0" - resolved "https://registry.yarnpkg.com/globule/-/globule-0.1.0.tgz#d9c8edde1da79d125a151b79533b978676346ae5" - dependencies: - glob "~3.1.21" - lodash "~1.0.1" - minimatch "~0.2.11" - glogg@^1.0.0: - version "1.0.1" - resolved "https://registry.yarnpkg.com/glogg/-/glogg-1.0.1.tgz#dcf758e44789cc3f3d32c1f3562a3676e6a34810" + version "1.0.2" + resolved "https://registry.yarnpkg.com/glogg/-/glogg-1.0.2.tgz#2d7dd702beda22eb3bffadf880696da6d846313f" dependencies: sparkles "^1.0.0" @@ -8646,12 +8534,6 @@ got@^6.7.1: unzip-response "^2.0.1" url-parse-lax "^1.0.0" -graceful-fs@^3.0.0: - version "3.0.11" - resolved "http://registry.yarnpkg.com/graceful-fs/-/graceful-fs-3.0.11.tgz#7613c778a1afea62f25c630a086d7f3acbbdd818" - dependencies: - natives "^1.1.0" - graceful-fs@^4.0.0, graceful-fs@^4.1.10, graceful-fs@^4.1.11, graceful-fs@^4.1.15, graceful-fs@^4.1.2, graceful-fs@^4.1.6, graceful-fs@^4.1.9: version "4.1.15" resolved "https://registry.yarnpkg.com/graceful-fs/-/graceful-fs-4.1.15.tgz#ffb703e1066e8a0eeaa4c8b80ba9253eeefbfb00" @@ -8660,10 +8542,6 @@ graceful-fs@^4.2.0: version "4.2.1" resolved "http://registry.yarnpkg.com/graceful-fs/-/graceful-fs-4.2.1.tgz#1c1f0c364882c868f5bff6512146328336a11b1d" -graceful-fs@~1.2.0: - version "1.2.3" - resolved "http://registry.yarnpkg.com/graceful-fs/-/graceful-fs-1.2.3.tgz#15a4806a57547cb2d2dbf27f42e89a8c3451b364" - "graceful-readlink@>= 1.0.0": version "1.0.1" resolved "https://registry.yarnpkg.com/graceful-readlink/-/graceful-readlink-1.0.1.tgz#4cafad76bc62f02fa039b2f94e9a3dd3a391a725" @@ -8703,47 +8581,6 @@ gulp-cli@^2.2.0: v8flags "^3.0.1" yargs "^7.1.0" -gulp-util@^3.0.0: - version "3.0.8" - resolved "https://registry.yarnpkg.com/gulp-util/-/gulp-util-3.0.8.tgz#0054e1e744502e27c04c187c3ecc505dd54bbb4f" - dependencies: - array-differ "^1.0.0" - array-uniq "^1.0.2" - beeper "^1.0.0" - chalk "^1.0.0" - dateformat "^2.0.0" - fancy-log "^1.1.0" - gulplog "^1.0.0" - has-gulplog "^0.1.0" - lodash._reescape "^3.0.0" - lodash._reevaluate "^3.0.0" - lodash._reinterpolate "^3.0.0" - lodash.template "^3.0.0" - minimist "^1.1.0" - multipipe "^0.1.2" - object-assign "^3.0.0" - replace-ext "0.0.1" - through2 "^2.0.0" - vinyl "^0.5.0" - -gulp@^3.9.1: - version "3.9.1" - resolved "https://registry.yarnpkg.com/gulp/-/gulp-3.9.1.tgz#571ce45928dd40af6514fc4011866016c13845b4" - dependencies: - archy "^1.0.0" - chalk "^1.0.0" - deprecated "^0.0.1" - gulp-util "^3.0.0" - interpret "^1.0.0" - liftoff "^2.1.0" - minimist "^1.1.0" - orchestrator "^0.3.0" - pretty-hrtime "^1.0.0" - semver "^4.1.0" - tildify "^1.0.0" - v8flags "^2.0.2" - vinyl-fs "^0.3.0" - gulp@^4.0.2: version "4.0.2" resolved "https://registry.yarnpkg.com/gulp/-/gulp-4.0.2.tgz#543651070fd0f6ab0a0650c6a3e6ff5a7cb09caa" @@ -8827,12 +8664,6 @@ has-flag@^3.0.0: version "3.0.0" resolved "https://registry.yarnpkg.com/has-flag/-/has-flag-3.0.0.tgz#b5d454dc2199ae225699f3467e5a07f3b955bafd" -has-gulplog@^0.1.0: - version "0.1.0" - resolved "https://registry.yarnpkg.com/has-gulplog/-/has-gulplog-0.1.0.tgz#6414c82913697da51590397dafb12f22967811ce" - dependencies: - sparkles "^1.0.0" - has-symbol-support-x@^1.4.1: version "1.4.2" resolved "https://registry.yarnpkg.com/has-symbol-support-x/-/has-symbol-support-x-1.4.2.tgz#1409f98bc00247da45da67cee0a36f282ff26455" @@ -8994,8 +8825,8 @@ home-or-tmp@^2.0.0: os-tmpdir "^1.0.1" homedir-polyfill@^1.0.1: - version "1.0.1" - resolved "https://registry.yarnpkg.com/homedir-polyfill/-/homedir-polyfill-1.0.1.tgz#4c2bbc8a758998feebf5ed68580f76d46768b4bc" + version "1.0.3" + resolved "https://registry.yarnpkg.com/homedir-polyfill/-/homedir-polyfill-1.0.3.tgz#743298cef4e5af3e194161fbadcc2151d3a058e8" dependencies: parse-passwd "^1.0.0" @@ -9186,10 +9017,6 @@ iferr@^0.1.5: version "0.1.5" resolved "https://registry.yarnpkg.com/iferr/-/iferr-0.1.5.tgz#c60eed69e6d8fdb6b3104a1fcbca1c192dc5b501" -ignore-by-default@^1.0.1: - version "1.0.1" - resolved "https://registry.yarnpkg.com/ignore-by-default/-/ignore-by-default-1.0.1.tgz#48ca6d72f6c6a3af00a9ad4ae6876be3889e2b09" - ignore-walk@^3.0.1: version "3.0.1" resolved "https://registry.npmjs.org/ignore-walk/-/ignore-walk-3.0.1.tgz#a83e62e7d272ac0e3b551aaa82831a19b69f82f8" @@ -9273,10 +9100,6 @@ inflight@^1.0.4: once "^1.3.0" wrappy "1" -inherits@1: - version "1.0.2" - resolved "https://registry.yarnpkg.com/inherits/-/inherits-1.0.2.tgz#ca4309dadee6b54cc0b8d247e8d7c7a0975bdc9b" - inherits@2, inherits@2.0.3, inherits@^2.0.1, inherits@^2.0.3, inherits@~2.0.0, inherits@~2.0.1, inherits@~2.0.3: version "2.0.3" resolved "https://registry.yarnpkg.com/inherits/-/inherits-2.0.3.tgz#633c2c83e3da42a502f52466022480f4208261de" @@ -11139,19 +10962,6 @@ libnpmaccess@^3.0.0: npm-package-arg "^6.1.0" npm-registry-fetch "^3.8.0" -liftoff@^2.1.0: - version "2.5.0" - resolved "https://registry.yarnpkg.com/liftoff/-/liftoff-2.5.0.tgz#2009291bb31cea861bbf10a7c15a28caf75c31ec" - dependencies: - extend "^3.0.0" - findup-sync "^2.0.0" - fined "^1.0.1" - flagged-respawn "^1.0.0" - is-plain-object "^2.0.4" - object.map "^1.0.0" - rechoir "^0.6.2" - resolve "^1.1.7" - liftoff@^3.1.0: version "3.1.0" resolved "https://registry.yarnpkg.com/liftoff/-/liftoff-3.1.0.tgz#c9ba6081f908670607ee79062d700df062c52ed3" @@ -11321,42 +11131,10 @@ lodash-es@^4.17.5: version "4.17.8" resolved "https://registry.yarnpkg.com/lodash-es/-/lodash-es-4.17.8.tgz#6fa8c8c5d337481df0bdf1c0d899d42473121e45" -lodash._basecopy@^3.0.0: - version "3.0.1" - resolved "https://registry.yarnpkg.com/lodash._basecopy/-/lodash._basecopy-3.0.1.tgz#8da0e6a876cf344c0ad8a54882111dd3c5c7ca36" - -lodash._basetostring@^3.0.0: - version "3.0.1" - resolved "https://registry.yarnpkg.com/lodash._basetostring/-/lodash._basetostring-3.0.1.tgz#d1861d877f824a52f669832dcaf3ee15566a07d5" - -lodash._basevalues@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/lodash._basevalues/-/lodash._basevalues-3.0.0.tgz#5b775762802bde3d3297503e26300820fdf661b7" - -lodash._getnative@^3.0.0: - version "3.9.1" - resolved "https://registry.yarnpkg.com/lodash._getnative/-/lodash._getnative-3.9.1.tgz#570bc7dede46d61cdcde687d65d3eecbaa3aaff5" - -lodash._isiterateecall@^3.0.0: - version "3.0.9" - resolved "https://registry.yarnpkg.com/lodash._isiterateecall/-/lodash._isiterateecall-3.0.9.tgz#5203ad7ba425fae842460e696db9cf3e6aac057c" - -lodash._reescape@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/lodash._reescape/-/lodash._reescape-3.0.0.tgz#2b1d6f5dfe07c8a355753e5f27fac7f1cde1616a" - -lodash._reevaluate@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/lodash._reevaluate/-/lodash._reevaluate-3.0.0.tgz#58bc74c40664953ae0b124d806996daca431e2ed" - lodash._reinterpolate@^3.0.0, lodash._reinterpolate@~3.0.0: version "3.0.0" resolved "https://registry.yarnpkg.com/lodash._reinterpolate/-/lodash._reinterpolate-3.0.0.tgz#0ccf2d89166af03b3663c796538b75ac6e114d9d" -lodash._root@^3.0.0: - version "3.0.1" - resolved "https://registry.yarnpkg.com/lodash._root/-/lodash._root-3.0.1.tgz#fba1c4524c19ee9a5f8136b4609f017cf4ded692" - lodash.assign@^4.0.3, lodash.assign@^4.0.6: version "4.2.0" resolved "https://registry.yarnpkg.com/lodash.assign/-/lodash.assign-4.2.0.tgz#0d99f3ccd7a6d261d19bdaeb9245005d285808e7" @@ -11369,12 +11147,6 @@ lodash.differenceby@^4.8.0: version "4.8.0" resolved "https://registry.npmjs.org/lodash.differenceby/-/lodash.differenceby-4.8.0.tgz#cfd59e94353af5de51da5d302ca4ebff33faac57" -lodash.escape@^3.0.0: - version "3.2.0" - resolved "https://registry.yarnpkg.com/lodash.escape/-/lodash.escape-3.2.0.tgz#995ee0dc18c1b48cc92effae71a10aab5b487698" - dependencies: - lodash._root "^3.0.0" - lodash.escape@^4.0.1: version "4.0.1" resolved "https://registry.npmjs.org/lodash.escape/-/lodash.escape-4.0.1.tgz#c9044690c21e04294beaa517712fded1fa88de98" @@ -11403,14 +11175,6 @@ lodash.intersectionwith@^4.4.0: version "4.4.0" resolved "https://registry.npmjs.org/lodash.intersectionwith/-/lodash.intersectionwith-4.4.0.tgz#818949e293052ba7fc73a440f6114c2c81c38e1c" -lodash.isarguments@^3.0.0: - version "3.1.0" - resolved "https://registry.yarnpkg.com/lodash.isarguments/-/lodash.isarguments-3.1.0.tgz#2f573d85c6a24289ff00663b491c1d338ff3458a" - -lodash.isarray@^3.0.0: - version "3.0.4" - resolved "https://registry.yarnpkg.com/lodash.isarray/-/lodash.isarray-3.0.4.tgz#79e4eb88c36a8122af86f844aa9bcd851b5fbb55" - lodash.isequal@^4.0.0, lodash.isequal@^4.5.0: version "4.5.0" resolved "https://registry.npmjs.org/lodash.isequal/-/lodash.isequal-4.5.0.tgz#415c4478f2bcc30120c22ce10ed3226f7d3e18e0" @@ -11419,14 +11183,6 @@ lodash.ismatch@^4.4.0: version "4.4.0" resolved "https://registry.yarnpkg.com/lodash.ismatch/-/lodash.ismatch-4.4.0.tgz#756cb5150ca3ba6f11085a78849645f188f85f37" -lodash.keys@^3.0.0: - version "3.1.2" - resolved "https://registry.yarnpkg.com/lodash.keys/-/lodash.keys-3.1.2.tgz#4dbc0472b156be50a0b286855d1bd0b0c656098a" - dependencies: - lodash._getnative "^3.0.0" - lodash.isarguments "^3.0.0" - lodash.isarray "^3.0.0" - lodash.merge@^4.6.1: version "4.6.1" resolved "https://registry.yarnpkg.com/lodash.merge/-/lodash.merge-4.6.1.tgz#adc25d9cb99b9391c59624f379fbba60d7111d54" @@ -11447,10 +11203,6 @@ lodash.reduce@^4.3.0: version "4.6.0" resolved "https://registry.npmjs.org/lodash.reduce/-/lodash.reduce-4.6.0.tgz#f1ab6b839299ad48f784abbf476596f03b914d3b" -lodash.restparam@^3.0.0: - version "3.6.1" - resolved "https://registry.yarnpkg.com/lodash.restparam/-/lodash.restparam-3.6.1.tgz#936a4e309ef330a7645ed4145986c85ae5b20805" - lodash.set@^4.3.2: version "4.3.2" resolved "https://registry.yarnpkg.com/lodash.set/-/lodash.set-4.3.2.tgz#d8757b1da807dde24816b0d6a84bea1a76230b23" @@ -11459,20 +11211,6 @@ lodash.sortby@^4.7.0: version "4.7.0" resolved "https://registry.npmjs.org/lodash.sortby/-/lodash.sortby-4.7.0.tgz#edd14c824e2cc9c1e0b0a1b42bb5210516a42438" -lodash.template@^3.0.0: - version "3.6.2" - resolved "https://registry.yarnpkg.com/lodash.template/-/lodash.template-3.6.2.tgz#f8cdecc6169a255be9098ae8b0c53d378931d14f" - dependencies: - lodash._basecopy "^3.0.0" - lodash._basetostring "^3.0.0" - lodash._basevalues "^3.0.0" - lodash._isiterateecall "^3.0.0" - lodash._reinterpolate "^3.0.0" - lodash.escape "^3.0.0" - lodash.keys "^3.0.0" - lodash.restparam "^3.0.0" - lodash.templatesettings "^3.0.0" - lodash.template@^4.0.2: version "4.4.0" resolved "https://registry.yarnpkg.com/lodash.template/-/lodash.template-4.4.0.tgz#e73a0385c8355591746e020b99679c690e68fba0" @@ -11487,13 +11225,6 @@ lodash.template@^4.5.0: lodash._reinterpolate "^3.0.0" lodash.templatesettings "^4.0.0" -lodash.templatesettings@^3.0.0: - version "3.1.1" - resolved "https://registry.yarnpkg.com/lodash.templatesettings/-/lodash.templatesettings-3.1.1.tgz#fb307844753b66b9f1afa54e262c745307dba8e5" - dependencies: - lodash._reinterpolate "^3.0.0" - lodash.escape "^3.0.0" - lodash.templatesettings@^4.0.0: version "4.1.0" resolved "https://registry.yarnpkg.com/lodash.templatesettings/-/lodash.templatesettings-4.1.0.tgz#2b4d4e95ba440d915ff08bc899e4553666713316" @@ -11524,10 +11255,6 @@ lodash@^4.0.0, lodash@^4.13.1, lodash@^4.14.0, lodash@^4.15.0, lodash@^4.17.10, version "4.17.15" resolved "https://registry.yarnpkg.com/lodash/-/lodash-4.17.15.tgz#b447f6670a0455bbfeedd11392eff330ea097548" -lodash@~1.0.1: - version "1.0.2" - resolved "https://registry.yarnpkg.com/lodash/-/lodash-1.0.2.tgz#8f57560c83b59fc270bd3d561b690043430e2551" - log-driver@^1.2.5: version "1.2.7" resolved "https://registry.yarnpkg.com/log-driver/-/log-driver-1.2.7.tgz#63b95021f0702fedfa2c9bb0a24e7797d71871d8" @@ -11601,10 +11328,6 @@ lowercase-keys@^1.0.0: version "1.0.1" resolved "https://registry.yarnpkg.com/lowercase-keys/-/lowercase-keys-1.0.1.tgz#6f9e30b47084d971a7c820ff15a6c5167b74c26f" -lru-cache@2: - version "2.7.3" - resolved "https://registry.yarnpkg.com/lru-cache/-/lru-cache-2.7.3.tgz#6d4524e8b955f95d4f5b58851ce21dd72fb4e952" - lru-cache@^3.2.0: version "3.2.0" resolved "https://registry.yarnpkg.com/lru-cache/-/lru-cache-3.2.0.tgz#71789b3b7f5399bec8565dda38aa30d2a097efee" @@ -12057,19 +11780,6 @@ minimalistic-crypto-utils@^1.0.0, minimalistic-crypto-utils@^1.0.1: dependencies: brace-expansion "^1.1.7" -minimatch@^2.0.1: - version "2.0.10" - resolved "https://registry.yarnpkg.com/minimatch/-/minimatch-2.0.10.tgz#8d087c39c6b38c001b97fca7ce6d0e1e80afbac7" - dependencies: - brace-expansion "^1.0.0" - -minimatch@~0.2.11: - version "0.2.14" - resolved "https://registry.yarnpkg.com/minimatch/-/minimatch-0.2.14.tgz#c74e780574f63c6f9a090e90efbe6ef53a6a756a" - dependencies: - lru-cache "2" - sigmund "~1.0.0" - minimist-options@^3.0.1: version "3.0.2" resolved "https://registry.yarnpkg.com/minimist-options/-/minimist-options-3.0.2.tgz#fba4c8191339e13ecf4d61beb03f070103f3d954" @@ -12081,7 +11791,7 @@ minimist@0.0.8: version "0.0.8" resolved "https://registry.yarnpkg.com/minimist/-/minimist-0.0.8.tgz#857fcabfc3397d2625b8228262e86aa7a011b05d" -minimist@^1.1.0, minimist@^1.1.1, minimist@^1.1.3, minimist@^1.2.0, minimist@~1.2.0: +minimist@^1.1.1, minimist@^1.1.3, minimist@^1.2.0, minimist@~1.2.0: version "1.2.0" resolved "https://registry.yarnpkg.com/minimist/-/minimist-1.2.0.tgz#a35008b20f41383eec1fb914f4cd5df79a264284" @@ -12291,12 +12001,6 @@ multimatch@^3.0.0: arrify "^1.0.1" minimatch "^3.0.4" -multipipe@^0.1.2: - version "0.1.2" - resolved "https://registry.yarnpkg.com/multipipe/-/multipipe-0.1.2.tgz#2a8f2ddf70eed564dff2d57f1e1a137d9f05078b" - dependencies: - duplexer2 "0.0.2" - mute-stdout@^1.0.0: version "1.0.1" resolved "https://registry.yarnpkg.com/mute-stdout/-/mute-stdout-1.0.1.tgz#acb0300eb4de23a7ddeec014e3e96044b3472331" @@ -12346,10 +12050,6 @@ nanomatch@^1.2.9: snapdragon "^0.8.1" to-regex "^3.0.1" -natives@^1.1.0: - version "1.1.6" - resolved "https://registry.yarnpkg.com/natives/-/natives-1.1.6.tgz#a603b4a498ab77173612b9ea1acdec4d980f00bb" - natural-compare@^1.4.0: version "1.4.0" resolved "https://registry.yarnpkg.com/natural-compare/-/natural-compare-1.4.0.tgz#4abebfeed7541f2c27acfb29bdbbd15c8d5ba4f7" @@ -12609,21 +12309,6 @@ node-pre-gyp@^0.12.0: semver "^5.3.0" tar "^4" -nodemon@^1.11.0: - version "1.17.3" - resolved "https://registry.yarnpkg.com/nodemon/-/nodemon-1.17.3.tgz#3b0bbc2ee05ccb43b1aef15ba05c63c7bc9b8530" - dependencies: - chokidar "^2.0.2" - debug "^3.1.0" - ignore-by-default "^1.0.1" - minimatch "^3.0.4" - pstree.remy "^1.1.0" - semver "^5.5.0" - supports-color "^5.2.0" - touch "^3.1.0" - undefsafe "^2.0.2" - update-notifier "^2.3.0" - nomnom@~1.6.2: version "1.6.2" resolved "https://registry.npmjs.org/nomnom/-/nomnom-1.6.2.tgz#84a66a260174408fc5b77a18f888eccc44fb6971" @@ -12655,12 +12340,6 @@ nopt@^4.0.1: abbrev "1" osenv "^0.1.4" -nopt@~1.0.10: - version "1.0.10" - resolved "https://registry.yarnpkg.com/nopt/-/nopt-1.0.10.tgz#6ddd21bd2a31417b92727dd585f8a6f37608ebee" - dependencies: - abbrev "1" - normalize-package-data@^2.0.0, normalize-package-data@^2.3.0, normalize-package-data@^2.3.2, normalize-package-data@^2.3.4, normalize-package-data@^2.3.5, normalize-package-data@^2.4.0, "normalize-package-data@~1.0.1 || ^2.0.0": version "2.4.0" resolved "https://registry.yarnpkg.com/normalize-package-data/-/normalize-package-data-2.4.0.tgz#12f95a307d58352075a04907b84ac8be98ac012f" @@ -13058,12 +12737,6 @@ once@1.x, once@^1.3.0, once@^1.3.1, once@^1.3.2, once@^1.4.0: dependencies: wrappy "1" -once@~1.3.0: - version "1.3.3" - resolved "https://registry.yarnpkg.com/once/-/once-1.3.3.tgz#b2e261557ce4c314ec8304f3fa82663e4297ca20" - dependencies: - wrappy "1" - onetime@^1.0.0: version "1.1.0" resolved "https://registry.npmjs.org/onetime/-/onetime-1.1.0.tgz#a1f7838f8314c516f05ecefcbc4ccfe04b4ed789" @@ -13155,18 +12828,6 @@ ora@^0.2.3: cli-spinners "^0.1.2" object-assign "^4.0.1" -orchestrator@^0.3.0: - version "0.3.8" - resolved "https://registry.yarnpkg.com/orchestrator/-/orchestrator-0.3.8.tgz#14e7e9e2764f7315fbac184e506c7aa6df94ad7e" - dependencies: - end-of-stream "~0.1.5" - sequencify "~0.0.7" - stream-consume "~0.1.0" - -ordered-read-streams@^0.1.0: - version "0.1.0" - resolved "https://registry.yarnpkg.com/ordered-read-streams/-/ordered-read-streams-0.1.0.tgz#fd565a9af8eb4473ba69b6ed8a34352cb552f126" - ordered-read-streams@^1.0.0: version "1.0.1" resolved "https://registry.yarnpkg.com/ordered-read-streams/-/ordered-read-streams-1.0.1.tgz#77c0cb37c41525d64166d990ffad7ec6a0e1363e" @@ -13814,10 +13475,10 @@ pretty-format@^23.6.0: ansi-styles "^3.2.0" pretty-format@^24.8.0: - version "24.8.0" - resolved "https://registry.yarnpkg.com/pretty-format/-/pretty-format-24.8.0.tgz#8dae7044f58db7cb8be245383b565a963e3c27f2" + version "24.9.0" + resolved "https://registry.yarnpkg.com/pretty-format/-/pretty-format-24.9.0.tgz#12fac31b37019a4eea3c11aa9a959eb7628aa7c9" dependencies: - "@jest/types" "^24.8.0" + "@jest/types" "^24.9.0" ansi-regex "^4.0.0" ansi-styles "^3.2.0" react-is "^16.8.4" @@ -14016,12 +13677,6 @@ psl@^1.1.24: version "1.1.29" resolved "https://registry.yarnpkg.com/psl/-/psl-1.1.29.tgz#60f580d360170bb722a797cc704411e6da850c67" -pstree.remy@^1.1.0: - version "1.1.0" - resolved "https://registry.yarnpkg.com/pstree.remy/-/pstree.remy-1.1.0.tgz#f2af27265bd3e5b32bbfcc10e80bac55ba78688b" - dependencies: - ps-tree "^1.1.0" - public-encrypt@^4.0.0: version "4.0.2" resolved "https://registry.yarnpkg.com/public-encrypt/-/public-encrypt-4.0.2.tgz#46eb9107206bf73489f8b85b69d91334c6610994" @@ -14646,10 +14301,6 @@ repeating@^2.0.0: dependencies: is-finite "^1.0.0" -replace-ext@0.0.1: - version "0.0.1" - resolved "https://registry.yarnpkg.com/replace-ext/-/replace-ext-0.0.1.tgz#29bbd92078a739f0bcce2b4ee41e837953522924" - replace-ext@^1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/replace-ext/-/replace-ext-1.0.0.tgz#de63128373fcbf7c3ccfa4de5a480c45a67958eb" @@ -14853,13 +14504,13 @@ resolve@1.1.7, resolve@1.1.x: version "1.1.7" resolved "https://registry.yarnpkg.com/resolve/-/resolve-1.1.7.tgz#203114d82ad2c5ed9e8e0411b3932875e889e97b" -resolve@1.x: +resolve@1.x, resolve@^1.1.7: version "1.12.0" resolved "https://registry.yarnpkg.com/resolve/-/resolve-1.12.0.tgz#3fc644a35c84a48554609ff26ec52b66fa577df6" dependencies: path-parse "^1.0.6" -resolve@^1.1.6, resolve@^1.1.7, resolve@^1.3.2: +resolve@^1.1.6, resolve@^1.3.2: version "1.7.1" resolved "https://registry.yarnpkg.com/resolve/-/resolve-1.7.1.tgz#aadd656374fd298aee895bc026b8297418677fd3" dependencies: @@ -15263,10 +14914,6 @@ semver-sort@0.0.4: version "5.5.0" resolved "https://registry.yarnpkg.com/semver/-/semver-5.5.0.tgz#dc4bbc7a6ca9d916dee5d43516f0092b58f7b8ab" -semver@^4.1.0: - version "4.3.6" - resolved "https://registry.yarnpkg.com/semver/-/semver-4.3.6.tgz#300bc6e0e86374f7ba61068b5b1ecd57fc6532da" - semver@^5.5.1: version "5.6.0" resolved "https://registry.yarnpkg.com/semver/-/semver-5.6.0.tgz#7e74256fbaa49c75aa7c7a205cc22799cac80004" @@ -15308,10 +14955,6 @@ sentence-case@^2.1.0: no-case "^2.2.0" upper-case-first "^1.1.2" -sequencify@~0.0.7: - version "0.0.7" - resolved "https://registry.yarnpkg.com/sequencify/-/sequencify-0.0.7.tgz#90cff19d02e07027fd767f5ead3e7b95d1e7380c" - serialize-javascript@^1.4.0: version "1.5.0" resolved "https://registry.yarnpkg.com/serialize-javascript/-/serialize-javascript-1.5.0.tgz#1aa336162c88a890ddad5384baebc93a655161fe" @@ -15464,10 +15107,6 @@ shx@^0.2.2: minimist "^1.2.0" shelljs "^0.7.3" -sigmund@~1.0.0: - version "1.0.1" - resolved "https://registry.yarnpkg.com/sigmund/-/sigmund-1.0.1.tgz#3ff21f198cad2175f9f3b781853fd94d0d19b590" - signal-exit@^3.0.0, signal-exit@^3.0.1, signal-exit@^3.0.2: version "3.0.2" resolved "https://registry.yarnpkg.com/signal-exit/-/signal-exit-3.0.2.tgz#b5fdc08f1287ea1178628e415e25132b73646c6d" @@ -15756,8 +15395,8 @@ source-map@~0.2.0: amdefine ">=0.0.4" sparkles@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/sparkles/-/sparkles-1.0.0.tgz#1acbbfb592436d10bbe8f785b7cc6f82815012c3" + version "1.0.1" + resolved "https://registry.yarnpkg.com/sparkles/-/sparkles-1.0.1.tgz#008db65edce6c50eec0c5e228e1945061dd0437c" spawn-wrap@^1.4.2: version "1.4.2" @@ -15925,10 +15564,6 @@ stream-combiner@~0.0.4: dependencies: duplexer "~0.1.1" -stream-consume@~0.1.0: - version "0.1.1" - resolved "https://registry.yarnpkg.com/stream-consume/-/stream-consume-0.1.1.tgz#d3bdb598c2bd0ae82b8cac7ac50b1107a7996c48" - stream-each@^1.1.0: version "1.2.2" resolved "https://registry.yarnpkg.com/stream-each/-/stream-each-1.2.2.tgz#8e8c463f91da8991778765873fe4d960d8f616bd" @@ -16067,13 +15702,6 @@ strip-bom@3.0.0, strip-bom@^3.0.0: version "3.0.0" resolved "https://registry.yarnpkg.com/strip-bom/-/strip-bom-3.0.0.tgz#2334c18e9c759f7bdd56fdef7e9ae3d588e68ed3" -strip-bom@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/strip-bom/-/strip-bom-1.0.0.tgz#85b8862f3844b5a6d5ec8467a93598173a36f794" - dependencies: - first-chunk-stream "^1.0.0" - is-utf8 "^0.2.0" - strip-bom@^2.0.0: version "2.0.0" resolved "https://registry.yarnpkg.com/strip-bom/-/strip-bom-2.0.0.tgz#6219a85616520491f35788bdbf1447a99c7e6b0e" @@ -16152,7 +15780,7 @@ supports-color@4.4.0: dependencies: has-flag "^2.0.0" -supports-color@5.4.0, supports-color@^5.1.0, supports-color@^5.2.0, supports-color@^5.3.0: +supports-color@5.4.0, supports-color@^5.1.0, supports-color@^5.3.0: version "5.4.0" resolved "https://registry.yarnpkg.com/supports-color/-/supports-color-5.4.0.tgz#1c6b337402c2137605efe19f10fec390f6faab54" dependencies: @@ -16499,13 +16127,6 @@ through2-filter@^2.0.0: through2 "~2.0.0" xtend "~4.0.0" -through2@^0.6.1, through2@~0.6.3: - version "0.6.5" - resolved "https://registry.yarnpkg.com/through2/-/through2-0.6.5.tgz#41ab9c67b29d57209071410e1d7a7a968cd3ad48" - dependencies: - readable-stream ">=1.0.33-1 <1.1.0-0" - xtend ">=4.0.0 <4.1.0-0" - through2@^2.0.0, through2@^2.0.1, through2@^2.0.2, through2@^2.0.3, through2@~2.0.0: version "2.0.3" resolved "https://registry.yarnpkg.com/through2/-/through2-2.0.3.tgz#0004569b37c7c74ba39c43f3ced78d1ad94140be" @@ -16526,6 +16147,13 @@ through2@~0.2.3: readable-stream "~1.1.9" xtend "~2.1.1" +through2@~0.6.3: + version "0.6.5" + resolved "https://registry.yarnpkg.com/through2/-/through2-0.6.5.tgz#41ab9c67b29d57209071410e1d7a7a968cd3ad48" + dependencies: + readable-stream ">=1.0.33-1 <1.1.0-0" + xtend ">=4.0.0 <4.1.0-0" + through@2, "through@>=2.2.7 <3", through@^2.3.4, through@^2.3.6, through@~2.3, through@~2.3.1, through@~2.3.4, through@~2.3.8: version "2.3.8" resolved "https://registry.yarnpkg.com/through/-/through-2.3.8.tgz#0dd4c9ffaabc357960b1b724115d7e0e86a2e1f5" @@ -16534,12 +16162,6 @@ thunky@^1.0.2: version "1.0.2" resolved "https://registry.yarnpkg.com/thunky/-/thunky-1.0.2.tgz#a862e018e3fb1ea2ec3fce5d55605cf57f247371" -tildify@^1.0.0: - version "1.2.0" - resolved "https://registry.yarnpkg.com/tildify/-/tildify-1.2.0.tgz#dcec03f55dca9b7aa3e5b04f21817eb56e63588a" - dependencies: - os-homedir "^1.0.0" - time-stamp@^1.0.0: version "1.1.0" resolved "https://registry.yarnpkg.com/time-stamp/-/time-stamp-1.1.0.tgz#764a5a11af50561921b133f3b44e618687e0f5c3" @@ -16662,12 +16284,6 @@ toposort@^2.0.2: version "2.0.2" resolved "https://registry.yarnpkg.com/toposort/-/toposort-2.0.2.tgz#ae21768175d1559d48bef35420b2f4962f09c330" -touch@^3.1.0: - version "3.1.0" - resolved "https://registry.yarnpkg.com/touch/-/touch-3.1.0.tgz#fe365f5f75ec9ed4e56825e0bb76d24ab74af83b" - dependencies: - nopt "~1.0.10" - tough-cookie@>=2.3.3, tough-cookie@^2.3.4, tough-cookie@~2.4.3: version "2.4.3" resolved "https://registry.yarnpkg.com/tough-cookie/-/tough-cookie-2.4.3.tgz#53f36da3f47783b0925afa06ff9f3b165280f781" @@ -17047,12 +16663,6 @@ unc-path-regex@^0.1.2: version "0.1.2" resolved "https://registry.yarnpkg.com/unc-path-regex/-/unc-path-regex-0.1.2.tgz#e73dd3d7b0d7c5ed86fbac6b0ae7d8c6a69d50fa" -undefsafe@^2.0.2: - version "2.0.2" - resolved "https://registry.yarnpkg.com/undefsafe/-/undefsafe-2.0.2.tgz#225f6b9e0337663e0d8e7cfd686fc2836ccace76" - dependencies: - debug "^2.2.0" - underscore@1.8.3: version "1.8.3" resolved "https://registry.yarnpkg.com/underscore/-/underscore-1.8.3.tgz#4f3fb53b106e6097fcf9cb4109f2a5e9bdfa5022" @@ -17110,10 +16720,6 @@ unique-slug@^2.0.0: dependencies: imurmurhash "^0.1.4" -unique-stream@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/unique-stream/-/unique-stream-1.0.0.tgz#d59a4a75427447d9aa6c91e70263f8d26a4b104b" - unique-stream@^2.0.2: version "2.2.1" resolved "https://registry.yarnpkg.com/unique-stream/-/unique-stream-2.2.1.tgz#5aa003cfbe94c5ff866c4e7d668bb1c4dbadb369" @@ -17264,10 +16870,6 @@ use@^3.1.0: dependencies: kind-of "^6.0.2" -user-home@^1.1.1: - version "1.1.1" - resolved "https://registry.yarnpkg.com/user-home/-/user-home-1.1.1.tgz#2b5be23a32b63a7c9deb8d0f28d485724a3df190" - utf8@2.1.1: version "2.1.1" resolved "https://registry.yarnpkg.com/utf8/-/utf8-2.1.1.tgz#2e01db02f7d8d0944f77104f1609eb0c304cf768" @@ -17351,12 +16953,6 @@ v8-compile-cache@^2.0.2: version "2.0.2" resolved "https://registry.npmjs.org/v8-compile-cache/-/v8-compile-cache-2.0.2.tgz#a428b28bb26790734c4fc8bc9fa106fccebf6a6c" -v8flags@^2.0.2: - version "2.1.1" - resolved "https://registry.yarnpkg.com/v8flags/-/v8flags-2.1.1.tgz#aab1a1fa30d45f88dd321148875ac02c0b55e5b4" - dependencies: - user-home "^1.1.1" - v8flags@^3.0.1: version "3.1.3" resolved "https://registry.yarnpkg.com/v8flags/-/v8flags-3.1.3.tgz#fc9dc23521ca20c5433f81cc4eb9b3033bb105d8" @@ -17400,19 +16996,6 @@ verror@1.10.0, verror@^1.6.1: core-util-is "1.0.2" extsprintf "^1.2.0" -vinyl-fs@^0.3.0: - version "0.3.14" - resolved "https://registry.yarnpkg.com/vinyl-fs/-/vinyl-fs-0.3.14.tgz#9a6851ce1cac1c1cea5fe86c0931d620c2cfa9e6" - dependencies: - defaults "^1.0.0" - glob-stream "^3.1.5" - glob-watcher "^0.0.6" - graceful-fs "^3.0.0" - mkdirp "^0.5.0" - strip-bom "^1.0.0" - through2 "^0.6.1" - vinyl "^0.4.0" - vinyl-fs@^3.0.0, vinyl-fs@^3.0.2: version "3.0.3" resolved "https://registry.yarnpkg.com/vinyl-fs/-/vinyl-fs-3.0.3.tgz#c85849405f67428feabbbd5c5dbdd64f47d31bc7" @@ -17447,21 +17030,6 @@ vinyl-sourcemap@^1.1.0: remove-bom-buffer "^3.0.0" vinyl "^2.0.0" -vinyl@^0.4.0: - version "0.4.6" - resolved "https://registry.yarnpkg.com/vinyl/-/vinyl-0.4.6.tgz#2f356c87a550a255461f36bbeb2a5ba8bf784847" - dependencies: - clone "^0.2.0" - clone-stats "^0.0.1" - -vinyl@^0.5.0: - version "0.5.3" - resolved "https://registry.yarnpkg.com/vinyl/-/vinyl-0.5.3.tgz#b0455b38fc5e0cf30d4325132e461970c2091cde" - dependencies: - clone "^1.0.0" - clone-stats "^0.0.1" - replace-ext "0.0.1" - vinyl@^2.0.0, vinyl@^2.1.0: version "2.1.0" resolved "https://registry.yarnpkg.com/vinyl/-/vinyl-2.1.0.tgz#021f9c2cf951d6b939943c89eb5ee5add4fd924c" @@ -18028,10 +17596,6 @@ webpack-log@^2.0.0: ansi-colors "^3.0.0" uuid "^3.3.2" -webpack-node-externals@^1.6.0: - version "1.7.2" - resolved "https://registry.yarnpkg.com/webpack-node-externals/-/webpack-node-externals-1.7.2.tgz#6e1ee79ac67c070402ba700ef033a9b8d52ac4e3" - webpack-sources@^1.1.0: version "1.1.0" resolved "https://registry.yarnpkg.com/webpack-sources/-/webpack-sources-1.1.0.tgz#a101ebae59d6507354d71d8013950a3a8b7a5a54" @@ -18172,13 +17736,13 @@ which-pm-runs@^1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/which-pm-runs/-/which-pm-runs-1.0.0.tgz#670b3afbc552e0b55df6b7780ca74615f23ad1cb" -which@1, which@1.3.1, which@^1.2.12, which@^1.3.1: +which@1, which@1.3.1, which@^1.2.12, which@^1.2.14, which@^1.3.1: version "1.3.1" resolved "https://registry.yarnpkg.com/which/-/which-1.3.1.tgz#a45043d54f5805316da8d62f9f50918d3da70b0a" dependencies: isexe "^2.0.0" -which@^1.1.1, which@^1.2.14, which@^1.2.9, which@^1.3.0: +which@^1.1.1, which@^1.2.9, which@^1.3.0: version "1.3.0" resolved "https://registry.yarnpkg.com/which/-/which-1.3.0.tgz#ff04bdfc010ee547d780bec38e1ac1c2777d253a" dependencies: