@nucypher/shared 0.1.0-rc.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.
Files changed (125) hide show
  1. package/LICENSE +675 -0
  2. package/README.md +3 -0
  3. package/dist/cjs/contracts/agents/coordinator.d.ts +43 -0
  4. package/dist/cjs/contracts/agents/coordinator.js +82 -0
  5. package/dist/cjs/contracts/agents/coordinator.js.map +1 -0
  6. package/dist/cjs/contracts/agents/global-allow-list.d.ts +8 -0
  7. package/dist/cjs/contracts/agents/global-allow-list.js +25 -0
  8. package/dist/cjs/contracts/agents/global-allow-list.js.map +1 -0
  9. package/dist/cjs/contracts/agents/index.d.ts +2 -0
  10. package/dist/cjs/contracts/agents/index.js +19 -0
  11. package/dist/cjs/contracts/agents/index.js.map +1 -0
  12. package/dist/cjs/contracts/agents/subscription-manager.d.ts +9 -0
  13. package/dist/cjs/contracts/agents/subscription-manager.js +35 -0
  14. package/dist/cjs/contracts/agents/subscription-manager.js.map +1 -0
  15. package/dist/cjs/contracts/ethers-typechain/Coordinator.d.ts +955 -0
  16. package/dist/cjs/contracts/ethers-typechain/Coordinator.js +3 -0
  17. package/dist/cjs/contracts/ethers-typechain/Coordinator.js.map +1 -0
  18. package/dist/cjs/contracts/ethers-typechain/GlobalAllowList.d.ts +423 -0
  19. package/dist/cjs/contracts/ethers-typechain/GlobalAllowList.js +3 -0
  20. package/dist/cjs/contracts/ethers-typechain/GlobalAllowList.js.map +1 -0
  21. package/dist/cjs/contracts/ethers-typechain/SubscriptionManager.d.ts +325 -0
  22. package/dist/cjs/contracts/ethers-typechain/SubscriptionManager.js +3 -0
  23. package/dist/cjs/contracts/ethers-typechain/SubscriptionManager.js.map +1 -0
  24. package/dist/cjs/contracts/ethers-typechain/common.d.ts +21 -0
  25. package/dist/cjs/contracts/ethers-typechain/common.js +3 -0
  26. package/dist/cjs/contracts/ethers-typechain/common.js.map +1 -0
  27. package/dist/cjs/contracts/ethers-typechain/factories/Coordinator__factory.d.ts +1104 -0
  28. package/dist/cjs/contracts/ethers-typechain/factories/Coordinator__factory.js +1441 -0
  29. package/dist/cjs/contracts/ethers-typechain/factories/Coordinator__factory.js.map +1 -0
  30. package/dist/cjs/contracts/ethers-typechain/factories/GlobalAllowList__factory.d.ts +412 -0
  31. package/dist/cjs/contracts/ethers-typechain/factories/GlobalAllowList__factory.js +540 -0
  32. package/dist/cjs/contracts/ethers-typechain/factories/GlobalAllowList__factory.js.map +1 -0
  33. package/dist/cjs/contracts/ethers-typechain/factories/SubscriptionManager__factory.d.ts +390 -0
  34. package/dist/cjs/contracts/ethers-typechain/factories/SubscriptionManager__factory.js +520 -0
  35. package/dist/cjs/contracts/ethers-typechain/factories/SubscriptionManager__factory.js.map +1 -0
  36. package/dist/cjs/contracts/ethers-typechain/factories/index.d.ts +2 -0
  37. package/dist/cjs/contracts/ethers-typechain/factories/index.js +11 -0
  38. package/dist/cjs/contracts/ethers-typechain/factories/index.js.map +1 -0
  39. package/dist/cjs/contracts/ethers-typechain/index.d.ts +5 -0
  40. package/dist/cjs/contracts/ethers-typechain/index.js +32 -0
  41. package/dist/cjs/contracts/ethers-typechain/index.js.map +1 -0
  42. package/dist/cjs/contracts/index.d.ts +3 -0
  43. package/dist/cjs/contracts/index.js +20 -0
  44. package/dist/cjs/contracts/index.js.map +1 -0
  45. package/dist/cjs/contracts/registry.d.ts +8 -0
  46. package/dist/cjs/contracts/registry.js +42 -0
  47. package/dist/cjs/contracts/registry.js.map +1 -0
  48. package/dist/cjs/index.d.ts +6 -0
  49. package/dist/cjs/index.js +35 -0
  50. package/dist/cjs/index.js.map +1 -0
  51. package/dist/cjs/porter.d.ts +36 -0
  52. package/dist/cjs/porter.js +86 -0
  53. package/dist/cjs/porter.js.map +1 -0
  54. package/dist/cjs/types.d.ts +3 -0
  55. package/dist/cjs/types.js +3 -0
  56. package/dist/cjs/types.js.map +1 -0
  57. package/dist/cjs/utils.d.ts +15 -0
  58. package/dist/cjs/utils.js +71 -0
  59. package/dist/cjs/utils.js.map +1 -0
  60. package/dist/cjs/web3.d.ts +7 -0
  61. package/dist/cjs/web3.js +20 -0
  62. package/dist/cjs/web3.js.map +1 -0
  63. package/dist/es/contracts/agents/coordinator.d.ts +43 -0
  64. package/dist/es/contracts/agents/coordinator.js +78 -0
  65. package/dist/es/contracts/agents/coordinator.js.map +1 -0
  66. package/dist/es/contracts/agents/global-allow-list.d.ts +8 -0
  67. package/dist/es/contracts/agents/global-allow-list.js +21 -0
  68. package/dist/es/contracts/agents/global-allow-list.js.map +1 -0
  69. package/dist/es/contracts/agents/index.d.ts +2 -0
  70. package/dist/es/contracts/agents/index.js +3 -0
  71. package/dist/es/contracts/agents/index.js.map +1 -0
  72. package/dist/es/contracts/agents/subscription-manager.d.ts +9 -0
  73. package/dist/es/contracts/agents/subscription-manager.js +31 -0
  74. package/dist/es/contracts/agents/subscription-manager.js.map +1 -0
  75. package/dist/es/contracts/ethers-typechain/Coordinator.d.ts +955 -0
  76. package/dist/es/contracts/ethers-typechain/Coordinator.js +2 -0
  77. package/dist/es/contracts/ethers-typechain/Coordinator.js.map +1 -0
  78. package/dist/es/contracts/ethers-typechain/GlobalAllowList.d.ts +423 -0
  79. package/dist/es/contracts/ethers-typechain/GlobalAllowList.js +2 -0
  80. package/dist/es/contracts/ethers-typechain/GlobalAllowList.js.map +1 -0
  81. package/dist/es/contracts/ethers-typechain/SubscriptionManager.d.ts +325 -0
  82. package/dist/es/contracts/ethers-typechain/SubscriptionManager.js +2 -0
  83. package/dist/es/contracts/ethers-typechain/SubscriptionManager.js.map +1 -0
  84. package/dist/es/contracts/ethers-typechain/common.d.ts +21 -0
  85. package/dist/es/contracts/ethers-typechain/common.js +2 -0
  86. package/dist/es/contracts/ethers-typechain/common.js.map +1 -0
  87. package/dist/es/contracts/ethers-typechain/factories/Coordinator__factory.d.ts +1104 -0
  88. package/dist/es/contracts/ethers-typechain/factories/Coordinator__factory.js +1437 -0
  89. package/dist/es/contracts/ethers-typechain/factories/Coordinator__factory.js.map +1 -0
  90. package/dist/es/contracts/ethers-typechain/factories/GlobalAllowList__factory.d.ts +412 -0
  91. package/dist/es/contracts/ethers-typechain/factories/GlobalAllowList__factory.js +536 -0
  92. package/dist/es/contracts/ethers-typechain/factories/GlobalAllowList__factory.js.map +1 -0
  93. package/dist/es/contracts/ethers-typechain/factories/SubscriptionManager__factory.d.ts +390 -0
  94. package/dist/es/contracts/ethers-typechain/factories/SubscriptionManager__factory.js +516 -0
  95. package/dist/es/contracts/ethers-typechain/factories/SubscriptionManager__factory.js.map +1 -0
  96. package/dist/es/contracts/ethers-typechain/factories/index.d.ts +2 -0
  97. package/dist/es/contracts/ethers-typechain/factories/index.js +6 -0
  98. package/dist/es/contracts/ethers-typechain/factories/index.js.map +1 -0
  99. package/dist/es/contracts/ethers-typechain/index.d.ts +5 -0
  100. package/dist/es/contracts/ethers-typechain/index.js +4 -0
  101. package/dist/es/contracts/ethers-typechain/index.js.map +1 -0
  102. package/dist/es/contracts/index.d.ts +3 -0
  103. package/dist/es/contracts/index.js +4 -0
  104. package/dist/es/contracts/index.js.map +1 -0
  105. package/dist/es/contracts/registry.d.ts +8 -0
  106. package/dist/es/contracts/registry.js +38 -0
  107. package/dist/es/contracts/registry.js.map +1 -0
  108. package/dist/es/index.d.ts +6 -0
  109. package/dist/es/index.js +8 -0
  110. package/dist/es/index.js.map +1 -0
  111. package/dist/es/porter.d.ts +36 -0
  112. package/dist/es/porter.js +78 -0
  113. package/dist/es/porter.js.map +1 -0
  114. package/dist/es/types.d.ts +3 -0
  115. package/dist/es/types.js +2 -0
  116. package/dist/es/types.js.map +1 -0
  117. package/dist/es/utils.d.ts +15 -0
  118. package/dist/es/utils.js +52 -0
  119. package/dist/es/utils.js.map +1 -0
  120. package/dist/es/web3.d.ts +7 -0
  121. package/dist/es/web3.js +16 -0
  122. package/dist/es/web3.js.map +1 -0
  123. package/dist/tsconfig.cjs.tsbuildinfo +1 -0
  124. package/dist/tsconfig.es.tsbuildinfo +1 -0
  125. package/package.json +63 -0
@@ -0,0 +1,1437 @@
1
+ /* Autogenerated file. Do not edit manually. */
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ import { Contract, utils } from "ethers";
5
+ const _abi = [
6
+ {
7
+ type: "constructor",
8
+ stateMutability: "nonpayable",
9
+ inputs: [
10
+ {
11
+ name: "_application",
12
+ type: "address",
13
+ internalType: "contract ITACoChildApplication",
14
+ },
15
+ {
16
+ name: "_timeout",
17
+ type: "uint32",
18
+ internalType: "uint32",
19
+ },
20
+ {
21
+ name: "_maxDkgSize",
22
+ type: "uint16",
23
+ internalType: "uint16",
24
+ },
25
+ {
26
+ name: "_admin",
27
+ type: "address",
28
+ internalType: "address",
29
+ },
30
+ {
31
+ name: "_currency",
32
+ type: "address",
33
+ internalType: "contract IERC20",
34
+ },
35
+ {
36
+ name: "_feeRatePerSecond",
37
+ type: "uint256",
38
+ internalType: "uint256",
39
+ },
40
+ ],
41
+ },
42
+ {
43
+ type: "event",
44
+ name: "AggregationPosted",
45
+ inputs: [
46
+ {
47
+ name: "ritualId",
48
+ type: "uint32",
49
+ internalType: "uint32",
50
+ indexed: true,
51
+ },
52
+ {
53
+ name: "node",
54
+ type: "address",
55
+ internalType: "address",
56
+ indexed: true,
57
+ },
58
+ {
59
+ name: "aggregatedTranscriptDigest",
60
+ type: "bytes32",
61
+ internalType: "bytes32",
62
+ indexed: false,
63
+ },
64
+ ],
65
+ anonymous: false,
66
+ },
67
+ {
68
+ type: "event",
69
+ name: "DefaultAdminDelayChangeCanceled",
70
+ inputs: [],
71
+ anonymous: false,
72
+ },
73
+ {
74
+ type: "event",
75
+ name: "DefaultAdminDelayChangeScheduled",
76
+ inputs: [
77
+ {
78
+ name: "newDelay",
79
+ type: "uint48",
80
+ internalType: "uint48",
81
+ indexed: false,
82
+ },
83
+ {
84
+ name: "effectSchedule",
85
+ type: "uint48",
86
+ internalType: "uint48",
87
+ indexed: false,
88
+ },
89
+ ],
90
+ anonymous: false,
91
+ },
92
+ {
93
+ type: "event",
94
+ name: "DefaultAdminTransferCanceled",
95
+ inputs: [],
96
+ anonymous: false,
97
+ },
98
+ {
99
+ type: "event",
100
+ name: "DefaultAdminTransferScheduled",
101
+ inputs: [
102
+ {
103
+ name: "newAdmin",
104
+ type: "address",
105
+ internalType: "address",
106
+ indexed: true,
107
+ },
108
+ {
109
+ name: "acceptSchedule",
110
+ type: "uint48",
111
+ internalType: "uint48",
112
+ indexed: false,
113
+ },
114
+ ],
115
+ anonymous: false,
116
+ },
117
+ {
118
+ type: "event",
119
+ name: "EndRitual",
120
+ inputs: [
121
+ {
122
+ name: "ritualId",
123
+ type: "uint32",
124
+ internalType: "uint32",
125
+ indexed: true,
126
+ },
127
+ {
128
+ name: "successful",
129
+ type: "bool",
130
+ internalType: "bool",
131
+ indexed: false,
132
+ },
133
+ ],
134
+ anonymous: false,
135
+ },
136
+ {
137
+ type: "event",
138
+ name: "MaxDkgSizeChanged",
139
+ inputs: [
140
+ {
141
+ name: "oldSize",
142
+ type: "uint16",
143
+ internalType: "uint16",
144
+ indexed: false,
145
+ },
146
+ {
147
+ name: "newSize",
148
+ type: "uint16",
149
+ internalType: "uint16",
150
+ indexed: false,
151
+ },
152
+ ],
153
+ anonymous: false,
154
+ },
155
+ {
156
+ type: "event",
157
+ name: "ParticipantPublicKeySet",
158
+ inputs: [
159
+ {
160
+ name: "ritualId",
161
+ type: "uint32",
162
+ internalType: "uint32",
163
+ indexed: true,
164
+ },
165
+ {
166
+ name: "participant",
167
+ type: "address",
168
+ internalType: "address",
169
+ indexed: true,
170
+ },
171
+ {
172
+ name: "publicKey",
173
+ type: "tuple",
174
+ components: [
175
+ {
176
+ name: "word0",
177
+ type: "bytes32",
178
+ internalType: "bytes32",
179
+ },
180
+ {
181
+ name: "word1",
182
+ type: "bytes32",
183
+ internalType: "bytes32",
184
+ },
185
+ {
186
+ name: "word2",
187
+ type: "bytes32",
188
+ internalType: "bytes32",
189
+ },
190
+ ],
191
+ internalType: "struct BLS12381.G2Point",
192
+ indexed: false,
193
+ },
194
+ ],
195
+ anonymous: false,
196
+ },
197
+ {
198
+ type: "event",
199
+ name: "RoleAdminChanged",
200
+ inputs: [
201
+ {
202
+ name: "role",
203
+ type: "bytes32",
204
+ internalType: "bytes32",
205
+ indexed: true,
206
+ },
207
+ {
208
+ name: "previousAdminRole",
209
+ type: "bytes32",
210
+ internalType: "bytes32",
211
+ indexed: true,
212
+ },
213
+ {
214
+ name: "newAdminRole",
215
+ type: "bytes32",
216
+ internalType: "bytes32",
217
+ indexed: true,
218
+ },
219
+ ],
220
+ anonymous: false,
221
+ },
222
+ {
223
+ type: "event",
224
+ name: "RoleGranted",
225
+ inputs: [
226
+ {
227
+ name: "role",
228
+ type: "bytes32",
229
+ internalType: "bytes32",
230
+ indexed: true,
231
+ },
232
+ {
233
+ name: "account",
234
+ type: "address",
235
+ internalType: "address",
236
+ indexed: true,
237
+ },
238
+ {
239
+ name: "sender",
240
+ type: "address",
241
+ internalType: "address",
242
+ indexed: true,
243
+ },
244
+ ],
245
+ anonymous: false,
246
+ },
247
+ {
248
+ type: "event",
249
+ name: "RoleRevoked",
250
+ inputs: [
251
+ {
252
+ name: "role",
253
+ type: "bytes32",
254
+ internalType: "bytes32",
255
+ indexed: true,
256
+ },
257
+ {
258
+ name: "account",
259
+ type: "address",
260
+ internalType: "address",
261
+ indexed: true,
262
+ },
263
+ {
264
+ name: "sender",
265
+ type: "address",
266
+ internalType: "address",
267
+ indexed: true,
268
+ },
269
+ ],
270
+ anonymous: false,
271
+ },
272
+ {
273
+ type: "event",
274
+ name: "StartAggregationRound",
275
+ inputs: [
276
+ {
277
+ name: "ritualId",
278
+ type: "uint32",
279
+ internalType: "uint32",
280
+ indexed: true,
281
+ },
282
+ ],
283
+ anonymous: false,
284
+ },
285
+ {
286
+ type: "event",
287
+ name: "StartRitual",
288
+ inputs: [
289
+ {
290
+ name: "ritualId",
291
+ type: "uint32",
292
+ internalType: "uint32",
293
+ indexed: true,
294
+ },
295
+ {
296
+ name: "authority",
297
+ type: "address",
298
+ internalType: "address",
299
+ indexed: true,
300
+ },
301
+ {
302
+ name: "participants",
303
+ type: "address[]",
304
+ internalType: "address[]",
305
+ indexed: false,
306
+ },
307
+ ],
308
+ anonymous: false,
309
+ },
310
+ {
311
+ type: "event",
312
+ name: "TimeoutChanged",
313
+ inputs: [
314
+ {
315
+ name: "oldTimeout",
316
+ type: "uint32",
317
+ internalType: "uint32",
318
+ indexed: false,
319
+ },
320
+ {
321
+ name: "newTimeout",
322
+ type: "uint32",
323
+ internalType: "uint32",
324
+ indexed: false,
325
+ },
326
+ ],
327
+ anonymous: false,
328
+ },
329
+ {
330
+ type: "event",
331
+ name: "TranscriptPosted",
332
+ inputs: [
333
+ {
334
+ name: "ritualId",
335
+ type: "uint32",
336
+ internalType: "uint32",
337
+ indexed: true,
338
+ },
339
+ {
340
+ name: "node",
341
+ type: "address",
342
+ internalType: "address",
343
+ indexed: true,
344
+ },
345
+ {
346
+ name: "transcriptDigest",
347
+ type: "bytes32",
348
+ internalType: "bytes32",
349
+ indexed: false,
350
+ },
351
+ ],
352
+ anonymous: false,
353
+ },
354
+ {
355
+ type: "function",
356
+ name: "DEFAULT_ADMIN_ROLE",
357
+ stateMutability: "view",
358
+ inputs: [],
359
+ outputs: [
360
+ {
361
+ name: "",
362
+ type: "bytes32",
363
+ internalType: "bytes32",
364
+ },
365
+ ],
366
+ },
367
+ {
368
+ type: "function",
369
+ name: "INITIATOR_ROLE",
370
+ stateMutability: "view",
371
+ inputs: [],
372
+ outputs: [
373
+ {
374
+ name: "",
375
+ type: "bytes32",
376
+ internalType: "bytes32",
377
+ },
378
+ ],
379
+ },
380
+ {
381
+ type: "function",
382
+ name: "TREASURY_ROLE",
383
+ stateMutability: "view",
384
+ inputs: [],
385
+ outputs: [
386
+ {
387
+ name: "",
388
+ type: "bytes32",
389
+ internalType: "bytes32",
390
+ },
391
+ ],
392
+ },
393
+ {
394
+ type: "function",
395
+ name: "acceptDefaultAdminTransfer",
396
+ stateMutability: "nonpayable",
397
+ inputs: [],
398
+ outputs: [],
399
+ },
400
+ {
401
+ type: "function",
402
+ name: "application",
403
+ stateMutability: "view",
404
+ inputs: [],
405
+ outputs: [
406
+ {
407
+ name: "",
408
+ type: "address",
409
+ internalType: "contract ITACoChildApplication",
410
+ },
411
+ ],
412
+ },
413
+ {
414
+ type: "function",
415
+ name: "beginDefaultAdminTransfer",
416
+ stateMutability: "nonpayable",
417
+ inputs: [
418
+ {
419
+ name: "newAdmin",
420
+ type: "address",
421
+ internalType: "address",
422
+ },
423
+ ],
424
+ outputs: [],
425
+ },
426
+ {
427
+ type: "function",
428
+ name: "cancelDefaultAdminTransfer",
429
+ stateMutability: "nonpayable",
430
+ inputs: [],
431
+ outputs: [],
432
+ },
433
+ {
434
+ type: "function",
435
+ name: "changeDefaultAdminDelay",
436
+ stateMutability: "nonpayable",
437
+ inputs: [
438
+ {
439
+ name: "newDelay",
440
+ type: "uint48",
441
+ internalType: "uint48",
442
+ },
443
+ ],
444
+ outputs: [],
445
+ },
446
+ {
447
+ type: "function",
448
+ name: "cohortFingerprint",
449
+ stateMutability: "pure",
450
+ inputs: [
451
+ {
452
+ name: "nodes",
453
+ type: "address[]",
454
+ internalType: "address[]",
455
+ },
456
+ ],
457
+ outputs: [
458
+ {
459
+ name: "",
460
+ type: "bytes32",
461
+ internalType: "bytes32",
462
+ },
463
+ ],
464
+ },
465
+ {
466
+ type: "function",
467
+ name: "currency",
468
+ stateMutability: "view",
469
+ inputs: [],
470
+ outputs: [
471
+ {
472
+ name: "",
473
+ type: "address",
474
+ internalType: "contract IERC20",
475
+ },
476
+ ],
477
+ },
478
+ {
479
+ type: "function",
480
+ name: "defaultAdmin",
481
+ stateMutability: "view",
482
+ inputs: [],
483
+ outputs: [
484
+ {
485
+ name: "",
486
+ type: "address",
487
+ internalType: "address",
488
+ },
489
+ ],
490
+ },
491
+ {
492
+ type: "function",
493
+ name: "defaultAdminDelay",
494
+ stateMutability: "view",
495
+ inputs: [],
496
+ outputs: [
497
+ {
498
+ name: "",
499
+ type: "uint48",
500
+ internalType: "uint48",
501
+ },
502
+ ],
503
+ },
504
+ {
505
+ type: "function",
506
+ name: "defaultAdminDelayIncreaseWait",
507
+ stateMutability: "view",
508
+ inputs: [],
509
+ outputs: [
510
+ {
511
+ name: "",
512
+ type: "uint48",
513
+ internalType: "uint48",
514
+ },
515
+ ],
516
+ },
517
+ {
518
+ type: "function",
519
+ name: "feeRatePerSecond",
520
+ stateMutability: "view",
521
+ inputs: [],
522
+ outputs: [
523
+ {
524
+ name: "",
525
+ type: "uint256",
526
+ internalType: "uint256",
527
+ },
528
+ ],
529
+ },
530
+ {
531
+ type: "function",
532
+ name: "getAuthority",
533
+ stateMutability: "view",
534
+ inputs: [
535
+ {
536
+ name: "ritualId",
537
+ type: "uint32",
538
+ internalType: "uint32",
539
+ },
540
+ ],
541
+ outputs: [
542
+ {
543
+ name: "",
544
+ type: "address",
545
+ internalType: "address",
546
+ },
547
+ ],
548
+ },
549
+ {
550
+ type: "function",
551
+ name: "getParticipantFromProvider",
552
+ stateMutability: "view",
553
+ inputs: [
554
+ {
555
+ name: "ritualId",
556
+ type: "uint32",
557
+ internalType: "uint32",
558
+ },
559
+ {
560
+ name: "provider",
561
+ type: "address",
562
+ internalType: "address",
563
+ },
564
+ ],
565
+ outputs: [
566
+ {
567
+ name: "",
568
+ type: "tuple",
569
+ components: [
570
+ {
571
+ name: "provider",
572
+ type: "address",
573
+ internalType: "address",
574
+ },
575
+ {
576
+ name: "aggregated",
577
+ type: "bool",
578
+ internalType: "bool",
579
+ },
580
+ {
581
+ name: "transcript",
582
+ type: "bytes",
583
+ internalType: "bytes",
584
+ },
585
+ {
586
+ name: "decryptionRequestStaticKey",
587
+ type: "bytes",
588
+ internalType: "bytes",
589
+ },
590
+ ],
591
+ internalType: "struct Coordinator.Participant",
592
+ },
593
+ ],
594
+ },
595
+ {
596
+ type: "function",
597
+ name: "getParticipants",
598
+ stateMutability: "view",
599
+ inputs: [
600
+ {
601
+ name: "ritualId",
602
+ type: "uint32",
603
+ internalType: "uint32",
604
+ },
605
+ ],
606
+ outputs: [
607
+ {
608
+ name: "",
609
+ type: "tuple[]",
610
+ components: [
611
+ {
612
+ name: "provider",
613
+ type: "address",
614
+ internalType: "address",
615
+ },
616
+ {
617
+ name: "aggregated",
618
+ type: "bool",
619
+ internalType: "bool",
620
+ },
621
+ {
622
+ name: "transcript",
623
+ type: "bytes",
624
+ internalType: "bytes",
625
+ },
626
+ {
627
+ name: "decryptionRequestStaticKey",
628
+ type: "bytes",
629
+ internalType: "bytes",
630
+ },
631
+ ],
632
+ internalType: "struct Coordinator.Participant[]",
633
+ },
634
+ ],
635
+ },
636
+ {
637
+ type: "function",
638
+ name: "getProviderPublicKey",
639
+ stateMutability: "view",
640
+ inputs: [
641
+ {
642
+ name: "_provider",
643
+ type: "address",
644
+ internalType: "address",
645
+ },
646
+ {
647
+ name: "_ritualId",
648
+ type: "uint256",
649
+ internalType: "uint256",
650
+ },
651
+ ],
652
+ outputs: [
653
+ {
654
+ name: "",
655
+ type: "tuple",
656
+ components: [
657
+ {
658
+ name: "word0",
659
+ type: "bytes32",
660
+ internalType: "bytes32",
661
+ },
662
+ {
663
+ name: "word1",
664
+ type: "bytes32",
665
+ internalType: "bytes32",
666
+ },
667
+ {
668
+ name: "word2",
669
+ type: "bytes32",
670
+ internalType: "bytes32",
671
+ },
672
+ ],
673
+ internalType: "struct BLS12381.G2Point",
674
+ },
675
+ ],
676
+ },
677
+ {
678
+ type: "function",
679
+ name: "getPublicKeyFromRitualId",
680
+ stateMutability: "view",
681
+ inputs: [
682
+ {
683
+ name: "ritualId",
684
+ type: "uint32",
685
+ internalType: "uint32",
686
+ },
687
+ ],
688
+ outputs: [
689
+ {
690
+ name: "dkgPublicKey",
691
+ type: "tuple",
692
+ components: [
693
+ {
694
+ name: "word0",
695
+ type: "bytes32",
696
+ internalType: "bytes32",
697
+ },
698
+ {
699
+ name: "word1",
700
+ type: "bytes16",
701
+ internalType: "bytes16",
702
+ },
703
+ ],
704
+ internalType: "struct BLS12381.G1Point",
705
+ },
706
+ ],
707
+ },
708
+ {
709
+ type: "function",
710
+ name: "getRitualIdFromPublicKey",
711
+ stateMutability: "view",
712
+ inputs: [
713
+ {
714
+ name: "dkgPublicKey",
715
+ type: "tuple",
716
+ components: [
717
+ {
718
+ name: "word0",
719
+ type: "bytes32",
720
+ internalType: "bytes32",
721
+ },
722
+ {
723
+ name: "word1",
724
+ type: "bytes16",
725
+ internalType: "bytes16",
726
+ },
727
+ ],
728
+ internalType: "struct BLS12381.G1Point",
729
+ },
730
+ ],
731
+ outputs: [
732
+ {
733
+ name: "ritualId",
734
+ type: "uint32",
735
+ internalType: "uint32",
736
+ },
737
+ ],
738
+ },
739
+ {
740
+ type: "function",
741
+ name: "getRitualInitiationCost",
742
+ stateMutability: "view",
743
+ inputs: [
744
+ {
745
+ name: "providers",
746
+ type: "address[]",
747
+ internalType: "address[]",
748
+ },
749
+ {
750
+ name: "duration",
751
+ type: "uint32",
752
+ internalType: "uint32",
753
+ },
754
+ ],
755
+ outputs: [
756
+ {
757
+ name: "",
758
+ type: "uint256",
759
+ internalType: "uint256",
760
+ },
761
+ ],
762
+ },
763
+ {
764
+ type: "function",
765
+ name: "getRitualState",
766
+ stateMutability: "view",
767
+ inputs: [
768
+ {
769
+ name: "ritualId",
770
+ type: "uint32",
771
+ internalType: "uint32",
772
+ },
773
+ ],
774
+ outputs: [
775
+ {
776
+ name: "",
777
+ type: "uint8",
778
+ internalType: "enum Coordinator.RitualState",
779
+ },
780
+ ],
781
+ },
782
+ {
783
+ type: "function",
784
+ name: "getRoleAdmin",
785
+ stateMutability: "view",
786
+ inputs: [
787
+ {
788
+ name: "role",
789
+ type: "bytes32",
790
+ internalType: "bytes32",
791
+ },
792
+ ],
793
+ outputs: [
794
+ {
795
+ name: "",
796
+ type: "bytes32",
797
+ internalType: "bytes32",
798
+ },
799
+ ],
800
+ },
801
+ {
802
+ type: "function",
803
+ name: "getThresholdForRitualSize",
804
+ stateMutability: "pure",
805
+ inputs: [
806
+ {
807
+ name: "size",
808
+ type: "uint16",
809
+ internalType: "uint16",
810
+ },
811
+ ],
812
+ outputs: [
813
+ {
814
+ name: "",
815
+ type: "uint16",
816
+ internalType: "uint16",
817
+ },
818
+ ],
819
+ },
820
+ {
821
+ type: "function",
822
+ name: "grantRole",
823
+ stateMutability: "nonpayable",
824
+ inputs: [
825
+ {
826
+ name: "role",
827
+ type: "bytes32",
828
+ internalType: "bytes32",
829
+ },
830
+ {
831
+ name: "account",
832
+ type: "address",
833
+ internalType: "address",
834
+ },
835
+ ],
836
+ outputs: [],
837
+ },
838
+ {
839
+ type: "function",
840
+ name: "hasRole",
841
+ stateMutability: "view",
842
+ inputs: [
843
+ {
844
+ name: "role",
845
+ type: "bytes32",
846
+ internalType: "bytes32",
847
+ },
848
+ {
849
+ name: "account",
850
+ type: "address",
851
+ internalType: "address",
852
+ },
853
+ ],
854
+ outputs: [
855
+ {
856
+ name: "",
857
+ type: "bool",
858
+ internalType: "bool",
859
+ },
860
+ ],
861
+ },
862
+ {
863
+ type: "function",
864
+ name: "initiateRitual",
865
+ stateMutability: "nonpayable",
866
+ inputs: [
867
+ {
868
+ name: "providers",
869
+ type: "address[]",
870
+ internalType: "address[]",
871
+ },
872
+ {
873
+ name: "authority",
874
+ type: "address",
875
+ internalType: "address",
876
+ },
877
+ {
878
+ name: "duration",
879
+ type: "uint32",
880
+ internalType: "uint32",
881
+ },
882
+ {
883
+ name: "accessController",
884
+ type: "address",
885
+ internalType: "contract IEncryptionAuthorizer",
886
+ },
887
+ ],
888
+ outputs: [
889
+ {
890
+ name: "",
891
+ type: "uint32",
892
+ internalType: "uint32",
893
+ },
894
+ ],
895
+ },
896
+ {
897
+ type: "function",
898
+ name: "isEncryptionAuthorized",
899
+ stateMutability: "view",
900
+ inputs: [
901
+ {
902
+ name: "ritualId",
903
+ type: "uint32",
904
+ internalType: "uint32",
905
+ },
906
+ {
907
+ name: "evidence",
908
+ type: "bytes",
909
+ internalType: "bytes",
910
+ },
911
+ {
912
+ name: "ciphertextHeader",
913
+ type: "bytes",
914
+ internalType: "bytes",
915
+ },
916
+ ],
917
+ outputs: [
918
+ {
919
+ name: "",
920
+ type: "bool",
921
+ internalType: "bool",
922
+ },
923
+ ],
924
+ },
925
+ {
926
+ type: "function",
927
+ name: "isInitiationPublic",
928
+ stateMutability: "view",
929
+ inputs: [],
930
+ outputs: [
931
+ {
932
+ name: "",
933
+ type: "bool",
934
+ internalType: "bool",
935
+ },
936
+ ],
937
+ },
938
+ {
939
+ type: "function",
940
+ name: "isProviderPublicKeySet",
941
+ stateMutability: "view",
942
+ inputs: [
943
+ {
944
+ name: "_provider",
945
+ type: "address",
946
+ internalType: "address",
947
+ },
948
+ ],
949
+ outputs: [
950
+ {
951
+ name: "",
952
+ type: "bool",
953
+ internalType: "bool",
954
+ },
955
+ ],
956
+ },
957
+ {
958
+ type: "function",
959
+ name: "isRitualFinalized",
960
+ stateMutability: "view",
961
+ inputs: [
962
+ {
963
+ name: "ritualId",
964
+ type: "uint32",
965
+ internalType: "uint32",
966
+ },
967
+ ],
968
+ outputs: [
969
+ {
970
+ name: "",
971
+ type: "bool",
972
+ internalType: "bool",
973
+ },
974
+ ],
975
+ },
976
+ {
977
+ type: "function",
978
+ name: "makeInitiationPublic",
979
+ stateMutability: "nonpayable",
980
+ inputs: [],
981
+ outputs: [],
982
+ },
983
+ {
984
+ type: "function",
985
+ name: "maxDkgSize",
986
+ stateMutability: "view",
987
+ inputs: [],
988
+ outputs: [
989
+ {
990
+ name: "",
991
+ type: "uint16",
992
+ internalType: "uint16",
993
+ },
994
+ ],
995
+ },
996
+ {
997
+ type: "function",
998
+ name: "numberOfRituals",
999
+ stateMutability: "view",
1000
+ inputs: [],
1001
+ outputs: [
1002
+ {
1003
+ name: "",
1004
+ type: "uint256",
1005
+ internalType: "uint256",
1006
+ },
1007
+ ],
1008
+ },
1009
+ {
1010
+ type: "function",
1011
+ name: "owner",
1012
+ stateMutability: "view",
1013
+ inputs: [],
1014
+ outputs: [
1015
+ {
1016
+ name: "",
1017
+ type: "address",
1018
+ internalType: "address",
1019
+ },
1020
+ ],
1021
+ },
1022
+ {
1023
+ type: "function",
1024
+ name: "pendingDefaultAdmin",
1025
+ stateMutability: "view",
1026
+ inputs: [],
1027
+ outputs: [
1028
+ {
1029
+ name: "newAdmin",
1030
+ type: "address",
1031
+ internalType: "address",
1032
+ },
1033
+ {
1034
+ name: "schedule",
1035
+ type: "uint48",
1036
+ internalType: "uint48",
1037
+ },
1038
+ ],
1039
+ },
1040
+ {
1041
+ type: "function",
1042
+ name: "pendingDefaultAdminDelay",
1043
+ stateMutability: "view",
1044
+ inputs: [],
1045
+ outputs: [
1046
+ {
1047
+ name: "newDelay",
1048
+ type: "uint48",
1049
+ internalType: "uint48",
1050
+ },
1051
+ {
1052
+ name: "schedule",
1053
+ type: "uint48",
1054
+ internalType: "uint48",
1055
+ },
1056
+ ],
1057
+ },
1058
+ {
1059
+ type: "function",
1060
+ name: "pendingFees",
1061
+ stateMutability: "view",
1062
+ inputs: [
1063
+ {
1064
+ name: "",
1065
+ type: "uint256",
1066
+ internalType: "uint256",
1067
+ },
1068
+ ],
1069
+ outputs: [
1070
+ {
1071
+ name: "",
1072
+ type: "uint256",
1073
+ internalType: "uint256",
1074
+ },
1075
+ ],
1076
+ },
1077
+ {
1078
+ type: "function",
1079
+ name: "postAggregation",
1080
+ stateMutability: "nonpayable",
1081
+ inputs: [
1082
+ {
1083
+ name: "ritualId",
1084
+ type: "uint32",
1085
+ internalType: "uint32",
1086
+ },
1087
+ {
1088
+ name: "aggregatedTranscript",
1089
+ type: "bytes",
1090
+ internalType: "bytes",
1091
+ },
1092
+ {
1093
+ name: "dkgPublicKey",
1094
+ type: "tuple",
1095
+ components: [
1096
+ {
1097
+ name: "word0",
1098
+ type: "bytes32",
1099
+ internalType: "bytes32",
1100
+ },
1101
+ {
1102
+ name: "word1",
1103
+ type: "bytes16",
1104
+ internalType: "bytes16",
1105
+ },
1106
+ ],
1107
+ internalType: "struct BLS12381.G1Point",
1108
+ },
1109
+ {
1110
+ name: "decryptionRequestStaticKey",
1111
+ type: "bytes",
1112
+ internalType: "bytes",
1113
+ },
1114
+ ],
1115
+ outputs: [],
1116
+ },
1117
+ {
1118
+ type: "function",
1119
+ name: "postTranscript",
1120
+ stateMutability: "nonpayable",
1121
+ inputs: [
1122
+ {
1123
+ name: "ritualId",
1124
+ type: "uint32",
1125
+ internalType: "uint32",
1126
+ },
1127
+ {
1128
+ name: "transcript",
1129
+ type: "bytes",
1130
+ internalType: "bytes",
1131
+ },
1132
+ ],
1133
+ outputs: [],
1134
+ },
1135
+ {
1136
+ type: "function",
1137
+ name: "processPendingFee",
1138
+ stateMutability: "nonpayable",
1139
+ inputs: [
1140
+ {
1141
+ name: "ritualId",
1142
+ type: "uint32",
1143
+ internalType: "uint32",
1144
+ },
1145
+ ],
1146
+ outputs: [],
1147
+ },
1148
+ {
1149
+ type: "function",
1150
+ name: "renounceRole",
1151
+ stateMutability: "nonpayable",
1152
+ inputs: [
1153
+ {
1154
+ name: "role",
1155
+ type: "bytes32",
1156
+ internalType: "bytes32",
1157
+ },
1158
+ {
1159
+ name: "account",
1160
+ type: "address",
1161
+ internalType: "address",
1162
+ },
1163
+ ],
1164
+ outputs: [],
1165
+ },
1166
+ {
1167
+ type: "function",
1168
+ name: "revokeRole",
1169
+ stateMutability: "nonpayable",
1170
+ inputs: [
1171
+ {
1172
+ name: "role",
1173
+ type: "bytes32",
1174
+ internalType: "bytes32",
1175
+ },
1176
+ {
1177
+ name: "account",
1178
+ type: "address",
1179
+ internalType: "address",
1180
+ },
1181
+ ],
1182
+ outputs: [],
1183
+ },
1184
+ {
1185
+ type: "function",
1186
+ name: "rituals",
1187
+ stateMutability: "view",
1188
+ inputs: [
1189
+ {
1190
+ name: "",
1191
+ type: "uint256",
1192
+ internalType: "uint256",
1193
+ },
1194
+ ],
1195
+ outputs: [
1196
+ {
1197
+ name: "initiator",
1198
+ type: "address",
1199
+ internalType: "address",
1200
+ },
1201
+ {
1202
+ name: "initTimestamp",
1203
+ type: "uint32",
1204
+ internalType: "uint32",
1205
+ },
1206
+ {
1207
+ name: "endTimestamp",
1208
+ type: "uint32",
1209
+ internalType: "uint32",
1210
+ },
1211
+ {
1212
+ name: "totalTranscripts",
1213
+ type: "uint16",
1214
+ internalType: "uint16",
1215
+ },
1216
+ {
1217
+ name: "totalAggregations",
1218
+ type: "uint16",
1219
+ internalType: "uint16",
1220
+ },
1221
+ {
1222
+ name: "authority",
1223
+ type: "address",
1224
+ internalType: "address",
1225
+ },
1226
+ {
1227
+ name: "dkgSize",
1228
+ type: "uint16",
1229
+ internalType: "uint16",
1230
+ },
1231
+ {
1232
+ name: "threshold",
1233
+ type: "uint16",
1234
+ internalType: "uint16",
1235
+ },
1236
+ {
1237
+ name: "aggregationMismatch",
1238
+ type: "bool",
1239
+ internalType: "bool",
1240
+ },
1241
+ {
1242
+ name: "accessController",
1243
+ type: "address",
1244
+ internalType: "contract IEncryptionAuthorizer",
1245
+ },
1246
+ {
1247
+ name: "publicKey",
1248
+ type: "tuple",
1249
+ components: [
1250
+ {
1251
+ name: "word0",
1252
+ type: "bytes32",
1253
+ internalType: "bytes32",
1254
+ },
1255
+ {
1256
+ name: "word1",
1257
+ type: "bytes16",
1258
+ internalType: "bytes16",
1259
+ },
1260
+ ],
1261
+ internalType: "struct BLS12381.G1Point",
1262
+ },
1263
+ {
1264
+ name: "aggregatedTranscript",
1265
+ type: "bytes",
1266
+ internalType: "bytes",
1267
+ },
1268
+ ],
1269
+ },
1270
+ {
1271
+ type: "function",
1272
+ name: "rollbackDefaultAdminDelay",
1273
+ stateMutability: "nonpayable",
1274
+ inputs: [],
1275
+ outputs: [],
1276
+ },
1277
+ {
1278
+ type: "function",
1279
+ name: "setMaxDkgSize",
1280
+ stateMutability: "nonpayable",
1281
+ inputs: [
1282
+ {
1283
+ name: "newSize",
1284
+ type: "uint16",
1285
+ internalType: "uint16",
1286
+ },
1287
+ ],
1288
+ outputs: [],
1289
+ },
1290
+ {
1291
+ type: "function",
1292
+ name: "setProviderPublicKey",
1293
+ stateMutability: "nonpayable",
1294
+ inputs: [
1295
+ {
1296
+ name: "_publicKey",
1297
+ type: "tuple",
1298
+ components: [
1299
+ {
1300
+ name: "word0",
1301
+ type: "bytes32",
1302
+ internalType: "bytes32",
1303
+ },
1304
+ {
1305
+ name: "word1",
1306
+ type: "bytes32",
1307
+ internalType: "bytes32",
1308
+ },
1309
+ {
1310
+ name: "word2",
1311
+ type: "bytes32",
1312
+ internalType: "bytes32",
1313
+ },
1314
+ ],
1315
+ internalType: "struct BLS12381.G2Point",
1316
+ },
1317
+ ],
1318
+ outputs: [],
1319
+ },
1320
+ {
1321
+ type: "function",
1322
+ name: "setReimbursementPool",
1323
+ stateMutability: "nonpayable",
1324
+ inputs: [
1325
+ {
1326
+ name: "pool",
1327
+ type: "address",
1328
+ internalType: "contract IReimbursementPool",
1329
+ },
1330
+ ],
1331
+ outputs: [],
1332
+ },
1333
+ {
1334
+ type: "function",
1335
+ name: "setRitualAuthority",
1336
+ stateMutability: "nonpayable",
1337
+ inputs: [
1338
+ {
1339
+ name: "ritualId",
1340
+ type: "uint32",
1341
+ internalType: "uint32",
1342
+ },
1343
+ {
1344
+ name: "authority",
1345
+ type: "address",
1346
+ internalType: "address",
1347
+ },
1348
+ ],
1349
+ outputs: [],
1350
+ },
1351
+ {
1352
+ type: "function",
1353
+ name: "setTimeout",
1354
+ stateMutability: "nonpayable",
1355
+ inputs: [
1356
+ {
1357
+ name: "newTimeout",
1358
+ type: "uint32",
1359
+ internalType: "uint32",
1360
+ },
1361
+ ],
1362
+ outputs: [],
1363
+ },
1364
+ {
1365
+ type: "function",
1366
+ name: "supportsInterface",
1367
+ stateMutability: "view",
1368
+ inputs: [
1369
+ {
1370
+ name: "interfaceId",
1371
+ type: "bytes4",
1372
+ internalType: "bytes4",
1373
+ },
1374
+ ],
1375
+ outputs: [
1376
+ {
1377
+ name: "",
1378
+ type: "bool",
1379
+ internalType: "bool",
1380
+ },
1381
+ ],
1382
+ },
1383
+ {
1384
+ type: "function",
1385
+ name: "timeout",
1386
+ stateMutability: "view",
1387
+ inputs: [],
1388
+ outputs: [
1389
+ {
1390
+ name: "",
1391
+ type: "uint32",
1392
+ internalType: "uint32",
1393
+ },
1394
+ ],
1395
+ },
1396
+ {
1397
+ type: "function",
1398
+ name: "totalPendingFees",
1399
+ stateMutability: "view",
1400
+ inputs: [],
1401
+ outputs: [
1402
+ {
1403
+ name: "",
1404
+ type: "uint256",
1405
+ internalType: "uint256",
1406
+ },
1407
+ ],
1408
+ },
1409
+ {
1410
+ type: "function",
1411
+ name: "withdrawTokens",
1412
+ stateMutability: "nonpayable",
1413
+ inputs: [
1414
+ {
1415
+ name: "token",
1416
+ type: "address",
1417
+ internalType: "contract IERC20",
1418
+ },
1419
+ {
1420
+ name: "amount",
1421
+ type: "uint256",
1422
+ internalType: "uint256",
1423
+ },
1424
+ ],
1425
+ outputs: [],
1426
+ },
1427
+ ];
1428
+ export class Coordinator__factory {
1429
+ static abi = _abi;
1430
+ static createInterface() {
1431
+ return new utils.Interface(_abi);
1432
+ }
1433
+ static connect(address, signerOrProvider) {
1434
+ return new Contract(address, _abi, signerOrProvider);
1435
+ }
1436
+ }
1437
+ //# sourceMappingURL=Coordinator__factory.js.map