@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.
- package/README.md +18 -5
- package/dist/abi-serde.d.ts +119 -52
- package/dist/abi-serde.d.ts.map +1 -1
- package/dist/abi-serde.js +356 -173
- package/dist/abi-serde.js.map +1 -1
- package/dist/constants.js +1 -1
- package/dist/managed/compiler/contract-info.json +25 -7
- package/dist/managed/compiler/contract-manifest.json +8 -8
- package/dist/managed/contract/index.d.ts +252 -249
- package/dist/managed/contract/index.js +331 -307
- package/dist/managed/contract/index.js.map +1 -1
- package/dist/signet-contract-events.d.ts +11 -1
- package/dist/signet-contract-events.d.ts.map +1 -1
- package/dist/signet-contract-events.js +10 -5
- package/dist/signet-contract-events.js.map +1 -1
- package/dist/signet-request-response-reader.d.ts +8 -0
- package/dist/signet-request-response-reader.d.ts.map +1 -1
- package/dist/signet-request-response-reader.js +3 -1
- package/dist/signet-request-response-reader.js.map +1 -1
- package/package.json +2 -2
- package/src/Signet.compact +34 -15
- package/src/circuits.compact +13 -13
|
@@ -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
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
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
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
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
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
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
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
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 = {
|