1Hive / time-lock-app

The Time Lock app enables Aragon organizations to require users transfer or temporarily lock tokens before forwarding an intent.
GNU General Public License v3.0
16 stars 11 forks source link

Use token balance oracle #62

Closed fabriziovigevani closed 4 years ago

fabriziovigevani commented 4 years ago

closes #46

Includes (links for easier review)

Token Oracle

To test the app with the token oracle, you can run npm run start:template:oracle This will install the oracle in the dao and set the permission with params. The oracle is initialized with a required minimum balance of 1 BEE token. ⚠️ It's required to have the oracle published to apm.

Alternatively you can run a truffle script:

With the following arguments

The script will be refactored to use @macor161 cli implementation once it's released

Update: Refactored script to use new @aragon/cli's acl grant permission with params feature.

It runs a bash script which through the truffle script process arguments and then calls dao acl grant with params returned. The release with the feature is not yet available but will be pretty soon.