Skip to content

Aragon Wrapper

An Aragon wrapper.

Parameters

  • daoAddress string The address of the DAO.
  • options Object Wrapper options. (optional, default {})
    • options.provider any The Web3 provider to use for blockchain communication (optional, default ws://rinkeby.aragon.network:8546)
    • options.ensRegistryAddress String The address of the ENS registry (optional, default null)

Examples

const aragon = new Aragon('0xdeadbeef')

// Initialises the wrapper and logs the installed apps
aragon.init(() => {
  aragon.apps.subscribe(
    (apps) => console.log(apps)
  )
})

init

Initialise the wrapper.

Returns Promise<void>

initAcl

Initialise the ACL.

Returns Promise<void>

getAppProxyValues

Get proxy metadata (appId, address of the kernel, ...).

Parameters

  • proxyAddress string The address of the proxy to get metadata from

Returns Promise<Object>

isApp

Check if an object is an app.

Parameters

Returns boolean

initApps

Initialise apps observable.

Returns void

initForwarders

Initialise forwarder observable.

Returns void

runApp

Run an app.

Parameters

  • sandbox Object An object that is compatible with the PostMessage API.
  • proxyAddress string The address of the app proxy.

Returns Object

getAccounts

Get the available accounts for the current user.

Returns Promise<Array<string>> An array of addresses

getTransactionPath

Calculate the transaction path for a transaction to destination that invokes methodName with params.

Parameters

Returns Array<Object> An array of Ethereum transactions that describe each step in the path

calculateTransactionPath

Calculate the transaction path for a transaction to destination that invokes methodName with params.

Parameters

Returns Array<Object> An array of Ethereum transactions that describe each step in the path