-
Notifications
You must be signed in to change notification settings - Fork 11
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: add support for xTokens pallet #227
Conversation
add tests for transferMultiassetWithFee
add weight vars as CreateWeightLimitOpts
…Tokens pallet exists updated foreignAssetMultiLocationExists to always query the current relay registry asset hub rather than the current origin chains state to account for non system chain queries added util function to create AssetHub api in order to query foreign assets pallet
temporarily remove asset hub assetId chain state queries
fix v2 to xcmv3weights conflicts
update asset-transfer-api-registry to 0.2.6 update Registry to include xcAssets
src/types.ts
Outdated
* Provided when creating limited txs, represents the allowed amount of computation time | ||
* the tx can use | ||
*/ | ||
refTime?: string; |
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.
Replace weightLimit: string
with weightLimit: { refTime: string, proofSize: string }
src/AssetsTransferApi.spec.ts
Outdated
@@ -659,6 +659,8 @@ describe('AssetTransferAPI', () => { | |||
xcmVersion: 3, | |||
weightLimit: '100000', | |||
isLimited: true, | |||
refTime: '1000', |
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.
Note this should be updated with the Weightlimit change.
add checkParaAssets specs remove xcAssets BaseErrors from ParaToSystem xTokens
import { getChainIdBySpecName } from './getChainIdBySpecName'; | ||
|
||
/** | ||
* Returns the correct asset id for a valid AssetHub token symbol integer id |
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 comment is a bit confusing. I think the punctuation just needs to be fixed and it will be perfect.
_specName, | ||
registry, | ||
{ |
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.
If this is an option should it be at the end of the args? And I thinkxcmVersion
, and paysWithFeeDest
can be added to it.
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.
good catch. adding those to the options
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.
Rockstart PR! Really impressive!
update checkXcmTxInputs params
TODO:
closes: #221