Skip to content

Commit

Permalink
update deps (#464)
Browse files Browse the repository at this point in the history
  • Loading branch information
ermalkaleci authored Oct 23, 2023
1 parent 086ba29 commit cb64091
Show file tree
Hide file tree
Showing 20 changed files with 275 additions and 297 deletions.
1 change: 0 additions & 1 deletion packages/chopsticks/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
"@acala-network/chopsticks-core": "workspace:*",
"@acala-network/chopsticks-db": "workspace:*",
"@pnpm/npm-conf": "^2.2.2",
"@polkadot/api": "^10.9.1",
"axios": "^1.5.1",
"dotenv": "^16.3.1",
"global-agent": "^3.0.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/chopsticks/src/plugins/dry-run/rpc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ export interface DryRunParams {
*
* @example Dry run an dmp
* ```ts
* import { WsProvider } from '@polkadot/api'
* import { WsProvider } from '@polkadot/rpc-provider'
* const ws = new WsProvider(`ws://localhost:8000`)
* const params = [
{
Expand Down
6 changes: 3 additions & 3 deletions packages/chopsticks/src/plugins/new-block/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,13 +43,13 @@ export interface NewBlockParams {
*
* @example Build 2 blocks
* ```ts
* import { WsProvider } from '@polkadot/api'
* import { WsProvider } from '@polkadot/rpc-provider'
* const ws = new WsProvider(`ws://localhost:8000`)
* await ws.send('dev_newBlock', [{ count: 2 }])
* ```
* @example Build a block with upward messages
* ```ts
* import { WsProvider } from '@polkadot/api'
* import { WsProvider } from '@polkadot/rpc-provider'
* const ws = new WsProvider(`ws://localhost:8000`)
* await ws.send('dev_newBlock', [
* {
Expand All @@ -65,7 +65,7 @@ export interface NewBlockParams {
*
* @example Build two blocks with unsafeBlockHeight
* ```ts
* import { WsProvider } from '@polkadot/api'
* import { WsProvider } from '@polkadot/rpc-provider'
* const ws = new WsProvider(`ws://localhost:8000`)
* // this will create two blocks with block height 100000001 and 100000002
* await ws.send('dev_newBlock', [{ count: 2, unsafeBlockHeight: 100000001 }])
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import { defaultLogger } from '../../logger'
*
* @example Set build block mode to instant
* ```ts
* import { WsProvider } from '@polkadot/api'
* import { WsProvider } from '@polkadot/rpc-provider'
* import { BuildBlockMode } from '@acala-network/chopsticks-core'
* const ws = new WsProvider(`ws://localhost:8000`)
* await ws.send('dev_setBlockBuildMode', [BuildBlockMode.Instant])
Expand Down
2 changes: 1 addition & 1 deletion packages/chopsticks/src/plugins/set-head/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import { HexString } from '@polkadot/util/types'
*
* @example Set head to block 1000000
* ```ts
* import { WsProvider } from '@polkadot/api'
* import { WsProvider } from '@polkadot/rpc-provider'
* const ws = new WsProvider(`ws://localhost:8000`)
* await ws.send('dev_setHead', [1000000])
* ```
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import { defaultLogger } from '../../logger'
*
* @example Set runtime log level to 1
* ```ts
* import { WsProvider } from '@polkadot/api'
* import { WsProvider } from '@polkadot/rpc-provider'
* const ws = new WsProvider(`ws://localhost:8000`)
* await ws.send('dev_setRuntimeLogLevel', [1])
* ```
Expand Down
2 changes: 1 addition & 1 deletion packages/chopsticks/src/plugins/set-storage/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import { defaultLogger } from '../../logger'
*
* @example
* ```ts
* import { WsProvider } from '@polkadot/api'
* import { WsProvider } from '@polkadot/rpc-provider'
* import { Keyring } from '@polkadot/keyring'
*
* const ws = new WsProvider(`ws://localhost:8000`)
Expand Down
2 changes: 1 addition & 1 deletion packages/chopsticks/src/plugins/time-travel/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import { Context, ResponseError, timeTravel } from '@acala-network/chopsticks-co
*
* @example
* ```ts
* import { WsProvider } from '@polkadot/api'
* import { WsProvider } from '@polkadot/rpc-provider'
* const ws = new WsProvider(`ws://localhost:8000`)
* await ws.send('dev_timeTravel', ['Jan 1, 2023'])
* ```
Expand Down
1 change: 0 additions & 1 deletion packages/chopsticks/src/setup-with-server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import { createServer } from './server'
import { handler } from './rpc'
import { logger } from '@acala-network/chopsticks-core'
import { setupContext } from './context'
import _ from 'lodash'

export const setupWithServer = async (argv: Config) => {
const context = await setupContext(argv)
Expand Down
1 change: 0 additions & 1 deletion packages/chopsticks/src/utils/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,3 @@ export * from './decoder'
export * from './generate-html-diff'
export * from './open-html'
export * from './override'
export * from './signFake'
5 changes: 3 additions & 2 deletions packages/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,9 @@
},
"dependencies": {
"@acala-network/chopsticks-executor": "workspace:*",
"@polkadot/api": "^10.9.1",
"@polkadot/util-crypto": "^12.3.2",
"@polkadot/rpc-provider": "^10.10.1",
"@polkadot/types": "^10.10.1",
"@polkadot/util-crypto": "^12.5.1",
"comlink": "^4.4.1",
"eventemitter3": "^5.0.1",
"lodash": "^4.17.21",
Expand Down
2 changes: 1 addition & 1 deletion packages/core/src/api.test.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Api } from './api'
import { WsProvider } from '@polkadot/api'
import { WsProvider } from '@polkadot/rpc-provider'
import { expect, test } from 'vitest'

test('handle invalid block hash', async () => {
Expand Down
1 change: 0 additions & 1 deletion packages/core/src/blockchain/head-state.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { stringToHex } from '@polkadot/util'
import _ from 'lodash'

import { Block } from './block'
import { defaultLogger } from '../logger'
Expand Down
2 changes: 1 addition & 1 deletion packages/core/src/setup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import '@polkadot/types-codec'
import { HexString } from '@polkadot/util/types'
import { ProviderInterface } from '@polkadot/rpc-provider/types'
import { RegisteredTypes } from '@polkadot/types/types'
import { WsProvider } from '@polkadot/api'
import { WsProvider } from '@polkadot/rpc-provider'

import { Api } from './api'
import { Blockchain } from './blockchain'
Expand Down
1 change: 0 additions & 1 deletion packages/core/src/utils/key-cache.test.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import { describe, expect, it } from 'vitest'
import KeyCache from './key-cache'
import _ from 'lodash'

const KEY_0 = '0x26aa394eea5630e07c48ae0c9558cef7b99d880ec681799c0cf30e8886371da9_00'
const KEY_1 = '0x26aa394eea5630e07c48ae0c9558cef7b99d880ec681799c0cf30e8886371da9_01'
Expand Down
6 changes: 2 additions & 4 deletions packages/e2e/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,10 @@
"engines": {
"node": ">=v14"
},
"dependencies": {
"devDependencies": {
"@acala-network/chopsticks": "workspace:*",
"@acala-network/chopsticks-testing": "workspace:*",
"@polkadot/api": "^10.9.1"
},
"devDependencies": {
"@polkadot/api": "^10.10.1",
"typescript": "^5.1.6",
"vitest": "^0.34.6"
}
Expand Down
2 changes: 1 addition & 1 deletion packages/e2e/src/mock-signature.test.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { describe, expect, it } from 'vitest'
import { signFake, signFakeWithApi } from '@acala-network/chopsticks/utils'
import { signFake, signFakeWithApi } from '@acala-network/chopsticks-testing'

import { api, dev, env, setupApi, testingPairs } from './helper'

Expand Down
1 change: 1 addition & 0 deletions packages/testing/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ import { SubmittableExtrinsic } from '@polkadot/api-base/types'
import { expect } from 'vitest'

export * from './check'
export * from './signFake'

export type SetupOption = {
endpoint: string
Expand Down
File renamed without changes.
Loading

0 comments on commit cb64091

Please sign in to comment.