@midnight-ntwrk/midnight-js-types 0.1.15 → 0.2.4
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/{index.js → index.cjs} +30 -22
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.ts +2 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/{index.esm.js → index.mjs} +27 -22
- package/dist/index.mjs.map +1 -0
- package/dist/midnight-types.d.ts +52 -31
- package/dist/midnight-types.d.ts.map +1 -1
- package/dist/private-state-provider.d.ts +42 -10
- package/dist/private-state-provider.d.ts.map +1 -1
- package/dist/proof-provider.d.ts +19 -4
- package/dist/proof-provider.d.ts.map +1 -1
- package/package.json +12 -5
- package/dist/index.esm.js.map +0 -1
- package/dist/index.js.map +0 -1
|
@@ -1,41 +1,46 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
+
var ledger = require('@midnight-ntwrk/ledger');
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* Creates a branded prover key representation from a prover key binary.
|
|
7
|
+
*
|
|
8
|
+
* @param uint8Array The prover key binary.
|
|
9
|
+
*/
|
|
3
10
|
const createProverKey = (uint8Array) => {
|
|
4
11
|
return uint8Array;
|
|
5
12
|
};
|
|
13
|
+
/**
|
|
14
|
+
* Creates a branded verifier key representation from a verifier key binary.
|
|
15
|
+
*
|
|
16
|
+
* @param uint8Array The verifier key binary.
|
|
17
|
+
*/
|
|
6
18
|
const createVerifierKey = (uint8Array) => {
|
|
7
19
|
return uint8Array;
|
|
8
20
|
};
|
|
9
|
-
const createZKIR = (string) => {
|
|
10
|
-
return string;
|
|
11
|
-
};
|
|
12
|
-
const UNPROVEN_TX_SYM = Symbol('unproven_tx');
|
|
13
21
|
/**
|
|
14
|
-
* Creates
|
|
15
|
-
*
|
|
22
|
+
* Creates a branded ZKIR representation from a ZKIR binary.
|
|
23
|
+
*
|
|
24
|
+
* @param uint8Array The ZKIR binary.
|
|
16
25
|
*/
|
|
17
|
-
const
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
});
|
|
21
|
-
const UNBALANCED_TX_SYM = Symbol('unbalanced_tx');
|
|
26
|
+
const createZKIR = (uint8Array) => {
|
|
27
|
+
return uint8Array;
|
|
28
|
+
};
|
|
22
29
|
/**
|
|
23
30
|
* Creates an {@link UnbalancedTransaction} from a ledger transaction.
|
|
31
|
+
*
|
|
24
32
|
* @param tx The ledger transaction to wrap.
|
|
25
33
|
*/
|
|
26
|
-
const createUnbalancedTx = (tx) =>
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
});
|
|
30
|
-
const BALANCED_TX_SYM = Symbol('balanced_tx');
|
|
34
|
+
const createUnbalancedTx = (tx) => {
|
|
35
|
+
return tx;
|
|
36
|
+
};
|
|
31
37
|
/**
|
|
32
38
|
* Creates an {@link BalancedTransaction} from a ledger transaction.
|
|
33
39
|
* @param tx The ledger transaction to wrap.
|
|
34
40
|
*/
|
|
35
|
-
const createBalancedTx = (tx) =>
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
});
|
|
41
|
+
const createBalancedTx = (tx) => {
|
|
42
|
+
return tx;
|
|
43
|
+
};
|
|
39
44
|
/**
|
|
40
45
|
* Indicates that the transaction is invalid.
|
|
41
46
|
*/
|
|
@@ -85,6 +90,10 @@ class ZKConfigProvider {
|
|
|
85
90
|
}
|
|
86
91
|
}
|
|
87
92
|
|
|
93
|
+
Object.defineProperty(exports, 'UnprovenTransaction', {
|
|
94
|
+
enumerable: true,
|
|
95
|
+
get: function () { return ledger.UnprovenTransaction; }
|
|
96
|
+
});
|
|
88
97
|
exports.FailEntirely = FailEntirely;
|
|
89
98
|
exports.FailFallible = FailFallible;
|
|
90
99
|
exports.SucceedEntirely = SucceedEntirely;
|
|
@@ -92,7 +101,6 @@ exports.ZKConfigProvider = ZKConfigProvider;
|
|
|
92
101
|
exports.createBalancedTx = createBalancedTx;
|
|
93
102
|
exports.createProverKey = createProverKey;
|
|
94
103
|
exports.createUnbalancedTx = createUnbalancedTx;
|
|
95
|
-
exports.createUnprovenTx = createUnprovenTx;
|
|
96
104
|
exports.createVerifierKey = createVerifierKey;
|
|
97
105
|
exports.createZKIR = createZKIR;
|
|
98
|
-
//# sourceMappingURL=index.
|
|
106
|
+
//# sourceMappingURL=index.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.cjs","sources":["../src/midnight-types.ts","../src/zk-config-provider.ts"],"sourcesContent":[null,null],"names":[],"mappings":";;;;AAYA;;;;AAIG;AACU,MAAA,eAAe,GAAG,CAAC,UAAsB,KAAe;AACnE,IAAA,OAAO,UAAuB,CAAC;AACjC,EAAE;AAYF;;;;AAIG;AACU,MAAA,iBAAiB,GAAG,CAAC,UAAsB,KAAiB;AACvE,IAAA,OAAO,UAAyB,CAAC;AACnC,EAAE;AAYF;;;;AAIG;AACU,MAAA,UAAU,GAAG,CAAC,UAAsB,KAAU;AACzD,IAAA,OAAO,UAAkB,CAAC;AAC5B,EAAE;AAmCF;;;;AAIG;AACU,MAAA,kBAAkB,GAAG,CAAC,EAAe,KAA2B;AAC3E,IAAA,OAAO,EAA2B,CAAC;AACrC,EAAE;AAYF;;;AAGG;AACU,MAAA,gBAAgB,GAAG,CAAC,EAAe,KAAyB;AACvE,IAAA,OAAO,EAAyB,CAAC;AACnC,EAAE;AAEF;;AAEG;AACI,MAAM,YAAY,GAAG,eAAwB;AAEpD;;;;;AAKG;AACI,MAAM,YAAY,GAAG,eAAwB;AAEpD;;;AAGG;AACI,MAAM,eAAe,GAAG;;ACtI/B;;;;;;AAMG;MACmB,gBAAgB,CAAA;AAmBpC;;;AAGG;IACH,MAAM,eAAe,CAAC,UAAe,EAAA;AACnC,QAAA,OAAO,OAAO,CAAC,GAAG,CAChB,UAAU,CAAC,GAAG,CAAC,OAAO,EAAE,KAAI;YAC1B,MAAM,GAAG,GAAG,MAAM,IAAI,CAAC,cAAc,CAAC,EAAE,CAAC,CAAC;AAC1C,YAAA,OAAO,CAAC,EAAE,EAAE,GAAG,CAAC,CAAC;SAClB,CAAC,CACH,CAAC;KACH;AAED;;;AAGG;IACH,MAAM,GAAG,CAAC,SAAY,EAAA;QACpB,OAAO;YACL,SAAS;AACT,YAAA,SAAS,EAAE,MAAM,IAAI,CAAC,YAAY,CAAC,SAAS,CAAC;AAC7C,YAAA,WAAW,EAAE,MAAM,IAAI,CAAC,cAAc,CAAC,SAAS,CAAC;AACjD,YAAA,IAAI,EAAE,MAAM,IAAI,CAAC,OAAO,CAAC,SAAS,CAAC;SACpC,CAAC;KACH;AACF;;;;;;;;;;;;;;;;"}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
export * from './private-state-provider';
|
|
2
2
|
export * from './midnight-provider';
|
|
3
|
-
export { ProverKey, VerifierKey, ZKIR, ZKConfig, FailEntirely, FailFallible, SucceedEntirely, TxStatus,
|
|
3
|
+
export { ProverKey, VerifierKey, ZKIR, ZKConfig, FailEntirely, FailFallible, SucceedEntirely, TxStatus, UnbalancedTransaction, BalancedTransaction, FinalizedTxData, createProverKey, createVerifierKey, createZKIR, createBalancedTx, createUnbalancedTx } from './midnight-types';
|
|
4
4
|
export * from './proof-provider';
|
|
5
5
|
export * from './wallet-provider';
|
|
6
6
|
export * from './public-data-provider';
|
|
7
7
|
export * from './providers';
|
|
8
8
|
export * from './zk-config-provider';
|
|
9
|
+
export { UnprovenTransaction } from '@midnight-ntwrk/ledger';
|
|
9
10
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,0BAA0B,CAAC;AACzC,cAAc,qBAAqB,CAAC;AACpC,OAAO,EACL,SAAS,EACT,WAAW,EACX,IAAI,EACJ,QAAQ,EACR,YAAY,EACZ,YAAY,EACZ,eAAe,EACf,QAAQ,EACR,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,0BAA0B,CAAC;AACzC,cAAc,qBAAqB,CAAC;AACpC,OAAO,EACL,SAAS,EACT,WAAW,EACX,IAAI,EACJ,QAAQ,EACR,YAAY,EACZ,YAAY,EACZ,eAAe,EACf,QAAQ,EACR,qBAAqB,EACrB,mBAAmB,EACnB,eAAe,EACf,eAAe,EACf,iBAAiB,EACjB,UAAU,EACV,gBAAgB,EAChB,kBAAkB,EACnB,MAAM,kBAAkB,CAAC;AAC1B,cAAc,kBAAkB,CAAC;AACjC,cAAc,mBAAmB,CAAC;AAClC,cAAc,wBAAwB,CAAC;AACvC,cAAc,aAAa,CAAC;AAC5B,cAAc,sBAAsB,CAAC;AACrC,OAAO,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAC"}
|
|
@@ -1,39 +1,44 @@
|
|
|
1
|
+
export { UnprovenTransaction } from '@midnight-ntwrk/ledger';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Creates a branded prover key representation from a prover key binary.
|
|
5
|
+
*
|
|
6
|
+
* @param uint8Array The prover key binary.
|
|
7
|
+
*/
|
|
1
8
|
const createProverKey = (uint8Array) => {
|
|
2
9
|
return uint8Array;
|
|
3
10
|
};
|
|
11
|
+
/**
|
|
12
|
+
* Creates a branded verifier key representation from a verifier key binary.
|
|
13
|
+
*
|
|
14
|
+
* @param uint8Array The verifier key binary.
|
|
15
|
+
*/
|
|
4
16
|
const createVerifierKey = (uint8Array) => {
|
|
5
17
|
return uint8Array;
|
|
6
18
|
};
|
|
7
|
-
const createZKIR = (string) => {
|
|
8
|
-
return string;
|
|
9
|
-
};
|
|
10
|
-
const UNPROVEN_TX_SYM = Symbol('unproven_tx');
|
|
11
19
|
/**
|
|
12
|
-
* Creates
|
|
13
|
-
*
|
|
20
|
+
* Creates a branded ZKIR representation from a ZKIR binary.
|
|
21
|
+
*
|
|
22
|
+
* @param uint8Array The ZKIR binary.
|
|
14
23
|
*/
|
|
15
|
-
const
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
});
|
|
19
|
-
const UNBALANCED_TX_SYM = Symbol('unbalanced_tx');
|
|
24
|
+
const createZKIR = (uint8Array) => {
|
|
25
|
+
return uint8Array;
|
|
26
|
+
};
|
|
20
27
|
/**
|
|
21
28
|
* Creates an {@link UnbalancedTransaction} from a ledger transaction.
|
|
29
|
+
*
|
|
22
30
|
* @param tx The ledger transaction to wrap.
|
|
23
31
|
*/
|
|
24
|
-
const createUnbalancedTx = (tx) =>
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
});
|
|
28
|
-
const BALANCED_TX_SYM = Symbol('balanced_tx');
|
|
32
|
+
const createUnbalancedTx = (tx) => {
|
|
33
|
+
return tx;
|
|
34
|
+
};
|
|
29
35
|
/**
|
|
30
36
|
* Creates an {@link BalancedTransaction} from a ledger transaction.
|
|
31
37
|
* @param tx The ledger transaction to wrap.
|
|
32
38
|
*/
|
|
33
|
-
const createBalancedTx = (tx) =>
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
});
|
|
39
|
+
const createBalancedTx = (tx) => {
|
|
40
|
+
return tx;
|
|
41
|
+
};
|
|
37
42
|
/**
|
|
38
43
|
* Indicates that the transaction is invalid.
|
|
39
44
|
*/
|
|
@@ -83,5 +88,5 @@ class ZKConfigProvider {
|
|
|
83
88
|
}
|
|
84
89
|
}
|
|
85
90
|
|
|
86
|
-
export { FailEntirely, FailFallible, SucceedEntirely, ZKConfigProvider, createBalancedTx, createProverKey, createUnbalancedTx,
|
|
87
|
-
//# sourceMappingURL=index.
|
|
91
|
+
export { FailEntirely, FailFallible, SucceedEntirely, ZKConfigProvider, createBalancedTx, createProverKey, createUnbalancedTx, createVerifierKey, createZKIR };
|
|
92
|
+
//# sourceMappingURL=index.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.mjs","sources":["../src/midnight-types.ts","../src/zk-config-provider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IAAI,EAAE,MAAM,IAAI,CAAC,OAAO,CAAC,SAAS,CAAC;SACpC,CAAC;KACH;AACF;;;;"}
|
package/dist/midnight-types.d.ts
CHANGED
|
@@ -1,25 +1,49 @@
|
|
|
1
|
-
import type { Transaction
|
|
1
|
+
import type { Transaction, TransactionHash, TransactionId } from '@midnight-ntwrk/ledger';
|
|
2
2
|
/**
|
|
3
3
|
* A type representing a prover key derived from a contract circuit.
|
|
4
4
|
*/
|
|
5
5
|
export type ProverKey = Uint8Array & {
|
|
6
|
+
/**
|
|
7
|
+
* Unique symbol brand.
|
|
8
|
+
*/
|
|
6
9
|
readonly ProverKey: unique symbol;
|
|
7
10
|
};
|
|
11
|
+
/**
|
|
12
|
+
* Creates a branded prover key representation from a prover key binary.
|
|
13
|
+
*
|
|
14
|
+
* @param uint8Array The prover key binary.
|
|
15
|
+
*/
|
|
8
16
|
export declare const createProverKey: (uint8Array: Uint8Array) => ProverKey;
|
|
9
17
|
/**
|
|
10
18
|
* A type representing a verifier key derived from a contract circuit.
|
|
11
19
|
*/
|
|
12
20
|
export type VerifierKey = Uint8Array & {
|
|
21
|
+
/**
|
|
22
|
+
* Unique symbol brand.
|
|
23
|
+
*/
|
|
13
24
|
readonly VerifierKey: unique symbol;
|
|
14
25
|
};
|
|
26
|
+
/**
|
|
27
|
+
* Creates a branded verifier key representation from a verifier key binary.
|
|
28
|
+
*
|
|
29
|
+
* @param uint8Array The verifier key binary.
|
|
30
|
+
*/
|
|
15
31
|
export declare const createVerifierKey: (uint8Array: Uint8Array) => VerifierKey;
|
|
16
32
|
/**
|
|
17
33
|
* A type representing a zero-knowledge circuit intermediate representation derived from a contract circuit.
|
|
18
34
|
*/
|
|
19
|
-
export type ZKIR =
|
|
35
|
+
export type ZKIR = Uint8Array & {
|
|
36
|
+
/**
|
|
37
|
+
* Unique symbol brand.
|
|
38
|
+
*/
|
|
20
39
|
readonly ZKIR: unique symbol;
|
|
21
40
|
};
|
|
22
|
-
|
|
41
|
+
/**
|
|
42
|
+
* Creates a branded ZKIR representation from a ZKIR binary.
|
|
43
|
+
*
|
|
44
|
+
* @param uint8Array The ZKIR binary.
|
|
45
|
+
*/
|
|
46
|
+
export declare const createZKIR: (uint8Array: Uint8Array) => ZKIR;
|
|
23
47
|
/**
|
|
24
48
|
* Contains all information required by the {@link ProofProvider}
|
|
25
49
|
* @typeParam K - The type of the circuit ID.
|
|
@@ -42,45 +66,35 @@ export interface ZKConfig<K extends string> {
|
|
|
42
66
|
*/
|
|
43
67
|
readonly zkir: ZKIR;
|
|
44
68
|
}
|
|
45
|
-
declare const UNPROVEN_TX_SYM: unique symbol;
|
|
46
|
-
/**
|
|
47
|
-
* A type representing an unproven transaction.
|
|
48
|
-
*/
|
|
49
|
-
export type UnprovenTransaction = {
|
|
50
|
-
readonly UnprovenTransaction: typeof UNPROVEN_TX_SYM;
|
|
51
|
-
readonly tx: UnprovenLedgerTransaction;
|
|
52
|
-
};
|
|
53
|
-
/**
|
|
54
|
-
* Creates an {@link UnprovenTransaction} from an unproven ledger transaction.
|
|
55
|
-
* @param tx The ledger transaction to wrap.
|
|
56
|
-
*/
|
|
57
|
-
export declare const createUnprovenTx: (tx: UnprovenLedgerTransaction) => UnprovenTransaction;
|
|
58
|
-
declare const UNBALANCED_TX_SYM: unique symbol;
|
|
59
69
|
/**
|
|
60
70
|
* A type representing a proven, unbalanced transaction.
|
|
61
71
|
*/
|
|
62
|
-
export type UnbalancedTransaction = {
|
|
63
|
-
|
|
64
|
-
|
|
72
|
+
export type UnbalancedTransaction = Transaction & {
|
|
73
|
+
/**
|
|
74
|
+
* Unique symbol brand.
|
|
75
|
+
*/
|
|
76
|
+
readonly UnbalancedTransaction: unique symbol;
|
|
65
77
|
};
|
|
66
78
|
/**
|
|
67
79
|
* Creates an {@link UnbalancedTransaction} from a ledger transaction.
|
|
80
|
+
*
|
|
68
81
|
* @param tx The ledger transaction to wrap.
|
|
69
82
|
*/
|
|
70
|
-
export declare const createUnbalancedTx: (tx:
|
|
71
|
-
declare const BALANCED_TX_SYM: unique symbol;
|
|
83
|
+
export declare const createUnbalancedTx: (tx: Transaction) => UnbalancedTransaction;
|
|
72
84
|
/**
|
|
73
|
-
* A type representing a proven, balanced transaction.
|
|
85
|
+
* A type representing a proven, balanced, submittable transaction.
|
|
74
86
|
*/
|
|
75
|
-
export type BalancedTransaction = {
|
|
76
|
-
|
|
77
|
-
|
|
87
|
+
export type BalancedTransaction = Transaction & {
|
|
88
|
+
/**
|
|
89
|
+
* Unique symbol brand.
|
|
90
|
+
*/
|
|
91
|
+
readonly BalancedTransaction: unique symbol;
|
|
78
92
|
};
|
|
79
93
|
/**
|
|
80
94
|
* Creates an {@link BalancedTransaction} from a ledger transaction.
|
|
81
95
|
* @param tx The ledger transaction to wrap.
|
|
82
96
|
*/
|
|
83
|
-
export declare const createBalancedTx: (tx:
|
|
97
|
+
export declare const createBalancedTx: (tx: Transaction) => BalancedTransaction;
|
|
84
98
|
/**
|
|
85
99
|
* Indicates that the transaction is invalid.
|
|
86
100
|
*/
|
|
@@ -101,10 +115,18 @@ export declare const SucceedEntirely: "SucceedEntirely";
|
|
|
101
115
|
* The status of a transaction.
|
|
102
116
|
*/
|
|
103
117
|
export type TxStatus = typeof FailEntirely | typeof FailFallible | typeof SucceedEntirely;
|
|
118
|
+
/**
|
|
119
|
+
* Block identifier
|
|
120
|
+
*/
|
|
121
|
+
export type BlockHash = string;
|
|
104
122
|
/**
|
|
105
123
|
* Data for any finalized transaction.
|
|
106
124
|
*/
|
|
107
125
|
export interface FinalizedTxData {
|
|
126
|
+
/**
|
|
127
|
+
* The transaction that was finalized.
|
|
128
|
+
*/
|
|
129
|
+
readonly tx: Transaction;
|
|
108
130
|
/**
|
|
109
131
|
* The status of a submitted transaction.
|
|
110
132
|
*/
|
|
@@ -112,19 +134,18 @@ export interface FinalizedTxData {
|
|
|
112
134
|
/**
|
|
113
135
|
* The transaction ID of the submitted transaction.
|
|
114
136
|
*/
|
|
115
|
-
readonly txId:
|
|
137
|
+
readonly txId: TransactionId;
|
|
116
138
|
/**
|
|
117
139
|
* The transaction hash of the transaction in which the original transaction was included.
|
|
118
140
|
*/
|
|
119
|
-
readonly txHash:
|
|
141
|
+
readonly txHash: TransactionHash;
|
|
120
142
|
/**
|
|
121
143
|
* The block hash of the block in which the transaction was included.
|
|
122
144
|
*/
|
|
123
|
-
readonly blockHash:
|
|
145
|
+
readonly blockHash: BlockHash;
|
|
124
146
|
/**
|
|
125
147
|
* The block height of the block in which the transaction was included.
|
|
126
148
|
*/
|
|
127
149
|
readonly blockHeight: number;
|
|
128
150
|
}
|
|
129
|
-
export {};
|
|
130
151
|
//# sourceMappingURL=midnight-types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"midnight-types.d.ts","sourceRoot":"","sources":["../src/midnight-types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"midnight-types.d.ts","sourceRoot":"","sources":["../src/midnight-types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,eAAe,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AAE1F;;GAEG;AACH,MAAM,MAAM,SAAS,GAAG,UAAU,GAAG;IACnC;;OAEG;IACH,QAAQ,CAAC,SAAS,EAAE,OAAO,MAAM,CAAC;CACnC,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,eAAe,eAAgB,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,eAAgB,UAAU,KAAG,WAE1D,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,IAAI,GAAG,UAAU,GAAG;IAC9B;;OAEG;IACH,QAAQ,CAAC,IAAI,EAAE,OAAO,MAAM,CAAC;CAC9B,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QAAQ,CAAC;IAC1B;;OAEG;IACH,QAAQ,CAAC,IAAI,EAAE,aAAa,CAAC;IAC7B;;OAEG;IACH,QAAQ,CAAC,MAAM,EAAE,eAAe,CAAC;IACjC;;OAEG;IACH,QAAQ,CAAC,SAAS,EAAE,SAAS,CAAC;IAC9B;;OAEG;IACH,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;CAC9B"}
|
|
@@ -1,34 +1,66 @@
|
|
|
1
|
+
import type { SigningKey } from '@midnight-ntwrk/compact-runtime';
|
|
1
2
|
/**
|
|
2
3
|
* Type representing valid private state schemas. Each value is a private state
|
|
3
4
|
* for a particular contract. Each key is the name used to refer to a private state.
|
|
4
5
|
*/
|
|
5
|
-
export type PrivateStateSchema = Record<string
|
|
6
|
+
export type PrivateStateSchema = Record<string, any>;
|
|
7
|
+
/**
|
|
8
|
+
* A string key of a {@link PrivateStateSchema} object.
|
|
9
|
+
*/
|
|
10
|
+
export type PrivateStateKey<PSS extends PrivateStateSchema = PrivateStateSchema> = keyof PSS & string;
|
|
6
11
|
/**
|
|
7
12
|
* Interface for a typed key-valued store containing contract private states.
|
|
13
|
+
*
|
|
8
14
|
* @typeParam PSS - The schema for the private states stored. Each value is a
|
|
9
15
|
* private state for a particular contract. Each key is the name
|
|
10
16
|
* used to refer to a private state.
|
|
11
17
|
*/
|
|
12
|
-
export interface PrivateStateProvider<PSS extends PrivateStateSchema> {
|
|
18
|
+
export interface PrivateStateProvider<PSS extends PrivateStateSchema = PrivateStateSchema> {
|
|
13
19
|
/**
|
|
14
|
-
* Store the given state at the given key.
|
|
15
|
-
*
|
|
20
|
+
* Store the given private state at the given key.
|
|
21
|
+
*
|
|
22
|
+
* @param key The private state identifier.
|
|
16
23
|
* @param state The private state to store.
|
|
17
24
|
*/
|
|
18
|
-
set<PSK extends
|
|
25
|
+
set<PSK extends PrivateStateKey<PSS>>(key: PSK, state: PSS[PSK]): Promise<void>;
|
|
19
26
|
/**
|
|
20
27
|
* Retrieve the private state at the given key.
|
|
21
|
-
*
|
|
28
|
+
*
|
|
29
|
+
* @param key The private state identifier.
|
|
22
30
|
*/
|
|
23
|
-
get<PSK extends
|
|
31
|
+
get<PSK extends PrivateStateKey<PSS>>(key: PSK): Promise<PSS[PSK] | null>;
|
|
24
32
|
/**
|
|
25
33
|
* Remove the value at the given key.
|
|
26
|
-
*
|
|
34
|
+
*
|
|
35
|
+
* @param key The private state identifier.
|
|
27
36
|
*/
|
|
28
|
-
remove<PSK extends
|
|
37
|
+
remove<PSK extends PrivateStateKey<PSS>>(key: PSK): Promise<void>;
|
|
29
38
|
/**
|
|
30
|
-
*
|
|
39
|
+
* Remove all contract private states.
|
|
31
40
|
*/
|
|
32
41
|
clear(): Promise<void>;
|
|
42
|
+
/**
|
|
43
|
+
* Store the given private state at the given key.
|
|
44
|
+
*
|
|
45
|
+
* @param key The private state identifier.
|
|
46
|
+
* @param signingKey The signing key to store.
|
|
47
|
+
*/
|
|
48
|
+
setSigningKey<PSK extends PrivateStateKey<PSS>>(key: PSK, signingKey: SigningKey): Promise<void>;
|
|
49
|
+
/**
|
|
50
|
+
* Retrieve the signing key for a contract.
|
|
51
|
+
*
|
|
52
|
+
* @param key The private state identifier.
|
|
53
|
+
*/
|
|
54
|
+
getSigningKey<PSK extends PrivateStateKey<PSS>>(key: PSK): Promise<SigningKey | null>;
|
|
55
|
+
/**
|
|
56
|
+
* Remove the signing key for a contract.
|
|
57
|
+
*
|
|
58
|
+
* @param key The private state identifier.
|
|
59
|
+
*/
|
|
60
|
+
removeSigningKey<PSK extends PrivateStateKey<PSS>>(key: PSK): Promise<void>;
|
|
61
|
+
/**
|
|
62
|
+
* Remove all contract signing keys.
|
|
63
|
+
*/
|
|
64
|
+
clearSigningKeys(): Promise<void>;
|
|
33
65
|
}
|
|
34
66
|
//# sourceMappingURL=private-state-provider.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"private-state-provider.d.ts","sourceRoot":"","sources":["../src/private-state-provider.ts"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AAG,SAAS,eAAe,CAAC,GAAG,CAAC,EAAE,GAAG,EAAE,GAAG,GAAG,OAAO,CAAC,UAAU,GAAG,IAAI,CAAC,CAAC;IAEtF;;;;OAIG;IACH,gBAAgB,CAAC,GAAG,SAAS,eAAe,CAAC,GAAG,CAAC,EAAE,GAAG,EAAE,GAAG,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAE5E;;OAEG;IACH,gBAAgB,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC;CACnC"}
|
package/dist/proof-provider.d.ts
CHANGED
|
@@ -1,4 +1,19 @@
|
|
|
1
|
-
import type { UnprovenTransaction
|
|
1
|
+
import type { UnprovenTransaction } from '@midnight-ntwrk/ledger';
|
|
2
|
+
import type { UnbalancedTransaction, ZKConfig } from './midnight-types';
|
|
3
|
+
/**
|
|
4
|
+
* The configuration for the proof request to the proof provider.
|
|
5
|
+
*/
|
|
6
|
+
export interface ProveTxConfig<K extends string> {
|
|
7
|
+
/**
|
|
8
|
+
* The timeout for the request.
|
|
9
|
+
*/
|
|
10
|
+
readonly timeout?: number;
|
|
11
|
+
/**
|
|
12
|
+
* The zero-knowledge configuration for the circuit that was called in `tx`.
|
|
13
|
+
* Undefined if `tx` is a deployment transaction.
|
|
14
|
+
*/
|
|
15
|
+
readonly zkConfig?: ZKConfig<K>;
|
|
16
|
+
}
|
|
2
17
|
/**
|
|
3
18
|
* Interface for a proof server running in a trusted environment.
|
|
4
19
|
* @typeParam K - The type of the circuit ID used by the provider.
|
|
@@ -9,9 +24,9 @@ export interface ProofProvider<K extends string> {
|
|
|
9
24
|
* must be balanced using the {@link WalletProvider} interface.
|
|
10
25
|
* @param tx The transaction to be proved. Prior to version 1.0.0, unproven transactions always only
|
|
11
26
|
* contain a single contract call.
|
|
12
|
-
* @param
|
|
13
|
-
*
|
|
27
|
+
* @param proveTxConfig The configuration for the proof request to the proof provider. Empty in case
|
|
28
|
+
* a deploy transaction is being proved with no user-defined timeout.
|
|
14
29
|
*/
|
|
15
|
-
proveTx(tx: UnprovenTransaction,
|
|
30
|
+
proveTx(tx: UnprovenTransaction, proveTxConfig?: ProveTxConfig<K>): Promise<UnbalancedTransaction>;
|
|
16
31
|
}
|
|
17
32
|
//# sourceMappingURL=proof-provider.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"proof-provider.d.ts","sourceRoot":"","sources":["../src/proof-provider.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,qBAAqB,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;
|
|
1
|
+
{"version":3,"file":"proof-provider.d.ts","sourceRoot":"","sources":["../src/proof-provider.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;AAClE,OAAO,KAAK,EAAE,qBAAqB,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAExE;;GAEG;AACH,MAAM,WAAW,aAAa,CAAC,CAAC,SAAS,MAAM;IAC7C;;OAEG;IACH,QAAQ,CAAC,OAAO,CAAC,EAAE,MAAM,CAAC;IAC1B;;;OAGG;IACH,QAAQ,CAAC,QAAQ,CAAC,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC;CACjC;AAED;;;GAGG;AACH,MAAM,WAAW,aAAa,CAAC,CAAC,SAAS,MAAM;IAC7C;;;;;;;OAOG;IACH,OAAO,CACL,EAAE,EAAE,mBAAmB,EACvB,aAAa,CAAC,EAAE,aAAa,CAAC,CAAC,CAAC,GAC/B,OAAO,CAAC,qBAAqB,CAAC,CAAC;CACnC"}
|
package/package.json
CHANGED
|
@@ -1,17 +1,24 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@midnight-ntwrk/midnight-js-types",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.2.4",
|
|
4
4
|
"description": "Shared data types and interfaces for MidnightJS modules",
|
|
5
|
-
"main": "dist/index.
|
|
6
|
-
"module": "dist/index.
|
|
5
|
+
"main": "dist/index.cjs",
|
|
6
|
+
"module": "dist/index.mjs",
|
|
7
7
|
"types": "dist/index.d.ts",
|
|
8
|
+
"exports": {
|
|
9
|
+
".": {
|
|
10
|
+
"import": "./dist/index.mjs",
|
|
11
|
+
"require": "./dist/index.cjs",
|
|
12
|
+
"types": "./dist/index.d.ts"
|
|
13
|
+
}
|
|
14
|
+
},
|
|
8
15
|
"repository": "git@github.com:midnight-ntwrk/artifacts",
|
|
9
|
-
"packageManager": "yarn@
|
|
16
|
+
"packageManager": "yarn@4.1.0",
|
|
10
17
|
"author": "IOHK",
|
|
11
18
|
"license": "Apache-2.0",
|
|
12
19
|
"scripts": {
|
|
13
20
|
"clean": "rm -rf dist tsconfig.build.tsbuildinfo .rollup.cache",
|
|
14
|
-
"build": "
|
|
21
|
+
"build": "rollup -c rollup.config.mjs",
|
|
15
22
|
"test": "jest --passWithNoTests",
|
|
16
23
|
"deploy": "yarn npm publish"
|
|
17
24
|
},
|
package/dist/index.esm.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.esm.js","sources":["../src/midnight-types.ts","../src/zk-config-provider.ts"],"sourcesContent":[null,null],"names":[],"mappings":"AAUa,MAAA,eAAe,GAAG,CAAC,UAAsB,KAAe;AACnE,IAAA,OAAO,UAAuB,CAAC;AACjC,EAAE;AAOW,MAAA,iBAAiB,GAAG,CAAC,UAAsB,KAAiB;AACvE,IAAA,OAAO,UAAyB,CAAC;AACnC,EAAE;AAOW,MAAA,UAAU,GAAG,CAAC,MAAc,KAAU;AACjD,IAAA,OAAO,MAAc,CAAC;AACxB,EAAE;AAyBF,MAAM,eAAe,GAAkB,MAAM,CAAC,aAAa,CAAC,CAAC;AAU7D;;;AAGG;MACU,gBAAgB,GAAG,CAAC,EAA6B,MAA2B;AACvF,IAAA,mBAAmB,EAAE,eAAe;IACpC,EAAE;AACH,CAAA,EAAE;AAEH,MAAM,iBAAiB,GAAkB,MAAM,CAAC,eAAe,CAAC,CAAC;AAUjE;;;AAGG;MACU,kBAAkB,GAAG,CAAC,EAAqB,MAA6B;AACnF,IAAA,qBAAqB,EAAE,iBAAiB;IACxC,EAAE;AACH,CAAA,EAAE;AAEH,MAAM,eAAe,GAAkB,MAAM,CAAC,aAAa,CAAC,CAAC;AAU7D;;;AAGG;MACU,gBAAgB,GAAG,CAAC,EAAqB,MAA2B;AAC/E,IAAA,mBAAmB,EAAE,eAAe;IACpC,EAAE;AACH,CAAA,EAAE;AAEH;;AAEG;AACI,MAAM,YAAY,GAAG,eAAwB;AAEpD;;;;;AAKG;AACI,MAAM,YAAY,GAAG,eAAwB;AAEpD;;;AAGG;AACI,MAAM,eAAe,GAAG;;AC/H/B;;;;;;AAMG;MACmB,gBAAgB,CAAA;AAmBpC;;;AAGG;IACH,MAAM,eAAe,CAAC,UAAe,EAAA;AACnC,QAAA,OAAO,OAAO,CAAC,GAAG,CAChB,UAAU,CAAC,GAAG,CAAC,OAAO,EAAE,KAAI;YAC1B,MAAM,GAAG,GAAG,MAAM,IAAI,CAAC,cAAc,CAAC,EAAE,CAAC,CAAC;AAC1C,YAAA,OAAO,CAAC,EAAE,EAAE,GAAG,CAAC,CAAC;SAClB,CAAC,CACH,CAAC;KACH;AAED;;;AAGG;IACH,MAAM,GAAG,CAAC,SAAY,EAAA;QACpB,OAAO;YACL,SAAS;AACT,YAAA,SAAS,EAAE,MAAM,IAAI,CAAC,YAAY,CAAC,SAAS,CAAC;AAC7C,YAAA,WAAW,EAAE,MAAM,IAAI,CAAC,cAAc,CAAC,SAAS,CAAC;AACjD,YAAA,IAAI,EAAE,MAAM,IAAI,CAAC,OAAO,CAAC,SAAS,CAAC;SACpC,CAAC;KACH;AACF;;;;"}
|
package/dist/index.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../src/midnight-types.ts","../src/zk-config-provider.ts"],"sourcesContent":[null,null],"names":[],"mappings":";;AAUa,MAAA,eAAe,GAAG,CAAC,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