Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/anupam-io/solctemplate
Custom smart contract development kit with mocha & ganache-cli
https://github.com/anupam-io/solctemplate
ganache ganache-cli mocha solc solc-js solcjs solctemplate-testing solidity-template
Last synced: 18 days ago
JSON representation
Custom smart contract development kit with mocha & ganache-cli
- Host: GitHub
- URL: https://github.com/anupam-io/solctemplate
- Owner: anupam-io
- Created: 2021-01-03T03:53:55.000Z (almost 4 years ago)
- Default Branch: master
- Last Pushed: 2021-03-07T18:49:15.000Z (over 3 years ago)
- Last Synced: 2024-09-11T12:59:06.910Z (2 months ago)
- Topics: ganache, ganache-cli, mocha, solc, solc-js, solcjs, solctemplate-testing, solidity-template
- Language: JavaScript
- Homepage:
- Size: 116 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Custom smart-contract development kit with mocha & ganache-cli
## Instructions for deploying on a network/ganache
- If you are testing on ganache
- you don't need a seed phrase, as you can query ganache for unlocked accounts
- If you want to deploy on a network(such as a test network or mainnet)
- you need to set `seedPhrase` and `rpcEndpoint` appropriately## How to run?
- `npm i`: for package installation
- `npm run compile`: compilation of contracts
```
> [email protected] compile
> node compileAll.jsCompiling MyContract.sol ...
MyContract.sol compiled.
```
- `npm run test`: *mocha* tests
```
> [email protected] test
> mochaMyContract
✓ is correctly deploying on the network. (38ms)1 passing (166ms)
```
- `npm run migrate`: run all deploy scripts in `migrations` folder
```
> [email protected] migrate
> node migrateAll.js;Working good here.
Attempting to deploy from account 0x00F167379B6492581e4D96389411cdc591c112C3
Successfully deployed at: 0xFb056459D6B077CC3cDE71E592f63dA07BEb78aC
```## Dependencies
```
"dependencies": {
"@truffle/hdwallet-provider": "^1.2.2",
"async": "^3.2.0",
"fs-extra": "^9.0.1",
"ganache-cli": "^6.12.1",
"mocha": "^8.2.1",
"solc": "^0.8.0",
"web3": "^1.3.1"
}
```