@midnight-ntwrk/midnight-js-types 4.1.0 → 5.0.0-alpha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/contract.d.ts +2 -1
- package/dist/contract.d.ts.map +1 -1
- package/dist/errors.d.ts +2 -2
- package/dist/errors.d.ts.map +1 -1
- package/dist/index.cjs +8 -5
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +328 -7
- package/dist/index.d.mts +328 -7
- package/dist/index.d.ts +328 -7
- package/dist/index.mjs +8 -5
- package/dist/index.mjs.map +1 -1
- package/dist/private-state-provider.d.ts +100 -2
- package/dist/private-state-provider.d.ts.map +1 -1
- package/dist/public-data-provider.d.ts +223 -0
- package/dist/public-data-provider.d.ts.map +1 -1
- package/package.json +8 -3
|
@@ -58,6 +58,179 @@ export type ContractStateObservableConfig = ((TxIdConfig | BlockHashConfig | Blo
|
|
|
58
58
|
*/
|
|
59
59
|
readonly inclusive?: boolean;
|
|
60
60
|
}) | Latest | All;
|
|
61
|
+
/**
|
|
62
|
+
* The eleven contract event variants surfaced by the indexer (MIP-0002 public
|
|
63
|
+
* contract log emission). The variant *set* is identical to compact-js's
|
|
64
|
+
* `LogEventType`; only the string casing differs (PascalCase here, kebab-case
|
|
65
|
+
* in compact-js, SCREAMING_SNAKE on the indexer wire). Adding a variant is a
|
|
66
|
+
* breaking change — the mapping, filter translation, and exhaustiveness guards
|
|
67
|
+
* all key off this union.
|
|
68
|
+
*/
|
|
69
|
+
export type ContractEventType = 'ShieldedSpend' | 'ShieldedReceive' | 'ShieldedMint' | 'ShieldedBurn' | 'UnshieldedSpend' | 'UnshieldedReceive' | 'UnshieldedMint' | 'UnshieldedBurn' | 'Paused' | 'Unpaused' | 'Misc';
|
|
70
|
+
/**
|
|
71
|
+
* A `sender` / `recipient` on an unshielded event. The indexer returns a tagged
|
|
72
|
+
* union (`Either<ZswapCoinPublicKey, ContractAddress>`); this preserves the
|
|
73
|
+
* discriminator so consumers can tell a user address from a contract address
|
|
74
|
+
* rather than receiving a bare, ambiguous string.
|
|
75
|
+
*/
|
|
76
|
+
export interface ContractEventAddress {
|
|
77
|
+
/** Which kind of address `value` holds. */
|
|
78
|
+
readonly kind: 'user' | 'contract';
|
|
79
|
+
/** The hex-encoded address. */
|
|
80
|
+
readonly value: string;
|
|
81
|
+
}
|
|
82
|
+
/**
|
|
83
|
+
* Fields common to every {@link ContractEvent} variant, regardless of type.
|
|
84
|
+
*/
|
|
85
|
+
export interface ContractEventBase {
|
|
86
|
+
/**
|
|
87
|
+
* Monotonic indexer cursor for this event. Inclusive resumption point — to
|
|
88
|
+
* resume *after* this event, pass `{ fromId: id + 1 }`.
|
|
89
|
+
*/
|
|
90
|
+
readonly id: number;
|
|
91
|
+
/**
|
|
92
|
+
* Highest event id the indexer currently knows (the chain tip for events).
|
|
93
|
+
* Compare against {@link id} to detect catch-up / whether more events exist.
|
|
94
|
+
*/
|
|
95
|
+
readonly maxId: number;
|
|
96
|
+
/**
|
|
97
|
+
* Payload schema version — selects the (future) per-event payload decoder.
|
|
98
|
+
* Iteration-1 events are `version: 1`.
|
|
99
|
+
*/
|
|
100
|
+
readonly version: number;
|
|
101
|
+
/** Address of the contract that emitted the event. */
|
|
102
|
+
readonly contractAddress: ContractAddress;
|
|
103
|
+
/**
|
|
104
|
+
* Indexer-internal `BIGSERIAL` row id of the emitting transaction — **not**
|
|
105
|
+
* the chain transaction hash. To fetch the chain transaction, issue a
|
|
106
|
+
* separate query. Note the asymmetry with {@link ContractEventFilterBase.transactionHash},
|
|
107
|
+
* which narrows by chain hash.
|
|
108
|
+
*/
|
|
109
|
+
readonly transactionId: number;
|
|
110
|
+
/**
|
|
111
|
+
* Opaque hex `VersionedLogItem` bytes, carried verbatim. Never decoded or
|
|
112
|
+
* validated by this provider — the forward bridge to a future compact-js
|
|
113
|
+
* payload decoder.
|
|
114
|
+
*/
|
|
115
|
+
readonly raw: string;
|
|
116
|
+
}
|
|
117
|
+
/**
|
|
118
|
+
* A decoded contract event. Discriminated union keyed on `eventType`; narrow on
|
|
119
|
+
* it to access the variant-specific payload fields.
|
|
120
|
+
*
|
|
121
|
+
* `amount` is always a `string` (encodes up to a 16-byte integer) — never round
|
|
122
|
+
* it through `Number()`. Absent nullable fields are normalized to `undefined`
|
|
123
|
+
* (never `null`).
|
|
124
|
+
*/
|
|
125
|
+
export type ContractEvent = (ContractEventBase & {
|
|
126
|
+
readonly eventType: 'ShieldedSpend';
|
|
127
|
+
readonly nullifier: string;
|
|
128
|
+
}) | (ContractEventBase & {
|
|
129
|
+
readonly eventType: 'ShieldedReceive';
|
|
130
|
+
readonly commitment: string;
|
|
131
|
+
readonly ciphertext?: string;
|
|
132
|
+
readonly receivingContractAddress?: string;
|
|
133
|
+
}) | (ContractEventBase & {
|
|
134
|
+
readonly eventType: 'ShieldedMint';
|
|
135
|
+
readonly commitment: string;
|
|
136
|
+
readonly domainSep: string;
|
|
137
|
+
readonly amount?: string;
|
|
138
|
+
}) | (ContractEventBase & {
|
|
139
|
+
readonly eventType: 'ShieldedBurn';
|
|
140
|
+
readonly nullifier: string;
|
|
141
|
+
readonly amount?: string;
|
|
142
|
+
}) | (ContractEventBase & {
|
|
143
|
+
readonly eventType: 'UnshieldedSpend';
|
|
144
|
+
readonly sender: ContractEventAddress;
|
|
145
|
+
readonly domainSep: string;
|
|
146
|
+
readonly tokenType: string;
|
|
147
|
+
readonly amount: string;
|
|
148
|
+
}) | (ContractEventBase & {
|
|
149
|
+
readonly eventType: 'UnshieldedReceive';
|
|
150
|
+
readonly recipient: ContractEventAddress;
|
|
151
|
+
readonly domainSep: string;
|
|
152
|
+
readonly tokenType: string;
|
|
153
|
+
readonly amount: string;
|
|
154
|
+
}) | (ContractEventBase & {
|
|
155
|
+
readonly eventType: 'UnshieldedMint';
|
|
156
|
+
readonly domainSep: string;
|
|
157
|
+
readonly tokenType: string;
|
|
158
|
+
readonly amount: string;
|
|
159
|
+
}) | (ContractEventBase & {
|
|
160
|
+
readonly eventType: 'UnshieldedBurn';
|
|
161
|
+
readonly sender: ContractEventAddress;
|
|
162
|
+
readonly tokenType: string;
|
|
163
|
+
readonly amount: string;
|
|
164
|
+
}) | (ContractEventBase & {
|
|
165
|
+
readonly eventType: 'Paused';
|
|
166
|
+
}) | (ContractEventBase & {
|
|
167
|
+
readonly eventType: 'Unpaused';
|
|
168
|
+
}) | (ContractEventBase & {
|
|
169
|
+
readonly eventType: 'Misc';
|
|
170
|
+
readonly name: string;
|
|
171
|
+
readonly payload: string;
|
|
172
|
+
});
|
|
173
|
+
/**
|
|
174
|
+
* A single prefix filter on an indexed field of a standard event. `prefix` is
|
|
175
|
+
* hex-encoded; the empty string matches all values.
|
|
176
|
+
*/
|
|
177
|
+
export interface ContractEventFieldPrefix {
|
|
178
|
+
readonly fieldName: string;
|
|
179
|
+
readonly prefix: string;
|
|
180
|
+
}
|
|
181
|
+
/**
|
|
182
|
+
* Filter fields shared by the query and the subscription.
|
|
183
|
+
*/
|
|
184
|
+
export interface ContractEventFilterBase {
|
|
185
|
+
/** Required: the contract whose events to return. */
|
|
186
|
+
readonly contractAddress: ContractAddress;
|
|
187
|
+
/**
|
|
188
|
+
* Optional subset of event types. Omit to mean "all types". An empty array
|
|
189
|
+
* is rejected (it would silently match nothing).
|
|
190
|
+
*/
|
|
191
|
+
readonly types?: ContractEventType[];
|
|
192
|
+
/**
|
|
193
|
+
* Optional prefix filters on indexed fields. Accepted only when every
|
|
194
|
+
* filtered type is a standard (non-`Misc`) variant — see method docs.
|
|
195
|
+
*/
|
|
196
|
+
readonly fieldPrefixes?: ContractEventFieldPrefix[];
|
|
197
|
+
/** Optional: narrow to events emitted from the transaction with this chain hash. */
|
|
198
|
+
readonly transactionHash?: string;
|
|
199
|
+
}
|
|
200
|
+
/**
|
|
201
|
+
* Filter for {@link PublicDataProvider.queryContractEvents}. `fromBlock` /
|
|
202
|
+
* `toBlock` are inclusive block-height bounds for a finite, point-in-time read.
|
|
203
|
+
*/
|
|
204
|
+
export interface ContractEventQueryFilter extends ContractEventFilterBase {
|
|
205
|
+
readonly fromBlock?: number;
|
|
206
|
+
readonly toBlock?: number;
|
|
207
|
+
}
|
|
208
|
+
/**
|
|
209
|
+
* Filter for {@link PublicDataProvider.contractEventsObservable}. The stream
|
|
210
|
+
* start is supplied separately via {@link ContractEventCursor}; `toBlock`
|
|
211
|
+
* terminates the stream once the chain reaches that height.
|
|
212
|
+
*/
|
|
213
|
+
export interface ContractEventSubscriptionFilter extends ContractEventFilterBase {
|
|
214
|
+
readonly toBlock?: number;
|
|
215
|
+
}
|
|
216
|
+
/**
|
|
217
|
+
* Where a subscription begins. Exactly one addressing mode per call — two
|
|
218
|
+
* competing start points are unrepresentable by construction.
|
|
219
|
+
*/
|
|
220
|
+
export type ContractEventCursor = {
|
|
221
|
+
readonly fromId: number;
|
|
222
|
+
} | {
|
|
223
|
+
readonly fromBlock: number;
|
|
224
|
+
};
|
|
225
|
+
/**
|
|
226
|
+
* Pagination window for {@link PublicDataProvider.queryContractEvents}.
|
|
227
|
+
* `offset` is only stable within a window with a fixed upper bound — pin
|
|
228
|
+
* `toBlock` for multi-page reads.
|
|
229
|
+
*/
|
|
230
|
+
export interface ContractEventsPage {
|
|
231
|
+
readonly limit?: number;
|
|
232
|
+
readonly offset?: number;
|
|
233
|
+
}
|
|
61
234
|
/**
|
|
62
235
|
* Interface for a public data service. This service retrieves public data from the blockchain.
|
|
63
236
|
* TODO: Add timeouts or retry limits to 'watchFor' queries.
|
|
@@ -159,5 +332,55 @@ export interface PublicDataProvider {
|
|
|
159
332
|
* @return {Observable<UnshieldedBalances>} An observable that emits the unshielded balances for the provided address.
|
|
160
333
|
*/
|
|
161
334
|
unshieldedBalancesObservable(address: ContractAddress, config: ContractStateObservableConfig): Observable<UnshieldedBalances>;
|
|
335
|
+
/**
|
|
336
|
+
* Queries contract events for a contract address — a finite, paginated,
|
|
337
|
+
* point-in-time read.
|
|
338
|
+
*
|
|
339
|
+
* Results are returned in ascending `id` order. The result is a plain array
|
|
340
|
+
* with no total count: detect the end via `result.length < limit`, and read
|
|
341
|
+
* `maxId` on the last item to see how far the tip is.
|
|
342
|
+
*
|
|
343
|
+
* When `page.limit` is omitted an implementation-defined default page size is
|
|
344
|
+
* applied (never an undocumented server default). `offset` is only stable
|
|
345
|
+
* within a window with a fixed upper bound — pin `filter.toBlock` for
|
|
346
|
+
* multi-page reads, or prefer the `getAllContractEvents` helper / the
|
|
347
|
+
* subscription for tailing.
|
|
348
|
+
*
|
|
349
|
+
* Fails fast (synchronously, before any network call) on an invalid
|
|
350
|
+
* `contractAddress`, an empty `types` array, `fieldPrefixes` combined with
|
|
351
|
+
* `Misc` (or with `types` omitted), or an unknown `fieldName`. Network /
|
|
352
|
+
* GraphQL errors reject the promise — an empty array always means "no
|
|
353
|
+
* matching events", never a swallowed error.
|
|
354
|
+
*
|
|
355
|
+
* @param filter The events to return; `contractAddress` is required.
|
|
356
|
+
* @param page Optional pagination window.
|
|
357
|
+
*/
|
|
358
|
+
queryContractEvents(filter: ContractEventQueryFilter, page?: ContractEventsPage): Promise<ContractEvent[]>;
|
|
359
|
+
/**
|
|
360
|
+
* Streams contract events for a contract address — replay from a cursor, then
|
|
361
|
+
* live, in one continuous stream.
|
|
362
|
+
*
|
|
363
|
+
* The start is supplied via `opts.startAt`: `{ fromId }` resumes inclusively
|
|
364
|
+
* from a known event id, `{ fromBlock }` starts from a block height. Omitting
|
|
365
|
+
* `startAt` streams from the start of history. The indexer replays historical
|
|
366
|
+
* events from that point in monotonic `id` order, then continues live — there
|
|
367
|
+
* is no separate backfill query and no client-side dedup.
|
|
368
|
+
*
|
|
369
|
+
* `{ fromId }` is **inclusive**; to resume *after* the last seen event pass
|
|
370
|
+
* `{ fromId: lastSeenId + 1 }`.
|
|
371
|
+
*
|
|
372
|
+
* `filter.toBlock` completes the stream once the chain reaches that height;
|
|
373
|
+
* without it the stream runs until unsubscribed or the provider is disposed.
|
|
374
|
+
* Delivery is **at-least-once** across transport reconnects (the provider
|
|
375
|
+
* does not advance the cursor) — persisting consumers should dedup by `id`.
|
|
376
|
+
* Transport failures surface as an observable `error`, never a silent
|
|
377
|
+
* completion.
|
|
378
|
+
*
|
|
379
|
+
* @param filter The events to stream; `contractAddress` is required.
|
|
380
|
+
* @param opts Optional stream start.
|
|
381
|
+
*/
|
|
382
|
+
contractEventsObservable(filter: ContractEventSubscriptionFilter, opts?: {
|
|
383
|
+
startAt?: ContractEventCursor;
|
|
384
|
+
}): Observable<ContractEvent>;
|
|
162
385
|
}
|
|
163
386
|
//# sourceMappingURL=public-data-provider.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"public-data-provider.d.ts","sourceRoot":"","sources":["../src/public-data-provider.ts"],"names":[],"mappings":"AAeA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,sDAAsD,CAAC;AAC1F,OAAO,KAAK,EAAE,eAAe,EAAE,gBAAgB,EAAE,aAAa,EAAE,eAAe,EAAE,MAAM,6CAA6C,CAAC;AACrI,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAEvC,OAAO,KAAK,EAAE,eAAe,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AAE5E;;GAEG;AACH,MAAM,MAAM,GAAG,GAAG;IAChB,QAAQ,CAAC,IAAI,EAAE,KAAK,CAAC;CACtB,CAAA;AAED;;GAEG;AACH,MAAM,MAAM,MAAM,GAAG;IACnB,QAAQ,CAAC,IAAI,EAAE,QAAQ,CAAC;CACzB,CAAA;AAED;;GAEG;AACH,MAAM,MAAM,UAAU,GAAG;IACvB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB;;OAEG;IACH,QAAQ,CAAC,IAAI,EAAE,aAAa,CAAC;CAC9B,CAAA;AAED;;;GAGG;AACH,MAAM,MAAM,iBAAiB,GAAG;IAC9B,QAAQ,CAAC,IAAI,EAAE,aAAa,CAAC;IAC7B;;OAEG;IACH,QAAQ,CAAC,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CAAC;IAEtC;;;;OAIG;IACH,qBAAqB,CAAC,eAAe,EAAE,eAAe,GAAG,OAAO,CAAC,aAAa,CAAC,CAAC;IAEhF;;;;;OAKG;IACH,0BAA0B,CAAC,eAAe,EAAE,eAAe,GAAG,OAAO,CAAC,kBAAkB,CAAC,CAAC;IAE1F;;;;;;;;;;;;;OAaG;IACH,oBAAoB,CAAC,eAAe,EAAE,eAAe,GAAG,OAAO,CAAC,eAAe,CAAC,CAAC;IAEjF;;;;;;;;;;;;;;;;;;OAkBG;IACH,cAAc,CAAC,IAAI,EAAE,aAAa,GAAG,OAAO,CAAC,eAAe,CAAC,CAAC;IAE9D;;;;;;OAMG;IACH,uBAAuB,CAAC,OAAO,EAAE,eAAe,EAAE,MAAM,EAAE,6BAA6B,GAAG,UAAU,CAAC,aAAa,CAAC,CAAC;IAEpH;;;;;;OAMG;IACH,4BAA4B,CAAC,OAAO,EAAE,eAAe,EAAE,MAAM,EAAE,6BAA6B,GAAG,UAAU,CAAC,kBAAkB,CAAC,CAAC;IAE9H;;;;;;;;;;;;;;;;;;;;;;OAsBG;IACH,mBAAmB,CAAC,MAAM,EAAE,wBAAwB,EAAE,IAAI,CAAC,EAAE,kBAAkB,GAAG,OAAO,CAAC,aAAa,EAAE,CAAC,CAAC;IAE3G;;;;;;;;;;;;;;;;;;;;;;OAsBG;IACH,wBAAwB,CACtB,MAAM,EAAE,+BAA+B,EACvC,IAAI,CAAC,EAAE;QAAE,OAAO,CAAC,EAAE,mBAAmB,CAAA;KAAE,GACvC,UAAU,CAAC,aAAa,CAAC,CAAC;CAC9B"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@midnight-ntwrk/midnight-js-types",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "5.0.0-alpha.1",
|
|
4
4
|
"description": "Shared data types and interfaces for MidnightJS modules",
|
|
5
5
|
"main": "dist/index.cjs",
|
|
6
6
|
"module": "dist/index.mjs",
|
|
@@ -29,7 +29,12 @@
|
|
|
29
29
|
"dist/"
|
|
30
30
|
],
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@midnight-ntwrk/midnight-js-protocol": "
|
|
33
|
-
"
|
|
32
|
+
"@midnight-ntwrk/midnight-js-protocol": "5.0.0-alpha.1",
|
|
33
|
+
"effect": "^3.20.0",
|
|
34
|
+
"pino": "^10.3.1",
|
|
35
|
+
"rxjs": "^7.8.2"
|
|
36
|
+
},
|
|
37
|
+
"devDependencies": {
|
|
38
|
+
"vitest": "^4.1.7"
|
|
34
39
|
}
|
|
35
40
|
}
|