-
Notifications
You must be signed in to change notification settings - Fork 0
Add EURC and XLM assets from Pendulum #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
Changes from 3 commits
d85b4ba
c433428
04f47db
2ffdd58
5f59bfe
d46f6da
c6b48c2
e882254
0f71099
e3474c8
ceb9c08
87a68ad
091baa4
c2d439a
ea9ec52
5442548
5da9f12
dcc50c1
df0d2a0
7a6d48f
f0df5f1
d50a0f4
6046dc9
14db764
fe279ae
5f2b07f
8a1ee6f
59b14b4
213cc10
684f126
3b00a61
5deefe6
c5f6e66
8e4c921
dd3eece
f9d6860
5900391
c3ec0be
0ad243f
4e2c314
a8fc761
fa65aca
d3d5e10
6a0403d
696631d
e9a3ce4
2741404
a2bfbdd
fa617f7
57ace04
30c59bc
bd9e15d
b08ff34
e387a5d
9dbc433
b83864c
1e9d288
8aa1a4e
cf57cc3
9d35247
8d0addb
6fd2345
c54e4fd
f0cfed8
f469be2
b148dcc
54bc3a6
2888bf8
a64015d
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
import { AssetRoute, ChainRoutes } from '@galacticcouncil/xcm-core'; | ||
|
||
import { pen } from '../../assets'; | ||
import { eurc, pen, xlm } from '../../assets'; | ||
import { hydration, pendulum } from '../../chains'; | ||
import { BalanceBuilder, ExtrinsicBuilder } from '../../builders'; | ||
|
||
|
@@ -23,6 +23,43 @@ const toHydration: AssetRoute[] = [ | |
}, | ||
extrinsic: ExtrinsicBuilder().xTokens().transfer(), | ||
}), | ||
new AssetRoute({ | ||
source: { | ||
asset: eurc, | ||
balance: BalanceBuilder().substrate().system().account(), | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Are you sure that this is correct? Only the native asset balance can be accessed in the There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. You may be right, I didn't think about this and it wasn't important to create the transaction itself according to the tests, but it may be for the UI. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Haha yeah I guess it's important, otherwise the balance won't show correctly. |
||
destinationFee: { | ||
balance: BalanceBuilder().substrate().system().account(), | ||
}, | ||
}, | ||
destination: { | ||
chain: hydration, | ||
asset: eurc, | ||
fee: { | ||
amount: 0.0008, | ||
asset: eurc, | ||
}, | ||
}, | ||
extrinsic: ExtrinsicBuilder().xTokens().transfer(), | ||
}), | ||
|
||
new AssetRoute({ | ||
source: { | ||
asset: xlm, | ||
balance: BalanceBuilder().substrate().system().account(), | ||
destinationFee: { | ||
balance: BalanceBuilder().substrate().system().account(), | ||
}, | ||
}, | ||
destination: { | ||
chain: hydration, | ||
asset: xlm, | ||
fee: { | ||
amount: 0.09, | ||
asset: xlm, | ||
}, | ||
}, | ||
extrinsic: ExtrinsicBuilder().xTokens().transfer(), | ||
}), | ||
]; | ||
|
||
export const pendulumConfig = new ChainRoutes({ | ||
|
Uh oh!
There was an error while loading. Please reload this page.