@attocash/commons-test 6.2.0 → 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.
Files changed (677) hide show
  1. package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/DateTimeUnit.mjs +58 -58
  2. package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/Exceptions.mjs +21 -21
  3. package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/LocalDate.mjs +56 -56
  4. package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/LocalDateTime.mjs +31 -31
  5. package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/LocalTime.mjs +41 -41
  6. package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/OverloadMarker.mjs +1 -1
  7. package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/TimeZone.mjs +65 -65
  8. package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/UtcOffset.mjs +22 -22
  9. package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/YearMonth.mjs +22 -22
  10. package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/ZonedDateTime.mjs +12 -12
  11. package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/format/DateTimeFormat.mjs +7 -7
  12. package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/format/DateTimeFormatBuilder.mjs +32 -32
  13. package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/format/LocalDateFormat.mjs +122 -122
  14. package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/format/LocalDateTimeFormat.mjs +106 -106
  15. package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/format/LocalTimeFormat.mjs +150 -150
  16. package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/format/UtcOffsetFormat.mjs +131 -131
  17. package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/format/YearMonthFormat.mjs +74 -74
  18. package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/internal/OffsetInfo.mjs +29 -29
  19. package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/internal/Platform.mjs +26 -26
  20. package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/internal/RegionTimeZone.mjs +20 -20
  21. package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/internal/TimeZoneRules.mjs +49 -49
  22. package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/internal/format/Builder.mjs +7 -7
  23. package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/internal/format/FieldFormatDirective.mjs +49 -49
  24. package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/internal/format/FieldSpec.mjs +42 -42
  25. package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/internal/format/FormatStructure.mjs +108 -108
  26. package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/internal/format/Predicate.mjs +11 -11
  27. package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/internal/format/formatter/Formatter.mjs +28 -28
  28. package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/internal/format/formatter/FormatterOperation.mjs +45 -45
  29. package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/internal/format/parser/NumberConsumer.mjs +43 -43
  30. package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/internal/format/parser/ParseResult.mjs +4 -4
  31. package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/internal/format/parser/Parser.mjs +54 -54
  32. package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/internal/format/parser/ParserOperation.mjs +60 -60
  33. package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/internal/math.mjs +16 -16
  34. package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/internal/mathNative.mjs +3 -3
  35. package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/serializers/DateTimeUnitSerializers.mjs +100 -100
  36. package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/serializers/LocalDateSerializers.mjs +9 -9
  37. package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/serializers/LocalDateTimeSerializers.mjs +9 -9
  38. package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/serializers/LocalTimeSerializers.mjs +9 -9
  39. package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/serializers/TimeZoneSerializers.mjs +28 -28
  40. package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/serializers/YearMonthSerializers.mjs +9 -9
  41. package/commons-commons-core/cash/atto/commons/AccountUpdate.js.mjs +11 -11
  42. package/commons-commons-core/cash/atto/commons/AccountUpdate.js.mjs.map +1 -1
  43. package/commons-commons-core/cash/atto/commons/AttoAccount.mjs +129 -129
  44. package/commons-commons-core/cash/atto/commons/AttoAccount.mjs.map +1 -1
  45. package/commons-commons-core/cash/atto/commons/AttoAccountEntry.mjs +116 -116
  46. package/commons-commons-core/cash/atto/commons/AttoAccountEntry.mjs.map +1 -1
  47. package/commons-commons-core/cash/atto/commons/AttoAddress.export.d.mts +1 -1
  48. package/commons-commons-core/cash/atto/commons/AttoAddress.export.mjs +2 -0
  49. package/commons-commons-core/cash/atto/commons/AttoAddress.export.mjs.map +1 -1
  50. package/commons-commons-core/cash/atto/commons/AttoAddress.mjs +38 -34
  51. package/commons-commons-core/cash/atto/commons/AttoAddress.mjs.map +1 -1
  52. package/commons-commons-core/cash/atto/commons/AttoAlgorithm.mjs +15 -15
  53. package/commons-commons-core/cash/atto/commons/AttoAlgorithm.mjs.map +1 -1
  54. package/commons-commons-core/cash/atto/commons/AttoAmount.export.d.mts +3 -4
  55. package/commons-commons-core/cash/atto/commons/AttoAmount.export.mjs +4 -0
  56. package/commons-commons-core/cash/atto/commons/AttoAmount.export.mjs.map +1 -1
  57. package/commons-commons-core/cash/atto/commons/AttoAmount.mjs +63 -55
  58. package/commons-commons-core/cash/atto/commons/AttoAmount.mjs.map +1 -1
  59. package/commons-commons-core/cash/atto/commons/AttoBlock.export.d.mts +11 -11
  60. package/commons-commons-core/cash/atto/commons/AttoBlock.mjs +825 -817
  61. package/commons-commons-core/cash/atto/commons/AttoBlock.mjs.map +1 -1
  62. package/commons-commons-core/cash/atto/commons/AttoBufferExtensions.mjs +11 -11
  63. package/commons-commons-core/cash/atto/commons/AttoBufferExtensions.mjs.map +1 -1
  64. package/commons-commons-core/cash/atto/commons/AttoChallenge.mjs +13 -13
  65. package/commons-commons-core/cash/atto/commons/AttoChallenge.mjs.map +1 -1
  66. package/commons-commons-core/cash/atto/commons/AttoHash.mjs +14 -14
  67. package/commons-commons-core/cash/atto/commons/AttoHash.mjs.map +1 -1
  68. package/commons-commons-core/cash/atto/commons/AttoHasher.js.mjs +1 -1
  69. package/commons-commons-core/cash/atto/commons/AttoHasher.js.mjs.map +1 -1
  70. package/commons-commons-core/cash/atto/commons/AttoHeight.export.d.mts +4 -4
  71. package/commons-commons-core/cash/atto/commons/AttoHeight.export.mjs +5 -1
  72. package/commons-commons-core/cash/atto/commons/AttoHeight.export.mjs.map +1 -1
  73. package/commons-commons-core/cash/atto/commons/AttoHeight.mjs +37 -30
  74. package/commons-commons-core/cash/atto/commons/AttoHeight.mjs.map +1 -1
  75. package/commons-commons-core/cash/atto/commons/AttoInstant.export.d.mts +1 -1
  76. package/commons-commons-core/cash/atto/commons/AttoInstant.mjs +38 -38
  77. package/commons-commons-core/cash/atto/commons/AttoInstant.mjs.map +1 -1
  78. package/commons-commons-core/cash/atto/commons/AttoJob.mjs +1 -1
  79. package/commons-commons-core/cash/atto/commons/AttoJob.mjs.map +1 -1
  80. package/commons-commons-core/cash/atto/commons/AttoKeyIndex.export.d.mts +1 -1
  81. package/commons-commons-core/cash/atto/commons/AttoKeyIndex.mjs +4 -4
  82. package/commons-commons-core/cash/atto/commons/AttoKeyIndex.mjs.map +1 -1
  83. package/commons-commons-core/cash/atto/commons/AttoMnemonic.export.d.mts +2 -3
  84. package/commons-commons-core/cash/atto/commons/AttoMnemonic.js.mjs.map +1 -1
  85. package/commons-commons-core/cash/atto/commons/AttoMnemonic.mjs +35 -26
  86. package/commons-commons-core/cash/atto/commons/AttoMnemonic.mjs.map +1 -1
  87. package/commons-commons-core/cash/atto/commons/AttoMnemonicDictionary.mjs +7 -7
  88. package/commons-commons-core/cash/atto/commons/AttoMnemonicDictionary.mjs.map +1 -1
  89. package/commons-commons-core/cash/atto/commons/AttoNetwork.export.d.mts +0 -5
  90. package/commons-commons-core/cash/atto/commons/AttoNetwork.mjs +20 -20
  91. package/commons-commons-core/cash/atto/commons/AttoNetwork.mjs.map +1 -1
  92. package/commons-commons-core/cash/atto/commons/AttoPrivateKey.js.mjs +8 -8
  93. package/commons-commons-core/cash/atto/commons/AttoPrivateKey.js.mjs.map +1 -1
  94. package/commons-commons-core/cash/atto/commons/AttoPrivateKey.mjs +30 -30
  95. package/commons-commons-core/cash/atto/commons/AttoPrivateKey.mjs.map +1 -1
  96. package/commons-commons-core/cash/atto/commons/AttoPublicKey.js.mjs.map +1 -1
  97. package/commons-commons-core/cash/atto/commons/AttoPublicKey.mjs +13 -13
  98. package/commons-commons-core/cash/atto/commons/AttoPublicKey.mjs.map +1 -1
  99. package/commons-commons-core/cash/atto/commons/AttoReceivable.mjs +96 -96
  100. package/commons-commons-core/cash/atto/commons/AttoReceivable.mjs.map +1 -1
  101. package/commons-commons-core/cash/atto/commons/AttoSeed.js.mjs +7 -7
  102. package/commons-commons-core/cash/atto/commons/AttoSeed.js.mjs.map +1 -1
  103. package/commons-commons-core/cash/atto/commons/AttoSeed.mjs +4 -4
  104. package/commons-commons-core/cash/atto/commons/AttoSeed.mjs.map +1 -1
  105. package/commons-commons-core/cash/atto/commons/AttoSerializable.export.d.mts +8 -0
  106. package/commons-commons-core/cash/atto/commons/AttoSerializable.export.mjs +4 -0
  107. package/commons-commons-core/cash/atto/commons/AttoSerializable.export.mjs.map +1 -0
  108. package/commons-commons-core/cash/atto/commons/AttoSerializable.mjs +27 -0
  109. package/commons-commons-core/cash/atto/commons/AttoSerializable.mjs.map +1 -0
  110. package/commons-commons-core/cash/atto/commons/AttoSignature.js.mjs.map +1 -1
  111. package/commons-commons-core/cash/atto/commons/AttoSignature.mjs +14 -14
  112. package/commons-commons-core/cash/atto/commons/AttoSignature.mjs.map +1 -1
  113. package/commons-commons-core/cash/atto/commons/AttoSigner.export.d.mts +28 -0
  114. package/commons-commons-core/cash/atto/commons/AttoSigner.export.mjs +19 -0
  115. package/commons-commons-core/cash/atto/commons/AttoSigner.export.mjs.map +1 -0
  116. package/commons-commons-core/cash/atto/commons/AttoSigner.js.mjs +74 -11
  117. package/commons-commons-core/cash/atto/commons/AttoSigner.js.mjs.map +1 -1
  118. package/commons-commons-core/cash/atto/commons/AttoSigner.mjs +76 -0
  119. package/commons-commons-core/cash/atto/commons/AttoSigner.mjs.map +1 -1
  120. package/commons-commons-core/cash/atto/commons/AttoTransaction.export.d.mts +4 -4
  121. package/commons-commons-core/cash/atto/commons/AttoTransaction.mjs +73 -68
  122. package/commons-commons-core/cash/atto/commons/AttoTransaction.mjs.map +1 -1
  123. package/commons-commons-core/cash/atto/commons/AttoValidation.export.d.mts +9 -0
  124. package/commons-commons-core/cash/atto/commons/AttoValidation.export.mjs +4 -0
  125. package/commons-commons-core/cash/atto/commons/AttoValidation.export.mjs.map +1 -0
  126. package/commons-commons-core/cash/atto/commons/AttoValidation.mjs +17 -4
  127. package/commons-commons-core/cash/atto/commons/AttoValidation.mjs.map +1 -1
  128. package/commons-commons-core/cash/atto/commons/AttoVersion.export.d.mts +1 -1
  129. package/commons-commons-core/cash/atto/commons/AttoVersion.mjs +15 -15
  130. package/commons-commons-core/cash/atto/commons/AttoVersion.mjs.map +1 -1
  131. package/commons-commons-core/cash/atto/commons/AttoVote.export.d.mts +3 -2
  132. package/commons-commons-core/cash/atto/commons/AttoVote.mjs +84 -79
  133. package/commons-commons-core/cash/atto/commons/AttoVote.mjs.map +1 -1
  134. package/commons-commons-core/cash/atto/commons/AttoWork.mjs +26 -26
  135. package/commons-commons-core/cash/atto/commons/AttoWork.mjs.map +1 -1
  136. package/commons-commons-core/cash/atto/commons/AttoWorkTarget.mjs +16 -16
  137. package/commons-commons-core/cash/atto/commons/AttoWorkTarget.mjs.map +1 -1
  138. package/commons-commons-core/cash/atto/commons/Extensions.mjs +8 -8
  139. package/commons-commons-core/cash/atto/commons/Extensions.mjs.map +1 -1
  140. package/commons-commons-core/cash/atto/commons/utils/Base32.mjs +9 -9
  141. package/commons-commons-core/cash/atto/commons/utils/Base32.mjs.map +1 -1
  142. package/commons-commons-core/cash/atto/commons/utils/SecureRandom.js.mjs +1 -1
  143. package/commons-commons-core/cash/atto/commons/utils/SecureRandom.js.mjs.map +1 -1
  144. package/commons-commons-core/cash/atto/commons/utils/SubtleCrypto.mjs.map +1 -1
  145. package/commons-commons-core.mjs +1 -2
  146. package/commons-commons-core.mjs.map +1 -1
  147. package/commons-commons-node/cash/atto/commons/node/AttoNodeClientAsync.web.export.d.mts +26 -0
  148. package/commons-commons-node/cash/atto/commons/node/{AttoNodeClientAsync.export.mjs → AttoNodeClientAsync.web.export.mjs} +2 -2
  149. package/commons-commons-node/cash/atto/commons/node/{AttoNodeClientAsync.mjs → AttoNodeClientAsync.web.mjs} +401 -409
  150. package/commons-commons-node/cash/atto/commons/node/AttoNodeClientAsync.web.mjs.map +1 -0
  151. package/commons-commons-node/cash/atto/commons/node/AttoNodeOperations.export.d.mts +1 -1
  152. package/commons-commons-node/cash/atto/commons/node/AttoNodeOperations.mjs +158 -158
  153. package/commons-commons-node/cash/atto/commons/node/AttoNodeOperations.mjs.map +1 -1
  154. package/commons-commons-node/cash/atto/commons/node/NodeExtensions.export.d.mts +2 -0
  155. package/commons-commons-node/cash/atto/commons/node/NodeExtensions.export.mjs +4 -0
  156. package/commons-commons-node/cash/atto/commons/node/NodeExtensions.export.mjs.map +1 -1
  157. package/commons-commons-node/cash/atto/commons/node/NodeExtensions.mjs +44 -19
  158. package/commons-commons-node/cash/atto/commons/node/NodeExtensions.mjs.map +1 -1
  159. package/commons-commons-node/cash/atto/commons/node/monitor/AttoAccountEntryMonitor.mjs +8 -8
  160. package/commons-commons-node/cash/atto/commons/node/monitor/AttoAccountEntryMonitor.mjs.map +1 -1
  161. package/commons-commons-node/cash/atto/commons/node/monitor/{AttoAccountEntryMonitorAsync.export.d.mts → AttoAccountEntryMonitorAsync.web.export.d.mts} +3 -2
  162. package/commons-commons-node/cash/atto/commons/node/monitor/{AttoAccountEntryMonitorAsync.export.mjs → AttoAccountEntryMonitorAsync.web.export.mjs} +2 -2
  163. package/commons-commons-node/cash/atto/commons/node/monitor/{AttoAccountEntryMonitorAsync.mjs → AttoAccountEntryMonitorAsync.web.mjs} +76 -47
  164. package/commons-commons-node/cash/atto/commons/node/monitor/AttoAccountEntryMonitorAsync.web.mjs.map +1 -0
  165. package/commons-commons-node/cash/atto/commons/node/monitor/{AttoAccountEntryMonitorAsyncBuilder.web.export.d.mts → AttoAccountEntryMonitorAsyncBuilder.js.export.d.mts} +1 -1
  166. package/commons-commons-node/cash/atto/commons/node/monitor/{AttoAccountEntryMonitorAsyncBuilder.web.export.mjs → AttoAccountEntryMonitorAsyncBuilder.js.export.mjs} +2 -2
  167. package/commons-commons-node/cash/atto/commons/node/monitor/{AttoAccountEntryMonitorAsyncBuilder.web.mjs → AttoAccountEntryMonitorAsyncBuilder.js.mjs} +20 -20
  168. package/commons-commons-node/cash/atto/commons/node/monitor/AttoAccountEntryMonitorAsyncBuilder.js.mjs.map +1 -0
  169. package/commons-commons-node/cash/atto/commons/node/monitor/AttoAccountMonitor.mjs +38 -38
  170. package/commons-commons-node/cash/atto/commons/node/monitor/AttoAccountMonitor.mjs.map +1 -1
  171. package/commons-commons-node/cash/atto/commons/node/monitor/{AttoAccountMonitorAsync.export.d.mts → AttoAccountMonitorAsync.web.export.d.mts} +5 -4
  172. package/commons-commons-node/cash/atto/commons/node/monitor/{AttoAccountMonitorAsync.export.mjs → AttoAccountMonitorAsync.web.export.mjs} +2 -2
  173. package/commons-commons-node/cash/atto/commons/node/monitor/{AttoAccountMonitorAsync.mjs → AttoAccountMonitorAsync.web.mjs} +140 -135
  174. package/commons-commons-node/cash/atto/commons/node/monitor/AttoAccountMonitorAsync.web.mjs.map +1 -0
  175. package/commons-commons-node/cash/atto/commons/node/monitor/AttoAccountMonitorAsyncBuilder.web.mjs +4 -4
  176. package/commons-commons-node/cash/atto/commons/node/monitor/AttoAccountMonitorAsyncBuilder.web.mjs.map +1 -1
  177. package/commons-commons-node/cash/atto/commons/node/monitor/AttoHeightMonitor.mjs +65 -65
  178. package/commons-commons-node/cash/atto/commons/node/monitor/AttoHeightMonitor.mjs.map +1 -1
  179. package/commons-commons-node/cash/atto/commons/node/monitor/AttoTransactionMonitor.mjs +8 -8
  180. package/commons-commons-node/cash/atto/commons/node/monitor/AttoTransactionMonitor.mjs.map +1 -1
  181. package/commons-commons-node/cash/atto/commons/node/monitor/{AttoTransactionMonitorAsync.export.d.mts → AttoTransactionMonitorAsync.web.export.d.mts} +3 -2
  182. package/commons-commons-node/cash/atto/commons/node/monitor/{AttoTransactionMonitorAsync.export.mjs → AttoTransactionMonitorAsync.web.export.mjs} +2 -2
  183. package/commons-commons-node/cash/atto/commons/node/monitor/{AttoTransactionMonitorAsync.mjs → AttoTransactionMonitorAsync.web.mjs} +76 -47
  184. package/commons-commons-node/cash/atto/commons/node/monitor/AttoTransactionMonitorAsync.web.mjs.map +1 -0
  185. package/commons-commons-node/cash/atto/commons/node/monitor/{AttoTransactionMonitorAsyncBuilder.web.export.d.mts → AttoTransactionMonitorAsyncBuilder.js.export.d.mts} +1 -1
  186. package/commons-commons-node/cash/atto/commons/node/monitor/{AttoTransactionMonitorAsyncBuilder.web.export.mjs → AttoTransactionMonitorAsyncBuilder.js.export.mjs} +2 -2
  187. package/commons-commons-node/cash/atto/commons/node/monitor/{AttoTransactionMonitorAsyncBuilder.web.mjs → AttoTransactionMonitorAsyncBuilder.js.mjs} +20 -20
  188. package/commons-commons-node/cash/atto/commons/node/monitor/AttoTransactionMonitorAsyncBuilder.js.mjs.map +1 -0
  189. package/commons-commons-node-remote/cash/atto/commons/node/AttoNodeClientAsyncBuilder.web.mjs +10 -10
  190. package/commons-commons-node-remote/cash/atto/commons/node/AttoNodeClientAsyncBuilder.web.mjs.map +1 -1
  191. package/commons-commons-node-remote/cash/atto/commons/node/AttoNodeClientRemote.mjs +344 -344
  192. package/commons-commons-node-remote/cash/atto/commons/node/AttoNodeClientRemote.mjs.map +1 -1
  193. package/commons-commons-node.mjs +6 -6
  194. package/commons-commons-test/cash/atto/commons/node/AttoMockWorker.mjs +8 -8
  195. package/commons-commons-test/cash/atto/commons/node/AttoMockWorker.mjs.map +1 -1
  196. package/commons-commons-test/cash/atto/commons/node/AttoNodeMock.js.mjs +32 -32
  197. package/commons-commons-test/cash/atto/commons/node/AttoNodeMock.js.mjs.map +1 -1
  198. package/commons-commons-test/cash/atto/commons/node/AttoNodeMock.mjs +20 -20
  199. package/commons-commons-test/cash/atto/commons/node/AttoNodeMock.mjs.map +1 -1
  200. package/commons-commons-test/cash/atto/commons/node/AttoNodeMockAsync.js.export.d.mts +1 -1
  201. package/commons-commons-test/cash/atto/commons/node/AttoNodeMockAsync.js.mjs +36 -48
  202. package/commons-commons-test/cash/atto/commons/node/AttoNodeMockAsync.js.mjs.map +1 -1
  203. package/commons-commons-test/cash/atto/commons/node/AttoNodeMockAsync.mjs +1 -1
  204. package/commons-commons-test/cash/atto/commons/node/AttoNodeMockAsync.mjs.map +1 -1
  205. package/commons-commons-test/cash/atto/commons/node/AttoNodeMockAsyncBuilder.js.export.d.mts +1 -1
  206. package/commons-commons-test/cash/atto/commons/node/AttoNodeMockAsyncBuilder.js.mjs +57 -61
  207. package/commons-commons-test/cash/atto/commons/node/AttoNodeMockAsyncBuilder.js.mjs.map +1 -1
  208. package/commons-commons-test/cash/atto/commons/node/AttoWorkerMock.js.mjs +15 -15
  209. package/commons-commons-test/cash/atto/commons/node/AttoWorkerMock.js.mjs.map +1 -1
  210. package/commons-commons-test/cash/atto/commons/node/AttoWorkerMockAsync.js.export.d.mts +1 -1
  211. package/commons-commons-test/cash/atto/commons/node/AttoWorkerMockAsync.js.mjs +33 -45
  212. package/commons-commons-test/cash/atto/commons/node/AttoWorkerMockAsync.js.mjs.map +1 -1
  213. package/commons-commons-test/cash/atto/commons/node/AttoWorkerMockAsync.mjs +1 -1
  214. package/commons-commons-test/cash/atto/commons/node/AttoWorkerMockAsync.mjs.map +1 -1
  215. package/commons-commons-test/cash/atto/commons/node/AttoWorkerMockAsyncBuilder.js.export.d.mts +1 -1
  216. package/commons-commons-test/cash/atto/commons/node/AttoWorkerMockAsyncBuilder.js.mjs +40 -40
  217. package/commons-commons-test/cash/atto/commons/node/AttoWorkerMockAsyncBuilder.js.mjs.map +1 -1
  218. package/commons-commons-worker/cash/atto/commons/worker/AttoWorker.mjs +2 -2
  219. package/commons-commons-worker/cash/atto/commons/worker/AttoWorker.mjs.map +1 -1
  220. package/commons-commons-worker/cash/atto/commons/worker/{AttoWorkerAsync.export.d.mts → AttoWorkerAsync.js.export.d.mts} +3 -3
  221. package/commons-commons-worker/cash/atto/commons/worker/{AttoWorkerAsync.export.mjs → AttoWorkerAsync.js.export.mjs} +2 -2
  222. package/commons-commons-worker/cash/atto/commons/worker/AttoWorkerAsync.js.mjs +108 -0
  223. package/commons-commons-worker/cash/atto/commons/worker/AttoWorkerAsync.js.mjs.map +1 -0
  224. package/commons-commons-worker/cash/atto/commons/worker/AttoWorkerAsync.mjs +1 -110
  225. package/commons-commons-worker/cash/atto/commons/worker/AttoWorkerAsync.mjs.map +1 -1
  226. package/commons-commons-worker/cash/atto/commons/worker/AttoWorkerCache.mjs +79 -79
  227. package/commons-commons-worker/cash/atto/commons/worker/AttoWorkerCache.mjs.map +1 -1
  228. package/commons-commons-worker/cash/atto/commons/worker/AttoWorkerCpu.js.mjs.map +1 -1
  229. package/commons-commons-worker/cash/atto/commons/worker/AttoWorkerCpu.mjs +38 -38
  230. package/commons-commons-worker/cash/atto/commons/worker/AttoWorkerCpu.mjs.map +1 -1
  231. package/commons-commons-worker/cash/atto/commons/worker/AttoWorkerOperations.mjs +82 -82
  232. package/commons-commons-worker/cash/atto/commons/worker/AttoWorkerOperations.mjs.map +1 -1
  233. package/commons-commons-worker-remote/cash/atto/commons/worker/AttoWorkerAsyncBuilder.web.mjs +16 -16
  234. package/commons-commons-worker-remote/cash/atto/commons/worker/AttoWorkerAsyncBuilder.web.mjs.map +1 -1
  235. package/commons-commons-worker-remote/cash/atto/commons/worker/AttoWorkerRemote.mjs +33 -33
  236. package/commons-commons-worker-remote/cash/atto/commons/worker/AttoWorkerRemote.mjs.map +1 -1
  237. package/commons-commons-worker.mjs +1 -1
  238. package/kotlin-kotlin-stdlib/kotlin/AutoCloseableJs.mjs +2 -2
  239. package/kotlin-kotlin-stdlib/kotlin/DeepRecursive.mjs +24 -24
  240. package/kotlin-kotlin-stdlib/kotlin/Enum.mjs +3 -3
  241. package/kotlin-kotlin-stdlib/kotlin/Lazy.mjs +9 -9
  242. package/kotlin-kotlin-stdlib/kotlin/Primitives.mjs +4 -4
  243. package/kotlin-kotlin-stdlib/kotlin/Result.mjs +16 -11
  244. package/kotlin-kotlin-stdlib/kotlin/Result.mjs.map +1 -1
  245. package/kotlin-kotlin-stdlib/kotlin/Standard.mjs +3 -3
  246. package/kotlin-kotlin-stdlib/kotlin/Tuples.mjs +20 -20
  247. package/kotlin-kotlin-stdlib/kotlin/UByte.mjs +12 -12
  248. package/kotlin-kotlin-stdlib/kotlin/UByteArray.mjs +26 -26
  249. package/kotlin-kotlin-stdlib/kotlin/UInt.mjs +12 -12
  250. package/kotlin-kotlin-stdlib/kotlin/UIntArray.mjs +26 -26
  251. package/kotlin-kotlin-stdlib/kotlin/ULong.mjs +12 -12
  252. package/kotlin-kotlin-stdlib/kotlin/ULongArray.mjs +26 -26
  253. package/kotlin-kotlin-stdlib/kotlin/UShort.mjs +12 -12
  254. package/kotlin-kotlin-stdlib/kotlin/UShortArray.mjs +26 -26
  255. package/kotlin-kotlin-stdlib/kotlin/collections/AbstractCollection.mjs +2 -2
  256. package/kotlin-kotlin-stdlib/kotlin/collections/AbstractList.mjs +49 -95
  257. package/kotlin-kotlin-stdlib/kotlin/collections/AbstractList.mjs.map +1 -1
  258. package/kotlin-kotlin-stdlib/kotlin/collections/AbstractMap.mjs +40 -40
  259. package/kotlin-kotlin-stdlib/kotlin/collections/AbstractMutableCollectionJs.mjs +10 -10
  260. package/kotlin-kotlin-stdlib/kotlin/collections/AbstractMutableListJs.mjs +67 -92
  261. package/kotlin-kotlin-stdlib/kotlin/collections/AbstractMutableListJs.mjs.map +1 -1
  262. package/kotlin-kotlin-stdlib/kotlin/collections/AbstractMutableMap.mjs +25 -25
  263. package/kotlin-kotlin-stdlib/kotlin/collections/AbstractMutableSet.mjs +4 -4
  264. package/kotlin-kotlin-stdlib/kotlin/collections/AbstractSet.mjs +7 -7
  265. package/kotlin-kotlin-stdlib/kotlin/collections/ArrayDeque.mjs +202 -249
  266. package/kotlin-kotlin-stdlib/kotlin/collections/ArrayDeque.mjs.map +1 -1
  267. package/kotlin-kotlin-stdlib/kotlin/collections/ArrayListJs.mjs +37 -43
  268. package/kotlin-kotlin-stdlib/kotlin/collections/ArrayListJs.mjs.map +1 -1
  269. package/kotlin-kotlin-stdlib/kotlin/collections/Collections.export.d.mts +0 -9
  270. package/kotlin-kotlin-stdlib/kotlin/collections/Collections.export.mjs +1 -7
  271. package/kotlin-kotlin-stdlib/kotlin/collections/Collections.export.mjs.map +1 -1
  272. package/kotlin-kotlin-stdlib/kotlin/collections/Collections.mjs +24 -52
  273. package/kotlin-kotlin-stdlib/kotlin/collections/Collections.mjs.map +1 -1
  274. package/kotlin-kotlin-stdlib/kotlin/collections/CollectionsKt.mjs +46 -83
  275. package/kotlin-kotlin-stdlib/kotlin/collections/CollectionsKt.mjs.map +1 -1
  276. package/kotlin-kotlin-stdlib/kotlin/collections/HashMap.mjs +35 -35
  277. package/kotlin-kotlin-stdlib/kotlin/collections/HashMapEntry.mjs +51 -51
  278. package/kotlin-kotlin-stdlib/kotlin/collections/HashMapEntryDefault.mjs +38 -38
  279. package/kotlin-kotlin-stdlib/kotlin/collections/HashSet.mjs +16 -16
  280. package/kotlin-kotlin-stdlib/kotlin/collections/IndexedValue.mjs +7 -7
  281. package/kotlin-kotlin-stdlib/kotlin/collections/InternalHashMap.mjs +204 -204
  282. package/kotlin-kotlin-stdlib/kotlin/collections/InternalMap.mjs +1 -1
  283. package/kotlin-kotlin-stdlib/kotlin/collections/Iterables.mjs +2 -2
  284. package/kotlin-kotlin-stdlib/kotlin/collections/Iterators.mjs +6 -6
  285. package/kotlin-kotlin-stdlib/kotlin/collections/LinkedHashMap.mjs +17 -17
  286. package/kotlin-kotlin-stdlib/kotlin/collections/LinkedHashSet.mjs +7 -7
  287. package/kotlin-kotlin-stdlib/kotlin/collections/MapWithDefault.mjs +3 -3
  288. package/kotlin-kotlin-stdlib/kotlin/collections/Maps.mjs +25 -25
  289. package/kotlin-kotlin-stdlib/kotlin/collections/MutableCollections.mjs +7 -7
  290. package/kotlin-kotlin-stdlib/kotlin/collections/MutableCollections.mjs.map +1 -1
  291. package/kotlin-kotlin-stdlib/kotlin/collections/PrimitiveIterators.mjs +4 -4
  292. package/kotlin-kotlin-stdlib/kotlin/collections/Sets.mjs +11 -11
  293. package/kotlin-kotlin-stdlib/kotlin/collections/Sets.mjs.map +1 -1
  294. package/kotlin-kotlin-stdlib/kotlin/collections/_Arrays.mjs +0 -27
  295. package/kotlin-kotlin-stdlib/kotlin/collections/_Arrays.mjs.map +1 -1
  296. package/kotlin-kotlin-stdlib/kotlin/collections/_ArraysJs.mjs +4 -4
  297. package/kotlin-kotlin-stdlib/kotlin/collections/_CollectionsJs.mjs +2 -2
  298. package/kotlin-kotlin-stdlib/kotlin/collections/collectionJs.mjs +19 -19
  299. package/kotlin-kotlin-stdlib/kotlin/collections/collectionJs.mjs.map +1 -1
  300. package/kotlin-kotlin-stdlib/kotlin/collections/collectionsInterop.mjs +17 -112
  301. package/kotlin-kotlin-stdlib/kotlin/collections/collectionsInterop.mjs.map +1 -1
  302. package/kotlin-kotlin-stdlib/kotlin/coroutines/Continuation.mjs +10 -1
  303. package/kotlin-kotlin-stdlib/kotlin/coroutines/Continuation.mjs.map +1 -1
  304. package/kotlin-kotlin-stdlib/kotlin/coroutines/ContinuationInterceptor.mjs +3 -3
  305. package/kotlin-kotlin-stdlib/kotlin/coroutines/CoroutineContext.mjs +4 -4
  306. package/kotlin-kotlin-stdlib/kotlin/coroutines/CoroutineContextImpl.mjs +38 -38
  307. package/kotlin-kotlin-stdlib/kotlin/coroutines/CoroutineImpl.mjs +4 -4
  308. package/kotlin-kotlin-stdlib/kotlin/coroutines/GeneratorCoroutineImpl.mjs +38 -38
  309. package/kotlin-kotlin-stdlib/kotlin/coroutines/InterceptedCoroutine.mjs +10 -10
  310. package/kotlin-kotlin-stdlib/kotlin/coroutines/SafeContinuationJs.mjs +17 -17
  311. package/kotlin-kotlin-stdlib/kotlin/coroutines/intrinsics/IntrinsicsJs.mjs +112 -21
  312. package/kotlin-kotlin-stdlib/kotlin/coroutines/intrinsics/IntrinsicsJs.mjs.map +1 -1
  313. package/kotlin-kotlin-stdlib/kotlin/enums/EnumEntries.mjs +10 -30
  314. package/kotlin-kotlin-stdlib/kotlin/enums/EnumEntries.mjs.map +1 -1
  315. package/kotlin-kotlin-stdlib/kotlin/exceptions.mjs +71 -71
  316. package/kotlin-kotlin-stdlib/kotlin/hacks.mjs +3 -3
  317. package/kotlin-kotlin-stdlib/kotlin/js/JsClass.mjs +1 -1
  318. package/kotlin-kotlin-stdlib/kotlin/js/arrays.mjs +8 -8
  319. package/kotlin-kotlin-stdlib/kotlin/js/internal/primitiveCompanionObjects.mjs +26 -26
  320. package/kotlin-kotlin-stdlib/kotlin/js/json.mjs +2 -2
  321. package/kotlin-kotlin-stdlib/kotlin/random/Random.mjs +29 -29
  322. package/kotlin-kotlin-stdlib/kotlin/random/XorWowRandom.mjs +25 -25
  323. package/kotlin-kotlin-stdlib/kotlin/ranges/PrimitiveRanges.mjs +17 -17
  324. package/kotlin-kotlin-stdlib/kotlin/ranges/ProgressionIterators.mjs +26 -26
  325. package/kotlin-kotlin-stdlib/kotlin/ranges/Progressions.mjs +10 -10
  326. package/kotlin-kotlin-stdlib/kotlin/reflect/KTypeProjection.mjs +16 -16
  327. package/kotlin-kotlin-stdlib/kotlin/reflect/js/internal/KClassImpl.mjs +23 -23
  328. package/kotlin-kotlin-stdlib/kotlin/reflect/js/internal/KTypeHelpers.mjs +2 -2
  329. package/kotlin-kotlin-stdlib/kotlin/reflect/js/internal/KTypeParameterImpl.mjs +8 -8
  330. package/kotlin-kotlin-stdlib/kotlin/reflect/js/internal/primitives.mjs +20 -20
  331. package/kotlin-kotlin-stdlib/kotlin/sequences/SequenceBuilder.mjs +34 -34
  332. package/kotlin-kotlin-stdlib/kotlin/sequences/Sequences.mjs +27 -27
  333. package/kotlin-kotlin-stdlib/kotlin/text/CharacterCodingExceptionJs.mjs +6 -6
  334. package/kotlin-kotlin-stdlib/kotlin/text/HexExtensions.mjs +18 -18
  335. package/kotlin-kotlin-stdlib/kotlin/text/HexFormat.mjs +45 -45
  336. package/kotlin-kotlin-stdlib/kotlin/text/Indent.mjs +2 -2
  337. package/kotlin-kotlin-stdlib/kotlin/text/StringBuilderJs.mjs +17 -17
  338. package/kotlin-kotlin-stdlib/kotlin/text/StringNumberConversions.mjs +1 -1
  339. package/kotlin-kotlin-stdlib/kotlin/text/Strings.mjs +66 -66
  340. package/kotlin-kotlin-stdlib/kotlin/text/_DigitChars.mjs +3 -3
  341. package/kotlin-kotlin-stdlib/kotlin/text/_LetterChars.mjs +7 -7
  342. package/kotlin-kotlin-stdlib/kotlin/text/regex.mjs +20 -20
  343. package/kotlin-kotlin-stdlib/kotlin/text/stringJs.mjs +13 -13
  344. package/kotlin-kotlin-stdlib/kotlin/text/stringsCode.mjs +3 -3
  345. package/kotlin-kotlin-stdlib/kotlin/text/utf8Encoding.mjs +1 -1
  346. package/kotlin-kotlin-stdlib/kotlin/throwableExtensions.mjs +21 -21
  347. package/kotlin-kotlin-stdlib/kotlin/time/Clock.mjs +1 -1
  348. package/kotlin-kotlin-stdlib/kotlin/time/Duration.mjs +81 -81
  349. package/kotlin-kotlin-stdlib/kotlin/time/DurationUnitJs.mjs +6 -6
  350. package/kotlin-kotlin-stdlib/kotlin/time/Instant.mjs +84 -84
  351. package/kotlin-kotlin-stdlib/kotlin/time/InstantJs.mjs +1 -1
  352. package/kotlin-kotlin-stdlib/kotlin/uuid/Uuid.mjs +24 -24
  353. package/kotlin-kotlin-stdlib/kotlin/uuid/UuidJs.mjs +2 -2
  354. package/kotlin-kotlin-stdlib/reflectionJs.mjs +2 -2
  355. package/kotlinx-atomicfu/kotlinx/atomicfu/AtomicFU.common.mjs +5 -5
  356. package/kotlinx-atomicfu/kotlinx/atomicfu/AtomicFU.mjs +8 -8
  357. package/kotlinx-coroutines-core/kotlinx/coroutines/AbstractCoroutine.mjs +27 -27
  358. package/kotlinx-coroutines-core/kotlinx/coroutines/Builders.common.mjs +16 -16
  359. package/kotlinx-coroutines-core/kotlinx/coroutines/CancellableContinuation.mjs +8 -8
  360. package/kotlinx-coroutines-core/kotlinx/coroutines/CancellableContinuationImpl.mjs +173 -173
  361. package/kotlinx-coroutines-core/kotlinx/coroutines/CompletableDeferred.mjs +10 -10
  362. package/kotlinx-coroutines-core/kotlinx/coroutines/CompletionState.mjs +11 -11
  363. package/kotlinx-coroutines-core/kotlinx/coroutines/CoroutineContext.mjs +4 -4
  364. package/kotlinx-coroutines-core/kotlinx/coroutines/CoroutineDispatcher.mjs +9 -9
  365. package/kotlinx-coroutines-core/kotlinx/coroutines/CoroutineExceptionHandler.mjs +4 -4
  366. package/kotlinx-coroutines-core/kotlinx/coroutines/CoroutineName.mjs +4 -4
  367. package/kotlinx-coroutines-core/kotlinx/coroutines/CoroutineScope.mjs +7 -7
  368. package/kotlinx-coroutines-core/kotlinx/coroutines/CoroutineStart.mjs +2 -2
  369. package/kotlinx-coroutines-core/kotlinx/coroutines/Delay.mjs +4 -4
  370. package/kotlinx-coroutines-core/kotlinx/coroutines/DispatchedTask.mjs +49 -49
  371. package/kotlinx-coroutines-core/kotlinx/coroutines/Dispatchers.mjs +18 -18
  372. package/kotlinx-coroutines-core/kotlinx/coroutines/EventLoop.common.mjs +30 -30
  373. package/kotlinx-coroutines-core/kotlinx/coroutines/EventLoop.mjs +2 -2
  374. package/kotlinx-coroutines-core/kotlinx/coroutines/Exceptions.common.mjs +6 -6
  375. package/kotlinx-coroutines-core/kotlinx/coroutines/Exceptions.mjs +6 -6
  376. package/kotlinx-coroutines-core/kotlinx/coroutines/JSDispatcher.mjs +90 -112
  377. package/kotlinx-coroutines-core/kotlinx/coroutines/JSDispatcher.mjs.map +1 -1
  378. package/kotlinx-coroutines-core/kotlinx/coroutines/Job.mjs +17 -17
  379. package/kotlinx-coroutines-core/kotlinx/coroutines/JobSupport.mjs +324 -324
  380. package/kotlinx-coroutines-core/kotlinx/coroutines/MainCoroutineDispatcher.mjs +5 -5
  381. package/kotlinx-coroutines-core/kotlinx/coroutines/Promise.mjs +16 -16
  382. package/kotlinx-coroutines-core/kotlinx/coroutines/Promise.mjs.map +1 -1
  383. package/kotlinx-coroutines-core/kotlinx/coroutines/Supervisor.mjs +1 -1
  384. package/kotlinx-coroutines-core/kotlinx/coroutines/Unconfined.mjs +7 -7
  385. package/kotlinx-coroutines-core/kotlinx/coroutines/channels/BufferedChannel.mjs +464 -464
  386. package/kotlinx-coroutines-core/kotlinx/coroutines/channels/Channel.mjs +30 -30
  387. package/kotlinx-coroutines-core/kotlinx/coroutines/channels/ChannelCoroutine.mjs +21 -21
  388. package/kotlinx-coroutines-core/kotlinx/coroutines/channels/Channels.common.mjs +1 -1
  389. package/kotlinx-coroutines-core/kotlinx/coroutines/channels/ConflatedBufferedChannel.mjs +16 -16
  390. package/kotlinx-coroutines-core/kotlinx/coroutines/channels/Produce.mjs +13 -13
  391. package/kotlinx-coroutines-core/kotlinx/coroutines/flow/Builders.mjs +13 -13
  392. package/kotlinx-coroutines-core/kotlinx/coroutines/flow/Channels.mjs +2 -2
  393. package/kotlinx-coroutines-core/kotlinx/coroutines/flow/Collect.mjs +1 -1
  394. package/kotlinx-coroutines-core/kotlinx/coroutines/flow/Emitters.mjs +1 -1
  395. package/kotlinx-coroutines-core/kotlinx/coroutines/flow/Reduce.mjs +18 -18
  396. package/kotlinx-coroutines-core/kotlinx/coroutines/flow/Share.mjs +11 -11
  397. package/kotlinx-coroutines-core/kotlinx/coroutines/flow/SharedFlow.mjs +45 -45
  398. package/kotlinx-coroutines-core/kotlinx/coroutines/flow/StateFlow.mjs +51 -51
  399. package/kotlinx-coroutines-core/kotlinx/coroutines/flow/internal/AbstractSharedFlow.mjs +25 -25
  400. package/kotlinx-coroutines-core/kotlinx/coroutines/flow/internal/ChannelFlow.mjs +65 -65
  401. package/kotlinx-coroutines-core/kotlinx/coroutines/flow/internal/FlowExceptions.common.mjs +1 -1
  402. package/kotlinx-coroutines-core/kotlinx/coroutines/flow/internal/FlowExceptions.mjs +6 -6
  403. package/kotlinx-coroutines-core/kotlinx/coroutines/flow/internal/Merge.mjs +39 -39
  404. package/kotlinx-coroutines-core/kotlinx/coroutines/flow/internal/SafeCollector.common.mjs +5 -5
  405. package/kotlinx-coroutines-core/kotlinx/coroutines/flow/internal/SafeCollector.mjs +10 -10
  406. package/kotlinx-coroutines-core/kotlinx/coroutines/flow/internal/SendingCollector.mjs +3 -3
  407. package/kotlinx-coroutines-core/kotlinx/coroutines/internal/Concurrent.common.mjs +2 -2
  408. package/kotlinx-coroutines-core/kotlinx/coroutines/internal/Concurrent.mjs +11 -11
  409. package/kotlinx-coroutines-core/kotlinx/coroutines/internal/ConcurrentLinkedList.mjs +49 -49
  410. package/kotlinx-coroutines-core/kotlinx/coroutines/internal/CoroutineExceptionHandlerImpl.common.mjs +2 -2
  411. package/kotlinx-coroutines-core/kotlinx/coroutines/internal/CoroutineExceptionHandlerImpl.mjs +3 -3
  412. package/kotlinx-coroutines-core/kotlinx/coroutines/internal/DispatchedContinuation.mjs +77 -77
  413. package/kotlinx-coroutines-core/kotlinx/coroutines/internal/LimitedDispatcher.mjs +37 -37
  414. package/kotlinx-coroutines-core/kotlinx/coroutines/internal/LinkedList.mjs +23 -23
  415. package/kotlinx-coroutines-core/kotlinx/coroutines/internal/LockFreeTaskQueue.mjs +75 -75
  416. package/kotlinx-coroutines-core/kotlinx/coroutines/internal/NamedDispatcher.mjs +10 -10
  417. package/kotlinx-coroutines-core/kotlinx/coroutines/internal/OnUndeliveredElement.mjs +4 -4
  418. package/kotlinx-coroutines-core/kotlinx/coroutines/internal/Scopes.mjs +11 -11
  419. package/kotlinx-coroutines-core/kotlinx/coroutines/internal/Symbol.mjs +2 -2
  420. package/kotlinx-coroutines-core/kotlinx/coroutines/internal/ThreadLocal.mjs +5 -5
  421. package/kotlinx-coroutines-core/kotlinx/coroutines/intrinsics/Cancellable.mjs +2 -2
  422. package/kotlinx-coroutines-core/kotlinx/coroutines/intrinsics/Undispatched.mjs +12 -12
  423. package/kotlinx-coroutines-core/kotlinx/coroutines/selects/Select.mjs +16 -16
  424. package/kotlinx-coroutines-core/kotlinx/coroutines/sync/Mutex.mjs +54 -54
  425. package/kotlinx-coroutines-core/kotlinx/coroutines/sync/Semaphore.mjs +65 -65
  426. package/kotlinx-io-kotlinx-io-bytestring/kotlinx/io/bytestring/ByteString.mjs +36 -36
  427. package/kotlinx-io-kotlinx-io-bytestring/kotlinx/io/bytestring/unsafe/UnsafeByteStringOperations.mjs +2 -2
  428. package/kotlinx-io-kotlinx-io-core/kotlinx/io/-PlatformJs.mjs +14 -14
  429. package/kotlinx-io-kotlinx-io-core/kotlinx/io/-Util.mjs +1 -1
  430. package/kotlinx-io-kotlinx-io-core/kotlinx/io/Buffer.mjs +191 -191
  431. package/kotlinx-io-kotlinx-io-core/kotlinx/io/Buffers.mjs +10 -10
  432. package/kotlinx-io-kotlinx-io-core/kotlinx/io/ByteStrings.mjs +1 -1
  433. package/kotlinx-io-kotlinx-io-core/kotlinx/io/PeekSource.mjs +21 -21
  434. package/kotlinx-io-kotlinx-io-core/kotlinx/io/RealSource.mjs +54 -54
  435. package/kotlinx-io-kotlinx-io-core/kotlinx/io/Segment.mjs +151 -151
  436. package/kotlinx-io-kotlinx-io-core/kotlinx/io/SegmentPool.mjs +6 -6
  437. package/kotlinx-io-kotlinx-io-core/kotlinx/io/Sink.mjs +2 -2
  438. package/kotlinx-io-kotlinx-io-core/kotlinx/io/Sinks.mjs +3 -3
  439. package/kotlinx-io-kotlinx-io-core/kotlinx/io/Sources.mjs +15 -15
  440. package/kotlinx-io-kotlinx-io-core/kotlinx/io/Utf8.mjs +58 -58
  441. package/kotlinx-io-kotlinx-io-core/kotlinx/io/internal/-Utf8.mjs +1 -1
  442. package/kotlinx-io-kotlinx-io-core/kotlinx/io/unsafe/UnsafeBufferOperations.mjs +12 -12
  443. package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/PolymorphicSerializer.mjs +19 -19
  444. package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/SealedSerializer.mjs +46 -46
  445. package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/SerializationExceptions.mjs +23 -23
  446. package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/Serializers.mjs +6 -6
  447. package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/SerializersCache.mjs +6 -6
  448. package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/SerializersJs.mjs +4 -4
  449. package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/builtins/BuiltinSerializers.mjs +1 -1
  450. package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/descriptors/ContextAware.mjs +33 -33
  451. package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/descriptors/SerialDescriptor.mjs +18 -18
  452. package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/descriptors/SerialDescriptors.mjs +66 -66
  453. package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/encoding/AbstractDecoder.mjs +51 -51
  454. package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/encoding/AbstractEncoder.mjs +63 -63
  455. package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/encoding/Decoding.mjs +2 -2
  456. package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/encoding/Encoding.mjs +2 -2
  457. package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/internal/AbstractPolymorphicSerializer.mjs +26 -26
  458. package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/internal/BuiltInSerializers.mjs +38 -38
  459. package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/internal/CollectionDescriptors.mjs +56 -56
  460. package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/internal/CollectionDescriptors.mjs.map +1 -1
  461. package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/internal/CollectionSerializers.mjs +243 -243
  462. package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/internal/ElementMarker.mjs +22 -22
  463. package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/internal/Enums.mjs +33 -33
  464. package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/internal/InlineClassDescriptor.mjs +16 -16
  465. package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/internal/NoOpEncoder.mjs +18 -18
  466. package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/internal/NothingSerialDescriptor.mjs +16 -16
  467. package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/internal/NullableSerializer.mjs +43 -43
  468. package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/internal/ObjectSerializer.mjs +19 -19
  469. package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/internal/Platform.common.mjs +7 -7
  470. package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/internal/Platform.mjs +14 -14
  471. package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/internal/PluginExceptions.mjs +2 -2
  472. package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/internal/PluginGeneratedSerialDescriptor.mjs +72 -72
  473. package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/internal/PrimitiveArraysSerializers.mjs +444 -444
  474. package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/internal/Primitives.mjs +116 -116
  475. package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/internal/Tagged.mjs +103 -103
  476. package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/internal/Tuples.mjs +92 -92
  477. package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/internal/ValueClasses.mjs +48 -48
  478. package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/modules/SerializersModule.mjs +33 -33
  479. package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/modules/SerializersModuleCollector.mjs +1 -1
  480. package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/Json.mjs +44 -44
  481. package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/JsonConfiguration.mjs +18 -18
  482. package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/JsonElement.mjs +68 -90
  483. package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/JsonElement.mjs.map +1 -1
  484. package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/JsonElementSerializers.mjs +152 -152
  485. package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/JsonSchemaCache.mjs +1 -1
  486. package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/AbstractJsonLexer.mjs +178 -178
  487. package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/CommentLexers.mjs +25 -25
  488. package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/Composers.mjs +71 -71
  489. package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/JsonElementMarker.mjs +8 -8
  490. package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/JsonExceptions.mjs +14 -14
  491. package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/JsonNamesMap.mjs +24 -24
  492. package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/JsonPath.mjs +39 -39
  493. package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/JsonSerializersModuleValidator.mjs +16 -16
  494. package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/JsonStreams.mjs +2 -2
  495. package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/JsonToStringWriterJsWasm.mjs +12 -12
  496. package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/JsonTreeReader.mjs +67 -67
  497. package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/Polymorphic.mjs +6 -6
  498. package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/SchemaCache.mjs +12 -12
  499. package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/StreamingJsonDecoder.mjs +176 -176
  500. package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/StreamingJsonEncoder.mjs +139 -139
  501. package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/StringJsonLexer.mjs +51 -51
  502. package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/StringOps.mjs +2 -2
  503. package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/TreeJsonDecoder.mjs +220 -220
  504. package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/WriteMode.mjs +9 -9
  505. package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/createMapForCache.mjs +1 -1
  506. package/ktor-ktor-client-content-negotiation/io/ktor/client/plugins/contentnegotiation/ContentNegotiation.mjs +72 -72
  507. package/ktor-ktor-client-content-negotiation/io/ktor/client/plugins/contentnegotiation/JsonContentTypeMatcher.mjs +4 -4
  508. package/ktor-ktor-client-core/io/ktor/client/HttpClient.mjs +76 -76
  509. package/ktor-ktor-client-core/io/ktor/client/HttpClientConfig.mjs +41 -41
  510. package/ktor-ktor-client-core/io/ktor/client/JsRequestUtils.mjs +1 -1
  511. package/ktor-ktor-client-core/io/ktor/client/call/DelegatedCall.mjs +43 -43
  512. package/ktor-ktor-client-core/io/ktor/client/call/HttpClientCall.mjs +51 -51
  513. package/ktor-ktor-client-core/io/ktor/client/call/SavedCall.mjs +49 -49
  514. package/ktor-ktor-client-core/io/ktor/client/call/utils.mjs +2 -2
  515. package/ktor-ktor-client-core/io/ktor/client/content/ObservableContent.mjs +23 -23
  516. package/ktor-ktor-client-core/io/ktor/client/engine/HttpClientEngine.mjs +57 -57
  517. package/ktor-ktor-client-core/io/ktor/client/engine/HttpClientEngineBase.mjs +23 -23
  518. package/ktor-ktor-client-core/io/ktor/client/engine/HttpClientEngineCapability.mjs +1 -1
  519. package/ktor-ktor-client-core/io/ktor/client/engine/HttpClientEngineConfig.mjs +4 -4
  520. package/ktor-ktor-client-core/io/ktor/client/engine/Loader.mjs +11 -11
  521. package/ktor-ktor-client-core/io/ktor/client/engine/Utils.mjs +25 -25
  522. package/ktor-ktor-client-core/io/ktor/client/engine/js/Js.mjs +6 -6
  523. package/ktor-ktor-client-core/io/ktor/client/engine/js/JsClientEngine.mjs +34 -34
  524. package/ktor-ktor-client-core/io/ktor/client/engine/js/JsUtils.mjs +17 -17
  525. package/ktor-ktor-client-core/io/ktor/client/engine/js/browser/BrowserFetch.mjs +14 -14
  526. package/ktor-ktor-client-core/io/ktor/client/engine/js/compatibility/Utils.mjs +9 -9
  527. package/ktor-ktor-client-core/io/ktor/client/plugins/BodyProgress.mjs +40 -40
  528. package/ktor-ktor-client-core/io/ktor/client/plugins/DefaultResponseValidation.mjs +33 -33
  529. package/ktor-ktor-client-core/io/ktor/client/plugins/DefaultTransform.mjs +74 -74
  530. package/ktor-ktor-client-core/io/ktor/client/plugins/HttpCallValidator.mjs +83 -83
  531. package/ktor-ktor-client-core/io/ktor/client/plugins/HttpClientPlugin.mjs +2 -2
  532. package/ktor-ktor-client-core/io/ktor/client/plugins/HttpPlainText.mjs +60 -60
  533. package/ktor-ktor-client-core/io/ktor/client/plugins/HttpRedirect.mjs +34 -34
  534. package/ktor-ktor-client-core/io/ktor/client/plugins/HttpRequestLifecycle.mjs +32 -32
  535. package/ktor-ktor-client-core/io/ktor/client/plugins/HttpRequestRetry.mjs +116 -116
  536. package/ktor-ktor-client-core/io/ktor/client/plugins/HttpSend.mjs +53 -53
  537. package/ktor-ktor-client-core/io/ktor/client/plugins/HttpTimeout.mjs +84 -84
  538. package/ktor-ktor-client-core/io/ktor/client/plugins/SaveBody.mjs +24 -24
  539. package/ktor-ktor-client-core/io/ktor/client/plugins/api/ClientHook.mjs +4 -4
  540. package/ktor-ktor-client-core/io/ktor/client/plugins/api/ClientPluginBuilder.mjs +13 -13
  541. package/ktor-ktor-client-core/io/ktor/client/plugins/api/ClientPluginInstance.mjs +12 -12
  542. package/ktor-ktor-client-core/io/ktor/client/plugins/api/CommonHooks.mjs +28 -28
  543. package/ktor-ktor-client-core/io/ktor/client/plugins/api/CreatePluginUtils.mjs +14 -14
  544. package/ktor-ktor-client-core/io/ktor/client/plugins/api/KtorCallContexts.mjs +39 -39
  545. package/ktor-ktor-client-core/io/ktor/client/plugins/sse/ClientSSESession.mjs +4 -4
  546. package/ktor-ktor-client-core/io/ktor/client/plugins/websocket/JsWebSocketSession.mjs +49 -49
  547. package/ktor-ktor-client-core/io/ktor/client/plugins/websocket/WebSockets.mjs +4 -4
  548. package/ktor-ktor-client-core/io/ktor/client/request/DefaultHttpRequest.mjs +18 -18
  549. package/ktor-ktor-client-core/io/ktor/client/request/HttpRequest.mjs +60 -60
  550. package/ktor-ktor-client-core/io/ktor/client/request/HttpRequestPipeline.mjs +18 -18
  551. package/ktor-ktor-client-core/io/ktor/client/request/utils.mjs +1 -1
  552. package/ktor-ktor-client-core/io/ktor/client/statement/DefaultHttpResponse.mjs +25 -25
  553. package/ktor-ktor-client-core/io/ktor/client/statement/HttpResponse.mjs +8 -8
  554. package/ktor-ktor-client-core/io/ktor/client/statement/HttpResponsePipeline.mjs +27 -27
  555. package/ktor-ktor-client-core/io/ktor/client/statement/HttpStatement.mjs +22 -22
  556. package/ktor-ktor-client-core/io/ktor/client/utils/ByteChannelUtils.mjs +17 -17
  557. package/ktor-ktor-client-core/io/ktor/client/utils/ClientEvents.mjs +2 -2
  558. package/ktor-ktor-client-core/io/ktor/client/utils/Content.mjs +3 -3
  559. package/ktor-ktor-client-core/io/ktor/client/utils/HeadersUtils.mjs +6 -6
  560. package/ktor-ktor-client-core/io/ktor/client/utils/headers.mjs +1 -1
  561. package/ktor-ktor-events/io/ktor/events/Events.mjs +6 -6
  562. package/ktor-ktor-http/io/ktor/http/Codecs.mjs +15 -15
  563. package/ktor-ktor-http/io/ktor/http/ContentTypes.mjs +93 -93
  564. package/ktor-ktor-http/io/ktor/http/HeaderValueWithParameters.mjs +19 -19
  565. package/ktor-ktor-http/io/ktor/http/Headers.mjs +18 -18
  566. package/ktor-ktor-http/io/ktor/http/HttpHeaderValueParser.mjs +42 -42
  567. package/ktor-ktor-http/io/ktor/http/HttpHeaders.mjs +115 -115
  568. package/ktor-ktor-http/io/ktor/http/HttpMessageProperties.mjs +6 -6
  569. package/ktor-ktor-http/io/ktor/http/HttpMethod.mjs +13 -13
  570. package/ktor-ktor-http/io/ktor/http/HttpProtocolVersion.mjs +16 -16
  571. package/ktor-ktor-http/io/ktor/http/HttpStatusCode.mjs +68 -68
  572. package/ktor-ktor-http/io/ktor/http/Parameters.mjs +11 -11
  573. package/ktor-ktor-http/io/ktor/http/Query.mjs +4 -4
  574. package/ktor-ktor-http/io/ktor/http/URLBuilder.mjs +61 -61
  575. package/ktor-ktor-http/io/ktor/http/URLBuilderJs.mjs +1 -1
  576. package/ktor-ktor-http/io/ktor/http/URLParser.mjs +34 -34
  577. package/ktor-ktor-http/io/ktor/http/URLProtocol.mjs +22 -22
  578. package/ktor-ktor-http/io/ktor/http/URLUtils.mjs +18 -18
  579. package/ktor-ktor-http/io/ktor/http/Url.mjs +69 -69
  580. package/ktor-ktor-http/io/ktor/http/UrlDecodedParametersBuilder.mjs +26 -26
  581. package/ktor-ktor-http/io/ktor/http/content/ByteArrayContent.mjs +9 -9
  582. package/ktor-ktor-http/io/ktor/http/content/OutgoingContent.mjs +8 -8
  583. package/ktor-ktor-http/io/ktor/http/content/TextContent.mjs +12 -12
  584. package/ktor-ktor-http-cio/io/ktor/http/cio/CIOMultipartDataBase.mjs +5 -5
  585. package/ktor-ktor-http-cio/io/ktor/http/cio/HttpHeadersMap.mjs +90 -90
  586. package/ktor-ktor-http-cio/io/ktor/http/cio/HttpParser.mjs +33 -33
  587. package/ktor-ktor-http-cio/io/ktor/http/cio/Multipart.mjs +53 -53
  588. package/ktor-ktor-http-cio/io/ktor/http/cio/internals/AsciiCharTree.mjs +15 -15
  589. package/ktor-ktor-http-cio/io/ktor/http/cio/internals/CharArrayBuilder.mjs +74 -74
  590. package/ktor-ktor-http-cio/io/ktor/http/cio/internals/CharArrayPool.mjs +2 -2
  591. package/ktor-ktor-http-cio/io/ktor/http/cio/internals/Chars.mjs +6 -6
  592. package/ktor-ktor-http-cio/io/ktor/http/cio/internals/Errors.mjs +3 -3
  593. package/ktor-ktor-http-cio/io/ktor/http/cio/internals/MutableRange.mjs +3 -3
  594. package/ktor-ktor-io/io/ktor/utils/io/ByteChannel.mjs +127 -127
  595. package/ktor-ktor-io/io/ktor/utils/io/ByteChannelCtor.mjs +1 -1
  596. package/ktor-ktor-io/io/ktor/utils/io/ByteChannelScanner.mjs +53 -53
  597. package/ktor-ktor-io/io/ktor/utils/io/ByteReadChannel.mjs +13 -13
  598. package/ktor-ktor-io/io/ktor/utils/io/ByteReadChannelOperations.mjs +59 -59
  599. package/ktor-ktor-io/io/ktor/utils/io/ByteWriteChannel.mjs +2 -2
  600. package/ktor-ktor-io/io/ktor/utils/io/ByteWriteChannelOperations.mjs +39 -39
  601. package/ktor-ktor-io/io/ktor/utils/io/CloseToken.mjs +11 -11
  602. package/ktor-ktor-io/io/ktor/utils/io/CountedByteReadChannel.mjs +23 -23
  603. package/ktor-ktor-io/io/ktor/utils/io/Exceptions.mjs +12 -12
  604. package/ktor-ktor-io/io/ktor/utils/io/IODispatcher.jsAndWasmShared.mjs +1 -1
  605. package/ktor-ktor-io/io/ktor/utils/io/LineEndingMode.mjs +15 -15
  606. package/ktor-ktor-io/io/ktor/utils/io/SourceByteReadChannel.mjs +18 -18
  607. package/ktor-ktor-io/io/ktor/utils/io/charsets/Charset.js.mjs +36 -36
  608. package/ktor-ktor-io/io/ktor/utils/io/charsets/Encoding.mjs +5 -5
  609. package/ktor-ktor-io/io/ktor/utils/io/charsets/ISO88591.mjs +2 -2
  610. package/ktor-ktor-io/io/ktor/utils/io/charsets/TextDecoder.js.mjs +3 -3
  611. package/ktor-ktor-io/io/ktor/utils/io/charsets/TextDecoderFallback.js.mjs +5 -5
  612. package/ktor-ktor-io/io/ktor/utils/io/core/Buffer.mjs +1 -1
  613. package/ktor-ktor-io/io/ktor/utils/io/core/BytePacketBuilder.mjs +2 -2
  614. package/ktor-ktor-io/io/ktor/utils/io/core/ByteReadPacket.mjs +4 -4
  615. package/ktor-ktor-io/io/ktor/utils/io/core/Input.mjs +1 -1
  616. package/ktor-ktor-io/io/ktor/utils/io/core/Strings.mjs +10 -10
  617. package/ktor-ktor-io/io/ktor/utils/io/pool/ByteArrayPool.mjs +1 -1
  618. package/ktor-ktor-io/io/ktor/utils/io/pool/DefaultPool.mjs +29 -29
  619. package/ktor-ktor-io/io/ktor/utils/io/pool/Pool.mjs +4 -4
  620. package/ktor-ktor-serialization/io/ktor/serialization/ContentConvertException.mjs +6 -6
  621. package/ktor-ktor-serialization/io/ktor/serialization/ContentConverter.mjs +42 -42
  622. package/ktor-ktor-serialization-kotlinx/io/ktor/serialization/kotlinx/Extensions.mjs +1 -1
  623. package/ktor-ktor-serialization-kotlinx/io/ktor/serialization/kotlinx/KotlinxSerializationConverter.mjs +89 -89
  624. package/ktor-ktor-serialization-kotlinx/io/ktor/serialization/kotlinx/SerializerLookup.mjs +11 -11
  625. package/ktor-ktor-serialization-kotlinx-json/io/ktor/serialization/kotlinx/json/JsonSupport.mjs +7 -7
  626. package/ktor-ktor-utils/io/ktor/util/Attributes.mjs +13 -13
  627. package/ktor-ktor-utils/io/ktor/util/AttributesJs.mjs +15 -15
  628. package/ktor-ktor-utils/io/ktor/util/CaseInsensitiveMap.mjs +45 -45
  629. package/ktor-ktor-utils/io/ktor/util/CoroutinesUtils.mjs +2 -2
  630. package/ktor-ktor-utils/io/ktor/util/DelegatingMutableSet.mjs +40 -40
  631. package/ktor-ktor-utils/io/ktor/util/PlatformUtils.mjs +16 -16
  632. package/ktor-ktor-utils/io/ktor/util/StringValues.mjs +83 -83
  633. package/ktor-ktor-utils/io/ktor/util/Text.mjs +9 -9
  634. package/ktor-ktor-utils/io/ktor/util/collections/CopyOnWriteHashMap.mjs +3 -3
  635. package/ktor-ktor-utils/io/ktor/util/date/Date.mjs +106 -106
  636. package/ktor-ktor-utils/io/ktor/util/date/DateJs.mjs +5 -5
  637. package/ktor-ktor-utils/io/ktor/util/internal/LockFreeLinkedList.mjs +8 -8
  638. package/ktor-ktor-utils/io/ktor/util/logging/KtorSimpleLoggerJs.mjs +10 -10
  639. package/ktor-ktor-utils/io/ktor/util/logging/LoggerJs.mjs +1 -1
  640. package/ktor-ktor-utils/io/ktor/util/pipeline/DebugPipelineContext.mjs +29 -29
  641. package/ktor-ktor-utils/io/ktor/util/pipeline/PhaseContent.mjs +26 -26
  642. package/ktor-ktor-utils/io/ktor/util/pipeline/Pipeline.mjs +55 -55
  643. package/ktor-ktor-utils/io/ktor/util/pipeline/PipelineContext.mjs +1 -1
  644. package/ktor-ktor-utils/io/ktor/util/pipeline/PipelinePhase.mjs +3 -3
  645. package/ktor-ktor-utils/io/ktor/util/pipeline/PipelinePhaseRelation.mjs +2 -2
  646. package/ktor-ktor-utils/io/ktor/util/pipeline/SuspendFunctionGun.mjs +58 -58
  647. package/ktor-ktor-utils/io/ktor/util/reflect/Type.mjs +9 -9
  648. package/ktor-ktor-utils/io/ktor/util/reflect/TypeInfoJs.mjs +1 -1
  649. package/ktor-ktor-websockets/io/ktor/websocket/CloseReason.mjs +18 -18
  650. package/ktor-ktor-websockets/io/ktor/websocket/FrameCommon.mjs +1 -1
  651. package/ktor-ktor-websockets/io/ktor/websocket/FrameJs.mjs +31 -31
  652. package/ktor-ktor-websockets/io/ktor/websocket/FrameType.mjs +8 -8
  653. package/package.json +1 -1
  654. package/commons-commons-core/cash/atto/commons/AttoFuture.js.export.d.mts +0 -12
  655. package/commons-commons-core/cash/atto/commons/AttoFuture.js.export.mjs +0 -13
  656. package/commons-commons-core/cash/atto/commons/AttoFuture.js.mjs +0 -72
  657. package/commons-commons-core/cash/atto/commons/AttoFuture.js.mjs.map +0 -1
  658. package/commons-commons-core/cash/atto/commons/AttoSocketAddress.export.d.mts +0 -17
  659. package/commons-commons-core/cash/atto/commons/AttoSocketAddress.export.mjs +0 -13
  660. package/commons-commons-core/cash/atto/commons/AttoSocketAddress.mjs +0 -81
  661. package/commons-commons-core/cash/atto/commons/AttoSocketAddress.mjs.map +0 -1
  662. package/commons-commons-node/cash/atto/commons/node/AttoNodeClientAsync.export.d.mts +0 -21
  663. package/commons-commons-node/cash/atto/commons/node/AttoNodeClientAsync.mjs.map +0 -1
  664. package/commons-commons-node/cash/atto/commons/node/monitor/AttoAccountEntryMonitorAsync.mjs.map +0 -1
  665. package/commons-commons-node/cash/atto/commons/node/monitor/AttoAccountEntryMonitorAsyncBuilder.web.mjs.map +0 -1
  666. package/commons-commons-node/cash/atto/commons/node/monitor/AttoAccountMonitorAsync.mjs.map +0 -1
  667. package/commons-commons-node/cash/atto/commons/node/monitor/AttoTransactionMonitorAsync.mjs.map +0 -1
  668. package/commons-commons-node/cash/atto/commons/node/monitor/AttoTransactionMonitorAsyncBuilder.web.export.mjs.map +0 -1
  669. package/commons-commons-node/cash/atto/commons/node/monitor/AttoTransactionMonitorAsyncBuilder.web.mjs.map +0 -1
  670. package/commons-commons-worker/cash/atto/commons/worker/AttoWorkerAsync.export.mjs.map +0 -1
  671. /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
  672. /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
  673. /package/commons-commons-node/cash/atto/commons/node/{AttoNodeClientAsync.export.mjs.map → monitor/AttoAccountEntryMonitorAsyncBuilder.js.export.mjs.map} +0 -0
  674. /package/commons-commons-node/cash/atto/commons/node/monitor/{AttoAccountEntryMonitorAsync.export.mjs.map → AttoAccountMonitorAsync.web.export.mjs.map} +0 -0
  675. /package/commons-commons-node/cash/atto/commons/node/monitor/{AttoAccountEntryMonitorAsyncBuilder.web.export.mjs.map → AttoTransactionMonitorAsync.web.export.mjs.map} +0 -0
  676. /package/commons-commons-node/cash/atto/commons/node/monitor/{AttoAccountMonitorAsync.export.mjs.map → AttoTransactionMonitorAsyncBuilder.js.export.mjs.map} +0 -0
  677. /package/{commons-commons-node/cash/atto/commons/node/monitor/AttoTransactionMonitorAsync.export.mjs.map → commons-commons-worker/cash/atto/commons/worker/AttoWorkerAsync.js.export.mjs.map} +0 -0
@@ -0,0 +1,28 @@
1
+ type Nullable<T> = T | null | undefined
2
+ declare function KtSingleton<T>(): T & (abstract new() => any);
3
+ export declare interface AttoSigner {
4
+ readonly algorithm: AttoAlgorithm;
5
+ readonly publicKey: AttoPublicKey;
6
+ readonly address: AttoAddress;
7
+ signHash(hash: AttoHash): Promise<AttoSignature>;
8
+ signBlock(block: AttoBlock): Promise<AttoSignature>;
9
+ signVote(vote: AttoVote): Promise<AttoSignature>;
10
+ signChallenge(challenge: AttoChallenge, timestamp: AttoInstant): Promise<AttoSignature>;
11
+ checkPublicKey(publicKey: AttoPublicKey): Promise<void>;
12
+ readonly __doNotUseOrImplementIt: {
13
+ readonly "cash.atto.commons.AttoSigner": unique symbol;
14
+ };
15
+ }
16
+ export declare namespace AttoSigner {
17
+ abstract class Companion extends KtSingleton<Companion.$metadata$.constructor>() {
18
+ private constructor();
19
+ }
20
+ namespace Companion {
21
+ /** @deprecated $metadata$ is used for internal purposes, please don't use it in your code, because it can be removed at any moment */
22
+ namespace $metadata$ {
23
+ abstract class constructor {
24
+ private constructor();
25
+ }
26
+ }
27
+ }
28
+ }
@@ -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,33 +16,89 @@ 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';
21
+ import {
22
+ sign2v0z7umkpvgvl as sign_0,
23
+ sign1uej56tki34gj as sign_1,
24
+ sign389wfge3kn7yi as sign_2,
25
+ checkPublicKey3mr0m5k4v724a as checkPublicKey,
26
+ AttoSigner1s0b1owma3lqw as AttoSigner,
27
+ } from './AttoSigner.mjs';
13
28
  import { initMetadataForClassbxx6q50dy2s7 as initMetadataForClass } from '../../../../kotlin-kotlin-stdlib/kotlin/js/metadataUtils.mjs';
14
- import { VOID3gxj6tk5isa35 as VOID } from '../../../../kotlin-kotlin-stdlib/kotlin/js/void.mjs';
15
29
  //region block: imports
16
30
  //endregion
17
31
  //region block: pre-declaration
18
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.b4t(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
+ }
19
48
  var InMemorySignerClass;
20
49
  function InMemorySigner() {
21
50
  if (InMemorySignerClass === VOID) {
22
51
  class $ {
23
52
  constructor(privateKey) {
24
- this.h4u_1 = privateKey;
25
- this.i4u_1 = AttoAlgorithm_V1_getInstance();
26
- this.j4u_1 = toPublicKey(this.h4u_1);
27
- this.k4u_1 = toAddress(this.j4u_1, AttoAlgorithm_V1_getInstance());
28
- this.l4u_1 = generateKeyPairFromSeed(toUint8Array(this.h4u_1.value));
53
+ this.n4u_1 = privateKey;
54
+ this.o4u_1 = AttoAlgorithm_V1_getInstance();
55
+ this.p4u_1 = toPublicKey(this.n4u_1);
56
+ this.q4u_1 = toAddress(this.p4u_1, AttoAlgorithm_V1_getInstance());
57
+ this.r4u_1 = generateKeyPairFromSeed(toUint8Array(this.n4u_1.value));
58
+ }
59
+ i4k() {
60
+ return this.o4u_1;
61
+ }
62
+ g4k() {
63
+ return this.p4u_1;
29
64
  }
30
- y4k() {
31
- return this.k4u_1;
65
+ p4k() {
66
+ return this.q4u_1;
32
67
  }
33
- m4u(hash, $completion) {
34
- var signature = sign(this.l4u_1.secretKey, toUint8Array(hash.value));
68
+ signHash(hash) {
69
+ return promisify(($completion) => this.s4u(hash, $completion));
70
+ }
71
+ s4u(hash, $completion) {
72
+ return suspendOrReturn(/*#__NOINLINE__*/_generator_sign$suspendBridge__35yghi.bind(VOID, this, hash), $completion);
73
+ }
74
+ b4t(hash, $completion) {
75
+ var signature = sign(this.r4u_1.secretKey, toUint8Array(hash.value));
35
76
  return new (AttoSignature())(toByteArray(signature));
36
77
  }
78
+ d4t(block, $completion) {
79
+ return this.d4t(block, $completion);
80
+ }
81
+ e4t(vote, $completion) {
82
+ return this.e4t(vote, $completion);
83
+ }
84
+ f4t(challenge, timestamp, $completion) {
85
+ return this.f4t(challenge, timestamp, $completion);
86
+ }
87
+ get algorithm() {
88
+ return this.i4k();
89
+ }
90
+ get publicKey() {
91
+ return this.g4k();
92
+ }
93
+ get address() {
94
+ return this.p4k();
95
+ }
37
96
  }
38
- initMetadataForClass($, 'InMemorySigner', VOID, VOID, VOID, [1, 2]);
97
+ protoOf($).d4t = sign_0;
98
+ protoOf($).e4t = sign_1;
99
+ protoOf($).f4t = sign_2;
100
+ protoOf($).a4t = checkPublicKey;
101
+ initMetadataForClass($, 'InMemorySigner', VOID, VOID, [AttoSigner()], [1, 2]);
39
102
  InMemorySignerClass = $;
40
103
  }
41
104
  return InMemorySignerClass;
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../../commons-core/src/jsMain/kotlin/cash/atto/commons/AttoSigner.js.kt"],"sourcesContent":[null],"ignoreList":[],"x_google_ignoreList":[],"names":["privateKey","<get-address>","sign","hash","$completion","signature"],"mappings":";;;;;;;;;;;;;;;;;;;;;;kBAOoBA,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;;SAFNC,CAAAA,EAAA;A,QAAA,iB;MAAuB,C;SAIfC,CAASC,I,EAATC,WAAAF,EAAwC;A,YAC5DG,YAC4B,KACR,IADQ,CACR,KADQ,CACA,SADA,EAEC,aAAX,IAAW,CAAN,KAAM,CAFD,C;QAK5B,6BAA+B,YAAV,SAAU,CAA/B,C;MACJ,C;;;;;;;;;;;"}
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,14 +1,90 @@
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';
6
+ import { get_COROUTINE_SUSPENDED3ujt3p13qm4iy as get_COROUTINE_SUSPENDED } from '../../../../kotlin-kotlin-stdlib/kotlin/coroutines/intrinsics/Intrinsics.mjs';
7
+ import { suspendOrReturn49pspzlx5djv as suspendOrReturn } from '../../../../kotlin-kotlin-stdlib/kotlin/coroutines/intrinsics/IntrinsicsJs.mjs';
8
+ import { Companion_instance2gqbffdfes1sc as Companion_instance } from './AttoHash.mjs';
9
+ import { toByteArray18blahk7gwuv4 as toByteArray } from './Extensions.mjs';
10
+ import { IllegalArgumentException2asla15b5jaob as IllegalArgumentException } from '../../../../kotlin-kotlin-stdlib/kotlin/exceptions.mjs';
11
+ import { Unit_instance28fytmsmm6r23 as Unit_instance } from '../../../../kotlin-kotlin-stdlib/kotlin/Unit.mjs';
1
12
  import { InMemorySigner32umwc197yryh as InMemorySigner } from './AttoSigner.js.mjs';
2
13
  //region block: imports
3
14
  //endregion
4
15
  //region block: pre-declaration
5
16
  //endregion
17
+ var CompanionClass;
18
+ function Companion() {
19
+ if (CompanionClass === VOID) {
20
+ class $ {}
21
+ initMetadataForCompanion($);
22
+ CompanionClass = $;
23
+ }
24
+ return CompanionClass;
25
+ }
26
+ var Companion_instance_0;
27
+ function Companion_getInstance() {
28
+ return Companion_instance_0;
29
+ }
30
+ function *_generator_sign__qhulg5($this, block, $completion) {
31
+ var tmp = $this.a4t(block.publicKey, $completion);
32
+ if (tmp === get_COROUTINE_SUSPENDED())
33
+ tmp = yield tmp;
34
+ var tmp_0 = $this.b4t(block.hash, $completion);
35
+ if (tmp_0 === get_COROUTINE_SUSPENDED())
36
+ tmp_0 = yield tmp_0;
37
+ return tmp_0;
38
+ }
39
+ function *_generator_sign__qhulg5_0($this, vote, $completion) {
40
+ var tmp = $this.a4t(vote.publicKey, $completion);
41
+ if (tmp === get_COROUTINE_SUSPENDED())
42
+ tmp = yield tmp;
43
+ var tmp_0 = $this.b4t(vote.hash, $completion);
44
+ if (tmp_0 === get_COROUTINE_SUSPENDED())
45
+ tmp_0 = yield tmp_0;
46
+ return tmp_0;
47
+ }
48
+ function sign(block, $completion) {
49
+ return suspendOrReturn(/*#__NOINLINE__*/_generator_sign__qhulg5.bind(VOID, this, block), $completion);
50
+ }
51
+ function sign_0(vote, $completion) {
52
+ return suspendOrReturn(/*#__NOINLINE__*/_generator_sign__qhulg5_0.bind(VOID, this, vote), $completion);
53
+ }
54
+ function sign_1(challenge, timestamp, $completion) {
55
+ return this.b4t(Companion_instance.hash(64, [this.publicKey.value, challenge.value, toByteArray(timestamp)]), $completion);
56
+ }
57
+ function checkPublicKey(publicKey, $completion) {
58
+ if (!this.publicKey.equals(publicKey)) {
59
+ throw IllegalArgumentException().s2('Different public key ' + this.publicKey.toString());
60
+ }
61
+ return Unit_instance;
62
+ }
63
+ var AttoSignerClass;
64
+ function AttoSigner() {
65
+ if (AttoSignerClass === VOID) {
66
+ class $ {}
67
+ initMetadataForInterface($, 'AttoSigner', VOID, VOID, VOID, [1, 2]);
68
+ AttoSignerClass = $;
69
+ }
70
+ return AttoSignerClass;
71
+ }
6
72
  function toSigner(_this__u8e3s4) {
7
73
  return new (InMemorySigner())(_this__u8e3s4);
8
74
  }
75
+ //region block: init
76
+ Companion_instance_0 = new (Companion())();
77
+ //endregion
9
78
  //region block: exports
10
79
  export {
80
+ Companion as Companion1l27yp7mvqvwr,
81
+ AttoSigner as AttoSigner1s0b1owma3lqw,
11
82
  toSigner as toSignerroyf4kwojbn,
83
+ checkPublicKey as checkPublicKey3mr0m5k4v724a,
84
+ sign as sign2v0z7umkpvgvl,
85
+ sign_0 as sign1uej56tki34gj,
86
+ sign_1 as sign389wfge3kn7yi,
87
+ Companion_getInstance as Companion_getInstance1yz9pclaxooeb,
12
88
  };
13
89
  //endregion
14
90
 
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../../commons-core/src/commonMain/kotlin/cash/atto/commons/AttoSigner.kt"],"sourcesContent":[null],"ignoreList":[],"x_google_ignoreList":[],"names":["toSigner","<this>"],"mappings":";;;;;iBA6CAA,CAAIC,aAAJD,EAA4C;A,EAAoB,8BAAL,aAAK,C;AAAD,C;;;;;"}
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>"],"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;;;;;;;;;;iBAeJE,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/*, AttoSerializable */ {
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(): any/* AttoValidation */;
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
- readonly __doNotUseOrImplementIt: HeightSupport["__doNotUseOrImplementIt"] & AddressSupport["__doNotUseOrImplementIt"];
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.i1h();
63
+ return Companion_instance.b1h();
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.y4s_1 = [lazy(tmp_0, AttoTransaction$Companion$$childSerializers$_anonymous__8sfh5y), null, null];
76
+ tmp.g4t_1 = [lazy(tmp_0, AttoTransaction$Companion$$childSerializers$_anonymous__8sfh5y), null, null];
73
77
  this.SIZE = 72;
74
78
  }
75
- s4s() {
79
+ x4s() {
76
80
  return this.SIZE;
77
81
  }
78
- fromBuffer(buffer) {
82
+ n4n(buffer) {
79
83
  if (72n > buffer.u2()) {
80
84
  return null;
81
85
  }
82
- var tmp0_elvis_lhs = Companion_instance.fromBuffer(buffer);
86
+ var tmp0_elvis_lhs = Companion_instance.n4n(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
- i1h() {
100
+ b1h() {
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.h15('block', false);
119
- tmp0_serialDesc.h15('signature', false);
120
- tmp0_serialDesc.h15('work', false);
121
- this.z4s_1 = tmp0_serialDesc;
122
- }
123
- a4t(encoder, value) {
124
- var tmp0_desc = this.z4s_1;
125
- var tmp1_output = encoder.tx(tmp0_desc);
126
- var tmp2_cached = Companion_getInstance().y4s_1;
127
- tmp1_output.kz(tmp0_desc, 0, tmp2_cached[0].g3(), value.block);
128
- tmp1_output.kz(tmp0_desc, 1, AttoSignatureAsStringSerializer_getInstance(), value.signature);
129
- tmp1_output.kz(tmp0_desc, 2, AttoWorkAsStringSerializer_getInstance(), value.work);
130
- tmp1_output.ux(tmp0_desc);
131
- }
132
- ft(encoder, value) {
133
- return this.a4t(encoder, value instanceof AttoTransaction() ? value : THROW_CCE());
134
- }
135
- gt(decoder) {
136
- var tmp0_desc = this.z4s_1;
122
+ tmp0_serialDesc.c15('block', false);
123
+ tmp0_serialDesc.c15('signature', false);
124
+ tmp0_serialDesc.c15('work', false);
125
+ this.h4t_1 = tmp0_serialDesc;
126
+ }
127
+ i4t(encoder, value) {
128
+ var tmp0_desc = this.h4t_1;
129
+ var tmp1_output = encoder.ox(tmp0_desc);
130
+ var tmp2_cached = Companion_getInstance().g4t_1;
131
+ tmp1_output.fz(tmp0_desc, 0, tmp2_cached[0].g3(), value.block);
132
+ tmp1_output.fz(tmp0_desc, 1, AttoSignatureAsStringSerializer_getInstance(), value.signature);
133
+ tmp1_output.fz(tmp0_desc, 2, AttoWorkAsStringSerializer_getInstance(), value.work);
134
+ tmp1_output.px(tmp0_desc);
135
+ }
136
+ at(encoder, value) {
137
+ return this.i4t(encoder, value instanceof AttoTransaction() ? value : THROW_CCE());
138
+ }
139
+ bt(decoder) {
140
+ var tmp0_desc = this.h4t_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.tx(tmp0_desc);
144
- var tmp9_cached = Companion_getInstance().y4s_1;
145
- if (tmp8_input.iy()) {
146
- tmp4_local0 = tmp8_input.fy(tmp0_desc, 0, tmp9_cached[0].g3(), tmp4_local0);
147
+ var tmp8_input = decoder.ox(tmp0_desc);
148
+ var tmp9_cached = Companion_getInstance().g4t_1;
149
+ if (tmp8_input.dy()) {
150
+ tmp4_local0 = tmp8_input.ay(tmp0_desc, 0, tmp9_cached[0].g3(), tmp4_local0);
147
151
  tmp3_bitMask0 = tmp3_bitMask0 | 1;
148
- tmp5_local1 = tmp8_input.fy(tmp0_desc, 1, AttoSignatureAsStringSerializer_getInstance(), tmp5_local1);
152
+ tmp5_local1 = tmp8_input.ay(tmp0_desc, 1, AttoSignatureAsStringSerializer_getInstance(), tmp5_local1);
149
153
  tmp3_bitMask0 = tmp3_bitMask0 | 2;
150
- tmp6_local2 = tmp8_input.fy(tmp0_desc, 2, AttoWorkAsStringSerializer_getInstance(), tmp6_local2);
154
+ tmp6_local2 = tmp8_input.ay(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.jy(tmp0_desc);
158
+ tmp2_index = tmp8_input.ey(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.fy(tmp0_desc, 0, tmp9_cached[0].g3(), tmp4_local0);
164
+ tmp4_local0 = tmp8_input.ay(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.fy(tmp0_desc, 1, AttoSignatureAsStringSerializer_getInstance(), tmp5_local1);
168
+ tmp5_local1 = tmp8_input.ay(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.fy(tmp0_desc, 2, AttoWorkAsStringSerializer_getInstance(), tmp6_local2);
172
+ tmp6_local2 = tmp8_input.ay(tmp0_desc, 2, AttoWorkAsStringSerializer_getInstance(), tmp6_local2);
169
173
  tmp3_bitMask0 = tmp3_bitMask0 | 4;
170
174
  break;
171
175
  default:
172
- throw UnknownFieldException().av(tmp2_index);
176
+ throw UnknownFieldException().vu(tmp2_index);
173
177
  }
174
178
  }
175
- tmp8_input.ux(tmp0_desc);
176
- return AttoTransaction().c4t(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, null);
179
+ tmp8_input.px(tmp0_desc);
180
+ return AttoTransaction().k4t(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, null);
177
181
  }
178
- et() {
179
- return this.z4s_1;
182
+ zs() {
183
+ return this.h4t_1;
180
184
  }
181
- w15() {
185
+ r15() {
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().y4s_1[0].g3(), AttoSignatureAsStringSerializer_getInstance(), AttoWorkAsStringSerializer_getInstance()];
189
+ return [Companion_getInstance().g4t_1[0].g3(), AttoSignatureAsStringSerializer_getInstance(), AttoWorkAsStringSerializer_getInstance()];
186
190
  }
187
191
  }
188
- protoOf($).x15 = typeParametersSerializers;
192
+ protoOf($).s15 = 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.b4t_1 = lazy_0(AttoTransaction$hash$delegate$lambda(this));
223
+ tmp.j4t_1 = lazy_0(AttoTransaction$hash$delegate$lambda(this));
220
224
  }
221
- d4t() {
225
+ l4t() {
222
226
  return this.block;
223
227
  }
224
- e4t() {
228
+ m4t() {
225
229
  return this.signature;
226
230
  }
227
- f4t() {
231
+ n4t() {
228
232
  return this.work;
229
233
  }
230
- w4l() {
231
- var tmp0 = this.b4t_1;
234
+ n4l() {
235
+ var tmp0 = this.j4t_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
- s4k() {
241
+ j4k() {
238
242
  return this.block.height;
239
243
  }
240
- y4k() {
244
+ p4k() {
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().z4n();
265
+ return this.validate().isValid;
262
266
  }
263
267
  getTotalSize() {
264
- return 72 + this.block.type.size | 0;
268
+ return 72 + this.block.type.l4n_1 | 0;
265
269
  }
266
- m4m() {
267
- var serializedBlock = this.block.m4m();
270
+ d4m() {
271
+ var serializedBlock = this.block.d4m();
268
272
  // Inline function 'kotlin.apply' call
269
273
  var this_0 = new (Buffer())();
270
- this_0.d2j(serializedBlock, serializedBlock.u2());
274
+ this_0.u2i(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
- cf() {
282
+ bf() {
279
283
  return this.block;
280
284
  }
281
- df() {
285
+ cf() {
282
286
  return this.signature;
283
287
  }
284
- h4l() {
288
+ y4k() {
285
289
  return this.work;
286
290
  }
287
- g4t(block, signature, work) {
291
+ o4t(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.g4t(block, signature, work) : $super.g4t.call(this, block, signature, work);
298
+ return $super === VOID ? this.o4t(block, signature, work) : $super.o4t.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 c4t(seen0, block, signature, work, serializationConstructorMarker) {
319
+ static k4t(seen0, block, signature, work, serializationConstructorMarker) {
316
320
  Companion_getInstance();
317
321
  if (!(7 === (7 & seen0))) {
318
- throwMissingFieldException(seen0, 7, $serializer_getInstance().z4s_1);
322
+ throwMissingFieldException(seen0, 7, $serializer_getInstance().h4t_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.b4t_1 = lazy_0(AttoTransaction$_init_$lambda_46wg3f($this));
329
+ tmp.j4t_1 = lazy_0(AttoTransaction$_init_$lambda_46wg3f($this));
326
330
  return $this;
327
331
  }
328
332
  get hash() {
329
- return this.w4l();
333
+ return this.n4l();
330
334
  }
331
335
  get height() {
332
- return this.s4k();
336
+ return this.j4k();
333
337
  }
334
338
  get address() {
335
- return this.y4k();
339
+ return this.p4k();
336
340
  }
337
341
  }
338
- initMetadataForClass($, 'AttoTransaction', VOID, VOID, [HeightSupport(), AddressSupport()], VOID, VOID, {0: $serializer_getInstance});
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-test/build/compileSync/js/main/productionLibrary/kotlin/commons-commons-core/cash/atto/commons/src/kotlin/util/Lazy.kt","../../../../../commons-test/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":"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"}
1
+ {"version":3,"sources":["../../../../../commons-core/src/commonMain/kotlin/cash/atto/commons/AttoTransaction.kt","../../../../../commons-test/build/compileSync/js/main/productionLibrary/kotlin/commons-commons-core/cash/atto/commons/src/kotlin/util/Lazy.kt","../../../../../commons-test/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":"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"}
@@ -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,4 @@
1
+ //region block: pre-declaration
2
+ //endregion
3
+
4
+ //# sourceMappingURL=AttoValidation.export.mjs.map