@xyo-network/xl1-cli-lib 1.15.2 → 1.15.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +364 -236
- package/dist/node/commands/bridge/index.d.ts +2 -0
- package/dist/node/commands/bridge/index.d.ts.map +1 -0
- package/dist/node/commands/bridge/runBridge.d.ts +9 -0
- package/dist/node/commands/bridge/runBridge.d.ts.map +1 -0
- package/dist/node/commands/index.d.ts +1 -0
- package/dist/node/commands/index.d.ts.map +1 -1
- package/dist/node/index.mjs +58 -101
- package/dist/node/index.mjs.map +1 -1
- package/dist/node/orchestration/archivists/lib/localPersistentArchivist.d.ts +1 -1
- package/dist/node/orchestration/archivists/lib/localPersistentArchivist.d.ts.map +1 -1
- package/dist/node/orchestration/initServices.d.ts +1 -1
- package/dist/node/orchestration/initServices.d.ts.map +1 -1
- package/dist/node/orchestration/map/BalanceSummary/initBalanceSummaryMap.d.ts +2 -4
- package/dist/node/orchestration/map/BalanceSummary/initBalanceSummaryMap.d.ts.map +1 -1
- package/dist/node/orchestration/map/BalanceSummary/initLocalBalanceSummaryMap.d.ts +2 -4
- package/dist/node/orchestration/map/BalanceSummary/initLocalBalanceSummaryMap.d.ts.map +1 -1
- package/dist/node/orchestration/map/BalanceSummary/initLocalTransferSummaryMap.d.ts +2 -4
- package/dist/node/orchestration/map/BalanceSummary/initLocalTransferSummaryMap.d.ts.map +1 -1
- package/dist/node/orchestration/map/BalanceSummary/initTransferSummaryMap.d.ts +2 -4
- package/dist/node/orchestration/map/BalanceSummary/initTransferSummaryMap.d.ts.map +1 -1
- package/dist/node/orchestration/map/index.d.ts +0 -1
- package/dist/node/orchestration/map/index.d.ts.map +1 -1
- package/dist/node/orchestration/services/implementation/balance.d.ts.map +1 -1
- package/dist/node/orchestration/services/implementation/head/createForkedHead/config/getBridgeSourceDetails.d.ts +2 -2
- package/dist/node/orchestration/services/implementation/head/createForkedHead/config/getBridgeSourceDetails.d.ts.map +1 -1
- package/dist/node/orchestration/services/implementation/head/head.d.ts.map +1 -1
- package/dist/node/orchestration/services/implementation/index.d.ts +1 -0
- package/dist/node/orchestration/services/implementation/index.d.ts.map +1 -1
- package/dist/node/orchestration/services/implementation/iterator.d.ts.map +1 -1
- package/dist/node/orchestration/services/implementation/producer.d.ts.map +1 -1
- package/dist/node/orchestration/services/implementation/transfer.d.ts.map +1 -1
- package/dist/node/orchestration/services/implementation/validator.d.ts.map +1 -1
- package/dist/node/runCLI.d.ts.map +1 -1
- package/dist/node/xl1.mjs +57 -101
- package/dist/node/xl1.mjs.map +1 -1
- package/package.json +36 -32
- package/src/commands/bridge/index.ts +1 -0
- package/src/commands/bridge/runBridge.ts +12 -0
- package/src/commands/index.ts +1 -0
- package/src/orchestration/archivists/lib/localPersistentArchivist.ts +1 -3
- package/src/orchestration/initServices.ts +22 -7
- package/src/orchestration/map/BalanceSummary/initBalanceSummaryMap.ts +3 -5
- package/src/orchestration/map/BalanceSummary/initLocalBalanceSummaryMap.ts +5 -7
- package/src/orchestration/map/BalanceSummary/initLocalTransferSummaryMap.ts +5 -7
- package/src/orchestration/map/BalanceSummary/initTransferSummaryMap.ts +3 -5
- package/src/orchestration/map/index.ts +0 -1
- package/src/orchestration/services/implementation/balance.ts +5 -5
- package/src/orchestration/services/implementation/head/head.ts +28 -28
- package/src/orchestration/services/implementation/index.ts +1 -0
- package/src/orchestration/services/implementation/iterator.ts +10 -10
- package/src/orchestration/services/implementation/producer.ts +5 -5
- package/src/orchestration/services/implementation/transfer.ts +5 -5
- package/src/orchestration/services/implementation/validator.ts +5 -5
- package/src/runCLI.ts +10 -1
- package/dist/node/orchestration/map/driver/index.d.ts +0 -2
- package/dist/node/orchestration/map/driver/index.d.ts.map +0 -1
- package/dist/node/orchestration/map/driver/lmdb/Params.d.ts +0 -7
- package/dist/node/orchestration/map/driver/lmdb/Params.d.ts.map +0 -1
- package/dist/node/orchestration/map/driver/lmdb/SynchronousLmdbMap.d.ts +0 -32
- package/dist/node/orchestration/map/driver/lmdb/SynchronousLmdbMap.d.ts.map +0 -1
- package/dist/node/orchestration/map/driver/lmdb/index.d.ts +0 -2
- package/dist/node/orchestration/map/driver/lmdb/index.d.ts.map +0 -1
- package/dist/node/orchestration/map/driver/lmdb/spec/SynchronousLmdbMap.spec.d.ts +0 -2
- package/dist/node/orchestration/map/driver/lmdb/spec/SynchronousLmdbMap.spec.d.ts.map +0 -1
- package/dist/node/orchestration/map/localPersistentMap.d.ts +0 -13
- package/dist/node/orchestration/map/localPersistentMap.d.ts.map +0 -1
- package/dist/node/orchestration/store/StoreKind.d.ts +0 -2
- package/dist/node/orchestration/store/StoreKind.d.ts.map +0 -1
- package/dist/node/orchestration/store/getStoreDirectory.d.ts +0 -10
- package/dist/node/orchestration/store/getStoreDirectory.d.ts.map +0 -1
- package/dist/node/orchestration/store/index.d.ts +0 -3
- package/dist/node/orchestration/store/index.d.ts.map +0 -1
- package/src/orchestration/map/driver/index.ts +0 -1
- package/src/orchestration/map/driver/lmdb/Params.ts +0 -7
- package/src/orchestration/map/driver/lmdb/SynchronousLmdbMap.ts +0 -66
- package/src/orchestration/map/driver/lmdb/index.ts +0 -1
- package/src/orchestration/map/driver/lmdb/spec/SynchronousLmdbMap.spec.ts +0 -97
- package/src/orchestration/map/localPersistentMap.ts +0 -52
- package/src/orchestration/store/StoreKind.ts +0 -1
- package/src/orchestration/store/getStoreDirectory.ts +0 -14
- package/src/orchestration/store/index.ts +0 -2
package/README.md
CHANGED
|
@@ -57,6 +57,7 @@ XYO Layer One CLI Library
|
|
|
57
57
|
- [initPendingTransactions](#variables/initPendingTransactions)
|
|
58
58
|
- [initBlockProducer](#variables/initBlockProducer)
|
|
59
59
|
- [initBlockRewardService](#variables/initBlockRewardService)
|
|
60
|
+
- [initTimeService](#variables/initTimeService)
|
|
60
61
|
- [initValidator](#variables/initValidator)
|
|
61
62
|
|
|
62
63
|
## Functions
|
|
@@ -133,10 +134,18 @@ Base<TParams>.constructor
|
|
|
133
134
|
|
|
134
135
|
## Properties
|
|
135
136
|
|
|
136
|
-
### \
|
|
137
|
+
### \_intervals
|
|
137
138
|
|
|
138
139
|
```ts
|
|
139
|
-
protected readonly
|
|
140
|
+
protected readonly _intervals: Map<string, Timeout>;
|
|
141
|
+
```
|
|
142
|
+
|
|
143
|
+
***
|
|
144
|
+
|
|
145
|
+
### \_timeouts
|
|
146
|
+
|
|
147
|
+
```ts
|
|
148
|
+
protected readonly _timeouts: Map<string, Timeout>;
|
|
140
149
|
```
|
|
141
150
|
|
|
142
151
|
## Accessors
|
|
@@ -217,7 +226,7 @@ The timer runs until the actor is deactivated (or you manually stop it).
|
|
|
217
226
|
|
|
218
227
|
#### callback
|
|
219
228
|
|
|
220
|
-
() => `
|
|
229
|
+
() => `Promise`\<`void`\>
|
|
221
230
|
|
|
222
231
|
#### dueTimeMs
|
|
223
232
|
|
|
@@ -366,15 +375,27 @@ protected _updateMutex: Mutex;
|
|
|
366
375
|
|
|
367
376
|
***
|
|
368
377
|
|
|
369
|
-
### \
|
|
378
|
+
### \_intervals
|
|
379
|
+
|
|
380
|
+
```ts
|
|
381
|
+
protected readonly _intervals: Map<string, Timeout>;
|
|
382
|
+
```
|
|
383
|
+
|
|
384
|
+
### Inherited from
|
|
385
|
+
|
|
386
|
+
[`Actor`](#Actor).[`_intervals`](Actor.md#_intervals)
|
|
387
|
+
|
|
388
|
+
***
|
|
389
|
+
|
|
390
|
+
### \_timeouts
|
|
370
391
|
|
|
371
392
|
```ts
|
|
372
|
-
protected readonly
|
|
393
|
+
protected readonly _timeouts: Map<string, Timeout>;
|
|
373
394
|
```
|
|
374
395
|
|
|
375
396
|
### Inherited from
|
|
376
397
|
|
|
377
|
-
[`Actor`](#Actor).[`
|
|
398
|
+
[`Actor`](#Actor).[`_timeouts`](Actor.md#_timeouts)
|
|
378
399
|
|
|
379
400
|
## Accessors
|
|
380
401
|
|
|
@@ -397,12 +418,12 @@ get protected balanceService(): AccountBalanceServiceV2;
|
|
|
397
418
|
### Get Signature
|
|
398
419
|
|
|
399
420
|
```ts
|
|
400
|
-
get protected chainIterator():
|
|
421
|
+
get protected chainIterator(): EventingChainBlockNumberIteratorService;
|
|
401
422
|
```
|
|
402
423
|
|
|
403
424
|
#### Returns
|
|
404
425
|
|
|
405
|
-
`
|
|
426
|
+
`EventingChainBlockNumberIteratorService`
|
|
406
427
|
|
|
407
428
|
***
|
|
408
429
|
|
|
@@ -546,7 +567,7 @@ The timer runs until the actor is deactivated (or you manually stop it).
|
|
|
546
567
|
|
|
547
568
|
#### callback
|
|
548
569
|
|
|
549
|
-
() => `
|
|
570
|
+
() => `Promise`\<`void`\>
|
|
550
571
|
|
|
551
572
|
#### dueTimeMs
|
|
552
573
|
|
|
@@ -681,15 +702,27 @@ protected new ChainHeadUpdateActor(params): ChainHeadUpdateActor;
|
|
|
681
702
|
|
|
682
703
|
## Properties
|
|
683
704
|
|
|
684
|
-
### \
|
|
705
|
+
### \_intervals
|
|
706
|
+
|
|
707
|
+
```ts
|
|
708
|
+
protected readonly _intervals: Map<string, Timeout>;
|
|
709
|
+
```
|
|
710
|
+
|
|
711
|
+
### Inherited from
|
|
712
|
+
|
|
713
|
+
[`Actor`](#Actor).[`_intervals`](Actor.md#_intervals)
|
|
714
|
+
|
|
715
|
+
***
|
|
716
|
+
|
|
717
|
+
### \_timeouts
|
|
685
718
|
|
|
686
719
|
```ts
|
|
687
|
-
protected readonly
|
|
720
|
+
protected readonly _timeouts: Map<string, Timeout>;
|
|
688
721
|
```
|
|
689
722
|
|
|
690
723
|
### Inherited from
|
|
691
724
|
|
|
692
|
-
[`Actor`](#Actor).[`
|
|
725
|
+
[`Actor`](#Actor).[`_timeouts`](Actor.md#_timeouts)
|
|
693
726
|
|
|
694
727
|
## Accessors
|
|
695
728
|
|
|
@@ -712,12 +745,12 @@ get protected chainFinalizedArchivist(): ArchivistInstance<ArchivistParams<AnyCo
|
|
|
712
745
|
### Get Signature
|
|
713
746
|
|
|
714
747
|
```ts
|
|
715
|
-
get protected chainIterator():
|
|
748
|
+
get protected chainIterator(): EventingChainBlockNumberIteratorService;
|
|
716
749
|
```
|
|
717
750
|
|
|
718
751
|
#### Returns
|
|
719
752
|
|
|
720
|
-
`
|
|
753
|
+
`EventingChainBlockNumberIteratorService`
|
|
721
754
|
|
|
722
755
|
***
|
|
723
756
|
|
|
@@ -849,7 +882,7 @@ The timer runs until the actor is deactivated (or you manually stop it).
|
|
|
849
882
|
|
|
850
883
|
#### callback
|
|
851
884
|
|
|
852
|
-
() => `
|
|
885
|
+
() => `Promise`\<`void`\>
|
|
853
886
|
|
|
854
887
|
#### dueTimeMs
|
|
855
888
|
|
|
@@ -1013,7 +1046,7 @@ report(
|
|
|
1013
1046
|
|
|
1014
1047
|
#### name
|
|
1015
1048
|
|
|
1016
|
-
`
|
|
1049
|
+
`CreatableName`
|
|
1017
1050
|
|
|
1018
1051
|
#### status
|
|
1019
1052
|
|
|
@@ -1200,15 +1233,27 @@ protected _lastRedeclarationIntent: undefined | ChainStakeIntent;
|
|
|
1200
1233
|
|
|
1201
1234
|
***
|
|
1202
1235
|
|
|
1203
|
-
### \
|
|
1236
|
+
### \_intervals
|
|
1237
|
+
|
|
1238
|
+
```ts
|
|
1239
|
+
protected readonly _intervals: Map<string, Timeout>;
|
|
1240
|
+
```
|
|
1241
|
+
|
|
1242
|
+
### Inherited from
|
|
1243
|
+
|
|
1244
|
+
[`Actor`](#Actor).[`_intervals`](Actor.md#_intervals)
|
|
1245
|
+
|
|
1246
|
+
***
|
|
1247
|
+
|
|
1248
|
+
### \_timeouts
|
|
1204
1249
|
|
|
1205
1250
|
```ts
|
|
1206
|
-
protected readonly
|
|
1251
|
+
protected readonly _timeouts: Map<string, Timeout>;
|
|
1207
1252
|
```
|
|
1208
1253
|
|
|
1209
1254
|
### Inherited from
|
|
1210
1255
|
|
|
1211
|
-
[`Actor`](#Actor).[`
|
|
1256
|
+
[`Actor`](#Actor).[`_timeouts`](Actor.md#_timeouts)
|
|
1212
1257
|
|
|
1213
1258
|
## Accessors
|
|
1214
1259
|
|
|
@@ -1245,12 +1290,12 @@ get protected balanceService(): AccountBalanceServiceV2;
|
|
|
1245
1290
|
### Get Signature
|
|
1246
1291
|
|
|
1247
1292
|
```ts
|
|
1248
|
-
get protected chainIterator():
|
|
1293
|
+
get protected chainIterator(): EventingChainBlockNumberIteratorService;
|
|
1249
1294
|
```
|
|
1250
1295
|
|
|
1251
1296
|
#### Returns
|
|
1252
1297
|
|
|
1253
|
-
`
|
|
1298
|
+
`EventingChainBlockNumberIteratorService`
|
|
1254
1299
|
|
|
1255
1300
|
***
|
|
1256
1301
|
|
|
@@ -1273,12 +1318,16 @@ get protected chainStakeViewer(): ChainStakeViewer;
|
|
|
1273
1318
|
### Get Signature
|
|
1274
1319
|
|
|
1275
1320
|
```ts
|
|
1276
|
-
get protected chainSubmissionsArchivistWrite(): WriteArchivist<Payload, Payload, Payload, Lowercase<string
|
|
1321
|
+
get protected chainSubmissionsArchivistWrite(): WriteArchivist<Payload, Payload, Payload, Brand<Brand<Lowercase<string>, {
|
|
1322
|
+
}>, {
|
|
1323
|
+
}>>;
|
|
1277
1324
|
```
|
|
1278
1325
|
|
|
1279
1326
|
#### Returns
|
|
1280
1327
|
|
|
1281
|
-
`WriteArchivist`\<`Payload`, `Payload`, `Payload`, `Lowercase`\<`string
|
|
1328
|
+
`WriteArchivist`\<`Payload`, `Payload`, `Payload`, `Brand`\<`Brand`\<`Lowercase`\<`string`\>, \{
|
|
1329
|
+
\}\>, \{
|
|
1330
|
+
\}\>\>
|
|
1282
1331
|
|
|
1283
1332
|
***
|
|
1284
1333
|
|
|
@@ -1516,7 +1565,7 @@ The timer runs until the actor is deactivated (or you manually stop it).
|
|
|
1516
1565
|
|
|
1517
1566
|
#### callback
|
|
1518
1567
|
|
|
1519
|
-
() => `
|
|
1568
|
+
() => `Promise`\<`void`\>
|
|
1520
1569
|
|
|
1521
1570
|
#### dueTimeMs
|
|
1522
1571
|
|
|
@@ -1697,7 +1746,7 @@ getStatus(name): undefined | CreatableStatus;
|
|
|
1697
1746
|
|
|
1698
1747
|
#### name
|
|
1699
1748
|
|
|
1700
|
-
`
|
|
1749
|
+
`CreatableName`
|
|
1701
1750
|
|
|
1702
1751
|
### Returns
|
|
1703
1752
|
|
|
@@ -1780,7 +1829,7 @@ report(
|
|
|
1780
1829
|
|
|
1781
1830
|
#### name
|
|
1782
1831
|
|
|
1783
|
-
`
|
|
1832
|
+
`CreatableName`
|
|
1784
1833
|
|
|
1785
1834
|
#### status
|
|
1786
1835
|
|
|
@@ -1843,20 +1892,36 @@ protected _lastValidatedBlock: undefined | BlockBoundWitness;
|
|
|
1843
1892
|
### \_lastValidatedBlockHash
|
|
1844
1893
|
|
|
1845
1894
|
```ts
|
|
1846
|
-
protected _lastValidatedBlockHash:
|
|
1895
|
+
protected _lastValidatedBlockHash:
|
|
1896
|
+
| undefined
|
|
1897
|
+
| Brand<Brand<Lowercase<string>, {
|
|
1898
|
+
}>, {
|
|
1899
|
+
}>;
|
|
1900
|
+
```
|
|
1901
|
+
|
|
1902
|
+
***
|
|
1903
|
+
|
|
1904
|
+
### \_intervals
|
|
1905
|
+
|
|
1906
|
+
```ts
|
|
1907
|
+
protected readonly _intervals: Map<string, Timeout>;
|
|
1847
1908
|
```
|
|
1848
1909
|
|
|
1910
|
+
### Inherited from
|
|
1911
|
+
|
|
1912
|
+
[`Actor`](#Actor).[`_intervals`](Actor.md#_intervals)
|
|
1913
|
+
|
|
1849
1914
|
***
|
|
1850
1915
|
|
|
1851
|
-
### \
|
|
1916
|
+
### \_timeouts
|
|
1852
1917
|
|
|
1853
1918
|
```ts
|
|
1854
|
-
protected readonly
|
|
1919
|
+
protected readonly _timeouts: Map<string, Timeout>;
|
|
1855
1920
|
```
|
|
1856
1921
|
|
|
1857
1922
|
### Inherited from
|
|
1858
1923
|
|
|
1859
|
-
[`Actor`](#Actor).[`
|
|
1924
|
+
[`Actor`](#Actor).[`_timeouts`](Actor.md#_timeouts)
|
|
1860
1925
|
|
|
1861
1926
|
## Accessors
|
|
1862
1927
|
|
|
@@ -1893,12 +1958,12 @@ get protected balanceService(): AccountBalanceServiceV2;
|
|
|
1893
1958
|
### Get Signature
|
|
1894
1959
|
|
|
1895
1960
|
```ts
|
|
1896
|
-
get protected chainIterator():
|
|
1961
|
+
get protected chainIterator(): EventingChainBlockNumberIteratorService;
|
|
1897
1962
|
```
|
|
1898
1963
|
|
|
1899
1964
|
#### Returns
|
|
1900
1965
|
|
|
1901
|
-
`
|
|
1966
|
+
`EventingChainBlockNumberIteratorService`
|
|
1902
1967
|
|
|
1903
1968
|
***
|
|
1904
1969
|
|
|
@@ -1921,12 +1986,16 @@ get protected chainStakeViewer(): ChainStakeViewer;
|
|
|
1921
1986
|
### Get Signature
|
|
1922
1987
|
|
|
1923
1988
|
```ts
|
|
1924
|
-
get protected chainSubmissionsArchivistWrite(): WriteArchivist<Payload, Payload, Payload, Lowercase<string
|
|
1989
|
+
get protected chainSubmissionsArchivistWrite(): WriteArchivist<Payload, Payload, Payload, Brand<Brand<Lowercase<string>, {
|
|
1990
|
+
}>, {
|
|
1991
|
+
}>>;
|
|
1925
1992
|
```
|
|
1926
1993
|
|
|
1927
1994
|
#### Returns
|
|
1928
1995
|
|
|
1929
|
-
`WriteArchivist`\<`Payload`, `Payload`, `Payload`, `Lowercase`\<`string
|
|
1996
|
+
`WriteArchivist`\<`Payload`, `Payload`, `Payload`, `Brand`\<`Brand`\<`Lowercase`\<`string`\>, \{
|
|
1997
|
+
\}\>, \{
|
|
1998
|
+
\}\>\>
|
|
1930
1999
|
|
|
1931
2000
|
***
|
|
1932
2001
|
|
|
@@ -2122,7 +2191,7 @@ The timer runs until the actor is deactivated (or you manually stop it).
|
|
|
2122
2191
|
|
|
2123
2192
|
#### callback
|
|
2124
2193
|
|
|
2125
|
-
() => `
|
|
2194
|
+
() => `Promise`\<`void`\>
|
|
2126
2195
|
|
|
2127
2196
|
#### dueTimeMs
|
|
2128
2197
|
|
|
@@ -2242,29 +2311,17 @@ function canUseEvmProvider(__namedParameters): boolean;
|
|
|
2242
2311
|
### config
|
|
2243
2312
|
|
|
2244
2313
|
\{
|
|
2245
|
-
`chain`: \{
|
|
2246
|
-
`id?`: `string`;
|
|
2247
|
-
\};
|
|
2248
|
-
`logLevel`: `"error"` \| `"warn"` \| `"info"` \| `"log"` \| `"debug"` \| `"trace"`;
|
|
2249
|
-
`storage`: \{
|
|
2250
|
-
`root?`: `string`;
|
|
2251
|
-
`mongo?`: \{
|
|
2252
|
-
`connectionString?`: `string`;
|
|
2253
|
-
`database?`: `string`;
|
|
2254
|
-
`domain?`: `string`;
|
|
2255
|
-
`password?`: `string`;
|
|
2256
|
-
`username?`: `string`;
|
|
2257
|
-
\};
|
|
2258
|
-
\};
|
|
2259
|
-
`silent`: `boolean`;
|
|
2260
2314
|
`api`: \{
|
|
2261
2315
|
`host`: `string`;
|
|
2262
|
-
`port`: `number`;
|
|
2263
2316
|
`mnemonic?`: `string`;
|
|
2317
|
+
`port`: `number`;
|
|
2264
2318
|
\};
|
|
2265
2319
|
`app`: \{
|
|
2266
2320
|
`port`: `number`;
|
|
2267
2321
|
\};
|
|
2322
|
+
`chain`: \{
|
|
2323
|
+
`id?`: `string`;
|
|
2324
|
+
\};
|
|
2268
2325
|
`evm`: \{
|
|
2269
2326
|
`chainId?`: `string`;
|
|
2270
2327
|
`infura?`: \{
|
|
@@ -2276,114 +2333,77 @@ function canUseEvmProvider(__namedParameters): boolean;
|
|
|
2276
2333
|
\};
|
|
2277
2334
|
\};
|
|
2278
2335
|
`producer`: \{
|
|
2279
|
-
`
|
|
2336
|
+
`allowlist?`: `Brand`\<`Brand`\<`Lowercase`\<`string`\>, \{
|
|
2337
|
+
`__hex`: `true`;
|
|
2338
|
+
\}\>, \{
|
|
2339
|
+
`__address`: `true`;
|
|
2340
|
+
\}\>[];
|
|
2341
|
+
`disableIntentRedeclaration?`: `boolean`;
|
|
2342
|
+
`healthCheckPort?`: `number`;
|
|
2343
|
+
`heartbeatInterval`: `number`;
|
|
2280
2344
|
`minStake`: `number`;
|
|
2281
2345
|
`mnemonic?`: `string`;
|
|
2282
|
-
`
|
|
2283
|
-
`disableIntentRedeclaration?`: `boolean`;
|
|
2346
|
+
`port`: `number`;
|
|
2284
2347
|
`rewardAddress?`: `string`;
|
|
2285
2348
|
\};
|
|
2349
|
+
`storage`: \{
|
|
2350
|
+
`mongo?`: \{
|
|
2351
|
+
`connectionString?`: `string`;
|
|
2352
|
+
`database?`: `string`;
|
|
2353
|
+
`domain?`: `string`;
|
|
2354
|
+
`password?`: `string`;
|
|
2355
|
+
`username?`: `string`;
|
|
2356
|
+
\};
|
|
2357
|
+
`root?`: `string`;
|
|
2358
|
+
\};
|
|
2286
2359
|
`telemetry`: \{
|
|
2287
2360
|
`otel?`: \{
|
|
2288
2361
|
`otlpEndpoint?`: `string`;
|
|
2289
2362
|
\};
|
|
2290
2363
|
\};
|
|
2364
|
+
`logLevel`: `"error"` \| `"warn"` \| `"info"` \| `"log"` \| `"debug"` \| `"trace"`;
|
|
2365
|
+
`silent`: `boolean`;
|
|
2291
2366
|
\}
|
|
2292
2367
|
|
|
2293
|
-
### config.
|
|
2294
|
-
|
|
2295
|
-
\{
|
|
2296
|
-
`id?`: `string`;
|
|
2297
|
-
\}
|
|
2298
|
-
|
|
2299
|
-
### config.chain.id?
|
|
2300
|
-
|
|
2301
|
-
`string`
|
|
2302
|
-
|
|
2303
|
-
### config.logLevel
|
|
2304
|
-
|
|
2305
|
-
`"error"` \| `"warn"` \| `"info"` \| `"log"` \| `"debug"` \| `"trace"`
|
|
2306
|
-
|
|
2307
|
-
### config.storage
|
|
2308
|
-
|
|
2309
|
-
\{
|
|
2310
|
-
`root?`: `string`;
|
|
2311
|
-
`mongo?`: \{
|
|
2312
|
-
`connectionString?`: `string`;
|
|
2313
|
-
`database?`: `string`;
|
|
2314
|
-
`domain?`: `string`;
|
|
2315
|
-
`password?`: `string`;
|
|
2316
|
-
`username?`: `string`;
|
|
2317
|
-
\};
|
|
2318
|
-
\}
|
|
2319
|
-
|
|
2320
|
-
### config.storage.root?
|
|
2321
|
-
|
|
2322
|
-
`string`
|
|
2323
|
-
|
|
2324
|
-
### config.storage.mongo?
|
|
2368
|
+
### config.api
|
|
2325
2369
|
|
|
2326
2370
|
\{
|
|
2327
|
-
`
|
|
2328
|
-
`
|
|
2329
|
-
`
|
|
2330
|
-
`password?`: `string`;
|
|
2331
|
-
`username?`: `string`;
|
|
2371
|
+
`host`: `string`;
|
|
2372
|
+
`mnemonic?`: `string`;
|
|
2373
|
+
`port`: `number`;
|
|
2332
2374
|
\}
|
|
2333
2375
|
|
|
2334
|
-
### config.
|
|
2335
|
-
|
|
2336
|
-
`string`
|
|
2337
|
-
|
|
2338
|
-
### config.storage.mongo.database?
|
|
2339
|
-
|
|
2340
|
-
`string`
|
|
2341
|
-
|
|
2342
|
-
### config.storage.mongo.domain?
|
|
2343
|
-
|
|
2344
|
-
`string`
|
|
2345
|
-
|
|
2346
|
-
### config.storage.mongo.password?
|
|
2376
|
+
### config.api.host
|
|
2347
2377
|
|
|
2348
2378
|
`string`
|
|
2349
2379
|
|
|
2350
|
-
### config.
|
|
2380
|
+
### config.api.mnemonic?
|
|
2351
2381
|
|
|
2352
2382
|
`string`
|
|
2353
2383
|
|
|
2354
|
-
### config.
|
|
2384
|
+
### config.api.port
|
|
2355
2385
|
|
|
2356
|
-
`
|
|
2386
|
+
`number`
|
|
2357
2387
|
|
|
2358
|
-
### config.
|
|
2388
|
+
### config.app
|
|
2359
2389
|
|
|
2360
2390
|
\{
|
|
2361
|
-
`host`: `string`;
|
|
2362
2391
|
`port`: `number`;
|
|
2363
|
-
`mnemonic?`: `string`;
|
|
2364
2392
|
\}
|
|
2365
2393
|
|
|
2366
|
-
### config.
|
|
2367
|
-
|
|
2368
|
-
`string`
|
|
2369
|
-
|
|
2370
|
-
### config.api.port
|
|
2394
|
+
### config.app.port
|
|
2371
2395
|
|
|
2372
2396
|
`number`
|
|
2373
2397
|
|
|
2374
|
-
### config.
|
|
2375
|
-
|
|
2376
|
-
`string`
|
|
2377
|
-
|
|
2378
|
-
### config.app
|
|
2398
|
+
### config.chain
|
|
2379
2399
|
|
|
2380
2400
|
\{
|
|
2381
|
-
`
|
|
2401
|
+
`id?`: `string`;
|
|
2382
2402
|
\}
|
|
2383
2403
|
|
|
2384
|
-
### config.
|
|
2404
|
+
### config.chain.id?
|
|
2385
2405
|
|
|
2386
|
-
`
|
|
2406
|
+
`string`
|
|
2387
2407
|
|
|
2388
2408
|
### config.evm
|
|
2389
2409
|
|
|
@@ -2430,15 +2450,37 @@ function canUseEvmProvider(__namedParameters): boolean;
|
|
|
2430
2450
|
### config.producer
|
|
2431
2451
|
|
|
2432
2452
|
\{
|
|
2433
|
-
`
|
|
2453
|
+
`allowlist?`: `Brand`\<`Brand`\<`Lowercase`\<`string`\>, \{
|
|
2454
|
+
`__hex`: `true`;
|
|
2455
|
+
\}\>, \{
|
|
2456
|
+
`__address`: `true`;
|
|
2457
|
+
\}\>[];
|
|
2458
|
+
`disableIntentRedeclaration?`: `boolean`;
|
|
2459
|
+
`healthCheckPort?`: `number`;
|
|
2460
|
+
`heartbeatInterval`: `number`;
|
|
2434
2461
|
`minStake`: `number`;
|
|
2435
2462
|
`mnemonic?`: `string`;
|
|
2436
|
-
`
|
|
2437
|
-
`disableIntentRedeclaration?`: `boolean`;
|
|
2463
|
+
`port`: `number`;
|
|
2438
2464
|
`rewardAddress?`: `string`;
|
|
2439
2465
|
\}
|
|
2440
2466
|
|
|
2441
|
-
### config.producer.
|
|
2467
|
+
### config.producer.allowlist?
|
|
2468
|
+
|
|
2469
|
+
`Brand`\<`Brand`\<`Lowercase`\<`string`\>, \{
|
|
2470
|
+
`__hex`: `true`;
|
|
2471
|
+
\}\>, \{
|
|
2472
|
+
`__address`: `true`;
|
|
2473
|
+
\}\>[]
|
|
2474
|
+
|
|
2475
|
+
### config.producer.disableIntentRedeclaration?
|
|
2476
|
+
|
|
2477
|
+
`boolean`
|
|
2478
|
+
|
|
2479
|
+
### config.producer.healthCheckPort?
|
|
2480
|
+
|
|
2481
|
+
`number`
|
|
2482
|
+
|
|
2483
|
+
### config.producer.heartbeatInterval
|
|
2442
2484
|
|
|
2443
2485
|
`number`
|
|
2444
2486
|
|
|
@@ -2450,15 +2492,58 @@ function canUseEvmProvider(__namedParameters): boolean;
|
|
|
2450
2492
|
|
|
2451
2493
|
`string`
|
|
2452
2494
|
|
|
2453
|
-
### config.producer.
|
|
2495
|
+
### config.producer.port
|
|
2454
2496
|
|
|
2455
2497
|
`number`
|
|
2456
2498
|
|
|
2457
|
-
### config.producer.
|
|
2499
|
+
### config.producer.rewardAddress?
|
|
2458
2500
|
|
|
2459
|
-
`
|
|
2501
|
+
`string`
|
|
2460
2502
|
|
|
2461
|
-
### config.
|
|
2503
|
+
### config.storage
|
|
2504
|
+
|
|
2505
|
+
\{
|
|
2506
|
+
`mongo?`: \{
|
|
2507
|
+
`connectionString?`: `string`;
|
|
2508
|
+
`database?`: `string`;
|
|
2509
|
+
`domain?`: `string`;
|
|
2510
|
+
`password?`: `string`;
|
|
2511
|
+
`username?`: `string`;
|
|
2512
|
+
\};
|
|
2513
|
+
`root?`: `string`;
|
|
2514
|
+
\}
|
|
2515
|
+
|
|
2516
|
+
### config.storage.mongo?
|
|
2517
|
+
|
|
2518
|
+
\{
|
|
2519
|
+
`connectionString?`: `string`;
|
|
2520
|
+
`database?`: `string`;
|
|
2521
|
+
`domain?`: `string`;
|
|
2522
|
+
`password?`: `string`;
|
|
2523
|
+
`username?`: `string`;
|
|
2524
|
+
\}
|
|
2525
|
+
|
|
2526
|
+
### config.storage.mongo.connectionString?
|
|
2527
|
+
|
|
2528
|
+
`string`
|
|
2529
|
+
|
|
2530
|
+
### config.storage.mongo.database?
|
|
2531
|
+
|
|
2532
|
+
`string`
|
|
2533
|
+
|
|
2534
|
+
### config.storage.mongo.domain?
|
|
2535
|
+
|
|
2536
|
+
`string`
|
|
2537
|
+
|
|
2538
|
+
### config.storage.mongo.password?
|
|
2539
|
+
|
|
2540
|
+
`string`
|
|
2541
|
+
|
|
2542
|
+
### config.storage.mongo.username?
|
|
2543
|
+
|
|
2544
|
+
`string`
|
|
2545
|
+
|
|
2546
|
+
### config.storage.root?
|
|
2462
2547
|
|
|
2463
2548
|
`string`
|
|
2464
2549
|
|
|
@@ -2480,6 +2565,14 @@ function canUseEvmProvider(__namedParameters): boolean;
|
|
|
2480
2565
|
|
|
2481
2566
|
`string`
|
|
2482
2567
|
|
|
2568
|
+
### config.logLevel
|
|
2569
|
+
|
|
2570
|
+
`"error"` \| `"warn"` \| `"info"` \| `"log"` \| `"debug"` \| `"trace"`
|
|
2571
|
+
|
|
2572
|
+
### config.silent
|
|
2573
|
+
|
|
2574
|
+
`boolean`
|
|
2575
|
+
|
|
2483
2576
|
## Returns
|
|
2484
2577
|
|
|
2485
2578
|
`boolean`
|
|
@@ -2491,7 +2584,7 @@ function canUseEvmProvider(__namedParameters): boolean;
|
|
|
2491
2584
|
***
|
|
2492
2585
|
|
|
2493
2586
|
```ts
|
|
2494
|
-
function initEvmProvider(__namedParameters): Promise<
|
|
2587
|
+
function initEvmProvider(__namedParameters): Promise<Provider>;
|
|
2495
2588
|
```
|
|
2496
2589
|
|
|
2497
2590
|
## Parameters
|
|
@@ -2501,29 +2594,17 @@ function initEvmProvider(__namedParameters): Promise<JsonRpcProvider>;
|
|
|
2501
2594
|
### config
|
|
2502
2595
|
|
|
2503
2596
|
\{
|
|
2504
|
-
`chain`: \{
|
|
2505
|
-
`id?`: `string`;
|
|
2506
|
-
\};
|
|
2507
|
-
`logLevel`: `"error"` \| `"warn"` \| `"info"` \| `"log"` \| `"debug"` \| `"trace"`;
|
|
2508
|
-
`storage`: \{
|
|
2509
|
-
`root?`: `string`;
|
|
2510
|
-
`mongo?`: \{
|
|
2511
|
-
`connectionString?`: `string`;
|
|
2512
|
-
`database?`: `string`;
|
|
2513
|
-
`domain?`: `string`;
|
|
2514
|
-
`password?`: `string`;
|
|
2515
|
-
`username?`: `string`;
|
|
2516
|
-
\};
|
|
2517
|
-
\};
|
|
2518
|
-
`silent`: `boolean`;
|
|
2519
2597
|
`api`: \{
|
|
2520
2598
|
`host`: `string`;
|
|
2521
|
-
`port`: `number`;
|
|
2522
2599
|
`mnemonic?`: `string`;
|
|
2600
|
+
`port`: `number`;
|
|
2523
2601
|
\};
|
|
2524
2602
|
`app`: \{
|
|
2525
2603
|
`port`: `number`;
|
|
2526
2604
|
\};
|
|
2605
|
+
`chain`: \{
|
|
2606
|
+
`id?`: `string`;
|
|
2607
|
+
\};
|
|
2527
2608
|
`evm`: \{
|
|
2528
2609
|
`chainId?`: `string`;
|
|
2529
2610
|
`infura?`: \{
|
|
@@ -2535,114 +2616,77 @@ function initEvmProvider(__namedParameters): Promise<JsonRpcProvider>;
|
|
|
2535
2616
|
\};
|
|
2536
2617
|
\};
|
|
2537
2618
|
`producer`: \{
|
|
2538
|
-
`
|
|
2619
|
+
`allowlist?`: `Brand`\<`Brand`\<`Lowercase`\<`string`\>, \{
|
|
2620
|
+
`__hex`: `true`;
|
|
2621
|
+
\}\>, \{
|
|
2622
|
+
`__address`: `true`;
|
|
2623
|
+
\}\>[];
|
|
2624
|
+
`disableIntentRedeclaration?`: `boolean`;
|
|
2625
|
+
`healthCheckPort?`: `number`;
|
|
2626
|
+
`heartbeatInterval`: `number`;
|
|
2539
2627
|
`minStake`: `number`;
|
|
2540
2628
|
`mnemonic?`: `string`;
|
|
2541
|
-
`
|
|
2542
|
-
`disableIntentRedeclaration?`: `boolean`;
|
|
2629
|
+
`port`: `number`;
|
|
2543
2630
|
`rewardAddress?`: `string`;
|
|
2544
2631
|
\};
|
|
2632
|
+
`storage`: \{
|
|
2633
|
+
`mongo?`: \{
|
|
2634
|
+
`connectionString?`: `string`;
|
|
2635
|
+
`database?`: `string`;
|
|
2636
|
+
`domain?`: `string`;
|
|
2637
|
+
`password?`: `string`;
|
|
2638
|
+
`username?`: `string`;
|
|
2639
|
+
\};
|
|
2640
|
+
`root?`: `string`;
|
|
2641
|
+
\};
|
|
2545
2642
|
`telemetry`: \{
|
|
2546
2643
|
`otel?`: \{
|
|
2547
2644
|
`otlpEndpoint?`: `string`;
|
|
2548
2645
|
\};
|
|
2549
2646
|
\};
|
|
2647
|
+
`logLevel`: `"error"` \| `"warn"` \| `"info"` \| `"log"` \| `"debug"` \| `"trace"`;
|
|
2648
|
+
`silent`: `boolean`;
|
|
2550
2649
|
\}
|
|
2551
2650
|
|
|
2552
|
-
### config.
|
|
2553
|
-
|
|
2554
|
-
\{
|
|
2555
|
-
`id?`: `string`;
|
|
2556
|
-
\}
|
|
2557
|
-
|
|
2558
|
-
### config.chain.id?
|
|
2559
|
-
|
|
2560
|
-
`string`
|
|
2561
|
-
|
|
2562
|
-
### config.logLevel
|
|
2563
|
-
|
|
2564
|
-
`"error"` \| `"warn"` \| `"info"` \| `"log"` \| `"debug"` \| `"trace"`
|
|
2565
|
-
|
|
2566
|
-
### config.storage
|
|
2567
|
-
|
|
2568
|
-
\{
|
|
2569
|
-
`root?`: `string`;
|
|
2570
|
-
`mongo?`: \{
|
|
2571
|
-
`connectionString?`: `string`;
|
|
2572
|
-
`database?`: `string`;
|
|
2573
|
-
`domain?`: `string`;
|
|
2574
|
-
`password?`: `string`;
|
|
2575
|
-
`username?`: `string`;
|
|
2576
|
-
\};
|
|
2577
|
-
\}
|
|
2578
|
-
|
|
2579
|
-
### config.storage.root?
|
|
2580
|
-
|
|
2581
|
-
`string`
|
|
2582
|
-
|
|
2583
|
-
### config.storage.mongo?
|
|
2651
|
+
### config.api
|
|
2584
2652
|
|
|
2585
2653
|
\{
|
|
2586
|
-
`
|
|
2587
|
-
`
|
|
2588
|
-
`
|
|
2589
|
-
`password?`: `string`;
|
|
2590
|
-
`username?`: `string`;
|
|
2654
|
+
`host`: `string`;
|
|
2655
|
+
`mnemonic?`: `string`;
|
|
2656
|
+
`port`: `number`;
|
|
2591
2657
|
\}
|
|
2592
2658
|
|
|
2593
|
-
### config.
|
|
2594
|
-
|
|
2595
|
-
`string`
|
|
2596
|
-
|
|
2597
|
-
### config.storage.mongo.database?
|
|
2598
|
-
|
|
2599
|
-
`string`
|
|
2600
|
-
|
|
2601
|
-
### config.storage.mongo.domain?
|
|
2602
|
-
|
|
2603
|
-
`string`
|
|
2604
|
-
|
|
2605
|
-
### config.storage.mongo.password?
|
|
2659
|
+
### config.api.host
|
|
2606
2660
|
|
|
2607
2661
|
`string`
|
|
2608
2662
|
|
|
2609
|
-
### config.
|
|
2663
|
+
### config.api.mnemonic?
|
|
2610
2664
|
|
|
2611
2665
|
`string`
|
|
2612
2666
|
|
|
2613
|
-
### config.
|
|
2667
|
+
### config.api.port
|
|
2614
2668
|
|
|
2615
|
-
`
|
|
2669
|
+
`number`
|
|
2616
2670
|
|
|
2617
|
-
### config.
|
|
2671
|
+
### config.app
|
|
2618
2672
|
|
|
2619
2673
|
\{
|
|
2620
|
-
`host`: `string`;
|
|
2621
2674
|
`port`: `number`;
|
|
2622
|
-
`mnemonic?`: `string`;
|
|
2623
2675
|
\}
|
|
2624
2676
|
|
|
2625
|
-
### config.
|
|
2626
|
-
|
|
2627
|
-
`string`
|
|
2628
|
-
|
|
2629
|
-
### config.api.port
|
|
2677
|
+
### config.app.port
|
|
2630
2678
|
|
|
2631
2679
|
`number`
|
|
2632
2680
|
|
|
2633
|
-
### config.
|
|
2634
|
-
|
|
2635
|
-
`string`
|
|
2636
|
-
|
|
2637
|
-
### config.app
|
|
2681
|
+
### config.chain
|
|
2638
2682
|
|
|
2639
2683
|
\{
|
|
2640
|
-
`
|
|
2684
|
+
`id?`: `string`;
|
|
2641
2685
|
\}
|
|
2642
2686
|
|
|
2643
|
-
### config.
|
|
2687
|
+
### config.chain.id?
|
|
2644
2688
|
|
|
2645
|
-
`
|
|
2689
|
+
`string`
|
|
2646
2690
|
|
|
2647
2691
|
### config.evm
|
|
2648
2692
|
|
|
@@ -2689,15 +2733,37 @@ function initEvmProvider(__namedParameters): Promise<JsonRpcProvider>;
|
|
|
2689
2733
|
### config.producer
|
|
2690
2734
|
|
|
2691
2735
|
\{
|
|
2692
|
-
`
|
|
2736
|
+
`allowlist?`: `Brand`\<`Brand`\<`Lowercase`\<`string`\>, \{
|
|
2737
|
+
`__hex`: `true`;
|
|
2738
|
+
\}\>, \{
|
|
2739
|
+
`__address`: `true`;
|
|
2740
|
+
\}\>[];
|
|
2741
|
+
`disableIntentRedeclaration?`: `boolean`;
|
|
2742
|
+
`healthCheckPort?`: `number`;
|
|
2743
|
+
`heartbeatInterval`: `number`;
|
|
2693
2744
|
`minStake`: `number`;
|
|
2694
2745
|
`mnemonic?`: `string`;
|
|
2695
|
-
`
|
|
2696
|
-
`disableIntentRedeclaration?`: `boolean`;
|
|
2746
|
+
`port`: `number`;
|
|
2697
2747
|
`rewardAddress?`: `string`;
|
|
2698
2748
|
\}
|
|
2699
2749
|
|
|
2700
|
-
### config.producer.
|
|
2750
|
+
### config.producer.allowlist?
|
|
2751
|
+
|
|
2752
|
+
`Brand`\<`Brand`\<`Lowercase`\<`string`\>, \{
|
|
2753
|
+
`__hex`: `true`;
|
|
2754
|
+
\}\>, \{
|
|
2755
|
+
`__address`: `true`;
|
|
2756
|
+
\}\>[]
|
|
2757
|
+
|
|
2758
|
+
### config.producer.disableIntentRedeclaration?
|
|
2759
|
+
|
|
2760
|
+
`boolean`
|
|
2761
|
+
|
|
2762
|
+
### config.producer.healthCheckPort?
|
|
2763
|
+
|
|
2764
|
+
`number`
|
|
2765
|
+
|
|
2766
|
+
### config.producer.heartbeatInterval
|
|
2701
2767
|
|
|
2702
2768
|
`number`
|
|
2703
2769
|
|
|
@@ -2709,15 +2775,58 @@ function initEvmProvider(__namedParameters): Promise<JsonRpcProvider>;
|
|
|
2709
2775
|
|
|
2710
2776
|
`string`
|
|
2711
2777
|
|
|
2712
|
-
### config.producer.
|
|
2778
|
+
### config.producer.port
|
|
2713
2779
|
|
|
2714
2780
|
`number`
|
|
2715
2781
|
|
|
2716
|
-
### config.producer.
|
|
2782
|
+
### config.producer.rewardAddress?
|
|
2717
2783
|
|
|
2718
|
-
`
|
|
2784
|
+
`string`
|
|
2719
2785
|
|
|
2720
|
-
### config.
|
|
2786
|
+
### config.storage
|
|
2787
|
+
|
|
2788
|
+
\{
|
|
2789
|
+
`mongo?`: \{
|
|
2790
|
+
`connectionString?`: `string`;
|
|
2791
|
+
`database?`: `string`;
|
|
2792
|
+
`domain?`: `string`;
|
|
2793
|
+
`password?`: `string`;
|
|
2794
|
+
`username?`: `string`;
|
|
2795
|
+
\};
|
|
2796
|
+
`root?`: `string`;
|
|
2797
|
+
\}
|
|
2798
|
+
|
|
2799
|
+
### config.storage.mongo?
|
|
2800
|
+
|
|
2801
|
+
\{
|
|
2802
|
+
`connectionString?`: `string`;
|
|
2803
|
+
`database?`: `string`;
|
|
2804
|
+
`domain?`: `string`;
|
|
2805
|
+
`password?`: `string`;
|
|
2806
|
+
`username?`: `string`;
|
|
2807
|
+
\}
|
|
2808
|
+
|
|
2809
|
+
### config.storage.mongo.connectionString?
|
|
2810
|
+
|
|
2811
|
+
`string`
|
|
2812
|
+
|
|
2813
|
+
### config.storage.mongo.database?
|
|
2814
|
+
|
|
2815
|
+
`string`
|
|
2816
|
+
|
|
2817
|
+
### config.storage.mongo.domain?
|
|
2818
|
+
|
|
2819
|
+
`string`
|
|
2820
|
+
|
|
2821
|
+
### config.storage.mongo.password?
|
|
2822
|
+
|
|
2823
|
+
`string`
|
|
2824
|
+
|
|
2825
|
+
### config.storage.mongo.username?
|
|
2826
|
+
|
|
2827
|
+
`string`
|
|
2828
|
+
|
|
2829
|
+
### config.storage.root?
|
|
2721
2830
|
|
|
2722
2831
|
`string`
|
|
2723
2832
|
|
|
@@ -2739,13 +2848,21 @@ function initEvmProvider(__namedParameters): Promise<JsonRpcProvider>;
|
|
|
2739
2848
|
|
|
2740
2849
|
`string`
|
|
2741
2850
|
|
|
2851
|
+
### config.logLevel
|
|
2852
|
+
|
|
2853
|
+
`"error"` \| `"warn"` \| `"info"` \| `"log"` \| `"debug"` \| `"trace"`
|
|
2854
|
+
|
|
2855
|
+
### config.silent
|
|
2856
|
+
|
|
2857
|
+
`boolean`
|
|
2858
|
+
|
|
2742
2859
|
### logger?
|
|
2743
2860
|
|
|
2744
2861
|
`Logger`
|
|
2745
2862
|
|
|
2746
2863
|
## Returns
|
|
2747
2864
|
|
|
2748
|
-
`Promise`\<`
|
|
2865
|
+
`Promise`\<`Provider`\>
|
|
2749
2866
|
|
|
2750
2867
|
### <a id="initServices"></a>initServices
|
|
2751
2868
|
|
|
@@ -2879,7 +2996,7 @@ type ActorParams = BaseParams<{
|
|
|
2879
2996
|
***
|
|
2880
2997
|
|
|
2881
2998
|
```ts
|
|
2882
|
-
type BalanceActorParams = BaseParams<Pick<ChainServiceCollectionV2, "
|
|
2999
|
+
type BalanceActorParams = BaseParams<Pick<ChainServiceCollectionV2, "balance" | "chainIterator"> & object>;
|
|
2883
3000
|
```
|
|
2884
3001
|
|
|
2885
3002
|
### <a id="ChainHeadUpdateActorParams"></a>ChainHeadUpdateActorParams
|
|
@@ -2949,13 +3066,13 @@ optional to: CreatableStatus;
|
|
|
2949
3066
|
```ts
|
|
2950
3067
|
type ProducerActorParams = BaseParams<Pick<ChainServiceCollectionV2,
|
|
2951
3068
|
| "account"
|
|
2952
|
-
| "
|
|
3069
|
+
| "balance"
|
|
2953
3070
|
| "chainIterator"
|
|
2954
3071
|
| "chainStakeViewer"
|
|
2955
3072
|
| "chainSubmissionsArchivistWrite"
|
|
2956
3073
|
| "pendingBundledTransactionsArchivistWrite"
|
|
2957
3074
|
| "producer"
|
|
2958
|
-
| "
|
|
3075
|
+
| "stakeIntent"> & object>;
|
|
2959
3076
|
```
|
|
2960
3077
|
|
|
2961
3078
|
### <a id="TransitionHandler"></a>TransitionHandler
|
|
@@ -2968,7 +3085,7 @@ type ProducerActorParams = BaseParams<Pick<ChainServiceCollectionV2,
|
|
|
2968
3085
|
type TransitionHandler = GlobalTransitionHandler & object;
|
|
2969
3086
|
```
|
|
2970
3087
|
|
|
2971
|
-
## Type
|
|
3088
|
+
## Type Declaration
|
|
2972
3089
|
|
|
2973
3090
|
### name?
|
|
2974
3091
|
|
|
@@ -2985,12 +3102,12 @@ optional name: string;
|
|
|
2985
3102
|
```ts
|
|
2986
3103
|
type ValidatorActorParams = BaseParams<Pick<ChainServiceCollectionV2,
|
|
2987
3104
|
| "account"
|
|
2988
|
-
| "
|
|
3105
|
+
| "balance"
|
|
2989
3106
|
| "chainIterator"
|
|
2990
3107
|
| "chainStakeViewer"
|
|
2991
3108
|
| "chainSubmissionsArchivistWrite"
|
|
2992
3109
|
| "pendingBundledTransactionsArchivistWrite"
|
|
2993
|
-
| "
|
|
3110
|
+
| "stakeIntent"> & object>;
|
|
2994
3111
|
```
|
|
2995
3112
|
|
|
2996
3113
|
### variables
|
|
@@ -3044,7 +3161,7 @@ const initBlockRewardService: Initializable<BaseBlockRewardServiceParams | EvmBl
|
|
|
3044
3161
|
***
|
|
3045
3162
|
|
|
3046
3163
|
```ts
|
|
3047
|
-
const initChainIterator: Initializable<XyoChainIteratorParams,
|
|
3164
|
+
const initChainIterator: Initializable<XyoChainIteratorParams, EventingChainBlockNumberIteratorService>;
|
|
3048
3165
|
```
|
|
3049
3166
|
|
|
3050
3167
|
### <a id="initChainService"></a>initChainService
|
|
@@ -3077,6 +3194,7 @@ const initElectionService: Initializable<BaseElectionServicesParams, ElectionSer
|
|
|
3077
3194
|
const initHead: Initializable<{
|
|
3078
3195
|
account: WalletInstance;
|
|
3079
3196
|
chainArchivist: ArchivistInstance;
|
|
3197
|
+
chainService: ChainService;
|
|
3080
3198
|
chainSubmissionsArchivistWrite: ArchivistInstance;
|
|
3081
3199
|
}, WithStorageMeta<BlockBoundWitness>>;
|
|
3082
3200
|
```
|
|
@@ -3113,6 +3231,16 @@ const initPendingTransactions: Initializable<BasePendingTransactionsServiceParam
|
|
|
3113
3231
|
|
|
3114
3232
|
```ts
|
|
3115
3233
|
const initStakeIntentService: Initializable<XyoStakeIntentServiceParams, StakeIntentService>;
|
|
3234
|
+
```
|
|
3235
|
+
|
|
3236
|
+
### <a id="initTimeService"></a>initTimeService
|
|
3237
|
+
|
|
3238
|
+
[**@xyo-network/xl1-cli-lib**](#../README)
|
|
3239
|
+
|
|
3240
|
+
***
|
|
3241
|
+
|
|
3242
|
+
```ts
|
|
3243
|
+
const initTimeService: Initializable<BaseTimeServiceParams, TimeSyncServiceV2>;
|
|
3116
3244
|
```
|
|
3117
3245
|
|
|
3118
3246
|
### <a id="initValidator"></a>initValidator
|