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: 6 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 3 years ago)
- Default Branch: main
- Last Pushed: 2025-02-07T18:09:41.000Z (about 1 year ago)
- Last Synced: 2025-05-14T12:36:41.686Z (9 months ago)
- Topics: hardhat, solidity, starter-kit
- Language: JavaScript
- Homepage:
- Size: 143 KB
- Stars: 11
- Watchers: 2
- Forks: 12
- 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).