@ckb-ccc/core 1.19.0 → 1.20.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +45 -0
- package/dist/advanced.d.mts +2 -2
- package/dist/advanced.mjs +1 -1
- package/{dist.commonjs/advancedBarrel-B565UuhW.d.ts → dist/advancedBarrel-CZxkR1dk.d.mts} +2501 -2121
- package/dist/advancedBarrel-CZxkR1dk.d.mts.map +1 -0
- package/dist/advancedBarrel.d.mts +2 -2
- package/dist/advancedBarrel.mjs +1 -1
- package/dist/advancedBarrel.mjs.map +1 -1
- package/dist/barrel-CqiwnGqc.mjs +7 -0
- package/dist/barrel-CqiwnGqc.mjs.map +1 -0
- package/dist/barrel.d.mts +2 -2
- package/dist/barrel.mjs +1 -1
- package/dist/index.d.mts +2 -2
- package/dist/index.mjs +1 -1
- package/dist/transformers-BJyj6caX.mjs +2 -0
- package/dist/transformers-BJyj6caX.mjs.map +1 -0
- package/dist.commonjs/advanced.d.ts +2 -2
- package/dist.commonjs/advanced.js +1 -1
- package/{dist/advancedBarrel-mPY1Rl-S.d.mts → dist.commonjs/advancedBarrel-Czsr2VlG.d.ts} +2502 -2120
- package/dist.commonjs/advancedBarrel-Czsr2VlG.d.ts.map +1 -0
- package/dist.commonjs/advancedBarrel.d.ts +2 -2
- package/dist.commonjs/advancedBarrel.js +1 -1
- package/dist.commonjs/advancedBarrel.js.map +1 -1
- package/dist.commonjs/barrel-BCS94_-c.js +23 -0
- package/dist.commonjs/barrel-BCS94_-c.js.map +1 -0
- package/dist.commonjs/barrel.d.ts +2 -2
- package/dist.commonjs/barrel.js +1 -1
- package/dist.commonjs/index.d.ts +2 -2
- package/dist.commonjs/index.js +1 -1
- package/dist.commonjs/{rolldown-runtime-DWNI8pZO.js → rolldown-runtime-Chgba0Kb.js} +1 -1
- package/dist.commonjs/transformers-Cue1Z8Up.js +2 -0
- package/dist.commonjs/transformers-Cue1Z8Up.js.map +1 -0
- package/package.json +8 -7
- package/src/advancedBarrel.ts +1 -0
- package/src/bytes/advanced.ts +1 -6
- package/src/bytes/index.ts +37 -10
- package/src/ckb/transaction.ts +5 -5
- package/src/client/client.ts +75 -19
- package/src/client/clientPublicMainnet.ts +75 -36
- package/src/client/clientPublicTestnet.ts +75 -36
- package/src/client/jsonRpc/client.ts +77 -30
- package/src/client/jsonRpc/transformers.ts +4 -4
- package/src/jsonRpc/index.ts +1 -0
- package/src/jsonRpc/requestor.ts +74 -21
- package/src/jsonRpc/transports/advanced.ts +0 -4
- package/src/jsonRpc/transports/factory.ts +12 -5
- package/src/jsonRpc/transports/fallback.ts +9 -5
- package/src/jsonRpc/transports/http.ts +21 -17
- package/src/jsonRpc/transports/index.ts +4 -0
- package/src/jsonRpc/transports/transport.ts +32 -6
- package/src/jsonRpc/transports/webSocket.ts +67 -20
- package/src/keystore/index.ts +3 -3
- package/src/molecule/codec.ts +20 -17
- package/src/signer/advanced.ts +1 -0
- package/src/signer/btc/verify.ts +2 -2
- package/src/signer/ckb/secp256k1Signing.ts +3 -3
- package/src/signer/doge/signerDoge.ts +1 -1
- package/src/signer/doge/signerDogePrivateKey.ts +1 -1
- package/src/signer/index.ts +1 -0
- package/src/signer/jsonRpc/handler.ts +217 -0
- package/src/signer/jsonRpc/index.ts +2 -0
- package/src/signer/jsonRpc/network.ts +15 -0
- package/src/signer/jsonRpc/signer.ts +181 -0
- package/src/signer/jsonRpc/transformers.ts +67 -0
- package/src/signer/signer/index.ts +5 -13
- package/src/utils/abortSignal.ts +42 -0
- package/src/utils/index.ts +2 -0
- package/src/utils/owner/aggregated.ts +56 -0
- package/src/utils/owner/index.ts +4 -0
- package/src/utils/owner/owner.ts +141 -0
- package/src/utils/owner/refCount.ts +78 -0
- package/src/utils/owner/unique.ts +30 -0
- package/tsdown.config.mts +1 -0
- package/dist/address.advanced-Cka_9tcR.mjs +0 -2
- package/dist/address.advanced-Cka_9tcR.mjs.map +0 -1
- package/dist/advancedBarrel-mPY1Rl-S.d.mts.map +0 -1
- package/dist/barrel-DsK2p-Rh.mjs +0 -7
- package/dist/barrel-DsK2p-Rh.mjs.map +0 -1
- package/dist.commonjs/address.advanced-BTrmYDic.js +0 -2
- package/dist.commonjs/address.advanced-BTrmYDic.js.map +0 -1
- package/dist.commonjs/advancedBarrel-B565UuhW.d.ts.map +0 -1
- package/dist.commonjs/barrel-D8_wJLfr.js +0 -23
- package/dist.commonjs/barrel-D8_wJLfr.js.map +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,50 @@
|
|
|
1
1
|
# @ckb-ccc/core
|
|
2
2
|
|
|
3
|
+
## 1.20.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#498](https://github.com/ckb-devrel/ccc/pull/498) [`6cfe9e1`](https://github.com/ckb-devrel/ccc/commit/6cfe9e1db55e520cf4347b45b704df90f7dfe331) Thanks [@Hanssen0](https://github.com/Hanssen0)! - feat(core): add `Owner.map` and `OwnerAggregated`
|
|
8
|
+
|
|
9
|
+
- [#498](https://github.com/ckb-devrel/ccc/pull/498) [`88c8df6`](https://github.com/ckb-devrel/ccc/commit/88c8df68d75b36d7adf0cfb8598091056ac0c798) Thanks [@Hanssen0](https://github.com/Hanssen0)! - feat(core): add ownership-aware `open` APIs for JSON-RPC clients and transports
|
|
10
|
+
|
|
11
|
+
- [#496](https://github.com/ckb-devrel/ccc/pull/496) [`095fb8f`](https://github.com/ckb-devrel/ccc/commit/095fb8fc754ba54e89aec8c3e58b88b6c373ec2a) Thanks [@Hanssen0](https://github.com/Hanssen0)! - feat(core): json rpc id can be string
|
|
12
|
+
|
|
13
|
+
- [#503](https://github.com/ckb-devrel/ccc/pull/503) [`eff7117`](https://github.com/ckb-devrel/ccc/commit/eff7117b84b008ac9b7835d355a92f85a19c634e) Thanks [@Hanssen0](https://github.com/Hanssen0)! - feat(core): add `SignerJsonRpc` and `buildSignerJsonRpcHandler` for remote
|
|
14
|
+
signers, plus an `AbortSignal.any` compatibility helper.
|
|
15
|
+
|
|
16
|
+
- [#487](https://github.com/ckb-devrel/ccc/pull/487) [`5f2a6ab`](https://github.com/ckb-devrel/ccc/commit/5f2a6ab0a41b9b0c819c7fc62d6eb0b22a8288e6) Thanks [@Hanssen0](https://github.com/Hanssen0)! - feat(core): improve JSON-RPC transport types and cleanup
|
|
17
|
+
|
|
18
|
+
Clear HTTP/WebSocket request timers and pending state.
|
|
19
|
+
|
|
20
|
+
- [#498](https://github.com/ckb-devrel/ccc/pull/498) [`4fabb6a`](https://github.com/ckb-devrel/ccc/commit/4fabb6afbd58aee7d4bfb792660f82fe673ffbb9) Thanks [@Hanssen0](https://github.com/Hanssen0)! - feat(core): add `OwnerRefCount` for shared resource ownership
|
|
21
|
+
|
|
22
|
+
- [#497](https://github.com/ckb-devrel/ccc/pull/497) [`235cd97`](https://github.com/ckb-devrel/ccc/commit/235cd9788543e300e4dceef20ad664a4666feba2) Thanks [@Hanssen0](https://github.com/Hanssen0)! - feat(core)!: replace `Buffer`-based byte encoding with `uint8array-extras`
|
|
23
|
+
|
|
24
|
+
- Remove the legacy `ascii`, `binary`, `latin1`, `ucs2`, and `utf16le` encodings
|
|
25
|
+
- Use consistent strict validation for implicit and explicit hex input
|
|
26
|
+
|
|
27
|
+
- [#498](https://github.com/ckb-devrel/ccc/pull/498) [`463846d`](https://github.com/ckb-devrel/ccc/commit/463846d99e7123846286b3c6a9811b75e5a58437) Thanks [@Hanssen0](https://github.com/Hanssen0)! - feat(core): add `Owner` and `OwnerUnique` for explicit resource ownership
|
|
28
|
+
|
|
29
|
+
- [#494](https://github.com/ckb-devrel/ccc/pull/494) [`f6aafb2`](https://github.com/ckb-devrel/ccc/commit/f6aafb2886ad747fed24e218f9b9b54e15071ee9) Thanks [@Hanssen0](https://github.com/Hanssen0)! - refactor(core): rename JSON-RPC transport APIs with the `JsonRpcTransport` prefix
|
|
30
|
+
|
|
31
|
+
- `Transport` is now `JsonRpcTransport`
|
|
32
|
+
- `TransportHttp` is now `JsonRpcTransportHttp`
|
|
33
|
+
- `TransportWebSocket` is now `JsonRpcTransportWebSocket`
|
|
34
|
+
- `TransportFallback` is now `JsonRpcTransportFallback`
|
|
35
|
+
|
|
36
|
+
### Patch Changes
|
|
37
|
+
|
|
38
|
+
- [#516](https://github.com/ckb-devrel/ccc/pull/516) [`1c74033`](https://github.com/ckb-devrel/ccc/commit/1c74033df94fc11b61296c6fc00e9955ff602c72) Thanks [@Hanssen0](https://github.com/Hanssen0)! - Fix DAO claim epoch calculation when the deposit and withdrawal epoch fractions are equal.
|
|
39
|
+
|
|
40
|
+
- [#489](https://github.com/ckb-devrel/ccc/pull/489) [`cdc5b1a`](https://github.com/ckb-devrel/ccc/commit/cdc5b1ac13ce73fa60d79b90cb0400f860f93f27) Thanks [@github-actions](https://github.com/apps/github-actions)! - perf([#495](https://github.com/ckb-devrel/ccc/issues/495)): replace `Uint8Array.slice` with `subarray`
|
|
41
|
+
|
|
42
|
+
## 1.19.1
|
|
43
|
+
|
|
44
|
+
### Patch Changes
|
|
45
|
+
|
|
46
|
+
- [#485](https://github.com/ckb-devrel/ccc/pull/485) [`9b5e9c6`](https://github.com/ckb-devrel/ccc/commit/9b5e9c6439f0bbb4c24f9e8bd99e94c3c374dff1) Thanks [@Hanssen0](https://github.com/Hanssen0)! - feat(connector): expose selectable wallet networks as separate signers
|
|
47
|
+
|
|
3
48
|
## 1.19.0
|
|
4
49
|
|
|
5
50
|
### Minor Changes
|
package/dist/advanced.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { A as
|
|
2
|
-
export { ADDRESS_BECH32_LIMIT, AddressFormat, BytesFromEncoding, CKB_BLAKE2B_PERSONAL, CellRecord, ClientCollectableSearchKeyFilterLike, ClientCollectableSearchKeyLike, DEFAULT_CONFIRMED_BLOCK_TIME, DEFAULT_MAX_FEE_RATE, DEFAULT_MIN_FEE_RATE, DEP_TYPES, DEP_TYPE_TO_NUM, HASH_TYPES, HASH_TYPE_TO_NUM, JsonRpcBlock, JsonRpcBlockHeader, JsonRpcBlockUncle, JsonRpcCellDep, JsonRpcCellInput, JsonRpcCellOutput, JsonRpcDepType, JsonRpcHashType, JsonRpcIndexerFindTransactionsGroupedResponse, JsonRpcIndexerFindTransactionsResponse, JsonRpcIndexerSearchKey, JsonRpcIndexerSearchKeyFilter, JsonRpcIndexerSearchKeyTransaction, JsonRpcOutPoint,
|
|
1
|
+
import { A as filterScriptByLenRange, B as addressPayloadFromString, C as CellRecord, D as filterData, Dn as DEFAULT_MIN_FEE_RATE, E as filterCell, En as DEFAULT_MAX_FEE_RATE, F as HASH_TYPE_TO_NUM, Gn as SignerJsonRpcMessageToSign, I as NUM_TO_HASH_TYPE, Ia as BytesFromEncoding, Kn as SignerJsonRpcTransformers, L as ADDRESS_BECH32_LIMIT, M as DEP_TYPE_TO_NUM, N as NUM_TO_DEP_TYPE, O as filterNumByRange, On as clientSearchKeyRangeFrom, P as HASH_TYPES, R as AddressFormat, S as MAINNET_SCRIPTS, T as MapLru, Tn as ClientCollectableSearchKeyLike, Un as SignerJsonRpcInfo, Wn as SignerJsonRpcInfoPayload, _ as JsonRpcIndexerSearchKeyTransaction, a as JsonRpcBlock, b as JsonRpcTransaction, c as JsonRpcCellDep, d as JsonRpcDepType, f as JsonRpcHashType, g as JsonRpcIndexerSearchKeyFilter, h as JsonRpcIndexerSearchKey, i as JsonRpcTransformers, j as DEP_TYPES, k as filterScript, l as JsonRpcCellInput, m as JsonRpcIndexerFindTransactionsResponse, n as jsonRpcTransportFromUri, o as JsonRpcBlockHeader, p as JsonRpcIndexerFindTransactionsGroupedResponse, r as CKB_BLAKE2B_PERSONAL, s as JsonRpcBlockUncle, t as advancedBarrel_d_exports, u as JsonRpcCellOutput, v as JsonRpcOutPoint, w as DEFAULT_CONFIRMED_BLOCK_TIME, wn as ClientCollectableSearchKeyFilterLike, x as TESTNET_SCRIPTS, y as JsonRpcScript, z as addressFromPayload } from "./advancedBarrel-CZxkR1dk.mjs";
|
|
2
|
+
export { ADDRESS_BECH32_LIMIT, AddressFormat, BytesFromEncoding, CKB_BLAKE2B_PERSONAL, CellRecord, ClientCollectableSearchKeyFilterLike, ClientCollectableSearchKeyLike, DEFAULT_CONFIRMED_BLOCK_TIME, DEFAULT_MAX_FEE_RATE, DEFAULT_MIN_FEE_RATE, DEP_TYPES, DEP_TYPE_TO_NUM, HASH_TYPES, HASH_TYPE_TO_NUM, JsonRpcBlock, JsonRpcBlockHeader, JsonRpcBlockUncle, JsonRpcCellDep, JsonRpcCellInput, JsonRpcCellOutput, JsonRpcDepType, JsonRpcHashType, JsonRpcIndexerFindTransactionsGroupedResponse, JsonRpcIndexerFindTransactionsResponse, JsonRpcIndexerSearchKey, JsonRpcIndexerSearchKeyFilter, JsonRpcIndexerSearchKeyTransaction, JsonRpcOutPoint, JsonRpcScript, JsonRpcTransaction, JsonRpcTransformers, MAINNET_SCRIPTS, MapLru, NUM_TO_DEP_TYPE, NUM_TO_HASH_TYPE, SignerJsonRpcInfo, SignerJsonRpcInfoPayload, SignerJsonRpcMessageToSign, SignerJsonRpcTransformers, TESTNET_SCRIPTS, addressFromPayload, addressPayloadFromString, advancedBarrel_d_exports as cccA, clientSearchKeyRangeFrom, filterCell, filterData, filterNumByRange, filterScript, filterScriptByLenRange, jsonRpcTransportFromUri };
|
package/dist/advanced.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{$ as e,
|
|
1
|
+
import{$ as e,H as t,Q as n,U as r,W as i,_ as a,a as o,bt as s,c,d as l,et as u,f as d,g as f,h as p,i as m,m as h,n as g,o as _,p as v,r as y,s as b,t as x,v as S,vt as C,yr as w,yt as T}from"./transformers-BJyj6caX.mjs";import{t as E}from"./advancedBarrel.mjs";export{g as ADDRESS_BECH32_LIMIT,y as AddressFormat,w as CKB_BLAKE2B_PERSONAL,d as DEFAULT_CONFIRMED_BLOCK_TIME,C as DEFAULT_MAX_FEE_RATE,T as DEFAULT_MIN_FEE_RATE,t as DEP_TYPES,r as DEP_TYPE_TO_NUM,n as HASH_TYPES,e as HASH_TYPE_TO_NUM,b as JsonRpcTransformers,l as MAINNET_SCRIPTS,v as MapLru,i as NUM_TO_DEP_TYPE,u as NUM_TO_HASH_TYPE,x as SignerJsonRpcTransformers,_ as TESTNET_SCRIPTS,m as addressFromPayload,o as addressPayloadFromString,E as cccA,s as clientSearchKeyRangeFrom,h as filterCell,p as filterData,f as filterNumByRange,a as filterScript,S as filterScriptByLenRange,c as jsonRpcTransportFromUri};
|