-
Notifications
You must be signed in to change notification settings - Fork 26
Add type for safe app features #113
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -19,6 +19,10 @@ export type SafeAppProvider = { | |
| name: string | ||
| } | ||
|
|
||
| export enum SafeAppFeatures { | ||
| BATCHED_TRANSACTIONS = 'BATCHED_TRANSACTIONS', | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Just a heads-up. We are planning to move the Features enum into web-core because it is annoying to always publish a new version of the safe-gateway-typescript-sdk only when a new feature is added. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is the only safe-specific feature apps have at the moment and we don't have any more on the horizon now. Having it in the web core makes sense but sdk should be fine for us as of now |
||
| } | ||
|
|
||
| export type SafeAppData = { | ||
| id: number | ||
| url: string | ||
|
|
@@ -29,6 +33,7 @@ export type SafeAppData = { | |
| provider?: SafeAppProvider | ||
| accessControl: SafeAppsAccessControlPolicies | ||
| tags: string[] | ||
| features: SafeAppFeatures[] | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Can we also add in this PR the There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. They're not implemented on the gateway yet |
||
| } | ||
|
|
||
| export type SafeAppsResponse = SafeAppData[] | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How often are you planning to edit these features?
We're moving web-core feature toggles from this SDK to web-core itself because we often edit them and it's not practical to release a package every time. YMMV.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is the only safe-specific feature apps have at the moment and we don't have any more on the horizon now. Having it in the web core makes sense but sdk should be fine for us as of now