This is the repository with the Proof of Concept of the Pull Payment Protocol V3. It includes smart contracts, Decentralized Application ( DApp) Backend and Off-chain service which are required for the whole system to run.
- NodeJS
Once you’re done, run node --version on a terminal to check your installation: any version of the 10.x or 12.x line should be compatible with most Ethereum software.
- The rest of the stuff should come through the
package.json
as dev dependencies.If something is missing, please add to the
package.json
and update README accordingly!
The root of the repository includes whatever is required for the smart contracts development, testing and migration/deployments. The actual
smart contracts can be found in ./contracts
and their corresponding tests can be found in ./tests
.
In ./scripts
you can find some useful scripts for running the tests or starting a local ganache instance.
First, you need to duplicate the secrets.example.json
as secrets.json
and add a seed phrase which will be used for the smart contract development. You can
use the one provided, no worries. You can get a new seed phrase here.
The below should run from the root dir and in the order specified above, i.e. start local ganache, compile smart contracts and run the tests.
# from root dir
yarn install
# OR
npm install
# for plain blockchain
yarn run ganache
# OR for TestNet Fork
yarn run ganache_test
# OR for MainNet Fork
yarn run ganache_main
Info on local blockchain forking using ganache-cli here
npx truffle compile
yarn run test
# OR
npm run test
# OR
./scripts/test.sh
To verify contracts on test network following command can be used-
npm run verify_test CONTRACT_NAME@CONTRACT_ADDDRESS
To verify contracts on main network following command can be used-
npm run verify_main CONTRACT_NAME@CONTRACT_ADDDRESS