-
Notifications
You must be signed in to change notification settings - Fork 17
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
[SPE-246] Add support for EVM wallets, separate source and destination wallets #51
Merged
Merged
Changes from 7 commits
Commits
Show all changes
35 commits
Select commit
Hold shift + click to select a range
71bf627
add support for evm wallets, separate source and destination wallets
thal0x 6705251
resolve merge conflicts
thal0x 605d625
fix broken tests
thal0x 56d07f0
add tests
thal0x 122aa18
adjust tests
thal0x 4a71855
configure all supported chains
thal0x 4a69b8e
make it build
thal0x a950512
get balances
thal0x f23098e
execute evm txs
thal0x bc4df4e
testnets
thal0x 5c4813f
update sdk version
thal0x 2bd6646
rpc not grpc
thal0x 3a41910
evm integration
thal0x b7db3af
remove Chains context
thal0x d4b2110
update skip sdk version
thal0x beeaf76
cleanup
thal0x 8bdaa2d
update tests
thal0x 0b1fe84
catch up to head
thal0x 24566de
rename useChainByChainID to useChainByID
thal0x 01b9cb1
rename useChainByChainID to useChainByID
thal0x 624d075
handle no fee assets
thal0x 49d54cc
add tests for new query hooks
thal0x c96551e
handle no route found (this was handled before where did it go???)
thal0x 65a5bbe
handle no route found (this was handled before where did it go???)
thal0x 9ba0c3e
feat: add gitignore for src/chains/
grikomsn 2b515fe
feat: make generate.js script
grikomsn 68ec36e
feat: run generate script on webpack server side
grikomsn 16220ed
refactor: replace registry arr iter with record
grikomsn 8fbdda7
refactor: typed chain id
grikomsn 09be28c
fix: update generate script entrypoints
grikomsn 55cf6af
feat: optimized chain registry as record object (#57)
815bfc9
remove dead code
thal0x 4537103
catch up to main
thal0x a85ba40
Merge pull request #55 from skip-mev/remove-chain-context
thal0x d007345
Merge pull request #53 from skip-mev/finish-evm-integration
thal0x File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,6 @@ | ||
import "@testing-library/jest-dom/extend-expect"; | ||
|
||
global.ResizeObserver = require("resize-observer-polyfill"); | ||
|
||
// eslint-disable-next-line @typescript-eslint/no-var-requires | ||
global.TextEncoder = require("util").TextEncoder; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
const RouteLoadingBanner = () => ( | ||
<div className="bg-black text-white/50 font-medium uppercase text-xs p-3 rounded-md flex items-center w-full text-left"> | ||
<p className="flex-1">Finding best route...</p> | ||
<svg | ||
className="animate-spin h-4 w-4 inline-block text-white" | ||
xmlns="http://www.w3.org/2000/svg" | ||
fill="none" | ||
viewBox="0 0 24 24" | ||
> | ||
<circle | ||
className="opacity-25" | ||
cx="12" | ||
cy="12" | ||
r="10" | ||
stroke="currentColor" | ||
strokeWidth="4" | ||
></circle> | ||
<path | ||
className="opacity-75" | ||
fill="currentColor" | ||
d="M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z" | ||
></path> | ||
</svg> | ||
</div> | ||
); | ||
|
||
export default RouteLoadingBanner; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
import { FC } from "react"; | ||
|
||
const RouteTransactionCountBanner: FC<{ | ||
numberOfTransactions: number; | ||
}> = ({ numberOfTransactions }) => ( | ||
<div className="bg-black text-white/50 font-medium uppercase text-xs p-3 rounded-md flex items-center w-full text-left"> | ||
<p className="flex-1"> | ||
This route requires{" "} | ||
{numberOfTransactions === 1 && ( | ||
<span className="text-white">1 Transaction</span> | ||
)} | ||
{numberOfTransactions > 1 && ( | ||
<span className="text-white">{numberOfTransactions} Transactions</span> | ||
)}{" "} | ||
to complete | ||
</p> | ||
</div> | ||
); | ||
|
||
export default RouteTransactionCountBanner; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
This is all just due to weird CJS vs ESM interactions when running Jest. I think I'm going to add a task to migrate to vitest since it doesn't have these problems and I've had a good experience with it in the skip-router repo