New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@aaiello/hardhat

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@aaiello/hardhat

Smart contracts built for Roll

  • 0.1.0
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
1
decreased by-75%
Maintainers
1
Weekly downloads
 
Created
Source

roll-smart-contracts

Smart contracts built for Roll

Instalation

npm install

VSCode

VSCode is not familiar with the solidity language, so solidity support needs to be installed.

code --install-extension JuanBlanco.solidity

Having done that you should proceed to install prettier-vscode.

code --install-extension esbenp.prettier-vscode

Test

Run test:

npx hardhat test

Run localhost

To run on localhost you should first start local node and then deploy to it

npx hardhat node
npx hardhat run scripts/deploy-dev.ts --network localhost

Run console

ex: get addr balance

npx hardhat console --network localhost
const value = await ethers.provider.getBalance("0xDc64a140Aa3E981100a9becA4E685f962f0cF6C9")
value.toString()

Deploy

Deploy to any network is the same. After each deploy you can find the Json file with the Abi and address information. Be sure you set the right values on .env

npx hardhat run scripts/deploy-dev.ts --network ropsten

or

npx hardhat run scripts/deploy.ts --network mainnet

Verify on chain

Run this command with the address and the argument used when created

npx hardhat verify --network mainnet DEPLOYED_CONTRACT_ADDRESS "Constructor argument 1"

More info: https://hardhat.org/plugins/nomiclabs-hardhat-etherscan.html

npx hardhat verify --network mainnet 0xa7C098E26cbd9aAA515dF140d7020fB46a98be37 "Constructor argument 1" npx hardhat verify --network mainnet --constructor-args arguments.js 0xa7C098E26cbd9aAA515dF140d7020fB46a98be37

FAQs

Package last updated on 11 Jul 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc