Skip to content

Conversation

@levalleux-ludo
Copy link
Member

@levalleux-ludo levalleux-ludo commented Oct 6, 2022

Description

  • coreSDK.getSellerByAddress() has been updated, so that if no seller account is found with any of the addresses (operator, admin, clerk and treasury), then it checks the LENS contract to retrive any tokenId, and if so, it tries to get the seller account using the auth token
  • coreSDK.getSellerByAuthToken() a new service to directly retrieve a seller based on the auth token
  • coreSDK.fetchUserAuthTokens() a new service to directly get all LENS tokenIds owned by a given address

NOTE: this won't work with ENS, as their contract is not supporting the ERC721Enumrable interface, as LENS does...

How to test

I've added just a few unit tests in this PR.
I've been able to make an e2e:test to check the service is working as expected. However I can't push it right now, because it requires a few update in the contracts repo (needs sync with the protocol team).
It will be done later, and I propose the PR to be merged without waiting for it, as it's fixing a blocking point

@levalleux-ludo levalleux-ludo marked this pull request as ready for review October 6, 2022 17:29
Copy link
Collaborator

@albertfolch-redeemeum albertfolch-redeemeum left a comment

Choose a reason for hiding this comment

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

🔝

@levalleux-ludo levalleux-ludo merged commit 31de408 into main Oct 7, 2022
@levalleux-ludo levalleux-ludo deleted the find-seller-from-auth-token branch October 7, 2022 10:43
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.

3 participants