`ethers.BigNumber` | The liquidity value to approve
-| nonce | `ethers.BigNumber` | The nonce used for signing the message
-| deadline | `uint256` | Unix timestamp after which the transaction is reverted
-
-It will return a Signature object that is required for removing liquidity.
-
-```json
-{
- "v": number,
- "r": string,
- "s": string
-}
-```
-
-Once you receive the signature object from the permitLP then you can invoke the removeLiquidity function to withdraw tokens.
-
-```javascript
-await xataApi.removeLiquidity(
)
-```
-
-|Parameter | Type | Description
-|----------|------|------------|
-| tokenA | `string` | Token A address
-| tokenB | `string` | Token B address
-| liquidity | `ethers.BigNumber` | The amount of liquidity to remove
-| amountAMin | `ethers.BigNumber` | The amount of tokenA that must be received before the transaction reverts
-|amountBMin | `ethers.BigNumber` | The amount of tokenB that must be received before the transaction reverts |
-| user | `string` | The user's address. The liquidity provider and the recipient of LP tokens
-| deadline | `BigNumber` | Unix timestamp after which the transaction is reverted
-| sig | `SignatureLike` | A signature object received from `permitLP()`
-| gasLimit | `BigNumber` | Optional: Gas limit for calculating the token fee amount. This value may not be the actual gas limit used in the transaction
-| gasPrice | `BigNumber` | Optional: Gas price for calculating the token fee amount. This value may not be the actual gas price used in the transaction |
-
-## Relay Config
-When a transaction request is successfully sent to one of the API routers, the transaction is forwarded and processed by Geode – one of our technologies that can increase privacy and eliminate trading MEV. To do this, the XATA SDK stores the Geode relay configuration as part of the API module.
-
-```javascript
-...
-[ChainId.MATIC]: 'https://conveyor-prod-matic.ata.network',
-[ChainId.BSC]: 'https://conveyor-prod-bsc.ata.network',
-...
-```
-
-Developers can freely customize these endpoints to meet their application needs. To customize it, set new endpoint value(s) for each chain that is supported by your app. [You can find the config here.](https://github.com/xata-fi/xata-sdk/blob/main/src/xata-api/lib/relayer.ts)
-
-### Using a Test Relay on Development
-
-XATA API works on production mode by default, and therefore the transaction request also gets forwarded to production-grade Geode. If you are under the development stage and want to test the transaction on a separate relay, you need to make a couple of changes.
-
-Update the relay configuration as in the previous section. What makes it different from the previous one is that you have to set the endpoint value(s) under the `Environment.STAGING` object instead of `Environment.PRODUCTION`.
-
-```javascript
-[Environment.PRODUCTION]: {
- ...
- [ChainId.MATIC]: 'https://conveyor-prod-matic.ata.network',
- [ChainId.BSC]: 'https://conveyor-prod-bsc.ata.network',
- ...
-},
-[Environment.STAGING]: {
- ...
- [ChainId.MATIC]: 'https://your-test-relay.endpoint',
- [ChainId.BSC]: 'https://your-test-relay.endpoint',
- ...
-}
-```
-
-Update the XATA initiation code on your app.
-
-```javascript
-// Add new Environment enum import
-import { Environment, XATA } from '@xatadev/sdk'
-
-const xataApi = new Xata();
-const feeToken = '<0xAddress>'
-
-// Add 3rd param to override the SDK env mode
-await xataApi.init(web3Provider, feeToken, Environment.STAGING);
-```
\ No newline at end of file
diff --git a/docs/xata/smart-contract.md b/docs/xata/smart-contract.md
deleted file mode 100644
index 008b08c5..00000000
--- a/docs/xata/smart-contract.md
+++ /dev/null
@@ -1,28 +0,0 @@
-# Smart Contracts
-
-## What do these contracts do?
-Here are the official smart contract addresses for XATA on each network that we currently support. Please ensure that you are interacting with the correct contract addresses with your wallet to protect yourself from phishing attempts.
-
-* **Factory Contract** - The "Factory" is responsible for creating new exchange contracts for each token pairs.
-* **Router Contract** - The "Router" performs requirement checks needed for swapping tokens, adding liquidity, and removing liquidity.
-
-## Official XATA Smart Contract Addresses
-
-### Polygon Network
-
-**Factory Contract:** [0x5f8017621825BC10D63d15C3e863f893946781F7](https://polygonscan.com/address/0x5f8017621825BC10D63d15C3e863f893946781F7#code)
-
-**Router Contract:** [0xe4C5Cf259351d7877039CBaE0e7f92EB2Ab017EB](https://polygonscan.com/address/0xe4C5Cf259351d7877039CBaE0e7f92EB2Ab017EB#code)
-
-**Farm Contracts:**
-
-* ATA/USDT: [0x3dD417Ff4144bE35f203CB2CA569adF01Cd3574a](https://polygonscan.com/address/0x3dD417Ff4144bE35f203CB2CA569adF01Cd3574a#code)
-
-### Binance Smart Chain Network
-**Factory Contract:** [0x5f8017621825BC10D63d15C3e863f893946781F7](https://bscscan.com/address/0x5f8017621825BC10D63d15C3e863f893946781F7#code)
-
-**Router Contract:** [0xe4C5Cf259351d7877039CBaE0e7f92EB2Ab017EB](https://bscscan.com/address/0xe4C5Cf259351d7877039CBaE0e7f92EB2Ab017EB#code)
-
-**Farm Contracts:**
-
-* ATA/USDT: [0x3dD417Ff4144bE35f203CB2CA569adF01Cd3574a](https://bscscan.com/address/0x3dD417Ff4144bE35f203CB2CA569adF01Cd3574a#code)
\ No newline at end of file
diff --git a/mkdocs.yml b/mkdocs.yml
index 136cfda8..635914bb 100644
--- a/mkdocs.yml
+++ b/mkdocs.yml
@@ -6,8 +6,43 @@ site_author: Automata Team
repo_url: https://github.com/automata-network/docs
nav:
- - General:
- - The MEV Wiki:
+ - 1RPC:
+ - Introduction: ./1rpc/introduction.md
+ - Design: ./1rpc/design.md
+ - User Guide: ./1rpc/guide.md
+ - 1RPC+:
+ - Introduction: ./1rpc/1rpcplus/introduction.md
+ - User Guide: ./1rpc/1rpcplus/guide.md
+ - Specification: ./1rpc/1rpcplus/spec.md
+ - FAQs: ./1rpc/faq.md
+ - NFTFair:
+ - Introduction: ./nftfair/introduction.md
+ - User Info:
+ - Overview: ./nftfair/users/activities.md
+ - FAQs: ./nftfair/users/faq.md
+ - Contracts:
+ - Summary: ./nftfair/contracts/summary.md
+ - NFTFairFactory: ./nftfair/contracts/factory.md
+ - NFTFairTreasury: ./nftfair/contracts/treasury.md
+ - NFTFairVault: ./nftfair/contracts/vault/base.md
+ - Vault Templates:
+ - FIFO Vault: ./nftfair/contracts/vault/templates/fifo.md
+ - Mystery Boxes Vault: ./nftfair/contracts/vault/templates/mysteryboxes.md
+ - 2FA Guru:
+ - Introduction: ./2fa/introduction.md
+ - User Info:
+ - User Guide: ./2fa/users/guide.md
+ - FAQs: ./2fa/users/faq.md
+ - Developer Info:
+ - Workflow: ./2fa/developers/workflow.md
+ - Contracts:
+ - Summary: ./2fa/contracts/summary.md
+ - TwoFactorBase: ./2fa/contracts/TwoFactorBase.md
+ - TwoFactorAuthentication: ./2fa/contracts/TwoFactorAuthentication.md
+ - Appendix: ./2fa/contracts/2FAppendix.md
+ - FAQs: ./2fa/developers/faq.md
+ - MEV Wiki:
+ - MEV Wiki:
- Introduction: ./mev/introduction.md
- Resource List: ./mev/resource-list.md
- Terms and Concepts: ./mev/terms-and-concepts.md
@@ -19,81 +54,6 @@ nav:
- MEV Minimization / Prevention: ./mev/solutions/mev-minimization-prevention.md
- Others: ./mev/solutions/others.md
- Miscellaneous: ./mev/misc.md
- - User Guide:
- - NFTFair:
- - Introduction: ./nftfair/introduction.md
- - User Info:
- - Overview: ./nftfair/users/activities.md
- - FAQs: ./nftfair/users/faq.md
- - Contracts:
- - Summary: ./nftfair/contracts/summary.md
- - NFTFairFactory: ./nftfair/contracts/factory.md
- - NFTFairTreasury: ./nftfair/contracts/treasury.md
- - NFTFairVault: ./nftfair/contracts/vault/base.md
- - Vault Templates:
- - FIFO Vault: ./nftfair/contracts/vault/templates/fifo.md
- - Mystery Boxes Vault: ./nftfair/contracts/vault/templates/mysteryboxes.md
- - AnyDao:
- - Introduction: ./anydao/introduction.md
- - Design: ./anydao/design.md
- - Specification: ./anydao/spec.md
- - User Guide: ./anydao/guide.md
- - 1RPC:
- - Introduction: ./1rpc/introduction.md
- - Design: ./1rpc/design.md
- - User Guide: ./1rpc/guide.md
- - 1RPC+:
- - Introduction: ./1rpc/1rpcplus/introduction.md
- - User Guide: ./1rpc/1rpcplus/guide.md
- - Specification: ./1rpc/1rpcplus/spec.md
- - FAQs: ./1rpc/faq.md
- - 2FA Guru:
- - Introduction: ./2fa/introduction.md
- - User Info:
- - User Guide: ./2fa/users/guide.md
- - FAQs: ./2fa/users/faq.md
- - Developer Info:
- - Workflow: ./2fa/developers/workflow.md
- - Contracts:
- - Summary: ./2fa/contracts/summary.md
- - TwoFactorBase: ./2fa/contracts/TwoFactorBase.md
- - TwoFactorAuthentication: ./2fa/contracts/TwoFactorAuthentication.md
- - Appendix: ./2fa/contracts/2FAppendix.md
- - FAQs: ./2fa/developers/faq.md
- - XATA:
- - Introduction: ./xata/introduction.md
- - Smart Contracts: ./xata/smart-contract.md
- - Swap & Liquidity Pool Guide: ./xata/liquiditypool-guide.md
- - Farming Guide: ./xata/farming-guide.md
- - SDK: ./xata/sdk.md
- - FAQ: ./xata/faq.md
- - Witness:
- - Introduction: ./witness/introduction.md
- - User Guide: ./witness/user-guide.md
- # - Witness API: ./witness/api.md
- - Developers:
- - ContextFree Network:
- - Get Started:
- - Introduction: ./canarynet/getstarted/introduction.md
- - User Guide:
- - Set up Wallet: ./canarynet/userguide/setupwallet.md
- - Get Test Token: ./canarynet/userguide/get-test-token.md
- - Use Token Bridge: ./canarynet/userguide/token-bridge.md
- - Node:
- - Node Types: ./canarynet/node/node-type.md
- - Run Full Node: ./canarynet/node/run-full-node.md
- - Join as Validator: ./canarynet/node/run-validator.md
- - Conveyor:
- - Overview: ./conveyor/overview.md
- - ConveyorV1:
- - ./conveyor/conveyorv1/automata-conveyor-overview.md
- - ./conveyor/conveyorv1/automata-conveyor-gtoken.md
- - ./conveyor/conveyorv1/automata-conveyor-controller.md
- - ./conveyor/conveyorv1/fee.md
- - ./conveyor/conveyorv1/fee-contract.md
- - ConveyorV2:
- - ./conveyor/conveyorv2/design.md
-
theme:
name: material
custom_dir: overrides
@@ -101,8 +61,7 @@ theme:
# Light mode
- media: "(prefers-color-scheme: light)"
scheme: default
- primary: orange
- accent: orange
+ accent: deep orange
toggle:
icon: material/toggle-switch-off-outline
name: Switch to dark mode
@@ -110,7 +69,7 @@ theme:
# Dark mode
- media: "(prefers-color-scheme: dark)"
scheme: slate
- primary: orange
+ accent: deep orange
toggle:
icon: material/toggle-switch
name: Switch to light mode
@@ -119,7 +78,7 @@ theme:
- instant
# https://squidfunk.github.io/mkdocs-material/setup/setting-up-navigation/#navigation-tabs
- navigation.top
- - navigation.tabs
+ - navigation
- toc.integrate
# - navigation.expand
- content.tabs.link
@@ -154,6 +113,9 @@ markdown_extensions:
- pymdownx.arithmatex:
generic: true
+extra_css:
+ - stylesheets/extra.css
+
extra:
social:
- icon: fontawesome/brands/github
@@ -166,6 +128,7 @@ extra:
link: https://t.me/ata_network
- icon: fontawesome/brands/discord
link: https://discord.com/invite/Us8cxTVRxG
+ generator: false
extra_javascript:
- javascripts/config.js
@@ -173,4 +136,9 @@ extra_javascript:
- https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-chtml.js
- https://cdnjs.cloudflare.com/ajax/libs/highlight.js/10.7.2/highlight.min.js
-copyright: Copyright © 2021 Automata Network
+copyright: Copyright © 2023 Automata Network
+
+plugins:
+ - search
+ - git-revision-date-localized:
+ enable_creation_date: false
diff --git a/requirements.txt b/requirements.txt
index a9447f23..8d9b92ca 100644
--- a/requirements.txt
+++ b/requirements.txt
@@ -1,2 +1,3 @@
mkdocs>=1.0.4
mkdocs-material>=4.6.2
+mkdocs-git-revision-date-localized-plugin>=1.2.0
\ No newline at end of file