Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/satyambnsal/aztec-uniswap
https://github.com/satyambnsal/aztec-uniswap
Last synced: 2 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/satyambnsal/aztec-uniswap
- Owner: satyambnsal
- Created: 2024-04-16T08:25:41.000Z (7 months ago)
- Default Branch: main
- Last Pushed: 2024-05-05T18:12:02.000Z (6 months ago)
- Last Synced: 2024-05-05T23:53:03.824Z (6 months ago)
- Language: Rust
- Size: 205 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# How to run
```
# Install the Aztec Toolkit version 0.33.0
aztec-up 0.33.0# Start the Aztec Sandbox environment. Must restart it if you have beening running the sandbox.
aztec-sandbox# Clone our repository
git clone https://github.com/satyambnsal/aztec-uniswap# Navigate into the cloned repository directory
cd aztec-uniswap# Compile the contract code
yarn compile# Generate contract artifacts and TypeScript interfaces
yarn codegen# Execute the test suite
yarn test
```> If you encounter any error when testing, please restart your aztec-sandbox due to `publicDeployAccounts` requires some fresh setup. Then, rerun `yarn test`.
# Contract Capabilities
The contract has been programmed with two hard-coded tokens and currently offers the following capabilities:
- Supply liquidity privately or publicly: Users can add liquidity to the pool either in a transparent manner or privately.
- Swap privately or publicly: Tokens can be swapped within the pool both publicly and through a private transaction.
- Remove liquidity publicly: Users can remove liquidity from the pool publicly. The functionality for private liquidity removal is under development.