@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
package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/format/DateTimeComponents.mjs
CHANGED
|
@@ -57,8 +57,8 @@ import {
|
|
|
57
57
|
offsetMinutesOfHour$defaultx23z50nh5v5p as offsetMinutesOfHour$default,
|
|
58
58
|
offsetSecondsOfMinute$defaultxai9ucsyqlc7 as offsetSecondsOfMinute$default,
|
|
59
59
|
AbstractDateTimeFormatBuilder2kkelk07l4wb as AbstractDateTimeFormatBuilder,
|
|
60
|
-
WithDate2bqihss8t5xfv as WithDate,
|
|
61
60
|
WithTime2lgb7k6hqa1zi as WithTime,
|
|
61
|
+
WithDate2bqihss8t5xfv as WithDate,
|
|
62
62
|
WithUtcOffset30ws1ntcash0j as WithUtcOffset,
|
|
63
63
|
} from './DateTimeFormatBuilder.mjs';
|
|
64
64
|
import { _Char___init__impl__6a9atx2js6krycynjoo as _Char___init__impl__6a9atx } from '../../../../kotlin-kotlin-stdlib/kotlin/Char.mjs';
|
|
@@ -755,7 +755,7 @@ function Builder() {
|
|
|
755
755
|
protoOf($).a1l = offsetSecondsOfMinute;
|
|
756
756
|
protoOf($).b1l = offsetSecondsOfMinute$default;
|
|
757
757
|
protoOf($).n1i = offset;
|
|
758
|
-
initMetadataForClass($, 'Builder', VOID, VOID, [AbstractDateTimeFormatBuilder(), AbstractWithDateTimeBuilder(), AbstractWithOffsetBuilder(),
|
|
758
|
+
initMetadataForClass($, 'Builder', VOID, VOID, [AbstractDateTimeFormatBuilder(), AbstractWithDateTimeBuilder(), AbstractWithOffsetBuilder(), WithTime(), WithDate(), WithUtcOffset()]);
|
|
759
759
|
BuilderClass = $;
|
|
760
760
|
}
|
|
761
761
|
return BuilderClass;
|
package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/format/LocalDateTimeFormat.mjs
CHANGED
|
@@ -19,8 +19,8 @@ import {
|
|
|
19
19
|
minute$defaultoouhhkuji8pa as minute$default,
|
|
20
20
|
second$default25cj8g9tgx4nm as second$default,
|
|
21
21
|
AbstractDateTimeFormatBuilder2kkelk07l4wb as AbstractDateTimeFormatBuilder,
|
|
22
|
-
WithDate2bqihss8t5xfv as WithDate,
|
|
23
22
|
WithTime2lgb7k6hqa1zi as WithTime,
|
|
23
|
+
WithDate2bqihss8t5xfv as WithDate,
|
|
24
24
|
alternativeParsing1gmwubnsvpp9b as alternativeParsing,
|
|
25
25
|
char1r4ssccmdfesy as char,
|
|
26
26
|
} from './DateTimeFormatBuilder.mjs';
|
|
@@ -261,7 +261,7 @@ var AbstractWithDateTimeBuilderClass;
|
|
|
261
261
|
function AbstractWithDateTimeBuilder() {
|
|
262
262
|
if (AbstractWithDateTimeBuilderClass === VOID) {
|
|
263
263
|
class $ {}
|
|
264
|
-
initMetadataForInterface($, 'AbstractWithDateTimeBuilder', VOID, VOID, [AbstractWithDateBuilder(), AbstractWithTimeBuilder(),
|
|
264
|
+
initMetadataForInterface($, 'AbstractWithDateTimeBuilder', VOID, VOID, [AbstractWithDateBuilder(), AbstractWithTimeBuilder(), WithTime(), WithDate()]);
|
|
265
265
|
AbstractWithDateTimeBuilderClass = $;
|
|
266
266
|
}
|
|
267
267
|
return AbstractWithDateTimeBuilderClass;
|
|
@@ -22,10 +22,10 @@ function AccountUpdate() {
|
|
|
22
22
|
this.account = account;
|
|
23
23
|
this.block = block;
|
|
24
24
|
}
|
|
25
|
-
|
|
25
|
+
p35() {
|
|
26
26
|
return this.account;
|
|
27
27
|
}
|
|
28
|
-
|
|
28
|
+
t34() {
|
|
29
29
|
return this.block;
|
|
30
30
|
}
|
|
31
31
|
gl() {
|
|
@@ -34,13 +34,13 @@ function AccountUpdate() {
|
|
|
34
34
|
hl() {
|
|
35
35
|
return this.block;
|
|
36
36
|
}
|
|
37
|
-
|
|
37
|
+
q35(account, block) {
|
|
38
38
|
return new (AccountUpdate())(account, block);
|
|
39
39
|
}
|
|
40
40
|
copy(account, block, $super) {
|
|
41
41
|
account = account === VOID ? this.account : account;
|
|
42
42
|
block = block === VOID ? this.block : block;
|
|
43
|
-
return $super === VOID ? this.
|
|
43
|
+
return $super === VOID ? this.q35(account, block) : $super.q35.call(this, account, block);
|
|
44
44
|
}
|
|
45
45
|
toString() {
|
|
46
46
|
return 'AccountUpdate(account=' + this.account.toString() + ', block=' + toString(this.block) + ')';
|
|
@@ -78,22 +78,22 @@ function toAccountUpdate(_this__u8e3s4) {
|
|
|
78
78
|
}
|
|
79
79
|
function attoAccountOpen(network, representativeAddress, receivable, timestamp) {
|
|
80
80
|
timestamp = timestamp === VOID ? null : timestamp;
|
|
81
|
-
var update = Companion_getInstance_0().
|
|
81
|
+
var update = Companion_getInstance_0().g2v(representativeAddress.algorithm, representativeAddress.publicKey, receivable, network, toInstant(timestamp));
|
|
82
82
|
return toAccountUpdate(update);
|
|
83
83
|
}
|
|
84
84
|
function attoAccountSend(account, receiverAddress, amount, timestamp) {
|
|
85
85
|
timestamp = timestamp === VOID ? null : timestamp;
|
|
86
|
-
var update = account.
|
|
86
|
+
var update = account.q2w(receiverAddress.algorithm, receiverAddress.publicKey, amount, toInstant(timestamp));
|
|
87
87
|
return toAccountUpdate(update);
|
|
88
88
|
}
|
|
89
89
|
function attoAccountReceive(account, receivable, timestamp) {
|
|
90
90
|
timestamp = timestamp === VOID ? null : timestamp;
|
|
91
|
-
var update = account.
|
|
91
|
+
var update = account.r2w(receivable, toInstant(timestamp));
|
|
92
92
|
return toAccountUpdate(update);
|
|
93
93
|
}
|
|
94
94
|
function attoAccountChange(account, representativeAddress, timestamp) {
|
|
95
95
|
timestamp = timestamp === VOID ? null : timestamp;
|
|
96
|
-
var update = account.
|
|
96
|
+
var update = account.s2w(representativeAddress.algorithm, representativeAddress.publicKey, toInstant(timestamp));
|
|
97
97
|
return toAccountUpdate(update);
|
|
98
98
|
}
|
|
99
99
|
//region block: exports
|
|
@@ -61,10 +61,10 @@ function AttoAccount$Companion$$childSerializers$_anonymous__l1b023() {
|
|
|
61
61
|
return createSimpleEnumSerializer('cash.atto.commons.AttoNetwork', values());
|
|
62
62
|
}
|
|
63
63
|
function AttoAccount$Companion$$childSerializers$_anonymous__l1b023_0() {
|
|
64
|
-
return Companion_getInstance().
|
|
64
|
+
return Companion_getInstance().e2v();
|
|
65
65
|
}
|
|
66
66
|
function AttoAccount$Companion$$childSerializers$_anonymous__l1b023_1() {
|
|
67
|
-
return Companion_getInstance().
|
|
67
|
+
return Companion_getInstance().e2v();
|
|
68
68
|
}
|
|
69
69
|
var CompanionClass;
|
|
70
70
|
function Companion() {
|
|
@@ -81,18 +81,18 @@ function Companion() {
|
|
|
81
81
|
// Inline function 'kotlin.arrayOf' call
|
|
82
82
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
83
83
|
// Inline function 'kotlin.js.asDynamic' call
|
|
84
|
-
tmp.
|
|
84
|
+
tmp.f2v_1 = [null, tmp_1, null, tmp_3, null, null, null, null, lazy(tmp_4, AttoAccount$Companion$$childSerializers$_anonymous__l1b023_1), null];
|
|
85
85
|
}
|
|
86
|
-
|
|
86
|
+
g2v(representativeAlgorithm, representativePublicKey, receivable, network, timestamp) {
|
|
87
87
|
var block = new (AttoOpenBlock())(network, receivable.version, receivable.receiverAlgorithm, receivable.receiverPublicKey, receivable.amount, timestamp, receivable.algorithm, receivable.hash, representativeAlgorithm, representativePublicKey);
|
|
88
|
-
var account = new (AttoAccount())(receivable.receiverPublicKey, network, receivable.version, receivable.receiverAlgorithm, block.
|
|
88
|
+
var account = new (AttoAccount())(receivable.receiverPublicKey, network, receivable.version, receivable.receiverAlgorithm, block.v2v_1, receivable.amount, block.hash, timestamp, representativeAlgorithm, representativePublicKey);
|
|
89
89
|
return new (Pair())(block, account);
|
|
90
90
|
}
|
|
91
91
|
open$default(representativeAlgorithm, representativePublicKey, receivable, network, timestamp, $super) {
|
|
92
92
|
timestamp = timestamp === VOID ? System_instance.i1e() : timestamp;
|
|
93
|
-
return $super === VOID ? this.
|
|
93
|
+
return $super === VOID ? this.g2v(representativeAlgorithm, representativePublicKey, receivable, network, timestamp) : $super.g2v.call(this, representativeAlgorithm, representativePublicKey, receivable, network, timestamp);
|
|
94
94
|
}
|
|
95
|
-
|
|
95
|
+
e2v() {
|
|
96
96
|
return $serializer_getInstance();
|
|
97
97
|
}
|
|
98
98
|
}
|
|
@@ -124,17 +124,17 @@ function $serializer() {
|
|
|
124
124
|
tmp0_serialDesc.w14('lastTransactionTimestamp', false);
|
|
125
125
|
tmp0_serialDesc.w14('representativeAlgorithm', false);
|
|
126
126
|
tmp0_serialDesc.w14('representativePublicKey', false);
|
|
127
|
-
this.
|
|
127
|
+
this.y2v_1 = tmp0_serialDesc;
|
|
128
128
|
}
|
|
129
|
-
|
|
130
|
-
var tmp0_desc = this.
|
|
129
|
+
z2v(encoder, value) {
|
|
130
|
+
var tmp0_desc = this.y2v_1;
|
|
131
131
|
var tmp1_output = encoder.kx(tmp0_desc);
|
|
132
|
-
var tmp2_cached = Companion_getInstance_0().
|
|
132
|
+
var tmp2_cached = Companion_getInstance_0().f2v_1;
|
|
133
133
|
tmp1_output.bz(tmp0_desc, 0, AttoPublicKeySerializer_getInstance(), value.publicKey);
|
|
134
134
|
tmp1_output.bz(tmp0_desc, 1, tmp2_cached[1].s1(), value.network);
|
|
135
135
|
tmp1_output.bz(tmp0_desc, 2, AttoVersionSerializer_getInstance(), value.version);
|
|
136
136
|
tmp1_output.bz(tmp0_desc, 3, tmp2_cached[3].s1(), value.algorithm);
|
|
137
|
-
tmp1_output.bz(tmp0_desc, 4, AttoHeightSerializer_getInstance(), value.
|
|
137
|
+
tmp1_output.bz(tmp0_desc, 4, AttoHeightSerializer_getInstance(), value.a2w_1);
|
|
138
138
|
tmp1_output.bz(tmp0_desc, 5, AttoAmountSerializer_getInstance(), value.balance);
|
|
139
139
|
tmp1_output.bz(tmp0_desc, 6, AttoHashSerializer_getInstance(), value.lastTransactionHash);
|
|
140
140
|
tmp1_output.bz(tmp0_desc, 7, InstantMillisSerializer_getInstance(), value.lastTransactionTimestamp);
|
|
@@ -143,10 +143,10 @@ function $serializer() {
|
|
|
143
143
|
tmp1_output.lx(tmp0_desc);
|
|
144
144
|
}
|
|
145
145
|
ys(encoder, value) {
|
|
146
|
-
return this.
|
|
146
|
+
return this.z2v(encoder, value instanceof AttoAccount() ? value : THROW_CCE());
|
|
147
147
|
}
|
|
148
148
|
zs(decoder) {
|
|
149
|
-
var tmp0_desc = this.
|
|
149
|
+
var tmp0_desc = this.y2v_1;
|
|
150
150
|
var tmp1_flag = true;
|
|
151
151
|
var tmp2_index = 0;
|
|
152
152
|
var tmp3_bitMask0 = 0;
|
|
@@ -161,7 +161,7 @@ function $serializer() {
|
|
|
161
161
|
var tmp12_local8 = null;
|
|
162
162
|
var tmp13_local9 = null;
|
|
163
163
|
var tmp16_input = decoder.kx(tmp0_desc);
|
|
164
|
-
var tmp17_cached = Companion_getInstance_0().
|
|
164
|
+
var tmp17_cached = Companion_getInstance_0().f2v_1;
|
|
165
165
|
if (tmp16_input.zx()) {
|
|
166
166
|
tmp4_local0 = tmp16_input.wx(tmp0_desc, 0, AttoPublicKeySerializer_getInstance(), tmp4_local0);
|
|
167
167
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
@@ -235,13 +235,13 @@ function $serializer() {
|
|
|
235
235
|
}
|
|
236
236
|
}
|
|
237
237
|
tmp16_input.lx(tmp0_desc);
|
|
238
|
-
return AttoAccount().
|
|
238
|
+
return AttoAccount().d2w(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, tmp12_local8, tmp13_local9, null);
|
|
239
239
|
}
|
|
240
240
|
xs() {
|
|
241
|
-
return this.
|
|
241
|
+
return this.y2v_1;
|
|
242
242
|
}
|
|
243
243
|
l15() {
|
|
244
|
-
var tmp0_cached = Companion_getInstance_0().
|
|
244
|
+
var tmp0_cached = Companion_getInstance_0().f2v_1;
|
|
245
245
|
// Inline function 'kotlin.arrayOf' call
|
|
246
246
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
247
247
|
// Inline function 'kotlin.js.asDynamic' call
|
|
@@ -300,83 +300,83 @@ function AttoAccount() {
|
|
|
300
300
|
this.network = network;
|
|
301
301
|
this.version = version;
|
|
302
302
|
this.algorithm = algorithm;
|
|
303
|
-
this.
|
|
303
|
+
this.a2w_1 = height;
|
|
304
304
|
this.balance = balance;
|
|
305
305
|
this.lastTransactionHash = lastTransactionHash;
|
|
306
306
|
this.lastTransactionTimestamp = lastTransactionTimestamp;
|
|
307
307
|
this.representativeAlgorithm = representativeAlgorithm;
|
|
308
308
|
this.representativePublicKey = representativePublicKey;
|
|
309
309
|
var tmp = this;
|
|
310
|
-
tmp.
|
|
310
|
+
tmp.b2w_1 = lazy_0(AttoAccount$address$delegate$lambda(this));
|
|
311
311
|
var tmp_0 = this;
|
|
312
|
-
tmp_0.
|
|
312
|
+
tmp_0.c2w_1 = lazy_0(AttoAccount$representativeAddress$delegate$lambda(this));
|
|
313
313
|
}
|
|
314
|
-
|
|
314
|
+
e2w() {
|
|
315
315
|
return this.publicKey;
|
|
316
316
|
}
|
|
317
|
-
|
|
317
|
+
f2w() {
|
|
318
318
|
return this.network;
|
|
319
319
|
}
|
|
320
|
-
|
|
320
|
+
g2w() {
|
|
321
321
|
return this.version;
|
|
322
322
|
}
|
|
323
|
-
|
|
323
|
+
h2w() {
|
|
324
324
|
return this.algorithm;
|
|
325
325
|
}
|
|
326
|
-
|
|
327
|
-
return this.
|
|
326
|
+
i2w() {
|
|
327
|
+
return this.a2w_1;
|
|
328
328
|
}
|
|
329
|
-
|
|
329
|
+
j2w() {
|
|
330
330
|
return this.balance;
|
|
331
331
|
}
|
|
332
|
-
|
|
332
|
+
k2w() {
|
|
333
333
|
return this.lastTransactionHash;
|
|
334
334
|
}
|
|
335
|
-
|
|
335
|
+
l2w() {
|
|
336
336
|
return this.lastTransactionTimestamp;
|
|
337
337
|
}
|
|
338
|
-
|
|
338
|
+
m2w() {
|
|
339
339
|
return this.representativeAlgorithm;
|
|
340
340
|
}
|
|
341
|
-
|
|
341
|
+
n2w() {
|
|
342
342
|
return this.representativePublicKey;
|
|
343
343
|
}
|
|
344
|
-
|
|
345
|
-
var tmp0 = this.
|
|
344
|
+
o2w() {
|
|
345
|
+
var tmp0 = this.b2w_1;
|
|
346
346
|
var tmp = KProperty1();
|
|
347
347
|
// Inline function 'kotlin.getValue' call
|
|
348
348
|
getPropertyCallableRef('address', 1, tmp, AttoAccount$_get_address_$ref_18f195(), null);
|
|
349
349
|
return tmp0.s1();
|
|
350
350
|
}
|
|
351
|
-
|
|
352
|
-
var tmp0 = this.
|
|
351
|
+
p2w() {
|
|
352
|
+
var tmp0 = this.c2w_1;
|
|
353
353
|
var tmp = KProperty1();
|
|
354
354
|
// Inline function 'kotlin.getValue' call
|
|
355
355
|
getPropertyCallableRef('representativeAddress', 1, tmp, AttoAccount$_get_representativeAddress_$ref_s5qqn0(), null);
|
|
356
356
|
return tmp0.s1();
|
|
357
357
|
}
|
|
358
|
-
|
|
358
|
+
q2w(receiverAlgorithm, receiverPublicKey, amount, timestamp) {
|
|
359
359
|
if (receiverPublicKey.equals(this.publicKey)) {
|
|
360
360
|
throw IllegalArgumentException().u("You can't send money to yourself");
|
|
361
361
|
}
|
|
362
362
|
var newBalance = this.balance.minus(amount);
|
|
363
|
-
var newHeight = this.
|
|
363
|
+
var newHeight = this.a2w_1.plus(toAttoHeight(_UInt___init__impl__l7qpdl(1)));
|
|
364
364
|
var block = new (AttoSendBlock())(this.network, this.version, this.algorithm, this.publicKey, newHeight, newBalance, timestamp, this.lastTransactionHash, receiverAlgorithm, receiverPublicKey, amount);
|
|
365
365
|
var updatedAccount = this.copy(VOID, VOID, VOID, VOID, newHeight, newBalance, block.hash, timestamp);
|
|
366
366
|
return new (Pair())(block, updatedAccount);
|
|
367
367
|
}
|
|
368
368
|
send$default(receiverAlgorithm, receiverPublicKey, amount, timestamp, $super) {
|
|
369
369
|
timestamp = timestamp === VOID ? System_instance.i1e() : timestamp;
|
|
370
|
-
return $super === VOID ? this.
|
|
370
|
+
return $super === VOID ? this.q2w(receiverAlgorithm, receiverPublicKey, amount, timestamp) : $super.q2w.call(this, receiverAlgorithm, receiverPublicKey, amount, timestamp);
|
|
371
371
|
}
|
|
372
|
-
|
|
372
|
+
r2w(receivable, timestamp) {
|
|
373
373
|
// Inline function 'kotlin.require' call
|
|
374
374
|
if (!(timestamp.r1w(receivable.timestamp) > 0)) {
|
|
375
375
|
var message = "Timestamp can't be before receivable timestamp";
|
|
376
376
|
throw IllegalArgumentException().u(toString(message));
|
|
377
377
|
}
|
|
378
378
|
var newBalance = this.balance.plus(receivable.amount);
|
|
379
|
-
var newHeight = this.
|
|
379
|
+
var newHeight = this.a2w_1.plus(toAttoHeight(_UInt___init__impl__l7qpdl(1)));
|
|
380
380
|
var newVersion = max(this.version, receivable.version);
|
|
381
381
|
var block = new (AttoReceiveBlock())(this.network, newVersion, this.algorithm, this.publicKey, newHeight, newBalance, timestamp, this.lastTransactionHash, receivable.algorithm, receivable.hash);
|
|
382
382
|
var updatedAccount = this.copy(VOID, VOID, newVersion, VOID, newHeight, newBalance, block.hash, timestamp);
|
|
@@ -384,17 +384,17 @@ function AttoAccount() {
|
|
|
384
384
|
}
|
|
385
385
|
receive$default(receivable, timestamp, $super) {
|
|
386
386
|
timestamp = timestamp === VOID ? System_instance.i1e() : timestamp;
|
|
387
|
-
return $super === VOID ? this.
|
|
387
|
+
return $super === VOID ? this.r2w(receivable, timestamp) : $super.r2w.call(this, receivable, timestamp);
|
|
388
388
|
}
|
|
389
|
-
|
|
390
|
-
var newHeight = this.
|
|
389
|
+
s2w(representativeAlgorithm, representativePublicKey, timestamp) {
|
|
390
|
+
var newHeight = this.a2w_1.plus(toAttoHeight(_UInt___init__impl__l7qpdl(1)));
|
|
391
391
|
var block = new (AttoChangeBlock())(this.network, this.version, this.algorithm, this.publicKey, newHeight, this.balance, timestamp, this.lastTransactionHash, representativeAlgorithm, representativePublicKey);
|
|
392
392
|
var updatedAccount = this.copy(VOID, VOID, VOID, VOID, newHeight, VOID, block.hash, timestamp, representativeAlgorithm, representativePublicKey);
|
|
393
393
|
return new (Pair())(block, updatedAccount);
|
|
394
394
|
}
|
|
395
395
|
change$default(representativeAlgorithm, representativePublicKey, timestamp, $super) {
|
|
396
396
|
timestamp = timestamp === VOID ? System_instance.i1e() : timestamp;
|
|
397
|
-
return $super === VOID ? this.
|
|
397
|
+
return $super === VOID ? this.s2w(representativeAlgorithm, representativePublicKey, timestamp) : $super.s2w.call(this, representativeAlgorithm, representativePublicKey, timestamp);
|
|
398
398
|
}
|
|
399
399
|
gl() {
|
|
400
400
|
return this.publicKey;
|
|
@@ -402,31 +402,31 @@ function AttoAccount() {
|
|
|
402
402
|
hl() {
|
|
403
403
|
return this.network;
|
|
404
404
|
}
|
|
405
|
-
|
|
405
|
+
t2w() {
|
|
406
406
|
return this.version;
|
|
407
407
|
}
|
|
408
|
-
|
|
408
|
+
u2w() {
|
|
409
409
|
return this.algorithm;
|
|
410
410
|
}
|
|
411
|
-
|
|
412
|
-
return this.
|
|
411
|
+
v2w() {
|
|
412
|
+
return this.a2w_1;
|
|
413
413
|
}
|
|
414
|
-
|
|
414
|
+
w2w() {
|
|
415
415
|
return this.balance;
|
|
416
416
|
}
|
|
417
|
-
|
|
417
|
+
x2w() {
|
|
418
418
|
return this.lastTransactionHash;
|
|
419
419
|
}
|
|
420
|
-
|
|
420
|
+
y2w() {
|
|
421
421
|
return this.lastTransactionTimestamp;
|
|
422
422
|
}
|
|
423
|
-
|
|
423
|
+
z2w() {
|
|
424
424
|
return this.representativeAlgorithm;
|
|
425
425
|
}
|
|
426
|
-
|
|
426
|
+
a2x() {
|
|
427
427
|
return this.representativePublicKey;
|
|
428
428
|
}
|
|
429
|
-
|
|
429
|
+
b2x(publicKey, network, version, algorithm, height, balance, lastTransactionHash, lastTransactionTimestamp, representativeAlgorithm, representativePublicKey) {
|
|
430
430
|
return new (AttoAccount())(publicKey, network, version, algorithm, height, balance, lastTransactionHash, lastTransactionTimestamp, representativeAlgorithm, representativePublicKey);
|
|
431
431
|
}
|
|
432
432
|
copy(publicKey, network, version, algorithm, height, balance, lastTransactionHash, lastTransactionTimestamp, representativeAlgorithm, representativePublicKey, $super) {
|
|
@@ -434,23 +434,23 @@ function AttoAccount() {
|
|
|
434
434
|
network = network === VOID ? this.network : network;
|
|
435
435
|
version = version === VOID ? this.version : version;
|
|
436
436
|
algorithm = algorithm === VOID ? this.algorithm : algorithm;
|
|
437
|
-
height = height === VOID ? this.
|
|
437
|
+
height = height === VOID ? this.a2w_1 : height;
|
|
438
438
|
balance = balance === VOID ? this.balance : balance;
|
|
439
439
|
lastTransactionHash = lastTransactionHash === VOID ? this.lastTransactionHash : lastTransactionHash;
|
|
440
440
|
lastTransactionTimestamp = lastTransactionTimestamp === VOID ? this.lastTransactionTimestamp : lastTransactionTimestamp;
|
|
441
441
|
representativeAlgorithm = representativeAlgorithm === VOID ? this.representativeAlgorithm : representativeAlgorithm;
|
|
442
442
|
representativePublicKey = representativePublicKey === VOID ? this.representativePublicKey : representativePublicKey;
|
|
443
|
-
return $super === VOID ? this.
|
|
443
|
+
return $super === VOID ? this.b2x(publicKey, network, version, algorithm, height, balance, lastTransactionHash, lastTransactionTimestamp, representativeAlgorithm, representativePublicKey) : $super.b2x.call(this, publicKey, network, version, algorithm, height, balance, lastTransactionHash, lastTransactionTimestamp, representativeAlgorithm, representativePublicKey);
|
|
444
444
|
}
|
|
445
445
|
toString() {
|
|
446
|
-
return 'AttoAccount(publicKey=' + this.publicKey.toString() + ', network=' + this.network.toString() + ', version=' + this.version.toString() + ', algorithm=' + this.algorithm.toString() + ', height=' + this.
|
|
446
|
+
return 'AttoAccount(publicKey=' + this.publicKey.toString() + ', network=' + this.network.toString() + ', version=' + this.version.toString() + ', algorithm=' + this.algorithm.toString() + ', height=' + this.a2w_1.toString() + ', balance=' + this.balance.toString() + ', lastTransactionHash=' + this.lastTransactionHash.toString() + ', lastTransactionTimestamp=' + this.lastTransactionTimestamp.toString() + ', representativeAlgorithm=' + this.representativeAlgorithm.toString() + ', representativePublicKey=' + this.representativePublicKey.toString() + ')';
|
|
447
447
|
}
|
|
448
448
|
hashCode() {
|
|
449
449
|
var result = this.publicKey.hashCode();
|
|
450
450
|
result = imul(result, 31) + this.network.hashCode() | 0;
|
|
451
451
|
result = imul(result, 31) + this.version.hashCode() | 0;
|
|
452
452
|
result = imul(result, 31) + this.algorithm.hashCode() | 0;
|
|
453
|
-
result = imul(result, 31) + this.
|
|
453
|
+
result = imul(result, 31) + this.a2w_1.hashCode() | 0;
|
|
454
454
|
result = imul(result, 31) + this.balance.hashCode() | 0;
|
|
455
455
|
result = imul(result, 31) + this.lastTransactionHash.hashCode() | 0;
|
|
456
456
|
result = imul(result, 31) + this.lastTransactionTimestamp.hashCode() | 0;
|
|
@@ -472,7 +472,7 @@ function AttoAccount() {
|
|
|
472
472
|
return false;
|
|
473
473
|
if (!this.algorithm.equals(tmp0_other_with_cast.algorithm))
|
|
474
474
|
return false;
|
|
475
|
-
if (!this.
|
|
475
|
+
if (!this.a2w_1.equals(tmp0_other_with_cast.a2w_1))
|
|
476
476
|
return false;
|
|
477
477
|
if (!this.balance.equals(tmp0_other_with_cast.balance))
|
|
478
478
|
return false;
|
|
@@ -486,36 +486,36 @@ function AttoAccount() {
|
|
|
486
486
|
return false;
|
|
487
487
|
return true;
|
|
488
488
|
}
|
|
489
|
-
static
|
|
489
|
+
static d2w(seen0, publicKey, network, version, algorithm, height, balance, lastTransactionHash, lastTransactionTimestamp, representativeAlgorithm, representativePublicKey, serializationConstructorMarker) {
|
|
490
490
|
Companion_getInstance_0();
|
|
491
491
|
if (!(1023 === (1023 & seen0))) {
|
|
492
|
-
throwMissingFieldException(seen0, 1023, $serializer_getInstance().
|
|
492
|
+
throwMissingFieldException(seen0, 1023, $serializer_getInstance().y2v_1);
|
|
493
493
|
}
|
|
494
494
|
var $this = createThis(this);
|
|
495
495
|
$this.publicKey = publicKey;
|
|
496
496
|
$this.network = network;
|
|
497
497
|
$this.version = version;
|
|
498
498
|
$this.algorithm = algorithm;
|
|
499
|
-
$this.
|
|
499
|
+
$this.a2w_1 = height;
|
|
500
500
|
$this.balance = balance;
|
|
501
501
|
$this.lastTransactionHash = lastTransactionHash;
|
|
502
502
|
$this.lastTransactionTimestamp = lastTransactionTimestamp;
|
|
503
503
|
$this.representativeAlgorithm = representativeAlgorithm;
|
|
504
504
|
$this.representativePublicKey = representativePublicKey;
|
|
505
505
|
var tmp = $this;
|
|
506
|
-
tmp.
|
|
506
|
+
tmp.b2w_1 = lazy_0(AttoAccount$_init_$lambda_irkxp0($this));
|
|
507
507
|
var tmp_0 = $this;
|
|
508
|
-
tmp_0.
|
|
508
|
+
tmp_0.c2w_1 = lazy_0(AttoAccount$_init_$lambda_irkxp0_0($this));
|
|
509
509
|
return $this;
|
|
510
510
|
}
|
|
511
511
|
get height() {
|
|
512
|
-
return this.
|
|
512
|
+
return this.i2w();
|
|
513
513
|
}
|
|
514
514
|
get address() {
|
|
515
|
-
return this.
|
|
515
|
+
return this.o2w();
|
|
516
516
|
}
|
|
517
517
|
get representativeAddress() {
|
|
518
|
-
return this.
|
|
518
|
+
return this.p2w();
|
|
519
519
|
}
|
|
520
520
|
}
|
|
521
521
|
initMetadataForClass($, 'AttoAccount', VOID, VOID, [HeightSupport()], VOID, VOID, {0: $serializer_getInstance});
|