@acala-network/chopsticks 0.9.6-3 → 0.9.6-4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -30,7 +30,7 @@ exports[`run-block > should work 1`] = `
|
|
|
30
30
|
"section": "system",
|
|
31
31
|
},
|
|
32
32
|
{
|
|
33
|
-
"argObj":
|
|
33
|
+
"argObj": undefined,
|
|
34
34
|
"args": [
|
|
35
35
|
{
|
|
36
36
|
"commitmentsHash": "0x4f73b976422902a23b5e92560fde0c13d50b884c857955b81132eae5a16dd786",
|
|
@@ -55,7 +55,7 @@ exports[`run-block > should work 1`] = `
|
|
|
55
55
|
"section": "paraInclusion",
|
|
56
56
|
},
|
|
57
57
|
{
|
|
58
|
-
"argObj":
|
|
58
|
+
"argObj": undefined,
|
|
59
59
|
"args": [
|
|
60
60
|
{
|
|
61
61
|
"commitmentsHash": "0x9fad2d531dd4b66543bd2059facb0f75f5918a1c11b8e87b59eb12fe24f3c600",
|
|
@@ -80,7 +80,7 @@ exports[`run-block > should work 1`] = `
|
|
|
80
80
|
"section": "paraInclusion",
|
|
81
81
|
},
|
|
82
82
|
{
|
|
83
|
-
"argObj":
|
|
83
|
+
"argObj": undefined,
|
|
84
84
|
"args": [
|
|
85
85
|
{
|
|
86
86
|
"commitmentsHash": "0x29fd5131e22e84526f205a94f7f65fefeaf2322804f2df83d83e230e8df81873",
|
|
@@ -105,7 +105,7 @@ exports[`run-block > should work 1`] = `
|
|
|
105
105
|
"section": "paraInclusion",
|
|
106
106
|
},
|
|
107
107
|
{
|
|
108
|
-
"argObj":
|
|
108
|
+
"argObj": undefined,
|
|
109
109
|
"args": [
|
|
110
110
|
{
|
|
111
111
|
"commitmentsHash": "0x442225f7616374af8b2500502da468dd6560625cf14329f80ed64cdd90d08fec",
|
|
@@ -130,7 +130,7 @@ exports[`run-block > should work 1`] = `
|
|
|
130
130
|
"section": "paraInclusion",
|
|
131
131
|
},
|
|
132
132
|
{
|
|
133
|
-
"argObj":
|
|
133
|
+
"argObj": undefined,
|
|
134
134
|
"args": [
|
|
135
135
|
{
|
|
136
136
|
"commitmentsHash": "0xd72bbbf8e4e4a489fb3d047ef49c556177435771d7f2c11605a565d991a2a92f",
|
|
@@ -155,7 +155,7 @@ exports[`run-block > should work 1`] = `
|
|
|
155
155
|
"section": "paraInclusion",
|
|
156
156
|
},
|
|
157
157
|
{
|
|
158
|
-
"argObj":
|
|
158
|
+
"argObj": undefined,
|
|
159
159
|
"args": [
|
|
160
160
|
{
|
|
161
161
|
"commitmentsHash": "0xb421a1a3df726074841597c870501ec1517de9871433c2e6cdb50a274427e899",
|
|
@@ -180,7 +180,7 @@ exports[`run-block > should work 1`] = `
|
|
|
180
180
|
"section": "paraInclusion",
|
|
181
181
|
},
|
|
182
182
|
{
|
|
183
|
-
"argObj":
|
|
183
|
+
"argObj": undefined,
|
|
184
184
|
"args": [
|
|
185
185
|
{
|
|
186
186
|
"commitmentsHash": "0x06ca3cffb9d763c3d634e3851c7a288d08cb75f341858881317ca4ba5e063c31",
|
|
@@ -205,7 +205,7 @@ exports[`run-block > should work 1`] = `
|
|
|
205
205
|
"section": "paraInclusion",
|
|
206
206
|
},
|
|
207
207
|
{
|
|
208
|
-
"argObj":
|
|
208
|
+
"argObj": undefined,
|
|
209
209
|
"args": [
|
|
210
210
|
{
|
|
211
211
|
"commitmentsHash": "0x296e450cc898642031e7b08055a6a7b85a1ce8c60dca2be5eefcb23354032e5b",
|
|
@@ -243,7 +243,7 @@ exports[`run-block > should work 1`] = `
|
|
|
243
243
|
"section": "paraInclusion",
|
|
244
244
|
},
|
|
245
245
|
{
|
|
246
|
-
"argObj":
|
|
246
|
+
"argObj": undefined,
|
|
247
247
|
"args": [
|
|
248
248
|
{
|
|
249
249
|
"commitmentsHash": "0x781f442c055547163f4619f93035976e8d8c1fb3aad794c1bd63e09ea9151221",
|
|
@@ -268,7 +268,7 @@ exports[`run-block > should work 1`] = `
|
|
|
268
268
|
"section": "paraInclusion",
|
|
269
269
|
},
|
|
270
270
|
{
|
|
271
|
-
"argObj":
|
|
271
|
+
"argObj": undefined,
|
|
272
272
|
"args": [
|
|
273
273
|
{
|
|
274
274
|
"commitmentsHash": "0x5ffb69a70059e109fd02fbd1953cf7ec174781f9b91bda658981069c6a333de3",
|
|
@@ -293,7 +293,7 @@ exports[`run-block > should work 1`] = `
|
|
|
293
293
|
"section": "paraInclusion",
|
|
294
294
|
},
|
|
295
295
|
{
|
|
296
|
-
"argObj":
|
|
296
|
+
"argObj": undefined,
|
|
297
297
|
"args": [
|
|
298
298
|
{
|
|
299
299
|
"commitmentsHash": "0xaea68d39bede2bb9273c4739c70fcb9921eb9087562fea9e6dada7aa7391f4b9",
|
|
@@ -318,7 +318,7 @@ exports[`run-block > should work 1`] = `
|
|
|
318
318
|
"section": "paraInclusion",
|
|
319
319
|
},
|
|
320
320
|
{
|
|
321
|
-
"argObj":
|
|
321
|
+
"argObj": undefined,
|
|
322
322
|
"args": [
|
|
323
323
|
{
|
|
324
324
|
"commitmentsHash": "0xeed2494dfa28f8e35b86783222c8a67af3432a3d88dfb44a000c935a35054282",
|
|
@@ -343,7 +343,7 @@ exports[`run-block > should work 1`] = `
|
|
|
343
343
|
"section": "paraInclusion",
|
|
344
344
|
},
|
|
345
345
|
{
|
|
346
|
-
"argObj":
|
|
346
|
+
"argObj": undefined,
|
|
347
347
|
"args": [
|
|
348
348
|
{
|
|
349
349
|
"commitmentsHash": "0x66a1f3e932b57ba5add086029f163a5e9f9317dfb9850dbd7aeb611c7ea494ee",
|
|
@@ -368,7 +368,7 @@ exports[`run-block > should work 1`] = `
|
|
|
368
368
|
"section": "paraInclusion",
|
|
369
369
|
},
|
|
370
370
|
{
|
|
371
|
-
"argObj":
|
|
371
|
+
"argObj": undefined,
|
|
372
372
|
"args": [
|
|
373
373
|
{
|
|
374
374
|
"commitmentsHash": "0xaa970f33ad559ba201339c4c3c2192b8ac2b1f8289b5835a6fac6d8a2dd50842",
|
|
@@ -393,7 +393,7 @@ exports[`run-block > should work 1`] = `
|
|
|
393
393
|
"section": "paraInclusion",
|
|
394
394
|
},
|
|
395
395
|
{
|
|
396
|
-
"argObj":
|
|
396
|
+
"argObj": undefined,
|
|
397
397
|
"args": [
|
|
398
398
|
{
|
|
399
399
|
"commitmentsHash": "0x51b42ac6b319803ba3d50a262ba8a932882c6f7f7ee5b454de4cd9c1542b9d02",
|
|
@@ -418,7 +418,7 @@ exports[`run-block > should work 1`] = `
|
|
|
418
418
|
"section": "paraInclusion",
|
|
419
419
|
},
|
|
420
420
|
{
|
|
421
|
-
"argObj":
|
|
421
|
+
"argObj": undefined,
|
|
422
422
|
"args": [
|
|
423
423
|
{
|
|
424
424
|
"commitmentsHash": "0xf78fd15d06240d156b0049e7a9504262c6e1355498e28b2d5cc0a2ce0690a3be",
|
|
@@ -443,7 +443,7 @@ exports[`run-block > should work 1`] = `
|
|
|
443
443
|
"section": "paraInclusion",
|
|
444
444
|
},
|
|
445
445
|
{
|
|
446
|
-
"argObj":
|
|
446
|
+
"argObj": undefined,
|
|
447
447
|
"args": [
|
|
448
448
|
{
|
|
449
449
|
"commitmentsHash": "0x781e9b6c0170135cd44b5d956297b36e7683367a491a06c138614a23f031749f",
|
|
@@ -468,7 +468,7 @@ exports[`run-block > should work 1`] = `
|
|
|
468
468
|
"section": "paraInclusion",
|
|
469
469
|
},
|
|
470
470
|
{
|
|
471
|
-
"argObj":
|
|
471
|
+
"argObj": undefined,
|
|
472
472
|
"args": [
|
|
473
473
|
{
|
|
474
474
|
"commitmentsHash": "0xe25fb3380e9bbaa6f06333d1567d1885d936879f2438b9e2ee6e9688689e991e",
|
|
@@ -493,7 +493,7 @@ exports[`run-block > should work 1`] = `
|
|
|
493
493
|
"section": "paraInclusion",
|
|
494
494
|
},
|
|
495
495
|
{
|
|
496
|
-
"argObj":
|
|
496
|
+
"argObj": undefined,
|
|
497
497
|
"args": [
|
|
498
498
|
{
|
|
499
499
|
"commitmentsHash": "0xa67d0728f1be05799457ce503331ff87381688d016f4979dce5573a497891e61",
|
|
@@ -518,7 +518,7 @@ exports[`run-block > should work 1`] = `
|
|
|
518
518
|
"section": "paraInclusion",
|
|
519
519
|
},
|
|
520
520
|
{
|
|
521
|
-
"argObj":
|
|
521
|
+
"argObj": undefined,
|
|
522
522
|
"args": [
|
|
523
523
|
{
|
|
524
524
|
"commitmentsHash": "0xa408e9591b8e02fce556055b6ad5044e01591c4d20434cd5822993b162c86205",
|
|
@@ -543,7 +543,7 @@ exports[`run-block > should work 1`] = `
|
|
|
543
543
|
"section": "paraInclusion",
|
|
544
544
|
},
|
|
545
545
|
{
|
|
546
|
-
"argObj":
|
|
546
|
+
"argObj": undefined,
|
|
547
547
|
"args": [
|
|
548
548
|
{
|
|
549
549
|
"commitmentsHash": "0xfc6fd710944df1ae7cff9c4668b01058149e35b9c891c607dc1f8e6680a2877a",
|
|
@@ -568,7 +568,7 @@ exports[`run-block > should work 1`] = `
|
|
|
568
568
|
"section": "paraInclusion",
|
|
569
569
|
},
|
|
570
570
|
{
|
|
571
|
-
"argObj":
|
|
571
|
+
"argObj": undefined,
|
|
572
572
|
"args": [
|
|
573
573
|
{
|
|
574
574
|
"commitmentsHash": "0x0162fb1a6da15341be4dd3924f45a1e11e4a21e9378f3e8125ef30b04b9aa7b0",
|
|
@@ -593,7 +593,7 @@ exports[`run-block > should work 1`] = `
|
|
|
593
593
|
"section": "paraInclusion",
|
|
594
594
|
},
|
|
595
595
|
{
|
|
596
|
-
"argObj":
|
|
596
|
+
"argObj": undefined,
|
|
597
597
|
"args": [
|
|
598
598
|
{
|
|
599
599
|
"commitmentsHash": "0xfa619706e98d0671b655aa17a87c2c8740625d89c4417333ca4c033f60783ddd",
|
|
@@ -618,7 +618,7 @@ exports[`run-block > should work 1`] = `
|
|
|
618
618
|
"section": "paraInclusion",
|
|
619
619
|
},
|
|
620
620
|
{
|
|
621
|
-
"argObj":
|
|
621
|
+
"argObj": undefined,
|
|
622
622
|
"args": [
|
|
623
623
|
{
|
|
624
624
|
"commitmentsHash": "0x863c28f29edcc101829cda57afec7d48e13146d408463367a505d8155b7d0301",
|
|
@@ -643,7 +643,7 @@ exports[`run-block > should work 1`] = `
|
|
|
643
643
|
"section": "paraInclusion",
|
|
644
644
|
},
|
|
645
645
|
{
|
|
646
|
-
"argObj":
|
|
646
|
+
"argObj": undefined,
|
|
647
647
|
"args": [
|
|
648
648
|
{
|
|
649
649
|
"commitmentsHash": "0x0ef8e4f7e72b6c18dce2f03af29e492e23c62546f4d8c42be367b66eafce7bea",
|
|
@@ -668,7 +668,7 @@ exports[`run-block > should work 1`] = `
|
|
|
668
668
|
"section": "paraInclusion",
|
|
669
669
|
},
|
|
670
670
|
{
|
|
671
|
-
"argObj":
|
|
671
|
+
"argObj": undefined,
|
|
672
672
|
"args": [
|
|
673
673
|
{
|
|
674
674
|
"commitmentsHash": "0xd6e77ede0b1645cd40bd41187c8128dcee09117d91192adba3ae10f36dec6c91",
|
|
@@ -693,7 +693,7 @@ exports[`run-block > should work 1`] = `
|
|
|
693
693
|
"section": "paraInclusion",
|
|
694
694
|
},
|
|
695
695
|
{
|
|
696
|
-
"argObj":
|
|
696
|
+
"argObj": undefined,
|
|
697
697
|
"args": [
|
|
698
698
|
{
|
|
699
699
|
"commitmentsHash": "0x4c5c0610af43f9c8ceccc1adde122654a40c170f3e36e1677f62cf5ea6ce17e3",
|
|
@@ -718,7 +718,7 @@ exports[`run-block > should work 1`] = `
|
|
|
718
718
|
"section": "paraInclusion",
|
|
719
719
|
},
|
|
720
720
|
{
|
|
721
|
-
"argObj":
|
|
721
|
+
"argObj": undefined,
|
|
722
722
|
"args": [
|
|
723
723
|
{
|
|
724
724
|
"commitmentsHash": "0x770bd7fbe1bc176c77d7ceb2020d88ff467a1fe9a8696b7de3fdfede6f9c98f9",
|
|
@@ -743,7 +743,7 @@ exports[`run-block > should work 1`] = `
|
|
|
743
743
|
"section": "paraInclusion",
|
|
744
744
|
},
|
|
745
745
|
{
|
|
746
|
-
"argObj":
|
|
746
|
+
"argObj": undefined,
|
|
747
747
|
"args": [
|
|
748
748
|
{
|
|
749
749
|
"commitmentsHash": "0x9846000f8e4d134768cfd77404123c80d00258d811dfb98bc222bfc74a14857c",
|
|
@@ -768,7 +768,7 @@ exports[`run-block > should work 1`] = `
|
|
|
768
768
|
"section": "paraInclusion",
|
|
769
769
|
},
|
|
770
770
|
{
|
|
771
|
-
"argObj":
|
|
771
|
+
"argObj": undefined,
|
|
772
772
|
"args": [
|
|
773
773
|
{
|
|
774
774
|
"commitmentsHash": "0x09db17dd18fb2bed0b4e76a4a27a4673057aa380069cd5fbf8c0dc8caf91f98b",
|
|
@@ -793,7 +793,7 @@ exports[`run-block > should work 1`] = `
|
|
|
793
793
|
"section": "paraInclusion",
|
|
794
794
|
},
|
|
795
795
|
{
|
|
796
|
-
"argObj":
|
|
796
|
+
"argObj": undefined,
|
|
797
797
|
"args": [
|
|
798
798
|
{
|
|
799
799
|
"commitmentsHash": "0x7f43d714cdd3a6fe4194e6a0b66613b6df662965e16379e14bf541c0fff91211",
|
|
@@ -818,7 +818,7 @@ exports[`run-block > should work 1`] = `
|
|
|
818
818
|
"section": "paraInclusion",
|
|
819
819
|
},
|
|
820
820
|
{
|
|
821
|
-
"argObj":
|
|
821
|
+
"argObj": undefined,
|
|
822
822
|
"args": [
|
|
823
823
|
{
|
|
824
824
|
"commitmentsHash": "0x5e05cf9945ba47a30984e695efb85b1725341ac43bee01aa9c1f6294b4f036d5",
|
|
@@ -843,7 +843,7 @@ exports[`run-block > should work 1`] = `
|
|
|
843
843
|
"section": "paraInclusion",
|
|
844
844
|
},
|
|
845
845
|
{
|
|
846
|
-
"argObj":
|
|
846
|
+
"argObj": undefined,
|
|
847
847
|
"args": [
|
|
848
848
|
{
|
|
849
849
|
"commitmentsHash": "0x306d19a2fc9882b37eeff572b905f9f44ca77950a5ba68101ca98bc2e8b19934",
|
|
@@ -868,7 +868,7 @@ exports[`run-block > should work 1`] = `
|
|
|
868
868
|
"section": "paraInclusion",
|
|
869
869
|
},
|
|
870
870
|
{
|
|
871
|
-
"argObj":
|
|
871
|
+
"argObj": undefined,
|
|
872
872
|
"args": [
|
|
873
873
|
{
|
|
874
874
|
"commitmentsHash": "0xb54b4a1b0711ce54595e16d7c37d9bf21084efb2f65b3c77f3cc5b7ae4523d91",
|
|
@@ -893,7 +893,7 @@ exports[`run-block > should work 1`] = `
|
|
|
893
893
|
"section": "paraInclusion",
|
|
894
894
|
},
|
|
895
895
|
{
|
|
896
|
-
"argObj":
|
|
896
|
+
"argObj": undefined,
|
|
897
897
|
"args": [
|
|
898
898
|
{
|
|
899
899
|
"commitmentsHash": "0x1429ed2970fec88fd74b9c5da15e0379e740c02c21bc56eca7a488324f209b23",
|
|
@@ -918,7 +918,7 @@ exports[`run-block > should work 1`] = `
|
|
|
918
918
|
"section": "paraInclusion",
|
|
919
919
|
},
|
|
920
920
|
{
|
|
921
|
-
"argObj":
|
|
921
|
+
"argObj": undefined,
|
|
922
922
|
"args": [
|
|
923
923
|
{
|
|
924
924
|
"commitmentsHash": "0x85e5d92042ae4ef1330e693763102d5536d350df2ea96ab8f131a190726981cd",
|
|
@@ -943,7 +943,7 @@ exports[`run-block > should work 1`] = `
|
|
|
943
943
|
"section": "paraInclusion",
|
|
944
944
|
},
|
|
945
945
|
{
|
|
946
|
-
"argObj":
|
|
946
|
+
"argObj": undefined,
|
|
947
947
|
"args": [
|
|
948
948
|
{
|
|
949
949
|
"commitmentsHash": "0x0fa3f49239794538893917fba500a9bca651174ce82137aac4bc197624c7cb70",
|
|
@@ -968,7 +968,7 @@ exports[`run-block > should work 1`] = `
|
|
|
968
968
|
"section": "paraInclusion",
|
|
969
969
|
},
|
|
970
970
|
{
|
|
971
|
-
"argObj":
|
|
971
|
+
"argObj": undefined,
|
|
972
972
|
"args": [
|
|
973
973
|
{
|
|
974
974
|
"commitmentsHash": "0xb2898d0172220505adb7a461831be76bf55a96e6a15f4d217c9791916db0d587",
|
|
@@ -140,10 +140,13 @@ const rpc = async ({ chain }, [params])=>{
|
|
|
140
140
|
const timestamp = await newBlock.read('u64', meta.query.timestamp.now);
|
|
141
141
|
const events = await newBlock.read('Vec<EventRecord>', meta.query.system.events);
|
|
142
142
|
const parsedEvents = events?.map((event)=>{
|
|
143
|
-
|
|
143
|
+
let argObj = undefined;
|
|
144
144
|
const len = event.event.data.names?.length ?? 0;
|
|
145
|
-
|
|
146
|
-
argObj
|
|
145
|
+
if (len > 0) {
|
|
146
|
+
argObj = {};
|
|
147
|
+
for(let i = 0; i < len; i++){
|
|
148
|
+
argObj[event.event.data.names[i]] = event.event.data[i].toJSON();
|
|
149
|
+
}
|
|
147
150
|
}
|
|
148
151
|
return {
|
|
149
152
|
phase: event.phase.isApplyExtrinsic ? event.phase.asApplyExtrinsic.toNumber() : event.phase.toString(),
|
|
@@ -30,7 +30,7 @@ exports[`run-block > should work 1`] = `
|
|
|
30
30
|
"section": "system",
|
|
31
31
|
},
|
|
32
32
|
{
|
|
33
|
-
"argObj":
|
|
33
|
+
"argObj": undefined,
|
|
34
34
|
"args": [
|
|
35
35
|
{
|
|
36
36
|
"commitmentsHash": "0x4f73b976422902a23b5e92560fde0c13d50b884c857955b81132eae5a16dd786",
|
|
@@ -55,7 +55,7 @@ exports[`run-block > should work 1`] = `
|
|
|
55
55
|
"section": "paraInclusion",
|
|
56
56
|
},
|
|
57
57
|
{
|
|
58
|
-
"argObj":
|
|
58
|
+
"argObj": undefined,
|
|
59
59
|
"args": [
|
|
60
60
|
{
|
|
61
61
|
"commitmentsHash": "0x9fad2d531dd4b66543bd2059facb0f75f5918a1c11b8e87b59eb12fe24f3c600",
|
|
@@ -80,7 +80,7 @@ exports[`run-block > should work 1`] = `
|
|
|
80
80
|
"section": "paraInclusion",
|
|
81
81
|
},
|
|
82
82
|
{
|
|
83
|
-
"argObj":
|
|
83
|
+
"argObj": undefined,
|
|
84
84
|
"args": [
|
|
85
85
|
{
|
|
86
86
|
"commitmentsHash": "0x29fd5131e22e84526f205a94f7f65fefeaf2322804f2df83d83e230e8df81873",
|
|
@@ -105,7 +105,7 @@ exports[`run-block > should work 1`] = `
|
|
|
105
105
|
"section": "paraInclusion",
|
|
106
106
|
},
|
|
107
107
|
{
|
|
108
|
-
"argObj":
|
|
108
|
+
"argObj": undefined,
|
|
109
109
|
"args": [
|
|
110
110
|
{
|
|
111
111
|
"commitmentsHash": "0x442225f7616374af8b2500502da468dd6560625cf14329f80ed64cdd90d08fec",
|
|
@@ -130,7 +130,7 @@ exports[`run-block > should work 1`] = `
|
|
|
130
130
|
"section": "paraInclusion",
|
|
131
131
|
},
|
|
132
132
|
{
|
|
133
|
-
"argObj":
|
|
133
|
+
"argObj": undefined,
|
|
134
134
|
"args": [
|
|
135
135
|
{
|
|
136
136
|
"commitmentsHash": "0xd72bbbf8e4e4a489fb3d047ef49c556177435771d7f2c11605a565d991a2a92f",
|
|
@@ -155,7 +155,7 @@ exports[`run-block > should work 1`] = `
|
|
|
155
155
|
"section": "paraInclusion",
|
|
156
156
|
},
|
|
157
157
|
{
|
|
158
|
-
"argObj":
|
|
158
|
+
"argObj": undefined,
|
|
159
159
|
"args": [
|
|
160
160
|
{
|
|
161
161
|
"commitmentsHash": "0xb421a1a3df726074841597c870501ec1517de9871433c2e6cdb50a274427e899",
|
|
@@ -180,7 +180,7 @@ exports[`run-block > should work 1`] = `
|
|
|
180
180
|
"section": "paraInclusion",
|
|
181
181
|
},
|
|
182
182
|
{
|
|
183
|
-
"argObj":
|
|
183
|
+
"argObj": undefined,
|
|
184
184
|
"args": [
|
|
185
185
|
{
|
|
186
186
|
"commitmentsHash": "0x06ca3cffb9d763c3d634e3851c7a288d08cb75f341858881317ca4ba5e063c31",
|
|
@@ -205,7 +205,7 @@ exports[`run-block > should work 1`] = `
|
|
|
205
205
|
"section": "paraInclusion",
|
|
206
206
|
},
|
|
207
207
|
{
|
|
208
|
-
"argObj":
|
|
208
|
+
"argObj": undefined,
|
|
209
209
|
"args": [
|
|
210
210
|
{
|
|
211
211
|
"commitmentsHash": "0x296e450cc898642031e7b08055a6a7b85a1ce8c60dca2be5eefcb23354032e5b",
|
|
@@ -243,7 +243,7 @@ exports[`run-block > should work 1`] = `
|
|
|
243
243
|
"section": "paraInclusion",
|
|
244
244
|
},
|
|
245
245
|
{
|
|
246
|
-
"argObj":
|
|
246
|
+
"argObj": undefined,
|
|
247
247
|
"args": [
|
|
248
248
|
{
|
|
249
249
|
"commitmentsHash": "0x781f442c055547163f4619f93035976e8d8c1fb3aad794c1bd63e09ea9151221",
|
|
@@ -268,7 +268,7 @@ exports[`run-block > should work 1`] = `
|
|
|
268
268
|
"section": "paraInclusion",
|
|
269
269
|
},
|
|
270
270
|
{
|
|
271
|
-
"argObj":
|
|
271
|
+
"argObj": undefined,
|
|
272
272
|
"args": [
|
|
273
273
|
{
|
|
274
274
|
"commitmentsHash": "0x5ffb69a70059e109fd02fbd1953cf7ec174781f9b91bda658981069c6a333de3",
|
|
@@ -293,7 +293,7 @@ exports[`run-block > should work 1`] = `
|
|
|
293
293
|
"section": "paraInclusion",
|
|
294
294
|
},
|
|
295
295
|
{
|
|
296
|
-
"argObj":
|
|
296
|
+
"argObj": undefined,
|
|
297
297
|
"args": [
|
|
298
298
|
{
|
|
299
299
|
"commitmentsHash": "0xaea68d39bede2bb9273c4739c70fcb9921eb9087562fea9e6dada7aa7391f4b9",
|
|
@@ -318,7 +318,7 @@ exports[`run-block > should work 1`] = `
|
|
|
318
318
|
"section": "paraInclusion",
|
|
319
319
|
},
|
|
320
320
|
{
|
|
321
|
-
"argObj":
|
|
321
|
+
"argObj": undefined,
|
|
322
322
|
"args": [
|
|
323
323
|
{
|
|
324
324
|
"commitmentsHash": "0xeed2494dfa28f8e35b86783222c8a67af3432a3d88dfb44a000c935a35054282",
|
|
@@ -343,7 +343,7 @@ exports[`run-block > should work 1`] = `
|
|
|
343
343
|
"section": "paraInclusion",
|
|
344
344
|
},
|
|
345
345
|
{
|
|
346
|
-
"argObj":
|
|
346
|
+
"argObj": undefined,
|
|
347
347
|
"args": [
|
|
348
348
|
{
|
|
349
349
|
"commitmentsHash": "0x66a1f3e932b57ba5add086029f163a5e9f9317dfb9850dbd7aeb611c7ea494ee",
|
|
@@ -368,7 +368,7 @@ exports[`run-block > should work 1`] = `
|
|
|
368
368
|
"section": "paraInclusion",
|
|
369
369
|
},
|
|
370
370
|
{
|
|
371
|
-
"argObj":
|
|
371
|
+
"argObj": undefined,
|
|
372
372
|
"args": [
|
|
373
373
|
{
|
|
374
374
|
"commitmentsHash": "0xaa970f33ad559ba201339c4c3c2192b8ac2b1f8289b5835a6fac6d8a2dd50842",
|
|
@@ -393,7 +393,7 @@ exports[`run-block > should work 1`] = `
|
|
|
393
393
|
"section": "paraInclusion",
|
|
394
394
|
},
|
|
395
395
|
{
|
|
396
|
-
"argObj":
|
|
396
|
+
"argObj": undefined,
|
|
397
397
|
"args": [
|
|
398
398
|
{
|
|
399
399
|
"commitmentsHash": "0x51b42ac6b319803ba3d50a262ba8a932882c6f7f7ee5b454de4cd9c1542b9d02",
|
|
@@ -418,7 +418,7 @@ exports[`run-block > should work 1`] = `
|
|
|
418
418
|
"section": "paraInclusion",
|
|
419
419
|
},
|
|
420
420
|
{
|
|
421
|
-
"argObj":
|
|
421
|
+
"argObj": undefined,
|
|
422
422
|
"args": [
|
|
423
423
|
{
|
|
424
424
|
"commitmentsHash": "0xf78fd15d06240d156b0049e7a9504262c6e1355498e28b2d5cc0a2ce0690a3be",
|
|
@@ -443,7 +443,7 @@ exports[`run-block > should work 1`] = `
|
|
|
443
443
|
"section": "paraInclusion",
|
|
444
444
|
},
|
|
445
445
|
{
|
|
446
|
-
"argObj":
|
|
446
|
+
"argObj": undefined,
|
|
447
447
|
"args": [
|
|
448
448
|
{
|
|
449
449
|
"commitmentsHash": "0x781e9b6c0170135cd44b5d956297b36e7683367a491a06c138614a23f031749f",
|
|
@@ -468,7 +468,7 @@ exports[`run-block > should work 1`] = `
|
|
|
468
468
|
"section": "paraInclusion",
|
|
469
469
|
},
|
|
470
470
|
{
|
|
471
|
-
"argObj":
|
|
471
|
+
"argObj": undefined,
|
|
472
472
|
"args": [
|
|
473
473
|
{
|
|
474
474
|
"commitmentsHash": "0xe25fb3380e9bbaa6f06333d1567d1885d936879f2438b9e2ee6e9688689e991e",
|
|
@@ -493,7 +493,7 @@ exports[`run-block > should work 1`] = `
|
|
|
493
493
|
"section": "paraInclusion",
|
|
494
494
|
},
|
|
495
495
|
{
|
|
496
|
-
"argObj":
|
|
496
|
+
"argObj": undefined,
|
|
497
497
|
"args": [
|
|
498
498
|
{
|
|
499
499
|
"commitmentsHash": "0xa67d0728f1be05799457ce503331ff87381688d016f4979dce5573a497891e61",
|
|
@@ -518,7 +518,7 @@ exports[`run-block > should work 1`] = `
|
|
|
518
518
|
"section": "paraInclusion",
|
|
519
519
|
},
|
|
520
520
|
{
|
|
521
|
-
"argObj":
|
|
521
|
+
"argObj": undefined,
|
|
522
522
|
"args": [
|
|
523
523
|
{
|
|
524
524
|
"commitmentsHash": "0xa408e9591b8e02fce556055b6ad5044e01591c4d20434cd5822993b162c86205",
|
|
@@ -543,7 +543,7 @@ exports[`run-block > should work 1`] = `
|
|
|
543
543
|
"section": "paraInclusion",
|
|
544
544
|
},
|
|
545
545
|
{
|
|
546
|
-
"argObj":
|
|
546
|
+
"argObj": undefined,
|
|
547
547
|
"args": [
|
|
548
548
|
{
|
|
549
549
|
"commitmentsHash": "0xfc6fd710944df1ae7cff9c4668b01058149e35b9c891c607dc1f8e6680a2877a",
|
|
@@ -568,7 +568,7 @@ exports[`run-block > should work 1`] = `
|
|
|
568
568
|
"section": "paraInclusion",
|
|
569
569
|
},
|
|
570
570
|
{
|
|
571
|
-
"argObj":
|
|
571
|
+
"argObj": undefined,
|
|
572
572
|
"args": [
|
|
573
573
|
{
|
|
574
574
|
"commitmentsHash": "0x0162fb1a6da15341be4dd3924f45a1e11e4a21e9378f3e8125ef30b04b9aa7b0",
|
|
@@ -593,7 +593,7 @@ exports[`run-block > should work 1`] = `
|
|
|
593
593
|
"section": "paraInclusion",
|
|
594
594
|
},
|
|
595
595
|
{
|
|
596
|
-
"argObj":
|
|
596
|
+
"argObj": undefined,
|
|
597
597
|
"args": [
|
|
598
598
|
{
|
|
599
599
|
"commitmentsHash": "0xfa619706e98d0671b655aa17a87c2c8740625d89c4417333ca4c033f60783ddd",
|
|
@@ -618,7 +618,7 @@ exports[`run-block > should work 1`] = `
|
|
|
618
618
|
"section": "paraInclusion",
|
|
619
619
|
},
|
|
620
620
|
{
|
|
621
|
-
"argObj":
|
|
621
|
+
"argObj": undefined,
|
|
622
622
|
"args": [
|
|
623
623
|
{
|
|
624
624
|
"commitmentsHash": "0x863c28f29edcc101829cda57afec7d48e13146d408463367a505d8155b7d0301",
|
|
@@ -643,7 +643,7 @@ exports[`run-block > should work 1`] = `
|
|
|
643
643
|
"section": "paraInclusion",
|
|
644
644
|
},
|
|
645
645
|
{
|
|
646
|
-
"argObj":
|
|
646
|
+
"argObj": undefined,
|
|
647
647
|
"args": [
|
|
648
648
|
{
|
|
649
649
|
"commitmentsHash": "0x0ef8e4f7e72b6c18dce2f03af29e492e23c62546f4d8c42be367b66eafce7bea",
|
|
@@ -668,7 +668,7 @@ exports[`run-block > should work 1`] = `
|
|
|
668
668
|
"section": "paraInclusion",
|
|
669
669
|
},
|
|
670
670
|
{
|
|
671
|
-
"argObj":
|
|
671
|
+
"argObj": undefined,
|
|
672
672
|
"args": [
|
|
673
673
|
{
|
|
674
674
|
"commitmentsHash": "0xd6e77ede0b1645cd40bd41187c8128dcee09117d91192adba3ae10f36dec6c91",
|
|
@@ -693,7 +693,7 @@ exports[`run-block > should work 1`] = `
|
|
|
693
693
|
"section": "paraInclusion",
|
|
694
694
|
},
|
|
695
695
|
{
|
|
696
|
-
"argObj":
|
|
696
|
+
"argObj": undefined,
|
|
697
697
|
"args": [
|
|
698
698
|
{
|
|
699
699
|
"commitmentsHash": "0x4c5c0610af43f9c8ceccc1adde122654a40c170f3e36e1677f62cf5ea6ce17e3",
|
|
@@ -718,7 +718,7 @@ exports[`run-block > should work 1`] = `
|
|
|
718
718
|
"section": "paraInclusion",
|
|
719
719
|
},
|
|
720
720
|
{
|
|
721
|
-
"argObj":
|
|
721
|
+
"argObj": undefined,
|
|
722
722
|
"args": [
|
|
723
723
|
{
|
|
724
724
|
"commitmentsHash": "0x770bd7fbe1bc176c77d7ceb2020d88ff467a1fe9a8696b7de3fdfede6f9c98f9",
|
|
@@ -743,7 +743,7 @@ exports[`run-block > should work 1`] = `
|
|
|
743
743
|
"section": "paraInclusion",
|
|
744
744
|
},
|
|
745
745
|
{
|
|
746
|
-
"argObj":
|
|
746
|
+
"argObj": undefined,
|
|
747
747
|
"args": [
|
|
748
748
|
{
|
|
749
749
|
"commitmentsHash": "0x9846000f8e4d134768cfd77404123c80d00258d811dfb98bc222bfc74a14857c",
|
|
@@ -768,7 +768,7 @@ exports[`run-block > should work 1`] = `
|
|
|
768
768
|
"section": "paraInclusion",
|
|
769
769
|
},
|
|
770
770
|
{
|
|
771
|
-
"argObj":
|
|
771
|
+
"argObj": undefined,
|
|
772
772
|
"args": [
|
|
773
773
|
{
|
|
774
774
|
"commitmentsHash": "0x09db17dd18fb2bed0b4e76a4a27a4673057aa380069cd5fbf8c0dc8caf91f98b",
|
|
@@ -793,7 +793,7 @@ exports[`run-block > should work 1`] = `
|
|
|
793
793
|
"section": "paraInclusion",
|
|
794
794
|
},
|
|
795
795
|
{
|
|
796
|
-
"argObj":
|
|
796
|
+
"argObj": undefined,
|
|
797
797
|
"args": [
|
|
798
798
|
{
|
|
799
799
|
"commitmentsHash": "0x7f43d714cdd3a6fe4194e6a0b66613b6df662965e16379e14bf541c0fff91211",
|
|
@@ -818,7 +818,7 @@ exports[`run-block > should work 1`] = `
|
|
|
818
818
|
"section": "paraInclusion",
|
|
819
819
|
},
|
|
820
820
|
{
|
|
821
|
-
"argObj":
|
|
821
|
+
"argObj": undefined,
|
|
822
822
|
"args": [
|
|
823
823
|
{
|
|
824
824
|
"commitmentsHash": "0x5e05cf9945ba47a30984e695efb85b1725341ac43bee01aa9c1f6294b4f036d5",
|
|
@@ -843,7 +843,7 @@ exports[`run-block > should work 1`] = `
|
|
|
843
843
|
"section": "paraInclusion",
|
|
844
844
|
},
|
|
845
845
|
{
|
|
846
|
-
"argObj":
|
|
846
|
+
"argObj": undefined,
|
|
847
847
|
"args": [
|
|
848
848
|
{
|
|
849
849
|
"commitmentsHash": "0x306d19a2fc9882b37eeff572b905f9f44ca77950a5ba68101ca98bc2e8b19934",
|
|
@@ -868,7 +868,7 @@ exports[`run-block > should work 1`] = `
|
|
|
868
868
|
"section": "paraInclusion",
|
|
869
869
|
},
|
|
870
870
|
{
|
|
871
|
-
"argObj":
|
|
871
|
+
"argObj": undefined,
|
|
872
872
|
"args": [
|
|
873
873
|
{
|
|
874
874
|
"commitmentsHash": "0xb54b4a1b0711ce54595e16d7c37d9bf21084efb2f65b3c77f3cc5b7ae4523d91",
|
|
@@ -893,7 +893,7 @@ exports[`run-block > should work 1`] = `
|
|
|
893
893
|
"section": "paraInclusion",
|
|
894
894
|
},
|
|
895
895
|
{
|
|
896
|
-
"argObj":
|
|
896
|
+
"argObj": undefined,
|
|
897
897
|
"args": [
|
|
898
898
|
{
|
|
899
899
|
"commitmentsHash": "0x1429ed2970fec88fd74b9c5da15e0379e740c02c21bc56eca7a488324f209b23",
|
|
@@ -918,7 +918,7 @@ exports[`run-block > should work 1`] = `
|
|
|
918
918
|
"section": "paraInclusion",
|
|
919
919
|
},
|
|
920
920
|
{
|
|
921
|
-
"argObj":
|
|
921
|
+
"argObj": undefined,
|
|
922
922
|
"args": [
|
|
923
923
|
{
|
|
924
924
|
"commitmentsHash": "0x85e5d92042ae4ef1330e693763102d5536d350df2ea96ab8f131a190726981cd",
|
|
@@ -943,7 +943,7 @@ exports[`run-block > should work 1`] = `
|
|
|
943
943
|
"section": "paraInclusion",
|
|
944
944
|
},
|
|
945
945
|
{
|
|
946
|
-
"argObj":
|
|
946
|
+
"argObj": undefined,
|
|
947
947
|
"args": [
|
|
948
948
|
{
|
|
949
949
|
"commitmentsHash": "0x0fa3f49239794538893917fba500a9bca651174ce82137aac4bc197624c7cb70",
|
|
@@ -968,7 +968,7 @@ exports[`run-block > should work 1`] = `
|
|
|
968
968
|
"section": "paraInclusion",
|
|
969
969
|
},
|
|
970
970
|
{
|
|
971
|
-
"argObj":
|
|
971
|
+
"argObj": undefined,
|
|
972
972
|
"args": [
|
|
973
973
|
{
|
|
974
974
|
"commitmentsHash": "0xb2898d0172220505adb7a461831be76bf55a96e6a15f4d217c9791916db0d587",
|
|
@@ -129,10 +129,13 @@ export const name = 'runBlock';
|
|
|
129
129
|
const timestamp = await newBlock.read('u64', meta.query.timestamp.now);
|
|
130
130
|
const events = await newBlock.read('Vec<EventRecord>', meta.query.system.events);
|
|
131
131
|
const parsedEvents = events?.map((event)=>{
|
|
132
|
-
|
|
132
|
+
let argObj = undefined;
|
|
133
133
|
const len = event.event.data.names?.length ?? 0;
|
|
134
|
-
|
|
135
|
-
argObj
|
|
134
|
+
if (len > 0) {
|
|
135
|
+
argObj = {};
|
|
136
|
+
for(let i = 0; i < len; i++){
|
|
137
|
+
argObj[event.event.data.names[i]] = event.event.data[i].toJSON();
|
|
138
|
+
}
|
|
136
139
|
}
|
|
137
140
|
return {
|
|
138
141
|
phase: event.phase.isApplyExtrinsic ? event.phase.asApplyExtrinsic.toNumber() : event.phase.toString(),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@acala-network/chopsticks",
|
|
3
|
-
"version": "0.9.6-
|
|
3
|
+
"version": "0.9.6-4",
|
|
4
4
|
"author": "Acala Developers <hello@acala.network>",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"bin": "./chopsticks.cjs",
|
|
@@ -13,14 +13,14 @@
|
|
|
13
13
|
"docs:prep": "typedoc"
|
|
14
14
|
},
|
|
15
15
|
"dependencies": {
|
|
16
|
-
"@acala-network/chopsticks-core": "0.9.6-
|
|
17
|
-
"@acala-network/chopsticks-db": "0.9.6-
|
|
16
|
+
"@acala-network/chopsticks-core": "0.9.6-4",
|
|
17
|
+
"@acala-network/chopsticks-db": "0.9.6-4",
|
|
18
18
|
"@pnpm/npm-conf": "^2.2.2",
|
|
19
19
|
"@polkadot/api-augment": "^10.10.1",
|
|
20
20
|
"@polkadot/types": "^10.10.1",
|
|
21
21
|
"@polkadot/util": "^12.5.1",
|
|
22
22
|
"@polkadot/util-crypto": "^12.5.1",
|
|
23
|
-
"axios": "^1.6.
|
|
23
|
+
"axios": "^1.6.3",
|
|
24
24
|
"dotenv": "^16.3.1",
|
|
25
25
|
"global-agent": "^3.0.0",
|
|
26
26
|
"js-yaml": "^4.1.0",
|