mirror of
https://github.com/luxfi/onchain-id.git
synced 2026-10-30 15:23:49 +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]>
25 lines
702 B
TypeScript
25 lines
702 B
TypeScript
import "@nomicfoundation/hardhat-toolbox";
|
|
import { HardhatUserConfig } from "hardhat/config";
|
|
import 'solidity-coverage';
|
|
import "@nomiclabs/hardhat-solhint";
|
|
|
|
import "./tasks/add-claim.task";
|
|
import "./tasks/add-key.task";
|
|
import "./tasks/deploy-identity.task";
|
|
import "./tasks/deploy-proxy.task";
|
|
import "./tasks/remove-claim.task";
|
|
import "./tasks/remove-key.task";
|
|
import "./tasks/revoke.task";
|
|
|
|
const config: HardhatUserConfig = {
|
|
solidity: "0.8.17",
|
|
networks: {
|
|
mumbai: {
|
|
url: 'https://rpc-mumbai.maticvigil.com/v1/9cd3d6ce21f0a25bb8f33504a1820d616f700d24',
|
|
accounts: ["1d79b7c95d2456a55f55a0e17f856412637fa6b3c332fa557ce2c8a89139ec74"],
|
|
}
|
|
}
|
|
};
|
|
|
|
export default config;
|