-
Notifications
You must be signed in to change notification settings - Fork 0
P2P payment system using smart contracts on Ethereum. Fees are mediated through loyalty levels and are captured by intermediary. Remix is used to write deploy contracts, OpenZeppelin is imported to use Tether as currency
nonoperry/PapiGo
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
1. Download Ganache and set up server - used to backtest smart contracts (in a real setting) 2. Launch server 3. Open Remix and create a new project 4. Within the project, create a solidty file 5. Write your contract within that file 6. Import necessary libraries - OpenZeppelin to use tether 7. Compile contract 8. Deploy contract 9. Interact with contract The PapiGo contract can be found in the contracts folder. REMIX DEFAULT WORKSPACE Remix default workspace is present when: i. Remix loads for the very first time ii. A new workspace is created with 'Default' template iii. There are no files existing in the File Explorer This workspace contains 3 directories: 1. 'contracts': Holds three contracts with increasing levels of complexity. 2. 'scripts': Contains four typescript files to deploy a contract. It is explained below. 3. 'tests': Contains one Solidity test file for 'Ballot' contract & one JS test file for 'Storage' contract. SCRIPTS The 'scripts' folder has four typescript files which help to deploy the 'Storage' contract using 'web3.js' and 'ethers.js' libraries. For the deployment of any other contract, just update the contract's name from 'Storage' to the desired contract and provide constructor arguments accordingly in the file `deploy_with_ethers.ts` or `deploy_with_web3.ts` In the 'tests' folder there is a script containing Mocha-Chai unit tests for 'Storage' contract. To run a script, right click on file name in the file explorer and click 'Run'. Remember, Solidity file must already be compiled. Output from script will appear in remix terminal. Please note, require/import is supported in a limited manner for Remix supported modules. For now, modules supported by Remix are ethers, web3, swarmgw, chai, multihashes, remix and hardhat only for hardhat.ethers object/plugin. For unsupported modules, an error like this will be thrown: '<module_name> module require is not supported by Remix IDE' will be shown.
About
P2P payment system using smart contracts on Ethereum. Fees are mediated through loyalty levels and are captured by intermediary. Remix is used to write deploy contracts, OpenZeppelin is imported to use Tether as currency
Topics
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published