Skip to content

Commit

Permalink
update deps (#151)
Browse files Browse the repository at this point in the history
  • Loading branch information
ermalkaleci authored Jan 18, 2023
1 parent 5552609 commit f18e3eb
Show file tree
Hide file tree
Showing 4 changed files with 967 additions and 795 deletions.
6 changes: 6 additions & 0 deletions e2e/__snapshots__/author.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ exports[`author rpc > works 1`] = `
[
[
SubmittableResult {
"blockNumber": undefined,
"dispatchError": undefined,
"dispatchInfo": undefined,
"events": [],
Expand All @@ -17,6 +18,7 @@ exports[`author rpc > works 1`] = `
],
[
SubmittableResult {
"blockNumber": 189521,
"dispatchError": undefined,
"dispatchInfo": {
"class": "Normal",
Expand Down Expand Up @@ -201,6 +203,7 @@ exports[`author rpc > works 5`] = `
[
[
SubmittableResult {
"blockNumber": undefined,
"dispatchError": undefined,
"dispatchInfo": undefined,
"events": [],
Expand All @@ -214,6 +217,7 @@ exports[`author rpc > works 5`] = `
],
[
SubmittableResult {
"blockNumber": 189522,
"dispatchError": undefined,
"dispatchInfo": {
"class": "Normal",
Expand Down Expand Up @@ -398,6 +402,7 @@ exports[`author rpc > works 9`] = `
[
[
SubmittableResult {
"blockNumber": undefined,
"dispatchError": undefined,
"dispatchInfo": undefined,
"events": [],
Expand All @@ -411,6 +416,7 @@ exports[`author rpc > works 9`] = `
],
[
SubmittableResult {
"blockNumber": 189523,
"dispatchError": undefined,
"dispatchInfo": {
"class": "Normal",
Expand Down
50 changes: 24 additions & 26 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"fix": "eslint . --ext .js,.ts --fix && prettier -w .",
"prepare": "husky install",
"start": "ts-node --transpile-only src/index.ts",
"build": "rimraf dist && tsc -p tsconfig.prod.json",
"build": "rm -rf dist && tsc -p tsconfig.prod.json",
"build-wasm": "wasm-pack build executor --target nodejs --scope acala-network",
"build-wasm-logging": "yarn build-wasm --features=logging",
"check": "cd executor && cargo check --locked",
Expand All @@ -30,47 +30,45 @@
},
"dependencies": {
"@acala-network/chopsticks-executor": "workspace:*",
"@polkadot/api": "^9.10.1",
"@polkadot/rpc-provider": "^9.10.1",
"@polkadot/types": "^9.10.1",
"@polkadot/types-codec": "^9.10.1",
"@polkadot/types-known": "^9.10.1",
"@polkadot/util": "^10.2.1",
"@polkadot/util-crypto": "^10.2.1",
"axios": "^1.2.2",
"@polkadot/api": "^9.11.3",
"@polkadot/rpc-provider": "^9.11.3",
"@polkadot/types": "^9.11.3",
"@polkadot/types-codec": "^9.11.3",
"@polkadot/types-known": "^9.11.3",
"@polkadot/util": "^10.2.6",
"@polkadot/util-crypto": "^10.2.6",
"axios": "^1.2.3",
"js-yaml": "^4.1.0",
"jsondiffpatch": "^0.4.1",
"lodash": "^4.17.21",
"pino": "^8.7.0",
"pino": "^8.8.0",
"pino-pretty": "^9.1.1",
"reflect-metadata": "^0.1.13",
"sqlite3": "^5.1.2",
"sqlite3": "^5.1.4",
"typeorm": "^0.3.11",
"typescript": "^4.9.3",
"ws": "^8.11.0",
"typescript": "^4.9.4",
"ws": "^8.12.0",
"yargs": "^17.6.2",
"zod": "^3.19.1"
"zod": "^3.20.2"
},
"devDependencies": {
"@types/js-yaml": "^4.0.5",
"@types/lodash": "^4.14.191",
"@types/node": "^18.11.18",
"@types/rimraf": "^3",
"@types/ws": "^8.5.3",
"@types/yargs": "^17.0.18",
"@typescript-eslint/eslint-plugin": "^5.45.0",
"@typescript-eslint/parser": "^5.45.0",
"eslint": "^8.31.0",
"eslint-config-prettier": "^8.5.0",
"eslint-plugin-import": "^2.26.0",
"@types/ws": "^8.5.4",
"@types/yargs": "^17.0.19",
"@typescript-eslint/eslint-plugin": "^5.48.2",
"@typescript-eslint/parser": "^5.48.2",
"eslint": "^8.32.0",
"eslint-config-prettier": "^8.6.0",
"eslint-plugin-import": "^2.27.5",
"eslint-plugin-sort-imports-es6-autofix": "^0.6.0",
"husky": "^8.0.2",
"husky": "^8.0.3",
"lint-staged": "^13.1.0",
"prettier": "^2.8.0",
"rimraf": "^3.0.2",
"prettier": "^2.8.3",
"ts-node": "^10.9.1",
"ts-node-dev": "^2.0.0",
"vitest": "^0.25.3",
"vitest": "^0.27.2",
"wasm-pack": "^0.10.3"
},
"files": [
Expand Down
4 changes: 2 additions & 2 deletions src/executor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import {
run_task,
} from '@acala-network/chopsticks-executor'
import { defaultLogger, truncate } from './logger'
import { memoize } from 'lodash'
import _ from 'lodash'

interface JsCallback {
getStorage: (key: HexString) => Promise<string | undefined>
Expand Down Expand Up @@ -123,7 +123,7 @@ export const emptyTaskHandler = {
},
}

export const getAuraSlotDuration = memoize(async (wasm: HexString, registry: Registry): Promise<number> => {
export const getAuraSlotDuration = _.memoize(async (wasm: HexString, registry: Registry): Promise<number> => {
const result = await runTask({
wasm,
calls: [['AuraApi_slot_duration', '0x']],
Expand Down
Loading

0 comments on commit f18e3eb

Please sign in to comment.