Cephalocoin is a project to show how easy it is to create a cryptocurrency that complies with popular standards but does something completely unexpected.
Cephalocoin will look different almost each time you look at it, just like most of the cephalopods do, hence the name.
The development environment is inside the container. Edit the files outside, then build and deploy them with the help of the Makefile
.
Testing is also possible with it.
Build the container first then start it:
make cbuild
make start
On Windows, use nmake instead of make
.
Check out the Makefile
for the most used commands.
Compile first, then deploy to the local blockchain:
make compile
make deploy
make test
let addresses = await web3.eth.getAccounts()
or use the command make addresses
Add a network to Metamask:
- Network name: Local blockchain
- New RPC URL: http://127.0.0.1:8545
- If it says that another network already uses this ID, simply delete the network
- The colliding network will probably be the predefined Localhost 8545, which you will just create yourself
- Chain ID: 1337 (could be different for you)
- Currency Symbol: ETH
- Block Explorer URL: leave blank
Import one of the addresses generated by ganache
- It Metamask, click your profile picture
- Click
Import Account
- Paste the corresponding private key from
keys.json
It contains the private keys of the test addresses that ganache generated
It contains the ABI of cephalocoin. Use it with web3
or ethers
, when you want to access the contract's functions.
The content is licensed under MIT.