Skip to content

BuildBearLabs/Catapulta

Repository files navigation

Catapulta.sh Forge Template

Template repository for getting started quickly with Deploying Your Contracts to your Private Testnet with Catapulta.sh Chain Ops Suite for Foundry projects.

This repository contains the foundational Foundry project, including Catapula and Nouns protocol smart contracts, as well as deployment scripts.

Requirements

Getting Started

Click "Use this template" to create a new repository with this repo as the initial state.

Deploy your first contract with Catapulta

  1. Git clone this repository and enter to the repository directory:
git clone https://github.com/BuildBearLabs/Catapulta.git
cd Catapulta
  1. Install dependencies,
forge install
npm install
  1. Generate a new private key with Catapulta, is stored offline in your .env, or add your own as PRIVATE_KEY in the .env file stored at the root of the project
npx catapulta wallet

# Output:
# Wallet address: 0x6B193d5604e09f1737E33cFc4B06fb3f2C7fC3CE
# Private key appended to your .env file.
  1. Setup your CATAPULTA_API_KEY into your .env, generate one at Catapulta dashboard
  2. To deploy the contracts to the Ethereum Mainnet fork, run the following command. This command creates a Private Ethereum Mainnet fork from the latest block, deploys and verifies your contracts on Private Testnet.
 catapulta script scripts/DeployContracts.s.sol --fork buildbear --network main

terminal

  1. Access the deployment report conveniently through the Catapulta UI.

    • All deployed contracts are conveniently listed for your reference.
    • Access essential Testnet details, including the Block Explorer, to view transactions and interact with your deployed contracts.
    • Utilize the Faucet to mint unlimited native and ERC20 Tokens.
    • Copy the RPC for seamless connectivity to your Testnet within your Hardhat and Foundry projects, allowing you to execute scripts with ease. basic 2 basic 3
  2. Click on the deployed contract address, and you will be redirected to the contract page on the BuildBear Explorer. From there, you can interact with the read and write functions of your contract to test its functionality. basic 4

Development

This project uses Foundry and Catapulta. See the book for instructions on how to install and use Foundry.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published