Skip to content
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

Feature/prime sdk based service hooks #60

Merged
merged 22 commits into from
Oct 24, 2023

Conversation

poocart
Copy link
Contributor

@poocart poocart commented Oct 24, 2023

Added Changes

  • Updated example React code to latest changes
  • Updated @etherspot/prime-sdk to version 1.3.4

Breaking Changes

  • Removed etherspot dependency
  • Removed @etherspot/react-etherspot dependency
  • Updated provider prop as required for <EtherspotTransactionKit /> component
  • Method getSdkForChainId on useEtherspot hook replaced with getSdk that returns Prime SDK instance as Promise
  • Method connect on useEtherspot is no longer available and not required to start SDK session
  • Values accountAddress and providerWalletAddress are no longer on useEtherspot hook, please use useWalletAddress hook
  • Value sdk on useEtherspot hook is no longer present, please use getSdk on useEtherspot hook

@poocart poocart requested a review from IAmKio October 24, 2023 12:43
"buffer": "^6.0.3",
"ethers": "^5.6.9",
"etherspot": "^1.41.2",
Copy link
Contributor

Choose a reason for hiding this comment

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

RIP

Copy link
Contributor Author

Choose a reason for hiding this comment

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

RIP

Copy link
Contributor

@IAmKio IAmKio left a comment

Choose a reason for hiding this comment

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

Just one tiny thing - other than that - looks and feels better!

const raw = window.localStorage.getItem(`session-prime-${walletAddress}`);
result = raw ? JSON.parse(raw) : null
} catch (err) {
//
Copy link
Contributor

Choose a reason for hiding this comment

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

We should add a warning or something here should the device or security not allow local storage, feels like a showstopper?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

session storage removed completely per SDK team feedback

IAmKio
IAmKio previously approved these changes Oct 24, 2023
@poocart poocart merged commit f964273 into master Oct 24, 2023
3 checks passed
@poocart poocart deleted the feature/prime-sdk-based-service-hooks branch October 24, 2023 18:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants