Skip to content

Commit

Permalink
update dev RPC to dry run ump and dmp (#217)
Browse files Browse the repository at this point in the history
  • Loading branch information
ermalkaleci authored Mar 2, 2023
1 parent b622d1b commit 8d4c704
Show file tree
Hide file tree
Showing 21 changed files with 644 additions and 454 deletions.
2 changes: 1 addition & 1 deletion e2e/src/__snapshots__/author.test.ts.snap
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Vitest Snapshot v1
// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html

exports[`author rpc > works 1`] = `
[
Expand Down
2 changes: 1 addition & 1 deletion e2e/src/__snapshots__/chain.test.ts.snap
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Vitest Snapshot v1
// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html

exports[`chain rpc > getXXX 1`] = `
{
Expand Down
2 changes: 1 addition & 1 deletion e2e/src/__snapshots__/decoder.test.ts.snap
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Vitest Snapshot v1
// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html

exports[`decoder > decode key-value 1`] = `
{
Expand Down
213 changes: 213 additions & 0 deletions e2e/src/__snapshots__/dev-dry-run-dmp.test.ts.snap
Original file line number Diff line number Diff line change
@@ -0,0 +1,213 @@
// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html

exports[`dev_dryRun dmp > works 1`] = `
[
{
"event": {
"data": {
"amount": "44,619,385,455",
"currencyId": {
"Token": "AUSD",
},
"who": "23M5ttkmR6KcnvsNJdmYTpLo9xfc54g8uCk55buDfiJPon69",
},
"index": "0x0b0a",
"method": "Deposited",
"section": "tokens",
},
"phase": "Initialization",
"topics": [],
},
{
"event": {
"data": {
"amount": "44,619,385,455",
"currencyId": {
"Token": "AUSD",
},
"who": "23M5ttkmR6KcnvsNJdmYTpLo9xfc54g8uCk55buDfiJPon69",
},
"index": "0x0b00",
"method": "Endowed",
"section": "tokens",
},
"phase": "Initialization",
"topics": [],
},
{
"event": {
"data": {
"amount": "2,990,804,362",
"currencyId": {
"Token": "AUSD",
},
"who": "23M5ttkmR6KcnvsNJdmYTpLo9xfc54g8uCk55buDfiJPon69",
},
"index": "0x0b0a",
"method": "Deposited",
"section": "tokens",
},
"phase": "Initialization",
"topics": [],
},
{
"event": {
"data": {
"amount": "1,471,890,122",
"currencyId": {
"Token": "AUSD",
},
"who": "23M5ttkmR6KcnvsNJdmYTpLo9xfc54g8uCk55buDfiJPon69",
},
"index": "0x0b0a",
"method": "Deposited",
"section": "tokens",
},
"phase": "Initialization",
"topics": [],
},
{
"event": {
"data": {
"amount": "8,779,155,449",
"currencyId": {
"Token": "AUSD",
},
"who": "23M5ttkmR6KcnvsNJdmYTpLo9xfc54g8uCk55buDfiJPon69",
},
"index": "0x0b0a",
"method": "Deposited",
"section": "tokens",
},
"phase": "Initialization",
"topics": [],
},
{
"event": {
"data": {
"dispatchInfo": {
"class": "Mandatory",
"paysFee": "Yes",
"weight": {
"proofSize": "0",
"refTime": "244,378,000",
},
},
},
"index": "0x0000",
"method": "ExtrinsicSuccess",
"section": "system",
},
"phase": {
"ApplyExtrinsic": "0",
},
"topics": [],
},
{
"event": {
"data": {
"count": "1",
},
"index": "0x1e04",
"method": "DownwardMessagesReceived",
"section": "parachainSystem",
},
"phase": {
"ApplyExtrinsic": "1",
},
"topics": [],
},
{
"event": {
"data": {
"amount": "4,099,997,616,912",
"currencyId": {
"Token": "DOT",
},
"who": "23RTYMXEKv7MkSh6CPfyFVYXweCWUF6WncMY1jzhxaw2pV7b",
},
"index": "0x0b0a",
"method": "Deposited",
"section": "tokens",
},
"phase": {
"ApplyExtrinsic": "1",
},
"topics": [],
},
{
"event": {
"data": {
"amount": "2,383,088",
"currencyId": {
"Token": "DOT",
},
"who": "23M5ttkmR6KcoTAAE6gcmibnKFtVaTP5yxnY8HF1BmrJ2A1i",
},
"index": "0x0b0a",
"method": "Deposited",
"section": "tokens",
},
"phase": {
"ApplyExtrinsic": "1",
},
"topics": [],
},
{
"event": {
"data": {
"messageId": "0xca342f7f7a0756371bce233b208eef2c5d5311c90615f896ad38254f3c8acf82",
"outcome": {
"Complete": "800,000,000",
},
},
"index": "0x3502",
"method": "ExecutedDownward",
"section": "dmpQueue",
},
"phase": {
"ApplyExtrinsic": "1",
},
"topics": [],
},
{
"event": {
"data": {
"dmqHead": "0x842783101bd919c29d091ef3d7e8012cefe31548b848c6558317096f44196cb4",
"weightUsed": {
"proofSize": "0",
"refTime": "800,000,000",
},
},
"index": "0x1e05",
"method": "DownwardMessagesProcessed",
"section": "parachainSystem",
},
"phase": {
"ApplyExtrinsic": "1",
},
"topics": [],
},
{
"event": {
"data": {
"dispatchInfo": {
"class": "Mandatory",
"paysFee": "No",
"weight": {
"proofSize": "0",
"refTime": "86,298,000",
},
},
},
"index": "0x0000",
"method": "ExtrinsicSuccess",
"section": "system",
},
"phase": {
"ApplyExtrinsic": "1",
},
"topics": [],
},
]
`;
110 changes: 110 additions & 0 deletions e2e/src/__snapshots__/dev-dry-run-ump.test.ts.snap
Original file line number Diff line number Diff line change
@@ -0,0 +1,110 @@
// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html

exports[`dev_dryRun ump > works 1`] = `
[
{
"event": {
"data": {
"dispatchInfo": {
"class": "Mandatory",
"paysFee": "Yes",
"weight": {
"proofSize": "0",
"refTime": "233,042,000",
},
},
},
"index": "0x0000",
"method": "ExtrinsicSuccess",
"section": "system",
},
"phase": {
"ApplyExtrinsic": "0",
},
"topics": [],
},
{
"event": {
"data": {
"amount": "38,046,810,000",
"who": "13YMK2eYoAvStnzReuxBjMrAvPXmmdsURwZvc62PrdXimbNy",
},
"index": "0x0508",
"method": "Withdraw",
"section": "balances",
},
"phase": {
"ApplyExtrinsic": "1",
},
"topics": [],
},
{
"event": {
"data": {
"amount": "37,638,163,032",
"who": "14Xvmfh7QYWYJUUkLHVmyRkJ1PbLLNHJ1RnsnsZ1Ph7pNxg3",
},
"index": "0x0507",
"method": "Deposit",
"section": "balances",
},
"phase": {
"ApplyExtrinsic": "1",
},
"topics": [],
},
{
"event": {
"data": {
"amount": "408,646,968",
"who": "1XQn94kWaMVJG16AWPKGmYFERfttsjZq4ompSTz2jxHK6uL",
},
"index": "0x0507",
"method": "Deposit",
"section": "balances",
},
"phase": {
"ApplyExtrinsic": "1",
},
"topics": [],
},
{
"event": {
"data": [
"0x48079e14ffeb3fb6f43147677425488c414c9f58d90b608de5f34f0ac8df8d50",
{
"Complete": "4,000,000,000",
},
],
"index": "0x3b02",
"method": "ExecutedUpward",
"section": "ump",
},
"phase": {
"ApplyExtrinsic": "1",
},
"topics": [],
},
{
"event": {
"data": {
"dispatchInfo": {
"class": "Mandatory",
"paysFee": "Yes",
"weight": {
"proofSize": "0",
"refTime": "97,884,000",
},
},
},
"index": "0x0000",
"method": "ExtrinsicSuccess",
"section": "system",
},
"phase": {
"ApplyExtrinsic": "1",
},
"topics": [],
},
]
`;
Loading

0 comments on commit 8d4c704

Please sign in to comment.