-
Couldn't load subscription status.
- Fork 1
refactor: cleaner separation of getSellers* methods
#309
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
base: main
Are you sure you want to change the base?
Conversation
|
@dohaki The usecase I'm trying to explain (which is the usecase the dApp is facing to) is the one implemented in this test case: core-components/e2e/tests/core-sdk.test.ts Line 602 in b7d5342
Note: this test has not been pushed yet because it requires a change at the contracts repo. |
However, I agree with " |
@levalleux-ludo I mean the dApp can always use |
OK, I agree to keep the 2 methods. |
|
Converted to draft because this PR can't be merged at the moment because it will impact the dApp |
Description
This proposes a cleaner separation for the work done in #295 and #306.
The class
CoreSDKshould have as less as possible business logic and should just be a wrapper around the different module handlers, subgraph helpers, etc. I, therefore, moved them out into the account module.I also think it is cleaner to leave the
getSellerByAddressas it is to match only the configured operator, treasury, etc. address. And add a new methodgetSellersByAddressOrAuthTokenthat is more distinct.@albertfolch-redeemeum I guess these are some breaking changes for the interface.
Blocked by #292 but can be reviewed already.