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