Skip to content

Commit

Permalink
feat!: support for CKB2023 (#527)
Browse files Browse the repository at this point in the history
  • Loading branch information
homura authored Nov 23, 2023
1 parent 33404ac commit 7160760
Show file tree
Hide file tree
Showing 61 changed files with 1,759 additions and 608 deletions.
5 changes: 5 additions & 0 deletions .changeset/old-houses-smell.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@ckb-lumos/rpc": minor
---

`unknown` and `rejected` are available in the `TransactionWithStatus`
5 changes: 5 additions & 0 deletions .changeset/small-trees-appear.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@ckb-lumos/rpc": minor
---

Supporting CKB2023, please check out [nervosnetwork/ckb#3980](https://github.com/nervosnetwork/ckb/pull/3980) and [nervosnetwork/ckb#3963](https://github.com/nervosnetwork/ckb/pull/3963) for more details
5 changes: 5 additions & 0 deletions .changeset/ten-keys-argue.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@ckb-lumos/rpc": minor
---

Supporting different return values when passing in different verbosity on `getBlock`, `getBlockByNumber`, `getHeader` and `getHeaderByNumber` with typescript
48 changes: 48 additions & 0 deletions .github/workflows/canary-ckb2023.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
name: Canary-CKB2023
on:
push:
branches:
- ckb2023

permissions:
contents: write

jobs:
canary:
runs-on: ubuntu-latest
steps:
- name: Clone repository
uses: actions/checkout@v3

- name: Install dependencies
uses: ./.github/actions/install-deps

- name: Setup .npmrc file
uses: actions/setup-node@v3
with:
registry-url: "https://registry.npmjs.org"

- name: Canary release
run: |
npx changeset pre exit || true
npx changeset version --snapshot ckb2023-$(git log -1 --pretty=format:%h)
pnpm -r publish --no-git-checks --tag ckb2023
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Generate commit comment
id: commit-comment
run: |
result="$(node scripts/canary-commit-comment.cjs)"
delimiter="$(openssl rand -hex 8)"
echo "result<<$delimiter" >> $GITHUB_OUTPUT
echo "$result" >> $GITHUB_OUTPUT
echo "$delimiter" >> $GITHUB_OUTPUT
- name: Create commit comment
uses: peter-evans/commit-comment@v2
with:
body: ${{ steps.commit-comment.outputs.result }}
token: ${{ secrets.GITHUB_TOKEN }}
1 change: 1 addition & 0 deletions commitlint.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ const scopeEnumValues = [
"hd-cache",
"helpers",
"indexer",
"light-client",
"lumos",
"rpc",
"sql-indexer",
Expand Down
2 changes: 1 addition & 1 deletion 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.20.0",
"version": "0.21.0-next.0",
"description": "",
"main": "index.js",
"scripts": {
Expand Down
13 changes: 0 additions & 13 deletions examples/omni-lock-metamask/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,18 +17,5 @@
"@types/react-dom": "^18.0.9",
"react": "18.2.0",
"react-dom": "18.2.0"
},
"devDependencies": {
"parcel": "^2.9.3",
"buffer": "^5.5.0",
"crypto-browserify": "^3.12.0",
"events": "^3.1.0",
"path-browserify": "^1.0.0",
"process": "^0.11.10",
"stream-browserify": "^3.0.0",
"string_decoder": "^1.3.0"
},
"alias": {
"process": false
}
}
Loading

2 comments on commit 7160760

@github-actions
Copy link
Contributor

Choose a reason for hiding this comment

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

🚀 New canary release: 0.0.0-canary-7160760-20231123121110

npm install @ckb-lumos/[email protected]

@vercel
Copy link

@vercel vercel bot commented on 7160760 Nov 23, 2023

Choose a reason for hiding this comment

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

Please sign in to comment.