@midnight-ntwrk/midnight-js-types 3.0.0-alpha.2 → 3.0.0-alpha.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.
@@ -25,8 +25,8 @@ export type Witness<PS> = (context: WitnessContext<any, PS>, ...rest: any[]) =>
25
25
  export type Witnesses<PS = any> = Record<string, Witness<PS>>;
26
26
  /**
27
27
  * Interface for a contract. The data types defined in this file are generic shapes for the artifacts
28
- * produced by the `compactc` compiler. In other words, this `Contract` interface should match the shape
29
- * of any `Contract` class produced by `compactc`. Midnight.js uses it for generic constraints.
28
+ * produced by the `compact` compiler. In other words, this `Contract` interface should match the shape
29
+ * of any `Contract` class produced by `compact`. Midnight.js uses it for generic constraints.
30
30
  *
31
31
  * @typeParam PS - The private state modified by the contract witnesses.
32
32
  * @typeParam W - The contract witnesses type.
package/dist/index.cjs CHANGED
@@ -178,7 +178,7 @@ const NOTHING_TO_PROVE = 'NothingToProve';
178
178
  */
179
179
  class ZKConfigProvider {
180
180
  /**
181
- * Retrieves the verifier keys produced by `compactc` for the given circuits.
181
+ * Retrieves the verifier keys produced by `compact` compiler for the given circuits.
182
182
  * @param circuitIds The circuit IDs of the verifier keys to retrieve.
183
183
  */
184
184
  async getVerifierKeys(circuitIds) {
@@ -188,7 +188,7 @@ class ZKConfigProvider {
188
188
  }));
189
189
  }
190
190
  /**
191
- * Retrieves all zero-knowledge artifacts produced by `compactc` for the given circuit.
191
+ * Retrieves all zero-knowledge artifacts produced by `compact` compiler for the given circuit.
192
192
  * @param circuitId The circuit ID of the artifacts to retrieve.
193
193
  */
194
194
  async get(circuitId) {
package/dist/index.d.cts CHANGED
@@ -30,8 +30,8 @@ type Witness<PS> = (context: WitnessContext<any, PS>, ...rest: any[]) => [PS, an
30
30
  type Witnesses<PS = any> = Record<string, Witness<PS>>;
31
31
  /**
32
32
  * Interface for a contract. The data types defined in this file are generic shapes for the artifacts
33
- * produced by the `compactc` compiler. In other words, this `Contract` interface should match the shape
34
- * of any `Contract` class produced by `compactc`. Midnight.js uses it for generic constraints.
33
+ * produced by the `compact` compiler. In other words, this `Contract` interface should match the shape
34
+ * of any `Contract` class produced by `compact`. Midnight.js uses it for generic constraints.
35
35
  *
36
36
  * @typeParam PS - The private state modified by the contract witnesses.
37
37
  * @typeParam W - The contract witnesses type.
@@ -272,11 +272,11 @@ type UnshieldedUtxos = {
272
272
  /**
273
273
  * Represents the unshielded UTXOs that have been created but not yet spent.
274
274
  */
275
- readonly created: UnshieldedUtxo[];
275
+ readonly created: readonly UnshieldedUtxo[];
276
276
  /**
277
277
  * Represents the unshielded UTXOs that have been spent.
278
278
  */
279
- readonly spent: UnshieldedUtxo[];
279
+ readonly spent: readonly UnshieldedUtxo[];
280
280
  };
281
281
  /**
282
282
  * Represents the fees associated with a particular entity or operation.
@@ -318,7 +318,7 @@ interface FinalizedTxData {
318
318
  /**
319
319
  * All transaction IDs of the submitted transaction.
320
320
  */
321
- readonly identifiers: TransactionId[];
321
+ readonly identifiers: readonly TransactionId[];
322
322
  /**
323
323
  * The transaction hash of the transaction in which the original transaction was included.
324
324
  */
@@ -665,27 +665,27 @@ interface WalletProvider {
665
665
  */
666
666
  declare abstract class ZKConfigProvider<K extends string> {
667
667
  /**
668
- * Retrieves the zero-knowledge intermediate representation produced by `compactc` for the given circuit.
668
+ * Retrieves the zero-knowledge intermediate representation produced by `compact` compiler for the given circuit.
669
669
  * @param circuitId The circuit ID of the ZKIR to retrieve.
670
670
  */
671
671
  abstract getZKIR(circuitId: K): Promise<ZKIR>;
672
672
  /**
673
- * Retrieves the prover key produced by `compactc` for the given circuit.
673
+ * Retrieves the prover key produced by `compact` compiler for the given circuit.
674
674
  * @param circuitId The circuit ID of the prover key to retrieve.
675
675
  */
676
676
  abstract getProverKey(circuitId: K): Promise<ProverKey>;
677
677
  /**
678
- * Retrieves the verifier key produced by `compactc` for the given circuit.
678
+ * Retrieves the verifier key produced by `compact` compiler for the given circuit.
679
679
  * @param circuitId The circuit ID of the verifier key to retrieve.
680
680
  */
681
681
  abstract getVerifierKey(circuitId: K): Promise<VerifierKey>;
682
682
  /**
683
- * Retrieves the verifier keys produced by `compactc` for the given circuits.
683
+ * Retrieves the verifier keys produced by `compact` compiler for the given circuits.
684
684
  * @param circuitIds The circuit IDs of the verifier keys to retrieve.
685
685
  */
686
686
  getVerifierKeys(circuitIds: K[]): Promise<[K, VerifierKey][]>;
687
687
  /**
688
- * Retrieves all zero-knowledge artifacts produced by `compactc` for the given circuit.
688
+ * Retrieves all zero-knowledge artifacts produced by `compact` compiler for the given circuit.
689
689
  * @param circuitId The circuit ID of the artifacts to retrieve.
690
690
  */
691
691
  get(circuitId: K): Promise<ZKConfig<K>>;
package/dist/index.d.mts CHANGED
@@ -30,8 +30,8 @@ type Witness<PS> = (context: WitnessContext<any, PS>, ...rest: any[]) => [PS, an
30
30
  type Witnesses<PS = any> = Record<string, Witness<PS>>;
31
31
  /**
32
32
  * Interface for a contract. The data types defined in this file are generic shapes for the artifacts
33
- * produced by the `compactc` compiler. In other words, this `Contract` interface should match the shape
34
- * of any `Contract` class produced by `compactc`. Midnight.js uses it for generic constraints.
33
+ * produced by the `compact` compiler. In other words, this `Contract` interface should match the shape
34
+ * of any `Contract` class produced by `compact`. Midnight.js uses it for generic constraints.
35
35
  *
36
36
  * @typeParam PS - The private state modified by the contract witnesses.
37
37
  * @typeParam W - The contract witnesses type.
@@ -272,11 +272,11 @@ type UnshieldedUtxos = {
272
272
  /**
273
273
  * Represents the unshielded UTXOs that have been created but not yet spent.
274
274
  */
275
- readonly created: UnshieldedUtxo[];
275
+ readonly created: readonly UnshieldedUtxo[];
276
276
  /**
277
277
  * Represents the unshielded UTXOs that have been spent.
278
278
  */
279
- readonly spent: UnshieldedUtxo[];
279
+ readonly spent: readonly UnshieldedUtxo[];
280
280
  };
281
281
  /**
282
282
  * Represents the fees associated with a particular entity or operation.
@@ -318,7 +318,7 @@ interface FinalizedTxData {
318
318
  /**
319
319
  * All transaction IDs of the submitted transaction.
320
320
  */
321
- readonly identifiers: TransactionId[];
321
+ readonly identifiers: readonly TransactionId[];
322
322
  /**
323
323
  * The transaction hash of the transaction in which the original transaction was included.
324
324
  */
@@ -665,27 +665,27 @@ interface WalletProvider {
665
665
  */
666
666
  declare abstract class ZKConfigProvider<K extends string> {
667
667
  /**
668
- * Retrieves the zero-knowledge intermediate representation produced by `compactc` for the given circuit.
668
+ * Retrieves the zero-knowledge intermediate representation produced by `compact` compiler for the given circuit.
669
669
  * @param circuitId The circuit ID of the ZKIR to retrieve.
670
670
  */
671
671
  abstract getZKIR(circuitId: K): Promise<ZKIR>;
672
672
  /**
673
- * Retrieves the prover key produced by `compactc` for the given circuit.
673
+ * Retrieves the prover key produced by `compact` compiler for the given circuit.
674
674
  * @param circuitId The circuit ID of the prover key to retrieve.
675
675
  */
676
676
  abstract getProverKey(circuitId: K): Promise<ProverKey>;
677
677
  /**
678
- * Retrieves the verifier key produced by `compactc` for the given circuit.
678
+ * Retrieves the verifier key produced by `compact` compiler for the given circuit.
679
679
  * @param circuitId The circuit ID of the verifier key to retrieve.
680
680
  */
681
681
  abstract getVerifierKey(circuitId: K): Promise<VerifierKey>;
682
682
  /**
683
- * Retrieves the verifier keys produced by `compactc` for the given circuits.
683
+ * Retrieves the verifier keys produced by `compact` compiler for the given circuits.
684
684
  * @param circuitIds The circuit IDs of the verifier keys to retrieve.
685
685
  */
686
686
  getVerifierKeys(circuitIds: K[]): Promise<[K, VerifierKey][]>;
687
687
  /**
688
- * Retrieves all zero-knowledge artifacts produced by `compactc` for the given circuit.
688
+ * Retrieves all zero-knowledge artifacts produced by `compact` compiler for the given circuit.
689
689
  * @param circuitId The circuit ID of the artifacts to retrieve.
690
690
  */
691
691
  get(circuitId: K): Promise<ZKConfig<K>>;
package/dist/index.d.ts CHANGED
@@ -30,8 +30,8 @@ type Witness<PS> = (context: WitnessContext<any, PS>, ...rest: any[]) => [PS, an
30
30
  type Witnesses<PS = any> = Record<string, Witness<PS>>;
31
31
  /**
32
32
  * Interface for a contract. The data types defined in this file are generic shapes for the artifacts
33
- * produced by the `compactc` compiler. In other words, this `Contract` interface should match the shape
34
- * of any `Contract` class produced by `compactc`. Midnight.js uses it for generic constraints.
33
+ * produced by the `compact` compiler. In other words, this `Contract` interface should match the shape
34
+ * of any `Contract` class produced by `compact`. Midnight.js uses it for generic constraints.
35
35
  *
36
36
  * @typeParam PS - The private state modified by the contract witnesses.
37
37
  * @typeParam W - The contract witnesses type.
@@ -272,11 +272,11 @@ type UnshieldedUtxos = {
272
272
  /**
273
273
  * Represents the unshielded UTXOs that have been created but not yet spent.
274
274
  */
275
- readonly created: UnshieldedUtxo[];
275
+ readonly created: readonly UnshieldedUtxo[];
276
276
  /**
277
277
  * Represents the unshielded UTXOs that have been spent.
278
278
  */
279
- readonly spent: UnshieldedUtxo[];
279
+ readonly spent: readonly UnshieldedUtxo[];
280
280
  };
281
281
  /**
282
282
  * Represents the fees associated with a particular entity or operation.
@@ -318,7 +318,7 @@ interface FinalizedTxData {
318
318
  /**
319
319
  * All transaction IDs of the submitted transaction.
320
320
  */
321
- readonly identifiers: TransactionId[];
321
+ readonly identifiers: readonly TransactionId[];
322
322
  /**
323
323
  * The transaction hash of the transaction in which the original transaction was included.
324
324
  */
@@ -665,27 +665,27 @@ interface WalletProvider {
665
665
  */
666
666
  declare abstract class ZKConfigProvider<K extends string> {
667
667
  /**
668
- * Retrieves the zero-knowledge intermediate representation produced by `compactc` for the given circuit.
668
+ * Retrieves the zero-knowledge intermediate representation produced by `compact` compiler for the given circuit.
669
669
  * @param circuitId The circuit ID of the ZKIR to retrieve.
670
670
  */
671
671
  abstract getZKIR(circuitId: K): Promise<ZKIR>;
672
672
  /**
673
- * Retrieves the prover key produced by `compactc` for the given circuit.
673
+ * Retrieves the prover key produced by `compact` compiler for the given circuit.
674
674
  * @param circuitId The circuit ID of the prover key to retrieve.
675
675
  */
676
676
  abstract getProverKey(circuitId: K): Promise<ProverKey>;
677
677
  /**
678
- * Retrieves the verifier key produced by `compactc` for the given circuit.
678
+ * Retrieves the verifier key produced by `compact` compiler for the given circuit.
679
679
  * @param circuitId The circuit ID of the verifier key to retrieve.
680
680
  */
681
681
  abstract getVerifierKey(circuitId: K): Promise<VerifierKey>;
682
682
  /**
683
- * Retrieves the verifier keys produced by `compactc` for the given circuits.
683
+ * Retrieves the verifier keys produced by `compact` compiler for the given circuits.
684
684
  * @param circuitIds The circuit IDs of the verifier keys to retrieve.
685
685
  */
686
686
  getVerifierKeys(circuitIds: K[]): Promise<[K, VerifierKey][]>;
687
687
  /**
688
- * Retrieves all zero-knowledge artifacts produced by `compactc` for the given circuit.
688
+ * Retrieves all zero-knowledge artifacts produced by `compact` compiler for the given circuit.
689
689
  * @param circuitId The circuit ID of the artifacts to retrieve.
690
690
  */
691
691
  get(circuitId: K): Promise<ZKConfig<K>>;
package/dist/index.mjs CHANGED
@@ -176,7 +176,7 @@ const NOTHING_TO_PROVE = 'NothingToProve';
176
176
  */
177
177
  class ZKConfigProvider {
178
178
  /**
179
- * Retrieves the verifier keys produced by `compactc` for the given circuits.
179
+ * Retrieves the verifier keys produced by `compact` compiler for the given circuits.
180
180
  * @param circuitIds The circuit IDs of the verifier keys to retrieve.
181
181
  */
182
182
  async getVerifierKeys(circuitIds) {
@@ -186,7 +186,7 @@ class ZKConfigProvider {
186
186
  }));
187
187
  }
188
188
  /**
189
- * Retrieves all zero-knowledge artifacts produced by `compactc` for the given circuit.
189
+ * Retrieves all zero-knowledge artifacts produced by `compact` compiler for the given circuit.
190
190
  * @param circuitId The circuit ID of the artifacts to retrieve.
191
191
  */
192
192
  async get(circuitId) {
@@ -132,11 +132,11 @@ export type UnshieldedUtxos = {
132
132
  /**
133
133
  * Represents the unshielded UTXOs that have been created but not yet spent.
134
134
  */
135
- readonly created: UnshieldedUtxo[];
135
+ readonly created: readonly UnshieldedUtxo[];
136
136
  /**
137
137
  * Represents the unshielded UTXOs that have been spent.
138
138
  */
139
- readonly spent: UnshieldedUtxo[];
139
+ readonly spent: readonly UnshieldedUtxo[];
140
140
  };
141
141
  /**
142
142
  * Represents the fees associated with a particular entity or operation.
@@ -178,7 +178,7 @@ export interface FinalizedTxData {
178
178
  /**
179
179
  * All transaction IDs of the submitted transaction.
180
180
  */
181
- readonly identifiers: TransactionId[];
181
+ readonly identifiers: readonly TransactionId[];
182
182
  /**
183
183
  * The transaction hash of the transaction in which the original transaction was included.
184
184
  */
@@ -1 +1 @@
1
- {"version":3,"file":"midnight-types.d.ts","sourceRoot":"","sources":["../src/midnight-types.ts"],"names":[],"mappings":"AAeA,OAAO,EACL,KAAK,OAAO,EACZ,KAAK,eAAe,EACpB,KAAK,UAAU,EACf,KAAK,KAAK,EACV,KAAK,YAAY,EACjB,KAAK,gBAAgB,EACrB,KAAK,WAAW,EAChB,KAAK,eAAe,EACpB,KAAK,aAAa,EAClB,KAAK,mBAAmB,EACzB,MAAM,2BAA2B,CAAC;AAEnC;;GAEG;AACH,MAAM,MAAM,SAAS,GAAG,UAAU,GAAG;IACnC;;OAEG;IACH,QAAQ,CAAC,SAAS,EAAE,OAAO,MAAM,CAAC;CACnC,CAAC;AACF;;;;;GAKG;AACH,eAAO,MAAM,eAAe,GAAI,YAAY,UAAU,KAAG,SAExD,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,WAAW,GAAG,UAAU,GAAG;IACrC;;OAEG;IACH,QAAQ,CAAC,WAAW,EAAE,OAAO,MAAM,CAAC;CACrC,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,iBAAiB,GAAI,YAAY,UAAU,KAAG,WAE1D,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,IAAI,GAAG,UAAU,GAAG;IAC9B;;OAEG;IACH,QAAQ,CAAC,IAAI,EAAE,OAAO,MAAM,CAAC;CAC9B,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,UAAU,GAAI,YAAY,UAAU,KAAG,IAEnD,CAAC;AAEF;;;GAGG;AACH,MAAM,WAAW,QAAQ,C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AAI,EAAE,OAAO,gBAAgB,CAAC;IACvC,QAAQ,CAAC,WAAW,EAAE,YAAY,CAAC;CACpC,CAAC;AAEF,MAAM,MAAM,aAAa,CAAC,YAAY,IAClC,kBAAkB,GAClB,yBAAyB,CAAC,YAAY,CAAC,GACvC,cAAc,CAAC,YAAY,CAAC,CAAC"}
@@ -8,27 +8,27 @@ import type { ProverKey, VerifierKey, ZKConfig, ZKIR } from './midnight-types';
8
8
  */
9
9
  export declare abstract class ZKConfigProvider<K extends string> {
10
10
  /**
11
- * Retrieves the zero-knowledge intermediate representation produced by `compactc` for the given circuit.
11
+ * Retrieves the zero-knowledge intermediate representation produced by `compact` compiler for the given circuit.
12
12
  * @param circuitId The circuit ID of the ZKIR to retrieve.
13
13
  */
14
14
  abstract getZKIR(circuitId: K): Promise<ZKIR>;
15
15
  /**
16
- * Retrieves the prover key produced by `compactc` for the given circuit.
16
+ * Retrieves the prover key produced by `compact` compiler for the given circuit.
17
17
  * @param circuitId The circuit ID of the prover key to retrieve.
18
18
  */
19
19
  abstract getProverKey(circuitId: K): Promise<ProverKey>;
20
20
  /**
21
- * Retrieves the verifier key produced by `compactc` for the given circuit.
21
+ * Retrieves the verifier key produced by `compact` compiler for the given circuit.
22
22
  * @param circuitId The circuit ID of the verifier key to retrieve.
23
23
  */
24
24
  abstract getVerifierKey(circuitId: K): Promise<VerifierKey>;
25
25
  /**
26
- * Retrieves the verifier keys produced by `compactc` for the given circuits.
26
+ * Retrieves the verifier keys produced by `compact` compiler for the given circuits.
27
27
  * @param circuitIds The circuit IDs of the verifier keys to retrieve.
28
28
  */
29
29
  getVerifierKeys(circuitIds: K[]): Promise<[K, VerifierKey][]>;
30
30
  /**
31
- * Retrieves all zero-knowledge artifacts produced by `compactc` for the given circuit.
31
+ * Retrieves all zero-knowledge artifacts produced by `compact` compiler for the given circuit.
32
32
  * @param circuitId The circuit ID of the artifacts to retrieve.
33
33
  */
34
34
  get(circuitId: K): Promise<ZKConfig<K>>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@midnight-ntwrk/midnight-js-types",
3
- "version": "3.0.0-alpha.2",
3
+ "version": "3.0.0-alpha.3",
4
4
  "description": "Shared data types and interfaces for MidnightJS modules",
5
5
  "main": "dist/index.cjs",
6
6
  "module": "dist/index.mjs",