Skip to content

Commit

Permalink
commit
Browse files Browse the repository at this point in the history
  • Loading branch information
0xilbiscione committed Apr 3, 2024
1 parent 48346ff commit 6500bfc
Show file tree
Hide file tree
Showing 9 changed files with 8,239 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
node_modules
10 changes: 10 additions & 0 deletions bun-coin/.gitignore
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*
47 changes: 47 additions & 0 deletions bun-coin/README.md
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.
43 changes: 43 additions & 0 deletions bun-coin/hardhat.config.js
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,
},
},
},
};
16 changes: 16 additions & 0 deletions bun-coin/package.json
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"
}
}
Loading

0 comments on commit 6500bfc

Please sign in to comment.