@attocash/commons-js 6.2.1 → 6.3.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.
- package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/DateTimeUnit.mjs +58 -58
- package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/Exceptions.mjs +21 -21
- package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/LocalDate.mjs +56 -56
- package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/LocalDateTime.mjs +31 -31
- package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/LocalTime.mjs +41 -41
- package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/OverloadMarker.mjs +1 -1
- package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/TimeZone.mjs +65 -65
- package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/UtcOffset.mjs +19 -19
- package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/YearMonth.mjs +22 -22
- package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/ZonedDateTime.mjs +12 -12
- package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/format/DateTimeFormat.mjs +7 -7
- package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/format/DateTimeFormatBuilder.mjs +32 -32
- package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/format/LocalDateFormat.mjs +121 -121
- package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/format/LocalDateTimeFormat.mjs +106 -106
- package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/format/LocalTimeFormat.mjs +151 -151
- package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/format/UtcOffsetFormat.mjs +130 -130
- package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/format/YearMonthFormat.mjs +74 -74
- package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/internal/OffsetInfo.mjs +29 -29
- package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/internal/Platform.mjs +22 -22
- package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/internal/RegionTimeZone.mjs +20 -20
- package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/internal/TimeZoneRules.mjs +46 -46
- package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/internal/format/Builder.mjs +7 -7
- package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/internal/format/FieldFormatDirective.mjs +49 -49
- package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/internal/format/FieldSpec.mjs +42 -42
- package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/internal/format/FormatStructure.mjs +105 -105
- package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/internal/format/Predicate.mjs +11 -11
- package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/internal/format/formatter/Formatter.mjs +29 -29
- package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/internal/format/formatter/FormatterOperation.mjs +48 -48
- package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/internal/format/parser/NumberConsumer.mjs +43 -43
- package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/internal/format/parser/ParseResult.mjs +4 -4
- package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/internal/format/parser/Parser.mjs +48 -48
- package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/internal/format/parser/ParserOperation.mjs +59 -59
- package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/internal/math.mjs +15 -15
- package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/internal/mathNative.mjs +3 -3
- package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/serializers/DateTimeUnitSerializers.mjs +100 -100
- package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/serializers/DateTimeUnitSerializers.mjs.map +1 -1
- package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/serializers/LocalDateSerializers.mjs +9 -9
- package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/serializers/LocalDateSerializers.mjs.map +1 -1
- package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/serializers/LocalDateTimeSerializers.mjs +9 -9
- package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/serializers/LocalDateTimeSerializers.mjs.map +1 -1
- package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/serializers/LocalTimeSerializers.mjs +9 -9
- package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/serializers/LocalTimeSerializers.mjs.map +1 -1
- package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/serializers/TimeZoneSerializers.mjs +28 -28
- package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/serializers/TimeZoneSerializers.mjs.map +1 -1
- package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/serializers/YearMonthSerializers.mjs +9 -9
- package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/serializers/YearMonthSerializers.mjs.map +1 -1
- package/commons-commons-core/cash/atto/commons/AccountUpdate.js.mjs +11 -11
- package/commons-commons-core/cash/atto/commons/AccountUpdate.js.mjs.map +1 -1
- package/commons-commons-core/cash/atto/commons/AttoAccount.mjs +129 -129
- package/commons-commons-core/cash/atto/commons/AttoAccount.mjs.map +1 -1
- package/commons-commons-core/cash/atto/commons/AttoAccountEntry.mjs +116 -116
- package/commons-commons-core/cash/atto/commons/AttoAccountEntry.mjs.map +1 -1
- package/commons-commons-core/cash/atto/commons/AttoAddress.export.d.mts +1 -1
- package/commons-commons-core/cash/atto/commons/AttoAddress.export.mjs +2 -0
- package/commons-commons-core/cash/atto/commons/AttoAddress.export.mjs.map +1 -1
- package/commons-commons-core/cash/atto/commons/AttoAddress.mjs +38 -34
- package/commons-commons-core/cash/atto/commons/AttoAddress.mjs.map +1 -1
- package/commons-commons-core/cash/atto/commons/AttoAlgorithm.mjs +12 -12
- package/commons-commons-core/cash/atto/commons/AttoAlgorithm.mjs.map +1 -1
- package/commons-commons-core/cash/atto/commons/AttoAmount.export.d.mts +3 -4
- package/commons-commons-core/cash/atto/commons/AttoAmount.export.mjs +4 -0
- package/commons-commons-core/cash/atto/commons/AttoAmount.export.mjs.map +1 -1
- package/commons-commons-core/cash/atto/commons/AttoAmount.mjs +62 -54
- package/commons-commons-core/cash/atto/commons/AttoAmount.mjs.map +1 -1
- package/commons-commons-core/cash/atto/commons/AttoBlock.export.d.mts +11 -11
- package/commons-commons-core/cash/atto/commons/AttoBlock.mjs +865 -857
- package/commons-commons-core/cash/atto/commons/AttoBlock.mjs.map +1 -1
- package/commons-commons-core/cash/atto/commons/AttoBufferExtensions.mjs +11 -11
- package/commons-commons-core/cash/atto/commons/AttoBufferExtensions.mjs.map +1 -1
- package/commons-commons-core/cash/atto/commons/AttoChallenge.mjs +13 -13
- package/commons-commons-core/cash/atto/commons/AttoChallenge.mjs.map +1 -1
- package/commons-commons-core/cash/atto/commons/AttoHash.mjs +14 -14
- package/commons-commons-core/cash/atto/commons/AttoHash.mjs.map +1 -1
- package/commons-commons-core/cash/atto/commons/AttoHasher.js.mjs +1 -1
- package/commons-commons-core/cash/atto/commons/AttoHasher.js.mjs.map +1 -1
- package/commons-commons-core/cash/atto/commons/AttoHeight.export.d.mts +4 -4
- package/commons-commons-core/cash/atto/commons/AttoHeight.export.mjs +5 -1
- package/commons-commons-core/cash/atto/commons/AttoHeight.export.mjs.map +1 -1
- package/commons-commons-core/cash/atto/commons/AttoHeight.mjs +37 -30
- package/commons-commons-core/cash/atto/commons/AttoHeight.mjs.map +1 -1
- package/commons-commons-core/cash/atto/commons/AttoInstant.export.d.mts +1 -1
- package/commons-commons-core/cash/atto/commons/AttoInstant.mjs +38 -38
- package/commons-commons-core/cash/atto/commons/AttoInstant.mjs.map +1 -1
- package/commons-commons-core/cash/atto/commons/AttoJob.mjs +1 -1
- package/commons-commons-core/cash/atto/commons/AttoJob.mjs.map +1 -1
- package/commons-commons-core/cash/atto/commons/AttoKeyIndex.export.d.mts +1 -1
- package/commons-commons-core/cash/atto/commons/AttoKeyIndex.mjs +4 -4
- package/commons-commons-core/cash/atto/commons/AttoKeyIndex.mjs.map +1 -1
- package/commons-commons-core/cash/atto/commons/AttoMnemonic.js.mjs.map +1 -1
- package/commons-commons-core/cash/atto/commons/AttoMnemonic.mjs +26 -26
- package/commons-commons-core/cash/atto/commons/AttoMnemonic.mjs.map +1 -1
- package/commons-commons-core/cash/atto/commons/AttoMnemonicDictionary.mjs +5 -5
- package/commons-commons-core/cash/atto/commons/AttoMnemonicDictionary.mjs.map +1 -1
- package/commons-commons-core/cash/atto/commons/AttoNetwork.export.d.mts +0 -5
- package/commons-commons-core/cash/atto/commons/AttoNetwork.mjs +17 -17
- package/commons-commons-core/cash/atto/commons/AttoNetwork.mjs.map +1 -1
- package/commons-commons-core/cash/atto/commons/AttoPrivateKey.js.mjs +8 -8
- package/commons-commons-core/cash/atto/commons/AttoPrivateKey.js.mjs.map +1 -1
- package/commons-commons-core/cash/atto/commons/AttoPrivateKey.mjs +30 -30
- package/commons-commons-core/cash/atto/commons/AttoPrivateKey.mjs.map +1 -1
- package/commons-commons-core/cash/atto/commons/AttoPublicKey.js.mjs.map +1 -1
- package/commons-commons-core/cash/atto/commons/AttoPublicKey.mjs +13 -13
- package/commons-commons-core/cash/atto/commons/AttoPublicKey.mjs.map +1 -1
- package/commons-commons-core/cash/atto/commons/AttoReceivable.mjs +96 -96
- package/commons-commons-core/cash/atto/commons/AttoReceivable.mjs.map +1 -1
- package/commons-commons-core/cash/atto/commons/AttoSeed.js.mjs +6 -6
- package/commons-commons-core/cash/atto/commons/AttoSeed.js.mjs.map +1 -1
- package/commons-commons-core/cash/atto/commons/AttoSeed.mjs +4 -4
- package/commons-commons-core/cash/atto/commons/AttoSeed.mjs.map +1 -1
- package/commons-commons-core/cash/atto/commons/AttoSerializable.export.d.mts +8 -0
- package/commons-commons-core/cash/atto/commons/AttoSerializable.export.mjs +4 -0
- package/commons-commons-core/cash/atto/commons/AttoSerializable.mjs +27 -0
- package/commons-commons-core/cash/atto/commons/AttoSerializable.mjs.map +1 -0
- package/commons-commons-core/cash/atto/commons/AttoSignature.js.mjs.map +1 -1
- package/commons-commons-core/cash/atto/commons/AttoSignature.mjs +14 -14
- package/commons-commons-core/cash/atto/commons/AttoSignature.mjs.map +1 -1
- package/commons-commons-core/cash/atto/commons/AttoSigner.export.d.mts +28 -0
- package/commons-commons-core/cash/atto/commons/AttoSigner.export.mjs +19 -0
- package/commons-commons-core/cash/atto/commons/AttoSigner.export.mjs.map +1 -0
- package/commons-commons-core/cash/atto/commons/AttoSigner.js.mjs +67 -15
- package/commons-commons-core/cash/atto/commons/AttoSigner.js.mjs.map +1 -1
- package/commons-commons-core/cash/atto/commons/AttoSigner.mjs +46 -6
- package/commons-commons-core/cash/atto/commons/AttoSigner.mjs.map +1 -1
- package/commons-commons-core/cash/atto/commons/AttoTransaction.export.d.mts +4 -4
- package/commons-commons-core/cash/atto/commons/AttoTransaction.mjs +73 -68
- package/commons-commons-core/cash/atto/commons/AttoTransaction.mjs.map +1 -1
- package/commons-commons-core/cash/atto/commons/AttoValidation.export.d.mts +9 -0
- package/commons-commons-core/cash/atto/commons/AttoValidation.export.mjs +4 -0
- package/commons-commons-core/cash/atto/commons/AttoValidation.export.mjs.map +1 -0
- package/commons-commons-core/cash/atto/commons/AttoValidation.mjs +17 -4
- package/commons-commons-core/cash/atto/commons/AttoValidation.mjs.map +1 -1
- package/commons-commons-core/cash/atto/commons/AttoVersion.export.d.mts +1 -1
- package/commons-commons-core/cash/atto/commons/AttoVersion.mjs +15 -15
- package/commons-commons-core/cash/atto/commons/AttoVersion.mjs.map +1 -1
- package/commons-commons-core/cash/atto/commons/AttoVote.export.d.mts +3 -2
- package/commons-commons-core/cash/atto/commons/AttoVote.mjs +84 -79
- package/commons-commons-core/cash/atto/commons/AttoVote.mjs.map +1 -1
- package/commons-commons-core/cash/atto/commons/AttoWork.mjs +22 -22
- package/commons-commons-core/cash/atto/commons/AttoWork.mjs.map +1 -1
- package/commons-commons-core/cash/atto/commons/AttoWorkTarget.mjs +16 -16
- package/commons-commons-core/cash/atto/commons/AttoWorkTarget.mjs.map +1 -1
- package/commons-commons-core/cash/atto/commons/Extensions.mjs +2 -2
- package/commons-commons-core/cash/atto/commons/Extensions.mjs.map +1 -1
- package/commons-commons-core/cash/atto/commons/utils/Base32.mjs +9 -9
- package/commons-commons-core/cash/atto/commons/utils/Base32.mjs.map +1 -1
- package/commons-commons-core/cash/atto/commons/utils/SecureRandom.js.mjs +1 -1
- package/commons-commons-core/cash/atto/commons/utils/SecureRandom.js.mjs.map +1 -1
- package/commons-commons-core/cash/atto/commons/utils/SubtleCrypto.mjs.map +1 -1
- package/commons-commons-core.mjs +1 -2
- package/commons-commons-core.mjs.map +1 -1
- package/commons-commons-js/cash/atto/commons/js/Placeholder.mjs.map +1 -1
- package/commons-commons-node/cash/atto/commons/node/AttoNodeClientAsync.web.export.d.mts +26 -0
- package/commons-commons-node/cash/atto/commons/node/{AttoNodeClientAsync.export.mjs → AttoNodeClientAsync.web.export.mjs} +2 -2
- package/commons-commons-node/cash/atto/commons/node/{AttoNodeClientAsync.mjs → AttoNodeClientAsync.web.mjs} +375 -419
- package/commons-commons-node/cash/atto/commons/node/AttoNodeClientAsync.web.mjs.map +1 -0
- package/commons-commons-node/cash/atto/commons/node/AttoNodeOperations.export.d.mts +1 -1
- package/commons-commons-node/cash/atto/commons/node/AttoNodeOperations.mjs +158 -158
- package/commons-commons-node/cash/atto/commons/node/AttoNodeOperations.mjs.map +1 -1
- package/commons-commons-node/cash/atto/commons/node/NodeExtensions.export.d.mts +2 -0
- package/commons-commons-node/cash/atto/commons/node/NodeExtensions.export.mjs +4 -0
- package/commons-commons-node/cash/atto/commons/node/NodeExtensions.export.mjs.map +1 -1
- package/commons-commons-node/cash/atto/commons/node/NodeExtensions.mjs +44 -19
- package/commons-commons-node/cash/atto/commons/node/NodeExtensions.mjs.map +1 -1
- package/commons-commons-node/cash/atto/commons/node/monitor/AttoAccountEntryMonitor.mjs +7 -7
- package/commons-commons-node/cash/atto/commons/node/monitor/AttoAccountEntryMonitor.mjs.map +1 -1
- package/commons-commons-node/cash/atto/commons/node/monitor/{AttoAccountEntryMonitorAsync.export.d.mts → AttoAccountEntryMonitorAsync.web.export.d.mts} +3 -2
- package/commons-commons-node/cash/atto/commons/node/monitor/{AttoAccountEntryMonitorAsync.export.mjs → AttoAccountEntryMonitorAsync.web.export.mjs} +2 -2
- package/commons-commons-node/cash/atto/commons/node/monitor/{AttoAccountEntryMonitorAsync.mjs → AttoAccountEntryMonitorAsync.web.mjs} +70 -41
- package/commons-commons-node/cash/atto/commons/node/monitor/AttoAccountEntryMonitorAsync.web.mjs.map +1 -0
- package/commons-commons-node/cash/atto/commons/node/monitor/{AttoAccountEntryMonitorAsyncBuilder.web.export.d.mts → AttoAccountEntryMonitorAsyncBuilder.js.export.d.mts} +1 -1
- package/commons-commons-node/cash/atto/commons/node/monitor/{AttoAccountEntryMonitorAsyncBuilder.web.export.mjs → AttoAccountEntryMonitorAsyncBuilder.js.export.mjs} +2 -2
- package/commons-commons-node/cash/atto/commons/node/monitor/{AttoAccountEntryMonitorAsyncBuilder.web.mjs → AttoAccountEntryMonitorAsyncBuilder.js.mjs} +18 -18
- package/commons-commons-node/cash/atto/commons/node/monitor/AttoAccountEntryMonitorAsyncBuilder.js.mjs.map +1 -0
- package/commons-commons-node/cash/atto/commons/node/monitor/AttoAccountMonitor.mjs +54 -54
- package/commons-commons-node/cash/atto/commons/node/monitor/AttoAccountMonitor.mjs.map +1 -1
- package/commons-commons-node/cash/atto/commons/node/monitor/{AttoAccountMonitorAsync.export.d.mts → AttoAccountMonitorAsync.web.export.d.mts} +5 -4
- package/commons-commons-node/cash/atto/commons/node/monitor/{AttoAccountMonitorAsync.export.mjs → AttoAccountMonitorAsync.web.export.mjs} +2 -2
- package/commons-commons-node/cash/atto/commons/node/monitor/{AttoAccountMonitorAsync.mjs → AttoAccountMonitorAsync.web.mjs} +134 -129
- package/commons-commons-node/cash/atto/commons/node/monitor/AttoAccountMonitorAsync.web.mjs.map +1 -0
- package/commons-commons-node/cash/atto/commons/node/monitor/AttoAccountMonitorAsyncBuilder.web.mjs +4 -4
- package/commons-commons-node/cash/atto/commons/node/monitor/AttoAccountMonitorAsyncBuilder.web.mjs.map +1 -1
- package/commons-commons-node/cash/atto/commons/node/monitor/AttoHeightMonitor.mjs +55 -55
- package/commons-commons-node/cash/atto/commons/node/monitor/AttoHeightMonitor.mjs.map +1 -1
- package/commons-commons-node/cash/atto/commons/node/monitor/AttoTransactionMonitor.mjs +7 -7
- package/commons-commons-node/cash/atto/commons/node/monitor/AttoTransactionMonitor.mjs.map +1 -1
- package/commons-commons-node/cash/atto/commons/node/monitor/{AttoTransactionMonitorAsync.export.d.mts → AttoTransactionMonitorAsync.web.export.d.mts} +3 -2
- package/commons-commons-node/cash/atto/commons/node/monitor/{AttoTransactionMonitorAsync.export.mjs → AttoTransactionMonitorAsync.web.export.mjs} +2 -2
- package/commons-commons-node/cash/atto/commons/node/monitor/{AttoTransactionMonitorAsync.mjs → AttoTransactionMonitorAsync.web.mjs} +70 -41
- package/commons-commons-node/cash/atto/commons/node/monitor/AttoTransactionMonitorAsync.web.mjs.map +1 -0
- package/commons-commons-node/cash/atto/commons/node/monitor/{AttoTransactionMonitorAsyncBuilder.web.export.d.mts → AttoTransactionMonitorAsyncBuilder.js.export.d.mts} +1 -1
- package/commons-commons-node/cash/atto/commons/node/monitor/{AttoTransactionMonitorAsyncBuilder.web.export.mjs → AttoTransactionMonitorAsyncBuilder.js.export.mjs} +2 -2
- package/commons-commons-node/cash/atto/commons/node/monitor/{AttoTransactionMonitorAsyncBuilder.web.mjs → AttoTransactionMonitorAsyncBuilder.js.mjs} +18 -18
- package/commons-commons-node/cash/atto/commons/node/monitor/AttoTransactionMonitorAsyncBuilder.js.mjs.map +1 -0
- package/commons-commons-node-remote/cash/atto/commons/node/AttoNodeClientAsyncBuilder.web.mjs +8 -8
- package/commons-commons-node-remote/cash/atto/commons/node/AttoNodeClientAsyncBuilder.web.mjs.map +1 -1
- package/commons-commons-node-remote/cash/atto/commons/node/AttoNodeClientRemote.mjs +320 -320
- package/commons-commons-node-remote/cash/atto/commons/node/AttoNodeClientRemote.mjs.map +1 -1
- package/commons-commons-node.mjs +6 -6
- package/commons-commons-wallet/cash/atto/commons/wallet/AttoWallet.export.d.mts +15 -0
- package/commons-commons-wallet/cash/atto/commons/wallet/AttoWallet.export.mjs +13 -0
- package/commons-commons-wallet/cash/atto/commons/wallet/AttoWallet.mjs +229 -216
- package/commons-commons-wallet/cash/atto/commons/wallet/AttoWallet.mjs.map +1 -1
- package/commons-commons-wallet/cash/atto/commons/wallet/AttoWalletAsync.js.export.d.mts +25 -0
- package/commons-commons-wallet/cash/atto/commons/wallet/{AttoWalletAsync.export.mjs → AttoWalletAsync.js.export.mjs} +2 -2
- package/commons-commons-wallet/cash/atto/commons/wallet/AttoWalletAsync.js.mjs +405 -0
- package/commons-commons-wallet/cash/atto/commons/wallet/AttoWalletAsync.js.mjs.map +1 -0
- package/commons-commons-wallet/cash/atto/commons/wallet/AttoWalletAsyncBuilder.js.export.d.mts +6 -0
- package/commons-commons-wallet/cash/atto/commons/wallet/AttoWalletAsyncBuilder.js.mjs +44 -35
- package/commons-commons-wallet/cash/atto/commons/wallet/AttoWalletAsyncBuilder.js.mjs.map +1 -1
- package/commons-commons-wallet.mjs +2 -1
- package/commons-commons-wallet.mjs.map +1 -1
- package/commons-commons-worker/cash/atto/commons/worker/AttoWorker.mjs +2 -2
- package/commons-commons-worker/cash/atto/commons/worker/AttoWorker.mjs.map +1 -1
- package/commons-commons-worker/cash/atto/commons/worker/{AttoWorkerAsync.export.d.mts → AttoWorkerAsync.js.export.d.mts} +3 -3
- package/commons-commons-worker/cash/atto/commons/worker/{AttoWorkerAsync.export.mjs → AttoWorkerAsync.js.export.mjs} +2 -2
- package/commons-commons-worker/cash/atto/commons/worker/AttoWorkerAsync.js.mjs +108 -0
- package/commons-commons-worker/cash/atto/commons/worker/AttoWorkerAsync.js.mjs.map +1 -0
- package/commons-commons-worker/cash/atto/commons/worker/AttoWorkerAsync.mjs +1 -110
- package/commons-commons-worker/cash/atto/commons/worker/AttoWorkerAsync.mjs.map +1 -1
- package/commons-commons-worker/cash/atto/commons/worker/AttoWorkerCache.mjs +72 -72
- package/commons-commons-worker/cash/atto/commons/worker/AttoWorkerCache.mjs.map +1 -1
- package/commons-commons-worker/cash/atto/commons/worker/AttoWorkerOperations.mjs +82 -82
- package/commons-commons-worker/cash/atto/commons/worker/AttoWorkerOperations.mjs.map +1 -1
- package/commons-commons-worker-remote/cash/atto/commons/worker/AttoWorkerAsyncBuilder.web.mjs +14 -14
- package/commons-commons-worker-remote/cash/atto/commons/worker/AttoWorkerAsyncBuilder.web.mjs.map +1 -1
- package/commons-commons-worker-remote/cash/atto/commons/worker/AttoWorkerRemote.mjs +27 -27
- package/commons-commons-worker-remote/cash/atto/commons/worker/AttoWorkerRemote.mjs.map +1 -1
- package/commons-commons-worker.mjs +1 -1
- package/kotlin-kotlin-stdlib/kotlin/DeepRecursive.mjs +19 -19
- package/kotlin-kotlin-stdlib/kotlin/Lazy.mjs +9 -9
- package/kotlin-kotlin-stdlib/kotlin/Result.mjs +10 -5
- package/kotlin-kotlin-stdlib/kotlin/Result.mjs.map +1 -1
- package/kotlin-kotlin-stdlib/kotlin/Tuples.mjs +21 -21
- package/kotlin-kotlin-stdlib/kotlin/UByte.mjs +12 -12
- package/kotlin-kotlin-stdlib/kotlin/UByteArray.mjs +25 -25
- package/kotlin-kotlin-stdlib/kotlin/UInt.mjs +12 -12
- package/kotlin-kotlin-stdlib/kotlin/UIntArray.mjs +25 -25
- package/kotlin-kotlin-stdlib/kotlin/ULong.mjs +12 -12
- package/kotlin-kotlin-stdlib/kotlin/ULongArray.mjs +25 -25
- package/kotlin-kotlin-stdlib/kotlin/UShort.mjs +12 -12
- package/kotlin-kotlin-stdlib/kotlin/UShortArray.mjs +25 -25
- package/kotlin-kotlin-stdlib/kotlin/collections/AbstractList.mjs +31 -31
- package/kotlin-kotlin-stdlib/kotlin/collections/AbstractMap.mjs +19 -19
- package/kotlin-kotlin-stdlib/kotlin/collections/AbstractSet.mjs +1 -1
- package/kotlin-kotlin-stdlib/kotlin/collections/ArrayDeque.mjs +189 -189
- package/kotlin-kotlin-stdlib/kotlin/collections/ArrayListJs.mjs +1 -1
- package/kotlin-kotlin-stdlib/kotlin/collections/Collections.mjs +9 -9
- package/kotlin-kotlin-stdlib/kotlin/collections/Collections.mjs.map +1 -1
- package/kotlin-kotlin-stdlib/kotlin/collections/CollectionsKt.mjs +68 -68
- package/kotlin-kotlin-stdlib/kotlin/collections/CollectionsKt.mjs.map +1 -1
- package/kotlin-kotlin-stdlib/kotlin/collections/IndexedValue.mjs +7 -7
- package/kotlin-kotlin-stdlib/kotlin/collections/Iterables.mjs +18 -18
- package/kotlin-kotlin-stdlib/kotlin/collections/Iterables.mjs.map +1 -1
- package/kotlin-kotlin-stdlib/kotlin/collections/Iterators.mjs +6 -6
- package/kotlin-kotlin-stdlib/kotlin/collections/LinkedHashSet.mjs +1 -1
- package/kotlin-kotlin-stdlib/kotlin/collections/MapWithDefault.mjs +1 -1
- package/kotlin-kotlin-stdlib/kotlin/collections/Maps.mjs +14 -14
- package/kotlin-kotlin-stdlib/kotlin/collections/PrimitiveIterators.mjs +4 -4
- package/kotlin-kotlin-stdlib/kotlin/collections/Sets.mjs +13 -13
- package/kotlin-kotlin-stdlib/kotlin/collections/Sets.mjs.map +1 -1
- package/kotlin-kotlin-stdlib/kotlin/collections/_Arrays.mjs +28 -28
- package/kotlin-kotlin-stdlib/kotlin/collections/_Arrays.mjs.map +1 -1
- package/kotlin-kotlin-stdlib/kotlin/collections/_Collections.mjs +7 -7
- package/kotlin-kotlin-stdlib/kotlin/collections/_Sets.mjs +1 -1
- package/kotlin-kotlin-stdlib/kotlin/collections/collectionJs.mjs +30 -30
- package/kotlin-kotlin-stdlib/kotlin/collections/collectionJs.mjs.map +1 -1
- package/kotlin-kotlin-stdlib/kotlin/collections/collectionsInterop.mjs +15 -15
- package/kotlin-kotlin-stdlib/kotlin/collections/collectionsInterop.mjs.map +1 -1
- package/kotlin-kotlin-stdlib/kotlin/coroutines/Continuation.mjs +9 -0
- package/kotlin-kotlin-stdlib/kotlin/coroutines/Continuation.mjs.map +1 -1
- package/kotlin-kotlin-stdlib/kotlin/coroutines/ContinuationInterceptor.mjs +3 -3
- package/kotlin-kotlin-stdlib/kotlin/coroutines/CoroutineContext.mjs +3 -3
- package/kotlin-kotlin-stdlib/kotlin/coroutines/CoroutineContextImpl.mjs +33 -33
- package/kotlin-kotlin-stdlib/kotlin/coroutines/intrinsics/IntrinsicsJs.mjs +91 -0
- package/kotlin-kotlin-stdlib/kotlin/coroutines/intrinsics/IntrinsicsJs.mjs.map +1 -1
- package/kotlin-kotlin-stdlib/kotlin/enums/EnumEntries.mjs +10 -10
- package/kotlin-kotlin-stdlib/kotlin/exceptions.mjs +43 -43
- package/kotlin-kotlin-stdlib/kotlin/js/JsClass.mjs +1 -1
- package/kotlin-kotlin-stdlib/kotlin/js/json.mjs +2 -2
- package/kotlin-kotlin-stdlib/kotlin/random/Random.mjs +29 -29
- package/kotlin-kotlin-stdlib/kotlin/random/XorWowRandom.mjs +25 -25
- package/kotlin-kotlin-stdlib/kotlin/ranges/PrimitiveRanges.mjs +17 -17
- package/kotlin-kotlin-stdlib/kotlin/ranges/ProgressionIterators.mjs +24 -24
- package/kotlin-kotlin-stdlib/kotlin/ranges/Progressions.mjs +10 -10
- package/kotlin-kotlin-stdlib/kotlin/reflect/KTypeProjection.mjs +16 -16
- package/kotlin-kotlin-stdlib/kotlin/reflect/js/internal/KClassImpl.mjs +22 -22
- package/kotlin-kotlin-stdlib/kotlin/reflect/js/internal/KTypeHelpers.mjs +2 -2
- package/kotlin-kotlin-stdlib/kotlin/reflect/js/internal/KTypeParameterImpl.mjs +8 -8
- package/kotlin-kotlin-stdlib/kotlin/reflect/js/internal/primitives.mjs +20 -20
- package/kotlin-kotlin-stdlib/kotlin/sequences/SequenceBuilder.mjs +29 -29
- package/kotlin-kotlin-stdlib/kotlin/sequences/Sequences.mjs +26 -26
- package/kotlin-kotlin-stdlib/kotlin/text/Appendable.mjs +3 -3
- package/kotlin-kotlin-stdlib/kotlin/text/CharacterCodingExceptionJs.mjs +6 -6
- package/kotlin-kotlin-stdlib/kotlin/text/HexExtensions.mjs +18 -18
- package/kotlin-kotlin-stdlib/kotlin/text/HexFormat.mjs +45 -45
- package/kotlin-kotlin-stdlib/kotlin/text/StringBuilderJs.mjs +15 -15
- package/kotlin-kotlin-stdlib/kotlin/text/StringNumberConversions.mjs +1 -1
- package/kotlin-kotlin-stdlib/kotlin/text/Strings.mjs +63 -63
- package/kotlin-kotlin-stdlib/kotlin/text/regex.mjs +21 -21
- package/kotlin-kotlin-stdlib/kotlin/text/stringJs.mjs +16 -16
- package/kotlin-kotlin-stdlib/kotlin/text/stringJs.mjs.map +1 -1
- package/kotlin-kotlin-stdlib/kotlin/text/stringsCode.mjs +3 -3
- package/kotlin-kotlin-stdlib/kotlin/text/utf8Encoding.mjs +1 -1
- package/kotlin-kotlin-stdlib/kotlin/throwableExtensions.mjs +21 -21
- package/kotlin-kotlin-stdlib/kotlin/time/Clock.mjs +1 -1
- package/kotlin-kotlin-stdlib/kotlin/time/Duration.mjs +76 -76
- package/kotlin-kotlin-stdlib/kotlin/time/DurationUnitJs.mjs +6 -6
- package/kotlin-kotlin-stdlib/kotlin/time/Instant.mjs +85 -85
- package/kotlin-kotlin-stdlib/kotlin/time/InstantJs.mjs +1 -1
- package/kotlin-kotlin-stdlib/kotlin/uuid/Uuid.mjs +24 -24
- package/kotlin-kotlin-stdlib/kotlin/uuid/UuidJs.mjs +2 -2
- package/kotlin-kotlin-stdlib/reflectionJs.mjs +2 -2
- package/kotlin-logging/io/github/oshai/kotlinlogging/Appender.mjs +3 -3
- package/kotlin-logging/io/github/oshai/kotlinlogging/ConsoleOutputAppender.mjs +2 -2
- package/kotlin-logging/io/github/oshai/kotlinlogging/Formatter.mjs +8 -8
- package/kotlin-logging/io/github/oshai/kotlinlogging/KLogger.mjs +5 -5
- package/kotlin-logging/io/github/oshai/kotlinlogging/KLoggingEvent.mjs +21 -21
- package/kotlin-logging/io/github/oshai/kotlinlogging/KLoggingEventBuilder.mjs +3 -3
- package/kotlin-logging/io/github/oshai/kotlinlogging/KotlinLogging.mjs +4 -4
- package/kotlin-logging/io/github/oshai/kotlinlogging/KotlinLoggingConfiguration.mjs +3 -3
- package/kotlin-logging/io/github/oshai/kotlinlogging/KotlinLoggingLevel.mjs +1 -1
- package/kotlin-logging/io/github/oshai/kotlinlogging/Level.mjs +3 -3
- package/kotlin-logging/io/github/oshai/kotlinlogging/internal/KLoggerDirect.mjs +7 -7
- package/kotlin-logging/io/github/oshai/kotlinlogging/internal/KLoggerFactory.mjs +1 -1
- package/kotlin-logging/io/github/oshai/kotlinlogging/internal/KLoggerNameResolver.mjs +2 -2
- package/kotlin-logging/io/github/oshai/kotlinlogging/internal/MessageInvoker.mjs +2 -2
- package/kotlinx-atomicfu/kotlinx/atomicfu/AtomicFU.common.mjs +5 -5
- package/kotlinx-atomicfu/kotlinx/atomicfu/AtomicFU.common.mjs.map +1 -1
- package/kotlinx-atomicfu/kotlinx/atomicfu/AtomicFU.mjs +8 -8
- package/kotlinx-atomicfu/kotlinx/atomicfu/AtomicFU.mjs.map +1 -1
- package/kotlinx-coroutines-core/kotlinx/coroutines/AbstractCoroutine.mjs +25 -25
- package/kotlinx-coroutines-core/kotlinx/coroutines/AbstractCoroutine.mjs.map +1 -1
- package/kotlinx-coroutines-core/kotlinx/coroutines/Builders.common.mjs +16 -16
- package/kotlinx-coroutines-core/kotlinx/coroutines/Builders.common.mjs.map +1 -1
- package/kotlinx-coroutines-core/kotlinx/coroutines/CancellableContinuation.mjs +7 -7
- package/kotlinx-coroutines-core/kotlinx/coroutines/CancellableContinuation.mjs.map +1 -1
- package/kotlinx-coroutines-core/kotlinx/coroutines/CancellableContinuationImpl.mjs +168 -168
- package/kotlinx-coroutines-core/kotlinx/coroutines/CancellableContinuationImpl.mjs.map +1 -1
- package/kotlinx-coroutines-core/kotlinx/coroutines/CompletableDeferred.mjs +10 -10
- package/kotlinx-coroutines-core/kotlinx/coroutines/CompletableDeferred.mjs.map +1 -1
- package/kotlinx-coroutines-core/kotlinx/coroutines/CompletionState.mjs +11 -11
- package/kotlinx-coroutines-core/kotlinx/coroutines/CompletionState.mjs.map +1 -1
- package/kotlinx-coroutines-core/kotlinx/coroutines/CoroutineContext.mjs +4 -4
- package/kotlinx-coroutines-core/kotlinx/coroutines/CoroutineContext.mjs.map +1 -1
- package/kotlinx-coroutines-core/kotlinx/coroutines/CoroutineDispatcher.mjs +3 -3
- package/kotlinx-coroutines-core/kotlinx/coroutines/CoroutineExceptionHandler.mjs +3 -3
- package/kotlinx-coroutines-core/kotlinx/coroutines/CoroutineName.mjs +4 -4
- package/kotlinx-coroutines-core/kotlinx/coroutines/CoroutineScope.mjs +4 -4
- package/kotlinx-coroutines-core/kotlinx/coroutines/CoroutineScope.mjs.map +1 -1
- package/kotlinx-coroutines-core/kotlinx/coroutines/CoroutineStart.mjs +2 -2
- package/kotlinx-coroutines-core/kotlinx/coroutines/CoroutineStart.mjs.map +1 -1
- package/kotlinx-coroutines-core/kotlinx/coroutines/Delay.mjs +3 -3
- package/kotlinx-coroutines-core/kotlinx/coroutines/Delay.mjs.map +1 -1
- package/kotlinx-coroutines-core/kotlinx/coroutines/DispatchedTask.mjs +43 -43
- package/kotlinx-coroutines-core/kotlinx/coroutines/DispatchedTask.mjs.map +1 -1
- package/kotlinx-coroutines-core/kotlinx/coroutines/Dispatchers.mjs +18 -18
- package/kotlinx-coroutines-core/kotlinx/coroutines/EventLoop.common.mjs +29 -29
- package/kotlinx-coroutines-core/kotlinx/coroutines/EventLoop.mjs +1 -1
- package/kotlinx-coroutines-core/kotlinx/coroutines/Exceptions.common.mjs +6 -6
- package/kotlinx-coroutines-core/kotlinx/coroutines/Exceptions.common.mjs.map +1 -1
- package/kotlinx-coroutines-core/kotlinx/coroutines/Exceptions.mjs +6 -6
- package/kotlinx-coroutines-core/kotlinx/coroutines/JSDispatcher.mjs +86 -86
- package/kotlinx-coroutines-core/kotlinx/coroutines/JSDispatcher.mjs.map +1 -1
- package/kotlinx-coroutines-core/kotlinx/coroutines/Job.mjs +14 -14
- package/kotlinx-coroutines-core/kotlinx/coroutines/Job.mjs.map +1 -1
- package/kotlinx-coroutines-core/kotlinx/coroutines/JobSupport.mjs +318 -318
- package/kotlinx-coroutines-core/kotlinx/coroutines/JobSupport.mjs.map +1 -1
- package/kotlinx-coroutines-core/kotlinx/coroutines/MainCoroutineDispatcher.mjs +4 -4
- package/kotlinx-coroutines-core/kotlinx/coroutines/Promise.mjs +14 -14
- package/kotlinx-coroutines-core/kotlinx/coroutines/Promise.mjs.map +1 -1
- package/kotlinx-coroutines-core/kotlinx/coroutines/Supervisor.mjs +1 -1
- package/kotlinx-coroutines-core/kotlinx/coroutines/Supervisor.mjs.map +1 -1
- package/kotlinx-coroutines-core/kotlinx/coroutines/Unconfined.mjs +3 -3
- package/kotlinx-coroutines-core/kotlinx/coroutines/channels/BufferedChannel.mjs +438 -438
- package/kotlinx-coroutines-core/kotlinx/coroutines/channels/BufferedChannel.mjs.map +1 -1
- package/kotlinx-coroutines-core/kotlinx/coroutines/channels/Channel.mjs +30 -30
- package/kotlinx-coroutines-core/kotlinx/coroutines/channels/ChannelCoroutine.mjs +21 -21
- package/kotlinx-coroutines-core/kotlinx/coroutines/channels/ChannelCoroutine.mjs.map +1 -1
- package/kotlinx-coroutines-core/kotlinx/coroutines/channels/Channels.common.mjs +1 -1
- package/kotlinx-coroutines-core/kotlinx/coroutines/channels/Channels.common.mjs.map +1 -1
- package/kotlinx-coroutines-core/kotlinx/coroutines/channels/ConflatedBufferedChannel.mjs +16 -16
- package/kotlinx-coroutines-core/kotlinx/coroutines/channels/Produce.mjs +13 -13
- package/kotlinx-coroutines-core/kotlinx/coroutines/channels/Produce.mjs.map +1 -1
- package/kotlinx-coroutines-core/kotlinx/coroutines/flow/Builders.mjs +15 -15
- package/kotlinx-coroutines-core/kotlinx/coroutines/flow/Channels.mjs +2 -2
- package/kotlinx-coroutines-core/kotlinx/coroutines/flow/Collect.mjs +7 -7
- package/kotlinx-coroutines-core/kotlinx/coroutines/flow/Context.mjs +1 -1
- package/kotlinx-coroutines-core/kotlinx/coroutines/flow/Emitters.mjs +14 -14
- package/kotlinx-coroutines-core/kotlinx/coroutines/flow/Errors.mjs +28 -28
- package/kotlinx-coroutines-core/kotlinx/coroutines/flow/Errors.mjs.map +1 -1
- package/kotlinx-coroutines-core/kotlinx/coroutines/flow/Reduce.mjs +16 -16
- package/kotlinx-coroutines-core/kotlinx/coroutines/flow/Share.mjs +11 -11
- package/kotlinx-coroutines-core/kotlinx/coroutines/flow/SharedFlow.mjs +45 -45
- package/kotlinx-coroutines-core/kotlinx/coroutines/flow/StateFlow.mjs +50 -50
- package/kotlinx-coroutines-core/kotlinx/coroutines/flow/StateFlow.mjs.map +1 -1
- package/kotlinx-coroutines-core/kotlinx/coroutines/flow/Transform.mjs +42 -42
- package/kotlinx-coroutines-core/kotlinx/coroutines/flow/internal/AbstractSharedFlow.mjs +24 -24
- package/kotlinx-coroutines-core/kotlinx/coroutines/flow/internal/ChannelFlow.mjs +72 -72
- package/kotlinx-coroutines-core/kotlinx/coroutines/flow/internal/FlowExceptions.common.mjs +1 -1
- package/kotlinx-coroutines-core/kotlinx/coroutines/flow/internal/FlowExceptions.mjs +6 -6
- package/kotlinx-coroutines-core/kotlinx/coroutines/flow/internal/Merge.mjs +35 -35
- package/kotlinx-coroutines-core/kotlinx/coroutines/flow/internal/Merge.mjs.map +1 -1
- package/kotlinx-coroutines-core/kotlinx/coroutines/flow/internal/NopCollector.mjs +3 -3
- package/kotlinx-coroutines-core/kotlinx/coroutines/flow/internal/SafeCollector.common.mjs +5 -5
- package/kotlinx-coroutines-core/kotlinx/coroutines/flow/internal/SafeCollector.common.mjs.map +1 -1
- package/kotlinx-coroutines-core/kotlinx/coroutines/flow/internal/SafeCollector.mjs +8 -8
- package/kotlinx-coroutines-core/kotlinx/coroutines/flow/internal/SendingCollector.mjs +3 -3
- package/kotlinx-coroutines-core/kotlinx/coroutines/internal/Concurrent.common.mjs +2 -2
- package/kotlinx-coroutines-core/kotlinx/coroutines/internal/Concurrent.mjs +11 -11
- package/kotlinx-coroutines-core/kotlinx/coroutines/internal/ConcurrentLinkedList.mjs +46 -46
- package/kotlinx-coroutines-core/kotlinx/coroutines/internal/ConcurrentLinkedList.mjs.map +1 -1
- package/kotlinx-coroutines-core/kotlinx/coroutines/internal/CoroutineExceptionHandlerImpl.common.mjs +2 -2
- package/kotlinx-coroutines-core/kotlinx/coroutines/internal/CoroutineExceptionHandlerImpl.mjs +2 -2
- package/kotlinx-coroutines-core/kotlinx/coroutines/internal/DispatchedContinuation.mjs +71 -71
- package/kotlinx-coroutines-core/kotlinx/coroutines/internal/DispatchedContinuation.mjs.map +1 -1
- package/kotlinx-coroutines-core/kotlinx/coroutines/internal/LinkedList.mjs +23 -23
- package/kotlinx-coroutines-core/kotlinx/coroutines/internal/OnUndeliveredElement.mjs +4 -4
- package/kotlinx-coroutines-core/kotlinx/coroutines/internal/Scopes.mjs +11 -11
- package/kotlinx-coroutines-core/kotlinx/coroutines/internal/Scopes.mjs.map +1 -1
- package/kotlinx-coroutines-core/kotlinx/coroutines/internal/Symbol.mjs +2 -2
- package/kotlinx-coroutines-core/kotlinx/coroutines/internal/ThreadLocal.mjs +5 -5
- package/kotlinx-coroutines-core/kotlinx/coroutines/intrinsics/Cancellable.mjs +1 -1
- package/kotlinx-coroutines-core/kotlinx/coroutines/intrinsics/Undispatched.mjs +9 -9
- package/kotlinx-coroutines-core/kotlinx/coroutines/intrinsics/Undispatched.mjs.map +1 -1
- package/kotlinx-coroutines-core/kotlinx/coroutines/selects/Select.mjs +16 -16
- package/kotlinx-coroutines-core/kotlinx/coroutines/selects/Select.mjs.map +1 -1
- package/kotlinx-coroutines-core/kotlinx/coroutines/sync/Mutex.mjs +52 -52
- package/kotlinx-coroutines-core/kotlinx/coroutines/sync/Mutex.mjs.map +1 -1
- package/kotlinx-coroutines-core/kotlinx/coroutines/sync/Semaphore.mjs +61 -61
- package/kotlinx-coroutines-core/kotlinx/coroutines/sync/Semaphore.mjs.map +1 -1
- package/kotlinx-io-kotlinx-io-bytestring/kotlinx/io/bytestring/ByteString.mjs +35 -35
- package/kotlinx-io-kotlinx-io-bytestring/kotlinx/io/bytestring/unsafe/UnsafeByteStringOperations.mjs +2 -2
- package/kotlinx-io-kotlinx-io-core/kotlinx/io/-PlatformJs.mjs +14 -14
- package/kotlinx-io-kotlinx-io-core/kotlinx/io/-Util.mjs +1 -1
- package/kotlinx-io-kotlinx-io-core/kotlinx/io/Buffer.mjs +188 -188
- package/kotlinx-io-kotlinx-io-core/kotlinx/io/Buffers.mjs +10 -10
- package/kotlinx-io-kotlinx-io-core/kotlinx/io/ByteStrings.mjs +1 -1
- package/kotlinx-io-kotlinx-io-core/kotlinx/io/PeekSource.mjs +20 -20
- package/kotlinx-io-kotlinx-io-core/kotlinx/io/RealSource.mjs +53 -53
- package/kotlinx-io-kotlinx-io-core/kotlinx/io/Segment.mjs +151 -151
- package/kotlinx-io-kotlinx-io-core/kotlinx/io/SegmentPool.mjs +6 -6
- package/kotlinx-io-kotlinx-io-core/kotlinx/io/Sink.mjs +2 -2
- package/kotlinx-io-kotlinx-io-core/kotlinx/io/Sinks.mjs +3 -3
- package/kotlinx-io-kotlinx-io-core/kotlinx/io/Sources.mjs +15 -15
- package/kotlinx-io-kotlinx-io-core/kotlinx/io/Utf8.mjs +58 -58
- package/kotlinx-io-kotlinx-io-core/kotlinx/io/internal/-Utf8.mjs +1 -1
- package/kotlinx-io-kotlinx-io-core/kotlinx/io/unsafe/UnsafeBufferOperations.mjs +12 -12
- package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/PolymorphicSerializer.mjs +19 -19
- package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/PolymorphicSerializer.mjs.map +1 -1
- package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/SealedSerializer.mjs +39 -39
- package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/SealedSerializer.mjs.map +1 -1
- package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/SerializationExceptions.mjs +23 -23
- package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/SerializationExceptions.mjs.map +1 -1
- package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/Serializers.mjs +6 -6
- package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/Serializers.mjs.map +1 -1
- package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/SerializersCache.mjs +6 -6
- package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/SerializersCache.mjs.map +1 -1
- package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/SerializersJs.mjs +4 -4
- package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/builtins/BuiltinSerializers.mjs +1 -1
- package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/builtins/BuiltinSerializers.mjs.map +1 -1
- package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/descriptors/ContextAware.mjs +33 -33
- package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/descriptors/ContextAware.mjs.map +1 -1
- package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/descriptors/SerialDescriptor.mjs +18 -18
- package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/descriptors/SerialDescriptor.mjs.map +1 -1
- package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/descriptors/SerialDescriptors.mjs +66 -66
- package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/descriptors/SerialDescriptors.mjs.map +1 -1
- package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/encoding/AbstractDecoder.mjs +55 -55
- package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/encoding/AbstractDecoder.mjs.map +1 -1
- package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/encoding/AbstractEncoder.mjs +65 -65
- package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/encoding/AbstractEncoder.mjs.map +1 -1
- package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/encoding/Decoding.mjs +2 -2
- package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/encoding/Decoding.mjs.map +1 -1
- package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/encoding/Encoding.mjs +2 -2
- package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/encoding/Encoding.mjs.map +1 -1
- package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/internal/AbstractPolymorphicSerializer.mjs +26 -26
- package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/internal/AbstractPolymorphicSerializer.mjs.map +1 -1
- package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/internal/BuiltInSerializers.mjs +38 -38
- package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/internal/BuiltInSerializers.mjs.map +1 -1
- package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/internal/CollectionDescriptors.mjs +56 -56
- package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/internal/CollectionDescriptors.mjs.map +1 -1
- package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/internal/CollectionSerializers.mjs +233 -233
- package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/internal/CollectionSerializers.mjs.map +1 -1
- package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/internal/ElementMarker.mjs +22 -22
- package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/internal/ElementMarker.mjs.map +1 -1
- package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/internal/Enums.mjs +33 -33
- package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/internal/Enums.mjs.map +1 -1
- package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/internal/InlineClassDescriptor.mjs +16 -16
- package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/internal/InlineClassDescriptor.mjs.map +1 -1
- package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/internal/NoOpEncoder.mjs +18 -18
- package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/internal/NoOpEncoder.mjs.map +1 -1
- package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/internal/NothingSerialDescriptor.mjs +16 -16
- package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/internal/NothingSerialDescriptor.mjs.map +1 -1
- package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/internal/NullableSerializer.mjs +43 -43
- package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/internal/NullableSerializer.mjs.map +1 -1
- package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/internal/ObjectSerializer.mjs +19 -19
- package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/internal/ObjectSerializer.mjs.map +1 -1
- package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/internal/Platform.common.mjs +7 -7
- package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/internal/Platform.common.mjs.map +1 -1
- package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/internal/Platform.mjs +14 -14
- package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/internal/Platform.mjs.map +1 -1
- package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/internal/PluginExceptions.mjs +2 -2
- package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/internal/PluginExceptions.mjs.map +1 -1
- package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/internal/PluginGeneratedSerialDescriptor.mjs +70 -70
- package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/internal/PluginGeneratedSerialDescriptor.mjs.map +1 -1
- package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/internal/PrimitiveArraysSerializers.mjs +444 -444
- package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/internal/PrimitiveArraysSerializers.mjs.map +1 -1
- package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/internal/Primitives.mjs +114 -114
- package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/internal/Primitives.mjs.map +1 -1
- package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/internal/Tagged.mjs +106 -106
- package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/internal/Tagged.mjs.map +1 -1
- package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/internal/Tuples.mjs +92 -92
- package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/internal/Tuples.mjs.map +1 -1
- package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/internal/ValueClasses.mjs +48 -48
- package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/internal/ValueClasses.mjs.map +1 -1
- package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/modules/SerializersModule.mjs +31 -31
- package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/modules/SerializersModule.mjs.map +1 -1
- package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/modules/SerializersModuleCollector.mjs +1 -1
- package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/Json.mjs +44 -44
- package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/Json.mjs.map +1 -1
- package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/JsonConfiguration.mjs +18 -18
- package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/JsonElement.mjs +61 -61
- package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/JsonElement.mjs.map +1 -1
- package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/JsonElementSerializers.mjs +152 -152
- package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/JsonElementSerializers.mjs.map +1 -1
- package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/JsonSchemaCache.mjs +1 -1
- package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/AbstractJsonLexer.mjs +178 -178
- package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/CommentLexers.mjs +25 -25
- package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/Composers.mjs +71 -71
- package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/JsonElementMarker.mjs +8 -8
- package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/JsonElementMarker.mjs.map +1 -1
- package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/JsonExceptions.mjs +14 -14
- package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/JsonExceptions.mjs.map +1 -1
- package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/JsonNamesMap.mjs +20 -20
- package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/JsonNamesMap.mjs.map +1 -1
- package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/JsonPath.mjs +39 -39
- package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/JsonPath.mjs.map +1 -1
- package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/JsonSerializersModuleValidator.mjs +16 -16
- package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/JsonSerializersModuleValidator.mjs.map +1 -1
- package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/JsonStreams.mjs +2 -2
- package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/JsonToStringWriterJsWasm.mjs +12 -12
- package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/JsonTreeReader.mjs +62 -62
- package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/Polymorphic.mjs +6 -6
- package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/Polymorphic.mjs.map +1 -1
- package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/SchemaCache.mjs +8 -8
- package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/StreamingJsonDecoder.mjs +176 -176
- package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/StreamingJsonDecoder.mjs.map +1 -1
- package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/StreamingJsonEncoder.mjs +139 -139
- package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/StreamingJsonEncoder.mjs.map +1 -1
- package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/StringJsonLexer.mjs +51 -51
- package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/StringOps.mjs +2 -2
- package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/TreeJsonDecoder.mjs +214 -214
- package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/TreeJsonDecoder.mjs.map +1 -1
- package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/WriteMode.mjs +9 -9
- package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/WriteMode.mjs.map +1 -1
- package/ktor-ktor-client-content-negotiation/io/ktor/client/plugins/contentnegotiation/ContentNegotiation.mjs +72 -72
- package/ktor-ktor-client-content-negotiation/io/ktor/client/plugins/contentnegotiation/JsonContentTypeMatcher.mjs +4 -4
- package/ktor-ktor-client-core/io/ktor/client/HttpClient.mjs +71 -71
- package/ktor-ktor-client-core/io/ktor/client/HttpClient.mjs.map +1 -1
- package/ktor-ktor-client-core/io/ktor/client/HttpClientConfig.mjs +36 -36
- package/ktor-ktor-client-core/io/ktor/client/JsRequestUtils.mjs +1 -1
- package/ktor-ktor-client-core/io/ktor/client/call/DelegatedCall.mjs +43 -43
- package/ktor-ktor-client-core/io/ktor/client/call/DelegatedCall.mjs.map +1 -1
- package/ktor-ktor-client-core/io/ktor/client/call/HttpClientCall.mjs +50 -50
- package/ktor-ktor-client-core/io/ktor/client/call/HttpClientCall.mjs.map +1 -1
- package/ktor-ktor-client-core/io/ktor/client/call/SavedCall.mjs +49 -49
- package/ktor-ktor-client-core/io/ktor/client/call/SavedCall.mjs.map +1 -1
- package/ktor-ktor-client-core/io/ktor/client/call/utils.mjs +2 -2
- package/ktor-ktor-client-core/io/ktor/client/content/ObservableContent.mjs +22 -22
- package/ktor-ktor-client-core/io/ktor/client/engine/HttpClientEngine.mjs +54 -54
- package/ktor-ktor-client-core/io/ktor/client/engine/HttpClientEngine.mjs.map +1 -1
- package/ktor-ktor-client-core/io/ktor/client/engine/HttpClientEngineBase.mjs +22 -22
- package/ktor-ktor-client-core/io/ktor/client/engine/HttpClientEngineBase.mjs.map +1 -1
- package/ktor-ktor-client-core/io/ktor/client/engine/HttpClientEngineCapability.mjs +1 -1
- package/ktor-ktor-client-core/io/ktor/client/engine/HttpClientEngineConfig.mjs +4 -4
- package/ktor-ktor-client-core/io/ktor/client/engine/Loader.mjs +11 -11
- package/ktor-ktor-client-core/io/ktor/client/engine/Utils.mjs +23 -23
- package/ktor-ktor-client-core/io/ktor/client/engine/js/Js.mjs +6 -6
- package/ktor-ktor-client-core/io/ktor/client/engine/js/JsClientEngine.mjs +32 -32
- package/ktor-ktor-client-core/io/ktor/client/engine/js/JsClientEngine.mjs.map +1 -1
- package/ktor-ktor-client-core/io/ktor/client/engine/js/JsUtils.mjs +16 -16
- package/ktor-ktor-client-core/io/ktor/client/engine/js/browser/BrowserFetch.mjs +9 -9
- package/ktor-ktor-client-core/io/ktor/client/engine/js/compatibility/Utils.mjs +7 -7
- package/ktor-ktor-client-core/io/ktor/client/engine/js/compatibility/Utils.mjs.map +1 -1
- package/ktor-ktor-client-core/io/ktor/client/plugins/BodyProgress.mjs +36 -36
- package/ktor-ktor-client-core/io/ktor/client/plugins/BodyProgress.mjs.map +1 -1
- package/ktor-ktor-client-core/io/ktor/client/plugins/DefaultResponseValidation.mjs +32 -32
- package/ktor-ktor-client-core/io/ktor/client/plugins/DefaultTransform.mjs +71 -71
- package/ktor-ktor-client-core/io/ktor/client/plugins/DefaultTransform.mjs.map +1 -1
- package/ktor-ktor-client-core/io/ktor/client/plugins/HttpCallValidator.mjs +77 -77
- package/ktor-ktor-client-core/io/ktor/client/plugins/HttpClientPlugin.mjs +2 -2
- package/ktor-ktor-client-core/io/ktor/client/plugins/HttpPlainText.mjs +55 -55
- package/ktor-ktor-client-core/io/ktor/client/plugins/HttpRedirect.mjs +33 -33
- package/ktor-ktor-client-core/io/ktor/client/plugins/HttpRequestLifecycle.mjs +28 -28
- package/ktor-ktor-client-core/io/ktor/client/plugins/HttpRequestLifecycle.mjs.map +1 -1
- package/ktor-ktor-client-core/io/ktor/client/plugins/HttpRequestRetry.mjs +114 -114
- package/ktor-ktor-client-core/io/ktor/client/plugins/HttpRequestRetry.mjs.map +1 -1
- package/ktor-ktor-client-core/io/ktor/client/plugins/HttpSend.mjs +52 -52
- package/ktor-ktor-client-core/io/ktor/client/plugins/HttpTimeout.mjs +82 -82
- package/ktor-ktor-client-core/io/ktor/client/plugins/HttpTimeout.mjs.map +1 -1
- package/ktor-ktor-client-core/io/ktor/client/plugins/SaveBody.mjs +23 -23
- package/ktor-ktor-client-core/io/ktor/client/plugins/api/ClientHook.mjs +4 -4
- package/ktor-ktor-client-core/io/ktor/client/plugins/api/ClientPluginBuilder.mjs +13 -13
- package/ktor-ktor-client-core/io/ktor/client/plugins/api/ClientPluginInstance.mjs +11 -11
- package/ktor-ktor-client-core/io/ktor/client/plugins/api/CommonHooks.mjs +26 -26
- package/ktor-ktor-client-core/io/ktor/client/plugins/api/CommonHooks.mjs.map +1 -1
- package/ktor-ktor-client-core/io/ktor/client/plugins/api/CreatePluginUtils.mjs +14 -14
- package/ktor-ktor-client-core/io/ktor/client/plugins/api/KtorCallContexts.mjs +36 -36
- package/ktor-ktor-client-core/io/ktor/client/plugins/sse/ClientSSESession.mjs +4 -4
- package/ktor-ktor-client-core/io/ktor/client/plugins/sse/ClientSSESession.mjs.map +1 -1
- package/ktor-ktor-client-core/io/ktor/client/plugins/websocket/JsWebSocketSession.mjs +48 -48
- package/ktor-ktor-client-core/io/ktor/client/plugins/websocket/JsWebSocketSession.mjs.map +1 -1
- package/ktor-ktor-client-core/io/ktor/client/plugins/websocket/WebSockets.mjs +4 -4
- package/ktor-ktor-client-core/io/ktor/client/request/DefaultHttpRequest.mjs +18 -18
- package/ktor-ktor-client-core/io/ktor/client/request/DefaultHttpRequest.mjs.map +1 -1
- package/ktor-ktor-client-core/io/ktor/client/request/HttpRequest.mjs +56 -56
- package/ktor-ktor-client-core/io/ktor/client/request/HttpRequest.mjs.map +1 -1
- package/ktor-ktor-client-core/io/ktor/client/request/HttpRequestPipeline.mjs +18 -18
- package/ktor-ktor-client-core/io/ktor/client/request/utils.mjs +1 -1
- package/ktor-ktor-client-core/io/ktor/client/statement/DefaultHttpResponse.mjs +25 -25
- package/ktor-ktor-client-core/io/ktor/client/statement/DefaultHttpResponse.mjs.map +1 -1
- package/ktor-ktor-client-core/io/ktor/client/statement/HttpResponse.mjs +8 -8
- package/ktor-ktor-client-core/io/ktor/client/statement/HttpResponsePipeline.mjs +27 -27
- package/ktor-ktor-client-core/io/ktor/client/statement/HttpStatement.mjs +22 -22
- package/ktor-ktor-client-core/io/ktor/client/statement/HttpStatement.mjs.map +1 -1
- package/ktor-ktor-client-core/io/ktor/client/utils/ByteChannelUtils.mjs +16 -16
- package/ktor-ktor-client-core/io/ktor/client/utils/ClientEvents.mjs +2 -2
- package/ktor-ktor-client-core/io/ktor/client/utils/Content.mjs +3 -3
- package/ktor-ktor-client-core/io/ktor/client/utils/HeadersUtils.mjs +6 -6
- package/ktor-ktor-client-core/io/ktor/client/utils/headers.mjs +1 -1
- package/ktor-ktor-events/io/ktor/events/Events.mjs +6 -6
- package/ktor-ktor-http/io/ktor/http/Codecs.mjs +14 -14
- package/ktor-ktor-http/io/ktor/http/ContentTypes.mjs +93 -93
- package/ktor-ktor-http/io/ktor/http/HeaderValueWithParameters.mjs +18 -18
- package/ktor-ktor-http/io/ktor/http/Headers.mjs +18 -18
- package/ktor-ktor-http/io/ktor/http/HttpHeaderValueParser.mjs +39 -39
- package/ktor-ktor-http/io/ktor/http/HttpHeaders.mjs +115 -115
- package/ktor-ktor-http/io/ktor/http/HttpMessageProperties.mjs +6 -6
- package/ktor-ktor-http/io/ktor/http/HttpMethod.mjs +13 -13
- package/ktor-ktor-http/io/ktor/http/HttpProtocolVersion.mjs +16 -16
- package/ktor-ktor-http/io/ktor/http/HttpStatusCode.mjs +66 -66
- package/ktor-ktor-http/io/ktor/http/Parameters.mjs +11 -11
- package/ktor-ktor-http/io/ktor/http/Query.mjs +4 -4
- package/ktor-ktor-http/io/ktor/http/URLBuilder.mjs +69 -69
- package/ktor-ktor-http/io/ktor/http/URLBuilderJs.mjs +1 -1
- package/ktor-ktor-http/io/ktor/http/URLParser.mjs +34 -34
- package/ktor-ktor-http/io/ktor/http/URLProtocol.mjs +20 -20
- package/ktor-ktor-http/io/ktor/http/URLUtils.mjs +20 -20
- package/ktor-ktor-http/io/ktor/http/Url.mjs +68 -68
- package/ktor-ktor-http/io/ktor/http/Url.mjs.map +1 -1
- package/ktor-ktor-http/io/ktor/http/UrlDecodedParametersBuilder.mjs +25 -25
- package/ktor-ktor-http/io/ktor/http/content/ByteArrayContent.mjs +9 -9
- package/ktor-ktor-http/io/ktor/http/content/OutgoingContent.mjs +8 -8
- package/ktor-ktor-http/io/ktor/http/content/TextContent.mjs +12 -12
- package/ktor-ktor-http-cio/io/ktor/http/cio/CIOMultipartDataBase.mjs +5 -5
- package/ktor-ktor-http-cio/io/ktor/http/cio/CIOMultipartDataBase.mjs.map +1 -1
- package/ktor-ktor-http-cio/io/ktor/http/cio/HttpHeadersMap.mjs +92 -92
- package/ktor-ktor-http-cio/io/ktor/http/cio/HttpParser.mjs +33 -33
- package/ktor-ktor-http-cio/io/ktor/http/cio/Multipart.mjs +50 -50
- package/ktor-ktor-http-cio/io/ktor/http/cio/internals/AsciiCharTree.mjs +10 -10
- package/ktor-ktor-http-cio/io/ktor/http/cio/internals/CharArrayBuilder.mjs +74 -74
- package/ktor-ktor-http-cio/io/ktor/http/cio/internals/CharArrayPool.mjs +2 -2
- package/ktor-ktor-http-cio/io/ktor/http/cio/internals/Chars.mjs +6 -6
- package/ktor-ktor-http-cio/io/ktor/http/cio/internals/Errors.mjs +3 -3
- package/ktor-ktor-http-cio/io/ktor/http/cio/internals/MutableRange.mjs +3 -3
- package/ktor-ktor-io/io/ktor/utils/io/ByteChannel.mjs +126 -126
- package/ktor-ktor-io/io/ktor/utils/io/ByteChannel.mjs.map +1 -1
- package/ktor-ktor-io/io/ktor/utils/io/ByteChannelCtor.mjs +1 -1
- package/ktor-ktor-io/io/ktor/utils/io/ByteChannelScanner.mjs +53 -53
- package/ktor-ktor-io/io/ktor/utils/io/ByteReadChannel.mjs +13 -13
- package/ktor-ktor-io/io/ktor/utils/io/ByteReadChannelOperations.mjs +62 -62
- package/ktor-ktor-io/io/ktor/utils/io/ByteWriteChannel.mjs +2 -2
- package/ktor-ktor-io/io/ktor/utils/io/ByteWriteChannelOperations.mjs +32 -32
- package/ktor-ktor-io/io/ktor/utils/io/ByteWriteChannelOperations.mjs.map +1 -1
- package/ktor-ktor-io/io/ktor/utils/io/CloseToken.mjs +11 -11
- package/ktor-ktor-io/io/ktor/utils/io/CountedByteReadChannel.mjs +23 -23
- package/ktor-ktor-io/io/ktor/utils/io/Exceptions.mjs +12 -12
- package/ktor-ktor-io/io/ktor/utils/io/IODispatcher.jsAndWasmShared.mjs +1 -1
- package/ktor-ktor-io/io/ktor/utils/io/LineEndingMode.mjs +15 -15
- package/ktor-ktor-io/io/ktor/utils/io/SourceByteReadChannel.mjs +18 -18
- package/ktor-ktor-io/io/ktor/utils/io/charsets/Charset.js.mjs +37 -37
- package/ktor-ktor-io/io/ktor/utils/io/charsets/Encoding.mjs +4 -4
- package/ktor-ktor-io/io/ktor/utils/io/charsets/ISO88591.mjs +2 -2
- package/ktor-ktor-io/io/ktor/utils/io/charsets/TextDecoder.js.mjs +3 -3
- package/ktor-ktor-io/io/ktor/utils/io/charsets/TextDecoderFallback.js.mjs +5 -5
- package/ktor-ktor-io/io/ktor/utils/io/core/Buffer.mjs +1 -1
- package/ktor-ktor-io/io/ktor/utils/io/core/BytePacketBuilder.mjs +2 -2
- package/ktor-ktor-io/io/ktor/utils/io/core/ByteReadPacket.mjs +4 -4
- package/ktor-ktor-io/io/ktor/utils/io/core/Input.mjs +1 -1
- package/ktor-ktor-io/io/ktor/utils/io/core/Strings.mjs +10 -10
- package/ktor-ktor-io/io/ktor/utils/io/pool/ByteArrayPool.mjs +1 -1
- package/ktor-ktor-io/io/ktor/utils/io/pool/DefaultPool.mjs +28 -28
- package/ktor-ktor-io/io/ktor/utils/io/pool/DefaultPool.mjs.map +1 -1
- package/ktor-ktor-io/io/ktor/utils/io/pool/Pool.mjs +3 -3
- package/ktor-ktor-io/io/ktor/utils/io/pool/Pool.mjs.map +1 -1
- package/ktor-ktor-serialization/io/ktor/serialization/ContentConvertException.mjs +6 -6
- package/ktor-ktor-serialization/io/ktor/serialization/ContentConverter.mjs +37 -37
- package/ktor-ktor-serialization-kotlinx/io/ktor/serialization/kotlinx/Extensions.mjs +1 -1
- package/ktor-ktor-serialization-kotlinx/io/ktor/serialization/kotlinx/KotlinxSerializationConverter.mjs +79 -79
- package/ktor-ktor-serialization-kotlinx/io/ktor/serialization/kotlinx/KotlinxSerializationConverter.mjs.map +1 -1
- package/ktor-ktor-serialization-kotlinx/io/ktor/serialization/kotlinx/SerializerLookup.mjs +8 -8
- package/ktor-ktor-serialization-kotlinx/io/ktor/serialization/kotlinx/SerializerLookup.mjs.map +1 -1
- package/ktor-ktor-serialization-kotlinx-json/io/ktor/serialization/kotlinx/json/JsonSupport.mjs +7 -7
- package/ktor-ktor-utils/io/ktor/util/Attributes.mjs +13 -13
- package/ktor-ktor-utils/io/ktor/util/AttributesJs.mjs +15 -15
- package/ktor-ktor-utils/io/ktor/util/CaseInsensitiveMap.mjs +36 -36
- package/ktor-ktor-utils/io/ktor/util/CoroutinesUtils.mjs +2 -2
- package/ktor-ktor-utils/io/ktor/util/DelegatingMutableSet.mjs +37 -37
- package/ktor-ktor-utils/io/ktor/util/PlatformUtils.mjs +16 -16
- package/ktor-ktor-utils/io/ktor/util/StringValues.mjs +79 -79
- package/ktor-ktor-utils/io/ktor/util/Text.mjs +8 -8
- package/ktor-ktor-utils/io/ktor/util/collections/CopyOnWriteHashMap.mjs +3 -3
- package/ktor-ktor-utils/io/ktor/util/date/Date.mjs +106 -106
- package/ktor-ktor-utils/io/ktor/util/date/Date.mjs.map +1 -1
- package/ktor-ktor-utils/io/ktor/util/date/DateJs.mjs +5 -5
- package/ktor-ktor-utils/io/ktor/util/internal/LockFreeLinkedList.mjs +8 -8
- package/ktor-ktor-utils/io/ktor/util/logging/KtorSimpleLoggerJs.mjs +10 -10
- package/ktor-ktor-utils/io/ktor/util/logging/LoggerJs.mjs +1 -1
- package/ktor-ktor-utils/io/ktor/util/pipeline/DebugPipelineContext.mjs +29 -29
- package/ktor-ktor-utils/io/ktor/util/pipeline/DebugPipelineContext.mjs.map +1 -1
- package/ktor-ktor-utils/io/ktor/util/pipeline/PhaseContent.mjs +25 -25
- package/ktor-ktor-utils/io/ktor/util/pipeline/Pipeline.mjs +53 -53
- package/ktor-ktor-utils/io/ktor/util/pipeline/PipelineContext.mjs +1 -1
- package/ktor-ktor-utils/io/ktor/util/pipeline/PipelinePhase.mjs +3 -3
- package/ktor-ktor-utils/io/ktor/util/pipeline/PipelinePhaseRelation.mjs +2 -2
- package/ktor-ktor-utils/io/ktor/util/pipeline/SuspendFunctionGun.mjs +52 -52
- package/ktor-ktor-utils/io/ktor/util/pipeline/SuspendFunctionGun.mjs.map +1 -1
- package/ktor-ktor-utils/io/ktor/util/reflect/Type.mjs +9 -9
- package/ktor-ktor-utils/io/ktor/util/reflect/TypeInfoJs.mjs +1 -1
- package/ktor-ktor-websockets/io/ktor/websocket/CloseReason.mjs +16 -16
- package/ktor-ktor-websockets/io/ktor/websocket/FrameCommon.mjs +1 -1
- package/ktor-ktor-websockets/io/ktor/websocket/FrameCommon.mjs.map +1 -1
- package/ktor-ktor-websockets/io/ktor/websocket/FrameJs.mjs +31 -31
- package/ktor-ktor-websockets/io/ktor/websocket/FrameType.mjs +8 -8
- package/package.json +1 -1
- package/commons-commons-core/cash/atto/commons/AttoFuture.js.export.d.mts +0 -12
- package/commons-commons-core/cash/atto/commons/AttoFuture.js.export.mjs +0 -13
- package/commons-commons-core/cash/atto/commons/AttoFuture.js.mjs +0 -72
- package/commons-commons-core/cash/atto/commons/AttoFuture.js.mjs.map +0 -1
- package/commons-commons-core/cash/atto/commons/AttoSocketAddress.export.d.mts +0 -17
- package/commons-commons-core/cash/atto/commons/AttoSocketAddress.export.mjs +0 -13
- package/commons-commons-core/cash/atto/commons/AttoSocketAddress.mjs +0 -81
- package/commons-commons-core/cash/atto/commons/AttoSocketAddress.mjs.map +0 -1
- package/commons-commons-node/cash/atto/commons/node/AttoNodeClientAsync.export.d.mts +0 -21
- package/commons-commons-node/cash/atto/commons/node/AttoNodeClientAsync.mjs.map +0 -1
- package/commons-commons-node/cash/atto/commons/node/monitor/AttoAccountEntryMonitorAsync.mjs.map +0 -1
- package/commons-commons-node/cash/atto/commons/node/monitor/AttoAccountEntryMonitorAsyncBuilder.web.mjs.map +0 -1
- package/commons-commons-node/cash/atto/commons/node/monitor/AttoAccountMonitorAsync.mjs.map +0 -1
- package/commons-commons-node/cash/atto/commons/node/monitor/AttoTransactionMonitorAsync.mjs.map +0 -1
- package/commons-commons-node/cash/atto/commons/node/monitor/AttoTransactionMonitorAsyncBuilder.web.mjs.map +0 -1
- package/commons-commons-wallet/cash/atto/commons/wallet/AttoWalletAsync.export.d.mts +0 -26
- package/commons-commons-wallet/cash/atto/commons/wallet/AttoWalletAsync.mjs +0 -440
- package/commons-commons-wallet/cash/atto/commons/wallet/AttoWalletAsync.mjs.map +0 -1
- package/commons-commons-wallet/cash/atto/commons/wallet/AttoWalletAsyncBuilder.export.d.mts +0 -8
- package/commons-commons-wallet/cash/atto/commons/wallet/AttoWalletAsyncBuilder.export.mjs +0 -4
- package/commons-commons-wallet/cash/atto/commons/wallet/AttoWalletAsyncBuilder.mjs +0 -17
- package/commons-commons-wallet/cash/atto/commons/wallet/AttoWalletAsyncBuilder.mjs.map +0 -1
- package/commons-commons-worker/cash/atto/commons/worker/AttoWorkerAsync.export.mjs.map +0 -1
- /package/{commons-commons-wallet/cash/atto/commons/wallet/AttoWalletAsyncBuilder.export.mjs.map → commons-commons-core/cash/atto/commons/AttoSerializable.export.mjs.map} +0 -0
- /package/{commons-commons-core/cash/atto/commons/AttoFuture.js.export.mjs.map → commons-commons-node/cash/atto/commons/node/AttoNodeClientAsync.web.export.mjs.map} +0 -0
- /package/{commons-commons-core/cash/atto/commons/AttoSocketAddress.export.mjs.map → commons-commons-node/cash/atto/commons/node/monitor/AttoAccountEntryMonitorAsync.web.export.mjs.map} +0 -0
- /package/commons-commons-node/cash/atto/commons/node/{AttoNodeClientAsync.export.mjs.map → monitor/AttoAccountEntryMonitorAsyncBuilder.js.export.mjs.map} +0 -0
- /package/commons-commons-node/cash/atto/commons/node/monitor/{AttoAccountEntryMonitorAsync.export.mjs.map → AttoAccountMonitorAsync.web.export.mjs.map} +0 -0
- /package/commons-commons-node/cash/atto/commons/node/monitor/{AttoAccountEntryMonitorAsyncBuilder.web.export.mjs.map → AttoTransactionMonitorAsync.web.export.mjs.map} +0 -0
- /package/commons-commons-node/cash/atto/commons/node/monitor/{AttoAccountMonitorAsync.export.mjs.map → AttoTransactionMonitorAsyncBuilder.js.export.mjs.map} +0 -0
- /package/{commons-commons-node/cash/atto/commons/node/monitor/AttoTransactionMonitorAsync.export.mjs.map → commons-commons-wallet/cash/atto/commons/wallet/AttoWallet.export.mjs.map} +0 -0
- /package/{commons-commons-node/cash/atto/commons/node/monitor/AttoTransactionMonitorAsyncBuilder.web.export.mjs.map → commons-commons-wallet/cash/atto/commons/wallet/AttoWalletAsync.js.export.mjs.map} +0 -0
- /package/{commons-commons-wallet/cash/atto/commons/wallet/AttoWalletAsync.export.mjs.map → commons-commons-worker/cash/atto/commons/worker/AttoWorkerAsync.js.export.mjs.map} +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../../commons-wallet/src/commonMain/kotlin/cash/atto/commons/wallet/AttoWallet.kt","../../../../../../../../../../mnt/agent/work/44ec6e850d5c63f0/kotlinx-coroutines-core/common/src/sync/Mutex.kt","../../../../../commons-js/build/compileSync/js/main/productionLibrary/kotlin/commons-commons-wallet/cash/atto/commons/wallet/common/src/generated/_Collections.kt","../../../../../commons-js/build/compileSync/js/main/productionLibrary/kotlin/commons-commons-wallet/cash/atto/commons/wallet/src/kotlin/collections/Maps.kt","../../../../../commons-js/build/compileSync/js/main/productionLibrary/kotlin/commons-commons-wallet/cash/atto/commons/wallet/src/kotlin/util/Preconditions.kt","../../../../../commons-js/build/compileSync/js/main/productionLibrary/kotlin/commons-commons-wallet/cash/atto/commons/wallet/common/src/generated/_Maps.kt","../../../../../commons-js/build/compileSync/js/main/productionLibrary/kotlin/commons-commons-wallet/cash/atto/commons/wallet/js/src/kotlin/collectionJs.kt","../../../../../commons-js/build/compileSync/js/main/productionLibrary/kotlin/commons-commons-wallet/cash/atto/commons/wallet/unsigned/src/kotlin/UInt.kt","../../../../../commons-js/build/compileSync/js/main/productionLibrary/kotlin/commons-commons-wallet/cash/atto/commons/wallet/src/kotlin/util/Standard.kt","../../../../../commons-js/build/compileSync/js/main/productionLibrary/kotlin/commons-commons-wallet/cash/atto/commons/wallet/src/kotlin/time/Duration.kt"],"sourcesContent":[null,null,null,null,null,null,null,null,null,null],"ignoreList":[],"x_google_ignoreList":[],"names":["<get-logger>","<generator-withLock>","action","$completion","<generator-add>","accounts","item","<generator-contains>","index","address","<generator-get>","<generator-remove>","<generator-invoke>","account","timestamp","block","updatedAccount","transaction","message","<generator-openAccount>","indexes","indexMap","element","signer","attoAccountMap","newAccounts","<generator-closeAccount>","<generator-getAccount>","<generator-getAddress>","<generator-publish>","signature","work","<generator-send>","receiverAddress","amount","walletAccount","<generator-receive>","receivable","representativeAddress","<generator-change>","withLock","add","contains","get","remove","addressFlow","AttoWallet$openAccount$lambda","$walletAccount","$index","$timestamp","$receiverAddress","$amount","invoke","AttoWallet$send$slambda","AttoWallet$send$slambda$lambda","$representativeAddress","$receivable","AttoWallet$receive$slambda","AttoWallet$receive$slambda$lambda","AttoWallet$change$slambda","AttoWallet$change$slambda$lambda","client","worker","signerProvider","openAccount","fromIndex","toIndex","v","closeAccount","isOpen","getAccount","getAddress","publish","send","receive","receive$default","change","startAutoReceiver","<this>","monitor","dispatcher","minAmount","retryAfter","defaultRepresentativeAddressProvider","scope","job","bindJob","bindTo","logger$lambda","$defaultRepresentativeAddressProvider","startAutoReceiver$slambda","startAutoReceiver$slambda$lambda","$retryAfter","startAutoReceiver$slambda$lambda$lambda","$bindJob","bindTo$slambda","bindTo$slambda$lambda","toAdd","to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AAlBzF,UAAW,sB;QACC,MAAR,KAAQ,CAAR,KAAQ,KAAY,OAAZ,c;;;IAAT,S,CAA+B;A,UACvB,QAAR,KAAQ,CAAR,KAAQ,KAAQ,OAAR,c;;;IACZ,C;EACJ,C;MAEgB,mC;SAAA,wB,EAAU;A,QAArBA,YAAW,wB;QACA,QAAR,KAAQ,CAAR,KAAQ,KAAY,SAAZ,c;;;IAAR,U,CAA8B;A,UACtB,QAAR,KAAQ,CAAR,KAAQ,KAAe,SAAf,c;;;IACZ,C;EACJ,C;EAAA,oB;AAAA,C;;;;;kBAnBR0F,Q;;;SAKa/C,CAAE,iB,EAAFjD,WAAAiD,E;;O;SApVjB,E,EAAAjD,W;;;;;;;;;yBAoViB4F,CALbI,QAKaJ,E;;UAAAC,CAAE,iB,EAAF7F,WAAA6F,0C;;;C;8BAeqBA,CAApBI,EAAoBJ,E;SAAAK,CAAAA,KAAG,8BAAHA,GAAgC,EAAhCA,W;C;;;;;SAAtBjD,CAAA,W,EAAE,C,EAAFjD,WAAAiD,EAAO;A,kBAAA,Y;QAAO,OAAK,CAAL,EAAQ,wBAAR,C;QAA2C,oB;MAAA,C;SAnWzE,E,EAAA,E,EAAAjD,W;;;;;;;;;;yBAmWgB4F,CAAAA,E;;UAAAC,CAAA,W,EAAE,C,EAAF7F,WAAA6F,uC;;;C;;+CAnWhBM,CAAAA,E;;;;aA2CmC,OAAO,aAAP,C;;C;;;;;;;;"}
|
|
1
|
+
{"version":3,"sources":["../../../../../commons-wallet/src/commonMain/kotlin/cash/atto/commons/wallet/AttoWallet.kt","../../../../../../../../../../mnt/agent/work/44ec6e850d5c63f0/kotlinx-coroutines-core/common/src/sync/Mutex.kt","../../../../../commons-js/build/compileSync/js/main/productionLibrary/kotlin/commons-commons-wallet/cash/atto/commons/wallet/common/src/generated/_Collections.kt","../../../../../commons-js/build/compileSync/js/main/productionLibrary/kotlin/commons-commons-wallet/cash/atto/commons/wallet/src/kotlin/collections/Maps.kt","../../../../../commons-js/build/compileSync/js/main/productionLibrary/kotlin/commons-commons-wallet/cash/atto/commons/wallet/src/kotlin/util/Preconditions.kt","../../../../../commons-js/build/compileSync/js/main/productionLibrary/kotlin/commons-commons-wallet/cash/atto/commons/wallet/common/src/generated/_Maps.kt","../../../../../commons-js/build/compileSync/js/main/productionLibrary/kotlin/commons-commons-wallet/cash/atto/commons/wallet/js/src/kotlin/collectionJs.kt","../../../../../commons-js/build/compileSync/js/main/productionLibrary/kotlin/commons-commons-wallet/cash/atto/commons/wallet/unsigned/src/kotlin/UInt.kt","../../../../../commons-js/build/compileSync/js/main/productionLibrary/kotlin/commons-commons-wallet/cash/atto/commons/wallet/src/kotlin/util/Standard.kt","../../../../../commons-js/build/compileSync/js/main/productionLibrary/kotlin/commons-commons-wallet/cash/atto/commons/wallet/src/kotlin/time/Duration.kt"],"sourcesContent":["package cash.atto.commons.wallet\n\nimport cash.atto.commons.AttoAccount\nimport cash.atto.commons.AttoAddress\nimport cash.atto.commons.AttoAmount\nimport cash.atto.commons.AttoBlock\nimport cash.atto.commons.AttoInstant\nimport cash.atto.commons.AttoJob\nimport cash.atto.commons.AttoKeyIndex\nimport cash.atto.commons.AttoReceivable\nimport cash.atto.commons.AttoSeed\nimport cash.atto.commons.AttoSigner\nimport cash.atto.commons.AttoTransaction\nimport cash.atto.commons.compareTo\nimport cash.atto.commons.node.AttoNodeClient\nimport cash.atto.commons.node.monitor.AttoAccountMonitor\nimport cash.atto.commons.toAttoAmount\nimport cash.atto.commons.toAttoIndex\nimport cash.atto.commons.toSigner\nimport cash.atto.commons.utils.JsExportForJs\nimport cash.atto.commons.worker.AttoWorker\nimport io.github.oshai.kotlinlogging.KotlinLogging\nimport kotlinx.coroutines.CoroutineDispatcher\nimport kotlinx.coroutines.CoroutineScope\nimport kotlinx.coroutines.Dispatchers\nimport kotlinx.coroutines.ExperimentalCoroutinesApi\nimport kotlinx.coroutines.Job\nimport kotlinx.coroutines.delay\nimport kotlinx.coroutines.flow.Flow\nimport kotlinx.coroutines.flow.MutableStateFlow\nimport kotlinx.coroutines.flow.asStateFlow\nimport kotlinx.coroutines.flow.buffer\nimport kotlinx.coroutines.flow.catch\nimport kotlinx.coroutines.flow.launchIn\nimport kotlinx.coroutines.flow.onCompletion\nimport kotlinx.coroutines.flow.onEach\nimport kotlinx.coroutines.flow.retryWhen\nimport kotlinx.coroutines.flow.runningFold\nimport kotlinx.coroutines.sync.Mutex\nimport kotlinx.coroutines.sync.withLock\nimport kotlin.concurrent.Volatile\nimport kotlin.time.Duration\nimport kotlin.time.Duration.Companion.seconds\n\nprivate val logger = KotlinLogging.logger {}\n\nclass AttoWallet(\n private val client: AttoNodeClient,\n private val worker: AttoWorker,\n private val signerProvider: suspend (AttoKeyIndex) -> AttoSigner,\n) {\n companion object {}\n\n private val mutex = Mutex()\n private val accounts = WalletAccounts()\n\n suspend fun openAccount(indexes: Collection<AttoKeyIndex>): Collection<AttoWalletAccount> {\n if (indexes.isEmpty()) return emptyList()\n mutex.withLock {\n val indexMap = mutableMapOf<AttoAddress, AttoKeyIndex>()\n\n indexes.forEach {\n val signer = signerProvider.invoke(it)\n indexMap[signer.address] = it\n }\n\n val attoAccountMap =\n client\n .account(indexMap.keys.toList())\n .asSequence()\n .map { it.address to it }\n .toMap()\n\n val newAccounts =\n indexMap.map {\n AttoWalletAccount(it.value, it.key, attoAccountMap[it.key])\n }\n\n accounts.add(newAccounts)\n\n return newAccounts\n }\n }\n\n suspend fun openAccount(\n fromIndex: AttoKeyIndex,\n toIndex: AttoKeyIndex,\n ): Collection<AttoWalletAccount> {\n require(fromIndex <= toIndex) { \"fromIndex ($fromIndex) must be less than or equal to toIndex ($toIndex)\" }\n val indexes =\n buildList {\n var v = fromIndex\n while (v <= toIndex) {\n add(v)\n v = AttoKeyIndex(v.value + 1U)\n }\n }\n return openAccount(indexes)\n }\n\n suspend fun openAccount(index: AttoKeyIndex): AttoWalletAccount = openAccount(index, index).first()\n\n suspend fun closeAccount(index: AttoKeyIndex) {\n mutex.withLock {\n accounts.remove(index)\n }\n }\n\n fun addressFlow(): Flow<Set<AttoAddress>> = accounts.addressFlow()\n\n suspend fun isOpen(index: AttoKeyIndex) = accounts.contains(index)\n\n suspend fun isOpen(address: AttoAddress) = accounts.contains(address)\n\n suspend fun getAccount(index: AttoKeyIndex) = accounts.get(index).account\n\n suspend fun getAccount(address: AttoAddress) = accounts.get(address).account\n\n suspend fun getAddress(index: AttoKeyIndex) = accounts.get(index).address\n\n suspend fun publish(\n index: AttoKeyIndex,\n block: AttoBlock,\n ): AttoTransaction {\n val signature = signerProvider.invoke(index).sign(block)\n val work = worker.work(block)\n\n val transaction = AttoTransaction(block, signature, work)\n\n client.publish(transaction)\n\n return transaction\n }\n\n suspend fun send(\n index: AttoKeyIndex,\n receiverAddress: AttoAddress,\n amount: AttoAmount,\n timestamp: AttoInstant? = null,\n ): AttoTransaction {\n val walletAccount = accounts.get(index)\n\n return walletAccount.withLock {\n val account = walletAccount.account ?: throw IllegalStateException(\"Account is not open yet for index $index\")\n\n val timestamp = timestamp ?: client.now()\n\n val (block, updatedAccount) = account.send(receiverAddress.algorithm, receiverAddress.publicKey, amount, timestamp)\n\n val transaction = publish(index, block)\n\n walletAccount.account = updatedAccount\n\n return@withLock transaction\n }\n }\n\n suspend fun send(\n address: AttoAddress,\n receiverAddress: AttoAddress,\n amount: AttoAmount,\n timestamp: AttoInstant? = null,\n ): AttoTransaction = send(accounts.get(address).index, receiverAddress, amount, timestamp)\n\n suspend fun receive(\n receivable: AttoReceivable,\n representativeAddress: AttoAddress? = null,\n timestamp: AttoInstant? = null,\n ): AttoTransaction {\n val walletAccount = accounts.get(receivable.receiverAddress)\n\n return walletAccount.withLock {\n val account = walletAccount.account\n val timestamp = timestamp ?: client.now()\n\n val (block, updatedAccount) =\n if (account == null) {\n require(representativeAddress != null) { \"Representative address must be provided for a new account\" }\n AttoAccount.open(representativeAddress.algorithm, representativeAddress.publicKey, receivable, timestamp)\n } else {\n account.receive(receivable, timestamp)\n }\n\n val transaction = publish(walletAccount.index, block)\n\n walletAccount.account = updatedAccount\n\n return@withLock transaction\n }\n }\n\n suspend fun change(\n index: AttoKeyIndex,\n representativeAddress: AttoAddress,\n timestamp: AttoInstant? = null,\n ): AttoTransaction {\n val walletAccount = accounts.get(index)\n\n return walletAccount.withLock {\n val account = walletAccount.account ?: throw IllegalStateException(\"Account is not open yet for index $index\")\n\n val timestamp = timestamp ?: client.now()\n\n val (block, updatedAccount) = account.change(representativeAddress.algorithm, representativeAddress.publicKey, timestamp)\n\n val transaction = publish(index, block)\n\n walletAccount.account = updatedAccount\n\n return@withLock transaction\n }\n }\n\n private class WalletAccounts {\n private val accountAddressMap: MutableMap<AttoAddress, AttoWalletAccount> = mutableMapOf()\n private val accountIndexMap: MutableMap<AttoKeyIndex, AttoWalletAccount> = mutableMapOf()\n private val addressesState = MutableStateFlow<Set<AttoAddress>>(emptySet())\n\n private val mutex = Mutex()\n\n suspend fun add(accounts: Collection<AttoWalletAccount>) {\n if (accounts.isEmpty()) return\n mutex.withLock {\n val accounts =\n accounts.map {\n if (accountIndexMap.containsKey(it.index)) {\n throw IllegalArgumentException(\"Account already exists for index ${it.index}\")\n }\n it.index to it\n }\n\n accountAddressMap += accounts.map { it.second.address to it.second }\n accountIndexMap += accounts.toMap()\n addressesState.value = accountAddressMap.keys.toSet()\n }\n }\n\n suspend fun add(account: AttoWalletAccount) = add(listOf(account))\n\n suspend fun contains(index: AttoKeyIndex) = mutex.withLock { accountIndexMap.containsKey(index) }\n\n suspend fun contains(address: AttoAddress) = mutex.withLock { accountAddressMap.containsKey(address) }\n\n suspend fun get(index: AttoKeyIndex): AttoWalletAccount =\n mutex.withLock {\n accountIndexMap[index] ?: throw IllegalArgumentException(\"Account doesn't exist for index $index\")\n }\n\n suspend fun get(address: AttoAddress): AttoWalletAccount =\n mutex.withLock {\n accountAddressMap[address] ?: throw IllegalArgumentException(\"Account doesn't exist for address $address\")\n }\n\n suspend fun remove(index: AttoKeyIndex) {\n mutex.withLock {\n accountIndexMap.remove(index)?.let {\n accountAddressMap.remove(it.address)\n }\n addressesState.value = accountAddressMap.keys.toSet()\n }\n }\n\n suspend fun remove(address: AttoAddress) {\n mutex.withLock {\n accountAddressMap.remove(address)?.let {\n accountIndexMap.remove(it.index)\n }\n addressesState.value = accountAddressMap.keys.toSet()\n }\n }\n\n fun addressFlow(): Flow<Set<AttoAddress>> = addressesState.asStateFlow()\n }\n}\n\n@JsExportForJs\nclass AttoWalletAccount(\n val index: AttoKeyIndex,\n val address: AttoAddress,\n @Volatile var account: AttoAccount? = null,\n) {\n private val mutex = Mutex()\n\n internal suspend fun <T> withLock(action: suspend () -> T): T =\n mutex.withLock {\n action.invoke()\n }\n}\n\nfun AttoWallet.Companion.create(\n client: AttoNodeClient,\n worker: AttoWorker,\n signerProvider: suspend (AttoKeyIndex) -> AttoSigner,\n): AttoWallet = AttoWallet(client, worker, signerProvider)\n\nfun AttoWallet.Companion.create(\n client: AttoNodeClient,\n worker: AttoWorker,\n signerProvider: (AttoKeyIndex) -> AttoSigner,\n): AttoWallet = AttoWallet(client, worker, signerProvider)\n\nfun AttoWallet.Companion.create(\n client: AttoNodeClient,\n worker: AttoWorker,\n seed: AttoSeed,\n): AttoWallet = AttoWallet(client, worker, seed::toSigner)\n\nfun AttoWallet.Companion.create(\n client: AttoNodeClient,\n worker: AttoWorker,\n signer: AttoSigner,\n): AttoWallet =\n AttoWallet(client, worker) {\n require(it == 0U.toAttoIndex()) { \"Wallet created from a signer or private key can only have one account\" }\n signer\n }\n\n/**\n * Keeps the monitor\u2019s membership aligned with this wallet\u2019s addresses.\n *\n * Behavior\n * - Subscribes to the wallet\u2019s address snapshots and computes diffs over time.\n * - For any new address in the wallet, calls `monitor.monitor(address)`.\n * - For any address removed from the wallet, calls `monitor.stopMonitoring(address)`.\n * - After convergence: `monitor.isMonitored(a) == (a in latest wallet addresses)`.\n *\n * Scope & Lifecycle\n * - Returns a Job; cancel it to stop syncing.\n * - The flow should not fail.\n *\n * Notes\n * - Initial offsets/heights are decided by the monitor\u2019s own `monitor(address)` policy.\n * - Addresses that were never part of this wallet are **not** touched by this binding.\n */\n@OptIn(ExperimentalCoroutinesApi::class)\nfun AttoWallet.bindTo(\n scope: CoroutineScope,\n monitor: AttoAccountMonitor,\n): Job =\n addressFlow()\n .runningFold(emptySet<AttoAddress>() to emptySet<AttoAddress>()) { (previous, _), next ->\n next to previous\n }.onEach { (next, previous) ->\n val toAdd = next - previous\n val toRemove = previous - next\n\n for (address in toAdd) {\n if (!monitor.isMonitored(address)) {\n monitor.monitor(address)\n }\n }\n\n for (address in toRemove) {\n if (monitor.isMonitored(address)) {\n monitor.stopMonitoring(address)\n }\n }\n }.catch { e -> logger.warn(e) { \"Bind to monitor failed with $e\" } }\n .launchIn(scope)\n\n/**\n * Convenience form of [bindTo] that runs on a dedicated dispatcher.\n *\n * Lifecycle\n * - Returns a Job; cancel it to stop syncing. No parent scope is attached.\n *\n * When to use\n * - Simple CLIs or demos where you don\u2019t have an existing app scope.\n * - For apps with a lifecycle (Android, servers), prefer the scoped overload.\n */\nfun AttoWallet.bindTo(\n dispatcher: CoroutineDispatcher = Dispatchers.Default,\n monitor: AttoAccountMonitor,\n): Job {\n val scope = CoroutineScope(dispatcher)\n return bindTo(scope, monitor)\n}\n\n/**\n * Automatically receives incoming funds for all wallet addresses and ensures the monitor\n * stays in sync with the wallet while doing so.\n *\n * Behavior\n * - First binds the monitor to the wallet via [bindTo], so membership tracks opens/closes.\n * - Subscribes to `monitor.receivableStream(minAmount)` and calls `receive(...)` for each receivable.\n * - On processing failure, logs and retries after [retryAfter] until cancelled.\n *\n * Scope & Lifecycle\n * - Controlled by [scope]. Cancel the returned Job to stop both the auto-receiver and the binding\n * (the binding job is cancelled on completion).\n *\n * Assumptions\n * - Receivables emitted by the monitor belong to this wallet\u2019s addresses; if the monitor also includes\n * foreign addresses, `receive(...)` may fail for those.\n * - When opening a new account on first receive, [defaultRepresentativeAddressProvider] is used.\n */\nfun AttoWallet.startAutoReceiver(\n scope: CoroutineScope,\n monitor: AttoAccountMonitor,\n minAmount: AttoAmount = 1UL.toAttoAmount(),\n retryAfter: Duration = 10.seconds,\n defaultRepresentativeAddressProvider: () -> AttoAddress,\n): Job {\n val bindJob = bindTo(scope, monitor)\n return monitor\n .receivableStream(minAmount)\n .buffer()\n .onEach {\n receive(it, defaultRepresentativeAddressProvider.invoke())\n }.retryWhen { e, _ ->\n logger.warn(e) { \"Failed to collect receivables. Retrying in $retryAfter...\" }\n delay(retryAfter)\n true\n }.onCompletion { bindJob.cancel() }\n .launchIn(scope)\n}\n\n/**\n * Convenience form of [startAutoReceiver] that runs on a dedicated dispatcher.\n *\n * Lifecycle\n * - Returns a Job; cancel it to stop auto-receiving and its internal binding. No parent scope is attached.\n *\n * When to use\n * - Quick starts and tools without an app-managed scope. For long-running apps, prefer the scoped overload.\n */\nfun AttoWallet.startAutoReceiver(\n monitor: AttoAccountMonitor,\n dispatcher: CoroutineDispatcher = Dispatchers.Default,\n minAmount: AttoAmount = 1UL.toAttoAmount(),\n retryAfter: Duration = 10.seconds,\n defaultRepresentativeAddressProvider: () -> AttoAddress,\n): AttoJob {\n val scope = CoroutineScope(dispatcher)\n val job = startAutoReceiver(scope, monitor, minAmount, retryAfter, defaultRepresentativeAddressProvider)\n return AttoJob(job)\n}\n",null,null,null,null,null,null,null,null,null],"ignoreList":[],"x_google_ignoreList":[],"names":["<get-logger>","<generator-withLock>","action","$completion","index","address","account","<get-index>","<get-address>","<set-account>","<set-?>","<get-account>","withLock","<generator-add>","accounts","item","<generator-contains>","<generator-get>","<generator-remove>","<generator-invoke>","timestamp","block","updatedAccount","transaction","message","<generator-openAccount>","indexes","indexMap","element","signer","attoAccountMap","newAccounts","<generator-closeAccount>","<generator-getAccount>","<generator-getAddress>","<generator-publish>","signature","work","<generator-send>","receiverAddress","amount","walletAccount","<generator-receive>","receivable","representativeAddress","<generator-change>","add","contains","get","remove","addressFlow","AttoWallet$openAccount$lambda","$walletAccount","$index","$timestamp","$receiverAddress","$amount","invoke","AttoWallet$send$slambda","AttoWallet$send$slambda$lambda","$representativeAddress","$receivable","AttoWallet$receive$slambda","AttoWallet$receive$slambda$lambda","AttoWallet$change$slambda","AttoWallet$change$slambda$lambda","client","worker","signerProvider","openAccount","fromIndex","toIndex","v","closeAccount","isOpen","getAccount","getAddress","publish","send","receive","receive$default","change","startAutoReceiver","<this>","monitor","dispatcher","minAmount","retryAfter","defaultRepresentativeAddressProvider","scope","job","bindJob","bindTo","logger$lambda","$defaultRepresentativeAddressProvider","startAutoReceiver$slambda","startAutoReceiver$slambda$lambda","$retryAfter","startAutoReceiver$slambda$lambda$lambda","$bindJob","bindTo$slambda","bindTo$slambda$lambda","toAdd","toRemove","$monitor","$e","bindTo$slambda$lambda$lambda","<init properties AttoWallet.kt>"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;mBA4CQA,CAAAA,EAAA;A;EAAA,a;AAAS,C;;qCA+OIC,CAAA,K,EAAiBC,M,EAAjBC,WAAAF,EACb;A;eAAA,K,CAAA,K;MCpKJ,iBAJuD,IAIvD,c;;;;EACO,I;QDoKQ,QAAP,MAAO,a;;;YAAA,K;WClKL;A,IACN,WARmD,IAQnD,C;EACJ,C;EDiKK,OCrKE,K;ADqKH,C;;;;;kBATJG,K,EACAC,O,EACUC,O;qCAA4B,I;QAFtC,kB;QACA,sB;QACA,sB;QAEoB,oB;;SAJpBC,CAAAA,EAAA;A,QAAA,iB;MAAsB,C;SACtBC,CAAAA,EAAA;A,QAAA,mB;MAAuB,C;SACbC,CAAAC,cAAAD,EAAA;A,QAAA,6B;MAA+B,C;SAA/BE,CAAAA,EAAA;A,QAAA,mB;MAA+B,C;SAIxBC,CAAiBV,M,EAAjBC,WAAAS,E;;O;;;;;;;gCA/DLC,CAAA,K,EAAQC,Q,EAARX,WAAAU,EAAiD;A,EACjD,IAAA,QAAS,KAAT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,KAAG,8BAAHA,GAAgC,EAAhCA,W;C;;;;;SAAtBjD,CAAA,W,EAAE,C,EAAFtD,WAAAsD,EAAO;A,kBAAA,Y;QAAO,OAAK,CAAL,EAAQ,wBAAR,C;QAA2C,oB;MAAA,C;SArWzE,E,EAAA,E,EAAAtD,W;;;;;;;;;;yBAqWgBiG,CAAAA,E;;UAAAC,CAAA,W,EAAE,C,EAAFlG,WAAAkG,uC;;;C;;+CArWhBM,CAAAA,E;;;;aA4CmC,OAAO,aAAP,C;;C;;;;;;;;"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
type Nullable<T> = T | null | undefined
|
|
2
|
+
declare function KtSingleton<T>(): T & (abstract new() => any);
|
|
3
|
+
export declare class AttoWalletAsync {
|
|
4
|
+
private constructor();
|
|
5
|
+
openAccountCollection(indexes: Array<AttoKeyIndex>): Promise<Array<AttoWalletAccount>>;
|
|
6
|
+
openAccountRange(fromIndex: AttoKeyIndex, toIndex: AttoKeyIndex): Promise<Array<AttoWalletAccount>>;
|
|
7
|
+
openAccount(index: AttoKeyIndex): Promise<AttoWalletAccount>;
|
|
8
|
+
closeAccount(index: AttoKeyIndex): Promise<void>;
|
|
9
|
+
isOpenByIndex(index: AttoKeyIndex): Promise<boolean>;
|
|
10
|
+
isOpenByAddress(address: AttoAddress): Promise<boolean>;
|
|
11
|
+
getAccountByIndex(index: AttoKeyIndex): Promise<Nullable<AttoAccount>>;
|
|
12
|
+
getAccountByAddress(address: AttoAddress): Promise<Nullable<AttoAccount>>;
|
|
13
|
+
getAddress(index: AttoKeyIndex): Promise<AttoAddress>;
|
|
14
|
+
publish(index: AttoKeyIndex, block: AttoBlock): Promise<AttoTransaction>;
|
|
15
|
+
sendByIndex(index: AttoKeyIndex, receiverAddress: AttoAddress, amount: AttoAmount, timestamp?: Nullable<AttoInstant>): Promise<AttoTransaction>;
|
|
16
|
+
sendByAddress(address: AttoAddress, receiverAddress: AttoAddress, amount: AttoAmount, timestamp?: Nullable<AttoInstant>): Promise<AttoTransaction>;
|
|
17
|
+
receive(receivable: AttoReceivable, representativeAddress?: Nullable<AttoAddress>, timestamp?: Nullable<AttoInstant>): Promise<AttoTransaction>;
|
|
18
|
+
change(index: AttoKeyIndex, representativeAddress: AttoAddress, timestamp?: Nullable<AttoInstant>): Promise<AttoTransaction>;
|
|
19
|
+
}
|
|
20
|
+
export declare namespace AttoWalletAsync {
|
|
21
|
+
/** @deprecated $metadata$ is used for internal purposes, please don't use it in your code, because it can be removed at any moment */
|
|
22
|
+
namespace $metadata$ {
|
|
23
|
+
const constructor: abstract new () => AttoWalletAsync;
|
|
24
|
+
}
|
|
25
|
+
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AttoWalletAsync4aef45xgjaot as AttoWalletAsync } from './AttoWalletAsync.mjs';
|
|
1
|
+
import { AttoWalletAsync4aef45xgjaot as AttoWalletAsync } from './AttoWalletAsync.js.mjs';
|
|
2
2
|
//region block: imports
|
|
3
3
|
//endregion
|
|
4
4
|
//region block: pre-declaration
|
|
@@ -10,4 +10,4 @@ export {
|
|
|
10
10
|
};
|
|
11
11
|
//endregion
|
|
12
12
|
|
|
13
|
-
//# sourceMappingURL=AttoWalletAsync.export.mjs.map
|
|
13
|
+
//# sourceMappingURL=AttoWalletAsync.js.export.mjs.map
|
|
@@ -0,0 +1,405 @@
|
|
|
1
|
+
import {
|
|
2
|
+
await1tchdi81j7msa as await_0,
|
|
3
|
+
promisify1z0ncraq1ipzh as promisify,
|
|
4
|
+
suspendOrReturn49pspzlx5djv as suspendOrReturn,
|
|
5
|
+
} from '../../../../../kotlin-kotlin-stdlib/kotlin/coroutines/intrinsics/IntrinsicsJs.mjs';
|
|
6
|
+
import { get_COROUTINE_SUSPENDED3ujt3p13qm4iy as get_COROUTINE_SUSPENDED } from '../../../../../kotlin-kotlin-stdlib/kotlin/coroutines/intrinsics/Intrinsics.mjs';
|
|
7
|
+
import { protoOf180f3jzyo7rfj as protoOf } from '../../../../../kotlin-kotlin-stdlib/kotlin/js/coreRuntime.mjs';
|
|
8
|
+
import { toList383f556t1dixk as toList } from '../../../../../kotlin-kotlin-stdlib/kotlin/collections/_Arrays.mjs';
|
|
9
|
+
import { copyToArray2j022khrow2yi as copyToArray } from '../../../../../kotlin-kotlin-stdlib/kotlin/collections/collectionJs.mjs';
|
|
10
|
+
import { Unit_instance28fytmsmm6r23 as Unit_instance } from '../../../../../kotlin-kotlin-stdlib/kotlin/Unit.mjs';
|
|
11
|
+
import { VOID3gxj6tk5isa35 as VOID } from '../../../../../kotlin-kotlin-stdlib/kotlin/js/void.mjs';
|
|
12
|
+
import { initMetadataForClassbxx6q50dy2s7 as initMetadataForClass } from '../../../../../kotlin-kotlin-stdlib/kotlin/js/metadataUtils.mjs';
|
|
13
|
+
//region block: imports
|
|
14
|
+
//endregion
|
|
15
|
+
//region block: pre-declaration
|
|
16
|
+
//endregion
|
|
17
|
+
function *_generator_openAccount$suspendBridge__dbc0q8($this, indexes, $completion) {
|
|
18
|
+
var tmp;
|
|
19
|
+
if ($this.openAccountCollection === protoOf(AttoWalletAsync()).openAccountCollection) {
|
|
20
|
+
var tmp_0 = $this.c3r(indexes, $completion);
|
|
21
|
+
if (tmp_0 === get_COROUTINE_SUSPENDED())
|
|
22
|
+
tmp_0 = yield tmp_0;
|
|
23
|
+
tmp = tmp_0;
|
|
24
|
+
} else {
|
|
25
|
+
var tmp_1 = await_0($this.openAccountCollection(indexes), $completion);
|
|
26
|
+
if (tmp_1 === get_COROUTINE_SUSPENDED())
|
|
27
|
+
tmp_1 = yield tmp_1;
|
|
28
|
+
tmp = tmp_1;
|
|
29
|
+
}
|
|
30
|
+
return tmp;
|
|
31
|
+
}
|
|
32
|
+
function *_generator_openAccount__127imp($this, indexes, $completion) {
|
|
33
|
+
var tmp = $this.b3r_1.d3q(toList(indexes), $completion);
|
|
34
|
+
if (tmp === get_COROUTINE_SUSPENDED())
|
|
35
|
+
tmp = yield tmp;
|
|
36
|
+
// Inline function 'kotlin.collections.toTypedArray' call
|
|
37
|
+
var this_0 = tmp;
|
|
38
|
+
return copyToArray(this_0);
|
|
39
|
+
}
|
|
40
|
+
function *_generator_openAccount$suspendBridge__dbc0q8_0($this, fromIndex, toIndex, $completion) {
|
|
41
|
+
var tmp;
|
|
42
|
+
if ($this.openAccountRange === protoOf(AttoWalletAsync()).openAccountRange) {
|
|
43
|
+
var tmp_0 = $this.v3p(fromIndex, toIndex, $completion);
|
|
44
|
+
if (tmp_0 === get_COROUTINE_SUSPENDED())
|
|
45
|
+
tmp_0 = yield tmp_0;
|
|
46
|
+
tmp = tmp_0;
|
|
47
|
+
} else {
|
|
48
|
+
var tmp_1 = await_0($this.openAccountRange(fromIndex, toIndex), $completion);
|
|
49
|
+
if (tmp_1 === get_COROUTINE_SUSPENDED())
|
|
50
|
+
tmp_1 = yield tmp_1;
|
|
51
|
+
tmp = tmp_1;
|
|
52
|
+
}
|
|
53
|
+
return tmp;
|
|
54
|
+
}
|
|
55
|
+
function *_generator_openAccount__127imp_0($this, fromIndex, toIndex, $completion) {
|
|
56
|
+
var tmp = $this.b3r_1.v3p(fromIndex, toIndex, $completion);
|
|
57
|
+
if (tmp === get_COROUTINE_SUSPENDED())
|
|
58
|
+
tmp = yield tmp;
|
|
59
|
+
// Inline function 'kotlin.collections.toTypedArray' call
|
|
60
|
+
var this_0 = tmp;
|
|
61
|
+
return copyToArray(this_0);
|
|
62
|
+
}
|
|
63
|
+
function *_generator_openAccount$suspendBridge__dbc0q8_1($this, index, $completion) {
|
|
64
|
+
var tmp;
|
|
65
|
+
if ($this.openAccount === protoOf(AttoWalletAsync()).openAccount) {
|
|
66
|
+
var tmp_0 = $this.e3q(index, $completion);
|
|
67
|
+
if (tmp_0 === get_COROUTINE_SUSPENDED())
|
|
68
|
+
tmp_0 = yield tmp_0;
|
|
69
|
+
tmp = tmp_0;
|
|
70
|
+
} else {
|
|
71
|
+
var tmp_1 = await_0($this.openAccount(index), $completion);
|
|
72
|
+
if (tmp_1 === get_COROUTINE_SUSPENDED())
|
|
73
|
+
tmp_1 = yield tmp_1;
|
|
74
|
+
tmp = tmp_1;
|
|
75
|
+
}
|
|
76
|
+
return tmp;
|
|
77
|
+
}
|
|
78
|
+
function *_generator_closeAccount$suspendBridge__36xmlu($this, index, $completion) {
|
|
79
|
+
if ($this.closeAccount === protoOf(AttoWalletAsync()).closeAccount) {
|
|
80
|
+
var tmp = $this.f3q(index, $completion);
|
|
81
|
+
if (tmp === get_COROUTINE_SUSPENDED())
|
|
82
|
+
tmp = yield tmp;
|
|
83
|
+
} else {
|
|
84
|
+
var tmp_0 = await_0($this.closeAccount(index), $completion);
|
|
85
|
+
if (tmp_0 === get_COROUTINE_SUSPENDED())
|
|
86
|
+
tmp_0 = yield tmp_0;
|
|
87
|
+
}
|
|
88
|
+
return Unit_instance;
|
|
89
|
+
}
|
|
90
|
+
function *_generator_isOpen$suspendBridge__o0lc8d($this, index, $completion) {
|
|
91
|
+
var tmp;
|
|
92
|
+
if ($this.isOpenByIndex === protoOf(AttoWalletAsync()).isOpenByIndex) {
|
|
93
|
+
var tmp_0 = $this.g3q(index, $completion);
|
|
94
|
+
if (tmp_0 === get_COROUTINE_SUSPENDED())
|
|
95
|
+
tmp_0 = yield tmp_0;
|
|
96
|
+
tmp = tmp_0;
|
|
97
|
+
} else {
|
|
98
|
+
var tmp_1 = await_0($this.isOpenByIndex(index), $completion);
|
|
99
|
+
if (tmp_1 === get_COROUTINE_SUSPENDED())
|
|
100
|
+
tmp_1 = yield tmp_1;
|
|
101
|
+
tmp = tmp_1;
|
|
102
|
+
}
|
|
103
|
+
return tmp;
|
|
104
|
+
}
|
|
105
|
+
function *_generator_isOpen$suspendBridge__o0lc8d_0($this, address, $completion) {
|
|
106
|
+
var tmp;
|
|
107
|
+
if ($this.isOpenByAddress === protoOf(AttoWalletAsync()).isOpenByAddress) {
|
|
108
|
+
var tmp_0 = $this.h3q(address, $completion);
|
|
109
|
+
if (tmp_0 === get_COROUTINE_SUSPENDED())
|
|
110
|
+
tmp_0 = yield tmp_0;
|
|
111
|
+
tmp = tmp_0;
|
|
112
|
+
} else {
|
|
113
|
+
var tmp_1 = await_0($this.isOpenByAddress(address), $completion);
|
|
114
|
+
if (tmp_1 === get_COROUTINE_SUSPENDED())
|
|
115
|
+
tmp_1 = yield tmp_1;
|
|
116
|
+
tmp = tmp_1;
|
|
117
|
+
}
|
|
118
|
+
return tmp;
|
|
119
|
+
}
|
|
120
|
+
function *_generator_getAccount$suspendBridge__s30r1s($this, index, $completion) {
|
|
121
|
+
var tmp;
|
|
122
|
+
if ($this.getAccountByIndex === protoOf(AttoWalletAsync()).getAccountByIndex) {
|
|
123
|
+
var tmp_0 = $this.i3q(index, $completion);
|
|
124
|
+
if (tmp_0 === get_COROUTINE_SUSPENDED())
|
|
125
|
+
tmp_0 = yield tmp_0;
|
|
126
|
+
tmp = tmp_0;
|
|
127
|
+
} else {
|
|
128
|
+
var tmp_1 = await_0($this.getAccountByIndex(index), $completion);
|
|
129
|
+
if (tmp_1 === get_COROUTINE_SUSPENDED())
|
|
130
|
+
tmp_1 = yield tmp_1;
|
|
131
|
+
tmp = tmp_1;
|
|
132
|
+
}
|
|
133
|
+
return tmp;
|
|
134
|
+
}
|
|
135
|
+
function *_generator_getAccount$suspendBridge__s30r1s_0($this, address, $completion) {
|
|
136
|
+
var tmp;
|
|
137
|
+
if ($this.getAccountByAddress === protoOf(AttoWalletAsync()).getAccountByAddress) {
|
|
138
|
+
var tmp_0 = $this.j3q(address, $completion);
|
|
139
|
+
if (tmp_0 === get_COROUTINE_SUSPENDED())
|
|
140
|
+
tmp_0 = yield tmp_0;
|
|
141
|
+
tmp = tmp_0;
|
|
142
|
+
} else {
|
|
143
|
+
var tmp_1 = await_0($this.getAccountByAddress(address), $completion);
|
|
144
|
+
if (tmp_1 === get_COROUTINE_SUSPENDED())
|
|
145
|
+
tmp_1 = yield tmp_1;
|
|
146
|
+
tmp = tmp_1;
|
|
147
|
+
}
|
|
148
|
+
return tmp;
|
|
149
|
+
}
|
|
150
|
+
function *_generator_getAddress$suspendBridge__qtb9t5($this, index, $completion) {
|
|
151
|
+
var tmp;
|
|
152
|
+
if ($this.getAddress === protoOf(AttoWalletAsync()).getAddress) {
|
|
153
|
+
var tmp_0 = $this.k3q(index, $completion);
|
|
154
|
+
if (tmp_0 === get_COROUTINE_SUSPENDED())
|
|
155
|
+
tmp_0 = yield tmp_0;
|
|
156
|
+
tmp = tmp_0;
|
|
157
|
+
} else {
|
|
158
|
+
var tmp_1 = await_0($this.getAddress(index), $completion);
|
|
159
|
+
if (tmp_1 === get_COROUTINE_SUSPENDED())
|
|
160
|
+
tmp_1 = yield tmp_1;
|
|
161
|
+
tmp = tmp_1;
|
|
162
|
+
}
|
|
163
|
+
return tmp;
|
|
164
|
+
}
|
|
165
|
+
function *_generator_publish$suspendBridge__bl9m58($this, index, block, $completion) {
|
|
166
|
+
var tmp;
|
|
167
|
+
if ($this.publish === protoOf(AttoWalletAsync()).publish) {
|
|
168
|
+
var tmp_0 = $this.j3p(index, block, $completion);
|
|
169
|
+
if (tmp_0 === get_COROUTINE_SUSPENDED())
|
|
170
|
+
tmp_0 = yield tmp_0;
|
|
171
|
+
tmp = tmp_0;
|
|
172
|
+
} else {
|
|
173
|
+
var tmp_1 = await_0($this.publish(index, block), $completion);
|
|
174
|
+
if (tmp_1 === get_COROUTINE_SUSPENDED())
|
|
175
|
+
tmp_1 = yield tmp_1;
|
|
176
|
+
tmp = tmp_1;
|
|
177
|
+
}
|
|
178
|
+
return tmp;
|
|
179
|
+
}
|
|
180
|
+
function *_generator_send$suspendBridge__jrs9gf($this, index, receiverAddress, amount, timestamp, $completion) {
|
|
181
|
+
var tmp;
|
|
182
|
+
if ($this.sendByIndex === protoOf(AttoWalletAsync()).sendByIndex) {
|
|
183
|
+
var tmp_0 = $this.d3r(index, receiverAddress, amount, timestamp, $completion);
|
|
184
|
+
if (tmp_0 === get_COROUTINE_SUSPENDED())
|
|
185
|
+
tmp_0 = yield tmp_0;
|
|
186
|
+
tmp = tmp_0;
|
|
187
|
+
} else {
|
|
188
|
+
var tmp_1 = await_0($this.sendByIndex(index, receiverAddress, amount, timestamp), $completion);
|
|
189
|
+
if (tmp_1 === get_COROUTINE_SUSPENDED())
|
|
190
|
+
tmp_1 = yield tmp_1;
|
|
191
|
+
tmp = tmp_1;
|
|
192
|
+
}
|
|
193
|
+
return tmp;
|
|
194
|
+
}
|
|
195
|
+
function *_generator_send$suspendBridge__jrs9gf_0($this, address, receiverAddress, amount, timestamp, $completion) {
|
|
196
|
+
var tmp;
|
|
197
|
+
if ($this.sendByAddress === protoOf(AttoWalletAsync()).sendByAddress) {
|
|
198
|
+
var tmp_0 = $this.e3r(address, receiverAddress, amount, timestamp, $completion);
|
|
199
|
+
if (tmp_0 === get_COROUTINE_SUSPENDED())
|
|
200
|
+
tmp_0 = yield tmp_0;
|
|
201
|
+
tmp = tmp_0;
|
|
202
|
+
} else {
|
|
203
|
+
var tmp_1 = await_0($this.sendByAddress(address, receiverAddress, amount, timestamp), $completion);
|
|
204
|
+
if (tmp_1 === get_COROUTINE_SUSPENDED())
|
|
205
|
+
tmp_1 = yield tmp_1;
|
|
206
|
+
tmp = tmp_1;
|
|
207
|
+
}
|
|
208
|
+
return tmp;
|
|
209
|
+
}
|
|
210
|
+
function *_generator_receive$suspendBridge__mhfhyo($this, receivable, representativeAddress, timestamp, $completion) {
|
|
211
|
+
var tmp;
|
|
212
|
+
if ($this.receive === protoOf(AttoWalletAsync()).receive) {
|
|
213
|
+
var tmp_0 = $this.f3r(receivable, representativeAddress, timestamp, $completion);
|
|
214
|
+
if (tmp_0 === get_COROUTINE_SUSPENDED())
|
|
215
|
+
tmp_0 = yield tmp_0;
|
|
216
|
+
tmp = tmp_0;
|
|
217
|
+
} else {
|
|
218
|
+
var tmp_1 = await_0($this.receive(receivable, representativeAddress, timestamp), $completion);
|
|
219
|
+
if (tmp_1 === get_COROUTINE_SUSPENDED())
|
|
220
|
+
tmp_1 = yield tmp_1;
|
|
221
|
+
tmp = tmp_1;
|
|
222
|
+
}
|
|
223
|
+
return tmp;
|
|
224
|
+
}
|
|
225
|
+
function *_generator_change$suspendBridge__2rbl13($this, index, representativeAddress, timestamp, $completion) {
|
|
226
|
+
var tmp;
|
|
227
|
+
if ($this.change === protoOf(AttoWalletAsync()).change) {
|
|
228
|
+
var tmp_0 = $this.g3r(index, representativeAddress, timestamp, $completion);
|
|
229
|
+
if (tmp_0 === get_COROUTINE_SUSPENDED())
|
|
230
|
+
tmp_0 = yield tmp_0;
|
|
231
|
+
tmp = tmp_0;
|
|
232
|
+
} else {
|
|
233
|
+
var tmp_1 = await_0($this.change(index, representativeAddress, timestamp), $completion);
|
|
234
|
+
if (tmp_1 === get_COROUTINE_SUSPENDED())
|
|
235
|
+
tmp_1 = yield tmp_1;
|
|
236
|
+
tmp = tmp_1;
|
|
237
|
+
}
|
|
238
|
+
return tmp;
|
|
239
|
+
}
|
|
240
|
+
var AttoWalletAsyncClass;
|
|
241
|
+
function AttoWalletAsync() {
|
|
242
|
+
if (AttoWalletAsyncClass === VOID) {
|
|
243
|
+
class $ {
|
|
244
|
+
constructor(wallet, dispatcher) {
|
|
245
|
+
this.b3r_1 = wallet;
|
|
246
|
+
}
|
|
247
|
+
h3r() {
|
|
248
|
+
return this.b3r_1;
|
|
249
|
+
}
|
|
250
|
+
openAccountCollection(indexes) {
|
|
251
|
+
return promisify(($completion) => this.i3r(indexes, $completion));
|
|
252
|
+
}
|
|
253
|
+
i3r(indexes, $completion) {
|
|
254
|
+
return suspendOrReturn(/*#__NOINLINE__*/_generator_openAccount$suspendBridge__dbc0q8.bind(VOID, this, indexes), $completion);
|
|
255
|
+
}
|
|
256
|
+
c3r(indexes, $completion) {
|
|
257
|
+
return suspendOrReturn(/*#__NOINLINE__*/_generator_openAccount__127imp.bind(VOID, this, indexes), $completion);
|
|
258
|
+
}
|
|
259
|
+
openAccountRange(fromIndex, toIndex) {
|
|
260
|
+
return promisify(($completion) => this.j3r(fromIndex, toIndex, $completion));
|
|
261
|
+
}
|
|
262
|
+
j3r(fromIndex, toIndex, $completion) {
|
|
263
|
+
return suspendOrReturn(/*#__NOINLINE__*/_generator_openAccount$suspendBridge__dbc0q8_0.bind(VOID, this, fromIndex, toIndex), $completion);
|
|
264
|
+
}
|
|
265
|
+
v3p(fromIndex, toIndex, $completion) {
|
|
266
|
+
return suspendOrReturn(/*#__NOINLINE__*/_generator_openAccount__127imp_0.bind(VOID, this, fromIndex, toIndex), $completion);
|
|
267
|
+
}
|
|
268
|
+
openAccount(index) {
|
|
269
|
+
return promisify(($completion) => this.k3r(index, $completion));
|
|
270
|
+
}
|
|
271
|
+
k3r(index, $completion) {
|
|
272
|
+
return suspendOrReturn(/*#__NOINLINE__*/_generator_openAccount$suspendBridge__dbc0q8_1.bind(VOID, this, index), $completion);
|
|
273
|
+
}
|
|
274
|
+
e3q(index, $completion) {
|
|
275
|
+
return this.b3r_1.e3q(index, $completion);
|
|
276
|
+
}
|
|
277
|
+
closeAccount(index) {
|
|
278
|
+
return promisify(($completion) => this.l3r(index, $completion));
|
|
279
|
+
}
|
|
280
|
+
l3r(index, $completion) {
|
|
281
|
+
return suspendOrReturn(/*#__NOINLINE__*/_generator_closeAccount$suspendBridge__36xmlu.bind(VOID, this, index), $completion);
|
|
282
|
+
}
|
|
283
|
+
f3q(index, $completion) {
|
|
284
|
+
return this.b3r_1.f3q(index, $completion);
|
|
285
|
+
}
|
|
286
|
+
isOpenByIndex(index) {
|
|
287
|
+
return promisify(($completion) => this.m3r(index, $completion));
|
|
288
|
+
}
|
|
289
|
+
m3r(index, $completion) {
|
|
290
|
+
return suspendOrReturn(/*#__NOINLINE__*/_generator_isOpen$suspendBridge__o0lc8d.bind(VOID, this, index), $completion);
|
|
291
|
+
}
|
|
292
|
+
g3q(index, $completion) {
|
|
293
|
+
return this.b3r_1.g3q(index, $completion);
|
|
294
|
+
}
|
|
295
|
+
isOpenByAddress(address) {
|
|
296
|
+
return promisify(($completion) => this.n3r(address, $completion));
|
|
297
|
+
}
|
|
298
|
+
n3r(address, $completion) {
|
|
299
|
+
return suspendOrReturn(/*#__NOINLINE__*/_generator_isOpen$suspendBridge__o0lc8d_0.bind(VOID, this, address), $completion);
|
|
300
|
+
}
|
|
301
|
+
h3q(address, $completion) {
|
|
302
|
+
return this.b3r_1.h3q(address, $completion);
|
|
303
|
+
}
|
|
304
|
+
getAccountByIndex(index) {
|
|
305
|
+
return promisify(($completion) => this.o3r(index, $completion));
|
|
306
|
+
}
|
|
307
|
+
o3r(index, $completion) {
|
|
308
|
+
return suspendOrReturn(/*#__NOINLINE__*/_generator_getAccount$suspendBridge__s30r1s.bind(VOID, this, index), $completion);
|
|
309
|
+
}
|
|
310
|
+
i3q(index, $completion) {
|
|
311
|
+
return this.b3r_1.i3q(index, $completion);
|
|
312
|
+
}
|
|
313
|
+
getAccountByAddress(address) {
|
|
314
|
+
return promisify(($completion) => this.p3r(address, $completion));
|
|
315
|
+
}
|
|
316
|
+
p3r(address, $completion) {
|
|
317
|
+
return suspendOrReturn(/*#__NOINLINE__*/_generator_getAccount$suspendBridge__s30r1s_0.bind(VOID, this, address), $completion);
|
|
318
|
+
}
|
|
319
|
+
j3q(address, $completion) {
|
|
320
|
+
return this.b3r_1.j3q(address, $completion);
|
|
321
|
+
}
|
|
322
|
+
getAddress(index) {
|
|
323
|
+
return promisify(($completion) => this.q3r(index, $completion));
|
|
324
|
+
}
|
|
325
|
+
q3r(index, $completion) {
|
|
326
|
+
return suspendOrReturn(/*#__NOINLINE__*/_generator_getAddress$suspendBridge__qtb9t5.bind(VOID, this, index), $completion);
|
|
327
|
+
}
|
|
328
|
+
k3q(index, $completion) {
|
|
329
|
+
return this.b3r_1.k3q(index, $completion);
|
|
330
|
+
}
|
|
331
|
+
publish(index, block) {
|
|
332
|
+
return promisify(($completion) => this.r3r(index, block, $completion));
|
|
333
|
+
}
|
|
334
|
+
r3r(index, block, $completion) {
|
|
335
|
+
return suspendOrReturn(/*#__NOINLINE__*/_generator_publish$suspendBridge__bl9m58.bind(VOID, this, index, block), $completion);
|
|
336
|
+
}
|
|
337
|
+
j3p(index, block, $completion) {
|
|
338
|
+
return this.b3r_1.j3p(index, block, $completion);
|
|
339
|
+
}
|
|
340
|
+
sendByIndex(index, receiverAddress, amount, timestamp) {
|
|
341
|
+
return promisify(($completion) => this.s3r(index, receiverAddress, amount, timestamp, $completion));
|
|
342
|
+
}
|
|
343
|
+
s3r(index, receiverAddress, amount, timestamp, $completion) {
|
|
344
|
+
return suspendOrReturn(/*#__NOINLINE__*/_generator_send$suspendBridge__jrs9gf.bind(VOID, this, index, receiverAddress, amount, timestamp), $completion);
|
|
345
|
+
}
|
|
346
|
+
z3p(index, receiverAddress, amount, timestamp, $completion) {
|
|
347
|
+
return this.b3r_1.z3p(index, receiverAddress, amount, timestamp, $completion);
|
|
348
|
+
}
|
|
349
|
+
d3r(index, receiverAddress, amount, timestamp, $completion, $super) {
|
|
350
|
+
timestamp = timestamp === VOID ? null : timestamp;
|
|
351
|
+
return $super === VOID ? this.z3p(index, receiverAddress, amount, timestamp, $completion) : $super.z3p.call(this, index, receiverAddress, amount, timestamp, $completion);
|
|
352
|
+
}
|
|
353
|
+
sendByAddress(address, receiverAddress, amount, timestamp) {
|
|
354
|
+
return promisify(($completion) => this.t3r(address, receiverAddress, amount, timestamp, $completion));
|
|
355
|
+
}
|
|
356
|
+
t3r(address, receiverAddress, amount, timestamp, $completion) {
|
|
357
|
+
return suspendOrReturn(/*#__NOINLINE__*/_generator_send$suspendBridge__jrs9gf_0.bind(VOID, this, address, receiverAddress, amount, timestamp), $completion);
|
|
358
|
+
}
|
|
359
|
+
l3q(address, receiverAddress, amount, timestamp, $completion) {
|
|
360
|
+
return this.b3r_1.l3q(address, receiverAddress, amount, timestamp, $completion);
|
|
361
|
+
}
|
|
362
|
+
e3r(address, receiverAddress, amount, timestamp, $completion, $super) {
|
|
363
|
+
timestamp = timestamp === VOID ? null : timestamp;
|
|
364
|
+
return $super === VOID ? this.l3q(address, receiverAddress, amount, timestamp, $completion) : $super.l3q.call(this, address, receiverAddress, amount, timestamp, $completion);
|
|
365
|
+
}
|
|
366
|
+
receive(receivable, representativeAddress, timestamp) {
|
|
367
|
+
return promisify(($completion) => this.u3r(receivable, representativeAddress, timestamp, $completion));
|
|
368
|
+
}
|
|
369
|
+
u3r(receivable, representativeAddress, timestamp, $completion) {
|
|
370
|
+
return suspendOrReturn(/*#__NOINLINE__*/_generator_receive$suspendBridge__mhfhyo.bind(VOID, this, receivable, representativeAddress, timestamp), $completion);
|
|
371
|
+
}
|
|
372
|
+
m3q(receivable, representativeAddress, timestamp, $completion) {
|
|
373
|
+
return this.b3r_1.m3q(receivable, representativeAddress, timestamp, $completion);
|
|
374
|
+
}
|
|
375
|
+
f3r(receivable, representativeAddress, timestamp, $completion, $super) {
|
|
376
|
+
representativeAddress = representativeAddress === VOID ? null : representativeAddress;
|
|
377
|
+
timestamp = timestamp === VOID ? null : timestamp;
|
|
378
|
+
return $super === VOID ? this.m3q(receivable, representativeAddress, timestamp, $completion) : $super.m3q.call(this, receivable, representativeAddress, timestamp, $completion);
|
|
379
|
+
}
|
|
380
|
+
change(index, representativeAddress, timestamp) {
|
|
381
|
+
return promisify(($completion) => this.v3r(index, representativeAddress, timestamp, $completion));
|
|
382
|
+
}
|
|
383
|
+
v3r(index, representativeAddress, timestamp, $completion) {
|
|
384
|
+
return suspendOrReturn(/*#__NOINLINE__*/_generator_change$suspendBridge__2rbl13.bind(VOID, this, index, representativeAddress, timestamp), $completion);
|
|
385
|
+
}
|
|
386
|
+
o3q(index, representativeAddress, timestamp, $completion) {
|
|
387
|
+
return this.b3r_1.o3q(index, representativeAddress, timestamp, $completion);
|
|
388
|
+
}
|
|
389
|
+
g3r(index, representativeAddress, timestamp, $completion, $super) {
|
|
390
|
+
timestamp = timestamp === VOID ? null : timestamp;
|
|
391
|
+
return $super === VOID ? this.o3q(index, representativeAddress, timestamp, $completion) : $super.o3q.call(this, index, representativeAddress, timestamp, $completion);
|
|
392
|
+
}
|
|
393
|
+
}
|
|
394
|
+
initMetadataForClass($, 'AttoWalletAsync', VOID, VOID, VOID, [1, 2, 4, 3]);
|
|
395
|
+
AttoWalletAsyncClass = $;
|
|
396
|
+
}
|
|
397
|
+
return AttoWalletAsyncClass;
|
|
398
|
+
}
|
|
399
|
+
//region block: exports
|
|
400
|
+
export {
|
|
401
|
+
AttoWalletAsync as AttoWalletAsync4aef45xgjaot,
|
|
402
|
+
};
|
|
403
|
+
//endregion
|
|
404
|
+
|
|
405
|
+
//# sourceMappingURL=AttoWalletAsync.js.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../../commons-wallet/src/jsMain/kotlin/cash/atto/commons/wallet/AttoWalletAsync.js.kt","../../../../../commons-js/build/compileSync/js/main/productionLibrary/kotlin/commons-commons-wallet/cash/atto/commons/wallet/js/src/kotlin/collectionJs.kt"],"sourcesContent":["package cash.atto.commons.wallet\n\nimport cash.atto.commons.AttoAddress\nimport cash.atto.commons.AttoAmount\nimport cash.atto.commons.AttoBlock\nimport cash.atto.commons.AttoInstant\nimport cash.atto.commons.AttoKeyIndex\nimport cash.atto.commons.AttoReceivable\nimport cash.atto.commons.AttoTransaction\nimport cash.atto.commons.utils.JsExportForJs\nimport kotlinx.coroutines.CoroutineDispatcher\n\n@OptIn(ExperimentalJsExport::class)\n@JsExportForJs\nactual class AttoWalletAsync internal actual constructor(\n internal actual val wallet: AttoWallet,\n dispatcher: CoroutineDispatcher,\n) {\n @JsName(\"openAccountCollection\")\n suspend fun openAccount(indexes: Array<AttoKeyIndex>): Array<AttoWalletAccount> = wallet.openAccount(indexes.toList()).toTypedArray()\n\n @JsName(\"openAccountRange\")\n suspend fun openAccount(\n fromIndex: AttoKeyIndex,\n toIndex: AttoKeyIndex,\n ): Array<AttoWalletAccount> = wallet.openAccount(fromIndex, toIndex).toTypedArray()\n\n @JsName(\"openAccount\")\n suspend fun openAccount(index: AttoKeyIndex): AttoWalletAccount = wallet.openAccount(index)\n\n suspend fun closeAccount(index: AttoKeyIndex): Unit = wallet.closeAccount(index)\n\n @JsName(\"isOpenByIndex\")\n suspend fun isOpen(index: AttoKeyIndex): Boolean = wallet.isOpen(index)\n\n @JsName(\"isOpenByAddress\")\n suspend fun isOpen(address: AttoAddress): Boolean = wallet.isOpen(address)\n\n @JsName(\"getAccountByIndex\")\n suspend fun getAccount(index: AttoKeyIndex): cash.atto.commons.AttoAccount? = wallet.getAccount(index)\n\n @JsName(\"getAccountByAddress\")\n suspend fun getAccount(address: AttoAddress): cash.atto.commons.AttoAccount? = wallet.getAccount(address)\n\n suspend fun getAddress(index: AttoKeyIndex): AttoAddress = wallet.getAddress(index)\n\n suspend fun publish(\n index: AttoKeyIndex,\n block: AttoBlock,\n ): AttoTransaction = wallet.publish(index, block)\n\n @JsName(\"sendByIndex\")\n suspend fun send(\n index: AttoKeyIndex,\n receiverAddress: AttoAddress,\n amount: AttoAmount,\n timestamp: AttoInstant? = null,\n ): AttoTransaction = wallet.send(index, receiverAddress, amount, timestamp)\n\n @JsName(\"sendByAddress\")\n suspend fun send(\n address: AttoAddress,\n receiverAddress: AttoAddress,\n amount: AttoAmount,\n timestamp: AttoInstant? = null,\n ): AttoTransaction = wallet.send(address, receiverAddress, amount, timestamp)\n\n suspend fun receive(\n receivable: AttoReceivable,\n representativeAddress: AttoAddress? = null,\n timestamp: AttoInstant? = null,\n ): AttoTransaction = wallet.receive(receivable, representativeAddress, timestamp)\n\n suspend fun change(\n index: AttoKeyIndex,\n representativeAddress: AttoAddress,\n timestamp: AttoInstant? = null,\n ): AttoTransaction = wallet.change(index, representativeAddress, timestamp)\n}\n",null],"ignoreList":[],"x_google_ignoreList":[],"names":["<generator-openAccount>","indexes","$completion","fromIndex","toIndex","wallet","dispatcher","<get-wallet>","openAccount","index","closeAccount","isOpen","address","getAccount","getAddress","block","publish","receiverAddress","amount","timestamp","send","send$default","receivable","representativeAddress","receive","receive$default","change","change$default"],"mappings":";;;;;;;;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,QAAAmB,E;yCAIsB,I;;O;oBAK1BT,O,EACAK,e,EACAC,M,EACAC,S;;;UAHA,O,EACA,e,EACA,M,EACA,S;;;SAJIC,CACJR,O,EACAK,e,EACAC,M,EACAC,S,EAJIjB,WAAAkB,EAKa;A,QAAuD,OAAvD,IAAO,CAAP,KAAO,KAAK,OAAL,EAAc,eAAd,EAA+B,MAA/B,EAAuC,SAAvC,c;MAAgD,C;SALpEC,CACJT,O,EACAK,e,EACAC,M,EACAC,S,EAJIjB,W,QAAAmB,E;yCAIsB,I;;O;cAI1BC,U,EACAC,qB,EACAJ,S;;;UAFA,U,EACA,qB,EACA,S;;;SAHIK,CACJF,U,EACAC,qB,EACAJ,S,EAHIjB,WAAAsB,EAIa;A,QAA2D,OAA3D,IAAO,CAAP,KAAO,KAAQ,UAAR,EAAoB,qBAApB,EAA2C,SAA3C,c;MAAoD,C;SAJxEC,CACJH,U,EACAC,qB,EACAJ,S,EAHIjB,W,QAAAuB,E;iEAEkC,I;yCACZ,I;;O;aAI1BhB,K,EACAc,qB,EACAJ,S;;;UAFA,K,EACA,qB,EACA,S;;;SAHIO,CACJjB,K,EACAc,qB,EACAJ,S,EAHIjB,WAAAwB,EAIa;A,QAAqD,OAArD,IAAO,CAAP,KAAO,KAAO,KAAP,EAAc,qBAAd,EAAqC,SAArC,c;MAA8C,C;SAJlEC,CACJlB,K,EACAc,qB,EACAJ,S,EAHIjB,W,QAAAyB,E;yCAGsB,I;;O;;;;;;;;;;;"}
|
package/commons-commons-wallet/cash/atto/commons/wallet/AttoWalletAsyncBuilder.js.export.d.mts
CHANGED
|
@@ -12,4 +12,10 @@ export declare namespace AttoWalletAsyncBuilder {
|
|
|
12
12
|
namespace $metadata$ {
|
|
13
13
|
const constructor: abstract new () => AttoWalletAsyncBuilder;
|
|
14
14
|
}
|
|
15
|
+
}
|
|
16
|
+
export declare interface AttoSignerProvider {
|
|
17
|
+
get(index: AttoKeyIndex): Promise<AttoSigner>;
|
|
18
|
+
readonly __doNotUseOrImplementIt: {
|
|
19
|
+
readonly "cash.atto.commons.wallet.AttoSignerProvider": unique symbol;
|
|
20
|
+
};
|
|
15
21
|
}
|