@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,384 @@
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
+
20
+ /** This is a Lightspark node with remote signing. **/
21
+ class LightsparkNodeWithRemoteSigning implements LightsparkNode {
22
+ constructor(
23
+ public readonly id: string,
24
+ public readonly createdAt: string,
25
+ public readonly updatedAt: string,
26
+ public readonly bitcoinNetwork: BitcoinNetwork,
27
+ public readonly displayName: string,
28
+ public readonly ownerId: string,
29
+ public readonly umaPrescreeningUtxos: string[],
30
+ public readonly typename: string,
31
+ public readonly alias?: string,
32
+ public readonly color?: string,
33
+ public readonly conductivity?: number,
34
+ public readonly publicKey?: string,
35
+ public readonly status?: LightsparkNodeStatus,
36
+ public readonly totalBalance?: CurrencyAmount,
37
+ public readonly totalLocalBalance?: CurrencyAmount,
38
+ public readonly localBalance?: CurrencyAmount,
39
+ public readonly remoteBalance?: CurrencyAmount,
40
+ public readonly blockchainBalance?: BlockchainBalance,
41
+ ) {
42
+ autoBind(this);
43
+ }
44
+
45
+ public async getAddresses(
46
+ client: LightsparkClient,
47
+ first: number | undefined = undefined,
48
+ types: NodeAddressType[] | undefined = undefined,
49
+ ): Promise<NodeToAddressesConnection> {
50
+ return (await client.executeRawQuery({
51
+ queryPayload: `
52
+ query FetchNodeToAddressesConnection($entity_id: ID!, $first: Int, $types: [NodeAddressType!]) {
53
+ entity(id: $entity_id) {
54
+ ... on LightsparkNodeWithRemoteSigning {
55
+ addresses(, first: $first, types: $types) {
56
+ __typename
57
+ node_to_addresses_connection_count: count
58
+ node_to_addresses_connection_entities: entities {
59
+ __typename
60
+ node_address_address: address
61
+ node_address_type: type
62
+ }
63
+ }
64
+ }
65
+ }
66
+ }
67
+ `,
68
+ variables: { entity_id: this.id, first: first, types: types },
69
+ constructObject: (json) => {
70
+ const connection = json["entity"]["addresses"];
71
+ return NodeToAddressesConnectionFromJson(connection);
72
+ },
73
+ }))!;
74
+ }
75
+
76
+ public async getChannels(
77
+ client: LightsparkClient,
78
+ first: number | undefined = undefined,
79
+ statuses: ChannelStatus[] | undefined = undefined,
80
+ after: string | undefined = undefined,
81
+ ): Promise<LightsparkNodeToChannelsConnection> {
82
+ return (await client.executeRawQuery({
83
+ queryPayload: `
84
+ query FetchLightsparkNodeToChannelsConnection($entity_id: ID!, $first: Int, $statuses: [ChannelStatus!], $after: String) {
85
+ entity(id: $entity_id) {
86
+ ... on LightsparkNodeWithRemoteSigning {
87
+ channels(, first: $first, statuses: $statuses, after: $after) {
88
+ __typename
89
+ lightspark_node_to_channels_connection_count: count
90
+ lightspark_node_to_channels_connection_page_info: page_info {
91
+ __typename
92
+ page_info_has_next_page: has_next_page
93
+ page_info_has_previous_page: has_previous_page
94
+ page_info_start_cursor: start_cursor
95
+ page_info_end_cursor: end_cursor
96
+ }
97
+ lightspark_node_to_channels_connection_entities: entities {
98
+ __typename
99
+ channel_id: id
100
+ channel_created_at: created_at
101
+ channel_updated_at: updated_at
102
+ channel_funding_transaction: funding_transaction {
103
+ id
104
+ }
105
+ channel_capacity: capacity {
106
+ __typename
107
+ currency_amount_original_value: original_value
108
+ currency_amount_original_unit: original_unit
109
+ currency_amount_preferred_currency_unit: preferred_currency_unit
110
+ currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
111
+ currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
112
+ }
113
+ channel_local_balance: local_balance {
114
+ __typename
115
+ currency_amount_original_value: original_value
116
+ currency_amount_original_unit: original_unit
117
+ currency_amount_preferred_currency_unit: preferred_currency_unit
118
+ currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
119
+ currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
120
+ }
121
+ channel_local_unsettled_balance: local_unsettled_balance {
122
+ __typename
123
+ currency_amount_original_value: original_value
124
+ currency_amount_original_unit: original_unit
125
+ currency_amount_preferred_currency_unit: preferred_currency_unit
126
+ currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
127
+ currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
128
+ }
129
+ channel_remote_balance: remote_balance {
130
+ __typename
131
+ currency_amount_original_value: original_value
132
+ currency_amount_original_unit: original_unit
133
+ currency_amount_preferred_currency_unit: preferred_currency_unit
134
+ currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
135
+ currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
136
+ }
137
+ channel_remote_unsettled_balance: remote_unsettled_balance {
138
+ __typename
139
+ currency_amount_original_value: original_value
140
+ currency_amount_original_unit: original_unit
141
+ currency_amount_preferred_currency_unit: preferred_currency_unit
142
+ currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
143
+ currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
144
+ }
145
+ channel_unsettled_balance: unsettled_balance {
146
+ __typename
147
+ currency_amount_original_value: original_value
148
+ currency_amount_original_unit: original_unit
149
+ currency_amount_preferred_currency_unit: preferred_currency_unit
150
+ currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
151
+ currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
152
+ }
153
+ channel_total_balance: total_balance {
154
+ __typename
155
+ currency_amount_original_value: original_value
156
+ currency_amount_original_unit: original_unit
157
+ currency_amount_preferred_currency_unit: preferred_currency_unit
158
+ currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
159
+ currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
160
+ }
161
+ channel_status: status
162
+ channel_estimated_force_closure_wait_minutes: estimated_force_closure_wait_minutes
163
+ channel_commit_fee: commit_fee {
164
+ __typename
165
+ currency_amount_original_value: original_value
166
+ currency_amount_original_unit: original_unit
167
+ currency_amount_preferred_currency_unit: preferred_currency_unit
168
+ currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
169
+ currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
170
+ }
171
+ channel_fees: fees {
172
+ __typename
173
+ channel_fees_base_fee: base_fee {
174
+ __typename
175
+ currency_amount_original_value: original_value
176
+ currency_amount_original_unit: original_unit
177
+ currency_amount_preferred_currency_unit: preferred_currency_unit
178
+ currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
179
+ currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
180
+ }
181
+ channel_fees_fee_rate_per_mil: fee_rate_per_mil
182
+ }
183
+ channel_remote_node: remote_node {
184
+ id
185
+ }
186
+ channel_local_node: local_node {
187
+ id
188
+ }
189
+ channel_short_channel_id: short_channel_id
190
+ }
191
+ }
192
+ }
193
+ }
194
+ }
195
+ `,
196
+ variables: {
197
+ entity_id: this.id,
198
+ first: first,
199
+ statuses: statuses,
200
+ after: after,
201
+ },
202
+ constructObject: (json) => {
203
+ const connection = json["entity"]["channels"];
204
+ return LightsparkNodeToChannelsConnectionFromJson(connection);
205
+ },
206
+ }))!;
207
+ }
208
+
209
+ static getLightsparkNodeWithRemoteSigningQuery(
210
+ id: string,
211
+ ): Query<LightsparkNodeWithRemoteSigning> {
212
+ return {
213
+ queryPayload: `
214
+ query GetLightsparkNodeWithRemoteSigning($id: ID!) {
215
+ entity(id: $id) {
216
+ ... on LightsparkNodeWithRemoteSigning {
217
+ ...LightsparkNodeWithRemoteSigningFragment
218
+ }
219
+ }
220
+ }
221
+
222
+ ${FRAGMENT}
223
+ `,
224
+ variables: { id },
225
+ constructObject: (data: any) =>
226
+ LightsparkNodeWithRemoteSigningFromJson(data.entity),
227
+ };
228
+ }
229
+ }
230
+
231
+ export const LightsparkNodeWithRemoteSigningFromJson = (
232
+ obj: any,
233
+ ): LightsparkNodeWithRemoteSigning => {
234
+ return new LightsparkNodeWithRemoteSigning(
235
+ obj["lightspark_node_with_remote_signing_id"],
236
+ obj["lightspark_node_with_remote_signing_created_at"],
237
+ obj["lightspark_node_with_remote_signing_updated_at"],
238
+ BitcoinNetwork[
239
+ obj["lightspark_node_with_remote_signing_bitcoin_network"]
240
+ ] ?? BitcoinNetwork.FUTURE_VALUE,
241
+ obj["lightspark_node_with_remote_signing_display_name"],
242
+ obj["lightspark_node_with_remote_signing_owner"].id,
243
+ obj["lightspark_node_with_remote_signing_uma_prescreening_utxos"],
244
+ "LightsparkNodeWithRemoteSigning",
245
+ obj["lightspark_node_with_remote_signing_alias"],
246
+ obj["lightspark_node_with_remote_signing_color"],
247
+ obj["lightspark_node_with_remote_signing_conductivity"],
248
+ obj["lightspark_node_with_remote_signing_public_key"],
249
+ !!obj["lightspark_node_with_remote_signing_status"]
250
+ ? LightsparkNodeStatus[
251
+ obj["lightspark_node_with_remote_signing_status"]
252
+ ] ?? LightsparkNodeStatus.FUTURE_VALUE
253
+ : null,
254
+ !!obj["lightspark_node_with_remote_signing_total_balance"]
255
+ ? CurrencyAmountFromJson(
256
+ obj["lightspark_node_with_remote_signing_total_balance"],
257
+ )
258
+ : undefined,
259
+ !!obj["lightspark_node_with_remote_signing_total_local_balance"]
260
+ ? CurrencyAmountFromJson(
261
+ obj["lightspark_node_with_remote_signing_total_local_balance"],
262
+ )
263
+ : undefined,
264
+ !!obj["lightspark_node_with_remote_signing_local_balance"]
265
+ ? CurrencyAmountFromJson(
266
+ obj["lightspark_node_with_remote_signing_local_balance"],
267
+ )
268
+ : undefined,
269
+ !!obj["lightspark_node_with_remote_signing_remote_balance"]
270
+ ? CurrencyAmountFromJson(
271
+ obj["lightspark_node_with_remote_signing_remote_balance"],
272
+ )
273
+ : undefined,
274
+ !!obj["lightspark_node_with_remote_signing_blockchain_balance"]
275
+ ? BlockchainBalanceFromJson(
276
+ obj["lightspark_node_with_remote_signing_blockchain_balance"],
277
+ )
278
+ : undefined,
279
+ );
280
+ };
281
+
282
+ export const FRAGMENT = `
283
+ fragment LightsparkNodeWithRemoteSigningFragment on LightsparkNodeWithRemoteSigning {
284
+ __typename
285
+ lightspark_node_with_remote_signing_id: id
286
+ lightspark_node_with_remote_signing_created_at: created_at
287
+ lightspark_node_with_remote_signing_updated_at: updated_at
288
+ lightspark_node_with_remote_signing_alias: alias
289
+ lightspark_node_with_remote_signing_bitcoin_network: bitcoin_network
290
+ lightspark_node_with_remote_signing_color: color
291
+ lightspark_node_with_remote_signing_conductivity: conductivity
292
+ lightspark_node_with_remote_signing_display_name: display_name
293
+ lightspark_node_with_remote_signing_public_key: public_key
294
+ lightspark_node_with_remote_signing_owner: owner {
295
+ id
296
+ }
297
+ lightspark_node_with_remote_signing_status: status
298
+ lightspark_node_with_remote_signing_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_remote_signing_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_remote_signing_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_remote_signing_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_remote_signing_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_remote_signing_uma_prescreening_utxos: uma_prescreening_utxos
382
+ }`;
383
+
384
+ export default LightsparkNodeWithRemoteSigning;