A smart contract that automatically sends a part of the payment that splits the payment it receives and sends the parts to pre defined-contract adresses
npm install -g truffle
truffle develop
--> this will also run a local test blockchain on your machine on port 9545
within the development console run
compile
migrate --reset
<<<<<<< HEAD
in the file migrations/2_deploy_contracts.js
change the payee addresses in this line to the 4 needed addresses:
[addressOfSharedBookdAuthorsWallet, addressOfExponantialSolidityWallet, addressOfGranitoGranitoNgoWallet, addressOfNinosDeGuantaroNgoWallet]
to 4 addresses from the truffle develop command that you ran before
Metamask https://chrome.google.com/webstore/detail/metamask/nkbihfbeogaeaoehlefnkodbefgpgknn after setting up metamask connect it to your local blockchain: (connect to the local blockchain that runs on port 9545)
the command truffle develop outputed some private keys created on your local blockchain. In the metamask extension click on import account and type in one of the private keys from the truffle develop command