Code Monkey home page Code Monkey logo

forge-sol-challenge's Introduction

Sol-Challenge Solutions CI

Recognitions

Sol challenge is a collection of CTF challenges made by massun-onibakuchi.

What's inside this repository?

I have refactored all the tests to use foundry. Inside each test file you will find a working solution for each challenge with a brief explanation about it.

I'll create a blog post about a full explanation for each challenge in the upcoming weeks.

Getting Started

npm install
npm run test:local # run local tests
npm run test:fork # run tests that needs to use a mainnet fork

Configure FOUNDRY_ETH_RPC_URL for local testing

  1. Rename the .env.example file to .env via mv .env.example .env
  2. Update the FOUNDRY_ETH_RPC_URL with the mainnet RPC url. You can get one directly from Alchemy or Infura
FOUNDRY_ETH_RPC_URL=YOUR_RPC_URL_FROM_ALCHEMY_OR_INFURA

Configure GitHub CI

This is my pesonal configuration:

  1. Create an environment called CI
  2. Add a secret env variable named FOUNDRY_ETH_RPC_URL and set the value equal to the Infura/Alchemy RPC url.

The GitHub CI will run the test:forkci that is different compared to test:fork just because GitHub "inject" env variables directly from the action.

Development

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

forge-sol-challenge's People

Contributors

stermi 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.