Skip to content

Commit

Permalink
bump deps (#800)
Browse files Browse the repository at this point in the history
  • Loading branch information
xlc authored Aug 8, 2024
1 parent 811bbea commit 700e6bf
Show file tree
Hide file tree
Showing 12 changed files with 2,336 additions and 2,080 deletions.
4 changes: 2 additions & 2 deletions executor/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,12 @@
"build": "yarn wasm && ./package.sh"
},
"dependencies": {
"@polkadot/util": "^12.6.2",
"@polkadot/util": "^13.0.2",
"@polkadot/wasm-util": "^7.3.2"
},
"devDependencies": {
"@swc/cli": "0.4.0",
"@swc/core": "^1.6.7",
"@swc/core": "^1.7.6",
"fflate": "^0.8.2"
},
"files": [
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
"*.{js,ts,css,md}": "prettier --write"
},
"devDependencies": {
"@swc/core": "^1.6.7",
"@swc/core": "^1.7.6",
"@types/node": "^20.14.9",
"@types/prettier": "^3.0.0",
"@typescript-eslint/eslint-plugin": "^7.15.0",
Expand Down
14 changes: 7 additions & 7 deletions packages/chopsticks/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,12 @@
"@acala-network/chopsticks-core": "workspace:*",
"@acala-network/chopsticks-db": "workspace:*",
"@pnpm/npm-conf": "^2.2.2",
"@polkadot/api": "^12.1.1",
"@polkadot/api-augment": "^12.1.1",
"@polkadot/rpc-provider": "^12.1.1",
"@polkadot/types": "^12.1.1",
"@polkadot/util": "^12.6.2",
"@polkadot/util-crypto": "^12.6.2",
"@polkadot/api": "^12.3.1",
"@polkadot/api-augment": "^12.3.1",
"@polkadot/rpc-provider": "^12.3.1",
"@polkadot/types": "^12.3.1",
"@polkadot/util": "^13.0.2",
"@polkadot/util-crypto": "^13.0.2",
"axios": "^1.6.8",
"comlink": "^4.4.1",
"dotenv": "^16.4.5",
Expand All @@ -34,7 +34,7 @@
},
"devDependencies": {
"@swc/cli": "0.4.0",
"@swc/core": "^1.6.7",
"@swc/core": "^1.7.6",
"@types/global-agent": "^2.1.3",
"@types/js-yaml": "^4.0.9",
"@types/lodash": "^4.17.6",
Expand Down
14 changes: 7 additions & 7 deletions packages/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@
},
"dependencies": {
"@acala-network/chopsticks-executor": "workspace:*",
"@polkadot/rpc-provider": "^12.1.1",
"@polkadot/types": "^12.1.1",
"@polkadot/types-codec": "^12.1.1",
"@polkadot/types-known": "^12.1.1",
"@polkadot/util": "^12.6.2",
"@polkadot/util-crypto": "^12.6.2",
"@polkadot/rpc-provider": "^12.3.1",
"@polkadot/types": "^12.3.1",
"@polkadot/types-codec": "^12.3.1",
"@polkadot/types-known": "^12.3.1",
"@polkadot/util": "^13.0.2",
"@polkadot/util-crypto": "^13.0.2",
"comlink": "^4.4.1",
"eventemitter3": "^5.0.1",
"lodash": "^4.17.21",
Expand All @@ -29,7 +29,7 @@
},
"devDependencies": {
"@swc/cli": "0.4.0",
"@swc/core": "^1.6.7",
"@swc/core": "^1.7.6",
"@types/lodash": "^4.17.6",
"typescript": "^5.5.3",
"vitest": "^1.4.0"
Expand Down
4 changes: 2 additions & 2 deletions packages/db/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,14 @@
},
"dependencies": {
"@acala-network/chopsticks-core": "workspace:*",
"@polkadot/util": "^12.6.2",
"@polkadot/util": "^13.0.2",
"idb": "^8.0.0",
"sqlite3": "^5.1.7",
"typeorm": "^0.3.20"
},
"devDependencies": {
"@swc/cli": "0.4.0",
"@swc/core": "^1.6.7",
"@swc/core": "^1.7.6",
"typescript": "^5.5.3"
},
"files": [
Expand Down
2 changes: 1 addition & 1 deletion packages/e2e/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"devDependencies": {
"@acala-network/chopsticks": "workspace:*",
"@acala-network/chopsticks-testing": "workspace:*",
"@polkadot/api": "^12.1.1",
"@polkadot/api": "^12.3.1",
"typescript": "^5.5.3",
"vitest": "^1.4.0"
}
Expand Down
6 changes: 3 additions & 3 deletions packages/e2e/src/chopsticks-provider.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,9 @@ describe('chopsticks provider works', async () => {
})

it('system rpc', async () => {
expect(await api.rpc.system.chain()).toMatch('Acala')
expect(await api.rpc.system.name()).toMatch('Subway')
expect(await api.rpc.system.version()).toBeInstanceOf(String)
expect((await api.rpc.system.chain()).toString()).toMatch('Acala')
expect((await api.rpc.system.name()).toString()).toMatch('Subway')
expect((await api.rpc.system.version()).toString()).toMatch('chopsticks-v1')
expect(await api.rpc.system.properties()).not.toBeNull()
await check(api.rpc.system.health()).toMatchObject({
peers: 0,
Expand Down
6 changes: 3 additions & 3 deletions packages/e2e/src/system.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ describe('system rpc', () => {
const { alice } = testingPairs()

it('works', async () => {
expect(await api.rpc.system.chain()).toMatch('Acala')
expect(await api.rpc.system.name()).toMatch('Subway')
expect(await api.rpc.system.version()).toBeInstanceOf(String)
expect((await api.rpc.system.chain()).toString()).toMatch('Acala')
expect((await api.rpc.system.name()).toString()).toMatch('Subway')
expect((await api.rpc.system.version()).toString()).toMatch('chopsticks-v1')
expect(await api.rpc.system.properties()).not.toBeNull()
await check(api.rpc.system.health()).toMatchObject({
peers: 0,
Expand Down
6 changes: 3 additions & 3 deletions packages/testing/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@
},
"dependencies": {
"@acala-network/chopsticks-utils": "workspace:*",
"@polkadot/api": "^12.1.1",
"@polkadot/types": "^12.1.1"
"@polkadot/api": "^12.3.1",
"@polkadot/types": "^12.3.1"
},
"devDependencies": {
"@swc/cli": "0.4.0",
"@swc/core": "^1.6.7",
"@swc/core": "^1.7.6",
"typescript": "^5.5.3"
},
"files": [
Expand Down
12 changes: 6 additions & 6 deletions packages/utils/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,15 @@
},
"dependencies": {
"@acala-network/chopsticks": "workspace:*",
"@polkadot/api": "^12.1.1",
"@polkadot/api-base": "^12.1.1",
"@polkadot/keyring": "^12.6.2",
"@polkadot/types": "^12.1.1",
"@polkadot/util": "^12.6.2"
"@polkadot/api": "^12.3.1",
"@polkadot/api-base": "^12.3.1",
"@polkadot/keyring": "^13.0.2",
"@polkadot/types": "^12.3.1",
"@polkadot/util": "^13.0.2"
},
"devDependencies": {
"@swc/cli": "0.4.0",
"@swc/core": "^1.6.7",
"@swc/core": "^1.7.6",
"typescript": "^5.5.3"
},
"files": [
Expand Down
2 changes: 1 addition & 1 deletion packages/utils/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ export const setupNetworks = async (networkOptions: Partial<Record<string, Confi
let wasmOverriden = false

for (const [name, options] of Object.entries(networkOptions) as [string, Config | string | undefined][]) {
const config = typeof options === 'string' ? await fetchConfig(options) : options ?? (await fetchConfig(name))
const config = typeof options === 'string' ? await fetchConfig(options) : (options ?? (await fetchConfig(name)))
ret[name] = await setupContextWithConfig(config)
wasmOverriden ||= config['wasm-override'] != null
}
Expand Down
Loading

0 comments on commit 700e6bf

Please sign in to comment.