An Aragon app.
This class handles communicating with the wrapper using Aragon RPC.
The class itself contains "magic methods", that is, undefined methods will instead become an intent that is sent to the wrapper.
will result in an intent to send a transaction to the application proxy,
invoking the contract function
transfer with the parameters
rpcObject? An RPC provider (will default to using the PostMessage API)
Get events from the application contract.
Returns Observable An observable of contract events (as defined in Web3)
Cache a value for the application.
Returns string Will pass through
Send a notification.
titlestring The notification title
bodystring The notification body
contextObject The application context to send back if the notification is clicked (optional, default
dateDate The notification's timestamp
Observe the application state.
Returns Observable An observable of application states over time.
Listens for events, passes them through
reducer, caches the resulting state
and returns that state.
The reducer takes the signature
(state, event) a lá Redux.
Returns Observable An observable of the resulting state from reducing events
Perform a call to the application contract.
methodstring The method to call
params...any Parameters for the call
Returns Observable An observable that emits the return value(s) of the call.
A state reducer a lá Redux.
Returns Object The next state