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