-
Notifications
You must be signed in to change notification settings - Fork 32
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
feat(synapse-interface): upgrade wagmi, viem, rainbowkit to support smartwallet #2674
Conversation
WalkthroughThis update involves version bumps for several dependencies in the Changes
Poem
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (invoked as PR comments)
Additionally, you can add CodeRabbit Configration File (
|
Deploying sanguine with Cloudflare Pages
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 0
Review details
Configuration used: .coderabbit.yaml
Review profile: CHILL
Files ignored due to path filters (1)
yarn.lock
is excluded by!**/*.lock
Files selected for processing (1)
- packages/synapse-interface/package.json (2 hunks)
Additional comments not posted (3)
packages/synapse-interface/package.json (3)
32-32
: Version update for@rainbow-me/rainbowkit
looks good. Ensure compatibility with new features.
74-74
: Version update forwagmi
looks good. Ensure all blockchain interactions are tested thoroughly.
73-73
: Version update forviem
looks good. Recommend thorough testing of dependent features.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 0
Review details
Configuration used: .coderabbit.yaml
Review profile: CHILL
Files selected for processing (1)
- packages/synapse-interface/package.json (3 hunks)
Files skipped from review as they are similar to previous changes (1)
- packages/synapse-interface/package.json
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #2674 +/- ##
===================================================
+ Coverage 39.89549% 39.90228% +0.00678%
===================================================
Files 180 180
Lines 14736 14736
Branches 80 80
===================================================
+ Hits 5879 5880 +1
Misses 8093 8093
+ Partials 764 763 -1
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 0
Review details
Configuration used: .coderabbit.yaml
Review profile: CHILL
Files ignored due to path filters (1)
yarn.lock
is excluded by!**/*.lock
Files selected for processing (9)
- .nvmrc (1 hunks)
- packages/synapse-interface/actions/approveErc20Token.ts (2 hunks)
- packages/synapse-interface/actions/harvestLpPool.ts (2 hunks)
- packages/synapse-interface/actions/stakeLpToken.ts (2 hunks)
- packages/synapse-interface/actions/swapPoolAddLiquidity.ts (2 hunks)
- packages/synapse-interface/actions/swapPoolRemoveLiquidity.ts (2 hunks)
- packages/synapse-interface/actions/swapPoolRemoveLiquidityOneToken.ts (2 hunks)
- packages/synapse-interface/actions/unstakeLpToken.ts (2 hunks)
- packages/synapse-interface/package.json (4 hunks)
Files skipped from review due to trivial changes (1)
- .nvmrc
Files skipped from review as they are similar to previous changes (1)
- packages/synapse-interface/package.json
Additional comments not posted (10)
packages/synapse-interface/actions/harvestLpPool.ts (1)
2-2
: Integration ofSimulateContractParameters
looks correct and enhances type safety.Also applies to: 29-29
Verification successful
The type
SimulateContractParameters
is defined locally within each file in thepackages/synapse-interface/actions/
directory, ensuring correct usage without the need for imports.
packages/synapse-interface/actions/unstakeLpToken.ts
packages/synapse-interface/actions/swapPoolRemoveLiquidity.ts
packages/synapse-interface/actions/stakeLpToken.ts
packages/synapse-interface/actions/harvestLpPool.ts
packages/synapse-interface/actions/approveErc20Token.ts
packages/synapse-interface/actions/swapPoolRemoveLiquidityOneToken.ts
packages/synapse-interface/actions/swapPoolAddLiquidity.ts
Scripts executed
The following scripts were executed for the analysis:
Script:
#!/bin/bash # Description: Verify integration with updated libraries. # Test: Search for any errors or warnings related to the new type usage. rg --type typescript $'SimulateContractParameters' packages/synapse-interface/actions/Length of output: 120
Script:
#!/bin/bash # Description: Verify integration with updated libraries. # Test: Search for any errors or warnings related to the new type usage. rg --type ts 'SimulateContractParameters' packages/synapse-interface/actions/Length of output: 1382
Script:
#!/bin/bash # Description: Verify the definition and import of `SimulateContractParameters`. # Test: Search for the definition of `SimulateContractParameters`. rg 'type SimulateContractParameters' --files-with-matches # Test: Search for the import of `SimulateContractParameters`. rg 'import.*SimulateContractParameters' packages/synapse-interface/actions/Length of output: 540
Script:
#!/bin/bash # Description: Verify if `SimulateContractParameters` is defined locally in each file or if it should be imported. # Test: Search for the definition of `SimulateContractParameters` within each file. rg 'type SimulateContractParameters' packages/synapse-interface/actions/Length of output: 722
packages/synapse-interface/actions/stakeLpToken.ts (1)
2-2
: Consistent use ofSimulateContractParameters
across different actions ensures uniformity and type safety.Also applies to: 31-31
Verification successful
The search results indicate that the
SimulateContractParameters
type is consistently used across multiple files within thepackages/synapse-interface/actions/
directory. This suggests that the integration of this type is uniform and likely correct.Files where
SimulateContractParameters
is used:
unstakeLpToken.ts
swapPoolRemoveLiquidityOneToken.ts
swapPoolRemoveLiquidity.ts
stakeLpToken.ts
swapPoolAddLiquidity.ts
approveErc20Token.ts
harvestLpPool.ts
Consistent use of
SimulateContractParameters
across different actions ensures uniformity and type safety.Scripts executed
The following scripts were executed for the analysis:
Script:
#!/bin/bash # Description: Verify integration with updated libraries. # Test: Search for any errors or warnings related to the new type usage. rg --type typescript $'SimulateContractParameters' packages/synapse-interface/actions/Length of output: 120
Script:
#!/bin/bash # Description: Verify integration with updated libraries. # Test: Search for any errors or warnings related to the new type usage. rg --type ts 'SimulateContractParameters' packages/synapse-interface/actions/Length of output: 1382
packages/synapse-interface/actions/unstakeLpToken.ts (1)
2-2
: Type casting withSimulateContractParameters
is correctly applied, ensuring type safety.Also applies to: 31-31
Verification successful
The type
SimulateContractParameters
is consistently used across multiple files within thepackages/synapse-interface/actions/
directory, includingunstakeLpToken.ts
. This indicates that the type integration is uniform and there are no immediate errors or warnings related to its usage.
packages/synapse-interface/actions/unstakeLpToken.ts
packages/synapse-interface/actions/swapPoolRemoveLiquidityOneToken.ts
packages/synapse-interface/actions/swapPoolRemoveLiquidity.ts
packages/synapse-interface/actions/swapPoolAddLiquidity.ts
packages/synapse-interface/actions/stakeLpToken.ts
packages/synapse-interface/actions/harvestLpPool.ts
packages/synapse-interface/actions/approveErc20Token.ts
Scripts executed
The following scripts were executed for the analysis:
Script:
#!/bin/bash # Description: Verify integration with updated libraries. # Test: Search for any errors or warnings related to the new type usage. rg --type typescript $'SimulateContractParameters' packages/synapse-interface/actions/Length of output: 120
Script:
#!/bin/bash # Description: Verify integration with updated libraries. # Test: Search for any errors or warnings related to the new type usage. rg --type ts 'SimulateContractParameters' packages/synapse-interface/actions/Length of output: 1382
packages/synapse-interface/actions/approveErc20Token.ts (1)
2-2
: Proper use ofSimulateContractParameters
for type safety in ERC20 token approval.Also applies to: 40-40
Verification successful
The integration of
SimulateContractParameters
appears consistent across multiple files within thepackages/synapse-interface/actions/
directory. The type is used in various action files without any apparent errors or warnings.
packages/synapse-interface/actions/unstakeLpToken.ts
packages/synapse-interface/actions/swapPoolRemoveLiquidityOneToken.ts
packages/synapse-interface/actions/swapPoolRemoveLiquidity.ts
packages/synapse-interface/actions/stakeLpToken.ts
packages/synapse-interface/actions/approveErc20Token.ts
packages/synapse-interface/actions/harvestLpPool.ts
packages/synapse-interface/actions/swapPoolAddLiquidity.ts
Scripts executed
The following scripts were executed for the analysis:
Script:
#!/bin/bash # Description: Verify integration with updated libraries. # Test: Search for any errors or warnings related to the new type usage. rg --type typescript $'SimulateContractParameters' packages/synapse-interface/actions/Length of output: 120
Script:
#!/bin/bash # Description: Verify integration with updated libraries. # Test: Search for any errors or warnings related to the new type usage. rg --type ts 'SimulateContractParameters' packages/synapse-interface/actions/Length of output: 1382
packages/synapse-interface/actions/swapPoolAddLiquidity.ts (1)
2-2
: Correct application ofSimulateContractParameters
in liquidity addition actions enhances type safety.Also applies to: 46-49
Verification successful
The integration of
SimulateContractParameters
appears consistent across multiple action files, includingswapPoolAddLiquidity.ts
. No errors or warnings were found related to the new type usage.
swapPoolAddLiquidity.ts
correctly usesSimulateContractParameters
.- Other files such as
unstakeLpToken.ts
,swapPoolRemoveLiquidityOneToken.ts
, andstakeLpToken.ts
also useSimulateContractParameters
consistently.Scripts executed
The following scripts were executed for the analysis:
Script:
#!/bin/bash # Description: Verify integration with updated libraries. # Test: Search for any errors or warnings related to the new type usage. rg --type typescript $'SimulateContractParameters' packages/synapse-interface/actions/Length of output: 120
Script:
#!/bin/bash # Description: Verify integration with updated libraries. # Test: Search for any errors or warnings related to the new type usage. rg --type ts 'SimulateContractParameters' packages/synapse-interface/actions/Length of output: 1382
packages/synapse-interface/actions/swapPoolRemoveLiquidity.ts (1)
3-3
: Consistent and correct use ofSimulateContractParameters
in liquidity removal actions ensures type safety.Also applies to: 46-46
Verification successful
The search results indicate that the
SimulateContractParameters
type is consistently used across multiple action files, includingswapPoolRemoveLiquidity.ts
. This suggests that the integration of this type is uniform and likely correct.
swapPoolRemoveLiquidity.ts
unstakeLpToken.ts
swapPoolRemoveLiquidityOneToken.ts
stakeLpToken.ts
approveErc20Token.ts
swapPoolAddLiquidity.ts
harvestLpPool.ts
Given this consistency, it appears that the use of
SimulateContractParameters
is well-integrated across the codebase.Scripts executed
The following scripts were executed for the analysis:
Script:
#!/bin/bash # Description: Verify integration with updated libraries. # Test: Search for any errors or warnings related to the new type usage. rg --type typescript $'SimulateContractParameters' packages/synapse-interface/actions/Length of output: 120
Script:
#!/bin/bash # Description: Verify integration with updated libraries. # Test: Search for any errors or warnings related to the new type usage. rg --type ts 'SimulateContractParameters' packages/synapse-interface/actions/Length of output: 1382
packages/synapse-interface/actions/swapPoolRemoveLiquidityOneToken.ts (4)
2-2
: Import ofSimulateContractParameters
correctly added.
Line range hint
9-9
: Function signature and parameters are correctly defined for blockchain interactions.
47-47
: Correct use ofSimulateContractParameters
for type safety in blockchain operations.
47-47
: Return statement is appropriate for the blockchain write operation.
Summary by CodeRabbit
New Features
Chores
v18.18.0
for improved compatibility and stability.14a3800acde5bc56f9f7664d2cc6a421a3982cc1: synapse-interface preview link