https://github.com/primitivefinance/rmm-core-dapptools
Rmm protocol core contracts in dapptools testing environment.
https://github.com/primitivefinance/rmm-core-dapptools
Last synced: 2 months ago
JSON representation
Rmm protocol core contracts in dapptools testing environment.
- Host: GitHub
- URL: https://github.com/primitivefinance/rmm-core-dapptools
- Owner: primitivefinance
- License: unlicense
- Created: 2021-09-22T22:34:59.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2022-01-02T22:46:10.000Z (over 4 years ago)
- Last Synced: 2025-03-15T01:14:53.468Z (over 1 year ago)
- Language: Solidity
- Homepage:
- Size: 54.7 KB
- Stars: 2
- Watchers: 6
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
#
DappTools Template
**Template repository for getting started quickly with DappTools**

##
```
login to user
. "$HOME/.nix-profile/etc/profile.d/nix.sh"
make test
make testCDF
```
## Building and testing
```sh
git clone https://github.com/gakonst/dapptools-template
cd dapptools-template
make
make test
```
## Deploying
Contracts can be deployed via the `make deploy` command. Addresses are automatically
written in a name-address json file stored under `out/addresses.json`.
We recommend testing your deployments and provide an example under [`scripts/test-deploy.sh`](./scripts/test-deploy.sh)
which will launch a local testnet, deploy the contracts, and do some sanity checks.
Environment variables under the `.env` file are automatically loaded (see [`.env.example`](./.env.example)).
Be careful of the [precedence in which env vars are read](https://github.com/dapphub/dapptools/tree/2cf441052489625f8635bc69eb4842f0124f08e4/src/dapp#precedence).
We assume `ETH_FROM` is an address you own and is part of your keystore.
If not, use `ethsign import` to import your private key.
See the [`Makefile`](./Makefile#25) for more context on how this works under the hood
We use Alchemy as a remote node provider for the Mainnet & Rinkeby network deployments.
You must have set your API key as the `ALCHEMY_API_KEY` enviroment variable in order to
deploy to these networks
### Mainnet
```
ETH_FROM=0x3538b6eF447f244268BCb2A0E1796fEE7c45002D make deploy-mainnet
```
### Rinkeby
```
ETH_FROM=0x3538b6eF447f244268BCb2A0E1796fEE7c45002D make deploy-rinkeby
```
### Custom Network
```
ETH_RPC_URL= make deploy
```
### Local Testnet
```
# on one terminal
dapp testnet
# get the printed account address from the testnet, and set it as ETH_FROM. Then:
make deploy
```
## Installing the toolkit
If you do not have DappTools already installed, you'll need to run the below
commands
### Install Nix
```sh
# User must be in sudoers
curl -L https://nixos.org/nix/install | sh
# Run this or login again to use Nix
. "$HOME/.nix-profile/etc/profile.d/nix.sh"
```
### Install DappTools
```sh
curl https://dapp.tools/install | sh
```
## DappTools Resources
* [DappTools](https://dapp.tools)
* [Hevm Docs](https://github.com/dapphub/dapptools/blob/master/src/hevm/README.md)
* [Dapp Docs](https://github.com/dapphub/dapptools/tree/master/src/dapp/README.md)
* [Seth Docs](https://github.com/dapphub/dapptools/tree/master/src/seth/README.md)
* [DappTools Overview](https://www.youtube.com/watch?v=lPinWgaNceM)
* [Awesome-DappTools](https://github.com/rajivpo/awesome-dapptools)