-
Notifications
You must be signed in to change notification settings - Fork 1
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
THEA Enhancements - I #231
Closed
Closed
Changes from 30 commits
Commits
Show all changes
33 commits
Select commit
Hold shift + click to select a range
db2dae1
feat: polkadex to assethub DOT transfer
ap211unitech bd256a3
feat: assethub to assethub DOT transfer (not tested yet)
ap211unitech aead323
feat: interlay to polkadex for DOT
ap211unitech d6bc81d
fix: balance fetching for interlay
ap211unitech 5144267
feat: interlay to polkadex for USDT
ap211unitech 1791d0f
chore: minor change
ap211unitech 7a073e3
chore: changeset added
ap211unitech b5a8c5e
Merge branch 'feat/thea-withdrawals' into feat/thea-enhancements-i
ap211unitech 10e25ca
chore: added USDC and GLMR token for interlay
ap211unitech 3f063a8
feat: interlay to polkadex for USDC
ap211unitech 0b4026f
feat: interlay to polkadex for GLMR
ap211unitech 8b0854b
Merge branch 'main' into feat/thea-enhancements-i
ap211unitech c1093b9
Merge branch 'main' into feat/thea-enhancements-i
ap211unitech 3121b8e
Merge branch 'main' into feat/thea-enhancements-i
nuel77 e29f862
Merge branch 'main' into feat/thea-enhancements-i
ap211unitech 2b0045b
Merge branch 'main' into feat/thea-enhancements-i
ap211unitech 7973f8b
Merge branch 'main' into feat/thea-enhancements-i
ap211unitech 5ab8340
chore: tested GLMR transfer
ap211unitech 2f3b5a9
feat: added BNC token for interlay
ap211unitech 6a54ca6
feat: added vDOT token for interlay
ap211unitech 3266dd0
chore: minor change
ap211unitech 130880f
chore: removed DOT support for AssetHub to Polkadex
ap211unitech a5561b8
Merge branch 'main' into feat/thea-enhancements-i
ap211unitech b05624a
chore: removed support for usdt & usdc
ap211unitech dcd4d42
Merge branch 'main' into feat/thea-enhancements-i
ap211unitech c10656b
feat: DOT transfer working
ap211unitech 5ab8ea1
feat: GLMR transfer from Polkadex to Interlay
ap211unitech 662db21
feat: BNC transfer from Polkadex to Interlay
ap211unitech 0b64367
feat: DOT transfer from Polkadex to Interlay
ap211unitech f570877
feat: vDOT transfer from Polkadex to Interlay
ap211unitech 915a540
chore: minor change
ap211unitech 8f44c82
chore: files cleanup
ap211unitech c2197fd
chore: updated changeset
ap211unitech 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
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,5 @@ | ||
--- | ||
"@polkadex/thea": minor | ||
--- | ||
|
||
In this PR, we will be allowing DOT transfer from AssetHub to Polkadex and DOT, USDT transfer from Interlay to Polkadex network. |
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
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
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
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.
Tip
Codebase Verification
The
build
function with the old parameters{ address, amount, asset, destination, palletInstance }
is still present inpackages/thea/src/config/substrate/builders/pallets/xTokens.ts
. This indicates that the removal of these parameters inpolkadotXcm.ts
might not be consistent across the codebase.packages/thea/src/config/substrate/builders/pallets/xTokens.ts
:build: ({ address, amount, asset, destination, palletInstance }) =>
Please review and update the
xTokens.ts
file to ensure consistency.Analysis chain
Verify the removal of
asset
andpalletInstance
parameters in thebuild
function ofX1
.Scripts executed
The following scripts were executed for the analysis:
Script:
Length of output: 251
Script:
Length of output: 128
Script:
Length of output: 359
Tip
Codebase Verification
The
here
method inreserveTransferAssets
appears to be duplicated across multiple files:packages/thea/src/config/substrate/builders/pallets/xTokens.ts
packages/thea/src/config/substrate/builders/pallets/polkadotXcm.ts
packages/thea/src/config/substrate/builders/pallets/xTransfer.ts
packages/thea/src/config/substrate/builders/pallets/xcmPallet.ts
Please review these instances to ensure there is no unnecessary duplication and consider refactoring if needed.
Analysis chain
Review the addition of the new
here
method inreserveTransferAssets
for potential duplication with existing methods.Scripts executed
The following scripts were executed for the analysis:
Script:
Length of output: 96
Script:
Length of output: 53
Script:
Length of output: 30
Script:
Length of output: 778