@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.
- package/CHANGELOG.md +30 -0
- package/README.md +1 -1
- package/dist/{chunk-NXUFC5J7.js → chunk-LZC5C5NI.js} +2908 -635
- package/dist/{index-3ffe9e7b.d.ts → index-09d4ac20.d.ts} +373 -62
- package/dist/index.cjs +3395 -842
- package/dist/index.d.ts +2 -2
- package/dist/index.js +390 -94
- package/dist/objects/index.cjs +2735 -553
- package/dist/objects/index.d.ts +1 -1
- package/dist/objects/index.js +17 -5
- package/package.json +12 -9
- package/src/NodeKeyLoaderCache.ts +87 -0
- package/src/SigningKeyLoader.ts +177 -0
- package/src/auth/AccountTokenAuthProvider.ts +4 -4
- package/src/client.ts +209 -118
- package/src/graphql/CreateInvoice.ts +3 -2
- package/src/graphql/CreateLnurlInvoice.ts +2 -0
- package/src/graphql/CreateUmaInvoice.ts +23 -0
- package/src/graphql/MultiNodeDashboard.ts +0 -3
- package/src/graphql/PayUmaInvoice.ts +29 -0
- package/src/graphql/RecoverNodeSigningKey.ts +1 -1
- package/src/graphql/SingleNodeDashboard.ts +0 -1
- package/src/lightspark_crypto/lightspark_crypto.d.ts +157 -0
- package/src/lightspark_crypto/lightspark_crypto.js +1010 -0
- package/src/lightspark_crypto/lightspark_crypto_bg.wasm +0 -0
- package/src/lightspark_crypto/lightspark_crypto_bg.wasm.d.ts +120 -0
- package/src/lightspark_crypto/package.json +11 -0
- package/src/objects/Account.ts +437 -120
- package/src/objects/AccountToApiTokensConnection.ts +3 -3
- package/src/objects/AccountToChannelsConnection.ts +4 -4
- package/src/objects/AccountToNodesConnection.ts +2 -15
- package/src/objects/AccountToPaymentRequestsConnection.ts +3 -3
- package/src/objects/AccountToTransactionsConnection.ts +6 -6
- package/src/objects/AccountToWalletsConnection.ts +2 -2
- package/src/objects/Balances.ts +2 -2
- package/src/objects/Channel.ts +4 -4
- package/src/objects/ChannelClosingTransaction.ts +2 -2
- package/src/objects/ChannelOpeningTransaction.ts +2 -2
- package/src/objects/ChannelToTransactionsConnection.ts +4 -4
- package/src/objects/{CryptoSanctionsScreeningProvider.ts → ComplianceProvider.ts} +3 -3
- package/src/objects/Connection.ts +25 -31
- package/src/objects/CreateApiTokenInput.ts +1 -1
- package/src/objects/CreateApiTokenOutput.ts +1 -1
- package/src/objects/CreateInvoiceInput.ts +0 -6
- package/src/objects/CreateLnurlInvoiceInput.ts +1 -7
- package/src/objects/CreateNodeWalletAddressInput.ts +1 -1
- package/src/objects/CreateNodeWalletAddressOutput.ts +1 -1
- package/src/objects/CreateTestModeInvoiceInput.ts +1 -1
- package/src/objects/CreateTestModeInvoiceOutput.ts +1 -1
- package/src/objects/CreateTestModePaymentInput.ts +1 -1
- package/src/objects/CreateTestModePaymentoutput.ts +14 -2
- package/src/objects/CreateUmaInvoiceInput.ts +24 -0
- package/src/objects/DeclineToSignMessagesInput.ts +16 -0
- package/src/objects/DeclineToSignMessagesOutput.ts +28 -0
- package/src/objects/DeleteApiTokenOutput.ts +1 -1
- package/src/objects/Entity.ts +401 -66
- package/src/objects/GraphNode.ts +3 -3
- package/src/objects/IdAndSignature.ts +16 -0
- package/src/objects/IncomingPayment.ts +21 -8
- package/src/objects/IncomingPaymentAttempt.ts +2 -2
- package/src/objects/IncomingPaymentToAttemptsConnection.ts +3 -3
- package/src/objects/Invoice.ts +118 -21
- package/src/objects/InvoiceData.ts +118 -21
- package/src/objects/LightningFeeEstimateForInvoiceInput.ts +1 -1
- package/src/objects/LightningFeeEstimateForNodeInput.ts +1 -1
- package/src/objects/LightningFeeEstimateOutput.ts +2 -2
- package/src/objects/LightningTransaction.ts +155 -31
- package/src/objects/LightsparkNode.ts +272 -112
- package/src/objects/LightsparkNodeOwner.ts +8 -4
- package/src/objects/LightsparkNodeToChannelsConnection.ts +3 -3
- package/src/objects/LightsparkNodeWithOSK.ts +389 -0
- package/src/objects/LightsparkNodeWithRemoteSigning.ts +384 -0
- package/src/objects/Node.ts +213 -60
- package/src/objects/NodeToAddressesConnection.ts +2 -2
- package/src/objects/OnChainTransaction.ts +2 -2
- package/src/objects/OutgoingPayment.ts +139 -24
- package/src/objects/OutgoingPaymentAttempt.ts +5 -5
- package/src/objects/OutgoingPaymentAttemptToHopsConnection.ts +3 -3
- package/src/objects/OutgoingPaymentToAttemptsConnection.ts +3 -3
- package/src/objects/OutgoingPaymentsForInvoiceQueryInput.ts +25 -0
- package/src/objects/OutgoingPaymentsForInvoiceQueryOutput.ts +28 -0
- package/src/objects/PayUmaInvoiceInput.ts +25 -0
- package/src/objects/{LightsparkNodePurpose.ts → PaymentDirection.ts} +5 -7
- package/src/objects/PaymentRequest.ts +119 -22
- package/src/objects/PaymentRequestData.ts +119 -22
- package/src/objects/PostTransactionData.ts +39 -0
- package/src/objects/RegisterPaymentInput.ts +31 -0
- package/src/objects/RegisterPaymentOutput.ts +23 -0
- package/src/objects/ReleaseChannelPerCommitmentSecretInput.ts +23 -0
- package/src/objects/ReleaseChannelPerCommitmentSecretOutput.ts +23 -0
- package/src/objects/ReleasePaymentPreimageInput.ts +20 -0
- package/src/objects/ReleasePaymentPreimageOutput.ts +23 -0
- package/src/objects/RemoteSigningSubEventType.ts +26 -0
- package/src/objects/RequestWithdrawalInput.ts +1 -1
- package/src/objects/RequestWithdrawalOutput.ts +1 -1
- package/src/objects/RoutingTransaction.ts +1 -1
- package/src/objects/ScreenNodeInput.ts +20 -0
- package/src/objects/ScreenNodeOutput.ts +22 -0
- package/src/objects/SetInvoicePaymentHashInput.ts +24 -0
- package/src/objects/SetInvoicePaymentHashOutput.ts +23 -0
- package/src/objects/SignInvoiceInput.ts +19 -0
- package/src/objects/SignInvoiceOutput.ts +21 -0
- package/src/objects/SignMessagesInput.ts +18 -0
- package/src/objects/SignMessagesOutput.ts +26 -0
- package/src/objects/Signable.ts +58 -0
- package/src/objects/SignablePayload.ts +93 -0
- package/src/objects/SignablePayloadStatus.ts +17 -0
- package/src/objects/SingleNodeDashboard.ts +0 -2
- package/src/objects/Transaction.ts +153 -29
- package/src/objects/TransactionFailures.ts +1 -1
- package/src/objects/UpdateChannelPerCommitmentPointInput.ts +25 -0
- package/src/objects/UpdateChannelPerCommitmentPointOutput.ts +23 -0
- package/src/objects/UpdateNodeSharedSecretInput.ts +18 -0
- package/src/objects/UpdateNodeSharedSecretOutput.ts +23 -0
- package/src/objects/Wallet.ts +271 -51
- package/src/objects/WalletToPaymentRequestsConnection.ts +3 -3
- package/src/objects/WalletToTransactionsConnection.ts +3 -3
- package/src/objects/WithdrawalRequest.ts +6 -6
- package/src/objects/WithdrawalRequestToChannelClosingTransactionsConnection.ts +2 -2
- package/src/objects/WithdrawalRequestToChannelOpeningTransactionsConnection.ts +2 -2
- package/src/objects/index.ts +37 -4
- package/src/{__tests__ → tests}/webhooks.test.ts +1 -1
- package/src/webhooks.ts +1 -1
- package/src/objects/ScreenBitcoinAddressesInput.ts +0 -23
- package/src/objects/ScreenBitcoinAddressesOutput.ts +0 -25
|
@@ -11,6 +11,7 @@ import IncomingPayment from "./IncomingPayment.js";
|
|
|
11
11
|
import OutgoingPayment from "./OutgoingPayment.js";
|
|
12
12
|
import PaymentFailureReason from "./PaymentFailureReason.js";
|
|
13
13
|
import { PaymentRequestDataFromJson } from "./PaymentRequestData.js";
|
|
14
|
+
import { PostTransactionDataFromJson } from "./PostTransactionData.js";
|
|
14
15
|
import { RichTextFromJson } from "./RichText.js";
|
|
15
16
|
import type RoutingTransaction from "./RoutingTransaction.js";
|
|
16
17
|
import RoutingTransactionFailureReason from "./RoutingTransactionFailureReason.js";
|
|
@@ -128,8 +129,10 @@ export const TransactionFromJson = (obj: any): Transaction => {
|
|
|
128
129
|
"IncomingPayment",
|
|
129
130
|
obj["incoming_payment_resolved_at"],
|
|
130
131
|
obj["incoming_payment_transaction_hash"],
|
|
131
|
-
obj["
|
|
132
|
-
obj["
|
|
132
|
+
obj["incoming_payment_payment_request"]?.id ?? undefined,
|
|
133
|
+
obj["incoming_payment_uma_post_transaction_data"]?.map((e) =>
|
|
134
|
+
PostTransactionDataFromJson(e),
|
|
135
|
+
),
|
|
133
136
|
);
|
|
134
137
|
}
|
|
135
138
|
if (obj["__typename"] == "OutgoingPayment") {
|
|
@@ -150,7 +153,7 @@ export const TransactionFromJson = (obj: any): Transaction => {
|
|
|
150
153
|
: undefined,
|
|
151
154
|
!!obj["outgoing_payment_payment_request_data"]
|
|
152
155
|
? PaymentRequestDataFromJson(
|
|
153
|
-
obj["outgoing_payment_payment_request_data"]
|
|
156
|
+
obj["outgoing_payment_payment_request_data"],
|
|
154
157
|
)
|
|
155
158
|
: undefined,
|
|
156
159
|
!!obj["outgoing_payment_failure_reason"]
|
|
@@ -159,7 +162,10 @@ export const TransactionFromJson = (obj: any): Transaction => {
|
|
|
159
162
|
: null,
|
|
160
163
|
!!obj["outgoing_payment_failure_message"]
|
|
161
164
|
? RichTextFromJson(obj["outgoing_payment_failure_message"])
|
|
162
|
-
: undefined
|
|
165
|
+
: undefined,
|
|
166
|
+
obj["outgoing_payment_uma_post_transaction_data"]?.map((e) =>
|
|
167
|
+
PostTransactionDataFromJson(e),
|
|
168
|
+
),
|
|
163
169
|
);
|
|
164
170
|
}
|
|
165
171
|
if (obj["__typename"] == "RoutingTransaction") {
|
|
@@ -215,7 +221,7 @@ export const TransactionFromJson = (obj: any): Transaction => {
|
|
|
215
221
|
}
|
|
216
222
|
throw new LightsparkException(
|
|
217
223
|
"DeserializationError",
|
|
218
|
-
`Couldn't find a concrete type for interface Transaction corresponding to the typename=${obj["__typename"]}
|
|
224
|
+
`Couldn't find a concrete type for interface Transaction corresponding to the typename=${obj["__typename"]}`,
|
|
219
225
|
);
|
|
220
226
|
};
|
|
221
227
|
|
|
@@ -334,15 +340,24 @@ fragment TransactionFragment on Transaction {
|
|
|
334
340
|
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
335
341
|
}
|
|
336
342
|
incoming_payment_transaction_hash: transaction_hash
|
|
337
|
-
incoming_payment_origin: origin {
|
|
338
|
-
id
|
|
339
|
-
}
|
|
340
343
|
incoming_payment_destination: destination {
|
|
341
344
|
id
|
|
342
345
|
}
|
|
343
346
|
incoming_payment_payment_request: payment_request {
|
|
344
347
|
id
|
|
345
348
|
}
|
|
349
|
+
incoming_payment_uma_post_transaction_data: uma_post_transaction_data {
|
|
350
|
+
__typename
|
|
351
|
+
post_transaction_data_utxo: utxo
|
|
352
|
+
post_transaction_data_amount: amount {
|
|
353
|
+
__typename
|
|
354
|
+
currency_amount_original_value: original_value
|
|
355
|
+
currency_amount_original_unit: original_unit
|
|
356
|
+
currency_amount_preferred_currency_unit: preferred_currency_unit
|
|
357
|
+
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
358
|
+
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
359
|
+
}
|
|
360
|
+
}
|
|
346
361
|
}
|
|
347
362
|
... on OutgoingPayment {
|
|
348
363
|
__typename
|
|
@@ -406,24 +421,54 @@ fragment TransactionFragment on Transaction {
|
|
|
406
421
|
graph_node_display_name: display_name
|
|
407
422
|
graph_node_public_key: public_key
|
|
408
423
|
}
|
|
409
|
-
... on
|
|
424
|
+
... on LightsparkNodeWithOSK {
|
|
410
425
|
__typename
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
426
|
+
lightspark_node_with_o_s_k_id: id
|
|
427
|
+
lightspark_node_with_o_s_k_created_at: created_at
|
|
428
|
+
lightspark_node_with_o_s_k_updated_at: updated_at
|
|
429
|
+
lightspark_node_with_o_s_k_alias: alias
|
|
430
|
+
lightspark_node_with_o_s_k_bitcoin_network: bitcoin_network
|
|
431
|
+
lightspark_node_with_o_s_k_color: color
|
|
432
|
+
lightspark_node_with_o_s_k_conductivity: conductivity
|
|
433
|
+
lightspark_node_with_o_s_k_display_name: display_name
|
|
434
|
+
lightspark_node_with_o_s_k_public_key: public_key
|
|
435
|
+
lightspark_node_with_o_s_k_owner: owner {
|
|
421
436
|
id
|
|
422
437
|
}
|
|
423
|
-
|
|
424
|
-
|
|
438
|
+
lightspark_node_with_o_s_k_status: status
|
|
439
|
+
lightspark_node_with_o_s_k_total_balance: total_balance {
|
|
440
|
+
__typename
|
|
441
|
+
currency_amount_original_value: original_value
|
|
442
|
+
currency_amount_original_unit: original_unit
|
|
443
|
+
currency_amount_preferred_currency_unit: preferred_currency_unit
|
|
444
|
+
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
445
|
+
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
446
|
+
}
|
|
447
|
+
lightspark_node_with_o_s_k_total_local_balance: total_local_balance {
|
|
448
|
+
__typename
|
|
449
|
+
currency_amount_original_value: original_value
|
|
450
|
+
currency_amount_original_unit: original_unit
|
|
451
|
+
currency_amount_preferred_currency_unit: preferred_currency_unit
|
|
452
|
+
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
453
|
+
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
425
454
|
}
|
|
426
|
-
|
|
455
|
+
lightspark_node_with_o_s_k_local_balance: local_balance {
|
|
456
|
+
__typename
|
|
457
|
+
currency_amount_original_value: original_value
|
|
458
|
+
currency_amount_original_unit: original_unit
|
|
459
|
+
currency_amount_preferred_currency_unit: preferred_currency_unit
|
|
460
|
+
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
461
|
+
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
462
|
+
}
|
|
463
|
+
lightspark_node_with_o_s_k_remote_balance: remote_balance {
|
|
464
|
+
__typename
|
|
465
|
+
currency_amount_original_value: original_value
|
|
466
|
+
currency_amount_original_unit: original_unit
|
|
467
|
+
currency_amount_preferred_currency_unit: preferred_currency_unit
|
|
468
|
+
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
469
|
+
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
470
|
+
}
|
|
471
|
+
lightspark_node_with_o_s_k_blockchain_balance: blockchain_balance {
|
|
427
472
|
__typename
|
|
428
473
|
blockchain_balance_total_balance: total_balance {
|
|
429
474
|
__typename
|
|
@@ -474,12 +519,29 @@ fragment TransactionFragment on Transaction {
|
|
|
474
519
|
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
475
520
|
}
|
|
476
521
|
}
|
|
477
|
-
|
|
522
|
+
lightspark_node_with_o_s_k_uma_prescreening_utxos: uma_prescreening_utxos
|
|
523
|
+
lightspark_node_with_o_s_k_encrypted_signing_private_key: encrypted_signing_private_key {
|
|
478
524
|
__typename
|
|
479
525
|
secret_encrypted_value: encrypted_value
|
|
480
526
|
secret_cipher: cipher
|
|
481
527
|
}
|
|
482
|
-
|
|
528
|
+
}
|
|
529
|
+
... on LightsparkNodeWithRemoteSigning {
|
|
530
|
+
__typename
|
|
531
|
+
lightspark_node_with_remote_signing_id: id
|
|
532
|
+
lightspark_node_with_remote_signing_created_at: created_at
|
|
533
|
+
lightspark_node_with_remote_signing_updated_at: updated_at
|
|
534
|
+
lightspark_node_with_remote_signing_alias: alias
|
|
535
|
+
lightspark_node_with_remote_signing_bitcoin_network: bitcoin_network
|
|
536
|
+
lightspark_node_with_remote_signing_color: color
|
|
537
|
+
lightspark_node_with_remote_signing_conductivity: conductivity
|
|
538
|
+
lightspark_node_with_remote_signing_display_name: display_name
|
|
539
|
+
lightspark_node_with_remote_signing_public_key: public_key
|
|
540
|
+
lightspark_node_with_remote_signing_owner: owner {
|
|
541
|
+
id
|
|
542
|
+
}
|
|
543
|
+
lightspark_node_with_remote_signing_status: status
|
|
544
|
+
lightspark_node_with_remote_signing_total_balance: total_balance {
|
|
483
545
|
__typename
|
|
484
546
|
currency_amount_original_value: original_value
|
|
485
547
|
currency_amount_original_unit: original_unit
|
|
@@ -487,7 +549,7 @@ fragment TransactionFragment on Transaction {
|
|
|
487
549
|
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
488
550
|
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
489
551
|
}
|
|
490
|
-
|
|
552
|
+
lightspark_node_with_remote_signing_total_local_balance: total_local_balance {
|
|
491
553
|
__typename
|
|
492
554
|
currency_amount_original_value: original_value
|
|
493
555
|
currency_amount_original_unit: original_unit
|
|
@@ -495,7 +557,7 @@ fragment TransactionFragment on Transaction {
|
|
|
495
557
|
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
496
558
|
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
497
559
|
}
|
|
498
|
-
|
|
560
|
+
lightspark_node_with_remote_signing_local_balance: local_balance {
|
|
499
561
|
__typename
|
|
500
562
|
currency_amount_original_value: original_value
|
|
501
563
|
currency_amount_original_unit: original_unit
|
|
@@ -503,8 +565,7 @@ fragment TransactionFragment on Transaction {
|
|
|
503
565
|
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
504
566
|
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
505
567
|
}
|
|
506
|
-
|
|
507
|
-
lightspark_node_remote_balance: remote_balance {
|
|
568
|
+
lightspark_node_with_remote_signing_remote_balance: remote_balance {
|
|
508
569
|
__typename
|
|
509
570
|
currency_amount_original_value: original_value
|
|
510
571
|
currency_amount_original_unit: original_unit
|
|
@@ -512,7 +573,58 @@ fragment TransactionFragment on Transaction {
|
|
|
512
573
|
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
513
574
|
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
514
575
|
}
|
|
515
|
-
|
|
576
|
+
lightspark_node_with_remote_signing_blockchain_balance: blockchain_balance {
|
|
577
|
+
__typename
|
|
578
|
+
blockchain_balance_total_balance: total_balance {
|
|
579
|
+
__typename
|
|
580
|
+
currency_amount_original_value: original_value
|
|
581
|
+
currency_amount_original_unit: original_unit
|
|
582
|
+
currency_amount_preferred_currency_unit: preferred_currency_unit
|
|
583
|
+
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
584
|
+
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
585
|
+
}
|
|
586
|
+
blockchain_balance_confirmed_balance: confirmed_balance {
|
|
587
|
+
__typename
|
|
588
|
+
currency_amount_original_value: original_value
|
|
589
|
+
currency_amount_original_unit: original_unit
|
|
590
|
+
currency_amount_preferred_currency_unit: preferred_currency_unit
|
|
591
|
+
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
592
|
+
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
593
|
+
}
|
|
594
|
+
blockchain_balance_unconfirmed_balance: unconfirmed_balance {
|
|
595
|
+
__typename
|
|
596
|
+
currency_amount_original_value: original_value
|
|
597
|
+
currency_amount_original_unit: original_unit
|
|
598
|
+
currency_amount_preferred_currency_unit: preferred_currency_unit
|
|
599
|
+
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
600
|
+
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
601
|
+
}
|
|
602
|
+
blockchain_balance_locked_balance: locked_balance {
|
|
603
|
+
__typename
|
|
604
|
+
currency_amount_original_value: original_value
|
|
605
|
+
currency_amount_original_unit: original_unit
|
|
606
|
+
currency_amount_preferred_currency_unit: preferred_currency_unit
|
|
607
|
+
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
608
|
+
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
609
|
+
}
|
|
610
|
+
blockchain_balance_required_reserve: required_reserve {
|
|
611
|
+
__typename
|
|
612
|
+
currency_amount_original_value: original_value
|
|
613
|
+
currency_amount_original_unit: original_unit
|
|
614
|
+
currency_amount_preferred_currency_unit: preferred_currency_unit
|
|
615
|
+
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
616
|
+
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
617
|
+
}
|
|
618
|
+
blockchain_balance_available_balance: available_balance {
|
|
619
|
+
__typename
|
|
620
|
+
currency_amount_original_value: original_value
|
|
621
|
+
currency_amount_original_unit: original_unit
|
|
622
|
+
currency_amount_preferred_currency_unit: preferred_currency_unit
|
|
623
|
+
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
624
|
+
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
625
|
+
}
|
|
626
|
+
}
|
|
627
|
+
lightspark_node_with_remote_signing_uma_prescreening_utxos: uma_prescreening_utxos
|
|
516
628
|
}
|
|
517
629
|
}
|
|
518
630
|
}
|
|
@@ -522,6 +634,18 @@ fragment TransactionFragment on Transaction {
|
|
|
522
634
|
__typename
|
|
523
635
|
rich_text_text: text
|
|
524
636
|
}
|
|
637
|
+
outgoing_payment_uma_post_transaction_data: uma_post_transaction_data {
|
|
638
|
+
__typename
|
|
639
|
+
post_transaction_data_utxo: utxo
|
|
640
|
+
post_transaction_data_amount: amount {
|
|
641
|
+
__typename
|
|
642
|
+
currency_amount_original_value: original_value
|
|
643
|
+
currency_amount_original_unit: original_unit
|
|
644
|
+
currency_amount_preferred_currency_unit: preferred_currency_unit
|
|
645
|
+
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
646
|
+
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
647
|
+
}
|
|
648
|
+
}
|
|
525
649
|
}
|
|
526
650
|
... on RoutingTransaction {
|
|
527
651
|
__typename
|
|
@@ -13,7 +13,7 @@ type TransactionFailures = {
|
|
|
13
13
|
export const TransactionFailuresFromJson = (obj: any): TransactionFailures => {
|
|
14
14
|
return {
|
|
15
15
|
paymentFailures: obj["transaction_failures_payment_failures"]?.map(
|
|
16
|
-
(e) => PaymentFailureReason[e]
|
|
16
|
+
(e) => PaymentFailureReason[e],
|
|
17
17
|
),
|
|
18
18
|
routingTransactionFailures: obj[
|
|
19
19
|
"transaction_failures_routing_transaction_failures"
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
// Copyright ©, 2023-present, Lightspark Group, Inc. - All Rights Reserved
|
|
2
|
+
|
|
3
|
+
type UpdateChannelPerCommitmentPointInput = {
|
|
4
|
+
channelId: string;
|
|
5
|
+
|
|
6
|
+
perCommitmentPoint: string;
|
|
7
|
+
|
|
8
|
+
perCommitmentPointIndex: number;
|
|
9
|
+
};
|
|
10
|
+
|
|
11
|
+
export const UpdateChannelPerCommitmentPointInputFromJson = (
|
|
12
|
+
obj: any,
|
|
13
|
+
): UpdateChannelPerCommitmentPointInput => {
|
|
14
|
+
return {
|
|
15
|
+
channelId: obj["update_channel_per_commitment_point_input_channel_id"],
|
|
16
|
+
perCommitmentPoint:
|
|
17
|
+
obj["update_channel_per_commitment_point_input_per_commitment_point"],
|
|
18
|
+
perCommitmentPointIndex:
|
|
19
|
+
obj[
|
|
20
|
+
"update_channel_per_commitment_point_input_per_commitment_point_index"
|
|
21
|
+
],
|
|
22
|
+
} as UpdateChannelPerCommitmentPointInput;
|
|
23
|
+
};
|
|
24
|
+
|
|
25
|
+
export default UpdateChannelPerCommitmentPointInput;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
// Copyright ©, 2023-present, Lightspark Group, Inc. - All Rights Reserved
|
|
2
|
+
|
|
3
|
+
type UpdateChannelPerCommitmentPointOutput = {
|
|
4
|
+
channelId: string;
|
|
5
|
+
};
|
|
6
|
+
|
|
7
|
+
export const UpdateChannelPerCommitmentPointOutputFromJson = (
|
|
8
|
+
obj: any,
|
|
9
|
+
): UpdateChannelPerCommitmentPointOutput => {
|
|
10
|
+
return {
|
|
11
|
+
channelId: obj["update_channel_per_commitment_point_output_channel"].id,
|
|
12
|
+
} as UpdateChannelPerCommitmentPointOutput;
|
|
13
|
+
};
|
|
14
|
+
|
|
15
|
+
export const FRAGMENT = `
|
|
16
|
+
fragment UpdateChannelPerCommitmentPointOutputFragment on UpdateChannelPerCommitmentPointOutput {
|
|
17
|
+
__typename
|
|
18
|
+
update_channel_per_commitment_point_output_channel: channel {
|
|
19
|
+
id
|
|
20
|
+
}
|
|
21
|
+
}`;
|
|
22
|
+
|
|
23
|
+
export default UpdateChannelPerCommitmentPointOutput;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
// Copyright ©, 2023-present, Lightspark Group, Inc. - All Rights Reserved
|
|
2
|
+
|
|
3
|
+
type UpdateNodeSharedSecretInput = {
|
|
4
|
+
nodeId: string;
|
|
5
|
+
|
|
6
|
+
sharedSecret: string;
|
|
7
|
+
};
|
|
8
|
+
|
|
9
|
+
export const UpdateNodeSharedSecretInputFromJson = (
|
|
10
|
+
obj: any,
|
|
11
|
+
): UpdateNodeSharedSecretInput => {
|
|
12
|
+
return {
|
|
13
|
+
nodeId: obj["update_node_shared_secret_input_node_id"],
|
|
14
|
+
sharedSecret: obj["update_node_shared_secret_input_shared_secret"],
|
|
15
|
+
} as UpdateNodeSharedSecretInput;
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
export default UpdateNodeSharedSecretInput;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
// Copyright ©, 2023-present, Lightspark Group, Inc. - All Rights Reserved
|
|
2
|
+
|
|
3
|
+
type UpdateNodeSharedSecretOutput = {
|
|
4
|
+
nodeId: string;
|
|
5
|
+
};
|
|
6
|
+
|
|
7
|
+
export const UpdateNodeSharedSecretOutputFromJson = (
|
|
8
|
+
obj: any,
|
|
9
|
+
): UpdateNodeSharedSecretOutput => {
|
|
10
|
+
return {
|
|
11
|
+
nodeId: obj["update_node_shared_secret_output_node"].id,
|
|
12
|
+
} as UpdateNodeSharedSecretOutput;
|
|
13
|
+
};
|
|
14
|
+
|
|
15
|
+
export const FRAGMENT = `
|
|
16
|
+
fragment UpdateNodeSharedSecretOutputFragment on UpdateNodeSharedSecretOutput {
|
|
17
|
+
__typename
|
|
18
|
+
update_node_shared_secret_output_node: node {
|
|
19
|
+
id
|
|
20
|
+
}
|
|
21
|
+
}`;
|
|
22
|
+
|
|
23
|
+
export default UpdateNodeSharedSecretOutput;
|