All Projects → ryanio → truffle-mint-dai

ryanio / truffle-mint-dai

Licence: other
Demonstration repo to show how you can acquire your own forked mainnet DAI.

Programming Languages

javascript
184084 projects - #8 most used programming language
solidity
1140 projects

Truffle Mint Dai

Actions Status

This repo is a Truffle project as an accompanying supplement to the article Forking Ethereum Mainnet: Mint Your Own DAI.

This repo contains a test suite that shows you how you can acquire your own DAI on a forked mainnet.

First run yarn and then set up your environment variables by running:

export ETHEREUM_NODE=https://mainnet.infura.io/v3/your_project_id

(If using geth, ETHEREUM_NODE may look like: http://localhost:8545)

and

export USER_ADDRESS=$(yarn --silent getAddress)

Then run:

yarn ganache

Tests

After your forked mainnet with ganache-cli is up and running, in a separate terminal run:

yarn test

You should expect output like below:

Sample Test Output

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].