Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tansudasli/ethereum-sandbox
Ethereum core concepts
https://github.com/tansudasli/ethereum-sandbox
dapps ethereum mocha-tests smart-contracts solidity
Last synced: 9 days ago
JSON representation
Ethereum core concepts
- Host: GitHub
- URL: https://github.com/tansudasli/ethereum-sandbox
- Owner: tansudasli
- Created: 2019-10-20T13:19:05.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2023-01-24T00:44:09.000Z (almost 2 years ago)
- Last Synced: 2024-10-12T13:46:42.117Z (25 days ago)
- Topics: dapps, ethereum, mocha-tests, smart-contracts, solidity
- Language: JavaScript
- Size: 464 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 12
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# ethereum-sandbox
- basic-smart-contract:
## How to start
to **start quickly**,
- Copy-Paste Inbox.sol content into [Remix IDE](remix.ethereum.org) which covers,
- Free Accounts w/ ETHER,
- IDE,
- Testing and
- Ethereum VM inside.
- Select *Rinkeby Test Network* . Which comes predefined accounts loaded w/ ETHER.to **start on your local** and **write tests** and manually create Ethereum projects,
You need: other things, below. **basic-smart-contract** project was created like below.
- `npm init` to initialize manually package.json
- `npm install --save [email protected]` solidity compiler
- `npm i -save mocha` for testing contracts
- `npm i -save web3` for web3 framework to do things w/ ethereum
- `npm i --save ganache-cli` for ganache local ethereum vmto **deploy Rinkeby Test Network**
1. Initialize *MetaMask* account in chrome browser. Save your Mnemonic!
2. To get free Ether into your MetaMask account, [use this url](https://faucet.rinkeby.io/)
3. Create an account on infura.io to connect specific node on Rinkeby network.
- create a project.
- copy endpoint of Rinkeby !! Not main network :)
4. Need truffle-hdwallet-provider this time. `npm i --save @truffle/hdwallet-provider`
5. Run `node deploy.js`, then get deployed address
6. Search that address in `https://rinkeby.etherscan.io/` or
in `remix.ethereum.org`, change Environment to `injected Web3`. Then At Address, enter deployed address to interact w/ deployed contractto **start on your local** and easily create Ethereum projects, You need:
- install **ganache-cli** for _local Ethereum VM_ `npm install -g ganache-cli`.
- Run `ganache-cli` to open server on 127.0.0.1:8545 !
- install **truffle** for easy development `npm install truffle -g`