@fungifi/spore v0.0.2
FungiFi Spore
Core smart contracts of 🍄 FungiFi
Addresses
| Network | Address |
|---|---|
| Görli | Not yet deployed |
| Kovan | Not yet deployed |
| Rinkeby | Not yet deployed |
| Mainnet | Not yet deployed |
| Ropsten | Not yet deployed |
Requirements
Setup
Clone the repo
$ git clone git@github.com:FungiFi/fungifi-spore.git
$ cd fungifi-sporeInstall dependencies
$ npm installBuild the project
$ npm run buildRun unit tests
$ npm run testDeploy
This project deploys the smart contracts to the Ethereum blockchain as well as publishing the NPM package whenever a release is cut from the repository in GitHub.
| Branch | Network | NPM Package Version |
|---|---|---|
develop | ropsten | < 0.0.0 |
main | mainnet | >= 1.0.0 |
Test
| Repository Secret | Description |
|---|---|
ROPSTEN_NETWORK_URL | The URL of the network provider node. |
To deploy and publish to test, create a release in GitHub off of the develop branch.
IMPORTANT: For test releases, mark it as a "pre-release" before publishing, otherwise the workflow will not execute.
Production
| Repository Secret | Description |
|---|---|
MAINNET_NETWORK_URL | The URL of the network provider node. |
To deploy and publish to production, create a release in GitHub off of the main branch.
IMPORTANT: For production releases, DO NOT mark it as a "pre-release" before publishing, otherwise the workflow will not execute.
Configuration
Local Accounts
For local development, test accounts are generated and funded with 100 ETH from the Bip39 mnemonic:
trust wait champion hero treat flush tip glow maid wear view record
| HD Path | Address | Description |
|---|---|---|
m/44'/60'/0'/0/0 | 0x673834Dea22bDB68293c912277e5d35A2d24c33d | The spore owner |
m/44'/60'/0'/0/1 | 0xECCe1BDE07baaa263855eC463D99eD198ca74b70 | NFT seller |