@lightsparkdev/lightspark-sdk 0.4.10 → 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +30 -0
- package/README.md +1 -1
- package/dist/{chunk-NXUFC5J7.js → chunk-LZC5C5NI.js} +2908 -635
- package/dist/{index-3ffe9e7b.d.ts → index-09d4ac20.d.ts} +373 -62
- package/dist/index.cjs +3395 -842
- package/dist/index.d.ts +2 -2
- package/dist/index.js +390 -94
- package/dist/objects/index.cjs +2735 -553
- package/dist/objects/index.d.ts +1 -1
- package/dist/objects/index.js +17 -5
- package/package.json +12 -9
- package/src/NodeKeyLoaderCache.ts +87 -0
- package/src/SigningKeyLoader.ts +177 -0
- package/src/auth/AccountTokenAuthProvider.ts +4 -4
- package/src/client.ts +209 -118
- package/src/graphql/CreateInvoice.ts +3 -2
- package/src/graphql/CreateLnurlInvoice.ts +2 -0
- package/src/graphql/CreateUmaInvoice.ts +23 -0
- package/src/graphql/MultiNodeDashboard.ts +0 -3
- package/src/graphql/PayUmaInvoice.ts +29 -0
- package/src/graphql/RecoverNodeSigningKey.ts +1 -1
- package/src/graphql/SingleNodeDashboard.ts +0 -1
- package/src/lightspark_crypto/lightspark_crypto.d.ts +157 -0
- package/src/lightspark_crypto/lightspark_crypto.js +1010 -0
- package/src/lightspark_crypto/lightspark_crypto_bg.wasm +0 -0
- package/src/lightspark_crypto/lightspark_crypto_bg.wasm.d.ts +120 -0
- package/src/lightspark_crypto/package.json +11 -0
- package/src/objects/Account.ts +437 -120
- package/src/objects/AccountToApiTokensConnection.ts +3 -3
- package/src/objects/AccountToChannelsConnection.ts +4 -4
- package/src/objects/AccountToNodesConnection.ts +2 -15
- package/src/objects/AccountToPaymentRequestsConnection.ts +3 -3
- package/src/objects/AccountToTransactionsConnection.ts +6 -6
- package/src/objects/AccountToWalletsConnection.ts +2 -2
- package/src/objects/Balances.ts +2 -2
- package/src/objects/Channel.ts +4 -4
- package/src/objects/ChannelClosingTransaction.ts +2 -2
- package/src/objects/ChannelOpeningTransaction.ts +2 -2
- package/src/objects/ChannelToTransactionsConnection.ts +4 -4
- package/src/objects/{CryptoSanctionsScreeningProvider.ts → ComplianceProvider.ts} +3 -3
- package/src/objects/Connection.ts +25 -31
- package/src/objects/CreateApiTokenInput.ts +1 -1
- package/src/objects/CreateApiTokenOutput.ts +1 -1
- package/src/objects/CreateInvoiceInput.ts +0 -6
- package/src/objects/CreateLnurlInvoiceInput.ts +1 -7
- package/src/objects/CreateNodeWalletAddressInput.ts +1 -1
- package/src/objects/CreateNodeWalletAddressOutput.ts +1 -1
- package/src/objects/CreateTestModeInvoiceInput.ts +1 -1
- package/src/objects/CreateTestModeInvoiceOutput.ts +1 -1
- package/src/objects/CreateTestModePaymentInput.ts +1 -1
- package/src/objects/CreateTestModePaymentoutput.ts +14 -2
- package/src/objects/CreateUmaInvoiceInput.ts +24 -0
- package/src/objects/DeclineToSignMessagesInput.ts +16 -0
- package/src/objects/DeclineToSignMessagesOutput.ts +28 -0
- package/src/objects/DeleteApiTokenOutput.ts +1 -1
- package/src/objects/Entity.ts +401 -66
- package/src/objects/GraphNode.ts +3 -3
- package/src/objects/IdAndSignature.ts +16 -0
- package/src/objects/IncomingPayment.ts +21 -8
- package/src/objects/IncomingPaymentAttempt.ts +2 -2
- package/src/objects/IncomingPaymentToAttemptsConnection.ts +3 -3
- package/src/objects/Invoice.ts +118 -21
- package/src/objects/InvoiceData.ts +118 -21
- package/src/objects/LightningFeeEstimateForInvoiceInput.ts +1 -1
- package/src/objects/LightningFeeEstimateForNodeInput.ts +1 -1
- package/src/objects/LightningFeeEstimateOutput.ts +2 -2
- package/src/objects/LightningTransaction.ts +155 -31
- package/src/objects/LightsparkNode.ts +272 -112
- package/src/objects/LightsparkNodeOwner.ts +8 -4
- package/src/objects/LightsparkNodeToChannelsConnection.ts +3 -3
- package/src/objects/LightsparkNodeWithOSK.ts +389 -0
- package/src/objects/LightsparkNodeWithRemoteSigning.ts +384 -0
- package/src/objects/Node.ts +213 -60
- package/src/objects/NodeToAddressesConnection.ts +2 -2
- package/src/objects/OnChainTransaction.ts +2 -2
- package/src/objects/OutgoingPayment.ts +139 -24
- package/src/objects/OutgoingPaymentAttempt.ts +5 -5
- package/src/objects/OutgoingPaymentAttemptToHopsConnection.ts +3 -3
- package/src/objects/OutgoingPaymentToAttemptsConnection.ts +3 -3
- package/src/objects/OutgoingPaymentsForInvoiceQueryInput.ts +25 -0
- package/src/objects/OutgoingPaymentsForInvoiceQueryOutput.ts +28 -0
- package/src/objects/PayUmaInvoiceInput.ts +25 -0
- package/src/objects/{LightsparkNodePurpose.ts → PaymentDirection.ts} +5 -7
- package/src/objects/PaymentRequest.ts +119 -22
- package/src/objects/PaymentRequestData.ts +119 -22
- package/src/objects/PostTransactionData.ts +39 -0
- package/src/objects/RegisterPaymentInput.ts +31 -0
- package/src/objects/RegisterPaymentOutput.ts +23 -0
- package/src/objects/ReleaseChannelPerCommitmentSecretInput.ts +23 -0
- package/src/objects/ReleaseChannelPerCommitmentSecretOutput.ts +23 -0
- package/src/objects/ReleasePaymentPreimageInput.ts +20 -0
- package/src/objects/ReleasePaymentPreimageOutput.ts +23 -0
- package/src/objects/RemoteSigningSubEventType.ts +26 -0
- package/src/objects/RequestWithdrawalInput.ts +1 -1
- package/src/objects/RequestWithdrawalOutput.ts +1 -1
- package/src/objects/RoutingTransaction.ts +1 -1
- package/src/objects/ScreenNodeInput.ts +20 -0
- package/src/objects/ScreenNodeOutput.ts +22 -0
- package/src/objects/SetInvoicePaymentHashInput.ts +24 -0
- package/src/objects/SetInvoicePaymentHashOutput.ts +23 -0
- package/src/objects/SignInvoiceInput.ts +19 -0
- package/src/objects/SignInvoiceOutput.ts +21 -0
- package/src/objects/SignMessagesInput.ts +18 -0
- package/src/objects/SignMessagesOutput.ts +26 -0
- package/src/objects/Signable.ts +58 -0
- package/src/objects/SignablePayload.ts +93 -0
- package/src/objects/SignablePayloadStatus.ts +17 -0
- package/src/objects/SingleNodeDashboard.ts +0 -2
- package/src/objects/Transaction.ts +153 -29
- package/src/objects/TransactionFailures.ts +1 -1
- package/src/objects/UpdateChannelPerCommitmentPointInput.ts +25 -0
- package/src/objects/UpdateChannelPerCommitmentPointOutput.ts +23 -0
- package/src/objects/UpdateNodeSharedSecretInput.ts +18 -0
- package/src/objects/UpdateNodeSharedSecretOutput.ts +23 -0
- package/src/objects/Wallet.ts +271 -51
- package/src/objects/WalletToPaymentRequestsConnection.ts +3 -3
- package/src/objects/WalletToTransactionsConnection.ts +3 -3
- package/src/objects/WithdrawalRequest.ts +6 -6
- package/src/objects/WithdrawalRequestToChannelClosingTransactionsConnection.ts +2 -2
- package/src/objects/WithdrawalRequestToChannelOpeningTransactionsConnection.ts +2 -2
- package/src/objects/index.ts +37 -4
- package/src/{__tests__ → tests}/webhooks.test.ts +1 -1
- package/src/webhooks.ts +1 -1
- package/src/objects/ScreenBitcoinAddressesInput.ts +0 -23
- package/src/objects/ScreenBitcoinAddressesOutput.ts +0 -25
package/dist/objects/index.cjs
CHANGED
|
@@ -35,7 +35,7 @@ __export(objects_exports, {
|
|
|
35
35
|
BitcoinNetwork: () => BitcoinNetwork_default,
|
|
36
36
|
Channel: () => Channel_default,
|
|
37
37
|
ChannelStatus: () => ChannelStatus_default,
|
|
38
|
-
|
|
38
|
+
ComplianceProvider: () => ComplianceProvider_default,
|
|
39
39
|
CurrencyUnit: () => CurrencyUnit_default,
|
|
40
40
|
GraphNode: () => GraphNode_default,
|
|
41
41
|
HtlcAttemptFailureCode: () => HtlcAttemptFailureCode_default,
|
|
@@ -43,18 +43,22 @@ __export(objects_exports, {
|
|
|
43
43
|
IncomingPaymentAttemptStatus: () => IncomingPaymentAttemptStatus_default,
|
|
44
44
|
InvoiceType: () => InvoiceType_default,
|
|
45
45
|
LightsparkNode: () => LightsparkNode_default,
|
|
46
|
-
LightsparkNodePurpose: () => LightsparkNodePurpose_default,
|
|
47
46
|
LightsparkNodeStatus: () => LightsparkNodeStatus_default,
|
|
47
|
+
LightsparkNodeWithOSK: () => LightsparkNodeWithOSK_default,
|
|
48
|
+
LightsparkNodeWithRemoteSigning: () => LightsparkNodeWithRemoteSigning_default,
|
|
48
49
|
Node: () => Node_default,
|
|
49
50
|
NodeAddressType: () => NodeAddressType_default,
|
|
50
51
|
OutgoingPayment: () => OutgoingPayment_default,
|
|
51
52
|
OutgoingPaymentAttempt: () => OutgoingPaymentAttempt_default,
|
|
52
53
|
OutgoingPaymentAttemptStatus: () => OutgoingPaymentAttemptStatus_default,
|
|
54
|
+
PaymentDirection: () => PaymentDirection_default,
|
|
53
55
|
PaymentFailureReason: () => PaymentFailureReason_default,
|
|
54
56
|
PaymentRequestStatus: () => PaymentRequestStatus_default,
|
|
55
57
|
Permission: () => Permission_default,
|
|
58
|
+
RemoteSigningSubEventType: () => RemoteSigningSubEventType_default,
|
|
56
59
|
RiskRating: () => RiskRating_default,
|
|
57
60
|
RoutingTransactionFailureReason: () => RoutingTransactionFailureReason_default,
|
|
61
|
+
SignablePayloadStatus: () => SignablePayloadStatus_default,
|
|
58
62
|
TransactionStatus: () => TransactionStatus_default,
|
|
59
63
|
TransactionType: () => TransactionType_default,
|
|
60
64
|
Wallet: () => Wallet_default,
|
|
@@ -75,13 +79,15 @@ __export(objects_exports, {
|
|
|
75
79
|
getOnChainTransactionQuery: () => getOnChainTransactionQuery,
|
|
76
80
|
getPaymentRequestQuery: () => getPaymentRequestQuery,
|
|
77
81
|
getRoutingTransactionQuery: () => getRoutingTransactionQuery,
|
|
82
|
+
getSignablePayloadQuery: () => getSignablePayloadQuery,
|
|
83
|
+
getSignableQuery: () => getSignableQuery,
|
|
78
84
|
getTransactionQuery: () => getTransactionQuery,
|
|
79
85
|
getWithdrawalQuery: () => getWithdrawalQuery
|
|
80
86
|
});
|
|
81
87
|
module.exports = __toCommonJS(objects_exports);
|
|
82
88
|
|
|
83
89
|
// src/objects/Account.ts
|
|
84
|
-
var
|
|
90
|
+
var import_auto_bind12 = __toESM(require("auto-bind"), 1);
|
|
85
91
|
|
|
86
92
|
// src/objects/Permission.ts
|
|
87
93
|
var Permission = /* @__PURE__ */ ((Permission2) => {
|
|
@@ -490,7 +496,8 @@ var AccountToChannelsConnectionFromJson = (obj) => {
|
|
|
490
496
|
var AccountToChannelsConnection_default = AccountToChannelsConnection;
|
|
491
497
|
|
|
492
498
|
// src/objects/LightsparkNode.ts
|
|
493
|
-
var
|
|
499
|
+
var import_core = require("@lightsparkdev/core");
|
|
500
|
+
var import_auto_bind5 = __toESM(require("auto-bind"), 1);
|
|
494
501
|
|
|
495
502
|
// src/objects/BitcoinNetwork.ts
|
|
496
503
|
var BitcoinNetwork = /* @__PURE__ */ ((BitcoinNetwork2) => {
|
|
@@ -515,16 +522,6 @@ var BlockchainBalanceFromJson = (obj) => {
|
|
|
515
522
|
};
|
|
516
523
|
};
|
|
517
524
|
|
|
518
|
-
// src/objects/LightsparkNodePurpose.ts
|
|
519
|
-
var LightsparkNodePurpose = /* @__PURE__ */ ((LightsparkNodePurpose2) => {
|
|
520
|
-
LightsparkNodePurpose2["FUTURE_VALUE"] = "FUTURE_VALUE";
|
|
521
|
-
LightsparkNodePurpose2["SEND"] = "SEND";
|
|
522
|
-
LightsparkNodePurpose2["RECEIVE"] = "RECEIVE";
|
|
523
|
-
LightsparkNodePurpose2["ROUTING"] = "ROUTING";
|
|
524
|
-
return LightsparkNodePurpose2;
|
|
525
|
-
})(LightsparkNodePurpose || {});
|
|
526
|
-
var LightsparkNodePurpose_default = LightsparkNodePurpose;
|
|
527
|
-
|
|
528
525
|
// src/objects/LightsparkNodeStatus.ts
|
|
529
526
|
var LightsparkNodeStatus = /* @__PURE__ */ ((LightsparkNodeStatus2) => {
|
|
530
527
|
LightsparkNodeStatus2["FUTURE_VALUE"] = "FUTURE_VALUE";
|
|
@@ -556,6 +553,9 @@ var LightsparkNodeToChannelsConnectionFromJson = (obj) => {
|
|
|
556
553
|
};
|
|
557
554
|
};
|
|
558
555
|
|
|
556
|
+
// src/objects/LightsparkNodeWithOSK.ts
|
|
557
|
+
var import_auto_bind3 = __toESM(require("auto-bind"), 1);
|
|
558
|
+
|
|
559
559
|
// src/objects/NodeAddressType.ts
|
|
560
560
|
var NodeAddressType = /* @__PURE__ */ ((NodeAddressType2) => {
|
|
561
561
|
NodeAddressType2["FUTURE_VALUE"] = "FUTURE_VALUE";
|
|
@@ -592,29 +592,28 @@ var SecretFromJson = (obj) => {
|
|
|
592
592
|
};
|
|
593
593
|
};
|
|
594
594
|
|
|
595
|
-
// src/objects/
|
|
596
|
-
var
|
|
597
|
-
constructor(id, createdAt, updatedAt, bitcoinNetwork, displayName,
|
|
595
|
+
// src/objects/LightsparkNodeWithOSK.ts
|
|
596
|
+
var LightsparkNodeWithOSK = class {
|
|
597
|
+
constructor(id, createdAt, updatedAt, bitcoinNetwork, displayName, ownerId, umaPrescreeningUtxos, typename, alias, color, conductivity, publicKey, status, totalBalance, totalLocalBalance, localBalance, remoteBalance, blockchainBalance, encryptedSigningPrivateKey) {
|
|
598
598
|
this.id = id;
|
|
599
599
|
this.createdAt = createdAt;
|
|
600
600
|
this.updatedAt = updatedAt;
|
|
601
601
|
this.bitcoinNetwork = bitcoinNetwork;
|
|
602
602
|
this.displayName = displayName;
|
|
603
|
-
this.accountId = accountId;
|
|
604
603
|
this.ownerId = ownerId;
|
|
604
|
+
this.umaPrescreeningUtxos = umaPrescreeningUtxos;
|
|
605
605
|
this.typename = typename;
|
|
606
606
|
this.alias = alias;
|
|
607
607
|
this.color = color;
|
|
608
608
|
this.conductivity = conductivity;
|
|
609
609
|
this.publicKey = publicKey;
|
|
610
|
-
this.
|
|
611
|
-
this.encryptedSigningPrivateKey = encryptedSigningPrivateKey;
|
|
610
|
+
this.status = status;
|
|
612
611
|
this.totalBalance = totalBalance;
|
|
613
612
|
this.totalLocalBalance = totalLocalBalance;
|
|
614
613
|
this.localBalance = localBalance;
|
|
615
|
-
this.purpose = purpose;
|
|
616
614
|
this.remoteBalance = remoteBalance;
|
|
617
|
-
this.
|
|
615
|
+
this.blockchainBalance = blockchainBalance;
|
|
616
|
+
this.encryptedSigningPrivateKey = encryptedSigningPrivateKey;
|
|
618
617
|
(0, import_auto_bind3.default)(this);
|
|
619
618
|
}
|
|
620
619
|
async getAddresses(client, first = void 0, types = void 0) {
|
|
@@ -622,7 +621,7 @@ var LightsparkNode = class {
|
|
|
622
621
|
queryPayload: `
|
|
623
622
|
query FetchNodeToAddressesConnection($entity_id: ID!, $first: Int, $types: [NodeAddressType!]) {
|
|
624
623
|
entity(id: $entity_id) {
|
|
625
|
-
... on
|
|
624
|
+
... on LightsparkNodeWithOSK {
|
|
626
625
|
addresses(, first: $first, types: $types) {
|
|
627
626
|
__typename
|
|
628
627
|
node_to_addresses_connection_count: count
|
|
@@ -648,7 +647,7 @@ query FetchNodeToAddressesConnection($entity_id: ID!, $first: Int, $types: [Node
|
|
|
648
647
|
queryPayload: `
|
|
649
648
|
query FetchLightsparkNodeToChannelsConnection($entity_id: ID!, $first: Int, $statuses: [ChannelStatus!], $after: String) {
|
|
650
649
|
entity(id: $entity_id) {
|
|
651
|
-
... on
|
|
650
|
+
... on LightsparkNodeWithOSK {
|
|
652
651
|
channels(, first: $first, statuses: $statuses, after: $after) {
|
|
653
652
|
__typename
|
|
654
653
|
lightspark_node_to_channels_connection_count: count
|
|
@@ -770,13 +769,13 @@ query FetchLightsparkNodeToChannelsConnection($entity_id: ID!, $first: Int, $sta
|
|
|
770
769
|
}
|
|
771
770
|
});
|
|
772
771
|
}
|
|
773
|
-
static
|
|
772
|
+
static getLightsparkNodeWithOSKQuery(id) {
|
|
774
773
|
return {
|
|
775
774
|
queryPayload: `
|
|
776
|
-
query
|
|
775
|
+
query GetLightsparkNodeWithOSK($id: ID!) {
|
|
777
776
|
entity(id: $id) {
|
|
778
|
-
... on
|
|
779
|
-
...
|
|
777
|
+
... on LightsparkNodeWithOSK {
|
|
778
|
+
...LightsparkNodeWithOSKFragment
|
|
780
779
|
}
|
|
781
780
|
}
|
|
782
781
|
}
|
|
@@ -784,53 +783,88 @@ query GetLightsparkNode($id: ID!) {
|
|
|
784
783
|
${FRAGMENT3}
|
|
785
784
|
`,
|
|
786
785
|
variables: { id },
|
|
787
|
-
constructObject: (data) =>
|
|
786
|
+
constructObject: (data) => LightsparkNodeWithOSKFromJson(data.entity)
|
|
788
787
|
};
|
|
789
788
|
}
|
|
790
789
|
};
|
|
791
|
-
var
|
|
792
|
-
return new
|
|
793
|
-
obj["
|
|
794
|
-
obj["
|
|
795
|
-
obj["
|
|
796
|
-
BitcoinNetwork_default[obj["
|
|
797
|
-
obj["
|
|
798
|
-
obj["
|
|
799
|
-
obj["
|
|
800
|
-
"
|
|
801
|
-
obj["
|
|
802
|
-
obj["
|
|
803
|
-
obj["
|
|
804
|
-
obj["
|
|
805
|
-
!!obj["
|
|
806
|
-
!!obj["
|
|
807
|
-
!!obj["
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
!!obj["
|
|
811
|
-
!!obj["
|
|
812
|
-
!!obj["
|
|
790
|
+
var LightsparkNodeWithOSKFromJson = (obj) => {
|
|
791
|
+
return new LightsparkNodeWithOSK(
|
|
792
|
+
obj["lightspark_node_with_o_s_k_id"],
|
|
793
|
+
obj["lightspark_node_with_o_s_k_created_at"],
|
|
794
|
+
obj["lightspark_node_with_o_s_k_updated_at"],
|
|
795
|
+
BitcoinNetwork_default[obj["lightspark_node_with_o_s_k_bitcoin_network"]] ?? BitcoinNetwork_default.FUTURE_VALUE,
|
|
796
|
+
obj["lightspark_node_with_o_s_k_display_name"],
|
|
797
|
+
obj["lightspark_node_with_o_s_k_owner"].id,
|
|
798
|
+
obj["lightspark_node_with_o_s_k_uma_prescreening_utxos"],
|
|
799
|
+
"LightsparkNodeWithOSK",
|
|
800
|
+
obj["lightspark_node_with_o_s_k_alias"],
|
|
801
|
+
obj["lightspark_node_with_o_s_k_color"],
|
|
802
|
+
obj["lightspark_node_with_o_s_k_conductivity"],
|
|
803
|
+
obj["lightspark_node_with_o_s_k_public_key"],
|
|
804
|
+
!!obj["lightspark_node_with_o_s_k_status"] ? LightsparkNodeStatus_default[obj["lightspark_node_with_o_s_k_status"]] ?? LightsparkNodeStatus_default.FUTURE_VALUE : null,
|
|
805
|
+
!!obj["lightspark_node_with_o_s_k_total_balance"] ? CurrencyAmountFromJson(obj["lightspark_node_with_o_s_k_total_balance"]) : void 0,
|
|
806
|
+
!!obj["lightspark_node_with_o_s_k_total_local_balance"] ? CurrencyAmountFromJson(
|
|
807
|
+
obj["lightspark_node_with_o_s_k_total_local_balance"]
|
|
808
|
+
) : void 0,
|
|
809
|
+
!!obj["lightspark_node_with_o_s_k_local_balance"] ? CurrencyAmountFromJson(obj["lightspark_node_with_o_s_k_local_balance"]) : void 0,
|
|
810
|
+
!!obj["lightspark_node_with_o_s_k_remote_balance"] ? CurrencyAmountFromJson(obj["lightspark_node_with_o_s_k_remote_balance"]) : void 0,
|
|
811
|
+
!!obj["lightspark_node_with_o_s_k_blockchain_balance"] ? BlockchainBalanceFromJson(
|
|
812
|
+
obj["lightspark_node_with_o_s_k_blockchain_balance"]
|
|
813
|
+
) : void 0,
|
|
814
|
+
!!obj["lightspark_node_with_o_s_k_encrypted_signing_private_key"] ? SecretFromJson(
|
|
815
|
+
obj["lightspark_node_with_o_s_k_encrypted_signing_private_key"]
|
|
816
|
+
) : void 0
|
|
813
817
|
);
|
|
814
818
|
};
|
|
815
819
|
var FRAGMENT3 = `
|
|
816
|
-
fragment
|
|
820
|
+
fragment LightsparkNodeWithOSKFragment on LightsparkNodeWithOSK {
|
|
817
821
|
__typename
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
822
|
+
lightspark_node_with_o_s_k_id: id
|
|
823
|
+
lightspark_node_with_o_s_k_created_at: created_at
|
|
824
|
+
lightspark_node_with_o_s_k_updated_at: updated_at
|
|
825
|
+
lightspark_node_with_o_s_k_alias: alias
|
|
826
|
+
lightspark_node_with_o_s_k_bitcoin_network: bitcoin_network
|
|
827
|
+
lightspark_node_with_o_s_k_color: color
|
|
828
|
+
lightspark_node_with_o_s_k_conductivity: conductivity
|
|
829
|
+
lightspark_node_with_o_s_k_display_name: display_name
|
|
830
|
+
lightspark_node_with_o_s_k_public_key: public_key
|
|
831
|
+
lightspark_node_with_o_s_k_owner: owner {
|
|
828
832
|
id
|
|
829
833
|
}
|
|
830
|
-
|
|
831
|
-
|
|
834
|
+
lightspark_node_with_o_s_k_status: status
|
|
835
|
+
lightspark_node_with_o_s_k_total_balance: total_balance {
|
|
836
|
+
__typename
|
|
837
|
+
currency_amount_original_value: original_value
|
|
838
|
+
currency_amount_original_unit: original_unit
|
|
839
|
+
currency_amount_preferred_currency_unit: preferred_currency_unit
|
|
840
|
+
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
841
|
+
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
842
|
+
}
|
|
843
|
+
lightspark_node_with_o_s_k_total_local_balance: total_local_balance {
|
|
844
|
+
__typename
|
|
845
|
+
currency_amount_original_value: original_value
|
|
846
|
+
currency_amount_original_unit: original_unit
|
|
847
|
+
currency_amount_preferred_currency_unit: preferred_currency_unit
|
|
848
|
+
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
849
|
+
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
850
|
+
}
|
|
851
|
+
lightspark_node_with_o_s_k_local_balance: local_balance {
|
|
852
|
+
__typename
|
|
853
|
+
currency_amount_original_value: original_value
|
|
854
|
+
currency_amount_original_unit: original_unit
|
|
855
|
+
currency_amount_preferred_currency_unit: preferred_currency_unit
|
|
856
|
+
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
857
|
+
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
858
|
+
}
|
|
859
|
+
lightspark_node_with_o_s_k_remote_balance: remote_balance {
|
|
860
|
+
__typename
|
|
861
|
+
currency_amount_original_value: original_value
|
|
862
|
+
currency_amount_original_unit: original_unit
|
|
863
|
+
currency_amount_preferred_currency_unit: preferred_currency_unit
|
|
864
|
+
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
865
|
+
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
832
866
|
}
|
|
833
|
-
|
|
867
|
+
lightspark_node_with_o_s_k_blockchain_balance: blockchain_balance {
|
|
834
868
|
__typename
|
|
835
869
|
blockchain_balance_total_balance: total_balance {
|
|
836
870
|
__typename
|
|
@@ -881,82 +915,37 @@ fragment LightsparkNodeFragment on LightsparkNode {
|
|
|
881
915
|
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
882
916
|
}
|
|
883
917
|
}
|
|
884
|
-
|
|
918
|
+
lightspark_node_with_o_s_k_uma_prescreening_utxos: uma_prescreening_utxos
|
|
919
|
+
lightspark_node_with_o_s_k_encrypted_signing_private_key: encrypted_signing_private_key {
|
|
885
920
|
__typename
|
|
886
921
|
secret_encrypted_value: encrypted_value
|
|
887
922
|
secret_cipher: cipher
|
|
888
923
|
}
|
|
889
|
-
lightspark_node_total_balance: total_balance {
|
|
890
|
-
__typename
|
|
891
|
-
currency_amount_original_value: original_value
|
|
892
|
-
currency_amount_original_unit: original_unit
|
|
893
|
-
currency_amount_preferred_currency_unit: preferred_currency_unit
|
|
894
|
-
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
895
|
-
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
896
|
-
}
|
|
897
|
-
lightspark_node_total_local_balance: total_local_balance {
|
|
898
|
-
__typename
|
|
899
|
-
currency_amount_original_value: original_value
|
|
900
|
-
currency_amount_original_unit: original_unit
|
|
901
|
-
currency_amount_preferred_currency_unit: preferred_currency_unit
|
|
902
|
-
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
903
|
-
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
904
|
-
}
|
|
905
|
-
lightspark_node_local_balance: local_balance {
|
|
906
|
-
__typename
|
|
907
|
-
currency_amount_original_value: original_value
|
|
908
|
-
currency_amount_original_unit: original_unit
|
|
909
|
-
currency_amount_preferred_currency_unit: preferred_currency_unit
|
|
910
|
-
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
911
|
-
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
912
|
-
}
|
|
913
|
-
lightspark_node_purpose: purpose
|
|
914
|
-
lightspark_node_remote_balance: remote_balance {
|
|
915
|
-
__typename
|
|
916
|
-
currency_amount_original_value: original_value
|
|
917
|
-
currency_amount_original_unit: original_unit
|
|
918
|
-
currency_amount_preferred_currency_unit: preferred_currency_unit
|
|
919
|
-
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
920
|
-
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
921
|
-
}
|
|
922
|
-
lightspark_node_status: status
|
|
923
924
|
}`;
|
|
924
|
-
var
|
|
925
|
-
|
|
926
|
-
// src/objects/AccountToNodesConnection.ts
|
|
927
|
-
var AccountToNodesConnectionFromJson = (obj) => {
|
|
928
|
-
return {
|
|
929
|
-
count: obj["account_to_nodes_connection_count"],
|
|
930
|
-
pageInfo: PageInfoFromJson(obj["account_to_nodes_connection_page_info"]),
|
|
931
|
-
entities: obj["account_to_nodes_connection_entities"].map(
|
|
932
|
-
(e) => LightsparkNodeFromJson(e)
|
|
933
|
-
),
|
|
934
|
-
typename: "AccountToNodesConnection",
|
|
935
|
-
purpose: !!obj["account_to_nodes_connection_purpose"] ? LightsparkNodePurpose_default[obj["account_to_nodes_connection_purpose"]] ?? LightsparkNodePurpose_default.FUTURE_VALUE : null
|
|
936
|
-
};
|
|
937
|
-
};
|
|
925
|
+
var LightsparkNodeWithOSK_default = LightsparkNodeWithOSK;
|
|
938
926
|
|
|
939
|
-
// src/objects/
|
|
940
|
-
var import_core2 = require("@lightsparkdev/core");
|
|
941
|
-
|
|
942
|
-
// src/objects/Node.ts
|
|
943
|
-
var import_core = require("@lightsparkdev/core");
|
|
944
|
-
var import_auto_bind5 = __toESM(require("auto-bind"), 1);
|
|
945
|
-
|
|
946
|
-
// src/objects/GraphNode.ts
|
|
927
|
+
// src/objects/LightsparkNodeWithRemoteSigning.ts
|
|
947
928
|
var import_auto_bind4 = __toESM(require("auto-bind"), 1);
|
|
948
|
-
var
|
|
949
|
-
constructor(id, createdAt, updatedAt, bitcoinNetwork, displayName, typename, alias, color, conductivity, publicKey) {
|
|
929
|
+
var LightsparkNodeWithRemoteSigning = class {
|
|
930
|
+
constructor(id, createdAt, updatedAt, bitcoinNetwork, displayName, ownerId, umaPrescreeningUtxos, typename, alias, color, conductivity, publicKey, status, totalBalance, totalLocalBalance, localBalance, remoteBalance, blockchainBalance) {
|
|
950
931
|
this.id = id;
|
|
951
932
|
this.createdAt = createdAt;
|
|
952
933
|
this.updatedAt = updatedAt;
|
|
953
934
|
this.bitcoinNetwork = bitcoinNetwork;
|
|
954
935
|
this.displayName = displayName;
|
|
936
|
+
this.ownerId = ownerId;
|
|
937
|
+
this.umaPrescreeningUtxos = umaPrescreeningUtxos;
|
|
955
938
|
this.typename = typename;
|
|
956
939
|
this.alias = alias;
|
|
957
940
|
this.color = color;
|
|
958
941
|
this.conductivity = conductivity;
|
|
959
942
|
this.publicKey = publicKey;
|
|
943
|
+
this.status = status;
|
|
944
|
+
this.totalBalance = totalBalance;
|
|
945
|
+
this.totalLocalBalance = totalLocalBalance;
|
|
946
|
+
this.localBalance = localBalance;
|
|
947
|
+
this.remoteBalance = remoteBalance;
|
|
948
|
+
this.blockchainBalance = blockchainBalance;
|
|
960
949
|
(0, import_auto_bind4.default)(this);
|
|
961
950
|
}
|
|
962
951
|
async getAddresses(client, first = void 0, types = void 0) {
|
|
@@ -964,7 +953,7 @@ var GraphNode = class {
|
|
|
964
953
|
queryPayload: `
|
|
965
954
|
query FetchNodeToAddressesConnection($entity_id: ID!, $first: Int, $types: [NodeAddressType!]) {
|
|
966
955
|
entity(id: $entity_id) {
|
|
967
|
-
... on
|
|
956
|
+
... on LightsparkNodeWithRemoteSigning {
|
|
968
957
|
addresses(, first: $first, types: $types) {
|
|
969
958
|
__typename
|
|
970
959
|
node_to_addresses_connection_count: count
|
|
@@ -985,13 +974,140 @@ query FetchNodeToAddressesConnection($entity_id: ID!, $first: Int, $types: [Node
|
|
|
985
974
|
}
|
|
986
975
|
});
|
|
987
976
|
}
|
|
988
|
-
|
|
977
|
+
async getChannels(client, first = void 0, statuses = void 0, after = void 0) {
|
|
978
|
+
return await client.executeRawQuery({
|
|
979
|
+
queryPayload: `
|
|
980
|
+
query FetchLightsparkNodeToChannelsConnection($entity_id: ID!, $first: Int, $statuses: [ChannelStatus!], $after: String) {
|
|
981
|
+
entity(id: $entity_id) {
|
|
982
|
+
... on LightsparkNodeWithRemoteSigning {
|
|
983
|
+
channels(, first: $first, statuses: $statuses, after: $after) {
|
|
984
|
+
__typename
|
|
985
|
+
lightspark_node_to_channels_connection_count: count
|
|
986
|
+
lightspark_node_to_channels_connection_page_info: page_info {
|
|
987
|
+
__typename
|
|
988
|
+
page_info_has_next_page: has_next_page
|
|
989
|
+
page_info_has_previous_page: has_previous_page
|
|
990
|
+
page_info_start_cursor: start_cursor
|
|
991
|
+
page_info_end_cursor: end_cursor
|
|
992
|
+
}
|
|
993
|
+
lightspark_node_to_channels_connection_entities: entities {
|
|
994
|
+
__typename
|
|
995
|
+
channel_id: id
|
|
996
|
+
channel_created_at: created_at
|
|
997
|
+
channel_updated_at: updated_at
|
|
998
|
+
channel_funding_transaction: funding_transaction {
|
|
999
|
+
id
|
|
1000
|
+
}
|
|
1001
|
+
channel_capacity: capacity {
|
|
1002
|
+
__typename
|
|
1003
|
+
currency_amount_original_value: original_value
|
|
1004
|
+
currency_amount_original_unit: original_unit
|
|
1005
|
+
currency_amount_preferred_currency_unit: preferred_currency_unit
|
|
1006
|
+
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
1007
|
+
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
1008
|
+
}
|
|
1009
|
+
channel_local_balance: local_balance {
|
|
1010
|
+
__typename
|
|
1011
|
+
currency_amount_original_value: original_value
|
|
1012
|
+
currency_amount_original_unit: original_unit
|
|
1013
|
+
currency_amount_preferred_currency_unit: preferred_currency_unit
|
|
1014
|
+
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
1015
|
+
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
1016
|
+
}
|
|
1017
|
+
channel_local_unsettled_balance: local_unsettled_balance {
|
|
1018
|
+
__typename
|
|
1019
|
+
currency_amount_original_value: original_value
|
|
1020
|
+
currency_amount_original_unit: original_unit
|
|
1021
|
+
currency_amount_preferred_currency_unit: preferred_currency_unit
|
|
1022
|
+
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
1023
|
+
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
1024
|
+
}
|
|
1025
|
+
channel_remote_balance: remote_balance {
|
|
1026
|
+
__typename
|
|
1027
|
+
currency_amount_original_value: original_value
|
|
1028
|
+
currency_amount_original_unit: original_unit
|
|
1029
|
+
currency_amount_preferred_currency_unit: preferred_currency_unit
|
|
1030
|
+
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
1031
|
+
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
1032
|
+
}
|
|
1033
|
+
channel_remote_unsettled_balance: remote_unsettled_balance {
|
|
1034
|
+
__typename
|
|
1035
|
+
currency_amount_original_value: original_value
|
|
1036
|
+
currency_amount_original_unit: original_unit
|
|
1037
|
+
currency_amount_preferred_currency_unit: preferred_currency_unit
|
|
1038
|
+
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
1039
|
+
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
1040
|
+
}
|
|
1041
|
+
channel_unsettled_balance: unsettled_balance {
|
|
1042
|
+
__typename
|
|
1043
|
+
currency_amount_original_value: original_value
|
|
1044
|
+
currency_amount_original_unit: original_unit
|
|
1045
|
+
currency_amount_preferred_currency_unit: preferred_currency_unit
|
|
1046
|
+
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
1047
|
+
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
1048
|
+
}
|
|
1049
|
+
channel_total_balance: total_balance {
|
|
1050
|
+
__typename
|
|
1051
|
+
currency_amount_original_value: original_value
|
|
1052
|
+
currency_amount_original_unit: original_unit
|
|
1053
|
+
currency_amount_preferred_currency_unit: preferred_currency_unit
|
|
1054
|
+
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
1055
|
+
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
1056
|
+
}
|
|
1057
|
+
channel_status: status
|
|
1058
|
+
channel_estimated_force_closure_wait_minutes: estimated_force_closure_wait_minutes
|
|
1059
|
+
channel_commit_fee: commit_fee {
|
|
1060
|
+
__typename
|
|
1061
|
+
currency_amount_original_value: original_value
|
|
1062
|
+
currency_amount_original_unit: original_unit
|
|
1063
|
+
currency_amount_preferred_currency_unit: preferred_currency_unit
|
|
1064
|
+
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
1065
|
+
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
1066
|
+
}
|
|
1067
|
+
channel_fees: fees {
|
|
1068
|
+
__typename
|
|
1069
|
+
channel_fees_base_fee: base_fee {
|
|
1070
|
+
__typename
|
|
1071
|
+
currency_amount_original_value: original_value
|
|
1072
|
+
currency_amount_original_unit: original_unit
|
|
1073
|
+
currency_amount_preferred_currency_unit: preferred_currency_unit
|
|
1074
|
+
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
1075
|
+
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
1076
|
+
}
|
|
1077
|
+
channel_fees_fee_rate_per_mil: fee_rate_per_mil
|
|
1078
|
+
}
|
|
1079
|
+
channel_remote_node: remote_node {
|
|
1080
|
+
id
|
|
1081
|
+
}
|
|
1082
|
+
channel_local_node: local_node {
|
|
1083
|
+
id
|
|
1084
|
+
}
|
|
1085
|
+
channel_short_channel_id: short_channel_id
|
|
1086
|
+
}
|
|
1087
|
+
}
|
|
1088
|
+
}
|
|
1089
|
+
}
|
|
1090
|
+
}
|
|
1091
|
+
`,
|
|
1092
|
+
variables: {
|
|
1093
|
+
entity_id: this.id,
|
|
1094
|
+
first,
|
|
1095
|
+
statuses,
|
|
1096
|
+
after
|
|
1097
|
+
},
|
|
1098
|
+
constructObject: (json) => {
|
|
1099
|
+
const connection = json["entity"]["channels"];
|
|
1100
|
+
return LightsparkNodeToChannelsConnectionFromJson(connection);
|
|
1101
|
+
}
|
|
1102
|
+
});
|
|
1103
|
+
}
|
|
1104
|
+
static getLightsparkNodeWithRemoteSigningQuery(id) {
|
|
989
1105
|
return {
|
|
990
1106
|
queryPayload: `
|
|
991
|
-
query
|
|
1107
|
+
query GetLightsparkNodeWithRemoteSigning($id: ID!) {
|
|
992
1108
|
entity(id: $id) {
|
|
993
|
-
... on
|
|
994
|
-
...
|
|
1109
|
+
... on LightsparkNodeWithRemoteSigning {
|
|
1110
|
+
...LightsparkNodeWithRemoteSigningFragment
|
|
995
1111
|
}
|
|
996
1112
|
}
|
|
997
1113
|
}
|
|
@@ -999,25 +1115,717 @@ query GetGraphNode($id: ID!) {
|
|
|
999
1115
|
${FRAGMENT4}
|
|
1000
1116
|
`,
|
|
1001
1117
|
variables: { id },
|
|
1002
|
-
constructObject: (data) =>
|
|
1118
|
+
constructObject: (data) => LightsparkNodeWithRemoteSigningFromJson(data.entity)
|
|
1003
1119
|
};
|
|
1004
1120
|
}
|
|
1005
1121
|
};
|
|
1006
|
-
var
|
|
1007
|
-
return new
|
|
1008
|
-
obj["
|
|
1009
|
-
obj["
|
|
1010
|
-
obj["
|
|
1011
|
-
BitcoinNetwork_default[obj["
|
|
1012
|
-
obj["
|
|
1013
|
-
"
|
|
1014
|
-
obj["
|
|
1015
|
-
|
|
1016
|
-
obj["
|
|
1122
|
+
var LightsparkNodeWithRemoteSigningFromJson = (obj) => {
|
|
1123
|
+
return new LightsparkNodeWithRemoteSigning(
|
|
1124
|
+
obj["lightspark_node_with_remote_signing_id"],
|
|
1125
|
+
obj["lightspark_node_with_remote_signing_created_at"],
|
|
1126
|
+
obj["lightspark_node_with_remote_signing_updated_at"],
|
|
1127
|
+
BitcoinNetwork_default[obj["lightspark_node_with_remote_signing_bitcoin_network"]] ?? BitcoinNetwork_default.FUTURE_VALUE,
|
|
1128
|
+
obj["lightspark_node_with_remote_signing_display_name"],
|
|
1129
|
+
obj["lightspark_node_with_remote_signing_owner"].id,
|
|
1130
|
+
obj["lightspark_node_with_remote_signing_uma_prescreening_utxos"],
|
|
1131
|
+
"LightsparkNodeWithRemoteSigning",
|
|
1132
|
+
obj["lightspark_node_with_remote_signing_alias"],
|
|
1133
|
+
obj["lightspark_node_with_remote_signing_color"],
|
|
1134
|
+
obj["lightspark_node_with_remote_signing_conductivity"],
|
|
1135
|
+
obj["lightspark_node_with_remote_signing_public_key"],
|
|
1136
|
+
!!obj["lightspark_node_with_remote_signing_status"] ? LightsparkNodeStatus_default[obj["lightspark_node_with_remote_signing_status"]] ?? LightsparkNodeStatus_default.FUTURE_VALUE : null,
|
|
1137
|
+
!!obj["lightspark_node_with_remote_signing_total_balance"] ? CurrencyAmountFromJson(
|
|
1138
|
+
obj["lightspark_node_with_remote_signing_total_balance"]
|
|
1139
|
+
) : void 0,
|
|
1140
|
+
!!obj["lightspark_node_with_remote_signing_total_local_balance"] ? CurrencyAmountFromJson(
|
|
1141
|
+
obj["lightspark_node_with_remote_signing_total_local_balance"]
|
|
1142
|
+
) : void 0,
|
|
1143
|
+
!!obj["lightspark_node_with_remote_signing_local_balance"] ? CurrencyAmountFromJson(
|
|
1144
|
+
obj["lightspark_node_with_remote_signing_local_balance"]
|
|
1145
|
+
) : void 0,
|
|
1146
|
+
!!obj["lightspark_node_with_remote_signing_remote_balance"] ? CurrencyAmountFromJson(
|
|
1147
|
+
obj["lightspark_node_with_remote_signing_remote_balance"]
|
|
1148
|
+
) : void 0,
|
|
1149
|
+
!!obj["lightspark_node_with_remote_signing_blockchain_balance"] ? BlockchainBalanceFromJson(
|
|
1150
|
+
obj["lightspark_node_with_remote_signing_blockchain_balance"]
|
|
1151
|
+
) : void 0
|
|
1152
|
+
);
|
|
1153
|
+
};
|
|
1154
|
+
var FRAGMENT4 = `
|
|
1155
|
+
fragment LightsparkNodeWithRemoteSigningFragment on LightsparkNodeWithRemoteSigning {
|
|
1156
|
+
__typename
|
|
1157
|
+
lightspark_node_with_remote_signing_id: id
|
|
1158
|
+
lightspark_node_with_remote_signing_created_at: created_at
|
|
1159
|
+
lightspark_node_with_remote_signing_updated_at: updated_at
|
|
1160
|
+
lightspark_node_with_remote_signing_alias: alias
|
|
1161
|
+
lightspark_node_with_remote_signing_bitcoin_network: bitcoin_network
|
|
1162
|
+
lightspark_node_with_remote_signing_color: color
|
|
1163
|
+
lightspark_node_with_remote_signing_conductivity: conductivity
|
|
1164
|
+
lightspark_node_with_remote_signing_display_name: display_name
|
|
1165
|
+
lightspark_node_with_remote_signing_public_key: public_key
|
|
1166
|
+
lightspark_node_with_remote_signing_owner: owner {
|
|
1167
|
+
id
|
|
1168
|
+
}
|
|
1169
|
+
lightspark_node_with_remote_signing_status: status
|
|
1170
|
+
lightspark_node_with_remote_signing_total_balance: total_balance {
|
|
1171
|
+
__typename
|
|
1172
|
+
currency_amount_original_value: original_value
|
|
1173
|
+
currency_amount_original_unit: original_unit
|
|
1174
|
+
currency_amount_preferred_currency_unit: preferred_currency_unit
|
|
1175
|
+
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
1176
|
+
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
1177
|
+
}
|
|
1178
|
+
lightspark_node_with_remote_signing_total_local_balance: total_local_balance {
|
|
1179
|
+
__typename
|
|
1180
|
+
currency_amount_original_value: original_value
|
|
1181
|
+
currency_amount_original_unit: original_unit
|
|
1182
|
+
currency_amount_preferred_currency_unit: preferred_currency_unit
|
|
1183
|
+
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
1184
|
+
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
1185
|
+
}
|
|
1186
|
+
lightspark_node_with_remote_signing_local_balance: local_balance {
|
|
1187
|
+
__typename
|
|
1188
|
+
currency_amount_original_value: original_value
|
|
1189
|
+
currency_amount_original_unit: original_unit
|
|
1190
|
+
currency_amount_preferred_currency_unit: preferred_currency_unit
|
|
1191
|
+
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
1192
|
+
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
1193
|
+
}
|
|
1194
|
+
lightspark_node_with_remote_signing_remote_balance: remote_balance {
|
|
1195
|
+
__typename
|
|
1196
|
+
currency_amount_original_value: original_value
|
|
1197
|
+
currency_amount_original_unit: original_unit
|
|
1198
|
+
currency_amount_preferred_currency_unit: preferred_currency_unit
|
|
1199
|
+
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
1200
|
+
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
1201
|
+
}
|
|
1202
|
+
lightspark_node_with_remote_signing_blockchain_balance: blockchain_balance {
|
|
1203
|
+
__typename
|
|
1204
|
+
blockchain_balance_total_balance: total_balance {
|
|
1205
|
+
__typename
|
|
1206
|
+
currency_amount_original_value: original_value
|
|
1207
|
+
currency_amount_original_unit: original_unit
|
|
1208
|
+
currency_amount_preferred_currency_unit: preferred_currency_unit
|
|
1209
|
+
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
1210
|
+
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
1211
|
+
}
|
|
1212
|
+
blockchain_balance_confirmed_balance: confirmed_balance {
|
|
1213
|
+
__typename
|
|
1214
|
+
currency_amount_original_value: original_value
|
|
1215
|
+
currency_amount_original_unit: original_unit
|
|
1216
|
+
currency_amount_preferred_currency_unit: preferred_currency_unit
|
|
1217
|
+
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
1218
|
+
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
1219
|
+
}
|
|
1220
|
+
blockchain_balance_unconfirmed_balance: unconfirmed_balance {
|
|
1221
|
+
__typename
|
|
1222
|
+
currency_amount_original_value: original_value
|
|
1223
|
+
currency_amount_original_unit: original_unit
|
|
1224
|
+
currency_amount_preferred_currency_unit: preferred_currency_unit
|
|
1225
|
+
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
1226
|
+
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
1227
|
+
}
|
|
1228
|
+
blockchain_balance_locked_balance: locked_balance {
|
|
1229
|
+
__typename
|
|
1230
|
+
currency_amount_original_value: original_value
|
|
1231
|
+
currency_amount_original_unit: original_unit
|
|
1232
|
+
currency_amount_preferred_currency_unit: preferred_currency_unit
|
|
1233
|
+
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
1234
|
+
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
1235
|
+
}
|
|
1236
|
+
blockchain_balance_required_reserve: required_reserve {
|
|
1237
|
+
__typename
|
|
1238
|
+
currency_amount_original_value: original_value
|
|
1239
|
+
currency_amount_original_unit: original_unit
|
|
1240
|
+
currency_amount_preferred_currency_unit: preferred_currency_unit
|
|
1241
|
+
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
1242
|
+
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
1243
|
+
}
|
|
1244
|
+
blockchain_balance_available_balance: available_balance {
|
|
1245
|
+
__typename
|
|
1246
|
+
currency_amount_original_value: original_value
|
|
1247
|
+
currency_amount_original_unit: original_unit
|
|
1248
|
+
currency_amount_preferred_currency_unit: preferred_currency_unit
|
|
1249
|
+
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
1250
|
+
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
1251
|
+
}
|
|
1252
|
+
}
|
|
1253
|
+
lightspark_node_with_remote_signing_uma_prescreening_utxos: uma_prescreening_utxos
|
|
1254
|
+
}`;
|
|
1255
|
+
var LightsparkNodeWithRemoteSigning_default = LightsparkNodeWithRemoteSigning;
|
|
1256
|
+
|
|
1257
|
+
// src/objects/LightsparkNode.ts
|
|
1258
|
+
var LightsparkNode = class {
|
|
1259
|
+
constructor(id, createdAt, updatedAt, bitcoinNetwork, displayName, ownerId, umaPrescreeningUtxos, typename, alias, color, conductivity, publicKey, status, totalBalance, totalLocalBalance, localBalance, remoteBalance, blockchainBalance) {
|
|
1260
|
+
this.id = id;
|
|
1261
|
+
this.createdAt = createdAt;
|
|
1262
|
+
this.updatedAt = updatedAt;
|
|
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
|
+
}
|
|
1295
|
+
}
|
|
1296
|
+
}
|
|
1297
|
+
}
|
|
1298
|
+
`,
|
|
1299
|
+
variables: { entity_id: this.id, first, types },
|
|
1300
|
+
constructObject: (json) => {
|
|
1301
|
+
const connection = json["entity"]["addresses"];
|
|
1302
|
+
return NodeToAddressesConnectionFromJson(connection);
|
|
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
|
+
}
|
|
1417
|
+
}
|
|
1418
|
+
}
|
|
1419
|
+
}
|
|
1420
|
+
`,
|
|
1421
|
+
variables: {
|
|
1422
|
+
entity_id: this.id,
|
|
1423
|
+
first,
|
|
1424
|
+
statuses,
|
|
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
|
|
1440
|
+
}
|
|
1441
|
+
}
|
|
1442
|
+
}
|
|
1443
|
+
|
|
1444
|
+
${FRAGMENT5}
|
|
1445
|
+
`,
|
|
1446
|
+
variables: { id },
|
|
1447
|
+
constructObject: (data) => LightsparkNodeFromJson(data.entity)
|
|
1448
|
+
};
|
|
1449
|
+
}
|
|
1450
|
+
};
|
|
1451
|
+
var LightsparkNodeFromJson = (obj) => {
|
|
1452
|
+
if (obj["__typename"] == "LightsparkNodeWithOSK") {
|
|
1453
|
+
return new LightsparkNodeWithOSK_default(
|
|
1454
|
+
obj["lightspark_node_with_o_s_k_id"],
|
|
1455
|
+
obj["lightspark_node_with_o_s_k_created_at"],
|
|
1456
|
+
obj["lightspark_node_with_o_s_k_updated_at"],
|
|
1457
|
+
BitcoinNetwork_default[obj["lightspark_node_with_o_s_k_bitcoin_network"]] ?? BitcoinNetwork_default.FUTURE_VALUE,
|
|
1458
|
+
obj["lightspark_node_with_o_s_k_display_name"],
|
|
1459
|
+
obj["lightspark_node_with_o_s_k_owner"].id,
|
|
1460
|
+
obj["lightspark_node_with_o_s_k_uma_prescreening_utxos"],
|
|
1461
|
+
"LightsparkNodeWithOSK",
|
|
1462
|
+
obj["lightspark_node_with_o_s_k_alias"],
|
|
1463
|
+
obj["lightspark_node_with_o_s_k_color"],
|
|
1464
|
+
obj["lightspark_node_with_o_s_k_conductivity"],
|
|
1465
|
+
obj["lightspark_node_with_o_s_k_public_key"],
|
|
1466
|
+
!!obj["lightspark_node_with_o_s_k_status"] ? LightsparkNodeStatus_default[obj["lightspark_node_with_o_s_k_status"]] ?? LightsparkNodeStatus_default.FUTURE_VALUE : null,
|
|
1467
|
+
!!obj["lightspark_node_with_o_s_k_total_balance"] ? CurrencyAmountFromJson(
|
|
1468
|
+
obj["lightspark_node_with_o_s_k_total_balance"]
|
|
1469
|
+
) : void 0,
|
|
1470
|
+
!!obj["lightspark_node_with_o_s_k_total_local_balance"] ? CurrencyAmountFromJson(
|
|
1471
|
+
obj["lightspark_node_with_o_s_k_total_local_balance"]
|
|
1472
|
+
) : void 0,
|
|
1473
|
+
!!obj["lightspark_node_with_o_s_k_local_balance"] ? CurrencyAmountFromJson(
|
|
1474
|
+
obj["lightspark_node_with_o_s_k_local_balance"]
|
|
1475
|
+
) : void 0,
|
|
1476
|
+
!!obj["lightspark_node_with_o_s_k_remote_balance"] ? CurrencyAmountFromJson(
|
|
1477
|
+
obj["lightspark_node_with_o_s_k_remote_balance"]
|
|
1478
|
+
) : void 0,
|
|
1479
|
+
!!obj["lightspark_node_with_o_s_k_blockchain_balance"] ? BlockchainBalanceFromJson(
|
|
1480
|
+
obj["lightspark_node_with_o_s_k_blockchain_balance"]
|
|
1481
|
+
) : void 0,
|
|
1482
|
+
!!obj["lightspark_node_with_o_s_k_encrypted_signing_private_key"] ? SecretFromJson(
|
|
1483
|
+
obj["lightspark_node_with_o_s_k_encrypted_signing_private_key"]
|
|
1484
|
+
) : void 0
|
|
1485
|
+
);
|
|
1486
|
+
}
|
|
1487
|
+
if (obj["__typename"] == "LightsparkNodeWithRemoteSigning") {
|
|
1488
|
+
return new LightsparkNodeWithRemoteSigning_default(
|
|
1489
|
+
obj["lightspark_node_with_remote_signing_id"],
|
|
1490
|
+
obj["lightspark_node_with_remote_signing_created_at"],
|
|
1491
|
+
obj["lightspark_node_with_remote_signing_updated_at"],
|
|
1492
|
+
BitcoinNetwork_default[obj["lightspark_node_with_remote_signing_bitcoin_network"]] ?? BitcoinNetwork_default.FUTURE_VALUE,
|
|
1493
|
+
obj["lightspark_node_with_remote_signing_display_name"],
|
|
1494
|
+
obj["lightspark_node_with_remote_signing_owner"].id,
|
|
1495
|
+
obj["lightspark_node_with_remote_signing_uma_prescreening_utxos"],
|
|
1496
|
+
"LightsparkNodeWithRemoteSigning",
|
|
1497
|
+
obj["lightspark_node_with_remote_signing_alias"],
|
|
1498
|
+
obj["lightspark_node_with_remote_signing_color"],
|
|
1499
|
+
obj["lightspark_node_with_remote_signing_conductivity"],
|
|
1500
|
+
obj["lightspark_node_with_remote_signing_public_key"],
|
|
1501
|
+
!!obj["lightspark_node_with_remote_signing_status"] ? LightsparkNodeStatus_default[obj["lightspark_node_with_remote_signing_status"]] ?? LightsparkNodeStatus_default.FUTURE_VALUE : null,
|
|
1502
|
+
!!obj["lightspark_node_with_remote_signing_total_balance"] ? CurrencyAmountFromJson(
|
|
1503
|
+
obj["lightspark_node_with_remote_signing_total_balance"]
|
|
1504
|
+
) : void 0,
|
|
1505
|
+
!!obj["lightspark_node_with_remote_signing_total_local_balance"] ? CurrencyAmountFromJson(
|
|
1506
|
+
obj["lightspark_node_with_remote_signing_total_local_balance"]
|
|
1507
|
+
) : void 0,
|
|
1508
|
+
!!obj["lightspark_node_with_remote_signing_local_balance"] ? CurrencyAmountFromJson(
|
|
1509
|
+
obj["lightspark_node_with_remote_signing_local_balance"]
|
|
1510
|
+
) : void 0,
|
|
1511
|
+
!!obj["lightspark_node_with_remote_signing_remote_balance"] ? CurrencyAmountFromJson(
|
|
1512
|
+
obj["lightspark_node_with_remote_signing_remote_balance"]
|
|
1513
|
+
) : void 0,
|
|
1514
|
+
!!obj["lightspark_node_with_remote_signing_blockchain_balance"] ? BlockchainBalanceFromJson(
|
|
1515
|
+
obj["lightspark_node_with_remote_signing_blockchain_balance"]
|
|
1516
|
+
) : void 0
|
|
1517
|
+
);
|
|
1518
|
+
}
|
|
1519
|
+
throw new import_core.LightsparkException(
|
|
1520
|
+
"DeserializationError",
|
|
1521
|
+
`Couldn't find a concrete type for interface LightsparkNode corresponding to the typename=${obj["__typename"]}`
|
|
1522
|
+
);
|
|
1523
|
+
};
|
|
1524
|
+
var FRAGMENT5 = `
|
|
1525
|
+
fragment LightsparkNodeFragment on LightsparkNode {
|
|
1526
|
+
__typename
|
|
1527
|
+
... on LightsparkNodeWithOSK {
|
|
1528
|
+
__typename
|
|
1529
|
+
lightspark_node_with_o_s_k_id: id
|
|
1530
|
+
lightspark_node_with_o_s_k_created_at: created_at
|
|
1531
|
+
lightspark_node_with_o_s_k_updated_at: updated_at
|
|
1532
|
+
lightspark_node_with_o_s_k_alias: alias
|
|
1533
|
+
lightspark_node_with_o_s_k_bitcoin_network: bitcoin_network
|
|
1534
|
+
lightspark_node_with_o_s_k_color: color
|
|
1535
|
+
lightspark_node_with_o_s_k_conductivity: conductivity
|
|
1536
|
+
lightspark_node_with_o_s_k_display_name: display_name
|
|
1537
|
+
lightspark_node_with_o_s_k_public_key: public_key
|
|
1538
|
+
lightspark_node_with_o_s_k_owner: owner {
|
|
1539
|
+
id
|
|
1540
|
+
}
|
|
1541
|
+
lightspark_node_with_o_s_k_status: status
|
|
1542
|
+
lightspark_node_with_o_s_k_total_balance: total_balance {
|
|
1543
|
+
__typename
|
|
1544
|
+
currency_amount_original_value: original_value
|
|
1545
|
+
currency_amount_original_unit: original_unit
|
|
1546
|
+
currency_amount_preferred_currency_unit: preferred_currency_unit
|
|
1547
|
+
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
1548
|
+
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
1549
|
+
}
|
|
1550
|
+
lightspark_node_with_o_s_k_total_local_balance: total_local_balance {
|
|
1551
|
+
__typename
|
|
1552
|
+
currency_amount_original_value: original_value
|
|
1553
|
+
currency_amount_original_unit: original_unit
|
|
1554
|
+
currency_amount_preferred_currency_unit: preferred_currency_unit
|
|
1555
|
+
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
1556
|
+
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
1557
|
+
}
|
|
1558
|
+
lightspark_node_with_o_s_k_local_balance: local_balance {
|
|
1559
|
+
__typename
|
|
1560
|
+
currency_amount_original_value: original_value
|
|
1561
|
+
currency_amount_original_unit: original_unit
|
|
1562
|
+
currency_amount_preferred_currency_unit: preferred_currency_unit
|
|
1563
|
+
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
1564
|
+
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
1565
|
+
}
|
|
1566
|
+
lightspark_node_with_o_s_k_remote_balance: remote_balance {
|
|
1567
|
+
__typename
|
|
1568
|
+
currency_amount_original_value: original_value
|
|
1569
|
+
currency_amount_original_unit: original_unit
|
|
1570
|
+
currency_amount_preferred_currency_unit: preferred_currency_unit
|
|
1571
|
+
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
1572
|
+
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
1573
|
+
}
|
|
1574
|
+
lightspark_node_with_o_s_k_blockchain_balance: blockchain_balance {
|
|
1575
|
+
__typename
|
|
1576
|
+
blockchain_balance_total_balance: total_balance {
|
|
1577
|
+
__typename
|
|
1578
|
+
currency_amount_original_value: original_value
|
|
1579
|
+
currency_amount_original_unit: original_unit
|
|
1580
|
+
currency_amount_preferred_currency_unit: preferred_currency_unit
|
|
1581
|
+
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
1582
|
+
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
1583
|
+
}
|
|
1584
|
+
blockchain_balance_confirmed_balance: confirmed_balance {
|
|
1585
|
+
__typename
|
|
1586
|
+
currency_amount_original_value: original_value
|
|
1587
|
+
currency_amount_original_unit: original_unit
|
|
1588
|
+
currency_amount_preferred_currency_unit: preferred_currency_unit
|
|
1589
|
+
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
1590
|
+
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
1591
|
+
}
|
|
1592
|
+
blockchain_balance_unconfirmed_balance: unconfirmed_balance {
|
|
1593
|
+
__typename
|
|
1594
|
+
currency_amount_original_value: original_value
|
|
1595
|
+
currency_amount_original_unit: original_unit
|
|
1596
|
+
currency_amount_preferred_currency_unit: preferred_currency_unit
|
|
1597
|
+
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
1598
|
+
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
1599
|
+
}
|
|
1600
|
+
blockchain_balance_locked_balance: locked_balance {
|
|
1601
|
+
__typename
|
|
1602
|
+
currency_amount_original_value: original_value
|
|
1603
|
+
currency_amount_original_unit: original_unit
|
|
1604
|
+
currency_amount_preferred_currency_unit: preferred_currency_unit
|
|
1605
|
+
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
1606
|
+
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
1607
|
+
}
|
|
1608
|
+
blockchain_balance_required_reserve: required_reserve {
|
|
1609
|
+
__typename
|
|
1610
|
+
currency_amount_original_value: original_value
|
|
1611
|
+
currency_amount_original_unit: original_unit
|
|
1612
|
+
currency_amount_preferred_currency_unit: preferred_currency_unit
|
|
1613
|
+
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
1614
|
+
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
1615
|
+
}
|
|
1616
|
+
blockchain_balance_available_balance: available_balance {
|
|
1617
|
+
__typename
|
|
1618
|
+
currency_amount_original_value: original_value
|
|
1619
|
+
currency_amount_original_unit: original_unit
|
|
1620
|
+
currency_amount_preferred_currency_unit: preferred_currency_unit
|
|
1621
|
+
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
1622
|
+
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
1623
|
+
}
|
|
1624
|
+
}
|
|
1625
|
+
lightspark_node_with_o_s_k_uma_prescreening_utxos: uma_prescreening_utxos
|
|
1626
|
+
lightspark_node_with_o_s_k_encrypted_signing_private_key: encrypted_signing_private_key {
|
|
1627
|
+
__typename
|
|
1628
|
+
secret_encrypted_value: encrypted_value
|
|
1629
|
+
secret_cipher: cipher
|
|
1630
|
+
}
|
|
1631
|
+
}
|
|
1632
|
+
... on LightsparkNodeWithRemoteSigning {
|
|
1633
|
+
__typename
|
|
1634
|
+
lightspark_node_with_remote_signing_id: id
|
|
1635
|
+
lightspark_node_with_remote_signing_created_at: created_at
|
|
1636
|
+
lightspark_node_with_remote_signing_updated_at: updated_at
|
|
1637
|
+
lightspark_node_with_remote_signing_alias: alias
|
|
1638
|
+
lightspark_node_with_remote_signing_bitcoin_network: bitcoin_network
|
|
1639
|
+
lightspark_node_with_remote_signing_color: color
|
|
1640
|
+
lightspark_node_with_remote_signing_conductivity: conductivity
|
|
1641
|
+
lightspark_node_with_remote_signing_display_name: display_name
|
|
1642
|
+
lightspark_node_with_remote_signing_public_key: public_key
|
|
1643
|
+
lightspark_node_with_remote_signing_owner: owner {
|
|
1644
|
+
id
|
|
1645
|
+
}
|
|
1646
|
+
lightspark_node_with_remote_signing_status: status
|
|
1647
|
+
lightspark_node_with_remote_signing_total_balance: total_balance {
|
|
1648
|
+
__typename
|
|
1649
|
+
currency_amount_original_value: original_value
|
|
1650
|
+
currency_amount_original_unit: original_unit
|
|
1651
|
+
currency_amount_preferred_currency_unit: preferred_currency_unit
|
|
1652
|
+
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
1653
|
+
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
1654
|
+
}
|
|
1655
|
+
lightspark_node_with_remote_signing_total_local_balance: total_local_balance {
|
|
1656
|
+
__typename
|
|
1657
|
+
currency_amount_original_value: original_value
|
|
1658
|
+
currency_amount_original_unit: original_unit
|
|
1659
|
+
currency_amount_preferred_currency_unit: preferred_currency_unit
|
|
1660
|
+
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
1661
|
+
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
1662
|
+
}
|
|
1663
|
+
lightspark_node_with_remote_signing_local_balance: local_balance {
|
|
1664
|
+
__typename
|
|
1665
|
+
currency_amount_original_value: original_value
|
|
1666
|
+
currency_amount_original_unit: original_unit
|
|
1667
|
+
currency_amount_preferred_currency_unit: preferred_currency_unit
|
|
1668
|
+
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
1669
|
+
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
1670
|
+
}
|
|
1671
|
+
lightspark_node_with_remote_signing_remote_balance: remote_balance {
|
|
1672
|
+
__typename
|
|
1673
|
+
currency_amount_original_value: original_value
|
|
1674
|
+
currency_amount_original_unit: original_unit
|
|
1675
|
+
currency_amount_preferred_currency_unit: preferred_currency_unit
|
|
1676
|
+
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
1677
|
+
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
1678
|
+
}
|
|
1679
|
+
lightspark_node_with_remote_signing_blockchain_balance: blockchain_balance {
|
|
1680
|
+
__typename
|
|
1681
|
+
blockchain_balance_total_balance: total_balance {
|
|
1682
|
+
__typename
|
|
1683
|
+
currency_amount_original_value: original_value
|
|
1684
|
+
currency_amount_original_unit: original_unit
|
|
1685
|
+
currency_amount_preferred_currency_unit: preferred_currency_unit
|
|
1686
|
+
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
1687
|
+
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
1688
|
+
}
|
|
1689
|
+
blockchain_balance_confirmed_balance: confirmed_balance {
|
|
1690
|
+
__typename
|
|
1691
|
+
currency_amount_original_value: original_value
|
|
1692
|
+
currency_amount_original_unit: original_unit
|
|
1693
|
+
currency_amount_preferred_currency_unit: preferred_currency_unit
|
|
1694
|
+
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
1695
|
+
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
1696
|
+
}
|
|
1697
|
+
blockchain_balance_unconfirmed_balance: unconfirmed_balance {
|
|
1698
|
+
__typename
|
|
1699
|
+
currency_amount_original_value: original_value
|
|
1700
|
+
currency_amount_original_unit: original_unit
|
|
1701
|
+
currency_amount_preferred_currency_unit: preferred_currency_unit
|
|
1702
|
+
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
1703
|
+
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
1704
|
+
}
|
|
1705
|
+
blockchain_balance_locked_balance: locked_balance {
|
|
1706
|
+
__typename
|
|
1707
|
+
currency_amount_original_value: original_value
|
|
1708
|
+
currency_amount_original_unit: original_unit
|
|
1709
|
+
currency_amount_preferred_currency_unit: preferred_currency_unit
|
|
1710
|
+
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
1711
|
+
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
1712
|
+
}
|
|
1713
|
+
blockchain_balance_required_reserve: required_reserve {
|
|
1714
|
+
__typename
|
|
1715
|
+
currency_amount_original_value: original_value
|
|
1716
|
+
currency_amount_original_unit: original_unit
|
|
1717
|
+
currency_amount_preferred_currency_unit: preferred_currency_unit
|
|
1718
|
+
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
1719
|
+
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
1720
|
+
}
|
|
1721
|
+
blockchain_balance_available_balance: available_balance {
|
|
1722
|
+
__typename
|
|
1723
|
+
currency_amount_original_value: original_value
|
|
1724
|
+
currency_amount_original_unit: original_unit
|
|
1725
|
+
currency_amount_preferred_currency_unit: preferred_currency_unit
|
|
1726
|
+
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
1727
|
+
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
1728
|
+
}
|
|
1729
|
+
}
|
|
1730
|
+
lightspark_node_with_remote_signing_uma_prescreening_utxos: uma_prescreening_utxos
|
|
1731
|
+
}
|
|
1732
|
+
}`;
|
|
1733
|
+
var LightsparkNode_default = LightsparkNode;
|
|
1734
|
+
|
|
1735
|
+
// src/objects/AccountToNodesConnection.ts
|
|
1736
|
+
var AccountToNodesConnectionFromJson = (obj) => {
|
|
1737
|
+
return {
|
|
1738
|
+
count: obj["account_to_nodes_connection_count"],
|
|
1739
|
+
pageInfo: PageInfoFromJson(obj["account_to_nodes_connection_page_info"]),
|
|
1740
|
+
entities: obj["account_to_nodes_connection_entities"].map(
|
|
1741
|
+
(e) => LightsparkNodeFromJson(e)
|
|
1742
|
+
),
|
|
1743
|
+
typename: "AccountToNodesConnection"
|
|
1744
|
+
};
|
|
1745
|
+
};
|
|
1746
|
+
|
|
1747
|
+
// src/objects/PaymentRequest.ts
|
|
1748
|
+
var import_core3 = require("@lightsparkdev/core");
|
|
1749
|
+
|
|
1750
|
+
// src/objects/Node.ts
|
|
1751
|
+
var import_core2 = require("@lightsparkdev/core");
|
|
1752
|
+
var import_auto_bind7 = __toESM(require("auto-bind"), 1);
|
|
1753
|
+
|
|
1754
|
+
// src/objects/GraphNode.ts
|
|
1755
|
+
var import_auto_bind6 = __toESM(require("auto-bind"), 1);
|
|
1756
|
+
var GraphNode = class {
|
|
1757
|
+
constructor(id, createdAt, updatedAt, bitcoinNetwork, displayName, typename, alias, color, conductivity, publicKey) {
|
|
1758
|
+
this.id = id;
|
|
1759
|
+
this.createdAt = createdAt;
|
|
1760
|
+
this.updatedAt = updatedAt;
|
|
1761
|
+
this.bitcoinNetwork = bitcoinNetwork;
|
|
1762
|
+
this.displayName = displayName;
|
|
1763
|
+
this.typename = typename;
|
|
1764
|
+
this.alias = alias;
|
|
1765
|
+
this.color = color;
|
|
1766
|
+
this.conductivity = conductivity;
|
|
1767
|
+
this.publicKey = publicKey;
|
|
1768
|
+
(0, import_auto_bind6.default)(this);
|
|
1769
|
+
}
|
|
1770
|
+
async getAddresses(client, first = void 0, types = void 0) {
|
|
1771
|
+
return await client.executeRawQuery({
|
|
1772
|
+
queryPayload: `
|
|
1773
|
+
query FetchNodeToAddressesConnection($entity_id: ID!, $first: Int, $types: [NodeAddressType!]) {
|
|
1774
|
+
entity(id: $entity_id) {
|
|
1775
|
+
... on GraphNode {
|
|
1776
|
+
addresses(, first: $first, types: $types) {
|
|
1777
|
+
__typename
|
|
1778
|
+
node_to_addresses_connection_count: count
|
|
1779
|
+
node_to_addresses_connection_entities: entities {
|
|
1780
|
+
__typename
|
|
1781
|
+
node_address_address: address
|
|
1782
|
+
node_address_type: type
|
|
1783
|
+
}
|
|
1784
|
+
}
|
|
1785
|
+
}
|
|
1786
|
+
}
|
|
1787
|
+
}
|
|
1788
|
+
`,
|
|
1789
|
+
variables: { entity_id: this.id, first, types },
|
|
1790
|
+
constructObject: (json) => {
|
|
1791
|
+
const connection = json["entity"]["addresses"];
|
|
1792
|
+
return NodeToAddressesConnectionFromJson(connection);
|
|
1793
|
+
}
|
|
1794
|
+
});
|
|
1795
|
+
}
|
|
1796
|
+
static getGraphNodeQuery(id) {
|
|
1797
|
+
return {
|
|
1798
|
+
queryPayload: `
|
|
1799
|
+
query GetGraphNode($id: ID!) {
|
|
1800
|
+
entity(id: $id) {
|
|
1801
|
+
... on GraphNode {
|
|
1802
|
+
...GraphNodeFragment
|
|
1803
|
+
}
|
|
1804
|
+
}
|
|
1805
|
+
}
|
|
1806
|
+
|
|
1807
|
+
${FRAGMENT6}
|
|
1808
|
+
`,
|
|
1809
|
+
variables: { id },
|
|
1810
|
+
constructObject: (data) => GraphNodeFromJson(data.entity)
|
|
1811
|
+
};
|
|
1812
|
+
}
|
|
1813
|
+
};
|
|
1814
|
+
var GraphNodeFromJson = (obj) => {
|
|
1815
|
+
return new GraphNode(
|
|
1816
|
+
obj["graph_node_id"],
|
|
1817
|
+
obj["graph_node_created_at"],
|
|
1818
|
+
obj["graph_node_updated_at"],
|
|
1819
|
+
BitcoinNetwork_default[obj["graph_node_bitcoin_network"]] ?? BitcoinNetwork_default.FUTURE_VALUE,
|
|
1820
|
+
obj["graph_node_display_name"],
|
|
1821
|
+
"GraphNode",
|
|
1822
|
+
obj["graph_node_alias"],
|
|
1823
|
+
obj["graph_node_color"],
|
|
1824
|
+
obj["graph_node_conductivity"],
|
|
1017
1825
|
obj["graph_node_public_key"]
|
|
1018
1826
|
);
|
|
1019
1827
|
};
|
|
1020
|
-
var
|
|
1828
|
+
var FRAGMENT6 = `
|
|
1021
1829
|
fragment GraphNodeFragment on GraphNode {
|
|
1022
1830
|
__typename
|
|
1023
1831
|
graph_node_id: id
|
|
@@ -1045,7 +1853,7 @@ var Node = class {
|
|
|
1045
1853
|
this.color = color;
|
|
1046
1854
|
this.conductivity = conductivity;
|
|
1047
1855
|
this.publicKey = publicKey;
|
|
1048
|
-
(0,
|
|
1856
|
+
(0, import_auto_bind7.default)(this);
|
|
1049
1857
|
}
|
|
1050
1858
|
async getAddresses(client, first = void 0, types = void 0) {
|
|
1051
1859
|
return await client.executeRawQuery({
|
|
@@ -1084,7 +1892,7 @@ query GetNode($id: ID!) {
|
|
|
1084
1892
|
}
|
|
1085
1893
|
}
|
|
1086
1894
|
|
|
1087
|
-
${
|
|
1895
|
+
${FRAGMENT7}
|
|
1088
1896
|
`,
|
|
1089
1897
|
variables: { id },
|
|
1090
1898
|
constructObject: (data) => NodeFromJson(data.entity)
|
|
@@ -1106,36 +1914,79 @@ var NodeFromJson = (obj) => {
|
|
|
1106
1914
|
obj["graph_node_public_key"]
|
|
1107
1915
|
);
|
|
1108
1916
|
}
|
|
1109
|
-
if (obj["__typename"] == "
|
|
1110
|
-
return new
|
|
1111
|
-
obj["
|
|
1112
|
-
obj["
|
|
1113
|
-
obj["
|
|
1114
|
-
BitcoinNetwork_default[obj["
|
|
1115
|
-
obj["
|
|
1116
|
-
obj["
|
|
1117
|
-
obj["
|
|
1118
|
-
"
|
|
1119
|
-
obj["
|
|
1120
|
-
obj["
|
|
1121
|
-
obj["
|
|
1122
|
-
obj["
|
|
1123
|
-
!!obj["
|
|
1124
|
-
!!obj["
|
|
1125
|
-
|
|
1126
|
-
|
|
1127
|
-
!!obj["
|
|
1128
|
-
|
|
1129
|
-
|
|
1130
|
-
!!obj["
|
|
1917
|
+
if (obj["__typename"] == "LightsparkNodeWithOSK") {
|
|
1918
|
+
return new LightsparkNodeWithOSK_default(
|
|
1919
|
+
obj["lightspark_node_with_o_s_k_id"],
|
|
1920
|
+
obj["lightspark_node_with_o_s_k_created_at"],
|
|
1921
|
+
obj["lightspark_node_with_o_s_k_updated_at"],
|
|
1922
|
+
BitcoinNetwork_default[obj["lightspark_node_with_o_s_k_bitcoin_network"]] ?? BitcoinNetwork_default.FUTURE_VALUE,
|
|
1923
|
+
obj["lightspark_node_with_o_s_k_display_name"],
|
|
1924
|
+
obj["lightspark_node_with_o_s_k_owner"].id,
|
|
1925
|
+
obj["lightspark_node_with_o_s_k_uma_prescreening_utxos"],
|
|
1926
|
+
"LightsparkNodeWithOSK",
|
|
1927
|
+
obj["lightspark_node_with_o_s_k_alias"],
|
|
1928
|
+
obj["lightspark_node_with_o_s_k_color"],
|
|
1929
|
+
obj["lightspark_node_with_o_s_k_conductivity"],
|
|
1930
|
+
obj["lightspark_node_with_o_s_k_public_key"],
|
|
1931
|
+
!!obj["lightspark_node_with_o_s_k_status"] ? LightsparkNodeStatus_default[obj["lightspark_node_with_o_s_k_status"]] ?? LightsparkNodeStatus_default.FUTURE_VALUE : null,
|
|
1932
|
+
!!obj["lightspark_node_with_o_s_k_total_balance"] ? CurrencyAmountFromJson(
|
|
1933
|
+
obj["lightspark_node_with_o_s_k_total_balance"]
|
|
1934
|
+
) : void 0,
|
|
1935
|
+
!!obj["lightspark_node_with_o_s_k_total_local_balance"] ? CurrencyAmountFromJson(
|
|
1936
|
+
obj["lightspark_node_with_o_s_k_total_local_balance"]
|
|
1937
|
+
) : void 0,
|
|
1938
|
+
!!obj["lightspark_node_with_o_s_k_local_balance"] ? CurrencyAmountFromJson(
|
|
1939
|
+
obj["lightspark_node_with_o_s_k_local_balance"]
|
|
1940
|
+
) : void 0,
|
|
1941
|
+
!!obj["lightspark_node_with_o_s_k_remote_balance"] ? CurrencyAmountFromJson(
|
|
1942
|
+
obj["lightspark_node_with_o_s_k_remote_balance"]
|
|
1943
|
+
) : void 0,
|
|
1944
|
+
!!obj["lightspark_node_with_o_s_k_blockchain_balance"] ? BlockchainBalanceFromJson(
|
|
1945
|
+
obj["lightspark_node_with_o_s_k_blockchain_balance"]
|
|
1946
|
+
) : void 0,
|
|
1947
|
+
!!obj["lightspark_node_with_o_s_k_encrypted_signing_private_key"] ? SecretFromJson(
|
|
1948
|
+
obj["lightspark_node_with_o_s_k_encrypted_signing_private_key"]
|
|
1949
|
+
) : void 0
|
|
1950
|
+
);
|
|
1951
|
+
}
|
|
1952
|
+
if (obj["__typename"] == "LightsparkNodeWithRemoteSigning") {
|
|
1953
|
+
return new LightsparkNodeWithRemoteSigning_default(
|
|
1954
|
+
obj["lightspark_node_with_remote_signing_id"],
|
|
1955
|
+
obj["lightspark_node_with_remote_signing_created_at"],
|
|
1956
|
+
obj["lightspark_node_with_remote_signing_updated_at"],
|
|
1957
|
+
BitcoinNetwork_default[obj["lightspark_node_with_remote_signing_bitcoin_network"]] ?? BitcoinNetwork_default.FUTURE_VALUE,
|
|
1958
|
+
obj["lightspark_node_with_remote_signing_display_name"],
|
|
1959
|
+
obj["lightspark_node_with_remote_signing_owner"].id,
|
|
1960
|
+
obj["lightspark_node_with_remote_signing_uma_prescreening_utxos"],
|
|
1961
|
+
"LightsparkNodeWithRemoteSigning",
|
|
1962
|
+
obj["lightspark_node_with_remote_signing_alias"],
|
|
1963
|
+
obj["lightspark_node_with_remote_signing_color"],
|
|
1964
|
+
obj["lightspark_node_with_remote_signing_conductivity"],
|
|
1965
|
+
obj["lightspark_node_with_remote_signing_public_key"],
|
|
1966
|
+
!!obj["lightspark_node_with_remote_signing_status"] ? LightsparkNodeStatus_default[obj["lightspark_node_with_remote_signing_status"]] ?? LightsparkNodeStatus_default.FUTURE_VALUE : null,
|
|
1967
|
+
!!obj["lightspark_node_with_remote_signing_total_balance"] ? CurrencyAmountFromJson(
|
|
1968
|
+
obj["lightspark_node_with_remote_signing_total_balance"]
|
|
1969
|
+
) : void 0,
|
|
1970
|
+
!!obj["lightspark_node_with_remote_signing_total_local_balance"] ? CurrencyAmountFromJson(
|
|
1971
|
+
obj["lightspark_node_with_remote_signing_total_local_balance"]
|
|
1972
|
+
) : void 0,
|
|
1973
|
+
!!obj["lightspark_node_with_remote_signing_local_balance"] ? CurrencyAmountFromJson(
|
|
1974
|
+
obj["lightspark_node_with_remote_signing_local_balance"]
|
|
1975
|
+
) : void 0,
|
|
1976
|
+
!!obj["lightspark_node_with_remote_signing_remote_balance"] ? CurrencyAmountFromJson(
|
|
1977
|
+
obj["lightspark_node_with_remote_signing_remote_balance"]
|
|
1978
|
+
) : void 0,
|
|
1979
|
+
!!obj["lightspark_node_with_remote_signing_blockchain_balance"] ? BlockchainBalanceFromJson(
|
|
1980
|
+
obj["lightspark_node_with_remote_signing_blockchain_balance"]
|
|
1981
|
+
) : void 0
|
|
1131
1982
|
);
|
|
1132
1983
|
}
|
|
1133
|
-
throw new
|
|
1984
|
+
throw new import_core2.LightsparkException(
|
|
1134
1985
|
"DeserializationError",
|
|
1135
1986
|
`Couldn't find a concrete type for interface Node corresponding to the typename=${obj["__typename"]}`
|
|
1136
1987
|
);
|
|
1137
1988
|
};
|
|
1138
|
-
var
|
|
1989
|
+
var FRAGMENT7 = `
|
|
1139
1990
|
fragment NodeFragment on Node {
|
|
1140
1991
|
__typename
|
|
1141
1992
|
... on GraphNode {
|
|
@@ -1150,24 +2001,54 @@ fragment NodeFragment on Node {
|
|
|
1150
2001
|
graph_node_display_name: display_name
|
|
1151
2002
|
graph_node_public_key: public_key
|
|
1152
2003
|
}
|
|
1153
|
-
... on
|
|
2004
|
+
... on LightsparkNodeWithOSK {
|
|
1154
2005
|
__typename
|
|
1155
|
-
|
|
1156
|
-
|
|
1157
|
-
|
|
1158
|
-
|
|
1159
|
-
|
|
1160
|
-
|
|
1161
|
-
|
|
1162
|
-
|
|
1163
|
-
|
|
1164
|
-
|
|
2006
|
+
lightspark_node_with_o_s_k_id: id
|
|
2007
|
+
lightspark_node_with_o_s_k_created_at: created_at
|
|
2008
|
+
lightspark_node_with_o_s_k_updated_at: updated_at
|
|
2009
|
+
lightspark_node_with_o_s_k_alias: alias
|
|
2010
|
+
lightspark_node_with_o_s_k_bitcoin_network: bitcoin_network
|
|
2011
|
+
lightspark_node_with_o_s_k_color: color
|
|
2012
|
+
lightspark_node_with_o_s_k_conductivity: conductivity
|
|
2013
|
+
lightspark_node_with_o_s_k_display_name: display_name
|
|
2014
|
+
lightspark_node_with_o_s_k_public_key: public_key
|
|
2015
|
+
lightspark_node_with_o_s_k_owner: owner {
|
|
1165
2016
|
id
|
|
1166
2017
|
}
|
|
1167
|
-
|
|
1168
|
-
|
|
2018
|
+
lightspark_node_with_o_s_k_status: status
|
|
2019
|
+
lightspark_node_with_o_s_k_total_balance: total_balance {
|
|
2020
|
+
__typename
|
|
2021
|
+
currency_amount_original_value: original_value
|
|
2022
|
+
currency_amount_original_unit: original_unit
|
|
2023
|
+
currency_amount_preferred_currency_unit: preferred_currency_unit
|
|
2024
|
+
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
2025
|
+
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
2026
|
+
}
|
|
2027
|
+
lightspark_node_with_o_s_k_total_local_balance: total_local_balance {
|
|
2028
|
+
__typename
|
|
2029
|
+
currency_amount_original_value: original_value
|
|
2030
|
+
currency_amount_original_unit: original_unit
|
|
2031
|
+
currency_amount_preferred_currency_unit: preferred_currency_unit
|
|
2032
|
+
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
2033
|
+
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
2034
|
+
}
|
|
2035
|
+
lightspark_node_with_o_s_k_local_balance: local_balance {
|
|
2036
|
+
__typename
|
|
2037
|
+
currency_amount_original_value: original_value
|
|
2038
|
+
currency_amount_original_unit: original_unit
|
|
2039
|
+
currency_amount_preferred_currency_unit: preferred_currency_unit
|
|
2040
|
+
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
2041
|
+
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
2042
|
+
}
|
|
2043
|
+
lightspark_node_with_o_s_k_remote_balance: remote_balance {
|
|
2044
|
+
__typename
|
|
2045
|
+
currency_amount_original_value: original_value
|
|
2046
|
+
currency_amount_original_unit: original_unit
|
|
2047
|
+
currency_amount_preferred_currency_unit: preferred_currency_unit
|
|
2048
|
+
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
2049
|
+
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
1169
2050
|
}
|
|
1170
|
-
|
|
2051
|
+
lightspark_node_with_o_s_k_blockchain_balance: blockchain_balance {
|
|
1171
2052
|
__typename
|
|
1172
2053
|
blockchain_balance_total_balance: total_balance {
|
|
1173
2054
|
__typename
|
|
@@ -1218,12 +2099,29 @@ fragment NodeFragment on Node {
|
|
|
1218
2099
|
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
1219
2100
|
}
|
|
1220
2101
|
}
|
|
1221
|
-
|
|
2102
|
+
lightspark_node_with_o_s_k_uma_prescreening_utxos: uma_prescreening_utxos
|
|
2103
|
+
lightspark_node_with_o_s_k_encrypted_signing_private_key: encrypted_signing_private_key {
|
|
1222
2104
|
__typename
|
|
1223
2105
|
secret_encrypted_value: encrypted_value
|
|
1224
2106
|
secret_cipher: cipher
|
|
1225
2107
|
}
|
|
1226
|
-
|
|
2108
|
+
}
|
|
2109
|
+
... on LightsparkNodeWithRemoteSigning {
|
|
2110
|
+
__typename
|
|
2111
|
+
lightspark_node_with_remote_signing_id: id
|
|
2112
|
+
lightspark_node_with_remote_signing_created_at: created_at
|
|
2113
|
+
lightspark_node_with_remote_signing_updated_at: updated_at
|
|
2114
|
+
lightspark_node_with_remote_signing_alias: alias
|
|
2115
|
+
lightspark_node_with_remote_signing_bitcoin_network: bitcoin_network
|
|
2116
|
+
lightspark_node_with_remote_signing_color: color
|
|
2117
|
+
lightspark_node_with_remote_signing_conductivity: conductivity
|
|
2118
|
+
lightspark_node_with_remote_signing_display_name: display_name
|
|
2119
|
+
lightspark_node_with_remote_signing_public_key: public_key
|
|
2120
|
+
lightspark_node_with_remote_signing_owner: owner {
|
|
2121
|
+
id
|
|
2122
|
+
}
|
|
2123
|
+
lightspark_node_with_remote_signing_status: status
|
|
2124
|
+
lightspark_node_with_remote_signing_total_balance: total_balance {
|
|
1227
2125
|
__typename
|
|
1228
2126
|
currency_amount_original_value: original_value
|
|
1229
2127
|
currency_amount_original_unit: original_unit
|
|
@@ -1231,7 +2129,7 @@ fragment NodeFragment on Node {
|
|
|
1231
2129
|
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
1232
2130
|
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
1233
2131
|
}
|
|
1234
|
-
|
|
2132
|
+
lightspark_node_with_remote_signing_total_local_balance: total_local_balance {
|
|
1235
2133
|
__typename
|
|
1236
2134
|
currency_amount_original_value: original_value
|
|
1237
2135
|
currency_amount_original_unit: original_unit
|
|
@@ -1239,7 +2137,7 @@ fragment NodeFragment on Node {
|
|
|
1239
2137
|
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
1240
2138
|
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
1241
2139
|
}
|
|
1242
|
-
|
|
2140
|
+
lightspark_node_with_remote_signing_local_balance: local_balance {
|
|
1243
2141
|
__typename
|
|
1244
2142
|
currency_amount_original_value: original_value
|
|
1245
2143
|
currency_amount_original_unit: original_unit
|
|
@@ -1247,8 +2145,7 @@ fragment NodeFragment on Node {
|
|
|
1247
2145
|
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
1248
2146
|
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
1249
2147
|
}
|
|
1250
|
-
|
|
1251
|
-
lightspark_node_remote_balance: remote_balance {
|
|
2148
|
+
lightspark_node_with_remote_signing_remote_balance: remote_balance {
|
|
1252
2149
|
__typename
|
|
1253
2150
|
currency_amount_original_value: original_value
|
|
1254
2151
|
currency_amount_original_unit: original_unit
|
|
@@ -1256,7 +2153,58 @@ fragment NodeFragment on Node {
|
|
|
1256
2153
|
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
1257
2154
|
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
1258
2155
|
}
|
|
1259
|
-
|
|
2156
|
+
lightspark_node_with_remote_signing_blockchain_balance: blockchain_balance {
|
|
2157
|
+
__typename
|
|
2158
|
+
blockchain_balance_total_balance: total_balance {
|
|
2159
|
+
__typename
|
|
2160
|
+
currency_amount_original_value: original_value
|
|
2161
|
+
currency_amount_original_unit: original_unit
|
|
2162
|
+
currency_amount_preferred_currency_unit: preferred_currency_unit
|
|
2163
|
+
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
2164
|
+
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
2165
|
+
}
|
|
2166
|
+
blockchain_balance_confirmed_balance: confirmed_balance {
|
|
2167
|
+
__typename
|
|
2168
|
+
currency_amount_original_value: original_value
|
|
2169
|
+
currency_amount_original_unit: original_unit
|
|
2170
|
+
currency_amount_preferred_currency_unit: preferred_currency_unit
|
|
2171
|
+
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
2172
|
+
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
2173
|
+
}
|
|
2174
|
+
blockchain_balance_unconfirmed_balance: unconfirmed_balance {
|
|
2175
|
+
__typename
|
|
2176
|
+
currency_amount_original_value: original_value
|
|
2177
|
+
currency_amount_original_unit: original_unit
|
|
2178
|
+
currency_amount_preferred_currency_unit: preferred_currency_unit
|
|
2179
|
+
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
2180
|
+
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
2181
|
+
}
|
|
2182
|
+
blockchain_balance_locked_balance: locked_balance {
|
|
2183
|
+
__typename
|
|
2184
|
+
currency_amount_original_value: original_value
|
|
2185
|
+
currency_amount_original_unit: original_unit
|
|
2186
|
+
currency_amount_preferred_currency_unit: preferred_currency_unit
|
|
2187
|
+
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
2188
|
+
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
2189
|
+
}
|
|
2190
|
+
blockchain_balance_required_reserve: required_reserve {
|
|
2191
|
+
__typename
|
|
2192
|
+
currency_amount_original_value: original_value
|
|
2193
|
+
currency_amount_original_unit: original_unit
|
|
2194
|
+
currency_amount_preferred_currency_unit: preferred_currency_unit
|
|
2195
|
+
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
2196
|
+
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
2197
|
+
}
|
|
2198
|
+
blockchain_balance_available_balance: available_balance {
|
|
2199
|
+
__typename
|
|
2200
|
+
currency_amount_original_value: original_value
|
|
2201
|
+
currency_amount_original_unit: original_unit
|
|
2202
|
+
currency_amount_preferred_currency_unit: preferred_currency_unit
|
|
2203
|
+
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
2204
|
+
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
2205
|
+
}
|
|
2206
|
+
}
|
|
2207
|
+
lightspark_node_with_remote_signing_uma_prescreening_utxos: uma_prescreening_utxos
|
|
1260
2208
|
}
|
|
1261
2209
|
}`;
|
|
1262
2210
|
var Node_default = Node;
|
|
@@ -1298,12 +2246,12 @@ var PaymentRequestFromJson = (obj) => {
|
|
|
1298
2246
|
amountPaid: !!obj["invoice_amount_paid"] ? CurrencyAmountFromJson(obj["invoice_amount_paid"]) : void 0
|
|
1299
2247
|
};
|
|
1300
2248
|
}
|
|
1301
|
-
throw new
|
|
2249
|
+
throw new import_core3.LightsparkException(
|
|
1302
2250
|
"DeserializationError",
|
|
1303
2251
|
`Couldn't find a concrete type for interface PaymentRequest corresponding to the typename=${obj["__typename"]}`
|
|
1304
2252
|
);
|
|
1305
2253
|
};
|
|
1306
|
-
var
|
|
2254
|
+
var FRAGMENT8 = `
|
|
1307
2255
|
fragment PaymentRequestFragment on PaymentRequest {
|
|
1308
2256
|
__typename
|
|
1309
2257
|
... on Invoice {
|
|
@@ -1341,24 +2289,54 @@ fragment PaymentRequestFragment on PaymentRequest {
|
|
|
1341
2289
|
graph_node_display_name: display_name
|
|
1342
2290
|
graph_node_public_key: public_key
|
|
1343
2291
|
}
|
|
1344
|
-
... on
|
|
2292
|
+
... on LightsparkNodeWithOSK {
|
|
1345
2293
|
__typename
|
|
1346
|
-
|
|
1347
|
-
|
|
1348
|
-
|
|
1349
|
-
|
|
1350
|
-
|
|
1351
|
-
|
|
1352
|
-
|
|
1353
|
-
|
|
1354
|
-
|
|
1355
|
-
|
|
2294
|
+
lightspark_node_with_o_s_k_id: id
|
|
2295
|
+
lightspark_node_with_o_s_k_created_at: created_at
|
|
2296
|
+
lightspark_node_with_o_s_k_updated_at: updated_at
|
|
2297
|
+
lightspark_node_with_o_s_k_alias: alias
|
|
2298
|
+
lightspark_node_with_o_s_k_bitcoin_network: bitcoin_network
|
|
2299
|
+
lightspark_node_with_o_s_k_color: color
|
|
2300
|
+
lightspark_node_with_o_s_k_conductivity: conductivity
|
|
2301
|
+
lightspark_node_with_o_s_k_display_name: display_name
|
|
2302
|
+
lightspark_node_with_o_s_k_public_key: public_key
|
|
2303
|
+
lightspark_node_with_o_s_k_owner: owner {
|
|
1356
2304
|
id
|
|
1357
2305
|
}
|
|
1358
|
-
|
|
1359
|
-
|
|
2306
|
+
lightspark_node_with_o_s_k_status: status
|
|
2307
|
+
lightspark_node_with_o_s_k_total_balance: total_balance {
|
|
2308
|
+
__typename
|
|
2309
|
+
currency_amount_original_value: original_value
|
|
2310
|
+
currency_amount_original_unit: original_unit
|
|
2311
|
+
currency_amount_preferred_currency_unit: preferred_currency_unit
|
|
2312
|
+
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
2313
|
+
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
2314
|
+
}
|
|
2315
|
+
lightspark_node_with_o_s_k_total_local_balance: total_local_balance {
|
|
2316
|
+
__typename
|
|
2317
|
+
currency_amount_original_value: original_value
|
|
2318
|
+
currency_amount_original_unit: original_unit
|
|
2319
|
+
currency_amount_preferred_currency_unit: preferred_currency_unit
|
|
2320
|
+
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
2321
|
+
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
2322
|
+
}
|
|
2323
|
+
lightspark_node_with_o_s_k_local_balance: local_balance {
|
|
2324
|
+
__typename
|
|
2325
|
+
currency_amount_original_value: original_value
|
|
2326
|
+
currency_amount_original_unit: original_unit
|
|
2327
|
+
currency_amount_preferred_currency_unit: preferred_currency_unit
|
|
2328
|
+
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
2329
|
+
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
2330
|
+
}
|
|
2331
|
+
lightspark_node_with_o_s_k_remote_balance: remote_balance {
|
|
2332
|
+
__typename
|
|
2333
|
+
currency_amount_original_value: original_value
|
|
2334
|
+
currency_amount_original_unit: original_unit
|
|
2335
|
+
currency_amount_preferred_currency_unit: preferred_currency_unit
|
|
2336
|
+
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
2337
|
+
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
1360
2338
|
}
|
|
1361
|
-
|
|
2339
|
+
lightspark_node_with_o_s_k_blockchain_balance: blockchain_balance {
|
|
1362
2340
|
__typename
|
|
1363
2341
|
blockchain_balance_total_balance: total_balance {
|
|
1364
2342
|
__typename
|
|
@@ -1409,12 +2387,29 @@ fragment PaymentRequestFragment on PaymentRequest {
|
|
|
1409
2387
|
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
1410
2388
|
}
|
|
1411
2389
|
}
|
|
1412
|
-
|
|
2390
|
+
lightspark_node_with_o_s_k_uma_prescreening_utxos: uma_prescreening_utxos
|
|
2391
|
+
lightspark_node_with_o_s_k_encrypted_signing_private_key: encrypted_signing_private_key {
|
|
1413
2392
|
__typename
|
|
1414
2393
|
secret_encrypted_value: encrypted_value
|
|
1415
2394
|
secret_cipher: cipher
|
|
1416
2395
|
}
|
|
1417
|
-
|
|
2396
|
+
}
|
|
2397
|
+
... on LightsparkNodeWithRemoteSigning {
|
|
2398
|
+
__typename
|
|
2399
|
+
lightspark_node_with_remote_signing_id: id
|
|
2400
|
+
lightspark_node_with_remote_signing_created_at: created_at
|
|
2401
|
+
lightspark_node_with_remote_signing_updated_at: updated_at
|
|
2402
|
+
lightspark_node_with_remote_signing_alias: alias
|
|
2403
|
+
lightspark_node_with_remote_signing_bitcoin_network: bitcoin_network
|
|
2404
|
+
lightspark_node_with_remote_signing_color: color
|
|
2405
|
+
lightspark_node_with_remote_signing_conductivity: conductivity
|
|
2406
|
+
lightspark_node_with_remote_signing_display_name: display_name
|
|
2407
|
+
lightspark_node_with_remote_signing_public_key: public_key
|
|
2408
|
+
lightspark_node_with_remote_signing_owner: owner {
|
|
2409
|
+
id
|
|
2410
|
+
}
|
|
2411
|
+
lightspark_node_with_remote_signing_status: status
|
|
2412
|
+
lightspark_node_with_remote_signing_total_balance: total_balance {
|
|
1418
2413
|
__typename
|
|
1419
2414
|
currency_amount_original_value: original_value
|
|
1420
2415
|
currency_amount_original_unit: original_unit
|
|
@@ -1422,7 +2417,7 @@ fragment PaymentRequestFragment on PaymentRequest {
|
|
|
1422
2417
|
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
1423
2418
|
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
1424
2419
|
}
|
|
1425
|
-
|
|
2420
|
+
lightspark_node_with_remote_signing_total_local_balance: total_local_balance {
|
|
1426
2421
|
__typename
|
|
1427
2422
|
currency_amount_original_value: original_value
|
|
1428
2423
|
currency_amount_original_unit: original_unit
|
|
@@ -1430,7 +2425,7 @@ fragment PaymentRequestFragment on PaymentRequest {
|
|
|
1430
2425
|
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
1431
2426
|
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
1432
2427
|
}
|
|
1433
|
-
|
|
2428
|
+
lightspark_node_with_remote_signing_local_balance: local_balance {
|
|
1434
2429
|
__typename
|
|
1435
2430
|
currency_amount_original_value: original_value
|
|
1436
2431
|
currency_amount_original_unit: original_unit
|
|
@@ -1438,8 +2433,7 @@ fragment PaymentRequestFragment on PaymentRequest {
|
|
|
1438
2433
|
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
1439
2434
|
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
1440
2435
|
}
|
|
1441
|
-
|
|
1442
|
-
lightspark_node_remote_balance: remote_balance {
|
|
2436
|
+
lightspark_node_with_remote_signing_remote_balance: remote_balance {
|
|
1443
2437
|
__typename
|
|
1444
2438
|
currency_amount_original_value: original_value
|
|
1445
2439
|
currency_amount_original_unit: original_unit
|
|
@@ -1447,7 +2441,58 @@ fragment PaymentRequestFragment on PaymentRequest {
|
|
|
1447
2441
|
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
1448
2442
|
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
1449
2443
|
}
|
|
1450
|
-
|
|
2444
|
+
lightspark_node_with_remote_signing_blockchain_balance: blockchain_balance {
|
|
2445
|
+
__typename
|
|
2446
|
+
blockchain_balance_total_balance: total_balance {
|
|
2447
|
+
__typename
|
|
2448
|
+
currency_amount_original_value: original_value
|
|
2449
|
+
currency_amount_original_unit: original_unit
|
|
2450
|
+
currency_amount_preferred_currency_unit: preferred_currency_unit
|
|
2451
|
+
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
2452
|
+
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
2453
|
+
}
|
|
2454
|
+
blockchain_balance_confirmed_balance: confirmed_balance {
|
|
2455
|
+
__typename
|
|
2456
|
+
currency_amount_original_value: original_value
|
|
2457
|
+
currency_amount_original_unit: original_unit
|
|
2458
|
+
currency_amount_preferred_currency_unit: preferred_currency_unit
|
|
2459
|
+
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
2460
|
+
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
2461
|
+
}
|
|
2462
|
+
blockchain_balance_unconfirmed_balance: unconfirmed_balance {
|
|
2463
|
+
__typename
|
|
2464
|
+
currency_amount_original_value: original_value
|
|
2465
|
+
currency_amount_original_unit: original_unit
|
|
2466
|
+
currency_amount_preferred_currency_unit: preferred_currency_unit
|
|
2467
|
+
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
2468
|
+
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
2469
|
+
}
|
|
2470
|
+
blockchain_balance_locked_balance: locked_balance {
|
|
2471
|
+
__typename
|
|
2472
|
+
currency_amount_original_value: original_value
|
|
2473
|
+
currency_amount_original_unit: original_unit
|
|
2474
|
+
currency_amount_preferred_currency_unit: preferred_currency_unit
|
|
2475
|
+
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
2476
|
+
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
2477
|
+
}
|
|
2478
|
+
blockchain_balance_required_reserve: required_reserve {
|
|
2479
|
+
__typename
|
|
2480
|
+
currency_amount_original_value: original_value
|
|
2481
|
+
currency_amount_original_unit: original_unit
|
|
2482
|
+
currency_amount_preferred_currency_unit: preferred_currency_unit
|
|
2483
|
+
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
2484
|
+
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
2485
|
+
}
|
|
2486
|
+
blockchain_balance_available_balance: available_balance {
|
|
2487
|
+
__typename
|
|
2488
|
+
currency_amount_original_value: original_value
|
|
2489
|
+
currency_amount_original_unit: original_unit
|
|
2490
|
+
currency_amount_preferred_currency_unit: preferred_currency_unit
|
|
2491
|
+
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
2492
|
+
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
2493
|
+
}
|
|
2494
|
+
}
|
|
2495
|
+
lightspark_node_with_remote_signing_uma_prescreening_utxos: uma_prescreening_utxos
|
|
1451
2496
|
}
|
|
1452
2497
|
}
|
|
1453
2498
|
}
|
|
@@ -1473,7 +2518,7 @@ query GetPaymentRequest($id: ID!) {
|
|
|
1473
2518
|
}
|
|
1474
2519
|
}
|
|
1475
2520
|
|
|
1476
|
-
${
|
|
2521
|
+
${FRAGMENT8}
|
|
1477
2522
|
`,
|
|
1478
2523
|
variables: { id },
|
|
1479
2524
|
constructObject: (data) => PaymentRequestFromJson(data.entity)
|
|
@@ -1495,10 +2540,10 @@ var AccountToPaymentRequestsConnectionFromJson = (obj) => {
|
|
|
1495
2540
|
};
|
|
1496
2541
|
|
|
1497
2542
|
// src/objects/Transaction.ts
|
|
1498
|
-
var
|
|
2543
|
+
var import_core5 = require("@lightsparkdev/core");
|
|
1499
2544
|
|
|
1500
2545
|
// src/objects/IncomingPayment.ts
|
|
1501
|
-
var
|
|
2546
|
+
var import_auto_bind8 = __toESM(require("auto-bind"), 1);
|
|
1502
2547
|
|
|
1503
2548
|
// src/objects/IncomingPaymentAttemptStatus.ts
|
|
1504
2549
|
var IncomingPaymentAttemptStatus = /* @__PURE__ */ ((IncomingPaymentAttemptStatus2) => {
|
|
@@ -1524,7 +2569,7 @@ var IncomingPaymentAttemptFromJson = (obj) => {
|
|
|
1524
2569
|
resolvedAt: obj["incoming_payment_attempt_resolved_at"]
|
|
1525
2570
|
};
|
|
1526
2571
|
};
|
|
1527
|
-
var
|
|
2572
|
+
var FRAGMENT9 = `
|
|
1528
2573
|
fragment IncomingPaymentAttemptFragment on IncomingPaymentAttempt {
|
|
1529
2574
|
__typename
|
|
1530
2575
|
incoming_payment_attempt_id: id
|
|
@@ -1555,7 +2600,7 @@ query GetIncomingPaymentAttempt($id: ID!) {
|
|
|
1555
2600
|
}
|
|
1556
2601
|
}
|
|
1557
2602
|
|
|
1558
|
-
${
|
|
2603
|
+
${FRAGMENT9}
|
|
1559
2604
|
`,
|
|
1560
2605
|
variables: { id },
|
|
1561
2606
|
constructObject: (data) => IncomingPaymentAttemptFromJson(data.entity)
|
|
@@ -1576,6 +2621,14 @@ var IncomingPaymentToAttemptsConnectionFromJson = (obj) => {
|
|
|
1576
2621
|
};
|
|
1577
2622
|
};
|
|
1578
2623
|
|
|
2624
|
+
// src/objects/PostTransactionData.ts
|
|
2625
|
+
var PostTransactionDataFromJson = (obj) => {
|
|
2626
|
+
return {
|
|
2627
|
+
utxo: obj["post_transaction_data_utxo"],
|
|
2628
|
+
amount: CurrencyAmountFromJson(obj["post_transaction_data_amount"])
|
|
2629
|
+
};
|
|
2630
|
+
};
|
|
2631
|
+
|
|
1579
2632
|
// src/objects/TransactionStatus.ts
|
|
1580
2633
|
var TransactionStatus = /* @__PURE__ */ ((TransactionStatus2) => {
|
|
1581
2634
|
TransactionStatus2["FUTURE_VALUE"] = "FUTURE_VALUE";
|
|
@@ -1591,7 +2644,7 @@ var TransactionStatus_default = TransactionStatus;
|
|
|
1591
2644
|
|
|
1592
2645
|
// src/objects/IncomingPayment.ts
|
|
1593
2646
|
var IncomingPayment = class {
|
|
1594
|
-
constructor(id, createdAt, updatedAt, status, amount, destinationId, typename, resolvedAt, transactionHash,
|
|
2647
|
+
constructor(id, createdAt, updatedAt, status, amount, destinationId, typename, resolvedAt, transactionHash, paymentRequestId, umaPostTransactionData) {
|
|
1595
2648
|
this.id = id;
|
|
1596
2649
|
this.createdAt = createdAt;
|
|
1597
2650
|
this.updatedAt = updatedAt;
|
|
@@ -1601,9 +2654,9 @@ var IncomingPayment = class {
|
|
|
1601
2654
|
this.typename = typename;
|
|
1602
2655
|
this.resolvedAt = resolvedAt;
|
|
1603
2656
|
this.transactionHash = transactionHash;
|
|
1604
|
-
this.originId = originId;
|
|
1605
2657
|
this.paymentRequestId = paymentRequestId;
|
|
1606
|
-
|
|
2658
|
+
this.umaPostTransactionData = umaPostTransactionData;
|
|
2659
|
+
(0, import_auto_bind8.default)(this);
|
|
1607
2660
|
}
|
|
1608
2661
|
async getAttempts(client, first = void 0, statuses = void 0, after = void 0) {
|
|
1609
2662
|
return await client.executeRawQuery({
|
|
@@ -1668,7 +2721,7 @@ query GetIncomingPayment($id: ID!) {
|
|
|
1668
2721
|
}
|
|
1669
2722
|
}
|
|
1670
2723
|
|
|
1671
|
-
${
|
|
2724
|
+
${FRAGMENT10}
|
|
1672
2725
|
`,
|
|
1673
2726
|
variables: { id },
|
|
1674
2727
|
constructObject: (data) => IncomingPaymentFromJson(data.entity)
|
|
@@ -1686,11 +2739,13 @@ var IncomingPaymentFromJson = (obj) => {
|
|
|
1686
2739
|
"IncomingPayment",
|
|
1687
2740
|
obj["incoming_payment_resolved_at"],
|
|
1688
2741
|
obj["incoming_payment_transaction_hash"],
|
|
1689
|
-
obj["
|
|
1690
|
-
obj["
|
|
2742
|
+
obj["incoming_payment_payment_request"]?.id ?? void 0,
|
|
2743
|
+
obj["incoming_payment_uma_post_transaction_data"]?.map(
|
|
2744
|
+
(e) => PostTransactionDataFromJson(e)
|
|
2745
|
+
)
|
|
1691
2746
|
);
|
|
1692
2747
|
};
|
|
1693
|
-
var
|
|
2748
|
+
var FRAGMENT10 = `
|
|
1694
2749
|
fragment IncomingPaymentFragment on IncomingPayment {
|
|
1695
2750
|
__typename
|
|
1696
2751
|
incoming_payment_id: id
|
|
@@ -1707,23 +2762,32 @@ fragment IncomingPaymentFragment on IncomingPayment {
|
|
|
1707
2762
|
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
1708
2763
|
}
|
|
1709
2764
|
incoming_payment_transaction_hash: transaction_hash
|
|
1710
|
-
incoming_payment_origin: origin {
|
|
1711
|
-
id
|
|
1712
|
-
}
|
|
1713
2765
|
incoming_payment_destination: destination {
|
|
1714
2766
|
id
|
|
1715
2767
|
}
|
|
1716
2768
|
incoming_payment_payment_request: payment_request {
|
|
1717
2769
|
id
|
|
1718
2770
|
}
|
|
2771
|
+
incoming_payment_uma_post_transaction_data: uma_post_transaction_data {
|
|
2772
|
+
__typename
|
|
2773
|
+
post_transaction_data_utxo: utxo
|
|
2774
|
+
post_transaction_data_amount: amount {
|
|
2775
|
+
__typename
|
|
2776
|
+
currency_amount_original_value: original_value
|
|
2777
|
+
currency_amount_original_unit: original_unit
|
|
2778
|
+
currency_amount_preferred_currency_unit: preferred_currency_unit
|
|
2779
|
+
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
2780
|
+
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
2781
|
+
}
|
|
2782
|
+
}
|
|
1719
2783
|
}`;
|
|
1720
2784
|
var IncomingPayment_default = IncomingPayment;
|
|
1721
2785
|
|
|
1722
2786
|
// src/objects/OutgoingPayment.ts
|
|
1723
|
-
var
|
|
2787
|
+
var import_auto_bind10 = __toESM(require("auto-bind"), 1);
|
|
1724
2788
|
|
|
1725
2789
|
// src/objects/OutgoingPaymentAttempt.ts
|
|
1726
|
-
var
|
|
2790
|
+
var import_auto_bind9 = __toESM(require("auto-bind"), 1);
|
|
1727
2791
|
|
|
1728
2792
|
// src/objects/HtlcAttemptFailureCode.ts
|
|
1729
2793
|
var HtlcAttemptFailureCode = /* @__PURE__ */ ((HtlcAttemptFailureCode2) => {
|
|
@@ -1784,7 +2848,7 @@ var HopFromJson = (obj) => {
|
|
|
1784
2848
|
expiryBlockHeight: obj["hop_expiry_block_height"]
|
|
1785
2849
|
};
|
|
1786
2850
|
};
|
|
1787
|
-
var
|
|
2851
|
+
var FRAGMENT11 = `
|
|
1788
2852
|
fragment HopFragment on Hop {
|
|
1789
2853
|
__typename
|
|
1790
2854
|
hop_id: id
|
|
@@ -1824,7 +2888,7 @@ query GetHop($id: ID!) {
|
|
|
1824
2888
|
}
|
|
1825
2889
|
}
|
|
1826
2890
|
|
|
1827
|
-
${
|
|
2891
|
+
${FRAGMENT11}
|
|
1828
2892
|
`,
|
|
1829
2893
|
variables: { id },
|
|
1830
2894
|
constructObject: (data) => HopFromJson(data.entity)
|
|
@@ -1859,7 +2923,7 @@ var OutgoingPaymentAttempt = class {
|
|
|
1859
2923
|
this.resolvedAt = resolvedAt;
|
|
1860
2924
|
this.amount = amount;
|
|
1861
2925
|
this.fees = fees;
|
|
1862
|
-
(0,
|
|
2926
|
+
(0, import_auto_bind9.default)(this);
|
|
1863
2927
|
}
|
|
1864
2928
|
async getHops(client, first = void 0, after = void 0) {
|
|
1865
2929
|
return await client.executeRawQuery({
|
|
@@ -1928,7 +2992,7 @@ query GetOutgoingPaymentAttempt($id: ID!) {
|
|
|
1928
2992
|
}
|
|
1929
2993
|
}
|
|
1930
2994
|
|
|
1931
|
-
${
|
|
2995
|
+
${FRAGMENT12}
|
|
1932
2996
|
`,
|
|
1933
2997
|
variables: { id },
|
|
1934
2998
|
constructObject: (data) => OutgoingPaymentAttemptFromJson(data.entity)
|
|
@@ -1950,7 +3014,7 @@ var OutgoingPaymentAttemptFromJson = (obj) => {
|
|
|
1950
3014
|
!!obj["outgoing_payment_attempt_fees"] ? CurrencyAmountFromJson(obj["outgoing_payment_attempt_fees"]) : void 0
|
|
1951
3015
|
);
|
|
1952
3016
|
};
|
|
1953
|
-
var
|
|
3017
|
+
var FRAGMENT12 = `
|
|
1954
3018
|
fragment OutgoingPaymentAttemptFragment on OutgoingPaymentAttempt {
|
|
1955
3019
|
__typename
|
|
1956
3020
|
outgoing_payment_attempt_id: id
|
|
@@ -2014,7 +3078,7 @@ var PaymentFailureReason = /* @__PURE__ */ ((PaymentFailureReason2) => {
|
|
|
2014
3078
|
var PaymentFailureReason_default = PaymentFailureReason;
|
|
2015
3079
|
|
|
2016
3080
|
// src/objects/PaymentRequestData.ts
|
|
2017
|
-
var
|
|
3081
|
+
var import_core4 = require("@lightsparkdev/core");
|
|
2018
3082
|
var PaymentRequestDataFromJson = (obj) => {
|
|
2019
3083
|
if (obj["__typename"] == "InvoiceData") {
|
|
2020
3084
|
return {
|
|
@@ -2029,7 +3093,7 @@ var PaymentRequestDataFromJson = (obj) => {
|
|
|
2029
3093
|
memo: obj["invoice_data_memo"]
|
|
2030
3094
|
};
|
|
2031
3095
|
}
|
|
2032
|
-
throw new
|
|
3096
|
+
throw new import_core4.LightsparkException(
|
|
2033
3097
|
"DeserializationError",
|
|
2034
3098
|
`Couldn't find a concrete type for interface PaymentRequestData corresponding to the typename=${obj["__typename"]}`
|
|
2035
3099
|
);
|
|
@@ -2044,7 +3108,7 @@ var RichTextFromJson = (obj) => {
|
|
|
2044
3108
|
|
|
2045
3109
|
// src/objects/OutgoingPayment.ts
|
|
2046
3110
|
var OutgoingPayment = class {
|
|
2047
|
-
constructor(id, createdAt, updatedAt, status, amount, originId, typename, resolvedAt, transactionHash, destinationId, fees, paymentRequestData, failureReason, failureMessage) {
|
|
3111
|
+
constructor(id, createdAt, updatedAt, status, amount, originId, typename, resolvedAt, transactionHash, destinationId, fees, paymentRequestData, failureReason, failureMessage, umaPostTransactionData) {
|
|
2048
3112
|
this.id = id;
|
|
2049
3113
|
this.createdAt = createdAt;
|
|
2050
3114
|
this.updatedAt = updatedAt;
|
|
@@ -2059,7 +3123,8 @@ var OutgoingPayment = class {
|
|
|
2059
3123
|
this.paymentRequestData = paymentRequestData;
|
|
2060
3124
|
this.failureReason = failureReason;
|
|
2061
3125
|
this.failureMessage = failureMessage;
|
|
2062
|
-
|
|
3126
|
+
this.umaPostTransactionData = umaPostTransactionData;
|
|
3127
|
+
(0, import_auto_bind10.default)(this);
|
|
2063
3128
|
}
|
|
2064
3129
|
async getAttempts(client, first = void 0, after = void 0) {
|
|
2065
3130
|
return await client.executeRawQuery({
|
|
@@ -2129,7 +3194,7 @@ query GetOutgoingPayment($id: ID!) {
|
|
|
2129
3194
|
}
|
|
2130
3195
|
}
|
|
2131
3196
|
|
|
2132
|
-
${
|
|
3197
|
+
${FRAGMENT13}
|
|
2133
3198
|
`,
|
|
2134
3199
|
variables: { id },
|
|
2135
3200
|
constructObject: (data) => OutgoingPaymentFromJson(data.entity)
|
|
@@ -2151,10 +3216,13 @@ var OutgoingPaymentFromJson = (obj) => {
|
|
|
2151
3216
|
!!obj["outgoing_payment_fees"] ? CurrencyAmountFromJson(obj["outgoing_payment_fees"]) : void 0,
|
|
2152
3217
|
!!obj["outgoing_payment_payment_request_data"] ? PaymentRequestDataFromJson(obj["outgoing_payment_payment_request_data"]) : void 0,
|
|
2153
3218
|
!!obj["outgoing_payment_failure_reason"] ? PaymentFailureReason_default[obj["outgoing_payment_failure_reason"]] ?? PaymentFailureReason_default.FUTURE_VALUE : null,
|
|
2154
|
-
!!obj["outgoing_payment_failure_message"] ? RichTextFromJson(obj["outgoing_payment_failure_message"]) : void 0
|
|
3219
|
+
!!obj["outgoing_payment_failure_message"] ? RichTextFromJson(obj["outgoing_payment_failure_message"]) : void 0,
|
|
3220
|
+
obj["outgoing_payment_uma_post_transaction_data"]?.map(
|
|
3221
|
+
(e) => PostTransactionDataFromJson(e)
|
|
3222
|
+
)
|
|
2155
3223
|
);
|
|
2156
3224
|
};
|
|
2157
|
-
var
|
|
3225
|
+
var FRAGMENT13 = `
|
|
2158
3226
|
fragment OutgoingPaymentFragment on OutgoingPayment {
|
|
2159
3227
|
__typename
|
|
2160
3228
|
outgoing_payment_id: id
|
|
@@ -2217,24 +3285,54 @@ fragment OutgoingPaymentFragment on OutgoingPayment {
|
|
|
2217
3285
|
graph_node_display_name: display_name
|
|
2218
3286
|
graph_node_public_key: public_key
|
|
2219
3287
|
}
|
|
2220
|
-
... on
|
|
3288
|
+
... on LightsparkNodeWithOSK {
|
|
2221
3289
|
__typename
|
|
2222
|
-
|
|
2223
|
-
|
|
2224
|
-
|
|
2225
|
-
|
|
2226
|
-
|
|
2227
|
-
|
|
2228
|
-
|
|
2229
|
-
|
|
2230
|
-
|
|
2231
|
-
|
|
3290
|
+
lightspark_node_with_o_s_k_id: id
|
|
3291
|
+
lightspark_node_with_o_s_k_created_at: created_at
|
|
3292
|
+
lightspark_node_with_o_s_k_updated_at: updated_at
|
|
3293
|
+
lightspark_node_with_o_s_k_alias: alias
|
|
3294
|
+
lightspark_node_with_o_s_k_bitcoin_network: bitcoin_network
|
|
3295
|
+
lightspark_node_with_o_s_k_color: color
|
|
3296
|
+
lightspark_node_with_o_s_k_conductivity: conductivity
|
|
3297
|
+
lightspark_node_with_o_s_k_display_name: display_name
|
|
3298
|
+
lightspark_node_with_o_s_k_public_key: public_key
|
|
3299
|
+
lightspark_node_with_o_s_k_owner: owner {
|
|
2232
3300
|
id
|
|
2233
3301
|
}
|
|
2234
|
-
|
|
2235
|
-
|
|
3302
|
+
lightspark_node_with_o_s_k_status: status
|
|
3303
|
+
lightspark_node_with_o_s_k_total_balance: total_balance {
|
|
3304
|
+
__typename
|
|
3305
|
+
currency_amount_original_value: original_value
|
|
3306
|
+
currency_amount_original_unit: original_unit
|
|
3307
|
+
currency_amount_preferred_currency_unit: preferred_currency_unit
|
|
3308
|
+
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
3309
|
+
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
3310
|
+
}
|
|
3311
|
+
lightspark_node_with_o_s_k_total_local_balance: total_local_balance {
|
|
3312
|
+
__typename
|
|
3313
|
+
currency_amount_original_value: original_value
|
|
3314
|
+
currency_amount_original_unit: original_unit
|
|
3315
|
+
currency_amount_preferred_currency_unit: preferred_currency_unit
|
|
3316
|
+
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
3317
|
+
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
3318
|
+
}
|
|
3319
|
+
lightspark_node_with_o_s_k_local_balance: local_balance {
|
|
3320
|
+
__typename
|
|
3321
|
+
currency_amount_original_value: original_value
|
|
3322
|
+
currency_amount_original_unit: original_unit
|
|
3323
|
+
currency_amount_preferred_currency_unit: preferred_currency_unit
|
|
3324
|
+
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
3325
|
+
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
3326
|
+
}
|
|
3327
|
+
lightspark_node_with_o_s_k_remote_balance: remote_balance {
|
|
3328
|
+
__typename
|
|
3329
|
+
currency_amount_original_value: original_value
|
|
3330
|
+
currency_amount_original_unit: original_unit
|
|
3331
|
+
currency_amount_preferred_currency_unit: preferred_currency_unit
|
|
3332
|
+
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
3333
|
+
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
2236
3334
|
}
|
|
2237
|
-
|
|
3335
|
+
lightspark_node_with_o_s_k_blockchain_balance: blockchain_balance {
|
|
2238
3336
|
__typename
|
|
2239
3337
|
blockchain_balance_total_balance: total_balance {
|
|
2240
3338
|
__typename
|
|
@@ -2285,12 +3383,29 @@ fragment OutgoingPaymentFragment on OutgoingPayment {
|
|
|
2285
3383
|
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
2286
3384
|
}
|
|
2287
3385
|
}
|
|
2288
|
-
|
|
3386
|
+
lightspark_node_with_o_s_k_uma_prescreening_utxos: uma_prescreening_utxos
|
|
3387
|
+
lightspark_node_with_o_s_k_encrypted_signing_private_key: encrypted_signing_private_key {
|
|
2289
3388
|
__typename
|
|
2290
3389
|
secret_encrypted_value: encrypted_value
|
|
2291
3390
|
secret_cipher: cipher
|
|
2292
3391
|
}
|
|
2293
|
-
|
|
3392
|
+
}
|
|
3393
|
+
... on LightsparkNodeWithRemoteSigning {
|
|
3394
|
+
__typename
|
|
3395
|
+
lightspark_node_with_remote_signing_id: id
|
|
3396
|
+
lightspark_node_with_remote_signing_created_at: created_at
|
|
3397
|
+
lightspark_node_with_remote_signing_updated_at: updated_at
|
|
3398
|
+
lightspark_node_with_remote_signing_alias: alias
|
|
3399
|
+
lightspark_node_with_remote_signing_bitcoin_network: bitcoin_network
|
|
3400
|
+
lightspark_node_with_remote_signing_color: color
|
|
3401
|
+
lightspark_node_with_remote_signing_conductivity: conductivity
|
|
3402
|
+
lightspark_node_with_remote_signing_display_name: display_name
|
|
3403
|
+
lightspark_node_with_remote_signing_public_key: public_key
|
|
3404
|
+
lightspark_node_with_remote_signing_owner: owner {
|
|
3405
|
+
id
|
|
3406
|
+
}
|
|
3407
|
+
lightspark_node_with_remote_signing_status: status
|
|
3408
|
+
lightspark_node_with_remote_signing_total_balance: total_balance {
|
|
2294
3409
|
__typename
|
|
2295
3410
|
currency_amount_original_value: original_value
|
|
2296
3411
|
currency_amount_original_unit: original_unit
|
|
@@ -2298,7 +3413,7 @@ fragment OutgoingPaymentFragment on OutgoingPayment {
|
|
|
2298
3413
|
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
2299
3414
|
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
2300
3415
|
}
|
|
2301
|
-
|
|
3416
|
+
lightspark_node_with_remote_signing_total_local_balance: total_local_balance {
|
|
2302
3417
|
__typename
|
|
2303
3418
|
currency_amount_original_value: original_value
|
|
2304
3419
|
currency_amount_original_unit: original_unit
|
|
@@ -2306,7 +3421,7 @@ fragment OutgoingPaymentFragment on OutgoingPayment {
|
|
|
2306
3421
|
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
2307
3422
|
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
2308
3423
|
}
|
|
2309
|
-
|
|
3424
|
+
lightspark_node_with_remote_signing_local_balance: local_balance {
|
|
2310
3425
|
__typename
|
|
2311
3426
|
currency_amount_original_value: original_value
|
|
2312
3427
|
currency_amount_original_unit: original_unit
|
|
@@ -2314,8 +3429,7 @@ fragment OutgoingPaymentFragment on OutgoingPayment {
|
|
|
2314
3429
|
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
2315
3430
|
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
2316
3431
|
}
|
|
2317
|
-
|
|
2318
|
-
lightspark_node_remote_balance: remote_balance {
|
|
3432
|
+
lightspark_node_with_remote_signing_remote_balance: remote_balance {
|
|
2319
3433
|
__typename
|
|
2320
3434
|
currency_amount_original_value: original_value
|
|
2321
3435
|
currency_amount_original_unit: original_unit
|
|
@@ -2323,7 +3437,58 @@ fragment OutgoingPaymentFragment on OutgoingPayment {
|
|
|
2323
3437
|
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
2324
3438
|
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
2325
3439
|
}
|
|
2326
|
-
|
|
3440
|
+
lightspark_node_with_remote_signing_blockchain_balance: blockchain_balance {
|
|
3441
|
+
__typename
|
|
3442
|
+
blockchain_balance_total_balance: total_balance {
|
|
3443
|
+
__typename
|
|
3444
|
+
currency_amount_original_value: original_value
|
|
3445
|
+
currency_amount_original_unit: original_unit
|
|
3446
|
+
currency_amount_preferred_currency_unit: preferred_currency_unit
|
|
3447
|
+
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
3448
|
+
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
3449
|
+
}
|
|
3450
|
+
blockchain_balance_confirmed_balance: confirmed_balance {
|
|
3451
|
+
__typename
|
|
3452
|
+
currency_amount_original_value: original_value
|
|
3453
|
+
currency_amount_original_unit: original_unit
|
|
3454
|
+
currency_amount_preferred_currency_unit: preferred_currency_unit
|
|
3455
|
+
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
3456
|
+
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
3457
|
+
}
|
|
3458
|
+
blockchain_balance_unconfirmed_balance: unconfirmed_balance {
|
|
3459
|
+
__typename
|
|
3460
|
+
currency_amount_original_value: original_value
|
|
3461
|
+
currency_amount_original_unit: original_unit
|
|
3462
|
+
currency_amount_preferred_currency_unit: preferred_currency_unit
|
|
3463
|
+
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
3464
|
+
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
3465
|
+
}
|
|
3466
|
+
blockchain_balance_locked_balance: locked_balance {
|
|
3467
|
+
__typename
|
|
3468
|
+
currency_amount_original_value: original_value
|
|
3469
|
+
currency_amount_original_unit: original_unit
|
|
3470
|
+
currency_amount_preferred_currency_unit: preferred_currency_unit
|
|
3471
|
+
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
3472
|
+
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
3473
|
+
}
|
|
3474
|
+
blockchain_balance_required_reserve: required_reserve {
|
|
3475
|
+
__typename
|
|
3476
|
+
currency_amount_original_value: original_value
|
|
3477
|
+
currency_amount_original_unit: original_unit
|
|
3478
|
+
currency_amount_preferred_currency_unit: preferred_currency_unit
|
|
3479
|
+
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
3480
|
+
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
3481
|
+
}
|
|
3482
|
+
blockchain_balance_available_balance: available_balance {
|
|
3483
|
+
__typename
|
|
3484
|
+
currency_amount_original_value: original_value
|
|
3485
|
+
currency_amount_original_unit: original_unit
|
|
3486
|
+
currency_amount_preferred_currency_unit: preferred_currency_unit
|
|
3487
|
+
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
3488
|
+
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
3489
|
+
}
|
|
3490
|
+
}
|
|
3491
|
+
lightspark_node_with_remote_signing_uma_prescreening_utxos: uma_prescreening_utxos
|
|
2327
3492
|
}
|
|
2328
3493
|
}
|
|
2329
3494
|
}
|
|
@@ -2333,6 +3498,18 @@ fragment OutgoingPaymentFragment on OutgoingPayment {
|
|
|
2333
3498
|
__typename
|
|
2334
3499
|
rich_text_text: text
|
|
2335
3500
|
}
|
|
3501
|
+
outgoing_payment_uma_post_transaction_data: uma_post_transaction_data {
|
|
3502
|
+
__typename
|
|
3503
|
+
post_transaction_data_utxo: utxo
|
|
3504
|
+
post_transaction_data_amount: amount {
|
|
3505
|
+
__typename
|
|
3506
|
+
currency_amount_original_value: original_value
|
|
3507
|
+
currency_amount_original_unit: original_unit
|
|
3508
|
+
currency_amount_preferred_currency_unit: preferred_currency_unit
|
|
3509
|
+
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
3510
|
+
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
3511
|
+
}
|
|
3512
|
+
}
|
|
2336
3513
|
}`;
|
|
2337
3514
|
var OutgoingPayment_default = OutgoingPayment;
|
|
2338
3515
|
|
|
@@ -2413,8 +3590,10 @@ var TransactionFromJson = (obj) => {
|
|
|
2413
3590
|
"IncomingPayment",
|
|
2414
3591
|
obj["incoming_payment_resolved_at"],
|
|
2415
3592
|
obj["incoming_payment_transaction_hash"],
|
|
2416
|
-
obj["
|
|
2417
|
-
obj["
|
|
3593
|
+
obj["incoming_payment_payment_request"]?.id ?? void 0,
|
|
3594
|
+
obj["incoming_payment_uma_post_transaction_data"]?.map(
|
|
3595
|
+
(e) => PostTransactionDataFromJson(e)
|
|
3596
|
+
)
|
|
2418
3597
|
);
|
|
2419
3598
|
}
|
|
2420
3599
|
if (obj["__typename"] == "OutgoingPayment") {
|
|
@@ -2434,7 +3613,10 @@ var TransactionFromJson = (obj) => {
|
|
|
2434
3613
|
obj["outgoing_payment_payment_request_data"]
|
|
2435
3614
|
) : void 0,
|
|
2436
3615
|
!!obj["outgoing_payment_failure_reason"] ? PaymentFailureReason_default[obj["outgoing_payment_failure_reason"]] ?? PaymentFailureReason_default.FUTURE_VALUE : null,
|
|
2437
|
-
!!obj["outgoing_payment_failure_message"] ? RichTextFromJson(obj["outgoing_payment_failure_message"]) : void 0
|
|
3616
|
+
!!obj["outgoing_payment_failure_message"] ? RichTextFromJson(obj["outgoing_payment_failure_message"]) : void 0,
|
|
3617
|
+
obj["outgoing_payment_uma_post_transaction_data"]?.map(
|
|
3618
|
+
(e) => PostTransactionDataFromJson(e)
|
|
3619
|
+
)
|
|
2438
3620
|
);
|
|
2439
3621
|
}
|
|
2440
3622
|
if (obj["__typename"] == "RoutingTransaction") {
|
|
@@ -2472,12 +3654,12 @@ var TransactionFromJson = (obj) => {
|
|
|
2472
3654
|
numConfirmations: obj["withdrawal_num_confirmations"]
|
|
2473
3655
|
};
|
|
2474
3656
|
}
|
|
2475
|
-
throw new
|
|
3657
|
+
throw new import_core5.LightsparkException(
|
|
2476
3658
|
"DeserializationError",
|
|
2477
3659
|
`Couldn't find a concrete type for interface Transaction corresponding to the typename=${obj["__typename"]}`
|
|
2478
3660
|
);
|
|
2479
3661
|
};
|
|
2480
|
-
var
|
|
3662
|
+
var FRAGMENT14 = `
|
|
2481
3663
|
fragment TransactionFragment on Transaction {
|
|
2482
3664
|
__typename
|
|
2483
3665
|
... on ChannelClosingTransaction {
|
|
@@ -2592,15 +3774,24 @@ fragment TransactionFragment on Transaction {
|
|
|
2592
3774
|
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
2593
3775
|
}
|
|
2594
3776
|
incoming_payment_transaction_hash: transaction_hash
|
|
2595
|
-
incoming_payment_origin: origin {
|
|
2596
|
-
id
|
|
2597
|
-
}
|
|
2598
3777
|
incoming_payment_destination: destination {
|
|
2599
3778
|
id
|
|
2600
3779
|
}
|
|
2601
3780
|
incoming_payment_payment_request: payment_request {
|
|
2602
3781
|
id
|
|
2603
3782
|
}
|
|
3783
|
+
incoming_payment_uma_post_transaction_data: uma_post_transaction_data {
|
|
3784
|
+
__typename
|
|
3785
|
+
post_transaction_data_utxo: utxo
|
|
3786
|
+
post_transaction_data_amount: amount {
|
|
3787
|
+
__typename
|
|
3788
|
+
currency_amount_original_value: original_value
|
|
3789
|
+
currency_amount_original_unit: original_unit
|
|
3790
|
+
currency_amount_preferred_currency_unit: preferred_currency_unit
|
|
3791
|
+
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
3792
|
+
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
3793
|
+
}
|
|
3794
|
+
}
|
|
2604
3795
|
}
|
|
2605
3796
|
... on OutgoingPayment {
|
|
2606
3797
|
__typename
|
|
@@ -2664,24 +3855,54 @@ fragment TransactionFragment on Transaction {
|
|
|
2664
3855
|
graph_node_display_name: display_name
|
|
2665
3856
|
graph_node_public_key: public_key
|
|
2666
3857
|
}
|
|
2667
|
-
... on
|
|
3858
|
+
... on LightsparkNodeWithOSK {
|
|
2668
3859
|
__typename
|
|
2669
|
-
|
|
2670
|
-
|
|
2671
|
-
|
|
2672
|
-
|
|
2673
|
-
|
|
2674
|
-
|
|
2675
|
-
|
|
2676
|
-
|
|
2677
|
-
|
|
2678
|
-
|
|
3860
|
+
lightspark_node_with_o_s_k_id: id
|
|
3861
|
+
lightspark_node_with_o_s_k_created_at: created_at
|
|
3862
|
+
lightspark_node_with_o_s_k_updated_at: updated_at
|
|
3863
|
+
lightspark_node_with_o_s_k_alias: alias
|
|
3864
|
+
lightspark_node_with_o_s_k_bitcoin_network: bitcoin_network
|
|
3865
|
+
lightspark_node_with_o_s_k_color: color
|
|
3866
|
+
lightspark_node_with_o_s_k_conductivity: conductivity
|
|
3867
|
+
lightspark_node_with_o_s_k_display_name: display_name
|
|
3868
|
+
lightspark_node_with_o_s_k_public_key: public_key
|
|
3869
|
+
lightspark_node_with_o_s_k_owner: owner {
|
|
2679
3870
|
id
|
|
2680
3871
|
}
|
|
2681
|
-
|
|
2682
|
-
|
|
3872
|
+
lightspark_node_with_o_s_k_status: status
|
|
3873
|
+
lightspark_node_with_o_s_k_total_balance: total_balance {
|
|
3874
|
+
__typename
|
|
3875
|
+
currency_amount_original_value: original_value
|
|
3876
|
+
currency_amount_original_unit: original_unit
|
|
3877
|
+
currency_amount_preferred_currency_unit: preferred_currency_unit
|
|
3878
|
+
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
3879
|
+
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
3880
|
+
}
|
|
3881
|
+
lightspark_node_with_o_s_k_total_local_balance: total_local_balance {
|
|
3882
|
+
__typename
|
|
3883
|
+
currency_amount_original_value: original_value
|
|
3884
|
+
currency_amount_original_unit: original_unit
|
|
3885
|
+
currency_amount_preferred_currency_unit: preferred_currency_unit
|
|
3886
|
+
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
3887
|
+
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
3888
|
+
}
|
|
3889
|
+
lightspark_node_with_o_s_k_local_balance: local_balance {
|
|
3890
|
+
__typename
|
|
3891
|
+
currency_amount_original_value: original_value
|
|
3892
|
+
currency_amount_original_unit: original_unit
|
|
3893
|
+
currency_amount_preferred_currency_unit: preferred_currency_unit
|
|
3894
|
+
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
3895
|
+
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
3896
|
+
}
|
|
3897
|
+
lightspark_node_with_o_s_k_remote_balance: remote_balance {
|
|
3898
|
+
__typename
|
|
3899
|
+
currency_amount_original_value: original_value
|
|
3900
|
+
currency_amount_original_unit: original_unit
|
|
3901
|
+
currency_amount_preferred_currency_unit: preferred_currency_unit
|
|
3902
|
+
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
3903
|
+
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
2683
3904
|
}
|
|
2684
|
-
|
|
3905
|
+
lightspark_node_with_o_s_k_blockchain_balance: blockchain_balance {
|
|
2685
3906
|
__typename
|
|
2686
3907
|
blockchain_balance_total_balance: total_balance {
|
|
2687
3908
|
__typename
|
|
@@ -2732,12 +3953,29 @@ fragment TransactionFragment on Transaction {
|
|
|
2732
3953
|
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
2733
3954
|
}
|
|
2734
3955
|
}
|
|
2735
|
-
|
|
3956
|
+
lightspark_node_with_o_s_k_uma_prescreening_utxos: uma_prescreening_utxos
|
|
3957
|
+
lightspark_node_with_o_s_k_encrypted_signing_private_key: encrypted_signing_private_key {
|
|
2736
3958
|
__typename
|
|
2737
3959
|
secret_encrypted_value: encrypted_value
|
|
2738
3960
|
secret_cipher: cipher
|
|
2739
3961
|
}
|
|
2740
|
-
|
|
3962
|
+
}
|
|
3963
|
+
... on LightsparkNodeWithRemoteSigning {
|
|
3964
|
+
__typename
|
|
3965
|
+
lightspark_node_with_remote_signing_id: id
|
|
3966
|
+
lightspark_node_with_remote_signing_created_at: created_at
|
|
3967
|
+
lightspark_node_with_remote_signing_updated_at: updated_at
|
|
3968
|
+
lightspark_node_with_remote_signing_alias: alias
|
|
3969
|
+
lightspark_node_with_remote_signing_bitcoin_network: bitcoin_network
|
|
3970
|
+
lightspark_node_with_remote_signing_color: color
|
|
3971
|
+
lightspark_node_with_remote_signing_conductivity: conductivity
|
|
3972
|
+
lightspark_node_with_remote_signing_display_name: display_name
|
|
3973
|
+
lightspark_node_with_remote_signing_public_key: public_key
|
|
3974
|
+
lightspark_node_with_remote_signing_owner: owner {
|
|
3975
|
+
id
|
|
3976
|
+
}
|
|
3977
|
+
lightspark_node_with_remote_signing_status: status
|
|
3978
|
+
lightspark_node_with_remote_signing_total_balance: total_balance {
|
|
2741
3979
|
__typename
|
|
2742
3980
|
currency_amount_original_value: original_value
|
|
2743
3981
|
currency_amount_original_unit: original_unit
|
|
@@ -2745,7 +3983,7 @@ fragment TransactionFragment on Transaction {
|
|
|
2745
3983
|
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
2746
3984
|
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
2747
3985
|
}
|
|
2748
|
-
|
|
3986
|
+
lightspark_node_with_remote_signing_total_local_balance: total_local_balance {
|
|
2749
3987
|
__typename
|
|
2750
3988
|
currency_amount_original_value: original_value
|
|
2751
3989
|
currency_amount_original_unit: original_unit
|
|
@@ -2753,7 +3991,7 @@ fragment TransactionFragment on Transaction {
|
|
|
2753
3991
|
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
2754
3992
|
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
2755
3993
|
}
|
|
2756
|
-
|
|
3994
|
+
lightspark_node_with_remote_signing_local_balance: local_balance {
|
|
2757
3995
|
__typename
|
|
2758
3996
|
currency_amount_original_value: original_value
|
|
2759
3997
|
currency_amount_original_unit: original_unit
|
|
@@ -2761,8 +3999,7 @@ fragment TransactionFragment on Transaction {
|
|
|
2761
3999
|
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
2762
4000
|
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
2763
4001
|
}
|
|
2764
|
-
|
|
2765
|
-
lightspark_node_remote_balance: remote_balance {
|
|
4002
|
+
lightspark_node_with_remote_signing_remote_balance: remote_balance {
|
|
2766
4003
|
__typename
|
|
2767
4004
|
currency_amount_original_value: original_value
|
|
2768
4005
|
currency_amount_original_unit: original_unit
|
|
@@ -2770,7 +4007,58 @@ fragment TransactionFragment on Transaction {
|
|
|
2770
4007
|
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
2771
4008
|
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
2772
4009
|
}
|
|
2773
|
-
|
|
4010
|
+
lightspark_node_with_remote_signing_blockchain_balance: blockchain_balance {
|
|
4011
|
+
__typename
|
|
4012
|
+
blockchain_balance_total_balance: total_balance {
|
|
4013
|
+
__typename
|
|
4014
|
+
currency_amount_original_value: original_value
|
|
4015
|
+
currency_amount_original_unit: original_unit
|
|
4016
|
+
currency_amount_preferred_currency_unit: preferred_currency_unit
|
|
4017
|
+
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
4018
|
+
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
4019
|
+
}
|
|
4020
|
+
blockchain_balance_confirmed_balance: confirmed_balance {
|
|
4021
|
+
__typename
|
|
4022
|
+
currency_amount_original_value: original_value
|
|
4023
|
+
currency_amount_original_unit: original_unit
|
|
4024
|
+
currency_amount_preferred_currency_unit: preferred_currency_unit
|
|
4025
|
+
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
4026
|
+
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
4027
|
+
}
|
|
4028
|
+
blockchain_balance_unconfirmed_balance: unconfirmed_balance {
|
|
4029
|
+
__typename
|
|
4030
|
+
currency_amount_original_value: original_value
|
|
4031
|
+
currency_amount_original_unit: original_unit
|
|
4032
|
+
currency_amount_preferred_currency_unit: preferred_currency_unit
|
|
4033
|
+
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
4034
|
+
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
4035
|
+
}
|
|
4036
|
+
blockchain_balance_locked_balance: locked_balance {
|
|
4037
|
+
__typename
|
|
4038
|
+
currency_amount_original_value: original_value
|
|
4039
|
+
currency_amount_original_unit: original_unit
|
|
4040
|
+
currency_amount_preferred_currency_unit: preferred_currency_unit
|
|
4041
|
+
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
4042
|
+
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
4043
|
+
}
|
|
4044
|
+
blockchain_balance_required_reserve: required_reserve {
|
|
4045
|
+
__typename
|
|
4046
|
+
currency_amount_original_value: original_value
|
|
4047
|
+
currency_amount_original_unit: original_unit
|
|
4048
|
+
currency_amount_preferred_currency_unit: preferred_currency_unit
|
|
4049
|
+
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
4050
|
+
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
4051
|
+
}
|
|
4052
|
+
blockchain_balance_available_balance: available_balance {
|
|
4053
|
+
__typename
|
|
4054
|
+
currency_amount_original_value: original_value
|
|
4055
|
+
currency_amount_original_unit: original_unit
|
|
4056
|
+
currency_amount_preferred_currency_unit: preferred_currency_unit
|
|
4057
|
+
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
4058
|
+
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
4059
|
+
}
|
|
4060
|
+
}
|
|
4061
|
+
lightspark_node_with_remote_signing_uma_prescreening_utxos: uma_prescreening_utxos
|
|
2774
4062
|
}
|
|
2775
4063
|
}
|
|
2776
4064
|
}
|
|
@@ -2780,6 +4068,18 @@ fragment TransactionFragment on Transaction {
|
|
|
2780
4068
|
__typename
|
|
2781
4069
|
rich_text_text: text
|
|
2782
4070
|
}
|
|
4071
|
+
outgoing_payment_uma_post_transaction_data: uma_post_transaction_data {
|
|
4072
|
+
__typename
|
|
4073
|
+
post_transaction_data_utxo: utxo
|
|
4074
|
+
post_transaction_data_amount: amount {
|
|
4075
|
+
__typename
|
|
4076
|
+
currency_amount_original_value: original_value
|
|
4077
|
+
currency_amount_original_unit: original_unit
|
|
4078
|
+
currency_amount_preferred_currency_unit: preferred_currency_unit
|
|
4079
|
+
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
4080
|
+
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
4081
|
+
}
|
|
4082
|
+
}
|
|
2783
4083
|
}
|
|
2784
4084
|
... on RoutingTransaction {
|
|
2785
4085
|
__typename
|
|
@@ -2861,7 +4161,7 @@ query GetTransaction($id: ID!) {
|
|
|
2861
4161
|
}
|
|
2862
4162
|
}
|
|
2863
4163
|
|
|
2864
|
-
${
|
|
4164
|
+
${FRAGMENT14}
|
|
2865
4165
|
`,
|
|
2866
4166
|
variables: { id },
|
|
2867
4167
|
constructObject: (data) => TransactionFromJson(data.entity)
|
|
@@ -2892,7 +4192,7 @@ var AccountToTransactionsConnectionFromJson = (obj) => {
|
|
|
2892
4192
|
};
|
|
2893
4193
|
|
|
2894
4194
|
// src/objects/Wallet.ts
|
|
2895
|
-
var
|
|
4195
|
+
var import_auto_bind11 = __toESM(require("auto-bind"), 1);
|
|
2896
4196
|
|
|
2897
4197
|
// src/objects/Balances.ts
|
|
2898
4198
|
var BalancesFromJson = (obj) => {
|
|
@@ -2953,7 +4253,7 @@ var WalletToTransactionsConnectionFromJson = (obj) => {
|
|
|
2953
4253
|
|
|
2954
4254
|
// src/objects/Wallet.ts
|
|
2955
4255
|
var Wallet = class {
|
|
2956
|
-
constructor(id, createdAt, updatedAt, thirdPartyIdentifier, status, typename, lastLoginAt, balances) {
|
|
4256
|
+
constructor(id, createdAt, updatedAt, thirdPartyIdentifier, status, typename, lastLoginAt, balances, accountId) {
|
|
2957
4257
|
this.id = id;
|
|
2958
4258
|
this.createdAt = createdAt;
|
|
2959
4259
|
this.updatedAt = updatedAt;
|
|
@@ -2962,7 +4262,8 @@ var Wallet = class {
|
|
|
2962
4262
|
this.typename = typename;
|
|
2963
4263
|
this.lastLoginAt = lastLoginAt;
|
|
2964
4264
|
this.balances = balances;
|
|
2965
|
-
|
|
4265
|
+
this.accountId = accountId;
|
|
4266
|
+
(0, import_auto_bind11.default)(this);
|
|
2966
4267
|
}
|
|
2967
4268
|
async getTransactions(client, first = void 0, after = void 0, createdAfterDate = void 0, createdBeforeDate = void 0, statuses = void 0, types = void 0) {
|
|
2968
4269
|
return await client.executeRawQuery({
|
|
@@ -3094,15 +4395,24 @@ query FetchWalletToTransactionsConnection($entity_id: ID!, $first: Int, $after:
|
|
|
3094
4395
|
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
3095
4396
|
}
|
|
3096
4397
|
incoming_payment_transaction_hash: transaction_hash
|
|
3097
|
-
incoming_payment_origin: origin {
|
|
3098
|
-
id
|
|
3099
|
-
}
|
|
3100
4398
|
incoming_payment_destination: destination {
|
|
3101
4399
|
id
|
|
3102
4400
|
}
|
|
3103
4401
|
incoming_payment_payment_request: payment_request {
|
|
3104
4402
|
id
|
|
3105
4403
|
}
|
|
4404
|
+
incoming_payment_uma_post_transaction_data: uma_post_transaction_data {
|
|
4405
|
+
__typename
|
|
4406
|
+
post_transaction_data_utxo: utxo
|
|
4407
|
+
post_transaction_data_amount: amount {
|
|
4408
|
+
__typename
|
|
4409
|
+
currency_amount_original_value: original_value
|
|
4410
|
+
currency_amount_original_unit: original_unit
|
|
4411
|
+
currency_amount_preferred_currency_unit: preferred_currency_unit
|
|
4412
|
+
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
4413
|
+
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
4414
|
+
}
|
|
4415
|
+
}
|
|
3106
4416
|
}
|
|
3107
4417
|
... on OutgoingPayment {
|
|
3108
4418
|
__typename
|
|
@@ -3166,24 +4476,54 @@ query FetchWalletToTransactionsConnection($entity_id: ID!, $first: Int, $after:
|
|
|
3166
4476
|
graph_node_display_name: display_name
|
|
3167
4477
|
graph_node_public_key: public_key
|
|
3168
4478
|
}
|
|
3169
|
-
... on
|
|
4479
|
+
... on LightsparkNodeWithOSK {
|
|
3170
4480
|
__typename
|
|
3171
|
-
|
|
3172
|
-
|
|
3173
|
-
|
|
3174
|
-
|
|
3175
|
-
|
|
3176
|
-
|
|
3177
|
-
|
|
3178
|
-
|
|
3179
|
-
|
|
3180
|
-
|
|
4481
|
+
lightspark_node_with_o_s_k_id: id
|
|
4482
|
+
lightspark_node_with_o_s_k_created_at: created_at
|
|
4483
|
+
lightspark_node_with_o_s_k_updated_at: updated_at
|
|
4484
|
+
lightspark_node_with_o_s_k_alias: alias
|
|
4485
|
+
lightspark_node_with_o_s_k_bitcoin_network: bitcoin_network
|
|
4486
|
+
lightspark_node_with_o_s_k_color: color
|
|
4487
|
+
lightspark_node_with_o_s_k_conductivity: conductivity
|
|
4488
|
+
lightspark_node_with_o_s_k_display_name: display_name
|
|
4489
|
+
lightspark_node_with_o_s_k_public_key: public_key
|
|
4490
|
+
lightspark_node_with_o_s_k_owner: owner {
|
|
3181
4491
|
id
|
|
3182
4492
|
}
|
|
3183
|
-
|
|
3184
|
-
|
|
4493
|
+
lightspark_node_with_o_s_k_status: status
|
|
4494
|
+
lightspark_node_with_o_s_k_total_balance: total_balance {
|
|
4495
|
+
__typename
|
|
4496
|
+
currency_amount_original_value: original_value
|
|
4497
|
+
currency_amount_original_unit: original_unit
|
|
4498
|
+
currency_amount_preferred_currency_unit: preferred_currency_unit
|
|
4499
|
+
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
4500
|
+
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
4501
|
+
}
|
|
4502
|
+
lightspark_node_with_o_s_k_total_local_balance: total_local_balance {
|
|
4503
|
+
__typename
|
|
4504
|
+
currency_amount_original_value: original_value
|
|
4505
|
+
currency_amount_original_unit: original_unit
|
|
4506
|
+
currency_amount_preferred_currency_unit: preferred_currency_unit
|
|
4507
|
+
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
4508
|
+
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
4509
|
+
}
|
|
4510
|
+
lightspark_node_with_o_s_k_local_balance: local_balance {
|
|
4511
|
+
__typename
|
|
4512
|
+
currency_amount_original_value: original_value
|
|
4513
|
+
currency_amount_original_unit: original_unit
|
|
4514
|
+
currency_amount_preferred_currency_unit: preferred_currency_unit
|
|
4515
|
+
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
4516
|
+
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
4517
|
+
}
|
|
4518
|
+
lightspark_node_with_o_s_k_remote_balance: remote_balance {
|
|
4519
|
+
__typename
|
|
4520
|
+
currency_amount_original_value: original_value
|
|
4521
|
+
currency_amount_original_unit: original_unit
|
|
4522
|
+
currency_amount_preferred_currency_unit: preferred_currency_unit
|
|
4523
|
+
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
4524
|
+
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
3185
4525
|
}
|
|
3186
|
-
|
|
4526
|
+
lightspark_node_with_o_s_k_blockchain_balance: blockchain_balance {
|
|
3187
4527
|
__typename
|
|
3188
4528
|
blockchain_balance_total_balance: total_balance {
|
|
3189
4529
|
__typename
|
|
@@ -3234,12 +4574,29 @@ query FetchWalletToTransactionsConnection($entity_id: ID!, $first: Int, $after:
|
|
|
3234
4574
|
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
3235
4575
|
}
|
|
3236
4576
|
}
|
|
3237
|
-
|
|
4577
|
+
lightspark_node_with_o_s_k_uma_prescreening_utxos: uma_prescreening_utxos
|
|
4578
|
+
lightspark_node_with_o_s_k_encrypted_signing_private_key: encrypted_signing_private_key {
|
|
3238
4579
|
__typename
|
|
3239
4580
|
secret_encrypted_value: encrypted_value
|
|
3240
4581
|
secret_cipher: cipher
|
|
3241
4582
|
}
|
|
3242
|
-
|
|
4583
|
+
}
|
|
4584
|
+
... on LightsparkNodeWithRemoteSigning {
|
|
4585
|
+
__typename
|
|
4586
|
+
lightspark_node_with_remote_signing_id: id
|
|
4587
|
+
lightspark_node_with_remote_signing_created_at: created_at
|
|
4588
|
+
lightspark_node_with_remote_signing_updated_at: updated_at
|
|
4589
|
+
lightspark_node_with_remote_signing_alias: alias
|
|
4590
|
+
lightspark_node_with_remote_signing_bitcoin_network: bitcoin_network
|
|
4591
|
+
lightspark_node_with_remote_signing_color: color
|
|
4592
|
+
lightspark_node_with_remote_signing_conductivity: conductivity
|
|
4593
|
+
lightspark_node_with_remote_signing_display_name: display_name
|
|
4594
|
+
lightspark_node_with_remote_signing_public_key: public_key
|
|
4595
|
+
lightspark_node_with_remote_signing_owner: owner {
|
|
4596
|
+
id
|
|
4597
|
+
}
|
|
4598
|
+
lightspark_node_with_remote_signing_status: status
|
|
4599
|
+
lightspark_node_with_remote_signing_total_balance: total_balance {
|
|
3243
4600
|
__typename
|
|
3244
4601
|
currency_amount_original_value: original_value
|
|
3245
4602
|
currency_amount_original_unit: original_unit
|
|
@@ -3247,7 +4604,7 @@ query FetchWalletToTransactionsConnection($entity_id: ID!, $first: Int, $after:
|
|
|
3247
4604
|
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
3248
4605
|
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
3249
4606
|
}
|
|
3250
|
-
|
|
4607
|
+
lightspark_node_with_remote_signing_total_local_balance: total_local_balance {
|
|
3251
4608
|
__typename
|
|
3252
4609
|
currency_amount_original_value: original_value
|
|
3253
4610
|
currency_amount_original_unit: original_unit
|
|
@@ -3255,7 +4612,7 @@ query FetchWalletToTransactionsConnection($entity_id: ID!, $first: Int, $after:
|
|
|
3255
4612
|
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
3256
4613
|
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
3257
4614
|
}
|
|
3258
|
-
|
|
4615
|
+
lightspark_node_with_remote_signing_local_balance: local_balance {
|
|
3259
4616
|
__typename
|
|
3260
4617
|
currency_amount_original_value: original_value
|
|
3261
4618
|
currency_amount_original_unit: original_unit
|
|
@@ -3263,8 +4620,7 @@ query FetchWalletToTransactionsConnection($entity_id: ID!, $first: Int, $after:
|
|
|
3263
4620
|
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
3264
4621
|
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
3265
4622
|
}
|
|
3266
|
-
|
|
3267
|
-
lightspark_node_remote_balance: remote_balance {
|
|
4623
|
+
lightspark_node_with_remote_signing_remote_balance: remote_balance {
|
|
3268
4624
|
__typename
|
|
3269
4625
|
currency_amount_original_value: original_value
|
|
3270
4626
|
currency_amount_original_unit: original_unit
|
|
@@ -3272,7 +4628,58 @@ query FetchWalletToTransactionsConnection($entity_id: ID!, $first: Int, $after:
|
|
|
3272
4628
|
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
3273
4629
|
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
3274
4630
|
}
|
|
3275
|
-
|
|
4631
|
+
lightspark_node_with_remote_signing_blockchain_balance: blockchain_balance {
|
|
4632
|
+
__typename
|
|
4633
|
+
blockchain_balance_total_balance: total_balance {
|
|
4634
|
+
__typename
|
|
4635
|
+
currency_amount_original_value: original_value
|
|
4636
|
+
currency_amount_original_unit: original_unit
|
|
4637
|
+
currency_amount_preferred_currency_unit: preferred_currency_unit
|
|
4638
|
+
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
4639
|
+
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
4640
|
+
}
|
|
4641
|
+
blockchain_balance_confirmed_balance: confirmed_balance {
|
|
4642
|
+
__typename
|
|
4643
|
+
currency_amount_original_value: original_value
|
|
4644
|
+
currency_amount_original_unit: original_unit
|
|
4645
|
+
currency_amount_preferred_currency_unit: preferred_currency_unit
|
|
4646
|
+
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
4647
|
+
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
4648
|
+
}
|
|
4649
|
+
blockchain_balance_unconfirmed_balance: unconfirmed_balance {
|
|
4650
|
+
__typename
|
|
4651
|
+
currency_amount_original_value: original_value
|
|
4652
|
+
currency_amount_original_unit: original_unit
|
|
4653
|
+
currency_amount_preferred_currency_unit: preferred_currency_unit
|
|
4654
|
+
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
4655
|
+
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
4656
|
+
}
|
|
4657
|
+
blockchain_balance_locked_balance: locked_balance {
|
|
4658
|
+
__typename
|
|
4659
|
+
currency_amount_original_value: original_value
|
|
4660
|
+
currency_amount_original_unit: original_unit
|
|
4661
|
+
currency_amount_preferred_currency_unit: preferred_currency_unit
|
|
4662
|
+
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
4663
|
+
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
4664
|
+
}
|
|
4665
|
+
blockchain_balance_required_reserve: required_reserve {
|
|
4666
|
+
__typename
|
|
4667
|
+
currency_amount_original_value: original_value
|
|
4668
|
+
currency_amount_original_unit: original_unit
|
|
4669
|
+
currency_amount_preferred_currency_unit: preferred_currency_unit
|
|
4670
|
+
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
4671
|
+
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
4672
|
+
}
|
|
4673
|
+
blockchain_balance_available_balance: available_balance {
|
|
4674
|
+
__typename
|
|
4675
|
+
currency_amount_original_value: original_value
|
|
4676
|
+
currency_amount_original_unit: original_unit
|
|
4677
|
+
currency_amount_preferred_currency_unit: preferred_currency_unit
|
|
4678
|
+
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
4679
|
+
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
4680
|
+
}
|
|
4681
|
+
}
|
|
4682
|
+
lightspark_node_with_remote_signing_uma_prescreening_utxos: uma_prescreening_utxos
|
|
3276
4683
|
}
|
|
3277
4684
|
}
|
|
3278
4685
|
}
|
|
@@ -3282,6 +4689,18 @@ query FetchWalletToTransactionsConnection($entity_id: ID!, $first: Int, $after:
|
|
|
3282
4689
|
__typename
|
|
3283
4690
|
rich_text_text: text
|
|
3284
4691
|
}
|
|
4692
|
+
outgoing_payment_uma_post_transaction_data: uma_post_transaction_data {
|
|
4693
|
+
__typename
|
|
4694
|
+
post_transaction_data_utxo: utxo
|
|
4695
|
+
post_transaction_data_amount: amount {
|
|
4696
|
+
__typename
|
|
4697
|
+
currency_amount_original_value: original_value
|
|
4698
|
+
currency_amount_original_unit: original_unit
|
|
4699
|
+
currency_amount_preferred_currency_unit: preferred_currency_unit
|
|
4700
|
+
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
4701
|
+
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
4702
|
+
}
|
|
4703
|
+
}
|
|
3285
4704
|
}
|
|
3286
4705
|
... on RoutingTransaction {
|
|
3287
4706
|
__typename
|
|
@@ -3425,24 +4844,54 @@ query FetchWalletToPaymentRequestsConnection($entity_id: ID!, $first: Int, $afte
|
|
|
3425
4844
|
graph_node_display_name: display_name
|
|
3426
4845
|
graph_node_public_key: public_key
|
|
3427
4846
|
}
|
|
3428
|
-
... on
|
|
4847
|
+
... on LightsparkNodeWithOSK {
|
|
3429
4848
|
__typename
|
|
3430
|
-
|
|
3431
|
-
|
|
3432
|
-
|
|
3433
|
-
|
|
3434
|
-
|
|
3435
|
-
|
|
3436
|
-
|
|
3437
|
-
|
|
3438
|
-
|
|
3439
|
-
|
|
4849
|
+
lightspark_node_with_o_s_k_id: id
|
|
4850
|
+
lightspark_node_with_o_s_k_created_at: created_at
|
|
4851
|
+
lightspark_node_with_o_s_k_updated_at: updated_at
|
|
4852
|
+
lightspark_node_with_o_s_k_alias: alias
|
|
4853
|
+
lightspark_node_with_o_s_k_bitcoin_network: bitcoin_network
|
|
4854
|
+
lightspark_node_with_o_s_k_color: color
|
|
4855
|
+
lightspark_node_with_o_s_k_conductivity: conductivity
|
|
4856
|
+
lightspark_node_with_o_s_k_display_name: display_name
|
|
4857
|
+
lightspark_node_with_o_s_k_public_key: public_key
|
|
4858
|
+
lightspark_node_with_o_s_k_owner: owner {
|
|
3440
4859
|
id
|
|
3441
4860
|
}
|
|
3442
|
-
|
|
3443
|
-
|
|
4861
|
+
lightspark_node_with_o_s_k_status: status
|
|
4862
|
+
lightspark_node_with_o_s_k_total_balance: total_balance {
|
|
4863
|
+
__typename
|
|
4864
|
+
currency_amount_original_value: original_value
|
|
4865
|
+
currency_amount_original_unit: original_unit
|
|
4866
|
+
currency_amount_preferred_currency_unit: preferred_currency_unit
|
|
4867
|
+
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
4868
|
+
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
4869
|
+
}
|
|
4870
|
+
lightspark_node_with_o_s_k_total_local_balance: total_local_balance {
|
|
4871
|
+
__typename
|
|
4872
|
+
currency_amount_original_value: original_value
|
|
4873
|
+
currency_amount_original_unit: original_unit
|
|
4874
|
+
currency_amount_preferred_currency_unit: preferred_currency_unit
|
|
4875
|
+
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
4876
|
+
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
4877
|
+
}
|
|
4878
|
+
lightspark_node_with_o_s_k_local_balance: local_balance {
|
|
4879
|
+
__typename
|
|
4880
|
+
currency_amount_original_value: original_value
|
|
4881
|
+
currency_amount_original_unit: original_unit
|
|
4882
|
+
currency_amount_preferred_currency_unit: preferred_currency_unit
|
|
4883
|
+
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
4884
|
+
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
4885
|
+
}
|
|
4886
|
+
lightspark_node_with_o_s_k_remote_balance: remote_balance {
|
|
4887
|
+
__typename
|
|
4888
|
+
currency_amount_original_value: original_value
|
|
4889
|
+
currency_amount_original_unit: original_unit
|
|
4890
|
+
currency_amount_preferred_currency_unit: preferred_currency_unit
|
|
4891
|
+
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
4892
|
+
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
3444
4893
|
}
|
|
3445
|
-
|
|
4894
|
+
lightspark_node_with_o_s_k_blockchain_balance: blockchain_balance {
|
|
3446
4895
|
__typename
|
|
3447
4896
|
blockchain_balance_total_balance: total_balance {
|
|
3448
4897
|
__typename
|
|
@@ -3493,12 +4942,29 @@ query FetchWalletToPaymentRequestsConnection($entity_id: ID!, $first: Int, $afte
|
|
|
3493
4942
|
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
3494
4943
|
}
|
|
3495
4944
|
}
|
|
3496
|
-
|
|
4945
|
+
lightspark_node_with_o_s_k_uma_prescreening_utxos: uma_prescreening_utxos
|
|
4946
|
+
lightspark_node_with_o_s_k_encrypted_signing_private_key: encrypted_signing_private_key {
|
|
3497
4947
|
__typename
|
|
3498
4948
|
secret_encrypted_value: encrypted_value
|
|
3499
4949
|
secret_cipher: cipher
|
|
3500
4950
|
}
|
|
3501
|
-
|
|
4951
|
+
}
|
|
4952
|
+
... on LightsparkNodeWithRemoteSigning {
|
|
4953
|
+
__typename
|
|
4954
|
+
lightspark_node_with_remote_signing_id: id
|
|
4955
|
+
lightspark_node_with_remote_signing_created_at: created_at
|
|
4956
|
+
lightspark_node_with_remote_signing_updated_at: updated_at
|
|
4957
|
+
lightspark_node_with_remote_signing_alias: alias
|
|
4958
|
+
lightspark_node_with_remote_signing_bitcoin_network: bitcoin_network
|
|
4959
|
+
lightspark_node_with_remote_signing_color: color
|
|
4960
|
+
lightspark_node_with_remote_signing_conductivity: conductivity
|
|
4961
|
+
lightspark_node_with_remote_signing_display_name: display_name
|
|
4962
|
+
lightspark_node_with_remote_signing_public_key: public_key
|
|
4963
|
+
lightspark_node_with_remote_signing_owner: owner {
|
|
4964
|
+
id
|
|
4965
|
+
}
|
|
4966
|
+
lightspark_node_with_remote_signing_status: status
|
|
4967
|
+
lightspark_node_with_remote_signing_total_balance: total_balance {
|
|
3502
4968
|
__typename
|
|
3503
4969
|
currency_amount_original_value: original_value
|
|
3504
4970
|
currency_amount_original_unit: original_unit
|
|
@@ -3506,7 +4972,7 @@ query FetchWalletToPaymentRequestsConnection($entity_id: ID!, $first: Int, $afte
|
|
|
3506
4972
|
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
3507
4973
|
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
3508
4974
|
}
|
|
3509
|
-
|
|
4975
|
+
lightspark_node_with_remote_signing_total_local_balance: total_local_balance {
|
|
3510
4976
|
__typename
|
|
3511
4977
|
currency_amount_original_value: original_value
|
|
3512
4978
|
currency_amount_original_unit: original_unit
|
|
@@ -3514,7 +4980,7 @@ query FetchWalletToPaymentRequestsConnection($entity_id: ID!, $first: Int, $afte
|
|
|
3514
4980
|
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
3515
4981
|
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
3516
4982
|
}
|
|
3517
|
-
|
|
4983
|
+
lightspark_node_with_remote_signing_local_balance: local_balance {
|
|
3518
4984
|
__typename
|
|
3519
4985
|
currency_amount_original_value: original_value
|
|
3520
4986
|
currency_amount_original_unit: original_unit
|
|
@@ -3522,8 +4988,7 @@ query FetchWalletToPaymentRequestsConnection($entity_id: ID!, $first: Int, $afte
|
|
|
3522
4988
|
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
3523
4989
|
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
3524
4990
|
}
|
|
3525
|
-
|
|
3526
|
-
lightspark_node_remote_balance: remote_balance {
|
|
4991
|
+
lightspark_node_with_remote_signing_remote_balance: remote_balance {
|
|
3527
4992
|
__typename
|
|
3528
4993
|
currency_amount_original_value: original_value
|
|
3529
4994
|
currency_amount_original_unit: original_unit
|
|
@@ -3531,7 +4996,58 @@ query FetchWalletToPaymentRequestsConnection($entity_id: ID!, $first: Int, $afte
|
|
|
3531
4996
|
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
3532
4997
|
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
3533
4998
|
}
|
|
3534
|
-
|
|
4999
|
+
lightspark_node_with_remote_signing_blockchain_balance: blockchain_balance {
|
|
5000
|
+
__typename
|
|
5001
|
+
blockchain_balance_total_balance: total_balance {
|
|
5002
|
+
__typename
|
|
5003
|
+
currency_amount_original_value: original_value
|
|
5004
|
+
currency_amount_original_unit: original_unit
|
|
5005
|
+
currency_amount_preferred_currency_unit: preferred_currency_unit
|
|
5006
|
+
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
5007
|
+
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
5008
|
+
}
|
|
5009
|
+
blockchain_balance_confirmed_balance: confirmed_balance {
|
|
5010
|
+
__typename
|
|
5011
|
+
currency_amount_original_value: original_value
|
|
5012
|
+
currency_amount_original_unit: original_unit
|
|
5013
|
+
currency_amount_preferred_currency_unit: preferred_currency_unit
|
|
5014
|
+
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
5015
|
+
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
5016
|
+
}
|
|
5017
|
+
blockchain_balance_unconfirmed_balance: unconfirmed_balance {
|
|
5018
|
+
__typename
|
|
5019
|
+
currency_amount_original_value: original_value
|
|
5020
|
+
currency_amount_original_unit: original_unit
|
|
5021
|
+
currency_amount_preferred_currency_unit: preferred_currency_unit
|
|
5022
|
+
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
5023
|
+
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
5024
|
+
}
|
|
5025
|
+
blockchain_balance_locked_balance: locked_balance {
|
|
5026
|
+
__typename
|
|
5027
|
+
currency_amount_original_value: original_value
|
|
5028
|
+
currency_amount_original_unit: original_unit
|
|
5029
|
+
currency_amount_preferred_currency_unit: preferred_currency_unit
|
|
5030
|
+
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
5031
|
+
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
5032
|
+
}
|
|
5033
|
+
blockchain_balance_required_reserve: required_reserve {
|
|
5034
|
+
__typename
|
|
5035
|
+
currency_amount_original_value: original_value
|
|
5036
|
+
currency_amount_original_unit: original_unit
|
|
5037
|
+
currency_amount_preferred_currency_unit: preferred_currency_unit
|
|
5038
|
+
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
5039
|
+
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
5040
|
+
}
|
|
5041
|
+
blockchain_balance_available_balance: available_balance {
|
|
5042
|
+
__typename
|
|
5043
|
+
currency_amount_original_value: original_value
|
|
5044
|
+
currency_amount_original_unit: original_unit
|
|
5045
|
+
currency_amount_preferred_currency_unit: preferred_currency_unit
|
|
5046
|
+
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
5047
|
+
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
5048
|
+
}
|
|
5049
|
+
}
|
|
5050
|
+
lightspark_node_with_remote_signing_uma_prescreening_utxos: uma_prescreening_utxos
|
|
3535
5051
|
}
|
|
3536
5052
|
}
|
|
3537
5053
|
}
|
|
@@ -3633,7 +5149,7 @@ query GetWallet($id: ID!) {
|
|
|
3633
5149
|
}
|
|
3634
5150
|
}
|
|
3635
5151
|
|
|
3636
|
-
${
|
|
5152
|
+
${FRAGMENT15}
|
|
3637
5153
|
`,
|
|
3638
5154
|
variables: { id },
|
|
3639
5155
|
constructObject: (data) => WalletFromJson(data.entity)
|
|
@@ -3649,10 +5165,11 @@ var WalletFromJson = (obj) => {
|
|
|
3649
5165
|
WalletStatus_default[obj["wallet_status"]] ?? WalletStatus_default.FUTURE_VALUE,
|
|
3650
5166
|
"Wallet",
|
|
3651
5167
|
obj["wallet_last_login_at"],
|
|
3652
|
-
!!obj["wallet_balances"] ? BalancesFromJson(obj["wallet_balances"]) : void 0
|
|
5168
|
+
!!obj["wallet_balances"] ? BalancesFromJson(obj["wallet_balances"]) : void 0,
|
|
5169
|
+
obj["wallet_account"]?.id ?? void 0
|
|
3653
5170
|
);
|
|
3654
5171
|
};
|
|
3655
|
-
var
|
|
5172
|
+
var FRAGMENT15 = `
|
|
3656
5173
|
fragment WalletFragment on Wallet {
|
|
3657
5174
|
__typename
|
|
3658
5175
|
wallet_id: id
|
|
@@ -3687,6 +5204,9 @@ fragment WalletFragment on Wallet {
|
|
|
3687
5204
|
}
|
|
3688
5205
|
}
|
|
3689
5206
|
wallet_third_party_identifier: third_party_identifier
|
|
5207
|
+
wallet_account: account {
|
|
5208
|
+
id
|
|
5209
|
+
}
|
|
3690
5210
|
wallet_status: status
|
|
3691
5211
|
}`;
|
|
3692
5212
|
var Wallet_default = Wallet;
|
|
@@ -3711,7 +5231,7 @@ var Account = class {
|
|
|
3711
5231
|
this.updatedAt = updatedAt;
|
|
3712
5232
|
this.typename = typename;
|
|
3713
5233
|
this.name = name;
|
|
3714
|
-
(0,
|
|
5234
|
+
(0, import_auto_bind12.default)(this);
|
|
3715
5235
|
}
|
|
3716
5236
|
async getApiTokens(client, first = void 0, after = void 0) {
|
|
3717
5237
|
return await client.executeRawQuery({
|
|
@@ -3877,27 +5397,24 @@ query FetchAccountToNodesConnection($first: Int, $bitcoin_networks: [BitcoinNetw
|
|
|
3877
5397
|
page_info_start_cursor: start_cursor
|
|
3878
5398
|
page_info_end_cursor: end_cursor
|
|
3879
5399
|
}
|
|
3880
|
-
account_to_nodes_connection_purpose: purpose
|
|
3881
5400
|
account_to_nodes_connection_entities: entities {
|
|
3882
5401
|
__typename
|
|
3883
|
-
|
|
3884
|
-
lightspark_node_created_at: created_at
|
|
3885
|
-
lightspark_node_updated_at: updated_at
|
|
3886
|
-
lightspark_node_alias: alias
|
|
3887
|
-
lightspark_node_bitcoin_network: bitcoin_network
|
|
3888
|
-
lightspark_node_color: color
|
|
3889
|
-
lightspark_node_conductivity: conductivity
|
|
3890
|
-
lightspark_node_display_name: display_name
|
|
3891
|
-
lightspark_node_public_key: public_key
|
|
3892
|
-
lightspark_node_account: account {
|
|
3893
|
-
id
|
|
3894
|
-
}
|
|
3895
|
-
lightspark_node_owner: owner {
|
|
3896
|
-
id
|
|
3897
|
-
}
|
|
3898
|
-
lightspark_node_blockchain_balance: blockchain_balance {
|
|
5402
|
+
... on LightsparkNodeWithOSK {
|
|
3899
5403
|
__typename
|
|
3900
|
-
|
|
5404
|
+
lightspark_node_with_o_s_k_id: id
|
|
5405
|
+
lightspark_node_with_o_s_k_created_at: created_at
|
|
5406
|
+
lightspark_node_with_o_s_k_updated_at: updated_at
|
|
5407
|
+
lightspark_node_with_o_s_k_alias: alias
|
|
5408
|
+
lightspark_node_with_o_s_k_bitcoin_network: bitcoin_network
|
|
5409
|
+
lightspark_node_with_o_s_k_color: color
|
|
5410
|
+
lightspark_node_with_o_s_k_conductivity: conductivity
|
|
5411
|
+
lightspark_node_with_o_s_k_display_name: display_name
|
|
5412
|
+
lightspark_node_with_o_s_k_public_key: public_key
|
|
5413
|
+
lightspark_node_with_o_s_k_owner: owner {
|
|
5414
|
+
id
|
|
5415
|
+
}
|
|
5416
|
+
lightspark_node_with_o_s_k_status: status
|
|
5417
|
+
lightspark_node_with_o_s_k_total_balance: total_balance {
|
|
3901
5418
|
__typename
|
|
3902
5419
|
currency_amount_original_value: original_value
|
|
3903
5420
|
currency_amount_original_unit: original_unit
|
|
@@ -3905,7 +5422,7 @@ query FetchAccountToNodesConnection($first: Int, $bitcoin_networks: [BitcoinNetw
|
|
|
3905
5422
|
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
3906
5423
|
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
3907
5424
|
}
|
|
3908
|
-
|
|
5425
|
+
lightspark_node_with_o_s_k_total_local_balance: total_local_balance {
|
|
3909
5426
|
__typename
|
|
3910
5427
|
currency_amount_original_value: original_value
|
|
3911
5428
|
currency_amount_original_unit: original_unit
|
|
@@ -3913,7 +5430,7 @@ query FetchAccountToNodesConnection($first: Int, $bitcoin_networks: [BitcoinNetw
|
|
|
3913
5430
|
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
3914
5431
|
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
3915
5432
|
}
|
|
3916
|
-
|
|
5433
|
+
lightspark_node_with_o_s_k_local_balance: local_balance {
|
|
3917
5434
|
__typename
|
|
3918
5435
|
currency_amount_original_value: original_value
|
|
3919
5436
|
currency_amount_original_unit: original_unit
|
|
@@ -3921,7 +5438,7 @@ query FetchAccountToNodesConnection($first: Int, $bitcoin_networks: [BitcoinNetw
|
|
|
3921
5438
|
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
3922
5439
|
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
3923
5440
|
}
|
|
3924
|
-
|
|
5441
|
+
lightspark_node_with_o_s_k_remote_balance: remote_balance {
|
|
3925
5442
|
__typename
|
|
3926
5443
|
currency_amount_original_value: original_value
|
|
3927
5444
|
currency_amount_original_unit: original_unit
|
|
@@ -3929,7 +5446,80 @@ query FetchAccountToNodesConnection($first: Int, $bitcoin_networks: [BitcoinNetw
|
|
|
3929
5446
|
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
3930
5447
|
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
3931
5448
|
}
|
|
3932
|
-
|
|
5449
|
+
lightspark_node_with_o_s_k_blockchain_balance: blockchain_balance {
|
|
5450
|
+
__typename
|
|
5451
|
+
blockchain_balance_total_balance: total_balance {
|
|
5452
|
+
__typename
|
|
5453
|
+
currency_amount_original_value: original_value
|
|
5454
|
+
currency_amount_original_unit: original_unit
|
|
5455
|
+
currency_amount_preferred_currency_unit: preferred_currency_unit
|
|
5456
|
+
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
5457
|
+
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
5458
|
+
}
|
|
5459
|
+
blockchain_balance_confirmed_balance: confirmed_balance {
|
|
5460
|
+
__typename
|
|
5461
|
+
currency_amount_original_value: original_value
|
|
5462
|
+
currency_amount_original_unit: original_unit
|
|
5463
|
+
currency_amount_preferred_currency_unit: preferred_currency_unit
|
|
5464
|
+
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
5465
|
+
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
5466
|
+
}
|
|
5467
|
+
blockchain_balance_unconfirmed_balance: unconfirmed_balance {
|
|
5468
|
+
__typename
|
|
5469
|
+
currency_amount_original_value: original_value
|
|
5470
|
+
currency_amount_original_unit: original_unit
|
|
5471
|
+
currency_amount_preferred_currency_unit: preferred_currency_unit
|
|
5472
|
+
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
5473
|
+
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
5474
|
+
}
|
|
5475
|
+
blockchain_balance_locked_balance: locked_balance {
|
|
5476
|
+
__typename
|
|
5477
|
+
currency_amount_original_value: original_value
|
|
5478
|
+
currency_amount_original_unit: original_unit
|
|
5479
|
+
currency_amount_preferred_currency_unit: preferred_currency_unit
|
|
5480
|
+
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
5481
|
+
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
5482
|
+
}
|
|
5483
|
+
blockchain_balance_required_reserve: required_reserve {
|
|
5484
|
+
__typename
|
|
5485
|
+
currency_amount_original_value: original_value
|
|
5486
|
+
currency_amount_original_unit: original_unit
|
|
5487
|
+
currency_amount_preferred_currency_unit: preferred_currency_unit
|
|
5488
|
+
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
5489
|
+
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
5490
|
+
}
|
|
5491
|
+
blockchain_balance_available_balance: available_balance {
|
|
5492
|
+
__typename
|
|
5493
|
+
currency_amount_original_value: original_value
|
|
5494
|
+
currency_amount_original_unit: original_unit
|
|
5495
|
+
currency_amount_preferred_currency_unit: preferred_currency_unit
|
|
5496
|
+
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
5497
|
+
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
5498
|
+
}
|
|
5499
|
+
}
|
|
5500
|
+
lightspark_node_with_o_s_k_uma_prescreening_utxos: uma_prescreening_utxos
|
|
5501
|
+
lightspark_node_with_o_s_k_encrypted_signing_private_key: encrypted_signing_private_key {
|
|
5502
|
+
__typename
|
|
5503
|
+
secret_encrypted_value: encrypted_value
|
|
5504
|
+
secret_cipher: cipher
|
|
5505
|
+
}
|
|
5506
|
+
}
|
|
5507
|
+
... on LightsparkNodeWithRemoteSigning {
|
|
5508
|
+
__typename
|
|
5509
|
+
lightspark_node_with_remote_signing_id: id
|
|
5510
|
+
lightspark_node_with_remote_signing_created_at: created_at
|
|
5511
|
+
lightspark_node_with_remote_signing_updated_at: updated_at
|
|
5512
|
+
lightspark_node_with_remote_signing_alias: alias
|
|
5513
|
+
lightspark_node_with_remote_signing_bitcoin_network: bitcoin_network
|
|
5514
|
+
lightspark_node_with_remote_signing_color: color
|
|
5515
|
+
lightspark_node_with_remote_signing_conductivity: conductivity
|
|
5516
|
+
lightspark_node_with_remote_signing_display_name: display_name
|
|
5517
|
+
lightspark_node_with_remote_signing_public_key: public_key
|
|
5518
|
+
lightspark_node_with_remote_signing_owner: owner {
|
|
5519
|
+
id
|
|
5520
|
+
}
|
|
5521
|
+
lightspark_node_with_remote_signing_status: status
|
|
5522
|
+
lightspark_node_with_remote_signing_total_balance: total_balance {
|
|
3933
5523
|
__typename
|
|
3934
5524
|
currency_amount_original_value: original_value
|
|
3935
5525
|
currency_amount_original_unit: original_unit
|
|
@@ -3937,7 +5527,7 @@ query FetchAccountToNodesConnection($first: Int, $bitcoin_networks: [BitcoinNetw
|
|
|
3937
5527
|
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
3938
5528
|
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
3939
5529
|
}
|
|
3940
|
-
|
|
5530
|
+
lightspark_node_with_remote_signing_total_local_balance: total_local_balance {
|
|
3941
5531
|
__typename
|
|
3942
5532
|
currency_amount_original_value: original_value
|
|
3943
5533
|
currency_amount_original_unit: original_unit
|
|
@@ -3945,46 +5535,75 @@ query FetchAccountToNodesConnection($first: Int, $bitcoin_networks: [BitcoinNetw
|
|
|
3945
5535
|
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
3946
5536
|
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
3947
5537
|
}
|
|
5538
|
+
lightspark_node_with_remote_signing_local_balance: local_balance {
|
|
5539
|
+
__typename
|
|
5540
|
+
currency_amount_original_value: original_value
|
|
5541
|
+
currency_amount_original_unit: original_unit
|
|
5542
|
+
currency_amount_preferred_currency_unit: preferred_currency_unit
|
|
5543
|
+
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
5544
|
+
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
5545
|
+
}
|
|
5546
|
+
lightspark_node_with_remote_signing_remote_balance: remote_balance {
|
|
5547
|
+
__typename
|
|
5548
|
+
currency_amount_original_value: original_value
|
|
5549
|
+
currency_amount_original_unit: original_unit
|
|
5550
|
+
currency_amount_preferred_currency_unit: preferred_currency_unit
|
|
5551
|
+
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
5552
|
+
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
5553
|
+
}
|
|
5554
|
+
lightspark_node_with_remote_signing_blockchain_balance: blockchain_balance {
|
|
5555
|
+
__typename
|
|
5556
|
+
blockchain_balance_total_balance: total_balance {
|
|
5557
|
+
__typename
|
|
5558
|
+
currency_amount_original_value: original_value
|
|
5559
|
+
currency_amount_original_unit: original_unit
|
|
5560
|
+
currency_amount_preferred_currency_unit: preferred_currency_unit
|
|
5561
|
+
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
5562
|
+
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
5563
|
+
}
|
|
5564
|
+
blockchain_balance_confirmed_balance: confirmed_balance {
|
|
5565
|
+
__typename
|
|
5566
|
+
currency_amount_original_value: original_value
|
|
5567
|
+
currency_amount_original_unit: original_unit
|
|
5568
|
+
currency_amount_preferred_currency_unit: preferred_currency_unit
|
|
5569
|
+
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
5570
|
+
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
5571
|
+
}
|
|
5572
|
+
blockchain_balance_unconfirmed_balance: unconfirmed_balance {
|
|
5573
|
+
__typename
|
|
5574
|
+
currency_amount_original_value: original_value
|
|
5575
|
+
currency_amount_original_unit: original_unit
|
|
5576
|
+
currency_amount_preferred_currency_unit: preferred_currency_unit
|
|
5577
|
+
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
5578
|
+
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
5579
|
+
}
|
|
5580
|
+
blockchain_balance_locked_balance: locked_balance {
|
|
5581
|
+
__typename
|
|
5582
|
+
currency_amount_original_value: original_value
|
|
5583
|
+
currency_amount_original_unit: original_unit
|
|
5584
|
+
currency_amount_preferred_currency_unit: preferred_currency_unit
|
|
5585
|
+
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
5586
|
+
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
5587
|
+
}
|
|
5588
|
+
blockchain_balance_required_reserve: required_reserve {
|
|
5589
|
+
__typename
|
|
5590
|
+
currency_amount_original_value: original_value
|
|
5591
|
+
currency_amount_original_unit: original_unit
|
|
5592
|
+
currency_amount_preferred_currency_unit: preferred_currency_unit
|
|
5593
|
+
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
5594
|
+
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
5595
|
+
}
|
|
5596
|
+
blockchain_balance_available_balance: available_balance {
|
|
5597
|
+
__typename
|
|
5598
|
+
currency_amount_original_value: original_value
|
|
5599
|
+
currency_amount_original_unit: original_unit
|
|
5600
|
+
currency_amount_preferred_currency_unit: preferred_currency_unit
|
|
5601
|
+
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
5602
|
+
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
5603
|
+
}
|
|
5604
|
+
}
|
|
5605
|
+
lightspark_node_with_remote_signing_uma_prescreening_utxos: uma_prescreening_utxos
|
|
3948
5606
|
}
|
|
3949
|
-
lightspark_node_encrypted_signing_private_key: encrypted_signing_private_key {
|
|
3950
|
-
__typename
|
|
3951
|
-
secret_encrypted_value: encrypted_value
|
|
3952
|
-
secret_cipher: cipher
|
|
3953
|
-
}
|
|
3954
|
-
lightspark_node_total_balance: total_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
|
-
lightspark_node_total_local_balance: total_local_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
|
-
lightspark_node_local_balance: local_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
|
-
lightspark_node_purpose: purpose
|
|
3979
|
-
lightspark_node_remote_balance: remote_balance {
|
|
3980
|
-
__typename
|
|
3981
|
-
currency_amount_original_value: original_value
|
|
3982
|
-
currency_amount_original_unit: original_unit
|
|
3983
|
-
currency_amount_preferred_currency_unit: preferred_currency_unit
|
|
3984
|
-
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
3985
|
-
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
3986
|
-
}
|
|
3987
|
-
lightspark_node_status: status
|
|
3988
5607
|
}
|
|
3989
5608
|
}
|
|
3990
5609
|
}
|
|
@@ -4326,15 +5945,24 @@ query FetchAccountToTransactionsConnection($first: Int, $after: String, $types:
|
|
|
4326
5945
|
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
4327
5946
|
}
|
|
4328
5947
|
incoming_payment_transaction_hash: transaction_hash
|
|
4329
|
-
incoming_payment_origin: origin {
|
|
4330
|
-
id
|
|
4331
|
-
}
|
|
4332
5948
|
incoming_payment_destination: destination {
|
|
4333
5949
|
id
|
|
4334
5950
|
}
|
|
4335
5951
|
incoming_payment_payment_request: payment_request {
|
|
4336
5952
|
id
|
|
4337
5953
|
}
|
|
5954
|
+
incoming_payment_uma_post_transaction_data: uma_post_transaction_data {
|
|
5955
|
+
__typename
|
|
5956
|
+
post_transaction_data_utxo: utxo
|
|
5957
|
+
post_transaction_data_amount: amount {
|
|
5958
|
+
__typename
|
|
5959
|
+
currency_amount_original_value: original_value
|
|
5960
|
+
currency_amount_original_unit: original_unit
|
|
5961
|
+
currency_amount_preferred_currency_unit: preferred_currency_unit
|
|
5962
|
+
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
5963
|
+
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
5964
|
+
}
|
|
5965
|
+
}
|
|
4338
5966
|
}
|
|
4339
5967
|
... on OutgoingPayment {
|
|
4340
5968
|
__typename
|
|
@@ -4398,24 +6026,54 @@ query FetchAccountToTransactionsConnection($first: Int, $after: String, $types:
|
|
|
4398
6026
|
graph_node_display_name: display_name
|
|
4399
6027
|
graph_node_public_key: public_key
|
|
4400
6028
|
}
|
|
4401
|
-
... on
|
|
6029
|
+
... on LightsparkNodeWithOSK {
|
|
4402
6030
|
__typename
|
|
4403
|
-
|
|
4404
|
-
|
|
4405
|
-
|
|
4406
|
-
|
|
4407
|
-
|
|
4408
|
-
|
|
4409
|
-
|
|
4410
|
-
|
|
4411
|
-
|
|
4412
|
-
|
|
6031
|
+
lightspark_node_with_o_s_k_id: id
|
|
6032
|
+
lightspark_node_with_o_s_k_created_at: created_at
|
|
6033
|
+
lightspark_node_with_o_s_k_updated_at: updated_at
|
|
6034
|
+
lightspark_node_with_o_s_k_alias: alias
|
|
6035
|
+
lightspark_node_with_o_s_k_bitcoin_network: bitcoin_network
|
|
6036
|
+
lightspark_node_with_o_s_k_color: color
|
|
6037
|
+
lightspark_node_with_o_s_k_conductivity: conductivity
|
|
6038
|
+
lightspark_node_with_o_s_k_display_name: display_name
|
|
6039
|
+
lightspark_node_with_o_s_k_public_key: public_key
|
|
6040
|
+
lightspark_node_with_o_s_k_owner: owner {
|
|
4413
6041
|
id
|
|
4414
6042
|
}
|
|
4415
|
-
|
|
4416
|
-
|
|
6043
|
+
lightspark_node_with_o_s_k_status: status
|
|
6044
|
+
lightspark_node_with_o_s_k_total_balance: total_balance {
|
|
6045
|
+
__typename
|
|
6046
|
+
currency_amount_original_value: original_value
|
|
6047
|
+
currency_amount_original_unit: original_unit
|
|
6048
|
+
currency_amount_preferred_currency_unit: preferred_currency_unit
|
|
6049
|
+
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
6050
|
+
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
6051
|
+
}
|
|
6052
|
+
lightspark_node_with_o_s_k_total_local_balance: total_local_balance {
|
|
6053
|
+
__typename
|
|
6054
|
+
currency_amount_original_value: original_value
|
|
6055
|
+
currency_amount_original_unit: original_unit
|
|
6056
|
+
currency_amount_preferred_currency_unit: preferred_currency_unit
|
|
6057
|
+
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
6058
|
+
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
6059
|
+
}
|
|
6060
|
+
lightspark_node_with_o_s_k_local_balance: local_balance {
|
|
6061
|
+
__typename
|
|
6062
|
+
currency_amount_original_value: original_value
|
|
6063
|
+
currency_amount_original_unit: original_unit
|
|
6064
|
+
currency_amount_preferred_currency_unit: preferred_currency_unit
|
|
6065
|
+
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
6066
|
+
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
6067
|
+
}
|
|
6068
|
+
lightspark_node_with_o_s_k_remote_balance: remote_balance {
|
|
6069
|
+
__typename
|
|
6070
|
+
currency_amount_original_value: original_value
|
|
6071
|
+
currency_amount_original_unit: original_unit
|
|
6072
|
+
currency_amount_preferred_currency_unit: preferred_currency_unit
|
|
6073
|
+
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
6074
|
+
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
4417
6075
|
}
|
|
4418
|
-
|
|
6076
|
+
lightspark_node_with_o_s_k_blockchain_balance: blockchain_balance {
|
|
4419
6077
|
__typename
|
|
4420
6078
|
blockchain_balance_total_balance: total_balance {
|
|
4421
6079
|
__typename
|
|
@@ -4466,12 +6124,29 @@ query FetchAccountToTransactionsConnection($first: Int, $after: String, $types:
|
|
|
4466
6124
|
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
4467
6125
|
}
|
|
4468
6126
|
}
|
|
4469
|
-
|
|
6127
|
+
lightspark_node_with_o_s_k_uma_prescreening_utxos: uma_prescreening_utxos
|
|
6128
|
+
lightspark_node_with_o_s_k_encrypted_signing_private_key: encrypted_signing_private_key {
|
|
4470
6129
|
__typename
|
|
4471
6130
|
secret_encrypted_value: encrypted_value
|
|
4472
6131
|
secret_cipher: cipher
|
|
4473
6132
|
}
|
|
4474
|
-
|
|
6133
|
+
}
|
|
6134
|
+
... on LightsparkNodeWithRemoteSigning {
|
|
6135
|
+
__typename
|
|
6136
|
+
lightspark_node_with_remote_signing_id: id
|
|
6137
|
+
lightspark_node_with_remote_signing_created_at: created_at
|
|
6138
|
+
lightspark_node_with_remote_signing_updated_at: updated_at
|
|
6139
|
+
lightspark_node_with_remote_signing_alias: alias
|
|
6140
|
+
lightspark_node_with_remote_signing_bitcoin_network: bitcoin_network
|
|
6141
|
+
lightspark_node_with_remote_signing_color: color
|
|
6142
|
+
lightspark_node_with_remote_signing_conductivity: conductivity
|
|
6143
|
+
lightspark_node_with_remote_signing_display_name: display_name
|
|
6144
|
+
lightspark_node_with_remote_signing_public_key: public_key
|
|
6145
|
+
lightspark_node_with_remote_signing_owner: owner {
|
|
6146
|
+
id
|
|
6147
|
+
}
|
|
6148
|
+
lightspark_node_with_remote_signing_status: status
|
|
6149
|
+
lightspark_node_with_remote_signing_total_balance: total_balance {
|
|
4475
6150
|
__typename
|
|
4476
6151
|
currency_amount_original_value: original_value
|
|
4477
6152
|
currency_amount_original_unit: original_unit
|
|
@@ -4479,7 +6154,7 @@ query FetchAccountToTransactionsConnection($first: Int, $after: String, $types:
|
|
|
4479
6154
|
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
4480
6155
|
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
4481
6156
|
}
|
|
4482
|
-
|
|
6157
|
+
lightspark_node_with_remote_signing_total_local_balance: total_local_balance {
|
|
4483
6158
|
__typename
|
|
4484
6159
|
currency_amount_original_value: original_value
|
|
4485
6160
|
currency_amount_original_unit: original_unit
|
|
@@ -4487,7 +6162,7 @@ query FetchAccountToTransactionsConnection($first: Int, $after: String, $types:
|
|
|
4487
6162
|
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
4488
6163
|
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
4489
6164
|
}
|
|
4490
|
-
|
|
6165
|
+
lightspark_node_with_remote_signing_local_balance: local_balance {
|
|
4491
6166
|
__typename
|
|
4492
6167
|
currency_amount_original_value: original_value
|
|
4493
6168
|
currency_amount_original_unit: original_unit
|
|
@@ -4495,8 +6170,7 @@ query FetchAccountToTransactionsConnection($first: Int, $after: String, $types:
|
|
|
4495
6170
|
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
4496
6171
|
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
4497
6172
|
}
|
|
4498
|
-
|
|
4499
|
-
lightspark_node_remote_balance: remote_balance {
|
|
6173
|
+
lightspark_node_with_remote_signing_remote_balance: remote_balance {
|
|
4500
6174
|
__typename
|
|
4501
6175
|
currency_amount_original_value: original_value
|
|
4502
6176
|
currency_amount_original_unit: original_unit
|
|
@@ -4504,7 +6178,58 @@ query FetchAccountToTransactionsConnection($first: Int, $after: String, $types:
|
|
|
4504
6178
|
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
4505
6179
|
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
4506
6180
|
}
|
|
4507
|
-
|
|
6181
|
+
lightspark_node_with_remote_signing_blockchain_balance: blockchain_balance {
|
|
6182
|
+
__typename
|
|
6183
|
+
blockchain_balance_total_balance: total_balance {
|
|
6184
|
+
__typename
|
|
6185
|
+
currency_amount_original_value: original_value
|
|
6186
|
+
currency_amount_original_unit: original_unit
|
|
6187
|
+
currency_amount_preferred_currency_unit: preferred_currency_unit
|
|
6188
|
+
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
6189
|
+
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
6190
|
+
}
|
|
6191
|
+
blockchain_balance_confirmed_balance: confirmed_balance {
|
|
6192
|
+
__typename
|
|
6193
|
+
currency_amount_original_value: original_value
|
|
6194
|
+
currency_amount_original_unit: original_unit
|
|
6195
|
+
currency_amount_preferred_currency_unit: preferred_currency_unit
|
|
6196
|
+
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
6197
|
+
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
6198
|
+
}
|
|
6199
|
+
blockchain_balance_unconfirmed_balance: unconfirmed_balance {
|
|
6200
|
+
__typename
|
|
6201
|
+
currency_amount_original_value: original_value
|
|
6202
|
+
currency_amount_original_unit: original_unit
|
|
6203
|
+
currency_amount_preferred_currency_unit: preferred_currency_unit
|
|
6204
|
+
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
6205
|
+
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
6206
|
+
}
|
|
6207
|
+
blockchain_balance_locked_balance: locked_balance {
|
|
6208
|
+
__typename
|
|
6209
|
+
currency_amount_original_value: original_value
|
|
6210
|
+
currency_amount_original_unit: original_unit
|
|
6211
|
+
currency_amount_preferred_currency_unit: preferred_currency_unit
|
|
6212
|
+
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
6213
|
+
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
6214
|
+
}
|
|
6215
|
+
blockchain_balance_required_reserve: required_reserve {
|
|
6216
|
+
__typename
|
|
6217
|
+
currency_amount_original_value: original_value
|
|
6218
|
+
currency_amount_original_unit: original_unit
|
|
6219
|
+
currency_amount_preferred_currency_unit: preferred_currency_unit
|
|
6220
|
+
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
6221
|
+
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
6222
|
+
}
|
|
6223
|
+
blockchain_balance_available_balance: available_balance {
|
|
6224
|
+
__typename
|
|
6225
|
+
currency_amount_original_value: original_value
|
|
6226
|
+
currency_amount_original_unit: original_unit
|
|
6227
|
+
currency_amount_preferred_currency_unit: preferred_currency_unit
|
|
6228
|
+
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
6229
|
+
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
6230
|
+
}
|
|
6231
|
+
}
|
|
6232
|
+
lightspark_node_with_remote_signing_uma_prescreening_utxos: uma_prescreening_utxos
|
|
4508
6233
|
}
|
|
4509
6234
|
}
|
|
4510
6235
|
}
|
|
@@ -4514,6 +6239,18 @@ query FetchAccountToTransactionsConnection($first: Int, $after: String, $types:
|
|
|
4514
6239
|
__typename
|
|
4515
6240
|
rich_text_text: text
|
|
4516
6241
|
}
|
|
6242
|
+
outgoing_payment_uma_post_transaction_data: uma_post_transaction_data {
|
|
6243
|
+
__typename
|
|
6244
|
+
post_transaction_data_utxo: utxo
|
|
6245
|
+
post_transaction_data_amount: amount {
|
|
6246
|
+
__typename
|
|
6247
|
+
currency_amount_original_value: original_value
|
|
6248
|
+
currency_amount_original_unit: original_unit
|
|
6249
|
+
currency_amount_preferred_currency_unit: preferred_currency_unit
|
|
6250
|
+
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
6251
|
+
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
6252
|
+
}
|
|
6253
|
+
}
|
|
4517
6254
|
}
|
|
4518
6255
|
... on RoutingTransaction {
|
|
4519
6256
|
__typename
|
|
@@ -4659,24 +6396,54 @@ query FetchAccountToPaymentRequestsConnection($first: Int, $after: String, $afte
|
|
|
4659
6396
|
graph_node_display_name: display_name
|
|
4660
6397
|
graph_node_public_key: public_key
|
|
4661
6398
|
}
|
|
4662
|
-
... on
|
|
6399
|
+
... on LightsparkNodeWithOSK {
|
|
4663
6400
|
__typename
|
|
4664
|
-
|
|
4665
|
-
|
|
4666
|
-
|
|
4667
|
-
|
|
4668
|
-
|
|
4669
|
-
|
|
4670
|
-
|
|
4671
|
-
|
|
4672
|
-
|
|
4673
|
-
|
|
6401
|
+
lightspark_node_with_o_s_k_id: id
|
|
6402
|
+
lightspark_node_with_o_s_k_created_at: created_at
|
|
6403
|
+
lightspark_node_with_o_s_k_updated_at: updated_at
|
|
6404
|
+
lightspark_node_with_o_s_k_alias: alias
|
|
6405
|
+
lightspark_node_with_o_s_k_bitcoin_network: bitcoin_network
|
|
6406
|
+
lightspark_node_with_o_s_k_color: color
|
|
6407
|
+
lightspark_node_with_o_s_k_conductivity: conductivity
|
|
6408
|
+
lightspark_node_with_o_s_k_display_name: display_name
|
|
6409
|
+
lightspark_node_with_o_s_k_public_key: public_key
|
|
6410
|
+
lightspark_node_with_o_s_k_owner: owner {
|
|
4674
6411
|
id
|
|
4675
6412
|
}
|
|
4676
|
-
|
|
4677
|
-
|
|
6413
|
+
lightspark_node_with_o_s_k_status: status
|
|
6414
|
+
lightspark_node_with_o_s_k_total_balance: total_balance {
|
|
6415
|
+
__typename
|
|
6416
|
+
currency_amount_original_value: original_value
|
|
6417
|
+
currency_amount_original_unit: original_unit
|
|
6418
|
+
currency_amount_preferred_currency_unit: preferred_currency_unit
|
|
6419
|
+
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
6420
|
+
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
6421
|
+
}
|
|
6422
|
+
lightspark_node_with_o_s_k_total_local_balance: total_local_balance {
|
|
6423
|
+
__typename
|
|
6424
|
+
currency_amount_original_value: original_value
|
|
6425
|
+
currency_amount_original_unit: original_unit
|
|
6426
|
+
currency_amount_preferred_currency_unit: preferred_currency_unit
|
|
6427
|
+
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
6428
|
+
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
6429
|
+
}
|
|
6430
|
+
lightspark_node_with_o_s_k_local_balance: local_balance {
|
|
6431
|
+
__typename
|
|
6432
|
+
currency_amount_original_value: original_value
|
|
6433
|
+
currency_amount_original_unit: original_unit
|
|
6434
|
+
currency_amount_preferred_currency_unit: preferred_currency_unit
|
|
6435
|
+
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
6436
|
+
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
6437
|
+
}
|
|
6438
|
+
lightspark_node_with_o_s_k_remote_balance: remote_balance {
|
|
6439
|
+
__typename
|
|
6440
|
+
currency_amount_original_value: original_value
|
|
6441
|
+
currency_amount_original_unit: original_unit
|
|
6442
|
+
currency_amount_preferred_currency_unit: preferred_currency_unit
|
|
6443
|
+
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
6444
|
+
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
4678
6445
|
}
|
|
4679
|
-
|
|
6446
|
+
lightspark_node_with_o_s_k_blockchain_balance: blockchain_balance {
|
|
4680
6447
|
__typename
|
|
4681
6448
|
blockchain_balance_total_balance: total_balance {
|
|
4682
6449
|
__typename
|
|
@@ -4727,12 +6494,29 @@ query FetchAccountToPaymentRequestsConnection($first: Int, $after: String, $afte
|
|
|
4727
6494
|
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
4728
6495
|
}
|
|
4729
6496
|
}
|
|
4730
|
-
|
|
6497
|
+
lightspark_node_with_o_s_k_uma_prescreening_utxos: uma_prescreening_utxos
|
|
6498
|
+
lightspark_node_with_o_s_k_encrypted_signing_private_key: encrypted_signing_private_key {
|
|
4731
6499
|
__typename
|
|
4732
6500
|
secret_encrypted_value: encrypted_value
|
|
4733
6501
|
secret_cipher: cipher
|
|
4734
6502
|
}
|
|
4735
|
-
|
|
6503
|
+
}
|
|
6504
|
+
... on LightsparkNodeWithRemoteSigning {
|
|
6505
|
+
__typename
|
|
6506
|
+
lightspark_node_with_remote_signing_id: id
|
|
6507
|
+
lightspark_node_with_remote_signing_created_at: created_at
|
|
6508
|
+
lightspark_node_with_remote_signing_updated_at: updated_at
|
|
6509
|
+
lightspark_node_with_remote_signing_alias: alias
|
|
6510
|
+
lightspark_node_with_remote_signing_bitcoin_network: bitcoin_network
|
|
6511
|
+
lightspark_node_with_remote_signing_color: color
|
|
6512
|
+
lightspark_node_with_remote_signing_conductivity: conductivity
|
|
6513
|
+
lightspark_node_with_remote_signing_display_name: display_name
|
|
6514
|
+
lightspark_node_with_remote_signing_public_key: public_key
|
|
6515
|
+
lightspark_node_with_remote_signing_owner: owner {
|
|
6516
|
+
id
|
|
6517
|
+
}
|
|
6518
|
+
lightspark_node_with_remote_signing_status: status
|
|
6519
|
+
lightspark_node_with_remote_signing_total_balance: total_balance {
|
|
4736
6520
|
__typename
|
|
4737
6521
|
currency_amount_original_value: original_value
|
|
4738
6522
|
currency_amount_original_unit: original_unit
|
|
@@ -4740,7 +6524,7 @@ query FetchAccountToPaymentRequestsConnection($first: Int, $after: String, $afte
|
|
|
4740
6524
|
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
4741
6525
|
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
4742
6526
|
}
|
|
4743
|
-
|
|
6527
|
+
lightspark_node_with_remote_signing_total_local_balance: total_local_balance {
|
|
4744
6528
|
__typename
|
|
4745
6529
|
currency_amount_original_value: original_value
|
|
4746
6530
|
currency_amount_original_unit: original_unit
|
|
@@ -4748,7 +6532,7 @@ query FetchAccountToPaymentRequestsConnection($first: Int, $after: String, $afte
|
|
|
4748
6532
|
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
4749
6533
|
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
4750
6534
|
}
|
|
4751
|
-
|
|
6535
|
+
lightspark_node_with_remote_signing_local_balance: local_balance {
|
|
4752
6536
|
__typename
|
|
4753
6537
|
currency_amount_original_value: original_value
|
|
4754
6538
|
currency_amount_original_unit: original_unit
|
|
@@ -4756,8 +6540,7 @@ query FetchAccountToPaymentRequestsConnection($first: Int, $after: String, $afte
|
|
|
4756
6540
|
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
4757
6541
|
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
4758
6542
|
}
|
|
4759
|
-
|
|
4760
|
-
lightspark_node_remote_balance: remote_balance {
|
|
6543
|
+
lightspark_node_with_remote_signing_remote_balance: remote_balance {
|
|
4761
6544
|
__typename
|
|
4762
6545
|
currency_amount_original_value: original_value
|
|
4763
6546
|
currency_amount_original_unit: original_unit
|
|
@@ -4765,7 +6548,58 @@ query FetchAccountToPaymentRequestsConnection($first: Int, $after: String, $afte
|
|
|
4765
6548
|
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
4766
6549
|
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
4767
6550
|
}
|
|
4768
|
-
|
|
6551
|
+
lightspark_node_with_remote_signing_blockchain_balance: blockchain_balance {
|
|
6552
|
+
__typename
|
|
6553
|
+
blockchain_balance_total_balance: total_balance {
|
|
6554
|
+
__typename
|
|
6555
|
+
currency_amount_original_value: original_value
|
|
6556
|
+
currency_amount_original_unit: original_unit
|
|
6557
|
+
currency_amount_preferred_currency_unit: preferred_currency_unit
|
|
6558
|
+
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
6559
|
+
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
6560
|
+
}
|
|
6561
|
+
blockchain_balance_confirmed_balance: confirmed_balance {
|
|
6562
|
+
__typename
|
|
6563
|
+
currency_amount_original_value: original_value
|
|
6564
|
+
currency_amount_original_unit: original_unit
|
|
6565
|
+
currency_amount_preferred_currency_unit: preferred_currency_unit
|
|
6566
|
+
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
6567
|
+
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
6568
|
+
}
|
|
6569
|
+
blockchain_balance_unconfirmed_balance: unconfirmed_balance {
|
|
6570
|
+
__typename
|
|
6571
|
+
currency_amount_original_value: original_value
|
|
6572
|
+
currency_amount_original_unit: original_unit
|
|
6573
|
+
currency_amount_preferred_currency_unit: preferred_currency_unit
|
|
6574
|
+
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
6575
|
+
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
6576
|
+
}
|
|
6577
|
+
blockchain_balance_locked_balance: locked_balance {
|
|
6578
|
+
__typename
|
|
6579
|
+
currency_amount_original_value: original_value
|
|
6580
|
+
currency_amount_original_unit: original_unit
|
|
6581
|
+
currency_amount_preferred_currency_unit: preferred_currency_unit
|
|
6582
|
+
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
6583
|
+
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
6584
|
+
}
|
|
6585
|
+
blockchain_balance_required_reserve: required_reserve {
|
|
6586
|
+
__typename
|
|
6587
|
+
currency_amount_original_value: original_value
|
|
6588
|
+
currency_amount_original_unit: original_unit
|
|
6589
|
+
currency_amount_preferred_currency_unit: preferred_currency_unit
|
|
6590
|
+
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
6591
|
+
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
6592
|
+
}
|
|
6593
|
+
blockchain_balance_available_balance: available_balance {
|
|
6594
|
+
__typename
|
|
6595
|
+
currency_amount_original_value: original_value
|
|
6596
|
+
currency_amount_original_unit: original_unit
|
|
6597
|
+
currency_amount_preferred_currency_unit: preferred_currency_unit
|
|
6598
|
+
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
6599
|
+
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
6600
|
+
}
|
|
6601
|
+
}
|
|
6602
|
+
lightspark_node_with_remote_signing_uma_prescreening_utxos: uma_prescreening_utxos
|
|
4769
6603
|
}
|
|
4770
6604
|
}
|
|
4771
6605
|
}
|
|
@@ -4849,6 +6683,9 @@ query FetchAccountToWalletsConnection($first: Int, $after: String, $third_party_
|
|
|
4849
6683
|
}
|
|
4850
6684
|
}
|
|
4851
6685
|
wallet_third_party_identifier: third_party_identifier
|
|
6686
|
+
wallet_account: account {
|
|
6687
|
+
id
|
|
6688
|
+
}
|
|
4852
6689
|
wallet_status: status
|
|
4853
6690
|
}
|
|
4854
6691
|
}
|
|
@@ -4874,7 +6711,7 @@ query GetAccount {
|
|
|
4874
6711
|
}
|
|
4875
6712
|
}
|
|
4876
6713
|
|
|
4877
|
-
${
|
|
6714
|
+
${FRAGMENT16}
|
|
4878
6715
|
`,
|
|
4879
6716
|
variables: {},
|
|
4880
6717
|
constructObject: (data) => AccountFromJson(data.current_account)
|
|
@@ -4890,7 +6727,7 @@ var AccountFromJson = (obj) => {
|
|
|
4890
6727
|
obj["account_name"]
|
|
4891
6728
|
);
|
|
4892
6729
|
};
|
|
4893
|
-
var
|
|
6730
|
+
var FRAGMENT16 = `
|
|
4894
6731
|
fragment AccountFragment on Account {
|
|
4895
6732
|
__typename
|
|
4896
6733
|
account_id: id
|
|
@@ -4919,7 +6756,7 @@ var ChannelClosingTransactionFromJson = (obj) => {
|
|
|
4919
6756
|
channelId: obj["channel_closing_transaction_channel"]?.id ?? void 0
|
|
4920
6757
|
};
|
|
4921
6758
|
};
|
|
4922
|
-
var
|
|
6759
|
+
var FRAGMENT17 = `
|
|
4923
6760
|
fragment ChannelClosingTransactionFragment on ChannelClosingTransaction {
|
|
4924
6761
|
__typename
|
|
4925
6762
|
channel_closing_transaction_id: id
|
|
@@ -4963,7 +6800,7 @@ query GetChannelClosingTransaction($id: ID!) {
|
|
|
4963
6800
|
}
|
|
4964
6801
|
}
|
|
4965
6802
|
|
|
4966
|
-
${
|
|
6803
|
+
${FRAGMENT17}
|
|
4967
6804
|
`,
|
|
4968
6805
|
variables: { id },
|
|
4969
6806
|
constructObject: (data) => ChannelClosingTransactionFromJson(data.entity)
|
|
@@ -4989,7 +6826,7 @@ var ChannelOpeningTransactionFromJson = (obj) => {
|
|
|
4989
6826
|
channelId: obj["channel_opening_transaction_channel"]?.id ?? void 0
|
|
4990
6827
|
};
|
|
4991
6828
|
};
|
|
4992
|
-
var
|
|
6829
|
+
var FRAGMENT18 = `
|
|
4993
6830
|
fragment ChannelOpeningTransactionFragment on ChannelOpeningTransaction {
|
|
4994
6831
|
__typename
|
|
4995
6832
|
channel_opening_transaction_id: id
|
|
@@ -5033,33 +6870,91 @@ query GetChannelOpeningTransaction($id: ID!) {
|
|
|
5033
6870
|
}
|
|
5034
6871
|
}
|
|
5035
6872
|
|
|
5036
|
-
${
|
|
6873
|
+
${FRAGMENT18}
|
|
6874
|
+
`,
|
|
6875
|
+
variables: { id },
|
|
6876
|
+
constructObject: (data) => ChannelOpeningTransactionFromJson(data.entity)
|
|
6877
|
+
};
|
|
6878
|
+
};
|
|
6879
|
+
|
|
6880
|
+
// src/objects/ComplianceProvider.ts
|
|
6881
|
+
var ComplianceProvider = /* @__PURE__ */ ((ComplianceProvider2) => {
|
|
6882
|
+
ComplianceProvider2["FUTURE_VALUE"] = "FUTURE_VALUE";
|
|
6883
|
+
ComplianceProvider2["CHAINALYSIS"] = "CHAINALYSIS";
|
|
6884
|
+
return ComplianceProvider2;
|
|
6885
|
+
})(ComplianceProvider || {});
|
|
6886
|
+
var ComplianceProvider_default = ComplianceProvider;
|
|
6887
|
+
|
|
6888
|
+
// src/objects/Connection.ts
|
|
6889
|
+
var import_core6 = require("@lightsparkdev/core");
|
|
6890
|
+
|
|
6891
|
+
// src/objects/InvoiceType.ts
|
|
6892
|
+
var InvoiceType = /* @__PURE__ */ ((InvoiceType2) => {
|
|
6893
|
+
InvoiceType2["FUTURE_VALUE"] = "FUTURE_VALUE";
|
|
6894
|
+
InvoiceType2["STANDARD"] = "STANDARD";
|
|
6895
|
+
InvoiceType2["AMP"] = "AMP";
|
|
6896
|
+
return InvoiceType2;
|
|
6897
|
+
})(InvoiceType || {});
|
|
6898
|
+
var InvoiceType_default = InvoiceType;
|
|
6899
|
+
|
|
6900
|
+
// src/objects/SignablePayloadStatus.ts
|
|
6901
|
+
var SignablePayloadStatus = /* @__PURE__ */ ((SignablePayloadStatus2) => {
|
|
6902
|
+
SignablePayloadStatus2["FUTURE_VALUE"] = "FUTURE_VALUE";
|
|
6903
|
+
SignablePayloadStatus2["CREATED"] = "CREATED";
|
|
6904
|
+
SignablePayloadStatus2["SIGNED"] = "SIGNED";
|
|
6905
|
+
SignablePayloadStatus2["VALIDATION_FAILED"] = "VALIDATION_FAILED";
|
|
6906
|
+
return SignablePayloadStatus2;
|
|
6907
|
+
})(SignablePayloadStatus || {});
|
|
6908
|
+
var SignablePayloadStatus_default = SignablePayloadStatus;
|
|
6909
|
+
|
|
6910
|
+
// src/objects/SignablePayload.ts
|
|
6911
|
+
var SignablePayloadFromJson = (obj) => {
|
|
6912
|
+
return {
|
|
6913
|
+
id: obj["signable_payload_id"],
|
|
6914
|
+
createdAt: obj["signable_payload_created_at"],
|
|
6915
|
+
updatedAt: obj["signable_payload_updated_at"],
|
|
6916
|
+
payload: obj["signable_payload_payload"],
|
|
6917
|
+
derivationPath: obj["signable_payload_derivation_path"],
|
|
6918
|
+
status: SignablePayloadStatus_default[obj["signable_payload_status"]] ?? SignablePayloadStatus_default.FUTURE_VALUE,
|
|
6919
|
+
signableId: obj["signable_payload_signable"].id,
|
|
6920
|
+
typename: "SignablePayload",
|
|
6921
|
+
addTweak: obj["signable_payload_add_tweak"],
|
|
6922
|
+
mulTweak: obj["signable_payload_mul_tweak"]
|
|
6923
|
+
};
|
|
6924
|
+
};
|
|
6925
|
+
var FRAGMENT19 = `
|
|
6926
|
+
fragment SignablePayloadFragment on SignablePayload {
|
|
6927
|
+
__typename
|
|
6928
|
+
signable_payload_id: id
|
|
6929
|
+
signable_payload_created_at: created_at
|
|
6930
|
+
signable_payload_updated_at: updated_at
|
|
6931
|
+
signable_payload_payload: payload
|
|
6932
|
+
signable_payload_derivation_path: derivation_path
|
|
6933
|
+
signable_payload_status: status
|
|
6934
|
+
signable_payload_add_tweak: add_tweak
|
|
6935
|
+
signable_payload_mul_tweak: mul_tweak
|
|
6936
|
+
signable_payload_signable: signable {
|
|
6937
|
+
id
|
|
6938
|
+
}
|
|
6939
|
+
}`;
|
|
6940
|
+
var getSignablePayloadQuery = (id) => {
|
|
6941
|
+
return {
|
|
6942
|
+
queryPayload: `
|
|
6943
|
+
query GetSignablePayload($id: ID!) {
|
|
6944
|
+
entity(id: $id) {
|
|
6945
|
+
... on SignablePayload {
|
|
6946
|
+
...SignablePayloadFragment
|
|
6947
|
+
}
|
|
6948
|
+
}
|
|
6949
|
+
}
|
|
6950
|
+
|
|
6951
|
+
${FRAGMENT19}
|
|
5037
6952
|
`,
|
|
5038
6953
|
variables: { id },
|
|
5039
|
-
constructObject: (data) =>
|
|
6954
|
+
constructObject: (data) => SignablePayloadFromJson(data.entity)
|
|
5040
6955
|
};
|
|
5041
6956
|
};
|
|
5042
6957
|
|
|
5043
|
-
// src/objects/Connection.ts
|
|
5044
|
-
var import_core5 = require("@lightsparkdev/core");
|
|
5045
|
-
|
|
5046
|
-
// src/objects/InvoiceType.ts
|
|
5047
|
-
var InvoiceType = /* @__PURE__ */ ((InvoiceType2) => {
|
|
5048
|
-
InvoiceType2["FUTURE_VALUE"] = "FUTURE_VALUE";
|
|
5049
|
-
InvoiceType2["STANDARD"] = "STANDARD";
|
|
5050
|
-
InvoiceType2["AMP"] = "AMP";
|
|
5051
|
-
return InvoiceType2;
|
|
5052
|
-
})(InvoiceType || {});
|
|
5053
|
-
var InvoiceType_default = InvoiceType;
|
|
5054
|
-
|
|
5055
|
-
// src/objects/CryptoSanctionsScreeningProvider.ts
|
|
5056
|
-
var CryptoSanctionsScreeningProvider = /* @__PURE__ */ ((CryptoSanctionsScreeningProvider2) => {
|
|
5057
|
-
CryptoSanctionsScreeningProvider2["FUTURE_VALUE"] = "FUTURE_VALUE";
|
|
5058
|
-
CryptoSanctionsScreeningProvider2["CHAINALYSIS"] = "CHAINALYSIS";
|
|
5059
|
-
return CryptoSanctionsScreeningProvider2;
|
|
5060
|
-
})(CryptoSanctionsScreeningProvider || {});
|
|
5061
|
-
var CryptoSanctionsScreeningProvider_default = CryptoSanctionsScreeningProvider;
|
|
5062
|
-
|
|
5063
6958
|
// src/objects/Deposit.ts
|
|
5064
6959
|
var DepositFromJson = (obj) => {
|
|
5065
6960
|
return {
|
|
@@ -5079,7 +6974,7 @@ var DepositFromJson = (obj) => {
|
|
|
5079
6974
|
numConfirmations: obj["deposit_num_confirmations"]
|
|
5080
6975
|
};
|
|
5081
6976
|
};
|
|
5082
|
-
var
|
|
6977
|
+
var FRAGMENT20 = `
|
|
5083
6978
|
fragment DepositFragment on Deposit {
|
|
5084
6979
|
__typename
|
|
5085
6980
|
deposit_id: id
|
|
@@ -5123,7 +7018,7 @@ query GetDeposit($id: ID!) {
|
|
|
5123
7018
|
}
|
|
5124
7019
|
}
|
|
5125
7020
|
|
|
5126
|
-
${
|
|
7021
|
+
${FRAGMENT20}
|
|
5127
7022
|
`,
|
|
5128
7023
|
variables: { id },
|
|
5129
7024
|
constructObject: (data) => DepositFromJson(data.entity)
|
|
@@ -5142,7 +7037,7 @@ var InvoiceFromJson = (obj) => {
|
|
|
5142
7037
|
amountPaid: !!obj["invoice_amount_paid"] ? CurrencyAmountFromJson(obj["invoice_amount_paid"]) : void 0
|
|
5143
7038
|
};
|
|
5144
7039
|
};
|
|
5145
|
-
var
|
|
7040
|
+
var FRAGMENT21 = `
|
|
5146
7041
|
fragment InvoiceFragment on Invoice {
|
|
5147
7042
|
__typename
|
|
5148
7043
|
invoice_id: id
|
|
@@ -5178,24 +7073,54 @@ fragment InvoiceFragment on Invoice {
|
|
|
5178
7073
|
graph_node_display_name: display_name
|
|
5179
7074
|
graph_node_public_key: public_key
|
|
5180
7075
|
}
|
|
5181
|
-
... on
|
|
7076
|
+
... on LightsparkNodeWithOSK {
|
|
5182
7077
|
__typename
|
|
5183
|
-
|
|
5184
|
-
|
|
5185
|
-
|
|
5186
|
-
|
|
5187
|
-
|
|
5188
|
-
|
|
5189
|
-
|
|
5190
|
-
|
|
5191
|
-
|
|
5192
|
-
|
|
7078
|
+
lightspark_node_with_o_s_k_id: id
|
|
7079
|
+
lightspark_node_with_o_s_k_created_at: created_at
|
|
7080
|
+
lightspark_node_with_o_s_k_updated_at: updated_at
|
|
7081
|
+
lightspark_node_with_o_s_k_alias: alias
|
|
7082
|
+
lightspark_node_with_o_s_k_bitcoin_network: bitcoin_network
|
|
7083
|
+
lightspark_node_with_o_s_k_color: color
|
|
7084
|
+
lightspark_node_with_o_s_k_conductivity: conductivity
|
|
7085
|
+
lightspark_node_with_o_s_k_display_name: display_name
|
|
7086
|
+
lightspark_node_with_o_s_k_public_key: public_key
|
|
7087
|
+
lightspark_node_with_o_s_k_owner: owner {
|
|
5193
7088
|
id
|
|
5194
7089
|
}
|
|
5195
|
-
|
|
5196
|
-
|
|
7090
|
+
lightspark_node_with_o_s_k_status: status
|
|
7091
|
+
lightspark_node_with_o_s_k_total_balance: total_balance {
|
|
7092
|
+
__typename
|
|
7093
|
+
currency_amount_original_value: original_value
|
|
7094
|
+
currency_amount_original_unit: original_unit
|
|
7095
|
+
currency_amount_preferred_currency_unit: preferred_currency_unit
|
|
7096
|
+
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
7097
|
+
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
7098
|
+
}
|
|
7099
|
+
lightspark_node_with_o_s_k_total_local_balance: total_local_balance {
|
|
7100
|
+
__typename
|
|
7101
|
+
currency_amount_original_value: original_value
|
|
7102
|
+
currency_amount_original_unit: original_unit
|
|
7103
|
+
currency_amount_preferred_currency_unit: preferred_currency_unit
|
|
7104
|
+
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
7105
|
+
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
7106
|
+
}
|
|
7107
|
+
lightspark_node_with_o_s_k_local_balance: local_balance {
|
|
7108
|
+
__typename
|
|
7109
|
+
currency_amount_original_value: original_value
|
|
7110
|
+
currency_amount_original_unit: original_unit
|
|
7111
|
+
currency_amount_preferred_currency_unit: preferred_currency_unit
|
|
7112
|
+
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
7113
|
+
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
7114
|
+
}
|
|
7115
|
+
lightspark_node_with_o_s_k_remote_balance: remote_balance {
|
|
7116
|
+
__typename
|
|
7117
|
+
currency_amount_original_value: original_value
|
|
7118
|
+
currency_amount_original_unit: original_unit
|
|
7119
|
+
currency_amount_preferred_currency_unit: preferred_currency_unit
|
|
7120
|
+
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
7121
|
+
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
5197
7122
|
}
|
|
5198
|
-
|
|
7123
|
+
lightspark_node_with_o_s_k_blockchain_balance: blockchain_balance {
|
|
5199
7124
|
__typename
|
|
5200
7125
|
blockchain_balance_total_balance: total_balance {
|
|
5201
7126
|
__typename
|
|
@@ -5246,12 +7171,29 @@ fragment InvoiceFragment on Invoice {
|
|
|
5246
7171
|
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
5247
7172
|
}
|
|
5248
7173
|
}
|
|
5249
|
-
|
|
7174
|
+
lightspark_node_with_o_s_k_uma_prescreening_utxos: uma_prescreening_utxos
|
|
7175
|
+
lightspark_node_with_o_s_k_encrypted_signing_private_key: encrypted_signing_private_key {
|
|
5250
7176
|
__typename
|
|
5251
7177
|
secret_encrypted_value: encrypted_value
|
|
5252
7178
|
secret_cipher: cipher
|
|
5253
7179
|
}
|
|
5254
|
-
|
|
7180
|
+
}
|
|
7181
|
+
... on LightsparkNodeWithRemoteSigning {
|
|
7182
|
+
__typename
|
|
7183
|
+
lightspark_node_with_remote_signing_id: id
|
|
7184
|
+
lightspark_node_with_remote_signing_created_at: created_at
|
|
7185
|
+
lightspark_node_with_remote_signing_updated_at: updated_at
|
|
7186
|
+
lightspark_node_with_remote_signing_alias: alias
|
|
7187
|
+
lightspark_node_with_remote_signing_bitcoin_network: bitcoin_network
|
|
7188
|
+
lightspark_node_with_remote_signing_color: color
|
|
7189
|
+
lightspark_node_with_remote_signing_conductivity: conductivity
|
|
7190
|
+
lightspark_node_with_remote_signing_display_name: display_name
|
|
7191
|
+
lightspark_node_with_remote_signing_public_key: public_key
|
|
7192
|
+
lightspark_node_with_remote_signing_owner: owner {
|
|
7193
|
+
id
|
|
7194
|
+
}
|
|
7195
|
+
lightspark_node_with_remote_signing_status: status
|
|
7196
|
+
lightspark_node_with_remote_signing_total_balance: total_balance {
|
|
5255
7197
|
__typename
|
|
5256
7198
|
currency_amount_original_value: original_value
|
|
5257
7199
|
currency_amount_original_unit: original_unit
|
|
@@ -5259,7 +7201,7 @@ fragment InvoiceFragment on Invoice {
|
|
|
5259
7201
|
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
5260
7202
|
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
5261
7203
|
}
|
|
5262
|
-
|
|
7204
|
+
lightspark_node_with_remote_signing_total_local_balance: total_local_balance {
|
|
5263
7205
|
__typename
|
|
5264
7206
|
currency_amount_original_value: original_value
|
|
5265
7207
|
currency_amount_original_unit: original_unit
|
|
@@ -5267,7 +7209,7 @@ fragment InvoiceFragment on Invoice {
|
|
|
5267
7209
|
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
5268
7210
|
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
5269
7211
|
}
|
|
5270
|
-
|
|
7212
|
+
lightspark_node_with_remote_signing_local_balance: local_balance {
|
|
5271
7213
|
__typename
|
|
5272
7214
|
currency_amount_original_value: original_value
|
|
5273
7215
|
currency_amount_original_unit: original_unit
|
|
@@ -5275,8 +7217,7 @@ fragment InvoiceFragment on Invoice {
|
|
|
5275
7217
|
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
5276
7218
|
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
5277
7219
|
}
|
|
5278
|
-
|
|
5279
|
-
lightspark_node_remote_balance: remote_balance {
|
|
7220
|
+
lightspark_node_with_remote_signing_remote_balance: remote_balance {
|
|
5280
7221
|
__typename
|
|
5281
7222
|
currency_amount_original_value: original_value
|
|
5282
7223
|
currency_amount_original_unit: original_unit
|
|
@@ -5284,7 +7225,58 @@ fragment InvoiceFragment on Invoice {
|
|
|
5284
7225
|
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
5285
7226
|
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
5286
7227
|
}
|
|
5287
|
-
|
|
7228
|
+
lightspark_node_with_remote_signing_blockchain_balance: blockchain_balance {
|
|
7229
|
+
__typename
|
|
7230
|
+
blockchain_balance_total_balance: total_balance {
|
|
7231
|
+
__typename
|
|
7232
|
+
currency_amount_original_value: original_value
|
|
7233
|
+
currency_amount_original_unit: original_unit
|
|
7234
|
+
currency_amount_preferred_currency_unit: preferred_currency_unit
|
|
7235
|
+
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
7236
|
+
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
7237
|
+
}
|
|
7238
|
+
blockchain_balance_confirmed_balance: confirmed_balance {
|
|
7239
|
+
__typename
|
|
7240
|
+
currency_amount_original_value: original_value
|
|
7241
|
+
currency_amount_original_unit: original_unit
|
|
7242
|
+
currency_amount_preferred_currency_unit: preferred_currency_unit
|
|
7243
|
+
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
7244
|
+
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
7245
|
+
}
|
|
7246
|
+
blockchain_balance_unconfirmed_balance: unconfirmed_balance {
|
|
7247
|
+
__typename
|
|
7248
|
+
currency_amount_original_value: original_value
|
|
7249
|
+
currency_amount_original_unit: original_unit
|
|
7250
|
+
currency_amount_preferred_currency_unit: preferred_currency_unit
|
|
7251
|
+
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
7252
|
+
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
7253
|
+
}
|
|
7254
|
+
blockchain_balance_locked_balance: locked_balance {
|
|
7255
|
+
__typename
|
|
7256
|
+
currency_amount_original_value: original_value
|
|
7257
|
+
currency_amount_original_unit: original_unit
|
|
7258
|
+
currency_amount_preferred_currency_unit: preferred_currency_unit
|
|
7259
|
+
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
7260
|
+
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
7261
|
+
}
|
|
7262
|
+
blockchain_balance_required_reserve: required_reserve {
|
|
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
|
+
blockchain_balance_available_balance: available_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
|
+
}
|
|
7279
|
+
lightspark_node_with_remote_signing_uma_prescreening_utxos: uma_prescreening_utxos
|
|
5288
7280
|
}
|
|
5289
7281
|
}
|
|
5290
7282
|
}
|
|
@@ -5309,7 +7301,7 @@ query GetInvoice($id: ID!) {
|
|
|
5309
7301
|
}
|
|
5310
7302
|
}
|
|
5311
7303
|
|
|
5312
|
-
${
|
|
7304
|
+
${FRAGMENT21}
|
|
5313
7305
|
`,
|
|
5314
7306
|
variables: { id },
|
|
5315
7307
|
constructObject: (data) => InvoiceFromJson(data.entity)
|
|
@@ -5317,7 +7309,7 @@ ${FRAGMENT18}
|
|
|
5317
7309
|
};
|
|
5318
7310
|
|
|
5319
7311
|
// src/objects/LightningTransaction.ts
|
|
5320
|
-
var
|
|
7312
|
+
var import_core7 = require("@lightsparkdev/core");
|
|
5321
7313
|
var LightningTransactionFromJson = (obj) => {
|
|
5322
7314
|
if (obj["__typename"] == "IncomingPayment") {
|
|
5323
7315
|
return new IncomingPayment_default(
|
|
@@ -5330,8 +7322,10 @@ var LightningTransactionFromJson = (obj) => {
|
|
|
5330
7322
|
"IncomingPayment",
|
|
5331
7323
|
obj["incoming_payment_resolved_at"],
|
|
5332
7324
|
obj["incoming_payment_transaction_hash"],
|
|
5333
|
-
obj["
|
|
5334
|
-
obj["
|
|
7325
|
+
obj["incoming_payment_payment_request"]?.id ?? void 0,
|
|
7326
|
+
obj["incoming_payment_uma_post_transaction_data"]?.map(
|
|
7327
|
+
(e) => PostTransactionDataFromJson(e)
|
|
7328
|
+
)
|
|
5335
7329
|
);
|
|
5336
7330
|
}
|
|
5337
7331
|
if (obj["__typename"] == "OutgoingPayment") {
|
|
@@ -5351,7 +7345,10 @@ var LightningTransactionFromJson = (obj) => {
|
|
|
5351
7345
|
obj["outgoing_payment_payment_request_data"]
|
|
5352
7346
|
) : void 0,
|
|
5353
7347
|
!!obj["outgoing_payment_failure_reason"] ? PaymentFailureReason_default[obj["outgoing_payment_failure_reason"]] ?? PaymentFailureReason_default.FUTURE_VALUE : null,
|
|
5354
|
-
!!obj["outgoing_payment_failure_message"] ? RichTextFromJson(obj["outgoing_payment_failure_message"]) : void 0
|
|
7348
|
+
!!obj["outgoing_payment_failure_message"] ? RichTextFromJson(obj["outgoing_payment_failure_message"]) : void 0,
|
|
7349
|
+
obj["outgoing_payment_uma_post_transaction_data"]?.map(
|
|
7350
|
+
(e) => PostTransactionDataFromJson(e)
|
|
7351
|
+
)
|
|
5355
7352
|
);
|
|
5356
7353
|
}
|
|
5357
7354
|
if (obj["__typename"] == "RoutingTransaction") {
|
|
@@ -5371,12 +7368,12 @@ var LightningTransactionFromJson = (obj) => {
|
|
|
5371
7368
|
failureReason: !!obj["routing_transaction_failure_reason"] ? RoutingTransactionFailureReason_default[obj["routing_transaction_failure_reason"]] ?? RoutingTransactionFailureReason_default.FUTURE_VALUE : null
|
|
5372
7369
|
};
|
|
5373
7370
|
}
|
|
5374
|
-
throw new
|
|
7371
|
+
throw new import_core7.LightsparkException(
|
|
5375
7372
|
"DeserializationError",
|
|
5376
7373
|
`Couldn't find a concrete type for interface LightningTransaction corresponding to the typename=${obj["__typename"]}`
|
|
5377
7374
|
);
|
|
5378
7375
|
};
|
|
5379
|
-
var
|
|
7376
|
+
var FRAGMENT22 = `
|
|
5380
7377
|
fragment LightningTransactionFragment on LightningTransaction {
|
|
5381
7378
|
__typename
|
|
5382
7379
|
... on IncomingPayment {
|
|
@@ -5395,15 +7392,24 @@ fragment LightningTransactionFragment on LightningTransaction {
|
|
|
5395
7392
|
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
5396
7393
|
}
|
|
5397
7394
|
incoming_payment_transaction_hash: transaction_hash
|
|
5398
|
-
incoming_payment_origin: origin {
|
|
5399
|
-
id
|
|
5400
|
-
}
|
|
5401
7395
|
incoming_payment_destination: destination {
|
|
5402
7396
|
id
|
|
5403
7397
|
}
|
|
5404
7398
|
incoming_payment_payment_request: payment_request {
|
|
5405
7399
|
id
|
|
5406
7400
|
}
|
|
7401
|
+
incoming_payment_uma_post_transaction_data: uma_post_transaction_data {
|
|
7402
|
+
__typename
|
|
7403
|
+
post_transaction_data_utxo: utxo
|
|
7404
|
+
post_transaction_data_amount: amount {
|
|
7405
|
+
__typename
|
|
7406
|
+
currency_amount_original_value: original_value
|
|
7407
|
+
currency_amount_original_unit: original_unit
|
|
7408
|
+
currency_amount_preferred_currency_unit: preferred_currency_unit
|
|
7409
|
+
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
7410
|
+
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
7411
|
+
}
|
|
7412
|
+
}
|
|
5407
7413
|
}
|
|
5408
7414
|
... on OutgoingPayment {
|
|
5409
7415
|
__typename
|
|
@@ -5467,24 +7473,54 @@ fragment LightningTransactionFragment on LightningTransaction {
|
|
|
5467
7473
|
graph_node_display_name: display_name
|
|
5468
7474
|
graph_node_public_key: public_key
|
|
5469
7475
|
}
|
|
5470
|
-
... on
|
|
7476
|
+
... on LightsparkNodeWithOSK {
|
|
5471
7477
|
__typename
|
|
5472
|
-
|
|
5473
|
-
|
|
5474
|
-
|
|
5475
|
-
|
|
5476
|
-
|
|
5477
|
-
|
|
5478
|
-
|
|
5479
|
-
|
|
5480
|
-
|
|
5481
|
-
|
|
7478
|
+
lightspark_node_with_o_s_k_id: id
|
|
7479
|
+
lightspark_node_with_o_s_k_created_at: created_at
|
|
7480
|
+
lightspark_node_with_o_s_k_updated_at: updated_at
|
|
7481
|
+
lightspark_node_with_o_s_k_alias: alias
|
|
7482
|
+
lightspark_node_with_o_s_k_bitcoin_network: bitcoin_network
|
|
7483
|
+
lightspark_node_with_o_s_k_color: color
|
|
7484
|
+
lightspark_node_with_o_s_k_conductivity: conductivity
|
|
7485
|
+
lightspark_node_with_o_s_k_display_name: display_name
|
|
7486
|
+
lightspark_node_with_o_s_k_public_key: public_key
|
|
7487
|
+
lightspark_node_with_o_s_k_owner: owner {
|
|
5482
7488
|
id
|
|
5483
7489
|
}
|
|
5484
|
-
|
|
5485
|
-
|
|
7490
|
+
lightspark_node_with_o_s_k_status: status
|
|
7491
|
+
lightspark_node_with_o_s_k_total_balance: total_balance {
|
|
7492
|
+
__typename
|
|
7493
|
+
currency_amount_original_value: original_value
|
|
7494
|
+
currency_amount_original_unit: original_unit
|
|
7495
|
+
currency_amount_preferred_currency_unit: preferred_currency_unit
|
|
7496
|
+
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
7497
|
+
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
7498
|
+
}
|
|
7499
|
+
lightspark_node_with_o_s_k_total_local_balance: total_local_balance {
|
|
7500
|
+
__typename
|
|
7501
|
+
currency_amount_original_value: original_value
|
|
7502
|
+
currency_amount_original_unit: original_unit
|
|
7503
|
+
currency_amount_preferred_currency_unit: preferred_currency_unit
|
|
7504
|
+
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
7505
|
+
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
7506
|
+
}
|
|
7507
|
+
lightspark_node_with_o_s_k_local_balance: local_balance {
|
|
7508
|
+
__typename
|
|
7509
|
+
currency_amount_original_value: original_value
|
|
7510
|
+
currency_amount_original_unit: original_unit
|
|
7511
|
+
currency_amount_preferred_currency_unit: preferred_currency_unit
|
|
7512
|
+
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
7513
|
+
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
7514
|
+
}
|
|
7515
|
+
lightspark_node_with_o_s_k_remote_balance: remote_balance {
|
|
7516
|
+
__typename
|
|
7517
|
+
currency_amount_original_value: original_value
|
|
7518
|
+
currency_amount_original_unit: original_unit
|
|
7519
|
+
currency_amount_preferred_currency_unit: preferred_currency_unit
|
|
7520
|
+
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
7521
|
+
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
5486
7522
|
}
|
|
5487
|
-
|
|
7523
|
+
lightspark_node_with_o_s_k_blockchain_balance: blockchain_balance {
|
|
5488
7524
|
__typename
|
|
5489
7525
|
blockchain_balance_total_balance: total_balance {
|
|
5490
7526
|
__typename
|
|
@@ -5535,12 +7571,29 @@ fragment LightningTransactionFragment on LightningTransaction {
|
|
|
5535
7571
|
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
5536
7572
|
}
|
|
5537
7573
|
}
|
|
5538
|
-
|
|
7574
|
+
lightspark_node_with_o_s_k_uma_prescreening_utxos: uma_prescreening_utxos
|
|
7575
|
+
lightspark_node_with_o_s_k_encrypted_signing_private_key: encrypted_signing_private_key {
|
|
5539
7576
|
__typename
|
|
5540
7577
|
secret_encrypted_value: encrypted_value
|
|
5541
7578
|
secret_cipher: cipher
|
|
5542
7579
|
}
|
|
5543
|
-
|
|
7580
|
+
}
|
|
7581
|
+
... on LightsparkNodeWithRemoteSigning {
|
|
7582
|
+
__typename
|
|
7583
|
+
lightspark_node_with_remote_signing_id: id
|
|
7584
|
+
lightspark_node_with_remote_signing_created_at: created_at
|
|
7585
|
+
lightspark_node_with_remote_signing_updated_at: updated_at
|
|
7586
|
+
lightspark_node_with_remote_signing_alias: alias
|
|
7587
|
+
lightspark_node_with_remote_signing_bitcoin_network: bitcoin_network
|
|
7588
|
+
lightspark_node_with_remote_signing_color: color
|
|
7589
|
+
lightspark_node_with_remote_signing_conductivity: conductivity
|
|
7590
|
+
lightspark_node_with_remote_signing_display_name: display_name
|
|
7591
|
+
lightspark_node_with_remote_signing_public_key: public_key
|
|
7592
|
+
lightspark_node_with_remote_signing_owner: owner {
|
|
7593
|
+
id
|
|
7594
|
+
}
|
|
7595
|
+
lightspark_node_with_remote_signing_status: status
|
|
7596
|
+
lightspark_node_with_remote_signing_total_balance: total_balance {
|
|
5544
7597
|
__typename
|
|
5545
7598
|
currency_amount_original_value: original_value
|
|
5546
7599
|
currency_amount_original_unit: original_unit
|
|
@@ -5548,7 +7601,7 @@ fragment LightningTransactionFragment on LightningTransaction {
|
|
|
5548
7601
|
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
5549
7602
|
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
5550
7603
|
}
|
|
5551
|
-
|
|
7604
|
+
lightspark_node_with_remote_signing_total_local_balance: total_local_balance {
|
|
5552
7605
|
__typename
|
|
5553
7606
|
currency_amount_original_value: original_value
|
|
5554
7607
|
currency_amount_original_unit: original_unit
|
|
@@ -5556,7 +7609,7 @@ fragment LightningTransactionFragment on LightningTransaction {
|
|
|
5556
7609
|
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
5557
7610
|
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
5558
7611
|
}
|
|
5559
|
-
|
|
7612
|
+
lightspark_node_with_remote_signing_local_balance: local_balance {
|
|
5560
7613
|
__typename
|
|
5561
7614
|
currency_amount_original_value: original_value
|
|
5562
7615
|
currency_amount_original_unit: original_unit
|
|
@@ -5564,8 +7617,7 @@ fragment LightningTransactionFragment on LightningTransaction {
|
|
|
5564
7617
|
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
5565
7618
|
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
5566
7619
|
}
|
|
5567
|
-
|
|
5568
|
-
lightspark_node_remote_balance: remote_balance {
|
|
7620
|
+
lightspark_node_with_remote_signing_remote_balance: remote_balance {
|
|
5569
7621
|
__typename
|
|
5570
7622
|
currency_amount_original_value: original_value
|
|
5571
7623
|
currency_amount_original_unit: original_unit
|
|
@@ -5573,7 +7625,58 @@ fragment LightningTransactionFragment on LightningTransaction {
|
|
|
5573
7625
|
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
5574
7626
|
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
5575
7627
|
}
|
|
5576
|
-
|
|
7628
|
+
lightspark_node_with_remote_signing_blockchain_balance: blockchain_balance {
|
|
7629
|
+
__typename
|
|
7630
|
+
blockchain_balance_total_balance: total_balance {
|
|
7631
|
+
__typename
|
|
7632
|
+
currency_amount_original_value: original_value
|
|
7633
|
+
currency_amount_original_unit: original_unit
|
|
7634
|
+
currency_amount_preferred_currency_unit: preferred_currency_unit
|
|
7635
|
+
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
7636
|
+
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
7637
|
+
}
|
|
7638
|
+
blockchain_balance_confirmed_balance: confirmed_balance {
|
|
7639
|
+
__typename
|
|
7640
|
+
currency_amount_original_value: original_value
|
|
7641
|
+
currency_amount_original_unit: original_unit
|
|
7642
|
+
currency_amount_preferred_currency_unit: preferred_currency_unit
|
|
7643
|
+
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
7644
|
+
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
7645
|
+
}
|
|
7646
|
+
blockchain_balance_unconfirmed_balance: unconfirmed_balance {
|
|
7647
|
+
__typename
|
|
7648
|
+
currency_amount_original_value: original_value
|
|
7649
|
+
currency_amount_original_unit: original_unit
|
|
7650
|
+
currency_amount_preferred_currency_unit: preferred_currency_unit
|
|
7651
|
+
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
7652
|
+
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
7653
|
+
}
|
|
7654
|
+
blockchain_balance_locked_balance: locked_balance {
|
|
7655
|
+
__typename
|
|
7656
|
+
currency_amount_original_value: original_value
|
|
7657
|
+
currency_amount_original_unit: original_unit
|
|
7658
|
+
currency_amount_preferred_currency_unit: preferred_currency_unit
|
|
7659
|
+
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
7660
|
+
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
7661
|
+
}
|
|
7662
|
+
blockchain_balance_required_reserve: required_reserve {
|
|
7663
|
+
__typename
|
|
7664
|
+
currency_amount_original_value: original_value
|
|
7665
|
+
currency_amount_original_unit: original_unit
|
|
7666
|
+
currency_amount_preferred_currency_unit: preferred_currency_unit
|
|
7667
|
+
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
7668
|
+
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
7669
|
+
}
|
|
7670
|
+
blockchain_balance_available_balance: available_balance {
|
|
7671
|
+
__typename
|
|
7672
|
+
currency_amount_original_value: original_value
|
|
7673
|
+
currency_amount_original_unit: original_unit
|
|
7674
|
+
currency_amount_preferred_currency_unit: preferred_currency_unit
|
|
7675
|
+
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
7676
|
+
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
7677
|
+
}
|
|
7678
|
+
}
|
|
7679
|
+
lightspark_node_with_remote_signing_uma_prescreening_utxos: uma_prescreening_utxos
|
|
5577
7680
|
}
|
|
5578
7681
|
}
|
|
5579
7682
|
}
|
|
@@ -5583,6 +7686,18 @@ fragment LightningTransactionFragment on LightningTransaction {
|
|
|
5583
7686
|
__typename
|
|
5584
7687
|
rich_text_text: text
|
|
5585
7688
|
}
|
|
7689
|
+
outgoing_payment_uma_post_transaction_data: uma_post_transaction_data {
|
|
7690
|
+
__typename
|
|
7691
|
+
post_transaction_data_utxo: utxo
|
|
7692
|
+
post_transaction_data_amount: amount {
|
|
7693
|
+
__typename
|
|
7694
|
+
currency_amount_original_value: original_value
|
|
7695
|
+
currency_amount_original_unit: original_unit
|
|
7696
|
+
currency_amount_preferred_currency_unit: preferred_currency_unit
|
|
7697
|
+
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
7698
|
+
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
7699
|
+
}
|
|
7700
|
+
}
|
|
5586
7701
|
}
|
|
5587
7702
|
... on RoutingTransaction {
|
|
5588
7703
|
__typename
|
|
@@ -5632,7 +7747,7 @@ query GetLightningTransaction($id: ID!) {
|
|
|
5632
7747
|
}
|
|
5633
7748
|
}
|
|
5634
7749
|
|
|
5635
|
-
${
|
|
7750
|
+
${FRAGMENT22}
|
|
5636
7751
|
`,
|
|
5637
7752
|
variables: { id },
|
|
5638
7753
|
constructObject: (data) => LightningTransactionFromJson(data.entity)
|
|
@@ -5640,7 +7755,7 @@ ${FRAGMENT19}
|
|
|
5640
7755
|
};
|
|
5641
7756
|
|
|
5642
7757
|
// src/objects/LightsparkNodeOwner.ts
|
|
5643
|
-
var
|
|
7758
|
+
var import_core8 = require("@lightsparkdev/core");
|
|
5644
7759
|
var LightsparkNodeOwnerFromJson = (obj) => {
|
|
5645
7760
|
if (obj["__typename"] == "Account") {
|
|
5646
7761
|
return new Account_default(
|
|
@@ -5660,15 +7775,16 @@ var LightsparkNodeOwnerFromJson = (obj) => {
|
|
|
5660
7775
|
WalletStatus_default[obj["wallet_status"]] ?? WalletStatus_default.FUTURE_VALUE,
|
|
5661
7776
|
"Wallet",
|
|
5662
7777
|
obj["wallet_last_login_at"],
|
|
5663
|
-
!!obj["wallet_balances"] ? BalancesFromJson(obj["wallet_balances"]) : void 0
|
|
7778
|
+
!!obj["wallet_balances"] ? BalancesFromJson(obj["wallet_balances"]) : void 0,
|
|
7779
|
+
obj["wallet_account"]?.id ?? void 0
|
|
5664
7780
|
);
|
|
5665
7781
|
}
|
|
5666
|
-
throw new
|
|
7782
|
+
throw new import_core8.LightsparkException(
|
|
5667
7783
|
"DeserializationError",
|
|
5668
7784
|
`Couldn't find a concrete type for interface LightsparkNodeOwner corresponding to the typename=${obj["__typename"]}`
|
|
5669
7785
|
);
|
|
5670
7786
|
};
|
|
5671
|
-
var
|
|
7787
|
+
var FRAGMENT23 = `
|
|
5672
7788
|
fragment LightsparkNodeOwnerFragment on LightsparkNodeOwner {
|
|
5673
7789
|
__typename
|
|
5674
7790
|
... on Account {
|
|
@@ -5712,6 +7828,9 @@ fragment LightsparkNodeOwnerFragment on LightsparkNodeOwner {
|
|
|
5712
7828
|
}
|
|
5713
7829
|
}
|
|
5714
7830
|
wallet_third_party_identifier: third_party_identifier
|
|
7831
|
+
wallet_account: account {
|
|
7832
|
+
id
|
|
7833
|
+
}
|
|
5715
7834
|
wallet_status: status
|
|
5716
7835
|
}
|
|
5717
7836
|
}`;
|
|
@@ -5726,7 +7845,7 @@ query GetLightsparkNodeOwner($id: ID!) {
|
|
|
5726
7845
|
}
|
|
5727
7846
|
}
|
|
5728
7847
|
|
|
5729
|
-
${
|
|
7848
|
+
${FRAGMENT23}
|
|
5730
7849
|
`,
|
|
5731
7850
|
variables: { id },
|
|
5732
7851
|
constructObject: (data) => LightsparkNodeOwnerFromJson(data.entity)
|
|
@@ -5734,7 +7853,7 @@ ${FRAGMENT20}
|
|
|
5734
7853
|
};
|
|
5735
7854
|
|
|
5736
7855
|
// src/objects/OnChainTransaction.ts
|
|
5737
|
-
var
|
|
7856
|
+
var import_core9 = require("@lightsparkdev/core");
|
|
5738
7857
|
var OnChainTransactionFromJson = (obj) => {
|
|
5739
7858
|
if (obj["__typename"] == "ChannelClosingTransaction") {
|
|
5740
7859
|
return {
|
|
@@ -5808,12 +7927,12 @@ var OnChainTransactionFromJson = (obj) => {
|
|
|
5808
7927
|
numConfirmations: obj["withdrawal_num_confirmations"]
|
|
5809
7928
|
};
|
|
5810
7929
|
}
|
|
5811
|
-
throw new
|
|
7930
|
+
throw new import_core9.LightsparkException(
|
|
5812
7931
|
"DeserializationError",
|
|
5813
7932
|
`Couldn't find a concrete type for interface OnChainTransaction corresponding to the typename=${obj["__typename"]}`
|
|
5814
7933
|
);
|
|
5815
7934
|
};
|
|
5816
|
-
var
|
|
7935
|
+
var FRAGMENT24 = `
|
|
5817
7936
|
fragment OnChainTransactionFragment on OnChainTransaction {
|
|
5818
7937
|
__typename
|
|
5819
7938
|
... on ChannelClosingTransaction {
|
|
@@ -5956,13 +8075,36 @@ query GetOnChainTransaction($id: ID!) {
|
|
|
5956
8075
|
}
|
|
5957
8076
|
}
|
|
5958
8077
|
|
|
5959
|
-
${
|
|
8078
|
+
${FRAGMENT24}
|
|
5960
8079
|
`,
|
|
5961
8080
|
variables: { id },
|
|
5962
8081
|
constructObject: (data) => OnChainTransactionFromJson(data.entity)
|
|
5963
8082
|
};
|
|
5964
8083
|
};
|
|
5965
8084
|
|
|
8085
|
+
// src/objects/PaymentDirection.ts
|
|
8086
|
+
var PaymentDirection = /* @__PURE__ */ ((PaymentDirection2) => {
|
|
8087
|
+
PaymentDirection2["FUTURE_VALUE"] = "FUTURE_VALUE";
|
|
8088
|
+
PaymentDirection2["SENT"] = "SENT";
|
|
8089
|
+
PaymentDirection2["RECEIVED"] = "RECEIVED";
|
|
8090
|
+
return PaymentDirection2;
|
|
8091
|
+
})(PaymentDirection || {});
|
|
8092
|
+
var PaymentDirection_default = PaymentDirection;
|
|
8093
|
+
|
|
8094
|
+
// src/objects/RemoteSigningSubEventType.ts
|
|
8095
|
+
var RemoteSigningSubEventType = /* @__PURE__ */ ((RemoteSigningSubEventType2) => {
|
|
8096
|
+
RemoteSigningSubEventType2["FUTURE_VALUE"] = "FUTURE_VALUE";
|
|
8097
|
+
RemoteSigningSubEventType2["ECDH"] = "ECDH";
|
|
8098
|
+
RemoteSigningSubEventType2["GET_PER_COMMITMENT_POINT"] = "GET_PER_COMMITMENT_POINT";
|
|
8099
|
+
RemoteSigningSubEventType2["RELEASE_PER_COMMITMENT_SECRET"] = "RELEASE_PER_COMMITMENT_SECRET";
|
|
8100
|
+
RemoteSigningSubEventType2["SIGN_INVOICE"] = "SIGN_INVOICE";
|
|
8101
|
+
RemoteSigningSubEventType2["DERIVE_KEY_AND_SIGN"] = "DERIVE_KEY_AND_SIGN";
|
|
8102
|
+
RemoteSigningSubEventType2["RELEASE_PAYMENT_PREIMAGE"] = "RELEASE_PAYMENT_PREIMAGE";
|
|
8103
|
+
RemoteSigningSubEventType2["REQUEST_INVOICE_PAYMENT_HASH"] = "REQUEST_INVOICE_PAYMENT_HASH";
|
|
8104
|
+
return RemoteSigningSubEventType2;
|
|
8105
|
+
})(RemoteSigningSubEventType || {});
|
|
8106
|
+
var RemoteSigningSubEventType_default = RemoteSigningSubEventType;
|
|
8107
|
+
|
|
5966
8108
|
// src/objects/WithdrawalMode.ts
|
|
5967
8109
|
var WithdrawalMode = /* @__PURE__ */ ((WithdrawalMode2) => {
|
|
5968
8110
|
WithdrawalMode2["FUTURE_VALUE"] = "FUTURE_VALUE";
|
|
@@ -6000,7 +8142,7 @@ var RoutingTransactionFromJson = (obj) => {
|
|
|
6000
8142
|
failureReason: !!obj["routing_transaction_failure_reason"] ? RoutingTransactionFailureReason_default[obj["routing_transaction_failure_reason"]] ?? RoutingTransactionFailureReason_default.FUTURE_VALUE : null
|
|
6001
8143
|
};
|
|
6002
8144
|
};
|
|
6003
|
-
var
|
|
8145
|
+
var FRAGMENT25 = `
|
|
6004
8146
|
fragment RoutingTransactionFragment on RoutingTransaction {
|
|
6005
8147
|
__typename
|
|
6006
8148
|
routing_transaction_id: id
|
|
@@ -6048,13 +8190,47 @@ query GetRoutingTransaction($id: ID!) {
|
|
|
6048
8190
|
}
|
|
6049
8191
|
}
|
|
6050
8192
|
|
|
6051
|
-
${
|
|
8193
|
+
${FRAGMENT25}
|
|
6052
8194
|
`,
|
|
6053
8195
|
variables: { id },
|
|
6054
8196
|
constructObject: (data) => RoutingTransactionFromJson(data.entity)
|
|
6055
8197
|
};
|
|
6056
8198
|
};
|
|
6057
8199
|
|
|
8200
|
+
// src/objects/Signable.ts
|
|
8201
|
+
var SignableFromJson = (obj) => {
|
|
8202
|
+
return {
|
|
8203
|
+
id: obj["signable_id"],
|
|
8204
|
+
createdAt: obj["signable_created_at"],
|
|
8205
|
+
updatedAt: obj["signable_updated_at"],
|
|
8206
|
+
typename: "Signable"
|
|
8207
|
+
};
|
|
8208
|
+
};
|
|
8209
|
+
var FRAGMENT26 = `
|
|
8210
|
+
fragment SignableFragment on Signable {
|
|
8211
|
+
__typename
|
|
8212
|
+
signable_id: id
|
|
8213
|
+
signable_created_at: created_at
|
|
8214
|
+
signable_updated_at: updated_at
|
|
8215
|
+
}`;
|
|
8216
|
+
var getSignableQuery = (id) => {
|
|
8217
|
+
return {
|
|
8218
|
+
queryPayload: `
|
|
8219
|
+
query GetSignable($id: ID!) {
|
|
8220
|
+
entity(id: $id) {
|
|
8221
|
+
... on Signable {
|
|
8222
|
+
...SignableFragment
|
|
8223
|
+
}
|
|
8224
|
+
}
|
|
8225
|
+
}
|
|
8226
|
+
|
|
8227
|
+
${FRAGMENT26}
|
|
8228
|
+
`,
|
|
8229
|
+
variables: { id },
|
|
8230
|
+
constructObject: (data) => SignableFromJson(data.entity)
|
|
8231
|
+
};
|
|
8232
|
+
};
|
|
8233
|
+
|
|
6058
8234
|
// src/objects/TransactionType.ts
|
|
6059
8235
|
var TransactionType = /* @__PURE__ */ ((TransactionType2) => {
|
|
6060
8236
|
TransactionType2["FUTURE_VALUE"] = "FUTURE_VALUE";
|
|
@@ -6106,7 +8282,7 @@ var WithdrawalFromJson = (obj) => {
|
|
|
6106
8282
|
numConfirmations: obj["withdrawal_num_confirmations"]
|
|
6107
8283
|
};
|
|
6108
8284
|
};
|
|
6109
|
-
var
|
|
8285
|
+
var FRAGMENT27 = `
|
|
6110
8286
|
fragment WithdrawalFragment on Withdrawal {
|
|
6111
8287
|
__typename
|
|
6112
8288
|
withdrawal_id: id
|
|
@@ -6150,7 +8326,7 @@ query GetWithdrawal($id: ID!) {
|
|
|
6150
8326
|
}
|
|
6151
8327
|
}
|
|
6152
8328
|
|
|
6153
|
-
${
|
|
8329
|
+
${FRAGMENT27}
|
|
6154
8330
|
`,
|
|
6155
8331
|
variables: { id },
|
|
6156
8332
|
constructObject: (data) => WithdrawalFromJson(data.entity)
|
|
@@ -6158,7 +8334,7 @@ ${FRAGMENT23}
|
|
|
6158
8334
|
};
|
|
6159
8335
|
|
|
6160
8336
|
// src/objects/WithdrawalRequest.ts
|
|
6161
|
-
var
|
|
8337
|
+
var import_auto_bind13 = __toESM(require("auto-bind"), 1);
|
|
6162
8338
|
|
|
6163
8339
|
// src/objects/WithdrawalRequestStatus.ts
|
|
6164
8340
|
var WithdrawalRequestStatus = /* @__PURE__ */ ((WithdrawalRequestStatus2) => {
|
|
@@ -6206,7 +8382,7 @@ var WithdrawalRequest = class {
|
|
|
6206
8382
|
this.estimatedAmount = estimatedAmount;
|
|
6207
8383
|
this.completedAt = completedAt;
|
|
6208
8384
|
this.withdrawalId = withdrawalId;
|
|
6209
|
-
(0,
|
|
8385
|
+
(0, import_auto_bind13.default)(this);
|
|
6210
8386
|
}
|
|
6211
8387
|
async getChannelClosingTransactions(client, first = void 0) {
|
|
6212
8388
|
return await client.executeRawQuery({
|
|
@@ -6343,7 +8519,7 @@ query GetWithdrawalRequest($id: ID!) {
|
|
|
6343
8519
|
}
|
|
6344
8520
|
}
|
|
6345
8521
|
|
|
6346
|
-
${
|
|
8522
|
+
${FRAGMENT28}
|
|
6347
8523
|
`,
|
|
6348
8524
|
variables: { id },
|
|
6349
8525
|
constructObject: (data) => WithdrawalRequestFromJson(data.entity)
|
|
@@ -6365,7 +8541,7 @@ var WithdrawalRequestFromJson = (obj) => {
|
|
|
6365
8541
|
obj["withdrawal_request_withdrawal"]?.id ?? void 0
|
|
6366
8542
|
);
|
|
6367
8543
|
};
|
|
6368
|
-
var
|
|
8544
|
+
var FRAGMENT28 = `
|
|
6369
8545
|
fragment WithdrawalRequestFragment on WithdrawalRequest {
|
|
6370
8546
|
__typename
|
|
6371
8547
|
withdrawal_request_id: id
|
|
@@ -6403,7 +8579,7 @@ var WithdrawalRequest_default = WithdrawalRequest;
|
|
|
6403
8579
|
BitcoinNetwork,
|
|
6404
8580
|
Channel,
|
|
6405
8581
|
ChannelStatus,
|
|
6406
|
-
|
|
8582
|
+
ComplianceProvider,
|
|
6407
8583
|
CurrencyUnit,
|
|
6408
8584
|
GraphNode,
|
|
6409
8585
|
HtlcAttemptFailureCode,
|
|
@@ -6411,18 +8587,22 @@ var WithdrawalRequest_default = WithdrawalRequest;
|
|
|
6411
8587
|
IncomingPaymentAttemptStatus,
|
|
6412
8588
|
InvoiceType,
|
|
6413
8589
|
LightsparkNode,
|
|
6414
|
-
LightsparkNodePurpose,
|
|
6415
8590
|
LightsparkNodeStatus,
|
|
8591
|
+
LightsparkNodeWithOSK,
|
|
8592
|
+
LightsparkNodeWithRemoteSigning,
|
|
6416
8593
|
Node,
|
|
6417
8594
|
NodeAddressType,
|
|
6418
8595
|
OutgoingPayment,
|
|
6419
8596
|
OutgoingPaymentAttempt,
|
|
6420
8597
|
OutgoingPaymentAttemptStatus,
|
|
8598
|
+
PaymentDirection,
|
|
6421
8599
|
PaymentFailureReason,
|
|
6422
8600
|
PaymentRequestStatus,
|
|
6423
8601
|
Permission,
|
|
8602
|
+
RemoteSigningSubEventType,
|
|
6424
8603
|
RiskRating,
|
|
6425
8604
|
RoutingTransactionFailureReason,
|
|
8605
|
+
SignablePayloadStatus,
|
|
6426
8606
|
TransactionStatus,
|
|
6427
8607
|
TransactionType,
|
|
6428
8608
|
Wallet,
|
|
@@ -6443,6 +8623,8 @@ var WithdrawalRequest_default = WithdrawalRequest;
|
|
|
6443
8623
|
getOnChainTransactionQuery,
|
|
6444
8624
|
getPaymentRequestQuery,
|
|
6445
8625
|
getRoutingTransactionQuery,
|
|
8626
|
+
getSignablePayloadQuery,
|
|
8627
|
+
getSignableQuery,
|
|
6446
8628
|
getTransactionQuery,
|
|
6447
8629
|
getWithdrawalQuery
|
|
6448
8630
|
});
|