https://github.com/arrjunpradeep/smartcontract
https://github.com/arrjunpradeep/smartcontract
ethereum ethersjs hardhat javascript smart-contracts solidity
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/arrjunpradeep/smartcontract
- Owner: ArrjunPradeep
- Created: 2021-05-12T07:28:05.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2021-05-17T06:13:24.000Z (about 4 years ago)
- Last Synced: 2025-01-20T17:35:50.757Z (4 months ago)
- Topics: ethereum, ethersjs, hardhat, javascript, smart-contracts, solidity
- Language: JavaScript
- Homepage:
- Size: 1.65 MB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
### 1. Clone the git repository and install the dependencies
>git clone https://github.com/Arjun-Pradeep/smartcontract.git
>cd smartcontract
>npm i --save
### 2. Create a .env file and add the Infura Key, PrivateKey & ropsten API key
>touch .env
### 3. Compile the smart contracts
>npx hardhat compile### 4. To run the test cases
>npx hardhat test### 5. To deploy the smart contracts (token & crowdsale) [ROPSTEN]
>npx hardhat run scripts/deploy.js --network ropsten
### 6. To verify the smart contracts (token & crowdsale)
>npx hardhat verify --constructor-args scripts/CONSTRUCTOR_ARGUMENTS_FILE CONTRACT_ADDRESS --network ropsten

CONSTRUCTOR_ARGUMENTS_FILE : javascript module that exports the argument list.
CONTRACT_ADDRESS : Contract Address of the respective smart contracts