@lightsparkdev/lightspark-sdk 0.4.10 → 1.0.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.
Files changed (125) hide show
  1. package/CHANGELOG.md +30 -0
  2. package/README.md +1 -1
  3. package/dist/{chunk-NXUFC5J7.js → chunk-LZC5C5NI.js} +2908 -635
  4. package/dist/{index-3ffe9e7b.d.ts → index-09d4ac20.d.ts} +373 -62
  5. package/dist/index.cjs +3395 -842
  6. package/dist/index.d.ts +2 -2
  7. package/dist/index.js +390 -94
  8. package/dist/objects/index.cjs +2735 -553
  9. package/dist/objects/index.d.ts +1 -1
  10. package/dist/objects/index.js +17 -5
  11. package/package.json +12 -9
  12. package/src/NodeKeyLoaderCache.ts +87 -0
  13. package/src/SigningKeyLoader.ts +177 -0
  14. package/src/auth/AccountTokenAuthProvider.ts +4 -4
  15. package/src/client.ts +209 -118
  16. package/src/graphql/CreateInvoice.ts +3 -2
  17. package/src/graphql/CreateLnurlInvoice.ts +2 -0
  18. package/src/graphql/CreateUmaInvoice.ts +23 -0
  19. package/src/graphql/MultiNodeDashboard.ts +0 -3
  20. package/src/graphql/PayUmaInvoice.ts +29 -0
  21. package/src/graphql/RecoverNodeSigningKey.ts +1 -1
  22. package/src/graphql/SingleNodeDashboard.ts +0 -1
  23. package/src/lightspark_crypto/lightspark_crypto.d.ts +157 -0
  24. package/src/lightspark_crypto/lightspark_crypto.js +1010 -0
  25. package/src/lightspark_crypto/lightspark_crypto_bg.wasm +0 -0
  26. package/src/lightspark_crypto/lightspark_crypto_bg.wasm.d.ts +120 -0
  27. package/src/lightspark_crypto/package.json +11 -0
  28. package/src/objects/Account.ts +437 -120
  29. package/src/objects/AccountToApiTokensConnection.ts +3 -3
  30. package/src/objects/AccountToChannelsConnection.ts +4 -4
  31. package/src/objects/AccountToNodesConnection.ts +2 -15
  32. package/src/objects/AccountToPaymentRequestsConnection.ts +3 -3
  33. package/src/objects/AccountToTransactionsConnection.ts +6 -6
  34. package/src/objects/AccountToWalletsConnection.ts +2 -2
  35. package/src/objects/Balances.ts +2 -2
  36. package/src/objects/Channel.ts +4 -4
  37. package/src/objects/ChannelClosingTransaction.ts +2 -2
  38. package/src/objects/ChannelOpeningTransaction.ts +2 -2
  39. package/src/objects/ChannelToTransactionsConnection.ts +4 -4
  40. package/src/objects/{CryptoSanctionsScreeningProvider.ts → ComplianceProvider.ts} +3 -3
  41. package/src/objects/Connection.ts +25 -31
  42. package/src/objects/CreateApiTokenInput.ts +1 -1
  43. package/src/objects/CreateApiTokenOutput.ts +1 -1
  44. package/src/objects/CreateInvoiceInput.ts +0 -6
  45. package/src/objects/CreateLnurlInvoiceInput.ts +1 -7
  46. package/src/objects/CreateNodeWalletAddressInput.ts +1 -1
  47. package/src/objects/CreateNodeWalletAddressOutput.ts +1 -1
  48. package/src/objects/CreateTestModeInvoiceInput.ts +1 -1
  49. package/src/objects/CreateTestModeInvoiceOutput.ts +1 -1
  50. package/src/objects/CreateTestModePaymentInput.ts +1 -1
  51. package/src/objects/CreateTestModePaymentoutput.ts +14 -2
  52. package/src/objects/CreateUmaInvoiceInput.ts +24 -0
  53. package/src/objects/DeclineToSignMessagesInput.ts +16 -0
  54. package/src/objects/DeclineToSignMessagesOutput.ts +28 -0
  55. package/src/objects/DeleteApiTokenOutput.ts +1 -1
  56. package/src/objects/Entity.ts +401 -66
  57. package/src/objects/GraphNode.ts +3 -3
  58. package/src/objects/IdAndSignature.ts +16 -0
  59. package/src/objects/IncomingPayment.ts +21 -8
  60. package/src/objects/IncomingPaymentAttempt.ts +2 -2
  61. package/src/objects/IncomingPaymentToAttemptsConnection.ts +3 -3
  62. package/src/objects/Invoice.ts +118 -21
  63. package/src/objects/InvoiceData.ts +118 -21
  64. package/src/objects/LightningFeeEstimateForInvoiceInput.ts +1 -1
  65. package/src/objects/LightningFeeEstimateForNodeInput.ts +1 -1
  66. package/src/objects/LightningFeeEstimateOutput.ts +2 -2
  67. package/src/objects/LightningTransaction.ts +155 -31
  68. package/src/objects/LightsparkNode.ts +272 -112
  69. package/src/objects/LightsparkNodeOwner.ts +8 -4
  70. package/src/objects/LightsparkNodeToChannelsConnection.ts +3 -3
  71. package/src/objects/LightsparkNodeWithOSK.ts +389 -0
  72. package/src/objects/LightsparkNodeWithRemoteSigning.ts +384 -0
  73. package/src/objects/Node.ts +213 -60
  74. package/src/objects/NodeToAddressesConnection.ts +2 -2
  75. package/src/objects/OnChainTransaction.ts +2 -2
  76. package/src/objects/OutgoingPayment.ts +139 -24
  77. package/src/objects/OutgoingPaymentAttempt.ts +5 -5
  78. package/src/objects/OutgoingPaymentAttemptToHopsConnection.ts +3 -3
  79. package/src/objects/OutgoingPaymentToAttemptsConnection.ts +3 -3
  80. package/src/objects/OutgoingPaymentsForInvoiceQueryInput.ts +25 -0
  81. package/src/objects/OutgoingPaymentsForInvoiceQueryOutput.ts +28 -0
  82. package/src/objects/PayUmaInvoiceInput.ts +25 -0
  83. package/src/objects/{LightsparkNodePurpose.ts → PaymentDirection.ts} +5 -7
  84. package/src/objects/PaymentRequest.ts +119 -22
  85. package/src/objects/PaymentRequestData.ts +119 -22
  86. package/src/objects/PostTransactionData.ts +39 -0
  87. package/src/objects/RegisterPaymentInput.ts +31 -0
  88. package/src/objects/RegisterPaymentOutput.ts +23 -0
  89. package/src/objects/ReleaseChannelPerCommitmentSecretInput.ts +23 -0
  90. package/src/objects/ReleaseChannelPerCommitmentSecretOutput.ts +23 -0
  91. package/src/objects/ReleasePaymentPreimageInput.ts +20 -0
  92. package/src/objects/ReleasePaymentPreimageOutput.ts +23 -0
  93. package/src/objects/RemoteSigningSubEventType.ts +26 -0
  94. package/src/objects/RequestWithdrawalInput.ts +1 -1
  95. package/src/objects/RequestWithdrawalOutput.ts +1 -1
  96. package/src/objects/RoutingTransaction.ts +1 -1
  97. package/src/objects/ScreenNodeInput.ts +20 -0
  98. package/src/objects/ScreenNodeOutput.ts +22 -0
  99. package/src/objects/SetInvoicePaymentHashInput.ts +24 -0
  100. package/src/objects/SetInvoicePaymentHashOutput.ts +23 -0
  101. package/src/objects/SignInvoiceInput.ts +19 -0
  102. package/src/objects/SignInvoiceOutput.ts +21 -0
  103. package/src/objects/SignMessagesInput.ts +18 -0
  104. package/src/objects/SignMessagesOutput.ts +26 -0
  105. package/src/objects/Signable.ts +58 -0
  106. package/src/objects/SignablePayload.ts +93 -0
  107. package/src/objects/SignablePayloadStatus.ts +17 -0
  108. package/src/objects/SingleNodeDashboard.ts +0 -2
  109. package/src/objects/Transaction.ts +153 -29
  110. package/src/objects/TransactionFailures.ts +1 -1
  111. package/src/objects/UpdateChannelPerCommitmentPointInput.ts +25 -0
  112. package/src/objects/UpdateChannelPerCommitmentPointOutput.ts +23 -0
  113. package/src/objects/UpdateNodeSharedSecretInput.ts +18 -0
  114. package/src/objects/UpdateNodeSharedSecretOutput.ts +23 -0
  115. package/src/objects/Wallet.ts +271 -51
  116. package/src/objects/WalletToPaymentRequestsConnection.ts +3 -3
  117. package/src/objects/WalletToTransactionsConnection.ts +3 -3
  118. package/src/objects/WithdrawalRequest.ts +6 -6
  119. package/src/objects/WithdrawalRequestToChannelClosingTransactionsConnection.ts +2 -2
  120. package/src/objects/WithdrawalRequestToChannelOpeningTransactionsConnection.ts +2 -2
  121. package/src/objects/index.ts +37 -4
  122. package/src/{__tests__ → tests}/webhooks.test.ts +1 -1
  123. package/src/webhooks.ts +1 -1
  124. package/src/objects/ScreenBitcoinAddressesInput.ts +0 -23
  125. package/src/objects/ScreenBitcoinAddressesOutput.ts +0 -25
@@ -0,0 +1,389 @@
1
+ // Copyright ©, 2023-present, Lightspark Group, Inc. - All Rights Reserved
2
+
3
+ import { type Query } from "@lightsparkdev/core";
4
+ import autoBind from "auto-bind";
5
+ import type LightsparkClient from "../client.js";
6
+ import BitcoinNetwork from "./BitcoinNetwork.js";
7
+ import type BlockchainBalance from "./BlockchainBalance.js";
8
+ import { BlockchainBalanceFromJson } from "./BlockchainBalance.js";
9
+ import type ChannelStatus from "./ChannelStatus.js";
10
+ import type CurrencyAmount from "./CurrencyAmount.js";
11
+ import { CurrencyAmountFromJson } from "./CurrencyAmount.js";
12
+ import type LightsparkNode from "./LightsparkNode.js";
13
+ import LightsparkNodeStatus from "./LightsparkNodeStatus.js";
14
+ import type LightsparkNodeToChannelsConnection from "./LightsparkNodeToChannelsConnection.js";
15
+ import { LightsparkNodeToChannelsConnectionFromJson } from "./LightsparkNodeToChannelsConnection.js";
16
+ import type NodeAddressType from "./NodeAddressType.js";
17
+ import type NodeToAddressesConnection from "./NodeToAddressesConnection.js";
18
+ import { NodeToAddressesConnectionFromJson } from "./NodeToAddressesConnection.js";
19
+ import type Secret from "./Secret.js";
20
+ import { SecretFromJson } from "./Secret.js";
21
+
22
+ /** This is a Lightspark node with OSK. **/
23
+ class LightsparkNodeWithOSK implements LightsparkNode {
24
+ constructor(
25
+ public readonly id: string,
26
+ public readonly createdAt: string,
27
+ public readonly updatedAt: string,
28
+ public readonly bitcoinNetwork: BitcoinNetwork,
29
+ public readonly displayName: string,
30
+ public readonly ownerId: string,
31
+ public readonly umaPrescreeningUtxos: string[],
32
+ public readonly typename: string,
33
+ public readonly alias?: string,
34
+ public readonly color?: string,
35
+ public readonly conductivity?: number,
36
+ public readonly publicKey?: string,
37
+ public readonly status?: LightsparkNodeStatus,
38
+ public readonly totalBalance?: CurrencyAmount,
39
+ public readonly totalLocalBalance?: CurrencyAmount,
40
+ public readonly localBalance?: CurrencyAmount,
41
+ public readonly remoteBalance?: CurrencyAmount,
42
+ public readonly blockchainBalance?: BlockchainBalance,
43
+ public readonly encryptedSigningPrivateKey?: Secret,
44
+ ) {
45
+ autoBind(this);
46
+ }
47
+
48
+ public async getAddresses(
49
+ client: LightsparkClient,
50
+ first: number | undefined = undefined,
51
+ types: NodeAddressType[] | undefined = undefined,
52
+ ): Promise<NodeToAddressesConnection> {
53
+ return (await client.executeRawQuery({
54
+ queryPayload: `
55
+ query FetchNodeToAddressesConnection($entity_id: ID!, $first: Int, $types: [NodeAddressType!]) {
56
+ entity(id: $entity_id) {
57
+ ... on LightsparkNodeWithOSK {
58
+ addresses(, first: $first, types: $types) {
59
+ __typename
60
+ node_to_addresses_connection_count: count
61
+ node_to_addresses_connection_entities: entities {
62
+ __typename
63
+ node_address_address: address
64
+ node_address_type: type
65
+ }
66
+ }
67
+ }
68
+ }
69
+ }
70
+ `,
71
+ variables: { entity_id: this.id, first: first, types: types },
72
+ constructObject: (json) => {
73
+ const connection = json["entity"]["addresses"];
74
+ return NodeToAddressesConnectionFromJson(connection);
75
+ },
76
+ }))!;
77
+ }
78
+
79
+ public async getChannels(
80
+ client: LightsparkClient,
81
+ first: number | undefined = undefined,
82
+ statuses: ChannelStatus[] | undefined = undefined,
83
+ after: string | undefined = undefined,
84
+ ): Promise<LightsparkNodeToChannelsConnection> {
85
+ return (await client.executeRawQuery({
86
+ queryPayload: `
87
+ query FetchLightsparkNodeToChannelsConnection($entity_id: ID!, $first: Int, $statuses: [ChannelStatus!], $after: String) {
88
+ entity(id: $entity_id) {
89
+ ... on LightsparkNodeWithOSK {
90
+ channels(, first: $first, statuses: $statuses, after: $after) {
91
+ __typename
92
+ lightspark_node_to_channels_connection_count: count
93
+ lightspark_node_to_channels_connection_page_info: page_info {
94
+ __typename
95
+ page_info_has_next_page: has_next_page
96
+ page_info_has_previous_page: has_previous_page
97
+ page_info_start_cursor: start_cursor
98
+ page_info_end_cursor: end_cursor
99
+ }
100
+ lightspark_node_to_channels_connection_entities: entities {
101
+ __typename
102
+ channel_id: id
103
+ channel_created_at: created_at
104
+ channel_updated_at: updated_at
105
+ channel_funding_transaction: funding_transaction {
106
+ id
107
+ }
108
+ channel_capacity: capacity {
109
+ __typename
110
+ currency_amount_original_value: original_value
111
+ currency_amount_original_unit: original_unit
112
+ currency_amount_preferred_currency_unit: preferred_currency_unit
113
+ currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
114
+ currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
115
+ }
116
+ channel_local_balance: local_balance {
117
+ __typename
118
+ currency_amount_original_value: original_value
119
+ currency_amount_original_unit: original_unit
120
+ currency_amount_preferred_currency_unit: preferred_currency_unit
121
+ currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
122
+ currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
123
+ }
124
+ channel_local_unsettled_balance: local_unsettled_balance {
125
+ __typename
126
+ currency_amount_original_value: original_value
127
+ currency_amount_original_unit: original_unit
128
+ currency_amount_preferred_currency_unit: preferred_currency_unit
129
+ currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
130
+ currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
131
+ }
132
+ channel_remote_balance: remote_balance {
133
+ __typename
134
+ currency_amount_original_value: original_value
135
+ currency_amount_original_unit: original_unit
136
+ currency_amount_preferred_currency_unit: preferred_currency_unit
137
+ currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
138
+ currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
139
+ }
140
+ channel_remote_unsettled_balance: remote_unsettled_balance {
141
+ __typename
142
+ currency_amount_original_value: original_value
143
+ currency_amount_original_unit: original_unit
144
+ currency_amount_preferred_currency_unit: preferred_currency_unit
145
+ currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
146
+ currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
147
+ }
148
+ channel_unsettled_balance: unsettled_balance {
149
+ __typename
150
+ currency_amount_original_value: original_value
151
+ currency_amount_original_unit: original_unit
152
+ currency_amount_preferred_currency_unit: preferred_currency_unit
153
+ currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
154
+ currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
155
+ }
156
+ channel_total_balance: total_balance {
157
+ __typename
158
+ currency_amount_original_value: original_value
159
+ currency_amount_original_unit: original_unit
160
+ currency_amount_preferred_currency_unit: preferred_currency_unit
161
+ currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
162
+ currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
163
+ }
164
+ channel_status: status
165
+ channel_estimated_force_closure_wait_minutes: estimated_force_closure_wait_minutes
166
+ channel_commit_fee: commit_fee {
167
+ __typename
168
+ currency_amount_original_value: original_value
169
+ currency_amount_original_unit: original_unit
170
+ currency_amount_preferred_currency_unit: preferred_currency_unit
171
+ currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
172
+ currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
173
+ }
174
+ channel_fees: fees {
175
+ __typename
176
+ channel_fees_base_fee: base_fee {
177
+ __typename
178
+ currency_amount_original_value: original_value
179
+ currency_amount_original_unit: original_unit
180
+ currency_amount_preferred_currency_unit: preferred_currency_unit
181
+ currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
182
+ currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
183
+ }
184
+ channel_fees_fee_rate_per_mil: fee_rate_per_mil
185
+ }
186
+ channel_remote_node: remote_node {
187
+ id
188
+ }
189
+ channel_local_node: local_node {
190
+ id
191
+ }
192
+ channel_short_channel_id: short_channel_id
193
+ }
194
+ }
195
+ }
196
+ }
197
+ }
198
+ `,
199
+ variables: {
200
+ entity_id: this.id,
201
+ first: first,
202
+ statuses: statuses,
203
+ after: after,
204
+ },
205
+ constructObject: (json) => {
206
+ const connection = json["entity"]["channels"];
207
+ return LightsparkNodeToChannelsConnectionFromJson(connection);
208
+ },
209
+ }))!;
210
+ }
211
+
212
+ static getLightsparkNodeWithOSKQuery(
213
+ id: string,
214
+ ): Query<LightsparkNodeWithOSK> {
215
+ return {
216
+ queryPayload: `
217
+ query GetLightsparkNodeWithOSK($id: ID!) {
218
+ entity(id: $id) {
219
+ ... on LightsparkNodeWithOSK {
220
+ ...LightsparkNodeWithOSKFragment
221
+ }
222
+ }
223
+ }
224
+
225
+ ${FRAGMENT}
226
+ `,
227
+ variables: { id },
228
+ constructObject: (data: any) =>
229
+ LightsparkNodeWithOSKFromJson(data.entity),
230
+ };
231
+ }
232
+ }
233
+
234
+ export const LightsparkNodeWithOSKFromJson = (
235
+ obj: any,
236
+ ): LightsparkNodeWithOSK => {
237
+ return new LightsparkNodeWithOSK(
238
+ obj["lightspark_node_with_o_s_k_id"],
239
+ obj["lightspark_node_with_o_s_k_created_at"],
240
+ obj["lightspark_node_with_o_s_k_updated_at"],
241
+ BitcoinNetwork[obj["lightspark_node_with_o_s_k_bitcoin_network"]] ??
242
+ BitcoinNetwork.FUTURE_VALUE,
243
+ obj["lightspark_node_with_o_s_k_display_name"],
244
+ obj["lightspark_node_with_o_s_k_owner"].id,
245
+ obj["lightspark_node_with_o_s_k_uma_prescreening_utxos"],
246
+ "LightsparkNodeWithOSK",
247
+ obj["lightspark_node_with_o_s_k_alias"],
248
+ obj["lightspark_node_with_o_s_k_color"],
249
+ obj["lightspark_node_with_o_s_k_conductivity"],
250
+ obj["lightspark_node_with_o_s_k_public_key"],
251
+ !!obj["lightspark_node_with_o_s_k_status"]
252
+ ? LightsparkNodeStatus[obj["lightspark_node_with_o_s_k_status"]] ??
253
+ LightsparkNodeStatus.FUTURE_VALUE
254
+ : null,
255
+ !!obj["lightspark_node_with_o_s_k_total_balance"]
256
+ ? CurrencyAmountFromJson(obj["lightspark_node_with_o_s_k_total_balance"])
257
+ : undefined,
258
+ !!obj["lightspark_node_with_o_s_k_total_local_balance"]
259
+ ? CurrencyAmountFromJson(
260
+ obj["lightspark_node_with_o_s_k_total_local_balance"],
261
+ )
262
+ : undefined,
263
+ !!obj["lightspark_node_with_o_s_k_local_balance"]
264
+ ? CurrencyAmountFromJson(obj["lightspark_node_with_o_s_k_local_balance"])
265
+ : undefined,
266
+ !!obj["lightspark_node_with_o_s_k_remote_balance"]
267
+ ? CurrencyAmountFromJson(obj["lightspark_node_with_o_s_k_remote_balance"])
268
+ : undefined,
269
+ !!obj["lightspark_node_with_o_s_k_blockchain_balance"]
270
+ ? BlockchainBalanceFromJson(
271
+ obj["lightspark_node_with_o_s_k_blockchain_balance"],
272
+ )
273
+ : undefined,
274
+ !!obj["lightspark_node_with_o_s_k_encrypted_signing_private_key"]
275
+ ? SecretFromJson(
276
+ obj["lightspark_node_with_o_s_k_encrypted_signing_private_key"],
277
+ )
278
+ : undefined,
279
+ );
280
+ };
281
+
282
+ export const FRAGMENT = `
283
+ fragment LightsparkNodeWithOSKFragment on LightsparkNodeWithOSK {
284
+ __typename
285
+ lightspark_node_with_o_s_k_id: id
286
+ lightspark_node_with_o_s_k_created_at: created_at
287
+ lightspark_node_with_o_s_k_updated_at: updated_at
288
+ lightspark_node_with_o_s_k_alias: alias
289
+ lightspark_node_with_o_s_k_bitcoin_network: bitcoin_network
290
+ lightspark_node_with_o_s_k_color: color
291
+ lightspark_node_with_o_s_k_conductivity: conductivity
292
+ lightspark_node_with_o_s_k_display_name: display_name
293
+ lightspark_node_with_o_s_k_public_key: public_key
294
+ lightspark_node_with_o_s_k_owner: owner {
295
+ id
296
+ }
297
+ lightspark_node_with_o_s_k_status: status
298
+ lightspark_node_with_o_s_k_total_balance: total_balance {
299
+ __typename
300
+ currency_amount_original_value: original_value
301
+ currency_amount_original_unit: original_unit
302
+ currency_amount_preferred_currency_unit: preferred_currency_unit
303
+ currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
304
+ currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
305
+ }
306
+ lightspark_node_with_o_s_k_total_local_balance: total_local_balance {
307
+ __typename
308
+ currency_amount_original_value: original_value
309
+ currency_amount_original_unit: original_unit
310
+ currency_amount_preferred_currency_unit: preferred_currency_unit
311
+ currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
312
+ currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
313
+ }
314
+ lightspark_node_with_o_s_k_local_balance: local_balance {
315
+ __typename
316
+ currency_amount_original_value: original_value
317
+ currency_amount_original_unit: original_unit
318
+ currency_amount_preferred_currency_unit: preferred_currency_unit
319
+ currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
320
+ currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
321
+ }
322
+ lightspark_node_with_o_s_k_remote_balance: remote_balance {
323
+ __typename
324
+ currency_amount_original_value: original_value
325
+ currency_amount_original_unit: original_unit
326
+ currency_amount_preferred_currency_unit: preferred_currency_unit
327
+ currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
328
+ currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
329
+ }
330
+ lightspark_node_with_o_s_k_blockchain_balance: blockchain_balance {
331
+ __typename
332
+ blockchain_balance_total_balance: total_balance {
333
+ __typename
334
+ currency_amount_original_value: original_value
335
+ currency_amount_original_unit: original_unit
336
+ currency_amount_preferred_currency_unit: preferred_currency_unit
337
+ currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
338
+ currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
339
+ }
340
+ blockchain_balance_confirmed_balance: confirmed_balance {
341
+ __typename
342
+ currency_amount_original_value: original_value
343
+ currency_amount_original_unit: original_unit
344
+ currency_amount_preferred_currency_unit: preferred_currency_unit
345
+ currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
346
+ currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
347
+ }
348
+ blockchain_balance_unconfirmed_balance: unconfirmed_balance {
349
+ __typename
350
+ currency_amount_original_value: original_value
351
+ currency_amount_original_unit: original_unit
352
+ currency_amount_preferred_currency_unit: preferred_currency_unit
353
+ currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
354
+ currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
355
+ }
356
+ blockchain_balance_locked_balance: locked_balance {
357
+ __typename
358
+ currency_amount_original_value: original_value
359
+ currency_amount_original_unit: original_unit
360
+ currency_amount_preferred_currency_unit: preferred_currency_unit
361
+ currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
362
+ currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
363
+ }
364
+ blockchain_balance_required_reserve: required_reserve {
365
+ __typename
366
+ currency_amount_original_value: original_value
367
+ currency_amount_original_unit: original_unit
368
+ currency_amount_preferred_currency_unit: preferred_currency_unit
369
+ currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
370
+ currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
371
+ }
372
+ blockchain_balance_available_balance: available_balance {
373
+ __typename
374
+ currency_amount_original_value: original_value
375
+ currency_amount_original_unit: original_unit
376
+ currency_amount_preferred_currency_unit: preferred_currency_unit
377
+ currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
378
+ currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
379
+ }
380
+ }
381
+ lightspark_node_with_o_s_k_uma_prescreening_utxos: uma_prescreening_utxos
382
+ lightspark_node_with_o_s_k_encrypted_signing_private_key: encrypted_signing_private_key {
383
+ __typename
384
+ secret_encrypted_value: encrypted_value
385
+ secret_cipher: cipher
386
+ }
387
+ }`;
388
+
389
+ export default LightsparkNodeWithOSK;