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
npm run set-oracle for local devchain
npm run set-oracle:rinkeby for rinkeby network
npm run set-oracle:mainnet for mainnet network
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.
closes #46
Includes (links for easier review)
Integration tests with TokenBalanceOracle
Option to set TokenBalanceOracle directly from template
Bash and Truffle script to set permission with oracle params through cli's new feature
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 toapm
.Alternatively you can run a
truffle
script:With the following arguments
npm run set-oracle
for local devchainnpm run set-oracle:rinkeby
for rinkeby networknpm run set-oracle:mainnet
for mainnet networkThe script will be refactored to use @macor161 cli implementation once it's releasedUpdate: 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.