Organization
Last updated
Last updated
An Organization
instance represents an Aragon organization and exposes methods to interact with it.
Fetch a specific app from the organization.
Name | Type | Description |
---|---|---|
This method can throw one of the following errors:
Error type | Description |
---|---|
Like Organization#app()
, but as a subscription.
Name | Type | Description |
---|---|---|
The error passed to callback
can be null
(no error) or one of the following:
Fetch apps from the organization.
This method can throw one of the following errors:
Like Organization#apps()
, but as a subscription.
The error passed to callback
can be null
(no error) or one of the following:
Fetch the organization’s permissions.
This method can throw one of the following errors:
Like Organization#permissions()
, but as a subscription.
The error passed to callback
can be null
(no error) or one of the following:
Execute a function on a given app.
Error type | Description |
---|---|
Name | Type | Description |
---|---|---|
Error type | Description |
---|---|
Name | Type | Description |
---|---|---|
Error type | Description |
---|---|
Name | Type | Description |
---|---|---|
Error type | Description |
---|---|
Name | Type | Description |
---|---|---|
Error type | Description |
---|---|
Name | Type | Description |
---|---|---|
appFilter
String
or object (optional)
When a string is passed, the app will get searched by address if it starts by 0x
, and by appName
otherwise. See appFilter.address
and appFilter.appName
to set them explicitly. For the time being, only one type of filter can get passed at a time.
appFilter.address
String
Same as appFilter
, but makes the selection by address
explicit.
appFilter.appName
String
Same as appFilter
, but makes the selection by appName
explicit.
returns
Promise<App>
A promise resolving to an app.
No app found.
The data couldn’t be fetched.
The connection to the remote source failed.
appFilter
String
or object (optional)
When a string is passed, the app will get searched by address if it starts by 0x
, and by appName
otherwise. See appFilter.address
and appFilter.appName
to set them explicitly. For the time being, only one type of filter can get passed at a time.
appFilter.address
String
Same as appFilter
, but makes the selection by address
explicit.
appFilter.appName
String
Same as appFilter
, but makes the selection by appName
explicit.
callback
(error: Error, app: App) => void
A callback that will get called every time the result gets updated.
returns
{ unsubscribe: () => void }
A handler that allows to stop receiving updates.
No app found.
The data couldn’t be fetched.
The connection to the remote source failed.
appFilter
String
or String[]
or object (optional)
When a string is passed, apps will get filtered by address if it starts by 0x
, and by appName
otherwise. When an array is passed, the first entry determines the type of filter. See appFilter.address
and appFilter.appName
to set them explicitly. For the time being, only one type of filter can get passed at a time.
appFilter.address
String
or String[]
Same as appFilter
, but makes the selection by address
explicit.
appFilter.appName
String
or String[]
Same as appFilter
, but makes the selection by appName
explicit.
returns
Promise<App[]>
A promise resolving to the current list of apps.
The data couldn’t be fetched.
The connection to the remote source failed.
appFilter
String
or String[]
or object (optional)
When a string is passed, apps will get filtered by address if it starts by 0x
, and by appName
otherwise. When an array is passed, the first entry determines the type of filter. See appFilter.address
and appFilter.appName
to set them explicitly. For the time being, only one type of filter can get passed at a time.
appFilter.address
String
or String[]
Same as appFilter
, but makes the selection by address
explicit.
appFilter.appName
String
or String[]
Same as appFilter
, but makes the selection by appName
explicit.
callback
(error: Error, app:App) => void
A callback that will get called every time the result gets updated.
returns
{ unsubscribe: () => void }
A handler that allows to stop receiving updates.
The data couldn’t be fetched.
The connection to the remote source failed.
returns
Promise<Permission[]>
A promise resolving to a Permissions
.
The data couldn’t be fetched.
The connection to the remote source failed.
callback
(error: Error, permission: Permission) => void
A callback that will get called every time the result gets updated.
returns
{ unsubscribe: () => void }
A handler that allows to stop receiving updates.
The data couldn’t be fetched.
The connection to the remote source failed.
appAddress
String
Address of the app instance.
funcName
String
Name of the function to call.
funcArgs
String
Parameters to pass to the function.
returns
Promise<TransactionIntent>
A promise resolving to an TransactionIntent
instance.