Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
95 commits
Select commit Hold shift + click to select a range
65f3506
chore: publish canary by pr comment
Hanssen0 Aug 14, 2025
705b27d
fix(core): avoid circular dependency
Hanssen0 Aug 14, 2025
b8a07c1
feat(core): `Signer.findCellsOnChain`
Hanssen0 Jun 20, 2025
7cd7696
feat(core): auto capacity completion
Hanssen0 Jun 14, 2025
e900c59
perf(core): optimize Transaction.completeFee
Hanssen0 Jun 14, 2025
4393803
feat(udt): `Udt.complete*` methods
Hanssen0 Aug 16, 2025
1c51782
docs: CONTRIBUTING.md
Hanssen0 Aug 17, 2025
2bfc53e
docs: pull request template
Hanssen0 Aug 17, 2025
eb1fdb3
fix(playground): some messages are not displyed
Hanssen0 Aug 17, 2025
b4f64ce
feat(core): multiple scripts for `SignerCkbScriptReadonly`
Hanssen0 Aug 17, 2025
e496560
feat(core): add `CellAny`
Hanssen0 Aug 16, 2025
5530fa9
feat(core): `reduce` and `reduceAsync` for `Iterable`
Hanssen0 Aug 17, 2025
b90cd5b
feat(mol): add support for fixed-size Union (#174)
phroi Aug 18, 2025
265af7d
fix: `prettier-vscode` doesn't work with `import`
Hanssen0 Aug 21, 2025
4675e6f
chore: move release branch from `master` to `release`
Hanssen0 Aug 21, 2025
5c24eb9
Merge branch 'release'
Hanssen0 Aug 22, 2025
698df9a
Merge branch 'releases/joy-id'
Hanssen0 Aug 22, 2025
638e5dc
fix(core)!: `getFeeRateStatistics` may returns `null` on devnet
Hanssen0 Aug 20, 2025
f547718
docs: fix images in README.md
Hanssen0 Aug 28, 2025
f82f9af
feat(core): default `Signer.prepareTransaction`
Hanssen0 Aug 17, 2025
d3695d1
Merge pull request #285 from ckb-devrel/release
Hanssen0 Aug 28, 2025
f52d761
Merge pull request #289 from ckb-devrel/release
Hanssen0 Aug 28, 2025
a789668
Merge pull request #300 from ckb-devrel/release
Hanssen0 Aug 29, 2025
99a2036
Revert "feat(udt): `Udt.complete*` methods"
Hanssen0 Sep 9, 2025
b96b7a6
Revert "feat: add RGB++ known scripts (RgbppLock, BtcTimeLock)"
Hanssen0 Sep 9, 2025
e2ce0a2
Merge branch 'release'
Hanssen0 Sep 9, 2025
f642cc5
feat(core): improve hex utils (#268)
phroi Sep 16, 2025
e413333
fix(core): Invalid Uint64 0x00: with redundant leading zeros.
Hanssen0 Sep 18, 2025
1070a7e
Merge branch `release` into `master`
Hanssen0 Sep 19, 2025
98e06ca
Merge branch `release` into `master`
Hanssen0 Sep 24, 2025
78f8588
Merge branch `release` into `master`
Hanssen0 Oct 1, 2025
3aa4425
chore: search manual proxy lock when signer isn't the proxy provider
ashuralyk Oct 16, 2025
d0af061
chore(release): bump packages version
github-actions[bot] Nov 21, 2025
5d4ad4e
feat(app): signature textarea for signing
Hanssen0 Nov 11, 2025
792ecc0
feat(rgbpp): implement network-aware JWT authentication for BTC Asset…
fghdotio Jul 29, 2025
a25497f
feat(rgbpp): add BTC address balance query interface to `RgbppBtcWallet`
fghdotio Jul 29, 2025
fef3e24
feat(playground): add RGB++ UDT issuance support
fghdotio Nov 19, 2025
f9b52fb
feat(playground): add RGB++ UDT issuance example and comprehensive guide
fghdotio Nov 26, 2025
fce9a70
refactor(rgbpp): migrate from shell to core dependencies and fix imports
fghdotio Nov 26, 2025
90b9290
fix(connector): resolve ESLint no-misused-promises error in setTimeou…
fghdotio Nov 26, 2025
28dfab1
feat(shell): integrate RGB++ protocol into shell package
fghdotio Nov 26, 2025
470b473
refactor(playground): update RGB++ integration
fghdotio Nov 26, 2025
3358203
chore: update pnpm-lock.yaml after rgbpp dependency changes
fghdotio Nov 26, 2025
b7392d8
fix(playground): correct mainnet address prefix check in RGB++ examples
fghdotio Nov 26, 2025
1480322
fix(rgbpp): fix typo
fghdotio Nov 26, 2025
ee04a44
fix(playground): update reference to CkbRgbppUnlockSigner
fghdotio Nov 26, 2025
0375cc3
refactor(playground): remove direct rgbpp dependency from execution e…
fghdotio Nov 26, 2025
ce15f60
fix(demo): correct CkbRgbppUnlockSigner class name spelling
fghdotio Nov 26, 2025
2221d9c
fix(playground): correct typo in RGB++ wallet creation error message
fghdotio Nov 26, 2025
ec1f097
fix(demo): resolve variable name shadowing in RGB++ UDT issuance
fghdotio Nov 26, 2025
83de9e3
refactor(rgbpp): enhance prepareUtxoSeal with robust retry mechanism
fghdotio Dec 2, 2025
9129f44
feat(btc): add SignPsbtOptions support for PSBT signing
fghdotio Nov 11, 2025
685b44c
feat(rgbpp): add SignPsbtOptions support and refactor to composition …
fghdotio Nov 11, 2025
9e97f88
refactor(btc): standardize PSBT API and improve type safety
fghdotio Nov 25, 2025
d335656
fix(rgbpp): resolve build errors and variable naming consistency
fghdotio Dec 2, 2025
c114284
fix(rgbpp): use duck typing instead of constructor.name for wallet de…
fghdotio Dec 3, 2025
7be409a
feat(rgbpp): add Xverse wallet support with automatic PSBT input dete…
fghdotio Dec 3, 2025
d03798e
refactor(xverse): extract psbt logic
fghdotio Dec 9, 2025
3379252
refactor(psbt): add unified sign+push flow and combined-wallet support
fghdotio Dec 9, 2025
a926111
refactor(rgbpp): use signAndBroadcast
fghdotio Dec 9, 2025
eab4987
docs(playground): update supported wallets
fghdotio Dec 9, 2025
ea7e626
chore: bump version of react
Hanssen0 Dec 13, 2025
f458ad0
chore(release): bump packages version
github-actions[bot] Dec 13, 2025
ef72b27
Merge branch `release` into `master`
Hanssen0 Dec 13, 2025
ca5514c
feat(rgbpp): add PublicKeyProvider system for P2TR PSBT inputs
fghdotio Dec 17, 2025
115e653
fix(rgbpp): add UTXO deduplication to prevent duplicate inputs
fghdotio Dec 17, 2025
585781f
refactor: migrate script management to use ccc.KnownScript
fghdotio Dec 17, 2025
d775270
refactor(rgbpp): remove signet network support
fghdotio Dec 17, 2025
9df1343
feat(rgbpp): add getRgbppScriptInfos method and fix async calls
fghdotio Dec 17, 2025
f179154
refactor(rgbpp): make transaction confirmation polling interval confi…
fghdotio Dec 22, 2025
a4b2ab5
refactor(rgbpp): refactor CkbRgbppUnlockSigner to use object paramete…
fghdotio Dec 22, 2025
c74aeca
Merge remote-tracking branch 'upstream/release' into feat/rgbpp-itera…
Dec 23, 2025
208fa66
feat(rgbpp): add linting and formatting support
Dec 23, 2025
15e8a28
refactor(rgbpp): refactor script management with provider pattern
Dec 24, 2025
1d98ace
feat(core): update RGB++ script configurations and remove Bitcoin Sig…
Dec 24, 2025
e50bb0e
feat(demo): add RGB++ xUDT transfer functionality
fghdotio Dec 30, 2025
2a24c87
refactor(rgbpp): reorganize bitcoin module directory structure
fghdotio Dec 30, 2025
88b6033
refactor(rgbpp): update import paths in rgbpp utils
fghdotio Dec 30, 2025
e89141d
fix(rgbpp): remove empty witness fields in CkbRgbppUnlockSigner
fghdotio Jan 6, 2026
22f3d51
feat(joy-id): address info in identity
Hanssen0 Sep 17, 2025
ef882bd
feat(core): `Signer.fromSignature`
Hanssen0 Sep 18, 2025
b3b3914
refactor(rgbpp): improve UDT example functions flexibility
fghdotio Jan 6, 2026
28c6673
fix(playground): remove `raw-loader` in `require.context` for turbopack
Hanssen0 Jan 7, 2026
6a3be47
fix: wrong capacity completion while deserializing transaction
Hanssen0 Jan 7, 2026
093fc3e
chore(release): bump packages version
github-actions[bot] Jan 8, 2026
f048ad8
Merge remote-tracking branch 'origin/release' into 'master'
Hanssen0 Jan 9, 2026
b4aa99f
fix(core): circular dependency due to btc.verify
Hanssen0 Jan 9, 2026
68b7147
chore(release): bump packages version
github-actions[bot] Jan 9, 2026
66ae81b
feat(core): Add `bytesLen` and `bytesLenUnsafe` utilities (#353)
phroi Jan 12, 2026
a96dec6
chore(core): bump nostr-lock mainnet cell deps
RetricSu Jan 15, 2026
3d11c1e
chore(release): bump packages version
github-actions[bot] Jan 15, 2026
99f815a
refactor(psbt): standardize btc signer interface and update dependencies
fghdotio Feb 4, 2026
a8d5cf3
feat(rgbpp): add playground RGB++ UDT issuance example, normalize BTC…
fghdotio Feb 4, 2026
50d657b
Merge remote-tracking branch 'origin/release'
Hanssen0 Feb 4, 2026
0113acc
Merge remote-tracking branch 'upstream/master' into feat/rgbpp-iteration
fghdotio Feb 4, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 0 additions & 6 deletions .changeset/curvy-baboons-sip.md

This file was deleted.

5 changes: 5 additions & 0 deletions .changeset/eighty-terms-cry.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@ckb-ccc/core": minor
---

Add `bytesLen` and `bytesLenUnsafe` utilities
6 changes: 6 additions & 0 deletions .changeset/fifty-planes-fetch.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
"@ckb-ccc/core": minor
---

feat(core): `Signer.fromSignature`

7 changes: 7 additions & 0 deletions .changeset/late-vans-juggle.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
"@ckb-ccc/core": major
"@ckb-ccc/joy-id": minor
---

feat(joy-id): address info in identity

5 changes: 5 additions & 0 deletions .changeset/shiny-ants-say.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@ckb-ccc/core": patch
---

`hexFrom` passthru normalized hex and `numToHex` enforce hex normalization
5 changes: 0 additions & 5 deletions .changeset/six-steaks-grab.md

This file was deleted.

5 changes: 5 additions & 0 deletions .changeset/sixty-games-scream.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@ckb-ccc/core": major
---

fix(core)!: `getFeeRateStatistics` may returns `null` on devnet
6 changes: 6 additions & 0 deletions .changeset/tangy-memes-sit.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
"@ckb-ccc/core": major
---

feat(core): `reduce` and `reduceAsync` for `Iterable`

6 changes: 0 additions & 6 deletions .changeset/weak-otters-dance.md

This file was deleted.

6 changes: 6 additions & 0 deletions .changeset/wise-news-admire.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
"@ckb-ccc/core": patch
---

fix(core): Invalid Uint64 0x00: with redundant leading zeros.

48 changes: 48 additions & 0 deletions packages/ccc/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,53 @@
# @ckb-ccc/ccc

## 1.1.25
### Patch Changes

- Updated dependencies []:
- @ckb-ccc/eip6963@1.0.32
- @ckb-ccc/joy-id@1.0.32
- @ckb-ccc/nip07@1.0.32
- @ckb-ccc/okx@1.0.32
- @ckb-ccc/rei@1.0.32
- @ckb-ccc/shell@1.1.25
- @ckb-ccc/uni-sat@1.0.32
- @ckb-ccc/utxo-global@1.0.32
- @ckb-ccc/xverse@1.0.32

## 1.1.24
### Patch Changes

- Updated dependencies []:
- @ckb-ccc/eip6963@1.0.31
- @ckb-ccc/joy-id@1.0.31
- @ckb-ccc/nip07@1.0.31
- @ckb-ccc/okx@1.0.31
- @ckb-ccc/rei@1.0.31
- @ckb-ccc/shell@1.1.24
- @ckb-ccc/uni-sat@1.0.31
- @ckb-ccc/utxo-global@1.0.31
- @ckb-ccc/xverse@1.0.31

## 1.1.23
### Patch Changes

- Updated dependencies []:
- @ckb-ccc/eip6963@1.0.30
- @ckb-ccc/joy-id@1.0.30
- @ckb-ccc/nip07@1.0.30
- @ckb-ccc/okx@1.0.30
- @ckb-ccc/rei@1.0.30
- @ckb-ccc/shell@1.1.23
- @ckb-ccc/uni-sat@1.0.30
- @ckb-ccc/utxo-global@1.0.30
- @ckb-ccc/xverse@1.0.30

## 1.1.22
### Patch Changes

- Updated dependencies []:
- @ckb-ccc/shell@1.1.22

## 1.1.21
### Patch Changes

Expand Down
2 changes: 1 addition & 1 deletion packages/ccc/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@ckb-ccc/ccc",
"version": "1.1.21",
"version": "1.1.25",
"description": "CCC - CKBer's Codebase. Common Chains Connector.",
"author": "Hanssen0 <hanssen0@hanssen0.com>",
"license": "MIT",
Expand Down
24 changes: 24 additions & 0 deletions packages/ckb-ccc/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,29 @@
# ckb-ccc

## 1.0.33
### Patch Changes

- Updated dependencies []:
- @ckb-ccc/ccc@1.1.25

## 1.0.32
### Patch Changes

- Updated dependencies []:
- @ckb-ccc/ccc@1.1.24

## 1.0.31
### Patch Changes

- Updated dependencies []:
- @ckb-ccc/ccc@1.1.23

## 1.0.30
### Patch Changes

- Updated dependencies []:
- @ckb-ccc/ccc@1.1.22

## 1.0.29
### Patch Changes

Expand Down
2 changes: 1 addition & 1 deletion packages/ckb-ccc/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ckb-ccc",
"version": "1.0.29",
"version": "1.0.33",
"description": "CCC - CKBer's Codebase. Common Chains Connector.",
"author": "Hanssen0 <hanssen0@hanssen0.com>",
"license": "MIT",
Expand Down
31 changes: 31 additions & 0 deletions packages/connector-react/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,36 @@
# @ckb-ccc/connector-react

## 1.0.34
### Patch Changes

- Updated dependencies []:
- @ckb-ccc/connector@1.0.33

## 1.0.33
### Patch Changes

- Updated dependencies []:
- @ckb-ccc/connector@1.0.32

## 1.0.32
### Patch Changes

- Updated dependencies []:
- @ckb-ccc/connector@1.0.31

## 1.0.31
### Patch Changes



- [#335](https://github.com/ckb-devrel/ccc/pull/335) [`ea7e626`](https://github.com/ckb-devrel/ccc/commit/ea7e626a81ad4fb78142f0d948843de84478debf) Thanks [@Hanssen0](https://github.com/Hanssen0)! - chore: bump version of react

## 1.0.30
### Patch Changes

- Updated dependencies []:
- @ckb-ccc/connector@1.0.30

## 1.0.29
### Patch Changes

Expand Down
4 changes: 2 additions & 2 deletions packages/connector-react/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@ckb-ccc/connector-react",
"version": "1.0.29",
"version": "1.0.34",
"description": "CCC - CKBer's Codebase. Common Chains Connector UI Component for React",
"author": "Hanssen0 <hanssen0@hanssen0.com>",
"license": "MIT",
Expand All @@ -25,7 +25,7 @@
},
"devDependencies": {
"@eslint/js": "^9.34.0",
"@types/react": "^19.1.12",
"@types/react": "^19.2.7",
"eslint": "^9.34.0",
"eslint-config-prettier": "^10.1.8",
"eslint-plugin-prettier": "^5.5.4",
Expand Down
24 changes: 24 additions & 0 deletions packages/connector/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,29 @@
# @ckb-ccc/connector

## 1.0.33
### Patch Changes

- Updated dependencies []:
- @ckb-ccc/ccc@1.1.25

## 1.0.32
### Patch Changes

- Updated dependencies []:
- @ckb-ccc/ccc@1.1.24

## 1.0.31
### Patch Changes

- Updated dependencies []:
- @ckb-ccc/ccc@1.1.23

## 1.0.30
### Patch Changes

- Updated dependencies []:
- @ckb-ccc/ccc@1.1.22

## 1.0.29
### Patch Changes

Expand Down
2 changes: 1 addition & 1 deletion packages/connector/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@ckb-ccc/connector",
"version": "1.0.29",
"version": "1.0.33",
"description": "CCC - CKBer's Codebase. Common Chains Connector UI",
"author": "Hanssen0 <hanssen0@hanssen0.com>",
"license": "MIT",
Expand Down
2 changes: 1 addition & 1 deletion packages/connector/src/signers/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ export class SignersController {
hostConnected(): void {
void this.refresh();
// Wait for plugins to be loaded
setTimeout(() => this.refresh(), 500);
setTimeout(() => void this.refresh(), 500);
}

hostDisconnected(): void {
Expand Down
21 changes: 21 additions & 0 deletions packages/core/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,26 @@
# @ckb-ccc/core

## 1.12.5
### Patch Changes



- [#354](https://github.com/ckb-devrel/ccc/pull/354) [`a96dec6`](https://github.com/ckb-devrel/ccc/commit/a96dec6d0517113391b0edc510f1af821a45d5a8) Thanks [@RetricSu](https://github.com/RetricSu)! - chore(core): bump nostr-lock mainnet cell deps

## 1.12.4
### Patch Changes



- [#350](https://github.com/ckb-devrel/ccc/pull/350) [`b4aa99f`](https://github.com/ckb-devrel/ccc/commit/b4aa99f1b87c1d14117a15fa1fcac6f9e60b43c1) Thanks [@Hanssen0](https://github.com/Hanssen0)! - fix(core): circular dependency due to btc.verify

## 1.12.3
### Patch Changes



- [#344](https://github.com/ckb-devrel/ccc/pull/344) [`6a3be47`](https://github.com/ckb-devrel/ccc/commit/6a3be477b40870dc40d491ce51e667f61f70965e) Thanks [@Hanssen0](https://github.com/Hanssen0)! - fix: wrong capacity completion while deserializing transaction

## 1.12.2
### Patch Changes

Expand Down
2 changes: 1 addition & 1 deletion packages/core/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@ckb-ccc/core",
"version": "1.12.2",
"version": "1.12.5",
"description": "Core of CCC - CKBer's Codebase",
"author": "Hanssen0 <hanssen0@hanssen0.com>",
"license": "MIT",
Expand Down
33 changes: 33 additions & 0 deletions packages/core/src/ckb/transaction.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -656,6 +656,15 @@ describe("Transaction", () => {
expect(cellOutput.capacity).toBe(1000n);
});

it("should not modify capacity when data is not provided", () => {
const cellOutput = ccc.CellOutput.from({
capacity: 0n,
lock,
});

expect(cellOutput.capacity).toBe(0n);
});

it("should calculate capacity automatically when capacity is 0", () => {
const outputData = "0x1234"; // 2 bytes
const cellOutput = ccc.CellOutput.from(
Expand Down Expand Up @@ -813,6 +822,30 @@ describe("Transaction", () => {
);
});

it("should automatically fill capacity considering outputData while deserialization", () => {
const outputsData = ["0x1234"];
const calculatedTx = ccc.Transaction.from({
outputs: [
{
lock,
},
],
outputsData,
});
calculatedTx.outputs[0].capacity = 0n;
const data = calculatedTx.toBytes();
expect(ccc.hexFrom(data)).toBe(
"0xb30000000c000000af000000a30000001c0000002000000024000000280000002c00000095000000000000000000000000000000000000006900000008000000610000001000000018000000610000000000000000000000490000001000000030000000310000009bd7e06f3ecf4be0f2fcd2188b23f1b9fcc88e5d4b65a8637b17723bbda3cce8011400000036053c1bbc237e164137c03664fe8384b2cf9b260e0000000800000002000000123404000000",
);
const tx = ccc.Transaction.fromBytes(data);

// Should use outputData for calculation
const expectedCapacity = 8 + lock.occupiedSize + 2;
expect(tx.outputs[0].capacity).toBe(
ccc.fixedPointFrom(expectedCapacity),
);
});

it("should handle empty outputsData array", () => {
const tx = ccc.Transaction.from({
outputs: [
Expand Down
Loading