diff --git a/docs/advanced/erc20_transformations.rst b/docs/advanced/erc20_transformations.rst index 665a7e4889..b0f83fa698 100644 --- a/docs/advanced/erc20_transformations.rst +++ b/docs/advanced/erc20_transformations.rst @@ -70,7 +70,7 @@ Supported DEX's: * Sushiswap * Uniswap v1/v2 -This transformation is implemented by the `FillQuoteTransformer <../architecture/transformers.html>`_ and has the ``deploymentNonce`` of ``5``. Abi-Encode the following struct to get the ``data``: +This transformation is implemented by the `FillQuoteTransformer <../architecture/transformers.html>`_. Abi-Encode the following struct to get the ``data``: .. warning:: An upgrade is pending to this transformation. This currently uses Exchange V3 Orders, but will soon be updated to use `V4 Orders <../basics/orders.html>`_. - 11/26/2020 @@ -117,7 +117,7 @@ This transformation currently executes a Market Sell or Market Buy on a series o WETH Wrapping ------------- -This transformation is implemented by the `WethTransformer <../architecture/transformers.html>`_ and has the ``deploymentNonce`` of ``1``. Abi-Encode the following struct to get the ``data``: +This transformation is implemented by the `WethTransformer <../architecture/transformers.html>`_. Abi-Encode the following struct to get the ``data``: .. code-block:: solidity @@ -135,7 +135,7 @@ If the supplied token address is `WETH (etherToken) <../basics/addresses.html>`_ Affiliate Fees -------------- -This transformation is implemented by the `AffiliateFeeTransformer <../architecture/transformers.html>`_ and has the ``deploymentNonce`` of ``3``. Abi-Encode the following struct to get the ``data``: +This transformation is implemented by the `AffiliateFeeTransformer <../architecture/transformers.html>`_. Abi-Encode the following struct to get the ``data``: .. code-block:: solidity @@ -156,7 +156,7 @@ This pays the ``recipient`` in the ``amount`` of ``token`` specified. This can b Pay Taker --------- -This transformation is implemented by the `PayTakerTransformer <../architecture/transformers.html>`_ and has the ``deploymentNonce`` of ``2``. Abi-Encode the following struct to get the ``data``: +This transformation is implemented by the `PayTakerTransformer <../architecture/transformers.html>`_. Abi-Encode the following struct to get the ``data``: .. code-block:: solidity diff --git a/docs/architecture/transformers.rst b/docs/architecture/transformers.rst index bde33e9d83..62de535f1e 100644 --- a/docs/architecture/transformers.rst +++ b/docs/architecture/transformers.rst @@ -7,19 +7,20 @@ Transformers extend the core protocol. They are trustless and permissioned by th Below is a catalog of Transformers. .. table:: - :widths: 20 60 20 + :widths: 20 60 10 10 + + +--------------------------+------------------------------------------------------------------------------------------+-----------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | **Transformer** | **Description** | **Nonce** | **Resources** | + +--------------------------+------------------------------------------------------------------------------------------+-----------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | FillQuoteTransformer | Aggregates Liquidity across DEXs and Native 0x Orders. | 9 | `Code `__; `Usage <../advanced/erc20_transformations.html#liquidity-aggregation>`__ | + +--------------------------+------------------------------------------------------------------------------------------+-----------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | AffiliateFeesTransformer | Allows integrators to charge an affiliate fee when an order is filled by their platform. | 8 | `Code `__; `Usage <../advanced/erc20_transformations.html#affiliate-fees>`__ | + +--------------------------+------------------------------------------------------------------------------------------+-----------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | PayTakerTransformer | Forwards funds in the Flash Wallet to the Taker. | 7 | `Code `__; `Usage <../advanced/erc20_transformations.html#pay-taker>`__ | + +--------------------------+------------------------------------------------------------------------------------------+-----------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ + | WethTransformer | Wraps ETH into WETH (and unwraps) | 6 | `Code `__; `Usage <../advanced/erc20_transformations.html#weth-wrapping>`__ | + +--------------------------+------------------------------------------------------------------------------------------+-----------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - +--------------------------+------------------------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | **Transformer** | **Description** | **Resources** | - +--------------------------+------------------------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | FillQuoteTransformer | Aggregates Liquidity across DEXs and Native 0x Orders. | `Code `__; `Usage <../advanced/erc20_transformations.html#liquidity-aggregation>`__ | - +--------------------------+------------------------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | WethTransformer | Wraps ETH into WETH (and unwraps) | `Code `__; `Usage <../advanced/erc20_transformations.html#weth-wrapping>`__ | - +--------------------------+------------------------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | AffiliateFeesTransformer | Allows integrators to charge an affiliate fee when an order is filled by their platform. | `Code `__; `Usage <../advanced/erc20_transformations.html#affiliate-fees>`__ | - +--------------------------+------------------------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ - | PayTakerTransformer | Forwards funds in the Flash Wallet to the Taker. | `Code `__; `Usage <../advanced/erc20_transformations.html#pay-taker>`__ | - +--------------------------+------------------------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ Implementing a Transformer diff --git a/docs/basics/addresses.rst b/docs/basics/addresses.rst index ba7ddd859b..c9ce3a7a6a 100644 --- a/docs/basics/addresses.rst +++ b/docs/basics/addresses.rst @@ -23,10 +23,10 @@ Transformers =================== .. csv-table:: - wethTransformer, `0x68c0bb685099dc7cb5c5ce2b26185945b357383e `_ - payTakerTransformer, `0x49b9df2c58491764cf40cb052dd4243df63622c7 `_ - fillQuoteTransformer, `0xfbfb26935f15db6a319a43db5085245a6df1e408 `_ - affiliateFeeTransformer, `0x4581b59a05ba373b9f67676f66bdb5fcd67e7567 `_ + wethTransformer, `0xb2bc06a4efb20fc6553a69dbfa49b7be938034a7 `_ + payTakerTransformer, `0x4638a7ebe75b911b995d0ec73a81e4f85f41f24e `_ + fillQuoteTransformer, `0x74c35f17a19d4ee0ddd65cc21c671806913f9176 `_ + affiliateFeeTransformer, `0xda6d9fc5998f550a094585cf9171f0e8ee3ac59f `_