@attocash/commons-js 5.0.0 → 5.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/format/DateTimeComponents.mjs +2 -2
- package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/format/LocalDateTimeFormat.mjs +2 -2
- package/commons-commons-core/cash/atto/commons/AccountUpdate.js.mjs +8 -8
- package/commons-commons-core/cash/atto/commons/AttoAccount.mjs +68 -68
- package/commons-commons-core/cash/atto/commons/AttoAccountEntry.mjs +56 -56
- package/commons-commons-core/cash/atto/commons/AttoAddress.mjs +14 -14
- package/commons-commons-core/cash/atto/commons/AttoAlgorithm.mjs +10 -10
- package/commons-commons-core/cash/atto/commons/AttoAmount.mjs +26 -26
- package/commons-commons-core/cash/atto/commons/AttoBlock.mjs +661 -661
- package/commons-commons-core/cash/atto/commons/AttoBufferExtensions.mjs +4 -4
- package/commons-commons-core/cash/atto/commons/AttoChallenge.mjs +7 -7
- package/commons-commons-core/cash/atto/commons/AttoHash.mjs +8 -8
- package/commons-commons-core/cash/atto/commons/AttoHasher.js.mjs +1 -1
- package/commons-commons-core/cash/atto/commons/AttoHeight.mjs +17 -17
- package/commons-commons-core/cash/atto/commons/AttoNetwork.mjs +8 -8
- package/commons-commons-core/cash/atto/commons/AttoPrivateKey.js.mjs +8 -8
- package/commons-commons-core/cash/atto/commons/AttoPrivateKey.mjs +26 -26
- package/commons-commons-core/cash/atto/commons/AttoPublicKey.mjs +7 -7
- package/commons-commons-core/cash/atto/commons/AttoReceivable.mjs +42 -42
- package/commons-commons-core/cash/atto/commons/AttoSeed.mjs +2 -2
- package/commons-commons-core/cash/atto/commons/AttoSignature.mjs +8 -8
- package/commons-commons-core/cash/atto/commons/AttoSigner.js.mjs +67 -67
- package/commons-commons-core/cash/atto/commons/AttoSigner.mjs +11 -11
- package/commons-commons-core/cash/atto/commons/AttoSocketAddress.mjs +5 -5
- package/commons-commons-core/cash/atto/commons/AttoTransaction.mjs +35 -35
- package/commons-commons-core/cash/atto/commons/AttoVersion.mjs +11 -11
- package/commons-commons-core/cash/atto/commons/AttoVote.mjs +37 -37
- package/commons-commons-core/cash/atto/commons/AttoWork.mjs +10 -10
- package/commons-commons-core/cash/atto/commons/Extensions.mjs +1 -1
- package/commons-commons-core/cash/atto/commons/serialiazer/AttoAddressAsByteArraySerializer.mjs +4 -4
- package/commons-commons-core/cash/atto/commons/serialiazer/InstantMillisSerializer.mjs +2 -2
- package/commons-commons-core/cash/atto/commons/utils/Base32.mjs +9 -9
- package/commons-commons-core/cash/atto/commons/utils/SecureRandom.js.mjs +1 -1
- package/commons-commons-node/cash/atto/commons/node/AttoNodeOperations.js.export.d.ts +3 -1
- package/commons-commons-node/cash/atto/commons/node/AttoNodeOperations.js.mjs +19 -5
- package/commons-commons-node/cash/atto/commons/node/AttoNodeOperations.js.mjs.map +1 -1
- package/commons-commons-node/cash/atto/commons/node/AttoNodeOperations.mjs +72 -72
- package/commons-commons-node/cash/atto/commons/node/AttoNodeOperations.mjs.map +1 -1
- package/commons-commons-node-remote/cash/atto/commons/node/AttoNodeClient.mjs +812 -319
- package/commons-commons-node-remote/cash/atto/commons/node/AttoNodeClient.mjs.map +1 -1
- package/commons-commons-node-remote/cash/atto/commons/node/AttoNodeOperationsImpl.js.mjs +226 -76
- package/commons-commons-node-remote/cash/atto/commons/node/AttoNodeOperationsImpl.js.mjs.map +1 -1
- package/commons-commons-worker/cash/atto/commons/worker/AttoWorker.mjs +3 -3
- package/commons-commons-worker/cash/atto/commons/worker/AttoWorkerOperations.mjs +50 -50
- package/commons-commons-worker-remote/cash/atto/commons/worker/AttoWorkerRemote.js.mjs +34 -34
- package/commons-commons-worker-remote/cash/atto/commons/worker/AttoWorkerRemote.mjs +56 -56
- package/kotlin-kotlin-stdlib/kotlin/text/stringJs.mjs +6 -6
- package/kotlin-kotlin-stdlib/kotlin/text/stringJs.mjs.map +1 -1
- package/kotlin-logging/io/github/oshai/kotlinlogging/KotlinLogging.mjs +4 -4
- package/kotlin-logging/io/github/oshai/kotlinlogging/internal/KLoggerDirect.mjs +1 -1
- package/kotlin-logging/io/github/oshai/kotlinlogging/internal/KLoggerFactory.mjs +1 -1
- package/kotlin-logging/io/github/oshai/kotlinlogging/internal/KLoggerNameResolver.mjs +1 -1
- package/kotlinx-coroutines-core/kotlinx/coroutines/DispatchedTask.mjs +1 -1
- package/kotlinx-coroutines-core/kotlinx/coroutines/Dispatchers.mjs +7 -7
- package/kotlinx-coroutines-core/kotlinx/coroutines/JSDispatcher.mjs +76 -76
- package/kotlinx-coroutines-core/kotlinx/coroutines/flow/Reduce.mjs +133 -28
- package/kotlinx-coroutines-core/kotlinx/coroutines/flow/Reduce.mjs.map +1 -1
- package/kotlinx-coroutines-core/kotlinx/coroutines/flow/internal/NullSurrogate.mjs +28 -0
- package/kotlinx-coroutines-core/kotlinx/coroutines/flow/internal/NullSurrogate.mjs.map +1 -0
- package/kotlinx-coroutines-core/kotlinx/coroutines/internal/CoroutineExceptionHandlerImpl.common.mjs +1 -1
- package/kotlinx-coroutines-core/kotlinx/coroutines/internal/CoroutineExceptionHandlerImpl.mjs +2 -2
- package/kotlinx-coroutines-core/kotlinx/coroutines/internal/DispatchedContinuation.mjs +4 -4
- package/kotlinx-coroutines-core/kotlinx/coroutines/internal/LinkedList.mjs +2 -2
- package/kotlinx-coroutines-core/kotlinx/coroutines/internal/OnUndeliveredElement.mjs +3 -3
- package/kotlinx-coroutines-core/kotlinx/coroutines/internal/Scopes.mjs +3 -3
- package/kotlinx-coroutines-core/kotlinx/coroutines/internal/Symbol.mjs +2 -2
- package/kotlinx-coroutines-core/kotlinx/coroutines/selects/Select.mjs +5 -5
- package/kotlinx-coroutines-core/kotlinx/coroutines/sync/Semaphore.mjs +39 -39
- package/kotlinx-io-kotlinx-io-bytestring/kotlinx/io/bytestring/ByteString.mjs +34 -34
- package/kotlinx-io-kotlinx-io-bytestring/kotlinx/io/bytestring/unsafe/UnsafeByteStringOperations.mjs +2 -2
- package/kotlinx-io-kotlinx-io-core/kotlinx/io/-PlatformJs.mjs +11 -11
- package/kotlinx-io-kotlinx-io-core/kotlinx/io/Buffer.mjs +189 -189
- package/kotlinx-io-kotlinx-io-core/kotlinx/io/Buffers.mjs +10 -10
- package/kotlinx-io-kotlinx-io-core/kotlinx/io/ByteStrings.mjs +1 -1
- package/kotlinx-io-kotlinx-io-core/kotlinx/io/PeekSource.mjs +20 -20
- package/kotlinx-io-kotlinx-io-core/kotlinx/io/RealSource.mjs +56 -56
- package/kotlinx-io-kotlinx-io-core/kotlinx/io/Segment.mjs +149 -149
- package/kotlinx-io-kotlinx-io-core/kotlinx/io/SegmentPool.mjs +6 -6
- package/kotlinx-io-kotlinx-io-core/kotlinx/io/Sink.mjs +2 -2
- package/kotlinx-io-kotlinx-io-core/kotlinx/io/Sinks.mjs +3 -3
- package/kotlinx-io-kotlinx-io-core/kotlinx/io/Sources.mjs +15 -15
- package/kotlinx-io-kotlinx-io-core/kotlinx/io/Utf8.mjs +50 -50
- package/kotlinx-io-kotlinx-io-core/kotlinx/io/unsafe/UnsafeBufferOperations.mjs +12 -12
- package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/Json.mjs +37 -37
- package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/JsonConfiguration.mjs +18 -18
- package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/JsonElement.mjs +59 -59
- package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/JsonElementSerializers.mjs +70 -70
- package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/JsonSchemaCache.mjs +1 -1
- package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/AbstractJsonLexer.mjs +178 -178
- package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/CommentLexers.mjs +25 -25
- package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/Composers.mjs +71 -71
- package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/JsonElementMarker.mjs +8 -8
- package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/JsonExceptions.mjs +13 -13
- package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/JsonNamesMap.mjs +10 -10
- package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/JsonPath.mjs +36 -36
- package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/JsonSerializersModuleValidator.mjs +7 -7
- package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/JsonStreams.mjs +1 -1
- package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/JsonToStringWriterJsWasm.mjs +12 -12
- package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/JsonTreeReader.mjs +84 -84
- package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/Polymorphic.mjs +2 -2
- package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/SchemaCache.mjs +8 -8
- package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/StreamingJsonDecoder.mjs +141 -141
- package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/StreamingJsonEncoder.mjs +98 -98
- package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/StringJsonLexer.mjs +51 -51
- package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/TreeJsonDecoder.mjs +151 -151
- package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/WriteMode.mjs +3 -3
- package/ktor-ktor-client-cio/io/ktor/client/engine/cio/CIOCommon.mjs +3 -3
- package/ktor-ktor-client-cio/io/ktor/client/engine/cio/CIOEngine.mjs +59 -59
- package/ktor-ktor-client-cio/io/ktor/client/engine/cio/CIOEngineConfig.mjs +11 -11
- package/ktor-ktor-client-cio/io/ktor/client/engine/cio/ConnectionFactory.mjs +22 -22
- package/ktor-ktor-client-cio/io/ktor/client/engine/cio/ConnectionPipeline.nonJvm.mjs +3 -3
- package/ktor-ktor-client-cio/io/ktor/client/engine/cio/Endpoint.mjs +219 -219
- package/ktor-ktor-client-cio/io/ktor/client/engine/cio/EngineTasks.mjs +15 -15
- package/ktor-ktor-client-cio/io/ktor/client/engine/cio/Loader.js.mjs +2 -2
- package/ktor-ktor-client-cio/io/ktor/client/engine/cio/utils.mjs +241 -241
- package/ktor-ktor-client-content-negotiation/io/ktor/client/plugins/contentnegotiation/ContentNegotiation.mjs +133 -133
- package/ktor-ktor-client-content-negotiation/io/ktor/client/plugins/contentnegotiation/JsonContentTypeMatcher.mjs +4 -4
- package/ktor-ktor-client-core/io/ktor/client/HttpClient.mjs +85 -85
- package/ktor-ktor-client-core/io/ktor/client/HttpClientConfig.mjs +36 -36
- package/ktor-ktor-client-core/io/ktor/client/JsRequestUtils.mjs +1 -1
- package/ktor-ktor-client-core/io/ktor/client/call/DelegatedCall.mjs +41 -41
- package/ktor-ktor-client-core/io/ktor/client/call/HttpClientCall.mjs +54 -54
- package/ktor-ktor-client-core/io/ktor/client/call/SavedCall.mjs +51 -51
- package/ktor-ktor-client-core/io/ktor/client/call/utils.mjs +3 -3
- package/ktor-ktor-client-core/io/ktor/client/content/ObservableContent.mjs +27 -27
- package/ktor-ktor-client-core/io/ktor/client/engine/HttpClientEngine.mjs +60 -60
- package/ktor-ktor-client-core/io/ktor/client/engine/HttpClientEngineBase.mjs +18 -18
- package/ktor-ktor-client-core/io/ktor/client/engine/HttpClientEngineConfig.mjs +4 -4
- package/ktor-ktor-client-core/io/ktor/client/engine/Loader.mjs +11 -11
- package/ktor-ktor-client-core/io/ktor/client/engine/Utils.mjs +20 -20
- package/ktor-ktor-client-core/io/ktor/client/engine/js/Js.mjs +6 -6
- package/ktor-ktor-client-core/io/ktor/client/engine/js/JsClientEngine.mjs +60 -60
- package/ktor-ktor-client-core/io/ktor/client/engine/js/JsUtils.mjs +40 -40
- package/ktor-ktor-client-core/io/ktor/client/engine/js/browser/BrowserFetch.mjs +21 -21
- package/ktor-ktor-client-core/io/ktor/client/engine/js/compatibility/Utils.mjs +3 -3
- package/ktor-ktor-client-core/io/ktor/client/network/sockets/TimeoutExceptions.nonJvm.mjs +3 -3
- package/ktor-ktor-client-core/io/ktor/client/plugins/BodyProgress.mjs +61 -61
- package/ktor-ktor-client-core/io/ktor/client/plugins/DefaultResponseValidation.mjs +45 -45
- package/ktor-ktor-client-core/io/ktor/client/plugins/DefaultTransform.mjs +125 -125
- package/ktor-ktor-client-core/io/ktor/client/plugins/HttpCallValidator.mjs +138 -138
- package/ktor-ktor-client-core/io/ktor/client/plugins/HttpClientPlugin.mjs +2 -2
- package/ktor-ktor-client-core/io/ktor/client/plugins/HttpPlainText.mjs +70 -70
- package/ktor-ktor-client-core/io/ktor/client/plugins/HttpRedirect.mjs +53 -53
- package/ktor-ktor-client-core/io/ktor/client/plugins/HttpRequestLifecycle.mjs +42 -42
- package/ktor-ktor-client-core/io/ktor/client/plugins/HttpSend.mjs +63 -63
- package/ktor-ktor-client-core/io/ktor/client/plugins/HttpTimeout.mjs +98 -98
- package/ktor-ktor-client-core/io/ktor/client/plugins/SaveBody.mjs +33 -33
- package/ktor-ktor-client-core/io/ktor/client/plugins/api/ClientHook.mjs +4 -4
- package/ktor-ktor-client-core/io/ktor/client/plugins/api/ClientPluginBuilder.mjs +11 -11
- package/ktor-ktor-client-core/io/ktor/client/plugins/api/ClientPluginInstance.mjs +11 -11
- package/ktor-ktor-client-core/io/ktor/client/plugins/api/CommonHooks.mjs +35 -35
- package/ktor-ktor-client-core/io/ktor/client/plugins/api/CreatePluginUtils.mjs +13 -13
- package/ktor-ktor-client-core/io/ktor/client/plugins/api/KtorCallContexts.mjs +45 -45
- package/ktor-ktor-client-core/io/ktor/client/plugins/websocket/JsWebSocketSession.mjs +65 -65
- package/ktor-ktor-client-core/io/ktor/client/plugins/websocket/WebSockets.mjs +4 -4
- package/ktor-ktor-client-core/io/ktor/client/request/DefaultHttpRequest.mjs +17 -17
- package/ktor-ktor-client-core/io/ktor/client/request/HttpRequest.mjs +64 -64
- package/ktor-ktor-client-core/io/ktor/client/request/HttpRequestPipeline.mjs +18 -18
- package/ktor-ktor-client-core/io/ktor/client/request/utils.mjs +1 -1
- package/ktor-ktor-client-core/io/ktor/client/statement/DefaultHttpResponse.mjs +24 -24
- package/ktor-ktor-client-core/io/ktor/client/statement/HttpResponse.mjs +18 -18
- package/ktor-ktor-client-core/io/ktor/client/statement/HttpResponsePipeline.mjs +25 -25
- package/ktor-ktor-client-core/io/ktor/client/statement/HttpStatement.mjs +52 -52
- package/ktor-ktor-client-core/io/ktor/client/utils/ByteChannelUtils.mjs +35 -35
- package/ktor-ktor-client-core/io/ktor/client/utils/ClientEvents.mjs +2 -2
- package/ktor-ktor-client-core/io/ktor/client/utils/Content.mjs +3 -3
- package/ktor-ktor-client-core/io/ktor/client/utils/HeadersUtils.mjs +5 -5
- package/ktor-ktor-events/io/ktor/events/Events.mjs +5 -5
- package/ktor-ktor-http/io/ktor/http/Codecs.mjs +12 -12
- package/ktor-ktor-http/io/ktor/http/ContentTypes.mjs +89 -89
- package/ktor-ktor-http/io/ktor/http/HeaderValueWithParameters.mjs +18 -18
- package/ktor-ktor-http/io/ktor/http/Headers.mjs +18 -18
- package/ktor-ktor-http/io/ktor/http/HttpHeaderValueParser.mjs +31 -31
- package/ktor-ktor-http/io/ktor/http/HttpHeaders.mjs +114 -114
- package/ktor-ktor-http/io/ktor/http/HttpMessageProperties.mjs +4 -4
- package/ktor-ktor-http/io/ktor/http/HttpMethod.mjs +13 -13
- package/ktor-ktor-http/io/ktor/http/HttpProtocolVersion.mjs +18 -18
- package/ktor-ktor-http/io/ktor/http/HttpStatusCode.mjs +66 -66
- package/ktor-ktor-http/io/ktor/http/Parameters.mjs +9 -9
- package/ktor-ktor-http/io/ktor/http/Query.mjs +3 -3
- package/ktor-ktor-http/io/ktor/http/URLBuilder.mjs +58 -58
- package/ktor-ktor-http/io/ktor/http/URLBuilderJs.mjs +1 -1
- package/ktor-ktor-http/io/ktor/http/URLParser.mjs +34 -34
- package/ktor-ktor-http/io/ktor/http/URLProtocol.mjs +20 -20
- package/ktor-ktor-http/io/ktor/http/URLUtils.mjs +25 -25
- package/ktor-ktor-http/io/ktor/http/Url.mjs +72 -72
- package/ktor-ktor-http/io/ktor/http/UrlDecodedParametersBuilder.mjs +25 -25
- package/ktor-ktor-http/io/ktor/http/content/ByteArrayContent.mjs +9 -9
- package/ktor-ktor-http/io/ktor/http/content/OutgoingContent.mjs +8 -8
- package/ktor-ktor-http/io/ktor/http/content/TextContent.mjs +12 -12
- package/ktor-ktor-http-cio/io/ktor/http/cio/CIOMultipartDataBase.mjs +4 -4
- package/ktor-ktor-http-cio/io/ktor/http/cio/ChunkedTransferEncoding.mjs +106 -106
- package/ktor-ktor-http-cio/io/ktor/http/cio/ConnectionOptions.mjs +31 -31
- package/ktor-ktor-http-cio/io/ktor/http/cio/HttpBody.mjs +15 -15
- package/ktor-ktor-http-cio/io/ktor/http/cio/HttpHeadersMap.mjs +100 -100
- package/ktor-ktor-http-cio/io/ktor/http/cio/HttpParser.mjs +69 -69
- package/ktor-ktor-http-cio/io/ktor/http/cio/Multipart.mjs +113 -113
- package/ktor-ktor-http-cio/io/ktor/http/cio/RequestResponse.mjs +9 -9
- package/ktor-ktor-http-cio/io/ktor/http/cio/RequestResponseBuilderJs.mjs +21 -21
- package/ktor-ktor-http-cio/io/ktor/http/cio/internals/AsciiCharTree.mjs +17 -17
- package/ktor-ktor-http-cio/io/ktor/http/cio/internals/CharArrayBuilder.mjs +70 -70
- package/ktor-ktor-http-cio/io/ktor/http/cio/internals/CharArrayPool.mjs +2 -2
- package/ktor-ktor-http-cio/io/ktor/http/cio/internals/Chars.mjs +21 -21
- package/ktor-ktor-http-cio/io/ktor/http/cio/internals/Errors.mjs +3 -3
- package/ktor-ktor-http-cio/io/ktor/http/cio/internals/MutableRange.mjs +3 -3
- package/ktor-ktor-http-cio/io/ktor/http/cio/internals/Tokenizer.mjs +7 -7
- package/ktor-ktor-io/io/ktor/utils/io/ByteChannel.mjs +141 -141
- package/ktor-ktor-io/io/ktor/utils/io/ByteChannelCtor.mjs +1 -1
- package/ktor-ktor-io/io/ktor/utils/io/ByteChannelScanner.mjs +75 -75
- package/ktor-ktor-io/io/ktor/utils/io/ByteChannelUtils.mjs +1 -1
- package/ktor-ktor-io/io/ktor/utils/io/ByteReadChannel.mjs +13 -13
- package/ktor-ktor-io/io/ktor/utils/io/ByteReadChannelOperations.mjs +230 -230
- package/ktor-ktor-io/io/ktor/utils/io/ByteWriteChannel.mjs +11 -11
- package/ktor-ktor-io/io/ktor/utils/io/ByteWriteChannelOperations.mjs +72 -72
- package/ktor-ktor-io/io/ktor/utils/io/CloseHookByteWriteChannel.mjs +14 -14
- package/ktor-ktor-io/io/ktor/utils/io/CloseToken.mjs +11 -11
- package/ktor-ktor-io/io/ktor/utils/io/CountedByteReadChannel.mjs +26 -26
- package/ktor-ktor-io/io/ktor/utils/io/Exceptions.mjs +12 -12
- package/ktor-ktor-io/io/ktor/utils/io/LineEndingMode.mjs +15 -15
- package/ktor-ktor-io/io/ktor/utils/io/SourceByteReadChannel.mjs +18 -18
- package/ktor-ktor-io/io/ktor/utils/io/charsets/Charset.js.mjs +36 -36
- package/ktor-ktor-io/io/ktor/utils/io/charsets/Encoding.mjs +4 -4
- package/ktor-ktor-io/io/ktor/utils/io/charsets/ISO88591.mjs +2 -2
- package/ktor-ktor-io/io/ktor/utils/io/charsets/TextDecoder.js.mjs +3 -3
- package/ktor-ktor-io/io/ktor/utils/io/charsets/TextDecoderFallback.js.mjs +5 -5
- package/ktor-ktor-io/io/ktor/utils/io/core/Buffer.mjs +1 -1
- package/ktor-ktor-io/io/ktor/utils/io/core/BytePacketBuilder.mjs +3 -3
- package/ktor-ktor-io/io/ktor/utils/io/core/ByteReadPacket.mjs +5 -5
- package/ktor-ktor-io/io/ktor/utils/io/core/Input.mjs +1 -1
- package/ktor-ktor-io/io/ktor/utils/io/core/Strings.mjs +10 -10
- package/ktor-ktor-io/io/ktor/utils/io/pool/ByteArrayPool.mjs +1 -1
- package/ktor-ktor-io/io/ktor/utils/io/pool/DefaultPool.mjs +27 -27
- package/ktor-ktor-io/io/ktor/utils/io/pool/Pool.mjs +1 -1
- package/ktor-ktor-network/io/ktor/network/sockets/Builders.mjs +5 -5
- package/ktor-ktor-network/io/ktor/network/sockets/SocketAddress.nonJvm.mjs +9 -9
- package/ktor-ktor-network/io/ktor/network/sockets/SocketBase.mjs +50 -50
- package/ktor-ktor-network/io/ktor/network/sockets/SocketContext.mjs +104 -104
- package/ktor-ktor-network/io/ktor/network/sockets/SocketEngine.jsAndWasmShared.mjs +1 -1
- package/ktor-ktor-network/io/ktor/network/sockets/SocketOptions.mjs +30 -30
- package/ktor-ktor-network/io/ktor/network/sockets/SocketTimeoutException.mjs +5 -5
- package/ktor-ktor-network/io/ktor/network/sockets/Sockets.mjs +5 -5
- package/ktor-ktor-network/io/ktor/network/sockets/TcpSocketBuilder.mjs +5 -5
- package/ktor-ktor-network/io/ktor/network/sockets/TypeOfService.mjs +5 -5
- package/ktor-ktor-network/io/ktor/network/sockets/nodejs/node.net.mjs +7 -7
- package/ktor-ktor-network-tls/io/ktor/network/tls/TLSCommon.mjs +9 -9
- package/ktor-ktor-network-tls/io/ktor/network/tls/TLSConfigBuilder.nonJvm.mjs +1 -1
- package/ktor-ktor-serialization/io/ktor/serialization/ContentConvertException.mjs +5 -5
- package/ktor-ktor-serialization/io/ktor/serialization/ContentConverter.mjs +58 -58
- package/ktor-ktor-serialization-kotlinx/io/ktor/serialization/kotlinx/Extensions.mjs +1 -1
- package/ktor-ktor-serialization-kotlinx/io/ktor/serialization/kotlinx/KotlinxSerializationConverter.mjs +122 -122
- package/ktor-ktor-serialization-kotlinx/io/ktor/serialization/kotlinx/SerializerLookup.mjs +4 -4
- package/ktor-ktor-serialization-kotlinx-json/io/ktor/serialization/kotlinx/json/JsonSupport.mjs +6 -6
- package/ktor-ktor-utils/io/ktor/util/Attributes.mjs +11 -11
- package/ktor-ktor-utils/io/ktor/util/AttributesJs.mjs +15 -15
- package/ktor-ktor-utils/io/ktor/util/CaseInsensitiveMap.mjs +33 -33
- package/ktor-ktor-utils/io/ktor/util/DelegatingMutableSet.mjs +31 -31
- package/ktor-ktor-utils/io/ktor/util/PlatformUtils.mjs +16 -16
- package/ktor-ktor-utils/io/ktor/util/StringValues.mjs +83 -83
- package/ktor-ktor-utils/io/ktor/util/Text.mjs +7 -7
- package/ktor-ktor-utils/io/ktor/util/collections/ConcurrentMapJs.mjs +29 -29
- package/ktor-ktor-utils/io/ktor/util/collections/CopyOnWriteHashMap.mjs +3 -3
- package/ktor-ktor-utils/io/ktor/util/date/Date.mjs +67 -67
- package/ktor-ktor-utils/io/ktor/util/date/DateJs.mjs +5 -5
- package/ktor-ktor-utils/io/ktor/util/internal/LockFreeLinkedList.mjs +6 -6
- package/ktor-ktor-utils/io/ktor/util/logging/KtorSimpleLoggerJs.mjs +10 -10
- package/ktor-ktor-utils/io/ktor/util/logging/LoggerJs.mjs +1 -1
- package/ktor-ktor-utils/io/ktor/util/network/NetworkAddressJs.mjs +2 -2
- package/ktor-ktor-utils/io/ktor/util/pipeline/DebugPipelineContext.mjs +32 -32
- package/ktor-ktor-utils/io/ktor/util/pipeline/PhaseContent.mjs +25 -25
- package/ktor-ktor-utils/io/ktor/util/pipeline/Pipeline.mjs +53 -53
- package/ktor-ktor-utils/io/ktor/util/pipeline/PipelineContext.mjs +1 -1
- package/ktor-ktor-utils/io/ktor/util/pipeline/PipelinePhase.mjs +3 -3
- package/ktor-ktor-utils/io/ktor/util/pipeline/PipelinePhaseRelation.mjs +2 -2
- package/ktor-ktor-utils/io/ktor/util/pipeline/SuspendFunctionGun.mjs +49 -49
- package/ktor-ktor-utils/io/ktor/util/reflect/Type.mjs +9 -9
- package/ktor-ktor-websockets/io/ktor/websocket/CloseReason.mjs +19 -19
- package/ktor-ktor-websockets/io/ktor/websocket/FrameJs.mjs +41 -41
- package/ktor-ktor-websockets/io/ktor/websocket/FrameTooBigException.mjs +5 -5
- package/ktor-ktor-websockets/io/ktor/websocket/FrameType.mjs +9 -9
- package/ktor-ktor-websockets/io/ktor/websocket/ProtocolViolationException.mjs +5 -5
- package/ktor-ktor-websockets/io/ktor/websocket/RawWebSocketCommon.mjs +150 -150
- package/package.json +1 -1
|
@@ -20,8 +20,8 @@ function $signCOROUTINE$() {
|
|
|
20
20
|
class $ extends CoroutineImpl() {
|
|
21
21
|
constructor(_this__u8e3s4, block, resultContinuation) {
|
|
22
22
|
super(resultContinuation);
|
|
23
|
-
this.
|
|
24
|
-
this.
|
|
23
|
+
this.s33_1 = _this__u8e3s4;
|
|
24
|
+
this.t33_1 = block;
|
|
25
25
|
}
|
|
26
26
|
ic() {
|
|
27
27
|
var suspendResult = this.cc_1;
|
|
@@ -32,7 +32,7 @@ function $signCOROUTINE$() {
|
|
|
32
32
|
case 0:
|
|
33
33
|
this.bc_1 = 3;
|
|
34
34
|
this.ac_1 = 1;
|
|
35
|
-
suspendResult = this.
|
|
35
|
+
suspendResult = this.s33_1.u33(this.t33_1.publicKey, this);
|
|
36
36
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
37
37
|
return suspendResult;
|
|
38
38
|
}
|
|
@@ -40,7 +40,7 @@ function $signCOROUTINE$() {
|
|
|
40
40
|
continue $sm;
|
|
41
41
|
case 1:
|
|
42
42
|
this.ac_1 = 2;
|
|
43
|
-
suspendResult = this.
|
|
43
|
+
suspendResult = this.s33_1.v33(this.t33_1.hash, this);
|
|
44
44
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
45
45
|
return suspendResult;
|
|
46
46
|
}
|
|
@@ -74,8 +74,8 @@ function $signCOROUTINE$_0() {
|
|
|
74
74
|
class $ extends CoroutineImpl() {
|
|
75
75
|
constructor(_this__u8e3s4, vote, resultContinuation) {
|
|
76
76
|
super(resultContinuation);
|
|
77
|
-
this.
|
|
78
|
-
this.
|
|
77
|
+
this.e34_1 = _this__u8e3s4;
|
|
78
|
+
this.f34_1 = vote;
|
|
79
79
|
}
|
|
80
80
|
ic() {
|
|
81
81
|
var suspendResult = this.cc_1;
|
|
@@ -86,7 +86,7 @@ function $signCOROUTINE$_0() {
|
|
|
86
86
|
case 0:
|
|
87
87
|
this.bc_1 = 3;
|
|
88
88
|
this.ac_1 = 1;
|
|
89
|
-
suspendResult = this.
|
|
89
|
+
suspendResult = this.e34_1.u33(this.f34_1.publicKey, this);
|
|
90
90
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
91
91
|
return suspendResult;
|
|
92
92
|
}
|
|
@@ -94,7 +94,7 @@ function $signCOROUTINE$_0() {
|
|
|
94
94
|
continue $sm;
|
|
95
95
|
case 1:
|
|
96
96
|
this.ac_1 = 2;
|
|
97
|
-
suspendResult = this.
|
|
97
|
+
suspendResult = this.e34_1.v33(this.f34_1.hash, this);
|
|
98
98
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
99
99
|
return suspendResult;
|
|
100
100
|
}
|
|
@@ -135,11 +135,11 @@ function sign_0(vote, $completion) {
|
|
|
135
135
|
return tmp.ic();
|
|
136
136
|
}
|
|
137
137
|
function sign_1(challenge, timestamp, $completion) {
|
|
138
|
-
return this.
|
|
138
|
+
return this.v33(Companion_instance.hash(64, [this.e2w().value, challenge.value, toByteArray(timestamp)]), $completion);
|
|
139
139
|
}
|
|
140
140
|
function checkPublicKey(publicKey, $completion) {
|
|
141
|
-
if (!this.
|
|
142
|
-
throw IllegalArgumentException().u('Different public key ' + this.
|
|
141
|
+
if (!this.e2w().equals(publicKey)) {
|
|
142
|
+
throw IllegalArgumentException().u('Different public key ' + this.e2w().toString());
|
|
143
143
|
}
|
|
144
144
|
return Unit_instance;
|
|
145
145
|
}
|
|
@@ -25,10 +25,10 @@ function AttoSocketAddress() {
|
|
|
25
25
|
this.address = address;
|
|
26
26
|
this.port = port;
|
|
27
27
|
}
|
|
28
|
-
|
|
28
|
+
o2w() {
|
|
29
29
|
return this.address;
|
|
30
30
|
}
|
|
31
|
-
|
|
31
|
+
k34() {
|
|
32
32
|
return this.port;
|
|
33
33
|
}
|
|
34
34
|
equals(other) {
|
|
@@ -52,16 +52,16 @@ function AttoSocketAddress() {
|
|
|
52
52
|
gl() {
|
|
53
53
|
return this.address;
|
|
54
54
|
}
|
|
55
|
-
|
|
55
|
+
l34() {
|
|
56
56
|
return this.port;
|
|
57
57
|
}
|
|
58
|
-
|
|
58
|
+
m34(address, port) {
|
|
59
59
|
return new (AttoSocketAddress())(address, port);
|
|
60
60
|
}
|
|
61
61
|
copy(address, port, $super) {
|
|
62
62
|
address = address === VOID ? this.address : address;
|
|
63
63
|
port = port === VOID ? this.port : port;
|
|
64
|
-
return $super === VOID ? this.
|
|
64
|
+
return $super === VOID ? this.m34(address, port) : $super.m34.call(this, address, new (UShort())(port));
|
|
65
65
|
}
|
|
66
66
|
toString() {
|
|
67
67
|
return 'AttoSocketAddress(address=' + toString(this.address) + ', port=' + new (UShort())(this.port) + ')';
|
|
@@ -48,7 +48,7 @@ var imul = Math.imul;
|
|
|
48
48
|
//region block: pre-declaration
|
|
49
49
|
//endregion
|
|
50
50
|
function AttoTransaction$Companion$$childSerializers$_anonymous__8sfh5y() {
|
|
51
|
-
return Companion_instance.
|
|
51
|
+
return Companion_instance.e2v();
|
|
52
52
|
}
|
|
53
53
|
var CompanionClass;
|
|
54
54
|
function Companion() {
|
|
@@ -61,10 +61,10 @@ function Companion() {
|
|
|
61
61
|
// Inline function 'kotlin.arrayOf' call
|
|
62
62
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
63
63
|
// Inline function 'kotlin.js.asDynamic' call
|
|
64
|
-
tmp.
|
|
64
|
+
tmp.n34_1 = [lazy(tmp_0, AttoTransaction$Companion$$childSerializers$_anonymous__8sfh5y), null, null];
|
|
65
65
|
this.SIZE = 72;
|
|
66
66
|
}
|
|
67
|
-
|
|
67
|
+
h33() {
|
|
68
68
|
return this.SIZE;
|
|
69
69
|
}
|
|
70
70
|
fromBuffer(buffer) {
|
|
@@ -85,7 +85,7 @@ function Companion() {
|
|
|
85
85
|
}
|
|
86
86
|
return transaction;
|
|
87
87
|
}
|
|
88
|
-
|
|
88
|
+
e2v() {
|
|
89
89
|
return $serializer_getInstance();
|
|
90
90
|
}
|
|
91
91
|
}
|
|
@@ -110,22 +110,22 @@ function $serializer() {
|
|
|
110
110
|
tmp0_serialDesc.w14('block', false);
|
|
111
111
|
tmp0_serialDesc.w14('signature', false);
|
|
112
112
|
tmp0_serialDesc.w14('work', false);
|
|
113
|
-
this.
|
|
113
|
+
this.o34_1 = tmp0_serialDesc;
|
|
114
114
|
}
|
|
115
|
-
|
|
116
|
-
var tmp0_desc = this.
|
|
115
|
+
p34(encoder, value) {
|
|
116
|
+
var tmp0_desc = this.o34_1;
|
|
117
117
|
var tmp1_output = encoder.kx(tmp0_desc);
|
|
118
|
-
var tmp2_cached = Companion_getInstance().
|
|
118
|
+
var tmp2_cached = Companion_getInstance().n34_1;
|
|
119
119
|
tmp1_output.bz(tmp0_desc, 0, tmp2_cached[0].s1(), value.block);
|
|
120
120
|
tmp1_output.bz(tmp0_desc, 1, AttoSignatureSerializer_getInstance(), value.signature);
|
|
121
121
|
tmp1_output.bz(tmp0_desc, 2, AttoWorkSerializer_getInstance(), value.work);
|
|
122
122
|
tmp1_output.lx(tmp0_desc);
|
|
123
123
|
}
|
|
124
124
|
ys(encoder, value) {
|
|
125
|
-
return this.
|
|
125
|
+
return this.p34(encoder, value instanceof AttoTransaction() ? value : THROW_CCE());
|
|
126
126
|
}
|
|
127
127
|
zs(decoder) {
|
|
128
|
-
var tmp0_desc = this.
|
|
128
|
+
var tmp0_desc = this.o34_1;
|
|
129
129
|
var tmp1_flag = true;
|
|
130
130
|
var tmp2_index = 0;
|
|
131
131
|
var tmp3_bitMask0 = 0;
|
|
@@ -133,7 +133,7 @@ function $serializer() {
|
|
|
133
133
|
var tmp5_local1 = null;
|
|
134
134
|
var tmp6_local2 = null;
|
|
135
135
|
var tmp9_input = decoder.kx(tmp0_desc);
|
|
136
|
-
var tmp10_cached = Companion_getInstance().
|
|
136
|
+
var tmp10_cached = Companion_getInstance().n34_1;
|
|
137
137
|
if (tmp9_input.zx()) {
|
|
138
138
|
tmp4_local0 = tmp9_input.wx(tmp0_desc, 0, tmp10_cached[0].s1(), tmp4_local0);
|
|
139
139
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
@@ -165,16 +165,16 @@ function $serializer() {
|
|
|
165
165
|
}
|
|
166
166
|
}
|
|
167
167
|
tmp9_input.lx(tmp0_desc);
|
|
168
|
-
return AttoTransaction().
|
|
168
|
+
return AttoTransaction().s34(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, null);
|
|
169
169
|
}
|
|
170
170
|
xs() {
|
|
171
|
-
return this.
|
|
171
|
+
return this.o34_1;
|
|
172
172
|
}
|
|
173
173
|
l15() {
|
|
174
174
|
// Inline function 'kotlin.arrayOf' call
|
|
175
175
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
176
176
|
// Inline function 'kotlin.js.asDynamic' call
|
|
177
|
-
return [Companion_getInstance().
|
|
177
|
+
return [Companion_getInstance().n34_1[0].s1(), AttoSignatureSerializer_getInstance(), AttoWorkSerializer_getInstance()];
|
|
178
178
|
}
|
|
179
179
|
}
|
|
180
180
|
protoOf($).m15 = typeParametersSerializers;
|
|
@@ -214,27 +214,27 @@ function AttoTransaction() {
|
|
|
214
214
|
this.signature = signature;
|
|
215
215
|
this.work = work;
|
|
216
216
|
var tmp = this;
|
|
217
|
-
tmp.
|
|
218
|
-
this.
|
|
217
|
+
tmp.q34_1 = lazy_0(AttoTransaction$hash$delegate$lambda(this));
|
|
218
|
+
this.r34_1 = this.block.height;
|
|
219
219
|
}
|
|
220
|
-
|
|
220
|
+
t34() {
|
|
221
221
|
return this.block;
|
|
222
222
|
}
|
|
223
|
-
|
|
223
|
+
u34() {
|
|
224
224
|
return this.signature;
|
|
225
225
|
}
|
|
226
|
-
|
|
226
|
+
v34() {
|
|
227
227
|
return this.work;
|
|
228
228
|
}
|
|
229
|
-
|
|
230
|
-
var tmp0 = this.
|
|
229
|
+
j2x() {
|
|
230
|
+
var tmp0 = this.q34_1;
|
|
231
231
|
var tmp = KProperty1();
|
|
232
232
|
// Inline function 'kotlin.getValue' call
|
|
233
233
|
getPropertyCallableRef('hash', 1, tmp, AttoTransaction$_get_hash_$ref_ha8bds(), null);
|
|
234
234
|
return tmp0.s1();
|
|
235
235
|
}
|
|
236
|
-
|
|
237
|
-
return this.
|
|
236
|
+
i2w() {
|
|
237
|
+
return this.r34_1;
|
|
238
238
|
}
|
|
239
239
|
isValid() {
|
|
240
240
|
if (!this.block.isValid()) {
|
|
@@ -251,11 +251,11 @@ function AttoTransaction() {
|
|
|
251
251
|
getTotalSize() {
|
|
252
252
|
return 72 + this.block.type.size | 0;
|
|
253
253
|
}
|
|
254
|
-
|
|
255
|
-
var serializedBlock = this.block.
|
|
254
|
+
f2z() {
|
|
255
|
+
var serializedBlock = this.block.f2z();
|
|
256
256
|
// Inline function 'kotlin.apply' call
|
|
257
257
|
var this_0 = new (Buffer())();
|
|
258
|
-
this_0.
|
|
258
|
+
this_0.t2s(serializedBlock, serializedBlock.i1());
|
|
259
259
|
writeAttoSignature(this_0, this.signature);
|
|
260
260
|
writeAttoWork(this_0, this.work);
|
|
261
261
|
return this_0;
|
|
@@ -269,17 +269,17 @@ function AttoTransaction() {
|
|
|
269
269
|
hl() {
|
|
270
270
|
return this.signature;
|
|
271
271
|
}
|
|
272
|
-
|
|
272
|
+
t2w() {
|
|
273
273
|
return this.work;
|
|
274
274
|
}
|
|
275
|
-
|
|
275
|
+
w34(block, signature, work) {
|
|
276
276
|
return new (AttoTransaction())(block, signature, work);
|
|
277
277
|
}
|
|
278
278
|
copy(block, signature, work, $super) {
|
|
279
279
|
block = block === VOID ? this.block : block;
|
|
280
280
|
signature = signature === VOID ? this.signature : signature;
|
|
281
281
|
work = work === VOID ? this.work : work;
|
|
282
|
-
return $super === VOID ? this.
|
|
282
|
+
return $super === VOID ? this.w34(block, signature, work) : $super.w34.call(this, block, signature, work);
|
|
283
283
|
}
|
|
284
284
|
hashCode() {
|
|
285
285
|
var result = hashCode(this.block);
|
|
@@ -301,25 +301,25 @@ function AttoTransaction() {
|
|
|
301
301
|
return false;
|
|
302
302
|
return true;
|
|
303
303
|
}
|
|
304
|
-
static
|
|
304
|
+
static s34(seen0, block, signature, work, serializationConstructorMarker) {
|
|
305
305
|
Companion_getInstance();
|
|
306
306
|
if (!(7 === (7 & seen0))) {
|
|
307
|
-
throwMissingFieldException(seen0, 7, $serializer_getInstance().
|
|
307
|
+
throwMissingFieldException(seen0, 7, $serializer_getInstance().o34_1);
|
|
308
308
|
}
|
|
309
309
|
var $this = createThis(this);
|
|
310
310
|
$this.block = block;
|
|
311
311
|
$this.signature = signature;
|
|
312
312
|
$this.work = work;
|
|
313
313
|
var tmp = $this;
|
|
314
|
-
tmp.
|
|
315
|
-
$this.
|
|
314
|
+
tmp.q34_1 = lazy_0(AttoTransaction$_init_$lambda_46wg3f($this));
|
|
315
|
+
$this.r34_1 = $this.block.height;
|
|
316
316
|
return $this;
|
|
317
317
|
}
|
|
318
318
|
get hash() {
|
|
319
|
-
return this.
|
|
319
|
+
return this.j2x();
|
|
320
320
|
}
|
|
321
321
|
get height() {
|
|
322
|
-
return this.
|
|
322
|
+
return this.i2w();
|
|
323
323
|
}
|
|
324
324
|
}
|
|
325
325
|
initMetadataForClass($, 'AttoTransaction', VOID, VOID, [HeightSupport()], VOID, VOID, {0: $serializer_getInstance});
|
|
@@ -24,7 +24,7 @@ var CompanionClass;
|
|
|
24
24
|
function Companion() {
|
|
25
25
|
if (CompanionClass === VOID) {
|
|
26
26
|
class $ {
|
|
27
|
-
|
|
27
|
+
e2v() {
|
|
28
28
|
return AttoVersionSerializer_getInstance();
|
|
29
29
|
}
|
|
30
30
|
}
|
|
@@ -44,10 +44,10 @@ function AttoVersion() {
|
|
|
44
44
|
constructor(value) {
|
|
45
45
|
this.value = value;
|
|
46
46
|
}
|
|
47
|
-
|
|
47
|
+
x34() {
|
|
48
48
|
return this.value;
|
|
49
49
|
}
|
|
50
|
-
|
|
50
|
+
g2z(other) {
|
|
51
51
|
var tmp0 = this.value;
|
|
52
52
|
// Inline function 'kotlin.UShort.compareTo' call
|
|
53
53
|
var other_0 = other.value;
|
|
@@ -58,20 +58,20 @@ function AttoVersion() {
|
|
|
58
58
|
return compareTo(tmp, tmp$ret$1);
|
|
59
59
|
}
|
|
60
60
|
d(other) {
|
|
61
|
-
return this.
|
|
61
|
+
return this.g2z(other instanceof AttoVersion() ? other : THROW_CCE());
|
|
62
62
|
}
|
|
63
63
|
toString() {
|
|
64
64
|
return UShort__toString_impl_edaoee(this.value);
|
|
65
65
|
}
|
|
66
|
-
|
|
66
|
+
y34() {
|
|
67
67
|
return this.value;
|
|
68
68
|
}
|
|
69
|
-
|
|
69
|
+
z34(value) {
|
|
70
70
|
return new (AttoVersion())(value);
|
|
71
71
|
}
|
|
72
72
|
copy(value, $super) {
|
|
73
73
|
value = value === VOID ? this.value : value;
|
|
74
|
-
return $super === VOID ? this.
|
|
74
|
+
return $super === VOID ? this.z34(value) : $super.z34.call(this, new (UShort())(value));
|
|
75
75
|
}
|
|
76
76
|
hashCode() {
|
|
77
77
|
return UShort__hashCode_impl_ywngrv(this.value);
|
|
@@ -114,16 +114,16 @@ function AttoVersionSerializer() {
|
|
|
114
114
|
class $ {
|
|
115
115
|
constructor() {
|
|
116
116
|
AttoVersionSerializer_instance = this;
|
|
117
|
-
this.
|
|
117
|
+
this.a35_1 = serializer(Companion_getInstance()).xs();
|
|
118
118
|
}
|
|
119
119
|
xs() {
|
|
120
|
-
return this.
|
|
120
|
+
return this.a35_1;
|
|
121
121
|
}
|
|
122
|
-
|
|
122
|
+
b35(encoder, value) {
|
|
123
123
|
serializer(Companion_getInstance()).ys(encoder, new (UShort())(value.value));
|
|
124
124
|
}
|
|
125
125
|
ys(encoder, value) {
|
|
126
|
-
return this.
|
|
126
|
+
return this.b35(encoder, value instanceof AttoVersion() ? value : THROW_CCE());
|
|
127
127
|
}
|
|
128
128
|
zs(decoder) {
|
|
129
129
|
return new (AttoVersion())(serializer(Companion_getInstance()).zs(decoder).qs_1);
|
|
@@ -55,10 +55,10 @@ var imul = Math.imul;
|
|
|
55
55
|
//region block: pre-declaration
|
|
56
56
|
//endregion
|
|
57
57
|
function AttoVote$Companion$$childSerializers$_anonymous__q6z172() {
|
|
58
|
-
return Companion_getInstance().
|
|
58
|
+
return Companion_getInstance().e2v();
|
|
59
59
|
}
|
|
60
60
|
function AttoVote$Companion$$childSerializers$_anonymous__q6z172_0() {
|
|
61
|
-
return Companion_getInstance().
|
|
61
|
+
return Companion_getInstance().e2v();
|
|
62
62
|
}
|
|
63
63
|
var CompanionClass;
|
|
64
64
|
function Companion() {
|
|
@@ -73,13 +73,13 @@ function Companion() {
|
|
|
73
73
|
// Inline function 'kotlin.arrayOf' call
|
|
74
74
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
75
75
|
// Inline function 'kotlin.js.asDynamic' call
|
|
76
|
-
tmp.
|
|
76
|
+
tmp.c35_1 = [null, tmp_1, null, lazy(tmp_2, AttoVote$Companion$$childSerializers$_anonymous__q6z172_0), null, null];
|
|
77
77
|
this.finalTimestamp = Companion_getInstance_0().k1w(new (Long())(-1, 2147483647));
|
|
78
78
|
}
|
|
79
|
-
|
|
79
|
+
d35() {
|
|
80
80
|
return this.finalTimestamp;
|
|
81
81
|
}
|
|
82
|
-
|
|
82
|
+
e2v() {
|
|
83
83
|
return $serializer_getInstance();
|
|
84
84
|
}
|
|
85
85
|
}
|
|
@@ -107,12 +107,12 @@ function $serializer() {
|
|
|
107
107
|
tmp0_serialDesc.w14('blockAlgorithm', false);
|
|
108
108
|
tmp0_serialDesc.w14('blockHash', false);
|
|
109
109
|
tmp0_serialDesc.w14('timestamp', false);
|
|
110
|
-
this.
|
|
110
|
+
this.e35_1 = tmp0_serialDesc;
|
|
111
111
|
}
|
|
112
|
-
|
|
113
|
-
var tmp0_desc = this.
|
|
112
|
+
f35(encoder, value) {
|
|
113
|
+
var tmp0_desc = this.e35_1;
|
|
114
114
|
var tmp1_output = encoder.kx(tmp0_desc);
|
|
115
|
-
var tmp2_cached = Companion_getInstance_1().
|
|
115
|
+
var tmp2_cached = Companion_getInstance_1().c35_1;
|
|
116
116
|
tmp1_output.bz(tmp0_desc, 0, AttoVersionSerializer_getInstance(), value.version);
|
|
117
117
|
tmp1_output.bz(tmp0_desc, 1, tmp2_cached[1].s1(), value.algorithm);
|
|
118
118
|
tmp1_output.bz(tmp0_desc, 2, AttoPublicKeySerializer_getInstance(), value.publicKey);
|
|
@@ -122,10 +122,10 @@ function $serializer() {
|
|
|
122
122
|
tmp1_output.lx(tmp0_desc);
|
|
123
123
|
}
|
|
124
124
|
ys(encoder, value) {
|
|
125
|
-
return this.
|
|
125
|
+
return this.f35(encoder, value instanceof AttoVote() ? value : THROW_CCE());
|
|
126
126
|
}
|
|
127
127
|
zs(decoder) {
|
|
128
|
-
var tmp0_desc = this.
|
|
128
|
+
var tmp0_desc = this.e35_1;
|
|
129
129
|
var tmp1_flag = true;
|
|
130
130
|
var tmp2_index = 0;
|
|
131
131
|
var tmp3_bitMask0 = 0;
|
|
@@ -136,7 +136,7 @@ function $serializer() {
|
|
|
136
136
|
var tmp8_local4 = null;
|
|
137
137
|
var tmp9_local5 = null;
|
|
138
138
|
var tmp11_input = decoder.kx(tmp0_desc);
|
|
139
|
-
var tmp12_cached = Companion_getInstance_1().
|
|
139
|
+
var tmp12_cached = Companion_getInstance_1().c35_1;
|
|
140
140
|
if (tmp11_input.zx()) {
|
|
141
141
|
tmp4_local0 = tmp11_input.wx(tmp0_desc, 0, AttoVersionSerializer_getInstance(), tmp4_local0);
|
|
142
142
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
@@ -186,13 +186,13 @@ function $serializer() {
|
|
|
186
186
|
}
|
|
187
187
|
}
|
|
188
188
|
tmp11_input.lx(tmp0_desc);
|
|
189
|
-
return AttoVote().
|
|
189
|
+
return AttoVote().g35(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, null);
|
|
190
190
|
}
|
|
191
191
|
xs() {
|
|
192
|
-
return this.
|
|
192
|
+
return this.e35_1;
|
|
193
193
|
}
|
|
194
194
|
l15() {
|
|
195
|
-
var tmp0_cached = Companion_getInstance_1().
|
|
195
|
+
var tmp0_cached = Companion_getInstance_1().c35_1;
|
|
196
196
|
// Inline function 'kotlin.arrayOf' call
|
|
197
197
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
198
198
|
// Inline function 'kotlin.js.asDynamic' call
|
|
@@ -213,7 +213,7 @@ function $serializer_getInstance() {
|
|
|
213
213
|
}
|
|
214
214
|
function AttoVote$hash$delegate$lambda(this$0) {
|
|
215
215
|
return function () {
|
|
216
|
-
return hash(this$0.
|
|
216
|
+
return hash(this$0.f2z());
|
|
217
217
|
};
|
|
218
218
|
}
|
|
219
219
|
function AttoVote$_get_hash_$ref_apyrns() {
|
|
@@ -223,7 +223,7 @@ function AttoVote$_get_hash_$ref_apyrns() {
|
|
|
223
223
|
}
|
|
224
224
|
function AttoVote$_init_$lambda_d8h57x(this$0) {
|
|
225
225
|
return function () {
|
|
226
|
-
return hash(this$0.
|
|
226
|
+
return hash(this$0.f2z());
|
|
227
227
|
};
|
|
228
228
|
}
|
|
229
229
|
var AttoVoteClass;
|
|
@@ -239,28 +239,28 @@ function AttoVote() {
|
|
|
239
239
|
this.blockHash = blockHash;
|
|
240
240
|
this.timestamp = timestamp;
|
|
241
241
|
var tmp = this;
|
|
242
|
-
tmp.
|
|
242
|
+
tmp.g34_1 = lazy_0(AttoVote$hash$delegate$lambda(this));
|
|
243
243
|
}
|
|
244
|
-
|
|
244
|
+
g2w() {
|
|
245
245
|
return this.version;
|
|
246
246
|
}
|
|
247
|
-
|
|
247
|
+
h2w() {
|
|
248
248
|
return this.algorithm;
|
|
249
249
|
}
|
|
250
|
-
|
|
250
|
+
e2w() {
|
|
251
251
|
return this.publicKey;
|
|
252
252
|
}
|
|
253
|
-
|
|
253
|
+
h35() {
|
|
254
254
|
return this.blockAlgorithm;
|
|
255
255
|
}
|
|
256
|
-
|
|
256
|
+
i35() {
|
|
257
257
|
return this.blockHash;
|
|
258
258
|
}
|
|
259
|
-
|
|
259
|
+
o2x() {
|
|
260
260
|
return this.timestamp;
|
|
261
261
|
}
|
|
262
|
-
|
|
263
|
-
var tmp0 = this.
|
|
262
|
+
j2x() {
|
|
263
|
+
var tmp0 = this.g34_1;
|
|
264
264
|
var tmp = KProperty1();
|
|
265
265
|
// Inline function 'kotlin.getValue' call
|
|
266
266
|
getPropertyCallableRef('hash', 1, tmp, AttoVote$_get_hash_$ref_apyrns(), null);
|
|
@@ -278,7 +278,7 @@ function AttoVote() {
|
|
|
278
278
|
var this_0 = _UInt___init__impl__l7qpdl(_UShort___get_data__impl__g0245(tmp0) & 65535);
|
|
279
279
|
return uintCompare(_UInt___get_data__impl__f0vqqw(this_0), _UInt___get_data__impl__f0vqqw(other)) <= 0;
|
|
280
280
|
}
|
|
281
|
-
|
|
281
|
+
f2z() {
|
|
282
282
|
// Inline function 'kotlin.apply' call
|
|
283
283
|
var this_0 = new (Buffer())();
|
|
284
284
|
writeAttoVersion(this_0, this.version);
|
|
@@ -295,19 +295,19 @@ function AttoVote() {
|
|
|
295
295
|
hl() {
|
|
296
296
|
return this.algorithm;
|
|
297
297
|
}
|
|
298
|
-
|
|
298
|
+
t2w() {
|
|
299
299
|
return this.publicKey;
|
|
300
300
|
}
|
|
301
|
-
|
|
301
|
+
u2w() {
|
|
302
302
|
return this.blockAlgorithm;
|
|
303
303
|
}
|
|
304
|
-
|
|
304
|
+
v2w() {
|
|
305
305
|
return this.blockHash;
|
|
306
306
|
}
|
|
307
|
-
|
|
307
|
+
w2w() {
|
|
308
308
|
return this.timestamp;
|
|
309
309
|
}
|
|
310
|
-
|
|
310
|
+
j35(version, algorithm, publicKey, blockAlgorithm, blockHash, timestamp) {
|
|
311
311
|
return new (AttoVote())(version, algorithm, publicKey, blockAlgorithm, blockHash, timestamp);
|
|
312
312
|
}
|
|
313
313
|
copy(version, algorithm, publicKey, blockAlgorithm, blockHash, timestamp, $super) {
|
|
@@ -317,7 +317,7 @@ function AttoVote() {
|
|
|
317
317
|
blockAlgorithm = blockAlgorithm === VOID ? this.blockAlgorithm : blockAlgorithm;
|
|
318
318
|
blockHash = blockHash === VOID ? this.blockHash : blockHash;
|
|
319
319
|
timestamp = timestamp === VOID ? this.timestamp : timestamp;
|
|
320
|
-
return $super === VOID ? this.
|
|
320
|
+
return $super === VOID ? this.j35(version, algorithm, publicKey, blockAlgorithm, blockHash, timestamp) : $super.j35.call(this, version, algorithm, publicKey, blockAlgorithm, blockHash, timestamp);
|
|
321
321
|
}
|
|
322
322
|
toString() {
|
|
323
323
|
return 'AttoVote(version=' + this.version.toString() + ', algorithm=' + this.algorithm.toString() + ', publicKey=' + this.publicKey.toString() + ', blockAlgorithm=' + this.blockAlgorithm.toString() + ', blockHash=' + this.blockHash.toString() + ', timestamp=' + this.timestamp.toString() + ')';
|
|
@@ -351,10 +351,10 @@ function AttoVote() {
|
|
|
351
351
|
return false;
|
|
352
352
|
return true;
|
|
353
353
|
}
|
|
354
|
-
static
|
|
354
|
+
static g35(seen0, version, algorithm, publicKey, blockAlgorithm, blockHash, timestamp, serializationConstructorMarker) {
|
|
355
355
|
Companion_getInstance_1();
|
|
356
356
|
if (!(63 === (63 & seen0))) {
|
|
357
|
-
throwMissingFieldException(seen0, 63, $serializer_getInstance().
|
|
357
|
+
throwMissingFieldException(seen0, 63, $serializer_getInstance().e35_1);
|
|
358
358
|
}
|
|
359
359
|
var $this = createThis(this);
|
|
360
360
|
$this.version = version;
|
|
@@ -364,11 +364,11 @@ function AttoVote() {
|
|
|
364
364
|
$this.blockHash = blockHash;
|
|
365
365
|
$this.timestamp = timestamp;
|
|
366
366
|
var tmp = $this;
|
|
367
|
-
tmp.
|
|
367
|
+
tmp.g34_1 = lazy_0(AttoVote$_init_$lambda_d8h57x($this));
|
|
368
368
|
return $this;
|
|
369
369
|
}
|
|
370
370
|
get hash() {
|
|
371
|
-
return this.
|
|
371
|
+
return this.j2x();
|
|
372
372
|
}
|
|
373
373
|
}
|
|
374
374
|
initMetadataForClass($, 'AttoVote', VOID, VOID, [AttoHashable()], VOID, VOID, {0: $serializer_getInstance});
|
|
@@ -66,7 +66,7 @@ function Companion() {
|
|
|
66
66
|
constructor() {
|
|
67
67
|
this.SIZE = 8;
|
|
68
68
|
}
|
|
69
|
-
|
|
69
|
+
h33() {
|
|
70
70
|
return this.SIZE;
|
|
71
71
|
}
|
|
72
72
|
threshold(network, timestamp) {
|
|
@@ -75,7 +75,7 @@ function Companion() {
|
|
|
75
75
|
parse(value) {
|
|
76
76
|
return new (AttoWork())(fromHexToByteArray(value));
|
|
77
77
|
}
|
|
78
|
-
|
|
78
|
+
e2v() {
|
|
79
79
|
return AttoWorkSerializer_getInstance();
|
|
80
80
|
}
|
|
81
81
|
}
|
|
@@ -101,7 +101,7 @@ function AttoWork() {
|
|
|
101
101
|
}
|
|
102
102
|
isValid(block) {
|
|
103
103
|
if (block instanceof AttoOpenBlock()) {
|
|
104
|
-
return isValid(Companion_instance, block.
|
|
104
|
+
return isValid(Companion_instance, block.j2v_1, block.o2v_1, block.m2v_1.value, this.value);
|
|
105
105
|
}
|
|
106
106
|
if (!isInterface(block, PreviousSupport()))
|
|
107
107
|
THROW_CCE();
|
|
@@ -123,12 +123,12 @@ function AttoWork() {
|
|
|
123
123
|
gl() {
|
|
124
124
|
return this.value;
|
|
125
125
|
}
|
|
126
|
-
|
|
126
|
+
v31(value) {
|
|
127
127
|
return new (AttoWork())(value);
|
|
128
128
|
}
|
|
129
129
|
copy(value, $super) {
|
|
130
130
|
value = value === VOID ? this.value : value;
|
|
131
|
-
return $super === VOID ? this.
|
|
131
|
+
return $super === VOID ? this.v31(value) : $super.v31.call(this, value);
|
|
132
132
|
}
|
|
133
133
|
}
|
|
134
134
|
initMetadataForClass($, 'AttoWork', VOID, VOID, VOID, VOID, VOID, {0: AttoWorkSerializer_getInstance});
|
|
@@ -142,16 +142,16 @@ function AttoWorkSerializer() {
|
|
|
142
142
|
class $ {
|
|
143
143
|
constructor() {
|
|
144
144
|
AttoWorkSerializer_instance = this;
|
|
145
|
-
this.
|
|
145
|
+
this.k35_1 = PrimitiveSerialDescriptor('AttoWork', STRING_getInstance());
|
|
146
146
|
}
|
|
147
147
|
xs() {
|
|
148
|
-
return this.
|
|
148
|
+
return this.k35_1;
|
|
149
149
|
}
|
|
150
|
-
|
|
150
|
+
l35(encoder, value) {
|
|
151
151
|
encoder.oy(value.toString());
|
|
152
152
|
}
|
|
153
153
|
ys(encoder, value) {
|
|
154
|
-
return this.
|
|
154
|
+
return this.l35(encoder, value instanceof AttoWork() ? value : THROW_CCE());
|
|
155
155
|
}
|
|
156
156
|
zs(decoder) {
|
|
157
157
|
return Companion_instance.parse(decoder.fx());
|
|
@@ -222,7 +222,7 @@ function isValid(_this__u8e3s4, network, timestamp, target, work) {
|
|
|
222
222
|
}
|
|
223
223
|
function isValid_0(_this__u8e3s4, threshold, target, work) {
|
|
224
224
|
_init_properties_AttoWork_kt__ln1ynz();
|
|
225
|
-
var difficult = toULong(AttoHasher_instance.
|
|
225
|
+
var difficult = toULong(AttoHasher_instance.r2x(8, [work, target]));
|
|
226
226
|
// Inline function 'kotlin.ULong.compareTo' call
|
|
227
227
|
return ulongCompare(_ULong___get_data__impl__fggpzb(difficult), _ULong___get_data__impl__fggpzb(threshold)) <= 0;
|
|
228
228
|
}
|
package/commons-commons-core/cash/atto/commons/serialiazer/AttoAddressAsByteArraySerializer.mjs
CHANGED
|
@@ -20,16 +20,16 @@ function AttoAddressAsByteArraySerializer() {
|
|
|
20
20
|
class $ {
|
|
21
21
|
constructor() {
|
|
22
22
|
AttoAddressAsByteArraySerializer_instance = this;
|
|
23
|
-
this.
|
|
23
|
+
this.m35_1 = PrimitiveSerialDescriptor('AttoAddress', BYTE_getInstance());
|
|
24
24
|
}
|
|
25
25
|
xs() {
|
|
26
|
-
return this.
|
|
26
|
+
return this.m35_1;
|
|
27
27
|
}
|
|
28
|
-
|
|
28
|
+
n35(encoder, value) {
|
|
29
29
|
encoder.cz(ByteArraySerializer(), readByteArray(value.toBuffer()));
|
|
30
30
|
}
|
|
31
31
|
ys(encoder, value) {
|
|
32
|
-
return this.
|
|
32
|
+
return this.n35(encoder, value instanceof AttoAddress() ? value : THROW_CCE());
|
|
33
33
|
}
|
|
34
34
|
zs(decoder) {
|
|
35
35
|
return Companion_getInstance().parseSerialized(decoder.jx(ByteArraySerializer()));
|