beruwala-smart-contracts
v1.0.0
Published
## Branch rule naming:
Downloads
1
Readme
beruwala-smart-contracts
Branch rule naming:
[feat/bug][YY][MM]/[jira-id]-[jira issue title]
feat - for features bug - for bugs/fixes YY - year in 2 digits MM - month in 2 digits jira-id - jira identificator of issue like ROSC-17
Example of branch name: feat2308/rosc-17-login-page
PullRequest rule naming:
Get it from issue in Jira with identificator and put it like "JIRA-ID: Issue Title".
Example of PR name:
BM-17: Login page
How link libraries in testing
const DLTStrings = await ethers.getContractFactory('DLTStrings');
const roStrings = await DLTStrings.deploy();
const DLTRoleManager = await ethers.getContractFactory('DLTRoleManager', {
libraries: {
DLTStrings: roStrings.target,
},
});
How to use console for testing
In .sol file:
- import 'hardhat/console.sol';
- console.log('7. BLACKLIST_MANAGER_ROLE %s', DLTStrings.iToHex(roleHash));
- console.log( "Transferring from %s to %s %s tokens", msg.sender, to, amount );
Test only one file
yarn t ./test/DLTRoleManager.ts
Test all
yarn t
How to local deploy
- In one terminal execute: yarn n
- In second terminal execute: yarn dl
How to update solc:
- npx solc --version
- npm update solc
- npm install solc@<versión específica> --save-dev