https://github.com/thuyencode/base-learn-exercises
https://github.com/thuyencode/base-learn-exercises
Last synced: 5 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/thuyencode/base-learn-exercises
- Owner: thuyencode
- Created: 2025-02-18T10:11:16.000Z (12 months ago)
- Default Branch: master
- Last Pushed: 2025-02-18T12:43:24.000Z (12 months ago)
- Last Synced: 2025-02-18T13:26:33.805Z (12 months ago)
- Language: Solidity
- Size: 110 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Base Learn Exercises
All the smart contracts I coded along with [Base Learn](https://docs.base.org/learn/welcome) are publicly available in here.
Remember to create a new `.env` file according to [`.env.example`](./.env.example).
> If you're not a fan of Alchemy, you can use [the official RPC URLs from Base](https://docs.base.org/docs/quickstart#1-set-up-your-node-connection) or [any other the node providers here](https://docs.base.org/docs/tools/node-providers).
>
> Just replace the environment variables correctly in `.env` and [`index.d.ts`](./types/index.d.ts).
## Deployment
```sh
npm run deploy -- --tags
```
For example, I want to deploy the contract named [`BasicMath`](./contracts/Deploying/BasicMath.sol), I use the tag declared in [00_deploy_BasicMath.ts](./deploy/00_deploy_BasicMath.ts) (deployment file):
```sh
npm run deploy -- --tags BasicMath
```
## Contract verification
```sh
npm run verify
```