@ckb-ccc/core 1.18.2 → 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 (38) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/dist/address.advanced-Cka_9tcR.mjs.map +1 -1
  3. package/dist/advanced.d.mts +1 -1
  4. package/{dist.commonjs/advancedBarrel-CJAh6sm8.d.ts → dist/advancedBarrel-mPY1Rl-S.d.mts} +51 -7
  5. package/dist/advancedBarrel-mPY1Rl-S.d.mts.map +1 -0
  6. package/dist/advancedBarrel.d.mts +1 -1
  7. package/dist/barrel-DsK2p-Rh.mjs +7 -0
  8. package/dist/barrel-DsK2p-Rh.mjs.map +1 -0
  9. package/dist/barrel.d.mts +2 -2
  10. package/dist/barrel.mjs +1 -1
  11. package/dist/index.d.mts +2 -2
  12. package/dist/index.mjs +1 -1
  13. package/dist.commonjs/address.advanced-BTrmYDic.js +2 -0
  14. package/dist.commonjs/address.advanced-BTrmYDic.js.map +1 -0
  15. package/dist.commonjs/advanced.d.ts +1 -1
  16. package/dist.commonjs/advanced.js +1 -1
  17. package/{dist/advancedBarrel-BbbHx4z4.d.mts → dist.commonjs/advancedBarrel-B565UuhW.d.ts} +52 -6
  18. package/dist.commonjs/advancedBarrel-B565UuhW.d.ts.map +1 -0
  19. package/dist.commonjs/advancedBarrel.d.ts +1 -1
  20. package/dist.commonjs/advancedBarrel.js +1 -1
  21. package/dist.commonjs/barrel-D8_wJLfr.js +23 -0
  22. package/dist.commonjs/barrel-D8_wJLfr.js.map +1 -0
  23. package/dist.commonjs/barrel.d.ts +2 -2
  24. package/dist.commonjs/barrel.js +1 -1
  25. package/dist.commonjs/index.d.ts +2 -2
  26. package/dist.commonjs/index.js +1 -1
  27. package/package.json +5 -5
  28. package/src/utils/constructor.ts +11 -0
  29. package/src/utils/index.ts +3 -5
  30. package/src/utils/proxy.ts +165 -0
  31. package/dist/advancedBarrel-BbbHx4z4.d.mts.map +0 -1
  32. package/dist/barrel-Ctu3ZNcR.mjs +0 -7
  33. package/dist/barrel-Ctu3ZNcR.mjs.map +0 -1
  34. package/dist.commonjs/address.advanced-BAaFklsW.js +0 -2
  35. package/dist.commonjs/address.advanced-BAaFklsW.js.map +0 -1
  36. package/dist.commonjs/advancedBarrel-CJAh6sm8.d.ts.map +0 -1
  37. package/dist.commonjs/barrel-sjLZcS0R.js +0 -21
  38. package/dist.commonjs/barrel-sjLZcS0R.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-BAaFklsW.js"),t=require("./barrel-sjLZcS0R.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-BAaFklsW.js"),t=require("./barrel-sjLZcS0R.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.2",
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",
@@ -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
+ }
@@ -1 +0,0 @@
1
- {"version":3,"file":"advancedBarrel-BbbHx4z4.d.mts","names":[],"sources":["../src/bytes/advanced.ts","../src/bytes/index.ts","../src/hex/index.ts","../src/address/index.ts","../src/codec/codec.ts","../src/molecule/codec.ts","../src/num/index.ts","../src/utils/index.ts","../src/codec/entity.ts","../src/codec/predefined.ts","../src/fixedPoint/index.ts","../src/hasher/hasher.ts","../src/hasher/hasherCkb.ts","../src/hasher/hasherKeecak256.ts","../src/jsonRpc/transports/transport.ts","../src/jsonRpc/transports/http.ts","../src/jsonRpc/transports/webSocket.ts","../src/jsonRpc/transports/factory.ts","../src/jsonRpc/transports/fallback.ts","../src/jsonRpc/requestor.ts","../src/keystore/index.ts","../src/molecule/predefined.ts","../src/molecule/barrel.ts","../src/signer/btc/psbt.ts","../src/signer/signer/index.ts","../src/signer/btc/signerBtc.ts","../src/signer/btc/signerBtcPublicKeyReadonly.ts","../src/signer/btc/verify.ts","../src/signer/ckb/secp256k1Signing.ts","../src/signer/ckb/signerCkbAlwaysSuccess.ts","../src/signer/ckb/signerCkbPublicKey.ts","../src/signer/ckb/signerCkbPrivateKey.ts","../src/signer/ckb/signerCkbScriptReadonly.ts","../src/signer/ckb/signerMultisigCkbReadonly.ts","../src/signer/ckb/signerMultisigCkbPrivateKey.ts","../src/signer/ckb/verifyJoyId.ts","../src/signer/doge/signerDoge.ts","../src/signer/doge/signerDogeAddressReadonly.ts","../src/signer/doge/signerDogePrivateKey.ts","../src/signer/doge/verify.ts","../src/signer/dummy/dummy.ts","../src/signer/dummy/alwaysError.ts","../src/signer/dummy/openLink.ts","../src/signer/evm/signerEvm.ts","../src/signer/evm/signerEvmAddressReadonly.ts","../src/signer/evm/verify.ts","../src/signer/nostr/signerNostr.ts","../src/signer/nostr/signerNostrPublicKeyReadonly.ts","../src/signer/nostr/signerNostrPrivateKey.ts","../src/signer/nostr/verify.ts","../src/barrel.ts","../src/client/clientTypes.advanced.ts","../src/client/clientTypes.ts","../src/ckb/epoch.ts","../src/client/knownScript.ts","../src/ckb/script.ts","../src/ckb/transactionLumos.ts","../src/ckb/transaction.ts","../src/ckb/hash.ts","../src/ckb/transactionErrors.ts","../src/client/cache/cache.ts","../src/client/cache/memory.ts","../src/client/client.ts","../src/client/jsonRpc/client.ts","../src/client/clientPublicMainnet.ts","../src/client/clientPublicTestnet.ts","../src/address/address.advanced.ts","../src/ckb/script.advanced.ts","../src/ckb/transaction.advanced.ts","../src/client/cache/memory.advanced.ts","../src/client/clientPublicMainnet.advanced.ts","../src/client/clientPublicTestnet.advanced.ts","../src/client/jsonRpc/types.ts","../src/client/jsonRpc/transformers.ts","../src/hasher/advanced.ts","../src/advancedBarrel.ts"],"mappings":";;;;;KAIY;;;;;;KCEA,UAAQ;;;;cAIP,SAAK;;;;KAIN,qBAAqB,aAAa,cAAc;;;;;;;;;;;;;;;;;;;;;iBAuB5C,cACd,qBACG,MAAM;;;;;;;;;;;;;;;;;;;iBA+BK,eAAe,MAAM,cAAc;;;;;;;;;;;;;;;;;;iBAsBnC,QAAQ,KAAK,WAAW,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;iBA8BlC,UACd,OAAO,WACP,WAAW,oBACV;;;;;;;;;;;;;;iBA2Ca,QAAQ,GAAG,WAAW,GAAG;;;;;;;KClK7B;;;;;;KAMA,UAAU;;;;;;;;;;;;;iBAwCN,QAAQ,KAAK,UAAU;;;;;;;;;;;;;;;;;;;;;iBA6BvB,SAAS,SAAS;;;;;;;;;;;;;;;;;;;iBA0BlB,eAAe,KAAK;;;;;;KC5FxB;EACV,QAAQ;EACR;;;;;;cAOW;EAQF,QAAQ;EACR;;;;;;;EADA,YAAA,QAAQ,QACR;;;;;;;SAUF,KAAK,SAAS,cAAc;;;;;;;;;;SAkBtB,WACX,iBACA,SAAS,SAAS,eAAe,UAChC,QAAQ;;;;;;;;SA2BJ,WAAW,QAAQ,YAAY,QAAQ,SAAS;SAI1C,gBACX,QAAQ,QACR,QAAQ,aACR,MAAM,UACL,QAAQ;;;;;;EAaX;;;;KC5GU,UAAU,WAAW,UAAU;WAChC,SAAS,WAAW,cAAc;WAClC,SACP,WAAW,WACX;IAAW;QACR;WACI;;cAEE,MAAM,WAAW,UAAU;WAE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CAAiC;;;;cClUxB,sBAAA"}
@@ -1,7 +0,0 @@
1
- import{t as e}from"./rolldown-runtime-DK3Fl9T5.mjs";import{$n as t,$t as n,An as r,At as i,Bn as a,Bt as o,C as s,Cn as ee,Cr as te,Ct as ne,D as re,Dn as ie,Dt as ae,E as oe,En as se,Er as ce,Et as c,F as le,Fn as ue,Ft as de,Gn as fe,Gt as pe,H as l,Hn as me,Ht as he,I as ge,In as _e,It as ve,J as ye,Jn as be,Jt as xe,Kn as Se,Kt as Ce,L as we,Ln as Te,Lt as Ee,M as u,Mn as De,Mt as Oe,N as ke,Nn as Ae,Nt as je,On as Me,Ot as Ne,P as Pe,Pn as Fe,Pt as Ie,Qn as Le,Qt as Re,Rn as ze,Rt as Be,S as Ve,Sn as He,Sr as d,St as Ue,T as We,Tn as Ge,Tr as f,Tt as Ke,U as qe,Un as Je,Ut as Ye,V as Xe,Vn as Ze,Vt as Qe,W as $e,Wn as et,Wt as tt,X as p,Xn as nt,Xt as rt,Y as it,Yn as at,Yt as ot,Z as st,Zn as m,Zt as ct,_ as h,_n as lt,_r as ut,_t as g,a as _,an as dt,ar as ft,at as pt,b as mt,bn as ht,br as gt,c as _t,cn as vt,cr as yt,ct as bt,d as xt,dn as St,dt as Ct,en as wt,er as v,f as Tt,fn as Et,ft as Dt,g as Ot,gn as kt,gt as At,h as jt,hn as Mt,hr as y,ht as Nt,i as Pt,in as Ft,ir as b,it as It,j as Lt,jn as Rt,jt as zt,kn as Bt,kt as x,l as Vt,ln as Ht,lr as Ut,lt as Wt,m as S,mn as Gt,mr as C,mt as Kt,nn as qt,nr as Jt,nt as Yt,o as Xt,on as Zt,or as Qt,ot as $t,p as en,pn as tn,pr as nn,pt as rn,q as an,qn as on,qt as sn,r as cn,rn as ln,rr as w,rt as un,s as dn,sn as fn,sr as pn,st as mn,t as hn,tn as gn,tr as _n,u as vn,un as yn,ur as T,ut as bn,v as E,vn as xn,vr as Sn,vt as Cn,w as wn,wn as Tn,wr as En,wt as Dn,x as On,xn as kn,xr as An,xt as jn,y as Mn,yn as Nn,yr as D,yt as Pn,zn as Fn,zt as In}from"./address.advanced-Cka_9tcR.mjs";import{bech32 as O,bech32m as Ln}from"bech32";import{keccak_256 as Rn}from"@noble/hashes/sha3.js";import zn from"isomorphic-ws";import{ctr as Bn}from"@noble/ciphers/aes.js";import{scryptAsync as Vn}from"@noble/hashes/scrypt.js";import{randomBytes as k}from"@noble/hashes/utils.js";import{schnorr as Hn,secp256k1 as A}from"@noble/curves/secp256k1.js";import{ripemd160 as Un}from"@noble/hashes/legacy.js";import{sha256 as j}from"@noble/hashes/sha2.js";import M from"bs58check";import{verifySignature as Wn}from"@joyid/ckb";import{verifyMessage as Gn}from"ethers";var N=class{constructor(){this.hasher=Rn.create()}update(e){return this.hasher.update(f(e)),this}digest(){return D(this.hasher.digest())}},Kn=e({Bool:()=>Nn,BoolOpt:()=>Oe,BoolVec:()=>je,Byte:()=>ht,Byte16:()=>kn,Byte16Opt:()=>Ie,Byte16Vec:()=>de,Byte32:()=>He,Byte32Opt:()=>ve,Byte32Vec:()=>Ee,Byte4:()=>ee,Byte4Opt:()=>Be,Byte4Vec:()=>In,Byte8:()=>Tn,Byte8Opt:()=>o,Byte8Vec:()=>Qe,ByteOpt:()=>he,ByteVec:()=>Ye,Bytes:()=>tt,BytesOpt:()=>pe,BytesVec:()=>Ce,Codec:()=>gt,Entity:()=>Ut,String:()=>sn,StringOpt:()=>xe,StringVec:()=>ot,Uint128:()=>ie,Uint128BE:()=>Me,Uint128LE:()=>Bt,Uint128Opt:()=>rt,Uint128Vec:()=>ct,Uint16:()=>r,Uint16BE:()=>Rt,Uint16LE:()=>De,Uint16Opt:()=>Re,Uint16Vec:()=>n,Uint256:()=>Ae,Uint256BE:()=>Fe,Uint256LE:()=>ue,Uint256Opt:()=>wt,Uint256Vec:()=>gn,Uint32:()=>_e,Uint32BE:()=>Te,Uint32LE:()=>ze,Uint32Opt:()=>qt,Uint32Vec:()=>ln,Uint512:()=>Fn,Uint512BE:()=>a,Uint512LE:()=>Ze,Uint512Opt:()=>Ft,Uint512Vec:()=>dt,Uint64:()=>me,Uint64BE:()=>Je,Uint64LE:()=>et,Uint64Opt:()=>Zt,Uint64Vec:()=>fn,Uint8:()=>fe,Uint8Opt:()=>vt,Uint8Vec:()=>Ht,array:()=>yn,byteVec:()=>St,codec:()=>T,dynItemVec:()=>Et,fixedItemVec:()=>tn,option:()=>Gt,struct:()=>Mt,table:()=>kt,uint:()=>on,uintNumber:()=>be,union:()=>lt,vector:()=>xn}),qn=class{async markUsable(...e){return await this.recordCells(...e),this.markUsableNoCache(...e)}async markTransactions(...e){await Promise.all([this.recordTransactionResponses(e.flat().map(e=>({transaction:e,status:`sent`}))),...e.flat().map(e=>{let t=h.from(e),n=t.hash();return Promise.all([...t.inputs.map(e=>this.markUnusable(e.previousOutput)),...t.outputs.map((e,r)=>this.markUsable({cellOutput:e,outputData:t.outputsData[r],outPoint:{txHash:n,index:r}}))])})])}async recordCells(...e){}async getCell(e){}async recordTransactionResponses(...e){}async getTransactionResponse(e){}async recordTransactions(...e){return this.recordTransactionResponses(e.flat().map(e=>({transaction:e,status:`unknown`})))}async getTransaction(e){return(await this.getTransactionResponse(e))?.transaction}async recordHeaders(...e){}async getHeaderByHash(e){}async getHeaderByNumber(e){}async recordBlocks(...e){}async getBlockByHash(e){}async getBlockByNumber(e){}hasHeaderConfirmed(e){return m(Date.now())-e.timestamp>=it}},Jn=class extends qn{constructor(e=512,t=256,n=128,r=it){super(),this.maxCells=e,this.maxTxs=t,this.maxBlocks=n,this.cells=new p(this.maxCells),this.knownTransactions=new p(this.maxTxs),this.knownBlockHashes=new p(this.maxBlocks),this.knownBlocks=new p(this.maxBlocks),this.confirmedBlockTime=m(r)}async markUsableNoCache(...e){e.flat().forEach(e=>{let t=_.from(e).clone(),n=D(t.outPoint.toBytes());this.cells.set(n,[!0,t])})}async markUnusable(...e){e.flat().forEach(e=>{let t=S.from(e),n=D(t.toBytes()),r=this.cells.get(n);if(r){r[0]=!1;return}this.cells.set(n,[!1,{outPoint:t}])})}async clear(){this.cells.clear(),this.knownTransactions.clear()}async*findCells(e){for(let[t,[n,r]]of this.cells.entries())n&&st(e,r)&&(this.cells.get(t),yield r.clone())}async isUnusable(e){let t=S.from(e);return!(this.cells.get(D(t.toBytes()))?.[0]??!0)}async recordCells(...e){e.flat().map(e=>{let t=_.from(e),n=D(t.outPoint.toBytes());this.cells.get(n)||this.cells.set(n,[void 0,t])})}async getCell(e){let t=S.from(e),n=this.cells.get(D(t.toBytes()))?.[1];if(n&&n.cellOutput&&n.outputData)return _.from(n.clone())}async recordTransactionResponses(...e){e.flat().map(e=>{let t=Wt.from(e);this.knownTransactions.set(t.transaction.hash(),t)})}async getTransactionResponse(e){let t=D(e);return this.knownTransactions.get(t)?.clone()}async recordHeaders(...e){e.flat().map(e=>{let t=It.from(e);this.knownBlockHashes.set(t.number,t.hash),!this.knownBlocks.get(t.hash)&&this.knownBlocks.set(t.hash,{header:t})})}async getHeaderByHash(e){let t=D(e),n=this.knownBlocks.get(t);return n&&this.knownBlockHashes.get(n.header.number),n?.header}async getHeaderByNumber(e){let t=m(e),n=this.knownBlockHashes.get(t);if(n)return this.getHeaderByHash(n)}async recordBlocks(...e){e.flat().map(e=>{let t=un.from(e);this.knownBlockHashes.set(t.header.number,t.header.hash),this.knownBlocks.set(t.header.hash,t)})}async getBlockByHash(e){let t=D(e),n=this.knownBlocks.get(t);if(n&&(this.knownBlockHashes.get(n.header.number),`transactions`in n))return n}async getBlockByNumber(e){let t=m(e),n=this.knownBlockHashes.get(t);if(n)return this.getBlockByHash(n)}hasHeaderConfirmed(e){return m(Date.now())-e.timestamp>=this.confirmedBlockTime}},Yn=class{constructor(e){this.cache=e?.cache??new Jn}async getFeeRate(e,t){let n=_n((await this.getFeeRateStatistics(e)).median,Pn),r=m(t?.maxFeeRate??Cn);return r===0n?n:Jt(n,r)}async getBlockByNumber(e,t,n){let r=await this.cache.getBlockByNumber(e);if(r)return r;let i=await this.getBlockByNumberNoCache(e,t,n);return i&&this.cache.hasHeaderConfirmed(i.header)&&await this.cache.recordBlocks(i),i}async getBlockByHash(e,t,n){let r=await this.cache.getBlockByHash(e);if(r)return r;let i=await this.getBlockByHashNoCache(e,t,n);return i&&this.cache.hasHeaderConfirmed(i.header)&&await this.cache.recordBlocks(i),i}async getHeaderByNumber(e,t){let n=await this.cache.getHeaderByNumber(e);if(n)return n;let r=await this.getHeaderByNumberNoCache(e,t);return r&&this.cache.hasHeaderConfirmed(r)&&await this.cache.recordHeaders(r),r}async getHeaderByHash(e,t){let n=await this.cache.getHeaderByHash(e);if(n)return n;let r=await this.getHeaderByHashNoCache(e,t);return r&&this.cache.hasHeaderConfirmed(r)&&await this.cache.recordHeaders(r),r}async getCell(e){let t=S.from(e),n=await this.cache.getCell(t);if(n)return n;let r=await this.getTransaction(t.txHash);if(!r)return;let i=r.transaction.getOutput(t.index);if(!i)return;let a=_.from({...i,outPoint:t});return await this.cache.recordCells(a),a}async getCellWithHeader(e){let t=S.from(e),n=await this.getTransactionWithHeader(t.txHash);if(!n)return;let{transaction:r,header:i}=n,a=r.transaction.getOutput(t.index);if(!a)return;let o=_.from({...a,outPoint:t});return await this.cache.recordCells(o),{cell:o,header:i}}async getCellLive(e,t,n){let r=await this.getCellLiveNoCache(e,t,n);return t&&r&&await this.cache.recordCells(r),r}async findCellsPaged(e,t,n,r){let i=await this.findCellsPagedNoCache(e,t,n,r);return await this.cache.recordCells(i.cells),i}async*findCellsOnChain(e,t,n=10){let r;for(;;){let{cells:i,lastCursor:a}=await this.findCellsPaged(e,t,n,r);for(let e of i)yield e;if(i.length===0||i.length<n)return;r=a}}async*findCells(e,t,n=10){let r=$t.from(e),i=[];for await(let e of this.cache.findCells(r))i.push(e.outPoint),yield e;for await(let e of this.findCellsOnChain(r,t,n))await this.cache.isUnusable(e.outPoint)||i.some(t=>t.eq(e.outPoint))||(yield e)}findCellsByLock(e,t,n=!0,r,i=10){return this.findCells({script:e,scriptType:`lock`,scriptSearchMode:`exact`,filter:{script:t},withData:n},r,i)}findCellsByType(e,t=!0,n,r=10){return this.findCells({script:e,scriptType:`type`,scriptSearchMode:`exact`,withData:t},n,r)}async findSingletonCellByType(e,t=!0){for await(let n of this.findCellsByType(e,t,void 0,1))return n}async getCellDeps(...e){return Promise.all(e.flat().map(async e=>{let{cellDep:t,type:n}=Yt.from(e);if(n===void 0)return t;let r=await this.findSingletonCellByType(n);return r?dn.from({outPoint:r.outPoint,depType:t.depType}):t}))}async*findTransactions(e,t,n=10){let r;for(;;){let{transactions:i,lastCursor:a}=await this.findTransactionsPaged(e,t,n,r);for(let e of i)yield e;if(i.length===0||i.length<n)return;r=a}}findTransactionsByLock(e,t,n,r,i=10){return this.findTransactions({script:e,scriptType:`lock`,scriptSearchMode:`exact`,filter:{script:t},groupByTransaction:n},r,i)}findTransactionsByType(e,t,n,r=10){return this.findTransactions({script:e,scriptType:`type`,scriptSearchMode:`exact`,groupByTransaction:t},n,r)}async getBalanceSingle(e){return this.getCellsCapacity({script:e,scriptType:`lock`,scriptSearchMode:`exact`,filter:{scriptLenRange:[0,1],outputDataLenRange:[0,1]}})}async getBalance(e){return x(e,async(e,t)=>e+await this.getBalanceSingle(t),Qt)}async sendTransaction(e,t,n){let r=h.from(e),i=m(n?.maxFeeRate??Cn),a=await r.getFeeRate(this);if(i>0n&&a>i)throw new Dt(i,a);let o=await this.sendTransactionNoCache(r,t);return await this.cache.markTransactions(r),o}async getTransaction(e){let t=D(e),n=await this.getTransactionNoCache(t);return n?(await this.cache.recordTransactionResponses(n),n):this.cache.getTransactionResponse(t)}async getTransactionWithHeader(e){let t=D(e),n=await this.cache.getTransactionResponse(t);if(n?.blockHash){let e=await this.getHeaderByHash(n.blockHash);if(e&&this.cache.hasHeaderConfirmed(e))return{transaction:n,header:e}}let r=await this.getTransactionNoCache(t);if(r)return await this.cache.recordTransactionResponses(r),{transaction:r,header:r.blockHash?await this.getHeaderByHash(r.blockHash):void 0}}async waitTransaction(e,t=0,n=6e4,r=2e3){let a=Date.now(),o,s=async()=>{let t=await this.getTransaction(e);if(!(!t||t.blockNumber==null||[`sent`,`pending`,`proposed`].includes(t.status)))return o=t,t};for(;;){if(!o){if(await s())continue}else if(t===0)return o;else if((await this.getTipHeader()).number-o.blockNumber>=t)return o;if(Date.now()-a+r>=n)throw new At(n);await i(r)}}};function Xn(e,t){return t?t(e):e}var Zn=class{constructor(e,t,n){this.url_=e,this.onError=n,this.concurrent=0,this.pending=[],this.id=0,this.maxConcurrent=t?.maxConcurrent,this.transport=t?.transport??new qe(Array.from(new Set([e,...t?.fallbacks??[]]).values(),e=>$e(e,t)))}get url(){return this.url_}async request(e,t,n,r){let i=this.buildPayload(e,n?await Promise.all(t.concat(Array.from(Array(Math.max(n.length-t.length,0)))).map((e,t)=>Xn(e,n[t]))):t);try{return await Xn(await this.requestPayload(i),r)}catch(e){if(!this.onError)throw e;await this.onError(e)}}async requestPayload(e){this.maxConcurrent!==void 0&&this.concurrent>=this.maxConcurrent&&await new Promise(e=>this.pending.push(e));let t=await(async()=>{this.concurrent+=1;try{return await this.transport.request(e)}finally{--this.concurrent,this.pending.shift()?.()}})();if(t.id!==e.id)throw Error(`Id mismatched, got ${t.id}, expected ${e.id}`);if(t.error!=null)throw t.error;return t.result}buildPayload(e,t){return{id:this.id++,method:e,params:t,jsonrpc:`2.0`}}};const Qn=[[`Resolve\\(Unknown\\(OutPoint\\((0x.*)\\)\\)\\)`,(e,t)=>new Kt(e,S.fromBytes(t[1]))],[`Verification\\(Error { kind: Script, inner: TransactionScriptError { source: (Inputs|Outputs)\\[([0-9]*)\\].(Lock|Type), cause: ValidationFailure: see error code (-?[0-9]+) on page https://nervosnetwork\\.github\\.io/ckb-script-error-codes/by-(type|data)-hash/(.*)\\.html`,(e,t)=>new Nt(e,t[3]===`Lock`?`lock`:t[1]===`Inputs`?`inputType`:`outputType`,t[2],Number(t[4]),t[5]===`data`?`data`:`type`,t[6])],[`Duplicated\\(Byte32\\((0x.*)\\)\\)`,(e,t)=>new Ct(e,t[1])],[`RBFRejected\\("Tx's current fee is ([0-9]*), expect it to >= ([0-9]*) to replace old txs"\\)`,(e,t)=>new rn(e,t[1],t[2])]];var P=class extends Yn{constructor(e,t){super(t),this.getFeeRateStatistics=this.buildSender(`get_fee_rate_statistics`,[e=>c(m,e)],e=>({mean:m(e?.mean??Pn),median:m(e?.median??Pn)})),this.getTip=this.buildSender(`get_tip_block_number`,[],m),this.getTipHeader=this.buildSender(`get_tip_header`,[],e=>c(l.blockHeaderTo,e)),this.getBlockByNumberNoCache=this.buildSender(`get_block_by_number`,[e=>b(m(e))],e=>c(l.blockTo,e)),this.getBlockByHashNoCache=this.buildSender(`get_block`,[D],e=>c(l.blockTo,e)),this.getHeaderByNumberNoCache=this.buildSender(`get_header_by_number`,[e=>b(m(e))],e=>c(l.blockHeaderTo,e)),this.getHeaderByHashNoCache=this.buildSender(`get_header`,[D],e=>c(l.blockHeaderTo,e)),this.estimateCycles=this.buildSender(`estimate_cycles`,[l.transactionFrom],({cycles:e})=>m(e)),this.sendTransactionDry=this.buildSender(`test_tx_pool_accept`,[l.transactionFrom],({cycles:e})=>m(e)),this.sendTransactionNoCache=this.buildSender(`send_transaction`,[l.transactionFrom,e=>e??void 0],D),this.getTransactionNoCache=this.buildSender(`get_transaction`,[D],l.transactionResponseTo),this.findCellsPagedNoCache=this.buildSender(`get_cells`,[l.indexerSearchKeyFrom,e=>e??`asc`,e=>b(e??10)],l.findCellsResponseTo),this.findTransactionsPaged=this.buildSender(`get_transactions`,[l.indexerSearchKeyTransactionFrom,e=>e??`asc`,e=>b(e??10)],l.findTransactionsResponseTo),this.getCellsCapacity=this.buildSender(`get_cells_capacity`,[l.indexerSearchKeyFrom],({capacity:e})=>m(e)),this.requestor=t?.requestor??new Zn(e,t,e=>{if(typeof e!=`object`||!e||!(`data`in e)||typeof e.data!=`string`)throw e;let t=e;for(let[e,n]of Qn){let r=t.data.match(e);if(r)throw n(t,r)}throw new bn(t)})}get url(){return this.requestor.url}getCellLiveNoCache(e,t,n){return this.buildSender(`get_live_cell`,[l.outPointFrom],({cell:t})=>c(({output:t,data:n})=>_.from({cellOutput:l.cellOutputTo(t),outputData:n?.content??`0x`,outPoint:e}),t))(e,t??!0,n)}buildSender(e,t,n){return async(...r)=>this.requestor.request(e,r,t,n)}},$n=class extends P{constructor(e){let t=zn!==void 0;super(e?.url??(t?`wss://mainnet.ckb.dev/ws`:`https://mainnet.ckb.dev/`),{...e,fallbacks:e?.fallbacks??(t?[`wss://mainnet.ckb.dev/ws`,`https://mainnet.ckb.dev/`,`https://mainnet.ckbapp.dev/`]:[`https://mainnet.ckb.dev/`,`https://mainnet.ckbapp.dev/`])}),this.config=e}get scripts(){return this.config?.scripts??an}get addressPrefix(){return`ckb`}async getKnownScript(e){let t=this.scripts[e];if(!t)throw Error(`No script information was found for ${e} on ${this.addressPrefix}`);return g.from(t)}},er=class extends P{constructor(e){let t=zn!==void 0;super(e?.url??(t?`wss://testnet.ckb.dev/ws`:`https://testnet.ckb.dev/`),{...e,fallbacks:e?.fallbacks??(t?[`wss://testnet.ckb.dev/ws`,`https://testnet.ckb.dev/`,`https://testnet.ckbapp.dev/`]:[`https://testnet.ckb.dev/`,`https://testnet.ckbapp.dev/`])}),this.config=e}get scripts(){return this.config?.scripts??Xe}get addressPrefix(){return`ckt`}async getKnownScript(e){let t=this.scripts[e];if(!t)throw Error(`No script information was found for ${e} on ${this.addressPrefix}`);return g.from(t)}};function tr(e,t){return C(Vt.from(e).toBytes(),v(t,8))}var F=class e{constructor(e,t){this.script=e,this.prefix=t}static from(t){return t instanceof e?t:new e(u.from(t.script),t.prefix)}static async fromString(t,n){let{prefix:r,format:i,payload:a}=Pt(t),o=n[r]??n;if(!o)throw Error(`Unknown address prefix ${r}`);let s=o.addressPrefix;if(s!==r)throw Error(`Unknown address prefix ${r}, expected ${s}`);return e.from(await cn(r,i,a,o))}static fromScript(t,n){return e.from({script:t,prefix:n.addressPrefix})}static async fromKnownScript(t,n,r){return e.from({script:await u.fromKnownScript(t,n,r),prefix:t.addressPrefix})}toString(){let e=d([0],f(this.script.codeHash),we(this.script.hashType),f(this.script.args));return Ln.encode(this.prefix,Ln.toWords(e),hn)}};function nr(e,t){return D(Rn(d(e.slice(16,32),t))).slice(2)}async function rr(e,t,n){let r=k(32),i=k(16),a={dklen:32,salt:D(r).slice(2),n:262144,r:8,p:1},o=await Vn(f(n,`utf8`),r,{N:a.n,r:a.r,p:a.p,dkLen:a.dklen}),s=Bn(o.slice(0,16),i.map(e=>e)).encrypt(d(f(e),f(t)));return{id:D(k(16)).slice(2),crypto:{ciphertext:D(s).slice(2),cipherparams:{iv:D(i).slice(2)},cipher:`aes-128-ctr`,kdf:`scrypt`,kdfparams:a,mac:nr(o,s)}}}async function ir(e,t){if(typeof e!=`object`||!e||!(`crypto`in e))throw Error(`Invalid keystore`);let n=e.crypto;if(typeof n!=`object`||!n||!(`kdfparams`in n)||!(`ciphertext`in n)||typeof n.ciphertext!=`string`||!(`mac`in n)||typeof n.mac!=`string`||!(`cipherparams`in n)||typeof n.cipherparams!=`object`||n.cipherparams===null||!(`iv`in n.cipherparams)||typeof n.cipherparams.iv!=`string`)throw Error(`Invalid crypto`);let r=n.kdfparams;if(typeof r!=`object`||!r||!(`n`in r)||typeof r.n!=`number`||!(`r`in r)||typeof r.r!=`number`||!(`p`in r)||typeof r.p!=`number`||!(`dklen`in r)||typeof r.dklen!=`number`||!(`salt`in r)||typeof r.salt!=`string`)throw Error(`Invalid kdfparams`);let i=await Vn(f(t,`utf8`),f(r.salt),{N:r.n,r:r.r,p:r.p,dkLen:r.dklen}),a=f(n.ciphertext);if(nr(i,a)!==n.mac)throw Error(`Invalid password`);let o=Bn(i.slice(0,16),f(n.cipherparams.iv)).decrypt(a);return{privateKey:o.slice(0,32),chainCode:o.slice(32)}}var ar=class e{constructor(e,t){this.autoFinalized=e,this.inputsToSign=t}static from(t){return t instanceof e?t:new e(t?.autoFinalized??!0,t?.inputsToSign?.map(e=>or.from(e))??[])}},or=class e{constructor(e,t,n,r,i){this.index=e,this.sighashTypes=t,this.disableTweakSigner=n,this.address=r,this.publicKey=i}static from(t){return t instanceof e?t:new e(t.index,t.sighashTypes,t.disableTweakSigner,t.address,t.publicKey?D(t.publicKey):void 0)}};function sr(e){let t=m(e);return t<253?v(t,1):t<=65535?d([253],v(t,2)):t<=4294967295?d([254],v(t,4)):d([255],v(t,8))}function I(e,t){let n=t??`Bitcoin Signed Message:
2
- `,r=typeof n==`string`?f(n,`utf8`):f(n),i=typeof e==`string`?f(e,`utf8`):f(e);return j(j(d(r,sr(i.length),i)))}function L(e){return Un(j(f(e)))}function R(e,t){return M.encode(d([t],L(e)))}function z(e){return D(M.decode(e).slice(1))}function B(e,t,n){let r=typeof e==`string`?e:D(e).slice(2),i=f(t,`base64`).slice(1);return A.verify(f(i),I(r),f(n),{prehash:!1})}const cr=65;function V(e,t){let n=A.sign(f(e),f(t),{format:`recovered`,prehash:!1});return D(d(n.slice(1),n.slice(0,1)))}function H(e,t,n){let r=f(t);return A.verify(d(r.slice(64),r.slice(0,64)),f(e),f(n),{format:`recovered`,prehash:!1})}function lr(e,t){let n=f(t);return D(A.recoverPublicKey(d(n.slice(64),n.slice(0,64)),f(e),{prehash:!1}))}function U(e){return C(f(`Nervos Message:${typeof e==`string`?e:D(e)}`,`utf8`))}function ur(e,t,n){return H(U(e),t,n)}function dr(e,t,n){let r=typeof e==`string`?e:D(e).slice(2),{publicKey:i,keyType:a}=JSON.parse(n);return Wn({challenge:r,pubkey:i,keyType:a,...JSON.parse(t)})}function W(e,t){return I(e,t??`Dogecoin Signed Message:
3
- `)}function fr(e,t,n){let r=typeof e==`string`?e:D(e).slice(2),i=f(t,`base64`);return i[0]-=31,z(n)===D(L(A.recoverPublicKey(i,W(r),{prehash:!1})))}function pr(e,t,n){return n.toLowerCase()===Gn(typeof e==`string`?e:f(e),t).toLowerCase()}function G(e){if(typeof e==`string`)try{let t=JSON.parse(e);if(typeof t==`object`&&typeof t.created_at==`number`&&typeof t.kind==`number`&&typeof t.content==`string`&&Array.isArray(t.tags)&&t.tags.every(e=>Array.isArray(e)&&e.every(e=>typeof e==`string`)))return t}catch{}return{kind:23335,created_at:0,content:typeof e==`string`?e:D(e),tags:[]}}function K(e){return j(f(JSON.stringify([0,e.pubkey,e.created_at,e.kind,e.tags,e.content]),`utf8`))}function mr(e,t,n){let{words:r}=O.decode(n),i=D(O.fromWords(r)).slice(2),a=K({...G(e),pubkey:i});try{return Hn.verify(f(t),a,f(i))}catch{return!1}}let hr=function(e){return e.Unknown=`Unknown`,e.BtcEcdsa=`BtcEcdsa`,e.EvmPersonal=`EvmPersonal`,e.JoyId=`JoyId`,e.NostrEvent=`NostrEvent`,e.CkbSecp256k1=`CkbSecp256k1`,e.DogeEcdsa=`DogeEcdsa`,e}({}),gr=function(e){return e.EVM=`EVM`,e.BTC=`BTC`,e.CKB=`CKB`,e.Nostr=`Nostr`,e.Doge=`Doge`,e}({});var _r=class{constructor(e,t,n){this.signature=e,this.identity=t,this.signType=n}},q=class e{constructor(e){this.client_=e}get client(){return this.client_}matchNetworkPreference(e,t){if(!(t!==void 0&&e.some(({signerType:e,addressPrefix:n,network:r})=>e===this.type&&n===this.client.addressPrefix&&r===t)))return e.find(({signerType:e,addressPrefix:t})=>e===this.type&&t===this.client.addressPrefix)}static async verifyMessage(e,t){switch(t.signType){case`EvmPersonal`:return pr(e,t.signature,t.identity);case`BtcEcdsa`:return B(e,t.signature,t.identity);case`JoyId`:return dr(e,t.signature,t.identity);case`NostrEvent`:return mr(e,t.signature,t.identity);case`CkbSecp256k1`:return ur(e,t.signature,t.identity);case`DogeEcdsa`:return fr(e,t.signature,t.identity);case`Unknown`:throw Error(`Unknown signer sign type`)}}onReplaced(e){return()=>{}}async disconnect(){}async getIdentity(){return this.getInternalAddress()}async getRecommendedAddressObj(e){return(await this.getAddressObjs())[0]}async getRecommendedAddress(e){return(await this.getRecommendedAddressObj(e)).toString()}async getAddresses(){return this.getAddressObjs().then(e=>e.map(e=>e.toString()))}async*findCellsOnChain(e,t,n,r){let i=await this.getAddressObjs();for(let{script:a}of i)for await(let i of this.client.findCellsOnChain({script:a,scriptType:`lock`,filter:e,scriptSearchMode:`exact`,withData:t},n,r))yield i}async*findCells(e,t,n,r){let i=await this.getAddressObjs();for(let{script:a}of i)for await(let i of this.client.findCells({script:a,scriptType:`lock`,filter:e,scriptSearchMode:`exact`,withData:t},n,r))yield i}async*findTransactions(e,t,n,r){let i=await this.getAddressObjs();for(let{script:a}of i)for await(let i of this.client.findTransactions({script:a,scriptType:`lock`,filter:e,scriptSearchMode:`exact`,groupByTransaction:t},n,r))yield i}async getBalance(){return this.client.getBalance((await this.getAddressObjs()).map(({script:e})=>e))}async signMessage(e){return{signature:await this.signMessageRaw(e),identity:await this.getIdentity(),signType:this.signType}}signMessageRaw(e){throw Error(`Signer.signMessageRaw not implemented`)}async verifyMessage(t,n){return typeof n==`string`?e.verifyMessage(t,{signType:this.signType,signature:n,identity:await this.getIdentity()}):n.identity!==await this.getIdentity()||![`Unknown`,this.signType].includes(n.signType)?!1:e.verifyMessage(t,n)}async sendTransaction(e){return this.client.sendTransaction(await this.signTransaction(e))}async signTransaction(e){let t=await this.prepareTransaction(e);return this.signOnlyTransaction(t)}async prepareTransaction(e){return h.from(e)}signOnlyTransaction(e){throw Error(`Signer.signOnlyTransaction not implemented`)}},vr=class extends q{async sendTransaction(e){let t=await this.signTransaction(e);if(await this.needMoreSignatures(t))throw new yr(await this.getSignaturesCount(t)??0,await this.getMemberThreshold());return this.client.sendTransaction(t)}},yr=class extends Error{constructor(e,t){let n=`Not enough signatures: got ${e}, need ${t}`;super(n),this.name=`SignerMultisigNotEnoughSignaturesError`,this.signaturesCount=e,this.threshold=t}},br=class{constructor(e,t){this.name=e,this.signer=t}},J=class extends q{get type(){return`BTC`}get signType(){return`BtcEcdsa`}async signAndBroadcastPsbt(e,t){let n=await this.signPsbt(e,t);return this.broadcastPsbt(n,t)}async getInternalAddress(){return this.getBtcAccount()}async getIdentity(){return D(await this.getBtcPublicKey()).slice(2)}async getAddressObjs(){let e=L(await this.getBtcPublicKey());return[await F.fromKnownScript(this.client,`OmniLock`,D([4,...e,0]))]}async prepareTransaction(e){let t=h.from(e),{script:n}=await this.getRecommendedAddressObj();return await t.addCellDepsOfKnownScripts(this.client,`OmniLock`),await t.prepareSighashAllWitness(n,85,this.client),t}async signOnlyTransaction(e){let t=h.from(e),{script:n}=await this.getRecommendedAddressObj(),r=await t.getSignHashInfo(n,this.client);if(!r)return t;let i=f(await this.signMessageRaw(`CKB (Bitcoin Layer) transaction: ${r.message}`),`base64`);i[0]=31+(i[0]-27)%4;let a=E.fromBytes(t.witnesses[r.position]);return a.lock=D(d(w(20+i.length,4),w(16,4),w(20+i.length,4),w(20+i.length,4),w(i.length,4),i)),t.setWitnessArgs(r.position,a),t}},xr=class extends J{constructor(e,t,n){super(e),this.account=t,this.publicKey=D(n)}async connect(){}async isConnected(){return!0}async getBtcAccount(){return this.account}async getBtcPublicKey(){return this.publicKey}async signPsbt(e,t){throw Error(`Read-only signer does not support signPsbt`)}async broadcastPsbt(e,t){throw Error(`Read-only signer does not support broadcastPsbt`)}},Sr=class extends q{get type(){return`CKB`}get signType(){return`Unknown`}constructor(e){super(e)}async connect(){}async isConnected(){return!0}async getInternalAddress(){return this.getRecommendedAddress()}async getAddressObjs(){return[await F.fromKnownScript(this.client,`AlwaysSuccess`,`0x`)]}async prepareTransaction(e){let t=h.from(e);return await t.addCellDepsOfKnownScripts(this.client,`AlwaysSuccess`),t}async signOnlyTransaction(e){return h.from(e)}},Cr=class extends q{get type(){return`CKB`}get signType(){return`CkbSecp256k1`}constructor(e,t){if(super(e),this.publicKey=D(t),f(this.publicKey).length!==33)throw Error(`Public key must be 33 bytes!`)}async connect(){}async isConnected(){return!0}async getInternalAddress(){return this.getRecommendedAddress()}async getIdentity(){return this.publicKey}async getAddressObjSecp256k1(){return F.fromKnownScript(this.client,`Secp256k1Blake160`,y(this.publicKey))}async getRecommendedAddressObj(e){return this.getAddressObjSecp256k1()}async getAddressObjs(){let e=await this.getAddressObjSecp256k1(),t=[],n=0;for await(let r of this.client.findCells({script:await u.fromKnownScript(this.client,`AnyoneCanPay`,e.script.args),scriptType:`lock`,scriptSearchMode:`prefix`,withData:!1})){if(n>=10)break;n+=1,!t.some(({script:e})=>e.eq(r.cellOutput.lock))&&t.push(F.from({prefix:this.client.addressPrefix,script:r.cellOutput.lock}))}return[e,...t]}async getRelatedScripts(e){let t=h.from(e),n=await this.getAddressObjSecp256k1(),r=await u.fromKnownScript(this.client,`AnyoneCanPay`,n.script.args),i=[];for(let e of t.inputs){let{cellOutput:{lock:t}}=await e.getCell(this.client);i.some(({script:e})=>e.eq(t))||(t.eq(n.script)?i.push({script:t,cellDeps:(await this.client.getKnownScript(`Secp256k1Blake160`)).cellDeps}):t.codeHash===r.codeHash&&t.hashType===r.hashType&&t.args.startsWith(r.args)&&i.push({script:t,cellDeps:(await this.client.getKnownScript(`AnyoneCanPay`)).cellDeps}))}return i}async prepareTransaction(e){let t=h.from(e);return await Promise.all((await this.getRelatedScripts(t)).map(async({script:e,cellDeps:n})=>{await t.prepareSighashAllWitness(e,65,this.client),await t.addCellDepInfos(this.client,n)})),t}},wr=class extends Cr{constructor(e,t){let n=D(t);if(f(n).length!==32)throw Error(`Private key must be 32 bytes!`);super(e,A.getPublicKey(f(n),!0)),this.privateKey=n}async _signMessage(e){return V(e,this.privateKey)}async signMessageRaw(e){return this._signMessage(U(e))}async signOnlyTransaction(e){let t=h.from(e);for(let{script:e}of await this.getRelatedScripts(t)){let n=await t.getSignHashInfo(e,this.client);if(!n)return t;let r=await this._signMessage(n.message),i=t.getWitnessArgs(n.position)??E.from({});i.lock=r,t.setWitnessArgs(n.position,i)}return t}},Tr=class extends q{get type(){return`CKB`}get signType(){return`Unknown`}constructor(e,...t){if(super(e),this.scripts=t.flat().map(u.from),this.scripts.length===0)throw Error(`SignerCkbScriptReadonly requires at least one script.`)}async connect(){}async isConnected(){return!0}async getInternalAddress(){return this.getRecommendedAddress()}async getAddressObjs(){return this.scripts.map(e=>F.fromScript(e,this.client))}},Y;let X=Y=class extends Ut.Base(){constructor(e,t,n,r){super(),this.publicKeyHashes=e,this.threshold=t,this.mustMatch=n,this.signatures=r;let i=e.length;if(t<=0||t>i)throw Error(`threshold should be in range from 1 to public keys length`);if(n<0||n>Math.min(i,t))throw Error(`mustMatch should be in range from 0 to min(public keys length, threshold)`);if(i>255)throw Error(`public keys length should be less than 256`)}static from(e){let t=e.publicKeyHashes?e.publicKeyHashes:e.publicKeys.map(e=>y(e));return new Y(t.map(D),Number(m(e.threshold)),Number(m(e.mustMatch??0)),e.signatures?.map(D)??[])}get flexibleThreshold(){return this.threshold-this.mustMatch}scriptArgs(e){let t=y(Y.from({...this,signatures:[]}).toBytes());return e==null?f(t):d(t,Ot.from(e).toBytes())}eqInfo(e){let t=Y.from(e);return this.publicKeyHashes.length===t.publicKeyHashes.length&&this.publicKeyHashes.every((e,n)=>e===t.publicKeyHashes[n])&&this.threshold===t.threshold&&this.mustMatch===t.mustMatch}*generatePublicKeyHashesFromSignatures(e){let t=new Set;for(let n of this.signatures.filter(e=>e!==Z.EmptySignature)){let r=(()=>{try{return lr(e,n)}catch{return}})();if(r===void 0)continue;let i=y(r);if(t.has(i))continue;let a=this.publicKeyHashes.indexOf(i);a!==-1&&(t.add(i),yield{pubkeyHash:i,signature:n,isRequired:a<this.mustMatch})}}calcMatchedSignaturesCount(e){let t=0,n=0;for(let{isRequired:r}of this.generatePublicKeyHashesFromSignatures(e))r?t+=1:n+=1;return{required:t,flexible:n}}};X=Y=Ke([T({encode:e=>{let{publicKeyHashes:t,threshold:n,mustMatch:r,signatures:i}=X.from(e);if(i.some(e=>e.length!==132))throw Error(`MultisigCkbWitness: invalid signature length`);if(t.some(e=>e.length!==42))throw Error(`MultisigCkbWitness: invalid public key hash length`);return d(`0x00`,w(r??0),w(n),w(t.length),...t,...i)},decode:e=>{if(e.length<4)throw Error(`MultisigCkbWitness: data length too short`);let[t,n,r,i,...a]=e;if(a.length<i*20)throw Error(`MultisigCkbWitness: invalid public key hashes length`);let o=a.slice(i*20);return X.from({publicKeyHashes:Array.from(Array(i),(e,t)=>D(a.slice(t*20,(t+1)*20))),threshold:m(r),mustMatch:m(n),signatures:Array.from(Array(Math.floor(o.length/65)),(e,t)=>D(o.slice(t*65,(t+1)*65)))})}})],X);var Z=class e extends vr{static{this.EmptySignature=D(`00`.repeat(65))}get type(){return`CKB`}get signType(){return`Unknown`}constructor(e,t,n){super(e),this.multisigInfo=X.from(t),this.since=c(Ot.from,n?.since);let r=this.multisigInfo.scriptArgs(this.since);this.scriptInfos=Promise.all((n?.scriptInfos??[`Secp256k1MultisigV2`,`Secp256k1MultisigV2Beta`,`Secp256k1Multisig`]).map(async t=>{if(typeof t!=`string`)return g.from(t);try{return await e.getKnownScript(t)}catch{return}})).then(e=>e.filter(e=>e!==void 0).map(e=>({script:u.from({...e,args:r}),cellDeps:e.cellDeps})))}async getMemberCount(){return this.multisigInfo.publicKeyHashes.length}async getMemberThreshold(){return this.multisigInfo.threshold}async getMemberRequiredCount(){return this.multisigInfo.mustMatch}async connect(){}async isConnected(){return!0}async getInternalAddress(){return this.getRecommendedAddress()}async getAddressObjs(){return(await this.scriptInfos).map(({script:e})=>F.fromScript(e,this.client))}decodeWitnessArgsAt(e,t){let n=h.from(e);return this.decodeWitnessArgs(n.getWitnessArgs(t))}decodeWitnessArgs(e){if(!e)return;let t=E.from(e);if(t.lock!=null)try{let e=X.decode(t.lock);if(e.eqInfo(this.multisigInfo))return e}catch{}}async prepareWitnessArgsAt(t,n,r){let i=h.from(t),a=i.getWitnessArgs(n)??E.from({}),o=this.decodeWitnessArgs(a)??this.multisigInfo.clone(),s=X.from(await r?.(o,a)??o);return s.signatures=s.signatures.slice(0,this.multisigInfo.threshold),s.signatures.push(...Array.from(Array(this.multisigInfo.threshold-s.signatures.length),()=>e.EmptySignature)),a.lock=s.toHex(),i.setWitnessArgs(n,a),i}async prepareTransactionOneScript(e,t,n){let r=h.from(e),i=await r.findInputIndexByLock(t,this.client);return i===void 0?r:(await r.addCellDepInfos(this.client,n),this.prepareWitnessArgsAt(r,i))}async prepareTransaction(e){return await x(await this.scriptInfos,(e,{script:t,cellDeps:n})=>this.prepareTransactionOneScript(e,t,n),h.from(e))}async getSignaturesCount(e){let t=h.from(e),n;for(let{script:e}of await this.scriptInfos){let r=await this.getSignInfo(t,e);if(r===void 0)continue;let i=this.decodeWitnessArgsAt(t,r.position);if(!i){n=0;continue}let{required:a,flexible:o}=i.calcMatchedSignaturesCount(r.message);n=Math.min(n??256,a+Math.min(o,this.multisigInfo.flexibleThreshold))}return n}async needMoreSignatures(e){let t=await this.getSignaturesCount(e);return t!=null&&t<await this.getMemberThreshold()}async getSignInfo(t,n){let r=h.from(t),i=await r.findInputIndexByLock(n,this.client);if(i==null)return;let a=r.getWitnessArgs(i)??E.from({});a.lock=X.from({...this.multisigInfo,signatures:Array.from(Array(this.multisigInfo.threshold),()=>e.EmptySignature)}).toHex();let o=r.clone();return o.setWitnessArgs(i,a),o.getSignHashInfo(n,this.client)}async aggregateTransactions(e){if(e.length===0)throw Error(`No transaction to aggregate`);let t=h.from(e[0]);for(let{script:n}of await this.scriptInfos){let r=await this.getSignInfo(t,n);if(r===void 0)continue;let i=new Map,a=0;for(let t of e){let e=h.from(t),n=this.decodeWitnessArgsAt(e,r.position);if(n){for(let{pubkeyHash:e,signature:t,isRequired:o}of n.generatePublicKeyHashesFromSignatures(r.message))if(!i.has(e)){if(o)a+=1;else if(i.size-a>=this.multisigInfo.flexibleThreshold)continue;if(i.set(e,t),i.size>=this.multisigInfo.threshold)break}if(i.size>=this.multisigInfo.threshold)break}}t=await this.prepareWitnessArgsAt(t,r.position,e=>{e.signatures=Array.from(i.values())})}return t}},Er=class extends Z{constructor(e,t,n,r){super(e,n,r),this.privateKey=D(t),this.signer=new wr(e,this.privateKey)}async signOnlyTransaction(e){let t=h.from(e),n=y(this.signer.publicKey),r=this.multisigInfo.publicKeyHashes.indexOf(n);if(r===-1)return t;let i=r<this.multisigInfo.mustMatch;for(let{script:e}of await this.scriptInfos){let r=await this.getSignInfo(t,e);r&&(t=await this.prepareWitnessArgsAt(t,r.position,async e=>{let t=[],a=0,o=!0;for(let{pubkeyHash:i,signature:s,isRequired:ee}of e.generatePublicKeyHashesFromSignatures(r.message)){if(i===n){if(!o)continue;o=!1}if(ee)a+=1;else if(t.length-a>=this.multisigInfo.flexibleThreshold)continue;if(t.push(s),t.length>=this.multisigInfo.threshold){o=!1;break}}return o&&(i||t.length-a<this.multisigInfo.flexibleThreshold)&&t.push(V(r.message,this.privateKey)),e.signatures=t,e}))}return t}},Q=class extends q{get type(){return`Doge`}get signType(){return`DogeEcdsa`}async getInternalAddress(){return this.getDogeAddress()}async getIdentity(){return this.getDogeAddress()}async getAddressObjs(){let e=M.decode(await this.getDogeAddress()).slice(1);return[await F.fromKnownScript(this.client,`OmniLock`,D([5,...e,0]))]}async prepareTransaction(e){let t=h.from(e),{script:n}=await this.getRecommendedAddressObj();return await t.addCellDepsOfKnownScripts(this.client,`OmniLock`),await t.prepareSighashAllWitness(n,85,this.client),t}async signOnlyTransaction(e){let t=h.from(e),{script:n}=await this.getRecommendedAddressObj(),r=await t.getSignHashInfo(n,this.client);if(!r)return t;let i=f(await this.signMessageRaw(r.message.slice(2)),`base64`);i[0]=31+(i[0]-27)%4;let a=E.fromBytes(t.witnesses[r.position]);return a.lock=D(d(w(20+i.length,4),w(16,4),w(20+i.length,4),w(20+i.length,4),w(i.length,4),i)),t.setWitnessArgs(r.position,a),t}},Dr=class extends Q{constructor(e,t){super(e),this.address=t}async connect(){}async isConnected(){return!0}async getDogeAddress(){return this.address}},Or=class extends Q{constructor(e,t,n=30){if(super(e),this.dogeNetwork=n,this.privateKey=f(t),this.privateKey.length!==32)throw Error(`Private key must be 32 bytes!`)}async connect(){}async isConnected(){return!0}async getDogePublicKey(){return D(A.getPublicKey(this.privateKey,!0))}async getDogeAddress(){return R(await this.getDogePublicKey(),this.dogeNetwork)}async signMessageRaw(e){let t=typeof e==`string`?e:D(e).slice(2),n=A.sign(W(t),this.privateKey,{format:`recovered`,prehash:!1});return ce(d([31+Number(n[0])],n.slice(1)),`base64`)}},$=class extends q{get signType(){return`Unknown`}constructor(e,t){super(e),this.type=t}async isConnected(){return!1}async getInternalAddress(){throw Error(`Can't get address from SignerDummy`)}async getAddressObjs(){throw Error(`Can't get addresses from SignerDummy`)}},kr=class extends ${constructor(e,t,n){super(e,t),this.message=n}async connect(){throw Error(this.message)}},Ar=class extends ${constructor(e,t,n){super(e,t),this.link=n}async connect(){window.open(this.link,`_blank`)?.focus()}},jr=class extends q{get type(){return`EVM`}get signType(){return`EvmPersonal`}async getInternalAddress(){return this.getEvmAccount()}async getAddressObjs(){let e=await this.getEvmAccount();return(await Promise.all([this._getOmniLockAddresses(e),this._getPWLockAddresses(e)])).flat()}_getOmniLockAddresses(e){return Promise.all([this._getOmniLockEvmAddressObj(e),this._getOmniLockOldEvmAddressObj(e)])}async _getPWLockAddresses(e){let t=await this._getPWLockEvmAddressObj(e);return t?[t]:[]}async _getOmniLockEvmAddressObj(e){return F.fromKnownScript(this.client,`OmniLock`,D([18,...f(e),0]))}async _getOmniLockOldEvmAddressObj(e){return F.fromKnownScript(this.client,`OmniLock`,D([1,...f(e),0]))}async _getPWLockEvmAddressObj(e){try{return F.fromKnownScript(this.client,`PWLock`,D(f(e)))}catch{}}async prepareTransaction(e){let t=h.from(e);await t.findInputIndexByLockId(await this.client.getKnownScript(`OmniLock`),this.client)!==void 0&&await t.addCellDepsOfKnownScripts(this.client,`OmniLock`),await t.findInputIndexByLockId(await this.client.getKnownScript(`PWLock`),this.client)!==void 0&&await t.addCellDepsOfKnownScripts(this.client,`PWLock`);let n=await this.getEvmAccount(),r=await this._getOmniLockAddresses(n);return x(await this._getPWLockAddresses(n),(e,{script:t})=>e.prepareSighashAllWitness(t,65,this.client),x(r,(e,{script:t})=>e.prepareSighashAllWitness(t,85,this.client),t))}async signOnlyTransaction(e){let t=h.from(e),n=await this.getEvmAccount(),{script:r}=await this._getOmniLockEvmAddressObj(n),{script:i}=await this._getOmniLockOldEvmAddressObj(n);t=await this._signOmniLockScriptForTransaction(t,r,e=>`CKB transaction: ${e}`),t=await this._signOmniLockScriptForTransaction(t,i,e=>f(e));let a=await this._getPWLockEvmAddressObj(n);return a&&(t=await this._signPWLockScriptForTransaction(t,a.script,e=>f(e))),t}async _signOmniLockScriptForTransaction(e,t,n){let r=await this._signPersonalEvmForTransaction(e,t,n);if(!r)return e;let i=E.fromBytes(e.witnesses[r.position]);return i.lock=D(d(w(20+r.signature.length,4),w(16,4),w(20+r.signature.length,4),w(20+r.signature.length,4),w(r.signature.length,4),r.signature)),e.setWitnessArgs(r.position,i),e}async _signPWLockScriptForTransaction(e,t,n){let r=await this._signPersonalEvmForTransaction(e,t,n,new N);if(!r)return e;let i=E.fromBytes(e.witnesses[r.position]);return i.lock=D(r.signature),e.setWitnessArgs(r.position,i),e}async _signPersonalEvmForTransaction(e,t,n,r){let i=await e.getSignHashInfo(t,this.client,r);if(!i)return;let a=f(await this.signMessageRaw(n(i.message)));return a[a.length-1]>=27&&(a[a.length-1]-=27),{signature:a,position:i.position}}},Mr=class extends jr{constructor(e,t){super(e),this.address=D(t)}async connect(){}async isConnected(){return!0}async getEvmAccount(){return this.address}},Nr=class e extends q{static{this.CKB_SIG_HASH_ALL_TAG=`ckb_sighash_all`}static{this.CKB_UNLOCK_EVENT_KIND=23334}static{this.CKB_UNLOCK_EVENT_CONTENT=`Signing a CKB transaction
4
-
5
- IMPORTANT: Please verify the integrity and authenticity of connected Nostr client before signing this message
6
- `}get type(){return`Nostr`}get signType(){return`NostrEvent`}async signNostrEvent(e){throw Error(`SignerNostr.signNostrEvent not implemented`)}async signMessageRaw(e){return D((await this.signNostrEvent(G(e))).sig)}async getInternalAddress(){return O.encode(`npub`,O.toWords(f(await this.getNostrPublicKey())))}async getAddressObjs(){let e=await this.getNostrPublicKey();return[await F.fromKnownScript(this.client,`NostrLock`,D(d([0],C(e).slice(0,42))))]}async prepareTransaction(e){let t=h.from(e),{script:n}=await this.getRecommendedAddressObj();return await t.addCellDepsOfKnownScripts(this.client,`NostrLock`),await t.prepareSighashAllWitness(n,572,this.client),t}async signOnlyTransaction(t){let n=h.from(t),{script:r}=await this.getRecommendedAddressObj(),i=await n.getSignHashInfo(r,this.client);if(!i)return n;let a=f(JSON.stringify(await this.signNostrEvent({pubkey:(await this.getNostrPublicKey()).slice(2),tags:[[e.CKB_SIG_HASH_ALL_TAG,i.message.slice(2)]],created_at:Math.floor(Date.now()/1e3),kind:e.CKB_UNLOCK_EVENT_KIND,content:e.CKB_UNLOCK_EVENT_CONTENT})),`utf8`),o=E.fromBytes(n.witnesses[i.position]);return o.lock=D(a),n.setWitnessArgs(i.position,o),n}},Pr=class extends Nr{constructor(e,t){if(super(e),typeof t==`string`&&t.startsWith(`npub`)){let{words:e}=O.decode(t);this.publicKey=D(O.fromWords(e))}else this.publicKey=D(t)}async connect(){}async isConnected(){return!0}async getNostrPublicKey(){return this.publicKey}},Fr=class extends Pr{constructor(e,t){let n=(()=>{if(typeof t==`string`&&t.startsWith(`nsec`)){let{words:e}=O.decode(t);return f(O.fromWords(e))}return f(t)})();super(e,Hn.getPublicKey(n)),this.privateKey=n}async signNostrEvent(e){let t=(await this.getNostrPublicKey()).slice(2),n=K({...e,pubkey:t}),r=Hn.sign(n,this.privateKey);return{...e,id:D(n).slice(2),pubkey:t,sig:D(r).slice(2)}}},Ir=e({Address:()=>F,Bytes:()=>An,Cell:()=>_,CellAny:()=>Xt,CellDep:()=>dn,CellDepInfo:()=>Yt,CellDepVec:()=>_t,CellInput:()=>Vt,CellInputVec:()=>vn,CellOutput:()=>xt,CellOutputVec:()=>Tt,Client:()=>Yn,ClientBlock:()=>un,ClientBlockHeader:()=>It,ClientBlockUncle:()=>pt,ClientCache:()=>qn,ClientCacheMemory:()=>Jn,ClientIndexerSearchKey:()=>$t,ClientIndexerSearchKeyFilter:()=>mn,ClientIndexerSearchKeyTransaction:()=>bt,ClientJsonRpc:()=>P,ClientPublicMainnet:()=>$n,ClientPublicTestnet:()=>er,ClientTransactionResponse:()=>Wt,Codec:()=>gt,CodecBool:()=>Nn,CodecByte:()=>ht,CodecByte16:()=>kn,CodecByte32:()=>He,CodecByte4:()=>ee,CodecByte8:()=>Tn,CodecBytes:()=>Ge,CodecRaw:()=>se,CodecUint128:()=>ie,CodecUint128BE:()=>Me,CodecUint128LE:()=>Bt,CodecUint16:()=>r,CodecUint16BE:()=>Rt,CodecUint16LE:()=>De,CodecUint256:()=>Ae,CodecUint256BE:()=>Fe,CodecUint256LE:()=>ue,CodecUint32:()=>_e,CodecUint32BE:()=>Te,CodecUint32LE:()=>ze,CodecUint512:()=>Fn,CodecUint512BE:()=>a,CodecUint512LE:()=>Ze,CodecUint64:()=>me,CodecUint64BE:()=>Je,CodecUint64LE:()=>et,CodecUint8:()=>fe,DepTypeCodec:()=>en,Entity:()=>Ut,Epoch:()=>jn,ErrorClientBase:()=>bn,ErrorClientDuplicatedTransaction:()=>Ct,ErrorClientMaxFeeRateExceeded:()=>Dt,ErrorClientRBFRejected:()=>rn,ErrorClientResolveUnknown:()=>Kt,ErrorClientVerification:()=>Nt,ErrorClientWaitTransactionTimeout:()=>At,ErrorTransactionInsufficientCapacity:()=>oe,ErrorTransactionInsufficientCoin:()=>re,HASH_CKB_LENGTH:()=>32,HASH_CKB_SHORT_LENGTH:()=>20,HashTypeCodec:()=>Lt,HasherCkb:()=>nn,HasherKeecak256:()=>N,InputToSign:()=>or,KnownScript:()=>ye,MultisigCkbWitness:()=>X,One:()=>ft,OutPoint:()=>S,RawTransaction:()=>jt,RequestorJsonRpc:()=>Zn,SECP256K1_SIGNATURE_LENGTH:()=>65,Script:()=>u,ScriptInfo:()=>g,ScriptOpt:()=>ke,ScriptVec:()=>Pe,SignPsbtOptions:()=>ar,Signature:()=>_r,Signer:()=>q,SignerAlwaysError:()=>kr,SignerBtc:()=>J,SignerBtcPublicKeyReadonly:()=>xr,SignerCkbAlwaysSuccess:()=>Sr,SignerCkbPrivateKey:()=>wr,SignerCkbPublicKey:()=>Cr,SignerCkbScriptReadonly:()=>Tr,SignerDoge:()=>Q,SignerDogeAddressReadonly:()=>Dr,SignerDogePrivateKey:()=>Or,SignerDummy:()=>$,SignerEvm:()=>jr,SignerEvmAddressReadonly:()=>Mr,SignerInfo:()=>br,SignerMultisig:()=>vr,SignerMultisigCkbPrivateKey:()=>Er,SignerMultisigCkbReadonly:()=>Z,SignerMultisigNotEnoughSignaturesError:()=>yr,SignerNostr:()=>Nr,SignerNostrPrivateKey:()=>Fr,SignerNostrPublicKeyReadonly:()=>Pr,SignerOpenLink:()=>Ar,SignerSignType:()=>hr,SignerType:()=>gr,Since:()=>Ot,Transaction:()=>h,WitnessArgs:()=>E,Zero:()=>Qt,apply:()=>c,btcEcdsaPublicKeyHash:()=>L,btcP2pkhAddressFromPublicKey:()=>R,btcPublicKeyFromP2pkhAddress:()=>z,btcVarLengthBytesFrom:()=>sr,buildNostrEventFromMessage:()=>G,bytesConcat:()=>d,bytesConcatTo:()=>te,bytesEq:()=>En,bytesFrom:()=>f,bytesLen:()=>ut,bytesLenUnsafe:()=>Sn,bytesTo:()=>ce,calcDaoClaimEpoch:()=>Mn,calcDaoProfit:()=>mt,codec:()=>T,codecPadding:()=>Se,codecUint:()=>on,codecUintNumber:()=>be,depTypeFrom:()=>On,depTypeFromBytes:()=>Ve,depTypeToBytes:()=>s,epochFrom:()=>Ue,epochFromHex:()=>ne,epochToHex:()=>Dn,fixedPointFrom:()=>pn,fixedPointToString:()=>yt,gcd:()=>ae,hashCkb:()=>C,hashCkbShort:()=>y,hashTypeFrom:()=>le,hashTypeFromBytes:()=>ge,hashTypeId:()=>tr,hashTypeToBytes:()=>we,hexFrom:()=>D,isDaoOutputLimitExceeded:()=>wn,isWebview:()=>Ne,keystoreDecrypt:()=>ir,keystoreEncrypt:()=>rr,messageHashBtcEcdsa:()=>I,messageHashCkbSecp256k1:()=>U,messageHashDogeEcdsa:()=>W,mol:()=>Kn,nostrEventHash:()=>K,numBeFromBytes:()=>at,numBeToBytes:()=>nt,numFrom:()=>m,numFromBytes:()=>Le,numLeFromBytes:()=>t,numLeToBytes:()=>v,numMax:()=>_n,numMin:()=>Jt,numToBytes:()=>w,numToHex:()=>b,recoverMessageSecp256k1:()=>lr,reduceAsync:()=>x,signMessageSecp256k1:()=>V,sleep:()=>i,stringify:()=>zt,udtBalanceFrom:()=>We,verifyMessageBtcEcdsa:()=>B,verifyMessageCkbSecp256k1:()=>ur,verifyMessageDogeEcdsa:()=>fr,verifyMessageEvmPersonal:()=>pr,verifyMessageJoyId:()=>dr,verifyMessageNostrEvent:()=>mr,verifyMessageSecp256k1:()=>H});export{tr as $,K as A,ur as B,q as C,hr as D,yr as E,dr as F,sr as G,L as H,cr as I,or as J,I as K,U as L,pr as M,W as N,gr as O,fr as P,F as Q,lr as R,_r as S,vr as T,R as U,H as V,z as W,ir as X,ar as Y,rr as Z,wr as _,Mr as a,Jn as at,xr as b,kr as c,N as ct,Dr as d,er as et,Q as f,Tr as g,Z as h,Nr as i,Yn as it,mr as j,G as k,$ as l,X as m,Fr as n,P as nt,jr as o,qn as ot,Er as p,B as q,Pr as r,Zn as rt,Ar as s,Kn as st,Ir as t,$n as tt,Or as u,Cr as v,br as w,J as x,Sr as y,V as z};
7
- //# sourceMappingURL=barrel-Ctu3ZNcR.mjs.map