@bsv/wallet-toolbox 1.1.8 → 1.1.9
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/docs/client.md +3475 -1171
- package/docs/storage.md +563 -12
- package/docs/wallet.md +3475 -1171
- package/out/src/sdk/StorageSyncReader.d.ts +2 -2
- package/out/src/sdk/StorageSyncReader.d.ts.map +1 -1
- package/out/src/sdk/WalletStorage.interfaces.d.ts +2 -2
- package/out/src/sdk/WalletStorage.interfaces.d.ts.map +1 -1
- package/out/src/storage/StorageKnex.d.ts +2 -2
- package/out/src/storage/StorageKnex.d.ts.map +1 -1
- package/out/src/storage/StorageKnex.js +11 -2
- package/out/src/storage/StorageKnex.js.map +1 -1
- package/out/src/storage/StorageProvider.d.ts +2 -2
- package/out/src/storage/StorageProvider.d.ts.map +1 -1
- package/out/src/storage/StorageReader.d.ts +2 -2
- package/out/src/storage/StorageReader.d.ts.map +1 -1
- package/out/src/storage/StorageReader.js.map +1 -1
- package/out/src/storage/StorageSyncReader.d.ts +2 -2
- package/out/src/storage/StorageSyncReader.d.ts.map +1 -1
- package/out/src/storage/StorageSyncReader.js.map +1 -1
- package/out/src/storage/WalletStorageManager.d.ts +2 -2
- package/out/src/storage/WalletStorageManager.d.ts.map +1 -1
- package/out/src/storage/WalletStorageManager.js.map +1 -1
- package/out/src/storage/index.client.d.ts +2 -2
- package/out/src/storage/index.client.d.ts.map +1 -1
- package/out/src/storage/index.client.js +2 -2
- package/out/src/storage/index.client.js.map +1 -1
- package/out/src/storage/remoting/StorageClient.d.ts +221 -6
- package/out/src/storage/remoting/StorageClient.d.ts.map +1 -1
- package/out/src/storage/remoting/StorageClient.js +222 -7
- package/out/src/storage/remoting/StorageClient.js.map +1 -1
- package/out/src/storage/sync/StorageMySQLDojoReader.d.ts +2 -2
- package/out/src/storage/sync/StorageMySQLDojoReader.d.ts.map +1 -1
- package/out/src/storage/sync/StorageMySQLDojoReader.js.map +1 -1
- package/out/tsconfig.all.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/src/sdk/StorageSyncReader.ts +2 -1
- package/src/sdk/WalletStorage.interfaces.ts +2 -2
- package/src/storage/StorageKnex.ts +15 -4
- package/src/storage/StorageProvider.ts +1 -1
- package/src/storage/StorageReader.ts +2 -1
- package/src/storage/StorageSyncReader.ts +2 -1
- package/src/storage/WalletStorageManager.ts +2 -1
- package/src/storage/index.client.ts +2 -2
- package/src/storage/remoting/StorageClient.ts +223 -9
- package/src/storage/sync/StorageMySQLDojoReader.ts +2 -1
package/docs/storage.md
CHANGED
|
@@ -2203,6 +2203,19 @@ Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](
|
|
|
2203
2203
|
---
|
|
2204
2204
|
##### Class: StorageClient
|
|
2205
2205
|
|
|
2206
|
+
`StorageClient` implements the `WalletStorageProvider` interface which allows it to
|
|
2207
|
+
serve as a BRC-100 wallet's active storage.
|
|
2208
|
+
|
|
2209
|
+
Internally, it uses JSON-RPC over HTTPS to make requests of a remote server.
|
|
2210
|
+
Typically this server uses the `StorageServer` class to implement the service.
|
|
2211
|
+
|
|
2212
|
+
The `AuthFetch` component is used to secure and authenticate the requests to the remote server.
|
|
2213
|
+
|
|
2214
|
+
`AuthFetch` is initialized with a BRC-100 wallet which establishes the identity of
|
|
2215
|
+
the party making requests of the remote service.
|
|
2216
|
+
|
|
2217
|
+
For details of the API implemented, follow the "See also" link for the `WalletStorageProvider` interface.
|
|
2218
|
+
|
|
2206
2219
|
```ts
|
|
2207
2220
|
export class StorageClient implements sdk.WalletStorageProvider {
|
|
2208
2221
|
public settings?: TableSettings;
|
|
@@ -2231,7 +2244,7 @@ export class StorageClient implements sdk.WalletStorageProvider {
|
|
|
2231
2244
|
async listActions(auth: sdk.AuthId, vargs: sdk.ValidListActionsArgs): Promise<ListActionsResult>
|
|
2232
2245
|
async listOutputs(auth: sdk.AuthId, vargs: sdk.ValidListOutputsArgs): Promise<ListOutputsResult>
|
|
2233
2246
|
async listCertificates(auth: sdk.AuthId, vargs: sdk.ValidListCertificatesArgs): Promise<ListCertificatesResult>
|
|
2234
|
-
async findCertificatesAuth(auth: sdk.AuthId, args: sdk.FindCertificatesArgs): Promise<
|
|
2247
|
+
async findCertificatesAuth(auth: sdk.AuthId, args: sdk.FindCertificatesArgs): Promise<TableCertificateX[]>
|
|
2235
2248
|
async findOutputBasketsAuth(auth: sdk.AuthId, args: sdk.FindOutputBasketsArgs): Promise<TableOutputBasket[]>
|
|
2236
2249
|
async findOutputsAuth(auth: sdk.AuthId, args: sdk.FindOutputsArgs): Promise<TableOutput[]>
|
|
2237
2250
|
findProvenTxReqs(args: sdk.FindProvenTxReqsArgs): Promise<TableProvenTxReq[]>
|
|
@@ -2244,7 +2257,545 @@ export class StorageClient implements sdk.WalletStorageProvider {
|
|
|
2244
2257
|
}
|
|
2245
2258
|
```
|
|
2246
2259
|
|
|
2247
|
-
See also: [AuthId](./client.md#interface-authid), [FindCertificatesArgs](./client.md#interface-findcertificatesargs), [FindOutputBasketsArgs](./client.md#interface-findoutputbasketsargs), [FindOutputsArgs](./client.md#interface-findoutputsargs), [FindProvenTxReqsArgs](./client.md#interface-findproventxreqsargs), [ProcessSyncChunkResult](./client.md#interface-processsyncchunkresult), [RequestSyncChunkArgs](./client.md#interface-requestsyncchunkargs), [StorageCreateActionResult](./client.md#interface-storagecreateactionresult), [StorageProcessActionArgs](./client.md#interface-storageprocessactionargs), [StorageProcessActionResults](./client.md#interface-storageprocessactionresults), [SyncChunk](./client.md#interface-syncchunk), [
|
|
2260
|
+
See also: [AuthId](./client.md#interface-authid), [FindCertificatesArgs](./client.md#interface-findcertificatesargs), [FindOutputBasketsArgs](./client.md#interface-findoutputbasketsargs), [FindOutputsArgs](./client.md#interface-findoutputsargs), [FindProvenTxReqsArgs](./client.md#interface-findproventxreqsargs), [ProcessSyncChunkResult](./client.md#interface-processsyncchunkresult), [RequestSyncChunkArgs](./client.md#interface-requestsyncchunkargs), [StorageCreateActionResult](./client.md#interface-storagecreateactionresult), [StorageProcessActionArgs](./client.md#interface-storageprocessactionargs), [StorageProcessActionResults](./client.md#interface-storageprocessactionresults), [SyncChunk](./client.md#interface-syncchunk), [TableCertificateX](./storage.md#interface-tablecertificatex), [TableOutput](./storage.md#interface-tableoutput), [TableOutputBasket](./storage.md#interface-tableoutputbasket), [TableProvenTxReq](./storage.md#interface-tableproventxreq), [TableSettings](./storage.md#interface-tablesettings), [TableSyncState](./storage.md#interface-tablesyncstate), [TableUser](./storage.md#interface-tableuser), [UpdateProvenTxReqWithNewProvenTxArgs](./client.md#interface-updateproventxreqwithnewproventxargs), [UpdateProvenTxReqWithNewProvenTxResult](./client.md#interface-updateproventxreqwithnewproventxresult), [ValidCreateActionArgs](./client.md#interface-validcreateactionargs), [ValidListActionsArgs](./client.md#interface-validlistactionsargs), [ValidListCertificatesArgs](./client.md#interface-validlistcertificatesargs), [ValidListOutputsArgs](./client.md#interface-validlistoutputsargs), [WalletServices](./client.md#interface-walletservices), [WalletStorageProvider](./client.md#interface-walletstorageprovider), [createAction](./storage.md#function-createaction), [getSyncChunk](./storage.md#function-getsyncchunk), [internalizeAction](./storage.md#function-internalizeaction), [listActions](./storage.md#function-listactions), [listCertificates](./storage.md#function-listcertificates), [listOutputs](./storage.md#function-listoutputs), [processAction](./storage.md#function-processaction)
|
|
2261
|
+
|
|
2262
|
+
###### Method abortAction
|
|
2263
|
+
|
|
2264
|
+
Aborts an action by `reference` string.
|
|
2265
|
+
|
|
2266
|
+
```ts
|
|
2267
|
+
async abortAction(auth: sdk.AuthId, args: AbortActionArgs): Promise<AbortActionResult>
|
|
2268
|
+
```
|
|
2269
|
+
See also: [AuthId](./client.md#interface-authid)
|
|
2270
|
+
|
|
2271
|
+
Returns
|
|
2272
|
+
|
|
2273
|
+
`abortAction` result.
|
|
2274
|
+
|
|
2275
|
+
Argument Details
|
|
2276
|
+
|
|
2277
|
+
+ **auth**
|
|
2278
|
+
+ Identifies client by identity key and the storage identity key of their currently active storage.
|
|
2279
|
+
This must match the `AuthFetch` identity securing the remote conneciton.
|
|
2280
|
+
+ **args**
|
|
2281
|
+
+ original wallet `abortAction` args.
|
|
2282
|
+
|
|
2283
|
+
###### Method createAction
|
|
2284
|
+
|
|
2285
|
+
Storage level processing for wallet `createAction`.
|
|
2286
|
+
|
|
2287
|
+
```ts
|
|
2288
|
+
async createAction(auth: sdk.AuthId, args: sdk.ValidCreateActionArgs): Promise<sdk.StorageCreateActionResult>
|
|
2289
|
+
```
|
|
2290
|
+
See also: [AuthId](./client.md#interface-authid), [StorageCreateActionResult](./client.md#interface-storagecreateactionresult), [ValidCreateActionArgs](./client.md#interface-validcreateactionargs)
|
|
2291
|
+
|
|
2292
|
+
Returns
|
|
2293
|
+
|
|
2294
|
+
`StorageCreateActionResults` supporting additional wallet processing to yield `createAction` results.
|
|
2295
|
+
|
|
2296
|
+
Argument Details
|
|
2297
|
+
|
|
2298
|
+
+ **auth**
|
|
2299
|
+
+ Identifies client by identity key and the storage identity key of their currently active storage.
|
|
2300
|
+
This must match the `AuthFetch` identity securing the remote conneciton.
|
|
2301
|
+
+ **args**
|
|
2302
|
+
+ Validated extension of original wallet `createAction` arguments.
|
|
2303
|
+
|
|
2304
|
+
###### Method destroy
|
|
2305
|
+
|
|
2306
|
+
Called to cleanup resources when no further use of this object will occur.
|
|
2307
|
+
|
|
2308
|
+
```ts
|
|
2309
|
+
async destroy(): Promise<void>
|
|
2310
|
+
```
|
|
2311
|
+
|
|
2312
|
+
###### Method findCertificatesAuth
|
|
2313
|
+
|
|
2314
|
+
Find user certificates, optionally with fields.
|
|
2315
|
+
|
|
2316
|
+
This certificate retrieval method supports internal wallet operations.
|
|
2317
|
+
Field values are stored and retrieved encrypted.
|
|
2318
|
+
|
|
2319
|
+
```ts
|
|
2320
|
+
async findCertificatesAuth(auth: sdk.AuthId, args: sdk.FindCertificatesArgs): Promise<TableCertificateX[]>
|
|
2321
|
+
```
|
|
2322
|
+
See also: [AuthId](./client.md#interface-authid), [FindCertificatesArgs](./client.md#interface-findcertificatesargs), [TableCertificateX](./storage.md#interface-tablecertificatex)
|
|
2323
|
+
|
|
2324
|
+
Returns
|
|
2325
|
+
|
|
2326
|
+
array of certificates matching args.
|
|
2327
|
+
|
|
2328
|
+
Argument Details
|
|
2329
|
+
|
|
2330
|
+
+ **auth**
|
|
2331
|
+
+ Identifies client by identity key and the storage identity key of their currently active storage.
|
|
2332
|
+
This must match the `AuthFetch` identity securing the remote conneciton.
|
|
2333
|
+
+ **args**
|
|
2334
|
+
+ `FindCertificatesArgs` determines which certificates to retrieve and whether to include fields.
|
|
2335
|
+
|
|
2336
|
+
###### Method findOrInsertSyncStateAuth
|
|
2337
|
+
|
|
2338
|
+
Used to both find and insert a `TableSyncState` record for the user to track wallet data replication across storage providers.
|
|
2339
|
+
|
|
2340
|
+
```ts
|
|
2341
|
+
async findOrInsertSyncStateAuth(auth: sdk.AuthId, storageIdentityKey: string, storageName: string): Promise<{
|
|
2342
|
+
syncState: TableSyncState;
|
|
2343
|
+
isNew: boolean;
|
|
2344
|
+
}>
|
|
2345
|
+
```
|
|
2346
|
+
See also: [AuthId](./client.md#interface-authid), [TableSyncState](./storage.md#interface-tablesyncstate)
|
|
2347
|
+
|
|
2348
|
+
Returns
|
|
2349
|
+
|
|
2350
|
+
`TableSyncState` and whether a new record was created.
|
|
2351
|
+
|
|
2352
|
+
Argument Details
|
|
2353
|
+
|
|
2354
|
+
+ **auth**
|
|
2355
|
+
+ Identifies client by identity key and the storage identity key of their currently active storage.
|
|
2356
|
+
This must match the `AuthFetch` identity securing the remote conneciton.
|
|
2357
|
+
+ **storageName**
|
|
2358
|
+
+ the name of the remote storage being sync'd
|
|
2359
|
+
+ **storageIdentityKey**
|
|
2360
|
+
+ the identity key of the remote storage being sync'd
|
|
2361
|
+
|
|
2362
|
+
###### Method findOrInsertUser
|
|
2363
|
+
|
|
2364
|
+
Used to both find and initialize a new user by identity key.
|
|
2365
|
+
It is up to the remote storage whether to allow creation of new users by this method.
|
|
2366
|
+
|
|
2367
|
+
```ts
|
|
2368
|
+
async findOrInsertUser(identityKey): Promise<{
|
|
2369
|
+
user: TableUser;
|
|
2370
|
+
isNew: boolean;
|
|
2371
|
+
}>
|
|
2372
|
+
```
|
|
2373
|
+
See also: [TableUser](./storage.md#interface-tableuser)
|
|
2374
|
+
|
|
2375
|
+
Returns
|
|
2376
|
+
|
|
2377
|
+
`TableUser` for the user and whether a new user was created.
|
|
2378
|
+
|
|
2379
|
+
Argument Details
|
|
2380
|
+
|
|
2381
|
+
+ **identityKey**
|
|
2382
|
+
+ of the user.
|
|
2383
|
+
|
|
2384
|
+
###### Method findOutputBasketsAuth
|
|
2385
|
+
|
|
2386
|
+
Find output baskets.
|
|
2387
|
+
|
|
2388
|
+
This retrieval method supports internal wallet operations.
|
|
2389
|
+
|
|
2390
|
+
```ts
|
|
2391
|
+
async findOutputBasketsAuth(auth: sdk.AuthId, args: sdk.FindOutputBasketsArgs): Promise<TableOutputBasket[]>
|
|
2392
|
+
```
|
|
2393
|
+
See also: [AuthId](./client.md#interface-authid), [FindOutputBasketsArgs](./client.md#interface-findoutputbasketsargs), [TableOutputBasket](./storage.md#interface-tableoutputbasket)
|
|
2394
|
+
|
|
2395
|
+
Returns
|
|
2396
|
+
|
|
2397
|
+
array of output baskets matching args.
|
|
2398
|
+
|
|
2399
|
+
Argument Details
|
|
2400
|
+
|
|
2401
|
+
+ **auth**
|
|
2402
|
+
+ Identifies client by identity key and the storage identity key of their currently active storage.
|
|
2403
|
+
This must match the `AuthFetch` identity securing the remote conneciton.
|
|
2404
|
+
+ **args**
|
|
2405
|
+
+ `FindOutputBasketsArgs` determines which baskets to retrieve.
|
|
2406
|
+
|
|
2407
|
+
###### Method findOutputsAuth
|
|
2408
|
+
|
|
2409
|
+
Find outputs.
|
|
2410
|
+
|
|
2411
|
+
This retrieval method supports internal wallet operations.
|
|
2412
|
+
|
|
2413
|
+
```ts
|
|
2414
|
+
async findOutputsAuth(auth: sdk.AuthId, args: sdk.FindOutputsArgs): Promise<TableOutput[]>
|
|
2415
|
+
```
|
|
2416
|
+
See also: [AuthId](./client.md#interface-authid), [FindOutputsArgs](./client.md#interface-findoutputsargs), [TableOutput](./storage.md#interface-tableoutput)
|
|
2417
|
+
|
|
2418
|
+
Returns
|
|
2419
|
+
|
|
2420
|
+
array of outputs matching args.
|
|
2421
|
+
|
|
2422
|
+
Argument Details
|
|
2423
|
+
|
|
2424
|
+
+ **auth**
|
|
2425
|
+
+ Identifies client by identity key and the storage identity key of their currently active storage.
|
|
2426
|
+
This must match the `AuthFetch` identity securing the remote conneciton.
|
|
2427
|
+
+ **args**
|
|
2428
|
+
+ `FindOutputsArgs` determines which outputs to retrieve.
|
|
2429
|
+
|
|
2430
|
+
###### Method findProvenTxReqs
|
|
2431
|
+
|
|
2432
|
+
Find requests for transaction proofs.
|
|
2433
|
+
|
|
2434
|
+
This retrieval method supports internal wallet operations.
|
|
2435
|
+
|
|
2436
|
+
```ts
|
|
2437
|
+
findProvenTxReqs(args: sdk.FindProvenTxReqsArgs): Promise<TableProvenTxReq[]>
|
|
2438
|
+
```
|
|
2439
|
+
See also: [FindProvenTxReqsArgs](./client.md#interface-findproventxreqsargs), [TableProvenTxReq](./storage.md#interface-tableproventxreq)
|
|
2440
|
+
|
|
2441
|
+
Returns
|
|
2442
|
+
|
|
2443
|
+
array of proof requests matching args.
|
|
2444
|
+
|
|
2445
|
+
Argument Details
|
|
2446
|
+
|
|
2447
|
+
+ **auth**
|
|
2448
|
+
+ Identifies client by identity key and the storage identity key of their currently active storage.
|
|
2449
|
+
This must match the `AuthFetch` identity securing the remote conneciton.
|
|
2450
|
+
+ **args**
|
|
2451
|
+
+ `FindProvenTxReqsArgs` determines which proof requests to retrieve.
|
|
2452
|
+
|
|
2453
|
+
###### Method getServices
|
|
2454
|
+
|
|
2455
|
+
Remote storage does not offer `Services` to remote clients.
|
|
2456
|
+
|
|
2457
|
+
```ts
|
|
2458
|
+
getServices(): sdk.WalletServices
|
|
2459
|
+
```
|
|
2460
|
+
See also: [WalletServices](./client.md#interface-walletservices)
|
|
2461
|
+
|
|
2462
|
+
Throws
|
|
2463
|
+
|
|
2464
|
+
WERR_INVALID_OPERATION
|
|
2465
|
+
|
|
2466
|
+
###### Method getSettings
|
|
2467
|
+
|
|
2468
|
+
```ts
|
|
2469
|
+
getSettings(): TableSettings
|
|
2470
|
+
```
|
|
2471
|
+
See also: [TableSettings](./storage.md#interface-tablesettings)
|
|
2472
|
+
|
|
2473
|
+
Returns
|
|
2474
|
+
|
|
2475
|
+
remote storage `TableSettings` if they have been retreived by `makeAvailable`.
|
|
2476
|
+
|
|
2477
|
+
Throws
|
|
2478
|
+
|
|
2479
|
+
WERR_INVALID_OPERATION if `makeAvailable` has not yet been called.
|
|
2480
|
+
|
|
2481
|
+
###### Method getSyncChunk
|
|
2482
|
+
|
|
2483
|
+
Request a "chunk" of replication data for a specific user and storage provider.
|
|
2484
|
+
|
|
2485
|
+
The normal data flow is for the active storage to push backups as a sequence of data chunks to backup storage providers.
|
|
2486
|
+
Also supports recovery where non-active storage can attempt to merge available data prior to becoming active.
|
|
2487
|
+
|
|
2488
|
+
```ts
|
|
2489
|
+
async getSyncChunk(args: sdk.RequestSyncChunkArgs): Promise<sdk.SyncChunk>
|
|
2490
|
+
```
|
|
2491
|
+
See also: [RequestSyncChunkArgs](./client.md#interface-requestsyncchunkargs), [SyncChunk](./client.md#interface-syncchunk)
|
|
2492
|
+
|
|
2493
|
+
Returns
|
|
2494
|
+
|
|
2495
|
+
the next "chunk" of replication data
|
|
2496
|
+
|
|
2497
|
+
Argument Details
|
|
2498
|
+
|
|
2499
|
+
+ **args**
|
|
2500
|
+
+ that identify the non-active storage which will receive replication data and constrains the replication process.
|
|
2501
|
+
|
|
2502
|
+
###### Method insertCertificateAuth
|
|
2503
|
+
|
|
2504
|
+
Inserts a new certificate with fields and keyring into remote storage.
|
|
2505
|
+
|
|
2506
|
+
```ts
|
|
2507
|
+
async insertCertificateAuth(auth: sdk.AuthId, certificate: TableCertificateX): Promise<number>
|
|
2508
|
+
```
|
|
2509
|
+
See also: [AuthId](./client.md#interface-authid), [TableCertificateX](./storage.md#interface-tablecertificatex)
|
|
2510
|
+
|
|
2511
|
+
Returns
|
|
2512
|
+
|
|
2513
|
+
record Id of the inserted `TableCertificate` record.
|
|
2514
|
+
|
|
2515
|
+
Argument Details
|
|
2516
|
+
|
|
2517
|
+
+ **auth**
|
|
2518
|
+
+ Identifies client by identity key and the storage identity key of their currently active storage.
|
|
2519
|
+
This must match the `AuthFetch` identity securing the remote conneciton.
|
|
2520
|
+
+ **certificate**
|
|
2521
|
+
+ the certificate to insert.
|
|
2522
|
+
|
|
2523
|
+
###### Method internalizeAction
|
|
2524
|
+
|
|
2525
|
+
Storage level processing for wallet `internalizeAction`.
|
|
2526
|
+
Updates internalized outputs in remote storage.
|
|
2527
|
+
Triggers proof validation of containing transaction.
|
|
2528
|
+
|
|
2529
|
+
```ts
|
|
2530
|
+
async internalizeAction(auth: sdk.AuthId, args: InternalizeActionArgs): Promise<InternalizeActionResult>
|
|
2531
|
+
```
|
|
2532
|
+
See also: [AuthId](./client.md#interface-authid)
|
|
2533
|
+
|
|
2534
|
+
Returns
|
|
2535
|
+
|
|
2536
|
+
`internalizeAction` results
|
|
2537
|
+
|
|
2538
|
+
Argument Details
|
|
2539
|
+
|
|
2540
|
+
+ **auth**
|
|
2541
|
+
+ Identifies client by identity key and the storage identity key of their currently active storage.
|
|
2542
|
+
This must match the `AuthFetch` identity securing the remote conneciton.
|
|
2543
|
+
+ **args**
|
|
2544
|
+
+ Original wallet `internalizeAction` arguments.
|
|
2545
|
+
|
|
2546
|
+
###### Method isAvailable
|
|
2547
|
+
|
|
2548
|
+
```ts
|
|
2549
|
+
isAvailable(): boolean
|
|
2550
|
+
```
|
|
2551
|
+
|
|
2552
|
+
Returns
|
|
2553
|
+
|
|
2554
|
+
true once storage `TableSettings` have been retreived from remote storage.
|
|
2555
|
+
|
|
2556
|
+
###### Method isStorageProvider
|
|
2557
|
+
|
|
2558
|
+
The `StorageClient` implements the `WalletStorageProvider` interface.
|
|
2559
|
+
It does not implement the lower level `StorageProvider` interface.
|
|
2560
|
+
|
|
2561
|
+
```ts
|
|
2562
|
+
isStorageProvider(): boolean
|
|
2563
|
+
```
|
|
2564
|
+
|
|
2565
|
+
Returns
|
|
2566
|
+
|
|
2567
|
+
false
|
|
2568
|
+
|
|
2569
|
+
###### Method listActions
|
|
2570
|
+
|
|
2571
|
+
Storage level processing for wallet `listActions`.
|
|
2572
|
+
|
|
2573
|
+
```ts
|
|
2574
|
+
async listActions(auth: sdk.AuthId, vargs: sdk.ValidListActionsArgs): Promise<ListActionsResult>
|
|
2575
|
+
```
|
|
2576
|
+
See also: [AuthId](./client.md#interface-authid), [ValidListActionsArgs](./client.md#interface-validlistactionsargs)
|
|
2577
|
+
|
|
2578
|
+
Returns
|
|
2579
|
+
|
|
2580
|
+
`listActions` results.
|
|
2581
|
+
|
|
2582
|
+
Argument Details
|
|
2583
|
+
|
|
2584
|
+
+ **auth**
|
|
2585
|
+
+ Identifies client by identity key and the storage identity key of their currently active storage.
|
|
2586
|
+
This must match the `AuthFetch` identity securing the remote conneciton.
|
|
2587
|
+
+ **args**
|
|
2588
|
+
+ Validated extension of original wallet `listActions` arguments.
|
|
2589
|
+
|
|
2590
|
+
###### Method listCertificates
|
|
2591
|
+
|
|
2592
|
+
Storage level processing for wallet `listCertificates`.
|
|
2593
|
+
|
|
2594
|
+
```ts
|
|
2595
|
+
async listCertificates(auth: sdk.AuthId, vargs: sdk.ValidListCertificatesArgs): Promise<ListCertificatesResult>
|
|
2596
|
+
```
|
|
2597
|
+
See also: [AuthId](./client.md#interface-authid), [ValidListCertificatesArgs](./client.md#interface-validlistcertificatesargs)
|
|
2598
|
+
|
|
2599
|
+
Returns
|
|
2600
|
+
|
|
2601
|
+
`listCertificates` results.
|
|
2602
|
+
|
|
2603
|
+
Argument Details
|
|
2604
|
+
|
|
2605
|
+
+ **auth**
|
|
2606
|
+
+ Identifies client by identity key and the storage identity key of their currently active storage.
|
|
2607
|
+
This must match the `AuthFetch` identity securing the remote conneciton.
|
|
2608
|
+
+ **args**
|
|
2609
|
+
+ Validated extension of original wallet `listCertificates` arguments.
|
|
2610
|
+
|
|
2611
|
+
###### Method listOutputs
|
|
2612
|
+
|
|
2613
|
+
Storage level processing for wallet `listOutputs`.
|
|
2614
|
+
|
|
2615
|
+
```ts
|
|
2616
|
+
async listOutputs(auth: sdk.AuthId, vargs: sdk.ValidListOutputsArgs): Promise<ListOutputsResult>
|
|
2617
|
+
```
|
|
2618
|
+
See also: [AuthId](./client.md#interface-authid), [ValidListOutputsArgs](./client.md#interface-validlistoutputsargs)
|
|
2619
|
+
|
|
2620
|
+
Returns
|
|
2621
|
+
|
|
2622
|
+
`listOutputs` results.
|
|
2623
|
+
|
|
2624
|
+
Argument Details
|
|
2625
|
+
|
|
2626
|
+
+ **auth**
|
|
2627
|
+
+ Identifies client by identity key and the storage identity key of their currently active storage.
|
|
2628
|
+
This must match the `AuthFetch` identity securing the remote conneciton.
|
|
2629
|
+
+ **args**
|
|
2630
|
+
+ Validated extension of original wallet `listOutputs` arguments.
|
|
2631
|
+
|
|
2632
|
+
###### Method makeAvailable
|
|
2633
|
+
|
|
2634
|
+
Must be called prior to making use of storage.
|
|
2635
|
+
Retreives `TableSettings` from remote storage provider.
|
|
2636
|
+
|
|
2637
|
+
```ts
|
|
2638
|
+
async makeAvailable(): Promise<TableSettings>
|
|
2639
|
+
```
|
|
2640
|
+
See also: [TableSettings](./storage.md#interface-tablesettings)
|
|
2641
|
+
|
|
2642
|
+
Returns
|
|
2643
|
+
|
|
2644
|
+
remote storage `TableSettings`
|
|
2645
|
+
|
|
2646
|
+
###### Method migrate
|
|
2647
|
+
|
|
2648
|
+
Requests schema migration to latest.
|
|
2649
|
+
Typically remote storage will ignore this request.
|
|
2650
|
+
|
|
2651
|
+
```ts
|
|
2652
|
+
async migrate(storageName: string, storageIdentityKey: string): Promise<string>
|
|
2653
|
+
```
|
|
2654
|
+
|
|
2655
|
+
Returns
|
|
2656
|
+
|
|
2657
|
+
current schema migration identifier
|
|
2658
|
+
|
|
2659
|
+
Argument Details
|
|
2660
|
+
|
|
2661
|
+
+ **storageName**
|
|
2662
|
+
+ Unique human readable name for remote storage if it does not yet exist.
|
|
2663
|
+
+ **storageIdentityKey**
|
|
2664
|
+
+ Unique identity key for remote storage if it does not yet exist.
|
|
2665
|
+
|
|
2666
|
+
###### Method processAction
|
|
2667
|
+
|
|
2668
|
+
Storage level processing for wallet `createAction` and `signAction`.
|
|
2669
|
+
|
|
2670
|
+
Handles remaining storage tasks once a fully signed transaction has been completed. This is common to both `createAction` and `signAction`.
|
|
2671
|
+
|
|
2672
|
+
```ts
|
|
2673
|
+
async processAction(auth: sdk.AuthId, args: sdk.StorageProcessActionArgs): Promise<sdk.StorageProcessActionResults>
|
|
2674
|
+
```
|
|
2675
|
+
See also: [AuthId](./client.md#interface-authid), [StorageProcessActionArgs](./client.md#interface-storageprocessactionargs), [StorageProcessActionResults](./client.md#interface-storageprocessactionresults)
|
|
2676
|
+
|
|
2677
|
+
Returns
|
|
2678
|
+
|
|
2679
|
+
`StorageProcessActionResults` supporting final wallet processing to yield `createAction` or `signAction` results.
|
|
2680
|
+
|
|
2681
|
+
Argument Details
|
|
2682
|
+
|
|
2683
|
+
+ **auth**
|
|
2684
|
+
+ Identifies client by identity key and the storage identity key of their currently active storage.
|
|
2685
|
+
This must match the `AuthFetch` identity securing the remote conneciton.
|
|
2686
|
+
+ **args**
|
|
2687
|
+
+ `StorageProcessActionArgs` convey completed signed transaction to storage.
|
|
2688
|
+
|
|
2689
|
+
###### Method processSyncChunk
|
|
2690
|
+
|
|
2691
|
+
Process a "chunk" of replication data for the user.
|
|
2692
|
+
|
|
2693
|
+
The normal data flow is for the active storage to push backups as a sequence of data chunks to backup storage providers.
|
|
2694
|
+
|
|
2695
|
+
```ts
|
|
2696
|
+
async processSyncChunk(args: sdk.RequestSyncChunkArgs, chunk: sdk.SyncChunk): Promise<sdk.ProcessSyncChunkResult>
|
|
2697
|
+
```
|
|
2698
|
+
See also: [ProcessSyncChunkResult](./client.md#interface-processsyncchunkresult), [RequestSyncChunkArgs](./client.md#interface-requestsyncchunkargs), [SyncChunk](./client.md#interface-syncchunk)
|
|
2699
|
+
|
|
2700
|
+
Returns
|
|
2701
|
+
|
|
2702
|
+
whether processing is done, counts of inserts and udpates, and related progress tracking properties.
|
|
2703
|
+
|
|
2704
|
+
Argument Details
|
|
2705
|
+
|
|
2706
|
+
+ **args**
|
|
2707
|
+
+ a copy of the replication request args that initiated the sequence of data chunks.
|
|
2708
|
+
+ **chunk**
|
|
2709
|
+
+ the current data chunk to process.
|
|
2710
|
+
|
|
2711
|
+
###### Method relinquishCertificate
|
|
2712
|
+
|
|
2713
|
+
Relinquish a certificate.
|
|
2714
|
+
|
|
2715
|
+
For storage supporting replication records must be kept of deletions. Therefore certificates are marked as deleted
|
|
2716
|
+
when relinquished, and no longer returned by `listCertificates`, but are still retained by storage.
|
|
2717
|
+
|
|
2718
|
+
```ts
|
|
2719
|
+
async relinquishCertificate(auth: sdk.AuthId, args: RelinquishCertificateArgs): Promise<number>
|
|
2720
|
+
```
|
|
2721
|
+
See also: [AuthId](./client.md#interface-authid)
|
|
2722
|
+
|
|
2723
|
+
Argument Details
|
|
2724
|
+
|
|
2725
|
+
+ **auth**
|
|
2726
|
+
+ Identifies client by identity key and the storage identity key of their currently active storage.
|
|
2727
|
+
This must match the `AuthFetch` identity securing the remote conneciton.
|
|
2728
|
+
+ **args**
|
|
2729
|
+
+ original wallet `relinquishCertificate` args.
|
|
2730
|
+
|
|
2731
|
+
###### Method relinquishOutput
|
|
2732
|
+
|
|
2733
|
+
Relinquish an output.
|
|
2734
|
+
|
|
2735
|
+
Relinquishing an output removes the output from whatever basket was tracking it.
|
|
2736
|
+
|
|
2737
|
+
```ts
|
|
2738
|
+
async relinquishOutput(auth: sdk.AuthId, args: RelinquishOutputArgs): Promise<number>
|
|
2739
|
+
```
|
|
2740
|
+
See also: [AuthId](./client.md#interface-authid)
|
|
2741
|
+
|
|
2742
|
+
Argument Details
|
|
2743
|
+
|
|
2744
|
+
+ **auth**
|
|
2745
|
+
+ Identifies client by identity key and the storage identity key of their currently active storage.
|
|
2746
|
+
This must match the `AuthFetch` identity securing the remote conneciton.
|
|
2747
|
+
+ **args**
|
|
2748
|
+
+ original wallet `relinquishOutput` args.
|
|
2749
|
+
|
|
2750
|
+
###### Method setActive
|
|
2751
|
+
|
|
2752
|
+
Ensures up-to-date wallet data replication to all configured backup storage providers,
|
|
2753
|
+
then promotes one of the configured backups to active,
|
|
2754
|
+
demoting the current active to new backup.
|
|
2755
|
+
|
|
2756
|
+
```ts
|
|
2757
|
+
async setActive(auth: sdk.AuthId, newActiveStorageIdentityKey: string): Promise<number>
|
|
2758
|
+
```
|
|
2759
|
+
See also: [AuthId](./client.md#interface-authid)
|
|
2760
|
+
|
|
2761
|
+
Argument Details
|
|
2762
|
+
|
|
2763
|
+
+ **auth**
|
|
2764
|
+
+ Identifies client by identity key and the storage identity key of their currently active storage.
|
|
2765
|
+
This must match the `AuthFetch` identity securing the remote conneciton.
|
|
2766
|
+
+ **newActiveStorageIdentityKey**
|
|
2767
|
+
+ which must be a currently configured backup storage provider.
|
|
2768
|
+
|
|
2769
|
+
###### Method setServices
|
|
2770
|
+
|
|
2771
|
+
Ignored. Remote storage cannot share `Services` with remote clients.
|
|
2772
|
+
|
|
2773
|
+
```ts
|
|
2774
|
+
setServices(v: sdk.WalletServices): void
|
|
2775
|
+
```
|
|
2776
|
+
See also: [WalletServices](./client.md#interface-walletservices)
|
|
2777
|
+
|
|
2778
|
+
###### Method updateProvenTxReqWithNewProvenTx
|
|
2779
|
+
|
|
2780
|
+
Handles the data received when a new transaction proof is found in response to an outstanding request for proof data:
|
|
2781
|
+
|
|
2782
|
+
- Creates a new `TableProvenTx` record.
|
|
2783
|
+
- Notifies all user transaction records of the new status.
|
|
2784
|
+
- Updates the proof request record to 'completed' status which enables delayed deletion.
|
|
2785
|
+
|
|
2786
|
+
```ts
|
|
2787
|
+
async updateProvenTxReqWithNewProvenTx(args: sdk.UpdateProvenTxReqWithNewProvenTxArgs): Promise<sdk.UpdateProvenTxReqWithNewProvenTxResult>
|
|
2788
|
+
```
|
|
2789
|
+
See also: [UpdateProvenTxReqWithNewProvenTxArgs](./client.md#interface-updateproventxreqwithnewproventxargs), [UpdateProvenTxReqWithNewProvenTxResult](./client.md#interface-updateproventxreqwithnewproventxresult)
|
|
2790
|
+
|
|
2791
|
+
Returns
|
|
2792
|
+
|
|
2793
|
+
results of updates
|
|
2794
|
+
|
|
2795
|
+
Argument Details
|
|
2796
|
+
|
|
2797
|
+
+ **args**
|
|
2798
|
+
+ proof request and new transaction proof data
|
|
2248
2799
|
|
|
2249
2800
|
Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
|
|
2250
2801
|
|
|
@@ -2316,11 +2867,11 @@ export class StorageKnex extends StorageProvider implements sdk.WalletStoragePro
|
|
|
2316
2867
|
findTxLabelsQuery(args: sdk.FindTxLabelsArgs): Knex.QueryBuilder
|
|
2317
2868
|
findUsersQuery(args: sdk.FindUsersArgs): Knex.QueryBuilder
|
|
2318
2869
|
findMonitorEventsQuery(args: sdk.FindMonitorEventsArgs): Knex.QueryBuilder
|
|
2319
|
-
override async findCertificatesAuth(auth: sdk.AuthId, args: sdk.FindCertificatesArgs): Promise<
|
|
2870
|
+
override async findCertificatesAuth(auth: sdk.AuthId, args: sdk.FindCertificatesArgs): Promise<TableCertificateX[]>
|
|
2320
2871
|
override async findOutputBasketsAuth(auth: sdk.AuthId, args: sdk.FindOutputBasketsArgs): Promise<TableOutputBasket[]>
|
|
2321
2872
|
override async findOutputsAuth(auth: sdk.AuthId, args: sdk.FindOutputsArgs): Promise<TableOutput[]>
|
|
2322
2873
|
override async findCertificateFields(args: sdk.FindCertificateFieldsArgs): Promise<TableCertificateField[]>
|
|
2323
|
-
override async findCertificates(args: sdk.FindCertificatesArgs): Promise<
|
|
2874
|
+
override async findCertificates(args: sdk.FindCertificatesArgs): Promise<TableCertificateX[]>
|
|
2324
2875
|
override async findCommissions(args: sdk.FindCommissionsArgs): Promise<TableCommission[]>
|
|
2325
2876
|
override async findOutputBaskets(args: sdk.FindOutputBasketsArgs): Promise<TableOutputBasket[]>
|
|
2326
2877
|
override async findOutputs(args: sdk.FindOutputsArgs): Promise<TableOutput[]>
|
|
@@ -2578,7 +3129,7 @@ export abstract class StorageProvider extends StorageReaderWriter implements sdk
|
|
|
2578
3129
|
abstract listActions(auth: sdk.AuthId, args: sdk.ValidListActionsArgs): Promise<ListActionsResult>;
|
|
2579
3130
|
abstract listOutputs(auth: sdk.AuthId, args: sdk.ValidListOutputsArgs): Promise<ListOutputsResult>;
|
|
2580
3131
|
abstract countChangeInputs(userId: number, basketId: number, excludeSending: boolean): Promise<number>;
|
|
2581
|
-
abstract findCertificatesAuth(auth: sdk.AuthId, args: sdk.FindCertificatesArgs): Promise<
|
|
3132
|
+
abstract findCertificatesAuth(auth: sdk.AuthId, args: sdk.FindCertificatesArgs): Promise<TableCertificateX[]>;
|
|
2582
3133
|
abstract findOutputBasketsAuth(auth: sdk.AuthId, args: sdk.FindOutputBasketsArgs): Promise<TableOutputBasket[]>;
|
|
2583
3134
|
abstract findOutputsAuth(auth: sdk.AuthId, args: sdk.FindOutputsArgs): Promise<TableOutput[]>;
|
|
2584
3135
|
abstract insertCertificateAuth(auth: sdk.AuthId, certificate: TableCertificateX): Promise<number>;
|
|
@@ -2612,7 +3163,7 @@ export abstract class StorageProvider extends StorageReaderWriter implements sdk
|
|
|
2612
3163
|
}
|
|
2613
3164
|
```
|
|
2614
3165
|
|
|
2615
|
-
See also: [AuthId](./client.md#interface-authid), [Chain](./client.md#type-chain), [EntityProvenTxReq](./storage.md#class-entityproventxreq), [FindCertificatesArgs](./client.md#interface-findcertificatesargs), [FindOutputBasketsArgs](./client.md#interface-findoutputbasketsargs), [FindOutputsArgs](./client.md#interface-findoutputsargs), [GetReqsAndBeefResult](./storage.md#interface-getreqsandbeefresult), [PostReqsToNetworkResult](./storage.md#interface-postreqstonetworkresult), [ProcessSyncChunkResult](./client.md#interface-processsyncchunkresult), [ProvenOrRawTx](./client.md#interface-provenorrawtx), [PurgeParams](./client.md#interface-purgeparams), [PurgeResults](./client.md#interface-purgeresults), [RequestSyncChunkArgs](./client.md#interface-requestsyncchunkargs), [StorageCreateActionResult](./client.md#interface-storagecreateactionresult), [StorageFeeModel](./client.md#interface-storagefeemodel), [StorageGetBeefOptions](./client.md#interface-storagegetbeefoptions), [StorageProcessActionArgs](./client.md#interface-storageprocessactionargs), [StorageProcessActionResults](./client.md#interface-storageprocessactionresults), [StorageProvenOrReq](./client.md#interface-storageprovenorreq), [StorageProviderOptions](./storage.md#interface-storageprovideroptions), [StorageReaderWriter](./storage.md#class-storagereaderwriter), [SyncChunk](./client.md#interface-syncchunk), [
|
|
3166
|
+
See also: [AuthId](./client.md#interface-authid), [Chain](./client.md#type-chain), [EntityProvenTxReq](./storage.md#class-entityproventxreq), [FindCertificatesArgs](./client.md#interface-findcertificatesargs), [FindOutputBasketsArgs](./client.md#interface-findoutputbasketsargs), [FindOutputsArgs](./client.md#interface-findoutputsargs), [GetReqsAndBeefResult](./storage.md#interface-getreqsandbeefresult), [PostReqsToNetworkResult](./storage.md#interface-postreqstonetworkresult), [ProcessSyncChunkResult](./client.md#interface-processsyncchunkresult), [ProvenOrRawTx](./client.md#interface-provenorrawtx), [PurgeParams](./client.md#interface-purgeparams), [PurgeResults](./client.md#interface-purgeresults), [RequestSyncChunkArgs](./client.md#interface-requestsyncchunkargs), [StorageCreateActionResult](./client.md#interface-storagecreateactionresult), [StorageFeeModel](./client.md#interface-storagefeemodel), [StorageGetBeefOptions](./client.md#interface-storagegetbeefoptions), [StorageProcessActionArgs](./client.md#interface-storageprocessactionargs), [StorageProcessActionResults](./client.md#interface-storageprocessactionresults), [StorageProvenOrReq](./client.md#interface-storageprovenorreq), [StorageProviderOptions](./storage.md#interface-storageprovideroptions), [StorageReaderWriter](./storage.md#class-storagereaderwriter), [SyncChunk](./client.md#interface-syncchunk), [TableCertificateX](./storage.md#interface-tablecertificatex), [TableMonitorEvent](./storage.md#interface-tablemonitorevent), [TableOutput](./storage.md#interface-tableoutput), [TableOutputBasket](./storage.md#interface-tableoutputbasket), [TableOutputTag](./storage.md#interface-tableoutputtag), [TableProvenTxReq](./storage.md#interface-tableproventxreq), [TableProvenTxReqDynamics](./storage.md#interface-tableproventxreqdynamics), [TableTransaction](./storage.md#interface-tabletransaction), [TableTxLabel](./storage.md#interface-tabletxlabel), [TransactionStatus](./client.md#type-transactionstatus), [TrxToken](./client.md#interface-trxtoken), [UpdateProvenTxReqWithNewProvenTxArgs](./client.md#interface-updateproventxreqwithnewproventxargs), [UpdateProvenTxReqWithNewProvenTxResult](./client.md#interface-updateproventxreqwithnewproventxresult), [ValidCreateActionArgs](./client.md#interface-validcreateactionargs), [ValidListActionsArgs](./client.md#interface-validlistactionsargs), [ValidListCertificatesArgs](./client.md#interface-validlistcertificatesargs), [ValidListOutputsArgs](./client.md#interface-validlistoutputsargs), [WalletServices](./client.md#interface-walletservices), [WalletStorageProvider](./client.md#interface-walletstorageprovider), [attemptToPostReqsToNetwork](./storage.md#function-attempttopostreqstonetwork), [createAction](./storage.md#function-createaction), [getBeefForTransaction](./storage.md#function-getbeeffortransaction), [internalizeAction](./storage.md#function-internalizeaction), [listActions](./storage.md#function-listactions), [listCertificates](./storage.md#function-listcertificates), [listOutputs](./storage.md#function-listoutputs), [processAction](./storage.md#function-processaction), [purgeData](./storage.md#function-purgedata), [reviewStatus](./storage.md#function-reviewstatus)
|
|
2616
3167
|
|
|
2617
3168
|
###### Method confirmSpendableOutputs
|
|
2618
3169
|
|
|
@@ -2718,7 +3269,7 @@ export abstract class StorageReader implements sdk.StorageSyncReader {
|
|
|
2718
3269
|
abstract transaction<T>(scope: (trx: sdk.TrxToken) => Promise<T>, trx?: sdk.TrxToken): Promise<T>;
|
|
2719
3270
|
abstract readSettings(trx?: sdk.TrxToken): Promise<TableSettings>;
|
|
2720
3271
|
abstract findCertificateFields(args: sdk.FindCertificateFieldsArgs): Promise<TableCertificateField[]>;
|
|
2721
|
-
abstract findCertificates(args: sdk.FindCertificatesArgs): Promise<
|
|
3272
|
+
abstract findCertificates(args: sdk.FindCertificatesArgs): Promise<TableCertificateX[]>;
|
|
2722
3273
|
abstract findCommissions(args: sdk.FindCommissionsArgs): Promise<TableCommission[]>;
|
|
2723
3274
|
abstract findMonitorEvents(args: sdk.FindMonitorEventsArgs): Promise<TableMonitorEvent[]>;
|
|
2724
3275
|
abstract findOutputBaskets(args: sdk.FindOutputBasketsArgs): Promise<TableOutputBasket[]>;
|
|
@@ -2753,7 +3304,7 @@ export abstract class StorageReader implements sdk.StorageSyncReader {
|
|
|
2753
3304
|
}
|
|
2754
3305
|
```
|
|
2755
3306
|
|
|
2756
|
-
See also: [Chain](./client.md#type-chain), [DBType](./storage.md#type-dbtype), [FindCertificateFieldsArgs](./client.md#interface-findcertificatefieldsargs), [FindCertificatesArgs](./client.md#interface-findcertificatesargs), [FindCommissionsArgs](./client.md#interface-findcommissionsargs), [FindForUserSincePagedArgs](./client.md#interface-findforusersincepagedargs), [FindMonitorEventsArgs](./client.md#interface-findmonitoreventsargs), [FindOutputBasketsArgs](./client.md#interface-findoutputbasketsargs), [FindOutputTagsArgs](./client.md#interface-findoutputtagsargs), [FindOutputsArgs](./client.md#interface-findoutputsargs), [FindSyncStatesArgs](./client.md#interface-findsyncstatesargs), [FindTransactionsArgs](./client.md#interface-findtransactionsargs), [FindTxLabelsArgs](./client.md#interface-findtxlabelsargs), [FindUsersArgs](./client.md#interface-findusersargs), [RequestSyncChunkArgs](./client.md#interface-requestsyncchunkargs), [StorageReaderOptions](./storage.md#interface-storagereaderoptions), [StorageSyncReader](./storage.md#class-storagesyncreader), [SyncChunk](./client.md#interface-syncchunk), [
|
|
3307
|
+
See also: [Chain](./client.md#type-chain), [DBType](./storage.md#type-dbtype), [FindCertificateFieldsArgs](./client.md#interface-findcertificatefieldsargs), [FindCertificatesArgs](./client.md#interface-findcertificatesargs), [FindCommissionsArgs](./client.md#interface-findcommissionsargs), [FindForUserSincePagedArgs](./client.md#interface-findforusersincepagedargs), [FindMonitorEventsArgs](./client.md#interface-findmonitoreventsargs), [FindOutputBasketsArgs](./client.md#interface-findoutputbasketsargs), [FindOutputTagsArgs](./client.md#interface-findoutputtagsargs), [FindOutputsArgs](./client.md#interface-findoutputsargs), [FindSyncStatesArgs](./client.md#interface-findsyncstatesargs), [FindTransactionsArgs](./client.md#interface-findtransactionsargs), [FindTxLabelsArgs](./client.md#interface-findtxlabelsargs), [FindUsersArgs](./client.md#interface-findusersargs), [RequestSyncChunkArgs](./client.md#interface-requestsyncchunkargs), [StorageReaderOptions](./storage.md#interface-storagereaderoptions), [StorageSyncReader](./storage.md#class-storagesyncreader), [SyncChunk](./client.md#interface-syncchunk), [TableCertificateField](./storage.md#interface-tablecertificatefield), [TableCertificateX](./storage.md#interface-tablecertificatex), [TableCommission](./storage.md#interface-tablecommission), [TableMonitorEvent](./storage.md#interface-tablemonitorevent), [TableOutput](./storage.md#interface-tableoutput), [TableOutputBasket](./storage.md#interface-tableoutputbasket), [TableOutputTag](./storage.md#interface-tableoutputtag), [TableOutputTagMap](./storage.md#interface-tableoutputtagmap), [TableProvenTx](./storage.md#interface-tableproventx), [TableProvenTxReq](./storage.md#interface-tableproventxreq), [TableSettings](./storage.md#interface-tablesettings), [TableSyncState](./storage.md#interface-tablesyncstate), [TableTransaction](./storage.md#interface-tabletransaction), [TableTxLabel](./storage.md#interface-tabletxlabel), [TableTxLabelMap](./storage.md#interface-tabletxlabelmap), [TableUser](./storage.md#interface-tableuser), [TrxToken](./client.md#interface-trxtoken), [getSyncChunk](./storage.md#function-getsyncchunk)
|
|
2757
3308
|
|
|
2758
3309
|
###### Method validateEntityDate
|
|
2759
3310
|
|
|
@@ -2901,7 +3452,7 @@ export class StorageSyncReader implements sdk.StorageSyncReader {
|
|
|
2901
3452
|
async findUserByIdentityKey(key: string): Promise<TableUser | undefined>
|
|
2902
3453
|
async findSyncStates(args: sdk.FindSyncStatesArgs): Promise<TableSyncState[]>
|
|
2903
3454
|
async findCertificateFields(args: sdk.FindCertificateFieldsArgs): Promise<TableCertificateField[]>
|
|
2904
|
-
async findCertificates(args: sdk.FindCertificatesArgs): Promise<
|
|
3455
|
+
async findCertificates(args: sdk.FindCertificatesArgs): Promise<TableCertificateX[]>
|
|
2905
3456
|
async findCommissions(args: sdk.FindCommissionsArgs): Promise<TableCommission[]>
|
|
2906
3457
|
async findOutputBaskets(args: sdk.FindOutputBasketsArgs): Promise<TableOutputBasket[]>
|
|
2907
3458
|
async findOutputs(args: sdk.FindOutputsArgs): Promise<TableOutput[]>
|
|
@@ -2915,7 +3466,7 @@ export class StorageSyncReader implements sdk.StorageSyncReader {
|
|
|
2915
3466
|
}
|
|
2916
3467
|
```
|
|
2917
3468
|
|
|
2918
|
-
See also: [AuthId](./client.md#interface-authid), [FindCertificateFieldsArgs](./client.md#interface-findcertificatefieldsargs), [FindCertificatesArgs](./client.md#interface-findcertificatesargs), [FindCommissionsArgs](./client.md#interface-findcommissionsargs), [FindForUserSincePagedArgs](./client.md#interface-findforusersincepagedargs), [FindOutputBasketsArgs](./client.md#interface-findoutputbasketsargs), [FindOutputTagsArgs](./client.md#interface-findoutputtagsargs), [FindOutputsArgs](./client.md#interface-findoutputsargs), [FindSyncStatesArgs](./client.md#interface-findsyncstatesargs), [FindTransactionsArgs](./client.md#interface-findtransactionsargs), [FindTxLabelsArgs](./client.md#interface-findtxlabelsargs), [RequestSyncChunkArgs](./client.md#interface-requestsyncchunkargs), [StorageReader](./storage.md#class-storagereader), [SyncChunk](./client.md#interface-syncchunk), [
|
|
3469
|
+
See also: [AuthId](./client.md#interface-authid), [FindCertificateFieldsArgs](./client.md#interface-findcertificatefieldsargs), [FindCertificatesArgs](./client.md#interface-findcertificatesargs), [FindCommissionsArgs](./client.md#interface-findcommissionsargs), [FindForUserSincePagedArgs](./client.md#interface-findforusersincepagedargs), [FindOutputBasketsArgs](./client.md#interface-findoutputbasketsargs), [FindOutputTagsArgs](./client.md#interface-findoutputtagsargs), [FindOutputsArgs](./client.md#interface-findoutputsargs), [FindSyncStatesArgs](./client.md#interface-findsyncstatesargs), [FindTransactionsArgs](./client.md#interface-findtransactionsargs), [FindTxLabelsArgs](./client.md#interface-findtxlabelsargs), [RequestSyncChunkArgs](./client.md#interface-requestsyncchunkargs), [StorageReader](./storage.md#class-storagereader), [SyncChunk](./client.md#interface-syncchunk), [TableCertificateField](./storage.md#interface-tablecertificatefield), [TableCertificateX](./storage.md#interface-tablecertificatex), [TableCommission](./storage.md#interface-tablecommission), [TableOutput](./storage.md#interface-tableoutput), [TableOutputBasket](./storage.md#interface-tableoutputbasket), [TableOutputTag](./storage.md#interface-tableoutputtag), [TableOutputTagMap](./storage.md#interface-tableoutputtagmap), [TableProvenTx](./storage.md#interface-tableproventx), [TableProvenTxReq](./storage.md#interface-tableproventxreq), [TableSettings](./storage.md#interface-tablesettings), [TableSyncState](./storage.md#interface-tablesyncstate), [TableTransaction](./storage.md#interface-tabletransaction), [TableTxLabel](./storage.md#interface-tabletxlabel), [TableTxLabelMap](./storage.md#interface-tabletxlabelmap), [TableUser](./storage.md#interface-tableuser), [getSyncChunk](./storage.md#function-getsyncchunk)
|
|
2919
3470
|
|
|
2920
3471
|
Links: [API](#api), [Interfaces](#interfaces), [Classes](#classes), [Functions](#functions), [Types](#types), [Variables](#variables)
|
|
2921
3472
|
|
|
@@ -2983,7 +3534,7 @@ export class WalletStorageManager implements sdk.WalletStorage {
|
|
|
2983
3534
|
async listActions(vargs: sdk.ValidListActionsArgs): Promise<ListActionsResult>
|
|
2984
3535
|
async listCertificates(args: sdk.ValidListCertificatesArgs): Promise<ListCertificatesResult>
|
|
2985
3536
|
async listOutputs(vargs: sdk.ValidListOutputsArgs): Promise<ListOutputsResult>
|
|
2986
|
-
async findCertificates(args: sdk.FindCertificatesArgs): Promise<
|
|
3537
|
+
async findCertificates(args: sdk.FindCertificatesArgs): Promise<TableCertificateX[]>
|
|
2987
3538
|
async findOutputBaskets(args: sdk.FindOutputBasketsArgs): Promise<TableOutputBasket[]>
|
|
2988
3539
|
async findOutputs(args: sdk.FindOutputsArgs): Promise<TableOutput[]>
|
|
2989
3540
|
async findProvenTxReqs(args: sdk.FindProvenTxReqsArgs): Promise<TableProvenTxReq[]>
|
|
@@ -2997,7 +3548,7 @@ export class WalletStorageManager implements sdk.WalletStorage {
|
|
|
2997
3548
|
}
|
|
2998
3549
|
```
|
|
2999
3550
|
|
|
3000
|
-
See also: [AuthId](./client.md#interface-authid), [FindCertificatesArgs](./client.md#interface-findcertificatesargs), [FindOutputBasketsArgs](./client.md#interface-findoutputbasketsargs), [FindOutputsArgs](./client.md#interface-findoutputsargs), [FindProvenTxReqsArgs](./client.md#interface-findproventxreqsargs), [StorageCreateActionResult](./client.md#interface-storagecreateactionresult), [StorageProcessActionArgs](./client.md#interface-storageprocessactionargs), [StorageProcessActionResults](./client.md#interface-storageprocessactionresults), [StorageProvider](./storage.md#class-storageprovider), [StorageSyncReader](./storage.md#class-storagesyncreader), [TableCertificate](./storage.md#interface-tablecertificate), [TableOutput](./storage.md#interface-tableoutput), [TableOutputBasket](./storage.md#interface-tableoutputbasket), [TableProvenTxReq](./storage.md#interface-tableproventxreq), [TableSettings](./storage.md#interface-tablesettings), [TableUser](./storage.md#interface-tableuser), [ValidCreateActionArgs](./client.md#interface-validcreateactionargs), [ValidListActionsArgs](./client.md#interface-validlistactionsargs), [ValidListCertificatesArgs](./client.md#interface-validlistcertificatesargs), [ValidListOutputsArgs](./client.md#interface-validlistoutputsargs), [WalletServices](./client.md#interface-walletservices), [WalletStorage](./client.md#interface-walletstorage), [WalletStorageProvider](./client.md#interface-walletstorageprovider), [WalletStorageReader](./client.md#interface-walletstoragereader), [WalletStorageSync](./client.md#interface-walletstoragesync), [WalletStorageWriter](./client.md#interface-walletstoragewriter), [createAction](./storage.md#function-createaction), [internalizeAction](./storage.md#function-internalizeaction), [listActions](./storage.md#function-listactions), [listCertificates](./storage.md#function-listcertificates), [listOutputs](./storage.md#function-listoutputs), [processAction](./storage.md#function-processaction)
|
|
3551
|
+
See also: [AuthId](./client.md#interface-authid), [FindCertificatesArgs](./client.md#interface-findcertificatesargs), [FindOutputBasketsArgs](./client.md#interface-findoutputbasketsargs), [FindOutputsArgs](./client.md#interface-findoutputsargs), [FindProvenTxReqsArgs](./client.md#interface-findproventxreqsargs), [StorageCreateActionResult](./client.md#interface-storagecreateactionresult), [StorageProcessActionArgs](./client.md#interface-storageprocessactionargs), [StorageProcessActionResults](./client.md#interface-storageprocessactionresults), [StorageProvider](./storage.md#class-storageprovider), [StorageSyncReader](./storage.md#class-storagesyncreader), [TableCertificate](./storage.md#interface-tablecertificate), [TableCertificateX](./storage.md#interface-tablecertificatex), [TableOutput](./storage.md#interface-tableoutput), [TableOutputBasket](./storage.md#interface-tableoutputbasket), [TableProvenTxReq](./storage.md#interface-tableproventxreq), [TableSettings](./storage.md#interface-tablesettings), [TableUser](./storage.md#interface-tableuser), [ValidCreateActionArgs](./client.md#interface-validcreateactionargs), [ValidListActionsArgs](./client.md#interface-validlistactionsargs), [ValidListCertificatesArgs](./client.md#interface-validlistcertificatesargs), [ValidListOutputsArgs](./client.md#interface-validlistoutputsargs), [WalletServices](./client.md#interface-walletservices), [WalletStorage](./client.md#interface-walletstorage), [WalletStorageProvider](./client.md#interface-walletstorageprovider), [WalletStorageReader](./client.md#interface-walletstoragereader), [WalletStorageSync](./client.md#interface-walletstoragesync), [WalletStorageWriter](./client.md#interface-walletstoragewriter), [createAction](./storage.md#function-createaction), [internalizeAction](./storage.md#function-internalizeaction), [listActions](./storage.md#function-listactions), [listCertificates](./storage.md#function-listcertificates), [listOutputs](./storage.md#function-listoutputs), [processAction](./storage.md#function-processaction)
|
|
3001
3552
|
|
|
3002
3553
|
###### Property _isSingleWriter
|
|
3003
3554
|
|