@acala-network/chopsticks 0.9.1 → 0.9.2-1

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.
@@ -121,7 +121,6 @@ const dryRunPreimage = async (argv)=>{
121
121
  if ('Error' in result) {
122
122
  throw new Error(result.Error);
123
123
  }
124
- (0, _chopstickscore.printRuntimeLogs)(result.Call.runtimeLogs);
125
124
  const filePath = await (0, _generatehtmldiff.generateHtmlDiffPreviewFile)(block, result.Call.storageDiff, hash);
126
125
  console.log(`Generated preview ${filePath}`);
127
126
  if (argv['open']) {
@@ -96,7 +96,6 @@ const cli = (y)=>{
96
96
  if ('Error' in result) {
97
97
  throw new Error(result.Error);
98
98
  }
99
- (0, _chopstickscore.printRuntimeLogs)(result.Call.runtimeLogs);
100
99
  } catch (e) {
101
100
  logger.error(e, 'Error when processing new head');
102
101
  await close();
@@ -78,7 +78,6 @@ const cli = (y)=>{
78
78
  if ('Error' in result) {
79
79
  throw new Error(result.Error);
80
80
  }
81
- (0, _chopstickscore.printRuntimeLogs)(result.Call.runtimeLogs);
82
81
  if (argv.html) {
83
82
  const filePath = await (0, _generatehtmldiff.generateHtmlDiffPreviewFile)(parent, result.Call.storageDiff, block.hash);
84
83
  console.log(`Generated preview ${filePath}`);
@@ -2,7 +2,7 @@ import { blake2AsHex } from '@polkadot/util-crypto';
2
2
  import { hexToU8a } from '@polkadot/util';
3
3
  import { defaultLogger } from '../../logger.js';
4
4
  import { generateHtmlDiffPreviewFile } from '../../utils/generate-html-diff.js';
5
- import { newHeader, printRuntimeLogs, runTask, setStorage, taskHandler } from '@acala-network/chopsticks-core';
5
+ import { newHeader, runTask, setStorage, taskHandler } from '@acala-network/chopsticks-core';
6
6
  import { openHtml } from '../../utils/open-html.js';
7
7
  import { setupContext } from '../../context.js';
8
8
  export const dryRunPreimage = async (argv)=>{
@@ -111,7 +111,6 @@ export const dryRunPreimage = async (argv)=>{
111
111
  if ('Error' in result) {
112
112
  throw new Error(result.Error);
113
113
  }
114
- printRuntimeLogs(result.Call.runtimeLogs);
115
114
  const filePath = await generateHtmlDiffPreviewFile(block, result.Call.storageDiff, hash);
116
115
  console.log(`Generated preview ${filePath}`);
117
116
  if (argv['open']) {
@@ -1,4 +1,4 @@
1
- import { Block, defaultLogger, printRuntimeLogs, runTask, taskHandler } from '@acala-network/chopsticks-core';
1
+ import { Block, defaultLogger, runTask, taskHandler } from '@acala-network/chopsticks-core';
2
2
  import _ from 'lodash';
3
3
  import { createServer } from '../../server.js';
4
4
  import { defaultOptions } from '../../cli-options.js';
@@ -81,7 +81,6 @@ export const cli = (y)=>{
81
81
  if ('Error' in result) {
82
82
  throw new Error(result.Error);
83
83
  }
84
- printRuntimeLogs(result.Call.runtimeLogs);
85
84
  } catch (e) {
86
85
  logger.error(e, 'Error when processing new head');
87
86
  await close();
@@ -1,7 +1,7 @@
1
1
  import { u8aToHex } from '@polkadot/util';
2
2
  import { writeFileSync } from 'node:fs';
3
3
  import { z } from 'zod';
4
- import { Block, compactHex, decodeKeyValue, printRuntimeLogs, runTask, taskHandler } from '@acala-network/chopsticks-core';
4
+ import { Block, compactHex, decodeKeyValue, runTask, taskHandler } from '@acala-network/chopsticks-core';
5
5
  import { defaultOptions, mockOptions } from '../../cli-options.js';
6
6
  import { generateHtmlDiffPreviewFile } from '../../utils/generate-html-diff.js';
7
7
  import { openHtml } from '../../utils/open-html.js';
@@ -57,7 +57,6 @@ export const cli = (y)=>{
57
57
  if ('Error' in result) {
58
58
  throw new Error(result.Error);
59
59
  }
60
- printRuntimeLogs(result.Call.runtimeLogs);
61
60
  if (argv.html) {
62
61
  const filePath = await generateHtmlDiffPreviewFile(parent, result.Call.storageDiff, block.hash);
63
62
  console.log(`Generated preview ${filePath}`);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@acala-network/chopsticks",
3
- "version": "0.9.1",
3
+ "version": "0.9.2-1",
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.1",
18
- "@acala-network/chopsticks-db": "0.9.1",
17
+ "@acala-network/chopsticks-core": "0.9.2-1",
18
+ "@acala-network/chopsticks-db": "0.9.2-1",
19
19
  "@pnpm/npm-conf": "^2.2.2",
20
20
  "axios": "^1.6.0",
21
21
  "dotenv": "^16.3.1",