@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
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import {
|
|
2
|
+
Companion1l27yp7mvqvwr as Companion,
|
|
3
|
+
Companion_getInstance1yz9pclaxooeb as Companion_getInstance,
|
|
4
|
+
} from './AttoSigner.mjs';
|
|
5
|
+
import { defineProp3ur6h3slcvq4x as defineProp } from '../../../../kotlin-kotlin-stdlib/kotlin/js/coreRuntime.mjs';
|
|
6
|
+
import { VOID3gxj6tk5isa35 as VOID } from '../../../../kotlin-kotlin-stdlib/kotlin/js/void.mjs';
|
|
7
|
+
//region block: imports
|
|
8
|
+
//endregion
|
|
9
|
+
//region block: pre-declaration
|
|
10
|
+
//endregion
|
|
11
|
+
//region block: exports
|
|
12
|
+
var AttoSigner = {};
|
|
13
|
+
defineProp(AttoSigner, 'Companion', Companion_getInstance, VOID, true);
|
|
14
|
+
export {
|
|
15
|
+
AttoSigner as AttoSigner,
|
|
16
|
+
};
|
|
17
|
+
//endregion
|
|
18
|
+
|
|
19
|
+
//# sourceMappingURL=AttoSigner.export.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"ignoreList":[],"x_google_ignoreList":[],"names":[],"mappings":";;;;;;;;;;;;;;;;"}
|
|
@@ -2,6 +2,13 @@ import {
|
|
|
2
2
|
generateKeyPairFromSeed as generateKeyPairFromSeed,
|
|
3
3
|
sign as sign,
|
|
4
4
|
} from '@stablelib/ed25519';
|
|
5
|
+
import {
|
|
6
|
+
await1tchdi81j7msa as await_0,
|
|
7
|
+
promisify1z0ncraq1ipzh as promisify,
|
|
8
|
+
suspendOrReturn49pspzlx5djv as suspendOrReturn,
|
|
9
|
+
} from '../../../../kotlin-kotlin-stdlib/kotlin/coroutines/intrinsics/IntrinsicsJs.mjs';
|
|
10
|
+
import { get_COROUTINE_SUSPENDED3ujt3p13qm4iy as get_COROUTINE_SUSPENDED } from '../../../../kotlin-kotlin-stdlib/kotlin/coroutines/intrinsics/Intrinsics.mjs';
|
|
11
|
+
import { protoOf180f3jzyo7rfj as protoOf } from '../../../../kotlin-kotlin-stdlib/kotlin/js/coreRuntime.mjs';
|
|
5
12
|
import { AttoAlgorithm_V1_getInstance3vq7zolusxoxz as AttoAlgorithm_V1_getInstance } from './AttoAlgorithm.mjs';
|
|
6
13
|
import { toPublicKey1cur233ok82jt as toPublicKey } from './AttoPublicKey.js.mjs';
|
|
7
14
|
import { toAddress3631euu7evnij as toAddress } from './AttoAddress.mjs';
|
|
@@ -9,43 +16,88 @@ import {
|
|
|
9
16
|
toUint8Array1omfedyjm9v5o as toUint8Array,
|
|
10
17
|
toByteArray3f5i5urnfv0wu as toByteArray,
|
|
11
18
|
} from './Extensions.mjs';
|
|
19
|
+
import { VOID3gxj6tk5isa35 as VOID } from '../../../../kotlin-kotlin-stdlib/kotlin/js/void.mjs';
|
|
12
20
|
import { AttoSignaturef1rb35b89r5k as AttoSignature } from './AttoSignature.mjs';
|
|
13
21
|
import {
|
|
14
22
|
sign2v0z7umkpvgvl as sign_0,
|
|
23
|
+
sign1uej56tki34gj as sign_1,
|
|
24
|
+
sign389wfge3kn7yi as sign_2,
|
|
15
25
|
checkPublicKey3mr0m5k4v724a as checkPublicKey,
|
|
16
26
|
AttoSigner1s0b1owma3lqw as AttoSigner,
|
|
17
27
|
} from './AttoSigner.mjs';
|
|
18
|
-
import { protoOf180f3jzyo7rfj as protoOf } from '../../../../kotlin-kotlin-stdlib/kotlin/js/coreRuntime.mjs';
|
|
19
28
|
import { initMetadataForClassbxx6q50dy2s7 as initMetadataForClass } from '../../../../kotlin-kotlin-stdlib/kotlin/js/metadataUtils.mjs';
|
|
20
|
-
import { VOID3gxj6tk5isa35 as VOID } from '../../../../kotlin-kotlin-stdlib/kotlin/js/void.mjs';
|
|
21
29
|
//region block: imports
|
|
22
30
|
//endregion
|
|
23
31
|
//region block: pre-declaration
|
|
24
32
|
//endregion
|
|
33
|
+
function *_generator_sign$suspendBridge__35yghi($this, hash, $completion) {
|
|
34
|
+
var tmp;
|
|
35
|
+
if ($this.signHash === protoOf(InMemorySigner()).signHash) {
|
|
36
|
+
var tmp_0 = $this.t33(hash, $completion);
|
|
37
|
+
if (tmp_0 === get_COROUTINE_SUSPENDED())
|
|
38
|
+
tmp_0 = yield tmp_0;
|
|
39
|
+
tmp = tmp_0;
|
|
40
|
+
} else {
|
|
41
|
+
var tmp_1 = await_0($this.signHash(hash), $completion);
|
|
42
|
+
if (tmp_1 === get_COROUTINE_SUSPENDED())
|
|
43
|
+
tmp_1 = yield tmp_1;
|
|
44
|
+
tmp = tmp_1;
|
|
45
|
+
}
|
|
46
|
+
return tmp;
|
|
47
|
+
}
|
|
25
48
|
var InMemorySignerClass;
|
|
26
49
|
function InMemorySigner() {
|
|
27
50
|
if (InMemorySignerClass === VOID) {
|
|
28
51
|
class $ {
|
|
29
52
|
constructor(privateKey) {
|
|
30
|
-
this.
|
|
31
|
-
this.
|
|
32
|
-
this.
|
|
33
|
-
this.
|
|
34
|
-
this.
|
|
53
|
+
this.f35_1 = privateKey;
|
|
54
|
+
this.g35_1 = AttoAlgorithm_V1_getInstance();
|
|
55
|
+
this.h35_1 = toPublicKey(this.f35_1);
|
|
56
|
+
this.i35_1 = toAddress(this.h35_1, AttoAlgorithm_V1_getInstance());
|
|
57
|
+
this.j35_1 = generateKeyPairFromSeed(toUint8Array(this.f35_1.value));
|
|
58
|
+
}
|
|
59
|
+
a2v() {
|
|
60
|
+
return this.g35_1;
|
|
35
61
|
}
|
|
36
|
-
|
|
37
|
-
return this.
|
|
62
|
+
x2u() {
|
|
63
|
+
return this.h35_1;
|
|
38
64
|
}
|
|
39
|
-
|
|
40
|
-
return this.
|
|
65
|
+
h2v() {
|
|
66
|
+
return this.i35_1;
|
|
41
67
|
}
|
|
42
|
-
|
|
43
|
-
|
|
68
|
+
signHash(hash) {
|
|
69
|
+
return promisify(($completion) => this.k35(hash, $completion));
|
|
70
|
+
}
|
|
71
|
+
k35(hash, $completion) {
|
|
72
|
+
return suspendOrReturn(/*#__NOINLINE__*/_generator_sign$suspendBridge__35yghi.bind(VOID, this, hash), $completion);
|
|
73
|
+
}
|
|
74
|
+
t33(hash, $completion) {
|
|
75
|
+
var signature = sign(this.j35_1.secretKey, toUint8Array(hash.value));
|
|
44
76
|
return new (AttoSignature())(toByteArray(signature));
|
|
45
77
|
}
|
|
78
|
+
v33(block, $completion) {
|
|
79
|
+
return this.v33(block, $completion);
|
|
80
|
+
}
|
|
81
|
+
w33(vote, $completion) {
|
|
82
|
+
return this.w33(vote, $completion);
|
|
83
|
+
}
|
|
84
|
+
x33(challenge, timestamp, $completion) {
|
|
85
|
+
return this.x33(challenge, timestamp, $completion);
|
|
86
|
+
}
|
|
87
|
+
get algorithm() {
|
|
88
|
+
return this.a2v();
|
|
89
|
+
}
|
|
90
|
+
get publicKey() {
|
|
91
|
+
return this.x2u();
|
|
92
|
+
}
|
|
93
|
+
get address() {
|
|
94
|
+
return this.h2v();
|
|
95
|
+
}
|
|
46
96
|
}
|
|
47
|
-
protoOf($).
|
|
48
|
-
protoOf($).
|
|
97
|
+
protoOf($).v33 = sign_0;
|
|
98
|
+
protoOf($).w33 = sign_1;
|
|
99
|
+
protoOf($).x33 = sign_2;
|
|
100
|
+
protoOf($).s33 = checkPublicKey;
|
|
49
101
|
initMetadataForClass($, 'InMemorySigner', VOID, VOID, [AttoSigner()], [1, 2]);
|
|
50
102
|
InMemorySignerClass = $;
|
|
51
103
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../../commons-core/src/jsMain/kotlin/cash/atto/commons/AttoSigner.js.kt"],"sourcesContent":[
|
|
1
|
+
{"version":3,"sources":["../../../../../commons-core/src/jsMain/kotlin/cash/atto/commons/AttoSigner.js.kt"],"sourcesContent":["package cash.atto.commons\n\nimport cash.atto.commons.utils.generateKeyPairFromSeed\n\ninternal object InMemorySignerHolder\n\nactual class InMemorySigner actual constructor(\n internal actual val privateKey: AttoPrivateKey,\n) : AttoSigner {\n actual override val algorithm: AttoAlgorithm = AttoAlgorithm.V1\n actual override val publicKey: AttoPublicKey = privateKey.toPublicKey()\n actual override val address: AttoAddress = publicKey.toAddress(AttoAlgorithm.V1)\n\n private val keyPair = generateKeyPairFromSeed(privateKey.value.toUint8Array())\n\n actual override suspend fun sign(hash: AttoHash): AttoSignature {\n val signature =\n cash.atto.commons.utils.sign(\n secretKey = keyPair.secretKey,\n message = hash.value.toUint8Array(),\n )\n\n return AttoSignature(signature.toByteArray())\n }\n}\n"],"ignoreList":[],"x_google_ignoreList":[],"names":["privateKey","<get-algorithm>","<get-publicKey>","<get-address>","hash","sign","$completion","signature","block","vote","challenge","timestamp"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gDAe4B,K,EAAS,I;;;;;;;;;;;;;;;;;;;kBARjBA,U;QAAhB,uB;QAE6D,2C;QACH,yBAAX,IAAW,CAAX,KAAW,C;QACL,uBAAV,IAAU,CAAV,KAAU,EAAwB,8BAAxB,C;QAE/B,qCAAyC,aAAjB,IAAiB,CAAjB,KAAiB,CAAN,KAAM,CAAzC,C;;SAJNC,CAAAA,EAAA;A,QAAA,iB;MAA2B,C;SAC3BC,CAAAA,EAAA;A,QAAA,iB;MAA2B,C;SAC3BC,CAAAA,EAAA;A,QAAA,iB;MAAuB,C;eAINC,I;;;UAAA,I;;;SAATC,CAASD,I,EAATE,WAAAD,EAAwC;A,YAC5DE,YAC4B,KACR,IADQ,CACR,KADQ,CACA,SADA,EAEC,aAAX,IAAW,CAAN,KAAM,CAFD,C;QAK5B,6BAA+B,YAAV,SAAU,CAA/B,C;MACJ,C;UAbqEC,K,EAATF,W;;;UAGMG,I,EAATH,W;;;UAK1CI,S,EACbC,S,EADLL,W;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -1,20 +1,47 @@
|
|
|
1
|
+
import {
|
|
2
|
+
initMetadataForCompanion1wyw17z38v6ac as initMetadataForCompanion,
|
|
3
|
+
initMetadataForInterface1egvbzx539z91 as initMetadataForInterface,
|
|
4
|
+
} from '../../../../kotlin-kotlin-stdlib/kotlin/js/metadataUtils.mjs';
|
|
5
|
+
import { VOID3gxj6tk5isa35 as VOID } from '../../../../kotlin-kotlin-stdlib/kotlin/js/void.mjs';
|
|
1
6
|
import { get_COROUTINE_SUSPENDED3ujt3p13qm4iy as get_COROUTINE_SUSPENDED } from '../../../../kotlin-kotlin-stdlib/kotlin/coroutines/intrinsics/Intrinsics.mjs';
|
|
2
7
|
import { suspendOrReturn49pspzlx5djv as suspendOrReturn } from '../../../../kotlin-kotlin-stdlib/kotlin/coroutines/intrinsics/IntrinsicsJs.mjs';
|
|
3
|
-
import {
|
|
8
|
+
import { Companion_instance2gqbffdfes1sc as Companion_instance } from './AttoHash.mjs';
|
|
9
|
+
import { toByteArray18blahk7gwuv4 as toByteArray } from './Extensions.mjs';
|
|
4
10
|
import { IllegalArgumentException2asla15b5jaob as IllegalArgumentException } from '../../../../kotlin-kotlin-stdlib/kotlin/exceptions.mjs';
|
|
5
11
|
import { Unit_instance28fytmsmm6r23 as Unit_instance } from '../../../../kotlin-kotlin-stdlib/kotlin/Unit.mjs';
|
|
6
|
-
import { initMetadataForInterface1egvbzx539z91 as initMetadataForInterface } from '../../../../kotlin-kotlin-stdlib/kotlin/js/metadataUtils.mjs';
|
|
7
12
|
import { toPrivateKey35w589ekg554d as toPrivateKey } from './AttoPrivateKey.mjs';
|
|
8
13
|
import { InMemorySigner32umwc197yryh as InMemorySigner } from './AttoSigner.js.mjs';
|
|
9
14
|
//region block: imports
|
|
10
15
|
//endregion
|
|
11
16
|
//region block: pre-declaration
|
|
12
17
|
//endregion
|
|
18
|
+
var CompanionClass;
|
|
19
|
+
function Companion() {
|
|
20
|
+
if (CompanionClass === VOID) {
|
|
21
|
+
class $ {}
|
|
22
|
+
initMetadataForCompanion($);
|
|
23
|
+
CompanionClass = $;
|
|
24
|
+
}
|
|
25
|
+
return CompanionClass;
|
|
26
|
+
}
|
|
27
|
+
var Companion_instance_0;
|
|
28
|
+
function Companion_getInstance() {
|
|
29
|
+
return Companion_instance_0;
|
|
30
|
+
}
|
|
13
31
|
function *_generator_sign__qhulg5($this, block, $completion) {
|
|
14
|
-
var tmp = $this.
|
|
32
|
+
var tmp = $this.s33(block.publicKey, $completion);
|
|
15
33
|
if (tmp === get_COROUTINE_SUSPENDED())
|
|
16
34
|
tmp = yield tmp;
|
|
17
|
-
var tmp_0 = $this.
|
|
35
|
+
var tmp_0 = $this.t33(block.hash, $completion);
|
|
36
|
+
if (tmp_0 === get_COROUTINE_SUSPENDED())
|
|
37
|
+
tmp_0 = yield tmp_0;
|
|
38
|
+
return tmp_0;
|
|
39
|
+
}
|
|
40
|
+
function *_generator_sign__qhulg5_0($this, vote, $completion) {
|
|
41
|
+
var tmp = $this.s33(vote.publicKey, $completion);
|
|
42
|
+
if (tmp === get_COROUTINE_SUSPENDED())
|
|
43
|
+
tmp = yield tmp;
|
|
44
|
+
var tmp_0 = $this.t33(vote.hash, $completion);
|
|
18
45
|
if (tmp_0 === get_COROUTINE_SUSPENDED())
|
|
19
46
|
tmp_0 = yield tmp_0;
|
|
20
47
|
return tmp_0;
|
|
@@ -22,9 +49,15 @@ function *_generator_sign__qhulg5($this, block, $completion) {
|
|
|
22
49
|
function sign(block, $completion) {
|
|
23
50
|
return suspendOrReturn(/*#__NOINLINE__*/_generator_sign__qhulg5.bind(VOID, this, block), $completion);
|
|
24
51
|
}
|
|
52
|
+
function sign_0(vote, $completion) {
|
|
53
|
+
return suspendOrReturn(/*#__NOINLINE__*/_generator_sign__qhulg5_0.bind(VOID, this, vote), $completion);
|
|
54
|
+
}
|
|
55
|
+
function sign_1(challenge, timestamp, $completion) {
|
|
56
|
+
return this.t33(Companion_instance.hash(64, [this.publicKey.value, challenge.value, toByteArray(timestamp)]), $completion);
|
|
57
|
+
}
|
|
25
58
|
function checkPublicKey(publicKey, $completion) {
|
|
26
|
-
if (!this.
|
|
27
|
-
throw IllegalArgumentException().t2('Different public key ' + this.
|
|
59
|
+
if (!this.publicKey.equals(publicKey)) {
|
|
60
|
+
throw IllegalArgumentException().t2('Different public key ' + this.publicKey.toString());
|
|
28
61
|
}
|
|
29
62
|
return Unit_instance;
|
|
30
63
|
}
|
|
@@ -43,12 +76,19 @@ function toSigner(_this__u8e3s4, index) {
|
|
|
43
76
|
function toSigner_0(_this__u8e3s4) {
|
|
44
77
|
return new (InMemorySigner())(_this__u8e3s4);
|
|
45
78
|
}
|
|
79
|
+
//region block: init
|
|
80
|
+
Companion_instance_0 = new (Companion())();
|
|
81
|
+
//endregion
|
|
46
82
|
//region block: exports
|
|
47
83
|
export {
|
|
84
|
+
Companion as Companion1l27yp7mvqvwr,
|
|
48
85
|
AttoSigner as AttoSigner1s0b1owma3lqw,
|
|
49
86
|
toSigner as toSigner372w8oykcr9o5,
|
|
50
87
|
checkPublicKey as checkPublicKey3mr0m5k4v724a,
|
|
51
88
|
sign as sign2v0z7umkpvgvl,
|
|
89
|
+
sign_0 as sign1uej56tki34gj,
|
|
90
|
+
sign_1 as sign389wfge3kn7yi,
|
|
91
|
+
Companion_getInstance as Companion_getInstance1yz9pclaxooeb,
|
|
52
92
|
};
|
|
53
93
|
//endregion
|
|
54
94
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../../commons-core/src/commonMain/kotlin/cash/atto/commons/AttoSigner.kt"],"sourcesContent":[
|
|
1
|
+
{"version":3,"sources":["../../../../../commons-core/src/commonMain/kotlin/cash/atto/commons/AttoSigner.kt"],"sourcesContent":["package cash.atto.commons\n\nimport cash.atto.commons.utils.JsExportForJs\nimport kotlin.js.JsName\n\n@JsExportForJs\ninterface AttoSigner {\n companion object {}\n\n val algorithm: AttoAlgorithm\n val publicKey: AttoPublicKey\n val address: AttoAddress\n\n @JsName(\"signHash\")\n suspend fun sign(hash: AttoHash): AttoSignature\n\n @JsName(\"signBlock\")\n suspend fun sign(block: AttoBlock): AttoSignature {\n checkPublicKey(block.publicKey)\n return sign(block.hash)\n }\n\n @JsName(\"signVote\")\n suspend fun sign(vote: AttoVote): AttoSignature {\n checkPublicKey(vote.publicKey)\n return sign(vote.hash)\n }\n\n @JsName(\"signChallenge\")\n suspend fun sign(\n challenge: AttoChallenge,\n timestamp: AttoInstant,\n ): AttoSignature = sign(AttoHash.hash(64, publicKey.value, challenge.value, timestamp.toByteArray()))\n\n suspend fun checkPublicKey(publicKey: AttoPublicKey) {\n if (this.publicKey != publicKey) {\n throw IllegalArgumentException(\"Different public key ${this.publicKey}\")\n }\n }\n}\n\nexpect class InMemorySigner(\n privateKey: AttoPrivateKey,\n) : AttoSigner {\n override val algorithm: AttoAlgorithm\n override val publicKey: AttoPublicKey\n override val address: AttoAddress\n\n internal val privateKey: AttoPrivateKey\n\n override suspend fun sign(hash: AttoHash): AttoSignature\n}\n\nfun AttoPrivateKey.toSigner(): AttoSigner = InMemorySigner(this)\n\nfun AttoSeed.toSigner(index: AttoKeyIndex): AttoSigner = toPrivateKey(index).toSigner()\n\nfun AttoSeed.toSigner(index: UInt): AttoSigner = toPrivateKey(index).toSigner()\n\nfun AttoSeed.toSigner(index: Int): AttoSigner = toPrivateKey(index).toSigner()\n\nsuspend fun AttoPrivateKey.sign(hash: AttoHash): AttoSignature = this.toSigner().sign(hash)\n"],"ignoreList":[],"x_google_ignoreList":[],"names":["<generator-sign>","block","$completion","vote","sign","challenge","timestamp","checkPublicKey","publicKey","toSigner","<this>","index"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iCAiBYA,CAAA,K,EAASC,K,EAATC,WAAAF,EAA0C;A,MAC9C,gBAAe,KAAf,CAAqB,SAArB,c;;;MACO,kBAAK,KAAL,CAAW,IAAX,c;;;EAAP,Y;AACJ,C;mCAGQA,CAAA,K,EAASG,I,EAATD,WAAAF,EAAwC;A,MAC5C,gBAAe,IAAf,CAAoB,SAApB,c;;;MACO,kBAAK,IAAL,CAAU,IAAV,c;;;EAAP,Y;AACJ,C;aATQI,CAASH,K,EAATC,WAAAE,E;;C;eAMAA,CAASD,I,EAATD,WAAAE,E;;C;eAMAA,CACJC,S,EACAC,S,EAFIJ,WAAAE,EAGW;A,EAAiF,OAAjF,SAAc,wBAAK,EAAL,EAAmB,CAAV,IAAU,CAAV,SAAU,QAAO,SAAP,CAAiB,KAAjB,EAAkC,YAAV,SAAU,CAAlC,CAAnB,CAAd,c;AAAiF,C;uBAE5FG,CAAmBC,S,EAAnBN,WAAAK,EAA6C;A,EAC7C,UAAK,SAAL,QAAkB,SAAlB,E,CAA6B;A,IAC7B,oCAAgC,uBAAhC,GAAuD,IAAvD,CAA4D,SAA5D,Y;EACJ,C;EACJ,oB;AAAA,C;;;;;;;;;;iBAiBJE,CAAIC,a,EAAkBC,KAAtBF,EAAyD;A,EAA8B,OAAV,WAApB,4BAAa,KAAb,CAAoB,C;AAAS,C;mBAFtFA,CAAIC,aAAJD,EAA4C;A,EAAoB,8BAAL,aAAK,C;AAAD,C;;;;;;;;"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
type Nullable<T> = T | null | undefined
|
|
2
2
|
declare function KtSingleton<T>(): T & (abstract new() => any);
|
|
3
|
-
export declare class AttoTransaction implements HeightSupport, AddressSupport
|
|
3
|
+
export declare class AttoTransaction implements HeightSupport, AddressSupport, AttoSerializable {
|
|
4
4
|
constructor(block: AttoBlock, signature: AttoSignature, work: AttoWork);
|
|
5
5
|
get block(): AttoBlock;
|
|
6
6
|
get signature(): AttoSignature;
|
|
@@ -8,14 +8,15 @@ export declare class AttoTransaction implements HeightSupport, AddressSupport/*,
|
|
|
8
8
|
get hash(): AttoHash;
|
|
9
9
|
get height(): AttoHeight;
|
|
10
10
|
get address(): AttoAddress;
|
|
11
|
-
validate():
|
|
11
|
+
validate(): AttoValidation;
|
|
12
12
|
isValid(): boolean;
|
|
13
13
|
getTotalSize(): number;
|
|
14
14
|
toString(): string;
|
|
15
15
|
copy(block?: AttoBlock, signature?: AttoSignature, work?: AttoWork): AttoTransaction;
|
|
16
16
|
hashCode(): number;
|
|
17
17
|
equals(other: Nullable<any>): boolean;
|
|
18
|
-
|
|
18
|
+
toByteArray(): Int8Array;
|
|
19
|
+
readonly __doNotUseOrImplementIt: HeightSupport["__doNotUseOrImplementIt"] & AddressSupport["__doNotUseOrImplementIt"] & AttoSerializable["__doNotUseOrImplementIt"];
|
|
19
20
|
}
|
|
20
21
|
export declare namespace AttoTransaction {
|
|
21
22
|
/** @deprecated $metadata$ is used for internal purposes, please don't use it in your code, because it can be removed at any moment */
|
|
@@ -30,7 +31,6 @@ export declare namespace AttoTransaction {
|
|
|
30
31
|
namespace $metadata$ {
|
|
31
32
|
abstract class constructor {
|
|
32
33
|
get SIZE(): number;
|
|
33
|
-
fromBuffer(buffer: any/* Buffer */): Nullable<AttoTransaction>;
|
|
34
34
|
private constructor();
|
|
35
35
|
}
|
|
36
36
|
}
|
|
@@ -50,13 +50,17 @@ import { Unit_instance28fytmsmm6r23 as Unit_instance } from '../../../../kotlin-
|
|
|
50
50
|
import { isValid38ww8lpvtnklo as isValid } from './AttoSignature.js.mjs';
|
|
51
51
|
import { Buffergs925ekssbch as Buffer } from '../../../../kotlinx-io-kotlinx-io-core/kotlinx/io/Buffer.mjs';
|
|
52
52
|
import { throwMissingFieldException2cmke0v3ynf14 as throwMissingFieldException } from '../../../../kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/internal/PluginExceptions.mjs';
|
|
53
|
+
import {
|
|
54
|
+
toByteArrayholgcuj5zgpi as toByteArray,
|
|
55
|
+
AttoSerializable291xn050uxg51 as AttoSerializable,
|
|
56
|
+
} from './AttoSerializable.mjs';
|
|
53
57
|
//region block: imports
|
|
54
58
|
var imul = Math.imul;
|
|
55
59
|
//endregion
|
|
56
60
|
//region block: pre-declaration
|
|
57
61
|
//endregion
|
|
58
62
|
function AttoTransaction$Companion$$childSerializers$_anonymous__8sfh5y() {
|
|
59
|
-
return Companion_instance.
|
|
63
|
+
return Companion_instance.x2t();
|
|
60
64
|
}
|
|
61
65
|
var CompanionClass;
|
|
62
66
|
function Companion() {
|
|
@@ -69,17 +73,17 @@ function Companion() {
|
|
|
69
73
|
// Inline function 'kotlin.arrayOf' call
|
|
70
74
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
71
75
|
// Inline function 'kotlin.js.asDynamic' call
|
|
72
|
-
tmp.
|
|
76
|
+
tmp.y33_1 = [lazy(tmp_0, AttoTransaction$Companion$$childSerializers$_anonymous__8sfh5y), null, null];
|
|
73
77
|
this.SIZE = 72;
|
|
74
78
|
}
|
|
75
|
-
|
|
79
|
+
p33() {
|
|
76
80
|
return this.SIZE;
|
|
77
81
|
}
|
|
78
|
-
|
|
82
|
+
f2y(buffer) {
|
|
79
83
|
if (72n > buffer.u2()) {
|
|
80
84
|
return null;
|
|
81
85
|
}
|
|
82
|
-
var tmp0_elvis_lhs = Companion_instance.
|
|
86
|
+
var tmp0_elvis_lhs = Companion_instance.f2y(buffer);
|
|
83
87
|
var tmp;
|
|
84
88
|
if (tmp0_elvis_lhs == null) {
|
|
85
89
|
return null;
|
|
@@ -93,7 +97,7 @@ function Companion() {
|
|
|
93
97
|
}
|
|
94
98
|
return transaction;
|
|
95
99
|
}
|
|
96
|
-
|
|
100
|
+
x2t() {
|
|
97
101
|
return $serializer_getInstance();
|
|
98
102
|
}
|
|
99
103
|
}
|
|
@@ -115,77 +119,77 @@ function $serializer() {
|
|
|
115
119
|
constructor() {
|
|
116
120
|
$serializer_instance = this;
|
|
117
121
|
var tmp0_serialDesc = new (PluginGeneratedSerialDescriptor())('cash.atto.commons.AttoTransaction', this, 3);
|
|
118
|
-
tmp0_serialDesc.
|
|
119
|
-
tmp0_serialDesc.
|
|
120
|
-
tmp0_serialDesc.
|
|
121
|
-
this.
|
|
122
|
-
}
|
|
123
|
-
|
|
124
|
-
var tmp0_desc = this.
|
|
125
|
-
var tmp1_output = encoder.
|
|
126
|
-
var tmp2_cached = Companion_getInstance().
|
|
127
|
-
tmp1_output.
|
|
128
|
-
tmp1_output.
|
|
129
|
-
tmp1_output.
|
|
130
|
-
tmp1_output.
|
|
131
|
-
}
|
|
132
|
-
|
|
133
|
-
return this.
|
|
134
|
-
}
|
|
135
|
-
|
|
136
|
-
var tmp0_desc = this.
|
|
122
|
+
tmp0_serialDesc.q16('block', false);
|
|
123
|
+
tmp0_serialDesc.q16('signature', false);
|
|
124
|
+
tmp0_serialDesc.q16('work', false);
|
|
125
|
+
this.z33_1 = tmp0_serialDesc;
|
|
126
|
+
}
|
|
127
|
+
a34(encoder, value) {
|
|
128
|
+
var tmp0_desc = this.z33_1;
|
|
129
|
+
var tmp1_output = encoder.cz(tmp0_desc);
|
|
130
|
+
var tmp2_cached = Companion_getInstance().y33_1;
|
|
131
|
+
tmp1_output.t10(tmp0_desc, 0, tmp2_cached[0].g3(), value.block);
|
|
132
|
+
tmp1_output.t10(tmp0_desc, 1, AttoSignatureAsStringSerializer_getInstance(), value.signature);
|
|
133
|
+
tmp1_output.t10(tmp0_desc, 2, AttoWorkAsStringSerializer_getInstance(), value.work);
|
|
134
|
+
tmp1_output.dz(tmp0_desc);
|
|
135
|
+
}
|
|
136
|
+
ou(encoder, value) {
|
|
137
|
+
return this.a34(encoder, value instanceof AttoTransaction() ? value : THROW_CCE());
|
|
138
|
+
}
|
|
139
|
+
pu(decoder) {
|
|
140
|
+
var tmp0_desc = this.z33_1;
|
|
137
141
|
var tmp1_flag = true;
|
|
138
142
|
var tmp2_index = 0;
|
|
139
143
|
var tmp3_bitMask0 = 0;
|
|
140
144
|
var tmp4_local0 = null;
|
|
141
145
|
var tmp5_local1 = null;
|
|
142
146
|
var tmp6_local2 = null;
|
|
143
|
-
var tmp8_input = decoder.
|
|
144
|
-
var tmp9_cached = Companion_getInstance().
|
|
145
|
-
if (tmp8_input.
|
|
146
|
-
tmp4_local0 = tmp8_input.
|
|
147
|
+
var tmp8_input = decoder.cz(tmp0_desc);
|
|
148
|
+
var tmp9_cached = Companion_getInstance().y33_1;
|
|
149
|
+
if (tmp8_input.rz()) {
|
|
150
|
+
tmp4_local0 = tmp8_input.oz(tmp0_desc, 0, tmp9_cached[0].g3(), tmp4_local0);
|
|
147
151
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
148
|
-
tmp5_local1 = tmp8_input.
|
|
152
|
+
tmp5_local1 = tmp8_input.oz(tmp0_desc, 1, AttoSignatureAsStringSerializer_getInstance(), tmp5_local1);
|
|
149
153
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
150
|
-
tmp6_local2 = tmp8_input.
|
|
154
|
+
tmp6_local2 = tmp8_input.oz(tmp0_desc, 2, AttoWorkAsStringSerializer_getInstance(), tmp6_local2);
|
|
151
155
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
152
156
|
} else
|
|
153
157
|
while (tmp1_flag) {
|
|
154
|
-
tmp2_index = tmp8_input.
|
|
158
|
+
tmp2_index = tmp8_input.sz(tmp0_desc);
|
|
155
159
|
switch (tmp2_index) {
|
|
156
160
|
case -1:
|
|
157
161
|
tmp1_flag = false;
|
|
158
162
|
break;
|
|
159
163
|
case 0:
|
|
160
|
-
tmp4_local0 = tmp8_input.
|
|
164
|
+
tmp4_local0 = tmp8_input.oz(tmp0_desc, 0, tmp9_cached[0].g3(), tmp4_local0);
|
|
161
165
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
162
166
|
break;
|
|
163
167
|
case 1:
|
|
164
|
-
tmp5_local1 = tmp8_input.
|
|
168
|
+
tmp5_local1 = tmp8_input.oz(tmp0_desc, 1, AttoSignatureAsStringSerializer_getInstance(), tmp5_local1);
|
|
165
169
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
166
170
|
break;
|
|
167
171
|
case 2:
|
|
168
|
-
tmp6_local2 = tmp8_input.
|
|
172
|
+
tmp6_local2 = tmp8_input.oz(tmp0_desc, 2, AttoWorkAsStringSerializer_getInstance(), tmp6_local2);
|
|
169
173
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
170
174
|
break;
|
|
171
175
|
default:
|
|
172
|
-
throw UnknownFieldException().
|
|
176
|
+
throw UnknownFieldException().jw(tmp2_index);
|
|
173
177
|
}
|
|
174
178
|
}
|
|
175
|
-
tmp8_input.
|
|
176
|
-
return AttoTransaction().
|
|
179
|
+
tmp8_input.dz(tmp0_desc);
|
|
180
|
+
return AttoTransaction().c34(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, null);
|
|
177
181
|
}
|
|
178
|
-
|
|
179
|
-
return this.
|
|
182
|
+
nu() {
|
|
183
|
+
return this.z33_1;
|
|
180
184
|
}
|
|
181
|
-
|
|
185
|
+
f17() {
|
|
182
186
|
// Inline function 'kotlin.arrayOf' call
|
|
183
187
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
184
188
|
// Inline function 'kotlin.js.asDynamic' call
|
|
185
|
-
return [Companion_getInstance().
|
|
189
|
+
return [Companion_getInstance().y33_1[0].g3(), AttoSignatureAsStringSerializer_getInstance(), AttoWorkAsStringSerializer_getInstance()];
|
|
186
190
|
}
|
|
187
191
|
}
|
|
188
|
-
protoOf($).
|
|
192
|
+
protoOf($).g17 = typeParametersSerializers;
|
|
189
193
|
initMetadataForObject($, '$serializer', VOID, VOID, [GeneratedSerializer()]);
|
|
190
194
|
$serializerClass = $;
|
|
191
195
|
}
|
|
@@ -216,28 +220,28 @@ function AttoTransaction() {
|
|
|
216
220
|
this.signature = signature;
|
|
217
221
|
this.work = work;
|
|
218
222
|
var tmp = this;
|
|
219
|
-
tmp.
|
|
223
|
+
tmp.b34_1 = lazy_0(AttoTransaction$hash$delegate$lambda(this));
|
|
220
224
|
}
|
|
221
|
-
|
|
225
|
+
d34() {
|
|
222
226
|
return this.block;
|
|
223
227
|
}
|
|
224
|
-
|
|
228
|
+
e34() {
|
|
225
229
|
return this.signature;
|
|
226
230
|
}
|
|
227
|
-
|
|
231
|
+
f34() {
|
|
228
232
|
return this.work;
|
|
229
233
|
}
|
|
230
|
-
|
|
231
|
-
var tmp0 = this.
|
|
234
|
+
f2w() {
|
|
235
|
+
var tmp0 = this.b34_1;
|
|
232
236
|
var tmp = KProperty1();
|
|
233
237
|
// Inline function 'kotlin.getValue' call
|
|
234
238
|
getPropertyCallableRef('hash', 1, tmp, AttoTransaction$_get_hash_$ref_ha8bds(), null);
|
|
235
239
|
return tmp0.g3();
|
|
236
240
|
}
|
|
237
|
-
|
|
241
|
+
b2v() {
|
|
238
242
|
return this.block.height;
|
|
239
243
|
}
|
|
240
|
-
|
|
244
|
+
h2v() {
|
|
241
245
|
return this.block.address;
|
|
242
246
|
}
|
|
243
247
|
validate() {
|
|
@@ -258,16 +262,16 @@ function AttoTransaction() {
|
|
|
258
262
|
return Ok_instance;
|
|
259
263
|
}
|
|
260
264
|
isValid() {
|
|
261
|
-
return this.validate().
|
|
265
|
+
return this.validate().isValid;
|
|
262
266
|
}
|
|
263
267
|
getTotalSize() {
|
|
264
|
-
return 72 + this.block.type.
|
|
268
|
+
return 72 + this.block.type.d2y_1 | 0;
|
|
265
269
|
}
|
|
266
|
-
|
|
267
|
-
var serializedBlock = this.block.
|
|
270
|
+
v2w() {
|
|
271
|
+
var serializedBlock = this.block.v2w();
|
|
268
272
|
// Inline function 'kotlin.apply' call
|
|
269
273
|
var this_0 = new (Buffer())();
|
|
270
|
-
this_0.
|
|
274
|
+
this_0.b1i(serializedBlock, serializedBlock.u2());
|
|
271
275
|
writeAttoSignature(this_0, this.signature);
|
|
272
276
|
writeAttoWork(this_0, this.work);
|
|
273
277
|
return this_0;
|
|
@@ -275,23 +279,23 @@ function AttoTransaction() {
|
|
|
275
279
|
toString() {
|
|
276
280
|
return 'AttoTransaction(hash=' + this.hash.toString() + ', block=' + toString(this.block) + ', signature=' + this.signature.toString() + ', work=' + this.work.toString() + ', hash=' + this.hash.toString() + ')';
|
|
277
281
|
}
|
|
278
|
-
|
|
282
|
+
hf() {
|
|
279
283
|
return this.block;
|
|
280
284
|
}
|
|
281
|
-
|
|
285
|
+
if() {
|
|
282
286
|
return this.signature;
|
|
283
287
|
}
|
|
284
|
-
|
|
288
|
+
q2v() {
|
|
285
289
|
return this.work;
|
|
286
290
|
}
|
|
287
|
-
|
|
291
|
+
g34(block, signature, work) {
|
|
288
292
|
return new (AttoTransaction())(block, signature, work);
|
|
289
293
|
}
|
|
290
294
|
copy(block, signature, work, $super) {
|
|
291
295
|
block = block === VOID ? this.block : block;
|
|
292
296
|
signature = signature === VOID ? this.signature : signature;
|
|
293
297
|
work = work === VOID ? this.work : work;
|
|
294
|
-
return $super === VOID ? this.
|
|
298
|
+
return $super === VOID ? this.g34(block, signature, work) : $super.g34.call(this, block, signature, work);
|
|
295
299
|
}
|
|
296
300
|
hashCode() {
|
|
297
301
|
var result = hashCode(this.block);
|
|
@@ -312,30 +316,31 @@ function AttoTransaction() {
|
|
|
312
316
|
return false;
|
|
313
317
|
return true;
|
|
314
318
|
}
|
|
315
|
-
static
|
|
319
|
+
static c34(seen0, block, signature, work, serializationConstructorMarker) {
|
|
316
320
|
Companion_getInstance();
|
|
317
321
|
if (!(7 === (7 & seen0))) {
|
|
318
|
-
throwMissingFieldException(seen0, 7, $serializer_getInstance().
|
|
322
|
+
throwMissingFieldException(seen0, 7, $serializer_getInstance().z33_1);
|
|
319
323
|
}
|
|
320
324
|
var $this = createThis(this);
|
|
321
325
|
$this.block = block;
|
|
322
326
|
$this.signature = signature;
|
|
323
327
|
$this.work = work;
|
|
324
328
|
var tmp = $this;
|
|
325
|
-
tmp.
|
|
329
|
+
tmp.b34_1 = lazy_0(AttoTransaction$_init_$lambda_46wg3f($this));
|
|
326
330
|
return $this;
|
|
327
331
|
}
|
|
328
332
|
get hash() {
|
|
329
|
-
return this.
|
|
333
|
+
return this.f2w();
|
|
330
334
|
}
|
|
331
335
|
get height() {
|
|
332
|
-
return this.
|
|
336
|
+
return this.b2v();
|
|
333
337
|
}
|
|
334
338
|
get address() {
|
|
335
|
-
return this.
|
|
339
|
+
return this.h2v();
|
|
336
340
|
}
|
|
337
341
|
}
|
|
338
|
-
|
|
342
|
+
protoOf($).toByteArray = toByteArray;
|
|
343
|
+
initMetadataForClass($, 'AttoTransaction', VOID, VOID, [HeightSupport(), AddressSupport(), AttoSerializable()], VOID, VOID, {0: $serializer_getInstance});
|
|
339
344
|
AttoTransactionClass = $;
|
|
340
345
|
}
|
|
341
346
|
return AttoTransactionClass;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../../commons-core/src/commonMain/kotlin/cash/atto/commons/AttoTransaction.kt","../../../../../commons-js/build/compileSync/js/main/productionLibrary/kotlin/commons-commons-core/cash/atto/commons/src/kotlin/util/Lazy.kt","../../../../../commons-js/build/compileSync/js/main/productionLibrary/kotlin/commons-commons-core/cash/atto/commons/src/kotlin/util/Standard.kt"],"sourcesContent":[null,null,null],"ignoreList":[],"x_google_ignoreList":[],"names":["AttoTransaction$Companion$$childSerializers$<anonymous>","<get-SIZE>","fromBuffer","buffer","block","transaction","serializer","serialize","encoder","value","deserialize","childSerializers","AttoTransaction$hash$delegate$lambda","AttoTransaction$hash$delegate$lambda$lambda","AttoTransaction$<init>$lambda","AttoTransaction$<init>$lambda$lambda","signature","work","<get-block>","<get-signature>","<get-work>","<get-hash>","<get-height>","<get-address>","validate","blockValidation","isValid","getTotalSize","toBuffer","serializedBlock","toString","result"],"mappings":"
|
|
1
|
+
{"version":3,"sources":["../../../../../commons-core/src/commonMain/kotlin/cash/atto/commons/AttoTransaction.kt","../../../../../commons-js/build/compileSync/js/main/productionLibrary/kotlin/commons-commons-core/cash/atto/commons/src/kotlin/util/Lazy.kt","../../../../../commons-js/build/compileSync/js/main/productionLibrary/kotlin/commons-commons-core/cash/atto/commons/src/kotlin/util/Standard.kt"],"sourcesContent":["@file:OptIn(ExperimentalJsExport::class)\n\npackage cash.atto.commons\n\nimport cash.atto.commons.utils.JsExportForJs\nimport kotlinx.io.Buffer\nimport kotlinx.io.readByteArray\nimport kotlinx.serialization.KSerializer\nimport kotlinx.serialization.Serializable\nimport kotlinx.serialization.builtins.ByteArraySerializer\nimport kotlinx.serialization.descriptors.PrimitiveKind\nimport kotlinx.serialization.descriptors.PrimitiveSerialDescriptor\nimport kotlinx.serialization.encoding.Decoder\nimport kotlinx.serialization.encoding.Encoder\nimport kotlin.js.ExperimentalJsExport\nimport kotlin.js.JsExport\n\n@JsExportForJs\n@Serializable\ndata class AttoTransaction(\n val block: AttoBlock,\n val signature: AttoSignature,\n val work: AttoWork,\n) : HeightSupport,\n AddressSupport,\n AttoSerializable {\n val hash by lazy { block.hash }\n\n override val height: AttoHeight\n get() = block.height\n\n override val address: AttoAddress\n get() = block.address\n\n companion object {\n const val SIZE = 72\n\n @JsExport.Ignore\n fun fromBuffer(buffer: Buffer): AttoTransaction? {\n if (SIZE > buffer.size) {\n return null\n }\n\n val block = AttoBlock.fromBuffer(buffer) ?: return null\n\n val transaction =\n AttoTransaction(\n block = block,\n signature = buffer.readAttoSignature(),\n work = buffer.readAttoWork(),\n )\n\n if (!transaction.isValid()) {\n return null\n }\n\n return transaction\n }\n }\n\n fun validate(): AttoValidation {\n when (val blockValidation = block.validate()) {\n is AttoValidation.Ok -> Unit\n is AttoValidation.Error -> return blockValidation\n }\n\n if (!work.isValid(block)) {\n return AttoValidation.Error(\n \"Work is invalid\",\n )\n }\n\n if (!signature.isValid(block.publicKey, block.hash)) {\n return AttoValidation.Error(\n \"Signature is invalid: publicKey=${block.publicKey}, hash=${block.hash}\",\n )\n }\n\n return AttoValidation.Ok\n }\n\n /**\n * Minimal block validation. This method doesn't check this transaction against the ledger so further validations are required.\n */\n fun isValid(): Boolean = validate().isValid\n\n /**\n * Return the transaction and block size\n */\n fun getTotalSize(): Int = SIZE + block.type.size\n\n @JsExport.Ignore\n override fun toBuffer(): Buffer {\n val serializedBlock = block.toBuffer()\n return Buffer().apply {\n this.write(serializedBlock, serializedBlock.size)\n this.writeAttoSignature(signature)\n this.writeAttoWork(work)\n }\n }\n\n override fun toString(): String = \"AttoTransaction(hash=$hash, block=$block, signature=$signature, work=$work, hash=$hash)\"\n}\n\nobject AttoTransactionAsByteArraySerializer : KSerializer<AttoTransaction> {\n override val descriptor = PrimitiveSerialDescriptor(\"AttoTransactionAsByteArray\", PrimitiveKind.BYTE)\n\n override fun serialize(\n encoder: Encoder,\n value: AttoTransaction,\n ) {\n encoder.encodeSerializableValue(ByteArraySerializer(), value.toBuffer().readByteArray())\n }\n\n override fun deserialize(decoder: Decoder): AttoTransaction =\n AttoTransaction.fromBuffer(decoder.decodeSerializableValue(ByteArraySerializer()).toBuffer())!!\n}\n",null,null],"ignoreList":[],"x_google_ignoreList":[],"names":["AttoTransaction$Companion$$childSerializers$<anonymous>","<get-SIZE>","fromBuffer","buffer","block","transaction","serializer","serialize","encoder","value","deserialize","childSerializers","AttoTransaction$hash$delegate$lambda","AttoTransaction$hash$delegate$lambda$lambda","AttoTransaction$<init>$lambda","AttoTransaction$<init>$lambda$lambda","signature","work","<get-block>","<get-signature>","<get-work>","<get-hash>","<get-height>","<get-address>","validate","blockValidation","isValid","getTotalSize","toBuffer","serializedBlock","toString","result"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;uEAiBAA,CAAAA,EAAA;A,EAAA,+B;AAqFA,C;;;;;;;kBApEI,I;;;;;QAAA,yBAjBJ,8DAiBI,c;QACqB,c;;SAAXC,CAAAA,EAAA;A,QAAA,gB;MAAO,C;SAGbC,CAAeC,MAAfD,EAAiD;A,QACzC,UAAO,MAAO,KAAd,C,CAAoB;A,UACpB,OAAO,I;QACX,C;YAEY,iBAAU,uBAAW,MAAX,C;;QAAV,2B;UAAgC,OAAO,I;;gBAAvC,c;;YAAZE,W;YAEAC,sCAEgB,KAFhBA,EAG2B,kBAAP,MAAO,CAH3BA,EAIsB,aAAP,MAAO,CAJtBA,C;QAOI,KAAC,WAAY,UAAb,C,CAAwB;A,UACxB,OAAO,I;QACX,C;QAEA,OAAO,W;MACX,C;SAvBJC,CAAAA,EAAA;A,QAAA,gC;MAwBA,C;;;;;;;;;;;;;;;;;;;YAzCJ,uG;QAAA,mC;QAAA,uC;QAAA,kC;QAAA,4B;;SAAAC,CAAA,O,EAAA,KAAAA,EAAA;A,YAAA,sB;YAAA,mC;YAAA,2C;QAAA,+D;QAAA,6F;QAAA,mF;QAAA,yB;MAqFA,C;SAeixGC,O,EAAkBC,K;;;QApGnyGC,CAAA,OAAAA,EAAA;A,YAAA,sB;YAAA,gB;YAAA,c;YAAA,iB;YAAA,kB;YAAA,kB;YAAA,kB;YAAA,kC;YAAA,2C;QAAA,oB,CAAA;A,UAAA,2E;UAAA,iC;UAAA,qG;UAAA,iC;UAAA,gG;UAAA,iC;QAqFA,C;iBArFA,S,EAAA;A,YAAA,qC;YAAA,mB;mBAAA,E;gBAAA,iB;;mBAAA,C;gBAAA,2E;gBAAA,iC;;mBAAA,C;gBAAA,qG;gBAAA,iC;;mBAAA,C;gBAAA,gG;gBAAA,iC;;;gBAAA,4C;;UAqFA,C;QArFA,wB;QAAA,wF;MAqFA,C;;;;SArFAC,CAAAA,EAAA;A;;;QAAA,uI;MAqFA,C;;;;;;;;;;;;;;6CA5EqBC,CATrB,MASqBA,E;SAAAC,CAAAA,KAAE,MAAFA,CAAE,KAAFA,CAAQ,I;C;;iBAAb,E,CAAA,I;;6CAAKC,CATrB,MASqBA,E;SAAAC,CAAAA,KAAE,MAAFA,CAAE,KAAFA,CAAQ,I;C;;;;;kBANzBX,K,EACAY,S,EACAC,I;QALJ,uB;QAGI,kB;QACA,0B;QACA,gB;kBAIY,I;QAAA,mBAAK,0CAAL,C;;SANZC,CAAAA,EAAA;A,QAAA,iB;MAAmB,C;SACnBC,CAAAA,EAAA;A,QAAA,qB;MAA2B,C;SAC3BC,CAAAA,EAAA;A,QAAA,gB;MAAiB,C;SAIjBC,CAAAA,EAAY;A,mBAAA,I,CAAA,K;;;QAAA,qF;QAAA,OCyB4E,S;MDzB1D,C;SAG1BC,CAAAA,EAAQ;A,QAAY,OAAZ,IAAY,CAAZ,KAAY,CAAN,M;MAAK,C;SAGnBC,CAAAA,EAAQ;A,QAAa,OAAb,IAAa,CAAb,KAAa,CAAP,O;MAAM,C;cA4BxBC,CAAAA,EAA+B;A,YACrBC,kBAAsB,IAAM,CAAN,KAAM,W;QAC9B,uC;UACA,yC;YAA2B,OAAO,e;;YAFtC,8B;;;QAKI,KAAC,IAAK,CAAL,IAAK,SAAQ,IAAR,CAAQ,KAAR,CAAN,C,CAAsB;A,UACtB,uBACI,iBADJ,C;QAGJ,C;QAEI,KAAW,QAAV,IAAU,CAAV,SAAU,EAAQ,IAAR,CAAQ,KAAR,CAAc,SAAd,EAAyB,IAAzB,CAAyB,KAAzB,CAA+B,IAA/B,CAAX,C,CAAiD;A,UACjD,uBACK,kCADL,GACuC,IADvC,CACuC,KADvC,CAC6C,SAD7C,cACuD,SADvD,GACgE,IADhE,CACgE,KADhE,CACsE,IADtE,Y;QAGJ,C;QAEA,kB;MACJ,C;aAKAC,CAAAA,EAAyB;A,QAAkB,OAAlB,eAAkB,CAAP,O;MAAM,C;kBAK1CC,CAAAA,EAA0B;A,QAAsB,OAAtB,KAAO,IAAP,CAAO,KAAP,CAAa,IAAb,CAAkB,KAAI,I;MAAD,C;SAGtCC,CAAAA,EAAuB;A,YAC5BC,kBAAsB,IAAM,CAAN,KAAM,M;;qBACrB,gB;QACE,WAAM,eAAN,EAAuB,eAAgB,KAAvC,C;QACA,2BAAmB,IAAnB,CAAmB,SAAnB,C;QACA,sBAAc,IAAd,CAAc,IAAd,C;QAHT,OEPG,M;MFYP,C;cAESC,CAAAA,EAAyB;A,QAAyF,OAAxF,uBAAwF,GAAlE,IAAkE,CAAlE,IAAkE,cAA9D,UAA8D,YAArD,IAAqD,CAArD,KAAqD,IAAhD,cAAgD,GAAnC,IAAmC,CAAnC,SAAmC,cAA1B,SAA0B,GAAlB,IAAkB,CAAlB,IAAkB,cAAd,SAAc,GAAN,IAAM,CAAN,IAAM,cAAF,G;MAAC,C;WArG9H;A,QAAA,iB;MAAA,C;WAAA;A,QAAA,qB;MAAA,C;YAAA;A,QAAA,gB;MAAA,C;kCAAA;A,QAAA,sD;MAAA,C;;iCAAA,I,CAAA,K;yCAAA,I,CAAA,S;+BAAA,I,CAAA,I;;;iBAAA;A,YAAAC,6B;QAAA,yD;QAAA,oD;QAAA,a;MAAA,C;oBAAA;A,QAAA,mB;UAAA,W;QAAA,0C;UAAA,Y;QAAA,qC;UAAA,Y;QAAA,4C;UAAA,Y;QAAA,kC;UAAA,Y;QAAA,W;MAAA,C;;QAiBA,uB;QAAA,yB;UAAA,qE;;;QAAA,mB;QAAA,2B;QAAA,iB;kBAAA,K;QAAA,YASgB,OAAK,2CAAL,C;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
type Nullable<T> = T | null | undefined
|
|
2
|
+
declare function KtSingleton<T>(): T & (abstract new() => any);
|
|
3
|
+
export declare interface AttoValidation {
|
|
4
|
+
readonly isValid: boolean;
|
|
5
|
+
getError(): Nullable<string>;
|
|
6
|
+
readonly __doNotUseOrImplementIt: {
|
|
7
|
+
readonly "cash.atto.commons.AttoValidation": unique symbol;
|
|
8
|
+
};
|
|
9
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"ignoreList":[],"x_google_ignoreList":[],"names":[],"mappings":";;"}
|