Skip to content

filbeam/usage-based-payments-poc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Usage-Based Payments PoC

Usage-based payments using one-time payments based on the implementation plan. Unlike the initial usage-based payments proposal this version does not involve validators in the settlement process. Instead, the FilBeam contract calculates settlement amounts based on usage data reported by off-chain workers and directly calls the FWSS contract to execute fund transfers to payment rail beneficiaries.

Usage

Build

$ forge build

Test

$ forge test

Format

$ forge fmt

Gas Snapshots

$ forge snapshot

Anvil

$ anvil

Deploy

$ forge script script/UsageValidator.s.sol:UsageValidatorScript --rpc-url <your_rpc_url> --private-key <your_private_key>

Cast

$ cast <subcommand>

Help

$ forge --help
$ anvil --help
$ cast --help

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published