@ckb-ccc/core 1.22.1 → 1.23.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 (49) hide show
  1. package/CHANGELOG.md +61 -0
  2. package/dist/advanced.d.mts +1 -1
  3. package/dist/advanced.mjs +1 -1
  4. package/dist/{advancedBarrel-Daj_LJkz.d.mts → advancedBarrel-BBbQZ2OW.d.mts} +480 -379
  5. package/dist/advancedBarrel-BBbQZ2OW.d.mts.map +1 -0
  6. package/dist/advancedBarrel.d.mts +1 -1
  7. package/dist/advancedBarrel.mjs +1 -1
  8. package/dist/barrel-Dz1WLXRX.mjs +7 -0
  9. package/dist/barrel-Dz1WLXRX.mjs.map +1 -0
  10. package/dist/barrel.d.mts +2 -2
  11. package/dist/barrel.mjs +1 -1
  12. package/dist/index.d.mts +2 -2
  13. package/dist/index.mjs +1 -1
  14. package/dist/transformers-BHt442Nd.mjs +2 -0
  15. package/dist/transformers-BHt442Nd.mjs.map +1 -0
  16. package/dist.commonjs/advanced.d.ts +1 -1
  17. package/dist.commonjs/advanced.js +1 -1
  18. package/dist.commonjs/{advancedBarrel-CJL3rfuW.d.ts → advancedBarrel-BS4zFcFI.d.ts} +480 -379
  19. package/dist.commonjs/advancedBarrel-BS4zFcFI.d.ts.map +1 -0
  20. package/dist.commonjs/advancedBarrel.d.ts +1 -1
  21. package/dist.commonjs/advancedBarrel.js +1 -1
  22. package/dist.commonjs/{barrel--PaV2IZx.js → barrel-CZYID7jh.js} +10 -10
  23. package/dist.commonjs/barrel-CZYID7jh.js.map +1 -0
  24. package/dist.commonjs/barrel.d.ts +2 -2
  25. package/dist.commonjs/barrel.js +1 -1
  26. package/dist.commonjs/index.d.ts +2 -2
  27. package/dist.commonjs/index.js +1 -1
  28. package/dist.commonjs/transformers-CYUULrnt.js +2 -0
  29. package/dist.commonjs/transformers-CYUULrnt.js.map +1 -0
  30. package/package.json +1 -1
  31. package/src/address/index.ts +32 -4
  32. package/src/ckb/transaction.ts +59 -27
  33. package/src/client/cache/memory.advanced.ts +18 -3
  34. package/src/client/client.ts +41 -2
  35. package/src/client/clientPublicMainnet.ts +9 -2
  36. package/src/client/clientPublicTestnet.ts +9 -2
  37. package/src/client/jsonRpc/client.ts +7 -7
  38. package/src/codec/codec.ts +51 -27
  39. package/src/codec/entity.ts +26 -16
  40. package/src/molecule/codec.ts +437 -202
  41. package/dist/advancedBarrel-Daj_LJkz.d.mts.map +0 -1
  42. package/dist/barrel-pRBtHOAW.mjs +0 -7
  43. package/dist/barrel-pRBtHOAW.mjs.map +0 -1
  44. package/dist/transformers-lavDTtAW.mjs +0 -2
  45. package/dist/transformers-lavDTtAW.mjs.map +0 -1
  46. package/dist.commonjs/advancedBarrel-CJL3rfuW.d.ts.map +0 -1
  47. package/dist.commonjs/barrel--PaV2IZx.js.map +0 -1
  48. package/dist.commonjs/transformers-VBXQGQKe.js +0 -2
  49. package/dist.commonjs/transformers-VBXQGQKe.js.map +0 -1
package/dist/barrel.d.mts CHANGED
@@ -1,2 +1,2 @@
1
- import { $ as CellDep, $i as isWebview, $n as SignerAlwaysError, $r as JsonRpcPayload, $t as ClientBlockUncle, Aa as EncodableType, Ai as CodecUint256, An as buildNostrEventFromMessage, Ar as Signature, At as HashTypeCodec, Ba as bytesConcat, Bi as CodecUint64BE, Bn as SignerJsonRpcErrorCode, Br as SignPsbtOptions, Bt as ClientConfig, Ca as numMax, Ci as CodecRaw, Cn as TransactionStatus, Cr as btcPublicKeyFromP2pkhAddress, Ct as depTypeFrom, Da as Codec, Di as CodecUint16, Dr as SignerBtcPublicKeyReadonly, Dt as udtBalanceFrom, Ea as numToHex, Ei as CodecUint128LE, Er as verifyMessageBtcEcdsa, Et as isDaoOutputLimitExceeded, Fa as bytesLen, Fi as CodecUint32LE, Fn as NostrEvent, Fr as SignerSignType, Ft as ScriptVec, G as ClientCacheMemory, Gi as codecUintNumber, Gr as RequestorJsonRpc, Gt as epochFromHex, H as ClientPublicMainnet, Ha as bytesEq, Hi as CodecUint8, Hn as SignerJsonRpcProviderSessionConfig, Hr as barrel_d_exports, Ht as Epoch, Ia as bytesLenUnsafe, Ii as CodecUint512, In as SignerNostr, Ir as SignerType, It as hashTypeFrom, J as ErrorTransactionInsufficientCoin, Ji as RetryOperationOptions, Jr as JsonRpcTransportHttp, Jt as CellDepInfoLike, K as ClientCache, Ki as Entity, Kr as RequestorJsonRpcConfig, Kt as epochToHex, La as hexFrom, Li as CodecUint512BE, Ln as SignerJsonRpc, Lr as Wallet, Lt as hashTypeFromBytes, Ma as AddressLike, Mi as CodecUint256LE, Mn as verifyMessageNostrEvent, Mr as SignerInfo, Mt as Script, Na as Hex, Ni as CodecUint32, Nn as SignerNostrPrivateKey, Nr as SignerMultisig, Nt as ScriptLike, Oa as CodecLike, Oi as CodecUint16BE, Or as SignerBtc, Ot as LumosTransactionSkeletonType, Pa as HexLike, Pi as CodecUint32BE, Pn as SignerNostrPublicKeyReadonly, Pr as SignerMultisigNotEnoughSignaturesError, Pt as ScriptOpt, Q as CellAnyLike, Qi as gcd, Qn as SignerOpenLink, Qr as JsonRpcId, Qt as ClientBlockLike, Ra as Bytes, Ri as CodecUint512LE, Rn as SignerJsonRpcConfig, Rr as InputToSign, Rt as hashTypeToBytes, Sa as numLeToBytes, Si as CodecBytes, Sn as ScriptInfoLike, Sr as btcP2pkhAddressFromPublicKey, St as calcDaoProfit, Ta as numToBytes, Ti as CodecUint128BE, Tr as messageHashBtcEcdsa, Tt as depTypeToBytes, U as ClientJsonRpc, Ua as bytesFrom, Ui as codecPadding, Un as SignerJsonRpcProviderSessionOptions, Ur as keystoreDecrypt, Ut as EpochLike, V as ClientPublicTestnet, Va as bytesConcatTo, Vi as CodecUint64LE, Vn as SignerJsonRpcProviderSession, Vr as SignPsbtOptionsLike, Vt as KnownScript, W as ClientJsonRpcConfig, Wa as bytesTo, Wi as codecUint, Wn as SignerJsonRpcResultRecord, Wr as keystoreEncrypt, Wt as epochFrom, X as Cell, Xi as RetryResult, Xn as SignerEvmAddressReadonly, Xr as JsonRpcError, Xt as ClientBlockHeader, Y as hashTypeId, Yi as RetryOptions, Yn as verifyMessageEvmPersonal, Yr as JsonRpcTransportFallback, Yt as ClientBlock, Z as CellAny, Zi as apply, Zn as SignerEvm, Zr as JsonRpcErrorLike, Zt as ClientBlockHeaderLike, _a as numBeFromBytes, _i as CodecByte, _n as ErrorClientResolveUnknown, _r as recoverMessageSecp256k1, _t as Transaction, aa as Proxy, ai as HASH_CKB_SHORT_LENGTH, an as ClientIndexerSearchKeyFilter, ar as SignerDoge, at as CellLike, ba as numFromBytes, bi as CodecByte4, bn as OutputsValidator, br as verifyMessageSecp256k1, bt as WitnessArgsLike, ca as OwnerAggregated, ci as hashCkbShort, cn as ClientIndexerSearchKeyTransaction, cr as MultisigCkbWitness, ct as CellOutputVec, da as AbstractConstructor, di as FixedPointLike, dn as ClientTransactionResponseLike, dr as SignerCkbScriptReadonly, dt as DepTypeLike, ea as reduceAsync, ei as JsonRpcResponse, en as ClientBlockUncleLike, er as SignerDummy, et as CellDepLike, fa as Constructor, fi as One, fn as ErrorClientBase, fr as SignerCkbPrivateKey, ft as OutPoint, ga as NumLike, gi as CodecBool, gn as ErrorClientRBFRejected, gr as messageHashCkbSecp256k1, gt as SinceLike, ha as Num, hi as fixedPointToString, hn as ErrorClientMaxFeeRateExceeded, hr as SECP256K1_SIGNATURE_LENGTH, ht as Since, ia as waitForAvailability, ii as HASH_CKB_LENGTH, in as ClientIndexerSearchKey, ir as SignerDogeAddressReadonly, it as CellInputVec, ja as Address, ji as CodecUint256BE, jn as nostrEventHash, jr as Signer, jt as HashTypeLike, ka as DecodedType, ki as CodecUint16LE, kr as NetworkPreference, kt as HashType, la as Owner, li as Hasher, ln as ClientIndexerSearchKeyTransactionLike, lr as MultisigCkbWitnessLike, lt as DepType, ma as abortSignalToPromise, mi as fixedPointFrom, mn as ErrorClientDuplicatedTransaction, mr as SignerCkbAlwaysSuccess, mt as RawTransaction, na as sleep, ni as JsonRpcTransportRequestOptions, nn as ClientFindTransactionsGroupedResponse, nr as verifyMessageDogeEcdsa, nt as CellInput, oa as OwnerUnique, oi as HasherCkb, on as ClientIndexerSearchKeyFilterLike, or as verifyMessageJoyId, ot as CellOutput, pa as abortSignalAny, pi as Zero, pn as ErrorClientBaseLike, pr as SignerCkbPublicKey, pt as OutPointLike, q as ErrorTransactionInsufficientCapacity, qi as codec, qr as JsonRpcTransportWebSocket, qt as CellDepInfo, ra as stringify, ri as HasherKeecak256, rn as ClientFindTransactionsResponse, rr as SignerDogePrivateKey, rt as CellInputLike, sa as OwnerRefCount, si as hashCkb, sn as ClientIndexerSearchKeyLike, sr as SignerMultisigCkbPrivateKey, st as CellOutputLike, ta as retry, ti as JsonRpcTransport, tn as ClientFindCellsResponse, tr as messageHashDogeEcdsa, tt as CellDepVec, ua as OwnerMoved, ui as FixedPoint, un as ClientTransactionResponse, ur as SignerMultisigCkbReadonly, ut as DepTypeCodec, va as numBeToBytes, vi as CodecByte16, vn as ErrorClientVerification, vr as signMessageSecp256k1, vt as TransactionLike, wa as numMin, wi as CodecUint128, wr as btcVarLengthBytesFrom, wt as depTypeFromBytes, xa as numLeFromBytes, xi as CodecByte8, xn as ScriptInfo, xr as btcEcdsaPublicKeyHash, xt as calcDaoClaimEpoch, ya as numFrom, yi as CodecByte32, yn as ErrorClientWaitTransactionTimeout, yr as verifyMessageCkbSecp256k1, yt as WitnessArgs, za as BytesLike, zi as CodecUint64, zn as SignerJsonRpcConfirmation, zr as InputToSignLike, zt as Client } from "./advancedBarrel-Daj_LJkz.mjs";
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, ClientConfig, 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, JsonRpcError, JsonRpcErrorLike, JsonRpcId, JsonRpcPayload, JsonRpcResponse, JsonRpcTransport, JsonRpcTransportFallback, JsonRpcTransportHttp, JsonRpcTransportRequestOptions, JsonRpcTransportWebSocket, KnownScript, LumosTransactionSkeletonType, MultisigCkbWitness, MultisigCkbWitnessLike, NetworkPreference, NostrEvent, Num, NumLike, One, OutPoint, OutPointLike, OutputsValidator, Owner, OwnerAggregated, OwnerMoved, OwnerRefCount, OwnerUnique, Proxy, RawTransaction, RequestorJsonRpc, RequestorJsonRpcConfig, RetryOperationOptions, RetryOptions, RetryResult, 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, SignerJsonRpc, SignerJsonRpcConfig, SignerJsonRpcConfirmation, SignerJsonRpcErrorCode, SignerJsonRpcProviderSession, SignerJsonRpcProviderSessionConfig, SignerJsonRpcProviderSessionOptions, SignerJsonRpcResultRecord, SignerMultisig, SignerMultisigCkbPrivateKey, SignerMultisigCkbReadonly, SignerMultisigNotEnoughSignaturesError, SignerNostr, SignerNostrPrivateKey, SignerNostrPublicKeyReadonly, SignerOpenLink, SignerSignType, SignerType, Since, SinceLike, Transaction, TransactionLike, TransactionStatus, Wallet, WitnessArgs, WitnessArgsLike, Zero, abortSignalAny, abortSignalToPromise, 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, retry, signMessageSecp256k1, sleep, stringify, udtBalanceFrom, verifyMessageBtcEcdsa, verifyMessageCkbSecp256k1, verifyMessageDogeEcdsa, verifyMessageEvmPersonal, verifyMessageJoyId, verifyMessageNostrEvent, verifyMessageSecp256k1, waitForAvailability };
1
+ import { $ as CellDep, $i as gcd, $n as SignerOpenLink, $r as JsonRpcId, $t as ClientBlockLike, Aa as CodecLike, Ai as CodecUint16LE, Ar as NetworkPreference, At as HashTypeCodec, Ba as hexFrom, Bi as CodecUint64, Bn as SignerJsonRpcConfirmation, Br as InputToSignLike, Bt as Client, Ca as numLeToBytes, Ci as CodecBytes, Cn as ScriptInfoLike, Cr as btcP2pkhAddressFromPublicKey, Ct as depTypeFrom, Da as numToHex, Di as CodecUint128LE, Dr as verifyMessageBtcEcdsa, Dt as udtBalanceFrom, Ea as numToBytes, Ei as CodecUint128BE, Er as messageHashBtcEcdsa, Et as isDaoOutputLimitExceeded, Fa as AddressLike, Fi as CodecUint32BE, Fn as SignerNostrPublicKeyReadonly, Fr as SignerMultisigNotEnoughSignaturesError, Ft as ScriptVec, G as ClientCacheMemory, Ga as bytesEq, Gi as codecUint, Gn as SignerJsonRpcResultRecord, Gr as keystoreEncrypt, Gt as epochFrom, H as ClientPublicMainnet, Ha as BytesLike, Hi as CodecUint64LE, Hn as SignerJsonRpcProviderSession, Hr as SignPsbtOptionsLike, Ht as KnownScript, Ia as Hex, Ii as CodecUint32LE, In as NostrEvent, Ir as SignerSignType, It as hashTypeFrom, J as ErrorTransactionInsufficientCoin, Ji as codec, Jr as JsonRpcTransportWebSocket, Jt as CellDepInfo, K as ClientCache, Ka as bytesFrom, Ki as codecUintNumber, Kr as RequestorJsonRpc, Kt as epochFromHex, La as HexLike, Li as CodecUint512, Ln as SignerNostr, Lr as SignerType, Lt as hashTypeFromBytes, Ma as DecodedType, Mi as CodecUint256BE, Mn as nostrEventHash, Mr as Signer, Mt as Script, Na as EncodableType, Ni as CodecUint256LE, Nn as verifyMessageNostrEvent, Nr as SignerInfo, Nt as ScriptLike, Oa as ChildContext, Oi as CodecUint16, Or as SignerBtcPublicKeyReadonly, Ot as LumosTransactionSkeletonType, Pa as Address, Pi as CodecUint32, Pn as SignerNostrPrivateKey, Pr as SignerMultisig, Pt as ScriptOpt, Q as CellAnyLike, Qi as apply, Qn as SignerEvm, Qr as JsonRpcErrorLike, Qt as ClientBlockHeaderLike, Ra as bytesLen, Ri as CodecUint512BE, Rn as SignerJsonRpc, Rr as Wallet, Rt as hashTypeToBytes, Sa as numLeFromBytes, Si as CodecByte8, Sn as ScriptInfo, Sr as btcEcdsaPublicKeyHash, St as calcDaoProfit, Ta as numMin, Ti as CodecUint128, Tr as btcVarLengthBytesFrom, Tt as depTypeToBytes, U as ClientJsonRpc, Ua as bytesConcat, Ui as CodecUint8, Un as SignerJsonRpcProviderSessionConfig, Ur as barrel_d_exports, Ut as Epoch, V as ClientPublicTestnet, Va as Bytes, Vi as CodecUint64BE, Vn as SignerJsonRpcErrorCode, Vr as SignPsbtOptions, Vt as ClientConfig, W as ClientJsonRpcConfig, Wa as bytesConcatTo, Wi as codecPadding, Wn as SignerJsonRpcProviderSessionOptions, Wr as keystoreDecrypt, Wt as EpochLike, X as Cell, Xi as RetryOptions, Xn as verifyMessageEvmPersonal, Xr as JsonRpcTransportFallback, Xt as ClientBlock, Y as hashTypeId, Yi as RetryOperationOptions, Yr as JsonRpcTransportHttp, Yt as CellDepInfoLike, Z as CellAny, Zi as RetryResult, Zn as SignerEvmAddressReadonly, Zr as JsonRpcError, Zt as ClientBlockHeader, _a as NumLike, _i as CodecBool, _n as ErrorClientRBFRejected, _r as messageHashCkbSecp256k1, _t as Transaction, aa as waitForAvailability, ai as HASH_CKB_LENGTH, an as ClientIndexerSearchKey, ar as SignerDogeAddressReadonly, at as CellLike, ba as numFrom, bi as CodecByte32, bn as ErrorClientWaitTransactionTimeout, br as verifyMessageCkbSecp256k1, bt as WitnessArgsLike, ca as OwnerRefCount, ci as hashCkb, cn as ClientIndexerSearchKeyLike, cr as SignerMultisigCkbPrivateKey, ct as CellOutputVec, da as OwnerMoved, di as FixedPoint, dn as ClientTransactionResponse, dr as SignerMultisigCkbReadonly, dt as DepTypeLike, ea as isWebview, ei as JsonRpcPayload, en as ClientBlockUncle, er as SignerAlwaysError, et as CellDepLike, fa as AbstractConstructor, fi as FixedPointLike, fn as ClientTransactionResponseLike, fr as SignerCkbScriptReadonly, ft as OutPoint, ga as Num, gi as fixedPointToString, gn as ErrorClientMaxFeeRateExceeded, gr as SECP256K1_SIGNATURE_LENGTH, gt as SinceLike, ha as abortSignalToPromise, hi as fixedPointFrom, hn as ErrorClientDuplicatedTransaction, hr as SignerCkbAlwaysSuccess, ht as Since, ia as stringify, ii as HasherKeecak256, in as ClientFindTransactionsResponse, ir as SignerDogePrivateKey, it as CellInputVec, ja as ContextType, ji as CodecUint256, jn as buildNostrEventFromMessage, jr as Signature, jt as HashTypeLike, ka as Codec, ki as CodecUint16BE, kr as SignerBtc, kt as HashType, la as OwnerAggregated, li as hashCkbShort, ln as ClientIndexerSearchKeyTransaction, lr as MultisigCkbWitness, lt as DepType, ma as abortSignalAny, mi as Zero, mn as ErrorClientBaseLike, mr as SignerCkbPublicKey, mt as RawTransaction, na as retry, ni as JsonRpcTransport, nn as ClientFindCellsResponse, nr as messageHashDogeEcdsa, nt as CellInput, oa as Proxy, oi as HASH_CKB_SHORT_LENGTH, on as ClientIndexerSearchKeyFilter, or as SignerDoge, ot as CellOutput, pa as Constructor, pi as One, pn as ErrorClientBase, pr as SignerCkbPrivateKey, pt as OutPointLike, q as ErrorTransactionInsufficientCapacity, qa as bytesTo, qi as Entity, qr as RequestorJsonRpcConfig, qt as epochToHex, ra as sleep, ri as JsonRpcTransportRequestOptions, rn as ClientFindTransactionsGroupedResponse, rr as verifyMessageDogeEcdsa, rt as CellInputLike, sa as OwnerUnique, si as HasherCkb, sn as ClientIndexerSearchKeyFilterLike, sr as verifyMessageJoyId, st as CellOutputLike, ta as reduceAsync, ti as JsonRpcResponse, tn as ClientBlockUncleLike, tr as SignerDummy, tt as CellDepVec, ua as Owner, ui as Hasher, un as ClientIndexerSearchKeyTransactionLike, ur as MultisigCkbWitnessLike, ut as DepTypeCodec, va as numBeFromBytes, vi as CodecByte, vn as ErrorClientResolveUnknown, vr as recoverMessageSecp256k1, vt as TransactionLike, wa as numMax, wi as CodecRaw, wn as TransactionStatus, wr as btcPublicKeyFromP2pkhAddress, wt as depTypeFromBytes, xa as numFromBytes, xi as CodecByte4, xn as OutputsValidator, xr as verifyMessageSecp256k1, xt as calcDaoClaimEpoch, ya as numBeToBytes, yi as CodecByte16, yn as ErrorClientVerification, yr as signMessageSecp256k1, yt as WitnessArgs, za as bytesLenUnsafe, zi as CodecUint512LE, zn as SignerJsonRpcConfig, zr as InputToSign, zt as AddressResolver } from "./advancedBarrel-BBbQZ2OW.mjs";
2
+ export { AbstractConstructor, Address, AddressLike, AddressResolver, Bytes, BytesLike, Cell, CellAny, CellAnyLike, CellDep, CellDepInfo, CellDepInfoLike, CellDepLike, CellDepVec, CellInput, CellInputLike, CellInputVec, CellLike, CellOutput, CellOutputLike, CellOutputVec, ChildContext, Client, ClientBlock, ClientBlockHeader, ClientBlockHeaderLike, ClientBlockLike, ClientBlockUncle, ClientBlockUncleLike, ClientCache, ClientCacheMemory, ClientConfig, 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, ContextType, 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, JsonRpcError, JsonRpcErrorLike, JsonRpcId, JsonRpcPayload, JsonRpcResponse, JsonRpcTransport, JsonRpcTransportFallback, JsonRpcTransportHttp, JsonRpcTransportRequestOptions, JsonRpcTransportWebSocket, KnownScript, LumosTransactionSkeletonType, MultisigCkbWitness, MultisigCkbWitnessLike, NetworkPreference, NostrEvent, Num, NumLike, One, OutPoint, OutPointLike, OutputsValidator, Owner, OwnerAggregated, OwnerMoved, OwnerRefCount, OwnerUnique, Proxy, RawTransaction, RequestorJsonRpc, RequestorJsonRpcConfig, RetryOperationOptions, RetryOptions, RetryResult, 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, SignerJsonRpc, SignerJsonRpcConfig, SignerJsonRpcConfirmation, SignerJsonRpcErrorCode, SignerJsonRpcProviderSession, SignerJsonRpcProviderSessionConfig, SignerJsonRpcProviderSessionOptions, SignerJsonRpcResultRecord, SignerMultisig, SignerMultisigCkbPrivateKey, SignerMultisigCkbReadonly, SignerMultisigNotEnoughSignaturesError, SignerNostr, SignerNostrPrivateKey, SignerNostrPublicKeyReadonly, SignerOpenLink, SignerSignType, SignerType, Since, SinceLike, Transaction, TransactionLike, TransactionStatus, Wallet, WitnessArgs, WitnessArgsLike, Zero, abortSignalAny, abortSignalToPromise, 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, retry, signMessageSecp256k1, sleep, stringify, udtBalanceFrom, verifyMessageBtcEcdsa, verifyMessageCkbSecp256k1, verifyMessageDogeEcdsa, verifyMessageEvmPersonal, verifyMessageJoyId, verifyMessageNostrEvent, verifyMessageSecp256k1, waitForAvailability };
package/dist/barrel.mjs CHANGED
@@ -1 +1 @@
1
- import{$n as e,A as t,An as n,Ar as r,At as i,B as a,Bn as o,C as s,Ct as c,D as l,Dn as u,Dr as d,Dt as f,E as p,En as m,Er as h,Et as g,F as _,Fn as v,Ft as y,G as b,Gn as x,Hn as S,I as C,In as w,It as T,J as E,Jn as D,K as O,Kn as k,L as A,Ln as j,Lt as M,M as N,Mn as P,Mr as F,Mt as I,N as L,Nn as R,Nr as z,Nt as B,O as V,On as H,Or as U,Ot as W,P as G,Pn as K,Pt as q,Qn as J,R as Y,Rn as X,Rt as Z,S as Q,Sr as $,St as ee,T as te,Tr as ne,Un as re,V as ie,Vn as ae,Wn as oe,X as se,Xn as ce,Y as le,Yn as ue,Z as de,Zn as fe,_r as pe,_t as me,ar as he,at as ge,b as _e,br as ve,cr as ye,ct as be,dr as xe,dt as Se,er as Ce,fr as we,ft as Te,gr as Ee,gt as De,hr as Oe,ht as ke,ir as Ae,it as je,j as Me,jn as Ne,jr as Pe,jt as Fe,k as Ie,kn as Le,kr as Re,kt as ze,l as Be,lr as Ve,lt as He,mr as Ue,mt as We,nr as Ge,nt as Ke,or as qe,ot as Je,pr as Ye,pt as Xe,q as Ze,qn as Qe,rr as $e,rt as et,sr as tt,st as nt,tr as rt,tt as it,u as at,ur as ot,ut as st,vr as ct,w as lt,wr as ut,wt as dt,x as ft,xr as pt,xt as mt,y as ht,yr as gt,z as _t,zn as vt}from"./transformers-lavDTtAW.mjs";import{$ as yt,A as bt,B as xt,C as St,D as Ct,E as wt,F as Tt,G as Et,H as Dt,I as Ot,J as kt,K as At,L as jt,M as Mt,N as Nt,O as Pt,P as Ft,Q as It,R as Lt,S as Rt,T as zt,U as Bt,V as Vt,W as Ht,X as Ut,Y as Wt,Z as Gt,_ as Kt,a as qt,at as Jt,b as Yt,c as Xt,ct as Zt,d as Qt,dt as $t,et as en,f as tn,ft as nn,g as rn,gt as an,h as on,ht as sn,i as cn,it as ln,j as un,k as dn,l as fn,lt as pn,m as mn,mt as hn,n as gn,nt as _n,o as vn,ot as yn,p as bn,pt as xn,q as Sn,r as Cn,rt as wn,s as Tn,st as En,tt as Dn,u as On,ut as kn,v as An,w as jn,x as Mn,y as Nn,z as Pn}from"./barrel-pRBtHOAW.mjs";export{Dn as Address,U as Bytes,ht as Cell,_e as CellAny,ft as CellDep,Ke as CellDepInfo,Q as CellDepVec,s as CellInput,lt as CellInputVec,te as CellOutput,p as CellOutputVec,Zt as Client,et as ClientBlock,je as ClientBlockHeader,ge as ClientBlockUncle,kn as ClientCache,pn as ClientCacheMemory,Je as ClientIndexerSearchKey,nt as ClientIndexerSearchKeyFilter,be as ClientIndexerSearchKeyTransaction,ln as ClientJsonRpc,wn as ClientPublicMainnet,_n as ClientPublicTestnet,He as ClientTransactionResponse,d as Codec,m as CodecBool,u as CodecByte,H as CodecByte16,Le as CodecByte32,n as CodecByte4,Ne as CodecByte8,P as CodecBytes,R as CodecRaw,K as CodecUint128,v as CodecUint128BE,w as CodecUint128LE,j as CodecUint16,X as CodecUint16BE,vt as CodecUint16LE,o as CodecUint256,ae as CodecUint256BE,S as CodecUint256LE,re as CodecUint32,oe as CodecUint32BE,x as CodecUint32LE,k as CodecUint512,Qe as CodecUint512BE,D as CodecUint512LE,ue as CodecUint64,ce as CodecUint64BE,fe as CodecUint64LE,J as CodecUint8,l as DepTypeCodec,Ee as Entity,mt as Epoch,st as ErrorClientBase,Se as ErrorClientDuplicatedTransaction,Te as ErrorClientMaxFeeRateExceeded,Xe as ErrorClientRBFRejected,We as ErrorClientResolveUnknown,ke as ErrorClientVerification,De as ErrorClientWaitTransactionTimeout,a as ErrorTransactionInsufficientCapacity,ie as ErrorTransactionInsufficientCoin,ct as HASH_CKB_LENGTH,gt as HASH_CKB_SHORT_LENGTH,b as HashTypeCodec,ve as HasherCkb,an as HasherKeecak256,Gt as InputToSign,yn as JsonRpcError,En as JsonRpcTransportFallback,at as JsonRpcTransportHttp,Be as JsonRpcTransportWebSocket,it as KnownScript,Kt as MultisigCkbWitness,we as One,V as OutPoint,y as Owner,hn as OwnerAggregated,T as OwnerMoved,xn as OwnerRefCount,q as OwnerUnique,nn as Proxy,Ie as RawTransaction,Jt as RequestorJsonRpc,Pn as SECP256K1_SIGNATURE_LENGTH,O as Script,me as ScriptInfo,Ze as ScriptOpt,E as ScriptVec,It as SignPsbtOptions,zt as Signature,wt as Signer,Qt as SignerAlwaysError,jn as SignerBtc,St as SignerBtcPublicKeyReadonly,Rt as SignerCkbAlwaysSuccess,Yt as SignerCkbPrivateKey,Mn as SignerCkbPublicKey,Nn as SignerCkbScriptReadonly,on as SignerDoge,mn as SignerDogeAddressReadonly,bn as SignerDogePrivateKey,tn as SignerDummy,fn as SignerEvm,Xt as SignerEvmAddressReadonly,Ct as SignerInfo,qt as SignerJsonRpc,vn as SignerJsonRpcErrorCode,Tn as SignerJsonRpcProviderSession,Pt as SignerMultisig,rn as SignerMultisigCkbPrivateKey,An as SignerMultisigCkbReadonly,dn as SignerMultisigNotEnoughSignaturesError,cn as SignerNostr,gn as SignerNostrPrivateKey,Cn as SignerNostrPublicKeyReadonly,On as SignerOpenLink,bt as SignerSignType,un as SignerType,t as Since,Me as Transaction,N as WitnessArgs,Ye as Zero,M as abortSignalAny,Z as abortSignalToPromise,g as apply,Et as btcEcdsaPublicKeyHash,At as btcP2pkhAddressFromPublicKey,Sn as btcPublicKeyFromP2pkhAddress,kt as btcVarLengthBytesFrom,Mt as buildNostrEventFromMessage,Re as bytesConcat,r as bytesConcatTo,Pe as bytesEq,F as bytesFrom,ut as bytesLen,ne as bytesLenUnsafe,z as bytesTo,L as calcDaoClaimEpoch,G as calcDaoProfit,pe as codec,e as codecPadding,Ce as codecUint,rt as codecUintNumber,_ as depTypeFrom,C as depTypeFromBytes,A as depTypeToBytes,ee as epochFrom,c as epochFromHex,dt as epochToHex,Ue as fixedPointFrom,Oe as fixedPointToString,f as gcd,pt as hashCkb,$ as hashCkbShort,le as hashTypeFrom,se as hashTypeFromBytes,$t as hashTypeId,de as hashTypeToBytes,h as hexFrom,Y as isDaoOutputLimitExceeded,W as isWebview,yt as keystoreDecrypt,en as keystoreEncrypt,Wt as messageHashBtcEcdsa,xt as messageHashCkbSecp256k1,Ot as messageHashDogeEcdsa,sn as mol,Nt as nostrEventHash,Ge as numBeFromBytes,$e as numBeToBytes,Ae as numFrom,he as numFromBytes,qe as numLeFromBytes,tt as numLeToBytes,ye as numMax,Ve as numMin,ot as numToBytes,xe as numToHex,Vt as recoverMessageSecp256k1,ze as reduceAsync,i as retry,Dt as signMessageSecp256k1,Fe as sleep,I as stringify,_t as udtBalanceFrom,Ut as verifyMessageBtcEcdsa,Bt as verifyMessageCkbSecp256k1,jt as verifyMessageDogeEcdsa,Tt as verifyMessageEvmPersonal,Lt as verifyMessageJoyId,Ft as verifyMessageNostrEvent,Ht as verifyMessageSecp256k1,B as waitForAvailability};
1
+ import{$n as e,A as t,An as n,Ar as r,At as i,B as a,Bn as o,C as s,Cr as c,Ct as l,D as u,Dn as d,Dr as f,Dt as p,E as m,Er as h,Et as g,F as _,Fn as v,Ft as y,G as b,Gn as x,Hn as S,I as C,In as w,It as T,J as E,Jn as D,K as O,Kn as k,L as A,Ln as j,Lt as M,M as N,Mn as P,Mr as F,Mt as I,N as L,Nn as R,Nr as z,Nt as B,O as V,On as H,Or as U,Ot as W,P as G,Pn as K,Pr as q,Pt as J,Qn as Y,R as X,Rn as Z,Rt as Q,S as $,Sr as ee,St as te,T as ne,Tr as re,Un as ie,V as ae,Vn as oe,Wn as se,X as ce,Xn as le,Y as ue,Yn as de,Z as fe,Zn as pe,_r as me,_t as he,ar as ge,at as _e,b as ve,br as ye,cr as be,ct as xe,dr as Se,dt as Ce,er as we,fr as Te,ft as Ee,gr as De,gt as Oe,hr as ke,ht as Ae,ir as je,it as Me,j as Ne,jn as Pe,jr as Fe,jt as Ie,k as Le,kn as Re,kr as ze,kt as Be,l as Ve,lr as He,lt as Ue,mr as We,mt as Ge,nr as Ke,nt as qe,or as Je,ot as Ye,pr as Xe,pt as Ze,q as Qe,qn as $e,rr as et,rt as tt,sr as nt,st as rt,tr as it,tt as at,u as ot,ur as st,ut as ct,vr as lt,w as ut,wt as dt,x as ft,xr as pt,xt as mt,y as ht,yr as gt,z as _t,zn as vt}from"./transformers-BHt442Nd.mjs";import{$ as yt,A as bt,B as xt,C as St,D as Ct,E as wt,F as Tt,G as Et,H as Dt,I as Ot,J as kt,K as At,L as jt,M as Mt,N as Nt,O as Pt,P as Ft,Q as It,R as Lt,S as Rt,T as zt,U as Bt,V as Vt,W as Ht,X as Ut,Y as Wt,Z as Gt,_ as Kt,a as qt,at as Jt,b as Yt,c as Xt,ct as Zt,d as Qt,dt as $t,et as en,f as tn,ft as nn,g as rn,gt as an,h as on,ht as sn,i as cn,it as ln,j as un,k as dn,l as fn,lt as pn,m as mn,mt as hn,n as gn,nt as _n,o as vn,ot as yn,p as bn,pt as xn,q as Sn,r as Cn,rt as wn,s as Tn,st as En,tt as Dn,u as On,ut as kn,v as An,w as jn,x as Mn,y as Nn,z as Pn}from"./barrel-Dz1WLXRX.mjs";export{Dn as Address,ze as Bytes,ht as Cell,ve as CellAny,ft as CellDep,qe as CellDepInfo,$ as CellDepVec,s as CellInput,ut as CellInputVec,ne as CellOutput,m as CellOutputVec,Zt as Client,tt as ClientBlock,Me as ClientBlockHeader,_e as ClientBlockUncle,kn as ClientCache,pn as ClientCacheMemory,Ye as ClientIndexerSearchKey,rt as ClientIndexerSearchKeyFilter,xe as ClientIndexerSearchKeyTransaction,ln as ClientJsonRpc,wn as ClientPublicMainnet,_n as ClientPublicTestnet,Ue as ClientTransactionResponse,U as Codec,d as CodecBool,H as CodecByte,Re as CodecByte16,n as CodecByte32,Pe as CodecByte4,P as CodecByte8,R as CodecBytes,K as CodecRaw,v as CodecUint128,w as CodecUint128BE,j as CodecUint128LE,Z as CodecUint16,vt as CodecUint16BE,o as CodecUint16LE,oe as CodecUint256,S as CodecUint256BE,ie as CodecUint256LE,se as CodecUint32,x as CodecUint32BE,k as CodecUint32LE,$e as CodecUint512,D as CodecUint512BE,de as CodecUint512LE,le as CodecUint64,pe as CodecUint64BE,Y as CodecUint64LE,e as CodecUint8,u as DepTypeCodec,me as Entity,mt as Epoch,ct as ErrorClientBase,Ce as ErrorClientDuplicatedTransaction,Ee as ErrorClientMaxFeeRateExceeded,Ze as ErrorClientRBFRejected,Ge as ErrorClientResolveUnknown,Ae as ErrorClientVerification,Oe as ErrorClientWaitTransactionTimeout,a as ErrorTransactionInsufficientCapacity,ae as ErrorTransactionInsufficientCoin,gt as HASH_CKB_LENGTH,ye as HASH_CKB_SHORT_LENGTH,b as HashTypeCodec,pt as HasherCkb,an as HasherKeecak256,Gt as InputToSign,yn as JsonRpcError,En as JsonRpcTransportFallback,ot as JsonRpcTransportHttp,Ve as JsonRpcTransportWebSocket,at as KnownScript,Kt as MultisigCkbWitness,Xe as One,V as OutPoint,y as Owner,hn as OwnerAggregated,T as OwnerMoved,xn as OwnerRefCount,J as OwnerUnique,nn as Proxy,Le as RawTransaction,Jt as RequestorJsonRpc,Pn as SECP256K1_SIGNATURE_LENGTH,O as Script,he as ScriptInfo,Qe as ScriptOpt,E as ScriptVec,It as SignPsbtOptions,zt as Signature,wt as Signer,Qt as SignerAlwaysError,jn as SignerBtc,St as SignerBtcPublicKeyReadonly,Rt as SignerCkbAlwaysSuccess,Yt as SignerCkbPrivateKey,Mn as SignerCkbPublicKey,Nn as SignerCkbScriptReadonly,on as SignerDoge,mn as SignerDogeAddressReadonly,bn as SignerDogePrivateKey,tn as SignerDummy,fn as SignerEvm,Xt as SignerEvmAddressReadonly,Ct as SignerInfo,qt as SignerJsonRpc,vn as SignerJsonRpcErrorCode,Tn as SignerJsonRpcProviderSession,Pt as SignerMultisig,rn as SignerMultisigCkbPrivateKey,An as SignerMultisigCkbReadonly,dn as SignerMultisigNotEnoughSignaturesError,cn as SignerNostr,gn as SignerNostrPrivateKey,Cn as SignerNostrPublicKeyReadonly,On as SignerOpenLink,bt as SignerSignType,un as SignerType,t as Since,Ne as Transaction,N as WitnessArgs,We as Zero,M as abortSignalAny,Q as abortSignalToPromise,g as apply,Et as btcEcdsaPublicKeyHash,At as btcP2pkhAddressFromPublicKey,Sn as btcPublicKeyFromP2pkhAddress,kt as btcVarLengthBytesFrom,Mt as buildNostrEventFromMessage,r as bytesConcat,Fe as bytesConcatTo,F as bytesEq,z as bytesFrom,re as bytesLen,h as bytesLenUnsafe,q as bytesTo,L as calcDaoClaimEpoch,G as calcDaoProfit,lt as codec,we as codecPadding,it as codecUint,Ke as codecUintNumber,_ as depTypeFrom,C as depTypeFromBytes,A as depTypeToBytes,te as epochFrom,l as epochFromHex,dt as epochToHex,ke as fixedPointFrom,De as fixedPointToString,p as gcd,ee as hashCkb,c as hashCkbShort,ue as hashTypeFrom,ce as hashTypeFromBytes,$t as hashTypeId,fe as hashTypeToBytes,f as hexFrom,X as isDaoOutputLimitExceeded,W as isWebview,yt as keystoreDecrypt,en as keystoreEncrypt,Wt as messageHashBtcEcdsa,xt as messageHashCkbSecp256k1,Ot as messageHashDogeEcdsa,sn as mol,Nt as nostrEventHash,et as numBeFromBytes,je as numBeToBytes,ge as numFrom,Je as numFromBytes,nt as numLeFromBytes,be as numLeToBytes,He as numMax,st as numMin,Se as numToBytes,Te as numToHex,Vt as recoverMessageSecp256k1,Be as reduceAsync,i as retry,Dt as signMessageSecp256k1,Ie as sleep,I as stringify,_t as udtBalanceFrom,Ut as verifyMessageBtcEcdsa,Bt as verifyMessageCkbSecp256k1,jt as verifyMessageDogeEcdsa,Tt as verifyMessageEvmPersonal,Lt as verifyMessageJoyId,Ft as verifyMessageNostrEvent,Ht as verifyMessageSecp256k1,B as waitForAvailability};
package/dist/index.d.mts CHANGED
@@ -1,2 +1,2 @@
1
- import { $ as CellDep, $i as isWebview, $n as SignerAlwaysError, $r as JsonRpcPayload, $t as ClientBlockUncle, Aa as EncodableType, Ai as CodecUint256, An as buildNostrEventFromMessage, Ar as Signature, At as HashTypeCodec, Ba as bytesConcat, Bi as CodecUint64BE, Bn as SignerJsonRpcErrorCode, Br as SignPsbtOptions, Bt as ClientConfig, Ca as numMax, Ci as CodecRaw, Cn as TransactionStatus, Cr as btcPublicKeyFromP2pkhAddress, Ct as depTypeFrom, Da as Codec, Di as CodecUint16, Dr as SignerBtcPublicKeyReadonly, Dt as udtBalanceFrom, Ea as numToHex, Ei as CodecUint128LE, Er as verifyMessageBtcEcdsa, Et as isDaoOutputLimitExceeded, Fa as bytesLen, Fi as CodecUint32LE, Fn as NostrEvent, Fr as SignerSignType, Ft as ScriptVec, G as ClientCacheMemory, Gi as codecUintNumber, Gr as RequestorJsonRpc, Gt as epochFromHex, H as ClientPublicMainnet, Ha as bytesEq, Hi as CodecUint8, Hn as SignerJsonRpcProviderSessionConfig, Hr as barrel_d_exports$1, Ht as Epoch, Ia as bytesLenUnsafe, Ii as CodecUint512, In as SignerNostr, Ir as SignerType, It as hashTypeFrom, J as ErrorTransactionInsufficientCoin, Ji as RetryOperationOptions, Jr as JsonRpcTransportHttp, Jt as CellDepInfoLike, K as ClientCache, Ki as Entity, Kr as RequestorJsonRpcConfig, Kt as epochToHex, La as hexFrom, Li as CodecUint512BE, Ln as SignerJsonRpc, Lr as Wallet, Lt as hashTypeFromBytes, Ma as AddressLike, Mi as CodecUint256LE, Mn as verifyMessageNostrEvent, Mr as SignerInfo, Mt as Script, Na as Hex, Ni as CodecUint32, Nn as SignerNostrPrivateKey, Nr as SignerMultisig, Nt as ScriptLike, Oa as CodecLike, Oi as CodecUint16BE, Or as SignerBtc, Ot as LumosTransactionSkeletonType, Pa as HexLike, Pi as CodecUint32BE, Pn as SignerNostrPublicKeyReadonly, Pr as SignerMultisigNotEnoughSignaturesError, Pt as ScriptOpt, Q as CellAnyLike, Qi as gcd, Qn as SignerOpenLink, Qr as JsonRpcId, Qt as ClientBlockLike, Ra as Bytes, Ri as CodecUint512LE, Rn as SignerJsonRpcConfig, Rr as InputToSign, Rt as hashTypeToBytes, Sa as numLeToBytes, Si as CodecBytes, Sn as ScriptInfoLike, Sr as btcP2pkhAddressFromPublicKey, St as calcDaoProfit, Ta as numToBytes, Ti as CodecUint128BE, Tr as messageHashBtcEcdsa, Tt as depTypeToBytes, U as ClientJsonRpc, Ua as bytesFrom, Ui as codecPadding, Un as SignerJsonRpcProviderSessionOptions, Ur as keystoreDecrypt, Ut as EpochLike, V as ClientPublicTestnet, Va as bytesConcatTo, Vi as CodecUint64LE, Vn as SignerJsonRpcProviderSession, Vr as SignPsbtOptionsLike, Vt as KnownScript, W as ClientJsonRpcConfig, Wa as bytesTo, Wi as codecUint, Wn as SignerJsonRpcResultRecord, Wr as keystoreEncrypt, Wt as epochFrom, X as Cell, Xi as RetryResult, Xn as SignerEvmAddressReadonly, Xr as JsonRpcError, Xt as ClientBlockHeader, Y as hashTypeId, Yi as RetryOptions, Yn as verifyMessageEvmPersonal, Yr as JsonRpcTransportFallback, Yt as ClientBlock, Z as CellAny, Zi as apply, Zn as SignerEvm, Zr as JsonRpcErrorLike, Zt as ClientBlockHeaderLike, _a as numBeFromBytes, _i as CodecByte, _n as ErrorClientResolveUnknown, _r as recoverMessageSecp256k1, _t as Transaction, aa as Proxy, ai as HASH_CKB_SHORT_LENGTH, an as ClientIndexerSearchKeyFilter, ar as SignerDoge, at as CellLike, ba as numFromBytes, bi as CodecByte4, bn as OutputsValidator, br as verifyMessageSecp256k1, bt as WitnessArgsLike, ca as OwnerAggregated, ci as hashCkbShort, cn as ClientIndexerSearchKeyTransaction, cr as MultisigCkbWitness, ct as CellOutputVec, da as AbstractConstructor, di as FixedPointLike, dn as ClientTransactionResponseLike, dr as SignerCkbScriptReadonly, dt as DepTypeLike, ea as reduceAsync, ei as JsonRpcResponse, en as ClientBlockUncleLike, er as SignerDummy, et as CellDepLike, fa as Constructor, fi as One, fn as ErrorClientBase, fr as SignerCkbPrivateKey, ft as OutPoint, ga as NumLike, gi as CodecBool, gn as ErrorClientRBFRejected, gr as messageHashCkbSecp256k1, gt as SinceLike, ha as Num, hi as fixedPointToString, hn as ErrorClientMaxFeeRateExceeded, hr as SECP256K1_SIGNATURE_LENGTH, ht as Since, ia as waitForAvailability, ii as HASH_CKB_LENGTH, in as ClientIndexerSearchKey, ir as SignerDogeAddressReadonly, it as CellInputVec, ja as Address, ji as CodecUint256BE, jn as nostrEventHash, jr as Signer, jt as HashTypeLike, ka as DecodedType, ki as CodecUint16LE, kn as barrel_d_exports, kr as NetworkPreference, kt as HashType, la as Owner, li as Hasher, ln as ClientIndexerSearchKeyTransactionLike, lr as MultisigCkbWitnessLike, lt as DepType, ma as abortSignalToPromise, mi as fixedPointFrom, mn as ErrorClientDuplicatedTransaction, mr as SignerCkbAlwaysSuccess, mt as RawTransaction, na as sleep, ni as JsonRpcTransportRequestOptions, nn as ClientFindTransactionsGroupedResponse, nr as verifyMessageDogeEcdsa, nt as CellInput, oa as OwnerUnique, oi as HasherCkb, on as ClientIndexerSearchKeyFilterLike, or as verifyMessageJoyId, ot as CellOutput, pa as abortSignalAny, pi as Zero, pn as ErrorClientBaseLike, pr as SignerCkbPublicKey, pt as OutPointLike, q as ErrorTransactionInsufficientCapacity, qi as codec, qr as JsonRpcTransportWebSocket, qt as CellDepInfo, ra as stringify, ri as HasherKeecak256, rn as ClientFindTransactionsResponse, rr as SignerDogePrivateKey, rt as CellInputLike, sa as OwnerRefCount, si as hashCkb, sn as ClientIndexerSearchKeyLike, sr as SignerMultisigCkbPrivateKey, st as CellOutputLike, ta as retry, ti as JsonRpcTransport, tn as ClientFindCellsResponse, tr as messageHashDogeEcdsa, tt as CellDepVec, ua as OwnerMoved, ui as FixedPoint, un as ClientTransactionResponse, ur as SignerMultisigCkbReadonly, ut as DepTypeCodec, va as numBeToBytes, vi as CodecByte16, vn as ErrorClientVerification, vr as signMessageSecp256k1, vt as TransactionLike, wa as numMin, wi as CodecUint128, wr as btcVarLengthBytesFrom, wt as depTypeFromBytes, xa as numLeFromBytes, xi as CodecByte8, xn as ScriptInfo, xr as btcEcdsaPublicKeyHash, xt as calcDaoClaimEpoch, ya as numFrom, yi as CodecByte32, yn as ErrorClientWaitTransactionTimeout, yr as verifyMessageCkbSecp256k1, yt as WitnessArgs, za as BytesLike, zi as CodecUint64, zn as SignerJsonRpcConfirmation, zr as InputToSignLike, zt as Client } from "./advancedBarrel-Daj_LJkz.mjs";
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, ClientConfig, 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, JsonRpcError, JsonRpcErrorLike, JsonRpcId, JsonRpcPayload, JsonRpcResponse, JsonRpcTransport, JsonRpcTransportFallback, JsonRpcTransportHttp, JsonRpcTransportRequestOptions, JsonRpcTransportWebSocket, KnownScript, LumosTransactionSkeletonType, MultisigCkbWitness, MultisigCkbWitnessLike, NetworkPreference, NostrEvent, Num, NumLike, One, OutPoint, OutPointLike, OutputsValidator, Owner, OwnerAggregated, OwnerMoved, OwnerRefCount, OwnerUnique, Proxy, RawTransaction, RequestorJsonRpc, RequestorJsonRpcConfig, RetryOperationOptions, RetryOptions, RetryResult, 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, SignerJsonRpc, SignerJsonRpcConfig, SignerJsonRpcConfirmation, SignerJsonRpcErrorCode, SignerJsonRpcProviderSession, SignerJsonRpcProviderSessionConfig, SignerJsonRpcProviderSessionOptions, SignerJsonRpcResultRecord, SignerMultisig, SignerMultisigCkbPrivateKey, SignerMultisigCkbReadonly, SignerMultisigNotEnoughSignaturesError, SignerNostr, SignerNostrPrivateKey, SignerNostrPublicKeyReadonly, SignerOpenLink, SignerSignType, SignerType, Since, SinceLike, Transaction, TransactionLike, TransactionStatus, Wallet, WitnessArgs, WitnessArgsLike, Zero, abortSignalAny, abortSignalToPromise, 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, retry, signMessageSecp256k1, sleep, stringify, udtBalanceFrom, verifyMessageBtcEcdsa, verifyMessageCkbSecp256k1, verifyMessageDogeEcdsa, verifyMessageEvmPersonal, verifyMessageJoyId, verifyMessageNostrEvent, verifyMessageSecp256k1, waitForAvailability };
1
+ import { $ as CellDep, $i as gcd, $n as SignerOpenLink, $r as JsonRpcId, $t as ClientBlockLike, Aa as CodecLike, Ai as CodecUint16LE, An as barrel_d_exports, Ar as NetworkPreference, At as HashTypeCodec, Ba as hexFrom, Bi as CodecUint64, Bn as SignerJsonRpcConfirmation, Br as InputToSignLike, Bt as Client, Ca as numLeToBytes, Ci as CodecBytes, Cn as ScriptInfoLike, Cr as btcP2pkhAddressFromPublicKey, Ct as depTypeFrom, Da as numToHex, Di as CodecUint128LE, Dr as verifyMessageBtcEcdsa, Dt as udtBalanceFrom, Ea as numToBytes, Ei as CodecUint128BE, Er as messageHashBtcEcdsa, Et as isDaoOutputLimitExceeded, Fa as AddressLike, Fi as CodecUint32BE, Fn as SignerNostrPublicKeyReadonly, Fr as SignerMultisigNotEnoughSignaturesError, Ft as ScriptVec, G as ClientCacheMemory, Ga as bytesEq, Gi as codecUint, Gn as SignerJsonRpcResultRecord, Gr as keystoreEncrypt, Gt as epochFrom, H as ClientPublicMainnet, Ha as BytesLike, Hi as CodecUint64LE, Hn as SignerJsonRpcProviderSession, Hr as SignPsbtOptionsLike, Ht as KnownScript, Ia as Hex, Ii as CodecUint32LE, In as NostrEvent, Ir as SignerSignType, It as hashTypeFrom, J as ErrorTransactionInsufficientCoin, Ji as codec, Jr as JsonRpcTransportWebSocket, Jt as CellDepInfo, K as ClientCache, Ka as bytesFrom, Ki as codecUintNumber, Kr as RequestorJsonRpc, Kt as epochFromHex, La as HexLike, Li as CodecUint512, Ln as SignerNostr, Lr as SignerType, Lt as hashTypeFromBytes, Ma as DecodedType, Mi as CodecUint256BE, Mn as nostrEventHash, Mr as Signer, Mt as Script, Na as EncodableType, Ni as CodecUint256LE, Nn as verifyMessageNostrEvent, Nr as SignerInfo, Nt as ScriptLike, Oa as ChildContext, Oi as CodecUint16, Or as SignerBtcPublicKeyReadonly, Ot as LumosTransactionSkeletonType, Pa as Address, Pi as CodecUint32, Pn as SignerNostrPrivateKey, Pr as SignerMultisig, Pt as ScriptOpt, Q as CellAnyLike, Qi as apply, Qn as SignerEvm, Qr as JsonRpcErrorLike, Qt as ClientBlockHeaderLike, Ra as bytesLen, Ri as CodecUint512BE, Rn as SignerJsonRpc, Rr as Wallet, Rt as hashTypeToBytes, Sa as numLeFromBytes, Si as CodecByte8, Sn as ScriptInfo, Sr as btcEcdsaPublicKeyHash, St as calcDaoProfit, Ta as numMin, Ti as CodecUint128, Tr as btcVarLengthBytesFrom, Tt as depTypeToBytes, U as ClientJsonRpc, Ua as bytesConcat, Ui as CodecUint8, Un as SignerJsonRpcProviderSessionConfig, Ur as barrel_d_exports$1, Ut as Epoch, V as ClientPublicTestnet, Va as Bytes, Vi as CodecUint64BE, Vn as SignerJsonRpcErrorCode, Vr as SignPsbtOptions, Vt as ClientConfig, W as ClientJsonRpcConfig, Wa as bytesConcatTo, Wi as codecPadding, Wn as SignerJsonRpcProviderSessionOptions, Wr as keystoreDecrypt, Wt as EpochLike, X as Cell, Xi as RetryOptions, Xn as verifyMessageEvmPersonal, Xr as JsonRpcTransportFallback, Xt as ClientBlock, Y as hashTypeId, Yi as RetryOperationOptions, Yr as JsonRpcTransportHttp, Yt as CellDepInfoLike, Z as CellAny, Zi as RetryResult, Zn as SignerEvmAddressReadonly, Zr as JsonRpcError, Zt as ClientBlockHeader, _a as NumLike, _i as CodecBool, _n as ErrorClientRBFRejected, _r as messageHashCkbSecp256k1, _t as Transaction, aa as waitForAvailability, ai as HASH_CKB_LENGTH, an as ClientIndexerSearchKey, ar as SignerDogeAddressReadonly, at as CellLike, ba as numFrom, bi as CodecByte32, bn as ErrorClientWaitTransactionTimeout, br as verifyMessageCkbSecp256k1, bt as WitnessArgsLike, ca as OwnerRefCount, ci as hashCkb, cn as ClientIndexerSearchKeyLike, cr as SignerMultisigCkbPrivateKey, ct as CellOutputVec, da as OwnerMoved, di as FixedPoint, dn as ClientTransactionResponse, dr as SignerMultisigCkbReadonly, dt as DepTypeLike, ea as isWebview, ei as JsonRpcPayload, en as ClientBlockUncle, er as SignerAlwaysError, et as CellDepLike, fa as AbstractConstructor, fi as FixedPointLike, fn as ClientTransactionResponseLike, fr as SignerCkbScriptReadonly, ft as OutPoint, ga as Num, gi as fixedPointToString, gn as ErrorClientMaxFeeRateExceeded, gr as SECP256K1_SIGNATURE_LENGTH, gt as SinceLike, ha as abortSignalToPromise, hi as fixedPointFrom, hn as ErrorClientDuplicatedTransaction, hr as SignerCkbAlwaysSuccess, ht as Since, ia as stringify, ii as HasherKeecak256, in as ClientFindTransactionsResponse, ir as SignerDogePrivateKey, it as CellInputVec, ja as ContextType, ji as CodecUint256, jn as buildNostrEventFromMessage, jr as Signature, jt as HashTypeLike, ka as Codec, ki as CodecUint16BE, kr as SignerBtc, kt as HashType, la as OwnerAggregated, li as hashCkbShort, ln as ClientIndexerSearchKeyTransaction, lr as MultisigCkbWitness, lt as DepType, ma as abortSignalAny, mi as Zero, mn as ErrorClientBaseLike, mr as SignerCkbPublicKey, mt as RawTransaction, na as retry, ni as JsonRpcTransport, nn as ClientFindCellsResponse, nr as messageHashDogeEcdsa, nt as CellInput, oa as Proxy, oi as HASH_CKB_SHORT_LENGTH, on as ClientIndexerSearchKeyFilter, or as SignerDoge, ot as CellOutput, pa as Constructor, pi as One, pn as ErrorClientBase, pr as SignerCkbPrivateKey, pt as OutPointLike, q as ErrorTransactionInsufficientCapacity, qa as bytesTo, qi as Entity, qr as RequestorJsonRpcConfig, qt as epochToHex, ra as sleep, ri as JsonRpcTransportRequestOptions, rn as ClientFindTransactionsGroupedResponse, rr as verifyMessageDogeEcdsa, rt as CellInputLike, sa as OwnerUnique, si as HasherCkb, sn as ClientIndexerSearchKeyFilterLike, sr as verifyMessageJoyId, st as CellOutputLike, ta as reduceAsync, ti as JsonRpcResponse, tn as ClientBlockUncleLike, tr as SignerDummy, tt as CellDepVec, ua as Owner, ui as Hasher, un as ClientIndexerSearchKeyTransactionLike, ur as MultisigCkbWitnessLike, ut as DepTypeCodec, va as numBeFromBytes, vi as CodecByte, vn as ErrorClientResolveUnknown, vr as recoverMessageSecp256k1, vt as TransactionLike, wa as numMax, wi as CodecRaw, wn as TransactionStatus, wr as btcPublicKeyFromP2pkhAddress, wt as depTypeFromBytes, xa as numFromBytes, xi as CodecByte4, xn as OutputsValidator, xr as verifyMessageSecp256k1, xt as calcDaoClaimEpoch, ya as numBeToBytes, yi as CodecByte16, yn as ErrorClientVerification, yr as signMessageSecp256k1, yt as WitnessArgs, za as bytesLenUnsafe, zi as CodecUint512LE, zn as SignerJsonRpcConfig, zr as InputToSign, zt as AddressResolver } from "./advancedBarrel-BBbQZ2OW.mjs";
2
+ export { AbstractConstructor, Address, AddressLike, AddressResolver, Bytes, BytesLike, Cell, CellAny, CellAnyLike, CellDep, CellDepInfo, CellDepInfoLike, CellDepLike, CellDepVec, CellInput, CellInputLike, CellInputVec, CellLike, CellOutput, CellOutputLike, CellOutputVec, ChildContext, Client, ClientBlock, ClientBlockHeader, ClientBlockHeaderLike, ClientBlockLike, ClientBlockUncle, ClientBlockUncleLike, ClientCache, ClientCacheMemory, ClientConfig, 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, ContextType, 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, JsonRpcError, JsonRpcErrorLike, JsonRpcId, JsonRpcPayload, JsonRpcResponse, JsonRpcTransport, JsonRpcTransportFallback, JsonRpcTransportHttp, JsonRpcTransportRequestOptions, JsonRpcTransportWebSocket, KnownScript, LumosTransactionSkeletonType, MultisigCkbWitness, MultisigCkbWitnessLike, NetworkPreference, NostrEvent, Num, NumLike, One, OutPoint, OutPointLike, OutputsValidator, Owner, OwnerAggregated, OwnerMoved, OwnerRefCount, OwnerUnique, Proxy, RawTransaction, RequestorJsonRpc, RequestorJsonRpcConfig, RetryOperationOptions, RetryOptions, RetryResult, 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, SignerJsonRpc, SignerJsonRpcConfig, SignerJsonRpcConfirmation, SignerJsonRpcErrorCode, SignerJsonRpcProviderSession, SignerJsonRpcProviderSessionConfig, SignerJsonRpcProviderSessionOptions, SignerJsonRpcResultRecord, SignerMultisig, SignerMultisigCkbPrivateKey, SignerMultisigCkbReadonly, SignerMultisigNotEnoughSignaturesError, SignerNostr, SignerNostrPrivateKey, SignerNostrPublicKeyReadonly, SignerOpenLink, SignerSignType, SignerType, Since, SinceLike, Transaction, TransactionLike, TransactionStatus, Wallet, WitnessArgs, WitnessArgsLike, Zero, abortSignalAny, abortSignalToPromise, 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, retry, signMessageSecp256k1, sleep, stringify, udtBalanceFrom, verifyMessageBtcEcdsa, verifyMessageCkbSecp256k1, verifyMessageDogeEcdsa, verifyMessageEvmPersonal, verifyMessageJoyId, verifyMessageNostrEvent, verifyMessageSecp256k1, waitForAvailability };
package/dist/index.mjs CHANGED
@@ -1 +1 @@
1
- import{$n as e,A as t,An as n,Ar as r,At as i,B as a,Bn as o,C as s,Ct as c,D as l,Dn as u,Dr as d,Dt as f,E as p,En as m,Er as h,Et as g,F as _,Fn as v,Ft as y,G as b,Gn as x,Hn as S,I as C,In as w,It as T,J as E,Jn as D,K as O,Kn as k,L as A,Ln as j,Lt as M,M as N,Mn as P,Mr as F,Mt as I,N as L,Nn as R,Nr as z,Nt as B,O as V,On as H,Or as U,Ot as W,P as G,Pn as K,Pt as q,Qn as J,R as Y,Rn as X,Rt as Z,S as Q,Sr as $,St as ee,T as te,Tr as ne,Un as re,V as ie,Vn as ae,Wn as oe,X as se,Xn as ce,Y as le,Yn as ue,Z as de,Zn as fe,_r as pe,_t as me,ar as he,at as ge,b as _e,br as ve,cr as ye,ct as be,dr as xe,dt as Se,er as Ce,fr as we,ft as Te,gr as Ee,gt as De,hr as Oe,ht as ke,ir as Ae,it as je,j as Me,jn as Ne,jr as Pe,jt as Fe,k as Ie,kn as Le,kr as Re,kt as ze,l as Be,lr as Ve,lt as He,mr as Ue,mt as We,nr as Ge,nt as Ke,or as qe,ot as Je,pr as Ye,pt as Xe,q as Ze,qn as Qe,rr as $e,rt as et,sr as tt,st as nt,tr as rt,tt as it,u as at,ur as ot,ut as st,vr as ct,w as lt,wr as ut,wt as dt,x as ft,xr as pt,xt as mt,y as ht,yr as gt,z as _t,zn as vt}from"./transformers-lavDTtAW.mjs";import{$ as yt,A as bt,B as xt,C as St,D as Ct,E as wt,F as Tt,G as Et,H as Dt,I as Ot,J as kt,K as At,L as jt,M as Mt,N as Nt,O as Pt,P as Ft,Q as It,R as Lt,S as Rt,T as zt,U as Bt,V as Vt,W as Ht,X as Ut,Y as Wt,Z as Gt,_ as Kt,a as qt,at as Jt,b as Yt,c as Xt,ct as Zt,d as Qt,dt as $t,et as en,f as tn,ft as nn,g as rn,gt as an,h as on,ht as sn,i as cn,it as ln,j as un,k as dn,l as fn,lt as pn,m as mn,mt as hn,n as gn,nt as _n,o as vn,ot as yn,p as bn,pt as xn,q as Sn,r as Cn,rt as wn,s as Tn,st as En,t as Dn,tt as On,u as kn,ut as An,v as jn,w as Mn,x as Nn,y as Pn,z as Fn}from"./barrel-pRBtHOAW.mjs";export{On as Address,U as Bytes,ht as Cell,_e as CellAny,ft as CellDep,Ke as CellDepInfo,Q as CellDepVec,s as CellInput,lt as CellInputVec,te as CellOutput,p as CellOutputVec,Zt as Client,et as ClientBlock,je as ClientBlockHeader,ge as ClientBlockUncle,An as ClientCache,pn as ClientCacheMemory,Je as ClientIndexerSearchKey,nt as ClientIndexerSearchKeyFilter,be as ClientIndexerSearchKeyTransaction,ln as ClientJsonRpc,wn as ClientPublicMainnet,_n as ClientPublicTestnet,He as ClientTransactionResponse,d as Codec,m as CodecBool,u as CodecByte,H as CodecByte16,Le as CodecByte32,n as CodecByte4,Ne as CodecByte8,P as CodecBytes,R as CodecRaw,K as CodecUint128,v as CodecUint128BE,w as CodecUint128LE,j as CodecUint16,X as CodecUint16BE,vt as CodecUint16LE,o as CodecUint256,ae as CodecUint256BE,S as CodecUint256LE,re as CodecUint32,oe as CodecUint32BE,x as CodecUint32LE,k as CodecUint512,Qe as CodecUint512BE,D as CodecUint512LE,ue as CodecUint64,ce as CodecUint64BE,fe as CodecUint64LE,J as CodecUint8,l as DepTypeCodec,Ee as Entity,mt as Epoch,st as ErrorClientBase,Se as ErrorClientDuplicatedTransaction,Te as ErrorClientMaxFeeRateExceeded,Xe as ErrorClientRBFRejected,We as ErrorClientResolveUnknown,ke as ErrorClientVerification,De as ErrorClientWaitTransactionTimeout,a as ErrorTransactionInsufficientCapacity,ie as ErrorTransactionInsufficientCoin,ct as HASH_CKB_LENGTH,gt as HASH_CKB_SHORT_LENGTH,b as HashTypeCodec,ve as HasherCkb,an as HasherKeecak256,Gt as InputToSign,yn as JsonRpcError,En as JsonRpcTransportFallback,at as JsonRpcTransportHttp,Be as JsonRpcTransportWebSocket,it as KnownScript,Kt as MultisigCkbWitness,we as One,V as OutPoint,y as Owner,hn as OwnerAggregated,T as OwnerMoved,xn as OwnerRefCount,q as OwnerUnique,nn as Proxy,Ie as RawTransaction,Jt as RequestorJsonRpc,Fn as SECP256K1_SIGNATURE_LENGTH,O as Script,me as ScriptInfo,Ze as ScriptOpt,E as ScriptVec,It as SignPsbtOptions,zt as Signature,wt as Signer,Qt as SignerAlwaysError,Mn as SignerBtc,St as SignerBtcPublicKeyReadonly,Rt as SignerCkbAlwaysSuccess,Yt as SignerCkbPrivateKey,Nn as SignerCkbPublicKey,Pn as SignerCkbScriptReadonly,on as SignerDoge,mn as SignerDogeAddressReadonly,bn as SignerDogePrivateKey,tn as SignerDummy,fn as SignerEvm,Xt as SignerEvmAddressReadonly,Ct as SignerInfo,qt as SignerJsonRpc,vn as SignerJsonRpcErrorCode,Tn as SignerJsonRpcProviderSession,Pt as SignerMultisig,rn as SignerMultisigCkbPrivateKey,jn as SignerMultisigCkbReadonly,dn as SignerMultisigNotEnoughSignaturesError,cn as SignerNostr,gn as SignerNostrPrivateKey,Cn as SignerNostrPublicKeyReadonly,kn as SignerOpenLink,bt as SignerSignType,un as SignerType,t as Since,Me as Transaction,N as WitnessArgs,Ye as Zero,M as abortSignalAny,Z as abortSignalToPromise,g as apply,Et as btcEcdsaPublicKeyHash,At as btcP2pkhAddressFromPublicKey,Sn as btcPublicKeyFromP2pkhAddress,kt as btcVarLengthBytesFrom,Mt as buildNostrEventFromMessage,Re as bytesConcat,r as bytesConcatTo,Pe as bytesEq,F as bytesFrom,ut as bytesLen,ne as bytesLenUnsafe,z as bytesTo,L as calcDaoClaimEpoch,G as calcDaoProfit,Dn as ccc,pe as codec,e as codecPadding,Ce as codecUint,rt as codecUintNumber,_ as depTypeFrom,C as depTypeFromBytes,A as depTypeToBytes,ee as epochFrom,c as epochFromHex,dt as epochToHex,Ue as fixedPointFrom,Oe as fixedPointToString,f as gcd,pt as hashCkb,$ as hashCkbShort,le as hashTypeFrom,se as hashTypeFromBytes,$t as hashTypeId,de as hashTypeToBytes,h as hexFrom,Y as isDaoOutputLimitExceeded,W as isWebview,yt as keystoreDecrypt,en as keystoreEncrypt,Wt as messageHashBtcEcdsa,xt as messageHashCkbSecp256k1,Ot as messageHashDogeEcdsa,sn as mol,Nt as nostrEventHash,Ge as numBeFromBytes,$e as numBeToBytes,Ae as numFrom,he as numFromBytes,qe as numLeFromBytes,tt as numLeToBytes,ye as numMax,Ve as numMin,ot as numToBytes,xe as numToHex,Vt as recoverMessageSecp256k1,ze as reduceAsync,i as retry,Dt as signMessageSecp256k1,Fe as sleep,I as stringify,_t as udtBalanceFrom,Ut as verifyMessageBtcEcdsa,Bt as verifyMessageCkbSecp256k1,jt as verifyMessageDogeEcdsa,Tt as verifyMessageEvmPersonal,Lt as verifyMessageJoyId,Ft as verifyMessageNostrEvent,Ht as verifyMessageSecp256k1,B as waitForAvailability};
1
+ import{$n as e,A as t,An as n,Ar as r,At as i,B as a,Bn as o,C as s,Cr as c,Ct as l,D as u,Dn as d,Dr as f,Dt as p,E as m,Er as h,Et as g,F as _,Fn as v,Ft as y,G as b,Gn as x,Hn as S,I as C,In as w,It as T,J as E,Jn as D,K as O,Kn as k,L as A,Ln as j,Lt as M,M as N,Mn as P,Mr as F,Mt as I,N as L,Nn as R,Nr as z,Nt as B,O as V,On as H,Or as U,Ot as W,P as G,Pn as K,Pr as q,Pt as J,Qn as Y,R as X,Rn as Z,Rt as Q,S as $,Sr as ee,St as te,T as ne,Tr as re,Un as ie,V as ae,Vn as oe,Wn as se,X as ce,Xn as le,Y as ue,Yn as de,Z as fe,Zn as pe,_r as me,_t as he,ar as ge,at as _e,b as ve,br as ye,cr as be,ct as xe,dr as Se,dt as Ce,er as we,fr as Te,ft as Ee,gr as De,gt as Oe,hr as ke,ht as Ae,ir as je,it as Me,j as Ne,jn as Pe,jr as Fe,jt as Ie,k as Le,kn as Re,kr as ze,kt as Be,l as Ve,lr as He,lt as Ue,mr as We,mt as Ge,nr as Ke,nt as qe,or as Je,ot as Ye,pr as Xe,pt as Ze,q as Qe,qn as $e,rr as et,rt as tt,sr as nt,st as rt,tr as it,tt as at,u as ot,ur as st,ut as ct,vr as lt,w as ut,wt as dt,x as ft,xr as pt,xt as mt,y as ht,yr as gt,z as _t,zn as vt}from"./transformers-BHt442Nd.mjs";import{$ as yt,A as bt,B as xt,C as St,D as Ct,E as wt,F as Tt,G as Et,H as Dt,I as Ot,J as kt,K as At,L as jt,M as Mt,N as Nt,O as Pt,P as Ft,Q as It,R as Lt,S as Rt,T as zt,U as Bt,V as Vt,W as Ht,X as Ut,Y as Wt,Z as Gt,_ as Kt,a as qt,at as Jt,b as Yt,c as Xt,ct as Zt,d as Qt,dt as $t,et as en,f as tn,ft as nn,g as rn,gt as an,h as on,ht as sn,i as cn,it as ln,j as un,k as dn,l as fn,lt as pn,m as mn,mt as hn,n as gn,nt as _n,o as vn,ot as yn,p as bn,pt as xn,q as Sn,r as Cn,rt as wn,s as Tn,st as En,t as Dn,tt as On,u as kn,ut as An,v as jn,w as Mn,x as Nn,y as Pn,z as Fn}from"./barrel-Dz1WLXRX.mjs";export{On as Address,ze as Bytes,ht as Cell,ve as CellAny,ft as CellDep,qe as CellDepInfo,$ as CellDepVec,s as CellInput,ut as CellInputVec,ne as CellOutput,m as CellOutputVec,Zt as Client,tt as ClientBlock,Me as ClientBlockHeader,_e as ClientBlockUncle,An as ClientCache,pn as ClientCacheMemory,Ye as ClientIndexerSearchKey,rt as ClientIndexerSearchKeyFilter,xe as ClientIndexerSearchKeyTransaction,ln as ClientJsonRpc,wn as ClientPublicMainnet,_n as ClientPublicTestnet,Ue as ClientTransactionResponse,U as Codec,d as CodecBool,H as CodecByte,Re as CodecByte16,n as CodecByte32,Pe as CodecByte4,P as CodecByte8,R as CodecBytes,K as CodecRaw,v as CodecUint128,w as CodecUint128BE,j as CodecUint128LE,Z as CodecUint16,vt as CodecUint16BE,o as CodecUint16LE,oe as CodecUint256,S as CodecUint256BE,ie as CodecUint256LE,se as CodecUint32,x as CodecUint32BE,k as CodecUint32LE,$e as CodecUint512,D as CodecUint512BE,de as CodecUint512LE,le as CodecUint64,pe as CodecUint64BE,Y as CodecUint64LE,e as CodecUint8,u as DepTypeCodec,me as Entity,mt as Epoch,ct as ErrorClientBase,Ce as ErrorClientDuplicatedTransaction,Ee as ErrorClientMaxFeeRateExceeded,Ze as ErrorClientRBFRejected,Ge as ErrorClientResolveUnknown,Ae as ErrorClientVerification,Oe as ErrorClientWaitTransactionTimeout,a as ErrorTransactionInsufficientCapacity,ae as ErrorTransactionInsufficientCoin,gt as HASH_CKB_LENGTH,ye as HASH_CKB_SHORT_LENGTH,b as HashTypeCodec,pt as HasherCkb,an as HasherKeecak256,Gt as InputToSign,yn as JsonRpcError,En as JsonRpcTransportFallback,ot as JsonRpcTransportHttp,Ve as JsonRpcTransportWebSocket,at as KnownScript,Kt as MultisigCkbWitness,Xe as One,V as OutPoint,y as Owner,hn as OwnerAggregated,T as OwnerMoved,xn as OwnerRefCount,J as OwnerUnique,nn as Proxy,Le as RawTransaction,Jt as RequestorJsonRpc,Fn as SECP256K1_SIGNATURE_LENGTH,O as Script,he as ScriptInfo,Qe as ScriptOpt,E as ScriptVec,It as SignPsbtOptions,zt as Signature,wt as Signer,Qt as SignerAlwaysError,Mn as SignerBtc,St as SignerBtcPublicKeyReadonly,Rt as SignerCkbAlwaysSuccess,Yt as SignerCkbPrivateKey,Nn as SignerCkbPublicKey,Pn as SignerCkbScriptReadonly,on as SignerDoge,mn as SignerDogeAddressReadonly,bn as SignerDogePrivateKey,tn as SignerDummy,fn as SignerEvm,Xt as SignerEvmAddressReadonly,Ct as SignerInfo,qt as SignerJsonRpc,vn as SignerJsonRpcErrorCode,Tn as SignerJsonRpcProviderSession,Pt as SignerMultisig,rn as SignerMultisigCkbPrivateKey,jn as SignerMultisigCkbReadonly,dn as SignerMultisigNotEnoughSignaturesError,cn as SignerNostr,gn as SignerNostrPrivateKey,Cn as SignerNostrPublicKeyReadonly,kn as SignerOpenLink,bt as SignerSignType,un as SignerType,t as Since,Ne as Transaction,N as WitnessArgs,We as Zero,M as abortSignalAny,Q as abortSignalToPromise,g as apply,Et as btcEcdsaPublicKeyHash,At as btcP2pkhAddressFromPublicKey,Sn as btcPublicKeyFromP2pkhAddress,kt as btcVarLengthBytesFrom,Mt as buildNostrEventFromMessage,r as bytesConcat,Fe as bytesConcatTo,F as bytesEq,z as bytesFrom,re as bytesLen,h as bytesLenUnsafe,q as bytesTo,L as calcDaoClaimEpoch,G as calcDaoProfit,Dn as ccc,lt as codec,we as codecPadding,it as codecUint,Ke as codecUintNumber,_ as depTypeFrom,C as depTypeFromBytes,A as depTypeToBytes,te as epochFrom,l as epochFromHex,dt as epochToHex,ke as fixedPointFrom,De as fixedPointToString,p as gcd,ee as hashCkb,c as hashCkbShort,ue as hashTypeFrom,ce as hashTypeFromBytes,$t as hashTypeId,fe as hashTypeToBytes,f as hexFrom,X as isDaoOutputLimitExceeded,W as isWebview,yt as keystoreDecrypt,en as keystoreEncrypt,Wt as messageHashBtcEcdsa,xt as messageHashCkbSecp256k1,Ot as messageHashDogeEcdsa,sn as mol,Nt as nostrEventHash,et as numBeFromBytes,je as numBeToBytes,ge as numFrom,Je as numFromBytes,nt as numLeFromBytes,be as numLeToBytes,He as numMax,st as numMin,Se as numToBytes,Te as numToHex,Vt as recoverMessageSecp256k1,Be as reduceAsync,i as retry,Dt as signMessageSecp256k1,Ie as sleep,I as stringify,_t as udtBalanceFrom,Ut as verifyMessageBtcEcdsa,Bt as verifyMessageCkbSecp256k1,jt as verifyMessageDogeEcdsa,Tt as verifyMessageEvmPersonal,Lt as verifyMessageJoyId,Ft as verifyMessageNostrEvent,Ht as verifyMessageSecp256k1,B as waitForAvailability};
@@ -0,0 +1,2 @@
1
+ import{bech32 as e,bech32m as t}from"bech32";import{base64ToUint8Array as n,hexToUint8Array as r,stringToUint8Array as i,uint8ArrayToBase64 as a,uint8ArrayToHex as o,uint8ArrayToString as s}from"uint8array-extras";import{blake2b as c}from"@noble/hashes/blake2.js";import l from"isomorphic-ws";const u=Uint8Array;function d(e,...t){return t.reduce((t,n)=>{let r=m(n);for(let t of r)e.push(t);return t},e)}function f(...e){return new Uint8Array(d([],...e))}function p(e,t){let n=m(e);switch(t){case`utf8`:return s(n);case`base64`:return a(n);case`base64url`:return a(n,{urlSafe:!0});case`hex`:return o(n)}}function m(e,t){if(e instanceof Uint8Array)return e;if(e instanceof ArrayBuffer)return new Uint8Array(e);if(typeof e==`string`){if(t!==void 0&&t!==`hex`)return ee(e,t);let n=e.startsWith(`0x`)?e.slice(2):e,i=n.length%2==0?n:`0${n}`;return r(i)}if(Array.from(e).some(e=>e<0||255<e))throw Error(`Invalid bytes ${JSON.stringify(e)}`);return new Uint8Array(e)}function ee(e,t){switch(t){case`utf8`:return i(e);case`base64`:case`base64url`:return n(e)}}function te(e,t){if(e===t)return!0;let n=m(e),r=m(t);if(n.length!==r.length)return!1;for(let e=0;e<n.length;e++)if(n[e]!==r[e])return!1;return!0}var h=class e{constructor(e,t,n){this.encode=e,this.decode=t,this.byteLength=n}encodeOr(e,t){try{return this.encode(e)}catch{return t}}decodeOr(e,t,n){try{return this.decode(e,n)}catch{return t}}static from({encode:t,decode:n,byteLength:r}){return new e(e=>{let n=t(e);if(r!==void 0&&n.byteLength!==r)throw Error(`Codec.encode: expected byte length ${r}, got ${n.byteLength}`);return n},(e,t)=>{let i=m(e);if(r!==void 0&&i.byteLength!==r)throw Error(`Codec.decode: expected byte length ${r}, got ${i.byteLength}`);return n(e,t)},r)}map({inMap:t,outMap:n}){return new e(e=>this.encode(t?t(e):e),(e,t)=>n?n(this.decode(e,t)):this.decode(e,t),this.byteLength)}mapIn(e){return this.map({inMap:e})}mapOut(e){return this.map({outMap:e})}};function ne(e){if(!(typeof e==`string`&&e.length%2==0&&e.startsWith(`0x`)))return!1;for(let t=2;t<e.length;t++){let n=e.charAt(t);if(!(`0`<=n&&n<=`9`||`a`<=n&&n<=`f`))return!1}return!0}function g(e){return ne(e)?e:`0x${p(m(e),`hex`)}`}function re(e){return ne(e)?ie(e):m(e).length}function ie(e){return Math.floor((e.length-1)/2)}const ae=m(`ckb-default-hash`,`utf8`),oe=32,se=20;var ce=class{constructor(e=32,t=ae){this.hasher=c.create({personalization:t,dkLen:e})}update(e){return this.hasher.update(m(e)),this}digest(){return g(this.hasher.digest())}};function le(...e){let t=new ce;return e.forEach(e=>t.update(e)),t.digest()}function ue(...e){return le(...e).slice(0,42)}var _=class{static Base(){class e extends _{static encode(e){throw Error(`encode not implemented, use @ccc.codec to decorate your type`)}static decode(e,t){throw Error(`decode not implemented, use @ccc.codec to decorate your type`)}static fromBytes(e,t){throw Error(`fromBytes not implemented, use @ccc.codec to decorate your type`)}static from(e){throw Error(`from not implemented`)}toBytes(){return this.constructor.encode(this)}clone(){return this.constructor.fromBytes(this.toBytes())}eq(e){return this===e||te(this.toBytes(),(this.constructor?.from(e)??e).toBytes())}hash(){return le(this.toBytes())}toHex(){return g(this.toBytes())}}return e.encode=void 0,e.decode=void 0,e.fromBytes=void 0,e}static BaseUnion(){class e extends _.Base(){constructor(e){super(),this.inner=e}match(e){let t=e[this.inner.type];return t==null?e._(this.inner):t(this.inner.value)}}return e}};function v(e){return function(t,...n){return t.byteLength=e.byteLength,t.encode===void 0&&(t.encode=function(n){return e.encode(t.from(n))}),t.decode===void 0&&(t.decode=function(n,r){return t.from(e.decode(m(n),r))}),t.fromBytes===void 0&&(t.fromBytes=function(n,r){return t.from(e.decode(m(n),r))}),t}}function de(e,t=8){let n=y(e,t);if(n<0n)return`-${de(-n,t)}`;let r=n.toString();if(t===0)return r;let i=r.length<=t?`0`:r.slice(0,-t),a=r.slice(-t).padStart(t,`0`).replace(/0*$/,``);return a===``?i:`${i}.${a}`}function y(e,t=8){if(typeof e==`bigint`)return e;let n=typeof e==`number`?e.toFixed(t):e.toString(),r=n.startsWith(`-`);(r||n.startsWith(`+`))&&(n=n.slice(1));let[i,a]=n.split(`.`),o=i===``?0n:BigInt(i.padEnd(i.length+t,`0`));if(a===void 0||t===0)return r?-o:o;let s=o+BigInt(a.slice(0,t).padEnd(t,`0`));return r?-s:s}const b=0n,fe=y(`1`);function pe(e,...t){let n=x(e);return t.forEach(e=>{let t=x(e);t<n&&(n=t)}),n}function me(e,...t){let n=x(e);return t.forEach(e=>{let t=x(e);t>n&&(n=t)}),n}function x(e){if(typeof e==`bigint`)return e;if(e===`0x`)return BigInt(0);if(typeof e==`string`||typeof e==`number`)return BigInt(e);let t=g(e);return BigInt(t)}function S(e){let t=x(e);if(t<0n)throw Error(`value must be non-negative`);return`0x${t.toString(16)}`}function he(e,t){return ge(e,t)}function ge(e,t){return _e(e,t).reverse()}function _e(e,t){let n=x(e);if(n<x(0)){if(t==null)throw Error(`negative number can not be serialized without knowing bytes length`);if(n=(x(1)<<x(8)*x(t))+n,n<0)throw Error(`negative number underflow`)}let r=m(n.toString(16));if(t==null)return r;if(r.length>t)throw Error(`number overflow`);return f(`00`.repeat(t-r.length),r)}function ve(e){return C(e)}function C(e){return ye(m(e).map(e=>e).reverse())}function ye(e){return x(m(e))}function w(e,t=!1){return h.from({byteLength:e,encode:n=>t?he(n,e):_e(n,e),decode:e=>t?ve(e):ye(e)})}function T(e,t=!1){if(e>4)throw Error(`uintNumber: byteLength must be less than or equal to 4`);return w(e,t).map({outMap:e=>Number(e)})}function be(e){return h.from({byteLength:e,encode:()=>new Uint8Array(e),decode:()=>{}})}const xe=h.from({encode:e=>m(e),decode:e=>m(e)}),Se=h.from({encode:e=>m(e),decode:e=>g(e)}),Ce=T(1,!0),we=T(2,!0),Te=T(2),Ee=we,De=T(4,!0),Oe=T(4),ke=De,Ae=w(8,!0),je=w(8),Me=Ae,Ne=w(16,!0),Pe=w(16),Fe=Ne,Ie=w(32,!0),Le=w(32),Re=Ie,ze=w(64,!0),Be=w(64),Ve=ze,He=h.from({byteLength:1,encode:e=>m(e?[1]:[0]),decode:e=>m(e)[0]!==0}),Ue=h.from({byteLength:1,encode:e=>m(e),decode:e=>g(e)}),We=h.from({byteLength:4,encode:e=>m(e),decode:e=>g(e)}),Ge=h.from({byteLength:8,encode:e=>m(e),decode:e=>g(e)}),Ke=h.from({byteLength:16,encode:e=>m(e),decode:e=>g(e)}),qe=h.from({byteLength:32,encode:e=>m(e),decode:e=>g(e)});function E(e){return he(e,4)}function D(e){return Number(ve(e))}function O(e){return e instanceof Error?e.message:String(e)}function Je(e){return typeof e==`number`&&Number.isSafeInteger(e)&&e>0}function Ye(e,t,n){if(e.byteLength<4)throw Error(`${t}: too short buffer, expected at least 4 bytes, but got ${e.byteLength}`);let r=D(e.subarray(0,4));if(r!==e.byteLength)throw Error(`${t}: invalid buffer size, expected ${r}, but got ${e.byteLength}`);if(r!==4&&r<8)throw Error(`${t}: invalid header, buffer too short for first offset, got ${r} bytes`);let i=r===4?4:D(e.subarray(4,8));if(r!==4){if(i<8)throw Error(`${t}: invalid first offset, expected at least 8, but got ${i}`);if(i%4!=0)throw Error(`${t}: invalid first offset alignment, expected multiple of 4, but got ${i}`);if(i>r)throw Error(`${t}: invalid first offset, offset ${i} exceeds total size ${r}`)}let a=(i-4)/4;if(n&&(a<n.expected||a>n.expected&&!n.allowExtra))throw Error(`${t}: invalid field count, expected ${n.expected}, but got ${a}`);if(a===0)return[r];let o=[i],s=i;for(let n=1;n<a;n++){let i=D(e.subarray(4+n*4,8+n*4));if(i>r)throw Error(`${t}: invalid offset, offset[${n}] = ${i} exceeds total size ${r}`);if(i<s)throw Error(`${t}: invalid offset order, offset[${n}] (${i}) is less than offset[${n-1}] (${s})`);o.push(i),s=i}return o.push(r),o}function Xe(e){let t=e.byteLength;if(t===void 0)throw Error(`fixedItemVec: itemCodec requires a byte length`);if(!Je(t))throw Error(`fixedItemVec: itemCodec byteLength must be a positive safe integer, but got ${String(t)}`);return h.from({encode(t){try{let n=[];d(n,E(t.length));for(let r of t)d(n,e.encode(r));return m(n)}catch(e){throw Error(`fixedItemVec - ${O(e)}`,{cause:e})}},decode(n,r){let i=m(n);if(i.byteLength<4)throw Error(`fixedItemVec: too short buffer, expected at least 4 bytes, but got ${i.byteLength}`);let a=4+D(i.subarray(0,4))*t;if(i.byteLength!==a)throw Error(`fixedItemVec: invalid buffer size, expected ${a}, but got ${i.byteLength}`);try{let n=[];for(let o=4;o<a;o+=t)n.push(e.decode(i.subarray(o,o+t),r));return n}catch(e){throw Error(`fixedItemVec - ${O(e)}`,{cause:e})}}})}function Ze(e){return h.from({encode(t){try{let n=4+t.length*4,r=[],i=[];for(let a of t){let t=e.encode(a);d(r,E(n)),d(i,t),n+=t.byteLength}return f(E(r.length+i.length+4),r,i)}catch(e){throw Error(`dynItemVec - ${O(e)}`,{cause:e})}},decode(t,n){let r=m(t),i=Ye(r,`dynItemVec`);try{let t=[];for(let a=0;a<i.length-1;a++){let o=i[a],s=i[a+1],c=r.subarray(o,s);t.push(e.decode(c,n))}return t}catch(e){throw Error(`dynItemVec - ${O(e)}`,{cause:e})}}})}function k(e){return e.byteLength===void 0?Ze(e):Xe(e)}function A(e){return h.from({encode(t){if(t==null)return m([]);try{return e.encode(t)}catch(e){throw Error(`option - ${O(e)}`,{cause:e})}},decode(t,n){if(m(t).byteLength!==0)try{return e.decode(t,n)}catch(e){throw Error(`option - ${O(e)}`,{cause:e})}}})}function Qe(e){return h.from({encode(t){try{let n=m(e.encode(t));return f(E(n.byteLength),n)}catch(e){throw Error(`byteVec - ${O(e)}`,{cause:e})}},decode(t,n){let r=m(t);if(r.byteLength<4)throw Error(`byteVec: too short buffer, expected at least 4 bytes, but got ${r.byteLength}`);let i=D(r.subarray(0,4));if(i!==r.byteLength-4)throw Error(`byteVec: invalid buffer size, expected ${i}, but got ${r.byteLength}`);try{return e.decode(r.subarray(4),n)}catch(e){throw Error(`byteVec - ${O(e)}`,{cause:e})}}})}function j(e){let t=Object.keys(e);return h.from({encode(n){let r=4+t.length*4,i=[],a=[];for(let o of t)try{let t=e[o].encode(n[o]);d(i,E(r)),d(a,t),r+=t.byteLength}catch(e){throw Error(`table.${o} - ${O(e)}`,{cause:e})}return f(E(i.length+a.length+4),i,a)},decode(n,r){let i=m(n),a=t.length,o=Ye(i,`table`,{expected:a,allowExtra:r?.isExtraFieldIgnored===!0}),s={};for(let n=0;n<a;n++){let a=t[n],c=o[n],l=o[n+1],u=i.subarray(c,l);try{s[a]=e[a].decode(u,r)}catch(e){throw Error(`table.${a} - ${O(e)}`,{cause:e})}}return s}})}function $e(e,t,n){if(!n)return;let r=new Set(Object.keys(t)),i=new Set(Object.keys(n));for(let t of i)if(!r.has(t))throw Error(`${e}: unexpected field id for unknown key '${t}'`);let a=new Map;for(let[t,r]of Object.entries(n)){if(r==null)throw Error(`${e}: field id for '${t}' is required`);if(typeof r!=`number`||!Number.isInteger(r)||r<0||r>4294967295)throw Error(`${e}: invalid field id ${r} for key '${t}'`);if(a.has(r))throw Error(`${e}: duplicate field id ${r} for keys '${a.get(r)}' and '${t}'`);a.set(r,t)}for(let t of r)if(!i.has(t))throw Error(`${e}: missing field id for key '${t}'`)}function et(e){return`type`in e&&`value`in e?e:e.inner}function tt(e,t,n,r){let i=Object.keys(t),a=new Map,o=new Map;for(let[e,t]of i.entries()){let r=n?n[t]:e;a.set(t,r),o.set(r,t)}let s=r===void 0?void 0:r+4;return h.from({byteLength:s,encode(n){let{type:o,value:s}=et(n),c=o.toString(),l=t[c];if(!l)throw Error(`${e}: invalid type, expected ${i.toString()}, but got ${c}`);let u=a.get(c);if(u===void 0)throw Error(`${e}: invalid field id -1 of ${c}`);let d=E(u);try{let t=l.encode(s);if(r!==void 0&&t.byteLength!==r)throw Error(`${e}: variant '${c}' encoded ${t.byteLength} bytes, expected ${r}`);return f(d,t)}catch(t){throw Error(`${e}.(${c}) - ${O(t)}`,{cause:t})}},decode(n,r){let a=m(n);if(s===void 0&&a.byteLength<4)throw Error(`${e}: too short buffer, expected at least 4 bytes for union tag, but got ${a.byteLength}`);let c=D(a.subarray(0,4)),l=o.get(c);if(!l)throw Error(`${e}: unknown union field index ${c}, only ${i.toString()} are allowed`);try{return{type:l,value:t[l].decode(a.subarray(4),r)}}catch(t){throw Error(`${e}.(${l}) - ${O(t)}`,{cause:t})}}})}function nt(e,t){if(Object.keys(e).length===0)throw Error(`union: must have at least one variant`);return $e(`union`,e,t),tt(`union`,e,t)}function rt(e,t){let n=Object.entries(e);if(n.length===0)throw Error(`fixedUnion: must have at least one variant`);let r;for(let[e,t]of n){if(t.byteLength===void 0)throw Error(`fixedUnion: variant '${e}' must be a fixed-size type`);if(!Je(t.byteLength))throw Error(`fixedUnion: variant '${e}' byteLength must be a positive safe integer, but got ${String(t.byteLength)}`);if(r===void 0)r=t.byteLength;else if(t.byteLength!==r)throw Error(`fixedUnion: all variants must have the same byteLength (${r}), but variant '${e}' has ${t.byteLength}`)}if($e(`fixedUnion`,e,t),r>2**53-1-4)throw Error(`fixedUnion: total byteLength exceeds safe integer limit`);return tt(`fixedUnion`,e,t,r)}function it(e){let t=Object.keys(e);if(t.length===0)throw Error(`struct: must have at least one field`);let n=0;for(let[t,r]of Object.entries(e)){if(r.byteLength===void 0)throw Error(`struct: field '${t}' must be fixed-size`);if(!Je(r.byteLength))throw Error(`struct: field '${t}' byteLength must be a positive safe integer, but got ${String(r.byteLength)}`);if(n+=r.byteLength,!Number.isSafeInteger(n))throw Error(`struct: total byteLength exceeds safe integer limit`)}return h.from({byteLength:n,encode(n){let r=[];for(let i of t)try{d(r,e[i].encode(n[i]))}catch(e){throw Error(`struct.${i} - ${O(e)}`,{cause:e})}return m(r)},decode(t,n){let r=m(t),i={},a=0;return Object.entries(e).forEach(([e,t])=>{let o=r.subarray(a,a+t.byteLength);try{Object.assign(i,{[e]:t.decode(o,n)})}catch(t){throw Error(`struct.${e} - ${O(t)}`,{cause:t})}a+=t.byteLength}),i}})}function at(e,t){if(e.byteLength===void 0)throw Error(`array: itemCodec requires a byte length`);if(!Je(e.byteLength))throw Error(`array: itemCodec byteLength must be a positive safe integer, but got ${String(e.byteLength)}`);if(!Je(t))throw Error(`array: itemCount must be a positive safe integer, but got ${String(t)}`);let n=e.byteLength*t;if(!Number.isSafeInteger(n))throw Error(`array: total byteLength exceeds safe integer limit, got ${String(n)}`);return h.from({byteLength:n,encode(t){try{let n=[];for(let r of t)d(n,e.encode(r));return m(n)}catch(e){throw Error(`array - ${O(e)}`,{cause:e})}},decode(t,r){let i=m(t);if(i.byteLength!==n)throw Error(`array: invalid buffer size, expected ${n}, but got ${i.byteLength}`);try{let t=[];for(let n=0;n<i.byteLength;n+=e.byteLength)t.push(e.decode(i.subarray(n,n+e.byteLength),r));return t}catch(e){throw Error(`array - ${O(e)}`,{cause:e})}}})}const ot=A(Ce),st=k(Ce),ct=A(Ee),lt=k(Ee),ut=A(ke),dt=k(ke),ft=A(Me),pt=k(Me),mt=A(Fe),ht=k(Fe),gt=A(Re),_t=k(Re),vt=A(Ve),yt=k(Ve),bt=Qe(Se),xt=A(bt),St=k(bt),Ct=A(He),wt=k(He),Tt=A(Ue),Et=k(Ue),Dt=A(We),Ot=k(We),kt=A(Ge),At=k(Ge),jt=A(Ke),Mt=k(Ke),Nt=A(qe),Pt=k(qe),Ft=Qe({encode:e=>m(e,`utf8`),decode:e=>p(e,`utf8`)}),It=k(Ft),Lt=A(Ft);function Rt(e){if(typeof AbortSignal.any==`function`)return AbortSignal.any([...e]);let t=new AbortController,n=new Map,r=()=>{for(let[e,t]of n)e.removeEventListener(`abort`,t);n.clear()},i=e=>{r(),t.abort(e.reason)};for(let t of e){if(t.aborted){i(t);break}if(n.has(t))continue;let e=()=>i(t);n.set(t,e),t.addEventListener(`abort`,e,{once:!0})}return t.signal}function zt(e){return new Promise((t,n)=>{e.throwIfAborted(),e.addEventListener(`abort`,()=>n(e.reason),{once:!0})})}var Bt=class{constructor(e,t){this.value=e,this.disposer=t}dispose(){return this.disposing??=Promise.resolve().then(()=>this.disposer(this.value)),this.disposing}};const Vt=Symbol.for(`@ckb-ccc/core.Owner`);var Ht=class{constructor(){this[Vt]=!0}get isValid(){return this.disposing===void 0}static is(e){return typeof e==`object`&&!!e&&e[Vt]===!0}get value(){if(this.disposing)throw Error(`Cannot access a moved or disposed Owner`);return this.value_}dispose(){return this.disposing??=Promise.resolve().then(()=>this.release(this.value_)),this.disposing}map(e){return new Ut(e(this.value),this.move())}move(){if(this.disposing)throw Error(`Owner has already been moved or disposed`);return this.disposing=Promise.resolve(),new Bt(this.value_,e=>this.release(e))}static moveFrom(e){return e.move()}},Ut=class extends Ht{constructor(e,t){super(),this.value_=e,this.source=t}release(){return this.source.dispose()}},Wt=class extends Ht{constructor(e,t){super(),this.value_=e,this.disposer=t}release(e){return this.disposer(e)}};function M(e,t){if(t!=null)return e(t)}async function Gt(e,t,n){if(n===void 0){if(e.length===0)throw TypeError(`Reduce of empty array with no initial value`);n=e[0],e=e.slice(1)}return e.reduce((e,n,r,i)=>e.then(e=>Promise.resolve(t(e,n,r,i)).then(t=>t??e)),Promise.resolve(n))}function Kt(e,t){return new Promise((n,r)=>{t?.throwIfAborted();let i=()=>{clearTimeout(a),r(t?.reason)},a=setTimeout(()=>{t?.removeEventListener(`abort`,i),n()},Number(x(e)));t?.addEventListener(`abort`,i,{once:!0})})}function qt(e){return{status:`resolved`,value:e}}function Jt(e){return{status:`rejected`,error:e}}function Yt(){return{status:`retry`}}async function Xt(e,t,n){let r=e[Symbol.iterator](),i=0;for(;;){n?.signal?.throwIfAborted();let e;try{if(e=await t({index:i,resolve:qt,reject:Jt,next:Yt}),e.status===`retry`)throw Error(`Retry limit exhausted`)}catch(e){let t=r.next(),a=t.done?n?.repeat:t.value;if(a===void 0)throw e;await Kt(a,n?.signal),i+=1;continue}if(e.status===`rejected`)throw e.error;return e.value}}async function Zt(e){if(e?.throwIfAborted(),typeof window>`u`||typeof document>`u`||typeof navigator>`u`)return;let t=()=>document.visibilityState===`visible`&&navigator.onLine;t()||await new Promise((n,r)=>{let i=!1;function a(){document.removeEventListener(`visibilitychange`,o),window.removeEventListener(`online`,o),e?.removeEventListener(`abort`,s)}function o(){!i&&t()&&(i=!0,a(),n())}function s(){i||(i=!0,a(),r(e?.reason))}document.addEventListener(`visibilitychange`,o),window.addEventListener(`online`,o),e?.addEventListener(`abort`,s,{once:!0}),e?.aborted?s():o()})}function Qt(e){return/webview|wv|ip((?!.*Safari)|(?=.*like Safari))/i.test(e)}function $t(e){return JSON.stringify(e,(e,t)=>typeof t==`bigint`?S(t):t)}function en(e,t){for(e=x(e),t=x(t),e=e<0n?-e:e,t=t<0n?-t:t;t!==b;)[e,t]=[t,e%t];return e}function N(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a}var P;let F=P=class extends _.Base(){constructor(e,t,n){super(),this.integer=e,this.numerator=t,this.denominator=n}normalizeBase(){return this.denominator===0n?P.from([this.integer,b,x(1)]):this.denominator<0n?P.from([this.integer,-this.numerator,-this.denominator]):this}normalizeCanonical(){let{integer:e,numerator:t,denominator:n}=this.normalizeBase();if(t<0n){let r=(-t+n-1n)/n;e-=r,t+=n*r}let r=en(t,n);return t/=r,n/=r,e+=t/n,t%=n,P.from([e,t,n])}get 0(){return this.integer}get 1(){return this.numerator}get 2(){return this.denominator}toNum(){if(this.integer<0n||this.numerator<0n||this.denominator<0n)throw Error(`Negative values in Epoch to Num conversion`);if(this.integer>=x(`0x1000000`)||this.numerator>=x(`0x10000`)||this.denominator>=x(`0x10000`))throw Error(`Integer must be < 2^24, numerator and denominator must be < 2^16`);return this.integer+(this.numerator<<x(24))+(this.denominator<<x(40))}toPackedHex(){return S(this.toNum())}static fromNum(e){let t=x(e);return new P(t&x(`0xffffff`),t>>x(24)&x(`0xffff`),t>>x(40)&x(`0xffff`))}static from(e){return e instanceof P?e:Array.isArray(e)?new P(x(e[0]),x(e[1]),x(e[2])):typeof e==`object`?new P(x(e.integer),x(e.numerator),x(e.denominator)):P.fromNum(e)}clone(){return P.from([this.integer,this.numerator,this.denominator])}static get Genesis(){return P.from([b,b,b])}static get OneNervosDaoCycle(){return P.from([x(180),b,x(1)])}compare(e){if(this===e)return 0;let t=this.normalizeBase(),n=P.from(e).normalizeBase(),r=(t.integer*t.denominator+t.numerator)*n.denominator,i=(n.integer*n.denominator+n.numerator)*t.denominator;return r>i?1:r<i?-1:0}lt(e){return this.compare(e)<0}le(e){return this.compare(e)<=0}eq(e){return this.compare(e)===0}ge(e){return this.compare(e)>=0}gt(e){return this.compare(e)>0}add(e){let t=this.normalizeBase(),n=P.from(e).normalizeBase(),r=t.integer+n.integer,i,a;return t.denominator===n.denominator?(i=t.numerator+n.numerator,a=t.denominator):(i=t.numerator*n.denominator+n.numerator*t.denominator,a=t.denominator*n.denominator),P.from([r,i,a]).normalizeCanonical()}sub(e){let{integer:t,numerator:n,denominator:r}=P.from(e);return this.add(P.from([-t,-n,r]))}toUnix(e,t=x(144e5)){let{integer:n,numerator:r,denominator:i}=this.sub(e.epoch);return e.timestamp+t*n+t*r/i}};F=P=N([v(it({padding:be(1),denominator:w(2),numerator:w(2),integer:w(3)}))],F);function tn(e){return F.from(e)}function nn(e){return F.fromNum(e)}function rn(e){return F.from(e).toPackedHex()}const an=x(1e7),on=x(1e3);function I([e,t]){return[x(e),x(t)]}var sn=class e{constructor(e,t){this.cellDep=e,this.type=t}static from(t){return t instanceof e?t:new e(Z.from(t.cellDep),M(B.from,t.type))}},cn=class e{constructor(e,t,n){this.codeHash=e,this.hashType=t,this.cellDeps=n}static from(t){return t instanceof e?t:new e(g(t.codeHash),En(t.hashType),t.cellDeps.map(e=>sn.from(e)))}},ln=class e{constructor(e,t,n,r,i,a,o){this.transaction=e,this.status=t,this.cycles=n,this.blockHash=r,this.blockNumber=i,this.txIndex=a,this.reason=o}static from(t){return t instanceof e?t:new e($.from(t.transaction),t.status,M(x,t.cycles),M(g,t.blockHash),M(x,t.blockNumber),M(x,t.txIndex),t.reason)}clone(){return new e(this.transaction.clone(),this.status,this.cycles,this.blockHash,this.blockNumber,this.txIndex,this.reason)}},un=class e{constructor(e,t,n,r,i,a,o){this.script=e,this.scriptLenRange=t,this.outputData=n,this.outputDataSearchMode=r,this.outputDataLenRange=i,this.outputCapacityRange=a,this.blockRange=o}static from(t){return t instanceof e?t:new e(M(B.from,t.script),M(I,t.scriptLenRange),M(g,t.outputData),t.outputDataSearchMode??void 0,M(I,t.outputDataLenRange),M(I,t.outputCapacityRange),M(I,t.blockRange))}},dn=class e{constructor(e,t,n,r,i){this.script=e,this.scriptType=t,this.scriptSearchMode=n,this.filter=r,this.withData=i}static from(t){return t instanceof e?t:new e(B.from(t.script),t.scriptType,t.scriptSearchMode,M(un.from,t.filter),t.withData??void 0)}},fn=class e{constructor(e,t,n,r,i){this.script=e,this.scriptType=t,this.scriptSearchMode=n,this.filter=r,this.groupByTransaction=i}static from(t){return t instanceof e?t:new e(B.from(t.script),t.scriptType,t.scriptSearchMode,M(un.from,t.filter),t.groupByTransaction??void 0)}},L=class e{constructor(e,t,n,r,i,a,o,s,c,l,u,d){this.compactTarget=e,this.dao=t,this.epoch=n,this.extraHash=r,this.hash=i,this.nonce=a,this.number=o,this.parentHash=s,this.proposalsHash=c,this.timestamp=l,this.transactionsRoot=u,this.version=d}static from(t){return t instanceof e?t:new e(x(t.compactTarget),{c:x(t.dao.c),ar:x(t.dao.ar),s:x(t.dao.s),u:x(t.dao.u)},F.from(t.epoch),g(t.extraHash),g(t.hash),x(t.nonce),x(t.number),g(t.parentHash),g(t.proposalsHash),x(t.timestamp),g(t.transactionsRoot),x(t.version))}},pn=class e{constructor(e,t){this.header=e,this.proposals=t}static from(t){return t instanceof e?t:new e(L.from(t.header),t.proposals.map(g))}},mn=class e{constructor(e,t,n,r){this.header=e,this.proposals=t,this.transactions=n,this.uncles=r}static from(t){return t instanceof e?t:new e(L.from(t.header),t.proposals.map(g),t.transactions.map($.from),t.uncles.map(pn.from))}},R=class extends Error{constructor(e){super(`Client request error ${e.message}`),this.code=e.code,this.data=e.data}},hn=class extends R{constructor(e,t){super(e),this.outPoint=K.from(t)}},gn=class extends R{constructor(e,t,n,r,i,a){super(e),this.source=t,this.errorCode=r,this.scriptHashType=i,this.sourceIndex=x(n),this.scriptCodeHash=g(a)}},_n=class extends R{constructor(e,t){super(e),this.txHash=g(t)}},vn=class extends R{constructor(e,t,n){super(e),this.currentFee=x(t),this.leastFee=x(n)}},yn=class extends R{constructor(e){let t=x(e).toString();super({message:`Wait transaction timeout ${t}ms`,data:JSON.stringify({timeout:t})})}},bn=class extends R{constructor(e,t){let n=x(e).toString(),r=x(t).toString();super({message:`Max fee rate exceeded limit ${n}, actual ${r}. Developer might forgot to complete transaction fee before sending. See https://api.ckbccc.com/classes/_ckb_ccc_core.index.ccc.Transaction.html#completeFeeBy.`,data:JSON.stringify({limit:n,actual:r})})}};let xn=function(e){return e.NervosDao=`NervosDao`,e.Secp256k1Blake160=`Secp256k1Blake160`,e.Secp256k1Multisig=`Secp256k1Multisig`,e.Secp256k1MultisigV2Beta=`Secp256k1MultisigV2Beta`,e.Secp256k1MultisigV2=`Secp256k1MultisigV2`,e.AnyoneCanPay=`AnyoneCanPay`,e.TypeId=`TypeId`,e.SUdt=`SUdt`,e.XUdt=`XUdt`,e.JoyId=`JoyId`,e.COTA=`COTA`,e.PWLock=`PWLock`,e.OmniLock=`OmniLock`,e.NostrLock=`NostrLock`,e.UniqueType=`UniqueType`,e.DidCkb=`DidCkb`,e.AlwaysSuccess=`AlwaysSuccess`,e.InputTypeProxyLock=`InputTypeProxyLock`,e.OutputTypeProxyLock=`OutputTypeProxyLock`,e.LockProxyLock=`LockProxyLock`,e.SingleUseLock=`SingleUseLock`,e.TypeBurnLock=`TypeBurnLock`,e.EasyToDiscoverType=`EasyToDiscoverType`,e.TimeLock=`TimeLock`,e}({});const Sn={type:1,data:0,data1:2,data2:4},Cn={1:`type`,0:`data`,2:`data1`,4:`data2`},wn=Object.keys(Sn);var z;const Tn=h.from({byteLength:1,encode:Dn,decode:On});function En(e){let t=(()=>{if(typeof e==`number`)return Cn[e];if(typeof e==`bigint`)return Cn[Number(e)];if(wn.includes(e))return e})();if(t===void 0)throw Error(`Invalid hash type ${e}`);return t}function Dn(e){return m([Sn[En(e)]])}function On(e){return Cn[m(e)[0]]}let B=z=class extends _.Base(){constructor(e,t,n){super(),this.codeHash=e,this.hashType=t,this.args=n}get occupiedSize(){return 33+m(this.args).length}clone(){return z.from({codeHash:this.codeHash,hashType:this.hashType,args:this.args})}eq(e){return e=z.from(e),this.args===e.args&&this.codeHash===e.codeHash&&this.hashType===e.hashType}static from(e){return e instanceof z?e:new z(g(e.codeHash),En(e.hashType),g(e.args))}static async fromKnownScript(e,t,n){let r=await e.getKnownScript(t);return z.from({codeHash:r.codeHash,hashType:r.hashType,args:g(n)})}};B=z=N([v(j({codeHash:qe,hashType:Tn,args:bt}))],B);const kn=A(B),An=k(B),jn={code:0,depGroup:1},Mn={0:`code`,1:`depGroup`},Nn=Object.keys(jn);var Pn=class extends Error{constructor(e,t){let n=x(e),r=t?.isForChange??!1;super(`Insufficient CKB, need ${de(n)} extra CKB${r?` for the change cell`:``}`),this.amount=n,this.isForChange=r}},Fn=class extends Error{constructor(e,t){let n=x(e),r=B.from(t);super(`Insufficient coin, need ${n} extra coin`),this.amount=n,this.type=r}},V,H,U,In,Ln,Rn,W;const zn=2n**32n-2n;function G(e){try{let t=x(e);return t<0n||t>zn?void 0:Number(t)}catch{return}}function Bn(e){let t=G(e);if(t===void 0)throw Error(`Index ${e} must be a valid array index between 0 and ${zn}`);return t}const Vn=h.from({byteLength:1,encode:Un,decode:Wn});function Hn(e){let t=typeof e==`number`?Mn[e]:typeof e==`bigint`?Mn[Number(e)]:e;if(t===void 0)throw Error(`Invalid dep type ${e}`);return t}function Un(e){return m([jn[Hn(e)]])}function Wn(e){return Mn[m(e)[0]]}let K=V=class extends _.Base(){constructor(e,t){super(),this.txHash=e,this.index=t}static from(e){return e instanceof V?e:new V(g(e.txHash),x(e.index))}clone(){return V.from({txHash:this.txHash,index:this.index})}eq(e){return e=V.from(e),this.txHash===e.txHash&&this.index===e.index}};K=V=N([v(it({txHash:qe,index:ke}))],K);let q=H=class extends _.Base(){constructor(e,t,n){super(),this.capacity=e,this.lock=t,this.type=n}get occupiedSize(){return 8+this.lock.occupiedSize+(this.type?.occupiedSize??0)}static from(e,t){if(e instanceof H){if(t==null)return e;let n=y(e.occupiedSize+m(t).length);return e.capacity>=n?e:new H(n,e.lock,e.type)}let n=new H(x(e.capacity??0),B.from(e.lock),M(B.from,e.type));return t!=null&&(n.capacity=me(n.capacity,y(n.occupiedSize+m(t).length))),n}clone(){return H.from({capacity:this.capacity,lock:this.lock.clone(),type:this.type?.clone()})}};q=H=N([v(j({capacity:Me,lock:B,type:kn}))],q);const Gn=k(q);var J=class e{constructor(e,t,n){this.cellOutput=e,this.outputData=t,this.outPoint=n}static from(t){if(t instanceof e){let n=q.from(t.cellOutput,t.outputData);return n===t.cellOutput?t:new e(n,t.outputData,t.outPoint)}let n=g(t.outputData??`0x`);return new e(q.from(t.cellOutput,n),n,M(K.from,t.outPoint??t.previousOutput))}get occupiedSize(){return this.cellOutput.occupiedSize+m(this.outputData).byteLength}get capacityFree(){return this.cellOutput.capacity-y(this.occupiedSize)}async isNervosDao(e,t){let{type:n}=this.cellOutput,r=await e.getKnownScript(`NervosDao`);if(!n||n.codeHash!==r.codeHash||n.hashType!==r.hashType)return!1;let i=x(this.outputData)!==b;return!t||t===`deposited`&&!i||t===`withdrew`&&i}clone(){return e.from({cellOutput:this.cellOutput.clone(),outputData:this.outputData,outPoint:this.outPoint?.clone()})}},Kn=class e extends J{constructor(e,t,n){super(t,n,e),this.outPoint=e}static from(t){if(t instanceof e){let n=q.from(t.cellOutput,t.outputData);return n===t.cellOutput?t:new e(t.outPoint,n,t.outputData)}return new e(K.from(t.outPoint??t.previousOutput),q.from(t.cellOutput,t.outputData),g(t.outputData??`0x`))}async getDaoProfit(e){if(!await this.isNervosDao(e,`withdrew`))return b;let{depositHeader:t,withdrawHeader:n}=await this.getNervosDaoInfo(e);if(!n||!t)throw Error(`Unable to get headers of a Nervos DAO cell ${this.outPoint.txHash}:${this.outPoint.index.toString()}`);return Qn(this.capacityFree,t,n)}async getNervosDaoInfo(e){if(!await this.isNervosDao(e))return{};if(x(this.outputData)===0n){let t=await e.getCellWithHeader(this.outPoint);if(!t?.header)throw Error(`Unable to get header of a Nervos DAO deposited cell ${this.outPoint.txHash}:${this.outPoint.index.toString()}`);return{depositHeader:t.header}}let[t,n]=await Promise.all([e.getHeaderByNumber(ve(this.outputData)),e.getCellWithHeader(this.outPoint)]);if(!n?.header||!t)throw Error(`Unable to get headers of a Nervos DAO withdrew cell ${this.outPoint.txHash}:${this.outPoint.index.toString()}`);return{depositHeader:t,withdrawHeader:n.header}}clone(){return e.from({outPoint:this.outPoint.clone(),cellOutput:this.cellOutput.clone(),outputData:this.outputData})}};let Y=U=class extends _.Base(){constructor(e,t,n){super(),this.relative=e,this.metric=t,this.value=n}clone(){return U.from({relative:this.relative,metric:this.metric,value:this.value})}static from(e){return e instanceof U?e:typeof e==`object`&&`relative`in e?new U(e.relative,e.metric,x(e.value)):U.fromNum(e)}toNum(){return this.value|(this.relative===`absolute`?b:x(`0x8000000000000000`))|{blockNumber:x(`0x0000000000000000`),epoch:x(`0x2000000000000000`),timestamp:x(`0x4000000000000000`)}[this.metric]}static fromNum(e){let t=x(e),n=t>>x(63)===0n?`absolute`:`relative`,r=[`blockNumber`,`epoch`,`timestamp`][Number(t>>x(61)&x(3))],i=t&x(`0x00ffffffffffffff`);return new U(n,r,i)}};Y=U=N([v(Me.mapIn(e=>Y.from(e).toNum()))],Y);let X=In=class extends _.Base(){constructor(e,t,n,r){super(),this.previousOutput=e,this.since=t,this.cellOutput=n,this.outputData=r}static from(e){return e instanceof In?e:new In(K.from(`previousOutput`in e?e.previousOutput:e.outPoint),Y.from(e.since??0).toNum(),M(q.from,e.cellOutput),M(g,e.outputData))}async getCell(e){if(await this.completeExtraInfos(e),!this.cellOutput||!this.outputData)throw Error(`Unable to complete input`);return Kn.from({outPoint:this.previousOutput,cellOutput:this.cellOutput,outputData:this.outputData})}async completeExtraInfos(e){if(this.cellOutput&&this.outputData)return;let t=await e.getCell(this.previousOutput);t&&(this.cellOutput=t.cellOutput,this.outputData=t.outputData)}async getExtraCapacity(e){return(await this.getCell(e)).getDaoProfit(e)}clone(){return In.from({previousOutput:this.previousOutput.clone(),since:this.since,cellOutput:this.cellOutput?.clone(),outputData:this.outputData})}};X=In=N([v(it({since:Y,previousOutput:K}).mapIn(e=>X.from(e)))],X);const qn=k(X);let Z=Ln=class extends _.Base(){constructor(e,t){super(),this.outPoint=e,this.depType=t}static from(e){return e instanceof Ln?e:new Ln(K.from(e.outPoint),Hn(e.depType))}clone(){return Ln.from({outPoint:this.outPoint.clone(),depType:this.depType})}};Z=Ln=N([v(it({outPoint:K,depType:Vn}))],Z);const Jn=k(Z);let Q=Rn=class extends _.Base(){constructor(e,t,n){super(),this.lock=e,this.inputType=t,this.outputType=n}static from(e){return e instanceof Rn?e:new Rn(M(g,e.lock),M(g,e.inputType),M(g,e.outputType))}};Q=Rn=N([v(j({lock:xt,inputType:xt,outputType:xt}))],Q);function Yn(e){let t=m(e).subarray(0,16);return t.length===0?b:ve(t)}const Xn=j({version:ke,cellDeps:Jn,headerDeps:Pt,inputs:qn,outputs:Gn,outputsData:St});let $=W=class extends _.Base(){constructor(e,t,n,r,i,a,o){super(),this.version=e,this.cellDeps=t,this.headerDeps=n,this.inputs=r,this.outputs=i,this.outputsData=a,this.witnesses=o}static default(){return W.from({})}copy(e){if(e===this)return;let t=W.from(e);this.version=t.version,this.cellDeps=t.cellDeps,this.headerDeps=t.headerDeps,this.inputs=t.inputs,this.outputs=t.outputs,this.outputsData=t.outputsData,this.witnesses=t.witnesses}clone(){return W.from({version:this.version,cellDeps:this.cellDeps.map(e=>e.clone()),headerDeps:this.headerDeps.map(e=>e),inputs:this.inputs.map(e=>e.clone()),outputs:this.outputs.map(e=>e.clone()),outputsData:this.outputsData.map(e=>e),witnesses:this.witnesses.map(e=>e)})}static from(e){if(e instanceof W){let t=e.outputs.map((t,n)=>q.from(t,e.outputsData[n]??`0x`));return t.every((t,n)=>t===e.outputs[n])?e:new W(e.version,Array.from(e.cellDeps),Array.from(e.headerDeps),Array.from(e.inputs),t,Array.from(e.outputsData),Array.from(e.witnesses))}let t=e.outputs?.map((t,n)=>q.from(t,e.outputsData?.[n]??[]))??[],n=t.map((t,n)=>g(e.outputsData?.[n]??`0x`));return e.outputsData!=null&&n.length<e.outputsData.length&&n.push(...e.outputsData.slice(n.length).map(e=>g(e))),new W(x(e.version??0),e.cellDeps?.map(e=>Z.from(e))??[],e.headerDeps?.map(g)??[],e.inputs?.map(e=>X.from(e))??[],t,n,e.witnesses?.map(g)??[])}static fromLumosSkeleton(e){return W.from({version:0n,cellDeps:e.cellDeps.toArray(),headerDeps:e.headerDeps.toArray(),inputs:e.inputs.toArray().map((t,n)=>{if(!t.outPoint)throw Error(`outPoint is required in input`);return X.from({previousOutput:t.outPoint,since:e.inputSinces.get(n,`0x0`),cellOutput:t.cellOutput,outputData:t.data})}),outputs:e.outputs.toArray().map(e=>e.cellOutput),outputsData:e.outputs.toArray().map(e=>e.data),witnesses:e.witnesses.toArray()})}stringify(){return JSON.stringify(this,(e,t)=>typeof t==`bigint`?S(t):t)}rawToBytes(){return Xn.encode(this)}hash(){return le(this.rawToBytes())}hashFull(){return le(this.toBytes())}static hashWitnessToHasher(e,t){let n=m(g(e));t.update(he(n.length,8)),t.update(n)}async getSignHashInfo(e,t,n=new ce){let r=B.from(e),i=-1;n.update(this.hash());for(let e=0;e<this.witnesses.length;e+=1){let a=this.inputs[e];if(a){let{cellOutput:n}=await a.getCell(t);if(!r.eq(n.lock))continue;i===-1&&(i=e)}if(i===-1)return;W.hashWitnessToHasher(this.witnesses[e],n)}if(i!==-1)return{message:n.digest(),position:i}}async findInputIndexByLockId(e,t){let n=B.from({...e,args:`0x`});for(let e=0;e<this.inputs.length;e+=1){let{cellOutput:r}=await this.inputs[e].getCell(t);if(n.codeHash===r.lock.codeHash&&n.hashType===r.lock.hashType)return e}}async findInputIndexByLock(e,t){let n=B.from(e);for(let e=0;e<this.inputs.length;e+=1){let{cellOutput:r}=await this.inputs[e].getCell(t);if(n.eq(r.lock))return e}}async findLastInputIndexByLock(e,t){let n=B.from(e);for(let e=this.inputs.length-1;e>=0;--e){let{cellOutput:r}=await this.inputs[e].getCell(t);if(n.eq(r.lock))return e}}addCellDeps(...e){e.flat().forEach(e=>{let t=Z.from(e);this.cellDeps.some(e=>e.eq(t))||this.cellDeps.push(t)})}addCellDepsAtStart(...e){e.flat().forEach(e=>{let t=Z.from(e);this.cellDeps.some(e=>e.eq(t))||this.cellDeps.unshift(t)})}async addCellDepInfos(e,...t){this.addCellDeps(await e.getCellDeps(...t))}async addCellDepsOfKnownScripts(e,...t){await Promise.all(t.flat().map(async t=>this.addCellDepInfos(e,(await e.getKnownScript(t)).cellDeps)))}setOutputDataAt(e,t){this.setOutputData(e,t)}setOutputData(e,t){let n=Bn(e);if(n>=this.outputs.length)throw Error(`Index ${e} is out of bounds for outputs of length ${this.outputs.length}`);this.outputsData.length<n&&this.outputsData.push(...Array.from(Array(n-this.outputsData.length),()=>`0x`));let r=g(t);this.outputs[n]=q.from(this.outputs[n],r),this.outputsData[n]=r}getOutputData(e){let t=G(e);return t!==void 0&&t<this.outputs.length?this.outputsData[t]??`0x`:void 0}getInput(e){let t=G(e);return t===void 0?void 0:this.inputs[t]}addInput(e){return this.witnesses.length>this.inputs.length&&this.witnesses.splice(this.inputs.length,0,`0x`),this.inputs.push(X.from(e))}getOutput(e){let t=G(e);if(!(t===void 0||t>=this.outputs.length))return J.from({cellOutput:this.outputs[t],outputData:this.outputsData[t]??`0x`})}get outputCells(){let{outputs:e,outputsData:t}=this;function*n(){for(let n=0;n<e.length;n++)yield J.from({cellOutput:e[n],outputData:t[n]??`0x`})}return n()}addOutput(e,t){let n=`cellOutput`in e?J.from(e):J.from({cellOutput:e,outputData:t}),r=this.outputs.push(n.cellOutput);return this.setOutputData(r-1,n.outputData),r}setOutput(e,t,n){let r=Bn(e);if(r>this.outputs.length)throw Error(`Index ${e} is out of bounds for outputs of length ${this.outputs.length}`);let i=`cellOutput`in t?J.from(t):J.from({cellOutput:t,outputData:n});r===this.outputs.length?this.addOutput(i):(this.outputs[r]=i.cellOutput,this.setOutputData(r,i.outputData))}setInput(e,t){let n=Bn(e);if(n>this.inputs.length)throw Error(`Index ${e} is out of bounds for inputs of length ${this.inputs.length}`);n===this.inputs.length?this.addInput(t):this.inputs[n]=X.from(t)}getWitness(e){let t=G(e);return t===void 0?void 0:this.witnesses[t]}getWitnessArgs(e){try{return this.getWitnessArgsUnsafe(e)}catch{return}}getWitnessArgsUnsafe(e){let t=this.getWitness(e);return t&&t!==`0x`?Q.fromBytes(t):void 0}setWitnessArgs(e,t){this.setWitness(e,Q.from(t).toBytes())}setWitness(e,t){let n=Bn(e);this.witnesses.length<n&&this.witnesses.push(...Array.from(Array(n-this.witnesses.length),()=>`0x`)),this.witnesses[n]=g(t)}getWitnessArgsAt(e){return this.getWitnessArgs(e)}getWitnessArgsAtUnsafe(e){return this.getWitnessArgsUnsafe(e)}setWitnessArgsAt(e,t){this.setWitnessArgs(e,t)}setWitnessAt(e,t){this.setWitness(e,t)}async prepareSighashAllWitness(e,t,n){let r=await this.findInputIndexByLock(e,n);if(r===void 0)return;let i=this.getWitnessArgs(r)??Q.from({});i.lock=g(Array.from(Array(t),()=>0)),this.setWitnessArgs(r,i)}async getInputsCapacityExtra(e){return Gt(this.inputs,async(t,n)=>t+await n.getExtraCapacity(e),b)}async getInputsCapacity(e){return await Gt(this.inputs,async(t,n)=>{let{cellOutput:{capacity:r}}=await n.getCell(e);return t+r},b)+await this.getInputsCapacityExtra(e)}getOutputsCapacity(){return this.outputs.reduce((e,{capacity:t})=>e+t,b)}async getInputsUdtBalance(e,t){return Gt(this.inputs,async(n,r)=>{let{cellOutput:i,outputData:a}=await r.getCell(e);if(i.type?.eq(t))return n+Yn(a)},b)}getOutputsUdtBalance(e){return this.outputs.reduce((t,n,r)=>n.type?.eq(e)?t+Yn(this.outputsData[r]):t,b)}async completeInputs(e,t,n,r){let i=[],a=r,o=!1;for await(let r of e.findCells(t,!0)){if(this.inputs.some(({previousOutput:e})=>e.eq(r.outPoint)))continue;let e=i.push(r),t=await Promise.resolve(n(a,r,e-1,i));if(t===void 0){o=!0;break}a=t}return i.forEach(e=>this.addInput(e)),o?{addedCount:i.length}:{addedCount:i.length,accumulated:a}}async completeInputsByCapacity(e,t,n){let r=this.getOutputsCapacity()+x(t??0),i=await this.getInputsCapacity(e.client);if(i>=r)return 0;let{addedCount:a,accumulated:o}=await this.completeInputs(e,n??{scriptLenRange:[0,1],outputDataLenRange:[0,1]},(e,{cellOutput:{capacity:t}})=>{let n=e+t;return n>=r?void 0:n},i);if(o===void 0)return a;throw new Pn(r-o)}async completeInputsAll(e,t){let{addedCount:n}=await this.completeInputs(e,t??{scriptLenRange:[0,1],outputDataLenRange:[0,1]},(e,{cellOutput:{capacity:t}})=>e+t,b);return n}async completeInputsByUdt(e,t,n){let r=B.from(t).occupiedSize,i=this.getOutputsUdtBalance(t)+x(n??0);if(i===0n)return 0;let[a,o]=await Gt(this.inputs,async([n,r],i)=>{let{cellOutput:a,outputData:o}=await i.getCell(e.client);if(a.type?.eq(t))return[n+Yn(o),r+1]},[b,0]);if(a===i||a>=i&&o>=2)return 0;let{addedCount:s,accumulated:c}=await this.completeInputs(e,{script:t,scriptLenRange:[r,r+1],outputDataLenRange:[16,x(`0xffffffff`)]},(e,{outputData:t},n,r)=>{let a=e+Yn(t);return a===i||a>=i&&o+r.length>=2?void 0:a},a);if(c===void 0||c>=i)return s;throw new Fn(i-c,t)}async completeInputsAddOne(e,t){let{addedCount:n,accumulated:r}=await this.completeInputs(e,t??{scriptLenRange:[0,1],outputDataLenRange:[0,1]},()=>void 0,!0);if(r===void 0)return n;throw Error(`Insufficient CKB, need at least one new cell`)}async completeInputsAtLeastOne(e,t){return this.inputs.length>0?0:this.completeInputsAddOne(e,t)}async getFee(e){return await this.getInputsCapacity(e)-this.getOutputsCapacity()}async getFeeRate(e){return await this.getFee(e)*x(1e3)/x(this.toBytes().length+4)}estimateFee(e){return(x(this.toBytes().length+4)*x(e)+x(999))/x(1e3)}async completeFee(e,t,n,r,i){let a=n??await e.client.getFeeRate(i?.feeRateBlockRange,i);await this.getInputsCapacity(e.client);let o=b,s=b,c=0,l=this;for(;;){c+=await(async()=>{if(!(i?.shouldAddInputs??!0))return 0;try{return await l.completeInputsByCapacity(e,o+s,r)}catch(e){throw e instanceof Pn&&s!==0n?new Pn(e.amount,{isForChange:!0}):e}})(),l=await e.prepareTransaction(l);let n=await l.getFee(e.client);if(n<o+s)throw new Pn(o+s-n,{isForChange:s!==b});if(o===0n&&(o=l.estimateFee(a)),n===o)return this.copy(l),[c,!1];let u=l.clone(),d=x(await Promise.resolve(t(u,n-o)));if(d>0n){s=d;continue}let f=await u.getFee(e.client);if(f<o&&n<o){s=b;continue}if(f!==o)throw Error(`The change function doesn't use all available capacity`);u=await e.prepareTransaction(u);let p=u.estimateFee(a);if(o>p)throw Error(`The change function removed existed transaction data`);if(o===p)return this.copy(u),[c,!0];o=p}}completeFeeChangeToLock(e,t,n,r,i){let a=B.from(t);return this.completeFee(e,(e,t)=>{let n=q.from({capacity:0,lock:a}),r=y(n.occupiedSize);return t<r?r:(n.capacity=t,e.addOutput(n),0)},n,r,i)}async completeFeeBy(e,t,n,r){let{script:i}=await e.getRecommendedAddressObj();return this.completeFeeChangeToLock(e,i,t,n,r)}completeFeeChangeToOutput(e,t,n,r,i){let a=G(t);if(a===void 0||!this.outputs[a])throw Error(`Non-existed output to change`);return this.completeFee(e,(e,t)=>(e.setOutput(a,{...e.outputs[a],capacity:e.outputs[a].capacity+t},e.outputsData[a]),0),n,r,i)}};$=W=N([v(j({raw:Xn,witnesses:St}).mapIn(e=>{let t=$.from(e);return{raw:t,witnesses:t.witnesses}}).mapOut(e=>$.from({...e.raw,witnesses:e.witnesses})))],$);async function Zn(e,t){if(e.outputs.length<=64)return!1;let{codeHash:n,hashType:r}=await t.getKnownScript(`NervosDao`),i=B.from({codeHash:n,hashType:r,args:`0x`});if(e.outputs.some(e=>e.type?.eq(i)))return!0;for(let n of e.inputs)if(await n.completeExtraInfos(t),n.cellOutput?.type?.eq(i))return!0;return!1}function Qn(e,t,n){let r=L.from(t),i=L.from(n),a=x(e);return a*i.dao.ar/r.dao.ar-a}function $n(e,t){let n=L.from(e).epoch.normalizeBase(),r=L.from(t).epoch.normalizeBase(),i=x(180),a=(r.integer-n.integer)%i,o=r.integer;return(a!==0n||n.numerator*r.denominator<r.numerator*n.denominator)&&(o+=-a+i),F.from([o,n.numerator,n.denominator])}const er=x(5e5);function tr(e,t){let n=t.slice(2);if(n.length===0)return!0;let r=e.indexOf(n,2);for(;r!==-1;){if(r%2==0)return!0;r=e.indexOf(n,r+1)}return!1}function nr(e,t,n){if(t==null)return!0;let r=g(e),i=g(t);return!(n===`exact`&&r!==i||n===`prefix`&&!r.startsWith(i)||n===`partial`&&!tr(r,i))}function rr(e,t,n){if(!t)return!0;if(!e)return!1;let r=B.from(e),i=B.from(t);return r.codeHash!==i.codeHash||r.hashType!==i.hashType?!1:nr(r.args,i?.args,n)}function ir(e,t){if(!t)return!0;let n=x(e),[r,i]=I(t);return r<=n&&n<i}function ar(e,t){return!t||ir(e?m(B.from(e).args).length+33:0,t)}function or(e,t){let n=dn.from(e),r=Kn.from(t);return!(n.scriptType===`lock`&&(!rr(r.cellOutput.lock,n.script,n.scriptSearchMode)||!rr(r.cellOutput.type,n.filter?.script,`prefix`)||!ar(r.cellOutput.type,n.filter?.scriptLenRange))||n.scriptType===`type`&&(!rr(r.cellOutput.type,n.script,n.scriptSearchMode)||!rr(r.cellOutput.lock,n.filter?.script,`prefix`)||!ar(r.cellOutput.lock,n.filter?.scriptLenRange))||!nr(r.outputData,n.filter?.outputData,n.filter?.outputDataSearchMode??`prefix`)||!ir(m(r.outputData).length,n.filter?.outputDataLenRange)||!ir(r.cellOutput.capacity,n.filter?.outputCapacityRange))}var sr=class extends Map{constructor(e){if(super(),this.capacity=e,this.lru=new Set,!Number.isInteger(e)||e<1)throw Error(`Capacity must be a positive integer`)}get(e){if(super.has(e))return this.lru.delete(e),this.lru.add(e),super.get(e)}set(e,t){if(super.set(e,t),this.lru.delete(e),this.lru.add(e),this.lru.size>this.capacity){let e=this.lru.keys().next().value;this.delete(e)}return this}delete(e){return super.delete(e)?(this.lru.delete(e),!0):!1}clear(){super.clear(),this.lru.clear()}};const cr=Object.freeze({NervosDao:{codeHash:`0x82d76d1b75fe2fd9a27dfbaa65a039221a380d76c926f378d3f81cf3e7e13f2e`,hashType:`type`,cellDeps:[{cellDep:{outPoint:{txHash:`0xe2fb199810d49a4d8beec56718ba2593b665db9d52299a0f9e6e75416d73ff5c`,index:2},depType:`code`}}]},Secp256k1Blake160:{codeHash:`0x9bd7e06f3ecf4be0f2fcd2188b23f1b9fcc88e5d4b65a8637b17723bbda3cce8`,hashType:`type`,cellDeps:[{cellDep:{outPoint:{txHash:`0x71a7ba8fc96349fea0ed3a5c47992e3b4084b031a42264a018e0072e8172e46c`,index:0},depType:`depGroup`}}]},Secp256k1Multisig:{codeHash:`0x5c5069eb0857efc65e1bca0c07df34c31663b3622fd3876c876320fc9634e2a8`,hashType:`type`,cellDeps:[{cellDep:{outPoint:{txHash:`0x71a7ba8fc96349fea0ed3a5c47992e3b4084b031a42264a018e0072e8172e46c`,index:1},depType:`depGroup`}}]},Secp256k1MultisigV2Beta:{codeHash:`0xd1a9f877aed3f5e07cb9c52b61ab96d06f250ae6883cc7f0a2423db0976fc821`,hashType:`type`,cellDeps:[{cellDep:{outPoint:{txHash:`0x44be4f4feda80c0e41783ab10e191df3b2bb5c3731b0970c916dbec385dcdc60`,index:0},depType:`depGroup`}}]},Secp256k1MultisigV2:{codeHash:`0x36c971b8d41fbd94aabca77dc75e826729ac98447b46f91e00796155dddb0d29`,hashType:`data1`,cellDeps:[{cellDep:{outPoint:{txHash:`0x6888aa39ab30c570c2c30d9d5684d3769bf77265a7973211a3c087fe8efbf738`,index:0},depType:`depGroup`}}]},AnyoneCanPay:{codeHash:`0xd369597ff47f29fbc0d47d2e3775370d1250b85140c670e4718af712983a2354`,hashType:`type`,cellDeps:[{cellDep:{outPoint:{txHash:`0x4153a2014952d7cac45f285ce9a7c5c0c0e1b21f2d378b82ac1433cb11c25c4d`,index:0},depType:`depGroup`}}]},TypeId:{codeHash:`0x00000000000000000000000000000000000000000000000000545950455f4944`,hashType:`type`,cellDeps:[]},SUdt:{codeHash:`0x5e7a36a77e68eecc013dfa2fe6a23f3b6c344b04005808694ae6dd45eea4cfd5`,hashType:`type`,cellDeps:[{cellDep:{outPoint:{txHash:`0xc7813f6a415144643970c2e88e0bb6ca6a8edc5dd7c1022746f628284a9936d5`,index:0},depType:`code`}}]},XUdt:{codeHash:`0x50bd8d6680b8b9cf98b73f3c08faf8b2a21914311954118ad6609be6e78a1b95`,hashType:`data1`,cellDeps:[{cellDep:{outPoint:{txHash:`0xc07844ce21b38e4b071dd0e1ee3b0e27afd8d7532491327f39b786343f558ab7`,index:0},depType:`code`}}]},JoyId:{codeHash:`0xd00c84f0ec8fd441c38bc3f87a371f547190f2fcff88e642bc5bf54b9e318323`,hashType:`type`,cellDeps:[{cellDep:{outPoint:{txHash:`0x8a605a4402cadda69fa64fd25cbbd74058e3eb86a7a72aee3d25df278564d31b`,index:0},depType:`code`},type:{codeHash:`0x00000000000000000000000000000000000000000000000000545950455f4944`,hashType:`type`,args:`0x2d1f2d4d1514ccc3bb4f04f5437a5ae30d00636ee57cedd2c70ab3ea75b62adc`}},{cellDep:{outPoint:{txHash:`0x8a605a4402cadda69fa64fd25cbbd74058e3eb86a7a72aee3d25df278564d31b`,index:1},depType:`code`},type:{codeHash:`0x00000000000000000000000000000000000000000000000000545950455f4944`,hashType:`type`,args:`0xc086090432098835ec542a1b94bdd1b842c5aa1ccd1616873fe77f4a04044417`}},{cellDep:{outPoint:{txHash:`0x8a605a4402cadda69fa64fd25cbbd74058e3eb86a7a72aee3d25df278564d31b`,index:2},depType:`code`},type:{codeHash:`0x00000000000000000000000000000000000000000000000000545950455f4944`,hashType:`type`,args:`0x165b225c6fbed7e655b024384d9083de3243375f9893706f4452858ecd694e96`}},{cellDep:{outPoint:{txHash:`0x8a605a4402cadda69fa64fd25cbbd74058e3eb86a7a72aee3d25df278564d31b`,index:3},depType:`code`},type:{codeHash:`0x00000000000000000000000000000000000000000000000000545950455f4944`,hashType:`type`,args:`0xafb8408d0094ab944e6286aac750b9bb854ac0bcb66dfe5c60559744a700e70c`}},{cellDep:{outPoint:{txHash:`0x8a605a4402cadda69fa64fd25cbbd74058e3eb86a7a72aee3d25df278564d31b`,index:4},depType:`code`},type:{codeHash:`0x00000000000000000000000000000000000000000000000000545950455f4944`,hashType:`type`,args:`0x773bf0647be24b4e18ef44068fd069b9de5549c4b86be227779ceb9179598ec4`}}]},COTA:{codeHash:`0x1122a4fb54697cf2e6e3a96c9d80fd398a936559b90954c6e88eb7ba0cf652df`,hashType:`type`,cellDeps:[{cellDep:{outPoint:{txHash:`0xabaa25237554f0d6c586dc010e7e85e6870bcfd9fb8773257ecacfbe1fd738a0`,index:0},depType:`depGroup`}}]},PWLock:{codeHash:`0xbf43c3602455798c1a61a596e0d95278864c552fafe231c063b3fabf97a8febc`,hashType:`type`,cellDeps:[{cellDep:{outPoint:{txHash:`0x71a7ba8fc96349fea0ed3a5c47992e3b4084b031a42264a018e0072e8172e46c`,index:0},depType:`depGroup`}},{cellDep:{outPoint:{txHash:`0x1d60cb8f4666e039f418ea94730b1a8c5aa0bf2f7781474406387462924d15d4`,index:0},depType:`code`},type:{codeHash:`0x00000000000000000000000000000000000000000000000000545950455f4944`,hashType:`type`,args:`0x42ade2f25eb938b5dbfd3d8f07b8b07aa593d848e7ff14bdfbbea5aeb6175261`}}]},OmniLock:{codeHash:`0x9b819793a64463aed77c615d6cb226eea5487ccfc0783043a587254cda2b6f26`,hashType:`type`,cellDeps:[{cellDep:{outPoint:{txHash:`0x71a7ba8fc96349fea0ed3a5c47992e3b4084b031a42264a018e0072e8172e46c`,index:0},depType:`depGroup`}},{cellDep:{outPoint:{txHash:`0xc76edf469816aa22f416503c38d0b533d2a018e253e379f134c3985b3472c842`,index:0},depType:`code`},type:{codeHash:`0x00000000000000000000000000000000000000000000000000545950455f4944`,hashType:`type`,args:`0x855508fe0f0ca25b935b070452ecaee48f6c9f1d66cd15f046616b99e948236a`}}]},NostrLock:{codeHash:`0x641a89ad2f77721b803cd50d01351c1f308444072d5fa20088567196c0574c68`,hashType:`type`,cellDeps:[{cellDep:{outPoint:{txHash:`0x99b116dd1e4f1fa903b70112ae672c18bb34241d3d03a9ad555cd2a611be7327`,index:0},depType:`code`},type:{codeHash:`0x00000000000000000000000000000000000000000000000000545950455f4944`,hashType:`type`,args:`0xfad8cb75eb0bb01718e2336002064568bc05887af107f74ed5dd501829e192f8`}}]},UniqueType:{codeHash:`0x2c8c11c985da60b0a330c61a85507416d6382c130ba67f0c47ab071e00aec628`,hashType:`data1`,cellDeps:[{cellDep:{outPoint:{txHash:`0x67524c01c0cb5492e499c7c7e406f2f9d823e162d6b0cf432eacde0c9808c2ad`,index:0},depType:`code`}}]},DidCkb:{codeHash:`0x4a06164dc34dccade5afe3e847a97b6db743e79f5477fa3295acf02849c5984a`,hashType:`type`,cellDeps:[{cellDep:{outPoint:{txHash:`0xe2f74c56cdc610d2b9fe898a96a80118845f5278605d7f9ad535dad69ae015bf`,index:0},depType:`code`},type:{codeHash:`0x00000000000000000000000000000000000000000000000000545950455f4944`,args:`0x55573ef6d78e3ca75170ff476176732309a8b31efe94320a954ded3d75c2cb18`,hashType:`type`}}]},AlwaysSuccess:{codeHash:`0x3b521cc4b552f109d092d8cc468a8048acb53c5952dbe769d2b2f9cf6e47f7f1`,hashType:`data1`,cellDeps:[{cellDep:{outPoint:{txHash:`0x10d63a996157d32c01078058000052674ca58d15f921bec7f1dcdac2160eb66b`,index:0},depType:`code`}}]},InputTypeProxyLock:{codeHash:`0x5123908965c711b0ffd8aec642f1ede329649bda1ebdca6bd24124d3796f768a`,hashType:`data1`,cellDeps:[{cellDep:{outPoint:{txHash:`0x10d63a996157d32c01078058000052674ca58d15f921bec7f1dcdac2160eb66b`,index:1},depType:`code`}}]},OutputTypeProxyLock:{codeHash:`0x2df53b592db3ae3685b7787adcfef0332a611edb83ca3feca435809964c3aff2`,hashType:`data1`,cellDeps:[{cellDep:{outPoint:{txHash:`0x10d63a996157d32c01078058000052674ca58d15f921bec7f1dcdac2160eb66b`,index:2},depType:`code`}}]},LockProxyLock:{codeHash:`0x5d41e32e224c15f152b7e6529100ebeac83b162f5f692a5365774dad2c1a1d02`,hashType:`data1`,cellDeps:[{cellDep:{outPoint:{txHash:`0x10d63a996157d32c01078058000052674ca58d15f921bec7f1dcdac2160eb66b`,index:3},depType:`code`}}]},SingleUseLock:{codeHash:`0x8290467a512e5b9a6b816469b0edabba1f4ac474e28ffdd604c2a7c76446bbaf`,hashType:`data1`,cellDeps:[{cellDep:{outPoint:{txHash:`0x10d63a996157d32c01078058000052674ca58d15f921bec7f1dcdac2160eb66b`,index:4},depType:`code`}}]},TypeBurnLock:{codeHash:`0xff78bae0abf17d7a404c0be0f9ad9c9185b3f88dcc60403453d5ba8e1f22f53a`,hashType:`data1`,cellDeps:[{cellDep:{outPoint:{txHash:`0x10d63a996157d32c01078058000052674ca58d15f921bec7f1dcdac2160eb66b`,index:5},depType:`code`}}]},EasyToDiscoverType:{codeHash:`0xaba4430cc7110d699007095430a1faa72973edf2322ddbfd4d1d219cacf237af`,hashType:`data1`,cellDeps:[{cellDep:{outPoint:{txHash:`0xb0ed754fb27d67fd8388c97fed914fb7998eceaa01f3e6f967e498de1ba0ac9b`,index:0},depType:`code`}}]},TimeLock:{codeHash:`0x6fac4b2e89360a1e692efcddcb3a28656d8446549fb83da6d896db8b714f4451`,hashType:`data1`,cellDeps:[{cellDep:{outPoint:{txHash:`0xb0ed754fb27d67fd8388c97fed914fb7998eceaa01f3e6f967e498de1ba0ac9b`,index:1},depType:`code`}}]}});var lr=class{constructor(e,t=3e4){this.url=e,this.timeout=t}async request(e,t){let n=AbortSignal.timeout(t?.timeout??this.timeout),r=t?.signal?Rt([t.signal,n]):n;return await(await fetch(this.url,{method:`POST`,headers:{"content-type":`application/json`},body:JSON.stringify(e),signal:r})).json()}},ur=class e{constructor(e,t=3e4){this.url=e,this.timeout=t,this.ongoing=new Map,this.disposed=!1}static open(t,n=3e4){return new Wt(new e(t,n),e=>e.dispose())}request(e,t){if(this.disposed)return Promise.reject(Error(`Cannot use a disposed JsonRpcTransportWebSocket`));if(t?.signal?.aborted)return Promise.reject(t.signal.reason??Error(`Request aborted`));let[n,r]=(()=>{if(this.socket&&this.socket.readyState!==this.socket.CLOSING&&this.socket.readyState!==this.socket.CLOSED&&this.openSocket)return[this.socket,this.openSocket];let e=new l(this.url),t=({data:t})=>{let n;try{n=JSON.parse(t)}catch{return}if(typeof n!=`object`||!n||typeof n.id!=`number`&&typeof n.id!=`string`)return;let r=n.id;this.firstTimeout?.socket===e&&(this.firstTimeout=void 0);let i=this.ongoing.get(r);if(!i||i[2]!==e)return;let[a]=i;a(n)},n=()=>{this.firstTimeout?.socket===e&&(this.firstTimeout=void 0),this.ongoing.forEach(([t,n,r])=>{r===e&&n(Error(`Connection closed`))})};return e.onclose=n,e.onerror=n,e.onmessage=t,this.socket=e,this.openSocket=new Promise(t=>{e.readyState===e.OPEN?t(e):e.onopen=()=>{t(e)}}),[e,this.openSocket]})();return new Promise((i,a)=>{let o=t?.signal,s,c=[e=>{l()&&i(e)},e=>{l()&&a(e)},n],l=()=>this.ongoing.get(e.id)===c&&(this.ongoing.delete(e.id),clearTimeout(s),o?.removeEventListener(`abort`,u),!0),u=()=>{c[1](o?.reason??Error(`Request aborted`))};if(s=setTimeout(()=>{if(this.ongoing.get(e.id)===c){if(c[1](Error(`Request timeout`)),![...this.ongoing.values()].some(([,,e])=>e===n)){n.close();return}let e=this.firstTimeout;e?.socket===n?Date.now()-e.at>=1e4&&n.close():this.firstTimeout={socket:n,at:Date.now()}}},t?.timeout??this.timeout),this.ongoing.set(e.id,c),o?.addEventListener(`abort`,u,{once:!0}),o?.aborted){u();return}r.then(t=>{this.ongoing.get(e.id)===c&&(t.readyState===t.CLOSED||t.readyState===t.CLOSING?c[1](Error(`Connection closed`)):t.send(JSON.stringify(e)))}).catch(e=>{c[1](e)})})}async dispose(){this.disposed=!0;let e=this.socket;e&&e.readyState!==e.CLOSED&&await new Promise(t=>{e.addEventListener(`close`,()=>t(),{once:!0}),e.close()})}};function dr(e,t){return e.startsWith(`wss://`)||e.startsWith(`ws://`)?ur.open(e,t?.timeout):new Wt(new lr(e,t?.timeout),()=>{})}var fr=class e{static hashTypeFrom(e){return En(e)}static hashTypeTo(e){return e}static depTypeFrom(e){switch(Hn(e)){case`code`:return`code`;case`depGroup`:return`dep_group`}}static depTypeTo(e){switch(e){case`code`:return`code`;case`dep_group`:return`depGroup`}}static scriptFrom(t){let n=B.from(t);return{code_hash:n.codeHash,hash_type:e.hashTypeFrom(n.hashType),args:n.args}}static scriptTo(t){return B.from({codeHash:t.code_hash,hashType:e.hashTypeTo(t.hash_type),args:t.args})}static outPointFrom(e){let t=K.from(e);return{index:S(t.index),tx_hash:t.txHash}}static outPointTo(e){return K.from({index:e.index,txHash:e.tx_hash})}static cellInputFrom(t){let n=X.from(t);return{previous_output:e.outPointFrom(n.previousOutput),since:S(n.since)}}static cellInputTo(t){return X.from({previousOutput:e.outPointTo(t.previous_output),since:t.since})}static cellOutputFrom(t,n){let r=q.from(t,n);return{capacity:S(r.capacity),lock:e.scriptFrom(r.lock),type:M(e.scriptFrom,r.type)}}static cellOutputTo(t){return q.from({capacity:t.capacity,lock:e.scriptTo(t.lock),type:M(e.scriptTo,t.type)})}static cellDepFrom(t){return{out_point:e.outPointFrom(t.outPoint),dep_type:e.depTypeFrom(t.depType)}}static cellDepTo(t){return Z.from({outPoint:e.outPointTo(t.out_point),depType:e.depTypeTo(t.dep_type)})}static transactionFrom(t){let n=$.from(t);return{version:S(n.version),cell_deps:n.cellDeps.map(t=>e.cellDepFrom(t)),header_deps:n.headerDeps,inputs:n.inputs.map(t=>e.cellInputFrom(t)),outputs:n.outputs.map(t=>e.cellOutputFrom(t)),outputs_data:n.outputsData,witnesses:n.witnesses}}static transactionTo(t){return $.from({version:t.version,cellDeps:t.cell_deps.map(t=>e.cellDepTo(t)),headerDeps:t.header_deps,inputs:t.inputs.map(t=>e.cellInputTo(t)),outputs:t.outputs.map(t=>e.cellOutputTo(t)),outputsData:t.outputs_data,witnesses:t.witnesses})}static transactionResponseTo({cycles:t,tx_status:{status:n,block_number:r,block_hash:i,tx_index:a,reason:o},transaction:s}){if(s!=null)return ln.from({transaction:e.transactionTo(s),status:n,cycles:M(x,t),blockHash:M(g,i),blockNumber:M(x,r),txIndex:M(x,a),reason:o})}static blockHeaderTo(e){let t=m(e.dao);return{compactTarget:x(e.compact_target),dao:{c:C(t.subarray(0,8)),ar:C(t.subarray(8,16)),s:C(t.subarray(16,24)),u:C(t.subarray(24,32))},epoch:F.fromNum(e.epoch),extraHash:e.extra_hash,hash:e.hash,nonce:x(e.nonce),number:x(e.number),parentHash:e.parent_hash,proposalsHash:e.proposals_hash,timestamp:x(e.timestamp),transactionsRoot:e.transactions_root,version:x(e.version)}}static blockUncleTo(t){return{header:e.blockHeaderTo(t.header),proposals:t.proposals}}static blockTo(t){return{header:e.blockHeaderTo(t.header),proposals:t.proposals,transactions:t.transactions.map(t=>e.transactionTo(t)),uncles:t.uncles.map(t=>e.blockUncleTo(t))}}static rangeFrom([e,t]){return[S(e),S(t)]}static indexerSearchKeyFilterFrom(t){return{script:M(e.scriptFrom,t.script),script_len_range:M(e.rangeFrom,t.scriptLenRange),output_data:t.outputData,output_data_filter_mode:t.outputDataSearchMode,output_data_len_range:M(e.rangeFrom,t.outputDataLenRange),output_capacity_range:M(e.rangeFrom,t.outputCapacityRange),block_range:M(e.rangeFrom,t.blockRange)}}static indexerSearchKeyFrom(t){let n=dn.from(t);return{script:e.scriptFrom(n.script),script_type:n.scriptType,script_search_mode:n.scriptSearchMode,filter:M(e.indexerSearchKeyFilterFrom,n.filter),with_data:n.withData}}static findCellsResponseTo({last_cursor:t,objects:n}){return{lastCursor:t,cells:n.map(t=>Kn.from({outPoint:e.outPointTo(t.out_point),cellOutput:e.cellOutputTo(t.output),outputData:t.output_data??`0x`}))}}static indexerSearchKeyTransactionFrom(t){let n=fn.from(t);return{script:e.scriptFrom(n.script),script_type:n.scriptType,script_search_mode:n.scriptSearchMode,filter:M(e.indexerSearchKeyFilterFrom,n.filter),group_by_transaction:n.groupByTransaction}}static findTransactionsResponseTo({last_cursor:e,objects:t}){return t.length===0?{lastCursor:e,transactions:[]}:`io_index`in t[0]?{lastCursor:e,transactions:t.map(e=>({txHash:e.tx_hash,blockNumber:x(e.block_number),txIndex:x(e.tx_index),cellIndex:x(e.io_index),isInput:e.io_type===`input`}))}:{lastCursor:e,transactions:t.map(e=>({txHash:e.tx_hash,blockNumber:x(e.block_number),txIndex:x(e.tx_index),cells:e.cells.map(([e,t])=>({isInput:e===`input`,cellIndex:x(t)}))}))}}};const pr=Object.freeze({NervosDao:{codeHash:`0x82d76d1b75fe2fd9a27dfbaa65a039221a380d76c926f378d3f81cf3e7e13f2e`,hashType:`type`,cellDeps:[{cellDep:{outPoint:{txHash:`0x8f8c79eb6671709633fe6a46de93c0fedc9c1b8a6527a18d3983879542635c9f`,index:2},depType:`code`}}]},Secp256k1Blake160:{codeHash:`0x9bd7e06f3ecf4be0f2fcd2188b23f1b9fcc88e5d4b65a8637b17723bbda3cce8`,hashType:`type`,cellDeps:[{cellDep:{outPoint:{txHash:`0xf8de3bb47d055cdf460d93a2a6e1b05f7432f9777c8c474abf4eec1d4aee5d37`,index:0},depType:`depGroup`}}]},Secp256k1Multisig:{codeHash:`0x5c5069eb0857efc65e1bca0c07df34c31663b3622fd3876c876320fc9634e2a8`,hashType:`type`,cellDeps:[{cellDep:{outPoint:{txHash:`0xf8de3bb47d055cdf460d93a2a6e1b05f7432f9777c8c474abf4eec1d4aee5d37`,index:1},depType:`depGroup`}}]},Secp256k1MultisigV2Beta:{codeHash:`0x765b3ed6ae264b335d07e73ac332bf2c0f38f8d3340ed521cb447b4c42dd5f09`,hashType:`type`,cellDeps:[{cellDep:{outPoint:{txHash:`0xf2013f123b2cb745e3fdf5c935a3925647496f88090503eef58332a9245b4172`,index:0},depType:`depGroup`}}]},Secp256k1MultisigV2:{codeHash:`0x36c971b8d41fbd94aabca77dc75e826729ac98447b46f91e00796155dddb0d29`,hashType:`data1`,cellDeps:[{cellDep:{outPoint:{txHash:`0x2eefdeb21f3a3edf697c28a52601b4419806ed60bb427420455cc29a090b26d5`,index:0},depType:`depGroup`}}]},AnyoneCanPay:{codeHash:`0x3419a1c09eb2567f6552ee7a8ecffd64155cffe0f1796e6e61ec088d740c1356`,hashType:`type`,cellDeps:[{cellDep:{outPoint:{txHash:`0xec26b0f85ed839ece5f11c4c4e837ec359f5adc4420410f6453b1f6b60fb96a6`,index:0},depType:`depGroup`}}]},TypeId:{codeHash:`0x00000000000000000000000000000000000000000000000000545950455f4944`,hashType:`type`,cellDeps:[]},SUdt:{codeHash:`0xc5e5dcf215925f7ef4dfaf5f4b4f105bc321c02776d6e7d52a1db3fcd9d011a4`,hashType:`type`,cellDeps:[{cellDep:{outPoint:{txHash:`0xe12877ebd2c3c364dc46c5c992bcfaf4fee33fa13eebdf82c591fc9825aab769`,index:0},depType:`code`}}]},XUdt:{codeHash:`0x25c29dc317811a6f6f3985a7a9ebc4838bd388d19d0feeecf0bcd60f6c0975bb`,hashType:`type`,cellDeps:[{cellDep:{outPoint:{txHash:`0xbf6fb538763efec2a70a6a3dcb7242787087e1030c4e7d86585bc63a9d337f5f`,index:0},depType:`code`},type:{codeHash:`0x00000000000000000000000000000000000000000000000000545950455f4944`,hashType:`type`,args:`0x44ec8b96663e06cc94c8c468a4d46d7d9af69eaf418f6390c9f11bb763dda0ae`}}]},JoyId:{codeHash:`0xd23761b364210735c19c60561d213fb3beae2fd6172743719eff6920e020baac`,hashType:`type`,cellDeps:[{cellDep:{outPoint:{txHash:`0x4a596d31dc35e88fb1591debbf680b04a44b4a434e3a94453c21ea8950ffb4d9`,index:0},depType:`code`},type:{codeHash:`0x00000000000000000000000000000000000000000000000000545950455f4944`,hashType:`type`,args:`0x1c9fc299ba0570d077b4d7fb9acff1ccc0de69d369942d82678bae937c44ec30`}},{cellDep:{outPoint:{txHash:`0x4a596d31dc35e88fb1591debbf680b04a44b4a434e3a94453c21ea8950ffb4d9`,index:1},depType:`code`},type:{codeHash:`0x00000000000000000000000000000000000000000000000000545950455f4944`,hashType:`type`,args:`0x27f0d3ccdc2fcd52ae31fbacad5f86b97bc147d7093e4807cd6e3d21c1fe6841`}},{cellDep:{outPoint:{txHash:`0xf2c9dbfe7438a8c622558da8fa912d36755271ea469d3a25cb8d3373d35c8638`,index:1},depType:`code`},type:{codeHash:`0x00000000000000000000000000000000000000000000000000545950455f4944`,hashType:`type`,args:`0x0ac15fe5b2d059ec39de03f2d3159d5463abb918a1a07a9fa00d2b9c61d89ef3`}},{cellDep:{outPoint:{txHash:`0x95ecf9b41701b45d431657a67bbfa3f07ef7ceb53bf87097f3674e1a4a19ce62`,index:1},depType:`code`},type:{codeHash:`0x00000000000000000000000000000000000000000000000000545950455f4944`,hashType:`type`,args:`0xc7bafc5550ccad7cea32c27764f5df6aca4de547da65e3e67fa08477a1af7f5e`}},{cellDep:{outPoint:{txHash:`0x8b3255491f3c4dcc1cfca33d5c6bcaec5409efe4bbda243900f9580c47e0242e`,index:1},depType:`code`},type:{codeHash:`0x00000000000000000000000000000000000000000000000000545950455f4944`,hashType:`type`,args:`0x71decef9ca8725e64ec99a5521790d16b8d5daadb4989b45dd6ab51806a8c0e4`}}]},COTA:{codeHash:`0x89cd8003a0eaf8e65e0c31525b7d1d5c1becefd2ea75bb4cff87810ae37764d8`,hashType:`type`,cellDeps:[{cellDep:{outPoint:{txHash:`0x636a786001f87cb615acfcf408be0f9a1f077001f0bbc75ca54eadfe7e221713`,index:0},depType:`depGroup`}}]},PWLock:{codeHash:`0x58c5f491aba6d61678b7cf7edf4910b1f5e00ec0cde2f42e0abb4fd9aff25a63`,hashType:`type`,cellDeps:[{cellDep:{outPoint:{txHash:`0xf8de3bb47d055cdf460d93a2a6e1b05f7432f9777c8c474abf4eec1d4aee5d37`,index:0},depType:`depGroup`}},{cellDep:{outPoint:{txHash:`0x57a62003daeab9d54aa29b944fc3b451213a5ebdf2e232216a3cfed0dde61b38`,index:0},depType:`code`},type:{codeHash:`0x00000000000000000000000000000000000000000000000000545950455f4944`,hashType:`type`,args:`0xf6d90bfe3041d0fd7e01c45770241697f5f837974bd6ae1672a7ec0f9f523268`}}]},OmniLock:{codeHash:`0xf329effd1c475a2978453c8600e1eaf0bc2087ee093c3ee64cc96ec6847752cb`,hashType:`type`,cellDeps:[{cellDep:{outPoint:{txHash:`0xf8de3bb47d055cdf460d93a2a6e1b05f7432f9777c8c474abf4eec1d4aee5d37`,index:0},depType:`depGroup`}},{cellDep:{outPoint:{txHash:`0xec18bf0d857c981c3d1f4e17999b9b90c484b303378e94de1a57b0872f5d4602`,index:0},depType:`code`},type:{codeHash:`0x00000000000000000000000000000000000000000000000000545950455f4944`,hashType:`type`,args:`0x761f51fc9cd6a504c32c6ae64b3746594d1af27629b427c5ccf6c9a725a89144`}}]},NostrLock:{codeHash:`0x6ae5ee0cb887b2df5a9a18137315b9bdc55be8d52637b2de0624092d5f0c91d5`,hashType:`type`,cellDeps:[{cellDep:{outPoint:{txHash:`0xa2a434dcdbe280b9ed75bb7d6c7d68186a842456aba0fc506657dc5ed7c01d68`,index:0},depType:`code`},type:{codeHash:`0x00000000000000000000000000000000000000000000000000545950455f4944`,hashType:`type`,args:`0x8dc56c6f35f0c535e23ded1629b1f20535477a1b43e59f14617d11e32c50e0aa`}}]},UniqueType:{codeHash:`0x8e341bcfec6393dcd41e635733ff2dca00a6af546949f70c57a706c0f344df8b`,hashType:`type`,cellDeps:[{cellDep:{outPoint:{txHash:`0xff91b063c78ed06f10a1ed436122bd7d671f9a72ef5f5fa28d05252c17cf4cef`,index:0},depType:`code`},type:{codeHash:`0x00000000000000000000000000000000000000000000000000545950455f4944`,hashType:`type`,args:`0xe04976b67600fd25ac50305f77b33aee2c12e3c18e63ece9119e5b32117884b5`}}]},DidCkb:{codeHash:`0x510150477b10d6ab551a509b71265f3164e9fd4137fcb5a4322f49f03092c7c5`,hashType:`type`,cellDeps:[{cellDep:{outPoint:{txHash:`0x0e7a830e2d5ebd05cd45a55f93f94559edea0ef1237b7233f49f7facfb3d6a6c`,index:0},depType:`code`},type:{codeHash:`0x00000000000000000000000000000000000000000000000000545950455f4944`,args:`0x3c27695173b888ed44ddf36f901789014384ad6c05a9137f3db9a0779c141c35`,hashType:`type`}}]},AlwaysSuccess:{codeHash:`0x3b521cc4b552f109d092d8cc468a8048acb53c5952dbe769d2b2f9cf6e47f7f1`,hashType:`data1`,cellDeps:[{cellDep:{outPoint:{txHash:`0xb4f171c9c9caf7401f54a8e56225ae21d95032150a87a4678eac3f66a3137b93`,index:0},depType:`code`}}]},InputTypeProxyLock:{codeHash:`0x5123908965c711b0ffd8aec642f1ede329649bda1ebdca6bd24124d3796f768a`,hashType:`data1`,cellDeps:[{cellDep:{outPoint:{txHash:`0xb4f171c9c9caf7401f54a8e56225ae21d95032150a87a4678eac3f66a3137b93`,index:1},depType:`code`}}]},OutputTypeProxyLock:{codeHash:`0x2df53b592db3ae3685b7787adcfef0332a611edb83ca3feca435809964c3aff2`,hashType:`data1`,cellDeps:[{cellDep:{outPoint:{txHash:`0xb4f171c9c9caf7401f54a8e56225ae21d95032150a87a4678eac3f66a3137b93`,index:2},depType:`code`}}]},LockProxyLock:{codeHash:`0x5d41e32e224c15f152b7e6529100ebeac83b162f5f692a5365774dad2c1a1d02`,hashType:`data1`,cellDeps:[{cellDep:{outPoint:{txHash:`0xb4f171c9c9caf7401f54a8e56225ae21d95032150a87a4678eac3f66a3137b93`,index:3},depType:`code`}}]},SingleUseLock:{codeHash:`0x8290467a512e5b9a6b816469b0edabba1f4ac474e28ffdd604c2a7c76446bbaf`,hashType:`data1`,cellDeps:[{cellDep:{outPoint:{txHash:`0xb4f171c9c9caf7401f54a8e56225ae21d95032150a87a4678eac3f66a3137b93`,index:4},depType:`code`}}]},TypeBurnLock:{codeHash:`0xff78bae0abf17d7a404c0be0f9ad9c9185b3f88dcc60403453d5ba8e1f22f53a`,hashType:`data1`,cellDeps:[{cellDep:{outPoint:{txHash:`0xb4f171c9c9caf7401f54a8e56225ae21d95032150a87a4678eac3f66a3137b93`,index:5},depType:`code`}}]},EasyToDiscoverType:{codeHash:`0xaba4430cc7110d699007095430a1faa72973edf2322ddbfd4d1d219cacf237af`,hashType:`data1`,cellDeps:[{cellDep:{outPoint:{txHash:`0x1b4ffcad55ecd36ffb2715b6816b83da73851f1a24fe594f263c4f34dad90792`,index:0},depType:`code`}}]},TimeLock:{codeHash:`0x6fac4b2e89360a1e692efcddcb3a28656d8446549fb83da6d896db8b714f4451`,hashType:`data1`,cellDeps:[{cellDep:{outPoint:{txHash:`0x1b4ffcad55ecd36ffb2715b6816b83da73851f1a24fe594f263c4f34dad90792`,index:1},depType:`code`}}]}});function mr(n){try{let{words:e,prefix:r}=t.decode(n,_r),i=t.fromWords(e),a=i[0],o=i.slice(1);if(a===0)return{prefix:r,format:0,payload:o}}catch{}try{let{prefix:t,words:r}=e.decode(n,_r),i=e.fromWords(r),a=i[0],o=i.slice(1);if([2,4,1].includes(a))return{prefix:t,format:a,payload:o}}catch{}throw Error(`Unknown address format ${n}`)}async function hr(e,t,n,r){if(t===0){if(n.length<33)throw Error(`Invalid full address without enough payload ${g(n)}`);return{script:{codeHash:n.slice(0,32),hashType:On(n.slice(32,33)),args:n.slice(33)},prefix:e}}if(t===2){if(n.length<32)throw Error(`Invalid full data address without enough payload ${g(n)}`);return{script:{codeHash:n.slice(0,32),hashType:`data`,args:n.slice(32)},prefix:e}}if(t===4){if(n.length<32)throw Error(`Invalid full type address without enough payload ${g(n)}`);return{script:{codeHash:n.slice(0,32),hashType:`type`,args:n.slice(32)},prefix:e}}if(n.length!==21)throw Error(`Invalid short address without enough payload ${g(n)}`);let i=[`Secp256k1Blake160`,`Secp256k1Multisig`,`AnyoneCanPay`][n[0]];if(i===void 0)throw Error(`Invalid short address with unknown script ${g(n)}`);return{script:await B.fromKnownScript(r,i,n.slice(1)),prefix:e}}let gr=function(e){return e[e.Full=0]=`Full`,e[e.Short=1]=`Short`,e[e.FullData=2]=`FullData`,e[e.FullType=4]=`FullType`,e}({});const _r=1023;var vr=class{static infoFrom(e){return{session_id:e.sessionId,type:e.type,sign_type:e.signType,name:e.name,icon:e.icon}}static infoTo(e){return{sessionId:e.session_id,type:e.type,signType:e.sign_type,name:e.name,icon:e.icon}}static messageFrom(e){return typeof e==`string`?{type:`string`,value:e}:{type:`bytes`,value:g(e)}}static messageTo(e){if(!yr(e)||typeof e.value!=`string`)throw Error(`Invalid signer message`);if(e.type===`string`)return e.value;if(e.type===`bytes`)return m(e.value);throw Error(`Invalid signer message type`)}};function yr(e){return typeof e==`object`&&!!e}export{Sn as $,Ce as $n,St as $t,Y as A,qe as An,f as Ar,Xt as At,Pn as B,we as Bn,wt as Bt,X as C,it as Cn,ue as Cr,nn as Ct,Vn as D,He as Dn,g as Dr,en as Dt,Gn as E,k as En,ie as Er,M as Et,Hn as F,Fe as Fn,Ht as Ft,Tn as G,Oe as Gn,Dt as Gt,Nn as H,Le as Hn,Mt as Ht,Wn as I,Pe as In,Bt as It,An as J,Be as Jn,At as Jt,B as K,De as Kn,Ot as Kt,Un as L,Ne as Ln,Rt as Lt,Q as M,Ge as Mn,te as Mr,$t as Mt,$n as N,Se as Nn,m as Nr,Zt as Nt,K as O,Ue as On,h as Or,Qt as Ot,Qn as P,xe as Pn,p as Pr,Wt as Pt,wn as Q,Ae as Qn,xt as Qt,Zn as R,Ee as Rn,zt as Rt,Jn as S,A as Sn,le as Sr,tn as St,q as T,nt as Tn,re as Tr,N as Tt,jn as U,Ie as Un,Nt as Ut,Fn as V,Re as Vn,jt as Vt,Mn as W,ke as Wn,Pt as Wt,On as X,Me as Xn,Et as Xt,En as Y,ze as Yn,Tt as Yt,Dn as Z,je as Zn,bt as Zt,rr as _,at as _n,_ as _r,cn as _t,mr as a,ct as an,x as ar,pn as at,J as b,Xe as bn,se as br,I as bt,dr as c,_t as cn,ge as cr,fn as ct,cr as d,vt as dn,he as dr,_n as dt,Ft as en,be as er,Cn as et,er as f,yt as fn,S as fr,bn as ft,ir as g,st as gn,de as gr,yn as gt,nr as h,ot as hn,y as hr,gn as ht,hr as i,ht as in,_e as ir,L as it,$ as j,We as jn,d as jr,Kt as jt,Xn as k,Ke as kn,u as kr,Gt as kt,ur as l,ut as ln,me as lr,ln as lt,or as m,pt as mn,b as mr,hn as mt,_r as n,It as nn,T as nr,sn as nt,pr as o,lt as on,ve as or,dn as ot,sr as p,ft as pn,fe as pr,vn as pt,kn as q,Ve as qn,kt as qt,gr as r,mt as rn,ye as rr,mn as rt,fr as s,gt as sn,C as sr,un as st,vr as t,Lt as tn,w as tr,xn as tt,lr as u,dt as un,pe as ur,R as ut,ar as v,Qe as vn,v as vr,an as vt,qn as w,j as wn,ae as wr,rn as wt,Z as x,rt as xn,ce as xr,F as xt,Kn as y,Ze as yn,oe as yr,on as yt,Yn as z,Te as zn,Ct as zt};
2
+ //# sourceMappingURL=transformers-BHt442Nd.mjs.map