From daa239e97c9573329f1fd0734bd3b380a5ff6c68 Mon Sep 17 00:00:00 2001 From: Keith Date: Fri, 27 Dec 2019 20:47:55 +0800 Subject: [PATCH 1/5] refactor(utils): refine ECPair 1. check the length of provided private key. 2. remain leading 0 of private key. --- .../__tests__/ecpair/ecpare.fixtures.json | 7 +++++++ .../ckb-sdk-utils/__tests__/ecpair/index.test.js | 16 ++++++++++++++-- packages/ckb-sdk-utils/src/ecpair.ts | 14 ++++++++++++-- 3 files changed, 33 insertions(+), 4 deletions(-) diff --git a/packages/ckb-sdk-utils/__tests__/ecpair/ecpare.fixtures.json b/packages/ckb-sdk-utils/__tests__/ecpair/ecpare.fixtures.json index 9cfa6021..877e5d36 100644 --- a/packages/ckb-sdk-utils/__tests__/ecpair/ecpare.fixtures.json +++ b/packages/ckb-sdk-utils/__tests__/ecpair/ecpare.fixtures.json @@ -62,6 +62,13 @@ "privateKey": "0xe79f3207ea4980b7fed79956d5934249ceac4751a4fae01a0f7c4a96884bc4e3", "compressed": true, "publicKey": "0x024a501efd328e062c8675f2365970728c859c592beeefd6be8ead3d901330bc01" + }, + "privateKeyHasInvalidLength": { + "privateKey": "0xf70eea3041c793746f07d47f28a62d6555041b9edc74501a75ffbf47c55fc9", + "exception": "Private key has invalid length" + }, + "leadingZeroShouldBeRemained": { + "privateKey": "0x00f70eea3041c793746f07d47f28a62d6555041b9edc74501a75ffbf47c55fc9" } } } diff --git a/packages/ckb-sdk-utils/__tests__/ecpair/index.test.js b/packages/ckb-sdk-utils/__tests__/ecpair/index.test.js index 022d9447..06976a44 100644 --- a/packages/ckb-sdk-utils/__tests__/ecpair/index.test.js +++ b/packages/ckb-sdk-utils/__tests__/ecpair/index.test.js @@ -24,7 +24,7 @@ describe('ECPair', () => { it('new ecpair with empty options, default compressed should be true', () => { const fixture = instantiateFixtures.withEmptyOption - const ecpair = new ECPair(hexToBytes(fixture.privateKey), {}) + const ecpair = new ECPair(fixture.privateKey, {}) expect(ecpair.compressed).toBe(fixture.compressed) expect(ecpair.privateKey).toEqual(fixture.privateKey) expect(ecpair.publicKey).toBe(fixture.publicKey) @@ -33,7 +33,7 @@ describe('ECPair', () => { it('new ecpair with default options which should be { compressed: true }', () => { const fixture = instantiateFixtures.withDefaultOption - const ecpair = new ECPair(hexToBytes(fixture.privateKey)) + const ecpair = new ECPair(fixture.privateKey) expect(ecpair.compressed).toBe(fixture.compressed) expect(ecpair.privateKey).toEqual(fixture.privateKey) expect(ecpair.publicKey).toBe(fixture.publicKey) @@ -48,6 +48,18 @@ describe('ECPair', () => { expect(() => new ECPair(privateKey, {})).toThrow(new HexStringShouldStartWith0x(privateKey)) }) + it('shoule throw an error if private key has invalid length', () => { + const fixture = instantiateFixtures.privateKeyHasInvalidLength + expect(() => new ECPair(fixture.privateKey)).toThrow(new Error(fixture.exception)) + expect(() => new ECPair(hexToBytes(fixture.privateKey), 'hex')).toThrow(fixture.exception) + }) + + it('leading 0 of private key should be remained', () => { + const fixture = instantiateFixtures.leadingZeroShouldBeRemained + const key = new ECPair(fixture.privateKey) + expect(key.privateKey).toBe(fixture.privateKey) + }) + it('sign and verify message', () => { sigFixtures.forEach(fixture => { const ecpair = new ECPair(`0x${fixture.privkey}`) diff --git a/packages/ckb-sdk-utils/src/ecpair.ts b/packages/ckb-sdk-utils/src/ecpair.ts index 602555ef..704d2d0f 100644 --- a/packages/ckb-sdk-utils/src/ecpair.ts +++ b/packages/ckb-sdk-utils/src/ecpair.ts @@ -18,18 +18,28 @@ class ECPair { sk: Uint8Array | string, { compressed = true }: Options = { compressed: true, - } + }, ) { if (sk === undefined) throw new ArgumentRequired('Private key') + if (typeof sk === 'string' && !sk.startsWith('0x')) { throw new HexStringShouldStartWith0x(sk) } + + if (typeof sk === 'string' && sk.length !== 66) { + throw new Error('Private key has invalid length') + } + + if (typeof sk === 'object' && sk.byteLength !== 32) { + throw new Error('Private key has invalid length') + } + this.key = ec.keyFromPrivate(typeof sk === 'string' ? sk.replace(/^0x/, '') : sk) this.compressed = compressed } get privateKey() { - return `0x${this.key.getPrivate('hex')}` + return `0x${this.key.getPrivate('hex').padStart(64, '0')}` } get publicKey() { From 3a9f478b6da58bd8934599ed278875a1d04d45e0 Mon Sep 17 00:00:00 2001 From: Keith Date: Tue, 31 Dec 2019 14:05:57 +0800 Subject: [PATCH 2/5] refactor(utils): order exports in utils --- packages/ckb-sdk-utils/src/index.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/packages/ckb-sdk-utils/src/index.ts b/packages/ckb-sdk-utils/src/index.ts index 62700a37..5b366794 100644 --- a/packages/ckb-sdk-utils/src/index.ts +++ b/packages/ckb-sdk-utils/src/index.ts @@ -14,10 +14,8 @@ export { serializeScript, serializeRawTransaction, serializeTransaction, seriali declare const TextDecoder: any // should be removed when the type definition of TextDecoder updates declare const TextEncoder: any // should be removed when the type definition of TextEncoder updates -export const { blake2b, bech32, blake160 } = crypto const textEncoder = new (typeof TextEncoder !== 'undefined' ? TextEncoder : util.TextEncoder)() const textDecoder = new (typeof TextDecoder !== 'undefined' ? TextDecoder : util.TextDecoder)() -export const PERSONAL = textEncoder.encode('ckb-default-hash') export { JSBI } export const hexToBytes = (rawhex: string | number) => { @@ -57,6 +55,10 @@ export const utf8ToBytes = (str: string) => textEncoder.encode(str) export const utf8ToHex = (str: string) => bytesToHex(utf8ToBytes(str)) +export const PERSONAL = textEncoder.encode('ckb-default-hash') + +export const { blake2b, bech32, blake160 } = crypto + export const scriptToHash = (script: CKBComponents.Script) => { if (!script) throw new ArgumentRequired('Script') const serializedScript = serializeScript(script) From 9628084ba6111e2580d793a752992f45e142fcc5 Mon Sep 17 00:00:00 2001 From: Keith Date: Wed, 1 Jan 2020 20:33:45 +0800 Subject: [PATCH 3/5] feat(rpc): add the new rpc method of get_capacity_by_lock_hash --- README.md | 2 +- .../__tests__/formatters/result.fixtures.json | 14 ++++++++++++++ packages/ckb-sdk-rpc/src/defaultRPC.ts | 8 ++++++++ packages/ckb-sdk-rpc/src/resultFormatter.ts | 12 ++++++++++++ packages/ckb-sdk-rpc/types/rpc/index.d.ts | 6 ++++++ packages/ckb-types/index.d.ts | 6 ++++++ 6 files changed, 47 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index b3b0abc5..d36d2ed5 100644 --- a/README.md +++ b/README.md @@ -137,7 +137,7 @@ After that you can use the `ckb` object to generate addresses, send requests, et ## Default RPC -Please see [Default RPC](https://github.com/nervosnetwork/ckb-sdk-js/blob/develop/packages/ckb-sdk-rpc/src/defaultRPC.ts#L176) +Please see [Default RPC](https://github.com/nervosnetwork/ckb-sdk-js/blob/develop/packages/ckb-sdk-rpc/src/defaultRPC.ts#L182) ## Persistent Connection diff --git a/packages/ckb-sdk-rpc/__tests__/formatters/result.fixtures.json b/packages/ckb-sdk-rpc/__tests__/formatters/result.fixtures.json index 72aa788c..1915074b 100644 --- a/packages/ckb-sdk-rpc/__tests__/formatters/result.fixtures.json +++ b/packages/ckb-sdk-rpc/__tests__/formatters/result.fixtures.json @@ -1291,5 +1291,19 @@ "feeRate": "0x7d0" } } + ], + "toCapacityByLockHash": [ + { + "result": { + "block_number": "0x400", + "capacity": "0xb00fb84df292", + "cells_count": "0x3f5" + }, + "expected": { + "blockNumber": "0x400", + "capacity": "0xb00fb84df292", + "cellsCount": "0x3f5" + } + } ] } diff --git a/packages/ckb-sdk-rpc/src/defaultRPC.ts b/packages/ckb-sdk-rpc/src/defaultRPC.ts index d5c7a76b..0c539f62 100644 --- a/packages/ckb-sdk-rpc/src/defaultRPC.ts +++ b/packages/ckb-sdk-rpc/src/defaultRPC.ts @@ -171,6 +171,12 @@ const defaultRPC: CKBComponents.Method[] = [ method: 'calculate_dao_maximum_withdraw', paramsFormatters: [paramsFmts.toOutPoint, paramsFmts.toHash], }, + { + name: 'getCapacityByLockHash', + method: 'get_capacity_by_lock_hash', + paramsFormatters: [paramsFmts.toHash], + resultFormatters: resultFmts.toCapacityByLockHash, + }, ] export class DefaultRPC { @@ -475,6 +481,8 @@ export class DefaultRPC { outPoint: CKBComponents.OutPoint, withdrawBlockHash: CKBComponents.Hash256, ) => Promise + + public getCapacityByLockHash!: (lockHash: CKBComponents.Hash) => Promise } export default DefaultRPC diff --git a/packages/ckb-sdk-rpc/src/resultFormatter.ts b/packages/ckb-sdk-rpc/src/resultFormatter.ts index 4c74b12d..3cbfe989 100644 --- a/packages/ckb-sdk-rpc/src/resultFormatter.ts +++ b/packages/ckb-sdk-rpc/src/resultFormatter.ts @@ -303,6 +303,18 @@ const formatter = { ...rest, } }, + toCapacityByLockHash: (capacityByLockHash: RPC.CapacityByLockHash): CKBComponents.CapacityByLockHash => { + if (!capacityByLockHash) { + return capacityByLockHash + } + const { cells_count: cellsCount, block_number: blockNumber, capacity, ...rest } = capacityByLockHash + return { + blockNumber, + capacity, + cellsCount, + ...rest, + } + }, } export default formatter diff --git a/packages/ckb-sdk-rpc/types/rpc/index.d.ts b/packages/ckb-sdk-rpc/types/rpc/index.d.ts index f19ad13f..9500e5f2 100644 --- a/packages/ckb-sdk-rpc/types/rpc/index.d.ts +++ b/packages/ckb-sdk-rpc/types/rpc/index.d.ts @@ -224,5 +224,11 @@ declare module RPC { export interface FeeRate { fee_rate: Number } + + export interface CapacityByLockHash { + block_number: BlockNumber + capacity: Capacity + cells_count: Number + } } /* eslint-enable camelcase */ diff --git a/packages/ckb-types/index.d.ts b/packages/ckb-types/index.d.ts index bdf0e258..e45365d1 100644 --- a/packages/ckb-types/index.d.ts +++ b/packages/ckb-types/index.d.ts @@ -383,4 +383,10 @@ declare namespace CKBComponents { export interface RawTransactionToSign extends Omit { witnesses: (WitnessArgs | Witness)[] } + + export interface CapacityByLockHash { + blockNumber: BlockNumber + capacity: Capacity + cellsCount: Number + } } From 9f485f3db58382495fbf9cbadc0f9fd089872850 Mon Sep 17 00:00:00 2001 From: Keith Date: Thu, 2 Jan 2020 12:10:09 +0800 Subject: [PATCH 4/5] chore: update package versions and changelogs --- CHANGELOG.md | 11 +++++++++++ lerna.json | 2 +- packages/ckb-sdk-core/CHANGELOG.md | 8 ++++++++ packages/ckb-sdk-core/package.json | 8 ++++---- packages/ckb-sdk-rpc/CHANGELOG.md | 11 +++++++++++ packages/ckb-sdk-rpc/__tests__/ckb-rpc-helpers.js | 4 ++-- packages/ckb-sdk-rpc/package.json | 6 +++--- packages/ckb-sdk-utils/CHANGELOG.md | 8 ++++++++ packages/ckb-sdk-utils/package.json | 4 ++-- packages/ckb-types/CHANGELOG.md | 11 +++++++++++ packages/ckb-types/package.json | 2 +- 11 files changed, 62 insertions(+), 13 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 4a4fd323..c979b3c8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,17 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [0.26.4](https://github.com/nervosnetwork/ckb-sdk-js/compare/v0.26.3...v0.26.4) (2020-01-02) + + +### Features + +* **rpc:** add the new rpc method of get_capacity_by_lock_hash ([9628084](https://github.com/nervosnetwork/ckb-sdk-js/commit/9628084ba6111e2580d793a752992f45e142fcc5)) + + + + + ## [0.26.3](https://github.com/nervosnetwork/ckb-sdk-js/compare/v0.26.2...v0.26.3) (2019-12-23) **Note:** Version bump only for package ckb-sdk-js diff --git a/lerna.json b/lerna.json index 5b226164..65d17be3 100644 --- a/lerna.json +++ b/lerna.json @@ -2,5 +2,5 @@ "packages": [ "packages/*" ], - "version": "0.26.3" + "version": "0.26.4" } diff --git a/packages/ckb-sdk-core/CHANGELOG.md b/packages/ckb-sdk-core/CHANGELOG.md index 19236eee..435c838e 100644 --- a/packages/ckb-sdk-core/CHANGELOG.md +++ b/packages/ckb-sdk-core/CHANGELOG.md @@ -3,6 +3,14 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [0.26.4](https://github.com/nervosnetwork/ckb-sdk-js/compare/v0.26.3...v0.26.4) (2020-01-02) + +**Note:** Version bump only for package @nervosnetwork/ckb-sdk-core + + + + + ## [0.26.3](https://github.com/nervosnetwork/ckb-sdk-js/compare/v0.26.2...v0.26.3) (2019-12-23) **Note:** Version bump only for package @nervosnetwork/ckb-sdk-core diff --git a/packages/ckb-sdk-core/package.json b/packages/ckb-sdk-core/package.json index 76e24038..ff51944b 100644 --- a/packages/ckb-sdk-core/package.json +++ b/packages/ckb-sdk-core/package.json @@ -1,6 +1,6 @@ { "name": "@nervosnetwork/ckb-sdk-core", - "version": "0.26.3", + "version": "0.26.4", "description": "JavaScript SDK for Nervos Network CKB Project", "author": "Nervos ", "homepage": "https://github.com/nervosnetwork/ckb-sdk-js#readme", @@ -31,9 +31,9 @@ "url": "https://github.com/nervosnetwork/ckb-sdk-js/issues" }, "dependencies": { - "@nervosnetwork/ckb-sdk-rpc": "0.26.3", - "@nervosnetwork/ckb-sdk-utils": "0.26.3", - "@nervosnetwork/ckb-types": "0.26.3" + "@nervosnetwork/ckb-sdk-rpc": "0.26.4", + "@nervosnetwork/ckb-sdk-utils": "0.26.4", + "@nervosnetwork/ckb-types": "0.26.4" }, "gitHead": "e963f874553075afcb2d666dc9d883c6d87bae94" } diff --git a/packages/ckb-sdk-rpc/CHANGELOG.md b/packages/ckb-sdk-rpc/CHANGELOG.md index 4bfc81e1..3019a665 100644 --- a/packages/ckb-sdk-rpc/CHANGELOG.md +++ b/packages/ckb-sdk-rpc/CHANGELOG.md @@ -3,6 +3,17 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [0.26.4](https://github.com/nervosnetwork/ckb-sdk-js/compare/v0.26.3...v0.26.4) (2020-01-02) + + +### Features + +* **rpc:** add the new rpc method of get_capacity_by_lock_hash ([9628084](https://github.com/nervosnetwork/ckb-sdk-js/commit/9628084ba6111e2580d793a752992f45e142fcc5)) + + + + + ## [0.26.3](https://github.com/nervosnetwork/ckb-sdk-js/compare/v0.26.2...v0.26.3) (2019-12-23) **Note:** Version bump only for package @nervosnetwork/ckb-sdk-rpc diff --git a/packages/ckb-sdk-rpc/__tests__/ckb-rpc-helpers.js b/packages/ckb-sdk-rpc/__tests__/ckb-rpc-helpers.js index b890e956..12113806 100644 --- a/packages/ckb-sdk-rpc/__tests__/ckb-rpc-helpers.js +++ b/packages/ckb-sdk-rpc/__tests__/ckb-rpc-helpers.js @@ -38,8 +38,8 @@ describe('ckb-rpc settings and helpers', () => { expect(rpc.node.httpsAgent).toBeDefined() }) - it('has 29 default rpc', () => { - expect(rpc.methods.length).toBe(29) + it('has 30 default rpc', () => { + expect(rpc.methods.length).toBe(30) }) it('set node url to http://test.localhost:8114', () => { diff --git a/packages/ckb-sdk-rpc/package.json b/packages/ckb-sdk-rpc/package.json index 812bf459..5bce1360 100644 --- a/packages/ckb-sdk-rpc/package.json +++ b/packages/ckb-sdk-rpc/package.json @@ -1,6 +1,6 @@ { "name": "@nervosnetwork/ckb-sdk-rpc", - "version": "0.26.3", + "version": "0.26.4", "description": "RPC module of @nervosnetwork/ckb-sdk-core", "author": "Nervos ", "homepage": "https://github.com/nervosnetwork/ckb-sdk-js/packages/ckb-rpc#readme", @@ -33,11 +33,11 @@ "url": "https://github.com/nervosnetwork/ckb-sdk-js/issues" }, "dependencies": { - "@nervosnetwork/ckb-sdk-utils": "0.26.3", + "@nervosnetwork/ckb-sdk-utils": "0.26.4", "axios": "0.19.0" }, "devDependencies": { - "@nervosnetwork/ckb-types": "0.26.3", + "@nervosnetwork/ckb-types": "0.26.4", "dotenv": "8.1.0" }, "gitHead": "e963f874553075afcb2d666dc9d883c6d87bae94" diff --git a/packages/ckb-sdk-utils/CHANGELOG.md b/packages/ckb-sdk-utils/CHANGELOG.md index 76c7c3ec..d121f1a1 100644 --- a/packages/ckb-sdk-utils/CHANGELOG.md +++ b/packages/ckb-sdk-utils/CHANGELOG.md @@ -3,6 +3,14 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [0.26.4](https://github.com/nervosnetwork/ckb-sdk-js/compare/v0.26.3...v0.26.4) (2020-01-02) + +**Note:** Version bump only for package @nervosnetwork/ckb-sdk-utils + + + + + ## [0.26.3](https://github.com/nervosnetwork/ckb-sdk-js/compare/v0.26.2...v0.26.3) (2019-12-23) **Note:** Version bump only for package @nervosnetwork/ckb-sdk-utils diff --git a/packages/ckb-sdk-utils/package.json b/packages/ckb-sdk-utils/package.json index 764138d3..3a5d4559 100644 --- a/packages/ckb-sdk-utils/package.json +++ b/packages/ckb-sdk-utils/package.json @@ -1,6 +1,6 @@ { "name": "@nervosnetwork/ckb-sdk-utils", - "version": "0.26.3", + "version": "0.26.4", "description": "Utils module of @nervosnetwork/ckb-sdk-core", "author": "Nervos ", "homepage": "https://github.com/nervosnetwork/ckb-sdk-js#readme", @@ -31,7 +31,7 @@ "url": "https://github.com/nervosnetwork/ckb-sdk-js/issues" }, "dependencies": { - "@nervosnetwork/ckb-types": "0.26.3", + "@nervosnetwork/ckb-types": "0.26.4", "blake2b-wasm": "2.1.0", "elliptic": "6.5.1", "jsbi": "3.1.1" diff --git a/packages/ckb-types/CHANGELOG.md b/packages/ckb-types/CHANGELOG.md index 44fcf7e4..1aacb181 100644 --- a/packages/ckb-types/CHANGELOG.md +++ b/packages/ckb-types/CHANGELOG.md @@ -3,6 +3,17 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [0.26.4](https://github.com/nervosnetwork/ckb-sdk-js/compare/v0.26.3...v0.26.4) (2020-01-02) + + +### Features + +* **rpc:** add the new rpc method of get_capacity_by_lock_hash ([9628084](https://github.com/nervosnetwork/ckb-sdk-js/commit/9628084ba6111e2580d793a752992f45e142fcc5)) + + + + + ## [0.26.3](https://github.com/nervosnetwork/ckb-sdk-js/compare/v0.26.2...v0.26.3) (2019-12-23) **Note:** Version bump only for package @nervosnetwork/ckb-types diff --git a/packages/ckb-types/package.json b/packages/ckb-types/package.json index 5a374e61..c312329e 100644 --- a/packages/ckb-types/package.json +++ b/packages/ckb-types/package.json @@ -1,6 +1,6 @@ { "name": "@nervosnetwork/ckb-types", - "version": "0.26.3", + "version": "0.26.4", "description": "Type module of @nervosnetwork/ckb-sdk-core", "author": "Nervos ", "homepage": "https://github.com/nervosnetwork/ckb-sdk-js#readme", From c1e494a60ef63b0c5984eea33943dcae971a9f35 Mon Sep 17 00:00:00 2001 From: Keith Date: Thu, 2 Jan 2020 13:45:48 +0800 Subject: [PATCH 5/5] chore: update lerna hashes --- packages/ckb-sdk-core/package.json | 2 +- packages/ckb-sdk-rpc/package.json | 2 +- packages/ckb-sdk-utils/package.json | 2 +- packages/ckb-types/package.json | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/ckb-sdk-core/package.json b/packages/ckb-sdk-core/package.json index ff51944b..c60b9ede 100644 --- a/packages/ckb-sdk-core/package.json +++ b/packages/ckb-sdk-core/package.json @@ -35,5 +35,5 @@ "@nervosnetwork/ckb-sdk-utils": "0.26.4", "@nervosnetwork/ckb-types": "0.26.4" }, - "gitHead": "e963f874553075afcb2d666dc9d883c6d87bae94" + "gitHead": "9f485f3db58382495fbf9cbadc0f9fd089872850" } diff --git a/packages/ckb-sdk-rpc/package.json b/packages/ckb-sdk-rpc/package.json index 5bce1360..54326e88 100644 --- a/packages/ckb-sdk-rpc/package.json +++ b/packages/ckb-sdk-rpc/package.json @@ -40,5 +40,5 @@ "@nervosnetwork/ckb-types": "0.26.4", "dotenv": "8.1.0" }, - "gitHead": "e963f874553075afcb2d666dc9d883c6d87bae94" + "gitHead": "9f485f3db58382495fbf9cbadc0f9fd089872850" } diff --git a/packages/ckb-sdk-utils/package.json b/packages/ckb-sdk-utils/package.json index 3a5d4559..4b774f43 100644 --- a/packages/ckb-sdk-utils/package.json +++ b/packages/ckb-sdk-utils/package.json @@ -41,5 +41,5 @@ "@types/elliptic": "6.4.8", "@types/utf8": "2.1.6" }, - "gitHead": "e963f874553075afcb2d666dc9d883c6d87bae94" + "gitHead": "9f485f3db58382495fbf9cbadc0f9fd089872850" } diff --git a/packages/ckb-types/package.json b/packages/ckb-types/package.json index c312329e..ff3ffafa 100644 --- a/packages/ckb-types/package.json +++ b/packages/ckb-types/package.json @@ -23,5 +23,5 @@ "scripts": { "doc": "../../node_modules/.bin/typedoc --out docs ./index.d.ts --mode modules --includeDeclarations --excludeExternals --ignoreCompilerErrors --theme default --readme README.md" }, - "gitHead": "e963f874553075afcb2d666dc9d883c6d87bae94" + "gitHead": "9f485f3db58382495fbf9cbadc0f9fd089872850" }