Skip to content

Commit

Permalink
update snapshot
Browse files Browse the repository at this point in the history
  • Loading branch information
xlc committed Apr 19, 2024
1 parent c952fe2 commit dc234ac
Show file tree
Hide file tree
Showing 4 changed files with 384 additions and 112 deletions.
88 changes: 0 additions & 88 deletions tests/acala/__snapshots__/homa.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -15,64 +15,6 @@ exports[`'acala' homa > with latest block > Homa redeem unbond works > events 1`
`;

exports[`'acala' homa > with latest block > Homa redeem unbond works > events 2`] = `
[
{
"data": {
"eraIndexWhenUnbond": 100,
"liquidAmount": 1000000000000,
"redeemer": "23y3WetbNi6rDMgHmyRDjgpb7PnhgPotuPPawxruTMLYTLzG",
"unbondingStakingAmount": "(rounded 140000000000)",
},
"method": "RedeemedByUnbond",
"section": "homa",
},
]
`;

exports[`'acala' homa > with latest block > Homa redeem unbond works > events 3`] = `
[
{
"data": {
"allowFastMatch": false,
"liquidAmount": 1000000000000,
"redeemer": "23y3WetbNi6rDMgHmyRDjgpb7PnhgPotuPPawxruTMLYTLzG",
},
"method": "RequestedRedeem",
"section": "homa",
},
]
`;

exports[`'acala' homa > with latest block > Homa redeem unbond works > events 4`] = `
[
{
"data": {
"eraIndexWhenUnbond": 100,
"liquidAmount": 1000000000000,
"redeemer": "23y3WetbNi6rDMgHmyRDjgpb7PnhgPotuPPawxruTMLYTLzG",
"unbondingStakingAmount": "(rounded 150000000000)",
},
"method": "RedeemedByUnbond",
"section": "homa",
},
]
`;

exports[`'acala' homa > with latest block > Homa redeem unbond works > events 5`] = `
[
{
"data": {
"allowFastMatch": false,
"liquidAmount": 1000000000000,
"redeemer": "23y3WetbNi6rDMgHmyRDjgpb7PnhgPotuPPawxruTMLYTLzG",
},
"method": "RequestedRedeem",
"section": "homa",
},
]
`;

exports[`'acala' homa > with latest block > Homa redeem unbond works > events 6`] = `
[
{
"data": {
Expand All @@ -88,36 +30,6 @@ exports[`'acala' homa > with latest block > Homa redeem unbond works > events 6`
`;

exports[`'acala' homa > with latest block > Homa redeem unbond works > system events 1`] = `
[
{
"data": {
"amount": "(rounded 140000000000)",
"stash": "(address)",
},
"method": "Unbonded",
"section": "staking",
},
{
"data": {
"id": "(hash)",
"origin": {
"Ump": {
"Para": 2000,
},
},
"success": true,
"weightUsed": {
"proofSize": "(rounded 66000)",
"refTime": "(rounded 6300000000)",
},
},
"method": "Processed",
"section": "messageQueue",
},
]
`;

exports[`'acala' homa > with latest block > Homa redeem unbond works > system events 2`] = `
[
{
"data": {
Expand Down
11 changes: 1 addition & 10 deletions tests/bridge-sdk/__snapshots__/kusama.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -100,15 +100,6 @@ exports[`'basilisk' to 'kusama' using bridgeSDK cross-chain 'KSM' > parachain br
}
`;

exports[`'basilisk' to 'kusama' using bridgeSDK cross-chain 'KSM' > parachain bridge to releaychain > Cross-chain using BridgeSDK works > initial 2`] = `
{
"address": "5FA9nQDVg267DEd8m1ZypXLBnvN7SFxYwV7ndqSYGiN9TTpu",
"decimals": 12,
"fromChain": 1000,
"toChain": 10,
}
`;

exports[`'bifrost' to 'karura' using bridgeSDK cross-chain 'BNC' > parachain bridge to releaychain > Cross-chain using BridgeSDK works > after 1`] = `
{
"address": "5FA9nQDVg267DEd8m1ZypXLBnvN7SFxYwV7ndqSYGiN9TTpu",
Expand Down Expand Up @@ -158,7 +149,7 @@ exports[`'karura' to 'assetHubKusama' using bridgeSDK cross-chain 'USDT' > parac
}
`;

exports[`'karura' to 'assetHubKusama' using bridgeSDK cross-chain 'USDT' > parachain bridge to releaychain > Cross-chain using BridgeSDK works > fee 1`] = `"(rounded 0.007)"`;
exports[`'karura' to 'assetHubKusama' using bridgeSDK cross-chain 'USDT' > parachain bridge to releaychain > Cross-chain using BridgeSDK works > fee 1`] = `"(rounded 0.001)"`;

exports[`'karura' to 'assetHubKusama' using bridgeSDK cross-chain 'USDT' > parachain bridge to releaychain > Cross-chain using BridgeSDK works > initial 1`] = `
{
Expand Down
157 changes: 149 additions & 8 deletions tests/xcm-transfer/__snapshots__/kusama-para.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -143,14 +143,152 @@ exports[`'assetHubKusama' -> 'karura' xcm transfer 'USDT' > xcmPallet transfer >
"data": {
"outcome": {
"Complete": {
"proofSize": "(rounded 8800)",
"refTime": "(rounded 841000000)",
"used": {
"proofSize": "(rounded 6200)",
"refTime": "(rounded 290000000)",
},
},
},
},
"method": "Attempted",
"section": "polkadotXcm",
},
{
"data": {
"fees": [
{
"fun": {
"Fungible": "(rounded 1040000000)",
},
"id": {
"interior": "Here",
"parents": 1,
},
},
],
"paying": {
"interior": {
"X1": [
{
"AccountId32": {
"id": "(hash)",
"network": "Kusama",
},
},
],
},
"parents": 0,
},
},
"method": "FeesPaid",
"section": "polkadotXcm",
},
{
"data": {
"destination": {
"interior": {
"X1": [
{
"Parachain": 2000,
},
],
},
"parents": 1,
},
"message": [
{
"ReserveAssetDeposited": [
{
"fun": {
"Fungible": 1000000,
},
"id": {
"interior": {
"X3": [
{
"Parachain": 1000,
},
{
"PalletInstance": 50,
},
{
"GeneralIndex": "(rounded 1980)",
},
],
},
"parents": 1,
},
},
],
},
"ClearOrigin",
{
"BuyExecution": {
"fees": {
"fun": {
"Fungible": 1000000,
},
"id": {
"interior": {
"X3": [
{
"Parachain": 1000,
},
{
"PalletInstance": 50,
},
{
"GeneralIndex": "(rounded 1980)",
},
],
},
"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": "Kusama",
},
},
],
},
"parents": 0,
},
},
"method": "Sent",
"section": "polkadotXcm",
},
]
`;

Expand Down Expand Up @@ -269,15 +407,18 @@ exports[`'karura' -> 'assetHubKusama' xcm transfer 'USDT' > xtokens transfer > t
[
{
"data": {
"messageHash": "(hash)",
"messageId": "(hash)",
"weight": {
"id": "(hash)",
"origin": {
"Sibling": 2000,
},
"success": true,
"weightUsed": {
"proofSize": "(rounded 7200)",
"refTime": "(rounded 300000000)",
"refTime": "(rounded 320000000)",
},
},
"method": "Success",
"section": "xcmpQueue",
"method": "Processed",
"section": "messageQueue",
},
]
`;
Expand Down
Loading

0 comments on commit dc234ac

Please sign in to comment.