@warganetwork/sdk 0.0.0-stage → 1.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,326 @@
1
+ [
2
+ {
3
+ "name": "Deposit",
4
+ "inputs": [
5
+ {
6
+ "name": "sender",
7
+ "type": "address",
8
+ "indexed": true
9
+ },
10
+ {
11
+ "name": "amount",
12
+ "type": "uint256",
13
+ "indexed": false
14
+ }
15
+ ],
16
+ "anonymous": false,
17
+ "type": "event"
18
+ },
19
+ {
20
+ "name": "WithdrawalCommitted",
21
+ "inputs": [
22
+ {
23
+ "name": "commit_hash",
24
+ "type": "bytes32",
25
+ "indexed": true
26
+ },
27
+ {
28
+ "name": "committer",
29
+ "type": "address",
30
+ "indexed": true
31
+ },
32
+ {
33
+ "name": "commit_block",
34
+ "type": "uint256",
35
+ "indexed": false
36
+ }
37
+ ],
38
+ "anonymous": false,
39
+ "type": "event"
40
+ },
41
+ {
42
+ "name": "QuantumWithdrawalExecuted",
43
+ "inputs": [
44
+ {
45
+ "name": "nonce",
46
+ "type": "uint256",
47
+ "indexed": true
48
+ },
49
+ {
50
+ "name": "recipient",
51
+ "type": "address",
52
+ "indexed": true
53
+ },
54
+ {
55
+ "name": "token",
56
+ "type": "address",
57
+ "indexed": false
58
+ },
59
+ {
60
+ "name": "amount",
61
+ "type": "uint256",
62
+ "indexed": false
63
+ },
64
+ {
65
+ "name": "new_pq_anchor",
66
+ "type": "bytes32",
67
+ "indexed": false
68
+ }
69
+ ],
70
+ "anonymous": false,
71
+ "type": "event"
72
+ },
73
+ {
74
+ "name": "QuantumAnchorRotated",
75
+ "inputs": [
76
+ {
77
+ "name": "nonce",
78
+ "type": "uint256",
79
+ "indexed": true
80
+ },
81
+ {
82
+ "name": "new_pq_anchor",
83
+ "type": "bytes32",
84
+ "indexed": false
85
+ }
86
+ ],
87
+ "anonymous": false,
88
+ "type": "event"
89
+ },
90
+ {
91
+ "stateMutability": "payable",
92
+ "type": "fallback"
93
+ },
94
+ {
95
+ "stateMutability": "view",
96
+ "type": "function",
97
+ "name": "compute_commit_hash",
98
+ "inputs": [
99
+ {
100
+ "name": "secret_preimage",
101
+ "type": "bytes"
102
+ },
103
+ {
104
+ "name": "next_pq_anchor",
105
+ "type": "bytes32"
106
+ },
107
+ {
108
+ "name": "recipient",
109
+ "type": "address"
110
+ },
111
+ {
112
+ "name": "token",
113
+ "type": "address"
114
+ },
115
+ {
116
+ "name": "amount",
117
+ "type": "uint256"
118
+ },
119
+ {
120
+ "name": "committer",
121
+ "type": "address"
122
+ },
123
+ {
124
+ "name": "vault_nonce",
125
+ "type": "uint256"
126
+ }
127
+ ],
128
+ "outputs": [
129
+ {
130
+ "name": "",
131
+ "type": "bytes32"
132
+ }
133
+ ]
134
+ },
135
+ {
136
+ "stateMutability": "nonpayable",
137
+ "type": "function",
138
+ "name": "commit_withdrawal",
139
+ "inputs": [
140
+ {
141
+ "name": "commit_hash",
142
+ "type": "bytes32"
143
+ }
144
+ ],
145
+ "outputs": [
146
+
147
+ ]
148
+ },
149
+ {
150
+ "stateMutability": "nonpayable",
151
+ "type": "function",
152
+ "name": "reveal_and_execute",
153
+ "inputs": [
154
+ {
155
+ "name": "secret_preimage",
156
+ "type": "bytes"
157
+ },
158
+ {
159
+ "name": "next_pq_anchor",
160
+ "type": "bytes32"
161
+ },
162
+ {
163
+ "name": "recipient",
164
+ "type": "address"
165
+ },
166
+ {
167
+ "name": "token",
168
+ "type": "address"
169
+ },
170
+ {
171
+ "name": "amount",
172
+ "type": "uint256"
173
+ }
174
+ ],
175
+ "outputs": [
176
+
177
+ ]
178
+ },
179
+ {
180
+ "stateMutability": "nonpayable",
181
+ "type": "function",
182
+ "name": "rotate_anchor",
183
+ "inputs": [
184
+ {
185
+ "name": "secret_preimage",
186
+ "type": "bytes"
187
+ },
188
+ {
189
+ "name": "next_pq_anchor",
190
+ "type": "bytes32"
191
+ }
192
+ ],
193
+ "outputs": [
194
+
195
+ ]
196
+ },
197
+ {
198
+ "stateMutability": "nonpayable",
199
+ "type": "function",
200
+ "name": "toggle_pause",
201
+ "inputs": [
202
+
203
+ ],
204
+ "outputs": [
205
+
206
+ ]
207
+ },
208
+ {
209
+ "stateMutability": "view",
210
+ "type": "function",
211
+ "name": "owner",
212
+ "inputs": [
213
+
214
+ ],
215
+ "outputs": [
216
+ {
217
+ "name": "",
218
+ "type": "address"
219
+ }
220
+ ]
221
+ },
222
+ {
223
+ "stateMutability": "view",
224
+ "type": "function",
225
+ "name": "current_pq_anchor",
226
+ "inputs": [
227
+
228
+ ],
229
+ "outputs": [
230
+ {
231
+ "name": "",
232
+ "type": "bytes32"
233
+ }
234
+ ]
235
+ },
236
+ {
237
+ "stateMutability": "view",
238
+ "type": "function",
239
+ "name": "min_commit_blocks",
240
+ "inputs": [
241
+
242
+ ],
243
+ "outputs": [
244
+ {
245
+ "name": "",
246
+ "type": "uint256"
247
+ }
248
+ ]
249
+ },
250
+ {
251
+ "stateMutability": "view",
252
+ "type": "function",
253
+ "name": "nonce",
254
+ "inputs": [
255
+
256
+ ],
257
+ "outputs": [
258
+ {
259
+ "name": "",
260
+ "type": "uint256"
261
+ }
262
+ ]
263
+ },
264
+ {
265
+ "stateMutability": "view",
266
+ "type": "function",
267
+ "name": "paused",
268
+ "inputs": [
269
+
270
+ ],
271
+ "outputs": [
272
+ {
273
+ "name": "",
274
+ "type": "bool"
275
+ }
276
+ ]
277
+ },
278
+ {
279
+ "stateMutability": "view",
280
+ "type": "function",
281
+ "name": "pending_commits",
282
+ "inputs": [
283
+ {
284
+ "name": "arg0",
285
+ "type": "bytes32"
286
+ }
287
+ ],
288
+ "outputs": [
289
+ {
290
+ "name": "",
291
+ "type": "tuple",
292
+ "components": [
293
+ {
294
+ "name": "committer",
295
+ "type": "address"
296
+ },
297
+ {
298
+ "name": "commit_block",
299
+ "type": "uint256"
300
+ },
301
+ {
302
+ "name": "consumed",
303
+ "type": "bool"
304
+ }
305
+ ]
306
+ }
307
+ ]
308
+ },
309
+ {
310
+ "stateMutability": "nonpayable",
311
+ "type": "constructor",
312
+ "inputs": [
313
+ {
314
+ "name": "_initial_pq_anchor",
315
+ "type": "bytes32"
316
+ },
317
+ {
318
+ "name": "_min_commit_blocks",
319
+ "type": "uint256"
320
+ }
321
+ ],
322
+ "outputs": [
323
+
324
+ ]
325
+ }
326
+ ]