@sig-net/midnight 0.27.0-rc.4 → 0.27.0-rc.6
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/dist/abi-serde.d.ts +18 -0
- package/dist/abi-serde.d.ts.map +1 -1
- package/dist/abi-serde.js +28 -0
- package/dist/abi-serde.js.map +1 -1
- package/dist/index.d.ts +3 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3 -2
- package/dist/index.js.map +1 -1
- package/dist/managed/compiler/contract-info.json +202 -21
- package/dist/managed/compiler/contract-manifest.json +16 -8
- package/dist/managed/contract/index.d.ts +320 -264
- package/dist/managed/contract/index.js +596 -392
- package/dist/managed/contract/index.js.map +2 -2
- package/dist/managed/zkir/assertTronExpirationWindowV1.zkir +63 -0
- package/dist/signature-requests-state-reader.js +3 -3
- package/dist/signature-requests-state-reader.js.map +1 -1
- package/dist/signet-request-id.js +5 -5
- package/dist/signet-request-id.js.map +1 -1
- package/dist/signet-request-response-reader.d.ts +2 -2
- package/dist/signet-request-response-reader.d.ts.map +1 -1
- package/dist/signet-request-response-reader.js +4 -4
- package/dist/signet-request-response-reader.js.map +1 -1
- package/dist/signet-requests.d.ts +5 -5
- package/dist/signet-requests.d.ts.map +1 -1
- package/dist/signet-requests.js +3 -3
- package/dist/signet-requests.js.map +1 -1
- package/dist/signet-tron-record-decoding.d.ts +2 -2
- package/dist/signet-tron-record-decoding.d.ts.map +1 -1
- package/dist/signet-tron-record-decoding.js +2 -2
- package/dist/signet-tron-record-decoding.js.map +1 -1
- package/dist/signet-tron-requests.d.ts +7 -7
- package/dist/signet-tron-requests.d.ts.map +1 -1
- package/dist/signet-tron-requests.js +11 -7
- package/dist/signet-tron-requests.js.map +1 -1
- package/dist/tron-node-api.d.ts +83 -0
- package/dist/tron-node-api.d.ts.map +1 -0
- package/dist/tron-node-api.js +134 -0
- package/dist/tron-node-api.js.map +1 -0
- package/dist/tron-transactions.d.ts +23 -2
- package/dist/tron-transactions.d.ts.map +1 -1
- package/dist/tron-transactions.js +19 -0
- package/dist/tron-transactions.js.map +1 -1
- package/package.json +2 -2
- package/src/Signet.compact +79 -12
- package/src/circuits.compact +29 -18
|
@@ -10,8 +10,8 @@ export var HashDomain;
|
|
|
10
10
|
HashDomain[HashDomain['evmType2TxAccessEntry'] = 4] = 'evmType2TxAccessEntry';
|
|
11
11
|
HashDomain[HashDomain['evmType2TxStorageKey'] = 5] = 'evmType2TxStorageKey';
|
|
12
12
|
HashDomain[HashDomain['attestedOutput'] = 6] = 'attestedOutput';
|
|
13
|
-
HashDomain[HashDomain['
|
|
14
|
-
HashDomain[HashDomain['
|
|
13
|
+
HashDomain[HashDomain['tronTriggerSmartContractTxHeader'] = 7] = 'tronTriggerSmartContractTxHeader';
|
|
14
|
+
HashDomain[HashDomain['tronTriggerSmartContractTxWord'] = 8] = 'tronTriggerSmartContractTxWord';
|
|
15
15
|
})(HashDomain || (HashDomain = {}));
|
|
16
16
|
|
|
17
17
|
export var OutputKind;
|
|
@@ -21,219 +21,219 @@ export var OutputKind;
|
|
|
21
21
|
OutputKind[OutputKind['unviable'] = 2] = 'unviable';
|
|
22
22
|
})(OutputKind || (OutputKind = {}));
|
|
23
23
|
|
|
24
|
-
const _descriptor_0 = new __compactRuntime.
|
|
24
|
+
const _descriptor_0 = new __compactRuntime.CompactTypeBytes(2);
|
|
25
25
|
|
|
26
|
-
const _descriptor_1 = new __compactRuntime.CompactTypeBytes(
|
|
26
|
+
const _descriptor_1 = new __compactRuntime.CompactTypeBytes(8);
|
|
27
27
|
|
|
28
|
-
|
|
28
|
+
const _descriptor_2 = new __compactRuntime.CompactTypeUnsignedInteger(18446744073709551615n, 8);
|
|
29
|
+
|
|
30
|
+
const _descriptor_3 = new __compactRuntime.CompactTypeBytes(21);
|
|
31
|
+
|
|
32
|
+
const _descriptor_4 = __compactRuntime.CompactTypeBoolean;
|
|
33
|
+
|
|
34
|
+
const _descriptor_5 = new __compactRuntime.CompactTypeBytes(4);
|
|
35
|
+
|
|
36
|
+
const _descriptor_6 = new __compactRuntime.CompactTypeUnsignedInteger(65535n, 2);
|
|
37
|
+
|
|
38
|
+
const _descriptor_7 = new __compactRuntime.CompactTypeBytes(32);
|
|
39
|
+
|
|
40
|
+
const _descriptor_8 = new __compactRuntime.CompactTypeVector(2, _descriptor_7);
|
|
41
|
+
|
|
42
|
+
class _EvmCalldata_0 {
|
|
29
43
|
alignment() {
|
|
30
|
-
return
|
|
44
|
+
return _descriptor_5.alignment().concat(_descriptor_6.alignment().concat(_descriptor_8.alignment()));
|
|
31
45
|
}
|
|
32
46
|
fromValue(value_0) {
|
|
33
47
|
return {
|
|
34
|
-
|
|
48
|
+
selector: _descriptor_5.fromValue(value_0),
|
|
49
|
+
noWords: _descriptor_6.fromValue(value_0),
|
|
50
|
+
words: _descriptor_8.fromValue(value_0)
|
|
35
51
|
}
|
|
36
52
|
}
|
|
37
53
|
toValue(value_0) {
|
|
38
|
-
return
|
|
54
|
+
return _descriptor_5.toValue(value_0.selector).concat(_descriptor_6.toValue(value_0.noWords).concat(_descriptor_8.toValue(value_0.words)));
|
|
39
55
|
}
|
|
40
56
|
}
|
|
41
57
|
|
|
42
|
-
const
|
|
43
|
-
|
|
44
|
-
const _descriptor_3 = new __compactRuntime.CompactTypeEnum(1, 1);
|
|
58
|
+
const _descriptor_9 = new _EvmCalldata_0();
|
|
45
59
|
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
const _descriptor_5 = new __compactRuntime.CompactTypeBytes(2);
|
|
49
|
-
|
|
50
|
-
const _descriptor_6 = new __compactRuntime.CompactTypeBytes(8);
|
|
51
|
-
|
|
52
|
-
const _descriptor_7 = new __compactRuntime.CompactTypeUnsignedInteger(18446744073709551615n, 8);
|
|
53
|
-
|
|
54
|
-
const _descriptor_8 = new __compactRuntime.CompactTypeBytes(21);
|
|
55
|
-
|
|
56
|
-
const _descriptor_9 = __compactRuntime.CompactTypeBoolean;
|
|
57
|
-
|
|
58
|
-
const _descriptor_10 = new __compactRuntime.CompactTypeBytes(4);
|
|
59
|
-
|
|
60
|
-
const _descriptor_11 = new __compactRuntime.CompactTypeUnsignedInteger(65535n, 2);
|
|
61
|
-
|
|
62
|
-
const _descriptor_12 = new __compactRuntime.CompactTypeVector(1, _descriptor_1);
|
|
63
|
-
|
|
64
|
-
class _EvmCalldata_0 {
|
|
60
|
+
class _Maybe_0 {
|
|
65
61
|
alignment() {
|
|
66
|
-
return
|
|
62
|
+
return _descriptor_4.alignment().concat(_descriptor_9.alignment());
|
|
67
63
|
}
|
|
68
64
|
fromValue(value_0) {
|
|
69
65
|
return {
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
words: _descriptor_12.fromValue(value_0)
|
|
66
|
+
is_some: _descriptor_4.fromValue(value_0),
|
|
67
|
+
value: _descriptor_9.fromValue(value_0)
|
|
73
68
|
}
|
|
74
69
|
}
|
|
75
70
|
toValue(value_0) {
|
|
76
|
-
return
|
|
71
|
+
return _descriptor_4.toValue(value_0.is_some).concat(_descriptor_9.toValue(value_0.value));
|
|
77
72
|
}
|
|
78
73
|
}
|
|
79
74
|
|
|
80
|
-
const
|
|
75
|
+
const _descriptor_10 = new _Maybe_0();
|
|
81
76
|
|
|
82
|
-
class
|
|
77
|
+
class _TronTriggerSmartContractTxParams_0 {
|
|
83
78
|
alignment() {
|
|
84
|
-
return
|
|
79
|
+
return _descriptor_0.alignment().concat(_descriptor_1.alignment().concat(_descriptor_2.alignment().concat(_descriptor_2.alignment().concat(_descriptor_2.alignment().concat(_descriptor_3.alignment().concat(_descriptor_2.alignment().concat(_descriptor_10.alignment())))))));
|
|
85
80
|
}
|
|
86
81
|
fromValue(value_0) {
|
|
87
82
|
return {
|
|
88
|
-
|
|
89
|
-
|
|
83
|
+
refBlockBytes: _descriptor_0.fromValue(value_0),
|
|
84
|
+
refBlockHash: _descriptor_1.fromValue(value_0),
|
|
85
|
+
timestamp: _descriptor_2.fromValue(value_0),
|
|
86
|
+
expiration: _descriptor_2.fromValue(value_0),
|
|
87
|
+
feeLimit: _descriptor_2.fromValue(value_0),
|
|
88
|
+
contractAddress: _descriptor_3.fromValue(value_0),
|
|
89
|
+
callValue: _descriptor_2.fromValue(value_0),
|
|
90
|
+
calldata: _descriptor_10.fromValue(value_0)
|
|
90
91
|
}
|
|
91
92
|
}
|
|
92
93
|
toValue(value_0) {
|
|
93
|
-
return
|
|
94
|
+
return _descriptor_0.toValue(value_0.refBlockBytes).concat(_descriptor_1.toValue(value_0.refBlockHash).concat(_descriptor_2.toValue(value_0.timestamp).concat(_descriptor_2.toValue(value_0.expiration).concat(_descriptor_2.toValue(value_0.feeLimit).concat(_descriptor_3.toValue(value_0.contractAddress).concat(_descriptor_2.toValue(value_0.callValue).concat(_descriptor_10.toValue(value_0.calldata))))))));
|
|
94
95
|
}
|
|
95
96
|
}
|
|
96
97
|
|
|
97
|
-
const
|
|
98
|
+
const _descriptor_11 = new _TronTriggerSmartContractTxParams_0();
|
|
99
|
+
|
|
100
|
+
const _descriptor_12 = new __compactRuntime.CompactTypeUnsignedInteger(255n, 1);
|
|
98
101
|
|
|
99
|
-
class
|
|
102
|
+
class _ContractAddress_0 {
|
|
100
103
|
alignment() {
|
|
101
|
-
return
|
|
104
|
+
return _descriptor_7.alignment();
|
|
102
105
|
}
|
|
103
106
|
fromValue(value_0) {
|
|
104
107
|
return {
|
|
105
|
-
|
|
106
|
-
refBlockHash: _descriptor_6.fromValue(value_0),
|
|
107
|
-
timestamp: _descriptor_7.fromValue(value_0),
|
|
108
|
-
expiration: _descriptor_7.fromValue(value_0),
|
|
109
|
-
feeLimit: _descriptor_7.fromValue(value_0),
|
|
110
|
-
contractAddress: _descriptor_8.fromValue(value_0),
|
|
111
|
-
callValue: _descriptor_7.fromValue(value_0),
|
|
112
|
-
calldata: _descriptor_14.fromValue(value_0)
|
|
108
|
+
bytes: _descriptor_7.fromValue(value_0)
|
|
113
109
|
}
|
|
114
110
|
}
|
|
115
111
|
toValue(value_0) {
|
|
116
|
-
return
|
|
112
|
+
return _descriptor_7.toValue(value_0.bytes);
|
|
117
113
|
}
|
|
118
114
|
}
|
|
119
115
|
|
|
120
|
-
const
|
|
121
|
-
|
|
122
|
-
const _descriptor_16 = new __compactRuntime.CompactTypeBytes(64);
|
|
116
|
+
const _descriptor_13 = new _ContractAddress_0();
|
|
123
117
|
|
|
124
|
-
const
|
|
118
|
+
const _descriptor_14 = new __compactRuntime.CompactTypeEnum(1, 1);
|
|
125
119
|
|
|
126
|
-
const
|
|
120
|
+
const _descriptor_15 = new __compactRuntime.CompactTypeEnum(1, 1);
|
|
127
121
|
|
|
128
|
-
const
|
|
122
|
+
const _descriptor_16 = new __compactRuntime.CompactTypeVector(1, _descriptor_7);
|
|
129
123
|
|
|
130
|
-
class
|
|
124
|
+
class _EvmCalldata_1 {
|
|
131
125
|
alignment() {
|
|
132
|
-
return
|
|
126
|
+
return _descriptor_5.alignment().concat(_descriptor_6.alignment().concat(_descriptor_16.alignment()));
|
|
133
127
|
}
|
|
134
128
|
fromValue(value_0) {
|
|
135
129
|
return {
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
algo: _descriptor_3.fromValue(value_0),
|
|
140
|
-
txParamType: _descriptor_4.fromValue(value_0),
|
|
141
|
-
txParams: _descriptor_15.fromValue(value_0),
|
|
142
|
-
executionDest: _descriptor_16.fromValue(value_0),
|
|
143
|
-
signatureDest: _descriptor_17.fromValue(value_0),
|
|
144
|
-
params: _descriptor_16.fromValue(value_0),
|
|
145
|
-
outputDeserializationSchema: _descriptor_18.fromValue(value_0),
|
|
146
|
-
respondSerializationSchema: _descriptor_19.fromValue(value_0)
|
|
130
|
+
selector: _descriptor_5.fromValue(value_0),
|
|
131
|
+
noWords: _descriptor_6.fromValue(value_0),
|
|
132
|
+
words: _descriptor_16.fromValue(value_0)
|
|
147
133
|
}
|
|
148
134
|
}
|
|
149
135
|
toValue(value_0) {
|
|
150
|
-
return
|
|
136
|
+
return _descriptor_5.toValue(value_0.selector).concat(_descriptor_6.toValue(value_0.noWords).concat(_descriptor_16.toValue(value_0.words)));
|
|
151
137
|
}
|
|
152
138
|
}
|
|
153
139
|
|
|
154
|
-
const
|
|
155
|
-
|
|
156
|
-
const _descriptor_21 = new __compactRuntime.CompactTypeVector(2, _descriptor_1);
|
|
140
|
+
const _descriptor_17 = new _EvmCalldata_1();
|
|
157
141
|
|
|
158
|
-
class
|
|
142
|
+
class _Maybe_1 {
|
|
159
143
|
alignment() {
|
|
160
|
-
return
|
|
144
|
+
return _descriptor_4.alignment().concat(_descriptor_17.alignment());
|
|
161
145
|
}
|
|
162
146
|
fromValue(value_0) {
|
|
163
147
|
return {
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
words: _descriptor_21.fromValue(value_0)
|
|
148
|
+
is_some: _descriptor_4.fromValue(value_0),
|
|
149
|
+
value: _descriptor_17.fromValue(value_0)
|
|
167
150
|
}
|
|
168
151
|
}
|
|
169
152
|
toValue(value_0) {
|
|
170
|
-
return
|
|
153
|
+
return _descriptor_4.toValue(value_0.is_some).concat(_descriptor_17.toValue(value_0.value));
|
|
171
154
|
}
|
|
172
155
|
}
|
|
173
156
|
|
|
174
|
-
const
|
|
157
|
+
const _descriptor_18 = new _Maybe_1();
|
|
175
158
|
|
|
176
|
-
class
|
|
159
|
+
class _TronTriggerSmartContractTxParams_1 {
|
|
177
160
|
alignment() {
|
|
178
|
-
return
|
|
161
|
+
return _descriptor_0.alignment().concat(_descriptor_1.alignment().concat(_descriptor_2.alignment().concat(_descriptor_2.alignment().concat(_descriptor_2.alignment().concat(_descriptor_3.alignment().concat(_descriptor_2.alignment().concat(_descriptor_18.alignment())))))));
|
|
179
162
|
}
|
|
180
163
|
fromValue(value_0) {
|
|
181
164
|
return {
|
|
182
|
-
|
|
183
|
-
|
|
165
|
+
refBlockBytes: _descriptor_0.fromValue(value_0),
|
|
166
|
+
refBlockHash: _descriptor_1.fromValue(value_0),
|
|
167
|
+
timestamp: _descriptor_2.fromValue(value_0),
|
|
168
|
+
expiration: _descriptor_2.fromValue(value_0),
|
|
169
|
+
feeLimit: _descriptor_2.fromValue(value_0),
|
|
170
|
+
contractAddress: _descriptor_3.fromValue(value_0),
|
|
171
|
+
callValue: _descriptor_2.fromValue(value_0),
|
|
172
|
+
calldata: _descriptor_18.fromValue(value_0)
|
|
184
173
|
}
|
|
185
174
|
}
|
|
186
175
|
toValue(value_0) {
|
|
187
|
-
return
|
|
176
|
+
return _descriptor_0.toValue(value_0.refBlockBytes).concat(_descriptor_1.toValue(value_0.refBlockHash).concat(_descriptor_2.toValue(value_0.timestamp).concat(_descriptor_2.toValue(value_0.expiration).concat(_descriptor_2.toValue(value_0.feeLimit).concat(_descriptor_3.toValue(value_0.contractAddress).concat(_descriptor_2.toValue(value_0.callValue).concat(_descriptor_18.toValue(value_0.calldata))))))));
|
|
188
177
|
}
|
|
189
178
|
}
|
|
190
179
|
|
|
191
|
-
const
|
|
180
|
+
const _descriptor_19 = new _TronTriggerSmartContractTxParams_1();
|
|
181
|
+
|
|
182
|
+
const _descriptor_20 = new __compactRuntime.CompactTypeBytes(64);
|
|
183
|
+
|
|
184
|
+
const _descriptor_21 = new __compactRuntime.CompactTypeEnum(1, 1);
|
|
185
|
+
|
|
186
|
+
const _descriptor_22 = new __compactRuntime.CompactTypeBytes(34);
|
|
187
|
+
|
|
188
|
+
const _descriptor_23 = new __compactRuntime.CompactTypeBytes(0);
|
|
192
189
|
|
|
193
|
-
class
|
|
190
|
+
class _SignBidirectionalEventV1_0 {
|
|
194
191
|
alignment() {
|
|
195
|
-
return
|
|
192
|
+
return _descriptor_12.alignment().concat(_descriptor_13.alignment().concat(_descriptor_7.alignment().concat(_descriptor_14.alignment().concat(_descriptor_15.alignment().concat(_descriptor_19.alignment().concat(_descriptor_20.alignment().concat(_descriptor_21.alignment().concat(_descriptor_20.alignment().concat(_descriptor_22.alignment().concat(_descriptor_23.alignment()))))))))));
|
|
196
193
|
}
|
|
197
194
|
fromValue(value_0) {
|
|
198
195
|
return {
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
196
|
+
keyVersion: _descriptor_12.fromValue(value_0),
|
|
197
|
+
sender: _descriptor_13.fromValue(value_0),
|
|
198
|
+
path: _descriptor_7.fromValue(value_0),
|
|
199
|
+
algo: _descriptor_14.fromValue(value_0),
|
|
200
|
+
txParamType: _descriptor_15.fromValue(value_0),
|
|
201
|
+
txParams: _descriptor_19.fromValue(value_0),
|
|
202
|
+
executionDest: _descriptor_20.fromValue(value_0),
|
|
203
|
+
signatureDest: _descriptor_21.fromValue(value_0),
|
|
204
|
+
params: _descriptor_20.fromValue(value_0),
|
|
205
|
+
outputDeserializationSchema: _descriptor_22.fromValue(value_0),
|
|
206
|
+
respondSerializationSchema: _descriptor_23.fromValue(value_0)
|
|
207
207
|
}
|
|
208
208
|
}
|
|
209
209
|
toValue(value_0) {
|
|
210
|
-
return
|
|
210
|
+
return _descriptor_12.toValue(value_0.keyVersion).concat(_descriptor_13.toValue(value_0.sender).concat(_descriptor_7.toValue(value_0.path).concat(_descriptor_14.toValue(value_0.algo).concat(_descriptor_15.toValue(value_0.txParamType).concat(_descriptor_19.toValue(value_0.txParams).concat(_descriptor_20.toValue(value_0.executionDest).concat(_descriptor_21.toValue(value_0.signatureDest).concat(_descriptor_20.toValue(value_0.params).concat(_descriptor_22.toValue(value_0.outputDeserializationSchema).concat(_descriptor_23.toValue(value_0.respondSerializationSchema)))))))))));
|
|
211
211
|
}
|
|
212
212
|
}
|
|
213
213
|
|
|
214
|
-
const _descriptor_24 = new
|
|
214
|
+
const _descriptor_24 = new _SignBidirectionalEventV1_0();
|
|
215
215
|
|
|
216
216
|
class _SignBidirectionalEventV1_1 {
|
|
217
217
|
alignment() {
|
|
218
|
-
return
|
|
218
|
+
return _descriptor_12.alignment().concat(_descriptor_13.alignment().concat(_descriptor_7.alignment().concat(_descriptor_14.alignment().concat(_descriptor_15.alignment().concat(_descriptor_11.alignment().concat(_descriptor_20.alignment().concat(_descriptor_21.alignment().concat(_descriptor_20.alignment().concat(_descriptor_22.alignment().concat(_descriptor_23.alignment()))))))))));
|
|
219
219
|
}
|
|
220
220
|
fromValue(value_0) {
|
|
221
221
|
return {
|
|
222
|
-
keyVersion:
|
|
223
|
-
sender:
|
|
224
|
-
path:
|
|
225
|
-
algo:
|
|
226
|
-
txParamType:
|
|
227
|
-
txParams:
|
|
228
|
-
executionDest:
|
|
229
|
-
signatureDest:
|
|
230
|
-
params:
|
|
231
|
-
outputDeserializationSchema:
|
|
232
|
-
respondSerializationSchema:
|
|
222
|
+
keyVersion: _descriptor_12.fromValue(value_0),
|
|
223
|
+
sender: _descriptor_13.fromValue(value_0),
|
|
224
|
+
path: _descriptor_7.fromValue(value_0),
|
|
225
|
+
algo: _descriptor_14.fromValue(value_0),
|
|
226
|
+
txParamType: _descriptor_15.fromValue(value_0),
|
|
227
|
+
txParams: _descriptor_11.fromValue(value_0),
|
|
228
|
+
executionDest: _descriptor_20.fromValue(value_0),
|
|
229
|
+
signatureDest: _descriptor_21.fromValue(value_0),
|
|
230
|
+
params: _descriptor_20.fromValue(value_0),
|
|
231
|
+
outputDeserializationSchema: _descriptor_22.fromValue(value_0),
|
|
232
|
+
respondSerializationSchema: _descriptor_23.fromValue(value_0)
|
|
233
233
|
}
|
|
234
234
|
}
|
|
235
235
|
toValue(value_0) {
|
|
236
|
-
return
|
|
236
|
+
return _descriptor_12.toValue(value_0.keyVersion).concat(_descriptor_13.toValue(value_0.sender).concat(_descriptor_7.toValue(value_0.path).concat(_descriptor_14.toValue(value_0.algo).concat(_descriptor_15.toValue(value_0.txParamType).concat(_descriptor_11.toValue(value_0.txParams).concat(_descriptor_20.toValue(value_0.executionDest).concat(_descriptor_21.toValue(value_0.signatureDest).concat(_descriptor_20.toValue(value_0.params).concat(_descriptor_22.toValue(value_0.outputDeserializationSchema).concat(_descriptor_23.toValue(value_0.respondSerializationSchema)))))))))));
|
|
237
237
|
}
|
|
238
238
|
}
|
|
239
239
|
|
|
@@ -241,25 +241,25 @@ const _descriptor_25 = new _SignBidirectionalEventV1_1();
|
|
|
241
241
|
|
|
242
242
|
class _SignBidirectionalEventV1_2 {
|
|
243
243
|
alignment() {
|
|
244
|
-
return
|
|
244
|
+
return _descriptor_12.alignment().concat(_descriptor_13.alignment().concat(_descriptor_7.alignment().concat(_descriptor_14.alignment().concat(_descriptor_15.alignment().concat(_descriptor_19.alignment().concat(_descriptor_20.alignment().concat(_descriptor_21.alignment().concat(_descriptor_20.alignment().concat(_descriptor_23.alignment().concat(_descriptor_23.alignment()))))))))));
|
|
245
245
|
}
|
|
246
246
|
fromValue(value_0) {
|
|
247
247
|
return {
|
|
248
|
-
keyVersion:
|
|
249
|
-
sender:
|
|
250
|
-
path:
|
|
251
|
-
algo:
|
|
252
|
-
txParamType:
|
|
253
|
-
txParams:
|
|
254
|
-
executionDest:
|
|
255
|
-
signatureDest:
|
|
256
|
-
params:
|
|
257
|
-
outputDeserializationSchema:
|
|
258
|
-
respondSerializationSchema:
|
|
248
|
+
keyVersion: _descriptor_12.fromValue(value_0),
|
|
249
|
+
sender: _descriptor_13.fromValue(value_0),
|
|
250
|
+
path: _descriptor_7.fromValue(value_0),
|
|
251
|
+
algo: _descriptor_14.fromValue(value_0),
|
|
252
|
+
txParamType: _descriptor_15.fromValue(value_0),
|
|
253
|
+
txParams: _descriptor_19.fromValue(value_0),
|
|
254
|
+
executionDest: _descriptor_20.fromValue(value_0),
|
|
255
|
+
signatureDest: _descriptor_21.fromValue(value_0),
|
|
256
|
+
params: _descriptor_20.fromValue(value_0),
|
|
257
|
+
outputDeserializationSchema: _descriptor_23.fromValue(value_0),
|
|
258
|
+
respondSerializationSchema: _descriptor_23.fromValue(value_0)
|
|
259
259
|
}
|
|
260
260
|
}
|
|
261
261
|
toValue(value_0) {
|
|
262
|
-
return
|
|
262
|
+
return _descriptor_12.toValue(value_0.keyVersion).concat(_descriptor_13.toValue(value_0.sender).concat(_descriptor_7.toValue(value_0.path).concat(_descriptor_14.toValue(value_0.algo).concat(_descriptor_15.toValue(value_0.txParamType).concat(_descriptor_19.toValue(value_0.txParams).concat(_descriptor_20.toValue(value_0.executionDest).concat(_descriptor_21.toValue(value_0.signatureDest).concat(_descriptor_20.toValue(value_0.params).concat(_descriptor_23.toValue(value_0.outputDeserializationSchema).concat(_descriptor_23.toValue(value_0.respondSerializationSchema)))))))))));
|
|
263
263
|
}
|
|
264
264
|
}
|
|
265
265
|
|
|
@@ -267,25 +267,25 @@ const _descriptor_26 = new _SignBidirectionalEventV1_2();
|
|
|
267
267
|
|
|
268
268
|
class _SignBidirectionalEventV1_3 {
|
|
269
269
|
alignment() {
|
|
270
|
-
return
|
|
270
|
+
return _descriptor_12.alignment().concat(_descriptor_13.alignment().concat(_descriptor_7.alignment().concat(_descriptor_14.alignment().concat(_descriptor_15.alignment().concat(_descriptor_11.alignment().concat(_descriptor_20.alignment().concat(_descriptor_21.alignment().concat(_descriptor_20.alignment().concat(_descriptor_23.alignment().concat(_descriptor_23.alignment()))))))))));
|
|
271
271
|
}
|
|
272
272
|
fromValue(value_0) {
|
|
273
273
|
return {
|
|
274
|
-
keyVersion:
|
|
275
|
-
sender:
|
|
276
|
-
path:
|
|
277
|
-
algo:
|
|
278
|
-
txParamType:
|
|
279
|
-
txParams:
|
|
280
|
-
executionDest:
|
|
281
|
-
signatureDest:
|
|
282
|
-
params:
|
|
283
|
-
outputDeserializationSchema:
|
|
284
|
-
respondSerializationSchema:
|
|
274
|
+
keyVersion: _descriptor_12.fromValue(value_0),
|
|
275
|
+
sender: _descriptor_13.fromValue(value_0),
|
|
276
|
+
path: _descriptor_7.fromValue(value_0),
|
|
277
|
+
algo: _descriptor_14.fromValue(value_0),
|
|
278
|
+
txParamType: _descriptor_15.fromValue(value_0),
|
|
279
|
+
txParams: _descriptor_11.fromValue(value_0),
|
|
280
|
+
executionDest: _descriptor_20.fromValue(value_0),
|
|
281
|
+
signatureDest: _descriptor_21.fromValue(value_0),
|
|
282
|
+
params: _descriptor_20.fromValue(value_0),
|
|
283
|
+
outputDeserializationSchema: _descriptor_23.fromValue(value_0),
|
|
284
|
+
respondSerializationSchema: _descriptor_23.fromValue(value_0)
|
|
285
285
|
}
|
|
286
286
|
}
|
|
287
287
|
toValue(value_0) {
|
|
288
|
-
return
|
|
288
|
+
return _descriptor_12.toValue(value_0.keyVersion).concat(_descriptor_13.toValue(value_0.sender).concat(_descriptor_7.toValue(value_0.path).concat(_descriptor_14.toValue(value_0.algo).concat(_descriptor_15.toValue(value_0.txParamType).concat(_descriptor_11.toValue(value_0.txParams).concat(_descriptor_20.toValue(value_0.executionDest).concat(_descriptor_21.toValue(value_0.signatureDest).concat(_descriptor_20.toValue(value_0.params).concat(_descriptor_23.toValue(value_0.outputDeserializationSchema).concat(_descriptor_23.toValue(value_0.respondSerializationSchema)))))))))));
|
|
289
289
|
}
|
|
290
290
|
}
|
|
291
291
|
|
|
@@ -295,16 +295,16 @@ const _descriptor_28 = new __compactRuntime.CompactTypeEnum(2, 1);
|
|
|
295
295
|
|
|
296
296
|
class _AffinePoint_0 {
|
|
297
297
|
alignment() {
|
|
298
|
-
return
|
|
298
|
+
return _descriptor_7.alignment().concat(_descriptor_7.alignment());
|
|
299
299
|
}
|
|
300
300
|
fromValue(value_0) {
|
|
301
301
|
return {
|
|
302
|
-
x:
|
|
303
|
-
y:
|
|
302
|
+
x: _descriptor_7.fromValue(value_0),
|
|
303
|
+
y: _descriptor_7.fromValue(value_0)
|
|
304
304
|
}
|
|
305
305
|
}
|
|
306
306
|
toValue(value_0) {
|
|
307
|
-
return
|
|
307
|
+
return _descriptor_7.toValue(value_0.x).concat(_descriptor_7.toValue(value_0.y));
|
|
308
308
|
}
|
|
309
309
|
}
|
|
310
310
|
|
|
@@ -312,17 +312,17 @@ const _descriptor_29 = new _AffinePoint_0();
|
|
|
312
312
|
|
|
313
313
|
class _Signature_0 {
|
|
314
314
|
alignment() {
|
|
315
|
-
return _descriptor_29.alignment().concat(
|
|
315
|
+
return _descriptor_29.alignment().concat(_descriptor_7.alignment().concat(_descriptor_12.alignment()));
|
|
316
316
|
}
|
|
317
317
|
fromValue(value_0) {
|
|
318
318
|
return {
|
|
319
319
|
bigR: _descriptor_29.fromValue(value_0),
|
|
320
|
-
s:
|
|
321
|
-
recoveryId:
|
|
320
|
+
s: _descriptor_7.fromValue(value_0),
|
|
321
|
+
recoveryId: _descriptor_12.fromValue(value_0)
|
|
322
322
|
}
|
|
323
323
|
}
|
|
324
324
|
toValue(value_0) {
|
|
325
|
-
return _descriptor_29.toValue(value_0.bigR).concat(
|
|
325
|
+
return _descriptor_29.toValue(value_0.bigR).concat(_descriptor_7.toValue(value_0.s).concat(_descriptor_12.toValue(value_0.recoveryId)));
|
|
326
326
|
}
|
|
327
327
|
}
|
|
328
328
|
|
|
@@ -330,21 +330,21 @@ const _descriptor_30 = new _Signature_0();
|
|
|
330
330
|
|
|
331
331
|
class _RespondBidirectionalEventV1_0 {
|
|
332
332
|
alignment() {
|
|
333
|
-
return
|
|
333
|
+
return _descriptor_7.alignment().concat(_descriptor_2.alignment().concat(_descriptor_28.alignment().concat(_descriptor_2.alignment().concat(_descriptor_7.alignment().concat(_descriptor_7.alignment().concat(_descriptor_30.alignment()))))));
|
|
334
334
|
}
|
|
335
335
|
fromValue(value_0) {
|
|
336
336
|
return {
|
|
337
|
-
requestId:
|
|
338
|
-
blockHeight:
|
|
337
|
+
requestId: _descriptor_7.fromValue(value_0),
|
|
338
|
+
blockHeight: _descriptor_2.fromValue(value_0),
|
|
339
339
|
outputKind: _descriptor_28.fromValue(value_0),
|
|
340
|
-
serializedOutputLength:
|
|
341
|
-
outputHash:
|
|
342
|
-
digest:
|
|
340
|
+
serializedOutputLength: _descriptor_2.fromValue(value_0),
|
|
341
|
+
outputHash: _descriptor_7.fromValue(value_0),
|
|
342
|
+
digest: _descriptor_7.fromValue(value_0),
|
|
343
343
|
signature: _descriptor_30.fromValue(value_0)
|
|
344
344
|
}
|
|
345
345
|
}
|
|
346
346
|
toValue(value_0) {
|
|
347
|
-
return
|
|
347
|
+
return _descriptor_7.toValue(value_0.requestId).concat(_descriptor_2.toValue(value_0.blockHeight).concat(_descriptor_28.toValue(value_0.outputKind).concat(_descriptor_2.toValue(value_0.serializedOutputLength).concat(_descriptor_7.toValue(value_0.outputHash).concat(_descriptor_7.toValue(value_0.digest).concat(_descriptor_30.toValue(value_0.signature)))))));
|
|
348
348
|
}
|
|
349
349
|
}
|
|
350
350
|
|
|
@@ -356,21 +356,21 @@ const _descriptor_33 = new __compactRuntime.CompactTypeUnsignedInteger(340282366
|
|
|
356
356
|
|
|
357
357
|
const _descriptor_34 = new __compactRuntime.CompactTypeBytes(20);
|
|
358
358
|
|
|
359
|
-
const _descriptor_35 = new __compactRuntime.CompactTypeVector(0,
|
|
359
|
+
const _descriptor_35 = new __compactRuntime.CompactTypeVector(0, _descriptor_7);
|
|
360
360
|
|
|
361
361
|
class _EvmAccessListEntry_0 {
|
|
362
362
|
alignment() {
|
|
363
|
-
return _descriptor_34.alignment().concat(
|
|
363
|
+
return _descriptor_34.alignment().concat(_descriptor_12.alignment().concat(_descriptor_35.alignment()));
|
|
364
364
|
}
|
|
365
365
|
fromValue(value_0) {
|
|
366
366
|
return {
|
|
367
367
|
address: _descriptor_34.fromValue(value_0),
|
|
368
|
-
storageKeyCount:
|
|
368
|
+
storageKeyCount: _descriptor_12.fromValue(value_0),
|
|
369
369
|
storageKeys: _descriptor_35.fromValue(value_0)
|
|
370
370
|
}
|
|
371
371
|
}
|
|
372
372
|
toValue(value_0) {
|
|
373
|
-
return _descriptor_34.toValue(value_0.address).concat(
|
|
373
|
+
return _descriptor_34.toValue(value_0.address).concat(_descriptor_12.toValue(value_0.storageKeyCount).concat(_descriptor_35.toValue(value_0.storageKeys)));
|
|
374
374
|
}
|
|
375
375
|
}
|
|
376
376
|
|
|
@@ -380,24 +380,24 @@ const _descriptor_37 = new __compactRuntime.CompactTypeVector(0, _descriptor_36)
|
|
|
380
380
|
|
|
381
381
|
class _EvmType2TxParams_0 {
|
|
382
382
|
alignment() {
|
|
383
|
-
return
|
|
383
|
+
return _descriptor_2.alignment().concat(_descriptor_2.alignment().concat(_descriptor_33.alignment().concat(_descriptor_33.alignment().concat(_descriptor_2.alignment().concat(_descriptor_34.alignment().concat(_descriptor_33.alignment().concat(_descriptor_18.alignment().concat(_descriptor_12.alignment().concat(_descriptor_37.alignment())))))))));
|
|
384
384
|
}
|
|
385
385
|
fromValue(value_0) {
|
|
386
386
|
return {
|
|
387
|
-
chainId:
|
|
388
|
-
nonce:
|
|
387
|
+
chainId: _descriptor_2.fromValue(value_0),
|
|
388
|
+
nonce: _descriptor_2.fromValue(value_0),
|
|
389
389
|
maxPriorityFeePerGas: _descriptor_33.fromValue(value_0),
|
|
390
390
|
maxFeePerGas: _descriptor_33.fromValue(value_0),
|
|
391
|
-
gasLimit:
|
|
391
|
+
gasLimit: _descriptor_2.fromValue(value_0),
|
|
392
392
|
to: _descriptor_34.fromValue(value_0),
|
|
393
393
|
value: _descriptor_33.fromValue(value_0),
|
|
394
|
-
calldata:
|
|
395
|
-
accessListEntryCount:
|
|
394
|
+
calldata: _descriptor_18.fromValue(value_0),
|
|
395
|
+
accessListEntryCount: _descriptor_12.fromValue(value_0),
|
|
396
396
|
accessList: _descriptor_37.fromValue(value_0)
|
|
397
397
|
}
|
|
398
398
|
}
|
|
399
399
|
toValue(value_0) {
|
|
400
|
-
return
|
|
400
|
+
return _descriptor_2.toValue(value_0.chainId).concat(_descriptor_2.toValue(value_0.nonce).concat(_descriptor_33.toValue(value_0.maxPriorityFeePerGas).concat(_descriptor_33.toValue(value_0.maxFeePerGas).concat(_descriptor_2.toValue(value_0.gasLimit).concat(_descriptor_34.toValue(value_0.to).concat(_descriptor_33.toValue(value_0.value).concat(_descriptor_18.toValue(value_0.calldata).concat(_descriptor_12.toValue(value_0.accessListEntryCount).concat(_descriptor_37.toValue(value_0.accessList))))))))));
|
|
401
401
|
}
|
|
402
402
|
}
|
|
403
403
|
|
|
@@ -405,25 +405,25 @@ const _descriptor_38 = new _EvmType2TxParams_0();
|
|
|
405
405
|
|
|
406
406
|
class _SignBidirectionalEventV1_4 {
|
|
407
407
|
alignment() {
|
|
408
|
-
return
|
|
408
|
+
return _descriptor_12.alignment().concat(_descriptor_13.alignment().concat(_descriptor_7.alignment().concat(_descriptor_14.alignment().concat(_descriptor_15.alignment().concat(_descriptor_38.alignment().concat(_descriptor_20.alignment().concat(_descriptor_21.alignment().concat(_descriptor_20.alignment().concat(_descriptor_22.alignment().concat(_descriptor_23.alignment()))))))))));
|
|
409
409
|
}
|
|
410
410
|
fromValue(value_0) {
|
|
411
411
|
return {
|
|
412
|
-
keyVersion:
|
|
413
|
-
sender:
|
|
414
|
-
path:
|
|
415
|
-
algo:
|
|
416
|
-
txParamType:
|
|
412
|
+
keyVersion: _descriptor_12.fromValue(value_0),
|
|
413
|
+
sender: _descriptor_13.fromValue(value_0),
|
|
414
|
+
path: _descriptor_7.fromValue(value_0),
|
|
415
|
+
algo: _descriptor_14.fromValue(value_0),
|
|
416
|
+
txParamType: _descriptor_15.fromValue(value_0),
|
|
417
417
|
txParams: _descriptor_38.fromValue(value_0),
|
|
418
|
-
executionDest:
|
|
419
|
-
signatureDest:
|
|
420
|
-
params:
|
|
421
|
-
outputDeserializationSchema:
|
|
422
|
-
respondSerializationSchema:
|
|
418
|
+
executionDest: _descriptor_20.fromValue(value_0),
|
|
419
|
+
signatureDest: _descriptor_21.fromValue(value_0),
|
|
420
|
+
params: _descriptor_20.fromValue(value_0),
|
|
421
|
+
outputDeserializationSchema: _descriptor_22.fromValue(value_0),
|
|
422
|
+
respondSerializationSchema: _descriptor_23.fromValue(value_0)
|
|
423
423
|
}
|
|
424
424
|
}
|
|
425
425
|
toValue(value_0) {
|
|
426
|
-
return
|
|
426
|
+
return _descriptor_12.toValue(value_0.keyVersion).concat(_descriptor_13.toValue(value_0.sender).concat(_descriptor_7.toValue(value_0.path).concat(_descriptor_14.toValue(value_0.algo).concat(_descriptor_15.toValue(value_0.txParamType).concat(_descriptor_38.toValue(value_0.txParams).concat(_descriptor_20.toValue(value_0.executionDest).concat(_descriptor_21.toValue(value_0.signatureDest).concat(_descriptor_20.toValue(value_0.params).concat(_descriptor_22.toValue(value_0.outputDeserializationSchema).concat(_descriptor_23.toValue(value_0.respondSerializationSchema)))))))))));
|
|
427
427
|
}
|
|
428
428
|
}
|
|
429
429
|
|
|
@@ -431,17 +431,17 @@ const _descriptor_39 = new _SignBidirectionalEventV1_4();
|
|
|
431
431
|
|
|
432
432
|
class _EvmAccessListEntry_1 {
|
|
433
433
|
alignment() {
|
|
434
|
-
return _descriptor_34.alignment().concat(
|
|
434
|
+
return _descriptor_34.alignment().concat(_descriptor_12.alignment().concat(_descriptor_8.alignment()));
|
|
435
435
|
}
|
|
436
436
|
fromValue(value_0) {
|
|
437
437
|
return {
|
|
438
438
|
address: _descriptor_34.fromValue(value_0),
|
|
439
|
-
storageKeyCount:
|
|
440
|
-
storageKeys:
|
|
439
|
+
storageKeyCount: _descriptor_12.fromValue(value_0),
|
|
440
|
+
storageKeys: _descriptor_8.fromValue(value_0)
|
|
441
441
|
}
|
|
442
442
|
}
|
|
443
443
|
toValue(value_0) {
|
|
444
|
-
return _descriptor_34.toValue(value_0.address).concat(
|
|
444
|
+
return _descriptor_34.toValue(value_0.address).concat(_descriptor_12.toValue(value_0.storageKeyCount).concat(_descriptor_8.toValue(value_0.storageKeys)));
|
|
445
445
|
}
|
|
446
446
|
}
|
|
447
447
|
|
|
@@ -451,24 +451,24 @@ const _descriptor_41 = new __compactRuntime.CompactTypeVector(1, _descriptor_40)
|
|
|
451
451
|
|
|
452
452
|
class _EvmType2TxParams_1 {
|
|
453
453
|
alignment() {
|
|
454
|
-
return
|
|
454
|
+
return _descriptor_2.alignment().concat(_descriptor_2.alignment().concat(_descriptor_33.alignment().concat(_descriptor_33.alignment().concat(_descriptor_2.alignment().concat(_descriptor_34.alignment().concat(_descriptor_33.alignment().concat(_descriptor_10.alignment().concat(_descriptor_12.alignment().concat(_descriptor_41.alignment())))))))));
|
|
455
455
|
}
|
|
456
456
|
fromValue(value_0) {
|
|
457
457
|
return {
|
|
458
|
-
chainId:
|
|
459
|
-
nonce:
|
|
458
|
+
chainId: _descriptor_2.fromValue(value_0),
|
|
459
|
+
nonce: _descriptor_2.fromValue(value_0),
|
|
460
460
|
maxPriorityFeePerGas: _descriptor_33.fromValue(value_0),
|
|
461
461
|
maxFeePerGas: _descriptor_33.fromValue(value_0),
|
|
462
|
-
gasLimit:
|
|
462
|
+
gasLimit: _descriptor_2.fromValue(value_0),
|
|
463
463
|
to: _descriptor_34.fromValue(value_0),
|
|
464
464
|
value: _descriptor_33.fromValue(value_0),
|
|
465
|
-
calldata:
|
|
466
|
-
accessListEntryCount:
|
|
465
|
+
calldata: _descriptor_10.fromValue(value_0),
|
|
466
|
+
accessListEntryCount: _descriptor_12.fromValue(value_0),
|
|
467
467
|
accessList: _descriptor_41.fromValue(value_0)
|
|
468
468
|
}
|
|
469
469
|
}
|
|
470
470
|
toValue(value_0) {
|
|
471
|
-
return
|
|
471
|
+
return _descriptor_2.toValue(value_0.chainId).concat(_descriptor_2.toValue(value_0.nonce).concat(_descriptor_33.toValue(value_0.maxPriorityFeePerGas).concat(_descriptor_33.toValue(value_0.maxFeePerGas).concat(_descriptor_2.toValue(value_0.gasLimit).concat(_descriptor_34.toValue(value_0.to).concat(_descriptor_33.toValue(value_0.value).concat(_descriptor_10.toValue(value_0.calldata).concat(_descriptor_12.toValue(value_0.accessListEntryCount).concat(_descriptor_41.toValue(value_0.accessList))))))))));
|
|
472
472
|
}
|
|
473
473
|
}
|
|
474
474
|
|
|
@@ -476,25 +476,25 @@ const _descriptor_42 = new _EvmType2TxParams_1();
|
|
|
476
476
|
|
|
477
477
|
class _SignBidirectionalEventV1_5 {
|
|
478
478
|
alignment() {
|
|
479
|
-
return
|
|
479
|
+
return _descriptor_12.alignment().concat(_descriptor_13.alignment().concat(_descriptor_7.alignment().concat(_descriptor_14.alignment().concat(_descriptor_15.alignment().concat(_descriptor_42.alignment().concat(_descriptor_20.alignment().concat(_descriptor_21.alignment().concat(_descriptor_20.alignment().concat(_descriptor_22.alignment().concat(_descriptor_23.alignment()))))))))));
|
|
480
480
|
}
|
|
481
481
|
fromValue(value_0) {
|
|
482
482
|
return {
|
|
483
|
-
keyVersion:
|
|
484
|
-
sender:
|
|
485
|
-
path:
|
|
486
|
-
algo:
|
|
487
|
-
txParamType:
|
|
483
|
+
keyVersion: _descriptor_12.fromValue(value_0),
|
|
484
|
+
sender: _descriptor_13.fromValue(value_0),
|
|
485
|
+
path: _descriptor_7.fromValue(value_0),
|
|
486
|
+
algo: _descriptor_14.fromValue(value_0),
|
|
487
|
+
txParamType: _descriptor_15.fromValue(value_0),
|
|
488
488
|
txParams: _descriptor_42.fromValue(value_0),
|
|
489
|
-
executionDest:
|
|
490
|
-
signatureDest:
|
|
491
|
-
params:
|
|
492
|
-
outputDeserializationSchema:
|
|
493
|
-
respondSerializationSchema:
|
|
489
|
+
executionDest: _descriptor_20.fromValue(value_0),
|
|
490
|
+
signatureDest: _descriptor_21.fromValue(value_0),
|
|
491
|
+
params: _descriptor_20.fromValue(value_0),
|
|
492
|
+
outputDeserializationSchema: _descriptor_22.fromValue(value_0),
|
|
493
|
+
respondSerializationSchema: _descriptor_23.fromValue(value_0)
|
|
494
494
|
}
|
|
495
495
|
}
|
|
496
496
|
toValue(value_0) {
|
|
497
|
-
return
|
|
497
|
+
return _descriptor_12.toValue(value_0.keyVersion).concat(_descriptor_13.toValue(value_0.sender).concat(_descriptor_7.toValue(value_0.path).concat(_descriptor_14.toValue(value_0.algo).concat(_descriptor_15.toValue(value_0.txParamType).concat(_descriptor_42.toValue(value_0.txParams).concat(_descriptor_20.toValue(value_0.executionDest).concat(_descriptor_21.toValue(value_0.signatureDest).concat(_descriptor_20.toValue(value_0.params).concat(_descriptor_22.toValue(value_0.outputDeserializationSchema).concat(_descriptor_23.toValue(value_0.respondSerializationSchema)))))))))));
|
|
498
498
|
}
|
|
499
499
|
}
|
|
500
500
|
|
|
@@ -506,42 +506,42 @@ const _descriptor_45 = new __compactRuntime.CompactTypeBytes(1);
|
|
|
506
506
|
|
|
507
507
|
class _RequestIdPreimageV1_0 {
|
|
508
508
|
alignment() {
|
|
509
|
-
return
|
|
509
|
+
return _descriptor_12.alignment().concat(_descriptor_13.alignment().concat(_descriptor_7.alignment().concat(_descriptor_14.alignment().concat(_descriptor_15.alignment().concat(_descriptor_7.alignment().concat(_descriptor_20.alignment()))))));
|
|
510
510
|
}
|
|
511
511
|
fromValue(value_0) {
|
|
512
512
|
return {
|
|
513
|
-
keyVersion:
|
|
514
|
-
sender:
|
|
515
|
-
path:
|
|
516
|
-
algo:
|
|
517
|
-
txParamType:
|
|
518
|
-
txParamsDigest:
|
|
519
|
-
executionDest:
|
|
513
|
+
keyVersion: _descriptor_12.fromValue(value_0),
|
|
514
|
+
sender: _descriptor_13.fromValue(value_0),
|
|
515
|
+
path: _descriptor_7.fromValue(value_0),
|
|
516
|
+
algo: _descriptor_14.fromValue(value_0),
|
|
517
|
+
txParamType: _descriptor_15.fromValue(value_0),
|
|
518
|
+
txParamsDigest: _descriptor_7.fromValue(value_0),
|
|
519
|
+
executionDest: _descriptor_20.fromValue(value_0)
|
|
520
520
|
}
|
|
521
521
|
}
|
|
522
522
|
toValue(value_0) {
|
|
523
|
-
return
|
|
523
|
+
return _descriptor_12.toValue(value_0.keyVersion).concat(_descriptor_13.toValue(value_0.sender).concat(_descriptor_7.toValue(value_0.path).concat(_descriptor_14.toValue(value_0.algo).concat(_descriptor_15.toValue(value_0.txParamType).concat(_descriptor_7.toValue(value_0.txParamsDigest).concat(_descriptor_20.toValue(value_0.executionDest)))))));
|
|
524
524
|
}
|
|
525
525
|
}
|
|
526
526
|
|
|
527
527
|
const _descriptor_46 = new _RequestIdPreimageV1_0();
|
|
528
528
|
|
|
529
|
-
const _descriptor_47 = new __compactRuntime.CompactTypeVector(4,
|
|
529
|
+
const _descriptor_47 = new __compactRuntime.CompactTypeVector(4, _descriptor_12);
|
|
530
530
|
|
|
531
531
|
const _descriptor_48 = new __compactRuntime.CompactTypeBytes(128);
|
|
532
532
|
|
|
533
533
|
class _SignBidirectionalEventNotification_0 {
|
|
534
534
|
alignment() {
|
|
535
|
-
return
|
|
535
|
+
return _descriptor_12.alignment().concat(_descriptor_48.alignment());
|
|
536
536
|
}
|
|
537
537
|
fromValue(value_0) {
|
|
538
538
|
return {
|
|
539
|
-
version:
|
|
539
|
+
version: _descriptor_12.fromValue(value_0),
|
|
540
540
|
payload: _descriptor_48.fromValue(value_0)
|
|
541
541
|
}
|
|
542
542
|
}
|
|
543
543
|
toValue(value_0) {
|
|
544
|
-
return
|
|
544
|
+
return _descriptor_12.toValue(value_0.version).concat(_descriptor_48.toValue(value_0.payload));
|
|
545
545
|
}
|
|
546
546
|
}
|
|
547
547
|
|
|
@@ -555,20 +555,20 @@ const _descriptor_52 = new __compactRuntime.CompactTypeEnum(8, 1);
|
|
|
555
555
|
|
|
556
556
|
class _tuple_0 {
|
|
557
557
|
alignment() {
|
|
558
|
-
return _descriptor_52.alignment().concat(
|
|
558
|
+
return _descriptor_52.alignment().concat(_descriptor_7.alignment().concat(_descriptor_2.alignment().concat(_descriptor_28.alignment().concat(_descriptor_2.alignment().concat(_descriptor_7.alignment())))));
|
|
559
559
|
}
|
|
560
560
|
fromValue(value_0) {
|
|
561
561
|
return [
|
|
562
562
|
_descriptor_52.fromValue(value_0),
|
|
563
|
-
_descriptor_1.fromValue(value_0),
|
|
564
563
|
_descriptor_7.fromValue(value_0),
|
|
564
|
+
_descriptor_2.fromValue(value_0),
|
|
565
565
|
_descriptor_28.fromValue(value_0),
|
|
566
|
-
|
|
567
|
-
|
|
566
|
+
_descriptor_2.fromValue(value_0),
|
|
567
|
+
_descriptor_7.fromValue(value_0)
|
|
568
568
|
]
|
|
569
569
|
}
|
|
570
570
|
toValue(value_0) {
|
|
571
|
-
return _descriptor_52.toValue(value_0[0]).concat(
|
|
571
|
+
return _descriptor_52.toValue(value_0[0]).concat(_descriptor_7.toValue(value_0[1]).concat(_descriptor_2.toValue(value_0[2]).concat(_descriptor_28.toValue(value_0[3]).concat(_descriptor_2.toValue(value_0[4]).concat(_descriptor_7.toValue(value_0[5]))))));
|
|
572
572
|
}
|
|
573
573
|
}
|
|
574
574
|
|
|
@@ -578,17 +578,17 @@ const _descriptor_54 = __compactRuntime.CompactTypeField;
|
|
|
578
578
|
|
|
579
579
|
class _tuple_1 {
|
|
580
580
|
alignment() {
|
|
581
|
-
return _descriptor_52.alignment().concat(_descriptor_54.alignment().concat(
|
|
581
|
+
return _descriptor_52.alignment().concat(_descriptor_54.alignment().concat(_descriptor_7.alignment()));
|
|
582
582
|
}
|
|
583
583
|
fromValue(value_0) {
|
|
584
584
|
return [
|
|
585
585
|
_descriptor_52.fromValue(value_0),
|
|
586
586
|
_descriptor_54.fromValue(value_0),
|
|
587
|
-
|
|
587
|
+
_descriptor_7.fromValue(value_0)
|
|
588
588
|
]
|
|
589
589
|
}
|
|
590
590
|
toValue(value_0) {
|
|
591
|
-
return _descriptor_52.toValue(value_0[0]).concat(_descriptor_54.toValue(value_0[1]).concat(
|
|
591
|
+
return _descriptor_52.toValue(value_0[0]).concat(_descriptor_54.toValue(value_0[1]).concat(_descriptor_7.toValue(value_0[2])));
|
|
592
592
|
}
|
|
593
593
|
}
|
|
594
594
|
|
|
@@ -613,16 +613,16 @@ const _descriptor_56 = new _tuple_2();
|
|
|
613
613
|
|
|
614
614
|
class _tuple_3 {
|
|
615
615
|
alignment() {
|
|
616
|
-
return _descriptor_52.alignment().concat(
|
|
616
|
+
return _descriptor_52.alignment().concat(_descriptor_7.alignment());
|
|
617
617
|
}
|
|
618
618
|
fromValue(value_0) {
|
|
619
619
|
return [
|
|
620
620
|
_descriptor_52.fromValue(value_0),
|
|
621
|
-
|
|
621
|
+
_descriptor_7.fromValue(value_0)
|
|
622
622
|
]
|
|
623
623
|
}
|
|
624
624
|
toValue(value_0) {
|
|
625
|
-
return _descriptor_52.toValue(value_0[0]).concat(
|
|
625
|
+
return _descriptor_52.toValue(value_0[0]).concat(_descriptor_7.toValue(value_0[1]));
|
|
626
626
|
}
|
|
627
627
|
}
|
|
628
628
|
|
|
@@ -630,25 +630,25 @@ const _descriptor_57 = new _tuple_3();
|
|
|
630
630
|
|
|
631
631
|
class _tuple_4 {
|
|
632
632
|
alignment() {
|
|
633
|
-
return _descriptor_52.alignment().concat(
|
|
633
|
+
return _descriptor_52.alignment().concat(_descriptor_0.alignment().concat(_descriptor_1.alignment().concat(_descriptor_2.alignment().concat(_descriptor_2.alignment().concat(_descriptor_2.alignment().concat(_descriptor_3.alignment().concat(_descriptor_2.alignment().concat(_descriptor_4.alignment().concat(_descriptor_5.alignment().concat(_descriptor_6.alignment()))))))))));
|
|
634
634
|
}
|
|
635
635
|
fromValue(value_0) {
|
|
636
636
|
return [
|
|
637
637
|
_descriptor_52.fromValue(value_0),
|
|
638
|
+
_descriptor_0.fromValue(value_0),
|
|
639
|
+
_descriptor_1.fromValue(value_0),
|
|
640
|
+
_descriptor_2.fromValue(value_0),
|
|
641
|
+
_descriptor_2.fromValue(value_0),
|
|
642
|
+
_descriptor_2.fromValue(value_0),
|
|
643
|
+
_descriptor_3.fromValue(value_0),
|
|
644
|
+
_descriptor_2.fromValue(value_0),
|
|
645
|
+
_descriptor_4.fromValue(value_0),
|
|
638
646
|
_descriptor_5.fromValue(value_0),
|
|
639
|
-
_descriptor_6.fromValue(value_0)
|
|
640
|
-
_descriptor_7.fromValue(value_0),
|
|
641
|
-
_descriptor_7.fromValue(value_0),
|
|
642
|
-
_descriptor_7.fromValue(value_0),
|
|
643
|
-
_descriptor_8.fromValue(value_0),
|
|
644
|
-
_descriptor_7.fromValue(value_0),
|
|
645
|
-
_descriptor_9.fromValue(value_0),
|
|
646
|
-
_descriptor_10.fromValue(value_0),
|
|
647
|
-
_descriptor_11.fromValue(value_0)
|
|
647
|
+
_descriptor_6.fromValue(value_0)
|
|
648
648
|
]
|
|
649
649
|
}
|
|
650
650
|
toValue(value_0) {
|
|
651
|
-
return _descriptor_52.toValue(value_0[0]).concat(
|
|
651
|
+
return _descriptor_52.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_2.toValue(value_0[4]).concat(_descriptor_2.toValue(value_0[5]).concat(_descriptor_3.toValue(value_0[6]).concat(_descriptor_2.toValue(value_0[7]).concat(_descriptor_4.toValue(value_0[8]).concat(_descriptor_5.toValue(value_0[9]).concat(_descriptor_6.toValue(value_0[10])))))))))));
|
|
652
652
|
}
|
|
653
653
|
}
|
|
654
654
|
|
|
@@ -656,19 +656,19 @@ const _descriptor_58 = new _tuple_4();
|
|
|
656
656
|
|
|
657
657
|
class _tuple_5 {
|
|
658
658
|
alignment() {
|
|
659
|
-
return _descriptor_52.alignment().concat(_descriptor_54.alignment().concat(_descriptor_34.alignment().concat(
|
|
659
|
+
return _descriptor_52.alignment().concat(_descriptor_54.alignment().concat(_descriptor_34.alignment().concat(_descriptor_12.alignment().concat(_descriptor_54.alignment()))));
|
|
660
660
|
}
|
|
661
661
|
fromValue(value_0) {
|
|
662
662
|
return [
|
|
663
663
|
_descriptor_52.fromValue(value_0),
|
|
664
664
|
_descriptor_54.fromValue(value_0),
|
|
665
665
|
_descriptor_34.fromValue(value_0),
|
|
666
|
-
|
|
666
|
+
_descriptor_12.fromValue(value_0),
|
|
667
667
|
_descriptor_54.fromValue(value_0)
|
|
668
668
|
]
|
|
669
669
|
}
|
|
670
670
|
toValue(value_0) {
|
|
671
|
-
return _descriptor_52.toValue(value_0[0]).concat(_descriptor_54.toValue(value_0[1]).concat(_descriptor_34.toValue(value_0[2]).concat(
|
|
671
|
+
return _descriptor_52.toValue(value_0[0]).concat(_descriptor_54.toValue(value_0[1]).concat(_descriptor_34.toValue(value_0[2]).concat(_descriptor_12.toValue(value_0[3]).concat(_descriptor_54.toValue(value_0[4])))));
|
|
672
672
|
}
|
|
673
673
|
}
|
|
674
674
|
|
|
@@ -676,16 +676,16 @@ const _descriptor_59 = new _tuple_5();
|
|
|
676
676
|
|
|
677
677
|
class _tuple_6 {
|
|
678
678
|
alignment() {
|
|
679
|
-
return _descriptor_52.alignment().concat(
|
|
679
|
+
return _descriptor_52.alignment().concat(_descriptor_23.alignment());
|
|
680
680
|
}
|
|
681
681
|
fromValue(value_0) {
|
|
682
682
|
return [
|
|
683
683
|
_descriptor_52.fromValue(value_0),
|
|
684
|
-
|
|
684
|
+
_descriptor_23.fromValue(value_0)
|
|
685
685
|
]
|
|
686
686
|
}
|
|
687
687
|
toValue(value_0) {
|
|
688
|
-
return _descriptor_52.toValue(value_0[0]).concat(
|
|
688
|
+
return _descriptor_52.toValue(value_0[0]).concat(_descriptor_23.toValue(value_0[1]));
|
|
689
689
|
}
|
|
690
690
|
}
|
|
691
691
|
|
|
@@ -693,16 +693,16 @@ const _descriptor_60 = new _tuple_6();
|
|
|
693
693
|
|
|
694
694
|
class _tuple_7 {
|
|
695
695
|
alignment() {
|
|
696
|
-
return _descriptor_52.alignment().concat(
|
|
696
|
+
return _descriptor_52.alignment().concat(_descriptor_0.alignment());
|
|
697
697
|
}
|
|
698
698
|
fromValue(value_0) {
|
|
699
699
|
return [
|
|
700
700
|
_descriptor_52.fromValue(value_0),
|
|
701
|
-
|
|
701
|
+
_descriptor_0.fromValue(value_0)
|
|
702
702
|
]
|
|
703
703
|
}
|
|
704
704
|
toValue(value_0) {
|
|
705
|
-
return _descriptor_52.toValue(value_0[0]).concat(
|
|
705
|
+
return _descriptor_52.toValue(value_0[0]).concat(_descriptor_0.toValue(value_0[1]));
|
|
706
706
|
}
|
|
707
707
|
}
|
|
708
708
|
|
|
@@ -710,26 +710,26 @@ const _descriptor_61 = new _tuple_7();
|
|
|
710
710
|
|
|
711
711
|
class _tuple_8 {
|
|
712
712
|
alignment() {
|
|
713
|
-
return _descriptor_52.alignment().concat(
|
|
713
|
+
return _descriptor_52.alignment().concat(_descriptor_2.alignment().concat(_descriptor_2.alignment().concat(_descriptor_33.alignment().concat(_descriptor_33.alignment().concat(_descriptor_2.alignment().concat(_descriptor_34.alignment().concat(_descriptor_33.alignment().concat(_descriptor_4.alignment().concat(_descriptor_5.alignment().concat(_descriptor_6.alignment().concat(_descriptor_12.alignment())))))))))));
|
|
714
714
|
}
|
|
715
715
|
fromValue(value_0) {
|
|
716
716
|
return [
|
|
717
717
|
_descriptor_52.fromValue(value_0),
|
|
718
|
-
|
|
719
|
-
|
|
718
|
+
_descriptor_2.fromValue(value_0),
|
|
719
|
+
_descriptor_2.fromValue(value_0),
|
|
720
720
|
_descriptor_33.fromValue(value_0),
|
|
721
721
|
_descriptor_33.fromValue(value_0),
|
|
722
|
-
|
|
722
|
+
_descriptor_2.fromValue(value_0),
|
|
723
723
|
_descriptor_34.fromValue(value_0),
|
|
724
724
|
_descriptor_33.fromValue(value_0),
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
725
|
+
_descriptor_4.fromValue(value_0),
|
|
726
|
+
_descriptor_5.fromValue(value_0),
|
|
727
|
+
_descriptor_6.fromValue(value_0),
|
|
728
|
+
_descriptor_12.fromValue(value_0)
|
|
729
729
|
]
|
|
730
730
|
}
|
|
731
731
|
toValue(value_0) {
|
|
732
|
-
return _descriptor_52.toValue(value_0[0]).concat(
|
|
732
|
+
return _descriptor_52.toValue(value_0[0]).concat(_descriptor_2.toValue(value_0[1]).concat(_descriptor_2.toValue(value_0[2]).concat(_descriptor_33.toValue(value_0[3]).concat(_descriptor_33.toValue(value_0[4]).concat(_descriptor_2.toValue(value_0[5]).concat(_descriptor_34.toValue(value_0[6]).concat(_descriptor_33.toValue(value_0[7]).concat(_descriptor_4.toValue(value_0[8]).concat(_descriptor_5.toValue(value_0[9]).concat(_descriptor_6.toValue(value_0[10]).concat(_descriptor_12.toValue(value_0[11]))))))))))));
|
|
733
733
|
}
|
|
734
734
|
}
|
|
735
735
|
|
|
@@ -788,17 +788,17 @@ const _descriptor_65 = new _Secp256k1EcdsaSignature_0();
|
|
|
788
788
|
|
|
789
789
|
class _Either_0 {
|
|
790
790
|
alignment() {
|
|
791
|
-
return
|
|
791
|
+
return _descriptor_4.alignment().concat(_descriptor_7.alignment().concat(_descriptor_7.alignment()));
|
|
792
792
|
}
|
|
793
793
|
fromValue(value_0) {
|
|
794
794
|
return {
|
|
795
|
-
is_left:
|
|
796
|
-
left:
|
|
797
|
-
right:
|
|
795
|
+
is_left: _descriptor_4.fromValue(value_0),
|
|
796
|
+
left: _descriptor_7.fromValue(value_0),
|
|
797
|
+
right: _descriptor_7.fromValue(value_0)
|
|
798
798
|
}
|
|
799
799
|
}
|
|
800
800
|
toValue(value_0) {
|
|
801
|
-
return
|
|
801
|
+
return _descriptor_4.toValue(value_0.is_left).concat(_descriptor_7.toValue(value_0.left).concat(_descriptor_7.toValue(value_0.right)));
|
|
802
802
|
}
|
|
803
803
|
}
|
|
804
804
|
|
|
@@ -806,15 +806,15 @@ const _descriptor_66 = new _Either_0();
|
|
|
806
806
|
|
|
807
807
|
class _UserAddress_0 {
|
|
808
808
|
alignment() {
|
|
809
|
-
return
|
|
809
|
+
return _descriptor_7.alignment();
|
|
810
810
|
}
|
|
811
811
|
fromValue(value_0) {
|
|
812
812
|
return {
|
|
813
|
-
bytes:
|
|
813
|
+
bytes: _descriptor_7.fromValue(value_0)
|
|
814
814
|
}
|
|
815
815
|
}
|
|
816
816
|
toValue(value_0) {
|
|
817
|
-
return
|
|
817
|
+
return _descriptor_7.toValue(value_0.bytes);
|
|
818
818
|
}
|
|
819
819
|
}
|
|
820
820
|
|
|
@@ -822,17 +822,17 @@ const _descriptor_67 = new _UserAddress_0();
|
|
|
822
822
|
|
|
823
823
|
class _Either_1 {
|
|
824
824
|
alignment() {
|
|
825
|
-
return
|
|
825
|
+
return _descriptor_4.alignment().concat(_descriptor_13.alignment().concat(_descriptor_67.alignment()));
|
|
826
826
|
}
|
|
827
827
|
fromValue(value_0) {
|
|
828
828
|
return {
|
|
829
|
-
is_left:
|
|
830
|
-
left:
|
|
829
|
+
is_left: _descriptor_4.fromValue(value_0),
|
|
830
|
+
left: _descriptor_13.fromValue(value_0),
|
|
831
831
|
right: _descriptor_67.fromValue(value_0)
|
|
832
832
|
}
|
|
833
833
|
}
|
|
834
834
|
toValue(value_0) {
|
|
835
|
-
return
|
|
835
|
+
return _descriptor_4.toValue(value_0.is_left).concat(_descriptor_13.toValue(value_0.left).concat(_descriptor_67.toValue(value_0.right)));
|
|
836
836
|
}
|
|
837
837
|
}
|
|
838
838
|
|
|
@@ -840,16 +840,16 @@ const _descriptor_68 = new _Either_1();
|
|
|
840
840
|
|
|
841
841
|
class _Maybe_2 {
|
|
842
842
|
alignment() {
|
|
843
|
-
return
|
|
843
|
+
return _descriptor_4.alignment().concat(_descriptor_68.alignment());
|
|
844
844
|
}
|
|
845
845
|
fromValue(value_0) {
|
|
846
846
|
return {
|
|
847
|
-
is_some:
|
|
847
|
+
is_some: _descriptor_4.fromValue(value_0),
|
|
848
848
|
value: _descriptor_68.fromValue(value_0)
|
|
849
849
|
}
|
|
850
850
|
}
|
|
851
851
|
toValue(value_0) {
|
|
852
|
-
return
|
|
852
|
+
return _descriptor_4.toValue(value_0.is_some).concat(_descriptor_68.toValue(value_0.value));
|
|
853
853
|
}
|
|
854
854
|
}
|
|
855
855
|
|
|
@@ -890,6 +890,76 @@ export class Contract {
|
|
|
890
890
|
async tronAddress(context, ...args_1) {
|
|
891
891
|
return { result: pureCircuits.tronAddress(...args_1), context };
|
|
892
892
|
},
|
|
893
|
+
async tronInt64Max(context, ...args_1) {
|
|
894
|
+
return { result: pureCircuits.tronInt64Max(...args_1), context };
|
|
895
|
+
},
|
|
896
|
+
async tronMaxExpirationSpanSeconds(context, ...args_1) {
|
|
897
|
+
return { result: pureCircuits.tronMaxExpirationSpanSeconds(...args_1), context };
|
|
898
|
+
},
|
|
899
|
+
assertTronExpirationWindowV1: async (...args_1) => {
|
|
900
|
+
if (args_1.length !== 5) {
|
|
901
|
+
throw new __compactRuntime.CompactError(`assertTronExpirationWindowV1: expected 5 arguments (as invoked from Typescript), received ${args_1.length}`);
|
|
902
|
+
}
|
|
903
|
+
const contextOrig_0 = args_1[0];
|
|
904
|
+
const expiration_0 = args_1[1];
|
|
905
|
+
const expirationSeconds_0 = args_1[2];
|
|
906
|
+
const minRemainingSeconds_0 = args_1[3];
|
|
907
|
+
const capMarginSeconds_0 = args_1[4];
|
|
908
|
+
if (!(typeof(contextOrig_0) === 'object' && contextOrig_0.callContext.currentQueryContext != undefined)) {
|
|
909
|
+
__compactRuntime.typeError('assertTronExpirationWindowV1',
|
|
910
|
+
'argument 1 (as invoked from Typescript)',
|
|
911
|
+
'Signet.compact line 792 char 3',
|
|
912
|
+
'CircuitContext',
|
|
913
|
+
contextOrig_0)
|
|
914
|
+
}
|
|
915
|
+
if (!(typeof(expiration_0) === 'bigint' && expiration_0 >= 0n && expiration_0 <= 18446744073709551615n)) {
|
|
916
|
+
__compactRuntime.typeError('assertTronExpirationWindowV1',
|
|
917
|
+
'argument 1 (argument 2 as invoked from Typescript)',
|
|
918
|
+
'Signet.compact line 792 char 3',
|
|
919
|
+
'Uint<0..18446744073709551616>',
|
|
920
|
+
expiration_0)
|
|
921
|
+
}
|
|
922
|
+
if (!(typeof(expirationSeconds_0) === 'bigint' && expirationSeconds_0 >= 0n && expirationSeconds_0 <= 18446744073709551615n)) {
|
|
923
|
+
__compactRuntime.typeError('assertTronExpirationWindowV1',
|
|
924
|
+
'argument 2 (argument 3 as invoked from Typescript)',
|
|
925
|
+
'Signet.compact line 792 char 3',
|
|
926
|
+
'Uint<0..18446744073709551616>',
|
|
927
|
+
expirationSeconds_0)
|
|
928
|
+
}
|
|
929
|
+
if (!(typeof(minRemainingSeconds_0) === 'bigint' && minRemainingSeconds_0 >= 0n && minRemainingSeconds_0 <= 18446744073709551615n)) {
|
|
930
|
+
__compactRuntime.typeError('assertTronExpirationWindowV1',
|
|
931
|
+
'argument 3 (argument 4 as invoked from Typescript)',
|
|
932
|
+
'Signet.compact line 792 char 3',
|
|
933
|
+
'Uint<0..18446744073709551616>',
|
|
934
|
+
minRemainingSeconds_0)
|
|
935
|
+
}
|
|
936
|
+
if (!(typeof(capMarginSeconds_0) === 'bigint' && capMarginSeconds_0 >= 0n && capMarginSeconds_0 <= 18446744073709551615n)) {
|
|
937
|
+
__compactRuntime.typeError('assertTronExpirationWindowV1',
|
|
938
|
+
'argument 4 (argument 5 as invoked from Typescript)',
|
|
939
|
+
'Signet.compact line 792 char 3',
|
|
940
|
+
'Uint<0..18446744073709551616>',
|
|
941
|
+
capMarginSeconds_0)
|
|
942
|
+
}
|
|
943
|
+
const context = __compactRuntime.copyCircuitContext(contextOrig_0);
|
|
944
|
+
const partialProofData = {
|
|
945
|
+
input: {
|
|
946
|
+
value: _descriptor_2.toValue(expiration_0).concat(_descriptor_2.toValue(expirationSeconds_0).concat(_descriptor_2.toValue(minRemainingSeconds_0).concat(_descriptor_2.toValue(capMarginSeconds_0)))),
|
|
947
|
+
alignment: _descriptor_2.alignment().concat(_descriptor_2.alignment().concat(_descriptor_2.alignment().concat(_descriptor_2.alignment())))
|
|
948
|
+
},
|
|
949
|
+
output: undefined,
|
|
950
|
+
publicTranscript: [],
|
|
951
|
+
privateTranscriptOutputs: []
|
|
952
|
+
};
|
|
953
|
+
const result_0 = await this._assertTronExpirationWindowV1_0(context,
|
|
954
|
+
partialProofData,
|
|
955
|
+
expiration_0,
|
|
956
|
+
expirationSeconds_0,
|
|
957
|
+
minRemainingSeconds_0,
|
|
958
|
+
capMarginSeconds_0);
|
|
959
|
+
partialProofData.output = { value: _descriptor_35.toValue(result_0), alignment: _descriptor_35.alignment() };
|
|
960
|
+
__compactRuntime.finalizeCallProofData(context, partialProofData);
|
|
961
|
+
return { result: result_0, context: context, gasCost: context.callContext.currentGasCost };
|
|
962
|
+
},
|
|
893
963
|
async evmAddressAbiWord(context, ...args_1) {
|
|
894
964
|
return { result: pureCircuits.evmAddressAbiWord(...args_1), context };
|
|
895
965
|
},
|
|
@@ -950,27 +1020,34 @@ export class Contract {
|
|
|
950
1020
|
async constructSignBidirectionalEventV1_1_0_0_34(context, ...args_1) {
|
|
951
1021
|
return { result: pureCircuits.constructSignBidirectionalEventV1_1_0_0_34(...args_1), context };
|
|
952
1022
|
},
|
|
953
|
-
async
|
|
954
|
-
return { result: pureCircuits.
|
|
1023
|
+
async calculateTronTriggerSmartContractTxParamsDigestV1_1(context, ...args_1) {
|
|
1024
|
+
return { result: pureCircuits.calculateTronTriggerSmartContractTxParamsDigestV1_1(...args_1), context };
|
|
1025
|
+
},
|
|
1026
|
+
async calculateTronTriggerSmartContractTxParamsDigestV1_2(context, ...args_1) {
|
|
1027
|
+
return { result: pureCircuits.calculateTronTriggerSmartContractTxParamsDigestV1_2(...args_1), context };
|
|
955
1028
|
},
|
|
956
|
-
async
|
|
957
|
-
return { result: pureCircuits.
|
|
1029
|
+
async calculateTronTriggerSmartContractRequestIdV1_1_0(context, ...args_1) {
|
|
1030
|
+
return { result: pureCircuits.calculateTronTriggerSmartContractRequestIdV1_1_0(...args_1), context };
|
|
958
1031
|
},
|
|
959
|
-
async
|
|
960
|
-
return { result: pureCircuits.
|
|
1032
|
+
async calculateTronTriggerSmartContractRequestIdV1_2_0(context, ...args_1) {
|
|
1033
|
+
return { result: pureCircuits.calculateTronTriggerSmartContractRequestIdV1_2_0(...args_1), context };
|
|
961
1034
|
},
|
|
962
|
-
async
|
|
963
|
-
return { result: pureCircuits.
|
|
1035
|
+
async calculateTronTriggerSmartContractRequestIdV1_1_34(context, ...args_1) {
|
|
1036
|
+
return { result: pureCircuits.calculateTronTriggerSmartContractRequestIdV1_1_34(...args_1), context };
|
|
964
1037
|
},
|
|
965
|
-
async
|
|
966
|
-
return { result: pureCircuits.
|
|
1038
|
+
async calculateTronTriggerSmartContractRequestIdV1_2_34(context, ...args_1) {
|
|
1039
|
+
return { result: pureCircuits.calculateTronTriggerSmartContractRequestIdV1_2_34(...args_1), context };
|
|
967
1040
|
},
|
|
968
|
-
async
|
|
969
|
-
return { result: pureCircuits.
|
|
1041
|
+
async assertTronTriggerSmartContractTxParamsV1_2(context, ...args_1) {
|
|
1042
|
+
return { result: pureCircuits.assertTronTriggerSmartContractTxParamsV1_2(...args_1), context };
|
|
970
1043
|
}
|
|
971
1044
|
};
|
|
972
|
-
this.impureCircuits = {
|
|
973
|
-
|
|
1045
|
+
this.impureCircuits = {
|
|
1046
|
+
assertTronExpirationWindowV1: this.circuits.assertTronExpirationWindowV1
|
|
1047
|
+
};
|
|
1048
|
+
this.provableCircuits = {
|
|
1049
|
+
assertTronExpirationWindowV1: this.circuits.assertTronExpirationWindowV1
|
|
1050
|
+
};
|
|
974
1051
|
}
|
|
975
1052
|
async initialState(...args_0) {
|
|
976
1053
|
if (args_0.length !== 1) {
|
|
@@ -989,6 +1066,7 @@ export class Contract {
|
|
|
989
1066
|
const state_0 = new __compactRuntime.ContractState();
|
|
990
1067
|
let stateValue_0 = __compactRuntime.StateValue.newArray();
|
|
991
1068
|
state_0.data = new __compactRuntime.ChargedState(stateValue_0);
|
|
1069
|
+
state_0.setOperation('assertTronExpirationWindowV1', new __compactRuntime.ContractOperation());
|
|
992
1070
|
const context = __compactRuntime.createCircuitContext({circuitId: 'constructor', contractAddress: __compactRuntime.dummyContractAddress(), coinPublicKeyOrZswapState: constructorContext_0.initialZswapLocalState.coinPublicKey, contractState: state_0.data, privateState: constructorContext_0.initialPrivateState});
|
|
993
1071
|
const partialProofData = {
|
|
994
1072
|
input: { value: [], alignment: [] },
|
|
@@ -1003,6 +1081,27 @@ export class Contract {
|
|
|
1003
1081
|
currentZswapLocalState: context.callContext.currentZswapLocalState
|
|
1004
1082
|
}
|
|
1005
1083
|
}
|
|
1084
|
+
async _blockTimeLt_0(context, partialProofData, time_0) {
|
|
1085
|
+
return _descriptor_4.fromValue(__compactRuntime.queryLedgerState(context,
|
|
1086
|
+
partialProofData,
|
|
1087
|
+
[
|
|
1088
|
+
{ dup: { n: 2 } },
|
|
1089
|
+
{ idx: { cached: true,
|
|
1090
|
+
pushPath: false,
|
|
1091
|
+
path: [
|
|
1092
|
+
{ tag: 'value',
|
|
1093
|
+
value: { value: _descriptor_12.toValue(2n),
|
|
1094
|
+
alignment: _descriptor_12.alignment() } }] } },
|
|
1095
|
+
{ push: { storage: false,
|
|
1096
|
+
value: __compactRuntime.StateValue.newCell({ value: _descriptor_2.toValue(time_0),
|
|
1097
|
+
alignment: _descriptor_2.alignment() }).encode() } },
|
|
1098
|
+
'lt',
|
|
1099
|
+
{ popeq: { cached: true,
|
|
1100
|
+
result: undefined } }]).value);
|
|
1101
|
+
}
|
|
1102
|
+
async _blockTimeGte_0(context, partialProofData, time_0) {
|
|
1103
|
+
return !await this._blockTimeLt_0(context, partialProofData, time_0);
|
|
1104
|
+
}
|
|
1006
1105
|
_reverseBytes32_0(b_0) {
|
|
1007
1106
|
const v_0 = Array.from(b_0, BigInt);
|
|
1008
1107
|
return Uint8Array.from([v_0[31],
|
|
@@ -1570,7 +1669,7 @@ export class Contract {
|
|
|
1570
1669
|
_tronAddress_0(evmAddress_0) {
|
|
1571
1670
|
return Uint8Array.from([65n, ...Array.from(evmAddress_0, BigInt)], Number);
|
|
1572
1671
|
}
|
|
1573
|
-
|
|
1672
|
+
_calculateTronTriggerSmartContractTxParamsDigestV1_0(txParams_0) {
|
|
1574
1673
|
const calldata_0 = txParams_0.calldata;
|
|
1575
1674
|
const noWords_0 = calldata_0.is_some ? calldata_0.value.noWords : 0n;
|
|
1576
1675
|
const selector_0 = calldata_0.is_some ?
|
|
@@ -1610,7 +1709,7 @@ export class Contract {
|
|
|
1610
1709
|
calldata_0.value.words);
|
|
1611
1710
|
return this._upgradeFromTransient_0(wordsScan_0[1]);
|
|
1612
1711
|
}
|
|
1613
|
-
|
|
1712
|
+
_calculateTronTriggerSmartContractTxParamsDigestV1_1(txParams_0) {
|
|
1614
1713
|
const calldata_0 = txParams_0.calldata;
|
|
1615
1714
|
const noWords_0 = calldata_0.is_some ? calldata_0.value.noWords : 0n;
|
|
1616
1715
|
const selector_0 = calldata_0.is_some ?
|
|
@@ -1650,58 +1749,130 @@ export class Contract {
|
|
|
1650
1749
|
calldata_0.value.words);
|
|
1651
1750
|
return this._upgradeFromTransient_0(wordsScan_0[1]);
|
|
1652
1751
|
}
|
|
1653
|
-
|
|
1752
|
+
_calculateTronTriggerSmartContractRequestIdV1_0(request_0) {
|
|
1654
1753
|
__compactRuntime.assert(request_0.txParamType === 1,
|
|
1655
|
-
'txParamType must tag txParams as
|
|
1754
|
+
'txParamType must tag txParams as tronTriggerSmartContract');
|
|
1656
1755
|
const preimage_0 = { keyVersion: request_0.keyVersion,
|
|
1657
1756
|
sender: request_0.sender,
|
|
1658
1757
|
path: request_0.path,
|
|
1659
1758
|
algo: request_0.algo,
|
|
1660
1759
|
txParamType: request_0.txParamType,
|
|
1661
1760
|
txParamsDigest:
|
|
1662
|
-
this.
|
|
1761
|
+
this._calculateTronTriggerSmartContractTxParamsDigestV1_0(request_0.txParams),
|
|
1663
1762
|
executionDest: request_0.executionDest };
|
|
1664
1763
|
return this._calculateRequestIdV1_0(preimage_0);
|
|
1665
1764
|
}
|
|
1666
|
-
|
|
1765
|
+
_calculateTronTriggerSmartContractRequestIdV1_1(request_0) {
|
|
1667
1766
|
__compactRuntime.assert(request_0.txParamType === 1,
|
|
1668
|
-
'txParamType must tag txParams as
|
|
1767
|
+
'txParamType must tag txParams as tronTriggerSmartContract');
|
|
1669
1768
|
const preimage_0 = { keyVersion: request_0.keyVersion,
|
|
1670
1769
|
sender: request_0.sender,
|
|
1671
1770
|
path: request_0.path,
|
|
1672
1771
|
algo: request_0.algo,
|
|
1673
1772
|
txParamType: request_0.txParamType,
|
|
1674
1773
|
txParamsDigest:
|
|
1675
|
-
this.
|
|
1774
|
+
this._calculateTronTriggerSmartContractTxParamsDigestV1_1(request_0.txParams),
|
|
1676
1775
|
executionDest: request_0.executionDest };
|
|
1677
1776
|
return this._calculateRequestIdV1_0(preimage_0);
|
|
1678
1777
|
}
|
|
1679
|
-
|
|
1778
|
+
_calculateTronTriggerSmartContractRequestIdV1_2(request_0) {
|
|
1680
1779
|
__compactRuntime.assert(request_0.txParamType === 1,
|
|
1681
|
-
'txParamType must tag txParams as
|
|
1780
|
+
'txParamType must tag txParams as tronTriggerSmartContract');
|
|
1682
1781
|
const preimage_0 = { keyVersion: request_0.keyVersion,
|
|
1683
1782
|
sender: request_0.sender,
|
|
1684
1783
|
path: request_0.path,
|
|
1685
1784
|
algo: request_0.algo,
|
|
1686
1785
|
txParamType: request_0.txParamType,
|
|
1687
1786
|
txParamsDigest:
|
|
1688
|
-
this.
|
|
1787
|
+
this._calculateTronTriggerSmartContractTxParamsDigestV1_0(request_0.txParams),
|
|
1689
1788
|
executionDest: request_0.executionDest };
|
|
1690
1789
|
return this._calculateRequestIdV1_0(preimage_0);
|
|
1691
1790
|
}
|
|
1692
|
-
|
|
1791
|
+
_calculateTronTriggerSmartContractRequestIdV1_3(request_0) {
|
|
1693
1792
|
__compactRuntime.assert(request_0.txParamType === 1,
|
|
1694
|
-
'txParamType must tag txParams as
|
|
1793
|
+
'txParamType must tag txParams as tronTriggerSmartContract');
|
|
1695
1794
|
const preimage_0 = { keyVersion: request_0.keyVersion,
|
|
1696
1795
|
sender: request_0.sender,
|
|
1697
1796
|
path: request_0.path,
|
|
1698
1797
|
algo: request_0.algo,
|
|
1699
1798
|
txParamType: request_0.txParamType,
|
|
1700
1799
|
txParamsDigest:
|
|
1701
|
-
this.
|
|
1800
|
+
this._calculateTronTriggerSmartContractTxParamsDigestV1_1(request_0.txParams),
|
|
1702
1801
|
executionDest: request_0.executionDest };
|
|
1703
1802
|
return this._calculateRequestIdV1_0(preimage_0);
|
|
1704
1803
|
}
|
|
1804
|
+
_tronInt64Max_0() { return 9223372036854775807n; }
|
|
1805
|
+
_tronMaxExpirationSpanSeconds_0() { return 86400n; }
|
|
1806
|
+
_assertTronTriggerSmartContractTxParamsV1_0(txParams_0) {
|
|
1807
|
+
let t_0;
|
|
1808
|
+
__compactRuntime.assert((t_0 = txParams_0.timestamp,
|
|
1809
|
+
t_0 <= this._tronInt64Max_0()),
|
|
1810
|
+
'Tron timestamp exceeds int64');
|
|
1811
|
+
let t_1;
|
|
1812
|
+
__compactRuntime.assert((t_1 = txParams_0.expiration,
|
|
1813
|
+
t_1 <= this._tronInt64Max_0()),
|
|
1814
|
+
'Tron expiration exceeds int64');
|
|
1815
|
+
let t_2;
|
|
1816
|
+
__compactRuntime.assert((t_2 = txParams_0.feeLimit,
|
|
1817
|
+
t_2 <= this._tronInt64Max_0()),
|
|
1818
|
+
'Tron fee limit exceeds int64');
|
|
1819
|
+
let t_3;
|
|
1820
|
+
__compactRuntime.assert((t_3 = txParams_0.callValue,
|
|
1821
|
+
t_3 <= this._tronInt64Max_0()),
|
|
1822
|
+
'Tron call value exceeds int64');
|
|
1823
|
+
let t_4;
|
|
1824
|
+
__compactRuntime.assert((t_4 = txParams_0.expiration,
|
|
1825
|
+
t_4 > txParams_0.timestamp),
|
|
1826
|
+
'Tron expiration must follow its timestamp');
|
|
1827
|
+
return [];
|
|
1828
|
+
}
|
|
1829
|
+
async _assertTronExpirationWindowV1_0(context,
|
|
1830
|
+
partialProofData,
|
|
1831
|
+
expiration_0,
|
|
1832
|
+
expirationSeconds_0,
|
|
1833
|
+
minRemainingSeconds_0,
|
|
1834
|
+
capMarginSeconds_0)
|
|
1835
|
+
{
|
|
1836
|
+
const ms_0 = expiration_0;
|
|
1837
|
+
const seconds_0 = expirationSeconds_0;
|
|
1838
|
+
const minRemaining_0 = minRemainingSeconds_0;
|
|
1839
|
+
let t_0;
|
|
1840
|
+
__compactRuntime.assert((t_0 = seconds_0 * 1000n, t_0 <= ms_0)
|
|
1841
|
+
&&
|
|
1842
|
+
ms_0 < seconds_0 * 1000n + 1000n,
|
|
1843
|
+
'expirationSeconds is not the expiration in whole seconds');
|
|
1844
|
+
__compactRuntime.assert(seconds_0 > minRemaining_0
|
|
1845
|
+
&&
|
|
1846
|
+
await this._blockTimeLt_0(context,
|
|
1847
|
+
partialProofData,
|
|
1848
|
+
(__compactRuntime.assert(seconds_0
|
|
1849
|
+
>=
|
|
1850
|
+
minRemaining_0,
|
|
1851
|
+
'result of subtraction would be negative'),
|
|
1852
|
+
seconds_0
|
|
1853
|
+
-
|
|
1854
|
+
minRemaining_0)),
|
|
1855
|
+
'Tron expiration too close to the block time');
|
|
1856
|
+
const earliest_0 = seconds_0 + 1n + capMarginSeconds_0;
|
|
1857
|
+
let t_1;
|
|
1858
|
+
__compactRuntime.assert(earliest_0 <= this._tronMaxExpirationSpanSeconds_0()
|
|
1859
|
+
||
|
|
1860
|
+
await this._blockTimeGte_0(context,
|
|
1861
|
+
partialProofData,
|
|
1862
|
+
((t1) => {
|
|
1863
|
+
if (t1 > 18446744073709551615n) {
|
|
1864
|
+
throw new __compactRuntime.CompactError('Signet.compact line 816 char 22: cast from Field or Uint value to smaller Uint value failed: ' + t1 + ' is greater than 18446744073709551615');
|
|
1865
|
+
}
|
|
1866
|
+
return t1;
|
|
1867
|
+
})((t_1 = this._tronMaxExpirationSpanSeconds_0(),
|
|
1868
|
+
(__compactRuntime.assert(earliest_0
|
|
1869
|
+
>=
|
|
1870
|
+
t_1,
|
|
1871
|
+
'result of subtraction would be negative'),
|
|
1872
|
+
earliest_0 - t_1)))),
|
|
1873
|
+
'Tron expiration too far past the block time');
|
|
1874
|
+
return [];
|
|
1875
|
+
}
|
|
1705
1876
|
_evmAddressAbiWord_0(addr_0) {
|
|
1706
1877
|
return Uint8Array.from([...Array.from(new Uint8Array(12), BigInt),
|
|
1707
1878
|
...Array.from(addr_0, BigInt)],
|
|
@@ -1710,7 +1881,7 @@ export class Contract {
|
|
|
1710
1881
|
_numericAbiWord_0(value_0) {
|
|
1711
1882
|
const le_0 = Array.from(__compactRuntime.convertBigintToBytes(16,
|
|
1712
1883
|
value_0,
|
|
1713
|
-
'Signet.compact line
|
|
1884
|
+
'Signet.compact line 837 char 17'),
|
|
1714
1885
|
BigInt);
|
|
1715
1886
|
return Uint8Array.from([...Array.from(new Uint8Array(16), BigInt),
|
|
1716
1887
|
le_0[15],
|
|
@@ -1792,7 +1963,7 @@ export class Contract {
|
|
|
1792
1963
|
v_0[31]);
|
|
1793
1964
|
return ((t1) => {
|
|
1794
1965
|
if (t1 > 340282366920938463463374607431768211455n) {
|
|
1795
|
-
throw new __compactRuntime.CompactError('Signet.compact line
|
|
1966
|
+
throw new __compactRuntime.CompactError('Signet.compact line 889 char 12: cast from Field or Uint value to smaller Uint value failed: ' + t1 + ' is greater than 340282366920938463463374607431768211455');
|
|
1796
1967
|
}
|
|
1797
1968
|
return t1;
|
|
1798
1969
|
})(b15_0);
|
|
@@ -1804,7 +1975,7 @@ export class Contract {
|
|
|
1804
1975
|
32,
|
|
1805
1976
|
x_0,
|
|
1806
1977
|
'Uint<0..340282366920938463463374607431768211456>',
|
|
1807
|
-
'Signet.compact line
|
|
1978
|
+
'Signet.compact line 900 char 12');
|
|
1808
1979
|
}
|
|
1809
1980
|
_abiWordToBool_0(word_0) {
|
|
1810
1981
|
__compactRuntime.assert(__compactRuntime.convertBytesToUint(52435875175126190479447740508185965837690552500527637822603658699938581184512n,
|
|
@@ -1812,7 +1983,7 @@ export class Contract {
|
|
|
1812
1983
|
((e, i) => e.slice(i, i+31))(word_0,
|
|
1813
1984
|
Number(0n)),
|
|
1814
1985
|
'Field',
|
|
1815
|
-
'Signet.compact line
|
|
1986
|
+
'Signet.compact line 906 char 12')
|
|
1816
1987
|
===
|
|
1817
1988
|
0n,
|
|
1818
1989
|
'ABI word is not a canonical Boolean');
|
|
@@ -1821,7 +1992,7 @@ export class Contract {
|
|
|
1821
1992
|
((e, i) => e.slice(i, i+1))(word_0,
|
|
1822
1993
|
Number(31n)),
|
|
1823
1994
|
'Field',
|
|
1824
|
-
'Signet.compact line
|
|
1995
|
+
'Signet.compact line 907 char 18');
|
|
1825
1996
|
__compactRuntime.assert(last_0 === 0n || last_0 === 1n,
|
|
1826
1997
|
'ABI word is not a canonical Boolean');
|
|
1827
1998
|
return last_0 === 1n;
|
|
@@ -1897,23 +2068,26 @@ export class Contract {
|
|
|
1897
2068
|
request_0.params,
|
|
1898
2069
|
request_0.outputDeserializationSchema);
|
|
1899
2070
|
}
|
|
1900
|
-
|
|
1901
|
-
return this.
|
|
2071
|
+
_calculateTronTriggerSmartContractTxParamsDigestV1_1_0(txParams_0) {
|
|
2072
|
+
return this._calculateTronTriggerSmartContractTxParamsDigestV1_0(txParams_0);
|
|
2073
|
+
}
|
|
2074
|
+
_calculateTronTriggerSmartContractTxParamsDigestV1_2_0(txParams_0) {
|
|
2075
|
+
return this._calculateTronTriggerSmartContractTxParamsDigestV1_1(txParams_0);
|
|
1902
2076
|
}
|
|
1903
|
-
|
|
1904
|
-
return this.
|
|
2077
|
+
_calculateTronTriggerSmartContractRequestIdV1_1_0_0(request_0) {
|
|
2078
|
+
return this._calculateTronTriggerSmartContractRequestIdV1_0(request_0);
|
|
1905
2079
|
}
|
|
1906
|
-
|
|
1907
|
-
return this.
|
|
2080
|
+
_calculateTronTriggerSmartContractRequestIdV1_2_0_0(request_0) {
|
|
2081
|
+
return this._calculateTronTriggerSmartContractRequestIdV1_1(request_0);
|
|
1908
2082
|
}
|
|
1909
|
-
|
|
1910
|
-
return this.
|
|
2083
|
+
_calculateTronTriggerSmartContractRequestIdV1_1_34_0(request_0) {
|
|
2084
|
+
return this._calculateTronTriggerSmartContractRequestIdV1_2(request_0);
|
|
1911
2085
|
}
|
|
1912
|
-
|
|
1913
|
-
return this.
|
|
2086
|
+
_calculateTronTriggerSmartContractRequestIdV1_2_34_0(request_0) {
|
|
2087
|
+
return this._calculateTronTriggerSmartContractRequestIdV1_3(request_0);
|
|
1914
2088
|
}
|
|
1915
|
-
|
|
1916
|
-
|
|
2089
|
+
_assertTronTriggerSmartContractTxParamsV1_2_0(txParams_0) {
|
|
2090
|
+
this._assertTronTriggerSmartContractTxParamsV1_0(txParams_0); return [];
|
|
1917
2091
|
}
|
|
1918
2092
|
_equal_0(x0, y0) {
|
|
1919
2093
|
if (x0.identity) { return y0.identity; }
|
|
@@ -2028,7 +2202,7 @@ export const pureCircuits = {
|
|
|
2028
2202
|
__compactRuntime.typeError('calculateRequestIdV1',
|
|
2029
2203
|
'argument 1',
|
|
2030
2204
|
'Signet.compact line 235 char 3',
|
|
2031
|
-
'struct RequestIdPreimageV1<keyVersion: Uint<0..256>, sender: struct ContractAddress<bytes: Bytes<32>>, path: Bytes<32>, algo: Enum<MPCSignatureAlgorithm, ecdsa, reserved>, txParamType: Enum<TxParamType, evmType2,
|
|
2205
|
+
'struct RequestIdPreimageV1<keyVersion: Uint<0..256>, sender: struct ContractAddress<bytes: Bytes<32>>, path: Bytes<32>, algo: Enum<MPCSignatureAlgorithm, ecdsa, reserved>, txParamType: Enum<TxParamType, evmType2, tronTriggerSmartContract>, txParamsDigest: Bytes<32>, executionDest: Bytes<64>>',
|
|
2032
2206
|
preimage_0)
|
|
2033
2207
|
}
|
|
2034
2208
|
return _dummyContract._calculateRequestIdV1_0(preimage_0);
|
|
@@ -2164,6 +2338,18 @@ export const pureCircuits = {
|
|
|
2164
2338
|
}
|
|
2165
2339
|
return _dummyContract._tronAddress_0(evmAddress_0);
|
|
2166
2340
|
},
|
|
2341
|
+
tronInt64Max: (...args_0) => {
|
|
2342
|
+
if (args_0.length !== 0) {
|
|
2343
|
+
throw new __compactRuntime.CompactError(`tronInt64Max: expected 0 arguments (as invoked from Typescript), received ${args_0.length}`);
|
|
2344
|
+
}
|
|
2345
|
+
return _dummyContract._tronInt64Max_0();
|
|
2346
|
+
},
|
|
2347
|
+
tronMaxExpirationSpanSeconds: (...args_0) => {
|
|
2348
|
+
if (args_0.length !== 0) {
|
|
2349
|
+
throw new __compactRuntime.CompactError(`tronMaxExpirationSpanSeconds: expected 0 arguments (as invoked from Typescript), received ${args_0.length}`);
|
|
2350
|
+
}
|
|
2351
|
+
return _dummyContract._tronMaxExpirationSpanSeconds_0();
|
|
2352
|
+
},
|
|
2167
2353
|
evmAddressAbiWord: (...args_0) => {
|
|
2168
2354
|
if (args_0.length !== 1) {
|
|
2169
2355
|
throw new __compactRuntime.CompactError(`evmAddressAbiWord: expected 1 argument (as invoked from Typescript), received ${args_0.length}`);
|
|
@@ -2172,7 +2358,7 @@ export const pureCircuits = {
|
|
|
2172
2358
|
if (!(addr_0.buffer instanceof ArrayBuffer && addr_0.BYTES_PER_ELEMENT === 1 && addr_0.length === 20)) {
|
|
2173
2359
|
__compactRuntime.typeError('evmAddressAbiWord',
|
|
2174
2360
|
'argument 1',
|
|
2175
|
-
'Signet.compact line
|
|
2361
|
+
'Signet.compact line 828 char 3',
|
|
2176
2362
|
'Bytes<20>',
|
|
2177
2363
|
addr_0)
|
|
2178
2364
|
}
|
|
@@ -2186,7 +2372,7 @@ export const pureCircuits = {
|
|
|
2186
2372
|
if (!(typeof(value_0) === 'bigint' && value_0 >= 0n && value_0 <= 340282366920938463463374607431768211455n)) {
|
|
2187
2373
|
__compactRuntime.typeError('numericAbiWord',
|
|
2188
2374
|
'argument 1',
|
|
2189
|
-
'Signet.compact line
|
|
2375
|
+
'Signet.compact line 834 char 3',
|
|
2190
2376
|
'Uint<0..340282366920938463463374607431768211456>',
|
|
2191
2377
|
value_0)
|
|
2192
2378
|
}
|
|
@@ -2200,7 +2386,7 @@ export const pureCircuits = {
|
|
|
2200
2386
|
if (!(typeof(value_0) === 'boolean')) {
|
|
2201
2387
|
__compactRuntime.typeError('boolAbiWord',
|
|
2202
2388
|
'argument 1',
|
|
2203
|
-
'Signet.compact line
|
|
2389
|
+
'Signet.compact line 847 char 3',
|
|
2204
2390
|
'Boolean',
|
|
2205
2391
|
value_0)
|
|
2206
2392
|
}
|
|
@@ -2214,7 +2400,7 @@ export const pureCircuits = {
|
|
|
2214
2400
|
if (!(word_0.buffer instanceof ArrayBuffer && word_0.BYTES_PER_ELEMENT === 1 && word_0.length === 32)) {
|
|
2215
2401
|
__compactRuntime.typeError('abiWordToUint128',
|
|
2216
2402
|
'argument 1',
|
|
2217
|
-
'Signet.compact line
|
|
2403
|
+
'Signet.compact line 855 char 3',
|
|
2218
2404
|
'Bytes<32>',
|
|
2219
2405
|
word_0)
|
|
2220
2406
|
}
|
|
@@ -2228,7 +2414,7 @@ export const pureCircuits = {
|
|
|
2228
2414
|
if (!(x_0.buffer instanceof ArrayBuffer && x_0.BYTES_PER_ELEMENT === 1 && x_0.length === 32)) {
|
|
2229
2415
|
__compactRuntime.typeError('checkedTruncationU128',
|
|
2230
2416
|
'argument 1',
|
|
2231
|
-
'Signet.compact line
|
|
2417
|
+
'Signet.compact line 896 char 3',
|
|
2232
2418
|
'Bytes<32>',
|
|
2233
2419
|
x_0)
|
|
2234
2420
|
}
|
|
@@ -2242,7 +2428,7 @@ export const pureCircuits = {
|
|
|
2242
2428
|
if (!(word_0.buffer instanceof ArrayBuffer && word_0.BYTES_PER_ELEMENT === 1 && word_0.length === 32)) {
|
|
2243
2429
|
__compactRuntime.typeError('abiWordToBool',
|
|
2244
2430
|
'argument 1',
|
|
2245
|
-
'Signet.compact line
|
|
2431
|
+
'Signet.compact line 905 char 3',
|
|
2246
2432
|
'Bytes<32>',
|
|
2247
2433
|
word_0)
|
|
2248
2434
|
}
|
|
@@ -2256,7 +2442,7 @@ export const pureCircuits = {
|
|
|
2256
2442
|
if (!(serializedOutput_0.buffer instanceof ArrayBuffer && serializedOutput_0.BYTES_PER_ELEMENT === 1 && serializedOutput_0.length === 0)) {
|
|
2257
2443
|
__compactRuntime.typeError('calculateAttestedOutputHash0',
|
|
2258
2444
|
'argument 1',
|
|
2259
|
-
'circuits.compact line
|
|
2445
|
+
'circuits.compact line 40 char 1',
|
|
2260
2446
|
'Bytes<0>',
|
|
2261
2447
|
serializedOutput_0)
|
|
2262
2448
|
}
|
|
@@ -2270,7 +2456,7 @@ export const pureCircuits = {
|
|
|
2270
2456
|
if (!(serializedOutput_0.buffer instanceof ArrayBuffer && serializedOutput_0.BYTES_PER_ELEMENT === 1 && serializedOutput_0.length === 1)) {
|
|
2271
2457
|
__compactRuntime.typeError('calculateAttestedOutputHash1',
|
|
2272
2458
|
'argument 1',
|
|
2273
|
-
'circuits.compact line
|
|
2459
|
+
'circuits.compact line 46 char 1',
|
|
2274
2460
|
'Bytes<1>',
|
|
2275
2461
|
serializedOutput_0)
|
|
2276
2462
|
}
|
|
@@ -2284,7 +2470,7 @@ export const pureCircuits = {
|
|
|
2284
2470
|
if (!(serializedOutput_0.buffer instanceof ArrayBuffer && serializedOutput_0.BYTES_PER_ELEMENT === 1 && serializedOutput_0.length === 2)) {
|
|
2285
2471
|
__compactRuntime.typeError('calculateAttestedOutputHash2',
|
|
2286
2472
|
'argument 1',
|
|
2287
|
-
'circuits.compact line
|
|
2473
|
+
'circuits.compact line 52 char 1',
|
|
2288
2474
|
'Bytes<2>',
|
|
2289
2475
|
serializedOutput_0)
|
|
2290
2476
|
}
|
|
@@ -2298,7 +2484,7 @@ export const pureCircuits = {
|
|
|
2298
2484
|
if (!(serializedOutput_0.buffer instanceof ArrayBuffer && serializedOutput_0.BYTES_PER_ELEMENT === 1 && serializedOutput_0.length === 32)) {
|
|
2299
2485
|
__compactRuntime.typeError('calculateAttestedOutputHash32',
|
|
2300
2486
|
'argument 1',
|
|
2301
|
-
'circuits.compact line
|
|
2487
|
+
'circuits.compact line 58 char 1',
|
|
2302
2488
|
'Bytes<32>',
|
|
2303
2489
|
serializedOutput_0)
|
|
2304
2490
|
}
|
|
@@ -2312,7 +2498,7 @@ export const pureCircuits = {
|
|
|
2312
2498
|
if (!(serializedOutput_0.buffer instanceof ArrayBuffer && serializedOutput_0.BYTES_PER_ELEMENT === 1 && serializedOutput_0.length === 100)) {
|
|
2313
2499
|
__compactRuntime.typeError('calculateAttestedOutputHash100',
|
|
2314
2500
|
'argument 1',
|
|
2315
|
-
'circuits.compact line
|
|
2501
|
+
'circuits.compact line 64 char 1',
|
|
2316
2502
|
'Bytes<100>',
|
|
2317
2503
|
serializedOutput_0)
|
|
2318
2504
|
}
|
|
@@ -2328,21 +2514,21 @@ export const pureCircuits = {
|
|
|
2328
2514
|
if (!(serializedOutput_0.buffer instanceof ArrayBuffer && serializedOutput_0.BYTES_PER_ELEMENT === 1 && serializedOutput_0.length === 1)) {
|
|
2329
2515
|
__compactRuntime.typeError('verifyAttestedOutput1',
|
|
2330
2516
|
'argument 1',
|
|
2331
|
-
'circuits.compact line
|
|
2517
|
+
'circuits.compact line 74 char 1',
|
|
2332
2518
|
'Bytes<1>',
|
|
2333
2519
|
serializedOutput_0)
|
|
2334
2520
|
}
|
|
2335
2521
|
if (!(typeof(attestedOutputLength_0) === 'bigint' && attestedOutputLength_0 >= 0n && attestedOutputLength_0 <= 18446744073709551615n)) {
|
|
2336
2522
|
__compactRuntime.typeError('verifyAttestedOutput1',
|
|
2337
2523
|
'argument 2',
|
|
2338
|
-
'circuits.compact line
|
|
2524
|
+
'circuits.compact line 74 char 1',
|
|
2339
2525
|
'Uint<0..18446744073709551616>',
|
|
2340
2526
|
attestedOutputLength_0)
|
|
2341
2527
|
}
|
|
2342
2528
|
if (!(attestedOutputHash_0.buffer instanceof ArrayBuffer && attestedOutputHash_0.BYTES_PER_ELEMENT === 1 && attestedOutputHash_0.length === 32)) {
|
|
2343
2529
|
__compactRuntime.typeError('verifyAttestedOutput1',
|
|
2344
2530
|
'argument 3',
|
|
2345
|
-
'circuits.compact line
|
|
2531
|
+
'circuits.compact line 74 char 1',
|
|
2346
2532
|
'Bytes<32>',
|
|
2347
2533
|
attestedOutputHash_0)
|
|
2348
2534
|
}
|
|
@@ -2360,21 +2546,21 @@ export const pureCircuits = {
|
|
|
2360
2546
|
if (!(serializedOutput_0.buffer instanceof ArrayBuffer && serializedOutput_0.BYTES_PER_ELEMENT === 1 && serializedOutput_0.length === 2)) {
|
|
2361
2547
|
__compactRuntime.typeError('verifyAttestedOutput2',
|
|
2362
2548
|
'argument 1',
|
|
2363
|
-
'circuits.compact line
|
|
2549
|
+
'circuits.compact line 82 char 1',
|
|
2364
2550
|
'Bytes<2>',
|
|
2365
2551
|
serializedOutput_0)
|
|
2366
2552
|
}
|
|
2367
2553
|
if (!(typeof(attestedOutputLength_0) === 'bigint' && attestedOutputLength_0 >= 0n && attestedOutputLength_0 <= 18446744073709551615n)) {
|
|
2368
2554
|
__compactRuntime.typeError('verifyAttestedOutput2',
|
|
2369
2555
|
'argument 2',
|
|
2370
|
-
'circuits.compact line
|
|
2556
|
+
'circuits.compact line 82 char 1',
|
|
2371
2557
|
'Uint<0..18446744073709551616>',
|
|
2372
2558
|
attestedOutputLength_0)
|
|
2373
2559
|
}
|
|
2374
2560
|
if (!(attestedOutputHash_0.buffer instanceof ArrayBuffer && attestedOutputHash_0.BYTES_PER_ELEMENT === 1 && attestedOutputHash_0.length === 32)) {
|
|
2375
2561
|
__compactRuntime.typeError('verifyAttestedOutput2',
|
|
2376
2562
|
'argument 3',
|
|
2377
|
-
'circuits.compact line
|
|
2563
|
+
'circuits.compact line 82 char 1',
|
|
2378
2564
|
'Bytes<32>',
|
|
2379
2565
|
attestedOutputHash_0)
|
|
2380
2566
|
}
|
|
@@ -2390,7 +2576,7 @@ export const pureCircuits = {
|
|
|
2390
2576
|
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)))) {
|
|
2391
2577
|
__compactRuntime.typeError('calculateEvmType2TxParamsDigestV1_1_0_0',
|
|
2392
2578
|
'argument 1',
|
|
2393
|
-
'circuits.compact line
|
|
2579
|
+
'circuits.compact line 95 char 1',
|
|
2394
2580
|
'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>>>>>',
|
|
2395
2581
|
txParams_0)
|
|
2396
2582
|
}
|
|
@@ -2404,7 +2590,7 @@ export const pureCircuits = {
|
|
|
2404
2590
|
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)))) {
|
|
2405
2591
|
__compactRuntime.typeError('calculateEvmType2TxParamsDigestV1_2_1_2',
|
|
2406
2592
|
'argument 1',
|
|
2407
|
-
'circuits.compact line
|
|
2593
|
+
'circuits.compact line 101 char 1',
|
|
2408
2594
|
'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>>>>>',
|
|
2409
2595
|
txParams_0)
|
|
2410
2596
|
}
|
|
@@ -2418,8 +2604,8 @@ export const pureCircuits = {
|
|
|
2418
2604
|
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)) {
|
|
2419
2605
|
__compactRuntime.typeError('calculateEvmType2RequestIdV1_1_0_0_34',
|
|
2420
2606
|
'argument 1',
|
|
2421
|
-
'circuits.compact line
|
|
2422
|
-
'struct SignBidirectionalEventV1<keyVersion: Uint<0..256>, sender: struct ContractAddress<bytes: Bytes<32>>, path: Bytes<32>, algo: Enum<MPCSignatureAlgorithm, ecdsa, reserved>, txParamType: Enum<TxParamType, evmType2,
|
|
2607
|
+
'circuits.compact line 110 char 1',
|
|
2608
|
+
'struct SignBidirectionalEventV1<keyVersion: Uint<0..256>, sender: struct ContractAddress<bytes: Bytes<32>>, path: Bytes<32>, algo: Enum<MPCSignatureAlgorithm, ecdsa, reserved>, txParamType: Enum<TxParamType, evmType2, tronTriggerSmartContract>, 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>>',
|
|
2423
2609
|
request_0)
|
|
2424
2610
|
}
|
|
2425
2611
|
return _dummyContract._calculateEvmType2RequestIdV1_1_0_0_34_0(request_0);
|
|
@@ -2432,8 +2618,8 @@ export const pureCircuits = {
|
|
|
2432
2618
|
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)) {
|
|
2433
2619
|
__compactRuntime.typeError('calculateEvmType2RequestIdV1_2_1_2_34',
|
|
2434
2620
|
'argument 1',
|
|
2435
|
-
'circuits.compact line
|
|
2436
|
-
'struct SignBidirectionalEventV1<keyVersion: Uint<0..256>, sender: struct ContractAddress<bytes: Bytes<32>>, path: Bytes<32>, algo: Enum<MPCSignatureAlgorithm, ecdsa, reserved>, txParamType: Enum<TxParamType, evmType2,
|
|
2621
|
+
'circuits.compact line 116 char 1',
|
|
2622
|
+
'struct SignBidirectionalEventV1<keyVersion: Uint<0..256>, sender: struct ContractAddress<bytes: Bytes<32>>, path: Bytes<32>, algo: Enum<MPCSignatureAlgorithm, ecdsa, reserved>, txParamType: Enum<TxParamType, evmType2, tronTriggerSmartContract>, 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>>',
|
|
2437
2623
|
request_0)
|
|
2438
2624
|
}
|
|
2439
2625
|
return _dummyContract._calculateEvmType2RequestIdV1_2_1_2_34_0(request_0);
|
|
@@ -2448,21 +2634,21 @@ export const pureCircuits = {
|
|
|
2448
2634
|
if (!(serializedOutput_0.buffer instanceof ArrayBuffer && serializedOutput_0.BYTES_PER_ELEMENT === 1 && serializedOutput_0.length === 0)) {
|
|
2449
2635
|
__compactRuntime.typeError('verifyRespondBidirectionalEvent0',
|
|
2450
2636
|
'argument 1',
|
|
2451
|
-
'circuits.compact line
|
|
2637
|
+
'circuits.compact line 122 char 1',
|
|
2452
2638
|
'Bytes<0>',
|
|
2453
2639
|
serializedOutput_0)
|
|
2454
2640
|
}
|
|
2455
2641
|
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)) {
|
|
2456
2642
|
__compactRuntime.typeError('verifyRespondBidirectionalEvent0',
|
|
2457
2643
|
'argument 2',
|
|
2458
|
-
'circuits.compact line
|
|
2644
|
+
'circuits.compact line 122 char 1',
|
|
2459
2645
|
'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>>>',
|
|
2460
2646
|
respondBidirectionalEvent_0)
|
|
2461
2647
|
}
|
|
2462
2648
|
if (!(__compactRuntime.isValidSecp256k1Point(mpcResponseKey_0))) {
|
|
2463
2649
|
__compactRuntime.typeError('verifyRespondBidirectionalEvent0',
|
|
2464
2650
|
'argument 3',
|
|
2465
|
-
'circuits.compact line
|
|
2651
|
+
'circuits.compact line 122 char 1',
|
|
2466
2652
|
'Secp256k1Point',
|
|
2467
2653
|
mpcResponseKey_0)
|
|
2468
2654
|
}
|
|
@@ -2480,21 +2666,21 @@ export const pureCircuits = {
|
|
|
2480
2666
|
if (!(serializedOutput_0.buffer instanceof ArrayBuffer && serializedOutput_0.BYTES_PER_ELEMENT === 1 && serializedOutput_0.length === 32)) {
|
|
2481
2667
|
__compactRuntime.typeError('verifyRespondBidirectionalEvent32',
|
|
2482
2668
|
'argument 1',
|
|
2483
|
-
'circuits.compact line
|
|
2669
|
+
'circuits.compact line 134 char 1',
|
|
2484
2670
|
'Bytes<32>',
|
|
2485
2671
|
serializedOutput_0)
|
|
2486
2672
|
}
|
|
2487
2673
|
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)) {
|
|
2488
2674
|
__compactRuntime.typeError('verifyRespondBidirectionalEvent32',
|
|
2489
2675
|
'argument 2',
|
|
2490
|
-
'circuits.compact line
|
|
2676
|
+
'circuits.compact line 134 char 1',
|
|
2491
2677
|
'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>>>',
|
|
2492
2678
|
respondBidirectionalEvent_0)
|
|
2493
2679
|
}
|
|
2494
2680
|
if (!(__compactRuntime.isValidSecp256k1Point(mpcResponseKey_0))) {
|
|
2495
2681
|
__compactRuntime.typeError('verifyRespondBidirectionalEvent32',
|
|
2496
2682
|
'argument 3',
|
|
2497
|
-
'circuits.compact line
|
|
2683
|
+
'circuits.compact line 134 char 1',
|
|
2498
2684
|
'Secp256k1Point',
|
|
2499
2685
|
mpcResponseKey_0)
|
|
2500
2686
|
}
|
|
@@ -2510,107 +2696,124 @@ export const pureCircuits = {
|
|
|
2510
2696
|
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)) {
|
|
2511
2697
|
__compactRuntime.typeError('constructSignBidirectionalEventV1_1_0_0_34',
|
|
2512
2698
|
'argument 1',
|
|
2513
|
-
'circuits.compact line
|
|
2514
|
-
'struct SignBidirectionalEventV1<keyVersion: Uint<0..256>, sender: struct ContractAddress<bytes: Bytes<32>>, path: Bytes<32>, algo: Enum<MPCSignatureAlgorithm, ecdsa, reserved>, txParamType: Enum<TxParamType, evmType2,
|
|
2699
|
+
'circuits.compact line 146 char 1',
|
|
2700
|
+
'struct SignBidirectionalEventV1<keyVersion: Uint<0..256>, sender: struct ContractAddress<bytes: Bytes<32>>, path: Bytes<32>, algo: Enum<MPCSignatureAlgorithm, ecdsa, reserved>, txParamType: Enum<TxParamType, evmType2, tronTriggerSmartContract>, 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>>',
|
|
2515
2701
|
request_0)
|
|
2516
2702
|
}
|
|
2517
2703
|
return _dummyContract._constructSignBidirectionalEventV1_1_0_0_34_0(request_0);
|
|
2518
2704
|
},
|
|
2519
|
-
|
|
2705
|
+
calculateTronTriggerSmartContractTxParamsDigestV1_1: (...args_0) => {
|
|
2520
2706
|
if (args_0.length !== 1) {
|
|
2521
|
-
throw new __compactRuntime.CompactError(`
|
|
2707
|
+
throw new __compactRuntime.CompactError(`calculateTronTriggerSmartContractTxParamsDigestV1_1: expected 1 argument (as invoked from Typescript), received ${args_0.length}`);
|
|
2522
2708
|
}
|
|
2523
2709
|
const txParams_0 = args_0[0];
|
|
2524
2710
|
if (!(typeof(txParams_0) === 'object' && txParams_0.refBlockBytes.buffer instanceof ArrayBuffer && txParams_0.refBlockBytes.BYTES_PER_ELEMENT === 1 && txParams_0.refBlockBytes.length === 2 && txParams_0.refBlockHash.buffer instanceof ArrayBuffer && txParams_0.refBlockHash.BYTES_PER_ELEMENT === 1 && txParams_0.refBlockHash.length === 8 && typeof(txParams_0.timestamp) === 'bigint' && txParams_0.timestamp >= 0n && txParams_0.timestamp <= 18446744073709551615n && typeof(txParams_0.expiration) === 'bigint' && txParams_0.expiration >= 0n && txParams_0.expiration <= 18446744073709551615n && typeof(txParams_0.feeLimit) === 'bigint' && txParams_0.feeLimit >= 0n && txParams_0.feeLimit <= 18446744073709551615n && txParams_0.contractAddress.buffer instanceof ArrayBuffer && txParams_0.contractAddress.BYTES_PER_ELEMENT === 1 && txParams_0.contractAddress.length === 21 && typeof(txParams_0.callValue) === 'bigint' && txParams_0.callValue >= 0n && txParams_0.callValue <= 18446744073709551615n && 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))) {
|
|
2525
|
-
__compactRuntime.typeError('
|
|
2711
|
+
__compactRuntime.typeError('calculateTronTriggerSmartContractTxParamsDigestV1_1',
|
|
2526
2712
|
'argument 1',
|
|
2527
|
-
'circuits.compact line
|
|
2528
|
-
'struct
|
|
2713
|
+
'circuits.compact line 163 char 1',
|
|
2714
|
+
'struct TronTriggerSmartContractTxParams<refBlockBytes: Bytes<2>, refBlockHash: Bytes<8>, timestamp: Uint<0..18446744073709551616>, expiration: Uint<0..18446744073709551616>, feeLimit: Uint<0..18446744073709551616>, contractAddress: Bytes<21>, callValue: Uint<0..18446744073709551616>, calldata: struct Maybe<is_some: Boolean, value: struct EvmCalldata<selector: Bytes<4>, noWords: Uint<0..65536>, words: Vector<1, Bytes<32>>>>>',
|
|
2529
2715
|
txParams_0)
|
|
2530
2716
|
}
|
|
2531
|
-
return _dummyContract.
|
|
2717
|
+
return _dummyContract._calculateTronTriggerSmartContractTxParamsDigestV1_1_0(txParams_0);
|
|
2532
2718
|
},
|
|
2533
|
-
|
|
2719
|
+
calculateTronTriggerSmartContractTxParamsDigestV1_2: (...args_0) => {
|
|
2534
2720
|
if (args_0.length !== 1) {
|
|
2535
|
-
throw new __compactRuntime.CompactError(`
|
|
2721
|
+
throw new __compactRuntime.CompactError(`calculateTronTriggerSmartContractTxParamsDigestV1_2: expected 1 argument (as invoked from Typescript), received ${args_0.length}`);
|
|
2536
2722
|
}
|
|
2537
2723
|
const txParams_0 = args_0[0];
|
|
2538
2724
|
if (!(typeof(txParams_0) === 'object' && txParams_0.refBlockBytes.buffer instanceof ArrayBuffer && txParams_0.refBlockBytes.BYTES_PER_ELEMENT === 1 && txParams_0.refBlockBytes.length === 2 && txParams_0.refBlockHash.buffer instanceof ArrayBuffer && txParams_0.refBlockHash.BYTES_PER_ELEMENT === 1 && txParams_0.refBlockHash.length === 8 && typeof(txParams_0.timestamp) === 'bigint' && txParams_0.timestamp >= 0n && txParams_0.timestamp <= 18446744073709551615n && typeof(txParams_0.expiration) === 'bigint' && txParams_0.expiration >= 0n && txParams_0.expiration <= 18446744073709551615n && typeof(txParams_0.feeLimit) === 'bigint' && txParams_0.feeLimit >= 0n && txParams_0.feeLimit <= 18446744073709551615n && txParams_0.contractAddress.buffer instanceof ArrayBuffer && txParams_0.contractAddress.BYTES_PER_ELEMENT === 1 && txParams_0.contractAddress.length === 21 && typeof(txParams_0.callValue) === 'bigint' && txParams_0.callValue >= 0n && txParams_0.callValue <= 18446744073709551615n && 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))) {
|
|
2539
|
-
__compactRuntime.typeError('
|
|
2725
|
+
__compactRuntime.typeError('calculateTronTriggerSmartContractTxParamsDigestV1_2',
|
|
2540
2726
|
'argument 1',
|
|
2541
|
-
'circuits.compact line
|
|
2542
|
-
'struct
|
|
2727
|
+
'circuits.compact line 169 char 1',
|
|
2728
|
+
'struct TronTriggerSmartContractTxParams<refBlockBytes: Bytes<2>, refBlockHash: Bytes<8>, timestamp: Uint<0..18446744073709551616>, expiration: Uint<0..18446744073709551616>, feeLimit: Uint<0..18446744073709551616>, contractAddress: Bytes<21>, callValue: Uint<0..18446744073709551616>, calldata: struct Maybe<is_some: Boolean, value: struct EvmCalldata<selector: Bytes<4>, noWords: Uint<0..65536>, words: Vector<2, Bytes<32>>>>>',
|
|
2543
2729
|
txParams_0)
|
|
2544
2730
|
}
|
|
2545
|
-
return _dummyContract.
|
|
2731
|
+
return _dummyContract._calculateTronTriggerSmartContractTxParamsDigestV1_2_0(txParams_0);
|
|
2546
2732
|
},
|
|
2547
|
-
|
|
2733
|
+
calculateTronTriggerSmartContractRequestIdV1_1_0: (...args_0) => {
|
|
2548
2734
|
if (args_0.length !== 1) {
|
|
2549
|
-
throw new __compactRuntime.CompactError(`
|
|
2735
|
+
throw new __compactRuntime.CompactError(`calculateTronTriggerSmartContractRequestIdV1_1_0: expected 1 argument (as invoked from Typescript), received ${args_0.length}`);
|
|
2550
2736
|
}
|
|
2551
2737
|
const request_0 = args_0[0];
|
|
2552
2738
|
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' && request_0.txParams.refBlockBytes.buffer instanceof ArrayBuffer && request_0.txParams.refBlockBytes.BYTES_PER_ELEMENT === 1 && request_0.txParams.refBlockBytes.length === 2 && request_0.txParams.refBlockHash.buffer instanceof ArrayBuffer && request_0.txParams.refBlockHash.BYTES_PER_ELEMENT === 1 && request_0.txParams.refBlockHash.length === 8 && typeof(request_0.txParams.timestamp) === 'bigint' && request_0.txParams.timestamp >= 0n && request_0.txParams.timestamp <= 18446744073709551615n && typeof(request_0.txParams.expiration) === 'bigint' && request_0.txParams.expiration >= 0n && request_0.txParams.expiration <= 18446744073709551615n && typeof(request_0.txParams.feeLimit) === 'bigint' && request_0.txParams.feeLimit >= 0n && request_0.txParams.feeLimit <= 18446744073709551615n && request_0.txParams.contractAddress.buffer instanceof ArrayBuffer && request_0.txParams.contractAddress.BYTES_PER_ELEMENT === 1 && request_0.txParams.contractAddress.length === 21 && typeof(request_0.txParams.callValue) === 'bigint' && request_0.txParams.callValue >= 0n && request_0.txParams.callValue <= 18446744073709551615n && 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) && 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 === 0 && request_0.respondSerializationSchema.buffer instanceof ArrayBuffer && request_0.respondSerializationSchema.BYTES_PER_ELEMENT === 1 && request_0.respondSerializationSchema.length === 0)) {
|
|
2553
|
-
__compactRuntime.typeError('
|
|
2739
|
+
__compactRuntime.typeError('calculateTronTriggerSmartContractRequestIdV1_1_0',
|
|
2554
2740
|
'argument 1',
|
|
2555
|
-
'circuits.compact line
|
|
2556
|
-
'struct SignBidirectionalEventV1<keyVersion: Uint<0..256>, sender: struct ContractAddress<bytes: Bytes<32>>, path: Bytes<32>, algo: Enum<MPCSignatureAlgorithm, ecdsa, reserved>, txParamType: Enum<TxParamType, evmType2,
|
|
2741
|
+
'circuits.compact line 175 char 1',
|
|
2742
|
+
'struct SignBidirectionalEventV1<keyVersion: Uint<0..256>, sender: struct ContractAddress<bytes: Bytes<32>>, path: Bytes<32>, algo: Enum<MPCSignatureAlgorithm, ecdsa, reserved>, txParamType: Enum<TxParamType, evmType2, tronTriggerSmartContract>, txParams: struct TronTriggerSmartContractTxParams<refBlockBytes: Bytes<2>, refBlockHash: Bytes<8>, timestamp: Uint<0..18446744073709551616>, expiration: Uint<0..18446744073709551616>, feeLimit: Uint<0..18446744073709551616>, contractAddress: Bytes<21>, callValue: Uint<0..18446744073709551616>, calldata: struct Maybe<is_some: Boolean, value: struct EvmCalldata<selector: Bytes<4>, noWords: Uint<0..65536>, words: Vector<1, Bytes<32>>>>>, executionDest: Bytes<64>, signatureDest: Enum<MPCDestination, unused, reserved>, params: Bytes<64>, outputDeserializationSchema: Bytes<0>, respondSerializationSchema: Bytes<0>>',
|
|
2557
2743
|
request_0)
|
|
2558
2744
|
}
|
|
2559
|
-
return _dummyContract.
|
|
2745
|
+
return _dummyContract._calculateTronTriggerSmartContractRequestIdV1_1_0_0(request_0);
|
|
2560
2746
|
},
|
|
2561
|
-
|
|
2747
|
+
calculateTronTriggerSmartContractRequestIdV1_2_0: (...args_0) => {
|
|
2562
2748
|
if (args_0.length !== 1) {
|
|
2563
|
-
throw new __compactRuntime.CompactError(`
|
|
2749
|
+
throw new __compactRuntime.CompactError(`calculateTronTriggerSmartContractRequestIdV1_2_0: expected 1 argument (as invoked from Typescript), received ${args_0.length}`);
|
|
2564
2750
|
}
|
|
2565
2751
|
const request_0 = args_0[0];
|
|
2566
2752
|
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' && request_0.txParams.refBlockBytes.buffer instanceof ArrayBuffer && request_0.txParams.refBlockBytes.BYTES_PER_ELEMENT === 1 && request_0.txParams.refBlockBytes.length === 2 && request_0.txParams.refBlockHash.buffer instanceof ArrayBuffer && request_0.txParams.refBlockHash.BYTES_PER_ELEMENT === 1 && request_0.txParams.refBlockHash.length === 8 && typeof(request_0.txParams.timestamp) === 'bigint' && request_0.txParams.timestamp >= 0n && request_0.txParams.timestamp <= 18446744073709551615n && typeof(request_0.txParams.expiration) === 'bigint' && request_0.txParams.expiration >= 0n && request_0.txParams.expiration <= 18446744073709551615n && typeof(request_0.txParams.feeLimit) === 'bigint' && request_0.txParams.feeLimit >= 0n && request_0.txParams.feeLimit <= 18446744073709551615n && request_0.txParams.contractAddress.buffer instanceof ArrayBuffer && request_0.txParams.contractAddress.BYTES_PER_ELEMENT === 1 && request_0.txParams.contractAddress.length === 21 && typeof(request_0.txParams.callValue) === 'bigint' && request_0.txParams.callValue >= 0n && request_0.txParams.callValue <= 18446744073709551615n && 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) && 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 === 0 && request_0.respondSerializationSchema.buffer instanceof ArrayBuffer && request_0.respondSerializationSchema.BYTES_PER_ELEMENT === 1 && request_0.respondSerializationSchema.length === 0)) {
|
|
2567
|
-
__compactRuntime.typeError('
|
|
2753
|
+
__compactRuntime.typeError('calculateTronTriggerSmartContractRequestIdV1_2_0',
|
|
2568
2754
|
'argument 1',
|
|
2569
|
-
'circuits.compact line
|
|
2570
|
-
'struct SignBidirectionalEventV1<keyVersion: Uint<0..256>, sender: struct ContractAddress<bytes: Bytes<32>>, path: Bytes<32>, algo: Enum<MPCSignatureAlgorithm, ecdsa, reserved>, txParamType: Enum<TxParamType, evmType2,
|
|
2755
|
+
'circuits.compact line 181 char 1',
|
|
2756
|
+
'struct SignBidirectionalEventV1<keyVersion: Uint<0..256>, sender: struct ContractAddress<bytes: Bytes<32>>, path: Bytes<32>, algo: Enum<MPCSignatureAlgorithm, ecdsa, reserved>, txParamType: Enum<TxParamType, evmType2, tronTriggerSmartContract>, txParams: struct TronTriggerSmartContractTxParams<refBlockBytes: Bytes<2>, refBlockHash: Bytes<8>, timestamp: Uint<0..18446744073709551616>, expiration: Uint<0..18446744073709551616>, feeLimit: Uint<0..18446744073709551616>, contractAddress: Bytes<21>, callValue: Uint<0..18446744073709551616>, calldata: struct Maybe<is_some: Boolean, value: struct EvmCalldata<selector: Bytes<4>, noWords: Uint<0..65536>, words: Vector<2, Bytes<32>>>>>, executionDest: Bytes<64>, signatureDest: Enum<MPCDestination, unused, reserved>, params: Bytes<64>, outputDeserializationSchema: Bytes<0>, respondSerializationSchema: Bytes<0>>',
|
|
2571
2757
|
request_0)
|
|
2572
2758
|
}
|
|
2573
|
-
return _dummyContract.
|
|
2759
|
+
return _dummyContract._calculateTronTriggerSmartContractRequestIdV1_2_0_0(request_0);
|
|
2574
2760
|
},
|
|
2575
|
-
|
|
2761
|
+
calculateTronTriggerSmartContractRequestIdV1_1_34: (...args_0) => {
|
|
2576
2762
|
if (args_0.length !== 1) {
|
|
2577
|
-
throw new __compactRuntime.CompactError(`
|
|
2763
|
+
throw new __compactRuntime.CompactError(`calculateTronTriggerSmartContractRequestIdV1_1_34: expected 1 argument (as invoked from Typescript), received ${args_0.length}`);
|
|
2578
2764
|
}
|
|
2579
2765
|
const request_0 = args_0[0];
|
|
2580
2766
|
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' && request_0.txParams.refBlockBytes.buffer instanceof ArrayBuffer && request_0.txParams.refBlockBytes.BYTES_PER_ELEMENT === 1 && request_0.txParams.refBlockBytes.length === 2 && request_0.txParams.refBlockHash.buffer instanceof ArrayBuffer && request_0.txParams.refBlockHash.BYTES_PER_ELEMENT === 1 && request_0.txParams.refBlockHash.length === 8 && typeof(request_0.txParams.timestamp) === 'bigint' && request_0.txParams.timestamp >= 0n && request_0.txParams.timestamp <= 18446744073709551615n && typeof(request_0.txParams.expiration) === 'bigint' && request_0.txParams.expiration >= 0n && request_0.txParams.expiration <= 18446744073709551615n && typeof(request_0.txParams.feeLimit) === 'bigint' && request_0.txParams.feeLimit >= 0n && request_0.txParams.feeLimit <= 18446744073709551615n && request_0.txParams.contractAddress.buffer instanceof ArrayBuffer && request_0.txParams.contractAddress.BYTES_PER_ELEMENT === 1 && request_0.txParams.contractAddress.length === 21 && typeof(request_0.txParams.callValue) === 'bigint' && request_0.txParams.callValue >= 0n && request_0.txParams.callValue <= 18446744073709551615n && 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) && 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)) {
|
|
2581
|
-
__compactRuntime.typeError('
|
|
2767
|
+
__compactRuntime.typeError('calculateTronTriggerSmartContractRequestIdV1_1_34',
|
|
2582
2768
|
'argument 1',
|
|
2583
|
-
'circuits.compact line
|
|
2584
|
-
'struct SignBidirectionalEventV1<keyVersion: Uint<0..256>, sender: struct ContractAddress<bytes: Bytes<32>>, path: Bytes<32>, algo: Enum<MPCSignatureAlgorithm, ecdsa, reserved>, txParamType: Enum<TxParamType, evmType2,
|
|
2769
|
+
'circuits.compact line 187 char 1',
|
|
2770
|
+
'struct SignBidirectionalEventV1<keyVersion: Uint<0..256>, sender: struct ContractAddress<bytes: Bytes<32>>, path: Bytes<32>, algo: Enum<MPCSignatureAlgorithm, ecdsa, reserved>, txParamType: Enum<TxParamType, evmType2, tronTriggerSmartContract>, txParams: struct TronTriggerSmartContractTxParams<refBlockBytes: Bytes<2>, refBlockHash: Bytes<8>, timestamp: Uint<0..18446744073709551616>, expiration: Uint<0..18446744073709551616>, feeLimit: Uint<0..18446744073709551616>, contractAddress: Bytes<21>, callValue: Uint<0..18446744073709551616>, calldata: struct Maybe<is_some: Boolean, value: struct EvmCalldata<selector: Bytes<4>, noWords: Uint<0..65536>, words: Vector<1, Bytes<32>>>>>, executionDest: Bytes<64>, signatureDest: Enum<MPCDestination, unused, reserved>, params: Bytes<64>, outputDeserializationSchema: Bytes<34>, respondSerializationSchema: Bytes<0>>',
|
|
2585
2771
|
request_0)
|
|
2586
2772
|
}
|
|
2587
|
-
return _dummyContract.
|
|
2773
|
+
return _dummyContract._calculateTronTriggerSmartContractRequestIdV1_1_34_0(request_0);
|
|
2588
2774
|
},
|
|
2589
|
-
|
|
2775
|
+
calculateTronTriggerSmartContractRequestIdV1_2_34: (...args_0) => {
|
|
2590
2776
|
if (args_0.length !== 1) {
|
|
2591
|
-
throw new __compactRuntime.CompactError(`
|
|
2777
|
+
throw new __compactRuntime.CompactError(`calculateTronTriggerSmartContractRequestIdV1_2_34: expected 1 argument (as invoked from Typescript), received ${args_0.length}`);
|
|
2592
2778
|
}
|
|
2593
2779
|
const request_0 = args_0[0];
|
|
2594
2780
|
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' && request_0.txParams.refBlockBytes.buffer instanceof ArrayBuffer && request_0.txParams.refBlockBytes.BYTES_PER_ELEMENT === 1 && request_0.txParams.refBlockBytes.length === 2 && request_0.txParams.refBlockHash.buffer instanceof ArrayBuffer && request_0.txParams.refBlockHash.BYTES_PER_ELEMENT === 1 && request_0.txParams.refBlockHash.length === 8 && typeof(request_0.txParams.timestamp) === 'bigint' && request_0.txParams.timestamp >= 0n && request_0.txParams.timestamp <= 18446744073709551615n && typeof(request_0.txParams.expiration) === 'bigint' && request_0.txParams.expiration >= 0n && request_0.txParams.expiration <= 18446744073709551615n && typeof(request_0.txParams.feeLimit) === 'bigint' && request_0.txParams.feeLimit >= 0n && request_0.txParams.feeLimit <= 18446744073709551615n && request_0.txParams.contractAddress.buffer instanceof ArrayBuffer && request_0.txParams.contractAddress.BYTES_PER_ELEMENT === 1 && request_0.txParams.contractAddress.length === 21 && typeof(request_0.txParams.callValue) === 'bigint' && request_0.txParams.callValue >= 0n && request_0.txParams.callValue <= 18446744073709551615n && 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) && 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)) {
|
|
2595
|
-
__compactRuntime.typeError('
|
|
2781
|
+
__compactRuntime.typeError('calculateTronTriggerSmartContractRequestIdV1_2_34',
|
|
2596
2782
|
'argument 1',
|
|
2597
|
-
'circuits.compact line
|
|
2598
|
-
'struct SignBidirectionalEventV1<keyVersion: Uint<0..256>, sender: struct ContractAddress<bytes: Bytes<32>>, path: Bytes<32>, algo: Enum<MPCSignatureAlgorithm, ecdsa, reserved>, txParamType: Enum<TxParamType, evmType2,
|
|
2783
|
+
'circuits.compact line 193 char 1',
|
|
2784
|
+
'struct SignBidirectionalEventV1<keyVersion: Uint<0..256>, sender: struct ContractAddress<bytes: Bytes<32>>, path: Bytes<32>, algo: Enum<MPCSignatureAlgorithm, ecdsa, reserved>, txParamType: Enum<TxParamType, evmType2, tronTriggerSmartContract>, txParams: struct TronTriggerSmartContractTxParams<refBlockBytes: Bytes<2>, refBlockHash: Bytes<8>, timestamp: Uint<0..18446744073709551616>, expiration: Uint<0..18446744073709551616>, feeLimit: Uint<0..18446744073709551616>, contractAddress: Bytes<21>, callValue: Uint<0..18446744073709551616>, calldata: struct Maybe<is_some: Boolean, value: struct EvmCalldata<selector: Bytes<4>, noWords: Uint<0..65536>, words: Vector<2, Bytes<32>>>>>, executionDest: Bytes<64>, signatureDest: Enum<MPCDestination, unused, reserved>, params: Bytes<64>, outputDeserializationSchema: Bytes<34>, respondSerializationSchema: Bytes<0>>',
|
|
2599
2785
|
request_0)
|
|
2600
2786
|
}
|
|
2601
|
-
return _dummyContract.
|
|
2787
|
+
return _dummyContract._calculateTronTriggerSmartContractRequestIdV1_2_34_0(request_0);
|
|
2788
|
+
},
|
|
2789
|
+
assertTronTriggerSmartContractTxParamsV1_2: (...args_0) => {
|
|
2790
|
+
if (args_0.length !== 1) {
|
|
2791
|
+
throw new __compactRuntime.CompactError(`assertTronTriggerSmartContractTxParamsV1_2: expected 1 argument (as invoked from Typescript), received ${args_0.length}`);
|
|
2792
|
+
}
|
|
2793
|
+
const txParams_0 = args_0[0];
|
|
2794
|
+
if (!(typeof(txParams_0) === 'object' && txParams_0.refBlockBytes.buffer instanceof ArrayBuffer && txParams_0.refBlockBytes.BYTES_PER_ELEMENT === 1 && txParams_0.refBlockBytes.length === 2 && txParams_0.refBlockHash.buffer instanceof ArrayBuffer && txParams_0.refBlockHash.BYTES_PER_ELEMENT === 1 && txParams_0.refBlockHash.length === 8 && typeof(txParams_0.timestamp) === 'bigint' && txParams_0.timestamp >= 0n && txParams_0.timestamp <= 18446744073709551615n && typeof(txParams_0.expiration) === 'bigint' && txParams_0.expiration >= 0n && txParams_0.expiration <= 18446744073709551615n && typeof(txParams_0.feeLimit) === 'bigint' && txParams_0.feeLimit >= 0n && txParams_0.feeLimit <= 18446744073709551615n && txParams_0.contractAddress.buffer instanceof ArrayBuffer && txParams_0.contractAddress.BYTES_PER_ELEMENT === 1 && txParams_0.contractAddress.length === 21 && typeof(txParams_0.callValue) === 'bigint' && txParams_0.callValue >= 0n && txParams_0.callValue <= 18446744073709551615n && 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))) {
|
|
2795
|
+
__compactRuntime.typeError('assertTronTriggerSmartContractTxParamsV1_2',
|
|
2796
|
+
'argument 1',
|
|
2797
|
+
'circuits.compact line 201 char 1',
|
|
2798
|
+
'struct TronTriggerSmartContractTxParams<refBlockBytes: Bytes<2>, refBlockHash: Bytes<8>, timestamp: Uint<0..18446744073709551616>, expiration: Uint<0..18446744073709551616>, feeLimit: Uint<0..18446744073709551616>, contractAddress: Bytes<21>, callValue: Uint<0..18446744073709551616>, calldata: struct Maybe<is_some: Boolean, value: struct EvmCalldata<selector: Bytes<4>, noWords: Uint<0..65536>, words: Vector<2, Bytes<32>>>>>',
|
|
2799
|
+
txParams_0)
|
|
2800
|
+
}
|
|
2801
|
+
return _dummyContract._assertTronTriggerSmartContractTxParamsV1_2_0(txParams_0);
|
|
2602
2802
|
}
|
|
2603
2803
|
};
|
|
2604
2804
|
export const expectedVk = {};
|
|
2605
2805
|
|
|
2606
2806
|
export const circuitSignatures = {
|
|
2607
|
-
'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', '
|
|
2807
|
+
'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', 'tronTriggerSmartContract']}}, {name: 'txParamsDigest', type: {tag: 'Bytes', length: 32}}, {name: 'executionDest', type: {tag: 'Bytes', length: 64}}]}], resultType: {tag: 'Alias', name: 'RequestId', type: {tag: 'Bytes', length: 32}}},
|
|
2608
2808
|
'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}}]}},
|
|
2609
2809
|
'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}},
|
|
2610
2810
|
'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'}},
|
|
2611
2811
|
'ethereumCaip2Id': {pure: true, provable: false, argumentTypes: [], resultType: {tag: 'Bytes', length: 64}},
|
|
2612
2812
|
'tronCaip2Id': {pure: true, provable: false, argumentTypes: [], resultType: {tag: 'Bytes', length: 64}},
|
|
2613
2813
|
'tronAddress': {pure: true, provable: false, argumentTypes: [{tag: 'Bytes', length: 20}], resultType: {tag: 'Bytes', length: 21}},
|
|
2814
|
+
'tronInt64Max': {pure: true, provable: false, argumentTypes: [], resultType: {tag: 'Uint', maxval: '18446744073709551615'}},
|
|
2815
|
+
'tronMaxExpirationSpanSeconds': {pure: true, provable: false, argumentTypes: [], resultType: {tag: 'Uint', maxval: '18446744073709551615'}},
|
|
2816
|
+
'assertTronExpirationWindowV1': {pure: false, provable: true, argumentTypes: [{tag: 'Uint', maxval: '18446744073709551615'}, {tag: 'Uint', maxval: '18446744073709551615'}, {tag: 'Uint', maxval: '18446744073709551615'}, {tag: 'Uint', maxval: '18446744073709551615'}], resultType: {tag: 'Tuple', types: []}},
|
|
2614
2817
|
'evmAddressAbiWord': {pure: true, provable: false, argumentTypes: [{tag: 'Bytes', length: 20}], resultType: {tag: 'Bytes', length: 32}},
|
|
2615
2818
|
'numericAbiWord': {pure: true, provable: false, argumentTypes: [{tag: 'Uint', maxval: '340282366920938463463374607431768211455'}], resultType: {tag: 'Bytes', length: 32}},
|
|
2616
2819
|
'boolAbiWord': {pure: true, provable: false, argumentTypes: [{tag: 'Boolean'}], resultType: {tag: 'Bytes', length: 32}},
|
|
@@ -2626,17 +2829,18 @@ export const circuitSignatures = {
|
|
|
2626
2829
|
'verifyAttestedOutput2': {pure: true, provable: false, argumentTypes: [{tag: 'Bytes', length: 2}, {tag: 'Uint', maxval: '18446744073709551615'}, {tag: 'Bytes', length: 32}], resultType: {tag: 'Boolean'}},
|
|
2627
2830
|
'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}},
|
|
2628
2831
|
'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}},
|
|
2629
|
-
'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', '
|
|
2630
|
-
'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', '
|
|
2832
|
+
'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', 'tronTriggerSmartContract']}}, {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}}},
|
|
2833
|
+
'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', 'tronTriggerSmartContract']}}, {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}}},
|
|
2631
2834
|
'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'}},
|
|
2632
2835
|
'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'}},
|
|
2633
|
-
'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', '
|
|
2634
|
-
'
|
|
2635
|
-
'
|
|
2636
|
-
'
|
|
2637
|
-
'
|
|
2638
|
-
'
|
|
2639
|
-
'
|
|
2836
|
+
'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', 'tronTriggerSmartContract']}}, {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', 'tronTriggerSmartContract']}}, {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}}]}},
|
|
2837
|
+
'calculateTronTriggerSmartContractTxParamsDigestV1_1': {pure: true, provable: false, argumentTypes: [{tag: 'Struct', name: 'TronTriggerSmartContractTxParams', elements: [{name: 'refBlockBytes', type: {tag: 'Bytes', length: 2}}, {name: 'refBlockHash', type: {tag: 'Bytes', length: 8}}, {name: 'timestamp', type: {tag: 'Uint', maxval: '18446744073709551615'}}, {name: 'expiration', type: {tag: 'Uint', maxval: '18446744073709551615'}}, {name: 'feeLimit', type: {tag: 'Uint', maxval: '18446744073709551615'}}, {name: 'contractAddress', type: {tag: 'Bytes', length: 21}}, {name: 'callValue', type: {tag: 'Uint', maxval: '18446744073709551615'}}, {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}}}]}}]}}]}], resultType: {tag: 'Bytes', length: 32}},
|
|
2838
|
+
'calculateTronTriggerSmartContractTxParamsDigestV1_2': {pure: true, provable: false, argumentTypes: [{tag: 'Struct', name: 'TronTriggerSmartContractTxParams', elements: [{name: 'refBlockBytes', type: {tag: 'Bytes', length: 2}}, {name: 'refBlockHash', type: {tag: 'Bytes', length: 8}}, {name: 'timestamp', type: {tag: 'Uint', maxval: '18446744073709551615'}}, {name: 'expiration', type: {tag: 'Uint', maxval: '18446744073709551615'}}, {name: 'feeLimit', type: {tag: 'Uint', maxval: '18446744073709551615'}}, {name: 'contractAddress', type: {tag: 'Bytes', length: 21}}, {name: 'callValue', type: {tag: 'Uint', maxval: '18446744073709551615'}}, {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}}}]}}]}}]}], resultType: {tag: 'Bytes', length: 32}},
|
|
2839
|
+
'calculateTronTriggerSmartContractRequestIdV1_1_0': {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', 'tronTriggerSmartContract']}}, {name: 'txParams', type: {tag: 'Struct', name: 'TronTriggerSmartContractTxParams', elements: [{name: 'refBlockBytes', type: {tag: 'Bytes', length: 2}}, {name: 'refBlockHash', type: {tag: 'Bytes', length: 8}}, {name: 'timestamp', type: {tag: 'Uint', maxval: '18446744073709551615'}}, {name: 'expiration', type: {tag: 'Uint', maxval: '18446744073709551615'}}, {name: 'feeLimit', type: {tag: 'Uint', maxval: '18446744073709551615'}}, {name: 'contractAddress', type: {tag: 'Bytes', length: 21}}, {name: 'callValue', type: {tag: 'Uint', maxval: '18446744073709551615'}}, {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: '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: 0}}, {name: 'respondSerializationSchema', type: {tag: 'Bytes', length: 0}}]}], resultType: {tag: 'Alias', name: 'RequestId', type: {tag: 'Bytes', length: 32}}},
|
|
2840
|
+
'calculateTronTriggerSmartContractRequestIdV1_2_0': {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', 'tronTriggerSmartContract']}}, {name: 'txParams', type: {tag: 'Struct', name: 'TronTriggerSmartContractTxParams', elements: [{name: 'refBlockBytes', type: {tag: 'Bytes', length: 2}}, {name: 'refBlockHash', type: {tag: 'Bytes', length: 8}}, {name: 'timestamp', type: {tag: 'Uint', maxval: '18446744073709551615'}}, {name: 'expiration', type: {tag: 'Uint', maxval: '18446744073709551615'}}, {name: 'feeLimit', type: {tag: 'Uint', maxval: '18446744073709551615'}}, {name: 'contractAddress', type: {tag: 'Bytes', length: 21}}, {name: 'callValue', type: {tag: 'Uint', maxval: '18446744073709551615'}}, {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: '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: 0}}, {name: 'respondSerializationSchema', type: {tag: 'Bytes', length: 0}}]}], resultType: {tag: 'Alias', name: 'RequestId', type: {tag: 'Bytes', length: 32}}},
|
|
2841
|
+
'calculateTronTriggerSmartContractRequestIdV1_1_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', 'tronTriggerSmartContract']}}, {name: 'txParams', type: {tag: 'Struct', name: 'TronTriggerSmartContractTxParams', elements: [{name: 'refBlockBytes', type: {tag: 'Bytes', length: 2}}, {name: 'refBlockHash', type: {tag: 'Bytes', length: 8}}, {name: 'timestamp', type: {tag: 'Uint', maxval: '18446744073709551615'}}, {name: 'expiration', type: {tag: 'Uint', maxval: '18446744073709551615'}}, {name: 'feeLimit', type: {tag: 'Uint', maxval: '18446744073709551615'}}, {name: 'contractAddress', type: {tag: 'Bytes', length: 21}}, {name: 'callValue', type: {tag: 'Uint', maxval: '18446744073709551615'}}, {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: '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}}},
|
|
2842
|
+
'calculateTronTriggerSmartContractRequestIdV1_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', 'tronTriggerSmartContract']}}, {name: 'txParams', type: {tag: 'Struct', name: 'TronTriggerSmartContractTxParams', elements: [{name: 'refBlockBytes', type: {tag: 'Bytes', length: 2}}, {name: 'refBlockHash', type: {tag: 'Bytes', length: 8}}, {name: 'timestamp', type: {tag: 'Uint', maxval: '18446744073709551615'}}, {name: 'expiration', type: {tag: 'Uint', maxval: '18446744073709551615'}}, {name: 'feeLimit', type: {tag: 'Uint', maxval: '18446744073709551615'}}, {name: 'contractAddress', type: {tag: 'Bytes', length: 21}}, {name: 'callValue', type: {tag: 'Uint', maxval: '18446744073709551615'}}, {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: '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}}},
|
|
2843
|
+
'assertTronTriggerSmartContractTxParamsV1_2': {pure: true, provable: false, argumentTypes: [{tag: 'Struct', name: 'TronTriggerSmartContractTxParams', elements: [{name: 'refBlockBytes', type: {tag: 'Bytes', length: 2}}, {name: 'refBlockHash', type: {tag: 'Bytes', length: 8}}, {name: 'timestamp', type: {tag: 'Uint', maxval: '18446744073709551615'}}, {name: 'expiration', type: {tag: 'Uint', maxval: '18446744073709551615'}}, {name: 'feeLimit', type: {tag: 'Uint', maxval: '18446744073709551615'}}, {name: 'contractAddress', type: {tag: 'Bytes', length: 21}}, {name: 'callValue', type: {tag: 'Uint', maxval: '18446744073709551615'}}, {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}}}]}}]}}]}], resultType: {tag: 'Tuple', types: []}},
|
|
2640
2844
|
};
|
|
2641
2845
|
|
|
2642
2846
|
export const declaredInterfaces = {};
|