@lightsparkdev/lightspark-sdk 1.1.6 → 1.2.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 +14 -0
- package/dist/{chunk-7UNNCH5S.js → chunk-VTPDR6P4.js} +1270 -342
- package/dist/{index-5235e43b.d.ts → index-f040db9f.d.ts} +707 -407
- package/dist/index.cjs +1247 -319
- package/dist/index.d.ts +2 -2
- package/dist/index.js +7 -7
- package/dist/objects/index.cjs +1180 -306
- package/dist/objects/index.d.ts +1 -1
- package/dist/objects/index.js +5 -5
- package/package.json +2 -2
- package/src/objects/Account.ts +175 -2
- package/src/objects/AccountToApiTokensConnection.ts +16 -5
- package/src/objects/AccountToChannelsConnection.ts +9 -0
- package/src/objects/AccountToNodesConnection.ts +19 -5
- package/src/objects/AccountToPaymentRequestsConnection.ts +21 -5
- package/src/objects/AccountToTransactionsConnection.ts +33 -9
- package/src/objects/AccountToWalletsConnection.ts +13 -4
- package/src/objects/ApiToken.ts +13 -3
- package/src/objects/Balances.ts +17 -3
- package/src/objects/BlockchainBalance.ts +34 -9
- package/src/objects/Channel.ts +61 -16
- package/src/objects/ChannelClosingTransaction.ts +81 -61
- package/src/objects/ChannelFees.ts +16 -5
- package/src/objects/ChannelOpeningTransaction.ts +81 -61
- package/src/objects/ChannelSnapshot.ts +66 -6
- package/src/objects/ChannelToTransactionsConnection.ts +26 -6
- package/src/objects/Connection.ts +205 -10
- package/src/objects/CreateApiTokenInput.ts +8 -2
- package/src/objects/CreateApiTokenOutput.ts +9 -3
- package/src/objects/CreateInvoiceInput.ts +14 -5
- package/src/objects/CreateInvoiceOutput.ts +7 -2
- package/src/objects/CreateLnurlInvoiceInput.ts +13 -3
- package/src/objects/CreateNodeWalletAddressInput.ts +9 -2
- package/src/objects/CreateNodeWalletAddressOutput.ts +10 -2
- package/src/objects/CreateTestModeInvoiceInput.ts +14 -4
- package/src/objects/CreateTestModeInvoiceOutput.ts +10 -2
- package/src/objects/CreateTestModePaymentInput.ts +12 -3
- package/src/objects/CreateTestModePaymentoutput.ts +12 -2
- package/src/objects/CreateUmaInvoiceInput.ts +13 -3
- package/src/objects/CurrencyAmount.ts +13 -2
- package/src/objects/DeclineToSignMessagesInput.ts +9 -2
- package/src/objects/DeclineToSignMessagesOutput.ts +15 -3
- package/src/objects/DeleteApiTokenInput.ts +7 -2
- package/src/objects/DeleteApiTokenOutput.ts +7 -2
- package/src/objects/Deposit.ts +77 -61
- package/src/objects/Entity.ts +184 -2
- package/src/objects/FeeEstimate.ts +12 -3
- package/src/objects/FundNodeInput.ts +9 -3
- package/src/objects/FundNodeOutput.ts +11 -3
- package/src/objects/GraphNode.ts +21 -5
- package/src/objects/Hop.ts +27 -9
- package/src/objects/HtlcAttemptFailureCode.ts +2 -0
- package/src/objects/IdAndSignature.ts +8 -2
- package/src/objects/IncomingPayment.ts +33 -7
- package/src/objects/IncomingPaymentAttempt.ts +21 -5
- package/src/objects/IncomingPaymentToAttemptsConnection.ts +21 -5
- package/src/objects/Invoice.ts +91 -24
- package/src/objects/InvoiceData.ts +75 -6
- package/src/objects/LightningFeeEstimateForInvoiceInput.ts +13 -3
- package/src/objects/LightningFeeEstimateForNodeInput.ts +12 -2
- package/src/objects/LightningFeeEstimateOutput.ts +15 -3
- package/src/objects/LightningTransaction.ts +171 -28
- package/src/objects/LightsparkNode.ts +311 -208
- package/src/objects/LightsparkNodeOwner.ts +35 -4
- package/src/objects/LightsparkNodeToChannelsConnection.ts +17 -4
- package/src/objects/LightsparkNodeWithOSK.ts +97 -15
- package/src/objects/LightsparkNodeWithRemoteSigning.ts +93 -13
- package/src/objects/Node.ts +269 -67
- package/src/objects/NodeAddress.ts +8 -2
- package/src/objects/NodeToAddressesConnection.ts +13 -3
- package/src/objects/OnChainTransaction.ts +156 -44
- package/src/objects/OutgoingPayment.ts +127 -14
- package/src/objects/OutgoingPaymentAttempt.ts +57 -8
- package/src/objects/OutgoingPaymentAttemptToHopsConnection.ts +18 -5
- package/src/objects/OutgoingPaymentToAttemptsConnection.ts +17 -4
- package/src/objects/OutgoingPaymentsForInvoiceQueryInput.ts +12 -3
- package/src/objects/OutgoingPaymentsForInvoiceQueryOutput.ts +11 -2
- package/src/objects/PageInfo.ts +14 -6
- package/src/objects/PayInvoiceInput.ts +12 -3
- package/src/objects/PayInvoiceOutput.ts +7 -2
- package/src/objects/PayUmaInvoiceInput.ts +12 -3
- package/src/objects/PaymentRequest.ts +81 -5
- package/src/objects/PaymentRequestData.ts +81 -4
- package/src/objects/PostTransactionData.ts +12 -3
- package/src/objects/RegisterPaymentInput.ts +10 -2
- package/src/objects/RegisterPaymentOutput.ts +9 -2
- package/src/objects/ReleaseChannelPerCommitmentSecretInput.ts +13 -2
- package/src/objects/ReleaseChannelPerCommitmentSecretOutput.ts +9 -2
- package/src/objects/ReleasePaymentPreimageInput.ts +10 -2
- package/src/objects/ReleasePaymentPreimageOutput.ts +9 -2
- package/src/objects/RequestWithdrawalInput.ts +12 -2
- package/src/objects/RequestWithdrawalOutput.ts +9 -2
- package/src/objects/RichText.ts +7 -2
- package/src/objects/RoutingTransaction.ts +62 -41
- package/src/objects/ScreenNodeInput.ts +8 -2
- package/src/objects/ScreenNodeOutput.ts +7 -2
- package/src/objects/Secret.ts +8 -2
- package/src/objects/SendPaymentInput.ts +11 -2
- package/src/objects/SendPaymentOutput.ts +7 -2
- package/src/objects/SetInvoicePaymentHashInput.ts +12 -3
- package/src/objects/SetInvoicePaymentHashOutput.ts +9 -2
- package/src/objects/SignInvoiceInput.ts +9 -2
- package/src/objects/SignInvoiceOutput.ts +7 -2
- package/src/objects/SignMessagesInput.ts +13 -3
- package/src/objects/SignMessagesOutput.ts +13 -3
- package/src/objects/Signable.ts +10 -3
- package/src/objects/SignablePayload.ts +18 -5
- package/src/objects/Transaction.ts +260 -9
- package/src/objects/TransactionFailures.ts +11 -4
- package/src/objects/UpdateChannelPerCommitmentPointInput.ts +13 -2
- package/src/objects/UpdateChannelPerCommitmentPointOutput.ts +9 -2
- package/src/objects/UpdateNodeSharedSecretInput.ts +10 -2
- package/src/objects/UpdateNodeSharedSecretOutput.ts +9 -2
- package/src/objects/Wallet.ts +130 -5
- package/src/objects/WalletToPaymentRequestsConnection.ts +21 -5
- package/src/objects/WalletToTransactionsConnection.ts +16 -5
- package/src/objects/Withdrawal.ts +77 -61
- package/src/objects/WithdrawalRequest.ts +25 -4
- package/src/objects/WithdrawalRequestToChannelClosingTransactionsConnection.ts +19 -4
- package/src/objects/WithdrawalRequestToChannelOpeningTransactionsConnection.ts +19 -4
- package/src/objects/index.ts +5 -2
- package/src/tests/integration/client.test.ts +46 -7
- package/src/tests/serialization.test.ts +18 -0
package/dist/objects/index.cjs
CHANGED
|
@@ -42,11 +42,9 @@ __export(objects_exports, {
|
|
|
42
42
|
IncomingPayment: () => IncomingPayment_default,
|
|
43
43
|
IncomingPaymentAttemptStatus: () => IncomingPaymentAttemptStatus_default,
|
|
44
44
|
InvoiceType: () => InvoiceType_default,
|
|
45
|
-
LightsparkNode: () => LightsparkNode_default,
|
|
46
45
|
LightsparkNodeStatus: () => LightsparkNodeStatus_default,
|
|
47
46
|
LightsparkNodeWithOSK: () => LightsparkNodeWithOSK_default,
|
|
48
47
|
LightsparkNodeWithRemoteSigning: () => LightsparkNodeWithRemoteSigning_default,
|
|
49
|
-
Node: () => Node_default,
|
|
50
48
|
NodeAddressType: () => NodeAddressType_default,
|
|
51
49
|
OutgoingPayment: () => OutgoingPayment_default,
|
|
52
50
|
OutgoingPaymentAttempt: () => OutgoingPaymentAttempt_default,
|
|
@@ -76,6 +74,8 @@ __export(objects_exports, {
|
|
|
76
74
|
getInvoiceQuery: () => getInvoiceQuery,
|
|
77
75
|
getLightningTransactionQuery: () => getLightningTransactionQuery,
|
|
78
76
|
getLightsparkNodeOwnerQuery: () => getLightsparkNodeOwnerQuery,
|
|
77
|
+
getLightsparkNodeQuery: () => getLightsparkNodeQuery,
|
|
78
|
+
getNodeQuery: () => getNodeQuery,
|
|
79
79
|
getOnChainTransactionQuery: () => getOnChainTransactionQuery,
|
|
80
80
|
getPaymentRequestQuery: () => getPaymentRequestQuery,
|
|
81
81
|
getRoutingTransactionQuery: () => getRoutingTransactionQuery,
|
|
@@ -87,7 +87,7 @@ __export(objects_exports, {
|
|
|
87
87
|
module.exports = __toCommonJS(objects_exports);
|
|
88
88
|
|
|
89
89
|
// src/objects/Account.ts
|
|
90
|
-
var
|
|
90
|
+
var import_auto_bind10 = __toESM(require("auto-bind"), 1);
|
|
91
91
|
|
|
92
92
|
// src/objects/Permission.ts
|
|
93
93
|
var Permission = /* @__PURE__ */ ((Permission2) => {
|
|
@@ -204,6 +204,15 @@ var CurrencyAmountFromJson = (obj) => {
|
|
|
204
204
|
preferredCurrencyValueApprox: obj["currency_amount_preferred_currency_value_approx"]
|
|
205
205
|
};
|
|
206
206
|
};
|
|
207
|
+
var CurrencyAmountToJson = (obj) => {
|
|
208
|
+
return {
|
|
209
|
+
currency_amount_original_value: obj.originalValue,
|
|
210
|
+
currency_amount_original_unit: obj.originalUnit,
|
|
211
|
+
currency_amount_preferred_currency_unit: obj.preferredCurrencyUnit,
|
|
212
|
+
currency_amount_preferred_currency_value_rounded: obj.preferredCurrencyValueRounded,
|
|
213
|
+
currency_amount_preferred_currency_value_approx: obj.preferredCurrencyValueApprox
|
|
214
|
+
};
|
|
215
|
+
};
|
|
207
216
|
|
|
208
217
|
// src/objects/ChannelFees.ts
|
|
209
218
|
var ChannelFeesFromJson = (obj) => {
|
|
@@ -212,6 +221,12 @@ var ChannelFeesFromJson = (obj) => {
|
|
|
212
221
|
feeRatePerMil: obj["channel_fees_fee_rate_per_mil"]
|
|
213
222
|
};
|
|
214
223
|
};
|
|
224
|
+
var ChannelFeesToJson = (obj) => {
|
|
225
|
+
return {
|
|
226
|
+
channel_fees_base_fee: obj.baseFee ? CurrencyAmountToJson(obj.baseFee) : void 0,
|
|
227
|
+
channel_fees_fee_rate_per_mil: obj.feeRatePerMil
|
|
228
|
+
};
|
|
229
|
+
};
|
|
215
230
|
|
|
216
231
|
// src/objects/ChannelStatus.ts
|
|
217
232
|
var ChannelStatus = /* @__PURE__ */ ((ChannelStatus2) => {
|
|
@@ -356,6 +371,29 @@ ${FRAGMENT2}
|
|
|
356
371
|
constructObject: (data) => ChannelFromJson(data.entity)
|
|
357
372
|
};
|
|
358
373
|
}
|
|
374
|
+
toJson() {
|
|
375
|
+
return {
|
|
376
|
+
__typename: "Channel",
|
|
377
|
+
channel_id: this.id,
|
|
378
|
+
channel_created_at: this.createdAt,
|
|
379
|
+
channel_updated_at: this.updatedAt,
|
|
380
|
+
channel_funding_transaction: { id: this.fundingTransactionId },
|
|
381
|
+
channel_capacity: this.capacity ? CurrencyAmountToJson(this.capacity) : void 0,
|
|
382
|
+
channel_local_balance: this.localBalance ? CurrencyAmountToJson(this.localBalance) : void 0,
|
|
383
|
+
channel_local_unsettled_balance: this.localUnsettledBalance ? CurrencyAmountToJson(this.localUnsettledBalance) : void 0,
|
|
384
|
+
channel_remote_balance: this.remoteBalance ? CurrencyAmountToJson(this.remoteBalance) : void 0,
|
|
385
|
+
channel_remote_unsettled_balance: this.remoteUnsettledBalance ? CurrencyAmountToJson(this.remoteUnsettledBalance) : void 0,
|
|
386
|
+
channel_unsettled_balance: this.unsettledBalance ? CurrencyAmountToJson(this.unsettledBalance) : void 0,
|
|
387
|
+
channel_total_balance: this.totalBalance ? CurrencyAmountToJson(this.totalBalance) : void 0,
|
|
388
|
+
channel_status: this.status,
|
|
389
|
+
channel_estimated_force_closure_wait_minutes: this.estimatedForceClosureWaitMinutes,
|
|
390
|
+
channel_commit_fee: this.commitFee ? CurrencyAmountToJson(this.commitFee) : void 0,
|
|
391
|
+
channel_fees: this.fees ? ChannelFeesToJson(this.fees) : void 0,
|
|
392
|
+
channel_remote_node: { id: this.remoteNodeId },
|
|
393
|
+
channel_local_node: { id: this.localNodeId },
|
|
394
|
+
channel_short_channel_id: this.shortChannelId
|
|
395
|
+
};
|
|
396
|
+
}
|
|
359
397
|
};
|
|
360
398
|
var ChannelFromJson = (obj) => {
|
|
361
399
|
return new Channel(
|
|
@@ -484,6 +522,14 @@ var AccountToChannelsConnection = class {
|
|
|
484
522
|
this.entities = entities;
|
|
485
523
|
(0, import_auto_bind2.default)(this);
|
|
486
524
|
}
|
|
525
|
+
toJson() {
|
|
526
|
+
return {
|
|
527
|
+
account_to_channels_connection_count: this.count,
|
|
528
|
+
account_to_channels_connection_entities: this.entities.map(
|
|
529
|
+
(e) => e.toJson()
|
|
530
|
+
)
|
|
531
|
+
};
|
|
532
|
+
}
|
|
487
533
|
};
|
|
488
534
|
var AccountToChannelsConnectionFromJson = (obj) => {
|
|
489
535
|
return new AccountToChannelsConnection(
|
|
@@ -497,7 +543,30 @@ var AccountToChannelsConnection_default = AccountToChannelsConnection;
|
|
|
497
543
|
|
|
498
544
|
// src/objects/LightsparkNode.ts
|
|
499
545
|
var import_core = require("@lightsparkdev/core");
|
|
500
|
-
|
|
546
|
+
|
|
547
|
+
// src/objects/Balances.ts
|
|
548
|
+
var BalancesFromJson = (obj) => {
|
|
549
|
+
return {
|
|
550
|
+
ownedBalance: CurrencyAmountFromJson(obj["balances_owned_balance"]),
|
|
551
|
+
availableToSendBalance: CurrencyAmountFromJson(
|
|
552
|
+
obj["balances_available_to_send_balance"]
|
|
553
|
+
),
|
|
554
|
+
availableToWithdrawBalance: CurrencyAmountFromJson(
|
|
555
|
+
obj["balances_available_to_withdraw_balance"]
|
|
556
|
+
)
|
|
557
|
+
};
|
|
558
|
+
};
|
|
559
|
+
var BalancesToJson = (obj) => {
|
|
560
|
+
return {
|
|
561
|
+
balances_owned_balance: CurrencyAmountToJson(obj.ownedBalance),
|
|
562
|
+
balances_available_to_send_balance: CurrencyAmountToJson(
|
|
563
|
+
obj.availableToSendBalance
|
|
564
|
+
),
|
|
565
|
+
balances_available_to_withdraw_balance: CurrencyAmountToJson(
|
|
566
|
+
obj.availableToWithdrawBalance
|
|
567
|
+
)
|
|
568
|
+
};
|
|
569
|
+
};
|
|
501
570
|
|
|
502
571
|
// src/objects/BitcoinNetwork.ts
|
|
503
572
|
var BitcoinNetwork = /* @__PURE__ */ ((BitcoinNetwork2) => {
|
|
@@ -521,6 +590,16 @@ var BlockchainBalanceFromJson = (obj) => {
|
|
|
521
590
|
availableBalance: !!obj["blockchain_balance_available_balance"] ? CurrencyAmountFromJson(obj["blockchain_balance_available_balance"]) : void 0
|
|
522
591
|
};
|
|
523
592
|
};
|
|
593
|
+
var BlockchainBalanceToJson = (obj) => {
|
|
594
|
+
return {
|
|
595
|
+
blockchain_balance_total_balance: obj.totalBalance ? CurrencyAmountToJson(obj.totalBalance) : void 0,
|
|
596
|
+
blockchain_balance_confirmed_balance: obj.confirmedBalance ? CurrencyAmountToJson(obj.confirmedBalance) : void 0,
|
|
597
|
+
blockchain_balance_unconfirmed_balance: obj.unconfirmedBalance ? CurrencyAmountToJson(obj.unconfirmedBalance) : void 0,
|
|
598
|
+
blockchain_balance_locked_balance: obj.lockedBalance ? CurrencyAmountToJson(obj.lockedBalance) : void 0,
|
|
599
|
+
blockchain_balance_required_reserve: obj.requiredReserve ? CurrencyAmountToJson(obj.requiredReserve) : void 0,
|
|
600
|
+
blockchain_balance_available_balance: obj.availableBalance ? CurrencyAmountToJson(obj.availableBalance) : void 0
|
|
601
|
+
};
|
|
602
|
+
};
|
|
524
603
|
|
|
525
604
|
// src/objects/LightsparkNodeStatus.ts
|
|
526
605
|
var LightsparkNodeStatus = /* @__PURE__ */ ((LightsparkNodeStatus2) => {
|
|
@@ -539,6 +618,9 @@ var LightsparkNodeStatus = /* @__PURE__ */ ((LightsparkNodeStatus2) => {
|
|
|
539
618
|
})(LightsparkNodeStatus || {});
|
|
540
619
|
var LightsparkNodeStatus_default = LightsparkNodeStatus;
|
|
541
620
|
|
|
621
|
+
// src/objects/LightsparkNodeWithOSK.ts
|
|
622
|
+
var import_auto_bind3 = __toESM(require("auto-bind"), 1);
|
|
623
|
+
|
|
542
624
|
// src/objects/LightsparkNodeToChannelsConnection.ts
|
|
543
625
|
var LightsparkNodeToChannelsConnectionFromJson = (obj) => {
|
|
544
626
|
return {
|
|
@@ -553,9 +635,6 @@ var LightsparkNodeToChannelsConnectionFromJson = (obj) => {
|
|
|
553
635
|
};
|
|
554
636
|
};
|
|
555
637
|
|
|
556
|
-
// src/objects/LightsparkNodeWithOSK.ts
|
|
557
|
-
var import_auto_bind3 = __toESM(require("auto-bind"), 1);
|
|
558
|
-
|
|
559
638
|
// src/objects/NodeAddressType.ts
|
|
560
639
|
var NodeAddressType = /* @__PURE__ */ ((NodeAddressType2) => {
|
|
561
640
|
NodeAddressType2["FUTURE_VALUE"] = "FUTURE_VALUE";
|
|
@@ -591,10 +670,16 @@ var SecretFromJson = (obj) => {
|
|
|
591
670
|
cipher: obj["secret_cipher"]
|
|
592
671
|
};
|
|
593
672
|
};
|
|
673
|
+
var SecretToJson = (obj) => {
|
|
674
|
+
return {
|
|
675
|
+
secret_encrypted_value: obj.encryptedValue,
|
|
676
|
+
secret_cipher: obj.cipher
|
|
677
|
+
};
|
|
678
|
+
};
|
|
594
679
|
|
|
595
680
|
// src/objects/LightsparkNodeWithOSK.ts
|
|
596
681
|
var LightsparkNodeWithOSK = class {
|
|
597
|
-
constructor(id, createdAt, updatedAt, bitcoinNetwork, displayName, ownerId, umaPrescreeningUtxos, typename, alias, color, conductivity, publicKey, status, totalBalance, totalLocalBalance, localBalance, remoteBalance, blockchainBalance, encryptedSigningPrivateKey) {
|
|
682
|
+
constructor(id, createdAt, updatedAt, bitcoinNetwork, displayName, ownerId, umaPrescreeningUtxos, typename, alias, color, conductivity, publicKey, status, totalBalance, totalLocalBalance, localBalance, remoteBalance, blockchainBalance, balances, encryptedSigningPrivateKey) {
|
|
598
683
|
this.id = id;
|
|
599
684
|
this.createdAt = createdAt;
|
|
600
685
|
this.updatedAt = updatedAt;
|
|
@@ -613,6 +698,7 @@ var LightsparkNodeWithOSK = class {
|
|
|
613
698
|
this.localBalance = localBalance;
|
|
614
699
|
this.remoteBalance = remoteBalance;
|
|
615
700
|
this.blockchainBalance = blockchainBalance;
|
|
701
|
+
this.balances = balances;
|
|
616
702
|
this.encryptedSigningPrivateKey = encryptedSigningPrivateKey;
|
|
617
703
|
(0, import_auto_bind3.default)(this);
|
|
618
704
|
}
|
|
@@ -786,6 +872,30 @@ ${FRAGMENT3}
|
|
|
786
872
|
constructObject: (data) => LightsparkNodeWithOSKFromJson(data.entity)
|
|
787
873
|
};
|
|
788
874
|
}
|
|
875
|
+
toJson() {
|
|
876
|
+
return {
|
|
877
|
+
__typename: "LightsparkNodeWithOSK",
|
|
878
|
+
lightspark_node_with_o_s_k_id: this.id,
|
|
879
|
+
lightspark_node_with_o_s_k_created_at: this.createdAt,
|
|
880
|
+
lightspark_node_with_o_s_k_updated_at: this.updatedAt,
|
|
881
|
+
lightspark_node_with_o_s_k_alias: this.alias,
|
|
882
|
+
lightspark_node_with_o_s_k_bitcoin_network: this.bitcoinNetwork,
|
|
883
|
+
lightspark_node_with_o_s_k_color: this.color,
|
|
884
|
+
lightspark_node_with_o_s_k_conductivity: this.conductivity,
|
|
885
|
+
lightspark_node_with_o_s_k_display_name: this.displayName,
|
|
886
|
+
lightspark_node_with_o_s_k_public_key: this.publicKey,
|
|
887
|
+
lightspark_node_with_o_s_k_owner: { id: this.ownerId },
|
|
888
|
+
lightspark_node_with_o_s_k_status: this.status,
|
|
889
|
+
lightspark_node_with_o_s_k_total_balance: this.totalBalance ? CurrencyAmountToJson(this.totalBalance) : void 0,
|
|
890
|
+
lightspark_node_with_o_s_k_total_local_balance: this.totalLocalBalance ? CurrencyAmountToJson(this.totalLocalBalance) : void 0,
|
|
891
|
+
lightspark_node_with_o_s_k_local_balance: this.localBalance ? CurrencyAmountToJson(this.localBalance) : void 0,
|
|
892
|
+
lightspark_node_with_o_s_k_remote_balance: this.remoteBalance ? CurrencyAmountToJson(this.remoteBalance) : void 0,
|
|
893
|
+
lightspark_node_with_o_s_k_blockchain_balance: this.blockchainBalance ? BlockchainBalanceToJson(this.blockchainBalance) : void 0,
|
|
894
|
+
lightspark_node_with_o_s_k_uma_prescreening_utxos: this.umaPrescreeningUtxos,
|
|
895
|
+
lightspark_node_with_o_s_k_balances: this.balances ? BalancesToJson(this.balances) : void 0,
|
|
896
|
+
lightspark_node_with_o_s_k_encrypted_signing_private_key: this.encryptedSigningPrivateKey ? SecretToJson(this.encryptedSigningPrivateKey) : void 0
|
|
897
|
+
};
|
|
898
|
+
}
|
|
789
899
|
};
|
|
790
900
|
var LightsparkNodeWithOSKFromJson = (obj) => {
|
|
791
901
|
return new LightsparkNodeWithOSK(
|
|
@@ -811,6 +921,7 @@ var LightsparkNodeWithOSKFromJson = (obj) => {
|
|
|
811
921
|
!!obj["lightspark_node_with_o_s_k_blockchain_balance"] ? BlockchainBalanceFromJson(
|
|
812
922
|
obj["lightspark_node_with_o_s_k_blockchain_balance"]
|
|
813
923
|
) : void 0,
|
|
924
|
+
!!obj["lightspark_node_with_o_s_k_balances"] ? BalancesFromJson(obj["lightspark_node_with_o_s_k_balances"]) : void 0,
|
|
814
925
|
!!obj["lightspark_node_with_o_s_k_encrypted_signing_private_key"] ? SecretFromJson(
|
|
815
926
|
obj["lightspark_node_with_o_s_k_encrypted_signing_private_key"]
|
|
816
927
|
) : void 0
|
|
@@ -916,6 +1027,33 @@ fragment LightsparkNodeWithOSKFragment on LightsparkNodeWithOSK {
|
|
|
916
1027
|
}
|
|
917
1028
|
}
|
|
918
1029
|
lightspark_node_with_o_s_k_uma_prescreening_utxos: uma_prescreening_utxos
|
|
1030
|
+
lightspark_node_with_o_s_k_balances: balances {
|
|
1031
|
+
__typename
|
|
1032
|
+
balances_owned_balance: owned_balance {
|
|
1033
|
+
__typename
|
|
1034
|
+
currency_amount_original_value: original_value
|
|
1035
|
+
currency_amount_original_unit: original_unit
|
|
1036
|
+
currency_amount_preferred_currency_unit: preferred_currency_unit
|
|
1037
|
+
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
1038
|
+
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
1039
|
+
}
|
|
1040
|
+
balances_available_to_send_balance: available_to_send_balance {
|
|
1041
|
+
__typename
|
|
1042
|
+
currency_amount_original_value: original_value
|
|
1043
|
+
currency_amount_original_unit: original_unit
|
|
1044
|
+
currency_amount_preferred_currency_unit: preferred_currency_unit
|
|
1045
|
+
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
1046
|
+
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
1047
|
+
}
|
|
1048
|
+
balances_available_to_withdraw_balance: available_to_withdraw_balance {
|
|
1049
|
+
__typename
|
|
1050
|
+
currency_amount_original_value: original_value
|
|
1051
|
+
currency_amount_original_unit: original_unit
|
|
1052
|
+
currency_amount_preferred_currency_unit: preferred_currency_unit
|
|
1053
|
+
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
1054
|
+
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
1055
|
+
}
|
|
1056
|
+
}
|
|
919
1057
|
lightspark_node_with_o_s_k_encrypted_signing_private_key: encrypted_signing_private_key {
|
|
920
1058
|
__typename
|
|
921
1059
|
secret_encrypted_value: encrypted_value
|
|
@@ -927,7 +1065,7 @@ var LightsparkNodeWithOSK_default = LightsparkNodeWithOSK;
|
|
|
927
1065
|
// src/objects/LightsparkNodeWithRemoteSigning.ts
|
|
928
1066
|
var import_auto_bind4 = __toESM(require("auto-bind"), 1);
|
|
929
1067
|
var LightsparkNodeWithRemoteSigning = class {
|
|
930
|
-
constructor(id, createdAt, updatedAt, bitcoinNetwork, displayName, ownerId, umaPrescreeningUtxos, typename, alias, color, conductivity, publicKey, status, totalBalance, totalLocalBalance, localBalance, remoteBalance, blockchainBalance) {
|
|
1068
|
+
constructor(id, createdAt, updatedAt, bitcoinNetwork, displayName, ownerId, umaPrescreeningUtxos, typename, alias, color, conductivity, publicKey, status, totalBalance, totalLocalBalance, localBalance, remoteBalance, blockchainBalance, balances) {
|
|
931
1069
|
this.id = id;
|
|
932
1070
|
this.createdAt = createdAt;
|
|
933
1071
|
this.updatedAt = updatedAt;
|
|
@@ -946,6 +1084,7 @@ var LightsparkNodeWithRemoteSigning = class {
|
|
|
946
1084
|
this.localBalance = localBalance;
|
|
947
1085
|
this.remoteBalance = remoteBalance;
|
|
948
1086
|
this.blockchainBalance = blockchainBalance;
|
|
1087
|
+
this.balances = balances;
|
|
949
1088
|
(0, import_auto_bind4.default)(this);
|
|
950
1089
|
}
|
|
951
1090
|
async getAddresses(client, first = void 0, types = void 0) {
|
|
@@ -1118,6 +1257,29 @@ ${FRAGMENT4}
|
|
|
1118
1257
|
constructObject: (data) => LightsparkNodeWithRemoteSigningFromJson(data.entity)
|
|
1119
1258
|
};
|
|
1120
1259
|
}
|
|
1260
|
+
toJson() {
|
|
1261
|
+
return {
|
|
1262
|
+
__typename: "LightsparkNodeWithRemoteSigning",
|
|
1263
|
+
lightspark_node_with_remote_signing_id: this.id,
|
|
1264
|
+
lightspark_node_with_remote_signing_created_at: this.createdAt,
|
|
1265
|
+
lightspark_node_with_remote_signing_updated_at: this.updatedAt,
|
|
1266
|
+
lightspark_node_with_remote_signing_alias: this.alias,
|
|
1267
|
+
lightspark_node_with_remote_signing_bitcoin_network: this.bitcoinNetwork,
|
|
1268
|
+
lightspark_node_with_remote_signing_color: this.color,
|
|
1269
|
+
lightspark_node_with_remote_signing_conductivity: this.conductivity,
|
|
1270
|
+
lightspark_node_with_remote_signing_display_name: this.displayName,
|
|
1271
|
+
lightspark_node_with_remote_signing_public_key: this.publicKey,
|
|
1272
|
+
lightspark_node_with_remote_signing_owner: { id: this.ownerId },
|
|
1273
|
+
lightspark_node_with_remote_signing_status: this.status,
|
|
1274
|
+
lightspark_node_with_remote_signing_total_balance: this.totalBalance ? CurrencyAmountToJson(this.totalBalance) : void 0,
|
|
1275
|
+
lightspark_node_with_remote_signing_total_local_balance: this.totalLocalBalance ? CurrencyAmountToJson(this.totalLocalBalance) : void 0,
|
|
1276
|
+
lightspark_node_with_remote_signing_local_balance: this.localBalance ? CurrencyAmountToJson(this.localBalance) : void 0,
|
|
1277
|
+
lightspark_node_with_remote_signing_remote_balance: this.remoteBalance ? CurrencyAmountToJson(this.remoteBalance) : void 0,
|
|
1278
|
+
lightspark_node_with_remote_signing_blockchain_balance: this.blockchainBalance ? BlockchainBalanceToJson(this.blockchainBalance) : void 0,
|
|
1279
|
+
lightspark_node_with_remote_signing_uma_prescreening_utxos: this.umaPrescreeningUtxos,
|
|
1280
|
+
lightspark_node_with_remote_signing_balances: this.balances ? BalancesToJson(this.balances) : void 0
|
|
1281
|
+
};
|
|
1282
|
+
}
|
|
1121
1283
|
};
|
|
1122
1284
|
var LightsparkNodeWithRemoteSigningFromJson = (obj) => {
|
|
1123
1285
|
return new LightsparkNodeWithRemoteSigning(
|
|
@@ -1148,7 +1310,8 @@ var LightsparkNodeWithRemoteSigningFromJson = (obj) => {
|
|
|
1148
1310
|
) : void 0,
|
|
1149
1311
|
!!obj["lightspark_node_with_remote_signing_blockchain_balance"] ? BlockchainBalanceFromJson(
|
|
1150
1312
|
obj["lightspark_node_with_remote_signing_blockchain_balance"]
|
|
1151
|
-
) : void 0
|
|
1313
|
+
) : void 0,
|
|
1314
|
+
!!obj["lightspark_node_with_remote_signing_balances"] ? BalancesFromJson(obj["lightspark_node_with_remote_signing_balances"]) : void 0
|
|
1152
1315
|
);
|
|
1153
1316
|
};
|
|
1154
1317
|
var FRAGMENT4 = `
|
|
@@ -1251,203 +1414,37 @@ fragment LightsparkNodeWithRemoteSigningFragment on LightsparkNodeWithRemoteSign
|
|
|
1251
1414
|
}
|
|
1252
1415
|
}
|
|
1253
1416
|
lightspark_node_with_remote_signing_uma_prescreening_utxos: uma_prescreening_utxos
|
|
1254
|
-
|
|
1255
|
-
|
|
1256
|
-
|
|
1257
|
-
|
|
1258
|
-
|
|
1259
|
-
|
|
1260
|
-
|
|
1261
|
-
|
|
1262
|
-
|
|
1263
|
-
this.bitcoinNetwork = bitcoinNetwork;
|
|
1264
|
-
this.displayName = displayName;
|
|
1265
|
-
this.ownerId = ownerId;
|
|
1266
|
-
this.umaPrescreeningUtxos = umaPrescreeningUtxos;
|
|
1267
|
-
this.typename = typename;
|
|
1268
|
-
this.alias = alias;
|
|
1269
|
-
this.color = color;
|
|
1270
|
-
this.conductivity = conductivity;
|
|
1271
|
-
this.publicKey = publicKey;
|
|
1272
|
-
this.status = status;
|
|
1273
|
-
this.totalBalance = totalBalance;
|
|
1274
|
-
this.totalLocalBalance = totalLocalBalance;
|
|
1275
|
-
this.localBalance = localBalance;
|
|
1276
|
-
this.remoteBalance = remoteBalance;
|
|
1277
|
-
this.blockchainBalance = blockchainBalance;
|
|
1278
|
-
(0, import_auto_bind5.default)(this);
|
|
1279
|
-
}
|
|
1280
|
-
async getAddresses(client, first = void 0, types = void 0) {
|
|
1281
|
-
return await client.executeRawQuery({
|
|
1282
|
-
queryPayload: `
|
|
1283
|
-
query FetchNodeToAddressesConnection($entity_id: ID!, $first: Int, $types: [NodeAddressType!]) {
|
|
1284
|
-
entity(id: $entity_id) {
|
|
1285
|
-
... on LightsparkNode {
|
|
1286
|
-
addresses(, first: $first, types: $types) {
|
|
1287
|
-
__typename
|
|
1288
|
-
node_to_addresses_connection_count: count
|
|
1289
|
-
node_to_addresses_connection_entities: entities {
|
|
1290
|
-
__typename
|
|
1291
|
-
node_address_address: address
|
|
1292
|
-
node_address_type: type
|
|
1293
|
-
}
|
|
1294
|
-
}
|
|
1417
|
+
lightspark_node_with_remote_signing_balances: balances {
|
|
1418
|
+
__typename
|
|
1419
|
+
balances_owned_balance: owned_balance {
|
|
1420
|
+
__typename
|
|
1421
|
+
currency_amount_original_value: original_value
|
|
1422
|
+
currency_amount_original_unit: original_unit
|
|
1423
|
+
currency_amount_preferred_currency_unit: preferred_currency_unit
|
|
1424
|
+
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
1425
|
+
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
1295
1426
|
}
|
|
1296
|
-
|
|
1297
|
-
|
|
1298
|
-
|
|
1299
|
-
|
|
1300
|
-
|
|
1301
|
-
|
|
1302
|
-
|
|
1303
|
-
}
|
|
1304
|
-
});
|
|
1305
|
-
}
|
|
1306
|
-
async getChannels(client, first = void 0, statuses = void 0, after = void 0) {
|
|
1307
|
-
return await client.executeRawQuery({
|
|
1308
|
-
queryPayload: `
|
|
1309
|
-
query FetchLightsparkNodeToChannelsConnection($entity_id: ID!, $first: Int, $statuses: [ChannelStatus!], $after: String) {
|
|
1310
|
-
entity(id: $entity_id) {
|
|
1311
|
-
... on LightsparkNode {
|
|
1312
|
-
channels(, first: $first, statuses: $statuses, after: $after) {
|
|
1313
|
-
__typename
|
|
1314
|
-
lightspark_node_to_channels_connection_count: count
|
|
1315
|
-
lightspark_node_to_channels_connection_page_info: page_info {
|
|
1316
|
-
__typename
|
|
1317
|
-
page_info_has_next_page: has_next_page
|
|
1318
|
-
page_info_has_previous_page: has_previous_page
|
|
1319
|
-
page_info_start_cursor: start_cursor
|
|
1320
|
-
page_info_end_cursor: end_cursor
|
|
1321
|
-
}
|
|
1322
|
-
lightspark_node_to_channels_connection_entities: entities {
|
|
1323
|
-
__typename
|
|
1324
|
-
channel_id: id
|
|
1325
|
-
channel_created_at: created_at
|
|
1326
|
-
channel_updated_at: updated_at
|
|
1327
|
-
channel_funding_transaction: funding_transaction {
|
|
1328
|
-
id
|
|
1329
|
-
}
|
|
1330
|
-
channel_capacity: capacity {
|
|
1331
|
-
__typename
|
|
1332
|
-
currency_amount_original_value: original_value
|
|
1333
|
-
currency_amount_original_unit: original_unit
|
|
1334
|
-
currency_amount_preferred_currency_unit: preferred_currency_unit
|
|
1335
|
-
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
1336
|
-
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
1337
|
-
}
|
|
1338
|
-
channel_local_balance: local_balance {
|
|
1339
|
-
__typename
|
|
1340
|
-
currency_amount_original_value: original_value
|
|
1341
|
-
currency_amount_original_unit: original_unit
|
|
1342
|
-
currency_amount_preferred_currency_unit: preferred_currency_unit
|
|
1343
|
-
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
1344
|
-
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
1345
|
-
}
|
|
1346
|
-
channel_local_unsettled_balance: local_unsettled_balance {
|
|
1347
|
-
__typename
|
|
1348
|
-
currency_amount_original_value: original_value
|
|
1349
|
-
currency_amount_original_unit: original_unit
|
|
1350
|
-
currency_amount_preferred_currency_unit: preferred_currency_unit
|
|
1351
|
-
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
1352
|
-
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
1353
|
-
}
|
|
1354
|
-
channel_remote_balance: remote_balance {
|
|
1355
|
-
__typename
|
|
1356
|
-
currency_amount_original_value: original_value
|
|
1357
|
-
currency_amount_original_unit: original_unit
|
|
1358
|
-
currency_amount_preferred_currency_unit: preferred_currency_unit
|
|
1359
|
-
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
1360
|
-
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
1361
|
-
}
|
|
1362
|
-
channel_remote_unsettled_balance: remote_unsettled_balance {
|
|
1363
|
-
__typename
|
|
1364
|
-
currency_amount_original_value: original_value
|
|
1365
|
-
currency_amount_original_unit: original_unit
|
|
1366
|
-
currency_amount_preferred_currency_unit: preferred_currency_unit
|
|
1367
|
-
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
1368
|
-
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
1369
|
-
}
|
|
1370
|
-
channel_unsettled_balance: unsettled_balance {
|
|
1371
|
-
__typename
|
|
1372
|
-
currency_amount_original_value: original_value
|
|
1373
|
-
currency_amount_original_unit: original_unit
|
|
1374
|
-
currency_amount_preferred_currency_unit: preferred_currency_unit
|
|
1375
|
-
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
1376
|
-
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
1377
|
-
}
|
|
1378
|
-
channel_total_balance: total_balance {
|
|
1379
|
-
__typename
|
|
1380
|
-
currency_amount_original_value: original_value
|
|
1381
|
-
currency_amount_original_unit: original_unit
|
|
1382
|
-
currency_amount_preferred_currency_unit: preferred_currency_unit
|
|
1383
|
-
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
1384
|
-
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
1385
|
-
}
|
|
1386
|
-
channel_status: status
|
|
1387
|
-
channel_estimated_force_closure_wait_minutes: estimated_force_closure_wait_minutes
|
|
1388
|
-
channel_commit_fee: commit_fee {
|
|
1389
|
-
__typename
|
|
1390
|
-
currency_amount_original_value: original_value
|
|
1391
|
-
currency_amount_original_unit: original_unit
|
|
1392
|
-
currency_amount_preferred_currency_unit: preferred_currency_unit
|
|
1393
|
-
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
1394
|
-
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
1395
|
-
}
|
|
1396
|
-
channel_fees: fees {
|
|
1397
|
-
__typename
|
|
1398
|
-
channel_fees_base_fee: base_fee {
|
|
1399
|
-
__typename
|
|
1400
|
-
currency_amount_original_value: original_value
|
|
1401
|
-
currency_amount_original_unit: original_unit
|
|
1402
|
-
currency_amount_preferred_currency_unit: preferred_currency_unit
|
|
1403
|
-
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
1404
|
-
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
1405
|
-
}
|
|
1406
|
-
channel_fees_fee_rate_per_mil: fee_rate_per_mil
|
|
1407
|
-
}
|
|
1408
|
-
channel_remote_node: remote_node {
|
|
1409
|
-
id
|
|
1410
|
-
}
|
|
1411
|
-
channel_local_node: local_node {
|
|
1412
|
-
id
|
|
1413
|
-
}
|
|
1414
|
-
channel_short_channel_id: short_channel_id
|
|
1415
|
-
}
|
|
1416
|
-
}
|
|
1427
|
+
balances_available_to_send_balance: available_to_send_balance {
|
|
1428
|
+
__typename
|
|
1429
|
+
currency_amount_original_value: original_value
|
|
1430
|
+
currency_amount_original_unit: original_unit
|
|
1431
|
+
currency_amount_preferred_currency_unit: preferred_currency_unit
|
|
1432
|
+
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
1433
|
+
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
1417
1434
|
}
|
|
1418
|
-
|
|
1419
|
-
|
|
1420
|
-
|
|
1421
|
-
|
|
1422
|
-
|
|
1423
|
-
|
|
1424
|
-
|
|
1425
|
-
after
|
|
1426
|
-
},
|
|
1427
|
-
constructObject: (json) => {
|
|
1428
|
-
const connection = json["entity"]["channels"];
|
|
1429
|
-
return LightsparkNodeToChannelsConnectionFromJson(connection);
|
|
1430
|
-
}
|
|
1431
|
-
});
|
|
1432
|
-
}
|
|
1433
|
-
static getLightsparkNodeQuery(id) {
|
|
1434
|
-
return {
|
|
1435
|
-
queryPayload: `
|
|
1436
|
-
query GetLightsparkNode($id: ID!) {
|
|
1437
|
-
entity(id: $id) {
|
|
1438
|
-
... on LightsparkNode {
|
|
1439
|
-
...LightsparkNodeFragment
|
|
1435
|
+
balances_available_to_withdraw_balance: available_to_withdraw_balance {
|
|
1436
|
+
__typename
|
|
1437
|
+
currency_amount_original_value: original_value
|
|
1438
|
+
currency_amount_original_unit: original_unit
|
|
1439
|
+
currency_amount_preferred_currency_unit: preferred_currency_unit
|
|
1440
|
+
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
1441
|
+
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
1440
1442
|
}
|
|
1441
1443
|
}
|
|
1442
|
-
}
|
|
1444
|
+
}`;
|
|
1445
|
+
var LightsparkNodeWithRemoteSigning_default = LightsparkNodeWithRemoteSigning;
|
|
1443
1446
|
|
|
1444
|
-
|
|
1445
|
-
`,
|
|
1446
|
-
variables: { id },
|
|
1447
|
-
constructObject: (data) => LightsparkNodeFromJson(data.entity)
|
|
1448
|
-
};
|
|
1449
|
-
}
|
|
1450
|
-
};
|
|
1447
|
+
// src/objects/LightsparkNode.ts
|
|
1451
1448
|
var LightsparkNodeFromJson = (obj) => {
|
|
1452
1449
|
if (obj["__typename"] == "LightsparkNodeWithOSK") {
|
|
1453
1450
|
return new LightsparkNodeWithOSK_default(
|
|
@@ -1479,6 +1476,7 @@ var LightsparkNodeFromJson = (obj) => {
|
|
|
1479
1476
|
!!obj["lightspark_node_with_o_s_k_blockchain_balance"] ? BlockchainBalanceFromJson(
|
|
1480
1477
|
obj["lightspark_node_with_o_s_k_blockchain_balance"]
|
|
1481
1478
|
) : void 0,
|
|
1479
|
+
!!obj["lightspark_node_with_o_s_k_balances"] ? BalancesFromJson(obj["lightspark_node_with_o_s_k_balances"]) : void 0,
|
|
1482
1480
|
!!obj["lightspark_node_with_o_s_k_encrypted_signing_private_key"] ? SecretFromJson(
|
|
1483
1481
|
obj["lightspark_node_with_o_s_k_encrypted_signing_private_key"]
|
|
1484
1482
|
) : void 0
|
|
@@ -1513,7 +1511,8 @@ var LightsparkNodeFromJson = (obj) => {
|
|
|
1513
1511
|
) : void 0,
|
|
1514
1512
|
!!obj["lightspark_node_with_remote_signing_blockchain_balance"] ? BlockchainBalanceFromJson(
|
|
1515
1513
|
obj["lightspark_node_with_remote_signing_blockchain_balance"]
|
|
1516
|
-
) : void 0
|
|
1514
|
+
) : void 0,
|
|
1515
|
+
!!obj["lightspark_node_with_remote_signing_balances"] ? BalancesFromJson(obj["lightspark_node_with_remote_signing_balances"]) : void 0
|
|
1517
1516
|
);
|
|
1518
1517
|
}
|
|
1519
1518
|
throw new import_core.LightsparkException(
|
|
@@ -1623,6 +1622,33 @@ fragment LightsparkNodeFragment on LightsparkNode {
|
|
|
1623
1622
|
}
|
|
1624
1623
|
}
|
|
1625
1624
|
lightspark_node_with_o_s_k_uma_prescreening_utxos: uma_prescreening_utxos
|
|
1625
|
+
lightspark_node_with_o_s_k_balances: balances {
|
|
1626
|
+
__typename
|
|
1627
|
+
balances_owned_balance: owned_balance {
|
|
1628
|
+
__typename
|
|
1629
|
+
currency_amount_original_value: original_value
|
|
1630
|
+
currency_amount_original_unit: original_unit
|
|
1631
|
+
currency_amount_preferred_currency_unit: preferred_currency_unit
|
|
1632
|
+
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
1633
|
+
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
1634
|
+
}
|
|
1635
|
+
balances_available_to_send_balance: available_to_send_balance {
|
|
1636
|
+
__typename
|
|
1637
|
+
currency_amount_original_value: original_value
|
|
1638
|
+
currency_amount_original_unit: original_unit
|
|
1639
|
+
currency_amount_preferred_currency_unit: preferred_currency_unit
|
|
1640
|
+
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
1641
|
+
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
1642
|
+
}
|
|
1643
|
+
balances_available_to_withdraw_balance: available_to_withdraw_balance {
|
|
1644
|
+
__typename
|
|
1645
|
+
currency_amount_original_value: original_value
|
|
1646
|
+
currency_amount_original_unit: original_unit
|
|
1647
|
+
currency_amount_preferred_currency_unit: preferred_currency_unit
|
|
1648
|
+
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
1649
|
+
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
1650
|
+
}
|
|
1651
|
+
}
|
|
1626
1652
|
lightspark_node_with_o_s_k_encrypted_signing_private_key: encrypted_signing_private_key {
|
|
1627
1653
|
__typename
|
|
1628
1654
|
secret_encrypted_value: encrypted_value
|
|
@@ -1686,7 +1712,23 @@ fragment LightsparkNodeFragment on LightsparkNode {
|
|
|
1686
1712
|
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
1687
1713
|
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
1688
1714
|
}
|
|
1689
|
-
blockchain_balance_confirmed_balance: confirmed_balance {
|
|
1715
|
+
blockchain_balance_confirmed_balance: confirmed_balance {
|
|
1716
|
+
__typename
|
|
1717
|
+
currency_amount_original_value: original_value
|
|
1718
|
+
currency_amount_original_unit: original_unit
|
|
1719
|
+
currency_amount_preferred_currency_unit: preferred_currency_unit
|
|
1720
|
+
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
1721
|
+
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
1722
|
+
}
|
|
1723
|
+
blockchain_balance_unconfirmed_balance: unconfirmed_balance {
|
|
1724
|
+
__typename
|
|
1725
|
+
currency_amount_original_value: original_value
|
|
1726
|
+
currency_amount_original_unit: original_unit
|
|
1727
|
+
currency_amount_preferred_currency_unit: preferred_currency_unit
|
|
1728
|
+
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
1729
|
+
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
1730
|
+
}
|
|
1731
|
+
blockchain_balance_locked_balance: locked_balance {
|
|
1690
1732
|
__typename
|
|
1691
1733
|
currency_amount_original_value: original_value
|
|
1692
1734
|
currency_amount_original_unit: original_unit
|
|
@@ -1694,7 +1736,7 @@ fragment LightsparkNodeFragment on LightsparkNode {
|
|
|
1694
1736
|
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
1695
1737
|
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
1696
1738
|
}
|
|
1697
|
-
|
|
1739
|
+
blockchain_balance_required_reserve: required_reserve {
|
|
1698
1740
|
__typename
|
|
1699
1741
|
currency_amount_original_value: original_value
|
|
1700
1742
|
currency_amount_original_unit: original_unit
|
|
@@ -1702,7 +1744,7 @@ fragment LightsparkNodeFragment on LightsparkNode {
|
|
|
1702
1744
|
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
1703
1745
|
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
1704
1746
|
}
|
|
1705
|
-
|
|
1747
|
+
blockchain_balance_available_balance: available_balance {
|
|
1706
1748
|
__typename
|
|
1707
1749
|
currency_amount_original_value: original_value
|
|
1708
1750
|
currency_amount_original_unit: original_unit
|
|
@@ -1710,7 +1752,11 @@ fragment LightsparkNodeFragment on LightsparkNode {
|
|
|
1710
1752
|
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
1711
1753
|
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
1712
1754
|
}
|
|
1713
|
-
|
|
1755
|
+
}
|
|
1756
|
+
lightspark_node_with_remote_signing_uma_prescreening_utxos: uma_prescreening_utxos
|
|
1757
|
+
lightspark_node_with_remote_signing_balances: balances {
|
|
1758
|
+
__typename
|
|
1759
|
+
balances_owned_balance: owned_balance {
|
|
1714
1760
|
__typename
|
|
1715
1761
|
currency_amount_original_value: original_value
|
|
1716
1762
|
currency_amount_original_unit: original_unit
|
|
@@ -1718,7 +1764,15 @@ fragment LightsparkNodeFragment on LightsparkNode {
|
|
|
1718
1764
|
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
1719
1765
|
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
1720
1766
|
}
|
|
1721
|
-
|
|
1767
|
+
balances_available_to_send_balance: available_to_send_balance {
|
|
1768
|
+
__typename
|
|
1769
|
+
currency_amount_original_value: original_value
|
|
1770
|
+
currency_amount_original_unit: original_unit
|
|
1771
|
+
currency_amount_preferred_currency_unit: preferred_currency_unit
|
|
1772
|
+
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
1773
|
+
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
1774
|
+
}
|
|
1775
|
+
balances_available_to_withdraw_balance: available_to_withdraw_balance {
|
|
1722
1776
|
__typename
|
|
1723
1777
|
currency_amount_original_value: original_value
|
|
1724
1778
|
currency_amount_original_unit: original_unit
|
|
@@ -1727,10 +1781,25 @@ fragment LightsparkNodeFragment on LightsparkNode {
|
|
|
1727
1781
|
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
1728
1782
|
}
|
|
1729
1783
|
}
|
|
1730
|
-
lightspark_node_with_remote_signing_uma_prescreening_utxos: uma_prescreening_utxos
|
|
1731
1784
|
}
|
|
1732
1785
|
}`;
|
|
1733
|
-
var
|
|
1786
|
+
var getLightsparkNodeQuery = (id) => {
|
|
1787
|
+
return {
|
|
1788
|
+
queryPayload: `
|
|
1789
|
+
query GetLightsparkNode($id: ID!) {
|
|
1790
|
+
entity(id: $id) {
|
|
1791
|
+
... on LightsparkNode {
|
|
1792
|
+
...LightsparkNodeFragment
|
|
1793
|
+
}
|
|
1794
|
+
}
|
|
1795
|
+
}
|
|
1796
|
+
|
|
1797
|
+
${FRAGMENT5}
|
|
1798
|
+
`,
|
|
1799
|
+
variables: { id },
|
|
1800
|
+
constructObject: (data) => LightsparkNodeFromJson(data.entity)
|
|
1801
|
+
};
|
|
1802
|
+
};
|
|
1734
1803
|
|
|
1735
1804
|
// src/objects/AccountToNodesConnection.ts
|
|
1736
1805
|
var AccountToNodesConnectionFromJson = (obj) => {
|
|
@@ -1749,10 +1818,9 @@ var import_core3 = require("@lightsparkdev/core");
|
|
|
1749
1818
|
|
|
1750
1819
|
// src/objects/Node.ts
|
|
1751
1820
|
var import_core2 = require("@lightsparkdev/core");
|
|
1752
|
-
var import_auto_bind7 = __toESM(require("auto-bind"), 1);
|
|
1753
1821
|
|
|
1754
1822
|
// src/objects/GraphNode.ts
|
|
1755
|
-
var
|
|
1823
|
+
var import_auto_bind5 = __toESM(require("auto-bind"), 1);
|
|
1756
1824
|
var GraphNode = class {
|
|
1757
1825
|
constructor(id, createdAt, updatedAt, bitcoinNetwork, displayName, typename, alias, color, conductivity, publicKey) {
|
|
1758
1826
|
this.id = id;
|
|
@@ -1765,7 +1833,7 @@ var GraphNode = class {
|
|
|
1765
1833
|
this.color = color;
|
|
1766
1834
|
this.conductivity = conductivity;
|
|
1767
1835
|
this.publicKey = publicKey;
|
|
1768
|
-
(0,
|
|
1836
|
+
(0, import_auto_bind5.default)(this);
|
|
1769
1837
|
}
|
|
1770
1838
|
async getAddresses(client, first = void 0, types = void 0) {
|
|
1771
1839
|
return await client.executeRawQuery({
|
|
@@ -1810,6 +1878,20 @@ ${FRAGMENT6}
|
|
|
1810
1878
|
constructObject: (data) => GraphNodeFromJson(data.entity)
|
|
1811
1879
|
};
|
|
1812
1880
|
}
|
|
1881
|
+
toJson() {
|
|
1882
|
+
return {
|
|
1883
|
+
__typename: "GraphNode",
|
|
1884
|
+
graph_node_id: this.id,
|
|
1885
|
+
graph_node_created_at: this.createdAt,
|
|
1886
|
+
graph_node_updated_at: this.updatedAt,
|
|
1887
|
+
graph_node_alias: this.alias,
|
|
1888
|
+
graph_node_bitcoin_network: this.bitcoinNetwork,
|
|
1889
|
+
graph_node_color: this.color,
|
|
1890
|
+
graph_node_conductivity: this.conductivity,
|
|
1891
|
+
graph_node_display_name: this.displayName,
|
|
1892
|
+
graph_node_public_key: this.publicKey
|
|
1893
|
+
};
|
|
1894
|
+
}
|
|
1813
1895
|
};
|
|
1814
1896
|
var GraphNodeFromJson = (obj) => {
|
|
1815
1897
|
return new GraphNode(
|
|
@@ -1841,64 +1923,6 @@ fragment GraphNodeFragment on GraphNode {
|
|
|
1841
1923
|
var GraphNode_default = GraphNode;
|
|
1842
1924
|
|
|
1843
1925
|
// src/objects/Node.ts
|
|
1844
|
-
var Node = class {
|
|
1845
|
-
constructor(id, createdAt, updatedAt, bitcoinNetwork, displayName, typename, alias, color, conductivity, publicKey) {
|
|
1846
|
-
this.id = id;
|
|
1847
|
-
this.createdAt = createdAt;
|
|
1848
|
-
this.updatedAt = updatedAt;
|
|
1849
|
-
this.bitcoinNetwork = bitcoinNetwork;
|
|
1850
|
-
this.displayName = displayName;
|
|
1851
|
-
this.typename = typename;
|
|
1852
|
-
this.alias = alias;
|
|
1853
|
-
this.color = color;
|
|
1854
|
-
this.conductivity = conductivity;
|
|
1855
|
-
this.publicKey = publicKey;
|
|
1856
|
-
(0, import_auto_bind7.default)(this);
|
|
1857
|
-
}
|
|
1858
|
-
async getAddresses(client, first = void 0, types = void 0) {
|
|
1859
|
-
return await client.executeRawQuery({
|
|
1860
|
-
queryPayload: `
|
|
1861
|
-
query FetchNodeToAddressesConnection($entity_id: ID!, $first: Int, $types: [NodeAddressType!]) {
|
|
1862
|
-
entity(id: $entity_id) {
|
|
1863
|
-
... on Node {
|
|
1864
|
-
addresses(, first: $first, types: $types) {
|
|
1865
|
-
__typename
|
|
1866
|
-
node_to_addresses_connection_count: count
|
|
1867
|
-
node_to_addresses_connection_entities: entities {
|
|
1868
|
-
__typename
|
|
1869
|
-
node_address_address: address
|
|
1870
|
-
node_address_type: type
|
|
1871
|
-
}
|
|
1872
|
-
}
|
|
1873
|
-
}
|
|
1874
|
-
}
|
|
1875
|
-
}
|
|
1876
|
-
`,
|
|
1877
|
-
variables: { entity_id: this.id, first, types },
|
|
1878
|
-
constructObject: (json) => {
|
|
1879
|
-
const connection = json["entity"]["addresses"];
|
|
1880
|
-
return NodeToAddressesConnectionFromJson(connection);
|
|
1881
|
-
}
|
|
1882
|
-
});
|
|
1883
|
-
}
|
|
1884
|
-
static getNodeQuery(id) {
|
|
1885
|
-
return {
|
|
1886
|
-
queryPayload: `
|
|
1887
|
-
query GetNode($id: ID!) {
|
|
1888
|
-
entity(id: $id) {
|
|
1889
|
-
... on Node {
|
|
1890
|
-
...NodeFragment
|
|
1891
|
-
}
|
|
1892
|
-
}
|
|
1893
|
-
}
|
|
1894
|
-
|
|
1895
|
-
${FRAGMENT7}
|
|
1896
|
-
`,
|
|
1897
|
-
variables: { id },
|
|
1898
|
-
constructObject: (data) => NodeFromJson(data.entity)
|
|
1899
|
-
};
|
|
1900
|
-
}
|
|
1901
|
-
};
|
|
1902
1926
|
var NodeFromJson = (obj) => {
|
|
1903
1927
|
if (obj["__typename"] == "GraphNode") {
|
|
1904
1928
|
return new GraphNode_default(
|
|
@@ -1944,6 +1968,7 @@ var NodeFromJson = (obj) => {
|
|
|
1944
1968
|
!!obj["lightspark_node_with_o_s_k_blockchain_balance"] ? BlockchainBalanceFromJson(
|
|
1945
1969
|
obj["lightspark_node_with_o_s_k_blockchain_balance"]
|
|
1946
1970
|
) : void 0,
|
|
1971
|
+
!!obj["lightspark_node_with_o_s_k_balances"] ? BalancesFromJson(obj["lightspark_node_with_o_s_k_balances"]) : void 0,
|
|
1947
1972
|
!!obj["lightspark_node_with_o_s_k_encrypted_signing_private_key"] ? SecretFromJson(
|
|
1948
1973
|
obj["lightspark_node_with_o_s_k_encrypted_signing_private_key"]
|
|
1949
1974
|
) : void 0
|
|
@@ -1978,7 +2003,8 @@ var NodeFromJson = (obj) => {
|
|
|
1978
2003
|
) : void 0,
|
|
1979
2004
|
!!obj["lightspark_node_with_remote_signing_blockchain_balance"] ? BlockchainBalanceFromJson(
|
|
1980
2005
|
obj["lightspark_node_with_remote_signing_blockchain_balance"]
|
|
1981
|
-
) : void 0
|
|
2006
|
+
) : void 0,
|
|
2007
|
+
!!obj["lightspark_node_with_remote_signing_balances"] ? BalancesFromJson(obj["lightspark_node_with_remote_signing_balances"]) : void 0
|
|
1982
2008
|
);
|
|
1983
2009
|
}
|
|
1984
2010
|
throw new import_core2.LightsparkException(
|
|
@@ -1986,6 +2012,82 @@ var NodeFromJson = (obj) => {
|
|
|
1986
2012
|
`Couldn't find a concrete type for interface Node corresponding to the typename=${obj["__typename"]}`
|
|
1987
2013
|
);
|
|
1988
2014
|
};
|
|
2015
|
+
var NodeToJson = (obj) => {
|
|
2016
|
+
if (obj.typename == "GraphNode") {
|
|
2017
|
+
const graphNode = obj;
|
|
2018
|
+
return {
|
|
2019
|
+
__typename: "GraphNode",
|
|
2020
|
+
graph_node_id: graphNode.id,
|
|
2021
|
+
graph_node_created_at: graphNode.createdAt,
|
|
2022
|
+
graph_node_updated_at: graphNode.updatedAt,
|
|
2023
|
+
graph_node_alias: graphNode.alias,
|
|
2024
|
+
graph_node_bitcoin_network: graphNode.bitcoinNetwork,
|
|
2025
|
+
graph_node_color: graphNode.color,
|
|
2026
|
+
graph_node_conductivity: graphNode.conductivity,
|
|
2027
|
+
graph_node_display_name: graphNode.displayName,
|
|
2028
|
+
graph_node_public_key: graphNode.publicKey
|
|
2029
|
+
};
|
|
2030
|
+
}
|
|
2031
|
+
if (obj.typename == "LightsparkNodeWithOSK") {
|
|
2032
|
+
const lightsparkNodeWithOSK = obj;
|
|
2033
|
+
return {
|
|
2034
|
+
__typename: "LightsparkNodeWithOSK",
|
|
2035
|
+
lightspark_node_with_o_s_k_id: lightsparkNodeWithOSK.id,
|
|
2036
|
+
lightspark_node_with_o_s_k_created_at: lightsparkNodeWithOSK.createdAt,
|
|
2037
|
+
lightspark_node_with_o_s_k_updated_at: lightsparkNodeWithOSK.updatedAt,
|
|
2038
|
+
lightspark_node_with_o_s_k_alias: lightsparkNodeWithOSK.alias,
|
|
2039
|
+
lightspark_node_with_o_s_k_bitcoin_network: lightsparkNodeWithOSK.bitcoinNetwork,
|
|
2040
|
+
lightspark_node_with_o_s_k_color: lightsparkNodeWithOSK.color,
|
|
2041
|
+
lightspark_node_with_o_s_k_conductivity: lightsparkNodeWithOSK.conductivity,
|
|
2042
|
+
lightspark_node_with_o_s_k_display_name: lightsparkNodeWithOSK.displayName,
|
|
2043
|
+
lightspark_node_with_o_s_k_public_key: lightsparkNodeWithOSK.publicKey,
|
|
2044
|
+
lightspark_node_with_o_s_k_owner: { id: lightsparkNodeWithOSK.ownerId },
|
|
2045
|
+
lightspark_node_with_o_s_k_status: lightsparkNodeWithOSK.status,
|
|
2046
|
+
lightspark_node_with_o_s_k_total_balance: lightsparkNodeWithOSK.totalBalance ? CurrencyAmountToJson(lightsparkNodeWithOSK.totalBalance) : void 0,
|
|
2047
|
+
lightspark_node_with_o_s_k_total_local_balance: lightsparkNodeWithOSK.totalLocalBalance ? CurrencyAmountToJson(lightsparkNodeWithOSK.totalLocalBalance) : void 0,
|
|
2048
|
+
lightspark_node_with_o_s_k_local_balance: lightsparkNodeWithOSK.localBalance ? CurrencyAmountToJson(lightsparkNodeWithOSK.localBalance) : void 0,
|
|
2049
|
+
lightspark_node_with_o_s_k_remote_balance: lightsparkNodeWithOSK.remoteBalance ? CurrencyAmountToJson(lightsparkNodeWithOSK.remoteBalance) : void 0,
|
|
2050
|
+
lightspark_node_with_o_s_k_blockchain_balance: lightsparkNodeWithOSK.blockchainBalance ? BlockchainBalanceToJson(lightsparkNodeWithOSK.blockchainBalance) : void 0,
|
|
2051
|
+
lightspark_node_with_o_s_k_uma_prescreening_utxos: lightsparkNodeWithOSK.umaPrescreeningUtxos,
|
|
2052
|
+
lightspark_node_with_o_s_k_balances: lightsparkNodeWithOSK.balances ? BalancesToJson(lightsparkNodeWithOSK.balances) : void 0,
|
|
2053
|
+
lightspark_node_with_o_s_k_encrypted_signing_private_key: lightsparkNodeWithOSK.encryptedSigningPrivateKey ? SecretToJson(lightsparkNodeWithOSK.encryptedSigningPrivateKey) : void 0
|
|
2054
|
+
};
|
|
2055
|
+
}
|
|
2056
|
+
if (obj.typename == "LightsparkNodeWithRemoteSigning") {
|
|
2057
|
+
const lightsparkNodeWithRemoteSigning = obj;
|
|
2058
|
+
return {
|
|
2059
|
+
__typename: "LightsparkNodeWithRemoteSigning",
|
|
2060
|
+
lightspark_node_with_remote_signing_id: lightsparkNodeWithRemoteSigning.id,
|
|
2061
|
+
lightspark_node_with_remote_signing_created_at: lightsparkNodeWithRemoteSigning.createdAt,
|
|
2062
|
+
lightspark_node_with_remote_signing_updated_at: lightsparkNodeWithRemoteSigning.updatedAt,
|
|
2063
|
+
lightspark_node_with_remote_signing_alias: lightsparkNodeWithRemoteSigning.alias,
|
|
2064
|
+
lightspark_node_with_remote_signing_bitcoin_network: lightsparkNodeWithRemoteSigning.bitcoinNetwork,
|
|
2065
|
+
lightspark_node_with_remote_signing_color: lightsparkNodeWithRemoteSigning.color,
|
|
2066
|
+
lightspark_node_with_remote_signing_conductivity: lightsparkNodeWithRemoteSigning.conductivity,
|
|
2067
|
+
lightspark_node_with_remote_signing_display_name: lightsparkNodeWithRemoteSigning.displayName,
|
|
2068
|
+
lightspark_node_with_remote_signing_public_key: lightsparkNodeWithRemoteSigning.publicKey,
|
|
2069
|
+
lightspark_node_with_remote_signing_owner: {
|
|
2070
|
+
id: lightsparkNodeWithRemoteSigning.ownerId
|
|
2071
|
+
},
|
|
2072
|
+
lightspark_node_with_remote_signing_status: lightsparkNodeWithRemoteSigning.status,
|
|
2073
|
+
lightspark_node_with_remote_signing_total_balance: lightsparkNodeWithRemoteSigning.totalBalance ? CurrencyAmountToJson(lightsparkNodeWithRemoteSigning.totalBalance) : void 0,
|
|
2074
|
+
lightspark_node_with_remote_signing_total_local_balance: lightsparkNodeWithRemoteSigning.totalLocalBalance ? CurrencyAmountToJson(
|
|
2075
|
+
lightsparkNodeWithRemoteSigning.totalLocalBalance
|
|
2076
|
+
) : void 0,
|
|
2077
|
+
lightspark_node_with_remote_signing_local_balance: lightsparkNodeWithRemoteSigning.localBalance ? CurrencyAmountToJson(lightsparkNodeWithRemoteSigning.localBalance) : void 0,
|
|
2078
|
+
lightspark_node_with_remote_signing_remote_balance: lightsparkNodeWithRemoteSigning.remoteBalance ? CurrencyAmountToJson(lightsparkNodeWithRemoteSigning.remoteBalance) : void 0,
|
|
2079
|
+
lightspark_node_with_remote_signing_blockchain_balance: lightsparkNodeWithRemoteSigning.blockchainBalance ? BlockchainBalanceToJson(
|
|
2080
|
+
lightsparkNodeWithRemoteSigning.blockchainBalance
|
|
2081
|
+
) : void 0,
|
|
2082
|
+
lightspark_node_with_remote_signing_uma_prescreening_utxos: lightsparkNodeWithRemoteSigning.umaPrescreeningUtxos,
|
|
2083
|
+
lightspark_node_with_remote_signing_balances: lightsparkNodeWithRemoteSigning.balances ? BalancesToJson(lightsparkNodeWithRemoteSigning.balances) : void 0
|
|
2084
|
+
};
|
|
2085
|
+
}
|
|
2086
|
+
throw new import_core2.LightsparkException(
|
|
2087
|
+
"DeserializationError",
|
|
2088
|
+
`Couldn't find a concrete type for interface Node corresponding to the typename=${obj.typename}`
|
|
2089
|
+
);
|
|
2090
|
+
};
|
|
1989
2091
|
var FRAGMENT7 = `
|
|
1990
2092
|
fragment NodeFragment on Node {
|
|
1991
2093
|
__typename
|
|
@@ -2100,6 +2202,33 @@ fragment NodeFragment on Node {
|
|
|
2100
2202
|
}
|
|
2101
2203
|
}
|
|
2102
2204
|
lightspark_node_with_o_s_k_uma_prescreening_utxos: uma_prescreening_utxos
|
|
2205
|
+
lightspark_node_with_o_s_k_balances: balances {
|
|
2206
|
+
__typename
|
|
2207
|
+
balances_owned_balance: owned_balance {
|
|
2208
|
+
__typename
|
|
2209
|
+
currency_amount_original_value: original_value
|
|
2210
|
+
currency_amount_original_unit: original_unit
|
|
2211
|
+
currency_amount_preferred_currency_unit: preferred_currency_unit
|
|
2212
|
+
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
2213
|
+
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
2214
|
+
}
|
|
2215
|
+
balances_available_to_send_balance: available_to_send_balance {
|
|
2216
|
+
__typename
|
|
2217
|
+
currency_amount_original_value: original_value
|
|
2218
|
+
currency_amount_original_unit: original_unit
|
|
2219
|
+
currency_amount_preferred_currency_unit: preferred_currency_unit
|
|
2220
|
+
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
2221
|
+
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
2222
|
+
}
|
|
2223
|
+
balances_available_to_withdraw_balance: available_to_withdraw_balance {
|
|
2224
|
+
__typename
|
|
2225
|
+
currency_amount_original_value: original_value
|
|
2226
|
+
currency_amount_original_unit: original_unit
|
|
2227
|
+
currency_amount_preferred_currency_unit: preferred_currency_unit
|
|
2228
|
+
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
2229
|
+
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
2230
|
+
}
|
|
2231
|
+
}
|
|
2103
2232
|
lightspark_node_with_o_s_k_encrypted_signing_private_key: encrypted_signing_private_key {
|
|
2104
2233
|
__typename
|
|
2105
2234
|
secret_encrypted_value: encrypted_value
|
|
@@ -2205,9 +2334,52 @@ fragment NodeFragment on Node {
|
|
|
2205
2334
|
}
|
|
2206
2335
|
}
|
|
2207
2336
|
lightspark_node_with_remote_signing_uma_prescreening_utxos: uma_prescreening_utxos
|
|
2337
|
+
lightspark_node_with_remote_signing_balances: balances {
|
|
2338
|
+
__typename
|
|
2339
|
+
balances_owned_balance: owned_balance {
|
|
2340
|
+
__typename
|
|
2341
|
+
currency_amount_original_value: original_value
|
|
2342
|
+
currency_amount_original_unit: original_unit
|
|
2343
|
+
currency_amount_preferred_currency_unit: preferred_currency_unit
|
|
2344
|
+
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
2345
|
+
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
2346
|
+
}
|
|
2347
|
+
balances_available_to_send_balance: available_to_send_balance {
|
|
2348
|
+
__typename
|
|
2349
|
+
currency_amount_original_value: original_value
|
|
2350
|
+
currency_amount_original_unit: original_unit
|
|
2351
|
+
currency_amount_preferred_currency_unit: preferred_currency_unit
|
|
2352
|
+
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
2353
|
+
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
2354
|
+
}
|
|
2355
|
+
balances_available_to_withdraw_balance: available_to_withdraw_balance {
|
|
2356
|
+
__typename
|
|
2357
|
+
currency_amount_original_value: original_value
|
|
2358
|
+
currency_amount_original_unit: original_unit
|
|
2359
|
+
currency_amount_preferred_currency_unit: preferred_currency_unit
|
|
2360
|
+
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
2361
|
+
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
2362
|
+
}
|
|
2363
|
+
}
|
|
2208
2364
|
}
|
|
2209
2365
|
}`;
|
|
2210
|
-
var
|
|
2366
|
+
var getNodeQuery = (id) => {
|
|
2367
|
+
return {
|
|
2368
|
+
queryPayload: `
|
|
2369
|
+
query GetNode($id: ID!) {
|
|
2370
|
+
entity(id: $id) {
|
|
2371
|
+
... on Node {
|
|
2372
|
+
...NodeFragment
|
|
2373
|
+
}
|
|
2374
|
+
}
|
|
2375
|
+
}
|
|
2376
|
+
|
|
2377
|
+
${FRAGMENT7}
|
|
2378
|
+
`,
|
|
2379
|
+
variables: { id },
|
|
2380
|
+
constructObject: (data) => NodeFromJson(data.entity)
|
|
2381
|
+
};
|
|
2382
|
+
};
|
|
2211
2383
|
|
|
2212
2384
|
// src/objects/InvoiceData.ts
|
|
2213
2385
|
var InvoiceDataFromJson = (obj) => {
|
|
@@ -2388,6 +2560,33 @@ fragment PaymentRequestFragment on PaymentRequest {
|
|
|
2388
2560
|
}
|
|
2389
2561
|
}
|
|
2390
2562
|
lightspark_node_with_o_s_k_uma_prescreening_utxos: uma_prescreening_utxos
|
|
2563
|
+
lightspark_node_with_o_s_k_balances: balances {
|
|
2564
|
+
__typename
|
|
2565
|
+
balances_owned_balance: owned_balance {
|
|
2566
|
+
__typename
|
|
2567
|
+
currency_amount_original_value: original_value
|
|
2568
|
+
currency_amount_original_unit: original_unit
|
|
2569
|
+
currency_amount_preferred_currency_unit: preferred_currency_unit
|
|
2570
|
+
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
2571
|
+
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
2572
|
+
}
|
|
2573
|
+
balances_available_to_send_balance: available_to_send_balance {
|
|
2574
|
+
__typename
|
|
2575
|
+
currency_amount_original_value: original_value
|
|
2576
|
+
currency_amount_original_unit: original_unit
|
|
2577
|
+
currency_amount_preferred_currency_unit: preferred_currency_unit
|
|
2578
|
+
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
2579
|
+
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
2580
|
+
}
|
|
2581
|
+
balances_available_to_withdraw_balance: available_to_withdraw_balance {
|
|
2582
|
+
__typename
|
|
2583
|
+
currency_amount_original_value: original_value
|
|
2584
|
+
currency_amount_original_unit: original_unit
|
|
2585
|
+
currency_amount_preferred_currency_unit: preferred_currency_unit
|
|
2586
|
+
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
2587
|
+
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
2588
|
+
}
|
|
2589
|
+
}
|
|
2391
2590
|
lightspark_node_with_o_s_k_encrypted_signing_private_key: encrypted_signing_private_key {
|
|
2392
2591
|
__typename
|
|
2393
2592
|
secret_encrypted_value: encrypted_value
|
|
@@ -2493,6 +2692,33 @@ fragment PaymentRequestFragment on PaymentRequest {
|
|
|
2493
2692
|
}
|
|
2494
2693
|
}
|
|
2495
2694
|
lightspark_node_with_remote_signing_uma_prescreening_utxos: uma_prescreening_utxos
|
|
2695
|
+
lightspark_node_with_remote_signing_balances: balances {
|
|
2696
|
+
__typename
|
|
2697
|
+
balances_owned_balance: owned_balance {
|
|
2698
|
+
__typename
|
|
2699
|
+
currency_amount_original_value: original_value
|
|
2700
|
+
currency_amount_original_unit: original_unit
|
|
2701
|
+
currency_amount_preferred_currency_unit: preferred_currency_unit
|
|
2702
|
+
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
2703
|
+
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
2704
|
+
}
|
|
2705
|
+
balances_available_to_send_balance: available_to_send_balance {
|
|
2706
|
+
__typename
|
|
2707
|
+
currency_amount_original_value: original_value
|
|
2708
|
+
currency_amount_original_unit: original_unit
|
|
2709
|
+
currency_amount_preferred_currency_unit: preferred_currency_unit
|
|
2710
|
+
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
2711
|
+
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
2712
|
+
}
|
|
2713
|
+
balances_available_to_withdraw_balance: available_to_withdraw_balance {
|
|
2714
|
+
__typename
|
|
2715
|
+
currency_amount_original_value: original_value
|
|
2716
|
+
currency_amount_original_unit: original_unit
|
|
2717
|
+
currency_amount_preferred_currency_unit: preferred_currency_unit
|
|
2718
|
+
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
2719
|
+
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
2720
|
+
}
|
|
2721
|
+
}
|
|
2496
2722
|
}
|
|
2497
2723
|
}
|
|
2498
2724
|
}
|
|
@@ -2543,7 +2769,7 @@ var AccountToPaymentRequestsConnectionFromJson = (obj) => {
|
|
|
2543
2769
|
var import_core5 = require("@lightsparkdev/core");
|
|
2544
2770
|
|
|
2545
2771
|
// src/objects/IncomingPayment.ts
|
|
2546
|
-
var
|
|
2772
|
+
var import_auto_bind6 = __toESM(require("auto-bind"), 1);
|
|
2547
2773
|
|
|
2548
2774
|
// src/objects/IncomingPaymentAttemptStatus.ts
|
|
2549
2775
|
var IncomingPaymentAttemptStatus = /* @__PURE__ */ ((IncomingPaymentAttemptStatus2) => {
|
|
@@ -2628,6 +2854,12 @@ var PostTransactionDataFromJson = (obj) => {
|
|
|
2628
2854
|
amount: CurrencyAmountFromJson(obj["post_transaction_data_amount"])
|
|
2629
2855
|
};
|
|
2630
2856
|
};
|
|
2857
|
+
var PostTransactionDataToJson = (obj) => {
|
|
2858
|
+
return {
|
|
2859
|
+
post_transaction_data_utxo: obj.utxo,
|
|
2860
|
+
post_transaction_data_amount: CurrencyAmountToJson(obj.amount)
|
|
2861
|
+
};
|
|
2862
|
+
};
|
|
2631
2863
|
|
|
2632
2864
|
// src/objects/TransactionStatus.ts
|
|
2633
2865
|
var TransactionStatus = /* @__PURE__ */ ((TransactionStatus2) => {
|
|
@@ -2656,7 +2888,7 @@ var IncomingPayment = class {
|
|
|
2656
2888
|
this.transactionHash = transactionHash;
|
|
2657
2889
|
this.paymentRequestId = paymentRequestId;
|
|
2658
2890
|
this.umaPostTransactionData = umaPostTransactionData;
|
|
2659
|
-
(0,
|
|
2891
|
+
(0, import_auto_bind6.default)(this);
|
|
2660
2892
|
}
|
|
2661
2893
|
async getAttempts(client, first = void 0, statuses = void 0, after = void 0) {
|
|
2662
2894
|
return await client.executeRawQuery({
|
|
@@ -2727,6 +2959,21 @@ ${FRAGMENT10}
|
|
|
2727
2959
|
constructObject: (data) => IncomingPaymentFromJson(data.entity)
|
|
2728
2960
|
};
|
|
2729
2961
|
}
|
|
2962
|
+
toJson() {
|
|
2963
|
+
return {
|
|
2964
|
+
__typename: "IncomingPayment",
|
|
2965
|
+
incoming_payment_id: this.id,
|
|
2966
|
+
incoming_payment_created_at: this.createdAt,
|
|
2967
|
+
incoming_payment_updated_at: this.updatedAt,
|
|
2968
|
+
incoming_payment_status: this.status,
|
|
2969
|
+
incoming_payment_resolved_at: this.resolvedAt,
|
|
2970
|
+
incoming_payment_amount: CurrencyAmountToJson(this.amount),
|
|
2971
|
+
incoming_payment_transaction_hash: this.transactionHash,
|
|
2972
|
+
incoming_payment_destination: { id: this.destinationId },
|
|
2973
|
+
incoming_payment_payment_request: { id: this.paymentRequestId },
|
|
2974
|
+
incoming_payment_uma_post_transaction_data: this.umaPostTransactionData?.map((e) => PostTransactionDataToJson(e))
|
|
2975
|
+
};
|
|
2976
|
+
}
|
|
2730
2977
|
};
|
|
2731
2978
|
var IncomingPaymentFromJson = (obj) => {
|
|
2732
2979
|
return new IncomingPayment(
|
|
@@ -2784,17 +3031,32 @@ fragment IncomingPaymentFragment on IncomingPayment {
|
|
|
2784
3031
|
var IncomingPayment_default = IncomingPayment;
|
|
2785
3032
|
|
|
2786
3033
|
// src/objects/OutgoingPayment.ts
|
|
2787
|
-
var
|
|
3034
|
+
var import_auto_bind8 = __toESM(require("auto-bind"), 1);
|
|
2788
3035
|
|
|
2789
3036
|
// src/objects/OutgoingPaymentAttempt.ts
|
|
2790
|
-
var
|
|
3037
|
+
var import_auto_bind7 = __toESM(require("auto-bind"), 1);
|
|
2791
3038
|
|
|
2792
3039
|
// src/objects/ChannelSnapshot.ts
|
|
2793
3040
|
var ChannelSnapshotFromJson = (obj) => {
|
|
2794
3041
|
return {
|
|
3042
|
+
channelId: obj["channel_snapshot_channel"].id,
|
|
3043
|
+
timestamp: obj["channel_snapshot_timestamp"],
|
|
2795
3044
|
localBalance: !!obj["channel_snapshot_local_balance"] ? CurrencyAmountFromJson(obj["channel_snapshot_local_balance"]) : void 0,
|
|
2796
3045
|
localUnsettledBalance: !!obj["channel_snapshot_local_unsettled_balance"] ? CurrencyAmountFromJson(obj["channel_snapshot_local_unsettled_balance"]) : void 0,
|
|
2797
|
-
localChannelReserve: !!obj["channel_snapshot_local_channel_reserve"] ? CurrencyAmountFromJson(obj["channel_snapshot_local_channel_reserve"]) : void 0
|
|
3046
|
+
localChannelReserve: !!obj["channel_snapshot_local_channel_reserve"] ? CurrencyAmountFromJson(obj["channel_snapshot_local_channel_reserve"]) : void 0,
|
|
3047
|
+
remoteBalance: !!obj["channel_snapshot_remote_balance"] ? CurrencyAmountFromJson(obj["channel_snapshot_remote_balance"]) : void 0,
|
|
3048
|
+
remoteUnsettledBalance: !!obj["channel_snapshot_remote_unsettled_balance"] ? CurrencyAmountFromJson(obj["channel_snapshot_remote_unsettled_balance"]) : void 0
|
|
3049
|
+
};
|
|
3050
|
+
};
|
|
3051
|
+
var ChannelSnapshotToJson = (obj) => {
|
|
3052
|
+
return {
|
|
3053
|
+
channel_snapshot_channel: { id: obj.channelId },
|
|
3054
|
+
channel_snapshot_timestamp: obj.timestamp,
|
|
3055
|
+
channel_snapshot_local_balance: obj.localBalance ? CurrencyAmountToJson(obj.localBalance) : void 0,
|
|
3056
|
+
channel_snapshot_local_unsettled_balance: obj.localUnsettledBalance ? CurrencyAmountToJson(obj.localUnsettledBalance) : void 0,
|
|
3057
|
+
channel_snapshot_local_channel_reserve: obj.localChannelReserve ? CurrencyAmountToJson(obj.localChannelReserve) : void 0,
|
|
3058
|
+
channel_snapshot_remote_balance: obj.remoteBalance ? CurrencyAmountToJson(obj.remoteBalance) : void 0,
|
|
3059
|
+
channel_snapshot_remote_unsettled_balance: obj.remoteUnsettledBalance ? CurrencyAmountToJson(obj.remoteUnsettledBalance) : void 0
|
|
2798
3060
|
};
|
|
2799
3061
|
};
|
|
2800
3062
|
|
|
@@ -2825,6 +3087,7 @@ var HtlcAttemptFailureCode = /* @__PURE__ */ ((HtlcAttemptFailureCode2) => {
|
|
|
2825
3087
|
HtlcAttemptFailureCode2["EXPIRY_TOO_FAR"] = "EXPIRY_TOO_FAR";
|
|
2826
3088
|
HtlcAttemptFailureCode2["MPP_TIMEOUT"] = "MPP_TIMEOUT";
|
|
2827
3089
|
HtlcAttemptFailureCode2["INVALID_ONION_PAYLOAD"] = "INVALID_ONION_PAYLOAD";
|
|
3090
|
+
HtlcAttemptFailureCode2["INVALID_ONION_BLINDING"] = "INVALID_ONION_BLINDING";
|
|
2828
3091
|
HtlcAttemptFailureCode2["INTERNAL_FAILURE"] = "INTERNAL_FAILURE";
|
|
2829
3092
|
HtlcAttemptFailureCode2["UNKNOWN_FAILURE"] = "UNKNOWN_FAILURE";
|
|
2830
3093
|
HtlcAttemptFailureCode2["UNREADABLE_FAILURE"] = "UNREADABLE_FAILURE";
|
|
@@ -2933,7 +3196,7 @@ var OutgoingPaymentAttempt = class {
|
|
|
2933
3196
|
this.amount = amount;
|
|
2934
3197
|
this.fees = fees;
|
|
2935
3198
|
this.channelSnapshot = channelSnapshot;
|
|
2936
|
-
(0,
|
|
3199
|
+
(0, import_auto_bind7.default)(this);
|
|
2937
3200
|
}
|
|
2938
3201
|
async getHops(client, first = void 0, after = void 0) {
|
|
2939
3202
|
return await client.executeRawQuery({
|
|
@@ -3008,6 +3271,22 @@ ${FRAGMENT12}
|
|
|
3008
3271
|
constructObject: (data) => OutgoingPaymentAttemptFromJson(data.entity)
|
|
3009
3272
|
};
|
|
3010
3273
|
}
|
|
3274
|
+
toJson() {
|
|
3275
|
+
return {
|
|
3276
|
+
__typename: "OutgoingPaymentAttempt",
|
|
3277
|
+
outgoing_payment_attempt_id: this.id,
|
|
3278
|
+
outgoing_payment_attempt_created_at: this.createdAt,
|
|
3279
|
+
outgoing_payment_attempt_updated_at: this.updatedAt,
|
|
3280
|
+
outgoing_payment_attempt_status: this.status,
|
|
3281
|
+
outgoing_payment_attempt_failure_code: this.failureCode,
|
|
3282
|
+
outgoing_payment_attempt_failure_source_index: this.failureSourceIndex,
|
|
3283
|
+
outgoing_payment_attempt_resolved_at: this.resolvedAt,
|
|
3284
|
+
outgoing_payment_attempt_amount: this.amount ? CurrencyAmountToJson(this.amount) : void 0,
|
|
3285
|
+
outgoing_payment_attempt_fees: this.fees ? CurrencyAmountToJson(this.fees) : void 0,
|
|
3286
|
+
outgoing_payment_attempt_outgoing_payment: { id: this.outgoingPaymentId },
|
|
3287
|
+
outgoing_payment_attempt_channel_snapshot: this.channelSnapshot ? ChannelSnapshotToJson(this.channelSnapshot) : void 0
|
|
3288
|
+
};
|
|
3289
|
+
}
|
|
3011
3290
|
};
|
|
3012
3291
|
var OutgoingPaymentAttemptFromJson = (obj) => {
|
|
3013
3292
|
return new OutgoingPaymentAttempt(
|
|
@@ -3058,6 +3337,10 @@ fragment OutgoingPaymentAttemptFragment on OutgoingPaymentAttempt {
|
|
|
3058
3337
|
}
|
|
3059
3338
|
outgoing_payment_attempt_channel_snapshot: channel_snapshot {
|
|
3060
3339
|
__typename
|
|
3340
|
+
channel_snapshot_channel: channel {
|
|
3341
|
+
id
|
|
3342
|
+
}
|
|
3343
|
+
channel_snapshot_timestamp: timestamp
|
|
3061
3344
|
channel_snapshot_local_balance: local_balance {
|
|
3062
3345
|
__typename
|
|
3063
3346
|
currency_amount_original_value: original_value
|
|
@@ -3082,6 +3365,22 @@ fragment OutgoingPaymentAttemptFragment on OutgoingPaymentAttempt {
|
|
|
3082
3365
|
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
3083
3366
|
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
3084
3367
|
}
|
|
3368
|
+
channel_snapshot_remote_balance: remote_balance {
|
|
3369
|
+
__typename
|
|
3370
|
+
currency_amount_original_value: original_value
|
|
3371
|
+
currency_amount_original_unit: original_unit
|
|
3372
|
+
currency_amount_preferred_currency_unit: preferred_currency_unit
|
|
3373
|
+
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
3374
|
+
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
3375
|
+
}
|
|
3376
|
+
channel_snapshot_remote_unsettled_balance: remote_unsettled_balance {
|
|
3377
|
+
__typename
|
|
3378
|
+
currency_amount_original_value: original_value
|
|
3379
|
+
currency_amount_original_unit: original_unit
|
|
3380
|
+
currency_amount_preferred_currency_unit: preferred_currency_unit
|
|
3381
|
+
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
3382
|
+
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
3383
|
+
}
|
|
3085
3384
|
}
|
|
3086
3385
|
}`;
|
|
3087
3386
|
var OutgoingPaymentAttempt_default = OutgoingPaymentAttempt;
|
|
@@ -3138,6 +3437,26 @@ var PaymentRequestDataFromJson = (obj) => {
|
|
|
3138
3437
|
`Couldn't find a concrete type for interface PaymentRequestData corresponding to the typename=${obj["__typename"]}`
|
|
3139
3438
|
);
|
|
3140
3439
|
};
|
|
3440
|
+
var PaymentRequestDataToJson = (obj) => {
|
|
3441
|
+
if (obj.typename == "InvoiceData") {
|
|
3442
|
+
const invoiceData = obj;
|
|
3443
|
+
return {
|
|
3444
|
+
__typename: "InvoiceData",
|
|
3445
|
+
invoice_data_encoded_payment_request: invoiceData.encodedPaymentRequest,
|
|
3446
|
+
invoice_data_bitcoin_network: invoiceData.bitcoinNetwork,
|
|
3447
|
+
invoice_data_payment_hash: invoiceData.paymentHash,
|
|
3448
|
+
invoice_data_amount: CurrencyAmountToJson(invoiceData.amount),
|
|
3449
|
+
invoice_data_created_at: invoiceData.createdAt,
|
|
3450
|
+
invoice_data_expires_at: invoiceData.expiresAt,
|
|
3451
|
+
invoice_data_memo: invoiceData.memo,
|
|
3452
|
+
invoice_data_destination: NodeToJson(invoiceData.destination)
|
|
3453
|
+
};
|
|
3454
|
+
}
|
|
3455
|
+
throw new import_core4.LightsparkException(
|
|
3456
|
+
"DeserializationError",
|
|
3457
|
+
`Couldn't find a concrete type for interface PaymentRequestData corresponding to the typename=${obj.typename}`
|
|
3458
|
+
);
|
|
3459
|
+
};
|
|
3141
3460
|
|
|
3142
3461
|
// src/objects/RichText.ts
|
|
3143
3462
|
var RichTextFromJson = (obj) => {
|
|
@@ -3145,6 +3464,11 @@ var RichTextFromJson = (obj) => {
|
|
|
3145
3464
|
text: obj["rich_text_text"]
|
|
3146
3465
|
};
|
|
3147
3466
|
};
|
|
3467
|
+
var RichTextToJson = (obj) => {
|
|
3468
|
+
return {
|
|
3469
|
+
rich_text_text: obj.text
|
|
3470
|
+
};
|
|
3471
|
+
};
|
|
3148
3472
|
|
|
3149
3473
|
// src/objects/OutgoingPayment.ts
|
|
3150
3474
|
var OutgoingPayment = class {
|
|
@@ -3165,7 +3489,7 @@ var OutgoingPayment = class {
|
|
|
3165
3489
|
this.failureMessage = failureMessage;
|
|
3166
3490
|
this.umaPostTransactionData = umaPostTransactionData;
|
|
3167
3491
|
this.paymentPreimage = paymentPreimage;
|
|
3168
|
-
(0,
|
|
3492
|
+
(0, import_auto_bind8.default)(this);
|
|
3169
3493
|
}
|
|
3170
3494
|
async getAttempts(client, first = void 0, after = void 0) {
|
|
3171
3495
|
return await client.executeRawQuery({
|
|
@@ -3213,6 +3537,10 @@ query FetchOutgoingPaymentToAttemptsConnection($entity_id: ID!, $first: Int, $af
|
|
|
3213
3537
|
}
|
|
3214
3538
|
outgoing_payment_attempt_channel_snapshot: channel_snapshot {
|
|
3215
3539
|
__typename
|
|
3540
|
+
channel_snapshot_channel: channel {
|
|
3541
|
+
id
|
|
3542
|
+
}
|
|
3543
|
+
channel_snapshot_timestamp: timestamp
|
|
3216
3544
|
channel_snapshot_local_balance: local_balance {
|
|
3217
3545
|
__typename
|
|
3218
3546
|
currency_amount_original_value: original_value
|
|
@@ -3237,6 +3565,22 @@ query FetchOutgoingPaymentToAttemptsConnection($entity_id: ID!, $first: Int, $af
|
|
|
3237
3565
|
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
3238
3566
|
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
3239
3567
|
}
|
|
3568
|
+
channel_snapshot_remote_balance: remote_balance {
|
|
3569
|
+
__typename
|
|
3570
|
+
currency_amount_original_value: original_value
|
|
3571
|
+
currency_amount_original_unit: original_unit
|
|
3572
|
+
currency_amount_preferred_currency_unit: preferred_currency_unit
|
|
3573
|
+
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
3574
|
+
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
3575
|
+
}
|
|
3576
|
+
channel_snapshot_remote_unsettled_balance: remote_unsettled_balance {
|
|
3577
|
+
__typename
|
|
3578
|
+
currency_amount_original_value: original_value
|
|
3579
|
+
currency_amount_original_unit: original_unit
|
|
3580
|
+
currency_amount_preferred_currency_unit: preferred_currency_unit
|
|
3581
|
+
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
3582
|
+
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
3583
|
+
}
|
|
3240
3584
|
}
|
|
3241
3585
|
}
|
|
3242
3586
|
}
|
|
@@ -3268,6 +3612,26 @@ ${FRAGMENT13}
|
|
|
3268
3612
|
constructObject: (data) => OutgoingPaymentFromJson(data.entity)
|
|
3269
3613
|
};
|
|
3270
3614
|
}
|
|
3615
|
+
toJson() {
|
|
3616
|
+
return {
|
|
3617
|
+
__typename: "OutgoingPayment",
|
|
3618
|
+
outgoing_payment_id: this.id,
|
|
3619
|
+
outgoing_payment_created_at: this.createdAt,
|
|
3620
|
+
outgoing_payment_updated_at: this.updatedAt,
|
|
3621
|
+
outgoing_payment_status: this.status,
|
|
3622
|
+
outgoing_payment_resolved_at: this.resolvedAt,
|
|
3623
|
+
outgoing_payment_amount: CurrencyAmountToJson(this.amount),
|
|
3624
|
+
outgoing_payment_transaction_hash: this.transactionHash,
|
|
3625
|
+
outgoing_payment_origin: { id: this.originId },
|
|
3626
|
+
outgoing_payment_destination: { id: this.destinationId },
|
|
3627
|
+
outgoing_payment_fees: this.fees ? CurrencyAmountToJson(this.fees) : void 0,
|
|
3628
|
+
outgoing_payment_payment_request_data: this.paymentRequestData ? PaymentRequestDataToJson(this.paymentRequestData) : void 0,
|
|
3629
|
+
outgoing_payment_failure_reason: this.failureReason,
|
|
3630
|
+
outgoing_payment_failure_message: this.failureMessage ? RichTextToJson(this.failureMessage) : void 0,
|
|
3631
|
+
outgoing_payment_uma_post_transaction_data: this.umaPostTransactionData?.map((e) => PostTransactionDataToJson(e)),
|
|
3632
|
+
outgoing_payment_payment_preimage: this.paymentPreimage
|
|
3633
|
+
};
|
|
3634
|
+
}
|
|
3271
3635
|
};
|
|
3272
3636
|
var OutgoingPaymentFromJson = (obj) => {
|
|
3273
3637
|
return new OutgoingPayment(
|
|
@@ -3453,6 +3817,33 @@ fragment OutgoingPaymentFragment on OutgoingPayment {
|
|
|
3453
3817
|
}
|
|
3454
3818
|
}
|
|
3455
3819
|
lightspark_node_with_o_s_k_uma_prescreening_utxos: uma_prescreening_utxos
|
|
3820
|
+
lightspark_node_with_o_s_k_balances: balances {
|
|
3821
|
+
__typename
|
|
3822
|
+
balances_owned_balance: owned_balance {
|
|
3823
|
+
__typename
|
|
3824
|
+
currency_amount_original_value: original_value
|
|
3825
|
+
currency_amount_original_unit: original_unit
|
|
3826
|
+
currency_amount_preferred_currency_unit: preferred_currency_unit
|
|
3827
|
+
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
3828
|
+
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
3829
|
+
}
|
|
3830
|
+
balances_available_to_send_balance: available_to_send_balance {
|
|
3831
|
+
__typename
|
|
3832
|
+
currency_amount_original_value: original_value
|
|
3833
|
+
currency_amount_original_unit: original_unit
|
|
3834
|
+
currency_amount_preferred_currency_unit: preferred_currency_unit
|
|
3835
|
+
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
3836
|
+
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
3837
|
+
}
|
|
3838
|
+
balances_available_to_withdraw_balance: available_to_withdraw_balance {
|
|
3839
|
+
__typename
|
|
3840
|
+
currency_amount_original_value: original_value
|
|
3841
|
+
currency_amount_original_unit: original_unit
|
|
3842
|
+
currency_amount_preferred_currency_unit: preferred_currency_unit
|
|
3843
|
+
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
3844
|
+
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
3845
|
+
}
|
|
3846
|
+
}
|
|
3456
3847
|
lightspark_node_with_o_s_k_encrypted_signing_private_key: encrypted_signing_private_key {
|
|
3457
3848
|
__typename
|
|
3458
3849
|
secret_encrypted_value: encrypted_value
|
|
@@ -3558,6 +3949,33 @@ fragment OutgoingPaymentFragment on OutgoingPayment {
|
|
|
3558
3949
|
}
|
|
3559
3950
|
}
|
|
3560
3951
|
lightspark_node_with_remote_signing_uma_prescreening_utxos: uma_prescreening_utxos
|
|
3952
|
+
lightspark_node_with_remote_signing_balances: balances {
|
|
3953
|
+
__typename
|
|
3954
|
+
balances_owned_balance: owned_balance {
|
|
3955
|
+
__typename
|
|
3956
|
+
currency_amount_original_value: original_value
|
|
3957
|
+
currency_amount_original_unit: original_unit
|
|
3958
|
+
currency_amount_preferred_currency_unit: preferred_currency_unit
|
|
3959
|
+
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
3960
|
+
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
3961
|
+
}
|
|
3962
|
+
balances_available_to_send_balance: available_to_send_balance {
|
|
3963
|
+
__typename
|
|
3964
|
+
currency_amount_original_value: original_value
|
|
3965
|
+
currency_amount_original_unit: original_unit
|
|
3966
|
+
currency_amount_preferred_currency_unit: preferred_currency_unit
|
|
3967
|
+
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
3968
|
+
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
3969
|
+
}
|
|
3970
|
+
balances_available_to_withdraw_balance: available_to_withdraw_balance {
|
|
3971
|
+
__typename
|
|
3972
|
+
currency_amount_original_value: original_value
|
|
3973
|
+
currency_amount_original_unit: original_unit
|
|
3974
|
+
currency_amount_preferred_currency_unit: preferred_currency_unit
|
|
3975
|
+
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
3976
|
+
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
3977
|
+
}
|
|
3978
|
+
}
|
|
3561
3979
|
}
|
|
3562
3980
|
}
|
|
3563
3981
|
}
|
|
@@ -4025,6 +4443,33 @@ fragment TransactionFragment on Transaction {
|
|
|
4025
4443
|
}
|
|
4026
4444
|
}
|
|
4027
4445
|
lightspark_node_with_o_s_k_uma_prescreening_utxos: uma_prescreening_utxos
|
|
4446
|
+
lightspark_node_with_o_s_k_balances: balances {
|
|
4447
|
+
__typename
|
|
4448
|
+
balances_owned_balance: owned_balance {
|
|
4449
|
+
__typename
|
|
4450
|
+
currency_amount_original_value: original_value
|
|
4451
|
+
currency_amount_original_unit: original_unit
|
|
4452
|
+
currency_amount_preferred_currency_unit: preferred_currency_unit
|
|
4453
|
+
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
4454
|
+
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
4455
|
+
}
|
|
4456
|
+
balances_available_to_send_balance: available_to_send_balance {
|
|
4457
|
+
__typename
|
|
4458
|
+
currency_amount_original_value: original_value
|
|
4459
|
+
currency_amount_original_unit: original_unit
|
|
4460
|
+
currency_amount_preferred_currency_unit: preferred_currency_unit
|
|
4461
|
+
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
4462
|
+
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
4463
|
+
}
|
|
4464
|
+
balances_available_to_withdraw_balance: available_to_withdraw_balance {
|
|
4465
|
+
__typename
|
|
4466
|
+
currency_amount_original_value: original_value
|
|
4467
|
+
currency_amount_original_unit: original_unit
|
|
4468
|
+
currency_amount_preferred_currency_unit: preferred_currency_unit
|
|
4469
|
+
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
4470
|
+
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
4471
|
+
}
|
|
4472
|
+
}
|
|
4028
4473
|
lightspark_node_with_o_s_k_encrypted_signing_private_key: encrypted_signing_private_key {
|
|
4029
4474
|
__typename
|
|
4030
4475
|
secret_encrypted_value: encrypted_value
|
|
@@ -4130,6 +4575,33 @@ fragment TransactionFragment on Transaction {
|
|
|
4130
4575
|
}
|
|
4131
4576
|
}
|
|
4132
4577
|
lightspark_node_with_remote_signing_uma_prescreening_utxos: uma_prescreening_utxos
|
|
4578
|
+
lightspark_node_with_remote_signing_balances: balances {
|
|
4579
|
+
__typename
|
|
4580
|
+
balances_owned_balance: owned_balance {
|
|
4581
|
+
__typename
|
|
4582
|
+
currency_amount_original_value: original_value
|
|
4583
|
+
currency_amount_original_unit: original_unit
|
|
4584
|
+
currency_amount_preferred_currency_unit: preferred_currency_unit
|
|
4585
|
+
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
4586
|
+
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
4587
|
+
}
|
|
4588
|
+
balances_available_to_send_balance: available_to_send_balance {
|
|
4589
|
+
__typename
|
|
4590
|
+
currency_amount_original_value: original_value
|
|
4591
|
+
currency_amount_original_unit: original_unit
|
|
4592
|
+
currency_amount_preferred_currency_unit: preferred_currency_unit
|
|
4593
|
+
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
4594
|
+
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
4595
|
+
}
|
|
4596
|
+
balances_available_to_withdraw_balance: available_to_withdraw_balance {
|
|
4597
|
+
__typename
|
|
4598
|
+
currency_amount_original_value: original_value
|
|
4599
|
+
currency_amount_original_unit: original_unit
|
|
4600
|
+
currency_amount_preferred_currency_unit: preferred_currency_unit
|
|
4601
|
+
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
4602
|
+
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
4603
|
+
}
|
|
4604
|
+
}
|
|
4133
4605
|
}
|
|
4134
4606
|
}
|
|
4135
4607
|
}
|
|
@@ -4264,20 +4736,7 @@ var AccountToTransactionsConnectionFromJson = (obj) => {
|
|
|
4264
4736
|
};
|
|
4265
4737
|
|
|
4266
4738
|
// src/objects/Wallet.ts
|
|
4267
|
-
var
|
|
4268
|
-
|
|
4269
|
-
// src/objects/Balances.ts
|
|
4270
|
-
var BalancesFromJson = (obj) => {
|
|
4271
|
-
return {
|
|
4272
|
-
ownedBalance: CurrencyAmountFromJson(obj["balances_owned_balance"]),
|
|
4273
|
-
availableToSendBalance: CurrencyAmountFromJson(
|
|
4274
|
-
obj["balances_available_to_send_balance"]
|
|
4275
|
-
),
|
|
4276
|
-
availableToWithdrawBalance: CurrencyAmountFromJson(
|
|
4277
|
-
obj["balances_available_to_withdraw_balance"]
|
|
4278
|
-
)
|
|
4279
|
-
};
|
|
4280
|
-
};
|
|
4739
|
+
var import_auto_bind9 = __toESM(require("auto-bind"), 1);
|
|
4281
4740
|
|
|
4282
4741
|
// src/objects/WalletStatus.ts
|
|
4283
4742
|
var WalletStatus = /* @__PURE__ */ ((WalletStatus2) => {
|
|
@@ -4335,7 +4794,7 @@ var Wallet = class {
|
|
|
4335
4794
|
this.lastLoginAt = lastLoginAt;
|
|
4336
4795
|
this.balances = balances;
|
|
4337
4796
|
this.accountId = accountId;
|
|
4338
|
-
(0,
|
|
4797
|
+
(0, import_auto_bind9.default)(this);
|
|
4339
4798
|
}
|
|
4340
4799
|
async getTransactions(client, first = void 0, after = void 0, createdAfterDate = void 0, createdBeforeDate = void 0, statuses = void 0, types = void 0) {
|
|
4341
4800
|
return await client.executeRawQuery({
|
|
@@ -4647,6 +5106,33 @@ query FetchWalletToTransactionsConnection($entity_id: ID!, $first: Int, $after:
|
|
|
4647
5106
|
}
|
|
4648
5107
|
}
|
|
4649
5108
|
lightspark_node_with_o_s_k_uma_prescreening_utxos: uma_prescreening_utxos
|
|
5109
|
+
lightspark_node_with_o_s_k_balances: balances {
|
|
5110
|
+
__typename
|
|
5111
|
+
balances_owned_balance: owned_balance {
|
|
5112
|
+
__typename
|
|
5113
|
+
currency_amount_original_value: original_value
|
|
5114
|
+
currency_amount_original_unit: original_unit
|
|
5115
|
+
currency_amount_preferred_currency_unit: preferred_currency_unit
|
|
5116
|
+
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
5117
|
+
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
5118
|
+
}
|
|
5119
|
+
balances_available_to_send_balance: available_to_send_balance {
|
|
5120
|
+
__typename
|
|
5121
|
+
currency_amount_original_value: original_value
|
|
5122
|
+
currency_amount_original_unit: original_unit
|
|
5123
|
+
currency_amount_preferred_currency_unit: preferred_currency_unit
|
|
5124
|
+
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
5125
|
+
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
5126
|
+
}
|
|
5127
|
+
balances_available_to_withdraw_balance: available_to_withdraw_balance {
|
|
5128
|
+
__typename
|
|
5129
|
+
currency_amount_original_value: original_value
|
|
5130
|
+
currency_amount_original_unit: original_unit
|
|
5131
|
+
currency_amount_preferred_currency_unit: preferred_currency_unit
|
|
5132
|
+
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
5133
|
+
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
5134
|
+
}
|
|
5135
|
+
}
|
|
4650
5136
|
lightspark_node_with_o_s_k_encrypted_signing_private_key: encrypted_signing_private_key {
|
|
4651
5137
|
__typename
|
|
4652
5138
|
secret_encrypted_value: encrypted_value
|
|
@@ -4752,6 +5238,33 @@ query FetchWalletToTransactionsConnection($entity_id: ID!, $first: Int, $after:
|
|
|
4752
5238
|
}
|
|
4753
5239
|
}
|
|
4754
5240
|
lightspark_node_with_remote_signing_uma_prescreening_utxos: uma_prescreening_utxos
|
|
5241
|
+
lightspark_node_with_remote_signing_balances: balances {
|
|
5242
|
+
__typename
|
|
5243
|
+
balances_owned_balance: owned_balance {
|
|
5244
|
+
__typename
|
|
5245
|
+
currency_amount_original_value: original_value
|
|
5246
|
+
currency_amount_original_unit: original_unit
|
|
5247
|
+
currency_amount_preferred_currency_unit: preferred_currency_unit
|
|
5248
|
+
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
5249
|
+
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
5250
|
+
}
|
|
5251
|
+
balances_available_to_send_balance: available_to_send_balance {
|
|
5252
|
+
__typename
|
|
5253
|
+
currency_amount_original_value: original_value
|
|
5254
|
+
currency_amount_original_unit: original_unit
|
|
5255
|
+
currency_amount_preferred_currency_unit: preferred_currency_unit
|
|
5256
|
+
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
5257
|
+
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
5258
|
+
}
|
|
5259
|
+
balances_available_to_withdraw_balance: available_to_withdraw_balance {
|
|
5260
|
+
__typename
|
|
5261
|
+
currency_amount_original_value: original_value
|
|
5262
|
+
currency_amount_original_unit: original_unit
|
|
5263
|
+
currency_amount_preferred_currency_unit: preferred_currency_unit
|
|
5264
|
+
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
5265
|
+
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
5266
|
+
}
|
|
5267
|
+
}
|
|
4755
5268
|
}
|
|
4756
5269
|
}
|
|
4757
5270
|
}
|
|
@@ -5016,6 +5529,33 @@ query FetchWalletToPaymentRequestsConnection($entity_id: ID!, $first: Int, $afte
|
|
|
5016
5529
|
}
|
|
5017
5530
|
}
|
|
5018
5531
|
lightspark_node_with_o_s_k_uma_prescreening_utxos: uma_prescreening_utxos
|
|
5532
|
+
lightspark_node_with_o_s_k_balances: balances {
|
|
5533
|
+
__typename
|
|
5534
|
+
balances_owned_balance: owned_balance {
|
|
5535
|
+
__typename
|
|
5536
|
+
currency_amount_original_value: original_value
|
|
5537
|
+
currency_amount_original_unit: original_unit
|
|
5538
|
+
currency_amount_preferred_currency_unit: preferred_currency_unit
|
|
5539
|
+
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
5540
|
+
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
5541
|
+
}
|
|
5542
|
+
balances_available_to_send_balance: available_to_send_balance {
|
|
5543
|
+
__typename
|
|
5544
|
+
currency_amount_original_value: original_value
|
|
5545
|
+
currency_amount_original_unit: original_unit
|
|
5546
|
+
currency_amount_preferred_currency_unit: preferred_currency_unit
|
|
5547
|
+
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
5548
|
+
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
5549
|
+
}
|
|
5550
|
+
balances_available_to_withdraw_balance: available_to_withdraw_balance {
|
|
5551
|
+
__typename
|
|
5552
|
+
currency_amount_original_value: original_value
|
|
5553
|
+
currency_amount_original_unit: original_unit
|
|
5554
|
+
currency_amount_preferred_currency_unit: preferred_currency_unit
|
|
5555
|
+
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
5556
|
+
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
5557
|
+
}
|
|
5558
|
+
}
|
|
5019
5559
|
lightspark_node_with_o_s_k_encrypted_signing_private_key: encrypted_signing_private_key {
|
|
5020
5560
|
__typename
|
|
5021
5561
|
secret_encrypted_value: encrypted_value
|
|
@@ -5079,7 +5619,31 @@ query FetchWalletToPaymentRequestsConnection($entity_id: ID!, $first: Int, $afte
|
|
|
5079
5619
|
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
5080
5620
|
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
5081
5621
|
}
|
|
5082
|
-
blockchain_balance_confirmed_balance: confirmed_balance {
|
|
5622
|
+
blockchain_balance_confirmed_balance: confirmed_balance {
|
|
5623
|
+
__typename
|
|
5624
|
+
currency_amount_original_value: original_value
|
|
5625
|
+
currency_amount_original_unit: original_unit
|
|
5626
|
+
currency_amount_preferred_currency_unit: preferred_currency_unit
|
|
5627
|
+
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
5628
|
+
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
5629
|
+
}
|
|
5630
|
+
blockchain_balance_unconfirmed_balance: unconfirmed_balance {
|
|
5631
|
+
__typename
|
|
5632
|
+
currency_amount_original_value: original_value
|
|
5633
|
+
currency_amount_original_unit: original_unit
|
|
5634
|
+
currency_amount_preferred_currency_unit: preferred_currency_unit
|
|
5635
|
+
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
5636
|
+
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
5637
|
+
}
|
|
5638
|
+
blockchain_balance_locked_balance: locked_balance {
|
|
5639
|
+
__typename
|
|
5640
|
+
currency_amount_original_value: original_value
|
|
5641
|
+
currency_amount_original_unit: original_unit
|
|
5642
|
+
currency_amount_preferred_currency_unit: preferred_currency_unit
|
|
5643
|
+
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
5644
|
+
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
5645
|
+
}
|
|
5646
|
+
blockchain_balance_required_reserve: required_reserve {
|
|
5083
5647
|
__typename
|
|
5084
5648
|
currency_amount_original_value: original_value
|
|
5085
5649
|
currency_amount_original_unit: original_unit
|
|
@@ -5087,7 +5651,7 @@ query FetchWalletToPaymentRequestsConnection($entity_id: ID!, $first: Int, $afte
|
|
|
5087
5651
|
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
5088
5652
|
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
5089
5653
|
}
|
|
5090
|
-
|
|
5654
|
+
blockchain_balance_available_balance: available_balance {
|
|
5091
5655
|
__typename
|
|
5092
5656
|
currency_amount_original_value: original_value
|
|
5093
5657
|
currency_amount_original_unit: original_unit
|
|
@@ -5095,7 +5659,11 @@ query FetchWalletToPaymentRequestsConnection($entity_id: ID!, $first: Int, $afte
|
|
|
5095
5659
|
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
5096
5660
|
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
5097
5661
|
}
|
|
5098
|
-
|
|
5662
|
+
}
|
|
5663
|
+
lightspark_node_with_remote_signing_uma_prescreening_utxos: uma_prescreening_utxos
|
|
5664
|
+
lightspark_node_with_remote_signing_balances: balances {
|
|
5665
|
+
__typename
|
|
5666
|
+
balances_owned_balance: owned_balance {
|
|
5099
5667
|
__typename
|
|
5100
5668
|
currency_amount_original_value: original_value
|
|
5101
5669
|
currency_amount_original_unit: original_unit
|
|
@@ -5103,7 +5671,7 @@ query FetchWalletToPaymentRequestsConnection($entity_id: ID!, $first: Int, $afte
|
|
|
5103
5671
|
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
5104
5672
|
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
5105
5673
|
}
|
|
5106
|
-
|
|
5674
|
+
balances_available_to_send_balance: available_to_send_balance {
|
|
5107
5675
|
__typename
|
|
5108
5676
|
currency_amount_original_value: original_value
|
|
5109
5677
|
currency_amount_original_unit: original_unit
|
|
@@ -5111,7 +5679,7 @@ query FetchWalletToPaymentRequestsConnection($entity_id: ID!, $first: Int, $afte
|
|
|
5111
5679
|
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
5112
5680
|
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
5113
5681
|
}
|
|
5114
|
-
|
|
5682
|
+
balances_available_to_withdraw_balance: available_to_withdraw_balance {
|
|
5115
5683
|
__typename
|
|
5116
5684
|
currency_amount_original_value: original_value
|
|
5117
5685
|
currency_amount_original_unit: original_unit
|
|
@@ -5120,7 +5688,6 @@ query FetchWalletToPaymentRequestsConnection($entity_id: ID!, $first: Int, $afte
|
|
|
5120
5688
|
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
5121
5689
|
}
|
|
5122
5690
|
}
|
|
5123
|
-
lightspark_node_with_remote_signing_uma_prescreening_utxos: uma_prescreening_utxos
|
|
5124
5691
|
}
|
|
5125
5692
|
}
|
|
5126
5693
|
}
|
|
@@ -5228,6 +5795,19 @@ ${FRAGMENT15}
|
|
|
5228
5795
|
constructObject: (data) => WalletFromJson(data.entity)
|
|
5229
5796
|
};
|
|
5230
5797
|
}
|
|
5798
|
+
toJson() {
|
|
5799
|
+
return {
|
|
5800
|
+
__typename: "Wallet",
|
|
5801
|
+
wallet_id: this.id,
|
|
5802
|
+
wallet_created_at: this.createdAt,
|
|
5803
|
+
wallet_updated_at: this.updatedAt,
|
|
5804
|
+
wallet_last_login_at: this.lastLoginAt,
|
|
5805
|
+
wallet_balances: this.balances ? BalancesToJson(this.balances) : void 0,
|
|
5806
|
+
wallet_third_party_identifier: this.thirdPartyIdentifier,
|
|
5807
|
+
wallet_account: { id: this.accountId },
|
|
5808
|
+
wallet_status: this.status
|
|
5809
|
+
};
|
|
5810
|
+
}
|
|
5231
5811
|
};
|
|
5232
5812
|
var WalletFromJson = (obj) => {
|
|
5233
5813
|
return new Wallet(
|
|
@@ -5304,7 +5884,7 @@ var Account = class {
|
|
|
5304
5884
|
this.updatedAt = updatedAt;
|
|
5305
5885
|
this.typename = typename;
|
|
5306
5886
|
this.name = name;
|
|
5307
|
-
(0,
|
|
5887
|
+
(0, import_auto_bind10.default)(this);
|
|
5308
5888
|
}
|
|
5309
5889
|
async getApiTokens(client, first = void 0, after = void 0) {
|
|
5310
5890
|
return await client.executeRawQuery({
|
|
@@ -5571,6 +6151,33 @@ query FetchAccountToNodesConnection($first: Int, $bitcoin_networks: [BitcoinNetw
|
|
|
5571
6151
|
}
|
|
5572
6152
|
}
|
|
5573
6153
|
lightspark_node_with_o_s_k_uma_prescreening_utxos: uma_prescreening_utxos
|
|
6154
|
+
lightspark_node_with_o_s_k_balances: balances {
|
|
6155
|
+
__typename
|
|
6156
|
+
balances_owned_balance: owned_balance {
|
|
6157
|
+
__typename
|
|
6158
|
+
currency_amount_original_value: original_value
|
|
6159
|
+
currency_amount_original_unit: original_unit
|
|
6160
|
+
currency_amount_preferred_currency_unit: preferred_currency_unit
|
|
6161
|
+
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
6162
|
+
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
6163
|
+
}
|
|
6164
|
+
balances_available_to_send_balance: available_to_send_balance {
|
|
6165
|
+
__typename
|
|
6166
|
+
currency_amount_original_value: original_value
|
|
6167
|
+
currency_amount_original_unit: original_unit
|
|
6168
|
+
currency_amount_preferred_currency_unit: preferred_currency_unit
|
|
6169
|
+
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
6170
|
+
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
6171
|
+
}
|
|
6172
|
+
balances_available_to_withdraw_balance: available_to_withdraw_balance {
|
|
6173
|
+
__typename
|
|
6174
|
+
currency_amount_original_value: original_value
|
|
6175
|
+
currency_amount_original_unit: original_unit
|
|
6176
|
+
currency_amount_preferred_currency_unit: preferred_currency_unit
|
|
6177
|
+
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
6178
|
+
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
6179
|
+
}
|
|
6180
|
+
}
|
|
5574
6181
|
lightspark_node_with_o_s_k_encrypted_signing_private_key: encrypted_signing_private_key {
|
|
5575
6182
|
__typename
|
|
5576
6183
|
secret_encrypted_value: encrypted_value
|
|
@@ -5676,6 +6283,33 @@ query FetchAccountToNodesConnection($first: Int, $bitcoin_networks: [BitcoinNetw
|
|
|
5676
6283
|
}
|
|
5677
6284
|
}
|
|
5678
6285
|
lightspark_node_with_remote_signing_uma_prescreening_utxos: uma_prescreening_utxos
|
|
6286
|
+
lightspark_node_with_remote_signing_balances: balances {
|
|
6287
|
+
__typename
|
|
6288
|
+
balances_owned_balance: owned_balance {
|
|
6289
|
+
__typename
|
|
6290
|
+
currency_amount_original_value: original_value
|
|
6291
|
+
currency_amount_original_unit: original_unit
|
|
6292
|
+
currency_amount_preferred_currency_unit: preferred_currency_unit
|
|
6293
|
+
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
6294
|
+
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
6295
|
+
}
|
|
6296
|
+
balances_available_to_send_balance: available_to_send_balance {
|
|
6297
|
+
__typename
|
|
6298
|
+
currency_amount_original_value: original_value
|
|
6299
|
+
currency_amount_original_unit: original_unit
|
|
6300
|
+
currency_amount_preferred_currency_unit: preferred_currency_unit
|
|
6301
|
+
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
6302
|
+
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
6303
|
+
}
|
|
6304
|
+
balances_available_to_withdraw_balance: available_to_withdraw_balance {
|
|
6305
|
+
__typename
|
|
6306
|
+
currency_amount_original_value: original_value
|
|
6307
|
+
currency_amount_original_unit: original_unit
|
|
6308
|
+
currency_amount_preferred_currency_unit: preferred_currency_unit
|
|
6309
|
+
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
6310
|
+
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
6311
|
+
}
|
|
6312
|
+
}
|
|
5679
6313
|
}
|
|
5680
6314
|
}
|
|
5681
6315
|
}
|
|
@@ -6198,6 +6832,33 @@ query FetchAccountToTransactionsConnection($first: Int, $after: String, $types:
|
|
|
6198
6832
|
}
|
|
6199
6833
|
}
|
|
6200
6834
|
lightspark_node_with_o_s_k_uma_prescreening_utxos: uma_prescreening_utxos
|
|
6835
|
+
lightspark_node_with_o_s_k_balances: balances {
|
|
6836
|
+
__typename
|
|
6837
|
+
balances_owned_balance: owned_balance {
|
|
6838
|
+
__typename
|
|
6839
|
+
currency_amount_original_value: original_value
|
|
6840
|
+
currency_amount_original_unit: original_unit
|
|
6841
|
+
currency_amount_preferred_currency_unit: preferred_currency_unit
|
|
6842
|
+
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
6843
|
+
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
6844
|
+
}
|
|
6845
|
+
balances_available_to_send_balance: available_to_send_balance {
|
|
6846
|
+
__typename
|
|
6847
|
+
currency_amount_original_value: original_value
|
|
6848
|
+
currency_amount_original_unit: original_unit
|
|
6849
|
+
currency_amount_preferred_currency_unit: preferred_currency_unit
|
|
6850
|
+
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
6851
|
+
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
6852
|
+
}
|
|
6853
|
+
balances_available_to_withdraw_balance: available_to_withdraw_balance {
|
|
6854
|
+
__typename
|
|
6855
|
+
currency_amount_original_value: original_value
|
|
6856
|
+
currency_amount_original_unit: original_unit
|
|
6857
|
+
currency_amount_preferred_currency_unit: preferred_currency_unit
|
|
6858
|
+
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
6859
|
+
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
6860
|
+
}
|
|
6861
|
+
}
|
|
6201
6862
|
lightspark_node_with_o_s_k_encrypted_signing_private_key: encrypted_signing_private_key {
|
|
6202
6863
|
__typename
|
|
6203
6864
|
secret_encrypted_value: encrypted_value
|
|
@@ -6303,6 +6964,33 @@ query FetchAccountToTransactionsConnection($first: Int, $after: String, $types:
|
|
|
6303
6964
|
}
|
|
6304
6965
|
}
|
|
6305
6966
|
lightspark_node_with_remote_signing_uma_prescreening_utxos: uma_prescreening_utxos
|
|
6967
|
+
lightspark_node_with_remote_signing_balances: balances {
|
|
6968
|
+
__typename
|
|
6969
|
+
balances_owned_balance: owned_balance {
|
|
6970
|
+
__typename
|
|
6971
|
+
currency_amount_original_value: original_value
|
|
6972
|
+
currency_amount_original_unit: original_unit
|
|
6973
|
+
currency_amount_preferred_currency_unit: preferred_currency_unit
|
|
6974
|
+
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
6975
|
+
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
6976
|
+
}
|
|
6977
|
+
balances_available_to_send_balance: available_to_send_balance {
|
|
6978
|
+
__typename
|
|
6979
|
+
currency_amount_original_value: original_value
|
|
6980
|
+
currency_amount_original_unit: original_unit
|
|
6981
|
+
currency_amount_preferred_currency_unit: preferred_currency_unit
|
|
6982
|
+
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
6983
|
+
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
6984
|
+
}
|
|
6985
|
+
balances_available_to_withdraw_balance: available_to_withdraw_balance {
|
|
6986
|
+
__typename
|
|
6987
|
+
currency_amount_original_value: original_value
|
|
6988
|
+
currency_amount_original_unit: original_unit
|
|
6989
|
+
currency_amount_preferred_currency_unit: preferred_currency_unit
|
|
6990
|
+
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
6991
|
+
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
6992
|
+
}
|
|
6993
|
+
}
|
|
6306
6994
|
}
|
|
6307
6995
|
}
|
|
6308
6996
|
}
|
|
@@ -6569,6 +7257,33 @@ query FetchAccountToPaymentRequestsConnection($first: Int, $after: String, $afte
|
|
|
6569
7257
|
}
|
|
6570
7258
|
}
|
|
6571
7259
|
lightspark_node_with_o_s_k_uma_prescreening_utxos: uma_prescreening_utxos
|
|
7260
|
+
lightspark_node_with_o_s_k_balances: balances {
|
|
7261
|
+
__typename
|
|
7262
|
+
balances_owned_balance: owned_balance {
|
|
7263
|
+
__typename
|
|
7264
|
+
currency_amount_original_value: original_value
|
|
7265
|
+
currency_amount_original_unit: original_unit
|
|
7266
|
+
currency_amount_preferred_currency_unit: preferred_currency_unit
|
|
7267
|
+
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
7268
|
+
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
7269
|
+
}
|
|
7270
|
+
balances_available_to_send_balance: available_to_send_balance {
|
|
7271
|
+
__typename
|
|
7272
|
+
currency_amount_original_value: original_value
|
|
7273
|
+
currency_amount_original_unit: original_unit
|
|
7274
|
+
currency_amount_preferred_currency_unit: preferred_currency_unit
|
|
7275
|
+
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
7276
|
+
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
7277
|
+
}
|
|
7278
|
+
balances_available_to_withdraw_balance: available_to_withdraw_balance {
|
|
7279
|
+
__typename
|
|
7280
|
+
currency_amount_original_value: original_value
|
|
7281
|
+
currency_amount_original_unit: original_unit
|
|
7282
|
+
currency_amount_preferred_currency_unit: preferred_currency_unit
|
|
7283
|
+
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
7284
|
+
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
7285
|
+
}
|
|
7286
|
+
}
|
|
6572
7287
|
lightspark_node_with_o_s_k_encrypted_signing_private_key: encrypted_signing_private_key {
|
|
6573
7288
|
__typename
|
|
6574
7289
|
secret_encrypted_value: encrypted_value
|
|
@@ -6674,6 +7389,33 @@ query FetchAccountToPaymentRequestsConnection($first: Int, $after: String, $afte
|
|
|
6674
7389
|
}
|
|
6675
7390
|
}
|
|
6676
7391
|
lightspark_node_with_remote_signing_uma_prescreening_utxos: uma_prescreening_utxos
|
|
7392
|
+
lightspark_node_with_remote_signing_balances: balances {
|
|
7393
|
+
__typename
|
|
7394
|
+
balances_owned_balance: owned_balance {
|
|
7395
|
+
__typename
|
|
7396
|
+
currency_amount_original_value: original_value
|
|
7397
|
+
currency_amount_original_unit: original_unit
|
|
7398
|
+
currency_amount_preferred_currency_unit: preferred_currency_unit
|
|
7399
|
+
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
7400
|
+
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
7401
|
+
}
|
|
7402
|
+
balances_available_to_send_balance: available_to_send_balance {
|
|
7403
|
+
__typename
|
|
7404
|
+
currency_amount_original_value: original_value
|
|
7405
|
+
currency_amount_original_unit: original_unit
|
|
7406
|
+
currency_amount_preferred_currency_unit: preferred_currency_unit
|
|
7407
|
+
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
7408
|
+
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
7409
|
+
}
|
|
7410
|
+
balances_available_to_withdraw_balance: available_to_withdraw_balance {
|
|
7411
|
+
__typename
|
|
7412
|
+
currency_amount_original_value: original_value
|
|
7413
|
+
currency_amount_original_unit: original_unit
|
|
7414
|
+
currency_amount_preferred_currency_unit: preferred_currency_unit
|
|
7415
|
+
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
7416
|
+
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
7417
|
+
}
|
|
7418
|
+
}
|
|
6677
7419
|
}
|
|
6678
7420
|
}
|
|
6679
7421
|
}
|
|
@@ -6791,6 +7533,15 @@ ${FRAGMENT16}
|
|
|
6791
7533
|
constructObject: (data) => AccountFromJson(data.current_account)
|
|
6792
7534
|
};
|
|
6793
7535
|
}
|
|
7536
|
+
toJson() {
|
|
7537
|
+
return {
|
|
7538
|
+
__typename: "Account",
|
|
7539
|
+
account_id: this.id,
|
|
7540
|
+
account_created_at: this.createdAt,
|
|
7541
|
+
account_updated_at: this.updatedAt,
|
|
7542
|
+
account_name: this.name
|
|
7543
|
+
};
|
|
7544
|
+
}
|
|
6794
7545
|
};
|
|
6795
7546
|
var AccountFromJson = (obj) => {
|
|
6796
7547
|
return new Account(
|
|
@@ -7247,6 +7998,33 @@ fragment InvoiceFragment on Invoice {
|
|
|
7247
7998
|
}
|
|
7248
7999
|
}
|
|
7249
8000
|
lightspark_node_with_o_s_k_uma_prescreening_utxos: uma_prescreening_utxos
|
|
8001
|
+
lightspark_node_with_o_s_k_balances: balances {
|
|
8002
|
+
__typename
|
|
8003
|
+
balances_owned_balance: owned_balance {
|
|
8004
|
+
__typename
|
|
8005
|
+
currency_amount_original_value: original_value
|
|
8006
|
+
currency_amount_original_unit: original_unit
|
|
8007
|
+
currency_amount_preferred_currency_unit: preferred_currency_unit
|
|
8008
|
+
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
8009
|
+
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
8010
|
+
}
|
|
8011
|
+
balances_available_to_send_balance: available_to_send_balance {
|
|
8012
|
+
__typename
|
|
8013
|
+
currency_amount_original_value: original_value
|
|
8014
|
+
currency_amount_original_unit: original_unit
|
|
8015
|
+
currency_amount_preferred_currency_unit: preferred_currency_unit
|
|
8016
|
+
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
8017
|
+
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
8018
|
+
}
|
|
8019
|
+
balances_available_to_withdraw_balance: available_to_withdraw_balance {
|
|
8020
|
+
__typename
|
|
8021
|
+
currency_amount_original_value: original_value
|
|
8022
|
+
currency_amount_original_unit: original_unit
|
|
8023
|
+
currency_amount_preferred_currency_unit: preferred_currency_unit
|
|
8024
|
+
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
8025
|
+
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
8026
|
+
}
|
|
8027
|
+
}
|
|
7250
8028
|
lightspark_node_with_o_s_k_encrypted_signing_private_key: encrypted_signing_private_key {
|
|
7251
8029
|
__typename
|
|
7252
8030
|
secret_encrypted_value: encrypted_value
|
|
@@ -7352,6 +8130,33 @@ fragment InvoiceFragment on Invoice {
|
|
|
7352
8130
|
}
|
|
7353
8131
|
}
|
|
7354
8132
|
lightspark_node_with_remote_signing_uma_prescreening_utxos: uma_prescreening_utxos
|
|
8133
|
+
lightspark_node_with_remote_signing_balances: balances {
|
|
8134
|
+
__typename
|
|
8135
|
+
balances_owned_balance: owned_balance {
|
|
8136
|
+
__typename
|
|
8137
|
+
currency_amount_original_value: original_value
|
|
8138
|
+
currency_amount_original_unit: original_unit
|
|
8139
|
+
currency_amount_preferred_currency_unit: preferred_currency_unit
|
|
8140
|
+
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
8141
|
+
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
8142
|
+
}
|
|
8143
|
+
balances_available_to_send_balance: available_to_send_balance {
|
|
8144
|
+
__typename
|
|
8145
|
+
currency_amount_original_value: original_value
|
|
8146
|
+
currency_amount_original_unit: original_unit
|
|
8147
|
+
currency_amount_preferred_currency_unit: preferred_currency_unit
|
|
8148
|
+
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
8149
|
+
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
8150
|
+
}
|
|
8151
|
+
balances_available_to_withdraw_balance: available_to_withdraw_balance {
|
|
8152
|
+
__typename
|
|
8153
|
+
currency_amount_original_value: original_value
|
|
8154
|
+
currency_amount_original_unit: original_unit
|
|
8155
|
+
currency_amount_preferred_currency_unit: preferred_currency_unit
|
|
8156
|
+
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
8157
|
+
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
8158
|
+
}
|
|
8159
|
+
}
|
|
7355
8160
|
}
|
|
7356
8161
|
}
|
|
7357
8162
|
}
|
|
@@ -7648,6 +8453,33 @@ fragment LightningTransactionFragment on LightningTransaction {
|
|
|
7648
8453
|
}
|
|
7649
8454
|
}
|
|
7650
8455
|
lightspark_node_with_o_s_k_uma_prescreening_utxos: uma_prescreening_utxos
|
|
8456
|
+
lightspark_node_with_o_s_k_balances: balances {
|
|
8457
|
+
__typename
|
|
8458
|
+
balances_owned_balance: owned_balance {
|
|
8459
|
+
__typename
|
|
8460
|
+
currency_amount_original_value: original_value
|
|
8461
|
+
currency_amount_original_unit: original_unit
|
|
8462
|
+
currency_amount_preferred_currency_unit: preferred_currency_unit
|
|
8463
|
+
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
8464
|
+
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
8465
|
+
}
|
|
8466
|
+
balances_available_to_send_balance: available_to_send_balance {
|
|
8467
|
+
__typename
|
|
8468
|
+
currency_amount_original_value: original_value
|
|
8469
|
+
currency_amount_original_unit: original_unit
|
|
8470
|
+
currency_amount_preferred_currency_unit: preferred_currency_unit
|
|
8471
|
+
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
8472
|
+
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
8473
|
+
}
|
|
8474
|
+
balances_available_to_withdraw_balance: available_to_withdraw_balance {
|
|
8475
|
+
__typename
|
|
8476
|
+
currency_amount_original_value: original_value
|
|
8477
|
+
currency_amount_original_unit: original_unit
|
|
8478
|
+
currency_amount_preferred_currency_unit: preferred_currency_unit
|
|
8479
|
+
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
8480
|
+
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
8481
|
+
}
|
|
8482
|
+
}
|
|
7651
8483
|
lightspark_node_with_o_s_k_encrypted_signing_private_key: encrypted_signing_private_key {
|
|
7652
8484
|
__typename
|
|
7653
8485
|
secret_encrypted_value: encrypted_value
|
|
@@ -7753,6 +8585,33 @@ fragment LightningTransactionFragment on LightningTransaction {
|
|
|
7753
8585
|
}
|
|
7754
8586
|
}
|
|
7755
8587
|
lightspark_node_with_remote_signing_uma_prescreening_utxos: uma_prescreening_utxos
|
|
8588
|
+
lightspark_node_with_remote_signing_balances: balances {
|
|
8589
|
+
__typename
|
|
8590
|
+
balances_owned_balance: owned_balance {
|
|
8591
|
+
__typename
|
|
8592
|
+
currency_amount_original_value: original_value
|
|
8593
|
+
currency_amount_original_unit: original_unit
|
|
8594
|
+
currency_amount_preferred_currency_unit: preferred_currency_unit
|
|
8595
|
+
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
8596
|
+
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
8597
|
+
}
|
|
8598
|
+
balances_available_to_send_balance: available_to_send_balance {
|
|
8599
|
+
__typename
|
|
8600
|
+
currency_amount_original_value: original_value
|
|
8601
|
+
currency_amount_original_unit: original_unit
|
|
8602
|
+
currency_amount_preferred_currency_unit: preferred_currency_unit
|
|
8603
|
+
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
8604
|
+
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
8605
|
+
}
|
|
8606
|
+
balances_available_to_withdraw_balance: available_to_withdraw_balance {
|
|
8607
|
+
__typename
|
|
8608
|
+
currency_amount_original_value: original_value
|
|
8609
|
+
currency_amount_original_unit: original_unit
|
|
8610
|
+
currency_amount_preferred_currency_unit: preferred_currency_unit
|
|
8611
|
+
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
8612
|
+
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
8613
|
+
}
|
|
8614
|
+
}
|
|
7756
8615
|
}
|
|
7757
8616
|
}
|
|
7758
8617
|
}
|
|
@@ -8415,7 +9274,7 @@ ${FRAGMENT27}
|
|
|
8415
9274
|
};
|
|
8416
9275
|
|
|
8417
9276
|
// src/objects/WithdrawalRequest.ts
|
|
8418
|
-
var
|
|
9277
|
+
var import_auto_bind11 = __toESM(require("auto-bind"), 1);
|
|
8419
9278
|
|
|
8420
9279
|
// src/objects/WithdrawalRequestStatus.ts
|
|
8421
9280
|
var WithdrawalRequestStatus = /* @__PURE__ */ ((WithdrawalRequestStatus2) => {
|
|
@@ -8464,7 +9323,7 @@ var WithdrawalRequest = class {
|
|
|
8464
9323
|
this.estimatedAmount = estimatedAmount;
|
|
8465
9324
|
this.completedAt = completedAt;
|
|
8466
9325
|
this.withdrawalId = withdrawalId;
|
|
8467
|
-
(0,
|
|
9326
|
+
(0, import_auto_bind11.default)(this);
|
|
8468
9327
|
}
|
|
8469
9328
|
async getChannelClosingTransactions(client, first = void 0) {
|
|
8470
9329
|
return await client.executeRawQuery({
|
|
@@ -8607,6 +9466,21 @@ ${FRAGMENT28}
|
|
|
8607
9466
|
constructObject: (data) => WithdrawalRequestFromJson(data.entity)
|
|
8608
9467
|
};
|
|
8609
9468
|
}
|
|
9469
|
+
toJson() {
|
|
9470
|
+
return {
|
|
9471
|
+
__typename: "WithdrawalRequest",
|
|
9472
|
+
withdrawal_request_id: this.id,
|
|
9473
|
+
withdrawal_request_created_at: this.createdAt,
|
|
9474
|
+
withdrawal_request_updated_at: this.updatedAt,
|
|
9475
|
+
withdrawal_request_amount: CurrencyAmountToJson(this.amount),
|
|
9476
|
+
withdrawal_request_estimated_amount: this.estimatedAmount ? CurrencyAmountToJson(this.estimatedAmount) : void 0,
|
|
9477
|
+
withdrawal_request_bitcoin_address: this.bitcoinAddress,
|
|
9478
|
+
withdrawal_request_withdrawal_mode: this.withdrawalMode,
|
|
9479
|
+
withdrawal_request_status: this.status,
|
|
9480
|
+
withdrawal_request_completed_at: this.completedAt,
|
|
9481
|
+
withdrawal_request_withdrawal: { id: this.withdrawalId }
|
|
9482
|
+
};
|
|
9483
|
+
}
|
|
8610
9484
|
};
|
|
8611
9485
|
var WithdrawalRequestFromJson = (obj) => {
|
|
8612
9486
|
return new WithdrawalRequest(
|
|
@@ -8668,11 +9542,9 @@ var WithdrawalRequest_default = WithdrawalRequest;
|
|
|
8668
9542
|
IncomingPayment,
|
|
8669
9543
|
IncomingPaymentAttemptStatus,
|
|
8670
9544
|
InvoiceType,
|
|
8671
|
-
LightsparkNode,
|
|
8672
9545
|
LightsparkNodeStatus,
|
|
8673
9546
|
LightsparkNodeWithOSK,
|
|
8674
9547
|
LightsparkNodeWithRemoteSigning,
|
|
8675
|
-
Node,
|
|
8676
9548
|
NodeAddressType,
|
|
8677
9549
|
OutgoingPayment,
|
|
8678
9550
|
OutgoingPaymentAttempt,
|
|
@@ -8702,6 +9574,8 @@ var WithdrawalRequest_default = WithdrawalRequest;
|
|
|
8702
9574
|
getInvoiceQuery,
|
|
8703
9575
|
getLightningTransactionQuery,
|
|
8704
9576
|
getLightsparkNodeOwnerQuery,
|
|
9577
|
+
getLightsparkNodeQuery,
|
|
9578
|
+
getNodeQuery,
|
|
8705
9579
|
getOnChainTransactionQuery,
|
|
8706
9580
|
getPaymentRequestQuery,
|
|
8707
9581
|
getRoutingTransactionQuery,
|