Skip to content

Commit

Permalink
Merge pull request #360 from nervosnetwork/rc/v0.22.0
Browse files Browse the repository at this point in the history
[ᚬmaster] Rc/v0.22.0
  • Loading branch information
Keith-CY committed Oct 5, 2019
2 parents a2cd08b + ad78116 commit 9aeec49
Show file tree
Hide file tree
Showing 56 changed files with 2,043 additions and 1,363 deletions.
36 changes: 36 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,42 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

# [0.22.0](https://github.com/nervosnetwork/ckb-sdk-js/compare/v0.21.1...v0.22.0) (2019-10-05)


### Features

* **address:** enable address to load cells and generate signed transactions ([2e5803c](https://github.com/nervosnetwork/ckb-sdk-js/commit/2e5803c))
* **cli:** deprive this repo of the ckb-cli ([2befcff](https://github.com/nervosnetwork/ckb-sdk-js/commit/2befcff))
* **core:** move the address module into the core module ([10dd017](https://github.com/nervosnetwork/ckb-sdk-js/commit/10dd017))
* **rpc:** update rpc signatures ([201901d](https://github.com/nervosnetwork/ckb-sdk-js/commit/201901d))
* **rpc:** use bigint instead of number in the interfaces of rpc methods ([c8d994b](https://github.com/nervosnetwork/ckb-sdk-js/commit/c8d994b))
* **type:** update the fields of BlockHeader ([55de626](https://github.com/nervosnetwork/ckb-sdk-js/commit/55de626))
* **type:** update the result of getCellsByLockHash method ([31eb97e](https://github.com/nervosnetwork/ckb-sdk-js/commit/31eb97e))
* **type:** update the structure of Epoch ([76770f4](https://github.com/nervosnetwork/ckb-sdk-js/commit/76770f4))
* **type:** update the type of args ([09d649a](https://github.com/nervosnetwork/ckb-sdk-js/commit/09d649a))
* **type:** update the type of witness ([71f53b0](https://github.com/nervosnetwork/ckb-sdk-js/commit/71f53b0))
* **utils:** update the interface of utils.parseAddress ([90feb91](https://github.com/nervosnetwork/ckb-sdk-js/commit/90feb91))


### BREAKING CHANGES

* **type:** replace difficulty with compactTarget in Epoch
* **type:**
1. remove unclesCount
2. merge witnessesRoot and transactionRoot
3. replace difficulty with compactTarget
* **type:** change the type of args from string[] to string
* **type:** change the type of witnes from { data: string[] } to string
* **rpc:** use bigint instead of number in the interfaces of rpc methods
* **utils:** remove the prefix from the parameter list of utils.parseAddress
* **core:** move the address module into the core module
* **type:** update the result of getCellsByLockHash method





## [0.21.1](https://github.com/nervosnetwork/ckb-sdk-js/compare/v0.21.0...v0.21.1) (2019-09-24)


Expand Down
19 changes: 0 additions & 19 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,25 +75,6 @@ $ yarn add @nervosnetwork/ckb-sdk-core # install the SDK into your project

This SDK includes several modules:

<details>
<summary>
Address <a href="https://github.com/nervosnetwork/ckb-sdk-js/tree/develop/packages/ckb-sdk-address" alt="address">Code</a>
</summary>
<dd>

Used to create an address object, whose value is the address we are going to use.

Default `address algorithm` is the `pubkeyToAddress` in utils module, which generates address in bech32 format.

Default rule to generate the address from a public key is:

- Blake160(public key): blake2b(public key) then trauncate it for fist 20 bytes.
- Specify options used: Address Type, Address Bin Index, Prefix. The options will be explained in an RFC.
- Bech32 the blake160ed public key with specified options: bech32Address(blake160Pubkey, {prefix, type, binIndex})

</dd>
</details>

<details>
<summary>
RPC <a href="https://github.com/nervosnetwork/ckb-sdk-js/tree/develop/packages/ckb-sdk-rpc" alt="rpc">Code</a>
Expand Down
2 changes: 1 addition & 1 deletion lerna.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@
"packages": [
"packages/*"
],
"version": "0.21.1"
"version": "0.22.0"
}
178 changes: 0 additions & 178 deletions packages/ckb-cli/CHANGELOG.md

This file was deleted.

70 changes: 0 additions & 70 deletions packages/ckb-cli/README.md

This file was deleted.

48 changes: 0 additions & 48 deletions packages/ckb-cli/package.json

This file was deleted.

Loading

0 comments on commit 9aeec49

Please sign in to comment.