https://github.com/adrianmcli/simple-zap
An attempt to demonstrate a simple zap contract
https://github.com/adrianmcli/simple-zap
Last synced: about 1 year ago
JSON representation
An attempt to demonstrate a simple zap contract
- Host: GitHub
- URL: https://github.com/adrianmcli/simple-zap
- Owner: adrianmcli
- Created: 2022-01-28T23:27:27.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2022-01-31T01:59:07.000Z (about 4 years ago)
- Last Synced: 2025-01-17T04:44:22.118Z (about 1 year ago)
- Language: Solidity
- Size: 172 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Simple Zap Example
This project demonstrates a basic Hardhat project interacting with an external contract.
Its abilities are demonstrated in the `test/sample-test.js` file:
1. You can grab information from an external contract (e.g. WETH address).
2. You can mint yourself USDC tokens for testing.
3. You can make a swap on UniswapV2 on behalf of the user.
Try running the test (it is pinned to a block number and therefore should be deterministic):
```shell
yarn test
```
# Environment Variables
Create a `.env` file at the project root with the following:
```
RPC_URL=https://eth-mainnet.alchemyapi.io/v2/
```