@sig-net/midnight 0.26.0-rc.1 → 0.26.0-rc.11
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 +9 -8
- package/dist/constants.d.ts +22 -11
- package/dist/constants.d.ts.map +1 -1
- package/dist/constants.js +49 -25
- package/dist/constants.js.map +1 -1
- package/dist/ecdsa-attestation.d.ts +1 -1
- package/dist/ecdsa-attestation.d.ts.map +1 -1
- package/dist/ecdsa-attestation.js +3 -1
- package/dist/ecdsa-attestation.js.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/dist/managed/compiler/contract-info.json +7 -21
- package/dist/managed/compiler/contract-manifest.json +12 -11
- package/dist/managed/contract/index.d.ts +2 -4
- package/dist/managed/contract/index.js +412 -298
- package/dist/managed/contract/index.js.map +1 -1
- package/dist/mpc-output-cache.d.ts +3 -3
- package/dist/mpc-output-cache.d.ts.map +1 -1
- package/dist/mpc-output-cache.js +2 -2
- package/dist/raw-contract-state.d.ts +2 -2
- package/dist/record-contract-address.d.ts +29 -12
- package/dist/record-contract-address.d.ts.map +1 -1
- package/dist/record-contract-address.js +55 -18
- package/dist/record-contract-address.js.map +1 -1
- package/dist/signature-requests-state-reader.d.ts +2 -2
- package/dist/signature-requests-state-reader.js +2 -2
- package/dist/signature-response-verification.js +3 -3
- package/dist/signature-response-verification.js.map +1 -1
- package/dist/signet-contract-events.d.ts +8 -8
- package/dist/signet-contract-events.d.ts.map +1 -1
- package/dist/signet-contract-events.js +15 -12
- package/dist/signet-contract-events.js.map +1 -1
- package/dist/signet-request-response-reader.d.ts +26 -23
- package/dist/signet-request-response-reader.d.ts.map +1 -1
- package/dist/signet-request-response-reader.js +28 -19
- package/dist/signet-request-response-reader.js.map +1 -1
- package/dist/url-redaction.d.ts +11 -0
- package/dist/url-redaction.d.ts.map +1 -0
- package/dist/url-redaction.js +21 -0
- package/dist/url-redaction.js.map +1 -0
- package/package.json +5 -5
- package/src/Signet.compact +27 -21
- package/src/circuits.compact +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as __compactRuntime from '@midnight-ntwrk/compact-runtime';
|
|
2
|
-
__compactRuntime.checkRuntimeVersion('0.
|
|
2
|
+
__compactRuntime.checkRuntimeVersion('0.21.0');
|
|
3
3
|
|
|
4
4
|
export var HashDomain;
|
|
5
5
|
(function (HashDomain) {
|
|
@@ -19,236 +19,236 @@ export var OutputKind;
|
|
|
19
19
|
OutputKind[OutputKind['unviable'] = 2] = 'unviable';
|
|
20
20
|
})(OutputKind || (OutputKind = {}));
|
|
21
21
|
|
|
22
|
-
const _descriptor_0 = new __compactRuntime.
|
|
22
|
+
const _descriptor_0 = new __compactRuntime.CompactTypeUnsignedInteger(255n, 1);
|
|
23
23
|
|
|
24
|
-
const _descriptor_1 = new __compactRuntime.
|
|
24
|
+
const _descriptor_1 = new __compactRuntime.CompactTypeBytes(32);
|
|
25
25
|
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
class _AffinePoint_0 {
|
|
26
|
+
class _ContractAddress_0 {
|
|
29
27
|
alignment() {
|
|
30
|
-
return
|
|
28
|
+
return _descriptor_1.alignment();
|
|
31
29
|
}
|
|
32
30
|
fromValue(value_0) {
|
|
33
31
|
return {
|
|
34
|
-
|
|
35
|
-
y: _descriptor_0.fromValue(value_0)
|
|
32
|
+
bytes: _descriptor_1.fromValue(value_0)
|
|
36
33
|
}
|
|
37
34
|
}
|
|
38
35
|
toValue(value_0) {
|
|
39
|
-
return
|
|
36
|
+
return _descriptor_1.toValue(value_0.bytes);
|
|
40
37
|
}
|
|
41
38
|
}
|
|
42
39
|
|
|
43
|
-
const
|
|
40
|
+
const _descriptor_2 = new _ContractAddress_0();
|
|
44
41
|
|
|
45
|
-
const
|
|
42
|
+
const _descriptor_3 = new __compactRuntime.CompactTypeEnum(1, 1);
|
|
46
43
|
|
|
47
|
-
|
|
44
|
+
const _descriptor_4 = new __compactRuntime.CompactTypeEnum(1, 1);
|
|
45
|
+
|
|
46
|
+
const _descriptor_5 = new __compactRuntime.CompactTypeUnsignedInteger(18446744073709551615n, 8);
|
|
47
|
+
|
|
48
|
+
const _descriptor_6 = new __compactRuntime.CompactTypeUnsignedInteger(340282366920938463463374607431768211455n, 16);
|
|
49
|
+
|
|
50
|
+
const _descriptor_7 = new __compactRuntime.CompactTypeBytes(20);
|
|
51
|
+
|
|
52
|
+
const _descriptor_8 = __compactRuntime.CompactTypeBoolean;
|
|
53
|
+
|
|
54
|
+
const _descriptor_9 = new __compactRuntime.CompactTypeBytes(4);
|
|
55
|
+
|
|
56
|
+
const _descriptor_10 = new __compactRuntime.CompactTypeUnsignedInteger(65535n, 2);
|
|
57
|
+
|
|
58
|
+
const _descriptor_11 = new __compactRuntime.CompactTypeVector(1, _descriptor_1);
|
|
59
|
+
|
|
60
|
+
class _EvmCalldata_0 {
|
|
48
61
|
alignment() {
|
|
49
|
-
return
|
|
62
|
+
return _descriptor_9.alignment().concat(_descriptor_10.alignment().concat(_descriptor_11.alignment()));
|
|
50
63
|
}
|
|
51
64
|
fromValue(value_0) {
|
|
52
65
|
return {
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
66
|
+
selector: _descriptor_9.fromValue(value_0),
|
|
67
|
+
noWords: _descriptor_10.fromValue(value_0),
|
|
68
|
+
words: _descriptor_11.fromValue(value_0)
|
|
56
69
|
}
|
|
57
70
|
}
|
|
58
71
|
toValue(value_0) {
|
|
59
|
-
return
|
|
72
|
+
return _descriptor_9.toValue(value_0.selector).concat(_descriptor_10.toValue(value_0.noWords).concat(_descriptor_11.toValue(value_0.words)));
|
|
60
73
|
}
|
|
61
74
|
}
|
|
62
75
|
|
|
63
|
-
const
|
|
76
|
+
const _descriptor_12 = new _EvmCalldata_0();
|
|
64
77
|
|
|
65
|
-
class
|
|
78
|
+
class _Maybe_0 {
|
|
66
79
|
alignment() {
|
|
67
|
-
return
|
|
80
|
+
return _descriptor_8.alignment().concat(_descriptor_12.alignment());
|
|
68
81
|
}
|
|
69
82
|
fromValue(value_0) {
|
|
70
83
|
return {
|
|
71
|
-
|
|
72
|
-
|
|
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)
|
|
84
|
+
is_some: _descriptor_8.fromValue(value_0),
|
|
85
|
+
value: _descriptor_12.fromValue(value_0)
|
|
78
86
|
}
|
|
79
87
|
}
|
|
80
88
|
toValue(value_0) {
|
|
81
|
-
return
|
|
89
|
+
return _descriptor_8.toValue(value_0.is_some).concat(_descriptor_12.toValue(value_0.value));
|
|
82
90
|
}
|
|
83
91
|
}
|
|
84
92
|
|
|
85
|
-
const
|
|
93
|
+
const _descriptor_13 = new _Maybe_0();
|
|
86
94
|
|
|
87
|
-
const
|
|
95
|
+
const _descriptor_14 = new __compactRuntime.CompactTypeVector(0, _descriptor_1);
|
|
88
96
|
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
class _ContractAddress_0 {
|
|
97
|
+
class _EvmAccessListEntry_0 {
|
|
92
98
|
alignment() {
|
|
93
|
-
return _descriptor_0.alignment();
|
|
99
|
+
return _descriptor_7.alignment().concat(_descriptor_0.alignment().concat(_descriptor_14.alignment()));
|
|
94
100
|
}
|
|
95
101
|
fromValue(value_0) {
|
|
96
102
|
return {
|
|
97
|
-
|
|
103
|
+
address: _descriptor_7.fromValue(value_0),
|
|
104
|
+
storageKeyCount: _descriptor_0.fromValue(value_0),
|
|
105
|
+
storageKeys: _descriptor_14.fromValue(value_0)
|
|
98
106
|
}
|
|
99
107
|
}
|
|
100
108
|
toValue(value_0) {
|
|
101
|
-
return _descriptor_0.toValue(value_0.
|
|
109
|
+
return _descriptor_7.toValue(value_0.address).concat(_descriptor_0.toValue(value_0.storageKeyCount).concat(_descriptor_14.toValue(value_0.storageKeys)));
|
|
102
110
|
}
|
|
103
111
|
}
|
|
104
112
|
|
|
105
|
-
const
|
|
106
|
-
|
|
107
|
-
const _descriptor_10 = new __compactRuntime.CompactTypeEnum(1, 1);
|
|
108
|
-
|
|
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);
|
|
113
|
+
const _descriptor_15 = new _EvmAccessListEntry_0();
|
|
114
114
|
|
|
115
|
-
const
|
|
115
|
+
const _descriptor_16 = new __compactRuntime.CompactTypeVector(0, _descriptor_15);
|
|
116
116
|
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
const _descriptor_16 = new __compactRuntime.CompactTypeVector(1, _descriptor_0);
|
|
120
|
-
|
|
121
|
-
class _EvmCalldata_0 {
|
|
117
|
+
class _EvmType2TxParams_0 {
|
|
122
118
|
alignment() {
|
|
123
|
-
return
|
|
119
|
+
return _descriptor_5.alignment().concat(_descriptor_5.alignment().concat(_descriptor_6.alignment().concat(_descriptor_6.alignment().concat(_descriptor_5.alignment().concat(_descriptor_7.alignment().concat(_descriptor_6.alignment().concat(_descriptor_13.alignment().concat(_descriptor_0.alignment().concat(_descriptor_16.alignment())))))))));
|
|
124
120
|
}
|
|
125
121
|
fromValue(value_0) {
|
|
126
122
|
return {
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
123
|
+
chainId: _descriptor_5.fromValue(value_0),
|
|
124
|
+
nonce: _descriptor_5.fromValue(value_0),
|
|
125
|
+
maxPriorityFeePerGas: _descriptor_6.fromValue(value_0),
|
|
126
|
+
maxFeePerGas: _descriptor_6.fromValue(value_0),
|
|
127
|
+
gasLimit: _descriptor_5.fromValue(value_0),
|
|
128
|
+
to: _descriptor_7.fromValue(value_0),
|
|
129
|
+
value: _descriptor_6.fromValue(value_0),
|
|
130
|
+
calldata: _descriptor_13.fromValue(value_0),
|
|
131
|
+
accessListEntryCount: _descriptor_0.fromValue(value_0),
|
|
132
|
+
accessList: _descriptor_16.fromValue(value_0)
|
|
130
133
|
}
|
|
131
134
|
}
|
|
132
135
|
toValue(value_0) {
|
|
133
|
-
return
|
|
136
|
+
return _descriptor_5.toValue(value_0.chainId).concat(_descriptor_5.toValue(value_0.nonce).concat(_descriptor_6.toValue(value_0.maxPriorityFeePerGas).concat(_descriptor_6.toValue(value_0.maxFeePerGas).concat(_descriptor_5.toValue(value_0.gasLimit).concat(_descriptor_7.toValue(value_0.to).concat(_descriptor_6.toValue(value_0.value).concat(_descriptor_13.toValue(value_0.calldata).concat(_descriptor_0.toValue(value_0.accessListEntryCount).concat(_descriptor_16.toValue(value_0.accessList))))))))));
|
|
134
137
|
}
|
|
135
138
|
}
|
|
136
139
|
|
|
137
|
-
const _descriptor_17 = new
|
|
140
|
+
const _descriptor_17 = new _EvmType2TxParams_0();
|
|
138
141
|
|
|
139
|
-
|
|
142
|
+
const _descriptor_18 = new __compactRuntime.CompactTypeBytes(64);
|
|
143
|
+
|
|
144
|
+
const _descriptor_19 = new __compactRuntime.CompactTypeEnum(1, 1);
|
|
145
|
+
|
|
146
|
+
const _descriptor_20 = new __compactRuntime.CompactTypeBytes(34);
|
|
147
|
+
|
|
148
|
+
const _descriptor_21 = new __compactRuntime.CompactTypeBytes(0);
|
|
149
|
+
|
|
150
|
+
class _SignBidirectionalEventV1_0 {
|
|
140
151
|
alignment() {
|
|
141
|
-
return
|
|
152
|
+
return _descriptor_0.alignment().concat(_descriptor_2.alignment().concat(_descriptor_1.alignment().concat(_descriptor_3.alignment().concat(_descriptor_4.alignment().concat(_descriptor_17.alignment().concat(_descriptor_18.alignment().concat(_descriptor_19.alignment().concat(_descriptor_18.alignment().concat(_descriptor_20.alignment().concat(_descriptor_21.alignment()))))))))));
|
|
142
153
|
}
|
|
143
154
|
fromValue(value_0) {
|
|
144
155
|
return {
|
|
145
|
-
|
|
146
|
-
|
|
156
|
+
keyVersion: _descriptor_0.fromValue(value_0),
|
|
157
|
+
sender: _descriptor_2.fromValue(value_0),
|
|
158
|
+
path: _descriptor_1.fromValue(value_0),
|
|
159
|
+
algo: _descriptor_3.fromValue(value_0),
|
|
160
|
+
txParamType: _descriptor_4.fromValue(value_0),
|
|
161
|
+
txParams: _descriptor_17.fromValue(value_0),
|
|
162
|
+
executionDest: _descriptor_18.fromValue(value_0),
|
|
163
|
+
signatureDest: _descriptor_19.fromValue(value_0),
|
|
164
|
+
params: _descriptor_18.fromValue(value_0),
|
|
165
|
+
outputDeserializationSchema: _descriptor_20.fromValue(value_0),
|
|
166
|
+
respondSerializationSchema: _descriptor_21.fromValue(value_0)
|
|
147
167
|
}
|
|
148
168
|
}
|
|
149
169
|
toValue(value_0) {
|
|
150
|
-
return
|
|
170
|
+
return _descriptor_0.toValue(value_0.keyVersion).concat(_descriptor_2.toValue(value_0.sender).concat(_descriptor_1.toValue(value_0.path).concat(_descriptor_3.toValue(value_0.algo).concat(_descriptor_4.toValue(value_0.txParamType).concat(_descriptor_17.toValue(value_0.txParams).concat(_descriptor_18.toValue(value_0.executionDest).concat(_descriptor_19.toValue(value_0.signatureDest).concat(_descriptor_18.toValue(value_0.params).concat(_descriptor_20.toValue(value_0.outputDeserializationSchema).concat(_descriptor_21.toValue(value_0.respondSerializationSchema)))))))))));
|
|
151
171
|
}
|
|
152
172
|
}
|
|
153
173
|
|
|
154
|
-
const
|
|
174
|
+
const _descriptor_22 = new _SignBidirectionalEventV1_0();
|
|
155
175
|
|
|
156
|
-
const
|
|
176
|
+
const _descriptor_23 = new __compactRuntime.CompactTypeEnum(2, 1);
|
|
157
177
|
|
|
158
|
-
class
|
|
178
|
+
class _AffinePoint_0 {
|
|
159
179
|
alignment() {
|
|
160
|
-
return
|
|
180
|
+
return _descriptor_1.alignment().concat(_descriptor_1.alignment());
|
|
161
181
|
}
|
|
162
182
|
fromValue(value_0) {
|
|
163
183
|
return {
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
storageKeys: _descriptor_19.fromValue(value_0)
|
|
184
|
+
x: _descriptor_1.fromValue(value_0),
|
|
185
|
+
y: _descriptor_1.fromValue(value_0)
|
|
167
186
|
}
|
|
168
187
|
}
|
|
169
188
|
toValue(value_0) {
|
|
170
|
-
return
|
|
189
|
+
return _descriptor_1.toValue(value_0.x).concat(_descriptor_1.toValue(value_0.y));
|
|
171
190
|
}
|
|
172
191
|
}
|
|
173
192
|
|
|
174
|
-
const
|
|
175
|
-
|
|
176
|
-
const _descriptor_21 = new __compactRuntime.CompactTypeVector(0, _descriptor_20);
|
|
193
|
+
const _descriptor_24 = new _AffinePoint_0();
|
|
177
194
|
|
|
178
|
-
class
|
|
195
|
+
class _Signature_0 {
|
|
179
196
|
alignment() {
|
|
180
|
-
return
|
|
197
|
+
return _descriptor_24.alignment().concat(_descriptor_1.alignment().concat(_descriptor_0.alignment()));
|
|
181
198
|
}
|
|
182
199
|
fromValue(value_0) {
|
|
183
200
|
return {
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
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)
|
|
201
|
+
bigR: _descriptor_24.fromValue(value_0),
|
|
202
|
+
s: _descriptor_1.fromValue(value_0),
|
|
203
|
+
recoveryId: _descriptor_0.fromValue(value_0)
|
|
194
204
|
}
|
|
195
205
|
}
|
|
196
206
|
toValue(value_0) {
|
|
197
|
-
return
|
|
207
|
+
return _descriptor_24.toValue(value_0.bigR).concat(_descriptor_1.toValue(value_0.s).concat(_descriptor_0.toValue(value_0.recoveryId)));
|
|
198
208
|
}
|
|
199
209
|
}
|
|
200
210
|
|
|
201
|
-
const
|
|
202
|
-
|
|
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);
|
|
211
|
+
const _descriptor_25 = new _Signature_0();
|
|
208
212
|
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
class _SignBidirectionalEventV1_0 {
|
|
213
|
+
class _RespondBidirectionalEventV1_0 {
|
|
212
214
|
alignment() {
|
|
213
|
-
return
|
|
215
|
+
return _descriptor_1.alignment().concat(_descriptor_5.alignment().concat(_descriptor_23.alignment().concat(_descriptor_5.alignment().concat(_descriptor_1.alignment().concat(_descriptor_1.alignment().concat(_descriptor_25.alignment()))))));
|
|
214
216
|
}
|
|
215
217
|
fromValue(value_0) {
|
|
216
218
|
return {
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
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)
|
|
219
|
+
requestId: _descriptor_1.fromValue(value_0),
|
|
220
|
+
blockHeight: _descriptor_5.fromValue(value_0),
|
|
221
|
+
outputKind: _descriptor_23.fromValue(value_0),
|
|
222
|
+
serializedOutputLength: _descriptor_5.fromValue(value_0),
|
|
223
|
+
outputHash: _descriptor_1.fromValue(value_0),
|
|
224
|
+
digest: _descriptor_1.fromValue(value_0),
|
|
225
|
+
signature: _descriptor_25.fromValue(value_0)
|
|
228
226
|
}
|
|
229
227
|
}
|
|
230
228
|
toValue(value_0) {
|
|
231
|
-
return
|
|
229
|
+
return _descriptor_1.toValue(value_0.requestId).concat(_descriptor_5.toValue(value_0.blockHeight).concat(_descriptor_23.toValue(value_0.outputKind).concat(_descriptor_5.toValue(value_0.serializedOutputLength).concat(_descriptor_1.toValue(value_0.outputHash).concat(_descriptor_1.toValue(value_0.digest).concat(_descriptor_25.toValue(value_0.signature)))))));
|
|
232
230
|
}
|
|
233
231
|
}
|
|
234
232
|
|
|
235
|
-
const
|
|
233
|
+
const _descriptor_26 = new _RespondBidirectionalEventV1_0();
|
|
236
234
|
|
|
237
|
-
const
|
|
235
|
+
const _descriptor_27 = __compactRuntime.CompactTypeSecp256k1Point;
|
|
236
|
+
|
|
237
|
+
const _descriptor_28 = new __compactRuntime.CompactTypeVector(2, _descriptor_1);
|
|
238
238
|
|
|
239
239
|
class _EvmCalldata_1 {
|
|
240
240
|
alignment() {
|
|
241
|
-
return
|
|
241
|
+
return _descriptor_9.alignment().concat(_descriptor_10.alignment().concat(_descriptor_28.alignment()));
|
|
242
242
|
}
|
|
243
243
|
fromValue(value_0) {
|
|
244
244
|
return {
|
|
245
|
-
selector:
|
|
246
|
-
noWords:
|
|
245
|
+
selector: _descriptor_9.fromValue(value_0),
|
|
246
|
+
noWords: _descriptor_10.fromValue(value_0),
|
|
247
247
|
words: _descriptor_28.fromValue(value_0)
|
|
248
248
|
}
|
|
249
249
|
}
|
|
250
250
|
toValue(value_0) {
|
|
251
|
-
return
|
|
251
|
+
return _descriptor_9.toValue(value_0.selector).concat(_descriptor_10.toValue(value_0.noWords).concat(_descriptor_28.toValue(value_0.words)));
|
|
252
252
|
}
|
|
253
253
|
}
|
|
254
254
|
|
|
@@ -273,17 +273,17 @@ const _descriptor_30 = new _Maybe_1();
|
|
|
273
273
|
|
|
274
274
|
class _EvmAccessListEntry_1 {
|
|
275
275
|
alignment() {
|
|
276
|
-
return
|
|
276
|
+
return _descriptor_7.alignment().concat(_descriptor_0.alignment().concat(_descriptor_28.alignment()));
|
|
277
277
|
}
|
|
278
278
|
fromValue(value_0) {
|
|
279
279
|
return {
|
|
280
|
-
address:
|
|
281
|
-
storageKeyCount:
|
|
280
|
+
address: _descriptor_7.fromValue(value_0),
|
|
281
|
+
storageKeyCount: _descriptor_0.fromValue(value_0),
|
|
282
282
|
storageKeys: _descriptor_28.fromValue(value_0)
|
|
283
283
|
}
|
|
284
284
|
}
|
|
285
285
|
toValue(value_0) {
|
|
286
|
-
return
|
|
286
|
+
return _descriptor_7.toValue(value_0.address).concat(_descriptor_0.toValue(value_0.storageKeyCount).concat(_descriptor_28.toValue(value_0.storageKeys)));
|
|
287
287
|
}
|
|
288
288
|
}
|
|
289
289
|
|
|
@@ -293,24 +293,24 @@ const _descriptor_32 = new __compactRuntime.CompactTypeVector(1, _descriptor_31)
|
|
|
293
293
|
|
|
294
294
|
class _EvmType2TxParams_1 {
|
|
295
295
|
alignment() {
|
|
296
|
-
return
|
|
296
|
+
return _descriptor_5.alignment().concat(_descriptor_5.alignment().concat(_descriptor_6.alignment().concat(_descriptor_6.alignment().concat(_descriptor_5.alignment().concat(_descriptor_7.alignment().concat(_descriptor_6.alignment().concat(_descriptor_30.alignment().concat(_descriptor_0.alignment().concat(_descriptor_32.alignment())))))))));
|
|
297
297
|
}
|
|
298
298
|
fromValue(value_0) {
|
|
299
299
|
return {
|
|
300
|
-
chainId:
|
|
301
|
-
nonce:
|
|
302
|
-
maxPriorityFeePerGas:
|
|
303
|
-
maxFeePerGas:
|
|
304
|
-
gasLimit:
|
|
305
|
-
to:
|
|
306
|
-
value:
|
|
300
|
+
chainId: _descriptor_5.fromValue(value_0),
|
|
301
|
+
nonce: _descriptor_5.fromValue(value_0),
|
|
302
|
+
maxPriorityFeePerGas: _descriptor_6.fromValue(value_0),
|
|
303
|
+
maxFeePerGas: _descriptor_6.fromValue(value_0),
|
|
304
|
+
gasLimit: _descriptor_5.fromValue(value_0),
|
|
305
|
+
to: _descriptor_7.fromValue(value_0),
|
|
306
|
+
value: _descriptor_6.fromValue(value_0),
|
|
307
307
|
calldata: _descriptor_30.fromValue(value_0),
|
|
308
|
-
accessListEntryCount:
|
|
308
|
+
accessListEntryCount: _descriptor_0.fromValue(value_0),
|
|
309
309
|
accessList: _descriptor_32.fromValue(value_0)
|
|
310
310
|
}
|
|
311
311
|
}
|
|
312
312
|
toValue(value_0) {
|
|
313
|
-
return
|
|
313
|
+
return _descriptor_5.toValue(value_0.chainId).concat(_descriptor_5.toValue(value_0.nonce).concat(_descriptor_6.toValue(value_0.maxPriorityFeePerGas).concat(_descriptor_6.toValue(value_0.maxFeePerGas).concat(_descriptor_5.toValue(value_0.gasLimit).concat(_descriptor_7.toValue(value_0.to).concat(_descriptor_6.toValue(value_0.value).concat(_descriptor_30.toValue(value_0.calldata).concat(_descriptor_0.toValue(value_0.accessListEntryCount).concat(_descriptor_32.toValue(value_0.accessList))))))))));
|
|
314
314
|
}
|
|
315
315
|
}
|
|
316
316
|
|
|
@@ -318,78 +318,78 @@ const _descriptor_33 = new _EvmType2TxParams_1();
|
|
|
318
318
|
|
|
319
319
|
class _SignBidirectionalEventV1_1 {
|
|
320
320
|
alignment() {
|
|
321
|
-
return
|
|
321
|
+
return _descriptor_0.alignment().concat(_descriptor_2.alignment().concat(_descriptor_1.alignment().concat(_descriptor_3.alignment().concat(_descriptor_4.alignment().concat(_descriptor_33.alignment().concat(_descriptor_18.alignment().concat(_descriptor_19.alignment().concat(_descriptor_18.alignment().concat(_descriptor_20.alignment().concat(_descriptor_21.alignment()))))))))));
|
|
322
322
|
}
|
|
323
323
|
fromValue(value_0) {
|
|
324
324
|
return {
|
|
325
|
-
keyVersion:
|
|
326
|
-
sender:
|
|
327
|
-
path:
|
|
328
|
-
algo:
|
|
329
|
-
txParamType:
|
|
325
|
+
keyVersion: _descriptor_0.fromValue(value_0),
|
|
326
|
+
sender: _descriptor_2.fromValue(value_0),
|
|
327
|
+
path: _descriptor_1.fromValue(value_0),
|
|
328
|
+
algo: _descriptor_3.fromValue(value_0),
|
|
329
|
+
txParamType: _descriptor_4.fromValue(value_0),
|
|
330
330
|
txParams: _descriptor_33.fromValue(value_0),
|
|
331
|
-
executionDest:
|
|
332
|
-
signatureDest:
|
|
333
|
-
params:
|
|
334
|
-
outputDeserializationSchema:
|
|
335
|
-
respondSerializationSchema:
|
|
331
|
+
executionDest: _descriptor_18.fromValue(value_0),
|
|
332
|
+
signatureDest: _descriptor_19.fromValue(value_0),
|
|
333
|
+
params: _descriptor_18.fromValue(value_0),
|
|
334
|
+
outputDeserializationSchema: _descriptor_20.fromValue(value_0),
|
|
335
|
+
respondSerializationSchema: _descriptor_21.fromValue(value_0)
|
|
336
336
|
}
|
|
337
337
|
}
|
|
338
338
|
toValue(value_0) {
|
|
339
|
-
return
|
|
339
|
+
return _descriptor_0.toValue(value_0.keyVersion).concat(_descriptor_2.toValue(value_0.sender).concat(_descriptor_1.toValue(value_0.path).concat(_descriptor_3.toValue(value_0.algo).concat(_descriptor_4.toValue(value_0.txParamType).concat(_descriptor_33.toValue(value_0.txParams).concat(_descriptor_18.toValue(value_0.executionDest).concat(_descriptor_19.toValue(value_0.signatureDest).concat(_descriptor_18.toValue(value_0.params).concat(_descriptor_20.toValue(value_0.outputDeserializationSchema).concat(_descriptor_21.toValue(value_0.respondSerializationSchema)))))))))));
|
|
340
340
|
}
|
|
341
341
|
}
|
|
342
342
|
|
|
343
343
|
const _descriptor_34 = new _SignBidirectionalEventV1_1();
|
|
344
344
|
|
|
345
|
-
const _descriptor_35 = new __compactRuntime.CompactTypeBytes(
|
|
345
|
+
const _descriptor_35 = new __compactRuntime.CompactTypeBytes(1);
|
|
346
346
|
|
|
347
|
-
const _descriptor_36 = new __compactRuntime.CompactTypeBytes(
|
|
347
|
+
const _descriptor_36 = new __compactRuntime.CompactTypeBytes(2);
|
|
348
348
|
|
|
349
|
-
const _descriptor_37 = new __compactRuntime.CompactTypeBytes(
|
|
349
|
+
const _descriptor_37 = new __compactRuntime.CompactTypeBytes(100);
|
|
350
350
|
|
|
351
|
-
|
|
351
|
+
const _descriptor_38 = new __compactRuntime.CompactTypeVector(4, _descriptor_0);
|
|
352
|
+
|
|
353
|
+
const _descriptor_39 = new __compactRuntime.CompactTypeBytes(128);
|
|
354
|
+
|
|
355
|
+
class _SignBidirectionalEventNotification_0 {
|
|
352
356
|
alignment() {
|
|
353
|
-
return
|
|
357
|
+
return _descriptor_0.alignment().concat(_descriptor_39.alignment());
|
|
354
358
|
}
|
|
355
359
|
fromValue(value_0) {
|
|
356
360
|
return {
|
|
357
|
-
|
|
358
|
-
|
|
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
|
+
version: _descriptor_0.fromValue(value_0),
|
|
362
|
+
payload: _descriptor_39.fromValue(value_0)
|
|
364
363
|
}
|
|
365
364
|
}
|
|
366
365
|
toValue(value_0) {
|
|
367
|
-
return
|
|
366
|
+
return _descriptor_0.toValue(value_0.version).concat(_descriptor_39.toValue(value_0.payload));
|
|
368
367
|
}
|
|
369
368
|
}
|
|
370
369
|
|
|
371
|
-
const
|
|
372
|
-
|
|
373
|
-
const _descriptor_39 = new __compactRuntime.CompactTypeVector(4, _descriptor_4);
|
|
374
|
-
|
|
375
|
-
const _descriptor_40 = new __compactRuntime.CompactTypeBytes(128);
|
|
370
|
+
const _descriptor_40 = new _SignBidirectionalEventNotification_0();
|
|
376
371
|
|
|
377
|
-
class
|
|
372
|
+
class _RequestIdPreimageV1_0 {
|
|
378
373
|
alignment() {
|
|
379
|
-
return _descriptor_4.alignment().concat(
|
|
374
|
+
return _descriptor_0.alignment().concat(_descriptor_2.alignment().concat(_descriptor_1.alignment().concat(_descriptor_3.alignment().concat(_descriptor_4.alignment().concat(_descriptor_1.alignment().concat(_descriptor_18.alignment()))))));
|
|
380
375
|
}
|
|
381
376
|
fromValue(value_0) {
|
|
382
377
|
return {
|
|
383
|
-
|
|
384
|
-
|
|
378
|
+
keyVersion: _descriptor_0.fromValue(value_0),
|
|
379
|
+
sender: _descriptor_2.fromValue(value_0),
|
|
380
|
+
path: _descriptor_1.fromValue(value_0),
|
|
381
|
+
algo: _descriptor_3.fromValue(value_0),
|
|
382
|
+
txParamType: _descriptor_4.fromValue(value_0),
|
|
383
|
+
txParamsDigest: _descriptor_1.fromValue(value_0),
|
|
384
|
+
executionDest: _descriptor_18.fromValue(value_0)
|
|
385
385
|
}
|
|
386
386
|
}
|
|
387
387
|
toValue(value_0) {
|
|
388
|
-
return _descriptor_4.toValue(value_0.
|
|
388
|
+
return _descriptor_0.toValue(value_0.keyVersion).concat(_descriptor_2.toValue(value_0.sender).concat(_descriptor_1.toValue(value_0.path).concat(_descriptor_3.toValue(value_0.algo).concat(_descriptor_4.toValue(value_0.txParamType).concat(_descriptor_1.toValue(value_0.txParamsDigest).concat(_descriptor_18.toValue(value_0.executionDest)))))));
|
|
389
389
|
}
|
|
390
390
|
}
|
|
391
391
|
|
|
392
|
-
const _descriptor_41 = new
|
|
392
|
+
const _descriptor_41 = new _RequestIdPreimageV1_0();
|
|
393
393
|
|
|
394
394
|
const _descriptor_42 = __compactRuntime.CompactTypeSecp256k1Scalar;
|
|
395
395
|
|
|
@@ -401,16 +401,16 @@ const _descriptor_45 = new __compactRuntime.CompactTypeEnum(6, 1);
|
|
|
401
401
|
|
|
402
402
|
class _tuple_0 {
|
|
403
403
|
alignment() {
|
|
404
|
-
return _descriptor_45.alignment().concat(
|
|
404
|
+
return _descriptor_45.alignment().concat(_descriptor_41.alignment());
|
|
405
405
|
}
|
|
406
406
|
fromValue(value_0) {
|
|
407
407
|
return [
|
|
408
408
|
_descriptor_45.fromValue(value_0),
|
|
409
|
-
|
|
409
|
+
_descriptor_41.fromValue(value_0)
|
|
410
410
|
]
|
|
411
411
|
}
|
|
412
412
|
toValue(value_0) {
|
|
413
|
-
return _descriptor_45.toValue(value_0[0]).concat(
|
|
413
|
+
return _descriptor_45.toValue(value_0[0]).concat(_descriptor_41.toValue(value_0[1]));
|
|
414
414
|
}
|
|
415
415
|
}
|
|
416
416
|
|
|
@@ -418,20 +418,20 @@ const _descriptor_46 = new _tuple_0();
|
|
|
418
418
|
|
|
419
419
|
class _tuple_1 {
|
|
420
420
|
alignment() {
|
|
421
|
-
return _descriptor_45.alignment().concat(
|
|
421
|
+
return _descriptor_45.alignment().concat(_descriptor_1.alignment().concat(_descriptor_5.alignment().concat(_descriptor_23.alignment().concat(_descriptor_5.alignment().concat(_descriptor_1.alignment())))));
|
|
422
422
|
}
|
|
423
423
|
fromValue(value_0) {
|
|
424
424
|
return [
|
|
425
425
|
_descriptor_45.fromValue(value_0),
|
|
426
|
-
_descriptor_0.fromValue(value_0),
|
|
427
426
|
_descriptor_1.fromValue(value_0),
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
427
|
+
_descriptor_5.fromValue(value_0),
|
|
428
|
+
_descriptor_23.fromValue(value_0),
|
|
429
|
+
_descriptor_5.fromValue(value_0),
|
|
430
|
+
_descriptor_1.fromValue(value_0)
|
|
431
431
|
]
|
|
432
432
|
}
|
|
433
433
|
toValue(value_0) {
|
|
434
|
-
return _descriptor_45.toValue(value_0[0]).concat(
|
|
434
|
+
return _descriptor_45.toValue(value_0[0]).concat(_descriptor_1.toValue(value_0[1]).concat(_descriptor_5.toValue(value_0[2]).concat(_descriptor_23.toValue(value_0[3]).concat(_descriptor_5.toValue(value_0[4]).concat(_descriptor_1.toValue(value_0[5]))))));
|
|
435
435
|
}
|
|
436
436
|
}
|
|
437
437
|
|
|
@@ -439,16 +439,16 @@ const _descriptor_47 = new _tuple_1();
|
|
|
439
439
|
|
|
440
440
|
class _tuple_2 {
|
|
441
441
|
alignment() {
|
|
442
|
-
return _descriptor_45.alignment().concat(
|
|
442
|
+
return _descriptor_45.alignment().concat(_descriptor_21.alignment());
|
|
443
443
|
}
|
|
444
444
|
fromValue(value_0) {
|
|
445
445
|
return [
|
|
446
446
|
_descriptor_45.fromValue(value_0),
|
|
447
|
-
|
|
447
|
+
_descriptor_21.fromValue(value_0)
|
|
448
448
|
]
|
|
449
449
|
}
|
|
450
450
|
toValue(value_0) {
|
|
451
|
-
return _descriptor_45.toValue(value_0[0]).concat(
|
|
451
|
+
return _descriptor_45.toValue(value_0[0]).concat(_descriptor_21.toValue(value_0[1]));
|
|
452
452
|
}
|
|
453
453
|
}
|
|
454
454
|
|
|
@@ -456,16 +456,16 @@ const _descriptor_48 = new _tuple_2();
|
|
|
456
456
|
|
|
457
457
|
class _tuple_3 {
|
|
458
458
|
alignment() {
|
|
459
|
-
return _descriptor_45.alignment().concat(
|
|
459
|
+
return _descriptor_45.alignment().concat(_descriptor_1.alignment());
|
|
460
460
|
}
|
|
461
461
|
fromValue(value_0) {
|
|
462
462
|
return [
|
|
463
463
|
_descriptor_45.fromValue(value_0),
|
|
464
|
-
|
|
464
|
+
_descriptor_1.fromValue(value_0)
|
|
465
465
|
]
|
|
466
466
|
}
|
|
467
467
|
toValue(value_0) {
|
|
468
|
-
return _descriptor_45.toValue(value_0[0]).concat(
|
|
468
|
+
return _descriptor_45.toValue(value_0[0]).concat(_descriptor_1.toValue(value_0[1]));
|
|
469
469
|
}
|
|
470
470
|
}
|
|
471
471
|
|
|
@@ -473,17 +473,17 @@ const _descriptor_49 = new _tuple_3();
|
|
|
473
473
|
|
|
474
474
|
class _tuple_4 {
|
|
475
475
|
alignment() {
|
|
476
|
-
return _descriptor_45.alignment().concat(_descriptor_44.alignment().concat(
|
|
476
|
+
return _descriptor_45.alignment().concat(_descriptor_44.alignment().concat(_descriptor_1.alignment()));
|
|
477
477
|
}
|
|
478
478
|
fromValue(value_0) {
|
|
479
479
|
return [
|
|
480
480
|
_descriptor_45.fromValue(value_0),
|
|
481
481
|
_descriptor_44.fromValue(value_0),
|
|
482
|
-
|
|
482
|
+
_descriptor_1.fromValue(value_0)
|
|
483
483
|
]
|
|
484
484
|
}
|
|
485
485
|
toValue(value_0) {
|
|
486
|
-
return _descriptor_45.toValue(value_0[0]).concat(_descriptor_44.toValue(value_0[1]).concat(
|
|
486
|
+
return _descriptor_45.toValue(value_0[0]).concat(_descriptor_44.toValue(value_0[1]).concat(_descriptor_1.toValue(value_0[2])));
|
|
487
487
|
}
|
|
488
488
|
}
|
|
489
489
|
|
|
@@ -491,19 +491,19 @@ const _descriptor_50 = new _tuple_4();
|
|
|
491
491
|
|
|
492
492
|
class _tuple_5 {
|
|
493
493
|
alignment() {
|
|
494
|
-
return _descriptor_45.alignment().concat(_descriptor_44.alignment().concat(
|
|
494
|
+
return _descriptor_45.alignment().concat(_descriptor_44.alignment().concat(_descriptor_7.alignment().concat(_descriptor_0.alignment().concat(_descriptor_44.alignment()))));
|
|
495
495
|
}
|
|
496
496
|
fromValue(value_0) {
|
|
497
497
|
return [
|
|
498
498
|
_descriptor_45.fromValue(value_0),
|
|
499
499
|
_descriptor_44.fromValue(value_0),
|
|
500
|
-
|
|
501
|
-
|
|
500
|
+
_descriptor_7.fromValue(value_0),
|
|
501
|
+
_descriptor_0.fromValue(value_0),
|
|
502
502
|
_descriptor_44.fromValue(value_0)
|
|
503
503
|
]
|
|
504
504
|
}
|
|
505
505
|
toValue(value_0) {
|
|
506
|
-
return _descriptor_45.toValue(value_0[0]).concat(_descriptor_44.toValue(value_0[1]).concat(
|
|
506
|
+
return _descriptor_45.toValue(value_0[0]).concat(_descriptor_44.toValue(value_0[1]).concat(_descriptor_7.toValue(value_0[2]).concat(_descriptor_0.toValue(value_0[3]).concat(_descriptor_44.toValue(value_0[4])))));
|
|
507
507
|
}
|
|
508
508
|
}
|
|
509
509
|
|
|
@@ -511,16 +511,16 @@ const _descriptor_51 = new _tuple_5();
|
|
|
511
511
|
|
|
512
512
|
class _tuple_6 {
|
|
513
513
|
alignment() {
|
|
514
|
-
return _descriptor_45.alignment().concat(
|
|
514
|
+
return _descriptor_45.alignment().concat(_descriptor_36.alignment());
|
|
515
515
|
}
|
|
516
516
|
fromValue(value_0) {
|
|
517
517
|
return [
|
|
518
518
|
_descriptor_45.fromValue(value_0),
|
|
519
|
-
|
|
519
|
+
_descriptor_36.fromValue(value_0)
|
|
520
520
|
]
|
|
521
521
|
}
|
|
522
522
|
toValue(value_0) {
|
|
523
|
-
return _descriptor_45.toValue(value_0[0]).concat(
|
|
523
|
+
return _descriptor_45.toValue(value_0[0]).concat(_descriptor_36.toValue(value_0[1]));
|
|
524
524
|
}
|
|
525
525
|
}
|
|
526
526
|
|
|
@@ -528,26 +528,26 @@ const _descriptor_52 = new _tuple_6();
|
|
|
528
528
|
|
|
529
529
|
class _tuple_7 {
|
|
530
530
|
alignment() {
|
|
531
|
-
return _descriptor_45.alignment().concat(
|
|
531
|
+
return _descriptor_45.alignment().concat(_descriptor_5.alignment().concat(_descriptor_5.alignment().concat(_descriptor_6.alignment().concat(_descriptor_6.alignment().concat(_descriptor_5.alignment().concat(_descriptor_7.alignment().concat(_descriptor_6.alignment().concat(_descriptor_8.alignment().concat(_descriptor_9.alignment().concat(_descriptor_10.alignment().concat(_descriptor_0.alignment())))))))))));
|
|
532
532
|
}
|
|
533
533
|
fromValue(value_0) {
|
|
534
534
|
return [
|
|
535
535
|
_descriptor_45.fromValue(value_0),
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
536
|
+
_descriptor_5.fromValue(value_0),
|
|
537
|
+
_descriptor_5.fromValue(value_0),
|
|
538
|
+
_descriptor_6.fromValue(value_0),
|
|
539
|
+
_descriptor_6.fromValue(value_0),
|
|
540
|
+
_descriptor_5.fromValue(value_0),
|
|
541
|
+
_descriptor_7.fromValue(value_0),
|
|
542
|
+
_descriptor_6.fromValue(value_0),
|
|
543
543
|
_descriptor_8.fromValue(value_0),
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
544
|
+
_descriptor_9.fromValue(value_0),
|
|
545
|
+
_descriptor_10.fromValue(value_0),
|
|
546
|
+
_descriptor_0.fromValue(value_0)
|
|
547
547
|
]
|
|
548
548
|
}
|
|
549
549
|
toValue(value_0) {
|
|
550
|
-
return _descriptor_45.toValue(value_0[0]).concat(
|
|
550
|
+
return _descriptor_45.toValue(value_0[0]).concat(_descriptor_5.toValue(value_0[1]).concat(_descriptor_5.toValue(value_0[2]).concat(_descriptor_6.toValue(value_0[3]).concat(_descriptor_6.toValue(value_0[4]).concat(_descriptor_5.toValue(value_0[5]).concat(_descriptor_7.toValue(value_0[6]).concat(_descriptor_6.toValue(value_0[7]).concat(_descriptor_8.toValue(value_0[8]).concat(_descriptor_9.toValue(value_0[9]).concat(_descriptor_10.toValue(value_0[10]).concat(_descriptor_0.toValue(value_0[11]))))))))))));
|
|
551
551
|
}
|
|
552
552
|
}
|
|
553
553
|
|
|
@@ -555,16 +555,16 @@ const _descriptor_53 = new _tuple_7();
|
|
|
555
555
|
|
|
556
556
|
class _tuple_8 {
|
|
557
557
|
alignment() {
|
|
558
|
-
return _descriptor_45.alignment().concat(
|
|
558
|
+
return _descriptor_45.alignment().concat(_descriptor_37.alignment());
|
|
559
559
|
}
|
|
560
560
|
fromValue(value_0) {
|
|
561
561
|
return [
|
|
562
562
|
_descriptor_45.fromValue(value_0),
|
|
563
|
-
|
|
563
|
+
_descriptor_37.fromValue(value_0)
|
|
564
564
|
]
|
|
565
565
|
}
|
|
566
566
|
toValue(value_0) {
|
|
567
|
-
return _descriptor_45.toValue(value_0[0]).concat(
|
|
567
|
+
return _descriptor_45.toValue(value_0[0]).concat(_descriptor_37.toValue(value_0[1]));
|
|
568
568
|
}
|
|
569
569
|
}
|
|
570
570
|
|
|
@@ -572,16 +572,16 @@ const _descriptor_54 = new _tuple_8();
|
|
|
572
572
|
|
|
573
573
|
class _tuple_9 {
|
|
574
574
|
alignment() {
|
|
575
|
-
return _descriptor_45.alignment().concat(
|
|
575
|
+
return _descriptor_45.alignment().concat(_descriptor_35.alignment());
|
|
576
576
|
}
|
|
577
577
|
fromValue(value_0) {
|
|
578
578
|
return [
|
|
579
579
|
_descriptor_45.fromValue(value_0),
|
|
580
|
-
|
|
580
|
+
_descriptor_35.fromValue(value_0)
|
|
581
581
|
]
|
|
582
582
|
}
|
|
583
583
|
toValue(value_0) {
|
|
584
|
-
return _descriptor_45.toValue(value_0[0]).concat(
|
|
584
|
+
return _descriptor_45.toValue(value_0[0]).concat(_descriptor_35.toValue(value_0[1]));
|
|
585
585
|
}
|
|
586
586
|
}
|
|
587
587
|
|
|
@@ -606,23 +606,74 @@ const _descriptor_56 = new _Secp256k1EcdsaSignature_0();
|
|
|
606
606
|
|
|
607
607
|
class _Either_0 {
|
|
608
608
|
alignment() {
|
|
609
|
-
return _descriptor_8.alignment().concat(
|
|
609
|
+
return _descriptor_8.alignment().concat(_descriptor_1.alignment().concat(_descriptor_1.alignment()));
|
|
610
610
|
}
|
|
611
611
|
fromValue(value_0) {
|
|
612
612
|
return {
|
|
613
613
|
is_left: _descriptor_8.fromValue(value_0),
|
|
614
|
-
left:
|
|
615
|
-
right:
|
|
614
|
+
left: _descriptor_1.fromValue(value_0),
|
|
615
|
+
right: _descriptor_1.fromValue(value_0)
|
|
616
616
|
}
|
|
617
617
|
}
|
|
618
618
|
toValue(value_0) {
|
|
619
|
-
return _descriptor_8.toValue(value_0.is_left).concat(
|
|
619
|
+
return _descriptor_8.toValue(value_0.is_left).concat(_descriptor_1.toValue(value_0.left).concat(_descriptor_1.toValue(value_0.right)));
|
|
620
620
|
}
|
|
621
621
|
}
|
|
622
622
|
|
|
623
623
|
const _descriptor_57 = new _Either_0();
|
|
624
624
|
|
|
625
|
-
|
|
625
|
+
class _UserAddress_0 {
|
|
626
|
+
alignment() {
|
|
627
|
+
return _descriptor_1.alignment();
|
|
628
|
+
}
|
|
629
|
+
fromValue(value_0) {
|
|
630
|
+
return {
|
|
631
|
+
bytes: _descriptor_1.fromValue(value_0)
|
|
632
|
+
}
|
|
633
|
+
}
|
|
634
|
+
toValue(value_0) {
|
|
635
|
+
return _descriptor_1.toValue(value_0.bytes);
|
|
636
|
+
}
|
|
637
|
+
}
|
|
638
|
+
|
|
639
|
+
const _descriptor_58 = new _UserAddress_0();
|
|
640
|
+
|
|
641
|
+
class _Either_1 {
|
|
642
|
+
alignment() {
|
|
643
|
+
return _descriptor_8.alignment().concat(_descriptor_2.alignment().concat(_descriptor_58.alignment()));
|
|
644
|
+
}
|
|
645
|
+
fromValue(value_0) {
|
|
646
|
+
return {
|
|
647
|
+
is_left: _descriptor_8.fromValue(value_0),
|
|
648
|
+
left: _descriptor_2.fromValue(value_0),
|
|
649
|
+
right: _descriptor_58.fromValue(value_0)
|
|
650
|
+
}
|
|
651
|
+
}
|
|
652
|
+
toValue(value_0) {
|
|
653
|
+
return _descriptor_8.toValue(value_0.is_left).concat(_descriptor_2.toValue(value_0.left).concat(_descriptor_58.toValue(value_0.right)));
|
|
654
|
+
}
|
|
655
|
+
}
|
|
656
|
+
|
|
657
|
+
const _descriptor_59 = new _Either_1();
|
|
658
|
+
|
|
659
|
+
class _Maybe_2 {
|
|
660
|
+
alignment() {
|
|
661
|
+
return _descriptor_8.alignment().concat(_descriptor_59.alignment());
|
|
662
|
+
}
|
|
663
|
+
fromValue(value_0) {
|
|
664
|
+
return {
|
|
665
|
+
is_some: _descriptor_8.fromValue(value_0),
|
|
666
|
+
value: _descriptor_59.fromValue(value_0)
|
|
667
|
+
}
|
|
668
|
+
}
|
|
669
|
+
toValue(value_0) {
|
|
670
|
+
return _descriptor_8.toValue(value_0.is_some).concat(_descriptor_59.toValue(value_0.value));
|
|
671
|
+
}
|
|
672
|
+
}
|
|
673
|
+
|
|
674
|
+
const _descriptor_60 = new _Maybe_2();
|
|
675
|
+
|
|
676
|
+
const _descriptor_61 = new __compactRuntime.CompactTypeUnsignedInteger(4294967295n, 4);
|
|
626
677
|
|
|
627
678
|
export class Contract {
|
|
628
679
|
witnesses;
|
|
@@ -732,7 +783,7 @@ export class Contract {
|
|
|
732
783
|
const state_0 = new __compactRuntime.ContractState();
|
|
733
784
|
let stateValue_0 = __compactRuntime.StateValue.newArray();
|
|
734
785
|
state_0.data = new __compactRuntime.ChargedState(stateValue_0);
|
|
735
|
-
const context = __compactRuntime.createCircuitContext('constructor', __compactRuntime.dummyContractAddress(), constructorContext_0.initialZswapLocalState.coinPublicKey, state_0.data, constructorContext_0.initialPrivateState);
|
|
786
|
+
const context = __compactRuntime.createCircuitContext({circuitId: 'constructor', contractAddress: __compactRuntime.dummyContractAddress(), coinPublicKeyOrZswapState: constructorContext_0.initialZswapLocalState.coinPublicKey, contractState: state_0.data, privateState: constructorContext_0.initialPrivateState});
|
|
736
787
|
const partialProofData = {
|
|
737
788
|
input: { value: [], alignment: [] },
|
|
738
789
|
output: undefined,
|
|
@@ -746,55 +797,57 @@ export class Contract {
|
|
|
746
797
|
currentZswapLocalState: context.callContext.currentZswapLocalState
|
|
747
798
|
}
|
|
748
799
|
}
|
|
749
|
-
|
|
750
|
-
const v_0 = Array.from(
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
return __compactRuntime.convertBytesToField(115792089237316195423570985008687907852837564279074904382605163141518161494336n,
|
|
785
|
-
32,
|
|
786
|
-
beReversed_0,
|
|
787
|
-
'Secp256k1Scalar',
|
|
788
|
-
'<standard library>');
|
|
800
|
+
_reverseBytes32_0(b_0) {
|
|
801
|
+
const v_0 = Array.from(b_0, BigInt);
|
|
802
|
+
return Uint8Array.from([v_0[31],
|
|
803
|
+
v_0[30],
|
|
804
|
+
v_0[29],
|
|
805
|
+
v_0[28],
|
|
806
|
+
v_0[27],
|
|
807
|
+
v_0[26],
|
|
808
|
+
v_0[25],
|
|
809
|
+
v_0[24],
|
|
810
|
+
v_0[23],
|
|
811
|
+
v_0[22],
|
|
812
|
+
v_0[21],
|
|
813
|
+
v_0[20],
|
|
814
|
+
v_0[19],
|
|
815
|
+
v_0[18],
|
|
816
|
+
v_0[17],
|
|
817
|
+
v_0[16],
|
|
818
|
+
v_0[15],
|
|
819
|
+
v_0[14],
|
|
820
|
+
v_0[13],
|
|
821
|
+
v_0[12],
|
|
822
|
+
v_0[11],
|
|
823
|
+
v_0[10],
|
|
824
|
+
v_0[9],
|
|
825
|
+
v_0[8],
|
|
826
|
+
v_0[7],
|
|
827
|
+
v_0[6],
|
|
828
|
+
v_0[5],
|
|
829
|
+
v_0[4],
|
|
830
|
+
v_0[3],
|
|
831
|
+
v_0[2],
|
|
832
|
+
v_0[1],
|
|
833
|
+
v_0[0]],
|
|
834
|
+
Number);
|
|
789
835
|
}
|
|
790
836
|
_secp256k1EcdsaVerify_0(msgHash_0, sig_0, pk_0) {
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
const
|
|
837
|
+
__compactRuntime.assert(!this._equal_0(pk_0,
|
|
838
|
+
({x: 0n, y: 0n, identity: true})),
|
|
839
|
+
'Secp256k1Point identity is not a permitted secp256k1EcdsaVerify verification key');
|
|
840
|
+
const z_0 = __compactRuntime.convertBytesToField(115792089237316195423570985008687907852837564279074904382605163141518161494336n,
|
|
841
|
+
32,
|
|
842
|
+
this._reverseBytes32_0(msgHash_0),
|
|
843
|
+
'Secp256k1Scalar',
|
|
844
|
+
'<standard library>');
|
|
845
|
+
const __compact_pattern_tmp3_0 = sig_0;
|
|
846
|
+
const r_0 = __compact_pattern_tmp3_0.r;
|
|
847
|
+
const s_0 = __compact_pattern_tmp3_0.s;
|
|
795
848
|
const w_0 = this._inv_0(s_0);
|
|
796
|
-
const u1_0 =
|
|
797
|
-
const u2_0 =
|
|
849
|
+
const u1_0 = __compactRuntime.secp256k1ScalarMul(z_0, w_0);
|
|
850
|
+
const u2_0 = __compactRuntime.secp256k1ScalarMul(r_0, w_0);
|
|
798
851
|
const point_0 = this._ecAdd_0(this._ecMulGenerator_0(u1_0),
|
|
799
852
|
this._ecMul_0(pk_0, u2_0));
|
|
800
853
|
return __compactRuntime.convertBytesToField(115792089237316195423570985008687907852837564279074904382605163141518161494336n,
|
|
@@ -851,10 +904,6 @@ export class Contract {
|
|
|
851
904
|
const result_0 = __compactRuntime.upgradeFromTransient(x_0);
|
|
852
905
|
return result_0;
|
|
853
906
|
}
|
|
854
|
-
_mul_0(x_0, y_0) {
|
|
855
|
-
const result_0 = __compactRuntime.secp256k1ScalarMul(x_0, y_0);
|
|
856
|
-
return result_0;
|
|
857
|
-
}
|
|
858
907
|
_inv_0(s_0) {
|
|
859
908
|
const result_0 = __compactRuntime.secp256k1ScalarInv(s_0);
|
|
860
909
|
return result_0;
|
|
@@ -889,9 +938,9 @@ export class Contract {
|
|
|
889
938
|
__compactRuntime.assert(keyVersion_0 >= 1n, 'keyVersion must be >= 1');
|
|
890
939
|
__compactRuntime.assert(signatureDest_0 === 0,
|
|
891
940
|
'signatureDest must be unused');
|
|
892
|
-
__compactRuntime.assert(this.
|
|
941
|
+
__compactRuntime.assert(this._equal_1(params_0, new Uint8Array(64)),
|
|
893
942
|
'params must be zero');
|
|
894
|
-
__compactRuntime.assert(!this.
|
|
943
|
+
__compactRuntime.assert(!this._equal_2(path_0,
|
|
895
944
|
new Uint8Array([109, 105, 100, 110, 105, 103, 104, 116, 32, 114, 101, 115, 112, 111, 110, 115, 101, 32, 107, 101, 121, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0])),
|
|
896
945
|
'path is reserved for the MPC response key');
|
|
897
946
|
return { keyVersion: keyVersion_0,
|
|
@@ -965,19 +1014,21 @@ export class Contract {
|
|
|
965
1014
|
respondBidirectionalEvent_0.outputKind,
|
|
966
1015
|
respondBidirectionalEvent_0.serializedOutputLength,
|
|
967
1016
|
respondBidirectionalEvent_0.outputHash);
|
|
968
|
-
return this.
|
|
1017
|
+
return !this._equal_3(mpcResponseKey_0, ({x: 0n, y: 0n, identity: true}))
|
|
1018
|
+
&&
|
|
1019
|
+
this._secp256k1EcdsaVerify_0(digest_0,
|
|
969
1020
|
{ r:
|
|
970
1021
|
__compactRuntime.convertBytesToField(115792089237316195423570985008687907852837564279074904382605163141518161494336n,
|
|
971
1022
|
32,
|
|
972
1023
|
respondBidirectionalEvent_0.signature.bigR.x,
|
|
973
1024
|
'Secp256k1Scalar',
|
|
974
|
-
'Signet.compact line
|
|
1025
|
+
'Signet.compact line 458 char 12'),
|
|
975
1026
|
s:
|
|
976
1027
|
__compactRuntime.convertBytesToField(115792089237316195423570985008687907852837564279074904382605163141518161494336n,
|
|
977
1028
|
32,
|
|
978
1029
|
respondBidirectionalEvent_0.signature.s,
|
|
979
1030
|
'Secp256k1Scalar',
|
|
980
|
-
'Signet.compact line
|
|
1031
|
+
'Signet.compact line 459 char 12') },
|
|
981
1032
|
mpcResponseKey_0);
|
|
982
1033
|
}
|
|
983
1034
|
_verifyAttestedOutputV1_0(serializedOutput_0,
|
|
@@ -985,7 +1036,7 @@ export class Contract {
|
|
|
985
1036
|
attestedOutputHash_0)
|
|
986
1037
|
{
|
|
987
1038
|
const lengthMatches_0 = attestedOutputLength_0 === 1n;
|
|
988
|
-
const hashMatches_0 = this.
|
|
1039
|
+
const hashMatches_0 = this._equal_4(attestedOutputHash_0,
|
|
989
1040
|
this._calculateAttestedOutputHashV1_1(serializedOutput_0));
|
|
990
1041
|
return lengthMatches_0 && hashMatches_0;
|
|
991
1042
|
}
|
|
@@ -994,7 +1045,7 @@ export class Contract {
|
|
|
994
1045
|
attestedOutputHash_0)
|
|
995
1046
|
{
|
|
996
1047
|
const lengthMatches_0 = attestedOutputLength_0 === 2n;
|
|
997
|
-
const hashMatches_0 = this.
|
|
1048
|
+
const hashMatches_0 = this._equal_5(attestedOutputHash_0,
|
|
998
1049
|
this._calculateAttestedOutputHashV1_2(serializedOutput_0));
|
|
999
1050
|
return lengthMatches_0 && hashMatches_0;
|
|
1000
1051
|
}
|
|
@@ -1003,7 +1054,7 @@ export class Contract {
|
|
|
1003
1054
|
attestedOutputHash_0)
|
|
1004
1055
|
{
|
|
1005
1056
|
const lengthMatches_0 = attestedOutputLength_0 === 0n;
|
|
1006
|
-
const hashMatches_0 = this.
|
|
1057
|
+
const hashMatches_0 = this._equal_6(attestedOutputHash_0,
|
|
1007
1058
|
this._calculateAttestedOutputHashV1_3(serializedOutput_0));
|
|
1008
1059
|
return lengthMatches_0 && hashMatches_0;
|
|
1009
1060
|
}
|
|
@@ -1012,7 +1063,7 @@ export class Contract {
|
|
|
1012
1063
|
attestedOutputHash_0)
|
|
1013
1064
|
{
|
|
1014
1065
|
const lengthMatches_0 = attestedOutputLength_0 === 32n;
|
|
1015
|
-
const hashMatches_0 = this.
|
|
1066
|
+
const hashMatches_0 = this._equal_7(attestedOutputHash_0,
|
|
1016
1067
|
this._calculateAttestedOutputHashV1_4(serializedOutput_0));
|
|
1017
1068
|
return lengthMatches_0 && hashMatches_0;
|
|
1018
1069
|
}
|
|
@@ -1056,7 +1107,7 @@ export class Contract {
|
|
|
1056
1107
|
let t_1, t_2;
|
|
1057
1108
|
return [((t1) => {
|
|
1058
1109
|
if (t1 > 255n) {
|
|
1059
|
-
throw new __compactRuntime.CompactError('Signet.compact line
|
|
1110
|
+
throw new __compactRuntime.CompactError('Signet.compact line 601 char 10: cast from Field or Uint value to smaller Uint value failed: ' + t1 + ' is greater than 255');
|
|
1060
1111
|
}
|
|
1061
1112
|
return t1;
|
|
1062
1113
|
})(acc_0[0] + 1n),
|
|
@@ -1091,7 +1142,7 @@ export class Contract {
|
|
|
1091
1142
|
let t_3;
|
|
1092
1143
|
return [((t1) => {
|
|
1093
1144
|
if (t1 > 65535n) {
|
|
1094
|
-
throw new __compactRuntime.CompactError('Signet.compact line
|
|
1145
|
+
throw new __compactRuntime.CompactError('Signet.compact line 628 char 10: cast from Field or Uint value to smaller Uint value failed: ' + t1 + ' is greater than 65535');
|
|
1095
1146
|
}
|
|
1096
1147
|
return t1;
|
|
1097
1148
|
})(acc_1[0] + 1n),
|
|
@@ -1111,7 +1162,7 @@ export class Contract {
|
|
|
1111
1162
|
let t_4;
|
|
1112
1163
|
return [((t1) => {
|
|
1113
1164
|
if (t1 > 255n) {
|
|
1114
|
-
throw new __compactRuntime.CompactError('Signet.compact line
|
|
1165
|
+
throw new __compactRuntime.CompactError('Signet.compact line 639 char 11: cast from Field or Uint value to smaller Uint value failed: ' + t1 + ' is greater than 255');
|
|
1115
1166
|
}
|
|
1116
1167
|
return t1;
|
|
1117
1168
|
})(acc_2[0] + 1n),
|
|
@@ -1130,7 +1181,7 @@ export class Contract {
|
|
|
1130
1181
|
let t_5;
|
|
1131
1182
|
return [((t1) => {
|
|
1132
1183
|
if (t1 > 255n) {
|
|
1133
|
-
throw new __compactRuntime.CompactError('Signet.compact line
|
|
1184
|
+
throw new __compactRuntime.CompactError('Signet.compact line 648 char 22: cast from Field or Uint value to smaller Uint value failed: ' + t1 + ' is greater than 255');
|
|
1134
1185
|
}
|
|
1135
1186
|
return t1;
|
|
1136
1187
|
})(keyAcc_0[0]
|
|
@@ -1172,7 +1223,7 @@ export class Contract {
|
|
|
1172
1223
|
let t_1, t_2;
|
|
1173
1224
|
return [((t1) => {
|
|
1174
1225
|
if (t1 > 255n) {
|
|
1175
|
-
throw new __compactRuntime.CompactError('Signet.compact line
|
|
1226
|
+
throw new __compactRuntime.CompactError('Signet.compact line 601 char 10: cast from Field or Uint value to smaller Uint value failed: ' + t1 + ' is greater than 255');
|
|
1176
1227
|
}
|
|
1177
1228
|
return t1;
|
|
1178
1229
|
})(acc_0[0] + 1n),
|
|
@@ -1207,7 +1258,7 @@ export class Contract {
|
|
|
1207
1258
|
let t_3;
|
|
1208
1259
|
return [((t1) => {
|
|
1209
1260
|
if (t1 > 65535n) {
|
|
1210
|
-
throw new __compactRuntime.CompactError('Signet.compact line
|
|
1261
|
+
throw new __compactRuntime.CompactError('Signet.compact line 628 char 10: cast from Field or Uint value to smaller Uint value failed: ' + t1 + ' is greater than 65535');
|
|
1211
1262
|
}
|
|
1212
1263
|
return t1;
|
|
1213
1264
|
})(acc_1[0] + 1n),
|
|
@@ -1227,7 +1278,7 @@ export class Contract {
|
|
|
1227
1278
|
let t_4;
|
|
1228
1279
|
return [((t1) => {
|
|
1229
1280
|
if (t1 > 255n) {
|
|
1230
|
-
throw new __compactRuntime.CompactError('Signet.compact line
|
|
1281
|
+
throw new __compactRuntime.CompactError('Signet.compact line 639 char 11: cast from Field or Uint value to smaller Uint value failed: ' + t1 + ' is greater than 255');
|
|
1231
1282
|
}
|
|
1232
1283
|
return t1;
|
|
1233
1284
|
})(acc_2[0] + 1n),
|
|
@@ -1246,7 +1297,7 @@ export class Contract {
|
|
|
1246
1297
|
let t_5;
|
|
1247
1298
|
return [((t1) => {
|
|
1248
1299
|
if (t1 > 255n) {
|
|
1249
|
-
throw new __compactRuntime.CompactError('Signet.compact line
|
|
1300
|
+
throw new __compactRuntime.CompactError('Signet.compact line 648 char 22: cast from Field or Uint value to smaller Uint value failed: ' + t1 + ' is greater than 255');
|
|
1250
1301
|
}
|
|
1251
1302
|
return t1;
|
|
1252
1303
|
})(keyAcc_0[0]
|
|
@@ -1307,7 +1358,7 @@ export class Contract {
|
|
|
1307
1358
|
_numericAbiWord_0(value_0) {
|
|
1308
1359
|
const le_0 = Array.from(__compactRuntime.convertBigintToBytes(16,
|
|
1309
1360
|
value_0,
|
|
1310
|
-
'Signet.compact line
|
|
1361
|
+
'Signet.compact line 698 char 17'),
|
|
1311
1362
|
BigInt);
|
|
1312
1363
|
return Uint8Array.from([...Array.from(new Uint8Array(16), BigInt),
|
|
1313
1364
|
le_0[15],
|
|
@@ -1389,7 +1440,7 @@ export class Contract {
|
|
|
1389
1440
|
v_0[31]);
|
|
1390
1441
|
return ((t1) => {
|
|
1391
1442
|
if (t1 > 340282366920938463463374607431768211455n) {
|
|
1392
|
-
throw new __compactRuntime.CompactError('Signet.compact line
|
|
1443
|
+
throw new __compactRuntime.CompactError('Signet.compact line 750 char 12: cast from Field or Uint value to smaller Uint value failed: ' + t1 + ' is greater than 340282366920938463463374607431768211455');
|
|
1393
1444
|
}
|
|
1394
1445
|
return t1;
|
|
1395
1446
|
})(b15_0);
|
|
@@ -1401,7 +1452,7 @@ export class Contract {
|
|
|
1401
1452
|
32,
|
|
1402
1453
|
x_0,
|
|
1403
1454
|
'Uint<0..340282366920938463463374607431768211456>',
|
|
1404
|
-
'Signet.compact line
|
|
1455
|
+
'Signet.compact line 761 char 12');
|
|
1405
1456
|
}
|
|
1406
1457
|
_abiWordToBool_0(word_0) {
|
|
1407
1458
|
__compactRuntime.assert(__compactRuntime.convertBytesToUint(52435875175126190479447740508185965837690552500527637822603658699938581184512n,
|
|
@@ -1409,7 +1460,7 @@ export class Contract {
|
|
|
1409
1460
|
((e, i) => e.slice(i, i+31))(word_0,
|
|
1410
1461
|
Number(0n)),
|
|
1411
1462
|
'Field',
|
|
1412
|
-
'Signet.compact line
|
|
1463
|
+
'Signet.compact line 767 char 12')
|
|
1413
1464
|
===
|
|
1414
1465
|
0n,
|
|
1415
1466
|
'ABI word is not a canonical Boolean');
|
|
@@ -1418,7 +1469,7 @@ export class Contract {
|
|
|
1418
1469
|
((e, i) => e.slice(i, i+1))(word_0,
|
|
1419
1470
|
Number(31n)),
|
|
1420
1471
|
'Field',
|
|
1421
|
-
'Signet.compact line
|
|
1472
|
+
'Signet.compact line 768 char 18');
|
|
1422
1473
|
__compactRuntime.assert(last_0 === 0n || last_0 === 1n,
|
|
1423
1474
|
'ABI word is not a canonical Boolean');
|
|
1424
1475
|
return last_0 === 1n;
|
|
@@ -1495,7 +1546,10 @@ export class Contract {
|
|
|
1495
1546
|
request_0.outputDeserializationSchema);
|
|
1496
1547
|
}
|
|
1497
1548
|
_equal_0(x0, y0) {
|
|
1498
|
-
if (
|
|
1549
|
+
if (x0.identity) { return y0.identity; }
|
|
1550
|
+
if (y0.identity || x0.x != y0.x || x0.y != y0.y) {
|
|
1551
|
+
return false;
|
|
1552
|
+
}
|
|
1499
1553
|
return true;
|
|
1500
1554
|
}
|
|
1501
1555
|
_equal_1(x0, y0) {
|
|
@@ -1507,7 +1561,10 @@ export class Contract {
|
|
|
1507
1561
|
return true;
|
|
1508
1562
|
}
|
|
1509
1563
|
_equal_3(x0, y0) {
|
|
1510
|
-
if (
|
|
1564
|
+
if (x0.identity) { return y0.identity; }
|
|
1565
|
+
if (y0.identity || x0.x != y0.x || x0.y != y0.y) {
|
|
1566
|
+
return false;
|
|
1567
|
+
}
|
|
1511
1568
|
return true;
|
|
1512
1569
|
}
|
|
1513
1570
|
_equal_4(x0, y0) {
|
|
@@ -1518,6 +1575,14 @@ export class Contract {
|
|
|
1518
1575
|
if (!x0.every((x, i) => y0[i] === x)) { return false; }
|
|
1519
1576
|
return true;
|
|
1520
1577
|
}
|
|
1578
|
+
_equal_6(x0, y0) {
|
|
1579
|
+
if (!x0.every((x, i) => y0[i] === x)) { return false; }
|
|
1580
|
+
return true;
|
|
1581
|
+
}
|
|
1582
|
+
_equal_7(x0, y0) {
|
|
1583
|
+
if (!x0.every((x, i) => y0[i] === x)) { return false; }
|
|
1584
|
+
return true;
|
|
1585
|
+
}
|
|
1521
1586
|
_folder_0(f, x, a0) {
|
|
1522
1587
|
for (let i = 0; i < 0; i++) { x = f(x, a0[i]); }
|
|
1523
1588
|
return x;
|
|
@@ -1677,10 +1742,17 @@ export const pureCircuits = {
|
|
|
1677
1742
|
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
1743
|
__compactRuntime.typeError('verifyRespondBidirectionalAttestationV1',
|
|
1679
1744
|
'argument 1',
|
|
1680
|
-
'Signet.compact line
|
|
1745
|
+
'Signet.compact line 441 char 3',
|
|
1681
1746
|
'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
1747
|
respondBidirectionalEvent_0)
|
|
1683
1748
|
}
|
|
1749
|
+
if (!(__compactRuntime.isValidSecp256k1Point(mpcResponseKey_0))) {
|
|
1750
|
+
__compactRuntime.typeError('verifyRespondBidirectionalAttestationV1',
|
|
1751
|
+
'argument 2',
|
|
1752
|
+
'Signet.compact line 441 char 3',
|
|
1753
|
+
'Secp256k1Point',
|
|
1754
|
+
mpcResponseKey_0)
|
|
1755
|
+
}
|
|
1684
1756
|
return _dummyContract._verifyRespondBidirectionalAttestationV1_0(respondBidirectionalEvent_0,
|
|
1685
1757
|
mpcResponseKey_0);
|
|
1686
1758
|
},
|
|
@@ -1698,7 +1770,7 @@ export const pureCircuits = {
|
|
|
1698
1770
|
if (!(addr_0.buffer instanceof ArrayBuffer && addr_0.BYTES_PER_ELEMENT === 1 && addr_0.length === 20)) {
|
|
1699
1771
|
__compactRuntime.typeError('evmAddressAbiWord',
|
|
1700
1772
|
'argument 1',
|
|
1701
|
-
'Signet.compact line
|
|
1773
|
+
'Signet.compact line 689 char 3',
|
|
1702
1774
|
'Bytes<20>',
|
|
1703
1775
|
addr_0)
|
|
1704
1776
|
}
|
|
@@ -1712,7 +1784,7 @@ export const pureCircuits = {
|
|
|
1712
1784
|
if (!(typeof(value_0) === 'bigint' && value_0 >= 0n && value_0 <= 340282366920938463463374607431768211455n)) {
|
|
1713
1785
|
__compactRuntime.typeError('numericAbiWord',
|
|
1714
1786
|
'argument 1',
|
|
1715
|
-
'Signet.compact line
|
|
1787
|
+
'Signet.compact line 695 char 3',
|
|
1716
1788
|
'Uint<0..340282366920938463463374607431768211456>',
|
|
1717
1789
|
value_0)
|
|
1718
1790
|
}
|
|
@@ -1726,7 +1798,7 @@ export const pureCircuits = {
|
|
|
1726
1798
|
if (!(typeof(value_0) === 'boolean')) {
|
|
1727
1799
|
__compactRuntime.typeError('boolAbiWord',
|
|
1728
1800
|
'argument 1',
|
|
1729
|
-
'Signet.compact line
|
|
1801
|
+
'Signet.compact line 708 char 3',
|
|
1730
1802
|
'Boolean',
|
|
1731
1803
|
value_0)
|
|
1732
1804
|
}
|
|
@@ -1740,7 +1812,7 @@ export const pureCircuits = {
|
|
|
1740
1812
|
if (!(word_0.buffer instanceof ArrayBuffer && word_0.BYTES_PER_ELEMENT === 1 && word_0.length === 32)) {
|
|
1741
1813
|
__compactRuntime.typeError('abiWordToUint128',
|
|
1742
1814
|
'argument 1',
|
|
1743
|
-
'Signet.compact line
|
|
1815
|
+
'Signet.compact line 716 char 3',
|
|
1744
1816
|
'Bytes<32>',
|
|
1745
1817
|
word_0)
|
|
1746
1818
|
}
|
|
@@ -1754,7 +1826,7 @@ export const pureCircuits = {
|
|
|
1754
1826
|
if (!(x_0.buffer instanceof ArrayBuffer && x_0.BYTES_PER_ELEMENT === 1 && x_0.length === 32)) {
|
|
1755
1827
|
__compactRuntime.typeError('checkedTruncationU128',
|
|
1756
1828
|
'argument 1',
|
|
1757
|
-
'Signet.compact line
|
|
1829
|
+
'Signet.compact line 757 char 3',
|
|
1758
1830
|
'Bytes<32>',
|
|
1759
1831
|
x_0)
|
|
1760
1832
|
}
|
|
@@ -1768,7 +1840,7 @@ export const pureCircuits = {
|
|
|
1768
1840
|
if (!(word_0.buffer instanceof ArrayBuffer && word_0.BYTES_PER_ELEMENT === 1 && word_0.length === 32)) {
|
|
1769
1841
|
__compactRuntime.typeError('abiWordToBool',
|
|
1770
1842
|
'argument 1',
|
|
1771
|
-
'Signet.compact line
|
|
1843
|
+
'Signet.compact line 766 char 3',
|
|
1772
1844
|
'Bytes<32>',
|
|
1773
1845
|
word_0)
|
|
1774
1846
|
}
|
|
@@ -1985,6 +2057,13 @@ export const pureCircuits = {
|
|
|
1985
2057
|
'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>>>',
|
|
1986
2058
|
respondBidirectionalEvent_0)
|
|
1987
2059
|
}
|
|
2060
|
+
if (!(__compactRuntime.isValidSecp256k1Point(mpcResponseKey_0))) {
|
|
2061
|
+
__compactRuntime.typeError('verifyRespondBidirectionalEvent0',
|
|
2062
|
+
'argument 3',
|
|
2063
|
+
'circuits.compact line 117 char 1',
|
|
2064
|
+
'Secp256k1Point',
|
|
2065
|
+
mpcResponseKey_0)
|
|
2066
|
+
}
|
|
1988
2067
|
return _dummyContract._verifyRespondBidirectionalEvent0_0(serializedOutput_0,
|
|
1989
2068
|
respondBidirectionalEvent_0,
|
|
1990
2069
|
mpcResponseKey_0);
|
|
@@ -2010,6 +2089,13 @@ export const pureCircuits = {
|
|
|
2010
2089
|
'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>>>',
|
|
2011
2090
|
respondBidirectionalEvent_0)
|
|
2012
2091
|
}
|
|
2092
|
+
if (!(__compactRuntime.isValidSecp256k1Point(mpcResponseKey_0))) {
|
|
2093
|
+
__compactRuntime.typeError('verifyRespondBidirectionalEvent32',
|
|
2094
|
+
'argument 3',
|
|
2095
|
+
'circuits.compact line 129 char 1',
|
|
2096
|
+
'Secp256k1Point',
|
|
2097
|
+
mpcResponseKey_0)
|
|
2098
|
+
}
|
|
2013
2099
|
return _dummyContract._verifyRespondBidirectionalEvent32_0(serializedOutput_0,
|
|
2014
2100
|
respondBidirectionalEvent_0,
|
|
2015
2101
|
mpcResponseKey_0);
|
|
@@ -2029,8 +2115,36 @@ export const pureCircuits = {
|
|
|
2029
2115
|
return _dummyContract._constructSignBidirectionalEventV1_1_0_0_34_0(request_0);
|
|
2030
2116
|
}
|
|
2031
2117
|
};
|
|
2032
|
-
export const contractReferenceLocations =
|
|
2033
|
-
{ tag: 'publicLedgerArray', indices: { } };
|
|
2034
2118
|
export const expectedVk = {};
|
|
2035
2119
|
|
|
2120
|
+
export const circuitSignatures = {
|
|
2121
|
+
'calculateRequestIdV1': {pure: true, provable: false, argumentTypes: [{tag: 'Struct', name: 'RequestIdPreimageV1', elements: [{name: 'keyVersion', type: {tag: 'Uint', maxval: '255'}}, {name: 'sender', type: {tag: 'Struct', name: 'ContractAddress', elements: [{name: 'bytes', type: {tag: 'Bytes', length: 32}}]}}, {name: 'path', type: {tag: 'Bytes', length: 32}}, {name: 'algo', type: {tag: 'Enum', name: 'MPCSignatureAlgorithm', elements: ['ecdsa', 'reserved']}}, {name: 'txParamType', type: {tag: 'Enum', name: 'TxParamType', elements: ['evmType2', 'reserved']}}, {name: 'txParamsDigest', type: {tag: 'Bytes', length: 32}}, {name: 'executionDest', type: {tag: 'Bytes', length: 64}}]}], resultType: {tag: 'Alias', name: 'RequestId', type: {tag: 'Bytes', length: 32}}},
|
|
2122
|
+
'constructSignBidirectionalEventNotificationV1': {pure: true, provable: false, argumentTypes: [{tag: 'Struct', name: 'ContractAddress', elements: [{name: 'bytes', type: {tag: 'Bytes', length: 32}}]}, {tag: 'Uint', maxval: '255'}, {tag: 'Vector', length: 4, type: {tag: 'Uint', maxval: '255'}}], resultType: {tag: 'Struct', name: 'SignBidirectionalEventNotification', elements: [{name: 'version', type: {tag: 'Uint', maxval: '255'}}, {name: 'payload', type: {tag: 'Bytes', length: 128}}]}},
|
|
2123
|
+
'calculateSignetAttestationDigestV1': {pure: true, provable: false, argumentTypes: [{tag: 'Alias', name: 'RequestId', type: {tag: 'Bytes', length: 32}}, {tag: 'Uint', maxval: '18446744073709551615'}, {tag: 'Enum', name: 'OutputKind', elements: ['executed', 'failed', 'unviable']}, {tag: 'Uint', maxval: '18446744073709551615'}, {tag: 'Bytes', length: 32}], resultType: {tag: 'Bytes', length: 32}},
|
|
2124
|
+
'verifyRespondBidirectionalAttestationV1': {pure: true, provable: false, argumentTypes: [{tag: 'Struct', name: 'RespondBidirectionalEventV1', elements: [{name: 'requestId', type: {tag: 'Alias', name: 'RequestId', type: {tag: 'Bytes', length: 32}}}, {name: 'blockHeight', type: {tag: 'Uint', maxval: '18446744073709551615'}}, {name: 'outputKind', type: {tag: 'Enum', name: 'OutputKind', elements: ['executed', 'failed', 'unviable']}}, {name: 'serializedOutputLength', type: {tag: 'Uint', maxval: '18446744073709551615'}}, {name: 'outputHash', type: {tag: 'Bytes', length: 32}}, {name: 'digest', type: {tag: 'Bytes', length: 32}}, {name: 'signature', type: {tag: 'Struct', name: 'Signature', elements: [{name: 'bigR', type: {tag: 'Struct', name: 'AffinePoint', elements: [{name: 'x', type: {tag: 'Bytes', length: 32}}, {name: 'y', type: {tag: 'Bytes', length: 32}}]}}, {name: 's', type: {tag: 'Bytes', length: 32}}, {name: 'recoveryId', type: {tag: 'Uint', maxval: '255'}}]}}]}, {tag: 'Secp256k1Point'}], resultType: {tag: 'Boolean'}},
|
|
2125
|
+
'ethereumCaip2Id': {pure: true, provable: false, argumentTypes: [], resultType: {tag: 'Bytes', length: 64}},
|
|
2126
|
+
'evmAddressAbiWord': {pure: true, provable: false, argumentTypes: [{tag: 'Bytes', length: 20}], resultType: {tag: 'Bytes', length: 32}},
|
|
2127
|
+
'numericAbiWord': {pure: true, provable: false, argumentTypes: [{tag: 'Uint', maxval: '340282366920938463463374607431768211455'}], resultType: {tag: 'Bytes', length: 32}},
|
|
2128
|
+
'boolAbiWord': {pure: true, provable: false, argumentTypes: [{tag: 'Boolean'}], resultType: {tag: 'Bytes', length: 32}},
|
|
2129
|
+
'abiWordToUint128': {pure: true, provable: false, argumentTypes: [{tag: 'Bytes', length: 32}], resultType: {tag: 'Uint', maxval: '340282366920938463463374607431768211455'}},
|
|
2130
|
+
'checkedTruncationU128': {pure: true, provable: false, argumentTypes: [{tag: 'Bytes', length: 32}], resultType: {tag: 'Uint', maxval: '340282366920938463463374607431768211455'}},
|
|
2131
|
+
'abiWordToBool': {pure: true, provable: false, argumentTypes: [{tag: 'Bytes', length: 32}], resultType: {tag: 'Boolean'}},
|
|
2132
|
+
'calculateAttestedOutputHash0': {pure: true, provable: false, argumentTypes: [{tag: 'Bytes', length: 0}], resultType: {tag: 'Bytes', length: 32}},
|
|
2133
|
+
'calculateAttestedOutputHash1': {pure: true, provable: false, argumentTypes: [{tag: 'Bytes', length: 1}], resultType: {tag: 'Bytes', length: 32}},
|
|
2134
|
+
'calculateAttestedOutputHash2': {pure: true, provable: false, argumentTypes: [{tag: 'Bytes', length: 2}], resultType: {tag: 'Bytes', length: 32}},
|
|
2135
|
+
'calculateAttestedOutputHash32': {pure: true, provable: false, argumentTypes: [{tag: 'Bytes', length: 32}], resultType: {tag: 'Bytes', length: 32}},
|
|
2136
|
+
'calculateAttestedOutputHash100': {pure: true, provable: false, argumentTypes: [{tag: 'Bytes', length: 100}], resultType: {tag: 'Bytes', length: 32}},
|
|
2137
|
+
'verifyAttestedOutput1': {pure: true, provable: false, argumentTypes: [{tag: 'Bytes', length: 1}, {tag: 'Uint', maxval: '18446744073709551615'}, {tag: 'Bytes', length: 32}], resultType: {tag: 'Boolean'}},
|
|
2138
|
+
'verifyAttestedOutput2': {pure: true, provable: false, argumentTypes: [{tag: 'Bytes', length: 2}, {tag: 'Uint', maxval: '18446744073709551615'}, {tag: 'Bytes', length: 32}], resultType: {tag: 'Boolean'}},
|
|
2139
|
+
'calculateEvmType2TxParamsDigestV1_1_0_0': {pure: true, provable: false, argumentTypes: [{tag: 'Struct', name: 'EvmType2TxParams', elements: [{name: 'chainId', type: {tag: 'Uint', maxval: '18446744073709551615'}}, {name: 'nonce', type: {tag: 'Uint', maxval: '18446744073709551615'}}, {name: 'maxPriorityFeePerGas', type: {tag: 'Uint', maxval: '340282366920938463463374607431768211455'}}, {name: 'maxFeePerGas', type: {tag: 'Uint', maxval: '340282366920938463463374607431768211455'}}, {name: 'gasLimit', type: {tag: 'Uint', maxval: '18446744073709551615'}}, {name: 'to', type: {tag: 'Bytes', length: 20}}, {name: 'value', type: {tag: 'Uint', maxval: '340282366920938463463374607431768211455'}}, {name: 'calldata', type: {tag: 'Struct', name: 'Maybe', elements: [{name: 'is_some', type: {tag: 'Boolean'}}, {name: 'value', type: {tag: 'Struct', name: 'EvmCalldata', elements: [{name: 'selector', type: {tag: 'Bytes', length: 4}}, {name: 'noWords', type: {tag: 'Uint', maxval: '65535'}}, {name: 'words', type: {tag: 'Vector', length: 1, type: {tag: 'Bytes', length: 32}}}]}}]}}, {name: 'accessListEntryCount', type: {tag: 'Uint', maxval: '255'}}, {name: 'accessList', type: {tag: 'Tuple', types: []}}]}], resultType: {tag: 'Bytes', length: 32}},
|
|
2140
|
+
'calculateEvmType2TxParamsDigestV1_2_1_2': {pure: true, provable: false, argumentTypes: [{tag: 'Struct', name: 'EvmType2TxParams', elements: [{name: 'chainId', type: {tag: 'Uint', maxval: '18446744073709551615'}}, {name: 'nonce', type: {tag: 'Uint', maxval: '18446744073709551615'}}, {name: 'maxPriorityFeePerGas', type: {tag: 'Uint', maxval: '340282366920938463463374607431768211455'}}, {name: 'maxFeePerGas', type: {tag: 'Uint', maxval: '340282366920938463463374607431768211455'}}, {name: 'gasLimit', type: {tag: 'Uint', maxval: '18446744073709551615'}}, {name: 'to', type: {tag: 'Bytes', length: 20}}, {name: 'value', type: {tag: 'Uint', maxval: '340282366920938463463374607431768211455'}}, {name: 'calldata', type: {tag: 'Struct', name: 'Maybe', elements: [{name: 'is_some', type: {tag: 'Boolean'}}, {name: 'value', type: {tag: 'Struct', name: 'EvmCalldata', elements: [{name: 'selector', type: {tag: 'Bytes', length: 4}}, {name: 'noWords', type: {tag: 'Uint', maxval: '65535'}}, {name: 'words', type: {tag: 'Vector', length: 2, type: {tag: 'Bytes', length: 32}}}]}}]}}, {name: 'accessListEntryCount', type: {tag: 'Uint', maxval: '255'}}, {name: 'accessList', type: {tag: 'Vector', length: 1, type: {tag: 'Struct', name: 'EvmAccessListEntry', elements: [{name: 'address', type: {tag: 'Bytes', length: 20}}, {name: 'storageKeyCount', type: {tag: 'Uint', maxval: '255'}}, {name: 'storageKeys', type: {tag: 'Vector', length: 2, type: {tag: 'Bytes', length: 32}}}]}}}]}], resultType: {tag: 'Bytes', length: 32}},
|
|
2141
|
+
'calculateEvmType2RequestIdV1_1_0_0_34': {pure: true, provable: false, argumentTypes: [{tag: 'Struct', name: 'SignBidirectionalEventV1', elements: [{name: 'keyVersion', type: {tag: 'Uint', maxval: '255'}}, {name: 'sender', type: {tag: 'Struct', name: 'ContractAddress', elements: [{name: 'bytes', type: {tag: 'Bytes', length: 32}}]}}, {name: 'path', type: {tag: 'Bytes', length: 32}}, {name: 'algo', type: {tag: 'Enum', name: 'MPCSignatureAlgorithm', elements: ['ecdsa', 'reserved']}}, {name: 'txParamType', type: {tag: 'Enum', name: 'TxParamType', elements: ['evmType2', 'reserved']}}, {name: 'txParams', type: {tag: 'Struct', name: 'EvmType2TxParams', elements: [{name: 'chainId', type: {tag: 'Uint', maxval: '18446744073709551615'}}, {name: 'nonce', type: {tag: 'Uint', maxval: '18446744073709551615'}}, {name: 'maxPriorityFeePerGas', type: {tag: 'Uint', maxval: '340282366920938463463374607431768211455'}}, {name: 'maxFeePerGas', type: {tag: 'Uint', maxval: '340282366920938463463374607431768211455'}}, {name: 'gasLimit', type: {tag: 'Uint', maxval: '18446744073709551615'}}, {name: 'to', type: {tag: 'Bytes', length: 20}}, {name: 'value', type: {tag: 'Uint', maxval: '340282366920938463463374607431768211455'}}, {name: 'calldata', type: {tag: 'Struct', name: 'Maybe', elements: [{name: 'is_some', type: {tag: 'Boolean'}}, {name: 'value', type: {tag: 'Struct', name: 'EvmCalldata', elements: [{name: 'selector', type: {tag: 'Bytes', length: 4}}, {name: 'noWords', type: {tag: 'Uint', maxval: '65535'}}, {name: 'words', type: {tag: 'Vector', length: 1, type: {tag: 'Bytes', length: 32}}}]}}]}}, {name: 'accessListEntryCount', type: {tag: 'Uint', maxval: '255'}}, {name: 'accessList', type: {tag: 'Tuple', types: []}}]}}, {name: 'executionDest', type: {tag: 'Bytes', length: 64}}, {name: 'signatureDest', type: {tag: 'Enum', name: 'MPCDestination', elements: ['unused', 'reserved']}}, {name: 'params', type: {tag: 'Bytes', length: 64}}, {name: 'outputDeserializationSchema', type: {tag: 'Bytes', length: 34}}, {name: 'respondSerializationSchema', type: {tag: 'Bytes', length: 0}}]}], resultType: {tag: 'Alias', name: 'RequestId', type: {tag: 'Bytes', length: 32}}},
|
|
2142
|
+
'calculateEvmType2RequestIdV1_2_1_2_34': {pure: true, provable: false, argumentTypes: [{tag: 'Struct', name: 'SignBidirectionalEventV1', elements: [{name: 'keyVersion', type: {tag: 'Uint', maxval: '255'}}, {name: 'sender', type: {tag: 'Struct', name: 'ContractAddress', elements: [{name: 'bytes', type: {tag: 'Bytes', length: 32}}]}}, {name: 'path', type: {tag: 'Bytes', length: 32}}, {name: 'algo', type: {tag: 'Enum', name: 'MPCSignatureAlgorithm', elements: ['ecdsa', 'reserved']}}, {name: 'txParamType', type: {tag: 'Enum', name: 'TxParamType', elements: ['evmType2', 'reserved']}}, {name: 'txParams', type: {tag: 'Struct', name: 'EvmType2TxParams', elements: [{name: 'chainId', type: {tag: 'Uint', maxval: '18446744073709551615'}}, {name: 'nonce', type: {tag: 'Uint', maxval: '18446744073709551615'}}, {name: 'maxPriorityFeePerGas', type: {tag: 'Uint', maxval: '340282366920938463463374607431768211455'}}, {name: 'maxFeePerGas', type: {tag: 'Uint', maxval: '340282366920938463463374607431768211455'}}, {name: 'gasLimit', type: {tag: 'Uint', maxval: '18446744073709551615'}}, {name: 'to', type: {tag: 'Bytes', length: 20}}, {name: 'value', type: {tag: 'Uint', maxval: '340282366920938463463374607431768211455'}}, {name: 'calldata', type: {tag: 'Struct', name: 'Maybe', elements: [{name: 'is_some', type: {tag: 'Boolean'}}, {name: 'value', type: {tag: 'Struct', name: 'EvmCalldata', elements: [{name: 'selector', type: {tag: 'Bytes', length: 4}}, {name: 'noWords', type: {tag: 'Uint', maxval: '65535'}}, {name: 'words', type: {tag: 'Vector', length: 2, type: {tag: 'Bytes', length: 32}}}]}}]}}, {name: 'accessListEntryCount', type: {tag: 'Uint', maxval: '255'}}, {name: 'accessList', type: {tag: 'Vector', length: 1, type: {tag: 'Struct', name: 'EvmAccessListEntry', elements: [{name: 'address', type: {tag: 'Bytes', length: 20}}, {name: 'storageKeyCount', type: {tag: 'Uint', maxval: '255'}}, {name: 'storageKeys', type: {tag: 'Vector', length: 2, type: {tag: 'Bytes', length: 32}}}]}}}]}}, {name: 'executionDest', type: {tag: 'Bytes', length: 64}}, {name: 'signatureDest', type: {tag: 'Enum', name: 'MPCDestination', elements: ['unused', 'reserved']}}, {name: 'params', type: {tag: 'Bytes', length: 64}}, {name: 'outputDeserializationSchema', type: {tag: 'Bytes', length: 34}}, {name: 'respondSerializationSchema', type: {tag: 'Bytes', length: 0}}]}], resultType: {tag: 'Alias', name: 'RequestId', type: {tag: 'Bytes', length: 32}}},
|
|
2143
|
+
'verifyRespondBidirectionalEvent0': {pure: true, provable: false, argumentTypes: [{tag: 'Bytes', length: 0}, {tag: 'Struct', name: 'RespondBidirectionalEventV1', elements: [{name: 'requestId', type: {tag: 'Alias', name: 'RequestId', type: {tag: 'Bytes', length: 32}}}, {name: 'blockHeight', type: {tag: 'Uint', maxval: '18446744073709551615'}}, {name: 'outputKind', type: {tag: 'Enum', name: 'OutputKind', elements: ['executed', 'failed', 'unviable']}}, {name: 'serializedOutputLength', type: {tag: 'Uint', maxval: '18446744073709551615'}}, {name: 'outputHash', type: {tag: 'Bytes', length: 32}}, {name: 'digest', type: {tag: 'Bytes', length: 32}}, {name: 'signature', type: {tag: 'Struct', name: 'Signature', elements: [{name: 'bigR', type: {tag: 'Struct', name: 'AffinePoint', elements: [{name: 'x', type: {tag: 'Bytes', length: 32}}, {name: 'y', type: {tag: 'Bytes', length: 32}}]}}, {name: 's', type: {tag: 'Bytes', length: 32}}, {name: 'recoveryId', type: {tag: 'Uint', maxval: '255'}}]}}]}, {tag: 'Secp256k1Point'}], resultType: {tag: 'Boolean'}},
|
|
2144
|
+
'verifyRespondBidirectionalEvent32': {pure: true, provable: false, argumentTypes: [{tag: 'Bytes', length: 32}, {tag: 'Struct', name: 'RespondBidirectionalEventV1', elements: [{name: 'requestId', type: {tag: 'Alias', name: 'RequestId', type: {tag: 'Bytes', length: 32}}}, {name: 'blockHeight', type: {tag: 'Uint', maxval: '18446744073709551615'}}, {name: 'outputKind', type: {tag: 'Enum', name: 'OutputKind', elements: ['executed', 'failed', 'unviable']}}, {name: 'serializedOutputLength', type: {tag: 'Uint', maxval: '18446744073709551615'}}, {name: 'outputHash', type: {tag: 'Bytes', length: 32}}, {name: 'digest', type: {tag: 'Bytes', length: 32}}, {name: 'signature', type: {tag: 'Struct', name: 'Signature', elements: [{name: 'bigR', type: {tag: 'Struct', name: 'AffinePoint', elements: [{name: 'x', type: {tag: 'Bytes', length: 32}}, {name: 'y', type: {tag: 'Bytes', length: 32}}]}}, {name: 's', type: {tag: 'Bytes', length: 32}}, {name: 'recoveryId', type: {tag: 'Uint', maxval: '255'}}]}}]}, {tag: 'Secp256k1Point'}], resultType: {tag: 'Boolean'}},
|
|
2145
|
+
'constructSignBidirectionalEventV1_1_0_0_34': {pure: true, provable: false, argumentTypes: [{tag: 'Struct', name: 'SignBidirectionalEventV1', elements: [{name: 'keyVersion', type: {tag: 'Uint', maxval: '255'}}, {name: 'sender', type: {tag: 'Struct', name: 'ContractAddress', elements: [{name: 'bytes', type: {tag: 'Bytes', length: 32}}]}}, {name: 'path', type: {tag: 'Bytes', length: 32}}, {name: 'algo', type: {tag: 'Enum', name: 'MPCSignatureAlgorithm', elements: ['ecdsa', 'reserved']}}, {name: 'txParamType', type: {tag: 'Enum', name: 'TxParamType', elements: ['evmType2', 'reserved']}}, {name: 'txParams', type: {tag: 'Struct', name: 'EvmType2TxParams', elements: [{name: 'chainId', type: {tag: 'Uint', maxval: '18446744073709551615'}}, {name: 'nonce', type: {tag: 'Uint', maxval: '18446744073709551615'}}, {name: 'maxPriorityFeePerGas', type: {tag: 'Uint', maxval: '340282366920938463463374607431768211455'}}, {name: 'maxFeePerGas', type: {tag: 'Uint', maxval: '340282366920938463463374607431768211455'}}, {name: 'gasLimit', type: {tag: 'Uint', maxval: '18446744073709551615'}}, {name: 'to', type: {tag: 'Bytes', length: 20}}, {name: 'value', type: {tag: 'Uint', maxval: '340282366920938463463374607431768211455'}}, {name: 'calldata', type: {tag: 'Struct', name: 'Maybe', elements: [{name: 'is_some', type: {tag: 'Boolean'}}, {name: 'value', type: {tag: 'Struct', name: 'EvmCalldata', elements: [{name: 'selector', type: {tag: 'Bytes', length: 4}}, {name: 'noWords', type: {tag: 'Uint', maxval: '65535'}}, {name: 'words', type: {tag: 'Vector', length: 1, type: {tag: 'Bytes', length: 32}}}]}}]}}, {name: 'accessListEntryCount', type: {tag: 'Uint', maxval: '255'}}, {name: 'accessList', type: {tag: 'Tuple', types: []}}]}}, {name: 'executionDest', type: {tag: 'Bytes', length: 64}}, {name: 'signatureDest', type: {tag: 'Enum', name: 'MPCDestination', elements: ['unused', 'reserved']}}, {name: 'params', type: {tag: 'Bytes', length: 64}}, {name: 'outputDeserializationSchema', type: {tag: 'Bytes', length: 34}}, {name: 'respondSerializationSchema', type: {tag: 'Bytes', length: 0}}]}], resultType: {tag: 'Struct', name: 'SignBidirectionalEventV1', elements: [{name: 'keyVersion', type: {tag: 'Uint', maxval: '255'}}, {name: 'sender', type: {tag: 'Struct', name: 'ContractAddress', elements: [{name: 'bytes', type: {tag: 'Bytes', length: 32}}]}}, {name: 'path', type: {tag: 'Bytes', length: 32}}, {name: 'algo', type: {tag: 'Enum', name: 'MPCSignatureAlgorithm', elements: ['ecdsa', 'reserved']}}, {name: 'txParamType', type: {tag: 'Enum', name: 'TxParamType', elements: ['evmType2', 'reserved']}}, {name: 'txParams', type: {tag: 'Struct', name: 'EvmType2TxParams', elements: [{name: 'chainId', type: {tag: 'Uint', maxval: '18446744073709551615'}}, {name: 'nonce', type: {tag: 'Uint', maxval: '18446744073709551615'}}, {name: 'maxPriorityFeePerGas', type: {tag: 'Uint', maxval: '340282366920938463463374607431768211455'}}, {name: 'maxFeePerGas', type: {tag: 'Uint', maxval: '340282366920938463463374607431768211455'}}, {name: 'gasLimit', type: {tag: 'Uint', maxval: '18446744073709551615'}}, {name: 'to', type: {tag: 'Bytes', length: 20}}, {name: 'value', type: {tag: 'Uint', maxval: '340282366920938463463374607431768211455'}}, {name: 'calldata', type: {tag: 'Struct', name: 'Maybe', elements: [{name: 'is_some', type: {tag: 'Boolean'}}, {name: 'value', type: {tag: 'Struct', name: 'EvmCalldata', elements: [{name: 'selector', type: {tag: 'Bytes', length: 4}}, {name: 'noWords', type: {tag: 'Uint', maxval: '65535'}}, {name: 'words', type: {tag: 'Vector', length: 1, type: {tag: 'Bytes', length: 32}}}]}}]}}, {name: 'accessListEntryCount', type: {tag: 'Uint', maxval: '255'}}, {name: 'accessList', type: {tag: 'Tuple', types: []}}]}}, {name: 'executionDest', type: {tag: 'Bytes', length: 64}}, {name: 'signatureDest', type: {tag: 'Enum', name: 'MPCDestination', elements: ['unused', 'reserved']}}, {name: 'params', type: {tag: 'Bytes', length: 64}}, {name: 'outputDeserializationSchema', type: {tag: 'Bytes', length: 34}}, {name: 'respondSerializationSchema', type: {tag: 'Bytes', length: 0}}]}},
|
|
2146
|
+
};
|
|
2147
|
+
|
|
2148
|
+
export const declaredInterfaces = {};
|
|
2149
|
+
|
|
2036
2150
|
//# sourceMappingURL=index.js.map
|