Skip to content

Commit

Permalink
refactor: replaced truffle from hardhat
Browse files Browse the repository at this point in the history
Signed-off-by: tipusinghaw <[email protected]>
  • Loading branch information
tipusinghaw committed Jan 10, 2024
1 parent 9256f02 commit fa8d605
Show file tree
Hide file tree
Showing 17 changed files with 4,220 additions and 8,991 deletions.
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
node_modules
.DS_Store
build
.env
.env
artifacts
cache
File renamed without changes.
28 changes: 28 additions & 0 deletions hardhat.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
/**
* @type import('hardhat/config').HardhatUserConfig
*/

// import 'hardhat';
require('@nomicfoundation/hardhat-ethers')
require('@openzeppelin/hardhat-upgrades')

require('dotenv/config')

module.exports = {
solidity: {
version: '0.8.16',
settings: {
optimizer: {
enabled: true,
runs: 200,
},
},
},
networks: {
hardhat: {},
mumbai: {
url: process.env.RPCURL, // Update with Mumbai Matic RPC URL
accounts: [`0x${process.env.SIGNER}`],
},
},
}
5 changes: 0 additions & 5 deletions migrations/1_initial_migration.js

This file was deleted.

9 changes: 0 additions & 9 deletions migrations/2_deploy_contract.js

This file was deleted.

22 changes: 8 additions & 14 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,28 +21,22 @@
"author": "",
"license": "Apache-2.0",
"dependencies": {
"@ayanworks/polygon-did-registry-contract": "2.0.1-alpha.2",
"@ethersproject/basex": "^5.7.0",
"@ethersproject/signing-key": "^5.7.0",
"@ethersproject/transactions": "^5.7.0",
"@ethersproject/wallet": "^5.7.0",
"@ayanworks/polygon-did-registry-contract": "2.0.1-alpha.3",
"axios": "^1.6.3",
"ethers": "^6.9.0",
"uuid": "^9.0.1",
"@openzeppelin/truffle-upgrades": "^1.15.0",
"@truffle/hdwallet-provider": "^2.0.10",
"dotenv": "^16.0.2",
"ganache-cli": "6.12.2",
"mocha": "^7.0.0",
"release-it": "^16.3.0",
"solc": "^0.8.21",
"truffle": "^5.5.20"
"uuid": "^9.0.1"
},
"devDependencies": {
"@nomicfoundation/hardhat-ethers": "^3.0.5",
"@openzeppelin/hardhat-upgrades": "^3.0.1",
"@types/node": "^18.17.0",
"@types/uuid": "^9.0.7",
"dotenv": "^16.0.2",
"hardhat": "^2.19.4",
"mocha": "^7.0.0",
"prettier": "^3.0.2",
"release-it": "^16.1.5",
"solc": "^0.8.21",
"ts-node": "^10.9.1",
"typescript": "^5.1.6"
}
Expand Down
Loading

0 comments on commit fa8d605

Please sign in to comment.