@sig-net/midnight 0.24.0-rc.8 → 0.24.0

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.
@@ -39,6 +39,7 @@ export type PureCircuits = {
39
39
  numericAbiWord(value_0: bigint): Uint8Array;
40
40
  boolAbiWord(value_0: boolean): Uint8Array;
41
41
  abiWordToUint128(word_0: Uint8Array): bigint;
42
+ checkedTruncationU128(x_0: Uint8Array): bigint;
42
43
  abiWordToBool(word_0: Uint8Array): boolean;
43
44
  calculateSignetAttestationDigest0(requestId_0: Uint8Array,
44
45
  blockHeight_0: bigint,
@@ -98,68 +99,68 @@ export type PureCircuits = {
98
99
  storageKeys: Uint8Array[]
99
100
  }[]
100
101
  }): Uint8Array;
101
- calculateEvmType2RequestIdV1_1_0_0_34_34(request_0: { keyVersion: bigint,
102
- sender: { bytes: Uint8Array
103
- },
104
- path: Uint8Array,
105
- algo: number,
106
- txParamType: number,
107
- txParams: { chainId: bigint,
108
- nonce: bigint,
109
- maxPriorityFeePerGas: bigint,
110
- maxFeePerGas: bigint,
111
- gasLimit: bigint,
112
- to: Uint8Array,
113
- value: bigint,
114
- calldata: { is_some: boolean,
115
- value: { selector: Uint8Array,
116
- noWords: bigint,
117
- words: Uint8Array[]
118
- }
119
- },
120
- accessListEntryCount: bigint,
121
- accessList: { address: Uint8Array,
122
- storageKeyCount: bigint,
123
- storageKeys: Uint8Array[]
124
- }[]
125
- },
126
- executionDest: Uint8Array,
127
- signatureDest: number,
128
- params: Uint8Array,
129
- outputDeserializationSchema: Uint8Array,
130
- respondSerializationSchema: Uint8Array
131
- }): Uint8Array;
132
- calculateEvmType2RequestIdV1_2_1_2_34_34(request_0: { keyVersion: bigint,
133
- sender: { bytes: Uint8Array
134
- },
135
- path: Uint8Array,
136
- algo: number,
137
- txParamType: number,
138
- txParams: { chainId: bigint,
139
- nonce: bigint,
140
- maxPriorityFeePerGas: bigint,
141
- maxFeePerGas: bigint,
142
- gasLimit: bigint,
143
- to: Uint8Array,
144
- value: bigint,
145
- calldata: { is_some: boolean,
146
- value: { selector: Uint8Array,
147
- noWords: bigint,
148
- words: Uint8Array[]
149
- }
150
- },
151
- accessListEntryCount: bigint,
152
- accessList: { address: Uint8Array,
153
- storageKeyCount: bigint,
154
- storageKeys: Uint8Array[]
155
- }[]
156
- },
157
- executionDest: Uint8Array,
158
- signatureDest: number,
159
- params: Uint8Array,
160
- outputDeserializationSchema: Uint8Array,
161
- respondSerializationSchema: Uint8Array
162
- }): Uint8Array;
102
+ calculateEvmType2RequestIdV1_1_0_0_34(request_0: { keyVersion: bigint,
103
+ sender: { bytes: Uint8Array
104
+ },
105
+ path: Uint8Array,
106
+ algo: number,
107
+ txParamType: number,
108
+ txParams: { chainId: bigint,
109
+ nonce: bigint,
110
+ maxPriorityFeePerGas: bigint,
111
+ maxFeePerGas: bigint,
112
+ gasLimit: bigint,
113
+ to: Uint8Array,
114
+ value: bigint,
115
+ calldata: { is_some: boolean,
116
+ value: { selector: Uint8Array,
117
+ noWords: bigint,
118
+ words: Uint8Array[]
119
+ }
120
+ },
121
+ accessListEntryCount: bigint,
122
+ accessList: { address: Uint8Array,
123
+ storageKeyCount: bigint,
124
+ storageKeys: Uint8Array[]
125
+ }[]
126
+ },
127
+ executionDest: Uint8Array,
128
+ signatureDest: number,
129
+ params: Uint8Array,
130
+ outputDeserializationSchema: Uint8Array,
131
+ respondSerializationSchema: Uint8Array
132
+ }): Uint8Array;
133
+ calculateEvmType2RequestIdV1_2_1_2_34(request_0: { keyVersion: bigint,
134
+ sender: { bytes: Uint8Array
135
+ },
136
+ path: Uint8Array,
137
+ algo: number,
138
+ txParamType: number,
139
+ txParams: { chainId: bigint,
140
+ nonce: bigint,
141
+ maxPriorityFeePerGas: bigint,
142
+ maxFeePerGas: bigint,
143
+ gasLimit: bigint,
144
+ to: Uint8Array,
145
+ value: bigint,
146
+ calldata: { is_some: boolean,
147
+ value: { selector: Uint8Array,
148
+ noWords: bigint,
149
+ words: Uint8Array[]
150
+ }
151
+ },
152
+ accessListEntryCount: bigint,
153
+ accessList: { address: Uint8Array,
154
+ storageKeyCount: bigint,
155
+ storageKeys: Uint8Array[]
156
+ }[]
157
+ },
158
+ executionDest: Uint8Array,
159
+ signatureDest: number,
160
+ params: Uint8Array,
161
+ outputDeserializationSchema: Uint8Array,
162
+ respondSerializationSchema: Uint8Array
163
+ }): Uint8Array;
163
164
  verifyRespondBidirectionalEvent0(serializedOutput_0: Uint8Array,
164
165
  respondBidirectionalEvent_0: { requestId: Uint8Array,
165
166
  blockHeight: bigint,
@@ -188,67 +189,67 @@ export type PureCircuits = {
188
189
  }
189
190
  },
190
191
  mpcResponseKey_0: __compactRuntime.Secp256k1Point): boolean;
191
- constructSignBidirectionalEventV1_1_0_0_34_34(request_0: { keyVersion: bigint,
192
- sender: { bytes: Uint8Array
193
- },
194
- path: Uint8Array,
195
- algo: number,
196
- txParamType: number,
197
- txParams: { chainId: bigint,
198
- nonce: bigint,
199
- maxPriorityFeePerGas: bigint,
200
- maxFeePerGas: bigint,
201
- gasLimit: bigint,
202
- to: Uint8Array,
203
- value: bigint,
204
- calldata: { is_some: boolean,
205
- value: { selector: Uint8Array,
206
- noWords: bigint,
207
- words: Uint8Array[]
208
- }
209
- },
210
- accessListEntryCount: bigint,
211
- accessList: { address: Uint8Array,
212
- storageKeyCount: bigint,
213
- storageKeys: Uint8Array[]
214
- }[]
215
- },
216
- executionDest: Uint8Array,
217
- signatureDest: number,
218
- params: Uint8Array,
219
- outputDeserializationSchema: Uint8Array,
220
- respondSerializationSchema: Uint8Array
221
- }): { keyVersion: bigint,
222
- sender: { bytes: Uint8Array
223
- },
224
- path: Uint8Array,
225
- algo: number,
226
- txParamType: number,
227
- txParams: { chainId: bigint,
228
- nonce: bigint,
229
- maxPriorityFeePerGas: bigint,
230
- maxFeePerGas: bigint,
231
- gasLimit: bigint,
232
- to: Uint8Array,
233
- value: bigint,
234
- calldata: { is_some: boolean,
235
- value: { selector: Uint8Array,
236
- noWords: bigint,
237
- words: Uint8Array[]
238
- }
239
- },
240
- accessListEntryCount: bigint,
241
- accessList: { address: Uint8Array,
242
- storageKeyCount: bigint,
243
- storageKeys: Uint8Array[]
244
- }[]
245
- },
246
- executionDest: Uint8Array,
247
- signatureDest: number,
248
- params: Uint8Array,
249
- outputDeserializationSchema: Uint8Array,
250
- respondSerializationSchema: Uint8Array
251
- };
192
+ constructSignBidirectionalEventV1_1_0_0_34(request_0: { keyVersion: bigint,
193
+ sender: { bytes: Uint8Array
194
+ },
195
+ path: Uint8Array,
196
+ algo: number,
197
+ txParamType: number,
198
+ txParams: { chainId: bigint,
199
+ nonce: bigint,
200
+ maxPriorityFeePerGas: bigint,
201
+ maxFeePerGas: bigint,
202
+ gasLimit: bigint,
203
+ to: Uint8Array,
204
+ value: bigint,
205
+ calldata: { is_some: boolean,
206
+ value: { selector: Uint8Array,
207
+ noWords: bigint,
208
+ words: Uint8Array[]
209
+ }
210
+ },
211
+ accessListEntryCount: bigint,
212
+ accessList: { address: Uint8Array,
213
+ storageKeyCount: bigint,
214
+ storageKeys: Uint8Array[]
215
+ }[]
216
+ },
217
+ executionDest: Uint8Array,
218
+ signatureDest: number,
219
+ params: Uint8Array,
220
+ outputDeserializationSchema: Uint8Array,
221
+ respondSerializationSchema: Uint8Array
222
+ }): { keyVersion: bigint,
223
+ sender: { bytes: Uint8Array
224
+ },
225
+ path: Uint8Array,
226
+ algo: number,
227
+ txParamType: number,
228
+ txParams: { chainId: bigint,
229
+ nonce: bigint,
230
+ maxPriorityFeePerGas: bigint,
231
+ maxFeePerGas: bigint,
232
+ gasLimit: bigint,
233
+ to: Uint8Array,
234
+ value: bigint,
235
+ calldata: { is_some: boolean,
236
+ value: { selector: Uint8Array,
237
+ noWords: bigint,
238
+ words: Uint8Array[]
239
+ }
240
+ },
241
+ accessListEntryCount: bigint,
242
+ accessList: { address: Uint8Array,
243
+ storageKeyCount: bigint,
244
+ storageKeys: Uint8Array[]
245
+ }[]
246
+ },
247
+ executionDest: Uint8Array,
248
+ signatureDest: number,
249
+ params: Uint8Array,
250
+ outputDeserializationSchema: Uint8Array,
251
+ respondSerializationSchema: Uint8Array
252
+ };
252
253
  }
253
254
 
254
255
  export type Circuits<PS> = {
@@ -275,6 +276,8 @@ export type Circuits<PS> = {
275
276
  boolAbiWord(context: __compactRuntime.CircuitContext<PS>, value_0: boolean): Promise<__compactRuntime.CircuitResults<PS, Uint8Array>>;
276
277
  abiWordToUint128(context: __compactRuntime.CircuitContext<PS>,
277
278
  word_0: Uint8Array): Promise<__compactRuntime.CircuitResults<PS, bigint>>;
279
+ checkedTruncationU128(context: __compactRuntime.CircuitContext<PS>,
280
+ x_0: Uint8Array): Promise<__compactRuntime.CircuitResults<PS, bigint>>;
278
281
  abiWordToBool(context: __compactRuntime.CircuitContext<PS>, word_0: Uint8Array): Promise<__compactRuntime.CircuitResults<PS, boolean>>;
279
282
  calculateSignetAttestationDigest0(context: __compactRuntime.CircuitContext<PS>,
280
283
  requestId_0: Uint8Array,
@@ -341,70 +344,70 @@ export type Circuits<PS> = {
341
344
  storageKeys: Uint8Array[]
342
345
  }[]
343
346
  }): Promise<__compactRuntime.CircuitResults<PS, Uint8Array>>;
344
- calculateEvmType2RequestIdV1_1_0_0_34_34(context: __compactRuntime.CircuitContext<PS>,
345
- request_0: { keyVersion: bigint,
346
- sender: { bytes: Uint8Array
347
- },
348
- path: Uint8Array,
349
- algo: number,
350
- txParamType: number,
351
- txParams: { chainId: bigint,
352
- nonce: bigint,
353
- maxPriorityFeePerGas: bigint,
354
- maxFeePerGas: bigint,
355
- gasLimit: bigint,
356
- to: Uint8Array,
357
- value: bigint,
358
- calldata: { is_some: boolean,
359
- value: { selector: Uint8Array,
360
- noWords: bigint,
361
- words: Uint8Array[]
362
- }
363
- },
364
- accessListEntryCount: bigint,
365
- accessList: { address: Uint8Array,
366
- storageKeyCount: bigint,
367
- storageKeys: Uint8Array[]
368
- }[]
369
- },
370
- executionDest: Uint8Array,
371
- signatureDest: number,
372
- params: Uint8Array,
373
- outputDeserializationSchema: Uint8Array,
374
- respondSerializationSchema: Uint8Array
375
- }): Promise<__compactRuntime.CircuitResults<PS, Uint8Array>>;
376
- calculateEvmType2RequestIdV1_2_1_2_34_34(context: __compactRuntime.CircuitContext<PS>,
377
- request_0: { keyVersion: bigint,
378
- sender: { bytes: Uint8Array
379
- },
380
- path: Uint8Array,
381
- algo: number,
382
- txParamType: number,
383
- txParams: { chainId: bigint,
384
- nonce: bigint,
385
- maxPriorityFeePerGas: bigint,
386
- maxFeePerGas: bigint,
387
- gasLimit: bigint,
388
- to: Uint8Array,
389
- value: bigint,
390
- calldata: { is_some: boolean,
391
- value: { selector: Uint8Array,
392
- noWords: bigint,
393
- words: Uint8Array[]
394
- }
395
- },
396
- accessListEntryCount: bigint,
397
- accessList: { address: Uint8Array,
398
- storageKeyCount: bigint,
399
- storageKeys: Uint8Array[]
400
- }[]
401
- },
402
- executionDest: Uint8Array,
403
- signatureDest: number,
404
- params: Uint8Array,
405
- outputDeserializationSchema: Uint8Array,
406
- respondSerializationSchema: Uint8Array
407
- }): Promise<__compactRuntime.CircuitResults<PS, Uint8Array>>;
347
+ calculateEvmType2RequestIdV1_1_0_0_34(context: __compactRuntime.CircuitContext<PS>,
348
+ request_0: { keyVersion: bigint,
349
+ sender: { bytes: Uint8Array
350
+ },
351
+ path: Uint8Array,
352
+ algo: number,
353
+ txParamType: number,
354
+ txParams: { chainId: bigint,
355
+ nonce: bigint,
356
+ maxPriorityFeePerGas: bigint,
357
+ maxFeePerGas: bigint,
358
+ gasLimit: bigint,
359
+ to: Uint8Array,
360
+ value: bigint,
361
+ calldata: { is_some: boolean,
362
+ value: { selector: Uint8Array,
363
+ noWords: bigint,
364
+ words: Uint8Array[]
365
+ }
366
+ },
367
+ accessListEntryCount: bigint,
368
+ accessList: { address: Uint8Array,
369
+ storageKeyCount: bigint,
370
+ storageKeys: Uint8Array[]
371
+ }[]
372
+ },
373
+ executionDest: Uint8Array,
374
+ signatureDest: number,
375
+ params: Uint8Array,
376
+ outputDeserializationSchema: Uint8Array,
377
+ respondSerializationSchema: Uint8Array
378
+ }): Promise<__compactRuntime.CircuitResults<PS, Uint8Array>>;
379
+ calculateEvmType2RequestIdV1_2_1_2_34(context: __compactRuntime.CircuitContext<PS>,
380
+ request_0: { keyVersion: bigint,
381
+ sender: { bytes: Uint8Array
382
+ },
383
+ path: Uint8Array,
384
+ algo: number,
385
+ txParamType: number,
386
+ txParams: { chainId: bigint,
387
+ nonce: bigint,
388
+ maxPriorityFeePerGas: bigint,
389
+ maxFeePerGas: bigint,
390
+ gasLimit: bigint,
391
+ to: Uint8Array,
392
+ value: bigint,
393
+ calldata: { is_some: boolean,
394
+ value: { selector: Uint8Array,
395
+ noWords: bigint,
396
+ words: Uint8Array[]
397
+ }
398
+ },
399
+ accessListEntryCount: bigint,
400
+ accessList: { address: Uint8Array,
401
+ storageKeyCount: bigint,
402
+ storageKeys: Uint8Array[]
403
+ }[]
404
+ },
405
+ executionDest: Uint8Array,
406
+ signatureDest: number,
407
+ params: Uint8Array,
408
+ outputDeserializationSchema: Uint8Array,
409
+ respondSerializationSchema: Uint8Array
410
+ }): Promise<__compactRuntime.CircuitResults<PS, Uint8Array>>;
408
411
  verifyRespondBidirectionalEvent0(context: __compactRuntime.CircuitContext<PS>,
409
412
  serializedOutput_0: Uint8Array,
410
413
  respondBidirectionalEvent_0: { requestId: Uint8Array,
@@ -435,68 +438,68 @@ export type Circuits<PS> = {
435
438
  }
436
439
  },
437
440
  mpcResponseKey_0: __compactRuntime.Secp256k1Point): Promise<__compactRuntime.CircuitResults<PS, boolean>>;
438
- constructSignBidirectionalEventV1_1_0_0_34_34(context: __compactRuntime.CircuitContext<PS>,
439
- request_0: { keyVersion: bigint,
440
- sender: { bytes: Uint8Array
441
- },
442
- path: Uint8Array,
443
- algo: number,
444
- txParamType: number,
445
- txParams: { chainId: bigint,
446
- nonce: bigint,
447
- maxPriorityFeePerGas: bigint,
448
- maxFeePerGas: bigint,
449
- gasLimit: bigint,
450
- to: Uint8Array,
451
- value: bigint,
452
- calldata: { is_some: boolean,
453
- value: { selector: Uint8Array,
454
- noWords: bigint,
455
- words: Uint8Array[]
456
- }
457
- },
458
- accessListEntryCount: bigint,
459
- accessList: { address: Uint8Array,
460
- storageKeyCount: bigint,
461
- storageKeys: Uint8Array[]
462
- }[]
463
- },
464
- executionDest: Uint8Array,
465
- signatureDest: number,
466
- params: Uint8Array,
467
- outputDeserializationSchema: Uint8Array,
468
- respondSerializationSchema: Uint8Array
469
- }): Promise<__compactRuntime.CircuitResults<PS, { keyVersion: bigint,
470
- sender: { bytes: Uint8Array
471
- },
472
- path: Uint8Array,
473
- algo: number,
474
- txParamType: number,
475
- txParams: { chainId: bigint,
476
- nonce: bigint,
477
- maxPriorityFeePerGas: bigint,
478
- maxFeePerGas: bigint,
479
- gasLimit: bigint,
480
- to: Uint8Array,
481
- value: bigint,
482
- calldata: { is_some: boolean,
483
- value: { selector: Uint8Array,
484
- noWords: bigint,
485
- words: Uint8Array[]
486
- }
487
- },
488
- accessListEntryCount: bigint,
489
- accessList: { address: Uint8Array,
490
- storageKeyCount: bigint,
491
- storageKeys: Uint8Array[]
492
- }[]
493
- },
494
- executionDest: Uint8Array,
495
- signatureDest: number,
496
- params: Uint8Array,
497
- outputDeserializationSchema: Uint8Array,
498
- respondSerializationSchema: Uint8Array
499
- }>>;
441
+ constructSignBidirectionalEventV1_1_0_0_34(context: __compactRuntime.CircuitContext<PS>,
442
+ request_0: { keyVersion: bigint,
443
+ sender: { bytes: Uint8Array
444
+ },
445
+ path: Uint8Array,
446
+ algo: number,
447
+ txParamType: number,
448
+ txParams: { chainId: bigint,
449
+ nonce: bigint,
450
+ maxPriorityFeePerGas: bigint,
451
+ maxFeePerGas: bigint,
452
+ gasLimit: bigint,
453
+ to: Uint8Array,
454
+ value: bigint,
455
+ calldata: { is_some: boolean,
456
+ value: { selector: Uint8Array,
457
+ noWords: bigint,
458
+ words: Uint8Array[]
459
+ }
460
+ },
461
+ accessListEntryCount: bigint,
462
+ accessList: { address: Uint8Array,
463
+ storageKeyCount: bigint,
464
+ storageKeys: Uint8Array[]
465
+ }[]
466
+ },
467
+ executionDest: Uint8Array,
468
+ signatureDest: number,
469
+ params: Uint8Array,
470
+ outputDeserializationSchema: Uint8Array,
471
+ respondSerializationSchema: Uint8Array
472
+ }): Promise<__compactRuntime.CircuitResults<PS, { keyVersion: bigint,
473
+ sender: { bytes: Uint8Array
474
+ },
475
+ path: Uint8Array,
476
+ algo: number,
477
+ txParamType: number,
478
+ txParams: { chainId: bigint,
479
+ nonce: bigint,
480
+ maxPriorityFeePerGas: bigint,
481
+ maxFeePerGas: bigint,
482
+ gasLimit: bigint,
483
+ to: Uint8Array,
484
+ value: bigint,
485
+ calldata: { is_some: boolean,
486
+ value: { selector: Uint8Array,
487
+ noWords: bigint,
488
+ words: Uint8Array[]
489
+ }
490
+ },
491
+ accessListEntryCount: bigint,
492
+ accessList: { address: Uint8Array,
493
+ storageKeyCount: bigint,
494
+ storageKeys: Uint8Array[]
495
+ }[]
496
+ },
497
+ executionDest: Uint8Array,
498
+ signatureDest: number,
499
+ params: Uint8Array,
500
+ outputDeserializationSchema: Uint8Array,
501
+ respondSerializationSchema: Uint8Array
502
+ }>>;
500
503
  }
501
504
 
502
505
  export type Ledger = {