Skip to content

Commit

Permalink
Version 3.5.0 (#102)
Browse files Browse the repository at this point in the history
### 0.8.0
- Update sol => 0.8.0
- Update tests
- Upgrade all dependencies
- Adapt to new OnchainID version
- remove SafeMath
- add helpers + deployIdentityProxy method
- clean tests + remove redundancies
- export artifacts
- update solhint rules
- remove warning for unused variables on solidity
- import OZ contracts to contracts + update to 0.8.0
- Add SPDX Licenses
### Permissioning
- modify contracts
- add compliance manager role
- add multipurpose compliance function for custom compliance management
- add tests for all permissioning functions
- test coverage is 100%
### DvD transfers
- add DVD transfer manager contract
- add tests for DVD functions
- test coverage is 100%

includes PR #89 #90 & #96
Co-authored-by: Kevin Thizy <kevin.thizy@intech.lu>
Co-authored-by: joachimlebrun <joachim@tokeny.com>
  • Loading branch information
Joachim-Lebrun authored Aug 17, 2021
1 parent 737253a commit d980af6
Show file tree
Hide file tree
Showing 51 changed files with 26,410 additions and 8,060 deletions.
3 changes: 2 additions & 1 deletion .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
"prefer-destructuring": 0,
"prettier/prettier": "error",
"quote-props": ["error", "as-needed"],
"strict": 0
"strict": 0,
"no-undef": "off"
}
}
16 changes: 8 additions & 8 deletions .github/workflows/publish-prerelease.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ jobs:
- uses: actions/setup-node@v1
with:
node-version: 12
- run: yarn
- run: yarn build
- run: npm ci
- run: npm run build

publish-npm:
needs: build
Expand All @@ -25,9 +25,9 @@ jobs:
with:
node-version: 12
registry-url: https://registry.npmjs.org/
- run: yarn
- run: yarn build
- run: yarn publish --tag beta
- run: npm ci
- run: npm run build
- run: npm publish --tag beta
env:
NODE_AUTH_TOKEN: ${{secrets.npm_token}}

Expand All @@ -41,8 +41,8 @@ jobs:
node-version: 12
registry-url: https://npm.pkg.github.com/
scope: '@tokenysolutions'
- run: yarn
- run: yarn build
- run: yarn publish --tag beta
- run: npm ci
- run: npm run build
- run: npm publish --tag beta
env:
NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}
16 changes: 8 additions & 8 deletions .github/workflows/publish-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ jobs:
- uses: actions/setup-node@v1
with:
node-version: 12
- run: yarn
- run: yarn test
- run: npm ci
- run: npm run build

publish-npm:
needs: build
Expand All @@ -25,9 +25,9 @@ jobs:
with:
node-version: 12
registry-url: https://registry.npmjs.org/
- run: yarn
- run: yarn build
- run: yarn publish
- run: npm ci
- run: npm run build
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{secrets.npm_token}}

Expand All @@ -41,8 +41,8 @@ jobs:
node-version: 12
registry-url: https://npm.pkg.github.com/
scope: '@tokenysolutions'
- run: yarn
- run: yarn build
- run: yarn publish
- run: npm ci
- run: npm run build
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}
21 changes: 7 additions & 14 deletions .github/workflows/push_checking.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,20 +16,12 @@ jobs:
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}

- name: Install dependencies

run: yarn install --frozen-lockfile

run: npm ci
- name: Lint sources
run: yarn run lint
run:
npm run lint

- name: 'Check for uncommitted changes'
run: |
git diff --exit-code --stat -- . \
|| (echo "##[error] found changed files after build. please 'yarn install --frozen-lockfile && yarn run lint:nofix && yarn run test:unit'" \
"and check in all changes" \
&& exit 1)
unit_test:
name: Unit tests
runs-on: ubuntu-latest
Expand All @@ -47,7 +39,8 @@ jobs:
node-version: ${{ matrix.node-version }}

- name: Install dependencies
run: yarn install --frozen-lockfile

run: npm ci
- name: Build application
run: npm run build
- name: Run tests
run: yarn run test
run: npm run test
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,5 @@ bin
.vscode/

# NPM
package-lock.json
gas-report
/bin/
7 changes: 5 additions & 2 deletions .solhint.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,16 @@
"func-order": "off",
"mark-callable-contracts": "off",
"max-states-count": "off",
"compiler-version": ["error", "^0.6.0"],
"compiler-version": ["error", "^0.8.0"],
"no-unused-vars": ["off"],
"no-empty-blocks": ["off"],
"var-name-mixedcase": ["off"],
"quotes": ["error","single"],
"avoid-low-level-calls": ["off"],
"no-complex-fallback": ["off"],
"no-inline-assembly": ["off"]
"no-inline-assembly": ["off"],
"func-name-mixedcase": ["off"],
"reason-string": ["off"],
"func-visibility": ["warn",{"ignoreConstructors":true}]
}
}
37 changes: 37 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
# Change Log
All notable changes to this project will be documented in this file.

## [3.5.0]

### Update
- Updated solidity to version 0.8.0
- Update comments in contracts code
- Update ONCHAINID imports with the proxified version (version 1.4.0)
- Update all dependencies to the latest stable version



### Added
- **DVDTransferManager** contract
- Tests for DVDTransferManager functions (100% test coverage)
- **callComplianceFunction** on OwnerManager to interact with any custom compliance function
- complianceManager role on OwnerManager
- exports for all contracts to be used in SDK
- flat contract for DVDTransferManager
- ONCHAINID proxified contract deployer for tests


### Fix

- flat contracts script : fix typo in token flattener command

### Changed

- Release & pre release flows (yarn -> npm)
- removed useless lines on `removeClaimTopics` function
- add try/catch in `isVerified` function to avoid errors with incompatible claims
- removed useless lines on `removeTrustedIssuer` function
- changed required key for roles on AgentManager contract (MANAGEMENT key -> EXECUTION key)
- changed required key for roles on OwnerManager contract (MANAGEMENT key -> EXECUTION key)
- import interfaces from openzeppelin instead of local copy
- contract name : **Storage** -> **TokenStorage**
Loading

0 comments on commit d980af6

Please sign in to comment.