@ckb-ccc/core 1.15.0 → 1.16.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.
Files changed (53) hide show
  1. package/CHANGELOG.md +22 -0
  2. package/README.md +2 -0
  3. package/dist/address.advanced-C5UrS2uk.mjs +2 -0
  4. package/dist/address.advanced-C5UrS2uk.mjs.map +1 -0
  5. package/dist/advanced.d.mts +1 -1
  6. package/dist/advanced.mjs +1 -1
  7. package/dist/{advancedBarrel-Dwyn3WMm.d.mts → advancedBarrel-66JgvInl.d.mts} +146 -4
  8. package/dist/advancedBarrel-66JgvInl.d.mts.map +1 -0
  9. package/dist/advancedBarrel.d.mts +1 -1
  10. package/dist/advancedBarrel.mjs +1 -1
  11. package/dist/{barrel-DO-IW8Ui.mjs → barrel-yZm3ICzn.mjs} +2 -2
  12. package/dist/barrel-yZm3ICzn.mjs.map +1 -0
  13. package/dist/barrel.d.mts +1 -1
  14. package/dist/barrel.mjs +1 -1
  15. package/dist/index.d.mts +1 -1
  16. package/dist/index.mjs +1 -1
  17. package/dist.commonjs/address.advanced-CQJ24Iei.js +2 -0
  18. package/dist.commonjs/address.advanced-CQJ24Iei.js.map +1 -0
  19. package/dist.commonjs/advanced.d.ts +1 -1
  20. package/dist.commonjs/advanced.js +1 -1
  21. package/dist.commonjs/{advancedBarrel-D97MfkUZ.d.ts → advancedBarrel-CiJnF8me.d.ts} +146 -4
  22. package/dist.commonjs/advancedBarrel-CiJnF8me.d.ts.map +1 -0
  23. package/dist.commonjs/advancedBarrel.d.ts +1 -1
  24. package/dist.commonjs/advancedBarrel.js +1 -1
  25. package/dist.commonjs/{barrel-D5PRJCB6.js → barrel-CddEgDBp.js} +2 -2
  26. package/dist.commonjs/barrel-CddEgDBp.js.map +1 -0
  27. package/dist.commonjs/barrel.d.ts +1 -1
  28. package/dist.commonjs/barrel.js +1 -1
  29. package/dist.commonjs/index.d.ts +1 -1
  30. package/dist.commonjs/index.js +1 -1
  31. package/package.json +2 -2
  32. package/src/ckb/epoch.ts +9 -9
  33. package/src/ckb/script.ts +10 -2
  34. package/src/ckb/transaction.ts +45 -31
  35. package/src/client/cache/cache.ts +1 -2
  36. package/src/client/cache/memory.ts +1 -2
  37. package/src/client/client.ts +1 -2
  38. package/src/client/clientPublicMainnet.advanced.ts +17 -0
  39. package/src/client/clientPublicTestnet.advanced.ts +17 -0
  40. package/src/client/clientTypes.ts +1 -6
  41. package/src/client/jsonRpc/transformers.ts +1 -2
  42. package/src/client/knownScript.ts +1 -0
  43. package/src/codec/entity.ts +2 -1
  44. package/src/molecule/codec.ts +19 -15
  45. package/src/utils/index.ts +3 -3
  46. package/dist/address.advanced-BHxWrbFc.mjs +0 -2
  47. package/dist/address.advanced-BHxWrbFc.mjs.map +0 -1
  48. package/dist/advancedBarrel-Dwyn3WMm.d.mts.map +0 -1
  49. package/dist/barrel-DO-IW8Ui.mjs.map +0 -1
  50. package/dist.commonjs/address.advanced-UCU9Hn8t.js +0 -2
  51. package/dist.commonjs/address.advanced-UCU9Hn8t.js.map +0 -1
  52. package/dist.commonjs/advancedBarrel-D97MfkUZ.d.ts.map +0 -1
  53. package/dist.commonjs/barrel-D5PRJCB6.js.map +0 -1
@@ -1,2 +1,2 @@
1
- import { $ as CellDep, $i as AddressLike, $n as SignerCkbPublicKey, $r as CodecByte16, $t as ClientFindCellsResponse, Ai as apply, An as verifyMessageNostrEvent, Ar as RequestorJsonRpc, At as HashTypeCodec, B as ClientPublicTestnet, Bi as numFrom, Bn as SignerDummy, Br as HASH_CKB_SHORT_LENGTH, Bt as Epoch, Ci as CodecUint8, Cr as InputToSign, Ct as depTypeFrom, Di as Entity, Dr as barrel_d_exports, Dt as udtBalanceFrom, Ei as codecUintNumber, Er as SignPsbtOptionsLike, Et as isDaoOutputLimitExceeded, Fi as stringify, Fn as verifyMessageEvmPersonal, Ft as ScriptVec, G as ClientCacheMemory, Gi as numMin, Gn as SignerDoge, Gr as FixedPoint, Gt as CellDepInfo, H as ClientJsonRpc, Hi as numLeFromBytes, Hn as verifyMessageDogeEcdsa, Hr as hashCkb, Ht as epochFrom, Ii as Num, In as SignerEvmAddressReadonly, It as hashTypeFrom, J as ErrorTransactionInsufficientCoin, Ji as Codec, Jn as MultisigCkbWitness, Jr as Zero, Jt as ClientBlockHeader, K as ClientCache, Ki as numToBytes, Kn as verifyMessageJoyId, Kr as FixedPointLike, Kt as CellDepInfoLike, Li as NumLike, Ln as SignerEvm, Lt as hashTypeFromBytes, Mi as isWebview, Mn as SignerNostrPublicKeyReadonly, Mt as Script, Ni as reduceAsync, Nn as NostrEvent, Nt as ScriptLike, Oi as codec, On as buildNostrEventFromMessage, Or as keystoreDecrypt, Ot as LumosTransactionSkeletonType, Pi as sleep, Pn as SignerNostr, Pt as ScriptOpt, Q as CellAnyLike, Qi as Address, Qn as SignerCkbPrivateKey, Qr as CodecByte, Qt as ClientBlockUncleLike, Ri as numBeFromBytes, Rn as SignerOpenLink, Rr as HasherKeecak256, Rt as hashTypeToBytes, Si as CodecUint64LE, Sr as Wallet, St as calcDaoProfit, Ti as codecUint, Tr as SignPsbtOptions, Tt as depTypeToBytes, U as ClientJsonRpcConfig, Ui as numLeToBytes, Un as SignerDogePrivateKey, Ur as hashCkbShort, Ut as epochFromHex, V as ClientPublicMainnet, Vi as numFromBytes, Vn as messageHashDogeEcdsa, Vr as HasherCkb, Vt as EpochLike, W as Client, Wi as numMax, Wn as SignerDogeAddressReadonly, Wr as Hasher, Wt as epochToHex, X as Cell, Xi as DecodedType, Xn as SignerMultisigCkbReadonly, Xr as fixedPointToString, Xt as ClientBlockLike, Y as hashTypeId, Yi as CodecLike, Yn as MultisigCkbWitnessLike, Yr as fixedPointFrom, Yt as ClientBlockHeaderLike, Z as CellAny, Zi as EncodableType, Zn as SignerCkbScriptReadonly, Zr as CodecBool, Zt as ClientBlockUncle, _i as CodecUint512, _n as ErrorClientWaitTransactionTimeout, _r as SignerInfo, _t as Transaction, aa as Bytes, ai as CodecUint128, an as ClientIndexerSearchKeyLike, ar as verifyMessageSecp256k1, at as CellLike, bi as CodecUint64, bn as ScriptInfoLike, br as SignerSignType, bt as WitnessArgsLike, ca as bytesConcatTo, ci as CodecUint16, cn as ClientTransactionResponse, cr as btcPublicKeyFromP2pkhAddress, ct as CellOutputVec, da as bytesTo, di as CodecUint256, dn as ErrorClientBaseLike, dr as verifyMessageBtcEcdsa, dt as DepTypeLike, ea as Hex, ei as CodecByte32, en as ClientFindTransactionsGroupedResponse, er as SECP256K1_SIGNATURE_LENGTH, et as CellDepLike, fi as CodecUint256BE, fn as ErrorClientDuplicatedTransaction, fr as SignerBtcPublicKeyReadonly, ft as OutPoint, gi as CodecUint32LE, gn as ErrorClientVerification, gr as Signer, gt as SinceLike, hi as CodecUint32BE, hn as ErrorClientResolveUnknown, hr as Signature, ht as Since, ia as hexFrom, ii as CodecRaw, in as ClientIndexerSearchKeyFilterLike, ir as verifyMessageCkbSecp256k1, it as CellInputVec, ji as gcd, jn as SignerNostrPrivateKey, jr as RequestorJsonRpcConfig, jt as HashTypeLike, ki as Constructor, kn as nostrEventHash, kr as keystoreEncrypt, kt as HashType, la as bytesEq, li as CodecUint16BE, ln as ClientTransactionResponseLike, lr as btcVarLengthBytesFrom, lt as DepType, mi as CodecUint32, mn as ErrorClientRBFRejected, mr as NetworkPreference, mt as RawTransaction, na as bytesLen, ni as CodecByte8, nn as ClientIndexerSearchKey, nr as recoverMessageSecp256k1, nt as CellInput, oa as BytesLike, oi as CodecUint128BE, on as ClientIndexerSearchKeyTransaction, or as btcEcdsaPublicKeyHash, ot as CellOutput, pi as CodecUint256LE, pn as ErrorClientMaxFeeRateExceeded, pr as SignerBtc, pt as OutPointLike, q as ErrorTransactionInsufficientCapacity, qi as numToHex, qn as SignerMultisigCkbPrivateKey, qr as One, qt as ClientBlock, ra as bytesLenUnsafe, ri as CodecBytes, rn as ClientIndexerSearchKeyFilter, rr as signMessageSecp256k1, rt as CellInputLike, sa as bytesConcat, si as CodecUint128LE, sn as ClientIndexerSearchKeyTransactionLike, sr as btcP2pkhAddressFromPublicKey, st as CellOutputLike, ta as HexLike, ti as CodecByte4, tn as ClientFindTransactionsResponse, tr as messageHashCkbSecp256k1, tt as CellDepVec, ua as bytesFrom, ui as CodecUint16LE, un as ErrorClientBase, ur as messageHashBtcEcdsa, ut as DepTypeCodec, vi as CodecUint512BE, vn as OutputsValidator, vr as SignerMultisig, vt as TransactionLike, wi as codecPadding, wr as InputToSignLike, wt as depTypeFromBytes, xi as CodecUint64BE, xn as TransactionStatus, xr as SignerType, xt as calcDaoClaimEpoch, yi as CodecUint512LE, yn as ScriptInfo, yr as SignerMultisigNotEnoughSignaturesError, yt as WitnessArgs, zi as numBeToBytes, zn as SignerAlwaysError, zr as HASH_CKB_LENGTH, zt as KnownScript } from "./advancedBarrel-D97MfkUZ.js";
1
+ import { $ as CellDep, $i as AddressLike, $n as SignerCkbPublicKey, $r as CodecByte16, $t as ClientFindCellsResponse, Ai as apply, An as verifyMessageNostrEvent, Ar as RequestorJsonRpc, At as HashTypeCodec, B as ClientPublicTestnet, Bi as numFrom, Bn as SignerDummy, Br as HASH_CKB_SHORT_LENGTH, Bt as Epoch, Ci as CodecUint8, Cr as InputToSign, Ct as depTypeFrom, Di as Entity, Dr as barrel_d_exports, Dt as udtBalanceFrom, Ei as codecUintNumber, Er as SignPsbtOptionsLike, Et as isDaoOutputLimitExceeded, Fi as stringify, Fn as verifyMessageEvmPersonal, Ft as ScriptVec, G as ClientCacheMemory, Gi as numMin, Gn as SignerDoge, Gr as FixedPoint, Gt as CellDepInfo, H as ClientJsonRpc, Hi as numLeFromBytes, Hn as verifyMessageDogeEcdsa, Hr as hashCkb, Ht as epochFrom, Ii as Num, In as SignerEvmAddressReadonly, It as hashTypeFrom, J as ErrorTransactionInsufficientCoin, Ji as Codec, Jn as MultisigCkbWitness, Jr as Zero, Jt as ClientBlockHeader, K as ClientCache, Ki as numToBytes, Kn as verifyMessageJoyId, Kr as FixedPointLike, Kt as CellDepInfoLike, Li as NumLike, Ln as SignerEvm, Lt as hashTypeFromBytes, Mi as isWebview, Mn as SignerNostrPublicKeyReadonly, Mt as Script, Ni as reduceAsync, Nn as NostrEvent, Nt as ScriptLike, Oi as codec, On as buildNostrEventFromMessage, Or as keystoreDecrypt, Ot as LumosTransactionSkeletonType, Pi as sleep, Pn as SignerNostr, Pt as ScriptOpt, Q as CellAnyLike, Qi as Address, Qn as SignerCkbPrivateKey, Qr as CodecByte, Qt as ClientBlockUncleLike, Ri as numBeFromBytes, Rn as SignerOpenLink, Rr as HasherKeecak256, Rt as hashTypeToBytes, Si as CodecUint64LE, Sr as Wallet, St as calcDaoProfit, Ti as codecUint, Tr as SignPsbtOptions, Tt as depTypeToBytes, U as ClientJsonRpcConfig, Ui as numLeToBytes, Un as SignerDogePrivateKey, Ur as hashCkbShort, Ut as epochFromHex, V as ClientPublicMainnet, Vi as numFromBytes, Vn as messageHashDogeEcdsa, Vr as HasherCkb, Vt as EpochLike, W as Client, Wi as numMax, Wn as SignerDogeAddressReadonly, Wr as Hasher, Wt as epochToHex, X as Cell, Xi as DecodedType, Xn as SignerMultisigCkbReadonly, Xr as fixedPointToString, Xt as ClientBlockLike, Y as hashTypeId, Yi as CodecLike, Yn as MultisigCkbWitnessLike, Yr as fixedPointFrom, Yt as ClientBlockHeaderLike, Z as CellAny, Zi as EncodableType, Zn as SignerCkbScriptReadonly, Zr as CodecBool, Zt as ClientBlockUncle, _i as CodecUint512, _n as ErrorClientWaitTransactionTimeout, _r as SignerInfo, _t as Transaction, aa as Bytes, ai as CodecUint128, an as ClientIndexerSearchKeyLike, ar as verifyMessageSecp256k1, at as CellLike, bi as CodecUint64, bn as ScriptInfoLike, br as SignerSignType, bt as WitnessArgsLike, ca as bytesConcatTo, ci as CodecUint16, cn as ClientTransactionResponse, cr as btcPublicKeyFromP2pkhAddress, ct as CellOutputVec, da as bytesTo, di as CodecUint256, dn as ErrorClientBaseLike, dr as verifyMessageBtcEcdsa, dt as DepTypeLike, ea as Hex, ei as CodecByte32, en as ClientFindTransactionsGroupedResponse, er as SECP256K1_SIGNATURE_LENGTH, et as CellDepLike, fi as CodecUint256BE, fn as ErrorClientDuplicatedTransaction, fr as SignerBtcPublicKeyReadonly, ft as OutPoint, gi as CodecUint32LE, gn as ErrorClientVerification, gr as Signer, gt as SinceLike, hi as CodecUint32BE, hn as ErrorClientResolveUnknown, hr as Signature, ht as Since, ia as hexFrom, ii as CodecRaw, in as ClientIndexerSearchKeyFilterLike, ir as verifyMessageCkbSecp256k1, it as CellInputVec, ji as gcd, jn as SignerNostrPrivateKey, jr as RequestorJsonRpcConfig, jt as HashTypeLike, ki as Constructor, kn as nostrEventHash, kr as keystoreEncrypt, kt as HashType, la as bytesEq, li as CodecUint16BE, ln as ClientTransactionResponseLike, lr as btcVarLengthBytesFrom, lt as DepType, mi as CodecUint32, mn as ErrorClientRBFRejected, mr as NetworkPreference, mt as RawTransaction, na as bytesLen, ni as CodecByte8, nn as ClientIndexerSearchKey, nr as recoverMessageSecp256k1, nt as CellInput, oa as BytesLike, oi as CodecUint128BE, on as ClientIndexerSearchKeyTransaction, or as btcEcdsaPublicKeyHash, ot as CellOutput, pi as CodecUint256LE, pn as ErrorClientMaxFeeRateExceeded, pr as SignerBtc, pt as OutPointLike, q as ErrorTransactionInsufficientCapacity, qi as numToHex, qn as SignerMultisigCkbPrivateKey, qr as One, qt as ClientBlock, ra as bytesLenUnsafe, ri as CodecBytes, rn as ClientIndexerSearchKeyFilter, rr as signMessageSecp256k1, rt as CellInputLike, sa as bytesConcat, si as CodecUint128LE, sn as ClientIndexerSearchKeyTransactionLike, sr as btcP2pkhAddressFromPublicKey, st as CellOutputLike, ta as HexLike, ti as CodecByte4, tn as ClientFindTransactionsResponse, tr as messageHashCkbSecp256k1, tt as CellDepVec, ua as bytesFrom, ui as CodecUint16LE, un as ErrorClientBase, ur as messageHashBtcEcdsa, ut as DepTypeCodec, vi as CodecUint512BE, vn as OutputsValidator, vr as SignerMultisig, vt as TransactionLike, wi as codecPadding, wr as InputToSignLike, wt as depTypeFromBytes, xi as CodecUint64BE, xn as TransactionStatus, xr as SignerType, xt as calcDaoClaimEpoch, yi as CodecUint512LE, yn as ScriptInfo, yr as SignerMultisigNotEnoughSignaturesError, yt as WitnessArgs, zi as numBeToBytes, zn as SignerAlwaysError, zr as HASH_CKB_LENGTH, zt as KnownScript } from "./advancedBarrel-CiJnF8me.js";
2
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, 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-UCU9Hn8t.js"),t=require("./barrel-D5PRJCB6.js");exports.Address=t.Z,exports.Bytes=e.Zr,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.rt,exports.ClientBlock=e.rt,exports.ClientBlockHeader=e.it,exports.ClientBlockUncle=e.at,exports.ClientCache=t.at,exports.ClientCacheMemory=t.it,exports.ClientIndexerSearchKey=e.ot,exports.ClientIndexerSearchKeyFilter=e.st,exports.ClientIndexerSearchKeyTransaction=e.ct,exports.ClientJsonRpc=t.tt,exports.ClientPublicMainnet=t.et,exports.ClientPublicTestnet=t.$,exports.ClientTransactionResponse=e.lt,exports.Codec=e.Xr,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.st,exports.InputToSign=t.q,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.nt,exports.SECP256K1_SIGNATURE_LENGTH=t.F,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.J,exports.Signature=t.x,exports.Signer=t.S,exports.SignerAlwaysError=t.c,exports.SignerBtc=t.b,exports.SignerBtcPublicKeyReadonly=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.C,exports.SignerMultisig=t.w,exports.SignerMultisigCkbPrivateKey=t.p,exports.SignerMultisigCkbReadonly=t.h,exports.SignerMultisigNotEnoughSignaturesError=t.T,exports.SignerNostr=t.i,exports.SignerNostrPrivateKey=t.n,exports.SignerNostrPublicKeyReadonly=t.r,exports.SignerOpenLink=t.s,exports.SignerSignType=t.E,exports.SignerType=t.D,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.V,exports.btcP2pkhAddressFromPublicKey=t.H,exports.btcPublicKeyFromP2pkhAddress=t.U,exports.btcVarLengthBytesFrom=t.W,exports.buildNostrEventFromMessage=t.O,exports.bytesConcat=e.Qr,exports.bytesConcatTo=e.$r,exports.bytesEq=e.ei,exports.bytesFrom=e.ti,exports.bytesLen=e._r,exports.bytesLenUnsafe=e.vr,exports.bytesTo=e.ni,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.Q,exports.hashTypeToBytes=e.L,exports.hexFrom=e.yr,exports.isDaoOutputLimitExceeded=e.w,exports.isWebview=e.Ot,exports.keystoreDecrypt=t.Y,exports.keystoreEncrypt=t.X,exports.messageHashBtcEcdsa=t.G,exports.messageHashCkbSecp256k1=t.I,exports.messageHashDogeEcdsa=t.M,Object.defineProperty(exports,"mol",{enumerable:!0,get:function(){return t.ot}}),exports.nostrEventHash=t.k,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.L,exports.reduceAsync=e.kt,exports.signMessageSecp256k1=t.R,exports.sleep=e.At,exports.stringify=e.jt,exports.udtBalanceFrom=e.T,exports.verifyMessageBtcEcdsa=t.K,exports.verifyMessageCkbSecp256k1=t.z,exports.verifyMessageDogeEcdsa=t.N,exports.verifyMessageEvmPersonal=t.j,exports.verifyMessageJoyId=t.P,exports.verifyMessageNostrEvent=t.A,exports.verifyMessageSecp256k1=t.B;
1
+ Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./address.advanced-CQJ24Iei.js"),t=require("./barrel-CddEgDBp.js");exports.Address=t.Z,exports.Bytes=e.Zr,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.rt,exports.ClientBlock=e.rt,exports.ClientBlockHeader=e.it,exports.ClientBlockUncle=e.at,exports.ClientCache=t.at,exports.ClientCacheMemory=t.it,exports.ClientIndexerSearchKey=e.ot,exports.ClientIndexerSearchKeyFilter=e.st,exports.ClientIndexerSearchKeyTransaction=e.ct,exports.ClientJsonRpc=t.tt,exports.ClientPublicMainnet=t.et,exports.ClientPublicTestnet=t.$,exports.ClientTransactionResponse=e.lt,exports.Codec=e.Xr,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.st,exports.InputToSign=t.q,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.nt,exports.SECP256K1_SIGNATURE_LENGTH=t.F,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.J,exports.Signature=t.x,exports.Signer=t.S,exports.SignerAlwaysError=t.c,exports.SignerBtc=t.b,exports.SignerBtcPublicKeyReadonly=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.C,exports.SignerMultisig=t.w,exports.SignerMultisigCkbPrivateKey=t.p,exports.SignerMultisigCkbReadonly=t.h,exports.SignerMultisigNotEnoughSignaturesError=t.T,exports.SignerNostr=t.i,exports.SignerNostrPrivateKey=t.n,exports.SignerNostrPublicKeyReadonly=t.r,exports.SignerOpenLink=t.s,exports.SignerSignType=t.E,exports.SignerType=t.D,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.V,exports.btcP2pkhAddressFromPublicKey=t.H,exports.btcPublicKeyFromP2pkhAddress=t.U,exports.btcVarLengthBytesFrom=t.W,exports.buildNostrEventFromMessage=t.O,exports.bytesConcat=e.Qr,exports.bytesConcatTo=e.$r,exports.bytesEq=e.ei,exports.bytesFrom=e.ti,exports.bytesLen=e._r,exports.bytesLenUnsafe=e.vr,exports.bytesTo=e.ni,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.Q,exports.hashTypeToBytes=e.L,exports.hexFrom=e.yr,exports.isDaoOutputLimitExceeded=e.w,exports.isWebview=e.Ot,exports.keystoreDecrypt=t.Y,exports.keystoreEncrypt=t.X,exports.messageHashBtcEcdsa=t.G,exports.messageHashCkbSecp256k1=t.I,exports.messageHashDogeEcdsa=t.M,Object.defineProperty(exports,"mol",{enumerable:!0,get:function(){return t.ot}}),exports.nostrEventHash=t.k,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.L,exports.reduceAsync=e.kt,exports.signMessageSecp256k1=t.R,exports.sleep=e.At,exports.stringify=e.jt,exports.udtBalanceFrom=e.T,exports.verifyMessageBtcEcdsa=t.K,exports.verifyMessageCkbSecp256k1=t.z,exports.verifyMessageDogeEcdsa=t.N,exports.verifyMessageEvmPersonal=t.j,exports.verifyMessageJoyId=t.P,exports.verifyMessageNostrEvent=t.A,exports.verifyMessageSecp256k1=t.B;
@@ -1,2 +1,2 @@
1
- import { $ as CellDep, $i as AddressLike, $n as SignerCkbPublicKey, $r as CodecByte16, $t as ClientFindCellsResponse, Ai as apply, An as verifyMessageNostrEvent, Ar as RequestorJsonRpc, At as HashTypeCodec, B as ClientPublicTestnet, Bi as numFrom, Bn as SignerDummy, Br as HASH_CKB_SHORT_LENGTH, Bt as Epoch, Ci as CodecUint8, Cr as InputToSign, Ct as depTypeFrom, Di as Entity, Dn as barrel_d_exports, Dr as barrel_d_exports$1, Dt as udtBalanceFrom, Ei as codecUintNumber, Er as SignPsbtOptionsLike, Et as isDaoOutputLimitExceeded, Fi as stringify, Fn as verifyMessageEvmPersonal, Ft as ScriptVec, G as ClientCacheMemory, Gi as numMin, Gn as SignerDoge, Gr as FixedPoint, Gt as CellDepInfo, H as ClientJsonRpc, Hi as numLeFromBytes, Hn as verifyMessageDogeEcdsa, Hr as hashCkb, Ht as epochFrom, Ii as Num, In as SignerEvmAddressReadonly, It as hashTypeFrom, J as ErrorTransactionInsufficientCoin, Ji as Codec, Jn as MultisigCkbWitness, Jr as Zero, Jt as ClientBlockHeader, K as ClientCache, Ki as numToBytes, Kn as verifyMessageJoyId, Kr as FixedPointLike, Kt as CellDepInfoLike, Li as NumLike, Ln as SignerEvm, Lt as hashTypeFromBytes, Mi as isWebview, Mn as SignerNostrPublicKeyReadonly, Mt as Script, Ni as reduceAsync, Nn as NostrEvent, Nt as ScriptLike, Oi as codec, On as buildNostrEventFromMessage, Or as keystoreDecrypt, Ot as LumosTransactionSkeletonType, Pi as sleep, Pn as SignerNostr, Pt as ScriptOpt, Q as CellAnyLike, Qi as Address, Qn as SignerCkbPrivateKey, Qr as CodecByte, Qt as ClientBlockUncleLike, Ri as numBeFromBytes, Rn as SignerOpenLink, Rr as HasherKeecak256, Rt as hashTypeToBytes, Si as CodecUint64LE, Sr as Wallet, St as calcDaoProfit, Ti as codecUint, Tr as SignPsbtOptions, Tt as depTypeToBytes, U as ClientJsonRpcConfig, Ui as numLeToBytes, Un as SignerDogePrivateKey, Ur as hashCkbShort, Ut as epochFromHex, V as ClientPublicMainnet, Vi as numFromBytes, Vn as messageHashDogeEcdsa, Vr as HasherCkb, Vt as EpochLike, W as Client, Wi as numMax, Wn as SignerDogeAddressReadonly, Wr as Hasher, Wt as epochToHex, X as Cell, Xi as DecodedType, Xn as SignerMultisigCkbReadonly, Xr as fixedPointToString, Xt as ClientBlockLike, Y as hashTypeId, Yi as CodecLike, Yn as MultisigCkbWitnessLike, Yr as fixedPointFrom, Yt as ClientBlockHeaderLike, Z as CellAny, Zi as EncodableType, Zn as SignerCkbScriptReadonly, Zr as CodecBool, Zt as ClientBlockUncle, _i as CodecUint512, _n as ErrorClientWaitTransactionTimeout, _r as SignerInfo, _t as Transaction, aa as Bytes, ai as CodecUint128, an as ClientIndexerSearchKeyLike, ar as verifyMessageSecp256k1, at as CellLike, bi as CodecUint64, bn as ScriptInfoLike, br as SignerSignType, bt as WitnessArgsLike, ca as bytesConcatTo, ci as CodecUint16, cn as ClientTransactionResponse, cr as btcPublicKeyFromP2pkhAddress, ct as CellOutputVec, da as bytesTo, di as CodecUint256, dn as ErrorClientBaseLike, dr as verifyMessageBtcEcdsa, dt as DepTypeLike, ea as Hex, ei as CodecByte32, en as ClientFindTransactionsGroupedResponse, er as SECP256K1_SIGNATURE_LENGTH, et as CellDepLike, fi as CodecUint256BE, fn as ErrorClientDuplicatedTransaction, fr as SignerBtcPublicKeyReadonly, ft as OutPoint, gi as CodecUint32LE, gn as ErrorClientVerification, gr as Signer, gt as SinceLike, hi as CodecUint32BE, hn as ErrorClientResolveUnknown, hr as Signature, ht as Since, ia as hexFrom, ii as CodecRaw, in as ClientIndexerSearchKeyFilterLike, ir as verifyMessageCkbSecp256k1, it as CellInputVec, ji as gcd, jn as SignerNostrPrivateKey, jr as RequestorJsonRpcConfig, jt as HashTypeLike, ki as Constructor, kn as nostrEventHash, kr as keystoreEncrypt, kt as HashType, la as bytesEq, li as CodecUint16BE, ln as ClientTransactionResponseLike, lr as btcVarLengthBytesFrom, lt as DepType, mi as CodecUint32, mn as ErrorClientRBFRejected, mr as NetworkPreference, mt as RawTransaction, na as bytesLen, ni as CodecByte8, nn as ClientIndexerSearchKey, nr as recoverMessageSecp256k1, nt as CellInput, oa as BytesLike, oi as CodecUint128BE, on as ClientIndexerSearchKeyTransaction, or as btcEcdsaPublicKeyHash, ot as CellOutput, pi as CodecUint256LE, pn as ErrorClientMaxFeeRateExceeded, pr as SignerBtc, pt as OutPointLike, q as ErrorTransactionInsufficientCapacity, qi as numToHex, qn as SignerMultisigCkbPrivateKey, qr as One, qt as ClientBlock, ra as bytesLenUnsafe, ri as CodecBytes, rn as ClientIndexerSearchKeyFilter, rr as signMessageSecp256k1, rt as CellInputLike, sa as bytesConcat, si as CodecUint128LE, sn as ClientIndexerSearchKeyTransactionLike, sr as btcP2pkhAddressFromPublicKey, st as CellOutputLike, ta as HexLike, ti as CodecByte4, tn as ClientFindTransactionsResponse, tr as messageHashCkbSecp256k1, tt as CellDepVec, ua as bytesFrom, ui as CodecUint16LE, un as ErrorClientBase, ur as messageHashBtcEcdsa, ut as DepTypeCodec, vi as CodecUint512BE, vn as OutputsValidator, vr as SignerMultisig, vt as TransactionLike, wi as codecPadding, wr as InputToSignLike, wt as depTypeFromBytes, xi as CodecUint64BE, xn as TransactionStatus, xr as SignerType, xt as calcDaoClaimEpoch, yi as CodecUint512LE, yn as ScriptInfo, yr as SignerMultisigNotEnoughSignaturesError, yt as WitnessArgs, zi as numBeToBytes, zn as SignerAlwaysError, zr as HASH_CKB_LENGTH, zt as KnownScript } from "./advancedBarrel-D97MfkUZ.js";
1
+ import { $ as CellDep, $i as AddressLike, $n as SignerCkbPublicKey, $r as CodecByte16, $t as ClientFindCellsResponse, Ai as apply, An as verifyMessageNostrEvent, Ar as RequestorJsonRpc, At as HashTypeCodec, B as ClientPublicTestnet, Bi as numFrom, Bn as SignerDummy, Br as HASH_CKB_SHORT_LENGTH, Bt as Epoch, Ci as CodecUint8, Cr as InputToSign, Ct as depTypeFrom, Di as Entity, Dn as barrel_d_exports, Dr as barrel_d_exports$1, Dt as udtBalanceFrom, Ei as codecUintNumber, Er as SignPsbtOptionsLike, Et as isDaoOutputLimitExceeded, Fi as stringify, Fn as verifyMessageEvmPersonal, Ft as ScriptVec, G as ClientCacheMemory, Gi as numMin, Gn as SignerDoge, Gr as FixedPoint, Gt as CellDepInfo, H as ClientJsonRpc, Hi as numLeFromBytes, Hn as verifyMessageDogeEcdsa, Hr as hashCkb, Ht as epochFrom, Ii as Num, In as SignerEvmAddressReadonly, It as hashTypeFrom, J as ErrorTransactionInsufficientCoin, Ji as Codec, Jn as MultisigCkbWitness, Jr as Zero, Jt as ClientBlockHeader, K as ClientCache, Ki as numToBytes, Kn as verifyMessageJoyId, Kr as FixedPointLike, Kt as CellDepInfoLike, Li as NumLike, Ln as SignerEvm, Lt as hashTypeFromBytes, Mi as isWebview, Mn as SignerNostrPublicKeyReadonly, Mt as Script, Ni as reduceAsync, Nn as NostrEvent, Nt as ScriptLike, Oi as codec, On as buildNostrEventFromMessage, Or as keystoreDecrypt, Ot as LumosTransactionSkeletonType, Pi as sleep, Pn as SignerNostr, Pt as ScriptOpt, Q as CellAnyLike, Qi as Address, Qn as SignerCkbPrivateKey, Qr as CodecByte, Qt as ClientBlockUncleLike, Ri as numBeFromBytes, Rn as SignerOpenLink, Rr as HasherKeecak256, Rt as hashTypeToBytes, Si as CodecUint64LE, Sr as Wallet, St as calcDaoProfit, Ti as codecUint, Tr as SignPsbtOptions, Tt as depTypeToBytes, U as ClientJsonRpcConfig, Ui as numLeToBytes, Un as SignerDogePrivateKey, Ur as hashCkbShort, Ut as epochFromHex, V as ClientPublicMainnet, Vi as numFromBytes, Vn as messageHashDogeEcdsa, Vr as HasherCkb, Vt as EpochLike, W as Client, Wi as numMax, Wn as SignerDogeAddressReadonly, Wr as Hasher, Wt as epochToHex, X as Cell, Xi as DecodedType, Xn as SignerMultisigCkbReadonly, Xr as fixedPointToString, Xt as ClientBlockLike, Y as hashTypeId, Yi as CodecLike, Yn as MultisigCkbWitnessLike, Yr as fixedPointFrom, Yt as ClientBlockHeaderLike, Z as CellAny, Zi as EncodableType, Zn as SignerCkbScriptReadonly, Zr as CodecBool, Zt as ClientBlockUncle, _i as CodecUint512, _n as ErrorClientWaitTransactionTimeout, _r as SignerInfo, _t as Transaction, aa as Bytes, ai as CodecUint128, an as ClientIndexerSearchKeyLike, ar as verifyMessageSecp256k1, at as CellLike, bi as CodecUint64, bn as ScriptInfoLike, br as SignerSignType, bt as WitnessArgsLike, ca as bytesConcatTo, ci as CodecUint16, cn as ClientTransactionResponse, cr as btcPublicKeyFromP2pkhAddress, ct as CellOutputVec, da as bytesTo, di as CodecUint256, dn as ErrorClientBaseLike, dr as verifyMessageBtcEcdsa, dt as DepTypeLike, ea as Hex, ei as CodecByte32, en as ClientFindTransactionsGroupedResponse, er as SECP256K1_SIGNATURE_LENGTH, et as CellDepLike, fi as CodecUint256BE, fn as ErrorClientDuplicatedTransaction, fr as SignerBtcPublicKeyReadonly, ft as OutPoint, gi as CodecUint32LE, gn as ErrorClientVerification, gr as Signer, gt as SinceLike, hi as CodecUint32BE, hn as ErrorClientResolveUnknown, hr as Signature, ht as Since, ia as hexFrom, ii as CodecRaw, in as ClientIndexerSearchKeyFilterLike, ir as verifyMessageCkbSecp256k1, it as CellInputVec, ji as gcd, jn as SignerNostrPrivateKey, jr as RequestorJsonRpcConfig, jt as HashTypeLike, ki as Constructor, kn as nostrEventHash, kr as keystoreEncrypt, kt as HashType, la as bytesEq, li as CodecUint16BE, ln as ClientTransactionResponseLike, lr as btcVarLengthBytesFrom, lt as DepType, mi as CodecUint32, mn as ErrorClientRBFRejected, mr as NetworkPreference, mt as RawTransaction, na as bytesLen, ni as CodecByte8, nn as ClientIndexerSearchKey, nr as recoverMessageSecp256k1, nt as CellInput, oa as BytesLike, oi as CodecUint128BE, on as ClientIndexerSearchKeyTransaction, or as btcEcdsaPublicKeyHash, ot as CellOutput, pi as CodecUint256LE, pn as ErrorClientMaxFeeRateExceeded, pr as SignerBtc, pt as OutPointLike, q as ErrorTransactionInsufficientCapacity, qi as numToHex, qn as SignerMultisigCkbPrivateKey, qr as One, qt as ClientBlock, ra as bytesLenUnsafe, ri as CodecBytes, rn as ClientIndexerSearchKeyFilter, rr as signMessageSecp256k1, rt as CellInputLike, sa as bytesConcat, si as CodecUint128LE, sn as ClientIndexerSearchKeyTransactionLike, sr as btcP2pkhAddressFromPublicKey, st as CellOutputLike, ta as HexLike, ti as CodecByte4, tn as ClientFindTransactionsResponse, tr as messageHashCkbSecp256k1, tt as CellDepVec, ua as bytesFrom, ui as CodecUint16LE, un as ErrorClientBase, ur as messageHashBtcEcdsa, ut as DepTypeCodec, vi as CodecUint512BE, vn as OutputsValidator, vr as SignerMultisig, vt as TransactionLike, wi as codecPadding, wr as InputToSignLike, wt as depTypeFromBytes, xi as CodecUint64BE, xn as TransactionStatus, xr as SignerType, xt as calcDaoClaimEpoch, yi as CodecUint512LE, yn as ScriptInfo, yr as SignerMultisigNotEnoughSignaturesError, yt as WitnessArgs, zi as numBeToBytes, zn as SignerAlwaysError, zr as HASH_CKB_LENGTH, zt as KnownScript } from "./advancedBarrel-CiJnF8me.js";
2
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, 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-UCU9Hn8t.js"),t=require("./barrel-D5PRJCB6.js");exports.Address=t.Z,exports.Bytes=e.Zr,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.rt,exports.ClientBlock=e.rt,exports.ClientBlockHeader=e.it,exports.ClientBlockUncle=e.at,exports.ClientCache=t.at,exports.ClientCacheMemory=t.it,exports.ClientIndexerSearchKey=e.ot,exports.ClientIndexerSearchKeyFilter=e.st,exports.ClientIndexerSearchKeyTransaction=e.ct,exports.ClientJsonRpc=t.tt,exports.ClientPublicMainnet=t.et,exports.ClientPublicTestnet=t.$,exports.ClientTransactionResponse=e.lt,exports.Codec=e.Xr,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.st,exports.InputToSign=t.q,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.nt,exports.SECP256K1_SIGNATURE_LENGTH=t.F,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.J,exports.Signature=t.x,exports.Signer=t.S,exports.SignerAlwaysError=t.c,exports.SignerBtc=t.b,exports.SignerBtcPublicKeyReadonly=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.C,exports.SignerMultisig=t.w,exports.SignerMultisigCkbPrivateKey=t.p,exports.SignerMultisigCkbReadonly=t.h,exports.SignerMultisigNotEnoughSignaturesError=t.T,exports.SignerNostr=t.i,exports.SignerNostrPrivateKey=t.n,exports.SignerNostrPublicKeyReadonly=t.r,exports.SignerOpenLink=t.s,exports.SignerSignType=t.E,exports.SignerType=t.D,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.V,exports.btcP2pkhAddressFromPublicKey=t.H,exports.btcPublicKeyFromP2pkhAddress=t.U,exports.btcVarLengthBytesFrom=t.W,exports.buildNostrEventFromMessage=t.O,exports.bytesConcat=e.Qr,exports.bytesConcatTo=e.$r,exports.bytesEq=e.ei,exports.bytesFrom=e.ti,exports.bytesLen=e._r,exports.bytesLenUnsafe=e.vr,exports.bytesTo=e.ni,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.Q,exports.hashTypeToBytes=e.L,exports.hexFrom=e.yr,exports.isDaoOutputLimitExceeded=e.w,exports.isWebview=e.Ot,exports.keystoreDecrypt=t.Y,exports.keystoreEncrypt=t.X,exports.messageHashBtcEcdsa=t.G,exports.messageHashCkbSecp256k1=t.I,exports.messageHashDogeEcdsa=t.M,Object.defineProperty(exports,"mol",{enumerable:!0,get:function(){return t.ot}}),exports.nostrEventHash=t.k,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.L,exports.reduceAsync=e.kt,exports.signMessageSecp256k1=t.R,exports.sleep=e.At,exports.stringify=e.jt,exports.udtBalanceFrom=e.T,exports.verifyMessageBtcEcdsa=t.K,exports.verifyMessageCkbSecp256k1=t.z,exports.verifyMessageDogeEcdsa=t.N,exports.verifyMessageEvmPersonal=t.j,exports.verifyMessageJoyId=t.P,exports.verifyMessageNostrEvent=t.A,exports.verifyMessageSecp256k1=t.B;
1
+ Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./address.advanced-CQJ24Iei.js"),t=require("./barrel-CddEgDBp.js");exports.Address=t.Z,exports.Bytes=e.Zr,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.rt,exports.ClientBlock=e.rt,exports.ClientBlockHeader=e.it,exports.ClientBlockUncle=e.at,exports.ClientCache=t.at,exports.ClientCacheMemory=t.it,exports.ClientIndexerSearchKey=e.ot,exports.ClientIndexerSearchKeyFilter=e.st,exports.ClientIndexerSearchKeyTransaction=e.ct,exports.ClientJsonRpc=t.tt,exports.ClientPublicMainnet=t.et,exports.ClientPublicTestnet=t.$,exports.ClientTransactionResponse=e.lt,exports.Codec=e.Xr,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.st,exports.InputToSign=t.q,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.nt,exports.SECP256K1_SIGNATURE_LENGTH=t.F,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.J,exports.Signature=t.x,exports.Signer=t.S,exports.SignerAlwaysError=t.c,exports.SignerBtc=t.b,exports.SignerBtcPublicKeyReadonly=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.C,exports.SignerMultisig=t.w,exports.SignerMultisigCkbPrivateKey=t.p,exports.SignerMultisigCkbReadonly=t.h,exports.SignerMultisigNotEnoughSignaturesError=t.T,exports.SignerNostr=t.i,exports.SignerNostrPrivateKey=t.n,exports.SignerNostrPublicKeyReadonly=t.r,exports.SignerOpenLink=t.s,exports.SignerSignType=t.E,exports.SignerType=t.D,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.V,exports.btcP2pkhAddressFromPublicKey=t.H,exports.btcPublicKeyFromP2pkhAddress=t.U,exports.btcVarLengthBytesFrom=t.W,exports.buildNostrEventFromMessage=t.O,exports.bytesConcat=e.Qr,exports.bytesConcatTo=e.$r,exports.bytesEq=e.ei,exports.bytesFrom=e.ti,exports.bytesLen=e._r,exports.bytesLenUnsafe=e.vr,exports.bytesTo=e.ni,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.Q,exports.hashTypeToBytes=e.L,exports.hexFrom=e.yr,exports.isDaoOutputLimitExceeded=e.w,exports.isWebview=e.Ot,exports.keystoreDecrypt=t.Y,exports.keystoreEncrypt=t.X,exports.messageHashBtcEcdsa=t.G,exports.messageHashCkbSecp256k1=t.I,exports.messageHashDogeEcdsa=t.M,Object.defineProperty(exports,"mol",{enumerable:!0,get:function(){return t.ot}}),exports.nostrEventHash=t.k,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.L,exports.reduceAsync=e.kt,exports.signMessageSecp256k1=t.R,exports.sleep=e.At,exports.stringify=e.jt,exports.udtBalanceFrom=e.T,exports.verifyMessageBtcEcdsa=t.K,exports.verifyMessageCkbSecp256k1=t.z,exports.verifyMessageDogeEcdsa=t.N,exports.verifyMessageEvmPersonal=t.j,exports.verifyMessageJoyId=t.P,exports.verifyMessageNostrEvent=t.A,exports.verifyMessageSecp256k1=t.B;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ckb-ccc/core",
3
- "version": "1.15.0",
3
+ "version": "1.16.1",
4
4
  "description": "Core of CCC - CKBer's Codebase",
5
5
  "author": "Hanssen0 <hanssen0@hanssen0.com>",
6
6
  "license": "MIT",
@@ -76,7 +76,7 @@
76
76
  "test": "vitest",
77
77
  "test:ci": "vitest run",
78
78
  "build": "tsdown",
79
- "lint": "eslint ./src",
79
+ "lint": "tsc --noEmit && eslint ./src",
80
80
  "format": "prettier --write . && eslint --fix ./src"
81
81
  }
82
82
  }
package/src/ckb/epoch.ts CHANGED
@@ -50,7 +50,7 @@ export type EpochLike =
50
50
  * - Supports arithmetic (add/sub), comparison and conversion utilities.
51
51
  *
52
52
  * @example
53
- * const e = new Epoch(1n, 1n, 2n); // 1 + 1/2
53
+ * const e = Epoch.from([1n, 1n, 2n]); // 1 + 1/2
54
54
  *
55
55
  * @remarks
56
56
  * This class is primarily a thin value-object; operations return new Epoch instances.
@@ -90,11 +90,11 @@ export class Epoch extends Entity.Base<EpochLike, Epoch>() {
90
90
  */
91
91
  normalizeBase(): Epoch {
92
92
  if (this.denominator === Zero) {
93
- return new Epoch(this.integer, Zero, numFrom(1));
93
+ return Epoch.from([this.integer, Zero, numFrom(1)]);
94
94
  }
95
95
 
96
96
  if (this.denominator < Zero) {
97
- return new Epoch(this.integer, -this.numerator, -this.denominator);
97
+ return Epoch.from([this.integer, -this.numerator, -this.denominator]);
98
98
  }
99
99
 
100
100
  return this;
@@ -135,7 +135,7 @@ export class Epoch extends Entity.Base<EpochLike, Epoch>() {
135
135
  // Remainder numerator after removing whole units; ensures numerator < denominator.
136
136
  numerator %= denominator;
137
137
 
138
- return new Epoch(integer, numerator, denominator);
138
+ return Epoch.from([integer, numerator, denominator]);
139
139
  }
140
140
 
141
141
  /**
@@ -276,7 +276,7 @@ export class Epoch extends Entity.Base<EpochLike, Epoch>() {
276
276
  * @returns New Epoch instance with identical components.
277
277
  */
278
278
  override clone(): Epoch {
279
- return new Epoch(this.integer, this.numerator, this.denominator);
279
+ return Epoch.from([this.integer, this.numerator, this.denominator]);
280
280
  }
281
281
 
282
282
  /**
@@ -288,7 +288,7 @@ export class Epoch extends Entity.Base<EpochLike, Epoch>() {
288
288
  * @returns Epoch with integer = 0, numerator = 0, denominator = 0.
289
289
  */
290
290
  static get Genesis(): Epoch {
291
- return new Epoch(Zero, Zero, Zero);
291
+ return Epoch.from([Zero, Zero, Zero]);
292
292
  }
293
293
 
294
294
  /**
@@ -297,7 +297,7 @@ export class Epoch extends Entity.Base<EpochLike, Epoch>() {
297
297
  * @returns Epoch equal to 180 with denominator set to 1 to represent an exact whole unit.
298
298
  */
299
299
  static get OneNervosDaoCycle(): Epoch {
300
- return new Epoch(numFrom(180), Zero, numFrom(1));
300
+ return Epoch.from([numFrom(180), Zero, numFrom(1)]);
301
301
  }
302
302
 
303
303
  /**
@@ -409,7 +409,7 @@ export class Epoch extends Entity.Base<EpochLike, Epoch>() {
409
409
  }
410
410
 
411
411
  // Normalize to reduce fraction and carry whole units into integer.
412
- return new Epoch(integer, numerator, denominator).normalizeCanonical();
412
+ return Epoch.from([integer, numerator, denominator]).normalizeCanonical();
413
413
  }
414
414
 
415
415
  /**
@@ -424,7 +424,7 @@ export class Epoch extends Entity.Base<EpochLike, Epoch>() {
424
424
  */
425
425
  sub(other: EpochLike): Epoch {
426
426
  const { integer, numerator, denominator } = Epoch.from(other);
427
- return this.add(new Epoch(-integer, -numerator, denominator));
427
+ return this.add(Epoch.from([-integer, -numerator, denominator]));
428
428
  }
429
429
 
430
430
  /**
package/src/ckb/script.ts CHANGED
@@ -147,7 +147,11 @@ export class Script extends Entity.Base<ScriptLike, Script>() {
147
147
  * ```
148
148
  */
149
149
  clone(): Script {
150
- return new Script(this.codeHash, this.hashType, this.args);
150
+ return Script.from({
151
+ codeHash: this.codeHash,
152
+ hashType: this.hashType,
153
+ args: this.args,
154
+ });
151
155
  }
152
156
 
153
157
  /**
@@ -222,7 +226,11 @@ export class Script extends Entity.Base<ScriptLike, Script>() {
222
226
  args: HexLike,
223
227
  ): Promise<Script> {
224
228
  const script = await client.getKnownScript(knownScript);
225
- return new Script(script.codeHash, script.hashType, hexFrom(args));
229
+ return Script.from({
230
+ codeHash: script.codeHash,
231
+ hashType: script.hashType,
232
+ args: hexFrom(args),
233
+ });
226
234
  }
227
235
 
228
236
  /**
@@ -177,7 +177,10 @@ export class OutPoint extends Entity.Base<OutPointLike, OutPoint>() {
177
177
  * ```
178
178
  */
179
179
  clone(): OutPoint {
180
- return new OutPoint(this.txHash, this.index);
180
+ return OutPoint.from({
181
+ txHash: this.txHash,
182
+ index: this.index,
183
+ });
181
184
  }
182
185
 
183
186
  /**
@@ -297,7 +300,11 @@ export class CellOutput extends Entity.Base<CellOutputLike, CellOutput>() {
297
300
  * ```
298
301
  */
299
302
  clone(): CellOutput {
300
- return new CellOutput(this.capacity, this.lock.clone(), this.type?.clone());
303
+ return CellOutput.from({
304
+ capacity: this.capacity,
305
+ lock: this.lock.clone(),
306
+ type: this.type?.clone(),
307
+ });
301
308
  }
302
309
  }
303
310
  export const CellOutputVec = mol.vector(CellOutput);
@@ -442,11 +449,11 @@ export class CellAny {
442
449
  * ```
443
450
  */
444
451
  clone(): CellAny {
445
- return new CellAny(
446
- this.cellOutput.clone(),
447
- this.outputData,
448
- this.outPoint?.clone(),
449
- );
452
+ return CellAny.from({
453
+ cellOutput: this.cellOutput.clone(),
454
+ outputData: this.outputData,
455
+ outPoint: this.outPoint?.clone(),
456
+ });
450
457
  }
451
458
  }
452
459
 
@@ -646,11 +653,11 @@ export class Cell extends CellAny {
646
653
  * ```
647
654
  */
648
655
  clone(): Cell {
649
- return new Cell(
650
- this.outPoint.clone(),
651
- this.cellOutput.clone(),
652
- this.outputData,
653
- );
656
+ return Cell.from({
657
+ outPoint: this.outPoint.clone(),
658
+ cellOutput: this.cellOutput.clone(),
659
+ outputData: this.outputData,
660
+ });
654
661
  }
655
662
  }
656
663
 
@@ -698,7 +705,11 @@ export class Since extends Entity.Base<SinceLike, Since>() {
698
705
  * ```
699
706
  */
700
707
  clone(): Since {
701
- return new Since(this.relative, this.metric, this.value);
708
+ return Since.from({
709
+ relative: this.relative,
710
+ metric: this.metric,
711
+ value: this.value,
712
+ });
702
713
  }
703
714
 
704
715
  /**
@@ -905,12 +916,12 @@ export class CellInput extends Entity.Base<CellInputLike, CellInput>() {
905
916
  * ```
906
917
  */
907
918
  clone(): CellInput {
908
- return new CellInput(
909
- this.previousOutput.clone(),
910
- this.since,
911
- this.cellOutput?.clone(),
912
- this.outputData,
913
- );
919
+ return CellInput.from({
920
+ previousOutput: this.previousOutput.clone(),
921
+ since: this.since,
922
+ cellOutput: this.cellOutput?.clone(),
923
+ outputData: this.outputData,
924
+ });
914
925
  }
915
926
  }
916
927
  export const CellInputVec = mol.vector(CellInput);
@@ -983,7 +994,10 @@ export class CellDep extends Entity.Base<CellDepLike, CellDep>() {
983
994
  * ```
984
995
  */
985
996
  clone(): CellDep {
986
- return new CellDep(this.outPoint.clone(), this.depType);
997
+ return CellDep.from({
998
+ outPoint: this.outPoint.clone(),
999
+ depType: this.depType,
1000
+ });
987
1001
  }
988
1002
  }
989
1003
  export const CellDepVec = mol.vector(CellDep);
@@ -1140,7 +1154,7 @@ export class Transaction extends Entity.Base<TransactionLike, Transaction>() {
1140
1154
  * ```
1141
1155
  */
1142
1156
  static default(): Transaction {
1143
- return new Transaction(0n, [], [], [], [], [], []);
1157
+ return Transaction.from({});
1144
1158
  }
1145
1159
 
1146
1160
  /**
@@ -1203,15 +1217,15 @@ export class Transaction extends Entity.Base<TransactionLike, Transaction>() {
1203
1217
  * - Version - bigint is immutable
1204
1218
  */
1205
1219
  clone(): Transaction {
1206
- return new Transaction(
1207
- this.version,
1208
- this.cellDeps.map((c) => c.clone()),
1209
- this.headerDeps.map((h) => h),
1210
- this.inputs.map((i) => i.clone()),
1211
- this.outputs.map((o) => o.clone()),
1212
- this.outputsData.map((o) => o),
1213
- this.witnesses.map((w) => w),
1214
- );
1220
+ return Transaction.from({
1221
+ version: this.version,
1222
+ cellDeps: this.cellDeps.map((c) => c.clone()),
1223
+ headerDeps: this.headerDeps.map((h) => h),
1224
+ inputs: this.inputs.map((i) => i.clone()),
1225
+ outputs: this.outputs.map((o) => o.clone()),
1226
+ outputsData: this.outputsData.map((o) => o),
1227
+ witnesses: this.witnesses.map((w) => w),
1228
+ });
1215
1229
  }
1216
1230
 
1217
1231
  /**
@@ -2563,5 +2577,5 @@ export function calcDaoClaimEpoch(
2563
2577
  withdrawInteger += -partialCycle + fullCycle;
2564
2578
  }
2565
2579
 
2566
- return new Epoch(withdrawInteger, deposit.numerator, deposit.denominator);
2580
+ return Epoch.from([withdrawInteger, deposit.numerator, deposit.denominator]);
2567
2581
  }
@@ -97,8 +97,7 @@ export abstract class ClientCache {
97
97
  */
98
98
  async recordTransactionResponses(
99
99
  ..._transactions: (
100
- | ClientTransactionResponseLike
101
- | ClientTransactionResponseLike[]
100
+ ClientTransactionResponseLike | ClientTransactionResponseLike[]
102
101
  )[]
103
102
  ): Promise<void> {}
104
103
  /**
@@ -148,8 +148,7 @@ export class ClientCacheMemory extends ClientCache {
148
148
 
149
149
  async recordTransactionResponses(
150
150
  ...transactions: (
151
- | ClientTransactionResponseLike
152
- | ClientTransactionResponseLike[]
151
+ ClientTransactionResponseLike | ClientTransactionResponseLike[]
153
152
  )[]
154
153
  ): Promise<void> {
155
154
  transactions.flat().map((txLike) => {
@@ -703,8 +703,7 @@ export abstract class Client {
703
703
  transactions,
704
704
  lastCursor,
705
705
  }:
706
- | ClientFindTransactionsResponse
707
- | ClientFindTransactionsGroupedResponse =
706
+ ClientFindTransactionsResponse | ClientFindTransactionsGroupedResponse =
708
707
  await this.findTransactionsPaged(key, order, limit, last);
709
708
  for (const tx of transactions) {
710
709
  yield tx;
@@ -111,6 +111,23 @@ export const MAINNET_SCRIPTS: Record<KnownScript, ScriptInfoLike | undefined> =
111
111
  hashType: "type",
112
112
  cellDeps: [],
113
113
  },
114
+ [KnownScript.SUdt]: {
115
+ codeHash:
116
+ "0x5e7a36a77e68eecc013dfa2fe6a23f3b6c344b04005808694ae6dd45eea4cfd5",
117
+ hashType: "type",
118
+ cellDeps: [
119
+ {
120
+ cellDep: {
121
+ outPoint: {
122
+ txHash:
123
+ "0xc7813f6a415144643970c2e88e0bb6ca6a8edc5dd7c1022746f628284a9936d5",
124
+ index: 0,
125
+ },
126
+ depType: "code",
127
+ },
128
+ },
129
+ ],
130
+ },
114
131
  [KnownScript.XUdt]: {
115
132
  codeHash:
116
133
  "0x50bd8d6680b8b9cf98b73f3c08faf8b2a21914311954118ad6609be6e78a1b95",
@@ -111,6 +111,23 @@ export const TESTNET_SCRIPTS: Record<KnownScript, ScriptInfoLike> =
111
111
  hashType: "type",
112
112
  cellDeps: [],
113
113
  },
114
+ [KnownScript.SUdt]: {
115
+ codeHash:
116
+ "0xc5e5dcf215925f7ef4dfaf5f4b4f105bc321c02776d6e7d52a1db3fcd9d011a4",
117
+ hashType: "type",
118
+ cellDeps: [
119
+ {
120
+ cellDep: {
121
+ outPoint: {
122
+ txHash:
123
+ "0xe12877ebd2c3c364dc46c5c992bcfaf4fee33fa13eebdf82c591fc9825aab769",
124
+ index: 0,
125
+ },
126
+ depType: "code",
127
+ },
128
+ },
129
+ ],
130
+ },
114
131
  [KnownScript.XUdt]: {
115
132
  codeHash:
116
133
  "0x25c29dc317811a6f6f3985a7a9ebc4838bd388d19d0feeecf0bcd60f6c0975bb",
@@ -93,12 +93,7 @@ export type OutputsValidator = "passthrough" | "well_known_scripts_only";
93
93
  * @public
94
94
  */
95
95
  export type TransactionStatus =
96
- | "sent"
97
- | "pending"
98
- | "proposed"
99
- | "committed"
100
- | "unknown"
101
- | "rejected";
96
+ "sent" | "pending" | "proposed" | "committed" | "unknown" | "rejected";
102
97
  /**
103
98
  * @public
104
99
  */
@@ -322,8 +322,7 @@ export class JsonRpcTransformers {
322
322
  }:
323
323
  | JsonRpcIndexerFindTransactionsResponse
324
324
  | JsonRpcIndexerFindTransactionsGroupedResponse):
325
- | ClientFindTransactionsResponse
326
- | ClientFindTransactionsGroupedResponse {
325
+ ClientFindTransactionsResponse | ClientFindTransactionsGroupedResponse {
327
326
  if (objects.length === 0) {
328
327
  return {
329
328
  lastCursor: last_cursor,
@@ -9,6 +9,7 @@ export enum KnownScript {
9
9
  Secp256k1MultisigV2 = "Secp256k1MultisigV2", // Enhanced since handling (https://github.com/nervosnetwork/ckb-system-scripts/pull/99)
10
10
  AnyoneCanPay = "AnyoneCanPay",
11
11
  TypeId = "TypeId",
12
+ SUdt = "SUdt",
12
13
  XUdt = "XUdt",
13
14
  JoyId = "JoyId",
14
15
  COTA = "COTA",
@@ -14,7 +14,7 @@ export abstract class Entity {
14
14
  * @public
15
15
  */
16
16
  static Base<SubTypeLike, SubType = SubTypeLike>() {
17
- abstract class Impl {
17
+ abstract class Impl extends Entity {
18
18
  /**
19
19
  * The bytes length of the entity, if it is fixed, otherwise undefined
20
20
  * @public
@@ -90,6 +90,7 @@ export abstract class Entity {
90
90
  * @public
91
91
  * @returns A clone of the entity
92
92
  */
93
+ // @ts-expect-error SubType is always an Entity in practice, but TypeScript cannot infer this without a constraint on the type parameter
93
94
  clone(): SubType {
94
95
  return (this.constructor as typeof Impl).fromBytes(this.toBytes());
95
96
  }