@acala-network/chopsticks 0.9.3 → 0.9.4-2
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.
- package/dist/cjs/plugins/run-block/__snapshots__/index.test.ts.snap +2995 -2629
- package/dist/cjs/plugins/run-block/rpc.js +3 -1
- package/dist/esm/plugins/run-block/__snapshots__/index.test.ts.snap +2995 -2629
- package/dist/esm/plugins/run-block/rpc.js +3 -1
- package/dist/types/plugins/run-block/rpc.d.ts +1 -0
- package/package.json +3 -3
|
@@ -131,11 +131,13 @@ export const name = 'runBlock';
|
|
|
131
131
|
const extrinsics = block.extrinsics.map((extrinsic, idx)=>{
|
|
132
132
|
const parsed = registry.createType('GenericExtrinsic', extrinsic);
|
|
133
133
|
const resultEvent = events?.find(({ event, phase })=>event.section === 'system' && (event.method === 'ExtrinsicSuccess' || event.method === 'ExtrinsicFailed') && phase.isApplyExtrinsic && phase.asApplyExtrinsic.eq(idx));
|
|
134
|
+
const signer = parsed.signer.isEmpty ? null : parsed.signer.toHex();
|
|
134
135
|
return {
|
|
135
136
|
section: parsed.method.section,
|
|
136
137
|
method: parsed.method.method,
|
|
137
138
|
args: parsed.method.args.map((arg)=>arg.toJSON()),
|
|
138
|
-
success: resultEvent?.event.method === 'ExtrinsicSuccess'
|
|
139
|
+
success: resultEvent?.event.method === 'ExtrinsicSuccess',
|
|
140
|
+
signer
|
|
139
141
|
};
|
|
140
142
|
});
|
|
141
143
|
resp.blockDetails = {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@acala-network/chopsticks",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.4-2",
|
|
4
4
|
"author": "Acala Developers <hello@acala.network>",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"bin": "./chopsticks.cjs",
|
|
@@ -14,8 +14,8 @@
|
|
|
14
14
|
"docs:prep": "typedoc"
|
|
15
15
|
},
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"@acala-network/chopsticks-core": "0.9.
|
|
18
|
-
"@acala-network/chopsticks-db": "0.9.
|
|
17
|
+
"@acala-network/chopsticks-core": "0.9.4-2",
|
|
18
|
+
"@acala-network/chopsticks-db": "0.9.4-2",
|
|
19
19
|
"@pnpm/npm-conf": "^2.2.2",
|
|
20
20
|
"@polkadot/api-augment": "^10.10.1",
|
|
21
21
|
"@polkadot/types": "^10.10.1",
|