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