@attocash/cli 0.2.2 → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +157 -5
- package/dist/application/app.d.ts +34 -3
- package/dist/application/app.js +142 -125
- 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 +35 -0
- package/dist/spending/approval.js +25 -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
|
@@ -5,32 +5,34 @@ import {
|
|
|
5
5
|
initMetadataForObject1cxne3s9w65el as initMetadataForObject,
|
|
6
6
|
VOID3gxj6tk5isa35 as VOID,
|
|
7
7
|
getBigIntHashCode294hi5bdhtj6e as getBigIntHashCode,
|
|
8
|
-
|
|
8
|
+
Unit_instance3kz1zqli6gr1r as Unit_instance,
|
|
9
9
|
createThis2j2avj17cvnv2 as createThis,
|
|
10
10
|
initMetadataForClassbxx6q50dy2s7 as initMetadataForClass,
|
|
11
|
-
|
|
11
|
+
LazyThreadSafetyMode_PUBLICATION_getInstance23f213579at67 as LazyThreadSafetyMode_PUBLICATION_getInstance,
|
|
12
12
|
lazy1261dae0bgscp as lazy,
|
|
13
13
|
toString1pkumu07cwy4m as toString,
|
|
14
14
|
hashCodeq5arwsb9dgti as hashCode,
|
|
15
15
|
equals2au1ep9vhcato as equals,
|
|
16
16
|
toList383f556t1dixk as toList,
|
|
17
|
-
|
|
18
|
-
|
|
17
|
+
Companion_getInstance2jahap30xtp3t as Companion_getInstance,
|
|
18
|
+
DurationUnit_MILLISECONDS_getInstancedq9xrzm1t8sm as DurationUnit_MILLISECONDS_getInstance,
|
|
19
19
|
toDurationba1nlt78o6vu as toDuration,
|
|
20
20
|
initMetadataForInterface1egvbzx539z91 as initMetadataForInterface,
|
|
21
21
|
IllegalStateExceptionkoljg5n0nrlr as IllegalStateException,
|
|
22
22
|
captureStack1fzi4aczwc4hg as captureStack,
|
|
23
23
|
defineProp3ur6h3slcvq4x as defineProp,
|
|
24
|
+
orPromise1iucc2to2udt2 as orPromise,
|
|
24
25
|
constructCallableReference23y65rf941mch as constructCallableReference,
|
|
25
26
|
LinkedHashSet2tkztfx86kyx2 as LinkedHashSet,
|
|
26
27
|
emptySetcxexqki71qfa as emptySet,
|
|
27
28
|
toSet2orjxp16sotqu as toSet,
|
|
28
29
|
addAll1k27qatfgp3k5 as addAll,
|
|
30
|
+
$3l5vvh8yg0ier as $,
|
|
29
31
|
FunctionAdapter3lcrrz3moet5b as FunctionAdapter,
|
|
30
32
|
isInterface3d6p8outrmvmk as isInterface,
|
|
31
|
-
|
|
33
|
+
Duration__toString_impl_8d916b1pmuuqkmfodll as Duration__toString_impl_8d916b,
|
|
32
34
|
listOfvhqybd2zx248 as listOf,
|
|
33
|
-
|
|
35
|
+
DurationUnit_SECONDS_getInstance162tnxlnf2fpv as DurationUnit_SECONDS_getInstance,
|
|
34
36
|
toDuration7gy6v749ektt as toDuration_0,
|
|
35
37
|
minus165a8u1e0x1lu as minus,
|
|
36
38
|
ArrayList3it5z8td81qkl as ArrayList,
|
|
@@ -38,15 +40,15 @@ import {
|
|
|
38
40
|
CancellationException3b36o9qz53rgr as CancellationException,
|
|
39
41
|
LinkedHashMap1zhqxkxv3xnkl as LinkedHashMap,
|
|
40
42
|
promisify1z0ncraq1ipzh as promisify,
|
|
41
|
-
|
|
43
|
+
await3n7kedgocftsv as await_0,
|
|
42
44
|
copyToArray2j022khrow2yi as copyToArray,
|
|
43
|
-
|
|
45
|
+
_ULong___init__impl__c78o9k1vasxel72m2l4 as _ULong___init__impl__c78o9k,
|
|
44
46
|
AutoCloseable1l5p57f9lp7kv as AutoCloseable,
|
|
45
47
|
} from '@attocash/commons-core/kotlin-kotlin-stdlib.mjs';
|
|
46
48
|
import {
|
|
47
49
|
PluginGeneratedSerialDescriptorqdzeg5asqhfg as PluginGeneratedSerialDescriptor,
|
|
48
50
|
UnknownFieldExceptiona60e3a6v1xqo as UnknownFieldException,
|
|
49
|
-
|
|
51
|
+
LongSerializer_getInstancepwtz4tlewrfw as LongSerializer_getInstance,
|
|
50
52
|
typeParametersSerializers2likxjr48tr7y as typeParametersSerializers,
|
|
51
53
|
GeneratedSerializer1f7t7hssdd2ws as GeneratedSerializer,
|
|
52
54
|
throwMissingFieldException2cmke0v3ynf14 as throwMissingFieldException,
|
|
@@ -54,42 +56,42 @@ import {
|
|
|
54
56
|
SerializableWithd2dap36updxd as SerializableWith,
|
|
55
57
|
} from '@attocash/commons-core/kotlinx-serialization-kotlinx-serialization-core.mjs';
|
|
56
58
|
import {
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
59
|
+
AttoInstantAsStringSerializer_getInstance18d0k27dyqmww as AttoInstantAsStringSerializer_getInstance,
|
|
60
|
+
AttoAddressAsStringSerializer_getInstance2vd9agw95wrmw as AttoAddressAsStringSerializer_getInstance,
|
|
61
|
+
AttoHeightSerializer_getInstance1e5ssalpl8hkf as AttoHeightSerializer_getInstance,
|
|
62
|
+
Companion_getInstance2g7w81k6d59q0 as Companion_getInstance_0,
|
|
63
|
+
Companion_instancew7paw1z24vb2 as Companion_instance,
|
|
64
|
+
Companion_getInstance1swqodq61vxj9 as Companion_getInstance_1,
|
|
65
|
+
Companion_getInstance36jqmleb06hqv as Companion_getInstance_2,
|
|
66
|
+
Companion_getInstance1v5nlfw5jgjys as Companion_getInstance_3,
|
|
67
|
+
Companion_instance23egqh8mhcjos as Companion_instance_0,
|
|
68
|
+
Companion_getInstance1qqcokhqpo64t as Companion_getInstance_4,
|
|
69
|
+
Companion_instance91aas7lhzgiq as Companion_instance_1,
|
|
68
70
|
AttoAddressi1gjrmqbg81z as AttoAddress,
|
|
69
71
|
AttoAmount28z2ffm4ih7im as AttoAmount,
|
|
70
72
|
AttoHeight1604ccqlfsk68 as AttoHeight,
|
|
71
|
-
|
|
73
|
+
Companion_getInstance2l6aoxadsoeas as Companion_getInstance_5,
|
|
72
74
|
} from '@attocash/commons-core/commons-commons-core.mjs';
|
|
73
75
|
import {
|
|
74
|
-
|
|
76
|
+
cancelAndJoin3s6gegycshex8 as cancelAndJoin,
|
|
75
77
|
Mutex16li1l0asjv17 as Mutex,
|
|
76
78
|
MutableStateFlow34bfoyvwu8czu as MutableStateFlow,
|
|
77
79
|
asStateFlow34rribx643ke5 as asStateFlow,
|
|
78
80
|
FlowCollector26clgpmzihvke as FlowCollector,
|
|
79
|
-
|
|
81
|
+
delay2kng7ucb3aj62 as delay,
|
|
80
82
|
emptyFlow35paiql7g3tok as emptyFlow,
|
|
81
83
|
retryWhenf2aqzvtrvxoo as retryWhen,
|
|
82
|
-
|
|
84
|
+
emitAll157ci673e68ia as emitAll,
|
|
83
85
|
transformLatest23kpraac2xiec as transformLatest,
|
|
84
86
|
flow3tazazxj2t7g4 as flow,
|
|
85
|
-
|
|
86
|
-
|
|
87
|
+
awaitxmqwgrq6yfmw as await_1,
|
|
88
|
+
Dispatchers_getInstance128lm494a5r5s as Dispatchers_getInstance,
|
|
87
89
|
SupervisorJobythnfxkr3jxc as SupervisorJob,
|
|
88
90
|
CoroutineScopelux7s7zphw7e as CoroutineScope,
|
|
89
91
|
launch1c91vkjzdi9sd as launch,
|
|
90
92
|
cancel36mj9lv3a0whl as cancel,
|
|
91
93
|
} from '@attocash/commons-transport/kotlinx-coroutines-core.mjs';
|
|
92
|
-
import {
|
|
94
|
+
import { KotlinLogging_getInstance2o4ipkbfqihwo as KotlinLogging_getInstance } from './kotlin-logging.mjs';
|
|
93
95
|
//region block: imports
|
|
94
96
|
var imul = Math.imul;
|
|
95
97
|
//endregion
|
|
@@ -100,68 +102,68 @@ class $serializer {
|
|
|
100
102
|
constructor() {
|
|
101
103
|
$serializer_instance = this;
|
|
102
104
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('cash.atto.commons.node.TimeDifferenceResponse', this, 3);
|
|
103
|
-
tmp0_serialDesc.
|
|
104
|
-
tmp0_serialDesc.
|
|
105
|
-
tmp0_serialDesc.
|
|
106
|
-
this.
|
|
107
|
-
}
|
|
108
|
-
|
|
109
|
-
var tmp0_desc = this.
|
|
110
|
-
var tmp1_output = encoder.
|
|
111
|
-
tmp1_output.
|
|
112
|
-
tmp1_output.
|
|
113
|
-
tmp1_output.
|
|
114
|
-
tmp1_output.
|
|
115
|
-
}
|
|
116
|
-
|
|
117
|
-
return this.
|
|
118
|
-
}
|
|
119
|
-
|
|
120
|
-
var tmp0_desc = this.
|
|
105
|
+
tmp0_serialDesc.addElement_5pzumi_k$('clientInstant', false);
|
|
106
|
+
tmp0_serialDesc.addElement_5pzumi_k$('serverInstant', false);
|
|
107
|
+
tmp0_serialDesc.addElement_5pzumi_k$('differenceMillis', false);
|
|
108
|
+
this.descriptor_1 = tmp0_serialDesc;
|
|
109
|
+
}
|
|
110
|
+
serialize_31kupl_k$(encoder, value) {
|
|
111
|
+
var tmp0_desc = this.descriptor_1;
|
|
112
|
+
var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc);
|
|
113
|
+
tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 0, AttoInstantAsStringSerializer_getInstance(), value.clientInstant);
|
|
114
|
+
tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 1, AttoInstantAsStringSerializer_getInstance(), value.serverInstant);
|
|
115
|
+
tmp1_output.encodeLongElement_ovnxxh_k$(tmp0_desc, 2, value.differenceMillis);
|
|
116
|
+
tmp1_output.endStructure_1xqz0n_k$(tmp0_desc);
|
|
117
|
+
}
|
|
118
|
+
serialize_5ase3y_k$(encoder, value) {
|
|
119
|
+
return this.serialize_31kupl_k$(encoder, value instanceof TimeDifferenceResponse ? value : THROW_CCE());
|
|
120
|
+
}
|
|
121
|
+
deserialize_sy6x50_k$(decoder) {
|
|
122
|
+
var tmp0_desc = this.descriptor_1;
|
|
121
123
|
var tmp1_flag = true;
|
|
122
124
|
var tmp2_index = 0;
|
|
123
125
|
var tmp3_bitMask0 = 0;
|
|
124
126
|
var tmp4_local0 = null;
|
|
125
127
|
var tmp5_local1 = null;
|
|
126
128
|
var tmp6_local2 = 0n;
|
|
127
|
-
var tmp7_input = decoder.
|
|
128
|
-
if (tmp7_input.
|
|
129
|
-
tmp4_local0 = tmp7_input.
|
|
129
|
+
var tmp7_input = decoder.beginStructure_yljocp_k$(tmp0_desc);
|
|
130
|
+
if (tmp7_input.decodeSequentially_xlblqy_k$()) {
|
|
131
|
+
tmp4_local0 = tmp7_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 0, AttoInstantAsStringSerializer_getInstance(), tmp4_local0);
|
|
130
132
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
131
|
-
tmp5_local1 = tmp7_input.
|
|
133
|
+
tmp5_local1 = tmp7_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 1, AttoInstantAsStringSerializer_getInstance(), tmp5_local1);
|
|
132
134
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
133
|
-
tmp6_local2 = tmp7_input.
|
|
135
|
+
tmp6_local2 = tmp7_input.decodeLongElement_994anb_k$(tmp0_desc, 2);
|
|
134
136
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
135
137
|
} else
|
|
136
138
|
while (tmp1_flag) {
|
|
137
|
-
tmp2_index = tmp7_input.
|
|
139
|
+
tmp2_index = tmp7_input.decodeElementIndex_bstkhp_k$(tmp0_desc);
|
|
138
140
|
switch (tmp2_index) {
|
|
139
141
|
case -1:
|
|
140
142
|
tmp1_flag = false;
|
|
141
143
|
break;
|
|
142
144
|
case 0:
|
|
143
|
-
tmp4_local0 = tmp7_input.
|
|
145
|
+
tmp4_local0 = tmp7_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 0, AttoInstantAsStringSerializer_getInstance(), tmp4_local0);
|
|
144
146
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
145
147
|
break;
|
|
146
148
|
case 1:
|
|
147
|
-
tmp5_local1 = tmp7_input.
|
|
149
|
+
tmp5_local1 = tmp7_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 1, AttoInstantAsStringSerializer_getInstance(), tmp5_local1);
|
|
148
150
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
149
151
|
break;
|
|
150
152
|
case 2:
|
|
151
|
-
tmp6_local2 = tmp7_input.
|
|
153
|
+
tmp6_local2 = tmp7_input.decodeLongElement_994anb_k$(tmp0_desc, 2);
|
|
152
154
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
153
155
|
break;
|
|
154
156
|
default:
|
|
155
|
-
throw UnknownFieldException.
|
|
157
|
+
throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index);
|
|
156
158
|
}
|
|
157
159
|
}
|
|
158
|
-
tmp7_input.
|
|
159
|
-
return TimeDifferenceResponse.
|
|
160
|
+
tmp7_input.endStructure_1xqz0n_k$(tmp0_desc);
|
|
161
|
+
return TimeDifferenceResponse.new_cash_atto_commons_node_TimeDifferenceResponse_4cag6w_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, null);
|
|
160
162
|
}
|
|
161
|
-
|
|
162
|
-
return this.
|
|
163
|
+
get_descriptor_wjt6a0_k$() {
|
|
164
|
+
return this.descriptor_1;
|
|
163
165
|
}
|
|
164
|
-
|
|
166
|
+
childSerializers_5ghqw5_k$() {
|
|
165
167
|
// Inline function 'kotlin.arrayOf' call
|
|
166
168
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
167
169
|
// Inline function 'kotlin.js.asDynamic' call
|
|
@@ -174,32 +176,32 @@ class TimeDifferenceResponse {
|
|
|
174
176
|
this.serverInstant = serverInstant;
|
|
175
177
|
this.differenceMillis = differenceMillis;
|
|
176
178
|
}
|
|
177
|
-
|
|
179
|
+
get_clientInstant_wx5ifn_k$() {
|
|
178
180
|
return this.clientInstant;
|
|
179
181
|
}
|
|
180
|
-
|
|
182
|
+
get_serverInstant_nqot8r_k$() {
|
|
181
183
|
return this.serverInstant;
|
|
182
184
|
}
|
|
183
|
-
|
|
185
|
+
get_differenceMillis_ob6ze4_k$() {
|
|
184
186
|
return this.differenceMillis;
|
|
185
187
|
}
|
|
186
|
-
|
|
188
|
+
component1_7eebsc_k$() {
|
|
187
189
|
return this.clientInstant;
|
|
188
190
|
}
|
|
189
|
-
|
|
191
|
+
component2_7eebsb_k$() {
|
|
190
192
|
return this.serverInstant;
|
|
191
193
|
}
|
|
192
|
-
|
|
194
|
+
component3_7eebsa_k$() {
|
|
193
195
|
return this.differenceMillis;
|
|
194
196
|
}
|
|
195
|
-
|
|
197
|
+
copy_9y1mi7_k$(clientInstant, serverInstant, differenceMillis) {
|
|
196
198
|
return new TimeDifferenceResponse(clientInstant, serverInstant, differenceMillis);
|
|
197
199
|
}
|
|
198
200
|
copy(clientInstant, serverInstant, differenceMillis, $super) {
|
|
199
201
|
clientInstant = clientInstant === VOID ? this.clientInstant : clientInstant;
|
|
200
202
|
serverInstant = serverInstant === VOID ? this.serverInstant : serverInstant;
|
|
201
203
|
differenceMillis = differenceMillis === VOID ? this.differenceMillis : differenceMillis;
|
|
202
|
-
return $super === VOID ? this.
|
|
204
|
+
return $super === VOID ? this.copy_9y1mi7_k$(clientInstant, serverInstant, differenceMillis) : $super.copy_9y1mi7_k$.call(this, clientInstant, serverInstant, differenceMillis);
|
|
203
205
|
}
|
|
204
206
|
toString() {
|
|
205
207
|
return 'TimeDifferenceResponse(clientInstant=' + this.clientInstant.toString() + ', serverInstant=' + this.serverInstant.toString() + ', differenceMillis=' + this.differenceMillis.toString() + ')';
|
|
@@ -223,9 +225,9 @@ class TimeDifferenceResponse {
|
|
|
223
225
|
return false;
|
|
224
226
|
return true;
|
|
225
227
|
}
|
|
226
|
-
static
|
|
228
|
+
static new_cash_atto_commons_node_TimeDifferenceResponse_4cag6w_k$(seen0, clientInstant, serverInstant, differenceMillis, serializationConstructorMarker) {
|
|
227
229
|
if (!(7 === (7 & seen0))) {
|
|
228
|
-
throwMissingFieldException(seen0, 7, $serializer_getInstance().
|
|
230
|
+
throwMissingFieldException(seen0, 7, $serializer_getInstance().descriptor_1);
|
|
229
231
|
}
|
|
230
232
|
var $this = createThis(this);
|
|
231
233
|
$this.clientInstant = clientInstant;
|
|
@@ -242,63 +244,63 @@ class Companion_1 {
|
|
|
242
244
|
// Inline function 'kotlin.arrayOf' call
|
|
243
245
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
244
246
|
// Inline function 'kotlin.js.asDynamic' call
|
|
245
|
-
tmp
|
|
247
|
+
tmp.$childSerializers_1 = [lazy(tmp_0, AccountSearch$Companion$$childSerializers$_anonymous__5n1423)];
|
|
246
248
|
}
|
|
247
249
|
}
|
|
248
250
|
class $serializer_0 {
|
|
249
251
|
constructor() {
|
|
250
252
|
$serializer_instance_0 = this;
|
|
251
253
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('cash.atto.commons.node.AccountSearch', this, 1);
|
|
252
|
-
tmp0_serialDesc.
|
|
253
|
-
this.
|
|
254
|
+
tmp0_serialDesc.addElement_5pzumi_k$('addresses', false);
|
|
255
|
+
this.descriptor_1 = tmp0_serialDesc;
|
|
254
256
|
}
|
|
255
|
-
|
|
256
|
-
var tmp0_desc = this.
|
|
257
|
-
var tmp1_output = encoder.
|
|
258
|
-
var tmp2_cached = Companion_getInstance_8()
|
|
259
|
-
tmp1_output.
|
|
260
|
-
tmp1_output.
|
|
257
|
+
serialize_ukyunn_k$(encoder, value) {
|
|
258
|
+
var tmp0_desc = this.descriptor_1;
|
|
259
|
+
var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc);
|
|
260
|
+
var tmp2_cached = Companion_getInstance_8().$childSerializers_1;
|
|
261
|
+
tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 0, tmp2_cached[0].get_value_j01efc_k$(), value.addresses);
|
|
262
|
+
tmp1_output.endStructure_1xqz0n_k$(tmp0_desc);
|
|
261
263
|
}
|
|
262
|
-
|
|
263
|
-
return this.
|
|
264
|
+
serialize_5ase3y_k$(encoder, value) {
|
|
265
|
+
return this.serialize_ukyunn_k$(encoder, value instanceof AccountSearch ? value : THROW_CCE());
|
|
264
266
|
}
|
|
265
|
-
|
|
266
|
-
var tmp0_desc = this.
|
|
267
|
+
deserialize_sy6x50_k$(decoder) {
|
|
268
|
+
var tmp0_desc = this.descriptor_1;
|
|
267
269
|
var tmp1_flag = true;
|
|
268
270
|
var tmp2_index = 0;
|
|
269
271
|
var tmp3_bitMask0 = 0;
|
|
270
272
|
var tmp4_local0 = null;
|
|
271
|
-
var tmp5_input = decoder.
|
|
272
|
-
var tmp6_cached = Companion_getInstance_8()
|
|
273
|
-
if (tmp5_input.
|
|
274
|
-
tmp4_local0 = tmp5_input.
|
|
273
|
+
var tmp5_input = decoder.beginStructure_yljocp_k$(tmp0_desc);
|
|
274
|
+
var tmp6_cached = Companion_getInstance_8().$childSerializers_1;
|
|
275
|
+
if (tmp5_input.decodeSequentially_xlblqy_k$()) {
|
|
276
|
+
tmp4_local0 = tmp5_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 0, tmp6_cached[0].get_value_j01efc_k$(), tmp4_local0);
|
|
275
277
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
276
278
|
} else
|
|
277
279
|
while (tmp1_flag) {
|
|
278
|
-
tmp2_index = tmp5_input.
|
|
280
|
+
tmp2_index = tmp5_input.decodeElementIndex_bstkhp_k$(tmp0_desc);
|
|
279
281
|
switch (tmp2_index) {
|
|
280
282
|
case -1:
|
|
281
283
|
tmp1_flag = false;
|
|
282
284
|
break;
|
|
283
285
|
case 0:
|
|
284
|
-
tmp4_local0 = tmp5_input.
|
|
286
|
+
tmp4_local0 = tmp5_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 0, tmp6_cached[0].get_value_j01efc_k$(), tmp4_local0);
|
|
285
287
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
286
288
|
break;
|
|
287
289
|
default:
|
|
288
|
-
throw UnknownFieldException.
|
|
290
|
+
throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index);
|
|
289
291
|
}
|
|
290
292
|
}
|
|
291
|
-
tmp5_input.
|
|
292
|
-
return AccountSearch.
|
|
293
|
+
tmp5_input.endStructure_1xqz0n_k$(tmp0_desc);
|
|
294
|
+
return AccountSearch.new_cash_atto_commons_node_AccountSearch_t64ij4_k$(tmp3_bitMask0, tmp4_local0, null);
|
|
293
295
|
}
|
|
294
|
-
|
|
295
|
-
return this.
|
|
296
|
+
get_descriptor_wjt6a0_k$() {
|
|
297
|
+
return this.descriptor_1;
|
|
296
298
|
}
|
|
297
|
-
|
|
299
|
+
childSerializers_5ghqw5_k$() {
|
|
298
300
|
// Inline function 'kotlin.arrayOf' call
|
|
299
301
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
300
302
|
// Inline function 'kotlin.js.asDynamic' call
|
|
301
|
-
return [Companion_getInstance_8()
|
|
303
|
+
return [Companion_getInstance_8().$childSerializers_1[0].get_value_j01efc_k$()];
|
|
302
304
|
}
|
|
303
305
|
}
|
|
304
306
|
class AccountSearch {
|
|
@@ -306,18 +308,18 @@ class AccountSearch {
|
|
|
306
308
|
Companion_getInstance_8();
|
|
307
309
|
this.addresses = addresses;
|
|
308
310
|
}
|
|
309
|
-
|
|
311
|
+
get_addresses_mz7bp5_k$() {
|
|
310
312
|
return this.addresses;
|
|
311
313
|
}
|
|
312
|
-
|
|
314
|
+
component1_7eebsc_k$() {
|
|
313
315
|
return this.addresses;
|
|
314
316
|
}
|
|
315
|
-
|
|
317
|
+
copy_sy50ys_k$(addresses) {
|
|
316
318
|
return new AccountSearch(addresses);
|
|
317
319
|
}
|
|
318
320
|
copy(addresses, $super) {
|
|
319
321
|
addresses = addresses === VOID ? this.addresses : addresses;
|
|
320
|
-
return $super === VOID ? this.
|
|
322
|
+
return $super === VOID ? this.copy_sy50ys_k$(addresses) : $super.copy_sy50ys_k$.call(this, addresses);
|
|
321
323
|
}
|
|
322
324
|
toString() {
|
|
323
325
|
return 'AccountSearch(addresses=' + toString(this.addresses) + ')';
|
|
@@ -334,10 +336,10 @@ class AccountSearch {
|
|
|
334
336
|
return false;
|
|
335
337
|
return true;
|
|
336
338
|
}
|
|
337
|
-
static
|
|
339
|
+
static new_cash_atto_commons_node_AccountSearch_t64ij4_k$(seen0, addresses, serializationConstructorMarker) {
|
|
338
340
|
Companion_getInstance_8();
|
|
339
341
|
if (!(1 === (1 & seen0))) {
|
|
340
|
-
throwMissingFieldException(seen0, 1, $serializer_getInstance_0().
|
|
342
|
+
throwMissingFieldException(seen0, 1, $serializer_getInstance_0().descriptor_1);
|
|
341
343
|
}
|
|
342
344
|
var $this = createThis(this);
|
|
343
345
|
$this.addresses = addresses;
|
|
@@ -349,70 +351,70 @@ class $serializer_1 {
|
|
|
349
351
|
constructor() {
|
|
350
352
|
$serializer_instance_1 = this;
|
|
351
353
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('cash.atto.commons.node.AccountHeightSearch', this, 3);
|
|
352
|
-
tmp0_serialDesc.
|
|
353
|
-
tmp0_serialDesc.
|
|
354
|
-
tmp0_serialDesc.
|
|
355
|
-
this.
|
|
356
|
-
}
|
|
357
|
-
|
|
358
|
-
var tmp0_desc = this.
|
|
359
|
-
var tmp1_output = encoder.
|
|
360
|
-
tmp1_output.
|
|
361
|
-
tmp1_output.
|
|
362
|
-
if (tmp1_output.
|
|
363
|
-
tmp1_output.
|
|
354
|
+
tmp0_serialDesc.addElement_5pzumi_k$('address', false);
|
|
355
|
+
tmp0_serialDesc.addElement_5pzumi_k$('fromHeight', false);
|
|
356
|
+
tmp0_serialDesc.addElement_5pzumi_k$('toHeight', true);
|
|
357
|
+
this.descriptor_1 = tmp0_serialDesc;
|
|
358
|
+
}
|
|
359
|
+
serialize_d48siu_k$(encoder, value) {
|
|
360
|
+
var tmp0_desc = this.descriptor_1;
|
|
361
|
+
var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc);
|
|
362
|
+
tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 0, AttoAddressAsStringSerializer_getInstance(), value.address);
|
|
363
|
+
tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 1, AttoHeightSerializer_getInstance(), value.fromHeight);
|
|
364
|
+
if (tmp1_output.shouldEncodeElementDefault_x8eyid_k$(tmp0_desc, 2) ? true : !value.toHeight.equals(Companion_getInstance_0().MAX_1)) {
|
|
365
|
+
tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 2, AttoHeightSerializer_getInstance(), value.toHeight);
|
|
364
366
|
}
|
|
365
|
-
tmp1_output.
|
|
367
|
+
tmp1_output.endStructure_1xqz0n_k$(tmp0_desc);
|
|
366
368
|
}
|
|
367
|
-
|
|
368
|
-
return this.
|
|
369
|
+
serialize_5ase3y_k$(encoder, value) {
|
|
370
|
+
return this.serialize_d48siu_k$(encoder, value instanceof AccountHeightSearch ? value : THROW_CCE());
|
|
369
371
|
}
|
|
370
|
-
|
|
371
|
-
var tmp0_desc = this.
|
|
372
|
+
deserialize_sy6x50_k$(decoder) {
|
|
373
|
+
var tmp0_desc = this.descriptor_1;
|
|
372
374
|
var tmp1_flag = true;
|
|
373
375
|
var tmp2_index = 0;
|
|
374
376
|
var tmp3_bitMask0 = 0;
|
|
375
377
|
var tmp4_local0 = null;
|
|
376
378
|
var tmp5_local1 = null;
|
|
377
379
|
var tmp6_local2 = null;
|
|
378
|
-
var tmp7_input = decoder.
|
|
379
|
-
if (tmp7_input.
|
|
380
|
-
tmp4_local0 = tmp7_input.
|
|
380
|
+
var tmp7_input = decoder.beginStructure_yljocp_k$(tmp0_desc);
|
|
381
|
+
if (tmp7_input.decodeSequentially_xlblqy_k$()) {
|
|
382
|
+
tmp4_local0 = tmp7_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 0, AttoAddressAsStringSerializer_getInstance(), tmp4_local0);
|
|
381
383
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
382
|
-
tmp5_local1 = tmp7_input.
|
|
384
|
+
tmp5_local1 = tmp7_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 1, AttoHeightSerializer_getInstance(), tmp5_local1);
|
|
383
385
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
384
|
-
tmp6_local2 = tmp7_input.
|
|
386
|
+
tmp6_local2 = tmp7_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 2, AttoHeightSerializer_getInstance(), tmp6_local2);
|
|
385
387
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
386
388
|
} else
|
|
387
389
|
while (tmp1_flag) {
|
|
388
|
-
tmp2_index = tmp7_input.
|
|
390
|
+
tmp2_index = tmp7_input.decodeElementIndex_bstkhp_k$(tmp0_desc);
|
|
389
391
|
switch (tmp2_index) {
|
|
390
392
|
case -1:
|
|
391
393
|
tmp1_flag = false;
|
|
392
394
|
break;
|
|
393
395
|
case 0:
|
|
394
|
-
tmp4_local0 = tmp7_input.
|
|
396
|
+
tmp4_local0 = tmp7_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 0, AttoAddressAsStringSerializer_getInstance(), tmp4_local0);
|
|
395
397
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
396
398
|
break;
|
|
397
399
|
case 1:
|
|
398
|
-
tmp5_local1 = tmp7_input.
|
|
400
|
+
tmp5_local1 = tmp7_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 1, AttoHeightSerializer_getInstance(), tmp5_local1);
|
|
399
401
|
tmp3_bitMask0 = tmp3_bitMask0 | 2;
|
|
400
402
|
break;
|
|
401
403
|
case 2:
|
|
402
|
-
tmp6_local2 = tmp7_input.
|
|
404
|
+
tmp6_local2 = tmp7_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 2, AttoHeightSerializer_getInstance(), tmp6_local2);
|
|
403
405
|
tmp3_bitMask0 = tmp3_bitMask0 | 4;
|
|
404
406
|
break;
|
|
405
407
|
default:
|
|
406
|
-
throw UnknownFieldException.
|
|
408
|
+
throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index);
|
|
407
409
|
}
|
|
408
410
|
}
|
|
409
|
-
tmp7_input.
|
|
410
|
-
return AccountHeightSearch.
|
|
411
|
+
tmp7_input.endStructure_1xqz0n_k$(tmp0_desc);
|
|
412
|
+
return AccountHeightSearch.new_cash_atto_commons_node_AccountHeightSearch_c6nrcw_k$(tmp3_bitMask0, tmp4_local0, tmp5_local1, tmp6_local2, null);
|
|
411
413
|
}
|
|
412
|
-
|
|
413
|
-
return this.
|
|
414
|
+
get_descriptor_wjt6a0_k$() {
|
|
415
|
+
return this.descriptor_1;
|
|
414
416
|
}
|
|
415
|
-
|
|
417
|
+
childSerializers_5ghqw5_k$() {
|
|
416
418
|
// Inline function 'kotlin.arrayOf' call
|
|
417
419
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
418
420
|
// Inline function 'kotlin.js.asDynamic' call
|
|
@@ -421,37 +423,37 @@ class $serializer_1 {
|
|
|
421
423
|
}
|
|
422
424
|
class AccountHeightSearch {
|
|
423
425
|
constructor(address, fromHeight, toHeight) {
|
|
424
|
-
toHeight = toHeight === VOID ? Companion_getInstance_0().
|
|
426
|
+
toHeight = toHeight === VOID ? Companion_getInstance_0().MAX_1 : toHeight;
|
|
425
427
|
this.address = address;
|
|
426
428
|
this.fromHeight = fromHeight;
|
|
427
429
|
this.toHeight = toHeight;
|
|
428
430
|
}
|
|
429
|
-
|
|
431
|
+
get_address_hpr2t1_k$() {
|
|
430
432
|
return this.address;
|
|
431
433
|
}
|
|
432
|
-
|
|
434
|
+
get_fromHeight_a2nu2i_k$() {
|
|
433
435
|
return this.fromHeight;
|
|
434
436
|
}
|
|
435
|
-
|
|
437
|
+
get_toHeight_4ec5sb_k$() {
|
|
436
438
|
return this.toHeight;
|
|
437
439
|
}
|
|
438
|
-
|
|
440
|
+
component1_7eebsc_k$() {
|
|
439
441
|
return this.address;
|
|
440
442
|
}
|
|
441
|
-
|
|
443
|
+
component2_7eebsb_k$() {
|
|
442
444
|
return this.fromHeight;
|
|
443
445
|
}
|
|
444
|
-
|
|
446
|
+
component3_7eebsa_k$() {
|
|
445
447
|
return this.toHeight;
|
|
446
448
|
}
|
|
447
|
-
|
|
449
|
+
copy_7ffr07_k$(address, fromHeight, toHeight) {
|
|
448
450
|
return new AccountHeightSearch(address, fromHeight, toHeight);
|
|
449
451
|
}
|
|
450
452
|
copy(address, fromHeight, toHeight, $super) {
|
|
451
453
|
address = address === VOID ? this.address : address;
|
|
452
454
|
fromHeight = fromHeight === VOID ? this.fromHeight : fromHeight;
|
|
453
455
|
toHeight = toHeight === VOID ? this.toHeight : toHeight;
|
|
454
|
-
return $super === VOID ? this.
|
|
456
|
+
return $super === VOID ? this.copy_7ffr07_k$(address, fromHeight, toHeight) : $super.copy_7ffr07_k$.call(this, address, fromHeight, toHeight);
|
|
455
457
|
}
|
|
456
458
|
toString() {
|
|
457
459
|
return 'AccountHeightSearch(address=' + this.address.toString() + ', fromHeight=' + this.fromHeight.toString() + ', toHeight=' + this.toHeight.toString() + ')';
|
|
@@ -475,15 +477,15 @@ class AccountHeightSearch {
|
|
|
475
477
|
return false;
|
|
476
478
|
return true;
|
|
477
479
|
}
|
|
478
|
-
static
|
|
480
|
+
static new_cash_atto_commons_node_AccountHeightSearch_c6nrcw_k$(seen0, address, fromHeight, toHeight, serializationConstructorMarker) {
|
|
479
481
|
if (!(3 === (3 & seen0))) {
|
|
480
|
-
throwMissingFieldException(seen0, 3, $serializer_getInstance_1().
|
|
482
|
+
throwMissingFieldException(seen0, 3, $serializer_getInstance_1().descriptor_1);
|
|
481
483
|
}
|
|
482
484
|
var $this = createThis(this);
|
|
483
485
|
$this.address = address;
|
|
484
486
|
$this.fromHeight = fromHeight;
|
|
485
487
|
if (0 === (seen0 & 4))
|
|
486
|
-
$this.toHeight = Companion_getInstance_0().
|
|
488
|
+
$this.toHeight = Companion_getInstance_0().MAX_1;
|
|
487
489
|
else
|
|
488
490
|
$this.toHeight = toHeight;
|
|
489
491
|
return $this;
|
|
@@ -497,12 +499,12 @@ class Companion_3 {
|
|
|
497
499
|
// Inline function 'kotlin.arrayOf' call
|
|
498
500
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
499
501
|
// Inline function 'kotlin.js.asDynamic' call
|
|
500
|
-
tmp
|
|
502
|
+
tmp.$childSerializers_1 = [lazy(tmp_0, HeightSearch$Companion$$childSerializers$_anonymous__5pm92z)];
|
|
501
503
|
}
|
|
502
504
|
fromArray(search) {
|
|
503
505
|
return new HeightSearch(toList(search));
|
|
504
506
|
}
|
|
505
|
-
|
|
507
|
+
serializer_9w0wvi_k$() {
|
|
506
508
|
return $serializer_getInstance_2();
|
|
507
509
|
}
|
|
508
510
|
}
|
|
@@ -510,56 +512,56 @@ class $serializer_2 {
|
|
|
510
512
|
constructor() {
|
|
511
513
|
$serializer_instance_2 = this;
|
|
512
514
|
var tmp0_serialDesc = new PluginGeneratedSerialDescriptor('cash.atto.commons.node.HeightSearch', this, 1);
|
|
513
|
-
tmp0_serialDesc.
|
|
514
|
-
this.
|
|
515
|
+
tmp0_serialDesc.addElement_5pzumi_k$('search', false);
|
|
516
|
+
this.descriptor_1 = tmp0_serialDesc;
|
|
515
517
|
}
|
|
516
|
-
|
|
517
|
-
var tmp0_desc = this.
|
|
518
|
-
var tmp1_output = encoder.
|
|
519
|
-
var tmp2_cached = Companion_getInstance_10()
|
|
520
|
-
tmp1_output.
|
|
521
|
-
tmp1_output.
|
|
518
|
+
serialize_85aiwb_k$(encoder, value) {
|
|
519
|
+
var tmp0_desc = this.descriptor_1;
|
|
520
|
+
var tmp1_output = encoder.beginStructure_yljocp_k$(tmp0_desc);
|
|
521
|
+
var tmp2_cached = Companion_getInstance_10().$childSerializers_1;
|
|
522
|
+
tmp1_output.encodeSerializableElement_isqxcl_k$(tmp0_desc, 0, tmp2_cached[0].get_value_j01efc_k$(), value.search);
|
|
523
|
+
tmp1_output.endStructure_1xqz0n_k$(tmp0_desc);
|
|
522
524
|
}
|
|
523
|
-
|
|
524
|
-
return this.
|
|
525
|
+
serialize_5ase3y_k$(encoder, value) {
|
|
526
|
+
return this.serialize_85aiwb_k$(encoder, value instanceof HeightSearch ? value : THROW_CCE());
|
|
525
527
|
}
|
|
526
|
-
|
|
527
|
-
var tmp0_desc = this.
|
|
528
|
+
deserialize_sy6x50_k$(decoder) {
|
|
529
|
+
var tmp0_desc = this.descriptor_1;
|
|
528
530
|
var tmp1_flag = true;
|
|
529
531
|
var tmp2_index = 0;
|
|
530
532
|
var tmp3_bitMask0 = 0;
|
|
531
533
|
var tmp4_local0 = null;
|
|
532
|
-
var tmp5_input = decoder.
|
|
533
|
-
var tmp6_cached = Companion_getInstance_10()
|
|
534
|
-
if (tmp5_input.
|
|
535
|
-
tmp4_local0 = tmp5_input.
|
|
534
|
+
var tmp5_input = decoder.beginStructure_yljocp_k$(tmp0_desc);
|
|
535
|
+
var tmp6_cached = Companion_getInstance_10().$childSerializers_1;
|
|
536
|
+
if (tmp5_input.decodeSequentially_xlblqy_k$()) {
|
|
537
|
+
tmp4_local0 = tmp5_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 0, tmp6_cached[0].get_value_j01efc_k$(), tmp4_local0);
|
|
536
538
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
537
539
|
} else
|
|
538
540
|
while (tmp1_flag) {
|
|
539
|
-
tmp2_index = tmp5_input.
|
|
541
|
+
tmp2_index = tmp5_input.decodeElementIndex_bstkhp_k$(tmp0_desc);
|
|
540
542
|
switch (tmp2_index) {
|
|
541
543
|
case -1:
|
|
542
544
|
tmp1_flag = false;
|
|
543
545
|
break;
|
|
544
546
|
case 0:
|
|
545
|
-
tmp4_local0 = tmp5_input.
|
|
547
|
+
tmp4_local0 = tmp5_input.decodeSerializableElement_uahnnv_k$(tmp0_desc, 0, tmp6_cached[0].get_value_j01efc_k$(), tmp4_local0);
|
|
546
548
|
tmp3_bitMask0 = tmp3_bitMask0 | 1;
|
|
547
549
|
break;
|
|
548
550
|
default:
|
|
549
|
-
throw UnknownFieldException.
|
|
551
|
+
throw UnknownFieldException.new_kotlinx_serialization_UnknownFieldException_ecrf7z_k$(tmp2_index);
|
|
550
552
|
}
|
|
551
553
|
}
|
|
552
|
-
tmp5_input.
|
|
553
|
-
return HeightSearch.
|
|
554
|
+
tmp5_input.endStructure_1xqz0n_k$(tmp0_desc);
|
|
555
|
+
return HeightSearch.new_cash_atto_commons_node_HeightSearch_emfsw3_k$(tmp3_bitMask0, tmp4_local0, null);
|
|
554
556
|
}
|
|
555
|
-
|
|
556
|
-
return this.
|
|
557
|
+
get_descriptor_wjt6a0_k$() {
|
|
558
|
+
return this.descriptor_1;
|
|
557
559
|
}
|
|
558
|
-
|
|
560
|
+
childSerializers_5ghqw5_k$() {
|
|
559
561
|
// Inline function 'kotlin.arrayOf' call
|
|
560
562
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
561
563
|
// Inline function 'kotlin.js.asDynamic' call
|
|
562
|
-
return [Companion_getInstance_10()
|
|
564
|
+
return [Companion_getInstance_10().$childSerializers_1[0].get_value_j01efc_k$()];
|
|
563
565
|
}
|
|
564
566
|
}
|
|
565
567
|
class HeightSearch {
|
|
@@ -567,18 +569,18 @@ class HeightSearch {
|
|
|
567
569
|
Companion_getInstance_10();
|
|
568
570
|
this.search = search;
|
|
569
571
|
}
|
|
570
|
-
|
|
572
|
+
get_search_jf67jl_k$() {
|
|
571
573
|
return this.search;
|
|
572
574
|
}
|
|
573
|
-
|
|
575
|
+
component1_7eebsc_k$() {
|
|
574
576
|
return this.search;
|
|
575
577
|
}
|
|
576
|
-
|
|
578
|
+
copy_hwfgpp_k$(search) {
|
|
577
579
|
return new HeightSearch(search);
|
|
578
580
|
}
|
|
579
581
|
copy(search, $super) {
|
|
580
582
|
search = search === VOID ? this.search : search;
|
|
581
|
-
return $super === VOID ? this.
|
|
583
|
+
return $super === VOID ? this.copy_hwfgpp_k$(search) : $super.copy_hwfgpp_k$.call(this, search);
|
|
582
584
|
}
|
|
583
585
|
toString() {
|
|
584
586
|
return 'HeightSearch(search=' + toString(this.search) + ')';
|
|
@@ -595,10 +597,10 @@ class HeightSearch {
|
|
|
595
597
|
return false;
|
|
596
598
|
return true;
|
|
597
599
|
}
|
|
598
|
-
static
|
|
600
|
+
static new_cash_atto_commons_node_HeightSearch_emfsw3_k$(seen0, search, serializationConstructorMarker) {
|
|
599
601
|
Companion_getInstance_10();
|
|
600
602
|
if (!(1 === (1 & seen0))) {
|
|
601
|
-
throwMissingFieldException(seen0, 1, $serializer_getInstance_2().
|
|
603
|
+
throwMissingFieldException(seen0, 1, $serializer_getInstance_2().descriptor_1);
|
|
602
604
|
}
|
|
603
605
|
var $this = createThis(this);
|
|
604
606
|
$this.search = search;
|
|
@@ -607,20 +609,20 @@ class HeightSearch {
|
|
|
607
609
|
}
|
|
608
610
|
class AttoNodeOperations {}
|
|
609
611
|
function *now($completion) {
|
|
610
|
-
var difference = (yield* this.
|
|
612
|
+
var difference = (yield* this.now_a60o7n_k$(Companion_instance.now(), $completion)).differenceMillis;
|
|
611
613
|
var tmp = Companion_instance.now();
|
|
612
614
|
// Inline function 'kotlin.time.Companion.milliseconds' call
|
|
613
615
|
Companion_getInstance();
|
|
614
616
|
var tmp$ret$0 = toDuration(difference, DurationUnit_MILLISECONDS_getInstance());
|
|
615
|
-
return tmp.
|
|
617
|
+
return tmp.plus_tegsqz_k$(tmp$ret$0);
|
|
616
618
|
}
|
|
617
619
|
class AttoNodePublishMismatchException extends IllegalStateException {
|
|
618
620
|
constructor(expected, actual) {
|
|
619
|
-
return new.target.
|
|
621
|
+
return new.target.new_cash_atto_commons_node_AttoNodePublishMismatchException_2rucak_k$(expected, actual);
|
|
620
622
|
}
|
|
621
|
-
static
|
|
622
|
-
var $this = this.
|
|
623
|
-
captureStack($this, $this
|
|
623
|
+
static new_cash_atto_commons_node_AttoNodePublishMismatchException_2rucak_k$(expected, actual) {
|
|
624
|
+
var $this = this.new_kotlin_IllegalStateException_w47ei6_k$('Node acknowledged transaction ' + actual.toString() + ' instead of submitted transaction ' + expected.toString());
|
|
625
|
+
captureStack($this, $this.$throwableCtor_4);
|
|
624
626
|
return $this;
|
|
625
627
|
}
|
|
626
628
|
}
|
|
@@ -633,16 +635,16 @@ class AttoHeightMonitor {
|
|
|
633
635
|
tmp = heightProvider;
|
|
634
636
|
}
|
|
635
637
|
heightProvider = tmp;
|
|
636
|
-
this.
|
|
637
|
-
this.
|
|
638
|
-
this.
|
|
638
|
+
this.accountMonitor_1 = accountMonitor;
|
|
639
|
+
this.heightProvider_1 = heightProvider;
|
|
640
|
+
this.mutex_1 = Mutex();
|
|
639
641
|
var tmp_0 = this;
|
|
640
642
|
// Inline function 'kotlin.collections.mutableMapOf' call
|
|
641
|
-
tmp_0.
|
|
643
|
+
tmp_0.heightMap_1 = LinkedHashMap.new_kotlin_collections_LinkedHashMap_ga0any_k$();
|
|
642
644
|
}
|
|
643
|
-
|
|
645
|
+
stream_er2g00_k$() {
|
|
644
646
|
// Inline function 'kotlinx.coroutines.flow.flatMapLatest' call
|
|
645
|
-
var this_0 = this.
|
|
647
|
+
var this_0 = this.accountMonitor_1.membershipFlow_c8bg0s_k$();
|
|
646
648
|
// Inline function 'kotlinx.coroutines.flow.map' call
|
|
647
649
|
// Inline function 'kotlinx.coroutines.flow.unsafeTransform' call
|
|
648
650
|
var this_1 = transformLatest(this_0, AttoHeightMonitor$stream$slambda(this));
|
|
@@ -660,110 +662,110 @@ class AttoAccountEntryMonitor extends AttoHeightMonitor {
|
|
|
660
662
|
}
|
|
661
663
|
heightProvider = tmp;
|
|
662
664
|
super(accountMonitor, heightProvider);
|
|
663
|
-
this.
|
|
665
|
+
this.nodeClient_1 = nodeClient;
|
|
664
666
|
}
|
|
665
|
-
|
|
666
|
-
return this.
|
|
667
|
+
stream_6o3q8h_k$(search) {
|
|
668
|
+
return this.nodeClient_1.accountEntryStream_mzedbn_k$(search);
|
|
667
669
|
}
|
|
668
670
|
}
|
|
669
671
|
class State {
|
|
670
672
|
constructor() {
|
|
671
|
-
this.
|
|
673
|
+
this.mutex_1 = Mutex();
|
|
672
674
|
var tmp = this;
|
|
673
675
|
// Inline function 'kotlin.collections.mutableSetOf' call
|
|
674
|
-
tmp.
|
|
675
|
-
this.
|
|
676
|
+
tmp.addresses_1 = LinkedHashSet.new_kotlin_collections_LinkedHashSet_ahyf7j_k$();
|
|
677
|
+
this.addressesFlow_1 = MutableStateFlow(emptySet());
|
|
676
678
|
}
|
|
677
|
-
*
|
|
679
|
+
*isMonitored_vjsds7_k$(address, $completion) {
|
|
678
680
|
// Inline function 'kotlinx.coroutines.sync.withLock' call
|
|
679
|
-
var this_0 = this.
|
|
680
|
-
yield* this_0.
|
|
681
|
+
var this_0 = this.mutex_1;
|
|
682
|
+
yield* this_0.lock_ugrcvf_k$(null, $completion);
|
|
681
683
|
var tmp;
|
|
682
684
|
try {
|
|
683
|
-
return this.
|
|
685
|
+
return this.addresses_1.contains_aljjnj_k$(address);
|
|
684
686
|
}finally {
|
|
685
|
-
this_0.
|
|
687
|
+
this_0.unlock_ulcrcl_k$(null);
|
|
686
688
|
}
|
|
687
689
|
}
|
|
688
|
-
*
|
|
690
|
+
*getAddresses_oc8o81_k$($completion) {
|
|
689
691
|
// Inline function 'kotlinx.coroutines.sync.withLock' call
|
|
690
|
-
var this_0 = this.
|
|
691
|
-
yield* this_0.
|
|
692
|
+
var this_0 = this.mutex_1;
|
|
693
|
+
yield* this_0.lock_ugrcvf_k$(null, $completion);
|
|
692
694
|
var tmp;
|
|
693
695
|
try {
|
|
694
|
-
tmp = toSet(this.
|
|
696
|
+
tmp = toSet(this.addresses_1);
|
|
695
697
|
}finally {
|
|
696
|
-
this_0.
|
|
698
|
+
this_0.unlock_ulcrcl_k$(null);
|
|
697
699
|
}
|
|
698
700
|
return tmp;
|
|
699
701
|
}
|
|
700
|
-
*
|
|
702
|
+
*add_4s3dr5_k$(newAddresses, $completion) {
|
|
701
703
|
// Inline function 'kotlinx.coroutines.sync.withLock' call
|
|
702
|
-
var this_0 = this.
|
|
703
|
-
yield* this_0.
|
|
704
|
+
var this_0 = this.mutex_1;
|
|
705
|
+
yield* this_0.lock_ugrcvf_k$(null, $completion);
|
|
704
706
|
try {
|
|
705
707
|
// Inline function 'kotlin.collections.plusAssign' call
|
|
706
|
-
var this_1 = this.
|
|
708
|
+
var this_1 = this.addresses_1;
|
|
707
709
|
addAll(this_1, newAddresses);
|
|
708
|
-
var tmp0 = this.
|
|
710
|
+
var tmp0 = this.addressesFlow_1;
|
|
709
711
|
$l$block: {
|
|
710
712
|
// Inline function 'kotlinx.coroutines.flow.update' call
|
|
711
713
|
while (true) {
|
|
712
|
-
var prevValue = tmp0.
|
|
713
|
-
var nextValue = toSet(this.
|
|
714
|
-
if (tmp0.
|
|
714
|
+
var prevValue = tmp0.get_value_j01efc_k$();
|
|
715
|
+
var nextValue = toSet(this.addresses_1);
|
|
716
|
+
if (tmp0.compareAndSet_l3595a_k$(prevValue, nextValue)) {
|
|
715
717
|
break $l$block;
|
|
716
718
|
}
|
|
717
719
|
}
|
|
718
720
|
}
|
|
719
721
|
}finally {
|
|
720
|
-
this_0.
|
|
722
|
+
this_0.unlock_ulcrcl_k$(null);
|
|
721
723
|
}
|
|
722
724
|
return Unit_instance;
|
|
723
725
|
}
|
|
724
|
-
*
|
|
726
|
+
*remove_3l4ve5_k$(address, $completion) {
|
|
725
727
|
// Inline function 'kotlinx.coroutines.sync.withLock' call
|
|
726
|
-
var this_0 = this.
|
|
727
|
-
yield* this_0.
|
|
728
|
+
var this_0 = this.mutex_1;
|
|
729
|
+
yield* this_0.lock_ugrcvf_k$(null, $completion);
|
|
728
730
|
try {
|
|
729
731
|
// Inline function 'kotlin.collections.minusAssign' call
|
|
730
|
-
this.
|
|
731
|
-
var tmp0 = this.
|
|
732
|
+
this.addresses_1.remove_cedx0m_k$(address);
|
|
733
|
+
var tmp0 = this.addressesFlow_1;
|
|
732
734
|
$l$block: {
|
|
733
735
|
// Inline function 'kotlinx.coroutines.flow.update' call
|
|
734
736
|
while (true) {
|
|
735
|
-
var prevValue = tmp0.
|
|
736
|
-
var nextValue = toSet(this.
|
|
737
|
-
if (tmp0.
|
|
737
|
+
var prevValue = tmp0.get_value_j01efc_k$();
|
|
738
|
+
var nextValue = toSet(this.addresses_1);
|
|
739
|
+
if (tmp0.compareAndSet_l3595a_k$(prevValue, nextValue)) {
|
|
738
740
|
break $l$block;
|
|
739
741
|
}
|
|
740
742
|
}
|
|
741
743
|
}
|
|
742
744
|
}finally {
|
|
743
|
-
this_0.
|
|
745
|
+
this_0.unlock_ulcrcl_k$(null);
|
|
744
746
|
}
|
|
745
747
|
return Unit_instance;
|
|
746
748
|
}
|
|
747
|
-
|
|
748
|
-
return asStateFlow(this.
|
|
749
|
+
membershipFlow_c8bg0s_k$() {
|
|
750
|
+
return asStateFlow(this.addressesFlow_1);
|
|
749
751
|
}
|
|
750
752
|
}
|
|
751
753
|
class sam$kotlinx_coroutines_flow_FlowCollector$0 {
|
|
752
754
|
constructor(function_0) {
|
|
753
|
-
this.
|
|
755
|
+
this.function_1 = function_0;
|
|
754
756
|
}
|
|
755
|
-
*
|
|
756
|
-
return yield* this.
|
|
757
|
+
*emit_t92u1f_k$(value, $completion) {
|
|
758
|
+
return yield* $(this.function_1(value, $completion), $completion);
|
|
757
759
|
}
|
|
758
|
-
|
|
759
|
-
return this.
|
|
760
|
+
getFunctionDelegate_jtodtf_k$() {
|
|
761
|
+
return this.function_1;
|
|
760
762
|
}
|
|
761
763
|
equals(other) {
|
|
762
764
|
var tmp;
|
|
763
765
|
if (!(other == null) ? isInterface(other, FlowCollector) : false) {
|
|
764
766
|
var tmp_0;
|
|
765
767
|
if (!(other == null) ? isInterface(other, FunctionAdapter) : false) {
|
|
766
|
-
tmp_0 = equals(this.
|
|
768
|
+
tmp_0 = equals(this.getFunctionDelegate_jtodtf_k$(), other.getFunctionDelegate_jtodtf_k$());
|
|
767
769
|
} else {
|
|
768
770
|
tmp_0 = false;
|
|
769
771
|
}
|
|
@@ -774,25 +776,25 @@ class sam$kotlinx_coroutines_flow_FlowCollector$0 {
|
|
|
774
776
|
return tmp;
|
|
775
777
|
}
|
|
776
778
|
hashCode() {
|
|
777
|
-
return hashCode(this.
|
|
779
|
+
return hashCode(this.getFunctionDelegate_jtodtf_k$());
|
|
778
780
|
}
|
|
779
781
|
}
|
|
780
782
|
class sam$kotlinx_coroutines_flow_FlowCollector$0_0 {
|
|
781
783
|
constructor(function_0) {
|
|
782
|
-
this.
|
|
784
|
+
this.function_1 = function_0;
|
|
783
785
|
}
|
|
784
|
-
*
|
|
785
|
-
return yield* this.
|
|
786
|
+
*emit_t92u1f_k$(value, $completion) {
|
|
787
|
+
return yield* $(this.function_1(value, $completion), $completion);
|
|
786
788
|
}
|
|
787
|
-
|
|
788
|
-
return this.
|
|
789
|
+
getFunctionDelegate_jtodtf_k$() {
|
|
790
|
+
return this.function_1;
|
|
789
791
|
}
|
|
790
792
|
equals(other) {
|
|
791
793
|
var tmp;
|
|
792
794
|
if (!(other == null) ? isInterface(other, FlowCollector) : false) {
|
|
793
795
|
var tmp_0;
|
|
794
796
|
if (!(other == null) ? isInterface(other, FunctionAdapter) : false) {
|
|
795
|
-
tmp_0 = equals(this.
|
|
797
|
+
tmp_0 = equals(this.getFunctionDelegate_jtodtf_k$(), other.getFunctionDelegate_jtodtf_k$());
|
|
796
798
|
} else {
|
|
797
799
|
tmp_0 = false;
|
|
798
800
|
}
|
|
@@ -803,100 +805,100 @@ class sam$kotlinx_coroutines_flow_FlowCollector$0_0 {
|
|
|
803
805
|
return tmp;
|
|
804
806
|
}
|
|
805
807
|
hashCode() {
|
|
806
|
-
return hashCode(this.
|
|
808
|
+
return hashCode(this.getFunctionDelegate_jtodtf_k$());
|
|
807
809
|
}
|
|
808
810
|
}
|
|
809
811
|
class AttoAccountMonitor$accountStream$$inlined$flatMapLatest$1$1 {
|
|
810
812
|
constructor($this, $addresses) {
|
|
811
|
-
this
|
|
812
|
-
this
|
|
813
|
+
this.$this_1 = $this;
|
|
814
|
+
this.$addresses_1 = $addresses;
|
|
813
815
|
}
|
|
814
|
-
*
|
|
815
|
-
var tmp = AttoAccountMonitor$accountStream$slambda$o$collect$slambda(collector, this
|
|
816
|
-
yield* this.
|
|
816
|
+
*collect_ooju95_k$(collector, $completion) {
|
|
817
|
+
var tmp = AttoAccountMonitor$accountStream$slambda$o$collect$slambda(collector, this.$addresses_1);
|
|
818
|
+
yield* this.$this_1.collect_aksokr_k$(new sam$kotlinx_coroutines_flow_FlowCollector$0(tmp), $completion);
|
|
817
819
|
return Unit_instance;
|
|
818
820
|
}
|
|
819
|
-
|
|
820
|
-
return this.
|
|
821
|
+
collect_aksokr_k$(collector, $completion) {
|
|
822
|
+
return this.collect_ooju95_k$(collector, $completion);
|
|
821
823
|
}
|
|
822
824
|
}
|
|
823
825
|
class AttoAccountMonitor$receivableStream$$inlined$flatMapLatest$1$1 {
|
|
824
826
|
constructor($this, $addresses) {
|
|
825
|
-
this
|
|
826
|
-
this
|
|
827
|
+
this.$this_1 = $this;
|
|
828
|
+
this.$addresses_1 = $addresses;
|
|
827
829
|
}
|
|
828
|
-
*
|
|
829
|
-
var tmp = AttoAccountMonitor$receivableStream$slambda$o$collect$slambda(collector, this
|
|
830
|
-
yield* this.
|
|
830
|
+
*collect_ooju95_k$(collector, $completion) {
|
|
831
|
+
var tmp = AttoAccountMonitor$receivableStream$slambda$o$collect$slambda(collector, this.$addresses_1);
|
|
832
|
+
yield* this.$this_1.collect_aksokr_k$(new sam$kotlinx_coroutines_flow_FlowCollector$0_0(tmp), $completion);
|
|
831
833
|
return Unit_instance;
|
|
832
834
|
}
|
|
833
|
-
|
|
834
|
-
return this.
|
|
835
|
+
collect_aksokr_k$(collector, $completion) {
|
|
836
|
+
return this.collect_ooju95_k$(collector, $completion);
|
|
835
837
|
}
|
|
836
838
|
}
|
|
837
839
|
class AttoAccountMonitor {
|
|
838
840
|
constructor(client) {
|
|
839
|
-
this.
|
|
840
|
-
this.
|
|
841
|
+
this.client_1 = client;
|
|
842
|
+
this.state_1 = new State();
|
|
841
843
|
}
|
|
842
|
-
*
|
|
843
|
-
yield* this.
|
|
844
|
+
*monitor_goxoh4_k$(addresses, $completion) {
|
|
845
|
+
yield* this.state_1.add_4s3dr5_k$(addresses, $completion);
|
|
844
846
|
return Unit_instance;
|
|
845
847
|
}
|
|
846
|
-
*
|
|
847
|
-
yield* this.
|
|
848
|
+
*monitor_8pxf55_k$(address, $completion) {
|
|
849
|
+
yield* this.state_1.add_4s3dr5_k$(listOf(address), $completion);
|
|
848
850
|
return Unit_instance;
|
|
849
851
|
}
|
|
850
|
-
*
|
|
851
|
-
return yield* this.
|
|
852
|
+
*isMonitored_vjsds7_k$(address, $completion) {
|
|
853
|
+
return yield* this.state_1.isMonitored_vjsds7_k$(address, $completion);
|
|
852
854
|
}
|
|
853
|
-
*
|
|
854
|
-
yield* this.
|
|
855
|
+
*stopMonitoring_tx59ix_k$(address, $completion) {
|
|
856
|
+
yield* this.state_1.remove_3l4ve5_k$(address, $completion);
|
|
855
857
|
return Unit_instance;
|
|
856
858
|
}
|
|
857
|
-
*
|
|
858
|
-
return yield* this.
|
|
859
|
+
*getAccounts_3ofxvm_k$($completion) {
|
|
860
|
+
return yield* this.client_1.account_fuzzv6_k$(yield* this.state_1.getAddresses_oc8o81_k$($completion), $completion);
|
|
859
861
|
}
|
|
860
|
-
|
|
861
|
-
return this.
|
|
862
|
+
membershipFlow_c8bg0s_k$() {
|
|
863
|
+
return this.state_1.membershipFlow_c8bg0s_k$();
|
|
862
864
|
}
|
|
863
|
-
|
|
865
|
+
accountStream_eda2gj_k$() {
|
|
864
866
|
// Inline function 'kotlinx.coroutines.flow.flatMapLatest' call
|
|
865
|
-
var this_0 = this.
|
|
867
|
+
var this_0 = this.membershipFlow_c8bg0s_k$();
|
|
866
868
|
return transformLatest(this_0, AttoAccountMonitor$accountStream$slambda(this));
|
|
867
869
|
}
|
|
868
|
-
|
|
870
|
+
receivableStream_vjfpcd_k$(minAmount) {
|
|
869
871
|
// Inline function 'kotlinx.coroutines.flow.flatMapLatest' call
|
|
870
|
-
var this_0 = this.
|
|
872
|
+
var this_0 = this.membershipFlow_c8bg0s_k$();
|
|
871
873
|
return transformLatest(this_0, AttoAccountMonitor$receivableStream$slambda(this, minAmount));
|
|
872
874
|
}
|
|
873
875
|
}
|
|
874
876
|
class Message {
|
|
875
877
|
constructor(value, acknowledge) {
|
|
876
|
-
this.
|
|
877
|
-
this.
|
|
878
|
+
this.value_1 = value;
|
|
879
|
+
this.acknowledge_1 = acknowledge;
|
|
878
880
|
}
|
|
879
|
-
*
|
|
880
|
-
yield* this.
|
|
881
|
+
*acknowledge_f0kq2j_k$($completion) {
|
|
882
|
+
yield* $(this.acknowledge_1($completion), $completion);
|
|
881
883
|
return Unit_instance;
|
|
882
884
|
}
|
|
883
885
|
}
|
|
884
886
|
class sam$kotlinx_coroutines_flow_FlowCollector$0_1 {
|
|
885
887
|
constructor(function_0) {
|
|
886
|
-
this.
|
|
888
|
+
this.function_1 = function_0;
|
|
887
889
|
}
|
|
888
|
-
*
|
|
889
|
-
return yield* this.
|
|
890
|
+
*emit_t92u1f_k$(value, $completion) {
|
|
891
|
+
return yield* $(this.function_1(value, $completion), $completion);
|
|
890
892
|
}
|
|
891
|
-
|
|
892
|
-
return this.
|
|
893
|
+
getFunctionDelegate_jtodtf_k$() {
|
|
894
|
+
return this.function_1;
|
|
893
895
|
}
|
|
894
896
|
equals(other) {
|
|
895
897
|
var tmp;
|
|
896
898
|
if (!(other == null) ? isInterface(other, FlowCollector) : false) {
|
|
897
899
|
var tmp_0;
|
|
898
900
|
if (!(other == null) ? isInterface(other, FunctionAdapter) : false) {
|
|
899
|
-
tmp_0 = equals(this.
|
|
901
|
+
tmp_0 = equals(this.getFunctionDelegate_jtodtf_k$(), other.getFunctionDelegate_jtodtf_k$());
|
|
900
902
|
} else {
|
|
901
903
|
tmp_0 = false;
|
|
902
904
|
}
|
|
@@ -907,25 +909,25 @@ class sam$kotlinx_coroutines_flow_FlowCollector$0_1 {
|
|
|
907
909
|
return tmp;
|
|
908
910
|
}
|
|
909
911
|
hashCode() {
|
|
910
|
-
return hashCode(this.
|
|
912
|
+
return hashCode(this.getFunctionDelegate_jtodtf_k$());
|
|
911
913
|
}
|
|
912
914
|
}
|
|
913
915
|
class sam$kotlinx_coroutines_flow_FlowCollector$0_2 {
|
|
914
916
|
constructor(function_0) {
|
|
915
|
-
this.
|
|
917
|
+
this.function_1 = function_0;
|
|
916
918
|
}
|
|
917
|
-
*
|
|
918
|
-
return yield* this.
|
|
919
|
+
*emit_t92u1f_k$(value, $completion) {
|
|
920
|
+
return yield* $(this.function_1(value, $completion), $completion);
|
|
919
921
|
}
|
|
920
|
-
|
|
921
|
-
return this.
|
|
922
|
+
getFunctionDelegate_jtodtf_k$() {
|
|
923
|
+
return this.function_1;
|
|
922
924
|
}
|
|
923
925
|
equals(other) {
|
|
924
926
|
var tmp;
|
|
925
927
|
if (!(other == null) ? isInterface(other, FlowCollector) : false) {
|
|
926
928
|
var tmp_0;
|
|
927
929
|
if (!(other == null) ? isInterface(other, FunctionAdapter) : false) {
|
|
928
|
-
tmp_0 = equals(this.
|
|
930
|
+
tmp_0 = equals(this.getFunctionDelegate_jtodtf_k$(), other.getFunctionDelegate_jtodtf_k$());
|
|
929
931
|
} else {
|
|
930
932
|
tmp_0 = false;
|
|
931
933
|
}
|
|
@@ -936,35 +938,35 @@ class sam$kotlinx_coroutines_flow_FlowCollector$0_2 {
|
|
|
936
938
|
return tmp;
|
|
937
939
|
}
|
|
938
940
|
hashCode() {
|
|
939
|
-
return hashCode(this.
|
|
941
|
+
return hashCode(this.getFunctionDelegate_jtodtf_k$());
|
|
940
942
|
}
|
|
941
943
|
}
|
|
942
944
|
class AttoHeightMonitor$stream$$inlined$map$1 {
|
|
943
945
|
constructor($this, this$0) {
|
|
944
|
-
this
|
|
945
|
-
this.
|
|
946
|
+
this.$this_1 = $this;
|
|
947
|
+
this.this$0__1 = this$0;
|
|
946
948
|
}
|
|
947
|
-
*
|
|
948
|
-
var tmp = AttoHeightMonitor$stream$o$collect$slambda(collector, this.
|
|
949
|
-
yield* this.
|
|
949
|
+
*collect_ooju95_k$(collector, $completion) {
|
|
950
|
+
var tmp = AttoHeightMonitor$stream$o$collect$slambda(collector, this.this$0__1);
|
|
951
|
+
yield* this.$this_1.collect_aksokr_k$(new sam$kotlinx_coroutines_flow_FlowCollector$0_1(tmp), $completion);
|
|
950
952
|
return Unit_instance;
|
|
951
953
|
}
|
|
952
|
-
|
|
953
|
-
return this.
|
|
954
|
+
collect_aksokr_k$(collector, $completion) {
|
|
955
|
+
return this.collect_ooju95_k$(collector, $completion);
|
|
954
956
|
}
|
|
955
957
|
}
|
|
956
958
|
class AttoHeightMonitor$retryingStream$1$$inlined$filter$1 {
|
|
957
959
|
constructor($this, $addresses) {
|
|
958
|
-
this
|
|
959
|
-
this
|
|
960
|
+
this.$this_1 = $this;
|
|
961
|
+
this.$addresses_1 = $addresses;
|
|
960
962
|
}
|
|
961
|
-
*
|
|
962
|
-
var tmp = AttoHeightMonitor$retryingStream$slambda$o$collect$slambda(collector, this
|
|
963
|
-
yield* this.
|
|
963
|
+
*collect_ooju95_k$(collector, $completion) {
|
|
964
|
+
var tmp = AttoHeightMonitor$retryingStream$slambda$o$collect$slambda(collector, this.$addresses_1);
|
|
965
|
+
yield* this.$this_1.collect_aksokr_k$(new sam$kotlinx_coroutines_flow_FlowCollector$0_2(tmp), $completion);
|
|
964
966
|
return Unit_instance;
|
|
965
967
|
}
|
|
966
|
-
|
|
967
|
-
return this.
|
|
968
|
+
collect_aksokr_k$(collector, $completion) {
|
|
969
|
+
return this.collect_ooju95_k$(collector, $completion);
|
|
968
970
|
}
|
|
969
971
|
}
|
|
970
972
|
class AttoTransactionMonitor extends AttoHeightMonitor {
|
|
@@ -977,64 +979,64 @@ class AttoTransactionMonitor extends AttoHeightMonitor {
|
|
|
977
979
|
}
|
|
978
980
|
heightProvider = tmp;
|
|
979
981
|
super(accountMonitor, heightProvider);
|
|
980
|
-
this.
|
|
982
|
+
this.nodeClient_1 = nodeClient;
|
|
981
983
|
}
|
|
982
|
-
|
|
983
|
-
return this.
|
|
984
|
+
stream_6o3q8h_k$(search) {
|
|
985
|
+
return this.nodeClient_1.transactionStream_kkux3o_k$(search);
|
|
984
986
|
}
|
|
985
987
|
}
|
|
986
988
|
class AttoAccountEntryMonitorAsyncBuilder {
|
|
987
989
|
constructor(nodeClient, accountMonitor) {
|
|
988
|
-
this.
|
|
989
|
-
this.
|
|
990
|
+
this.nodeClient_1 = nodeClient;
|
|
991
|
+
this.accountMonitor_1 = accountMonitor;
|
|
990
992
|
var tmp = this;
|
|
991
|
-
tmp.
|
|
993
|
+
tmp.heightProvider_1 = AttoAccountEntryMonitorAsyncBuilder$heightProvider$slambda();
|
|
992
994
|
}
|
|
993
995
|
heightProvider(value) {
|
|
994
996
|
// Inline function 'kotlin.apply' call
|
|
995
997
|
var tmp = this;
|
|
996
|
-
tmp.
|
|
998
|
+
tmp.heightProvider_1 = AttoAccountEntryMonitorAsyncBuilder$heightProvider$slambda_0(value);
|
|
997
999
|
return this;
|
|
998
1000
|
}
|
|
999
1001
|
build() {
|
|
1000
|
-
var accountEntryMonitor = new AttoAccountEntryMonitor(this.
|
|
1001
|
-
return new AttoAccountEntryMonitorAsync(accountEntryMonitor, Dispatchers_getInstance().
|
|
1002
|
+
var accountEntryMonitor = new AttoAccountEntryMonitor(this.nodeClient_1.client, this.accountMonitor_1.accountMonitor, this.heightProvider_1);
|
|
1003
|
+
return new AttoAccountEntryMonitorAsync(accountEntryMonitor, Dispatchers_getInstance().Default_1);
|
|
1002
1004
|
}
|
|
1003
1005
|
}
|
|
1004
1006
|
class AttoTransactionMonitorAsyncBuilder {
|
|
1005
1007
|
constructor(nodeClient, accountMonitor) {
|
|
1006
|
-
this.
|
|
1007
|
-
this.
|
|
1008
|
+
this.nodeClient_1 = nodeClient;
|
|
1009
|
+
this.accountMonitor_1 = accountMonitor;
|
|
1008
1010
|
var tmp = this;
|
|
1009
|
-
tmp.
|
|
1011
|
+
tmp.heightProvider_1 = AttoTransactionMonitorAsyncBuilder$heightProvider$slambda();
|
|
1010
1012
|
}
|
|
1011
1013
|
heightProvider(value) {
|
|
1012
1014
|
// Inline function 'kotlin.apply' call
|
|
1013
1015
|
var tmp = this;
|
|
1014
|
-
tmp.
|
|
1016
|
+
tmp.heightProvider_1 = AttoTransactionMonitorAsyncBuilder$heightProvider$slambda_0(value);
|
|
1015
1017
|
return this;
|
|
1016
1018
|
}
|
|
1017
1019
|
build() {
|
|
1018
|
-
var transactionMonitor = new AttoTransactionMonitor(this.
|
|
1019
|
-
return new AttoTransactionMonitorAsync(transactionMonitor, Dispatchers_getInstance().
|
|
1020
|
+
var transactionMonitor = new AttoTransactionMonitor(this.nodeClient_1.client, this.accountMonitor_1.accountMonitor, this.heightProvider_1);
|
|
1021
|
+
return new AttoTransactionMonitorAsync(transactionMonitor, Dispatchers_getInstance().Default_1);
|
|
1020
1022
|
}
|
|
1021
1023
|
}
|
|
1022
1024
|
class sam$kotlinx_coroutines_flow_FlowCollector$0_3 {
|
|
1023
1025
|
constructor(function_0) {
|
|
1024
|
-
this.
|
|
1026
|
+
this.function_1 = function_0;
|
|
1025
1027
|
}
|
|
1026
|
-
*
|
|
1027
|
-
return yield* this.
|
|
1028
|
+
*emit_t92u1f_k$(value, $completion) {
|
|
1029
|
+
return yield* $(this.function_1(value, $completion), $completion);
|
|
1028
1030
|
}
|
|
1029
|
-
|
|
1030
|
-
return this.
|
|
1031
|
+
getFunctionDelegate_jtodtf_k$() {
|
|
1032
|
+
return this.function_1;
|
|
1031
1033
|
}
|
|
1032
1034
|
equals(other) {
|
|
1033
1035
|
var tmp;
|
|
1034
1036
|
if (!(other == null) ? isInterface(other, FlowCollector) : false) {
|
|
1035
1037
|
var tmp_0;
|
|
1036
1038
|
if (!(other == null) ? isInterface(other, FunctionAdapter) : false) {
|
|
1037
|
-
tmp_0 = equals(this.
|
|
1039
|
+
tmp_0 = equals(this.getFunctionDelegate_jtodtf_k$(), other.getFunctionDelegate_jtodtf_k$());
|
|
1038
1040
|
} else {
|
|
1039
1041
|
tmp_0 = false;
|
|
1040
1042
|
}
|
|
@@ -1045,25 +1047,25 @@ class sam$kotlinx_coroutines_flow_FlowCollector$0_3 {
|
|
|
1045
1047
|
return tmp;
|
|
1046
1048
|
}
|
|
1047
1049
|
hashCode() {
|
|
1048
|
-
return hashCode(this.
|
|
1050
|
+
return hashCode(this.getFunctionDelegate_jtodtf_k$());
|
|
1049
1051
|
}
|
|
1050
1052
|
}
|
|
1051
1053
|
class sam$kotlinx_coroutines_flow_FlowCollector$0_4 {
|
|
1052
1054
|
constructor(function_0) {
|
|
1053
|
-
this.
|
|
1055
|
+
this.function_1 = function_0;
|
|
1054
1056
|
}
|
|
1055
|
-
*
|
|
1056
|
-
return yield* this.
|
|
1057
|
+
*emit_t92u1f_k$(value, $completion) {
|
|
1058
|
+
return yield* $(this.function_1(value, $completion), $completion);
|
|
1057
1059
|
}
|
|
1058
|
-
|
|
1059
|
-
return this.
|
|
1060
|
+
getFunctionDelegate_jtodtf_k$() {
|
|
1061
|
+
return this.function_1;
|
|
1060
1062
|
}
|
|
1061
1063
|
equals(other) {
|
|
1062
1064
|
var tmp;
|
|
1063
1065
|
if (!(other == null) ? isInterface(other, FlowCollector) : false) {
|
|
1064
1066
|
var tmp_0;
|
|
1065
1067
|
if (!(other == null) ? isInterface(other, FunctionAdapter) : false) {
|
|
1066
|
-
tmp_0 = equals(this.
|
|
1068
|
+
tmp_0 = equals(this.getFunctionDelegate_jtodtf_k$(), other.getFunctionDelegate_jtodtf_k$());
|
|
1067
1069
|
} else {
|
|
1068
1070
|
tmp_0 = false;
|
|
1069
1071
|
}
|
|
@@ -1074,25 +1076,25 @@ class sam$kotlinx_coroutines_flow_FlowCollector$0_4 {
|
|
|
1074
1076
|
return tmp;
|
|
1075
1077
|
}
|
|
1076
1078
|
hashCode() {
|
|
1077
|
-
return hashCode(this.
|
|
1079
|
+
return hashCode(this.getFunctionDelegate_jtodtf_k$());
|
|
1078
1080
|
}
|
|
1079
1081
|
}
|
|
1080
1082
|
class sam$kotlinx_coroutines_flow_FlowCollector$0_5 {
|
|
1081
1083
|
constructor(function_0) {
|
|
1082
|
-
this.
|
|
1084
|
+
this.function_1 = function_0;
|
|
1083
1085
|
}
|
|
1084
|
-
*
|
|
1085
|
-
return yield* this.
|
|
1086
|
+
*emit_t92u1f_k$(value, $completion) {
|
|
1087
|
+
return yield* $(this.function_1(value, $completion), $completion);
|
|
1086
1088
|
}
|
|
1087
|
-
|
|
1088
|
-
return this.
|
|
1089
|
+
getFunctionDelegate_jtodtf_k$() {
|
|
1090
|
+
return this.function_1;
|
|
1089
1091
|
}
|
|
1090
1092
|
equals(other) {
|
|
1091
1093
|
var tmp;
|
|
1092
1094
|
if (!(other == null) ? isInterface(other, FlowCollector) : false) {
|
|
1093
1095
|
var tmp_0;
|
|
1094
1096
|
if (!(other == null) ? isInterface(other, FunctionAdapter) : false) {
|
|
1095
|
-
tmp_0 = equals(this.
|
|
1097
|
+
tmp_0 = equals(this.getFunctionDelegate_jtodtf_k$(), other.getFunctionDelegate_jtodtf_k$());
|
|
1096
1098
|
} else {
|
|
1097
1099
|
tmp_0 = false;
|
|
1098
1100
|
}
|
|
@@ -1103,25 +1105,25 @@ class sam$kotlinx_coroutines_flow_FlowCollector$0_5 {
|
|
|
1103
1105
|
return tmp;
|
|
1104
1106
|
}
|
|
1105
1107
|
hashCode() {
|
|
1106
|
-
return hashCode(this.
|
|
1108
|
+
return hashCode(this.getFunctionDelegate_jtodtf_k$());
|
|
1107
1109
|
}
|
|
1108
1110
|
}
|
|
1109
1111
|
class sam$kotlinx_coroutines_flow_FlowCollector$0_6 {
|
|
1110
1112
|
constructor(function_0) {
|
|
1111
|
-
this.
|
|
1113
|
+
this.function_1 = function_0;
|
|
1112
1114
|
}
|
|
1113
|
-
*
|
|
1114
|
-
return yield* this.
|
|
1115
|
+
*emit_t92u1f_k$(value, $completion) {
|
|
1116
|
+
return yield* $(this.function_1(value, $completion), $completion);
|
|
1115
1117
|
}
|
|
1116
|
-
|
|
1117
|
-
return this.
|
|
1118
|
+
getFunctionDelegate_jtodtf_k$() {
|
|
1119
|
+
return this.function_1;
|
|
1118
1120
|
}
|
|
1119
1121
|
equals(other) {
|
|
1120
1122
|
var tmp;
|
|
1121
1123
|
if (!(other == null) ? isInterface(other, FlowCollector) : false) {
|
|
1122
1124
|
var tmp_0;
|
|
1123
1125
|
if (!(other == null) ? isInterface(other, FunctionAdapter) : false) {
|
|
1124
|
-
tmp_0 = equals(this.
|
|
1126
|
+
tmp_0 = equals(this.getFunctionDelegate_jtodtf_k$(), other.getFunctionDelegate_jtodtf_k$());
|
|
1125
1127
|
} else {
|
|
1126
1128
|
tmp_0 = false;
|
|
1127
1129
|
}
|
|
@@ -1132,25 +1134,25 @@ class sam$kotlinx_coroutines_flow_FlowCollector$0_6 {
|
|
|
1132
1134
|
return tmp;
|
|
1133
1135
|
}
|
|
1134
1136
|
hashCode() {
|
|
1135
|
-
return hashCode(this.
|
|
1137
|
+
return hashCode(this.getFunctionDelegate_jtodtf_k$());
|
|
1136
1138
|
}
|
|
1137
1139
|
}
|
|
1138
1140
|
class sam$kotlinx_coroutines_flow_FlowCollector$0_7 {
|
|
1139
1141
|
constructor(function_0) {
|
|
1140
|
-
this.
|
|
1142
|
+
this.function_1 = function_0;
|
|
1141
1143
|
}
|
|
1142
|
-
*
|
|
1143
|
-
return yield* this.
|
|
1144
|
+
*emit_t92u1f_k$(value, $completion) {
|
|
1145
|
+
return yield* $(this.function_1(value, $completion), $completion);
|
|
1144
1146
|
}
|
|
1145
|
-
|
|
1146
|
-
return this.
|
|
1147
|
+
getFunctionDelegate_jtodtf_k$() {
|
|
1148
|
+
return this.function_1;
|
|
1147
1149
|
}
|
|
1148
1150
|
equals(other) {
|
|
1149
1151
|
var tmp;
|
|
1150
1152
|
if (!(other == null) ? isInterface(other, FlowCollector) : false) {
|
|
1151
1153
|
var tmp_0;
|
|
1152
1154
|
if (!(other == null) ? isInterface(other, FunctionAdapter) : false) {
|
|
1153
|
-
tmp_0 = equals(this.
|
|
1155
|
+
tmp_0 = equals(this.getFunctionDelegate_jtodtf_k$(), other.getFunctionDelegate_jtodtf_k$());
|
|
1154
1156
|
} else {
|
|
1155
1157
|
tmp_0 = false;
|
|
1156
1158
|
}
|
|
@@ -1161,25 +1163,25 @@ class sam$kotlinx_coroutines_flow_FlowCollector$0_7 {
|
|
|
1161
1163
|
return tmp;
|
|
1162
1164
|
}
|
|
1163
1165
|
hashCode() {
|
|
1164
|
-
return hashCode(this.
|
|
1166
|
+
return hashCode(this.getFunctionDelegate_jtodtf_k$());
|
|
1165
1167
|
}
|
|
1166
1168
|
}
|
|
1167
1169
|
class sam$kotlinx_coroutines_flow_FlowCollector$0_8 {
|
|
1168
1170
|
constructor(function_0) {
|
|
1169
|
-
this.
|
|
1171
|
+
this.function_1 = function_0;
|
|
1170
1172
|
}
|
|
1171
|
-
*
|
|
1172
|
-
return yield* this.
|
|
1173
|
+
*emit_t92u1f_k$(value, $completion) {
|
|
1174
|
+
return yield* $(this.function_1(value, $completion), $completion);
|
|
1173
1175
|
}
|
|
1174
|
-
|
|
1175
|
-
return this.
|
|
1176
|
+
getFunctionDelegate_jtodtf_k$() {
|
|
1177
|
+
return this.function_1;
|
|
1176
1178
|
}
|
|
1177
1179
|
equals(other) {
|
|
1178
1180
|
var tmp;
|
|
1179
1181
|
if (!(other == null) ? isInterface(other, FlowCollector) : false) {
|
|
1180
1182
|
var tmp_0;
|
|
1181
1183
|
if (!(other == null) ? isInterface(other, FunctionAdapter) : false) {
|
|
1182
|
-
tmp_0 = equals(this.
|
|
1184
|
+
tmp_0 = equals(this.getFunctionDelegate_jtodtf_k$(), other.getFunctionDelegate_jtodtf_k$());
|
|
1183
1185
|
} else {
|
|
1184
1186
|
tmp_0 = false;
|
|
1185
1187
|
}
|
|
@@ -1190,25 +1192,25 @@ class sam$kotlinx_coroutines_flow_FlowCollector$0_8 {
|
|
|
1190
1192
|
return tmp;
|
|
1191
1193
|
}
|
|
1192
1194
|
hashCode() {
|
|
1193
|
-
return hashCode(this.
|
|
1195
|
+
return hashCode(this.getFunctionDelegate_jtodtf_k$());
|
|
1194
1196
|
}
|
|
1195
1197
|
}
|
|
1196
1198
|
class sam$kotlinx_coroutines_flow_FlowCollector$0_9 {
|
|
1197
1199
|
constructor(function_0) {
|
|
1198
|
-
this.
|
|
1200
|
+
this.function_1 = function_0;
|
|
1199
1201
|
}
|
|
1200
|
-
*
|
|
1201
|
-
return yield* this.
|
|
1202
|
+
*emit_t92u1f_k$(value, $completion) {
|
|
1203
|
+
return yield* $(this.function_1(value, $completion), $completion);
|
|
1202
1204
|
}
|
|
1203
|
-
|
|
1204
|
-
return this.
|
|
1205
|
+
getFunctionDelegate_jtodtf_k$() {
|
|
1206
|
+
return this.function_1;
|
|
1205
1207
|
}
|
|
1206
1208
|
equals(other) {
|
|
1207
1209
|
var tmp;
|
|
1208
1210
|
if (!(other == null) ? isInterface(other, FlowCollector) : false) {
|
|
1209
1211
|
var tmp_0;
|
|
1210
1212
|
if (!(other == null) ? isInterface(other, FunctionAdapter) : false) {
|
|
1211
|
-
tmp_0 = equals(this.
|
|
1213
|
+
tmp_0 = equals(this.getFunctionDelegate_jtodtf_k$(), other.getFunctionDelegate_jtodtf_k$());
|
|
1212
1214
|
} else {
|
|
1213
1215
|
tmp_0 = false;
|
|
1214
1216
|
}
|
|
@@ -1219,25 +1221,25 @@ class sam$kotlinx_coroutines_flow_FlowCollector$0_9 {
|
|
|
1219
1221
|
return tmp;
|
|
1220
1222
|
}
|
|
1221
1223
|
hashCode() {
|
|
1222
|
-
return hashCode(this.
|
|
1224
|
+
return hashCode(this.getFunctionDelegate_jtodtf_k$());
|
|
1223
1225
|
}
|
|
1224
1226
|
}
|
|
1225
1227
|
class sam$kotlinx_coroutines_flow_FlowCollector$0_10 {
|
|
1226
1228
|
constructor(function_0) {
|
|
1227
|
-
this.
|
|
1229
|
+
this.function_1 = function_0;
|
|
1228
1230
|
}
|
|
1229
|
-
*
|
|
1230
|
-
return yield* this.
|
|
1231
|
+
*emit_t92u1f_k$(value, $completion) {
|
|
1232
|
+
return yield* $(this.function_1(value, $completion), $completion);
|
|
1231
1233
|
}
|
|
1232
|
-
|
|
1233
|
-
return this.
|
|
1234
|
+
getFunctionDelegate_jtodtf_k$() {
|
|
1235
|
+
return this.function_1;
|
|
1234
1236
|
}
|
|
1235
1237
|
equals(other) {
|
|
1236
1238
|
var tmp;
|
|
1237
1239
|
if (!(other == null) ? isInterface(other, FlowCollector) : false) {
|
|
1238
1240
|
var tmp_0;
|
|
1239
1241
|
if (!(other == null) ? isInterface(other, FunctionAdapter) : false) {
|
|
1240
|
-
tmp_0 = equals(this.
|
|
1242
|
+
tmp_0 = equals(this.getFunctionDelegate_jtodtf_k$(), other.getFunctionDelegate_jtodtf_k$());
|
|
1241
1243
|
} else {
|
|
1242
1244
|
tmp_0 = false;
|
|
1243
1245
|
}
|
|
@@ -1248,25 +1250,25 @@ class sam$kotlinx_coroutines_flow_FlowCollector$0_10 {
|
|
|
1248
1250
|
return tmp;
|
|
1249
1251
|
}
|
|
1250
1252
|
hashCode() {
|
|
1251
|
-
return hashCode(this.
|
|
1253
|
+
return hashCode(this.getFunctionDelegate_jtodtf_k$());
|
|
1252
1254
|
}
|
|
1253
1255
|
}
|
|
1254
1256
|
class sam$kotlinx_coroutines_flow_FlowCollector$0_11 {
|
|
1255
1257
|
constructor(function_0) {
|
|
1256
|
-
this.
|
|
1258
|
+
this.function_1 = function_0;
|
|
1257
1259
|
}
|
|
1258
|
-
*
|
|
1259
|
-
return yield* this.
|
|
1260
|
+
*emit_t92u1f_k$(value, $completion) {
|
|
1261
|
+
return yield* $(this.function_1(value, $completion), $completion);
|
|
1260
1262
|
}
|
|
1261
|
-
|
|
1262
|
-
return this.
|
|
1263
|
+
getFunctionDelegate_jtodtf_k$() {
|
|
1264
|
+
return this.function_1;
|
|
1263
1265
|
}
|
|
1264
1266
|
equals(other) {
|
|
1265
1267
|
var tmp;
|
|
1266
1268
|
if (!(other == null) ? isInterface(other, FlowCollector) : false) {
|
|
1267
1269
|
var tmp_0;
|
|
1268
1270
|
if (!(other == null) ? isInterface(other, FunctionAdapter) : false) {
|
|
1269
|
-
tmp_0 = equals(this.
|
|
1271
|
+
tmp_0 = equals(this.getFunctionDelegate_jtodtf_k$(), other.getFunctionDelegate_jtodtf_k$());
|
|
1270
1272
|
} else {
|
|
1271
1273
|
tmp_0 = false;
|
|
1272
1274
|
}
|
|
@@ -1277,25 +1279,25 @@ class sam$kotlinx_coroutines_flow_FlowCollector$0_11 {
|
|
|
1277
1279
|
return tmp;
|
|
1278
1280
|
}
|
|
1279
1281
|
hashCode() {
|
|
1280
|
-
return hashCode(this.
|
|
1282
|
+
return hashCode(this.getFunctionDelegate_jtodtf_k$());
|
|
1281
1283
|
}
|
|
1282
1284
|
}
|
|
1283
1285
|
class sam$kotlinx_coroutines_flow_FlowCollector$0_12 {
|
|
1284
1286
|
constructor(function_0) {
|
|
1285
|
-
this.
|
|
1287
|
+
this.function_1 = function_0;
|
|
1286
1288
|
}
|
|
1287
|
-
*
|
|
1288
|
-
return yield* this.
|
|
1289
|
+
*emit_t92u1f_k$(value, $completion) {
|
|
1290
|
+
return yield* $(this.function_1(value, $completion), $completion);
|
|
1289
1291
|
}
|
|
1290
|
-
|
|
1291
|
-
return this.
|
|
1292
|
+
getFunctionDelegate_jtodtf_k$() {
|
|
1293
|
+
return this.function_1;
|
|
1292
1294
|
}
|
|
1293
1295
|
equals(other) {
|
|
1294
1296
|
var tmp;
|
|
1295
1297
|
if (!(other == null) ? isInterface(other, FlowCollector) : false) {
|
|
1296
1298
|
var tmp_0;
|
|
1297
1299
|
if (!(other == null) ? isInterface(other, FunctionAdapter) : false) {
|
|
1298
|
-
tmp_0 = equals(this.
|
|
1300
|
+
tmp_0 = equals(this.getFunctionDelegate_jtodtf_k$(), other.getFunctionDelegate_jtodtf_k$());
|
|
1299
1301
|
} else {
|
|
1300
1302
|
tmp_0 = false;
|
|
1301
1303
|
}
|
|
@@ -1306,25 +1308,25 @@ class sam$kotlinx_coroutines_flow_FlowCollector$0_12 {
|
|
|
1306
1308
|
return tmp;
|
|
1307
1309
|
}
|
|
1308
1310
|
hashCode() {
|
|
1309
|
-
return hashCode(this.
|
|
1311
|
+
return hashCode(this.getFunctionDelegate_jtodtf_k$());
|
|
1310
1312
|
}
|
|
1311
1313
|
}
|
|
1312
1314
|
class sam$kotlinx_coroutines_flow_FlowCollector$0_13 {
|
|
1313
1315
|
constructor(function_0) {
|
|
1314
|
-
this.
|
|
1316
|
+
this.function_1 = function_0;
|
|
1315
1317
|
}
|
|
1316
|
-
*
|
|
1317
|
-
return yield* this.
|
|
1318
|
+
*emit_t92u1f_k$(value, $completion) {
|
|
1319
|
+
return yield* $(this.function_1(value, $completion), $completion);
|
|
1318
1320
|
}
|
|
1319
|
-
|
|
1320
|
-
return this.
|
|
1321
|
+
getFunctionDelegate_jtodtf_k$() {
|
|
1322
|
+
return this.function_1;
|
|
1321
1323
|
}
|
|
1322
1324
|
equals(other) {
|
|
1323
1325
|
var tmp;
|
|
1324
1326
|
if (!(other == null) ? isInterface(other, FlowCollector) : false) {
|
|
1325
1327
|
var tmp_0;
|
|
1326
1328
|
if (!(other == null) ? isInterface(other, FunctionAdapter) : false) {
|
|
1327
|
-
tmp_0 = equals(this.
|
|
1329
|
+
tmp_0 = equals(this.getFunctionDelegate_jtodtf_k$(), other.getFunctionDelegate_jtodtf_k$());
|
|
1328
1330
|
} else {
|
|
1329
1331
|
tmp_0 = false;
|
|
1330
1332
|
}
|
|
@@ -1335,25 +1337,25 @@ class sam$kotlinx_coroutines_flow_FlowCollector$0_13 {
|
|
|
1335
1337
|
return tmp;
|
|
1336
1338
|
}
|
|
1337
1339
|
hashCode() {
|
|
1338
|
-
return hashCode(this.
|
|
1340
|
+
return hashCode(this.getFunctionDelegate_jtodtf_k$());
|
|
1339
1341
|
}
|
|
1340
1342
|
}
|
|
1341
1343
|
class sam$kotlinx_coroutines_flow_FlowCollector$0_14 {
|
|
1342
1344
|
constructor(function_0) {
|
|
1343
|
-
this.
|
|
1345
|
+
this.function_1 = function_0;
|
|
1344
1346
|
}
|
|
1345
|
-
*
|
|
1346
|
-
return yield* this.
|
|
1347
|
+
*emit_t92u1f_k$(value, $completion) {
|
|
1348
|
+
return yield* $(this.function_1(value, $completion), $completion);
|
|
1347
1349
|
}
|
|
1348
|
-
|
|
1349
|
-
return this.
|
|
1350
|
+
getFunctionDelegate_jtodtf_k$() {
|
|
1351
|
+
return this.function_1;
|
|
1350
1352
|
}
|
|
1351
1353
|
equals(other) {
|
|
1352
1354
|
var tmp;
|
|
1353
1355
|
if (!(other == null) ? isInterface(other, FlowCollector) : false) {
|
|
1354
1356
|
var tmp_0;
|
|
1355
1357
|
if (!(other == null) ? isInterface(other, FunctionAdapter) : false) {
|
|
1356
|
-
tmp_0 = equals(this.
|
|
1358
|
+
tmp_0 = equals(this.getFunctionDelegate_jtodtf_k$(), other.getFunctionDelegate_jtodtf_k$());
|
|
1357
1359
|
} else {
|
|
1358
1360
|
tmp_0 = false;
|
|
1359
1361
|
}
|
|
@@ -1364,25 +1366,25 @@ class sam$kotlinx_coroutines_flow_FlowCollector$0_14 {
|
|
|
1364
1366
|
return tmp;
|
|
1365
1367
|
}
|
|
1366
1368
|
hashCode() {
|
|
1367
|
-
return hashCode(this.
|
|
1369
|
+
return hashCode(this.getFunctionDelegate_jtodtf_k$());
|
|
1368
1370
|
}
|
|
1369
1371
|
}
|
|
1370
1372
|
class sam$kotlinx_coroutines_flow_FlowCollector$0_15 {
|
|
1371
1373
|
constructor(function_0) {
|
|
1372
|
-
this.
|
|
1374
|
+
this.function_1 = function_0;
|
|
1373
1375
|
}
|
|
1374
|
-
*
|
|
1375
|
-
return yield* this.
|
|
1376
|
+
*emit_t92u1f_k$(value, $completion) {
|
|
1377
|
+
return yield* $(this.function_1(value, $completion), $completion);
|
|
1376
1378
|
}
|
|
1377
|
-
|
|
1378
|
-
return this.
|
|
1379
|
+
getFunctionDelegate_jtodtf_k$() {
|
|
1380
|
+
return this.function_1;
|
|
1379
1381
|
}
|
|
1380
1382
|
equals(other) {
|
|
1381
1383
|
var tmp;
|
|
1382
1384
|
if (!(other == null) ? isInterface(other, FlowCollector) : false) {
|
|
1383
1385
|
var tmp_0;
|
|
1384
1386
|
if (!(other == null) ? isInterface(other, FunctionAdapter) : false) {
|
|
1385
|
-
tmp_0 = equals(this.
|
|
1387
|
+
tmp_0 = equals(this.getFunctionDelegate_jtodtf_k$(), other.getFunctionDelegate_jtodtf_k$());
|
|
1386
1388
|
} else {
|
|
1387
1389
|
tmp_0 = false;
|
|
1388
1390
|
}
|
|
@@ -1393,106 +1395,106 @@ class sam$kotlinx_coroutines_flow_FlowCollector$0_15 {
|
|
|
1393
1395
|
return tmp;
|
|
1394
1396
|
}
|
|
1395
1397
|
hashCode() {
|
|
1396
|
-
return hashCode(this.
|
|
1398
|
+
return hashCode(this.getFunctionDelegate_jtodtf_k$());
|
|
1397
1399
|
}
|
|
1398
1400
|
}
|
|
1399
1401
|
class AttoNodeClientAsync {
|
|
1400
1402
|
constructor(client, dispatcher) {
|
|
1401
1403
|
this.client = client;
|
|
1402
|
-
this.
|
|
1404
|
+
this.scope_1 = CoroutineScope(dispatcher.plus_s13ygv_k$(SupervisorJob()));
|
|
1403
1405
|
}
|
|
1404
|
-
|
|
1406
|
+
get_client_byfnx0_k$() {
|
|
1405
1407
|
return this.client;
|
|
1406
1408
|
}
|
|
1407
|
-
*
|
|
1408
|
-
return yield* this.client.
|
|
1409
|
+
*account_hxyys6_k$(publicKey, $completion) {
|
|
1410
|
+
return yield* this.client.account_hxyys6_k$(publicKey, $completion);
|
|
1409
1411
|
}
|
|
1410
1412
|
accountByPublicKey(publicKey) {
|
|
1411
|
-
return promisify(($completion) => this.
|
|
1413
|
+
return promisify(($completion) => this.account_hxyys6_k$(publicKey, $completion));
|
|
1412
1414
|
}
|
|
1413
|
-
*
|
|
1414
|
-
return this.accountByPublicKey === protoOf(AttoNodeClientAsync).accountByPublicKey ? (yield* this.
|
|
1415
|
+
*account$suspendBridge_r00cxj_k$(publicKey, $completion) {
|
|
1416
|
+
return this.accountByPublicKey === protoOf(AttoNodeClientAsync).accountByPublicKey ? (yield* this.account_hxyys6_k$(publicKey, $completion)) : (yield* await_0(this.accountByPublicKey(publicKey), $completion));
|
|
1415
1417
|
}
|
|
1416
|
-
*
|
|
1418
|
+
*account_p9y533_k$(addresses, $completion) {
|
|
1417
1419
|
// Inline function 'kotlin.collections.toTypedArray' call
|
|
1418
|
-
var this_0 = yield* this.client.
|
|
1420
|
+
var this_0 = yield* this.client.account_fuzzv6_k$(toList(addresses), $completion);
|
|
1419
1421
|
return copyToArray(this_0);
|
|
1420
1422
|
}
|
|
1421
1423
|
accountByAddresses(addresses) {
|
|
1422
|
-
return promisify(($completion) => this.
|
|
1424
|
+
return promisify(($completion) => this.account_p9y533_k$(addresses, $completion));
|
|
1423
1425
|
}
|
|
1424
|
-
*
|
|
1425
|
-
return this.accountByAddresses === protoOf(AttoNodeClientAsync).accountByAddresses ? (yield* this.
|
|
1426
|
+
*account$suspendBridge_48e03k_k$(addresses, $completion) {
|
|
1427
|
+
return this.accountByAddresses === protoOf(AttoNodeClientAsync).accountByAddresses ? (yield* this.account_p9y533_k$(addresses, $completion)) : (yield* await_0(this.accountByAddresses(addresses), $completion));
|
|
1426
1428
|
}
|
|
1427
1429
|
onAccountAll(onAccount, onCancel) {
|
|
1428
|
-
var tmp0 = this.
|
|
1429
|
-
var tmp2 = this.client.
|
|
1430
|
+
var tmp0 = this.scope_1;
|
|
1431
|
+
var tmp2 = this.client.accountStream_eda2gj_k$();
|
|
1430
1432
|
// Inline function 'cash.atto.commons.node.consumeStream' call
|
|
1431
1433
|
var onCancel_0 = AttoNodeClientAsync$onAccount$slambda(onCancel);
|
|
1432
1434
|
return toAttoJob(launch(tmp0, VOID, VOID, AttoNodeClientAsync$onAccount$slambda_0(tmp2, onCancel_0, onAccount)));
|
|
1433
1435
|
}
|
|
1434
1436
|
onAccountByPublicKey(publicKey, onAccount, onCancel) {
|
|
1435
|
-
var tmp0 = this.
|
|
1436
|
-
var tmp2 = this.client.
|
|
1437
|
+
var tmp0 = this.scope_1;
|
|
1438
|
+
var tmp2 = this.client.accountStream_qh0pd3_k$(publicKey);
|
|
1437
1439
|
// Inline function 'cash.atto.commons.node.consumeStream' call
|
|
1438
1440
|
var onCancel_0 = AttoNodeClientAsync$onAccount$slambda_1(onCancel);
|
|
1439
1441
|
return toAttoJob(launch(tmp0, VOID, VOID, AttoNodeClientAsync$onAccount$slambda_2(tmp2, onCancel_0, onAccount)));
|
|
1440
1442
|
}
|
|
1441
1443
|
onAccountByAddresses(addresses, onAccount, onCancel) {
|
|
1442
|
-
var tmp0 = this.
|
|
1443
|
-
var tmp2 = this.client.
|
|
1444
|
+
var tmp0 = this.scope_1;
|
|
1445
|
+
var tmp2 = this.client.accountStream_r36ir8_k$(toList(addresses));
|
|
1444
1446
|
// Inline function 'cash.atto.commons.node.consumeStream' call
|
|
1445
1447
|
var onCancel_0 = AttoNodeClientAsync$onAccount$slambda_3(onCancel);
|
|
1446
1448
|
return toAttoJob(launch(tmp0, VOID, VOID, AttoNodeClientAsync$onAccount$slambda_4(tmp2, onCancel_0, onAccount)));
|
|
1447
1449
|
}
|
|
1448
|
-
|
|
1449
|
-
var tmp0 = this.
|
|
1450
|
-
var tmp2 = this.client.
|
|
1450
|
+
onReceivable_qsef3e_k$(publicKey, minAmount, onReceivable, onCancel) {
|
|
1451
|
+
var tmp0 = this.scope_1;
|
|
1452
|
+
var tmp2 = this.client.receivableStream_2zol0b_k$(publicKey, minAmount);
|
|
1451
1453
|
// Inline function 'cash.atto.commons.node.consumeStream' call
|
|
1452
1454
|
var onCancel_0 = AttoNodeClientAsync$onReceivable$slambda(onCancel);
|
|
1453
1455
|
return toAttoJob(launch(tmp0, VOID, VOID, AttoNodeClientAsync$onReceivable$slambda_0(tmp2, onCancel_0, onReceivable)));
|
|
1454
1456
|
}
|
|
1455
1457
|
onReceivableByPublicKey(publicKey, minAmount, onReceivable, onCancel, $super) {
|
|
1456
1458
|
minAmount = minAmount === VOID ? new AttoAmount(_ULong___init__impl__c78o9k(1n)) : minAmount;
|
|
1457
|
-
return $super === VOID ? this.
|
|
1459
|
+
return $super === VOID ? this.onReceivable_qsef3e_k$(publicKey, minAmount, onReceivable, onCancel) : $super.onReceivable_qsef3e_k$.call(this, publicKey, minAmount, onReceivable, onCancel);
|
|
1458
1460
|
}
|
|
1459
|
-
|
|
1460
|
-
var tmp0 = this.
|
|
1461
|
-
var tmp2 = this.client.
|
|
1461
|
+
onReceivable_owwppe_k$(addresses, minAmount, onReceivable, onCancel) {
|
|
1462
|
+
var tmp0 = this.scope_1;
|
|
1463
|
+
var tmp2 = this.client.receivableStream_6h1uwi_k$(toList(addresses), minAmount);
|
|
1462
1464
|
// Inline function 'cash.atto.commons.node.consumeStream' call
|
|
1463
1465
|
var onCancel_0 = AttoNodeClientAsync$onReceivable$slambda_1(onCancel);
|
|
1464
1466
|
return toAttoJob(launch(tmp0, VOID, VOID, AttoNodeClientAsync$onReceivable$slambda_2(tmp2, onCancel_0, onReceivable)));
|
|
1465
1467
|
}
|
|
1466
1468
|
onReceivableByAddresses(addresses, minAmount, onReceivable, onCancel, $super) {
|
|
1467
1469
|
minAmount = minAmount === VOID ? new AttoAmount(_ULong___init__impl__c78o9k(1n)) : minAmount;
|
|
1468
|
-
return $super === VOID ? this.
|
|
1470
|
+
return $super === VOID ? this.onReceivable_owwppe_k$(addresses, minAmount, onReceivable, onCancel) : $super.onReceivable_owwppe_k$.call(this, addresses, minAmount, onReceivable, onCancel);
|
|
1469
1471
|
}
|
|
1470
|
-
*
|
|
1471
|
-
return yield* this.client.
|
|
1472
|
+
*accountEntry_c7nrq3_k$(hash, $completion) {
|
|
1473
|
+
return yield* this.client.accountEntry_c7nrq3_k$(hash, $completion);
|
|
1472
1474
|
}
|
|
1473
1475
|
accountEntry(hash) {
|
|
1474
|
-
return promisify(($completion) => this.
|
|
1476
|
+
return promisify(($completion) => this.accountEntry_c7nrq3_k$(hash, $completion));
|
|
1475
1477
|
}
|
|
1476
|
-
*
|
|
1477
|
-
return this.accountEntry === protoOf(AttoNodeClientAsync).accountEntry ? (yield* this.
|
|
1478
|
+
*accountEntry$suspendBridge_o450py_k$(hash, $completion) {
|
|
1479
|
+
return this.accountEntry === protoOf(AttoNodeClientAsync).accountEntry ? (yield* this.accountEntry_c7nrq3_k$(hash, $completion)) : (yield* await_0(this.accountEntry(hash), $completion));
|
|
1478
1480
|
}
|
|
1479
1481
|
onAccountEntryAll(onAccountEntry, onCancel) {
|
|
1480
|
-
var tmp0 = this.
|
|
1481
|
-
var tmp2 = this.client.
|
|
1482
|
+
var tmp0 = this.scope_1;
|
|
1483
|
+
var tmp2 = this.client.accountEntryStream_dngkdh_k$();
|
|
1482
1484
|
// Inline function 'cash.atto.commons.node.consumeStream' call
|
|
1483
1485
|
var onCancel_0 = AttoNodeClientAsync$onAccountEntry$slambda(onCancel);
|
|
1484
1486
|
return toAttoJob(launch(tmp0, VOID, VOID, AttoNodeClientAsync$onAccountEntry$slambda_0(tmp2, onCancel_0, onAccountEntry)));
|
|
1485
1487
|
}
|
|
1486
1488
|
onAccountEntryByHash(hash, onAccountEntry, onCancel) {
|
|
1487
|
-
var tmp0 = this.
|
|
1488
|
-
var tmp2 = this.client.
|
|
1489
|
+
var tmp0 = this.scope_1;
|
|
1490
|
+
var tmp2 = this.client.accountEntryStream_p9jutb_k$(hash);
|
|
1489
1491
|
// Inline function 'cash.atto.commons.node.consumeStream' call
|
|
1490
1492
|
var onCancel_0 = AttoNodeClientAsync$onAccountEntry$slambda_1(onCancel);
|
|
1491
1493
|
return toAttoJob(launch(tmp0, VOID, VOID, AttoNodeClientAsync$onAccountEntry$slambda_2(tmp2, onCancel_0, onAccountEntry)));
|
|
1492
1494
|
}
|
|
1493
|
-
|
|
1494
|
-
var tmp0 = this.
|
|
1495
|
-
var tmp2 = this.client.
|
|
1495
|
+
onAccountEntry_o2bd36_k$(publicKey, fromHeight, toHeight, onAccountEntry, onCancel) {
|
|
1496
|
+
var tmp0 = this.scope_1;
|
|
1497
|
+
var tmp2 = this.client.accountEntryStream_ophkg0_k$(publicKey, fromHeight, toHeight);
|
|
1496
1498
|
// Inline function 'cash.atto.commons.node.consumeStream' call
|
|
1497
1499
|
var onCancel_0 = AttoNodeClientAsync$onAccountEntry$slambda_3(onCancel);
|
|
1498
1500
|
return toAttoJob(launch(tmp0, VOID, VOID, AttoNodeClientAsync$onAccountEntry$slambda_4(tmp2, onCancel_0, onAccountEntry)));
|
|
@@ -1500,41 +1502,41 @@ class AttoNodeClientAsync {
|
|
|
1500
1502
|
onAccountEntryByPublicKey(publicKey, fromHeight, toHeight, onAccountEntry, onCancel, $super) {
|
|
1501
1503
|
fromHeight = fromHeight === VOID ? new AttoHeight(_ULong___init__impl__c78o9k(1n)) : fromHeight;
|
|
1502
1504
|
toHeight = toHeight === VOID ? null : toHeight;
|
|
1503
|
-
return $super === VOID ? this.
|
|
1505
|
+
return $super === VOID ? this.onAccountEntry_o2bd36_k$(publicKey, fromHeight, toHeight, onAccountEntry, onCancel) : $super.onAccountEntry_o2bd36_k$.call(this, publicKey, fromHeight, toHeight, onAccountEntry, onCancel);
|
|
1504
1506
|
}
|
|
1505
1507
|
onAccountEntryByHeightSearch(heightSearch, onAccountEntry, onCancel) {
|
|
1506
|
-
var tmp0 = this.
|
|
1507
|
-
var tmp2 = this.client.
|
|
1508
|
+
var tmp0 = this.scope_1;
|
|
1509
|
+
var tmp2 = this.client.accountEntryStream_mzedbn_k$(heightSearch);
|
|
1508
1510
|
// Inline function 'cash.atto.commons.node.consumeStream' call
|
|
1509
1511
|
var onCancel_0 = AttoNodeClientAsync$onAccountEntry$slambda_5(onCancel);
|
|
1510
1512
|
return toAttoJob(launch(tmp0, VOID, VOID, AttoNodeClientAsync$onAccountEntry$slambda_6(tmp2, onCancel_0, onAccountEntry)));
|
|
1511
1513
|
}
|
|
1512
|
-
*
|
|
1513
|
-
return yield* this.client.
|
|
1514
|
+
*transaction_6iit67_k$(hash, $completion) {
|
|
1515
|
+
return yield* this.client.transaction_6iit67_k$(hash, $completion);
|
|
1514
1516
|
}
|
|
1515
1517
|
transaction(hash) {
|
|
1516
|
-
return promisify(($completion) => this.
|
|
1518
|
+
return promisify(($completion) => this.transaction_6iit67_k$(hash, $completion));
|
|
1517
1519
|
}
|
|
1518
|
-
*
|
|
1519
|
-
return this.transaction === protoOf(AttoNodeClientAsync).transaction ? (yield* this.
|
|
1520
|
+
*transaction$suspendBridge_q8roy_k$(hash, $completion) {
|
|
1521
|
+
return this.transaction === protoOf(AttoNodeClientAsync).transaction ? (yield* this.transaction_6iit67_k$(hash, $completion)) : (yield* await_0(this.transaction(hash), $completion));
|
|
1520
1522
|
}
|
|
1521
1523
|
onTransactionAll(onTransaction, onCancel) {
|
|
1522
|
-
var tmp0 = this.
|
|
1523
|
-
var tmp2 = this.client.
|
|
1524
|
+
var tmp0 = this.scope_1;
|
|
1525
|
+
var tmp2 = this.client.transactionStream_stp4hu_k$();
|
|
1524
1526
|
// Inline function 'cash.atto.commons.node.consumeStream' call
|
|
1525
1527
|
var onCancel_0 = AttoNodeClientAsync$onTransaction$slambda(onCancel);
|
|
1526
1528
|
return toAttoJob(launch(tmp0, VOID, VOID, AttoNodeClientAsync$onTransaction$slambda_0(tmp2, onCancel_0, onTransaction)));
|
|
1527
1529
|
}
|
|
1528
1530
|
onTransactionByHash(hash, onTransaction, onCancel) {
|
|
1529
|
-
var tmp0 = this.
|
|
1530
|
-
var tmp2 = this.client.
|
|
1531
|
+
var tmp0 = this.scope_1;
|
|
1532
|
+
var tmp2 = this.client.transactionStream_lbxpp6_k$(hash);
|
|
1531
1533
|
// Inline function 'cash.atto.commons.node.consumeStream' call
|
|
1532
1534
|
var onCancel_0 = AttoNodeClientAsync$onTransaction$slambda_1(onCancel);
|
|
1533
1535
|
return toAttoJob(launch(tmp0, VOID, VOID, AttoNodeClientAsync$onTransaction$slambda_2(tmp2, onCancel_0, onTransaction)));
|
|
1534
1536
|
}
|
|
1535
|
-
|
|
1536
|
-
var tmp0 = this.
|
|
1537
|
-
var tmp2 = this.client.
|
|
1537
|
+
onTransaction_jtoibu_k$(publicKey, fromHeight, toHeight, onTransaction, onCancel) {
|
|
1538
|
+
var tmp0 = this.scope_1;
|
|
1539
|
+
var tmp2 = this.client.transactionStream_22ce8p_k$(publicKey, fromHeight, toHeight);
|
|
1538
1540
|
// Inline function 'cash.atto.commons.node.consumeStream' call
|
|
1539
1541
|
var onCancel_0 = AttoNodeClientAsync$onTransaction$slambda_3(onCancel);
|
|
1540
1542
|
return toAttoJob(launch(tmp0, VOID, VOID, AttoNodeClientAsync$onTransaction$slambda_4(tmp2, onCancel_0, onTransaction)));
|
|
@@ -1542,66 +1544,66 @@ class AttoNodeClientAsync {
|
|
|
1542
1544
|
onTransactionByPublicKey(publicKey, fromHeight, toHeight, onTransaction, onCancel, $super) {
|
|
1543
1545
|
fromHeight = fromHeight === VOID ? new AttoHeight(_ULong___init__impl__c78o9k(1n)) : fromHeight;
|
|
1544
1546
|
toHeight = toHeight === VOID ? null : toHeight;
|
|
1545
|
-
return $super === VOID ? this.
|
|
1547
|
+
return $super === VOID ? this.onTransaction_jtoibu_k$(publicKey, fromHeight, toHeight, onTransaction, onCancel) : $super.onTransaction_jtoibu_k$.call(this, publicKey, fromHeight, toHeight, onTransaction, onCancel);
|
|
1546
1548
|
}
|
|
1547
1549
|
onTransactionByHeightSearch(heightSearch, onTransaction, onCancel) {
|
|
1548
|
-
var tmp0 = this.
|
|
1549
|
-
var tmp2 = this.client.
|
|
1550
|
+
var tmp0 = this.scope_1;
|
|
1551
|
+
var tmp2 = this.client.transactionStream_kkux3o_k$(heightSearch);
|
|
1550
1552
|
// Inline function 'cash.atto.commons.node.consumeStream' call
|
|
1551
1553
|
var onCancel_0 = AttoNodeClientAsync$onTransaction$slambda_5(onCancel);
|
|
1552
1554
|
return toAttoJob(launch(tmp0, VOID, VOID, AttoNodeClientAsync$onTransaction$slambda_6(tmp2, onCancel_0, onTransaction)));
|
|
1553
1555
|
}
|
|
1554
|
-
*
|
|
1555
|
-
return yield* this.client.
|
|
1556
|
+
*now_w0py8m_k$($completion) {
|
|
1557
|
+
return yield* this.client.now_w0py8m_k$($completion);
|
|
1556
1558
|
}
|
|
1557
1559
|
now() {
|
|
1558
|
-
return promisify(($completion) => this.
|
|
1560
|
+
return promisify(($completion) => this.now_w0py8m_k$($completion));
|
|
1559
1561
|
}
|
|
1560
|
-
*
|
|
1561
|
-
return this.now === protoOf(AttoNodeClientAsync).now ? (yield* this.
|
|
1562
|
+
*now$suspendBridge_u1ejnv_k$($completion) {
|
|
1563
|
+
return this.now === protoOf(AttoNodeClientAsync).now ? (yield* this.now_w0py8m_k$($completion)) : (yield* await_0(this.now(), $completion));
|
|
1562
1564
|
}
|
|
1563
|
-
*
|
|
1564
|
-
return yield* this.client.
|
|
1565
|
+
*publish_wwl4rr_k$(transaction, $completion) {
|
|
1566
|
+
return yield* this.client.publish_wwl4rr_k$(transaction, $completion);
|
|
1565
1567
|
}
|
|
1566
1568
|
publish(transaction) {
|
|
1567
|
-
return promisify(($completion) => this.
|
|
1569
|
+
return promisify(($completion) => this.publish_wwl4rr_k$(transaction, $completion));
|
|
1568
1570
|
}
|
|
1569
|
-
*
|
|
1571
|
+
*publish$suspendBridge_olv2dk_k$(transaction, $completion) {
|
|
1570
1572
|
if (this.publish === protoOf(AttoNodeClientAsync).publish)
|
|
1571
|
-
yield* this.
|
|
1573
|
+
yield* this.publish_wwl4rr_k$(transaction, $completion);
|
|
1572
1574
|
else
|
|
1573
1575
|
yield* await_0(this.publish(transaction), $completion);
|
|
1574
1576
|
return Unit_instance;
|
|
1575
1577
|
}
|
|
1576
|
-
*
|
|
1577
|
-
return yield* this.client.
|
|
1578
|
+
*voterWeight_wy92tf_k$(address, $completion) {
|
|
1579
|
+
return yield* this.client.voterWeight_wy92tf_k$(address, $completion);
|
|
1578
1580
|
}
|
|
1579
1581
|
voterWeight(address) {
|
|
1580
|
-
return promisify(($completion) => this.
|
|
1582
|
+
return promisify(($completion) => this.voterWeight_wy92tf_k$(address, $completion));
|
|
1581
1583
|
}
|
|
1582
|
-
*
|
|
1583
|
-
return this.voterWeight === protoOf(AttoNodeClientAsync).voterWeight ? (yield* this.
|
|
1584
|
+
*voterWeight$suspendBridge_hny8lg_k$(address, $completion) {
|
|
1585
|
+
return this.voterWeight === protoOf(AttoNodeClientAsync).voterWeight ? (yield* this.voterWeight_wy92tf_k$(address, $completion)) : (yield* await_0(this.voterWeight(address), $completion));
|
|
1584
1586
|
}
|
|
1585
|
-
|
|
1586
|
-
cancel(this.
|
|
1587
|
+
close_yn9xrc_k$() {
|
|
1588
|
+
cancel(this.scope_1);
|
|
1587
1589
|
}
|
|
1588
1590
|
}
|
|
1589
1591
|
class sam$kotlinx_coroutines_flow_FlowCollector$0_16 {
|
|
1590
1592
|
constructor(function_0) {
|
|
1591
|
-
this.
|
|
1593
|
+
this.function_1 = function_0;
|
|
1592
1594
|
}
|
|
1593
|
-
*
|
|
1594
|
-
return yield* this.
|
|
1595
|
+
*emit_t92u1f_k$(value, $completion) {
|
|
1596
|
+
return yield* $(this.function_1(value, $completion), $completion);
|
|
1595
1597
|
}
|
|
1596
|
-
|
|
1597
|
-
return this.
|
|
1598
|
+
getFunctionDelegate_jtodtf_k$() {
|
|
1599
|
+
return this.function_1;
|
|
1598
1600
|
}
|
|
1599
1601
|
equals(other) {
|
|
1600
1602
|
var tmp;
|
|
1601
1603
|
if (!(other == null) ? isInterface(other, FlowCollector) : false) {
|
|
1602
1604
|
var tmp_0;
|
|
1603
1605
|
if (!(other == null) ? isInterface(other, FunctionAdapter) : false) {
|
|
1604
|
-
tmp_0 = equals(this.
|
|
1606
|
+
tmp_0 = equals(this.getFunctionDelegate_jtodtf_k$(), other.getFunctionDelegate_jtodtf_k$());
|
|
1605
1607
|
} else {
|
|
1606
1608
|
tmp_0 = false;
|
|
1607
1609
|
}
|
|
@@ -1612,44 +1614,44 @@ class sam$kotlinx_coroutines_flow_FlowCollector$0_16 {
|
|
|
1612
1614
|
return tmp;
|
|
1613
1615
|
}
|
|
1614
1616
|
hashCode() {
|
|
1615
|
-
return hashCode(this.
|
|
1617
|
+
return hashCode(this.getFunctionDelegate_jtodtf_k$());
|
|
1616
1618
|
}
|
|
1617
1619
|
}
|
|
1618
1620
|
class AttoAccountEntryMonitorAsync {
|
|
1619
1621
|
constructor(accountEntryMonitor, dispatcher) {
|
|
1620
1622
|
this.accountEntryMonitor = accountEntryMonitor;
|
|
1621
|
-
this.
|
|
1623
|
+
this.scope_1 = CoroutineScope(dispatcher.plus_s13ygv_k$(SupervisorJob()));
|
|
1622
1624
|
}
|
|
1623
|
-
|
|
1625
|
+
get_accountEntryMonitor_jh3j70_k$() {
|
|
1624
1626
|
return this.accountEntryMonitor;
|
|
1625
1627
|
}
|
|
1626
1628
|
onAccountEntry(onAccountEntry, onCancel) {
|
|
1627
|
-
var tmp0 = this.
|
|
1628
|
-
var tmp2 = this.accountEntryMonitor.
|
|
1629
|
+
var tmp0 = this.scope_1;
|
|
1630
|
+
var tmp2 = this.accountEntryMonitor.stream_er2g00_k$();
|
|
1629
1631
|
// Inline function 'cash.atto.commons.node.consumeStream' call
|
|
1630
1632
|
var onCancel_0 = AttoAccountEntryMonitorAsync$onAccountEntry$slambda(onCancel);
|
|
1631
1633
|
return toAttoJob(launch(tmp0, VOID, VOID, AttoAccountEntryMonitorAsync$onAccountEntry$slambda_0(tmp2, onCancel_0, onAccountEntry)));
|
|
1632
1634
|
}
|
|
1633
|
-
|
|
1634
|
-
cancel(this.
|
|
1635
|
+
close_yn9xrc_k$() {
|
|
1636
|
+
cancel(this.scope_1);
|
|
1635
1637
|
}
|
|
1636
1638
|
}
|
|
1637
1639
|
class sam$kotlinx_coroutines_flow_FlowCollector$0_17 {
|
|
1638
1640
|
constructor(function_0) {
|
|
1639
|
-
this.
|
|
1641
|
+
this.function_1 = function_0;
|
|
1640
1642
|
}
|
|
1641
|
-
*
|
|
1642
|
-
return yield* this.
|
|
1643
|
+
*emit_t92u1f_k$(value, $completion) {
|
|
1644
|
+
return yield* $(this.function_1(value, $completion), $completion);
|
|
1643
1645
|
}
|
|
1644
|
-
|
|
1645
|
-
return this.
|
|
1646
|
+
getFunctionDelegate_jtodtf_k$() {
|
|
1647
|
+
return this.function_1;
|
|
1646
1648
|
}
|
|
1647
1649
|
equals(other) {
|
|
1648
1650
|
var tmp;
|
|
1649
1651
|
if (!(other == null) ? isInterface(other, FlowCollector) : false) {
|
|
1650
1652
|
var tmp_0;
|
|
1651
1653
|
if (!(other == null) ? isInterface(other, FunctionAdapter) : false) {
|
|
1652
|
-
tmp_0 = equals(this.
|
|
1654
|
+
tmp_0 = equals(this.getFunctionDelegate_jtodtf_k$(), other.getFunctionDelegate_jtodtf_k$());
|
|
1653
1655
|
} else {
|
|
1654
1656
|
tmp_0 = false;
|
|
1655
1657
|
}
|
|
@@ -1660,25 +1662,25 @@ class sam$kotlinx_coroutines_flow_FlowCollector$0_17 {
|
|
|
1660
1662
|
return tmp;
|
|
1661
1663
|
}
|
|
1662
1664
|
hashCode() {
|
|
1663
|
-
return hashCode(this.
|
|
1665
|
+
return hashCode(this.getFunctionDelegate_jtodtf_k$());
|
|
1664
1666
|
}
|
|
1665
1667
|
}
|
|
1666
1668
|
class sam$kotlinx_coroutines_flow_FlowCollector$0_18 {
|
|
1667
1669
|
constructor(function_0) {
|
|
1668
|
-
this.
|
|
1670
|
+
this.function_1 = function_0;
|
|
1669
1671
|
}
|
|
1670
|
-
*
|
|
1671
|
-
return yield* this.
|
|
1672
|
+
*emit_t92u1f_k$(value, $completion) {
|
|
1673
|
+
return yield* $(this.function_1(value, $completion), $completion);
|
|
1672
1674
|
}
|
|
1673
|
-
|
|
1674
|
-
return this.
|
|
1675
|
+
getFunctionDelegate_jtodtf_k$() {
|
|
1676
|
+
return this.function_1;
|
|
1675
1677
|
}
|
|
1676
1678
|
equals(other) {
|
|
1677
1679
|
var tmp;
|
|
1678
1680
|
if (!(other == null) ? isInterface(other, FlowCollector) : false) {
|
|
1679
1681
|
var tmp_0;
|
|
1680
1682
|
if (!(other == null) ? isInterface(other, FunctionAdapter) : false) {
|
|
1681
|
-
tmp_0 = equals(this.
|
|
1683
|
+
tmp_0 = equals(this.getFunctionDelegate_jtodtf_k$(), other.getFunctionDelegate_jtodtf_k$());
|
|
1682
1684
|
} else {
|
|
1683
1685
|
tmp_0 = false;
|
|
1684
1686
|
}
|
|
@@ -1689,101 +1691,101 @@ class sam$kotlinx_coroutines_flow_FlowCollector$0_18 {
|
|
|
1689
1691
|
return tmp;
|
|
1690
1692
|
}
|
|
1691
1693
|
hashCode() {
|
|
1692
|
-
return hashCode(this.
|
|
1694
|
+
return hashCode(this.getFunctionDelegate_jtodtf_k$());
|
|
1693
1695
|
}
|
|
1694
1696
|
}
|
|
1695
1697
|
class AttoAccountMonitorAsync {
|
|
1696
1698
|
constructor(accountMonitor, dispatcher) {
|
|
1697
1699
|
this.accountMonitor = accountMonitor;
|
|
1698
|
-
this.
|
|
1700
|
+
this.scope_1 = CoroutineScope(dispatcher.plus_s13ygv_k$(SupervisorJob()));
|
|
1699
1701
|
}
|
|
1700
|
-
|
|
1702
|
+
get_accountMonitor_5cmvm2_k$() {
|
|
1701
1703
|
return this.accountMonitor;
|
|
1702
1704
|
}
|
|
1703
|
-
*
|
|
1704
|
-
return yield* this.accountMonitor.
|
|
1705
|
+
*monitor_3gtyjn_k$(addresses, $completion) {
|
|
1706
|
+
return yield* this.accountMonitor.monitor_goxoh4_k$(toList(addresses), $completion);
|
|
1705
1707
|
}
|
|
1706
1708
|
monitorAddressArray(addresses) {
|
|
1707
|
-
return promisify(($completion) => this.
|
|
1709
|
+
return promisify(($completion) => this.monitor_3gtyjn_k$(addresses, $completion));
|
|
1708
1710
|
}
|
|
1709
|
-
*
|
|
1711
|
+
*monitor$suspendBridge_hkpgws_k$(addresses, $completion) {
|
|
1710
1712
|
if (this.monitorAddressArray === protoOf(AttoAccountMonitorAsync).monitorAddressArray)
|
|
1711
|
-
yield* this.
|
|
1713
|
+
yield* this.monitor_3gtyjn_k$(addresses, $completion);
|
|
1712
1714
|
else
|
|
1713
1715
|
yield* await_0(this.monitorAddressArray(addresses), $completion);
|
|
1714
1716
|
return Unit_instance;
|
|
1715
1717
|
}
|
|
1716
|
-
*
|
|
1717
|
-
return yield* this.accountMonitor.
|
|
1718
|
+
*monitor_8pxf55_k$(address, $completion) {
|
|
1719
|
+
return yield* this.accountMonitor.monitor_8pxf55_k$(address, $completion);
|
|
1718
1720
|
}
|
|
1719
1721
|
monitorAddress(address) {
|
|
1720
|
-
return promisify(($completion) => this.
|
|
1722
|
+
return promisify(($completion) => this.monitor_8pxf55_k$(address, $completion));
|
|
1721
1723
|
}
|
|
1722
|
-
*
|
|
1724
|
+
*monitor$suspendBridge_sgifrq_k$(address, $completion) {
|
|
1723
1725
|
if (this.monitorAddress === protoOf(AttoAccountMonitorAsync).monitorAddress)
|
|
1724
|
-
yield* this.
|
|
1726
|
+
yield* this.monitor_8pxf55_k$(address, $completion);
|
|
1725
1727
|
else
|
|
1726
1728
|
yield* await_0(this.monitorAddress(address), $completion);
|
|
1727
1729
|
return Unit_instance;
|
|
1728
1730
|
}
|
|
1729
|
-
*
|
|
1731
|
+
*getAccounts_dlvupo_k$($completion) {
|
|
1730
1732
|
// Inline function 'kotlin.collections.toTypedArray' call
|
|
1731
|
-
var this_0 = yield* this.accountMonitor.
|
|
1733
|
+
var this_0 = yield* this.accountMonitor.getAccounts_3ofxvm_k$($completion);
|
|
1732
1734
|
return copyToArray(this_0);
|
|
1733
1735
|
}
|
|
1734
1736
|
getAccounts() {
|
|
1735
|
-
return promisify(($completion) => this.
|
|
1737
|
+
return promisify(($completion) => this.getAccounts_dlvupo_k$($completion));
|
|
1736
1738
|
}
|
|
1737
|
-
*
|
|
1738
|
-
return this.getAccounts === protoOf(AttoAccountMonitorAsync).getAccounts ? (yield* this.
|
|
1739
|
+
*getAccounts$suspendBridge_f3hw83_k$($completion) {
|
|
1740
|
+
return this.getAccounts === protoOf(AttoAccountMonitorAsync).getAccounts ? (yield* this.getAccounts_dlvupo_k$($completion)) : (yield* await_0(this.getAccounts(), $completion));
|
|
1739
1741
|
}
|
|
1740
1742
|
onAccount(onAccount, onCancel) {
|
|
1741
|
-
var tmp0 = this.
|
|
1742
|
-
var tmp2 = this.accountMonitor.
|
|
1743
|
+
var tmp0 = this.scope_1;
|
|
1744
|
+
var tmp2 = this.accountMonitor.accountStream_eda2gj_k$();
|
|
1743
1745
|
// Inline function 'cash.atto.commons.node.consumeStream' call
|
|
1744
1746
|
var onCancel_0 = AttoAccountMonitorAsync$onAccount$slambda(onCancel);
|
|
1745
1747
|
return toAttoJob(launch(tmp0, VOID, VOID, AttoAccountMonitorAsync$onAccount$slambda_0(tmp2, onCancel_0, onAccount)));
|
|
1746
1748
|
}
|
|
1747
|
-
|
|
1748
|
-
var tmp0 = this.
|
|
1749
|
-
var tmp2 = this.accountMonitor.
|
|
1749
|
+
onReceivable_qw94wq_k$(minAmount, onReceivable, onCancel) {
|
|
1750
|
+
var tmp0 = this.scope_1;
|
|
1751
|
+
var tmp2 = this.accountMonitor.receivableStream_vjfpcd_k$(minAmount);
|
|
1750
1752
|
// Inline function 'cash.atto.commons.node.consumeStream' call
|
|
1751
1753
|
var onCancel_0 = AttoAccountMonitorAsync$onReceivable$slambda(onCancel);
|
|
1752
1754
|
return toAttoJob(launch(tmp0, VOID, VOID, AttoAccountMonitorAsync$onReceivable$slambda_0(tmp2, onCancel_0, onReceivable)));
|
|
1753
1755
|
}
|
|
1754
1756
|
onReceivable(minAmount, onReceivable, onCancel, $super) {
|
|
1755
|
-
minAmount = minAmount === VOID ? Companion_getInstance_5().
|
|
1756
|
-
return $super === VOID ? this.
|
|
1757
|
+
minAmount = minAmount === VOID ? Companion_getInstance_5().MIN_1 : minAmount;
|
|
1758
|
+
return $super === VOID ? this.onReceivable_qw94wq_k$(minAmount, onReceivable, onCancel) : $super.onReceivable_qw94wq_k$.call(this, minAmount, onReceivable, onCancel);
|
|
1757
1759
|
}
|
|
1758
|
-
|
|
1759
|
-
cancel(this.
|
|
1760
|
+
close_yn9xrc_k$() {
|
|
1761
|
+
cancel(this.scope_1);
|
|
1760
1762
|
}
|
|
1761
1763
|
}
|
|
1762
1764
|
class AttoAccountMonitorAsyncBuilder {
|
|
1763
1765
|
constructor(nodeClient) {
|
|
1764
|
-
this.
|
|
1766
|
+
this.nodeClient_1 = nodeClient;
|
|
1765
1767
|
}
|
|
1766
1768
|
build() {
|
|
1767
|
-
var monitor = createAccountMonitor(this.
|
|
1768
|
-
return new AttoAccountMonitorAsync(monitor, Dispatchers_getInstance().
|
|
1769
|
+
var monitor = createAccountMonitor(this.nodeClient_1.client);
|
|
1770
|
+
return new AttoAccountMonitorAsync(monitor, Dispatchers_getInstance().Default_1);
|
|
1769
1771
|
}
|
|
1770
1772
|
}
|
|
1771
1773
|
class sam$kotlinx_coroutines_flow_FlowCollector$0_19 {
|
|
1772
1774
|
constructor(function_0) {
|
|
1773
|
-
this.
|
|
1775
|
+
this.function_1 = function_0;
|
|
1774
1776
|
}
|
|
1775
|
-
*
|
|
1776
|
-
return yield* this.
|
|
1777
|
+
*emit_t92u1f_k$(value, $completion) {
|
|
1778
|
+
return yield* $(this.function_1(value, $completion), $completion);
|
|
1777
1779
|
}
|
|
1778
|
-
|
|
1779
|
-
return this.
|
|
1780
|
+
getFunctionDelegate_jtodtf_k$() {
|
|
1781
|
+
return this.function_1;
|
|
1780
1782
|
}
|
|
1781
1783
|
equals(other) {
|
|
1782
1784
|
var tmp;
|
|
1783
1785
|
if (!(other == null) ? isInterface(other, FlowCollector) : false) {
|
|
1784
1786
|
var tmp_0;
|
|
1785
1787
|
if (!(other == null) ? isInterface(other, FunctionAdapter) : false) {
|
|
1786
|
-
tmp_0 = equals(this.
|
|
1788
|
+
tmp_0 = equals(this.getFunctionDelegate_jtodtf_k$(), other.getFunctionDelegate_jtodtf_k$());
|
|
1787
1789
|
} else {
|
|
1788
1790
|
tmp_0 = false;
|
|
1789
1791
|
}
|
|
@@ -1794,26 +1796,26 @@ class sam$kotlinx_coroutines_flow_FlowCollector$0_19 {
|
|
|
1794
1796
|
return tmp;
|
|
1795
1797
|
}
|
|
1796
1798
|
hashCode() {
|
|
1797
|
-
return hashCode(this.
|
|
1799
|
+
return hashCode(this.getFunctionDelegate_jtodtf_k$());
|
|
1798
1800
|
}
|
|
1799
1801
|
}
|
|
1800
1802
|
class AttoTransactionMonitorAsync {
|
|
1801
1803
|
constructor(transactionMonitor, dispatcher) {
|
|
1802
1804
|
this.transactionMonitor = transactionMonitor;
|
|
1803
|
-
this.
|
|
1805
|
+
this.scope_1 = CoroutineScope(dispatcher.plus_s13ygv_k$(SupervisorJob()));
|
|
1804
1806
|
}
|
|
1805
|
-
|
|
1807
|
+
get_transactionMonitor_y3ume3_k$() {
|
|
1806
1808
|
return this.transactionMonitor;
|
|
1807
1809
|
}
|
|
1808
1810
|
onTransaction(onTransaction, onCancel) {
|
|
1809
|
-
var tmp0 = this.
|
|
1810
|
-
var tmp2 = this.transactionMonitor.
|
|
1811
|
+
var tmp0 = this.scope_1;
|
|
1812
|
+
var tmp2 = this.transactionMonitor.stream_er2g00_k$();
|
|
1811
1813
|
// Inline function 'cash.atto.commons.node.consumeStream' call
|
|
1812
1814
|
var onCancel_0 = AttoTransactionMonitorAsync$onTransaction$slambda(onCancel);
|
|
1813
1815
|
return toAttoJob(launch(tmp0, VOID, VOID, AttoTransactionMonitorAsync$onTransaction$slambda_0(tmp2, onCancel_0, onTransaction)));
|
|
1814
1816
|
}
|
|
1815
|
-
|
|
1816
|
-
cancel(this.
|
|
1817
|
+
close_yn9xrc_k$() {
|
|
1818
|
+
cancel(this.scope_1);
|
|
1817
1819
|
}
|
|
1818
1820
|
}
|
|
1819
1821
|
//endregion
|
|
@@ -1873,70 +1875,70 @@ function $serializer_getInstance_2() {
|
|
|
1873
1875
|
}
|
|
1874
1876
|
function requireMatchingPublish(submitted, accepted) {
|
|
1875
1877
|
if (!accepted.hash.equals(submitted.hash)) {
|
|
1876
|
-
throw AttoNodePublishMismatchException.
|
|
1878
|
+
throw AttoNodePublishMismatchException.new_cash_atto_commons_node_AttoNodePublishMismatchException_2rucak_k$(submitted.hash, accepted.hash);
|
|
1877
1879
|
}
|
|
1878
1880
|
}
|
|
1879
1881
|
function accountToJson(_this__u8e3s4) {
|
|
1880
1882
|
return _this__u8e3s4.toJson();
|
|
1881
1883
|
}
|
|
1882
1884
|
function accountFromJson(_this__u8e3s4) {
|
|
1883
|
-
return Companion_getInstance_1().
|
|
1885
|
+
return Companion_getInstance_1().fromJson_nda4qw_k$(_this__u8e3s4);
|
|
1884
1886
|
}
|
|
1885
1887
|
function receivableToJson(_this__u8e3s4) {
|
|
1886
1888
|
return _this__u8e3s4.toJson();
|
|
1887
1889
|
}
|
|
1888
1890
|
function receivableFromJson(_this__u8e3s4) {
|
|
1889
|
-
return Companion_getInstance_2().
|
|
1891
|
+
return Companion_getInstance_2().fromJson_nda4qw_k$(_this__u8e3s4);
|
|
1890
1892
|
}
|
|
1891
1893
|
function transactionToJson(_this__u8e3s4) {
|
|
1892
1894
|
return _this__u8e3s4.toJson();
|
|
1893
1895
|
}
|
|
1894
1896
|
function transactionFromJson(_this__u8e3s4) {
|
|
1895
|
-
return Companion_getInstance_3().
|
|
1897
|
+
return Companion_getInstance_3().fromJson_nda4qw_k$(_this__u8e3s4);
|
|
1896
1898
|
}
|
|
1897
1899
|
function blockToJson(_this__u8e3s4) {
|
|
1898
1900
|
return _this__u8e3s4.toJson();
|
|
1899
1901
|
}
|
|
1900
1902
|
function blockFromJson(_this__u8e3s4) {
|
|
1901
|
-
return Companion_instance_0.
|
|
1903
|
+
return Companion_instance_0.fromJson_nda4qw_k$(_this__u8e3s4);
|
|
1902
1904
|
}
|
|
1903
1905
|
function accountEntryToJson(_this__u8e3s4) {
|
|
1904
1906
|
return _this__u8e3s4.toJson();
|
|
1905
1907
|
}
|
|
1906
1908
|
function accountEntryFromJson(_this__u8e3s4) {
|
|
1907
|
-
return Companion_getInstance_4().
|
|
1909
|
+
return Companion_getInstance_4().fromJson_nda4qw_k$(_this__u8e3s4);
|
|
1908
1910
|
}
|
|
1909
1911
|
function fromByteArrayToTransactionJson(_this__u8e3s4) {
|
|
1910
|
-
return Companion_getInstance_3().
|
|
1912
|
+
return Companion_getInstance_3().fromByteArray_d3r0u1_k$(_this__u8e3s4).toJson();
|
|
1911
1913
|
}
|
|
1912
1914
|
function fromByteArrayToBlockJson(_this__u8e3s4) {
|
|
1913
|
-
return Companion_instance_0.
|
|
1915
|
+
return Companion_instance_0.fromByteArray_d3r0u1_k$(_this__u8e3s4).toJson();
|
|
1914
1916
|
}
|
|
1915
1917
|
function toAttoJob(_this__u8e3s4) {
|
|
1916
1918
|
var tmp = Companion_instance_1;
|
|
1917
1919
|
var tmp_0 = toAttoJob$lambda(_this__u8e3s4);
|
|
1918
1920
|
var tmp_1 = toAttoJob$lambda_0(_this__u8e3s4);
|
|
1919
|
-
return tmp.
|
|
1921
|
+
return tmp.create_qnhr6z_k$(tmp_0, tmp_1, toAttoJob$slambda(_this__u8e3s4));
|
|
1920
1922
|
}
|
|
1921
1923
|
function toAttoJob$lambda($this_toAttoJob) {
|
|
1922
|
-
return () => $this_toAttoJob.
|
|
1924
|
+
return () => $this_toAttoJob.get_isActive_quafmh_k$();
|
|
1923
1925
|
}
|
|
1924
1926
|
function toAttoJob$lambda_0($this_toAttoJob) {
|
|
1925
1927
|
return () => {
|
|
1926
|
-
$this_toAttoJob.
|
|
1928
|
+
$this_toAttoJob.cancel$default_8haxne_k$();
|
|
1927
1929
|
return Unit_instance;
|
|
1928
1930
|
};
|
|
1929
1931
|
}
|
|
1930
1932
|
function toAttoJob$slambda($this_toAttoJob) {
|
|
1931
|
-
return constructCallableReference(function *($completion) {
|
|
1933
|
+
return constructCallableReference(($completion) => orPromise($completion, function *($completion) {
|
|
1932
1934
|
yield* cancelAndJoin($this_toAttoJob, $completion);
|
|
1933
1935
|
return Unit_instance;
|
|
1934
|
-
}, 0);
|
|
1936
|
+
}), 0);
|
|
1935
1937
|
}
|
|
1936
1938
|
function AttoAccountEntryMonitor$_init_$slambda_eql76t() {
|
|
1937
|
-
return constructCallableReference(
|
|
1938
|
-
return Companion_getInstance_0().
|
|
1939
|
-
}, 1);
|
|
1939
|
+
return constructCallableReference((it, $completion) => orPromise($completion, function *($completion) {
|
|
1940
|
+
return Companion_getInstance_0().MIN_1;
|
|
1941
|
+
}), 1);
|
|
1940
1942
|
}
|
|
1941
1943
|
function get_logger() {
|
|
1942
1944
|
_init_properties_AttoAccountMonitor_kt__rloq05();
|
|
@@ -1949,76 +1951,80 @@ function get_RETRY_DELAY() {
|
|
|
1949
1951
|
}
|
|
1950
1952
|
var RETRY_DELAY;
|
|
1951
1953
|
function AttoAccountMonitor$accountStream$slambda$o$collect$slambda($$this$unsafeFlow, $addresses) {
|
|
1952
|
-
return constructCallableReference(
|
|
1954
|
+
return constructCallableReference((value, $completion) => orPromise($completion, function *($completion) {
|
|
1953
1955
|
var tmp0 = $$this$unsafeFlow;
|
|
1956
|
+
var tmp2 = value;
|
|
1954
1957
|
$l$block: {
|
|
1955
|
-
if ($addresses.
|
|
1956
|
-
yield* tmp0.
|
|
1958
|
+
if ($addresses.contains_aljjnj_k$(tmp2.address)) {
|
|
1959
|
+
yield* tmp0.emit_t92u1f_k$(tmp2, $completion);
|
|
1957
1960
|
break $l$block;
|
|
1958
1961
|
}
|
|
1959
1962
|
}
|
|
1960
1963
|
return Unit_instance;
|
|
1961
|
-
}, 1);
|
|
1964
|
+
}), 1);
|
|
1962
1965
|
}
|
|
1963
1966
|
function AttoAccountMonitor$receivableStream$slambda$o$collect$slambda($$this$unsafeFlow, $addresses) {
|
|
1964
|
-
return constructCallableReference(
|
|
1967
|
+
return constructCallableReference((value, $completion) => orPromise($completion, function *($completion) {
|
|
1965
1968
|
var tmp0 = $$this$unsafeFlow;
|
|
1969
|
+
var tmp2 = value;
|
|
1966
1970
|
$l$block: {
|
|
1967
|
-
if ($addresses.
|
|
1968
|
-
yield* tmp0.
|
|
1971
|
+
if ($addresses.contains_aljjnj_k$(tmp2.receiverAddress)) {
|
|
1972
|
+
yield* tmp0.emit_t92u1f_k$(tmp2, $completion);
|
|
1969
1973
|
break $l$block;
|
|
1970
1974
|
}
|
|
1971
1975
|
}
|
|
1972
1976
|
return Unit_instance;
|
|
1973
|
-
}, 1);
|
|
1977
|
+
}), 1);
|
|
1974
1978
|
}
|
|
1975
1979
|
function AttoAccountMonitor$accountStream$slambda$slambda$lambda() {
|
|
1976
1980
|
return 'Failed to stream accounts. Retrying in ' + Duration__toString_impl_8d916b(get_RETRY_DELAY()) + '...';
|
|
1977
1981
|
}
|
|
1978
1982
|
function AttoAccountMonitor$accountStream$slambda$slambda() {
|
|
1979
|
-
return constructCallableReference(
|
|
1983
|
+
return constructCallableReference(($this$retryWhen, e, _unused_var__etf5q3, $completion) => orPromise($completion, function *($completion) {
|
|
1980
1984
|
var tmp = get_logger();
|
|
1981
|
-
tmp.
|
|
1985
|
+
tmp.warn_rz80ae_k$(e, AttoAccountMonitor$accountStream$slambda$slambda$lambda);
|
|
1982
1986
|
yield* delay(get_RETRY_DELAY(), $completion);
|
|
1983
1987
|
return true;
|
|
1984
|
-
}, 3);
|
|
1988
|
+
}), 3);
|
|
1985
1989
|
}
|
|
1986
1990
|
function AttoAccountMonitor$accountStream$slambda(this$0) {
|
|
1987
|
-
return constructCallableReference(
|
|
1991
|
+
return constructCallableReference(($this$transformLatest, it, $completion) => orPromise($completion, function *($completion) {
|
|
1992
|
+
var tmp0 = it;
|
|
1988
1993
|
var tmp$ret$0;
|
|
1989
1994
|
$l$block: {
|
|
1990
|
-
if (
|
|
1995
|
+
if (tmp0.isEmpty_y1axqb_k$()) {
|
|
1991
1996
|
tmp$ret$0 = emptyFlow();
|
|
1992
1997
|
break $l$block;
|
|
1993
1998
|
}
|
|
1994
1999
|
// Inline function 'kotlinx.coroutines.flow.filter' call
|
|
1995
2000
|
// Inline function 'kotlinx.coroutines.flow.unsafeTransform' call
|
|
1996
|
-
var this_0 = this$0.
|
|
2001
|
+
var this_0 = this$0.client_1.accountStream_r36ir8_k$(tmp0);
|
|
1997
2002
|
// Inline function 'kotlinx.coroutines.flow.internal.unsafeFlow' call
|
|
1998
|
-
var ownedAccounts = new AttoAccountMonitor$accountStream$$inlined$flatMapLatest$1$1(this_0,
|
|
2003
|
+
var ownedAccounts = new AttoAccountMonitor$accountStream$$inlined$flatMapLatest$1$1(this_0, tmp0);
|
|
1999
2004
|
tmp$ret$0 = retryWhen(ownedAccounts, AttoAccountMonitor$accountStream$slambda$slambda());
|
|
2000
2005
|
}
|
|
2001
2006
|
yield* emitAll($this$transformLatest, tmp$ret$0, $completion);
|
|
2002
2007
|
return Unit_instance;
|
|
2003
|
-
}, 2);
|
|
2008
|
+
}), 2);
|
|
2004
2009
|
}
|
|
2005
2010
|
function AttoAccountMonitor$receivableStream$slambda(this$0, $minAmount) {
|
|
2006
|
-
return constructCallableReference(
|
|
2011
|
+
return constructCallableReference(($this$transformLatest, it, $completion) => orPromise($completion, function *($completion) {
|
|
2012
|
+
var tmp0 = it;
|
|
2007
2013
|
var tmp$ret$0;
|
|
2008
2014
|
$l$block: {
|
|
2009
|
-
if (
|
|
2015
|
+
if (tmp0.isEmpty_y1axqb_k$()) {
|
|
2010
2016
|
tmp$ret$0 = emptyFlow();
|
|
2011
2017
|
break $l$block;
|
|
2012
2018
|
}
|
|
2013
2019
|
// Inline function 'kotlinx.coroutines.flow.filter' call
|
|
2014
2020
|
// Inline function 'kotlinx.coroutines.flow.unsafeTransform' call
|
|
2015
|
-
var this_0 = this$0.
|
|
2021
|
+
var this_0 = this$0.client_1.receivableStream_6h1uwi_k$(tmp0, $minAmount);
|
|
2016
2022
|
// Inline function 'kotlinx.coroutines.flow.internal.unsafeFlow' call
|
|
2017
|
-
tmp$ret$0 = new AttoAccountMonitor$receivableStream$$inlined$flatMapLatest$1$1(this_0,
|
|
2023
|
+
tmp$ret$0 = new AttoAccountMonitor$receivableStream$$inlined$flatMapLatest$1$1(this_0, tmp0);
|
|
2018
2024
|
}
|
|
2019
2025
|
yield* emitAll($this$transformLatest, tmp$ret$0, $completion);
|
|
2020
2026
|
return Unit_instance;
|
|
2021
|
-
}, 2);
|
|
2027
|
+
}), 2);
|
|
2022
2028
|
}
|
|
2023
2029
|
function createAccountMonitor(_this__u8e3s4) {
|
|
2024
2030
|
_init_properties_AttoAccountMonitor_kt__rloq05();
|
|
@@ -2033,7 +2039,7 @@ function _init_properties_AttoAccountMonitor_kt__rloq05() {
|
|
|
2033
2039
|
if (!properties_initialized_AttoAccountMonitor_kt_9udrrx) {
|
|
2034
2040
|
properties_initialized_AttoAccountMonitor_kt_9udrrx = true;
|
|
2035
2041
|
var tmp = KotlinLogging_getInstance();
|
|
2036
|
-
logger = tmp.
|
|
2042
|
+
logger = tmp.logger_s7flt4_k$(logger$lambda);
|
|
2037
2043
|
// Inline function 'kotlin.time.Companion.seconds' call
|
|
2038
2044
|
Companion_getInstance();
|
|
2039
2045
|
RETRY_DELAY = toDuration_0(10, DurationUnit_SECONDS_getInstance());
|
|
@@ -2050,113 +2056,116 @@ function get_RETRY_DELAY_0() {
|
|
|
2050
2056
|
}
|
|
2051
2057
|
var RETRY_DELAY_0;
|
|
2052
2058
|
function AttoHeightMonitor$stream$o$collect$slambda$slambda(this$0, $address, $height) {
|
|
2053
|
-
return constructCallableReference(function *($completion) {
|
|
2059
|
+
return constructCallableReference(($completion) => orPromise($completion, function *($completion) {
|
|
2054
2060
|
// Inline function 'kotlinx.coroutines.sync.withLock' call
|
|
2055
|
-
var this_0 = this$0.
|
|
2056
|
-
yield* this_0.
|
|
2061
|
+
var this_0 = this$0.mutex_1;
|
|
2062
|
+
yield* this_0.lock_ugrcvf_k$(null, $completion);
|
|
2057
2063
|
try {
|
|
2058
|
-
var tmp0 = this$0.
|
|
2064
|
+
var tmp0 = this$0.heightMap_1;
|
|
2059
2065
|
var tmp2 = new AttoAddress($address.algorithm, $address.publicKey);
|
|
2060
2066
|
// Inline function 'kotlin.collections.set' call
|
|
2061
2067
|
var value = $height;
|
|
2062
|
-
tmp0.
|
|
2068
|
+
tmp0.put_4fpzoq_k$(tmp2, value);
|
|
2063
2069
|
}finally {
|
|
2064
|
-
this_0.
|
|
2070
|
+
this_0.unlock_ulcrcl_k$(null);
|
|
2065
2071
|
}
|
|
2066
2072
|
return Unit_instance;
|
|
2067
|
-
}, 0);
|
|
2073
|
+
}), 0);
|
|
2068
2074
|
}
|
|
2069
2075
|
function AttoHeightMonitor$stream$o$collect$slambda($$this$unsafeFlow, this$0) {
|
|
2070
|
-
return constructCallableReference(
|
|
2071
|
-
var
|
|
2072
|
-
var
|
|
2073
|
-
var
|
|
2074
|
-
var
|
|
2075
|
-
|
|
2076
|
+
return constructCallableReference((value, $completion) => orPromise($completion, function *($completion) {
|
|
2077
|
+
var tmp0 = $$this$unsafeFlow;
|
|
2078
|
+
var it = value;
|
|
2079
|
+
var address = it.address;
|
|
2080
|
+
var height = it.height;
|
|
2081
|
+
var tmp$ret$1 = new Message(it, AttoHeightMonitor$stream$o$collect$slambda$slambda(this$0, address, height));
|
|
2082
|
+
yield* tmp0.emit_t92u1f_k$(tmp$ret$1, $completion);
|
|
2076
2083
|
return Unit_instance;
|
|
2077
|
-
}, 1);
|
|
2084
|
+
}), 1);
|
|
2078
2085
|
}
|
|
2079
2086
|
function AttoHeightMonitor$retryingStream$slambda$o$collect$slambda($$this$unsafeFlow, $addresses) {
|
|
2080
|
-
return constructCallableReference(
|
|
2087
|
+
return constructCallableReference((value, $completion) => orPromise($completion, function *($completion) {
|
|
2081
2088
|
var tmp0 = $$this$unsafeFlow;
|
|
2089
|
+
var tmp2 = value;
|
|
2082
2090
|
$l$block: {
|
|
2083
|
-
if ($addresses.
|
|
2084
|
-
yield* tmp0.
|
|
2091
|
+
if ($addresses.contains_aljjnj_k$(tmp2.address)) {
|
|
2092
|
+
yield* tmp0.emit_t92u1f_k$(tmp2, $completion);
|
|
2085
2093
|
break $l$block;
|
|
2086
2094
|
}
|
|
2087
2095
|
}
|
|
2088
2096
|
return Unit_instance;
|
|
2089
|
-
}, 1);
|
|
2097
|
+
}), 1);
|
|
2090
2098
|
}
|
|
2091
2099
|
function retryingStream($this, addresses) {
|
|
2092
2100
|
return flow(AttoHeightMonitor$retryingStream$slambda($this, addresses));
|
|
2093
2101
|
}
|
|
2094
2102
|
function *searchFor($this, addresses, $completion) {
|
|
2095
2103
|
// Inline function 'kotlinx.coroutines.sync.withLock' call
|
|
2096
|
-
var this_0 = $this.
|
|
2097
|
-
yield* this_0.
|
|
2104
|
+
var this_0 = $this.mutex_1;
|
|
2105
|
+
yield* this_0.lock_ugrcvf_k$(null, $completion);
|
|
2098
2106
|
var tmp;
|
|
2099
2107
|
try {
|
|
2100
|
-
$this.
|
|
2108
|
+
$this.heightMap_1.get_keys_wop4xp_k$().retainAll_b9lrv6_k$(addresses);
|
|
2101
2109
|
// Inline function 'kotlin.collections.forEach' call
|
|
2102
|
-
var _iterator__ex2g4s = minus(addresses, $this.
|
|
2103
|
-
while (_iterator__ex2g4s.
|
|
2104
|
-
var element = _iterator__ex2g4s.
|
|
2105
|
-
var tmp0 = $this.
|
|
2110
|
+
var _iterator__ex2g4s = minus(addresses, $this.heightMap_1.get_keys_wop4xp_k$()).iterator_jk1svi_k$();
|
|
2111
|
+
while (_iterator__ex2g4s.hasNext_bitz1p_k$()) {
|
|
2112
|
+
var element = _iterator__ex2g4s.next_20eer_k$();
|
|
2113
|
+
var tmp0 = $this.heightMap_1;
|
|
2106
2114
|
// Inline function 'kotlin.collections.set' call
|
|
2107
|
-
var value = yield* $this.
|
|
2108
|
-
tmp0.
|
|
2115
|
+
var value = yield* $($this.heightProvider_1(element, $completion), $completion);
|
|
2116
|
+
tmp0.put_4fpzoq_k$(element, value);
|
|
2109
2117
|
}
|
|
2110
|
-
tmp = toHeightSearch($this, $this.
|
|
2118
|
+
tmp = toHeightSearch($this, $this.heightMap_1);
|
|
2111
2119
|
}finally {
|
|
2112
|
-
this_0.
|
|
2120
|
+
this_0.unlock_ulcrcl_k$(null);
|
|
2113
2121
|
}
|
|
2114
2122
|
return tmp;
|
|
2115
2123
|
}
|
|
2116
2124
|
function toHeightSearch($this, $receiver) {
|
|
2117
2125
|
// Inline function 'kotlin.collections.map' call
|
|
2118
2126
|
// Inline function 'kotlin.collections.mapTo' call
|
|
2119
|
-
var destination = ArrayList.
|
|
2127
|
+
var destination = ArrayList.new_kotlin_collections_ArrayList_tdd6ob_k$($receiver.get_size_woubt6_k$());
|
|
2120
2128
|
// Inline function 'kotlin.collections.iterator' call
|
|
2121
|
-
var _iterator__ex2g4s = $receiver.
|
|
2122
|
-
while (_iterator__ex2g4s.
|
|
2123
|
-
var item = _iterator__ex2g4s.
|
|
2124
|
-
var tmp$ret$3 = new AccountHeightSearch(item.
|
|
2125
|
-
destination.
|
|
2129
|
+
var _iterator__ex2g4s = $receiver.get_entries_p20ztl_k$().iterator_jk1svi_k$();
|
|
2130
|
+
while (_iterator__ex2g4s.hasNext_bitz1p_k$()) {
|
|
2131
|
+
var item = _iterator__ex2g4s.next_20eer_k$();
|
|
2132
|
+
var tmp$ret$3 = new AccountHeightSearch(item.get_key_18j28a_k$(), item.get_value_j01efc_k$());
|
|
2133
|
+
destination.add_utx5q5_k$(tmp$ret$3);
|
|
2126
2134
|
}
|
|
2127
2135
|
var accounts = destination;
|
|
2128
2136
|
return new HeightSearch(accounts);
|
|
2129
2137
|
}
|
|
2130
2138
|
function AttoHeightMonitor$_init_$slambda_oraq2v() {
|
|
2131
|
-
return constructCallableReference(
|
|
2132
|
-
return Companion_getInstance_0().
|
|
2133
|
-
}, 1);
|
|
2139
|
+
return constructCallableReference((it, $completion) => orPromise($completion, function *($completion) {
|
|
2140
|
+
return Companion_getInstance_0().MIN_1;
|
|
2141
|
+
}), 1);
|
|
2134
2142
|
}
|
|
2135
2143
|
function AttoHeightMonitor$stream$slambda(this$0) {
|
|
2136
|
-
return constructCallableReference(
|
|
2144
|
+
return constructCallableReference(($this$transformLatest, it, $completion) => orPromise($completion, function *($completion) {
|
|
2145
|
+
var tmp0 = it;
|
|
2137
2146
|
var tmp$ret$0;
|
|
2138
2147
|
$l$block: {
|
|
2139
|
-
if (
|
|
2148
|
+
if (tmp0.isEmpty_y1axqb_k$()) {
|
|
2140
2149
|
tmp$ret$0 = emptyFlow();
|
|
2141
2150
|
break $l$block;
|
|
2142
2151
|
}
|
|
2143
|
-
tmp$ret$0 = retryingStream(this$0,
|
|
2152
|
+
tmp$ret$0 = retryingStream(this$0, tmp0);
|
|
2144
2153
|
}
|
|
2145
2154
|
yield* emitAll($this$transformLatest, tmp$ret$0, $completion);
|
|
2146
2155
|
return Unit_instance;
|
|
2147
|
-
}, 2);
|
|
2156
|
+
}), 2);
|
|
2148
2157
|
}
|
|
2149
2158
|
function AttoHeightMonitor$retryingStream$slambda$lambda() {
|
|
2150
2159
|
return 'Failed to stream monitor values. Retrying in ' + Duration__toString_impl_8d916b(get_RETRY_DELAY_0()) + '...';
|
|
2151
2160
|
}
|
|
2152
2161
|
function AttoHeightMonitor$retryingStream$slambda(this$0, $addresses) {
|
|
2153
|
-
return constructCallableReference(
|
|
2162
|
+
return constructCallableReference(($this$flow, $completion) => orPromise($completion, function *($completion) {
|
|
2154
2163
|
while (true) {
|
|
2155
2164
|
var search = yield* /*#__NOINLINE__*/searchFor(this$0, $addresses, $completion);
|
|
2156
2165
|
try {
|
|
2157
2166
|
// Inline function 'kotlinx.coroutines.flow.filter' call
|
|
2158
2167
|
// Inline function 'kotlinx.coroutines.flow.unsafeTransform' call
|
|
2159
|
-
var this_0 = this$0.
|
|
2168
|
+
var this_0 = this$0.stream_6o3q8h_k$(search);
|
|
2160
2169
|
// Inline function 'kotlinx.coroutines.flow.internal.unsafeFlow' call
|
|
2161
2170
|
var tmp$ret$0 = new AttoHeightMonitor$retryingStream$1$$inlined$filter$1(this_0, $addresses);
|
|
2162
2171
|
yield* emitAll($this$flow, tmp$ret$0, $completion);
|
|
@@ -2169,7 +2178,7 @@ function AttoHeightMonitor$retryingStream$slambda(this$0, $addresses) {
|
|
|
2169
2178
|
if ($p instanceof Exception) {
|
|
2170
2179
|
var e_0 = $p;
|
|
2171
2180
|
var tmp = get_logger_0();
|
|
2172
|
-
tmp.
|
|
2181
|
+
tmp.warn_rz80ae_k$(e_0, AttoHeightMonitor$retryingStream$slambda$lambda);
|
|
2173
2182
|
yield* delay(get_RETRY_DELAY_0(), $completion);
|
|
2174
2183
|
} else {
|
|
2175
2184
|
throw $p;
|
|
@@ -2178,7 +2187,7 @@ function AttoHeightMonitor$retryingStream$slambda(this$0, $addresses) {
|
|
|
2178
2187
|
}
|
|
2179
2188
|
}
|
|
2180
2189
|
return Unit_instance;
|
|
2181
|
-
}, 1);
|
|
2190
|
+
}), 1);
|
|
2182
2191
|
}
|
|
2183
2192
|
function logger$lambda_0() {
|
|
2184
2193
|
_init_properties_AttoHeightMonitor_kt__1d4bd9();
|
|
@@ -2189,66 +2198,67 @@ function _init_properties_AttoHeightMonitor_kt__1d4bd9() {
|
|
|
2189
2198
|
if (!properties_initialized_AttoHeightMonitor_kt_xldqd1) {
|
|
2190
2199
|
properties_initialized_AttoHeightMonitor_kt_xldqd1 = true;
|
|
2191
2200
|
var tmp = KotlinLogging_getInstance();
|
|
2192
|
-
logger_0 = tmp.
|
|
2201
|
+
logger_0 = tmp.logger_s7flt4_k$(logger$lambda_0);
|
|
2193
2202
|
// Inline function 'kotlin.time.Companion.seconds' call
|
|
2194
2203
|
Companion_getInstance();
|
|
2195
2204
|
RETRY_DELAY_0 = toDuration_0(10, DurationUnit_SECONDS_getInstance());
|
|
2196
2205
|
}
|
|
2197
2206
|
}
|
|
2198
2207
|
function AttoTransactionMonitor$_init_$slambda_7tohwe() {
|
|
2199
|
-
return constructCallableReference(
|
|
2200
|
-
return Companion_getInstance_0().
|
|
2201
|
-
}, 1);
|
|
2208
|
+
return constructCallableReference((it, $completion) => orPromise($completion, function *($completion) {
|
|
2209
|
+
return Companion_getInstance_0().MIN_1;
|
|
2210
|
+
}), 1);
|
|
2202
2211
|
}
|
|
2203
2212
|
function AttoAccountEntryMonitorAsyncBuilder$heightProvider$slambda() {
|
|
2204
|
-
return constructCallableReference(
|
|
2205
|
-
return Companion_getInstance_0().
|
|
2206
|
-
}, 1);
|
|
2213
|
+
return constructCallableReference((it, $completion) => orPromise($completion, function *($completion) {
|
|
2214
|
+
return Companion_getInstance_0().MIN_1;
|
|
2215
|
+
}), 1);
|
|
2207
2216
|
}
|
|
2208
2217
|
function AttoAccountEntryMonitorAsyncBuilder$heightProvider$slambda_0($value) {
|
|
2209
|
-
return constructCallableReference(
|
|
2218
|
+
return constructCallableReference((address, $completion) => orPromise($completion, function *($completion) {
|
|
2210
2219
|
return yield* await_1($value(address), $completion);
|
|
2211
|
-
}, 1);
|
|
2220
|
+
}), 1);
|
|
2212
2221
|
}
|
|
2213
2222
|
function AttoTransactionMonitorAsyncBuilder$heightProvider$slambda() {
|
|
2214
|
-
return constructCallableReference(
|
|
2215
|
-
return Companion_getInstance_0().
|
|
2216
|
-
}, 1);
|
|
2223
|
+
return constructCallableReference((it, $completion) => orPromise($completion, function *($completion) {
|
|
2224
|
+
return Companion_getInstance_0().MIN_1;
|
|
2225
|
+
}), 1);
|
|
2217
2226
|
}
|
|
2218
2227
|
function AttoTransactionMonitorAsyncBuilder$heightProvider$slambda_0($value) {
|
|
2219
|
-
return constructCallableReference(
|
|
2228
|
+
return constructCallableReference((address, $completion) => orPromise($completion, function *($completion) {
|
|
2220
2229
|
return yield* await_1($value(address), $completion);
|
|
2221
|
-
}, 1);
|
|
2230
|
+
}), 1);
|
|
2222
2231
|
}
|
|
2223
2232
|
function AttoNodeClientAsync$onAccount$slambda($onCancel) {
|
|
2224
|
-
return constructCallableReference(
|
|
2233
|
+
return constructCallableReference((it, $completion) => orPromise($completion, function *($completion) {
|
|
2225
2234
|
$onCancel(it);
|
|
2226
2235
|
return Unit_instance;
|
|
2227
|
-
}, 1);
|
|
2236
|
+
}), 1);
|
|
2228
2237
|
}
|
|
2229
2238
|
function AttoNodeClientAsync$onAccount$slambda$slambda($onAccount) {
|
|
2230
|
-
return constructCallableReference(
|
|
2231
|
-
|
|
2239
|
+
return constructCallableReference((it, $completion) => orPromise($completion, function *($completion) {
|
|
2240
|
+
var it_0 = it;
|
|
2241
|
+
$onAccount(it_0);
|
|
2232
2242
|
return Unit_instance;
|
|
2233
|
-
}, 1);
|
|
2243
|
+
}), 1);
|
|
2234
2244
|
}
|
|
2235
2245
|
function AttoNodeClientAsync$onAccount$slambda_0($stream, $onCancel, $onAccount) {
|
|
2236
|
-
return constructCallableReference(
|
|
2246
|
+
return constructCallableReference(($this$launch, $completion) => orPromise($completion, function *($completion) {
|
|
2237
2247
|
var tmp;
|
|
2238
2248
|
try {
|
|
2239
2249
|
var tmp_0 = AttoNodeClientAsync$onAccount$slambda$slambda($onAccount);
|
|
2240
|
-
yield* $stream.
|
|
2241
|
-
tmp = yield* $onCancel(null, $completion);
|
|
2250
|
+
yield* $stream.collect_aksokr_k$(new sam$kotlinx_coroutines_flow_FlowCollector$0_3(tmp_0), $completion);
|
|
2251
|
+
tmp = yield* $($onCancel(null, $completion), $completion);
|
|
2242
2252
|
} catch ($p) {
|
|
2243
2253
|
var tmp_1;
|
|
2244
2254
|
if ($p instanceof CancellationException) {
|
|
2245
2255
|
var e = $p;
|
|
2246
|
-
yield* $onCancel(null, $completion);
|
|
2256
|
+
yield* $($onCancel(null, $completion), $completion);
|
|
2247
2257
|
throw e;
|
|
2248
2258
|
} else {
|
|
2249
2259
|
if ($p instanceof Error) {
|
|
2250
2260
|
var e_0 = $p;
|
|
2251
|
-
tmp_1 = yield* $onCancel(e_0, $completion);
|
|
2261
|
+
tmp_1 = yield* $($onCancel(e_0, $completion), $completion);
|
|
2252
2262
|
} else {
|
|
2253
2263
|
throw $p;
|
|
2254
2264
|
}
|
|
@@ -2256,37 +2266,38 @@ function AttoNodeClientAsync$onAccount$slambda_0($stream, $onCancel, $onAccount)
|
|
|
2256
2266
|
tmp = tmp_1;
|
|
2257
2267
|
}
|
|
2258
2268
|
return Unit_instance;
|
|
2259
|
-
}, 1);
|
|
2269
|
+
}), 1);
|
|
2260
2270
|
}
|
|
2261
2271
|
function AttoNodeClientAsync$onAccount$slambda_1($onCancel) {
|
|
2262
|
-
return constructCallableReference(
|
|
2272
|
+
return constructCallableReference((it, $completion) => orPromise($completion, function *($completion) {
|
|
2263
2273
|
$onCancel(it);
|
|
2264
2274
|
return Unit_instance;
|
|
2265
|
-
}, 1);
|
|
2275
|
+
}), 1);
|
|
2266
2276
|
}
|
|
2267
2277
|
function AttoNodeClientAsync$onAccount$slambda$slambda_0($onAccount) {
|
|
2268
|
-
return constructCallableReference(
|
|
2269
|
-
|
|
2278
|
+
return constructCallableReference((it, $completion) => orPromise($completion, function *($completion) {
|
|
2279
|
+
var it_0 = it;
|
|
2280
|
+
$onAccount(it_0);
|
|
2270
2281
|
return Unit_instance;
|
|
2271
|
-
}, 1);
|
|
2282
|
+
}), 1);
|
|
2272
2283
|
}
|
|
2273
2284
|
function AttoNodeClientAsync$onAccount$slambda_2($stream, $onCancel, $onAccount) {
|
|
2274
|
-
return constructCallableReference(
|
|
2285
|
+
return constructCallableReference(($this$launch, $completion) => orPromise($completion, function *($completion) {
|
|
2275
2286
|
var tmp;
|
|
2276
2287
|
try {
|
|
2277
2288
|
var tmp_0 = AttoNodeClientAsync$onAccount$slambda$slambda_0($onAccount);
|
|
2278
|
-
yield* $stream.
|
|
2279
|
-
tmp = yield* $onCancel(null, $completion);
|
|
2289
|
+
yield* $stream.collect_aksokr_k$(new sam$kotlinx_coroutines_flow_FlowCollector$0_4(tmp_0), $completion);
|
|
2290
|
+
tmp = yield* $($onCancel(null, $completion), $completion);
|
|
2280
2291
|
} catch ($p) {
|
|
2281
2292
|
var tmp_1;
|
|
2282
2293
|
if ($p instanceof CancellationException) {
|
|
2283
2294
|
var e = $p;
|
|
2284
|
-
yield* $onCancel(null, $completion);
|
|
2295
|
+
yield* $($onCancel(null, $completion), $completion);
|
|
2285
2296
|
throw e;
|
|
2286
2297
|
} else {
|
|
2287
2298
|
if ($p instanceof Error) {
|
|
2288
2299
|
var e_0 = $p;
|
|
2289
|
-
tmp_1 = yield* $onCancel(e_0, $completion);
|
|
2300
|
+
tmp_1 = yield* $($onCancel(e_0, $completion), $completion);
|
|
2290
2301
|
} else {
|
|
2291
2302
|
throw $p;
|
|
2292
2303
|
}
|
|
@@ -2294,37 +2305,38 @@ function AttoNodeClientAsync$onAccount$slambda_2($stream, $onCancel, $onAccount)
|
|
|
2294
2305
|
tmp = tmp_1;
|
|
2295
2306
|
}
|
|
2296
2307
|
return Unit_instance;
|
|
2297
|
-
}, 1);
|
|
2308
|
+
}), 1);
|
|
2298
2309
|
}
|
|
2299
2310
|
function AttoNodeClientAsync$onAccount$slambda_3($onCancel) {
|
|
2300
|
-
return constructCallableReference(
|
|
2311
|
+
return constructCallableReference((it, $completion) => orPromise($completion, function *($completion) {
|
|
2301
2312
|
$onCancel(it);
|
|
2302
2313
|
return Unit_instance;
|
|
2303
|
-
}, 1);
|
|
2314
|
+
}), 1);
|
|
2304
2315
|
}
|
|
2305
2316
|
function AttoNodeClientAsync$onAccount$slambda$slambda_1($onAccount) {
|
|
2306
|
-
return constructCallableReference(
|
|
2307
|
-
|
|
2317
|
+
return constructCallableReference((it, $completion) => orPromise($completion, function *($completion) {
|
|
2318
|
+
var it_0 = it;
|
|
2319
|
+
$onAccount(it_0);
|
|
2308
2320
|
return Unit_instance;
|
|
2309
|
-
}, 1);
|
|
2321
|
+
}), 1);
|
|
2310
2322
|
}
|
|
2311
2323
|
function AttoNodeClientAsync$onAccount$slambda_4($stream, $onCancel, $onAccount) {
|
|
2312
|
-
return constructCallableReference(
|
|
2324
|
+
return constructCallableReference(($this$launch, $completion) => orPromise($completion, function *($completion) {
|
|
2313
2325
|
var tmp;
|
|
2314
2326
|
try {
|
|
2315
2327
|
var tmp_0 = AttoNodeClientAsync$onAccount$slambda$slambda_1($onAccount);
|
|
2316
|
-
yield* $stream.
|
|
2317
|
-
tmp = yield* $onCancel(null, $completion);
|
|
2328
|
+
yield* $stream.collect_aksokr_k$(new sam$kotlinx_coroutines_flow_FlowCollector$0_5(tmp_0), $completion);
|
|
2329
|
+
tmp = yield* $($onCancel(null, $completion), $completion);
|
|
2318
2330
|
} catch ($p) {
|
|
2319
2331
|
var tmp_1;
|
|
2320
2332
|
if ($p instanceof CancellationException) {
|
|
2321
2333
|
var e = $p;
|
|
2322
|
-
yield* $onCancel(null, $completion);
|
|
2334
|
+
yield* $($onCancel(null, $completion), $completion);
|
|
2323
2335
|
throw e;
|
|
2324
2336
|
} else {
|
|
2325
2337
|
if ($p instanceof Error) {
|
|
2326
2338
|
var e_0 = $p;
|
|
2327
|
-
tmp_1 = yield* $onCancel(e_0, $completion);
|
|
2339
|
+
tmp_1 = yield* $($onCancel(e_0, $completion), $completion);
|
|
2328
2340
|
} else {
|
|
2329
2341
|
throw $p;
|
|
2330
2342
|
}
|
|
@@ -2332,37 +2344,38 @@ function AttoNodeClientAsync$onAccount$slambda_4($stream, $onCancel, $onAccount)
|
|
|
2332
2344
|
tmp = tmp_1;
|
|
2333
2345
|
}
|
|
2334
2346
|
return Unit_instance;
|
|
2335
|
-
}, 1);
|
|
2347
|
+
}), 1);
|
|
2336
2348
|
}
|
|
2337
2349
|
function AttoNodeClientAsync$onReceivable$slambda($onCancel) {
|
|
2338
|
-
return constructCallableReference(
|
|
2350
|
+
return constructCallableReference((it, $completion) => orPromise($completion, function *($completion) {
|
|
2339
2351
|
$onCancel(it);
|
|
2340
2352
|
return Unit_instance;
|
|
2341
|
-
}, 1);
|
|
2353
|
+
}), 1);
|
|
2342
2354
|
}
|
|
2343
2355
|
function AttoNodeClientAsync$onReceivable$slambda$slambda($onReceivable) {
|
|
2344
|
-
return constructCallableReference(
|
|
2345
|
-
|
|
2356
|
+
return constructCallableReference((it, $completion) => orPromise($completion, function *($completion) {
|
|
2357
|
+
var it_0 = it;
|
|
2358
|
+
$onReceivable(it_0);
|
|
2346
2359
|
return Unit_instance;
|
|
2347
|
-
}, 1);
|
|
2360
|
+
}), 1);
|
|
2348
2361
|
}
|
|
2349
2362
|
function AttoNodeClientAsync$onReceivable$slambda_0($stream, $onCancel, $onReceivable) {
|
|
2350
|
-
return constructCallableReference(
|
|
2363
|
+
return constructCallableReference(($this$launch, $completion) => orPromise($completion, function *($completion) {
|
|
2351
2364
|
var tmp;
|
|
2352
2365
|
try {
|
|
2353
2366
|
var tmp_0 = AttoNodeClientAsync$onReceivable$slambda$slambda($onReceivable);
|
|
2354
|
-
yield* $stream.
|
|
2355
|
-
tmp = yield* $onCancel(null, $completion);
|
|
2367
|
+
yield* $stream.collect_aksokr_k$(new sam$kotlinx_coroutines_flow_FlowCollector$0_6(tmp_0), $completion);
|
|
2368
|
+
tmp = yield* $($onCancel(null, $completion), $completion);
|
|
2356
2369
|
} catch ($p) {
|
|
2357
2370
|
var tmp_1;
|
|
2358
2371
|
if ($p instanceof CancellationException) {
|
|
2359
2372
|
var e = $p;
|
|
2360
|
-
yield* $onCancel(null, $completion);
|
|
2373
|
+
yield* $($onCancel(null, $completion), $completion);
|
|
2361
2374
|
throw e;
|
|
2362
2375
|
} else {
|
|
2363
2376
|
if ($p instanceof Error) {
|
|
2364
2377
|
var e_0 = $p;
|
|
2365
|
-
tmp_1 = yield* $onCancel(e_0, $completion);
|
|
2378
|
+
tmp_1 = yield* $($onCancel(e_0, $completion), $completion);
|
|
2366
2379
|
} else {
|
|
2367
2380
|
throw $p;
|
|
2368
2381
|
}
|
|
@@ -2370,37 +2383,38 @@ function AttoNodeClientAsync$onReceivable$slambda_0($stream, $onCancel, $onRecei
|
|
|
2370
2383
|
tmp = tmp_1;
|
|
2371
2384
|
}
|
|
2372
2385
|
return Unit_instance;
|
|
2373
|
-
}, 1);
|
|
2386
|
+
}), 1);
|
|
2374
2387
|
}
|
|
2375
2388
|
function AttoNodeClientAsync$onReceivable$slambda_1($onCancel) {
|
|
2376
|
-
return constructCallableReference(
|
|
2389
|
+
return constructCallableReference((it, $completion) => orPromise($completion, function *($completion) {
|
|
2377
2390
|
$onCancel(it);
|
|
2378
2391
|
return Unit_instance;
|
|
2379
|
-
}, 1);
|
|
2392
|
+
}), 1);
|
|
2380
2393
|
}
|
|
2381
2394
|
function AttoNodeClientAsync$onReceivable$slambda$slambda_0($onReceivable) {
|
|
2382
|
-
return constructCallableReference(
|
|
2383
|
-
|
|
2395
|
+
return constructCallableReference((it, $completion) => orPromise($completion, function *($completion) {
|
|
2396
|
+
var it_0 = it;
|
|
2397
|
+
$onReceivable(it_0);
|
|
2384
2398
|
return Unit_instance;
|
|
2385
|
-
}, 1);
|
|
2399
|
+
}), 1);
|
|
2386
2400
|
}
|
|
2387
2401
|
function AttoNodeClientAsync$onReceivable$slambda_2($stream, $onCancel, $onReceivable) {
|
|
2388
|
-
return constructCallableReference(
|
|
2402
|
+
return constructCallableReference(($this$launch, $completion) => orPromise($completion, function *($completion) {
|
|
2389
2403
|
var tmp;
|
|
2390
2404
|
try {
|
|
2391
2405
|
var tmp_0 = AttoNodeClientAsync$onReceivable$slambda$slambda_0($onReceivable);
|
|
2392
|
-
yield* $stream.
|
|
2393
|
-
tmp = yield* $onCancel(null, $completion);
|
|
2406
|
+
yield* $stream.collect_aksokr_k$(new sam$kotlinx_coroutines_flow_FlowCollector$0_7(tmp_0), $completion);
|
|
2407
|
+
tmp = yield* $($onCancel(null, $completion), $completion);
|
|
2394
2408
|
} catch ($p) {
|
|
2395
2409
|
var tmp_1;
|
|
2396
2410
|
if ($p instanceof CancellationException) {
|
|
2397
2411
|
var e = $p;
|
|
2398
|
-
yield* $onCancel(null, $completion);
|
|
2412
|
+
yield* $($onCancel(null, $completion), $completion);
|
|
2399
2413
|
throw e;
|
|
2400
2414
|
} else {
|
|
2401
2415
|
if ($p instanceof Error) {
|
|
2402
2416
|
var e_0 = $p;
|
|
2403
|
-
tmp_1 = yield* $onCancel(e_0, $completion);
|
|
2417
|
+
tmp_1 = yield* $($onCancel(e_0, $completion), $completion);
|
|
2404
2418
|
} else {
|
|
2405
2419
|
throw $p;
|
|
2406
2420
|
}
|
|
@@ -2408,37 +2422,38 @@ function AttoNodeClientAsync$onReceivable$slambda_2($stream, $onCancel, $onRecei
|
|
|
2408
2422
|
tmp = tmp_1;
|
|
2409
2423
|
}
|
|
2410
2424
|
return Unit_instance;
|
|
2411
|
-
}, 1);
|
|
2425
|
+
}), 1);
|
|
2412
2426
|
}
|
|
2413
2427
|
function AttoNodeClientAsync$onAccountEntry$slambda($onCancel) {
|
|
2414
|
-
return constructCallableReference(
|
|
2428
|
+
return constructCallableReference((it, $completion) => orPromise($completion, function *($completion) {
|
|
2415
2429
|
$onCancel(it);
|
|
2416
2430
|
return Unit_instance;
|
|
2417
|
-
}, 1);
|
|
2431
|
+
}), 1);
|
|
2418
2432
|
}
|
|
2419
2433
|
function AttoNodeClientAsync$onAccountEntry$slambda$slambda($onAccountEntry) {
|
|
2420
|
-
return constructCallableReference(
|
|
2421
|
-
|
|
2434
|
+
return constructCallableReference((it, $completion) => orPromise($completion, function *($completion) {
|
|
2435
|
+
var it_0 = it;
|
|
2436
|
+
$onAccountEntry(it_0);
|
|
2422
2437
|
return Unit_instance;
|
|
2423
|
-
}, 1);
|
|
2438
|
+
}), 1);
|
|
2424
2439
|
}
|
|
2425
2440
|
function AttoNodeClientAsync$onAccountEntry$slambda_0($stream, $onCancel, $onAccountEntry) {
|
|
2426
|
-
return constructCallableReference(
|
|
2441
|
+
return constructCallableReference(($this$launch, $completion) => orPromise($completion, function *($completion) {
|
|
2427
2442
|
var tmp;
|
|
2428
2443
|
try {
|
|
2429
2444
|
var tmp_0 = AttoNodeClientAsync$onAccountEntry$slambda$slambda($onAccountEntry);
|
|
2430
|
-
yield* $stream.
|
|
2431
|
-
tmp = yield* $onCancel(null, $completion);
|
|
2445
|
+
yield* $stream.collect_aksokr_k$(new sam$kotlinx_coroutines_flow_FlowCollector$0_8(tmp_0), $completion);
|
|
2446
|
+
tmp = yield* $($onCancel(null, $completion), $completion);
|
|
2432
2447
|
} catch ($p) {
|
|
2433
2448
|
var tmp_1;
|
|
2434
2449
|
if ($p instanceof CancellationException) {
|
|
2435
2450
|
var e = $p;
|
|
2436
|
-
yield* $onCancel(null, $completion);
|
|
2451
|
+
yield* $($onCancel(null, $completion), $completion);
|
|
2437
2452
|
throw e;
|
|
2438
2453
|
} else {
|
|
2439
2454
|
if ($p instanceof Error) {
|
|
2440
2455
|
var e_0 = $p;
|
|
2441
|
-
tmp_1 = yield* $onCancel(e_0, $completion);
|
|
2456
|
+
tmp_1 = yield* $($onCancel(e_0, $completion), $completion);
|
|
2442
2457
|
} else {
|
|
2443
2458
|
throw $p;
|
|
2444
2459
|
}
|
|
@@ -2446,37 +2461,38 @@ function AttoNodeClientAsync$onAccountEntry$slambda_0($stream, $onCancel, $onAcc
|
|
|
2446
2461
|
tmp = tmp_1;
|
|
2447
2462
|
}
|
|
2448
2463
|
return Unit_instance;
|
|
2449
|
-
}, 1);
|
|
2464
|
+
}), 1);
|
|
2450
2465
|
}
|
|
2451
2466
|
function AttoNodeClientAsync$onAccountEntry$slambda_1($onCancel) {
|
|
2452
|
-
return constructCallableReference(
|
|
2467
|
+
return constructCallableReference((it, $completion) => orPromise($completion, function *($completion) {
|
|
2453
2468
|
$onCancel(it);
|
|
2454
2469
|
return Unit_instance;
|
|
2455
|
-
}, 1);
|
|
2470
|
+
}), 1);
|
|
2456
2471
|
}
|
|
2457
2472
|
function AttoNodeClientAsync$onAccountEntry$slambda$slambda_0($onAccountEntry) {
|
|
2458
|
-
return constructCallableReference(
|
|
2459
|
-
|
|
2473
|
+
return constructCallableReference((it, $completion) => orPromise($completion, function *($completion) {
|
|
2474
|
+
var it_0 = it;
|
|
2475
|
+
$onAccountEntry(it_0);
|
|
2460
2476
|
return Unit_instance;
|
|
2461
|
-
}, 1);
|
|
2477
|
+
}), 1);
|
|
2462
2478
|
}
|
|
2463
2479
|
function AttoNodeClientAsync$onAccountEntry$slambda_2($stream, $onCancel, $onAccountEntry) {
|
|
2464
|
-
return constructCallableReference(
|
|
2480
|
+
return constructCallableReference(($this$launch, $completion) => orPromise($completion, function *($completion) {
|
|
2465
2481
|
var tmp;
|
|
2466
2482
|
try {
|
|
2467
2483
|
var tmp_0 = AttoNodeClientAsync$onAccountEntry$slambda$slambda_0($onAccountEntry);
|
|
2468
|
-
yield* $stream.
|
|
2469
|
-
tmp = yield* $onCancel(null, $completion);
|
|
2484
|
+
yield* $stream.collect_aksokr_k$(new sam$kotlinx_coroutines_flow_FlowCollector$0_9(tmp_0), $completion);
|
|
2485
|
+
tmp = yield* $($onCancel(null, $completion), $completion);
|
|
2470
2486
|
} catch ($p) {
|
|
2471
2487
|
var tmp_1;
|
|
2472
2488
|
if ($p instanceof CancellationException) {
|
|
2473
2489
|
var e = $p;
|
|
2474
|
-
yield* $onCancel(null, $completion);
|
|
2490
|
+
yield* $($onCancel(null, $completion), $completion);
|
|
2475
2491
|
throw e;
|
|
2476
2492
|
} else {
|
|
2477
2493
|
if ($p instanceof Error) {
|
|
2478
2494
|
var e_0 = $p;
|
|
2479
|
-
tmp_1 = yield* $onCancel(e_0, $completion);
|
|
2495
|
+
tmp_1 = yield* $($onCancel(e_0, $completion), $completion);
|
|
2480
2496
|
} else {
|
|
2481
2497
|
throw $p;
|
|
2482
2498
|
}
|
|
@@ -2484,37 +2500,38 @@ function AttoNodeClientAsync$onAccountEntry$slambda_2($stream, $onCancel, $onAcc
|
|
|
2484
2500
|
tmp = tmp_1;
|
|
2485
2501
|
}
|
|
2486
2502
|
return Unit_instance;
|
|
2487
|
-
}, 1);
|
|
2503
|
+
}), 1);
|
|
2488
2504
|
}
|
|
2489
2505
|
function AttoNodeClientAsync$onAccountEntry$slambda_3($onCancel) {
|
|
2490
|
-
return constructCallableReference(
|
|
2506
|
+
return constructCallableReference((it, $completion) => orPromise($completion, function *($completion) {
|
|
2491
2507
|
$onCancel(it);
|
|
2492
2508
|
return Unit_instance;
|
|
2493
|
-
}, 1);
|
|
2509
|
+
}), 1);
|
|
2494
2510
|
}
|
|
2495
2511
|
function AttoNodeClientAsync$onAccountEntry$slambda$slambda_1($onAccountEntry) {
|
|
2496
|
-
return constructCallableReference(
|
|
2497
|
-
|
|
2512
|
+
return constructCallableReference((it, $completion) => orPromise($completion, function *($completion) {
|
|
2513
|
+
var it_0 = it;
|
|
2514
|
+
$onAccountEntry(it_0);
|
|
2498
2515
|
return Unit_instance;
|
|
2499
|
-
}, 1);
|
|
2516
|
+
}), 1);
|
|
2500
2517
|
}
|
|
2501
2518
|
function AttoNodeClientAsync$onAccountEntry$slambda_4($stream, $onCancel, $onAccountEntry) {
|
|
2502
|
-
return constructCallableReference(
|
|
2519
|
+
return constructCallableReference(($this$launch, $completion) => orPromise($completion, function *($completion) {
|
|
2503
2520
|
var tmp;
|
|
2504
2521
|
try {
|
|
2505
2522
|
var tmp_0 = AttoNodeClientAsync$onAccountEntry$slambda$slambda_1($onAccountEntry);
|
|
2506
|
-
yield* $stream.
|
|
2507
|
-
tmp = yield* $onCancel(null, $completion);
|
|
2523
|
+
yield* $stream.collect_aksokr_k$(new sam$kotlinx_coroutines_flow_FlowCollector$0_10(tmp_0), $completion);
|
|
2524
|
+
tmp = yield* $($onCancel(null, $completion), $completion);
|
|
2508
2525
|
} catch ($p) {
|
|
2509
2526
|
var tmp_1;
|
|
2510
2527
|
if ($p instanceof CancellationException) {
|
|
2511
2528
|
var e = $p;
|
|
2512
|
-
yield* $onCancel(null, $completion);
|
|
2529
|
+
yield* $($onCancel(null, $completion), $completion);
|
|
2513
2530
|
throw e;
|
|
2514
2531
|
} else {
|
|
2515
2532
|
if ($p instanceof Error) {
|
|
2516
2533
|
var e_0 = $p;
|
|
2517
|
-
tmp_1 = yield* $onCancel(e_0, $completion);
|
|
2534
|
+
tmp_1 = yield* $($onCancel(e_0, $completion), $completion);
|
|
2518
2535
|
} else {
|
|
2519
2536
|
throw $p;
|
|
2520
2537
|
}
|
|
@@ -2522,37 +2539,38 @@ function AttoNodeClientAsync$onAccountEntry$slambda_4($stream, $onCancel, $onAcc
|
|
|
2522
2539
|
tmp = tmp_1;
|
|
2523
2540
|
}
|
|
2524
2541
|
return Unit_instance;
|
|
2525
|
-
}, 1);
|
|
2542
|
+
}), 1);
|
|
2526
2543
|
}
|
|
2527
2544
|
function AttoNodeClientAsync$onAccountEntry$slambda_5($onCancel) {
|
|
2528
|
-
return constructCallableReference(
|
|
2545
|
+
return constructCallableReference((it, $completion) => orPromise($completion, function *($completion) {
|
|
2529
2546
|
$onCancel(it);
|
|
2530
2547
|
return Unit_instance;
|
|
2531
|
-
}, 1);
|
|
2548
|
+
}), 1);
|
|
2532
2549
|
}
|
|
2533
2550
|
function AttoNodeClientAsync$onAccountEntry$slambda$slambda_2($onAccountEntry) {
|
|
2534
|
-
return constructCallableReference(
|
|
2535
|
-
|
|
2551
|
+
return constructCallableReference((it, $completion) => orPromise($completion, function *($completion) {
|
|
2552
|
+
var it_0 = it;
|
|
2553
|
+
$onAccountEntry(it_0);
|
|
2536
2554
|
return Unit_instance;
|
|
2537
|
-
}, 1);
|
|
2555
|
+
}), 1);
|
|
2538
2556
|
}
|
|
2539
2557
|
function AttoNodeClientAsync$onAccountEntry$slambda_6($stream, $onCancel, $onAccountEntry) {
|
|
2540
|
-
return constructCallableReference(
|
|
2558
|
+
return constructCallableReference(($this$launch, $completion) => orPromise($completion, function *($completion) {
|
|
2541
2559
|
var tmp;
|
|
2542
2560
|
try {
|
|
2543
2561
|
var tmp_0 = AttoNodeClientAsync$onAccountEntry$slambda$slambda_2($onAccountEntry);
|
|
2544
|
-
yield* $stream.
|
|
2545
|
-
tmp = yield* $onCancel(null, $completion);
|
|
2562
|
+
yield* $stream.collect_aksokr_k$(new sam$kotlinx_coroutines_flow_FlowCollector$0_11(tmp_0), $completion);
|
|
2563
|
+
tmp = yield* $($onCancel(null, $completion), $completion);
|
|
2546
2564
|
} catch ($p) {
|
|
2547
2565
|
var tmp_1;
|
|
2548
2566
|
if ($p instanceof CancellationException) {
|
|
2549
2567
|
var e = $p;
|
|
2550
|
-
yield* $onCancel(null, $completion);
|
|
2568
|
+
yield* $($onCancel(null, $completion), $completion);
|
|
2551
2569
|
throw e;
|
|
2552
2570
|
} else {
|
|
2553
2571
|
if ($p instanceof Error) {
|
|
2554
2572
|
var e_0 = $p;
|
|
2555
|
-
tmp_1 = yield* $onCancel(e_0, $completion);
|
|
2573
|
+
tmp_1 = yield* $($onCancel(e_0, $completion), $completion);
|
|
2556
2574
|
} else {
|
|
2557
2575
|
throw $p;
|
|
2558
2576
|
}
|
|
@@ -2560,37 +2578,38 @@ function AttoNodeClientAsync$onAccountEntry$slambda_6($stream, $onCancel, $onAcc
|
|
|
2560
2578
|
tmp = tmp_1;
|
|
2561
2579
|
}
|
|
2562
2580
|
return Unit_instance;
|
|
2563
|
-
}, 1);
|
|
2581
|
+
}), 1);
|
|
2564
2582
|
}
|
|
2565
2583
|
function AttoNodeClientAsync$onTransaction$slambda($onCancel) {
|
|
2566
|
-
return constructCallableReference(
|
|
2584
|
+
return constructCallableReference((it, $completion) => orPromise($completion, function *($completion) {
|
|
2567
2585
|
$onCancel(it);
|
|
2568
2586
|
return Unit_instance;
|
|
2569
|
-
}, 1);
|
|
2587
|
+
}), 1);
|
|
2570
2588
|
}
|
|
2571
2589
|
function AttoNodeClientAsync$onTransaction$slambda$slambda($onTransaction) {
|
|
2572
|
-
return constructCallableReference(
|
|
2573
|
-
|
|
2590
|
+
return constructCallableReference((it, $completion) => orPromise($completion, function *($completion) {
|
|
2591
|
+
var it_0 = it;
|
|
2592
|
+
$onTransaction(it_0);
|
|
2574
2593
|
return Unit_instance;
|
|
2575
|
-
}, 1);
|
|
2594
|
+
}), 1);
|
|
2576
2595
|
}
|
|
2577
2596
|
function AttoNodeClientAsync$onTransaction$slambda_0($stream, $onCancel, $onTransaction) {
|
|
2578
|
-
return constructCallableReference(
|
|
2597
|
+
return constructCallableReference(($this$launch, $completion) => orPromise($completion, function *($completion) {
|
|
2579
2598
|
var tmp;
|
|
2580
2599
|
try {
|
|
2581
2600
|
var tmp_0 = AttoNodeClientAsync$onTransaction$slambda$slambda($onTransaction);
|
|
2582
|
-
yield* $stream.
|
|
2583
|
-
tmp = yield* $onCancel(null, $completion);
|
|
2601
|
+
yield* $stream.collect_aksokr_k$(new sam$kotlinx_coroutines_flow_FlowCollector$0_12(tmp_0), $completion);
|
|
2602
|
+
tmp = yield* $($onCancel(null, $completion), $completion);
|
|
2584
2603
|
} catch ($p) {
|
|
2585
2604
|
var tmp_1;
|
|
2586
2605
|
if ($p instanceof CancellationException) {
|
|
2587
2606
|
var e = $p;
|
|
2588
|
-
yield* $onCancel(null, $completion);
|
|
2607
|
+
yield* $($onCancel(null, $completion), $completion);
|
|
2589
2608
|
throw e;
|
|
2590
2609
|
} else {
|
|
2591
2610
|
if ($p instanceof Error) {
|
|
2592
2611
|
var e_0 = $p;
|
|
2593
|
-
tmp_1 = yield* $onCancel(e_0, $completion);
|
|
2612
|
+
tmp_1 = yield* $($onCancel(e_0, $completion), $completion);
|
|
2594
2613
|
} else {
|
|
2595
2614
|
throw $p;
|
|
2596
2615
|
}
|
|
@@ -2598,37 +2617,38 @@ function AttoNodeClientAsync$onTransaction$slambda_0($stream, $onCancel, $onTran
|
|
|
2598
2617
|
tmp = tmp_1;
|
|
2599
2618
|
}
|
|
2600
2619
|
return Unit_instance;
|
|
2601
|
-
}, 1);
|
|
2620
|
+
}), 1);
|
|
2602
2621
|
}
|
|
2603
2622
|
function AttoNodeClientAsync$onTransaction$slambda_1($onCancel) {
|
|
2604
|
-
return constructCallableReference(
|
|
2623
|
+
return constructCallableReference((it, $completion) => orPromise($completion, function *($completion) {
|
|
2605
2624
|
$onCancel(it);
|
|
2606
2625
|
return Unit_instance;
|
|
2607
|
-
}, 1);
|
|
2626
|
+
}), 1);
|
|
2608
2627
|
}
|
|
2609
2628
|
function AttoNodeClientAsync$onTransaction$slambda$slambda_0($onTransaction) {
|
|
2610
|
-
return constructCallableReference(
|
|
2611
|
-
|
|
2629
|
+
return constructCallableReference((it, $completion) => orPromise($completion, function *($completion) {
|
|
2630
|
+
var it_0 = it;
|
|
2631
|
+
$onTransaction(it_0);
|
|
2612
2632
|
return Unit_instance;
|
|
2613
|
-
}, 1);
|
|
2633
|
+
}), 1);
|
|
2614
2634
|
}
|
|
2615
2635
|
function AttoNodeClientAsync$onTransaction$slambda_2($stream, $onCancel, $onTransaction) {
|
|
2616
|
-
return constructCallableReference(
|
|
2636
|
+
return constructCallableReference(($this$launch, $completion) => orPromise($completion, function *($completion) {
|
|
2617
2637
|
var tmp;
|
|
2618
2638
|
try {
|
|
2619
2639
|
var tmp_0 = AttoNodeClientAsync$onTransaction$slambda$slambda_0($onTransaction);
|
|
2620
|
-
yield* $stream.
|
|
2621
|
-
tmp = yield* $onCancel(null, $completion);
|
|
2640
|
+
yield* $stream.collect_aksokr_k$(new sam$kotlinx_coroutines_flow_FlowCollector$0_13(tmp_0), $completion);
|
|
2641
|
+
tmp = yield* $($onCancel(null, $completion), $completion);
|
|
2622
2642
|
} catch ($p) {
|
|
2623
2643
|
var tmp_1;
|
|
2624
2644
|
if ($p instanceof CancellationException) {
|
|
2625
2645
|
var e = $p;
|
|
2626
|
-
yield* $onCancel(null, $completion);
|
|
2646
|
+
yield* $($onCancel(null, $completion), $completion);
|
|
2627
2647
|
throw e;
|
|
2628
2648
|
} else {
|
|
2629
2649
|
if ($p instanceof Error) {
|
|
2630
2650
|
var e_0 = $p;
|
|
2631
|
-
tmp_1 = yield* $onCancel(e_0, $completion);
|
|
2651
|
+
tmp_1 = yield* $($onCancel(e_0, $completion), $completion);
|
|
2632
2652
|
} else {
|
|
2633
2653
|
throw $p;
|
|
2634
2654
|
}
|
|
@@ -2636,37 +2656,38 @@ function AttoNodeClientAsync$onTransaction$slambda_2($stream, $onCancel, $onTran
|
|
|
2636
2656
|
tmp = tmp_1;
|
|
2637
2657
|
}
|
|
2638
2658
|
return Unit_instance;
|
|
2639
|
-
}, 1);
|
|
2659
|
+
}), 1);
|
|
2640
2660
|
}
|
|
2641
2661
|
function AttoNodeClientAsync$onTransaction$slambda_3($onCancel) {
|
|
2642
|
-
return constructCallableReference(
|
|
2662
|
+
return constructCallableReference((it, $completion) => orPromise($completion, function *($completion) {
|
|
2643
2663
|
$onCancel(it);
|
|
2644
2664
|
return Unit_instance;
|
|
2645
|
-
}, 1);
|
|
2665
|
+
}), 1);
|
|
2646
2666
|
}
|
|
2647
2667
|
function AttoNodeClientAsync$onTransaction$slambda$slambda_1($onTransaction) {
|
|
2648
|
-
return constructCallableReference(
|
|
2649
|
-
|
|
2668
|
+
return constructCallableReference((it, $completion) => orPromise($completion, function *($completion) {
|
|
2669
|
+
var it_0 = it;
|
|
2670
|
+
$onTransaction(it_0);
|
|
2650
2671
|
return Unit_instance;
|
|
2651
|
-
}, 1);
|
|
2672
|
+
}), 1);
|
|
2652
2673
|
}
|
|
2653
2674
|
function AttoNodeClientAsync$onTransaction$slambda_4($stream, $onCancel, $onTransaction) {
|
|
2654
|
-
return constructCallableReference(
|
|
2675
|
+
return constructCallableReference(($this$launch, $completion) => orPromise($completion, function *($completion) {
|
|
2655
2676
|
var tmp;
|
|
2656
2677
|
try {
|
|
2657
2678
|
var tmp_0 = AttoNodeClientAsync$onTransaction$slambda$slambda_1($onTransaction);
|
|
2658
|
-
yield* $stream.
|
|
2659
|
-
tmp = yield* $onCancel(null, $completion);
|
|
2679
|
+
yield* $stream.collect_aksokr_k$(new sam$kotlinx_coroutines_flow_FlowCollector$0_14(tmp_0), $completion);
|
|
2680
|
+
tmp = yield* $($onCancel(null, $completion), $completion);
|
|
2660
2681
|
} catch ($p) {
|
|
2661
2682
|
var tmp_1;
|
|
2662
2683
|
if ($p instanceof CancellationException) {
|
|
2663
2684
|
var e = $p;
|
|
2664
|
-
yield* $onCancel(null, $completion);
|
|
2685
|
+
yield* $($onCancel(null, $completion), $completion);
|
|
2665
2686
|
throw e;
|
|
2666
2687
|
} else {
|
|
2667
2688
|
if ($p instanceof Error) {
|
|
2668
2689
|
var e_0 = $p;
|
|
2669
|
-
tmp_1 = yield* $onCancel(e_0, $completion);
|
|
2690
|
+
tmp_1 = yield* $($onCancel(e_0, $completion), $completion);
|
|
2670
2691
|
} else {
|
|
2671
2692
|
throw $p;
|
|
2672
2693
|
}
|
|
@@ -2674,37 +2695,38 @@ function AttoNodeClientAsync$onTransaction$slambda_4($stream, $onCancel, $onTran
|
|
|
2674
2695
|
tmp = tmp_1;
|
|
2675
2696
|
}
|
|
2676
2697
|
return Unit_instance;
|
|
2677
|
-
}, 1);
|
|
2698
|
+
}), 1);
|
|
2678
2699
|
}
|
|
2679
2700
|
function AttoNodeClientAsync$onTransaction$slambda_5($onCancel) {
|
|
2680
|
-
return constructCallableReference(
|
|
2701
|
+
return constructCallableReference((it, $completion) => orPromise($completion, function *($completion) {
|
|
2681
2702
|
$onCancel(it);
|
|
2682
2703
|
return Unit_instance;
|
|
2683
|
-
}, 1);
|
|
2704
|
+
}), 1);
|
|
2684
2705
|
}
|
|
2685
2706
|
function AttoNodeClientAsync$onTransaction$slambda$slambda_2($onTransaction) {
|
|
2686
|
-
return constructCallableReference(
|
|
2687
|
-
|
|
2707
|
+
return constructCallableReference((it, $completion) => orPromise($completion, function *($completion) {
|
|
2708
|
+
var it_0 = it;
|
|
2709
|
+
$onTransaction(it_0);
|
|
2688
2710
|
return Unit_instance;
|
|
2689
|
-
}, 1);
|
|
2711
|
+
}), 1);
|
|
2690
2712
|
}
|
|
2691
2713
|
function AttoNodeClientAsync$onTransaction$slambda_6($stream, $onCancel, $onTransaction) {
|
|
2692
|
-
return constructCallableReference(
|
|
2714
|
+
return constructCallableReference(($this$launch, $completion) => orPromise($completion, function *($completion) {
|
|
2693
2715
|
var tmp;
|
|
2694
2716
|
try {
|
|
2695
2717
|
var tmp_0 = AttoNodeClientAsync$onTransaction$slambda$slambda_2($onTransaction);
|
|
2696
|
-
yield* $stream.
|
|
2697
|
-
tmp = yield* $onCancel(null, $completion);
|
|
2718
|
+
yield* $stream.collect_aksokr_k$(new sam$kotlinx_coroutines_flow_FlowCollector$0_15(tmp_0), $completion);
|
|
2719
|
+
tmp = yield* $($onCancel(null, $completion), $completion);
|
|
2698
2720
|
} catch ($p) {
|
|
2699
2721
|
var tmp_1;
|
|
2700
2722
|
if ($p instanceof CancellationException) {
|
|
2701
2723
|
var e = $p;
|
|
2702
|
-
yield* $onCancel(null, $completion);
|
|
2724
|
+
yield* $($onCancel(null, $completion), $completion);
|
|
2703
2725
|
throw e;
|
|
2704
2726
|
} else {
|
|
2705
2727
|
if ($p instanceof Error) {
|
|
2706
2728
|
var e_0 = $p;
|
|
2707
|
-
tmp_1 = yield* $onCancel(e_0, $completion);
|
|
2729
|
+
tmp_1 = yield* $($onCancel(e_0, $completion), $completion);
|
|
2708
2730
|
} else {
|
|
2709
2731
|
throw $p;
|
|
2710
2732
|
}
|
|
@@ -2712,41 +2734,42 @@ function AttoNodeClientAsync$onTransaction$slambda_6($stream, $onCancel, $onTran
|
|
|
2712
2734
|
tmp = tmp_1;
|
|
2713
2735
|
}
|
|
2714
2736
|
return Unit_instance;
|
|
2715
|
-
}, 1);
|
|
2737
|
+
}), 1);
|
|
2716
2738
|
}
|
|
2717
2739
|
function toAsync(_this__u8e3s4) {
|
|
2718
|
-
return new AttoNodeClientAsync(_this__u8e3s4, Dispatchers_getInstance().
|
|
2740
|
+
return new AttoNodeClientAsync(_this__u8e3s4, Dispatchers_getInstance().Default_1);
|
|
2719
2741
|
}
|
|
2720
2742
|
function AttoAccountEntryMonitorAsync$onAccountEntry$slambda($onCancel) {
|
|
2721
|
-
return constructCallableReference(
|
|
2743
|
+
return constructCallableReference((it, $completion) => orPromise($completion, function *($completion) {
|
|
2722
2744
|
$onCancel(it);
|
|
2723
2745
|
return Unit_instance;
|
|
2724
|
-
}, 1);
|
|
2746
|
+
}), 1);
|
|
2725
2747
|
}
|
|
2726
2748
|
function AttoAccountEntryMonitorAsync$onAccountEntry$slambda$slambda($onAccountEntry) {
|
|
2727
|
-
return constructCallableReference(
|
|
2728
|
-
|
|
2729
|
-
yield*
|
|
2749
|
+
return constructCallableReference((it, $completion) => orPromise($completion, function *($completion) {
|
|
2750
|
+
var it_0 = it;
|
|
2751
|
+
yield* $($onAccountEntry(it_0.value_1, $completion), $completion);
|
|
2752
|
+
yield* it_0.acknowledge_f0kq2j_k$($completion);
|
|
2730
2753
|
return Unit_instance;
|
|
2731
|
-
}, 1);
|
|
2754
|
+
}), 1);
|
|
2732
2755
|
}
|
|
2733
2756
|
function AttoAccountEntryMonitorAsync$onAccountEntry$slambda_0($stream, $onCancel, $onAccountEntry) {
|
|
2734
|
-
return constructCallableReference(
|
|
2757
|
+
return constructCallableReference(($this$launch, $completion) => orPromise($completion, function *($completion) {
|
|
2735
2758
|
var tmp;
|
|
2736
2759
|
try {
|
|
2737
2760
|
var tmp_0 = AttoAccountEntryMonitorAsync$onAccountEntry$slambda$slambda($onAccountEntry);
|
|
2738
|
-
yield* $stream.
|
|
2739
|
-
tmp = yield* $onCancel(null, $completion);
|
|
2761
|
+
yield* $stream.collect_aksokr_k$(new sam$kotlinx_coroutines_flow_FlowCollector$0_16(tmp_0), $completion);
|
|
2762
|
+
tmp = yield* $($onCancel(null, $completion), $completion);
|
|
2740
2763
|
} catch ($p) {
|
|
2741
2764
|
var tmp_1;
|
|
2742
2765
|
if ($p instanceof CancellationException) {
|
|
2743
2766
|
var e = $p;
|
|
2744
|
-
yield* $onCancel(null, $completion);
|
|
2767
|
+
yield* $($onCancel(null, $completion), $completion);
|
|
2745
2768
|
throw e;
|
|
2746
2769
|
} else {
|
|
2747
2770
|
if ($p instanceof Error) {
|
|
2748
2771
|
var e_0 = $p;
|
|
2749
|
-
tmp_1 = yield* $onCancel(e_0, $completion);
|
|
2772
|
+
tmp_1 = yield* $($onCancel(e_0, $completion), $completion);
|
|
2750
2773
|
} else {
|
|
2751
2774
|
throw $p;
|
|
2752
2775
|
}
|
|
@@ -2754,37 +2777,38 @@ function AttoAccountEntryMonitorAsync$onAccountEntry$slambda_0($stream, $onCance
|
|
|
2754
2777
|
tmp = tmp_1;
|
|
2755
2778
|
}
|
|
2756
2779
|
return Unit_instance;
|
|
2757
|
-
}, 1);
|
|
2780
|
+
}), 1);
|
|
2758
2781
|
}
|
|
2759
2782
|
function AttoAccountMonitorAsync$onAccount$slambda($onCancel) {
|
|
2760
|
-
return constructCallableReference(
|
|
2783
|
+
return constructCallableReference((it, $completion) => orPromise($completion, function *($completion) {
|
|
2761
2784
|
$onCancel(it);
|
|
2762
2785
|
return Unit_instance;
|
|
2763
|
-
}, 1);
|
|
2786
|
+
}), 1);
|
|
2764
2787
|
}
|
|
2765
2788
|
function AttoAccountMonitorAsync$onAccount$slambda$slambda($onAccount) {
|
|
2766
|
-
return constructCallableReference(
|
|
2767
|
-
|
|
2789
|
+
return constructCallableReference((it, $completion) => orPromise($completion, function *($completion) {
|
|
2790
|
+
var it_0 = it;
|
|
2791
|
+
$onAccount(it_0);
|
|
2768
2792
|
return Unit_instance;
|
|
2769
|
-
}, 1);
|
|
2793
|
+
}), 1);
|
|
2770
2794
|
}
|
|
2771
2795
|
function AttoAccountMonitorAsync$onAccount$slambda_0($stream, $onCancel, $onAccount) {
|
|
2772
|
-
return constructCallableReference(
|
|
2796
|
+
return constructCallableReference(($this$launch, $completion) => orPromise($completion, function *($completion) {
|
|
2773
2797
|
var tmp;
|
|
2774
2798
|
try {
|
|
2775
2799
|
var tmp_0 = AttoAccountMonitorAsync$onAccount$slambda$slambda($onAccount);
|
|
2776
|
-
yield* $stream.
|
|
2777
|
-
tmp = yield* $onCancel(null, $completion);
|
|
2800
|
+
yield* $stream.collect_aksokr_k$(new sam$kotlinx_coroutines_flow_FlowCollector$0_17(tmp_0), $completion);
|
|
2801
|
+
tmp = yield* $($onCancel(null, $completion), $completion);
|
|
2778
2802
|
} catch ($p) {
|
|
2779
2803
|
var tmp_1;
|
|
2780
2804
|
if ($p instanceof CancellationException) {
|
|
2781
2805
|
var e = $p;
|
|
2782
|
-
yield* $onCancel(null, $completion);
|
|
2806
|
+
yield* $($onCancel(null, $completion), $completion);
|
|
2783
2807
|
throw e;
|
|
2784
2808
|
} else {
|
|
2785
2809
|
if ($p instanceof Error) {
|
|
2786
2810
|
var e_0 = $p;
|
|
2787
|
-
tmp_1 = yield* $onCancel(e_0, $completion);
|
|
2811
|
+
tmp_1 = yield* $($onCancel(e_0, $completion), $completion);
|
|
2788
2812
|
} else {
|
|
2789
2813
|
throw $p;
|
|
2790
2814
|
}
|
|
@@ -2792,37 +2816,38 @@ function AttoAccountMonitorAsync$onAccount$slambda_0($stream, $onCancel, $onAcco
|
|
|
2792
2816
|
tmp = tmp_1;
|
|
2793
2817
|
}
|
|
2794
2818
|
return Unit_instance;
|
|
2795
|
-
}, 1);
|
|
2819
|
+
}), 1);
|
|
2796
2820
|
}
|
|
2797
2821
|
function AttoAccountMonitorAsync$onReceivable$slambda($onCancel) {
|
|
2798
|
-
return constructCallableReference(
|
|
2822
|
+
return constructCallableReference((it, $completion) => orPromise($completion, function *($completion) {
|
|
2799
2823
|
$onCancel(it);
|
|
2800
2824
|
return Unit_instance;
|
|
2801
|
-
}, 1);
|
|
2825
|
+
}), 1);
|
|
2802
2826
|
}
|
|
2803
2827
|
function AttoAccountMonitorAsync$onReceivable$slambda$slambda($onReceivable) {
|
|
2804
|
-
return constructCallableReference(
|
|
2805
|
-
|
|
2828
|
+
return constructCallableReference((it, $completion) => orPromise($completion, function *($completion) {
|
|
2829
|
+
var it_0 = it;
|
|
2830
|
+
$onReceivable(it_0);
|
|
2806
2831
|
return Unit_instance;
|
|
2807
|
-
}, 1);
|
|
2832
|
+
}), 1);
|
|
2808
2833
|
}
|
|
2809
2834
|
function AttoAccountMonitorAsync$onReceivable$slambda_0($stream, $onCancel, $onReceivable) {
|
|
2810
|
-
return constructCallableReference(
|
|
2835
|
+
return constructCallableReference(($this$launch, $completion) => orPromise($completion, function *($completion) {
|
|
2811
2836
|
var tmp;
|
|
2812
2837
|
try {
|
|
2813
2838
|
var tmp_0 = AttoAccountMonitorAsync$onReceivable$slambda$slambda($onReceivable);
|
|
2814
|
-
yield* $stream.
|
|
2815
|
-
tmp = yield* $onCancel(null, $completion);
|
|
2839
|
+
yield* $stream.collect_aksokr_k$(new sam$kotlinx_coroutines_flow_FlowCollector$0_18(tmp_0), $completion);
|
|
2840
|
+
tmp = yield* $($onCancel(null, $completion), $completion);
|
|
2816
2841
|
} catch ($p) {
|
|
2817
2842
|
var tmp_1;
|
|
2818
2843
|
if ($p instanceof CancellationException) {
|
|
2819
2844
|
var e = $p;
|
|
2820
|
-
yield* $onCancel(null, $completion);
|
|
2845
|
+
yield* $($onCancel(null, $completion), $completion);
|
|
2821
2846
|
throw e;
|
|
2822
2847
|
} else {
|
|
2823
2848
|
if ($p instanceof Error) {
|
|
2824
2849
|
var e_0 = $p;
|
|
2825
|
-
tmp_1 = yield* $onCancel(e_0, $completion);
|
|
2850
|
+
tmp_1 = yield* $($onCancel(e_0, $completion), $completion);
|
|
2826
2851
|
} else {
|
|
2827
2852
|
throw $p;
|
|
2828
2853
|
}
|
|
@@ -2830,38 +2855,39 @@ function AttoAccountMonitorAsync$onReceivable$slambda_0($stream, $onCancel, $onR
|
|
|
2830
2855
|
tmp = tmp_1;
|
|
2831
2856
|
}
|
|
2832
2857
|
return Unit_instance;
|
|
2833
|
-
}, 1);
|
|
2858
|
+
}), 1);
|
|
2834
2859
|
}
|
|
2835
2860
|
function AttoTransactionMonitorAsync$onTransaction$slambda($onCancel) {
|
|
2836
|
-
return constructCallableReference(
|
|
2861
|
+
return constructCallableReference((it, $completion) => orPromise($completion, function *($completion) {
|
|
2837
2862
|
$onCancel(it);
|
|
2838
2863
|
return Unit_instance;
|
|
2839
|
-
}, 1);
|
|
2864
|
+
}), 1);
|
|
2840
2865
|
}
|
|
2841
2866
|
function AttoTransactionMonitorAsync$onTransaction$slambda$slambda($onTransaction) {
|
|
2842
|
-
return constructCallableReference(
|
|
2843
|
-
|
|
2844
|
-
yield*
|
|
2867
|
+
return constructCallableReference((it, $completion) => orPromise($completion, function *($completion) {
|
|
2868
|
+
var it_0 = it;
|
|
2869
|
+
yield* $($onTransaction(it_0.value_1, $completion), $completion);
|
|
2870
|
+
yield* it_0.acknowledge_f0kq2j_k$($completion);
|
|
2845
2871
|
return Unit_instance;
|
|
2846
|
-
}, 1);
|
|
2872
|
+
}), 1);
|
|
2847
2873
|
}
|
|
2848
2874
|
function AttoTransactionMonitorAsync$onTransaction$slambda_0($stream, $onCancel, $onTransaction) {
|
|
2849
|
-
return constructCallableReference(
|
|
2875
|
+
return constructCallableReference(($this$launch, $completion) => orPromise($completion, function *($completion) {
|
|
2850
2876
|
var tmp;
|
|
2851
2877
|
try {
|
|
2852
2878
|
var tmp_0 = AttoTransactionMonitorAsync$onTransaction$slambda$slambda($onTransaction);
|
|
2853
|
-
yield* $stream.
|
|
2854
|
-
tmp = yield* $onCancel(null, $completion);
|
|
2879
|
+
yield* $stream.collect_aksokr_k$(new sam$kotlinx_coroutines_flow_FlowCollector$0_19(tmp_0), $completion);
|
|
2880
|
+
tmp = yield* $($onCancel(null, $completion), $completion);
|
|
2855
2881
|
} catch ($p) {
|
|
2856
2882
|
var tmp_1;
|
|
2857
2883
|
if ($p instanceof CancellationException) {
|
|
2858
2884
|
var e = $p;
|
|
2859
|
-
yield* $onCancel(null, $completion);
|
|
2885
|
+
yield* $($onCancel(null, $completion), $completion);
|
|
2860
2886
|
throw e;
|
|
2861
2887
|
} else {
|
|
2862
2888
|
if ($p instanceof Error) {
|
|
2863
2889
|
var e_0 = $p;
|
|
2864
|
-
tmp_1 = yield* $onCancel(e_0, $completion);
|
|
2890
|
+
tmp_1 = yield* $($onCancel(e_0, $completion), $completion);
|
|
2865
2891
|
} else {
|
|
2866
2892
|
throw $p;
|
|
2867
2893
|
}
|
|
@@ -2869,24 +2895,24 @@ function AttoTransactionMonitorAsync$onTransaction$slambda_0($stream, $onCancel,
|
|
|
2869
2895
|
tmp = tmp_1;
|
|
2870
2896
|
}
|
|
2871
2897
|
return Unit_instance;
|
|
2872
|
-
}, 1);
|
|
2898
|
+
}), 1);
|
|
2873
2899
|
}
|
|
2874
2900
|
//region block: post-declaration
|
|
2875
2901
|
initMetadataForCompanion(Companion);
|
|
2876
2902
|
initMetadataForCompanion(Companion_0);
|
|
2877
|
-
protoOf($serializer).
|
|
2903
|
+
protoOf($serializer).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers;
|
|
2878
2904
|
initMetadataForObject($serializer, '$serializer', VOID, VOID, [GeneratedSerializer]);
|
|
2879
2905
|
initMetadataForClass(TimeDifferenceResponse, 'TimeDifferenceResponse', VOID, VOID, VOID, VOID, VOID, {0: $serializer_getInstance});
|
|
2880
2906
|
initMetadataForCompanion(Companion_1);
|
|
2881
|
-
protoOf($serializer_0).
|
|
2907
|
+
protoOf($serializer_0).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers;
|
|
2882
2908
|
initMetadataForObject($serializer_0, '$serializer', VOID, VOID, [GeneratedSerializer]);
|
|
2883
2909
|
initMetadataForClass(AccountSearch, 'AccountSearch', VOID, VOID, VOID, VOID, VOID, {0: $serializer_getInstance_0});
|
|
2884
2910
|
initMetadataForCompanion(Companion_2);
|
|
2885
|
-
protoOf($serializer_1).
|
|
2911
|
+
protoOf($serializer_1).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers;
|
|
2886
2912
|
initMetadataForObject($serializer_1, '$serializer', VOID, VOID, [GeneratedSerializer]);
|
|
2887
2913
|
initMetadataForClass(AccountHeightSearch, 'AccountHeightSearch', VOID, VOID, VOID, VOID, VOID, {0: $serializer_getInstance_1});
|
|
2888
2914
|
initMetadataForCompanion(Companion_3);
|
|
2889
|
-
protoOf($serializer_2).
|
|
2915
|
+
protoOf($serializer_2).typeParametersSerializers_fr94fx_k$ = typeParametersSerializers;
|
|
2890
2916
|
initMetadataForObject($serializer_2, '$serializer', VOID, VOID, [GeneratedSerializer]);
|
|
2891
2917
|
initMetadataForClass(HeightSearch, 'HeightSearch', VOID, VOID, VOID, VOID, VOID, {0: $serializer_getInstance_2});
|
|
2892
2918
|
initMetadataForInterface(AttoNodeOperations, 'AttoNodeOperations', VOID, VOID, VOID, [1, 0]);
|
|
@@ -2969,8 +2995,8 @@ export {
|
|
|
2969
2995
|
TimeDifferenceResponse as TimeDifferenceResponse10pcc7bvyvb3b,
|
|
2970
2996
|
requireMatchingPublish as requireMatchingPublishbh1qmbktx90e,
|
|
2971
2997
|
toAsync as toAsync1y1ofd781df0q,
|
|
2972
|
-
Companion_instance_2 as
|
|
2973
|
-
now as
|
|
2998
|
+
Companion_instance_2 as Companion_instance1d7g21ro2o5he,
|
|
2999
|
+
now as now3glzlynvi6bdi,
|
|
2974
3000
|
};
|
|
2975
3001
|
//endregion
|
|
2976
3002
|
|