Skip to content

adrianmcli/simple-zap

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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):

yarn test

Environment Variables

Create a .env file at the project root with the following:

RPC_URL=https://eth-mainnet.alchemyapi.io/v2/<alchemy_api_key>

About

An attempt to demonstrate a simple zap contract

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors