@xyo-network/xl1-cli-lib 1.16.13 → 1.16.15
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 +127 -565
- package/dist/node/index.mjs +33 -24
- package/dist/node/index.mjs.map +1 -1
- package/dist/node/orchestration/archivists/ChainFinalized/archivist.d.ts.map +1 -1
- package/dist/node/orchestration/archivists/PendingTransactions/archivist.d.ts.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.map +1 -1
- package/dist/node/orchestration/services/implementation/head/createForkedHead/getBridgeDestinationObservation.d.ts +1 -1
- package/dist/node/orchestration/services/implementation/head/createForkedHead/getBridgeDestinationObservation.d.ts.map +1 -1
- package/dist/node/orchestration/services/implementation/head/createForkedHead/getBridgeIntent.d.ts.map +1 -1
- package/dist/node/orchestration/services/implementation/head/createForkedHead/getBridgeSourceObservation.d.ts.map +1 -1
- package/dist/node/orchestration/services/implementation/head/createForkedHead/getFirstBlockForNewChain.d.ts.map +1 -1
- package/dist/node/orchestration/services/implementation/head/getForkFromBlock.d.ts +1 -1
- package/dist/node/orchestration/services/implementation/head/getForkFromBlock.d.ts.map +1 -1
- package/dist/node/orchestration/services/implementation/iterator.d.ts +1 -1
- package/dist/node/orchestration/services/implementation/iterator.d.ts.map +1 -1
- package/dist/node/xl1.mjs +33 -24
- package/dist/node/xl1.mjs.map +1 -1
- package/package.json +25 -21
- package/src/orchestration/actor/implementation/ChainHeadUpdateActor.ts +1 -1
- package/src/orchestration/actor/implementation/ProducerActor.ts +1 -1
- package/src/orchestration/archivists/ChainFinalized/archivist.ts +2 -1
- package/src/orchestration/archivists/ChainFinalized/remote.ts +1 -1
- package/src/orchestration/archivists/ChainSubmissions/archivist.ts +1 -1
- package/src/orchestration/archivists/ChainSubmissions/remote.ts +1 -1
- package/src/orchestration/archivists/PendingTransactions/archivist.ts +2 -1
- package/src/orchestration/archivists/PendingTransactions/remote.ts +1 -1
- package/src/orchestration/archivists/RejectedTransactions/archivist.ts +1 -1
- package/src/orchestration/archivists/StakeIntentState/archivist.ts +1 -1
- package/src/orchestration/archivists/lib/localPersistentArchivist.ts +1 -1
- package/src/orchestration/initServices.ts +4 -3
- package/src/orchestration/map/BalanceSummary/initBalanceSummaryMap.ts +1 -1
- package/src/orchestration/map/BalanceSummary/initLocalBalanceSummaryMap.ts +1 -1
- package/src/orchestration/map/BalanceSummary/initLocalTransferSummaryMap.ts +1 -1
- package/src/orchestration/map/BalanceSummary/initTransferSummaryMap.ts +1 -1
- package/src/orchestration/services/implementation/head/createBootstrapHead.ts +1 -1
- package/src/orchestration/services/implementation/head/createForkedHead/getBridgeDestinationObservation.ts +4 -3
- package/src/orchestration/services/implementation/head/createForkedHead/getBridgeIntent.ts +2 -3
- package/src/orchestration/services/implementation/head/createForkedHead/getBridgeSourceObservation.ts +2 -1
- package/src/orchestration/services/implementation/head/createForkedHead/getFirstBlockForNewChain.ts +2 -4
- package/src/orchestration/services/implementation/head/getForkFromBlock.ts +1 -2
- package/src/orchestration/services/implementation/head/head.ts +1 -1
- package/src/orchestration/services/implementation/iterator.ts +1 -1
package/README.md
CHANGED
|
@@ -58,6 +58,7 @@ XYO Layer One CLI Library
|
|
|
58
58
|
- [initBlockProducer](#variables/initBlockProducer)
|
|
59
59
|
- [initBlockRewardService](#variables/initBlockRewardService)
|
|
60
60
|
- [initTimeService](#variables/initTimeService)
|
|
61
|
+
- [initTransferService](#variables/initTransferService)
|
|
61
62
|
- [initValidator](#variables/initValidator)
|
|
62
63
|
|
|
63
64
|
## Functions
|
|
@@ -142,6 +143,14 @@ protected readonly _intervals: Map<string, Timeout>;
|
|
|
142
143
|
|
|
143
144
|
***
|
|
144
145
|
|
|
146
|
+
### \_semaphores
|
|
147
|
+
|
|
148
|
+
```ts
|
|
149
|
+
protected readonly _semaphores: Map<string, Semaphore>;
|
|
150
|
+
```
|
|
151
|
+
|
|
152
|
+
***
|
|
153
|
+
|
|
145
154
|
### \_timeouts
|
|
146
155
|
|
|
147
156
|
```ts
|
|
@@ -387,6 +396,18 @@ protected readonly _intervals: Map<string, Timeout>;
|
|
|
387
396
|
|
|
388
397
|
***
|
|
389
398
|
|
|
399
|
+
### \_semaphores
|
|
400
|
+
|
|
401
|
+
```ts
|
|
402
|
+
protected readonly _semaphores: Map<string, Semaphore>;
|
|
403
|
+
```
|
|
404
|
+
|
|
405
|
+
### Inherited from
|
|
406
|
+
|
|
407
|
+
[`Actor`](#Actor).[`_semaphores`](Actor.md#_semaphores)
|
|
408
|
+
|
|
409
|
+
***
|
|
410
|
+
|
|
390
411
|
### \_timeouts
|
|
391
412
|
|
|
392
413
|
```ts
|
|
@@ -404,12 +425,12 @@ protected readonly _timeouts: Map<string, Timeout>;
|
|
|
404
425
|
### Get Signature
|
|
405
426
|
|
|
406
427
|
```ts
|
|
407
|
-
get protected balanceService():
|
|
428
|
+
get protected balanceService(): AccountBalanceService;
|
|
408
429
|
```
|
|
409
430
|
|
|
410
431
|
#### Returns
|
|
411
432
|
|
|
412
|
-
`
|
|
433
|
+
`AccountBalanceService`
|
|
413
434
|
|
|
414
435
|
***
|
|
415
436
|
|
|
@@ -714,6 +735,18 @@ protected readonly _intervals: Map<string, Timeout>;
|
|
|
714
735
|
|
|
715
736
|
***
|
|
716
737
|
|
|
738
|
+
### \_semaphores
|
|
739
|
+
|
|
740
|
+
```ts
|
|
741
|
+
protected readonly _semaphores: Map<string, Semaphore>;
|
|
742
|
+
```
|
|
743
|
+
|
|
744
|
+
### Inherited from
|
|
745
|
+
|
|
746
|
+
[`Actor`](#Actor).[`_semaphores`](Actor.md#_semaphores)
|
|
747
|
+
|
|
748
|
+
***
|
|
749
|
+
|
|
717
750
|
### \_timeouts
|
|
718
751
|
|
|
719
752
|
```ts
|
|
@@ -1107,7 +1140,7 @@ protected actors: IActor[] = [];
|
|
|
1107
1140
|
### keepAliveHandle
|
|
1108
1141
|
|
|
1109
1142
|
```ts
|
|
1110
|
-
protected keepAliveHandle:
|
|
1143
|
+
protected keepAliveHandle: Timeout | null = null;
|
|
1111
1144
|
```
|
|
1112
1145
|
|
|
1113
1146
|
***
|
|
@@ -1220,7 +1253,7 @@ protected new ProducerActor(params): ProducerActor;
|
|
|
1220
1253
|
### \_lastProducedBlock
|
|
1221
1254
|
|
|
1222
1255
|
```ts
|
|
1223
|
-
protected _lastProducedBlock:
|
|
1256
|
+
protected _lastProducedBlock: HydratedBlock | undefined;
|
|
1224
1257
|
```
|
|
1225
1258
|
|
|
1226
1259
|
***
|
|
@@ -1228,7 +1261,7 @@ protected _lastProducedBlock: undefined | HydratedBlock;
|
|
|
1228
1261
|
### \_lastRedeclarationIntent
|
|
1229
1262
|
|
|
1230
1263
|
```ts
|
|
1231
|
-
protected _lastRedeclarationIntent:
|
|
1264
|
+
protected _lastRedeclarationIntent: ChainStakeIntent | undefined;
|
|
1232
1265
|
```
|
|
1233
1266
|
|
|
1234
1267
|
***
|
|
@@ -1245,6 +1278,18 @@ protected readonly _intervals: Map<string, Timeout>;
|
|
|
1245
1278
|
|
|
1246
1279
|
***
|
|
1247
1280
|
|
|
1281
|
+
### \_semaphores
|
|
1282
|
+
|
|
1283
|
+
```ts
|
|
1284
|
+
protected readonly _semaphores: Map<string, Semaphore>;
|
|
1285
|
+
```
|
|
1286
|
+
|
|
1287
|
+
### Inherited from
|
|
1288
|
+
|
|
1289
|
+
[`Actor`](#Actor).[`_semaphores`](Actor.md#_semaphores)
|
|
1290
|
+
|
|
1291
|
+
***
|
|
1292
|
+
|
|
1248
1293
|
### \_timeouts
|
|
1249
1294
|
|
|
1250
1295
|
```ts
|
|
@@ -1276,12 +1321,12 @@ get protected account(): WalletInstance;
|
|
|
1276
1321
|
### Get Signature
|
|
1277
1322
|
|
|
1278
1323
|
```ts
|
|
1279
|
-
get protected balanceService():
|
|
1324
|
+
get protected balanceService(): AccountBalanceService;
|
|
1280
1325
|
```
|
|
1281
1326
|
|
|
1282
1327
|
#### Returns
|
|
1283
1328
|
|
|
1284
|
-
`
|
|
1329
|
+
`AccountBalanceService`
|
|
1285
1330
|
|
|
1286
1331
|
***
|
|
1287
1332
|
|
|
@@ -1318,16 +1363,12 @@ get protected chainStakeViewer(): ChainStakeViewer;
|
|
|
1318
1363
|
### Get Signature
|
|
1319
1364
|
|
|
1320
1365
|
```ts
|
|
1321
|
-
get protected chainSubmissionsArchivistWrite(): WriteArchivist<Payload, Payload, Payload,
|
|
1322
|
-
}>, {
|
|
1323
|
-
}>>;
|
|
1366
|
+
get protected chainSubmissionsArchivistWrite(): WriteArchivist<Payload, Payload, Payload, Hash>;
|
|
1324
1367
|
```
|
|
1325
1368
|
|
|
1326
1369
|
#### Returns
|
|
1327
1370
|
|
|
1328
|
-
`WriteArchivist`\<`Payload`, `Payload`, `Payload`, `
|
|
1329
|
-
\}\>, \{
|
|
1330
|
-
\}\>\>
|
|
1371
|
+
`WriteArchivist`\<`Payload`, `Payload`, `Payload`, `Hash`\>
|
|
1331
1372
|
|
|
1332
1373
|
***
|
|
1333
1374
|
|
|
@@ -1499,6 +1540,30 @@ protected calculateBlocksUntilProducerDeclarationExpiration(currentBlock): Promi
|
|
|
1499
1540
|
|
|
1500
1541
|
***
|
|
1501
1542
|
|
|
1543
|
+
### produceBlock()
|
|
1544
|
+
|
|
1545
|
+
```ts
|
|
1546
|
+
protected produceBlock(): Promise<void>;
|
|
1547
|
+
```
|
|
1548
|
+
|
|
1549
|
+
### Returns
|
|
1550
|
+
|
|
1551
|
+
`Promise`\<`void`\>
|
|
1552
|
+
|
|
1553
|
+
***
|
|
1554
|
+
|
|
1555
|
+
### redeclareIntent()
|
|
1556
|
+
|
|
1557
|
+
```ts
|
|
1558
|
+
protected redeclareIntent(): Promise<void>;
|
|
1559
|
+
```
|
|
1560
|
+
|
|
1561
|
+
### Returns
|
|
1562
|
+
|
|
1563
|
+
`Promise`\<`void`\>
|
|
1564
|
+
|
|
1565
|
+
***
|
|
1566
|
+
|
|
1502
1567
|
### submitRedeclarationIntent()
|
|
1503
1568
|
|
|
1504
1569
|
```ts
|
|
@@ -1739,7 +1804,7 @@ getGlobalStatus(): CreatableStatus;
|
|
|
1739
1804
|
### getStatus()
|
|
1740
1805
|
|
|
1741
1806
|
```ts
|
|
1742
|
-
getStatus(name):
|
|
1807
|
+
getStatus(name): CreatableStatus | undefined;
|
|
1743
1808
|
```
|
|
1744
1809
|
|
|
1745
1810
|
### Parameters
|
|
@@ -1750,7 +1815,7 @@ getStatus(name): undefined | CreatableStatus;
|
|
|
1750
1815
|
|
|
1751
1816
|
### Returns
|
|
1752
1817
|
|
|
1753
|
-
`
|
|
1818
|
+
`CreatableStatus` \| `undefined`
|
|
1754
1819
|
|
|
1755
1820
|
***
|
|
1756
1821
|
|
|
@@ -1884,7 +1949,7 @@ protected new ValidatorActor(params): ValidatorActor;
|
|
|
1884
1949
|
### \_lastValidatedBlock
|
|
1885
1950
|
|
|
1886
1951
|
```ts
|
|
1887
|
-
protected _lastValidatedBlock:
|
|
1952
|
+
protected _lastValidatedBlock: BlockBoundWitness | undefined;
|
|
1888
1953
|
```
|
|
1889
1954
|
|
|
1890
1955
|
***
|
|
@@ -1892,11 +1957,7 @@ protected _lastValidatedBlock: undefined | BlockBoundWitness;
|
|
|
1892
1957
|
### \_lastValidatedBlockHash
|
|
1893
1958
|
|
|
1894
1959
|
```ts
|
|
1895
|
-
protected _lastValidatedBlockHash:
|
|
1896
|
-
| undefined
|
|
1897
|
-
| Brand<Brand<Lowercase<string>, {
|
|
1898
|
-
}>, {
|
|
1899
|
-
}>;
|
|
1960
|
+
protected _lastValidatedBlockHash: Hash | undefined;
|
|
1900
1961
|
```
|
|
1901
1962
|
|
|
1902
1963
|
***
|
|
@@ -1913,6 +1974,18 @@ protected readonly _intervals: Map<string, Timeout>;
|
|
|
1913
1974
|
|
|
1914
1975
|
***
|
|
1915
1976
|
|
|
1977
|
+
### \_semaphores
|
|
1978
|
+
|
|
1979
|
+
```ts
|
|
1980
|
+
protected readonly _semaphores: Map<string, Semaphore>;
|
|
1981
|
+
```
|
|
1982
|
+
|
|
1983
|
+
### Inherited from
|
|
1984
|
+
|
|
1985
|
+
[`Actor`](#Actor).[`_semaphores`](Actor.md#_semaphores)
|
|
1986
|
+
|
|
1987
|
+
***
|
|
1988
|
+
|
|
1916
1989
|
### \_timeouts
|
|
1917
1990
|
|
|
1918
1991
|
```ts
|
|
@@ -1944,12 +2017,12 @@ get protected account(): WalletInstance;
|
|
|
1944
2017
|
### Get Signature
|
|
1945
2018
|
|
|
1946
2019
|
```ts
|
|
1947
|
-
get protected balanceService():
|
|
2020
|
+
get protected balanceService(): AccountBalanceService;
|
|
1948
2021
|
```
|
|
1949
2022
|
|
|
1950
2023
|
#### Returns
|
|
1951
2024
|
|
|
1952
|
-
`
|
|
2025
|
+
`AccountBalanceService`
|
|
1953
2026
|
|
|
1954
2027
|
***
|
|
1955
2028
|
|
|
@@ -1986,16 +2059,12 @@ get protected chainStakeViewer(): ChainStakeViewer;
|
|
|
1986
2059
|
### Get Signature
|
|
1987
2060
|
|
|
1988
2061
|
```ts
|
|
1989
|
-
get protected chainSubmissionsArchivistWrite(): WriteArchivist<Payload, Payload, Payload,
|
|
1990
|
-
}>, {
|
|
1991
|
-
}>>;
|
|
2062
|
+
get protected chainSubmissionsArchivistWrite(): WriteArchivist<Payload, Payload, Payload, Hash>;
|
|
1992
2063
|
```
|
|
1993
2064
|
|
|
1994
2065
|
#### Returns
|
|
1995
2066
|
|
|
1996
|
-
`WriteArchivist`\<`Payload`, `Payload`, `Payload`, `
|
|
1997
|
-
\}\>, \{
|
|
1998
|
-
\}\>\>
|
|
2067
|
+
`WriteArchivist`\<`Payload`, `Payload`, `Payload`, `Hash`\>
|
|
1999
2068
|
|
|
2000
2069
|
***
|
|
2001
2070
|
|
|
@@ -2310,268 +2379,7 @@ function canUseEvmProvider(__namedParameters): boolean;
|
|
|
2310
2379
|
|
|
2311
2380
|
### config
|
|
2312
2381
|
|
|
2313
|
-
|
|
2314
|
-
`api`: \{
|
|
2315
|
-
`host`: `string`;
|
|
2316
|
-
`mnemonic?`: `string`;
|
|
2317
|
-
`port`: `number`;
|
|
2318
|
-
\};
|
|
2319
|
-
`app`: \{
|
|
2320
|
-
`port`: `number`;
|
|
2321
|
-
\};
|
|
2322
|
-
`chain`: \{
|
|
2323
|
-
`id?`: `string`;
|
|
2324
|
-
\};
|
|
2325
|
-
`evm`: \{
|
|
2326
|
-
`chainId?`: `string`;
|
|
2327
|
-
`infura?`: \{
|
|
2328
|
-
`projectId?`: `string`;
|
|
2329
|
-
`projectSecret?`: `string`;
|
|
2330
|
-
\};
|
|
2331
|
-
`jsonRpc?`: \{
|
|
2332
|
-
`url?`: `string`;
|
|
2333
|
-
\};
|
|
2334
|
-
\};
|
|
2335
|
-
`producer`: \{
|
|
2336
|
-
`allowlist?`: `Brand`\<`Brand`\<`Lowercase`\<`string`\>, \{
|
|
2337
|
-
`__hex`: `true`;
|
|
2338
|
-
\}\>, \{
|
|
2339
|
-
`__address`: `true`;
|
|
2340
|
-
\}\>[];
|
|
2341
|
-
`disableIntentRedeclaration?`: `boolean`;
|
|
2342
|
-
`healthCheckPort?`: `number`;
|
|
2343
|
-
`heartbeatInterval`: `number`;
|
|
2344
|
-
`minStake`: `number`;
|
|
2345
|
-
`mnemonic?`: `string`;
|
|
2346
|
-
`port`: `number`;
|
|
2347
|
-
`rewardAddress?`: `string`;
|
|
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
|
-
\};
|
|
2359
|
-
`telemetry`: \{
|
|
2360
|
-
`otel?`: \{
|
|
2361
|
-
`otlpEndpoint?`: `string`;
|
|
2362
|
-
\};
|
|
2363
|
-
\};
|
|
2364
|
-
`logLevel`: `"error"` \| `"warn"` \| `"info"` \| `"log"` \| `"debug"` \| `"trace"`;
|
|
2365
|
-
`silent`: `boolean`;
|
|
2366
|
-
\}
|
|
2367
|
-
|
|
2368
|
-
### config.api
|
|
2369
|
-
|
|
2370
|
-
\{
|
|
2371
|
-
`host`: `string`;
|
|
2372
|
-
`mnemonic?`: `string`;
|
|
2373
|
-
`port`: `number`;
|
|
2374
|
-
\}
|
|
2375
|
-
|
|
2376
|
-
### config.api.host
|
|
2377
|
-
|
|
2378
|
-
`string`
|
|
2379
|
-
|
|
2380
|
-
### config.api.mnemonic?
|
|
2381
|
-
|
|
2382
|
-
`string`
|
|
2383
|
-
|
|
2384
|
-
### config.api.port
|
|
2385
|
-
|
|
2386
|
-
`number`
|
|
2387
|
-
|
|
2388
|
-
### config.app
|
|
2389
|
-
|
|
2390
|
-
\{
|
|
2391
|
-
`port`: `number`;
|
|
2392
|
-
\}
|
|
2393
|
-
|
|
2394
|
-
### config.app.port
|
|
2395
|
-
|
|
2396
|
-
`number`
|
|
2397
|
-
|
|
2398
|
-
### config.chain
|
|
2399
|
-
|
|
2400
|
-
\{
|
|
2401
|
-
`id?`: `string`;
|
|
2402
|
-
\}
|
|
2403
|
-
|
|
2404
|
-
### config.chain.id?
|
|
2405
|
-
|
|
2406
|
-
`string`
|
|
2407
|
-
|
|
2408
|
-
### config.evm
|
|
2409
|
-
|
|
2410
|
-
\{
|
|
2411
|
-
`chainId?`: `string`;
|
|
2412
|
-
`infura?`: \{
|
|
2413
|
-
`projectId?`: `string`;
|
|
2414
|
-
`projectSecret?`: `string`;
|
|
2415
|
-
\};
|
|
2416
|
-
`jsonRpc?`: \{
|
|
2417
|
-
`url?`: `string`;
|
|
2418
|
-
\};
|
|
2419
|
-
\}
|
|
2420
|
-
|
|
2421
|
-
### config.evm.chainId?
|
|
2422
|
-
|
|
2423
|
-
`string`
|
|
2424
|
-
|
|
2425
|
-
### config.evm.infura?
|
|
2426
|
-
|
|
2427
|
-
\{
|
|
2428
|
-
`projectId?`: `string`;
|
|
2429
|
-
`projectSecret?`: `string`;
|
|
2430
|
-
\}
|
|
2431
|
-
|
|
2432
|
-
### config.evm.infura.projectId?
|
|
2433
|
-
|
|
2434
|
-
`string`
|
|
2435
|
-
|
|
2436
|
-
### config.evm.infura.projectSecret?
|
|
2437
|
-
|
|
2438
|
-
`string`
|
|
2439
|
-
|
|
2440
|
-
### config.evm.jsonRpc?
|
|
2441
|
-
|
|
2442
|
-
\{
|
|
2443
|
-
`url?`: `string`;
|
|
2444
|
-
\}
|
|
2445
|
-
|
|
2446
|
-
### config.evm.jsonRpc.url?
|
|
2447
|
-
|
|
2448
|
-
`string`
|
|
2449
|
-
|
|
2450
|
-
### config.producer
|
|
2451
|
-
|
|
2452
|
-
\{
|
|
2453
|
-
`allowlist?`: `Brand`\<`Brand`\<`Lowercase`\<`string`\>, \{
|
|
2454
|
-
`__hex`: `true`;
|
|
2455
|
-
\}\>, \{
|
|
2456
|
-
`__address`: `true`;
|
|
2457
|
-
\}\>[];
|
|
2458
|
-
`disableIntentRedeclaration?`: `boolean`;
|
|
2459
|
-
`healthCheckPort?`: `number`;
|
|
2460
|
-
`heartbeatInterval`: `number`;
|
|
2461
|
-
`minStake`: `number`;
|
|
2462
|
-
`mnemonic?`: `string`;
|
|
2463
|
-
`port`: `number`;
|
|
2464
|
-
`rewardAddress?`: `string`;
|
|
2465
|
-
\}
|
|
2466
|
-
|
|
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
|
|
2484
|
-
|
|
2485
|
-
`number`
|
|
2486
|
-
|
|
2487
|
-
### config.producer.minStake
|
|
2488
|
-
|
|
2489
|
-
`number`
|
|
2490
|
-
|
|
2491
|
-
### config.producer.mnemonic?
|
|
2492
|
-
|
|
2493
|
-
`string`
|
|
2494
|
-
|
|
2495
|
-
### config.producer.port
|
|
2496
|
-
|
|
2497
|
-
`number`
|
|
2498
|
-
|
|
2499
|
-
### config.producer.rewardAddress?
|
|
2500
|
-
|
|
2501
|
-
`string`
|
|
2502
|
-
|
|
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?
|
|
2547
|
-
|
|
2548
|
-
`string`
|
|
2549
|
-
|
|
2550
|
-
### config.telemetry
|
|
2551
|
-
|
|
2552
|
-
\{
|
|
2553
|
-
`otel?`: \{
|
|
2554
|
-
`otlpEndpoint?`: `string`;
|
|
2555
|
-
\};
|
|
2556
|
-
\}
|
|
2557
|
-
|
|
2558
|
-
### config.telemetry.otel?
|
|
2559
|
-
|
|
2560
|
-
\{
|
|
2561
|
-
`otlpEndpoint?`: `string`;
|
|
2562
|
-
\}
|
|
2563
|
-
|
|
2564
|
-
### config.telemetry.otel.otlpEndpoint?
|
|
2565
|
-
|
|
2566
|
-
`string`
|
|
2567
|
-
|
|
2568
|
-
### config.logLevel
|
|
2569
|
-
|
|
2570
|
-
`"error"` \| `"warn"` \| `"info"` \| `"log"` \| `"debug"` \| `"trace"`
|
|
2571
|
-
|
|
2572
|
-
### config.silent
|
|
2573
|
-
|
|
2574
|
-
`boolean`
|
|
2382
|
+
`Pick`\<`Config`, `"evm"`\>
|
|
2575
2383
|
|
|
2576
2384
|
## Returns
|
|
2577
2385
|
|
|
@@ -2593,268 +2401,7 @@ function initEvmProvider(__namedParameters): Promise<Provider>;
|
|
|
2593
2401
|
|
|
2594
2402
|
### config
|
|
2595
2403
|
|
|
2596
|
-
|
|
2597
|
-
`api`: \{
|
|
2598
|
-
`host`: `string`;
|
|
2599
|
-
`mnemonic?`: `string`;
|
|
2600
|
-
`port`: `number`;
|
|
2601
|
-
\};
|
|
2602
|
-
`app`: \{
|
|
2603
|
-
`port`: `number`;
|
|
2604
|
-
\};
|
|
2605
|
-
`chain`: \{
|
|
2606
|
-
`id?`: `string`;
|
|
2607
|
-
\};
|
|
2608
|
-
`evm`: \{
|
|
2609
|
-
`chainId?`: `string`;
|
|
2610
|
-
`infura?`: \{
|
|
2611
|
-
`projectId?`: `string`;
|
|
2612
|
-
`projectSecret?`: `string`;
|
|
2613
|
-
\};
|
|
2614
|
-
`jsonRpc?`: \{
|
|
2615
|
-
`url?`: `string`;
|
|
2616
|
-
\};
|
|
2617
|
-
\};
|
|
2618
|
-
`producer`: \{
|
|
2619
|
-
`allowlist?`: `Brand`\<`Brand`\<`Lowercase`\<`string`\>, \{
|
|
2620
|
-
`__hex`: `true`;
|
|
2621
|
-
\}\>, \{
|
|
2622
|
-
`__address`: `true`;
|
|
2623
|
-
\}\>[];
|
|
2624
|
-
`disableIntentRedeclaration?`: `boolean`;
|
|
2625
|
-
`healthCheckPort?`: `number`;
|
|
2626
|
-
`heartbeatInterval`: `number`;
|
|
2627
|
-
`minStake`: `number`;
|
|
2628
|
-
`mnemonic?`: `string`;
|
|
2629
|
-
`port`: `number`;
|
|
2630
|
-
`rewardAddress?`: `string`;
|
|
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
|
-
\};
|
|
2642
|
-
`telemetry`: \{
|
|
2643
|
-
`otel?`: \{
|
|
2644
|
-
`otlpEndpoint?`: `string`;
|
|
2645
|
-
\};
|
|
2646
|
-
\};
|
|
2647
|
-
`logLevel`: `"error"` \| `"warn"` \| `"info"` \| `"log"` \| `"debug"` \| `"trace"`;
|
|
2648
|
-
`silent`: `boolean`;
|
|
2649
|
-
\}
|
|
2650
|
-
|
|
2651
|
-
### config.api
|
|
2652
|
-
|
|
2653
|
-
\{
|
|
2654
|
-
`host`: `string`;
|
|
2655
|
-
`mnemonic?`: `string`;
|
|
2656
|
-
`port`: `number`;
|
|
2657
|
-
\}
|
|
2658
|
-
|
|
2659
|
-
### config.api.host
|
|
2660
|
-
|
|
2661
|
-
`string`
|
|
2662
|
-
|
|
2663
|
-
### config.api.mnemonic?
|
|
2664
|
-
|
|
2665
|
-
`string`
|
|
2666
|
-
|
|
2667
|
-
### config.api.port
|
|
2668
|
-
|
|
2669
|
-
`number`
|
|
2670
|
-
|
|
2671
|
-
### config.app
|
|
2672
|
-
|
|
2673
|
-
\{
|
|
2674
|
-
`port`: `number`;
|
|
2675
|
-
\}
|
|
2676
|
-
|
|
2677
|
-
### config.app.port
|
|
2678
|
-
|
|
2679
|
-
`number`
|
|
2680
|
-
|
|
2681
|
-
### config.chain
|
|
2682
|
-
|
|
2683
|
-
\{
|
|
2684
|
-
`id?`: `string`;
|
|
2685
|
-
\}
|
|
2686
|
-
|
|
2687
|
-
### config.chain.id?
|
|
2688
|
-
|
|
2689
|
-
`string`
|
|
2690
|
-
|
|
2691
|
-
### config.evm
|
|
2692
|
-
|
|
2693
|
-
\{
|
|
2694
|
-
`chainId?`: `string`;
|
|
2695
|
-
`infura?`: \{
|
|
2696
|
-
`projectId?`: `string`;
|
|
2697
|
-
`projectSecret?`: `string`;
|
|
2698
|
-
\};
|
|
2699
|
-
`jsonRpc?`: \{
|
|
2700
|
-
`url?`: `string`;
|
|
2701
|
-
\};
|
|
2702
|
-
\}
|
|
2703
|
-
|
|
2704
|
-
### config.evm.chainId?
|
|
2705
|
-
|
|
2706
|
-
`string`
|
|
2707
|
-
|
|
2708
|
-
### config.evm.infura?
|
|
2709
|
-
|
|
2710
|
-
\{
|
|
2711
|
-
`projectId?`: `string`;
|
|
2712
|
-
`projectSecret?`: `string`;
|
|
2713
|
-
\}
|
|
2714
|
-
|
|
2715
|
-
### config.evm.infura.projectId?
|
|
2716
|
-
|
|
2717
|
-
`string`
|
|
2718
|
-
|
|
2719
|
-
### config.evm.infura.projectSecret?
|
|
2720
|
-
|
|
2721
|
-
`string`
|
|
2722
|
-
|
|
2723
|
-
### config.evm.jsonRpc?
|
|
2724
|
-
|
|
2725
|
-
\{
|
|
2726
|
-
`url?`: `string`;
|
|
2727
|
-
\}
|
|
2728
|
-
|
|
2729
|
-
### config.evm.jsonRpc.url?
|
|
2730
|
-
|
|
2731
|
-
`string`
|
|
2732
|
-
|
|
2733
|
-
### config.producer
|
|
2734
|
-
|
|
2735
|
-
\{
|
|
2736
|
-
`allowlist?`: `Brand`\<`Brand`\<`Lowercase`\<`string`\>, \{
|
|
2737
|
-
`__hex`: `true`;
|
|
2738
|
-
\}\>, \{
|
|
2739
|
-
`__address`: `true`;
|
|
2740
|
-
\}\>[];
|
|
2741
|
-
`disableIntentRedeclaration?`: `boolean`;
|
|
2742
|
-
`healthCheckPort?`: `number`;
|
|
2743
|
-
`heartbeatInterval`: `number`;
|
|
2744
|
-
`minStake`: `number`;
|
|
2745
|
-
`mnemonic?`: `string`;
|
|
2746
|
-
`port`: `number`;
|
|
2747
|
-
`rewardAddress?`: `string`;
|
|
2748
|
-
\}
|
|
2749
|
-
|
|
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
|
|
2767
|
-
|
|
2768
|
-
`number`
|
|
2769
|
-
|
|
2770
|
-
### config.producer.minStake
|
|
2771
|
-
|
|
2772
|
-
`number`
|
|
2773
|
-
|
|
2774
|
-
### config.producer.mnemonic?
|
|
2775
|
-
|
|
2776
|
-
`string`
|
|
2777
|
-
|
|
2778
|
-
### config.producer.port
|
|
2779
|
-
|
|
2780
|
-
`number`
|
|
2781
|
-
|
|
2782
|
-
### config.producer.rewardAddress?
|
|
2783
|
-
|
|
2784
|
-
`string`
|
|
2785
|
-
|
|
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?
|
|
2830
|
-
|
|
2831
|
-
`string`
|
|
2832
|
-
|
|
2833
|
-
### config.telemetry
|
|
2834
|
-
|
|
2835
|
-
\{
|
|
2836
|
-
`otel?`: \{
|
|
2837
|
-
`otlpEndpoint?`: `string`;
|
|
2838
|
-
\};
|
|
2839
|
-
\}
|
|
2840
|
-
|
|
2841
|
-
### config.telemetry.otel?
|
|
2842
|
-
|
|
2843
|
-
\{
|
|
2844
|
-
`otlpEndpoint?`: `string`;
|
|
2845
|
-
\}
|
|
2846
|
-
|
|
2847
|
-
### config.telemetry.otel.otlpEndpoint?
|
|
2848
|
-
|
|
2849
|
-
`string`
|
|
2850
|
-
|
|
2851
|
-
### config.logLevel
|
|
2852
|
-
|
|
2853
|
-
`"error"` \| `"warn"` \| `"info"` \| `"log"` \| `"debug"` \| `"trace"`
|
|
2854
|
-
|
|
2855
|
-
### config.silent
|
|
2856
|
-
|
|
2857
|
-
`boolean`
|
|
2404
|
+
`Pick`\<`Config`, `"evm"`\>
|
|
2858
2405
|
|
|
2859
2406
|
### logger?
|
|
2860
2407
|
|
|
@@ -2983,12 +2530,15 @@ stop(): Promise<void>;
|
|
|
2983
2530
|
***
|
|
2984
2531
|
|
|
2985
2532
|
```ts
|
|
2986
|
-
type ActorParams = BaseParams<
|
|
2987
|
-
config: Config;
|
|
2988
|
-
traceProvider?: TracerProvider;
|
|
2989
|
-
}>;
|
|
2533
|
+
type ActorParams<T> = BaseParams<object & T extends void ? EmptyObject : T>;
|
|
2990
2534
|
```
|
|
2991
2535
|
|
|
2536
|
+
## Type Parameters
|
|
2537
|
+
|
|
2538
|
+
### T
|
|
2539
|
+
|
|
2540
|
+
`T` *extends* `EmptyObject` \| `void` = `void`
|
|
2541
|
+
|
|
2992
2542
|
### <a id="BalanceActorParams"></a>BalanceActorParams
|
|
2993
2543
|
|
|
2994
2544
|
[**@xyo-network/xl1-cli-lib**](#../README)
|
|
@@ -2996,7 +2546,7 @@ type ActorParams = BaseParams<{
|
|
|
2996
2546
|
***
|
|
2997
2547
|
|
|
2998
2548
|
```ts
|
|
2999
|
-
type BalanceActorParams =
|
|
2549
|
+
type BalanceActorParams = ActorParams<Pick<ChainServiceCollectionV2, "balance" | "chainIterator"> & object>;
|
|
3000
2550
|
```
|
|
3001
2551
|
|
|
3002
2552
|
### <a id="ChainHeadUpdateActorParams"></a>ChainHeadUpdateActorParams
|
|
@@ -3006,7 +2556,7 @@ type BalanceActorParams = BaseParams<Pick<ChainServiceCollectionV2, "balance" |
|
|
|
3006
2556
|
***
|
|
3007
2557
|
|
|
3008
2558
|
```ts
|
|
3009
|
-
type ChainHeadUpdateActorParams =
|
|
2559
|
+
type ChainHeadUpdateActorParams = ActorParams<Pick<ChainServiceCollectionV2, "chainIterator" | "chainArchivist"> & object>;
|
|
3010
2560
|
```
|
|
3011
2561
|
|
|
3012
2562
|
### <a id="GlobalTransitionHandler"></a>GlobalTransitionHandler
|
|
@@ -3064,7 +2614,7 @@ optional to: CreatableStatus;
|
|
|
3064
2614
|
***
|
|
3065
2615
|
|
|
3066
2616
|
```ts
|
|
3067
|
-
type ProducerActorParams =
|
|
2617
|
+
type ProducerActorParams = ActorParams<Pick<ChainServiceCollectionV2,
|
|
3068
2618
|
| "account"
|
|
3069
2619
|
| "balance"
|
|
3070
2620
|
| "chainIterator"
|
|
@@ -3100,7 +2650,7 @@ optional name: string;
|
|
|
3100
2650
|
***
|
|
3101
2651
|
|
|
3102
2652
|
```ts
|
|
3103
|
-
type ValidatorActorParams =
|
|
2653
|
+
type ValidatorActorParams = ActorParams<Pick<ChainServiceCollectionV2,
|
|
3104
2654
|
| "account"
|
|
3105
2655
|
| "balance"
|
|
3106
2656
|
| "chainIterator"
|
|
@@ -3131,7 +2681,7 @@ const initAccount: Initializable<InitializableParams<{
|
|
|
3131
2681
|
***
|
|
3132
2682
|
|
|
3133
2683
|
```ts
|
|
3134
|
-
const initBalanceService: Initializable<BaseAccountBalanceServiceParams,
|
|
2684
|
+
const initBalanceService: Initializable<BaseAccountBalanceServiceParams, AccountBalanceService>;
|
|
3135
2685
|
```
|
|
3136
2686
|
|
|
3137
2687
|
### <a id="initBlockProducer"></a>initBlockProducer
|
|
@@ -3151,7 +2701,9 @@ const initBlockProducer: Initializable<BaseBlockProducerServiceParams, BlockProd
|
|
|
3151
2701
|
***
|
|
3152
2702
|
|
|
3153
2703
|
```ts
|
|
3154
|
-
const initBlockRewardService: Initializable<
|
|
2704
|
+
const initBlockRewardService: Initializable<
|
|
2705
|
+
| BaseBlockRewardServiceParams<Pick<Config, "evm">>
|
|
2706
|
+
| EvmBlockRewardServiceParams, BlockRewardService>;
|
|
3155
2707
|
```
|
|
3156
2708
|
|
|
3157
2709
|
### <a id="initChainIterator"></a>initChainIterator
|
|
@@ -3171,7 +2723,7 @@ const initChainIterator: Initializable<XyoChainIteratorParams, EventingChainBloc
|
|
|
3171
2723
|
***
|
|
3172
2724
|
|
|
3173
2725
|
```ts
|
|
3174
|
-
const initChainService: Initializable<BaseAccountableServiceParams, ChainService>;
|
|
2726
|
+
const initChainService: Initializable<BaseAccountableServiceParams<Pick<Config, "chain" | "evm" | "producer">>, ChainService>;
|
|
3175
2727
|
```
|
|
3176
2728
|
|
|
3177
2729
|
### <a id="initElectionService"></a>initElectionService
|
|
@@ -3240,7 +2792,17 @@ const initStakeIntentService: Initializable<XyoStakeIntentServiceParams, StakeIn
|
|
|
3240
2792
|
***
|
|
3241
2793
|
|
|
3242
2794
|
```ts
|
|
3243
|
-
const initTimeService: Initializable<BaseTimeServiceParams,
|
|
2795
|
+
const initTimeService: Initializable<BaseTimeServiceParams<Pick<Config, "evm">>, TimeSyncViewer>;
|
|
2796
|
+
```
|
|
2797
|
+
|
|
2798
|
+
### <a id="initTransferService"></a>initTransferService
|
|
2799
|
+
|
|
2800
|
+
[**@xyo-network/xl1-cli-lib**](#../README)
|
|
2801
|
+
|
|
2802
|
+
***
|
|
2803
|
+
|
|
2804
|
+
```ts
|
|
2805
|
+
const initTransferService: Initializable<BaseAccountTransferServiceParams, AccountTransfersService>;
|
|
3244
2806
|
```
|
|
3245
2807
|
|
|
3246
2808
|
### <a id="initValidator"></a>initValidator
|