@sentio/runtime 4.0.0-rc.2 → 4.0.0-rc.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/lib/chunk-OLNJTVP4.js +15167 -0
- package/lib/chunk-OLNJTVP4.js.map +1 -0
- package/lib/{chunk-MSVN53DI.js → chunk-VVWSRCNO.js} +1 -5
- package/lib/{chunk-MSVN53DI.js.map → chunk-VVWSRCNO.js.map} +1 -1
- package/lib/index.d.ts +62 -408
- package/lib/index.js +21290 -40
- package/lib/index.js.map +1 -1
- package/lib/processor-runner.js +25 -235
- package/lib/processor-runner.js.map +1 -1
- package/package.json +1 -1
- package/src/full-service.ts +0 -35
- package/src/index.ts +1 -1
- package/src/processor-runner.ts +2 -16
- package/src/service-v3.ts +3 -3
- package/src/utils.ts +21 -1
- package/lib/chunk-63SN5KU2.js +0 -38205
- package/lib/chunk-63SN5KU2.js.map +0 -1
- package/src/service.ts +0 -556
package/lib/index.d.ts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
export { A as AbstractStoreContext, D as DataBindingContext, b as IDataBindingContext, I as IStoreContext, P as Plugin, a as PluginManager, t as timeoutError } from './plugin-D-rx1WCp.js';
|
|
1
|
+
export { A as AbstractStoreContext, D as DataBindingContext, b as IDataBindingContext, I as IStoreContext, P as Plugin, a as PluginManager, S as StoreContext, t as timeoutError } from './plugin-D-rx1WCp.js';
|
|
3
2
|
import * as _sentio_protos from '@sentio/protos';
|
|
4
|
-
import { ProcessResult,
|
|
3
|
+
import { ProcessResult, HandlerType, EthCallParam, ProcessorV3, StartRequest, ProcessConfigRequest, ProcessStreamRequest, DataBinding, UpdateTemplatesRequest, ProcessStreamResponseV3Schema, ExecutionConfigSchema } from '@sentio/protos';
|
|
5
4
|
import { Required } from 'utility-types';
|
|
6
5
|
import * as _bufbuild_protobuf from '@bufbuild/protobuf';
|
|
7
6
|
import { MessageInitShape } from '@bufbuild/protobuf';
|
|
@@ -40,6 +39,7 @@ declare abstract class ListStateStorage<T> extends StateStorage<T[]> {
|
|
|
40
39
|
|
|
41
40
|
declare function mergeProcessResults(results: ProcessResult[]): Required<ProcessResult, 'states'>;
|
|
42
41
|
declare function mergeProcessResultsInPlace(res: ProcessResult, results: ProcessResult[]): Required<ProcessResult, 'states'>;
|
|
42
|
+
declare function recordRuntimeInfo(results: ProcessResult, handlerType: HandlerType): void;
|
|
43
43
|
declare function errorString(e: unknown): string;
|
|
44
44
|
declare const USER_PROCESSOR = "user_processor";
|
|
45
45
|
declare function makeEthCallKey(param: EthCallParam): string;
|
|
@@ -89,29 +89,16 @@ type ProcessorRuntimeOptions = ReturnType<typeof program.opts> & {
|
|
|
89
89
|
target: string;
|
|
90
90
|
};
|
|
91
91
|
|
|
92
|
-
type
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
private started;
|
|
96
|
-
unhandled: Error;
|
|
92
|
+
type ProcessStreamResponseV3Init = MessageInitShape<typeof ProcessStreamResponseV3Schema>;
|
|
93
|
+
declare class ProcessorServiceImplV3 implements ServiceImpl<typeof ProcessorV3> {
|
|
94
|
+
readonly enablePartition: boolean;
|
|
97
95
|
private readonly loader;
|
|
98
96
|
private readonly shutdownHandler?;
|
|
99
|
-
private
|
|
100
|
-
private preparedData;
|
|
101
|
-
readonly enablePartition: boolean;
|
|
97
|
+
private started;
|
|
102
98
|
constructor(loader: () => Promise<any>, options?: ProcessorRuntimeOptions, shutdownHandler?: () => void);
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
processBindings(request: ProcessBindingsRequest, context?: HandlerContext): Promise<MessageInitShape<typeof ProcessBindingResponseSchema>>;
|
|
107
|
-
preprocessBindings(bindings: DataBinding[], preprocessStore: {
|
|
108
|
-
[k: string]: any;
|
|
109
|
-
}, dbContext?: StoreContext, options?: HandlerContext): Promise<PreparedData>;
|
|
110
|
-
preprocessBinding(request: DataBinding, preprocessStore: {
|
|
111
|
-
[k: string]: any;
|
|
112
|
-
}, dbContext?: StoreContext, options?: HandlerContext): Promise<PreprocessResult>;
|
|
113
|
-
processBinding(request: DataBinding, preparedData: PreparedData | undefined, options?: HandlerContext): Promise<ProcessResult>;
|
|
114
|
-
processBindingsStream(requests: AsyncIterable<ProcessStreamRequest>, context: HandlerContext): AsyncGenerator<_sentio_protos.ProcessStreamResponse | {
|
|
99
|
+
start(request: StartRequest, context: HandlerContext): Promise<_bufbuild_protobuf.Message<"google.protobuf.Empty">>;
|
|
100
|
+
getConfig(request: ProcessConfigRequest, context: HandlerContext): Promise<_sentio_protos.ProcessConfigResponse>;
|
|
101
|
+
processBindingsStream(requests: AsyncIterable<ProcessStreamRequest>, context: HandlerContext): AsyncGenerator<_sentio_protos.ProcessStreamResponseV3 | {
|
|
115
102
|
readonly $typeName?: undefined;
|
|
116
103
|
processId?: number | undefined;
|
|
117
104
|
value?: {
|
|
@@ -697,7 +684,7 @@ declare class ProcessorServiceImpl implements ServiceImpl<typeof Processor> {
|
|
|
697
684
|
};
|
|
698
685
|
} | {
|
|
699
686
|
case: "result";
|
|
700
|
-
value: ProcessResult | {
|
|
687
|
+
value: _sentio_protos.ProcessResult | {
|
|
701
688
|
readonly $typeName?: undefined;
|
|
702
689
|
gauges?: (_sentio_protos.GaugeResult | {
|
|
703
690
|
readonly $typeName?: undefined;
|
|
@@ -1293,33 +1280,28 @@ declare class ProcessorServiceImpl implements ServiceImpl<typeof Processor> {
|
|
|
1293
1280
|
};
|
|
1294
1281
|
} | undefined;
|
|
1295
1282
|
};
|
|
1296
|
-
} |
|
|
1297
|
-
|
|
1298
|
-
|
|
1299
|
-
|
|
1300
|
-
|
|
1301
|
-
processId?: number | undefined;
|
|
1302
|
-
dbRequest?: (_sentio_protos.DBRequest | {
|
|
1303
|
-
readonly $typeName?: undefined;
|
|
1304
|
-
opId?: bigint | undefined;
|
|
1305
|
-
op?: {
|
|
1306
|
-
case: undefined;
|
|
1307
|
-
value?: undefined;
|
|
1308
|
-
} | {
|
|
1309
|
-
case: "get";
|
|
1310
|
-
value: _sentio_protos.DBRequest_DBGet | {
|
|
1311
|
-
readonly $typeName?: undefined;
|
|
1312
|
-
entity?: string | undefined;
|
|
1313
|
-
id?: string | undefined;
|
|
1314
|
-
};
|
|
1315
|
-
} | {
|
|
1316
|
-
case: "upsert";
|
|
1317
|
-
value: _sentio_protos.DBRequest_DBUpsert | {
|
|
1283
|
+
} | {
|
|
1284
|
+
case: "tsRequest";
|
|
1285
|
+
value: _sentio_protos.TSRequest | {
|
|
1286
|
+
readonly $typeName?: undefined;
|
|
1287
|
+
data?: (_sentio_protos.TimeseriesResult | {
|
|
1318
1288
|
readonly $typeName?: undefined;
|
|
1319
|
-
|
|
1320
|
-
|
|
1321
|
-
|
|
1322
|
-
|
|
1289
|
+
metadata?: (_sentio_protos.RecordMetaData | {
|
|
1290
|
+
readonly $typeName?: undefined;
|
|
1291
|
+
address?: string | undefined;
|
|
1292
|
+
contractName?: string | undefined;
|
|
1293
|
+
blockNumber?: bigint | undefined;
|
|
1294
|
+
transactionHash?: string | undefined;
|
|
1295
|
+
chainId?: string | undefined;
|
|
1296
|
+
transactionIndex?: number | undefined;
|
|
1297
|
+
logIndex?: number | undefined;
|
|
1298
|
+
name?: string | undefined;
|
|
1299
|
+
labels?: {
|
|
1300
|
+
[key: string]: string;
|
|
1301
|
+
} | undefined;
|
|
1302
|
+
}) | undefined;
|
|
1303
|
+
type?: _sentio_protos.TimeseriesResult_TimeseriesType | undefined;
|
|
1304
|
+
data?: (_sentio_protos.RichStruct | {
|
|
1323
1305
|
readonly $typeName?: undefined;
|
|
1324
1306
|
fields?: {
|
|
1325
1307
|
[key: string]: _sentio_protos.RichValue | {
|
|
@@ -1519,369 +1501,41 @@ declare class ProcessorServiceImpl implements ServiceImpl<typeof Processor> {
|
|
|
1519
1501
|
} | undefined;
|
|
1520
1502
|
};
|
|
1521
1503
|
} | undefined;
|
|
1522
|
-
})
|
|
1523
|
-
|
|
1524
|
-
} | {
|
|
1525
|
-
case: "update";
|
|
1526
|
-
value: _sentio_protos.DBRequest_DBUpdate | {
|
|
1527
|
-
readonly $typeName?: undefined;
|
|
1528
|
-
entity?: string[] | undefined;
|
|
1529
|
-
id?: string[] | undefined;
|
|
1530
|
-
entityData?: (_sentio_protos.EntityUpdateData | {
|
|
1504
|
+
}) | undefined;
|
|
1505
|
+
runtimeInfo?: (_sentio_protos.RuntimeInfo | {
|
|
1531
1506
|
readonly $typeName?: undefined;
|
|
1532
|
-
|
|
1533
|
-
|
|
1534
|
-
|
|
1535
|
-
|
|
1536
|
-
|
|
1537
|
-
|
|
1538
|
-
|
|
1539
|
-
|
|
1540
|
-
|
|
1541
|
-
value: number;
|
|
1542
|
-
case: "intValue";
|
|
1543
|
-
} | {
|
|
1544
|
-
value: bigint;
|
|
1545
|
-
case: "int64Value";
|
|
1546
|
-
} | {
|
|
1547
|
-
value: number;
|
|
1548
|
-
case: "floatValue";
|
|
1549
|
-
} | {
|
|
1550
|
-
value: Uint8Array;
|
|
1551
|
-
case: "bytesValue";
|
|
1552
|
-
} | {
|
|
1553
|
-
value: boolean;
|
|
1554
|
-
case: "boolValue";
|
|
1555
|
-
} | {
|
|
1556
|
-
value: string;
|
|
1557
|
-
case: "stringValue";
|
|
1558
|
-
} | {
|
|
1559
|
-
case: undefined;
|
|
1560
|
-
value?: undefined;
|
|
1561
|
-
} | {
|
|
1562
|
-
case: "timestampValue";
|
|
1563
|
-
value: _sentio_protos.Timestamp | {
|
|
1564
|
-
readonly $typeName?: undefined;
|
|
1565
|
-
seconds?: bigint | undefined;
|
|
1566
|
-
nanos?: number | undefined;
|
|
1567
|
-
};
|
|
1568
|
-
} | {
|
|
1569
|
-
case: "bigintValue";
|
|
1570
|
-
value: _sentio_protos.BigInteger | {
|
|
1571
|
-
readonly $typeName?: undefined;
|
|
1572
|
-
negative?: boolean | undefined;
|
|
1573
|
-
data?: Uint8Array<ArrayBufferLike> | undefined;
|
|
1574
|
-
};
|
|
1575
|
-
} | {
|
|
1576
|
-
case: "bigdecimalValue";
|
|
1577
|
-
value: _sentio_protos.BigDecimalRichValue | {
|
|
1578
|
-
readonly $typeName?: undefined;
|
|
1579
|
-
value?: (_sentio_protos.BigInteger | {
|
|
1580
|
-
readonly $typeName?: undefined;
|
|
1581
|
-
negative?: boolean | undefined;
|
|
1582
|
-
data?: Uint8Array<ArrayBufferLike> | undefined;
|
|
1583
|
-
}) | undefined;
|
|
1584
|
-
exp?: number | undefined;
|
|
1585
|
-
};
|
|
1586
|
-
} | {
|
|
1587
|
-
case: "listValue";
|
|
1588
|
-
value: _sentio_protos.RichValueList | {
|
|
1589
|
-
readonly $typeName?: undefined;
|
|
1590
|
-
values?: (_sentio_protos.RichValue | /*elided*/ any)[] | undefined;
|
|
1591
|
-
};
|
|
1592
|
-
} | {
|
|
1593
|
-
case: "structValue";
|
|
1594
|
-
value: _sentio_protos.RichStruct | {
|
|
1595
|
-
readonly $typeName?: undefined;
|
|
1596
|
-
fields?: {
|
|
1597
|
-
[key: string]: _sentio_protos.RichValue | /*elided*/ any;
|
|
1598
|
-
[key: number]: _sentio_protos.RichValue | /*elided*/ any;
|
|
1599
|
-
} | undefined;
|
|
1600
|
-
};
|
|
1601
|
-
} | {
|
|
1602
|
-
case: "tokenValue";
|
|
1603
|
-
value: _sentio_protos.TokenAmount | {
|
|
1604
|
-
readonly $typeName?: undefined;
|
|
1605
|
-
token?: (_sentio_protos.CoinID | {
|
|
1606
|
-
readonly $typeName?: undefined;
|
|
1607
|
-
id?: {
|
|
1608
|
-
value: string;
|
|
1609
|
-
case: "symbol";
|
|
1610
|
-
} | {
|
|
1611
|
-
case: undefined;
|
|
1612
|
-
value?: undefined;
|
|
1613
|
-
} | {
|
|
1614
|
-
case: "address";
|
|
1615
|
-
value: _sentio_protos.CoinID_AddressIdentifier | {
|
|
1616
|
-
readonly $typeName?: undefined;
|
|
1617
|
-
address?: string | undefined;
|
|
1618
|
-
chain?: string | undefined;
|
|
1619
|
-
};
|
|
1620
|
-
} | undefined;
|
|
1621
|
-
}) | undefined;
|
|
1622
|
-
amount?: (_sentio_protos.BigDecimalRichValue | {
|
|
1623
|
-
readonly $typeName?: undefined;
|
|
1624
|
-
value?: (_sentio_protos.BigInteger | {
|
|
1625
|
-
readonly $typeName?: undefined;
|
|
1626
|
-
negative?: boolean | undefined;
|
|
1627
|
-
data?: Uint8Array<ArrayBufferLike> | undefined;
|
|
1628
|
-
}) | undefined;
|
|
1629
|
-
exp?: number | undefined;
|
|
1630
|
-
}) | undefined;
|
|
1631
|
-
specifiedAt?: (_sentio_protos.Timestamp | {
|
|
1632
|
-
readonly $typeName?: undefined;
|
|
1633
|
-
seconds?: bigint | undefined;
|
|
1634
|
-
nanos?: number | undefined;
|
|
1635
|
-
}) | undefined;
|
|
1636
|
-
};
|
|
1637
|
-
} | undefined;
|
|
1638
|
-
}) | undefined;
|
|
1639
|
-
op?: _sentio_protos.EntityUpdateData_Operator | undefined;
|
|
1640
|
-
};
|
|
1641
|
-
[key: number]: _sentio_protos.EntityUpdateData_FieldValue | {
|
|
1642
|
-
readonly $typeName?: undefined;
|
|
1643
|
-
value?: (_sentio_protos.RichValue | {
|
|
1644
|
-
readonly $typeName?: undefined;
|
|
1645
|
-
value?: {
|
|
1646
|
-
value: _sentio_protos.RichValue_NullValue;
|
|
1647
|
-
case: "nullValue";
|
|
1648
|
-
} | {
|
|
1649
|
-
value: number;
|
|
1650
|
-
case: "intValue";
|
|
1651
|
-
} | {
|
|
1652
|
-
value: bigint;
|
|
1653
|
-
case: "int64Value";
|
|
1654
|
-
} | {
|
|
1655
|
-
value: number;
|
|
1656
|
-
case: "floatValue";
|
|
1657
|
-
} | {
|
|
1658
|
-
value: Uint8Array;
|
|
1659
|
-
case: "bytesValue";
|
|
1660
|
-
} | {
|
|
1661
|
-
value: boolean;
|
|
1662
|
-
case: "boolValue";
|
|
1663
|
-
} | {
|
|
1664
|
-
value: string;
|
|
1665
|
-
case: "stringValue";
|
|
1666
|
-
} | {
|
|
1667
|
-
case: undefined;
|
|
1668
|
-
value?: undefined;
|
|
1669
|
-
} | {
|
|
1670
|
-
case: "timestampValue";
|
|
1671
|
-
value: _sentio_protos.Timestamp | {
|
|
1672
|
-
readonly $typeName?: undefined;
|
|
1673
|
-
seconds?: bigint | undefined;
|
|
1674
|
-
nanos?: number | undefined;
|
|
1675
|
-
};
|
|
1676
|
-
} | {
|
|
1677
|
-
case: "bigintValue";
|
|
1678
|
-
value: _sentio_protos.BigInteger | {
|
|
1679
|
-
readonly $typeName?: undefined;
|
|
1680
|
-
negative?: boolean | undefined;
|
|
1681
|
-
data?: Uint8Array<ArrayBufferLike> | undefined;
|
|
1682
|
-
};
|
|
1683
|
-
} | {
|
|
1684
|
-
case: "bigdecimalValue";
|
|
1685
|
-
value: _sentio_protos.BigDecimalRichValue | {
|
|
1686
|
-
readonly $typeName?: undefined;
|
|
1687
|
-
value?: (_sentio_protos.BigInteger | {
|
|
1688
|
-
readonly $typeName?: undefined;
|
|
1689
|
-
negative?: boolean | undefined;
|
|
1690
|
-
data?: Uint8Array<ArrayBufferLike> | undefined;
|
|
1691
|
-
}) | undefined;
|
|
1692
|
-
exp?: number | undefined;
|
|
1693
|
-
};
|
|
1694
|
-
} | {
|
|
1695
|
-
case: "listValue";
|
|
1696
|
-
value: _sentio_protos.RichValueList | {
|
|
1697
|
-
readonly $typeName?: undefined;
|
|
1698
|
-
values?: (_sentio_protos.RichValue | /*elided*/ any)[] | undefined;
|
|
1699
|
-
};
|
|
1700
|
-
} | {
|
|
1701
|
-
case: "structValue";
|
|
1702
|
-
value: _sentio_protos.RichStruct | {
|
|
1703
|
-
readonly $typeName?: undefined;
|
|
1704
|
-
fields?: {
|
|
1705
|
-
[key: string]: _sentio_protos.RichValue | /*elided*/ any;
|
|
1706
|
-
[key: number]: _sentio_protos.RichValue | /*elided*/ any;
|
|
1707
|
-
} | undefined;
|
|
1708
|
-
};
|
|
1709
|
-
} | {
|
|
1710
|
-
case: "tokenValue";
|
|
1711
|
-
value: _sentio_protos.TokenAmount | {
|
|
1712
|
-
readonly $typeName?: undefined;
|
|
1713
|
-
token?: (_sentio_protos.CoinID | {
|
|
1714
|
-
readonly $typeName?: undefined;
|
|
1715
|
-
id?: {
|
|
1716
|
-
value: string;
|
|
1717
|
-
case: "symbol";
|
|
1718
|
-
} | {
|
|
1719
|
-
case: undefined;
|
|
1720
|
-
value?: undefined;
|
|
1721
|
-
} | {
|
|
1722
|
-
case: "address";
|
|
1723
|
-
value: _sentio_protos.CoinID_AddressIdentifier | {
|
|
1724
|
-
readonly $typeName?: undefined;
|
|
1725
|
-
address?: string | undefined;
|
|
1726
|
-
chain?: string | undefined;
|
|
1727
|
-
};
|
|
1728
|
-
} | undefined;
|
|
1729
|
-
}) | undefined;
|
|
1730
|
-
amount?: (_sentio_protos.BigDecimalRichValue | {
|
|
1731
|
-
readonly $typeName?: undefined;
|
|
1732
|
-
value?: (_sentio_protos.BigInteger | {
|
|
1733
|
-
readonly $typeName?: undefined;
|
|
1734
|
-
negative?: boolean | undefined;
|
|
1735
|
-
data?: Uint8Array<ArrayBufferLike> | undefined;
|
|
1736
|
-
}) | undefined;
|
|
1737
|
-
exp?: number | undefined;
|
|
1738
|
-
}) | undefined;
|
|
1739
|
-
specifiedAt?: (_sentio_protos.Timestamp | {
|
|
1740
|
-
readonly $typeName?: undefined;
|
|
1741
|
-
seconds?: bigint | undefined;
|
|
1742
|
-
nanos?: number | undefined;
|
|
1743
|
-
}) | undefined;
|
|
1744
|
-
};
|
|
1745
|
-
} | undefined;
|
|
1746
|
-
}) | undefined;
|
|
1747
|
-
op?: _sentio_protos.EntityUpdateData_Operator | undefined;
|
|
1748
|
-
};
|
|
1749
|
-
} | undefined;
|
|
1750
|
-
})[] | undefined;
|
|
1751
|
-
};
|
|
1752
|
-
} | {
|
|
1753
|
-
case: "delete";
|
|
1754
|
-
value: _sentio_protos.DBRequest_DBDelete | {
|
|
1755
|
-
readonly $typeName?: undefined;
|
|
1756
|
-
entity?: string[] | undefined;
|
|
1757
|
-
id?: string[] | undefined;
|
|
1758
|
-
};
|
|
1759
|
-
} | {
|
|
1760
|
-
case: "list";
|
|
1761
|
-
value: _sentio_protos.DBRequest_DBList | {
|
|
1507
|
+
from?: HandlerType | undefined;
|
|
1508
|
+
}) | undefined;
|
|
1509
|
+
})[] | undefined;
|
|
1510
|
+
};
|
|
1511
|
+
} | {
|
|
1512
|
+
case: "tplRequest";
|
|
1513
|
+
value: _sentio_protos.TPLRequest | {
|
|
1514
|
+
readonly $typeName?: undefined;
|
|
1515
|
+
templates?: (_sentio_protos.TemplateInstance | {
|
|
1762
1516
|
readonly $typeName?: undefined;
|
|
1763
|
-
|
|
1764
|
-
filters?: (_sentio_protos.DBRequest_DBFilter | {
|
|
1517
|
+
contract?: (_sentio_protos.ContractInfo | {
|
|
1765
1518
|
readonly $typeName?: undefined;
|
|
1766
|
-
|
|
1767
|
-
|
|
1768
|
-
|
|
1769
|
-
|
|
1770
|
-
|
|
1771
|
-
|
|
1772
|
-
|
|
1773
|
-
|
|
1774
|
-
|
|
1775
|
-
|
|
1776
|
-
|
|
1777
|
-
|
|
1778
|
-
|
|
1779
|
-
value: bigint;
|
|
1780
|
-
case: "int64Value";
|
|
1781
|
-
} | {
|
|
1782
|
-
value: number;
|
|
1783
|
-
case: "floatValue";
|
|
1784
|
-
} | {
|
|
1785
|
-
value: Uint8Array;
|
|
1786
|
-
case: "bytesValue";
|
|
1787
|
-
} | {
|
|
1788
|
-
value: boolean;
|
|
1789
|
-
case: "boolValue";
|
|
1790
|
-
} | {
|
|
1791
|
-
value: string;
|
|
1792
|
-
case: "stringValue";
|
|
1793
|
-
} | {
|
|
1794
|
-
case: undefined;
|
|
1795
|
-
value?: undefined;
|
|
1796
|
-
} | {
|
|
1797
|
-
case: "timestampValue";
|
|
1798
|
-
value: _sentio_protos.Timestamp | {
|
|
1799
|
-
readonly $typeName?: undefined;
|
|
1800
|
-
seconds?: bigint | undefined;
|
|
1801
|
-
nanos?: number | undefined;
|
|
1802
|
-
};
|
|
1803
|
-
} | {
|
|
1804
|
-
case: "bigintValue";
|
|
1805
|
-
value: _sentio_protos.BigInteger | {
|
|
1806
|
-
readonly $typeName?: undefined;
|
|
1807
|
-
negative?: boolean | undefined;
|
|
1808
|
-
data?: Uint8Array<ArrayBufferLike> | undefined;
|
|
1809
|
-
};
|
|
1810
|
-
} | {
|
|
1811
|
-
case: "bigdecimalValue";
|
|
1812
|
-
value: _sentio_protos.BigDecimalRichValue | {
|
|
1813
|
-
readonly $typeName?: undefined;
|
|
1814
|
-
value?: (_sentio_protos.BigInteger | {
|
|
1815
|
-
readonly $typeName?: undefined;
|
|
1816
|
-
negative?: boolean | undefined;
|
|
1817
|
-
data?: Uint8Array<ArrayBufferLike> | undefined;
|
|
1818
|
-
}) | undefined;
|
|
1819
|
-
exp?: number | undefined;
|
|
1820
|
-
};
|
|
1821
|
-
} | {
|
|
1822
|
-
case: "listValue";
|
|
1823
|
-
value: _sentio_protos.RichValueList | /*elided*/ any;
|
|
1824
|
-
} | {
|
|
1825
|
-
case: "structValue";
|
|
1826
|
-
value: _sentio_protos.RichStruct | {
|
|
1827
|
-
readonly $typeName?: undefined;
|
|
1828
|
-
fields?: {
|
|
1829
|
-
[key: string]: _sentio_protos.RichValue | /*elided*/ any;
|
|
1830
|
-
[key: number]: _sentio_protos.RichValue | /*elided*/ any;
|
|
1831
|
-
} | undefined;
|
|
1832
|
-
};
|
|
1833
|
-
} | {
|
|
1834
|
-
case: "tokenValue";
|
|
1835
|
-
value: _sentio_protos.TokenAmount | {
|
|
1836
|
-
readonly $typeName?: undefined;
|
|
1837
|
-
token?: (_sentio_protos.CoinID | {
|
|
1838
|
-
readonly $typeName?: undefined;
|
|
1839
|
-
id?: {
|
|
1840
|
-
value: string;
|
|
1841
|
-
case: "symbol";
|
|
1842
|
-
} | {
|
|
1843
|
-
case: undefined;
|
|
1844
|
-
value?: undefined;
|
|
1845
|
-
} | {
|
|
1846
|
-
case: "address";
|
|
1847
|
-
value: _sentio_protos.CoinID_AddressIdentifier | {
|
|
1848
|
-
readonly $typeName?: undefined;
|
|
1849
|
-
address?: string | undefined;
|
|
1850
|
-
chain?: string | undefined;
|
|
1851
|
-
};
|
|
1852
|
-
} | undefined;
|
|
1853
|
-
}) | undefined;
|
|
1854
|
-
amount?: (_sentio_protos.BigDecimalRichValue | {
|
|
1855
|
-
readonly $typeName?: undefined;
|
|
1856
|
-
value?: (_sentio_protos.BigInteger | {
|
|
1857
|
-
readonly $typeName?: undefined;
|
|
1858
|
-
negative?: boolean | undefined;
|
|
1859
|
-
data?: Uint8Array<ArrayBufferLike> | undefined;
|
|
1860
|
-
}) | undefined;
|
|
1861
|
-
exp?: number | undefined;
|
|
1862
|
-
}) | undefined;
|
|
1863
|
-
specifiedAt?: (_sentio_protos.Timestamp | {
|
|
1864
|
-
readonly $typeName?: undefined;
|
|
1865
|
-
seconds?: bigint | undefined;
|
|
1866
|
-
nanos?: number | undefined;
|
|
1867
|
-
}) | undefined;
|
|
1868
|
-
};
|
|
1869
|
-
} | undefined;
|
|
1870
|
-
})[] | undefined;
|
|
1871
|
-
}) | undefined;
|
|
1872
|
-
})[] | undefined;
|
|
1873
|
-
cursor?: string | undefined;
|
|
1874
|
-
pageSize?: number | undefined | undefined;
|
|
1875
|
-
};
|
|
1876
|
-
} | undefined;
|
|
1877
|
-
}) | undefined;
|
|
1519
|
+
name?: string | undefined;
|
|
1520
|
+
chainId?: string | undefined;
|
|
1521
|
+
address?: string | undefined;
|
|
1522
|
+
abi?: string | undefined;
|
|
1523
|
+
}) | undefined;
|
|
1524
|
+
startBlock?: bigint | undefined;
|
|
1525
|
+
endBlock?: bigint | undefined;
|
|
1526
|
+
templateId?: number | undefined;
|
|
1527
|
+
baseLabels?: _bufbuild_protobuf.JsonObject | undefined;
|
|
1528
|
+
})[] | undefined;
|
|
1529
|
+
remove?: boolean | undefined;
|
|
1530
|
+
};
|
|
1531
|
+
} | undefined;
|
|
1878
1532
|
}, void, any>;
|
|
1879
|
-
|
|
1880
|
-
|
|
1881
|
-
handleRequest(request: ProcessStreamRequest, lastBinding: DataBinding | undefined, subject: Subject<
|
|
1533
|
+
protected handleRequests(requests: AsyncIterable<ProcessStreamRequest>, subject: Subject<ProcessStreamResponseV3Init>): Promise<void>;
|
|
1534
|
+
private contexts;
|
|
1535
|
+
handleRequest(request: ProcessStreamRequest, lastBinding: DataBinding | undefined, subject: Subject<ProcessStreamResponseV3Init>): Promise<void>;
|
|
1882
1536
|
private startProcess;
|
|
1537
|
+
updateTemplates(request: UpdateTemplatesRequest, context: HandlerContext): Promise<_bufbuild_protobuf.Message<"google.protobuf.Empty">>;
|
|
1883
1538
|
}
|
|
1884
|
-
declare function recordRuntimeInfo(results: ProcessResult, handlerType: HandlerType): void;
|
|
1885
1539
|
|
|
1886
1540
|
/**
|
|
1887
1541
|
* Configuration for the in-memory cache feature.
|
|
@@ -2092,4 +1746,4 @@ declare const processMetrics: {
|
|
|
2092
1746
|
};
|
|
2093
1747
|
declare const metricsStorage: AsyncLocalStorage<string>;
|
|
2094
1748
|
|
|
2095
|
-
export { type ChainConfig, DummyProvider, Endpoints, GLOBAL_CONFIG, type GlobalConfig, ListStateStorage, MapStateStorage,
|
|
1749
|
+
export { type ChainConfig, DummyProvider, Endpoints, GLOBAL_CONFIG, type GlobalConfig, ListStateStorage, MapStateStorage, ProcessorServiceImplV3, QueuedStaticJsonRpcProvider, type Semver, State, StateStorage, USER_PROCESSOR, compareSemver, configureEndpoints, dbMetrics, errorString, getProvider, locatePackageJson, makeEthCallKey, mergeProcessResults, mergeProcessResultsInPlace, metricsStorage, parseSemver, processMetrics, providerMetrics, recordRuntimeInfo };
|