@coti-io/coti-contracts 1.0.8 → 1.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (36) hide show
  1. package/contracts/mocks/utils/mpc/Arithmetic128BitTestsContract.sol +260 -0
  2. package/contracts/mocks/utils/mpc/Arithmetic256BitTestsContract.sol +264 -0
  3. package/contracts/mocks/utils/mpc/Bitwise128BitTestsContract.sol +91 -0
  4. package/contracts/mocks/utils/mpc/Bitwise256BitTestsContract.sol +91 -0
  5. package/contracts/mocks/utils/mpc/Comparison128BitTestsContract.sol +158 -0
  6. package/contracts/mocks/utils/mpc/Comparison256BitTestsContract.sol +158 -0
  7. package/contracts/mocks/utils/mpc/Miscellaneous128BitTestsContract.sol +185 -0
  8. package/contracts/mocks/utils/mpc/Miscellaneous256BitTestsContract.sol +190 -0
  9. package/contracts/utils/mpc/MpcCore.sol +2804 -180
  10. package/hardhat.config.ts +6 -2
  11. package/package.json +2 -2
  12. package/test/token/PrivateERC20/PrivateERC20.test.ts +3 -3
  13. package/test/utils/mpc/Unsigned128BitIntegers.test.ts +945 -0
  14. package/test/utils/mpc/Unsigned256BitIntegers.test.ts +1124 -0
  15. package/test/utils/mpc/helpers.ts +77 -0
  16. package/typechain-types/contracts/mocks/utils/mpc/Arithmetic128BitTestsContract.ts +341 -0
  17. package/typechain-types/contracts/mocks/utils/mpc/Arithmetic256BitTestsContract.ts +347 -0
  18. package/typechain-types/contracts/mocks/utils/mpc/Bitwise128BitTestsContract.ts +186 -0
  19. package/typechain-types/contracts/mocks/utils/mpc/Bitwise256BitTestsContract.ts +186 -0
  20. package/typechain-types/contracts/mocks/utils/mpc/Comparison128BitTestsContract.ts +260 -0
  21. package/typechain-types/contracts/mocks/utils/mpc/Comparison256BitTestsContract.ts +260 -0
  22. package/typechain-types/contracts/mocks/utils/mpc/Miscellaneous128BitTestsContract.ts +302 -0
  23. package/typechain-types/contracts/mocks/utils/mpc/Miscellaneous256BitTestsContract.ts +322 -0
  24. package/typechain-types/contracts/mocks/utils/mpc/index.ts +8 -0
  25. package/typechain-types/factories/contracts/mocks/utils/mpc/Arithmetic128BitTestsContract__factory.ts +349 -0
  26. package/typechain-types/factories/contracts/mocks/utils/mpc/Arithmetic256BitTestsContract__factory.ts +364 -0
  27. package/typechain-types/factories/contracts/mocks/utils/mpc/Bitwise128BitTestsContract__factory.ts +182 -0
  28. package/typechain-types/factories/contracts/mocks/utils/mpc/Bitwise256BitTestsContract__factory.ts +182 -0
  29. package/typechain-types/factories/contracts/mocks/utils/mpc/Comparison128BitTestsContract__factory.ts +255 -0
  30. package/typechain-types/factories/contracts/mocks/utils/mpc/Comparison256BitTestsContract__factory.ts +255 -0
  31. package/typechain-types/factories/contracts/mocks/utils/mpc/Miscellaneous128BitTestsContract__factory.ts +332 -0
  32. package/typechain-types/factories/contracts/mocks/utils/mpc/Miscellaneous256BitTestsContract__factory.ts +380 -0
  33. package/typechain-types/factories/contracts/mocks/utils/mpc/index.ts +8 -0
  34. package/typechain-types/hardhat.d.ts +144 -0
  35. package/typechain-types/index.ts +16 -0
  36. package/contracts/package.json +0 -11
@@ -0,0 +1,380 @@
1
+ /* Autogenerated file. Do not edit manually. */
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ import {
5
+ Contract,
6
+ ContractFactory,
7
+ ContractTransactionResponse,
8
+ Interface,
9
+ } from "ethers";
10
+ import type { Signer, ContractDeployTransaction, ContractRunner } from "ethers";
11
+ import type { NonPayableOverrides } from "../../../../../common";
12
+ import type {
13
+ Miscellaneous256BitTestsContract,
14
+ Miscellaneous256BitTestsContractInterface,
15
+ } from "../../../../../contracts/mocks/utils/mpc/Miscellaneous256BitTestsContract";
16
+
17
+ const _abi = [
18
+ {
19
+ inputs: [
20
+ {
21
+ internalType: "uint256",
22
+ name: "",
23
+ type: "uint256",
24
+ },
25
+ ],
26
+ name: "a2",
27
+ outputs: [
28
+ {
29
+ internalType: "uint256",
30
+ name: "",
31
+ type: "uint256",
32
+ },
33
+ ],
34
+ stateMutability: "view",
35
+ type: "function",
36
+ },
37
+ {
38
+ inputs: [
39
+ {
40
+ internalType: "uint256",
41
+ name: "",
42
+ type: "uint256",
43
+ },
44
+ ],
45
+ name: "allowance2",
46
+ outputs: [
47
+ {
48
+ internalType: "uint256",
49
+ name: "",
50
+ type: "uint256",
51
+ },
52
+ ],
53
+ stateMutability: "view",
54
+ type: "function",
55
+ },
56
+ {
57
+ inputs: [
58
+ {
59
+ internalType: "uint256",
60
+ name: "",
61
+ type: "uint256",
62
+ },
63
+ ],
64
+ name: "b2",
65
+ outputs: [
66
+ {
67
+ internalType: "uint256",
68
+ name: "",
69
+ type: "uint256",
70
+ },
71
+ ],
72
+ stateMutability: "view",
73
+ type: "function",
74
+ },
75
+ {
76
+ inputs: [
77
+ {
78
+ internalType: "uint256",
79
+ name: "",
80
+ type: "uint256",
81
+ },
82
+ ],
83
+ name: "ctNumbers2",
84
+ outputs: [
85
+ {
86
+ components: [
87
+ {
88
+ internalType: "ctUint64",
89
+ name: "high",
90
+ type: "uint256",
91
+ },
92
+ {
93
+ internalType: "ctUint64",
94
+ name: "low",
95
+ type: "uint256",
96
+ },
97
+ ],
98
+ internalType: "struct ctUint128",
99
+ name: "high",
100
+ type: "tuple",
101
+ },
102
+ {
103
+ components: [
104
+ {
105
+ internalType: "ctUint64",
106
+ name: "high",
107
+ type: "uint256",
108
+ },
109
+ {
110
+ internalType: "ctUint64",
111
+ name: "low",
112
+ type: "uint256",
113
+ },
114
+ ],
115
+ internalType: "struct ctUint128",
116
+ name: "low",
117
+ type: "tuple",
118
+ },
119
+ ],
120
+ stateMutability: "view",
121
+ type: "function",
122
+ },
123
+ {
124
+ inputs: [
125
+ {
126
+ internalType: "uint256",
127
+ name: "",
128
+ type: "uint256",
129
+ },
130
+ ],
131
+ name: "numbers2",
132
+ outputs: [
133
+ {
134
+ internalType: "uint256",
135
+ name: "",
136
+ type: "uint256",
137
+ },
138
+ ],
139
+ stateMutability: "view",
140
+ type: "function",
141
+ },
142
+ {
143
+ inputs: [
144
+ {
145
+ internalType: "uint256[]",
146
+ name: "a_",
147
+ type: "uint256[]",
148
+ },
149
+ ],
150
+ name: "offBoardToUserTest",
151
+ outputs: [],
152
+ stateMutability: "nonpayable",
153
+ type: "function",
154
+ },
155
+ {
156
+ inputs: [
157
+ {
158
+ internalType: "uint8[]",
159
+ name: "numBits",
160
+ type: "uint8[]",
161
+ },
162
+ ],
163
+ name: "randBoundedBitsTest2",
164
+ outputs: [],
165
+ stateMutability: "nonpayable",
166
+ type: "function",
167
+ },
168
+ {
169
+ inputs: [
170
+ {
171
+ internalType: "uint256",
172
+ name: "length",
173
+ type: "uint256",
174
+ },
175
+ ],
176
+ name: "randTest2",
177
+ outputs: [],
178
+ stateMutability: "nonpayable",
179
+ type: "function",
180
+ },
181
+ {
182
+ inputs: [
183
+ {
184
+ internalType: "uint256[]",
185
+ name: "a_",
186
+ type: "uint256[]",
187
+ },
188
+ ],
189
+ name: "setPublicTest",
190
+ outputs: [],
191
+ stateMutability: "nonpayable",
192
+ type: "function",
193
+ },
194
+ {
195
+ inputs: [
196
+ {
197
+ internalType: "uint256",
198
+ name: "",
199
+ type: "uint256",
200
+ },
201
+ ],
202
+ name: "success",
203
+ outputs: [
204
+ {
205
+ internalType: "bool",
206
+ name: "",
207
+ type: "bool",
208
+ },
209
+ ],
210
+ stateMutability: "view",
211
+ type: "function",
212
+ },
213
+ {
214
+ inputs: [
215
+ {
216
+ internalType: "uint256[]",
217
+ name: "a_",
218
+ type: "uint256[]",
219
+ },
220
+ {
221
+ internalType: "uint256[]",
222
+ name: "b_",
223
+ type: "uint256[]",
224
+ },
225
+ {
226
+ internalType: "uint256[]",
227
+ name: "amount_",
228
+ type: "uint256[]",
229
+ },
230
+ ],
231
+ name: "transferTest",
232
+ outputs: [],
233
+ stateMutability: "nonpayable",
234
+ type: "function",
235
+ },
236
+ {
237
+ inputs: [
238
+ {
239
+ internalType: "uint256[]",
240
+ name: "a_",
241
+ type: "uint256[]",
242
+ },
243
+ {
244
+ internalType: "uint256[]",
245
+ name: "b_",
246
+ type: "uint256[]",
247
+ },
248
+ {
249
+ internalType: "uint256[]",
250
+ name: "amount_",
251
+ type: "uint256[]",
252
+ },
253
+ {
254
+ internalType: "uint256[]",
255
+ name: "allowance_",
256
+ type: "uint256[]",
257
+ },
258
+ ],
259
+ name: "transferWithAllowanceTest",
260
+ outputs: [],
261
+ stateMutability: "nonpayable",
262
+ type: "function",
263
+ },
264
+ {
265
+ inputs: [
266
+ {
267
+ components: [
268
+ {
269
+ components: [
270
+ {
271
+ components: [
272
+ {
273
+ internalType: "ctUint64",
274
+ name: "high",
275
+ type: "uint256",
276
+ },
277
+ {
278
+ internalType: "ctUint64",
279
+ name: "low",
280
+ type: "uint256",
281
+ },
282
+ ],
283
+ internalType: "struct ctUint128",
284
+ name: "high",
285
+ type: "tuple",
286
+ },
287
+ {
288
+ components: [
289
+ {
290
+ internalType: "ctUint64",
291
+ name: "high",
292
+ type: "uint256",
293
+ },
294
+ {
295
+ internalType: "ctUint64",
296
+ name: "low",
297
+ type: "uint256",
298
+ },
299
+ ],
300
+ internalType: "struct ctUint128",
301
+ name: "low",
302
+ type: "tuple",
303
+ },
304
+ ],
305
+ internalType: "struct ctUint256",
306
+ name: "ciphertext",
307
+ type: "tuple",
308
+ },
309
+ {
310
+ internalType: "bytes[2][2]",
311
+ name: "signature",
312
+ type: "bytes[2][2]",
313
+ },
314
+ ],
315
+ internalType: "struct itUint256[]",
316
+ name: "a_",
317
+ type: "tuple[]",
318
+ },
319
+ ],
320
+ name: "validateCiphertextTest",
321
+ outputs: [],
322
+ stateMutability: "nonpayable",
323
+ type: "function",
324
+ },
325
+ ] as const;
326
+
327
+ const _bytecode =
328
+ "0x608060405234801561001057600080fd5b5061249e806100206000396000f3fe608060405234801561001057600080fd5b50600436106100df5760003560e01c80636643b11a1161008c578063c416176c11610066578063c416176c146101b4578063dabade84146101c7578063e2bd9c12146101da578063ede9a42c146101ed57600080fd5b80636643b11a1461016b578063859cc7d61461017e578063888ea2431461019157600080fd5b806335fc629a116100bd57806335fc629a146101325780634a2f9b35146101455780634b5edd171461015857600080fd5b80631944a9ec146100e45780631fcad1b31461010a5780633406fafe1461011f575b600080fd5b6100f76100f2366004611dea565b61020e565b6040519081526020015b60405180910390f35b61011d610118366004611e4f565b61022f565b005b61011d61012d366004611dea565b6102ae565b61011d610140366004611e4f565b610300565b61011d610153366004611e91565b610386565b6100f7610166366004611dea565b610542565b61011d610179366004611e4f565b610552565b6100f761018c366004611dea565b6105e2565b6101a461019f366004611dea565b6105f2565b6040519015158152602001610101565b61011d6101c2366004611f2b565b610626565b6100f76101d5366004611dea565b61082f565b61011d6101e8366004611e4f565b61083f565b6102006101fb366004611dea565b6108a5565b604051610101929190611fef565b6005818154811061021e57600080fd5b600091825260209091200154905081565b610238816108fd565b60005b818110156102a95761027a61027584848481811061025b5761025b612015565b90506020020160208101906102709190612044565b610955565b6109bc565b6000828154811061028d5761028d612015565b6000918252602090912001556102a281612096565b905061023b565b505050565b6102b7816108fd565b60005b818110156102fc576102cd610275610a13565b600082815481106102e0576102e0612015565b6000918252602090912001556102f581612096565b90506102ba565b5050565b610309816108fd565b60005b818110156102a957600061034b84848481811061032b5761032b612015565b905060200281019061033d91906120ce565b610346906121e3565b610a3f565b9050610356816109bc565b6000838154811061036957610369612015565b6000918252602090912001555061037f81612096565b905061030c565b848314801561039457508481145b6103ff576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601560248201527f496e707574206c656e677468206d69736d61746368000000000000000000000060448201526064015b60405180910390fd5b61040885610aa6565b61041185610b01565b61041a85610b5c565b6000805b8681101561053857600061044989898481811061043d5761043d612015565b90506020020135610bcf565b9050600061046288888581811061043d5761043d612015565b9050600061047b87878681811061043d5761043d612015565b9050610488838383610bf9565b96509093509150610498836109bc565b600285815481106104ab576104ab612015565b6000918252602090912001556104c0826109bc565b600385815481106104d3576104d3612015565b6000918252602090912001556104e885610c51565b600485815481106104fb576104fb612015565b90600052602060002090602091828204019190066101000a81548160ff0219169083151502179055505050508061053190612096565b905061041e565b5050505050505050565b6002818154811061021e57600080fd5b61055b81610ce2565b60005b818110156102a957600061057d84848481811061043d5761043d612015565b90506105898133610dee565b6001838154811061059c5761059c612015565b6000918252602091829020835180516004909302909101918255820151600182015591810151805160028401550151600390910155506105db81612096565b905061055e565b6000818154811061021e57600080fd5b6004818154811061060257600080fd5b9060005260206000209060209182820401919006915054906101000a900460ff1681565b868514801561063457508683145b801561063f57508681145b6106a5576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601560248201527f496e707574206c656e677468206d69736d61746368000000000000000000000060448201526064016103f6565b6106ae87610aa6565b6106b787610b01565b6106c087610b5c565b6106c987610e29565b6000805b888110156108235760006106ec8b8b8481811061043d5761043d612015565b905060006107058a8a8581811061043d5761043d612015565b9050600061071e89898681811061043d5761043d612015565b9050600061073788888781811061043d5761043d612015565b905061074584848484610e84565b90985091955093509050610758846109bc565b6002868154811061076b5761076b612015565b600091825260209091200155610780836109bc565b6003868154811061079357610793612015565b6000918252602090912001556107a886610c51565b600486815481106107bb576107bb612015565b90600052602060002090602091828204019190066101000a81548160ff0219169083151502179055506107ed816109bc565b6005868154811061080057610800612015565b9060005260206000200181905550505050508061081c90612096565b90506106cd565b50505050505050505050565b6003818154811061021e57600080fd5b610848816108fd565b60005b818110156102a957600061086a84848481811061043d5761043d612015565b9050610875816109bc565b6000838154811061088857610888612015565b6000918252602090912001555061089e81612096565b905061084b565b600181815481106108b557600080fd5b60009182526020918290206040805180820182526004909302909101805483526001810154838501528151808301909252600281015482526003015492810192909252915082565b610908600080611cad565b60005b818110156102fc57600080546001810182558180527f290decd9548b62a8d60345a988386fc84ba6bc95484008f6362f93160ef3e56301558061094d81612096565b91505061090b565b61095d611cce565b610965611cce565b600060808460ff1611610978578361097b565b60805b905061098681610f09565b6020830152608060ff85161161099d5760006109a8565b6109a8608085612393565b90506109b381610f09565b82525092915050565b6000806109cc8360000151610f7f565b905060006109dd8460200151610f7f565b9050806fffffffffffffffffffffffffffffffff166080836fffffffffffffffffffffffffffffffff16901b1792505050919050565b610a1b611cce565b610a23611cce565b610a2b610fd8565b8152610a35610fd8565b6020820152919050565b610a47611cce565b610a4f611cce565b610a57611d12565b83515181526020808501515190820152610a6f611d12565b845160209081015182528086015181015190820152610a8d82611012565b8352610a9881611012565b602084015250909392505050565b610ab260026000611cad565b60005b818110156102fc576002805460018101825560009182527f405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5ace015580610af981612096565b915050610ab5565b610b0d60036000611cad565b60005b818110156102fc576003805460018101825560009182527fc2575a0e9e593c00f959f8c92f12db2869c3395a3b0502d05e2516446f71f85b015580610b5481612096565b915050610b10565b610b6860046000611d3b565b60005b818110156102fc57600480546001810182556000919091527f8a35acfbc15ff81a39ae7d344fd709f28e8600b4aa8c65c6b64bfe7fe36bd19b60208204018054601f9092166101000a60ff0219909116905580610bc781612096565b915050610b6b565b610bd7611cce565b610bdf611cce565b82608081901c610bee81611092565b8352610a9882611092565b610c01611cce565b610c09611cce565b600080610c1687866110de565b90506000610c2e8289610c298b8a61112a565b61119b565b90506000610c418389610c298b8b6111de565b9199919850919650945050505050565b6040517f0cfed56100000000000000000000000000000000000000000000000000000000815260006004820181905260248201839052908190606490630cfed561906044016020604051808303816000875af1158015610cb5573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610cd991906123db565b15159392505050565b610cee60016000611d60565b60005b818110156102fc57604080516080810182526000818301818152606083018290528252825180840190935280835260208084018290528083019384526001805480820182559252915180517fb10e2d527612073b26eecdfd717e6a320cf44b4afac2b0732d9fcbe2b7fa0cf66004909302928301558201517fb10e2d527612073b26eecdfd717e6a320cf44b4afac2b0732d9fcbe2b7fa0cf7820155915180517fb10e2d527612073b26eecdfd717e6a320cf44b4afac2b0732d9fcbe2b7fa0cf884015501517fb10e2d527612073b26eecdfd717e6a320cf44b4afac2b0732d9fcbe2b7fa0cf99091015580610de681612096565b915050610cf1565b610df6611cce565b610dfe611cce565b8351610e0a908461123b565b81526020840151610e1b908461123b565b602082015290505b92915050565b610e3560056000611cad565b60005b818110156102fc576005805460018101825560009182527f036b6384b5eca791c62761152d0c79bb0604c104a5fb6f4eb0703f3154bb3db0015580610e7c81612096565b915050610e38565b610e8c611cce565b610e94611cce565b6000610e9e611cce565b6000610ebc610ead8a896110de565b610eb78989611280565b6112bf565b90506000610ecf828b610c298d8c61112a565b90506000610ee2838b610c298d8d6111de565b90506000610ef5848a610c298c8e61112a565b929c919b5092995090975095505050505050565b60408051808201909152600080825260208201526040805180820190915260008082526020820152600060408460ff1611610f445783610f47565b60405b9050610f528161137d565b6020830152604060ff851611610f69576000610f74565b610f74604085612393565b90506109b38161137d565b600080610f8f8360000151611425565b90506000610fa08460200151611425565b90508067ffffffffffffffff1660408367ffffffffffffffff166fffffffffffffffffffffffffffffffff16901b1792505050919050565b6040805180820190915260008082526020820152604080518082019091526000808252602082015261100861148c565b8152610a3561148c565b6040805180820182526000808252602080830182905283518085018552828152808201839052845180860186528381526060818401818152885151835288850180515190915287518089019098529487528684019081528751840151875293519092015190925291929091906110878261152f565b8352610a988161152f565b604080518082019091526000808252602082015260408051808201909152600080825260208201528267ffffffffffffffff604082901c166110d381611598565b8352610a9882611598565b6000806110f384600001518460000151611608565b90506111228161110b8660000151866000015161162d565b61111d8760200151876020015161166c565b6116ab565b949350505050565b611132611cce565b61113a611cce565b61114c8460200151846020015161176f565b81602001819052506000611168856020015185602001516117ef565b855185519192506111789161176f565b80835261119190829061118c81600161182e565b6118c5565b8252509392505050565b6111a3611cce565b6111ab611cce565b6111be85856020015185602001516118c5565b6020820152835183516111d29187916118c5565b815290505b9392505050565b6111e6611cce565b6111ee611cce565b61120084602001518460200151611914565b6020808301829052850151600091611217916117ef565b8551855191925061122791611914565b80835261119190829061118c816001611989565b60408051808201909152600080825260208201526040805180820190915260008082526020820152835161126f9084611a11565b81526020840151610e1b9084611a11565b60008061129584600001518460000151611608565b9050611122816112ad866000015186600001516117ef565b61111d87602001518760200151611ab3565b6000606463fe9c73d16112d3838080611af2565b6040517fffffffff0000000000000000000000000000000000000000000000000000000060e084901b1681527fffffff0000000000000000000000000000000000000000000000000000000000909116600482015260248101869052604481018590526064015b6020604051808303816000875af1158015611359573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111d791906123db565b6040517f072d17fc0000000000000000000000000000000000000000000000000000000081527f0400000000000000000000000000000000000000000000000000000000000000600482015260ff8216602482015260009060649063072d17fc906044015b6020604051808303816000875af1158015611401573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e2391906123db565b6040517f0cfed5610000000000000000000000000000000000000000000000000000000081527f0400000000000000000000000000000000000000000000000000000000000000600482015260248101829052600090606490630cfed561906044016113e2565b6040517f134eb8900000000000000000000000000000000000000000000000000000000081527f0400000000000000000000000000000000000000000000000000000000000000600482015260009060649063134eb890906024016020604051808303816000875af1158015611506573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061152a91906123db565b905090565b805160208201516040517fe4f36e1000000000000000000000000000000000000000000000000000000000815260009260649263e4f36e10926113e2927f04000000000000000000000000000000000000000000000000000000000000009290916004016123f4565b6040517fd9b60b600000000000000000000000000000000000000000000000000000000081527f0400000000000000000000000000000000000000000000000000000000000000600482015267ffffffffffffffff8216602482015260009060649063d9b60b60906044016113e2565b60006111d761161f84602001518460200151611b4f565b84518451610eb79190611b4f565b60008061164284600001518460000151611b4f565b90506111228161165a86600001518660000151611b64565b61111d87602001518760200151611b64565b60008061168184600001518460000151611b4f565b90506111228161169986600001518660000151611b64565b61111d87602001518760200151611b79565b600060646320cc408d6116bf838080611af2565b6040517fffffffff0000000000000000000000000000000000000000000000000000000060e084901b1681527fffffff000000000000000000000000000000000000000000000000000000000090911660048201526024810187905260448101869052606481018590526084016020604051808303816000875af115801561174b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061112291906123db565b604080518082019091526000808252602082015260408051808201909152600080825260208201526117a984602001518460200151611b8e565b81602001818152505060006117c685602001518560200151611ba3565b855185519192506117d691611b8e565b8083526111919082906117ea816001611bb8565b611c42565b60008061180484600001518460000151611b4f565b90506111228161181c86600001518660000151611ba3565b61111d87602001518760200151611ba3565b60408051808201909152600080825260208201526040805180820190915260008082526020820152600080604085901c67ffffffffffffffff16859150915061187b866020015182611bb8565b8360200181815250506000611894876020015183611c57565b90506118a4876000015184611bb8565b8085526118b89082906117ea816001611bb8565b8452509195945050505050565b604080518082019091526000808252602082015260408051808201909152600080825260208201526119008585602001518560200151611c42565b6020820152835183516111d2918791611c42565b6040805180820190915260008082526020820152604080518082019091526000808252602082015261194e84602001518460200151611c6d565b602080830182905285015160009161196591611ba3565b8551855191925061197591611c6d565b8083526111919082906117ea816001611c82565b60408051808201909152600080825260208201526040805180820190915260008082526020820152600080604085901c67ffffffffffffffff1685915091506119d6866020015182611c82565b60208085018290528701516000916119ed91611ba3565b90506119fd876000015184611c82565b8085526118b89082906117ea816001611c82565b60408051606083901b7fffffffffffffffffffffffffffffffffffffffff0000000000000000000000001660208201528151601481830301815260348201928390527f3c6f0e6800000000000000000000000000000000000000000000000000000000909252600091606491633c6f0e689161133a917f04000000000000000000000000000000000000000000000000000000000000009188916038016123f4565b600080611ac884600001518460000151611b4f565b905061112281611ae086600001518660000151611ba3565b61111d87602001518760200151611c98565b6000816002811115611b0657611b066123ac565b60ff166008846004811115611b1d57611b1d6123ac565b61ffff16901b61ffff166010866004811115611b3b57611b3b6123ac565b62ffffff16901b171760e81b949350505050565b60006064637c12a1eb6112d360048085611af2565b60006064636d82e45e6112d360048085611af2565b6000606463813b20746112d360048085611af2565b6000606463371d1bf26112d360048085611af2565b6000606463dd1486936112d360048085611af2565b6000606463371d1bf2611bce6004806002611af2565b6040517fffffffff0000000000000000000000000000000000000000000000000000000060e084901b1681527fffffff000000000000000000000000000000000000000000000000000000000090911660048201526024810186905267ffffffffffffffff8516604482015260640161133a565b600060646320cc408d6116bf60048085611af2565b6000606463dd148693611bce6004806002611af2565b60006064638c5d01506112d360048085611af2565b60006064638c5d0150611bce6004806002611af2565b6000606463145fca2c6112d360048085611af2565b5080546000825590600052602060002090810190611ccb9190611d81565b50565b60408051608081018252600091810182815260608201929092529081908152602001611d0d604051806040016040528060008152602001600081525090565b905290565b604080516080810182526000918101828152606082019290925290815260208101611d0d611d9a565b50805460008255601f016020900490600052602060002090810190611ccb9190611d81565b5080546000825560040290600052602060002090810190611ccb9190611dc1565b5b80821115611d965760008155600101611d82565b5090565b60405180604001604052806002905b6060815260200190600190039081611da95790505090565b5b80821115611d9657600080825560018201819055600282018190556003820155600401611dc2565b600060208284031215611dfc57600080fd5b5035919050565b60008083601f840112611e1557600080fd5b50813567ffffffffffffffff811115611e2d57600080fd5b6020830191508360208260051b8501011115611e4857600080fd5b9250929050565b60008060208385031215611e6257600080fd5b823567ffffffffffffffff811115611e7957600080fd5b611e8585828601611e03565b90969095509350505050565b60008060008060008060608789031215611eaa57600080fd5b863567ffffffffffffffff80821115611ec257600080fd5b611ece8a838b01611e03565b90985096506020890135915080821115611ee757600080fd5b611ef38a838b01611e03565b90965094506040890135915080821115611f0c57600080fd5b50611f1989828a01611e03565b979a9699509497509295939492505050565b6000806000806000806000806080898b031215611f4757600080fd5b883567ffffffffffffffff80821115611f5f57600080fd5b611f6b8c838d01611e03565b909a50985060208b0135915080821115611f8457600080fd5b611f908c838d01611e03565b909850965060408b0135915080821115611fa957600080fd5b611fb58c838d01611e03565b909650945060608b0135915080821115611fce57600080fd5b50611fdb8b828c01611e03565b999c989b5096995094979396929594505050565b8251815260208084015181830152825160408301528201516060820152608081016111d7565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60006020828403121561205657600080fd5b813560ff811681146111d757600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82036120c7576120c7612067565b5060010190565b600082357fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff6183360301811261210257600080fd5b9190910192915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6040805190810167ffffffffffffffff8111828210171561215e5761215e61210c565b60405290565b604051601f82017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016810167ffffffffffffffff811182821017156121ab576121ab61210c565b604052919050565b6000604082840312156121c557600080fd5b6121cd61213b565b9050813581526020820135602082015292915050565b600081360360a08112156121f657600080fd5b6121fe61213b565b608082121561220c57600080fd5b61221461213b565b915061222036856121b3565b82526040612230368287016121b3565b602081818601528484526080870135945067ffffffffffffffff91508185111561225957600080fd5b93860193601f368187011261226d57600080fd5b61227561213b565b808588013681111561228657600080fd5b885b8181101561237e578035878111156122a05760008081fd5b8a0136868201126122b15760008081fd5b6122b961213b565b808a8301368111156122cb5760008081fd5b835b8181101561236d5780358c8111156122e55760008081fd5b8501368b8201126122f65760008081fd5b80358d8111156123085761230861210c565b6123378d7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe08e84011601612164565b818152368e83850101111561234c5760008081fd5b818e84018f83013760009181018e0191909152855250928a01928a016122cd565b505086525050928501928501612288565b50509286019290925250929695505050505050565b60ff8281168282160390811115610e2357610e23612067565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b6000602082840312156123ed57600080fd5b5051919050565b7fff000000000000000000000000000000000000000000000000000000000000008416815260006020848184015260606040840152835180606085015260005b8181101561245057858101830151858201608001528201612434565b5060006080828601015260807fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f8301168501019250505094935050505056fea164736f6c6343000813000a";
329
+
330
+ type Miscellaneous256BitTestsContractConstructorParams =
331
+ | [signer?: Signer]
332
+ | ConstructorParameters<typeof ContractFactory>;
333
+
334
+ const isSuperArgs = (
335
+ xs: Miscellaneous256BitTestsContractConstructorParams
336
+ ): xs is ConstructorParameters<typeof ContractFactory> => xs.length > 1;
337
+
338
+ export class Miscellaneous256BitTestsContract__factory extends ContractFactory {
339
+ constructor(...args: Miscellaneous256BitTestsContractConstructorParams) {
340
+ if (isSuperArgs(args)) {
341
+ super(...args);
342
+ } else {
343
+ super(_abi, _bytecode, args[0]);
344
+ }
345
+ }
346
+
347
+ override getDeployTransaction(
348
+ overrides?: NonPayableOverrides & { from?: string }
349
+ ): Promise<ContractDeployTransaction> {
350
+ return super.getDeployTransaction(overrides || {});
351
+ }
352
+ override deploy(overrides?: NonPayableOverrides & { from?: string }) {
353
+ return super.deploy(overrides || {}) as Promise<
354
+ Miscellaneous256BitTestsContract & {
355
+ deploymentTransaction(): ContractTransactionResponse;
356
+ }
357
+ >;
358
+ }
359
+ override connect(
360
+ runner: ContractRunner | null
361
+ ): Miscellaneous256BitTestsContract__factory {
362
+ return super.connect(runner) as Miscellaneous256BitTestsContract__factory;
363
+ }
364
+
365
+ static readonly bytecode = _bytecode;
366
+ static readonly abi = _abi;
367
+ static createInterface(): Miscellaneous256BitTestsContractInterface {
368
+ return new Interface(_abi) as Miscellaneous256BitTestsContractInterface;
369
+ }
370
+ static connect(
371
+ address: string,
372
+ runner?: ContractRunner | null
373
+ ): Miscellaneous256BitTestsContract {
374
+ return new Contract(
375
+ address,
376
+ _abi,
377
+ runner
378
+ ) as unknown as Miscellaneous256BitTestsContract;
379
+ }
380
+ }
@@ -2,12 +2,20 @@
2
2
  /* tslint:disable */
3
3
  /* eslint-disable */
4
4
  export * as checkedArithmeticWIthOverflowBitTestsContractSol from "./CheckedArithmeticWIthOverflowBitTestsContract.sol";
5
+ export { Arithmetic128BitTestsContract__factory } from "./Arithmetic128BitTestsContract__factory";
6
+ export { Arithmetic256BitTestsContract__factory } from "./Arithmetic256BitTestsContract__factory";
5
7
  export { ArithmeticTestsContract__factory } from "./ArithmeticTestsContract__factory";
8
+ export { Bitwise128BitTestsContract__factory } from "./Bitwise128BitTestsContract__factory";
9
+ export { Bitwise256BitTestsContract__factory } from "./Bitwise256BitTestsContract__factory";
6
10
  export { BitwiseTestsContract__factory } from "./BitwiseTestsContract__factory";
11
+ export { Comparison128BitTestsContract__factory } from "./Comparison128BitTestsContract__factory";
7
12
  export { Comparison1TestsContract__factory } from "./Comparison1TestsContract__factory";
13
+ export { Comparison256BitTestsContract__factory } from "./Comparison256BitTestsContract__factory";
8
14
  export { Comparison2TestsContract__factory } from "./Comparison2TestsContract__factory";
9
15
  export { MinMaxTestsContract__factory } from "./MinMaxTestsContract__factory";
16
+ export { Miscellaneous128BitTestsContract__factory } from "./Miscellaneous128BitTestsContract__factory";
10
17
  export { Miscellaneous1TestsContract__factory } from "./Miscellaneous1TestsContract__factory";
18
+ export { Miscellaneous256BitTestsContract__factory } from "./Miscellaneous256BitTestsContract__factory";
11
19
  export { MiscellaneousTestsContract__factory } from "./MiscellaneousTestsContract__factory";
12
20
  export { OffboardToUserKeyTestContract__factory } from "./OffboardToUserKeyTestContract__factory";
13
21
  export { ShiftTestsContract__factory } from "./ShiftTestsContract__factory";