orbis1-sdk-rn 0.0.7 → 0.0.8

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.
Files changed (43) hide show
  1. package/README.md +21 -4
  2. package/lib/module/features/gas-free/GasFreeModule.js +110 -26
  3. package/lib/module/features/gas-free/GasFreeModule.js.map +1 -1
  4. package/lib/module/features/gas-free/types/StageResults.js +2 -0
  5. package/lib/module/features/gas-free/types/StageResults.js.map +1 -0
  6. package/lib/module/features/gas-free/types/index.js +2 -0
  7. package/lib/module/features/gas-free/types/index.js.map +1 -1
  8. package/lib/module/features/watch-tower/WatchTowerModule.js +19 -9
  9. package/lib/module/features/watch-tower/WatchTowerModule.js.map +1 -1
  10. package/lib/module/features/watch-tower/types/WatchTowerRequest.js +2 -0
  11. package/lib/module/features/watch-tower/types/WatchTowerRequest.js.map +1 -0
  12. package/lib/module/features/watch-tower/types/WatchTowerResponse.js +4 -0
  13. package/lib/module/features/watch-tower/types/WatchTowerResponse.js.map +1 -0
  14. package/lib/module/index.js +0 -1
  15. package/lib/module/index.js.map +1 -1
  16. package/lib/typescript/src/features/gas-free/GasFreeModule.d.ts +115 -38
  17. package/lib/typescript/src/features/gas-free/GasFreeModule.d.ts.map +1 -1
  18. package/lib/typescript/src/features/gas-free/types/StageResults.d.ts +85 -0
  19. package/lib/typescript/src/features/gas-free/types/StageResults.d.ts.map +1 -0
  20. package/lib/typescript/src/features/gas-free/types/index.d.ts +1 -0
  21. package/lib/typescript/src/features/gas-free/types/index.d.ts.map +1 -1
  22. package/lib/typescript/src/features/watch-tower/WatchTowerModule.d.ts +8 -5
  23. package/lib/typescript/src/features/watch-tower/WatchTowerModule.d.ts.map +1 -1
  24. package/lib/typescript/src/features/watch-tower/index.d.ts +1 -1
  25. package/lib/typescript/src/features/watch-tower/index.d.ts.map +1 -1
  26. package/lib/typescript/src/features/watch-tower/types/WatchTowerRequest.d.ts +40 -0
  27. package/lib/typescript/src/features/watch-tower/types/WatchTowerRequest.d.ts.map +1 -0
  28. package/lib/typescript/src/features/watch-tower/types/WatchTowerResponse.d.ts +43 -0
  29. package/lib/typescript/src/features/watch-tower/types/WatchTowerResponse.d.ts.map +1 -0
  30. package/lib/typescript/src/features/watch-tower/types/index.d.ts +2 -0
  31. package/lib/typescript/src/features/watch-tower/types/index.d.ts.map +1 -1
  32. package/lib/typescript/src/index.d.ts +3 -2
  33. package/lib/typescript/src/index.d.ts.map +1 -1
  34. package/package.json +1 -1
  35. package/src/features/gas-free/GasFreeModule.ts +130 -52
  36. package/src/features/gas-free/types/StageResults.ts +95 -0
  37. package/src/features/gas-free/types/index.ts +8 -0
  38. package/src/features/watch-tower/WatchTowerModule.ts +23 -10
  39. package/src/features/watch-tower/index.ts +9 -1
  40. package/src/features/watch-tower/types/WatchTowerRequest.ts +47 -0
  41. package/src/features/watch-tower/types/WatchTowerResponse.ts +52 -0
  42. package/src/features/watch-tower/types/index.ts +10 -0
  43. package/src/index.ts +14 -1
@@ -12,17 +12,8 @@ import { Wallet } from '../../core/Wallet';
12
12
  import type { Logger } from '../../utils/logger';
13
13
  import type { GasFreeConfig } from './types/GasFreeConfig';
14
14
  import type { GasFreeTransferRequest, GasFreeTransferResult } from './types/GasFreeRequest';
15
- /**
16
- * Transfer state tracking
17
- */
18
- interface TransferState {
19
- quoteId?: string;
20
- quoteExpiresAt?: number;
21
- psbtBase64?: string;
22
- txid?: string;
23
- status: 'idle' | 'quote-requested' | 'psbt-built' | 'submitted' | 'broadcasted' | 'verified' | 'failed';
24
- error?: Error;
25
- }
15
+ import type { FeeQuote, VerificationResult, PSBTBuildResult, PSBTSubmitResult, BroadcastResult, TransferState } from './types';
16
+ import { Feature } from '../../types/Feature';
26
17
  /**
27
18
  * Gas-Free Transfer Module
28
19
  *
@@ -34,7 +25,7 @@ interface TransferState {
34
25
  * 5. Verify transfer completion
35
26
  */
36
27
  export declare class GasFreeModule implements IFeatureModule<GasFreeConfig> {
37
- readonly name: "gasFree";
28
+ readonly name = Feature.GAS_FREE;
38
29
  readonly version = "1.0.0";
39
30
  readonly config: GasFreeConfig;
40
31
  private wallet?;
@@ -75,10 +66,21 @@ export declare class GasFreeModule implements IFeatureModule<GasFreeConfig> {
75
66
  *
76
67
  * @param request - Transfer request parameters
77
68
  * @returns Fee quote with pricing and expiration details
69
+ *
70
+ * @example
71
+ * ```typescript
72
+ * const quote = await gasFree.requestFeeQuote({
73
+ * userId: 'user-123',
74
+ * assetId: 'rgb:...',
75
+ * amount: '100',
76
+ * recipientInvoice: 'rgb:...'
77
+ * });
78
+ * console.log('Service fee:', quote.serviceFeeAmount);
79
+ * ```
78
80
  */
79
- requestFeeQuote(request: GasFreeTransferRequest): Promise<any>;
81
+ requestFeeQuote(request: GasFreeTransferRequest): Promise<FeeQuote>;
80
82
  /**
81
- * Stage 2: Confirm and execute transfer using a fee quote
83
+ * Stage 2: Confirm and execute transfer using a fee quote (One-shot method)
82
84
  *
83
85
  * Executes the complete transfer workflow:
84
86
  * 1. Build PSBT with external mining inputs
@@ -86,11 +88,24 @@ export declare class GasFreeModule implements IFeatureModule<GasFreeConfig> {
86
88
  * 3. Sign RGB inputs and broadcast transaction
87
89
  * 4. Verify transfer completion with service
88
90
  *
91
+ * For advanced users who need more control, use the individual stage methods:
92
+ * - buildPSBT()
93
+ * - submitPSBT()
94
+ * - broadcastTransfer()
95
+ * - verifyTransfer()
96
+ *
89
97
  * @param request - Original transfer request parameters
90
98
  * @param feeQuote - Fee quote obtained from requestFeeQuote()
91
99
  * @returns Transfer result with txid and fee breakdown
100
+ *
101
+ * @example
102
+ * ```typescript
103
+ * const quote = await gasFree.requestFeeQuote(request);
104
+ * const result = await gasFree.confirmTransfer(request, quote);
105
+ * console.log('Transaction ID:', result.txid);
106
+ * ```
92
107
  */
93
- confirmTransfer(request: GasFreeTransferRequest, feeQuote: any): Promise<GasFreeTransferResult>;
108
+ confirmTransfer(request: GasFreeTransferRequest, feeQuote: FeeQuote): Promise<GasFreeTransferResult>;
94
109
  /**
95
110
  * Get current transfer state
96
111
  */
@@ -104,42 +119,105 @@ export declare class GasFreeModule implements IFeatureModule<GasFreeConfig> {
104
119
  */
105
120
  private generateFeeQuote;
106
121
  /**
107
- * Step 2: Build PSBT with external inputs using Wallet
122
+ * Advanced Stage 2a: Build PSBT with external mining inputs
123
+ *
124
+ * Builds an unsigned PSBT that includes:
125
+ * - External mining input from the service (provides BTC for fees)
126
+ * - User's RGB asset inputs
127
+ * - Two RGB recipients: merchant + service fee
128
+ * - External change output (BTC change back to service)
129
+ *
130
+ * This method writes the RGB consignment file to disk which will be read
131
+ * in the next stage (submitPSBT).
132
+ *
133
+ * @param request - Transfer request parameters
134
+ * @param feeQuote - Fee quote from requestFeeQuote()
135
+ * @returns PSBT build result with unsigned PSBT and mining details
136
+ *
137
+ * @example
138
+ * ```typescript
139
+ * const quote = await gasFree.requestFeeQuote(request);
140
+ * const psbtResult = await gasFree.buildPSBT(request, quote);
141
+ * console.log('Unsigned PSBT:', psbtResult.unsignedPsbt);
142
+ * ```
108
143
  */
109
- private buildPSBT;
144
+ buildPSBT(request: GasFreeTransferRequest, feeQuote: FeeQuote): Promise<PSBTBuildResult>;
110
145
  /**
111
- * Step 3: Submit UNSIGNED PSBT + consignment to service
146
+ * Advanced Stage 2b: Submit unsigned PSBT to service for co-signing
147
+ *
148
+ * Submits the unsigned PSBT along with the RGB consignment to the service.
149
+ * The service will:
150
+ * 1. Cryptographically verify the RGB fee allocation in the consignment
151
+ * 2. Co-sign the mining input
152
+ * 3. Return the PSBT with its signature attached
112
153
  *
113
- * The service:
114
- * 1. Verifies the consignment cryptographically
115
- * 2. Co-signs the mining input
116
- * 3. Returns the PSBT with its signature attached — user's RGB inputs
117
- * are still unsigned at this point
154
+ * Note: User's RGB inputs remain unsigned at this stage.
118
155
  *
119
- * Consignment is read directly from the file that sendBegin() wrote to disk
156
+ * @param quoteId - Quote ID from the fee quote
157
+ * @param psbtResult - PSBT build result from buildPSBT()
158
+ * @param serviceFeeInvoice - Service fee RGB invoice from the quote
159
+ * @param assetId - Asset ID being transferred
160
+ * @returns Submit result with service-signed PSBT
161
+ *
162
+ * @example
163
+ * ```typescript
164
+ * const submitResult = await gasFree.submitPSBT(
165
+ * quote.quoteId,
166
+ * psbtResult,
167
+ * quote.serviceFeeInvoice,
168
+ * request.assetId
169
+ * );
170
+ * console.log('Service signed PSBT:', submitResult.signedPsbtBase64);
171
+ * ```
120
172
  */
121
- private submitPSBT;
173
+ submitPSBT(quoteId: string, psbtResult: PSBTBuildResult, serviceFeeInvoice: string, assetId: string): Promise<PSBTSubmitResult>;
122
174
  /**
123
- * Step 4: User signs RGB inputs + broadcast via sendEnd
175
+ * Advanced Stage 2c: Sign RGB inputs and broadcast transaction
124
176
  *
125
177
  * Takes the PSBT returned by the service (mining input already signed),
126
- * adds the user's RGB input signatures, then calls sendEnd() which:
127
- * - Finalizes all inputs (combines witness data)
128
- * - Posts consignments to the RGB proxy
129
- * - Broadcasts the transaction to the Bitcoin network
178
+ * adds the user's RGB input signatures, then calls wallet.sendEnd() which:
179
+ * - Finalizes all inputs (combines witness data)
180
+ * - Posts consignments to the RGB proxy
181
+ * - Broadcasts the transaction to the Bitcoin network
182
+ *
183
+ * @param serviceSignedPsbt - Service-signed PSBT from submitPSBT()
184
+ * @returns Broadcast result with txid and fully-signed PSBT
130
185
  *
131
- * Returns the txid from sendEnd (the ground-truth broadcast result) and
132
- * the fully-signed PSBT for the verify-transfer call.
186
+ * @example
187
+ * ```typescript
188
+ * const broadcastResult = await gasFree.broadcastTransfer(
189
+ * submitResult.signedPsbtBase64
190
+ * );
191
+ * console.log('Transaction ID:', broadcastResult.txid);
192
+ * console.log('Fully signed PSBT:', broadcastResult.userSignedPsbt);
193
+ * ```
133
194
  */
134
- private broadcastTransfer;
195
+ broadcastTransfer(serviceSignedPsbt: string): Promise<BroadcastResult>;
135
196
  /**
136
- * Step 5: Verify transfer completion
197
+ * Advanced Stage 2d: Verify transfer completion with service
137
198
  *
138
199
  * Notifies the service that the transaction has been broadcast. The service
139
- * will look up the txid in mempool to confirm it landed, then call its own
140
- * wallet.refresh() to claim the RGB service fee from the proxy.
200
+ * will:
201
+ * - Look up the txid in mempool to confirm it landed
202
+ * - Call its own wallet.refresh() to claim the RGB service fee
203
+ *
204
+ * @param quoteId - Quote ID from the fee quote
205
+ * @param txid - Transaction ID from broadcastTransfer()
206
+ * @param signedPsbtBase64 - Fully-signed PSBT from broadcastTransfer()
207
+ * @returns Verification result from the service
208
+ *
209
+ * @example
210
+ * ```typescript
211
+ * const verifyResult = await gasFree.verifyTransfer(
212
+ * quote.quoteId,
213
+ * broadcastResult.txid,
214
+ * broadcastResult.userSignedPsbt
215
+ * );
216
+ * console.log('Verification status:', verifyResult.status);
217
+ * console.log('In mempool:', verifyResult.inMempool);
218
+ * ```
141
219
  */
142
- private verifyTransfer;
220
+ verifyTransfer(quoteId: string, txid: string, signedPsbtBase64: string): Promise<VerificationResult>;
143
221
  /**
144
222
  * Validate configuration
145
223
  */
@@ -151,5 +229,4 @@ export declare class GasFreeModule implements IFeatureModule<GasFreeConfig> {
151
229
  * @param config - Gas-Free configuration
152
230
  */
153
231
  export declare function createGasFreeModule(config: GasFreeConfig): GasFreeModule;
154
- export {};
155
232
  //# sourceMappingURL=GasFreeModule.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"GasFreeModule.d.ts","sourceRoot":"","sources":["../../../../../src/features/gas-free/GasFreeModule.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AACjE,OAAO,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAC3C,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAC;AAKjD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AAG3D,OAAO,KAAK,EACV,sBAAsB,EACtB,qBAAqB,EACtB,MAAM,wBAAwB,CAAC;AAIhC;;GAE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;;;;;;;;;;;;;;;;;;OAoBG;IACG,iBAAiB,CAAC,iBAAiB,EAAE,MAAM,GAAG,OAAO,CAAC,eAAe,CAAC;IA4B5E;;;;;;;;;;;;;;;;;;;;;;;OAuBG;IACG,cAAc,CAClB,OAAO,EAAE,MAAM,EACf,IAAI,EAAE,MAAM,EACZ,gBAAgB,EAAE,MAAM,GACvB,OAAO,CAAC,kBAAkB,CAAC;IAoB9B;;OAEG;IACH,OAAO,CAAC,cAAc;CAevB;AAED;;;;GAIG;AACH,wBAAgB,mBAAmB,CAAC,MAAM,EAAE,aAAa,GAAG,aAAa,CAExE"}
@@ -0,0 +1,85 @@
1
+ /**
2
+ * Gas-Free Transfer Stage Result Types
3
+ *
4
+ * Result types for individual stages of the gas-free transfer workflow.
5
+ * These types are used by advanced users who want granular control over
6
+ * each stage of the transfer process.
7
+ *
8
+ * @module features/gas-free/types/StageResults
9
+ */
10
+ /**
11
+ * Transfer state tracking
12
+ *
13
+ * Internal state used by the GasFreeModule to track the progress
14
+ * of a gas-free transfer through its various stages.
15
+ */
16
+ export interface TransferState {
17
+ /** Quote ID from the fee quote */
18
+ quoteId?: string;
19
+ /** Quote expiration timestamp (milliseconds) */
20
+ quoteExpiresAt?: number;
21
+ /** Base64-encoded PSBT */
22
+ psbtBase64?: string;
23
+ /** Transaction ID */
24
+ txid?: string;
25
+ /** Current transfer status */
26
+ status: 'idle' | 'quote-requested' | 'psbt-built' | 'submitted' | 'broadcasted' | 'verified' | 'failed';
27
+ /** Error if transfer failed */
28
+ error?: Error;
29
+ }
30
+ /**
31
+ * Result of PSBT building stage (buildPSBT)
32
+ *
33
+ * Contains the unsigned PSBT with external mining inputs from the service,
34
+ * along with details about the mining fee and external inputs.
35
+ */
36
+ export interface PSBTBuildResult {
37
+ /** Unsigned PSBT (base64) with external mining inputs */
38
+ unsignedPsbt: string;
39
+ /** Mining fee in satoshis */
40
+ miningFee: number;
41
+ /** External inputs added to the PSBT */
42
+ externalInputs: Array<{
43
+ txid: string;
44
+ vout: number;
45
+ value: number;
46
+ scriptPubkey: string;
47
+ }>;
48
+ }
49
+ /**
50
+ * Result of PSBT submission stage (submitPSBT)
51
+ *
52
+ * Contains the service-signed PSBT along with transaction details
53
+ * and the RGB consignment data.
54
+ */
55
+ export interface PSBTSubmitResult {
56
+ /** Quote ID used */
57
+ quoteId: string;
58
+ /** Base64-encoded signed PSBT with service signatures */
59
+ signedPsbtBase64: string;
60
+ /** Transaction ID */
61
+ transactionId: string;
62
+ /** Estimated transaction size in vBytes */
63
+ estimatedTxSize: number;
64
+ /** Mining UTXO transaction ID */
65
+ miningUtxoTxid: string;
66
+ /** Mining UTXO output index */
67
+ miningUtxoVout: number;
68
+ /** Timestamp when signed */
69
+ signedAt: string;
70
+ /** Base64-encoded consignment data */
71
+ consignmentBase64: string;
72
+ }
73
+ /**
74
+ * Result of broadcast stage (broadcastTransfer)
75
+ *
76
+ * Contains the transaction ID from the successful broadcast and
77
+ * the fully-signed PSBT with both user and service signatures.
78
+ */
79
+ export interface BroadcastResult {
80
+ /** Transaction ID from the broadcast */
81
+ txid: string;
82
+ /** Fully signed PSBT (user + service signatures) */
83
+ userSignedPsbt: string;
84
+ }
85
+ //# sourceMappingURL=StageResults.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"StageResults.d.ts","sourceRoot":"","sources":["../../../../../../src/features/gas-free/types/StageResults.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH;;;;;GAKG;AACH,MAAM,WAAW,aAAa;IAC5B,kCAAkC;IAClC,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,gDAAgD;IAChD,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,0BAA0B;IAC1B,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,qBAAqB;IACrB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,8BAA8B;IAC9B,MAAM,EACF,MAAM,GACN,iBAAiB,GACjB,YAAY,GACZ,WAAW,GACX,aAAa,GACb,UAAU,GACV,QAAQ,CAAC;IACb,+BAA+B;IAC/B,KAAK,CAAC,EAAE,KAAK,CAAC;CACf;AAED;;;;;GAKG;AACH,MAAM,WAAW,eAAe;IAC9B,yDAAyD;IACzD,YAAY,EAAE,MAAM,CAAC;IACrB,6BAA6B;IAC7B,SAAS,EAAE,MAAM,CAAC;IAClB,wCAAwC;IACxC,cAAc,EAAE,KAAK,CAAC;QACpB,IAAI,EAAE,MAAM,CAAC;QACb,IAAI,EAAE,MAAM,CAAC;QACb,KAAK,EAAE,MAAM,CAAC;QACd,YAAY,EAAE,MAAM,CAAC;KACtB,CAAC,CAAC;CACJ;AAED;;;;;GAKG;AACH,MAAM,WAAW,gBAAgB;IAC/B,oBAAoB;IACpB,OAAO,EAAE,MAAM,CAAC;IAChB,yDAAyD;IACzD,gBAAgB,EAAE,MAAM,CAAC;IACzB,qBAAqB;IACrB,aAAa,EAAE,MAAM,CAAC;IACtB,2CAA2C;IAC3C,eAAe,EAAE,MAAM,CAAC;IACxB,iCAAiC;IACjC,cAAc,EAAE,MAAM,CAAC;IACvB,+BAA+B;IAC/B,cAAc,EAAE,MAAM,CAAC;IACvB,4BAA4B;IAC5B,QAAQ,EAAE,MAAM,CAAC;IACjB,sCAAsC;IACtC,iBAAiB,EAAE,MAAM,CAAC;CAC3B;AAED;;;;;GAKG;AACH,MAAM,WAAW,eAAe;IAC9B,wCAAwC;IACxC,IAAI,EAAE,MAAM,CAAC;IACb,oDAAoD;IACpD,cAAc,EAAE,MAAM,CAAC;CACxB"}
@@ -10,4 +10,5 @@ export { DEFAULT_GAS_FREE_CONFIG, mergeGasFreeConfig, validateGasFreeConfig, } f
10
10
  export type { GasFreeTransferRequest, GasFreeTransferResult, } from './GasFreeRequest';
11
11
  export type { GasFreeResult, SubmitResult, SubmitPSBTRequest, VerificationResult, VerifyTransferRequest, } from './GasFreeResult';
12
12
  export { GasFreeTransferStatus, isTransferComplete, isTransferSuccessful, getTransferDuration, } from './GasFreeResult';
13
+ export type { TransferState, PSBTBuildResult, PSBTSubmitResult, BroadcastResult, } from './StageResults';
13
14
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/features/gas-free/types/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAGH,YAAY,EACV,QAAQ,EACR,eAAe,EACf,UAAU,EACV,gBAAgB,GACjB,MAAM,YAAY,CAAC;AAEpB,OAAO,EACL,cAAc,EACd,qBAAqB,EACrB,mBAAmB,GACpB,MAAM,YAAY,CAAC;AAGpB,YAAY,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAErD,OAAO,EACL,uBAAuB,EACvB,kBAAkB,EAClB,qBAAqB,GACtB,MAAM,iBAAiB,CAAC;AAGzB,YAAY,EACV,sBAAsB,EACtB,qBAAqB,GACtB,MAAM,kBAAkB,CAAC;AAG1B,YAAY,EACV,aAAa,EACb,YAAY,EACZ,iBAAiB,EACjB,kBAAkB,EAClB,qBAAqB,GACtB,MAAM,iBAAiB,CAAC;AAEzB,OAAO,EACL,qBAAqB,EACrB,kBAAkB,EAClB,oBAAoB,EACpB,mBAAmB,GACpB,MAAM,iBAAiB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/features/gas-free/types/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAGH,YAAY,EACV,QAAQ,EACR,eAAe,EACf,UAAU,EACV,gBAAgB,GACjB,MAAM,YAAY,CAAC;AAEpB,OAAO,EACL,cAAc,EACd,qBAAqB,EACrB,mBAAmB,GACpB,MAAM,YAAY,CAAC;AAGpB,YAAY,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAErD,OAAO,EACL,uBAAuB,EACvB,kBAAkB,EAClB,qBAAqB,GACtB,MAAM,iBAAiB,CAAC;AAGzB,YAAY,EACV,sBAAsB,EACtB,qBAAqB,GACtB,MAAM,kBAAkB,CAAC;AAG1B,YAAY,EACV,aAAa,EACb,YAAY,EACZ,iBAAiB,EACjB,kBAAkB,EAClB,qBAAqB,GACtB,MAAM,iBAAiB,CAAC;AAEzB,OAAO,EACL,qBAAqB,EACrB,kBAAkB,EAClB,oBAAoB,EACpB,mBAAmB,GACpB,MAAM,iBAAiB,CAAC;AAGzB,YAAY,EACV,aAAa,EACb,eAAe,EACf,gBAAgB,EAChB,eAAe,GAChB,MAAM,gBAAgB,CAAC"}
@@ -10,8 +10,11 @@ import type { IFeatureModule } from '../../types/IFeatureModule';
10
10
  import type { Wallet } from '../../core/Wallet';
11
11
  import type { Logger } from '../../utils/logger';
12
12
  import type { WatchTowerConfig } from './types';
13
+ import type { AddToWatchTowerParams } from './types/WatchTowerRequest';
14
+ import type { AddToWatchTowerResponse } from './types/WatchTowerResponse';
15
+ import { Feature } from '../../types/Feature';
13
16
  export declare class WatchTowerModule implements IFeatureModule<WatchTowerConfig> {
14
- readonly name: "watchTower";
17
+ readonly name = Feature.WATCH_TOWER;
15
18
  readonly config: WatchTowerConfig;
16
19
  private client;
17
20
  private fcmToken;
@@ -31,11 +34,11 @@ export declare class WatchTowerModule implements IFeatureModule<WatchTowerConfig
31
34
  */
32
35
  setFcmToken(token: string | null | undefined): void;
33
36
  /**
34
- * Add an invoice to the Watch Tower.
37
+ * Register an RGB invoice with the Watch Tower service.
35
38
  *
36
- * @param invoice - The invoice string to add to watchtower
37
- * @returns Promise with the response data
39
+ * @param params - Invoice string plus optional FCM token, email, or web push subscription
40
+ * @returns Successful response body (`status`, `message`, `data`). Errors throw.
38
41
  */
39
- addToWatchTower(invoice: string): Promise<unknown>;
42
+ addToWatchTower({ invoice, fcmToken, email, webPushNotification, }: AddToWatchTowerParams): Promise<AddToWatchTowerResponse>;
40
43
  }
41
44
  //# sourceMappingURL=WatchTowerModule.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"WatchTowerModule.d.ts","sourceRoot":"","sources":["../../../../../src/features/watch-tower/WatchTowerModule.ts"],"names":[],"mappings":"AAAA;;;;;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} from './types';
7
+ export type { WatchTowerConfig, AddToWatchTowerParams, AddToWatchTowerResponse, AddToWatchTowerResponseData, AddToWatchTowerWebPushEcho, WatchTowerWebPushKeys, WatchTowerWebPushSubscription, } from './types';
8
8
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/features/watch-tower/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACtD,YAAY,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/features/watch-tower/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACtD,YAAY,EACV,gBAAgB,EAChB,qBAAqB,EACrB,uBAAuB,EACvB,2BAA2B,EAC3B,0BAA0B,EAC1B,qBAAqB,EACrB,6BAA6B,GAC9B,MAAM,SAAS,CAAC"}
@@ -0,0 +1,40 @@
1
+ /**
2
+ * Watch Tower request types
3
+ *
4
+ * Parameters for Watch Tower service calls
5
+ *
6
+ * @module features/watch-tower/types/WatchTowerRequest
7
+ */
8
+ /**
9
+ * Web Push subscription keys (from `PushSubscription.getKey()`)
10
+ */
11
+ export interface WatchTowerWebPushKeys {
12
+ /** Base64 URL-safe P-256 ECDH public key */
13
+ p256dh: string;
14
+ /** Base64 URL-safe authentication secret */
15
+ auth: string;
16
+ }
17
+ /**
18
+ * Web Push subscription payload for the Watch Tower service
19
+ */
20
+ export interface WatchTowerWebPushSubscription {
21
+ /** Push service endpoint URL */
22
+ endpoint: string;
23
+ /** Encryption keys from the browser push subscription */
24
+ keys: WatchTowerWebPushKeys;
25
+ }
26
+ /** Parameters for WatchTowerModule.addToWatchTower */
27
+ export interface AddToWatchTowerParams {
28
+ /** RGB invoice string to monitor */
29
+ invoice: string;
30
+ /**
31
+ * FCM device token for mobile push notifications.
32
+ * If omitted, the default from WatchTowerModule.setFcmToken is used when set.
33
+ */
34
+ fcmToken?: string;
35
+ /** Email address for notifications */
36
+ email?: string;
37
+ /** Web Push subscription for browser notifications */
38
+ webPushNotification?: WatchTowerWebPushSubscription;
39
+ }
40
+ //# sourceMappingURL=WatchTowerRequest.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"WatchTowerRequest.d.ts","sourceRoot":"","sources":["../../../../../../src/features/watch-tower/types/WatchTowerRequest.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH;;GAEG;AACH,MAAM,WAAW,qBAAqB;IACpC,4CAA4C;IAC5C,MAAM,EAAE,MAAM,CAAC;IAEf,4CAA4C;IAC5C,IAAI,EAAE,MAAM,CAAC;CACd;AAED;;GAEG;AACH,MAAM,WAAW,6BAA6B;IAC5C,gCAAgC;IAChC,QAAQ,EAAE,MAAM,CAAC;IAEjB,yDAAyD;IACzD,IAAI,EAAE,qBAAqB,CAAC;CAC7B;AAED,sDAAsD;AACtD,MAAM,WAAW,qBAAqB;IACpC,oCAAoC;IACpC,OAAO,EAAE,MAAM,CAAC;IAEhB;;;OAGG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB,sCAAsC;IACtC,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf,sDAAsD;IACtD,mBAAmB,CAAC,EAAE,6BAA6B,CAAC;CACrD"}
@@ -0,0 +1,43 @@
1
+ /**
2
+ * Watch Tower API response types
3
+ *
4
+ * @module features/watch-tower/types/WatchTowerResponse
5
+ */
6
+ import type { WatchTowerWebPushKeys } from './WatchTowerRequest';
7
+ /**
8
+ * Web push subscription as returned by the service (`webPushSubscription` field).
9
+ * Mirrors the stored subscription shape (distinct request field name `webPushNotification`).
10
+ */
11
+ export interface AddToWatchTowerWebPushEcho {
12
+ endpoint: string;
13
+ keys: WatchTowerWebPushKeys;
14
+ }
15
+ /**
16
+ * `data` payload on successful `POST /addToWatchTower`
17
+ */
18
+ export interface AddToWatchTowerResponseData {
19
+ /** RGB invoice registered with Watch Tower */
20
+ invoice: string;
21
+ /** Parsed recipient / UTXO identifier from the invoice */
22
+ recipient_id: string;
23
+ /** RGB transport endpoint extracted from the invoice */
24
+ endpoint_url: string;
25
+ /** Present when an FCM token was registered */
26
+ fcmToken?: string;
27
+ /** Present when a web push subscription was registered */
28
+ webPushSubscription?: AddToWatchTowerWebPushEcho;
29
+ /** Present when an email was registered */
30
+ email?: string;
31
+ /** Watch Tower expiry for this registration (Unix seconds) */
32
+ expiry: number;
33
+ }
34
+ /**
35
+ * Successful JSON body returned by `addToWatchTower` (HTTP 2xx).
36
+ * Error responses are thrown as `Error` with optional `status` / `data`.
37
+ */
38
+ export interface AddToWatchTowerResponse {
39
+ status: string;
40
+ message: string;
41
+ data: AddToWatchTowerResponseData;
42
+ }
43
+ //# sourceMappingURL=WatchTowerResponse.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"WatchTowerResponse.d.ts","sourceRoot":"","sources":["../../../../../../src/features/watch-tower/types/WatchTowerResponse.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,qBAAqB,CAAC;AAEjE;;;GAGG;AACH,MAAM,WAAW,0BAA0B;IACzC,QAAQ,EAAE,MAAM,CAAC;IACjB,IAAI,EAAE,qBAAqB,CAAC;CAC7B;AAED;;GAEG;AACH,MAAM,WAAW,2BAA2B;IAC1C,8CAA8C;IAC9C,OAAO,EAAE,MAAM,CAAC;IAEhB,0DAA0D;IAC1D,YAAY,EAAE,MAAM,CAAC;IAErB,wDAAwD;IACxD,YAAY,EAAE,MAAM,CAAC;IAErB,+CAA+C;IAC/C,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB,0DAA0D;IAC1D,mBAAmB,CAAC,EAAE,0BAA0B,CAAC;IAEjD,2CAA2C;IAC3C,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf,8DAA8D;IAC9D,MAAM,EAAE,MAAM,CAAC;CAChB;AAED;;;GAGG;AACH,MAAM,WAAW,uBAAuB;IACtC,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,2BAA2B,CAAC;CACnC"}
@@ -1,2 +1,4 @@
1
1
  export type { WatchTowerConfig } from './WatchTowerConfig';
2
+ export type { AddToWatchTowerParams, WatchTowerWebPushKeys, WatchTowerWebPushSubscription, } from './WatchTowerRequest';
3
+ export type { AddToWatchTowerResponse, AddToWatchTowerResponseData, AddToWatchTowerWebPushEcho, } from './WatchTowerResponse';
2
4
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/features/watch-tower/types/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/features/watch-tower/types/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAC3D,YAAY,EACV,qBAAqB,EACrB,qBAAqB,EACrB,6BAA6B,GAC9B,MAAM,qBAAqB,CAAC;AAC7B,YAAY,EACV,uBAAuB,EACvB,2BAA2B,EAC3B,0BAA0B,GAC3B,MAAM,sBAAsB,CAAC"}
@@ -7,6 +7,7 @@
7
7
  */
8
8
  export * from './core/Interfaces';
9
9
  export * from './core/KeyManager';
10
+ export type { Wallet } from './core/Wallet';
10
11
  export { Orbis1SDK } from './Orbis1SDK';
11
12
  export type { SDKConfig } from './types/SDKConfig';
12
13
  export { LogLevel, Environment } from './types/SDKConfig';
@@ -17,8 +18,8 @@ export { ConfigurationError } from './errors/ConfigurationError';
17
18
  export { FeatureNotEnabledError } from './errors/FeatureNotEnabledError';
18
19
  export { Logger, createLogger } from './utils/logger';
19
20
  export { WatchTowerModule } from './features/watch-tower';
20
- export type { WatchTowerConfig } from './features/watch-tower';
21
+ export type { WatchTowerConfig, AddToWatchTowerParams, AddToWatchTowerResponse, AddToWatchTowerResponseData, AddToWatchTowerWebPushEcho, WatchTowerWebPushKeys, WatchTowerWebPushSubscription, } from './features/watch-tower';
21
22
  export { GasFreeModule, createGasFreeModule } from './features/gas-free';
22
- export type { GasFreeConfig, GasFreeTransferRequest, GasFreeTransferResult, FeeQuote, } from './features/gas-free/types';
23
+ export type { GasFreeConfig, GasFreeTransferRequest, GasFreeTransferResult, FeeQuote, PSBTBuildResult, PSBTSubmitResult, BroadcastResult, TransferState, } from './features/gas-free/types';
23
24
  export { GasFreeError, GasFreeErrorCode } from './features/gas-free/errors';
24
25
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,cAAc,mBAAmB,CAAC;AAClC,cAAc,mBAAmB,CAAC;AAGlC,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAGxC,YAAY,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AACnD,OAAO,EAAE,QAAQ,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAC1D,OAAO,EAAE,OAAO,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AAC1D,YAAY,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AAG7E,OAAO,EAAE,UAAU,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AACjE,OAAO,EAAE,kBAAkB,EAAE,MAAM,6BAA6B,CAAC;AACjE,OAAO,EAAE,sBAAsB,EAAE,MAAM,iCAAiC,CAAC;AAGzE,OAAO,EAAE,MAAM,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAGtD,OAAO,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAC1D,YAAY,EAAE,gBAAgB,EAAE,MAAM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AAa,EACb,sBAAsB,EACtB,qBAAqB,EACrB,QAAQ,EACR,eAAe,EACf,gBAAgB,EAChB,eAAe,EACf,aAAa,GACd,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAAE,YAAY,EAAE,gBAAgB,EAAE,MAAM,4BAA4B,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "orbis1-sdk-rn",
3
- "version": "0.0.7",
3
+ "version": "0.0.8",
4
4
  "description": "Orbis1 SDK for React Native with RGB core, Watch Tower, and Gas-Free transfers.",
5
5
  "main": "./lib/module/index.js",
6
6
  "types": "./lib/typescript/src/index.d.ts",