@arkade-os/sdk 0.4.31 → 0.4.32
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/dist/adapters/indexedDB.cjs +2 -2
- package/dist/adapters/indexedDB.js +1 -1
- package/dist/{chunk-RN2OFLC3.cjs → chunk-I2UIKZM5.cjs} +7 -7
- package/dist/{chunk-RN2OFLC3.cjs.map → chunk-I2UIKZM5.cjs.map} +1 -1
- package/dist/{chunk-GPZH5QNA.cjs → chunk-KQK4PP6L.cjs} +41 -17
- package/dist/chunk-KQK4PP6L.cjs.map +1 -0
- package/dist/{chunk-AXGVYRAL.js → chunk-SHEBNWOQ.js} +3 -3
- package/dist/{chunk-AXGVYRAL.js.map → chunk-SHEBNWOQ.js.map} +1 -1
- package/dist/{chunk-HJM6JPG4.js → chunk-XROGFOPX.js} +41 -17
- package/dist/chunk-XROGFOPX.js.map +1 -0
- package/dist/index.cjs +86 -86
- package/dist/index.js +1 -1
- package/dist/repositories/realm/index.cjs +10 -10
- package/dist/repositories/realm/index.js +1 -1
- package/dist/repositories/sqlite/index.cjs +10 -10
- package/dist/repositories/sqlite/index.js +1 -1
- package/dist/wallet/expo/background.cjs +8 -8
- package/dist/wallet/expo/background.js +2 -2
- package/dist/wallet/expo/index.cjs +9 -9
- package/dist/wallet/expo/index.js +2 -2
- package/dist/worker/expo/index.cjs +6 -6
- package/dist/worker/expo/index.js +2 -2
- package/package.json +1 -1
- package/dist/chunk-GPZH5QNA.cjs.map +0 -1
- package/dist/chunk-HJM6JPG4.js.map +0 -1
package/dist/index.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkKQK4PP6L_cjs = require('./chunk-KQK4PP6L.cjs');
|
|
4
4
|
var chunk6FLL2Q36_cjs = require('./chunk-6FLL2Q36.cjs');
|
|
5
5
|
var chunkIEO3XDKI_cjs = require('./chunk-IEO3XDKI.cjs');
|
|
6
6
|
var chunkWMIPYZSB_cjs = require('./chunk-WMIPYZSB.cjs');
|
|
@@ -10,343 +10,343 @@ require('./chunk-5BLDMQED.cjs');
|
|
|
10
10
|
|
|
11
11
|
Object.defineProperty(exports, "ArkNote", {
|
|
12
12
|
enumerable: true,
|
|
13
|
-
get: function () { return
|
|
13
|
+
get: function () { return chunkKQK4PP6L_cjs.ArkNote; }
|
|
14
14
|
});
|
|
15
15
|
Object.defineProperty(exports, "AssetManager", {
|
|
16
16
|
enumerable: true,
|
|
17
|
-
get: function () { return
|
|
17
|
+
get: function () { return chunkKQK4PP6L_cjs.AssetManager; }
|
|
18
18
|
});
|
|
19
19
|
Object.defineProperty(exports, "BIP322", {
|
|
20
20
|
enumerable: true,
|
|
21
|
-
get: function () { return
|
|
21
|
+
get: function () { return chunkKQK4PP6L_cjs.BIP322; }
|
|
22
22
|
});
|
|
23
23
|
Object.defineProperty(exports, "Batch", {
|
|
24
24
|
enumerable: true,
|
|
25
|
-
get: function () { return
|
|
25
|
+
get: function () { return chunkKQK4PP6L_cjs.Batch; }
|
|
26
26
|
});
|
|
27
27
|
Object.defineProperty(exports, "ContractManager", {
|
|
28
28
|
enumerable: true,
|
|
29
|
-
get: function () { return
|
|
29
|
+
get: function () { return chunkKQK4PP6L_cjs.ContractManager; }
|
|
30
30
|
});
|
|
31
31
|
Object.defineProperty(exports, "ContractRepositoryImpl", {
|
|
32
32
|
enumerable: true,
|
|
33
|
-
get: function () { return
|
|
33
|
+
get: function () { return chunkKQK4PP6L_cjs.ContractRepositoryImpl; }
|
|
34
34
|
});
|
|
35
35
|
Object.defineProperty(exports, "ContractWatcher", {
|
|
36
36
|
enumerable: true,
|
|
37
|
-
get: function () { return
|
|
37
|
+
get: function () { return chunkKQK4PP6L_cjs.ContractWatcher; }
|
|
38
38
|
});
|
|
39
39
|
Object.defineProperty(exports, "DEFAULT_MESSAGE_TIMEOUTS", {
|
|
40
40
|
enumerable: true,
|
|
41
|
-
get: function () { return
|
|
41
|
+
get: function () { return chunkKQK4PP6L_cjs.DEFAULT_MESSAGE_TIMEOUTS; }
|
|
42
42
|
});
|
|
43
43
|
Object.defineProperty(exports, "DelegateManagerImpl", {
|
|
44
44
|
enumerable: true,
|
|
45
|
-
get: function () { return
|
|
45
|
+
get: function () { return chunkKQK4PP6L_cjs.DelegateManagerImpl; }
|
|
46
46
|
});
|
|
47
47
|
Object.defineProperty(exports, "DelegateNotConfiguredError", {
|
|
48
48
|
enumerable: true,
|
|
49
|
-
get: function () { return
|
|
49
|
+
get: function () { return chunkKQK4PP6L_cjs.DelegateNotConfiguredError; }
|
|
50
50
|
});
|
|
51
51
|
Object.defineProperty(exports, "DelegatorManagerImpl", {
|
|
52
52
|
enumerable: true,
|
|
53
|
-
get: function () { return
|
|
53
|
+
get: function () { return chunkKQK4PP6L_cjs.DelegatorManagerImpl; }
|
|
54
54
|
});
|
|
55
55
|
Object.defineProperty(exports, "DelegatorNotConfiguredError", {
|
|
56
56
|
enumerable: true,
|
|
57
|
-
get: function () { return
|
|
57
|
+
get: function () { return chunkKQK4PP6L_cjs.DelegatorNotConfiguredError; }
|
|
58
58
|
});
|
|
59
59
|
Object.defineProperty(exports, "DescriptorSigningProviderMissingError", {
|
|
60
60
|
enumerable: true,
|
|
61
|
-
get: function () { return
|
|
61
|
+
get: function () { return chunkKQK4PP6L_cjs.DescriptorSigningProviderMissingError; }
|
|
62
62
|
});
|
|
63
63
|
Object.defineProperty(exports, "DustChangeError", {
|
|
64
64
|
enumerable: true,
|
|
65
|
-
get: function () { return
|
|
65
|
+
get: function () { return chunkKQK4PP6L_cjs.DustChangeError; }
|
|
66
66
|
});
|
|
67
67
|
Object.defineProperty(exports, "ELECTRUM_TCP_HOST", {
|
|
68
68
|
enumerable: true,
|
|
69
|
-
get: function () { return
|
|
69
|
+
get: function () { return chunkKQK4PP6L_cjs.ELECTRUM_TCP_HOST; }
|
|
70
70
|
});
|
|
71
71
|
Object.defineProperty(exports, "ELECTRUM_WS_URL", {
|
|
72
72
|
enumerable: true,
|
|
73
|
-
get: function () { return
|
|
73
|
+
get: function () { return chunkKQK4PP6L_cjs.ELECTRUM_WS_URL; }
|
|
74
74
|
});
|
|
75
75
|
Object.defineProperty(exports, "ESPLORA_URL", {
|
|
76
76
|
enumerable: true,
|
|
77
|
-
get: function () { return
|
|
77
|
+
get: function () { return chunkKQK4PP6L_cjs.ESPLORA_URL; }
|
|
78
78
|
});
|
|
79
79
|
Object.defineProperty(exports, "ElectrumOnchainProvider", {
|
|
80
80
|
enumerable: true,
|
|
81
|
-
get: function () { return
|
|
81
|
+
get: function () { return chunkKQK4PP6L_cjs.ElectrumOnchainProvider; }
|
|
82
82
|
});
|
|
83
83
|
Object.defineProperty(exports, "EsploraProvider", {
|
|
84
84
|
enumerable: true,
|
|
85
|
-
get: function () { return
|
|
85
|
+
get: function () { return chunkKQK4PP6L_cjs.EsploraProvider; }
|
|
86
86
|
});
|
|
87
87
|
Object.defineProperty(exports, "Estimator", {
|
|
88
88
|
enumerable: true,
|
|
89
|
-
get: function () { return
|
|
89
|
+
get: function () { return chunkKQK4PP6L_cjs.Estimator; }
|
|
90
90
|
});
|
|
91
91
|
Object.defineProperty(exports, "HDDescriptorProvider", {
|
|
92
92
|
enumerable: true,
|
|
93
|
-
get: function () { return
|
|
93
|
+
get: function () { return chunkKQK4PP6L_cjs.HDDescriptorProvider; }
|
|
94
94
|
});
|
|
95
95
|
Object.defineProperty(exports, "InMemoryContractRepository", {
|
|
96
96
|
enumerable: true,
|
|
97
|
-
get: function () { return
|
|
97
|
+
get: function () { return chunkKQK4PP6L_cjs.InMemoryContractRepository; }
|
|
98
98
|
});
|
|
99
99
|
Object.defineProperty(exports, "InMemoryWalletRepository", {
|
|
100
100
|
enumerable: true,
|
|
101
|
-
get: function () { return
|
|
101
|
+
get: function () { return chunkKQK4PP6L_cjs.InMemoryWalletRepository; }
|
|
102
102
|
});
|
|
103
103
|
Object.defineProperty(exports, "IndexedDBContractRepository", {
|
|
104
104
|
enumerable: true,
|
|
105
|
-
get: function () { return
|
|
105
|
+
get: function () { return chunkKQK4PP6L_cjs.IndexedDBContractRepository; }
|
|
106
106
|
});
|
|
107
107
|
Object.defineProperty(exports, "IndexedDBWalletRepository", {
|
|
108
108
|
enumerable: true,
|
|
109
|
-
get: function () { return
|
|
109
|
+
get: function () { return chunkKQK4PP6L_cjs.IndexedDBWalletRepository; }
|
|
110
110
|
});
|
|
111
111
|
Object.defineProperty(exports, "MESSAGE_BUS_NOT_INITIALIZED", {
|
|
112
112
|
enumerable: true,
|
|
113
|
-
get: function () { return
|
|
113
|
+
get: function () { return chunkKQK4PP6L_cjs.MESSAGE_BUS_NOT_INITIALIZED; }
|
|
114
114
|
});
|
|
115
115
|
Object.defineProperty(exports, "MIGRATION_KEY", {
|
|
116
116
|
enumerable: true,
|
|
117
|
-
get: function () { return
|
|
117
|
+
get: function () { return chunkKQK4PP6L_cjs.MIGRATION_KEY; }
|
|
118
118
|
});
|
|
119
119
|
Object.defineProperty(exports, "MessageBus", {
|
|
120
120
|
enumerable: true,
|
|
121
|
-
get: function () { return
|
|
121
|
+
get: function () { return chunkKQK4PP6L_cjs.MessageBus; }
|
|
122
122
|
});
|
|
123
123
|
Object.defineProperty(exports, "MessageBusNotInitializedError", {
|
|
124
124
|
enumerable: true,
|
|
125
|
-
get: function () { return
|
|
125
|
+
get: function () { return chunkKQK4PP6L_cjs.MessageBusNotInitializedError; }
|
|
126
126
|
});
|
|
127
127
|
Object.defineProperty(exports, "MissingSigningDescriptorError", {
|
|
128
128
|
enumerable: true,
|
|
129
|
-
get: function () { return
|
|
129
|
+
get: function () { return chunkKQK4PP6L_cjs.MissingSigningDescriptorError; }
|
|
130
130
|
});
|
|
131
131
|
Object.defineProperty(exports, "MnemonicIdentity", {
|
|
132
132
|
enumerable: true,
|
|
133
|
-
get: function () { return
|
|
133
|
+
get: function () { return chunkKQK4PP6L_cjs.MnemonicIdentity; }
|
|
134
134
|
});
|
|
135
135
|
Object.defineProperty(exports, "OnchainWallet", {
|
|
136
136
|
enumerable: true,
|
|
137
|
-
get: function () { return
|
|
137
|
+
get: function () { return chunkKQK4PP6L_cjs.OnchainWallet; }
|
|
138
138
|
});
|
|
139
139
|
Object.defineProperty(exports, "P2A", {
|
|
140
140
|
enumerable: true,
|
|
141
|
-
get: function () { return
|
|
141
|
+
get: function () { return chunkKQK4PP6L_cjs.P2A; }
|
|
142
142
|
});
|
|
143
143
|
Object.defineProperty(exports, "Ramps", {
|
|
144
144
|
enumerable: true,
|
|
145
|
-
get: function () { return
|
|
145
|
+
get: function () { return chunkKQK4PP6L_cjs.Ramps; }
|
|
146
146
|
});
|
|
147
147
|
Object.defineProperty(exports, "ReadonlyAssetManager", {
|
|
148
148
|
enumerable: true,
|
|
149
|
-
get: function () { return
|
|
149
|
+
get: function () { return chunkKQK4PP6L_cjs.ReadonlyAssetManager; }
|
|
150
150
|
});
|
|
151
151
|
Object.defineProperty(exports, "ReadonlyDescriptorIdentity", {
|
|
152
152
|
enumerable: true,
|
|
153
|
-
get: function () { return
|
|
153
|
+
get: function () { return chunkKQK4PP6L_cjs.ReadonlyDescriptorIdentity; }
|
|
154
154
|
});
|
|
155
155
|
Object.defineProperty(exports, "ReadonlySingleKey", {
|
|
156
156
|
enumerable: true,
|
|
157
|
-
get: function () { return
|
|
157
|
+
get: function () { return chunkKQK4PP6L_cjs.ReadonlySingleKey; }
|
|
158
158
|
});
|
|
159
159
|
Object.defineProperty(exports, "ReadonlyWallet", {
|
|
160
160
|
enumerable: true,
|
|
161
|
-
get: function () { return
|
|
161
|
+
get: function () { return chunkKQK4PP6L_cjs.ReadonlyWallet; }
|
|
162
162
|
});
|
|
163
163
|
Object.defineProperty(exports, "ReadonlyWalletError", {
|
|
164
164
|
enumerable: true,
|
|
165
|
-
get: function () { return
|
|
165
|
+
get: function () { return chunkKQK4PP6L_cjs.ReadonlyWalletError; }
|
|
166
166
|
});
|
|
167
167
|
Object.defineProperty(exports, "RestDelegateProvider", {
|
|
168
168
|
enumerable: true,
|
|
169
|
-
get: function () { return
|
|
169
|
+
get: function () { return chunkKQK4PP6L_cjs.RestDelegateProvider; }
|
|
170
170
|
});
|
|
171
171
|
Object.defineProperty(exports, "RestDelegatorProvider", {
|
|
172
172
|
enumerable: true,
|
|
173
|
-
get: function () { return
|
|
173
|
+
get: function () { return chunkKQK4PP6L_cjs.RestDelegatorProvider; }
|
|
174
174
|
});
|
|
175
175
|
Object.defineProperty(exports, "SeedIdentity", {
|
|
176
176
|
enumerable: true,
|
|
177
|
-
get: function () { return
|
|
177
|
+
get: function () { return chunkKQK4PP6L_cjs.SeedIdentity; }
|
|
178
178
|
});
|
|
179
179
|
Object.defineProperty(exports, "ServiceWorkerReadonlyWallet", {
|
|
180
180
|
enumerable: true,
|
|
181
|
-
get: function () { return
|
|
181
|
+
get: function () { return chunkKQK4PP6L_cjs.ServiceWorkerReadonlyWallet; }
|
|
182
182
|
});
|
|
183
183
|
Object.defineProperty(exports, "ServiceWorkerTimeoutError", {
|
|
184
184
|
enumerable: true,
|
|
185
|
-
get: function () { return
|
|
185
|
+
get: function () { return chunkKQK4PP6L_cjs.ServiceWorkerTimeoutError; }
|
|
186
186
|
});
|
|
187
187
|
Object.defineProperty(exports, "ServiceWorkerWallet", {
|
|
188
188
|
enumerable: true,
|
|
189
|
-
get: function () { return
|
|
189
|
+
get: function () { return chunkKQK4PP6L_cjs.ServiceWorkerWallet; }
|
|
190
190
|
});
|
|
191
191
|
Object.defineProperty(exports, "SingleKey", {
|
|
192
192
|
enumerable: true,
|
|
193
|
-
get: function () { return
|
|
193
|
+
get: function () { return chunkKQK4PP6L_cjs.SingleKey; }
|
|
194
194
|
});
|
|
195
195
|
Object.defineProperty(exports, "TxTree", {
|
|
196
196
|
enumerable: true,
|
|
197
|
-
get: function () { return
|
|
197
|
+
get: function () { return chunkKQK4PP6L_cjs.TxTree; }
|
|
198
198
|
});
|
|
199
199
|
Object.defineProperty(exports, "TxType", {
|
|
200
200
|
enumerable: true,
|
|
201
|
-
get: function () { return
|
|
201
|
+
get: function () { return chunkKQK4PP6L_cjs.TxType; }
|
|
202
202
|
});
|
|
203
203
|
Object.defineProperty(exports, "TxWeightEstimator", {
|
|
204
204
|
enumerable: true,
|
|
205
|
-
get: function () { return
|
|
205
|
+
get: function () { return chunkKQK4PP6L_cjs.TxWeightEstimator; }
|
|
206
206
|
});
|
|
207
207
|
Object.defineProperty(exports, "Unroll", {
|
|
208
208
|
enumerable: true,
|
|
209
|
-
get: function () { return
|
|
209
|
+
get: function () { return chunkKQK4PP6L_cjs.Unroll; }
|
|
210
210
|
});
|
|
211
211
|
Object.defineProperty(exports, "VtxoManager", {
|
|
212
212
|
enumerable: true,
|
|
213
|
-
get: function () { return
|
|
213
|
+
get: function () { return chunkKQK4PP6L_cjs.VtxoManager; }
|
|
214
214
|
});
|
|
215
215
|
Object.defineProperty(exports, "Wallet", {
|
|
216
216
|
enumerable: true,
|
|
217
|
-
get: function () { return
|
|
217
|
+
get: function () { return chunkKQK4PP6L_cjs.Wallet; }
|
|
218
218
|
});
|
|
219
219
|
Object.defineProperty(exports, "WalletMessageHandler", {
|
|
220
220
|
enumerable: true,
|
|
221
|
-
get: function () { return
|
|
221
|
+
get: function () { return chunkKQK4PP6L_cjs.WalletMessageHandler; }
|
|
222
222
|
});
|
|
223
223
|
Object.defineProperty(exports, "WalletNotInitializedError", {
|
|
224
224
|
enumerable: true,
|
|
225
|
-
get: function () { return
|
|
225
|
+
get: function () { return chunkKQK4PP6L_cjs.WalletNotInitializedError; }
|
|
226
226
|
});
|
|
227
227
|
Object.defineProperty(exports, "WalletRepositoryImpl", {
|
|
228
228
|
enumerable: true,
|
|
229
|
-
get: function () { return
|
|
229
|
+
get: function () { return chunkKQK4PP6L_cjs.WalletRepositoryImpl; }
|
|
230
230
|
});
|
|
231
231
|
Object.defineProperty(exports, "WsElectrumChainSource", {
|
|
232
232
|
enumerable: true,
|
|
233
|
-
get: function () { return
|
|
233
|
+
get: function () { return chunkKQK4PP6L_cjs.WsElectrumChainSource; }
|
|
234
234
|
});
|
|
235
235
|
Object.defineProperty(exports, "buildForfeitTx", {
|
|
236
236
|
enumerable: true,
|
|
237
|
-
get: function () { return
|
|
237
|
+
get: function () { return chunkKQK4PP6L_cjs.buildForfeitTx; }
|
|
238
238
|
});
|
|
239
239
|
Object.defineProperty(exports, "buildOffchainTx", {
|
|
240
240
|
enumerable: true,
|
|
241
|
-
get: function () { return
|
|
241
|
+
get: function () { return chunkKQK4PP6L_cjs.buildOffchainTx; }
|
|
242
242
|
});
|
|
243
243
|
Object.defineProperty(exports, "closeDatabase", {
|
|
244
244
|
enumerable: true,
|
|
245
|
-
get: function () { return
|
|
245
|
+
get: function () { return chunkKQK4PP6L_cjs.closeDatabase; }
|
|
246
246
|
});
|
|
247
247
|
Object.defineProperty(exports, "combineTapscriptSigs", {
|
|
248
248
|
enumerable: true,
|
|
249
|
-
get: function () { return
|
|
249
|
+
get: function () { return chunkKQK4PP6L_cjs.combineTapscriptSigs; }
|
|
250
250
|
});
|
|
251
251
|
Object.defineProperty(exports, "contractFromArkContract", {
|
|
252
252
|
enumerable: true,
|
|
253
|
-
get: function () { return
|
|
253
|
+
get: function () { return chunkKQK4PP6L_cjs.contractFromArkContract; }
|
|
254
254
|
});
|
|
255
255
|
Object.defineProperty(exports, "contractFromArkContractWithAddress", {
|
|
256
256
|
enumerable: true,
|
|
257
|
-
get: function () { return
|
|
257
|
+
get: function () { return chunkKQK4PP6L_cjs.contractFromArkContractWithAddress; }
|
|
258
258
|
});
|
|
259
259
|
Object.defineProperty(exports, "decodeArkContract", {
|
|
260
260
|
enumerable: true,
|
|
261
|
-
get: function () { return
|
|
261
|
+
get: function () { return chunkKQK4PP6L_cjs.decodeArkContract; }
|
|
262
262
|
});
|
|
263
263
|
Object.defineProperty(exports, "encodeArkContract", {
|
|
264
264
|
enumerable: true,
|
|
265
|
-
get: function () { return
|
|
265
|
+
get: function () { return chunkKQK4PP6L_cjs.encodeArkContract; }
|
|
266
266
|
});
|
|
267
267
|
Object.defineProperty(exports, "getMigrationStatus", {
|
|
268
268
|
enumerable: true,
|
|
269
|
-
get: function () { return
|
|
269
|
+
get: function () { return chunkKQK4PP6L_cjs.getMigrationStatus; }
|
|
270
270
|
});
|
|
271
271
|
Object.defineProperty(exports, "getRandomId", {
|
|
272
272
|
enumerable: true,
|
|
273
|
-
get: function () { return
|
|
273
|
+
get: function () { return chunkKQK4PP6L_cjs.getRandomId; }
|
|
274
274
|
});
|
|
275
275
|
Object.defineProperty(exports, "hasBoardingTxExpired", {
|
|
276
276
|
enumerable: true,
|
|
277
|
-
get: function () { return
|
|
277
|
+
get: function () { return chunkKQK4PP6L_cjs.hasBoardingTxExpired; }
|
|
278
278
|
});
|
|
279
279
|
Object.defineProperty(exports, "isArkContract", {
|
|
280
280
|
enumerable: true,
|
|
281
|
-
get: function () { return
|
|
281
|
+
get: function () { return chunkKQK4PP6L_cjs.isArkContract; }
|
|
282
282
|
});
|
|
283
283
|
Object.defineProperty(exports, "isBatchSignable", {
|
|
284
284
|
enumerable: true,
|
|
285
|
-
get: function () { return
|
|
285
|
+
get: function () { return chunkKQK4PP6L_cjs.isBatchSignable; }
|
|
286
286
|
});
|
|
287
287
|
Object.defineProperty(exports, "isDiscoverable", {
|
|
288
288
|
enumerable: true,
|
|
289
|
-
get: function () { return
|
|
289
|
+
get: function () { return chunkKQK4PP6L_cjs.isDiscoverable; }
|
|
290
290
|
});
|
|
291
291
|
Object.defineProperty(exports, "isExpired", {
|
|
292
292
|
enumerable: true,
|
|
293
|
-
get: function () { return
|
|
293
|
+
get: function () { return chunkKQK4PP6L_cjs.isExpired; }
|
|
294
294
|
});
|
|
295
295
|
Object.defineProperty(exports, "isRecoverable", {
|
|
296
296
|
enumerable: true,
|
|
297
|
-
get: function () { return
|
|
297
|
+
get: function () { return chunkKQK4PP6L_cjs.isRecoverable; }
|
|
298
298
|
});
|
|
299
299
|
Object.defineProperty(exports, "isSpendable", {
|
|
300
300
|
enumerable: true,
|
|
301
|
-
get: function () { return
|
|
301
|
+
get: function () { return chunkKQK4PP6L_cjs.isSpendable; }
|
|
302
302
|
});
|
|
303
303
|
Object.defineProperty(exports, "isSubdust", {
|
|
304
304
|
enumerable: true,
|
|
305
|
-
get: function () { return
|
|
305
|
+
get: function () { return chunkKQK4PP6L_cjs.isSubdust; }
|
|
306
306
|
});
|
|
307
307
|
Object.defineProperty(exports, "isValidArkAddress", {
|
|
308
308
|
enumerable: true,
|
|
309
|
-
get: function () { return
|
|
309
|
+
get: function () { return chunkKQK4PP6L_cjs.isValidArkAddress; }
|
|
310
310
|
});
|
|
311
311
|
Object.defineProperty(exports, "isVtxoExpiringSoon", {
|
|
312
312
|
enumerable: true,
|
|
313
|
-
get: function () { return
|
|
313
|
+
get: function () { return chunkKQK4PP6L_cjs.isVtxoExpiringSoon; }
|
|
314
314
|
});
|
|
315
315
|
Object.defineProperty(exports, "migrateWalletRepository", {
|
|
316
316
|
enumerable: true,
|
|
317
|
-
get: function () { return
|
|
317
|
+
get: function () { return chunkKQK4PP6L_cjs.migrateWalletRepository; }
|
|
318
318
|
});
|
|
319
319
|
Object.defineProperty(exports, "openDatabase", {
|
|
320
320
|
enumerable: true,
|
|
321
|
-
get: function () { return
|
|
321
|
+
get: function () { return chunkKQK4PP6L_cjs.openDatabase; }
|
|
322
322
|
});
|
|
323
323
|
Object.defineProperty(exports, "requiresMigration", {
|
|
324
324
|
enumerable: true,
|
|
325
|
-
get: function () { return
|
|
325
|
+
get: function () { return chunkKQK4PP6L_cjs.requiresMigration; }
|
|
326
326
|
});
|
|
327
327
|
Object.defineProperty(exports, "rollbackMigration", {
|
|
328
328
|
enumerable: true,
|
|
329
|
-
get: function () { return
|
|
329
|
+
get: function () { return chunkKQK4PP6L_cjs.rollbackMigration; }
|
|
330
330
|
});
|
|
331
331
|
Object.defineProperty(exports, "setupServiceWorker", {
|
|
332
332
|
enumerable: true,
|
|
333
|
-
get: function () { return
|
|
333
|
+
get: function () { return chunkKQK4PP6L_cjs.setupServiceWorker; }
|
|
334
334
|
});
|
|
335
335
|
Object.defineProperty(exports, "validateConnectorsTxGraph", {
|
|
336
336
|
enumerable: true,
|
|
337
|
-
get: function () { return
|
|
337
|
+
get: function () { return chunkKQK4PP6L_cjs.validateConnectorsTxGraph; }
|
|
338
338
|
});
|
|
339
339
|
Object.defineProperty(exports, "validateVtxoTxGraph", {
|
|
340
340
|
enumerable: true,
|
|
341
|
-
get: function () { return
|
|
341
|
+
get: function () { return chunkKQK4PP6L_cjs.validateVtxoTxGraph; }
|
|
342
342
|
});
|
|
343
343
|
Object.defineProperty(exports, "verifyTapscriptSignatures", {
|
|
344
344
|
enumerable: true,
|
|
345
|
-
get: function () { return
|
|
345
|
+
get: function () { return chunkKQK4PP6L_cjs.verifyTapscriptSignatures; }
|
|
346
346
|
});
|
|
347
347
|
Object.defineProperty(exports, "waitForIncomingFunds", {
|
|
348
348
|
enumerable: true,
|
|
349
|
-
get: function () { return
|
|
349
|
+
get: function () { return chunkKQK4PP6L_cjs.waitForIncomingFunds; }
|
|
350
350
|
});
|
|
351
351
|
Object.defineProperty(exports, "ArkError", {
|
|
352
352
|
enumerable: true,
|
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { ArkNote, AssetManager, BIP322, Batch, ContractManager, ContractRepositoryImpl, ContractWatcher, DEFAULT_MESSAGE_TIMEOUTS, DelegateManagerImpl, DelegateNotConfiguredError, DelegatorManagerImpl, DelegatorNotConfiguredError, DescriptorSigningProviderMissingError, DustChangeError, ELECTRUM_TCP_HOST, ELECTRUM_WS_URL, ESPLORA_URL, ElectrumOnchainProvider, EsploraProvider, Estimator, HDDescriptorProvider, InMemoryContractRepository, InMemoryWalletRepository, IndexedDBContractRepository, IndexedDBWalletRepository, MESSAGE_BUS_NOT_INITIALIZED, MIGRATION_KEY, MessageBus, MessageBusNotInitializedError, MissingSigningDescriptorError, MnemonicIdentity, OnchainWallet, P2A, Ramps, ReadonlyAssetManager, ReadonlyDescriptorIdentity, ReadonlySingleKey, ReadonlyWallet, ReadonlyWalletError, RestDelegateProvider, RestDelegatorProvider, SeedIdentity, ServiceWorkerReadonlyWallet, ServiceWorkerTimeoutError, ServiceWorkerWallet, SingleKey, TxTree, TxType, TxWeightEstimator, Unroll, VtxoManager, Wallet, WalletMessageHandler, WalletNotInitializedError, WalletRepositoryImpl, WsElectrumChainSource, buildForfeitTx, buildOffchainTx, closeDatabase, combineTapscriptSigs, contractFromArkContract, contractFromArkContractWithAddress, decodeArkContract, encodeArkContract, getMigrationStatus, getRandomId, hasBoardingTxExpired, isArkContract, isBatchSignable, isDiscoverable, isExpired, isRecoverable, isSpendable, isSubdust, isValidArkAddress, isVtxoExpiringSoon, migrateWalletRepository, openDatabase, requiresMigration, rollbackMigration, setupServiceWorker, validateConnectorsTxGraph, validateVtxoTxGraph, verifyTapscriptSignatures, waitForIncomingFunds } from './chunk-
|
|
1
|
+
export { ArkNote, AssetManager, BIP322, Batch, ContractManager, ContractRepositoryImpl, ContractWatcher, DEFAULT_MESSAGE_TIMEOUTS, DelegateManagerImpl, DelegateNotConfiguredError, DelegatorManagerImpl, DelegatorNotConfiguredError, DescriptorSigningProviderMissingError, DustChangeError, ELECTRUM_TCP_HOST, ELECTRUM_WS_URL, ESPLORA_URL, ElectrumOnchainProvider, EsploraProvider, Estimator, HDDescriptorProvider, InMemoryContractRepository, InMemoryWalletRepository, IndexedDBContractRepository, IndexedDBWalletRepository, MESSAGE_BUS_NOT_INITIALIZED, MIGRATION_KEY, MessageBus, MessageBusNotInitializedError, MissingSigningDescriptorError, MnemonicIdentity, OnchainWallet, P2A, Ramps, ReadonlyAssetManager, ReadonlyDescriptorIdentity, ReadonlySingleKey, ReadonlyWallet, ReadonlyWalletError, RestDelegateProvider, RestDelegatorProvider, SeedIdentity, ServiceWorkerReadonlyWallet, ServiceWorkerTimeoutError, ServiceWorkerWallet, SingleKey, TxTree, TxType, TxWeightEstimator, Unroll, VtxoManager, Wallet, WalletMessageHandler, WalletNotInitializedError, WalletRepositoryImpl, WsElectrumChainSource, buildForfeitTx, buildOffchainTx, closeDatabase, combineTapscriptSigs, contractFromArkContract, contractFromArkContractWithAddress, decodeArkContract, encodeArkContract, getMigrationStatus, getRandomId, hasBoardingTxExpired, isArkContract, isBatchSignable, isDiscoverable, isExpired, isRecoverable, isSpendable, isSubdust, isValidArkAddress, isVtxoExpiringSoon, migrateWalletRepository, openDatabase, requiresMigration, rollbackMigration, setupServiceWorker, validateConnectorsTxGraph, validateVtxoTxGraph, verifyTapscriptSignatures, waitForIncomingFunds } from './chunk-XROGFOPX.js';
|
|
2
2
|
export { ArkError, ArkPsbtFieldKey, ArkPsbtFieldKeyType, ChainTxType, ConditionWitness, CosignerPublicKey, IndexerTxType, Intent, RestArkProvider, RestIndexerProvider, SettlementEventType, Transaction, VtxoTaprootTree, VtxoTreeExpiry, asset_exports as asset, getArkPsbtFields, maybeArkError, setArkPsbtField } from './chunk-6NWNOLL3.js';
|
|
3
3
|
export { DefaultContractHandler, DefaultVtxo, DelegateContractHandler, DelegateVtxo, VHTLC, VHTLCContractHandler, contractHandlers } from './chunk-YA4G7RFB.js';
|
|
4
4
|
export { ArkAddress, CLTVMultisigTapscript, CSVMultisigTapscript, ConditionCSVMultisigTapscript, ConditionMultisigTapscript, MultisigTapscript, TapTreeCoder, VtxoScript, decodeTapscript, getSequence, networks, sequenceToTimelock, timelockToSequence } from './chunk-TU3LVAPX.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkKQK4PP6L_cjs = require('../../chunk-KQK4PP6L.cjs');
|
|
4
4
|
require('../../chunk-6FLL2Q36.cjs');
|
|
5
5
|
require('../../chunk-IEO3XDKI.cjs');
|
|
6
6
|
require('../../chunk-WMIPYZSB.cjs');
|
|
@@ -37,7 +37,7 @@ var RealmWalletRepository = class {
|
|
|
37
37
|
await this.ensureInit();
|
|
38
38
|
this.realm.write(() => {
|
|
39
39
|
for (const vtxo of vtxos) {
|
|
40
|
-
const s =
|
|
40
|
+
const s = chunkKQK4PP6L_cjs.serializeVtxo(vtxo);
|
|
41
41
|
this.realm.create(
|
|
42
42
|
"ArkVtxo",
|
|
43
43
|
{
|
|
@@ -85,7 +85,7 @@ var RealmWalletRepository = class {
|
|
|
85
85
|
throw new Error("RealmWalletRepository requires an address");
|
|
86
86
|
}
|
|
87
87
|
for (const vtxo of vtxos) {
|
|
88
|
-
if (!
|
|
88
|
+
if (!chunkKQK4PP6L_cjs.isVtxoForScript(vtxo, key.script)) {
|
|
89
89
|
throw new Error(
|
|
90
90
|
`VTXO ${vtxo.txid}:${vtxo.vout} script mismatch: expected ${key.script}, got ${vtxo.script}`
|
|
91
91
|
);
|
|
@@ -110,7 +110,7 @@ var RealmWalletRepository = class {
|
|
|
110
110
|
await this.ensureInit();
|
|
111
111
|
this.realm.write(() => {
|
|
112
112
|
for (const utxo of utxos) {
|
|
113
|
-
const s =
|
|
113
|
+
const s = chunkKQK4PP6L_cjs.serializeUtxo(utxo);
|
|
114
114
|
this.realm.create(
|
|
115
115
|
"ArkUtxo",
|
|
116
116
|
{
|
|
@@ -163,7 +163,7 @@ var RealmWalletRepository = class {
|
|
|
163
163
|
amount: tx.amount,
|
|
164
164
|
settled: tx.settled,
|
|
165
165
|
createdAt: tx.createdAt,
|
|
166
|
-
assetsJson: tx.assets ? JSON.stringify(
|
|
166
|
+
assetsJson: tx.assets ? JSON.stringify(chunkKQK4PP6L_cjs.serializeAssets(tx.assets)) : null
|
|
167
167
|
},
|
|
168
168
|
"modified"
|
|
169
169
|
);
|
|
@@ -233,9 +233,9 @@ function vtxoObjectToDomain(obj) {
|
|
|
233
233
|
// Post-migration every row has `script`, but the backfill is
|
|
234
234
|
// idempotent: derive from `address` if the legacy column is still
|
|
235
235
|
// null (e.g. the migration hasn't run yet on this handle).
|
|
236
|
-
script: obj.script ??
|
|
236
|
+
script: obj.script ?? chunkKQK4PP6L_cjs.scriptFromArkAddress(obj.address)
|
|
237
237
|
};
|
|
238
|
-
return
|
|
238
|
+
return chunkKQK4PP6L_cjs.deserializeVtxo(serialized);
|
|
239
239
|
}
|
|
240
240
|
function utxoObjectToDomain(obj) {
|
|
241
241
|
const serialized = {
|
|
@@ -254,7 +254,7 @@ function utxoObjectToDomain(obj) {
|
|
|
254
254
|
status: JSON.parse(obj.statusJson),
|
|
255
255
|
extraWitness: obj.extraWitnessJson ? JSON.parse(obj.extraWitnessJson) : void 0
|
|
256
256
|
};
|
|
257
|
-
return
|
|
257
|
+
return chunkKQK4PP6L_cjs.deserializeUtxo(serialized);
|
|
258
258
|
}
|
|
259
259
|
function txObjectToDomain(obj) {
|
|
260
260
|
const tx = {
|
|
@@ -269,7 +269,7 @@ function txObjectToDomain(obj) {
|
|
|
269
269
|
createdAt: obj.createdAt
|
|
270
270
|
};
|
|
271
271
|
if (obj.assetsJson) {
|
|
272
|
-
tx.assets =
|
|
272
|
+
tx.assets = chunkKQK4PP6L_cjs.deserializeAssets(JSON.parse(obj.assetsJson));
|
|
273
273
|
}
|
|
274
274
|
return tx;
|
|
275
275
|
}
|
|
@@ -499,7 +499,7 @@ function runArkRealmMigrations(oldRealm, newRealm) {
|
|
|
499
499
|
for (let i = 0; i < newVtxos.length; i++) {
|
|
500
500
|
const newVtxo = newVtxos[i];
|
|
501
501
|
if (!newVtxo.script) {
|
|
502
|
-
newVtxo.script =
|
|
502
|
+
newVtxo.script = chunkKQK4PP6L_cjs.scriptFromArkAddress(newVtxo.address);
|
|
503
503
|
}
|
|
504
504
|
}
|
|
505
505
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { serializeVtxo, isVtxoForScript, serializeUtxo, serializeAssets, scriptFromArkAddress, deserializeVtxo, deserializeUtxo, deserializeAssets } from '../../chunk-
|
|
1
|
+
import { serializeVtxo, isVtxoForScript, serializeUtxo, serializeAssets, scriptFromArkAddress, deserializeVtxo, deserializeUtxo, deserializeAssets } from '../../chunk-XROGFOPX.js';
|
|
2
2
|
import '../../chunk-6NWNOLL3.js';
|
|
3
3
|
import '../../chunk-YA4G7RFB.js';
|
|
4
4
|
import '../../chunk-TU3LVAPX.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkKQK4PP6L_cjs = require('../../chunk-KQK4PP6L.cjs');
|
|
4
4
|
require('../../chunk-6FLL2Q36.cjs');
|
|
5
5
|
require('../../chunk-IEO3XDKI.cjs');
|
|
6
6
|
require('../../chunk-WMIPYZSB.cjs');
|
|
@@ -126,7 +126,7 @@ var SQLiteWalletRepository = class {
|
|
|
126
126
|
for (const row of nullRows) {
|
|
127
127
|
await this.db.run(
|
|
128
128
|
`UPDATE ${this.tables.vtxos} SET script = ? WHERE txid = ? AND vout = ?`,
|
|
129
|
-
[
|
|
129
|
+
[chunkKQK4PP6L_cjs.scriptFromArkAddress(row.address), row.txid, row.vout]
|
|
130
130
|
);
|
|
131
131
|
}
|
|
132
132
|
const tempName = `${this.tables.vtxos}__migrate_tmp`;
|
|
@@ -204,7 +204,7 @@ var SQLiteWalletRepository = class {
|
|
|
204
204
|
async saveVtxos(address, vtxos) {
|
|
205
205
|
await this.ensureInit();
|
|
206
206
|
for (const vtxo of vtxos) {
|
|
207
|
-
const s =
|
|
207
|
+
const s = chunkKQK4PP6L_cjs.serializeVtxo(vtxo);
|
|
208
208
|
await this.db.run(
|
|
209
209
|
`INSERT OR REPLACE INTO ${this.tables.vtxos}
|
|
210
210
|
(txid, vout, value, address,
|
|
@@ -259,7 +259,7 @@ var SQLiteWalletRepository = class {
|
|
|
259
259
|
throw new Error("SQLiteWalletRepository requires an address");
|
|
260
260
|
}
|
|
261
261
|
for (const vtxo of vtxos) {
|
|
262
|
-
if (!
|
|
262
|
+
if (!chunkKQK4PP6L_cjs.isVtxoForScript(vtxo, key.script)) {
|
|
263
263
|
throw new Error(
|
|
264
264
|
`VTXO ${vtxo.txid}:${vtxo.vout} script mismatch: expected ${key.script}, got ${vtxo.script}`
|
|
265
265
|
);
|
|
@@ -283,7 +283,7 @@ var SQLiteWalletRepository = class {
|
|
|
283
283
|
async saveUtxos(address, utxos) {
|
|
284
284
|
await this.ensureInit();
|
|
285
285
|
for (const utxo of utxos) {
|
|
286
|
-
const s =
|
|
286
|
+
const s = chunkKQK4PP6L_cjs.serializeUtxo(utxo);
|
|
287
287
|
await this.db.run(
|
|
288
288
|
`INSERT OR REPLACE INTO ${this.tables.utxos}
|
|
289
289
|
(txid, vout, value, address,
|
|
@@ -339,7 +339,7 @@ var SQLiteWalletRepository = class {
|
|
|
339
339
|
tx.amount,
|
|
340
340
|
tx.settled ? 1 : 0,
|
|
341
341
|
tx.createdAt,
|
|
342
|
-
tx.assets ? JSON.stringify(
|
|
342
|
+
tx.assets ? JSON.stringify(chunkKQK4PP6L_cjs.serializeAssets(tx.assets)) : null
|
|
343
343
|
]
|
|
344
344
|
);
|
|
345
345
|
}
|
|
@@ -413,9 +413,9 @@ function vtxoRowToDomain(row) {
|
|
|
413
413
|
// Post-migration every row has `script`, but the backfill is
|
|
414
414
|
// idempotent: derive from `address` if the legacy column is still
|
|
415
415
|
// null (e.g. the migration hasn't run yet on this handle).
|
|
416
|
-
script: row.script ??
|
|
416
|
+
script: row.script ?? chunkKQK4PP6L_cjs.scriptFromArkAddress(row.address)
|
|
417
417
|
};
|
|
418
|
-
return
|
|
418
|
+
return chunkKQK4PP6L_cjs.deserializeVtxo(serialized);
|
|
419
419
|
}
|
|
420
420
|
function utxoRowToDomain(row) {
|
|
421
421
|
const serialized = {
|
|
@@ -434,7 +434,7 @@ function utxoRowToDomain(row) {
|
|
|
434
434
|
status: JSON.parse(row.status_json),
|
|
435
435
|
extraWitness: row.extra_witness_json ? JSON.parse(row.extra_witness_json) : void 0
|
|
436
436
|
};
|
|
437
|
-
return
|
|
437
|
+
return chunkKQK4PP6L_cjs.deserializeUtxo(serialized);
|
|
438
438
|
}
|
|
439
439
|
function txRowToDomain(row) {
|
|
440
440
|
const tx = {
|
|
@@ -449,7 +449,7 @@ function txRowToDomain(row) {
|
|
|
449
449
|
createdAt: row.created_at
|
|
450
450
|
};
|
|
451
451
|
if (row.assets_json) {
|
|
452
|
-
tx.assets =
|
|
452
|
+
tx.assets = chunkKQK4PP6L_cjs.deserializeAssets(JSON.parse(row.assets_json));
|
|
453
453
|
}
|
|
454
454
|
return tx;
|
|
455
455
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { scriptFromArkAddress, serializeVtxo, isVtxoForScript, serializeUtxo, serializeAssets, deserializeVtxo, deserializeUtxo, deserializeAssets } from '../../chunk-
|
|
1
|
+
import { scriptFromArkAddress, serializeVtxo, isVtxoForScript, serializeUtxo, serializeAssets, deserializeVtxo, deserializeUtxo, deserializeAssets } from '../../chunk-XROGFOPX.js';
|
|
2
2
|
import '../../chunk-6NWNOLL3.js';
|
|
3
3
|
import '../../chunk-YA4G7RFB.js';
|
|
4
4
|
import '../../chunk-TU3LVAPX.js';
|