Template for getting started with Reflex, a Solidity framework for upgradeable modularized applications.
.
├── 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
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.
Command | Action |
---|---|
make or make install |
Install all dependencies. |
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. |
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. |
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.
Licensed under the GPL-3.0-or-later license.