Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/thirdweb-example/hardhat-javascript-starter
thirdweb contracts starter project for Hardhat & TypeScript
https://github.com/thirdweb-example/hardhat-javascript-starter
hardhat solidity starter-kit
Last synced: 2 months ago
JSON representation
thirdweb contracts starter project for Hardhat & TypeScript
- Host: GitHub
- URL: https://github.com/thirdweb-example/hardhat-javascript-starter
- Owner: thirdweb-example
- Created: 2022-07-29T02:19:53.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-09-11T02:03:26.000Z (5 months ago)
- Last Synced: 2024-09-11T07:08:42.454Z (5 months ago)
- Topics: hardhat, solidity, starter-kit
- Language: JavaScript
- Homepage:
- Size: 140 KB
- Stars: 8
- Watchers: 2
- Forks: 9
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Getting Started
Create a project using this example:
```bash
npx thirdweb create --contract --template hardhat-javascript-starter
```You can start editing the page by modifying `contracts/Contract.sol`.
To add functionality to your contracts, you can use the `@thirdweb-dev/contracts` package which provides base contracts and extensions to inherit. The package is already installed with this project. Head to our [Contracts Extensions Docs](https://portal.thirdweb.com/contractkit) to learn more.
## Building the project
After any changes to the contract, run:
```bash
npm run build
# or
yarn build
```to compile your contracts. This will also detect the [Contracts Extensions Docs](https://portal.thirdweb.com/contractkit) detected on your contract.
## Deploying Contracts
When you're ready to deploy your contracts, just run one of the following command to deploy you're contracts:
```bash
npm run deploy
# or
yarn deploy
```> [!IMPORTANT]
> This requires a secret key to make it work. Get your secret key [here](https://thirdweb.com/dashboard/settings/api-keys).
> Pass your secret key as a value after `-k` flag.
> ```bash
> npm run deploy -- -k
> # or
> yarn deploy -k## Releasing Contracts
If you want to release a version of your contracts publicly, you can use one of the followings command:
```bash
npm run release
# or
yarn release
```## Join our Discord!
For any questions, suggestions, join our discord at [https://discord.gg/thirdweb](https://discord.gg/thirdweb).