You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In #371 the api.getApps() function is filtered and there isn't a direct way to get apps' manifest and artifact anymore. These are the only exposed details:
{appAddress: '0x...',// currently running app's address (either proxy or full app contract)appId: '0x...',// app's appIdappImplementationAddress: '0x...',// base implementation address (only available if running is a proxy contract)identifier: '...',// self-declared app identifierisForwarder: bool,// whether this app is a forwarder or notkernelAddress: '0x...',// kernel the app is installed onname: '...',// name of the app (if available)}
I propose to include the manifest.json and the artifact.json URIs, so developers can still access them with a simple fetch(). For example, for the voting app it would look like:
I find installed apps artifact.json info especially relevant because it exposes the ABI and the roles of the other apps, which can be useful. In the committees app, we use it to get the names of the other apps roles.
The text was updated successfully, but these errors were encountered:
Good to know @sembrestels, thanks for bringing this up!
I intentionally limited the amount of information passed back through getApps() to avoid creating a large API surface area that would be difficult to change or constrain in the future.
I do agree on having the abi and roles present to help other apps construct actions or know more about how to interact with the other apps. Giving the entire artifact / manifest is likely not something we'll do immediately as we've been meaning to make changes to the schema.
sohkai
changed the title
API: Include an easy way to recover apps info in getApps()
API: add a easy way to fetch an app's artifact or manifest
Feb 5, 2020
In #371 the
api.getApps()
function is filtered and there isn't a direct way to get apps' manifest and artifact anymore. These are the only exposed details:I propose to include the manifest.json and the artifact.json URIs, so developers can still access them with a simple
fetch()
. For example, for the voting app it would look like:I find installed apps artifact.json info especially relevant because it exposes the ABI and the roles of the other apps, which can be useful. In the committees app, we use it to get the names of the other apps roles.
The text was updated successfully, but these errors were encountered: