2.0.1 â€ĸ Published 2 years ago

@knobs/contracts v2.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

NPM Build License

Stars Twitter

About The Project 🎙ī¸

Contains a set of useful contracts for building web3 applications.

Built With

Hardhat + Solidity + Typescript + Solidity Coverage

Getting Started

Prerequisites

Install the npm package or copy our contract interface

  • npm
    npm install @knobs/contracts@latest

Installation

Import the contract or the interface you need

import "@knobs/contracts/[contract_name]/[contract_name].sol";

Roadmap đŸ›Ŗī¸

  • Release Merkleproof Indexed library
  • Release ShuffledIds library

See the open issues for a full list of proposed features (and known issues).

Contributing 🧑‍🔧

Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.

If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement". Don't forget to give the project a star! Thanks again!

  1. Fork the Project
  2. Create your Feature Branch (git checkout -b feature/AmazingFeature)
  3. Commit your Changes (git commit -m 'Add some AmazingFeature')
  4. Push to the Branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

License Šī¸

Distributed under the MIT License. See the LICENSE file for more information.

Contact đŸ“Ŧ

Your Name - @KnobsBlockchain - info@knobs.it

Project Link: https://github.com/knobs-dev/contracts

Acknowledgments

For developers 👨‍đŸ’ģ

Run locally

Try running some of the following tasks:

npx hardhat accounts
npx hardhat compile
npx hardhat clean
npx hardhat test
npx hardhat node
npx hardhat help
REPORT_GAS=true npx hardhat test
npx hardhat coverage
npx hardhat run scripts/deploy.ts
TS_NODE_FILES=true npx ts-node scripts/deploy.ts
npx eslint '**/*.{js,ts}'
npx eslint '**/*.{js,ts}' --fix
npx prettier '**/*.{json,sol,md}' --check
npx prettier '**/*.{json,sol,md}' --write
npx solhint 'contracts/**/*.sol'
npx solhint 'contracts/**/*.sol' --fix

Etherscan verification

To try out Etherscan verification, you first need to deploy a contract to an Ethereum network that's supported by Etherscan, such as Ropsten.

In this project, copy the .env.example file to a file named .env, and then edit it to fill in the details. Enter your Etherscan API key, your Ropsten node URL (eg from Alchemy), and the private key of the account which will send the deployment transaction. With a valid .env file in place, first deploy your contract:

hardhat run --network ropsten scripts/sample-script.ts

Then, copy the deployment address and paste it in to replace DEPLOYED_CONTRACT_ADDRESS in this command:

npx hardhat verify --network ropsten DEPLOYED_CONTRACT_ADDRESS "Hello, Hardhat!"

Performance optimizations

For faster runs of your tests and scripts, consider skipping ts-node's type checking by setting the environment variable TS_NODE_TRANSPILE_ONLY to 1 in hardhat's environment. For more details see the documentation.

1.6.0

2 years ago

2.0.1

2 years ago

2.0.0

2 years ago

1.5.5

2 years ago

1.5.4

2 years ago

1.5.3

2 years ago

1.5.2

2 years ago

1.5.1

2 years ago

1.5.0

2 years ago

1.4.0

2 years ago

1.3.6

2 years ago

1.3.5

2 years ago

1.3.4

2 years ago

1.3.2

2 years ago

1.3.1

2 years ago