Giter Site home page Giter Site logo

q-boilerplate-code's Introduction

Sample Hardhat Project

This project demonstrates a basic Hardhat use case. It comes with a sample contract, a test for that contract, and a script that deploys that contract.

Try running some of the following tasks:

npx hardhat help
npx hardhat test
REPORT_GAS=true npx hardhat test
npx hardhat node
npx hardhat run scripts/deploy.js

q-boilerplate-code's People

Contributors

ash20pk avatar fareeha1125 avatar fareeha25 avatar pashmeenanoor0x avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

q-boilerplate-code's Issues

Not able to compile this contract

Hi while taking the DAO tutorial for Q block chain I have encountered the below errors when compiling this contract, please have a look and help in resolving these issues.
DeclarationError: Identifier not found or not unique.
--> contracts/GeneralDAOVoting.sol:23:42:
|
23 | contract GeneralDAOVoting is IDAOVoting, Initializable, AbstractDependant {
| ^^^^^^^^^^^^^

Error HH600: Compilation failed

HardhatError: HH600: Compilation failed
at SimpleTaskDefinition.action (D:\hardhat-tutorial\node_modules\hardhat\src\builtin-tasks\compile.ts:503:15)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at Environment._runTaskDefinition (D:\hardhat-tutorial\node_modules\hardhat\src\internal\core\runtime-environment.ts:333:14)
at OverriddenTaskDefinition._action (D:\hardhat-tutorial\node_modules@typechain\hardhat\src\index.ts:28:30)
at Environment._runTaskDefinition (D:\hardhat-tutorial\node_modules\hardhat\src\internal\core\runtime-environment.ts:333:14)
at Environment.run (D:\hardhat-tutorial\node_modules\hardhat\src\internal\core\runtime-environment.ts:166:14)
at SimpleTaskDefinition.action (D:\hardhat-tutorial\node_modules\hardhat\src\builtin-tasks\compile.ts:1381:63)
at Environment._runTaskDefinition (D:\hardhat-tutorial\node_modules\hardhat\src\internal\core\runtime-environment.ts:333:14)
at Environment._runTaskDefinition (D:\hardhat-tutorial\node_modules\hardhat\src\internal\core\runtime-environment.ts:333:14)
at Environment.run (D:\hardhat-tutorial\node_modules\hardhat\src\internal\core\runtime-environment.ts:166:14)

This one can be resolved by importing this contract "@openzeppelin/contracts/proxy/utils/Initializable.sol" but then I run into the below error

npx hardhat run scripts/AirDropV2/2_createVoting.js --network testnet --show-stack-traces
DeclarationError: Identifier not found or not unique.
--> contracts/GeneralDAOVoting.sol:20:57:
|
20 | contract GeneralDAOVoting is IDAOVoting, Initializable, AbstractDependant {
| ^^^^^^^^^^^^^^^^^

Error HH600: Compilation failed

HardhatError: HH600: Compilation failed
at SimpleTaskDefinition.action (D:\hardhat-tutorial\node_modules\hardhat\src\builtin-tasks\compile.ts:503:15)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at Environment._runTaskDefinition (D:\hardhat-tutorial\node_modules\hardhat\src\internal\core\runtime-environment.ts:333:14)
at OverriddenTaskDefinition._action (D:\hardhat-tutorial\node_modules@typechain\hardhat\src\index.ts:28:30)
at Environment._runTaskDefinition (D:\hardhat-tutorial\node_modules\hardhat\src\internal\core\runtime-environment.ts:333:14)
at Environment.run (D:\hardhat-tutorial\node_modules\hardhat\src\internal\core\runtime-environment.ts:166:14)
at SimpleTaskDefinition.action (D:\hardhat-tutorial\node_modules\hardhat\src\builtin-tasks\compile.ts:1381:63)
at Environment._runTaskDefinition (D:\hardhat-tutorial\node_modules\hardhat\src\internal\core\runtime-environment.ts:333:14)
at Environment._runTaskDefinition (D:\hardhat-tutorial\node_modules\hardhat\src\internal\core\runtime-environment.ts:333:14)
at Environment.run (D:\hardhat-tutorial\node_modules\hardhat\src\internal\core\runtime-environment.ts:166:14)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.