-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #21 from jmrossy/2.1.0
Deprecate Celo legacy transaction type (0)
- Loading branch information
Showing
15 changed files
with
441 additions
and
395 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,75 @@ | ||
# Contributing | ||
|
||
Thank you for your interest in improving the celo-ethers-wrapper. | ||
|
||
This guide is intended to help you get started with contributing. By following these steps, you will | ||
understand the development process and workflow. | ||
|
||
### Cloning the repository | ||
|
||
To start contributing to the project, fork it and clone it to your local machine using git: | ||
|
||
```sh | ||
$ git clone https://github.com/jmrossy/celo-ethers-wrapper.git | ||
``` | ||
|
||
Navigate to the project's root directory: | ||
|
||
```sh | ||
$ cd celo-ethers-wrapper | ||
``` | ||
|
||
### Installing Node.js | ||
|
||
We use [Node.js](https://nodejs.org/en/) to run the project locally. You need to install the | ||
**Node.js version** specified in [package.json > engines > node](/package.json). To do so, run: | ||
|
||
```sh | ||
$ nvm install <specified-version> | ||
$ nvm use <specified-version> | ||
``` | ||
|
||
### Installing dependencies | ||
|
||
Once in the project's root directory, run the following command to install the project's | ||
dependencies: | ||
|
||
```sh | ||
$ yarn install | ||
``` | ||
|
||
After installing the dependencies, the project is ready to be run. | ||
|
||
### Running the test suite | ||
|
||
1. Create an `.env.test.local` file: | ||
|
||
```sh | ||
$ cp tests/.env.test.example tests/.env.test.local | ||
``` | ||
|
||
2. Generate a brand new wallet (or use an existing development wallet of yours) and paste its | ||
mnemonic phrase into `.env.test.local`: | ||
|
||
```txt | ||
MNEMONIC='<PASTE YOUR MNEMONIC PHRASE HERE>' | ||
``` | ||
|
||
3. Ensure the wallet address has at least 1 CELO and 1 USDC on the Celo Alfajores testnet. | ||
|
||
If you need more, you can request: | ||
1. testnet CELO at [faucet.celo.org](https://faucet.celo.org/alfajores), and | ||
2. testnet USDC from | ||
[faucet.circle.com](https://faucet.circle.com/). | ||
|
||
4. Now you're ready to run tests with: | ||
```sh | ||
$ yarn test | ||
``` | ||
> **INFO** Some tests are run automatically when you open a Pull Request on GitHub. | ||
### Open a Pull Request | ||
✅ Now you're ready to contribute to celo-ethers-wrapper! |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.