@ckb-ccc/core 1.18.1 → 1.19.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.
Files changed (43) hide show
  1. package/CHANGELOG.md +13 -0
  2. package/dist/{address.advanced-Dw4qPDGb.mjs → address.advanced-Cka_9tcR.mjs} +2 -2
  3. package/dist/address.advanced-Cka_9tcR.mjs.map +1 -0
  4. package/dist/advanced.d.mts +1 -1
  5. package/dist/advanced.mjs +1 -1
  6. package/{dist.commonjs/advancedBarrel-CJAh6sm8.d.ts → dist/advancedBarrel-mPY1Rl-S.d.mts} +51 -7
  7. package/dist/advancedBarrel-mPY1Rl-S.d.mts.map +1 -0
  8. package/dist/advancedBarrel.d.mts +1 -1
  9. package/dist/advancedBarrel.mjs +1 -1
  10. package/dist/barrel-DsK2p-Rh.mjs +7 -0
  11. package/dist/barrel-DsK2p-Rh.mjs.map +1 -0
  12. package/dist/barrel.d.mts +2 -2
  13. package/dist/barrel.mjs +1 -1
  14. package/dist/index.d.mts +2 -2
  15. package/dist/index.mjs +1 -1
  16. package/dist.commonjs/address.advanced-BTrmYDic.js +2 -0
  17. package/dist.commonjs/address.advanced-BTrmYDic.js.map +1 -0
  18. package/dist.commonjs/advanced.d.ts +1 -1
  19. package/dist.commonjs/advanced.js +1 -1
  20. package/{dist/advancedBarrel-BbbHx4z4.d.mts → dist.commonjs/advancedBarrel-B565UuhW.d.ts} +52 -6
  21. package/dist.commonjs/advancedBarrel-B565UuhW.d.ts.map +1 -0
  22. package/dist.commonjs/advancedBarrel.d.ts +1 -1
  23. package/dist.commonjs/advancedBarrel.js +1 -1
  24. package/dist.commonjs/barrel-D8_wJLfr.js +23 -0
  25. package/dist.commonjs/barrel-D8_wJLfr.js.map +1 -0
  26. package/dist.commonjs/barrel.d.ts +2 -2
  27. package/dist.commonjs/barrel.js +1 -1
  28. package/dist.commonjs/index.d.ts +2 -2
  29. package/dist.commonjs/index.js +1 -1
  30. package/package.json +5 -5
  31. package/src/ckb/transaction.ts +8 -1
  32. package/src/utils/constructor.ts +11 -0
  33. package/src/utils/index.ts +3 -5
  34. package/src/utils/proxy.ts +165 -0
  35. package/dist/address.advanced-Dw4qPDGb.mjs.map +0 -1
  36. package/dist/advancedBarrel-BbbHx4z4.d.mts.map +0 -1
  37. package/dist/barrel-BsC1djHG.mjs +0 -7
  38. package/dist/barrel-BsC1djHG.mjs.map +0 -1
  39. package/dist.commonjs/address.advanced-DG1gpW7t.js +0 -2
  40. package/dist.commonjs/address.advanced-DG1gpW7t.js.map +0 -1
  41. package/dist.commonjs/advancedBarrel-CJAh6sm8.d.ts.map +0 -1
  42. package/dist.commonjs/barrel-C_zSgXKn.js +0 -21
  43. package/dist.commonjs/barrel-C_zSgXKn.js.map +0 -1
@@ -1,2 +1,2 @@
1
- import { $ as CellDep, $i as Address, $n as SignerCkbPublicKey, $r as CodecByte, $t as ClientFindCellsResponse, Ai as Constructor, An as verifyMessageNostrEvent, Ar as keystoreEncrypt, At as HashTypeCodec, B as ClientPublicTestnet, Bi as numBeToBytes, Bn as SignerDummy, Br as HASH_CKB_LENGTH, Bt as Epoch, Ci as CodecUint64LE, Cr as Wallet, Ct as depTypeFrom, Di as codecUintNumber, Dr as SignPsbtOptionsLike, Dt as udtBalanceFrom, Ei as codecUint, Er as SignPsbtOptions, Et as isDaoOutputLimitExceeded, Fi as sleep, Fn as verifyMessageEvmPersonal, Ft as ScriptVec, G as ClientCacheMemory, Gi as numMax, Gn as SignerDoge, Gr as Hasher, Gt as CellDepInfo, H as ClientJsonRpc, Hi as numFromBytes, Hn as verifyMessageDogeEcdsa, Hr as HasherCkb, Ht as epochFrom, Ii as stringify, In as SignerEvmAddressReadonly, It as hashTypeFrom, J as ErrorTransactionInsufficientCoin, Ji as numToHex, Jn as MultisigCkbWitness, Jr as One, Jt as ClientBlockHeader, K as ClientCache, Ki as numMin, Kn as verifyMessageJoyId, Kr as FixedPoint, Kt as CellDepInfoLike, Li as Num, Ln as SignerEvm, Lt as hashTypeFromBytes, Mi as gcd, Mn as SignerNostrPublicKeyReadonly, Mr as RequestorJsonRpcConfig, Mt as Script, Ni as isWebview, Nn as NostrEvent, Nt as ScriptLike, Oi as Entity, On as buildNostrEventFromMessage, Or as barrel_d_exports, Ot as LumosTransactionSkeletonType, Pi as reduceAsync, Pn as SignerNostr, Pt as ScriptOpt, Q as CellAnyLike, Qi as EncodableType, Qn as SignerCkbPrivateKey, Qr as CodecBool, Qt as ClientBlockUncleLike, Ri as NumLike, Rn as SignerOpenLink, Rt as hashTypeToBytes, Si as CodecUint64BE, Sr as SignerType, St as calcDaoProfit, Ti as codecPadding, Tr as InputToSignLike, Tt as depTypeToBytes, U as ClientJsonRpcConfig, Ui as numLeFromBytes, Un as SignerDogePrivateKey, Ur as hashCkb, Ut as epochFromHex, V as ClientPublicMainnet, Vi as numFrom, Vn as messageHashDogeEcdsa, Vr as HASH_CKB_SHORT_LENGTH, Vt as EpochLike, W as Client, Wi as numLeToBytes, Wn as SignerDogeAddressReadonly, Wr as hashCkbShort, Wt as epochToHex, X as Cell, Xi as CodecLike, Xn as SignerMultisigCkbReadonly, Xr as fixedPointFrom, Xt as ClientBlockLike, Y as hashTypeId, Yi as Codec, Yn as MultisigCkbWitnessLike, Yr as Zero, Yt as ClientBlockHeaderLike, Z as CellAny, Zi as DecodedType, Zn as SignerCkbScriptReadonly, Zr as fixedPointToString, Zt as ClientBlockUncle, _i as CodecUint32LE, _n as ErrorClientWaitTransactionTimeout, _r as Signer, _t as Transaction, aa as hexFrom, ai as CodecRaw, an as ClientIndexerSearchKeyLike, ar as verifyMessageCkbSecp256k1, at as CellLike, bi as CodecUint512LE, bn as ScriptInfoLike, br as SignerMultisigNotEnoughSignaturesError, bt as WitnessArgsLike, ca as bytesConcat, ci as CodecUint128LE, cn as ClientTransactionResponse, cr as btcP2pkhAddressFromPublicKey, ct as CellOutputVec, da as bytesFrom, di as CodecUint16LE, dn as ErrorClientBaseLike, dr as messageHashBtcEcdsa, dt as DepTypeLike, ea as AddressLike, ei as CodecByte16, en as ClientFindTransactionsGroupedResponse, er as SignerCkbAlwaysSuccess, et as CellDepLike, fa as bytesTo, fi as CodecUint256, fn as ErrorClientDuplicatedTransaction, fr as verifyMessageBtcEcdsa, ft as OutPoint, gi as CodecUint32BE, gn as ErrorClientVerification, gr as Signature, gt as SinceLike, hi as CodecUint32, hn as ErrorClientResolveUnknown, hr as NetworkPreference, ht as Since, ia as bytesLenUnsafe, ii as CodecBytes, in as ClientIndexerSearchKeyFilterLike, ir as signMessageSecp256k1, it as CellInputVec, ji as apply, jn as SignerNostrPrivateKey, jr as RequestorJsonRpc, jt as HashTypeLike, ki as codec, kn as nostrEventHash, kr as keystoreDecrypt, kt as HashType, la as bytesConcatTo, li as CodecUint16, ln as ClientTransactionResponseLike, lr as btcPublicKeyFromP2pkhAddress, lt as DepType, mi as CodecUint256LE, mn as ErrorClientRBFRejected, mr as SignerBtc, mt as RawTransaction, na as HexLike, ni as CodecByte4, nn as ClientIndexerSearchKey, nr as messageHashCkbSecp256k1, nt as CellInput, oa as Bytes, oi as CodecUint128, on as ClientIndexerSearchKeyTransaction, or as verifyMessageSecp256k1, ot as CellOutput, pi as CodecUint256BE, pn as ErrorClientMaxFeeRateExceeded, pr as SignerBtcPublicKeyReadonly, pt as OutPointLike, q as ErrorTransactionInsufficientCapacity, qi as numToBytes, qn as SignerMultisigCkbPrivateKey, qr as FixedPointLike, qt as ClientBlock, ra as bytesLen, ri as CodecByte8, rn as ClientIndexerSearchKeyFilter, rr as recoverMessageSecp256k1, rt as CellInputLike, sa as BytesLike, si as CodecUint128BE, sn as ClientIndexerSearchKeyTransactionLike, sr as btcEcdsaPublicKeyHash, st as CellOutputLike, ta as Hex, ti as CodecByte32, tn as ClientFindTransactionsResponse, tr as SECP256K1_SIGNATURE_LENGTH, tt as CellDepVec, ua as bytesEq, ui as CodecUint16BE, un as ErrorClientBase, ur as btcVarLengthBytesFrom, ut as DepTypeCodec, vi as CodecUint512, vn as OutputsValidator, vr as SignerInfo, vt as TransactionLike, wi as CodecUint8, wr as InputToSign, wt as depTypeFromBytes, xi as CodecUint64, xn as TransactionStatus, xr as SignerSignType, xt as calcDaoClaimEpoch, yi as CodecUint512BE, yn as ScriptInfo, yr as SignerMultisig, yt as WitnessArgs, zi as numBeFromBytes, zn as SignerAlwaysError, zr as HasherKeecak256, zt as KnownScript } from "./advancedBarrel-CJAh6sm8.js";
2
- export { Address, AddressLike, Bytes, BytesLike, Cell, CellAny, CellAnyLike, CellDep, CellDepInfo, CellDepInfoLike, CellDepLike, CellDepVec, CellInput, CellInputLike, CellInputVec, CellLike, CellOutput, CellOutputLike, CellOutputVec, Client, ClientBlock, ClientBlockHeader, ClientBlockHeaderLike, ClientBlockLike, ClientBlockUncle, ClientBlockUncleLike, ClientCache, ClientCacheMemory, ClientFindCellsResponse, ClientFindTransactionsGroupedResponse, ClientFindTransactionsResponse, ClientIndexerSearchKey, ClientIndexerSearchKeyFilter, ClientIndexerSearchKeyFilterLike, ClientIndexerSearchKeyLike, ClientIndexerSearchKeyTransaction, ClientIndexerSearchKeyTransactionLike, ClientJsonRpc, ClientJsonRpcConfig, ClientPublicMainnet, ClientPublicTestnet, ClientTransactionResponse, ClientTransactionResponseLike, Codec, CodecBool, CodecByte, CodecByte16, CodecByte32, CodecByte4, CodecByte8, CodecBytes, CodecLike, CodecRaw, CodecUint128, CodecUint128BE, CodecUint128LE, CodecUint16, CodecUint16BE, CodecUint16LE, CodecUint256, CodecUint256BE, CodecUint256LE, CodecUint32, CodecUint32BE, CodecUint32LE, CodecUint512, CodecUint512BE, CodecUint512LE, CodecUint64, CodecUint64BE, CodecUint64LE, CodecUint8, Constructor, DecodedType, DepType, DepTypeCodec, DepTypeLike, EncodableType, Entity, Epoch, EpochLike, ErrorClientBase, ErrorClientBaseLike, ErrorClientDuplicatedTransaction, ErrorClientMaxFeeRateExceeded, ErrorClientRBFRejected, ErrorClientResolveUnknown, ErrorClientVerification, ErrorClientWaitTransactionTimeout, ErrorTransactionInsufficientCapacity, ErrorTransactionInsufficientCoin, FixedPoint, FixedPointLike, HASH_CKB_LENGTH, HASH_CKB_SHORT_LENGTH, HashType, HashTypeCodec, HashTypeLike, Hasher, HasherCkb, HasherKeecak256, Hex, HexLike, InputToSign, InputToSignLike, KnownScript, LumosTransactionSkeletonType, MultisigCkbWitness, MultisigCkbWitnessLike, NetworkPreference, NostrEvent, Num, NumLike, One, OutPoint, OutPointLike, OutputsValidator, RawTransaction, RequestorJsonRpc, RequestorJsonRpcConfig, SECP256K1_SIGNATURE_LENGTH, Script, ScriptInfo, ScriptInfoLike, ScriptLike, ScriptOpt, ScriptVec, SignPsbtOptions, SignPsbtOptionsLike, Signature, Signer, SignerAlwaysError, SignerBtc, SignerBtcPublicKeyReadonly, SignerCkbAlwaysSuccess, SignerCkbPrivateKey, SignerCkbPublicKey, SignerCkbScriptReadonly, SignerDoge, SignerDogeAddressReadonly, SignerDogePrivateKey, SignerDummy, SignerEvm, SignerEvmAddressReadonly, SignerInfo, SignerMultisig, SignerMultisigCkbPrivateKey, SignerMultisigCkbReadonly, SignerMultisigNotEnoughSignaturesError, SignerNostr, SignerNostrPrivateKey, SignerNostrPublicKeyReadonly, SignerOpenLink, SignerSignType, SignerType, Since, SinceLike, Transaction, TransactionLike, TransactionStatus, Wallet, WitnessArgs, WitnessArgsLike, Zero, apply, btcEcdsaPublicKeyHash, btcP2pkhAddressFromPublicKey, btcPublicKeyFromP2pkhAddress, btcVarLengthBytesFrom, buildNostrEventFromMessage, bytesConcat, bytesConcatTo, bytesEq, bytesFrom, bytesLen, bytesLenUnsafe, bytesTo, calcDaoClaimEpoch, calcDaoProfit, codec, codecPadding, codecUint, codecUintNumber, depTypeFrom, depTypeFromBytes, depTypeToBytes, epochFrom, epochFromHex, epochToHex, fixedPointFrom, fixedPointToString, gcd, hashCkb, hashCkbShort, hashTypeFrom, hashTypeFromBytes, hashTypeId, hashTypeToBytes, hexFrom, isDaoOutputLimitExceeded, isWebview, keystoreDecrypt, keystoreEncrypt, messageHashBtcEcdsa, messageHashCkbSecp256k1, messageHashDogeEcdsa, barrel_d_exports as mol, nostrEventHash, numBeFromBytes, numBeToBytes, numFrom, numFromBytes, numLeFromBytes, numLeToBytes, numMax, numMin, numToBytes, numToHex, recoverMessageSecp256k1, reduceAsync, signMessageSecp256k1, sleep, stringify, udtBalanceFrom, verifyMessageBtcEcdsa, verifyMessageCkbSecp256k1, verifyMessageDogeEcdsa, verifyMessageEvmPersonal, verifyMessageJoyId, verifyMessageNostrEvent, verifyMessageSecp256k1 };
1
+ import { $ as CellDep, $i as DecodedType, $n as SignerCkbPublicKey, $r as CodecByte, $t as ClientFindCellsResponse, Ai as apply, An as verifyMessageNostrEvent, Ar as keystoreEncrypt, At as HashTypeCodec, B as ClientPublicTestnet, Bi as NumLike, Bn as SignerDummy, Br as HASH_CKB_LENGTH, Bt as Epoch, Ci as CodecUint64LE, Cr as Wallet, Ct as depTypeFrom, Di as codecUintNumber, Dr as SignPsbtOptionsLike, Dt as udtBalanceFrom, Ei as codecUint, Er as SignPsbtOptions, Et as isDaoOutputLimitExceeded, Fi as stringify, Fn as verifyMessageEvmPersonal, Ft as ScriptVec, G as ClientCacheMemory, Gi as numLeFromBytes, Gn as SignerDoge, Gr as Hasher, Gt as CellDepInfo, H as ClientJsonRpc, Hi as numBeToBytes, Hn as verifyMessageDogeEcdsa, Hr as HasherCkb, Ht as epochFrom, Ii as Proxy, In as SignerEvmAddressReadonly, It as hashTypeFrom, J as ErrorTransactionInsufficientCoin, Ji as numMin, Jn as MultisigCkbWitness, Jr as One, Jt as ClientBlockHeader, K as ClientCache, Ki as numLeToBytes, Kn as verifyMessageJoyId, Kr as FixedPoint, Kt as CellDepInfoLike, Li as AbstractConstructor, Ln as SignerEvm, Lt as hashTypeFromBytes, Mi as isWebview, Mn as SignerNostrPublicKeyReadonly, Mr as RequestorJsonRpcConfig, Mt as Script, Ni as reduceAsync, Nn as NostrEvent, Nt as ScriptLike, Oi as Entity, On as buildNostrEventFromMessage, Or as barrel_d_exports, Ot as LumosTransactionSkeletonType, Pi as sleep, Pn as SignerNostr, Pt as ScriptOpt, Q as CellAnyLike, Qi as CodecLike, Qn as SignerCkbPrivateKey, Qr as CodecBool, Qt as ClientBlockUncleLike, Ri as Constructor, Rn as SignerOpenLink, Rt as hashTypeToBytes, Si as CodecUint64BE, Sr as SignerType, St as calcDaoProfit, Ti as codecPadding, Tr as InputToSignLike, Tt as depTypeToBytes, U as ClientJsonRpcConfig, Ui as numFrom, Un as SignerDogePrivateKey, Ur as hashCkb, Ut as epochFromHex, V as ClientPublicMainnet, Vi as numBeFromBytes, Vn as messageHashDogeEcdsa, Vr as HASH_CKB_SHORT_LENGTH, Vt as EpochLike, W as Client, Wi as numFromBytes, Wn as SignerDogeAddressReadonly, Wr as hashCkbShort, Wt as epochToHex, X as Cell, Xi as numToHex, Xn as SignerMultisigCkbReadonly, Xr as fixedPointFrom, Xt as ClientBlockLike, Y as hashTypeId, Yi as numToBytes, Yn as MultisigCkbWitnessLike, Yr as Zero, Yt as ClientBlockHeaderLike, Z as CellAny, Zi as Codec, Zn as SignerCkbScriptReadonly, Zr as fixedPointToString, Zt as ClientBlockUncle, _i as CodecUint32LE, _n as ErrorClientWaitTransactionTimeout, _r as Signer, _t as Transaction, aa as bytesLen, ai as CodecRaw, an as ClientIndexerSearchKeyLike, ar as verifyMessageCkbSecp256k1, at as CellLike, bi as CodecUint512LE, bn as ScriptInfoLike, br as SignerMultisigNotEnoughSignaturesError, bt as WitnessArgsLike, ca as Bytes, ci as CodecUint128LE, cn as ClientTransactionResponse, cr as btcP2pkhAddressFromPublicKey, ct as CellOutputVec, da as bytesConcatTo, di as CodecUint16LE, dn as ErrorClientBaseLike, dr as messageHashBtcEcdsa, dt as DepTypeLike, ea as EncodableType, ei as CodecByte16, en as ClientFindTransactionsGroupedResponse, er as SignerCkbAlwaysSuccess, et as CellDepLike, fa as bytesEq, fi as CodecUint256, fn as ErrorClientDuplicatedTransaction, fr as verifyMessageBtcEcdsa, ft as OutPoint, gi as CodecUint32BE, gn as ErrorClientVerification, gr as Signature, gt as SinceLike, hi as CodecUint32, hn as ErrorClientResolveUnknown, hr as NetworkPreference, ht as Since, ia as HexLike, ii as CodecBytes, in as ClientIndexerSearchKeyFilterLike, ir as signMessageSecp256k1, it as CellInputVec, ji as gcd, jn as SignerNostrPrivateKey, jr as RequestorJsonRpc, jt as HashTypeLike, ki as codec, kn as nostrEventHash, kr as keystoreDecrypt, kt as HashType, la as BytesLike, li as CodecUint16, ln as ClientTransactionResponseLike, lr as btcPublicKeyFromP2pkhAddress, lt as DepType, ma as bytesTo, mi as CodecUint256LE, mn as ErrorClientRBFRejected, mr as SignerBtc, mt as RawTransaction, na as AddressLike, ni as CodecByte4, nn as ClientIndexerSearchKey, nr as messageHashCkbSecp256k1, nt as CellInput, oa as bytesLenUnsafe, oi as CodecUint128, on as ClientIndexerSearchKeyTransaction, or as verifyMessageSecp256k1, ot as CellOutput, pa as bytesFrom, pi as CodecUint256BE, pn as ErrorClientMaxFeeRateExceeded, pr as SignerBtcPublicKeyReadonly, pt as OutPointLike, q as ErrorTransactionInsufficientCapacity, qi as numMax, qn as SignerMultisigCkbPrivateKey, qr as FixedPointLike, qt as ClientBlock, ra as Hex, ri as CodecByte8, rn as ClientIndexerSearchKeyFilter, rr as recoverMessageSecp256k1, rt as CellInputLike, sa as hexFrom, si as CodecUint128BE, sn as ClientIndexerSearchKeyTransactionLike, sr as btcEcdsaPublicKeyHash, st as CellOutputLike, ta as Address, ti as CodecByte32, tn as ClientFindTransactionsResponse, tr as SECP256K1_SIGNATURE_LENGTH, tt as CellDepVec, ua as bytesConcat, ui as CodecUint16BE, un as ErrorClientBase, ur as btcVarLengthBytesFrom, ut as DepTypeCodec, vi as CodecUint512, vn as OutputsValidator, vr as SignerInfo, vt as TransactionLike, wi as CodecUint8, wr as InputToSign, wt as depTypeFromBytes, xi as CodecUint64, xn as TransactionStatus, xr as SignerSignType, xt as calcDaoClaimEpoch, yi as CodecUint512BE, yn as ScriptInfo, yr as SignerMultisig, yt as WitnessArgs, zi as Num, zn as SignerAlwaysError, zr as HasherKeecak256, zt as KnownScript } from "./advancedBarrel-B565UuhW.js";
2
+ export { AbstractConstructor, Address, AddressLike, Bytes, BytesLike, Cell, CellAny, CellAnyLike, CellDep, CellDepInfo, CellDepInfoLike, CellDepLike, CellDepVec, CellInput, CellInputLike, CellInputVec, CellLike, CellOutput, CellOutputLike, CellOutputVec, Client, ClientBlock, ClientBlockHeader, ClientBlockHeaderLike, ClientBlockLike, ClientBlockUncle, ClientBlockUncleLike, ClientCache, ClientCacheMemory, ClientFindCellsResponse, ClientFindTransactionsGroupedResponse, ClientFindTransactionsResponse, ClientIndexerSearchKey, ClientIndexerSearchKeyFilter, ClientIndexerSearchKeyFilterLike, ClientIndexerSearchKeyLike, ClientIndexerSearchKeyTransaction, ClientIndexerSearchKeyTransactionLike, ClientJsonRpc, ClientJsonRpcConfig, ClientPublicMainnet, ClientPublicTestnet, ClientTransactionResponse, ClientTransactionResponseLike, Codec, CodecBool, CodecByte, CodecByte16, CodecByte32, CodecByte4, CodecByte8, CodecBytes, CodecLike, CodecRaw, CodecUint128, CodecUint128BE, CodecUint128LE, CodecUint16, CodecUint16BE, CodecUint16LE, CodecUint256, CodecUint256BE, CodecUint256LE, CodecUint32, CodecUint32BE, CodecUint32LE, CodecUint512, CodecUint512BE, CodecUint512LE, CodecUint64, CodecUint64BE, CodecUint64LE, CodecUint8, Constructor, DecodedType, DepType, DepTypeCodec, DepTypeLike, EncodableType, Entity, Epoch, EpochLike, ErrorClientBase, ErrorClientBaseLike, ErrorClientDuplicatedTransaction, ErrorClientMaxFeeRateExceeded, ErrorClientRBFRejected, ErrorClientResolveUnknown, ErrorClientVerification, ErrorClientWaitTransactionTimeout, ErrorTransactionInsufficientCapacity, ErrorTransactionInsufficientCoin, FixedPoint, FixedPointLike, HASH_CKB_LENGTH, HASH_CKB_SHORT_LENGTH, HashType, HashTypeCodec, HashTypeLike, Hasher, HasherCkb, HasherKeecak256, Hex, HexLike, InputToSign, InputToSignLike, KnownScript, LumosTransactionSkeletonType, MultisigCkbWitness, MultisigCkbWitnessLike, NetworkPreference, NostrEvent, Num, NumLike, One, OutPoint, OutPointLike, OutputsValidator, Proxy, RawTransaction, RequestorJsonRpc, RequestorJsonRpcConfig, SECP256K1_SIGNATURE_LENGTH, Script, ScriptInfo, ScriptInfoLike, ScriptLike, ScriptOpt, ScriptVec, SignPsbtOptions, SignPsbtOptionsLike, Signature, Signer, SignerAlwaysError, SignerBtc, SignerBtcPublicKeyReadonly, SignerCkbAlwaysSuccess, SignerCkbPrivateKey, SignerCkbPublicKey, SignerCkbScriptReadonly, SignerDoge, SignerDogeAddressReadonly, SignerDogePrivateKey, SignerDummy, SignerEvm, SignerEvmAddressReadonly, SignerInfo, SignerMultisig, SignerMultisigCkbPrivateKey, SignerMultisigCkbReadonly, SignerMultisigNotEnoughSignaturesError, SignerNostr, SignerNostrPrivateKey, SignerNostrPublicKeyReadonly, SignerOpenLink, SignerSignType, SignerType, Since, SinceLike, Transaction, TransactionLike, TransactionStatus, Wallet, WitnessArgs, WitnessArgsLike, Zero, apply, btcEcdsaPublicKeyHash, btcP2pkhAddressFromPublicKey, btcPublicKeyFromP2pkhAddress, btcVarLengthBytesFrom, buildNostrEventFromMessage, bytesConcat, bytesConcatTo, bytesEq, bytesFrom, bytesLen, bytesLenUnsafe, bytesTo, calcDaoClaimEpoch, calcDaoProfit, codec, codecPadding, codecUint, codecUintNumber, depTypeFrom, depTypeFromBytes, depTypeToBytes, epochFrom, epochFromHex, epochToHex, fixedPointFrom, fixedPointToString, gcd, hashCkb, hashCkbShort, hashTypeFrom, hashTypeFromBytes, hashTypeId, hashTypeToBytes, hexFrom, isDaoOutputLimitExceeded, isWebview, keystoreDecrypt, keystoreEncrypt, messageHashBtcEcdsa, messageHashCkbSecp256k1, messageHashDogeEcdsa, barrel_d_exports as mol, nostrEventHash, numBeFromBytes, numBeToBytes, numFrom, numFromBytes, numLeFromBytes, numLeToBytes, numMax, numMin, numToBytes, numToHex, recoverMessageSecp256k1, reduceAsync, signMessageSecp256k1, sleep, stringify, udtBalanceFrom, verifyMessageBtcEcdsa, verifyMessageCkbSecp256k1, verifyMessageDogeEcdsa, verifyMessageEvmPersonal, verifyMessageJoyId, verifyMessageNostrEvent, verifyMessageSecp256k1 };
@@ -1 +1 @@
1
- Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./address.advanced-DG1gpW7t.js"),t=require("./barrel-C_zSgXKn.js");exports.Address=t.Q,exports.Bytes=e.qr,exports.Cell=e.a,exports.CellAny=e.o,Object.defineProperty(exports,"CellDep",{enumerable:!0,get:function(){return e.s}}),exports.CellDepInfo=e.nt,exports.CellDepVec=e.c,Object.defineProperty(exports,"CellInput",{enumerable:!0,get:function(){return e.l}}),exports.CellInputVec=e.u,Object.defineProperty(exports,"CellOutput",{enumerable:!0,get:function(){return e.d}}),exports.CellOutputVec=e.f,exports.Client=t.it,exports.ClientBlock=e.rt,exports.ClientBlockHeader=e.it,exports.ClientBlockUncle=e.at,exports.ClientCache=t.ot,exports.ClientCacheMemory=t.at,exports.ClientIndexerSearchKey=e.ot,exports.ClientIndexerSearchKeyFilter=e.st,exports.ClientIndexerSearchKeyTransaction=e.ct,exports.ClientJsonRpc=t.nt,exports.ClientPublicMainnet=t.tt,exports.ClientPublicTestnet=t.et,exports.ClientTransactionResponse=e.lt,exports.Codec=e.Kr,exports.CodecBool=e.yn,exports.CodecByte=e.bn,exports.CodecByte16=e.xn,exports.CodecByte32=e.Sn,exports.CodecByte4=e.Cn,exports.CodecByte8=e.wn,exports.CodecBytes=e.Tn,exports.CodecRaw=e.En,exports.CodecUint128=e.Dn,exports.CodecUint128BE=e.On,exports.CodecUint128LE=e.kn,exports.CodecUint16=e.An,exports.CodecUint16BE=e.jn,exports.CodecUint16LE=e.Mn,exports.CodecUint256=e.Nn,exports.CodecUint256BE=e.Pn,exports.CodecUint256LE=e.Fn,exports.CodecUint32=e.In,exports.CodecUint32BE=e.Ln,exports.CodecUint32LE=e.Rn,exports.CodecUint512=e.zn,exports.CodecUint512BE=e.Bn,exports.CodecUint512LE=e.Vn,exports.CodecUint64=e.Hn,exports.CodecUint64BE=e.Un,exports.CodecUint64LE=e.Wn,exports.CodecUint8=e.Gn,exports.DepTypeCodec=e.p,exports.Entity=e.lr,Object.defineProperty(exports,"Epoch",{enumerable:!0,get:function(){return e.xt}}),exports.ErrorClientBase=e.ut,exports.ErrorClientDuplicatedTransaction=e.dt,exports.ErrorClientMaxFeeRateExceeded=e.ft,exports.ErrorClientRBFRejected=e.pt,exports.ErrorClientResolveUnknown=e.mt,exports.ErrorClientVerification=e.ht,exports.ErrorClientWaitTransactionTimeout=e.gt,exports.ErrorTransactionInsufficientCapacity=e.E,exports.ErrorTransactionInsufficientCoin=e.D,exports.HASH_CKB_LENGTH=e.dr,exports.HASH_CKB_SHORT_LENGTH=e.fr,exports.HashTypeCodec=e.j,exports.HasherCkb=e.pr,exports.HasherKeecak256=t.ct,exports.InputToSign=t.J,exports.KnownScript=e.J,Object.defineProperty(exports,"MultisigCkbWitness",{enumerable:!0,get:function(){return t.m}}),exports.One=e.ar,Object.defineProperty(exports,"OutPoint",{enumerable:!0,get:function(){return e.m}}),exports.RawTransaction=e.h,exports.RequestorJsonRpc=t.rt,exports.SECP256K1_SIGNATURE_LENGTH=t.I,Object.defineProperty(exports,"Script",{enumerable:!0,get:function(){return e.M}}),exports.ScriptInfo=e._t,exports.ScriptOpt=e.N,exports.ScriptVec=e.P,exports.SignPsbtOptions=t.Y,exports.Signature=t.S,exports.Signer=t.C,exports.SignerAlwaysError=t.c,exports.SignerBtc=t.x,exports.SignerBtcPublicKeyReadonly=t.b,exports.SignerCkbAlwaysSuccess=t.y,exports.SignerCkbPrivateKey=t._,exports.SignerCkbPublicKey=t.v,exports.SignerCkbScriptReadonly=t.g,exports.SignerDoge=t.f,exports.SignerDogeAddressReadonly=t.d,exports.SignerDogePrivateKey=t.u,exports.SignerDummy=t.l,exports.SignerEvm=t.o,exports.SignerEvmAddressReadonly=t.a,exports.SignerInfo=t.w,exports.SignerMultisig=t.T,exports.SignerMultisigCkbPrivateKey=t.p,exports.SignerMultisigCkbReadonly=t.h,exports.SignerMultisigNotEnoughSignaturesError=t.E,exports.SignerNostr=t.i,exports.SignerNostrPrivateKey=t.n,exports.SignerNostrPublicKeyReadonly=t.r,exports.SignerOpenLink=t.s,exports.SignerSignType=t.D,exports.SignerType=t.O,Object.defineProperty(exports,"Since",{enumerable:!0,get:function(){return e.g}}),Object.defineProperty(exports,"Transaction",{enumerable:!0,get:function(){return e._}}),Object.defineProperty(exports,"WitnessArgs",{enumerable:!0,get:function(){return e.v}}),exports.Zero=e.or,exports.apply=e.Et,exports.btcEcdsaPublicKeyHash=t.H,exports.btcP2pkhAddressFromPublicKey=t.U,exports.btcPublicKeyFromP2pkhAddress=t.W,exports.btcVarLengthBytesFrom=t.G,exports.buildNostrEventFromMessage=t.k,exports.bytesConcat=e.Jr,exports.bytesConcatTo=e.Yr,exports.bytesEq=e.Xr,exports.bytesFrom=e.Zr,exports.bytesLen=e._r,exports.bytesLenUnsafe=e.vr,exports.bytesTo=e.Qr,exports.calcDaoClaimEpoch=e.y,exports.calcDaoProfit=e.b,exports.codec=e.ur,exports.codecPadding=e.Kn,exports.codecUint=e.qn,exports.codecUintNumber=e.Jn,exports.depTypeFrom=e.x,exports.depTypeFromBytes=e.S,exports.depTypeToBytes=e.C,exports.epochFrom=e.St,exports.epochFromHex=e.Ct,exports.epochToHex=e.wt,exports.fixedPointFrom=e.sr,exports.fixedPointToString=e.cr,exports.gcd=e.Dt,exports.hashCkb=e.mr,exports.hashCkbShort=e.hr,exports.hashTypeFrom=e.F,exports.hashTypeFromBytes=e.I,exports.hashTypeId=t.$,exports.hashTypeToBytes=e.L,exports.hexFrom=e.yr,exports.isDaoOutputLimitExceeded=e.w,exports.isWebview=e.Ot,exports.keystoreDecrypt=t.X,exports.keystoreEncrypt=t.Z,exports.messageHashBtcEcdsa=t.K,exports.messageHashCkbSecp256k1=t.L,exports.messageHashDogeEcdsa=t.N,Object.defineProperty(exports,"mol",{enumerable:!0,get:function(){return t.st}}),exports.nostrEventHash=t.A,exports.numBeFromBytes=e.Yn,exports.numBeToBytes=e.Xn,exports.numFrom=e.Zn,exports.numFromBytes=e.Qn,exports.numLeFromBytes=e.$n,exports.numLeToBytes=e.er,exports.numMax=e.tr,exports.numMin=e.nr,exports.numToBytes=e.rr,exports.numToHex=e.ir,exports.recoverMessageSecp256k1=t.R,exports.reduceAsync=e.kt,exports.signMessageSecp256k1=t.z,exports.sleep=e.At,exports.stringify=e.jt,exports.udtBalanceFrom=e.T,exports.verifyMessageBtcEcdsa=t.q,exports.verifyMessageCkbSecp256k1=t.B,exports.verifyMessageDogeEcdsa=t.P,exports.verifyMessageEvmPersonal=t.M,exports.verifyMessageJoyId=t.F,exports.verifyMessageNostrEvent=t.j,exports.verifyMessageSecp256k1=t.V;
1
+ Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./address.advanced-BTrmYDic.js"),t=require("./barrel-D8_wJLfr.js");exports.Address=t.Q,exports.Bytes=e.Gr,exports.Cell=e.a,exports.CellAny=e.o,Object.defineProperty(exports,"CellDep",{enumerable:!0,get:function(){return e.s}}),exports.CellDepInfo=e.nt,exports.CellDepVec=e.c,Object.defineProperty(exports,"CellInput",{enumerable:!0,get:function(){return e.l}}),exports.CellInputVec=e.u,Object.defineProperty(exports,"CellOutput",{enumerable:!0,get:function(){return e.d}}),exports.CellOutputVec=e.f,exports.Client=t.it,exports.ClientBlock=e.rt,exports.ClientBlockHeader=e.it,exports.ClientBlockUncle=e.at,exports.ClientCache=t.ot,exports.ClientCacheMemory=t.at,exports.ClientIndexerSearchKey=e.ot,exports.ClientIndexerSearchKeyFilter=e.st,exports.ClientIndexerSearchKeyTransaction=e.ct,exports.ClientJsonRpc=t.nt,exports.ClientPublicMainnet=t.tt,exports.ClientPublicTestnet=t.et,exports.ClientTransactionResponse=e.lt,exports.Codec=e.Wr,exports.CodecBool=e.yn,exports.CodecByte=e.bn,exports.CodecByte16=e.xn,exports.CodecByte32=e.Sn,exports.CodecByte4=e.Cn,exports.CodecByte8=e.wn,exports.CodecBytes=e.Tn,exports.CodecRaw=e.En,exports.CodecUint128=e.Dn,exports.CodecUint128BE=e.On,exports.CodecUint128LE=e.kn,exports.CodecUint16=e.An,exports.CodecUint16BE=e.jn,exports.CodecUint16LE=e.Mn,exports.CodecUint256=e.Nn,exports.CodecUint256BE=e.Pn,exports.CodecUint256LE=e.Fn,exports.CodecUint32=e.In,exports.CodecUint32BE=e.Ln,exports.CodecUint32LE=e.Rn,exports.CodecUint512=e.zn,exports.CodecUint512BE=e.Bn,exports.CodecUint512LE=e.Vn,exports.CodecUint64=e.Hn,exports.CodecUint64BE=e.Un,exports.CodecUint64LE=e.Wn,exports.CodecUint8=e.Gn,exports.DepTypeCodec=e.p,exports.Entity=e.lr,Object.defineProperty(exports,"Epoch",{enumerable:!0,get:function(){return e.xt}}),exports.ErrorClientBase=e.ut,exports.ErrorClientDuplicatedTransaction=e.dt,exports.ErrorClientMaxFeeRateExceeded=e.ft,exports.ErrorClientRBFRejected=e.pt,exports.ErrorClientResolveUnknown=e.mt,exports.ErrorClientVerification=e.ht,exports.ErrorClientWaitTransactionTimeout=e.gt,exports.ErrorTransactionInsufficientCapacity=e.E,exports.ErrorTransactionInsufficientCoin=e.D,exports.HASH_CKB_LENGTH=e.dr,exports.HASH_CKB_SHORT_LENGTH=e.fr,exports.HashTypeCodec=e.j,exports.HasherCkb=e.pr,exports.HasherKeecak256=t.lt,exports.InputToSign=t.J,exports.KnownScript=e.J,Object.defineProperty(exports,"MultisigCkbWitness",{enumerable:!0,get:function(){return t.m}}),exports.One=e.ar,Object.defineProperty(exports,"OutPoint",{enumerable:!0,get:function(){return e.m}}),Object.defineProperty(exports,"Proxy",{enumerable:!0,get:function(){return t.st}}),exports.RawTransaction=e.h,exports.RequestorJsonRpc=t.rt,exports.SECP256K1_SIGNATURE_LENGTH=t.I,Object.defineProperty(exports,"Script",{enumerable:!0,get:function(){return e.M}}),exports.ScriptInfo=e._t,exports.ScriptOpt=e.N,exports.ScriptVec=e.P,exports.SignPsbtOptions=t.Y,exports.Signature=t.S,exports.Signer=t.C,exports.SignerAlwaysError=t.c,exports.SignerBtc=t.x,exports.SignerBtcPublicKeyReadonly=t.b,exports.SignerCkbAlwaysSuccess=t.y,exports.SignerCkbPrivateKey=t._,exports.SignerCkbPublicKey=t.v,exports.SignerCkbScriptReadonly=t.g,exports.SignerDoge=t.f,exports.SignerDogeAddressReadonly=t.d,exports.SignerDogePrivateKey=t.u,exports.SignerDummy=t.l,exports.SignerEvm=t.o,exports.SignerEvmAddressReadonly=t.a,exports.SignerInfo=t.w,exports.SignerMultisig=t.T,exports.SignerMultisigCkbPrivateKey=t.p,exports.SignerMultisigCkbReadonly=t.h,exports.SignerMultisigNotEnoughSignaturesError=t.E,exports.SignerNostr=t.i,exports.SignerNostrPrivateKey=t.n,exports.SignerNostrPublicKeyReadonly=t.r,exports.SignerOpenLink=t.s,exports.SignerSignType=t.D,exports.SignerType=t.O,Object.defineProperty(exports,"Since",{enumerable:!0,get:function(){return e.g}}),Object.defineProperty(exports,"Transaction",{enumerable:!0,get:function(){return e._}}),Object.defineProperty(exports,"WitnessArgs",{enumerable:!0,get:function(){return e.v}}),exports.Zero=e.or,exports.apply=e.Et,exports.btcEcdsaPublicKeyHash=t.H,exports.btcP2pkhAddressFromPublicKey=t.U,exports.btcPublicKeyFromP2pkhAddress=t.W,exports.btcVarLengthBytesFrom=t.G,exports.buildNostrEventFromMessage=t.k,exports.bytesConcat=e.Kr,exports.bytesConcatTo=e.qr,exports.bytesEq=e.Jr,exports.bytesFrom=e.Yr,exports.bytesLen=e._r,exports.bytesLenUnsafe=e.vr,exports.bytesTo=e.Xr,exports.calcDaoClaimEpoch=e.y,exports.calcDaoProfit=e.b,exports.codec=e.ur,exports.codecPadding=e.Kn,exports.codecUint=e.qn,exports.codecUintNumber=e.Jn,exports.depTypeFrom=e.x,exports.depTypeFromBytes=e.S,exports.depTypeToBytes=e.C,exports.epochFrom=e.St,exports.epochFromHex=e.Ct,exports.epochToHex=e.wt,exports.fixedPointFrom=e.sr,exports.fixedPointToString=e.cr,exports.gcd=e.Dt,exports.hashCkb=e.mr,exports.hashCkbShort=e.hr,exports.hashTypeFrom=e.F,exports.hashTypeFromBytes=e.I,exports.hashTypeId=t.$,exports.hashTypeToBytes=e.L,exports.hexFrom=e.yr,exports.isDaoOutputLimitExceeded=e.w,exports.isWebview=e.Ot,exports.keystoreDecrypt=t.X,exports.keystoreEncrypt=t.Z,exports.messageHashBtcEcdsa=t.K,exports.messageHashCkbSecp256k1=t.L,exports.messageHashDogeEcdsa=t.N,Object.defineProperty(exports,"mol",{enumerable:!0,get:function(){return t.ct}}),exports.nostrEventHash=t.A,exports.numBeFromBytes=e.Yn,exports.numBeToBytes=e.Xn,exports.numFrom=e.Zn,exports.numFromBytes=e.Qn,exports.numLeFromBytes=e.$n,exports.numLeToBytes=e.er,exports.numMax=e.tr,exports.numMin=e.nr,exports.numToBytes=e.rr,exports.numToHex=e.ir,exports.recoverMessageSecp256k1=t.R,exports.reduceAsync=e.kt,exports.signMessageSecp256k1=t.z,exports.sleep=e.At,exports.stringify=e.jt,exports.udtBalanceFrom=e.T,exports.verifyMessageBtcEcdsa=t.q,exports.verifyMessageCkbSecp256k1=t.B,exports.verifyMessageDogeEcdsa=t.P,exports.verifyMessageEvmPersonal=t.M,exports.verifyMessageJoyId=t.F,exports.verifyMessageNostrEvent=t.j,exports.verifyMessageSecp256k1=t.V;
@@ -1,2 +1,2 @@
1
- import { $ as CellDep, $i as Address, $n as SignerCkbPublicKey, $r as CodecByte, $t as ClientFindCellsResponse, Ai as Constructor, An as verifyMessageNostrEvent, Ar as keystoreEncrypt, At as HashTypeCodec, B as ClientPublicTestnet, Bi as numBeToBytes, Bn as SignerDummy, Br as HASH_CKB_LENGTH, Bt as Epoch, Ci as CodecUint64LE, Cr as Wallet, Ct as depTypeFrom, Di as codecUintNumber, Dn as barrel_d_exports, Dr as SignPsbtOptionsLike, Dt as udtBalanceFrom, Ei as codecUint, Er as SignPsbtOptions, Et as isDaoOutputLimitExceeded, Fi as sleep, Fn as verifyMessageEvmPersonal, Ft as ScriptVec, G as ClientCacheMemory, Gi as numMax, Gn as SignerDoge, Gr as Hasher, Gt as CellDepInfo, H as ClientJsonRpc, Hi as numFromBytes, Hn as verifyMessageDogeEcdsa, Hr as HasherCkb, Ht as epochFrom, Ii as stringify, In as SignerEvmAddressReadonly, It as hashTypeFrom, J as ErrorTransactionInsufficientCoin, Ji as numToHex, Jn as MultisigCkbWitness, Jr as One, Jt as ClientBlockHeader, K as ClientCache, Ki as numMin, Kn as verifyMessageJoyId, Kr as FixedPoint, Kt as CellDepInfoLike, Li as Num, Ln as SignerEvm, Lt as hashTypeFromBytes, Mi as gcd, Mn as SignerNostrPublicKeyReadonly, Mr as RequestorJsonRpcConfig, Mt as Script, Ni as isWebview, Nn as NostrEvent, Nt as ScriptLike, Oi as Entity, On as buildNostrEventFromMessage, Or as barrel_d_exports$1, Ot as LumosTransactionSkeletonType, Pi as reduceAsync, Pn as SignerNostr, Pt as ScriptOpt, Q as CellAnyLike, Qi as EncodableType, Qn as SignerCkbPrivateKey, Qr as CodecBool, Qt as ClientBlockUncleLike, Ri as NumLike, Rn as SignerOpenLink, Rt as hashTypeToBytes, Si as CodecUint64BE, Sr as SignerType, St as calcDaoProfit, Ti as codecPadding, Tr as InputToSignLike, Tt as depTypeToBytes, U as ClientJsonRpcConfig, Ui as numLeFromBytes, Un as SignerDogePrivateKey, Ur as hashCkb, Ut as epochFromHex, V as ClientPublicMainnet, Vi as numFrom, Vn as messageHashDogeEcdsa, Vr as HASH_CKB_SHORT_LENGTH, Vt as EpochLike, W as Client, Wi as numLeToBytes, Wn as SignerDogeAddressReadonly, Wr as hashCkbShort, Wt as epochToHex, X as Cell, Xi as CodecLike, Xn as SignerMultisigCkbReadonly, Xr as fixedPointFrom, Xt as ClientBlockLike, Y as hashTypeId, Yi as Codec, Yn as MultisigCkbWitnessLike, Yr as Zero, Yt as ClientBlockHeaderLike, Z as CellAny, Zi as DecodedType, Zn as SignerCkbScriptReadonly, Zr as fixedPointToString, Zt as ClientBlockUncle, _i as CodecUint32LE, _n as ErrorClientWaitTransactionTimeout, _r as Signer, _t as Transaction, aa as hexFrom, ai as CodecRaw, an as ClientIndexerSearchKeyLike, ar as verifyMessageCkbSecp256k1, at as CellLike, bi as CodecUint512LE, bn as ScriptInfoLike, br as SignerMultisigNotEnoughSignaturesError, bt as WitnessArgsLike, ca as bytesConcat, ci as CodecUint128LE, cn as ClientTransactionResponse, cr as btcP2pkhAddressFromPublicKey, ct as CellOutputVec, da as bytesFrom, di as CodecUint16LE, dn as ErrorClientBaseLike, dr as messageHashBtcEcdsa, dt as DepTypeLike, ea as AddressLike, ei as CodecByte16, en as ClientFindTransactionsGroupedResponse, er as SignerCkbAlwaysSuccess, et as CellDepLike, fa as bytesTo, fi as CodecUint256, fn as ErrorClientDuplicatedTransaction, fr as verifyMessageBtcEcdsa, ft as OutPoint, gi as CodecUint32BE, gn as ErrorClientVerification, gr as Signature, gt as SinceLike, hi as CodecUint32, hn as ErrorClientResolveUnknown, hr as NetworkPreference, ht as Since, ia as bytesLenUnsafe, ii as CodecBytes, in as ClientIndexerSearchKeyFilterLike, ir as signMessageSecp256k1, it as CellInputVec, ji as apply, jn as SignerNostrPrivateKey, jr as RequestorJsonRpc, jt as HashTypeLike, ki as codec, kn as nostrEventHash, kr as keystoreDecrypt, kt as HashType, la as bytesConcatTo, li as CodecUint16, ln as ClientTransactionResponseLike, lr as btcPublicKeyFromP2pkhAddress, lt as DepType, mi as CodecUint256LE, mn as ErrorClientRBFRejected, mr as SignerBtc, mt as RawTransaction, na as HexLike, ni as CodecByte4, nn as ClientIndexerSearchKey, nr as messageHashCkbSecp256k1, nt as CellInput, oa as Bytes, oi as CodecUint128, on as ClientIndexerSearchKeyTransaction, or as verifyMessageSecp256k1, ot as CellOutput, pi as CodecUint256BE, pn as ErrorClientMaxFeeRateExceeded, pr as SignerBtcPublicKeyReadonly, pt as OutPointLike, q as ErrorTransactionInsufficientCapacity, qi as numToBytes, qn as SignerMultisigCkbPrivateKey, qr as FixedPointLike, qt as ClientBlock, ra as bytesLen, ri as CodecByte8, rn as ClientIndexerSearchKeyFilter, rr as recoverMessageSecp256k1, rt as CellInputLike, sa as BytesLike, si as CodecUint128BE, sn as ClientIndexerSearchKeyTransactionLike, sr as btcEcdsaPublicKeyHash, st as CellOutputLike, ta as Hex, ti as CodecByte32, tn as ClientFindTransactionsResponse, tr as SECP256K1_SIGNATURE_LENGTH, tt as CellDepVec, ua as bytesEq, ui as CodecUint16BE, un as ErrorClientBase, ur as btcVarLengthBytesFrom, ut as DepTypeCodec, vi as CodecUint512, vn as OutputsValidator, vr as SignerInfo, vt as TransactionLike, wi as CodecUint8, wr as InputToSign, wt as depTypeFromBytes, xi as CodecUint64, xn as TransactionStatus, xr as SignerSignType, xt as calcDaoClaimEpoch, yi as CodecUint512BE, yn as ScriptInfo, yr as SignerMultisig, yt as WitnessArgs, zi as numBeFromBytes, zn as SignerAlwaysError, zr as HasherKeecak256, zt as KnownScript } from "./advancedBarrel-CJAh6sm8.js";
2
- export { Address, AddressLike, Bytes, BytesLike, Cell, CellAny, CellAnyLike, CellDep, CellDepInfo, CellDepInfoLike, CellDepLike, CellDepVec, CellInput, CellInputLike, CellInputVec, CellLike, CellOutput, CellOutputLike, CellOutputVec, Client, ClientBlock, ClientBlockHeader, ClientBlockHeaderLike, ClientBlockLike, ClientBlockUncle, ClientBlockUncleLike, ClientCache, ClientCacheMemory, ClientFindCellsResponse, ClientFindTransactionsGroupedResponse, ClientFindTransactionsResponse, ClientIndexerSearchKey, ClientIndexerSearchKeyFilter, ClientIndexerSearchKeyFilterLike, ClientIndexerSearchKeyLike, ClientIndexerSearchKeyTransaction, ClientIndexerSearchKeyTransactionLike, ClientJsonRpc, ClientJsonRpcConfig, ClientPublicMainnet, ClientPublicTestnet, ClientTransactionResponse, ClientTransactionResponseLike, Codec, CodecBool, CodecByte, CodecByte16, CodecByte32, CodecByte4, CodecByte8, CodecBytes, CodecLike, CodecRaw, CodecUint128, CodecUint128BE, CodecUint128LE, CodecUint16, CodecUint16BE, CodecUint16LE, CodecUint256, CodecUint256BE, CodecUint256LE, CodecUint32, CodecUint32BE, CodecUint32LE, CodecUint512, CodecUint512BE, CodecUint512LE, CodecUint64, CodecUint64BE, CodecUint64LE, CodecUint8, Constructor, DecodedType, DepType, DepTypeCodec, DepTypeLike, EncodableType, Entity, Epoch, EpochLike, ErrorClientBase, ErrorClientBaseLike, ErrorClientDuplicatedTransaction, ErrorClientMaxFeeRateExceeded, ErrorClientRBFRejected, ErrorClientResolveUnknown, ErrorClientVerification, ErrorClientWaitTransactionTimeout, ErrorTransactionInsufficientCapacity, ErrorTransactionInsufficientCoin, FixedPoint, FixedPointLike, HASH_CKB_LENGTH, HASH_CKB_SHORT_LENGTH, HashType, HashTypeCodec, HashTypeLike, Hasher, HasherCkb, HasherKeecak256, Hex, HexLike, InputToSign, InputToSignLike, KnownScript, LumosTransactionSkeletonType, MultisigCkbWitness, MultisigCkbWitnessLike, NetworkPreference, NostrEvent, Num, NumLike, One, OutPoint, OutPointLike, OutputsValidator, RawTransaction, RequestorJsonRpc, RequestorJsonRpcConfig, SECP256K1_SIGNATURE_LENGTH, Script, ScriptInfo, ScriptInfoLike, ScriptLike, ScriptOpt, ScriptVec, SignPsbtOptions, SignPsbtOptionsLike, Signature, Signer, SignerAlwaysError, SignerBtc, SignerBtcPublicKeyReadonly, SignerCkbAlwaysSuccess, SignerCkbPrivateKey, SignerCkbPublicKey, SignerCkbScriptReadonly, SignerDoge, SignerDogeAddressReadonly, SignerDogePrivateKey, SignerDummy, SignerEvm, SignerEvmAddressReadonly, SignerInfo, SignerMultisig, SignerMultisigCkbPrivateKey, SignerMultisigCkbReadonly, SignerMultisigNotEnoughSignaturesError, SignerNostr, SignerNostrPrivateKey, SignerNostrPublicKeyReadonly, SignerOpenLink, SignerSignType, SignerType, Since, SinceLike, Transaction, TransactionLike, TransactionStatus, Wallet, WitnessArgs, WitnessArgsLike, Zero, apply, btcEcdsaPublicKeyHash, btcP2pkhAddressFromPublicKey, btcPublicKeyFromP2pkhAddress, btcVarLengthBytesFrom, buildNostrEventFromMessage, bytesConcat, bytesConcatTo, bytesEq, bytesFrom, bytesLen, bytesLenUnsafe, bytesTo, calcDaoClaimEpoch, calcDaoProfit, barrel_d_exports as ccc, codec, codecPadding, codecUint, codecUintNumber, depTypeFrom, depTypeFromBytes, depTypeToBytes, epochFrom, epochFromHex, epochToHex, fixedPointFrom, fixedPointToString, gcd, hashCkb, hashCkbShort, hashTypeFrom, hashTypeFromBytes, hashTypeId, hashTypeToBytes, hexFrom, isDaoOutputLimitExceeded, isWebview, keystoreDecrypt, keystoreEncrypt, messageHashBtcEcdsa, messageHashCkbSecp256k1, messageHashDogeEcdsa, barrel_d_exports$1 as mol, nostrEventHash, numBeFromBytes, numBeToBytes, numFrom, numFromBytes, numLeFromBytes, numLeToBytes, numMax, numMin, numToBytes, numToHex, recoverMessageSecp256k1, reduceAsync, signMessageSecp256k1, sleep, stringify, udtBalanceFrom, verifyMessageBtcEcdsa, verifyMessageCkbSecp256k1, verifyMessageDogeEcdsa, verifyMessageEvmPersonal, verifyMessageJoyId, verifyMessageNostrEvent, verifyMessageSecp256k1 };
1
+ import { $ as CellDep, $i as DecodedType, $n as SignerCkbPublicKey, $r as CodecByte, $t as ClientFindCellsResponse, Ai as apply, An as verifyMessageNostrEvent, Ar as keystoreEncrypt, At as HashTypeCodec, B as ClientPublicTestnet, Bi as NumLike, Bn as SignerDummy, Br as HASH_CKB_LENGTH, Bt as Epoch, Ci as CodecUint64LE, Cr as Wallet, Ct as depTypeFrom, Di as codecUintNumber, Dn as barrel_d_exports, Dr as SignPsbtOptionsLike, Dt as udtBalanceFrom, Ei as codecUint, Er as SignPsbtOptions, Et as isDaoOutputLimitExceeded, Fi as stringify, Fn as verifyMessageEvmPersonal, Ft as ScriptVec, G as ClientCacheMemory, Gi as numLeFromBytes, Gn as SignerDoge, Gr as Hasher, Gt as CellDepInfo, H as ClientJsonRpc, Hi as numBeToBytes, Hn as verifyMessageDogeEcdsa, Hr as HasherCkb, Ht as epochFrom, Ii as Proxy, In as SignerEvmAddressReadonly, It as hashTypeFrom, J as ErrorTransactionInsufficientCoin, Ji as numMin, Jn as MultisigCkbWitness, Jr as One, Jt as ClientBlockHeader, K as ClientCache, Ki as numLeToBytes, Kn as verifyMessageJoyId, Kr as FixedPoint, Kt as CellDepInfoLike, Li as AbstractConstructor, Ln as SignerEvm, Lt as hashTypeFromBytes, Mi as isWebview, Mn as SignerNostrPublicKeyReadonly, Mr as RequestorJsonRpcConfig, Mt as Script, Ni as reduceAsync, Nn as NostrEvent, Nt as ScriptLike, Oi as Entity, On as buildNostrEventFromMessage, Or as barrel_d_exports$1, Ot as LumosTransactionSkeletonType, Pi as sleep, Pn as SignerNostr, Pt as ScriptOpt, Q as CellAnyLike, Qi as CodecLike, Qn as SignerCkbPrivateKey, Qr as CodecBool, Qt as ClientBlockUncleLike, Ri as Constructor, Rn as SignerOpenLink, Rt as hashTypeToBytes, Si as CodecUint64BE, Sr as SignerType, St as calcDaoProfit, Ti as codecPadding, Tr as InputToSignLike, Tt as depTypeToBytes, U as ClientJsonRpcConfig, Ui as numFrom, Un as SignerDogePrivateKey, Ur as hashCkb, Ut as epochFromHex, V as ClientPublicMainnet, Vi as numBeFromBytes, Vn as messageHashDogeEcdsa, Vr as HASH_CKB_SHORT_LENGTH, Vt as EpochLike, W as Client, Wi as numFromBytes, Wn as SignerDogeAddressReadonly, Wr as hashCkbShort, Wt as epochToHex, X as Cell, Xi as numToHex, Xn as SignerMultisigCkbReadonly, Xr as fixedPointFrom, Xt as ClientBlockLike, Y as hashTypeId, Yi as numToBytes, Yn as MultisigCkbWitnessLike, Yr as Zero, Yt as ClientBlockHeaderLike, Z as CellAny, Zi as Codec, Zn as SignerCkbScriptReadonly, Zr as fixedPointToString, Zt as ClientBlockUncle, _i as CodecUint32LE, _n as ErrorClientWaitTransactionTimeout, _r as Signer, _t as Transaction, aa as bytesLen, ai as CodecRaw, an as ClientIndexerSearchKeyLike, ar as verifyMessageCkbSecp256k1, at as CellLike, bi as CodecUint512LE, bn as ScriptInfoLike, br as SignerMultisigNotEnoughSignaturesError, bt as WitnessArgsLike, ca as Bytes, ci as CodecUint128LE, cn as ClientTransactionResponse, cr as btcP2pkhAddressFromPublicKey, ct as CellOutputVec, da as bytesConcatTo, di as CodecUint16LE, dn as ErrorClientBaseLike, dr as messageHashBtcEcdsa, dt as DepTypeLike, ea as EncodableType, ei as CodecByte16, en as ClientFindTransactionsGroupedResponse, er as SignerCkbAlwaysSuccess, et as CellDepLike, fa as bytesEq, fi as CodecUint256, fn as ErrorClientDuplicatedTransaction, fr as verifyMessageBtcEcdsa, ft as OutPoint, gi as CodecUint32BE, gn as ErrorClientVerification, gr as Signature, gt as SinceLike, hi as CodecUint32, hn as ErrorClientResolveUnknown, hr as NetworkPreference, ht as Since, ia as HexLike, ii as CodecBytes, in as ClientIndexerSearchKeyFilterLike, ir as signMessageSecp256k1, it as CellInputVec, ji as gcd, jn as SignerNostrPrivateKey, jr as RequestorJsonRpc, jt as HashTypeLike, ki as codec, kn as nostrEventHash, kr as keystoreDecrypt, kt as HashType, la as BytesLike, li as CodecUint16, ln as ClientTransactionResponseLike, lr as btcPublicKeyFromP2pkhAddress, lt as DepType, ma as bytesTo, mi as CodecUint256LE, mn as ErrorClientRBFRejected, mr as SignerBtc, mt as RawTransaction, na as AddressLike, ni as CodecByte4, nn as ClientIndexerSearchKey, nr as messageHashCkbSecp256k1, nt as CellInput, oa as bytesLenUnsafe, oi as CodecUint128, on as ClientIndexerSearchKeyTransaction, or as verifyMessageSecp256k1, ot as CellOutput, pa as bytesFrom, pi as CodecUint256BE, pn as ErrorClientMaxFeeRateExceeded, pr as SignerBtcPublicKeyReadonly, pt as OutPointLike, q as ErrorTransactionInsufficientCapacity, qi as numMax, qn as SignerMultisigCkbPrivateKey, qr as FixedPointLike, qt as ClientBlock, ra as Hex, ri as CodecByte8, rn as ClientIndexerSearchKeyFilter, rr as recoverMessageSecp256k1, rt as CellInputLike, sa as hexFrom, si as CodecUint128BE, sn as ClientIndexerSearchKeyTransactionLike, sr as btcEcdsaPublicKeyHash, st as CellOutputLike, ta as Address, ti as CodecByte32, tn as ClientFindTransactionsResponse, tr as SECP256K1_SIGNATURE_LENGTH, tt as CellDepVec, ua as bytesConcat, ui as CodecUint16BE, un as ErrorClientBase, ur as btcVarLengthBytesFrom, ut as DepTypeCodec, vi as CodecUint512, vn as OutputsValidator, vr as SignerInfo, vt as TransactionLike, wi as CodecUint8, wr as InputToSign, wt as depTypeFromBytes, xi as CodecUint64, xn as TransactionStatus, xr as SignerSignType, xt as calcDaoClaimEpoch, yi as CodecUint512BE, yn as ScriptInfo, yr as SignerMultisig, yt as WitnessArgs, zi as Num, zn as SignerAlwaysError, zr as HasherKeecak256, zt as KnownScript } from "./advancedBarrel-B565UuhW.js";
2
+ export { AbstractConstructor, Address, AddressLike, Bytes, BytesLike, Cell, CellAny, CellAnyLike, CellDep, CellDepInfo, CellDepInfoLike, CellDepLike, CellDepVec, CellInput, CellInputLike, CellInputVec, CellLike, CellOutput, CellOutputLike, CellOutputVec, Client, ClientBlock, ClientBlockHeader, ClientBlockHeaderLike, ClientBlockLike, ClientBlockUncle, ClientBlockUncleLike, ClientCache, ClientCacheMemory, ClientFindCellsResponse, ClientFindTransactionsGroupedResponse, ClientFindTransactionsResponse, ClientIndexerSearchKey, ClientIndexerSearchKeyFilter, ClientIndexerSearchKeyFilterLike, ClientIndexerSearchKeyLike, ClientIndexerSearchKeyTransaction, ClientIndexerSearchKeyTransactionLike, ClientJsonRpc, ClientJsonRpcConfig, ClientPublicMainnet, ClientPublicTestnet, ClientTransactionResponse, ClientTransactionResponseLike, Codec, CodecBool, CodecByte, CodecByte16, CodecByte32, CodecByte4, CodecByte8, CodecBytes, CodecLike, CodecRaw, CodecUint128, CodecUint128BE, CodecUint128LE, CodecUint16, CodecUint16BE, CodecUint16LE, CodecUint256, CodecUint256BE, CodecUint256LE, CodecUint32, CodecUint32BE, CodecUint32LE, CodecUint512, CodecUint512BE, CodecUint512LE, CodecUint64, CodecUint64BE, CodecUint64LE, CodecUint8, Constructor, DecodedType, DepType, DepTypeCodec, DepTypeLike, EncodableType, Entity, Epoch, EpochLike, ErrorClientBase, ErrorClientBaseLike, ErrorClientDuplicatedTransaction, ErrorClientMaxFeeRateExceeded, ErrorClientRBFRejected, ErrorClientResolveUnknown, ErrorClientVerification, ErrorClientWaitTransactionTimeout, ErrorTransactionInsufficientCapacity, ErrorTransactionInsufficientCoin, FixedPoint, FixedPointLike, HASH_CKB_LENGTH, HASH_CKB_SHORT_LENGTH, HashType, HashTypeCodec, HashTypeLike, Hasher, HasherCkb, HasherKeecak256, Hex, HexLike, InputToSign, InputToSignLike, KnownScript, LumosTransactionSkeletonType, MultisigCkbWitness, MultisigCkbWitnessLike, NetworkPreference, NostrEvent, Num, NumLike, One, OutPoint, OutPointLike, OutputsValidator, Proxy, RawTransaction, RequestorJsonRpc, RequestorJsonRpcConfig, SECP256K1_SIGNATURE_LENGTH, Script, ScriptInfo, ScriptInfoLike, ScriptLike, ScriptOpt, ScriptVec, SignPsbtOptions, SignPsbtOptionsLike, Signature, Signer, SignerAlwaysError, SignerBtc, SignerBtcPublicKeyReadonly, SignerCkbAlwaysSuccess, SignerCkbPrivateKey, SignerCkbPublicKey, SignerCkbScriptReadonly, SignerDoge, SignerDogeAddressReadonly, SignerDogePrivateKey, SignerDummy, SignerEvm, SignerEvmAddressReadonly, SignerInfo, SignerMultisig, SignerMultisigCkbPrivateKey, SignerMultisigCkbReadonly, SignerMultisigNotEnoughSignaturesError, SignerNostr, SignerNostrPrivateKey, SignerNostrPublicKeyReadonly, SignerOpenLink, SignerSignType, SignerType, Since, SinceLike, Transaction, TransactionLike, TransactionStatus, Wallet, WitnessArgs, WitnessArgsLike, Zero, apply, btcEcdsaPublicKeyHash, btcP2pkhAddressFromPublicKey, btcPublicKeyFromP2pkhAddress, btcVarLengthBytesFrom, buildNostrEventFromMessage, bytesConcat, bytesConcatTo, bytesEq, bytesFrom, bytesLen, bytesLenUnsafe, bytesTo, calcDaoClaimEpoch, calcDaoProfit, barrel_d_exports as ccc, codec, codecPadding, codecUint, codecUintNumber, depTypeFrom, depTypeFromBytes, depTypeToBytes, epochFrom, epochFromHex, epochToHex, fixedPointFrom, fixedPointToString, gcd, hashCkb, hashCkbShort, hashTypeFrom, hashTypeFromBytes, hashTypeId, hashTypeToBytes, hexFrom, isDaoOutputLimitExceeded, isWebview, keystoreDecrypt, keystoreEncrypt, messageHashBtcEcdsa, messageHashCkbSecp256k1, messageHashDogeEcdsa, barrel_d_exports$1 as mol, nostrEventHash, numBeFromBytes, numBeToBytes, numFrom, numFromBytes, numLeFromBytes, numLeToBytes, numMax, numMin, numToBytes, numToHex, recoverMessageSecp256k1, reduceAsync, signMessageSecp256k1, sleep, stringify, udtBalanceFrom, verifyMessageBtcEcdsa, verifyMessageCkbSecp256k1, verifyMessageDogeEcdsa, verifyMessageEvmPersonal, verifyMessageJoyId, verifyMessageNostrEvent, verifyMessageSecp256k1 };
@@ -1 +1 @@
1
- Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./address.advanced-DG1gpW7t.js"),t=require("./barrel-C_zSgXKn.js");exports.Address=t.Q,exports.Bytes=e.qr,exports.Cell=e.a,exports.CellAny=e.o,Object.defineProperty(exports,"CellDep",{enumerable:!0,get:function(){return e.s}}),exports.CellDepInfo=e.nt,exports.CellDepVec=e.c,Object.defineProperty(exports,"CellInput",{enumerable:!0,get:function(){return e.l}}),exports.CellInputVec=e.u,Object.defineProperty(exports,"CellOutput",{enumerable:!0,get:function(){return e.d}}),exports.CellOutputVec=e.f,exports.Client=t.it,exports.ClientBlock=e.rt,exports.ClientBlockHeader=e.it,exports.ClientBlockUncle=e.at,exports.ClientCache=t.ot,exports.ClientCacheMemory=t.at,exports.ClientIndexerSearchKey=e.ot,exports.ClientIndexerSearchKeyFilter=e.st,exports.ClientIndexerSearchKeyTransaction=e.ct,exports.ClientJsonRpc=t.nt,exports.ClientPublicMainnet=t.tt,exports.ClientPublicTestnet=t.et,exports.ClientTransactionResponse=e.lt,exports.Codec=e.Kr,exports.CodecBool=e.yn,exports.CodecByte=e.bn,exports.CodecByte16=e.xn,exports.CodecByte32=e.Sn,exports.CodecByte4=e.Cn,exports.CodecByte8=e.wn,exports.CodecBytes=e.Tn,exports.CodecRaw=e.En,exports.CodecUint128=e.Dn,exports.CodecUint128BE=e.On,exports.CodecUint128LE=e.kn,exports.CodecUint16=e.An,exports.CodecUint16BE=e.jn,exports.CodecUint16LE=e.Mn,exports.CodecUint256=e.Nn,exports.CodecUint256BE=e.Pn,exports.CodecUint256LE=e.Fn,exports.CodecUint32=e.In,exports.CodecUint32BE=e.Ln,exports.CodecUint32LE=e.Rn,exports.CodecUint512=e.zn,exports.CodecUint512BE=e.Bn,exports.CodecUint512LE=e.Vn,exports.CodecUint64=e.Hn,exports.CodecUint64BE=e.Un,exports.CodecUint64LE=e.Wn,exports.CodecUint8=e.Gn,exports.DepTypeCodec=e.p,exports.Entity=e.lr,Object.defineProperty(exports,"Epoch",{enumerable:!0,get:function(){return e.xt}}),exports.ErrorClientBase=e.ut,exports.ErrorClientDuplicatedTransaction=e.dt,exports.ErrorClientMaxFeeRateExceeded=e.ft,exports.ErrorClientRBFRejected=e.pt,exports.ErrorClientResolveUnknown=e.mt,exports.ErrorClientVerification=e.ht,exports.ErrorClientWaitTransactionTimeout=e.gt,exports.ErrorTransactionInsufficientCapacity=e.E,exports.ErrorTransactionInsufficientCoin=e.D,exports.HASH_CKB_LENGTH=e.dr,exports.HASH_CKB_SHORT_LENGTH=e.fr,exports.HashTypeCodec=e.j,exports.HasherCkb=e.pr,exports.HasherKeecak256=t.ct,exports.InputToSign=t.J,exports.KnownScript=e.J,Object.defineProperty(exports,"MultisigCkbWitness",{enumerable:!0,get:function(){return t.m}}),exports.One=e.ar,Object.defineProperty(exports,"OutPoint",{enumerable:!0,get:function(){return e.m}}),exports.RawTransaction=e.h,exports.RequestorJsonRpc=t.rt,exports.SECP256K1_SIGNATURE_LENGTH=t.I,Object.defineProperty(exports,"Script",{enumerable:!0,get:function(){return e.M}}),exports.ScriptInfo=e._t,exports.ScriptOpt=e.N,exports.ScriptVec=e.P,exports.SignPsbtOptions=t.Y,exports.Signature=t.S,exports.Signer=t.C,exports.SignerAlwaysError=t.c,exports.SignerBtc=t.x,exports.SignerBtcPublicKeyReadonly=t.b,exports.SignerCkbAlwaysSuccess=t.y,exports.SignerCkbPrivateKey=t._,exports.SignerCkbPublicKey=t.v,exports.SignerCkbScriptReadonly=t.g,exports.SignerDoge=t.f,exports.SignerDogeAddressReadonly=t.d,exports.SignerDogePrivateKey=t.u,exports.SignerDummy=t.l,exports.SignerEvm=t.o,exports.SignerEvmAddressReadonly=t.a,exports.SignerInfo=t.w,exports.SignerMultisig=t.T,exports.SignerMultisigCkbPrivateKey=t.p,exports.SignerMultisigCkbReadonly=t.h,exports.SignerMultisigNotEnoughSignaturesError=t.E,exports.SignerNostr=t.i,exports.SignerNostrPrivateKey=t.n,exports.SignerNostrPublicKeyReadonly=t.r,exports.SignerOpenLink=t.s,exports.SignerSignType=t.D,exports.SignerType=t.O,Object.defineProperty(exports,"Since",{enumerable:!0,get:function(){return e.g}}),Object.defineProperty(exports,"Transaction",{enumerable:!0,get:function(){return e._}}),Object.defineProperty(exports,"WitnessArgs",{enumerable:!0,get:function(){return e.v}}),exports.Zero=e.or,exports.apply=e.Et,exports.btcEcdsaPublicKeyHash=t.H,exports.btcP2pkhAddressFromPublicKey=t.U,exports.btcPublicKeyFromP2pkhAddress=t.W,exports.btcVarLengthBytesFrom=t.G,exports.buildNostrEventFromMessage=t.k,exports.bytesConcat=e.Jr,exports.bytesConcatTo=e.Yr,exports.bytesEq=e.Xr,exports.bytesFrom=e.Zr,exports.bytesLen=e._r,exports.bytesLenUnsafe=e.vr,exports.bytesTo=e.Qr,exports.calcDaoClaimEpoch=e.y,exports.calcDaoProfit=e.b,Object.defineProperty(exports,"ccc",{enumerable:!0,get:function(){return t.t}}),exports.codec=e.ur,exports.codecPadding=e.Kn,exports.codecUint=e.qn,exports.codecUintNumber=e.Jn,exports.depTypeFrom=e.x,exports.depTypeFromBytes=e.S,exports.depTypeToBytes=e.C,exports.epochFrom=e.St,exports.epochFromHex=e.Ct,exports.epochToHex=e.wt,exports.fixedPointFrom=e.sr,exports.fixedPointToString=e.cr,exports.gcd=e.Dt,exports.hashCkb=e.mr,exports.hashCkbShort=e.hr,exports.hashTypeFrom=e.F,exports.hashTypeFromBytes=e.I,exports.hashTypeId=t.$,exports.hashTypeToBytes=e.L,exports.hexFrom=e.yr,exports.isDaoOutputLimitExceeded=e.w,exports.isWebview=e.Ot,exports.keystoreDecrypt=t.X,exports.keystoreEncrypt=t.Z,exports.messageHashBtcEcdsa=t.K,exports.messageHashCkbSecp256k1=t.L,exports.messageHashDogeEcdsa=t.N,Object.defineProperty(exports,"mol",{enumerable:!0,get:function(){return t.st}}),exports.nostrEventHash=t.A,exports.numBeFromBytes=e.Yn,exports.numBeToBytes=e.Xn,exports.numFrom=e.Zn,exports.numFromBytes=e.Qn,exports.numLeFromBytes=e.$n,exports.numLeToBytes=e.er,exports.numMax=e.tr,exports.numMin=e.nr,exports.numToBytes=e.rr,exports.numToHex=e.ir,exports.recoverMessageSecp256k1=t.R,exports.reduceAsync=e.kt,exports.signMessageSecp256k1=t.z,exports.sleep=e.At,exports.stringify=e.jt,exports.udtBalanceFrom=e.T,exports.verifyMessageBtcEcdsa=t.q,exports.verifyMessageCkbSecp256k1=t.B,exports.verifyMessageDogeEcdsa=t.P,exports.verifyMessageEvmPersonal=t.M,exports.verifyMessageJoyId=t.F,exports.verifyMessageNostrEvent=t.j,exports.verifyMessageSecp256k1=t.V;
1
+ Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./address.advanced-BTrmYDic.js"),t=require("./barrel-D8_wJLfr.js");exports.Address=t.Q,exports.Bytes=e.Gr,exports.Cell=e.a,exports.CellAny=e.o,Object.defineProperty(exports,"CellDep",{enumerable:!0,get:function(){return e.s}}),exports.CellDepInfo=e.nt,exports.CellDepVec=e.c,Object.defineProperty(exports,"CellInput",{enumerable:!0,get:function(){return e.l}}),exports.CellInputVec=e.u,Object.defineProperty(exports,"CellOutput",{enumerable:!0,get:function(){return e.d}}),exports.CellOutputVec=e.f,exports.Client=t.it,exports.ClientBlock=e.rt,exports.ClientBlockHeader=e.it,exports.ClientBlockUncle=e.at,exports.ClientCache=t.ot,exports.ClientCacheMemory=t.at,exports.ClientIndexerSearchKey=e.ot,exports.ClientIndexerSearchKeyFilter=e.st,exports.ClientIndexerSearchKeyTransaction=e.ct,exports.ClientJsonRpc=t.nt,exports.ClientPublicMainnet=t.tt,exports.ClientPublicTestnet=t.et,exports.ClientTransactionResponse=e.lt,exports.Codec=e.Wr,exports.CodecBool=e.yn,exports.CodecByte=e.bn,exports.CodecByte16=e.xn,exports.CodecByte32=e.Sn,exports.CodecByte4=e.Cn,exports.CodecByte8=e.wn,exports.CodecBytes=e.Tn,exports.CodecRaw=e.En,exports.CodecUint128=e.Dn,exports.CodecUint128BE=e.On,exports.CodecUint128LE=e.kn,exports.CodecUint16=e.An,exports.CodecUint16BE=e.jn,exports.CodecUint16LE=e.Mn,exports.CodecUint256=e.Nn,exports.CodecUint256BE=e.Pn,exports.CodecUint256LE=e.Fn,exports.CodecUint32=e.In,exports.CodecUint32BE=e.Ln,exports.CodecUint32LE=e.Rn,exports.CodecUint512=e.zn,exports.CodecUint512BE=e.Bn,exports.CodecUint512LE=e.Vn,exports.CodecUint64=e.Hn,exports.CodecUint64BE=e.Un,exports.CodecUint64LE=e.Wn,exports.CodecUint8=e.Gn,exports.DepTypeCodec=e.p,exports.Entity=e.lr,Object.defineProperty(exports,"Epoch",{enumerable:!0,get:function(){return e.xt}}),exports.ErrorClientBase=e.ut,exports.ErrorClientDuplicatedTransaction=e.dt,exports.ErrorClientMaxFeeRateExceeded=e.ft,exports.ErrorClientRBFRejected=e.pt,exports.ErrorClientResolveUnknown=e.mt,exports.ErrorClientVerification=e.ht,exports.ErrorClientWaitTransactionTimeout=e.gt,exports.ErrorTransactionInsufficientCapacity=e.E,exports.ErrorTransactionInsufficientCoin=e.D,exports.HASH_CKB_LENGTH=e.dr,exports.HASH_CKB_SHORT_LENGTH=e.fr,exports.HashTypeCodec=e.j,exports.HasherCkb=e.pr,exports.HasherKeecak256=t.lt,exports.InputToSign=t.J,exports.KnownScript=e.J,Object.defineProperty(exports,"MultisigCkbWitness",{enumerable:!0,get:function(){return t.m}}),exports.One=e.ar,Object.defineProperty(exports,"OutPoint",{enumerable:!0,get:function(){return e.m}}),Object.defineProperty(exports,"Proxy",{enumerable:!0,get:function(){return t.st}}),exports.RawTransaction=e.h,exports.RequestorJsonRpc=t.rt,exports.SECP256K1_SIGNATURE_LENGTH=t.I,Object.defineProperty(exports,"Script",{enumerable:!0,get:function(){return e.M}}),exports.ScriptInfo=e._t,exports.ScriptOpt=e.N,exports.ScriptVec=e.P,exports.SignPsbtOptions=t.Y,exports.Signature=t.S,exports.Signer=t.C,exports.SignerAlwaysError=t.c,exports.SignerBtc=t.x,exports.SignerBtcPublicKeyReadonly=t.b,exports.SignerCkbAlwaysSuccess=t.y,exports.SignerCkbPrivateKey=t._,exports.SignerCkbPublicKey=t.v,exports.SignerCkbScriptReadonly=t.g,exports.SignerDoge=t.f,exports.SignerDogeAddressReadonly=t.d,exports.SignerDogePrivateKey=t.u,exports.SignerDummy=t.l,exports.SignerEvm=t.o,exports.SignerEvmAddressReadonly=t.a,exports.SignerInfo=t.w,exports.SignerMultisig=t.T,exports.SignerMultisigCkbPrivateKey=t.p,exports.SignerMultisigCkbReadonly=t.h,exports.SignerMultisigNotEnoughSignaturesError=t.E,exports.SignerNostr=t.i,exports.SignerNostrPrivateKey=t.n,exports.SignerNostrPublicKeyReadonly=t.r,exports.SignerOpenLink=t.s,exports.SignerSignType=t.D,exports.SignerType=t.O,Object.defineProperty(exports,"Since",{enumerable:!0,get:function(){return e.g}}),Object.defineProperty(exports,"Transaction",{enumerable:!0,get:function(){return e._}}),Object.defineProperty(exports,"WitnessArgs",{enumerable:!0,get:function(){return e.v}}),exports.Zero=e.or,exports.apply=e.Et,exports.btcEcdsaPublicKeyHash=t.H,exports.btcP2pkhAddressFromPublicKey=t.U,exports.btcPublicKeyFromP2pkhAddress=t.W,exports.btcVarLengthBytesFrom=t.G,exports.buildNostrEventFromMessage=t.k,exports.bytesConcat=e.Kr,exports.bytesConcatTo=e.qr,exports.bytesEq=e.Jr,exports.bytesFrom=e.Yr,exports.bytesLen=e._r,exports.bytesLenUnsafe=e.vr,exports.bytesTo=e.Xr,exports.calcDaoClaimEpoch=e.y,exports.calcDaoProfit=e.b,Object.defineProperty(exports,"ccc",{enumerable:!0,get:function(){return t.t}}),exports.codec=e.ur,exports.codecPadding=e.Kn,exports.codecUint=e.qn,exports.codecUintNumber=e.Jn,exports.depTypeFrom=e.x,exports.depTypeFromBytes=e.S,exports.depTypeToBytes=e.C,exports.epochFrom=e.St,exports.epochFromHex=e.Ct,exports.epochToHex=e.wt,exports.fixedPointFrom=e.sr,exports.fixedPointToString=e.cr,exports.gcd=e.Dt,exports.hashCkb=e.mr,exports.hashCkbShort=e.hr,exports.hashTypeFrom=e.F,exports.hashTypeFromBytes=e.I,exports.hashTypeId=t.$,exports.hashTypeToBytes=e.L,exports.hexFrom=e.yr,exports.isDaoOutputLimitExceeded=e.w,exports.isWebview=e.Ot,exports.keystoreDecrypt=t.X,exports.keystoreEncrypt=t.Z,exports.messageHashBtcEcdsa=t.K,exports.messageHashCkbSecp256k1=t.L,exports.messageHashDogeEcdsa=t.N,Object.defineProperty(exports,"mol",{enumerable:!0,get:function(){return t.ct}}),exports.nostrEventHash=t.A,exports.numBeFromBytes=e.Yn,exports.numBeToBytes=e.Xn,exports.numFrom=e.Zn,exports.numFromBytes=e.Qn,exports.numLeFromBytes=e.$n,exports.numLeToBytes=e.er,exports.numMax=e.tr,exports.numMin=e.nr,exports.numToBytes=e.rr,exports.numToHex=e.ir,exports.recoverMessageSecp256k1=t.R,exports.reduceAsync=e.kt,exports.signMessageSecp256k1=t.z,exports.sleep=e.At,exports.stringify=e.jt,exports.udtBalanceFrom=e.T,exports.verifyMessageBtcEcdsa=t.q,exports.verifyMessageCkbSecp256k1=t.B,exports.verifyMessageDogeEcdsa=t.P,exports.verifyMessageEvmPersonal=t.M,exports.verifyMessageJoyId=t.F,exports.verifyMessageNostrEvent=t.j,exports.verifyMessageSecp256k1=t.V;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ckb-ccc/core",
3
- "version": "1.18.1",
3
+ "version": "1.19.0",
4
4
  "description": "Core of CCC - CKBer's Codebase",
5
5
  "author": "Hanssen0 <hanssen0@hanssen0.com>",
6
6
  "license": "MIT",
@@ -40,7 +40,7 @@
40
40
  "eslint-plugin-prettier": "^5.5.6",
41
41
  "prettier": "^3.8.4",
42
42
  "prettier-plugin-organize-imports": "^4.3.0",
43
- "tsdown": "0.22.12",
43
+ "tsdown": "0.22.14",
44
44
  "@typescript/native": "npm:typescript@^7.0.2",
45
45
  "typescript": "npm:@typescript/typescript6@^6.0.2",
46
46
  "typescript-eslint": "^8.61.1",
@@ -63,11 +63,11 @@
63
63
  },
64
64
  "types": "./dist.commonjs/index.d.ts",
65
65
  "inlinedDependencies": {
66
- "@noble/ciphers": "2.2.0",
67
- "@noble/curves": "2.2.0",
66
+ "@noble/ciphers": "2.3.0",
67
+ "@noble/curves": "2.3.0",
68
68
  "@noble/hashes": [
69
69
  "1.8.0",
70
- "2.2.0"
70
+ "2.3.0"
71
71
  ],
72
72
  "base-x": "5.0.1",
73
73
  "bs58": "6.0.0",
@@ -398,6 +398,7 @@ export class CellAny {
398
398
  */
399
399
  static from(cell: CellAnyLike): CellAny {
400
400
  if (cell instanceof CellAny) {
401
+ cell.cellOutput = CellOutput.from(cell.cellOutput, cell.outputData);
401
402
  return cell;
402
403
  }
403
404
 
@@ -558,6 +559,7 @@ export class Cell extends CellAny {
558
559
 
559
560
  static from(cell: CellLike): Cell {
560
561
  if (cell instanceof Cell) {
562
+ cell.cellOutput = CellOutput.from(cell.cellOutput, cell.outputData);
561
563
  return cell;
562
564
  }
563
565
 
@@ -1278,6 +1280,9 @@ export class Transaction extends Entity.Base<TransactionLike, Transaction>() {
1278
1280
 
1279
1281
  static from(tx: TransactionLike): Transaction {
1280
1282
  if (tx instanceof Transaction) {
1283
+ tx.outputs.forEach((output, i) => {
1284
+ tx.outputs[i] = CellOutput.from(output, tx.outputsData[i] ?? "0x");
1285
+ });
1281
1286
  return tx;
1282
1287
  }
1283
1288
  const outputs =
@@ -1682,7 +1687,9 @@ export class Transaction extends Entity.Base<TransactionLike, Transaction>() {
1682
1687
  );
1683
1688
  }
1684
1689
 
1685
- this.outputsData[i] = hexFrom(data);
1690
+ const outputData = hexFrom(data);
1691
+ this.outputs[i] = CellOutput.from(this.outputs[i], outputData);
1692
+ this.outputsData[i] = outputData;
1686
1693
  }
1687
1694
 
1688
1695
  /**
@@ -0,0 +1,11 @@
1
+ export type Constructor<
2
+ T,
3
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
4
+ Args extends any[] = any[],
5
+ > = new (...args: Args) => T;
6
+
7
+ export type AbstractConstructor<
8
+ T,
9
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
10
+ Args extends any[] = any[],
11
+ > = abstract new (...args: Args) => T;
@@ -1,6 +1,9 @@
1
1
  import { Zero } from "../fixedPoint/index.js";
2
2
  import { NumLike, numFrom, numToHex, type Num } from "../num/index.js";
3
3
 
4
+ export * from "./constructor.js";
5
+ export * from "./proxy.js";
6
+
4
7
  /**
5
8
  * A type safe way to apply a transformer on a value if it's not empty.
6
9
  * @public
@@ -173,11 +176,6 @@ export function sleep(ms: NumLike) {
173
176
  return new Promise((resolve) => setTimeout(resolve, Number(numFrom(ms))));
174
177
  }
175
178
 
176
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
177
- export type Constructor<T, Args extends any[] = any[]> = {
178
- new (...args: Args): T;
179
- };
180
-
181
179
  /**
182
180
  * @public
183
181
  */
@@ -0,0 +1,165 @@
1
+ import type { AbstractConstructor, Constructor } from "./constructor.js";
2
+
3
+ /**
4
+ * Utilities for creating composition wrappers.
5
+ *
6
+ * @example
7
+ * ```ts
8
+ * class Wrapper extends Proxy.Base(Client) {
9
+ * static readonly [Proxy.localKeys] = ["feeRate"];
10
+ * public feeRate = 1000;
11
+ *
12
+ * request(): void {
13
+ * this[Proxy.inner].request();
14
+ * }
15
+ * }
16
+ *
17
+ * const wrapper = new Wrapper(client);
18
+ * ```
19
+ *
20
+ * @public
21
+ */
22
+ // eslint-disable-next-line @typescript-eslint/no-namespace
23
+ export namespace Proxy {
24
+ /** The property key for accessing the immediately wrapped object. */
25
+ export const inner = "@ckb-ccc/core.Proxy.inner";
26
+
27
+ /**
28
+ * The static metadata key for instance fields that belong to the wrapper.
29
+ * Every wrapper instance field must be listed here. Prototype members are
30
+ * detected automatically.
31
+ */
32
+ export const localKeys: unique symbol = Symbol.for(
33
+ "@ckb-ccc/core.Proxy.localKeys",
34
+ );
35
+
36
+ /**
37
+ * Creates a wrapper base that delegates non-local members to an inner instance.
38
+ * Its constructor accepts the inner instance and does not invoke `BaseClass`.
39
+ *
40
+ * @remarks
41
+ * Wrapping an abstract class may require suppressing TS2655 because its abstract
42
+ * members are implemented by runtime delegation.
43
+ *
44
+ * @param BaseClass - The class represented by the wrapper.
45
+ */
46
+ export function Base<BaseClass extends AbstractConstructor<object>>(
47
+ BaseClass: BaseClass,
48
+ ): Omit<BaseClass, "prototype"> &
49
+ Constructor<
50
+ InstanceType<BaseClass> & {
51
+ readonly [inner]: InstanceType<BaseClass>;
52
+ },
53
+ [InstanceType<BaseClass>]
54
+ > {
55
+ type T = InstanceType<BaseClass>;
56
+
57
+ class ProxyClass {
58
+ public readonly [inner]: T;
59
+
60
+ constructor(innerValue: T) {
61
+ this[inner] = innerValue;
62
+
63
+ const allLocalKeys = new Set<PropertyKey>([inner]);
64
+ const forwardedFunctions = new Map<
65
+ PropertyKey,
66
+ { value: unknown; wrapper: (...args: unknown[]) => unknown }
67
+ >();
68
+
69
+ // Members introduced between the concrete subclass and ProxyClass belong
70
+ // to the wrapper. Stop before ProxyClass so members inherited from Base
71
+ // continue to be forwarded to inner.
72
+ for (
73
+ let prototype: object | null = new.target.prototype;
74
+ prototype !== null && prototype !== ProxyClass.prototype;
75
+ prototype = Reflect.getPrototypeOf(prototype)
76
+ ) {
77
+ // Every member defined directly on this prototype belongs to the wrapper.
78
+ for (const property of Reflect.ownKeys(prototype)) {
79
+ allLocalKeys.add(property);
80
+ }
81
+
82
+ // Resolve the class that owns this prototype and merge the local keys
83
+ // declared in its static metadata.
84
+ const constructor = Object.getOwnPropertyDescriptor(
85
+ prototype,
86
+ "constructor",
87
+ )?.value as unknown;
88
+
89
+ try {
90
+ const metadataKeys = Object.getOwnPropertyDescriptor(
91
+ constructor,
92
+ localKeys,
93
+ )?.value as readonly PropertyKey[] | undefined;
94
+ for (const property of metadataKeys ?? []) {
95
+ allLocalKeys.add(property);
96
+ }
97
+ } catch {}
98
+ }
99
+
100
+ const isLocalProperty = (
101
+ target: object,
102
+ property: PropertyKey,
103
+ ): boolean =>
104
+ allLocalKeys.has(property) ||
105
+ Reflect.getOwnPropertyDescriptor(target, property) !== undefined;
106
+
107
+ return new globalThis.Proxy(this, {
108
+ deleteProperty: (target, property) => {
109
+ return Reflect.deleteProperty(
110
+ isLocalProperty(target, property) ? target : innerValue,
111
+ property,
112
+ );
113
+ },
114
+ get: (target, property, receiver) => {
115
+ const isLocal = isLocalProperty(target, property);
116
+ const value = Reflect.get(
117
+ isLocal ? target : innerValue,
118
+ property,
119
+ isLocal ? receiver : innerValue,
120
+ ) as unknown;
121
+ if (isLocal || typeof value !== "function") {
122
+ return value;
123
+ }
124
+
125
+ let cached = forwardedFunctions.get(property);
126
+ if (cached?.value !== value) {
127
+ cached = {
128
+ value,
129
+ wrapper: (...args: unknown[]): unknown =>
130
+ Reflect.apply(value, innerValue, args) as unknown,
131
+ };
132
+ forwardedFunctions.set(property, cached);
133
+ }
134
+ return cached.wrapper;
135
+ },
136
+ has: (target, property) => {
137
+ return Reflect.has(
138
+ isLocalProperty(target, property) ? target : innerValue,
139
+ property,
140
+ );
141
+ },
142
+ set: (target, property, value, receiver) => {
143
+ const isLocal = isLocalProperty(target, property);
144
+ return Reflect.set(
145
+ isLocal ? target : innerValue,
146
+ property,
147
+ value,
148
+ isLocal ? receiver : innerValue,
149
+ );
150
+ },
151
+ });
152
+ }
153
+ }
154
+
155
+ // Preserve the runtime instance and static inheritance relationships without
156
+ // constructing a second BaseClass instance as the proxy target.
157
+ const BasePrototype = (BaseClass as unknown as { prototype: object })
158
+ .prototype;
159
+ Object.setPrototypeOf(ProxyClass.prototype, BasePrototype);
160
+ Object.setPrototypeOf(ProxyClass, BaseClass);
161
+
162
+ return ProxyClass as unknown as Omit<BaseClass, "prototype"> &
163
+ Constructor<T & { readonly [inner]: T }, [T]>;
164
+ }
165
+ }