@nucypher/shared 0.6.0-alpha.2 → 0.6.0-dev.viem

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 (157) hide show
  1. package/dist/cjs/adapters.d.ts +25 -0
  2. package/dist/cjs/adapters.js +44 -0
  3. package/dist/cjs/adapters.js.map +1 -0
  4. package/dist/cjs/contracts/agents/coordinator.d.ts +3 -3
  5. package/dist/cjs/contracts/agents/coordinator.js +6 -6
  6. package/dist/cjs/contracts/agents/coordinator.js.map +1 -1
  7. package/dist/cjs/contracts/agents/global-allow-list.d.ts +2 -2
  8. package/dist/cjs/contracts/agents/global-allow-list.js +4 -4
  9. package/dist/cjs/contracts/agents/global-allow-list.js.map +1 -1
  10. package/dist/cjs/contracts/agents/index.d.ts +3 -4
  11. package/dist/cjs/contracts/agents/index.js +3 -4
  12. package/dist/cjs/contracts/agents/index.js.map +1 -1
  13. package/dist/cjs/contracts/agents/subscription-manager.d.ts +2 -2
  14. package/dist/cjs/contracts/agents/subscription-manager.js +4 -4
  15. package/dist/cjs/contracts/agents/subscription-manager.js.map +1 -1
  16. package/dist/cjs/contracts/ethers-typechain/Coordinator.d.ts +1 -1
  17. package/dist/cjs/contracts/ethers-typechain/GlobalAllowList.d.ts +1 -1
  18. package/dist/cjs/contracts/ethers-typechain/SubscriptionManager.d.ts +1 -1
  19. package/dist/cjs/contracts/ethers-typechain/factories/Coordinator__factory.d.ts +1 -1
  20. package/dist/cjs/contracts/ethers-typechain/factories/GlobalAllowList__factory.d.ts +1 -1
  21. package/dist/cjs/contracts/ethers-typechain/factories/SubscriptionManager__factory.d.ts +1 -1
  22. package/dist/cjs/contracts/ethers-typechain/factories/index.d.ts +3 -4
  23. package/dist/cjs/contracts/ethers-typechain/factories/index.js +7 -9
  24. package/dist/cjs/contracts/ethers-typechain/factories/index.js.map +1 -1
  25. package/dist/cjs/contracts/ethers-typechain/index.d.ts +7 -9
  26. package/dist/cjs/contracts/ethers-typechain/index.js +8 -10
  27. package/dist/cjs/contracts/ethers-typechain/index.js.map +1 -1
  28. package/dist/cjs/contracts/index.d.ts +2 -2
  29. package/dist/cjs/contracts/index.js +2 -2
  30. package/dist/cjs/contracts/index.js.map +1 -1
  31. package/dist/cjs/domain.d.ts +43 -0
  32. package/dist/cjs/domain.js +49 -0
  33. package/dist/cjs/domain.js.map +1 -0
  34. package/dist/cjs/index.d.ts +10 -6
  35. package/dist/cjs/index.js +9 -6
  36. package/dist/cjs/index.js.map +1 -1
  37. package/dist/cjs/porter.d.ts +1 -13
  38. package/dist/cjs/porter.js +10 -66
  39. package/dist/cjs/porter.js.map +1 -1
  40. package/dist/cjs/schemas.d.ts +0 -1
  41. package/dist/cjs/schemas.js +1 -14
  42. package/dist/cjs/schemas.js.map +1 -1
  43. package/dist/cjs/taco-signer.d.ts +19 -0
  44. package/dist/cjs/{contracts/ethers-typechain/SigningCoordinator.js → taco-signer.js} +1 -1
  45. package/dist/cjs/taco-signer.js.map +1 -0
  46. package/dist/cjs/types.d.ts +9 -44
  47. package/dist/cjs/types.js +0 -63
  48. package/dist/cjs/types.js.map +1 -1
  49. package/dist/cjs/viem/ethers-adapter.d.ts +19 -0
  50. package/dist/cjs/viem/ethers-adapter.js +103 -0
  51. package/dist/cjs/viem/ethers-adapter.js.map +1 -0
  52. package/dist/cjs/viem/index.d.ts +2 -0
  53. package/dist/cjs/viem/index.js +18 -0
  54. package/dist/cjs/viem/index.js.map +1 -0
  55. package/dist/cjs/viem/signer-adapter.d.ts +13 -0
  56. package/dist/cjs/viem/signer-adapter.js +54 -0
  57. package/dist/cjs/viem/signer-adapter.js.map +1 -0
  58. package/dist/cjs/viem/type-guards.d.ts +20 -0
  59. package/dist/cjs/viem/type-guards.js +49 -0
  60. package/dist/cjs/viem/type-guards.js.map +1 -0
  61. package/dist/cjs/viem/types.d.ts +53 -0
  62. package/dist/cjs/viem/types.js +21 -0
  63. package/dist/cjs/viem/types.js.map +1 -0
  64. package/dist/cjs/web3.js +2 -2
  65. package/dist/cjs/web3.js.map +1 -1
  66. package/dist/es/adapters.d.ts +25 -0
  67. package/dist/es/adapters.js +40 -0
  68. package/dist/es/adapters.js.map +1 -0
  69. package/dist/es/contracts/agents/coordinator.d.ts +3 -3
  70. package/dist/es/contracts/agents/coordinator.js +3 -3
  71. package/dist/es/contracts/agents/coordinator.js.map +1 -1
  72. package/dist/es/contracts/agents/global-allow-list.d.ts +2 -2
  73. package/dist/es/contracts/agents/global-allow-list.js +2 -2
  74. package/dist/es/contracts/agents/global-allow-list.js.map +1 -1
  75. package/dist/es/contracts/agents/index.d.ts +3 -4
  76. package/dist/es/contracts/agents/index.js +3 -4
  77. package/dist/es/contracts/agents/index.js.map +1 -1
  78. package/dist/es/contracts/agents/subscription-manager.d.ts +2 -2
  79. package/dist/es/contracts/agents/subscription-manager.js +2 -2
  80. package/dist/es/contracts/agents/subscription-manager.js.map +1 -1
  81. package/dist/es/contracts/ethers-typechain/Coordinator.d.ts +1 -1
  82. package/dist/es/contracts/ethers-typechain/GlobalAllowList.d.ts +1 -1
  83. package/dist/es/contracts/ethers-typechain/SubscriptionManager.d.ts +1 -1
  84. package/dist/es/contracts/ethers-typechain/factories/Coordinator__factory.d.ts +1 -1
  85. package/dist/es/contracts/ethers-typechain/factories/GlobalAllowList__factory.d.ts +1 -1
  86. package/dist/es/contracts/ethers-typechain/factories/SubscriptionManager__factory.d.ts +1 -1
  87. package/dist/es/contracts/ethers-typechain/factories/index.d.ts +3 -4
  88. package/dist/es/contracts/ethers-typechain/factories/index.js +3 -4
  89. package/dist/es/contracts/ethers-typechain/factories/index.js.map +1 -1
  90. package/dist/es/contracts/ethers-typechain/index.d.ts +7 -9
  91. package/dist/es/contracts/ethers-typechain/index.js +4 -5
  92. package/dist/es/contracts/ethers-typechain/index.js.map +1 -1
  93. package/dist/es/contracts/index.d.ts +2 -2
  94. package/dist/es/contracts/index.js +2 -2
  95. package/dist/es/contracts/index.js.map +1 -1
  96. package/dist/es/domain.d.ts +43 -0
  97. package/dist/es/domain.js +46 -0
  98. package/dist/es/domain.js.map +1 -0
  99. package/dist/es/index.d.ts +10 -6
  100. package/dist/es/index.js +9 -6
  101. package/dist/es/index.js.map +1 -1
  102. package/dist/es/package.json +3 -0
  103. package/dist/es/porter.d.ts +1 -13
  104. package/dist/es/porter.js +1 -57
  105. package/dist/es/porter.js.map +1 -1
  106. package/dist/es/schemas.d.ts +0 -1
  107. package/dist/es/schemas.js +0 -13
  108. package/dist/es/schemas.js.map +1 -1
  109. package/dist/es/taco-signer.d.ts +19 -0
  110. package/dist/es/taco-signer.js +2 -0
  111. package/dist/es/taco-signer.js.map +1 -0
  112. package/dist/es/types.d.ts +9 -44
  113. package/dist/es/types.js +1 -60
  114. package/dist/es/types.js.map +1 -1
  115. package/dist/es/viem/ethers-adapter.d.ts +19 -0
  116. package/dist/es/viem/ethers-adapter.js +100 -0
  117. package/dist/es/viem/ethers-adapter.js.map +1 -0
  118. package/dist/es/viem/index.d.ts +2 -0
  119. package/dist/es/viem/index.js +2 -0
  120. package/dist/es/viem/index.js.map +1 -0
  121. package/dist/es/viem/signer-adapter.d.ts +13 -0
  122. package/dist/es/viem/signer-adapter.js +50 -0
  123. package/dist/es/viem/signer-adapter.js.map +1 -0
  124. package/dist/es/viem/type-guards.d.ts +20 -0
  125. package/dist/es/viem/type-guards.js +45 -0
  126. package/dist/es/viem/type-guards.js.map +1 -0
  127. package/dist/es/viem/types.d.ts +53 -0
  128. package/dist/es/viem/types.js +20 -0
  129. package/dist/es/viem/types.js.map +1 -0
  130. package/dist/es/web3.js +1 -1
  131. package/dist/es/web3.js.map +1 -1
  132. package/dist/tsconfig.cjs.tsbuildinfo +1 -1
  133. package/dist/tsconfig.es.tsbuildinfo +1 -1
  134. package/package.json +19 -6
  135. package/dist/cjs/contracts/agents/signing-coordinator.d.ts +0 -16
  136. package/dist/cjs/contracts/agents/signing-coordinator.js +0 -42
  137. package/dist/cjs/contracts/agents/signing-coordinator.js.map +0 -1
  138. package/dist/cjs/contracts/agents/signingCoordinator.d.ts +0 -14
  139. package/dist/cjs/contracts/agents/signingCoordinator.js +0 -32
  140. package/dist/cjs/contracts/agents/signingCoordinator.js.map +0 -1
  141. package/dist/cjs/contracts/ethers-typechain/SigningCoordinator.d.ts +0 -787
  142. package/dist/cjs/contracts/ethers-typechain/SigningCoordinator.js.map +0 -1
  143. package/dist/cjs/contracts/ethers-typechain/factories/SigningCoordinator__factory.d.ts +0 -939
  144. package/dist/cjs/contracts/ethers-typechain/factories/SigningCoordinator__factory.js +0 -1227
  145. package/dist/cjs/contracts/ethers-typechain/factories/SigningCoordinator__factory.js.map +0 -1
  146. package/dist/es/contracts/agents/signing-coordinator.d.ts +0 -16
  147. package/dist/es/contracts/agents/signing-coordinator.js +0 -38
  148. package/dist/es/contracts/agents/signing-coordinator.js.map +0 -1
  149. package/dist/es/contracts/agents/signingCoordinator.d.ts +0 -14
  150. package/dist/es/contracts/agents/signingCoordinator.js +0 -28
  151. package/dist/es/contracts/agents/signingCoordinator.js.map +0 -1
  152. package/dist/es/contracts/ethers-typechain/SigningCoordinator.d.ts +0 -787
  153. package/dist/es/contracts/ethers-typechain/SigningCoordinator.js +0 -2
  154. package/dist/es/contracts/ethers-typechain/SigningCoordinator.js.map +0 -1
  155. package/dist/es/contracts/ethers-typechain/factories/SigningCoordinator__factory.d.ts +0 -939
  156. package/dist/es/contracts/ethers-typechain/factories/SigningCoordinator__factory.js +0 -1223
  157. package/dist/es/contracts/ethers-typechain/factories/SigningCoordinator__factory.js.map +0 -1
@@ -1,1223 +0,0 @@
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 TACoApplication',
14
- },
15
- ],
16
- },
17
- {
18
- type: 'error',
19
- name: 'AccessControlBadConfirmation',
20
- inputs: [],
21
- },
22
- {
23
- type: 'error',
24
- name: 'AccessControlEnforcedDefaultAdminDelay',
25
- inputs: [
26
- {
27
- name: 'schedule',
28
- type: 'uint48',
29
- internalType: 'uint48',
30
- },
31
- ],
32
- },
33
- {
34
- type: 'error',
35
- name: 'AccessControlEnforcedDefaultAdminRules',
36
- inputs: [],
37
- },
38
- {
39
- type: 'error',
40
- name: 'AccessControlInvalidDefaultAdmin',
41
- inputs: [
42
- {
43
- name: 'defaultAdmin',
44
- type: 'address',
45
- internalType: 'address',
46
- },
47
- ],
48
- },
49
- {
50
- type: 'error',
51
- name: 'AccessControlUnauthorizedAccount',
52
- inputs: [
53
- {
54
- name: 'account',
55
- type: 'address',
56
- internalType: 'address',
57
- },
58
- {
59
- name: 'neededRole',
60
- type: 'bytes32',
61
- internalType: 'bytes32',
62
- },
63
- ],
64
- },
65
- {
66
- type: 'error',
67
- name: 'ECDSAInvalidSignature',
68
- inputs: [],
69
- },
70
- {
71
- type: 'error',
72
- name: 'ECDSAInvalidSignatureLength',
73
- inputs: [
74
- {
75
- name: 'length',
76
- type: 'uint256',
77
- internalType: 'uint256',
78
- },
79
- ],
80
- },
81
- {
82
- type: 'error',
83
- name: 'ECDSAInvalidSignatureS',
84
- inputs: [
85
- {
86
- name: 's',
87
- type: 'bytes32',
88
- internalType: 'bytes32',
89
- },
90
- ],
91
- },
92
- {
93
- type: 'error',
94
- name: 'InvalidInitialization',
95
- inputs: [],
96
- },
97
- {
98
- type: 'error',
99
- name: 'NotInitializing',
100
- inputs: [],
101
- },
102
- {
103
- type: 'error',
104
- name: 'SafeCastOverflowedUintDowncast',
105
- inputs: [
106
- {
107
- name: 'bits',
108
- type: 'uint8',
109
- internalType: 'uint8',
110
- },
111
- {
112
- name: 'value',
113
- type: 'uint256',
114
- internalType: 'uint256',
115
- },
116
- ],
117
- },
118
- {
119
- type: 'event',
120
- name: 'DefaultAdminDelayChangeCanceled',
121
- inputs: [],
122
- anonymous: false,
123
- },
124
- {
125
- type: 'event',
126
- name: 'DefaultAdminDelayChangeScheduled',
127
- inputs: [
128
- {
129
- name: 'newDelay',
130
- type: 'uint48',
131
- internalType: 'uint48',
132
- indexed: false,
133
- },
134
- {
135
- name: 'effectSchedule',
136
- type: 'uint48',
137
- internalType: 'uint48',
138
- indexed: false,
139
- },
140
- ],
141
- anonymous: false,
142
- },
143
- {
144
- type: 'event',
145
- name: 'DefaultAdminTransferCanceled',
146
- inputs: [],
147
- anonymous: false,
148
- },
149
- {
150
- type: 'event',
151
- name: 'DefaultAdminTransferScheduled',
152
- inputs: [
153
- {
154
- name: 'newAdmin',
155
- type: 'address',
156
- internalType: 'address',
157
- indexed: true,
158
- },
159
- {
160
- name: 'acceptSchedule',
161
- type: 'uint48',
162
- internalType: 'uint48',
163
- indexed: false,
164
- },
165
- ],
166
- anonymous: false,
167
- },
168
- {
169
- type: 'event',
170
- name: 'DispatcherChanged',
171
- inputs: [
172
- {
173
- name: 'oldDispatcher',
174
- type: 'address',
175
- internalType: 'address',
176
- indexed: false,
177
- },
178
- {
179
- name: 'newDispatcher',
180
- type: 'address',
181
- internalType: 'address',
182
- indexed: false,
183
- },
184
- ],
185
- anonymous: false,
186
- },
187
- {
188
- type: 'event',
189
- name: 'Initialized',
190
- inputs: [
191
- {
192
- name: 'version',
193
- type: 'uint64',
194
- internalType: 'uint64',
195
- indexed: false,
196
- },
197
- ],
198
- anonymous: false,
199
- },
200
- {
201
- type: 'event',
202
- name: 'InitiateSigningCohort',
203
- inputs: [
204
- {
205
- name: 'cohortId',
206
- type: 'uint32',
207
- internalType: 'uint32',
208
- indexed: true,
209
- },
210
- {
211
- name: 'chainId',
212
- type: 'uint256',
213
- internalType: 'uint256',
214
- indexed: false,
215
- },
216
- {
217
- name: 'authority',
218
- type: 'address',
219
- internalType: 'address',
220
- indexed: true,
221
- },
222
- {
223
- name: 'participants',
224
- type: 'address[]',
225
- internalType: 'address[]',
226
- indexed: false,
227
- },
228
- ],
229
- anonymous: false,
230
- },
231
- {
232
- type: 'event',
233
- name: 'MaxCohortSizeChanged',
234
- inputs: [
235
- {
236
- name: 'oldSize',
237
- type: 'uint16',
238
- internalType: 'uint16',
239
- indexed: false,
240
- },
241
- {
242
- name: 'newSize',
243
- type: 'uint16',
244
- internalType: 'uint16',
245
- indexed: false,
246
- },
247
- ],
248
- anonymous: false,
249
- },
250
- {
251
- type: 'event',
252
- name: 'RoleAdminChanged',
253
- inputs: [
254
- {
255
- name: 'role',
256
- type: 'bytes32',
257
- internalType: 'bytes32',
258
- indexed: true,
259
- },
260
- {
261
- name: 'previousAdminRole',
262
- type: 'bytes32',
263
- internalType: 'bytes32',
264
- indexed: true,
265
- },
266
- {
267
- name: 'newAdminRole',
268
- type: 'bytes32',
269
- internalType: 'bytes32',
270
- indexed: true,
271
- },
272
- ],
273
- anonymous: false,
274
- },
275
- {
276
- type: 'event',
277
- name: 'RoleGranted',
278
- inputs: [
279
- {
280
- name: 'role',
281
- type: 'bytes32',
282
- internalType: 'bytes32',
283
- indexed: true,
284
- },
285
- {
286
- name: 'account',
287
- type: 'address',
288
- internalType: 'address',
289
- indexed: true,
290
- },
291
- {
292
- name: 'sender',
293
- type: 'address',
294
- internalType: 'address',
295
- indexed: true,
296
- },
297
- ],
298
- anonymous: false,
299
- },
300
- {
301
- type: 'event',
302
- name: 'RoleRevoked',
303
- inputs: [
304
- {
305
- name: 'role',
306
- type: 'bytes32',
307
- internalType: 'bytes32',
308
- indexed: true,
309
- },
310
- {
311
- name: 'account',
312
- type: 'address',
313
- internalType: 'address',
314
- indexed: true,
315
- },
316
- {
317
- name: 'sender',
318
- type: 'address',
319
- internalType: 'address',
320
- indexed: true,
321
- },
322
- ],
323
- anonymous: false,
324
- },
325
- {
326
- type: 'event',
327
- name: 'SigningCohortConditionsSet',
328
- inputs: [
329
- {
330
- name: 'cohortId',
331
- type: 'uint32',
332
- internalType: 'uint32',
333
- indexed: true,
334
- },
335
- {
336
- name: 'chainId',
337
- type: 'uint256',
338
- internalType: 'uint256',
339
- indexed: false,
340
- },
341
- {
342
- name: 'conditions',
343
- type: 'bytes',
344
- internalType: 'bytes',
345
- indexed: false,
346
- },
347
- ],
348
- anonymous: false,
349
- },
350
- {
351
- type: 'event',
352
- name: 'SigningCohortDeployed',
353
- inputs: [
354
- {
355
- name: 'cohortId',
356
- type: 'uint32',
357
- internalType: 'uint32',
358
- indexed: true,
359
- },
360
- {
361
- name: 'chainId',
362
- type: 'uint256',
363
- internalType: 'uint256',
364
- indexed: false,
365
- },
366
- ],
367
- anonymous: false,
368
- },
369
- {
370
- type: 'event',
371
- name: 'SigningCohortSignaturePosted',
372
- inputs: [
373
- {
374
- name: 'cohortId',
375
- type: 'uint32',
376
- internalType: 'uint32',
377
- indexed: true,
378
- },
379
- {
380
- name: 'provider',
381
- type: 'address',
382
- internalType: 'address',
383
- indexed: true,
384
- },
385
- {
386
- name: 'signature',
387
- type: 'bytes',
388
- internalType: 'bytes',
389
- indexed: false,
390
- },
391
- ],
392
- anonymous: false,
393
- },
394
- {
395
- type: 'event',
396
- name: 'TimeoutChanged',
397
- inputs: [
398
- {
399
- name: 'oldTimeout',
400
- type: 'uint32',
401
- internalType: 'uint32',
402
- indexed: false,
403
- },
404
- {
405
- name: 'newTimeout',
406
- type: 'uint32',
407
- internalType: 'uint32',
408
- indexed: false,
409
- },
410
- ],
411
- anonymous: false,
412
- },
413
- {
414
- type: 'function',
415
- name: 'DEFAULT_ADMIN_ROLE',
416
- stateMutability: 'view',
417
- inputs: [],
418
- outputs: [
419
- {
420
- name: '',
421
- type: 'bytes32',
422
- internalType: 'bytes32',
423
- },
424
- ],
425
- },
426
- {
427
- type: 'function',
428
- name: 'INITIATOR_ROLE',
429
- stateMutability: 'view',
430
- inputs: [],
431
- outputs: [
432
- {
433
- name: '',
434
- type: 'bytes32',
435
- internalType: 'bytes32',
436
- },
437
- ],
438
- },
439
- {
440
- type: 'function',
441
- name: 'acceptDefaultAdminTransfer',
442
- stateMutability: 'nonpayable',
443
- inputs: [],
444
- outputs: [],
445
- },
446
- {
447
- type: 'function',
448
- name: 'application',
449
- stateMutability: 'view',
450
- inputs: [],
451
- outputs: [
452
- {
453
- name: '',
454
- type: 'address',
455
- internalType: 'contract TACoApplication',
456
- },
457
- ],
458
- },
459
- {
460
- type: 'function',
461
- name: 'beginDefaultAdminTransfer',
462
- stateMutability: 'nonpayable',
463
- inputs: [
464
- {
465
- name: 'newAdmin',
466
- type: 'address',
467
- internalType: 'address',
468
- },
469
- ],
470
- outputs: [],
471
- },
472
- {
473
- type: 'function',
474
- name: 'cancelDefaultAdminTransfer',
475
- stateMutability: 'nonpayable',
476
- inputs: [],
477
- outputs: [],
478
- },
479
- {
480
- type: 'function',
481
- name: 'changeDefaultAdminDelay',
482
- stateMutability: 'nonpayable',
483
- inputs: [
484
- {
485
- name: 'newDelay',
486
- type: 'uint48',
487
- internalType: 'uint48',
488
- },
489
- ],
490
- outputs: [],
491
- },
492
- {
493
- type: 'function',
494
- name: 'defaultAdmin',
495
- stateMutability: 'view',
496
- inputs: [],
497
- outputs: [
498
- {
499
- name: '',
500
- type: 'address',
501
- internalType: 'address',
502
- },
503
- ],
504
- },
505
- {
506
- type: 'function',
507
- name: 'defaultAdminDelay',
508
- stateMutability: 'view',
509
- inputs: [],
510
- outputs: [
511
- {
512
- name: '',
513
- type: 'uint48',
514
- internalType: 'uint48',
515
- },
516
- ],
517
- },
518
- {
519
- type: 'function',
520
- name: 'defaultAdminDelayIncreaseWait',
521
- stateMutability: 'view',
522
- inputs: [],
523
- outputs: [
524
- {
525
- name: '',
526
- type: 'uint48',
527
- internalType: 'uint48',
528
- },
529
- ],
530
- },
531
- {
532
- type: 'function',
533
- name: 'deployAdditionalChainForSigningMultisig',
534
- stateMutability: 'nonpayable',
535
- inputs: [
536
- {
537
- name: 'chainId',
538
- type: 'uint256',
539
- internalType: 'uint256',
540
- },
541
- {
542
- name: 'cohortId',
543
- type: 'uint32',
544
- internalType: 'uint32',
545
- },
546
- ],
547
- outputs: [],
548
- },
549
- {
550
- type: 'function',
551
- name: 'getChains',
552
- stateMutability: 'view',
553
- inputs: [
554
- {
555
- name: 'cohortId',
556
- type: 'uint32',
557
- internalType: 'uint32',
558
- },
559
- ],
560
- outputs: [
561
- {
562
- name: '',
563
- type: 'uint256[]',
564
- internalType: 'uint256[]',
565
- },
566
- ],
567
- },
568
- {
569
- type: 'function',
570
- name: 'getCondition',
571
- stateMutability: 'view',
572
- inputs: [
573
- {
574
- name: 'cohortId',
575
- type: 'uint32',
576
- internalType: 'uint32',
577
- },
578
- {
579
- name: 'chainId',
580
- type: 'uint256',
581
- internalType: 'uint256',
582
- },
583
- ],
584
- outputs: [
585
- {
586
- name: '',
587
- type: 'bytes',
588
- internalType: 'bytes',
589
- },
590
- ],
591
- },
592
- {
593
- type: 'function',
594
- name: 'getRoleAdmin',
595
- stateMutability: 'view',
596
- inputs: [
597
- {
598
- name: 'role',
599
- type: 'bytes32',
600
- internalType: 'bytes32',
601
- },
602
- ],
603
- outputs: [
604
- {
605
- name: '',
606
- type: 'bytes32',
607
- internalType: 'bytes32',
608
- },
609
- ],
610
- },
611
- {
612
- type: 'function',
613
- name: 'getSigner',
614
- stateMutability: 'view',
615
- inputs: [
616
- {
617
- name: 'cohortId',
618
- type: 'uint32',
619
- internalType: 'uint32',
620
- },
621
- {
622
- name: 'provider',
623
- type: 'address',
624
- internalType: 'address',
625
- },
626
- ],
627
- outputs: [
628
- {
629
- name: '',
630
- type: 'tuple',
631
- components: [
632
- {
633
- name: 'provider',
634
- type: 'address',
635
- internalType: 'address',
636
- },
637
- {
638
- name: 'operator',
639
- type: 'address',
640
- internalType: 'address',
641
- },
642
- {
643
- name: 'signature',
644
- type: 'bytes',
645
- internalType: 'bytes',
646
- },
647
- ],
648
- internalType: 'struct SigningCoordinator.SigningCohortParticipant',
649
- },
650
- ],
651
- },
652
- {
653
- type: 'function',
654
- name: 'getSigners',
655
- stateMutability: 'view',
656
- inputs: [
657
- {
658
- name: 'cohortId',
659
- type: 'uint32',
660
- internalType: 'uint32',
661
- },
662
- ],
663
- outputs: [
664
- {
665
- name: '',
666
- type: 'tuple[]',
667
- components: [
668
- {
669
- name: 'provider',
670
- type: 'address',
671
- internalType: 'address',
672
- },
673
- {
674
- name: 'operator',
675
- type: 'address',
676
- internalType: 'address',
677
- },
678
- {
679
- name: 'signature',
680
- type: 'bytes',
681
- internalType: 'bytes',
682
- },
683
- ],
684
- internalType: 'struct SigningCoordinator.SigningCohortParticipant[]',
685
- },
686
- ],
687
- },
688
- {
689
- type: 'function',
690
- name: 'getSigningCohortConditions',
691
- stateMutability: 'view',
692
- inputs: [
693
- {
694
- name: 'cohortId',
695
- type: 'uint32',
696
- internalType: 'uint32',
697
- },
698
- {
699
- name: 'chainId',
700
- type: 'uint256',
701
- internalType: 'uint256',
702
- },
703
- ],
704
- outputs: [
705
- {
706
- name: '',
707
- type: 'bytes',
708
- internalType: 'bytes',
709
- },
710
- ],
711
- },
712
- {
713
- type: 'function',
714
- name: 'getSigningCohortDataHash',
715
- stateMutability: 'view',
716
- inputs: [
717
- {
718
- name: 'cohortId',
719
- type: 'uint32',
720
- internalType: 'uint32',
721
- },
722
- ],
723
- outputs: [
724
- {
725
- name: '',
726
- type: 'bytes32',
727
- internalType: 'bytes32',
728
- },
729
- ],
730
- },
731
- {
732
- type: 'function',
733
- name: 'getSigningCohortState',
734
- stateMutability: 'view',
735
- inputs: [
736
- {
737
- name: 'cohortId',
738
- type: 'uint32',
739
- internalType: 'uint32',
740
- },
741
- ],
742
- outputs: [
743
- {
744
- name: '',
745
- type: 'uint8',
746
- internalType: 'enum SigningCoordinator.SigningCohortState',
747
- },
748
- ],
749
- },
750
- {
751
- type: 'function',
752
- name: 'getSigningCoordinatorChild',
753
- stateMutability: 'view',
754
- inputs: [
755
- {
756
- name: 'chainId',
757
- type: 'uint256',
758
- internalType: 'uint256',
759
- },
760
- ],
761
- outputs: [
762
- {
763
- name: '',
764
- type: 'address',
765
- internalType: 'address',
766
- },
767
- ],
768
- },
769
- {
770
- type: 'function',
771
- name: 'grantRole',
772
- stateMutability: 'nonpayable',
773
- inputs: [
774
- {
775
- name: 'role',
776
- type: 'bytes32',
777
- internalType: 'bytes32',
778
- },
779
- {
780
- name: 'account',
781
- type: 'address',
782
- internalType: 'address',
783
- },
784
- ],
785
- outputs: [],
786
- },
787
- {
788
- type: 'function',
789
- name: 'hasRole',
790
- stateMutability: 'view',
791
- inputs: [
792
- {
793
- name: 'role',
794
- type: 'bytes32',
795
- internalType: 'bytes32',
796
- },
797
- {
798
- name: 'account',
799
- type: 'address',
800
- internalType: 'address',
801
- },
802
- ],
803
- outputs: [
804
- {
805
- name: '',
806
- type: 'bool',
807
- internalType: 'bool',
808
- },
809
- ],
810
- },
811
- {
812
- type: 'function',
813
- name: 'initialize',
814
- stateMutability: 'nonpayable',
815
- inputs: [
816
- {
817
- name: '_timeout',
818
- type: 'uint32',
819
- internalType: 'uint32',
820
- },
821
- {
822
- name: '_maxDkgSize',
823
- type: 'uint16',
824
- internalType: 'uint16',
825
- },
826
- {
827
- name: '_signingCoordinatorDispatcher',
828
- type: 'address',
829
- internalType: 'contract SigningCoordinatorDispatcher',
830
- },
831
- {
832
- name: '_admin',
833
- type: 'address',
834
- internalType: 'address',
835
- },
836
- ],
837
- outputs: [],
838
- },
839
- {
840
- type: 'function',
841
- name: 'initiateSigningCohort',
842
- stateMutability: 'nonpayable',
843
- inputs: [
844
- {
845
- name: 'chainId',
846
- type: 'uint256',
847
- internalType: 'uint256',
848
- },
849
- {
850
- name: 'authority',
851
- type: 'address',
852
- internalType: 'address',
853
- },
854
- {
855
- name: 'providers',
856
- type: 'address[]',
857
- internalType: 'address[]',
858
- },
859
- {
860
- name: 'threshold',
861
- type: 'uint16',
862
- internalType: 'uint16',
863
- },
864
- {
865
- name: 'duration',
866
- type: 'uint32',
867
- internalType: 'uint32',
868
- },
869
- ],
870
- outputs: [
871
- {
872
- name: '',
873
- type: 'uint32',
874
- internalType: 'uint32',
875
- },
876
- ],
877
- },
878
- {
879
- type: 'function',
880
- name: 'isCohortActive',
881
- stateMutability: 'view',
882
- inputs: [
883
- {
884
- name: 'cohortId',
885
- type: 'uint32',
886
- internalType: 'uint32',
887
- },
888
- ],
889
- outputs: [
890
- {
891
- name: '',
892
- type: 'bool',
893
- internalType: 'bool',
894
- },
895
- ],
896
- },
897
- {
898
- type: 'function',
899
- name: 'isSigner',
900
- stateMutability: 'view',
901
- inputs: [
902
- {
903
- name: 'cohortId',
904
- type: 'uint32',
905
- internalType: 'uint32',
906
- },
907
- {
908
- name: 'provider',
909
- type: 'address',
910
- internalType: 'address',
911
- },
912
- ],
913
- outputs: [
914
- {
915
- name: '',
916
- type: 'bool',
917
- internalType: 'bool',
918
- },
919
- ],
920
- },
921
- {
922
- type: 'function',
923
- name: 'maxCohortSize',
924
- stateMutability: 'view',
925
- inputs: [],
926
- outputs: [
927
- {
928
- name: '',
929
- type: 'uint16',
930
- internalType: 'uint16',
931
- },
932
- ],
933
- },
934
- {
935
- type: 'function',
936
- name: 'numberOfSigningCohorts',
937
- stateMutability: 'view',
938
- inputs: [],
939
- outputs: [
940
- {
941
- name: '',
942
- type: 'uint256',
943
- internalType: 'uint256',
944
- },
945
- ],
946
- },
947
- {
948
- type: 'function',
949
- name: 'owner',
950
- stateMutability: 'view',
951
- inputs: [],
952
- outputs: [
953
- {
954
- name: '',
955
- type: 'address',
956
- internalType: 'address',
957
- },
958
- ],
959
- },
960
- {
961
- type: 'function',
962
- name: 'pendingDefaultAdmin',
963
- stateMutability: 'view',
964
- inputs: [],
965
- outputs: [
966
- {
967
- name: 'newAdmin',
968
- type: 'address',
969
- internalType: 'address',
970
- },
971
- {
972
- name: 'schedule',
973
- type: 'uint48',
974
- internalType: 'uint48',
975
- },
976
- ],
977
- },
978
- {
979
- type: 'function',
980
- name: 'pendingDefaultAdminDelay',
981
- stateMutability: 'view',
982
- inputs: [],
983
- outputs: [
984
- {
985
- name: 'newDelay',
986
- type: 'uint48',
987
- internalType: 'uint48',
988
- },
989
- {
990
- name: 'schedule',
991
- type: 'uint48',
992
- internalType: 'uint48',
993
- },
994
- ],
995
- },
996
- {
997
- type: 'function',
998
- name: 'postSigningCohortSignature',
999
- stateMutability: 'nonpayable',
1000
- inputs: [
1001
- {
1002
- name: 'cohortId',
1003
- type: 'uint32',
1004
- internalType: 'uint32',
1005
- },
1006
- {
1007
- name: 'signature',
1008
- type: 'bytes',
1009
- internalType: 'bytes',
1010
- },
1011
- ],
1012
- outputs: [],
1013
- },
1014
- {
1015
- type: 'function',
1016
- name: 'renounceRole',
1017
- stateMutability: 'nonpayable',
1018
- inputs: [
1019
- {
1020
- name: 'role',
1021
- type: 'bytes32',
1022
- internalType: 'bytes32',
1023
- },
1024
- {
1025
- name: 'account',
1026
- type: 'address',
1027
- internalType: 'address',
1028
- },
1029
- ],
1030
- outputs: [],
1031
- },
1032
- {
1033
- type: 'function',
1034
- name: 'revokeRole',
1035
- stateMutability: 'nonpayable',
1036
- inputs: [
1037
- {
1038
- name: 'role',
1039
- type: 'bytes32',
1040
- internalType: 'bytes32',
1041
- },
1042
- {
1043
- name: 'account',
1044
- type: 'address',
1045
- internalType: 'address',
1046
- },
1047
- ],
1048
- outputs: [],
1049
- },
1050
- {
1051
- type: 'function',
1052
- name: 'rollbackDefaultAdminDelay',
1053
- stateMutability: 'nonpayable',
1054
- inputs: [],
1055
- outputs: [],
1056
- },
1057
- {
1058
- type: 'function',
1059
- name: 'setDispatcher',
1060
- stateMutability: 'nonpayable',
1061
- inputs: [
1062
- {
1063
- name: 'dispatcher',
1064
- type: 'address',
1065
- internalType: 'contract SigningCoordinatorDispatcher',
1066
- },
1067
- ],
1068
- outputs: [],
1069
- },
1070
- {
1071
- type: 'function',
1072
- name: 'setMaxDkgSize',
1073
- stateMutability: 'nonpayable',
1074
- inputs: [
1075
- {
1076
- name: 'newSize',
1077
- type: 'uint16',
1078
- internalType: 'uint16',
1079
- },
1080
- ],
1081
- outputs: [],
1082
- },
1083
- {
1084
- type: 'function',
1085
- name: 'setSigningCohortConditions',
1086
- stateMutability: 'nonpayable',
1087
- inputs: [
1088
- {
1089
- name: 'cohortId',
1090
- type: 'uint32',
1091
- internalType: 'uint32',
1092
- },
1093
- {
1094
- name: 'chainId',
1095
- type: 'uint256',
1096
- internalType: 'uint256',
1097
- },
1098
- {
1099
- name: 'conditions',
1100
- type: 'bytes',
1101
- internalType: 'bytes',
1102
- },
1103
- ],
1104
- outputs: [],
1105
- },
1106
- {
1107
- type: 'function',
1108
- name: 'setTimeout',
1109
- stateMutability: 'nonpayable',
1110
- inputs: [
1111
- {
1112
- name: 'newTimeout',
1113
- type: 'uint32',
1114
- internalType: 'uint32',
1115
- },
1116
- ],
1117
- outputs: [],
1118
- },
1119
- {
1120
- type: 'function',
1121
- name: 'signingCohorts',
1122
- stateMutability: 'view',
1123
- inputs: [
1124
- {
1125
- name: '',
1126
- type: 'uint32',
1127
- internalType: 'uint32',
1128
- },
1129
- ],
1130
- outputs: [
1131
- {
1132
- name: 'initiator',
1133
- type: 'address',
1134
- internalType: 'address',
1135
- },
1136
- {
1137
- name: 'initTimestamp',
1138
- type: 'uint32',
1139
- internalType: 'uint32',
1140
- },
1141
- {
1142
- name: 'endTimestamp',
1143
- type: 'uint32',
1144
- internalType: 'uint32',
1145
- },
1146
- {
1147
- name: 'authority',
1148
- type: 'address',
1149
- internalType: 'address',
1150
- },
1151
- {
1152
- name: 'totalSignatures',
1153
- type: 'uint16',
1154
- internalType: 'uint16',
1155
- },
1156
- {
1157
- name: 'numSigners',
1158
- type: 'uint16',
1159
- internalType: 'uint16',
1160
- },
1161
- {
1162
- name: 'threshold',
1163
- type: 'uint16',
1164
- internalType: 'uint16',
1165
- },
1166
- ],
1167
- },
1168
- {
1169
- type: 'function',
1170
- name: 'signingCoordinatorDispatcher',
1171
- stateMutability: 'view',
1172
- inputs: [],
1173
- outputs: [
1174
- {
1175
- name: '',
1176
- type: 'address',
1177
- internalType: 'contract SigningCoordinatorDispatcher',
1178
- },
1179
- ],
1180
- },
1181
- {
1182
- type: 'function',
1183
- name: 'supportsInterface',
1184
- stateMutability: 'view',
1185
- inputs: [
1186
- {
1187
- name: 'interfaceId',
1188
- type: 'bytes4',
1189
- internalType: 'bytes4',
1190
- },
1191
- ],
1192
- outputs: [
1193
- {
1194
- name: '',
1195
- type: 'bool',
1196
- internalType: 'bool',
1197
- },
1198
- ],
1199
- },
1200
- {
1201
- type: 'function',
1202
- name: 'timeout',
1203
- stateMutability: 'view',
1204
- inputs: [],
1205
- outputs: [
1206
- {
1207
- name: '',
1208
- type: 'uint32',
1209
- internalType: 'uint32',
1210
- },
1211
- ],
1212
- },
1213
- ];
1214
- export class SigningCoordinator__factory {
1215
- static abi = _abi;
1216
- static createInterface() {
1217
- return new utils.Interface(_abi);
1218
- }
1219
- static connect(address, signerOrProvider) {
1220
- return new Contract(address, _abi, signerOrProvider);
1221
- }
1222
- }
1223
- //# sourceMappingURL=SigningCoordinator__factory.js.map