Skip to content

Commit

Permalink
chore: bump lumos to v0.21.1 (#582)
Browse files Browse the repository at this point in the history
  • Loading branch information
Keith-CY authored Jan 7, 2024
1 parent 6f593f2 commit d0b509e
Show file tree
Hide file tree
Showing 10 changed files with 25 additions and 23 deletions.
4 changes: 2 additions & 2 deletions packages/common/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"find-up": "5.0.0"
},
"devDependencies": {
"@ckb-lumos/base": "0.20.0",
"@ckb-lumos/lumos": "0.20.0"
"@ckb-lumos/base": "0.21.1",
"@ckb-lumos/lumos": "0.21.1"
}
}
8 changes: 4 additions & 4 deletions packages/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@
"dependencies": {
"@ckb-js/kuai-common": "0.0.1-alpha.2",
"@ckb-js/kuai-docker-node": "0.0.1-alpha.2",
"@ckb-lumos/base": "0.20.0",
"@ckb-lumos/config-manager": "0.20.0",
"@ckb-lumos/hd": "0.20.0",
"@ckb-lumos/helpers": "0.20.0",
"@ckb-lumos/base": "0.21.1",
"@ckb-lumos/config-manager": "0.21.1",
"@ckb-lumos/hd": "0.21.1",
"@ckb-lumos/helpers": "0.21.1",
"@iarna/toml": "2.2.5",
"@jest/core": "29.7.0",
"chalk": "4.1.2",
Expand Down
2 changes: 1 addition & 1 deletion packages/core/src/builtin-tasks/node.ts
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ subtask('node:start', 'start a ckb node')
]),
builtInDirPath,
indexer: new Indexer(node.url),
rpc: new RPC(node.url),
rpc: new RPC(node.url, { fetch: (request, init) => globalThis.fetch(request, { ...init, keepalive: true }) }),
privateKey: env.config.kuaiArguments?.privateKey ?? DEFAULT_KUAI_PRIVATE_KEY,
})
})
Expand Down
4 changes: 3 additions & 1 deletion packages/core/src/contract.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,9 @@ export class ContractDeployer {
signer?: MessageSigner,
) {
this.#signer = signer
this.#rpc = new RPC(network.rpcUrl)
this.#rpc = new RPC(network.rpcUrl, {
fetch: (request, init) => globalThis.fetch(request, { ...init, keepalive: true }),
})
this.#index = new Indexer(network.rpcUrl)
this.#network = network
}
Expand Down
2 changes: 1 addition & 1 deletion packages/core/src/util/chain.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ const SpecialCellLocation: {
}

export async function getGenesisScriptsConfig(rpcUrl: string): Promise<Record<string, config.ScriptConfig>> {
const rpc = new RPC(rpcUrl)
const rpc = new RPC(rpcUrl, { fetch: (request, init) => globalThis.fetch(request, { ...init, keepalive: true }) })
const genesisBlock = await rpc.getBlockByNumber('0x0')

const generateGenesisScriptConfig = (transactionIndex: number, outputIndex: number) => {
Expand Down
2 changes: 1 addition & 1 deletion packages/docker-node/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
},
"dependencies": {
"@ckb-js/kuai-common": "0.0.1-alpha.2",
"@ckb-lumos/lumos": "0.20.0",
"@ckb-lumos/lumos": "0.21.1",
"dockerode": "4.0.0"
}
}
6 changes: 3 additions & 3 deletions packages/io/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
"dependencies": {
"@ckb-js/kuai-common": "0.0.1-alpha.2",
"@ckb-js/kuai-core": "0.0.1-alpha.2",
"@ckb-lumos/lumos": "0.20.0",
"@ckb-lumos/lumos": "0.21.1",
"http-errors": "2.0.0",
"koa-body": "6.0.1",
"koa-compose": "4.1.0",
Expand All @@ -43,8 +43,8 @@
"rxjs": "7.8.1"
},
"devDependencies": {
"@ckb-lumos/base": "0.20.0",
"@ckb-lumos/rpc": "0.20.0",
"@ckb-lumos/base": "0.21.1",
"@ckb-lumos/rpc": "0.21.1",
"@types/koa-compose": "3.2.8",
"@types/koa-router": "7.4.8",
"koa": "2.14.2",
Expand Down
10 changes: 5 additions & 5 deletions packages/models/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,11 @@
"dependencies": {
"@ckb-js/kuai-common": "0.0.1-alpha.2",
"@ckb-js/kuai-io": "0.0.1-alpha.2",
"@ckb-lumos/base": "0.20.0",
"@ckb-lumos/bi": "0.20.0",
"@ckb-lumos/codec": "0.20.0",
"@ckb-lumos/experiment-tx-assembler": "0.20.0",
"@ckb-lumos/lumos": "0.20.0",
"@ckb-lumos/base": "0.21.1",
"@ckb-lumos/bi": "0.21.1",
"@ckb-lumos/codec": "0.21.1",
"@ckb-lumos/experiment-tx-assembler": "0.21.1",
"@ckb-lumos/lumos": "0.21.1",
"inversify": "6.0.2",
"ioredis": "5.3.2",
"lodash": "4.17.21",
Expand Down
8 changes: 4 additions & 4 deletions packages/samples/mvp-dapp/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@
"@ckb-js/kuai-core": "0.0.1-alpha.2",
"@ckb-js/kuai-io": "0.0.1-alpha.2",
"@ckb-js/kuai-models": "0.0.1-alpha.2",
"@ckb-lumos/base": "0.20.0",
"@ckb-lumos/bi": "0.20.0",
"@ckb-lumos/codec": "0.20.0",
"@ckb-lumos/lumos": "0.20.0",
"@ckb-lumos/base": "0.21.1",
"@ckb-lumos/bi": "0.21.1",
"@ckb-lumos/codec": "0.21.1",
"@ckb-lumos/lumos": "0.21.1",
"@koa/cors": "4.0.0",
"dotenv": "16.3.1",
"http-errors": "2.0.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/samples/sudt/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"@ckb-js/kuai-core": "0.0.1-alpha.2",
"@ckb-js/kuai-io": "0.0.1-alpha.2",
"@ckb-js/kuai-models": "0.0.1-alpha.2",
"@ckb-lumos/lumos": "0.20.0",
"@ckb-lumos/lumos": "0.21.1",
"http-errors": "2.0.0",
"koa": "2.14.1",
"koa-body": "6.0.1"
Expand Down

0 comments on commit d0b509e

Please sign in to comment.