@attocash/commons-js 5.0.0 → 5.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/format/DateTimeComponents.mjs +2 -2
- package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/format/LocalDateTimeFormat.mjs +2 -2
- package/commons-commons-core/cash/atto/commons/AccountUpdate.js.mjs +8 -8
- package/commons-commons-core/cash/atto/commons/AttoAccount.mjs +68 -68
- package/commons-commons-core/cash/atto/commons/AttoAccountEntry.mjs +56 -56
- package/commons-commons-core/cash/atto/commons/AttoAddress.mjs +14 -14
- package/commons-commons-core/cash/atto/commons/AttoAlgorithm.mjs +10 -10
- package/commons-commons-core/cash/atto/commons/AttoAmount.mjs +26 -26
- package/commons-commons-core/cash/atto/commons/AttoBlock.mjs +661 -661
- package/commons-commons-core/cash/atto/commons/AttoBufferExtensions.mjs +4 -4
- package/commons-commons-core/cash/atto/commons/AttoChallenge.mjs +7 -7
- package/commons-commons-core/cash/atto/commons/AttoHash.mjs +8 -8
- package/commons-commons-core/cash/atto/commons/AttoHasher.js.mjs +1 -1
- package/commons-commons-core/cash/atto/commons/AttoHeight.mjs +17 -17
- package/commons-commons-core/cash/atto/commons/AttoNetwork.mjs +8 -8
- package/commons-commons-core/cash/atto/commons/AttoPrivateKey.js.mjs +8 -8
- package/commons-commons-core/cash/atto/commons/AttoPrivateKey.mjs +26 -26
- package/commons-commons-core/cash/atto/commons/AttoPublicKey.mjs +7 -7
- package/commons-commons-core/cash/atto/commons/AttoReceivable.mjs +42 -42
- package/commons-commons-core/cash/atto/commons/AttoSeed.mjs +2 -2
- package/commons-commons-core/cash/atto/commons/AttoSignature.mjs +8 -8
- package/commons-commons-core/cash/atto/commons/AttoSigner.js.mjs +67 -67
- package/commons-commons-core/cash/atto/commons/AttoSigner.mjs +11 -11
- package/commons-commons-core/cash/atto/commons/AttoSocketAddress.mjs +5 -5
- package/commons-commons-core/cash/atto/commons/AttoTransaction.mjs +35 -35
- package/commons-commons-core/cash/atto/commons/AttoVersion.mjs +11 -11
- package/commons-commons-core/cash/atto/commons/AttoVote.mjs +37 -37
- package/commons-commons-core/cash/atto/commons/AttoWork.mjs +10 -10
- package/commons-commons-core/cash/atto/commons/Extensions.mjs +1 -1
- package/commons-commons-core/cash/atto/commons/serialiazer/AttoAddressAsByteArraySerializer.mjs +4 -4
- package/commons-commons-core/cash/atto/commons/serialiazer/InstantMillisSerializer.mjs +2 -2
- package/commons-commons-core/cash/atto/commons/utils/Base32.mjs +9 -9
- package/commons-commons-core/cash/atto/commons/utils/SecureRandom.js.mjs +1 -1
- package/commons-commons-node/cash/atto/commons/node/AttoNodeOperations.js.export.d.ts +3 -1
- package/commons-commons-node/cash/atto/commons/node/AttoNodeOperations.js.mjs +19 -5
- package/commons-commons-node/cash/atto/commons/node/AttoNodeOperations.js.mjs.map +1 -1
- package/commons-commons-node/cash/atto/commons/node/AttoNodeOperations.mjs +72 -72
- package/commons-commons-node/cash/atto/commons/node/AttoNodeOperations.mjs.map +1 -1
- package/commons-commons-node-remote/cash/atto/commons/node/AttoNodeClient.mjs +812 -319
- package/commons-commons-node-remote/cash/atto/commons/node/AttoNodeClient.mjs.map +1 -1
- package/commons-commons-node-remote/cash/atto/commons/node/AttoNodeOperationsImpl.js.mjs +226 -76
- package/commons-commons-node-remote/cash/atto/commons/node/AttoNodeOperationsImpl.js.mjs.map +1 -1
- package/commons-commons-worker/cash/atto/commons/worker/AttoWorker.mjs +3 -3
- package/commons-commons-worker/cash/atto/commons/worker/AttoWorkerOperations.mjs +50 -50
- package/commons-commons-worker-remote/cash/atto/commons/worker/AttoWorkerRemote.js.mjs +34 -34
- package/commons-commons-worker-remote/cash/atto/commons/worker/AttoWorkerRemote.mjs +56 -56
- package/kotlin-kotlin-stdlib/kotlin/text/stringJs.mjs +6 -6
- package/kotlin-kotlin-stdlib/kotlin/text/stringJs.mjs.map +1 -1
- package/kotlin-logging/io/github/oshai/kotlinlogging/KotlinLogging.mjs +4 -4
- package/kotlin-logging/io/github/oshai/kotlinlogging/internal/KLoggerDirect.mjs +1 -1
- package/kotlin-logging/io/github/oshai/kotlinlogging/internal/KLoggerFactory.mjs +1 -1
- package/kotlin-logging/io/github/oshai/kotlinlogging/internal/KLoggerNameResolver.mjs +1 -1
- package/kotlinx-coroutines-core/kotlinx/coroutines/DispatchedTask.mjs +1 -1
- package/kotlinx-coroutines-core/kotlinx/coroutines/Dispatchers.mjs +7 -7
- package/kotlinx-coroutines-core/kotlinx/coroutines/JSDispatcher.mjs +76 -76
- package/kotlinx-coroutines-core/kotlinx/coroutines/flow/Reduce.mjs +133 -28
- package/kotlinx-coroutines-core/kotlinx/coroutines/flow/Reduce.mjs.map +1 -1
- package/kotlinx-coroutines-core/kotlinx/coroutines/flow/internal/NullSurrogate.mjs +28 -0
- package/kotlinx-coroutines-core/kotlinx/coroutines/flow/internal/NullSurrogate.mjs.map +1 -0
- package/kotlinx-coroutines-core/kotlinx/coroutines/internal/CoroutineExceptionHandlerImpl.common.mjs +1 -1
- package/kotlinx-coroutines-core/kotlinx/coroutines/internal/CoroutineExceptionHandlerImpl.mjs +2 -2
- package/kotlinx-coroutines-core/kotlinx/coroutines/internal/DispatchedContinuation.mjs +4 -4
- package/kotlinx-coroutines-core/kotlinx/coroutines/internal/LinkedList.mjs +2 -2
- package/kotlinx-coroutines-core/kotlinx/coroutines/internal/OnUndeliveredElement.mjs +3 -3
- package/kotlinx-coroutines-core/kotlinx/coroutines/internal/Scopes.mjs +3 -3
- package/kotlinx-coroutines-core/kotlinx/coroutines/internal/Symbol.mjs +2 -2
- package/kotlinx-coroutines-core/kotlinx/coroutines/selects/Select.mjs +5 -5
- package/kotlinx-coroutines-core/kotlinx/coroutines/sync/Semaphore.mjs +39 -39
- package/kotlinx-io-kotlinx-io-bytestring/kotlinx/io/bytestring/ByteString.mjs +34 -34
- package/kotlinx-io-kotlinx-io-bytestring/kotlinx/io/bytestring/unsafe/UnsafeByteStringOperations.mjs +2 -2
- package/kotlinx-io-kotlinx-io-core/kotlinx/io/-PlatformJs.mjs +11 -11
- package/kotlinx-io-kotlinx-io-core/kotlinx/io/Buffer.mjs +189 -189
- package/kotlinx-io-kotlinx-io-core/kotlinx/io/Buffers.mjs +10 -10
- package/kotlinx-io-kotlinx-io-core/kotlinx/io/ByteStrings.mjs +1 -1
- package/kotlinx-io-kotlinx-io-core/kotlinx/io/PeekSource.mjs +20 -20
- package/kotlinx-io-kotlinx-io-core/kotlinx/io/RealSource.mjs +56 -56
- package/kotlinx-io-kotlinx-io-core/kotlinx/io/Segment.mjs +149 -149
- package/kotlinx-io-kotlinx-io-core/kotlinx/io/SegmentPool.mjs +6 -6
- package/kotlinx-io-kotlinx-io-core/kotlinx/io/Sink.mjs +2 -2
- package/kotlinx-io-kotlinx-io-core/kotlinx/io/Sinks.mjs +3 -3
- package/kotlinx-io-kotlinx-io-core/kotlinx/io/Sources.mjs +15 -15
- package/kotlinx-io-kotlinx-io-core/kotlinx/io/Utf8.mjs +50 -50
- package/kotlinx-io-kotlinx-io-core/kotlinx/io/unsafe/UnsafeBufferOperations.mjs +12 -12
- package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/Json.mjs +37 -37
- package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/JsonConfiguration.mjs +18 -18
- package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/JsonElement.mjs +59 -59
- package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/JsonElementSerializers.mjs +70 -70
- package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/JsonSchemaCache.mjs +1 -1
- package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/AbstractJsonLexer.mjs +178 -178
- package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/CommentLexers.mjs +25 -25
- package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/Composers.mjs +71 -71
- package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/JsonElementMarker.mjs +8 -8
- package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/JsonExceptions.mjs +13 -13
- package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/JsonNamesMap.mjs +10 -10
- package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/JsonPath.mjs +36 -36
- package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/JsonSerializersModuleValidator.mjs +7 -7
- package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/JsonStreams.mjs +1 -1
- package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/JsonToStringWriterJsWasm.mjs +12 -12
- package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/JsonTreeReader.mjs +84 -84
- package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/Polymorphic.mjs +2 -2
- package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/SchemaCache.mjs +8 -8
- package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/StreamingJsonDecoder.mjs +141 -141
- package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/StreamingJsonEncoder.mjs +98 -98
- package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/StringJsonLexer.mjs +51 -51
- package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/TreeJsonDecoder.mjs +151 -151
- package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/WriteMode.mjs +3 -3
- package/ktor-ktor-client-cio/io/ktor/client/engine/cio/CIOCommon.mjs +3 -3
- package/ktor-ktor-client-cio/io/ktor/client/engine/cio/CIOEngine.mjs +59 -59
- package/ktor-ktor-client-cio/io/ktor/client/engine/cio/CIOEngineConfig.mjs +11 -11
- package/ktor-ktor-client-cio/io/ktor/client/engine/cio/ConnectionFactory.mjs +22 -22
- package/ktor-ktor-client-cio/io/ktor/client/engine/cio/ConnectionPipeline.nonJvm.mjs +3 -3
- package/ktor-ktor-client-cio/io/ktor/client/engine/cio/Endpoint.mjs +219 -219
- package/ktor-ktor-client-cio/io/ktor/client/engine/cio/EngineTasks.mjs +15 -15
- package/ktor-ktor-client-cio/io/ktor/client/engine/cio/Loader.js.mjs +2 -2
- package/ktor-ktor-client-cio/io/ktor/client/engine/cio/utils.mjs +241 -241
- package/ktor-ktor-client-content-negotiation/io/ktor/client/plugins/contentnegotiation/ContentNegotiation.mjs +133 -133
- package/ktor-ktor-client-content-negotiation/io/ktor/client/plugins/contentnegotiation/JsonContentTypeMatcher.mjs +4 -4
- package/ktor-ktor-client-core/io/ktor/client/HttpClient.mjs +85 -85
- package/ktor-ktor-client-core/io/ktor/client/HttpClientConfig.mjs +36 -36
- package/ktor-ktor-client-core/io/ktor/client/JsRequestUtils.mjs +1 -1
- package/ktor-ktor-client-core/io/ktor/client/call/DelegatedCall.mjs +41 -41
- package/ktor-ktor-client-core/io/ktor/client/call/HttpClientCall.mjs +54 -54
- package/ktor-ktor-client-core/io/ktor/client/call/SavedCall.mjs +51 -51
- package/ktor-ktor-client-core/io/ktor/client/call/utils.mjs +3 -3
- package/ktor-ktor-client-core/io/ktor/client/content/ObservableContent.mjs +27 -27
- package/ktor-ktor-client-core/io/ktor/client/engine/HttpClientEngine.mjs +60 -60
- package/ktor-ktor-client-core/io/ktor/client/engine/HttpClientEngineBase.mjs +18 -18
- package/ktor-ktor-client-core/io/ktor/client/engine/HttpClientEngineConfig.mjs +4 -4
- package/ktor-ktor-client-core/io/ktor/client/engine/Loader.mjs +11 -11
- package/ktor-ktor-client-core/io/ktor/client/engine/Utils.mjs +20 -20
- package/ktor-ktor-client-core/io/ktor/client/engine/js/Js.mjs +6 -6
- package/ktor-ktor-client-core/io/ktor/client/engine/js/JsClientEngine.mjs +60 -60
- package/ktor-ktor-client-core/io/ktor/client/engine/js/JsUtils.mjs +40 -40
- package/ktor-ktor-client-core/io/ktor/client/engine/js/browser/BrowserFetch.mjs +21 -21
- package/ktor-ktor-client-core/io/ktor/client/engine/js/compatibility/Utils.mjs +3 -3
- package/ktor-ktor-client-core/io/ktor/client/network/sockets/TimeoutExceptions.nonJvm.mjs +3 -3
- package/ktor-ktor-client-core/io/ktor/client/plugins/BodyProgress.mjs +61 -61
- package/ktor-ktor-client-core/io/ktor/client/plugins/DefaultResponseValidation.mjs +45 -45
- package/ktor-ktor-client-core/io/ktor/client/plugins/DefaultTransform.mjs +125 -125
- package/ktor-ktor-client-core/io/ktor/client/plugins/HttpCallValidator.mjs +138 -138
- package/ktor-ktor-client-core/io/ktor/client/plugins/HttpClientPlugin.mjs +2 -2
- package/ktor-ktor-client-core/io/ktor/client/plugins/HttpPlainText.mjs +70 -70
- package/ktor-ktor-client-core/io/ktor/client/plugins/HttpRedirect.mjs +53 -53
- package/ktor-ktor-client-core/io/ktor/client/plugins/HttpRequestLifecycle.mjs +42 -42
- package/ktor-ktor-client-core/io/ktor/client/plugins/HttpSend.mjs +63 -63
- package/ktor-ktor-client-core/io/ktor/client/plugins/HttpTimeout.mjs +98 -98
- package/ktor-ktor-client-core/io/ktor/client/plugins/SaveBody.mjs +33 -33
- package/ktor-ktor-client-core/io/ktor/client/plugins/api/ClientHook.mjs +4 -4
- package/ktor-ktor-client-core/io/ktor/client/plugins/api/ClientPluginBuilder.mjs +11 -11
- package/ktor-ktor-client-core/io/ktor/client/plugins/api/ClientPluginInstance.mjs +11 -11
- package/ktor-ktor-client-core/io/ktor/client/plugins/api/CommonHooks.mjs +35 -35
- package/ktor-ktor-client-core/io/ktor/client/plugins/api/CreatePluginUtils.mjs +13 -13
- package/ktor-ktor-client-core/io/ktor/client/plugins/api/KtorCallContexts.mjs +45 -45
- package/ktor-ktor-client-core/io/ktor/client/plugins/websocket/JsWebSocketSession.mjs +65 -65
- package/ktor-ktor-client-core/io/ktor/client/plugins/websocket/WebSockets.mjs +4 -4
- package/ktor-ktor-client-core/io/ktor/client/request/DefaultHttpRequest.mjs +17 -17
- package/ktor-ktor-client-core/io/ktor/client/request/HttpRequest.mjs +64 -64
- package/ktor-ktor-client-core/io/ktor/client/request/HttpRequestPipeline.mjs +18 -18
- package/ktor-ktor-client-core/io/ktor/client/request/utils.mjs +1 -1
- package/ktor-ktor-client-core/io/ktor/client/statement/DefaultHttpResponse.mjs +24 -24
- package/ktor-ktor-client-core/io/ktor/client/statement/HttpResponse.mjs +18 -18
- package/ktor-ktor-client-core/io/ktor/client/statement/HttpResponsePipeline.mjs +25 -25
- package/ktor-ktor-client-core/io/ktor/client/statement/HttpStatement.mjs +52 -52
- package/ktor-ktor-client-core/io/ktor/client/utils/ByteChannelUtils.mjs +35 -35
- package/ktor-ktor-client-core/io/ktor/client/utils/ClientEvents.mjs +2 -2
- package/ktor-ktor-client-core/io/ktor/client/utils/Content.mjs +3 -3
- package/ktor-ktor-client-core/io/ktor/client/utils/HeadersUtils.mjs +5 -5
- package/ktor-ktor-events/io/ktor/events/Events.mjs +5 -5
- package/ktor-ktor-http/io/ktor/http/Codecs.mjs +12 -12
- package/ktor-ktor-http/io/ktor/http/ContentTypes.mjs +89 -89
- package/ktor-ktor-http/io/ktor/http/HeaderValueWithParameters.mjs +18 -18
- package/ktor-ktor-http/io/ktor/http/Headers.mjs +18 -18
- package/ktor-ktor-http/io/ktor/http/HttpHeaderValueParser.mjs +31 -31
- package/ktor-ktor-http/io/ktor/http/HttpHeaders.mjs +114 -114
- package/ktor-ktor-http/io/ktor/http/HttpMessageProperties.mjs +4 -4
- package/ktor-ktor-http/io/ktor/http/HttpMethod.mjs +13 -13
- package/ktor-ktor-http/io/ktor/http/HttpProtocolVersion.mjs +18 -18
- package/ktor-ktor-http/io/ktor/http/HttpStatusCode.mjs +66 -66
- package/ktor-ktor-http/io/ktor/http/Parameters.mjs +9 -9
- package/ktor-ktor-http/io/ktor/http/Query.mjs +3 -3
- package/ktor-ktor-http/io/ktor/http/URLBuilder.mjs +58 -58
- package/ktor-ktor-http/io/ktor/http/URLBuilderJs.mjs +1 -1
- package/ktor-ktor-http/io/ktor/http/URLParser.mjs +34 -34
- package/ktor-ktor-http/io/ktor/http/URLProtocol.mjs +20 -20
- package/ktor-ktor-http/io/ktor/http/URLUtils.mjs +25 -25
- package/ktor-ktor-http/io/ktor/http/Url.mjs +72 -72
- package/ktor-ktor-http/io/ktor/http/UrlDecodedParametersBuilder.mjs +25 -25
- package/ktor-ktor-http/io/ktor/http/content/ByteArrayContent.mjs +9 -9
- package/ktor-ktor-http/io/ktor/http/content/OutgoingContent.mjs +8 -8
- package/ktor-ktor-http/io/ktor/http/content/TextContent.mjs +12 -12
- package/ktor-ktor-http-cio/io/ktor/http/cio/CIOMultipartDataBase.mjs +4 -4
- package/ktor-ktor-http-cio/io/ktor/http/cio/ChunkedTransferEncoding.mjs +106 -106
- package/ktor-ktor-http-cio/io/ktor/http/cio/ConnectionOptions.mjs +31 -31
- package/ktor-ktor-http-cio/io/ktor/http/cio/HttpBody.mjs +15 -15
- package/ktor-ktor-http-cio/io/ktor/http/cio/HttpHeadersMap.mjs +100 -100
- package/ktor-ktor-http-cio/io/ktor/http/cio/HttpParser.mjs +69 -69
- package/ktor-ktor-http-cio/io/ktor/http/cio/Multipart.mjs +113 -113
- package/ktor-ktor-http-cio/io/ktor/http/cio/RequestResponse.mjs +9 -9
- package/ktor-ktor-http-cio/io/ktor/http/cio/RequestResponseBuilderJs.mjs +21 -21
- package/ktor-ktor-http-cio/io/ktor/http/cio/internals/AsciiCharTree.mjs +17 -17
- package/ktor-ktor-http-cio/io/ktor/http/cio/internals/CharArrayBuilder.mjs +70 -70
- package/ktor-ktor-http-cio/io/ktor/http/cio/internals/CharArrayPool.mjs +2 -2
- package/ktor-ktor-http-cio/io/ktor/http/cio/internals/Chars.mjs +21 -21
- package/ktor-ktor-http-cio/io/ktor/http/cio/internals/Errors.mjs +3 -3
- package/ktor-ktor-http-cio/io/ktor/http/cio/internals/MutableRange.mjs +3 -3
- package/ktor-ktor-http-cio/io/ktor/http/cio/internals/Tokenizer.mjs +7 -7
- package/ktor-ktor-io/io/ktor/utils/io/ByteChannel.mjs +141 -141
- package/ktor-ktor-io/io/ktor/utils/io/ByteChannelCtor.mjs +1 -1
- package/ktor-ktor-io/io/ktor/utils/io/ByteChannelScanner.mjs +75 -75
- package/ktor-ktor-io/io/ktor/utils/io/ByteChannelUtils.mjs +1 -1
- package/ktor-ktor-io/io/ktor/utils/io/ByteReadChannel.mjs +13 -13
- package/ktor-ktor-io/io/ktor/utils/io/ByteReadChannelOperations.mjs +230 -230
- package/ktor-ktor-io/io/ktor/utils/io/ByteWriteChannel.mjs +11 -11
- package/ktor-ktor-io/io/ktor/utils/io/ByteWriteChannelOperations.mjs +72 -72
- package/ktor-ktor-io/io/ktor/utils/io/CloseHookByteWriteChannel.mjs +14 -14
- package/ktor-ktor-io/io/ktor/utils/io/CloseToken.mjs +11 -11
- package/ktor-ktor-io/io/ktor/utils/io/CountedByteReadChannel.mjs +26 -26
- package/ktor-ktor-io/io/ktor/utils/io/Exceptions.mjs +12 -12
- package/ktor-ktor-io/io/ktor/utils/io/LineEndingMode.mjs +15 -15
- package/ktor-ktor-io/io/ktor/utils/io/SourceByteReadChannel.mjs +18 -18
- package/ktor-ktor-io/io/ktor/utils/io/charsets/Charset.js.mjs +36 -36
- package/ktor-ktor-io/io/ktor/utils/io/charsets/Encoding.mjs +4 -4
- package/ktor-ktor-io/io/ktor/utils/io/charsets/ISO88591.mjs +2 -2
- package/ktor-ktor-io/io/ktor/utils/io/charsets/TextDecoder.js.mjs +3 -3
- package/ktor-ktor-io/io/ktor/utils/io/charsets/TextDecoderFallback.js.mjs +5 -5
- package/ktor-ktor-io/io/ktor/utils/io/core/Buffer.mjs +1 -1
- package/ktor-ktor-io/io/ktor/utils/io/core/BytePacketBuilder.mjs +3 -3
- package/ktor-ktor-io/io/ktor/utils/io/core/ByteReadPacket.mjs +5 -5
- package/ktor-ktor-io/io/ktor/utils/io/core/Input.mjs +1 -1
- package/ktor-ktor-io/io/ktor/utils/io/core/Strings.mjs +10 -10
- package/ktor-ktor-io/io/ktor/utils/io/pool/ByteArrayPool.mjs +1 -1
- package/ktor-ktor-io/io/ktor/utils/io/pool/DefaultPool.mjs +27 -27
- package/ktor-ktor-io/io/ktor/utils/io/pool/Pool.mjs +1 -1
- package/ktor-ktor-network/io/ktor/network/sockets/Builders.mjs +5 -5
- package/ktor-ktor-network/io/ktor/network/sockets/SocketAddress.nonJvm.mjs +9 -9
- package/ktor-ktor-network/io/ktor/network/sockets/SocketBase.mjs +50 -50
- package/ktor-ktor-network/io/ktor/network/sockets/SocketContext.mjs +104 -104
- package/ktor-ktor-network/io/ktor/network/sockets/SocketEngine.jsAndWasmShared.mjs +1 -1
- package/ktor-ktor-network/io/ktor/network/sockets/SocketOptions.mjs +30 -30
- package/ktor-ktor-network/io/ktor/network/sockets/SocketTimeoutException.mjs +5 -5
- package/ktor-ktor-network/io/ktor/network/sockets/Sockets.mjs +5 -5
- package/ktor-ktor-network/io/ktor/network/sockets/TcpSocketBuilder.mjs +5 -5
- package/ktor-ktor-network/io/ktor/network/sockets/TypeOfService.mjs +5 -5
- package/ktor-ktor-network/io/ktor/network/sockets/nodejs/node.net.mjs +7 -7
- package/ktor-ktor-network-tls/io/ktor/network/tls/TLSCommon.mjs +9 -9
- package/ktor-ktor-network-tls/io/ktor/network/tls/TLSConfigBuilder.nonJvm.mjs +1 -1
- package/ktor-ktor-serialization/io/ktor/serialization/ContentConvertException.mjs +5 -5
- package/ktor-ktor-serialization/io/ktor/serialization/ContentConverter.mjs +58 -58
- package/ktor-ktor-serialization-kotlinx/io/ktor/serialization/kotlinx/Extensions.mjs +1 -1
- package/ktor-ktor-serialization-kotlinx/io/ktor/serialization/kotlinx/KotlinxSerializationConverter.mjs +122 -122
- package/ktor-ktor-serialization-kotlinx/io/ktor/serialization/kotlinx/SerializerLookup.mjs +4 -4
- package/ktor-ktor-serialization-kotlinx-json/io/ktor/serialization/kotlinx/json/JsonSupport.mjs +6 -6
- package/ktor-ktor-utils/io/ktor/util/Attributes.mjs +11 -11
- package/ktor-ktor-utils/io/ktor/util/AttributesJs.mjs +15 -15
- package/ktor-ktor-utils/io/ktor/util/CaseInsensitiveMap.mjs +33 -33
- package/ktor-ktor-utils/io/ktor/util/DelegatingMutableSet.mjs +31 -31
- package/ktor-ktor-utils/io/ktor/util/PlatformUtils.mjs +16 -16
- package/ktor-ktor-utils/io/ktor/util/StringValues.mjs +83 -83
- package/ktor-ktor-utils/io/ktor/util/Text.mjs +7 -7
- package/ktor-ktor-utils/io/ktor/util/collections/ConcurrentMapJs.mjs +29 -29
- package/ktor-ktor-utils/io/ktor/util/collections/CopyOnWriteHashMap.mjs +3 -3
- package/ktor-ktor-utils/io/ktor/util/date/Date.mjs +67 -67
- package/ktor-ktor-utils/io/ktor/util/date/DateJs.mjs +5 -5
- package/ktor-ktor-utils/io/ktor/util/internal/LockFreeLinkedList.mjs +6 -6
- package/ktor-ktor-utils/io/ktor/util/logging/KtorSimpleLoggerJs.mjs +10 -10
- package/ktor-ktor-utils/io/ktor/util/logging/LoggerJs.mjs +1 -1
- package/ktor-ktor-utils/io/ktor/util/network/NetworkAddressJs.mjs +2 -2
- package/ktor-ktor-utils/io/ktor/util/pipeline/DebugPipelineContext.mjs +32 -32
- package/ktor-ktor-utils/io/ktor/util/pipeline/PhaseContent.mjs +25 -25
- package/ktor-ktor-utils/io/ktor/util/pipeline/Pipeline.mjs +53 -53
- package/ktor-ktor-utils/io/ktor/util/pipeline/PipelineContext.mjs +1 -1
- package/ktor-ktor-utils/io/ktor/util/pipeline/PipelinePhase.mjs +3 -3
- package/ktor-ktor-utils/io/ktor/util/pipeline/PipelinePhaseRelation.mjs +2 -2
- package/ktor-ktor-utils/io/ktor/util/pipeline/SuspendFunctionGun.mjs +49 -49
- package/ktor-ktor-utils/io/ktor/util/reflect/Type.mjs +9 -9
- package/ktor-ktor-websockets/io/ktor/websocket/CloseReason.mjs +19 -19
- package/ktor-ktor-websockets/io/ktor/websocket/FrameJs.mjs +41 -41
- package/ktor-ktor-websockets/io/ktor/websocket/FrameTooBigException.mjs +5 -5
- package/ktor-ktor-websockets/io/ktor/websocket/FrameType.mjs +9 -9
- package/ktor-ktor-websockets/io/ktor/websocket/ProtocolViolationException.mjs +5 -5
- package/ktor-ktor-websockets/io/ktor/websocket/RawWebSocketCommon.mjs +150 -150
- package/package.json +1 -1
|
@@ -138,10 +138,10 @@ function Companion() {
|
|
|
138
138
|
var tmp$ret$0 = new (UByte())(element.code);
|
|
139
139
|
destination.d3(tmp$ret$0, element);
|
|
140
140
|
}
|
|
141
|
-
tmp.
|
|
141
|
+
tmp.y2y_1 = destination;
|
|
142
142
|
}
|
|
143
143
|
from(code) {
|
|
144
|
-
var tmp0_elvis_lhs = this.
|
|
144
|
+
var tmp0_elvis_lhs = this.y2y_1.w2(new (UByte())(code));
|
|
145
145
|
return tmp0_elvis_lhs == null ? AttoBlockType_UNKNOWN_getInstance() : tmp0_elvis_lhs;
|
|
146
146
|
}
|
|
147
147
|
}
|
|
@@ -205,7 +205,7 @@ function AttoBlockType() {
|
|
|
205
205
|
this.code = code;
|
|
206
206
|
this.size = size;
|
|
207
207
|
}
|
|
208
|
-
|
|
208
|
+
d2y() {
|
|
209
209
|
return this.code;
|
|
210
210
|
}
|
|
211
211
|
i1() {
|
|
@@ -239,21 +239,21 @@ function Companion_0() {
|
|
|
239
239
|
fromBuffer(serializedBlock) {
|
|
240
240
|
// Inline function 'kotlin.let' call
|
|
241
241
|
var it = new (Buffer())();
|
|
242
|
-
serializedBlock.
|
|
242
|
+
serializedBlock.i2s(it, new (Long())(0, 0), new (Long())(1, 0));
|
|
243
243
|
var type = readAttoBlockType(it);
|
|
244
244
|
var tmp;
|
|
245
245
|
switch (type.h3_1) {
|
|
246
246
|
case 3:
|
|
247
|
-
tmp = Companion_getInstance_4().
|
|
247
|
+
tmp = Companion_getInstance_4().a2z(serializedBlock);
|
|
248
248
|
break;
|
|
249
249
|
case 2:
|
|
250
|
-
tmp = Companion_getInstance_5().
|
|
250
|
+
tmp = Companion_getInstance_5().a2z(serializedBlock);
|
|
251
251
|
break;
|
|
252
252
|
case 1:
|
|
253
|
-
tmp = Companion_getInstance_6().
|
|
253
|
+
tmp = Companion_getInstance_6().a2z(serializedBlock);
|
|
254
254
|
break;
|
|
255
255
|
case 4:
|
|
256
|
-
tmp = Companion_getInstance_7().
|
|
256
|
+
tmp = Companion_getInstance_7().a2z(serializedBlock);
|
|
257
257
|
break;
|
|
258
258
|
case 0:
|
|
259
259
|
return null;
|
|
@@ -263,7 +263,7 @@ function Companion_0() {
|
|
|
263
263
|
}
|
|
264
264
|
return tmp;
|
|
265
265
|
}
|
|
266
|
-
|
|
266
|
+
e2v() {
|
|
267
267
|
var tmp = getKClass(AttoBlock());
|
|
268
268
|
// Inline function 'kotlin.arrayOf' call
|
|
269
269
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
@@ -280,7 +280,7 @@ function Companion_0() {
|
|
|
280
280
|
return SealedClassSerializer().du('cash.atto.commons.AttoBlock', tmp, tmp_0, tmp_1, tmp$ret$8);
|
|
281
281
|
}
|
|
282
282
|
x15(typeParamsSerializers) {
|
|
283
|
-
return this.
|
|
283
|
+
return this.e2v();
|
|
284
284
|
}
|
|
285
285
|
}
|
|
286
286
|
initMetadataForCompanion($, VOID, [SerializerFactory()]);
|
|
@@ -294,7 +294,7 @@ function Companion_getInstance_3() {
|
|
|
294
294
|
}
|
|
295
295
|
function isValid() {
|
|
296
296
|
var tmp;
|
|
297
|
-
if (this.version.
|
|
297
|
+
if (this.version.g2z(get_maxVersion()) <= 0) {
|
|
298
298
|
var tmp_0 = this.timestamp;
|
|
299
299
|
var tmp_1 = System_instance.i1e();
|
|
300
300
|
// Inline function 'kotlin.time.Companion.minutes' call
|
|
@@ -346,10 +346,10 @@ function AttoSendBlock$Companion$$childSerializers$_anonymous__s9zy99() {
|
|
|
346
346
|
return createSimpleEnumSerializer('cash.atto.commons.AttoNetwork', values());
|
|
347
347
|
}
|
|
348
348
|
function AttoSendBlock$Companion$$childSerializers$_anonymous__s9zy99_0() {
|
|
349
|
-
return Companion_getInstance_0().
|
|
349
|
+
return Companion_getInstance_0().e2v();
|
|
350
350
|
}
|
|
351
351
|
function AttoSendBlock$Companion$$childSerializers$_anonymous__s9zy99_1() {
|
|
352
|
-
return Companion_getInstance_0().
|
|
352
|
+
return Companion_getInstance_0().e2v();
|
|
353
353
|
}
|
|
354
354
|
var CompanionClass_1;
|
|
355
355
|
function Companion_1() {
|
|
@@ -366,9 +366,9 @@ function Companion_1() {
|
|
|
366
366
|
// Inline function 'kotlin.arrayOf' call
|
|
367
367
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
368
368
|
// Inline function 'kotlin.js.asDynamic' call
|
|
369
|
-
tmp.
|
|
369
|
+
tmp.z2y_1 = [tmp_1, null, tmp_3, null, null, null, null, null, lazy(tmp_4, AttoSendBlock$Companion$$childSerializers$_anonymous__s9zy99_1), null, null];
|
|
370
370
|
}
|
|
371
|
-
|
|
371
|
+
a2z(serializedBlock) {
|
|
372
372
|
if (toLong(AttoBlockType_SEND_getInstance().size).a2(serializedBlock.i1()) > 0) {
|
|
373
373
|
return null;
|
|
374
374
|
}
|
|
@@ -378,7 +378,7 @@ function Companion_1() {
|
|
|
378
378
|
}
|
|
379
379
|
return new (AttoSendBlock())(readAttoNetwork(serializedBlock), readAttoVersion(serializedBlock), readAttoAlgorithm(serializedBlock), readAttoPublicKey(serializedBlock), readAttoHeight(serializedBlock), readAttoAmount(serializedBlock), readInstant(serializedBlock), readAttoHash(serializedBlock), readAttoAlgorithm(serializedBlock), readAttoPublicKey(serializedBlock), readAttoAmount(serializedBlock));
|
|
380
380
|
}
|
|
381
|
-
|
|
381
|
+
e2v() {
|
|
382
382
|
return $serializer_getInstance();
|
|
383
383
|
}
|
|
384
384
|
}
|
|
@@ -411,30 +411,30 @@ function $serializer() {
|
|
|
411
411
|
tmp0_serialDesc.w14('receiverAlgorithm', false);
|
|
412
412
|
tmp0_serialDesc.w14('receiverPublicKey', false);
|
|
413
413
|
tmp0_serialDesc.w14('amount', false);
|
|
414
|
-
this.
|
|
414
|
+
this.k2z_1 = tmp0_serialDesc;
|
|
415
415
|
}
|
|
416
|
-
|
|
417
|
-
var tmp0_desc = this.
|
|
416
|
+
l2z(encoder, value) {
|
|
417
|
+
var tmp0_desc = this.k2z_1;
|
|
418
418
|
var tmp1_output = encoder.kx(tmp0_desc);
|
|
419
|
-
var tmp2_cached = Companion_getInstance_4().
|
|
420
|
-
tmp1_output.bz(tmp0_desc, 0, tmp2_cached[0].s1(), value.
|
|
421
|
-
tmp1_output.bz(tmp0_desc, 1, AttoVersionSerializer_getInstance(), value.
|
|
422
|
-
tmp1_output.bz(tmp0_desc, 2, tmp2_cached[2].s1(), value.
|
|
423
|
-
tmp1_output.bz(tmp0_desc, 3, AttoPublicKeySerializer_getInstance(), value.
|
|
424
|
-
tmp1_output.bz(tmp0_desc, 4, AttoHeightSerializer_getInstance(), value.
|
|
425
|
-
tmp1_output.bz(tmp0_desc, 5, AttoAmountSerializer_getInstance(), value.
|
|
426
|
-
tmp1_output.bz(tmp0_desc, 6, InstantMillisSerializer_getInstance(), value.
|
|
427
|
-
tmp1_output.bz(tmp0_desc, 7, AttoHashSerializer_getInstance(), value.
|
|
419
|
+
var tmp2_cached = Companion_getInstance_4().z2y_1;
|
|
420
|
+
tmp1_output.bz(tmp0_desc, 0, tmp2_cached[0].s1(), value.m2z_1);
|
|
421
|
+
tmp1_output.bz(tmp0_desc, 1, AttoVersionSerializer_getInstance(), value.n2z_1);
|
|
422
|
+
tmp1_output.bz(tmp0_desc, 2, tmp2_cached[2].s1(), value.o2z_1);
|
|
423
|
+
tmp1_output.bz(tmp0_desc, 3, AttoPublicKeySerializer_getInstance(), value.p2z_1);
|
|
424
|
+
tmp1_output.bz(tmp0_desc, 4, AttoHeightSerializer_getInstance(), value.q2z_1);
|
|
425
|
+
tmp1_output.bz(tmp0_desc, 5, AttoAmountSerializer_getInstance(), value.r2z_1);
|
|
426
|
+
tmp1_output.bz(tmp0_desc, 6, InstantMillisSerializer_getInstance(), value.s2z_1);
|
|
427
|
+
tmp1_output.bz(tmp0_desc, 7, AttoHashSerializer_getInstance(), value.t2z_1);
|
|
428
428
|
tmp1_output.bz(tmp0_desc, 8, tmp2_cached[8].s1(), value.receiverAlgorithm);
|
|
429
429
|
tmp1_output.bz(tmp0_desc, 9, AttoPublicKeySerializer_getInstance(), value.receiverPublicKey);
|
|
430
430
|
tmp1_output.bz(tmp0_desc, 10, AttoAmountSerializer_getInstance(), value.amount);
|
|
431
431
|
tmp1_output.lx(tmp0_desc);
|
|
432
432
|
}
|
|
433
433
|
ys(encoder, value) {
|
|
434
|
-
return this.
|
|
434
|
+
return this.l2z(encoder, value instanceof AttoSendBlock() ? value : THROW_CCE());
|
|
435
435
|
}
|
|
436
436
|
zs(decoder) {
|
|
437
|
-
var tmp0_desc = this.
|
|
437
|
+
var tmp0_desc = this.k2z_1;
|
|
438
438
|
var tmp1_flag = true;
|
|
439
439
|
var tmp2_index = 0;
|
|
440
440
|
var tmp3_bitMask0 = 0;
|
|
@@ -450,7 +450,7 @@ function $serializer() {
|
|
|
450
450
|
var tmp13_local9 = null;
|
|
451
451
|
var tmp14_local10 = null;
|
|
452
452
|
var tmp19_input = decoder.kx(tmp0_desc);
|
|
453
|
-
var tmp20_cached = Companion_getInstance_4().
|
|
453
|
+
var tmp20_cached = Companion_getInstance_4().z2y_1;
|
|
454
454
|
if (tmp19_input.zx()) {
|
|
455
455
|
tmp4_local0 = tmp19_input.wx(tmp0_desc, 0, tmp20_cached[0].s1(), tmp4_local0);
|
|
456
456
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
@@ -530,13 +530,13 @@ function $serializer() {
|
|
|
530
530
|
}
|
|
531
531
|
}
|
|
532
532
|
tmp19_input.lx(tmp0_desc);
|
|
533
|
-
return AttoSendBlock().
|
|
533
|
+
return AttoSendBlock().y2z(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, tmp12_local8, tmp13_local9, tmp14_local10, null);
|
|
534
534
|
}
|
|
535
535
|
xs() {
|
|
536
|
-
return this.
|
|
536
|
+
return this.k2z_1;
|
|
537
537
|
}
|
|
538
538
|
l15() {
|
|
539
|
-
var tmp0_cached = Companion_getInstance_4().
|
|
539
|
+
var tmp0_cached = Companion_getInstance_4().z2y_1;
|
|
540
540
|
// Inline function 'kotlin.arrayOf' call
|
|
541
541
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
542
542
|
// Inline function 'kotlin.js.asDynamic' call
|
|
@@ -557,7 +557,7 @@ function $serializer_getInstance() {
|
|
|
557
557
|
}
|
|
558
558
|
function AttoSendBlock$hash$delegate$lambda(this$0) {
|
|
559
559
|
return function () {
|
|
560
|
-
return hash(this$0.
|
|
560
|
+
return hash(this$0.f2z());
|
|
561
561
|
};
|
|
562
562
|
}
|
|
563
563
|
function AttoSendBlock$_get_hash_$ref_emfoe1() {
|
|
@@ -567,7 +567,7 @@ function AttoSendBlock$_get_hash_$ref_emfoe1() {
|
|
|
567
567
|
}
|
|
568
568
|
function AttoSendBlock$address$delegate$lambda(this$0) {
|
|
569
569
|
return function () {
|
|
570
|
-
return new (AttoAddress())(this$0.
|
|
570
|
+
return new (AttoAddress())(this$0.o2z_1, this$0.p2z_1);
|
|
571
571
|
};
|
|
572
572
|
}
|
|
573
573
|
function AttoSendBlock$_get_address_$ref_it8owv() {
|
|
@@ -587,12 +587,12 @@ function AttoSendBlock$_get_receiverAddress_$ref_t8r8a6() {
|
|
|
587
587
|
}
|
|
588
588
|
function AttoSendBlock$_init_$lambda_dfxw6s(this$0) {
|
|
589
589
|
return function () {
|
|
590
|
-
return hash(this$0.
|
|
590
|
+
return hash(this$0.f2z());
|
|
591
591
|
};
|
|
592
592
|
}
|
|
593
593
|
function AttoSendBlock$_init_$lambda_dfxw6s_0(this$0) {
|
|
594
594
|
return function () {
|
|
595
|
-
return new (AttoAddress())(this$0.
|
|
595
|
+
return new (AttoAddress())(this$0.o2z_1, this$0.p2z_1);
|
|
596
596
|
};
|
|
597
597
|
}
|
|
598
598
|
function AttoSendBlock$_init_$lambda_dfxw6s_1(this$0) {
|
|
@@ -606,94 +606,94 @@ function AttoSendBlock() {
|
|
|
606
606
|
class $ {
|
|
607
607
|
constructor(network, version, algorithm, publicKey, height, balance, timestamp, previous, receiverAlgorithm, receiverPublicKey, amount) {
|
|
608
608
|
Companion_getInstance_4();
|
|
609
|
-
this.
|
|
610
|
-
this.
|
|
611
|
-
this.
|
|
612
|
-
this.
|
|
613
|
-
this.
|
|
614
|
-
this.
|
|
615
|
-
this.
|
|
616
|
-
this.
|
|
609
|
+
this.m2z_1 = network;
|
|
610
|
+
this.n2z_1 = version;
|
|
611
|
+
this.o2z_1 = algorithm;
|
|
612
|
+
this.p2z_1 = publicKey;
|
|
613
|
+
this.q2z_1 = height;
|
|
614
|
+
this.r2z_1 = balance;
|
|
615
|
+
this.s2z_1 = timestamp;
|
|
616
|
+
this.t2z_1 = previous;
|
|
617
617
|
this.receiverAlgorithm = receiverAlgorithm;
|
|
618
618
|
this.receiverPublicKey = receiverPublicKey;
|
|
619
619
|
this.amount = amount;
|
|
620
|
-
this.
|
|
620
|
+
this.u2z_1 = AttoBlockType_SEND_getInstance();
|
|
621
621
|
var tmp = this;
|
|
622
|
-
tmp.
|
|
622
|
+
tmp.v2z_1 = lazy_0(AttoSendBlock$hash$delegate$lambda(this));
|
|
623
623
|
var tmp_0 = this;
|
|
624
|
-
tmp_0.
|
|
624
|
+
tmp_0.w2z_1 = lazy_0(AttoSendBlock$address$delegate$lambda(this));
|
|
625
625
|
var tmp_1 = this;
|
|
626
|
-
tmp_1.
|
|
626
|
+
tmp_1.x2z_1 = lazy_0(AttoSendBlock$receiverAddress$delegate$lambda(this));
|
|
627
627
|
}
|
|
628
|
-
|
|
629
|
-
return this.
|
|
628
|
+
f2w() {
|
|
629
|
+
return this.m2z_1;
|
|
630
630
|
}
|
|
631
|
-
|
|
632
|
-
return this.
|
|
631
|
+
g2w() {
|
|
632
|
+
return this.n2z_1;
|
|
633
633
|
}
|
|
634
|
-
|
|
635
|
-
return this.
|
|
634
|
+
h2w() {
|
|
635
|
+
return this.o2z_1;
|
|
636
636
|
}
|
|
637
|
-
|
|
638
|
-
return this.
|
|
637
|
+
e2w() {
|
|
638
|
+
return this.p2z_1;
|
|
639
639
|
}
|
|
640
|
-
|
|
641
|
-
return this.
|
|
640
|
+
i2w() {
|
|
641
|
+
return this.q2z_1;
|
|
642
642
|
}
|
|
643
|
-
|
|
644
|
-
return this.
|
|
643
|
+
j2w() {
|
|
644
|
+
return this.r2z_1;
|
|
645
645
|
}
|
|
646
|
-
|
|
647
|
-
return this.
|
|
646
|
+
o2x() {
|
|
647
|
+
return this.s2z_1;
|
|
648
648
|
}
|
|
649
|
-
|
|
650
|
-
return this.
|
|
649
|
+
h2z() {
|
|
650
|
+
return this.t2z_1;
|
|
651
651
|
}
|
|
652
|
-
|
|
652
|
+
z2z() {
|
|
653
653
|
return this.receiverAlgorithm;
|
|
654
654
|
}
|
|
655
|
-
|
|
655
|
+
a30() {
|
|
656
656
|
return this.receiverPublicKey;
|
|
657
657
|
}
|
|
658
|
-
|
|
658
|
+
b30() {
|
|
659
659
|
return this.amount;
|
|
660
660
|
}
|
|
661
|
-
|
|
662
|
-
return this.
|
|
661
|
+
e2z() {
|
|
662
|
+
return this.u2z_1;
|
|
663
663
|
}
|
|
664
|
-
|
|
665
|
-
var tmp0 = this.
|
|
664
|
+
j2x() {
|
|
665
|
+
var tmp0 = this.v2z_1;
|
|
666
666
|
var tmp = KProperty1();
|
|
667
667
|
// Inline function 'kotlin.getValue' call
|
|
668
668
|
getPropertyCallableRef('hash', 1, tmp, AttoSendBlock$_get_hash_$ref_emfoe1(), null);
|
|
669
669
|
return tmp0.s1();
|
|
670
670
|
}
|
|
671
|
-
|
|
672
|
-
var tmp0 = this.
|
|
671
|
+
o2w() {
|
|
672
|
+
var tmp0 = this.w2z_1;
|
|
673
673
|
var tmp = KProperty1();
|
|
674
674
|
// Inline function 'kotlin.getValue' call
|
|
675
675
|
getPropertyCallableRef('address', 1, tmp, AttoSendBlock$_get_address_$ref_it8owv(), null);
|
|
676
676
|
return tmp0.s1();
|
|
677
677
|
}
|
|
678
|
-
|
|
679
|
-
var tmp0 = this.
|
|
678
|
+
c30() {
|
|
679
|
+
var tmp0 = this.x2z_1;
|
|
680
680
|
var tmp = KProperty1();
|
|
681
681
|
// Inline function 'kotlin.getValue' call
|
|
682
682
|
getPropertyCallableRef('receiverAddress', 1, tmp, AttoSendBlock$_get_receiverAddress_$ref_t8r8a6(), null);
|
|
683
683
|
return tmp0.s1();
|
|
684
684
|
}
|
|
685
|
-
|
|
685
|
+
f2z() {
|
|
686
686
|
// Inline function 'kotlin.apply' call
|
|
687
687
|
var this_0 = new (Buffer())();
|
|
688
|
-
writeAttoBlockType(this_0, this.
|
|
689
|
-
writeAttoNetwork(this_0, this.
|
|
690
|
-
writeAttoVersion(this_0, this.
|
|
691
|
-
writeAttoAlgorithm(this_0, this.
|
|
692
|
-
writeAttoPublicKey(this_0, this.
|
|
693
|
-
writeAttoHeight(this_0, this.
|
|
694
|
-
writeAttoAmount(this_0, this.
|
|
695
|
-
writeInstant(this_0, this.
|
|
696
|
-
writeAttoHash(this_0, this.
|
|
688
|
+
writeAttoBlockType(this_0, this.u2z_1);
|
|
689
|
+
writeAttoNetwork(this_0, this.m2z_1);
|
|
690
|
+
writeAttoVersion(this_0, this.n2z_1);
|
|
691
|
+
writeAttoAlgorithm(this_0, this.o2z_1);
|
|
692
|
+
writeAttoPublicKey(this_0, this.p2z_1);
|
|
693
|
+
writeAttoHeight(this_0, this.q2z_1);
|
|
694
|
+
writeAttoAmount(this_0, this.r2z_1);
|
|
695
|
+
writeInstant(this_0, this.s2z_1);
|
|
696
|
+
writeAttoHash(this_0, this.t2z_1);
|
|
697
697
|
writeAttoAlgorithm(this_0, this.receiverAlgorithm);
|
|
698
698
|
writeAttoPublicKey(this_0, this.receiverPublicKey);
|
|
699
699
|
writeAttoAmount(this_0, this.amount);
|
|
@@ -703,7 +703,7 @@ function AttoSendBlock() {
|
|
|
703
703
|
var tmp;
|
|
704
704
|
var tmp_0;
|
|
705
705
|
var tmp_1;
|
|
706
|
-
if (isValid.call(this) && this.
|
|
706
|
+
if (isValid.call(this) && this.q2z_1.d30(new (AttoHeight())(_ULong___init__impl__c78o9k(new (Long())(1, 0)))) > 0) {
|
|
707
707
|
var tmp0 = this.amount.raw;
|
|
708
708
|
// Inline function 'kotlin.ULong.compareTo' call
|
|
709
709
|
// Inline function 'kotlin.UInt.toULong' call
|
|
@@ -719,7 +719,7 @@ function AttoSendBlock() {
|
|
|
719
719
|
tmp_1 = false;
|
|
720
720
|
}
|
|
721
721
|
if (tmp_1) {
|
|
722
|
-
tmp_0 = !this.receiverPublicKey.equals(this.
|
|
722
|
+
tmp_0 = !this.receiverPublicKey.equals(this.p2z_1);
|
|
723
723
|
} else {
|
|
724
724
|
tmp_0 = false;
|
|
725
725
|
}
|
|
@@ -731,67 +731,67 @@ function AttoSendBlock() {
|
|
|
731
731
|
return tmp;
|
|
732
732
|
}
|
|
733
733
|
gl() {
|
|
734
|
-
return this.
|
|
734
|
+
return this.m2z_1;
|
|
735
735
|
}
|
|
736
736
|
hl() {
|
|
737
|
-
return this.
|
|
737
|
+
return this.n2z_1;
|
|
738
738
|
}
|
|
739
|
-
|
|
740
|
-
return this.
|
|
739
|
+
t2w() {
|
|
740
|
+
return this.o2z_1;
|
|
741
741
|
}
|
|
742
|
-
|
|
743
|
-
return this.
|
|
742
|
+
u2w() {
|
|
743
|
+
return this.p2z_1;
|
|
744
744
|
}
|
|
745
|
-
|
|
746
|
-
return this.
|
|
745
|
+
v2w() {
|
|
746
|
+
return this.q2z_1;
|
|
747
747
|
}
|
|
748
|
-
|
|
749
|
-
return this.
|
|
748
|
+
w2w() {
|
|
749
|
+
return this.r2z_1;
|
|
750
750
|
}
|
|
751
|
-
|
|
752
|
-
return this.
|
|
751
|
+
x2w() {
|
|
752
|
+
return this.s2z_1;
|
|
753
753
|
}
|
|
754
|
-
|
|
755
|
-
return this.
|
|
754
|
+
y2w() {
|
|
755
|
+
return this.t2z_1;
|
|
756
756
|
}
|
|
757
|
-
|
|
757
|
+
z2w() {
|
|
758
758
|
return this.receiverAlgorithm;
|
|
759
759
|
}
|
|
760
|
-
|
|
760
|
+
a2x() {
|
|
761
761
|
return this.receiverPublicKey;
|
|
762
762
|
}
|
|
763
|
-
|
|
763
|
+
e30() {
|
|
764
764
|
return this.amount;
|
|
765
765
|
}
|
|
766
|
-
|
|
766
|
+
f30(network, version, algorithm, publicKey, height, balance, timestamp, previous, receiverAlgorithm, receiverPublicKey, amount) {
|
|
767
767
|
return new (AttoSendBlock())(network, version, algorithm, publicKey, height, balance, timestamp, previous, receiverAlgorithm, receiverPublicKey, amount);
|
|
768
768
|
}
|
|
769
769
|
copy(network, version, algorithm, publicKey, height, balance, timestamp, previous, receiverAlgorithm, receiverPublicKey, amount, $super) {
|
|
770
|
-
network = network === VOID ? this.
|
|
771
|
-
version = version === VOID ? this.
|
|
772
|
-
algorithm = algorithm === VOID ? this.
|
|
773
|
-
publicKey = publicKey === VOID ? this.
|
|
774
|
-
height = height === VOID ? this.
|
|
775
|
-
balance = balance === VOID ? this.
|
|
776
|
-
timestamp = timestamp === VOID ? this.
|
|
777
|
-
previous = previous === VOID ? this.
|
|
770
|
+
network = network === VOID ? this.m2z_1 : network;
|
|
771
|
+
version = version === VOID ? this.n2z_1 : version;
|
|
772
|
+
algorithm = algorithm === VOID ? this.o2z_1 : algorithm;
|
|
773
|
+
publicKey = publicKey === VOID ? this.p2z_1 : publicKey;
|
|
774
|
+
height = height === VOID ? this.q2z_1 : height;
|
|
775
|
+
balance = balance === VOID ? this.r2z_1 : balance;
|
|
776
|
+
timestamp = timestamp === VOID ? this.s2z_1 : timestamp;
|
|
777
|
+
previous = previous === VOID ? this.t2z_1 : previous;
|
|
778
778
|
receiverAlgorithm = receiverAlgorithm === VOID ? this.receiverAlgorithm : receiverAlgorithm;
|
|
779
779
|
receiverPublicKey = receiverPublicKey === VOID ? this.receiverPublicKey : receiverPublicKey;
|
|
780
780
|
amount = amount === VOID ? this.amount : amount;
|
|
781
|
-
return $super === VOID ? this.
|
|
781
|
+
return $super === VOID ? this.f30(network, version, algorithm, publicKey, height, balance, timestamp, previous, receiverAlgorithm, receiverPublicKey, amount) : $super.f30.call(this, network, version, algorithm, publicKey, height, balance, timestamp, previous, receiverAlgorithm, receiverPublicKey, amount);
|
|
782
782
|
}
|
|
783
783
|
toString() {
|
|
784
|
-
return 'AttoSendBlock(network=' + this.
|
|
784
|
+
return 'AttoSendBlock(network=' + this.m2z_1.toString() + ', version=' + this.n2z_1.toString() + ', algorithm=' + this.o2z_1.toString() + ', publicKey=' + this.p2z_1.toString() + ', height=' + this.q2z_1.toString() + ', balance=' + this.r2z_1.toString() + ', timestamp=' + this.s2z_1.toString() + ', previous=' + this.t2z_1.toString() + ', receiverAlgorithm=' + this.receiverAlgorithm.toString() + ', receiverPublicKey=' + this.receiverPublicKey.toString() + ', amount=' + this.amount.toString() + ')';
|
|
785
785
|
}
|
|
786
786
|
hashCode() {
|
|
787
|
-
var result = this.
|
|
788
|
-
result = imul(result, 31) + this.
|
|
789
|
-
result = imul(result, 31) + this.
|
|
790
|
-
result = imul(result, 31) + this.
|
|
791
|
-
result = imul(result, 31) + this.
|
|
792
|
-
result = imul(result, 31) + this.
|
|
793
|
-
result = imul(result, 31) + this.
|
|
794
|
-
result = imul(result, 31) + this.
|
|
787
|
+
var result = this.m2z_1.hashCode();
|
|
788
|
+
result = imul(result, 31) + this.n2z_1.hashCode() | 0;
|
|
789
|
+
result = imul(result, 31) + this.o2z_1.hashCode() | 0;
|
|
790
|
+
result = imul(result, 31) + this.p2z_1.hashCode() | 0;
|
|
791
|
+
result = imul(result, 31) + this.q2z_1.hashCode() | 0;
|
|
792
|
+
result = imul(result, 31) + this.r2z_1.hashCode() | 0;
|
|
793
|
+
result = imul(result, 31) + this.s2z_1.hashCode() | 0;
|
|
794
|
+
result = imul(result, 31) + this.t2z_1.hashCode() | 0;
|
|
795
795
|
result = imul(result, 31) + this.receiverAlgorithm.hashCode() | 0;
|
|
796
796
|
result = imul(result, 31) + this.receiverPublicKey.hashCode() | 0;
|
|
797
797
|
result = imul(result, 31) + this.amount.hashCode() | 0;
|
|
@@ -803,21 +803,21 @@ function AttoSendBlock() {
|
|
|
803
803
|
if (!(other instanceof AttoSendBlock()))
|
|
804
804
|
return false;
|
|
805
805
|
var tmp0_other_with_cast = other instanceof AttoSendBlock() ? other : THROW_CCE();
|
|
806
|
-
if (!this.
|
|
806
|
+
if (!this.m2z_1.equals(tmp0_other_with_cast.m2z_1))
|
|
807
807
|
return false;
|
|
808
|
-
if (!this.
|
|
808
|
+
if (!this.n2z_1.equals(tmp0_other_with_cast.n2z_1))
|
|
809
809
|
return false;
|
|
810
|
-
if (!this.
|
|
810
|
+
if (!this.o2z_1.equals(tmp0_other_with_cast.o2z_1))
|
|
811
811
|
return false;
|
|
812
|
-
if (!this.
|
|
812
|
+
if (!this.p2z_1.equals(tmp0_other_with_cast.p2z_1))
|
|
813
813
|
return false;
|
|
814
|
-
if (!this.
|
|
814
|
+
if (!this.q2z_1.equals(tmp0_other_with_cast.q2z_1))
|
|
815
815
|
return false;
|
|
816
|
-
if (!this.
|
|
816
|
+
if (!this.r2z_1.equals(tmp0_other_with_cast.r2z_1))
|
|
817
817
|
return false;
|
|
818
|
-
if (!this.
|
|
818
|
+
if (!this.s2z_1.equals(tmp0_other_with_cast.s2z_1))
|
|
819
819
|
return false;
|
|
820
|
-
if (!this.
|
|
820
|
+
if (!this.t2z_1.equals(tmp0_other_with_cast.t2z_1))
|
|
821
821
|
return false;
|
|
822
822
|
if (!this.receiverAlgorithm.equals(tmp0_other_with_cast.receiverAlgorithm))
|
|
823
823
|
return false;
|
|
@@ -827,67 +827,67 @@ function AttoSendBlock() {
|
|
|
827
827
|
return false;
|
|
828
828
|
return true;
|
|
829
829
|
}
|
|
830
|
-
static
|
|
830
|
+
static y2z(seen0, network, version, algorithm, publicKey, height, balance, timestamp, previous, receiverAlgorithm, receiverPublicKey, amount, serializationConstructorMarker) {
|
|
831
831
|
Companion_getInstance_4();
|
|
832
832
|
if (!(2047 === (2047 & seen0))) {
|
|
833
|
-
throwMissingFieldException(seen0, 2047, $serializer_getInstance().
|
|
833
|
+
throwMissingFieldException(seen0, 2047, $serializer_getInstance().k2z_1);
|
|
834
834
|
}
|
|
835
835
|
var $this = createThis(this);
|
|
836
|
-
$this.
|
|
837
|
-
$this.
|
|
838
|
-
$this.
|
|
839
|
-
$this.
|
|
840
|
-
$this.
|
|
841
|
-
$this.
|
|
842
|
-
$this.
|
|
843
|
-
$this.
|
|
836
|
+
$this.m2z_1 = network;
|
|
837
|
+
$this.n2z_1 = version;
|
|
838
|
+
$this.o2z_1 = algorithm;
|
|
839
|
+
$this.p2z_1 = publicKey;
|
|
840
|
+
$this.q2z_1 = height;
|
|
841
|
+
$this.r2z_1 = balance;
|
|
842
|
+
$this.s2z_1 = timestamp;
|
|
843
|
+
$this.t2z_1 = previous;
|
|
844
844
|
$this.receiverAlgorithm = receiverAlgorithm;
|
|
845
845
|
$this.receiverPublicKey = receiverPublicKey;
|
|
846
846
|
$this.amount = amount;
|
|
847
|
-
$this.
|
|
847
|
+
$this.u2z_1 = AttoBlockType_SEND_getInstance();
|
|
848
848
|
var tmp = $this;
|
|
849
|
-
tmp.
|
|
849
|
+
tmp.v2z_1 = lazy_0(AttoSendBlock$_init_$lambda_dfxw6s($this));
|
|
850
850
|
var tmp_0 = $this;
|
|
851
|
-
tmp_0.
|
|
851
|
+
tmp_0.w2z_1 = lazy_0(AttoSendBlock$_init_$lambda_dfxw6s_0($this));
|
|
852
852
|
var tmp_1 = $this;
|
|
853
|
-
tmp_1.
|
|
853
|
+
tmp_1.x2z_1 = lazy_0(AttoSendBlock$_init_$lambda_dfxw6s_1($this));
|
|
854
854
|
return $this;
|
|
855
855
|
}
|
|
856
856
|
get network() {
|
|
857
|
-
return this.
|
|
857
|
+
return this.f2w();
|
|
858
858
|
}
|
|
859
859
|
get version() {
|
|
860
|
-
return this.
|
|
860
|
+
return this.g2w();
|
|
861
861
|
}
|
|
862
862
|
get algorithm() {
|
|
863
|
-
return this.
|
|
863
|
+
return this.h2w();
|
|
864
864
|
}
|
|
865
865
|
get publicKey() {
|
|
866
|
-
return this.
|
|
866
|
+
return this.e2w();
|
|
867
867
|
}
|
|
868
868
|
get height() {
|
|
869
|
-
return this.
|
|
869
|
+
return this.i2w();
|
|
870
870
|
}
|
|
871
871
|
get balance() {
|
|
872
|
-
return this.
|
|
872
|
+
return this.j2w();
|
|
873
873
|
}
|
|
874
874
|
get timestamp() {
|
|
875
|
-
return this.
|
|
875
|
+
return this.o2x();
|
|
876
876
|
}
|
|
877
877
|
get previous() {
|
|
878
|
-
return this.
|
|
878
|
+
return this.h2z();
|
|
879
879
|
}
|
|
880
880
|
get type() {
|
|
881
|
-
return this.
|
|
881
|
+
return this.e2z();
|
|
882
882
|
}
|
|
883
883
|
get hash() {
|
|
884
|
-
return this.
|
|
884
|
+
return this.j2x();
|
|
885
885
|
}
|
|
886
886
|
get address() {
|
|
887
|
-
return this.
|
|
887
|
+
return this.o2w();
|
|
888
888
|
}
|
|
889
889
|
get receiverAddress() {
|
|
890
|
-
return this.
|
|
890
|
+
return this.c30();
|
|
891
891
|
}
|
|
892
892
|
}
|
|
893
893
|
initMetadataForClass($, 'AttoSendBlock', VOID, VOID, [AttoBlock(), PreviousSupport()], VOID, VOID, {0: $serializer_getInstance});
|
|
@@ -899,10 +899,10 @@ function AttoReceiveBlock$Companion$$childSerializers$_anonymous__x8ud9u() {
|
|
|
899
899
|
return createSimpleEnumSerializer('cash.atto.commons.AttoNetwork', values());
|
|
900
900
|
}
|
|
901
901
|
function AttoReceiveBlock$Companion$$childSerializers$_anonymous__x8ud9u_0() {
|
|
902
|
-
return Companion_getInstance_0().
|
|
902
|
+
return Companion_getInstance_0().e2v();
|
|
903
903
|
}
|
|
904
904
|
function AttoReceiveBlock$Companion$$childSerializers$_anonymous__x8ud9u_1() {
|
|
905
|
-
return Companion_getInstance_0().
|
|
905
|
+
return Companion_getInstance_0().e2v();
|
|
906
906
|
}
|
|
907
907
|
var CompanionClass_2;
|
|
908
908
|
function Companion_2() {
|
|
@@ -919,9 +919,9 @@ function Companion_2() {
|
|
|
919
919
|
// Inline function 'kotlin.arrayOf' call
|
|
920
920
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
921
921
|
// Inline function 'kotlin.js.asDynamic' call
|
|
922
|
-
tmp.
|
|
922
|
+
tmp.b2z_1 = [tmp_1, null, tmp_3, null, null, null, null, null, lazy(tmp_4, AttoReceiveBlock$Companion$$childSerializers$_anonymous__x8ud9u_1), null];
|
|
923
923
|
}
|
|
924
|
-
|
|
924
|
+
a2z(serializedBlock) {
|
|
925
925
|
if (toLong(AttoBlockType_RECEIVE_getInstance().size).a2(serializedBlock.i1()) > 0) {
|
|
926
926
|
return null;
|
|
927
927
|
}
|
|
@@ -931,7 +931,7 @@ function Companion_2() {
|
|
|
931
931
|
}
|
|
932
932
|
return new (AttoReceiveBlock())(readAttoNetwork(serializedBlock), readAttoVersion(serializedBlock), readAttoAlgorithm(serializedBlock), readAttoPublicKey(serializedBlock), readAttoHeight(serializedBlock), readAttoAmount(serializedBlock), readInstant(serializedBlock), readAttoHash(serializedBlock), readAttoAlgorithm(serializedBlock), readAttoHash(serializedBlock));
|
|
933
933
|
}
|
|
934
|
-
|
|
934
|
+
e2v() {
|
|
935
935
|
return $serializer_getInstance_0();
|
|
936
936
|
}
|
|
937
937
|
}
|
|
@@ -963,29 +963,29 @@ function $serializer_0() {
|
|
|
963
963
|
tmp0_serialDesc.w14('previous', false);
|
|
964
964
|
tmp0_serialDesc.w14('sendHashAlgorithm', false);
|
|
965
965
|
tmp0_serialDesc.w14('sendHash', false);
|
|
966
|
-
this.
|
|
966
|
+
this.g30_1 = tmp0_serialDesc;
|
|
967
967
|
}
|
|
968
|
-
|
|
969
|
-
var tmp0_desc = this.
|
|
968
|
+
h30(encoder, value) {
|
|
969
|
+
var tmp0_desc = this.g30_1;
|
|
970
970
|
var tmp1_output = encoder.kx(tmp0_desc);
|
|
971
|
-
var tmp2_cached = Companion_getInstance_5().
|
|
972
|
-
tmp1_output.bz(tmp0_desc, 0, tmp2_cached[0].s1(), value.
|
|
973
|
-
tmp1_output.bz(tmp0_desc, 1, AttoVersionSerializer_getInstance(), value.
|
|
974
|
-
tmp1_output.bz(tmp0_desc, 2, tmp2_cached[2].s1(), value.
|
|
975
|
-
tmp1_output.bz(tmp0_desc, 3, AttoPublicKeySerializer_getInstance(), value.
|
|
976
|
-
tmp1_output.bz(tmp0_desc, 4, AttoHeightSerializer_getInstance(), value.
|
|
977
|
-
tmp1_output.bz(tmp0_desc, 5, AttoAmountSerializer_getInstance(), value.
|
|
978
|
-
tmp1_output.bz(tmp0_desc, 6, InstantMillisSerializer_getInstance(), value.
|
|
979
|
-
tmp1_output.bz(tmp0_desc, 7, AttoHashSerializer_getInstance(), value.
|
|
980
|
-
tmp1_output.bz(tmp0_desc, 8, tmp2_cached[8].s1(), value.
|
|
981
|
-
tmp1_output.bz(tmp0_desc, 9, AttoHashSerializer_getInstance(), value.
|
|
971
|
+
var tmp2_cached = Companion_getInstance_5().b2z_1;
|
|
972
|
+
tmp1_output.bz(tmp0_desc, 0, tmp2_cached[0].s1(), value.i30_1);
|
|
973
|
+
tmp1_output.bz(tmp0_desc, 1, AttoVersionSerializer_getInstance(), value.j30_1);
|
|
974
|
+
tmp1_output.bz(tmp0_desc, 2, tmp2_cached[2].s1(), value.k30_1);
|
|
975
|
+
tmp1_output.bz(tmp0_desc, 3, AttoPublicKeySerializer_getInstance(), value.l30_1);
|
|
976
|
+
tmp1_output.bz(tmp0_desc, 4, AttoHeightSerializer_getInstance(), value.m30_1);
|
|
977
|
+
tmp1_output.bz(tmp0_desc, 5, AttoAmountSerializer_getInstance(), value.n30_1);
|
|
978
|
+
tmp1_output.bz(tmp0_desc, 6, InstantMillisSerializer_getInstance(), value.o30_1);
|
|
979
|
+
tmp1_output.bz(tmp0_desc, 7, AttoHashSerializer_getInstance(), value.p30_1);
|
|
980
|
+
tmp1_output.bz(tmp0_desc, 8, tmp2_cached[8].s1(), value.q30_1);
|
|
981
|
+
tmp1_output.bz(tmp0_desc, 9, AttoHashSerializer_getInstance(), value.r30_1);
|
|
982
982
|
tmp1_output.lx(tmp0_desc);
|
|
983
983
|
}
|
|
984
984
|
ys(encoder, value) {
|
|
985
|
-
return this.
|
|
985
|
+
return this.h30(encoder, value instanceof AttoReceiveBlock() ? value : THROW_CCE());
|
|
986
986
|
}
|
|
987
987
|
zs(decoder) {
|
|
988
|
-
var tmp0_desc = this.
|
|
988
|
+
var tmp0_desc = this.g30_1;
|
|
989
989
|
var tmp1_flag = true;
|
|
990
990
|
var tmp2_index = 0;
|
|
991
991
|
var tmp3_bitMask0 = 0;
|
|
@@ -1000,7 +1000,7 @@ function $serializer_0() {
|
|
|
1000
1000
|
var tmp12_local8 = null;
|
|
1001
1001
|
var tmp13_local9 = null;
|
|
1002
1002
|
var tmp17_input = decoder.kx(tmp0_desc);
|
|
1003
|
-
var tmp18_cached = Companion_getInstance_5().
|
|
1003
|
+
var tmp18_cached = Companion_getInstance_5().b2z_1;
|
|
1004
1004
|
if (tmp17_input.zx()) {
|
|
1005
1005
|
tmp4_local0 = tmp17_input.wx(tmp0_desc, 0, tmp18_cached[0].s1(), tmp4_local0);
|
|
1006
1006
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
@@ -1074,13 +1074,13 @@ function $serializer_0() {
|
|
|
1074
1074
|
}
|
|
1075
1075
|
}
|
|
1076
1076
|
tmp17_input.lx(tmp0_desc);
|
|
1077
|
-
return AttoReceiveBlock().
|
|
1077
|
+
return AttoReceiveBlock().v30(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, tmp12_local8, tmp13_local9, null);
|
|
1078
1078
|
}
|
|
1079
1079
|
xs() {
|
|
1080
|
-
return this.
|
|
1080
|
+
return this.g30_1;
|
|
1081
1081
|
}
|
|
1082
1082
|
l15() {
|
|
1083
|
-
var tmp0_cached = Companion_getInstance_5().
|
|
1083
|
+
var tmp0_cached = Companion_getInstance_5().b2z_1;
|
|
1084
1084
|
// Inline function 'kotlin.arrayOf' call
|
|
1085
1085
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
1086
1086
|
// Inline function 'kotlin.js.asDynamic' call
|
|
@@ -1101,7 +1101,7 @@ function $serializer_getInstance_0() {
|
|
|
1101
1101
|
}
|
|
1102
1102
|
function AttoReceiveBlock$hash$delegate$lambda(this$0) {
|
|
1103
1103
|
return function () {
|
|
1104
|
-
return hash(this$0.
|
|
1104
|
+
return hash(this$0.f2z());
|
|
1105
1105
|
};
|
|
1106
1106
|
}
|
|
1107
1107
|
function AttoReceiveBlock$_get_hash_$ref_1uzri0() {
|
|
@@ -1111,7 +1111,7 @@ function AttoReceiveBlock$_get_hash_$ref_1uzri0() {
|
|
|
1111
1111
|
}
|
|
1112
1112
|
function AttoReceiveBlock$address$delegate$lambda(this$0) {
|
|
1113
1113
|
return function () {
|
|
1114
|
-
return new (AttoAddress())(this$0.
|
|
1114
|
+
return new (AttoAddress())(this$0.k30_1, this$0.l30_1);
|
|
1115
1115
|
};
|
|
1116
1116
|
}
|
|
1117
1117
|
function AttoReceiveBlock$_get_address_$ref_otvr40() {
|
|
@@ -1121,12 +1121,12 @@ function AttoReceiveBlock$_get_address_$ref_otvr40() {
|
|
|
1121
1121
|
}
|
|
1122
1122
|
function AttoReceiveBlock$_init_$lambda_4ot8lv(this$0) {
|
|
1123
1123
|
return function () {
|
|
1124
|
-
return hash(this$0.
|
|
1124
|
+
return hash(this$0.f2z());
|
|
1125
1125
|
};
|
|
1126
1126
|
}
|
|
1127
1127
|
function AttoReceiveBlock$_init_$lambda_4ot8lv_0(this$0) {
|
|
1128
1128
|
return function () {
|
|
1129
|
-
return new (AttoAddress())(this$0.
|
|
1129
|
+
return new (AttoAddress())(this$0.k30_1, this$0.l30_1);
|
|
1130
1130
|
};
|
|
1131
1131
|
}
|
|
1132
1132
|
var AttoReceiveBlockClass;
|
|
@@ -1135,148 +1135,148 @@ function AttoReceiveBlock() {
|
|
|
1135
1135
|
class $ {
|
|
1136
1136
|
constructor(network, version, algorithm, publicKey, height, balance, timestamp, previous, sendHashAlgorithm, sendHash) {
|
|
1137
1137
|
Companion_getInstance_5();
|
|
1138
|
-
this.
|
|
1139
|
-
this.
|
|
1140
|
-
this.
|
|
1141
|
-
this.
|
|
1142
|
-
this.
|
|
1143
|
-
this.
|
|
1144
|
-
this.
|
|
1145
|
-
this.
|
|
1146
|
-
this.
|
|
1147
|
-
this.
|
|
1148
|
-
this.
|
|
1138
|
+
this.i30_1 = network;
|
|
1139
|
+
this.j30_1 = version;
|
|
1140
|
+
this.k30_1 = algorithm;
|
|
1141
|
+
this.l30_1 = publicKey;
|
|
1142
|
+
this.m30_1 = height;
|
|
1143
|
+
this.n30_1 = balance;
|
|
1144
|
+
this.o30_1 = timestamp;
|
|
1145
|
+
this.p30_1 = previous;
|
|
1146
|
+
this.q30_1 = sendHashAlgorithm;
|
|
1147
|
+
this.r30_1 = sendHash;
|
|
1148
|
+
this.s30_1 = AttoBlockType_RECEIVE_getInstance();
|
|
1149
1149
|
var tmp = this;
|
|
1150
|
-
tmp.
|
|
1150
|
+
tmp.t30_1 = lazy_0(AttoReceiveBlock$hash$delegate$lambda(this));
|
|
1151
1151
|
var tmp_0 = this;
|
|
1152
|
-
tmp_0.
|
|
1152
|
+
tmp_0.u30_1 = lazy_0(AttoReceiveBlock$address$delegate$lambda(this));
|
|
1153
1153
|
}
|
|
1154
|
-
|
|
1155
|
-
return this.
|
|
1154
|
+
f2w() {
|
|
1155
|
+
return this.i30_1;
|
|
1156
1156
|
}
|
|
1157
|
-
|
|
1158
|
-
return this.
|
|
1157
|
+
g2w() {
|
|
1158
|
+
return this.j30_1;
|
|
1159
1159
|
}
|
|
1160
|
-
|
|
1161
|
-
return this.
|
|
1160
|
+
h2w() {
|
|
1161
|
+
return this.k30_1;
|
|
1162
1162
|
}
|
|
1163
|
-
|
|
1164
|
-
return this.
|
|
1163
|
+
e2w() {
|
|
1164
|
+
return this.l30_1;
|
|
1165
1165
|
}
|
|
1166
|
-
|
|
1167
|
-
return this.
|
|
1166
|
+
i2w() {
|
|
1167
|
+
return this.m30_1;
|
|
1168
1168
|
}
|
|
1169
|
-
|
|
1170
|
-
return this.
|
|
1169
|
+
j2w() {
|
|
1170
|
+
return this.n30_1;
|
|
1171
1171
|
}
|
|
1172
|
-
|
|
1173
|
-
return this.
|
|
1172
|
+
o2x() {
|
|
1173
|
+
return this.o30_1;
|
|
1174
1174
|
}
|
|
1175
|
-
|
|
1176
|
-
return this.
|
|
1175
|
+
h2z() {
|
|
1176
|
+
return this.p30_1;
|
|
1177
1177
|
}
|
|
1178
|
-
|
|
1179
|
-
return this.
|
|
1178
|
+
i2z() {
|
|
1179
|
+
return this.q30_1;
|
|
1180
1180
|
}
|
|
1181
|
-
|
|
1182
|
-
return this.
|
|
1181
|
+
j2z() {
|
|
1182
|
+
return this.r30_1;
|
|
1183
1183
|
}
|
|
1184
|
-
|
|
1185
|
-
return this.
|
|
1184
|
+
e2z() {
|
|
1185
|
+
return this.s30_1;
|
|
1186
1186
|
}
|
|
1187
|
-
|
|
1188
|
-
var tmp0 = this.
|
|
1187
|
+
j2x() {
|
|
1188
|
+
var tmp0 = this.t30_1;
|
|
1189
1189
|
var tmp = KProperty1();
|
|
1190
1190
|
// Inline function 'kotlin.getValue' call
|
|
1191
1191
|
getPropertyCallableRef('hash', 1, tmp, AttoReceiveBlock$_get_hash_$ref_1uzri0(), null);
|
|
1192
1192
|
return tmp0.s1();
|
|
1193
1193
|
}
|
|
1194
|
-
|
|
1195
|
-
var tmp0 = this.
|
|
1194
|
+
o2w() {
|
|
1195
|
+
var tmp0 = this.u30_1;
|
|
1196
1196
|
var tmp = KProperty1();
|
|
1197
1197
|
// Inline function 'kotlin.getValue' call
|
|
1198
1198
|
getPropertyCallableRef('address', 1, tmp, AttoReceiveBlock$_get_address_$ref_otvr40(), null);
|
|
1199
1199
|
return tmp0.s1();
|
|
1200
1200
|
}
|
|
1201
|
-
|
|
1201
|
+
f2z() {
|
|
1202
1202
|
// Inline function 'kotlin.apply' call
|
|
1203
1203
|
var this_0 = new (Buffer())();
|
|
1204
|
-
writeAttoBlockType(this_0, this.
|
|
1205
|
-
writeAttoNetwork(this_0, this.
|
|
1206
|
-
writeAttoVersion(this_0, this.
|
|
1207
|
-
writeAttoAlgorithm(this_0, this.
|
|
1208
|
-
writeAttoPublicKey(this_0, this.
|
|
1209
|
-
writeAttoHeight(this_0, this.
|
|
1210
|
-
writeAttoAmount(this_0, this.
|
|
1211
|
-
writeInstant(this_0, this.
|
|
1212
|
-
writeAttoHash(this_0, this.
|
|
1213
|
-
writeAttoAlgorithm(this_0, this.
|
|
1214
|
-
writeAttoHash(this_0, this.
|
|
1204
|
+
writeAttoBlockType(this_0, this.s30_1);
|
|
1205
|
+
writeAttoNetwork(this_0, this.i30_1);
|
|
1206
|
+
writeAttoVersion(this_0, this.j30_1);
|
|
1207
|
+
writeAttoAlgorithm(this_0, this.k30_1);
|
|
1208
|
+
writeAttoPublicKey(this_0, this.l30_1);
|
|
1209
|
+
writeAttoHeight(this_0, this.m30_1);
|
|
1210
|
+
writeAttoAmount(this_0, this.n30_1);
|
|
1211
|
+
writeInstant(this_0, this.o30_1);
|
|
1212
|
+
writeAttoHash(this_0, this.p30_1);
|
|
1213
|
+
writeAttoAlgorithm(this_0, this.q30_1);
|
|
1214
|
+
writeAttoHash(this_0, this.r30_1);
|
|
1215
1215
|
return this_0;
|
|
1216
1216
|
}
|
|
1217
1217
|
isValid() {
|
|
1218
|
-
return isValid.call(this) && this.
|
|
1218
|
+
return isValid.call(this) && this.m30_1.d30(new (AttoHeight())(_ULong___init__impl__c78o9k(new (Long())(1, 0)))) > 0 && this.n30_1.r2y(Companion_getInstance_1().MIN) > 0 && this.r30_1.value.length === this.q30_1.hashSize;
|
|
1219
1219
|
}
|
|
1220
1220
|
gl() {
|
|
1221
|
-
return this.
|
|
1221
|
+
return this.i30_1;
|
|
1222
1222
|
}
|
|
1223
1223
|
hl() {
|
|
1224
|
-
return this.
|
|
1224
|
+
return this.j30_1;
|
|
1225
1225
|
}
|
|
1226
|
-
|
|
1227
|
-
return this.
|
|
1226
|
+
t2w() {
|
|
1227
|
+
return this.k30_1;
|
|
1228
1228
|
}
|
|
1229
|
-
|
|
1230
|
-
return this.
|
|
1229
|
+
u2w() {
|
|
1230
|
+
return this.l30_1;
|
|
1231
1231
|
}
|
|
1232
|
-
|
|
1233
|
-
return this.
|
|
1232
|
+
v2w() {
|
|
1233
|
+
return this.m30_1;
|
|
1234
1234
|
}
|
|
1235
|
-
|
|
1236
|
-
return this.
|
|
1235
|
+
w2w() {
|
|
1236
|
+
return this.n30_1;
|
|
1237
1237
|
}
|
|
1238
|
-
|
|
1239
|
-
return this.
|
|
1238
|
+
x2w() {
|
|
1239
|
+
return this.o30_1;
|
|
1240
1240
|
}
|
|
1241
|
-
|
|
1242
|
-
return this.
|
|
1241
|
+
y2w() {
|
|
1242
|
+
return this.p30_1;
|
|
1243
1243
|
}
|
|
1244
|
-
|
|
1245
|
-
return this.
|
|
1244
|
+
z2w() {
|
|
1245
|
+
return this.q30_1;
|
|
1246
1246
|
}
|
|
1247
|
-
|
|
1248
|
-
return this.
|
|
1247
|
+
a2x() {
|
|
1248
|
+
return this.r30_1;
|
|
1249
1249
|
}
|
|
1250
|
-
|
|
1250
|
+
w30(network, version, algorithm, publicKey, height, balance, timestamp, previous, sendHashAlgorithm, sendHash) {
|
|
1251
1251
|
return new (AttoReceiveBlock())(network, version, algorithm, publicKey, height, balance, timestamp, previous, sendHashAlgorithm, sendHash);
|
|
1252
1252
|
}
|
|
1253
1253
|
copy(network, version, algorithm, publicKey, height, balance, timestamp, previous, sendHashAlgorithm, sendHash, $super) {
|
|
1254
|
-
network = network === VOID ? this.
|
|
1255
|
-
version = version === VOID ? this.
|
|
1256
|
-
algorithm = algorithm === VOID ? this.
|
|
1257
|
-
publicKey = publicKey === VOID ? this.
|
|
1258
|
-
height = height === VOID ? this.
|
|
1259
|
-
balance = balance === VOID ? this.
|
|
1260
|
-
timestamp = timestamp === VOID ? this.
|
|
1261
|
-
previous = previous === VOID ? this.
|
|
1262
|
-
sendHashAlgorithm = sendHashAlgorithm === VOID ? this.
|
|
1263
|
-
sendHash = sendHash === VOID ? this.
|
|
1264
|
-
return $super === VOID ? this.
|
|
1254
|
+
network = network === VOID ? this.i30_1 : network;
|
|
1255
|
+
version = version === VOID ? this.j30_1 : version;
|
|
1256
|
+
algorithm = algorithm === VOID ? this.k30_1 : algorithm;
|
|
1257
|
+
publicKey = publicKey === VOID ? this.l30_1 : publicKey;
|
|
1258
|
+
height = height === VOID ? this.m30_1 : height;
|
|
1259
|
+
balance = balance === VOID ? this.n30_1 : balance;
|
|
1260
|
+
timestamp = timestamp === VOID ? this.o30_1 : timestamp;
|
|
1261
|
+
previous = previous === VOID ? this.p30_1 : previous;
|
|
1262
|
+
sendHashAlgorithm = sendHashAlgorithm === VOID ? this.q30_1 : sendHashAlgorithm;
|
|
1263
|
+
sendHash = sendHash === VOID ? this.r30_1 : sendHash;
|
|
1264
|
+
return $super === VOID ? this.w30(network, version, algorithm, publicKey, height, balance, timestamp, previous, sendHashAlgorithm, sendHash) : $super.w30.call(this, network, version, algorithm, publicKey, height, balance, timestamp, previous, sendHashAlgorithm, sendHash);
|
|
1265
1265
|
}
|
|
1266
1266
|
toString() {
|
|
1267
|
-
return 'AttoReceiveBlock(network=' + this.
|
|
1267
|
+
return 'AttoReceiveBlock(network=' + this.i30_1.toString() + ', version=' + this.j30_1.toString() + ', algorithm=' + this.k30_1.toString() + ', publicKey=' + this.l30_1.toString() + ', height=' + this.m30_1.toString() + ', balance=' + this.n30_1.toString() + ', timestamp=' + this.o30_1.toString() + ', previous=' + this.p30_1.toString() + ', sendHashAlgorithm=' + this.q30_1.toString() + ', sendHash=' + this.r30_1.toString() + ')';
|
|
1268
1268
|
}
|
|
1269
1269
|
hashCode() {
|
|
1270
|
-
var result = this.
|
|
1271
|
-
result = imul(result, 31) + this.
|
|
1272
|
-
result = imul(result, 31) + this.
|
|
1273
|
-
result = imul(result, 31) + this.
|
|
1274
|
-
result = imul(result, 31) + this.
|
|
1275
|
-
result = imul(result, 31) + this.
|
|
1276
|
-
result = imul(result, 31) + this.
|
|
1277
|
-
result = imul(result, 31) + this.
|
|
1278
|
-
result = imul(result, 31) + this.
|
|
1279
|
-
result = imul(result, 31) + this.
|
|
1270
|
+
var result = this.i30_1.hashCode();
|
|
1271
|
+
result = imul(result, 31) + this.j30_1.hashCode() | 0;
|
|
1272
|
+
result = imul(result, 31) + this.k30_1.hashCode() | 0;
|
|
1273
|
+
result = imul(result, 31) + this.l30_1.hashCode() | 0;
|
|
1274
|
+
result = imul(result, 31) + this.m30_1.hashCode() | 0;
|
|
1275
|
+
result = imul(result, 31) + this.n30_1.hashCode() | 0;
|
|
1276
|
+
result = imul(result, 31) + this.o30_1.hashCode() | 0;
|
|
1277
|
+
result = imul(result, 31) + this.p30_1.hashCode() | 0;
|
|
1278
|
+
result = imul(result, 31) + this.q30_1.hashCode() | 0;
|
|
1279
|
+
result = imul(result, 31) + this.r30_1.hashCode() | 0;
|
|
1280
1280
|
return result;
|
|
1281
1281
|
}
|
|
1282
1282
|
equals(other) {
|
|
@@ -1285,89 +1285,89 @@ function AttoReceiveBlock() {
|
|
|
1285
1285
|
if (!(other instanceof AttoReceiveBlock()))
|
|
1286
1286
|
return false;
|
|
1287
1287
|
var tmp0_other_with_cast = other instanceof AttoReceiveBlock() ? other : THROW_CCE();
|
|
1288
|
-
if (!this.
|
|
1288
|
+
if (!this.i30_1.equals(tmp0_other_with_cast.i30_1))
|
|
1289
1289
|
return false;
|
|
1290
|
-
if (!this.
|
|
1290
|
+
if (!this.j30_1.equals(tmp0_other_with_cast.j30_1))
|
|
1291
1291
|
return false;
|
|
1292
|
-
if (!this.
|
|
1292
|
+
if (!this.k30_1.equals(tmp0_other_with_cast.k30_1))
|
|
1293
1293
|
return false;
|
|
1294
|
-
if (!this.
|
|
1294
|
+
if (!this.l30_1.equals(tmp0_other_with_cast.l30_1))
|
|
1295
1295
|
return false;
|
|
1296
|
-
if (!this.
|
|
1296
|
+
if (!this.m30_1.equals(tmp0_other_with_cast.m30_1))
|
|
1297
1297
|
return false;
|
|
1298
|
-
if (!this.
|
|
1298
|
+
if (!this.n30_1.equals(tmp0_other_with_cast.n30_1))
|
|
1299
1299
|
return false;
|
|
1300
|
-
if (!this.
|
|
1300
|
+
if (!this.o30_1.equals(tmp0_other_with_cast.o30_1))
|
|
1301
1301
|
return false;
|
|
1302
|
-
if (!this.
|
|
1302
|
+
if (!this.p30_1.equals(tmp0_other_with_cast.p30_1))
|
|
1303
1303
|
return false;
|
|
1304
|
-
if (!this.
|
|
1304
|
+
if (!this.q30_1.equals(tmp0_other_with_cast.q30_1))
|
|
1305
1305
|
return false;
|
|
1306
|
-
if (!this.
|
|
1306
|
+
if (!this.r30_1.equals(tmp0_other_with_cast.r30_1))
|
|
1307
1307
|
return false;
|
|
1308
1308
|
return true;
|
|
1309
1309
|
}
|
|
1310
|
-
static
|
|
1310
|
+
static v30(seen0, network, version, algorithm, publicKey, height, balance, timestamp, previous, sendHashAlgorithm, sendHash, serializationConstructorMarker) {
|
|
1311
1311
|
Companion_getInstance_5();
|
|
1312
1312
|
if (!(1023 === (1023 & seen0))) {
|
|
1313
|
-
throwMissingFieldException(seen0, 1023, $serializer_getInstance_0().
|
|
1313
|
+
throwMissingFieldException(seen0, 1023, $serializer_getInstance_0().g30_1);
|
|
1314
1314
|
}
|
|
1315
1315
|
var $this = createThis(this);
|
|
1316
|
-
$this.
|
|
1317
|
-
$this.
|
|
1318
|
-
$this.
|
|
1319
|
-
$this.
|
|
1320
|
-
$this.
|
|
1321
|
-
$this.
|
|
1322
|
-
$this.
|
|
1323
|
-
$this.
|
|
1324
|
-
$this.
|
|
1325
|
-
$this.
|
|
1326
|
-
$this.
|
|
1316
|
+
$this.i30_1 = network;
|
|
1317
|
+
$this.j30_1 = version;
|
|
1318
|
+
$this.k30_1 = algorithm;
|
|
1319
|
+
$this.l30_1 = publicKey;
|
|
1320
|
+
$this.m30_1 = height;
|
|
1321
|
+
$this.n30_1 = balance;
|
|
1322
|
+
$this.o30_1 = timestamp;
|
|
1323
|
+
$this.p30_1 = previous;
|
|
1324
|
+
$this.q30_1 = sendHashAlgorithm;
|
|
1325
|
+
$this.r30_1 = sendHash;
|
|
1326
|
+
$this.s30_1 = AttoBlockType_RECEIVE_getInstance();
|
|
1327
1327
|
var tmp = $this;
|
|
1328
|
-
tmp.
|
|
1328
|
+
tmp.t30_1 = lazy_0(AttoReceiveBlock$_init_$lambda_4ot8lv($this));
|
|
1329
1329
|
var tmp_0 = $this;
|
|
1330
|
-
tmp_0.
|
|
1330
|
+
tmp_0.u30_1 = lazy_0(AttoReceiveBlock$_init_$lambda_4ot8lv_0($this));
|
|
1331
1331
|
return $this;
|
|
1332
1332
|
}
|
|
1333
1333
|
get network() {
|
|
1334
|
-
return this.
|
|
1334
|
+
return this.f2w();
|
|
1335
1335
|
}
|
|
1336
1336
|
get version() {
|
|
1337
|
-
return this.
|
|
1337
|
+
return this.g2w();
|
|
1338
1338
|
}
|
|
1339
1339
|
get algorithm() {
|
|
1340
|
-
return this.
|
|
1340
|
+
return this.h2w();
|
|
1341
1341
|
}
|
|
1342
1342
|
get publicKey() {
|
|
1343
|
-
return this.
|
|
1343
|
+
return this.e2w();
|
|
1344
1344
|
}
|
|
1345
1345
|
get height() {
|
|
1346
|
-
return this.
|
|
1346
|
+
return this.i2w();
|
|
1347
1347
|
}
|
|
1348
1348
|
get balance() {
|
|
1349
|
-
return this.
|
|
1349
|
+
return this.j2w();
|
|
1350
1350
|
}
|
|
1351
1351
|
get timestamp() {
|
|
1352
|
-
return this.
|
|
1352
|
+
return this.o2x();
|
|
1353
1353
|
}
|
|
1354
1354
|
get previous() {
|
|
1355
|
-
return this.
|
|
1355
|
+
return this.h2z();
|
|
1356
1356
|
}
|
|
1357
1357
|
get sendHashAlgorithm() {
|
|
1358
|
-
return this.
|
|
1358
|
+
return this.i2z();
|
|
1359
1359
|
}
|
|
1360
1360
|
get sendHash() {
|
|
1361
|
-
return this.
|
|
1361
|
+
return this.j2z();
|
|
1362
1362
|
}
|
|
1363
1363
|
get type() {
|
|
1364
|
-
return this.
|
|
1364
|
+
return this.e2z();
|
|
1365
1365
|
}
|
|
1366
1366
|
get hash() {
|
|
1367
|
-
return this.
|
|
1367
|
+
return this.j2x();
|
|
1368
1368
|
}
|
|
1369
1369
|
get address() {
|
|
1370
|
-
return this.
|
|
1370
|
+
return this.o2w();
|
|
1371
1371
|
}
|
|
1372
1372
|
}
|
|
1373
1373
|
initMetadataForClass($, 'AttoReceiveBlock', VOID, VOID, [AttoBlock(), PreviousSupport(), ReceiveSupport()], VOID, VOID, {0: $serializer_getInstance_0});
|
|
@@ -1379,13 +1379,13 @@ function AttoOpenBlock$Companion$$childSerializers$_anonymous__8gpm3() {
|
|
|
1379
1379
|
return createSimpleEnumSerializer('cash.atto.commons.AttoNetwork', values());
|
|
1380
1380
|
}
|
|
1381
1381
|
function AttoOpenBlock$Companion$$childSerializers$_anonymous__8gpm3_0() {
|
|
1382
|
-
return Companion_getInstance_0().
|
|
1382
|
+
return Companion_getInstance_0().e2v();
|
|
1383
1383
|
}
|
|
1384
1384
|
function AttoOpenBlock$Companion$$childSerializers$_anonymous__8gpm3_1() {
|
|
1385
|
-
return Companion_getInstance_0().
|
|
1385
|
+
return Companion_getInstance_0().e2v();
|
|
1386
1386
|
}
|
|
1387
1387
|
function AttoOpenBlock$Companion$$childSerializers$_anonymous__8gpm3_2() {
|
|
1388
|
-
return Companion_getInstance_0().
|
|
1388
|
+
return Companion_getInstance_0().e2v();
|
|
1389
1389
|
}
|
|
1390
1390
|
var CompanionClass_3;
|
|
1391
1391
|
function Companion_3() {
|
|
@@ -1404,9 +1404,9 @@ function Companion_3() {
|
|
|
1404
1404
|
// Inline function 'kotlin.arrayOf' call
|
|
1405
1405
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
1406
1406
|
// Inline function 'kotlin.js.asDynamic' call
|
|
1407
|
-
tmp.
|
|
1407
|
+
tmp.c2z_1 = [tmp_1, null, tmp_3, null, null, null, tmp_5, null, lazy(tmp_6, AttoOpenBlock$Companion$$childSerializers$_anonymous__8gpm3_2), null, null];
|
|
1408
1408
|
}
|
|
1409
|
-
|
|
1409
|
+
a2z(serializedBlock) {
|
|
1410
1410
|
if (toLong(AttoBlockType_OPEN_getInstance().size).a2(serializedBlock.i1()) > 0) {
|
|
1411
1411
|
return null;
|
|
1412
1412
|
}
|
|
@@ -1416,7 +1416,7 @@ function Companion_3() {
|
|
|
1416
1416
|
}
|
|
1417
1417
|
return new (AttoOpenBlock())(readAttoNetwork(serializedBlock), readAttoVersion(serializedBlock), readAttoAlgorithm(serializedBlock), readAttoPublicKey(serializedBlock), readAttoAmount(serializedBlock), readInstant(serializedBlock), readAttoAlgorithm(serializedBlock), readAttoHash(serializedBlock), readAttoAlgorithm(serializedBlock), readAttoPublicKey(serializedBlock));
|
|
1418
1418
|
}
|
|
1419
|
-
|
|
1419
|
+
e2v() {
|
|
1420
1420
|
return $serializer_getInstance_1();
|
|
1421
1421
|
}
|
|
1422
1422
|
}
|
|
@@ -1449,30 +1449,30 @@ function $serializer_1() {
|
|
|
1449
1449
|
tmp0_serialDesc.w14('representativeAlgorithm', false);
|
|
1450
1450
|
tmp0_serialDesc.w14('representativePublicKey', false);
|
|
1451
1451
|
tmp0_serialDesc.w14('height', true);
|
|
1452
|
-
this.
|
|
1452
|
+
this.x30_1 = tmp0_serialDesc;
|
|
1453
1453
|
}
|
|
1454
|
-
|
|
1455
|
-
var tmp0_desc = this.
|
|
1454
|
+
y30(encoder, value) {
|
|
1455
|
+
var tmp0_desc = this.x30_1;
|
|
1456
1456
|
var tmp1_output = encoder.kx(tmp0_desc);
|
|
1457
|
-
var tmp2_cached = Companion_getInstance_6().
|
|
1458
|
-
tmp1_output.bz(tmp0_desc, 0, tmp2_cached[0].s1(), value.
|
|
1459
|
-
tmp1_output.bz(tmp0_desc, 1, AttoVersionSerializer_getInstance(), value.
|
|
1460
|
-
tmp1_output.bz(tmp0_desc, 2, tmp2_cached[2].s1(), value.
|
|
1461
|
-
tmp1_output.bz(tmp0_desc, 3, AttoPublicKeySerializer_getInstance(), value.
|
|
1462
|
-
tmp1_output.bz(tmp0_desc, 4, AttoAmountSerializer_getInstance(), value.
|
|
1463
|
-
tmp1_output.bz(tmp0_desc, 5, InstantMillisSerializer_getInstance(), value.
|
|
1464
|
-
tmp1_output.bz(tmp0_desc, 6, tmp2_cached[6].s1(), value.
|
|
1465
|
-
tmp1_output.bz(tmp0_desc, 7, AttoHashSerializer_getInstance(), value.
|
|
1466
|
-
tmp1_output.bz(tmp0_desc, 8, tmp2_cached[8].s1(), value.
|
|
1467
|
-
tmp1_output.bz(tmp0_desc, 9, AttoPublicKeySerializer_getInstance(), value.
|
|
1468
|
-
tmp1_output.bz(tmp0_desc, 10, AttoHeightSerializer_getInstance(), value.
|
|
1457
|
+
var tmp2_cached = Companion_getInstance_6().c2z_1;
|
|
1458
|
+
tmp1_output.bz(tmp0_desc, 0, tmp2_cached[0].s1(), value.j2v_1);
|
|
1459
|
+
tmp1_output.bz(tmp0_desc, 1, AttoVersionSerializer_getInstance(), value.k2v_1);
|
|
1460
|
+
tmp1_output.bz(tmp0_desc, 2, tmp2_cached[2].s1(), value.l2v_1);
|
|
1461
|
+
tmp1_output.bz(tmp0_desc, 3, AttoPublicKeySerializer_getInstance(), value.m2v_1);
|
|
1462
|
+
tmp1_output.bz(tmp0_desc, 4, AttoAmountSerializer_getInstance(), value.n2v_1);
|
|
1463
|
+
tmp1_output.bz(tmp0_desc, 5, InstantMillisSerializer_getInstance(), value.o2v_1);
|
|
1464
|
+
tmp1_output.bz(tmp0_desc, 6, tmp2_cached[6].s1(), value.p2v_1);
|
|
1465
|
+
tmp1_output.bz(tmp0_desc, 7, AttoHashSerializer_getInstance(), value.q2v_1);
|
|
1466
|
+
tmp1_output.bz(tmp0_desc, 8, tmp2_cached[8].s1(), value.r2v_1);
|
|
1467
|
+
tmp1_output.bz(tmp0_desc, 9, AttoPublicKeySerializer_getInstance(), value.s2v_1);
|
|
1468
|
+
tmp1_output.bz(tmp0_desc, 10, AttoHeightSerializer_getInstance(), value.v2v_1);
|
|
1469
1469
|
tmp1_output.lx(tmp0_desc);
|
|
1470
1470
|
}
|
|
1471
1471
|
ys(encoder, value) {
|
|
1472
|
-
return this.
|
|
1472
|
+
return this.y30(encoder, value instanceof AttoOpenBlock() ? value : THROW_CCE());
|
|
1473
1473
|
}
|
|
1474
1474
|
zs(decoder) {
|
|
1475
|
-
var tmp0_desc = this.
|
|
1475
|
+
var tmp0_desc = this.x30_1;
|
|
1476
1476
|
var tmp1_flag = true;
|
|
1477
1477
|
var tmp2_index = 0;
|
|
1478
1478
|
var tmp3_bitMask0 = 0;
|
|
@@ -1488,7 +1488,7 @@ function $serializer_1() {
|
|
|
1488
1488
|
var tmp13_local9 = null;
|
|
1489
1489
|
var tmp14_local10 = null;
|
|
1490
1490
|
var tmp19_input = decoder.kx(tmp0_desc);
|
|
1491
|
-
var tmp20_cached = Companion_getInstance_6().
|
|
1491
|
+
var tmp20_cached = Companion_getInstance_6().c2z_1;
|
|
1492
1492
|
if (tmp19_input.zx()) {
|
|
1493
1493
|
tmp4_local0 = tmp19_input.wx(tmp0_desc, 0, tmp20_cached[0].s1(), tmp4_local0);
|
|
1494
1494
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
@@ -1568,13 +1568,13 @@ function $serializer_1() {
|
|
|
1568
1568
|
}
|
|
1569
1569
|
}
|
|
1570
1570
|
tmp19_input.lx(tmp0_desc);
|
|
1571
|
-
return AttoOpenBlock().
|
|
1571
|
+
return AttoOpenBlock().z30(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, tmp12_local8, tmp13_local9, tmp14_local10, null);
|
|
1572
1572
|
}
|
|
1573
1573
|
xs() {
|
|
1574
|
-
return this.
|
|
1574
|
+
return this.x30_1;
|
|
1575
1575
|
}
|
|
1576
1576
|
l15() {
|
|
1577
|
-
var tmp0_cached = Companion_getInstance_6().
|
|
1577
|
+
var tmp0_cached = Companion_getInstance_6().c2z_1;
|
|
1578
1578
|
// Inline function 'kotlin.arrayOf' call
|
|
1579
1579
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
1580
1580
|
// Inline function 'kotlin.js.asDynamic' call
|
|
@@ -1595,7 +1595,7 @@ function $serializer_getInstance_1() {
|
|
|
1595
1595
|
}
|
|
1596
1596
|
function AttoOpenBlock$hash$delegate$lambda(this$0) {
|
|
1597
1597
|
return function () {
|
|
1598
|
-
return hash(this$0.
|
|
1598
|
+
return hash(this$0.f2z());
|
|
1599
1599
|
};
|
|
1600
1600
|
}
|
|
1601
1601
|
function AttoOpenBlock$_get_hash_$ref_fk78xn() {
|
|
@@ -1605,7 +1605,7 @@ function AttoOpenBlock$_get_hash_$ref_fk78xn() {
|
|
|
1605
1605
|
}
|
|
1606
1606
|
function AttoOpenBlock$address$delegate$lambda(this$0) {
|
|
1607
1607
|
return function () {
|
|
1608
|
-
return new (AttoAddress())(this$0.
|
|
1608
|
+
return new (AttoAddress())(this$0.l2v_1, this$0.m2v_1);
|
|
1609
1609
|
};
|
|
1610
1610
|
}
|
|
1611
1611
|
function AttoOpenBlock$_get_address_$ref_p6mkmb() {
|
|
@@ -1615,7 +1615,7 @@ function AttoOpenBlock$_get_address_$ref_p6mkmb() {
|
|
|
1615
1615
|
}
|
|
1616
1616
|
function AttoOpenBlock$representativeAddress$delegate$lambda(this$0) {
|
|
1617
1617
|
return function () {
|
|
1618
|
-
return new (AttoAddress())(this$0.
|
|
1618
|
+
return new (AttoAddress())(this$0.r2v_1, this$0.s2v_1);
|
|
1619
1619
|
};
|
|
1620
1620
|
}
|
|
1621
1621
|
function AttoOpenBlock$_get_representativeAddress_$ref_cjvoh2() {
|
|
@@ -1625,17 +1625,17 @@ function AttoOpenBlock$_get_representativeAddress_$ref_cjvoh2() {
|
|
|
1625
1625
|
}
|
|
1626
1626
|
function AttoOpenBlock$_init_$lambda_2mk62y(this$0) {
|
|
1627
1627
|
return function () {
|
|
1628
|
-
return hash(this$0.
|
|
1628
|
+
return hash(this$0.f2z());
|
|
1629
1629
|
};
|
|
1630
1630
|
}
|
|
1631
1631
|
function AttoOpenBlock$_init_$lambda_2mk62y_0(this$0) {
|
|
1632
1632
|
return function () {
|
|
1633
|
-
return new (AttoAddress())(this$0.
|
|
1633
|
+
return new (AttoAddress())(this$0.l2v_1, this$0.m2v_1);
|
|
1634
1634
|
};
|
|
1635
1635
|
}
|
|
1636
1636
|
function AttoOpenBlock$_init_$lambda_2mk62y_1(this$0) {
|
|
1637
1637
|
return function () {
|
|
1638
|
-
return new (AttoAddress())(this$0.
|
|
1638
|
+
return new (AttoAddress())(this$0.r2v_1, this$0.s2v_1);
|
|
1639
1639
|
};
|
|
1640
1640
|
}
|
|
1641
1641
|
var AttoOpenBlockClass;
|
|
@@ -1644,161 +1644,161 @@ function AttoOpenBlock() {
|
|
|
1644
1644
|
class $ {
|
|
1645
1645
|
constructor(network, version, algorithm, publicKey, balance, timestamp, sendHashAlgorithm, sendHash, representativeAlgorithm, representativePublicKey) {
|
|
1646
1646
|
Companion_getInstance_6();
|
|
1647
|
-
this.
|
|
1648
|
-
this.
|
|
1649
|
-
this.
|
|
1650
|
-
this.
|
|
1651
|
-
this.
|
|
1652
|
-
this.
|
|
1653
|
-
this.
|
|
1654
|
-
this.
|
|
1655
|
-
this.
|
|
1656
|
-
this.
|
|
1657
|
-
this.
|
|
1647
|
+
this.j2v_1 = network;
|
|
1648
|
+
this.k2v_1 = version;
|
|
1649
|
+
this.l2v_1 = algorithm;
|
|
1650
|
+
this.m2v_1 = publicKey;
|
|
1651
|
+
this.n2v_1 = balance;
|
|
1652
|
+
this.o2v_1 = timestamp;
|
|
1653
|
+
this.p2v_1 = sendHashAlgorithm;
|
|
1654
|
+
this.q2v_1 = sendHash;
|
|
1655
|
+
this.r2v_1 = representativeAlgorithm;
|
|
1656
|
+
this.s2v_1 = representativePublicKey;
|
|
1657
|
+
this.t2v_1 = AttoBlockType_OPEN_getInstance();
|
|
1658
1658
|
var tmp = this;
|
|
1659
|
-
tmp.
|
|
1660
|
-
this.
|
|
1659
|
+
tmp.u2v_1 = lazy_0(AttoOpenBlock$hash$delegate$lambda(this));
|
|
1660
|
+
this.v2v_1 = new (AttoHeight())(_ULong___init__impl__c78o9k(new (Long())(1, 0)));
|
|
1661
1661
|
var tmp_0 = this;
|
|
1662
|
-
tmp_0.
|
|
1662
|
+
tmp_0.w2v_1 = lazy_0(AttoOpenBlock$address$delegate$lambda(this));
|
|
1663
1663
|
var tmp_1 = this;
|
|
1664
|
-
tmp_1.
|
|
1664
|
+
tmp_1.x2v_1 = lazy_0(AttoOpenBlock$representativeAddress$delegate$lambda(this));
|
|
1665
1665
|
}
|
|
1666
|
-
|
|
1667
|
-
return this.
|
|
1666
|
+
f2w() {
|
|
1667
|
+
return this.j2v_1;
|
|
1668
1668
|
}
|
|
1669
|
-
|
|
1670
|
-
return this.
|
|
1669
|
+
g2w() {
|
|
1670
|
+
return this.k2v_1;
|
|
1671
1671
|
}
|
|
1672
|
-
|
|
1673
|
-
return this.
|
|
1672
|
+
h2w() {
|
|
1673
|
+
return this.l2v_1;
|
|
1674
1674
|
}
|
|
1675
|
-
|
|
1676
|
-
return this.
|
|
1675
|
+
e2w() {
|
|
1676
|
+
return this.m2v_1;
|
|
1677
1677
|
}
|
|
1678
|
-
|
|
1679
|
-
return this.
|
|
1678
|
+
j2w() {
|
|
1679
|
+
return this.n2v_1;
|
|
1680
1680
|
}
|
|
1681
|
-
|
|
1682
|
-
return this.
|
|
1681
|
+
o2x() {
|
|
1682
|
+
return this.o2v_1;
|
|
1683
1683
|
}
|
|
1684
|
-
|
|
1685
|
-
return this.
|
|
1684
|
+
i2z() {
|
|
1685
|
+
return this.p2v_1;
|
|
1686
1686
|
}
|
|
1687
|
-
|
|
1688
|
-
return this.
|
|
1687
|
+
j2z() {
|
|
1688
|
+
return this.q2v_1;
|
|
1689
1689
|
}
|
|
1690
|
-
|
|
1691
|
-
return this.
|
|
1690
|
+
m2w() {
|
|
1691
|
+
return this.r2v_1;
|
|
1692
1692
|
}
|
|
1693
|
-
|
|
1694
|
-
return this.
|
|
1693
|
+
n2w() {
|
|
1694
|
+
return this.s2v_1;
|
|
1695
1695
|
}
|
|
1696
|
-
|
|
1697
|
-
return this.
|
|
1696
|
+
e2z() {
|
|
1697
|
+
return this.t2v_1;
|
|
1698
1698
|
}
|
|
1699
|
-
|
|
1700
|
-
var tmp0 = this.
|
|
1699
|
+
j2x() {
|
|
1700
|
+
var tmp0 = this.u2v_1;
|
|
1701
1701
|
var tmp = KProperty1();
|
|
1702
1702
|
// Inline function 'kotlin.getValue' call
|
|
1703
1703
|
getPropertyCallableRef('hash', 1, tmp, AttoOpenBlock$_get_hash_$ref_fk78xn(), null);
|
|
1704
1704
|
return tmp0.s1();
|
|
1705
1705
|
}
|
|
1706
|
-
|
|
1707
|
-
return this.
|
|
1706
|
+
i2w() {
|
|
1707
|
+
return this.v2v_1;
|
|
1708
1708
|
}
|
|
1709
|
-
|
|
1710
|
-
var tmp0 = this.
|
|
1709
|
+
o2w() {
|
|
1710
|
+
var tmp0 = this.w2v_1;
|
|
1711
1711
|
var tmp = KProperty1();
|
|
1712
1712
|
// Inline function 'kotlin.getValue' call
|
|
1713
1713
|
getPropertyCallableRef('address', 1, tmp, AttoOpenBlock$_get_address_$ref_p6mkmb(), null);
|
|
1714
1714
|
return tmp0.s1();
|
|
1715
1715
|
}
|
|
1716
|
-
|
|
1717
|
-
var tmp0 = this.
|
|
1716
|
+
p2w() {
|
|
1717
|
+
var tmp0 = this.x2v_1;
|
|
1718
1718
|
var tmp = KProperty1();
|
|
1719
1719
|
// Inline function 'kotlin.getValue' call
|
|
1720
1720
|
getPropertyCallableRef('representativeAddress', 1, tmp, AttoOpenBlock$_get_representativeAddress_$ref_cjvoh2(), null);
|
|
1721
1721
|
return tmp0.s1();
|
|
1722
1722
|
}
|
|
1723
|
-
|
|
1723
|
+
f2z() {
|
|
1724
1724
|
// Inline function 'kotlin.apply' call
|
|
1725
1725
|
var this_0 = new (Buffer())();
|
|
1726
|
-
writeAttoBlockType(this_0, this.
|
|
1727
|
-
writeAttoNetwork(this_0, this.
|
|
1728
|
-
writeAttoVersion(this_0, this.
|
|
1729
|
-
writeAttoAlgorithm(this_0, this.
|
|
1730
|
-
writeAttoPublicKey(this_0, this.
|
|
1731
|
-
writeAttoAmount(this_0, this.
|
|
1732
|
-
writeInstant(this_0, this.
|
|
1733
|
-
writeAttoAlgorithm(this_0, this.
|
|
1734
|
-
writeAttoHash(this_0, this.
|
|
1735
|
-
writeAttoAlgorithm(this_0, this.
|
|
1736
|
-
writeAttoPublicKey(this_0, this.
|
|
1726
|
+
writeAttoBlockType(this_0, this.t2v_1);
|
|
1727
|
+
writeAttoNetwork(this_0, this.j2v_1);
|
|
1728
|
+
writeAttoVersion(this_0, this.k2v_1);
|
|
1729
|
+
writeAttoAlgorithm(this_0, this.l2v_1);
|
|
1730
|
+
writeAttoPublicKey(this_0, this.m2v_1);
|
|
1731
|
+
writeAttoAmount(this_0, this.n2v_1);
|
|
1732
|
+
writeInstant(this_0, this.o2v_1);
|
|
1733
|
+
writeAttoAlgorithm(this_0, this.p2v_1);
|
|
1734
|
+
writeAttoHash(this_0, this.q2v_1);
|
|
1735
|
+
writeAttoAlgorithm(this_0, this.r2v_1);
|
|
1736
|
+
writeAttoPublicKey(this_0, this.s2v_1);
|
|
1737
1737
|
return this_0;
|
|
1738
1738
|
}
|
|
1739
1739
|
isValid() {
|
|
1740
|
-
return isValid.call(this) && this.
|
|
1740
|
+
return isValid.call(this) && this.n2v_1.r2y(Companion_getInstance_1().MIN) > 0 && this.q2v_1.value.length === this.p2v_1.hashSize;
|
|
1741
1741
|
}
|
|
1742
1742
|
gl() {
|
|
1743
|
-
return this.
|
|
1743
|
+
return this.j2v_1;
|
|
1744
1744
|
}
|
|
1745
1745
|
hl() {
|
|
1746
|
-
return this.
|
|
1746
|
+
return this.k2v_1;
|
|
1747
1747
|
}
|
|
1748
|
-
|
|
1749
|
-
return this.
|
|
1748
|
+
t2w() {
|
|
1749
|
+
return this.l2v_1;
|
|
1750
1750
|
}
|
|
1751
|
-
|
|
1752
|
-
return this.
|
|
1751
|
+
u2w() {
|
|
1752
|
+
return this.m2v_1;
|
|
1753
1753
|
}
|
|
1754
|
-
|
|
1755
|
-
return this.
|
|
1754
|
+
v2w() {
|
|
1755
|
+
return this.n2v_1;
|
|
1756
1756
|
}
|
|
1757
|
-
|
|
1758
|
-
return this.
|
|
1757
|
+
w2w() {
|
|
1758
|
+
return this.o2v_1;
|
|
1759
1759
|
}
|
|
1760
|
-
|
|
1761
|
-
return this.
|
|
1760
|
+
x2w() {
|
|
1761
|
+
return this.p2v_1;
|
|
1762
1762
|
}
|
|
1763
|
-
|
|
1764
|
-
return this.
|
|
1763
|
+
y2w() {
|
|
1764
|
+
return this.q2v_1;
|
|
1765
1765
|
}
|
|
1766
|
-
|
|
1767
|
-
return this.
|
|
1766
|
+
z2w() {
|
|
1767
|
+
return this.r2v_1;
|
|
1768
1768
|
}
|
|
1769
|
-
|
|
1770
|
-
return this.
|
|
1769
|
+
a2x() {
|
|
1770
|
+
return this.s2v_1;
|
|
1771
1771
|
}
|
|
1772
|
-
|
|
1772
|
+
a31(network, version, algorithm, publicKey, balance, timestamp, sendHashAlgorithm, sendHash, representativeAlgorithm, representativePublicKey) {
|
|
1773
1773
|
return new (AttoOpenBlock())(network, version, algorithm, publicKey, balance, timestamp, sendHashAlgorithm, sendHash, representativeAlgorithm, representativePublicKey);
|
|
1774
1774
|
}
|
|
1775
1775
|
copy(network, version, algorithm, publicKey, balance, timestamp, sendHashAlgorithm, sendHash, representativeAlgorithm, representativePublicKey, $super) {
|
|
1776
|
-
network = network === VOID ? this.
|
|
1777
|
-
version = version === VOID ? this.
|
|
1778
|
-
algorithm = algorithm === VOID ? this.
|
|
1779
|
-
publicKey = publicKey === VOID ? this.
|
|
1780
|
-
balance = balance === VOID ? this.
|
|
1781
|
-
timestamp = timestamp === VOID ? this.
|
|
1782
|
-
sendHashAlgorithm = sendHashAlgorithm === VOID ? this.
|
|
1783
|
-
sendHash = sendHash === VOID ? this.
|
|
1784
|
-
representativeAlgorithm = representativeAlgorithm === VOID ? this.
|
|
1785
|
-
representativePublicKey = representativePublicKey === VOID ? this.
|
|
1786
|
-
return $super === VOID ? this.
|
|
1776
|
+
network = network === VOID ? this.j2v_1 : network;
|
|
1777
|
+
version = version === VOID ? this.k2v_1 : version;
|
|
1778
|
+
algorithm = algorithm === VOID ? this.l2v_1 : algorithm;
|
|
1779
|
+
publicKey = publicKey === VOID ? this.m2v_1 : publicKey;
|
|
1780
|
+
balance = balance === VOID ? this.n2v_1 : balance;
|
|
1781
|
+
timestamp = timestamp === VOID ? this.o2v_1 : timestamp;
|
|
1782
|
+
sendHashAlgorithm = sendHashAlgorithm === VOID ? this.p2v_1 : sendHashAlgorithm;
|
|
1783
|
+
sendHash = sendHash === VOID ? this.q2v_1 : sendHash;
|
|
1784
|
+
representativeAlgorithm = representativeAlgorithm === VOID ? this.r2v_1 : representativeAlgorithm;
|
|
1785
|
+
representativePublicKey = representativePublicKey === VOID ? this.s2v_1 : representativePublicKey;
|
|
1786
|
+
return $super === VOID ? this.a31(network, version, algorithm, publicKey, balance, timestamp, sendHashAlgorithm, sendHash, representativeAlgorithm, representativePublicKey) : $super.a31.call(this, network, version, algorithm, publicKey, balance, timestamp, sendHashAlgorithm, sendHash, representativeAlgorithm, representativePublicKey);
|
|
1787
1787
|
}
|
|
1788
1788
|
toString() {
|
|
1789
|
-
return 'AttoOpenBlock(network=' + this.
|
|
1789
|
+
return 'AttoOpenBlock(network=' + this.j2v_1.toString() + ', version=' + this.k2v_1.toString() + ', algorithm=' + this.l2v_1.toString() + ', publicKey=' + this.m2v_1.toString() + ', balance=' + this.n2v_1.toString() + ', timestamp=' + this.o2v_1.toString() + ', sendHashAlgorithm=' + this.p2v_1.toString() + ', sendHash=' + this.q2v_1.toString() + ', representativeAlgorithm=' + this.r2v_1.toString() + ', representativePublicKey=' + this.s2v_1.toString() + ')';
|
|
1790
1790
|
}
|
|
1791
1791
|
hashCode() {
|
|
1792
|
-
var result = this.
|
|
1793
|
-
result = imul(result, 31) + this.
|
|
1794
|
-
result = imul(result, 31) + this.
|
|
1795
|
-
result = imul(result, 31) + this.
|
|
1796
|
-
result = imul(result, 31) + this.
|
|
1797
|
-
result = imul(result, 31) + this.
|
|
1798
|
-
result = imul(result, 31) + this.
|
|
1799
|
-
result = imul(result, 31) + this.
|
|
1800
|
-
result = imul(result, 31) + this.
|
|
1801
|
-
result = imul(result, 31) + this.
|
|
1792
|
+
var result = this.j2v_1.hashCode();
|
|
1793
|
+
result = imul(result, 31) + this.k2v_1.hashCode() | 0;
|
|
1794
|
+
result = imul(result, 31) + this.l2v_1.hashCode() | 0;
|
|
1795
|
+
result = imul(result, 31) + this.m2v_1.hashCode() | 0;
|
|
1796
|
+
result = imul(result, 31) + this.n2v_1.hashCode() | 0;
|
|
1797
|
+
result = imul(result, 31) + this.o2v_1.hashCode() | 0;
|
|
1798
|
+
result = imul(result, 31) + this.p2v_1.hashCode() | 0;
|
|
1799
|
+
result = imul(result, 31) + this.q2v_1.hashCode() | 0;
|
|
1800
|
+
result = imul(result, 31) + this.r2v_1.hashCode() | 0;
|
|
1801
|
+
result = imul(result, 31) + this.s2v_1.hashCode() | 0;
|
|
1802
1802
|
return result;
|
|
1803
1803
|
}
|
|
1804
1804
|
equals(other) {
|
|
@@ -1807,101 +1807,101 @@ function AttoOpenBlock() {
|
|
|
1807
1807
|
if (!(other instanceof AttoOpenBlock()))
|
|
1808
1808
|
return false;
|
|
1809
1809
|
var tmp0_other_with_cast = other instanceof AttoOpenBlock() ? other : THROW_CCE();
|
|
1810
|
-
if (!this.
|
|
1810
|
+
if (!this.j2v_1.equals(tmp0_other_with_cast.j2v_1))
|
|
1811
1811
|
return false;
|
|
1812
|
-
if (!this.
|
|
1812
|
+
if (!this.k2v_1.equals(tmp0_other_with_cast.k2v_1))
|
|
1813
1813
|
return false;
|
|
1814
|
-
if (!this.
|
|
1814
|
+
if (!this.l2v_1.equals(tmp0_other_with_cast.l2v_1))
|
|
1815
1815
|
return false;
|
|
1816
|
-
if (!this.
|
|
1816
|
+
if (!this.m2v_1.equals(tmp0_other_with_cast.m2v_1))
|
|
1817
1817
|
return false;
|
|
1818
|
-
if (!this.
|
|
1818
|
+
if (!this.n2v_1.equals(tmp0_other_with_cast.n2v_1))
|
|
1819
1819
|
return false;
|
|
1820
|
-
if (!this.
|
|
1820
|
+
if (!this.o2v_1.equals(tmp0_other_with_cast.o2v_1))
|
|
1821
1821
|
return false;
|
|
1822
|
-
if (!this.
|
|
1822
|
+
if (!this.p2v_1.equals(tmp0_other_with_cast.p2v_1))
|
|
1823
1823
|
return false;
|
|
1824
|
-
if (!this.
|
|
1824
|
+
if (!this.q2v_1.equals(tmp0_other_with_cast.q2v_1))
|
|
1825
1825
|
return false;
|
|
1826
|
-
if (!this.
|
|
1826
|
+
if (!this.r2v_1.equals(tmp0_other_with_cast.r2v_1))
|
|
1827
1827
|
return false;
|
|
1828
|
-
if (!this.
|
|
1828
|
+
if (!this.s2v_1.equals(tmp0_other_with_cast.s2v_1))
|
|
1829
1829
|
return false;
|
|
1830
1830
|
return true;
|
|
1831
1831
|
}
|
|
1832
|
-
static
|
|
1832
|
+
static z30(seen0, network, version, algorithm, publicKey, balance, timestamp, sendHashAlgorithm, sendHash, representativeAlgorithm, representativePublicKey, height, serializationConstructorMarker) {
|
|
1833
1833
|
Companion_getInstance_6();
|
|
1834
1834
|
if (!(1023 === (1023 & seen0))) {
|
|
1835
|
-
throwMissingFieldException(seen0, 1023, $serializer_getInstance_1().
|
|
1835
|
+
throwMissingFieldException(seen0, 1023, $serializer_getInstance_1().x30_1);
|
|
1836
1836
|
}
|
|
1837
1837
|
var $this = createThis(this);
|
|
1838
|
-
$this.
|
|
1839
|
-
$this.
|
|
1840
|
-
$this.
|
|
1841
|
-
$this.
|
|
1842
|
-
$this.
|
|
1843
|
-
$this.
|
|
1844
|
-
$this.
|
|
1845
|
-
$this.
|
|
1846
|
-
$this.
|
|
1847
|
-
$this.
|
|
1848
|
-
$this.
|
|
1838
|
+
$this.j2v_1 = network;
|
|
1839
|
+
$this.k2v_1 = version;
|
|
1840
|
+
$this.l2v_1 = algorithm;
|
|
1841
|
+
$this.m2v_1 = publicKey;
|
|
1842
|
+
$this.n2v_1 = balance;
|
|
1843
|
+
$this.o2v_1 = timestamp;
|
|
1844
|
+
$this.p2v_1 = sendHashAlgorithm;
|
|
1845
|
+
$this.q2v_1 = sendHash;
|
|
1846
|
+
$this.r2v_1 = representativeAlgorithm;
|
|
1847
|
+
$this.s2v_1 = representativePublicKey;
|
|
1848
|
+
$this.t2v_1 = AttoBlockType_OPEN_getInstance();
|
|
1849
1849
|
var tmp = $this;
|
|
1850
|
-
tmp.
|
|
1850
|
+
tmp.u2v_1 = lazy_0(AttoOpenBlock$_init_$lambda_2mk62y($this));
|
|
1851
1851
|
if (0 === (seen0 & 1024))
|
|
1852
|
-
$this.
|
|
1852
|
+
$this.v2v_1 = new (AttoHeight())(_ULong___init__impl__c78o9k(new (Long())(1, 0)));
|
|
1853
1853
|
else
|
|
1854
|
-
$this.
|
|
1854
|
+
$this.v2v_1 = height;
|
|
1855
1855
|
var tmp_0 = $this;
|
|
1856
|
-
tmp_0.
|
|
1856
|
+
tmp_0.w2v_1 = lazy_0(AttoOpenBlock$_init_$lambda_2mk62y_0($this));
|
|
1857
1857
|
var tmp_1 = $this;
|
|
1858
|
-
tmp_1.
|
|
1858
|
+
tmp_1.x2v_1 = lazy_0(AttoOpenBlock$_init_$lambda_2mk62y_1($this));
|
|
1859
1859
|
return $this;
|
|
1860
1860
|
}
|
|
1861
1861
|
get network() {
|
|
1862
|
-
return this.
|
|
1862
|
+
return this.f2w();
|
|
1863
1863
|
}
|
|
1864
1864
|
get version() {
|
|
1865
|
-
return this.
|
|
1865
|
+
return this.g2w();
|
|
1866
1866
|
}
|
|
1867
1867
|
get algorithm() {
|
|
1868
|
-
return this.
|
|
1868
|
+
return this.h2w();
|
|
1869
1869
|
}
|
|
1870
1870
|
get publicKey() {
|
|
1871
|
-
return this.
|
|
1871
|
+
return this.e2w();
|
|
1872
1872
|
}
|
|
1873
1873
|
get balance() {
|
|
1874
|
-
return this.
|
|
1874
|
+
return this.j2w();
|
|
1875
1875
|
}
|
|
1876
1876
|
get timestamp() {
|
|
1877
|
-
return this.
|
|
1877
|
+
return this.o2x();
|
|
1878
1878
|
}
|
|
1879
1879
|
get sendHashAlgorithm() {
|
|
1880
|
-
return this.
|
|
1880
|
+
return this.i2z();
|
|
1881
1881
|
}
|
|
1882
1882
|
get sendHash() {
|
|
1883
|
-
return this.
|
|
1883
|
+
return this.j2z();
|
|
1884
1884
|
}
|
|
1885
1885
|
get representativeAlgorithm() {
|
|
1886
|
-
return this.
|
|
1886
|
+
return this.m2w();
|
|
1887
1887
|
}
|
|
1888
1888
|
get representativePublicKey() {
|
|
1889
|
-
return this.
|
|
1889
|
+
return this.n2w();
|
|
1890
1890
|
}
|
|
1891
1891
|
get type() {
|
|
1892
|
-
return this.
|
|
1892
|
+
return this.e2z();
|
|
1893
1893
|
}
|
|
1894
1894
|
get hash() {
|
|
1895
|
-
return this.
|
|
1895
|
+
return this.j2x();
|
|
1896
1896
|
}
|
|
1897
1897
|
get height() {
|
|
1898
|
-
return this.
|
|
1898
|
+
return this.i2w();
|
|
1899
1899
|
}
|
|
1900
1900
|
get address() {
|
|
1901
|
-
return this.
|
|
1901
|
+
return this.o2w();
|
|
1902
1902
|
}
|
|
1903
1903
|
get representativeAddress() {
|
|
1904
|
-
return this.
|
|
1904
|
+
return this.p2w();
|
|
1905
1905
|
}
|
|
1906
1906
|
}
|
|
1907
1907
|
initMetadataForClass($, 'AttoOpenBlock', VOID, VOID, [AttoBlock(), ReceiveSupport(), RepresentativeSupport()], VOID, VOID, {0: $serializer_getInstance_1});
|
|
@@ -1913,10 +1913,10 @@ function AttoChangeBlock$Companion$$childSerializers$_anonymous__3y9hff() {
|
|
|
1913
1913
|
return createSimpleEnumSerializer('cash.atto.commons.AttoNetwork', values());
|
|
1914
1914
|
}
|
|
1915
1915
|
function AttoChangeBlock$Companion$$childSerializers$_anonymous__3y9hff_0() {
|
|
1916
|
-
return Companion_getInstance_0().
|
|
1916
|
+
return Companion_getInstance_0().e2v();
|
|
1917
1917
|
}
|
|
1918
1918
|
function AttoChangeBlock$Companion$$childSerializers$_anonymous__3y9hff_1() {
|
|
1919
|
-
return Companion_getInstance_0().
|
|
1919
|
+
return Companion_getInstance_0().e2v();
|
|
1920
1920
|
}
|
|
1921
1921
|
var CompanionClass_4;
|
|
1922
1922
|
function Companion_4() {
|
|
@@ -1933,9 +1933,9 @@ function Companion_4() {
|
|
|
1933
1933
|
// Inline function 'kotlin.arrayOf' call
|
|
1934
1934
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
1935
1935
|
// Inline function 'kotlin.js.asDynamic' call
|
|
1936
|
-
tmp.
|
|
1936
|
+
tmp.d2z_1 = [tmp_1, null, tmp_3, null, null, null, null, null, lazy(tmp_4, AttoChangeBlock$Companion$$childSerializers$_anonymous__3y9hff_1), null];
|
|
1937
1937
|
}
|
|
1938
|
-
|
|
1938
|
+
a2z(serializedBlock) {
|
|
1939
1939
|
if (toLong(AttoBlockType_CHANGE_getInstance().size).a2(serializedBlock.i1()) > 0) {
|
|
1940
1940
|
return null;
|
|
1941
1941
|
}
|
|
@@ -1945,7 +1945,7 @@ function Companion_4() {
|
|
|
1945
1945
|
}
|
|
1946
1946
|
return new (AttoChangeBlock())(readAttoNetwork(serializedBlock), readAttoVersion(serializedBlock), readAttoAlgorithm(serializedBlock), readAttoPublicKey(serializedBlock), readAttoHeight(serializedBlock), readAttoAmount(serializedBlock), readInstant(serializedBlock), readAttoHash(serializedBlock), readAttoAlgorithm(serializedBlock), readAttoPublicKey(serializedBlock));
|
|
1947
1947
|
}
|
|
1948
|
-
|
|
1948
|
+
e2v() {
|
|
1949
1949
|
return $serializer_getInstance_2();
|
|
1950
1950
|
}
|
|
1951
1951
|
}
|
|
@@ -1977,29 +1977,29 @@ function $serializer_2() {
|
|
|
1977
1977
|
tmp0_serialDesc.w14('previous', false);
|
|
1978
1978
|
tmp0_serialDesc.w14('representativeAlgorithm', false);
|
|
1979
1979
|
tmp0_serialDesc.w14('representativePublicKey', false);
|
|
1980
|
-
this.
|
|
1980
|
+
this.b31_1 = tmp0_serialDesc;
|
|
1981
1981
|
}
|
|
1982
|
-
|
|
1983
|
-
var tmp0_desc = this.
|
|
1982
|
+
c31(encoder, value) {
|
|
1983
|
+
var tmp0_desc = this.b31_1;
|
|
1984
1984
|
var tmp1_output = encoder.kx(tmp0_desc);
|
|
1985
|
-
var tmp2_cached = Companion_getInstance_7().
|
|
1986
|
-
tmp1_output.bz(tmp0_desc, 0, tmp2_cached[0].s1(), value.
|
|
1987
|
-
tmp1_output.bz(tmp0_desc, 1, AttoVersionSerializer_getInstance(), value.
|
|
1988
|
-
tmp1_output.bz(tmp0_desc, 2, tmp2_cached[2].s1(), value.
|
|
1989
|
-
tmp1_output.bz(tmp0_desc, 3, AttoPublicKeySerializer_getInstance(), value.
|
|
1990
|
-
tmp1_output.bz(tmp0_desc, 4, AttoHeightSerializer_getInstance(), value.
|
|
1991
|
-
tmp1_output.bz(tmp0_desc, 5, AttoAmountSerializer_getInstance(), value.
|
|
1992
|
-
tmp1_output.bz(tmp0_desc, 6, InstantMillisSerializer_getInstance(), value.
|
|
1993
|
-
tmp1_output.bz(tmp0_desc, 7, AttoHashSerializer_getInstance(), value.
|
|
1994
|
-
tmp1_output.bz(tmp0_desc, 8, tmp2_cached[8].s1(), value.
|
|
1995
|
-
tmp1_output.bz(tmp0_desc, 9, AttoPublicKeySerializer_getInstance(), value.
|
|
1985
|
+
var tmp2_cached = Companion_getInstance_7().d2z_1;
|
|
1986
|
+
tmp1_output.bz(tmp0_desc, 0, tmp2_cached[0].s1(), value.d31_1);
|
|
1987
|
+
tmp1_output.bz(tmp0_desc, 1, AttoVersionSerializer_getInstance(), value.e31_1);
|
|
1988
|
+
tmp1_output.bz(tmp0_desc, 2, tmp2_cached[2].s1(), value.f31_1);
|
|
1989
|
+
tmp1_output.bz(tmp0_desc, 3, AttoPublicKeySerializer_getInstance(), value.g31_1);
|
|
1990
|
+
tmp1_output.bz(tmp0_desc, 4, AttoHeightSerializer_getInstance(), value.h31_1);
|
|
1991
|
+
tmp1_output.bz(tmp0_desc, 5, AttoAmountSerializer_getInstance(), value.i31_1);
|
|
1992
|
+
tmp1_output.bz(tmp0_desc, 6, InstantMillisSerializer_getInstance(), value.j31_1);
|
|
1993
|
+
tmp1_output.bz(tmp0_desc, 7, AttoHashSerializer_getInstance(), value.k31_1);
|
|
1994
|
+
tmp1_output.bz(tmp0_desc, 8, tmp2_cached[8].s1(), value.l31_1);
|
|
1995
|
+
tmp1_output.bz(tmp0_desc, 9, AttoPublicKeySerializer_getInstance(), value.m31_1);
|
|
1996
1996
|
tmp1_output.lx(tmp0_desc);
|
|
1997
1997
|
}
|
|
1998
1998
|
ys(encoder, value) {
|
|
1999
|
-
return this.
|
|
1999
|
+
return this.c31(encoder, value instanceof AttoChangeBlock() ? value : THROW_CCE());
|
|
2000
2000
|
}
|
|
2001
2001
|
zs(decoder) {
|
|
2002
|
-
var tmp0_desc = this.
|
|
2002
|
+
var tmp0_desc = this.b31_1;
|
|
2003
2003
|
var tmp1_flag = true;
|
|
2004
2004
|
var tmp2_index = 0;
|
|
2005
2005
|
var tmp3_bitMask0 = 0;
|
|
@@ -2014,7 +2014,7 @@ function $serializer_2() {
|
|
|
2014
2014
|
var tmp12_local8 = null;
|
|
2015
2015
|
var tmp13_local9 = null;
|
|
2016
2016
|
var tmp18_input = decoder.kx(tmp0_desc);
|
|
2017
|
-
var tmp19_cached = Companion_getInstance_7().
|
|
2017
|
+
var tmp19_cached = Companion_getInstance_7().d2z_1;
|
|
2018
2018
|
if (tmp18_input.zx()) {
|
|
2019
2019
|
tmp4_local0 = tmp18_input.wx(tmp0_desc, 0, tmp19_cached[0].s1(), tmp4_local0);
|
|
2020
2020
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
@@ -2088,13 +2088,13 @@ function $serializer_2() {
|
|
|
2088
2088
|
}
|
|
2089
2089
|
}
|
|
2090
2090
|
tmp18_input.lx(tmp0_desc);
|
|
2091
|
-
return AttoChangeBlock().
|
|
2091
|
+
return AttoChangeBlock().r31(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, tmp7_local3, tmp8_local4, tmp9_local5, tmp10_local6, tmp11_local7, tmp12_local8, tmp13_local9, null);
|
|
2092
2092
|
}
|
|
2093
2093
|
xs() {
|
|
2094
|
-
return this.
|
|
2094
|
+
return this.b31_1;
|
|
2095
2095
|
}
|
|
2096
2096
|
l15() {
|
|
2097
|
-
var tmp0_cached = Companion_getInstance_7().
|
|
2097
|
+
var tmp0_cached = Companion_getInstance_7().d2z_1;
|
|
2098
2098
|
// Inline function 'kotlin.arrayOf' call
|
|
2099
2099
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
2100
2100
|
// Inline function 'kotlin.js.asDynamic' call
|
|
@@ -2115,7 +2115,7 @@ function $serializer_getInstance_2() {
|
|
|
2115
2115
|
}
|
|
2116
2116
|
function AttoChangeBlock$hash$delegate$lambda(this$0) {
|
|
2117
2117
|
return function () {
|
|
2118
|
-
return hash(this$0.
|
|
2118
|
+
return hash(this$0.f2z());
|
|
2119
2119
|
};
|
|
2120
2120
|
}
|
|
2121
2121
|
function AttoChangeBlock$_get_hash_$ref_i4oufz() {
|
|
@@ -2125,7 +2125,7 @@ function AttoChangeBlock$_get_hash_$ref_i4oufz() {
|
|
|
2125
2125
|
}
|
|
2126
2126
|
function AttoChangeBlock$address$delegate$lambda(this$0) {
|
|
2127
2127
|
return function () {
|
|
2128
|
-
return new (AttoAddress())(this$0.
|
|
2128
|
+
return new (AttoAddress())(this$0.f31_1, this$0.g31_1);
|
|
2129
2129
|
};
|
|
2130
2130
|
}
|
|
2131
2131
|
function AttoChangeBlock$_get_address_$ref_b5hbw7() {
|
|
@@ -2135,7 +2135,7 @@ function AttoChangeBlock$_get_address_$ref_b5hbw7() {
|
|
|
2135
2135
|
}
|
|
2136
2136
|
function AttoChangeBlock$representativeAddress$delegate$lambda(this$0) {
|
|
2137
2137
|
return function () {
|
|
2138
|
-
return new (AttoAddress())(this$0.
|
|
2138
|
+
return new (AttoAddress())(this$0.l31_1, this$0.m31_1);
|
|
2139
2139
|
};
|
|
2140
2140
|
}
|
|
2141
2141
|
function AttoChangeBlock$_get_representativeAddress_$ref_2pxa6k() {
|
|
@@ -2145,17 +2145,17 @@ function AttoChangeBlock$_get_representativeAddress_$ref_2pxa6k() {
|
|
|
2145
2145
|
}
|
|
2146
2146
|
function AttoChangeBlock$_init_$lambda_31jg7w(this$0) {
|
|
2147
2147
|
return function () {
|
|
2148
|
-
return hash(this$0.
|
|
2148
|
+
return hash(this$0.f2z());
|
|
2149
2149
|
};
|
|
2150
2150
|
}
|
|
2151
2151
|
function AttoChangeBlock$_init_$lambda_31jg7w_0(this$0) {
|
|
2152
2152
|
return function () {
|
|
2153
|
-
return new (AttoAddress())(this$0.
|
|
2153
|
+
return new (AttoAddress())(this$0.f31_1, this$0.g31_1);
|
|
2154
2154
|
};
|
|
2155
2155
|
}
|
|
2156
2156
|
function AttoChangeBlock$_init_$lambda_31jg7w_1(this$0) {
|
|
2157
2157
|
return function () {
|
|
2158
|
-
return new (AttoAddress())(this$0.
|
|
2158
|
+
return new (AttoAddress())(this$0.l31_1, this$0.m31_1);
|
|
2159
2159
|
};
|
|
2160
2160
|
}
|
|
2161
2161
|
var AttoChangeBlockClass;
|
|
@@ -2164,157 +2164,157 @@ function AttoChangeBlock() {
|
|
|
2164
2164
|
class $ {
|
|
2165
2165
|
constructor(network, version, algorithm, publicKey, height, balance, timestamp, previous, representativeAlgorithm, representativePublicKey) {
|
|
2166
2166
|
Companion_getInstance_7();
|
|
2167
|
-
this.
|
|
2168
|
-
this.
|
|
2169
|
-
this.
|
|
2170
|
-
this.
|
|
2171
|
-
this.
|
|
2172
|
-
this.
|
|
2173
|
-
this.
|
|
2174
|
-
this.
|
|
2175
|
-
this.
|
|
2176
|
-
this.
|
|
2177
|
-
this.
|
|
2167
|
+
this.d31_1 = network;
|
|
2168
|
+
this.e31_1 = version;
|
|
2169
|
+
this.f31_1 = algorithm;
|
|
2170
|
+
this.g31_1 = publicKey;
|
|
2171
|
+
this.h31_1 = height;
|
|
2172
|
+
this.i31_1 = balance;
|
|
2173
|
+
this.j31_1 = timestamp;
|
|
2174
|
+
this.k31_1 = previous;
|
|
2175
|
+
this.l31_1 = representativeAlgorithm;
|
|
2176
|
+
this.m31_1 = representativePublicKey;
|
|
2177
|
+
this.n31_1 = AttoBlockType_CHANGE_getInstance();
|
|
2178
2178
|
var tmp = this;
|
|
2179
|
-
tmp.
|
|
2179
|
+
tmp.o31_1 = lazy_0(AttoChangeBlock$hash$delegate$lambda(this));
|
|
2180
2180
|
var tmp_0 = this;
|
|
2181
|
-
tmp_0.
|
|
2181
|
+
tmp_0.p31_1 = lazy_0(AttoChangeBlock$address$delegate$lambda(this));
|
|
2182
2182
|
var tmp_1 = this;
|
|
2183
|
-
tmp_1.
|
|
2183
|
+
tmp_1.q31_1 = lazy_0(AttoChangeBlock$representativeAddress$delegate$lambda(this));
|
|
2184
2184
|
}
|
|
2185
|
-
|
|
2186
|
-
return this.
|
|
2185
|
+
f2w() {
|
|
2186
|
+
return this.d31_1;
|
|
2187
2187
|
}
|
|
2188
|
-
|
|
2189
|
-
return this.
|
|
2188
|
+
g2w() {
|
|
2189
|
+
return this.e31_1;
|
|
2190
2190
|
}
|
|
2191
|
-
|
|
2192
|
-
return this.
|
|
2191
|
+
h2w() {
|
|
2192
|
+
return this.f31_1;
|
|
2193
2193
|
}
|
|
2194
|
-
|
|
2195
|
-
return this.
|
|
2194
|
+
e2w() {
|
|
2195
|
+
return this.g31_1;
|
|
2196
2196
|
}
|
|
2197
|
-
|
|
2198
|
-
return this.
|
|
2197
|
+
i2w() {
|
|
2198
|
+
return this.h31_1;
|
|
2199
2199
|
}
|
|
2200
|
-
|
|
2201
|
-
return this.
|
|
2200
|
+
j2w() {
|
|
2201
|
+
return this.i31_1;
|
|
2202
2202
|
}
|
|
2203
|
-
|
|
2204
|
-
return this.
|
|
2203
|
+
o2x() {
|
|
2204
|
+
return this.j31_1;
|
|
2205
2205
|
}
|
|
2206
|
-
|
|
2207
|
-
return this.
|
|
2206
|
+
h2z() {
|
|
2207
|
+
return this.k31_1;
|
|
2208
2208
|
}
|
|
2209
|
-
|
|
2210
|
-
return this.
|
|
2209
|
+
m2w() {
|
|
2210
|
+
return this.l31_1;
|
|
2211
2211
|
}
|
|
2212
|
-
|
|
2213
|
-
return this.
|
|
2212
|
+
n2w() {
|
|
2213
|
+
return this.m31_1;
|
|
2214
2214
|
}
|
|
2215
|
-
|
|
2216
|
-
return this.
|
|
2215
|
+
e2z() {
|
|
2216
|
+
return this.n31_1;
|
|
2217
2217
|
}
|
|
2218
|
-
|
|
2219
|
-
var tmp0 = this.
|
|
2218
|
+
j2x() {
|
|
2219
|
+
var tmp0 = this.o31_1;
|
|
2220
2220
|
var tmp = KProperty1();
|
|
2221
2221
|
// Inline function 'kotlin.getValue' call
|
|
2222
2222
|
getPropertyCallableRef('hash', 1, tmp, AttoChangeBlock$_get_hash_$ref_i4oufz(), null);
|
|
2223
2223
|
return tmp0.s1();
|
|
2224
2224
|
}
|
|
2225
|
-
|
|
2226
|
-
var tmp0 = this.
|
|
2225
|
+
o2w() {
|
|
2226
|
+
var tmp0 = this.p31_1;
|
|
2227
2227
|
var tmp = KProperty1();
|
|
2228
2228
|
// Inline function 'kotlin.getValue' call
|
|
2229
2229
|
getPropertyCallableRef('address', 1, tmp, AttoChangeBlock$_get_address_$ref_b5hbw7(), null);
|
|
2230
2230
|
return tmp0.s1();
|
|
2231
2231
|
}
|
|
2232
|
-
|
|
2233
|
-
var tmp0 = this.
|
|
2232
|
+
p2w() {
|
|
2233
|
+
var tmp0 = this.q31_1;
|
|
2234
2234
|
var tmp = KProperty1();
|
|
2235
2235
|
// Inline function 'kotlin.getValue' call
|
|
2236
2236
|
getPropertyCallableRef('representativeAddress', 1, tmp, AttoChangeBlock$_get_representativeAddress_$ref_2pxa6k(), null);
|
|
2237
2237
|
return tmp0.s1();
|
|
2238
2238
|
}
|
|
2239
|
-
|
|
2239
|
+
f2z() {
|
|
2240
2240
|
// Inline function 'kotlin.apply' call
|
|
2241
2241
|
var this_0 = new (Buffer())();
|
|
2242
|
-
writeAttoBlockType(this_0, this.
|
|
2243
|
-
writeAttoNetwork(this_0, this.
|
|
2244
|
-
writeAttoVersion(this_0, this.
|
|
2245
|
-
writeAttoAlgorithm(this_0, this.
|
|
2246
|
-
writeAttoPublicKey(this_0, this.
|
|
2247
|
-
writeAttoHeight(this_0, this.
|
|
2248
|
-
writeAttoAmount(this_0, this.
|
|
2249
|
-
writeInstant(this_0, this.
|
|
2250
|
-
writeAttoHash(this_0, this.
|
|
2251
|
-
writeAttoAlgorithm(this_0, this.
|
|
2252
|
-
writeAttoPublicKey(this_0, this.
|
|
2242
|
+
writeAttoBlockType(this_0, this.n31_1);
|
|
2243
|
+
writeAttoNetwork(this_0, this.d31_1);
|
|
2244
|
+
writeAttoVersion(this_0, this.e31_1);
|
|
2245
|
+
writeAttoAlgorithm(this_0, this.f31_1);
|
|
2246
|
+
writeAttoPublicKey(this_0, this.g31_1);
|
|
2247
|
+
writeAttoHeight(this_0, this.h31_1);
|
|
2248
|
+
writeAttoAmount(this_0, this.i31_1);
|
|
2249
|
+
writeInstant(this_0, this.j31_1);
|
|
2250
|
+
writeAttoHash(this_0, this.k31_1);
|
|
2251
|
+
writeAttoAlgorithm(this_0, this.l31_1);
|
|
2252
|
+
writeAttoPublicKey(this_0, this.m31_1);
|
|
2253
2253
|
return this_0;
|
|
2254
2254
|
}
|
|
2255
2255
|
isValid() {
|
|
2256
|
-
return isValid.call(this) && this.
|
|
2256
|
+
return isValid.call(this) && this.h31_1.d30(new (AttoHeight())(_ULong___init__impl__c78o9k(new (Long())(1, 0)))) > 0;
|
|
2257
2257
|
}
|
|
2258
2258
|
gl() {
|
|
2259
|
-
return this.
|
|
2259
|
+
return this.d31_1;
|
|
2260
2260
|
}
|
|
2261
2261
|
hl() {
|
|
2262
|
-
return this.
|
|
2262
|
+
return this.e31_1;
|
|
2263
2263
|
}
|
|
2264
|
-
|
|
2265
|
-
return this.
|
|
2264
|
+
t2w() {
|
|
2265
|
+
return this.f31_1;
|
|
2266
2266
|
}
|
|
2267
|
-
|
|
2268
|
-
return this.
|
|
2267
|
+
u2w() {
|
|
2268
|
+
return this.g31_1;
|
|
2269
2269
|
}
|
|
2270
|
-
|
|
2271
|
-
return this.
|
|
2270
|
+
v2w() {
|
|
2271
|
+
return this.h31_1;
|
|
2272
2272
|
}
|
|
2273
|
-
|
|
2274
|
-
return this.
|
|
2273
|
+
w2w() {
|
|
2274
|
+
return this.i31_1;
|
|
2275
2275
|
}
|
|
2276
|
-
|
|
2277
|
-
return this.
|
|
2276
|
+
x2w() {
|
|
2277
|
+
return this.j31_1;
|
|
2278
2278
|
}
|
|
2279
|
-
|
|
2280
|
-
return this.
|
|
2279
|
+
y2w() {
|
|
2280
|
+
return this.k31_1;
|
|
2281
2281
|
}
|
|
2282
|
-
|
|
2283
|
-
return this.
|
|
2282
|
+
z2w() {
|
|
2283
|
+
return this.l31_1;
|
|
2284
2284
|
}
|
|
2285
|
-
|
|
2286
|
-
return this.
|
|
2285
|
+
a2x() {
|
|
2286
|
+
return this.m31_1;
|
|
2287
2287
|
}
|
|
2288
|
-
|
|
2288
|
+
s31(network, version, algorithm, publicKey, height, balance, timestamp, previous, representativeAlgorithm, representativePublicKey) {
|
|
2289
2289
|
return new (AttoChangeBlock())(network, version, algorithm, publicKey, height, balance, timestamp, previous, representativeAlgorithm, representativePublicKey);
|
|
2290
2290
|
}
|
|
2291
2291
|
copy(network, version, algorithm, publicKey, height, balance, timestamp, previous, representativeAlgorithm, representativePublicKey, $super) {
|
|
2292
|
-
network = network === VOID ? this.
|
|
2293
|
-
version = version === VOID ? this.
|
|
2294
|
-
algorithm = algorithm === VOID ? this.
|
|
2295
|
-
publicKey = publicKey === VOID ? this.
|
|
2296
|
-
height = height === VOID ? this.
|
|
2297
|
-
balance = balance === VOID ? this.
|
|
2298
|
-
timestamp = timestamp === VOID ? this.
|
|
2299
|
-
previous = previous === VOID ? this.
|
|
2300
|
-
representativeAlgorithm = representativeAlgorithm === VOID ? this.
|
|
2301
|
-
representativePublicKey = representativePublicKey === VOID ? this.
|
|
2302
|
-
return $super === VOID ? this.
|
|
2292
|
+
network = network === VOID ? this.d31_1 : network;
|
|
2293
|
+
version = version === VOID ? this.e31_1 : version;
|
|
2294
|
+
algorithm = algorithm === VOID ? this.f31_1 : algorithm;
|
|
2295
|
+
publicKey = publicKey === VOID ? this.g31_1 : publicKey;
|
|
2296
|
+
height = height === VOID ? this.h31_1 : height;
|
|
2297
|
+
balance = balance === VOID ? this.i31_1 : balance;
|
|
2298
|
+
timestamp = timestamp === VOID ? this.j31_1 : timestamp;
|
|
2299
|
+
previous = previous === VOID ? this.k31_1 : previous;
|
|
2300
|
+
representativeAlgorithm = representativeAlgorithm === VOID ? this.l31_1 : representativeAlgorithm;
|
|
2301
|
+
representativePublicKey = representativePublicKey === VOID ? this.m31_1 : representativePublicKey;
|
|
2302
|
+
return $super === VOID ? this.s31(network, version, algorithm, publicKey, height, balance, timestamp, previous, representativeAlgorithm, representativePublicKey) : $super.s31.call(this, network, version, algorithm, publicKey, height, balance, timestamp, previous, representativeAlgorithm, representativePublicKey);
|
|
2303
2303
|
}
|
|
2304
2304
|
toString() {
|
|
2305
|
-
return 'AttoChangeBlock(network=' + this.
|
|
2305
|
+
return 'AttoChangeBlock(network=' + this.d31_1.toString() + ', version=' + this.e31_1.toString() + ', algorithm=' + this.f31_1.toString() + ', publicKey=' + this.g31_1.toString() + ', height=' + this.h31_1.toString() + ', balance=' + this.i31_1.toString() + ', timestamp=' + this.j31_1.toString() + ', previous=' + this.k31_1.toString() + ', representativeAlgorithm=' + this.l31_1.toString() + ', representativePublicKey=' + this.m31_1.toString() + ')';
|
|
2306
2306
|
}
|
|
2307
2307
|
hashCode() {
|
|
2308
|
-
var result = this.
|
|
2309
|
-
result = imul(result, 31) + this.
|
|
2310
|
-
result = imul(result, 31) + this.
|
|
2311
|
-
result = imul(result, 31) + this.
|
|
2312
|
-
result = imul(result, 31) + this.
|
|
2313
|
-
result = imul(result, 31) + this.
|
|
2314
|
-
result = imul(result, 31) + this.
|
|
2315
|
-
result = imul(result, 31) + this.
|
|
2316
|
-
result = imul(result, 31) + this.
|
|
2317
|
-
result = imul(result, 31) + this.
|
|
2308
|
+
var result = this.d31_1.hashCode();
|
|
2309
|
+
result = imul(result, 31) + this.e31_1.hashCode() | 0;
|
|
2310
|
+
result = imul(result, 31) + this.f31_1.hashCode() | 0;
|
|
2311
|
+
result = imul(result, 31) + this.g31_1.hashCode() | 0;
|
|
2312
|
+
result = imul(result, 31) + this.h31_1.hashCode() | 0;
|
|
2313
|
+
result = imul(result, 31) + this.i31_1.hashCode() | 0;
|
|
2314
|
+
result = imul(result, 31) + this.j31_1.hashCode() | 0;
|
|
2315
|
+
result = imul(result, 31) + this.k31_1.hashCode() | 0;
|
|
2316
|
+
result = imul(result, 31) + this.l31_1.hashCode() | 0;
|
|
2317
|
+
result = imul(result, 31) + this.m31_1.hashCode() | 0;
|
|
2318
2318
|
return result;
|
|
2319
2319
|
}
|
|
2320
2320
|
equals(other) {
|
|
@@ -2323,94 +2323,94 @@ function AttoChangeBlock() {
|
|
|
2323
2323
|
if (!(other instanceof AttoChangeBlock()))
|
|
2324
2324
|
return false;
|
|
2325
2325
|
var tmp0_other_with_cast = other instanceof AttoChangeBlock() ? other : THROW_CCE();
|
|
2326
|
-
if (!this.
|
|
2326
|
+
if (!this.d31_1.equals(tmp0_other_with_cast.d31_1))
|
|
2327
2327
|
return false;
|
|
2328
|
-
if (!this.
|
|
2328
|
+
if (!this.e31_1.equals(tmp0_other_with_cast.e31_1))
|
|
2329
2329
|
return false;
|
|
2330
|
-
if (!this.
|
|
2330
|
+
if (!this.f31_1.equals(tmp0_other_with_cast.f31_1))
|
|
2331
2331
|
return false;
|
|
2332
|
-
if (!this.
|
|
2332
|
+
if (!this.g31_1.equals(tmp0_other_with_cast.g31_1))
|
|
2333
2333
|
return false;
|
|
2334
|
-
if (!this.
|
|
2334
|
+
if (!this.h31_1.equals(tmp0_other_with_cast.h31_1))
|
|
2335
2335
|
return false;
|
|
2336
|
-
if (!this.
|
|
2336
|
+
if (!this.i31_1.equals(tmp0_other_with_cast.i31_1))
|
|
2337
2337
|
return false;
|
|
2338
|
-
if (!this.
|
|
2338
|
+
if (!this.j31_1.equals(tmp0_other_with_cast.j31_1))
|
|
2339
2339
|
return false;
|
|
2340
|
-
if (!this.
|
|
2340
|
+
if (!this.k31_1.equals(tmp0_other_with_cast.k31_1))
|
|
2341
2341
|
return false;
|
|
2342
|
-
if (!this.
|
|
2342
|
+
if (!this.l31_1.equals(tmp0_other_with_cast.l31_1))
|
|
2343
2343
|
return false;
|
|
2344
|
-
if (!this.
|
|
2344
|
+
if (!this.m31_1.equals(tmp0_other_with_cast.m31_1))
|
|
2345
2345
|
return false;
|
|
2346
2346
|
return true;
|
|
2347
2347
|
}
|
|
2348
|
-
static
|
|
2348
|
+
static r31(seen0, network, version, algorithm, publicKey, height, balance, timestamp, previous, representativeAlgorithm, representativePublicKey, serializationConstructorMarker) {
|
|
2349
2349
|
Companion_getInstance_7();
|
|
2350
2350
|
if (!(1023 === (1023 & seen0))) {
|
|
2351
|
-
throwMissingFieldException(seen0, 1023, $serializer_getInstance_2().
|
|
2351
|
+
throwMissingFieldException(seen0, 1023, $serializer_getInstance_2().b31_1);
|
|
2352
2352
|
}
|
|
2353
2353
|
var $this = createThis(this);
|
|
2354
|
-
$this.
|
|
2355
|
-
$this.
|
|
2356
|
-
$this.
|
|
2357
|
-
$this.
|
|
2358
|
-
$this.
|
|
2359
|
-
$this.
|
|
2360
|
-
$this.
|
|
2361
|
-
$this.
|
|
2362
|
-
$this.
|
|
2363
|
-
$this.
|
|
2364
|
-
$this.
|
|
2354
|
+
$this.d31_1 = network;
|
|
2355
|
+
$this.e31_1 = version;
|
|
2356
|
+
$this.f31_1 = algorithm;
|
|
2357
|
+
$this.g31_1 = publicKey;
|
|
2358
|
+
$this.h31_1 = height;
|
|
2359
|
+
$this.i31_1 = balance;
|
|
2360
|
+
$this.j31_1 = timestamp;
|
|
2361
|
+
$this.k31_1 = previous;
|
|
2362
|
+
$this.l31_1 = representativeAlgorithm;
|
|
2363
|
+
$this.m31_1 = representativePublicKey;
|
|
2364
|
+
$this.n31_1 = AttoBlockType_CHANGE_getInstance();
|
|
2365
2365
|
var tmp = $this;
|
|
2366
|
-
tmp.
|
|
2366
|
+
tmp.o31_1 = lazy_0(AttoChangeBlock$_init_$lambda_31jg7w($this));
|
|
2367
2367
|
var tmp_0 = $this;
|
|
2368
|
-
tmp_0.
|
|
2368
|
+
tmp_0.p31_1 = lazy_0(AttoChangeBlock$_init_$lambda_31jg7w_0($this));
|
|
2369
2369
|
var tmp_1 = $this;
|
|
2370
|
-
tmp_1.
|
|
2370
|
+
tmp_1.q31_1 = lazy_0(AttoChangeBlock$_init_$lambda_31jg7w_1($this));
|
|
2371
2371
|
return $this;
|
|
2372
2372
|
}
|
|
2373
2373
|
get network() {
|
|
2374
|
-
return this.
|
|
2374
|
+
return this.f2w();
|
|
2375
2375
|
}
|
|
2376
2376
|
get version() {
|
|
2377
|
-
return this.
|
|
2377
|
+
return this.g2w();
|
|
2378
2378
|
}
|
|
2379
2379
|
get algorithm() {
|
|
2380
|
-
return this.
|
|
2380
|
+
return this.h2w();
|
|
2381
2381
|
}
|
|
2382
2382
|
get publicKey() {
|
|
2383
|
-
return this.
|
|
2383
|
+
return this.e2w();
|
|
2384
2384
|
}
|
|
2385
2385
|
get height() {
|
|
2386
|
-
return this.
|
|
2386
|
+
return this.i2w();
|
|
2387
2387
|
}
|
|
2388
2388
|
get balance() {
|
|
2389
|
-
return this.
|
|
2389
|
+
return this.j2w();
|
|
2390
2390
|
}
|
|
2391
2391
|
get timestamp() {
|
|
2392
|
-
return this.
|
|
2392
|
+
return this.o2x();
|
|
2393
2393
|
}
|
|
2394
2394
|
get previous() {
|
|
2395
|
-
return this.
|
|
2395
|
+
return this.h2z();
|
|
2396
2396
|
}
|
|
2397
2397
|
get representativeAlgorithm() {
|
|
2398
|
-
return this.
|
|
2398
|
+
return this.m2w();
|
|
2399
2399
|
}
|
|
2400
2400
|
get representativePublicKey() {
|
|
2401
|
-
return this.
|
|
2401
|
+
return this.n2w();
|
|
2402
2402
|
}
|
|
2403
2403
|
get type() {
|
|
2404
|
-
return this.
|
|
2404
|
+
return this.e2z();
|
|
2405
2405
|
}
|
|
2406
2406
|
get hash() {
|
|
2407
|
-
return this.
|
|
2407
|
+
return this.j2x();
|
|
2408
2408
|
}
|
|
2409
2409
|
get address() {
|
|
2410
|
-
return this.
|
|
2410
|
+
return this.o2w();
|
|
2411
2411
|
}
|
|
2412
2412
|
get representativeAddress() {
|
|
2413
|
-
return this.
|
|
2413
|
+
return this.p2w();
|
|
2414
2414
|
}
|
|
2415
2415
|
}
|
|
2416
2416
|
initMetadataForClass($, 'AttoChangeBlock', VOID, VOID, [AttoBlock(), PreviousSupport(), RepresentativeSupport()], VOID, VOID, {0: $serializer_getInstance_2});
|