@ercworldio/blockchain-shared 1.0.3-dev.3 → 1.0.3-dev.4

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 (101) hide show
  1. package/build/chains/networks_prod-dz.json +7 -7
  2. package/build/chains/networks_prod-sh.json +41 -5
  3. package/build/chains/networks_prod-yb.json +42 -6
  4. package/build/chains/networks_stg-yb.json +1 -1
  5. package/build/contracts/artifacts/Escrow.json +1831 -342
  6. package/build/contracts/typechain-types/@openzeppelin/contracts/interfaces/index.d.ts +0 -1
  7. package/build/contracts/typechain-types/@openzeppelin/contracts/interfaces/index.d.ts.map +1 -1
  8. package/build/contracts/typechain-types/@openzeppelin/contracts/utils/index.d.ts +0 -6
  9. package/build/contracts/typechain-types/@openzeppelin/contracts/utils/index.d.ts.map +1 -1
  10. package/build/contracts/typechain-types/contracts/escrow/Escrow.d.ts +761 -76
  11. package/build/contracts/typechain-types/contracts/escrow/Escrow.d.ts.map +1 -1
  12. package/build/contracts/typechain-types/contracts/escrow/EscrowAccessControl.d.ts +65 -17
  13. package/build/contracts/typechain-types/contracts/escrow/EscrowAccessControl.d.ts.map +1 -1
  14. package/build/contracts/typechain-types/contracts/index.d.ts +2 -0
  15. package/build/contracts/typechain-types/contracts/index.d.ts.map +1 -1
  16. package/build/contracts/typechain-types/contracts/lib/Events.d.ts +386 -0
  17. package/build/contracts/typechain-types/contracts/lib/Events.d.ts.map +1 -0
  18. package/build/contracts/typechain-types/contracts/lib/Events.js +2 -0
  19. package/build/contracts/typechain-types/contracts/lib/MultisigLib.d.ts +21 -0
  20. package/build/contracts/typechain-types/contracts/lib/MultisigLib.d.ts.map +1 -0
  21. package/build/contracts/typechain-types/contracts/lib/MultisigLib.js +2 -0
  22. package/build/contracts/typechain-types/contracts/lib/index.d.ts +3 -0
  23. package/build/contracts/typechain-types/contracts/lib/index.d.ts.map +1 -0
  24. package/build/contracts/typechain-types/contracts/lib/index.js +2 -0
  25. package/build/contracts/typechain-types/factories/@openzeppelin/contracts/interfaces/index.d.ts +0 -1
  26. package/build/contracts/typechain-types/factories/@openzeppelin/contracts/interfaces/index.d.ts.map +1 -1
  27. package/build/contracts/typechain-types/factories/@openzeppelin/contracts/interfaces/index.js +1 -3
  28. package/build/contracts/typechain-types/factories/@openzeppelin/contracts/token/ERC20/utils/SafeERC20__factory.d.ts +1 -1
  29. package/build/contracts/typechain-types/factories/@openzeppelin/contracts/token/ERC20/utils/SafeERC20__factory.d.ts.map +1 -1
  30. package/build/contracts/typechain-types/factories/@openzeppelin/contracts/token/ERC20/utils/SafeERC20__factory.js +1 -1
  31. package/build/contracts/typechain-types/factories/@openzeppelin/contracts/utils/index.d.ts +0 -4
  32. package/build/contracts/typechain-types/factories/@openzeppelin/contracts/utils/index.d.ts.map +1 -1
  33. package/build/contracts/typechain-types/factories/@openzeppelin/contracts/utils/index.js +1 -7
  34. package/build/contracts/typechain-types/factories/contracts/escrow/EscrowAccessControl__factory.d.ts +286 -12
  35. package/build/contracts/typechain-types/factories/contracts/escrow/EscrowAccessControl__factory.d.ts.map +1 -1
  36. package/build/contracts/typechain-types/factories/contracts/escrow/EscrowAccessControl__factory.js +374 -12
  37. package/build/contracts/typechain-types/factories/contracts/escrow/EscrowErrors__factory.d.ts +137 -1
  38. package/build/contracts/typechain-types/factories/contracts/escrow/EscrowErrors__factory.d.ts.map +1 -1
  39. package/build/contracts/typechain-types/factories/contracts/escrow/EscrowErrors__factory.js +182 -1
  40. package/build/contracts/typechain-types/factories/contracts/escrow/EscrowSignature__factory.d.ts +1 -1
  41. package/build/contracts/typechain-types/factories/contracts/escrow/EscrowSignature__factory.d.ts.map +1 -1
  42. package/build/contracts/typechain-types/factories/contracts/escrow/EscrowSignature__factory.js +1 -1
  43. package/build/contracts/typechain-types/factories/contracts/escrow/Escrow__factory.d.ts +1247 -98
  44. package/build/contracts/typechain-types/factories/contracts/escrow/Escrow__factory.d.ts.map +1 -1
  45. package/build/contracts/typechain-types/factories/contracts/escrow/Escrow__factory.js +1736 -247
  46. package/build/contracts/typechain-types/factories/contracts/escrow/TokensWhitelist__factory.d.ts +1 -1
  47. package/build/contracts/typechain-types/factories/contracts/escrow/TokensWhitelist__factory.d.ts.map +1 -1
  48. package/build/contracts/typechain-types/factories/contracts/escrow/TokensWhitelist__factory.js +1 -1
  49. package/build/contracts/typechain-types/factories/contracts/index.d.ts +1 -0
  50. package/build/contracts/typechain-types/factories/contracts/index.d.ts.map +1 -1
  51. package/build/contracts/typechain-types/factories/contracts/index.js +2 -1
  52. package/build/contracts/typechain-types/factories/contracts/lib/Events__factory.d.ts +373 -0
  53. package/build/contracts/typechain-types/factories/contracts/lib/Events__factory.d.ts.map +1 -0
  54. package/build/contracts/typechain-types/factories/contracts/lib/Events__factory.js +473 -0
  55. package/build/contracts/typechain-types/factories/contracts/lib/MultisigLib__factory.d.ts +55 -0
  56. package/build/contracts/typechain-types/factories/contracts/lib/MultisigLib__factory.d.ts.map +1 -0
  57. package/build/contracts/typechain-types/factories/contracts/lib/MultisigLib__factory.js +82 -0
  58. package/build/contracts/typechain-types/factories/contracts/lib/index.d.ts +3 -0
  59. package/build/contracts/typechain-types/factories/contracts/lib/index.d.ts.map +1 -0
  60. package/build/contracts/typechain-types/factories/contracts/lib/index.js +10 -0
  61. package/build/contracts/typechain-types/factories/contracts/mock/erc20/ERC20Mock__factory.d.ts +1 -1
  62. package/build/contracts/typechain-types/factories/contracts/mock/erc20/ERC20Mock__factory.d.ts.map +1 -1
  63. package/build/contracts/typechain-types/factories/contracts/mock/erc20/ERC20Mock__factory.js +1 -1
  64. package/build/contracts/typechain-types/index.d.ts +4 -10
  65. package/build/contracts/typechain-types/index.d.ts.map +1 -1
  66. package/build/contracts/typechain-types/index.js +5 -11
  67. package/build/entities/AdminOperationThresholds.d.ts +12 -0
  68. package/build/entities/AdminOperationThresholds.d.ts.map +1 -0
  69. package/build/entities/AdminOperationThresholds.js +56 -0
  70. package/build/entities/EscrowRoles.d.ts +12 -0
  71. package/build/entities/EscrowRoles.d.ts.map +1 -0
  72. package/build/entities/EscrowRoles.js +57 -0
  73. package/build/entities/GlobalTimelock.d.ts +14 -0
  74. package/build/entities/GlobalTimelock.d.ts.map +1 -0
  75. package/build/entities/GlobalTimelock.js +64 -0
  76. package/build/entities/GranularTimelock .d.ts +12 -0
  77. package/build/entities/GranularTimelock .d.ts.map +1 -0
  78. package/build/entities/GranularTimelock .js +56 -0
  79. package/build/entities/OperationType.d.ts +18 -0
  80. package/build/entities/OperationType.d.ts.map +1 -0
  81. package/build/entities/OperationType.js +50 -0
  82. package/build/entities/RoleHash.d.ts +11 -0
  83. package/build/entities/RoleHash.d.ts.map +1 -0
  84. package/build/entities/RoleHash.js +52 -0
  85. package/build/entities/Signatures.d.ts +16 -0
  86. package/build/entities/Signatures.d.ts.map +1 -0
  87. package/build/entities/Signatures.js +72 -0
  88. package/build/entities/TokenExecutionThresholds.d.ts +16 -0
  89. package/build/entities/TokenExecutionThresholds.d.ts.map +1 -0
  90. package/build/entities/TokenExecutionThresholds.js +72 -0
  91. package/build/index.d.ts +1 -0
  92. package/build/index.d.ts.map +1 -1
  93. package/build/index.js +4 -2
  94. package/build/services/ChainManager.d.ts.map +1 -1
  95. package/build/services/SweepJobService.d.ts +3 -3
  96. package/build/services/SweepJobService.d.ts.map +1 -1
  97. package/build/services/SweepJobService.js +12 -7
  98. package/build/services/db/roles/ContractRoles.d.ts +54 -0
  99. package/build/services/db/roles/ContractRoles.d.ts.map +1 -0
  100. package/build/services/db/roles/ContractRoles.js +81 -0
  101. package/package.json +1 -1
@@ -27,6 +27,49 @@ const _abi = [
27
27
  name: "AccessControlUnauthorizedAccount",
28
28
  type: "error",
29
29
  },
30
+ {
31
+ inputs: [
32
+ {
33
+ internalType: "address",
34
+ name: "account",
35
+ type: "address",
36
+ },
37
+ ],
38
+ name: "AccountAlreadyHasSignerRole",
39
+ type: "error",
40
+ },
41
+ {
42
+ inputs: [],
43
+ name: "AdminMultisigConfigNotSet",
44
+ type: "error",
45
+ },
46
+ {
47
+ inputs: [
48
+ {
49
+ internalType: "uint256",
50
+ name: "requestId",
51
+ type: "uint256",
52
+ },
53
+ ],
54
+ name: "AlreadyCreatedTransaction",
55
+ type: "error",
56
+ },
57
+ {
58
+ inputs: [
59
+ {
60
+ internalType: "bytes32",
61
+ name: "commitmentHash",
62
+ type: "bytes32",
63
+ },
64
+ ],
65
+ name: "CommitmentNotFound",
66
+ type: "error",
67
+ },
68
+ {
69
+ inputs: [],
70
+ name: "ConfigGroupNotSet",
71
+ type: "error",
72
+ },
30
73
  {
31
74
  inputs: [],
32
75
  name: "ContractBusy",
@@ -63,6 +106,11 @@ const _abi = [
63
106
  name: "ExceedsLimit",
64
107
  type: "error",
65
108
  },
109
+ {
110
+ inputs: [],
111
+ name: "ExceedsMax",
112
+ type: "error",
113
+ },
66
114
  {
67
115
  inputs: [],
68
116
  name: "ExceedsMaxBatch",
@@ -94,21 +142,106 @@ const _abi = [
94
142
  name: "InsufficientBalance",
95
143
  type: "error",
96
144
  },
145
+ {
146
+ inputs: [
147
+ {
148
+ internalType: "uint256",
149
+ name: "required",
150
+ type: "uint256",
151
+ },
152
+ {
153
+ internalType: "uint256",
154
+ name: "provided",
155
+ type: "uint256",
156
+ },
157
+ ],
158
+ name: "InsufficientExecutiveSigs",
159
+ type: "error",
160
+ },
161
+ {
162
+ inputs: [
163
+ {
164
+ internalType: "uint256",
165
+ name: "required",
166
+ type: "uint256",
167
+ },
168
+ {
169
+ internalType: "uint256",
170
+ name: "provided",
171
+ type: "uint256",
172
+ },
173
+ ],
174
+ name: "InsufficientManagerSigs",
175
+ type: "error",
176
+ },
97
177
  {
98
178
  inputs: [],
99
179
  name: "InsufficientReserves",
100
180
  type: "error",
101
181
  },
182
+ {
183
+ inputs: [],
184
+ name: "InvalidConfig",
185
+ type: "error",
186
+ },
102
187
  {
103
188
  inputs: [],
104
189
  name: "InvalidInitialization",
105
190
  type: "error",
106
191
  },
192
+ {
193
+ inputs: [
194
+ {
195
+ internalType: "uint256",
196
+ name: "sig_idx",
197
+ type: "uint256",
198
+ },
199
+ ],
200
+ name: "InvalidMultiSig",
201
+ type: "error",
202
+ },
203
+ {
204
+ inputs: [
205
+ {
206
+ internalType: "uint256",
207
+ name: "expected",
208
+ type: "uint256",
209
+ },
210
+ {
211
+ internalType: "uint256",
212
+ name: "provided",
213
+ type: "uint256",
214
+ },
215
+ ],
216
+ name: "InvalidNonce",
217
+ type: "error",
218
+ },
219
+ {
220
+ inputs: [],
221
+ name: "InvalidOperation",
222
+ type: "error",
223
+ },
107
224
  {
108
225
  inputs: [],
109
226
  name: "InvalidSignature",
110
227
  type: "error",
111
228
  },
229
+ {
230
+ inputs: [],
231
+ name: "InvalidSignatures",
232
+ type: "error",
233
+ },
234
+ {
235
+ inputs: [
236
+ {
237
+ internalType: "address",
238
+ name: "tokenAddress",
239
+ type: "address",
240
+ },
241
+ ],
242
+ name: "MultisigConfigNotSet",
243
+ type: "error",
244
+ },
112
245
  {
113
246
  inputs: [],
114
247
  name: "NotAdmin",
@@ -145,11 +278,59 @@ const _abi = [
145
278
  name: "RequestAlreadyFulfilled",
146
279
  type: "error",
147
280
  },
281
+ {
282
+ inputs: [
283
+ {
284
+ internalType: "uint8",
285
+ name: "required_number",
286
+ type: "uint8",
287
+ },
288
+ ],
289
+ name: "RequireMultiSig",
290
+ type: "error",
291
+ },
292
+ {
293
+ inputs: [],
294
+ name: "RequireTreasuryReceiverRole",
295
+ type: "error",
296
+ },
148
297
  {
149
298
  inputs: [],
150
299
  name: "SignatureAlreadyUsed",
151
300
  type: "error",
152
301
  },
302
+ {
303
+ inputs: [],
304
+ name: "TimelockConfigGroupNotSet",
305
+ type: "error",
306
+ },
307
+ {
308
+ inputs: [
309
+ {
310
+ internalType: "address",
311
+ name: "tokenAddress",
312
+ type: "address",
313
+ },
314
+ ],
315
+ name: "TimelockConfigNotSet",
316
+ type: "error",
317
+ },
318
+ {
319
+ inputs: [
320
+ {
321
+ internalType: "uint256",
322
+ name: "executeAt",
323
+ type: "uint256",
324
+ },
325
+ {
326
+ internalType: "uint256",
327
+ name: "currentTime",
328
+ type: "uint256",
329
+ },
330
+ ],
331
+ name: "TimelockNotExpired",
332
+ type: "error",
333
+ },
153
334
  {
154
335
  inputs: [
155
336
  {
@@ -291,6 +472,58 @@ const _abi = [
291
472
  name: "RoleRevoked",
292
473
  type: "event",
293
474
  },
475
+ {
476
+ inputs: [],
477
+ name: "ADMIN_TREASURY_EXECUTIVE_ROLE",
478
+ outputs: [
479
+ {
480
+ internalType: "bytes32",
481
+ name: "",
482
+ type: "bytes32",
483
+ },
484
+ ],
485
+ stateMutability: "view",
486
+ type: "function",
487
+ },
488
+ {
489
+ inputs: [],
490
+ name: "ADMIN_TREASURY_MANAGER_ROLE",
491
+ outputs: [
492
+ {
493
+ internalType: "bytes32",
494
+ name: "",
495
+ type: "bytes32",
496
+ },
497
+ ],
498
+ stateMutability: "view",
499
+ type: "function",
500
+ },
501
+ {
502
+ inputs: [],
503
+ name: "CONFIG_EXECUTIVE_ROLE",
504
+ outputs: [
505
+ {
506
+ internalType: "bytes32",
507
+ name: "",
508
+ type: "bytes32",
509
+ },
510
+ ],
511
+ stateMutability: "view",
512
+ type: "function",
513
+ },
514
+ {
515
+ inputs: [],
516
+ name: "CONFIG_MANAGER_ROLE",
517
+ outputs: [
518
+ {
519
+ internalType: "bytes32",
520
+ name: "",
521
+ type: "bytes32",
522
+ },
523
+ ],
524
+ stateMutability: "view",
525
+ type: "function",
526
+ },
294
527
  {
295
528
  inputs: [],
296
529
  name: "DEFAULT_ADMIN_ROLE",
@@ -330,6 +563,84 @@ const _abi = [
330
563
  stateMutability: "view",
331
564
  type: "function",
332
565
  },
566
+ {
567
+ inputs: [],
568
+ name: "TIMELOCK_CONFIG_EXECUTIVE_ROLE",
569
+ outputs: [
570
+ {
571
+ internalType: "bytes32",
572
+ name: "",
573
+ type: "bytes32",
574
+ },
575
+ ],
576
+ stateMutability: "view",
577
+ type: "function",
578
+ },
579
+ {
580
+ inputs: [],
581
+ name: "TIMELOCK_CONFIG_MANAGER_ROLE",
582
+ outputs: [
583
+ {
584
+ internalType: "bytes32",
585
+ name: "",
586
+ type: "bytes32",
587
+ },
588
+ ],
589
+ stateMutability: "view",
590
+ type: "function",
591
+ },
592
+ {
593
+ inputs: [],
594
+ name: "TREASURY_DISPATCH_ROLE",
595
+ outputs: [
596
+ {
597
+ internalType: "bytes32",
598
+ name: "",
599
+ type: "bytes32",
600
+ },
601
+ ],
602
+ stateMutability: "view",
603
+ type: "function",
604
+ },
605
+ {
606
+ inputs: [],
607
+ name: "TREASURY_EXECUTIVE_ROLE",
608
+ outputs: [
609
+ {
610
+ internalType: "bytes32",
611
+ name: "",
612
+ type: "bytes32",
613
+ },
614
+ ],
615
+ stateMutability: "view",
616
+ type: "function",
617
+ },
618
+ {
619
+ inputs: [],
620
+ name: "TREASURY_MANAGER_ROLE",
621
+ outputs: [
622
+ {
623
+ internalType: "bytes32",
624
+ name: "",
625
+ type: "bytes32",
626
+ },
627
+ ],
628
+ stateMutability: "view",
629
+ type: "function",
630
+ },
631
+ {
632
+ inputs: [],
633
+ name: "TREASURY_RECEIVER_ROLE",
634
+ outputs: [
635
+ {
636
+ internalType: "bytes32",
637
+ name: "",
638
+ type: "bytes32",
639
+ },
640
+ ],
641
+ stateMutability: "view",
642
+ type: "function",
643
+ },
333
644
  {
334
645
  inputs: [
335
646
  {
@@ -354,16 +665,29 @@ const _abi = [
354
665
  type: "function",
355
666
  },
356
667
  {
357
- inputs: [
668
+ inputs: [],
669
+ name: "adminTokenThresholdSettings",
670
+ outputs: [
358
671
  {
359
- internalType: "address",
360
- name: "newAdmin",
361
- type: "address",
672
+ internalType: "uint256",
673
+ name: "",
674
+ type: "uint256",
362
675
  },
363
676
  ],
364
- name: "changeAdmin",
365
- outputs: [],
366
- stateMutability: "nonpayable",
677
+ stateMutability: "view",
678
+ type: "function",
679
+ },
680
+ {
681
+ inputs: [],
682
+ name: "configThresholdSettings",
683
+ outputs: [
684
+ {
685
+ internalType: "uint256",
686
+ name: "",
687
+ type: "uint256",
688
+ },
689
+ ],
690
+ stateMutability: "view",
367
691
  type: "function",
368
692
  },
369
693
  {
@@ -486,13 +810,19 @@ const _abi = [
486
810
  inputs: [
487
811
  {
488
812
  internalType: "address",
489
- name: "_operator",
813
+ name: "",
490
814
  type: "address",
491
815
  },
492
816
  ],
493
- name: "setOperator",
494
- outputs: [],
495
- stateMutability: "nonpayable",
817
+ name: "signerBitmap",
818
+ outputs: [
819
+ {
820
+ internalType: "uint8",
821
+ name: "",
822
+ type: "uint8",
823
+ },
824
+ ],
825
+ stateMutability: "view",
496
826
  type: "function",
497
827
  },
498
828
  {
@@ -514,8 +844,40 @@ const _abi = [
514
844
  stateMutability: "view",
515
845
  type: "function",
516
846
  },
847
+ {
848
+ inputs: [],
849
+ name: "timelockThresholdSettings",
850
+ outputs: [
851
+ {
852
+ internalType: "uint256",
853
+ name: "",
854
+ type: "uint256",
855
+ },
856
+ ],
857
+ stateMutability: "view",
858
+ type: "function",
859
+ },
860
+ {
861
+ inputs: [
862
+ {
863
+ internalType: "address",
864
+ name: "",
865
+ type: "address",
866
+ },
867
+ ],
868
+ name: "tokenThresholdSettings",
869
+ outputs: [
870
+ {
871
+ internalType: "uint256",
872
+ name: "",
873
+ type: "uint256",
874
+ },
875
+ ],
876
+ stateMutability: "view",
877
+ type: "function",
878
+ },
517
879
  ];
518
- const _bytecode = "0x6080604052348015600e575f5ffd5b506107908061001c5f395ff3fe608060405234801561000f575f5ffd5b50600436106100cb575f3560e01c80638f28397011610088578063b3ab15fb11610063578063b3ab15fb146101a2578063c4707a83146101b5578063d547741f146101c9578063f5b541a6146101dc575f5ffd5b80638f2839701461017557806391d1485414610188578063a217fddf1461019b575f5ffd5b806301ffc9a7146100cf578063248a9ca3146100f75780632f2ff15d1461012757806336568abe1461013c5780633aa98a941461014f578063518713d214610162575b5f5ffd5b6100e26100dd366004610637565b6101f0565b60405190151581526020015b60405180910390f35b610119610105366004610665565b5f9081526020819052604090206001015490565b6040519081526020016100ee565b61013a610135366004610697565b610226565b005b61013a61014a366004610697565b610250565b61013a61015d3660046106c1565b610288565b6100e2610170366004610701565b61032b565b61013a610183366004610701565b610353565b6100e2610196366004610697565b6103b2565b6101195f81565b61013a6101b0366004610701565b6103da565b6101195f51602061071b5f395f51905f5281565b61013a6101d7366004610697565b610460565b6101195f51602061073b5f395f51905f5281565b5f6001600160e01b03198216637965db0b60e01b148061022057506301ffc9a760e01b6001600160e01b03198316145b92915050565b5f8281526020819052604090206001015461024081610484565b61024a8383610491565b50505050565b6001600160a01b03811633146102795760405163334bd91960e11b815260040160405180910390fd5b6102838282610520565b505050565b610290610589565b600180546001600160a01b0319166001600160a01b0385161790556102b55f836103b2565b6102c5576102c35f83610491565b505b6102dc5f51602061073b5f395f51905f52846103b2565b6102f9576102f75f51602061073b5f395f51905f5284610491565b505b6103105f51602061071b5f395f51905f52826103b2565b6102835761024a5f51602061071b5f395f51905f5282610491565b5f61033681836103b2565b8061022057506102205f51602061071b5f395f51905f52836103b2565b61035d5f336103b2565b61037a57604051637bfa4b9f60e01b815260040160405180910390fd5b6103845f33610520565b5061038f5f82610491565b50600280546001600160a01b0319166001600160a01b0392909216919091179055565b5f918252602082815260408084206001600160a01b0393909316845291905290205460ff1690565b6103e45f336103b2565b61040157604051637bfa4b9f60e01b815260040160405180910390fd5b600154610425905f51602061073b5f395f51905f52906001600160a01b0316610520565b5061043d5f51602061073b5f395f51905f5282610491565b50600180546001600160a01b0319166001600160a01b0392909216919091179055565b5f8281526020819052604090206001015461047a81610484565b61024a8383610520565b61048e81336105b0565b50565b5f61049c83836103b2565b610519575f838152602081815260408083206001600160a01b03861684529091529020805460ff191660011790556104d13390565b6001600160a01b0316826001600160a01b0316847f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a4506001610220565b505f610220565b5f61052b83836103b2565b15610519575f838152602081815260408083206001600160a01b0386168085529252808320805460ff1916905551339286917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a4506001610220565b6105916105f1565b6105ae57604051631afcd79f60e31b815260040160405180910390fd5b565b6105ba82826103b2565b6105ed5760405163e2517d3f60e01b81526001600160a01b03821660048201526024810183905260440160405180910390fd5b5050565b5f6105fa61060f565b5468010000000000000000900460ff16919050565b5f807ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00610220565b5f60208284031215610647575f5ffd5b81356001600160e01b03198116811461065e575f5ffd5b9392505050565b5f60208284031215610675575f5ffd5b5035919050565b80356001600160a01b0381168114610692575f5ffd5b919050565b5f5f604083850312156106a8575f5ffd5b823591506106b86020840161067c565b90509250929050565b5f5f5f606084860312156106d3575f5ffd5b6106dc8461067c565b92506106ea6020850161067c565b91506106f86040850161067c565b90509250925092565b5f60208284031215610711575f5ffd5b61065e8261067c56fe9d98d3d08f0062b192694645e127c98e5f96f3bbec331d061acaac3ace2327f997667070c54ef182b0f5858b034beac1b6f3089aa2d3188bb1e8929f4fa9b929a2646970667358221220f3d2d851788be38bc58c9c71ca5da6addb98c5838882eb94bd33c8faddaa6a1864736f6c634300081c0033";
880
+ const _bytecode = "0x60808060405234601557610f52908161001a8239f35b5f80fdfe6080806040526004361015610012575f80fd5b5f3560e01c90816301ffc9a71461070a5750806320f5117c146106d2578063248a9ca3146106a05780632f2ff15d1461066357806336568abe1461061f5780633945c4a6146106025780633aa98a941461051c5780634a78b2f5146104e2578063518713d21461049b5780637026cb58146104615780637ef066c8146104275780638e8b3f2f1461040a57806391d14854146103da578063a0c7f799146103a0578063a217fddf14610386578063b2065f601461034c578063b700f45614610312578063bec4742c146102f5578063c0608667146102bb578063c4707a8314610294578063d547741f1461024e578063ebdf690f14610214578063f01068a1146101da578063f5b541a6146101b3578063fa07bb54146101795763fddbf3f31461013a575f80fd5b34610175576020366003190112610175576001600160a01b0361015b61075d565b165f526003602052602060ff60405f205416604051908152f35b5f80fd5b34610175575f3660031901126101755760206040517faf82374944a6f0200e0a96e99d9d9aa4925409c95c28b14a1d426baddd614aa88152f35b34610175575f3660031901126101755760206040515f516020610efd5f395f51905f528152f35b34610175575f3660031901126101755760206040517fb7733e58c7517dbd9e44ca467a39c0556186bc3a7271956f0a22baafb5dc93c38152f35b34610175575f3660031901126101755760206040517fede9dcdb0ce99dc7cec9c7be9246ad08b37853683ad91569c187b647ddf5e21c8152f35b346101755760403660031901126101755761029260043561026d610773565b9061028d610286825f525f602052600160405f20015490565b3390610d73565b610abe565b005b34610175575f3660031901126101755760206040515f516020610edd5f395f51905f528152f35b34610175575f3660031901126101755760206040517ff7401a2aa2d57dbee8bd296c5ac47eac2db8a2db2ff59d50c0534dc8be92dc6e8152f35b34610175575f366003190112610175576020600754604051908152f35b34610175575f3660031901126101755760206040517fdd7d143944313e9468ffd66e8786351a1538ac1bd6bac96fbbaac11d42f60a518152f35b34610175575f3660031901126101755760206040517f4d7d81d86b902e627e6f0ca462e1191bd8af9cb4b8de2660c10b6349acb6ff9b8152f35b34610175575f3660031901126101755760206040515f8152f35b34610175575f3660031901126101755760206040517fbbfb55d933c2bfa638763473275b1d84c4418e58d26cf9d2cd5758237756d9f08152f35b346101755760403660031901126101755760206104006103f8610773565b600435610951565b6040519015158152f35b34610175575f366003190112610175576020600554604051908152f35b34610175575f3660031901126101755760206040517f20eabc094169e10bc6be263d742d992b10fb206c3c0411e1cbabdd3cf47922298152f35b34610175575f3660031901126101755760206040517f3261beaeb016c41750eb5ecd6c92c85305d1a0aecaaaa6e0f4cf499f7ae258fb8152f35b346101755760203660031901126101755760206104b661075d565b6104bf81610789565b9081156104d2575b506040519015158152f35b6104dc91506108bd565b826104c7565b34610175575f3660031901126101755760206040517fd64fcb6a6f590e3ec3e331a5d9c60e0ca7468054939fe8e8dfe25f11ad1c1e7a8152f35b346101755760603660031901126101755761053561075d565b61053d610773565b60443591906001600160a01b03831683036101755760ff7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a005460401c16156105f357600180546001600160a01b0319166001600160a01b0384161790556105a381610789565b156105e3575b506105b381610829565b156105d3575b506105c3816108bd565b156105ca57005b61029290610a7c565b6105dc90610a4e565b50816105b9565b6105ec906109c4565b50826105a9565b631afcd79f60e31b5f5260045ffd5b34610175575f366003190112610175576020600654604051908152f35b3461017557604036600319011261017557610638610773565b336001600160a01b038216036106545761029290600435610abe565b63334bd91960e11b5f5260045ffd5b3461017557604036600319011261017557610292600435610682610773565b9061069b610286825f525f602052600160405f20015490565b610aaa565b346101755760203660031901126101755760206106ca6004355f525f602052600160405f20015490565b604051908152f35b34610175576020366003190112610175576001600160a01b036106f361075d565b165f526004602052602060405f2054604051908152f35b34610175576020366003190112610175576004359063ffffffff60e01b821680920361017557602091637965db0b60e01b811490811561074c575b5015158152f35b6301ffc9a760e01b14905083610745565b600435906001600160a01b038216820361017557565b602435906001600160a01b038216820361017557565b6107925f610b60565b906020820151156107eb576001600160a01b03165f9081526003602052604090205490519060088210156107d757600160ff8093161b16166107d2575f90565b600190565b634e487b7160e01b5f52602160045260245ffd5b6001600160a01b03165f9081527fad3228b676f7d3cd4284a5443f17f1962b36e491b30a40b2405849e597ba5fb5602052604090205460ff16919050565b61083f5f516020610efd5f395f51905f52610b60565b9060208201511561087f576001600160a01b03165f9081526003602052604090205490519060088210156107d757600160ff8093161b16166107d2575f90565b6001600160a01b03165f9081527fee57cd81e84075558e8fcc182a1f4393f91fc97f963a136e66b7f949a62f319f602052604090205460ff16919050565b6108d35f516020610edd5f395f51905f52610b60565b90602082015115610913576001600160a01b03165f9081526003602052604090205490519060088210156107d757600160ff8093161b16166107d2575f90565b6001600160a01b03165f9081527f4272c0e29c36ddb672dd25a254bda59e4d959f5c13bec396162edadccdbf7935602052604090205460ff16919050565b9061095b82610b60565b9160208301511561099c57506001600160a01b03165f9081526003602052604090205490519060088210156107d757600160ff8093161b16166107d2575f90565b5f908152602081815260408083206001600160a01b039094168352929052205460ff16919050565b6109ce815f610e06565b906109d85f610b60565b90602082015115610a49576001600160a01b03165f8181526003602052604090205490919060ff16610a3657519060088210156107d7575f52600360205260ff8060018160405f2094161b1681835416171660ff1982541617905590565b5063f893a86f60e01b5f5260045260245ffd5b505090565b610a65815f516020610efd5f395f51905f52610e06565b906109d85f516020610efd5f395f51905f52610b60565b610a93815f516020610edd5f395f51905f52610e06565b906109d85f516020610edd5f395f51905f52610b60565b906109d8610ab88284610e06565b92610b60565b90610acc610ab88284610e75565b90602082015115610a49576001600160a01b03165f8181526003602052604090205490919060ff1615610a4957519060088210156107d7575f52600360205260ff808060018160405f2095161b1619835416161660ff1982541617905590565b604051906040820182811067ffffffffffffffff821117610b4c57604052565b634e487b7160e01b5f52604160045260245ffd5b610b68610b2c565b5f8082526020909101527fede9dcdb0ce99dc7cec9c7be9246ad08b37853683ad91569c187b647ddf5e21c8103610baf5750610ba2610b2c565b5f81526001602082015290565b7ff7401a2aa2d57dbee8bd296c5ac47eac2db8a2db2ff59d50c0534dc8be92dc6e8103610bed5750610bdf610b2c565b600181526001602082015290565b7f4d7d81d86b902e627e6f0ca462e1191bd8af9cb4b8de2660c10b6349acb6ff9b8103610c2b5750610c1d610b2c565b600281526001602082015290565b7f20eabc094169e10bc6be263d742d992b10fb206c3c0411e1cbabdd3cf47922298103610c695750610c5b610b2c565b600381526001602082015290565b7fbbfb55d933c2bfa638763473275b1d84c4418e58d26cf9d2cd5758237756d9f08103610ca75750610c99610b2c565b600481526001602082015290565b7f3261beaeb016c41750eb5ecd6c92c85305d1a0aecaaaa6e0f4cf499f7ae258fb8103610ce55750610cd7610b2c565b600581526001602082015290565b7fd64fcb6a6f590e3ec3e331a5d9c60e0ca7468054939fe8e8dfe25f11ad1c1e7a8103610d235750610d15610b2c565b600681526001602082015290565b7faf82374944a6f0200e0a96e99d9d9aa4925409c95c28b14a1d426baddd614aa814610d5d57610d51610b2c565b5f81525f602082015290565b610d65610b2c565b600781526001602082015290565b90610d7d82610b60565b90602082015115610dd4576001600160a01b03165f818152600360205260409020549151909160088210156107d757600160ff8093161b161615610dbf575050565b63e2517d3f60e01b5f5260045260245260445ffd5b9050610de08183610951565b15610de9575050565b63e2517d3f60e01b5f5260018060a01b031660045260245260445ffd5b610e108282610951565b610e6f575f818152602081815260408083206001600160a01b0395909516808452949091528120805460ff19166001179055339291907f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d9080a4600190565b50505f90565b610e7f8282610951565b15610e6f575f818152602081815260408083206001600160a01b0395909516808452949091528120805460ff19169055339291907ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9080a460019056fe9d98d3d08f0062b192694645e127c98e5f96f3bbec331d061acaac3ace2327f997667070c54ef182b0f5858b034beac1b6f3089aa2d3188bb1e8929f4fa9b929a26469706673582212202a9fc1d9e9aa7df85798492a2b52040497b0ac1a5cca19805c7d3dd3fcdfabbe64736f6c634300081c0033";
519
881
  const isSuperArgs = (xs) => xs.length > 1;
520
882
  class EscrowAccessControl__factory extends ethers_1.ContractFactory {
521
883
  constructor(...args) {
@@ -14,8 +14,40 @@ export declare class EscrowErrors__factory extends ContractFactory {
14
14
  deploymentTransaction(): ContractTransactionResponse;
15
15
  }>;
16
16
  connect(runner: ContractRunner | null): EscrowErrors__factory;
17
- static readonly bytecode = "0x6080604052348015600e575f5ffd5b50603e80601a5f395ff3fe60806040525f5ffdfea2646970667358221220b83b8515993748cf3ad799d2b62b6e689ff19f8c046c8c140bd49b57e376f42a64736f6c634300081c0033";
17
+ static readonly bytecode = "0x608080604052346013576039908160188239f35b5f80fdfe5f80fdfea26469706673582212208e24049145c9185989f8abd9c00ee44eae1461a3447dd62a7c4bdeef2dccdf8e64736f6c634300081c0033";
18
18
  static readonly abi: readonly [{
19
+ readonly inputs: readonly [{
20
+ readonly internalType: "address";
21
+ readonly name: "account";
22
+ readonly type: "address";
23
+ }];
24
+ readonly name: "AccountAlreadyHasSignerRole";
25
+ readonly type: "error";
26
+ }, {
27
+ readonly inputs: readonly [];
28
+ readonly name: "AdminMultisigConfigNotSet";
29
+ readonly type: "error";
30
+ }, {
31
+ readonly inputs: readonly [{
32
+ readonly internalType: "uint256";
33
+ readonly name: "requestId";
34
+ readonly type: "uint256";
35
+ }];
36
+ readonly name: "AlreadyCreatedTransaction";
37
+ readonly type: "error";
38
+ }, {
39
+ readonly inputs: readonly [{
40
+ readonly internalType: "bytes32";
41
+ readonly name: "commitmentHash";
42
+ readonly type: "bytes32";
43
+ }];
44
+ readonly name: "CommitmentNotFound";
45
+ readonly type: "error";
46
+ }, {
47
+ readonly inputs: readonly [];
48
+ readonly name: "ConfigGroupNotSet";
49
+ readonly type: "error";
50
+ }, {
19
51
  readonly inputs: readonly [];
20
52
  readonly name: "ContractBusy";
21
53
  readonly type: "error";
@@ -43,6 +75,10 @@ export declare class EscrowErrors__factory extends ContractFactory {
43
75
  }];
44
76
  readonly name: "ExceedsLimit";
45
77
  readonly type: "error";
78
+ }, {
79
+ readonly inputs: readonly [];
80
+ readonly name: "ExceedsMax";
81
+ readonly type: "error";
46
82
  }, {
47
83
  readonly inputs: readonly [];
48
84
  readonly name: "ExceedsMaxBatch";
@@ -67,14 +103,78 @@ export declare class EscrowErrors__factory extends ContractFactory {
67
103
  }];
68
104
  readonly name: "InsufficientBalance";
69
105
  readonly type: "error";
106
+ }, {
107
+ readonly inputs: readonly [{
108
+ readonly internalType: "uint256";
109
+ readonly name: "required";
110
+ readonly type: "uint256";
111
+ }, {
112
+ readonly internalType: "uint256";
113
+ readonly name: "provided";
114
+ readonly type: "uint256";
115
+ }];
116
+ readonly name: "InsufficientExecutiveSigs";
117
+ readonly type: "error";
118
+ }, {
119
+ readonly inputs: readonly [{
120
+ readonly internalType: "uint256";
121
+ readonly name: "required";
122
+ readonly type: "uint256";
123
+ }, {
124
+ readonly internalType: "uint256";
125
+ readonly name: "provided";
126
+ readonly type: "uint256";
127
+ }];
128
+ readonly name: "InsufficientManagerSigs";
129
+ readonly type: "error";
70
130
  }, {
71
131
  readonly inputs: readonly [];
72
132
  readonly name: "InsufficientReserves";
73
133
  readonly type: "error";
134
+ }, {
135
+ readonly inputs: readonly [];
136
+ readonly name: "InvalidConfig";
137
+ readonly type: "error";
138
+ }, {
139
+ readonly inputs: readonly [{
140
+ readonly internalType: "uint256";
141
+ readonly name: "sig_idx";
142
+ readonly type: "uint256";
143
+ }];
144
+ readonly name: "InvalidMultiSig";
145
+ readonly type: "error";
146
+ }, {
147
+ readonly inputs: readonly [{
148
+ readonly internalType: "uint256";
149
+ readonly name: "expected";
150
+ readonly type: "uint256";
151
+ }, {
152
+ readonly internalType: "uint256";
153
+ readonly name: "provided";
154
+ readonly type: "uint256";
155
+ }];
156
+ readonly name: "InvalidNonce";
157
+ readonly type: "error";
158
+ }, {
159
+ readonly inputs: readonly [];
160
+ readonly name: "InvalidOperation";
161
+ readonly type: "error";
74
162
  }, {
75
163
  readonly inputs: readonly [];
76
164
  readonly name: "InvalidSignature";
77
165
  readonly type: "error";
166
+ }, {
167
+ readonly inputs: readonly [];
168
+ readonly name: "InvalidSignatures";
169
+ readonly type: "error";
170
+ }, {
171
+ readonly inputs: readonly [{
172
+ readonly internalType: "address";
173
+ readonly name: "tokenAddress";
174
+ readonly type: "address";
175
+ }];
176
+ readonly name: "MultisigConfigNotSet";
177
+ readonly type: "error";
78
178
  }, {
79
179
  readonly inputs: readonly [];
80
180
  readonly name: "NotAdmin";
@@ -99,10 +199,46 @@ export declare class EscrowErrors__factory extends ContractFactory {
99
199
  }];
100
200
  readonly name: "RequestAlreadyFulfilled";
101
201
  readonly type: "error";
202
+ }, {
203
+ readonly inputs: readonly [{
204
+ readonly internalType: "uint8";
205
+ readonly name: "required_number";
206
+ readonly type: "uint8";
207
+ }];
208
+ readonly name: "RequireMultiSig";
209
+ readonly type: "error";
210
+ }, {
211
+ readonly inputs: readonly [];
212
+ readonly name: "RequireTreasuryReceiverRole";
213
+ readonly type: "error";
102
214
  }, {
103
215
  readonly inputs: readonly [];
104
216
  readonly name: "SignatureAlreadyUsed";
105
217
  readonly type: "error";
218
+ }, {
219
+ readonly inputs: readonly [];
220
+ readonly name: "TimelockConfigGroupNotSet";
221
+ readonly type: "error";
222
+ }, {
223
+ readonly inputs: readonly [{
224
+ readonly internalType: "address";
225
+ readonly name: "tokenAddress";
226
+ readonly type: "address";
227
+ }];
228
+ readonly name: "TimelockConfigNotSet";
229
+ readonly type: "error";
230
+ }, {
231
+ readonly inputs: readonly [{
232
+ readonly internalType: "uint256";
233
+ readonly name: "executeAt";
234
+ readonly type: "uint256";
235
+ }, {
236
+ readonly internalType: "uint256";
237
+ readonly name: "currentTime";
238
+ readonly type: "uint256";
239
+ }];
240
+ readonly name: "TimelockNotExpired";
241
+ readonly type: "error";
106
242
  }, {
107
243
  readonly inputs: readonly [{
108
244
  readonly internalType: "address";
@@ -1 +1 @@
1
- {"version":3,"file":"EscrowErrors__factory.d.ts","sourceRoot":"","sources":["../../../../../../src/contracts/typechain-types/factories/contracts/escrow/EscrowErrors__factory.ts"],"names":[],"mappings":"AAGA,OAAO,EAEL,eAAe,EACf,2BAA2B,EAE5B,MAAM,QAAQ,CAAC;AAChB,OAAO,KAAK,EAAE,MAAM,EAAE,yBAAyB,EAAE,cAAc,EAAE,MAAM,QAAQ,CAAC;AAChF,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,iBAAiB,CAAC;AAC3D,OAAO,KAAK,EACV,YAAY,EACZ,qBAAqB,EACtB,MAAM,wCAAwC,CAAC;AA8KhD,KAAK,6BAA6B,GAC9B,CAAC,MAAM,CAAC,EAAE,MAAM,CAAC,GACjB,qBAAqB,CAAC,OAAO,eAAe,CAAC,CAAC;AAMlD,qBAAa,qBAAsB,SAAQ,eAAe;gBAC5C,GAAG,IAAI,EAAE,6BAA6B;IAQzC,oBAAoB,CAC3B,SAAS,CAAC,EAAE,mBAAmB,GAAG;QAAE,IAAI,CAAC,EAAE,MAAM,CAAA;KAAE,GAClD,OAAO,CAAC,yBAAyB,CAAC;IAG5B,MAAM,CAAC,SAAS,CAAC,EAAE,mBAAmB,GAAG;QAAE,IAAI,CAAC,EAAE,MAAM,CAAA;KAAE,GACzB,OAAO,CAC7C,YAAY,GAAG;QACb,qBAAqB,IAAI,2BAA2B,CAAC;KACtD,CACF;IAEM,OAAO,CAAC,MAAM,EAAE,cAAc,GAAG,IAAI,GAAG,qBAAqB;IAItE,MAAM,CAAC,QAAQ,CAAC,QAAQ,wLAAa;IACrC,MAAM,CAAC,QAAQ,CAAC,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAAQ;IAC3B,MAAM,CAAC,eAAe,IAAI,qBAAqB;IAG/C,MAAM,CAAC,OAAO,CACZ,OAAO,EAAE,MAAM,EACf,MAAM,CAAC,EAAE,cAAc,GAAG,IAAI,GAC7B,YAAY;CAGhB"}
1
+ {"version":3,"file":"EscrowErrors__factory.d.ts","sourceRoot":"","sources":["../../../../../../src/contracts/typechain-types/factories/contracts/escrow/EscrowErrors__factory.ts"],"names":[],"mappings":"AAGA,OAAO,EAEL,eAAe,EACf,2BAA2B,EAE5B,MAAM,QAAQ,CAAC;AAChB,OAAO,KAAK,EAAE,MAAM,EAAE,yBAAyB,EAAE,cAAc,EAAE,MAAM,QAAQ,CAAC;AAChF,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,iBAAiB,CAAC;AAC3D,OAAO,KAAK,EACV,YAAY,EACZ,qBAAqB,EACtB,MAAM,wCAAwC,CAAC;AAmWhD,KAAK,6BAA6B,GAC9B,CAAC,MAAM,CAAC,EAAE,MAAM,CAAC,GACjB,qBAAqB,CAAC,OAAO,eAAe,CAAC,CAAC;AAMlD,qBAAa,qBAAsB,SAAQ,eAAe;gBAC5C,GAAG,IAAI,EAAE,6BAA6B;IAQzC,oBAAoB,CAC3B,SAAS,CAAC,EAAE,mBAAmB,GAAG;QAAE,IAAI,CAAC,EAAE,MAAM,CAAA;KAAE,GAClD,OAAO,CAAC,yBAAyB,CAAC;IAG5B,MAAM,CAAC,SAAS,CAAC,EAAE,mBAAmB,GAAG;QAAE,IAAI,CAAC,EAAE,MAAM,CAAA;KAAE,GACzB,OAAO,CAC7C,YAAY,GAAG;QACb,qBAAqB,IAAI,2BAA2B,CAAC;KACtD,CACF;IAEM,OAAO,CAAC,MAAM,EAAE,cAAc,GAAG,IAAI,GAAG,qBAAqB;IAItE,MAAM,CAAC,QAAQ,CAAC,QAAQ,0KAAa;IACrC,MAAM,CAAC,QAAQ,CAAC,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAAQ;IAC3B,MAAM,CAAC,eAAe,IAAI,qBAAqB;IAG/C,MAAM,CAAC,OAAO,CACZ,OAAO,EAAE,MAAM,EACf,MAAM,CAAC,EAAE,cAAc,GAAG,IAAI,GAC7B,YAAY;CAGhB"}