Skip to content

Commit

Permalink
update (#190)
Browse files Browse the repository at this point in the history
* update

* update snap
  • Loading branch information
StrawberryFlavor authored Apr 22, 2024
1 parent dc234ac commit ceba6a0
Show file tree
Hide file tree
Showing 4 changed files with 388 additions and 20 deletions.
4 changes: 2 additions & 2 deletions networks/assethub.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@ import { Config } from './types'
export default {
polkadot: {
name: 'assetHubPolkadot' as const,
endpoint: 'wss://rpc-asset-hub-polkadot.luckyfriday.io',
endpoint: 'wss://statemint-rpc-tn.dwellir.com',
},
kusama: {
name: 'assetHubKusama' as const,
endpoint: 'wss://rpc-asset-hub-kusama.luckyfriday.io',
endpoint: 'wss://statemine-rpc-tn.dwellir.com',
},
config: ({ alice }) => ({
storages: {
Expand Down
162 changes: 151 additions & 11 deletions tests/xcm-transfer/__snapshots__/polkadot-para.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -121,16 +121,18 @@ exports[`'acala' -> 'assetHubPolkadot' xcm transfer 'WBTC' > xtokens transfer >
[
{
"data": {
"error": "FailedToTransactAsset",
"messageHash": "(hash)",
"messageId": "(hash)",
"weight": {
"id": "(hash)",
"origin": {
"Sibling": 2000,
},
"success": false,
"weightUsed": {
"proofSize": "(rounded 7200)",
"refTime": "(rounded 290000000)",
"refTime": "(rounded 320000000)",
},
},
"method": "Fail",
"section": "xcmpQueue",
"method": "Processed",
"section": "messageQueue",
},
]
`;
Expand All @@ -142,7 +144,7 @@ exports[`'acala' -> 'assetHubPolkadot' xcm transfer 'WBTC' > xtokens transfer >
"assets": [
{
"fun": {
"Fungible": 10000000000,
"Fungible": 16000000000,
},
"id": {
"Concrete": {
Expand Down Expand Up @@ -193,7 +195,7 @@ exports[`'acala' -> 'assetHubPolkadot' xcm transfer 'WBTC' > xtokens transfer >
},
"fee": {
"fun": {
"Fungible": 10000000000,
"Fungible": 16000000000,
},
"id": {
"Concrete": {
Expand Down Expand Up @@ -555,14 +557,152 @@ exports[`'assetHubPolkadot' -> 'acala' xcm transfer 'WBTC' > xcmPallet transfer
"data": {
"outcome": {
"Complete": {
"proofSize": "(rounded 8800)",
"refTime": "(rounded 731000000)",
"used": {
"proofSize": "(rounded 6200)",
"refTime": "(rounded 289000000)",
},
},
},
},
"method": "Attempted",
"section": "polkadotXcm",
},
{
"data": {
"fees": [
{
"fun": {
"Fungible": "(rounded 311000000)",
},
"id": {
"interior": "Here",
"parents": 1,
},
},
],
"paying": {
"interior": {
"X1": [
{
"AccountId32": {
"id": "(hash)",
"network": "Polkadot",
},
},
],
},
"parents": 0,
},
},
"method": "FeesPaid",
"section": "polkadotXcm",
},
{
"data": {
"destination": {
"interior": {
"X1": [
{
"Parachain": 2000,
},
],
},
"parents": 1,
},
"message": [
{
"ReserveAssetDeposited": [
{
"fun": {
"Fungible": 10000000,
},
"id": {
"interior": {
"X3": [
{
"Parachain": 1000,
},
{
"PalletInstance": 50,
},
{
"GeneralIndex": 21,
},
],
},
"parents": 1,
},
},
],
},
"ClearOrigin",
{
"BuyExecution": {
"fees": {
"fun": {
"Fungible": 10000000,
},
"id": {
"interior": {
"X3": [
{
"Parachain": 1000,
},
{
"PalletInstance": 50,
},
{
"GeneralIndex": 21,
},
],
},
"parents": 1,
},
},
"weightLimit": "Unlimited",
},
},
{
"DepositAsset": {
"assets": {
"Wild": {
"AllCounted": 1,
},
},
"beneficiary": {
"interior": {
"X1": [
{
"AccountId32": {
"id": "(hash)",
"network": null,
},
},
],
},
"parents": 0,
},
},
},
],
"messageId": "(hash)",
"origin": {
"interior": {
"X1": [
{
"AccountId32": {
"id": "(hash)",
"network": "Polkadot",
},
},
],
},
"parents": 0,
},
},
"method": "Sent",
"section": "polkadotXcm",
},
]
`;

Expand Down
Loading

0 comments on commit ceba6a0

Please sign in to comment.