@paypr/ethereum-contracts v1.4.0
Paypr Ethereum Contracts
Setup
Node
- Install
nvm(Node Version Manager) cdto the project directory and execute the following:nvm install nvm use npm install
IDE Setup
This project uses EditorConfig for IDE configuration.
See .editorconfig for settings.
Many popular IDEs and editors support this out of the box or with a plugin.
Development
Prettier
This project uses Prettier, so please run it before checking in:
npm run prettySee .prettierrc for settings.
Some IDEs and editors have plugins for running Prettier.
Linting
This project uses ESLint. Check linting before checking in:
npm run lintSee tslint.json for settings.
Many IDEs and editors support TSLint.
Testing
This project uses Jest for testing. Run tests before checking in.
npm run testBuilding
npm run buildContracts
To create a single file for a contract:
npx @poanet/solidity-flattener <sol-file>License Information
Paypr Ethereum Contracts may be used in commercial projects and applications with the purchase of a commercial license. See https://paypr.money/ to contact us.
Verification
Set up a .secrets.json file that looks similar to example.secrets.json:
After deploying your contract, you can verify it by running the following.
Rinkeby
npx hardhat verify --network rinkeby CONTRACT_ADDRESSFor a diamond contract, you'll need to pass the arguments to the diamond contract, and pass the contract as well:
npx hardhat verify --network rinkeby \
--constructor-args examples/payprConstructorArgs.js \
CONTRACT_ADDRESSMainnet
npx hardhat verify --network rinkeby CONTRACT_ADDRESSnpx hardhat verify --network mainnet \
--constructor-args examples/payprConstructorArgs.js \
CONTRACT_ADDRESS3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago