@coti-io/coti-contracts 1.1.0 → 1.3.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 (433) hide show
  1. package/.github/workflows/npm-publish.yml +19 -15
  2. package/README.md +3 -1
  3. package/contracts/disperse/coinByRatio/FixedRatioCoinDisperser.sol +452 -0
  4. package/contracts/disperse/coinByRatio/FixedRatioCoinDisperserLeftoverS1.sol +490 -0
  5. package/contracts/disperse/coinByRatio/FixedRatioCoinDisperserUnlimitedWindow.sol +432 -0
  6. package/contracts/disperse/disperseToken/MintDisperser.sol +120 -0
  7. package/contracts/disperse/disperseToken/TokenDisperser.sol +139 -0
  8. package/contracts/messaging/PrivateMessaging.sol +456 -0
  9. package/contracts/mocks/messaging/PrivateMessagingHarness.sol +54 -0
  10. package/contracts/mocks/oracle/CotiPriceConsumerMock.sol +31 -0
  11. package/contracts/mocks/token/ERC20DecimalsMock.sol +21 -0
  12. package/contracts/mocks/token/ERC20Mock.sol +19 -0
  13. package/contracts/mocks/token/PrivateERC20/EncryptedTokenReceiverMock.sol +18 -0
  14. package/contracts/mocks/token/PrivateERC20/PrivacyBridgeERC20Mock.sol +18 -0
  15. package/contracts/mocks/token/PrivateERC20/PrivateERC20AuditorSupplyMock.sol +44 -0
  16. package/contracts/mocks/token/PrivateERC20/PrivateERC20CappedMock.sol +23 -0
  17. package/contracts/mocks/token/PrivateERC20/PrivateERC20GtCallerMock.sol +29 -0
  18. package/contracts/mocks/token/PrivateERC20/PrivateERC20Mock.sol +9 -4
  19. package/contracts/mocks/token/PrivateERC20/PrivateERC20ReentrantReceiverMock.sol +39 -0
  20. package/contracts/mocks/token/PrivateERC20/PublicReentrantTokenReceiverMock.sol +29 -0
  21. package/contracts/mocks/token/PrivateERC20/PublicTokenReceiverBoolMock.sol +18 -0
  22. package/contracts/mocks/token/PrivateERC20/PublicTokenReceiverMock.sol +12 -0
  23. package/contracts/mocks/utils/mpc/Arithmetic128TestsContract.sol +123 -0
  24. package/contracts/mocks/utils/mpc/Arithmetic256TestsContract.sol +122 -0
  25. package/contracts/mocks/utils/mpc/Bitwise128TestsContract.sol +65 -0
  26. package/contracts/mocks/utils/mpc/Bitwise256TestsContract.sol +65 -0
  27. package/contracts/mocks/utils/mpc/CheckedArithmetic128WithOverflowBitTestsContract.sol +64 -0
  28. package/contracts/mocks/utils/mpc/CheckedArithmetic256WithOverflowBitTestsContract.sol +64 -0
  29. package/contracts/mocks/utils/mpc/Comparison128TestsContract.sol +98 -0
  30. package/contracts/mocks/utils/mpc/Comparison256TestsContract.sol +98 -0
  31. package/contracts/mocks/utils/mpc/MinMax128TestsContract.sol +44 -0
  32. package/contracts/mocks/utils/mpc/MinMax256TestsContract.sol +44 -0
  33. package/contracts/mocks/utils/mpc/MinimalImplementation.sol +55 -0
  34. package/contracts/mocks/utils/mpc/MinimalProxy.sol +27 -0
  35. package/contracts/mocks/utils/mpc/MpcOperations128TestContract.sol +267 -0
  36. package/contracts/mocks/utils/mpc/MpcOperationsTestContract.sol +334 -0
  37. package/contracts/mocks/utils/mpc/Mux128TestsContract.sol +24 -0
  38. package/contracts/mocks/utils/mpc/Mux256TestsContract.sol +24 -0
  39. package/contracts/mocks/utils/mpc/OnBoard128TestsContract.sol +93 -0
  40. package/contracts/mocks/utils/mpc/OnBoard256TestsContract.sol +116 -0
  41. package/contracts/mocks/utils/mpc/PrivacyImplementationV1.sol +157 -0
  42. package/contracts/mocks/utils/mpc/PrivacyImplementationV2.sol +133 -0
  43. package/contracts/mocks/utils/mpc/PrivacyProxy.sol +137 -0
  44. package/contracts/mocks/utils/mpc/Random128TestsContract.sol +32 -0
  45. package/contracts/mocks/utils/mpc/Random256TestsContract.sol +32 -0
  46. package/contracts/mocks/utils/mpc/Shift128TestsContract.sol +36 -0
  47. package/contracts/mocks/utils/mpc/Shift256TestsContract.sol +36 -0
  48. package/contracts/mocks/utils/mpc/Transfer128TestsContract.sol +29 -0
  49. package/contracts/mocks/utils/mpc/Transfer256TestsContract.sol +29 -0
  50. package/contracts/mocks/utils/mpc/TransferWithAllowance128TestsContract.sol +32 -0
  51. package/contracts/mocks/utils/mpc/TransferWithAllowance256TestsContract.sol +32 -0
  52. package/contracts/mocks/utils/mpc/ValidateCiphertext128TestsContract.sol +59 -0
  53. package/contracts/mocks/utils/mpc/ValidateCiphertext256TestsContract.sol +63 -0
  54. package/contracts/mocks/utils/mpc/ValidateCiphertextTestsContract.sol +99 -0
  55. package/contracts/mocks/wallet/PrivateERC20Wallet/PrivateERC20WalletMock.sol +7 -6
  56. package/contracts/node/CotiNodeRewards.sol +199 -0
  57. package/contracts/node/SoulboundNodeNFT.sol +519 -0
  58. package/contracts/oracle/CotiPriceConsumer.sol +103 -0
  59. package/contracts/oracle/ICotiPriceConsumer.sol +15 -0
  60. package/contracts/oracle/IStdReference.sol +26 -0
  61. package/contracts/privacyBridge/PrivacyBridge.sol +600 -0
  62. package/contracts/privacyBridge/PrivacyBridgeCotiNative.sol +316 -0
  63. package/contracts/privacyBridge/PrivacyBridgeERC20.sol +333 -0
  64. package/contracts/privacyBridge/PrivacyBridgeUSDCe.sol +22 -0
  65. package/contracts/privacyBridge/PrivacyBridgeUSDT.sol +23 -0
  66. package/contracts/privacyBridge/PrivacyBridgeWADA.sol +23 -0
  67. package/contracts/privacyBridge/PrivacyBridgeWBTC.sol +23 -0
  68. package/contracts/privacyBridge/PrivacyBridgeWETH.sol +23 -0
  69. package/contracts/privacyBridge/PrivacyBridgegCoti.sol +23 -0
  70. package/contracts/token/PrivateERC20/IPrivateERC20.sol +273 -40
  71. package/contracts/token/PrivateERC20/ITokenReceiver.sol +17 -0
  72. package/contracts/token/PrivateERC20/ITokenReceiverEncrypted.sol +20 -0
  73. package/contracts/token/PrivateERC20/PrivateERC20.sol +861 -152
  74. package/contracts/token/PrivateERC20/tokens/PrivateBridgedUSDC.sol +17 -0
  75. package/contracts/token/PrivateERC20/tokens/PrivateCOTI.sol +13 -0
  76. package/contracts/token/PrivateERC20/tokens/PrivateCOTITreasuryGovernanceToken.sol +17 -0
  77. package/contracts/token/PrivateERC20/tokens/PrivateTetherUSD.sol +17 -0
  78. package/contracts/token/PrivateERC20/tokens/PrivateWrappedADA.sol +17 -0
  79. package/contracts/token/PrivateERC20/tokens/PrivateWrappedBTC.sol +17 -0
  80. package/contracts/token/PrivateERC20/tokens/PrivateWrappedEther.sol +13 -0
  81. package/contracts/utils/mpc/MpcCore.sol +10780 -4962
  82. package/contracts/utils/mpc/MpcInterface.sol +7 -2
  83. package/hardhat/gasPriceBump.ts +60 -0
  84. package/hardhat.config.ts +63 -12
  85. package/package.json +22 -4
  86. package/scripts/add-bridge-operators.cjs +87 -0
  87. package/scripts/deploy-coti-price-consumer-mainnet.cjs +49 -0
  88. package/scripts/deployCotiNodeRewards.ts +51 -0
  89. package/scripts/deploySoulboundNodeNFT.ts +57 -0
  90. package/scripts/redeploy-private-and-bridges.cjs +201 -0
  91. package/scripts/set-bridge-limits-mainnet.cjs +177 -0
  92. package/scripts/verify-mainnet-private-bridges.cjs +289 -0
  93. package/sonar-project.properties +11 -0
  94. package/test/messaging/PrivateMessaging.test.ts +158 -0
  95. package/test/privacyBridge/UnifiedPrivacyBridges.test.cjs +1663 -0
  96. package/test/token/PrivateERC20/PrivacyBridge.fees.test.ts +250 -0
  97. package/test/token/PrivateERC20/PrivateERC20.test.ts +1109 -268
  98. package/test/utils/mpc/Bitwise128.test.ts +92 -0
  99. package/test/utils/mpc/Bitwise256.test.ts +101 -0
  100. package/test/utils/mpc/BuildInputText128.test.ts +398 -0
  101. package/test/utils/mpc/CheckedArithmetic128.test.ts +45 -0
  102. package/test/utils/mpc/CheckedArithmetic256.test.ts +45 -0
  103. package/test/utils/mpc/Comparison128.test.ts +48 -0
  104. package/test/utils/mpc/Comparison256.test.ts +48 -0
  105. package/test/utils/mpc/InvalidCiphertext.test.ts +179 -0
  106. package/test/utils/mpc/InvalidCiphertext128.test.ts +179 -0
  107. package/test/utils/mpc/InvalidCiphertext256.test.ts +201 -0
  108. package/test/utils/mpc/InvalidTransfer128.test.ts +166 -0
  109. package/test/utils/mpc/InvalidTransfer256.test.ts +158 -0
  110. package/test/utils/mpc/MinMax128.test.ts +44 -0
  111. package/test/utils/mpc/MinMax256.test.ts +44 -0
  112. package/test/utils/mpc/MinimalProxyDemo.test.ts +280 -0
  113. package/test/utils/mpc/MpcOperations.test.ts +589 -0
  114. package/test/utils/mpc/MpcOperations128.test.ts +632 -0
  115. package/test/utils/mpc/Mux128.test.ts +41 -0
  116. package/test/utils/mpc/Mux256.test.ts +41 -0
  117. package/test/utils/mpc/NegativeCases.test.ts +478 -0
  118. package/test/utils/mpc/NegativeCases128.test.ts +237 -0
  119. package/test/utils/mpc/NegativeCases256.test.ts +236 -0
  120. package/test/utils/mpc/OnBoard128.test.ts +90 -0
  121. package/test/utils/mpc/OnBoard256.test.ts +114 -0
  122. package/test/utils/mpc/Precompile128.test.ts +51 -0
  123. package/test/utils/mpc/Precompile256.test.ts +115 -0
  124. package/test/utils/mpc/ProxyValidation.test.ts +199 -0
  125. package/test/utils/mpc/Random128.test.ts +47 -0
  126. package/test/utils/mpc/Random256.test.ts +47 -0
  127. package/test/utils/mpc/Shift128.test.ts +41 -0
  128. package/test/utils/mpc/Shift256.test.ts +41 -0
  129. package/test/utils/mpc/Transfer128.test.ts +46 -0
  130. package/test/utils/mpc/Transfer256.test.ts +46 -0
  131. package/test/utils/mpc/TransferWithAllowance128.test.ts +48 -0
  132. package/test/utils/mpc/TransferWithAllowance256.test.ts +48 -0
  133. package/test/utils/mpc/UpgradeablePrivacyProxy.test.ts +307 -0
  134. package/test/utils/mpc/ValidateCiphertext.test.ts +221 -0
  135. package/test/utils/mpc/ValidateCiphertext256.test.ts +161 -0
  136. package/test/utils/mpc/ValidateCiphertext256Decryption.test.ts +383 -0
  137. package/test/utils/mpc/WalletEncryptionFailures.test.ts +494 -0
  138. package/test/utils/privateErc20Helpers.ts +97 -0
  139. package/typechain-types/@openzeppelin/contracts/access/AccessControl.ts +324 -0
  140. package/typechain-types/@openzeppelin/contracts/access/AccessControlEnumerable.ts +361 -0
  141. package/typechain-types/@openzeppelin/contracts/access/IAccessControl.ts +292 -0
  142. package/typechain-types/@openzeppelin/contracts/access/IAccessControlEnumerable.ts +329 -0
  143. package/typechain-types/@openzeppelin/contracts/access/Ownable.ts +153 -0
  144. package/typechain-types/@openzeppelin/contracts/access/index.ts +8 -0
  145. package/typechain-types/@openzeppelin/contracts/index.ts +4 -0
  146. package/typechain-types/@openzeppelin/contracts/security/Pausable.ts +150 -0
  147. package/typechain-types/@openzeppelin/contracts/security/index.ts +4 -0
  148. package/typechain-types/@openzeppelin/contracts/token/ERC20/ERC20.ts +330 -0
  149. package/typechain-types/@openzeppelin/contracts/token/ERC20/IERC20.ts +262 -0
  150. package/typechain-types/@openzeppelin/contracts/token/ERC20/extensions/IERC20Metadata.ts +286 -0
  151. package/typechain-types/@openzeppelin/contracts/token/ERC20/extensions/IERC20Permit.ts +143 -0
  152. package/typechain-types/@openzeppelin/contracts/token/ERC20/extensions/index.ts +5 -0
  153. package/typechain-types/@openzeppelin/contracts/token/ERC20/index.ts +7 -0
  154. package/typechain-types/@openzeppelin/contracts/token/ERC721/ERC721.ts +420 -0
  155. package/typechain-types/@openzeppelin/contracts/token/ERC721/extensions/IERC721Metadata.ts +420 -0
  156. package/typechain-types/@openzeppelin/contracts/token/ERC721/extensions/index.ts +4 -0
  157. package/typechain-types/@openzeppelin/contracts/token/ERC721/index.ts +3 -0
  158. package/typechain-types/@openzeppelin/contracts/token/index.ts +2 -0
  159. package/typechain-types/contracts/disperse/coinByRatio/FixedRatioCoinDisperser.ts +679 -0
  160. package/typechain-types/contracts/disperse/coinByRatio/FixedRatioCoinDisperserLeftoverS1.ts +735 -0
  161. package/typechain-types/contracts/disperse/coinByRatio/FixedRatioCoinDisperserUnlimitedWindow.ts +734 -0
  162. package/typechain-types/contracts/disperse/coinByRatio/index.ts +6 -0
  163. package/typechain-types/contracts/disperse/disperseToken/MintDisperser.sol/IMintableERC20.ts +97 -0
  164. package/typechain-types/contracts/disperse/disperseToken/MintDisperser.sol/IOwnable.ts +95 -0
  165. package/typechain-types/contracts/disperse/disperseToken/MintDisperser.sol/MintDisperser.ts +228 -0
  166. package/typechain-types/contracts/disperse/disperseToken/MintDisperser.sol/index.ts +6 -0
  167. package/typechain-types/contracts/disperse/disperseToken/TokenDisperser.ts +191 -0
  168. package/typechain-types/contracts/disperse/disperseToken/index.ts +6 -0
  169. package/typechain-types/contracts/disperse/index.ts +7 -0
  170. package/typechain-types/contracts/index.ts +10 -0
  171. package/typechain-types/contracts/messaging/PrivateMessaging.ts +871 -0
  172. package/typechain-types/contracts/messaging/index.ts +4 -0
  173. package/typechain-types/contracts/mocks/index.ts +4 -0
  174. package/typechain-types/contracts/mocks/messaging/PrivateMessagingHarness.ts +951 -0
  175. package/typechain-types/contracts/mocks/messaging/index.ts +4 -0
  176. package/typechain-types/contracts/mocks/oracle/CotiPriceConsumerMock.ts +163 -0
  177. package/typechain-types/contracts/mocks/oracle/index.ts +4 -0
  178. package/typechain-types/contracts/mocks/token/ERC20DecimalsMock.ts +349 -0
  179. package/typechain-types/contracts/mocks/token/ERC20Mock.ts +368 -0
  180. package/typechain-types/contracts/mocks/token/PrivateERC20/EncryptedTokenReceiverMock.ts +108 -0
  181. package/typechain-types/contracts/mocks/token/PrivateERC20/PrivacyBridgeERC20Mock.ts +1892 -0
  182. package/typechain-types/contracts/mocks/token/PrivateERC20/PrivateERC20AuditorSupplyMock.ts +1296 -0
  183. package/typechain-types/contracts/mocks/token/PrivateERC20/PrivateERC20CappedMock.ts +1270 -0
  184. package/typechain-types/contracts/mocks/token/PrivateERC20/PrivateERC20GtCallerMock.ts +166 -0
  185. package/typechain-types/contracts/mocks/token/PrivateERC20/PrivateERC20Mock.ts +827 -78
  186. package/typechain-types/contracts/mocks/token/PrivateERC20/PrivateERC20ReentrantReceiverMock.sol/IPrivateERC20TransferAndCallEncrypted.ts +102 -0
  187. package/typechain-types/contracts/mocks/token/PrivateERC20/PrivateERC20ReentrantReceiverMock.sol/PrivateERC20ReentrantReceiverMock.ts +154 -0
  188. package/typechain-types/contracts/mocks/token/PrivateERC20/PrivateERC20ReentrantReceiverMock.sol/index.ts +5 -0
  189. package/typechain-types/contracts/mocks/token/PrivateERC20/PublicReentrantTokenReceiverMock.ts +155 -0
  190. package/typechain-types/contracts/mocks/token/PrivateERC20/PublicTokenReceiverBoolMock.ts +107 -0
  191. package/typechain-types/contracts/mocks/token/PrivateERC20/PublicTokenReceiverMock.ts +100 -0
  192. package/typechain-types/contracts/mocks/token/PrivateERC20/index.ts +10 -0
  193. package/typechain-types/contracts/mocks/token/index.ts +2 -0
  194. package/typechain-types/contracts/mocks/utils/mpc/{Arithmetic128BitTestsContract.ts → Arithmetic128TestsContract.ts} +96 -126
  195. package/typechain-types/contracts/mocks/utils/mpc/{Arithmetic256BitTestsContract.ts → Arithmetic256TestsContract.ts} +97 -133
  196. package/typechain-types/contracts/mocks/utils/mpc/{Bitwise128BitTestsContract.ts → Bitwise128TestsContract.ts} +52 -59
  197. package/typechain-types/contracts/mocks/utils/mpc/{Bitwise256BitTestsContract.ts → Bitwise256TestsContract.ts} +52 -59
  198. package/typechain-types/contracts/mocks/utils/mpc/CheckedArithmetic128WithOverflowBitTestsContract.ts +206 -0
  199. package/typechain-types/contracts/mocks/utils/mpc/CheckedArithmetic256WithOverflowBitTestsContract.ts +206 -0
  200. package/typechain-types/contracts/mocks/utils/mpc/{Comparison128BitTestsContract.ts → Comparison128TestsContract.ts} +115 -97
  201. package/typechain-types/contracts/mocks/utils/mpc/{Comparison256BitTestsContract.ts → Comparison256TestsContract.ts} +115 -97
  202. package/typechain-types/contracts/mocks/utils/mpc/MinMax128TestsContract.ts +142 -0
  203. package/typechain-types/contracts/mocks/utils/mpc/MinMax256TestsContract.ts +142 -0
  204. package/typechain-types/contracts/mocks/utils/mpc/MinimalImplementation.ts +259 -0
  205. package/typechain-types/contracts/mocks/utils/mpc/MinimalProxy.ts +90 -0
  206. package/typechain-types/contracts/mocks/utils/mpc/MpcOperations128TestContract.ts +388 -0
  207. package/typechain-types/contracts/mocks/utils/mpc/MpcOperationsTestContract.ts +455 -0
  208. package/typechain-types/contracts/mocks/utils/mpc/Mux128TestsContract.ts +109 -0
  209. package/typechain-types/contracts/mocks/utils/mpc/Mux256TestsContract.ts +109 -0
  210. package/typechain-types/contracts/mocks/utils/mpc/OnBoard128TestsContract.ts +166 -0
  211. package/typechain-types/contracts/mocks/utils/mpc/OnBoard256TestsContract.ts +194 -0
  212. package/typechain-types/contracts/mocks/utils/mpc/PrivacyImplementationV1.ts +385 -0
  213. package/typechain-types/contracts/mocks/utils/mpc/PrivacyImplementationV2.ts +441 -0
  214. package/typechain-types/contracts/mocks/utils/mpc/PrivacyProxy.ts +201 -0
  215. package/typechain-types/contracts/mocks/utils/mpc/Random128TestsContract.ts +131 -0
  216. package/typechain-types/contracts/mocks/utils/mpc/Random256TestsContract.ts +131 -0
  217. package/typechain-types/contracts/mocks/utils/mpc/Shift128TestsContract.ts +142 -0
  218. package/typechain-types/contracts/mocks/utils/mpc/Shift256TestsContract.ts +142 -0
  219. package/typechain-types/contracts/mocks/utils/mpc/Transfer128TestsContract.ts +109 -0
  220. package/typechain-types/contracts/mocks/utils/mpc/Transfer256TestsContract.ts +109 -0
  221. package/typechain-types/contracts/mocks/utils/mpc/TransferWithAllowance128TestsContract.ts +128 -0
  222. package/typechain-types/contracts/mocks/utils/mpc/TransferWithAllowance256TestsContract.ts +128 -0
  223. package/typechain-types/contracts/mocks/utils/mpc/ValidateCiphertext128TestsContract.ts +198 -0
  224. package/typechain-types/contracts/mocks/utils/mpc/ValidateCiphertext256TestsContract.ts +182 -0
  225. package/typechain-types/contracts/mocks/utils/mpc/ValidateCiphertextTestsContract.ts +257 -0
  226. package/typechain-types/contracts/mocks/utils/mpc/index.ts +32 -8
  227. package/typechain-types/contracts/mocks/wallet/PrivateERC20Wallet/PrivateERC20WalletMock.ts +6 -6
  228. package/typechain-types/contracts/node/CotiNodeRewards.ts +566 -0
  229. package/typechain-types/contracts/node/SoulboundNodeNFT.sol/IERC5192.ts +123 -0
  230. package/typechain-types/contracts/node/SoulboundNodeNFT.sol/SoulboundNodeNFT.ts +975 -0
  231. package/typechain-types/contracts/node/SoulboundNodeNFT.sol/index.ts +5 -0
  232. package/typechain-types/contracts/node/index.ts +6 -0
  233. package/typechain-types/contracts/oracle/CotiPriceConsumer.ts +256 -0
  234. package/typechain-types/contracts/oracle/ICotiPriceConsumer.ts +119 -0
  235. package/typechain-types/contracts/oracle/IStdReference.ts +136 -0
  236. package/typechain-types/contracts/oracle/index.ts +6 -0
  237. package/typechain-types/contracts/privacyBridge/PrivacyBridge.ts +1628 -0
  238. package/typechain-types/contracts/privacyBridge/PrivacyBridgeCotiNative.ts +1870 -0
  239. package/typechain-types/contracts/privacyBridge/PrivacyBridgeERC20.sol/IHasDecimals.ts +84 -0
  240. package/typechain-types/contracts/privacyBridge/PrivacyBridgeERC20.sol/PrivacyBridgeERC20.ts +1892 -0
  241. package/typechain-types/contracts/privacyBridge/PrivacyBridgeERC20.sol/index.ts +5 -0
  242. package/typechain-types/contracts/privacyBridge/PrivacyBridgeUSDCe.ts +1892 -0
  243. package/typechain-types/contracts/privacyBridge/PrivacyBridgeUSDT.ts +1892 -0
  244. package/typechain-types/contracts/privacyBridge/PrivacyBridgeWADA.ts +1892 -0
  245. package/typechain-types/contracts/privacyBridge/PrivacyBridgeWBTC.ts +1892 -0
  246. package/typechain-types/contracts/privacyBridge/PrivacyBridgeWETH.ts +1892 -0
  247. package/typechain-types/contracts/privacyBridge/PrivacyBridgegCoti.ts +1892 -0
  248. package/typechain-types/contracts/privacyBridge/index.ts +13 -0
  249. package/typechain-types/contracts/token/PrivateERC20/IPrivateERC20.ts +507 -70
  250. package/typechain-types/contracts/token/PrivateERC20/ITokenReceiver.ts +100 -0
  251. package/typechain-types/contracts/token/PrivateERC20/ITokenReceiverEncrypted.ts +99 -0
  252. package/typechain-types/contracts/token/PrivateERC20/PrivateERC20.ts +833 -68
  253. package/typechain-types/contracts/token/PrivateERC20/index.ts +4 -0
  254. package/typechain-types/contracts/token/PrivateERC20/tokens/PrivateBridgedUSDC.ts +1270 -0
  255. package/typechain-types/contracts/token/PrivateERC20/tokens/PrivateCOTI.ts +1270 -0
  256. package/typechain-types/contracts/token/PrivateERC20/tokens/PrivateCOTITreasuryGovernanceToken.ts +1270 -0
  257. package/typechain-types/contracts/token/PrivateERC20/tokens/PrivateTetherUSD.ts +1270 -0
  258. package/typechain-types/contracts/token/PrivateERC20/tokens/PrivateWrappedADA.ts +1270 -0
  259. package/typechain-types/contracts/token/PrivateERC20/tokens/PrivateWrappedBTC.ts +1270 -0
  260. package/typechain-types/contracts/token/PrivateERC20/tokens/PrivateWrappedEther.ts +1270 -0
  261. package/typechain-types/contracts/token/PrivateERC20/tokens/index.ts +10 -0
  262. package/typechain-types/contracts/utils/mpc/MpcInterface.sol/ExtendedOperations.ts +111 -10
  263. package/typechain-types/factories/@openzeppelin/contracts/access/AccessControlEnumerable__factory.ts +276 -0
  264. package/typechain-types/factories/@openzeppelin/contracts/access/AccessControl__factory.ts +229 -0
  265. package/typechain-types/factories/@openzeppelin/contracts/access/IAccessControlEnumerable__factory.ts +244 -0
  266. package/typechain-types/factories/@openzeppelin/contracts/access/IAccessControl__factory.ts +197 -0
  267. package/typechain-types/factories/@openzeppelin/contracts/access/Ownable__factory.ts +74 -0
  268. package/typechain-types/factories/@openzeppelin/contracts/access/index.ts +8 -0
  269. package/typechain-types/factories/@openzeppelin/contracts/index.ts +2 -0
  270. package/typechain-types/factories/@openzeppelin/contracts/security/Pausable__factory.ts +61 -0
  271. package/typechain-types/factories/@openzeppelin/contracts/security/index.ts +4 -0
  272. package/typechain-types/factories/@openzeppelin/contracts/token/ERC20/ERC20__factory.ts +356 -0
  273. package/typechain-types/factories/@openzeppelin/contracts/token/ERC20/IERC20__factory.ts +205 -0
  274. package/typechain-types/factories/@openzeppelin/contracts/token/ERC20/extensions/IERC20Metadata__factory.ts +247 -0
  275. package/typechain-types/factories/@openzeppelin/contracts/token/ERC20/extensions/IERC20Permit__factory.ts +100 -0
  276. package/typechain-types/factories/@openzeppelin/contracts/token/ERC20/extensions/index.ts +5 -0
  277. package/typechain-types/factories/@openzeppelin/contracts/token/ERC20/index.ts +6 -0
  278. package/typechain-types/factories/@openzeppelin/contracts/token/ERC721/ERC721__factory.ts +416 -0
  279. package/typechain-types/factories/@openzeppelin/contracts/token/ERC721/extensions/IERC721Metadata__factory.ts +355 -0
  280. package/typechain-types/factories/@openzeppelin/contracts/token/ERC721/extensions/index.ts +4 -0
  281. package/typechain-types/factories/@openzeppelin/contracts/token/ERC721/index.ts +2 -0
  282. package/typechain-types/factories/@openzeppelin/contracts/token/index.ts +1 -0
  283. package/typechain-types/factories/contracts/disperse/coinByRatio/FixedRatioCoinDisperserLeftoverS1__factory.ts +791 -0
  284. package/typechain-types/factories/contracts/disperse/coinByRatio/FixedRatioCoinDisperserUnlimitedWindow__factory.ts +711 -0
  285. package/typechain-types/factories/contracts/disperse/coinByRatio/FixedRatioCoinDisperser__factory.ts +759 -0
  286. package/typechain-types/factories/contracts/disperse/coinByRatio/index.ts +6 -0
  287. package/typechain-types/factories/contracts/disperse/disperseToken/MintDisperser.sol/IMintableERC20__factory.ts +43 -0
  288. package/typechain-types/factories/contracts/disperse/disperseToken/MintDisperser.sol/IOwnable__factory.ts +35 -0
  289. package/typechain-types/factories/contracts/disperse/disperseToken/MintDisperser.sol/MintDisperser__factory.ts +203 -0
  290. package/typechain-types/factories/contracts/disperse/disperseToken/MintDisperser.sol/index.ts +6 -0
  291. package/typechain-types/factories/contracts/disperse/disperseToken/TokenDisperser__factory.ts +198 -0
  292. package/typechain-types/factories/contracts/disperse/disperseToken/index.ts +5 -0
  293. package/typechain-types/factories/contracts/disperse/index.ts +5 -0
  294. package/typechain-types/factories/contracts/index.ts +5 -0
  295. package/typechain-types/factories/contracts/messaging/PrivateMessaging__factory.ts +1035 -0
  296. package/typechain-types/factories/contracts/messaging/index.ts +4 -0
  297. package/typechain-types/factories/contracts/mocks/access/DataPrivacyFramework/DataPrivacyFrameworkMock__factory.ts +1 -1
  298. package/typechain-types/factories/contracts/mocks/index.ts +2 -0
  299. package/typechain-types/factories/contracts/mocks/messaging/PrivateMessagingHarness__factory.ts +1161 -0
  300. package/typechain-types/factories/contracts/mocks/messaging/index.ts +4 -0
  301. package/typechain-types/factories/contracts/mocks/oracle/CotiPriceConsumerMock__factory.ts +159 -0
  302. package/typechain-types/factories/contracts/mocks/oracle/index.ts +4 -0
  303. package/typechain-types/factories/contracts/mocks/token/ERC20DecimalsMock__factory.ts +394 -0
  304. package/typechain-types/factories/contracts/mocks/token/ERC20Mock__factory.ts +392 -0
  305. package/typechain-types/factories/contracts/mocks/token/PrivateERC20/EncryptedTokenReceiverMock__factory.ts +125 -0
  306. package/typechain-types/factories/contracts/mocks/token/PrivateERC20/PrivacyBridgeERC20Mock__factory.ts +1797 -0
  307. package/typechain-types/factories/contracts/mocks/token/PrivateERC20/PrivateERC20AuditorSupplyMock__factory.ts +1514 -0
  308. package/typechain-types/factories/contracts/mocks/token/PrivateERC20/PrivateERC20CappedMock__factory.ts +1466 -0
  309. package/typechain-types/factories/contracts/mocks/token/PrivateERC20/PrivateERC20GtCallerMock__factory.ts +165 -0
  310. package/typechain-types/factories/contracts/mocks/token/PrivateERC20/PrivateERC20Mock__factory.ts +975 -127
  311. package/typechain-types/factories/contracts/mocks/token/PrivateERC20/PrivateERC20ReentrantReceiverMock.sol/IPrivateERC20TransferAndCallEncrypted__factory.ts +54 -0
  312. package/typechain-types/factories/contracts/mocks/token/PrivateERC20/PrivateERC20ReentrantReceiverMock.sol/PrivateERC20ReentrantReceiverMock__factory.ts +159 -0
  313. package/typechain-types/factories/contracts/mocks/token/PrivateERC20/PrivateERC20ReentrantReceiverMock.sol/index.ts +5 -0
  314. package/typechain-types/factories/contracts/mocks/token/PrivateERC20/PublicReentrantTokenReceiverMock__factory.ts +164 -0
  315. package/typechain-types/factories/contracts/mocks/token/PrivateERC20/PublicTokenReceiverBoolMock__factory.ts +130 -0
  316. package/typechain-types/factories/contracts/mocks/token/PrivateERC20/PublicTokenReceiverMock__factory.ts +102 -0
  317. package/typechain-types/factories/contracts/mocks/token/PrivateERC20/index.ts +9 -0
  318. package/typechain-types/factories/contracts/mocks/token/PrivateERC721/PrivateERC721URIStorageMock__factory.ts +1 -1
  319. package/typechain-types/factories/contracts/mocks/token/index.ts +2 -0
  320. package/typechain-types/factories/contracts/mocks/utils/mpc/Arithmetic128TestsContract__factory.ts +330 -0
  321. package/typechain-types/factories/contracts/mocks/utils/mpc/Arithmetic256TestsContract__factory.ts +330 -0
  322. package/typechain-types/factories/contracts/mocks/utils/mpc/ArithmeticTestsContract__factory.ts +1 -1
  323. package/typechain-types/factories/contracts/mocks/utils/mpc/Bitwise128TestsContract__factory.ts +184 -0
  324. package/typechain-types/factories/contracts/mocks/utils/mpc/Bitwise256TestsContract__factory.ts +184 -0
  325. package/typechain-types/factories/contracts/mocks/utils/mpc/BitwiseTestsContract__factory.ts +1 -1
  326. package/typechain-types/factories/contracts/mocks/utils/mpc/CheckedArithmetic128WithOverflowBitTestsContract__factory.ts +203 -0
  327. package/typechain-types/factories/contracts/mocks/utils/mpc/CheckedArithmetic256WithOverflowBitTestsContract__factory.ts +203 -0
  328. package/typechain-types/factories/contracts/mocks/utils/mpc/CheckedArithmeticWIthOverflowBitTestsContract.sol/CheckedArithmeticWithOverflowBitTestsContract__factory.ts +1 -1
  329. package/typechain-types/factories/contracts/mocks/utils/mpc/Comparison128TestsContract__factory.ts +295 -0
  330. package/typechain-types/factories/contracts/mocks/utils/mpc/Comparison1TestsContract__factory.ts +1 -1
  331. package/typechain-types/factories/contracts/mocks/utils/mpc/Comparison256TestsContract__factory.ts +295 -0
  332. package/typechain-types/factories/contracts/mocks/utils/mpc/Comparison2TestsContract__factory.ts +1 -1
  333. package/typechain-types/factories/contracts/mocks/utils/mpc/MinMax128TestsContract__factory.ts +147 -0
  334. package/typechain-types/factories/contracts/mocks/utils/mpc/MinMax256TestsContract__factory.ts +147 -0
  335. package/typechain-types/factories/contracts/mocks/utils/mpc/MinMaxTestsContract__factory.ts +1 -1
  336. package/typechain-types/factories/contracts/mocks/utils/mpc/MinimalImplementation__factory.ts +263 -0
  337. package/typechain-types/factories/contracts/mocks/utils/mpc/MinimalProxy__factory.ts +104 -0
  338. package/typechain-types/factories/contracts/mocks/utils/mpc/Miscellaneous1TestsContract__factory.ts +1 -1
  339. package/typechain-types/factories/contracts/mocks/utils/mpc/MiscellaneousTestsContract__factory.ts +1 -1
  340. package/typechain-types/factories/contracts/mocks/utils/mpc/MpcOperations128TestContract__factory.ts +723 -0
  341. package/typechain-types/factories/contracts/mocks/utils/mpc/MpcOperationsTestContract__factory.ts +1410 -0
  342. package/typechain-types/factories/contracts/mocks/utils/mpc/Mux128TestsContract__factory.ts +115 -0
  343. package/typechain-types/factories/contracts/mocks/utils/mpc/Mux256TestsContract__factory.ts +115 -0
  344. package/typechain-types/factories/contracts/mocks/utils/mpc/OffboardToUserKeyTestContract__factory.ts +1 -1
  345. package/typechain-types/factories/contracts/mocks/utils/mpc/OnBoard128TestsContract__factory.ts +175 -0
  346. package/typechain-types/factories/contracts/mocks/utils/mpc/OnBoard256TestsContract__factory.ts +205 -0
  347. package/typechain-types/factories/contracts/mocks/utils/mpc/PrivacyImplementationV1__factory.ts +521 -0
  348. package/typechain-types/factories/contracts/mocks/utils/mpc/PrivacyImplementationV2__factory.ts +648 -0
  349. package/typechain-types/factories/contracts/mocks/utils/mpc/PrivacyProxy__factory.ts +179 -0
  350. package/typechain-types/factories/contracts/mocks/utils/mpc/Random128TestsContract__factory.ts +131 -0
  351. package/typechain-types/factories/contracts/mocks/utils/mpc/Random256TestsContract__factory.ts +131 -0
  352. package/typechain-types/factories/contracts/mocks/utils/mpc/Shift128TestsContract__factory.ts +147 -0
  353. package/typechain-types/factories/contracts/mocks/utils/mpc/Shift256TestsContract__factory.ts +147 -0
  354. package/typechain-types/factories/contracts/mocks/utils/mpc/ShiftTestsContract__factory.ts +1 -1
  355. package/typechain-types/factories/contracts/mocks/utils/mpc/StringTestsContract__factory.ts +1 -1
  356. package/typechain-types/factories/contracts/mocks/utils/mpc/Transfer128TestsContract__factory.ts +135 -0
  357. package/typechain-types/factories/contracts/mocks/utils/mpc/Transfer256TestsContract__factory.ts +135 -0
  358. package/typechain-types/factories/contracts/mocks/utils/mpc/TransferScalarTestsContract__factory.ts +1 -1
  359. package/typechain-types/factories/contracts/mocks/utils/mpc/TransferTestsContract__factory.ts +1 -1
  360. package/typechain-types/factories/contracts/mocks/utils/mpc/TransferWithAllowance128TestsContract__factory.ts +154 -0
  361. package/typechain-types/factories/contracts/mocks/utils/mpc/TransferWithAllowance256TestsContract__factory.ts +154 -0
  362. package/typechain-types/factories/contracts/mocks/utils/mpc/TransferWithAllowance64_16TestsContract__factory.ts +1 -1
  363. package/typechain-types/factories/contracts/mocks/utils/mpc/TransferWithAllowance64_32TestsContract__factory.ts +1 -1
  364. package/typechain-types/factories/contracts/mocks/utils/mpc/TransferWithAllowance64_64TestsContract__factory.ts +1 -1
  365. package/typechain-types/factories/contracts/mocks/utils/mpc/TransferWithAllowance64_8TestsContract__factory.ts +1 -1
  366. package/typechain-types/factories/contracts/mocks/utils/mpc/TransferWithAllowanceScalarTestsContract__factory.ts +1 -1
  367. package/typechain-types/factories/contracts/mocks/utils/mpc/TransferWithAllowanceTestsContract__factory.ts +1 -1
  368. package/typechain-types/factories/contracts/mocks/utils/mpc/ValidateCiphertext128TestsContract__factory.ts +190 -0
  369. package/typechain-types/factories/contracts/mocks/utils/mpc/ValidateCiphertext256TestsContract__factory.ts +210 -0
  370. package/typechain-types/factories/contracts/mocks/utils/mpc/ValidateCiphertextTestsContract__factory.ts +260 -0
  371. package/typechain-types/factories/contracts/mocks/utils/mpc/index.ts +32 -8
  372. package/typechain-types/factories/contracts/mocks/wallet/PrivateERC20Wallet/PrivateERC20WalletMock__factory.ts +10 -28
  373. package/typechain-types/factories/contracts/node/CotiNodeRewards__factory.ts +549 -0
  374. package/typechain-types/factories/contracts/node/SoulboundNodeNFT.sol/IERC5192__factory.ts +54 -0
  375. package/typechain-types/factories/contracts/node/SoulboundNodeNFT.sol/SoulboundNodeNFT__factory.ts +947 -0
  376. package/typechain-types/factories/contracts/node/SoulboundNodeNFT.sol/index.ts +5 -0
  377. package/typechain-types/factories/contracts/node/index.ts +5 -0
  378. package/typechain-types/factories/contracts/onboard/AccountOnboard__factory.ts +1 -1
  379. package/typechain-types/factories/contracts/oracle/CotiPriceConsumer__factory.ts +295 -0
  380. package/typechain-types/factories/contracts/oracle/ICotiPriceConsumer__factory.ts +73 -0
  381. package/typechain-types/factories/contracts/oracle/IStdReference__factory.ts +107 -0
  382. package/typechain-types/factories/contracts/oracle/index.ts +6 -0
  383. package/typechain-types/factories/contracts/privacyBridge/PrivacyBridgeCotiNative__factory.ts +1676 -0
  384. package/typechain-types/factories/contracts/privacyBridge/PrivacyBridgeERC20.sol/IHasDecimals__factory.ts +38 -0
  385. package/typechain-types/factories/contracts/privacyBridge/PrivacyBridgeERC20.sol/PrivacyBridgeERC20__factory.ts +1678 -0
  386. package/typechain-types/factories/contracts/privacyBridge/PrivacyBridgeERC20.sol/index.ts +5 -0
  387. package/typechain-types/factories/contracts/privacyBridge/PrivacyBridgeUSDCe__factory.ts +1782 -0
  388. package/typechain-types/factories/contracts/privacyBridge/PrivacyBridgeUSDT__factory.ts +1782 -0
  389. package/typechain-types/factories/contracts/privacyBridge/PrivacyBridgeWADA__factory.ts +1782 -0
  390. package/typechain-types/factories/contracts/privacyBridge/PrivacyBridgeWBTC__factory.ts +1782 -0
  391. package/typechain-types/factories/contracts/privacyBridge/PrivacyBridgeWETH__factory.ts +1782 -0
  392. package/typechain-types/factories/contracts/privacyBridge/PrivacyBridge__factory.ts +1367 -0
  393. package/typechain-types/factories/contracts/privacyBridge/PrivacyBridgegCoti__factory.ts +1782 -0
  394. package/typechain-types/factories/contracts/privacyBridge/index.ts +12 -0
  395. package/typechain-types/factories/contracts/token/PrivateERC20/IPrivateERC20__factory.ts +639 -61
  396. package/typechain-types/factories/contracts/token/PrivateERC20/ITokenReceiverEncrypted__factory.ts +53 -0
  397. package/typechain-types/factories/contracts/token/PrivateERC20/ITokenReceiver__factory.ts +54 -0
  398. package/typechain-types/factories/contracts/token/PrivateERC20/PrivateERC20__factory.ts +986 -120
  399. package/typechain-types/factories/contracts/token/PrivateERC20/index.ts +3 -0
  400. package/typechain-types/factories/contracts/token/PrivateERC20/tokens/PrivateBridgedUSDC__factory.ts +1445 -0
  401. package/typechain-types/factories/contracts/token/PrivateERC20/tokens/PrivateCOTITreasuryGovernanceToken__factory.ts +1451 -0
  402. package/typechain-types/factories/contracts/token/PrivateERC20/tokens/PrivateCOTI__factory.ts +1442 -0
  403. package/typechain-types/factories/contracts/token/PrivateERC20/tokens/PrivateTetherUSD__factory.ts +1445 -0
  404. package/typechain-types/factories/contracts/token/PrivateERC20/tokens/PrivateWrappedADA__factory.ts +1445 -0
  405. package/typechain-types/factories/contracts/token/PrivateERC20/tokens/PrivateWrappedBTC__factory.ts +1445 -0
  406. package/typechain-types/factories/contracts/token/PrivateERC20/tokens/PrivateWrappedEther__factory.ts +1451 -0
  407. package/typechain-types/factories/contracts/token/PrivateERC20/tokens/index.ts +10 -0
  408. package/typechain-types/factories/contracts/utils/mpc/MpcCore__factory.ts +1 -1
  409. package/typechain-types/factories/contracts/utils/mpc/MpcInterface.sol/ExtendedOperations__factory.ts +126 -0
  410. package/typechain-types/hardhat.d.ts +1772 -278
  411. package/typechain-types/index.ts +182 -16
  412. package/contracts/mocks/utils/mpc/Arithmetic128BitTestsContract.sol +0 -260
  413. package/contracts/mocks/utils/mpc/Arithmetic256BitTestsContract.sol +0 -264
  414. package/contracts/mocks/utils/mpc/Bitwise128BitTestsContract.sol +0 -91
  415. package/contracts/mocks/utils/mpc/Bitwise256BitTestsContract.sol +0 -91
  416. package/contracts/mocks/utils/mpc/Comparison128BitTestsContract.sol +0 -158
  417. package/contracts/mocks/utils/mpc/Comparison256BitTestsContract.sol +0 -158
  418. package/contracts/mocks/utils/mpc/Miscellaneous128BitTestsContract.sol +0 -185
  419. package/contracts/mocks/utils/mpc/Miscellaneous256BitTestsContract.sol +0 -190
  420. package/contracts/mocks/utils/mpc/README.md +0 -486
  421. package/test/utils/mpc/Unsigned128BitIntegers.test.ts +0 -945
  422. package/test/utils/mpc/Unsigned256BitIntegers.test.ts +0 -1124
  423. package/test/utils/mpc/helpers.ts +0 -77
  424. package/typechain-types/contracts/mocks/utils/mpc/Miscellaneous128BitTestsContract.ts +0 -302
  425. package/typechain-types/contracts/mocks/utils/mpc/Miscellaneous256BitTestsContract.ts +0 -322
  426. package/typechain-types/factories/contracts/mocks/utils/mpc/Arithmetic128BitTestsContract__factory.ts +0 -349
  427. package/typechain-types/factories/contracts/mocks/utils/mpc/Arithmetic256BitTestsContract__factory.ts +0 -364
  428. package/typechain-types/factories/contracts/mocks/utils/mpc/Bitwise128BitTestsContract__factory.ts +0 -182
  429. package/typechain-types/factories/contracts/mocks/utils/mpc/Bitwise256BitTestsContract__factory.ts +0 -182
  430. package/typechain-types/factories/contracts/mocks/utils/mpc/Comparison128BitTestsContract__factory.ts +0 -255
  431. package/typechain-types/factories/contracts/mocks/utils/mpc/Comparison256BitTestsContract__factory.ts +0 -255
  432. package/typechain-types/factories/contracts/mocks/utils/mpc/Miscellaneous128BitTestsContract__factory.ts +0 -332
  433. package/typechain-types/factories/contracts/mocks/utils/mpc/Miscellaneous256BitTestsContract__factory.ts +0 -380
@@ -0,0 +1,1410 @@
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
+ MpcOperationsTestContract,
14
+ MpcOperationsTestContractInterface,
15
+ } from "../../../../../contracts/mocks/utils/mpc/MpcOperationsTestContract";
16
+
17
+ const _abi = [
18
+ {
19
+ anonymous: false,
20
+ inputs: [
21
+ {
22
+ indexed: false,
23
+ internalType: "string",
24
+ name: "operation",
25
+ type: "string",
26
+ },
27
+ {
28
+ indexed: true,
29
+ internalType: "address",
30
+ name: "user",
31
+ type: "address",
32
+ },
33
+ ],
34
+ name: "OperationPerformed",
35
+ type: "event",
36
+ },
37
+ {
38
+ anonymous: false,
39
+ inputs: [
40
+ {
41
+ indexed: true,
42
+ internalType: "address",
43
+ name: "user",
44
+ type: "address",
45
+ },
46
+ {
47
+ components: [
48
+ {
49
+ internalType: "ctUint128",
50
+ name: "ciphertextHigh",
51
+ type: "uint256",
52
+ },
53
+ {
54
+ internalType: "ctUint128",
55
+ name: "ciphertextLow",
56
+ type: "uint256",
57
+ },
58
+ ],
59
+ indexed: false,
60
+ internalType: "struct ctUint256",
61
+ name: "result",
62
+ type: "tuple",
63
+ },
64
+ ],
65
+ name: "ValueOffBoarded",
66
+ type: "event",
67
+ },
68
+ {
69
+ inputs: [
70
+ {
71
+ components: [
72
+ {
73
+ components: [
74
+ {
75
+ internalType: "ctUint128",
76
+ name: "ciphertextHigh",
77
+ type: "uint256",
78
+ },
79
+ {
80
+ internalType: "ctUint128",
81
+ name: "ciphertextLow",
82
+ type: "uint256",
83
+ },
84
+ ],
85
+ internalType: "struct ctUint256",
86
+ name: "ciphertext",
87
+ type: "tuple",
88
+ },
89
+ {
90
+ internalType: "bytes",
91
+ name: "signature",
92
+ type: "bytes",
93
+ },
94
+ ],
95
+ internalType: "struct itUint256",
96
+ name: "a",
97
+ type: "tuple",
98
+ },
99
+ {
100
+ components: [
101
+ {
102
+ components: [
103
+ {
104
+ internalType: "ctUint128",
105
+ name: "ciphertextHigh",
106
+ type: "uint256",
107
+ },
108
+ {
109
+ internalType: "ctUint128",
110
+ name: "ciphertextLow",
111
+ type: "uint256",
112
+ },
113
+ ],
114
+ internalType: "struct ctUint256",
115
+ name: "ciphertext",
116
+ type: "tuple",
117
+ },
118
+ {
119
+ internalType: "bytes",
120
+ name: "signature",
121
+ type: "bytes",
122
+ },
123
+ ],
124
+ internalType: "struct itUint256",
125
+ name: "b",
126
+ type: "tuple",
127
+ },
128
+ {
129
+ internalType: "address",
130
+ name: "user",
131
+ type: "address",
132
+ },
133
+ ],
134
+ name: "add256",
135
+ outputs: [
136
+ {
137
+ components: [
138
+ {
139
+ internalType: "ctUint128",
140
+ name: "ciphertextHigh",
141
+ type: "uint256",
142
+ },
143
+ {
144
+ internalType: "ctUint128",
145
+ name: "ciphertextLow",
146
+ type: "uint256",
147
+ },
148
+ ],
149
+ internalType: "struct ctUint256",
150
+ name: "",
151
+ type: "tuple",
152
+ },
153
+ ],
154
+ stateMutability: "nonpayable",
155
+ type: "function",
156
+ },
157
+ {
158
+ inputs: [
159
+ {
160
+ components: [
161
+ {
162
+ components: [
163
+ {
164
+ internalType: "ctUint128",
165
+ name: "ciphertextHigh",
166
+ type: "uint256",
167
+ },
168
+ {
169
+ internalType: "ctUint128",
170
+ name: "ciphertextLow",
171
+ type: "uint256",
172
+ },
173
+ ],
174
+ internalType: "struct ctUint256",
175
+ name: "ciphertext",
176
+ type: "tuple",
177
+ },
178
+ {
179
+ internalType: "bytes",
180
+ name: "signature",
181
+ type: "bytes",
182
+ },
183
+ ],
184
+ internalType: "struct itUint256",
185
+ name: "a",
186
+ type: "tuple",
187
+ },
188
+ {
189
+ components: [
190
+ {
191
+ components: [
192
+ {
193
+ internalType: "ctUint128",
194
+ name: "ciphertextHigh",
195
+ type: "uint256",
196
+ },
197
+ {
198
+ internalType: "ctUint128",
199
+ name: "ciphertextLow",
200
+ type: "uint256",
201
+ },
202
+ ],
203
+ internalType: "struct ctUint256",
204
+ name: "ciphertext",
205
+ type: "tuple",
206
+ },
207
+ {
208
+ internalType: "bytes",
209
+ name: "signature",
210
+ type: "bytes",
211
+ },
212
+ ],
213
+ internalType: "struct itUint256",
214
+ name: "b",
215
+ type: "tuple",
216
+ },
217
+ {
218
+ internalType: "address",
219
+ name: "user",
220
+ type: "address",
221
+ },
222
+ ],
223
+ name: "and256",
224
+ outputs: [
225
+ {
226
+ components: [
227
+ {
228
+ internalType: "ctUint128",
229
+ name: "ciphertextHigh",
230
+ type: "uint256",
231
+ },
232
+ {
233
+ internalType: "ctUint128",
234
+ name: "ciphertextLow",
235
+ type: "uint256",
236
+ },
237
+ ],
238
+ internalType: "struct ctUint256",
239
+ name: "",
240
+ type: "tuple",
241
+ },
242
+ ],
243
+ stateMutability: "nonpayable",
244
+ type: "function",
245
+ },
246
+ {
247
+ inputs: [
248
+ {
249
+ components: [
250
+ {
251
+ components: [
252
+ {
253
+ internalType: "ctUint128",
254
+ name: "ciphertextHigh",
255
+ type: "uint256",
256
+ },
257
+ {
258
+ internalType: "ctUint128",
259
+ name: "ciphertextLow",
260
+ type: "uint256",
261
+ },
262
+ ],
263
+ internalType: "struct ctUint256",
264
+ name: "ciphertext",
265
+ type: "tuple",
266
+ },
267
+ {
268
+ internalType: "bytes",
269
+ name: "signature",
270
+ type: "bytes",
271
+ },
272
+ ],
273
+ internalType: "struct itUint256",
274
+ name: "a",
275
+ type: "tuple",
276
+ },
277
+ {
278
+ components: [
279
+ {
280
+ components: [
281
+ {
282
+ internalType: "ctUint128",
283
+ name: "ciphertextHigh",
284
+ type: "uint256",
285
+ },
286
+ {
287
+ internalType: "ctUint128",
288
+ name: "ciphertextLow",
289
+ type: "uint256",
290
+ },
291
+ ],
292
+ internalType: "struct ctUint256",
293
+ name: "ciphertext",
294
+ type: "tuple",
295
+ },
296
+ {
297
+ internalType: "bytes",
298
+ name: "signature",
299
+ type: "bytes",
300
+ },
301
+ ],
302
+ internalType: "struct itUint256",
303
+ name: "b",
304
+ type: "tuple",
305
+ },
306
+ {
307
+ internalType: "address",
308
+ name: "user",
309
+ type: "address",
310
+ },
311
+ ],
312
+ name: "div256",
313
+ outputs: [
314
+ {
315
+ components: [
316
+ {
317
+ internalType: "ctUint128",
318
+ name: "ciphertextHigh",
319
+ type: "uint256",
320
+ },
321
+ {
322
+ internalType: "ctUint128",
323
+ name: "ciphertextLow",
324
+ type: "uint256",
325
+ },
326
+ ],
327
+ internalType: "struct ctUint256",
328
+ name: "",
329
+ type: "tuple",
330
+ },
331
+ ],
332
+ stateMutability: "nonpayable",
333
+ type: "function",
334
+ },
335
+ {
336
+ inputs: [
337
+ {
338
+ components: [
339
+ {
340
+ components: [
341
+ {
342
+ internalType: "ctUint128",
343
+ name: "ciphertextHigh",
344
+ type: "uint256",
345
+ },
346
+ {
347
+ internalType: "ctUint128",
348
+ name: "ciphertextLow",
349
+ type: "uint256",
350
+ },
351
+ ],
352
+ internalType: "struct ctUint256",
353
+ name: "ciphertext",
354
+ type: "tuple",
355
+ },
356
+ {
357
+ internalType: "bytes",
358
+ name: "signature",
359
+ type: "bytes",
360
+ },
361
+ ],
362
+ internalType: "struct itUint256",
363
+ name: "a",
364
+ type: "tuple",
365
+ },
366
+ {
367
+ components: [
368
+ {
369
+ components: [
370
+ {
371
+ internalType: "ctUint128",
372
+ name: "ciphertextHigh",
373
+ type: "uint256",
374
+ },
375
+ {
376
+ internalType: "ctUint128",
377
+ name: "ciphertextLow",
378
+ type: "uint256",
379
+ },
380
+ ],
381
+ internalType: "struct ctUint256",
382
+ name: "ciphertext",
383
+ type: "tuple",
384
+ },
385
+ {
386
+ internalType: "bytes",
387
+ name: "signature",
388
+ type: "bytes",
389
+ },
390
+ ],
391
+ internalType: "struct itUint256",
392
+ name: "b",
393
+ type: "tuple",
394
+ },
395
+ {
396
+ internalType: "address",
397
+ name: "user",
398
+ type: "address",
399
+ },
400
+ ],
401
+ name: "eq256",
402
+ outputs: [
403
+ {
404
+ components: [
405
+ {
406
+ internalType: "ctUint128",
407
+ name: "ciphertextHigh",
408
+ type: "uint256",
409
+ },
410
+ {
411
+ internalType: "ctUint128",
412
+ name: "ciphertextLow",
413
+ type: "uint256",
414
+ },
415
+ ],
416
+ internalType: "struct ctUint256",
417
+ name: "",
418
+ type: "tuple",
419
+ },
420
+ ],
421
+ stateMutability: "nonpayable",
422
+ type: "function",
423
+ },
424
+ {
425
+ inputs: [
426
+ {
427
+ components: [
428
+ {
429
+ components: [
430
+ {
431
+ internalType: "ctUint128",
432
+ name: "ciphertextHigh",
433
+ type: "uint256",
434
+ },
435
+ {
436
+ internalType: "ctUint128",
437
+ name: "ciphertextLow",
438
+ type: "uint256",
439
+ },
440
+ ],
441
+ internalType: "struct ctUint256",
442
+ name: "ciphertext",
443
+ type: "tuple",
444
+ },
445
+ {
446
+ internalType: "bytes",
447
+ name: "signature",
448
+ type: "bytes",
449
+ },
450
+ ],
451
+ internalType: "struct itUint256",
452
+ name: "a",
453
+ type: "tuple",
454
+ },
455
+ {
456
+ components: [
457
+ {
458
+ components: [
459
+ {
460
+ internalType: "ctUint128",
461
+ name: "ciphertextHigh",
462
+ type: "uint256",
463
+ },
464
+ {
465
+ internalType: "ctUint128",
466
+ name: "ciphertextLow",
467
+ type: "uint256",
468
+ },
469
+ ],
470
+ internalType: "struct ctUint256",
471
+ name: "ciphertext",
472
+ type: "tuple",
473
+ },
474
+ {
475
+ internalType: "bytes",
476
+ name: "signature",
477
+ type: "bytes",
478
+ },
479
+ ],
480
+ internalType: "struct itUint256",
481
+ name: "b",
482
+ type: "tuple",
483
+ },
484
+ {
485
+ internalType: "address",
486
+ name: "user",
487
+ type: "address",
488
+ },
489
+ ],
490
+ name: "gt256",
491
+ outputs: [
492
+ {
493
+ components: [
494
+ {
495
+ internalType: "ctUint128",
496
+ name: "ciphertextHigh",
497
+ type: "uint256",
498
+ },
499
+ {
500
+ internalType: "ctUint128",
501
+ name: "ciphertextLow",
502
+ type: "uint256",
503
+ },
504
+ ],
505
+ internalType: "struct ctUint256",
506
+ name: "",
507
+ type: "tuple",
508
+ },
509
+ ],
510
+ stateMutability: "nonpayable",
511
+ type: "function",
512
+ },
513
+ {
514
+ inputs: [
515
+ {
516
+ components: [
517
+ {
518
+ components: [
519
+ {
520
+ internalType: "ctUint128",
521
+ name: "ciphertextHigh",
522
+ type: "uint256",
523
+ },
524
+ {
525
+ internalType: "ctUint128",
526
+ name: "ciphertextLow",
527
+ type: "uint256",
528
+ },
529
+ ],
530
+ internalType: "struct ctUint256",
531
+ name: "ciphertext",
532
+ type: "tuple",
533
+ },
534
+ {
535
+ internalType: "bytes",
536
+ name: "signature",
537
+ type: "bytes",
538
+ },
539
+ ],
540
+ internalType: "struct itUint256",
541
+ name: "a",
542
+ type: "tuple",
543
+ },
544
+ {
545
+ components: [
546
+ {
547
+ components: [
548
+ {
549
+ internalType: "ctUint128",
550
+ name: "ciphertextHigh",
551
+ type: "uint256",
552
+ },
553
+ {
554
+ internalType: "ctUint128",
555
+ name: "ciphertextLow",
556
+ type: "uint256",
557
+ },
558
+ ],
559
+ internalType: "struct ctUint256",
560
+ name: "ciphertext",
561
+ type: "tuple",
562
+ },
563
+ {
564
+ internalType: "bytes",
565
+ name: "signature",
566
+ type: "bytes",
567
+ },
568
+ ],
569
+ internalType: "struct itUint256",
570
+ name: "b",
571
+ type: "tuple",
572
+ },
573
+ {
574
+ internalType: "address",
575
+ name: "user",
576
+ type: "address",
577
+ },
578
+ ],
579
+ name: "lt256",
580
+ outputs: [
581
+ {
582
+ components: [
583
+ {
584
+ internalType: "ctUint128",
585
+ name: "ciphertextHigh",
586
+ type: "uint256",
587
+ },
588
+ {
589
+ internalType: "ctUint128",
590
+ name: "ciphertextLow",
591
+ type: "uint256",
592
+ },
593
+ ],
594
+ internalType: "struct ctUint256",
595
+ name: "",
596
+ type: "tuple",
597
+ },
598
+ ],
599
+ stateMutability: "nonpayable",
600
+ type: "function",
601
+ },
602
+ {
603
+ inputs: [
604
+ {
605
+ components: [
606
+ {
607
+ components: [
608
+ {
609
+ internalType: "ctUint128",
610
+ name: "ciphertextHigh",
611
+ type: "uint256",
612
+ },
613
+ {
614
+ internalType: "ctUint128",
615
+ name: "ciphertextLow",
616
+ type: "uint256",
617
+ },
618
+ ],
619
+ internalType: "struct ctUint256",
620
+ name: "ciphertext",
621
+ type: "tuple",
622
+ },
623
+ {
624
+ internalType: "bytes",
625
+ name: "signature",
626
+ type: "bytes",
627
+ },
628
+ ],
629
+ internalType: "struct itUint256",
630
+ name: "a",
631
+ type: "tuple",
632
+ },
633
+ {
634
+ components: [
635
+ {
636
+ components: [
637
+ {
638
+ internalType: "ctUint128",
639
+ name: "ciphertextHigh",
640
+ type: "uint256",
641
+ },
642
+ {
643
+ internalType: "ctUint128",
644
+ name: "ciphertextLow",
645
+ type: "uint256",
646
+ },
647
+ ],
648
+ internalType: "struct ctUint256",
649
+ name: "ciphertext",
650
+ type: "tuple",
651
+ },
652
+ {
653
+ internalType: "bytes",
654
+ name: "signature",
655
+ type: "bytes",
656
+ },
657
+ ],
658
+ internalType: "struct itUint256",
659
+ name: "b",
660
+ type: "tuple",
661
+ },
662
+ {
663
+ internalType: "address",
664
+ name: "user",
665
+ type: "address",
666
+ },
667
+ ],
668
+ name: "max256",
669
+ outputs: [
670
+ {
671
+ components: [
672
+ {
673
+ internalType: "ctUint128",
674
+ name: "ciphertextHigh",
675
+ type: "uint256",
676
+ },
677
+ {
678
+ internalType: "ctUint128",
679
+ name: "ciphertextLow",
680
+ type: "uint256",
681
+ },
682
+ ],
683
+ internalType: "struct ctUint256",
684
+ name: "",
685
+ type: "tuple",
686
+ },
687
+ ],
688
+ stateMutability: "nonpayable",
689
+ type: "function",
690
+ },
691
+ {
692
+ inputs: [
693
+ {
694
+ components: [
695
+ {
696
+ components: [
697
+ {
698
+ internalType: "ctUint128",
699
+ name: "ciphertextHigh",
700
+ type: "uint256",
701
+ },
702
+ {
703
+ internalType: "ctUint128",
704
+ name: "ciphertextLow",
705
+ type: "uint256",
706
+ },
707
+ ],
708
+ internalType: "struct ctUint256",
709
+ name: "ciphertext",
710
+ type: "tuple",
711
+ },
712
+ {
713
+ internalType: "bytes",
714
+ name: "signature",
715
+ type: "bytes",
716
+ },
717
+ ],
718
+ internalType: "struct itUint256",
719
+ name: "a",
720
+ type: "tuple",
721
+ },
722
+ {
723
+ components: [
724
+ {
725
+ components: [
726
+ {
727
+ internalType: "ctUint128",
728
+ name: "ciphertextHigh",
729
+ type: "uint256",
730
+ },
731
+ {
732
+ internalType: "ctUint128",
733
+ name: "ciphertextLow",
734
+ type: "uint256",
735
+ },
736
+ ],
737
+ internalType: "struct ctUint256",
738
+ name: "ciphertext",
739
+ type: "tuple",
740
+ },
741
+ {
742
+ internalType: "bytes",
743
+ name: "signature",
744
+ type: "bytes",
745
+ },
746
+ ],
747
+ internalType: "struct itUint256",
748
+ name: "b",
749
+ type: "tuple",
750
+ },
751
+ {
752
+ internalType: "address",
753
+ name: "user",
754
+ type: "address",
755
+ },
756
+ ],
757
+ name: "min256",
758
+ outputs: [
759
+ {
760
+ components: [
761
+ {
762
+ internalType: "ctUint128",
763
+ name: "ciphertextHigh",
764
+ type: "uint256",
765
+ },
766
+ {
767
+ internalType: "ctUint128",
768
+ name: "ciphertextLow",
769
+ type: "uint256",
770
+ },
771
+ ],
772
+ internalType: "struct ctUint256",
773
+ name: "",
774
+ type: "tuple",
775
+ },
776
+ ],
777
+ stateMutability: "nonpayable",
778
+ type: "function",
779
+ },
780
+ {
781
+ inputs: [
782
+ {
783
+ components: [
784
+ {
785
+ components: [
786
+ {
787
+ internalType: "ctUint128",
788
+ name: "ciphertextHigh",
789
+ type: "uint256",
790
+ },
791
+ {
792
+ internalType: "ctUint128",
793
+ name: "ciphertextLow",
794
+ type: "uint256",
795
+ },
796
+ ],
797
+ internalType: "struct ctUint256",
798
+ name: "ciphertext",
799
+ type: "tuple",
800
+ },
801
+ {
802
+ internalType: "bytes",
803
+ name: "signature",
804
+ type: "bytes",
805
+ },
806
+ ],
807
+ internalType: "struct itUint256",
808
+ name: "a",
809
+ type: "tuple",
810
+ },
811
+ {
812
+ components: [
813
+ {
814
+ components: [
815
+ {
816
+ internalType: "ctUint128",
817
+ name: "ciphertextHigh",
818
+ type: "uint256",
819
+ },
820
+ {
821
+ internalType: "ctUint128",
822
+ name: "ciphertextLow",
823
+ type: "uint256",
824
+ },
825
+ ],
826
+ internalType: "struct ctUint256",
827
+ name: "ciphertext",
828
+ type: "tuple",
829
+ },
830
+ {
831
+ internalType: "bytes",
832
+ name: "signature",
833
+ type: "bytes",
834
+ },
835
+ ],
836
+ internalType: "struct itUint256",
837
+ name: "b",
838
+ type: "tuple",
839
+ },
840
+ {
841
+ internalType: "address",
842
+ name: "user",
843
+ type: "address",
844
+ },
845
+ ],
846
+ name: "mul256",
847
+ outputs: [
848
+ {
849
+ components: [
850
+ {
851
+ internalType: "ctUint128",
852
+ name: "ciphertextHigh",
853
+ type: "uint256",
854
+ },
855
+ {
856
+ internalType: "ctUint128",
857
+ name: "ciphertextLow",
858
+ type: "uint256",
859
+ },
860
+ ],
861
+ internalType: "struct ctUint256",
862
+ name: "",
863
+ type: "tuple",
864
+ },
865
+ ],
866
+ stateMutability: "nonpayable",
867
+ type: "function",
868
+ },
869
+ {
870
+ inputs: [
871
+ {
872
+ components: [
873
+ {
874
+ components: [
875
+ {
876
+ internalType: "ctUint128",
877
+ name: "ciphertextHigh",
878
+ type: "uint256",
879
+ },
880
+ {
881
+ internalType: "ctUint128",
882
+ name: "ciphertextLow",
883
+ type: "uint256",
884
+ },
885
+ ],
886
+ internalType: "struct ctUint256",
887
+ name: "ciphertext",
888
+ type: "tuple",
889
+ },
890
+ {
891
+ internalType: "bytes",
892
+ name: "signature",
893
+ type: "bytes",
894
+ },
895
+ ],
896
+ internalType: "struct itUint256",
897
+ name: "a",
898
+ type: "tuple",
899
+ },
900
+ {
901
+ components: [
902
+ {
903
+ components: [
904
+ {
905
+ internalType: "ctUint128",
906
+ name: "ciphertextHigh",
907
+ type: "uint256",
908
+ },
909
+ {
910
+ internalType: "ctUint128",
911
+ name: "ciphertextLow",
912
+ type: "uint256",
913
+ },
914
+ ],
915
+ internalType: "struct ctUint256",
916
+ name: "ciphertext",
917
+ type: "tuple",
918
+ },
919
+ {
920
+ internalType: "bytes",
921
+ name: "signature",
922
+ type: "bytes",
923
+ },
924
+ ],
925
+ internalType: "struct itUint256",
926
+ name: "b",
927
+ type: "tuple",
928
+ },
929
+ {
930
+ internalType: "address",
931
+ name: "user",
932
+ type: "address",
933
+ },
934
+ ],
935
+ name: "or256",
936
+ outputs: [
937
+ {
938
+ components: [
939
+ {
940
+ internalType: "ctUint128",
941
+ name: "ciphertextHigh",
942
+ type: "uint256",
943
+ },
944
+ {
945
+ internalType: "ctUint128",
946
+ name: "ciphertextLow",
947
+ type: "uint256",
948
+ },
949
+ ],
950
+ internalType: "struct ctUint256",
951
+ name: "",
952
+ type: "tuple",
953
+ },
954
+ ],
955
+ stateMutability: "nonpayable",
956
+ type: "function",
957
+ },
958
+ {
959
+ inputs: [
960
+ {
961
+ components: [
962
+ {
963
+ components: [
964
+ {
965
+ internalType: "ctUint128",
966
+ name: "ciphertextHigh",
967
+ type: "uint256",
968
+ },
969
+ {
970
+ internalType: "ctUint128",
971
+ name: "ciphertextLow",
972
+ type: "uint256",
973
+ },
974
+ ],
975
+ internalType: "struct ctUint256",
976
+ name: "ciphertext",
977
+ type: "tuple",
978
+ },
979
+ {
980
+ internalType: "bytes",
981
+ name: "signature",
982
+ type: "bytes",
983
+ },
984
+ ],
985
+ internalType: "struct itUint256",
986
+ name: "a",
987
+ type: "tuple",
988
+ },
989
+ {
990
+ components: [
991
+ {
992
+ components: [
993
+ {
994
+ internalType: "ctUint128",
995
+ name: "ciphertextHigh",
996
+ type: "uint256",
997
+ },
998
+ {
999
+ internalType: "ctUint128",
1000
+ name: "ciphertextLow",
1001
+ type: "uint256",
1002
+ },
1003
+ ],
1004
+ internalType: "struct ctUint256",
1005
+ name: "ciphertext",
1006
+ type: "tuple",
1007
+ },
1008
+ {
1009
+ internalType: "bytes",
1010
+ name: "signature",
1011
+ type: "bytes",
1012
+ },
1013
+ ],
1014
+ internalType: "struct itUint256",
1015
+ name: "b",
1016
+ type: "tuple",
1017
+ },
1018
+ {
1019
+ internalType: "address",
1020
+ name: "user",
1021
+ type: "address",
1022
+ },
1023
+ ],
1024
+ name: "rem256",
1025
+ outputs: [
1026
+ {
1027
+ components: [
1028
+ {
1029
+ internalType: "ctUint128",
1030
+ name: "ciphertextHigh",
1031
+ type: "uint256",
1032
+ },
1033
+ {
1034
+ internalType: "ctUint128",
1035
+ name: "ciphertextLow",
1036
+ type: "uint256",
1037
+ },
1038
+ ],
1039
+ internalType: "struct ctUint256",
1040
+ name: "",
1041
+ type: "tuple",
1042
+ },
1043
+ ],
1044
+ stateMutability: "nonpayable",
1045
+ type: "function",
1046
+ },
1047
+ {
1048
+ inputs: [
1049
+ {
1050
+ components: [
1051
+ {
1052
+ components: [
1053
+ {
1054
+ internalType: "ctUint128",
1055
+ name: "ciphertextHigh",
1056
+ type: "uint256",
1057
+ },
1058
+ {
1059
+ internalType: "ctUint128",
1060
+ name: "ciphertextLow",
1061
+ type: "uint256",
1062
+ },
1063
+ ],
1064
+ internalType: "struct ctUint256",
1065
+ name: "ciphertext",
1066
+ type: "tuple",
1067
+ },
1068
+ {
1069
+ internalType: "bytes",
1070
+ name: "signature",
1071
+ type: "bytes",
1072
+ },
1073
+ ],
1074
+ internalType: "struct itUint256",
1075
+ name: "a",
1076
+ type: "tuple",
1077
+ },
1078
+ {
1079
+ internalType: "uint8",
1080
+ name: "bits",
1081
+ type: "uint8",
1082
+ },
1083
+ {
1084
+ internalType: "address",
1085
+ name: "user",
1086
+ type: "address",
1087
+ },
1088
+ ],
1089
+ name: "shl256",
1090
+ outputs: [
1091
+ {
1092
+ components: [
1093
+ {
1094
+ internalType: "ctUint128",
1095
+ name: "ciphertextHigh",
1096
+ type: "uint256",
1097
+ },
1098
+ {
1099
+ internalType: "ctUint128",
1100
+ name: "ciphertextLow",
1101
+ type: "uint256",
1102
+ },
1103
+ ],
1104
+ internalType: "struct ctUint256",
1105
+ name: "",
1106
+ type: "tuple",
1107
+ },
1108
+ ],
1109
+ stateMutability: "nonpayable",
1110
+ type: "function",
1111
+ },
1112
+ {
1113
+ inputs: [
1114
+ {
1115
+ components: [
1116
+ {
1117
+ components: [
1118
+ {
1119
+ internalType: "ctUint128",
1120
+ name: "ciphertextHigh",
1121
+ type: "uint256",
1122
+ },
1123
+ {
1124
+ internalType: "ctUint128",
1125
+ name: "ciphertextLow",
1126
+ type: "uint256",
1127
+ },
1128
+ ],
1129
+ internalType: "struct ctUint256",
1130
+ name: "ciphertext",
1131
+ type: "tuple",
1132
+ },
1133
+ {
1134
+ internalType: "bytes",
1135
+ name: "signature",
1136
+ type: "bytes",
1137
+ },
1138
+ ],
1139
+ internalType: "struct itUint256",
1140
+ name: "a",
1141
+ type: "tuple",
1142
+ },
1143
+ {
1144
+ internalType: "uint8",
1145
+ name: "bits",
1146
+ type: "uint8",
1147
+ },
1148
+ {
1149
+ internalType: "address",
1150
+ name: "user",
1151
+ type: "address",
1152
+ },
1153
+ ],
1154
+ name: "shr256",
1155
+ outputs: [
1156
+ {
1157
+ components: [
1158
+ {
1159
+ internalType: "ctUint128",
1160
+ name: "ciphertextHigh",
1161
+ type: "uint256",
1162
+ },
1163
+ {
1164
+ internalType: "ctUint128",
1165
+ name: "ciphertextLow",
1166
+ type: "uint256",
1167
+ },
1168
+ ],
1169
+ internalType: "struct ctUint256",
1170
+ name: "",
1171
+ type: "tuple",
1172
+ },
1173
+ ],
1174
+ stateMutability: "nonpayable",
1175
+ type: "function",
1176
+ },
1177
+ {
1178
+ inputs: [
1179
+ {
1180
+ components: [
1181
+ {
1182
+ components: [
1183
+ {
1184
+ internalType: "ctUint128",
1185
+ name: "ciphertextHigh",
1186
+ type: "uint256",
1187
+ },
1188
+ {
1189
+ internalType: "ctUint128",
1190
+ name: "ciphertextLow",
1191
+ type: "uint256",
1192
+ },
1193
+ ],
1194
+ internalType: "struct ctUint256",
1195
+ name: "ciphertext",
1196
+ type: "tuple",
1197
+ },
1198
+ {
1199
+ internalType: "bytes",
1200
+ name: "signature",
1201
+ type: "bytes",
1202
+ },
1203
+ ],
1204
+ internalType: "struct itUint256",
1205
+ name: "a",
1206
+ type: "tuple",
1207
+ },
1208
+ {
1209
+ components: [
1210
+ {
1211
+ components: [
1212
+ {
1213
+ internalType: "ctUint128",
1214
+ name: "ciphertextHigh",
1215
+ type: "uint256",
1216
+ },
1217
+ {
1218
+ internalType: "ctUint128",
1219
+ name: "ciphertextLow",
1220
+ type: "uint256",
1221
+ },
1222
+ ],
1223
+ internalType: "struct ctUint256",
1224
+ name: "ciphertext",
1225
+ type: "tuple",
1226
+ },
1227
+ {
1228
+ internalType: "bytes",
1229
+ name: "signature",
1230
+ type: "bytes",
1231
+ },
1232
+ ],
1233
+ internalType: "struct itUint256",
1234
+ name: "b",
1235
+ type: "tuple",
1236
+ },
1237
+ {
1238
+ internalType: "address",
1239
+ name: "user",
1240
+ type: "address",
1241
+ },
1242
+ ],
1243
+ name: "sub256",
1244
+ outputs: [
1245
+ {
1246
+ components: [
1247
+ {
1248
+ internalType: "ctUint128",
1249
+ name: "ciphertextHigh",
1250
+ type: "uint256",
1251
+ },
1252
+ {
1253
+ internalType: "ctUint128",
1254
+ name: "ciphertextLow",
1255
+ type: "uint256",
1256
+ },
1257
+ ],
1258
+ internalType: "struct ctUint256",
1259
+ name: "",
1260
+ type: "tuple",
1261
+ },
1262
+ ],
1263
+ stateMutability: "nonpayable",
1264
+ type: "function",
1265
+ },
1266
+ {
1267
+ inputs: [
1268
+ {
1269
+ components: [
1270
+ {
1271
+ components: [
1272
+ {
1273
+ internalType: "ctUint128",
1274
+ name: "ciphertextHigh",
1275
+ type: "uint256",
1276
+ },
1277
+ {
1278
+ internalType: "ctUint128",
1279
+ name: "ciphertextLow",
1280
+ type: "uint256",
1281
+ },
1282
+ ],
1283
+ internalType: "struct ctUint256",
1284
+ name: "ciphertext",
1285
+ type: "tuple",
1286
+ },
1287
+ {
1288
+ internalType: "bytes",
1289
+ name: "signature",
1290
+ type: "bytes",
1291
+ },
1292
+ ],
1293
+ internalType: "struct itUint256",
1294
+ name: "a",
1295
+ type: "tuple",
1296
+ },
1297
+ {
1298
+ components: [
1299
+ {
1300
+ components: [
1301
+ {
1302
+ internalType: "ctUint128",
1303
+ name: "ciphertextHigh",
1304
+ type: "uint256",
1305
+ },
1306
+ {
1307
+ internalType: "ctUint128",
1308
+ name: "ciphertextLow",
1309
+ type: "uint256",
1310
+ },
1311
+ ],
1312
+ internalType: "struct ctUint256",
1313
+ name: "ciphertext",
1314
+ type: "tuple",
1315
+ },
1316
+ {
1317
+ internalType: "bytes",
1318
+ name: "signature",
1319
+ type: "bytes",
1320
+ },
1321
+ ],
1322
+ internalType: "struct itUint256",
1323
+ name: "b",
1324
+ type: "tuple",
1325
+ },
1326
+ {
1327
+ internalType: "address",
1328
+ name: "user",
1329
+ type: "address",
1330
+ },
1331
+ ],
1332
+ name: "xor256",
1333
+ outputs: [
1334
+ {
1335
+ components: [
1336
+ {
1337
+ internalType: "ctUint128",
1338
+ name: "ciphertextHigh",
1339
+ type: "uint256",
1340
+ },
1341
+ {
1342
+ internalType: "ctUint128",
1343
+ name: "ciphertextLow",
1344
+ type: "uint256",
1345
+ },
1346
+ ],
1347
+ internalType: "struct ctUint256",
1348
+ name: "",
1349
+ type: "tuple",
1350
+ },
1351
+ ],
1352
+ stateMutability: "nonpayable",
1353
+ type: "function",
1354
+ },
1355
+ ] as const;
1356
+
1357
+ const _bytecode =
1358
+ "0x6080806040523461001657611ef9908161001c8239f35b600080fdfe60406080815260048036101561001457600080fd5b600091823560e01c80632541ecad1461171157806355a00a0d14611587578063950f6132146113f757806397e2a27a1461124a5780639b671cf6146110ba578063b4e554f514610f30578063bc681a8a14610d8d578063c9a5ee2e14610c03578063d57a972814610a79578063d6c036e9146108ef578063db4c49cd14610765578063e406371c146105db578063e8a4178b14610451578063f0e4eb25146102945763fd549407146100c557600080fd5b3461029057826100d4366119ee565b9491906100ff6100f98651936100e98561189b565b8685526020998a80960152611b4d565b91611b4d565b85517f86e3b7b900000000000000000000000000000000000000000000000000000000815261030360f11b94810194855260208501929092526040840152918290819060600103818560645af1918215610285578092610232575b505061022e937f03f82d41170417faf6491fe5c58bc7ee629443641da1cc67f43d25bbd795508573ffffffffffffffffffffffffffffffffffffffff6101a286606095611c24565b951692839260068651918083528201527f72656d323536000000000000000000000000000000000000000000000000000086820152a2815183518152602080850151908201527f7f38640c053318bd5c6f1dc8bcf1333e02785c56c51f92858ca2f0a85525d74e9080604081015b0390a251918291829190916020806040830194805184520151910152565b0390f35b9091508482813d831161027e575b61024a81836118e6565b8101031261027b575051837f03f82d41170417faf6491fe5c58bc7ee629443641da1cc67f43d25bbd795508561015a565b80fd5b503d610240565b8351903d90823e3d90fd5b8280fd5b50823461027b5760ff926102a736611a74565b95906103326102cb8751946102bb8661189b565b87865260209a8b80970152611b4d565b94875195869485947f39bd1d8d000000000000000000000000000000000000000000000000000000008652169184016040909392919360608101947f0601020000000000000000000000000000000000000000000000000000000000825260208201520152565b03818560645af1918215610285578092610401575b505061022e937f03f82d41170417faf6491fe5c58bc7ee629443641da1cc67f43d25bbd795508573ffffffffffffffffffffffffffffffffffffffff61038f86606095611c24565b951692839260068651918083528201527f736872323536000000000000000000000000000000000000000000000000000086820152a2815183518152602080850151908201527f7f38640c053318bd5c6f1dc8bcf1333e02785c56c51f92858ca2f0a85525d74e908060408101610210565b9091508482813d831161044a575b61041981836118e6565b8101031261027b575051837f03f82d41170417faf6491fe5c58bc7ee629443641da1cc67f43d25bbd7955085610347565b503d61040f565b50346102905782610461366119ee565b9491906104766100f98651936100e98561189b565b85517f9bda078200000000000000000000000000000000000000000000000000000000815261030360f11b94810194855260208501929092526040840152918290819060600103818560645af191821561028557809261058b575b505061022e937f03f82d41170417faf6491fe5c58bc7ee629443641da1cc67f43d25bbd795508573ffffffffffffffffffffffffffffffffffffffff61051986606095611c24565b951692839260068651918083528201527f6d6178323536000000000000000000000000000000000000000000000000000086820152a2815183518152602080850151908201527f7f38640c053318bd5c6f1dc8bcf1333e02785c56c51f92858ca2f0a85525d74e908060408101610210565b9091508482813d83116105d4575b6105a381836118e6565b8101031261027b575051837f03f82d41170417faf6491fe5c58bc7ee629443641da1cc67f43d25bbd79550856104d1565b503d610599565b503461029057826105eb366119ee565b9491906106006100f98651936100e98561189b565b85517ffb7da35f00000000000000000000000000000000000000000000000000000000815261030360f11b94810194855260208501929092526040840152918290819060600103818560645af1918215610285578092610715575b505061022e937f03f82d41170417faf6491fe5c58bc7ee629443641da1cc67f43d25bbd795508573ffffffffffffffffffffffffffffffffffffffff6106a386606095611c24565b951692839260058651918083528201527f6f7232353600000000000000000000000000000000000000000000000000000086820152a2815183518152602080850151908201527f7f38640c053318bd5c6f1dc8bcf1333e02785c56c51f92858ca2f0a85525d74e908060408101610210565b9091508482813d831161075e575b61072d81836118e6565b8101031261027b575051837f03f82d41170417faf6491fe5c58bc7ee629443641da1cc67f43d25bbd795508561065b565b503d610723565b50346102905782610775366119ee565b94919061078a6100f98651936100e98561189b565b85517f69ca087400000000000000000000000000000000000000000000000000000000815261030360f11b94810194855260208501929092526040840152918290819060600103818560645af191821561028557809261089f575b505061022e937f03f82d41170417faf6491fe5c58bc7ee629443641da1cc67f43d25bbd795508573ffffffffffffffffffffffffffffffffffffffff61082d86606095611c24565b951692839260068651918083528201527f6d696e323536000000000000000000000000000000000000000000000000000086820152a2815183518152602080850151908201527f7f38640c053318bd5c6f1dc8bcf1333e02785c56c51f92858ca2f0a85525d74e908060408101610210565b9091508482813d83116108e8575b6108b781836118e6565b8101031261027b575051837f03f82d41170417faf6491fe5c58bc7ee629443641da1cc67f43d25bbd79550856107e5565b503d6108ad565b503461029057826108ff366119ee565b9491906109146100f98651936100e98561189b565b85517f8c5d015000000000000000000000000000000000000000000000000000000000815261030360f11b94810194855260208501929092526040840152918290819060600103818560645af1918215610285578092610a29575b505061022e937f03f82d41170417faf6491fe5c58bc7ee629443641da1cc67f43d25bbd795508573ffffffffffffffffffffffffffffffffffffffff6109b786606095611c24565b951692839260068651918083528201527f616464323536000000000000000000000000000000000000000000000000000086820152a2815183518152602080850151908201527f7f38640c053318bd5c6f1dc8bcf1333e02785c56c51f92858ca2f0a85525d74e908060408101610210565b9091508482813d8311610a72575b610a4181836118e6565b8101031261027b575051837f03f82d41170417faf6491fe5c58bc7ee629443641da1cc67f43d25bbd795508561096f565b503d610a37565b50346102905782610a89366119ee565b949190610a9e6100f98651936100e98561189b565b85517ffe9c73d100000000000000000000000000000000000000000000000000000000815261030360f11b94810194855260208501929092526040840152918290819060600103818560645af1918215610285578092610bb3575b505061022e937f03f82d41170417faf6491fe5c58bc7ee629443641da1cc67f43d25bbd795508573ffffffffffffffffffffffffffffffffffffffff610b4186606095611c24565b951692839260068651918083528201527f616e64323536000000000000000000000000000000000000000000000000000086820152a2815183518152602080850151908201527f7f38640c053318bd5c6f1dc8bcf1333e02785c56c51f92858ca2f0a85525d74e908060408101610210565b9091508482813d8311610bfc575b610bcb81836118e6565b8101031261027b575051837f03f82d41170417faf6491fe5c58bc7ee629443641da1cc67f43d25bbd7955085610af9565b503d610bc1565b50346102905782610c13366119ee565b949190610c286100f98651936100e98561189b565b85517f6f962e2c00000000000000000000000000000000000000000000000000000000815261030360f11b94810194855260208501929092526040840152918290819060600103818560645af1918215610285578092610d3d575b505061022e937f03f82d41170417faf6491fe5c58bc7ee629443641da1cc67f43d25bbd795508573ffffffffffffffffffffffffffffffffffffffff610ccb86606095611c24565b951692839260068651918083528201527f786f72323536000000000000000000000000000000000000000000000000000086820152a2815183518152602080850151908201527f7f38640c053318bd5c6f1dc8bcf1333e02785c56c51f92858ca2f0a85525d74e908060408101610210565b9091508482813d8311610d86575b610d5581836118e6565b8101031261027b575051837f03f82d41170417faf6491fe5c58bc7ee629443641da1cc67f43d25bbd7955085610c83565b503d610d4b565b50346102905782610d9d366119ee565b949190610db26100f98651936100e98561189b565b85517f7c12a1eb00000000000000000000000000000000000000000000000000000000815261030360f11b94810194855260208501929092526040840152918290819060600103818560645af1918215610285578092610ee0575b505061022e937f03f82d41170417faf6491fe5c58bc7ee629443641da1cc67f43d25bbd795508573ffffffffffffffffffffffffffffffffffffffff610e6e86610e69606096610e5b611d54565b610e63611df3565b91611e8b565b611c24565b951692839260058651918083528201527f657132353600000000000000000000000000000000000000000000000000000086820152a2815183518152602080850151908201527f7f38640c053318bd5c6f1dc8bcf1333e02785c56c51f92858ca2f0a85525d74e908060408101610210565b9091508482813d8311610f29575b610ef881836118e6565b8101031261027b575051837f03f82d41170417faf6491fe5c58bc7ee629443641da1cc67f43d25bbd7955085610e0d565b503d610eee565b50346102905782610f40366119ee565b949190610f556100f98651936100e98561189b565b85517f4e9ba4b500000000000000000000000000000000000000000000000000000000815261030360f11b94810194855260208501929092526040840152918290819060600103818560645af191821561028557809261106a575b505061022e937f03f82d41170417faf6491fe5c58bc7ee629443641da1cc67f43d25bbd795508573ffffffffffffffffffffffffffffffffffffffff610ff886606095611c24565b951692839260068651918083528201527f646976323536000000000000000000000000000000000000000000000000000086820152a2815183518152602080850151908201527f7f38640c053318bd5c6f1dc8bcf1333e02785c56c51f92858ca2f0a85525d74e908060408101610210565b9091508482813d83116110b3575b61108281836118e6565b8101031261027b575051837f03f82d41170417faf6491fe5c58bc7ee629443641da1cc67f43d25bbd7955085610fb0565b503d611078565b503461029057826110ca366119ee565b9491906110df6100f98651936100e98561189b565b85517fdd14869300000000000000000000000000000000000000000000000000000000815261030360f11b94810194855260208501929092526040840152918290819060600103818560645af19182156102855780926111fa575b505061022e937f03f82d41170417faf6491fe5c58bc7ee629443641da1cc67f43d25bbd795508573ffffffffffffffffffffffffffffffffffffffff61118886610e69606096610e5b611d54565b951692839260058651918083528201527f6c7432353600000000000000000000000000000000000000000000000000000086820152a2815183518152602080850151908201527f7f38640c053318bd5c6f1dc8bcf1333e02785c56c51f92858ca2f0a85525d74e908060408101610210565b9091508482813d8311611243575b61121281836118e6565b8101031261027b575051837f03f82d41170417faf6491fe5c58bc7ee629443641da1cc67f43d25bbd795508561113a565b503d611208565b50823461027b5760ff9261125d36611a74565b95906112d86112718751946102bb8661189b565b94875195869485947f1135f71a000000000000000000000000000000000000000000000000000000008652169184016040909392919360608101947f0601020000000000000000000000000000000000000000000000000000000000825260208201520152565b03818560645af19182156102855780926113a7575b505061022e937f03f82d41170417faf6491fe5c58bc7ee629443641da1cc67f43d25bbd795508573ffffffffffffffffffffffffffffffffffffffff61133586606095611c24565b951692839260068651918083528201527f73686c323536000000000000000000000000000000000000000000000000000086820152a2815183518152602080850151908201527f7f38640c053318bd5c6f1dc8bcf1333e02785c56c51f92858ca2f0a85525d74e908060408101610210565b9091508482813d83116113f0575b6113bf81836118e6565b8101031261027b575051837f03f82d41170417faf6491fe5c58bc7ee629443641da1cc67f43d25bbd79550856112ed565b503d6113b5565b50346102905782611407366119ee565b94919061141c6100f98651936100e98561189b565b85517f6d82e45e00000000000000000000000000000000000000000000000000000000815261030360f11b94810194855260208501929092526040840152918290819060600103818560645af1918215610285578092611537575b505061022e937f03f82d41170417faf6491fe5c58bc7ee629443641da1cc67f43d25bbd795508573ffffffffffffffffffffffffffffffffffffffff6114c586610e69606096610e5b611d54565b951692839260058651918083528201527f677432353600000000000000000000000000000000000000000000000000000086820152a2815183518152602080850151908201527f7f38640c053318bd5c6f1dc8bcf1333e02785c56c51f92858ca2f0a85525d74e908060408101610210565b9091508482813d8311611580575b61154f81836118e6565b8101031261027b575051837f03f82d41170417faf6491fe5c58bc7ee629443641da1cc67f43d25bbd7955085611477565b503d611545565b50346102905782611597366119ee565b9491906115ac6100f98651936100e98561189b565b85517f371d1bf200000000000000000000000000000000000000000000000000000000815261030360f11b94810194855260208501929092526040840152918290819060600103818560645af19182156102855780926116c1575b505061022e937f03f82d41170417faf6491fe5c58bc7ee629443641da1cc67f43d25bbd795508573ffffffffffffffffffffffffffffffffffffffff61164f86606095611c24565b951692839260068651918083528201527f737562323536000000000000000000000000000000000000000000000000000086820152a2815183518152602080850151908201527f7f38640c053318bd5c6f1dc8bcf1333e02785c56c51f92858ca2f0a85525d74e908060408101610210565b9091508482813d831161170a575b6116d981836118e6565b8101031261027b575051837f03f82d41170417faf6491fe5c58bc7ee629443641da1cc67f43d25bbd7955085611607565b503d6116cf565b50346102905782611721366119ee565b9491906117366100f98651936100e98561189b565b85517ff1d21bb400000000000000000000000000000000000000000000000000000000815261030360f11b94810194855260208501929092526040840152918290819060600103818560645af191821561028557809261184b575b505061022e937f03f82d41170417faf6491fe5c58bc7ee629443641da1cc67f43d25bbd795508573ffffffffffffffffffffffffffffffffffffffff6117d986606095611c24565b951692839260068651918083528201527f6d756c323536000000000000000000000000000000000000000000000000000086820152a2815183518152602080850151908201527f7f38640c053318bd5c6f1dc8bcf1333e02785c56c51f92858ca2f0a85525d74e908060408101610210565b9091508482813d8311611894575b61186381836118e6565b8101031261027b575051837f03f82d41170417faf6491fe5c58bc7ee629443641da1cc67f43d25bbd7955085611791565b503d611859565b6040810190811067ffffffffffffffff8211176118b757604052565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b90601f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0910116810190811067ffffffffffffffff8211176118b757604052565b919082810392606084126119e9576040516119418161189b565b60408195126119e957604051916119578361189b565b8035835260209283820135848201528252604081013567ffffffffffffffff918282116119e9570184601f820112156119e95780359182116118b757604051946119c8857fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f86011601876118e6565b8286528483830101116119e957816000928580930183880137850101520152565b600080fd5b9060607ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc8301126119e95767ffffffffffffffff6004358181116119e95783611a3991600401611927565b926024359182116119e957611a5091600401611927565b9060443573ffffffffffffffffffffffffffffffffffffffff811681036119e95790565b60607ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc8201126119e9576004359067ffffffffffffffff82116119e957611abd91600401611927565b9060243560ff811681036119e9579060443573ffffffffffffffffffffffffffffffffffffffff811681036119e95790565b919082519283825260005b848110611b395750507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f8460006020809697860101520116010190565b602081830181015184830182015201611afa565b80519081519160209182808093015191015193611bcf60405195869384937f0135e4660000000000000000000000000000000000000000000000000000000085527f0600000000000000000000000000000000000000000000000000000000000000600486015260248501526044840152608060648401526084830190611aef565b0381600060645af1908115611c1857600091611bec575b50905090565b82813d8311611c11575b611c0081836118e6565b8101031261027b5750518038611be6565b503d611bf6565b6040513d6000823e3d90fd5b60408051602093611ce4938392611c3a8161189b565b600096818880935201527fffffffffffffffffffffffffffffffffffffffff00000000000000000000000083519260601b16602083015260148252611c7e8261189b565b825194859283927fe5c833130000000000000000000000000000000000000000000000000000000084527f060000000000000000000000000000000000000000000000000000000000000060048501526024840152606060448401526064830190611aef565b03818660645af1918215611d4a57838093611d11575b50505191611d078361189b565b8252602082015290565b91925092508183813d8311611d43575b611d2b81836118e6565b8101031261027b575060208251920151903880611cfa565b503d611d21565b81513d85823e3d90fd5b6040517fd9b60b600000000000000000000000000000000000000000000000000000000081527f0600000000000000000000000000000000000000000000000000000000000000600482015260016024820152602081604481600060645af1908115611c1857600091611dc5575090565b906020823d8211611deb575b81611dde602093836118e6565b8101031261027b57505190565b3d9150611dd1565b6040517fd9b60b600000000000000000000000000000000000000000000000000000000081527f060000000000000000000000000000000000000000000000000000000000000060048201526000908160248201526020816044818560645af1918215611e7f578092611e6557505090565b9091506020823d8211611deb5781611dde602093836118e6565b604051903d90823e3d90fd5b9190604051927f20cc408d00000000000000000000000000000000000000000000000000000000845261030360f11b6004850152602484015260448301526064820152602081608481600060645af1908115611c1857600091611dc557509056fea164736f6c6343000813000a";
1359
+
1360
+ type MpcOperationsTestContractConstructorParams =
1361
+ | [signer?: Signer]
1362
+ | ConstructorParameters<typeof ContractFactory>;
1363
+
1364
+ const isSuperArgs = (
1365
+ xs: MpcOperationsTestContractConstructorParams
1366
+ ): xs is ConstructorParameters<typeof ContractFactory> => xs.length > 1;
1367
+
1368
+ export class MpcOperationsTestContract__factory extends ContractFactory {
1369
+ constructor(...args: MpcOperationsTestContractConstructorParams) {
1370
+ if (isSuperArgs(args)) {
1371
+ super(...args);
1372
+ } else {
1373
+ super(_abi, _bytecode, args[0]);
1374
+ }
1375
+ }
1376
+
1377
+ override getDeployTransaction(
1378
+ overrides?: NonPayableOverrides & { from?: string }
1379
+ ): Promise<ContractDeployTransaction> {
1380
+ return super.getDeployTransaction(overrides || {});
1381
+ }
1382
+ override deploy(overrides?: NonPayableOverrides & { from?: string }) {
1383
+ return super.deploy(overrides || {}) as Promise<
1384
+ MpcOperationsTestContract & {
1385
+ deploymentTransaction(): ContractTransactionResponse;
1386
+ }
1387
+ >;
1388
+ }
1389
+ override connect(
1390
+ runner: ContractRunner | null
1391
+ ): MpcOperationsTestContract__factory {
1392
+ return super.connect(runner) as MpcOperationsTestContract__factory;
1393
+ }
1394
+
1395
+ static readonly bytecode = _bytecode;
1396
+ static readonly abi = _abi;
1397
+ static createInterface(): MpcOperationsTestContractInterface {
1398
+ return new Interface(_abi) as MpcOperationsTestContractInterface;
1399
+ }
1400
+ static connect(
1401
+ address: string,
1402
+ runner?: ContractRunner | null
1403
+ ): MpcOperationsTestContract {
1404
+ return new Contract(
1405
+ address,
1406
+ _abi,
1407
+ runner
1408
+ ) as unknown as MpcOperationsTestContract;
1409
+ }
1410
+ }