-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
48346ff
commit 6500bfc
Showing
9 changed files
with
8,239 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
node_modules |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
node_modules | ||
.env | ||
coverage | ||
coverage.json | ||
typechain | ||
typechain-types | ||
|
||
#Hardhat files | ||
cache* | ||
artifacts* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
## 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 | ||
``` | ||
|
||
## 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). |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
require("@matterlabs/hardhat-zksync-solc"); | ||
|
||
/** @type import('hardhat/config').HardhatUserConfig */ | ||
module.exports = { | ||
zksolc: { | ||
version: "1.3.9", | ||
compilerSource: "binary", | ||
settings: { | ||
optimizer: { | ||
enabled: true, | ||
}, | ||
}, | ||
}, | ||
networks: { | ||
zksync_testnet: { | ||
url: "https://zksync2-testnet.zksync.dev", | ||
ethNetwork: "goerli", | ||
chainId: 280, | ||
zksync: true, | ||
}, | ||
zksync_mainnet: { | ||
url: "https://zksync2-mainnet.zksync.io/", | ||
ethNetwork: "mainnet", | ||
chainId: 324, | ||
zksync: true, | ||
}, | ||
}, | ||
paths: { | ||
artifacts: "./artifacts-zk", | ||
cache: "./cache-zk", | ||
sources: "./contracts", | ||
tests: "./test", | ||
}, | ||
solidity: { | ||
version: "0.8.17", | ||
settings: { | ||
optimizer: { | ||
enabled: true, | ||
runs: 200, | ||
}, | ||
}, | ||
}, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
{ | ||
"name": "hardhat-javascript-starter", | ||
"scripts": { | ||
"build": "npx thirdweb@latest detect", | ||
"deploy": "npx thirdweb@latest deploy", | ||
"release": "npx thirdweb@latest release" | ||
}, | ||
"devDependencies": { | ||
"@matterlabs/hardhat-zksync-solc": "^0.3.17", | ||
"hardhat": "^2.13.0" | ||
}, | ||
"dependencies": { | ||
"@thirdweb-dev/contracts": "^3.8.0", | ||
"zksync-web3": "^0.14.3" | ||
} | ||
} |
Oops, something went wrong.