Skip to content

Commit e111ed9

Browse files
authored
Apply some housekeeping - part1 (#208)
2 parents c179ce5 + 2491d36 commit e111ed9

File tree

10 files changed

+20
-62
lines changed

10 files changed

+20
-62
lines changed

.github/workflows/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ jobs:
3131
- name: Build
3232
run: npm run build
3333
- name: Check storage layout
34-
run: npm run test-storage-layout
34+
run: npm run check-storage-layout
3535
- name: Test deployment
3636
run: npm run deploy
3737
- name: Test Timelock deployment

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
- [x] `IexecPoco2Delegate.sol`
88

99
### Features
10+
- Housekeeping (#207, )
1011
- Add Halborn "Poco v5.5 & Voucher v1.0" audit report (#205)
1112
- Refactor Factory deployer (#206)
1213
- Enable native tests on CI (#204)

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ PoCo smart contracts come with a test suite in the `./test` folder. You can star
8989

9090
```
9191
npm install
92-
npm run autotest
92+
npm run test
9393
```
9494

9595
Additionally, you can produce a coverage report using the following command:
@@ -108,7 +108,7 @@ The automatic testing command uses the Hardhat network by default to run the tes
108108
```
109109
- Or run any other blockchain client.
110110
2. **[Optional]** Update the configuration
111-
111+
112112
If your blockchain listen to a port that is not 8545, or if the blockchain is on a different node, update the `hardhat.config.ts` configuration (network ports, accounts with mnemonic, ..) accordingly to the [Hardhat Configuration](https://hardhat.org/hardhat-runner/docs/config) documentation.
113113
3. Run tests
114114
```

checkCopyright.sh

Lines changed: 0 additions & 16 deletions
This file was deleted.

package.json

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,17 +11,16 @@
1111
"build": "npx hardhat compile",
1212
"deploy": "npx hardhat deploy",
1313
"deploy:timelock": "hardhat run scripts/deploy-timelock.ts",
14-
"test-storage-layout": "npx hardhat run scripts/test-storage.ts",
14+
"check-storage-layout": "npx hardhat run scripts/check-storage.ts",
1515
"test": "REPORT_GAS=true npx hardhat test",
1616
"test:native": "TEST__IS_NATIVE_CHAIN=true npx hardhat test test/byContract/IexecEscrow/IexecEscrowNative.test.ts",
17-
"autotest": "./test.sh",
1817
"coverage": "npx hardhat coverage",
1918
"verify": "npx hardhat verify",
2019
"format": "npx prettier --write",
2120
"uml": "npm run sol-to-uml && npm run puml-to-links && npm run storage-to-diagrams",
22-
"sol-to-uml": "npx zx tools/sol-to-uml.mjs",
23-
"puml-to-links": "npx zx tools/puml-to-links.mjs",
24-
"storage-to-diagrams": "npx zx tools/storage-to-diagrams.mjs",
21+
"sol-to-uml": "npx zx scripts/tools/sol-to-uml.mjs",
22+
"puml-to-links": "npx zx scripts/tools/puml-to-links.mjs",
23+
"storage-to-diagrams": "npx zx scripts/tools/storage-to-diagrams.mjs",
2524
"doc": "npx hardhat docgen"
2625
},
2726
"lint-staged": {
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,15 @@
33
// TODO: Add this script to pre-commit hook in order to keep up-to-date links
44

55
// Render .puml files (referenced in markdown comments) to web links
6-
// Usage: "npm run puml2links" or "npx zx tools/puml-to-links.mjs"
6+
// Usage: "npm run puml2links" or "npx zx scripts/tools/puml-to-links.mjs"
77
// Note:
8-
// Using server-side rendering with `puml-for-markdown` since `node-plantuml``
8+
// Using server-side rendering with `puml-for-markdown` since `node-plantuml``
99
// requires Java on host. See https://github.com/danielyaa5/puml-for-markdown
1010
// Note:
11-
// To ensure freshness of a parent diagram, it might be necessary to
11+
// To ensure freshness of a parent diagram, it might be necessary to
1212
// remove everything before <!--![ABC](./abc.puml)--> from
1313
// [![ABC](https://tinyurl.com/abcdef)](https://tinyurl.com/abcdef)<!--![ABC](./abc.puml)-->
14-
// in order to force recreation of this parent diagram made of updated and
14+
// in order to force recreation of this parent diagram made of updated and
1515
// included child diagrams.
1616

1717

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/usr/bin/env zx
22

3-
// Usage: "npm run sol-to-uml" or "npx zx tools/solidity-to-uml.mjs"
3+
// Usage: "npm run sol-to-uml" or "npx zx scripts/tools/solidity-to-uml.mjs"
44
// For sol2uml documentation, see https://github.com/naddison36/sol2uml#usage
55

66

@@ -37,7 +37,7 @@ await generateClassDiagramOfContracts(
3737

3838
/**
3939
* Generate UML class diagrams for contracts in a given directory.
40-
* @param directory
40+
* @param directory
4141
*/
4242
async function generateClassDiagramOfDirectory(directory) {
4343
console.log(`Generating class diagram for directory : ${directory}`);
@@ -48,13 +48,13 @@ async function generateClassDiagramOfDirectory(directory) {
4848

4949
/**
5050
* Generate UML class diagrams for a set of given contracts.
51-
* @param contractsList
52-
* @param diagramName
51+
* @param contractsList
52+
* @param diagramName
5353
*/
5454
async function generateClassDiagramOfContracts(contractsList, diagramName) {
5555
console.log(`Generating class diagram for contracts : ${contractsList}`);
5656
const baseContracts = contractsList.join(','); // => c1,c2,c3
57-
// -b, --baseContractNames <name1,name2>
57+
// -b, --baseContractNames <name1,name2>
5858
// only output contracts connected to these comma separated base contract names
5959
await $`cd ${projectRootDir}/ &&
6060
npx sol2uml class contracts/ -b ${baseContracts} -o docs/uml/class-uml-${diagramName}.svg`
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/usr/bin/env zx
22

3-
// Usage: "npm run storage-to-diagrams" or "npx zx tools/storage-to-diagrams"
3+
// Usage: "npm run storage-to-diagrams" or "npx zx scripts/tools/storage-to-diagrams"
44
// Check sol2uml documentation at https://github.com/naddison36/sol2uml#storage-usage.
55

66

@@ -11,10 +11,10 @@ generateStorageDiagram('IexecPocoBoostDelegate')
1111

1212
/**
1313
* Generate storage diagram of a given contract.
14-
* @param contractName
14+
* @param contractName
1515
*/
1616
async function generateStorageDiagram(contractName) {
1717
console.log(`Generating storage diagram for contract : ${contractName}`);
18-
await $`cd ${projectRootDir} &&
18+
await $`cd ${projectRootDir} &&
1919
npx sol2uml storage -c ${contractName} -o docs/uml/storage-${contractName}.svg .`
2020
}

test.sh

Lines changed: 0 additions & 26 deletions
This file was deleted.

0 commit comments

Comments
 (0)