@lightsparkdev/lightspark-sdk 1.2.1 → 1.2.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +14 -0
- package/dist/{BitcoinNetwork-a816c0be.d.ts → BitcoinNetwork-37e9f091.d.ts} +8 -3
- package/dist/{chunk-VTPDR6P4.js → chunk-NCPWHRFO.js} +353 -15
- package/dist/env.d.cts +1 -1
- package/dist/env.d.ts +1 -1
- package/dist/{index-5acc6526.d.ts → index-449c9f58.d.ts} +2089 -644
- package/dist/index.cjs +1082 -470
- package/dist/index.d.cts +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.js +584 -302
- package/dist/objects/index.cjs +345 -5
- package/dist/objects/index.d.cts +2 -2
- package/dist/objects/index.d.ts +2 -2
- package/dist/objects/index.js +9 -1
- package/package.json +4 -4
- package/src/NodeKeyLoaderCache.ts +4 -3
- package/src/SigningKeyLoader.ts +12 -7
- package/src/client.ts +287 -60
- package/src/env.ts +3 -1
- package/src/graphql/ClaimUmaInvitation.ts +21 -0
- package/src/graphql/ClaimUmaInvitationWithIncentives.ts +25 -0
- package/src/graphql/CreateUmaInvitation.ts +19 -0
- package/src/graphql/CreateUmaInvitationWithIncentives.ts +23 -0
- package/src/graphql/FetchUmaInvitation.ts +15 -0
- package/src/objects/Account.ts +7 -3
- package/src/objects/AccountToApiTokensConnection.ts +7 -3
- package/src/objects/AccountToChannelsConnection.ts +3 -2
- package/src/objects/AccountToNodesConnection.ts +7 -3
- package/src/objects/AccountToPaymentRequestsConnection.ts +7 -3
- package/src/objects/AccountToTransactionsConnection.ts +13 -9
- package/src/objects/AccountToWalletsConnection.ts +7 -3
- package/src/objects/ApiToken.ts +13 -7
- package/src/objects/Balances.ts +22 -12
- package/src/objects/BitcoinNetwork.ts +8 -3
- package/src/objects/BlockchainBalance.ts +4 -1
- package/src/objects/Channel.ts +37 -14
- package/src/objects/ChannelClosingTransaction.ts +22 -11
- package/src/objects/ChannelFees.ts +4 -1
- package/src/objects/ChannelOpeningTransaction.ts +22 -11
- package/src/objects/ChannelStatus.ts +33 -8
- package/src/objects/ChannelToTransactionsConnection.ts +9 -8
- package/src/objects/ClaimUmaInvitationInput.ts +26 -0
- package/src/objects/ClaimUmaInvitationOutput.ts +30 -0
- package/src/objects/ClaimUmaInvitationWithIncentivesInput.ts +44 -0
- package/src/objects/ClaimUmaInvitationWithIncentivesOutput.ts +33 -0
- package/src/objects/ComplianceProvider.ts +3 -2
- package/src/objects/Connection.ts +7 -3
- package/src/objects/CreateApiTokenInput.ts +4 -1
- package/src/objects/CreateApiTokenOutput.ts +3 -3
- package/src/objects/CreateInvitationWithIncentivesInput.ts +37 -0
- package/src/objects/CreateInvitationWithIncentivesOutput.ts +32 -0
- package/src/objects/CreateLnurlInvoiceInput.ts +3 -2
- package/src/objects/CreateTestModePaymentInput.ts +2 -2
- package/src/objects/CreateTestModePaymentoutput.ts +5 -1
- package/src/objects/CreateUmaInvitationInput.ts +22 -0
- package/src/objects/CreateUmaInvitationOutput.ts +30 -0
- package/src/objects/CurrencyAmount.ts +6 -4
- package/src/objects/CurrencyUnit.ts +36 -9
- package/src/objects/Deposit.ts +22 -11
- package/src/objects/Entity.ts +21 -3
- package/src/objects/FeeEstimate.ts +5 -1
- package/src/objects/GraphNode.ts +30 -14
- package/src/objects/Hop.ts +12 -4
- package/src/objects/HtlcAttemptFailureCode.ts +7 -3
- package/src/objects/IncentivesIneligibilityReason.ts +48 -0
- package/src/objects/IncentivesStatus.ts +28 -0
- package/src/objects/IncomingPayment.ts +18 -7
- package/src/objects/IncomingPaymentAttempt.ts +8 -3
- package/src/objects/IncomingPaymentAttemptStatus.ts +7 -3
- package/src/objects/IncomingPaymentToAttemptsConnection.ts +7 -3
- package/src/objects/Invoice.ts +2 -2
- package/src/objects/InvoiceData.ts +7 -3
- package/src/objects/InvoiceType.ts +3 -2
- package/src/objects/LightningFeeEstimateForInvoiceInput.ts +2 -2
- package/src/objects/LightningTransaction.ts +12 -4
- package/src/objects/LightsparkNode.ts +33 -18
- package/src/objects/LightsparkNodeOwner.ts +2 -2
- package/src/objects/LightsparkNodeStatus.ts +3 -2
- package/src/objects/LightsparkNodeToChannelsConnection.ts +7 -3
- package/src/objects/LightsparkNodeWithOSK.ts +35 -19
- package/src/objects/LightsparkNodeWithRemoteSigning.ts +31 -18
- package/src/objects/Node.ts +28 -14
- package/src/objects/NodeAddressType.ts +7 -3
- package/src/objects/NodeToAddressesConnection.ts +7 -3
- package/src/objects/OnChainTransaction.ts +23 -11
- package/src/objects/OutgoingPayment.ts +25 -7
- package/src/objects/OutgoingPaymentAttempt.ts +34 -14
- package/src/objects/OutgoingPaymentAttemptStatus.ts +7 -3
- package/src/objects/OutgoingPaymentAttemptToHopsConnection.ts +12 -4
- package/src/objects/OutgoingPaymentToAttemptsConnection.ts +7 -3
- package/src/objects/PageInfo.ts +6 -1
- package/src/objects/PayInvoiceInput.ts +6 -3
- package/src/objects/PaymentDirection.ts +3 -2
- package/src/objects/PaymentFailureReason.ts +7 -3
- package/src/objects/PaymentRequest.ts +8 -3
- package/src/objects/PaymentRequestData.ts +5 -1
- package/src/objects/PaymentRequestStatus.ts +7 -3
- package/src/objects/Permission.ts +7 -3
- package/src/objects/PostTransactionData.ts +6 -3
- package/src/objects/RegionCode.ts +541 -0
- package/src/objects/RegisterPaymentInput.ts +12 -7
- package/src/objects/RemoteSigningSubEventType.ts +7 -3
- package/src/objects/RequestWithdrawalInput.ts +2 -2
- package/src/objects/RiskRating.ts +8 -3
- package/src/objects/RoutingTransaction.ts +20 -7
- package/src/objects/RoutingTransactionFailureReason.ts +8 -3
- package/src/objects/ScreenNodeInput.ts +3 -2
- package/src/objects/SendPaymentInput.ts +4 -1
- package/src/objects/SetInvoicePaymentHashInput.ts +3 -2
- package/src/objects/Signable.ts +2 -2
- package/src/objects/SignablePayload.ts +6 -3
- package/src/objects/SignablePayloadStatus.ts +3 -2
- package/src/objects/Transaction.ts +14 -4
- package/src/objects/TransactionFailures.ts +4 -1
- package/src/objects/TransactionStatus.ts +16 -5
- package/src/objects/TransactionType.ts +30 -8
- package/src/objects/TransactionUpdate.ts +6 -3
- package/src/objects/UmaInvitation.ts +119 -0
- package/src/objects/Wallet.ts +13 -4
- package/src/objects/WalletStatus.ts +36 -9
- package/src/objects/WalletToPaymentRequestsConnection.ts +7 -3
- package/src/objects/WalletToTransactionsConnection.ts +7 -3
- package/src/objects/WebhookEventType.ts +11 -3
- package/src/objects/Withdrawal.ts +22 -11
- package/src/objects/WithdrawalMode.ts +7 -3
- package/src/objects/WithdrawalRequest.ts +15 -6
- package/src/objects/WithdrawalRequestStatus.ts +3 -2
- package/src/objects/WithdrawalRequestToChannelClosingTransactionsConnection.ts +11 -4
- package/src/objects/WithdrawalRequestToChannelOpeningTransactionsConnection.ts +11 -4
- package/src/objects/index.ts +21 -6
- package/src/tests/integration/constants.ts +0 -3
- package/src/tests/integration/general-regtest.test.ts +178 -197
|
@@ -7,12 +7,16 @@ import { TransactionFromJson, TransactionToJson } from "./Transaction.js";
|
|
|
7
7
|
|
|
8
8
|
interface WalletToTransactionsConnection {
|
|
9
9
|
/**
|
|
10
|
-
* The total count of objects in this connection, using the current filters.
|
|
11
|
-
* number of objects returned in the current page
|
|
10
|
+
* The total count of objects in this connection, using the current filters.
|
|
11
|
+
* It is different from the number of objects returned in the current page
|
|
12
|
+
* (in the `entities` field).
|
|
12
13
|
**/
|
|
13
14
|
count: number;
|
|
14
15
|
|
|
15
|
-
/**
|
|
16
|
+
/**
|
|
17
|
+
* An object that holds pagination information about the objects in this
|
|
18
|
+
* connection. *
|
|
19
|
+
*/
|
|
16
20
|
pageInfo: PageInfo;
|
|
17
21
|
|
|
18
22
|
/** The transactions for the current page of this connection. **/
|
|
@@ -1,21 +1,29 @@
|
|
|
1
1
|
// Copyright ©, 2023-present, Lightspark Group, Inc. - All Rights Reserved
|
|
2
2
|
|
|
3
|
-
/**
|
|
3
|
+
/**
|
|
4
|
+
* This is an enum of the potential event types that can be associated with
|
|
5
|
+
* your Lightspark wallets. *
|
|
6
|
+
*/
|
|
4
7
|
export enum WebhookEventType {
|
|
5
8
|
/**
|
|
6
|
-
* This is an enum value that represents values that could be added in the
|
|
7
|
-
* Clients should support unknown values as more of them could be
|
|
9
|
+
* This is an enum value that represents values that could be added in the
|
|
10
|
+
* future. Clients should support unknown values as more of them could be
|
|
11
|
+
* added without notice.
|
|
8
12
|
*/
|
|
9
13
|
FUTURE_VALUE = "FUTURE_VALUE",
|
|
10
14
|
|
|
11
15
|
PAYMENT_FINISHED = "PAYMENT_FINISHED",
|
|
12
16
|
|
|
17
|
+
FORCE_CLOSURE = "FORCE_CLOSURE",
|
|
18
|
+
|
|
13
19
|
WITHDRAWAL_FINISHED = "WITHDRAWAL_FINISHED",
|
|
14
20
|
|
|
15
21
|
FUNDS_RECEIVED = "FUNDS_RECEIVED",
|
|
16
22
|
|
|
17
23
|
NODE_STATUS = "NODE_STATUS",
|
|
18
24
|
|
|
25
|
+
UMA_INVITATION_CLAIMED = "UMA_INVITATION_CLAIMED",
|
|
26
|
+
|
|
19
27
|
WALLET_STATUS = "WALLET_STATUS",
|
|
20
28
|
|
|
21
29
|
WALLET_OUTGOING_PAYMENT_FINISHED = "WALLET_OUTGOING_PAYMENT_FINISHED",
|
|
@@ -8,11 +8,16 @@ import {
|
|
|
8
8
|
} from "./CurrencyAmount.js";
|
|
9
9
|
import TransactionStatus from "./TransactionStatus.js";
|
|
10
10
|
|
|
11
|
-
/**
|
|
11
|
+
/**
|
|
12
|
+
* This object represents an L1 withdrawal from your Lightspark Node to any
|
|
13
|
+
* Bitcoin wallet. You can retrieve this object to receive detailed information
|
|
14
|
+
* about any L1 withdrawal associated with your Lightspark Node or account.
|
|
15
|
+
* *
|
|
16
|
+
*/
|
|
12
17
|
interface Withdrawal {
|
|
13
18
|
/**
|
|
14
|
-
* The unique identifier of this entity across all Lightspark systems.
|
|
15
|
-
* string.
|
|
19
|
+
* The unique identifier of this entity across all Lightspark systems.
|
|
20
|
+
* Should be treated as an opaque string.
|
|
16
21
|
**/
|
|
17
22
|
id: string;
|
|
18
23
|
|
|
@@ -29,8 +34,8 @@ interface Withdrawal {
|
|
|
29
34
|
amount: CurrencyAmount;
|
|
30
35
|
|
|
31
36
|
/**
|
|
32
|
-
* The height of the block that included this transaction.
|
|
33
|
-
* transactions.
|
|
37
|
+
* The height of the block that included this transaction.
|
|
38
|
+
* This will be zero for unconfirmed transactions.
|
|
34
39
|
**/
|
|
35
40
|
blockHeight: number;
|
|
36
41
|
|
|
@@ -46,22 +51,28 @@ interface Withdrawal {
|
|
|
46
51
|
/** The date and time when this transaction was completed or failed. **/
|
|
47
52
|
resolvedAt?: string | undefined;
|
|
48
53
|
|
|
49
|
-
/**
|
|
54
|
+
/**
|
|
55
|
+
* The hash of this transaction, so it can be uniquely identified on the
|
|
56
|
+
* Lightning Network. *
|
|
57
|
+
*/
|
|
50
58
|
transactionHash?: string | undefined;
|
|
51
59
|
|
|
52
60
|
/**
|
|
53
|
-
* The fees that were paid by the wallet sending the transaction to commit it
|
|
54
|
-
* blockchain.
|
|
61
|
+
* The fees that were paid by the wallet sending the transaction to commit it
|
|
62
|
+
* to the Bitcoin blockchain.
|
|
55
63
|
**/
|
|
56
64
|
fees?: CurrencyAmount | undefined;
|
|
57
65
|
|
|
58
66
|
/**
|
|
59
|
-
* The hash of the block that included this transaction.
|
|
60
|
-
* transactions.
|
|
67
|
+
* The hash of the block that included this transaction.
|
|
68
|
+
* This will be null for unconfirmed transactions.
|
|
61
69
|
**/
|
|
62
70
|
blockHash?: string | undefined;
|
|
63
71
|
|
|
64
|
-
/**
|
|
72
|
+
/**
|
|
73
|
+
* The number of blockchain confirmations for this transaction in real time.
|
|
74
|
+
* *
|
|
75
|
+
*/
|
|
65
76
|
numConfirmations?: number | undefined;
|
|
66
77
|
}
|
|
67
78
|
|
|
@@ -1,10 +1,14 @@
|
|
|
1
1
|
// Copyright ©, 2023-present, Lightspark Group, Inc. - All Rights Reserved
|
|
2
2
|
|
|
3
|
-
/**
|
|
3
|
+
/**
|
|
4
|
+
* This is an enum of the potential modes that your Bitcoin withdrawal can
|
|
5
|
+
* take. *
|
|
6
|
+
*/
|
|
4
7
|
export enum WithdrawalMode {
|
|
5
8
|
/**
|
|
6
|
-
* This is an enum value that represents values that could be added in the
|
|
7
|
-
* Clients should support unknown values as more of them could be
|
|
9
|
+
* This is an enum value that represents values that could be added in the
|
|
10
|
+
* future. Clients should support unknown values as more of them could be
|
|
11
|
+
* added without notice.
|
|
8
12
|
*/
|
|
9
13
|
FUTURE_VALUE = "FUTURE_VALUE",
|
|
10
14
|
|
|
@@ -16,12 +16,18 @@ import { WithdrawalRequestToChannelClosingTransactionsConnectionFromJson } from
|
|
|
16
16
|
import type WithdrawalRequestToChannelOpeningTransactionsConnection from "./WithdrawalRequestToChannelOpeningTransactionsConnection.js";
|
|
17
17
|
import { WithdrawalRequestToChannelOpeningTransactionsConnectionFromJson } from "./WithdrawalRequestToChannelOpeningTransactionsConnection.js";
|
|
18
18
|
|
|
19
|
-
/**
|
|
19
|
+
/**
|
|
20
|
+
* This object represents a request made for an L1 withdrawal from your
|
|
21
|
+
* Lightspark Node to any Bitcoin wallet.
|
|
22
|
+
* You can retrieve this object to receive detailed information about any
|
|
23
|
+
* withdrawal request made from your Lightspark account.
|
|
24
|
+
* *
|
|
25
|
+
*/
|
|
20
26
|
class WithdrawalRequest implements Entity {
|
|
21
27
|
constructor(
|
|
22
28
|
/**
|
|
23
|
-
* The unique identifier of this entity across all Lightspark systems.
|
|
24
|
-
* string.
|
|
29
|
+
* The unique identifier of this entity across all Lightspark systems.
|
|
30
|
+
* Should be treated as an opaque string.
|
|
25
31
|
**/
|
|
26
32
|
public readonly id: string,
|
|
27
33
|
/** The date and time when the entity was first created. **/
|
|
@@ -32,15 +38,18 @@ class WithdrawalRequest implements Entity {
|
|
|
32
38
|
public readonly amount: CurrencyAmount,
|
|
33
39
|
/** The bitcoin address where the funds should be sent. **/
|
|
34
40
|
public readonly bitcoinAddress: string,
|
|
35
|
-
/**
|
|
41
|
+
/**
|
|
42
|
+
* The strategy that should be used to withdraw the funds from the account.
|
|
43
|
+
* *
|
|
44
|
+
*/
|
|
36
45
|
public readonly withdrawalMode: WithdrawalMode,
|
|
37
46
|
/** The current status of this withdrawal request. **/
|
|
38
47
|
public readonly status: WithdrawalRequestStatus,
|
|
39
48
|
/** The typename of the object **/
|
|
40
49
|
public readonly typename: string,
|
|
41
50
|
/**
|
|
42
|
-
* If the requested amount is `-1` (i.e. everything),
|
|
43
|
-
* for the withdrawal.
|
|
51
|
+
* If the requested amount is `-1` (i.e. everything),
|
|
52
|
+
* this field may contain an estimate of the amount for the withdrawal.
|
|
44
53
|
**/
|
|
45
54
|
public readonly estimatedAmount?: CurrencyAmount | undefined,
|
|
46
55
|
/** The time at which this request was completed. **/
|
|
@@ -3,8 +3,9 @@
|
|
|
3
3
|
/** This is an enum of the potential statuses that a Withdrawal can take. **/
|
|
4
4
|
export enum WithdrawalRequestStatus {
|
|
5
5
|
/**
|
|
6
|
-
* This is an enum value that represents values that could be added in the
|
|
7
|
-
* Clients should support unknown values as more of them could be
|
|
6
|
+
* This is an enum value that represents values that could be added in the
|
|
7
|
+
* future. Clients should support unknown values as more of them could be
|
|
8
|
+
* added without notice.
|
|
8
9
|
*/
|
|
9
10
|
FUTURE_VALUE = "FUTURE_VALUE",
|
|
10
11
|
|
|
@@ -9,16 +9,23 @@ import type PageInfo from "./PageInfo.js";
|
|
|
9
9
|
import { PageInfoFromJson, PageInfoToJson } from "./PageInfo.js";
|
|
10
10
|
|
|
11
11
|
interface WithdrawalRequestToChannelClosingTransactionsConnection {
|
|
12
|
-
/**
|
|
12
|
+
/**
|
|
13
|
+
* An object that holds pagination information about the objects in this
|
|
14
|
+
* connection. *
|
|
15
|
+
*/
|
|
13
16
|
pageInfo: PageInfo;
|
|
14
17
|
|
|
15
18
|
/**
|
|
16
|
-
* The total count of objects in this connection, using the current filters.
|
|
17
|
-
* number of objects returned in the current page
|
|
19
|
+
* The total count of objects in this connection, using the current filters.
|
|
20
|
+
* It is different from the number of objects returned in the current page
|
|
21
|
+
* (in the `entities` field).
|
|
18
22
|
**/
|
|
19
23
|
count: number;
|
|
20
24
|
|
|
21
|
-
/**
|
|
25
|
+
/**
|
|
26
|
+
* The channel closing transactions for the current page of this connection.
|
|
27
|
+
* *
|
|
28
|
+
*/
|
|
22
29
|
entities: ChannelClosingTransaction[];
|
|
23
30
|
}
|
|
24
31
|
|
|
@@ -9,16 +9,23 @@ import type PageInfo from "./PageInfo.js";
|
|
|
9
9
|
import { PageInfoFromJson, PageInfoToJson } from "./PageInfo.js";
|
|
10
10
|
|
|
11
11
|
interface WithdrawalRequestToChannelOpeningTransactionsConnection {
|
|
12
|
-
/**
|
|
12
|
+
/**
|
|
13
|
+
* An object that holds pagination information about the objects in this
|
|
14
|
+
* connection. *
|
|
15
|
+
*/
|
|
13
16
|
pageInfo: PageInfo;
|
|
14
17
|
|
|
15
18
|
/**
|
|
16
|
-
* The total count of objects in this connection, using the current filters.
|
|
17
|
-
* number of objects returned in the current page
|
|
19
|
+
* The total count of objects in this connection, using the current filters.
|
|
20
|
+
* It is different from the number of objects returned in the current page
|
|
21
|
+
* (in the `entities` field).
|
|
18
22
|
**/
|
|
19
23
|
count: number;
|
|
20
24
|
|
|
21
|
-
/**
|
|
25
|
+
/**
|
|
26
|
+
* The channel opening transactions for the current page of this connection.
|
|
27
|
+
* *
|
|
28
|
+
*/
|
|
22
29
|
entities: ChannelOpeningTransaction[];
|
|
23
30
|
}
|
|
24
31
|
|
package/src/objects/index.ts
CHANGED
|
@@ -22,10 +22,16 @@ export {
|
|
|
22
22
|
export { default as ChannelSnapshot } from "./ChannelSnapshot.js";
|
|
23
23
|
export { default as ChannelStatus } from "./ChannelStatus.js";
|
|
24
24
|
export { default as ChannelToTransactionsConnection } from "./ChannelToTransactionsConnection.js";
|
|
25
|
+
export { default as ClaimUmaInvitationInput } from "./ClaimUmaInvitationInput.js";
|
|
26
|
+
export { default as ClaimUmaInvitationOutput } from "./ClaimUmaInvitationOutput.js";
|
|
27
|
+
export { default as ClaimUmaInvitationWithIncentivesInput } from "./ClaimUmaInvitationWithIncentivesInput.js";
|
|
28
|
+
export { default as ClaimUmaInvitationWithIncentivesOutput } from "./ClaimUmaInvitationWithIncentivesOutput.js";
|
|
25
29
|
export { default as ComplianceProvider } from "./ComplianceProvider.js";
|
|
26
30
|
export { default as Connection } from "./Connection.js";
|
|
27
31
|
export { default as CreateApiTokenInput } from "./CreateApiTokenInput.js";
|
|
28
32
|
export { default as CreateApiTokenOutput } from "./CreateApiTokenOutput.js";
|
|
33
|
+
export { default as CreateInvitationWithIncentivesInput } from "./CreateInvitationWithIncentivesInput.js";
|
|
34
|
+
export { default as CreateInvitationWithIncentivesOutput } from "./CreateInvitationWithIncentivesOutput.js";
|
|
29
35
|
export { default as CreateInvoiceInput } from "./CreateInvoiceInput.js";
|
|
30
36
|
export { default as CreateInvoiceOutput } from "./CreateInvoiceOutput.js";
|
|
31
37
|
export { default as CreateLnurlInvoiceInput } from "./CreateLnurlInvoiceInput.js";
|
|
@@ -35,6 +41,8 @@ export { default as CreateTestModeInvoiceInput } from "./CreateTestModeInvoiceIn
|
|
|
35
41
|
export { default as CreateTestModeInvoiceOutput } from "./CreateTestModeInvoiceOutput.js";
|
|
36
42
|
export { default as CreateTestModePaymentInput } from "./CreateTestModePaymentInput.js";
|
|
37
43
|
export { default as CreateTestModePaymentoutput } from "./CreateTestModePaymentoutput.js";
|
|
44
|
+
export { default as CreateUmaInvitationInput } from "./CreateUmaInvitationInput.js";
|
|
45
|
+
export { default as CreateUmaInvitationOutput } from "./CreateUmaInvitationOutput.js";
|
|
38
46
|
export { default as CreateUmaInvoiceInput } from "./CreateUmaInvoiceInput.js";
|
|
39
47
|
export { default as CurrencyAmount } from "./CurrencyAmount.js";
|
|
40
48
|
export { default as CurrencyUnit } from "./CurrencyUnit.js";
|
|
@@ -51,6 +59,8 @@ export { default as GraphNode } from "./GraphNode.js";
|
|
|
51
59
|
export { default as Hop, getHopQuery } from "./Hop.js";
|
|
52
60
|
export { default as HtlcAttemptFailureCode } from "./HtlcAttemptFailureCode.js";
|
|
53
61
|
export { default as IdAndSignature } from "./IdAndSignature.js";
|
|
62
|
+
export { default as IncentivesIneligibilityReason } from "./IncentivesIneligibilityReason.js";
|
|
63
|
+
export { default as IncentivesStatus } from "./IncentivesStatus.js";
|
|
54
64
|
export { default as IncomingPayment } from "./IncomingPayment.js";
|
|
55
65
|
export {
|
|
56
66
|
default as IncomingPaymentAttempt,
|
|
@@ -92,12 +102,13 @@ export { default as OutgoingPayment } from "./OutgoingPayment.js";
|
|
|
92
102
|
export { default as OutgoingPaymentAttempt } from "./OutgoingPaymentAttempt.js";
|
|
93
103
|
export { default as OutgoingPaymentAttemptStatus } from "./OutgoingPaymentAttemptStatus.js";
|
|
94
104
|
export { default as OutgoingPaymentAttemptToHopsConnection } from "./OutgoingPaymentAttemptToHopsConnection.js";
|
|
105
|
+
export { default as OutgoingPaymentToAttemptsConnection } from "./OutgoingPaymentToAttemptsConnection.js";
|
|
95
106
|
export { default as OutgoingPaymentsForInvoiceQueryInput } from "./OutgoingPaymentsForInvoiceQueryInput.js";
|
|
96
107
|
export { default as OutgoingPaymentsForInvoiceQueryOutput } from "./OutgoingPaymentsForInvoiceQueryOutput.js";
|
|
97
|
-
export { default as OutgoingPaymentToAttemptsConnection } from "./OutgoingPaymentToAttemptsConnection.js";
|
|
98
108
|
export { default as PageInfo } from "./PageInfo.js";
|
|
99
109
|
export { default as PayInvoiceInput } from "./PayInvoiceInput.js";
|
|
100
110
|
export { default as PayInvoiceOutput } from "./PayInvoiceOutput.js";
|
|
111
|
+
export { default as PayUmaInvoiceInput } from "./PayUmaInvoiceInput.js";
|
|
101
112
|
export { default as PaymentDirection } from "./PaymentDirection.js";
|
|
102
113
|
export { default as PaymentFailureReason } from "./PaymentFailureReason.js";
|
|
103
114
|
export {
|
|
@@ -106,9 +117,9 @@ export {
|
|
|
106
117
|
} from "./PaymentRequest.js";
|
|
107
118
|
export { default as PaymentRequestData } from "./PaymentRequestData.js";
|
|
108
119
|
export { default as PaymentRequestStatus } from "./PaymentRequestStatus.js";
|
|
109
|
-
export { default as PayUmaInvoiceInput } from "./PayUmaInvoiceInput.js";
|
|
110
120
|
export { default as Permission } from "./Permission.js";
|
|
111
121
|
export { default as PostTransactionData } from "./PostTransactionData.js";
|
|
122
|
+
export { default as RegionCode } from "./RegionCode.js";
|
|
112
123
|
export { default as RegisterPaymentInput } from "./RegisterPaymentInput.js";
|
|
113
124
|
export { default as RegisterPaymentOutput } from "./RegisterPaymentOutput.js";
|
|
114
125
|
export { default as ReleaseChannelPerCommitmentSecretInput } from "./ReleaseChannelPerCommitmentSecretInput.js";
|
|
@@ -132,22 +143,26 @@ export { default as SendPaymentInput } from "./SendPaymentInput.js";
|
|
|
132
143
|
export { default as SendPaymentOutput } from "./SendPaymentOutput.js";
|
|
133
144
|
export { default as SetInvoicePaymentHashInput } from "./SetInvoicePaymentHashInput.js";
|
|
134
145
|
export { default as SetInvoicePaymentHashOutput } from "./SetInvoicePaymentHashOutput.js";
|
|
146
|
+
export { default as SignInvoiceInput } from "./SignInvoiceInput.js";
|
|
147
|
+
export { default as SignInvoiceOutput } from "./SignInvoiceOutput.js";
|
|
148
|
+
export { default as SignMessagesInput } from "./SignMessagesInput.js";
|
|
149
|
+
export { default as SignMessagesOutput } from "./SignMessagesOutput.js";
|
|
135
150
|
export { default as Signable, getSignableQuery } from "./Signable.js";
|
|
136
151
|
export {
|
|
137
152
|
default as SignablePayload,
|
|
138
153
|
getSignablePayloadQuery,
|
|
139
154
|
} from "./SignablePayload.js";
|
|
140
155
|
export { default as SignablePayloadStatus } from "./SignablePayloadStatus.js";
|
|
141
|
-
export { default as SignInvoiceInput } from "./SignInvoiceInput.js";
|
|
142
|
-
export { default as SignInvoiceOutput } from "./SignInvoiceOutput.js";
|
|
143
|
-
export { default as SignMessagesInput } from "./SignMessagesInput.js";
|
|
144
|
-
export { default as SignMessagesOutput } from "./SignMessagesOutput.js";
|
|
145
156
|
export { default as SingleNodeDashboard } from "./SingleNodeDashboard.js";
|
|
146
157
|
export { default as Transaction, getTransactionQuery } from "./Transaction.js";
|
|
147
158
|
export { default as TransactionFailures } from "./TransactionFailures.js";
|
|
148
159
|
export { default as TransactionStatus } from "./TransactionStatus.js";
|
|
149
160
|
export { default as TransactionType } from "./TransactionType.js";
|
|
150
161
|
export { default as TransactionUpdate } from "./TransactionUpdate.js";
|
|
162
|
+
export {
|
|
163
|
+
default as UmaInvitation,
|
|
164
|
+
getUmaInvitationQuery,
|
|
165
|
+
} from "./UmaInvitation.js";
|
|
151
166
|
export { default as UpdateChannelPerCommitmentPointInput } from "./UpdateChannelPerCommitmentPointInput.js";
|
|
152
167
|
export { default as UpdateChannelPerCommitmentPointOutput } from "./UpdateChannelPerCommitmentPointOutput.js";
|
|
153
168
|
export { default as UpdateNodeSharedSecretInput } from "./UpdateNodeSharedSecretInput.js";
|
|
@@ -5,9 +5,6 @@ export const INVOICE_EXPIRY = 172800; //ms
|
|
|
5
5
|
export const TRANSACTION_WAIT_TIME = TESTS_TIMEOUT / 1000; //seconds
|
|
6
6
|
export const PAGINATION_STEP = 3;
|
|
7
7
|
|
|
8
|
-
export const PAY_AMOUNT = 1_000; //msats
|
|
9
|
-
export const MAX_FEE = 10000000; //msats
|
|
10
|
-
|
|
11
8
|
export const REGTEST_SIGNING_KEY_PASSWORD = "1234!@#$";
|
|
12
9
|
export const ENCODED_REGTEST_REQUEST_FOR_TESTS =
|
|
13
10
|
"lnbcrt1pjj6zu2pp50qr2p79v65u9l8w3859259yj9fe5nt79hfw5k2am424440tlj09qdq0dp5jqargv4ex2ggcqzpgxqyz5vqsp5v0z0fu99jf37xcasu88evuphx9kdrpvtupdvhu329kx7k7un59zs9qyyssqegzx986rszy96te2kmxl7prlz0p8avthpwzhsz5v220uek7xxrz54svdsjpzwn04m6utj5ua9tmtktygc5xmjmjaqey9dadt33r8gxspvcg8wv";
|