@coti-io/coti-contracts 1.2.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 (267) hide show
  1. package/.github/workflows/npm-publish.yml +1 -1
  2. package/contracts/messaging/PrivateMessaging.sol +456 -0
  3. package/contracts/mocks/messaging/PrivateMessagingHarness.sol +54 -0
  4. package/contracts/mocks/oracle/CotiPriceConsumerMock.sol +31 -0
  5. package/contracts/mocks/token/ERC20DecimalsMock.sol +21 -0
  6. package/contracts/mocks/token/PrivateERC20/PrivacyBridgeERC20Mock.sol +8 -3
  7. package/contracts/node/SoulboundNodeNFT.sol +22 -22
  8. package/contracts/oracle/CotiPriceConsumer.sol +103 -0
  9. package/contracts/oracle/ICotiPriceConsumer.sol +15 -0
  10. package/contracts/oracle/IStdReference.sol +26 -0
  11. package/contracts/privacyBridge/PrivacyBridge.sol +373 -91
  12. package/contracts/privacyBridge/PrivacyBridgeCotiNative.sol +209 -161
  13. package/contracts/privacyBridge/PrivacyBridgeERC20.sol +241 -159
  14. package/contracts/privacyBridge/PrivacyBridgeUSDCe.sol +7 -1
  15. package/contracts/privacyBridge/PrivacyBridgeUSDT.sol +7 -1
  16. package/contracts/privacyBridge/PrivacyBridgeWADA.sol +7 -1
  17. package/contracts/privacyBridge/PrivacyBridgeWBTC.sol +7 -1
  18. package/contracts/privacyBridge/PrivacyBridgeWETH.sol +7 -1
  19. package/contracts/privacyBridge/PrivacyBridgegCoti.sol +7 -1
  20. package/hardhat.config.ts +5 -2
  21. package/package.json +2 -2
  22. package/scripts/add-bridge-operators.cjs +87 -0
  23. package/scripts/deploy-coti-price-consumer-mainnet.cjs +49 -0
  24. package/scripts/deployCotiNodeRewards.ts +51 -0
  25. package/scripts/redeploy-private-and-bridges.cjs +201 -0
  26. package/scripts/set-bridge-limits-mainnet.cjs +177 -0
  27. package/scripts/verify-mainnet-private-bridges.cjs +289 -0
  28. package/sonar-project.properties +11 -0
  29. package/test/messaging/PrivateMessaging.test.ts +158 -0
  30. package/test/privacyBridge/UnifiedPrivacyBridges.test.cjs +1663 -0
  31. package/test/token/PrivateERC20/PrivacyBridge.fees.test.ts +162 -239
  32. package/typechain-types/@openzeppelin/contracts/access/AccessControl.ts +324 -0
  33. package/typechain-types/@openzeppelin/contracts/access/AccessControlEnumerable.ts +361 -0
  34. package/typechain-types/@openzeppelin/contracts/access/IAccessControl.ts +292 -0
  35. package/typechain-types/@openzeppelin/contracts/access/IAccessControlEnumerable.ts +329 -0
  36. package/typechain-types/@openzeppelin/contracts/access/index.ts +4 -0
  37. package/typechain-types/@openzeppelin/contracts/index.ts +2 -0
  38. package/typechain-types/@openzeppelin/contracts/security/Pausable.ts +150 -0
  39. package/typechain-types/@openzeppelin/contracts/security/index.ts +4 -0
  40. package/typechain-types/@openzeppelin/contracts/token/ERC20/ERC20.ts +330 -0
  41. package/typechain-types/@openzeppelin/contracts/token/ERC20/extensions/IERC20Metadata.ts +286 -0
  42. package/typechain-types/@openzeppelin/contracts/token/ERC20/extensions/index.ts +1 -0
  43. package/typechain-types/@openzeppelin/contracts/token/ERC20/index.ts +1 -0
  44. package/typechain-types/@openzeppelin/contracts/token/ERC721/ERC721.ts +420 -0
  45. package/typechain-types/@openzeppelin/contracts/token/ERC721/extensions/IERC721Metadata.ts +420 -0
  46. package/typechain-types/@openzeppelin/contracts/token/ERC721/extensions/index.ts +4 -0
  47. package/typechain-types/@openzeppelin/contracts/token/ERC721/index.ts +3 -0
  48. package/typechain-types/contracts/disperse/coinByRatio/FixedRatioCoinDisperserLeftoverS1.ts +735 -0
  49. package/typechain-types/contracts/disperse/coinByRatio/FixedRatioCoinDisperserUnlimitedWindow.ts +734 -0
  50. package/typechain-types/contracts/disperse/coinByRatio/index.ts +2 -0
  51. package/typechain-types/contracts/disperse/disperseToken/MintDisperser.sol/IOwnable.ts +95 -0
  52. package/typechain-types/contracts/disperse/disperseToken/MintDisperser.sol/MintDisperser.ts +22 -0
  53. package/typechain-types/contracts/disperse/disperseToken/MintDisperser.sol/index.ts +1 -0
  54. package/typechain-types/contracts/index.ts +8 -0
  55. package/typechain-types/contracts/messaging/PrivateMessaging.ts +871 -0
  56. package/typechain-types/contracts/messaging/index.ts +4 -0
  57. package/typechain-types/contracts/mocks/index.ts +4 -0
  58. package/typechain-types/contracts/mocks/messaging/PrivateMessagingHarness.ts +951 -0
  59. package/typechain-types/contracts/mocks/messaging/index.ts +4 -0
  60. package/typechain-types/contracts/mocks/oracle/CotiPriceConsumerMock.ts +163 -0
  61. package/typechain-types/contracts/mocks/oracle/index.ts +4 -0
  62. package/typechain-types/contracts/mocks/token/ERC20DecimalsMock.ts +349 -0
  63. package/typechain-types/contracts/mocks/token/ERC20Mock.ts +368 -0
  64. package/typechain-types/contracts/mocks/token/PrivateERC20/EncryptedTokenReceiverMock.ts +108 -0
  65. package/typechain-types/contracts/mocks/token/PrivateERC20/PrivacyBridgeERC20Mock.ts +1892 -0
  66. package/typechain-types/contracts/mocks/token/PrivateERC20/PrivateERC20AuditorSupplyMock.ts +1296 -0
  67. package/typechain-types/contracts/mocks/token/PrivateERC20/PrivateERC20CappedMock.ts +1270 -0
  68. package/typechain-types/contracts/mocks/{utils/mpc/Bitwise128BitTestsContract.ts → token/PrivateERC20/PrivateERC20GtCallerMock.ts} +47 -67
  69. package/typechain-types/contracts/mocks/token/PrivateERC20/PrivateERC20Mock.ts +757 -25
  70. package/typechain-types/contracts/mocks/token/PrivateERC20/PrivateERC20ReentrantReceiverMock.sol/IPrivateERC20TransferAndCallEncrypted.ts +102 -0
  71. package/typechain-types/contracts/mocks/token/PrivateERC20/PrivateERC20ReentrantReceiverMock.sol/PrivateERC20ReentrantReceiverMock.ts +154 -0
  72. package/typechain-types/contracts/mocks/token/PrivateERC20/PrivateERC20ReentrantReceiverMock.sol/index.ts +5 -0
  73. package/typechain-types/contracts/mocks/token/PrivateERC20/PublicReentrantTokenReceiverMock.ts +155 -0
  74. package/typechain-types/contracts/mocks/token/PrivateERC20/PublicTokenReceiverBoolMock.ts +107 -0
  75. package/typechain-types/contracts/mocks/token/PrivateERC20/PublicTokenReceiverMock.ts +100 -0
  76. package/typechain-types/contracts/mocks/token/PrivateERC20/index.ts +10 -0
  77. package/typechain-types/contracts/mocks/token/index.ts +2 -0
  78. package/typechain-types/contracts/mocks/wallet/PrivateERC20Wallet/PrivateERC20WalletMock.ts +6 -6
  79. package/typechain-types/contracts/node/CotiNodeRewards.ts +566 -0
  80. package/typechain-types/contracts/node/SoulboundNodeNFT.sol/IERC5192.ts +123 -0
  81. package/typechain-types/contracts/node/SoulboundNodeNFT.sol/SoulboundNodeNFT.ts +975 -0
  82. package/typechain-types/contracts/node/SoulboundNodeNFT.sol/index.ts +5 -0
  83. package/typechain-types/contracts/node/index.ts +6 -0
  84. package/typechain-types/contracts/oracle/CotiPriceConsumer.ts +256 -0
  85. package/typechain-types/contracts/oracle/ICotiPriceConsumer.ts +119 -0
  86. package/typechain-types/contracts/oracle/IStdReference.ts +136 -0
  87. package/typechain-types/contracts/oracle/index.ts +6 -0
  88. package/typechain-types/contracts/privacyBridge/PrivacyBridge.ts +1628 -0
  89. package/typechain-types/contracts/privacyBridge/PrivacyBridgeCotiNative.ts +1870 -0
  90. package/typechain-types/contracts/privacyBridge/PrivacyBridgeERC20.sol/IHasDecimals.ts +84 -0
  91. package/typechain-types/contracts/privacyBridge/PrivacyBridgeERC20.sol/PrivacyBridgeERC20.ts +1892 -0
  92. package/typechain-types/contracts/privacyBridge/PrivacyBridgeERC20.sol/index.ts +5 -0
  93. package/typechain-types/contracts/privacyBridge/PrivacyBridgeUSDCe.ts +1892 -0
  94. package/typechain-types/contracts/privacyBridge/PrivacyBridgeUSDT.ts +1892 -0
  95. package/typechain-types/contracts/privacyBridge/PrivacyBridgeWADA.ts +1892 -0
  96. package/typechain-types/contracts/privacyBridge/PrivacyBridgeWBTC.ts +1892 -0
  97. package/typechain-types/contracts/privacyBridge/PrivacyBridgeWETH.ts +1892 -0
  98. package/typechain-types/contracts/privacyBridge/PrivacyBridgegCoti.ts +1892 -0
  99. package/typechain-types/contracts/privacyBridge/index.ts +13 -0
  100. package/typechain-types/contracts/token/PrivateERC20/IPrivateERC20.ts +439 -19
  101. package/typechain-types/contracts/token/PrivateERC20/ITokenReceiver.ts +100 -0
  102. package/typechain-types/contracts/token/PrivateERC20/ITokenReceiverEncrypted.ts +99 -0
  103. package/typechain-types/contracts/token/PrivateERC20/PrivateERC20.ts +763 -15
  104. package/typechain-types/contracts/token/PrivateERC20/index.ts +4 -0
  105. package/typechain-types/contracts/token/PrivateERC20/tokens/PrivateBridgedUSDC.ts +1270 -0
  106. package/typechain-types/contracts/token/PrivateERC20/tokens/PrivateCOTI.ts +1270 -0
  107. package/typechain-types/contracts/token/PrivateERC20/tokens/PrivateCOTITreasuryGovernanceToken.ts +1270 -0
  108. package/typechain-types/contracts/token/PrivateERC20/tokens/PrivateTetherUSD.ts +1270 -0
  109. package/typechain-types/contracts/token/PrivateERC20/tokens/PrivateWrappedADA.ts +1270 -0
  110. package/typechain-types/contracts/token/PrivateERC20/tokens/PrivateWrappedBTC.ts +1270 -0
  111. package/typechain-types/contracts/token/PrivateERC20/tokens/PrivateWrappedEther.ts +1270 -0
  112. package/typechain-types/contracts/token/PrivateERC20/tokens/index.ts +10 -0
  113. package/typechain-types/factories/@openzeppelin/contracts/access/AccessControlEnumerable__factory.ts +276 -0
  114. package/typechain-types/factories/@openzeppelin/contracts/access/AccessControl__factory.ts +229 -0
  115. package/typechain-types/factories/@openzeppelin/contracts/access/IAccessControlEnumerable__factory.ts +244 -0
  116. package/typechain-types/factories/@openzeppelin/contracts/access/IAccessControl__factory.ts +197 -0
  117. package/typechain-types/factories/@openzeppelin/contracts/access/index.ts +4 -0
  118. package/typechain-types/factories/@openzeppelin/contracts/index.ts +1 -0
  119. package/typechain-types/factories/@openzeppelin/contracts/security/Pausable__factory.ts +61 -0
  120. package/typechain-types/factories/@openzeppelin/contracts/security/index.ts +4 -0
  121. package/typechain-types/factories/@openzeppelin/contracts/token/ERC20/ERC20__factory.ts +356 -0
  122. package/typechain-types/factories/@openzeppelin/contracts/token/ERC20/extensions/IERC20Metadata__factory.ts +247 -0
  123. package/typechain-types/factories/@openzeppelin/contracts/token/ERC20/extensions/index.ts +1 -0
  124. package/typechain-types/factories/@openzeppelin/contracts/token/ERC20/index.ts +1 -0
  125. package/typechain-types/factories/@openzeppelin/contracts/token/ERC721/ERC721__factory.ts +416 -0
  126. package/typechain-types/factories/@openzeppelin/contracts/token/ERC721/extensions/IERC721Metadata__factory.ts +355 -0
  127. package/typechain-types/factories/@openzeppelin/contracts/token/ERC721/extensions/index.ts +4 -0
  128. package/typechain-types/factories/@openzeppelin/contracts/token/ERC721/index.ts +2 -0
  129. package/typechain-types/factories/contracts/disperse/coinByRatio/FixedRatioCoinDisperserLeftoverS1__factory.ts +791 -0
  130. package/typechain-types/factories/contracts/disperse/coinByRatio/FixedRatioCoinDisperserUnlimitedWindow__factory.ts +711 -0
  131. package/typechain-types/factories/contracts/disperse/coinByRatio/FixedRatioCoinDisperser__factory.ts +1 -1
  132. package/typechain-types/factories/contracts/disperse/coinByRatio/index.ts +2 -0
  133. package/typechain-types/factories/contracts/disperse/disperseToken/MintDisperser.sol/IOwnable__factory.ts +35 -0
  134. package/typechain-types/factories/contracts/disperse/disperseToken/MintDisperser.sol/MintDisperser__factory.ts +19 -1
  135. package/typechain-types/factories/contracts/disperse/disperseToken/MintDisperser.sol/index.ts +1 -0
  136. package/typechain-types/factories/contracts/disperse/disperseToken/TokenDisperser__factory.ts +1 -1
  137. package/typechain-types/factories/contracts/index.ts +4 -0
  138. package/typechain-types/factories/contracts/messaging/PrivateMessaging__factory.ts +1035 -0
  139. package/typechain-types/factories/contracts/messaging/index.ts +4 -0
  140. package/typechain-types/factories/contracts/mocks/access/DataPrivacyFramework/DataPrivacyFrameworkMock__factory.ts +1 -1
  141. package/typechain-types/factories/contracts/mocks/index.ts +2 -0
  142. package/typechain-types/factories/contracts/mocks/messaging/PrivateMessagingHarness__factory.ts +1161 -0
  143. package/typechain-types/factories/contracts/mocks/messaging/index.ts +4 -0
  144. package/typechain-types/factories/contracts/mocks/oracle/CotiPriceConsumerMock__factory.ts +159 -0
  145. package/typechain-types/factories/contracts/mocks/oracle/index.ts +4 -0
  146. package/typechain-types/factories/contracts/mocks/token/ERC20DecimalsMock__factory.ts +394 -0
  147. package/typechain-types/factories/contracts/mocks/token/ERC20Mock__factory.ts +392 -0
  148. package/typechain-types/factories/contracts/mocks/token/PrivateERC20/EncryptedTokenReceiverMock__factory.ts +125 -0
  149. package/typechain-types/factories/contracts/mocks/token/PrivateERC20/PrivacyBridgeERC20Mock__factory.ts +1797 -0
  150. package/typechain-types/factories/contracts/mocks/token/PrivateERC20/PrivateERC20AuditorSupplyMock__factory.ts +1514 -0
  151. package/typechain-types/factories/contracts/mocks/token/PrivateERC20/PrivateERC20CappedMock__factory.ts +1466 -0
  152. package/typechain-types/factories/contracts/mocks/token/PrivateERC20/PrivateERC20GtCallerMock__factory.ts +165 -0
  153. package/typechain-types/factories/contracts/mocks/token/PrivateERC20/PrivateERC20Mock__factory.ts +771 -55
  154. package/typechain-types/factories/contracts/mocks/token/PrivateERC20/PrivateERC20ReentrantReceiverMock.sol/IPrivateERC20TransferAndCallEncrypted__factory.ts +54 -0
  155. package/typechain-types/factories/contracts/mocks/token/PrivateERC20/PrivateERC20ReentrantReceiverMock.sol/PrivateERC20ReentrantReceiverMock__factory.ts +159 -0
  156. package/typechain-types/factories/contracts/mocks/token/PrivateERC20/PrivateERC20ReentrantReceiverMock.sol/index.ts +5 -0
  157. package/typechain-types/factories/contracts/mocks/token/PrivateERC20/PublicReentrantTokenReceiverMock__factory.ts +164 -0
  158. package/typechain-types/factories/contracts/mocks/token/PrivateERC20/PublicTokenReceiverBoolMock__factory.ts +130 -0
  159. package/typechain-types/factories/contracts/mocks/token/PrivateERC20/PublicTokenReceiverMock__factory.ts +102 -0
  160. package/typechain-types/factories/contracts/mocks/token/PrivateERC20/index.ts +9 -0
  161. package/typechain-types/factories/contracts/mocks/token/PrivateERC721/PrivateERC721URIStorageMock__factory.ts +1 -1
  162. package/typechain-types/factories/contracts/mocks/token/index.ts +2 -0
  163. package/typechain-types/factories/contracts/mocks/utils/mpc/Arithmetic128TestsContract__factory.ts +1 -1
  164. package/typechain-types/factories/contracts/mocks/utils/mpc/Arithmetic256TestsContract__factory.ts +1 -1
  165. package/typechain-types/factories/contracts/mocks/utils/mpc/ArithmeticTestsContract__factory.ts +1 -1
  166. package/typechain-types/factories/contracts/mocks/utils/mpc/Bitwise128TestsContract__factory.ts +1 -1
  167. package/typechain-types/factories/contracts/mocks/utils/mpc/Bitwise256TestsContract__factory.ts +1 -1
  168. package/typechain-types/factories/contracts/mocks/utils/mpc/BitwiseTestsContract__factory.ts +1 -1
  169. package/typechain-types/factories/contracts/mocks/utils/mpc/CheckedArithmetic128WithOverflowBitTestsContract__factory.ts +1 -1
  170. package/typechain-types/factories/contracts/mocks/utils/mpc/CheckedArithmetic256WithOverflowBitTestsContract__factory.ts +1 -1
  171. package/typechain-types/factories/contracts/mocks/utils/mpc/CheckedArithmeticWIthOverflowBitTestsContract.sol/CheckedArithmeticWithOverflowBitTestsContract__factory.ts +1 -1
  172. package/typechain-types/factories/contracts/mocks/utils/mpc/Comparison128TestsContract__factory.ts +1 -1
  173. package/typechain-types/factories/contracts/mocks/utils/mpc/Comparison1TestsContract__factory.ts +1 -1
  174. package/typechain-types/factories/contracts/mocks/utils/mpc/Comparison256TestsContract__factory.ts +1 -1
  175. package/typechain-types/factories/contracts/mocks/utils/mpc/Comparison2TestsContract__factory.ts +1 -1
  176. package/typechain-types/factories/contracts/mocks/utils/mpc/MinMax128TestsContract__factory.ts +1 -1
  177. package/typechain-types/factories/contracts/mocks/utils/mpc/MinMax256TestsContract__factory.ts +1 -1
  178. package/typechain-types/factories/contracts/mocks/utils/mpc/MinMaxTestsContract__factory.ts +1 -1
  179. package/typechain-types/factories/contracts/mocks/utils/mpc/MinimalImplementation__factory.ts +1 -1
  180. package/typechain-types/factories/contracts/mocks/utils/mpc/MinimalProxy__factory.ts +1 -1
  181. package/typechain-types/factories/contracts/mocks/utils/mpc/Miscellaneous1TestsContract__factory.ts +1 -1
  182. package/typechain-types/factories/contracts/mocks/utils/mpc/MiscellaneousTestsContract__factory.ts +1 -1
  183. package/typechain-types/factories/contracts/mocks/utils/mpc/MpcOperations128TestContract__factory.ts +1 -1
  184. package/typechain-types/factories/contracts/mocks/utils/mpc/MpcOperationsTestContract__factory.ts +1 -1
  185. package/typechain-types/factories/contracts/mocks/utils/mpc/Mux128TestsContract__factory.ts +1 -1
  186. package/typechain-types/factories/contracts/mocks/utils/mpc/Mux256TestsContract__factory.ts +1 -1
  187. package/typechain-types/factories/contracts/mocks/utils/mpc/OffboardToUserKeyTestContract__factory.ts +1 -1
  188. package/typechain-types/factories/contracts/mocks/utils/mpc/OnBoard128TestsContract__factory.ts +1 -1
  189. package/typechain-types/factories/contracts/mocks/utils/mpc/OnBoard256TestsContract__factory.ts +1 -1
  190. package/typechain-types/factories/contracts/mocks/utils/mpc/PrivacyImplementationV1__factory.ts +1 -1
  191. package/typechain-types/factories/contracts/mocks/utils/mpc/PrivacyImplementationV2__factory.ts +1 -1
  192. package/typechain-types/factories/contracts/mocks/utils/mpc/PrivacyProxy__factory.ts +1 -1
  193. package/typechain-types/factories/contracts/mocks/utils/mpc/Random128TestsContract__factory.ts +1 -1
  194. package/typechain-types/factories/contracts/mocks/utils/mpc/Random256TestsContract__factory.ts +1 -1
  195. package/typechain-types/factories/contracts/mocks/utils/mpc/Shift128TestsContract__factory.ts +1 -1
  196. package/typechain-types/factories/contracts/mocks/utils/mpc/Shift256TestsContract__factory.ts +1 -1
  197. package/typechain-types/factories/contracts/mocks/utils/mpc/ShiftTestsContract__factory.ts +1 -1
  198. package/typechain-types/factories/contracts/mocks/utils/mpc/StringTestsContract__factory.ts +1 -1
  199. package/typechain-types/factories/contracts/mocks/utils/mpc/Transfer128TestsContract__factory.ts +1 -1
  200. package/typechain-types/factories/contracts/mocks/utils/mpc/Transfer256TestsContract__factory.ts +1 -1
  201. package/typechain-types/factories/contracts/mocks/utils/mpc/TransferScalarTestsContract__factory.ts +1 -1
  202. package/typechain-types/factories/contracts/mocks/utils/mpc/TransferTestsContract__factory.ts +1 -1
  203. package/typechain-types/factories/contracts/mocks/utils/mpc/TransferWithAllowance128TestsContract__factory.ts +1 -1
  204. package/typechain-types/factories/contracts/mocks/utils/mpc/TransferWithAllowance256TestsContract__factory.ts +1 -1
  205. package/typechain-types/factories/contracts/mocks/utils/mpc/TransferWithAllowance64_16TestsContract__factory.ts +1 -1
  206. package/typechain-types/factories/contracts/mocks/utils/mpc/TransferWithAllowance64_32TestsContract__factory.ts +1 -1
  207. package/typechain-types/factories/contracts/mocks/utils/mpc/TransferWithAllowance64_64TestsContract__factory.ts +1 -1
  208. package/typechain-types/factories/contracts/mocks/utils/mpc/TransferWithAllowance64_8TestsContract__factory.ts +1 -1
  209. package/typechain-types/factories/contracts/mocks/utils/mpc/TransferWithAllowanceScalarTestsContract__factory.ts +1 -1
  210. package/typechain-types/factories/contracts/mocks/utils/mpc/TransferWithAllowanceTestsContract__factory.ts +1 -1
  211. package/typechain-types/factories/contracts/mocks/utils/mpc/ValidateCiphertext128TestsContract__factory.ts +1 -1
  212. package/typechain-types/factories/contracts/mocks/utils/mpc/ValidateCiphertext256TestsContract__factory.ts +1 -1
  213. package/typechain-types/factories/contracts/mocks/utils/mpc/ValidateCiphertextTestsContract__factory.ts +1 -1
  214. package/typechain-types/factories/contracts/mocks/wallet/PrivateERC20Wallet/PrivateERC20WalletMock__factory.ts +4 -22
  215. package/typechain-types/factories/contracts/node/CotiNodeRewards__factory.ts +549 -0
  216. package/typechain-types/factories/contracts/node/SoulboundNodeNFT.sol/IERC5192__factory.ts +54 -0
  217. package/typechain-types/factories/contracts/node/SoulboundNodeNFT.sol/SoulboundNodeNFT__factory.ts +947 -0
  218. package/typechain-types/factories/contracts/node/SoulboundNodeNFT.sol/index.ts +5 -0
  219. package/typechain-types/factories/contracts/node/index.ts +5 -0
  220. package/typechain-types/factories/contracts/onboard/AccountOnboard__factory.ts +1 -1
  221. package/typechain-types/factories/contracts/oracle/CotiPriceConsumer__factory.ts +295 -0
  222. package/typechain-types/factories/contracts/oracle/ICotiPriceConsumer__factory.ts +73 -0
  223. package/typechain-types/factories/contracts/oracle/IStdReference__factory.ts +107 -0
  224. package/typechain-types/factories/contracts/oracle/index.ts +6 -0
  225. package/typechain-types/factories/contracts/privacyBridge/PrivacyBridgeCotiNative__factory.ts +1676 -0
  226. package/typechain-types/factories/contracts/privacyBridge/PrivacyBridgeERC20.sol/IHasDecimals__factory.ts +38 -0
  227. package/typechain-types/factories/contracts/privacyBridge/PrivacyBridgeERC20.sol/PrivacyBridgeERC20__factory.ts +1678 -0
  228. package/typechain-types/factories/contracts/privacyBridge/PrivacyBridgeERC20.sol/index.ts +5 -0
  229. package/typechain-types/factories/contracts/privacyBridge/PrivacyBridgeUSDCe__factory.ts +1782 -0
  230. package/typechain-types/factories/contracts/privacyBridge/PrivacyBridgeUSDT__factory.ts +1782 -0
  231. package/typechain-types/factories/contracts/privacyBridge/PrivacyBridgeWADA__factory.ts +1782 -0
  232. package/typechain-types/factories/contracts/privacyBridge/PrivacyBridgeWBTC__factory.ts +1782 -0
  233. package/typechain-types/factories/contracts/privacyBridge/PrivacyBridgeWETH__factory.ts +1782 -0
  234. package/typechain-types/factories/contracts/privacyBridge/PrivacyBridge__factory.ts +1367 -0
  235. package/typechain-types/factories/contracts/privacyBridge/PrivacyBridgegCoti__factory.ts +1782 -0
  236. package/typechain-types/factories/contracts/privacyBridge/index.ts +12 -0
  237. package/typechain-types/factories/contracts/token/PrivateERC20/IPrivateERC20__factory.ts +481 -35
  238. package/typechain-types/factories/contracts/token/PrivateERC20/ITokenReceiverEncrypted__factory.ts +53 -0
  239. package/typechain-types/factories/contracts/token/PrivateERC20/ITokenReceiver__factory.ts +54 -0
  240. package/typechain-types/factories/contracts/token/PrivateERC20/PrivateERC20__factory.ts +793 -59
  241. package/typechain-types/factories/contracts/token/PrivateERC20/index.ts +3 -0
  242. package/typechain-types/factories/contracts/token/PrivateERC20/tokens/PrivateBridgedUSDC__factory.ts +1445 -0
  243. package/typechain-types/factories/contracts/token/PrivateERC20/tokens/PrivateCOTITreasuryGovernanceToken__factory.ts +1451 -0
  244. package/typechain-types/factories/contracts/token/PrivateERC20/tokens/PrivateCOTI__factory.ts +1442 -0
  245. package/typechain-types/factories/contracts/token/PrivateERC20/tokens/PrivateTetherUSD__factory.ts +1445 -0
  246. package/typechain-types/factories/contracts/token/PrivateERC20/tokens/PrivateWrappedADA__factory.ts +1445 -0
  247. package/typechain-types/factories/contracts/token/PrivateERC20/tokens/PrivateWrappedBTC__factory.ts +1445 -0
  248. package/typechain-types/factories/contracts/token/PrivateERC20/tokens/PrivateWrappedEther__factory.ts +1451 -0
  249. package/typechain-types/factories/contracts/token/PrivateERC20/tokens/index.ts +10 -0
  250. package/typechain-types/factories/contracts/utils/mpc/MpcCore__factory.ts +1 -1
  251. package/typechain-types/hardhat.d.ts +953 -17
  252. package/typechain-types/index.ts +104 -0
  253. package/typechain-types/contracts/mocks/utils/mpc/Arithmetic128BitTestsContract.ts +0 -341
  254. package/typechain-types/contracts/mocks/utils/mpc/Arithmetic256BitTestsContract.ts +0 -347
  255. package/typechain-types/contracts/mocks/utils/mpc/Bitwise256BitTestsContract.ts +0 -186
  256. package/typechain-types/contracts/mocks/utils/mpc/Comparison128BitTestsContract.ts +0 -260
  257. package/typechain-types/contracts/mocks/utils/mpc/Comparison256BitTestsContract.ts +0 -260
  258. package/typechain-types/contracts/mocks/utils/mpc/Miscellaneous128BitTestsContract.ts +0 -302
  259. package/typechain-types/contracts/mocks/utils/mpc/Miscellaneous256BitTestsContract.ts +0 -322
  260. package/typechain-types/factories/contracts/mocks/utils/mpc/Arithmetic128BitTestsContract__factory.ts +0 -349
  261. package/typechain-types/factories/contracts/mocks/utils/mpc/Arithmetic256BitTestsContract__factory.ts +0 -364
  262. package/typechain-types/factories/contracts/mocks/utils/mpc/Bitwise128BitTestsContract__factory.ts +0 -182
  263. package/typechain-types/factories/contracts/mocks/utils/mpc/Bitwise256BitTestsContract__factory.ts +0 -182
  264. package/typechain-types/factories/contracts/mocks/utils/mpc/Comparison128BitTestsContract__factory.ts +0 -255
  265. package/typechain-types/factories/contracts/mocks/utils/mpc/Comparison256BitTestsContract__factory.ts +0 -255
  266. package/typechain-types/factories/contracts/mocks/utils/mpc/Miscellaneous128BitTestsContract__factory.ts +0 -332
  267. package/typechain-types/factories/contracts/mocks/utils/mpc/Miscellaneous256BitTestsContract__factory.ts +0 -380
@@ -0,0 +1,1892 @@
1
+ /* Autogenerated file. Do not edit manually. */
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ import type {
5
+ BaseContract,
6
+ BigNumberish,
7
+ BytesLike,
8
+ FunctionFragment,
9
+ Result,
10
+ Interface,
11
+ EventFragment,
12
+ AddressLike,
13
+ ContractRunner,
14
+ ContractMethod,
15
+ Listener,
16
+ } from "ethers";
17
+ import type {
18
+ TypedContractEvent,
19
+ TypedDeferredTopicFilter,
20
+ TypedEventLog,
21
+ TypedLogDescription,
22
+ TypedListener,
23
+ TypedContractMethod,
24
+ } from "../../../common";
25
+
26
+ export interface PrivacyBridgeERC20Interface extends Interface {
27
+ getFunction(
28
+ nameOrSignature:
29
+ | "DEFAULT_ADMIN_ROLE"
30
+ | "DEFAULT_MAX_ORACLE_AGE"
31
+ | "FEE_DIVISOR"
32
+ | "MAX_FEE_UNITS"
33
+ | "OPERATOR_ROLE"
34
+ | "accumulatedCotiFees"
35
+ | "addOperator"
36
+ | "addToBlacklist"
37
+ | "blacklisted"
38
+ | "claimRefundableNativeExcess"
39
+ | "computeErc20Fee"
40
+ | "deposit"
41
+ | "depositFixedFee"
42
+ | "depositMaxFee"
43
+ | "depositPercentageBps"
44
+ | "estimateDepositFee"
45
+ | "estimateWithdrawFee"
46
+ | "feeRecipient"
47
+ | "getRoleAdmin"
48
+ | "getRoleMember"
49
+ | "getRoleMemberCount"
50
+ | "grantRole"
51
+ | "hasRole"
52
+ | "isDepositEnabled"
53
+ | "isOperator"
54
+ | "maxDepositAmount"
55
+ | "maxOracleAge"
56
+ | "maxWithdrawAmount"
57
+ | "minDepositAmount"
58
+ | "minWithdrawAmount"
59
+ | "owner"
60
+ | "pause"
61
+ | "paused"
62
+ | "priceOracle"
63
+ | "privateToken"
64
+ | "refundableNativeExcess"
65
+ | "removeFromBlacklist"
66
+ | "removeOperator"
67
+ | "renounceOwnership"
68
+ | "renounceRole"
69
+ | "rescueERC20"
70
+ | "rescueRecipient"
71
+ | "revokeRole"
72
+ | "setDepositDynamicFee"
73
+ | "setIsDepositEnabled"
74
+ | "setLimits"
75
+ | "setMaxOracleAge"
76
+ | "setPriceOracle"
77
+ | "setWithdrawDynamicFee"
78
+ | "supportsInterface"
79
+ | "token"
80
+ | "tokenSymbol"
81
+ | "totalUserLiability"
82
+ | "transferOwnership"
83
+ | "unpause"
84
+ | "withdraw"
85
+ | "withdrawCotiFees"
86
+ | "withdrawFixedFee"
87
+ | "withdrawMaxFee"
88
+ | "withdrawPercentageBps"
89
+ ): FunctionFragment;
90
+
91
+ getEvent(
92
+ nameOrSignatureOrTopic:
93
+ | "Blacklisted"
94
+ | "CotiFeesWithdrawn"
95
+ | "Deposit"
96
+ | "DepositEnabledUpdated"
97
+ | "DynamicFeeUpdated"
98
+ | "ERC20Rescued"
99
+ | "FeesWithdrawn"
100
+ | "LimitsUpdated"
101
+ | "MaxOracleAgeUpdated"
102
+ | "NativeRefundExcessPushFailed"
103
+ | "OperatorAdded"
104
+ | "OperatorRemoved"
105
+ | "OwnershipTransferred"
106
+ | "Paused"
107
+ | "PriceOracleUpdated"
108
+ | "RefundableNativeExcessClaimed"
109
+ | "RoleAdminChanged"
110
+ | "RoleGranted"
111
+ | "RoleRevoked"
112
+ | "UnBlacklisted"
113
+ | "Unpaused"
114
+ | "Withdraw"
115
+ ): EventFragment;
116
+
117
+ encodeFunctionData(
118
+ functionFragment: "DEFAULT_ADMIN_ROLE",
119
+ values?: undefined
120
+ ): string;
121
+ encodeFunctionData(
122
+ functionFragment: "DEFAULT_MAX_ORACLE_AGE",
123
+ values?: undefined
124
+ ): string;
125
+ encodeFunctionData(
126
+ functionFragment: "FEE_DIVISOR",
127
+ values?: undefined
128
+ ): string;
129
+ encodeFunctionData(
130
+ functionFragment: "MAX_FEE_UNITS",
131
+ values?: undefined
132
+ ): string;
133
+ encodeFunctionData(
134
+ functionFragment: "OPERATOR_ROLE",
135
+ values?: undefined
136
+ ): string;
137
+ encodeFunctionData(
138
+ functionFragment: "accumulatedCotiFees",
139
+ values?: undefined
140
+ ): string;
141
+ encodeFunctionData(
142
+ functionFragment: "addOperator",
143
+ values: [AddressLike]
144
+ ): string;
145
+ encodeFunctionData(
146
+ functionFragment: "addToBlacklist",
147
+ values: [AddressLike]
148
+ ): string;
149
+ encodeFunctionData(
150
+ functionFragment: "blacklisted",
151
+ values: [AddressLike]
152
+ ): string;
153
+ encodeFunctionData(
154
+ functionFragment: "claimRefundableNativeExcess",
155
+ values?: undefined
156
+ ): string;
157
+ encodeFunctionData(
158
+ functionFragment: "computeErc20Fee",
159
+ values: [
160
+ BigNumberish,
161
+ BigNumberish,
162
+ BigNumberish,
163
+ BigNumberish,
164
+ string,
165
+ BigNumberish
166
+ ]
167
+ ): string;
168
+ encodeFunctionData(
169
+ functionFragment: "deposit",
170
+ values: [BigNumberish, BigNumberish, BigNumberish]
171
+ ): string;
172
+ encodeFunctionData(
173
+ functionFragment: "depositFixedFee",
174
+ values?: undefined
175
+ ): string;
176
+ encodeFunctionData(
177
+ functionFragment: "depositMaxFee",
178
+ values?: undefined
179
+ ): string;
180
+ encodeFunctionData(
181
+ functionFragment: "depositPercentageBps",
182
+ values?: undefined
183
+ ): string;
184
+ encodeFunctionData(
185
+ functionFragment: "estimateDepositFee",
186
+ values: [BigNumberish]
187
+ ): string;
188
+ encodeFunctionData(
189
+ functionFragment: "estimateWithdrawFee",
190
+ values: [BigNumberish]
191
+ ): string;
192
+ encodeFunctionData(
193
+ functionFragment: "feeRecipient",
194
+ values?: undefined
195
+ ): string;
196
+ encodeFunctionData(
197
+ functionFragment: "getRoleAdmin",
198
+ values: [BytesLike]
199
+ ): string;
200
+ encodeFunctionData(
201
+ functionFragment: "getRoleMember",
202
+ values: [BytesLike, BigNumberish]
203
+ ): string;
204
+ encodeFunctionData(
205
+ functionFragment: "getRoleMemberCount",
206
+ values: [BytesLike]
207
+ ): string;
208
+ encodeFunctionData(
209
+ functionFragment: "grantRole",
210
+ values: [BytesLike, AddressLike]
211
+ ): string;
212
+ encodeFunctionData(
213
+ functionFragment: "hasRole",
214
+ values: [BytesLike, AddressLike]
215
+ ): string;
216
+ encodeFunctionData(
217
+ functionFragment: "isDepositEnabled",
218
+ values?: undefined
219
+ ): string;
220
+ encodeFunctionData(
221
+ functionFragment: "isOperator",
222
+ values: [AddressLike]
223
+ ): string;
224
+ encodeFunctionData(
225
+ functionFragment: "maxDepositAmount",
226
+ values?: undefined
227
+ ): string;
228
+ encodeFunctionData(
229
+ functionFragment: "maxOracleAge",
230
+ values?: undefined
231
+ ): string;
232
+ encodeFunctionData(
233
+ functionFragment: "maxWithdrawAmount",
234
+ values?: undefined
235
+ ): string;
236
+ encodeFunctionData(
237
+ functionFragment: "minDepositAmount",
238
+ values?: undefined
239
+ ): string;
240
+ encodeFunctionData(
241
+ functionFragment: "minWithdrawAmount",
242
+ values?: undefined
243
+ ): string;
244
+ encodeFunctionData(functionFragment: "owner", values?: undefined): string;
245
+ encodeFunctionData(functionFragment: "pause", values?: undefined): string;
246
+ encodeFunctionData(functionFragment: "paused", values?: undefined): string;
247
+ encodeFunctionData(
248
+ functionFragment: "priceOracle",
249
+ values?: undefined
250
+ ): string;
251
+ encodeFunctionData(
252
+ functionFragment: "privateToken",
253
+ values?: undefined
254
+ ): string;
255
+ encodeFunctionData(
256
+ functionFragment: "refundableNativeExcess",
257
+ values: [AddressLike]
258
+ ): string;
259
+ encodeFunctionData(
260
+ functionFragment: "removeFromBlacklist",
261
+ values: [AddressLike]
262
+ ): string;
263
+ encodeFunctionData(
264
+ functionFragment: "removeOperator",
265
+ values: [AddressLike]
266
+ ): string;
267
+ encodeFunctionData(
268
+ functionFragment: "renounceOwnership",
269
+ values?: undefined
270
+ ): string;
271
+ encodeFunctionData(
272
+ functionFragment: "renounceRole",
273
+ values: [BytesLike, AddressLike]
274
+ ): string;
275
+ encodeFunctionData(
276
+ functionFragment: "rescueERC20",
277
+ values: [AddressLike, BigNumberish]
278
+ ): string;
279
+ encodeFunctionData(
280
+ functionFragment: "rescueRecipient",
281
+ values?: undefined
282
+ ): string;
283
+ encodeFunctionData(
284
+ functionFragment: "revokeRole",
285
+ values: [BytesLike, AddressLike]
286
+ ): string;
287
+ encodeFunctionData(
288
+ functionFragment: "setDepositDynamicFee",
289
+ values: [BigNumberish, BigNumberish, BigNumberish]
290
+ ): string;
291
+ encodeFunctionData(
292
+ functionFragment: "setIsDepositEnabled",
293
+ values: [boolean]
294
+ ): string;
295
+ encodeFunctionData(
296
+ functionFragment: "setLimits",
297
+ values: [BigNumberish, BigNumberish, BigNumberish, BigNumberish]
298
+ ): string;
299
+ encodeFunctionData(
300
+ functionFragment: "setMaxOracleAge",
301
+ values: [BigNumberish]
302
+ ): string;
303
+ encodeFunctionData(
304
+ functionFragment: "setPriceOracle",
305
+ values: [AddressLike]
306
+ ): string;
307
+ encodeFunctionData(
308
+ functionFragment: "setWithdrawDynamicFee",
309
+ values: [BigNumberish, BigNumberish, BigNumberish]
310
+ ): string;
311
+ encodeFunctionData(
312
+ functionFragment: "supportsInterface",
313
+ values: [BytesLike]
314
+ ): string;
315
+ encodeFunctionData(functionFragment: "token", values?: undefined): string;
316
+ encodeFunctionData(
317
+ functionFragment: "tokenSymbol",
318
+ values?: undefined
319
+ ): string;
320
+ encodeFunctionData(
321
+ functionFragment: "totalUserLiability",
322
+ values?: undefined
323
+ ): string;
324
+ encodeFunctionData(
325
+ functionFragment: "transferOwnership",
326
+ values: [AddressLike]
327
+ ): string;
328
+ encodeFunctionData(functionFragment: "unpause", values?: undefined): string;
329
+ encodeFunctionData(
330
+ functionFragment: "withdraw",
331
+ values: [BigNumberish, BigNumberish, BigNumberish]
332
+ ): string;
333
+ encodeFunctionData(
334
+ functionFragment: "withdrawCotiFees",
335
+ values: [BigNumberish]
336
+ ): string;
337
+ encodeFunctionData(
338
+ functionFragment: "withdrawFixedFee",
339
+ values?: undefined
340
+ ): string;
341
+ encodeFunctionData(
342
+ functionFragment: "withdrawMaxFee",
343
+ values?: undefined
344
+ ): string;
345
+ encodeFunctionData(
346
+ functionFragment: "withdrawPercentageBps",
347
+ values?: undefined
348
+ ): string;
349
+
350
+ decodeFunctionResult(
351
+ functionFragment: "DEFAULT_ADMIN_ROLE",
352
+ data: BytesLike
353
+ ): Result;
354
+ decodeFunctionResult(
355
+ functionFragment: "DEFAULT_MAX_ORACLE_AGE",
356
+ data: BytesLike
357
+ ): Result;
358
+ decodeFunctionResult(
359
+ functionFragment: "FEE_DIVISOR",
360
+ data: BytesLike
361
+ ): Result;
362
+ decodeFunctionResult(
363
+ functionFragment: "MAX_FEE_UNITS",
364
+ data: BytesLike
365
+ ): Result;
366
+ decodeFunctionResult(
367
+ functionFragment: "OPERATOR_ROLE",
368
+ data: BytesLike
369
+ ): Result;
370
+ decodeFunctionResult(
371
+ functionFragment: "accumulatedCotiFees",
372
+ data: BytesLike
373
+ ): Result;
374
+ decodeFunctionResult(
375
+ functionFragment: "addOperator",
376
+ data: BytesLike
377
+ ): Result;
378
+ decodeFunctionResult(
379
+ functionFragment: "addToBlacklist",
380
+ data: BytesLike
381
+ ): Result;
382
+ decodeFunctionResult(
383
+ functionFragment: "blacklisted",
384
+ data: BytesLike
385
+ ): Result;
386
+ decodeFunctionResult(
387
+ functionFragment: "claimRefundableNativeExcess",
388
+ data: BytesLike
389
+ ): Result;
390
+ decodeFunctionResult(
391
+ functionFragment: "computeErc20Fee",
392
+ data: BytesLike
393
+ ): Result;
394
+ decodeFunctionResult(functionFragment: "deposit", data: BytesLike): Result;
395
+ decodeFunctionResult(
396
+ functionFragment: "depositFixedFee",
397
+ data: BytesLike
398
+ ): Result;
399
+ decodeFunctionResult(
400
+ functionFragment: "depositMaxFee",
401
+ data: BytesLike
402
+ ): Result;
403
+ decodeFunctionResult(
404
+ functionFragment: "depositPercentageBps",
405
+ data: BytesLike
406
+ ): Result;
407
+ decodeFunctionResult(
408
+ functionFragment: "estimateDepositFee",
409
+ data: BytesLike
410
+ ): Result;
411
+ decodeFunctionResult(
412
+ functionFragment: "estimateWithdrawFee",
413
+ data: BytesLike
414
+ ): Result;
415
+ decodeFunctionResult(
416
+ functionFragment: "feeRecipient",
417
+ data: BytesLike
418
+ ): Result;
419
+ decodeFunctionResult(
420
+ functionFragment: "getRoleAdmin",
421
+ data: BytesLike
422
+ ): Result;
423
+ decodeFunctionResult(
424
+ functionFragment: "getRoleMember",
425
+ data: BytesLike
426
+ ): Result;
427
+ decodeFunctionResult(
428
+ functionFragment: "getRoleMemberCount",
429
+ data: BytesLike
430
+ ): Result;
431
+ decodeFunctionResult(functionFragment: "grantRole", data: BytesLike): Result;
432
+ decodeFunctionResult(functionFragment: "hasRole", data: BytesLike): Result;
433
+ decodeFunctionResult(
434
+ functionFragment: "isDepositEnabled",
435
+ data: BytesLike
436
+ ): Result;
437
+ decodeFunctionResult(functionFragment: "isOperator", data: BytesLike): Result;
438
+ decodeFunctionResult(
439
+ functionFragment: "maxDepositAmount",
440
+ data: BytesLike
441
+ ): Result;
442
+ decodeFunctionResult(
443
+ functionFragment: "maxOracleAge",
444
+ data: BytesLike
445
+ ): Result;
446
+ decodeFunctionResult(
447
+ functionFragment: "maxWithdrawAmount",
448
+ data: BytesLike
449
+ ): Result;
450
+ decodeFunctionResult(
451
+ functionFragment: "minDepositAmount",
452
+ data: BytesLike
453
+ ): Result;
454
+ decodeFunctionResult(
455
+ functionFragment: "minWithdrawAmount",
456
+ data: BytesLike
457
+ ): Result;
458
+ decodeFunctionResult(functionFragment: "owner", data: BytesLike): Result;
459
+ decodeFunctionResult(functionFragment: "pause", data: BytesLike): Result;
460
+ decodeFunctionResult(functionFragment: "paused", data: BytesLike): Result;
461
+ decodeFunctionResult(
462
+ functionFragment: "priceOracle",
463
+ data: BytesLike
464
+ ): Result;
465
+ decodeFunctionResult(
466
+ functionFragment: "privateToken",
467
+ data: BytesLike
468
+ ): Result;
469
+ decodeFunctionResult(
470
+ functionFragment: "refundableNativeExcess",
471
+ data: BytesLike
472
+ ): Result;
473
+ decodeFunctionResult(
474
+ functionFragment: "removeFromBlacklist",
475
+ data: BytesLike
476
+ ): Result;
477
+ decodeFunctionResult(
478
+ functionFragment: "removeOperator",
479
+ data: BytesLike
480
+ ): Result;
481
+ decodeFunctionResult(
482
+ functionFragment: "renounceOwnership",
483
+ data: BytesLike
484
+ ): Result;
485
+ decodeFunctionResult(
486
+ functionFragment: "renounceRole",
487
+ data: BytesLike
488
+ ): Result;
489
+ decodeFunctionResult(
490
+ functionFragment: "rescueERC20",
491
+ data: BytesLike
492
+ ): Result;
493
+ decodeFunctionResult(
494
+ functionFragment: "rescueRecipient",
495
+ data: BytesLike
496
+ ): Result;
497
+ decodeFunctionResult(functionFragment: "revokeRole", data: BytesLike): Result;
498
+ decodeFunctionResult(
499
+ functionFragment: "setDepositDynamicFee",
500
+ data: BytesLike
501
+ ): Result;
502
+ decodeFunctionResult(
503
+ functionFragment: "setIsDepositEnabled",
504
+ data: BytesLike
505
+ ): Result;
506
+ decodeFunctionResult(functionFragment: "setLimits", data: BytesLike): Result;
507
+ decodeFunctionResult(
508
+ functionFragment: "setMaxOracleAge",
509
+ data: BytesLike
510
+ ): Result;
511
+ decodeFunctionResult(
512
+ functionFragment: "setPriceOracle",
513
+ data: BytesLike
514
+ ): Result;
515
+ decodeFunctionResult(
516
+ functionFragment: "setWithdrawDynamicFee",
517
+ data: BytesLike
518
+ ): Result;
519
+ decodeFunctionResult(
520
+ functionFragment: "supportsInterface",
521
+ data: BytesLike
522
+ ): Result;
523
+ decodeFunctionResult(functionFragment: "token", data: BytesLike): Result;
524
+ decodeFunctionResult(
525
+ functionFragment: "tokenSymbol",
526
+ data: BytesLike
527
+ ): Result;
528
+ decodeFunctionResult(
529
+ functionFragment: "totalUserLiability",
530
+ data: BytesLike
531
+ ): Result;
532
+ decodeFunctionResult(
533
+ functionFragment: "transferOwnership",
534
+ data: BytesLike
535
+ ): Result;
536
+ decodeFunctionResult(functionFragment: "unpause", data: BytesLike): Result;
537
+ decodeFunctionResult(functionFragment: "withdraw", data: BytesLike): Result;
538
+ decodeFunctionResult(
539
+ functionFragment: "withdrawCotiFees",
540
+ data: BytesLike
541
+ ): Result;
542
+ decodeFunctionResult(
543
+ functionFragment: "withdrawFixedFee",
544
+ data: BytesLike
545
+ ): Result;
546
+ decodeFunctionResult(
547
+ functionFragment: "withdrawMaxFee",
548
+ data: BytesLike
549
+ ): Result;
550
+ decodeFunctionResult(
551
+ functionFragment: "withdrawPercentageBps",
552
+ data: BytesLike
553
+ ): Result;
554
+ }
555
+
556
+ export namespace BlacklistedEvent {
557
+ export type InputTuple = [account: AddressLike, by: AddressLike];
558
+ export type OutputTuple = [account: string, by: string];
559
+ export interface OutputObject {
560
+ account: string;
561
+ by: string;
562
+ }
563
+ export type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
564
+ export type Filter = TypedDeferredTopicFilter<Event>;
565
+ export type Log = TypedEventLog<Event>;
566
+ export type LogDescription = TypedLogDescription<Event>;
567
+ }
568
+
569
+ export namespace CotiFeesWithdrawnEvent {
570
+ export type InputTuple = [feeRecipient: AddressLike, amount: BigNumberish];
571
+ export type OutputTuple = [feeRecipient: string, amount: bigint];
572
+ export interface OutputObject {
573
+ feeRecipient: string;
574
+ amount: bigint;
575
+ }
576
+ export type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
577
+ export type Filter = TypedDeferredTopicFilter<Event>;
578
+ export type Log = TypedEventLog<Event>;
579
+ export type LogDescription = TypedLogDescription<Event>;
580
+ }
581
+
582
+ export namespace DepositEvent {
583
+ export type InputTuple = [
584
+ user: AddressLike,
585
+ grossAmount: BigNumberish,
586
+ netAmount: BigNumberish
587
+ ];
588
+ export type OutputTuple = [
589
+ user: string,
590
+ grossAmount: bigint,
591
+ netAmount: bigint
592
+ ];
593
+ export interface OutputObject {
594
+ user: string;
595
+ grossAmount: bigint;
596
+ netAmount: bigint;
597
+ }
598
+ export type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
599
+ export type Filter = TypedDeferredTopicFilter<Event>;
600
+ export type Log = TypedEventLog<Event>;
601
+ export type LogDescription = TypedLogDescription<Event>;
602
+ }
603
+
604
+ export namespace DepositEnabledUpdatedEvent {
605
+ export type InputTuple = [enabled: boolean, by: AddressLike];
606
+ export type OutputTuple = [enabled: boolean, by: string];
607
+ export interface OutputObject {
608
+ enabled: boolean;
609
+ by: string;
610
+ }
611
+ export type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
612
+ export type Filter = TypedDeferredTopicFilter<Event>;
613
+ export type Log = TypedEventLog<Event>;
614
+ export type LogDescription = TypedLogDescription<Event>;
615
+ }
616
+
617
+ export namespace DynamicFeeUpdatedEvent {
618
+ export type InputTuple = [
619
+ feeType: string,
620
+ fixedFee: BigNumberish,
621
+ percentageBps: BigNumberish,
622
+ maxFee: BigNumberish
623
+ ];
624
+ export type OutputTuple = [
625
+ feeType: string,
626
+ fixedFee: bigint,
627
+ percentageBps: bigint,
628
+ maxFee: bigint
629
+ ];
630
+ export interface OutputObject {
631
+ feeType: string;
632
+ fixedFee: bigint;
633
+ percentageBps: bigint;
634
+ maxFee: bigint;
635
+ }
636
+ export type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
637
+ export type Filter = TypedDeferredTopicFilter<Event>;
638
+ export type Log = TypedEventLog<Event>;
639
+ export type LogDescription = TypedLogDescription<Event>;
640
+ }
641
+
642
+ export namespace ERC20RescuedEvent {
643
+ export type InputTuple = [
644
+ token: AddressLike,
645
+ to: AddressLike,
646
+ amount: BigNumberish
647
+ ];
648
+ export type OutputTuple = [token: string, to: string, amount: bigint];
649
+ export interface OutputObject {
650
+ token: string;
651
+ to: string;
652
+ amount: bigint;
653
+ }
654
+ export type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
655
+ export type Filter = TypedDeferredTopicFilter<Event>;
656
+ export type Log = TypedEventLog<Event>;
657
+ export type LogDescription = TypedLogDescription<Event>;
658
+ }
659
+
660
+ export namespace FeesWithdrawnEvent {
661
+ export type InputTuple = [to: AddressLike, amount: BigNumberish];
662
+ export type OutputTuple = [to: string, amount: bigint];
663
+ export interface OutputObject {
664
+ to: string;
665
+ amount: bigint;
666
+ }
667
+ export type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
668
+ export type Filter = TypedDeferredTopicFilter<Event>;
669
+ export type Log = TypedEventLog<Event>;
670
+ export type LogDescription = TypedLogDescription<Event>;
671
+ }
672
+
673
+ export namespace LimitsUpdatedEvent {
674
+ export type InputTuple = [
675
+ minDeposit: BigNumberish,
676
+ maxDeposit: BigNumberish,
677
+ minWithdraw: BigNumberish,
678
+ maxWithdraw: BigNumberish
679
+ ];
680
+ export type OutputTuple = [
681
+ minDeposit: bigint,
682
+ maxDeposit: bigint,
683
+ minWithdraw: bigint,
684
+ maxWithdraw: bigint
685
+ ];
686
+ export interface OutputObject {
687
+ minDeposit: bigint;
688
+ maxDeposit: bigint;
689
+ minWithdraw: bigint;
690
+ maxWithdraw: bigint;
691
+ }
692
+ export type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
693
+ export type Filter = TypedDeferredTopicFilter<Event>;
694
+ export type Log = TypedEventLog<Event>;
695
+ export type LogDescription = TypedLogDescription<Event>;
696
+ }
697
+
698
+ export namespace MaxOracleAgeUpdatedEvent {
699
+ export type InputTuple = [maxOracleAge: BigNumberish, by: AddressLike];
700
+ export type OutputTuple = [maxOracleAge: bigint, by: string];
701
+ export interface OutputObject {
702
+ maxOracleAge: bigint;
703
+ by: string;
704
+ }
705
+ export type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
706
+ export type Filter = TypedDeferredTopicFilter<Event>;
707
+ export type Log = TypedEventLog<Event>;
708
+ export type LogDescription = TypedLogDescription<Event>;
709
+ }
710
+
711
+ export namespace NativeRefundExcessPushFailedEvent {
712
+ export type InputTuple = [user: AddressLike, amount: BigNumberish];
713
+ export type OutputTuple = [user: string, amount: bigint];
714
+ export interface OutputObject {
715
+ user: string;
716
+ amount: bigint;
717
+ }
718
+ export type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
719
+ export type Filter = TypedDeferredTopicFilter<Event>;
720
+ export type Log = TypedEventLog<Event>;
721
+ export type LogDescription = TypedLogDescription<Event>;
722
+ }
723
+
724
+ export namespace OperatorAddedEvent {
725
+ export type InputTuple = [account: AddressLike, by: AddressLike];
726
+ export type OutputTuple = [account: string, by: string];
727
+ export interface OutputObject {
728
+ account: string;
729
+ by: string;
730
+ }
731
+ export type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
732
+ export type Filter = TypedDeferredTopicFilter<Event>;
733
+ export type Log = TypedEventLog<Event>;
734
+ export type LogDescription = TypedLogDescription<Event>;
735
+ }
736
+
737
+ export namespace OperatorRemovedEvent {
738
+ export type InputTuple = [account: AddressLike, by: AddressLike];
739
+ export type OutputTuple = [account: string, by: string];
740
+ export interface OutputObject {
741
+ account: string;
742
+ by: string;
743
+ }
744
+ export type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
745
+ export type Filter = TypedDeferredTopicFilter<Event>;
746
+ export type Log = TypedEventLog<Event>;
747
+ export type LogDescription = TypedLogDescription<Event>;
748
+ }
749
+
750
+ export namespace OwnershipTransferredEvent {
751
+ export type InputTuple = [previousOwner: AddressLike, newOwner: AddressLike];
752
+ export type OutputTuple = [previousOwner: string, newOwner: string];
753
+ export interface OutputObject {
754
+ previousOwner: string;
755
+ newOwner: string;
756
+ }
757
+ export type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
758
+ export type Filter = TypedDeferredTopicFilter<Event>;
759
+ export type Log = TypedEventLog<Event>;
760
+ export type LogDescription = TypedLogDescription<Event>;
761
+ }
762
+
763
+ export namespace PausedEvent {
764
+ export type InputTuple = [account: AddressLike];
765
+ export type OutputTuple = [account: string];
766
+ export interface OutputObject {
767
+ account: string;
768
+ }
769
+ export type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
770
+ export type Filter = TypedDeferredTopicFilter<Event>;
771
+ export type Log = TypedEventLog<Event>;
772
+ export type LogDescription = TypedLogDescription<Event>;
773
+ }
774
+
775
+ export namespace PriceOracleUpdatedEvent {
776
+ export type InputTuple = [oldOracle: AddressLike, newOracle: AddressLike];
777
+ export type OutputTuple = [oldOracle: string, newOracle: string];
778
+ export interface OutputObject {
779
+ oldOracle: string;
780
+ newOracle: string;
781
+ }
782
+ export type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
783
+ export type Filter = TypedDeferredTopicFilter<Event>;
784
+ export type Log = TypedEventLog<Event>;
785
+ export type LogDescription = TypedLogDescription<Event>;
786
+ }
787
+
788
+ export namespace RefundableNativeExcessClaimedEvent {
789
+ export type InputTuple = [user: AddressLike, amount: BigNumberish];
790
+ export type OutputTuple = [user: string, amount: bigint];
791
+ export interface OutputObject {
792
+ user: string;
793
+ amount: bigint;
794
+ }
795
+ export type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
796
+ export type Filter = TypedDeferredTopicFilter<Event>;
797
+ export type Log = TypedEventLog<Event>;
798
+ export type LogDescription = TypedLogDescription<Event>;
799
+ }
800
+
801
+ export namespace RoleAdminChangedEvent {
802
+ export type InputTuple = [
803
+ role: BytesLike,
804
+ previousAdminRole: BytesLike,
805
+ newAdminRole: BytesLike
806
+ ];
807
+ export type OutputTuple = [
808
+ role: string,
809
+ previousAdminRole: string,
810
+ newAdminRole: string
811
+ ];
812
+ export interface OutputObject {
813
+ role: string;
814
+ previousAdminRole: string;
815
+ newAdminRole: string;
816
+ }
817
+ export type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
818
+ export type Filter = TypedDeferredTopicFilter<Event>;
819
+ export type Log = TypedEventLog<Event>;
820
+ export type LogDescription = TypedLogDescription<Event>;
821
+ }
822
+
823
+ export namespace RoleGrantedEvent {
824
+ export type InputTuple = [
825
+ role: BytesLike,
826
+ account: AddressLike,
827
+ sender: AddressLike
828
+ ];
829
+ export type OutputTuple = [role: string, account: string, sender: string];
830
+ export interface OutputObject {
831
+ role: string;
832
+ account: string;
833
+ sender: string;
834
+ }
835
+ export type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
836
+ export type Filter = TypedDeferredTopicFilter<Event>;
837
+ export type Log = TypedEventLog<Event>;
838
+ export type LogDescription = TypedLogDescription<Event>;
839
+ }
840
+
841
+ export namespace RoleRevokedEvent {
842
+ export type InputTuple = [
843
+ role: BytesLike,
844
+ account: AddressLike,
845
+ sender: AddressLike
846
+ ];
847
+ export type OutputTuple = [role: string, account: string, sender: string];
848
+ export interface OutputObject {
849
+ role: string;
850
+ account: string;
851
+ sender: string;
852
+ }
853
+ export type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
854
+ export type Filter = TypedDeferredTopicFilter<Event>;
855
+ export type Log = TypedEventLog<Event>;
856
+ export type LogDescription = TypedLogDescription<Event>;
857
+ }
858
+
859
+ export namespace UnBlacklistedEvent {
860
+ export type InputTuple = [account: AddressLike, by: AddressLike];
861
+ export type OutputTuple = [account: string, by: string];
862
+ export interface OutputObject {
863
+ account: string;
864
+ by: string;
865
+ }
866
+ export type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
867
+ export type Filter = TypedDeferredTopicFilter<Event>;
868
+ export type Log = TypedEventLog<Event>;
869
+ export type LogDescription = TypedLogDescription<Event>;
870
+ }
871
+
872
+ export namespace UnpausedEvent {
873
+ export type InputTuple = [account: AddressLike];
874
+ export type OutputTuple = [account: string];
875
+ export interface OutputObject {
876
+ account: string;
877
+ }
878
+ export type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
879
+ export type Filter = TypedDeferredTopicFilter<Event>;
880
+ export type Log = TypedEventLog<Event>;
881
+ export type LogDescription = TypedLogDescription<Event>;
882
+ }
883
+
884
+ export namespace WithdrawEvent {
885
+ export type InputTuple = [
886
+ user: AddressLike,
887
+ grossAmount: BigNumberish,
888
+ netAmount: BigNumberish
889
+ ];
890
+ export type OutputTuple = [
891
+ user: string,
892
+ grossAmount: bigint,
893
+ netAmount: bigint
894
+ ];
895
+ export interface OutputObject {
896
+ user: string;
897
+ grossAmount: bigint;
898
+ netAmount: bigint;
899
+ }
900
+ export type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
901
+ export type Filter = TypedDeferredTopicFilter<Event>;
902
+ export type Log = TypedEventLog<Event>;
903
+ export type LogDescription = TypedLogDescription<Event>;
904
+ }
905
+
906
+ export interface PrivacyBridgeERC20 extends BaseContract {
907
+ connect(runner?: ContractRunner | null): PrivacyBridgeERC20;
908
+ waitForDeployment(): Promise<this>;
909
+
910
+ interface: PrivacyBridgeERC20Interface;
911
+
912
+ queryFilter<TCEvent extends TypedContractEvent>(
913
+ event: TCEvent,
914
+ fromBlockOrBlockhash?: string | number | undefined,
915
+ toBlock?: string | number | undefined
916
+ ): Promise<Array<TypedEventLog<TCEvent>>>;
917
+ queryFilter<TCEvent extends TypedContractEvent>(
918
+ filter: TypedDeferredTopicFilter<TCEvent>,
919
+ fromBlockOrBlockhash?: string | number | undefined,
920
+ toBlock?: string | number | undefined
921
+ ): Promise<Array<TypedEventLog<TCEvent>>>;
922
+
923
+ on<TCEvent extends TypedContractEvent>(
924
+ event: TCEvent,
925
+ listener: TypedListener<TCEvent>
926
+ ): Promise<this>;
927
+ on<TCEvent extends TypedContractEvent>(
928
+ filter: TypedDeferredTopicFilter<TCEvent>,
929
+ listener: TypedListener<TCEvent>
930
+ ): Promise<this>;
931
+
932
+ once<TCEvent extends TypedContractEvent>(
933
+ event: TCEvent,
934
+ listener: TypedListener<TCEvent>
935
+ ): Promise<this>;
936
+ once<TCEvent extends TypedContractEvent>(
937
+ filter: TypedDeferredTopicFilter<TCEvent>,
938
+ listener: TypedListener<TCEvent>
939
+ ): Promise<this>;
940
+
941
+ listeners<TCEvent extends TypedContractEvent>(
942
+ event: TCEvent
943
+ ): Promise<Array<TypedListener<TCEvent>>>;
944
+ listeners(eventName?: string): Promise<Array<Listener>>;
945
+ removeAllListeners<TCEvent extends TypedContractEvent>(
946
+ event?: TCEvent
947
+ ): Promise<this>;
948
+
949
+ DEFAULT_ADMIN_ROLE: TypedContractMethod<[], [string], "view">;
950
+
951
+ DEFAULT_MAX_ORACLE_AGE: TypedContractMethod<[], [bigint], "view">;
952
+
953
+ FEE_DIVISOR: TypedContractMethod<[], [bigint], "view">;
954
+
955
+ MAX_FEE_UNITS: TypedContractMethod<[], [bigint], "view">;
956
+
957
+ OPERATOR_ROLE: TypedContractMethod<[], [string], "view">;
958
+
959
+ accumulatedCotiFees: TypedContractMethod<[], [bigint], "view">;
960
+
961
+ addOperator: TypedContractMethod<
962
+ [account: AddressLike],
963
+ [void],
964
+ "nonpayable"
965
+ >;
966
+
967
+ addToBlacklist: TypedContractMethod<
968
+ [account: AddressLike],
969
+ [void],
970
+ "nonpayable"
971
+ >;
972
+
973
+ blacklisted: TypedContractMethod<[arg0: AddressLike], [boolean], "view">;
974
+
975
+ claimRefundableNativeExcess: TypedContractMethod<[], [void], "nonpayable">;
976
+
977
+ computeErc20Fee: TypedContractMethod<
978
+ [
979
+ tokenAmount: BigNumberish,
980
+ fixedFee: BigNumberish,
981
+ percentageBps: BigNumberish,
982
+ maxFee: BigNumberish,
983
+ _tokenSymbol: string,
984
+ _tokenDecimals: BigNumberish
985
+ ],
986
+ [bigint],
987
+ "view"
988
+ >;
989
+
990
+ deposit: TypedContractMethod<
991
+ [
992
+ amount: BigNumberish,
993
+ cotiOracleTimestamp: BigNumberish,
994
+ tokenOracleTimestamp: BigNumberish
995
+ ],
996
+ [void],
997
+ "payable"
998
+ >;
999
+
1000
+ depositFixedFee: TypedContractMethod<[], [bigint], "view">;
1001
+
1002
+ depositMaxFee: TypedContractMethod<[], [bigint], "view">;
1003
+
1004
+ depositPercentageBps: TypedContractMethod<[], [bigint], "view">;
1005
+
1006
+ estimateDepositFee: TypedContractMethod<
1007
+ [tokenAmount: BigNumberish],
1008
+ [
1009
+ [bigint, bigint, bigint, bigint] & {
1010
+ fee: bigint;
1011
+ cotiLastUpdated: bigint;
1012
+ tokenLastUpdated: bigint;
1013
+ blockTimestamp: bigint;
1014
+ }
1015
+ ],
1016
+ "view"
1017
+ >;
1018
+
1019
+ estimateWithdrawFee: TypedContractMethod<
1020
+ [tokenAmount: BigNumberish],
1021
+ [
1022
+ [bigint, bigint, bigint, bigint] & {
1023
+ fee: bigint;
1024
+ cotiLastUpdated: bigint;
1025
+ tokenLastUpdated: bigint;
1026
+ blockTimestamp: bigint;
1027
+ }
1028
+ ],
1029
+ "view"
1030
+ >;
1031
+
1032
+ feeRecipient: TypedContractMethod<[], [string], "view">;
1033
+
1034
+ getRoleAdmin: TypedContractMethod<[role: BytesLike], [string], "view">;
1035
+
1036
+ getRoleMember: TypedContractMethod<
1037
+ [role: BytesLike, index: BigNumberish],
1038
+ [string],
1039
+ "view"
1040
+ >;
1041
+
1042
+ getRoleMemberCount: TypedContractMethod<[role: BytesLike], [bigint], "view">;
1043
+
1044
+ grantRole: TypedContractMethod<
1045
+ [role: BytesLike, account: AddressLike],
1046
+ [void],
1047
+ "nonpayable"
1048
+ >;
1049
+
1050
+ hasRole: TypedContractMethod<
1051
+ [role: BytesLike, account: AddressLike],
1052
+ [boolean],
1053
+ "view"
1054
+ >;
1055
+
1056
+ isDepositEnabled: TypedContractMethod<[], [boolean], "view">;
1057
+
1058
+ isOperator: TypedContractMethod<[account: AddressLike], [boolean], "view">;
1059
+
1060
+ maxDepositAmount: TypedContractMethod<[], [bigint], "view">;
1061
+
1062
+ maxOracleAge: TypedContractMethod<[], [bigint], "view">;
1063
+
1064
+ maxWithdrawAmount: TypedContractMethod<[], [bigint], "view">;
1065
+
1066
+ minDepositAmount: TypedContractMethod<[], [bigint], "view">;
1067
+
1068
+ minWithdrawAmount: TypedContractMethod<[], [bigint], "view">;
1069
+
1070
+ owner: TypedContractMethod<[], [string], "view">;
1071
+
1072
+ pause: TypedContractMethod<[], [void], "nonpayable">;
1073
+
1074
+ paused: TypedContractMethod<[], [boolean], "view">;
1075
+
1076
+ priceOracle: TypedContractMethod<[], [string], "view">;
1077
+
1078
+ privateToken: TypedContractMethod<[], [string], "view">;
1079
+
1080
+ refundableNativeExcess: TypedContractMethod<
1081
+ [arg0: AddressLike],
1082
+ [bigint],
1083
+ "view"
1084
+ >;
1085
+
1086
+ removeFromBlacklist: TypedContractMethod<
1087
+ [account: AddressLike],
1088
+ [void],
1089
+ "nonpayable"
1090
+ >;
1091
+
1092
+ removeOperator: TypedContractMethod<
1093
+ [account: AddressLike],
1094
+ [void],
1095
+ "nonpayable"
1096
+ >;
1097
+
1098
+ renounceOwnership: TypedContractMethod<[], [void], "nonpayable">;
1099
+
1100
+ renounceRole: TypedContractMethod<
1101
+ [role: BytesLike, account: AddressLike],
1102
+ [void],
1103
+ "nonpayable"
1104
+ >;
1105
+
1106
+ rescueERC20: TypedContractMethod<
1107
+ [_token: AddressLike, amount: BigNumberish],
1108
+ [void],
1109
+ "nonpayable"
1110
+ >;
1111
+
1112
+ rescueRecipient: TypedContractMethod<[], [string], "view">;
1113
+
1114
+ revokeRole: TypedContractMethod<
1115
+ [role: BytesLike, account: AddressLike],
1116
+ [void],
1117
+ "nonpayable"
1118
+ >;
1119
+
1120
+ setDepositDynamicFee: TypedContractMethod<
1121
+ [
1122
+ _fixedFee: BigNumberish,
1123
+ _percentageBps: BigNumberish,
1124
+ _maxFee: BigNumberish
1125
+ ],
1126
+ [void],
1127
+ "nonpayable"
1128
+ >;
1129
+
1130
+ setIsDepositEnabled: TypedContractMethod<
1131
+ [_enabled: boolean],
1132
+ [void],
1133
+ "nonpayable"
1134
+ >;
1135
+
1136
+ setLimits: TypedContractMethod<
1137
+ [
1138
+ _minDeposit: BigNumberish,
1139
+ _maxDeposit: BigNumberish,
1140
+ _minWithdraw: BigNumberish,
1141
+ _maxWithdraw: BigNumberish
1142
+ ],
1143
+ [void],
1144
+ "nonpayable"
1145
+ >;
1146
+
1147
+ setMaxOracleAge: TypedContractMethod<
1148
+ [_maxOracleAge: BigNumberish],
1149
+ [void],
1150
+ "nonpayable"
1151
+ >;
1152
+
1153
+ setPriceOracle: TypedContractMethod<
1154
+ [_oracle: AddressLike],
1155
+ [void],
1156
+ "nonpayable"
1157
+ >;
1158
+
1159
+ setWithdrawDynamicFee: TypedContractMethod<
1160
+ [
1161
+ _fixedFee: BigNumberish,
1162
+ _percentageBps: BigNumberish,
1163
+ _maxFee: BigNumberish
1164
+ ],
1165
+ [void],
1166
+ "nonpayable"
1167
+ >;
1168
+
1169
+ supportsInterface: TypedContractMethod<
1170
+ [interfaceId: BytesLike],
1171
+ [boolean],
1172
+ "view"
1173
+ >;
1174
+
1175
+ token: TypedContractMethod<[], [string], "view">;
1176
+
1177
+ tokenSymbol: TypedContractMethod<[], [string], "view">;
1178
+
1179
+ totalUserLiability: TypedContractMethod<[], [bigint], "view">;
1180
+
1181
+ transferOwnership: TypedContractMethod<
1182
+ [newOwner: AddressLike],
1183
+ [void],
1184
+ "nonpayable"
1185
+ >;
1186
+
1187
+ unpause: TypedContractMethod<[], [void], "nonpayable">;
1188
+
1189
+ withdraw: TypedContractMethod<
1190
+ [
1191
+ amount: BigNumberish,
1192
+ cotiOracleTimestamp: BigNumberish,
1193
+ tokenOracleTimestamp: BigNumberish
1194
+ ],
1195
+ [void],
1196
+ "payable"
1197
+ >;
1198
+
1199
+ withdrawCotiFees: TypedContractMethod<
1200
+ [amount: BigNumberish],
1201
+ [void],
1202
+ "nonpayable"
1203
+ >;
1204
+
1205
+ withdrawFixedFee: TypedContractMethod<[], [bigint], "view">;
1206
+
1207
+ withdrawMaxFee: TypedContractMethod<[], [bigint], "view">;
1208
+
1209
+ withdrawPercentageBps: TypedContractMethod<[], [bigint], "view">;
1210
+
1211
+ getFunction<T extends ContractMethod = ContractMethod>(
1212
+ key: string | FunctionFragment
1213
+ ): T;
1214
+
1215
+ getFunction(
1216
+ nameOrSignature: "DEFAULT_ADMIN_ROLE"
1217
+ ): TypedContractMethod<[], [string], "view">;
1218
+ getFunction(
1219
+ nameOrSignature: "DEFAULT_MAX_ORACLE_AGE"
1220
+ ): TypedContractMethod<[], [bigint], "view">;
1221
+ getFunction(
1222
+ nameOrSignature: "FEE_DIVISOR"
1223
+ ): TypedContractMethod<[], [bigint], "view">;
1224
+ getFunction(
1225
+ nameOrSignature: "MAX_FEE_UNITS"
1226
+ ): TypedContractMethod<[], [bigint], "view">;
1227
+ getFunction(
1228
+ nameOrSignature: "OPERATOR_ROLE"
1229
+ ): TypedContractMethod<[], [string], "view">;
1230
+ getFunction(
1231
+ nameOrSignature: "accumulatedCotiFees"
1232
+ ): TypedContractMethod<[], [bigint], "view">;
1233
+ getFunction(
1234
+ nameOrSignature: "addOperator"
1235
+ ): TypedContractMethod<[account: AddressLike], [void], "nonpayable">;
1236
+ getFunction(
1237
+ nameOrSignature: "addToBlacklist"
1238
+ ): TypedContractMethod<[account: AddressLike], [void], "nonpayable">;
1239
+ getFunction(
1240
+ nameOrSignature: "blacklisted"
1241
+ ): TypedContractMethod<[arg0: AddressLike], [boolean], "view">;
1242
+ getFunction(
1243
+ nameOrSignature: "claimRefundableNativeExcess"
1244
+ ): TypedContractMethod<[], [void], "nonpayable">;
1245
+ getFunction(
1246
+ nameOrSignature: "computeErc20Fee"
1247
+ ): TypedContractMethod<
1248
+ [
1249
+ tokenAmount: BigNumberish,
1250
+ fixedFee: BigNumberish,
1251
+ percentageBps: BigNumberish,
1252
+ maxFee: BigNumberish,
1253
+ _tokenSymbol: string,
1254
+ _tokenDecimals: BigNumberish
1255
+ ],
1256
+ [bigint],
1257
+ "view"
1258
+ >;
1259
+ getFunction(
1260
+ nameOrSignature: "deposit"
1261
+ ): TypedContractMethod<
1262
+ [
1263
+ amount: BigNumberish,
1264
+ cotiOracleTimestamp: BigNumberish,
1265
+ tokenOracleTimestamp: BigNumberish
1266
+ ],
1267
+ [void],
1268
+ "payable"
1269
+ >;
1270
+ getFunction(
1271
+ nameOrSignature: "depositFixedFee"
1272
+ ): TypedContractMethod<[], [bigint], "view">;
1273
+ getFunction(
1274
+ nameOrSignature: "depositMaxFee"
1275
+ ): TypedContractMethod<[], [bigint], "view">;
1276
+ getFunction(
1277
+ nameOrSignature: "depositPercentageBps"
1278
+ ): TypedContractMethod<[], [bigint], "view">;
1279
+ getFunction(
1280
+ nameOrSignature: "estimateDepositFee"
1281
+ ): TypedContractMethod<
1282
+ [tokenAmount: BigNumberish],
1283
+ [
1284
+ [bigint, bigint, bigint, bigint] & {
1285
+ fee: bigint;
1286
+ cotiLastUpdated: bigint;
1287
+ tokenLastUpdated: bigint;
1288
+ blockTimestamp: bigint;
1289
+ }
1290
+ ],
1291
+ "view"
1292
+ >;
1293
+ getFunction(
1294
+ nameOrSignature: "estimateWithdrawFee"
1295
+ ): TypedContractMethod<
1296
+ [tokenAmount: BigNumberish],
1297
+ [
1298
+ [bigint, bigint, bigint, bigint] & {
1299
+ fee: bigint;
1300
+ cotiLastUpdated: bigint;
1301
+ tokenLastUpdated: bigint;
1302
+ blockTimestamp: bigint;
1303
+ }
1304
+ ],
1305
+ "view"
1306
+ >;
1307
+ getFunction(
1308
+ nameOrSignature: "feeRecipient"
1309
+ ): TypedContractMethod<[], [string], "view">;
1310
+ getFunction(
1311
+ nameOrSignature: "getRoleAdmin"
1312
+ ): TypedContractMethod<[role: BytesLike], [string], "view">;
1313
+ getFunction(
1314
+ nameOrSignature: "getRoleMember"
1315
+ ): TypedContractMethod<
1316
+ [role: BytesLike, index: BigNumberish],
1317
+ [string],
1318
+ "view"
1319
+ >;
1320
+ getFunction(
1321
+ nameOrSignature: "getRoleMemberCount"
1322
+ ): TypedContractMethod<[role: BytesLike], [bigint], "view">;
1323
+ getFunction(
1324
+ nameOrSignature: "grantRole"
1325
+ ): TypedContractMethod<
1326
+ [role: BytesLike, account: AddressLike],
1327
+ [void],
1328
+ "nonpayable"
1329
+ >;
1330
+ getFunction(
1331
+ nameOrSignature: "hasRole"
1332
+ ): TypedContractMethod<
1333
+ [role: BytesLike, account: AddressLike],
1334
+ [boolean],
1335
+ "view"
1336
+ >;
1337
+ getFunction(
1338
+ nameOrSignature: "isDepositEnabled"
1339
+ ): TypedContractMethod<[], [boolean], "view">;
1340
+ getFunction(
1341
+ nameOrSignature: "isOperator"
1342
+ ): TypedContractMethod<[account: AddressLike], [boolean], "view">;
1343
+ getFunction(
1344
+ nameOrSignature: "maxDepositAmount"
1345
+ ): TypedContractMethod<[], [bigint], "view">;
1346
+ getFunction(
1347
+ nameOrSignature: "maxOracleAge"
1348
+ ): TypedContractMethod<[], [bigint], "view">;
1349
+ getFunction(
1350
+ nameOrSignature: "maxWithdrawAmount"
1351
+ ): TypedContractMethod<[], [bigint], "view">;
1352
+ getFunction(
1353
+ nameOrSignature: "minDepositAmount"
1354
+ ): TypedContractMethod<[], [bigint], "view">;
1355
+ getFunction(
1356
+ nameOrSignature: "minWithdrawAmount"
1357
+ ): TypedContractMethod<[], [bigint], "view">;
1358
+ getFunction(
1359
+ nameOrSignature: "owner"
1360
+ ): TypedContractMethod<[], [string], "view">;
1361
+ getFunction(
1362
+ nameOrSignature: "pause"
1363
+ ): TypedContractMethod<[], [void], "nonpayable">;
1364
+ getFunction(
1365
+ nameOrSignature: "paused"
1366
+ ): TypedContractMethod<[], [boolean], "view">;
1367
+ getFunction(
1368
+ nameOrSignature: "priceOracle"
1369
+ ): TypedContractMethod<[], [string], "view">;
1370
+ getFunction(
1371
+ nameOrSignature: "privateToken"
1372
+ ): TypedContractMethod<[], [string], "view">;
1373
+ getFunction(
1374
+ nameOrSignature: "refundableNativeExcess"
1375
+ ): TypedContractMethod<[arg0: AddressLike], [bigint], "view">;
1376
+ getFunction(
1377
+ nameOrSignature: "removeFromBlacklist"
1378
+ ): TypedContractMethod<[account: AddressLike], [void], "nonpayable">;
1379
+ getFunction(
1380
+ nameOrSignature: "removeOperator"
1381
+ ): TypedContractMethod<[account: AddressLike], [void], "nonpayable">;
1382
+ getFunction(
1383
+ nameOrSignature: "renounceOwnership"
1384
+ ): TypedContractMethod<[], [void], "nonpayable">;
1385
+ getFunction(
1386
+ nameOrSignature: "renounceRole"
1387
+ ): TypedContractMethod<
1388
+ [role: BytesLike, account: AddressLike],
1389
+ [void],
1390
+ "nonpayable"
1391
+ >;
1392
+ getFunction(
1393
+ nameOrSignature: "rescueERC20"
1394
+ ): TypedContractMethod<
1395
+ [_token: AddressLike, amount: BigNumberish],
1396
+ [void],
1397
+ "nonpayable"
1398
+ >;
1399
+ getFunction(
1400
+ nameOrSignature: "rescueRecipient"
1401
+ ): TypedContractMethod<[], [string], "view">;
1402
+ getFunction(
1403
+ nameOrSignature: "revokeRole"
1404
+ ): TypedContractMethod<
1405
+ [role: BytesLike, account: AddressLike],
1406
+ [void],
1407
+ "nonpayable"
1408
+ >;
1409
+ getFunction(
1410
+ nameOrSignature: "setDepositDynamicFee"
1411
+ ): TypedContractMethod<
1412
+ [
1413
+ _fixedFee: BigNumberish,
1414
+ _percentageBps: BigNumberish,
1415
+ _maxFee: BigNumberish
1416
+ ],
1417
+ [void],
1418
+ "nonpayable"
1419
+ >;
1420
+ getFunction(
1421
+ nameOrSignature: "setIsDepositEnabled"
1422
+ ): TypedContractMethod<[_enabled: boolean], [void], "nonpayable">;
1423
+ getFunction(
1424
+ nameOrSignature: "setLimits"
1425
+ ): TypedContractMethod<
1426
+ [
1427
+ _minDeposit: BigNumberish,
1428
+ _maxDeposit: BigNumberish,
1429
+ _minWithdraw: BigNumberish,
1430
+ _maxWithdraw: BigNumberish
1431
+ ],
1432
+ [void],
1433
+ "nonpayable"
1434
+ >;
1435
+ getFunction(
1436
+ nameOrSignature: "setMaxOracleAge"
1437
+ ): TypedContractMethod<[_maxOracleAge: BigNumberish], [void], "nonpayable">;
1438
+ getFunction(
1439
+ nameOrSignature: "setPriceOracle"
1440
+ ): TypedContractMethod<[_oracle: AddressLike], [void], "nonpayable">;
1441
+ getFunction(
1442
+ nameOrSignature: "setWithdrawDynamicFee"
1443
+ ): TypedContractMethod<
1444
+ [
1445
+ _fixedFee: BigNumberish,
1446
+ _percentageBps: BigNumberish,
1447
+ _maxFee: BigNumberish
1448
+ ],
1449
+ [void],
1450
+ "nonpayable"
1451
+ >;
1452
+ getFunction(
1453
+ nameOrSignature: "supportsInterface"
1454
+ ): TypedContractMethod<[interfaceId: BytesLike], [boolean], "view">;
1455
+ getFunction(
1456
+ nameOrSignature: "token"
1457
+ ): TypedContractMethod<[], [string], "view">;
1458
+ getFunction(
1459
+ nameOrSignature: "tokenSymbol"
1460
+ ): TypedContractMethod<[], [string], "view">;
1461
+ getFunction(
1462
+ nameOrSignature: "totalUserLiability"
1463
+ ): TypedContractMethod<[], [bigint], "view">;
1464
+ getFunction(
1465
+ nameOrSignature: "transferOwnership"
1466
+ ): TypedContractMethod<[newOwner: AddressLike], [void], "nonpayable">;
1467
+ getFunction(
1468
+ nameOrSignature: "unpause"
1469
+ ): TypedContractMethod<[], [void], "nonpayable">;
1470
+ getFunction(
1471
+ nameOrSignature: "withdraw"
1472
+ ): TypedContractMethod<
1473
+ [
1474
+ amount: BigNumberish,
1475
+ cotiOracleTimestamp: BigNumberish,
1476
+ tokenOracleTimestamp: BigNumberish
1477
+ ],
1478
+ [void],
1479
+ "payable"
1480
+ >;
1481
+ getFunction(
1482
+ nameOrSignature: "withdrawCotiFees"
1483
+ ): TypedContractMethod<[amount: BigNumberish], [void], "nonpayable">;
1484
+ getFunction(
1485
+ nameOrSignature: "withdrawFixedFee"
1486
+ ): TypedContractMethod<[], [bigint], "view">;
1487
+ getFunction(
1488
+ nameOrSignature: "withdrawMaxFee"
1489
+ ): TypedContractMethod<[], [bigint], "view">;
1490
+ getFunction(
1491
+ nameOrSignature: "withdrawPercentageBps"
1492
+ ): TypedContractMethod<[], [bigint], "view">;
1493
+
1494
+ getEvent(
1495
+ key: "Blacklisted"
1496
+ ): TypedContractEvent<
1497
+ BlacklistedEvent.InputTuple,
1498
+ BlacklistedEvent.OutputTuple,
1499
+ BlacklistedEvent.OutputObject
1500
+ >;
1501
+ getEvent(
1502
+ key: "CotiFeesWithdrawn"
1503
+ ): TypedContractEvent<
1504
+ CotiFeesWithdrawnEvent.InputTuple,
1505
+ CotiFeesWithdrawnEvent.OutputTuple,
1506
+ CotiFeesWithdrawnEvent.OutputObject
1507
+ >;
1508
+ getEvent(
1509
+ key: "Deposit"
1510
+ ): TypedContractEvent<
1511
+ DepositEvent.InputTuple,
1512
+ DepositEvent.OutputTuple,
1513
+ DepositEvent.OutputObject
1514
+ >;
1515
+ getEvent(
1516
+ key: "DepositEnabledUpdated"
1517
+ ): TypedContractEvent<
1518
+ DepositEnabledUpdatedEvent.InputTuple,
1519
+ DepositEnabledUpdatedEvent.OutputTuple,
1520
+ DepositEnabledUpdatedEvent.OutputObject
1521
+ >;
1522
+ getEvent(
1523
+ key: "DynamicFeeUpdated"
1524
+ ): TypedContractEvent<
1525
+ DynamicFeeUpdatedEvent.InputTuple,
1526
+ DynamicFeeUpdatedEvent.OutputTuple,
1527
+ DynamicFeeUpdatedEvent.OutputObject
1528
+ >;
1529
+ getEvent(
1530
+ key: "ERC20Rescued"
1531
+ ): TypedContractEvent<
1532
+ ERC20RescuedEvent.InputTuple,
1533
+ ERC20RescuedEvent.OutputTuple,
1534
+ ERC20RescuedEvent.OutputObject
1535
+ >;
1536
+ getEvent(
1537
+ key: "FeesWithdrawn"
1538
+ ): TypedContractEvent<
1539
+ FeesWithdrawnEvent.InputTuple,
1540
+ FeesWithdrawnEvent.OutputTuple,
1541
+ FeesWithdrawnEvent.OutputObject
1542
+ >;
1543
+ getEvent(
1544
+ key: "LimitsUpdated"
1545
+ ): TypedContractEvent<
1546
+ LimitsUpdatedEvent.InputTuple,
1547
+ LimitsUpdatedEvent.OutputTuple,
1548
+ LimitsUpdatedEvent.OutputObject
1549
+ >;
1550
+ getEvent(
1551
+ key: "MaxOracleAgeUpdated"
1552
+ ): TypedContractEvent<
1553
+ MaxOracleAgeUpdatedEvent.InputTuple,
1554
+ MaxOracleAgeUpdatedEvent.OutputTuple,
1555
+ MaxOracleAgeUpdatedEvent.OutputObject
1556
+ >;
1557
+ getEvent(
1558
+ key: "NativeRefundExcessPushFailed"
1559
+ ): TypedContractEvent<
1560
+ NativeRefundExcessPushFailedEvent.InputTuple,
1561
+ NativeRefundExcessPushFailedEvent.OutputTuple,
1562
+ NativeRefundExcessPushFailedEvent.OutputObject
1563
+ >;
1564
+ getEvent(
1565
+ key: "OperatorAdded"
1566
+ ): TypedContractEvent<
1567
+ OperatorAddedEvent.InputTuple,
1568
+ OperatorAddedEvent.OutputTuple,
1569
+ OperatorAddedEvent.OutputObject
1570
+ >;
1571
+ getEvent(
1572
+ key: "OperatorRemoved"
1573
+ ): TypedContractEvent<
1574
+ OperatorRemovedEvent.InputTuple,
1575
+ OperatorRemovedEvent.OutputTuple,
1576
+ OperatorRemovedEvent.OutputObject
1577
+ >;
1578
+ getEvent(
1579
+ key: "OwnershipTransferred"
1580
+ ): TypedContractEvent<
1581
+ OwnershipTransferredEvent.InputTuple,
1582
+ OwnershipTransferredEvent.OutputTuple,
1583
+ OwnershipTransferredEvent.OutputObject
1584
+ >;
1585
+ getEvent(
1586
+ key: "Paused"
1587
+ ): TypedContractEvent<
1588
+ PausedEvent.InputTuple,
1589
+ PausedEvent.OutputTuple,
1590
+ PausedEvent.OutputObject
1591
+ >;
1592
+ getEvent(
1593
+ key: "PriceOracleUpdated"
1594
+ ): TypedContractEvent<
1595
+ PriceOracleUpdatedEvent.InputTuple,
1596
+ PriceOracleUpdatedEvent.OutputTuple,
1597
+ PriceOracleUpdatedEvent.OutputObject
1598
+ >;
1599
+ getEvent(
1600
+ key: "RefundableNativeExcessClaimed"
1601
+ ): TypedContractEvent<
1602
+ RefundableNativeExcessClaimedEvent.InputTuple,
1603
+ RefundableNativeExcessClaimedEvent.OutputTuple,
1604
+ RefundableNativeExcessClaimedEvent.OutputObject
1605
+ >;
1606
+ getEvent(
1607
+ key: "RoleAdminChanged"
1608
+ ): TypedContractEvent<
1609
+ RoleAdminChangedEvent.InputTuple,
1610
+ RoleAdminChangedEvent.OutputTuple,
1611
+ RoleAdminChangedEvent.OutputObject
1612
+ >;
1613
+ getEvent(
1614
+ key: "RoleGranted"
1615
+ ): TypedContractEvent<
1616
+ RoleGrantedEvent.InputTuple,
1617
+ RoleGrantedEvent.OutputTuple,
1618
+ RoleGrantedEvent.OutputObject
1619
+ >;
1620
+ getEvent(
1621
+ key: "RoleRevoked"
1622
+ ): TypedContractEvent<
1623
+ RoleRevokedEvent.InputTuple,
1624
+ RoleRevokedEvent.OutputTuple,
1625
+ RoleRevokedEvent.OutputObject
1626
+ >;
1627
+ getEvent(
1628
+ key: "UnBlacklisted"
1629
+ ): TypedContractEvent<
1630
+ UnBlacklistedEvent.InputTuple,
1631
+ UnBlacklistedEvent.OutputTuple,
1632
+ UnBlacklistedEvent.OutputObject
1633
+ >;
1634
+ getEvent(
1635
+ key: "Unpaused"
1636
+ ): TypedContractEvent<
1637
+ UnpausedEvent.InputTuple,
1638
+ UnpausedEvent.OutputTuple,
1639
+ UnpausedEvent.OutputObject
1640
+ >;
1641
+ getEvent(
1642
+ key: "Withdraw"
1643
+ ): TypedContractEvent<
1644
+ WithdrawEvent.InputTuple,
1645
+ WithdrawEvent.OutputTuple,
1646
+ WithdrawEvent.OutputObject
1647
+ >;
1648
+
1649
+ filters: {
1650
+ "Blacklisted(address,address)": TypedContractEvent<
1651
+ BlacklistedEvent.InputTuple,
1652
+ BlacklistedEvent.OutputTuple,
1653
+ BlacklistedEvent.OutputObject
1654
+ >;
1655
+ Blacklisted: TypedContractEvent<
1656
+ BlacklistedEvent.InputTuple,
1657
+ BlacklistedEvent.OutputTuple,
1658
+ BlacklistedEvent.OutputObject
1659
+ >;
1660
+
1661
+ "CotiFeesWithdrawn(address,uint256)": TypedContractEvent<
1662
+ CotiFeesWithdrawnEvent.InputTuple,
1663
+ CotiFeesWithdrawnEvent.OutputTuple,
1664
+ CotiFeesWithdrawnEvent.OutputObject
1665
+ >;
1666
+ CotiFeesWithdrawn: TypedContractEvent<
1667
+ CotiFeesWithdrawnEvent.InputTuple,
1668
+ CotiFeesWithdrawnEvent.OutputTuple,
1669
+ CotiFeesWithdrawnEvent.OutputObject
1670
+ >;
1671
+
1672
+ "Deposit(address,uint256,uint256)": TypedContractEvent<
1673
+ DepositEvent.InputTuple,
1674
+ DepositEvent.OutputTuple,
1675
+ DepositEvent.OutputObject
1676
+ >;
1677
+ Deposit: TypedContractEvent<
1678
+ DepositEvent.InputTuple,
1679
+ DepositEvent.OutputTuple,
1680
+ DepositEvent.OutputObject
1681
+ >;
1682
+
1683
+ "DepositEnabledUpdated(bool,address)": TypedContractEvent<
1684
+ DepositEnabledUpdatedEvent.InputTuple,
1685
+ DepositEnabledUpdatedEvent.OutputTuple,
1686
+ DepositEnabledUpdatedEvent.OutputObject
1687
+ >;
1688
+ DepositEnabledUpdated: TypedContractEvent<
1689
+ DepositEnabledUpdatedEvent.InputTuple,
1690
+ DepositEnabledUpdatedEvent.OutputTuple,
1691
+ DepositEnabledUpdatedEvent.OutputObject
1692
+ >;
1693
+
1694
+ "DynamicFeeUpdated(string,uint256,uint256,uint256)": TypedContractEvent<
1695
+ DynamicFeeUpdatedEvent.InputTuple,
1696
+ DynamicFeeUpdatedEvent.OutputTuple,
1697
+ DynamicFeeUpdatedEvent.OutputObject
1698
+ >;
1699
+ DynamicFeeUpdated: TypedContractEvent<
1700
+ DynamicFeeUpdatedEvent.InputTuple,
1701
+ DynamicFeeUpdatedEvent.OutputTuple,
1702
+ DynamicFeeUpdatedEvent.OutputObject
1703
+ >;
1704
+
1705
+ "ERC20Rescued(address,address,uint256)": TypedContractEvent<
1706
+ ERC20RescuedEvent.InputTuple,
1707
+ ERC20RescuedEvent.OutputTuple,
1708
+ ERC20RescuedEvent.OutputObject
1709
+ >;
1710
+ ERC20Rescued: TypedContractEvent<
1711
+ ERC20RescuedEvent.InputTuple,
1712
+ ERC20RescuedEvent.OutputTuple,
1713
+ ERC20RescuedEvent.OutputObject
1714
+ >;
1715
+
1716
+ "FeesWithdrawn(address,uint256)": TypedContractEvent<
1717
+ FeesWithdrawnEvent.InputTuple,
1718
+ FeesWithdrawnEvent.OutputTuple,
1719
+ FeesWithdrawnEvent.OutputObject
1720
+ >;
1721
+ FeesWithdrawn: TypedContractEvent<
1722
+ FeesWithdrawnEvent.InputTuple,
1723
+ FeesWithdrawnEvent.OutputTuple,
1724
+ FeesWithdrawnEvent.OutputObject
1725
+ >;
1726
+
1727
+ "LimitsUpdated(uint256,uint256,uint256,uint256)": TypedContractEvent<
1728
+ LimitsUpdatedEvent.InputTuple,
1729
+ LimitsUpdatedEvent.OutputTuple,
1730
+ LimitsUpdatedEvent.OutputObject
1731
+ >;
1732
+ LimitsUpdated: TypedContractEvent<
1733
+ LimitsUpdatedEvent.InputTuple,
1734
+ LimitsUpdatedEvent.OutputTuple,
1735
+ LimitsUpdatedEvent.OutputObject
1736
+ >;
1737
+
1738
+ "MaxOracleAgeUpdated(uint256,address)": TypedContractEvent<
1739
+ MaxOracleAgeUpdatedEvent.InputTuple,
1740
+ MaxOracleAgeUpdatedEvent.OutputTuple,
1741
+ MaxOracleAgeUpdatedEvent.OutputObject
1742
+ >;
1743
+ MaxOracleAgeUpdated: TypedContractEvent<
1744
+ MaxOracleAgeUpdatedEvent.InputTuple,
1745
+ MaxOracleAgeUpdatedEvent.OutputTuple,
1746
+ MaxOracleAgeUpdatedEvent.OutputObject
1747
+ >;
1748
+
1749
+ "NativeRefundExcessPushFailed(address,uint256)": TypedContractEvent<
1750
+ NativeRefundExcessPushFailedEvent.InputTuple,
1751
+ NativeRefundExcessPushFailedEvent.OutputTuple,
1752
+ NativeRefundExcessPushFailedEvent.OutputObject
1753
+ >;
1754
+ NativeRefundExcessPushFailed: TypedContractEvent<
1755
+ NativeRefundExcessPushFailedEvent.InputTuple,
1756
+ NativeRefundExcessPushFailedEvent.OutputTuple,
1757
+ NativeRefundExcessPushFailedEvent.OutputObject
1758
+ >;
1759
+
1760
+ "OperatorAdded(address,address)": TypedContractEvent<
1761
+ OperatorAddedEvent.InputTuple,
1762
+ OperatorAddedEvent.OutputTuple,
1763
+ OperatorAddedEvent.OutputObject
1764
+ >;
1765
+ OperatorAdded: TypedContractEvent<
1766
+ OperatorAddedEvent.InputTuple,
1767
+ OperatorAddedEvent.OutputTuple,
1768
+ OperatorAddedEvent.OutputObject
1769
+ >;
1770
+
1771
+ "OperatorRemoved(address,address)": TypedContractEvent<
1772
+ OperatorRemovedEvent.InputTuple,
1773
+ OperatorRemovedEvent.OutputTuple,
1774
+ OperatorRemovedEvent.OutputObject
1775
+ >;
1776
+ OperatorRemoved: TypedContractEvent<
1777
+ OperatorRemovedEvent.InputTuple,
1778
+ OperatorRemovedEvent.OutputTuple,
1779
+ OperatorRemovedEvent.OutputObject
1780
+ >;
1781
+
1782
+ "OwnershipTransferred(address,address)": TypedContractEvent<
1783
+ OwnershipTransferredEvent.InputTuple,
1784
+ OwnershipTransferredEvent.OutputTuple,
1785
+ OwnershipTransferredEvent.OutputObject
1786
+ >;
1787
+ OwnershipTransferred: TypedContractEvent<
1788
+ OwnershipTransferredEvent.InputTuple,
1789
+ OwnershipTransferredEvent.OutputTuple,
1790
+ OwnershipTransferredEvent.OutputObject
1791
+ >;
1792
+
1793
+ "Paused(address)": TypedContractEvent<
1794
+ PausedEvent.InputTuple,
1795
+ PausedEvent.OutputTuple,
1796
+ PausedEvent.OutputObject
1797
+ >;
1798
+ Paused: TypedContractEvent<
1799
+ PausedEvent.InputTuple,
1800
+ PausedEvent.OutputTuple,
1801
+ PausedEvent.OutputObject
1802
+ >;
1803
+
1804
+ "PriceOracleUpdated(address,address)": TypedContractEvent<
1805
+ PriceOracleUpdatedEvent.InputTuple,
1806
+ PriceOracleUpdatedEvent.OutputTuple,
1807
+ PriceOracleUpdatedEvent.OutputObject
1808
+ >;
1809
+ PriceOracleUpdated: TypedContractEvent<
1810
+ PriceOracleUpdatedEvent.InputTuple,
1811
+ PriceOracleUpdatedEvent.OutputTuple,
1812
+ PriceOracleUpdatedEvent.OutputObject
1813
+ >;
1814
+
1815
+ "RefundableNativeExcessClaimed(address,uint256)": TypedContractEvent<
1816
+ RefundableNativeExcessClaimedEvent.InputTuple,
1817
+ RefundableNativeExcessClaimedEvent.OutputTuple,
1818
+ RefundableNativeExcessClaimedEvent.OutputObject
1819
+ >;
1820
+ RefundableNativeExcessClaimed: TypedContractEvent<
1821
+ RefundableNativeExcessClaimedEvent.InputTuple,
1822
+ RefundableNativeExcessClaimedEvent.OutputTuple,
1823
+ RefundableNativeExcessClaimedEvent.OutputObject
1824
+ >;
1825
+
1826
+ "RoleAdminChanged(bytes32,bytes32,bytes32)": TypedContractEvent<
1827
+ RoleAdminChangedEvent.InputTuple,
1828
+ RoleAdminChangedEvent.OutputTuple,
1829
+ RoleAdminChangedEvent.OutputObject
1830
+ >;
1831
+ RoleAdminChanged: TypedContractEvent<
1832
+ RoleAdminChangedEvent.InputTuple,
1833
+ RoleAdminChangedEvent.OutputTuple,
1834
+ RoleAdminChangedEvent.OutputObject
1835
+ >;
1836
+
1837
+ "RoleGranted(bytes32,address,address)": TypedContractEvent<
1838
+ RoleGrantedEvent.InputTuple,
1839
+ RoleGrantedEvent.OutputTuple,
1840
+ RoleGrantedEvent.OutputObject
1841
+ >;
1842
+ RoleGranted: TypedContractEvent<
1843
+ RoleGrantedEvent.InputTuple,
1844
+ RoleGrantedEvent.OutputTuple,
1845
+ RoleGrantedEvent.OutputObject
1846
+ >;
1847
+
1848
+ "RoleRevoked(bytes32,address,address)": TypedContractEvent<
1849
+ RoleRevokedEvent.InputTuple,
1850
+ RoleRevokedEvent.OutputTuple,
1851
+ RoleRevokedEvent.OutputObject
1852
+ >;
1853
+ RoleRevoked: TypedContractEvent<
1854
+ RoleRevokedEvent.InputTuple,
1855
+ RoleRevokedEvent.OutputTuple,
1856
+ RoleRevokedEvent.OutputObject
1857
+ >;
1858
+
1859
+ "UnBlacklisted(address,address)": TypedContractEvent<
1860
+ UnBlacklistedEvent.InputTuple,
1861
+ UnBlacklistedEvent.OutputTuple,
1862
+ UnBlacklistedEvent.OutputObject
1863
+ >;
1864
+ UnBlacklisted: TypedContractEvent<
1865
+ UnBlacklistedEvent.InputTuple,
1866
+ UnBlacklistedEvent.OutputTuple,
1867
+ UnBlacklistedEvent.OutputObject
1868
+ >;
1869
+
1870
+ "Unpaused(address)": TypedContractEvent<
1871
+ UnpausedEvent.InputTuple,
1872
+ UnpausedEvent.OutputTuple,
1873
+ UnpausedEvent.OutputObject
1874
+ >;
1875
+ Unpaused: TypedContractEvent<
1876
+ UnpausedEvent.InputTuple,
1877
+ UnpausedEvent.OutputTuple,
1878
+ UnpausedEvent.OutputObject
1879
+ >;
1880
+
1881
+ "Withdraw(address,uint256,uint256)": TypedContractEvent<
1882
+ WithdrawEvent.InputTuple,
1883
+ WithdrawEvent.OutputTuple,
1884
+ WithdrawEvent.OutputObject
1885
+ >;
1886
+ Withdraw: TypedContractEvent<
1887
+ WithdrawEvent.InputTuple,
1888
+ WithdrawEvent.OutputTuple,
1889
+ WithdrawEvent.OutputObject
1890
+ >;
1891
+ };
1892
+ }