@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
|
@@ -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-Czsr2VlG.js";
|
|
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 };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./transformers-Cue1Z8Up.js"),t=require("./advancedBarrel.js");exports.ADDRESS_BECH32_LIMIT=e.n,exports.AddressFormat=e.r,exports.CKB_BLAKE2B_PERSONAL=e.yr,exports.DEFAULT_CONFIRMED_BLOCK_TIME=e.f,exports.DEFAULT_MAX_FEE_RATE=e.vt,exports.DEFAULT_MIN_FEE_RATE=e.yt,exports.DEP_TYPES=e.H,exports.DEP_TYPE_TO_NUM=e.U,exports.HASH_TYPES=e.Q,exports.HASH_TYPE_TO_NUM=e.$,exports.JsonRpcTransformers=e.s,exports.MAINNET_SCRIPTS=e.d,exports.MapLru=e.p,exports.NUM_TO_DEP_TYPE=e.W,exports.NUM_TO_HASH_TYPE=e.et,exports.SignerJsonRpcTransformers=e.t,exports.TESTNET_SCRIPTS=e.o,exports.addressFromPayload=e.i,exports.addressPayloadFromString=e.a,Object.defineProperty(exports,"cccA",{enumerable:!0,get:function(){return t.t}}),exports.clientSearchKeyRangeFrom=e.bt,exports.filterCell=e.m,exports.filterData=e.h,exports.filterNumByRange=e.g,exports.filterScript=e._,exports.filterScriptByLenRange=e.v,exports.jsonRpcTransportFromUri=e.c;
|