GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - injective-dev/foundry-injective-template: Starter template for smart contracts using Foundry on Injective EVM

BranchesTags
Open more actions menu

Latest commit

 

History

2 Commits
2 Commits

Folders and files

NameName
Last commit message
Last commit date
img
img
 
 
src
src
 
 
test
test
 
 
.env.example
.env.example
 
 
.gitignore
.gitignore
 
 
Makefile
Makefile
 
 
README.md
README.md
 
 
foundry.toml
foundry.toml
 
 

Repository files navigation

Foundry Injective Starter Template

Minimal Foundry starter for compiling, testing, deploying, verifying, and interacting with a Counter contract on Injective EVM.

Stack:Solidity · Foundry · Injective EVM · Blockscout

Quick Start

  • On GitHub, press the "Use this template" button.
  • In the dropdown, select "Create new repository"
  • Fill in the form, then press the "Create repository"
  • You should now have a copy of the template repo in your own Github account or organisation
  • Click on the "<> Code" button
  • In the dropdown, select the "Local" tab, then copy the git URL
git clone https://github.com/${YOUR_GITHUB}/foundry-injective-template.git foundry-injective-template
cd foundry-injective-template
cp .env.example .env
make compile         # compile contract
make test            # run local (simulated EVM) tests
make deploy          # deploy contract to Injective Testnet
make verify          # verify deployed contract on Injective Testnet Blockscout
make interact-read   # query with deployed contract
make interact-write  # transact with deployed contract

Update .env (see the "Configuration" section for more details):

  • Add your private key, before running the deploy command.
  • Add deployed contract address, before running verify or the interact commands.

What's Included

Smart Contract Workflow

  • Compile workflow: make compile builds the Counter contract.
  • Test workflow: make test runs the test suite for Counter.
  • Deploy workflow: make deploy deploys Counter to Injective EVM Testnet.
  • Verify workflow: make verify verifies the deployed contract on Blockscout.
  • Interact workflow: make interact-read and make interact-write demonstrate read and write contract calls on the Counter contract.

Project Foundation

  • Counter contract: Canonical hello-world smart contract example for extending the starter.
  • Minimal Foundry config: foundry.toml keeps the repo bare while supporting the required workflows.
  • Env placeholders: .env.example avoids hardcoded user-specific values.

Project Structure

├── src/
│   └── Counter.sol   # Canonical hello-world smart contract
├── test/
│   └── Counter.t.sol # Matching Foundry test suite
├── .env.example      # RPC, key, verifier, and contract placeholders
├── foundry.toml      # Foundry configuration and Injective RPC alias
├── Makefile          # Helper targets for compile, test, deploy, verify, and interact
└── README.md

Configuration

Copy .env.example to .env and replace placeholders before using the networked workflows.

  • PRIVATE_KEY is required for make deploy and make interact-write.
  • CONTRACT_ADDRESS is required for make verify, make interact-read, and make interact-write.

Author

Brendan Graetz

License

MIT

About

Starter template for smart contracts using Foundry on Injective EVM

Topics

hardhatinjectivetemplate

Resources

Readme
Activity
Custom properties

Stars

0 stars

Watchers

0 watching

Forks

1 fork
Report repository

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.