Skip to content
/ reflex-template Public template

Template for getting started with Reflex, a Solidity framework for upgradeable modularized applications.

License

Notifications You must be signed in to change notification settings

chromaxyz/reflex-template

Repository files navigation

Reflex Template

Template for getting started with Reflex, a Solidity framework for upgradeable modularized applications.

Table of Contents

Contracts

.
├── abstracts
│   ├── AppConstants.sol
│   ├── AppModule.sol
│   └── AppState.sol
├── AppDispatcher.sol
└── modules
    ├── DecrementCounter.sol
    ├── IncrementCounter.sol
    └── Installer.sol
graph TD
    subgraph App [ ]

    AppConstants --> ReflexConstants
    AppState --> ReflexState
    AppState --> AppConstants
    AppModule --> ReflexModule
    AppModule --> AppState
    AppDispatcher --> AppState
    DecrementCounter --> AppModule
    IncrementCounter --> AppModule
    Installer --> AppModule
    end
Loading

Usage

To install Foundry:

curl -L https://foundry.paradigm.xyz | bash

This will download foundryup. To start Foundry, run:

foundryup

For convenience we use a Makefile for running different tasks.

Install Commands

Command Action
make or make install Install all dependencies.

Build Commands

Build profiles: default, via-ir.

Usage: PROFILE=default make build.

Command Action
make build or PROFILE=default make build Compile all contracts with the default profile.
make clean Delete all cached build files.

Test Commands

Build profiles: default, via-ir.

Test profiles: default, intense.

Usage: PROFILE=default make test.

Command Action
make test or PROFILE=default make test Run all tests with the default profile.

Safety

This is experimental software and is provided on an "as is" and "as available" basis.

We do not give any warranties and will not be liable for any loss incurred through any use of this codebase.

At this point in time Reflex has not yet been audited and must therefore not yet be used in production.

License

Licensed under the GPL-3.0-or-later license.

About

Template for getting started with Reflex, a Solidity framework for upgradeable modularized applications.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published