rmm-ethers
Inspired by Liquity Ethers.
Overview
- User (frontend, connected user, etc.) calls a function in EthersRmm.ts
- EthersRmm calls into the SendableEthersRmm
- SendableEthersRmm calls into PopulatableEthersRmm
- PopulatableEthersRmm builds the transaction and packages it, sends it back to sendable
- Sendable broadcasts the transaction to the network, returning a SentEthersRmmTransaction to EthersRmm
- EthersRmm resolves the SentEthersRmmTransaction receipt, once a receipt exists
- EthersRmm returns the details of the receipt to the original user.
Usage
Pre Requisites
Before running any command, make sure to install dependencies:
$ yarn install
Compile
Compile the smart contracts with Hardhat:
$ yarn compile
Test
Run the Mocha tests:
$ yarn test