Skip to content

Commit

Permalink
feat: ckb2021 changes (#169)
Browse files Browse the repository at this point in the history
* feat: ckb2021 changes

* feat(base): Update ckb core to v0.100.0

* fix: Update OutputsValidator

* feat: supported new full address format

* test: supported new full address format

* test: invalid hash type

* fix: invalid predefined validation

* feat: friendly for ts autocomplete

* feat: acp into short_id

* style: prettier

* fix: pre-compute pow bigint to compatible with some bundles

* refactor: refactor address format with TS

* style: prettier

* chore: update workspace version

* chore: upgrade ckb-js-toolkit version to ckb2021

* 0.18.0-rc2

* 0.18.0-rc2

* chore: use https when publishing to be more secure

* chore: update deps

* fix: missing hash_type data1

* feat: added encodeToAddress

the `generateAddress` is deprecated , lumos will remove it in the future

* feat: deprecated CKB2019 address related config

* fix: uncle_hash to extra_hash

* chore: skip lint and fmt in exmaple

* chore: update lerna version

* v0.18.0-rc3

* fix: keep the deprecated APIs behavior

* fix: independent version

* v0.18.0-rc4

* add toolkit files

* change toolkit dep in base, ckb-indexer, common-scripts

* integrate toolkit into ckb2021

* add tools page

* feat(website): fix lumos require path

* chore(website): fix webpack not include polyfills for node.js core modules by default error

* feat(website): add buffer support and fix lumos import path

* chore(website): update yarn lock

* chore: remove useless dependencie

* feat(website): delete useless sidebar meun

* docs: integrate API docs into website

* test: update test cases

* chore: append docusaurus to workspace

* fix(website): website build error cause wrong lumos dependence

* chore(website): add fmt and lint script

* chore: update dependencies

* style: prettier

* fix: website build failed

* refactor(docusaurus): more ts types for components

* feat(website):add pw lock ,cheque and omni lock named lock

* refactor(website): use ts type instand "as"

* chore: merge develop into ckb2021

* chore: publish packages only

* v0.18.0-rc5

* revert: workspace wrong for docusaurus

* fix(docusaurus): wrong lumos version

* fix(examples): examples run lint error

* ci: add publish ckb2021 workflow

* test(ckb-indexer): download ckb-indexer 0.3.2 before test ckb2021

* ci: remove ckb-indexer download and start

* chore: add bi dependency to testkit

* ci(ckb-indexer): fix ckb2021 test

* ci: remove set ckb-indexer version step

* test(ckb-indexer): get ckb indexer version from indexer class

* fix(testkit): wrong private and version setting in package.json

* fix(ckb-indexer): wrong testkit dependency version

* fix: sync dependencies version

* test(helper): remove unused API

* chore: update dependencies

* refactor!: remove deprecated CKB2021 API

* test(config-manager): test uncovered

* chore: publish 0.18.0-rc6

* chore: update dependencies

* chore: release 0.18.0-rc7

* chore(examples): change version

* chore: ckb2021 as latest version

* test: ignore codegen files

* chore: publish only merged

* refactor: remove unuse website and workflow file (#346)

* chore: bump version

* chore: bump version to 0.18.0

* chore: fix docusaurus version to avoid error

* chore: update codecov@v2 to v3

* chore: install example deps on demand

Co-authored-by: classicalliu <[email protected]>
Co-authored-by: homura <[email protected]>
Co-authored-by: beiqian <[email protected]>
Co-authored-by: wangximing <[email protected]>
  • Loading branch information
5 people authored Jul 19, 2022
1 parent c967aa6 commit 732d60f
Show file tree
Hide file tree
Showing 63 changed files with 8,315 additions and 3,670 deletions.
8 changes: 6 additions & 2 deletions .github/.codecov.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ coverage:
# basic settings
target: auto
threshold: 1%
base: auto
base: auto

parsers:
gcov:
Expand All @@ -24,4 +24,8 @@ parsers:
comment:
layout: "reach,diff,flags,files,footer"
behavior: default
require_changes: no
require_changes: no

ignore:
- "packages/base/lib/core.js"
- "**/blockchain.umd.js"
2 changes: 1 addition & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:
- name: Run test with coverage
run: yarn test-coverage

- uses: codecov/codecov-action@v2
- uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }} # not required for public repos
files: ./coverage/cobertura-coverage.xml
Expand Down
3 changes: 1 addition & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
name: publish
on:
# When Release Pull Request is merged
pull_request:
push:
branches:
- develop
types: [closed]

permissions:
contents: write # for checkout and tag
Expand Down
8 changes: 4 additions & 4 deletions docusaurus/website/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "docusaurus",
"version": "0.17.0-rc8",
"version": "0.18.0",
"private": true,
"scripts": {
"docusaurus": "docusaurus",
Expand All @@ -18,9 +18,9 @@
},
"dependencies": {
"@ant-design/icons": "^4.7.0",
"@docusaurus/core": "^2.0.0-beta.15",
"@docusaurus/module-type-aliases": "^2.0.0-beta.15",
"@docusaurus/preset-classic": "^2.0.0-beta.15",
"@docusaurus/core": "2.0.0-beta.15",
"@docusaurus/module-type-aliases": "2.0.0-beta.15",
"@docusaurus/preset-classic": "2.0.0-beta.15",
"@mdx-js/react": "^1.6.21",
"antd": "^4.18.3",
"clsx": "^1.1.1",
Expand Down
3,334 changes: 1,951 additions & 1,383 deletions docusaurus/website/yarn.lock

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions examples/cardano-lock-namiwallet/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"private": true,
"name": "@lumos-examples/cardano-lock-namiwallet",
"version": "0.17.0",
"version": "0.18.0",
"description": "",
"main": "index.js",
"scripts": {
Expand All @@ -12,7 +12,7 @@
"author": "",
"license": "MIT",
"dependencies": {
"@ckb-lumos/lumos": "0.17.0",
"@ckb-lumos/lumos": "0.18.0",
"@emurgo/cardano-message-signing-asmjs": "^1.0.1",
"@emurgo/cardano-serialization-lib-asmjs": "^10.0.4",
"@types/react": "^17.0.34",
Expand Down
4 changes: 2 additions & 2 deletions examples/omni-lock-metamask/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"private": true,
"name": "@lumos-examples/omni-lock-metamask",
"version": "0.17.0",
"version": "0.18.0",
"description": "",
"main": "index.js",
"scripts": {
Expand All @@ -12,7 +12,7 @@
"author": "",
"license": "MIT",
"dependencies": {
"@ckb-lumos/lumos": "0.17.0",
"@ckb-lumos/lumos": "0.18.0",
"@types/react": "^17.0.34",
"@types/react-dom": "^17.0.11",
"react": "^17.0.2",
Expand Down
4 changes: 2 additions & 2 deletions examples/omni-lock-secp256k1-blake160/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"private": true,
"name": "@lumos-examples/omni-lock-own-signature",
"version": "0.17.0",
"version": "0.18.0",
"description": "",
"main": "index.js",
"scripts": {
Expand All @@ -12,7 +12,7 @@
"author": "",
"license": "MIT",
"dependencies": {
"@ckb-lumos/lumos": "0.17.0",
"@ckb-lumos/lumos": "0.18.0",
"@types/react": "^17.0.34",
"@types/react-dom": "^17.0.11",
"react": "^17.0.2",
Expand Down
17 changes: 17 additions & 0 deletions examples/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"name": "lumos-examples",
"private": true,
"version": "1.0.0",
"license": "MIT",
"workspaces": [
"../",
"../packages/*",
"./*"
],
"devDependencies": {
"parcel": "^2.2.1"
},
"alias": {
"process": false
}
}
4 changes: 2 additions & 2 deletions examples/pw-lock-metamask/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"private": true,
"name": "@lumos-examples/pw-lock-metamask",
"version": "0.17.0",
"version": "0.18.0",
"description": "",
"main": "index.js",
"scripts": {
Expand All @@ -12,7 +12,7 @@
"author": "",
"license": "MIT",
"dependencies": {
"@ckb-lumos/lumos": "0.17.0",
"@ckb-lumos/lumos": "0.18.0",
"@types/react": "^17.0.34",
"@types/react-dom": "^17.0.11",
"keccak": "^3.0.1",
Expand Down
4 changes: 2 additions & 2 deletions examples/secp256k1-transfer/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"private": true,
"name": "@lumos-examples/secp256k1-transfer",
"version": "0.17.0",
"version": "0.18.0",
"description": "",
"main": "index.js",
"scripts": {
Expand All @@ -11,7 +11,7 @@
"author": "",
"license": "MIT",
"dependencies": {
"@ckb-lumos/lumos": "0.17.0",
"@ckb-lumos/lumos": "0.18.0",
"@types/react": "^17.0.34",
"@types/react-dom": "^17.0.11",
"react": "^17.0.2",
Expand Down
Loading

1 comment on commit 732d60f

@vercel
Copy link

@vercel vercel bot commented on 732d60f Jul 19, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

lumos-website – ./

lumos-website.vercel.app
lumos-website-git-develop-cryptape.vercel.app
lumos-website-cryptape.vercel.app

Please sign in to comment.