aragon-cli icon indicating copy to clipboard operation
aragon-cli copied to clipboard

aragon dao read

Open kernelwhisperer opened this issue 5 years ago • 2 comments

🚀 Feature

I believe there isn't a way to read data from an eth node using the CLI.

I tried using exec, but it doesn't work because of tx pathing.

I wanted to read whether a minimetoken/token-manager has enabled transfers:

aragon dao read <minimetoken> transfersEnabled 

It would also be useful to see the quorum of a voting app, etc.

kernelwhisperer avatar Jul 03 '19 17:07 kernelwhisperer

Wondering if exec and read would be useful without the context of a dao, for example:

  • reading the total supply of an erc20 from the cli
  • executing a function that is needed for creating a dao (minime, etc.)

kernelwhisperer avatar Jul 03 '19 18:07 kernelwhisperer

You can detect if something should be done with an eth_call or an actual transaction based on the constant key in the ABI, although yes, I would agree that the exec functionality would be useful outside of the dao namespace (the dao namespace I imagine is just useful for finding the ABI).

sohkai avatar Jul 04 '19 18:07 sohkai