@sig-net/midnight 0.24.0-rc.2 → 0.24.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.
Files changed (42) hide show
  1. package/README.md +13 -21
  2. package/dist/compact-descriptors.d.ts +17 -4
  3. package/dist/compact-descriptors.d.ts.map +1 -1
  4. package/dist/compact-descriptors.js +29 -29
  5. package/dist/compact-descriptors.js.map +1 -1
  6. package/dist/constants.d.ts +1 -1
  7. package/dist/constants.js +1 -1
  8. package/dist/ecdsa-attestation.d.ts +3 -3
  9. package/dist/ecdsa-attestation.js +4 -4
  10. package/dist/ecdsa-attestation.js.map +1 -1
  11. package/dist/index.d.ts +1 -1
  12. package/dist/index.d.ts.map +1 -1
  13. package/dist/index.js +1 -1
  14. package/dist/index.js.map +1 -1
  15. package/dist/managed/compiler/contract-info.json +952 -2
  16. package/dist/managed/compiler/contract-manifest.json +8 -8
  17. package/dist/managed/contract/index.d.ts +221 -0
  18. package/dist/managed/contract/index.js +915 -201
  19. package/dist/managed/contract/index.js.map +1 -1
  20. package/dist/mpc-output-cache.js +2 -2
  21. package/dist/mpc-output-cache.js.map +1 -1
  22. package/dist/signature-requests-state-reader.js +3 -3
  23. package/dist/signature-requests-state-reader.js.map +1 -1
  24. package/dist/signet-contract-events.d.ts +4 -4
  25. package/dist/signet-evtype2tx-record-decoding.d.ts.map +1 -1
  26. package/dist/signet-evtype2tx-record-decoding.js +5 -4
  27. package/dist/signet-evtype2tx-record-decoding.js.map +1 -1
  28. package/dist/signet-evtype2tx-requests.d.ts +17 -12
  29. package/dist/signet-evtype2tx-requests.d.ts.map +1 -1
  30. package/dist/signet-evtype2tx-requests.js +85 -16
  31. package/dist/signet-evtype2tx-requests.js.map +1 -1
  32. package/dist/signet-request-id.d.ts +5 -3
  33. package/dist/signet-request-id.d.ts.map +1 -1
  34. package/dist/signet-request-id.js +14 -12
  35. package/dist/signet-request-id.js.map +1 -1
  36. package/dist/signet-requests.d.ts +30 -34
  37. package/dist/signet-requests.d.ts.map +1 -1
  38. package/dist/signet-requests.js +15 -23
  39. package/dist/signet-requests.js.map +1 -1
  40. package/package.json +2 -2
  41. package/src/Signet.compact +181 -72
  42. package/src/circuits.compact +42 -9
@@ -7,26 +7,26 @@
7
7
  "type": "directory",
8
8
  "contract-info.json": {
9
9
  "type": "file",
10
- "size": 15932,
11
- "hash": "3b8f4f67d354e15c7d993847ccc7eaad3d2b44b1f28aa2440942228f3574b970"
10
+ "size": 45915,
11
+ "hash": "c115624c5160b3e4735c88f9e17755e39c0d0fd59afd899b6088088c8d743456"
12
12
  }
13
13
  },
14
14
  "contract": {
15
15
  "type": "directory",
16
16
  "index.d.ts": {
17
17
  "type": "file",
18
- "size": 11942,
19
- "hash": "d630431aa643e6d90a7a77a944bdcdd45b2d143a87a2409d647261266a5c0b5f"
18
+ "size": 30639,
19
+ "hash": "945aaa4c71039dad29a9812a91f436848d09bc616407f622c3927b2cc9d22d18"
20
20
  },
21
21
  "index.js": {
22
22
  "type": "file",
23
- "size": 62804,
24
- "hash": "e8fdd71f38998f06b27df9bc57e4ffacf7085ff8252eb501001637fe23ef80e8"
23
+ "size": 119434,
24
+ "hash": "38f96294398f109555940a1a99be90e6cae2f99516dff84bb1966c9788f6e300"
25
25
  },
26
26
  "index.js.map": {
27
27
  "type": "file",
28
- "size": 6253,
29
- "hash": "9087ad1a8910d5ea37000a6148a9b8950247668a9170b57bca108bcd6771b130"
28
+ "size": 9537,
29
+ "hash": "da321767cc7e4eca810eaa0874039ad98ad4bd6c71a73297e19c7267d09fdcae"
30
30
  }
31
31
  }
32
32
  }
@@ -12,6 +12,14 @@ export type ProvableCircuits<PS> = {
12
12
  }
13
13
 
14
14
  export type PureCircuits = {
15
+ calculateRequestIdV1(preimage_0: { keyVersion: bigint,
16
+ sender: { bytes: Uint8Array },
17
+ path: Uint8Array,
18
+ algo: number,
19
+ txParamType: number,
20
+ txParamsDigest: Uint8Array,
21
+ executionDest: Uint8Array
22
+ }): Uint8Array;
15
23
  constructSignBidirectionalEventNotificationV1(callerAddress_0: { bytes: Uint8Array
16
24
  },
17
25
  requestsPathDepth_0: bigint,
@@ -44,6 +52,106 @@ export type PureCircuits = {
44
52
  blockHeight_0: bigint,
45
53
  outputKind_0: OutputKind,
46
54
  serializedOutput_0: Uint8Array): Uint8Array;
55
+ calculateEvmType2TxParamsDigestV1_1_0_0(txParams_0: { chainId: bigint,
56
+ nonce: bigint,
57
+ maxPriorityFeePerGas: bigint,
58
+ maxFeePerGas: bigint,
59
+ gasLimit: bigint,
60
+ to: Uint8Array,
61
+ value: bigint,
62
+ calldata: { is_some: boolean,
63
+ value: { selector: Uint8Array,
64
+ noWords: bigint,
65
+ words: Uint8Array[]
66
+ }
67
+ },
68
+ accessListEntryCount: bigint,
69
+ accessList: { address: Uint8Array,
70
+ storageKeyCount: bigint,
71
+ storageKeys: Uint8Array[]
72
+ }[]
73
+ }): Uint8Array;
74
+ calculateEvmType2TxParamsDigestV1_2_1_2(txParams_0: { chainId: bigint,
75
+ nonce: bigint,
76
+ maxPriorityFeePerGas: bigint,
77
+ maxFeePerGas: bigint,
78
+ gasLimit: bigint,
79
+ to: Uint8Array,
80
+ value: bigint,
81
+ calldata: { is_some: boolean,
82
+ value: { selector: Uint8Array,
83
+ noWords: bigint,
84
+ words: Uint8Array[]
85
+ }
86
+ },
87
+ accessListEntryCount: bigint,
88
+ accessList: { address: Uint8Array,
89
+ storageKeyCount: bigint,
90
+ storageKeys: Uint8Array[]
91
+ }[]
92
+ }): Uint8Array;
93
+ calculateEvmType2RequestIdV1_1_0_0_34_34(request_0: { keyVersion: bigint,
94
+ sender: { bytes: Uint8Array
95
+ },
96
+ path: Uint8Array,
97
+ algo: number,
98
+ txParamType: number,
99
+ txParams: { chainId: bigint,
100
+ nonce: bigint,
101
+ maxPriorityFeePerGas: bigint,
102
+ maxFeePerGas: bigint,
103
+ gasLimit: bigint,
104
+ to: Uint8Array,
105
+ value: bigint,
106
+ calldata: { is_some: boolean,
107
+ value: { selector: Uint8Array,
108
+ noWords: bigint,
109
+ words: Uint8Array[]
110
+ }
111
+ },
112
+ accessListEntryCount: bigint,
113
+ accessList: { address: Uint8Array,
114
+ storageKeyCount: bigint,
115
+ storageKeys: Uint8Array[]
116
+ }[]
117
+ },
118
+ executionDest: Uint8Array,
119
+ signatureDest: number,
120
+ params: Uint8Array,
121
+ outputDeserializationSchema: Uint8Array,
122
+ respondSerializationSchema: Uint8Array
123
+ }): Uint8Array;
124
+ calculateEvmType2RequestIdV1_2_1_2_34_34(request_0: { keyVersion: bigint,
125
+ sender: { bytes: Uint8Array
126
+ },
127
+ path: Uint8Array,
128
+ algo: number,
129
+ txParamType: number,
130
+ txParams: { chainId: bigint,
131
+ nonce: bigint,
132
+ maxPriorityFeePerGas: bigint,
133
+ maxFeePerGas: bigint,
134
+ gasLimit: bigint,
135
+ to: Uint8Array,
136
+ value: bigint,
137
+ calldata: { is_some: boolean,
138
+ value: { selector: Uint8Array,
139
+ noWords: bigint,
140
+ words: Uint8Array[]
141
+ }
142
+ },
143
+ accessListEntryCount: bigint,
144
+ accessList: { address: Uint8Array,
145
+ storageKeyCount: bigint,
146
+ storageKeys: Uint8Array[]
147
+ }[]
148
+ },
149
+ executionDest: Uint8Array,
150
+ signatureDest: number,
151
+ params: Uint8Array,
152
+ outputDeserializationSchema: Uint8Array,
153
+ respondSerializationSchema: Uint8Array
154
+ }): Uint8Array;
47
155
  verifyRespondBidirectionalEvent0(serializedOutput_0: Uint8Array,
48
156
  respondBidirectionalEvent_0: { requestId: Uint8Array,
49
157
  blockHeight: bigint,
@@ -75,6 +183,15 @@ export type PureCircuits = {
75
183
  }
76
184
 
77
185
  export type Circuits<PS> = {
186
+ calculateRequestIdV1(context: __compactRuntime.CircuitContext<PS>,
187
+ preimage_0: { keyVersion: bigint,
188
+ sender: { bytes: Uint8Array },
189
+ path: Uint8Array,
190
+ algo: number,
191
+ txParamType: number,
192
+ txParamsDigest: Uint8Array,
193
+ executionDest: Uint8Array
194
+ }): Promise<__compactRuntime.CircuitResults<PS, Uint8Array>>;
78
195
  constructSignBidirectionalEventNotificationV1(context: __compactRuntime.CircuitContext<PS>,
79
196
  callerAddress_0: { bytes: Uint8Array
80
197
  },
@@ -115,6 +232,110 @@ export type Circuits<PS> = {
115
232
  blockHeight_0: bigint,
116
233
  outputKind_0: OutputKind,
117
234
  serializedOutput_0: Uint8Array): Promise<__compactRuntime.CircuitResults<PS, Uint8Array>>;
235
+ calculateEvmType2TxParamsDigestV1_1_0_0(context: __compactRuntime.CircuitContext<PS>,
236
+ txParams_0: { chainId: bigint,
237
+ nonce: bigint,
238
+ maxPriorityFeePerGas: bigint,
239
+ maxFeePerGas: bigint,
240
+ gasLimit: bigint,
241
+ to: Uint8Array,
242
+ value: bigint,
243
+ calldata: { is_some: boolean,
244
+ value: { selector: Uint8Array,
245
+ noWords: bigint,
246
+ words: Uint8Array[]
247
+ }
248
+ },
249
+ accessListEntryCount: bigint,
250
+ accessList: { address: Uint8Array,
251
+ storageKeyCount: bigint,
252
+ storageKeys: Uint8Array[]
253
+ }[]
254
+ }): Promise<__compactRuntime.CircuitResults<PS, Uint8Array>>;
255
+ calculateEvmType2TxParamsDigestV1_2_1_2(context: __compactRuntime.CircuitContext<PS>,
256
+ txParams_0: { chainId: bigint,
257
+ nonce: bigint,
258
+ maxPriorityFeePerGas: bigint,
259
+ maxFeePerGas: bigint,
260
+ gasLimit: bigint,
261
+ to: Uint8Array,
262
+ value: bigint,
263
+ calldata: { is_some: boolean,
264
+ value: { selector: Uint8Array,
265
+ noWords: bigint,
266
+ words: Uint8Array[]
267
+ }
268
+ },
269
+ accessListEntryCount: bigint,
270
+ accessList: { address: Uint8Array,
271
+ storageKeyCount: bigint,
272
+ storageKeys: Uint8Array[]
273
+ }[]
274
+ }): Promise<__compactRuntime.CircuitResults<PS, Uint8Array>>;
275
+ calculateEvmType2RequestIdV1_1_0_0_34_34(context: __compactRuntime.CircuitContext<PS>,
276
+ request_0: { keyVersion: bigint,
277
+ sender: { bytes: Uint8Array
278
+ },
279
+ path: Uint8Array,
280
+ algo: number,
281
+ txParamType: number,
282
+ txParams: { chainId: bigint,
283
+ nonce: bigint,
284
+ maxPriorityFeePerGas: bigint,
285
+ maxFeePerGas: bigint,
286
+ gasLimit: bigint,
287
+ to: Uint8Array,
288
+ value: bigint,
289
+ calldata: { is_some: boolean,
290
+ value: { selector: Uint8Array,
291
+ noWords: bigint,
292
+ words: Uint8Array[]
293
+ }
294
+ },
295
+ accessListEntryCount: bigint,
296
+ accessList: { address: Uint8Array,
297
+ storageKeyCount: bigint,
298
+ storageKeys: Uint8Array[]
299
+ }[]
300
+ },
301
+ executionDest: Uint8Array,
302
+ signatureDest: number,
303
+ params: Uint8Array,
304
+ outputDeserializationSchema: Uint8Array,
305
+ respondSerializationSchema: Uint8Array
306
+ }): Promise<__compactRuntime.CircuitResults<PS, Uint8Array>>;
307
+ calculateEvmType2RequestIdV1_2_1_2_34_34(context: __compactRuntime.CircuitContext<PS>,
308
+ request_0: { keyVersion: bigint,
309
+ sender: { bytes: Uint8Array
310
+ },
311
+ path: Uint8Array,
312
+ algo: number,
313
+ txParamType: number,
314
+ txParams: { chainId: bigint,
315
+ nonce: bigint,
316
+ maxPriorityFeePerGas: bigint,
317
+ maxFeePerGas: bigint,
318
+ gasLimit: bigint,
319
+ to: Uint8Array,
320
+ value: bigint,
321
+ calldata: { is_some: boolean,
322
+ value: { selector: Uint8Array,
323
+ noWords: bigint,
324
+ words: Uint8Array[]
325
+ }
326
+ },
327
+ accessListEntryCount: bigint,
328
+ accessList: { address: Uint8Array,
329
+ storageKeyCount: bigint,
330
+ storageKeys: Uint8Array[]
331
+ }[]
332
+ },
333
+ executionDest: Uint8Array,
334
+ signatureDest: number,
335
+ params: Uint8Array,
336
+ outputDeserializationSchema: Uint8Array,
337
+ respondSerializationSchema: Uint8Array
338
+ }): Promise<__compactRuntime.CircuitResults<PS, Uint8Array>>;
118
339
  verifyRespondBidirectionalEvent0(context: __compactRuntime.CircuitContext<PS>,
119
340
  serializedOutput_0: Uint8Array,
120
341
  respondBidirectionalEvent_0: { requestId: Uint8Array,