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

Context checks, remove master safe context, few component integrations #471

Merged

Conversation

truemiller
Copy link
Collaborator

@truemiller truemiller commented Nov 20, 2024

Proposed changes

ensure contexts don't have lint errors

  • ServicesProvider types
  • rename WalletProvider to MasterWalletProvider (poor naming previously)

some hook updates

  • removed useMasterSafe, MasterSafeContext, and GnosisSafeService, replaced with useMultisig hook

few component integrations/fixes (limited this to stop too much scope creep of PR)

  • wallet debug window in settings
  • add funds section
  • backup wallet alert scoped to specific safe
  • add backup wallet supports cross-chain
  • additional wallet types, for more granular usage

Types of changes

What types of changes does your code introduce?
Put an x in the boxes that apply

  • Bugfix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)

@truemiller truemiller changed the title context changes Context checks, remove master safe context, few component integrations Nov 20, 2024
@truemiller truemiller marked this pull request as ready for review November 20, 2024 18:30
address: wallet.address,
link: {
title: 'Go to Safe',
href: `${EXPLORER_URL[MiddlewareChain.OPTIMISM]}/address/${wallet.address}`,
Copy link
Collaborator

Choose a reason for hiding this comment

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

TODO: chain independent

address: address,
truncatedAddress: address ? truncateAddress(address) : '',
});
const getBalanceData = (walletBalances: WalletBalanceResult[]) => {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Maybe? The "data" seems to return a singular value rather than an object.

Suggested change
const getBalanceData = (walletBalances: WalletBalanceResult[]) => {
const getBalanceDetails = (walletBalances: WalletBalanceResult[]) => {

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

this is removed/renamed in follow up PR

@truemiller truemiller merged commit 7b829d7 into refactor/multi-chain-support-frontend Nov 21, 2024
2 of 4 checks passed
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