mirror of
				https://github.com/Instadapp/dsa-polygon-migration.git
				synced 2024-07-29 22:27:58 +00:00 
			
		
		
		
	Testing setup
This commit is contained in:
		
							parent
							
								
									07c5f58c83
								
							
						
					
					
						commit
						e16bb0c84e
					
				
							
								
								
									
										3
									
								
								.env.example
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										3
									
								
								.env.example
									
									
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,3 @@ | |||
| ALCHEMY_ID="<>" | ||||
| ETHERSCAN="<>" | ||||
| PRIVATE_KEY="<>" | ||||
							
								
								
									
										2
									
								
								.gitignore
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										2
									
								
								.gitignore
									
									
									
									
										vendored
									
									
								
							|  | @ -3,3 +3,5 @@ node_modules | |||
| #Hardhat files | ||||
| cache | ||||
| artifacts | ||||
| 
 | ||||
| .env | ||||
|  | @ -1,14 +1,10 @@ | |||
| require("@nomiclabs/hardhat-ethers"); | ||||
| require("@nomiclabs/hardhat-waffle"); | ||||
| require("@nomiclabs/hardhat-etherscan"); | ||||
| 
 | ||||
| // This is a sample Hardhat task. To learn how to create your own go to
 | ||||
| // https://hardhat.org/guides/create-task.html
 | ||||
| task("accounts", "Prints the list of accounts", async () => { | ||||
|   const accounts = await ethers.getSigners(); | ||||
| 
 | ||||
|   for (const account of accounts) { | ||||
|     console.log(account.address); | ||||
|   } | ||||
| }); | ||||
| require("dotenv").config(); | ||||
| const ALCHEMY_ID = process.env.ALCHEMY_ID; | ||||
| const PRIVATE_KEY = process.env.PRIVATE_KEY; | ||||
| 
 | ||||
| // You need to export an object to set up your config
 | ||||
| // Go to https://hardhat.org/config/ to learn more
 | ||||
|  | @ -18,5 +14,26 @@ task("accounts", "Prints the list of accounts", async () => { | |||
|  */ | ||||
| module.exports = { | ||||
|   solidity: "0.7.3", | ||||
|   networks: { | ||||
|     hardhat: { | ||||
|       forking: { | ||||
|         url: `https://eth-mainnet.alchemyapi.io/v2/${ALCHEMY_ID}`, | ||||
|         blockNumber: 12070498, | ||||
|       }, | ||||
|       blockGasLimit: 12000000, | ||||
|     }, | ||||
|     kovan: { | ||||
|       url: `https://eth-kovan.alchemyapi.io/v2/${ALCHEMY_ID}`, | ||||
|       accounts: [`0x${PRIVATE_KEY}`], | ||||
|       gas: 12500000, | ||||
|     }, | ||||
|     polygon: { | ||||
|       url: 'https://rpc-mainnet.matic.network', | ||||
|       accounts: [`0x${PRIVATE_KEY}`], | ||||
|     } | ||||
|   }, | ||||
|   etherscan: { | ||||
|     apiKey: process.env.ETHERSCAN | ||||
|   } | ||||
| }; | ||||
| 
 | ||||
|  |  | |||
							
								
								
									
										16314
									
								
								package-lock.json
									
									
									
										generated
									
									
									
								
							
							
						
						
									
										16314
									
								
								package-lock.json
									
									
									
										generated
									
									
									
								
							
										
											
												File diff suppressed because it is too large
												Load Diff
											
										
									
								
							|  | @ -19,6 +19,8 @@ | |||
|     "solc": "0.7.0" | ||||
|   }, | ||||
|   "dependencies": { | ||||
|     "@openzeppelin/contracts": "^3.4.0-solc-0.7" | ||||
|     "@nomiclabs/hardhat-etherscan": "^2.1.1", | ||||
|     "@openzeppelin/contracts": "^3.4.0-solc-0.7", | ||||
|     "dotenv": "^8.2.0" | ||||
|   } | ||||
| } | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue
	
	Block a user
	 Mubaris NK
						Mubaris NK