Skip to content

Commit

Permalink
use teleport
Browse files Browse the repository at this point in the history
  • Loading branch information
samelamin committed Sep 11, 2023
1 parent 979cd08 commit 9cf28c4
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 25 deletions.
19 changes: 8 additions & 11 deletions chopsticks/xcm-transfer/__snapshots__/kusama-assethub.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ exports[`'kusama' -> 'statemine' xcm transfer 'KSM' > xcmPallet transfer > balan
{
"consumers": 0,
"data": {
"flags": 0,
"free": 10000000000000,
"flags": "0x80000000000000000000000000000000",
"free": "(rounded 11000000000000)",
"frozen": 0,
"reserved": 0,
},
Expand All @@ -44,13 +44,10 @@ exports[`'kusama' -> 'statemine' xcm transfer 'KSM' > xcmPallet transfer > to ch
"messageHash": "(hash)",
"messageId": "(hash)",
"outcome": {
"Incomplete": [
{
"proofSize": 0,
"refTime": 1000000000,
},
"UntrustedReserveLocation",
],
"Complete": {
"proofSize": 0,
"refTime": "(rounded 170000000)",
},
},
},
"method": "ExecutedDownward",
Expand All @@ -61,7 +58,7 @@ exports[`'kusama' -> 'statemine' xcm transfer 'KSM' > xcmPallet transfer > to ch
"dmqHead": "(hash)",
"weightUsed": {
"proofSize": 0,
"refTime": 1000000000,
"refTime": "(rounded 170000000)",
},
},
"method": "DownwardMessagesProcessed",
Expand All @@ -77,7 +74,7 @@ exports[`'kusama' -> 'statemine' xcm transfer 'KSM' > xcmPallet transfer > tx ev
"outcome": {
"Complete": {
"proofSize": 0,
"refTime": "(rounded 753000000)",
"refTime": "(rounded 764000000)",
},
},
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ exports[`'polkadot' -> 'statemint' xcm transfer 'DOT' > xcmPallet transfer > bal
{
"consumers": 0,
"data": {
"flags": 0,
"free": 10000000000000,
"flags": "0x80000000000000000000000000000000",
"free": "(rounded 11000000000000)",
"frozen": 0,
"reserved": 0,
},
Expand All @@ -43,13 +43,10 @@ exports[`'polkadot' -> 'statemint' xcm transfer 'DOT' > xcmPallet transfer > to
"data": {
"messageId": "(hash)",
"outcome": {
"Incomplete": [
{
"proofSize": 0,
"refTime": 1000000000,
},
"UntrustedReserveLocation",
],
"Complete": {
"proofSize": 0,
"refTime": "(rounded 160000000)",
},
},
},
"method": "ExecutedDownward",
Expand All @@ -60,7 +57,7 @@ exports[`'polkadot' -> 'statemint' xcm transfer 'DOT' > xcmPallet transfer > to
"dmqHead": "(hash)",
"weightUsed": {
"proofSize": 0,
"refTime": 1000000000,
"refTime": "(rounded 160000000)",
},
},
"method": "DownwardMessagesProcessed",
Expand All @@ -76,7 +73,7 @@ exports[`'polkadot' -> 'statemint' xcm transfer 'DOT' > xcmPallet transfer > tx
{
"Complete": {
"proofSize": 0,
"refTime": 2000000000,
"refTime": 3000000000,
},
},
],
Expand Down
2 changes: 1 addition & 1 deletion chopsticks/xcm-transfer/kusama-assethub.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ const tests = [
name: 'KSM',
test: {
xcmPalletDown: {
tx: tx.xcmPallet.limitedReserveTransferAssetsV3(kusama.ksm, 1e12, tx.xcmPallet.parachainV3(0, statemine.paraId)),
tx: tx.xcmPallet.limitedTeleportAssets(kusama.ksm, 1e12, tx.xcmPallet.parachainV3(0, statemine.paraId)),
balance: query.balances,
},
},
Expand Down
4 changes: 2 additions & 2 deletions chopsticks/xcm-transfer/polkadot-assethub.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ const tests = [
name: 'DOT',
test: {
xcmPalletDown: {
tx: tx.xcmPallet.limitedReserveTransferAssetsV3(polkadot.dot, 1e12, tx.xcmPallet.parachainV3(0, statemint.paraId)),
tx: tx.xcmPallet.limitedTeleportAssets(polkadot.dot, 1e12, tx.xcmPallet.parachainV3(0, statemint.paraId)),
balance: query.balances,
},
},
Expand All @@ -22,4 +22,4 @@ const tests = [

export type TestType = (typeof tests)[number]

buildTest(tests)
buildTest(tests)

0 comments on commit 9cf28c4

Please sign in to comment.