From 574631d8ffa27878c0224436a935068b388a0568 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?jules=20goull=C3=A9e?= Date: Thu, 25 Nov 2021 19:29:07 +0100 Subject: [PATCH] Mint signature (#22) * wip * mint signature * ordering * signature mint and coverage check * github actions ci root * ci node version * minted counter --- .github/workflows/main.yml | 10 +- .run/test_coverage_check.run.xml | 12 + .../contracts/contracts/CyberDropBase.sol | 131 +- .../contracts/contracts/CyberTokenBase.sol | 12 +- .../CyberDestinationFactoryFacet.sol | 2 +- .../CyberDestinationUtilityFactoryFacet.sol | 2 +- .../Object/CyberObjectFactoryFacet.sol | 2 +- .../contracts/libraries/LibDropStorage.sol | 4 +- packages/contracts/lib/utils.ts | 17 + packages/contracts/package-lock.json | 1590 +++++++++++++++++ packages/contracts/package.json | 14 +- .../contracts/scripts/createDropForwarder.ts | 2 +- packages/contracts/scripts/mint.ts | 14 +- packages/contracts/test/cyberDropBase.spec.ts | 846 ++++++--- .../CyberDestinationFactoryFacet.ts | 260 +-- .../CyberDestinationUtilityFactoryFacet.ts | 242 ++- .../typechain-types/CyberDropBase.ts | 192 +- .../CyberObjectFactoryFacet.ts | 242 ++- .../typechain-types/CyberTokenBase.ts | 10 +- .../CyberDestinationFactoryFacet__factory.ts | 204 +-- ...DestinationUtilityFactoryFacet__factory.ts | 192 +- .../factories/CyberDropBase__factory.ts | 184 +- .../CyberObjectFactoryFacet__factory.ts | 192 +- .../factories/CyberTokenBase__factory.ts | 10 +- .../factories/ERC1155URIStorage__factory.ts | 2 +- .../factories/LibAppStorage__factory.ts | 2 +- .../factories/LibDiamond__factory.ts | 2 +- .../factories/LibDropStorage__factory.ts | 2 +- packages/contracts/typechain-types/index.ts | 4 +- 29 files changed, 3201 insertions(+), 1197 deletions(-) create mode 100644 .run/test_coverage_check.run.xml rename packages/contracts/contracts/{ => Diamantaires}/Destination/CyberDestinationFactoryFacet.sol (81%) rename packages/contracts/contracts/{ => Diamantaires}/DestinationUtility/CyberDestinationUtilityFactoryFacet.sol (81%) rename packages/contracts/contracts/{ => Diamantaires}/Object/CyberObjectFactoryFacet.sol (80%) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index c9831d2..5057923 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -18,7 +18,7 @@ jobs: - uses: actions/checkout@v2 - uses: actions/setup-node@v2 with: - node-version: 12.x + node-version: 16.x - uses: actions/cache@v2 with: path: '**/node_modules' @@ -32,7 +32,11 @@ jobs: env: CI: true - name: Testing - run: npm test + run: cd packages/contracts && npm run test:coverage + env: + CI: true + - name: Testing Coverage Check + run: cd packages/contracts && npm run test:coverage:check env: CI: true lint: @@ -43,7 +47,7 @@ jobs: - uses: actions/checkout@v2 - uses: actions/setup-node@v2 with: - node-version: 12.x + node-version: 16.x - uses: actions/cache@v2 with: path: '**/node_modules' diff --git a/.run/test_coverage_check.run.xml b/.run/test_coverage_check.run.xml new file mode 100644 index 0000000..d3cf12b --- /dev/null +++ b/.run/test_coverage_check.run.xml @@ -0,0 +1,12 @@ + + + + + +