Skip to content

Latest commit

 

History

History
71 lines (42 loc) · 1.56 KB

README.md

File metadata and controls

71 lines (42 loc) · 1.56 KB

System Smart Contracts for Reactive Network

Development & Deployment Instructions

Environment Setup

To set up foundry environment, run:

curl -L https://foundry.paradigm.xyz | bash
source ~/.bashrc
foundryup

Install dependencies:

forge install

Development & Testing

To compile artifacts:

forge compile

To run the test suite:

forge test -vv

To inspect the call tree:

forge test -vvvv

Additional Documentation & Demos

Refer to Docs for additional information on implementing reactive contracts and callbacks. The src/demos directory contains the basic Reactive Network demo with its README.md file.

Environment Variable Configuration

The following environment variables are used in the instructions for running the demos, and should be configured beforehand.

SEPOLIA_RPC

Ethereum Sepolia RPC address — https://ethereum-sepolia-rpc.publicnode.com/ or https://1rpc.io/sepolia.

SEPOLIA_PRIVATE_KEY

Ethereum Sepolia private key.

REACTIVE_RPC

Kopli Testnet RPC address — https://kopli-rpc.rkt.ink.

REACTIVE_PRIVATE_KEY

Kopli Testnet private key.

SYSTEM_CONTRACT_ADDR

The system contract address on Kopli Testnet

CALLBACK_PROXY_ADDR

For callback proxy addresses, refer to the docs.