Skip to content

Reactive-Network/reactive-smart-contract-demos

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Reactive Smart Contract Demos

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 or TECH.md for additional information on implementing reactive contracts and callbacks. The src/demos directory contains several demos with their README.md files.

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 URL, which can be found on Chainlist.

SEPOLIA_PRIVATE_KEY

Ethereum Sepolia private key.

REACTIVE_RPC

Reactive Kopli RPC URL — https://kopli-rpc.rkt.ink.

REACTIVE_PRIVATE_KEY

Reactive Kopli private key.

SYSTEM_CONTRACT_ADDR

For the system contract address, refer to Reactive Docs

CALLBACK_PROXY_ADDR

For callback proxy addresses, refer to Reactive Docs.

About

A compilation of various Reactive Smart Contracts and use cases

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •