Giter Site home page Giter Site logo

foundry-fun's Introduction

foundry-fun

Project work for learning Solidity and Foundry. Local testing and development has more relaxed key management for faster feedback cycles. Production development notes at end of document.

Local Development Environment

New Project

To add a new project folder in the main directory, execute

forge init project-name

Then in project-name delete the .gitmodules file and the .git/ directory to make this new project not a git submodule. Then any changes can be tracked normally with git.

Environment Variables NOT FOR PRODUCTION

Check that .env is in the .gitignore then add the first anvil private key, and the RPC URL to .env as environment variables

PRIVATE_KEY=0xac0974bec39a17e36ba4a6b4d238ff944bacb478cbed5efcae784d7bf4f2ff80
RPC_URL=http://127.0.0.1:8545

Fast Local Testing

In one shell run anvil

In a second shell run

forge script script/DeployScript.s.sol --rpc-url $RPC_URL --broadcast --private-key $PRIVATE_KEY

Production Environment / Live Network Testing

Do not use a .env file to store environment variables for private keys. Use cast to store an account, following these instructions

foundry-fun's People

Contributors

0xeddie avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.