@attocash/commons-js 5.0.0 → 5.1.1
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/cash/atto/commons/node/NodeExtensions.export.d.ts +4 -0
- package/commons-commons-node/cash/atto/commons/node/NodeExtensions.export.mjs +16 -0
- package/commons-commons-node/cash/atto/commons/node/NodeExtensions.export.mjs.map +1 -0
- package/commons-commons-node/cash/atto/commons/node/NodeExtensions.mjs +41 -0
- package/commons-commons-node/cash/atto/commons/node/NodeExtensions.mjs.map +1 -0
- 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-node.mjs +1 -0
- package/commons-commons-node.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/channels/BufferedChannel.mjs +2 -2
- package/kotlinx-coroutines-core/kotlinx/coroutines/channels/ChannelCoroutine.mjs +2 -2
- 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/ByteString.mjs.map +1 -1
- package/kotlinx-io-kotlinx-io-bytestring/kotlinx/io/bytestring/unsafe/UnsafeByteStringOperations.mjs +2 -2
- package/kotlinx-io-kotlinx-io-bytestring/kotlinx/io/bytestring/unsafe/UnsafeByteStringOperations.mjs.map +1 -1
- package/kotlinx-io-kotlinx-io-core/kotlinx/io/-PlatformJs.mjs +11 -11
- package/kotlinx-io-kotlinx-io-core/kotlinx/io/-PlatformJs.mjs.map +1 -1
- package/kotlinx-io-kotlinx-io-core/kotlinx/io/-Util.mjs.map +1 -1
- package/kotlinx-io-kotlinx-io-core/kotlinx/io/Buffer.mjs +189 -189
- package/kotlinx-io-kotlinx-io-core/kotlinx/io/Buffer.mjs.map +1 -1
- package/kotlinx-io-kotlinx-io-core/kotlinx/io/Buffers.mjs +10 -10
- package/kotlinx-io-kotlinx-io-core/kotlinx/io/Buffers.mjs.map +1 -1
- package/kotlinx-io-kotlinx-io-core/kotlinx/io/ByteStrings.mjs +1 -1
- package/kotlinx-io-kotlinx-io-core/kotlinx/io/ByteStrings.mjs.map +1 -1
- package/kotlinx-io-kotlinx-io-core/kotlinx/io/Core.mjs.map +1 -1
- package/kotlinx-io-kotlinx-io-core/kotlinx/io/PeekSource.mjs +20 -20
- package/kotlinx-io-kotlinx-io-core/kotlinx/io/PeekSource.mjs.map +1 -1
- package/kotlinx-io-kotlinx-io-core/kotlinx/io/RealSource.mjs +56 -56
- package/kotlinx-io-kotlinx-io-core/kotlinx/io/RealSource.mjs.map +1 -1
- package/kotlinx-io-kotlinx-io-core/kotlinx/io/Segment.mjs +149 -149
- package/kotlinx-io-kotlinx-io-core/kotlinx/io/Segment.mjs.map +1 -1
- package/kotlinx-io-kotlinx-io-core/kotlinx/io/SegmentPool.mjs +6 -6
- package/kotlinx-io-kotlinx-io-core/kotlinx/io/SegmentPool.mjs.map +1 -1
- package/kotlinx-io-kotlinx-io-core/kotlinx/io/Sink.mjs +2 -2
- package/kotlinx-io-kotlinx-io-core/kotlinx/io/Sink.mjs.map +1 -1
- package/kotlinx-io-kotlinx-io-core/kotlinx/io/Sinks.mjs +3 -3
- package/kotlinx-io-kotlinx-io-core/kotlinx/io/Sinks.mjs.map +1 -1
- package/kotlinx-io-kotlinx-io-core/kotlinx/io/Sources.mjs +15 -15
- package/kotlinx-io-kotlinx-io-core/kotlinx/io/Sources.mjs.map +1 -1
- package/kotlinx-io-kotlinx-io-core/kotlinx/io/Utf8.mjs +50 -50
- package/kotlinx-io-kotlinx-io-core/kotlinx/io/Utf8.mjs.map +1 -1
- package/kotlinx-io-kotlinx-io-core/kotlinx/io/UtilsJs.mjs.map +1 -1
- package/kotlinx-io-kotlinx-io-core/kotlinx/io/internal/-Utf8.mjs.map +1 -1
- package/kotlinx-io-kotlinx-io-core/kotlinx/io/unsafe/UnsafeBufferOperations.mjs +12 -12
- package/kotlinx-io-kotlinx-io-core/kotlinx/io/unsafe/UnsafeBufferOperations.mjs.map +1 -1
- 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/selector/SelectorManager.jsAndWasmShared.mjs +2 -2
- 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 +106 -106
- 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
|
@@ -42,13 +42,13 @@ var imul = Math.imul;
|
|
|
42
42
|
//region block: pre-declaration
|
|
43
43
|
//endregion
|
|
44
44
|
function AttoAccountEntry$Companion$$childSerializers$_anonymous__feoh5j() {
|
|
45
|
-
return Companion_getInstance().
|
|
45
|
+
return Companion_getInstance().e2v();
|
|
46
46
|
}
|
|
47
47
|
function AttoAccountEntry$Companion$$childSerializers$_anonymous__feoh5j_0() {
|
|
48
48
|
return createSimpleEnumSerializer('cash.atto.commons.AttoBlockType', values());
|
|
49
49
|
}
|
|
50
50
|
function AttoAccountEntry$Companion$$childSerializers$_anonymous__feoh5j_1() {
|
|
51
|
-
return Companion_getInstance().
|
|
51
|
+
return Companion_getInstance().e2v();
|
|
52
52
|
}
|
|
53
53
|
var CompanionClass;
|
|
54
54
|
function Companion() {
|
|
@@ -65,9 +65,9 @@ function Companion() {
|
|
|
65
65
|
// Inline function 'kotlin.arrayOf' call
|
|
66
66
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
67
67
|
// Inline function 'kotlin.js.asDynamic' call
|
|
68
|
-
tmp.
|
|
68
|
+
tmp.c2x_1 = [null, tmp_1, null, null, tmp_3, lazy(tmp_4, AttoAccountEntry$Companion$$childSerializers$_anonymous__feoh5j_1), null, null, null, null];
|
|
69
69
|
}
|
|
70
|
-
|
|
70
|
+
e2v() {
|
|
71
71
|
return $serializer_getInstance();
|
|
72
72
|
}
|
|
73
73
|
}
|
|
@@ -99,16 +99,16 @@ function $serializer() {
|
|
|
99
99
|
tmp0_serialDesc.w14('previousBalance', false);
|
|
100
100
|
tmp0_serialDesc.w14('balance', false);
|
|
101
101
|
tmp0_serialDesc.w14('timestamp', false);
|
|
102
|
-
this.
|
|
102
|
+
this.d2x_1 = tmp0_serialDesc;
|
|
103
103
|
}
|
|
104
|
-
|
|
105
|
-
var tmp0_desc = this.
|
|
104
|
+
e2x(encoder, value) {
|
|
105
|
+
var tmp0_desc = this.d2x_1;
|
|
106
106
|
var tmp1_output = encoder.kx(tmp0_desc);
|
|
107
|
-
var tmp2_cached = Companion_getInstance_0().
|
|
107
|
+
var tmp2_cached = Companion_getInstance_0().c2x_1;
|
|
108
108
|
tmp1_output.bz(tmp0_desc, 0, AttoHashSerializer_getInstance(), value.hash);
|
|
109
109
|
tmp1_output.bz(tmp0_desc, 1, tmp2_cached[1].s1(), value.algorithm);
|
|
110
110
|
tmp1_output.bz(tmp0_desc, 2, AttoPublicKeySerializer_getInstance(), value.publicKey);
|
|
111
|
-
tmp1_output.bz(tmp0_desc, 3, AttoHeightSerializer_getInstance(), value.
|
|
111
|
+
tmp1_output.bz(tmp0_desc, 3, AttoHeightSerializer_getInstance(), value.f2x_1);
|
|
112
112
|
tmp1_output.bz(tmp0_desc, 4, tmp2_cached[4].s1(), value.blockType);
|
|
113
113
|
tmp1_output.bz(tmp0_desc, 5, tmp2_cached[5].s1(), value.subjectAlgorithm);
|
|
114
114
|
tmp1_output.bz(tmp0_desc, 6, AttoPublicKeySerializer_getInstance(), value.subjectPublicKey);
|
|
@@ -118,10 +118,10 @@ function $serializer() {
|
|
|
118
118
|
tmp1_output.lx(tmp0_desc);
|
|
119
119
|
}
|
|
120
120
|
ys(encoder, value) {
|
|
121
|
-
return this.
|
|
121
|
+
return this.e2x(encoder, value instanceof AttoAccountEntry() ? value : THROW_CCE());
|
|
122
122
|
}
|
|
123
123
|
zs(decoder) {
|
|
124
|
-
var tmp0_desc = this.
|
|
124
|
+
var tmp0_desc = this.d2x_1;
|
|
125
125
|
var tmp1_flag = true;
|
|
126
126
|
var tmp2_index = 0;
|
|
127
127
|
var tmp3_bitMask0 = 0;
|
|
@@ -136,7 +136,7 @@ function $serializer() {
|
|
|
136
136
|
var tmp12_local8 = null;
|
|
137
137
|
var tmp13_local9 = null;
|
|
138
138
|
var tmp16_input = decoder.kx(tmp0_desc);
|
|
139
|
-
var tmp17_cached = Companion_getInstance_0().
|
|
139
|
+
var tmp17_cached = Companion_getInstance_0().c2x_1;
|
|
140
140
|
if (tmp16_input.zx()) {
|
|
141
141
|
tmp4_local0 = tmp16_input.wx(tmp0_desc, 0, AttoHashSerializer_getInstance(), tmp4_local0);
|
|
142
142
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
@@ -210,13 +210,13 @@ function $serializer() {
|
|
|
210
210
|
}
|
|
211
211
|
}
|
|
212
212
|
tmp16_input.lx(tmp0_desc);
|
|
213
|
-
return AttoAccountEntry().
|
|
213
|
+
return AttoAccountEntry().i2x(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, tmp12_local8, tmp13_local9, null);
|
|
214
214
|
}
|
|
215
215
|
xs() {
|
|
216
|
-
return this.
|
|
216
|
+
return this.d2x_1;
|
|
217
217
|
}
|
|
218
218
|
l15() {
|
|
219
|
-
var tmp0_cached = Companion_getInstance_0().
|
|
219
|
+
var tmp0_cached = Companion_getInstance_0().c2x_1;
|
|
220
220
|
// Inline function 'kotlin.arrayOf' call
|
|
221
221
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
222
222
|
// Inline function 'kotlin.js.asDynamic' call
|
|
@@ -274,7 +274,7 @@ function AttoAccountEntry() {
|
|
|
274
274
|
this.hash = hash;
|
|
275
275
|
this.algorithm = algorithm;
|
|
276
276
|
this.publicKey = publicKey;
|
|
277
|
-
this.
|
|
277
|
+
this.f2x_1 = height;
|
|
278
278
|
this.blockType = blockType;
|
|
279
279
|
this.subjectAlgorithm = subjectAlgorithm;
|
|
280
280
|
this.subjectPublicKey = subjectPublicKey;
|
|
@@ -282,49 +282,49 @@ function AttoAccountEntry() {
|
|
|
282
282
|
this.balance = balance;
|
|
283
283
|
this.timestamp = timestamp;
|
|
284
284
|
var tmp = this;
|
|
285
|
-
tmp.
|
|
285
|
+
tmp.g2x_1 = lazy_0(AttoAccountEntry$address$delegate$lambda(this));
|
|
286
286
|
var tmp_0 = this;
|
|
287
|
-
tmp_0.
|
|
287
|
+
tmp_0.h2x_1 = lazy_0(AttoAccountEntry$subjectAddress$delegate$lambda(this));
|
|
288
288
|
}
|
|
289
|
-
|
|
289
|
+
j2x() {
|
|
290
290
|
return this.hash;
|
|
291
291
|
}
|
|
292
|
-
|
|
292
|
+
h2w() {
|
|
293
293
|
return this.algorithm;
|
|
294
294
|
}
|
|
295
|
-
|
|
295
|
+
e2w() {
|
|
296
296
|
return this.publicKey;
|
|
297
297
|
}
|
|
298
|
-
|
|
299
|
-
return this.
|
|
298
|
+
i2w() {
|
|
299
|
+
return this.f2x_1;
|
|
300
300
|
}
|
|
301
|
-
|
|
301
|
+
k2x() {
|
|
302
302
|
return this.blockType;
|
|
303
303
|
}
|
|
304
|
-
|
|
304
|
+
l2x() {
|
|
305
305
|
return this.subjectAlgorithm;
|
|
306
306
|
}
|
|
307
|
-
|
|
307
|
+
m2x() {
|
|
308
308
|
return this.subjectPublicKey;
|
|
309
309
|
}
|
|
310
|
-
|
|
310
|
+
n2x() {
|
|
311
311
|
return this.previousBalance;
|
|
312
312
|
}
|
|
313
|
-
|
|
313
|
+
j2w() {
|
|
314
314
|
return this.balance;
|
|
315
315
|
}
|
|
316
|
-
|
|
316
|
+
o2x() {
|
|
317
317
|
return this.timestamp;
|
|
318
318
|
}
|
|
319
|
-
|
|
320
|
-
var tmp0 = this.
|
|
319
|
+
o2w() {
|
|
320
|
+
var tmp0 = this.g2x_1;
|
|
321
321
|
var tmp = KProperty1();
|
|
322
322
|
// Inline function 'kotlin.getValue' call
|
|
323
323
|
getPropertyCallableRef('address', 1, tmp, AttoAccountEntry$_get_address_$ref_gb19nf(), null);
|
|
324
324
|
return tmp0.s1();
|
|
325
325
|
}
|
|
326
|
-
|
|
327
|
-
var tmp0 = this.
|
|
326
|
+
p2x() {
|
|
327
|
+
var tmp0 = this.h2x_1;
|
|
328
328
|
var tmp = KProperty1();
|
|
329
329
|
// Inline function 'kotlin.getValue' call
|
|
330
330
|
getPropertyCallableRef('subjectAddress', 1, tmp, AttoAccountEntry$_get_subjectAddress_$ref_80x2eb(), null);
|
|
@@ -336,54 +336,54 @@ function AttoAccountEntry() {
|
|
|
336
336
|
hl() {
|
|
337
337
|
return this.algorithm;
|
|
338
338
|
}
|
|
339
|
-
|
|
339
|
+
t2w() {
|
|
340
340
|
return this.publicKey;
|
|
341
341
|
}
|
|
342
|
-
|
|
343
|
-
return this.
|
|
342
|
+
u2w() {
|
|
343
|
+
return this.f2x_1;
|
|
344
344
|
}
|
|
345
|
-
|
|
345
|
+
v2w() {
|
|
346
346
|
return this.blockType;
|
|
347
347
|
}
|
|
348
|
-
|
|
348
|
+
w2w() {
|
|
349
349
|
return this.subjectAlgorithm;
|
|
350
350
|
}
|
|
351
|
-
|
|
351
|
+
x2w() {
|
|
352
352
|
return this.subjectPublicKey;
|
|
353
353
|
}
|
|
354
|
-
|
|
354
|
+
y2w() {
|
|
355
355
|
return this.previousBalance;
|
|
356
356
|
}
|
|
357
|
-
|
|
357
|
+
z2w() {
|
|
358
358
|
return this.balance;
|
|
359
359
|
}
|
|
360
|
-
|
|
360
|
+
a2x() {
|
|
361
361
|
return this.timestamp;
|
|
362
362
|
}
|
|
363
|
-
|
|
363
|
+
q2x(hash, algorithm, publicKey, height, blockType, subjectAlgorithm, subjectPublicKey, previousBalance, balance, timestamp) {
|
|
364
364
|
return new (AttoAccountEntry())(hash, algorithm, publicKey, height, blockType, subjectAlgorithm, subjectPublicKey, previousBalance, balance, timestamp);
|
|
365
365
|
}
|
|
366
366
|
copy(hash, algorithm, publicKey, height, blockType, subjectAlgorithm, subjectPublicKey, previousBalance, balance, timestamp, $super) {
|
|
367
367
|
hash = hash === VOID ? this.hash : hash;
|
|
368
368
|
algorithm = algorithm === VOID ? this.algorithm : algorithm;
|
|
369
369
|
publicKey = publicKey === VOID ? this.publicKey : publicKey;
|
|
370
|
-
height = height === VOID ? this.
|
|
370
|
+
height = height === VOID ? this.f2x_1 : height;
|
|
371
371
|
blockType = blockType === VOID ? this.blockType : blockType;
|
|
372
372
|
subjectAlgorithm = subjectAlgorithm === VOID ? this.subjectAlgorithm : subjectAlgorithm;
|
|
373
373
|
subjectPublicKey = subjectPublicKey === VOID ? this.subjectPublicKey : subjectPublicKey;
|
|
374
374
|
previousBalance = previousBalance === VOID ? this.previousBalance : previousBalance;
|
|
375
375
|
balance = balance === VOID ? this.balance : balance;
|
|
376
376
|
timestamp = timestamp === VOID ? this.timestamp : timestamp;
|
|
377
|
-
return $super === VOID ? this.
|
|
377
|
+
return $super === VOID ? this.q2x(hash, algorithm, publicKey, height, blockType, subjectAlgorithm, subjectPublicKey, previousBalance, balance, timestamp) : $super.q2x.call(this, hash, algorithm, publicKey, height, blockType, subjectAlgorithm, subjectPublicKey, previousBalance, balance, timestamp);
|
|
378
378
|
}
|
|
379
379
|
toString() {
|
|
380
|
-
return 'AttoAccountEntry(hash=' + this.hash.toString() + ', algorithm=' + this.algorithm.toString() + ', publicKey=' + this.publicKey.toString() + ', height=' + this.
|
|
380
|
+
return 'AttoAccountEntry(hash=' + this.hash.toString() + ', algorithm=' + this.algorithm.toString() + ', publicKey=' + this.publicKey.toString() + ', height=' + this.f2x_1.toString() + ', blockType=' + this.blockType.toString() + ', subjectAlgorithm=' + this.subjectAlgorithm.toString() + ', subjectPublicKey=' + this.subjectPublicKey.toString() + ', previousBalance=' + this.previousBalance.toString() + ', balance=' + this.balance.toString() + ', timestamp=' + this.timestamp.toString() + ')';
|
|
381
381
|
}
|
|
382
382
|
hashCode() {
|
|
383
383
|
var result = this.hash.hashCode();
|
|
384
384
|
result = imul(result, 31) + this.algorithm.hashCode() | 0;
|
|
385
385
|
result = imul(result, 31) + this.publicKey.hashCode() | 0;
|
|
386
|
-
result = imul(result, 31) + this.
|
|
386
|
+
result = imul(result, 31) + this.f2x_1.hashCode() | 0;
|
|
387
387
|
result = imul(result, 31) + this.blockType.hashCode() | 0;
|
|
388
388
|
result = imul(result, 31) + this.subjectAlgorithm.hashCode() | 0;
|
|
389
389
|
result = imul(result, 31) + this.subjectPublicKey.hashCode() | 0;
|
|
@@ -404,7 +404,7 @@ function AttoAccountEntry() {
|
|
|
404
404
|
return false;
|
|
405
405
|
if (!this.publicKey.equals(tmp0_other_with_cast.publicKey))
|
|
406
406
|
return false;
|
|
407
|
-
if (!this.
|
|
407
|
+
if (!this.f2x_1.equals(tmp0_other_with_cast.f2x_1))
|
|
408
408
|
return false;
|
|
409
409
|
if (!this.blockType.equals(tmp0_other_with_cast.blockType))
|
|
410
410
|
return false;
|
|
@@ -420,16 +420,16 @@ function AttoAccountEntry() {
|
|
|
420
420
|
return false;
|
|
421
421
|
return true;
|
|
422
422
|
}
|
|
423
|
-
static
|
|
423
|
+
static i2x(seen0, hash, algorithm, publicKey, height, blockType, subjectAlgorithm, subjectPublicKey, previousBalance, balance, timestamp, serializationConstructorMarker) {
|
|
424
424
|
Companion_getInstance_0();
|
|
425
425
|
if (!(1023 === (1023 & seen0))) {
|
|
426
|
-
throwMissingFieldException(seen0, 1023, $serializer_getInstance().
|
|
426
|
+
throwMissingFieldException(seen0, 1023, $serializer_getInstance().d2x_1);
|
|
427
427
|
}
|
|
428
428
|
var $this = createThis(this);
|
|
429
429
|
$this.hash = hash;
|
|
430
430
|
$this.algorithm = algorithm;
|
|
431
431
|
$this.publicKey = publicKey;
|
|
432
|
-
$this.
|
|
432
|
+
$this.f2x_1 = height;
|
|
433
433
|
$this.blockType = blockType;
|
|
434
434
|
$this.subjectAlgorithm = subjectAlgorithm;
|
|
435
435
|
$this.subjectPublicKey = subjectPublicKey;
|
|
@@ -437,19 +437,19 @@ function AttoAccountEntry() {
|
|
|
437
437
|
$this.balance = balance;
|
|
438
438
|
$this.timestamp = timestamp;
|
|
439
439
|
var tmp = $this;
|
|
440
|
-
tmp.
|
|
440
|
+
tmp.g2x_1 = lazy_0(AttoAccountEntry$_init_$lambda_d9gqwo($this));
|
|
441
441
|
var tmp_0 = $this;
|
|
442
|
-
tmp_0.
|
|
442
|
+
tmp_0.h2x_1 = lazy_0(AttoAccountEntry$_init_$lambda_d9gqwo_0($this));
|
|
443
443
|
return $this;
|
|
444
444
|
}
|
|
445
445
|
get height() {
|
|
446
|
-
return this.
|
|
446
|
+
return this.i2w();
|
|
447
447
|
}
|
|
448
448
|
get address() {
|
|
449
|
-
return this.
|
|
449
|
+
return this.o2w();
|
|
450
450
|
}
|
|
451
451
|
get subjectAddress() {
|
|
452
|
-
return this.
|
|
452
|
+
return this.p2x();
|
|
453
453
|
}
|
|
454
454
|
}
|
|
455
455
|
initMetadataForClass($, 'AttoAccountEntry', VOID, VOID, [HeightSupport()], VOID, VOID, {0: $serializer_getInstance});
|
|
@@ -32,7 +32,7 @@ var imul = Math.imul;
|
|
|
32
32
|
//region block: pre-declaration
|
|
33
33
|
//endregion
|
|
34
34
|
function checksum($this, algorithm, publicKey) {
|
|
35
|
-
return AttoHasher_instance.
|
|
35
|
+
return AttoHasher_instance.r2x(5, [algorithm, publicKey]);
|
|
36
36
|
}
|
|
37
37
|
function checksum_0($this, algorithm, publicKey) {
|
|
38
38
|
// Inline function 'kotlin.UByte.toByte' call
|
|
@@ -63,11 +63,11 @@ function Companion() {
|
|
|
63
63
|
var tmp = this;
|
|
64
64
|
// Inline function 'kotlin.text.toRegex' call
|
|
65
65
|
var this_0 = '^atto://[a-z2-7]{61}$';
|
|
66
|
-
tmp.
|
|
67
|
-
this.
|
|
66
|
+
tmp.u2x_1 = Regex().qi(this_0);
|
|
67
|
+
this.v2x_1 = 5;
|
|
68
68
|
}
|
|
69
69
|
isValid(value) {
|
|
70
|
-
if (!this.
|
|
70
|
+
if (!this.u2x_1.ri(value)) {
|
|
71
71
|
return false;
|
|
72
72
|
}
|
|
73
73
|
var decoded = fromAddress(value);
|
|
@@ -119,7 +119,7 @@ function Companion() {
|
|
|
119
119
|
var value = 'atto://' + path;
|
|
120
120
|
return this.parse(value);
|
|
121
121
|
}
|
|
122
|
-
|
|
122
|
+
e2v() {
|
|
123
123
|
return AttoAddressAsByteArraySerializer_getInstance();
|
|
124
124
|
}
|
|
125
125
|
}
|
|
@@ -146,16 +146,16 @@ function AttoAddress() {
|
|
|
146
146
|
this.path = Companion_getInstance_0().toAddress(this.algorithm, this.publicKey);
|
|
147
147
|
this.value = this.schema + this.path;
|
|
148
148
|
}
|
|
149
|
-
|
|
149
|
+
h2w() {
|
|
150
150
|
return this.algorithm;
|
|
151
151
|
}
|
|
152
|
-
|
|
152
|
+
e2w() {
|
|
153
153
|
return this.publicKey;
|
|
154
154
|
}
|
|
155
|
-
|
|
155
|
+
w2x() {
|
|
156
156
|
return this.schema;
|
|
157
157
|
}
|
|
158
|
-
|
|
158
|
+
x2x() {
|
|
159
159
|
return this.path;
|
|
160
160
|
}
|
|
161
161
|
s1() {
|
|
@@ -165,7 +165,7 @@ function AttoAddress() {
|
|
|
165
165
|
// Inline function 'kotlin.apply' call
|
|
166
166
|
var this_0 = new (Buffer())();
|
|
167
167
|
writeUByte(this_0, this.algorithm.code);
|
|
168
|
-
this_0.
|
|
168
|
+
this_0.b2t(this.publicKey.value, 0, this.publicKey.value.length);
|
|
169
169
|
return this_0;
|
|
170
170
|
}
|
|
171
171
|
toString() {
|
|
@@ -177,13 +177,13 @@ function AttoAddress() {
|
|
|
177
177
|
hl() {
|
|
178
178
|
return this.publicKey;
|
|
179
179
|
}
|
|
180
|
-
|
|
180
|
+
y2x(algorithm, publicKey) {
|
|
181
181
|
return new (AttoAddress())(algorithm, publicKey);
|
|
182
182
|
}
|
|
183
183
|
copy(algorithm, publicKey, $super) {
|
|
184
184
|
algorithm = algorithm === VOID ? this.algorithm : algorithm;
|
|
185
185
|
publicKey = publicKey === VOID ? this.publicKey : publicKey;
|
|
186
|
-
return $super === VOID ? this.
|
|
186
|
+
return $super === VOID ? this.y2x(algorithm, publicKey) : $super.y2x.call(this, algorithm, publicKey);
|
|
187
187
|
}
|
|
188
188
|
hashCode() {
|
|
189
189
|
var result = this.algorithm.hashCode();
|
|
@@ -213,7 +213,7 @@ function fromAddress(_this__u8e3s4) {
|
|
|
213
213
|
// Inline function 'kotlin.text.uppercase' call
|
|
214
214
|
// Inline function 'kotlin.js.asDynamic' call
|
|
215
215
|
var tmp$ret$1 = substring(_this__u8e3s4, 7).toUpperCase();
|
|
216
|
-
return tmp.
|
|
216
|
+
return tmp.b2y(tmp$ret$1 + '===');
|
|
217
217
|
}
|
|
218
218
|
function toAddress(_this__u8e3s4) {
|
|
219
219
|
// Inline function 'kotlin.require' call
|
|
@@ -223,7 +223,7 @@ function toAddress(_this__u8e3s4) {
|
|
|
223
223
|
}
|
|
224
224
|
// Inline function 'kotlin.text.lowercase' call
|
|
225
225
|
// Inline function 'kotlin.js.asDynamic' call
|
|
226
|
-
return replace(Base32_getInstance().
|
|
226
|
+
return replace(Base32_getInstance().c2y(_this__u8e3s4), '=', '').toLowerCase();
|
|
227
227
|
}
|
|
228
228
|
//region block: exports
|
|
229
229
|
export {
|
|
@@ -25,7 +25,7 @@ import { Enum3alwj03lh1n41 as Enum } from '../../../../kotlin-kotlin-stdlib/kotl
|
|
|
25
25
|
//region block: pre-declaration
|
|
26
26
|
//endregion
|
|
27
27
|
function _get_$cachedSerializer__te6jhj($this) {
|
|
28
|
-
return $this.
|
|
28
|
+
return $this.d2v_1.s1();
|
|
29
29
|
}
|
|
30
30
|
function AttoAlgorithm$Companion$_anonymous__z50osy() {
|
|
31
31
|
return createSimpleEnumSerializer('cash.atto.commons.AttoAlgorithm', values());
|
|
@@ -49,13 +49,13 @@ function Companion() {
|
|
|
49
49
|
var tmp$ret$0 = new (UByte())(element.code);
|
|
50
50
|
destination.d3(tmp$ret$0, element);
|
|
51
51
|
}
|
|
52
|
-
tmp.
|
|
52
|
+
tmp.c2v_1 = destination;
|
|
53
53
|
var tmp_0 = this;
|
|
54
54
|
var tmp_1 = LazyThreadSafetyMode_PUBLICATION_getInstance();
|
|
55
|
-
tmp_0.
|
|
55
|
+
tmp_0.d2v_1 = lazy(tmp_1, AttoAlgorithm$Companion$_anonymous__z50osy);
|
|
56
56
|
}
|
|
57
57
|
from(code) {
|
|
58
|
-
var tmp0_elvis_lhs = this.
|
|
58
|
+
var tmp0_elvis_lhs = this.c2v_1.w2(new (UByte())(code));
|
|
59
59
|
var tmp;
|
|
60
60
|
if (tmp0_elvis_lhs == null) {
|
|
61
61
|
throw IllegalArgumentException().u('Unsupported algorithm ' + new (UByte())(code) + ' code');
|
|
@@ -64,11 +64,11 @@ function Companion() {
|
|
|
64
64
|
}
|
|
65
65
|
return tmp;
|
|
66
66
|
}
|
|
67
|
-
|
|
67
|
+
e2v() {
|
|
68
68
|
return _get_$cachedSerializer__te6jhj(this);
|
|
69
69
|
}
|
|
70
70
|
x15(typeParamsSerializers) {
|
|
71
|
-
return this.
|
|
71
|
+
return this.e2v();
|
|
72
72
|
}
|
|
73
73
|
}
|
|
74
74
|
initMetadataForCompanion($, VOID, [SerializerFactory()]);
|
|
@@ -119,16 +119,16 @@ function AttoAlgorithm() {
|
|
|
119
119
|
this.publicKeySize = publicKeySize;
|
|
120
120
|
this.hashSize = hashSize;
|
|
121
121
|
}
|
|
122
|
-
|
|
122
|
+
d2y() {
|
|
123
123
|
return this.code;
|
|
124
124
|
}
|
|
125
|
-
|
|
125
|
+
e2y() {
|
|
126
126
|
return this.privateKeySize;
|
|
127
127
|
}
|
|
128
|
-
|
|
128
|
+
f2y() {
|
|
129
129
|
return this.publicKeySize;
|
|
130
130
|
}
|
|
131
|
-
|
|
131
|
+
g2y() {
|
|
132
132
|
return this.hashSize;
|
|
133
133
|
}
|
|
134
134
|
get name() {
|
|
@@ -78,13 +78,13 @@ function AttoUnit() {
|
|
|
78
78
|
constructor(name, ordinal, prefix, scale) {
|
|
79
79
|
super(name, ordinal);
|
|
80
80
|
this.prefix = prefix;
|
|
81
|
-
this.
|
|
81
|
+
this.j2y_1 = scale;
|
|
82
82
|
}
|
|
83
|
-
|
|
83
|
+
k2y() {
|
|
84
84
|
return this.prefix;
|
|
85
85
|
}
|
|
86
|
-
|
|
87
|
-
return this.
|
|
86
|
+
l2y() {
|
|
87
|
+
return this.j2y_1;
|
|
88
88
|
}
|
|
89
89
|
get name() {
|
|
90
90
|
return this.i3();
|
|
@@ -125,21 +125,21 @@ function Companion() {
|
|
|
125
125
|
class $ {
|
|
126
126
|
constructor() {
|
|
127
127
|
Companion_instance = this;
|
|
128
|
-
this.
|
|
129
|
-
this.MAX = new (AttoAmount())(this.
|
|
130
|
-
this.
|
|
131
|
-
this.MIN = new (AttoAmount())(this.
|
|
128
|
+
this.m2y_1 = _ULong___init__impl__c78o9k(new (Long())(-989331456, -104015711));
|
|
129
|
+
this.MAX = new (AttoAmount())(this.m2y_1);
|
|
130
|
+
this.n2y_1 = _ULong___init__impl__c78o9k(new (Long())(0, 0));
|
|
131
|
+
this.MIN = new (AttoAmount())(this.n2y_1);
|
|
132
132
|
}
|
|
133
|
-
|
|
133
|
+
o2y() {
|
|
134
134
|
return this.MAX;
|
|
135
135
|
}
|
|
136
|
-
|
|
136
|
+
p2y() {
|
|
137
137
|
return this.MIN;
|
|
138
138
|
}
|
|
139
139
|
from(unit, string) {
|
|
140
140
|
var parts = split(string, charArrayOf([_Char___init__impl__6a9atx(46)]));
|
|
141
141
|
var wholePart = toULong(parts.j1(0));
|
|
142
|
-
var factor = scaleFactor(this, unit.
|
|
142
|
+
var factor = scaleFactor(this, unit.j2y_1);
|
|
143
143
|
// Inline function 'kotlin.ULong.times' call
|
|
144
144
|
var scaledValue = _ULong___init__impl__c78o9k(_ULong___get_data__impl__fggpzb(wholePart).r3(_ULong___get_data__impl__fggpzb(factor)));
|
|
145
145
|
if (parts.i1() > 1) {
|
|
@@ -158,7 +158,7 @@ function Companion() {
|
|
|
158
158
|
}
|
|
159
159
|
return new (AttoAmount())(scaledValue);
|
|
160
160
|
}
|
|
161
|
-
|
|
161
|
+
e2v() {
|
|
162
162
|
return AttoAmountSerializer_getInstance();
|
|
163
163
|
}
|
|
164
164
|
}
|
|
@@ -182,16 +182,16 @@ function AttoAmount() {
|
|
|
182
182
|
this.raw = raw;
|
|
183
183
|
var tmp0 = this.raw;
|
|
184
184
|
// Inline function 'kotlin.ULong.compareTo' call
|
|
185
|
-
var other = Companion_getInstance_0().
|
|
185
|
+
var other = Companion_getInstance_0().m2y_1;
|
|
186
186
|
if (ulongCompare(_ULong___get_data__impl__fggpzb(tmp0), _ULong___get_data__impl__fggpzb(other)) > 0) {
|
|
187
|
-
throw IllegalStateException().o4('' + new (ULong())(this.raw) + ' exceeds the max amount of ' + new (ULong())(Companion_getInstance_0().
|
|
187
|
+
throw IllegalStateException().o4('' + new (ULong())(this.raw) + ' exceeds the max amount of ' + new (ULong())(Companion_getInstance_0().m2y_1));
|
|
188
188
|
}
|
|
189
189
|
}
|
|
190
|
-
|
|
190
|
+
q2y() {
|
|
191
191
|
return this.raw;
|
|
192
192
|
}
|
|
193
193
|
toFormattedString(unit) {
|
|
194
|
-
var factor = scaleFactor(Companion_getInstance_0(), unit.
|
|
194
|
+
var factor = scaleFactor(Companion_getInstance_0(), unit.j2y_1);
|
|
195
195
|
// Inline function 'kotlin.ULong.div' call
|
|
196
196
|
var this_0 = this.raw;
|
|
197
197
|
var wholePart = ulongDivide(this_0, factor);
|
|
@@ -204,7 +204,7 @@ function AttoAmount() {
|
|
|
204
204
|
} else {
|
|
205
205
|
var tmp_0 = ULong__toString_impl_f9au7k(fractionalPart);
|
|
206
206
|
// Inline function 'kotlin.UByte.toInt' call
|
|
207
|
-
var this_2 = unit.
|
|
207
|
+
var this_2 = unit.j2y_1;
|
|
208
208
|
var tmp$ret$2 = _UByte___get_data__impl__jof9qr(this_2) & 255;
|
|
209
209
|
var fractionalStr = trimEnd(padStart(tmp_0, tmp$ret$2, _Char___init__impl__6a9atx(48)), charArrayOf([_Char___init__impl__6a9atx(48)]));
|
|
210
210
|
tmp = '' + new (ULong())(wholePart) + '.' + fractionalStr;
|
|
@@ -243,27 +243,27 @@ function AttoAmount() {
|
|
|
243
243
|
}
|
|
244
244
|
return new (AttoAmount())(total);
|
|
245
245
|
}
|
|
246
|
-
|
|
246
|
+
r2y(other) {
|
|
247
247
|
var tmp0 = this.raw;
|
|
248
248
|
// Inline function 'kotlin.ULong.compareTo' call
|
|
249
249
|
var other_0 = other.raw;
|
|
250
250
|
return ulongCompare(_ULong___get_data__impl__fggpzb(tmp0), _ULong___get_data__impl__fggpzb(other_0));
|
|
251
251
|
}
|
|
252
252
|
d(other) {
|
|
253
|
-
return this.
|
|
253
|
+
return this.r2y(other instanceof AttoAmount() ? other : THROW_CCE());
|
|
254
254
|
}
|
|
255
255
|
toString() {
|
|
256
256
|
return '' + new (ULong())(this.raw);
|
|
257
257
|
}
|
|
258
|
-
|
|
258
|
+
s2y() {
|
|
259
259
|
return this.raw;
|
|
260
260
|
}
|
|
261
|
-
|
|
261
|
+
t2y(raw) {
|
|
262
262
|
return new (AttoAmount())(raw);
|
|
263
263
|
}
|
|
264
264
|
copy(raw, $super) {
|
|
265
265
|
raw = raw === VOID ? this.raw : raw;
|
|
266
|
-
return $super === VOID ? this.
|
|
266
|
+
return $super === VOID ? this.t2y(raw) : $super.t2y.call(this, new (ULong())(raw));
|
|
267
267
|
}
|
|
268
268
|
hashCode() {
|
|
269
269
|
return ULong__hashCode_impl_6hv2lb(this.raw);
|
|
@@ -290,16 +290,16 @@ function AttoAmountSerializer() {
|
|
|
290
290
|
class $ {
|
|
291
291
|
constructor() {
|
|
292
292
|
AttoAmountSerializer_instance = this;
|
|
293
|
-
this.
|
|
293
|
+
this.u2y_1 = serializer(Companion_getInstance()).xs();
|
|
294
294
|
}
|
|
295
295
|
xs() {
|
|
296
|
-
return this.
|
|
296
|
+
return this.u2y_1;
|
|
297
297
|
}
|
|
298
|
-
|
|
298
|
+
v2y(encoder, value) {
|
|
299
299
|
serializer(Companion_getInstance()).ys(encoder, new (ULong())(value.raw));
|
|
300
300
|
}
|
|
301
301
|
ys(encoder, value) {
|
|
302
|
-
return this.
|
|
302
|
+
return this.v2y(encoder, value instanceof AttoAmount() ? value : THROW_CCE());
|
|
303
303
|
}
|
|
304
304
|
zs(decoder) {
|
|
305
305
|
return new (AttoAmount())(serializer(Companion_getInstance()).zs(decoder).fs_1);
|