Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/astroport-fi/astro-zap
Enter Astroport XYK pools with any combination of the two assets
https://github.com/astroport-fi/astro-zap
Last synced: 3 months ago
JSON representation
Enter Astroport XYK pools with any combination of the two assets
- Host: GitHub
- URL: https://github.com/astroport-fi/astro-zap
- Owner: astroport-fi
- License: gpl-3.0
- Created: 2021-12-26T18:20:33.000Z (about 3 years ago)
- Default Branch: master
- Last Pushed: 2022-03-05T20:50:27.000Z (almost 3 years ago)
- Last Synced: 2023-06-06T00:22:55.546Z (over 1 year ago)
- Language: Rust
- Homepage:
- Size: 264 KB
- Stars: 2
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# AstroZap
Enter Astroport XYK pools with any combination of the two assets.
For an overview of the math behind zapping, see [this explainer](./docs/astrozap.pdf).
## Development
### Dependencies
* Rust 1.57.0
* `wasm32-unknown-unknown` target
* Docker and [`rust-optimizer`](https://github.com/CosmWasm/rust-optimizer)
* Node.js v16### Testing
In `./contracts/astrozap` directory:
```bash
cargo test
```### Compilation
In `./contracts/astrozap` directory:
```bash
docker run --rm -v "$(pwd)":/code \
--mount type=volume,source="$(basename "$(pwd)")_cache",target=/code/target \
--mount type=volume,source=registry_cache,target=/usr/local/cargo/registry \
cosmwasm/rust-optimizer:0.12.5
```### Deployment
In `./scripts` directory:
```bash
npm install
ts-node 4_deploy.ts --network {mainnet|testnet} [--code-id codeId]
```## License
Contents of this repository are open-sourced under [GNU Public License v3](./LICENSE)