@ckb-ccc/core 2.0.0-next.0 → 2.0.0-next.1
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 +133 -1
- package/README.md +3 -3
- package/dist/advanced.d.mts +2 -2
- package/dist/advanced.mjs +1 -1
- package/{dist.commonjs/advancedBarrel-DNdhwiU0.d.ts → dist/advancedBarrel-DfFMFhdl.d.mts} +2790 -2237
- package/dist/advancedBarrel-DfFMFhdl.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-ONYEMVg5.mjs +7 -0
- package/dist/barrel-ONYEMVg5.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-CduZ1Js5.mjs +2 -0
- package/dist/transformers-CduZ1Js5.mjs.map +1 -0
- package/dist.commonjs/advanced.d.ts +2 -2
- package/dist.commonjs/advanced.js +1 -1
- package/{dist/advancedBarrel-BHwnMJqR.d.mts → dist.commonjs/advancedBarrel-Dl0mM9JO.d.ts} +2791 -2236
- package/dist.commonjs/advancedBarrel-Dl0mM9JO.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-HfgYMxP_.js +23 -0
- package/dist.commonjs/barrel-HfgYMxP_.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-BUlLwiyt.js +2 -0
- package/dist.commonjs/transformers-BUlLwiyt.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 +7 -5
- package/src/client/client.ts +83 -21
- package/src/client/clientPublicMainnet.advanced.ts +9 -0
- package/src/client/clientPublicMainnet.ts +75 -36
- package/src/client/clientPublicTestnet.advanced.ts +9 -0
- 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 +106 -29
- package/src/jsonRpc/transports/advanced.ts +0 -4
- package/src/jsonRpc/transports/factory.ts +12 -5
- package/src/jsonRpc/transports/fallback.ts +14 -6
- package/src/jsonRpc/transports/http.ts +19 -12
- package/src/jsonRpc/transports/index.ts +4 -0
- package/src/jsonRpc/transports/transport.ts +42 -6
- package/src/jsonRpc/transports/webSocket.ts +145 -40
- 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/psbt.ts +4 -2
- 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 +478 -0
- package/src/signer/jsonRpc/index.ts +2 -0
- package/src/signer/jsonRpc/network.ts +15 -0
- package/src/signer/jsonRpc/signer.ts +378 -0
- package/src/signer/jsonRpc/transformers.ts +71 -0
- package/src/signer/signer/index.ts +5 -13
- package/src/utils/abortSignal.ts +56 -0
- package/src/utils/constructor.ts +11 -0
- package/src/utils/index.ts +172 -5
- 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/src/utils/proxy.ts +165 -0
- package/tsdown.config.mts +1 -0
- package/dist/address.advanced-LxntWbev.mjs +0 -2
- package/dist/address.advanced-LxntWbev.mjs.map +0 -1
- package/dist/advancedBarrel-BHwnMJqR.d.mts.map +0 -1
- package/dist/barrel-C-BaV9Pe.mjs +0 -7
- package/dist/barrel-C-BaV9Pe.mjs.map +0 -1
- package/dist.commonjs/address.advanced-BqcYOpZn.js +0 -2
- package/dist.commonjs/address.advanced-BqcYOpZn.js.map +0 -1
- package/dist.commonjs/advancedBarrel-DNdhwiU0.d.ts.map +0 -1
- package/dist.commonjs/barrel-BBOmj4RJ.js +0 -21
- package/dist.commonjs/barrel-BBOmj4RJ.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, I as NUM_TO_HASH_TYPE, Jn as SignerJsonRpcInfoPayload, 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, Xn as SignerJsonRpcTransformers, Yn as SignerJsonRpcMessageToSign, _ 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, qa as BytesFromEncoding, qn as SignerJsonRpcInfo, 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-Dl0mM9JO.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-BUlLwiyt.js"),t=require("./advancedBarrel.js");exports.ADDRESS_BECH32_LIMIT=e.n,exports.AddressFormat=e.r,exports.CKB_BLAKE2B_PERSONAL=e.wr,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;
|