-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
35 changed files
with
3,632 additions
and
1,443 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,4 @@ | ||
**/lib/* | ||
**/build/* | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
147 changes: 147 additions & 0 deletions
147
e2e-tests/__snapshots__/hydration.ethereum.spec.ts.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,147 @@ | ||
// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html | ||
|
||
exports[`Hydration <> Ethereum > XCM V3 > Transfer Snowbridge WETH from Hydration to Ethereum > assetHub xcmp message sent 1`] = ` | ||
[ | ||
{ | ||
"data": { | ||
"messageHash": "(hash)", | ||
}, | ||
"method": "XcmpMessageSent", | ||
"section": "xcmpQueue", | ||
}, | ||
] | ||
`; | ||
|
||
exports[`Hydration <> Ethereum > XCM V3 > Transfer Snowbridge WETH from Hydration to Ethereum > assethub foreign assets burned 1`] = ` | ||
[ | ||
{ | ||
"data": { | ||
"assetId": { | ||
"interior": { | ||
"X2": [ | ||
{ | ||
"GlobalConsensus": { | ||
"Ethereum": { | ||
"chainId": 1, | ||
}, | ||
}, | ||
}, | ||
{ | ||
"AccountKey20": { | ||
"key": "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2", | ||
"network": null, | ||
}, | ||
}, | ||
], | ||
}, | ||
"parents": 2, | ||
}, | ||
"balance": 75000000000000, | ||
"owner": "13cKp89Uh2yWgTG28JA1QEvPUMjEPKejqkjHKf9zqLiFKjH6", | ||
}, | ||
"method": "Burned", | ||
"section": "foreignAssets", | ||
}, | ||
] | ||
`; | ||
|
||
exports[`Hydration <> Ethereum > XCM V3 > Transfer Snowbridge WETH from Hydration to Ethereum > bridgehub ethereum outbound queue events 1`] = ` | ||
[ | ||
{ | ||
"data": { | ||
"id": 0, | ||
}, | ||
"method": "MessageQueued", | ||
"section": "ethereumOutboundQueue", | ||
}, | ||
{ | ||
"data": { | ||
"id": 0, | ||
"nonce": "(redacted)", | ||
}, | ||
"method": "MessageAccepted", | ||
"section": "ethereumOutboundQueue", | ||
}, | ||
{ | ||
"data": { | ||
"count": 1, | ||
"root": "(hash)", | ||
}, | ||
"method": "MessagesCommitted", | ||
"section": "ethereumOutboundQueue", | ||
}, | ||
] | ||
`; | ||
|
||
exports[`Hydration <> Ethereum > XCM V4 > Transfer Snowbridge WETH from Hydration to Ethereum > assetHub xcmp message sent 1`] = ` | ||
[ | ||
{ | ||
"data": { | ||
"messageHash": "(hash)", | ||
}, | ||
"method": "XcmpMessageSent", | ||
"section": "xcmpQueue", | ||
}, | ||
] | ||
`; | ||
|
||
exports[`Hydration <> Ethereum > XCM V4 > Transfer Snowbridge WETH from Hydration to Ethereum > assethub foreign assets burned 1`] = ` | ||
[ | ||
{ | ||
"data": { | ||
"assetId": { | ||
"interior": { | ||
"X2": [ | ||
{ | ||
"GlobalConsensus": { | ||
"Ethereum": { | ||
"chainId": 1, | ||
}, | ||
}, | ||
}, | ||
{ | ||
"AccountKey20": { | ||
"key": "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2", | ||
"network": null, | ||
}, | ||
}, | ||
], | ||
}, | ||
"parents": 2, | ||
}, | ||
"balance": 75000000000000, | ||
"owner": "13cKp89Uh2yWgTG28JA1QEvPUMjEPKejqkjHKf9zqLiFKjH6", | ||
}, | ||
"method": "Burned", | ||
"section": "foreignAssets", | ||
}, | ||
] | ||
`; | ||
|
||
exports[`Hydration <> Ethereum > XCM V4 > Transfer Snowbridge WETH from Hydration to Ethereum > bridgehub ethereum outbound queue events 1`] = ` | ||
[ | ||
{ | ||
"data": { | ||
"id": 0, | ||
}, | ||
"method": "MessageQueued", | ||
"section": "ethereumOutboundQueue", | ||
}, | ||
{ | ||
"data": { | ||
"id": 0, | ||
"nonce": "(redacted)", | ||
}, | ||
"method": "MessageAccepted", | ||
"section": "ethereumOutboundQueue", | ||
}, | ||
{ | ||
"data": { | ||
"count": 1, | ||
"root": "(hash)", | ||
}, | ||
"method": "MessagesCommitted", | ||
"section": "ethereumOutboundQueue", | ||
}, | ||
] | ||
`; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html | ||
|
||
exports[`Moonbeam <> Hydration > XCM V3 > Transfer GLMR from Moonbeam to Hydration > hydration recipients initial glmr balance 1`] = ` | ||
{ | ||
"free": 0, | ||
"frozen": 0, | ||
"reserved": 0, | ||
} | ||
`; | ||
|
||
exports[`Moonbeam <> Hydration > XCM V3 > Transfer GLMR from Moonbeam to Hydration > hydration recipients updated glmr balance 1`] = ` | ||
{ | ||
"free": "(rounded 10000000000000000000)", | ||
"frozen": 0, | ||
"reserved": 0, | ||
} | ||
`; | ||
|
||
exports[`Moonbeam <> Hydration > XCM V3 > Transfer HDX from Hydration to Moonbeam > moonbeam recipients initial hdx balance 1`] = ` | ||
{ | ||
"balance": 0, | ||
"extra": null, | ||
"reason": { | ||
"consumer": null, | ||
}, | ||
"status": "Liquid", | ||
} | ||
`; | ||
|
||
exports[`Moonbeam <> Hydration > XCM V3 > Transfer HDX from Hydration to Moonbeam > moonbeam recipients updated hdx balance 1`] = ` | ||
{ | ||
"balance": "(rounded 10000000000000000)", | ||
"extra": null, | ||
"reason": { | ||
"sufficient": null, | ||
}, | ||
"status": "Liquid", | ||
} | ||
`; |
57 changes: 57 additions & 0 deletions
57
e2e-tests/__snapshots__/polkadotAssetHub.bridgeHub.spec.ts.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html | ||
|
||
exports[`Polkadot AssetHub <> Ethereum > XCM V3 > Snowbridge WETH From AssetHub to Ethereum > bridgehub ethereum outbound queue events 1`] = ` | ||
[ | ||
{ | ||
"data": { | ||
"id": "(hash)", | ||
}, | ||
"method": "MessageQueued", | ||
"section": "ethereumOutboundQueue", | ||
}, | ||
{ | ||
"data": { | ||
"id": "(hash)", | ||
"nonce": "(redacted)", | ||
}, | ||
"method": "MessageAccepted", | ||
"section": "ethereumOutboundQueue", | ||
}, | ||
{ | ||
"data": { | ||
"count": 1, | ||
"root": "(hash)", | ||
}, | ||
"method": "MessagesCommitted", | ||
"section": "ethereumOutboundQueue", | ||
}, | ||
] | ||
`; | ||
|
||
exports[`Polkadot AssetHub <> Ethereum > XCM V4 > Snowbridge WETH From AssetHub to Ethereum > bridgehub ethereum outbound queue events 1`] = ` | ||
[ | ||
{ | ||
"data": { | ||
"id": "(hash)", | ||
}, | ||
"method": "MessageQueued", | ||
"section": "ethereumOutboundQueue", | ||
}, | ||
{ | ||
"data": { | ||
"id": "(hash)", | ||
"nonce": "(redacted)", | ||
}, | ||
"method": "MessageAccepted", | ||
"section": "ethereumOutboundQueue", | ||
}, | ||
{ | ||
"data": { | ||
"count": 1, | ||
"root": "(hash)", | ||
}, | ||
"method": "MessagesCommitted", | ||
"section": "ethereumOutboundQueue", | ||
}, | ||
] | ||
`; |
Oops, something went wrong.