Skip to content

Latest commit

 

History

History
executable file
·
29 lines (21 loc) · 1.08 KB

README.md

File metadata and controls

executable file
·
29 lines (21 loc) · 1.08 KB

Facility

Facility contract is dispatching events on EVM that represent demand of the user (represented with an EVM address) to claim available, assigned (to the user's address) Ator tokens.

valid-ator (using prefilled wallet + refilled by users) is subscribed to these EVM events and upon receival of user provided gas budget:

  1. fetches current value of tokens allocated to a given user from Arweave
  2. uses the user provided gas budget to update Facility with currently claimable Ator tokens

Facility contract is tracking the amounts of tokens claimed by user addresses.

Facility contract can receive Ator tokens that will available to be claimed.

Facility is using its Ator tokens to allow users claiming available reward balance and transfer Ator tokens to their EVM address.

Built on top of the OpenZeppelin framework, developed using HardHat env.

Install

$ npm i

Test

$ npx hardhat test --network localhost

Deploy (dev)

$ npx hardhat run --network localhost scripts/deploy.ts