@sig-net/midnight 0.24.1 → 0.25.0-rc.2
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 +6 -5
- package/dist/compact-descriptors.d.ts +5 -7
- package/dist/compact-descriptors.d.ts.map +1 -1
- package/dist/compact-descriptors.js +6 -18
- package/dist/compact-descriptors.js.map +1 -1
- package/dist/constants.d.ts +5 -2
- package/dist/constants.d.ts.map +1 -1
- package/dist/constants.js +5 -2
- package/dist/constants.js.map +1 -1
- package/dist/ecdsa-attestation.d.ts +54 -11
- package/dist/ecdsa-attestation.d.ts.map +1 -1
- package/dist/ecdsa-attestation.js +90 -39
- package/dist/ecdsa-attestation.js.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/managed/compiler/contract-info.json +251 -143
- package/dist/managed/compiler/contract-manifest.json +8 -8
- package/dist/managed/contract/index.d.ts +75 -46
- package/dist/managed/contract/index.js +604 -585
- package/dist/managed/contract/index.js.map +1 -1
- package/dist/mpc-output-cache.js +2 -2
- package/dist/mpc-output-cache.js.map +1 -1
- package/dist/signet-contract-events.d.ts +15 -8
- package/dist/signet-contract-events.d.ts.map +1 -1
- package/dist/signet-contract-events.js +7 -4
- package/dist/signet-contract-events.js.map +1 -1
- package/dist/signet-evtype2tx-record-decoding.js +2 -2
- package/dist/signet-request-response-reader.d.ts.map +1 -1
- package/dist/signet-request-response-reader.js +12 -4
- package/dist/signet-request-response-reader.js.map +1 -1
- package/dist/signet-requests.d.ts +2 -2
- package/dist/signet-requests.js +2 -2
- package/dist/testing.js +1 -1
- package/dist/testing.js.map +1 -1
- package/package.json +2 -2
- package/src/Signet.compact +109 -45
- package/src/circuits.compact +40 -32
|
@@ -9,6 +9,7 @@ export var HashDomain;
|
|
|
9
9
|
HashDomain[HashDomain['evmType2TxWord'] = 3] = 'evmType2TxWord';
|
|
10
10
|
HashDomain[HashDomain['evmType2TxAccessEntry'] = 4] = 'evmType2TxAccessEntry';
|
|
11
11
|
HashDomain[HashDomain['evmType2TxStorageKey'] = 5] = 'evmType2TxStorageKey';
|
|
12
|
+
HashDomain[HashDomain['attestedOutput'] = 6] = 'attestedOutput';
|
|
12
13
|
})(HashDomain || (HashDomain = {}));
|
|
13
14
|
|
|
14
15
|
export var OutputKind;
|
|
@@ -18,235 +19,236 @@ export var OutputKind;
|
|
|
18
19
|
OutputKind[OutputKind['unviable'] = 2] = 'unviable';
|
|
19
20
|
})(OutputKind || (OutputKind = {}));
|
|
20
21
|
|
|
21
|
-
const _descriptor_0 = new __compactRuntime.
|
|
22
|
+
const _descriptor_0 = new __compactRuntime.CompactTypeBytes(32);
|
|
22
23
|
|
|
23
|
-
const _descriptor_1 = new __compactRuntime.
|
|
24
|
+
const _descriptor_1 = new __compactRuntime.CompactTypeUnsignedInteger(18446744073709551615n, 8);
|
|
24
25
|
|
|
25
|
-
|
|
26
|
+
const _descriptor_2 = new __compactRuntime.CompactTypeEnum(2, 1);
|
|
27
|
+
|
|
28
|
+
class _AffinePoint_0 {
|
|
26
29
|
alignment() {
|
|
27
|
-
return
|
|
30
|
+
return _descriptor_0.alignment().concat(_descriptor_0.alignment());
|
|
28
31
|
}
|
|
29
32
|
fromValue(value_0) {
|
|
30
33
|
return {
|
|
31
|
-
|
|
34
|
+
x: _descriptor_0.fromValue(value_0),
|
|
35
|
+
y: _descriptor_0.fromValue(value_0)
|
|
32
36
|
}
|
|
33
37
|
}
|
|
34
38
|
toValue(value_0) {
|
|
35
|
-
return
|
|
39
|
+
return _descriptor_0.toValue(value_0.x).concat(_descriptor_0.toValue(value_0.y));
|
|
36
40
|
}
|
|
37
41
|
}
|
|
38
42
|
|
|
39
|
-
const
|
|
40
|
-
|
|
41
|
-
const _descriptor_3 = new __compactRuntime.CompactTypeEnum(1, 1);
|
|
42
|
-
|
|
43
|
-
const _descriptor_4 = new __compactRuntime.CompactTypeEnum(1, 1);
|
|
44
|
-
|
|
45
|
-
const _descriptor_5 = new __compactRuntime.CompactTypeUnsignedInteger(18446744073709551615n, 8);
|
|
46
|
-
|
|
47
|
-
const _descriptor_6 = new __compactRuntime.CompactTypeUnsignedInteger(340282366920938463463374607431768211455n, 16);
|
|
48
|
-
|
|
49
|
-
const _descriptor_7 = new __compactRuntime.CompactTypeBytes(20);
|
|
50
|
-
|
|
51
|
-
const _descriptor_8 = __compactRuntime.CompactTypeBoolean;
|
|
52
|
-
|
|
53
|
-
const _descriptor_9 = new __compactRuntime.CompactTypeBytes(4);
|
|
54
|
-
|
|
55
|
-
const _descriptor_10 = new __compactRuntime.CompactTypeUnsignedInteger(65535n, 2);
|
|
43
|
+
const _descriptor_3 = new _AffinePoint_0();
|
|
56
44
|
|
|
57
|
-
const
|
|
45
|
+
const _descriptor_4 = new __compactRuntime.CompactTypeUnsignedInteger(255n, 1);
|
|
58
46
|
|
|
59
|
-
class
|
|
47
|
+
class _Signature_0 {
|
|
60
48
|
alignment() {
|
|
61
|
-
return
|
|
49
|
+
return _descriptor_3.alignment().concat(_descriptor_0.alignment().concat(_descriptor_4.alignment()));
|
|
62
50
|
}
|
|
63
51
|
fromValue(value_0) {
|
|
64
52
|
return {
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
53
|
+
bigR: _descriptor_3.fromValue(value_0),
|
|
54
|
+
s: _descriptor_0.fromValue(value_0),
|
|
55
|
+
recoveryId: _descriptor_4.fromValue(value_0)
|
|
68
56
|
}
|
|
69
57
|
}
|
|
70
58
|
toValue(value_0) {
|
|
71
|
-
return
|
|
59
|
+
return _descriptor_3.toValue(value_0.bigR).concat(_descriptor_0.toValue(value_0.s).concat(_descriptor_4.toValue(value_0.recoveryId)));
|
|
72
60
|
}
|
|
73
61
|
}
|
|
74
62
|
|
|
75
|
-
const
|
|
63
|
+
const _descriptor_5 = new _Signature_0();
|
|
76
64
|
|
|
77
|
-
class
|
|
65
|
+
class _RespondBidirectionalEventV1_0 {
|
|
78
66
|
alignment() {
|
|
79
|
-
return
|
|
67
|
+
return _descriptor_0.alignment().concat(_descriptor_1.alignment().concat(_descriptor_2.alignment().concat(_descriptor_1.alignment().concat(_descriptor_0.alignment().concat(_descriptor_0.alignment().concat(_descriptor_5.alignment()))))));
|
|
80
68
|
}
|
|
81
69
|
fromValue(value_0) {
|
|
82
70
|
return {
|
|
83
|
-
|
|
84
|
-
|
|
71
|
+
requestId: _descriptor_0.fromValue(value_0),
|
|
72
|
+
blockHeight: _descriptor_1.fromValue(value_0),
|
|
73
|
+
outputKind: _descriptor_2.fromValue(value_0),
|
|
74
|
+
serializedOutputLength: _descriptor_1.fromValue(value_0),
|
|
75
|
+
outputHash: _descriptor_0.fromValue(value_0),
|
|
76
|
+
digest: _descriptor_0.fromValue(value_0),
|
|
77
|
+
signature: _descriptor_5.fromValue(value_0)
|
|
85
78
|
}
|
|
86
79
|
}
|
|
87
80
|
toValue(value_0) {
|
|
88
|
-
return
|
|
81
|
+
return _descriptor_0.toValue(value_0.requestId).concat(_descriptor_1.toValue(value_0.blockHeight).concat(_descriptor_2.toValue(value_0.outputKind).concat(_descriptor_1.toValue(value_0.serializedOutputLength).concat(_descriptor_0.toValue(value_0.outputHash).concat(_descriptor_0.toValue(value_0.digest).concat(_descriptor_5.toValue(value_0.signature)))))));
|
|
89
82
|
}
|
|
90
83
|
}
|
|
91
84
|
|
|
92
|
-
const
|
|
85
|
+
const _descriptor_6 = new _RespondBidirectionalEventV1_0();
|
|
93
86
|
|
|
94
|
-
const
|
|
87
|
+
const _descriptor_7 = __compactRuntime.CompactTypeSecp256k1Point;
|
|
95
88
|
|
|
96
|
-
|
|
89
|
+
const _descriptor_8 = __compactRuntime.CompactTypeBoolean;
|
|
90
|
+
|
|
91
|
+
class _ContractAddress_0 {
|
|
97
92
|
alignment() {
|
|
98
|
-
return
|
|
93
|
+
return _descriptor_0.alignment();
|
|
99
94
|
}
|
|
100
95
|
fromValue(value_0) {
|
|
101
96
|
return {
|
|
102
|
-
|
|
103
|
-
storageKeyCount: _descriptor_0.fromValue(value_0),
|
|
104
|
-
storageKeys: _descriptor_14.fromValue(value_0)
|
|
97
|
+
bytes: _descriptor_0.fromValue(value_0)
|
|
105
98
|
}
|
|
106
99
|
}
|
|
107
100
|
toValue(value_0) {
|
|
108
|
-
return
|
|
101
|
+
return _descriptor_0.toValue(value_0.bytes);
|
|
109
102
|
}
|
|
110
103
|
}
|
|
111
104
|
|
|
112
|
-
const
|
|
105
|
+
const _descriptor_9 = new _ContractAddress_0();
|
|
113
106
|
|
|
114
|
-
const
|
|
107
|
+
const _descriptor_10 = new __compactRuntime.CompactTypeEnum(1, 1);
|
|
115
108
|
|
|
116
|
-
|
|
109
|
+
const _descriptor_11 = new __compactRuntime.CompactTypeEnum(1, 1);
|
|
110
|
+
|
|
111
|
+
const _descriptor_12 = new __compactRuntime.CompactTypeUnsignedInteger(340282366920938463463374607431768211455n, 16);
|
|
112
|
+
|
|
113
|
+
const _descriptor_13 = new __compactRuntime.CompactTypeBytes(20);
|
|
114
|
+
|
|
115
|
+
const _descriptor_14 = new __compactRuntime.CompactTypeBytes(4);
|
|
116
|
+
|
|
117
|
+
const _descriptor_15 = new __compactRuntime.CompactTypeUnsignedInteger(65535n, 2);
|
|
118
|
+
|
|
119
|
+
const _descriptor_16 = new __compactRuntime.CompactTypeVector(1, _descriptor_0);
|
|
120
|
+
|
|
121
|
+
class _EvmCalldata_0 {
|
|
117
122
|
alignment() {
|
|
118
|
-
return
|
|
123
|
+
return _descriptor_14.alignment().concat(_descriptor_15.alignment().concat(_descriptor_16.alignment()));
|
|
119
124
|
}
|
|
120
125
|
fromValue(value_0) {
|
|
121
126
|
return {
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
maxFeePerGas: _descriptor_6.fromValue(value_0),
|
|
126
|
-
gasLimit: _descriptor_5.fromValue(value_0),
|
|
127
|
-
to: _descriptor_7.fromValue(value_0),
|
|
128
|
-
value: _descriptor_6.fromValue(value_0),
|
|
129
|
-
calldata: _descriptor_13.fromValue(value_0),
|
|
130
|
-
accessListEntryCount: _descriptor_0.fromValue(value_0),
|
|
131
|
-
accessList: _descriptor_16.fromValue(value_0)
|
|
127
|
+
selector: _descriptor_14.fromValue(value_0),
|
|
128
|
+
noWords: _descriptor_15.fromValue(value_0),
|
|
129
|
+
words: _descriptor_16.fromValue(value_0)
|
|
132
130
|
}
|
|
133
131
|
}
|
|
134
132
|
toValue(value_0) {
|
|
135
|
-
return
|
|
133
|
+
return _descriptor_14.toValue(value_0.selector).concat(_descriptor_15.toValue(value_0.noWords).concat(_descriptor_16.toValue(value_0.words)));
|
|
136
134
|
}
|
|
137
135
|
}
|
|
138
136
|
|
|
139
|
-
const _descriptor_17 = new
|
|
137
|
+
const _descriptor_17 = new _EvmCalldata_0();
|
|
140
138
|
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
const _descriptor_19 = new __compactRuntime.CompactTypeBytes(64);
|
|
144
|
-
|
|
145
|
-
const _descriptor_20 = new __compactRuntime.CompactTypeBytes(34);
|
|
146
|
-
|
|
147
|
-
const _descriptor_21 = new __compactRuntime.CompactTypeBytes(0);
|
|
148
|
-
|
|
149
|
-
class _SignBidirectionalEventV1_0 {
|
|
139
|
+
class _Maybe_0 {
|
|
150
140
|
alignment() {
|
|
151
|
-
return
|
|
141
|
+
return _descriptor_8.alignment().concat(_descriptor_17.alignment());
|
|
152
142
|
}
|
|
153
143
|
fromValue(value_0) {
|
|
154
144
|
return {
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
path: _descriptor_1.fromValue(value_0),
|
|
158
|
-
algo: _descriptor_3.fromValue(value_0),
|
|
159
|
-
txParamType: _descriptor_4.fromValue(value_0),
|
|
160
|
-
txParams: _descriptor_17.fromValue(value_0),
|
|
161
|
-
executionDest: _descriptor_1.fromValue(value_0),
|
|
162
|
-
signatureDest: _descriptor_18.fromValue(value_0),
|
|
163
|
-
params: _descriptor_19.fromValue(value_0),
|
|
164
|
-
outputDeserializationSchema: _descriptor_20.fromValue(value_0),
|
|
165
|
-
respondSerializationSchema: _descriptor_21.fromValue(value_0)
|
|
145
|
+
is_some: _descriptor_8.fromValue(value_0),
|
|
146
|
+
value: _descriptor_17.fromValue(value_0)
|
|
166
147
|
}
|
|
167
148
|
}
|
|
168
149
|
toValue(value_0) {
|
|
169
|
-
return
|
|
150
|
+
return _descriptor_8.toValue(value_0.is_some).concat(_descriptor_17.toValue(value_0.value));
|
|
170
151
|
}
|
|
171
152
|
}
|
|
172
153
|
|
|
173
|
-
const
|
|
154
|
+
const _descriptor_18 = new _Maybe_0();
|
|
174
155
|
|
|
175
|
-
const
|
|
156
|
+
const _descriptor_19 = new __compactRuntime.CompactTypeVector(0, _descriptor_0);
|
|
176
157
|
|
|
177
|
-
class
|
|
158
|
+
class _EvmAccessListEntry_0 {
|
|
178
159
|
alignment() {
|
|
179
|
-
return
|
|
160
|
+
return _descriptor_13.alignment().concat(_descriptor_4.alignment().concat(_descriptor_19.alignment()));
|
|
180
161
|
}
|
|
181
162
|
fromValue(value_0) {
|
|
182
163
|
return {
|
|
183
|
-
|
|
184
|
-
|
|
164
|
+
address: _descriptor_13.fromValue(value_0),
|
|
165
|
+
storageKeyCount: _descriptor_4.fromValue(value_0),
|
|
166
|
+
storageKeys: _descriptor_19.fromValue(value_0)
|
|
185
167
|
}
|
|
186
168
|
}
|
|
187
169
|
toValue(value_0) {
|
|
188
|
-
return
|
|
170
|
+
return _descriptor_13.toValue(value_0.address).concat(_descriptor_4.toValue(value_0.storageKeyCount).concat(_descriptor_19.toValue(value_0.storageKeys)));
|
|
189
171
|
}
|
|
190
172
|
}
|
|
191
173
|
|
|
192
|
-
const
|
|
174
|
+
const _descriptor_20 = new _EvmAccessListEntry_0();
|
|
193
175
|
|
|
194
|
-
|
|
176
|
+
const _descriptor_21 = new __compactRuntime.CompactTypeVector(0, _descriptor_20);
|
|
177
|
+
|
|
178
|
+
class _EvmType2TxParams_0 {
|
|
195
179
|
alignment() {
|
|
196
|
-
return
|
|
180
|
+
return _descriptor_1.alignment().concat(_descriptor_1.alignment().concat(_descriptor_12.alignment().concat(_descriptor_12.alignment().concat(_descriptor_1.alignment().concat(_descriptor_13.alignment().concat(_descriptor_12.alignment().concat(_descriptor_18.alignment().concat(_descriptor_4.alignment().concat(_descriptor_21.alignment())))))))));
|
|
197
181
|
}
|
|
198
182
|
fromValue(value_0) {
|
|
199
183
|
return {
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
184
|
+
chainId: _descriptor_1.fromValue(value_0),
|
|
185
|
+
nonce: _descriptor_1.fromValue(value_0),
|
|
186
|
+
maxPriorityFeePerGas: _descriptor_12.fromValue(value_0),
|
|
187
|
+
maxFeePerGas: _descriptor_12.fromValue(value_0),
|
|
188
|
+
gasLimit: _descriptor_1.fromValue(value_0),
|
|
189
|
+
to: _descriptor_13.fromValue(value_0),
|
|
190
|
+
value: _descriptor_12.fromValue(value_0),
|
|
191
|
+
calldata: _descriptor_18.fromValue(value_0),
|
|
192
|
+
accessListEntryCount: _descriptor_4.fromValue(value_0),
|
|
193
|
+
accessList: _descriptor_21.fromValue(value_0)
|
|
203
194
|
}
|
|
204
195
|
}
|
|
205
196
|
toValue(value_0) {
|
|
206
|
-
return
|
|
197
|
+
return _descriptor_1.toValue(value_0.chainId).concat(_descriptor_1.toValue(value_0.nonce).concat(_descriptor_12.toValue(value_0.maxPriorityFeePerGas).concat(_descriptor_12.toValue(value_0.maxFeePerGas).concat(_descriptor_1.toValue(value_0.gasLimit).concat(_descriptor_13.toValue(value_0.to).concat(_descriptor_12.toValue(value_0.value).concat(_descriptor_18.toValue(value_0.calldata).concat(_descriptor_4.toValue(value_0.accessListEntryCount).concat(_descriptor_21.toValue(value_0.accessList))))))))));
|
|
207
198
|
}
|
|
208
199
|
}
|
|
209
200
|
|
|
210
|
-
const
|
|
201
|
+
const _descriptor_22 = new _EvmType2TxParams_0();
|
|
211
202
|
|
|
212
|
-
|
|
203
|
+
const _descriptor_23 = new __compactRuntime.CompactTypeBytes(64);
|
|
204
|
+
|
|
205
|
+
const _descriptor_24 = new __compactRuntime.CompactTypeEnum(1, 1);
|
|
206
|
+
|
|
207
|
+
const _descriptor_25 = new __compactRuntime.CompactTypeBytes(34);
|
|
208
|
+
|
|
209
|
+
const _descriptor_26 = new __compactRuntime.CompactTypeBytes(0);
|
|
210
|
+
|
|
211
|
+
class _SignBidirectionalEventV1_0 {
|
|
213
212
|
alignment() {
|
|
214
|
-
return
|
|
213
|
+
return _descriptor_4.alignment().concat(_descriptor_9.alignment().concat(_descriptor_0.alignment().concat(_descriptor_10.alignment().concat(_descriptor_11.alignment().concat(_descriptor_22.alignment().concat(_descriptor_23.alignment().concat(_descriptor_24.alignment().concat(_descriptor_23.alignment().concat(_descriptor_25.alignment().concat(_descriptor_26.alignment()))))))))));
|
|
215
214
|
}
|
|
216
215
|
fromValue(value_0) {
|
|
217
216
|
return {
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
217
|
+
keyVersion: _descriptor_4.fromValue(value_0),
|
|
218
|
+
sender: _descriptor_9.fromValue(value_0),
|
|
219
|
+
path: _descriptor_0.fromValue(value_0),
|
|
220
|
+
algo: _descriptor_10.fromValue(value_0),
|
|
221
|
+
txParamType: _descriptor_11.fromValue(value_0),
|
|
222
|
+
txParams: _descriptor_22.fromValue(value_0),
|
|
223
|
+
executionDest: _descriptor_23.fromValue(value_0),
|
|
224
|
+
signatureDest: _descriptor_24.fromValue(value_0),
|
|
225
|
+
params: _descriptor_23.fromValue(value_0),
|
|
226
|
+
outputDeserializationSchema: _descriptor_25.fromValue(value_0),
|
|
227
|
+
respondSerializationSchema: _descriptor_26.fromValue(value_0)
|
|
224
228
|
}
|
|
225
229
|
}
|
|
226
230
|
toValue(value_0) {
|
|
227
|
-
return
|
|
231
|
+
return _descriptor_4.toValue(value_0.keyVersion).concat(_descriptor_9.toValue(value_0.sender).concat(_descriptor_0.toValue(value_0.path).concat(_descriptor_10.toValue(value_0.algo).concat(_descriptor_11.toValue(value_0.txParamType).concat(_descriptor_22.toValue(value_0.txParams).concat(_descriptor_23.toValue(value_0.executionDest).concat(_descriptor_24.toValue(value_0.signatureDest).concat(_descriptor_23.toValue(value_0.params).concat(_descriptor_25.toValue(value_0.outputDeserializationSchema).concat(_descriptor_26.toValue(value_0.respondSerializationSchema)))))))))));
|
|
228
232
|
}
|
|
229
233
|
}
|
|
230
234
|
|
|
231
|
-
const
|
|
232
|
-
|
|
233
|
-
const _descriptor_27 = __compactRuntime.CompactTypeSecp256k1Point;
|
|
235
|
+
const _descriptor_27 = new _SignBidirectionalEventV1_0();
|
|
234
236
|
|
|
235
|
-
const _descriptor_28 = new __compactRuntime.CompactTypeVector(2,
|
|
237
|
+
const _descriptor_28 = new __compactRuntime.CompactTypeVector(2, _descriptor_0);
|
|
236
238
|
|
|
237
239
|
class _EvmCalldata_1 {
|
|
238
240
|
alignment() {
|
|
239
|
-
return
|
|
241
|
+
return _descriptor_14.alignment().concat(_descriptor_15.alignment().concat(_descriptor_28.alignment()));
|
|
240
242
|
}
|
|
241
243
|
fromValue(value_0) {
|
|
242
244
|
return {
|
|
243
|
-
selector:
|
|
244
|
-
noWords:
|
|
245
|
+
selector: _descriptor_14.fromValue(value_0),
|
|
246
|
+
noWords: _descriptor_15.fromValue(value_0),
|
|
245
247
|
words: _descriptor_28.fromValue(value_0)
|
|
246
248
|
}
|
|
247
249
|
}
|
|
248
250
|
toValue(value_0) {
|
|
249
|
-
return
|
|
251
|
+
return _descriptor_14.toValue(value_0.selector).concat(_descriptor_15.toValue(value_0.noWords).concat(_descriptor_28.toValue(value_0.words)));
|
|
250
252
|
}
|
|
251
253
|
}
|
|
252
254
|
|
|
@@ -271,17 +273,17 @@ const _descriptor_30 = new _Maybe_1();
|
|
|
271
273
|
|
|
272
274
|
class _EvmAccessListEntry_1 {
|
|
273
275
|
alignment() {
|
|
274
|
-
return
|
|
276
|
+
return _descriptor_13.alignment().concat(_descriptor_4.alignment().concat(_descriptor_28.alignment()));
|
|
275
277
|
}
|
|
276
278
|
fromValue(value_0) {
|
|
277
279
|
return {
|
|
278
|
-
address:
|
|
279
|
-
storageKeyCount:
|
|
280
|
+
address: _descriptor_13.fromValue(value_0),
|
|
281
|
+
storageKeyCount: _descriptor_4.fromValue(value_0),
|
|
280
282
|
storageKeys: _descriptor_28.fromValue(value_0)
|
|
281
283
|
}
|
|
282
284
|
}
|
|
283
285
|
toValue(value_0) {
|
|
284
|
-
return
|
|
286
|
+
return _descriptor_13.toValue(value_0.address).concat(_descriptor_4.toValue(value_0.storageKeyCount).concat(_descriptor_28.toValue(value_0.storageKeys)));
|
|
285
287
|
}
|
|
286
288
|
}
|
|
287
289
|
|
|
@@ -291,24 +293,24 @@ const _descriptor_32 = new __compactRuntime.CompactTypeVector(1, _descriptor_31)
|
|
|
291
293
|
|
|
292
294
|
class _EvmType2TxParams_1 {
|
|
293
295
|
alignment() {
|
|
294
|
-
return
|
|
296
|
+
return _descriptor_1.alignment().concat(_descriptor_1.alignment().concat(_descriptor_12.alignment().concat(_descriptor_12.alignment().concat(_descriptor_1.alignment().concat(_descriptor_13.alignment().concat(_descriptor_12.alignment().concat(_descriptor_30.alignment().concat(_descriptor_4.alignment().concat(_descriptor_32.alignment())))))))));
|
|
295
297
|
}
|
|
296
298
|
fromValue(value_0) {
|
|
297
299
|
return {
|
|
298
|
-
chainId:
|
|
299
|
-
nonce:
|
|
300
|
-
maxPriorityFeePerGas:
|
|
301
|
-
maxFeePerGas:
|
|
302
|
-
gasLimit:
|
|
303
|
-
to:
|
|
304
|
-
value:
|
|
300
|
+
chainId: _descriptor_1.fromValue(value_0),
|
|
301
|
+
nonce: _descriptor_1.fromValue(value_0),
|
|
302
|
+
maxPriorityFeePerGas: _descriptor_12.fromValue(value_0),
|
|
303
|
+
maxFeePerGas: _descriptor_12.fromValue(value_0),
|
|
304
|
+
gasLimit: _descriptor_1.fromValue(value_0),
|
|
305
|
+
to: _descriptor_13.fromValue(value_0),
|
|
306
|
+
value: _descriptor_12.fromValue(value_0),
|
|
305
307
|
calldata: _descriptor_30.fromValue(value_0),
|
|
306
|
-
accessListEntryCount:
|
|
308
|
+
accessListEntryCount: _descriptor_4.fromValue(value_0),
|
|
307
309
|
accessList: _descriptor_32.fromValue(value_0)
|
|
308
310
|
}
|
|
309
311
|
}
|
|
310
312
|
toValue(value_0) {
|
|
311
|
-
return
|
|
313
|
+
return _descriptor_1.toValue(value_0.chainId).concat(_descriptor_1.toValue(value_0.nonce).concat(_descriptor_12.toValue(value_0.maxPriorityFeePerGas).concat(_descriptor_12.toValue(value_0.maxFeePerGas).concat(_descriptor_1.toValue(value_0.gasLimit).concat(_descriptor_13.toValue(value_0.to).concat(_descriptor_12.toValue(value_0.value).concat(_descriptor_30.toValue(value_0.calldata).concat(_descriptor_4.toValue(value_0.accessListEntryCount).concat(_descriptor_32.toValue(value_0.accessList))))))))));
|
|
312
314
|
}
|
|
313
315
|
}
|
|
314
316
|
|
|
@@ -316,120 +318,120 @@ const _descriptor_33 = new _EvmType2TxParams_1();
|
|
|
316
318
|
|
|
317
319
|
class _SignBidirectionalEventV1_1 {
|
|
318
320
|
alignment() {
|
|
319
|
-
return
|
|
321
|
+
return _descriptor_4.alignment().concat(_descriptor_9.alignment().concat(_descriptor_0.alignment().concat(_descriptor_10.alignment().concat(_descriptor_11.alignment().concat(_descriptor_33.alignment().concat(_descriptor_23.alignment().concat(_descriptor_24.alignment().concat(_descriptor_23.alignment().concat(_descriptor_25.alignment().concat(_descriptor_26.alignment()))))))))));
|
|
320
322
|
}
|
|
321
323
|
fromValue(value_0) {
|
|
322
324
|
return {
|
|
323
|
-
keyVersion:
|
|
324
|
-
sender:
|
|
325
|
-
path:
|
|
326
|
-
algo:
|
|
327
|
-
txParamType:
|
|
325
|
+
keyVersion: _descriptor_4.fromValue(value_0),
|
|
326
|
+
sender: _descriptor_9.fromValue(value_0),
|
|
327
|
+
path: _descriptor_0.fromValue(value_0),
|
|
328
|
+
algo: _descriptor_10.fromValue(value_0),
|
|
329
|
+
txParamType: _descriptor_11.fromValue(value_0),
|
|
328
330
|
txParams: _descriptor_33.fromValue(value_0),
|
|
329
|
-
executionDest:
|
|
330
|
-
signatureDest:
|
|
331
|
-
params:
|
|
332
|
-
outputDeserializationSchema:
|
|
333
|
-
respondSerializationSchema:
|
|
331
|
+
executionDest: _descriptor_23.fromValue(value_0),
|
|
332
|
+
signatureDest: _descriptor_24.fromValue(value_0),
|
|
333
|
+
params: _descriptor_23.fromValue(value_0),
|
|
334
|
+
outputDeserializationSchema: _descriptor_25.fromValue(value_0),
|
|
335
|
+
respondSerializationSchema: _descriptor_26.fromValue(value_0)
|
|
334
336
|
}
|
|
335
337
|
}
|
|
336
338
|
toValue(value_0) {
|
|
337
|
-
return
|
|
339
|
+
return _descriptor_4.toValue(value_0.keyVersion).concat(_descriptor_9.toValue(value_0.sender).concat(_descriptor_0.toValue(value_0.path).concat(_descriptor_10.toValue(value_0.algo).concat(_descriptor_11.toValue(value_0.txParamType).concat(_descriptor_33.toValue(value_0.txParams).concat(_descriptor_23.toValue(value_0.executionDest).concat(_descriptor_24.toValue(value_0.signatureDest).concat(_descriptor_23.toValue(value_0.params).concat(_descriptor_25.toValue(value_0.outputDeserializationSchema).concat(_descriptor_26.toValue(value_0.respondSerializationSchema)))))))))));
|
|
338
340
|
}
|
|
339
341
|
}
|
|
340
342
|
|
|
341
343
|
const _descriptor_34 = new _SignBidirectionalEventV1_1();
|
|
342
344
|
|
|
343
|
-
const _descriptor_35 = new __compactRuntime.CompactTypeBytes(
|
|
344
|
-
|
|
345
|
-
const _descriptor_36 = new __compactRuntime.CompactTypeBytes(1);
|
|
345
|
+
const _descriptor_35 = new __compactRuntime.CompactTypeBytes(2);
|
|
346
346
|
|
|
347
|
-
const
|
|
347
|
+
const _descriptor_36 = new __compactRuntime.CompactTypeBytes(100);
|
|
348
348
|
|
|
349
|
-
const
|
|
349
|
+
const _descriptor_37 = new __compactRuntime.CompactTypeBytes(1);
|
|
350
350
|
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
class _SignBidirectionalEventNotification_0 {
|
|
351
|
+
class _RequestIdPreimageV1_0 {
|
|
354
352
|
alignment() {
|
|
355
|
-
return _descriptor_0.alignment().concat(
|
|
353
|
+
return _descriptor_4.alignment().concat(_descriptor_9.alignment().concat(_descriptor_0.alignment().concat(_descriptor_10.alignment().concat(_descriptor_11.alignment().concat(_descriptor_0.alignment().concat(_descriptor_23.alignment()))))));
|
|
356
354
|
}
|
|
357
355
|
fromValue(value_0) {
|
|
358
356
|
return {
|
|
359
|
-
|
|
360
|
-
|
|
357
|
+
keyVersion: _descriptor_4.fromValue(value_0),
|
|
358
|
+
sender: _descriptor_9.fromValue(value_0),
|
|
359
|
+
path: _descriptor_0.fromValue(value_0),
|
|
360
|
+
algo: _descriptor_10.fromValue(value_0),
|
|
361
|
+
txParamType: _descriptor_11.fromValue(value_0),
|
|
362
|
+
txParamsDigest: _descriptor_0.fromValue(value_0),
|
|
363
|
+
executionDest: _descriptor_23.fromValue(value_0)
|
|
361
364
|
}
|
|
362
365
|
}
|
|
363
366
|
toValue(value_0) {
|
|
364
|
-
return _descriptor_0.toValue(value_0.
|
|
367
|
+
return _descriptor_4.toValue(value_0.keyVersion).concat(_descriptor_9.toValue(value_0.sender).concat(_descriptor_0.toValue(value_0.path).concat(_descriptor_10.toValue(value_0.algo).concat(_descriptor_11.toValue(value_0.txParamType).concat(_descriptor_0.toValue(value_0.txParamsDigest).concat(_descriptor_23.toValue(value_0.executionDest)))))));
|
|
365
368
|
}
|
|
366
369
|
}
|
|
367
370
|
|
|
368
|
-
const
|
|
371
|
+
const _descriptor_38 = new _RequestIdPreimageV1_0();
|
|
369
372
|
|
|
370
|
-
|
|
373
|
+
const _descriptor_39 = new __compactRuntime.CompactTypeVector(4, _descriptor_4);
|
|
374
|
+
|
|
375
|
+
const _descriptor_40 = new __compactRuntime.CompactTypeBytes(128);
|
|
376
|
+
|
|
377
|
+
class _SignBidirectionalEventNotification_0 {
|
|
371
378
|
alignment() {
|
|
372
|
-
return
|
|
379
|
+
return _descriptor_4.alignment().concat(_descriptor_40.alignment());
|
|
373
380
|
}
|
|
374
381
|
fromValue(value_0) {
|
|
375
382
|
return {
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
path: _descriptor_1.fromValue(value_0),
|
|
379
|
-
algo: _descriptor_3.fromValue(value_0),
|
|
380
|
-
txParamType: _descriptor_4.fromValue(value_0),
|
|
381
|
-
txParamsDigest: _descriptor_1.fromValue(value_0),
|
|
382
|
-
executionDest: _descriptor_1.fromValue(value_0)
|
|
383
|
+
version: _descriptor_4.fromValue(value_0),
|
|
384
|
+
payload: _descriptor_40.fromValue(value_0)
|
|
383
385
|
}
|
|
384
386
|
}
|
|
385
387
|
toValue(value_0) {
|
|
386
|
-
return
|
|
388
|
+
return _descriptor_4.toValue(value_0.version).concat(_descriptor_40.toValue(value_0.payload));
|
|
387
389
|
}
|
|
388
390
|
}
|
|
389
391
|
|
|
390
|
-
const _descriptor_41 = new
|
|
392
|
+
const _descriptor_41 = new _SignBidirectionalEventNotification_0();
|
|
391
393
|
|
|
392
394
|
const _descriptor_42 = __compactRuntime.CompactTypeSecp256k1Scalar;
|
|
393
395
|
|
|
394
396
|
const _descriptor_43 = __compactRuntime.CompactTypeSecp256k1Base;
|
|
395
397
|
|
|
396
|
-
const _descriptor_44 =
|
|
398
|
+
const _descriptor_44 = __compactRuntime.CompactTypeField;
|
|
399
|
+
|
|
400
|
+
const _descriptor_45 = new __compactRuntime.CompactTypeEnum(6, 1);
|
|
397
401
|
|
|
398
402
|
class _tuple_0 {
|
|
399
403
|
alignment() {
|
|
400
|
-
return
|
|
404
|
+
return _descriptor_45.alignment().concat(_descriptor_38.alignment());
|
|
401
405
|
}
|
|
402
406
|
fromValue(value_0) {
|
|
403
407
|
return [
|
|
404
|
-
|
|
405
|
-
|
|
408
|
+
_descriptor_45.fromValue(value_0),
|
|
409
|
+
_descriptor_38.fromValue(value_0)
|
|
406
410
|
]
|
|
407
411
|
}
|
|
408
412
|
toValue(value_0) {
|
|
409
|
-
return
|
|
413
|
+
return _descriptor_45.toValue(value_0[0]).concat(_descriptor_38.toValue(value_0[1]));
|
|
410
414
|
}
|
|
411
415
|
}
|
|
412
416
|
|
|
413
|
-
const
|
|
414
|
-
|
|
415
|
-
const _descriptor_46 = __compactRuntime.CompactTypeField;
|
|
417
|
+
const _descriptor_46 = new _tuple_0();
|
|
416
418
|
|
|
417
419
|
class _tuple_1 {
|
|
418
420
|
alignment() {
|
|
419
|
-
return
|
|
421
|
+
return _descriptor_45.alignment().concat(_descriptor_0.alignment().concat(_descriptor_1.alignment().concat(_descriptor_2.alignment().concat(_descriptor_1.alignment().concat(_descriptor_0.alignment())))));
|
|
420
422
|
}
|
|
421
423
|
fromValue(value_0) {
|
|
422
424
|
return [
|
|
423
|
-
|
|
425
|
+
_descriptor_45.fromValue(value_0),
|
|
426
|
+
_descriptor_0.fromValue(value_0),
|
|
424
427
|
_descriptor_1.fromValue(value_0),
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
_descriptor_21.fromValue(value_0)
|
|
428
|
+
_descriptor_2.fromValue(value_0),
|
|
429
|
+
_descriptor_1.fromValue(value_0),
|
|
430
|
+
_descriptor_0.fromValue(value_0)
|
|
429
431
|
]
|
|
430
432
|
}
|
|
431
433
|
toValue(value_0) {
|
|
432
|
-
return
|
|
434
|
+
return _descriptor_45.toValue(value_0[0]).concat(_descriptor_0.toValue(value_0[1]).concat(_descriptor_1.toValue(value_0[2]).concat(_descriptor_2.toValue(value_0[3]).concat(_descriptor_1.toValue(value_0[4]).concat(_descriptor_0.toValue(value_0[5]))))));
|
|
433
435
|
}
|
|
434
436
|
}
|
|
435
437
|
|
|
@@ -437,20 +439,16 @@ const _descriptor_47 = new _tuple_1();
|
|
|
437
439
|
|
|
438
440
|
class _tuple_2 {
|
|
439
441
|
alignment() {
|
|
440
|
-
return
|
|
442
|
+
return _descriptor_45.alignment().concat(_descriptor_26.alignment());
|
|
441
443
|
}
|
|
442
444
|
fromValue(value_0) {
|
|
443
445
|
return [
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
_descriptor_5.fromValue(value_0),
|
|
447
|
-
_descriptor_23.fromValue(value_0),
|
|
448
|
-
_descriptor_5.fromValue(value_0),
|
|
449
|
-
_descriptor_1.fromValue(value_0)
|
|
446
|
+
_descriptor_45.fromValue(value_0),
|
|
447
|
+
_descriptor_26.fromValue(value_0)
|
|
450
448
|
]
|
|
451
449
|
}
|
|
452
450
|
toValue(value_0) {
|
|
453
|
-
return
|
|
451
|
+
return _descriptor_45.toValue(value_0[0]).concat(_descriptor_26.toValue(value_0[1]));
|
|
454
452
|
}
|
|
455
453
|
}
|
|
456
454
|
|
|
@@ -458,17 +456,16 @@ const _descriptor_48 = new _tuple_2();
|
|
|
458
456
|
|
|
459
457
|
class _tuple_3 {
|
|
460
458
|
alignment() {
|
|
461
|
-
return
|
|
459
|
+
return _descriptor_45.alignment().concat(_descriptor_0.alignment());
|
|
462
460
|
}
|
|
463
461
|
fromValue(value_0) {
|
|
464
462
|
return [
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
_descriptor_1.fromValue(value_0)
|
|
463
|
+
_descriptor_45.fromValue(value_0),
|
|
464
|
+
_descriptor_0.fromValue(value_0)
|
|
468
465
|
]
|
|
469
466
|
}
|
|
470
467
|
toValue(value_0) {
|
|
471
|
-
return
|
|
468
|
+
return _descriptor_45.toValue(value_0[0]).concat(_descriptor_0.toValue(value_0[1]));
|
|
472
469
|
}
|
|
473
470
|
}
|
|
474
471
|
|
|
@@ -476,19 +473,17 @@ const _descriptor_49 = new _tuple_3();
|
|
|
476
473
|
|
|
477
474
|
class _tuple_4 {
|
|
478
475
|
alignment() {
|
|
479
|
-
return
|
|
476
|
+
return _descriptor_45.alignment().concat(_descriptor_44.alignment().concat(_descriptor_0.alignment()));
|
|
480
477
|
}
|
|
481
478
|
fromValue(value_0) {
|
|
482
479
|
return [
|
|
480
|
+
_descriptor_45.fromValue(value_0),
|
|
483
481
|
_descriptor_44.fromValue(value_0),
|
|
484
|
-
|
|
485
|
-
_descriptor_7.fromValue(value_0),
|
|
486
|
-
_descriptor_0.fromValue(value_0),
|
|
487
|
-
_descriptor_46.fromValue(value_0)
|
|
482
|
+
_descriptor_0.fromValue(value_0)
|
|
488
483
|
]
|
|
489
484
|
}
|
|
490
485
|
toValue(value_0) {
|
|
491
|
-
return
|
|
486
|
+
return _descriptor_45.toValue(value_0[0]).concat(_descriptor_44.toValue(value_0[1]).concat(_descriptor_0.toValue(value_0[2])));
|
|
492
487
|
}
|
|
493
488
|
}
|
|
494
489
|
|
|
@@ -496,20 +491,19 @@ const _descriptor_50 = new _tuple_4();
|
|
|
496
491
|
|
|
497
492
|
class _tuple_5 {
|
|
498
493
|
alignment() {
|
|
499
|
-
return
|
|
494
|
+
return _descriptor_45.alignment().concat(_descriptor_44.alignment().concat(_descriptor_13.alignment().concat(_descriptor_4.alignment().concat(_descriptor_44.alignment()))));
|
|
500
495
|
}
|
|
501
496
|
fromValue(value_0) {
|
|
502
497
|
return [
|
|
498
|
+
_descriptor_45.fromValue(value_0),
|
|
503
499
|
_descriptor_44.fromValue(value_0),
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
_descriptor_5.fromValue(value_0),
|
|
508
|
-
_descriptor_35.fromValue(value_0)
|
|
500
|
+
_descriptor_13.fromValue(value_0),
|
|
501
|
+
_descriptor_4.fromValue(value_0),
|
|
502
|
+
_descriptor_44.fromValue(value_0)
|
|
509
503
|
]
|
|
510
504
|
}
|
|
511
505
|
toValue(value_0) {
|
|
512
|
-
return
|
|
506
|
+
return _descriptor_45.toValue(value_0[0]).concat(_descriptor_44.toValue(value_0[1]).concat(_descriptor_13.toValue(value_0[2]).concat(_descriptor_4.toValue(value_0[3]).concat(_descriptor_44.toValue(value_0[4])))));
|
|
513
507
|
}
|
|
514
508
|
}
|
|
515
509
|
|
|
@@ -517,26 +511,16 @@ const _descriptor_51 = new _tuple_5();
|
|
|
517
511
|
|
|
518
512
|
class _tuple_6 {
|
|
519
513
|
alignment() {
|
|
520
|
-
return
|
|
514
|
+
return _descriptor_45.alignment().concat(_descriptor_35.alignment());
|
|
521
515
|
}
|
|
522
516
|
fromValue(value_0) {
|
|
523
517
|
return [
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
_descriptor_5.fromValue(value_0),
|
|
527
|
-
_descriptor_6.fromValue(value_0),
|
|
528
|
-
_descriptor_6.fromValue(value_0),
|
|
529
|
-
_descriptor_5.fromValue(value_0),
|
|
530
|
-
_descriptor_7.fromValue(value_0),
|
|
531
|
-
_descriptor_6.fromValue(value_0),
|
|
532
|
-
_descriptor_8.fromValue(value_0),
|
|
533
|
-
_descriptor_9.fromValue(value_0),
|
|
534
|
-
_descriptor_10.fromValue(value_0),
|
|
535
|
-
_descriptor_0.fromValue(value_0)
|
|
518
|
+
_descriptor_45.fromValue(value_0),
|
|
519
|
+
_descriptor_35.fromValue(value_0)
|
|
536
520
|
]
|
|
537
521
|
}
|
|
538
522
|
toValue(value_0) {
|
|
539
|
-
return
|
|
523
|
+
return _descriptor_45.toValue(value_0[0]).concat(_descriptor_35.toValue(value_0[1]));
|
|
540
524
|
}
|
|
541
525
|
}
|
|
542
526
|
|
|
@@ -544,20 +528,26 @@ const _descriptor_52 = new _tuple_6();
|
|
|
544
528
|
|
|
545
529
|
class _tuple_7 {
|
|
546
530
|
alignment() {
|
|
547
|
-
return
|
|
531
|
+
return _descriptor_45.alignment().concat(_descriptor_1.alignment().concat(_descriptor_1.alignment().concat(_descriptor_12.alignment().concat(_descriptor_12.alignment().concat(_descriptor_1.alignment().concat(_descriptor_13.alignment().concat(_descriptor_12.alignment().concat(_descriptor_8.alignment().concat(_descriptor_14.alignment().concat(_descriptor_15.alignment().concat(_descriptor_4.alignment())))))))))));
|
|
548
532
|
}
|
|
549
533
|
fromValue(value_0) {
|
|
550
534
|
return [
|
|
551
|
-
|
|
535
|
+
_descriptor_45.fromValue(value_0),
|
|
552
536
|
_descriptor_1.fromValue(value_0),
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
537
|
+
_descriptor_1.fromValue(value_0),
|
|
538
|
+
_descriptor_12.fromValue(value_0),
|
|
539
|
+
_descriptor_12.fromValue(value_0),
|
|
540
|
+
_descriptor_1.fromValue(value_0),
|
|
541
|
+
_descriptor_13.fromValue(value_0),
|
|
542
|
+
_descriptor_12.fromValue(value_0),
|
|
543
|
+
_descriptor_8.fromValue(value_0),
|
|
544
|
+
_descriptor_14.fromValue(value_0),
|
|
545
|
+
_descriptor_15.fromValue(value_0),
|
|
546
|
+
_descriptor_4.fromValue(value_0)
|
|
557
547
|
]
|
|
558
548
|
}
|
|
559
549
|
toValue(value_0) {
|
|
560
|
-
return
|
|
550
|
+
return _descriptor_45.toValue(value_0[0]).concat(_descriptor_1.toValue(value_0[1]).concat(_descriptor_1.toValue(value_0[2]).concat(_descriptor_12.toValue(value_0[3]).concat(_descriptor_12.toValue(value_0[4]).concat(_descriptor_1.toValue(value_0[5]).concat(_descriptor_13.toValue(value_0[6]).concat(_descriptor_12.toValue(value_0[7]).concat(_descriptor_8.toValue(value_0[8]).concat(_descriptor_14.toValue(value_0[9]).concat(_descriptor_15.toValue(value_0[10]).concat(_descriptor_4.toValue(value_0[11]))))))))))));
|
|
561
551
|
}
|
|
562
552
|
}
|
|
563
553
|
|
|
@@ -565,25 +555,38 @@ const _descriptor_53 = new _tuple_7();
|
|
|
565
555
|
|
|
566
556
|
class _tuple_8 {
|
|
567
557
|
alignment() {
|
|
568
|
-
return
|
|
558
|
+
return _descriptor_45.alignment().concat(_descriptor_36.alignment());
|
|
569
559
|
}
|
|
570
560
|
fromValue(value_0) {
|
|
571
561
|
return [
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
_descriptor_5.fromValue(value_0),
|
|
575
|
-
_descriptor_23.fromValue(value_0),
|
|
576
|
-
_descriptor_5.fromValue(value_0),
|
|
577
|
-
_descriptor_37.fromValue(value_0)
|
|
562
|
+
_descriptor_45.fromValue(value_0),
|
|
563
|
+
_descriptor_36.fromValue(value_0)
|
|
578
564
|
]
|
|
579
565
|
}
|
|
580
566
|
toValue(value_0) {
|
|
581
|
-
return
|
|
567
|
+
return _descriptor_45.toValue(value_0[0]).concat(_descriptor_36.toValue(value_0[1]));
|
|
582
568
|
}
|
|
583
569
|
}
|
|
584
570
|
|
|
585
571
|
const _descriptor_54 = new _tuple_8();
|
|
586
572
|
|
|
573
|
+
class _tuple_9 {
|
|
574
|
+
alignment() {
|
|
575
|
+
return _descriptor_45.alignment().concat(_descriptor_37.alignment());
|
|
576
|
+
}
|
|
577
|
+
fromValue(value_0) {
|
|
578
|
+
return [
|
|
579
|
+
_descriptor_45.fromValue(value_0),
|
|
580
|
+
_descriptor_37.fromValue(value_0)
|
|
581
|
+
]
|
|
582
|
+
}
|
|
583
|
+
toValue(value_0) {
|
|
584
|
+
return _descriptor_45.toValue(value_0[0]).concat(_descriptor_37.toValue(value_0[1]));
|
|
585
|
+
}
|
|
586
|
+
}
|
|
587
|
+
|
|
588
|
+
const _descriptor_55 = new _tuple_9();
|
|
589
|
+
|
|
587
590
|
class _Secp256k1EcdsaSignature_0 {
|
|
588
591
|
alignment() {
|
|
589
592
|
return _descriptor_42.alignment().concat(_descriptor_42.alignment());
|
|
@@ -599,27 +602,27 @@ class _Secp256k1EcdsaSignature_0 {
|
|
|
599
602
|
}
|
|
600
603
|
}
|
|
601
604
|
|
|
602
|
-
const
|
|
605
|
+
const _descriptor_56 = new _Secp256k1EcdsaSignature_0();
|
|
603
606
|
|
|
604
607
|
class _Either_0 {
|
|
605
608
|
alignment() {
|
|
606
|
-
return _descriptor_8.alignment().concat(
|
|
609
|
+
return _descriptor_8.alignment().concat(_descriptor_0.alignment().concat(_descriptor_0.alignment()));
|
|
607
610
|
}
|
|
608
611
|
fromValue(value_0) {
|
|
609
612
|
return {
|
|
610
613
|
is_left: _descriptor_8.fromValue(value_0),
|
|
611
|
-
left:
|
|
612
|
-
right:
|
|
614
|
+
left: _descriptor_0.fromValue(value_0),
|
|
615
|
+
right: _descriptor_0.fromValue(value_0)
|
|
613
616
|
}
|
|
614
617
|
}
|
|
615
618
|
toValue(value_0) {
|
|
616
|
-
return _descriptor_8.toValue(value_0.is_left).concat(
|
|
619
|
+
return _descriptor_8.toValue(value_0.is_left).concat(_descriptor_0.toValue(value_0.left).concat(_descriptor_0.toValue(value_0.right)));
|
|
617
620
|
}
|
|
618
621
|
}
|
|
619
622
|
|
|
620
|
-
const
|
|
623
|
+
const _descriptor_57 = new _Either_0();
|
|
621
624
|
|
|
622
|
-
const
|
|
625
|
+
const _descriptor_58 = new __compactRuntime.CompactTypeUnsignedInteger(4294967295n, 4);
|
|
623
626
|
|
|
624
627
|
export class Contract {
|
|
625
628
|
witnesses;
|
|
@@ -639,6 +642,12 @@ export class Contract {
|
|
|
639
642
|
async constructSignBidirectionalEventNotificationV1(context, ...args_1) {
|
|
640
643
|
return { result: pureCircuits.constructSignBidirectionalEventNotificationV1(...args_1), context };
|
|
641
644
|
},
|
|
645
|
+
async calculateSignetAttestationDigestV1(context, ...args_1) {
|
|
646
|
+
return { result: pureCircuits.calculateSignetAttestationDigestV1(...args_1), context };
|
|
647
|
+
},
|
|
648
|
+
async verifyRespondBidirectionalAttestationV1(context, ...args_1) {
|
|
649
|
+
return { result: pureCircuits.verifyRespondBidirectionalAttestationV1(...args_1), context };
|
|
650
|
+
},
|
|
642
651
|
async ethereumCaip2Id(context, ...args_1) {
|
|
643
652
|
return { result: pureCircuits.ethereumCaip2Id(...args_1), context };
|
|
644
653
|
},
|
|
@@ -660,20 +669,26 @@ export class Contract {
|
|
|
660
669
|
async abiWordToBool(context, ...args_1) {
|
|
661
670
|
return { result: pureCircuits.abiWordToBool(...args_1), context };
|
|
662
671
|
},
|
|
663
|
-
async
|
|
664
|
-
return { result: pureCircuits.
|
|
672
|
+
async calculateAttestedOutputHash0(context, ...args_1) {
|
|
673
|
+
return { result: pureCircuits.calculateAttestedOutputHash0(...args_1), context };
|
|
674
|
+
},
|
|
675
|
+
async calculateAttestedOutputHash1(context, ...args_1) {
|
|
676
|
+
return { result: pureCircuits.calculateAttestedOutputHash1(...args_1), context };
|
|
677
|
+
},
|
|
678
|
+
async calculateAttestedOutputHash2(context, ...args_1) {
|
|
679
|
+
return { result: pureCircuits.calculateAttestedOutputHash2(...args_1), context };
|
|
665
680
|
},
|
|
666
|
-
async
|
|
667
|
-
return { result: pureCircuits.
|
|
681
|
+
async calculateAttestedOutputHash32(context, ...args_1) {
|
|
682
|
+
return { result: pureCircuits.calculateAttestedOutputHash32(...args_1), context };
|
|
668
683
|
},
|
|
669
|
-
async
|
|
670
|
-
return { result: pureCircuits.
|
|
684
|
+
async calculateAttestedOutputHash100(context, ...args_1) {
|
|
685
|
+
return { result: pureCircuits.calculateAttestedOutputHash100(...args_1), context };
|
|
671
686
|
},
|
|
672
|
-
async
|
|
673
|
-
return { result: pureCircuits.
|
|
687
|
+
async verifyAttestedOutput1(context, ...args_1) {
|
|
688
|
+
return { result: pureCircuits.verifyAttestedOutput1(...args_1), context };
|
|
674
689
|
},
|
|
675
|
-
async
|
|
676
|
-
return { result: pureCircuits.
|
|
690
|
+
async verifyAttestedOutput2(context, ...args_1) {
|
|
691
|
+
return { result: pureCircuits.verifyAttestedOutput2(...args_1), context };
|
|
677
692
|
},
|
|
678
693
|
async calculateEvmType2TxParamsDigestV1_1_0_0(context, ...args_1) {
|
|
679
694
|
return { result: pureCircuits.calculateEvmType2TxParamsDigestV1_1_0_0(...args_1), context };
|
|
@@ -793,39 +808,43 @@ export class Contract {
|
|
|
793
808
|
r_0;
|
|
794
809
|
}
|
|
795
810
|
_transientHash_0(value_0) {
|
|
796
|
-
const result_0 = __compactRuntime.transientHash(
|
|
811
|
+
const result_0 = __compactRuntime.transientHash(_descriptor_54, value_0);
|
|
797
812
|
return result_0;
|
|
798
813
|
}
|
|
799
814
|
_transientHash_1(value_0) {
|
|
800
|
-
const result_0 = __compactRuntime.transientHash(
|
|
815
|
+
const result_0 = __compactRuntime.transientHash(_descriptor_55, value_0);
|
|
801
816
|
return result_0;
|
|
802
817
|
}
|
|
803
818
|
_transientHash_2(value_0) {
|
|
804
|
-
const result_0 = __compactRuntime.transientHash(
|
|
819
|
+
const result_0 = __compactRuntime.transientHash(_descriptor_52, value_0);
|
|
805
820
|
return result_0;
|
|
806
821
|
}
|
|
807
822
|
_transientHash_3(value_0) {
|
|
808
|
-
const result_0 = __compactRuntime.transientHash(
|
|
823
|
+
const result_0 = __compactRuntime.transientHash(_descriptor_53, value_0);
|
|
809
824
|
return result_0;
|
|
810
825
|
}
|
|
811
826
|
_transientHash_4(value_0) {
|
|
812
|
-
const result_0 = __compactRuntime.transientHash(
|
|
827
|
+
const result_0 = __compactRuntime.transientHash(_descriptor_50, value_0);
|
|
813
828
|
return result_0;
|
|
814
829
|
}
|
|
815
830
|
_transientHash_5(value_0) {
|
|
816
|
-
const result_0 = __compactRuntime.transientHash(
|
|
831
|
+
const result_0 = __compactRuntime.transientHash(_descriptor_51, value_0);
|
|
817
832
|
return result_0;
|
|
818
833
|
}
|
|
819
834
|
_transientHash_6(value_0) {
|
|
820
|
-
const result_0 = __compactRuntime.transientHash(
|
|
835
|
+
const result_0 = __compactRuntime.transientHash(_descriptor_48, value_0);
|
|
821
836
|
return result_0;
|
|
822
837
|
}
|
|
823
838
|
_transientHash_7(value_0) {
|
|
824
|
-
const result_0 = __compactRuntime.transientHash(
|
|
839
|
+
const result_0 = __compactRuntime.transientHash(_descriptor_49, value_0);
|
|
825
840
|
return result_0;
|
|
826
841
|
}
|
|
827
842
|
_transientHash_8(value_0) {
|
|
828
|
-
const result_0 = __compactRuntime.transientHash(
|
|
843
|
+
const result_0 = __compactRuntime.transientHash(_descriptor_46, value_0);
|
|
844
|
+
return result_0;
|
|
845
|
+
}
|
|
846
|
+
_transientHash_9(value_0) {
|
|
847
|
+
const result_0 = __compactRuntime.transientHash(_descriptor_47, value_0);
|
|
829
848
|
return result_0;
|
|
830
849
|
}
|
|
831
850
|
_upgradeFromTransient_0(x_0) {
|
|
@@ -905,114 +924,122 @@ export class Contract {
|
|
|
905
924
|
...Array.from(new Uint8Array(91), BigInt)],
|
|
906
925
|
Number) };
|
|
907
926
|
}
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
outputKind_0,
|
|
911
|
-
serializedOutput_0)
|
|
912
|
-
{
|
|
913
|
-
return this._upgradeFromTransient_0(this._transientHash_0([1,
|
|
914
|
-
requestId_0,
|
|
915
|
-
blockHeight_0,
|
|
916
|
-
outputKind_0,
|
|
917
|
-
1n,
|
|
927
|
+
_calculateAttestedOutputHashV1_0(serializedOutput_0) {
|
|
928
|
+
return this._upgradeFromTransient_0(this._transientHash_0([6,
|
|
918
929
|
serializedOutput_0]));
|
|
919
930
|
}
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
outputKind_0,
|
|
923
|
-
serializedOutput_0)
|
|
924
|
-
{
|
|
925
|
-
return this._upgradeFromTransient_0(this._transientHash_1([1,
|
|
926
|
-
requestId_0,
|
|
927
|
-
blockHeight_0,
|
|
928
|
-
outputKind_0,
|
|
929
|
-
2n,
|
|
931
|
+
_calculateAttestedOutputHashV1_1(serializedOutput_0) {
|
|
932
|
+
return this._upgradeFromTransient_0(this._transientHash_1([6,
|
|
930
933
|
serializedOutput_0]));
|
|
931
934
|
}
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
outputKind_0,
|
|
935
|
-
serializedOutput_0)
|
|
936
|
-
{
|
|
937
|
-
return this._upgradeFromTransient_0(this._transientHash_2([1,
|
|
938
|
-
requestId_0,
|
|
939
|
-
blockHeight_0,
|
|
940
|
-
outputKind_0,
|
|
941
|
-
100n,
|
|
935
|
+
_calculateAttestedOutputHashV1_2(serializedOutput_0) {
|
|
936
|
+
return this._upgradeFromTransient_0(this._transientHash_2([6,
|
|
942
937
|
serializedOutput_0]));
|
|
943
938
|
}
|
|
944
|
-
|
|
945
|
-
|
|
946
|
-
outputKind_0,
|
|
947
|
-
serializedOutput_0)
|
|
948
|
-
{
|
|
949
|
-
return this._upgradeFromTransient_0(this._transientHash_6([1,
|
|
950
|
-
requestId_0,
|
|
951
|
-
blockHeight_0,
|
|
952
|
-
outputKind_0,
|
|
953
|
-
0n,
|
|
939
|
+
_calculateAttestedOutputHashV1_3(serializedOutput_0) {
|
|
940
|
+
return this._upgradeFromTransient_0(this._transientHash_6([6,
|
|
954
941
|
serializedOutput_0]));
|
|
955
942
|
}
|
|
956
|
-
|
|
943
|
+
_calculateAttestedOutputHashV1_4(serializedOutput_0) {
|
|
944
|
+
return this._upgradeFromTransient_0(this._transientHash_7([6,
|
|
945
|
+
serializedOutput_0]));
|
|
946
|
+
}
|
|
947
|
+
_calculateSignetAttestationDigestV1_0(requestId_0,
|
|
957
948
|
blockHeight_0,
|
|
958
949
|
outputKind_0,
|
|
959
|
-
|
|
950
|
+
serializedOutputLength_0,
|
|
951
|
+
outputHash_0)
|
|
960
952
|
{
|
|
961
|
-
return this._upgradeFromTransient_0(this.
|
|
953
|
+
return this._upgradeFromTransient_0(this._transientHash_9([1,
|
|
962
954
|
requestId_0,
|
|
963
955
|
blockHeight_0,
|
|
964
956
|
outputKind_0,
|
|
965
|
-
|
|
966
|
-
|
|
957
|
+
serializedOutputLength_0,
|
|
958
|
+
outputHash_0]));
|
|
967
959
|
}
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
mpcResponseKey_0)
|
|
960
|
+
_verifyRespondBidirectionalAttestationV1_0(respondBidirectionalEvent_0,
|
|
961
|
+
mpcResponseKey_0)
|
|
971
962
|
{
|
|
972
|
-
const digest_0 = this.
|
|
963
|
+
const digest_0 = this._calculateSignetAttestationDigestV1_0(respondBidirectionalEvent_0.requestId,
|
|
973
964
|
respondBidirectionalEvent_0.blockHeight,
|
|
974
965
|
respondBidirectionalEvent_0.outputKind,
|
|
975
|
-
|
|
966
|
+
respondBidirectionalEvent_0.serializedOutputLength,
|
|
967
|
+
respondBidirectionalEvent_0.outputHash);
|
|
976
968
|
return this._secp256k1EcdsaVerify_0(digest_0,
|
|
977
969
|
{ r:
|
|
978
970
|
__compactRuntime.convertBytesToField(115792089237316195423570985008687907852837564279074904382605163141518161494336n,
|
|
979
971
|
32,
|
|
980
972
|
respondBidirectionalEvent_0.signature.bigR.x,
|
|
981
973
|
'Secp256k1Scalar',
|
|
982
|
-
'Signet.compact line
|
|
974
|
+
'Signet.compact line 452 char 12'),
|
|
983
975
|
s:
|
|
984
976
|
__compactRuntime.convertBytesToField(115792089237316195423570985008687907852837564279074904382605163141518161494336n,
|
|
985
977
|
32,
|
|
986
978
|
respondBidirectionalEvent_0.signature.s,
|
|
987
979
|
'Secp256k1Scalar',
|
|
988
|
-
'Signet.compact line
|
|
980
|
+
'Signet.compact line 453 char 12') },
|
|
989
981
|
mpcResponseKey_0);
|
|
990
982
|
}
|
|
983
|
+
_verifyAttestedOutputV1_0(serializedOutput_0,
|
|
984
|
+
attestedOutputLength_0,
|
|
985
|
+
attestedOutputHash_0)
|
|
986
|
+
{
|
|
987
|
+
const lengthMatches_0 = attestedOutputLength_0 === 1n;
|
|
988
|
+
const hashMatches_0 = this._equal_2(attestedOutputHash_0,
|
|
989
|
+
this._calculateAttestedOutputHashV1_1(serializedOutput_0));
|
|
990
|
+
return lengthMatches_0 && hashMatches_0;
|
|
991
|
+
}
|
|
992
|
+
_verifyAttestedOutputV1_1(serializedOutput_0,
|
|
993
|
+
attestedOutputLength_0,
|
|
994
|
+
attestedOutputHash_0)
|
|
995
|
+
{
|
|
996
|
+
const lengthMatches_0 = attestedOutputLength_0 === 2n;
|
|
997
|
+
const hashMatches_0 = this._equal_3(attestedOutputHash_0,
|
|
998
|
+
this._calculateAttestedOutputHashV1_2(serializedOutput_0));
|
|
999
|
+
return lengthMatches_0 && hashMatches_0;
|
|
1000
|
+
}
|
|
1001
|
+
_verifyAttestedOutputV1_2(serializedOutput_0,
|
|
1002
|
+
attestedOutputLength_0,
|
|
1003
|
+
attestedOutputHash_0)
|
|
1004
|
+
{
|
|
1005
|
+
const lengthMatches_0 = attestedOutputLength_0 === 0n;
|
|
1006
|
+
const hashMatches_0 = this._equal_4(attestedOutputHash_0,
|
|
1007
|
+
this._calculateAttestedOutputHashV1_3(serializedOutput_0));
|
|
1008
|
+
return lengthMatches_0 && hashMatches_0;
|
|
1009
|
+
}
|
|
1010
|
+
_verifyAttestedOutputV1_3(serializedOutput_0,
|
|
1011
|
+
attestedOutputLength_0,
|
|
1012
|
+
attestedOutputHash_0)
|
|
1013
|
+
{
|
|
1014
|
+
const lengthMatches_0 = attestedOutputLength_0 === 32n;
|
|
1015
|
+
const hashMatches_0 = this._equal_5(attestedOutputHash_0,
|
|
1016
|
+
this._calculateAttestedOutputHashV1_4(serializedOutput_0));
|
|
1017
|
+
return lengthMatches_0 && hashMatches_0;
|
|
1018
|
+
}
|
|
1019
|
+
_verifyRespondBidirectionalEventV1_0(serializedOutput_0,
|
|
1020
|
+
respondBidirectionalEvent_0,
|
|
1021
|
+
mpcResponseKey_0)
|
|
1022
|
+
{
|
|
1023
|
+
const outputMatches_0 = this._verifyAttestedOutputV1_2(serializedOutput_0,
|
|
1024
|
+
respondBidirectionalEvent_0.serializedOutputLength,
|
|
1025
|
+
respondBidirectionalEvent_0.outputHash);
|
|
1026
|
+
const attested_0 = this._verifyRespondBidirectionalAttestationV1_0(respondBidirectionalEvent_0,
|
|
1027
|
+
mpcResponseKey_0);
|
|
1028
|
+
return outputMatches_0 && attested_0;
|
|
1029
|
+
}
|
|
991
1030
|
_verifyRespondBidirectionalEventV1_1(serializedOutput_0,
|
|
992
1031
|
respondBidirectionalEvent_0,
|
|
993
1032
|
mpcResponseKey_0)
|
|
994
1033
|
{
|
|
995
|
-
const
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
__compactRuntime.convertBytesToField(115792089237316195423570985008687907852837564279074904382605163141518161494336n,
|
|
1002
|
-
32,
|
|
1003
|
-
respondBidirectionalEvent_0.signature.bigR.x,
|
|
1004
|
-
'Secp256k1Scalar',
|
|
1005
|
-
'Signet.compact line 428 char 12'),
|
|
1006
|
-
s:
|
|
1007
|
-
__compactRuntime.convertBytesToField(115792089237316195423570985008687907852837564279074904382605163141518161494336n,
|
|
1008
|
-
32,
|
|
1009
|
-
respondBidirectionalEvent_0.signature.s,
|
|
1010
|
-
'Secp256k1Scalar',
|
|
1011
|
-
'Signet.compact line 429 char 12') },
|
|
1012
|
-
mpcResponseKey_0);
|
|
1034
|
+
const outputMatches_0 = this._verifyAttestedOutputV1_3(serializedOutput_0,
|
|
1035
|
+
respondBidirectionalEvent_0.serializedOutputLength,
|
|
1036
|
+
respondBidirectionalEvent_0.outputHash);
|
|
1037
|
+
const attested_0 = this._verifyRespondBidirectionalAttestationV1_0(respondBidirectionalEvent_0,
|
|
1038
|
+
mpcResponseKey_0);
|
|
1039
|
+
return outputMatches_0 && attested_0;
|
|
1013
1040
|
}
|
|
1014
1041
|
_ethereumCaip2Id_0() {
|
|
1015
|
-
return new Uint8Array([101, 105, 112, 49, 53, 53, 58, 49, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]);
|
|
1042
|
+
return new Uint8Array([101, 105, 112, 49, 53, 53, 58, 49, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]);
|
|
1016
1043
|
}
|
|
1017
1044
|
_calculateEvmType2TxParamsDigestV1_0(txParams_0) {
|
|
1018
1045
|
const calldata_0 = txParams_0.calldata;
|
|
@@ -1029,7 +1056,7 @@ export class Contract {
|
|
|
1029
1056
|
let t_1, t_2;
|
|
1030
1057
|
return [((t1) => {
|
|
1031
1058
|
if (t1 > 255n) {
|
|
1032
|
-
throw new __compactRuntime.CompactError('Signet.compact line
|
|
1059
|
+
throw new __compactRuntime.CompactError('Signet.compact line 595 char 10: cast from Field or Uint value to smaller Uint value failed: ' + t1 + ' is greater than 255');
|
|
1033
1060
|
}
|
|
1034
1061
|
return t1;
|
|
1035
1062
|
})(acc_0[0] + 1n),
|
|
@@ -1064,7 +1091,7 @@ export class Contract {
|
|
|
1064
1091
|
let t_3;
|
|
1065
1092
|
return [((t1) => {
|
|
1066
1093
|
if (t1 > 65535n) {
|
|
1067
|
-
throw new __compactRuntime.CompactError('Signet.compact line
|
|
1094
|
+
throw new __compactRuntime.CompactError('Signet.compact line 622 char 10: cast from Field or Uint value to smaller Uint value failed: ' + t1 + ' is greater than 65535');
|
|
1068
1095
|
}
|
|
1069
1096
|
return t1;
|
|
1070
1097
|
})(acc_1[0] + 1n),
|
|
@@ -1084,7 +1111,7 @@ export class Contract {
|
|
|
1084
1111
|
let t_4;
|
|
1085
1112
|
return [((t1) => {
|
|
1086
1113
|
if (t1 > 255n) {
|
|
1087
|
-
throw new __compactRuntime.CompactError('Signet.compact line
|
|
1114
|
+
throw new __compactRuntime.CompactError('Signet.compact line 633 char 11: cast from Field or Uint value to smaller Uint value failed: ' + t1 + ' is greater than 255');
|
|
1088
1115
|
}
|
|
1089
1116
|
return t1;
|
|
1090
1117
|
})(acc_2[0] + 1n),
|
|
@@ -1103,7 +1130,7 @@ export class Contract {
|
|
|
1103
1130
|
let t_5;
|
|
1104
1131
|
return [((t1) => {
|
|
1105
1132
|
if (t1 > 255n) {
|
|
1106
|
-
throw new __compactRuntime.CompactError('Signet.compact line
|
|
1133
|
+
throw new __compactRuntime.CompactError('Signet.compact line 642 char 22: cast from Field or Uint value to smaller Uint value failed: ' + t1 + ' is greater than 255');
|
|
1107
1134
|
}
|
|
1108
1135
|
return t1;
|
|
1109
1136
|
})(keyAcc_0[0]
|
|
@@ -1145,7 +1172,7 @@ export class Contract {
|
|
|
1145
1172
|
let t_1, t_2;
|
|
1146
1173
|
return [((t1) => {
|
|
1147
1174
|
if (t1 > 255n) {
|
|
1148
|
-
throw new __compactRuntime.CompactError('Signet.compact line
|
|
1175
|
+
throw new __compactRuntime.CompactError('Signet.compact line 595 char 10: cast from Field or Uint value to smaller Uint value failed: ' + t1 + ' is greater than 255');
|
|
1149
1176
|
}
|
|
1150
1177
|
return t1;
|
|
1151
1178
|
})(acc_0[0] + 1n),
|
|
@@ -1180,7 +1207,7 @@ export class Contract {
|
|
|
1180
1207
|
let t_3;
|
|
1181
1208
|
return [((t1) => {
|
|
1182
1209
|
if (t1 > 65535n) {
|
|
1183
|
-
throw new __compactRuntime.CompactError('Signet.compact line
|
|
1210
|
+
throw new __compactRuntime.CompactError('Signet.compact line 622 char 10: cast from Field or Uint value to smaller Uint value failed: ' + t1 + ' is greater than 65535');
|
|
1184
1211
|
}
|
|
1185
1212
|
return t1;
|
|
1186
1213
|
})(acc_1[0] + 1n),
|
|
@@ -1200,7 +1227,7 @@ export class Contract {
|
|
|
1200
1227
|
let t_4;
|
|
1201
1228
|
return [((t1) => {
|
|
1202
1229
|
if (t1 > 255n) {
|
|
1203
|
-
throw new __compactRuntime.CompactError('Signet.compact line
|
|
1230
|
+
throw new __compactRuntime.CompactError('Signet.compact line 633 char 11: cast from Field or Uint value to smaller Uint value failed: ' + t1 + ' is greater than 255');
|
|
1204
1231
|
}
|
|
1205
1232
|
return t1;
|
|
1206
1233
|
})(acc_2[0] + 1n),
|
|
@@ -1219,7 +1246,7 @@ export class Contract {
|
|
|
1219
1246
|
let t_5;
|
|
1220
1247
|
return [((t1) => {
|
|
1221
1248
|
if (t1 > 255n) {
|
|
1222
|
-
throw new __compactRuntime.CompactError('Signet.compact line
|
|
1249
|
+
throw new __compactRuntime.CompactError('Signet.compact line 642 char 22: cast from Field or Uint value to smaller Uint value failed: ' + t1 + ' is greater than 255');
|
|
1223
1250
|
}
|
|
1224
1251
|
return t1;
|
|
1225
1252
|
})(keyAcc_0[0]
|
|
@@ -1280,7 +1307,7 @@ export class Contract {
|
|
|
1280
1307
|
_numericAbiWord_0(value_0) {
|
|
1281
1308
|
const le_0 = Array.from(__compactRuntime.convertBigintToBytes(16,
|
|
1282
1309
|
value_0,
|
|
1283
|
-
'Signet.compact line
|
|
1310
|
+
'Signet.compact line 692 char 17'),
|
|
1284
1311
|
BigInt);
|
|
1285
1312
|
return Uint8Array.from([...Array.from(new Uint8Array(16), BigInt),
|
|
1286
1313
|
le_0[15],
|
|
@@ -1362,7 +1389,7 @@ export class Contract {
|
|
|
1362
1389
|
v_0[31]);
|
|
1363
1390
|
return ((t1) => {
|
|
1364
1391
|
if (t1 > 340282366920938463463374607431768211455n) {
|
|
1365
|
-
throw new __compactRuntime.CompactError('Signet.compact line
|
|
1392
|
+
throw new __compactRuntime.CompactError('Signet.compact line 744 char 12: cast from Field or Uint value to smaller Uint value failed: ' + t1 + ' is greater than 340282366920938463463374607431768211455');
|
|
1366
1393
|
}
|
|
1367
1394
|
return t1;
|
|
1368
1395
|
})(b15_0);
|
|
@@ -1374,7 +1401,7 @@ export class Contract {
|
|
|
1374
1401
|
32,
|
|
1375
1402
|
x_0,
|
|
1376
1403
|
'Uint<0..340282366920938463463374607431768211456>',
|
|
1377
|
-
'Signet.compact line
|
|
1404
|
+
'Signet.compact line 755 char 12');
|
|
1378
1405
|
}
|
|
1379
1406
|
_abiWordToBool_0(word_0) {
|
|
1380
1407
|
__compactRuntime.assert(__compactRuntime.convertBytesToUint(52435875175126190479447740508185965837690552500527637822603658699938581184512n,
|
|
@@ -1382,7 +1409,7 @@ export class Contract {
|
|
|
1382
1409
|
((e, i) => e.slice(i, i+31))(word_0,
|
|
1383
1410
|
Number(0n)),
|
|
1384
1411
|
'Field',
|
|
1385
|
-
'Signet.compact line
|
|
1412
|
+
'Signet.compact line 761 char 12')
|
|
1386
1413
|
===
|
|
1387
1414
|
0n,
|
|
1388
1415
|
'ABI word is not a canonical Boolean');
|
|
@@ -1391,60 +1418,41 @@ export class Contract {
|
|
|
1391
1418
|
((e, i) => e.slice(i, i+1))(word_0,
|
|
1392
1419
|
Number(31n)),
|
|
1393
1420
|
'Field',
|
|
1394
|
-
'Signet.compact line
|
|
1421
|
+
'Signet.compact line 762 char 18');
|
|
1395
1422
|
__compactRuntime.assert(last_0 === 0n || last_0 === 1n,
|
|
1396
1423
|
'ABI word is not a canonical Boolean');
|
|
1397
1424
|
return last_0 === 1n;
|
|
1398
1425
|
}
|
|
1399
|
-
|
|
1400
|
-
|
|
1401
|
-
outputKind_0,
|
|
1402
|
-
serializedOutput_0)
|
|
1403
|
-
{
|
|
1404
|
-
return this._calculateSignetAttestationDigestV1_3(requestId_0,
|
|
1405
|
-
blockHeight_0,
|
|
1406
|
-
outputKind_0,
|
|
1407
|
-
serializedOutput_0);
|
|
1408
|
-
}
|
|
1409
|
-
_calculateSignetAttestationDigest1_0(requestId_0,
|
|
1410
|
-
blockHeight_0,
|
|
1411
|
-
outputKind_0,
|
|
1412
|
-
serializedOutput_0)
|
|
1413
|
-
{
|
|
1414
|
-
return this._calculateSignetAttestationDigestV1_0(requestId_0,
|
|
1415
|
-
blockHeight_0,
|
|
1416
|
-
outputKind_0,
|
|
1417
|
-
serializedOutput_0);
|
|
1418
|
-
}
|
|
1419
|
-
_calculateSignetAttestationDigest2_0(requestId_0,
|
|
1420
|
-
blockHeight_0,
|
|
1421
|
-
outputKind_0,
|
|
1422
|
-
serializedOutput_0)
|
|
1423
|
-
{
|
|
1424
|
-
return this._calculateSignetAttestationDigestV1_1(requestId_0,
|
|
1425
|
-
blockHeight_0,
|
|
1426
|
-
outputKind_0,
|
|
1427
|
-
serializedOutput_0);
|
|
1426
|
+
_calculateAttestedOutputHash0_0(serializedOutput_0) {
|
|
1427
|
+
return this._calculateAttestedOutputHashV1_3(serializedOutput_0);
|
|
1428
1428
|
}
|
|
1429
|
-
|
|
1430
|
-
|
|
1431
|
-
|
|
1432
|
-
|
|
1429
|
+
_calculateAttestedOutputHash1_0(serializedOutput_0) {
|
|
1430
|
+
return this._calculateAttestedOutputHashV1_1(serializedOutput_0);
|
|
1431
|
+
}
|
|
1432
|
+
_calculateAttestedOutputHash2_0(serializedOutput_0) {
|
|
1433
|
+
return this._calculateAttestedOutputHashV1_2(serializedOutput_0);
|
|
1434
|
+
}
|
|
1435
|
+
_calculateAttestedOutputHash32_0(serializedOutput_0) {
|
|
1436
|
+
return this._calculateAttestedOutputHashV1_4(serializedOutput_0);
|
|
1437
|
+
}
|
|
1438
|
+
_calculateAttestedOutputHash100_0(serializedOutput_0) {
|
|
1439
|
+
return this._calculateAttestedOutputHashV1_0(serializedOutput_0);
|
|
1440
|
+
}
|
|
1441
|
+
_verifyAttestedOutput1_0(serializedOutput_0,
|
|
1442
|
+
attestedOutputLength_0,
|
|
1443
|
+
attestedOutputHash_0)
|
|
1433
1444
|
{
|
|
1434
|
-
return this.
|
|
1435
|
-
|
|
1436
|
-
|
|
1437
|
-
|
|
1438
|
-
|
|
1439
|
-
|
|
1440
|
-
|
|
1441
|
-
outputKind_0,
|
|
1442
|
-
serializedOutput_0)
|
|
1445
|
+
return this._verifyAttestedOutputV1_0(serializedOutput_0,
|
|
1446
|
+
attestedOutputLength_0,
|
|
1447
|
+
attestedOutputHash_0);
|
|
1448
|
+
}
|
|
1449
|
+
_verifyAttestedOutput2_0(serializedOutput_0,
|
|
1450
|
+
attestedOutputLength_0,
|
|
1451
|
+
attestedOutputHash_0)
|
|
1443
1452
|
{
|
|
1444
|
-
return this.
|
|
1445
|
-
|
|
1446
|
-
|
|
1447
|
-
serializedOutput_0);
|
|
1453
|
+
return this._verifyAttestedOutputV1_1(serializedOutput_0,
|
|
1454
|
+
attestedOutputLength_0,
|
|
1455
|
+
attestedOutputHash_0);
|
|
1448
1456
|
}
|
|
1449
1457
|
_calculateEvmType2TxParamsDigestV1_1_0_0_0(txParams_0) {
|
|
1450
1458
|
return this._calculateEvmType2TxParamsDigestV1_0(txParams_0);
|
|
@@ -1494,6 +1502,22 @@ export class Contract {
|
|
|
1494
1502
|
if (!x0.every((x, i) => y0[i] === x)) { return false; }
|
|
1495
1503
|
return true;
|
|
1496
1504
|
}
|
|
1505
|
+
_equal_2(x0, y0) {
|
|
1506
|
+
if (!x0.every((x, i) => y0[i] === x)) { return false; }
|
|
1507
|
+
return true;
|
|
1508
|
+
}
|
|
1509
|
+
_equal_3(x0, y0) {
|
|
1510
|
+
if (!x0.every((x, i) => y0[i] === x)) { return false; }
|
|
1511
|
+
return true;
|
|
1512
|
+
}
|
|
1513
|
+
_equal_4(x0, y0) {
|
|
1514
|
+
if (!x0.every((x, i) => y0[i] === x)) { return false; }
|
|
1515
|
+
return true;
|
|
1516
|
+
}
|
|
1517
|
+
_equal_5(x0, y0) {
|
|
1518
|
+
if (!x0.every((x, i) => y0[i] === x)) { return false; }
|
|
1519
|
+
return true;
|
|
1520
|
+
}
|
|
1497
1521
|
_folder_0(f, x, a0) {
|
|
1498
1522
|
for (let i = 0; i < 0; i++) { x = f(x, a0[i]); }
|
|
1499
1523
|
return x;
|
|
@@ -1553,11 +1577,11 @@ export const pureCircuits = {
|
|
|
1553
1577
|
throw new __compactRuntime.CompactError(`calculateRequestIdV1: expected 1 argument (as invoked from Typescript), received ${args_0.length}`);
|
|
1554
1578
|
}
|
|
1555
1579
|
const preimage_0 = args_0[0];
|
|
1556
|
-
if (!(typeof(preimage_0) === 'object' && typeof(preimage_0.keyVersion) === 'bigint' && preimage_0.keyVersion >= 0n && preimage_0.keyVersion <= 255n && typeof(preimage_0.sender) === 'object' && preimage_0.sender.bytes.buffer instanceof ArrayBuffer && preimage_0.sender.bytes.BYTES_PER_ELEMENT === 1 && preimage_0.sender.bytes.length === 32 && preimage_0.path.buffer instanceof ArrayBuffer && preimage_0.path.BYTES_PER_ELEMENT === 1 && preimage_0.path.length === 32 && typeof(preimage_0.algo) === 'number' && preimage_0.algo >= 0 && preimage_0.algo <= 1 && typeof(preimage_0.txParamType) === 'number' && preimage_0.txParamType >= 0 && preimage_0.txParamType <= 1 && preimage_0.txParamsDigest.buffer instanceof ArrayBuffer && preimage_0.txParamsDigest.BYTES_PER_ELEMENT === 1 && preimage_0.txParamsDigest.length === 32 && preimage_0.executionDest.buffer instanceof ArrayBuffer && preimage_0.executionDest.BYTES_PER_ELEMENT === 1 && preimage_0.executionDest.length ===
|
|
1580
|
+
if (!(typeof(preimage_0) === 'object' && typeof(preimage_0.keyVersion) === 'bigint' && preimage_0.keyVersion >= 0n && preimage_0.keyVersion <= 255n && typeof(preimage_0.sender) === 'object' && preimage_0.sender.bytes.buffer instanceof ArrayBuffer && preimage_0.sender.bytes.BYTES_PER_ELEMENT === 1 && preimage_0.sender.bytes.length === 32 && preimage_0.path.buffer instanceof ArrayBuffer && preimage_0.path.BYTES_PER_ELEMENT === 1 && preimage_0.path.length === 32 && typeof(preimage_0.algo) === 'number' && preimage_0.algo >= 0 && preimage_0.algo <= 1 && typeof(preimage_0.txParamType) === 'number' && preimage_0.txParamType >= 0 && preimage_0.txParamType <= 1 && preimage_0.txParamsDigest.buffer instanceof ArrayBuffer && preimage_0.txParamsDigest.BYTES_PER_ELEMENT === 1 && preimage_0.txParamsDigest.length === 32 && preimage_0.executionDest.buffer instanceof ArrayBuffer && preimage_0.executionDest.BYTES_PER_ELEMENT === 1 && preimage_0.executionDest.length === 64)) {
|
|
1557
1581
|
__compactRuntime.typeError('calculateRequestIdV1',
|
|
1558
1582
|
'argument 1',
|
|
1559
|
-
'Signet.compact line
|
|
1560
|
-
'struct RequestIdPreimageV1<keyVersion: Uint<0..256>, sender: struct ContractAddress<bytes: Bytes<32>>, path: Bytes<32>, algo: Enum<MPCSignatureAlgorithm, ecdsa, reserved>, txParamType: Enum<TxParamType, evmType2, reserved>, txParamsDigest: Bytes<32>, executionDest: Bytes<
|
|
1583
|
+
'Signet.compact line 232 char 3',
|
|
1584
|
+
'struct RequestIdPreimageV1<keyVersion: Uint<0..256>, sender: struct ContractAddress<bytes: Bytes<32>>, path: Bytes<32>, algo: Enum<MPCSignatureAlgorithm, ecdsa, reserved>, txParamType: Enum<TxParamType, evmType2, reserved>, txParamsDigest: Bytes<32>, executionDest: Bytes<64>>',
|
|
1561
1585
|
preimage_0)
|
|
1562
1586
|
}
|
|
1563
1587
|
return _dummyContract._calculateRequestIdV1_0(preimage_0);
|
|
@@ -1572,21 +1596,21 @@ export const pureCircuits = {
|
|
|
1572
1596
|
if (!(typeof(callerAddress_0) === 'object' && callerAddress_0.bytes.buffer instanceof ArrayBuffer && callerAddress_0.bytes.BYTES_PER_ELEMENT === 1 && callerAddress_0.bytes.length === 32)) {
|
|
1573
1597
|
__compactRuntime.typeError('constructSignBidirectionalEventNotificationV1',
|
|
1574
1598
|
'argument 1',
|
|
1575
|
-
'Signet.compact line
|
|
1599
|
+
'Signet.compact line 283 char 3',
|
|
1576
1600
|
'struct ContractAddress<bytes: Bytes<32>>',
|
|
1577
1601
|
callerAddress_0)
|
|
1578
1602
|
}
|
|
1579
1603
|
if (!(typeof(requestsPathDepth_0) === 'bigint' && requestsPathDepth_0 >= 0n && requestsPathDepth_0 <= 255n)) {
|
|
1580
1604
|
__compactRuntime.typeError('constructSignBidirectionalEventNotificationV1',
|
|
1581
1605
|
'argument 2',
|
|
1582
|
-
'Signet.compact line
|
|
1606
|
+
'Signet.compact line 283 char 3',
|
|
1583
1607
|
'Uint<0..256>',
|
|
1584
1608
|
requestsPathDepth_0)
|
|
1585
1609
|
}
|
|
1586
1610
|
if (!(Array.isArray(requestsPath_0) && requestsPath_0.length === 4 && requestsPath_0.every((t) => typeof(t) === 'bigint' && t >= 0n && t <= 255n))) {
|
|
1587
1611
|
__compactRuntime.typeError('constructSignBidirectionalEventNotificationV1',
|
|
1588
1612
|
'argument 3',
|
|
1589
|
-
'Signet.compact line
|
|
1613
|
+
'Signet.compact line 283 char 3',
|
|
1590
1614
|
'Vector<4, Uint<0..256>>',
|
|
1591
1615
|
requestsPath_0)
|
|
1592
1616
|
}
|
|
@@ -1594,6 +1618,72 @@ export const pureCircuits = {
|
|
|
1594
1618
|
requestsPathDepth_0,
|
|
1595
1619
|
requestsPath_0);
|
|
1596
1620
|
},
|
|
1621
|
+
calculateSignetAttestationDigestV1: (...args_0) => {
|
|
1622
|
+
if (args_0.length !== 5) {
|
|
1623
|
+
throw new __compactRuntime.CompactError(`calculateSignetAttestationDigestV1: expected 5 arguments (as invoked from Typescript), received ${args_0.length}`);
|
|
1624
|
+
}
|
|
1625
|
+
const requestId_0 = args_0[0];
|
|
1626
|
+
const blockHeight_0 = args_0[1];
|
|
1627
|
+
const outputKind_0 = args_0[2];
|
|
1628
|
+
const serializedOutputLength_0 = args_0[3];
|
|
1629
|
+
const outputHash_0 = args_0[4];
|
|
1630
|
+
if (!(requestId_0.buffer instanceof ArrayBuffer && requestId_0.BYTES_PER_ELEMENT === 1 && requestId_0.length === 32)) {
|
|
1631
|
+
__compactRuntime.typeError('calculateSignetAttestationDigestV1',
|
|
1632
|
+
'argument 1',
|
|
1633
|
+
'Signet.compact line 409 char 3',
|
|
1634
|
+
'Bytes<32>',
|
|
1635
|
+
requestId_0)
|
|
1636
|
+
}
|
|
1637
|
+
if (!(typeof(blockHeight_0) === 'bigint' && blockHeight_0 >= 0n && blockHeight_0 <= 18446744073709551615n)) {
|
|
1638
|
+
__compactRuntime.typeError('calculateSignetAttestationDigestV1',
|
|
1639
|
+
'argument 2',
|
|
1640
|
+
'Signet.compact line 409 char 3',
|
|
1641
|
+
'Uint<0..18446744073709551616>',
|
|
1642
|
+
blockHeight_0)
|
|
1643
|
+
}
|
|
1644
|
+
if (!(typeof(outputKind_0) === 'number' && outputKind_0 >= 0 && outputKind_0 <= 2)) {
|
|
1645
|
+
__compactRuntime.typeError('calculateSignetAttestationDigestV1',
|
|
1646
|
+
'argument 3',
|
|
1647
|
+
'Signet.compact line 409 char 3',
|
|
1648
|
+
'Enum<OutputKind, executed, failed, unviable>',
|
|
1649
|
+
outputKind_0)
|
|
1650
|
+
}
|
|
1651
|
+
if (!(typeof(serializedOutputLength_0) === 'bigint' && serializedOutputLength_0 >= 0n && serializedOutputLength_0 <= 18446744073709551615n)) {
|
|
1652
|
+
__compactRuntime.typeError('calculateSignetAttestationDigestV1',
|
|
1653
|
+
'argument 4',
|
|
1654
|
+
'Signet.compact line 409 char 3',
|
|
1655
|
+
'Uint<0..18446744073709551616>',
|
|
1656
|
+
serializedOutputLength_0)
|
|
1657
|
+
}
|
|
1658
|
+
if (!(outputHash_0.buffer instanceof ArrayBuffer && outputHash_0.BYTES_PER_ELEMENT === 1 && outputHash_0.length === 32)) {
|
|
1659
|
+
__compactRuntime.typeError('calculateSignetAttestationDigestV1',
|
|
1660
|
+
'argument 5',
|
|
1661
|
+
'Signet.compact line 409 char 3',
|
|
1662
|
+
'Bytes<32>',
|
|
1663
|
+
outputHash_0)
|
|
1664
|
+
}
|
|
1665
|
+
return _dummyContract._calculateSignetAttestationDigestV1_0(requestId_0,
|
|
1666
|
+
blockHeight_0,
|
|
1667
|
+
outputKind_0,
|
|
1668
|
+
serializedOutputLength_0,
|
|
1669
|
+
outputHash_0);
|
|
1670
|
+
},
|
|
1671
|
+
verifyRespondBidirectionalAttestationV1: (...args_0) => {
|
|
1672
|
+
if (args_0.length !== 2) {
|
|
1673
|
+
throw new __compactRuntime.CompactError(`verifyRespondBidirectionalAttestationV1: expected 2 arguments (as invoked from Typescript), received ${args_0.length}`);
|
|
1674
|
+
}
|
|
1675
|
+
const respondBidirectionalEvent_0 = args_0[0];
|
|
1676
|
+
const mpcResponseKey_0 = args_0[1];
|
|
1677
|
+
if (!(typeof(respondBidirectionalEvent_0) === 'object' && respondBidirectionalEvent_0.requestId.buffer instanceof ArrayBuffer && respondBidirectionalEvent_0.requestId.BYTES_PER_ELEMENT === 1 && respondBidirectionalEvent_0.requestId.length === 32 && typeof(respondBidirectionalEvent_0.blockHeight) === 'bigint' && respondBidirectionalEvent_0.blockHeight >= 0n && respondBidirectionalEvent_0.blockHeight <= 18446744073709551615n && typeof(respondBidirectionalEvent_0.outputKind) === 'number' && respondBidirectionalEvent_0.outputKind >= 0 && respondBidirectionalEvent_0.outputKind <= 2 && typeof(respondBidirectionalEvent_0.serializedOutputLength) === 'bigint' && respondBidirectionalEvent_0.serializedOutputLength >= 0n && respondBidirectionalEvent_0.serializedOutputLength <= 18446744073709551615n && respondBidirectionalEvent_0.outputHash.buffer instanceof ArrayBuffer && respondBidirectionalEvent_0.outputHash.BYTES_PER_ELEMENT === 1 && respondBidirectionalEvent_0.outputHash.length === 32 && respondBidirectionalEvent_0.digest.buffer instanceof ArrayBuffer && respondBidirectionalEvent_0.digest.BYTES_PER_ELEMENT === 1 && respondBidirectionalEvent_0.digest.length === 32 && typeof(respondBidirectionalEvent_0.signature) === 'object' && typeof(respondBidirectionalEvent_0.signature.bigR) === 'object' && respondBidirectionalEvent_0.signature.bigR.x.buffer instanceof ArrayBuffer && respondBidirectionalEvent_0.signature.bigR.x.BYTES_PER_ELEMENT === 1 && respondBidirectionalEvent_0.signature.bigR.x.length === 32 && respondBidirectionalEvent_0.signature.bigR.y.buffer instanceof ArrayBuffer && respondBidirectionalEvent_0.signature.bigR.y.BYTES_PER_ELEMENT === 1 && respondBidirectionalEvent_0.signature.bigR.y.length === 32 && respondBidirectionalEvent_0.signature.s.buffer instanceof ArrayBuffer && respondBidirectionalEvent_0.signature.s.BYTES_PER_ELEMENT === 1 && respondBidirectionalEvent_0.signature.s.length === 32 && typeof(respondBidirectionalEvent_0.signature.recoveryId) === 'bigint' && respondBidirectionalEvent_0.signature.recoveryId >= 0n && respondBidirectionalEvent_0.signature.recoveryId <= 255n)) {
|
|
1678
|
+
__compactRuntime.typeError('verifyRespondBidirectionalAttestationV1',
|
|
1679
|
+
'argument 1',
|
|
1680
|
+
'Signet.compact line 437 char 3',
|
|
1681
|
+
'struct RespondBidirectionalEventV1<requestId: Bytes<32>, blockHeight: Uint<0..18446744073709551616>, outputKind: Enum<OutputKind, executed, failed, unviable>, serializedOutputLength: Uint<0..18446744073709551616>, outputHash: Bytes<32>, digest: Bytes<32>, signature: struct Signature<bigR: struct AffinePoint<x: Bytes<32>, y: Bytes<32>>, s: Bytes<32>, recoveryId: Uint<0..256>>>',
|
|
1682
|
+
respondBidirectionalEvent_0)
|
|
1683
|
+
}
|
|
1684
|
+
return _dummyContract._verifyRespondBidirectionalAttestationV1_0(respondBidirectionalEvent_0,
|
|
1685
|
+
mpcResponseKey_0);
|
|
1686
|
+
},
|
|
1597
1687
|
ethereumCaip2Id: (...args_0) => {
|
|
1598
1688
|
if (args_0.length !== 0) {
|
|
1599
1689
|
throw new __compactRuntime.CompactError(`ethereumCaip2Id: expected 0 arguments (as invoked from Typescript), received ${args_0.length}`);
|
|
@@ -1608,7 +1698,7 @@ export const pureCircuits = {
|
|
|
1608
1698
|
if (!(addr_0.buffer instanceof ArrayBuffer && addr_0.BYTES_PER_ELEMENT === 1 && addr_0.length === 20)) {
|
|
1609
1699
|
__compactRuntime.typeError('evmAddressAbiWord',
|
|
1610
1700
|
'argument 1',
|
|
1611
|
-
'Signet.compact line
|
|
1701
|
+
'Signet.compact line 683 char 3',
|
|
1612
1702
|
'Bytes<20>',
|
|
1613
1703
|
addr_0)
|
|
1614
1704
|
}
|
|
@@ -1622,7 +1712,7 @@ export const pureCircuits = {
|
|
|
1622
1712
|
if (!(typeof(value_0) === 'bigint' && value_0 >= 0n && value_0 <= 340282366920938463463374607431768211455n)) {
|
|
1623
1713
|
__compactRuntime.typeError('numericAbiWord',
|
|
1624
1714
|
'argument 1',
|
|
1625
|
-
'Signet.compact line
|
|
1715
|
+
'Signet.compact line 689 char 3',
|
|
1626
1716
|
'Uint<0..340282366920938463463374607431768211456>',
|
|
1627
1717
|
value_0)
|
|
1628
1718
|
}
|
|
@@ -1636,7 +1726,7 @@ export const pureCircuits = {
|
|
|
1636
1726
|
if (!(typeof(value_0) === 'boolean')) {
|
|
1637
1727
|
__compactRuntime.typeError('boolAbiWord',
|
|
1638
1728
|
'argument 1',
|
|
1639
|
-
'Signet.compact line
|
|
1729
|
+
'Signet.compact line 702 char 3',
|
|
1640
1730
|
'Boolean',
|
|
1641
1731
|
value_0)
|
|
1642
1732
|
}
|
|
@@ -1650,7 +1740,7 @@ export const pureCircuits = {
|
|
|
1650
1740
|
if (!(word_0.buffer instanceof ArrayBuffer && word_0.BYTES_PER_ELEMENT === 1 && word_0.length === 32)) {
|
|
1651
1741
|
__compactRuntime.typeError('abiWordToUint128',
|
|
1652
1742
|
'argument 1',
|
|
1653
|
-
'Signet.compact line
|
|
1743
|
+
'Signet.compact line 710 char 3',
|
|
1654
1744
|
'Bytes<32>',
|
|
1655
1745
|
word_0)
|
|
1656
1746
|
}
|
|
@@ -1664,7 +1754,7 @@ export const pureCircuits = {
|
|
|
1664
1754
|
if (!(x_0.buffer instanceof ArrayBuffer && x_0.BYTES_PER_ELEMENT === 1 && x_0.length === 32)) {
|
|
1665
1755
|
__compactRuntime.typeError('checkedTruncationU128',
|
|
1666
1756
|
'argument 1',
|
|
1667
|
-
'Signet.compact line
|
|
1757
|
+
'Signet.compact line 751 char 3',
|
|
1668
1758
|
'Bytes<32>',
|
|
1669
1759
|
x_0)
|
|
1670
1760
|
}
|
|
@@ -1678,216 +1768,145 @@ export const pureCircuits = {
|
|
|
1678
1768
|
if (!(word_0.buffer instanceof ArrayBuffer && word_0.BYTES_PER_ELEMENT === 1 && word_0.length === 32)) {
|
|
1679
1769
|
__compactRuntime.typeError('abiWordToBool',
|
|
1680
1770
|
'argument 1',
|
|
1681
|
-
'Signet.compact line
|
|
1771
|
+
'Signet.compact line 760 char 3',
|
|
1682
1772
|
'Bytes<32>',
|
|
1683
1773
|
word_0)
|
|
1684
1774
|
}
|
|
1685
1775
|
return _dummyContract._abiWordToBool_0(word_0);
|
|
1686
1776
|
},
|
|
1687
|
-
|
|
1688
|
-
if (args_0.length !==
|
|
1689
|
-
throw new __compactRuntime.CompactError(`
|
|
1690
|
-
}
|
|
1691
|
-
const requestId_0 = args_0[0];
|
|
1692
|
-
const blockHeight_0 = args_0[1];
|
|
1693
|
-
const outputKind_0 = args_0[2];
|
|
1694
|
-
const serializedOutput_0 = args_0[3];
|
|
1695
|
-
if (!(requestId_0.buffer instanceof ArrayBuffer && requestId_0.BYTES_PER_ELEMENT === 1 && requestId_0.length === 32)) {
|
|
1696
|
-
__compactRuntime.typeError('calculateSignetAttestationDigest0',
|
|
1697
|
-
'argument 1',
|
|
1698
|
-
'circuits.compact line 32 char 1',
|
|
1699
|
-
'Bytes<32>',
|
|
1700
|
-
requestId_0)
|
|
1701
|
-
}
|
|
1702
|
-
if (!(typeof(blockHeight_0) === 'bigint' && blockHeight_0 >= 0n && blockHeight_0 <= 18446744073709551615n)) {
|
|
1703
|
-
__compactRuntime.typeError('calculateSignetAttestationDigest0',
|
|
1704
|
-
'argument 2',
|
|
1705
|
-
'circuits.compact line 32 char 1',
|
|
1706
|
-
'Uint<0..18446744073709551616>',
|
|
1707
|
-
blockHeight_0)
|
|
1708
|
-
}
|
|
1709
|
-
if (!(typeof(outputKind_0) === 'number' && outputKind_0 >= 0 && outputKind_0 <= 2)) {
|
|
1710
|
-
__compactRuntime.typeError('calculateSignetAttestationDigest0',
|
|
1711
|
-
'argument 3',
|
|
1712
|
-
'circuits.compact line 32 char 1',
|
|
1713
|
-
'Enum<OutputKind, executed, failed, unviable>',
|
|
1714
|
-
outputKind_0)
|
|
1777
|
+
calculateAttestedOutputHash0: (...args_0) => {
|
|
1778
|
+
if (args_0.length !== 1) {
|
|
1779
|
+
throw new __compactRuntime.CompactError(`calculateAttestedOutputHash0: expected 1 argument (as invoked from Typescript), received ${args_0.length}`);
|
|
1715
1780
|
}
|
|
1781
|
+
const serializedOutput_0 = args_0[0];
|
|
1716
1782
|
if (!(serializedOutput_0.buffer instanceof ArrayBuffer && serializedOutput_0.BYTES_PER_ELEMENT === 1 && serializedOutput_0.length === 0)) {
|
|
1717
|
-
__compactRuntime.typeError('
|
|
1718
|
-
'argument
|
|
1719
|
-
'circuits.compact line
|
|
1783
|
+
__compactRuntime.typeError('calculateAttestedOutputHash0',
|
|
1784
|
+
'argument 1',
|
|
1785
|
+
'circuits.compact line 35 char 1',
|
|
1720
1786
|
'Bytes<0>',
|
|
1721
1787
|
serializedOutput_0)
|
|
1722
1788
|
}
|
|
1723
|
-
return _dummyContract.
|
|
1724
|
-
blockHeight_0,
|
|
1725
|
-
outputKind_0,
|
|
1726
|
-
serializedOutput_0);
|
|
1789
|
+
return _dummyContract._calculateAttestedOutputHash0_0(serializedOutput_0);
|
|
1727
1790
|
},
|
|
1728
|
-
|
|
1729
|
-
if (args_0.length !==
|
|
1730
|
-
throw new __compactRuntime.CompactError(`
|
|
1791
|
+
calculateAttestedOutputHash1: (...args_0) => {
|
|
1792
|
+
if (args_0.length !== 1) {
|
|
1793
|
+
throw new __compactRuntime.CompactError(`calculateAttestedOutputHash1: expected 1 argument (as invoked from Typescript), received ${args_0.length}`);
|
|
1731
1794
|
}
|
|
1732
|
-
const
|
|
1733
|
-
|
|
1734
|
-
|
|
1735
|
-
const serializedOutput_0 = args_0[3];
|
|
1736
|
-
if (!(requestId_0.buffer instanceof ArrayBuffer && requestId_0.BYTES_PER_ELEMENT === 1 && requestId_0.length === 32)) {
|
|
1737
|
-
__compactRuntime.typeError('calculateSignetAttestationDigest1',
|
|
1795
|
+
const serializedOutput_0 = args_0[0];
|
|
1796
|
+
if (!(serializedOutput_0.buffer instanceof ArrayBuffer && serializedOutput_0.BYTES_PER_ELEMENT === 1 && serializedOutput_0.length === 1)) {
|
|
1797
|
+
__compactRuntime.typeError('calculateAttestedOutputHash1',
|
|
1738
1798
|
'argument 1',
|
|
1739
1799
|
'circuits.compact line 41 char 1',
|
|
1740
|
-
'Bytes<
|
|
1741
|
-
|
|
1742
|
-
}
|
|
1743
|
-
if (!(typeof(blockHeight_0) === 'bigint' && blockHeight_0 >= 0n && blockHeight_0 <= 18446744073709551615n)) {
|
|
1744
|
-
__compactRuntime.typeError('calculateSignetAttestationDigest1',
|
|
1745
|
-
'argument 2',
|
|
1746
|
-
'circuits.compact line 41 char 1',
|
|
1747
|
-
'Uint<0..18446744073709551616>',
|
|
1748
|
-
blockHeight_0)
|
|
1800
|
+
'Bytes<1>',
|
|
1801
|
+
serializedOutput_0)
|
|
1749
1802
|
}
|
|
1750
|
-
|
|
1751
|
-
|
|
1752
|
-
|
|
1753
|
-
|
|
1754
|
-
|
|
1755
|
-
outputKind_0)
|
|
1803
|
+
return _dummyContract._calculateAttestedOutputHash1_0(serializedOutput_0);
|
|
1804
|
+
},
|
|
1805
|
+
calculateAttestedOutputHash2: (...args_0) => {
|
|
1806
|
+
if (args_0.length !== 1) {
|
|
1807
|
+
throw new __compactRuntime.CompactError(`calculateAttestedOutputHash2: expected 1 argument (as invoked from Typescript), received ${args_0.length}`);
|
|
1756
1808
|
}
|
|
1757
|
-
|
|
1758
|
-
|
|
1759
|
-
|
|
1760
|
-
'
|
|
1761
|
-
'
|
|
1809
|
+
const serializedOutput_0 = args_0[0];
|
|
1810
|
+
if (!(serializedOutput_0.buffer instanceof ArrayBuffer && serializedOutput_0.BYTES_PER_ELEMENT === 1 && serializedOutput_0.length === 2)) {
|
|
1811
|
+
__compactRuntime.typeError('calculateAttestedOutputHash2',
|
|
1812
|
+
'argument 1',
|
|
1813
|
+
'circuits.compact line 47 char 1',
|
|
1814
|
+
'Bytes<2>',
|
|
1762
1815
|
serializedOutput_0)
|
|
1763
1816
|
}
|
|
1764
|
-
return _dummyContract.
|
|
1765
|
-
blockHeight_0,
|
|
1766
|
-
outputKind_0,
|
|
1767
|
-
serializedOutput_0);
|
|
1817
|
+
return _dummyContract._calculateAttestedOutputHash2_0(serializedOutput_0);
|
|
1768
1818
|
},
|
|
1769
|
-
|
|
1770
|
-
if (args_0.length !==
|
|
1771
|
-
throw new __compactRuntime.CompactError(`
|
|
1819
|
+
calculateAttestedOutputHash32: (...args_0) => {
|
|
1820
|
+
if (args_0.length !== 1) {
|
|
1821
|
+
throw new __compactRuntime.CompactError(`calculateAttestedOutputHash32: expected 1 argument (as invoked from Typescript), received ${args_0.length}`);
|
|
1772
1822
|
}
|
|
1773
|
-
const
|
|
1774
|
-
|
|
1775
|
-
|
|
1776
|
-
const serializedOutput_0 = args_0[3];
|
|
1777
|
-
if (!(requestId_0.buffer instanceof ArrayBuffer && requestId_0.BYTES_PER_ELEMENT === 1 && requestId_0.length === 32)) {
|
|
1778
|
-
__compactRuntime.typeError('calculateSignetAttestationDigest2',
|
|
1823
|
+
const serializedOutput_0 = args_0[0];
|
|
1824
|
+
if (!(serializedOutput_0.buffer instanceof ArrayBuffer && serializedOutput_0.BYTES_PER_ELEMENT === 1 && serializedOutput_0.length === 32)) {
|
|
1825
|
+
__compactRuntime.typeError('calculateAttestedOutputHash32',
|
|
1779
1826
|
'argument 1',
|
|
1780
|
-
'circuits.compact line
|
|
1827
|
+
'circuits.compact line 53 char 1',
|
|
1781
1828
|
'Bytes<32>',
|
|
1782
|
-
|
|
1783
|
-
}
|
|
1784
|
-
if (!(typeof(blockHeight_0) === 'bigint' && blockHeight_0 >= 0n && blockHeight_0 <= 18446744073709551615n)) {
|
|
1785
|
-
__compactRuntime.typeError('calculateSignetAttestationDigest2',
|
|
1786
|
-
'argument 2',
|
|
1787
|
-
'circuits.compact line 50 char 1',
|
|
1788
|
-
'Uint<0..18446744073709551616>',
|
|
1789
|
-
blockHeight_0)
|
|
1829
|
+
serializedOutput_0)
|
|
1790
1830
|
}
|
|
1791
|
-
|
|
1792
|
-
|
|
1793
|
-
|
|
1794
|
-
|
|
1795
|
-
|
|
1796
|
-
outputKind_0)
|
|
1831
|
+
return _dummyContract._calculateAttestedOutputHash32_0(serializedOutput_0);
|
|
1832
|
+
},
|
|
1833
|
+
calculateAttestedOutputHash100: (...args_0) => {
|
|
1834
|
+
if (args_0.length !== 1) {
|
|
1835
|
+
throw new __compactRuntime.CompactError(`calculateAttestedOutputHash100: expected 1 argument (as invoked from Typescript), received ${args_0.length}`);
|
|
1797
1836
|
}
|
|
1798
|
-
|
|
1799
|
-
|
|
1800
|
-
|
|
1801
|
-
'
|
|
1802
|
-
'
|
|
1837
|
+
const serializedOutput_0 = args_0[0];
|
|
1838
|
+
if (!(serializedOutput_0.buffer instanceof ArrayBuffer && serializedOutput_0.BYTES_PER_ELEMENT === 1 && serializedOutput_0.length === 100)) {
|
|
1839
|
+
__compactRuntime.typeError('calculateAttestedOutputHash100',
|
|
1840
|
+
'argument 1',
|
|
1841
|
+
'circuits.compact line 59 char 1',
|
|
1842
|
+
'Bytes<100>',
|
|
1803
1843
|
serializedOutput_0)
|
|
1804
1844
|
}
|
|
1805
|
-
return _dummyContract.
|
|
1806
|
-
blockHeight_0,
|
|
1807
|
-
outputKind_0,
|
|
1808
|
-
serializedOutput_0);
|
|
1845
|
+
return _dummyContract._calculateAttestedOutputHash100_0(serializedOutput_0);
|
|
1809
1846
|
},
|
|
1810
|
-
|
|
1811
|
-
if (args_0.length !==
|
|
1812
|
-
throw new __compactRuntime.CompactError(`
|
|
1847
|
+
verifyAttestedOutput1: (...args_0) => {
|
|
1848
|
+
if (args_0.length !== 3) {
|
|
1849
|
+
throw new __compactRuntime.CompactError(`verifyAttestedOutput1: expected 3 arguments (as invoked from Typescript), received ${args_0.length}`);
|
|
1813
1850
|
}
|
|
1814
|
-
const
|
|
1815
|
-
const
|
|
1816
|
-
const
|
|
1817
|
-
|
|
1818
|
-
|
|
1819
|
-
__compactRuntime.typeError('calculateSignetAttestationDigest32',
|
|
1851
|
+
const serializedOutput_0 = args_0[0];
|
|
1852
|
+
const attestedOutputLength_0 = args_0[1];
|
|
1853
|
+
const attestedOutputHash_0 = args_0[2];
|
|
1854
|
+
if (!(serializedOutput_0.buffer instanceof ArrayBuffer && serializedOutput_0.BYTES_PER_ELEMENT === 1 && serializedOutput_0.length === 1)) {
|
|
1855
|
+
__compactRuntime.typeError('verifyAttestedOutput1',
|
|
1820
1856
|
'argument 1',
|
|
1821
|
-
'circuits.compact line
|
|
1822
|
-
'Bytes<
|
|
1823
|
-
|
|
1857
|
+
'circuits.compact line 69 char 1',
|
|
1858
|
+
'Bytes<1>',
|
|
1859
|
+
serializedOutput_0)
|
|
1824
1860
|
}
|
|
1825
|
-
if (!(typeof(
|
|
1826
|
-
__compactRuntime.typeError('
|
|
1861
|
+
if (!(typeof(attestedOutputLength_0) === 'bigint' && attestedOutputLength_0 >= 0n && attestedOutputLength_0 <= 18446744073709551615n)) {
|
|
1862
|
+
__compactRuntime.typeError('verifyAttestedOutput1',
|
|
1827
1863
|
'argument 2',
|
|
1828
|
-
'circuits.compact line
|
|
1864
|
+
'circuits.compact line 69 char 1',
|
|
1829
1865
|
'Uint<0..18446744073709551616>',
|
|
1830
|
-
|
|
1866
|
+
attestedOutputLength_0)
|
|
1831
1867
|
}
|
|
1832
|
-
if (!(
|
|
1833
|
-
__compactRuntime.typeError('
|
|
1868
|
+
if (!(attestedOutputHash_0.buffer instanceof ArrayBuffer && attestedOutputHash_0.BYTES_PER_ELEMENT === 1 && attestedOutputHash_0.length === 32)) {
|
|
1869
|
+
__compactRuntime.typeError('verifyAttestedOutput1',
|
|
1834
1870
|
'argument 3',
|
|
1835
|
-
'circuits.compact line
|
|
1836
|
-
'Enum<OutputKind, executed, failed, unviable>',
|
|
1837
|
-
outputKind_0)
|
|
1838
|
-
}
|
|
1839
|
-
if (!(serializedOutput_0.buffer instanceof ArrayBuffer && serializedOutput_0.BYTES_PER_ELEMENT === 1 && serializedOutput_0.length === 32)) {
|
|
1840
|
-
__compactRuntime.typeError('calculateSignetAttestationDigest32',
|
|
1841
|
-
'argument 4',
|
|
1842
|
-
'circuits.compact line 59 char 1',
|
|
1871
|
+
'circuits.compact line 69 char 1',
|
|
1843
1872
|
'Bytes<32>',
|
|
1844
|
-
|
|
1873
|
+
attestedOutputHash_0)
|
|
1845
1874
|
}
|
|
1846
|
-
return _dummyContract.
|
|
1847
|
-
|
|
1848
|
-
|
|
1849
|
-
serializedOutput_0);
|
|
1875
|
+
return _dummyContract._verifyAttestedOutput1_0(serializedOutput_0,
|
|
1876
|
+
attestedOutputLength_0,
|
|
1877
|
+
attestedOutputHash_0);
|
|
1850
1878
|
},
|
|
1851
|
-
|
|
1852
|
-
if (args_0.length !==
|
|
1853
|
-
throw new __compactRuntime.CompactError(`
|
|
1879
|
+
verifyAttestedOutput2: (...args_0) => {
|
|
1880
|
+
if (args_0.length !== 3) {
|
|
1881
|
+
throw new __compactRuntime.CompactError(`verifyAttestedOutput2: expected 3 arguments (as invoked from Typescript), received ${args_0.length}`);
|
|
1854
1882
|
}
|
|
1855
|
-
const
|
|
1856
|
-
const
|
|
1857
|
-
const
|
|
1858
|
-
|
|
1859
|
-
|
|
1860
|
-
__compactRuntime.typeError('calculateSignetAttestationDigest100',
|
|
1883
|
+
const serializedOutput_0 = args_0[0];
|
|
1884
|
+
const attestedOutputLength_0 = args_0[1];
|
|
1885
|
+
const attestedOutputHash_0 = args_0[2];
|
|
1886
|
+
if (!(serializedOutput_0.buffer instanceof ArrayBuffer && serializedOutput_0.BYTES_PER_ELEMENT === 1 && serializedOutput_0.length === 2)) {
|
|
1887
|
+
__compactRuntime.typeError('verifyAttestedOutput2',
|
|
1861
1888
|
'argument 1',
|
|
1862
|
-
'circuits.compact line
|
|
1863
|
-
'Bytes<
|
|
1864
|
-
|
|
1889
|
+
'circuits.compact line 77 char 1',
|
|
1890
|
+
'Bytes<2>',
|
|
1891
|
+
serializedOutput_0)
|
|
1865
1892
|
}
|
|
1866
|
-
if (!(typeof(
|
|
1867
|
-
__compactRuntime.typeError('
|
|
1893
|
+
if (!(typeof(attestedOutputLength_0) === 'bigint' && attestedOutputLength_0 >= 0n && attestedOutputLength_0 <= 18446744073709551615n)) {
|
|
1894
|
+
__compactRuntime.typeError('verifyAttestedOutput2',
|
|
1868
1895
|
'argument 2',
|
|
1869
|
-
'circuits.compact line
|
|
1896
|
+
'circuits.compact line 77 char 1',
|
|
1870
1897
|
'Uint<0..18446744073709551616>',
|
|
1871
|
-
|
|
1898
|
+
attestedOutputLength_0)
|
|
1872
1899
|
}
|
|
1873
|
-
if (!(
|
|
1874
|
-
__compactRuntime.typeError('
|
|
1900
|
+
if (!(attestedOutputHash_0.buffer instanceof ArrayBuffer && attestedOutputHash_0.BYTES_PER_ELEMENT === 1 && attestedOutputHash_0.length === 32)) {
|
|
1901
|
+
__compactRuntime.typeError('verifyAttestedOutput2',
|
|
1875
1902
|
'argument 3',
|
|
1876
|
-
'circuits.compact line
|
|
1877
|
-
'
|
|
1878
|
-
|
|
1879
|
-
}
|
|
1880
|
-
if (!(serializedOutput_0.buffer instanceof ArrayBuffer && serializedOutput_0.BYTES_PER_ELEMENT === 1 && serializedOutput_0.length === 100)) {
|
|
1881
|
-
__compactRuntime.typeError('calculateSignetAttestationDigest100',
|
|
1882
|
-
'argument 4',
|
|
1883
|
-
'circuits.compact line 68 char 1',
|
|
1884
|
-
'Bytes<100>',
|
|
1885
|
-
serializedOutput_0)
|
|
1903
|
+
'circuits.compact line 77 char 1',
|
|
1904
|
+
'Bytes<32>',
|
|
1905
|
+
attestedOutputHash_0)
|
|
1886
1906
|
}
|
|
1887
|
-
return _dummyContract.
|
|
1888
|
-
|
|
1889
|
-
|
|
1890
|
-
serializedOutput_0);
|
|
1907
|
+
return _dummyContract._verifyAttestedOutput2_0(serializedOutput_0,
|
|
1908
|
+
attestedOutputLength_0,
|
|
1909
|
+
attestedOutputHash_0);
|
|
1891
1910
|
},
|
|
1892
1911
|
calculateEvmType2TxParamsDigestV1_1_0_0: (...args_0) => {
|
|
1893
1912
|
if (args_0.length !== 1) {
|
|
@@ -1897,7 +1916,7 @@ export const pureCircuits = {
|
|
|
1897
1916
|
if (!(typeof(txParams_0) === 'object' && typeof(txParams_0.chainId) === 'bigint' && txParams_0.chainId >= 0n && txParams_0.chainId <= 18446744073709551615n && typeof(txParams_0.nonce) === 'bigint' && txParams_0.nonce >= 0n && txParams_0.nonce <= 18446744073709551615n && typeof(txParams_0.maxPriorityFeePerGas) === 'bigint' && txParams_0.maxPriorityFeePerGas >= 0n && txParams_0.maxPriorityFeePerGas <= 340282366920938463463374607431768211455n && typeof(txParams_0.maxFeePerGas) === 'bigint' && txParams_0.maxFeePerGas >= 0n && txParams_0.maxFeePerGas <= 340282366920938463463374607431768211455n && typeof(txParams_0.gasLimit) === 'bigint' && txParams_0.gasLimit >= 0n && txParams_0.gasLimit <= 18446744073709551615n && txParams_0.to.buffer instanceof ArrayBuffer && txParams_0.to.BYTES_PER_ELEMENT === 1 && txParams_0.to.length === 20 && typeof(txParams_0.value) === 'bigint' && txParams_0.value >= 0n && txParams_0.value <= 340282366920938463463374607431768211455n && typeof(txParams_0.calldata) === 'object' && typeof(txParams_0.calldata.is_some) === 'boolean' && typeof(txParams_0.calldata.value) === 'object' && txParams_0.calldata.value.selector.buffer instanceof ArrayBuffer && txParams_0.calldata.value.selector.BYTES_PER_ELEMENT === 1 && txParams_0.calldata.value.selector.length === 4 && typeof(txParams_0.calldata.value.noWords) === 'bigint' && txParams_0.calldata.value.noWords >= 0n && txParams_0.calldata.value.noWords <= 65535n && Array.isArray(txParams_0.calldata.value.words) && txParams_0.calldata.value.words.length === 1 && txParams_0.calldata.value.words.every((t) => t.buffer instanceof ArrayBuffer && t.BYTES_PER_ELEMENT === 1 && t.length === 32) && typeof(txParams_0.accessListEntryCount) === 'bigint' && txParams_0.accessListEntryCount >= 0n && txParams_0.accessListEntryCount <= 255n && Array.isArray(txParams_0.accessList) && txParams_0.accessList.length === 0 && txParams_0.accessList.every((t) => typeof(t) === 'object' && t.address.buffer instanceof ArrayBuffer && t.address.BYTES_PER_ELEMENT === 1 && t.address.length === 20 && typeof(t.storageKeyCount) === 'bigint' && t.storageKeyCount >= 0n && t.storageKeyCount <= 255n && Array.isArray(t.storageKeys) && t.storageKeys.length === 0 && t.storageKeys.every((t) => t.buffer instanceof ArrayBuffer && t.BYTES_PER_ELEMENT === 1 && t.length === 32)))) {
|
|
1898
1917
|
__compactRuntime.typeError('calculateEvmType2TxParamsDigestV1_1_0_0',
|
|
1899
1918
|
'argument 1',
|
|
1900
|
-
'circuits.compact line
|
|
1919
|
+
'circuits.compact line 90 char 1',
|
|
1901
1920
|
'struct EvmType2TxParams<chainId: Uint<0..18446744073709551616>, nonce: Uint<0..18446744073709551616>, maxPriorityFeePerGas: Uint<0..340282366920938463463374607431768211456>, maxFeePerGas: Uint<0..340282366920938463463374607431768211456>, gasLimit: Uint<0..18446744073709551616>, to: Bytes<20>, value: Uint<0..340282366920938463463374607431768211456>, calldata: struct Maybe<is_some: Boolean, value: struct EvmCalldata<selector: Bytes<4>, noWords: Uint<0..65536>, words: Vector<1, Bytes<32>>>>, accessListEntryCount: Uint<0..256>, accessList: Vector<0, struct EvmAccessListEntry<address: Bytes<20>, storageKeyCount: Uint<0..256>, storageKeys: Vector<0, Bytes<32>>>>>',
|
|
1902
1921
|
txParams_0)
|
|
1903
1922
|
}
|
|
@@ -1911,7 +1930,7 @@ export const pureCircuits = {
|
|
|
1911
1930
|
if (!(typeof(txParams_0) === 'object' && typeof(txParams_0.chainId) === 'bigint' && txParams_0.chainId >= 0n && txParams_0.chainId <= 18446744073709551615n && typeof(txParams_0.nonce) === 'bigint' && txParams_0.nonce >= 0n && txParams_0.nonce <= 18446744073709551615n && typeof(txParams_0.maxPriorityFeePerGas) === 'bigint' && txParams_0.maxPriorityFeePerGas >= 0n && txParams_0.maxPriorityFeePerGas <= 340282366920938463463374607431768211455n && typeof(txParams_0.maxFeePerGas) === 'bigint' && txParams_0.maxFeePerGas >= 0n && txParams_0.maxFeePerGas <= 340282366920938463463374607431768211455n && typeof(txParams_0.gasLimit) === 'bigint' && txParams_0.gasLimit >= 0n && txParams_0.gasLimit <= 18446744073709551615n && txParams_0.to.buffer instanceof ArrayBuffer && txParams_0.to.BYTES_PER_ELEMENT === 1 && txParams_0.to.length === 20 && typeof(txParams_0.value) === 'bigint' && txParams_0.value >= 0n && txParams_0.value <= 340282366920938463463374607431768211455n && typeof(txParams_0.calldata) === 'object' && typeof(txParams_0.calldata.is_some) === 'boolean' && typeof(txParams_0.calldata.value) === 'object' && txParams_0.calldata.value.selector.buffer instanceof ArrayBuffer && txParams_0.calldata.value.selector.BYTES_PER_ELEMENT === 1 && txParams_0.calldata.value.selector.length === 4 && typeof(txParams_0.calldata.value.noWords) === 'bigint' && txParams_0.calldata.value.noWords >= 0n && txParams_0.calldata.value.noWords <= 65535n && Array.isArray(txParams_0.calldata.value.words) && txParams_0.calldata.value.words.length === 2 && txParams_0.calldata.value.words.every((t) => t.buffer instanceof ArrayBuffer && t.BYTES_PER_ELEMENT === 1 && t.length === 32) && typeof(txParams_0.accessListEntryCount) === 'bigint' && txParams_0.accessListEntryCount >= 0n && txParams_0.accessListEntryCount <= 255n && Array.isArray(txParams_0.accessList) && txParams_0.accessList.length === 1 && txParams_0.accessList.every((t) => typeof(t) === 'object' && t.address.buffer instanceof ArrayBuffer && t.address.BYTES_PER_ELEMENT === 1 && t.address.length === 20 && typeof(t.storageKeyCount) === 'bigint' && t.storageKeyCount >= 0n && t.storageKeyCount <= 255n && Array.isArray(t.storageKeys) && t.storageKeys.length === 2 && t.storageKeys.every((t) => t.buffer instanceof ArrayBuffer && t.BYTES_PER_ELEMENT === 1 && t.length === 32)))) {
|
|
1912
1931
|
__compactRuntime.typeError('calculateEvmType2TxParamsDigestV1_2_1_2',
|
|
1913
1932
|
'argument 1',
|
|
1914
|
-
'circuits.compact line
|
|
1933
|
+
'circuits.compact line 96 char 1',
|
|
1915
1934
|
'struct EvmType2TxParams<chainId: Uint<0..18446744073709551616>, nonce: Uint<0..18446744073709551616>, maxPriorityFeePerGas: Uint<0..340282366920938463463374607431768211456>, maxFeePerGas: Uint<0..340282366920938463463374607431768211456>, gasLimit: Uint<0..18446744073709551616>, to: Bytes<20>, value: Uint<0..340282366920938463463374607431768211456>, calldata: struct Maybe<is_some: Boolean, value: struct EvmCalldata<selector: Bytes<4>, noWords: Uint<0..65536>, words: Vector<2, Bytes<32>>>>, accessListEntryCount: Uint<0..256>, accessList: Vector<1, struct EvmAccessListEntry<address: Bytes<20>, storageKeyCount: Uint<0..256>, storageKeys: Vector<2, Bytes<32>>>>>',
|
|
1916
1935
|
txParams_0)
|
|
1917
1936
|
}
|
|
@@ -1922,11 +1941,11 @@ export const pureCircuits = {
|
|
|
1922
1941
|
throw new __compactRuntime.CompactError(`calculateEvmType2RequestIdV1_1_0_0_34: expected 1 argument (as invoked from Typescript), received ${args_0.length}`);
|
|
1923
1942
|
}
|
|
1924
1943
|
const request_0 = args_0[0];
|
|
1925
|
-
if (!(typeof(request_0) === 'object' && typeof(request_0.keyVersion) === 'bigint' && request_0.keyVersion >= 0n && request_0.keyVersion <= 255n && typeof(request_0.sender) === 'object' && request_0.sender.bytes.buffer instanceof ArrayBuffer && request_0.sender.bytes.BYTES_PER_ELEMENT === 1 && request_0.sender.bytes.length === 32 && request_0.path.buffer instanceof ArrayBuffer && request_0.path.BYTES_PER_ELEMENT === 1 && request_0.path.length === 32 && typeof(request_0.algo) === 'number' && request_0.algo >= 0 && request_0.algo <= 1 && typeof(request_0.txParamType) === 'number' && request_0.txParamType >= 0 && request_0.txParamType <= 1 && typeof(request_0.txParams) === 'object' && typeof(request_0.txParams.chainId) === 'bigint' && request_0.txParams.chainId >= 0n && request_0.txParams.chainId <= 18446744073709551615n && typeof(request_0.txParams.nonce) === 'bigint' && request_0.txParams.nonce >= 0n && request_0.txParams.nonce <= 18446744073709551615n && typeof(request_0.txParams.maxPriorityFeePerGas) === 'bigint' && request_0.txParams.maxPriorityFeePerGas >= 0n && request_0.txParams.maxPriorityFeePerGas <= 340282366920938463463374607431768211455n && typeof(request_0.txParams.maxFeePerGas) === 'bigint' && request_0.txParams.maxFeePerGas >= 0n && request_0.txParams.maxFeePerGas <= 340282366920938463463374607431768211455n && typeof(request_0.txParams.gasLimit) === 'bigint' && request_0.txParams.gasLimit >= 0n && request_0.txParams.gasLimit <= 18446744073709551615n && request_0.txParams.to.buffer instanceof ArrayBuffer && request_0.txParams.to.BYTES_PER_ELEMENT === 1 && request_0.txParams.to.length === 20 && typeof(request_0.txParams.value) === 'bigint' && request_0.txParams.value >= 0n && request_0.txParams.value <= 340282366920938463463374607431768211455n && typeof(request_0.txParams.calldata) === 'object' && typeof(request_0.txParams.calldata.is_some) === 'boolean' && typeof(request_0.txParams.calldata.value) === 'object' && request_0.txParams.calldata.value.selector.buffer instanceof ArrayBuffer && request_0.txParams.calldata.value.selector.BYTES_PER_ELEMENT === 1 && request_0.txParams.calldata.value.selector.length === 4 && typeof(request_0.txParams.calldata.value.noWords) === 'bigint' && request_0.txParams.calldata.value.noWords >= 0n && request_0.txParams.calldata.value.noWords <= 65535n && Array.isArray(request_0.txParams.calldata.value.words) && request_0.txParams.calldata.value.words.length === 1 && request_0.txParams.calldata.value.words.every((t) => t.buffer instanceof ArrayBuffer && t.BYTES_PER_ELEMENT === 1 && t.length === 32) && typeof(request_0.txParams.accessListEntryCount) === 'bigint' && request_0.txParams.accessListEntryCount >= 0n && request_0.txParams.accessListEntryCount <= 255n && Array.isArray(request_0.txParams.accessList) && request_0.txParams.accessList.length === 0 && request_0.txParams.accessList.every((t) => typeof(t) === 'object' && t.address.buffer instanceof ArrayBuffer && t.address.BYTES_PER_ELEMENT === 1 && t.address.length === 20 && typeof(t.storageKeyCount) === 'bigint' && t.storageKeyCount >= 0n && t.storageKeyCount <= 255n && Array.isArray(t.storageKeys) && t.storageKeys.length === 0 && t.storageKeys.every((t) => t.buffer instanceof ArrayBuffer && t.BYTES_PER_ELEMENT === 1 && t.length === 32)) && request_0.executionDest.buffer instanceof ArrayBuffer && request_0.executionDest.BYTES_PER_ELEMENT === 1 && request_0.executionDest.length ===
|
|
1944
|
+
if (!(typeof(request_0) === 'object' && typeof(request_0.keyVersion) === 'bigint' && request_0.keyVersion >= 0n && request_0.keyVersion <= 255n && typeof(request_0.sender) === 'object' && request_0.sender.bytes.buffer instanceof ArrayBuffer && request_0.sender.bytes.BYTES_PER_ELEMENT === 1 && request_0.sender.bytes.length === 32 && request_0.path.buffer instanceof ArrayBuffer && request_0.path.BYTES_PER_ELEMENT === 1 && request_0.path.length === 32 && typeof(request_0.algo) === 'number' && request_0.algo >= 0 && request_0.algo <= 1 && typeof(request_0.txParamType) === 'number' && request_0.txParamType >= 0 && request_0.txParamType <= 1 && typeof(request_0.txParams) === 'object' && typeof(request_0.txParams.chainId) === 'bigint' && request_0.txParams.chainId >= 0n && request_0.txParams.chainId <= 18446744073709551615n && typeof(request_0.txParams.nonce) === 'bigint' && request_0.txParams.nonce >= 0n && request_0.txParams.nonce <= 18446744073709551615n && typeof(request_0.txParams.maxPriorityFeePerGas) === 'bigint' && request_0.txParams.maxPriorityFeePerGas >= 0n && request_0.txParams.maxPriorityFeePerGas <= 340282366920938463463374607431768211455n && typeof(request_0.txParams.maxFeePerGas) === 'bigint' && request_0.txParams.maxFeePerGas >= 0n && request_0.txParams.maxFeePerGas <= 340282366920938463463374607431768211455n && typeof(request_0.txParams.gasLimit) === 'bigint' && request_0.txParams.gasLimit >= 0n && request_0.txParams.gasLimit <= 18446744073709551615n && request_0.txParams.to.buffer instanceof ArrayBuffer && request_0.txParams.to.BYTES_PER_ELEMENT === 1 && request_0.txParams.to.length === 20 && typeof(request_0.txParams.value) === 'bigint' && request_0.txParams.value >= 0n && request_0.txParams.value <= 340282366920938463463374607431768211455n && typeof(request_0.txParams.calldata) === 'object' && typeof(request_0.txParams.calldata.is_some) === 'boolean' && typeof(request_0.txParams.calldata.value) === 'object' && request_0.txParams.calldata.value.selector.buffer instanceof ArrayBuffer && request_0.txParams.calldata.value.selector.BYTES_PER_ELEMENT === 1 && request_0.txParams.calldata.value.selector.length === 4 && typeof(request_0.txParams.calldata.value.noWords) === 'bigint' && request_0.txParams.calldata.value.noWords >= 0n && request_0.txParams.calldata.value.noWords <= 65535n && Array.isArray(request_0.txParams.calldata.value.words) && request_0.txParams.calldata.value.words.length === 1 && request_0.txParams.calldata.value.words.every((t) => t.buffer instanceof ArrayBuffer && t.BYTES_PER_ELEMENT === 1 && t.length === 32) && typeof(request_0.txParams.accessListEntryCount) === 'bigint' && request_0.txParams.accessListEntryCount >= 0n && request_0.txParams.accessListEntryCount <= 255n && Array.isArray(request_0.txParams.accessList) && request_0.txParams.accessList.length === 0 && request_0.txParams.accessList.every((t) => typeof(t) === 'object' && t.address.buffer instanceof ArrayBuffer && t.address.BYTES_PER_ELEMENT === 1 && t.address.length === 20 && typeof(t.storageKeyCount) === 'bigint' && t.storageKeyCount >= 0n && t.storageKeyCount <= 255n && Array.isArray(t.storageKeys) && t.storageKeys.length === 0 && t.storageKeys.every((t) => t.buffer instanceof ArrayBuffer && t.BYTES_PER_ELEMENT === 1 && t.length === 32)) && request_0.executionDest.buffer instanceof ArrayBuffer && request_0.executionDest.BYTES_PER_ELEMENT === 1 && request_0.executionDest.length === 64 && typeof(request_0.signatureDest) === 'number' && request_0.signatureDest >= 0 && request_0.signatureDest <= 1 && request_0.params.buffer instanceof ArrayBuffer && request_0.params.BYTES_PER_ELEMENT === 1 && request_0.params.length === 64 && request_0.outputDeserializationSchema.buffer instanceof ArrayBuffer && request_0.outputDeserializationSchema.BYTES_PER_ELEMENT === 1 && request_0.outputDeserializationSchema.length === 34 && request_0.respondSerializationSchema.buffer instanceof ArrayBuffer && request_0.respondSerializationSchema.BYTES_PER_ELEMENT === 1 && request_0.respondSerializationSchema.length === 0)) {
|
|
1926
1945
|
__compactRuntime.typeError('calculateEvmType2RequestIdV1_1_0_0_34',
|
|
1927
1946
|
'argument 1',
|
|
1928
|
-
'circuits.compact line
|
|
1929
|
-
'struct SignBidirectionalEventV1<keyVersion: Uint<0..256>, sender: struct ContractAddress<bytes: Bytes<32>>, path: Bytes<32>, algo: Enum<MPCSignatureAlgorithm, ecdsa, reserved>, txParamType: Enum<TxParamType, evmType2, reserved>, txParams: struct EvmType2TxParams<chainId: Uint<0..18446744073709551616>, nonce: Uint<0..18446744073709551616>, maxPriorityFeePerGas: Uint<0..340282366920938463463374607431768211456>, maxFeePerGas: Uint<0..340282366920938463463374607431768211456>, gasLimit: Uint<0..18446744073709551616>, to: Bytes<20>, value: Uint<0..340282366920938463463374607431768211456>, calldata: struct Maybe<is_some: Boolean, value: struct EvmCalldata<selector: Bytes<4>, noWords: Uint<0..65536>, words: Vector<1, Bytes<32>>>>, accessListEntryCount: Uint<0..256>, accessList: Vector<0, struct EvmAccessListEntry<address: Bytes<20>, storageKeyCount: Uint<0..256>, storageKeys: Vector<0, Bytes<32>>>>>, executionDest: Bytes<
|
|
1947
|
+
'circuits.compact line 105 char 1',
|
|
1948
|
+
'struct SignBidirectionalEventV1<keyVersion: Uint<0..256>, sender: struct ContractAddress<bytes: Bytes<32>>, path: Bytes<32>, algo: Enum<MPCSignatureAlgorithm, ecdsa, reserved>, txParamType: Enum<TxParamType, evmType2, reserved>, txParams: struct EvmType2TxParams<chainId: Uint<0..18446744073709551616>, nonce: Uint<0..18446744073709551616>, maxPriorityFeePerGas: Uint<0..340282366920938463463374607431768211456>, maxFeePerGas: Uint<0..340282366920938463463374607431768211456>, gasLimit: Uint<0..18446744073709551616>, to: Bytes<20>, value: Uint<0..340282366920938463463374607431768211456>, calldata: struct Maybe<is_some: Boolean, value: struct EvmCalldata<selector: Bytes<4>, noWords: Uint<0..65536>, words: Vector<1, Bytes<32>>>>, accessListEntryCount: Uint<0..256>, accessList: Vector<0, struct EvmAccessListEntry<address: Bytes<20>, storageKeyCount: Uint<0..256>, storageKeys: Vector<0, Bytes<32>>>>>, executionDest: Bytes<64>, signatureDest: Enum<MPCDestination, unused, reserved>, params: Bytes<64>, outputDeserializationSchema: Bytes<34>, respondSerializationSchema: Bytes<0>>',
|
|
1930
1949
|
request_0)
|
|
1931
1950
|
}
|
|
1932
1951
|
return _dummyContract._calculateEvmType2RequestIdV1_1_0_0_34_0(request_0);
|
|
@@ -1936,11 +1955,11 @@ export const pureCircuits = {
|
|
|
1936
1955
|
throw new __compactRuntime.CompactError(`calculateEvmType2RequestIdV1_2_1_2_34: expected 1 argument (as invoked from Typescript), received ${args_0.length}`);
|
|
1937
1956
|
}
|
|
1938
1957
|
const request_0 = args_0[0];
|
|
1939
|
-
if (!(typeof(request_0) === 'object' && typeof(request_0.keyVersion) === 'bigint' && request_0.keyVersion >= 0n && request_0.keyVersion <= 255n && typeof(request_0.sender) === 'object' && request_0.sender.bytes.buffer instanceof ArrayBuffer && request_0.sender.bytes.BYTES_PER_ELEMENT === 1 && request_0.sender.bytes.length === 32 && request_0.path.buffer instanceof ArrayBuffer && request_0.path.BYTES_PER_ELEMENT === 1 && request_0.path.length === 32 && typeof(request_0.algo) === 'number' && request_0.algo >= 0 && request_0.algo <= 1 && typeof(request_0.txParamType) === 'number' && request_0.txParamType >= 0 && request_0.txParamType <= 1 && typeof(request_0.txParams) === 'object' && typeof(request_0.txParams.chainId) === 'bigint' && request_0.txParams.chainId >= 0n && request_0.txParams.chainId <= 18446744073709551615n && typeof(request_0.txParams.nonce) === 'bigint' && request_0.txParams.nonce >= 0n && request_0.txParams.nonce <= 18446744073709551615n && typeof(request_0.txParams.maxPriorityFeePerGas) === 'bigint' && request_0.txParams.maxPriorityFeePerGas >= 0n && request_0.txParams.maxPriorityFeePerGas <= 340282366920938463463374607431768211455n && typeof(request_0.txParams.maxFeePerGas) === 'bigint' && request_0.txParams.maxFeePerGas >= 0n && request_0.txParams.maxFeePerGas <= 340282366920938463463374607431768211455n && typeof(request_0.txParams.gasLimit) === 'bigint' && request_0.txParams.gasLimit >= 0n && request_0.txParams.gasLimit <= 18446744073709551615n && request_0.txParams.to.buffer instanceof ArrayBuffer && request_0.txParams.to.BYTES_PER_ELEMENT === 1 && request_0.txParams.to.length === 20 && typeof(request_0.txParams.value) === 'bigint' && request_0.txParams.value >= 0n && request_0.txParams.value <= 340282366920938463463374607431768211455n && typeof(request_0.txParams.calldata) === 'object' && typeof(request_0.txParams.calldata.is_some) === 'boolean' && typeof(request_0.txParams.calldata.value) === 'object' && request_0.txParams.calldata.value.selector.buffer instanceof ArrayBuffer && request_0.txParams.calldata.value.selector.BYTES_PER_ELEMENT === 1 && request_0.txParams.calldata.value.selector.length === 4 && typeof(request_0.txParams.calldata.value.noWords) === 'bigint' && request_0.txParams.calldata.value.noWords >= 0n && request_0.txParams.calldata.value.noWords <= 65535n && Array.isArray(request_0.txParams.calldata.value.words) && request_0.txParams.calldata.value.words.length === 2 && request_0.txParams.calldata.value.words.every((t) => t.buffer instanceof ArrayBuffer && t.BYTES_PER_ELEMENT === 1 && t.length === 32) && typeof(request_0.txParams.accessListEntryCount) === 'bigint' && request_0.txParams.accessListEntryCount >= 0n && request_0.txParams.accessListEntryCount <= 255n && Array.isArray(request_0.txParams.accessList) && request_0.txParams.accessList.length === 1 && request_0.txParams.accessList.every((t) => typeof(t) === 'object' && t.address.buffer instanceof ArrayBuffer && t.address.BYTES_PER_ELEMENT === 1 && t.address.length === 20 && typeof(t.storageKeyCount) === 'bigint' && t.storageKeyCount >= 0n && t.storageKeyCount <= 255n && Array.isArray(t.storageKeys) && t.storageKeys.length === 2 && t.storageKeys.every((t) => t.buffer instanceof ArrayBuffer && t.BYTES_PER_ELEMENT === 1 && t.length === 32)) && request_0.executionDest.buffer instanceof ArrayBuffer && request_0.executionDest.BYTES_PER_ELEMENT === 1 && request_0.executionDest.length ===
|
|
1958
|
+
if (!(typeof(request_0) === 'object' && typeof(request_0.keyVersion) === 'bigint' && request_0.keyVersion >= 0n && request_0.keyVersion <= 255n && typeof(request_0.sender) === 'object' && request_0.sender.bytes.buffer instanceof ArrayBuffer && request_0.sender.bytes.BYTES_PER_ELEMENT === 1 && request_0.sender.bytes.length === 32 && request_0.path.buffer instanceof ArrayBuffer && request_0.path.BYTES_PER_ELEMENT === 1 && request_0.path.length === 32 && typeof(request_0.algo) === 'number' && request_0.algo >= 0 && request_0.algo <= 1 && typeof(request_0.txParamType) === 'number' && request_0.txParamType >= 0 && request_0.txParamType <= 1 && typeof(request_0.txParams) === 'object' && typeof(request_0.txParams.chainId) === 'bigint' && request_0.txParams.chainId >= 0n && request_0.txParams.chainId <= 18446744073709551615n && typeof(request_0.txParams.nonce) === 'bigint' && request_0.txParams.nonce >= 0n && request_0.txParams.nonce <= 18446744073709551615n && typeof(request_0.txParams.maxPriorityFeePerGas) === 'bigint' && request_0.txParams.maxPriorityFeePerGas >= 0n && request_0.txParams.maxPriorityFeePerGas <= 340282366920938463463374607431768211455n && typeof(request_0.txParams.maxFeePerGas) === 'bigint' && request_0.txParams.maxFeePerGas >= 0n && request_0.txParams.maxFeePerGas <= 340282366920938463463374607431768211455n && typeof(request_0.txParams.gasLimit) === 'bigint' && request_0.txParams.gasLimit >= 0n && request_0.txParams.gasLimit <= 18446744073709551615n && request_0.txParams.to.buffer instanceof ArrayBuffer && request_0.txParams.to.BYTES_PER_ELEMENT === 1 && request_0.txParams.to.length === 20 && typeof(request_0.txParams.value) === 'bigint' && request_0.txParams.value >= 0n && request_0.txParams.value <= 340282366920938463463374607431768211455n && typeof(request_0.txParams.calldata) === 'object' && typeof(request_0.txParams.calldata.is_some) === 'boolean' && typeof(request_0.txParams.calldata.value) === 'object' && request_0.txParams.calldata.value.selector.buffer instanceof ArrayBuffer && request_0.txParams.calldata.value.selector.BYTES_PER_ELEMENT === 1 && request_0.txParams.calldata.value.selector.length === 4 && typeof(request_0.txParams.calldata.value.noWords) === 'bigint' && request_0.txParams.calldata.value.noWords >= 0n && request_0.txParams.calldata.value.noWords <= 65535n && Array.isArray(request_0.txParams.calldata.value.words) && request_0.txParams.calldata.value.words.length === 2 && request_0.txParams.calldata.value.words.every((t) => t.buffer instanceof ArrayBuffer && t.BYTES_PER_ELEMENT === 1 && t.length === 32) && typeof(request_0.txParams.accessListEntryCount) === 'bigint' && request_0.txParams.accessListEntryCount >= 0n && request_0.txParams.accessListEntryCount <= 255n && Array.isArray(request_0.txParams.accessList) && request_0.txParams.accessList.length === 1 && request_0.txParams.accessList.every((t) => typeof(t) === 'object' && t.address.buffer instanceof ArrayBuffer && t.address.BYTES_PER_ELEMENT === 1 && t.address.length === 20 && typeof(t.storageKeyCount) === 'bigint' && t.storageKeyCount >= 0n && t.storageKeyCount <= 255n && Array.isArray(t.storageKeys) && t.storageKeys.length === 2 && t.storageKeys.every((t) => t.buffer instanceof ArrayBuffer && t.BYTES_PER_ELEMENT === 1 && t.length === 32)) && request_0.executionDest.buffer instanceof ArrayBuffer && request_0.executionDest.BYTES_PER_ELEMENT === 1 && request_0.executionDest.length === 64 && typeof(request_0.signatureDest) === 'number' && request_0.signatureDest >= 0 && request_0.signatureDest <= 1 && request_0.params.buffer instanceof ArrayBuffer && request_0.params.BYTES_PER_ELEMENT === 1 && request_0.params.length === 64 && request_0.outputDeserializationSchema.buffer instanceof ArrayBuffer && request_0.outputDeserializationSchema.BYTES_PER_ELEMENT === 1 && request_0.outputDeserializationSchema.length === 34 && request_0.respondSerializationSchema.buffer instanceof ArrayBuffer && request_0.respondSerializationSchema.BYTES_PER_ELEMENT === 1 && request_0.respondSerializationSchema.length === 0)) {
|
|
1940
1959
|
__compactRuntime.typeError('calculateEvmType2RequestIdV1_2_1_2_34',
|
|
1941
1960
|
'argument 1',
|
|
1942
|
-
'circuits.compact line
|
|
1943
|
-
'struct SignBidirectionalEventV1<keyVersion: Uint<0..256>, sender: struct ContractAddress<bytes: Bytes<32>>, path: Bytes<32>, algo: Enum<MPCSignatureAlgorithm, ecdsa, reserved>, txParamType: Enum<TxParamType, evmType2, reserved>, txParams: struct EvmType2TxParams<chainId: Uint<0..18446744073709551616>, nonce: Uint<0..18446744073709551616>, maxPriorityFeePerGas: Uint<0..340282366920938463463374607431768211456>, maxFeePerGas: Uint<0..340282366920938463463374607431768211456>, gasLimit: Uint<0..18446744073709551616>, to: Bytes<20>, value: Uint<0..340282366920938463463374607431768211456>, calldata: struct Maybe<is_some: Boolean, value: struct EvmCalldata<selector: Bytes<4>, noWords: Uint<0..65536>, words: Vector<2, Bytes<32>>>>, accessListEntryCount: Uint<0..256>, accessList: Vector<1, struct EvmAccessListEntry<address: Bytes<20>, storageKeyCount: Uint<0..256>, storageKeys: Vector<2, Bytes<32>>>>>, executionDest: Bytes<
|
|
1961
|
+
'circuits.compact line 111 char 1',
|
|
1962
|
+
'struct SignBidirectionalEventV1<keyVersion: Uint<0..256>, sender: struct ContractAddress<bytes: Bytes<32>>, path: Bytes<32>, algo: Enum<MPCSignatureAlgorithm, ecdsa, reserved>, txParamType: Enum<TxParamType, evmType2, reserved>, txParams: struct EvmType2TxParams<chainId: Uint<0..18446744073709551616>, nonce: Uint<0..18446744073709551616>, maxPriorityFeePerGas: Uint<0..340282366920938463463374607431768211456>, maxFeePerGas: Uint<0..340282366920938463463374607431768211456>, gasLimit: Uint<0..18446744073709551616>, to: Bytes<20>, value: Uint<0..340282366920938463463374607431768211456>, calldata: struct Maybe<is_some: Boolean, value: struct EvmCalldata<selector: Bytes<4>, noWords: Uint<0..65536>, words: Vector<2, Bytes<32>>>>, accessListEntryCount: Uint<0..256>, accessList: Vector<1, struct EvmAccessListEntry<address: Bytes<20>, storageKeyCount: Uint<0..256>, storageKeys: Vector<2, Bytes<32>>>>>, executionDest: Bytes<64>, signatureDest: Enum<MPCDestination, unused, reserved>, params: Bytes<64>, outputDeserializationSchema: Bytes<34>, respondSerializationSchema: Bytes<0>>',
|
|
1944
1963
|
request_0)
|
|
1945
1964
|
}
|
|
1946
1965
|
return _dummyContract._calculateEvmType2RequestIdV1_2_1_2_34_0(request_0);
|
|
@@ -1955,15 +1974,15 @@ export const pureCircuits = {
|
|
|
1955
1974
|
if (!(serializedOutput_0.buffer instanceof ArrayBuffer && serializedOutput_0.BYTES_PER_ELEMENT === 1 && serializedOutput_0.length === 0)) {
|
|
1956
1975
|
__compactRuntime.typeError('verifyRespondBidirectionalEvent0',
|
|
1957
1976
|
'argument 1',
|
|
1958
|
-
'circuits.compact line
|
|
1977
|
+
'circuits.compact line 117 char 1',
|
|
1959
1978
|
'Bytes<0>',
|
|
1960
1979
|
serializedOutput_0)
|
|
1961
1980
|
}
|
|
1962
|
-
if (!(typeof(respondBidirectionalEvent_0) === 'object' && respondBidirectionalEvent_0.requestId.buffer instanceof ArrayBuffer && respondBidirectionalEvent_0.requestId.BYTES_PER_ELEMENT === 1 && respondBidirectionalEvent_0.requestId.length === 32 && typeof(respondBidirectionalEvent_0.blockHeight) === 'bigint' && respondBidirectionalEvent_0.blockHeight >= 0n && respondBidirectionalEvent_0.blockHeight <= 18446744073709551615n && typeof(respondBidirectionalEvent_0.outputKind) === 'number' && respondBidirectionalEvent_0.outputKind >= 0 && respondBidirectionalEvent_0.outputKind <= 2 && typeof(respondBidirectionalEvent_0.serializedOutputLength) === 'bigint' && respondBidirectionalEvent_0.serializedOutputLength >= 0n && respondBidirectionalEvent_0.serializedOutputLength <= 18446744073709551615n && respondBidirectionalEvent_0.digest.buffer instanceof ArrayBuffer && respondBidirectionalEvent_0.digest.BYTES_PER_ELEMENT === 1 && respondBidirectionalEvent_0.digest.length === 32 && typeof(respondBidirectionalEvent_0.signature) === 'object' && typeof(respondBidirectionalEvent_0.signature.bigR) === 'object' && respondBidirectionalEvent_0.signature.bigR.x.buffer instanceof ArrayBuffer && respondBidirectionalEvent_0.signature.bigR.x.BYTES_PER_ELEMENT === 1 && respondBidirectionalEvent_0.signature.bigR.x.length === 32 && respondBidirectionalEvent_0.signature.bigR.y.buffer instanceof ArrayBuffer && respondBidirectionalEvent_0.signature.bigR.y.BYTES_PER_ELEMENT === 1 && respondBidirectionalEvent_0.signature.bigR.y.length === 32 && respondBidirectionalEvent_0.signature.s.buffer instanceof ArrayBuffer && respondBidirectionalEvent_0.signature.s.BYTES_PER_ELEMENT === 1 && respondBidirectionalEvent_0.signature.s.length === 32 && typeof(respondBidirectionalEvent_0.signature.recoveryId) === 'bigint' && respondBidirectionalEvent_0.signature.recoveryId >= 0n && respondBidirectionalEvent_0.signature.recoveryId <= 255n)) {
|
|
1981
|
+
if (!(typeof(respondBidirectionalEvent_0) === 'object' && respondBidirectionalEvent_0.requestId.buffer instanceof ArrayBuffer && respondBidirectionalEvent_0.requestId.BYTES_PER_ELEMENT === 1 && respondBidirectionalEvent_0.requestId.length === 32 && typeof(respondBidirectionalEvent_0.blockHeight) === 'bigint' && respondBidirectionalEvent_0.blockHeight >= 0n && respondBidirectionalEvent_0.blockHeight <= 18446744073709551615n && typeof(respondBidirectionalEvent_0.outputKind) === 'number' && respondBidirectionalEvent_0.outputKind >= 0 && respondBidirectionalEvent_0.outputKind <= 2 && typeof(respondBidirectionalEvent_0.serializedOutputLength) === 'bigint' && respondBidirectionalEvent_0.serializedOutputLength >= 0n && respondBidirectionalEvent_0.serializedOutputLength <= 18446744073709551615n && respondBidirectionalEvent_0.outputHash.buffer instanceof ArrayBuffer && respondBidirectionalEvent_0.outputHash.BYTES_PER_ELEMENT === 1 && respondBidirectionalEvent_0.outputHash.length === 32 && respondBidirectionalEvent_0.digest.buffer instanceof ArrayBuffer && respondBidirectionalEvent_0.digest.BYTES_PER_ELEMENT === 1 && respondBidirectionalEvent_0.digest.length === 32 && typeof(respondBidirectionalEvent_0.signature) === 'object' && typeof(respondBidirectionalEvent_0.signature.bigR) === 'object' && respondBidirectionalEvent_0.signature.bigR.x.buffer instanceof ArrayBuffer && respondBidirectionalEvent_0.signature.bigR.x.BYTES_PER_ELEMENT === 1 && respondBidirectionalEvent_0.signature.bigR.x.length === 32 && respondBidirectionalEvent_0.signature.bigR.y.buffer instanceof ArrayBuffer && respondBidirectionalEvent_0.signature.bigR.y.BYTES_PER_ELEMENT === 1 && respondBidirectionalEvent_0.signature.bigR.y.length === 32 && respondBidirectionalEvent_0.signature.s.buffer instanceof ArrayBuffer && respondBidirectionalEvent_0.signature.s.BYTES_PER_ELEMENT === 1 && respondBidirectionalEvent_0.signature.s.length === 32 && typeof(respondBidirectionalEvent_0.signature.recoveryId) === 'bigint' && respondBidirectionalEvent_0.signature.recoveryId >= 0n && respondBidirectionalEvent_0.signature.recoveryId <= 255n)) {
|
|
1963
1982
|
__compactRuntime.typeError('verifyRespondBidirectionalEvent0',
|
|
1964
1983
|
'argument 2',
|
|
1965
|
-
'circuits.compact line
|
|
1966
|
-
'struct RespondBidirectionalEventV1<requestId: Bytes<32>, blockHeight: Uint<0..18446744073709551616>, outputKind: Enum<OutputKind, executed, failed, unviable>, serializedOutputLength: Uint<0..18446744073709551616>, digest: Bytes<32>, signature: struct Signature<bigR: struct AffinePoint<x: Bytes<32>, y: Bytes<32>>, s: Bytes<32>, recoveryId: Uint<0..256>>>',
|
|
1984
|
+
'circuits.compact line 117 char 1',
|
|
1985
|
+
'struct RespondBidirectionalEventV1<requestId: Bytes<32>, blockHeight: Uint<0..18446744073709551616>, outputKind: Enum<OutputKind, executed, failed, unviable>, serializedOutputLength: Uint<0..18446744073709551616>, outputHash: Bytes<32>, digest: Bytes<32>, signature: struct Signature<bigR: struct AffinePoint<x: Bytes<32>, y: Bytes<32>>, s: Bytes<32>, recoveryId: Uint<0..256>>>',
|
|
1967
1986
|
respondBidirectionalEvent_0)
|
|
1968
1987
|
}
|
|
1969
1988
|
return _dummyContract._verifyRespondBidirectionalEvent0_0(serializedOutput_0,
|
|
@@ -1980,15 +1999,15 @@ export const pureCircuits = {
|
|
|
1980
1999
|
if (!(serializedOutput_0.buffer instanceof ArrayBuffer && serializedOutput_0.BYTES_PER_ELEMENT === 1 && serializedOutput_0.length === 32)) {
|
|
1981
2000
|
__compactRuntime.typeError('verifyRespondBidirectionalEvent32',
|
|
1982
2001
|
'argument 1',
|
|
1983
|
-
'circuits.compact line
|
|
2002
|
+
'circuits.compact line 129 char 1',
|
|
1984
2003
|
'Bytes<32>',
|
|
1985
2004
|
serializedOutput_0)
|
|
1986
2005
|
}
|
|
1987
|
-
if (!(typeof(respondBidirectionalEvent_0) === 'object' && respondBidirectionalEvent_0.requestId.buffer instanceof ArrayBuffer && respondBidirectionalEvent_0.requestId.BYTES_PER_ELEMENT === 1 && respondBidirectionalEvent_0.requestId.length === 32 && typeof(respondBidirectionalEvent_0.blockHeight) === 'bigint' && respondBidirectionalEvent_0.blockHeight >= 0n && respondBidirectionalEvent_0.blockHeight <= 18446744073709551615n && typeof(respondBidirectionalEvent_0.outputKind) === 'number' && respondBidirectionalEvent_0.outputKind >= 0 && respondBidirectionalEvent_0.outputKind <= 2 && typeof(respondBidirectionalEvent_0.serializedOutputLength) === 'bigint' && respondBidirectionalEvent_0.serializedOutputLength >= 0n && respondBidirectionalEvent_0.serializedOutputLength <= 18446744073709551615n && respondBidirectionalEvent_0.digest.buffer instanceof ArrayBuffer && respondBidirectionalEvent_0.digest.BYTES_PER_ELEMENT === 1 && respondBidirectionalEvent_0.digest.length === 32 && typeof(respondBidirectionalEvent_0.signature) === 'object' && typeof(respondBidirectionalEvent_0.signature.bigR) === 'object' && respondBidirectionalEvent_0.signature.bigR.x.buffer instanceof ArrayBuffer && respondBidirectionalEvent_0.signature.bigR.x.BYTES_PER_ELEMENT === 1 && respondBidirectionalEvent_0.signature.bigR.x.length === 32 && respondBidirectionalEvent_0.signature.bigR.y.buffer instanceof ArrayBuffer && respondBidirectionalEvent_0.signature.bigR.y.BYTES_PER_ELEMENT === 1 && respondBidirectionalEvent_0.signature.bigR.y.length === 32 && respondBidirectionalEvent_0.signature.s.buffer instanceof ArrayBuffer && respondBidirectionalEvent_0.signature.s.BYTES_PER_ELEMENT === 1 && respondBidirectionalEvent_0.signature.s.length === 32 && typeof(respondBidirectionalEvent_0.signature.recoveryId) === 'bigint' && respondBidirectionalEvent_0.signature.recoveryId >= 0n && respondBidirectionalEvent_0.signature.recoveryId <= 255n)) {
|
|
2006
|
+
if (!(typeof(respondBidirectionalEvent_0) === 'object' && respondBidirectionalEvent_0.requestId.buffer instanceof ArrayBuffer && respondBidirectionalEvent_0.requestId.BYTES_PER_ELEMENT === 1 && respondBidirectionalEvent_0.requestId.length === 32 && typeof(respondBidirectionalEvent_0.blockHeight) === 'bigint' && respondBidirectionalEvent_0.blockHeight >= 0n && respondBidirectionalEvent_0.blockHeight <= 18446744073709551615n && typeof(respondBidirectionalEvent_0.outputKind) === 'number' && respondBidirectionalEvent_0.outputKind >= 0 && respondBidirectionalEvent_0.outputKind <= 2 && typeof(respondBidirectionalEvent_0.serializedOutputLength) === 'bigint' && respondBidirectionalEvent_0.serializedOutputLength >= 0n && respondBidirectionalEvent_0.serializedOutputLength <= 18446744073709551615n && respondBidirectionalEvent_0.outputHash.buffer instanceof ArrayBuffer && respondBidirectionalEvent_0.outputHash.BYTES_PER_ELEMENT === 1 && respondBidirectionalEvent_0.outputHash.length === 32 && respondBidirectionalEvent_0.digest.buffer instanceof ArrayBuffer && respondBidirectionalEvent_0.digest.BYTES_PER_ELEMENT === 1 && respondBidirectionalEvent_0.digest.length === 32 && typeof(respondBidirectionalEvent_0.signature) === 'object' && typeof(respondBidirectionalEvent_0.signature.bigR) === 'object' && respondBidirectionalEvent_0.signature.bigR.x.buffer instanceof ArrayBuffer && respondBidirectionalEvent_0.signature.bigR.x.BYTES_PER_ELEMENT === 1 && respondBidirectionalEvent_0.signature.bigR.x.length === 32 && respondBidirectionalEvent_0.signature.bigR.y.buffer instanceof ArrayBuffer && respondBidirectionalEvent_0.signature.bigR.y.BYTES_PER_ELEMENT === 1 && respondBidirectionalEvent_0.signature.bigR.y.length === 32 && respondBidirectionalEvent_0.signature.s.buffer instanceof ArrayBuffer && respondBidirectionalEvent_0.signature.s.BYTES_PER_ELEMENT === 1 && respondBidirectionalEvent_0.signature.s.length === 32 && typeof(respondBidirectionalEvent_0.signature.recoveryId) === 'bigint' && respondBidirectionalEvent_0.signature.recoveryId >= 0n && respondBidirectionalEvent_0.signature.recoveryId <= 255n)) {
|
|
1988
2007
|
__compactRuntime.typeError('verifyRespondBidirectionalEvent32',
|
|
1989
2008
|
'argument 2',
|
|
1990
|
-
'circuits.compact line
|
|
1991
|
-
'struct RespondBidirectionalEventV1<requestId: Bytes<32>, blockHeight: Uint<0..18446744073709551616>, outputKind: Enum<OutputKind, executed, failed, unviable>, serializedOutputLength: Uint<0..18446744073709551616>, digest: Bytes<32>, signature: struct Signature<bigR: struct AffinePoint<x: Bytes<32>, y: Bytes<32>>, s: Bytes<32>, recoveryId: Uint<0..256>>>',
|
|
2009
|
+
'circuits.compact line 129 char 1',
|
|
2010
|
+
'struct RespondBidirectionalEventV1<requestId: Bytes<32>, blockHeight: Uint<0..18446744073709551616>, outputKind: Enum<OutputKind, executed, failed, unviable>, serializedOutputLength: Uint<0..18446744073709551616>, outputHash: Bytes<32>, digest: Bytes<32>, signature: struct Signature<bigR: struct AffinePoint<x: Bytes<32>, y: Bytes<32>>, s: Bytes<32>, recoveryId: Uint<0..256>>>',
|
|
1992
2011
|
respondBidirectionalEvent_0)
|
|
1993
2012
|
}
|
|
1994
2013
|
return _dummyContract._verifyRespondBidirectionalEvent32_0(serializedOutput_0,
|
|
@@ -2000,11 +2019,11 @@ export const pureCircuits = {
|
|
|
2000
2019
|
throw new __compactRuntime.CompactError(`constructSignBidirectionalEventV1_1_0_0_34: expected 1 argument (as invoked from Typescript), received ${args_0.length}`);
|
|
2001
2020
|
}
|
|
2002
2021
|
const request_0 = args_0[0];
|
|
2003
|
-
if (!(typeof(request_0) === 'object' && typeof(request_0.keyVersion) === 'bigint' && request_0.keyVersion >= 0n && request_0.keyVersion <= 255n && typeof(request_0.sender) === 'object' && request_0.sender.bytes.buffer instanceof ArrayBuffer && request_0.sender.bytes.BYTES_PER_ELEMENT === 1 && request_0.sender.bytes.length === 32 && request_0.path.buffer instanceof ArrayBuffer && request_0.path.BYTES_PER_ELEMENT === 1 && request_0.path.length === 32 && typeof(request_0.algo) === 'number' && request_0.algo >= 0 && request_0.algo <= 1 && typeof(request_0.txParamType) === 'number' && request_0.txParamType >= 0 && request_0.txParamType <= 1 && typeof(request_0.txParams) === 'object' && typeof(request_0.txParams.chainId) === 'bigint' && request_0.txParams.chainId >= 0n && request_0.txParams.chainId <= 18446744073709551615n && typeof(request_0.txParams.nonce) === 'bigint' && request_0.txParams.nonce >= 0n && request_0.txParams.nonce <= 18446744073709551615n && typeof(request_0.txParams.maxPriorityFeePerGas) === 'bigint' && request_0.txParams.maxPriorityFeePerGas >= 0n && request_0.txParams.maxPriorityFeePerGas <= 340282366920938463463374607431768211455n && typeof(request_0.txParams.maxFeePerGas) === 'bigint' && request_0.txParams.maxFeePerGas >= 0n && request_0.txParams.maxFeePerGas <= 340282366920938463463374607431768211455n && typeof(request_0.txParams.gasLimit) === 'bigint' && request_0.txParams.gasLimit >= 0n && request_0.txParams.gasLimit <= 18446744073709551615n && request_0.txParams.to.buffer instanceof ArrayBuffer && request_0.txParams.to.BYTES_PER_ELEMENT === 1 && request_0.txParams.to.length === 20 && typeof(request_0.txParams.value) === 'bigint' && request_0.txParams.value >= 0n && request_0.txParams.value <= 340282366920938463463374607431768211455n && typeof(request_0.txParams.calldata) === 'object' && typeof(request_0.txParams.calldata.is_some) === 'boolean' && typeof(request_0.txParams.calldata.value) === 'object' && request_0.txParams.calldata.value.selector.buffer instanceof ArrayBuffer && request_0.txParams.calldata.value.selector.BYTES_PER_ELEMENT === 1 && request_0.txParams.calldata.value.selector.length === 4 && typeof(request_0.txParams.calldata.value.noWords) === 'bigint' && request_0.txParams.calldata.value.noWords >= 0n && request_0.txParams.calldata.value.noWords <= 65535n && Array.isArray(request_0.txParams.calldata.value.words) && request_0.txParams.calldata.value.words.length === 1 && request_0.txParams.calldata.value.words.every((t) => t.buffer instanceof ArrayBuffer && t.BYTES_PER_ELEMENT === 1 && t.length === 32) && typeof(request_0.txParams.accessListEntryCount) === 'bigint' && request_0.txParams.accessListEntryCount >= 0n && request_0.txParams.accessListEntryCount <= 255n && Array.isArray(request_0.txParams.accessList) && request_0.txParams.accessList.length === 0 && request_0.txParams.accessList.every((t) => typeof(t) === 'object' && t.address.buffer instanceof ArrayBuffer && t.address.BYTES_PER_ELEMENT === 1 && t.address.length === 20 && typeof(t.storageKeyCount) === 'bigint' && t.storageKeyCount >= 0n && t.storageKeyCount <= 255n && Array.isArray(t.storageKeys) && t.storageKeys.length === 0 && t.storageKeys.every((t) => t.buffer instanceof ArrayBuffer && t.BYTES_PER_ELEMENT === 1 && t.length === 32)) && request_0.executionDest.buffer instanceof ArrayBuffer && request_0.executionDest.BYTES_PER_ELEMENT === 1 && request_0.executionDest.length ===
|
|
2022
|
+
if (!(typeof(request_0) === 'object' && typeof(request_0.keyVersion) === 'bigint' && request_0.keyVersion >= 0n && request_0.keyVersion <= 255n && typeof(request_0.sender) === 'object' && request_0.sender.bytes.buffer instanceof ArrayBuffer && request_0.sender.bytes.BYTES_PER_ELEMENT === 1 && request_0.sender.bytes.length === 32 && request_0.path.buffer instanceof ArrayBuffer && request_0.path.BYTES_PER_ELEMENT === 1 && request_0.path.length === 32 && typeof(request_0.algo) === 'number' && request_0.algo >= 0 && request_0.algo <= 1 && typeof(request_0.txParamType) === 'number' && request_0.txParamType >= 0 && request_0.txParamType <= 1 && typeof(request_0.txParams) === 'object' && typeof(request_0.txParams.chainId) === 'bigint' && request_0.txParams.chainId >= 0n && request_0.txParams.chainId <= 18446744073709551615n && typeof(request_0.txParams.nonce) === 'bigint' && request_0.txParams.nonce >= 0n && request_0.txParams.nonce <= 18446744073709551615n && typeof(request_0.txParams.maxPriorityFeePerGas) === 'bigint' && request_0.txParams.maxPriorityFeePerGas >= 0n && request_0.txParams.maxPriorityFeePerGas <= 340282366920938463463374607431768211455n && typeof(request_0.txParams.maxFeePerGas) === 'bigint' && request_0.txParams.maxFeePerGas >= 0n && request_0.txParams.maxFeePerGas <= 340282366920938463463374607431768211455n && typeof(request_0.txParams.gasLimit) === 'bigint' && request_0.txParams.gasLimit >= 0n && request_0.txParams.gasLimit <= 18446744073709551615n && request_0.txParams.to.buffer instanceof ArrayBuffer && request_0.txParams.to.BYTES_PER_ELEMENT === 1 && request_0.txParams.to.length === 20 && typeof(request_0.txParams.value) === 'bigint' && request_0.txParams.value >= 0n && request_0.txParams.value <= 340282366920938463463374607431768211455n && typeof(request_0.txParams.calldata) === 'object' && typeof(request_0.txParams.calldata.is_some) === 'boolean' && typeof(request_0.txParams.calldata.value) === 'object' && request_0.txParams.calldata.value.selector.buffer instanceof ArrayBuffer && request_0.txParams.calldata.value.selector.BYTES_PER_ELEMENT === 1 && request_0.txParams.calldata.value.selector.length === 4 && typeof(request_0.txParams.calldata.value.noWords) === 'bigint' && request_0.txParams.calldata.value.noWords >= 0n && request_0.txParams.calldata.value.noWords <= 65535n && Array.isArray(request_0.txParams.calldata.value.words) && request_0.txParams.calldata.value.words.length === 1 && request_0.txParams.calldata.value.words.every((t) => t.buffer instanceof ArrayBuffer && t.BYTES_PER_ELEMENT === 1 && t.length === 32) && typeof(request_0.txParams.accessListEntryCount) === 'bigint' && request_0.txParams.accessListEntryCount >= 0n && request_0.txParams.accessListEntryCount <= 255n && Array.isArray(request_0.txParams.accessList) && request_0.txParams.accessList.length === 0 && request_0.txParams.accessList.every((t) => typeof(t) === 'object' && t.address.buffer instanceof ArrayBuffer && t.address.BYTES_PER_ELEMENT === 1 && t.address.length === 20 && typeof(t.storageKeyCount) === 'bigint' && t.storageKeyCount >= 0n && t.storageKeyCount <= 255n && Array.isArray(t.storageKeys) && t.storageKeys.length === 0 && t.storageKeys.every((t) => t.buffer instanceof ArrayBuffer && t.BYTES_PER_ELEMENT === 1 && t.length === 32)) && request_0.executionDest.buffer instanceof ArrayBuffer && request_0.executionDest.BYTES_PER_ELEMENT === 1 && request_0.executionDest.length === 64 && typeof(request_0.signatureDest) === 'number' && request_0.signatureDest >= 0 && request_0.signatureDest <= 1 && request_0.params.buffer instanceof ArrayBuffer && request_0.params.BYTES_PER_ELEMENT === 1 && request_0.params.length === 64 && request_0.outputDeserializationSchema.buffer instanceof ArrayBuffer && request_0.outputDeserializationSchema.BYTES_PER_ELEMENT === 1 && request_0.outputDeserializationSchema.length === 34 && request_0.respondSerializationSchema.buffer instanceof ArrayBuffer && request_0.respondSerializationSchema.BYTES_PER_ELEMENT === 1 && request_0.respondSerializationSchema.length === 0)) {
|
|
2004
2023
|
__compactRuntime.typeError('constructSignBidirectionalEventV1_1_0_0_34',
|
|
2005
2024
|
'argument 1',
|
|
2006
|
-
'circuits.compact line
|
|
2007
|
-
'struct SignBidirectionalEventV1<keyVersion: Uint<0..256>, sender: struct ContractAddress<bytes: Bytes<32>>, path: Bytes<32>, algo: Enum<MPCSignatureAlgorithm, ecdsa, reserved>, txParamType: Enum<TxParamType, evmType2, reserved>, txParams: struct EvmType2TxParams<chainId: Uint<0..18446744073709551616>, nonce: Uint<0..18446744073709551616>, maxPriorityFeePerGas: Uint<0..340282366920938463463374607431768211456>, maxFeePerGas: Uint<0..340282366920938463463374607431768211456>, gasLimit: Uint<0..18446744073709551616>, to: Bytes<20>, value: Uint<0..340282366920938463463374607431768211456>, calldata: struct Maybe<is_some: Boolean, value: struct EvmCalldata<selector: Bytes<4>, noWords: Uint<0..65536>, words: Vector<1, Bytes<32>>>>, accessListEntryCount: Uint<0..256>, accessList: Vector<0, struct EvmAccessListEntry<address: Bytes<20>, storageKeyCount: Uint<0..256>, storageKeys: Vector<0, Bytes<32>>>>>, executionDest: Bytes<
|
|
2025
|
+
'circuits.compact line 141 char 1',
|
|
2026
|
+
'struct SignBidirectionalEventV1<keyVersion: Uint<0..256>, sender: struct ContractAddress<bytes: Bytes<32>>, path: Bytes<32>, algo: Enum<MPCSignatureAlgorithm, ecdsa, reserved>, txParamType: Enum<TxParamType, evmType2, reserved>, txParams: struct EvmType2TxParams<chainId: Uint<0..18446744073709551616>, nonce: Uint<0..18446744073709551616>, maxPriorityFeePerGas: Uint<0..340282366920938463463374607431768211456>, maxFeePerGas: Uint<0..340282366920938463463374607431768211456>, gasLimit: Uint<0..18446744073709551616>, to: Bytes<20>, value: Uint<0..340282366920938463463374607431768211456>, calldata: struct Maybe<is_some: Boolean, value: struct EvmCalldata<selector: Bytes<4>, noWords: Uint<0..65536>, words: Vector<1, Bytes<32>>>>, accessListEntryCount: Uint<0..256>, accessList: Vector<0, struct EvmAccessListEntry<address: Bytes<20>, storageKeyCount: Uint<0..256>, storageKeys: Vector<0, Bytes<32>>>>>, executionDest: Bytes<64>, signatureDest: Enum<MPCDestination, unused, reserved>, params: Bytes<64>, outputDeserializationSchema: Bytes<34>, respondSerializationSchema: Bytes<0>>',
|
|
2008
2027
|
request_0)
|
|
2009
2028
|
}
|
|
2010
2029
|
return _dummyContract._constructSignBidirectionalEventV1_1_0_0_34_0(request_0);
|