This is a project template for developing applications based on the 1inch Aqua protocol. The project includes an implementation of XYC (X*Y=C) swap using the Aqua protocol for efficient token exchanges. The template provides a ready-to-use infrastructure for creating decentralized trading applications with support for various exchange strategies and integration with the Aqua protocol for gas cost optimization.
- Node.js (v16 or higher)
- Yarn or npm
- Git
git clone https://github.com/1inch/aqua-app-template.git
cd aqua-app-templateUsing Yarn:
yarn installyarn buildyarn testIn a separate terminal, start the local blockchain node:
yarn nodeAfter starting the local node, in a new terminal run the deployment:
yarn deploy:localhostaqua-app-template/
├── contracts/ # Solidity contracts
│ ├── AquaImport.sol # Aqua protocol import
│ ├── SwapExecutor.sol # Swap executor
│ └── XYCSwap.sol # XYC swap implementation
├── scripts/ # Deployment scripts
│ └── deploy-aqua.ts # Contract deployment script
├── test/ # Tests
│ ├── XYCSwap.test.ts # XYC swap tests
│ └── utils.ts # Test utility functions
└── hardhat.config.ts # Hardhat configuration
yarn build- Compile contractsyarn test- Run testsnpx hardhat node- Start local Hardhat nodeyarn deploy:localhost- Deploy to local networkyarn deploy- Deploy to selected networkyarn clean- Clean compilation artifacts
This project is licensed under the LicenseRef-Degensoft-Aqua-Source-1.1
See the LICENSE file for details. See the THIRD_PARTY_NOTICES file for information about third-party software, libraries, and dependencies used in this project.
Contact for licensing inquiries: