Skip to content

Conversation

@mmv08
Copy link
Contributor

@mmv08 mmv08 commented Jan 19, 2023

Implements updated types after safe-global/safe-config-service#755

@github-actions
Copy link

github-actions bot commented Jan 19, 2023

ESLint Summary View Full Report

Annotations are provided inline on the Files Changed tab. You can also see all annotations that were generated on the annotations page.

Type Occurrences Fixable
Errors 0 0
Warnings 0 0
Ignored 0 N/A
  • Result: ✅ success
  • Annotations: 0 total

Report generated by eslint-plus-action

provider?: SafeAppProvider
accessControl: SafeAppsAccessControlPolicies
tags: string[]
features: SafeAppFeatures[]
Copy link
Contributor

@DaniSomoza DaniSomoza Jan 23, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we also add in this PR the socialProfiles & developer_website types implemented here ?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

They're not implemented on the gateway yet

@mmv08 mmv08 marked this pull request as ready for review January 23, 2023 14:22
}

export enum SafeAppFeatures {
BATCHED_TRANSACTIONS = 'BATCHED_TRANSACTIONS',
Copy link
Member

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.

Copy link
Contributor Author

@mmv08 mmv08 Jan 23, 2023

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

}

export enum SafeAppFeatures {
BATCHED_TRANSACTIONS = 'BATCHED_TRANSACTIONS',
Copy link
Contributor

Choose a reason for hiding this comment

The 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.

Copy link
Contributor Author

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

@mmv08 mmv08 merged commit 485f68c into main Jan 23, 2023
@mmv08 mmv08 deleted the feature/safe-apps-features branch January 23, 2023 15:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants