mirror of
https://github.com/luxfi/onchain-id.git
synced 2026-11-02 14:38:24 +00:00
## [2.0.0] Version 2.0.0 Audited by Hacken, more details [here](https://tokeny.com/wp-content/uploads/2023/04/Tokeny_ONCHAINID_SC-Audit_Report.pdf) ### Breaking changes ## Deprecation Notice - ClaimIssuer `revokeClaim` is now deprecated, usage of `revokeClaimBySignature(bytes signature)` is preferred. ### Added - Add typechain-types (targeting ethers v5). - Add tests cases for `execute` and `approve` methods. - Add method `revokeClaimBySignature(bytes signature)` in ClaimIssuer, prefer using this method instead of the now deprecated `revokeClaim` method. - Add checks on ClaimIssuer to prevent revoking an already revoked claim. - Added Factory for ONCHAINIDs ### Updated - Switch development tooling to hardhat. - Implemented tests for hardhat (using fixture for faster testing time). - Prevent calling `approve` method with a non-request execute nonce (added a require on `executionNone`). - Update NatSpec of `execute` and `approve` methods. --------- Co-authored-by: Joachim <[email protected]>
48 lines
997 B
JavaScript
48 lines
997 B
JavaScript
module.exports = {
|
|
extends: [],
|
|
parserOptions: { ecmaVersion: 2018 },
|
|
root: true,
|
|
rules: {
|
|
'prettier/prettier': ['error', { singleQuote: true }],
|
|
'sort-imports': [
|
|
'error',
|
|
{
|
|
ignoreCase: true,
|
|
ignoreDeclarationSort: true,
|
|
ignoreMemberSort: false,
|
|
},
|
|
],
|
|
'import/no-unresolved': 'off',
|
|
'import/order': [
|
|
'error',
|
|
{
|
|
groups: ['builtin', 'external', 'internal'],
|
|
'newlines-between': 'always',
|
|
},
|
|
],
|
|
'no-plusplus': 'off',
|
|
'no-undef': 'off',
|
|
'func-names': 'off',
|
|
'no-param-reassign': 'off',
|
|
'no-console': 'off',
|
|
'no-multi-str': 'off',
|
|
'no-unused-expressions': 'off',
|
|
'no-restricted-syntax': 'off',
|
|
},
|
|
overrides: [
|
|
{
|
|
files: ['test/**/*.spec.js'],
|
|
env: {
|
|
mocha: true,
|
|
},
|
|
globals: {
|
|
artifacts: 'readonly',
|
|
contract: 'readonly',
|
|
},
|
|
rules: {
|
|
'no-await-in-loop': 'off',
|
|
},
|
|
},
|
|
],
|
|
};
|