react-native-nitro-ark 0.0.132 → 0.0.134

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.
@@ -1,4 +1,4 @@
1
- import type { NitroArk, BarkCreateOpts, BarkArkInfo, Bolt11Invoice, BarkSendManyOutput, ArkoorPaymentResult, BarkFeeEstimate, BarkFeeRates, OnchainTransactionInfo, ExitProgressStatusResult as NitroExitProgressStatusResult, ExitVtxoResult as NitroExitVtxoResult, ExitStatusResult as NitroExitStatusResult, ExitBlockRefResult as NitroExitBlockRefResult, ExitTxOriginResult as NitroExitTxOriginResult, ExitTxStatusResult as NitroExitTxStatusResult, ExitTxResult as NitroExitTxResult, ExitStateDetailsResult as NitroExitStateDetailsResult, ExitTransactionPackageResult as NitroExitTransactionPackageResult, LightningPaymentResult, OnchainPaymentResult, OffchainBalanceResult, OnchainBalanceResult, NewAddressResult, KeyPairResult, MailboxAuthorizationResult, LightningReceive, BarkNotificationEvent as NitroBarkNotificationEvent, BarkNotificationSubscription, BarkMovement as NitroBarkMovement, BarkMovementDestination as NitroBarkMovementDestination, BoardResult, PendingRoundStatus as NitroPendingRoundStatus, DelegatedRoundState, WalletSnapshotInfo, WalletSnapshotExpectation, WalletStateChangeEvent as NitroWalletStateChangeEvent, WalletStateChangeSubscription } from './NitroArk.nitro';
1
+ import type { NitroArk, BarkCreateOpts, BarkArkInfo, Bolt11Invoice, BarkSendManyOutput, ArkoorPaymentResult, BarkFeeEstimate, BarkFeeRates, OnchainTransactionInfo, ExitProgressStatusResult as NitroExitProgressStatusResult, ExitVtxoResult as NitroExitVtxoResult, ExitStatusResult as NitroExitStatusResult, ExitBlockRefResult as NitroExitBlockRefResult, ExitTxOriginResult as NitroExitTxOriginResult, ExitTxStatusResult as NitroExitTxStatusResult, ExitTxResult as NitroExitTxResult, ExitStateDetailsResult as NitroExitStateDetailsResult, ExitTransactionPackageResult as NitroExitTransactionPackageResult, LightningPaymentResult, OnchainPaymentResult, OffchainBalanceResult, OnchainBalanceResult, NewAddressResult, KeyPairResult, MailboxAuthorizationResult, LightningReceive as NitroLightningReceive, BarkNotificationEvent as NitroBarkNotificationEvent, BarkNotificationSubscription, BarkMovement as NitroBarkMovement, BarkMovementDestination as NitroBarkMovementDestination, BoardResult, PendingRoundStatus as NitroPendingRoundStatus, DelegatedRoundState, WalletSnapshotInfo, WalletSnapshotExpectation, WalletStateChangeEvent as NitroWalletStateChangeEvent, WalletStateChangeSubscription } from './NitroArk.nitro';
2
2
  export type VtxoState = 'Spendable' | 'Spent' | 'Locked' | 'Exited' | 'unknown';
3
3
  export type BarkVtxo = {
4
4
  id: string;
@@ -11,25 +11,46 @@ export type BarkVtxo = {
11
11
  state: VtxoState;
12
12
  };
13
13
  export type MovementStatus = 'pending' | 'successful' | 'failed' | 'canceled';
14
- export type ExitProgressState = 'Start' | 'Processing' | 'AwaitingDelta' | 'Claimable' | 'ClaimInProgress' | 'Claimed' | 'VtxoAlreadySpent';
14
+ export type ExitProgressState = 'Start' | 'Processing' | 'AwaitingDelta' | 'Claimable' | 'ClaimInProgress' | 'Claimed' | 'VtxoAlreadySpent' | 'Canceled';
15
+ export type ExitStateKind = 'start' | 'processing' | 'awaiting-delta' | 'claimable' | 'claim-in-progress' | 'claimed' | 'vtxo-already-spent' | 'canceled';
15
16
  export type BlockRef = NitroExitBlockRefResult;
16
17
  export type ExitTxOrigin = NitroExitTxOriginResult;
17
18
  export type ExitTxStatus = NitroExitTxStatusResult;
18
19
  export type ExitTx = NitroExitTxResult;
19
- export type ExitStateDetails = NitroExitStateDetailsResult;
20
- export type ExitProgressStatusResult = Omit<NitroExitProgressStatusResult, 'state'> & {
20
+ export type ExitStateDetails = Omit<NitroExitStateDetailsResult, 'kind'> & {
21
+ kind: ExitStateKind;
22
+ };
23
+ export type ExitProgressStatusResult = Omit<NitroExitProgressStatusResult, 'state' | 'state_details'> & {
21
24
  state: ExitProgressState;
25
+ state_details: ExitStateDetails;
22
26
  };
23
- export type ExitVtxoResult = Omit<NitroExitVtxoResult, 'state' | 'history'> & {
27
+ export type ExitVtxoResult = Omit<NitroExitVtxoResult, 'state' | 'state_details' | 'history' | 'history_details'> & {
24
28
  state: ExitProgressState;
29
+ state_details: ExitStateDetails;
25
30
  history: ExitProgressState[];
31
+ history_details: ExitStateDetails[];
26
32
  };
27
33
  export type ExitTransactionPackageResult = NitroExitTransactionPackageResult;
28
- export type ExitStatusResult = Omit<NitroExitStatusResult, 'state' | 'history'> & {
34
+ export type ExitStatusResult = Omit<NitroExitStatusResult, 'state' | 'state_details' | 'history' | 'history_details'> & {
29
35
  state: ExitProgressState;
36
+ state_details: ExitStateDetails;
30
37
  history: ExitProgressState[];
38
+ history_details: ExitStateDetails[];
31
39
  transactions: ExitTransactionPackageResult[];
32
40
  };
41
+ export type LightningReceivePhase = 'awaiting_payment' | 'htlcs_ready' | 'preimage_revealed';
42
+ type LightningReceiveBase = Omit<NitroLightningReceive, 'state' | 'phase'>;
43
+ export type LightningReceive = (LightningReceiveBase & {
44
+ state: 'in_progress';
45
+ phase: LightningReceivePhase;
46
+ amount_sat?: undefined;
47
+ settled_at?: undefined;
48
+ }) | (LightningReceiveBase & {
49
+ state: 'settled';
50
+ phase?: undefined;
51
+ amount_sat: number;
52
+ settled_at: number;
53
+ });
33
54
  export type BarkMovementDestination = NitroBarkMovementDestination & {
34
55
  payment_method: 'ark' | 'bitcoin' | 'output-script' | 'invoice' | 'offer' | 'lightning-address' | 'lnurl' | 'custom';
35
56
  };
@@ -56,6 +77,21 @@ export type LightningPaymentState = 'unknown' | 'in_progress' | 'paid' | 'revoca
56
77
  export type LightningPayment = Omit<LightningPaymentResult, 'state'> & {
57
78
  state: LightningPaymentState;
58
79
  };
80
+ /**
81
+ * A user-facing payment identifier that has already been resolved to a
82
+ * Lightning invoice. `custom` preserves protocols Bark does not model
83
+ * natively while still recording their original identifier.
84
+ */
85
+ export type LightningPaymentOrigin = {
86
+ method: 'lightning-address';
87
+ value: string;
88
+ } | {
89
+ method: 'lnurl';
90
+ value: string;
91
+ } | {
92
+ method: 'custom';
93
+ value: string;
94
+ };
59
95
  export declare const NitroArkHybridObject: NitroArk;
60
96
  /** Returns the semver of the Bark wallet library compiled into the native module. */
61
97
  export declare function getBarkVersion(): string;
@@ -114,30 +150,10 @@ export declare function isWalletLoaded(): Promise<boolean>;
114
150
  * @returns A promise that resolves on success.
115
151
  */
116
152
  export declare function syncPendingBoards(): Promise<void>;
117
- /**
118
- * Runs wallet maintenance tasks for offchain.
119
- * This includes refreshing vtxos that need to be refreshed.
120
- * @returns A promise that resolves on success.
121
- */
153
+ /** Runs wallet maintenance, including on-chain synchronization and exit progression. */
122
154
  export declare function maintenance(): Promise<void>;
123
- /**
124
- * Runs wallet maintenance tasks for both offchain and onchain.
125
- * This includes refreshing vtxos that need to be refreshed.
126
- * @returns A promise that resolves on success.
127
- */
128
- export declare function maintenanceWithOnchain(): Promise<void>;
129
- /**
130
- * Runs delegated wallet maintenance tasks for offchain.
131
- * This includes refreshing vtxos that need to be refreshed using delegated signing.
132
- * @returns A promise that resolves on success.
133
- */
155
+ /** Runs delegated wallet maintenance, including on-chain synchronization. */
134
156
  export declare function maintenanceDelegated(): Promise<void>;
135
- /**
136
- * Runs delegated wallet maintenance tasks for both offchain and onchain.
137
- * This includes refreshing vtxos that need to be refreshed using delegated signing.
138
- * @returns A promise that resolves on success.
139
- */
140
- export declare function maintenanceWithOnchainDelegated(): Promise<void>;
141
157
  /**
142
158
  * Refreshes vtxos that need to be refreshed.
143
159
  * @returns A promise that resolves on success.
@@ -334,6 +350,14 @@ export declare function subscribeLightningPaymentMovements(paymentHash: string,
334
350
  * @returns A promise resolving to an array of BarkMovement objects.
335
351
  */
336
352
  export declare function history(): Promise<BarkMovement[]>;
353
+ /**
354
+ * Applies an RFC 7396 JSON Merge Patch to a wallet movement's metadata.
355
+ * The patch must serialize to a JSON object no larger than 16 KiB.
356
+ * @param movementId The Bark movement ID.
357
+ * @param patchJson The JSON object merge patch.
358
+ * @returns A promise that resolves after Bark persists the updated metadata.
359
+ */
360
+ export declare function updateHistoryMetadata(movementId: number, patchJson: string): Promise<void>;
337
361
  /**
338
362
  * Gets the list of VTXOs as a JSON string for the loaded wallet.
339
363
  * @param no_sync If true, skips synchronization with the blockchain. Defaults to false.
@@ -360,6 +384,12 @@ export declare function importVtxo(vtxoHex: string): Promise<BarkVtxo>;
360
384
  * @returns A promise that resolves on success.
361
385
  */
362
386
  export declare function dangerousDropVtxo(vtxoId: string): Promise<void>;
387
+ /**
388
+ * Unlocks locked VTXOs and returns them to the spendable state.
389
+ * Already-spendable VTXOs are left unchanged. Spent, unknown, or malformed IDs reject the batch.
390
+ * @param vtxoIds VTXO IDs to unlock.
391
+ */
392
+ export declare function unlockVtxos(vtxoIds: string[]): Promise<void>;
363
393
  /**
364
394
  * Gets the first expiring VTXO blockheight for the loaded wallet.
365
395
  * @returns A promise resolving to the first expiring VTXO blockheight.
@@ -437,13 +467,13 @@ export declare function onchainSendMany(outputs: BarkSendManyOutput[]): Promise<
437
467
  * @param description Optional invoice description/memo.
438
468
  * @returns A promise resolving to Bolt11Invoice object.
439
469
  */
440
- export declare function bolt11Invoice(amountMsat: number, description?: string): Promise<Bolt11Invoice>;
470
+ export declare function bolt11Invoice(amountMsat: number, description?: string, token?: string): Promise<Bolt11Invoice>;
441
471
  /**
442
472
  * Gets the status of a Lightning receive.
443
473
  * @param paymentHash The payment hash of the Lightning receive.
444
474
  * @returns A promise resolving to the Lightning receive status.
445
475
  */
446
- export declare function lightningReceiveStatus(paymentHash: string): Promise<LightningReceive | undefined>;
476
+ export declare function lightningReceiveStatus(paymentHash: string): Promise<LightningReceive>;
447
477
  /**
448
478
  * Checks a Lightning payment and optionally waits for completion.
449
479
  * @param paymentHash The payment hash of the Lightning payment.
@@ -452,13 +482,12 @@ export declare function lightningReceiveStatus(paymentHash: string): Promise<Lig
452
482
  */
453
483
  export declare function checkLightningPayment(paymentHash: string, wait: boolean): Promise<LightningPayment>;
454
484
  /**
455
- * Attempts to claim a Lightning payment, optionally using a claim token.
485
+ * Attempts to claim a Lightning payment.
456
486
  * @param paymentHash The payment hash of the Lightning payment.
457
487
  * @param wait Whether to wait for the claim to complete.
458
- * @param token Optional claim token used when no spendable VTXOs are owned.
459
- * @returns A promise resolving to the claimed LightningReceive if successful, or null if not.
488
+ * @returns A promise resolving to the current Lightning receive state.
460
489
  */
461
- export declare function tryClaimLightningReceive(paymentHash: string, wait: boolean, token?: string): Promise<LightningReceive>;
490
+ export declare function tryClaimLightningReceive(paymentHash: string, wait: boolean): Promise<LightningReceive>;
462
491
  /**
463
492
  * Checks and claims all open Lightning receives.
464
493
  * @param wait Whether to wait for the claim to complete.
@@ -473,6 +502,32 @@ export declare function tryClaimAllLightningReceives(wait: boolean): Promise<voi
473
502
  * @returns A promise resolving to the current Lightning payment state.
474
503
  */
475
504
  export declare function payLightningInvoice(destination: string, wait: boolean, amountSat?: number): Promise<LightningPayment>;
505
+ /**
506
+ * Pays a Bolt11 invoice that the caller has already resolved from another
507
+ * user-facing payment identifier.
508
+ *
509
+ * This is a low-level counterpart to helpers such as `payLightningAddress`.
510
+ * It deliberately performs no remote discovery or callback request. Instead,
511
+ * it tells Bark which identifier produced the invoice so Bark can persist that
512
+ * identifier in the Lightning-send checkpoint and movement before settlement.
513
+ * This keeps payment provenance intact across interruption, history reloads,
514
+ * and wallet backups instead of recording only the one-time Bolt11 invoice.
515
+ *
516
+ * Callers remain responsible for resolving the origin, validating the returned
517
+ * invoice, and ensuring its amount matches the external protocol request.
518
+ * This API intentionally has no amount override: the resolved invoice must
519
+ * contain its exact payment amount.
520
+ *
521
+ * The origin becomes durable wallet history and is included in wallet
522
+ * database backups. Pass the original user-facing identifier, never a callback
523
+ * URL containing payer data, authorization tokens, or other secrets.
524
+ *
525
+ * @param invoice The already-resolved Bolt11 invoice to pay.
526
+ * @param origin The original destination to store in Bark's movement history.
527
+ * @param wait Whether to wait for the payment to complete.
528
+ * @returns A promise resolving to the current Lightning payment state.
529
+ */
530
+ export declare function payLightningInvoiceWithOrigin(invoice: string, origin: LightningPaymentOrigin, wait: boolean): Promise<LightningPayment>;
476
531
  /**
477
532
  * Sends a payment to a Bolt12 offer.
478
533
  * @param offer The Bolt12 offer.
@@ -572,5 +627,5 @@ export declare function offboardAll(destinationAddress: string): Promise<string>
572
627
  * @returns A promise resolving to the fee estimate.
573
628
  */
574
629
  export declare function estimateOffboardAll(destinationAddress: string): Promise<BarkFeeEstimate>;
575
- export type { NitroArk, BarkCreateOpts, BarkConfigOpts, BarkArkInfo, Bolt11Invoice, BoardResult, DelegatedRoundState, BarkSendManyOutput, ArkoorPaymentResult, BarkFeeEstimate, BarkFeeRates, OnchainTransactionInfo, LightningPaymentResult, OnchainPaymentResult, OffchainBalanceResult, OnchainBalanceResult, NewAddressResult, KeyPairResult, LightningReceive, } from './NitroArk.nitro';
630
+ export type { NitroArk, BarkCreateOpts, BarkConfigOpts, BarkArkInfo, Bolt11Invoice, BoardResult, DelegatedRoundState, BarkSendManyOutput, ArkoorPaymentResult, BarkFeeEstimate, BarkFeeRates, OnchainTransactionInfo, LightningPaymentResult, OnchainPaymentResult, OffchainBalanceResult, OnchainBalanceResult, NewAddressResult, KeyPairResult, } from './NitroArk.nitro';
576
631
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,QAAQ,EACR,cAAc,EACd,WAAW,EACX,aAAa,EACb,kBAAkB,EAClB,mBAAmB,EACnB,eAAe,EACf,YAAY,EACZ,sBAAsB,EACtB,wBAAwB,IAAI,6BAA6B,EACzD,cAAc,IAAI,mBAAmB,EACrC,gBAAgB,IAAI,qBAAqB,EACzC,kBAAkB,IAAI,uBAAuB,EAC7C,kBAAkB,IAAI,uBAAuB,EAC7C,kBAAkB,IAAI,uBAAuB,EAC7C,YAAY,IAAI,iBAAiB,EACjC,sBAAsB,IAAI,2B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;AAED;;;;;GAKG;AACH,wBAAgB,WAAW,CACzB,WAAW,EAAE,MAAM,EACnB,SAAS,EAAE,MAAM,GAChB,OAAO,CAAC,MAAM,CAAC,CAEjB;AAED;;;;;GAKG;AACH,wBAAgB,mBAAmB,CACjC,WAAW,EAAE,MAAM,EACnB,SAAS,EAAE,MAAM,GAChB,OAAO,CAAC,eAAe,CAAC,CAE1B;AAID;;;;;GAKG;AACH,wBAAgB,gBAAgB,CAC9B,OAAO,EAAE,MAAM,EAAE,EACjB,kBAAkB,EAAE,MAAM,GACzB,OAAO,CAAC,MAAM,CAAC,CAEjB;AAED;;;;GAIG;AACH,wBAAgB,WAAW,CAAC,kBAAkB,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAEvE;AAED;;;;GAIG;AACH,wBAAgB,mBAAmB,CACjC,kBAAkB,EAAE,MAAM,GACzB,OAAO,CAAC,eAAe,CAAC,CAE1B;AAGD,YAAY,EACV,QAAQ,EACR,cAAc,EACd,cAAc,EACd,WAAW,EACX,aAAa,EACb,WAAW,EACX,mBAAmB,EACnB,kBAAkB,EAClB,mBAAmB,EACnB,eAAe,EACf,YAAY,EACZ,sBAAsB,EACtB,sBAAsB,EACtB,oBAAoB,EACpB,qBAAqB,EACrB,oBAAoB,EACpB,gBAAgB,EAChB,aAAa,EACb,gBAAgB,GACjB,MAAM,kBAAkB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,QAAQ,EACR,cAAc,EACd,WAAW,EACX,aAAa,EACb,kBAAkB,EAClB,mBAAmB,EACnB,eAAe,EACf,YAAY,EACZ,sBAAsB,EACtB,wBAAwB,IAAI,6BAA6B,EACzD,cAAc,IAAI,mBAAmB,EACrC,gBAAgB,IAAI,qBAAqB,EACzC,kBAAkB,IAAI,uBAAuB,EAC7C,kBAAkB,IAAI,uBAAuB,EAC7C,kBAAkB,IAAI,uBAAuB,EAC7C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public:
43
43
  std::string ark SWIFT_PRIVATE;
44
- std::optional<std::string> server_access_token SWIFT_PRIVATE;
45
44
  std::optional<std::string> user_agent SWIFT_PRIVATE;
46
45
  std::optional<std::string> esplora SWIFT_PRIVATE;
47
46
  std::optional<std::string> bitcoind SWIFT_PRIVATE;
@@ -56,7 +55,7 @@ namespace margelo::nitro::nitroark {
56
55
 
57
56
  public:
58
57
  BarkConfigOpts() = default;
59
- explicit BarkConfigOpts(std::string ark, std::optional<std::string> server_access_token, std::optional<std::string> user_agent, std::optional<std::string> esplora, std::optional<std::string> bitcoind, std::optional<std::string> bitcoind_cookie, std::optional<std::string> bitcoind_user, std::optional<std::string> bitcoind_pass, double vtxo_refresh_expiry_threshold, double fallback_fee_rate, double htlc_recv_claim_delta, double vtxo_exit_margin, double round_tx_required_confirmations): ark(ark), server_access_token(server_access_token), user_agent(user_agent), esplora(esplora), bitcoind(bitcoind), bitcoind_cookie(bitcoind_cookie), bitcoind_user(bitcoind_user), bitcoind_pass(bitcoind_pass), vtxo_refresh_expiry_threshold(vtxo_refresh_expiry_threshold), fallback_fee_rate(fallback_fee_rate), htlc_recv_claim_delta(htlc_recv_claim_delta), vtxo_exit_margin(vtxo_exit_margin), round_tx_required_confirmations(round_tx_required_confirmations) {}
58
+ explicit BarkConfigOpts(std::string ark, std::optional<std::string> user_agent, std::optional<std::string> esplora, std::optional<std::string> bitcoind, std::optional<std::string> bitcoind_cookie, std::optional<std::string> bitcoind_user, std::optional<std::string> bitcoind_pass, double vtxo_refresh_expiry_threshold, double fallback_fee_rate, double htlc_recv_claim_delta, double vtxo_exit_margin, double round_tx_required_confirmations): ark(ark), user_agent(user_agent), esplora(esplora), bitcoind(bitcoind), bitcoind_cookie(bitcoind_cookie), bitcoind_user(bitcoind_user), bitcoind_pass(bitcoind_pass), vtxo_refresh_expiry_threshold(vtxo_refresh_expiry_threshold), fallback_fee_rate(fallback_fee_rate), htlc_recv_claim_delta(htlc_recv_claim_delta), vtxo_exit_margin(vtxo_exit_margin), round_tx_required_confirmations(round_tx_required_confirmations) {}
60
59
 
61
60
  public:
62
61
  friend bool operator==(const BarkConfigOpts& lhs, const BarkConfigOpts& rhs) = default;
@@ -73,7 +72,6 @@ namespace margelo::nitro {
73
72
  jsi::Object obj = arg.asObject(runtime);
74
73
  return margelo::nitro::nitroark::BarkConfigOpts(
75
74
  JSIConverter<std::string>::fromJSI(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "ark"))),
76
- JSIConverter<std::optional<std::string>>::fromJSI(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "server_access_token"))),
77
75
  JSIConverter<std::optional<std::string>>::fromJSI(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "user_agent"))),
78
76
  JSIConverter<std::optional<std::string>>::fromJSI(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "esplora"))),
79
77
  JSIConverter<std::optional<std::string>>::fromJSI(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "bitcoind"))),
@@ -90,7 +88,6 @@ namespace margelo::nitro {
90
88
  static inline jsi::Value toJSI(jsi::Runtime& runtime, const margelo::nitro::nitroark::BarkConfigOpts& arg) {
91
89
  jsi::Object obj(runtime);
92
90
  obj.setProperty(runtime, PropNameIDCache::get(runtime, "ark"), JSIConverter<std::string>::toJSI(runtime, arg.ark));
93
- obj.setProperty(runtime, PropNameIDCache::get(runtime, "server_access_token"), JSIConverter<std::optional<std::string>>::toJSI(runtime, arg.server_access_token));
94
91
  obj.setProperty(runtime, PropNameIDCache::get(runtime, "user_agent"), JSIConverter<std::optional<std::string>>::toJSI(runtime, arg.user_agent));
95
92
  obj.setProperty(runtime, PropNameIDCache::get(runtime, "esplora"), JSIConverter<std::optional<std::string>>::toJSI(runtime, arg.esplora));
96
93
  obj.setProperty(runtime, PropNameIDCache::get(runtime, "bitcoind"), JSIConverter<std::optional<std::string>>::toJSI(runtime, arg.bitcoind));
@@ -113,7 +110,6 @@ namespace margelo::nitro {
113
110
  return false;
114
111
  }
115
112
  if (!JSIConverter<std::string>::canConvert(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "ark")))) return false;
116
- if (!JSIConverter<std::optional<std::string>>::canConvert(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "server_access_token")))) return false;
117
113
  if (!JSIConverter<std::optional<std::string>>::canConvert(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "user_agent")))) return false;
118
114
  if (!JSIConverter<std::optional<std::string>>::canConvert(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "esplora")))) return false;
119
115
  if (!JSIConverter<std::optional<std::string>>::canConvert(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "bitcoind")))) return false;
@@ -26,9 +26,7 @@ namespace margelo::nitro::nitroark {
26
26
  prototype.registerHybridMethod("refreshServer", &HybridNitroArkSpec::refreshServer);
27
27
  prototype.registerHybridMethod("syncPendingBoards", &HybridNitroArkSpec::syncPendingBoards);
28
28
  prototype.registerHybridMethod("maintenance", &HybridNitroArkSpec::maintenance);
29
- prototype.registerHybridMethod("maintenanceWithOnchain", &HybridNitroArkSpec::maintenanceWithOnchain);
30
29
  prototype.registerHybridMethod("maintenanceDelegated", &HybridNitroArkSpec::maintenanceDelegated);
31
- prototype.registerHybridMethod("maintenanceWithOnchainDelegated", &HybridNitroArkSpec::maintenanceWithOnchainDelegated);
32
30
  prototype.registerHybridMethod("maintenanceRefresh", &HybridNitroArkSpec::maintenanceRefresh);
33
31
  prototype.registerHybridMethod("sync", &HybridNitroArkSpec::sync);
34
32
  prototype.registerHybridMethod("startExitForEntireWallet", &HybridNitroArkSpec::startExitForEntireWallet);
@@ -62,9 +60,11 @@ namespace margelo::nitro::nitroark {
62
60
  prototype.registerHybridMethod("subscribeLightningPaymentMovements", &HybridNitroArkSpec::subscribeLightningPaymentMovements);
63
61
  prototype.registerHybridMethod("history", &HybridNitroArkSpec::history);
64
62
  prototype.registerHybridMethod("vtxos", &HybridNitroArkSpec::vtxos);
63
+ prototype.registerHybridMethod("updateHistoryMetadata", &HybridNitroArkSpec::updateHistoryMetadata);
65
64
  prototype.registerHybridMethod("decodeVtxoHex", &HybridNitroArkSpec::decodeVtxoHex);
66
65
  prototype.registerHybridMethod("importVtxo", &HybridNitroArkSpec::importVtxo);
67
66
  prototype.registerHybridMethod("dangerousDropVtxo", &HybridNitroArkSpec::dangerousDropVtxo);
67
+ prototype.registerHybridMethod("unlockVtxos", &HybridNitroArkSpec::unlockVtxos);
68
68
  prototype.registerHybridMethod("refreshVtxosDelegated", &HybridNitroArkSpec::refreshVtxosDelegated);
69
69
  prototype.registerHybridMethod("getFirstExpiringVtxoBlockheight", &HybridNitroArkSpec::getFirstExpiringVtxoBlockheight);
70
70
  prototype.registerHybridMethod("getNextRequiredRefreshBlockheight", &HybridNitroArkSpec::getNextRequiredRefreshBlockheight);
@@ -88,6 +88,7 @@ namespace margelo::nitro::nitroark {
88
88
  prototype.registerHybridMethod("estimateBoardOffchainFee", &HybridNitroArkSpec::estimateBoardOffchainFee);
89
89
  prototype.registerHybridMethod("estimateRefreshFee", &HybridNitroArkSpec::estimateRefreshFee);
90
90
  prototype.registerHybridMethod("payLightningInvoice", &HybridNitroArkSpec::payLightningInvoice);
91
+ prototype.registerHybridMethod("payLightningInvoiceWithOrigin", &HybridNitroArkSpec::payLightningInvoiceWithOrigin);
91
92
  prototype.registerHybridMethod("payLightningOffer", &HybridNitroArkSpec::payLightningOffer);
92
93
  prototype.registerHybridMethod("payLightningAddress", &HybridNitroArkSpec::payLightningAddress);
93
94
  prototype.registerHybridMethod("estimateLightningSendFee", &HybridNitroArkSpec::estimateLightningSendFee);
@@ -69,6 +69,8 @@ namespace margelo::nitro::nitroark { struct ArkoorPaymentResult; }
69
69
  namespace margelo::nitro::nitroark { struct BarkFeeEstimate; }
70
70
  // Forward declaration of `LightningPaymentResult` to properly resolve imports.
71
71
  namespace margelo::nitro::nitroark { struct LightningPaymentResult; }
72
+ // Forward declaration of `LightningPaymentOrigin` to properly resolve imports.
73
+ namespace margelo::nitro::nitroark { struct LightningPaymentOrigin; }
72
74
  // Forward declaration of `Bolt11Invoice` to properly resolve imports.
73
75
  namespace margelo::nitro::nitroark { struct Bolt11Invoice; }
74
76
  // Forward declaration of `LightningReceive` to properly resolve imports.
@@ -108,6 +110,7 @@ namespace margelo::nitro::nitroark { struct LightningReceive; }
108
110
  #include "ArkoorPaymentResult.hpp"
109
111
  #include "BarkFeeEstimate.hpp"
110
112
  #include "LightningPaymentResult.hpp"
113
+ #include "LightningPaymentOrigin.hpp"
111
114
  #include "Bolt11Invoice.hpp"
112
115
  #include "LightningReceive.hpp"
113
116
 
@@ -154,9 +157,7 @@ namespace margelo::nitro::nitroark {
154
157
  virtual std::shared_ptr<Promise<void>> refreshServer() = 0;
155
158
  virtual std::shared_ptr<Promise<void>> syncPendingBoards() = 0;
156
159
  virtual std::shared_ptr<Promise<void>> maintenance() = 0;
157
- virtual std::shared_ptr<Promise<void>> maintenanceWithOnchain() = 0;
158
160
  virtual std::shared_ptr<Promise<void>> maintenanceDelegated() = 0;
159
- virtual std::shared_ptr<Promise<void>> maintenanceWithOnchainDelegated() = 0;
160
161
  virtual std::shared_ptr<Promise<void>> maintenanceRefresh() = 0;
161
162
  virtual std::shared_ptr<Promise<void>> sync() = 0;
162
163
  virtual std::shared_ptr<Promise<void>> startExitForEntireWallet() = 0;
@@ -190,9 +191,11 @@ namespace margelo::nitro::nitroark {
190
191
  virtual std::shared_ptr<HybridBarkNotificationSubscriptionSpec> subscribeLightningPaymentMovements(const std::string& paymentHash, const std::function<void(const BarkNotificationEvent& /* event */)>& onEvent) = 0;
191
192
  virtual std::shared_ptr<Promise<std::vector<BarkMovement>>> history() = 0;
192
193
  virtual std::shared_ptr<Promise<std::vector<BarkVtxo>>> vtxos() = 0;
194
+ virtual std::shared_ptr<Promise<void>> updateHistoryMetadata(double movementId, const std::string& patchJson) = 0;
193
195
  virtual std::shared_ptr<Promise<BarkVtxo>> decodeVtxoHex(const std::string& vtxoHex) = 0;
194
196
  virtual std::shared_ptr<Promise<BarkVtxo>> importVtxo(const std::string& vtxoHex) = 0;
195
197
  virtual std::shared_ptr<Promise<void>> dangerousDropVtxo(const std::string& vtxoId) = 0;
198
+ virtual std::shared_ptr<Promise<void>> unlockVtxos(const std::vector<std::string>& vtxoIds) = 0;
196
199
  virtual std::shared_ptr<Promise<std::optional<DelegatedRoundState>>> refreshVtxosDelegated(const std::vector<std::string>& vtxoIds) = 0;
197
200
  virtual std::shared_ptr<Promise<std::optional<double>>> getFirstExpiringVtxoBlockheight() = 0;
198
201
  virtual std::shared_ptr<Promise<std::optional<double>>> getNextRequiredRefreshBlockheight() = 0;
@@ -216,15 +219,16 @@ namespace margelo::nitro::nitroark {
216
219
  virtual std::shared_ptr<Promise<BarkFeeEstimate>> estimateBoardOffchainFee(double amountSat) = 0;
217
220
  virtual std::shared_ptr<Promise<BarkFeeEstimate>> estimateRefreshFee(const std::vector<std::string>& vtxoIds) = 0;
218
221
  virtual std::shared_ptr<Promise<LightningPaymentResult>> payLightningInvoice(const std::string& destination, bool wait, std::optional<double> amountSat) = 0;
222
+ virtual std::shared_ptr<Promise<LightningPaymentResult>> payLightningInvoiceWithOrigin(const std::string& invoice, const LightningPaymentOrigin& origin, bool wait) = 0;
219
223
  virtual std::shared_ptr<Promise<LightningPaymentResult>> payLightningOffer(const std::string& offer, bool wait, std::optional<double> amountSat) = 0;
220
224
  virtual std::shared_ptr<Promise<LightningPaymentResult>> payLightningAddress(const std::string& addr, double amountSat, const std::string& comment, bool wait) = 0;
221
225
  virtual std::shared_ptr<Promise<BarkFeeEstimate>> estimateLightningSendFee(double amountSat) = 0;
222
226
  virtual std::shared_ptr<Promise<std::string>> sendOnchain(const std::string& destination, double amountSat) = 0;
223
227
  virtual std::shared_ptr<Promise<BarkFeeEstimate>> estimateSendOnchain(const std::string& destination, double amountSat) = 0;
224
- virtual std::shared_ptr<Promise<Bolt11Invoice>> bolt11Invoice(double amountMsat, const std::optional<std::string>& description) = 0;
225
- virtual std::shared_ptr<Promise<std::optional<LightningReceive>>> lightningReceiveStatus(const std::string& paymentHash) = 0;
228
+ virtual std::shared_ptr<Promise<Bolt11Invoice>> bolt11Invoice(double amountMsat, const std::optional<std::string>& description, const std::optional<std::string>& token) = 0;
229
+ virtual std::shared_ptr<Promise<LightningReceive>> lightningReceiveStatus(const std::string& paymentHash) = 0;
226
230
  virtual std::shared_ptr<Promise<LightningPaymentResult>> checkLightningPayment(const std::string& paymentHash, bool wait) = 0;
227
- virtual std::shared_ptr<Promise<LightningReceive>> tryClaimLightningReceive(const std::string& paymentHash, bool wait, const std::optional<std::string>& token) = 0;
231
+ virtual std::shared_ptr<Promise<LightningReceive>> tryClaimLightningReceive(const std::string& paymentHash, bool wait) = 0;
228
232
  virtual std::shared_ptr<Promise<void>> tryClaimAllLightningReceives(bool wait) = 0;
229
233
  virtual std::shared_ptr<Promise<std::string>> offboardSpecific(const std::vector<std::string>& vtxoIds, const std::string& destinationAddress) = 0;
230
234
  virtual std::shared_ptr<Promise<std::string>> offboardAll(const std::string& destinationAddress) = 0;
@@ -0,0 +1,89 @@
1
+ ///
2
+ /// LightningPaymentOrigin.hpp
3
+ /// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
4
+ /// https://github.com/mrousavy/nitro
5
+ /// Copyright © Marc Rousavy @ Margelo
6
+ ///
7
+
8
+ #pragma once
9
+
10
+ #if __has_include(<NitroModules/JSIConverter.hpp>)
11
+ #include <NitroModules/JSIConverter.hpp>
12
+ #else
13
+ #error NitroModules cannot be found! Are you sure you installed NitroModules properly?
14
+ #endif
15
+ #if __has_include(<NitroModules/NitroDefines.hpp>)
16
+ #include <NitroModules/NitroDefines.hpp>
17
+ #else
18
+ #error NitroModules cannot be found! Are you sure you installed NitroModules properly?
19
+ #endif
20
+ #if __has_include(<NitroModules/JSIHelpers.hpp>)
21
+ #include <NitroModules/JSIHelpers.hpp>
22
+ #else
23
+ #error NitroModules cannot be found! Are you sure you installed NitroModules properly?
24
+ #endif
25
+ #if __has_include(<NitroModules/PropNameIDCache.hpp>)
26
+ #include <NitroModules/PropNameIDCache.hpp>
27
+ #else
28
+ #error NitroModules cannot be found! Are you sure you installed NitroModules properly?
29
+ #endif
30
+
31
+ // Forward declaration of `LightningPaymentOriginMethod` to properly resolve imports.
32
+ namespace margelo::nitro::nitroark { enum class LightningPaymentOriginMethod; }
33
+
34
+ #include "LightningPaymentOriginMethod.hpp"
35
+ #include <string>
36
+
37
+ namespace margelo::nitro::nitroark {
38
+
39
+ /**
40
+ * A struct which can be represented as a JavaScript object (LightningPaymentOrigin).
41
+ */
42
+ struct LightningPaymentOrigin final {
43
+ public:
44
+ LightningPaymentOriginMethod method SWIFT_PRIVATE;
45
+ std::string value SWIFT_PRIVATE;
46
+
47
+ public:
48
+ LightningPaymentOrigin() = default;
49
+ explicit LightningPaymentOrigin(LightningPaymentOriginMethod method, std::string value): method(method), value(value) {}
50
+
51
+ public:
52
+ friend bool operator==(const LightningPaymentOrigin& lhs, const LightningPaymentOrigin& rhs) = default;
53
+ };
54
+
55
+ } // namespace margelo::nitro::nitroark
56
+
57
+ namespace margelo::nitro {
58
+
59
+ // C++ LightningPaymentOrigin <> JS LightningPaymentOrigin (object)
60
+ template <>
61
+ struct JSIConverter<margelo::nitro::nitroark::LightningPaymentOrigin> final {
62
+ static inline margelo::nitro::nitroark::LightningPaymentOrigin fromJSI(jsi::Runtime& runtime, const jsi::Value& arg) {
63
+ jsi::Object obj = arg.asObject(runtime);
64
+ return margelo::nitro::nitroark::LightningPaymentOrigin(
65
+ JSIConverter<margelo::nitro::nitroark::LightningPaymentOriginMethod>::fromJSI(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "method"))),
66
+ JSIConverter<std::string>::fromJSI(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "value")))
67
+ );
68
+ }
69
+ static inline jsi::Value toJSI(jsi::Runtime& runtime, const margelo::nitro::nitroark::LightningPaymentOrigin& arg) {
70
+ jsi::Object obj(runtime);
71
+ obj.setProperty(runtime, PropNameIDCache::get(runtime, "method"), JSIConverter<margelo::nitro::nitroark::LightningPaymentOriginMethod>::toJSI(runtime, arg.method));
72
+ obj.setProperty(runtime, PropNameIDCache::get(runtime, "value"), JSIConverter<std::string>::toJSI(runtime, arg.value));
73
+ return obj;
74
+ }
75
+ static inline bool canConvert(jsi::Runtime& runtime, const jsi::Value& value) {
76
+ if (!value.isObject()) {
77
+ return false;
78
+ }
79
+ jsi::Object obj = value.getObject(runtime);
80
+ if (!nitro::isPlainObject(runtime, obj)) {
81
+ return false;
82
+ }
83
+ if (!JSIConverter<margelo::nitro::nitroark::LightningPaymentOriginMethod>::canConvert(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "method")))) return false;
84
+ if (!JSIConverter<std::string>::canConvert(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "value")))) return false;
85
+ return true;
86
+ }
87
+ };
88
+
89
+ } // namespace margelo::nitro
@@ -0,0 +1,80 @@
1
+ ///
2
+ /// LightningPaymentOriginMethod.hpp
3
+ /// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
4
+ /// https://github.com/mrousavy/nitro
5
+ /// Copyright © Marc Rousavy @ Margelo
6
+ ///
7
+
8
+ #pragma once
9
+
10
+ #if __has_include(<NitroModules/NitroHash.hpp>)
11
+ #include <NitroModules/NitroHash.hpp>
12
+ #else
13
+ #error NitroModules cannot be found! Are you sure you installed NitroModules properly?
14
+ #endif
15
+ #if __has_include(<NitroModules/JSIConverter.hpp>)
16
+ #include <NitroModules/JSIConverter.hpp>
17
+ #else
18
+ #error NitroModules cannot be found! Are you sure you installed NitroModules properly?
19
+ #endif
20
+ #if __has_include(<NitroModules/NitroDefines.hpp>)
21
+ #include <NitroModules/NitroDefines.hpp>
22
+ #else
23
+ #error NitroModules cannot be found! Are you sure you installed NitroModules properly?
24
+ #endif
25
+
26
+ namespace margelo::nitro::nitroark {
27
+
28
+ /**
29
+ * An enum which can be represented as a JavaScript union (LightningPaymentOriginMethod).
30
+ */
31
+ enum class LightningPaymentOriginMethod {
32
+ LIGHTNING_ADDRESS SWIFT_NAME(lightningAddress) = 0,
33
+ LNURL SWIFT_NAME(lnurl) = 1,
34
+ CUSTOM SWIFT_NAME(custom) = 2,
35
+ } CLOSED_ENUM;
36
+
37
+ } // namespace margelo::nitro::nitroark
38
+
39
+ namespace margelo::nitro {
40
+
41
+ // C++ LightningPaymentOriginMethod <> JS LightningPaymentOriginMethod (union)
42
+ template <>
43
+ struct JSIConverter<margelo::nitro::nitroark::LightningPaymentOriginMethod> final {
44
+ static inline margelo::nitro::nitroark::LightningPaymentOriginMethod fromJSI(jsi::Runtime& runtime, const jsi::Value& arg) {
45
+ std::string unionValue = JSIConverter<std::string>::fromJSI(runtime, arg);
46
+ switch (hashString(unionValue.c_str(), unionValue.size())) {
47
+ case hashString("lightning-address"): return margelo::nitro::nitroark::LightningPaymentOriginMethod::LIGHTNING_ADDRESS;
48
+ case hashString("lnurl"): return margelo::nitro::nitroark::LightningPaymentOriginMethod::LNURL;
49
+ case hashString("custom"): return margelo::nitro::nitroark::LightningPaymentOriginMethod::CUSTOM;
50
+ default: [[unlikely]]
51
+ throw std::invalid_argument("Cannot convert \"" + unionValue + "\" to enum LightningPaymentOriginMethod - invalid value!");
52
+ }
53
+ }
54
+ static inline jsi::Value toJSI(jsi::Runtime& runtime, margelo::nitro::nitroark::LightningPaymentOriginMethod arg) {
55
+ switch (arg) {
56
+ case margelo::nitro::nitroark::LightningPaymentOriginMethod::LIGHTNING_ADDRESS: return JSIConverter<std::string>::toJSI(runtime, "lightning-address");
57
+ case margelo::nitro::nitroark::LightningPaymentOriginMethod::LNURL: return JSIConverter<std::string>::toJSI(runtime, "lnurl");
58
+ case margelo::nitro::nitroark::LightningPaymentOriginMethod::CUSTOM: return JSIConverter<std::string>::toJSI(runtime, "custom");
59
+ default: [[unlikely]]
60
+ throw std::invalid_argument("Cannot convert LightningPaymentOriginMethod to JS - invalid value: "
61
+ + std::to_string(static_cast<int>(arg)) + "!");
62
+ }
63
+ }
64
+ static inline bool canConvert(jsi::Runtime& runtime, const jsi::Value& value) {
65
+ if (!value.isString()) {
66
+ return false;
67
+ }
68
+ std::string unionValue = JSIConverter<std::string>::fromJSI(runtime, value);
69
+ switch (hashString(unionValue.c_str(), unionValue.size())) {
70
+ case hashString("lightning-address"):
71
+ case hashString("lnurl"):
72
+ case hashString("custom"):
73
+ return true;
74
+ default:
75
+ return false;
76
+ }
77
+ }
78
+ };
79
+
80
+ } // namespace margelo::nitro