Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/pinatacloud/hello-base-contracts
https://github.com/pinatacloud/hello-base-contracts
Last synced: 17 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/pinatacloud/hello-base-contracts
- Owner: PinataCloud
- License: mit
- Created: 2024-12-04T04:52:14.000Z (20 days ago)
- Default Branch: main
- Last Pushed: 2024-12-04T05:21:27.000Z (20 days ago)
- Last Synced: 2024-12-04T06:21:46.062Z (20 days ago)
- Language: Solidity
- Size: 9.77 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## Hello Base Contracts
![og](https://hellobase.dev/og.png)
This repo contains the smart contracts behind [HelloBase](https://hellobase.dev), primarily a `HelloBaseFactory.sol` and a `HelloBase.sol` template contract. These are purely for educational purposes and are only deployed on a testnet.
> [!WARNING]
> There is no security mechanism to prevent someone else from updating the greeting, as they are meant to be temporal training exercises.## Development
Make sure you already have the [Foundry](https://book.getfoundry.sh/) toolchain installed
Clone the repo and install dependencies.
```
git clone https://github.com/PinataCloud/hello-base-contracts
cd hello-base-contracts
forge install
```Compile the contracts
```
forge build
```Run tests
```
forge test -vvv --gas-report
```## Deployment
The factory contract will automatically deploy the template used inside of it, so all you need to do is deploy the factory.
```
forge create src/HelloBaseFactory.sol:HelloBaseFactory --rpc-url https://sepolia.base.org --private-key
```## Contact
Feel free to reach out if you have any questions!
[[email protected]](mailto:[email protected])