@attocash/cli 0.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/LICENSE +28 -0
- package/README.md +707 -0
- package/dist/application/app.d.ts +138 -0
- package/dist/application/app.js +654 -0
- package/dist/application/operations.d.ts +9 -0
- package/dist/application/operations.js +96 -0
- package/dist/cli/cli.d.ts +1 -0
- package/dist/cli/cli.js +460 -0
- package/dist/cli/help.d.ts +4 -0
- package/dist/cli/help.js +49 -0
- package/dist/cli/main.d.ts +2 -0
- package/dist/cli/main.js +13 -0
- package/dist/cli/onboarding.d.ts +14 -0
- package/dist/cli/onboarding.js +144 -0
- package/dist/cli/output.d.ts +2 -0
- package/dist/cli/output.js +231 -0
- package/dist/cli/terminal.d.ts +6 -0
- package/dist/cli/terminal.js +92 -0
- package/dist/cli/update-check.d.ts +1 -0
- package/dist/cli/update-check.js +12 -0
- package/dist/cli/updates.d.ts +2 -0
- package/dist/cli/updates.js +98 -0
- package/dist/core.d.ts +14 -0
- package/dist/core.js +14 -0
- package/dist/doctor/credential-probe.d.ts +7 -0
- package/dist/doctor/credential-probe.js +49 -0
- package/dist/doctor/doctor.d.ts +4 -0
- package/dist/doctor/doctor.js +213 -0
- package/dist/doctor/keyring.d.ts +7 -0
- package/dist/doctor/keyring.js +150 -0
- package/dist/doctor/profile.d.ts +19 -0
- package/dist/doctor/profile.js +73 -0
- package/dist/doctor/types.d.ts +40 -0
- package/dist/doctor/types.js +1 -0
- package/dist/domain/amount.d.ts +6 -0
- package/dist/domain/amount.js +27 -0
- package/dist/domain/errors.d.ts +10 -0
- package/dist/domain/errors.js +16 -0
- package/dist/labels/directory.d.ts +87 -0
- package/dist/labels/directory.js +140 -0
- package/dist/labels/personal.d.ts +17 -0
- package/dist/labels/personal.js +56 -0
- package/dist/labels/presentation.d.ts +154 -0
- package/dist/labels/presentation.js +90 -0
- package/dist/network/reader.d.ts +31 -0
- package/dist/network/reader.js +370 -0
- package/dist/network/retry.d.ts +7 -0
- package/dist/network/retry.js +53 -0
- package/dist/network/work.d.ts +3 -0
- package/dist/network/work.js +66 -0
- package/dist/pricing/market.d.ts +29 -0
- package/dist/pricing/market.js +150 -0
- package/dist/pricing/terms.d.ts +6 -0
- package/dist/pricing/terms.js +12 -0
- package/dist/spending/destination.d.ts +16 -0
- package/dist/spending/destination.js +42 -0
- package/dist/spending/journal.d.ts +28 -0
- package/dist/spending/journal.js +69 -0
- package/dist/spending/ledger.d.ts +118 -0
- package/dist/spending/ledger.js +444 -0
- package/dist/spending/payments.d.ts +67 -0
- package/dist/spending/payments.js +424 -0
- package/dist/spending/pool.d.ts +13 -0
- package/dist/spending/pool.js +38 -0
- package/dist/spending/reconcile.d.ts +18 -0
- package/dist/spending/reconcile.js +64 -0
- package/dist/storage/profiles.d.ts +13 -0
- package/dist/storage/profiles.js +86 -0
- package/dist/storage/secrets.d.ts +16 -0
- package/dist/storage/secrets.js +104 -0
- package/dist/storage/state.d.ts +32 -0
- package/dist/storage/state.js +255 -0
- package/dist/wallet/auto-receive.d.ts +57 -0
- package/dist/wallet/auto-receive.js +140 -0
- package/dist/wallet/defaults.d.ts +3 -0
- package/dist/wallet/defaults.js +26 -0
- package/dist/wallet/signing.d.ts +17 -0
- package/dist/wallet/signing.js +128 -0
- package/dist/wallet/types.d.ts +65 -0
- package/dist/wallet/types.js +1 -0
- package/dist/wallet/work.d.ts +29 -0
- package/dist/wallet/work.js +154 -0
- package/dist/watches/manager.d.ts +75 -0
- package/dist/watches/manager.js +197 -0
- package/node_modules/@attocash/commons-core/Kotlin-DateTime-library-kotlinx-datetime.mjs +6678 -0
- package/node_modules/@attocash/commons-core/Kotlin-DateTime-library-kotlinx-datetime.mjs.map +1 -0
- package/node_modules/@attocash/commons-core/LICENSE +28 -0
- package/node_modules/@attocash/commons-core/README.md +118 -0
- package/node_modules/@attocash/commons-core/commons-commons-core.d.mts +1036 -0
- package/node_modules/@attocash/commons-core/commons-commons-core.mjs +7701 -0
- package/node_modules/@attocash/commons-core/commons-commons-core.mjs.map +1 -0
- package/node_modules/@attocash/commons-core/kotlin-kotlin-stdlib.mjs +17681 -0
- package/node_modules/@attocash/commons-core/kotlin-kotlin-stdlib.mjs.map +1 -0
- package/node_modules/@attocash/commons-core/kotlin_org_jetbrains_kotlin_kotlin_dom_api_compat.mjs +4 -0
- package/node_modules/@attocash/commons-core/kotlin_org_jetbrains_kotlin_kotlin_dom_api_compat.mjs.map +1 -0
- package/node_modules/@attocash/commons-core/kotlinx-io-kotlinx-io-bytestring.mjs +209 -0
- package/node_modules/@attocash/commons-core/kotlinx-io-kotlinx-io-bytestring.mjs.map +1 -0
- package/node_modules/@attocash/commons-core/kotlinx-io-kotlinx-io-core.mjs +2284 -0
- package/node_modules/@attocash/commons-core/kotlinx-io-kotlinx-io-core.mjs.map +1 -0
- package/node_modules/@attocash/commons-core/kotlinx-serialization-kotlinx-serialization-core.mjs +6042 -0
- package/node_modules/@attocash/commons-core/kotlinx-serialization-kotlinx-serialization-core.mjs.map +1 -0
- package/node_modules/@attocash/commons-core/kotlinx-serialization-kotlinx-serialization-json.mjs +5294 -0
- package/node_modules/@attocash/commons-core/kotlinx-serialization-kotlinx-serialization-json.mjs.map +1 -0
- package/node_modules/@attocash/commons-core/package.json +27 -0
- package/node_modules/@attocash/commons-node/LICENSE +28 -0
- package/node_modules/@attocash/commons-node/README.md +92 -0
- package/node_modules/@attocash/commons-node/commons-commons-node.d.mts +255 -0
- package/node_modules/@attocash/commons-node/commons-commons-node.mjs +2977 -0
- package/node_modules/@attocash/commons-node/commons-commons-node.mjs.map +1 -0
- package/node_modules/@attocash/commons-node/kotlin-logging.mjs +432 -0
- package/node_modules/@attocash/commons-node/kotlin-logging.mjs.map +1 -0
- package/node_modules/@attocash/commons-node/kotlinx-serialization-kotlinx-serialization-json.mjs +5294 -0
- package/node_modules/@attocash/commons-node/kotlinx-serialization-kotlinx-serialization-json.mjs.map +1 -0
- package/node_modules/@attocash/commons-node/package.json +29 -0
- package/node_modules/@attocash/commons-node-remote/LICENSE +28 -0
- package/node_modules/@attocash/commons-node-remote/README.md +61 -0
- package/node_modules/@attocash/commons-node-remote/commons-commons-node-remote.d.mts +122 -0
- package/node_modules/@attocash/commons-node-remote/commons-commons-node-remote.mjs +1810 -0
- package/node_modules/@attocash/commons-node-remote/commons-commons-node-remote.mjs.map +1 -0
- package/node_modules/@attocash/commons-node-remote/kotlin-logging.mjs +432 -0
- package/node_modules/@attocash/commons-node-remote/kotlin-logging.mjs.map +1 -0
- package/node_modules/@attocash/commons-node-remote/kotlinx-browser.mjs +8 -0
- package/node_modules/@attocash/commons-node-remote/kotlinx-browser.mjs.map +1 -0
- package/node_modules/@attocash/commons-node-remote/kotlinx-serialization-kotlinx-serialization-json-io.mjs +4 -0
- package/node_modules/@attocash/commons-node-remote/kotlinx-serialization-kotlinx-serialization-json-io.mjs.map +1 -0
- package/node_modules/@attocash/commons-node-remote/kotlinx-serialization-kotlinx-serialization-json.mjs +5294 -0
- package/node_modules/@attocash/commons-node-remote/kotlinx-serialization-kotlinx-serialization-json.mjs.map +1 -0
- package/node_modules/@attocash/commons-node-remote/package.json +31 -0
- package/node_modules/@attocash/commons-transport/LICENSE +28 -0
- package/node_modules/@attocash/commons-transport/README.md +5 -0
- package/node_modules/@attocash/commons-transport/commons-commons-transport.d.mts +64 -0
- package/node_modules/@attocash/commons-transport/commons-commons-transport.mjs +249 -0
- package/node_modules/@attocash/commons-transport/commons-commons-transport.mjs.map +1 -0
- package/node_modules/@attocash/commons-transport/kotlinx-atomicfu.mjs +263 -0
- package/node_modules/@attocash/commons-transport/kotlinx-atomicfu.mjs.map +1 -0
- package/node_modules/@attocash/commons-transport/kotlinx-browser.mjs +8 -0
- package/node_modules/@attocash/commons-transport/kotlinx-browser.mjs.map +1 -0
- package/node_modules/@attocash/commons-transport/kotlinx-coroutines-core.mjs +11604 -0
- package/node_modules/@attocash/commons-transport/kotlinx-coroutines-core.mjs.map +1 -0
- package/node_modules/@attocash/commons-transport/kotlinx-serialization-kotlinx-serialization-json-io.mjs +4 -0
- package/node_modules/@attocash/commons-transport/kotlinx-serialization-kotlinx-serialization-json-io.mjs.map +1 -0
- package/node_modules/@attocash/commons-transport/kotlinx-serialization-kotlinx-serialization-json.mjs +5294 -0
- package/node_modules/@attocash/commons-transport/kotlinx-serialization-kotlinx-serialization-json.mjs.map +1 -0
- package/node_modules/@attocash/commons-transport/ktor-ktor-client-content-negotiation.mjs +499 -0
- package/node_modules/@attocash/commons-transport/ktor-ktor-client-content-negotiation.mjs.map +1 -0
- package/node_modules/@attocash/commons-transport/ktor-ktor-client-core.mjs +6456 -0
- package/node_modules/@attocash/commons-transport/ktor-ktor-client-core.mjs.map +1 -0
- package/node_modules/@attocash/commons-transport/ktor-ktor-events.mjs +83 -0
- package/node_modules/@attocash/commons-transport/ktor-ktor-events.mjs.map +1 -0
- package/node_modules/@attocash/commons-transport/ktor-ktor-http-cio.mjs +1714 -0
- package/node_modules/@attocash/commons-transport/ktor-ktor-http-cio.mjs.map +1 -0
- package/node_modules/@attocash/commons-transport/ktor-ktor-http.mjs +3197 -0
- package/node_modules/@attocash/commons-transport/ktor-ktor-http.mjs.map +1 -0
- package/node_modules/@attocash/commons-transport/ktor-ktor-io.mjs +2290 -0
- package/node_modules/@attocash/commons-transport/ktor-ktor-io.mjs.map +1 -0
- package/node_modules/@attocash/commons-transport/ktor-ktor-serialization-kotlinx-json.mjs +46 -0
- package/node_modules/@attocash/commons-transport/ktor-ktor-serialization-kotlinx-json.mjs.map +1 -0
- package/node_modules/@attocash/commons-transport/ktor-ktor-serialization-kotlinx.mjs +482 -0
- package/node_modules/@attocash/commons-transport/ktor-ktor-serialization-kotlinx.mjs.map +1 -0
- package/node_modules/@attocash/commons-transport/ktor-ktor-serialization.mjs +165 -0
- package/node_modules/@attocash/commons-transport/ktor-ktor-serialization.mjs.map +1 -0
- package/node_modules/@attocash/commons-transport/ktor-ktor-sse.mjs +4 -0
- package/node_modules/@attocash/commons-transport/ktor-ktor-sse.mjs.map +1 -0
- package/node_modules/@attocash/commons-transport/ktor-ktor-utils.mjs +3222 -0
- package/node_modules/@attocash/commons-transport/ktor-ktor-utils.mjs.map +1 -0
- package/node_modules/@attocash/commons-transport/ktor-ktor-websocket-serialization.mjs +4 -0
- package/node_modules/@attocash/commons-transport/ktor-ktor-websocket-serialization.mjs.map +1 -0
- package/node_modules/@attocash/commons-transport/ktor-ktor-websockets.mjs +1485 -0
- package/node_modules/@attocash/commons-transport/ktor-ktor-websockets.mjs.map +1 -0
- package/node_modules/@attocash/commons-transport/package.json +29 -0
- package/node_modules/@attocash/commons-worker/LICENSE +28 -0
- package/node_modules/@attocash/commons-worker/README.md +48 -0
- package/node_modules/@attocash/commons-worker/commons-commons-worker.d.mts +73 -0
- package/node_modules/@attocash/commons-worker/commons-commons-worker.mjs +702 -0
- package/node_modules/@attocash/commons-worker/commons-commons-worker.mjs.map +1 -0
- package/node_modules/@attocash/commons-worker/kotlin-logging.mjs +432 -0
- package/node_modules/@attocash/commons-worker/kotlin-logging.mjs.map +1 -0
- package/node_modules/@attocash/commons-worker/kotlinx-serialization-kotlinx-serialization-json.mjs +5294 -0
- package/node_modules/@attocash/commons-worker/kotlinx-serialization-kotlinx-serialization-json.mjs.map +1 -0
- package/node_modules/@attocash/commons-worker/package.json +29 -0
- package/node_modules/@attocash/commons-worker-remote/LICENSE +28 -0
- package/node_modules/@attocash/commons-worker-remote/README.md +60 -0
- package/node_modules/@attocash/commons-worker-remote/commons-commons-worker-remote.d.mts +93 -0
- package/node_modules/@attocash/commons-worker-remote/commons-commons-worker-remote.mjs +289 -0
- package/node_modules/@attocash/commons-worker-remote/commons-commons-worker-remote.mjs.map +1 -0
- package/node_modules/@attocash/commons-worker-remote/kotlin-logging.mjs +432 -0
- package/node_modules/@attocash/commons-worker-remote/kotlin-logging.mjs.map +1 -0
- package/node_modules/@attocash/commons-worker-remote/kotlinx-browser.mjs +8 -0
- package/node_modules/@attocash/commons-worker-remote/kotlinx-browser.mjs.map +1 -0
- package/node_modules/@attocash/commons-worker-remote/kotlinx-serialization-kotlinx-serialization-json-io.mjs +4 -0
- package/node_modules/@attocash/commons-worker-remote/kotlinx-serialization-kotlinx-serialization-json-io.mjs.map +1 -0
- package/node_modules/@attocash/commons-worker-remote/kotlinx-serialization-kotlinx-serialization-json.mjs +5294 -0
- package/node_modules/@attocash/commons-worker-remote/kotlinx-serialization-kotlinx-serialization-json.mjs.map +1 -0
- package/node_modules/@attocash/commons-worker-remote/package.json +31 -0
- package/node_modules/@js-joda/core/CHANGELOG.md +363 -0
- package/node_modules/@js-joda/core/CheatSheet.md +947 -0
- package/node_modules/@js-joda/core/LICENSE +34 -0
- package/node_modules/@js-joda/core/README.md +155 -0
- package/node_modules/@js-joda/core/bower.json +21 -0
- package/node_modules/@js-joda/core/dist/js-joda.d.ts +2452 -0
- package/node_modules/@js-joda/core/dist/js-joda.esm.js +13564 -0
- package/node_modules/@js-joda/core/dist/js-joda.flow.js +949 -0
- package/node_modules/@js-joda/core/dist/js-joda.js +13630 -0
- package/node_modules/@js-joda/core/dist/js-joda.js.map +1 -0
- package/node_modules/@js-joda/core/dist/js-joda.min.js +5 -0
- package/node_modules/@js-joda/core/package.json +76 -0
- package/node_modules/@js-joda/core/src/Clock.js +330 -0
- package/node_modules/@js-joda/core/src/DayOfWeek.js +451 -0
- package/node_modules/@js-joda/core/src/Duration.js +1205 -0
- package/node_modules/@js-joda/core/src/Enum.js +30 -0
- package/node_modules/@js-joda/core/src/Instant.js +1012 -0
- package/node_modules/@js-joda/core/src/LocalDate.js +1703 -0
- package/node_modules/@js-joda/core/src/LocalDateTime.js +1686 -0
- package/node_modules/@js-joda/core/src/LocalTime.js +1415 -0
- package/node_modules/@js-joda/core/src/MathUtil.js +236 -0
- package/node_modules/@js-joda/core/src/Month.js +600 -0
- package/node_modules/@js-joda/core/src/MonthDay.js +730 -0
- package/node_modules/@js-joda/core/src/OffsetDateTime.js +757 -0
- package/node_modules/@js-joda/core/src/OffsetTime.js +621 -0
- package/node_modules/@js-joda/core/src/Period.js +933 -0
- package/node_modules/@js-joda/core/src/StringUtil.js +43 -0
- package/node_modules/@js-joda/core/src/Year.js +1015 -0
- package/node_modules/@js-joda/core/src/YearConstants.js +21 -0
- package/node_modules/@js-joda/core/src/YearMonth.js +1096 -0
- package/node_modules/@js-joda/core/src/ZoneId.js +236 -0
- package/node_modules/@js-joda/core/src/ZoneIdFactory.js +201 -0
- package/node_modules/@js-joda/core/src/ZoneOffset.js +486 -0
- package/node_modules/@js-joda/core/src/ZoneRegion.js +72 -0
- package/node_modules/@js-joda/core/src/ZonedDateTime.js +2007 -0
- package/node_modules/@js-joda/core/src/_init.js +68 -0
- package/node_modules/@js-joda/core/src/assert.js +33 -0
- package/node_modules/@js-joda/core/src/chrono/ChronoLocalDate.js +230 -0
- package/node_modules/@js-joda/core/src/chrono/ChronoLocalDateTime.js +130 -0
- package/node_modules/@js-joda/core/src/chrono/ChronoZonedDateTime.js +194 -0
- package/node_modules/@js-joda/core/src/chrono/IsoChronology.js +235 -0
- package/node_modules/@js-joda/core/src/convert.js +83 -0
- package/node_modules/@js-joda/core/src/errors.js +54 -0
- package/node_modules/@js-joda/core/src/format/DateTimeBuilder.js +535 -0
- package/node_modules/@js-joda/core/src/format/DateTimeFormatter.js +728 -0
- package/node_modules/@js-joda/core/src/format/DateTimeFormatterBuilder.js +1545 -0
- package/node_modules/@js-joda/core/src/format/DateTimeParseContext.js +297 -0
- package/node_modules/@js-joda/core/src/format/DateTimePrintContext.js +138 -0
- package/node_modules/@js-joda/core/src/format/DecimalStyle.js +113 -0
- package/node_modules/@js-joda/core/src/format/EnumMap.js +70 -0
- package/node_modules/@js-joda/core/src/format/ParsePosition.js +31 -0
- package/node_modules/@js-joda/core/src/format/ResolverStyle.js +93 -0
- package/node_modules/@js-joda/core/src/format/SignStyle.js +38 -0
- package/node_modules/@js-joda/core/src/format/StringBuilder.js +47 -0
- package/node_modules/@js-joda/core/src/format/TextStyle.js +114 -0
- package/node_modules/@js-joda/core/src/format/parser/CharLiteralPrinterParser.js +46 -0
- package/node_modules/@js-joda/core/src/format/parser/CompositePrinterParser.js +89 -0
- package/node_modules/@js-joda/core/src/format/parser/FractionPrinterParser.js +162 -0
- package/node_modules/@js-joda/core/src/format/parser/NumberPrinterParser.js +367 -0
- package/node_modules/@js-joda/core/src/format/parser/OffsetIdPrinterParser.js +177 -0
- package/node_modules/@js-joda/core/src/format/parser/PadPrinterParserDecorator.js +81 -0
- package/node_modules/@js-joda/core/src/format/parser/SettingsParser.js +44 -0
- package/node_modules/@js-joda/core/src/format/parser/StringLiteralPrinterParser.js +39 -0
- package/node_modules/@js-joda/core/src/format/parser/ZoneIdPrinterParser.js +218 -0
- package/node_modules/@js-joda/core/src/js-joda.js +210 -0
- package/node_modules/@js-joda/core/src/license-preamble.js +3 -0
- package/node_modules/@js-joda/core/src/temporal/ChronoField.js +470 -0
- package/node_modules/@js-joda/core/src/temporal/ChronoUnit.js +310 -0
- package/node_modules/@js-joda/core/src/temporal/DefaultInterfaceTemporal.js +118 -0
- package/node_modules/@js-joda/core/src/temporal/IsoFields.js +859 -0
- package/node_modules/@js-joda/core/src/temporal/NativeJsTemporal.js +105 -0
- package/node_modules/@js-joda/core/src/temporal/Temporal.js +346 -0
- package/node_modules/@js-joda/core/src/temporal/TemporalAccessor.js +125 -0
- package/node_modules/@js-joda/core/src/temporal/TemporalAdjuster.js +92 -0
- package/node_modules/@js-joda/core/src/temporal/TemporalAdjusters.js +464 -0
- package/node_modules/@js-joda/core/src/temporal/TemporalAmount.js +166 -0
- package/node_modules/@js-joda/core/src/temporal/TemporalField.js +248 -0
- package/node_modules/@js-joda/core/src/temporal/TemporalQueries.js +223 -0
- package/node_modules/@js-joda/core/src/temporal/TemporalQueriesFactory.js +77 -0
- package/node_modules/@js-joda/core/src/temporal/TemporalQuery.js +107 -0
- package/node_modules/@js-joda/core/src/temporal/TemporalUnit.js +179 -0
- package/node_modules/@js-joda/core/src/temporal/ValueRange.js +257 -0
- package/node_modules/@js-joda/core/src/use.js +20 -0
- package/node_modules/@js-joda/core/src/zone/SystemDefaultZoneId.js +31 -0
- package/node_modules/@js-joda/core/src/zone/SystemDefaultZoneRules.js +162 -0
- package/node_modules/@js-joda/core/src/zone/ZoneOffsetTransition.js +289 -0
- package/node_modules/@js-joda/core/src/zone/ZoneRules.js +464 -0
- package/node_modules/@js-joda/core/src/zone/ZoneRulesProvider.js +36 -0
- package/node_modules/@noble/hashes/LICENSE +21 -0
- package/node_modules/@noble/hashes/README.md +563 -0
- package/node_modules/@noble/hashes/_blake.d.ts +21 -0
- package/node_modules/@noble/hashes/_blake.d.ts.map +1 -0
- package/node_modules/@noble/hashes/_blake.js +52 -0
- package/node_modules/@noble/hashes/_blake.js.map +1 -0
- package/node_modules/@noble/hashes/_md.d.ts +99 -0
- package/node_modules/@noble/hashes/_md.d.ts.map +1 -0
- package/node_modules/@noble/hashes/_md.js +202 -0
- package/node_modules/@noble/hashes/_md.js.map +1 -0
- package/node_modules/@noble/hashes/_u64.d.ts +63 -0
- package/node_modules/@noble/hashes/_u64.d.ts.map +1 -0
- package/node_modules/@noble/hashes/_u64.js +84 -0
- package/node_modules/@noble/hashes/_u64.js.map +1 -0
- package/node_modules/@noble/hashes/argon2.d.ts +112 -0
- package/node_modules/@noble/hashes/argon2.d.ts.map +1 -0
- package/node_modules/@noble/hashes/argon2.js +517 -0
- package/node_modules/@noble/hashes/argon2.js.map +1 -0
- package/node_modules/@noble/hashes/blake1.d.ts +156 -0
- package/node_modules/@noble/hashes/blake1.d.ts.map +1 -0
- package/node_modules/@noble/hashes/blake1.js +560 -0
- package/node_modules/@noble/hashes/blake1.js.map +1 -0
- package/node_modules/@noble/hashes/blake2.d.ts +184 -0
- package/node_modules/@noble/hashes/blake2.d.ts.map +1 -0
- package/node_modules/@noble/hashes/blake2.js +501 -0
- package/node_modules/@noble/hashes/blake2.js.map +1 -0
- package/node_modules/@noble/hashes/blake3.d.ts +68 -0
- package/node_modules/@noble/hashes/blake3.d.ts.map +1 -0
- package/node_modules/@noble/hashes/blake3.js +284 -0
- package/node_modules/@noble/hashes/blake3.js.map +1 -0
- package/node_modules/@noble/hashes/eskdf.d.ts +92 -0
- package/node_modules/@noble/hashes/eskdf.d.ts.map +1 -0
- package/node_modules/@noble/hashes/eskdf.js +218 -0
- package/node_modules/@noble/hashes/eskdf.js.map +1 -0
- package/node_modules/@noble/hashes/hkdf.d.ts +64 -0
- package/node_modules/@noble/hashes/hkdf.d.ts.map +1 -0
- package/node_modules/@noble/hashes/hkdf.js +120 -0
- package/node_modules/@noble/hashes/hkdf.js.map +1 -0
- package/node_modules/@noble/hashes/hmac.d.ts +47 -0
- package/node_modules/@noble/hashes/hmac.d.ts.map +1 -0
- package/node_modules/@noble/hashes/hmac.js +93 -0
- package/node_modules/@noble/hashes/hmac.js.map +1 -0
- package/node_modules/@noble/hashes/index.d.ts +2 -0
- package/node_modules/@noble/hashes/index.d.ts.map +1 -0
- package/node_modules/@noble/hashes/index.js +35 -0
- package/node_modules/@noble/hashes/index.js.map +1 -0
- package/node_modules/@noble/hashes/legacy.d.ts +102 -0
- package/node_modules/@noble/hashes/legacy.d.ts.map +1 -0
- package/node_modules/@noble/hashes/legacy.js +327 -0
- package/node_modules/@noble/hashes/legacy.js.map +1 -0
- package/node_modules/@noble/hashes/package.json +97 -0
- package/node_modules/@noble/hashes/pbkdf2.d.ts +56 -0
- package/node_modules/@noble/hashes/pbkdf2.d.ts.map +1 -0
- package/node_modules/@noble/hashes/pbkdf2.js +135 -0
- package/node_modules/@noble/hashes/pbkdf2.js.map +1 -0
- package/node_modules/@noble/hashes/scrypt.d.ts +65 -0
- package/node_modules/@noble/hashes/scrypt.d.ts.map +1 -0
- package/node_modules/@noble/hashes/scrypt.js +257 -0
- package/node_modules/@noble/hashes/scrypt.js.map +1 -0
- package/node_modules/@noble/hashes/sha2.d.ts +249 -0
- package/node_modules/@noble/hashes/sha2.d.ts.map +1 -0
- package/node_modules/@noble/hashes/sha2.js +458 -0
- package/node_modules/@noble/hashes/sha2.js.map +1 -0
- package/node_modules/@noble/hashes/sha3-addons.d.ts +461 -0
- package/node_modules/@noble/hashes/sha3-addons.d.ts.map +1 -0
- package/node_modules/@noble/hashes/sha3-addons.js +783 -0
- package/node_modules/@noble/hashes/sha3-addons.js.map +1 -0
- package/node_modules/@noble/hashes/sha3.d.ts +199 -0
- package/node_modules/@noble/hashes/sha3.d.ts.map +1 -0
- package/node_modules/@noble/hashes/sha3.js +431 -0
- package/node_modules/@noble/hashes/sha3.js.map +1 -0
- package/node_modules/@noble/hashes/src/_blake.ts +57 -0
- package/node_modules/@noble/hashes/src/_md.ts +222 -0
- package/node_modules/@noble/hashes/src/_u64.ts +117 -0
- package/node_modules/@noble/hashes/src/argon2.ts +667 -0
- package/node_modules/@noble/hashes/src/blake1.ts +614 -0
- package/node_modules/@noble/hashes/src/blake2.ts +582 -0
- package/node_modules/@noble/hashes/src/blake3.ts +317 -0
- package/node_modules/@noble/hashes/src/eskdf.ts +259 -0
- package/node_modules/@noble/hashes/src/hkdf.ts +133 -0
- package/node_modules/@noble/hashes/src/hmac.ts +126 -0
- package/node_modules/@noble/hashes/src/index.ts +33 -0
- package/node_modules/@noble/hashes/src/legacy.ts +339 -0
- package/node_modules/@noble/hashes/src/pbkdf2.ts +175 -0
- package/node_modules/@noble/hashes/src/scrypt.ts +315 -0
- package/node_modules/@noble/hashes/src/sha2.ts +530 -0
- package/node_modules/@noble/hashes/src/sha3-addons.ts +983 -0
- package/node_modules/@noble/hashes/src/sha3.ts +485 -0
- package/node_modules/@noble/hashes/src/utils.ts +848 -0
- package/node_modules/@noble/hashes/src/webcrypto.ts +239 -0
- package/node_modules/@noble/hashes/utils.d.ts +519 -0
- package/node_modules/@noble/hashes/utils.d.ts.map +1 -0
- package/node_modules/@noble/hashes/utils.js +578 -0
- package/node_modules/@noble/hashes/utils.js.map +1 -0
- package/node_modules/@noble/hashes/webcrypto.d.ts +120 -0
- package/node_modules/@noble/hashes/webcrypto.d.ts.map +1 -0
- package/node_modules/@noble/hashes/webcrypto.js +165 -0
- package/node_modules/@noble/hashes/webcrypto.js.map +1 -0
- package/node_modules/ws/LICENSE +20 -0
- package/node_modules/ws/README.md +548 -0
- package/node_modules/ws/browser.js +8 -0
- package/node_modules/ws/index.js +22 -0
- package/node_modules/ws/lib/buffer-util.js +131 -0
- package/node_modules/ws/lib/constants.js +19 -0
- package/node_modules/ws/lib/event-target.js +292 -0
- package/node_modules/ws/lib/extension.js +203 -0
- package/node_modules/ws/lib/limiter.js +55 -0
- package/node_modules/ws/lib/permessage-deflate.js +530 -0
- package/node_modules/ws/lib/receiver.js +743 -0
- package/node_modules/ws/lib/sender.js +607 -0
- package/node_modules/ws/lib/stream.js +161 -0
- package/node_modules/ws/lib/subprotocol.js +62 -0
- package/node_modules/ws/lib/validation.js +152 -0
- package/node_modules/ws/lib/websocket-server.js +562 -0
- package/node_modules/ws/lib/websocket.js +1407 -0
- package/node_modules/ws/package.json +74 -0
- package/node_modules/ws/wrapper.mjs +21 -0
- package/package.json +53 -0
|
@@ -0,0 +1,1810 @@
|
|
|
1
|
+
import {
|
|
2
|
+
VOID3gxj6tk5isa35 as VOID,
|
|
3
|
+
emptyMapr06gerzljqtm as emptyMap,
|
|
4
|
+
constructCallableReference23y65rf941mch as constructCallableReference,
|
|
5
|
+
getKClass3t8tygqu4lcxf as getKClass,
|
|
6
|
+
arrayOf1akklvh2at202 as arrayOf,
|
|
7
|
+
createKType31ecntyyaay3k as createKType,
|
|
8
|
+
THROW_CCE2g6jy02ryeudk as THROW_CCE,
|
|
9
|
+
isInterface3d6p8outrmvmk as isInterface,
|
|
10
|
+
Unit_instance3vdlo4e4f5ggx as Unit_instance,
|
|
11
|
+
Companion_getInstance4z8fvmvpott5 as Companion_getInstance,
|
|
12
|
+
DurationUnit_SECONDS_getInstancehu17fry790z2 as DurationUnit_SECONDS_getInstance,
|
|
13
|
+
toDuration7gy6v749ektt as toDuration,
|
|
14
|
+
Exceptiondt2hlxn7j7vw as Exception,
|
|
15
|
+
KtList3hktaavzmj137 as KtList,
|
|
16
|
+
createInvariantKTypeProjection3h5364czc0a8w as createInvariantKTypeProjection,
|
|
17
|
+
StringBuildermazzzhj6kkai as StringBuilder,
|
|
18
|
+
DurationUnit_MINUTES_getInstance3l9dh3bdonhtl as DurationUnit_MINUTES_getInstance,
|
|
19
|
+
protoOf180f3jzyo7rfj as protoOf,
|
|
20
|
+
initMetadataForClassbxx6q50dy2s7 as initMetadataForClass,
|
|
21
|
+
DurationUnit_HOURS_getInstance2pk22nwzfy0g6 as DurationUnit_HOURS_getInstance,
|
|
22
|
+
to2cs3ny02qtbcb as to,
|
|
23
|
+
plus2lr02ok6jhhxu as plus,
|
|
24
|
+
} from '@attocash/commons-core/kotlin-kotlin-stdlib.mjs';
|
|
25
|
+
import {
|
|
26
|
+
ByteReadChannel2wzou76jce72d as ByteReadChannel,
|
|
27
|
+
readLineStrict37pbadwlm0pk8 as readLineStrict,
|
|
28
|
+
} from '@attocash/commons-transport/ktor-ktor-io.mjs';
|
|
29
|
+
import { TypeInfo2nbxsuf4v8os2 as TypeInfo } from '@attocash/commons-transport/ktor-ktor-utils.mjs';
|
|
30
|
+
import {
|
|
31
|
+
get_transportJsonzzw8gzfippt4 as get_transportJson,
|
|
32
|
+
get_NDJSON_CONTENT_TYPE386janj06hy1d as get_NDJSON_CONTENT_TYPE,
|
|
33
|
+
configure18kp03c75rl90 as configure,
|
|
34
|
+
AttoHttpTransport70f5iyffajm5 as AttoHttpTransport,
|
|
35
|
+
AttoHttpTimeouts3bfe7b1gjsoyq as AttoHttpTimeouts,
|
|
36
|
+
httpStatusCodeOrNull1z1hq8jr362us as httpStatusCodeOrNull,
|
|
37
|
+
} from '@attocash/commons-transport/commons-commons-transport.mjs';
|
|
38
|
+
import {
|
|
39
|
+
AttoAccountgigli120r8kv as AttoAccount,
|
|
40
|
+
AttoReceivable1xbn2f5t545d2 as AttoReceivable,
|
|
41
|
+
AttoAccountEntry3jl7ttc9zh04x as AttoAccountEntry,
|
|
42
|
+
AttoTransaction14p2u1c57z17z as AttoTransaction,
|
|
43
|
+
AttoVoterWeight2lq090fplrfgh as AttoVoterWeight,
|
|
44
|
+
} from '@attocash/commons-core/commons-commons-core.mjs';
|
|
45
|
+
import {
|
|
46
|
+
serializer1i4e9ym37oxmo as serializer,
|
|
47
|
+
KSerializerzf77vz1967fq as KSerializer,
|
|
48
|
+
} from '@attocash/commons-core/kotlinx-serialization-kotlinx-serialization-core.mjs';
|
|
49
|
+
import {
|
|
50
|
+
HttpRequestBuilder15f2nnx9sjuv1 as HttpRequestBuilder,
|
|
51
|
+
url2l6iw5ri21nxb as url,
|
|
52
|
+
HttpStatement3zxb33q8lku as HttpStatement,
|
|
53
|
+
} from '@attocash/commons-transport/ktor-ktor-client-core.mjs';
|
|
54
|
+
import {
|
|
55
|
+
Companion_getInstance1pptfj8vjmgsz as Companion_getInstance_0,
|
|
56
|
+
OutgoingContent3t2ohmyam9o76 as OutgoingContent,
|
|
57
|
+
NullBody_instanceyfq32eqie90j as NullBody_instance,
|
|
58
|
+
Application_getInstance17ubdrb0i0ohu as Application_getInstance,
|
|
59
|
+
} from '@attocash/commons-transport/ktor-ktor-http.mjs';
|
|
60
|
+
import {
|
|
61
|
+
AccountSearch2mwh4um1wt8t0 as AccountSearch,
|
|
62
|
+
HeightSearch1x89hguztojew as HeightSearch,
|
|
63
|
+
TimeDifferenceResponse10pcc7bvyvb3b as TimeDifferenceResponse,
|
|
64
|
+
requireMatchingPublishbh1qmbktx90e as requireMatchingPublish,
|
|
65
|
+
nownta9sdmokr07 as now,
|
|
66
|
+
AttoNodeOperations2ltve6dru3dak as AttoNodeOperations,
|
|
67
|
+
Companion_instance3i5kbwua9h4lo as Companion_instance,
|
|
68
|
+
toAsync1y1ofd781df0q as toAsync,
|
|
69
|
+
} from '@attocash/commons-node/commons-commons-node.mjs';
|
|
70
|
+
import {
|
|
71
|
+
channelFlow1or0c85tk04v1 as channelFlow,
|
|
72
|
+
first1gbp9d21tksw3 as first,
|
|
73
|
+
} from '@attocash/commons-transport/kotlinx-coroutines-core.mjs';
|
|
74
|
+
//region block: imports
|
|
75
|
+
//endregion
|
|
76
|
+
//region block: pre-declaration
|
|
77
|
+
class AttoNodeClientRemote {
|
|
78
|
+
constructor(baseUrl, headerProvider) {
|
|
79
|
+
var tmp;
|
|
80
|
+
if (headerProvider === VOID) {
|
|
81
|
+
tmp = AttoNodeClientRemote$_init_$slambda_etzix7();
|
|
82
|
+
} else {
|
|
83
|
+
tmp = headerProvider;
|
|
84
|
+
}
|
|
85
|
+
headerProvider = tmp;
|
|
86
|
+
this.y5c_1 = new AttoHttpTransport(baseUrl, headerProvider);
|
|
87
|
+
}
|
|
88
|
+
*t3p(publicKey, $completion) {
|
|
89
|
+
var tmp;
|
|
90
|
+
try {
|
|
91
|
+
var tmp2 = 'accounts/' + publicKey.toString();
|
|
92
|
+
// Inline function 'kotlin.time.Companion.seconds' call
|
|
93
|
+
Companion_getInstance();
|
|
94
|
+
// Inline function 'cash.atto.commons.node.AttoNodeClientRemote.get' call
|
|
95
|
+
var timeout = toDuration(1, DurationUnit_SECONDS_getInstance());
|
|
96
|
+
var tmp0 = this.y5c_1;
|
|
97
|
+
// Inline function 'cash.atto.commons.transport.AttoHttpTransport.get' call
|
|
98
|
+
var timeouts = new AttoHttpTimeouts(timeout, timeout, timeout);
|
|
99
|
+
var tmp0_0 = tmp0.t5c_1;
|
|
100
|
+
// Inline function 'io.ktor.client.request.get' call
|
|
101
|
+
var urlString = tmp0.u5c(tmp2);
|
|
102
|
+
// Inline function 'io.ktor.client.request.get' call
|
|
103
|
+
// Inline function 'kotlin.apply' call
|
|
104
|
+
var this_0 = new HttpRequestBuilder();
|
|
105
|
+
url(this_0, urlString);
|
|
106
|
+
configure(this_0, yield* tmp0.s5c_1($completion), Application_getInstance().n49_1, timeouts);
|
|
107
|
+
// Inline function 'io.ktor.client.request.get' call
|
|
108
|
+
this_0.h4w_1 = Companion_getInstance_0().h4g_1;
|
|
109
|
+
// Inline function 'io.ktor.client.request.request' call
|
|
110
|
+
// Inline function 'io.ktor.client.call.body' call
|
|
111
|
+
var tmp_0 = (yield* (new HttpStatement(this_0, tmp0_0)).j5a($completion)).e4x();
|
|
112
|
+
// Inline function 'io.ktor.util.reflect.typeInfo' call
|
|
113
|
+
var tmp_1 = getKClass(AttoAccount);
|
|
114
|
+
// Inline function 'io.ktor.util.reflect.typeOfOrNull' call
|
|
115
|
+
var tmp_2;
|
|
116
|
+
try {
|
|
117
|
+
tmp_2 = createKType(getKClass(AttoAccount), arrayOf([]), false);
|
|
118
|
+
} catch ($p) {
|
|
119
|
+
var tmp_3;
|
|
120
|
+
if ($p instanceof Error) {
|
|
121
|
+
var _unused_var__etf5q3 = $p;
|
|
122
|
+
tmp_3 = null;
|
|
123
|
+
} else {
|
|
124
|
+
throw $p;
|
|
125
|
+
}
|
|
126
|
+
tmp_2 = tmp_3;
|
|
127
|
+
}
|
|
128
|
+
var tmp$ret$12 = tmp_2;
|
|
129
|
+
var tmp$ret$11 = new TypeInfo(tmp_1, tmp$ret$12);
|
|
130
|
+
var tmp_4 = yield* tmp_0.b4x(tmp$ret$11, $completion);
|
|
131
|
+
tmp = tmp_4 instanceof AttoAccount ? tmp_4 : THROW_CCE();
|
|
132
|
+
} catch ($p_0) {
|
|
133
|
+
var tmp_5;
|
|
134
|
+
if ($p_0 instanceof Exception) {
|
|
135
|
+
var e = $p_0;
|
|
136
|
+
var tmp_6;
|
|
137
|
+
if (httpStatusCodeOrNull(e) === 404) {
|
|
138
|
+
tmp_6 = null;
|
|
139
|
+
} else {
|
|
140
|
+
throw e;
|
|
141
|
+
}
|
|
142
|
+
tmp_5 = tmp_6;
|
|
143
|
+
} else {
|
|
144
|
+
throw $p_0;
|
|
145
|
+
}
|
|
146
|
+
tmp = tmp_5;
|
|
147
|
+
}
|
|
148
|
+
return tmp;
|
|
149
|
+
}
|
|
150
|
+
*u3p(addresses, $completion) {
|
|
151
|
+
var tmp2 = 'accounts';
|
|
152
|
+
// Inline function 'cash.atto.commons.node.AttoNodeClientRemote.post' call
|
|
153
|
+
var body = new AccountSearch(addresses);
|
|
154
|
+
// Inline function 'kotlin.time.Companion.seconds' call
|
|
155
|
+
Companion_getInstance();
|
|
156
|
+
var timeout = toDuration(10, DurationUnit_SECONDS_getInstance());
|
|
157
|
+
var tmp0 = this.y5c_1;
|
|
158
|
+
// Inline function 'cash.atto.commons.transport.AttoHttpTransport.post' call
|
|
159
|
+
var timeouts = new AttoHttpTimeouts(timeout, timeout, timeout);
|
|
160
|
+
var tmp0_0 = tmp0.t5c_1;
|
|
161
|
+
// Inline function 'io.ktor.client.request.post' call
|
|
162
|
+
var urlString = tmp0.u5c(tmp2);
|
|
163
|
+
// Inline function 'io.ktor.client.request.post' call
|
|
164
|
+
var builder = new HttpRequestBuilder();
|
|
165
|
+
builder.h4w_1 = Companion_getInstance_0().i4g_1;
|
|
166
|
+
url(builder, urlString);
|
|
167
|
+
configure(builder, yield* tmp0.s5c_1($completion), Application_getInstance().n49_1, timeouts);
|
|
168
|
+
// Inline function 'io.ktor.client.request.setBody' call
|
|
169
|
+
if (body == null) {
|
|
170
|
+
builder.j4w_1 = NullBody_instance;
|
|
171
|
+
// Inline function 'io.ktor.util.reflect.typeInfo' call
|
|
172
|
+
var tmp = getKClass(AccountSearch);
|
|
173
|
+
// Inline function 'io.ktor.util.reflect.typeOfOrNull' call
|
|
174
|
+
var tmp_0;
|
|
175
|
+
try {
|
|
176
|
+
tmp_0 = createKType(getKClass(AccountSearch), arrayOf([]), false);
|
|
177
|
+
} catch ($p) {
|
|
178
|
+
var tmp_1;
|
|
179
|
+
if ($p instanceof Error) {
|
|
180
|
+
var _unused_var__etf5q3 = $p;
|
|
181
|
+
tmp_1 = null;
|
|
182
|
+
} else {
|
|
183
|
+
throw $p;
|
|
184
|
+
}
|
|
185
|
+
tmp_0 = tmp_1;
|
|
186
|
+
}
|
|
187
|
+
var tmp$ret$9 = tmp_0;
|
|
188
|
+
var tmp$ret$8 = new TypeInfo(tmp, tmp$ret$9);
|
|
189
|
+
builder.y4z(tmp$ret$8);
|
|
190
|
+
} else {
|
|
191
|
+
if (body instanceof OutgoingContent) {
|
|
192
|
+
builder.j4w_1 = body;
|
|
193
|
+
builder.y4z(null);
|
|
194
|
+
} else {
|
|
195
|
+
builder.j4w_1 = body;
|
|
196
|
+
// Inline function 'io.ktor.util.reflect.typeInfo' call
|
|
197
|
+
var tmp_2 = getKClass(AccountSearch);
|
|
198
|
+
// Inline function 'io.ktor.util.reflect.typeOfOrNull' call
|
|
199
|
+
var tmp_3;
|
|
200
|
+
try {
|
|
201
|
+
tmp_3 = createKType(getKClass(AccountSearch), arrayOf([]), false);
|
|
202
|
+
} catch ($p_0) {
|
|
203
|
+
var tmp_4;
|
|
204
|
+
if ($p_0 instanceof Error) {
|
|
205
|
+
var _unused_var__etf5q3_0 = $p_0;
|
|
206
|
+
tmp_4 = null;
|
|
207
|
+
} else {
|
|
208
|
+
throw $p_0;
|
|
209
|
+
}
|
|
210
|
+
tmp_3 = tmp_4;
|
|
211
|
+
}
|
|
212
|
+
var tmp$ret$11 = tmp_3;
|
|
213
|
+
var tmp$ret$10 = new TypeInfo(tmp_2, tmp$ret$11);
|
|
214
|
+
builder.y4z(tmp$ret$10);
|
|
215
|
+
}
|
|
216
|
+
}
|
|
217
|
+
builder.h4w_1 = Companion_getInstance_0().i4g_1;
|
|
218
|
+
// Inline function 'io.ktor.client.request.request' call
|
|
219
|
+
// Inline function 'io.ktor.client.call.body' call
|
|
220
|
+
var tmp_5 = (yield* (new HttpStatement(builder, tmp0_0)).j5a($completion)).e4x();
|
|
221
|
+
// Inline function 'io.ktor.util.reflect.typeInfo' call
|
|
222
|
+
var tmp_6 = getKClass(KtList);
|
|
223
|
+
// Inline function 'io.ktor.util.reflect.typeOfOrNull' call
|
|
224
|
+
var tmp_7;
|
|
225
|
+
try {
|
|
226
|
+
tmp_7 = createKType(getKClass(KtList), arrayOf([createInvariantKTypeProjection(createKType(getKClass(AttoAccount), arrayOf([]), false))]), false);
|
|
227
|
+
} catch ($p_1) {
|
|
228
|
+
var tmp_8;
|
|
229
|
+
if ($p_1 instanceof Error) {
|
|
230
|
+
var _unused_var__etf5q3_1 = $p_1;
|
|
231
|
+
tmp_8 = null;
|
|
232
|
+
} else {
|
|
233
|
+
throw $p_1;
|
|
234
|
+
}
|
|
235
|
+
tmp_7 = tmp_8;
|
|
236
|
+
}
|
|
237
|
+
var tmp$ret$15 = tmp_7;
|
|
238
|
+
var tmp$ret$14 = new TypeInfo(tmp_6, tmp$ret$15);
|
|
239
|
+
var tmp_9 = yield* tmp_5.b4x(tmp$ret$14, $completion);
|
|
240
|
+
return (!(tmp_9 == null) ? isInterface(tmp_9, KtList) : false) ? tmp_9 : THROW_CCE();
|
|
241
|
+
}
|
|
242
|
+
v3p() {
|
|
243
|
+
// Inline function 'cash.atto.commons.node.AttoNodeClientRemote.fetchStream' call
|
|
244
|
+
var urlPath = 'accounts/stream';
|
|
245
|
+
var tmp0 = this.y5c_1;
|
|
246
|
+
var tmp = Companion_getInstance().nq_1;
|
|
247
|
+
var tmp_0 = get_STREAM_SOCKET_IDLE_TIMEOUT();
|
|
248
|
+
// Inline function 'kotlin.time.Companion.seconds' call
|
|
249
|
+
Companion_getInstance();
|
|
250
|
+
var tmp$ret$1 = toDuration(10, DurationUnit_SECONDS_getInstance());
|
|
251
|
+
// Inline function 'cash.atto.commons.transport.AttoHttpTransport.getNdjson' call
|
|
252
|
+
var timeouts = new AttoHttpTimeouts(tmp, tmp_0, tmp$ret$1);
|
|
253
|
+
return channelFlow(AttoNodeClientRemote$accountStream$slambda(tmp0, urlPath, timeouts));
|
|
254
|
+
}
|
|
255
|
+
w3p(publicKey) {
|
|
256
|
+
// Inline function 'cash.atto.commons.node.AttoNodeClientRemote.fetchStream' call
|
|
257
|
+
var urlPath = 'accounts/' + publicKey.toString() + '/stream';
|
|
258
|
+
var tmp0 = this.y5c_1;
|
|
259
|
+
var tmp = Companion_getInstance().nq_1;
|
|
260
|
+
var tmp_0 = get_STREAM_SOCKET_IDLE_TIMEOUT();
|
|
261
|
+
// Inline function 'kotlin.time.Companion.seconds' call
|
|
262
|
+
Companion_getInstance();
|
|
263
|
+
var tmp$ret$1 = toDuration(10, DurationUnit_SECONDS_getInstance());
|
|
264
|
+
// Inline function 'cash.atto.commons.transport.AttoHttpTransport.getNdjson' call
|
|
265
|
+
var timeouts = new AttoHttpTimeouts(tmp, tmp_0, tmp$ret$1);
|
|
266
|
+
return channelFlow(AttoNodeClientRemote$accountStream$slambda_0(tmp0, urlPath, timeouts));
|
|
267
|
+
}
|
|
268
|
+
x3p(addresses) {
|
|
269
|
+
var tmp2 = 'accounts/stream';
|
|
270
|
+
// Inline function 'cash.atto.commons.node.AttoNodeClientRemote.fetchStream' call
|
|
271
|
+
var body = new AccountSearch(addresses);
|
|
272
|
+
var requestTimeout = Companion_getInstance().nq_1;
|
|
273
|
+
var socketTimeout = get_STREAM_SOCKET_IDLE_TIMEOUT();
|
|
274
|
+
// Inline function 'kotlin.time.Companion.seconds' call
|
|
275
|
+
Companion_getInstance();
|
|
276
|
+
var connectTimeout = toDuration(10, DurationUnit_SECONDS_getInstance());
|
|
277
|
+
var tmp0 = this.y5c_1;
|
|
278
|
+
// Inline function 'cash.atto.commons.transport.AttoHttpTransport.postNdjson' call
|
|
279
|
+
var timeouts = new AttoHttpTimeouts(requestTimeout, socketTimeout, connectTimeout);
|
|
280
|
+
return channelFlow(AttoNodeClientRemote$accountStream$slambda_1(tmp0, tmp2, timeouts, body));
|
|
281
|
+
}
|
|
282
|
+
y3p(publicKey, minAmount) {
|
|
283
|
+
// Inline function 'cash.atto.commons.node.AttoNodeClientRemote.fetchStream' call
|
|
284
|
+
var urlPath = 'accounts/' + publicKey.toString() + '/receivables/stream?minAmount=' + minAmount.toString();
|
|
285
|
+
var tmp0 = this.y5c_1;
|
|
286
|
+
var tmp = Companion_getInstance().nq_1;
|
|
287
|
+
var tmp_0 = get_STREAM_SOCKET_IDLE_TIMEOUT();
|
|
288
|
+
// Inline function 'kotlin.time.Companion.seconds' call
|
|
289
|
+
Companion_getInstance();
|
|
290
|
+
var tmp$ret$1 = toDuration(10, DurationUnit_SECONDS_getInstance());
|
|
291
|
+
// Inline function 'cash.atto.commons.transport.AttoHttpTransport.getNdjson' call
|
|
292
|
+
var timeouts = new AttoHttpTimeouts(tmp, tmp_0, tmp$ret$1);
|
|
293
|
+
return channelFlow(AttoNodeClientRemote$receivableStream$slambda(tmp0, urlPath, timeouts));
|
|
294
|
+
}
|
|
295
|
+
z3p(addresses, minAmount) {
|
|
296
|
+
var tmp2 = 'accounts/receivables/stream?minAmount=' + minAmount.toString();
|
|
297
|
+
// Inline function 'cash.atto.commons.node.AttoNodeClientRemote.fetchStream' call
|
|
298
|
+
var body = new AccountSearch(addresses);
|
|
299
|
+
var requestTimeout = Companion_getInstance().nq_1;
|
|
300
|
+
var socketTimeout = get_STREAM_SOCKET_IDLE_TIMEOUT();
|
|
301
|
+
// Inline function 'kotlin.time.Companion.seconds' call
|
|
302
|
+
Companion_getInstance();
|
|
303
|
+
var connectTimeout = toDuration(10, DurationUnit_SECONDS_getInstance());
|
|
304
|
+
var tmp0 = this.y5c_1;
|
|
305
|
+
// Inline function 'cash.atto.commons.transport.AttoHttpTransport.postNdjson' call
|
|
306
|
+
var timeouts = new AttoHttpTimeouts(requestTimeout, socketTimeout, connectTimeout);
|
|
307
|
+
return channelFlow(AttoNodeClientRemote$receivableStream$slambda_0(tmp0, tmp2, timeouts, body));
|
|
308
|
+
}
|
|
309
|
+
*a3q(hash, $completion) {
|
|
310
|
+
// Inline function 'cash.atto.commons.node.AttoNodeClientRemote.fetchStream' call
|
|
311
|
+
var urlPath = 'accounts/entries/' + hash.toString() + '/stream';
|
|
312
|
+
var tmp0 = this.y5c_1;
|
|
313
|
+
var tmp = Companion_getInstance().nq_1;
|
|
314
|
+
var tmp_0 = get_STREAM_SOCKET_IDLE_TIMEOUT();
|
|
315
|
+
// Inline function 'kotlin.time.Companion.seconds' call
|
|
316
|
+
Companion_getInstance();
|
|
317
|
+
var tmp$ret$1 = toDuration(10, DurationUnit_SECONDS_getInstance());
|
|
318
|
+
// Inline function 'cash.atto.commons.transport.AttoHttpTransport.getNdjson' call
|
|
319
|
+
var timeouts = new AttoHttpTimeouts(tmp, tmp_0, tmp$ret$1);
|
|
320
|
+
var tmp$ret$0 = channelFlow(AttoNodeClientRemote$accountEntry$slambda(tmp0, urlPath, timeouts));
|
|
321
|
+
return yield* first(tmp$ret$0, $completion);
|
|
322
|
+
}
|
|
323
|
+
b3q() {
|
|
324
|
+
// Inline function 'cash.atto.commons.node.AttoNodeClientRemote.fetchStream' call
|
|
325
|
+
var urlPath = 'accounts/entries/stream';
|
|
326
|
+
var tmp0 = this.y5c_1;
|
|
327
|
+
var tmp = Companion_getInstance().nq_1;
|
|
328
|
+
var tmp_0 = get_STREAM_SOCKET_IDLE_TIMEOUT();
|
|
329
|
+
// Inline function 'kotlin.time.Companion.seconds' call
|
|
330
|
+
Companion_getInstance();
|
|
331
|
+
var tmp$ret$1 = toDuration(10, DurationUnit_SECONDS_getInstance());
|
|
332
|
+
// Inline function 'cash.atto.commons.transport.AttoHttpTransport.getNdjson' call
|
|
333
|
+
var timeouts = new AttoHttpTimeouts(tmp, tmp_0, tmp$ret$1);
|
|
334
|
+
return channelFlow(AttoNodeClientRemote$accountEntryStream$slambda(tmp0, urlPath, timeouts));
|
|
335
|
+
}
|
|
336
|
+
c3q(hash) {
|
|
337
|
+
// Inline function 'cash.atto.commons.node.AttoNodeClientRemote.fetchStream' call
|
|
338
|
+
var urlPath = 'accounts/entries/' + hash.toString() + '/stream';
|
|
339
|
+
var tmp0 = this.y5c_1;
|
|
340
|
+
var tmp = Companion_getInstance().nq_1;
|
|
341
|
+
var tmp_0 = get_STREAM_SOCKET_IDLE_TIMEOUT();
|
|
342
|
+
// Inline function 'kotlin.time.Companion.seconds' call
|
|
343
|
+
Companion_getInstance();
|
|
344
|
+
var tmp$ret$1 = toDuration(10, DurationUnit_SECONDS_getInstance());
|
|
345
|
+
// Inline function 'cash.atto.commons.transport.AttoHttpTransport.getNdjson' call
|
|
346
|
+
var timeouts = new AttoHttpTimeouts(tmp, tmp_0, tmp$ret$1);
|
|
347
|
+
return channelFlow(AttoNodeClientRemote$accountEntryStream$slambda_0(tmp0, urlPath, timeouts));
|
|
348
|
+
}
|
|
349
|
+
d3q(publicKey, fromHeight, toHeight) {
|
|
350
|
+
// Inline function 'kotlin.text.buildString' call
|
|
351
|
+
// Inline function 'kotlin.apply' call
|
|
352
|
+
var this_0 = StringBuilder.h1();
|
|
353
|
+
this_0.i1('fromHeight=' + fromHeight.toString());
|
|
354
|
+
if (!(toHeight == null)) {
|
|
355
|
+
this_0.i1('&toHeight=' + toHeight.toString());
|
|
356
|
+
}
|
|
357
|
+
var queryParams = this_0.toString();
|
|
358
|
+
// Inline function 'cash.atto.commons.node.AttoNodeClientRemote.fetchStream' call
|
|
359
|
+
var urlPath = 'accounts/' + publicKey.toString() + '/entries/stream?' + queryParams;
|
|
360
|
+
var tmp0 = this.y5c_1;
|
|
361
|
+
var tmp = Companion_getInstance().nq_1;
|
|
362
|
+
var tmp_0 = get_STREAM_SOCKET_IDLE_TIMEOUT();
|
|
363
|
+
// Inline function 'kotlin.time.Companion.seconds' call
|
|
364
|
+
Companion_getInstance();
|
|
365
|
+
var tmp$ret$4 = toDuration(10, DurationUnit_SECONDS_getInstance());
|
|
366
|
+
// Inline function 'cash.atto.commons.transport.AttoHttpTransport.getNdjson' call
|
|
367
|
+
var timeouts = new AttoHttpTimeouts(tmp, tmp_0, tmp$ret$4);
|
|
368
|
+
return channelFlow(AttoNodeClientRemote$accountEntryStream$slambda_1(tmp0, urlPath, timeouts));
|
|
369
|
+
}
|
|
370
|
+
e3q(search) {
|
|
371
|
+
// Inline function 'cash.atto.commons.node.AttoNodeClientRemote.fetchStream' call
|
|
372
|
+
var urlPath = 'accounts/entries/stream';
|
|
373
|
+
var requestTimeout = Companion_getInstance().nq_1;
|
|
374
|
+
var socketTimeout = get_STREAM_SOCKET_IDLE_TIMEOUT();
|
|
375
|
+
// Inline function 'kotlin.time.Companion.seconds' call
|
|
376
|
+
Companion_getInstance();
|
|
377
|
+
var connectTimeout = toDuration(10, DurationUnit_SECONDS_getInstance());
|
|
378
|
+
var tmp0 = this.y5c_1;
|
|
379
|
+
// Inline function 'cash.atto.commons.transport.AttoHttpTransport.postNdjson' call
|
|
380
|
+
var timeouts = new AttoHttpTimeouts(requestTimeout, socketTimeout, connectTimeout);
|
|
381
|
+
return channelFlow(AttoNodeClientRemote$accountEntryStream$slambda_2(tmp0, urlPath, timeouts, search));
|
|
382
|
+
}
|
|
383
|
+
*f3q(hash, $completion) {
|
|
384
|
+
// Inline function 'cash.atto.commons.node.AttoNodeClientRemote.get' call
|
|
385
|
+
var urlPath = 'transactions/' + hash.toString();
|
|
386
|
+
// Inline function 'kotlin.time.Companion.seconds' call
|
|
387
|
+
Companion_getInstance();
|
|
388
|
+
var timeout = toDuration(10, DurationUnit_SECONDS_getInstance());
|
|
389
|
+
var tmp0 = this.y5c_1;
|
|
390
|
+
// Inline function 'cash.atto.commons.transport.AttoHttpTransport.get' call
|
|
391
|
+
var timeouts = new AttoHttpTimeouts(timeout, timeout, timeout);
|
|
392
|
+
var tmp0_0 = tmp0.t5c_1;
|
|
393
|
+
// Inline function 'io.ktor.client.request.get' call
|
|
394
|
+
var urlString = tmp0.u5c(urlPath);
|
|
395
|
+
// Inline function 'io.ktor.client.request.get' call
|
|
396
|
+
// Inline function 'kotlin.apply' call
|
|
397
|
+
var this_0 = new HttpRequestBuilder();
|
|
398
|
+
url(this_0, urlString);
|
|
399
|
+
configure(this_0, yield* tmp0.s5c_1($completion), Application_getInstance().n49_1, timeouts);
|
|
400
|
+
// Inline function 'io.ktor.client.request.get' call
|
|
401
|
+
this_0.h4w_1 = Companion_getInstance_0().h4g_1;
|
|
402
|
+
// Inline function 'io.ktor.client.request.request' call
|
|
403
|
+
// Inline function 'io.ktor.client.call.body' call
|
|
404
|
+
var tmp = (yield* (new HttpStatement(this_0, tmp0_0)).j5a($completion)).e4x();
|
|
405
|
+
// Inline function 'io.ktor.util.reflect.typeInfo' call
|
|
406
|
+
var tmp_0 = getKClass(AttoTransaction);
|
|
407
|
+
// Inline function 'io.ktor.util.reflect.typeOfOrNull' call
|
|
408
|
+
var tmp_1;
|
|
409
|
+
try {
|
|
410
|
+
tmp_1 = createKType(getKClass(AttoTransaction), arrayOf([]), false);
|
|
411
|
+
} catch ($p) {
|
|
412
|
+
var tmp_2;
|
|
413
|
+
if ($p instanceof Error) {
|
|
414
|
+
var _unused_var__etf5q3 = $p;
|
|
415
|
+
tmp_2 = null;
|
|
416
|
+
} else {
|
|
417
|
+
throw $p;
|
|
418
|
+
}
|
|
419
|
+
tmp_1 = tmp_2;
|
|
420
|
+
}
|
|
421
|
+
var tmp$ret$12 = tmp_1;
|
|
422
|
+
var tmp$ret$11 = new TypeInfo(tmp_0, tmp$ret$12);
|
|
423
|
+
var tmp_3 = yield* tmp.b4x(tmp$ret$11, $completion);
|
|
424
|
+
return tmp_3 instanceof AttoTransaction ? tmp_3 : THROW_CCE();
|
|
425
|
+
}
|
|
426
|
+
g3q() {
|
|
427
|
+
// Inline function 'cash.atto.commons.node.AttoNodeClientRemote.fetchStream' call
|
|
428
|
+
var urlPath = 'transactions/stream';
|
|
429
|
+
var tmp0 = this.y5c_1;
|
|
430
|
+
var tmp = Companion_getInstance().nq_1;
|
|
431
|
+
var tmp_0 = get_STREAM_SOCKET_IDLE_TIMEOUT();
|
|
432
|
+
// Inline function 'kotlin.time.Companion.seconds' call
|
|
433
|
+
Companion_getInstance();
|
|
434
|
+
var tmp$ret$1 = toDuration(10, DurationUnit_SECONDS_getInstance());
|
|
435
|
+
// Inline function 'cash.atto.commons.transport.AttoHttpTransport.getNdjson' call
|
|
436
|
+
var timeouts = new AttoHttpTimeouts(tmp, tmp_0, tmp$ret$1);
|
|
437
|
+
return channelFlow(AttoNodeClientRemote$transactionStream$slambda(tmp0, urlPath, timeouts));
|
|
438
|
+
}
|
|
439
|
+
h3q(hash) {
|
|
440
|
+
// Inline function 'cash.atto.commons.node.AttoNodeClientRemote.fetchStream' call
|
|
441
|
+
var urlPath = 'transactions/' + hash.toString() + '/stream';
|
|
442
|
+
var tmp0 = this.y5c_1;
|
|
443
|
+
var tmp = Companion_getInstance().nq_1;
|
|
444
|
+
var tmp_0 = get_STREAM_SOCKET_IDLE_TIMEOUT();
|
|
445
|
+
// Inline function 'kotlin.time.Companion.seconds' call
|
|
446
|
+
Companion_getInstance();
|
|
447
|
+
var tmp$ret$1 = toDuration(10, DurationUnit_SECONDS_getInstance());
|
|
448
|
+
// Inline function 'cash.atto.commons.transport.AttoHttpTransport.getNdjson' call
|
|
449
|
+
var timeouts = new AttoHttpTimeouts(tmp, tmp_0, tmp$ret$1);
|
|
450
|
+
return channelFlow(AttoNodeClientRemote$transactionStream$slambda_0(tmp0, urlPath, timeouts));
|
|
451
|
+
}
|
|
452
|
+
i3q(publicKey, fromHeight, toHeight) {
|
|
453
|
+
// Inline function 'kotlin.text.buildString' call
|
|
454
|
+
// Inline function 'kotlin.apply' call
|
|
455
|
+
var this_0 = StringBuilder.h1();
|
|
456
|
+
this_0.i1('fromHeight=' + fromHeight.toString());
|
|
457
|
+
if (!(toHeight == null)) {
|
|
458
|
+
this_0.i1('&toHeight=' + toHeight.toString());
|
|
459
|
+
}
|
|
460
|
+
var queryParams = this_0.toString();
|
|
461
|
+
// Inline function 'cash.atto.commons.node.AttoNodeClientRemote.fetchStream' call
|
|
462
|
+
var urlPath = 'accounts/' + publicKey.toString() + '/transactions/stream?' + queryParams;
|
|
463
|
+
var tmp0 = this.y5c_1;
|
|
464
|
+
var tmp = Companion_getInstance().nq_1;
|
|
465
|
+
var tmp_0 = get_STREAM_SOCKET_IDLE_TIMEOUT();
|
|
466
|
+
// Inline function 'kotlin.time.Companion.seconds' call
|
|
467
|
+
Companion_getInstance();
|
|
468
|
+
var tmp$ret$4 = toDuration(10, DurationUnit_SECONDS_getInstance());
|
|
469
|
+
// Inline function 'cash.atto.commons.transport.AttoHttpTransport.getNdjson' call
|
|
470
|
+
var timeouts = new AttoHttpTimeouts(tmp, tmp_0, tmp$ret$4);
|
|
471
|
+
return channelFlow(AttoNodeClientRemote$transactionStream$slambda_1(tmp0, urlPath, timeouts));
|
|
472
|
+
}
|
|
473
|
+
j3q(search) {
|
|
474
|
+
// Inline function 'cash.atto.commons.node.AttoNodeClientRemote.fetchStream' call
|
|
475
|
+
var urlPath = 'accounts/transactions/stream';
|
|
476
|
+
var requestTimeout = Companion_getInstance().nq_1;
|
|
477
|
+
var socketTimeout = get_STREAM_SOCKET_IDLE_TIMEOUT();
|
|
478
|
+
// Inline function 'kotlin.time.Companion.seconds' call
|
|
479
|
+
Companion_getInstance();
|
|
480
|
+
var connectTimeout = toDuration(10, DurationUnit_SECONDS_getInstance());
|
|
481
|
+
var tmp0 = this.y5c_1;
|
|
482
|
+
// Inline function 'cash.atto.commons.transport.AttoHttpTransport.postNdjson' call
|
|
483
|
+
var timeouts = new AttoHttpTimeouts(requestTimeout, socketTimeout, connectTimeout);
|
|
484
|
+
return channelFlow(AttoNodeClientRemote$transactionStream$slambda_2(tmp0, urlPath, timeouts, search));
|
|
485
|
+
}
|
|
486
|
+
*k3q(currentTime, $completion) {
|
|
487
|
+
// Inline function 'cash.atto.commons.node.AttoNodeClientRemote.get' call
|
|
488
|
+
var urlPath = 'instants/' + currentTime.toString();
|
|
489
|
+
// Inline function 'kotlin.time.Companion.seconds' call
|
|
490
|
+
Companion_getInstance();
|
|
491
|
+
var timeout = toDuration(10, DurationUnit_SECONDS_getInstance());
|
|
492
|
+
var tmp0 = this.y5c_1;
|
|
493
|
+
// Inline function 'cash.atto.commons.transport.AttoHttpTransport.get' call
|
|
494
|
+
var timeouts = new AttoHttpTimeouts(timeout, timeout, timeout);
|
|
495
|
+
var tmp0_0 = tmp0.t5c_1;
|
|
496
|
+
// Inline function 'io.ktor.client.request.get' call
|
|
497
|
+
var urlString = tmp0.u5c(urlPath);
|
|
498
|
+
// Inline function 'io.ktor.client.request.get' call
|
|
499
|
+
// Inline function 'kotlin.apply' call
|
|
500
|
+
var this_0 = new HttpRequestBuilder();
|
|
501
|
+
url(this_0, urlString);
|
|
502
|
+
configure(this_0, yield* tmp0.s5c_1($completion), Application_getInstance().n49_1, timeouts);
|
|
503
|
+
// Inline function 'io.ktor.client.request.get' call
|
|
504
|
+
this_0.h4w_1 = Companion_getInstance_0().h4g_1;
|
|
505
|
+
// Inline function 'io.ktor.client.request.request' call
|
|
506
|
+
// Inline function 'io.ktor.client.call.body' call
|
|
507
|
+
var tmp = (yield* (new HttpStatement(this_0, tmp0_0)).j5a($completion)).e4x();
|
|
508
|
+
// Inline function 'io.ktor.util.reflect.typeInfo' call
|
|
509
|
+
var tmp_0 = getKClass(TimeDifferenceResponse);
|
|
510
|
+
// Inline function 'io.ktor.util.reflect.typeOfOrNull' call
|
|
511
|
+
var tmp_1;
|
|
512
|
+
try {
|
|
513
|
+
tmp_1 = createKType(getKClass(TimeDifferenceResponse), arrayOf([]), false);
|
|
514
|
+
} catch ($p) {
|
|
515
|
+
var tmp_2;
|
|
516
|
+
if ($p instanceof Error) {
|
|
517
|
+
var _unused_var__etf5q3 = $p;
|
|
518
|
+
tmp_2 = null;
|
|
519
|
+
} else {
|
|
520
|
+
throw $p;
|
|
521
|
+
}
|
|
522
|
+
tmp_1 = tmp_2;
|
|
523
|
+
}
|
|
524
|
+
var tmp$ret$12 = tmp_1;
|
|
525
|
+
var tmp$ret$11 = new TypeInfo(tmp_0, tmp$ret$12);
|
|
526
|
+
var tmp_3 = yield* tmp.b4x(tmp$ret$11, $completion);
|
|
527
|
+
return tmp_3 instanceof TimeDifferenceResponse ? tmp_3 : THROW_CCE();
|
|
528
|
+
}
|
|
529
|
+
*m3q(transaction, $completion) {
|
|
530
|
+
var tmp2 = 'transactions/stream';
|
|
531
|
+
// Inline function 'kotlin.time.Companion.minutes' call
|
|
532
|
+
Companion_getInstance();
|
|
533
|
+
var tmp6 = toDuration(1, DurationUnit_MINUTES_getInstance());
|
|
534
|
+
// Inline function 'kotlin.time.Companion.minutes' call
|
|
535
|
+
Companion_getInstance();
|
|
536
|
+
var tmp8 = toDuration(1, DurationUnit_MINUTES_getInstance());
|
|
537
|
+
// Inline function 'kotlin.time.Companion.seconds' call
|
|
538
|
+
Companion_getInstance();
|
|
539
|
+
// Inline function 'cash.atto.commons.node.AttoNodeClientRemote.fetchStream' call
|
|
540
|
+
var connectTimeout = toDuration(10, DurationUnit_SECONDS_getInstance());
|
|
541
|
+
var tmp0 = this.y5c_1;
|
|
542
|
+
// Inline function 'cash.atto.commons.transport.AttoHttpTransport.postNdjson' call
|
|
543
|
+
var timeouts = new AttoHttpTimeouts(tmp6, tmp8, connectTimeout);
|
|
544
|
+
var tmp$ret$3 = channelFlow(AttoNodeClientRemote$publish$slambda(tmp0, tmp2, timeouts, transaction));
|
|
545
|
+
var accepted = yield* first(tmp$ret$3, $completion);
|
|
546
|
+
requireMatchingPublish(transaction, accepted);
|
|
547
|
+
return Unit_instance;
|
|
548
|
+
}
|
|
549
|
+
*n3q(address, $completion) {
|
|
550
|
+
// Inline function 'cash.atto.commons.node.AttoNodeClientRemote.get' call
|
|
551
|
+
var urlPath = 'vote-weights/' + address.path;
|
|
552
|
+
// Inline function 'kotlin.time.Companion.seconds' call
|
|
553
|
+
Companion_getInstance();
|
|
554
|
+
var timeout = toDuration(10, DurationUnit_SECONDS_getInstance());
|
|
555
|
+
var tmp0 = this.y5c_1;
|
|
556
|
+
// Inline function 'cash.atto.commons.transport.AttoHttpTransport.get' call
|
|
557
|
+
var timeouts = new AttoHttpTimeouts(timeout, timeout, timeout);
|
|
558
|
+
var tmp0_0 = tmp0.t5c_1;
|
|
559
|
+
// Inline function 'io.ktor.client.request.get' call
|
|
560
|
+
var urlString = tmp0.u5c(urlPath);
|
|
561
|
+
// Inline function 'io.ktor.client.request.get' call
|
|
562
|
+
// Inline function 'kotlin.apply' call
|
|
563
|
+
var this_0 = new HttpRequestBuilder();
|
|
564
|
+
url(this_0, urlString);
|
|
565
|
+
configure(this_0, yield* tmp0.s5c_1($completion), Application_getInstance().n49_1, timeouts);
|
|
566
|
+
// Inline function 'io.ktor.client.request.get' call
|
|
567
|
+
this_0.h4w_1 = Companion_getInstance_0().h4g_1;
|
|
568
|
+
// Inline function 'io.ktor.client.request.request' call
|
|
569
|
+
// Inline function 'io.ktor.client.call.body' call
|
|
570
|
+
var tmp = (yield* (new HttpStatement(this_0, tmp0_0)).j5a($completion)).e4x();
|
|
571
|
+
// Inline function 'io.ktor.util.reflect.typeInfo' call
|
|
572
|
+
var tmp_0 = getKClass(AttoVoterWeight);
|
|
573
|
+
// Inline function 'io.ktor.util.reflect.typeOfOrNull' call
|
|
574
|
+
var tmp_1;
|
|
575
|
+
try {
|
|
576
|
+
tmp_1 = createKType(getKClass(AttoVoterWeight), arrayOf([]), false);
|
|
577
|
+
} catch ($p) {
|
|
578
|
+
var tmp_2;
|
|
579
|
+
if ($p instanceof Error) {
|
|
580
|
+
var _unused_var__etf5q3 = $p;
|
|
581
|
+
tmp_2 = null;
|
|
582
|
+
} else {
|
|
583
|
+
throw $p;
|
|
584
|
+
}
|
|
585
|
+
tmp_1 = tmp_2;
|
|
586
|
+
}
|
|
587
|
+
var tmp$ret$12 = tmp_1;
|
|
588
|
+
var tmp$ret$11 = new TypeInfo(tmp_0, tmp$ret$12);
|
|
589
|
+
var tmp_3 = yield* tmp.b4x(tmp$ret$11, $completion);
|
|
590
|
+
return tmp_3 instanceof AttoVoterWeight ? tmp_3 : THROW_CCE();
|
|
591
|
+
}
|
|
592
|
+
}
|
|
593
|
+
class AttoNodeClientAsyncBuilder {
|
|
594
|
+
constructor(url) {
|
|
595
|
+
this.z5c_1 = url;
|
|
596
|
+
this.a5d_1 = emptyMap();
|
|
597
|
+
}
|
|
598
|
+
headers(value) {
|
|
599
|
+
// Inline function 'kotlin.apply' call
|
|
600
|
+
this.a5d_1 = value;
|
|
601
|
+
return this;
|
|
602
|
+
}
|
|
603
|
+
header(name, value) {
|
|
604
|
+
// Inline function 'kotlin.apply' call
|
|
605
|
+
this.a5d_1 = plus(this.a5d_1, to(name, value));
|
|
606
|
+
return this;
|
|
607
|
+
}
|
|
608
|
+
build() {
|
|
609
|
+
var tmp = Companion_instance;
|
|
610
|
+
return toAsync(remote(tmp, this.z5c_1, AttoNodeClientAsyncBuilder$build$slambda(this)));
|
|
611
|
+
}
|
|
612
|
+
}
|
|
613
|
+
//endregion
|
|
614
|
+
function get_STREAM_SOCKET_IDLE_TIMEOUT() {
|
|
615
|
+
_init_properties_AttoNodeClientRemote_kt__nmpoap();
|
|
616
|
+
return STREAM_SOCKET_IDLE_TIMEOUT;
|
|
617
|
+
}
|
|
618
|
+
var STREAM_SOCKET_IDLE_TIMEOUT;
|
|
619
|
+
function remote(_this__u8e3s4, baseUrl, headerProvider) {
|
|
620
|
+
var tmp;
|
|
621
|
+
if (headerProvider === VOID) {
|
|
622
|
+
tmp = remote$slambda();
|
|
623
|
+
} else {
|
|
624
|
+
tmp = headerProvider;
|
|
625
|
+
}
|
|
626
|
+
headerProvider = tmp;
|
|
627
|
+
_init_properties_AttoNodeClientRemote_kt__nmpoap();
|
|
628
|
+
return new AttoNodeClientRemote(baseUrl, headerProvider);
|
|
629
|
+
}
|
|
630
|
+
function AttoNodeClientRemote$_init_$slambda_etzix7() {
|
|
631
|
+
return constructCallableReference(function *($completion) {
|
|
632
|
+
return emptyMap();
|
|
633
|
+
}, 0);
|
|
634
|
+
}
|
|
635
|
+
function AttoNodeClientRemote$accountStream$slambda$slambda($this_channelFlow) {
|
|
636
|
+
return constructCallableReference(function *(response, $completion) {
|
|
637
|
+
// Inline function 'io.ktor.client.call.body' call
|
|
638
|
+
var tmp = response.e4x();
|
|
639
|
+
// Inline function 'io.ktor.util.reflect.typeInfo' call
|
|
640
|
+
var tmp_0 = getKClass(ByteReadChannel);
|
|
641
|
+
// Inline function 'io.ktor.util.reflect.typeOfOrNull' call
|
|
642
|
+
var tmp_1;
|
|
643
|
+
try {
|
|
644
|
+
tmp_1 = createKType(getKClass(ByteReadChannel), arrayOf([]), false);
|
|
645
|
+
} catch ($p) {
|
|
646
|
+
var tmp_2;
|
|
647
|
+
if ($p instanceof Error) {
|
|
648
|
+
var _unused_var__etf5q3 = $p;
|
|
649
|
+
tmp_2 = null;
|
|
650
|
+
} else {
|
|
651
|
+
throw $p;
|
|
652
|
+
}
|
|
653
|
+
tmp_1 = tmp_2;
|
|
654
|
+
}
|
|
655
|
+
var tmp$ret$2 = tmp_1;
|
|
656
|
+
var tmp$ret$1 = new TypeInfo(tmp_0, tmp$ret$2);
|
|
657
|
+
var tmp_3 = yield* tmp.b4x(tmp$ret$1, $completion);
|
|
658
|
+
// Inline function 'cash.atto.commons.transport.readNdjson' call
|
|
659
|
+
var this_0 = (!(tmp_3 == null) ? isInterface(tmp_3, ByteReadChannel) : false) ? tmp_3 : THROW_CCE();
|
|
660
|
+
while (!this_0.m3y()) {
|
|
661
|
+
var line = yield* readLineStrict(this_0, 2000n, VOID, $completion);
|
|
662
|
+
if (!(line == null)) {
|
|
663
|
+
// Inline function 'kotlinx.serialization.json.Json.decodeFromString' call
|
|
664
|
+
var this_1 = get_transportJson();
|
|
665
|
+
// Inline function 'kotlinx.serialization.serializer' call
|
|
666
|
+
var this_2 = this_1.sz();
|
|
667
|
+
// Inline function 'kotlinx.serialization.internal.cast' call
|
|
668
|
+
var this_3 = serializer(this_2, createKType(getKClass(AttoAccount), arrayOf([]), false));
|
|
669
|
+
var tmp$ret$5 = isInterface(this_3, KSerializer) ? this_3 : THROW_CCE();
|
|
670
|
+
var it = this_1.xv(tmp$ret$5, line);
|
|
671
|
+
yield* $this_channelFlow.p36(it, $completion);
|
|
672
|
+
}
|
|
673
|
+
}
|
|
674
|
+
return Unit_instance;
|
|
675
|
+
}, 1);
|
|
676
|
+
}
|
|
677
|
+
function AttoNodeClientRemote$accountStream$slambda($this, $path, $timeouts) {
|
|
678
|
+
return constructCallableReference(function *($this$channelFlow, $completion) {
|
|
679
|
+
var tmp0 = $this.t5c_1;
|
|
680
|
+
// Inline function 'io.ktor.client.request.prepareGet' call
|
|
681
|
+
var urlString = $this.u5c($path);
|
|
682
|
+
// Inline function 'io.ktor.client.request.prepareGet' call
|
|
683
|
+
// Inline function 'kotlin.apply' call
|
|
684
|
+
var this_0 = new HttpRequestBuilder();
|
|
685
|
+
url(this_0, urlString);
|
|
686
|
+
configure(this_0, yield* $this.s5c_1($completion), get_NDJSON_CONTENT_TYPE(), $timeouts);
|
|
687
|
+
// Inline function 'io.ktor.client.request.prepareGet' call
|
|
688
|
+
this_0.h4w_1 = Companion_getInstance_0().h4g_1;
|
|
689
|
+
// Inline function 'io.ktor.client.request.prepareRequest' call
|
|
690
|
+
var tmp = new HttpStatement(this_0, tmp0);
|
|
691
|
+
yield* tmp.g5a(AttoNodeClientRemote$accountStream$slambda$slambda($this$channelFlow), $completion);
|
|
692
|
+
return Unit_instance;
|
|
693
|
+
}, 1);
|
|
694
|
+
}
|
|
695
|
+
function AttoNodeClientRemote$accountStream$slambda$slambda_0($this_channelFlow) {
|
|
696
|
+
return constructCallableReference(function *(response, $completion) {
|
|
697
|
+
// Inline function 'io.ktor.client.call.body' call
|
|
698
|
+
var tmp = response.e4x();
|
|
699
|
+
// Inline function 'io.ktor.util.reflect.typeInfo' call
|
|
700
|
+
var tmp_0 = getKClass(ByteReadChannel);
|
|
701
|
+
// Inline function 'io.ktor.util.reflect.typeOfOrNull' call
|
|
702
|
+
var tmp_1;
|
|
703
|
+
try {
|
|
704
|
+
tmp_1 = createKType(getKClass(ByteReadChannel), arrayOf([]), false);
|
|
705
|
+
} catch ($p) {
|
|
706
|
+
var tmp_2;
|
|
707
|
+
if ($p instanceof Error) {
|
|
708
|
+
var _unused_var__etf5q3 = $p;
|
|
709
|
+
tmp_2 = null;
|
|
710
|
+
} else {
|
|
711
|
+
throw $p;
|
|
712
|
+
}
|
|
713
|
+
tmp_1 = tmp_2;
|
|
714
|
+
}
|
|
715
|
+
var tmp$ret$2 = tmp_1;
|
|
716
|
+
var tmp$ret$1 = new TypeInfo(tmp_0, tmp$ret$2);
|
|
717
|
+
var tmp_3 = yield* tmp.b4x(tmp$ret$1, $completion);
|
|
718
|
+
// Inline function 'cash.atto.commons.transport.readNdjson' call
|
|
719
|
+
var this_0 = (!(tmp_3 == null) ? isInterface(tmp_3, ByteReadChannel) : false) ? tmp_3 : THROW_CCE();
|
|
720
|
+
while (!this_0.m3y()) {
|
|
721
|
+
var line = yield* readLineStrict(this_0, 2000n, VOID, $completion);
|
|
722
|
+
if (!(line == null)) {
|
|
723
|
+
// Inline function 'kotlinx.serialization.json.Json.decodeFromString' call
|
|
724
|
+
var this_1 = get_transportJson();
|
|
725
|
+
// Inline function 'kotlinx.serialization.serializer' call
|
|
726
|
+
var this_2 = this_1.sz();
|
|
727
|
+
// Inline function 'kotlinx.serialization.internal.cast' call
|
|
728
|
+
var this_3 = serializer(this_2, createKType(getKClass(AttoAccount), arrayOf([]), false));
|
|
729
|
+
var tmp$ret$5 = isInterface(this_3, KSerializer) ? this_3 : THROW_CCE();
|
|
730
|
+
var it = this_1.xv(tmp$ret$5, line);
|
|
731
|
+
yield* $this_channelFlow.p36(it, $completion);
|
|
732
|
+
}
|
|
733
|
+
}
|
|
734
|
+
return Unit_instance;
|
|
735
|
+
}, 1);
|
|
736
|
+
}
|
|
737
|
+
function AttoNodeClientRemote$accountStream$slambda_0($this, $path, $timeouts) {
|
|
738
|
+
return constructCallableReference(function *($this$channelFlow, $completion) {
|
|
739
|
+
var tmp0 = $this.t5c_1;
|
|
740
|
+
// Inline function 'io.ktor.client.request.prepareGet' call
|
|
741
|
+
var urlString = $this.u5c($path);
|
|
742
|
+
// Inline function 'io.ktor.client.request.prepareGet' call
|
|
743
|
+
// Inline function 'kotlin.apply' call
|
|
744
|
+
var this_0 = new HttpRequestBuilder();
|
|
745
|
+
url(this_0, urlString);
|
|
746
|
+
configure(this_0, yield* $this.s5c_1($completion), get_NDJSON_CONTENT_TYPE(), $timeouts);
|
|
747
|
+
// Inline function 'io.ktor.client.request.prepareGet' call
|
|
748
|
+
this_0.h4w_1 = Companion_getInstance_0().h4g_1;
|
|
749
|
+
// Inline function 'io.ktor.client.request.prepareRequest' call
|
|
750
|
+
var tmp = new HttpStatement(this_0, tmp0);
|
|
751
|
+
yield* tmp.g5a(AttoNodeClientRemote$accountStream$slambda$slambda_0($this$channelFlow), $completion);
|
|
752
|
+
return Unit_instance;
|
|
753
|
+
}, 1);
|
|
754
|
+
}
|
|
755
|
+
function AttoNodeClientRemote$accountStream$slambda$slambda_1($this_channelFlow) {
|
|
756
|
+
return constructCallableReference(function *(response, $completion) {
|
|
757
|
+
// Inline function 'io.ktor.client.call.body' call
|
|
758
|
+
var tmp = response.e4x();
|
|
759
|
+
// Inline function 'io.ktor.util.reflect.typeInfo' call
|
|
760
|
+
var tmp_0 = getKClass(ByteReadChannel);
|
|
761
|
+
// Inline function 'io.ktor.util.reflect.typeOfOrNull' call
|
|
762
|
+
var tmp_1;
|
|
763
|
+
try {
|
|
764
|
+
tmp_1 = createKType(getKClass(ByteReadChannel), arrayOf([]), false);
|
|
765
|
+
} catch ($p) {
|
|
766
|
+
var tmp_2;
|
|
767
|
+
if ($p instanceof Error) {
|
|
768
|
+
var _unused_var__etf5q3 = $p;
|
|
769
|
+
tmp_2 = null;
|
|
770
|
+
} else {
|
|
771
|
+
throw $p;
|
|
772
|
+
}
|
|
773
|
+
tmp_1 = tmp_2;
|
|
774
|
+
}
|
|
775
|
+
var tmp$ret$2 = tmp_1;
|
|
776
|
+
var tmp$ret$1 = new TypeInfo(tmp_0, tmp$ret$2);
|
|
777
|
+
var tmp_3 = yield* tmp.b4x(tmp$ret$1, $completion);
|
|
778
|
+
// Inline function 'cash.atto.commons.transport.readNdjson' call
|
|
779
|
+
var this_0 = (!(tmp_3 == null) ? isInterface(tmp_3, ByteReadChannel) : false) ? tmp_3 : THROW_CCE();
|
|
780
|
+
while (!this_0.m3y()) {
|
|
781
|
+
var line = yield* readLineStrict(this_0, 2000n, VOID, $completion);
|
|
782
|
+
if (!(line == null)) {
|
|
783
|
+
// Inline function 'kotlinx.serialization.json.Json.decodeFromString' call
|
|
784
|
+
var this_1 = get_transportJson();
|
|
785
|
+
// Inline function 'kotlinx.serialization.serializer' call
|
|
786
|
+
var this_2 = this_1.sz();
|
|
787
|
+
// Inline function 'kotlinx.serialization.internal.cast' call
|
|
788
|
+
var this_3 = serializer(this_2, createKType(getKClass(AttoAccount), arrayOf([]), false));
|
|
789
|
+
var tmp$ret$5 = isInterface(this_3, KSerializer) ? this_3 : THROW_CCE();
|
|
790
|
+
var it = this_1.xv(tmp$ret$5, line);
|
|
791
|
+
yield* $this_channelFlow.p36(it, $completion);
|
|
792
|
+
}
|
|
793
|
+
}
|
|
794
|
+
return Unit_instance;
|
|
795
|
+
}, 1);
|
|
796
|
+
}
|
|
797
|
+
function AttoNodeClientRemote$accountStream$slambda_1($this, $path, $timeouts, $body) {
|
|
798
|
+
return constructCallableReference(function *($this$channelFlow, $completion) {
|
|
799
|
+
var tmp0 = $this.t5c_1;
|
|
800
|
+
// Inline function 'io.ktor.client.request.preparePost' call
|
|
801
|
+
var urlString = $this.u5c($path);
|
|
802
|
+
// Inline function 'io.ktor.client.request.preparePost' call
|
|
803
|
+
var builder = new HttpRequestBuilder();
|
|
804
|
+
builder.h4w_1 = Companion_getInstance_0().i4g_1;
|
|
805
|
+
// Inline function 'kotlin.apply' call
|
|
806
|
+
url(builder, urlString);
|
|
807
|
+
configure(builder, yield* $this.s5c_1($completion), get_NDJSON_CONTENT_TYPE(), $timeouts);
|
|
808
|
+
// Inline function 'io.ktor.client.request.setBody' call
|
|
809
|
+
var body = $body;
|
|
810
|
+
if (body == null) {
|
|
811
|
+
builder.j4w_1 = NullBody_instance;
|
|
812
|
+
// Inline function 'io.ktor.util.reflect.typeInfo' call
|
|
813
|
+
var tmp = getKClass(AccountSearch);
|
|
814
|
+
// Inline function 'io.ktor.util.reflect.typeOfOrNull' call
|
|
815
|
+
var tmp_0;
|
|
816
|
+
try {
|
|
817
|
+
tmp_0 = createKType(getKClass(AccountSearch), arrayOf([]), false);
|
|
818
|
+
} catch ($p) {
|
|
819
|
+
var tmp_1;
|
|
820
|
+
if ($p instanceof Error) {
|
|
821
|
+
var _unused_var__etf5q3 = $p;
|
|
822
|
+
tmp_1 = null;
|
|
823
|
+
} else {
|
|
824
|
+
throw $p;
|
|
825
|
+
}
|
|
826
|
+
tmp_0 = tmp_1;
|
|
827
|
+
}
|
|
828
|
+
var tmp$ret$7 = tmp_0;
|
|
829
|
+
var tmp$ret$6 = new TypeInfo(tmp, tmp$ret$7);
|
|
830
|
+
builder.y4z(tmp$ret$6);
|
|
831
|
+
} else {
|
|
832
|
+
if (body instanceof OutgoingContent) {
|
|
833
|
+
builder.j4w_1 = body;
|
|
834
|
+
builder.y4z(null);
|
|
835
|
+
} else {
|
|
836
|
+
builder.j4w_1 = body;
|
|
837
|
+
// Inline function 'io.ktor.util.reflect.typeInfo' call
|
|
838
|
+
var tmp_2 = getKClass(AccountSearch);
|
|
839
|
+
// Inline function 'io.ktor.util.reflect.typeOfOrNull' call
|
|
840
|
+
var tmp_3;
|
|
841
|
+
try {
|
|
842
|
+
tmp_3 = createKType(getKClass(AccountSearch), arrayOf([]), false);
|
|
843
|
+
} catch ($p_0) {
|
|
844
|
+
var tmp_4;
|
|
845
|
+
if ($p_0 instanceof Error) {
|
|
846
|
+
var _unused_var__etf5q3_0 = $p_0;
|
|
847
|
+
tmp_4 = null;
|
|
848
|
+
} else {
|
|
849
|
+
throw $p_0;
|
|
850
|
+
}
|
|
851
|
+
tmp_3 = tmp_4;
|
|
852
|
+
}
|
|
853
|
+
var tmp$ret$9 = tmp_3;
|
|
854
|
+
var tmp$ret$8 = new TypeInfo(tmp_2, tmp$ret$9);
|
|
855
|
+
builder.y4z(tmp$ret$8);
|
|
856
|
+
}
|
|
857
|
+
}
|
|
858
|
+
// Inline function 'io.ktor.client.request.prepareRequest' call
|
|
859
|
+
var tmp_5 = new HttpStatement(builder, tmp0);
|
|
860
|
+
yield* tmp_5.g5a(AttoNodeClientRemote$accountStream$slambda$slambda_1($this$channelFlow), $completion);
|
|
861
|
+
return Unit_instance;
|
|
862
|
+
}, 1);
|
|
863
|
+
}
|
|
864
|
+
function AttoNodeClientRemote$receivableStream$slambda$slambda($this_channelFlow) {
|
|
865
|
+
return constructCallableReference(function *(response, $completion) {
|
|
866
|
+
// Inline function 'io.ktor.client.call.body' call
|
|
867
|
+
var tmp = response.e4x();
|
|
868
|
+
// Inline function 'io.ktor.util.reflect.typeInfo' call
|
|
869
|
+
var tmp_0 = getKClass(ByteReadChannel);
|
|
870
|
+
// Inline function 'io.ktor.util.reflect.typeOfOrNull' call
|
|
871
|
+
var tmp_1;
|
|
872
|
+
try {
|
|
873
|
+
tmp_1 = createKType(getKClass(ByteReadChannel), arrayOf([]), false);
|
|
874
|
+
} catch ($p) {
|
|
875
|
+
var tmp_2;
|
|
876
|
+
if ($p instanceof Error) {
|
|
877
|
+
var _unused_var__etf5q3 = $p;
|
|
878
|
+
tmp_2 = null;
|
|
879
|
+
} else {
|
|
880
|
+
throw $p;
|
|
881
|
+
}
|
|
882
|
+
tmp_1 = tmp_2;
|
|
883
|
+
}
|
|
884
|
+
var tmp$ret$2 = tmp_1;
|
|
885
|
+
var tmp$ret$1 = new TypeInfo(tmp_0, tmp$ret$2);
|
|
886
|
+
var tmp_3 = yield* tmp.b4x(tmp$ret$1, $completion);
|
|
887
|
+
// Inline function 'cash.atto.commons.transport.readNdjson' call
|
|
888
|
+
var this_0 = (!(tmp_3 == null) ? isInterface(tmp_3, ByteReadChannel) : false) ? tmp_3 : THROW_CCE();
|
|
889
|
+
while (!this_0.m3y()) {
|
|
890
|
+
var line = yield* readLineStrict(this_0, 2000n, VOID, $completion);
|
|
891
|
+
if (!(line == null)) {
|
|
892
|
+
// Inline function 'kotlinx.serialization.json.Json.decodeFromString' call
|
|
893
|
+
var this_1 = get_transportJson();
|
|
894
|
+
// Inline function 'kotlinx.serialization.serializer' call
|
|
895
|
+
var this_2 = this_1.sz();
|
|
896
|
+
// Inline function 'kotlinx.serialization.internal.cast' call
|
|
897
|
+
var this_3 = serializer(this_2, createKType(getKClass(AttoReceivable), arrayOf([]), false));
|
|
898
|
+
var tmp$ret$5 = isInterface(this_3, KSerializer) ? this_3 : THROW_CCE();
|
|
899
|
+
var it = this_1.xv(tmp$ret$5, line);
|
|
900
|
+
yield* $this_channelFlow.p36(it, $completion);
|
|
901
|
+
}
|
|
902
|
+
}
|
|
903
|
+
return Unit_instance;
|
|
904
|
+
}, 1);
|
|
905
|
+
}
|
|
906
|
+
function AttoNodeClientRemote$receivableStream$slambda($this, $path, $timeouts) {
|
|
907
|
+
return constructCallableReference(function *($this$channelFlow, $completion) {
|
|
908
|
+
var tmp0 = $this.t5c_1;
|
|
909
|
+
// Inline function 'io.ktor.client.request.prepareGet' call
|
|
910
|
+
var urlString = $this.u5c($path);
|
|
911
|
+
// Inline function 'io.ktor.client.request.prepareGet' call
|
|
912
|
+
// Inline function 'kotlin.apply' call
|
|
913
|
+
var this_0 = new HttpRequestBuilder();
|
|
914
|
+
url(this_0, urlString);
|
|
915
|
+
configure(this_0, yield* $this.s5c_1($completion), get_NDJSON_CONTENT_TYPE(), $timeouts);
|
|
916
|
+
// Inline function 'io.ktor.client.request.prepareGet' call
|
|
917
|
+
this_0.h4w_1 = Companion_getInstance_0().h4g_1;
|
|
918
|
+
// Inline function 'io.ktor.client.request.prepareRequest' call
|
|
919
|
+
var tmp = new HttpStatement(this_0, tmp0);
|
|
920
|
+
yield* tmp.g5a(AttoNodeClientRemote$receivableStream$slambda$slambda($this$channelFlow), $completion);
|
|
921
|
+
return Unit_instance;
|
|
922
|
+
}, 1);
|
|
923
|
+
}
|
|
924
|
+
function AttoNodeClientRemote$receivableStream$slambda$slambda_0($this_channelFlow) {
|
|
925
|
+
return constructCallableReference(function *(response, $completion) {
|
|
926
|
+
// Inline function 'io.ktor.client.call.body' call
|
|
927
|
+
var tmp = response.e4x();
|
|
928
|
+
// Inline function 'io.ktor.util.reflect.typeInfo' call
|
|
929
|
+
var tmp_0 = getKClass(ByteReadChannel);
|
|
930
|
+
// Inline function 'io.ktor.util.reflect.typeOfOrNull' call
|
|
931
|
+
var tmp_1;
|
|
932
|
+
try {
|
|
933
|
+
tmp_1 = createKType(getKClass(ByteReadChannel), arrayOf([]), false);
|
|
934
|
+
} catch ($p) {
|
|
935
|
+
var tmp_2;
|
|
936
|
+
if ($p instanceof Error) {
|
|
937
|
+
var _unused_var__etf5q3 = $p;
|
|
938
|
+
tmp_2 = null;
|
|
939
|
+
} else {
|
|
940
|
+
throw $p;
|
|
941
|
+
}
|
|
942
|
+
tmp_1 = tmp_2;
|
|
943
|
+
}
|
|
944
|
+
var tmp$ret$2 = tmp_1;
|
|
945
|
+
var tmp$ret$1 = new TypeInfo(tmp_0, tmp$ret$2);
|
|
946
|
+
var tmp_3 = yield* tmp.b4x(tmp$ret$1, $completion);
|
|
947
|
+
// Inline function 'cash.atto.commons.transport.readNdjson' call
|
|
948
|
+
var this_0 = (!(tmp_3 == null) ? isInterface(tmp_3, ByteReadChannel) : false) ? tmp_3 : THROW_CCE();
|
|
949
|
+
while (!this_0.m3y()) {
|
|
950
|
+
var line = yield* readLineStrict(this_0, 2000n, VOID, $completion);
|
|
951
|
+
if (!(line == null)) {
|
|
952
|
+
// Inline function 'kotlinx.serialization.json.Json.decodeFromString' call
|
|
953
|
+
var this_1 = get_transportJson();
|
|
954
|
+
// Inline function 'kotlinx.serialization.serializer' call
|
|
955
|
+
var this_2 = this_1.sz();
|
|
956
|
+
// Inline function 'kotlinx.serialization.internal.cast' call
|
|
957
|
+
var this_3 = serializer(this_2, createKType(getKClass(AttoReceivable), arrayOf([]), false));
|
|
958
|
+
var tmp$ret$5 = isInterface(this_3, KSerializer) ? this_3 : THROW_CCE();
|
|
959
|
+
var it = this_1.xv(tmp$ret$5, line);
|
|
960
|
+
yield* $this_channelFlow.p36(it, $completion);
|
|
961
|
+
}
|
|
962
|
+
}
|
|
963
|
+
return Unit_instance;
|
|
964
|
+
}, 1);
|
|
965
|
+
}
|
|
966
|
+
function AttoNodeClientRemote$receivableStream$slambda_0($this, $path, $timeouts, $body) {
|
|
967
|
+
return constructCallableReference(function *($this$channelFlow, $completion) {
|
|
968
|
+
var tmp0 = $this.t5c_1;
|
|
969
|
+
// Inline function 'io.ktor.client.request.preparePost' call
|
|
970
|
+
var urlString = $this.u5c($path);
|
|
971
|
+
// Inline function 'io.ktor.client.request.preparePost' call
|
|
972
|
+
var builder = new HttpRequestBuilder();
|
|
973
|
+
builder.h4w_1 = Companion_getInstance_0().i4g_1;
|
|
974
|
+
// Inline function 'kotlin.apply' call
|
|
975
|
+
url(builder, urlString);
|
|
976
|
+
configure(builder, yield* $this.s5c_1($completion), get_NDJSON_CONTENT_TYPE(), $timeouts);
|
|
977
|
+
// Inline function 'io.ktor.client.request.setBody' call
|
|
978
|
+
var body = $body;
|
|
979
|
+
if (body == null) {
|
|
980
|
+
builder.j4w_1 = NullBody_instance;
|
|
981
|
+
// Inline function 'io.ktor.util.reflect.typeInfo' call
|
|
982
|
+
var tmp = getKClass(AccountSearch);
|
|
983
|
+
// Inline function 'io.ktor.util.reflect.typeOfOrNull' call
|
|
984
|
+
var tmp_0;
|
|
985
|
+
try {
|
|
986
|
+
tmp_0 = createKType(getKClass(AccountSearch), arrayOf([]), false);
|
|
987
|
+
} catch ($p) {
|
|
988
|
+
var tmp_1;
|
|
989
|
+
if ($p instanceof Error) {
|
|
990
|
+
var _unused_var__etf5q3 = $p;
|
|
991
|
+
tmp_1 = null;
|
|
992
|
+
} else {
|
|
993
|
+
throw $p;
|
|
994
|
+
}
|
|
995
|
+
tmp_0 = tmp_1;
|
|
996
|
+
}
|
|
997
|
+
var tmp$ret$7 = tmp_0;
|
|
998
|
+
var tmp$ret$6 = new TypeInfo(tmp, tmp$ret$7);
|
|
999
|
+
builder.y4z(tmp$ret$6);
|
|
1000
|
+
} else {
|
|
1001
|
+
if (body instanceof OutgoingContent) {
|
|
1002
|
+
builder.j4w_1 = body;
|
|
1003
|
+
builder.y4z(null);
|
|
1004
|
+
} else {
|
|
1005
|
+
builder.j4w_1 = body;
|
|
1006
|
+
// Inline function 'io.ktor.util.reflect.typeInfo' call
|
|
1007
|
+
var tmp_2 = getKClass(AccountSearch);
|
|
1008
|
+
// Inline function 'io.ktor.util.reflect.typeOfOrNull' call
|
|
1009
|
+
var tmp_3;
|
|
1010
|
+
try {
|
|
1011
|
+
tmp_3 = createKType(getKClass(AccountSearch), arrayOf([]), false);
|
|
1012
|
+
} catch ($p_0) {
|
|
1013
|
+
var tmp_4;
|
|
1014
|
+
if ($p_0 instanceof Error) {
|
|
1015
|
+
var _unused_var__etf5q3_0 = $p_0;
|
|
1016
|
+
tmp_4 = null;
|
|
1017
|
+
} else {
|
|
1018
|
+
throw $p_0;
|
|
1019
|
+
}
|
|
1020
|
+
tmp_3 = tmp_4;
|
|
1021
|
+
}
|
|
1022
|
+
var tmp$ret$9 = tmp_3;
|
|
1023
|
+
var tmp$ret$8 = new TypeInfo(tmp_2, tmp$ret$9);
|
|
1024
|
+
builder.y4z(tmp$ret$8);
|
|
1025
|
+
}
|
|
1026
|
+
}
|
|
1027
|
+
// Inline function 'io.ktor.client.request.prepareRequest' call
|
|
1028
|
+
var tmp_5 = new HttpStatement(builder, tmp0);
|
|
1029
|
+
yield* tmp_5.g5a(AttoNodeClientRemote$receivableStream$slambda$slambda_0($this$channelFlow), $completion);
|
|
1030
|
+
return Unit_instance;
|
|
1031
|
+
}, 1);
|
|
1032
|
+
}
|
|
1033
|
+
function AttoNodeClientRemote$accountEntry$slambda$slambda($this_channelFlow) {
|
|
1034
|
+
return constructCallableReference(function *(response, $completion) {
|
|
1035
|
+
// Inline function 'io.ktor.client.call.body' call
|
|
1036
|
+
var tmp = response.e4x();
|
|
1037
|
+
// Inline function 'io.ktor.util.reflect.typeInfo' call
|
|
1038
|
+
var tmp_0 = getKClass(ByteReadChannel);
|
|
1039
|
+
// Inline function 'io.ktor.util.reflect.typeOfOrNull' call
|
|
1040
|
+
var tmp_1;
|
|
1041
|
+
try {
|
|
1042
|
+
tmp_1 = createKType(getKClass(ByteReadChannel), arrayOf([]), false);
|
|
1043
|
+
} catch ($p) {
|
|
1044
|
+
var tmp_2;
|
|
1045
|
+
if ($p instanceof Error) {
|
|
1046
|
+
var _unused_var__etf5q3 = $p;
|
|
1047
|
+
tmp_2 = null;
|
|
1048
|
+
} else {
|
|
1049
|
+
throw $p;
|
|
1050
|
+
}
|
|
1051
|
+
tmp_1 = tmp_2;
|
|
1052
|
+
}
|
|
1053
|
+
var tmp$ret$2 = tmp_1;
|
|
1054
|
+
var tmp$ret$1 = new TypeInfo(tmp_0, tmp$ret$2);
|
|
1055
|
+
var tmp_3 = yield* tmp.b4x(tmp$ret$1, $completion);
|
|
1056
|
+
// Inline function 'cash.atto.commons.transport.readNdjson' call
|
|
1057
|
+
var this_0 = (!(tmp_3 == null) ? isInterface(tmp_3, ByteReadChannel) : false) ? tmp_3 : THROW_CCE();
|
|
1058
|
+
while (!this_0.m3y()) {
|
|
1059
|
+
var line = yield* readLineStrict(this_0, 2000n, VOID, $completion);
|
|
1060
|
+
if (!(line == null)) {
|
|
1061
|
+
// Inline function 'kotlinx.serialization.json.Json.decodeFromString' call
|
|
1062
|
+
var this_1 = get_transportJson();
|
|
1063
|
+
// Inline function 'kotlinx.serialization.serializer' call
|
|
1064
|
+
var this_2 = this_1.sz();
|
|
1065
|
+
// Inline function 'kotlinx.serialization.internal.cast' call
|
|
1066
|
+
var this_3 = serializer(this_2, createKType(getKClass(AttoAccountEntry), arrayOf([]), false));
|
|
1067
|
+
var tmp$ret$5 = isInterface(this_3, KSerializer) ? this_3 : THROW_CCE();
|
|
1068
|
+
var it = this_1.xv(tmp$ret$5, line);
|
|
1069
|
+
yield* $this_channelFlow.p36(it, $completion);
|
|
1070
|
+
}
|
|
1071
|
+
}
|
|
1072
|
+
return Unit_instance;
|
|
1073
|
+
}, 1);
|
|
1074
|
+
}
|
|
1075
|
+
function AttoNodeClientRemote$accountEntry$slambda($this, $path, $timeouts) {
|
|
1076
|
+
return constructCallableReference(function *($this$channelFlow, $completion) {
|
|
1077
|
+
var tmp0 = $this.t5c_1;
|
|
1078
|
+
// Inline function 'io.ktor.client.request.prepareGet' call
|
|
1079
|
+
var urlString = $this.u5c($path);
|
|
1080
|
+
// Inline function 'io.ktor.client.request.prepareGet' call
|
|
1081
|
+
// Inline function 'kotlin.apply' call
|
|
1082
|
+
var this_0 = new HttpRequestBuilder();
|
|
1083
|
+
url(this_0, urlString);
|
|
1084
|
+
configure(this_0, yield* $this.s5c_1($completion), get_NDJSON_CONTENT_TYPE(), $timeouts);
|
|
1085
|
+
// Inline function 'io.ktor.client.request.prepareGet' call
|
|
1086
|
+
this_0.h4w_1 = Companion_getInstance_0().h4g_1;
|
|
1087
|
+
// Inline function 'io.ktor.client.request.prepareRequest' call
|
|
1088
|
+
var tmp = new HttpStatement(this_0, tmp0);
|
|
1089
|
+
yield* tmp.g5a(AttoNodeClientRemote$accountEntry$slambda$slambda($this$channelFlow), $completion);
|
|
1090
|
+
return Unit_instance;
|
|
1091
|
+
}, 1);
|
|
1092
|
+
}
|
|
1093
|
+
function AttoNodeClientRemote$accountEntryStream$slambda$slambda($this_channelFlow) {
|
|
1094
|
+
return constructCallableReference(function *(response, $completion) {
|
|
1095
|
+
// Inline function 'io.ktor.client.call.body' call
|
|
1096
|
+
var tmp = response.e4x();
|
|
1097
|
+
// Inline function 'io.ktor.util.reflect.typeInfo' call
|
|
1098
|
+
var tmp_0 = getKClass(ByteReadChannel);
|
|
1099
|
+
// Inline function 'io.ktor.util.reflect.typeOfOrNull' call
|
|
1100
|
+
var tmp_1;
|
|
1101
|
+
try {
|
|
1102
|
+
tmp_1 = createKType(getKClass(ByteReadChannel), arrayOf([]), false);
|
|
1103
|
+
} catch ($p) {
|
|
1104
|
+
var tmp_2;
|
|
1105
|
+
if ($p instanceof Error) {
|
|
1106
|
+
var _unused_var__etf5q3 = $p;
|
|
1107
|
+
tmp_2 = null;
|
|
1108
|
+
} else {
|
|
1109
|
+
throw $p;
|
|
1110
|
+
}
|
|
1111
|
+
tmp_1 = tmp_2;
|
|
1112
|
+
}
|
|
1113
|
+
var tmp$ret$2 = tmp_1;
|
|
1114
|
+
var tmp$ret$1 = new TypeInfo(tmp_0, tmp$ret$2);
|
|
1115
|
+
var tmp_3 = yield* tmp.b4x(tmp$ret$1, $completion);
|
|
1116
|
+
// Inline function 'cash.atto.commons.transport.readNdjson' call
|
|
1117
|
+
var this_0 = (!(tmp_3 == null) ? isInterface(tmp_3, ByteReadChannel) : false) ? tmp_3 : THROW_CCE();
|
|
1118
|
+
while (!this_0.m3y()) {
|
|
1119
|
+
var line = yield* readLineStrict(this_0, 2000n, VOID, $completion);
|
|
1120
|
+
if (!(line == null)) {
|
|
1121
|
+
// Inline function 'kotlinx.serialization.json.Json.decodeFromString' call
|
|
1122
|
+
var this_1 = get_transportJson();
|
|
1123
|
+
// Inline function 'kotlinx.serialization.serializer' call
|
|
1124
|
+
var this_2 = this_1.sz();
|
|
1125
|
+
// Inline function 'kotlinx.serialization.internal.cast' call
|
|
1126
|
+
var this_3 = serializer(this_2, createKType(getKClass(AttoAccountEntry), arrayOf([]), false));
|
|
1127
|
+
var tmp$ret$5 = isInterface(this_3, KSerializer) ? this_3 : THROW_CCE();
|
|
1128
|
+
var it = this_1.xv(tmp$ret$5, line);
|
|
1129
|
+
yield* $this_channelFlow.p36(it, $completion);
|
|
1130
|
+
}
|
|
1131
|
+
}
|
|
1132
|
+
return Unit_instance;
|
|
1133
|
+
}, 1);
|
|
1134
|
+
}
|
|
1135
|
+
function AttoNodeClientRemote$accountEntryStream$slambda($this, $path, $timeouts) {
|
|
1136
|
+
return constructCallableReference(function *($this$channelFlow, $completion) {
|
|
1137
|
+
var tmp0 = $this.t5c_1;
|
|
1138
|
+
// Inline function 'io.ktor.client.request.prepareGet' call
|
|
1139
|
+
var urlString = $this.u5c($path);
|
|
1140
|
+
// Inline function 'io.ktor.client.request.prepareGet' call
|
|
1141
|
+
// Inline function 'kotlin.apply' call
|
|
1142
|
+
var this_0 = new HttpRequestBuilder();
|
|
1143
|
+
url(this_0, urlString);
|
|
1144
|
+
configure(this_0, yield* $this.s5c_1($completion), get_NDJSON_CONTENT_TYPE(), $timeouts);
|
|
1145
|
+
// Inline function 'io.ktor.client.request.prepareGet' call
|
|
1146
|
+
this_0.h4w_1 = Companion_getInstance_0().h4g_1;
|
|
1147
|
+
// Inline function 'io.ktor.client.request.prepareRequest' call
|
|
1148
|
+
var tmp = new HttpStatement(this_0, tmp0);
|
|
1149
|
+
yield* tmp.g5a(AttoNodeClientRemote$accountEntryStream$slambda$slambda($this$channelFlow), $completion);
|
|
1150
|
+
return Unit_instance;
|
|
1151
|
+
}, 1);
|
|
1152
|
+
}
|
|
1153
|
+
function AttoNodeClientRemote$accountEntryStream$slambda$slambda_0($this_channelFlow) {
|
|
1154
|
+
return constructCallableReference(function *(response, $completion) {
|
|
1155
|
+
// Inline function 'io.ktor.client.call.body' call
|
|
1156
|
+
var tmp = response.e4x();
|
|
1157
|
+
// Inline function 'io.ktor.util.reflect.typeInfo' call
|
|
1158
|
+
var tmp_0 = getKClass(ByteReadChannel);
|
|
1159
|
+
// Inline function 'io.ktor.util.reflect.typeOfOrNull' call
|
|
1160
|
+
var tmp_1;
|
|
1161
|
+
try {
|
|
1162
|
+
tmp_1 = createKType(getKClass(ByteReadChannel), arrayOf([]), false);
|
|
1163
|
+
} catch ($p) {
|
|
1164
|
+
var tmp_2;
|
|
1165
|
+
if ($p instanceof Error) {
|
|
1166
|
+
var _unused_var__etf5q3 = $p;
|
|
1167
|
+
tmp_2 = null;
|
|
1168
|
+
} else {
|
|
1169
|
+
throw $p;
|
|
1170
|
+
}
|
|
1171
|
+
tmp_1 = tmp_2;
|
|
1172
|
+
}
|
|
1173
|
+
var tmp$ret$2 = tmp_1;
|
|
1174
|
+
var tmp$ret$1 = new TypeInfo(tmp_0, tmp$ret$2);
|
|
1175
|
+
var tmp_3 = yield* tmp.b4x(tmp$ret$1, $completion);
|
|
1176
|
+
// Inline function 'cash.atto.commons.transport.readNdjson' call
|
|
1177
|
+
var this_0 = (!(tmp_3 == null) ? isInterface(tmp_3, ByteReadChannel) : false) ? tmp_3 : THROW_CCE();
|
|
1178
|
+
while (!this_0.m3y()) {
|
|
1179
|
+
var line = yield* readLineStrict(this_0, 2000n, VOID, $completion);
|
|
1180
|
+
if (!(line == null)) {
|
|
1181
|
+
// Inline function 'kotlinx.serialization.json.Json.decodeFromString' call
|
|
1182
|
+
var this_1 = get_transportJson();
|
|
1183
|
+
// Inline function 'kotlinx.serialization.serializer' call
|
|
1184
|
+
var this_2 = this_1.sz();
|
|
1185
|
+
// Inline function 'kotlinx.serialization.internal.cast' call
|
|
1186
|
+
var this_3 = serializer(this_2, createKType(getKClass(AttoAccountEntry), arrayOf([]), false));
|
|
1187
|
+
var tmp$ret$5 = isInterface(this_3, KSerializer) ? this_3 : THROW_CCE();
|
|
1188
|
+
var it = this_1.xv(tmp$ret$5, line);
|
|
1189
|
+
yield* $this_channelFlow.p36(it, $completion);
|
|
1190
|
+
}
|
|
1191
|
+
}
|
|
1192
|
+
return Unit_instance;
|
|
1193
|
+
}, 1);
|
|
1194
|
+
}
|
|
1195
|
+
function AttoNodeClientRemote$accountEntryStream$slambda_0($this, $path, $timeouts) {
|
|
1196
|
+
return constructCallableReference(function *($this$channelFlow, $completion) {
|
|
1197
|
+
var tmp0 = $this.t5c_1;
|
|
1198
|
+
// Inline function 'io.ktor.client.request.prepareGet' call
|
|
1199
|
+
var urlString = $this.u5c($path);
|
|
1200
|
+
// Inline function 'io.ktor.client.request.prepareGet' call
|
|
1201
|
+
// Inline function 'kotlin.apply' call
|
|
1202
|
+
var this_0 = new HttpRequestBuilder();
|
|
1203
|
+
url(this_0, urlString);
|
|
1204
|
+
configure(this_0, yield* $this.s5c_1($completion), get_NDJSON_CONTENT_TYPE(), $timeouts);
|
|
1205
|
+
// Inline function 'io.ktor.client.request.prepareGet' call
|
|
1206
|
+
this_0.h4w_1 = Companion_getInstance_0().h4g_1;
|
|
1207
|
+
// Inline function 'io.ktor.client.request.prepareRequest' call
|
|
1208
|
+
var tmp = new HttpStatement(this_0, tmp0);
|
|
1209
|
+
yield* tmp.g5a(AttoNodeClientRemote$accountEntryStream$slambda$slambda_0($this$channelFlow), $completion);
|
|
1210
|
+
return Unit_instance;
|
|
1211
|
+
}, 1);
|
|
1212
|
+
}
|
|
1213
|
+
function AttoNodeClientRemote$accountEntryStream$slambda$slambda_1($this_channelFlow) {
|
|
1214
|
+
return constructCallableReference(function *(response, $completion) {
|
|
1215
|
+
// Inline function 'io.ktor.client.call.body' call
|
|
1216
|
+
var tmp = response.e4x();
|
|
1217
|
+
// Inline function 'io.ktor.util.reflect.typeInfo' call
|
|
1218
|
+
var tmp_0 = getKClass(ByteReadChannel);
|
|
1219
|
+
// Inline function 'io.ktor.util.reflect.typeOfOrNull' call
|
|
1220
|
+
var tmp_1;
|
|
1221
|
+
try {
|
|
1222
|
+
tmp_1 = createKType(getKClass(ByteReadChannel), arrayOf([]), false);
|
|
1223
|
+
} catch ($p) {
|
|
1224
|
+
var tmp_2;
|
|
1225
|
+
if ($p instanceof Error) {
|
|
1226
|
+
var _unused_var__etf5q3 = $p;
|
|
1227
|
+
tmp_2 = null;
|
|
1228
|
+
} else {
|
|
1229
|
+
throw $p;
|
|
1230
|
+
}
|
|
1231
|
+
tmp_1 = tmp_2;
|
|
1232
|
+
}
|
|
1233
|
+
var tmp$ret$2 = tmp_1;
|
|
1234
|
+
var tmp$ret$1 = new TypeInfo(tmp_0, tmp$ret$2);
|
|
1235
|
+
var tmp_3 = yield* tmp.b4x(tmp$ret$1, $completion);
|
|
1236
|
+
// Inline function 'cash.atto.commons.transport.readNdjson' call
|
|
1237
|
+
var this_0 = (!(tmp_3 == null) ? isInterface(tmp_3, ByteReadChannel) : false) ? tmp_3 : THROW_CCE();
|
|
1238
|
+
while (!this_0.m3y()) {
|
|
1239
|
+
var line = yield* readLineStrict(this_0, 2000n, VOID, $completion);
|
|
1240
|
+
if (!(line == null)) {
|
|
1241
|
+
// Inline function 'kotlinx.serialization.json.Json.decodeFromString' call
|
|
1242
|
+
var this_1 = get_transportJson();
|
|
1243
|
+
// Inline function 'kotlinx.serialization.serializer' call
|
|
1244
|
+
var this_2 = this_1.sz();
|
|
1245
|
+
// Inline function 'kotlinx.serialization.internal.cast' call
|
|
1246
|
+
var this_3 = serializer(this_2, createKType(getKClass(AttoAccountEntry), arrayOf([]), false));
|
|
1247
|
+
var tmp$ret$5 = isInterface(this_3, KSerializer) ? this_3 : THROW_CCE();
|
|
1248
|
+
var it = this_1.xv(tmp$ret$5, line);
|
|
1249
|
+
yield* $this_channelFlow.p36(it, $completion);
|
|
1250
|
+
}
|
|
1251
|
+
}
|
|
1252
|
+
return Unit_instance;
|
|
1253
|
+
}, 1);
|
|
1254
|
+
}
|
|
1255
|
+
function AttoNodeClientRemote$accountEntryStream$slambda_1($this, $path, $timeouts) {
|
|
1256
|
+
return constructCallableReference(function *($this$channelFlow, $completion) {
|
|
1257
|
+
var tmp0 = $this.t5c_1;
|
|
1258
|
+
// Inline function 'io.ktor.client.request.prepareGet' call
|
|
1259
|
+
var urlString = $this.u5c($path);
|
|
1260
|
+
// Inline function 'io.ktor.client.request.prepareGet' call
|
|
1261
|
+
// Inline function 'kotlin.apply' call
|
|
1262
|
+
var this_0 = new HttpRequestBuilder();
|
|
1263
|
+
url(this_0, urlString);
|
|
1264
|
+
configure(this_0, yield* $this.s5c_1($completion), get_NDJSON_CONTENT_TYPE(), $timeouts);
|
|
1265
|
+
// Inline function 'io.ktor.client.request.prepareGet' call
|
|
1266
|
+
this_0.h4w_1 = Companion_getInstance_0().h4g_1;
|
|
1267
|
+
// Inline function 'io.ktor.client.request.prepareRequest' call
|
|
1268
|
+
var tmp = new HttpStatement(this_0, tmp0);
|
|
1269
|
+
yield* tmp.g5a(AttoNodeClientRemote$accountEntryStream$slambda$slambda_1($this$channelFlow), $completion);
|
|
1270
|
+
return Unit_instance;
|
|
1271
|
+
}, 1);
|
|
1272
|
+
}
|
|
1273
|
+
function AttoNodeClientRemote$accountEntryStream$slambda$slambda_2($this_channelFlow) {
|
|
1274
|
+
return constructCallableReference(function *(response, $completion) {
|
|
1275
|
+
// Inline function 'io.ktor.client.call.body' call
|
|
1276
|
+
var tmp = response.e4x();
|
|
1277
|
+
// Inline function 'io.ktor.util.reflect.typeInfo' call
|
|
1278
|
+
var tmp_0 = getKClass(ByteReadChannel);
|
|
1279
|
+
// Inline function 'io.ktor.util.reflect.typeOfOrNull' call
|
|
1280
|
+
var tmp_1;
|
|
1281
|
+
try {
|
|
1282
|
+
tmp_1 = createKType(getKClass(ByteReadChannel), arrayOf([]), false);
|
|
1283
|
+
} catch ($p) {
|
|
1284
|
+
var tmp_2;
|
|
1285
|
+
if ($p instanceof Error) {
|
|
1286
|
+
var _unused_var__etf5q3 = $p;
|
|
1287
|
+
tmp_2 = null;
|
|
1288
|
+
} else {
|
|
1289
|
+
throw $p;
|
|
1290
|
+
}
|
|
1291
|
+
tmp_1 = tmp_2;
|
|
1292
|
+
}
|
|
1293
|
+
var tmp$ret$2 = tmp_1;
|
|
1294
|
+
var tmp$ret$1 = new TypeInfo(tmp_0, tmp$ret$2);
|
|
1295
|
+
var tmp_3 = yield* tmp.b4x(tmp$ret$1, $completion);
|
|
1296
|
+
// Inline function 'cash.atto.commons.transport.readNdjson' call
|
|
1297
|
+
var this_0 = (!(tmp_3 == null) ? isInterface(tmp_3, ByteReadChannel) : false) ? tmp_3 : THROW_CCE();
|
|
1298
|
+
while (!this_0.m3y()) {
|
|
1299
|
+
var line = yield* readLineStrict(this_0, 2000n, VOID, $completion);
|
|
1300
|
+
if (!(line == null)) {
|
|
1301
|
+
// Inline function 'kotlinx.serialization.json.Json.decodeFromString' call
|
|
1302
|
+
var this_1 = get_transportJson();
|
|
1303
|
+
// Inline function 'kotlinx.serialization.serializer' call
|
|
1304
|
+
var this_2 = this_1.sz();
|
|
1305
|
+
// Inline function 'kotlinx.serialization.internal.cast' call
|
|
1306
|
+
var this_3 = serializer(this_2, createKType(getKClass(AttoAccountEntry), arrayOf([]), false));
|
|
1307
|
+
var tmp$ret$5 = isInterface(this_3, KSerializer) ? this_3 : THROW_CCE();
|
|
1308
|
+
var it = this_1.xv(tmp$ret$5, line);
|
|
1309
|
+
yield* $this_channelFlow.p36(it, $completion);
|
|
1310
|
+
}
|
|
1311
|
+
}
|
|
1312
|
+
return Unit_instance;
|
|
1313
|
+
}, 1);
|
|
1314
|
+
}
|
|
1315
|
+
function AttoNodeClientRemote$accountEntryStream$slambda_2($this, $path, $timeouts, $body) {
|
|
1316
|
+
return constructCallableReference(function *($this$channelFlow, $completion) {
|
|
1317
|
+
var tmp0 = $this.t5c_1;
|
|
1318
|
+
// Inline function 'io.ktor.client.request.preparePost' call
|
|
1319
|
+
var urlString = $this.u5c($path);
|
|
1320
|
+
// Inline function 'io.ktor.client.request.preparePost' call
|
|
1321
|
+
var builder = new HttpRequestBuilder();
|
|
1322
|
+
builder.h4w_1 = Companion_getInstance_0().i4g_1;
|
|
1323
|
+
// Inline function 'kotlin.apply' call
|
|
1324
|
+
url(builder, urlString);
|
|
1325
|
+
configure(builder, yield* $this.s5c_1($completion), get_NDJSON_CONTENT_TYPE(), $timeouts);
|
|
1326
|
+
// Inline function 'io.ktor.client.request.setBody' call
|
|
1327
|
+
var body = $body;
|
|
1328
|
+
if (body == null) {
|
|
1329
|
+
builder.j4w_1 = NullBody_instance;
|
|
1330
|
+
// Inline function 'io.ktor.util.reflect.typeInfo' call
|
|
1331
|
+
var tmp = getKClass(HeightSearch);
|
|
1332
|
+
// Inline function 'io.ktor.util.reflect.typeOfOrNull' call
|
|
1333
|
+
var tmp_0;
|
|
1334
|
+
try {
|
|
1335
|
+
tmp_0 = createKType(getKClass(HeightSearch), arrayOf([]), false);
|
|
1336
|
+
} catch ($p) {
|
|
1337
|
+
var tmp_1;
|
|
1338
|
+
if ($p instanceof Error) {
|
|
1339
|
+
var _unused_var__etf5q3 = $p;
|
|
1340
|
+
tmp_1 = null;
|
|
1341
|
+
} else {
|
|
1342
|
+
throw $p;
|
|
1343
|
+
}
|
|
1344
|
+
tmp_0 = tmp_1;
|
|
1345
|
+
}
|
|
1346
|
+
var tmp$ret$7 = tmp_0;
|
|
1347
|
+
var tmp$ret$6 = new TypeInfo(tmp, tmp$ret$7);
|
|
1348
|
+
builder.y4z(tmp$ret$6);
|
|
1349
|
+
} else {
|
|
1350
|
+
if (body instanceof OutgoingContent) {
|
|
1351
|
+
builder.j4w_1 = body;
|
|
1352
|
+
builder.y4z(null);
|
|
1353
|
+
} else {
|
|
1354
|
+
builder.j4w_1 = body;
|
|
1355
|
+
// Inline function 'io.ktor.util.reflect.typeInfo' call
|
|
1356
|
+
var tmp_2 = getKClass(HeightSearch);
|
|
1357
|
+
// Inline function 'io.ktor.util.reflect.typeOfOrNull' call
|
|
1358
|
+
var tmp_3;
|
|
1359
|
+
try {
|
|
1360
|
+
tmp_3 = createKType(getKClass(HeightSearch), arrayOf([]), false);
|
|
1361
|
+
} catch ($p_0) {
|
|
1362
|
+
var tmp_4;
|
|
1363
|
+
if ($p_0 instanceof Error) {
|
|
1364
|
+
var _unused_var__etf5q3_0 = $p_0;
|
|
1365
|
+
tmp_4 = null;
|
|
1366
|
+
} else {
|
|
1367
|
+
throw $p_0;
|
|
1368
|
+
}
|
|
1369
|
+
tmp_3 = tmp_4;
|
|
1370
|
+
}
|
|
1371
|
+
var tmp$ret$9 = tmp_3;
|
|
1372
|
+
var tmp$ret$8 = new TypeInfo(tmp_2, tmp$ret$9);
|
|
1373
|
+
builder.y4z(tmp$ret$8);
|
|
1374
|
+
}
|
|
1375
|
+
}
|
|
1376
|
+
// Inline function 'io.ktor.client.request.prepareRequest' call
|
|
1377
|
+
var tmp_5 = new HttpStatement(builder, tmp0);
|
|
1378
|
+
yield* tmp_5.g5a(AttoNodeClientRemote$accountEntryStream$slambda$slambda_2($this$channelFlow), $completion);
|
|
1379
|
+
return Unit_instance;
|
|
1380
|
+
}, 1);
|
|
1381
|
+
}
|
|
1382
|
+
function AttoNodeClientRemote$transactionStream$slambda$slambda($this_channelFlow) {
|
|
1383
|
+
return constructCallableReference(function *(response, $completion) {
|
|
1384
|
+
// Inline function 'io.ktor.client.call.body' call
|
|
1385
|
+
var tmp = response.e4x();
|
|
1386
|
+
// Inline function 'io.ktor.util.reflect.typeInfo' call
|
|
1387
|
+
var tmp_0 = getKClass(ByteReadChannel);
|
|
1388
|
+
// Inline function 'io.ktor.util.reflect.typeOfOrNull' call
|
|
1389
|
+
var tmp_1;
|
|
1390
|
+
try {
|
|
1391
|
+
tmp_1 = createKType(getKClass(ByteReadChannel), arrayOf([]), false);
|
|
1392
|
+
} catch ($p) {
|
|
1393
|
+
var tmp_2;
|
|
1394
|
+
if ($p instanceof Error) {
|
|
1395
|
+
var _unused_var__etf5q3 = $p;
|
|
1396
|
+
tmp_2 = null;
|
|
1397
|
+
} else {
|
|
1398
|
+
throw $p;
|
|
1399
|
+
}
|
|
1400
|
+
tmp_1 = tmp_2;
|
|
1401
|
+
}
|
|
1402
|
+
var tmp$ret$2 = tmp_1;
|
|
1403
|
+
var tmp$ret$1 = new TypeInfo(tmp_0, tmp$ret$2);
|
|
1404
|
+
var tmp_3 = yield* tmp.b4x(tmp$ret$1, $completion);
|
|
1405
|
+
// Inline function 'cash.atto.commons.transport.readNdjson' call
|
|
1406
|
+
var this_0 = (!(tmp_3 == null) ? isInterface(tmp_3, ByteReadChannel) : false) ? tmp_3 : THROW_CCE();
|
|
1407
|
+
while (!this_0.m3y()) {
|
|
1408
|
+
var line = yield* readLineStrict(this_0, 2000n, VOID, $completion);
|
|
1409
|
+
if (!(line == null)) {
|
|
1410
|
+
// Inline function 'kotlinx.serialization.json.Json.decodeFromString' call
|
|
1411
|
+
var this_1 = get_transportJson();
|
|
1412
|
+
// Inline function 'kotlinx.serialization.serializer' call
|
|
1413
|
+
var this_2 = this_1.sz();
|
|
1414
|
+
// Inline function 'kotlinx.serialization.internal.cast' call
|
|
1415
|
+
var this_3 = serializer(this_2, createKType(getKClass(AttoTransaction), arrayOf([]), false));
|
|
1416
|
+
var tmp$ret$5 = isInterface(this_3, KSerializer) ? this_3 : THROW_CCE();
|
|
1417
|
+
var it = this_1.xv(tmp$ret$5, line);
|
|
1418
|
+
yield* $this_channelFlow.p36(it, $completion);
|
|
1419
|
+
}
|
|
1420
|
+
}
|
|
1421
|
+
return Unit_instance;
|
|
1422
|
+
}, 1);
|
|
1423
|
+
}
|
|
1424
|
+
function AttoNodeClientRemote$transactionStream$slambda($this, $path, $timeouts) {
|
|
1425
|
+
return constructCallableReference(function *($this$channelFlow, $completion) {
|
|
1426
|
+
var tmp0 = $this.t5c_1;
|
|
1427
|
+
// Inline function 'io.ktor.client.request.prepareGet' call
|
|
1428
|
+
var urlString = $this.u5c($path);
|
|
1429
|
+
// Inline function 'io.ktor.client.request.prepareGet' call
|
|
1430
|
+
// Inline function 'kotlin.apply' call
|
|
1431
|
+
var this_0 = new HttpRequestBuilder();
|
|
1432
|
+
url(this_0, urlString);
|
|
1433
|
+
configure(this_0, yield* $this.s5c_1($completion), get_NDJSON_CONTENT_TYPE(), $timeouts);
|
|
1434
|
+
// Inline function 'io.ktor.client.request.prepareGet' call
|
|
1435
|
+
this_0.h4w_1 = Companion_getInstance_0().h4g_1;
|
|
1436
|
+
// Inline function 'io.ktor.client.request.prepareRequest' call
|
|
1437
|
+
var tmp = new HttpStatement(this_0, tmp0);
|
|
1438
|
+
yield* tmp.g5a(AttoNodeClientRemote$transactionStream$slambda$slambda($this$channelFlow), $completion);
|
|
1439
|
+
return Unit_instance;
|
|
1440
|
+
}, 1);
|
|
1441
|
+
}
|
|
1442
|
+
function AttoNodeClientRemote$transactionStream$slambda$slambda_0($this_channelFlow) {
|
|
1443
|
+
return constructCallableReference(function *(response, $completion) {
|
|
1444
|
+
// Inline function 'io.ktor.client.call.body' call
|
|
1445
|
+
var tmp = response.e4x();
|
|
1446
|
+
// Inline function 'io.ktor.util.reflect.typeInfo' call
|
|
1447
|
+
var tmp_0 = getKClass(ByteReadChannel);
|
|
1448
|
+
// Inline function 'io.ktor.util.reflect.typeOfOrNull' call
|
|
1449
|
+
var tmp_1;
|
|
1450
|
+
try {
|
|
1451
|
+
tmp_1 = createKType(getKClass(ByteReadChannel), arrayOf([]), false);
|
|
1452
|
+
} catch ($p) {
|
|
1453
|
+
var tmp_2;
|
|
1454
|
+
if ($p instanceof Error) {
|
|
1455
|
+
var _unused_var__etf5q3 = $p;
|
|
1456
|
+
tmp_2 = null;
|
|
1457
|
+
} else {
|
|
1458
|
+
throw $p;
|
|
1459
|
+
}
|
|
1460
|
+
tmp_1 = tmp_2;
|
|
1461
|
+
}
|
|
1462
|
+
var tmp$ret$2 = tmp_1;
|
|
1463
|
+
var tmp$ret$1 = new TypeInfo(tmp_0, tmp$ret$2);
|
|
1464
|
+
var tmp_3 = yield* tmp.b4x(tmp$ret$1, $completion);
|
|
1465
|
+
// Inline function 'cash.atto.commons.transport.readNdjson' call
|
|
1466
|
+
var this_0 = (!(tmp_3 == null) ? isInterface(tmp_3, ByteReadChannel) : false) ? tmp_3 : THROW_CCE();
|
|
1467
|
+
while (!this_0.m3y()) {
|
|
1468
|
+
var line = yield* readLineStrict(this_0, 2000n, VOID, $completion);
|
|
1469
|
+
if (!(line == null)) {
|
|
1470
|
+
// Inline function 'kotlinx.serialization.json.Json.decodeFromString' call
|
|
1471
|
+
var this_1 = get_transportJson();
|
|
1472
|
+
// Inline function 'kotlinx.serialization.serializer' call
|
|
1473
|
+
var this_2 = this_1.sz();
|
|
1474
|
+
// Inline function 'kotlinx.serialization.internal.cast' call
|
|
1475
|
+
var this_3 = serializer(this_2, createKType(getKClass(AttoTransaction), arrayOf([]), false));
|
|
1476
|
+
var tmp$ret$5 = isInterface(this_3, KSerializer) ? this_3 : THROW_CCE();
|
|
1477
|
+
var it = this_1.xv(tmp$ret$5, line);
|
|
1478
|
+
yield* $this_channelFlow.p36(it, $completion);
|
|
1479
|
+
}
|
|
1480
|
+
}
|
|
1481
|
+
return Unit_instance;
|
|
1482
|
+
}, 1);
|
|
1483
|
+
}
|
|
1484
|
+
function AttoNodeClientRemote$transactionStream$slambda_0($this, $path, $timeouts) {
|
|
1485
|
+
return constructCallableReference(function *($this$channelFlow, $completion) {
|
|
1486
|
+
var tmp0 = $this.t5c_1;
|
|
1487
|
+
// Inline function 'io.ktor.client.request.prepareGet' call
|
|
1488
|
+
var urlString = $this.u5c($path);
|
|
1489
|
+
// Inline function 'io.ktor.client.request.prepareGet' call
|
|
1490
|
+
// Inline function 'kotlin.apply' call
|
|
1491
|
+
var this_0 = new HttpRequestBuilder();
|
|
1492
|
+
url(this_0, urlString);
|
|
1493
|
+
configure(this_0, yield* $this.s5c_1($completion), get_NDJSON_CONTENT_TYPE(), $timeouts);
|
|
1494
|
+
// Inline function 'io.ktor.client.request.prepareGet' call
|
|
1495
|
+
this_0.h4w_1 = Companion_getInstance_0().h4g_1;
|
|
1496
|
+
// Inline function 'io.ktor.client.request.prepareRequest' call
|
|
1497
|
+
var tmp = new HttpStatement(this_0, tmp0);
|
|
1498
|
+
yield* tmp.g5a(AttoNodeClientRemote$transactionStream$slambda$slambda_0($this$channelFlow), $completion);
|
|
1499
|
+
return Unit_instance;
|
|
1500
|
+
}, 1);
|
|
1501
|
+
}
|
|
1502
|
+
function AttoNodeClientRemote$transactionStream$slambda$slambda_1($this_channelFlow) {
|
|
1503
|
+
return constructCallableReference(function *(response, $completion) {
|
|
1504
|
+
// Inline function 'io.ktor.client.call.body' call
|
|
1505
|
+
var tmp = response.e4x();
|
|
1506
|
+
// Inline function 'io.ktor.util.reflect.typeInfo' call
|
|
1507
|
+
var tmp_0 = getKClass(ByteReadChannel);
|
|
1508
|
+
// Inline function 'io.ktor.util.reflect.typeOfOrNull' call
|
|
1509
|
+
var tmp_1;
|
|
1510
|
+
try {
|
|
1511
|
+
tmp_1 = createKType(getKClass(ByteReadChannel), arrayOf([]), false);
|
|
1512
|
+
} catch ($p) {
|
|
1513
|
+
var tmp_2;
|
|
1514
|
+
if ($p instanceof Error) {
|
|
1515
|
+
var _unused_var__etf5q3 = $p;
|
|
1516
|
+
tmp_2 = null;
|
|
1517
|
+
} else {
|
|
1518
|
+
throw $p;
|
|
1519
|
+
}
|
|
1520
|
+
tmp_1 = tmp_2;
|
|
1521
|
+
}
|
|
1522
|
+
var tmp$ret$2 = tmp_1;
|
|
1523
|
+
var tmp$ret$1 = new TypeInfo(tmp_0, tmp$ret$2);
|
|
1524
|
+
var tmp_3 = yield* tmp.b4x(tmp$ret$1, $completion);
|
|
1525
|
+
// Inline function 'cash.atto.commons.transport.readNdjson' call
|
|
1526
|
+
var this_0 = (!(tmp_3 == null) ? isInterface(tmp_3, ByteReadChannel) : false) ? tmp_3 : THROW_CCE();
|
|
1527
|
+
while (!this_0.m3y()) {
|
|
1528
|
+
var line = yield* readLineStrict(this_0, 2000n, VOID, $completion);
|
|
1529
|
+
if (!(line == null)) {
|
|
1530
|
+
// Inline function 'kotlinx.serialization.json.Json.decodeFromString' call
|
|
1531
|
+
var this_1 = get_transportJson();
|
|
1532
|
+
// Inline function 'kotlinx.serialization.serializer' call
|
|
1533
|
+
var this_2 = this_1.sz();
|
|
1534
|
+
// Inline function 'kotlinx.serialization.internal.cast' call
|
|
1535
|
+
var this_3 = serializer(this_2, createKType(getKClass(AttoTransaction), arrayOf([]), false));
|
|
1536
|
+
var tmp$ret$5 = isInterface(this_3, KSerializer) ? this_3 : THROW_CCE();
|
|
1537
|
+
var it = this_1.xv(tmp$ret$5, line);
|
|
1538
|
+
yield* $this_channelFlow.p36(it, $completion);
|
|
1539
|
+
}
|
|
1540
|
+
}
|
|
1541
|
+
return Unit_instance;
|
|
1542
|
+
}, 1);
|
|
1543
|
+
}
|
|
1544
|
+
function AttoNodeClientRemote$transactionStream$slambda_1($this, $path, $timeouts) {
|
|
1545
|
+
return constructCallableReference(function *($this$channelFlow, $completion) {
|
|
1546
|
+
var tmp0 = $this.t5c_1;
|
|
1547
|
+
// Inline function 'io.ktor.client.request.prepareGet' call
|
|
1548
|
+
var urlString = $this.u5c($path);
|
|
1549
|
+
// Inline function 'io.ktor.client.request.prepareGet' call
|
|
1550
|
+
// Inline function 'kotlin.apply' call
|
|
1551
|
+
var this_0 = new HttpRequestBuilder();
|
|
1552
|
+
url(this_0, urlString);
|
|
1553
|
+
configure(this_0, yield* $this.s5c_1($completion), get_NDJSON_CONTENT_TYPE(), $timeouts);
|
|
1554
|
+
// Inline function 'io.ktor.client.request.prepareGet' call
|
|
1555
|
+
this_0.h4w_1 = Companion_getInstance_0().h4g_1;
|
|
1556
|
+
// Inline function 'io.ktor.client.request.prepareRequest' call
|
|
1557
|
+
var tmp = new HttpStatement(this_0, tmp0);
|
|
1558
|
+
yield* tmp.g5a(AttoNodeClientRemote$transactionStream$slambda$slambda_1($this$channelFlow), $completion);
|
|
1559
|
+
return Unit_instance;
|
|
1560
|
+
}, 1);
|
|
1561
|
+
}
|
|
1562
|
+
function AttoNodeClientRemote$transactionStream$slambda$slambda_2($this_channelFlow) {
|
|
1563
|
+
return constructCallableReference(function *(response, $completion) {
|
|
1564
|
+
// Inline function 'io.ktor.client.call.body' call
|
|
1565
|
+
var tmp = response.e4x();
|
|
1566
|
+
// Inline function 'io.ktor.util.reflect.typeInfo' call
|
|
1567
|
+
var tmp_0 = getKClass(ByteReadChannel);
|
|
1568
|
+
// Inline function 'io.ktor.util.reflect.typeOfOrNull' call
|
|
1569
|
+
var tmp_1;
|
|
1570
|
+
try {
|
|
1571
|
+
tmp_1 = createKType(getKClass(ByteReadChannel), arrayOf([]), false);
|
|
1572
|
+
} catch ($p) {
|
|
1573
|
+
var tmp_2;
|
|
1574
|
+
if ($p instanceof Error) {
|
|
1575
|
+
var _unused_var__etf5q3 = $p;
|
|
1576
|
+
tmp_2 = null;
|
|
1577
|
+
} else {
|
|
1578
|
+
throw $p;
|
|
1579
|
+
}
|
|
1580
|
+
tmp_1 = tmp_2;
|
|
1581
|
+
}
|
|
1582
|
+
var tmp$ret$2 = tmp_1;
|
|
1583
|
+
var tmp$ret$1 = new TypeInfo(tmp_0, tmp$ret$2);
|
|
1584
|
+
var tmp_3 = yield* tmp.b4x(tmp$ret$1, $completion);
|
|
1585
|
+
// Inline function 'cash.atto.commons.transport.readNdjson' call
|
|
1586
|
+
var this_0 = (!(tmp_3 == null) ? isInterface(tmp_3, ByteReadChannel) : false) ? tmp_3 : THROW_CCE();
|
|
1587
|
+
while (!this_0.m3y()) {
|
|
1588
|
+
var line = yield* readLineStrict(this_0, 2000n, VOID, $completion);
|
|
1589
|
+
if (!(line == null)) {
|
|
1590
|
+
// Inline function 'kotlinx.serialization.json.Json.decodeFromString' call
|
|
1591
|
+
var this_1 = get_transportJson();
|
|
1592
|
+
// Inline function 'kotlinx.serialization.serializer' call
|
|
1593
|
+
var this_2 = this_1.sz();
|
|
1594
|
+
// Inline function 'kotlinx.serialization.internal.cast' call
|
|
1595
|
+
var this_3 = serializer(this_2, createKType(getKClass(AttoTransaction), arrayOf([]), false));
|
|
1596
|
+
var tmp$ret$5 = isInterface(this_3, KSerializer) ? this_3 : THROW_CCE();
|
|
1597
|
+
var it = this_1.xv(tmp$ret$5, line);
|
|
1598
|
+
yield* $this_channelFlow.p36(it, $completion);
|
|
1599
|
+
}
|
|
1600
|
+
}
|
|
1601
|
+
return Unit_instance;
|
|
1602
|
+
}, 1);
|
|
1603
|
+
}
|
|
1604
|
+
function AttoNodeClientRemote$transactionStream$slambda_2($this, $path, $timeouts, $body) {
|
|
1605
|
+
return constructCallableReference(function *($this$channelFlow, $completion) {
|
|
1606
|
+
var tmp0 = $this.t5c_1;
|
|
1607
|
+
// Inline function 'io.ktor.client.request.preparePost' call
|
|
1608
|
+
var urlString = $this.u5c($path);
|
|
1609
|
+
// Inline function 'io.ktor.client.request.preparePost' call
|
|
1610
|
+
var builder = new HttpRequestBuilder();
|
|
1611
|
+
builder.h4w_1 = Companion_getInstance_0().i4g_1;
|
|
1612
|
+
// Inline function 'kotlin.apply' call
|
|
1613
|
+
url(builder, urlString);
|
|
1614
|
+
configure(builder, yield* $this.s5c_1($completion), get_NDJSON_CONTENT_TYPE(), $timeouts);
|
|
1615
|
+
// Inline function 'io.ktor.client.request.setBody' call
|
|
1616
|
+
var body = $body;
|
|
1617
|
+
if (body == null) {
|
|
1618
|
+
builder.j4w_1 = NullBody_instance;
|
|
1619
|
+
// Inline function 'io.ktor.util.reflect.typeInfo' call
|
|
1620
|
+
var tmp = getKClass(HeightSearch);
|
|
1621
|
+
// Inline function 'io.ktor.util.reflect.typeOfOrNull' call
|
|
1622
|
+
var tmp_0;
|
|
1623
|
+
try {
|
|
1624
|
+
tmp_0 = createKType(getKClass(HeightSearch), arrayOf([]), false);
|
|
1625
|
+
} catch ($p) {
|
|
1626
|
+
var tmp_1;
|
|
1627
|
+
if ($p instanceof Error) {
|
|
1628
|
+
var _unused_var__etf5q3 = $p;
|
|
1629
|
+
tmp_1 = null;
|
|
1630
|
+
} else {
|
|
1631
|
+
throw $p;
|
|
1632
|
+
}
|
|
1633
|
+
tmp_0 = tmp_1;
|
|
1634
|
+
}
|
|
1635
|
+
var tmp$ret$7 = tmp_0;
|
|
1636
|
+
var tmp$ret$6 = new TypeInfo(tmp, tmp$ret$7);
|
|
1637
|
+
builder.y4z(tmp$ret$6);
|
|
1638
|
+
} else {
|
|
1639
|
+
if (body instanceof OutgoingContent) {
|
|
1640
|
+
builder.j4w_1 = body;
|
|
1641
|
+
builder.y4z(null);
|
|
1642
|
+
} else {
|
|
1643
|
+
builder.j4w_1 = body;
|
|
1644
|
+
// Inline function 'io.ktor.util.reflect.typeInfo' call
|
|
1645
|
+
var tmp_2 = getKClass(HeightSearch);
|
|
1646
|
+
// Inline function 'io.ktor.util.reflect.typeOfOrNull' call
|
|
1647
|
+
var tmp_3;
|
|
1648
|
+
try {
|
|
1649
|
+
tmp_3 = createKType(getKClass(HeightSearch), arrayOf([]), false);
|
|
1650
|
+
} catch ($p_0) {
|
|
1651
|
+
var tmp_4;
|
|
1652
|
+
if ($p_0 instanceof Error) {
|
|
1653
|
+
var _unused_var__etf5q3_0 = $p_0;
|
|
1654
|
+
tmp_4 = null;
|
|
1655
|
+
} else {
|
|
1656
|
+
throw $p_0;
|
|
1657
|
+
}
|
|
1658
|
+
tmp_3 = tmp_4;
|
|
1659
|
+
}
|
|
1660
|
+
var tmp$ret$9 = tmp_3;
|
|
1661
|
+
var tmp$ret$8 = new TypeInfo(tmp_2, tmp$ret$9);
|
|
1662
|
+
builder.y4z(tmp$ret$8);
|
|
1663
|
+
}
|
|
1664
|
+
}
|
|
1665
|
+
// Inline function 'io.ktor.client.request.prepareRequest' call
|
|
1666
|
+
var tmp_5 = new HttpStatement(builder, tmp0);
|
|
1667
|
+
yield* tmp_5.g5a(AttoNodeClientRemote$transactionStream$slambda$slambda_2($this$channelFlow), $completion);
|
|
1668
|
+
return Unit_instance;
|
|
1669
|
+
}, 1);
|
|
1670
|
+
}
|
|
1671
|
+
function AttoNodeClientRemote$publish$slambda$slambda($this_channelFlow) {
|
|
1672
|
+
return constructCallableReference(function *(response, $completion) {
|
|
1673
|
+
// Inline function 'io.ktor.client.call.body' call
|
|
1674
|
+
var tmp = response.e4x();
|
|
1675
|
+
// Inline function 'io.ktor.util.reflect.typeInfo' call
|
|
1676
|
+
var tmp_0 = getKClass(ByteReadChannel);
|
|
1677
|
+
// Inline function 'io.ktor.util.reflect.typeOfOrNull' call
|
|
1678
|
+
var tmp_1;
|
|
1679
|
+
try {
|
|
1680
|
+
tmp_1 = createKType(getKClass(ByteReadChannel), arrayOf([]), false);
|
|
1681
|
+
} catch ($p) {
|
|
1682
|
+
var tmp_2;
|
|
1683
|
+
if ($p instanceof Error) {
|
|
1684
|
+
var _unused_var__etf5q3 = $p;
|
|
1685
|
+
tmp_2 = null;
|
|
1686
|
+
} else {
|
|
1687
|
+
throw $p;
|
|
1688
|
+
}
|
|
1689
|
+
tmp_1 = tmp_2;
|
|
1690
|
+
}
|
|
1691
|
+
var tmp$ret$2 = tmp_1;
|
|
1692
|
+
var tmp$ret$1 = new TypeInfo(tmp_0, tmp$ret$2);
|
|
1693
|
+
var tmp_3 = yield* tmp.b4x(tmp$ret$1, $completion);
|
|
1694
|
+
// Inline function 'cash.atto.commons.transport.readNdjson' call
|
|
1695
|
+
var this_0 = (!(tmp_3 == null) ? isInterface(tmp_3, ByteReadChannel) : false) ? tmp_3 : THROW_CCE();
|
|
1696
|
+
while (!this_0.m3y()) {
|
|
1697
|
+
var line = yield* readLineStrict(this_0, 2000n, VOID, $completion);
|
|
1698
|
+
if (!(line == null)) {
|
|
1699
|
+
// Inline function 'kotlinx.serialization.json.Json.decodeFromString' call
|
|
1700
|
+
var this_1 = get_transportJson();
|
|
1701
|
+
// Inline function 'kotlinx.serialization.serializer' call
|
|
1702
|
+
var this_2 = this_1.sz();
|
|
1703
|
+
// Inline function 'kotlinx.serialization.internal.cast' call
|
|
1704
|
+
var this_3 = serializer(this_2, createKType(getKClass(AttoTransaction), arrayOf([]), false));
|
|
1705
|
+
var tmp$ret$5 = isInterface(this_3, KSerializer) ? this_3 : THROW_CCE();
|
|
1706
|
+
var it = this_1.xv(tmp$ret$5, line);
|
|
1707
|
+
yield* $this_channelFlow.p36(it, $completion);
|
|
1708
|
+
}
|
|
1709
|
+
}
|
|
1710
|
+
return Unit_instance;
|
|
1711
|
+
}, 1);
|
|
1712
|
+
}
|
|
1713
|
+
function AttoNodeClientRemote$publish$slambda($this, $path, $timeouts, $body) {
|
|
1714
|
+
return constructCallableReference(function *($this$channelFlow, $completion) {
|
|
1715
|
+
var tmp0 = $this.t5c_1;
|
|
1716
|
+
// Inline function 'io.ktor.client.request.preparePost' call
|
|
1717
|
+
var urlString = $this.u5c($path);
|
|
1718
|
+
// Inline function 'io.ktor.client.request.preparePost' call
|
|
1719
|
+
var builder = new HttpRequestBuilder();
|
|
1720
|
+
builder.h4w_1 = Companion_getInstance_0().i4g_1;
|
|
1721
|
+
// Inline function 'kotlin.apply' call
|
|
1722
|
+
url(builder, urlString);
|
|
1723
|
+
configure(builder, yield* $this.s5c_1($completion), get_NDJSON_CONTENT_TYPE(), $timeouts);
|
|
1724
|
+
// Inline function 'io.ktor.client.request.setBody' call
|
|
1725
|
+
var body = $body;
|
|
1726
|
+
if (body == null) {
|
|
1727
|
+
builder.j4w_1 = NullBody_instance;
|
|
1728
|
+
// Inline function 'io.ktor.util.reflect.typeInfo' call
|
|
1729
|
+
var tmp = getKClass(AttoTransaction);
|
|
1730
|
+
// Inline function 'io.ktor.util.reflect.typeOfOrNull' call
|
|
1731
|
+
var tmp_0;
|
|
1732
|
+
try {
|
|
1733
|
+
tmp_0 = createKType(getKClass(AttoTransaction), arrayOf([]), false);
|
|
1734
|
+
} catch ($p) {
|
|
1735
|
+
var tmp_1;
|
|
1736
|
+
if ($p instanceof Error) {
|
|
1737
|
+
var _unused_var__etf5q3 = $p;
|
|
1738
|
+
tmp_1 = null;
|
|
1739
|
+
} else {
|
|
1740
|
+
throw $p;
|
|
1741
|
+
}
|
|
1742
|
+
tmp_0 = tmp_1;
|
|
1743
|
+
}
|
|
1744
|
+
var tmp$ret$7 = tmp_0;
|
|
1745
|
+
var tmp$ret$6 = new TypeInfo(tmp, tmp$ret$7);
|
|
1746
|
+
builder.y4z(tmp$ret$6);
|
|
1747
|
+
} else {
|
|
1748
|
+
if (body instanceof OutgoingContent) {
|
|
1749
|
+
builder.j4w_1 = body;
|
|
1750
|
+
builder.y4z(null);
|
|
1751
|
+
} else {
|
|
1752
|
+
builder.j4w_1 = body;
|
|
1753
|
+
// Inline function 'io.ktor.util.reflect.typeInfo' call
|
|
1754
|
+
var tmp_2 = getKClass(AttoTransaction);
|
|
1755
|
+
// Inline function 'io.ktor.util.reflect.typeOfOrNull' call
|
|
1756
|
+
var tmp_3;
|
|
1757
|
+
try {
|
|
1758
|
+
tmp_3 = createKType(getKClass(AttoTransaction), arrayOf([]), false);
|
|
1759
|
+
} catch ($p_0) {
|
|
1760
|
+
var tmp_4;
|
|
1761
|
+
if ($p_0 instanceof Error) {
|
|
1762
|
+
var _unused_var__etf5q3_0 = $p_0;
|
|
1763
|
+
tmp_4 = null;
|
|
1764
|
+
} else {
|
|
1765
|
+
throw $p_0;
|
|
1766
|
+
}
|
|
1767
|
+
tmp_3 = tmp_4;
|
|
1768
|
+
}
|
|
1769
|
+
var tmp$ret$9 = tmp_3;
|
|
1770
|
+
var tmp$ret$8 = new TypeInfo(tmp_2, tmp$ret$9);
|
|
1771
|
+
builder.y4z(tmp$ret$8);
|
|
1772
|
+
}
|
|
1773
|
+
}
|
|
1774
|
+
// Inline function 'io.ktor.client.request.prepareRequest' call
|
|
1775
|
+
var tmp_5 = new HttpStatement(builder, tmp0);
|
|
1776
|
+
yield* tmp_5.g5a(AttoNodeClientRemote$publish$slambda$slambda($this$channelFlow), $completion);
|
|
1777
|
+
return Unit_instance;
|
|
1778
|
+
}, 1);
|
|
1779
|
+
}
|
|
1780
|
+
function remote$slambda() {
|
|
1781
|
+
return constructCallableReference(function *($completion) {
|
|
1782
|
+
return emptyMap();
|
|
1783
|
+
}, 0);
|
|
1784
|
+
}
|
|
1785
|
+
var properties_initialized_AttoNodeClientRemote_kt_wdig71;
|
|
1786
|
+
function _init_properties_AttoNodeClientRemote_kt__nmpoap() {
|
|
1787
|
+
if (!properties_initialized_AttoNodeClientRemote_kt_wdig71) {
|
|
1788
|
+
properties_initialized_AttoNodeClientRemote_kt_wdig71 = true;
|
|
1789
|
+
// Inline function 'kotlin.time.Companion.hours' call
|
|
1790
|
+
Companion_getInstance();
|
|
1791
|
+
STREAM_SOCKET_IDLE_TIMEOUT = toDuration(1, DurationUnit_HOURS_getInstance());
|
|
1792
|
+
}
|
|
1793
|
+
}
|
|
1794
|
+
function AttoNodeClientAsyncBuilder$build$slambda(this$0) {
|
|
1795
|
+
return constructCallableReference(function *($completion) {
|
|
1796
|
+
return this$0.a5d_1;
|
|
1797
|
+
}, 0);
|
|
1798
|
+
}
|
|
1799
|
+
//region block: post-declaration
|
|
1800
|
+
protoOf(AttoNodeClientRemote).l3q = now;
|
|
1801
|
+
initMetadataForClass(AttoNodeClientRemote, 'AttoNodeClientRemote', VOID, VOID, [AttoNodeOperations], [1, 0]);
|
|
1802
|
+
initMetadataForClass(AttoNodeClientAsyncBuilder, 'AttoNodeClientAsyncBuilder');
|
|
1803
|
+
//endregion
|
|
1804
|
+
//region block: exports
|
|
1805
|
+
export {
|
|
1806
|
+
AttoNodeClientAsyncBuilder as AttoNodeClientAsyncBuilder,
|
|
1807
|
+
};
|
|
1808
|
+
//endregion
|
|
1809
|
+
|
|
1810
|
+
//# sourceMappingURL=commons-commons-node-remote.mjs.map
|