opinion-clob-sdk 0.1.9__py3-none-any.whl → 0.4.2__py3-none-any.whl

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 (361) hide show
  1. opinion_clob_sdk/__init__.py +3 -3
  2. opinion_clob_sdk/chain/contract_caller.py +56 -2
  3. opinion_clob_sdk/chain/contracts/erc20.py +21 -0
  4. opinion_clob_sdk/chain/py_order_utils/abi/Exchange.json +1851 -0
  5. opinion_clob_sdk/chain/py_order_utils/abi/FeeManager.json +4416 -0
  6. opinion_clob_sdk/chain/py_order_utils/abi/FeeManager.py +9 -0
  7. opinion_clob_sdk/chain/py_order_utils/builders/base_builder.py +1 -1
  8. opinion_clob_sdk/chain/py_order_utils/builders/order_builder_test.py +1 -1
  9. opinion_clob_sdk/chain/py_order_utils/utils.py +100 -35
  10. opinion_clob_sdk/chain/safe/safe_test.py +1 -1
  11. opinion_clob_sdk/config.py +16 -1
  12. opinion_clob_sdk/model.py +26 -2
  13. opinion_clob_sdk/sdk.py +240 -102
  14. opinion_clob_sdk/verify_checksum_addresses.py +63 -0
  15. {opinion_clob_sdk-0.1.9.dist-info → opinion_clob_sdk-0.4.2.dist-info}/METADATA +12 -10
  16. opinion_clob_sdk-0.4.2.dist-info/RECORD +51 -0
  17. opinion_clob_sdk/opinion_clob_sdk/__init__.py +0 -26
  18. opinion_clob_sdk/opinion_clob_sdk/chain/__init__.py +0 -0
  19. opinion_clob_sdk/opinion_clob_sdk/chain/contract_caller.py +0 -390
  20. opinion_clob_sdk/opinion_clob_sdk/chain/contracts/__init__.py +0 -0
  21. opinion_clob_sdk/opinion_clob_sdk/chain/contracts/conditional_tokens.py +0 -707
  22. opinion_clob_sdk/opinion_clob_sdk/chain/contracts/erc20.py +0 -111
  23. opinion_clob_sdk/opinion_clob_sdk/chain/exception.py +0 -11
  24. opinion_clob_sdk/opinion_clob_sdk/chain/py_order_utils/__init__.py +0 -0
  25. opinion_clob_sdk/opinion_clob_sdk/chain/py_order_utils/builders/__init__.py +0 -0
  26. opinion_clob_sdk/opinion_clob_sdk/chain/py_order_utils/builders/base_builder.py +0 -41
  27. opinion_clob_sdk/opinion_clob_sdk/chain/py_order_utils/builders/exception.py +0 -2
  28. opinion_clob_sdk/opinion_clob_sdk/chain/py_order_utils/builders/order_builder.py +0 -90
  29. opinion_clob_sdk/opinion_clob_sdk/chain/py_order_utils/builders/order_builder_test.py +0 -40
  30. opinion_clob_sdk/opinion_clob_sdk/chain/py_order_utils/constants.py +0 -2
  31. opinion_clob_sdk/opinion_clob_sdk/chain/py_order_utils/model/__init__.py +0 -0
  32. opinion_clob_sdk/opinion_clob_sdk/chain/py_order_utils/model/order.py +0 -254
  33. opinion_clob_sdk/opinion_clob_sdk/chain/py_order_utils/model/order_type.py +0 -9
  34. opinion_clob_sdk/opinion_clob_sdk/chain/py_order_utils/model/sides.py +0 -8
  35. opinion_clob_sdk/opinion_clob_sdk/chain/py_order_utils/model/signatures.py +0 -8
  36. opinion_clob_sdk/opinion_clob_sdk/chain/py_order_utils/signer.py +0 -20
  37. opinion_clob_sdk/opinion_clob_sdk/chain/py_order_utils/utils.py +0 -115
  38. opinion_clob_sdk/opinion_clob_sdk/chain/safe/__init__.py +0 -0
  39. opinion_clob_sdk/opinion_clob_sdk/chain/safe/constants.py +0 -19
  40. opinion_clob_sdk/opinion_clob_sdk/chain/safe/eip712/__init__.py +0 -176
  41. opinion_clob_sdk/opinion_clob_sdk/chain/safe/enums.py +0 -6
  42. opinion_clob_sdk/opinion_clob_sdk/chain/safe/exceptions.py +0 -94
  43. opinion_clob_sdk/opinion_clob_sdk/chain/safe/multisend.py +0 -347
  44. opinion_clob_sdk/opinion_clob_sdk/chain/safe/safe.py +0 -141
  45. opinion_clob_sdk/opinion_clob_sdk/chain/safe/safe_contracts/__init__.py +0 -0
  46. opinion_clob_sdk/opinion_clob_sdk/chain/safe/safe_contracts/compatibility_fallback_handler_v1_3_0.py +0 -327
  47. opinion_clob_sdk/opinion_clob_sdk/chain/safe/safe_contracts/multisend_v1_3_0.py +0 -22
  48. opinion_clob_sdk/opinion_clob_sdk/chain/safe/safe_contracts/safe_v1_3_0.py +0 -1035
  49. opinion_clob_sdk/opinion_clob_sdk/chain/safe/safe_contracts/utils.py +0 -26
  50. opinion_clob_sdk/opinion_clob_sdk/chain/safe/safe_signature.py +0 -364
  51. opinion_clob_sdk/opinion_clob_sdk/chain/safe/safe_test.py +0 -37
  52. opinion_clob_sdk/opinion_clob_sdk/chain/safe/safe_tx.py +0 -437
  53. opinion_clob_sdk/opinion_clob_sdk/chain/safe/signatures.py +0 -63
  54. opinion_clob_sdk/opinion_clob_sdk/chain/safe/typing.py +0 -17
  55. opinion_clob_sdk/opinion_clob_sdk/chain/safe/utils.py +0 -218
  56. opinion_clob_sdk/opinion_clob_sdk/config.py +0 -4
  57. opinion_clob_sdk/opinion_clob_sdk/model.py +0 -19
  58. opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/__init__.py +0 -26
  59. opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/chain/__init__.py +0 -0
  60. opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/chain/contract_caller.py +0 -390
  61. opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/chain/contracts/__init__.py +0 -0
  62. opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/chain/contracts/conditional_tokens.py +0 -707
  63. opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/chain/contracts/erc20.py +0 -111
  64. opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/chain/exception.py +0 -11
  65. opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/chain/py_order_utils/__init__.py +0 -0
  66. opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/chain/py_order_utils/builders/__init__.py +0 -0
  67. opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/chain/py_order_utils/builders/base_builder.py +0 -41
  68. opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/chain/py_order_utils/builders/exception.py +0 -2
  69. opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/chain/py_order_utils/builders/order_builder.py +0 -90
  70. opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/chain/py_order_utils/builders/order_builder_test.py +0 -40
  71. opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/chain/py_order_utils/constants.py +0 -2
  72. opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/chain/py_order_utils/model/__init__.py +0 -0
  73. opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/chain/py_order_utils/model/order.py +0 -254
  74. opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/chain/py_order_utils/model/order_type.py +0 -9
  75. opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/chain/py_order_utils/model/sides.py +0 -8
  76. opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/chain/py_order_utils/model/signatures.py +0 -8
  77. opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/chain/py_order_utils/signer.py +0 -20
  78. opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/chain/py_order_utils/utils.py +0 -115
  79. opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/chain/safe/__init__.py +0 -0
  80. opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/chain/safe/constants.py +0 -19
  81. opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/chain/safe/eip712/__init__.py +0 -176
  82. opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/chain/safe/enums.py +0 -6
  83. opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/chain/safe/exceptions.py +0 -94
  84. opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/chain/safe/multisend.py +0 -347
  85. opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/chain/safe/safe.py +0 -141
  86. opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/chain/safe/safe_contracts/__init__.py +0 -0
  87. opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/chain/safe/safe_contracts/compatibility_fallback_handler_v1_3_0.py +0 -327
  88. opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/chain/safe/safe_contracts/multisend_v1_3_0.py +0 -22
  89. opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/chain/safe/safe_contracts/safe_v1_3_0.py +0 -1035
  90. opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/chain/safe/safe_contracts/utils.py +0 -26
  91. opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/chain/safe/safe_signature.py +0 -364
  92. opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/chain/safe/safe_test.py +0 -37
  93. opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/chain/safe/safe_tx.py +0 -437
  94. opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/chain/safe/signatures.py +0 -63
  95. opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/chain/safe/typing.py +0 -17
  96. opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/chain/safe/utils.py +0 -218
  97. opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/config.py +0 -4
  98. opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/model.py +0 -19
  99. opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/__init__.py +0 -26
  100. opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/chain/__init__.py +0 -0
  101. opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/chain/contract_caller.py +0 -390
  102. opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/chain/contracts/__init__.py +0 -0
  103. opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/chain/contracts/conditional_tokens.py +0 -707
  104. opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/chain/contracts/erc20.py +0 -111
  105. opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/chain/exception.py +0 -11
  106. opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/chain/py_order_utils/__init__.py +0 -0
  107. opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/chain/py_order_utils/builders/__init__.py +0 -0
  108. opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/chain/py_order_utils/builders/base_builder.py +0 -41
  109. opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/chain/py_order_utils/builders/exception.py +0 -2
  110. opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/chain/py_order_utils/builders/order_builder.py +0 -90
  111. opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/chain/py_order_utils/builders/order_builder_test.py +0 -40
  112. opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/chain/py_order_utils/constants.py +0 -2
  113. opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/chain/py_order_utils/model/__init__.py +0 -0
  114. opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/chain/py_order_utils/model/order.py +0 -254
  115. opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/chain/py_order_utils/model/order_type.py +0 -9
  116. opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/chain/py_order_utils/model/sides.py +0 -8
  117. opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/chain/py_order_utils/model/signatures.py +0 -8
  118. opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/chain/py_order_utils/signer.py +0 -20
  119. opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/chain/py_order_utils/utils.py +0 -115
  120. opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/chain/safe/__init__.py +0 -0
  121. opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/chain/safe/constants.py +0 -19
  122. opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/chain/safe/eip712/__init__.py +0 -176
  123. opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/chain/safe/enums.py +0 -6
  124. opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/chain/safe/exceptions.py +0 -94
  125. opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/chain/safe/multisend.py +0 -347
  126. opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/chain/safe/safe.py +0 -141
  127. opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/chain/safe/safe_contracts/__init__.py +0 -0
  128. opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/chain/safe/safe_contracts/compatibility_fallback_handler_v1_3_0.py +0 -327
  129. opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/chain/safe/safe_contracts/multisend_v1_3_0.py +0 -22
  130. opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/chain/safe/safe_contracts/safe_v1_3_0.py +0 -1035
  131. opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/chain/safe/safe_contracts/utils.py +0 -26
  132. opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/chain/safe/safe_signature.py +0 -364
  133. opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/chain/safe/safe_test.py +0 -37
  134. opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/chain/safe/safe_tx.py +0 -437
  135. opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/chain/safe/signatures.py +0 -63
  136. opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/chain/safe/typing.py +0 -17
  137. opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/chain/safe/utils.py +0 -218
  138. opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/config.py +0 -4
  139. opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/model.py +0 -19
  140. opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/__init__.py +0 -26
  141. opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/chain/__init__.py +0 -0
  142. opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/chain/contract_caller.py +0 -390
  143. opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/chain/contracts/__init__.py +0 -0
  144. opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/chain/contracts/conditional_tokens.py +0 -707
  145. opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/chain/contracts/erc20.py +0 -111
  146. opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/chain/exception.py +0 -11
  147. opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/chain/py_order_utils/__init__.py +0 -0
  148. opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/chain/py_order_utils/builders/__init__.py +0 -0
  149. opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/chain/py_order_utils/builders/base_builder.py +0 -41
  150. opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/chain/py_order_utils/builders/exception.py +0 -2
  151. opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/chain/py_order_utils/builders/order_builder.py +0 -90
  152. opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/chain/py_order_utils/builders/order_builder_test.py +0 -40
  153. opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/chain/py_order_utils/constants.py +0 -2
  154. opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/chain/py_order_utils/model/__init__.py +0 -0
  155. opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/chain/py_order_utils/model/order.py +0 -254
  156. opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/chain/py_order_utils/model/order_type.py +0 -9
  157. opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/chain/py_order_utils/model/sides.py +0 -8
  158. opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/chain/py_order_utils/model/signatures.py +0 -8
  159. opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/chain/py_order_utils/signer.py +0 -20
  160. opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/chain/py_order_utils/utils.py +0 -115
  161. opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/chain/safe/__init__.py +0 -0
  162. opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/chain/safe/constants.py +0 -19
  163. opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/chain/safe/eip712/__init__.py +0 -176
  164. opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/chain/safe/enums.py +0 -6
  165. opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/chain/safe/exceptions.py +0 -94
  166. opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/chain/safe/multisend.py +0 -347
  167. opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/chain/safe/safe.py +0 -141
  168. opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/chain/safe/safe_contracts/__init__.py +0 -0
  169. opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/chain/safe/safe_contracts/compatibility_fallback_handler_v1_3_0.py +0 -327
  170. opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/chain/safe/safe_contracts/multisend_v1_3_0.py +0 -22
  171. opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/chain/safe/safe_contracts/safe_v1_3_0.py +0 -1035
  172. opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/chain/safe/safe_contracts/utils.py +0 -26
  173. opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/chain/safe/safe_signature.py +0 -364
  174. opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/chain/safe/safe_test.py +0 -37
  175. opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/chain/safe/safe_tx.py +0 -437
  176. opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/chain/safe/signatures.py +0 -63
  177. opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/chain/safe/typing.py +0 -17
  178. opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/chain/safe/utils.py +0 -218
  179. opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/config.py +0 -4
  180. opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/model.py +0 -19
  181. opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/__init__.py +0 -26
  182. opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/chain/__init__.py +0 -0
  183. opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/chain/contract_caller.py +0 -390
  184. opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/chain/contracts/__init__.py +0 -0
  185. opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/chain/contracts/conditional_tokens.py +0 -707
  186. opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/chain/contracts/erc20.py +0 -111
  187. opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/chain/exception.py +0 -11
  188. opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/chain/py_order_utils/__init__.py +0 -0
  189. opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/chain/py_order_utils/builders/__init__.py +0 -0
  190. opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/chain/py_order_utils/builders/base_builder.py +0 -41
  191. opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/chain/py_order_utils/builders/exception.py +0 -2
  192. opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/chain/py_order_utils/builders/order_builder.py +0 -90
  193. opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/chain/py_order_utils/builders/order_builder_test.py +0 -40
  194. opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/chain/py_order_utils/constants.py +0 -2
  195. opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/chain/py_order_utils/model/__init__.py +0 -0
  196. opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/chain/py_order_utils/model/order.py +0 -254
  197. opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/chain/py_order_utils/model/order_type.py +0 -9
  198. opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/chain/py_order_utils/model/sides.py +0 -8
  199. opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/chain/py_order_utils/model/signatures.py +0 -8
  200. opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/chain/py_order_utils/signer.py +0 -20
  201. opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/chain/py_order_utils/utils.py +0 -115
  202. opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/chain/safe/__init__.py +0 -0
  203. opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/chain/safe/constants.py +0 -19
  204. opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/chain/safe/eip712/__init__.py +0 -176
  205. opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/chain/safe/enums.py +0 -6
  206. opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/chain/safe/exceptions.py +0 -94
  207. opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/chain/safe/multisend.py +0 -347
  208. opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/chain/safe/safe.py +0 -141
  209. opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/chain/safe/safe_contracts/__init__.py +0 -0
  210. opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/chain/safe/safe_contracts/compatibility_fallback_handler_v1_3_0.py +0 -327
  211. opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/chain/safe/safe_contracts/multisend_v1_3_0.py +0 -22
  212. opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/chain/safe/safe_contracts/safe_v1_3_0.py +0 -1035
  213. opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/chain/safe/safe_contracts/utils.py +0 -26
  214. opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/chain/safe/safe_signature.py +0 -364
  215. opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/chain/safe/safe_test.py +0 -37
  216. opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/chain/safe/safe_tx.py +0 -437
  217. opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/chain/safe/signatures.py +0 -63
  218. opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/chain/safe/typing.py +0 -17
  219. opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/chain/safe/utils.py +0 -218
  220. opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/config.py +0 -4
  221. opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/model.py +0 -19
  222. opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/__init__.py +0 -26
  223. opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/chain/__init__.py +0 -0
  224. opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/chain/contract_caller.py +0 -390
  225. opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/chain/contracts/__init__.py +0 -0
  226. opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/chain/contracts/conditional_tokens.py +0 -707
  227. opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/chain/contracts/erc20.py +0 -111
  228. opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/chain/exception.py +0 -11
  229. opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/chain/py_order_utils/__init__.py +0 -0
  230. opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/chain/py_order_utils/builders/__init__.py +0 -0
  231. opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/chain/py_order_utils/builders/base_builder.py +0 -41
  232. opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/chain/py_order_utils/builders/exception.py +0 -2
  233. opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/chain/py_order_utils/builders/order_builder.py +0 -90
  234. opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/chain/py_order_utils/builders/order_builder_test.py +0 -40
  235. opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/chain/py_order_utils/constants.py +0 -2
  236. opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/chain/py_order_utils/model/__init__.py +0 -0
  237. opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/chain/py_order_utils/model/order.py +0 -254
  238. opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/chain/py_order_utils/model/order_type.py +0 -9
  239. opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/chain/py_order_utils/model/sides.py +0 -8
  240. opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/chain/py_order_utils/model/signatures.py +0 -8
  241. opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/chain/py_order_utils/signer.py +0 -20
  242. opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/chain/py_order_utils/utils.py +0 -115
  243. opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/chain/safe/__init__.py +0 -0
  244. opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/chain/safe/constants.py +0 -19
  245. opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/chain/safe/eip712/__init__.py +0 -176
  246. opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/chain/safe/enums.py +0 -6
  247. opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/chain/safe/exceptions.py +0 -94
  248. opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/chain/safe/multisend.py +0 -347
  249. opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/chain/safe/safe.py +0 -141
  250. opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/chain/safe/safe_contracts/__init__.py +0 -0
  251. opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/chain/safe/safe_contracts/compatibility_fallback_handler_v1_3_0.py +0 -327
  252. opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/chain/safe/safe_contracts/multisend_v1_3_0.py +0 -22
  253. opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/chain/safe/safe_contracts/safe_v1_3_0.py +0 -1035
  254. opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/chain/safe/safe_contracts/utils.py +0 -26
  255. opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/chain/safe/safe_signature.py +0 -364
  256. opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/chain/safe/safe_test.py +0 -37
  257. opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/chain/safe/safe_tx.py +0 -437
  258. opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/chain/safe/signatures.py +0 -63
  259. opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/chain/safe/typing.py +0 -17
  260. opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/chain/safe/utils.py +0 -218
  261. opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/config.py +0 -4
  262. opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/model.py +0 -19
  263. opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/__init__.py +0 -26
  264. opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/chain/__init__.py +0 -0
  265. opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/chain/contract_caller.py +0 -390
  266. opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/chain/contracts/__init__.py +0 -0
  267. opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/chain/contracts/conditional_tokens.py +0 -707
  268. opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/chain/contracts/erc20.py +0 -111
  269. opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/chain/exception.py +0 -11
  270. opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/chain/py_order_utils/__init__.py +0 -0
  271. opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/chain/py_order_utils/builders/__init__.py +0 -0
  272. opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/chain/py_order_utils/builders/base_builder.py +0 -41
  273. opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/chain/py_order_utils/builders/exception.py +0 -2
  274. opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/chain/py_order_utils/builders/order_builder.py +0 -90
  275. opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/chain/py_order_utils/builders/order_builder_test.py +0 -40
  276. opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/chain/py_order_utils/constants.py +0 -2
  277. opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/chain/py_order_utils/model/__init__.py +0 -0
  278. opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/chain/py_order_utils/model/order.py +0 -254
  279. opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/chain/py_order_utils/model/order_type.py +0 -9
  280. opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/chain/py_order_utils/model/sides.py +0 -8
  281. opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/chain/py_order_utils/model/signatures.py +0 -8
  282. opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/chain/py_order_utils/signer.py +0 -20
  283. opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/chain/py_order_utils/utils.py +0 -115
  284. opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/chain/safe/__init__.py +0 -0
  285. opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/chain/safe/constants.py +0 -19
  286. opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/chain/safe/eip712/__init__.py +0 -176
  287. opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/chain/safe/enums.py +0 -6
  288. opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/chain/safe/exceptions.py +0 -94
  289. opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/chain/safe/multisend.py +0 -347
  290. opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/chain/safe/safe.py +0 -141
  291. opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/chain/safe/safe_contracts/__init__.py +0 -0
  292. opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/chain/safe/safe_contracts/compatibility_fallback_handler_v1_3_0.py +0 -327
  293. opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/chain/safe/safe_contracts/multisend_v1_3_0.py +0 -22
  294. opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/chain/safe/safe_contracts/safe_v1_3_0.py +0 -1035
  295. opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/chain/safe/safe_contracts/utils.py +0 -26
  296. opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/chain/safe/safe_signature.py +0 -364
  297. opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/chain/safe/safe_test.py +0 -37
  298. opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/chain/safe/safe_tx.py +0 -437
  299. opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/chain/safe/signatures.py +0 -63
  300. opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/chain/safe/typing.py +0 -17
  301. opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/chain/safe/utils.py +0 -218
  302. opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/config.py +0 -4
  303. opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/model.py +0 -19
  304. opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/__init__.py +0 -26
  305. opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/chain/__init__.py +0 -0
  306. opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/chain/contract_caller.py +0 -390
  307. opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/chain/contracts/__init__.py +0 -0
  308. opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/chain/contracts/conditional_tokens.py +0 -707
  309. opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/chain/contracts/erc20.py +0 -111
  310. opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/chain/exception.py +0 -11
  311. opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/chain/py_order_utils/__init__.py +0 -0
  312. opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/chain/py_order_utils/builders/__init__.py +0 -0
  313. opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/chain/py_order_utils/builders/base_builder.py +0 -41
  314. opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/chain/py_order_utils/builders/exception.py +0 -2
  315. opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/chain/py_order_utils/builders/order_builder.py +0 -90
  316. opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/chain/py_order_utils/builders/order_builder_test.py +0 -40
  317. opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/chain/py_order_utils/constants.py +0 -2
  318. opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/chain/py_order_utils/model/__init__.py +0 -0
  319. opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/chain/py_order_utils/model/order.py +0 -254
  320. opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/chain/py_order_utils/model/order_type.py +0 -9
  321. opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/chain/py_order_utils/model/sides.py +0 -8
  322. opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/chain/py_order_utils/model/signatures.py +0 -8
  323. opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/chain/py_order_utils/signer.py +0 -20
  324. opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/chain/py_order_utils/utils.py +0 -115
  325. opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/chain/safe/__init__.py +0 -0
  326. opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/chain/safe/constants.py +0 -19
  327. opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/chain/safe/eip712/__init__.py +0 -176
  328. opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/chain/safe/enums.py +0 -6
  329. opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/chain/safe/exceptions.py +0 -94
  330. opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/chain/safe/multisend.py +0 -347
  331. opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/chain/safe/safe.py +0 -141
  332. opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/chain/safe/safe_contracts/__init__.py +0 -0
  333. opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/chain/safe/safe_contracts/compatibility_fallback_handler_v1_3_0.py +0 -327
  334. opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/chain/safe/safe_contracts/multisend_v1_3_0.py +0 -22
  335. opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/chain/safe/safe_contracts/safe_v1_3_0.py +0 -1035
  336. opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/chain/safe/safe_contracts/utils.py +0 -26
  337. opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/chain/safe/safe_signature.py +0 -364
  338. opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/chain/safe/safe_test.py +0 -37
  339. opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/chain/safe/safe_tx.py +0 -437
  340. opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/chain/safe/signatures.py +0 -63
  341. opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/chain/safe/typing.py +0 -17
  342. opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/chain/safe/utils.py +0 -218
  343. opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/config.py +0 -4
  344. opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/model.py +0 -19
  345. opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/sdk.py +0 -957
  346. opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/sdk.py +0 -957
  347. opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/sdk.py +0 -957
  348. opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/verify_api_calls.py +0 -135
  349. opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/sdk.py +0 -957
  350. opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/verify_api_calls.py +0 -135
  351. opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/sdk.py +0 -957
  352. opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/verify_api_calls.py +0 -135
  353. opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/sdk.py +0 -957
  354. opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/verify_api_calls.py +0 -135
  355. opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/sdk.py +0 -957
  356. opinion_clob_sdk/opinion_clob_sdk/opinion_clob_sdk/verify_api_calls.py +0 -135
  357. opinion_clob_sdk/opinion_clob_sdk/sdk.py +0 -957
  358. opinion_clob_sdk/opinion_clob_sdk/verify_api_calls.py +0 -135
  359. opinion_clob_sdk-0.1.9.dist-info/RECORD +0 -389
  360. {opinion_clob_sdk-0.1.9.dist-info → opinion_clob_sdk-0.4.2.dist-info}/WHEEL +0 -0
  361. {opinion_clob_sdk-0.1.9.dist-info → opinion_clob_sdk-0.4.2.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,4416 @@
1
+ [
2
+ {
3
+ "type": "constructor",
4
+ "inputs": [
5
+ {
6
+ "name": "_defaultCollateralToken",
7
+ "type": "address",
8
+ "internalType": "address"
9
+ }
10
+ ],
11
+ "stateMutability": "nonpayable"
12
+ },
13
+ {
14
+ "type": "function",
15
+ "name": "REFERRER_CONFIG_TYPEHASH",
16
+ "inputs": [],
17
+ "outputs": [
18
+ {
19
+ "name": "",
20
+ "type": "bytes32",
21
+ "internalType": "bytes32"
22
+ }
23
+ ],
24
+ "stateMutability": "view"
25
+ },
26
+ {
27
+ "type": "function",
28
+ "name": "TRADER_REFERRAL_BINDING_TYPEHASH",
29
+ "inputs": [],
30
+ "outputs": [
31
+ {
32
+ "name": "",
33
+ "type": "bytes32",
34
+ "internalType": "bytes32"
35
+ }
36
+ ],
37
+ "stateMutability": "view"
38
+ },
39
+ {
40
+ "type": "function",
41
+ "name": "addAdmin",
42
+ "inputs": [
43
+ {
44
+ "name": "admin_",
45
+ "type": "address",
46
+ "internalType": "address"
47
+ }
48
+ ],
49
+ "outputs": [],
50
+ "stateMutability": "nonpayable"
51
+ },
52
+ {
53
+ "type": "function",
54
+ "name": "addOperator",
55
+ "inputs": [
56
+ {
57
+ "name": "operator_",
58
+ "type": "address",
59
+ "internalType": "address"
60
+ }
61
+ ],
62
+ "outputs": [],
63
+ "stateMutability": "nonpayable"
64
+ },
65
+ {
66
+ "type": "function",
67
+ "name": "addOperatorAdmin",
68
+ "inputs": [
69
+ {
70
+ "name": "operatorAdmin_",
71
+ "type": "address",
72
+ "internalType": "address"
73
+ }
74
+ ],
75
+ "outputs": [],
76
+ "stateMutability": "nonpayable"
77
+ },
78
+ {
79
+ "type": "function",
80
+ "name": "addSigner",
81
+ "inputs": [
82
+ {
83
+ "name": "signer",
84
+ "type": "address",
85
+ "internalType": "address"
86
+ }
87
+ ],
88
+ "outputs": [],
89
+ "stateMutability": "nonpayable"
90
+ },
91
+ {
92
+ "type": "function",
93
+ "name": "addSignerAdmin",
94
+ "inputs": [
95
+ {
96
+ "name": "signerAdmin",
97
+ "type": "address",
98
+ "internalType": "address"
99
+ }
100
+ ],
101
+ "outputs": [],
102
+ "stateMutability": "nonpayable"
103
+ },
104
+ {
105
+ "type": "function",
106
+ "name": "admins",
107
+ "inputs": [
108
+ {
109
+ "name": "",
110
+ "type": "address",
111
+ "internalType": "address"
112
+ }
113
+ ],
114
+ "outputs": [
115
+ {
116
+ "name": "",
117
+ "type": "uint256",
118
+ "internalType": "uint256"
119
+ }
120
+ ],
121
+ "stateMutability": "view"
122
+ },
123
+ {
124
+ "type": "function",
125
+ "name": "batchAddSigners",
126
+ "inputs": [
127
+ {
128
+ "name": "newSigners",
129
+ "type": "address[]",
130
+ "internalType": "address[]"
131
+ }
132
+ ],
133
+ "outputs": [],
134
+ "stateMutability": "nonpayable"
135
+ },
136
+ {
137
+ "type": "function",
138
+ "name": "batchGetTradersReferralInfo",
139
+ "inputs": [
140
+ {
141
+ "name": "traders",
142
+ "type": "address[]",
143
+ "internalType": "address[]"
144
+ }
145
+ ],
146
+ "outputs": [
147
+ {
148
+ "name": "referrers",
149
+ "type": "address[]",
150
+ "internalType": "address[]"
151
+ },
152
+ {
153
+ "name": "discountsActive",
154
+ "type": "bool[]",
155
+ "internalType": "bool[]"
156
+ }
157
+ ],
158
+ "stateMutability": "view"
159
+ },
160
+ {
161
+ "type": "function",
162
+ "name": "batchRemoveSigners",
163
+ "inputs": [
164
+ {
165
+ "name": "removedSigners",
166
+ "type": "address[]",
167
+ "internalType": "address[]"
168
+ }
169
+ ],
170
+ "outputs": [],
171
+ "stateMutability": "nonpayable"
172
+ },
173
+ {
174
+ "type": "function",
175
+ "name": "bindToReferrer",
176
+ "inputs": [
177
+ {
178
+ "name": "auth",
179
+ "type": "tuple",
180
+ "internalType": "struct TraderReferralBindingSignature",
181
+ "components": [
182
+ {
183
+ "name": "trader",
184
+ "type": "address",
185
+ "internalType": "address"
186
+ },
187
+ {
188
+ "name": "referrer",
189
+ "type": "address",
190
+ "internalType": "address"
191
+ },
192
+ {
193
+ "name": "deadline",
194
+ "type": "uint256",
195
+ "internalType": "uint256"
196
+ },
197
+ {
198
+ "name": "signature",
199
+ "type": "bytes",
200
+ "internalType": "bytes"
201
+ }
202
+ ]
203
+ }
204
+ ],
205
+ "outputs": [],
206
+ "stateMutability": "nonpayable"
207
+ },
208
+ {
209
+ "type": "function",
210
+ "name": "calculateReferralRewards",
211
+ "inputs": [
212
+ {
213
+ "name": "trader",
214
+ "type": "address",
215
+ "internalType": "address"
216
+ },
217
+ {
218
+ "name": "feeAmount",
219
+ "type": "uint256",
220
+ "internalType": "uint256"
221
+ },
222
+ {
223
+ "name": "collateralToken",
224
+ "type": "address",
225
+ "internalType": "address"
226
+ }
227
+ ],
228
+ "outputs": [
229
+ {
230
+ "name": "traderDiscount",
231
+ "type": "uint256",
232
+ "internalType": "uint256"
233
+ },
234
+ {
235
+ "name": "referrerRebate",
236
+ "type": "uint256",
237
+ "internalType": "uint256"
238
+ }
239
+ ],
240
+ "stateMutability": "view"
241
+ },
242
+ {
243
+ "type": "function",
244
+ "name": "collateralConfigs",
245
+ "inputs": [
246
+ {
247
+ "name": "",
248
+ "type": "address",
249
+ "internalType": "address"
250
+ }
251
+ ],
252
+ "outputs": [
253
+ {
254
+ "name": "decimals",
255
+ "type": "uint8",
256
+ "internalType": "uint8"
257
+ },
258
+ {
259
+ "name": "globalDefaultMinFee",
260
+ "type": "uint256",
261
+ "internalType": "uint256"
262
+ }
263
+ ],
264
+ "stateMutability": "view"
265
+ },
266
+ {
267
+ "type": "function",
268
+ "name": "collateralPriceConfigs",
269
+ "inputs": [
270
+ {
271
+ "name": "",
272
+ "type": "address",
273
+ "internalType": "address"
274
+ }
275
+ ],
276
+ "outputs": [
277
+ {
278
+ "name": "collateralToken",
279
+ "type": "address",
280
+ "internalType": "address"
281
+ },
282
+ {
283
+ "name": "usdPrice",
284
+ "type": "uint256",
285
+ "internalType": "uint256"
286
+ },
287
+ {
288
+ "name": "decimals",
289
+ "type": "uint256",
290
+ "internalType": "uint256"
291
+ },
292
+ {
293
+ "name": "isActive",
294
+ "type": "bool",
295
+ "internalType": "bool"
296
+ }
297
+ ],
298
+ "stateMutability": "view"
299
+ },
300
+ {
301
+ "type": "function",
302
+ "name": "computeFees",
303
+ "inputs": [
304
+ {
305
+ "name": "user",
306
+ "type": "address",
307
+ "internalType": "address"
308
+ },
309
+ {
310
+ "name": "baseFee",
311
+ "type": "uint256",
312
+ "internalType": "uint256"
313
+ },
314
+ {
315
+ "name": "minFee",
316
+ "type": "uint256",
317
+ "internalType": "uint256"
318
+ },
319
+ {
320
+ "name": "adminDiscountBps",
321
+ "type": "uint256",
322
+ "internalType": "uint256"
323
+ }
324
+ ],
325
+ "outputs": [
326
+ {
327
+ "name": "finalFee",
328
+ "type": "uint256",
329
+ "internalType": "uint256"
330
+ },
331
+ {
332
+ "name": "rebate",
333
+ "type": "uint256",
334
+ "internalType": "uint256"
335
+ },
336
+ {
337
+ "name": "referrer",
338
+ "type": "address",
339
+ "internalType": "address"
340
+ }
341
+ ],
342
+ "stateMutability": "view"
343
+ },
344
+ {
345
+ "type": "function",
346
+ "name": "convertFromUsd",
347
+ "inputs": [
348
+ {
349
+ "name": "collateralToken",
350
+ "type": "address",
351
+ "internalType": "address"
352
+ },
353
+ {
354
+ "name": "usdValue",
355
+ "type": "uint256",
356
+ "internalType": "uint256"
357
+ }
358
+ ],
359
+ "outputs": [
360
+ {
361
+ "name": "amount",
362
+ "type": "uint256",
363
+ "internalType": "uint256"
364
+ }
365
+ ],
366
+ "stateMutability": "view"
367
+ },
368
+ {
369
+ "type": "function",
370
+ "name": "convertToUsd",
371
+ "inputs": [
372
+ {
373
+ "name": "collateralToken",
374
+ "type": "address",
375
+ "internalType": "address"
376
+ },
377
+ {
378
+ "name": "amount",
379
+ "type": "uint256",
380
+ "internalType": "uint256"
381
+ }
382
+ ],
383
+ "outputs": [
384
+ {
385
+ "name": "usdValue",
386
+ "type": "uint256",
387
+ "internalType": "uint256"
388
+ }
389
+ ],
390
+ "stateMutability": "view"
391
+ },
392
+ {
393
+ "type": "function",
394
+ "name": "createTier",
395
+ "inputs": [
396
+ {
397
+ "name": "name",
398
+ "type": "string",
399
+ "internalType": "string"
400
+ },
401
+ {
402
+ "name": "feeDiscountBps",
403
+ "type": "uint256",
404
+ "internalType": "uint256"
405
+ },
406
+ {
407
+ "name": "validUntil",
408
+ "type": "uint256",
409
+ "internalType": "uint256"
410
+ },
411
+ {
412
+ "name": "metadata",
413
+ "type": "bytes32",
414
+ "internalType": "bytes32"
415
+ }
416
+ ],
417
+ "outputs": [
418
+ {
419
+ "name": "tierId",
420
+ "type": "uint256",
421
+ "internalType": "uint256"
422
+ }
423
+ ],
424
+ "stateMutability": "nonpayable"
425
+ },
426
+ {
427
+ "type": "function",
428
+ "name": "defaultCollateralToken",
429
+ "inputs": [],
430
+ "outputs": [
431
+ {
432
+ "name": "",
433
+ "type": "address",
434
+ "internalType": "address"
435
+ }
436
+ ],
437
+ "stateMutability": "view"
438
+ },
439
+ {
440
+ "type": "function",
441
+ "name": "discountStats",
442
+ "inputs": [
443
+ {
444
+ "name": "",
445
+ "type": "address",
446
+ "internalType": "address"
447
+ }
448
+ ],
449
+ "outputs": [
450
+ {
451
+ "name": "totalDiscountReceivedUsd",
452
+ "type": "uint256",
453
+ "internalType": "uint256"
454
+ }
455
+ ],
456
+ "stateMutability": "view"
457
+ },
458
+ {
459
+ "type": "function",
460
+ "name": "estimateFee",
461
+ "inputs": [
462
+ {
463
+ "name": "user",
464
+ "type": "address",
465
+ "internalType": "address"
466
+ },
467
+ {
468
+ "name": "order",
469
+ "type": "tuple",
470
+ "internalType": "struct Order",
471
+ "components": [
472
+ {
473
+ "name": "salt",
474
+ "type": "uint256",
475
+ "internalType": "uint256"
476
+ },
477
+ {
478
+ "name": "maker",
479
+ "type": "address",
480
+ "internalType": "address"
481
+ },
482
+ {
483
+ "name": "signer",
484
+ "type": "address",
485
+ "internalType": "address"
486
+ },
487
+ {
488
+ "name": "taker",
489
+ "type": "address",
490
+ "internalType": "address"
491
+ },
492
+ {
493
+ "name": "tokenId",
494
+ "type": "uint256",
495
+ "internalType": "uint256"
496
+ },
497
+ {
498
+ "name": "makerAmount",
499
+ "type": "uint256",
500
+ "internalType": "uint256"
501
+ },
502
+ {
503
+ "name": "takerAmount",
504
+ "type": "uint256",
505
+ "internalType": "uint256"
506
+ },
507
+ {
508
+ "name": "expiration",
509
+ "type": "uint256",
510
+ "internalType": "uint256"
511
+ },
512
+ {
513
+ "name": "nonce",
514
+ "type": "uint256",
515
+ "internalType": "uint256"
516
+ },
517
+ {
518
+ "name": "feeRateBps",
519
+ "type": "uint256",
520
+ "internalType": "uint256"
521
+ },
522
+ {
523
+ "name": "side",
524
+ "type": "uint8",
525
+ "internalType": "enum Side"
526
+ },
527
+ {
528
+ "name": "signatureType",
529
+ "type": "uint8",
530
+ "internalType": "enum SignatureType"
531
+ },
532
+ {
533
+ "name": "signature",
534
+ "type": "bytes",
535
+ "internalType": "bytes"
536
+ }
537
+ ]
538
+ },
539
+ {
540
+ "name": "collateralToken",
541
+ "type": "address",
542
+ "internalType": "address"
543
+ }
544
+ ],
545
+ "outputs": [
546
+ {
547
+ "name": "estimate",
548
+ "type": "tuple",
549
+ "internalType": "struct IFeeEstimation.FeeEstimate",
550
+ "components": [
551
+ {
552
+ "name": "totalFee",
553
+ "type": "uint256",
554
+ "internalType": "uint256"
555
+ },
556
+ {
557
+ "name": "baseFee",
558
+ "type": "uint256",
559
+ "internalType": "uint256"
560
+ },
561
+ {
562
+ "name": "userDiscountBps",
563
+ "type": "uint256",
564
+ "internalType": "uint256"
565
+ },
566
+ {
567
+ "name": "promoDiscountBps",
568
+ "type": "uint256",
569
+ "internalType": "uint256"
570
+ },
571
+ {
572
+ "name": "userDiscountAmount",
573
+ "type": "uint256",
574
+ "internalType": "uint256"
575
+ },
576
+ {
577
+ "name": "promoDiscountAmount",
578
+ "type": "uint256",
579
+ "internalType": "uint256"
580
+ },
581
+ {
582
+ "name": "referralDiscountBps",
583
+ "type": "uint256",
584
+ "internalType": "uint256"
585
+ },
586
+ {
587
+ "name": "referralDiscountAmount",
588
+ "type": "uint256",
589
+ "internalType": "uint256"
590
+ },
591
+ {
592
+ "name": "referrerRebateAmount",
593
+ "type": "uint256",
594
+ "internalType": "uint256"
595
+ },
596
+ {
597
+ "name": "platformRevenue",
598
+ "type": "uint256",
599
+ "internalType": "uint256"
600
+ },
601
+ {
602
+ "name": "minFeeAmount",
603
+ "type": "uint256",
604
+ "internalType": "uint256"
605
+ },
606
+ {
607
+ "name": "minFeeApplied",
608
+ "type": "bool",
609
+ "internalType": "bool"
610
+ },
611
+ {
612
+ "name": "feeRateBps",
613
+ "type": "uint256",
614
+ "internalType": "uint256"
615
+ },
616
+ {
617
+ "name": "price",
618
+ "type": "uint256",
619
+ "internalType": "uint256"
620
+ }
621
+ ]
622
+ }
623
+ ],
624
+ "stateMutability": "view"
625
+ },
626
+ {
627
+ "type": "function",
628
+ "name": "estimateFeeWithAmount",
629
+ "inputs": [
630
+ {
631
+ "name": "user",
632
+ "type": "address",
633
+ "internalType": "address"
634
+ },
635
+ {
636
+ "name": "order",
637
+ "type": "tuple",
638
+ "internalType": "struct Order",
639
+ "components": [
640
+ {
641
+ "name": "salt",
642
+ "type": "uint256",
643
+ "internalType": "uint256"
644
+ },
645
+ {
646
+ "name": "maker",
647
+ "type": "address",
648
+ "internalType": "address"
649
+ },
650
+ {
651
+ "name": "signer",
652
+ "type": "address",
653
+ "internalType": "address"
654
+ },
655
+ {
656
+ "name": "taker",
657
+ "type": "address",
658
+ "internalType": "address"
659
+ },
660
+ {
661
+ "name": "tokenId",
662
+ "type": "uint256",
663
+ "internalType": "uint256"
664
+ },
665
+ {
666
+ "name": "makerAmount",
667
+ "type": "uint256",
668
+ "internalType": "uint256"
669
+ },
670
+ {
671
+ "name": "takerAmount",
672
+ "type": "uint256",
673
+ "internalType": "uint256"
674
+ },
675
+ {
676
+ "name": "expiration",
677
+ "type": "uint256",
678
+ "internalType": "uint256"
679
+ },
680
+ {
681
+ "name": "nonce",
682
+ "type": "uint256",
683
+ "internalType": "uint256"
684
+ },
685
+ {
686
+ "name": "feeRateBps",
687
+ "type": "uint256",
688
+ "internalType": "uint256"
689
+ },
690
+ {
691
+ "name": "side",
692
+ "type": "uint8",
693
+ "internalType": "enum Side"
694
+ },
695
+ {
696
+ "name": "signatureType",
697
+ "type": "uint8",
698
+ "internalType": "enum SignatureType"
699
+ },
700
+ {
701
+ "name": "signature",
702
+ "type": "bytes",
703
+ "internalType": "bytes"
704
+ }
705
+ ]
706
+ },
707
+ {
708
+ "name": "fillAmount",
709
+ "type": "uint256",
710
+ "internalType": "uint256"
711
+ },
712
+ {
713
+ "name": "collateralToken",
714
+ "type": "address",
715
+ "internalType": "address"
716
+ }
717
+ ],
718
+ "outputs": [
719
+ {
720
+ "name": "estimate",
721
+ "type": "tuple",
722
+ "internalType": "struct IFeeEstimation.FeeEstimate",
723
+ "components": [
724
+ {
725
+ "name": "totalFee",
726
+ "type": "uint256",
727
+ "internalType": "uint256"
728
+ },
729
+ {
730
+ "name": "baseFee",
731
+ "type": "uint256",
732
+ "internalType": "uint256"
733
+ },
734
+ {
735
+ "name": "userDiscountBps",
736
+ "type": "uint256",
737
+ "internalType": "uint256"
738
+ },
739
+ {
740
+ "name": "promoDiscountBps",
741
+ "type": "uint256",
742
+ "internalType": "uint256"
743
+ },
744
+ {
745
+ "name": "userDiscountAmount",
746
+ "type": "uint256",
747
+ "internalType": "uint256"
748
+ },
749
+ {
750
+ "name": "promoDiscountAmount",
751
+ "type": "uint256",
752
+ "internalType": "uint256"
753
+ },
754
+ {
755
+ "name": "referralDiscountBps",
756
+ "type": "uint256",
757
+ "internalType": "uint256"
758
+ },
759
+ {
760
+ "name": "referralDiscountAmount",
761
+ "type": "uint256",
762
+ "internalType": "uint256"
763
+ },
764
+ {
765
+ "name": "referrerRebateAmount",
766
+ "type": "uint256",
767
+ "internalType": "uint256"
768
+ },
769
+ {
770
+ "name": "platformRevenue",
771
+ "type": "uint256",
772
+ "internalType": "uint256"
773
+ },
774
+ {
775
+ "name": "minFeeAmount",
776
+ "type": "uint256",
777
+ "internalType": "uint256"
778
+ },
779
+ {
780
+ "name": "minFeeApplied",
781
+ "type": "bool",
782
+ "internalType": "bool"
783
+ },
784
+ {
785
+ "name": "feeRateBps",
786
+ "type": "uint256",
787
+ "internalType": "uint256"
788
+ },
789
+ {
790
+ "name": "price",
791
+ "type": "uint256",
792
+ "internalType": "uint256"
793
+ }
794
+ ]
795
+ }
796
+ ],
797
+ "stateMutability": "view"
798
+ },
799
+ {
800
+ "type": "function",
801
+ "name": "estimateMakerFee",
802
+ "inputs": [
803
+ {
804
+ "name": "makerUser",
805
+ "type": "address",
806
+ "internalType": "address"
807
+ },
808
+ {
809
+ "name": "makerOrder",
810
+ "type": "tuple",
811
+ "internalType": "struct Order",
812
+ "components": [
813
+ {
814
+ "name": "salt",
815
+ "type": "uint256",
816
+ "internalType": "uint256"
817
+ },
818
+ {
819
+ "name": "maker",
820
+ "type": "address",
821
+ "internalType": "address"
822
+ },
823
+ {
824
+ "name": "signer",
825
+ "type": "address",
826
+ "internalType": "address"
827
+ },
828
+ {
829
+ "name": "taker",
830
+ "type": "address",
831
+ "internalType": "address"
832
+ },
833
+ {
834
+ "name": "tokenId",
835
+ "type": "uint256",
836
+ "internalType": "uint256"
837
+ },
838
+ {
839
+ "name": "makerAmount",
840
+ "type": "uint256",
841
+ "internalType": "uint256"
842
+ },
843
+ {
844
+ "name": "takerAmount",
845
+ "type": "uint256",
846
+ "internalType": "uint256"
847
+ },
848
+ {
849
+ "name": "expiration",
850
+ "type": "uint256",
851
+ "internalType": "uint256"
852
+ },
853
+ {
854
+ "name": "nonce",
855
+ "type": "uint256",
856
+ "internalType": "uint256"
857
+ },
858
+ {
859
+ "name": "feeRateBps",
860
+ "type": "uint256",
861
+ "internalType": "uint256"
862
+ },
863
+ {
864
+ "name": "side",
865
+ "type": "uint8",
866
+ "internalType": "enum Side"
867
+ },
868
+ {
869
+ "name": "signatureType",
870
+ "type": "uint8",
871
+ "internalType": "enum SignatureType"
872
+ },
873
+ {
874
+ "name": "signature",
875
+ "type": "bytes",
876
+ "internalType": "bytes"
877
+ }
878
+ ]
879
+ },
880
+ {
881
+ "name": "fillAmount",
882
+ "type": "uint256",
883
+ "internalType": "uint256"
884
+ }
885
+ ],
886
+ "outputs": [
887
+ {
888
+ "name": "estimate",
889
+ "type": "tuple",
890
+ "internalType": "struct IFeeEstimation.FeeEstimate",
891
+ "components": [
892
+ {
893
+ "name": "totalFee",
894
+ "type": "uint256",
895
+ "internalType": "uint256"
896
+ },
897
+ {
898
+ "name": "baseFee",
899
+ "type": "uint256",
900
+ "internalType": "uint256"
901
+ },
902
+ {
903
+ "name": "userDiscountBps",
904
+ "type": "uint256",
905
+ "internalType": "uint256"
906
+ },
907
+ {
908
+ "name": "promoDiscountBps",
909
+ "type": "uint256",
910
+ "internalType": "uint256"
911
+ },
912
+ {
913
+ "name": "userDiscountAmount",
914
+ "type": "uint256",
915
+ "internalType": "uint256"
916
+ },
917
+ {
918
+ "name": "promoDiscountAmount",
919
+ "type": "uint256",
920
+ "internalType": "uint256"
921
+ },
922
+ {
923
+ "name": "referralDiscountBps",
924
+ "type": "uint256",
925
+ "internalType": "uint256"
926
+ },
927
+ {
928
+ "name": "referralDiscountAmount",
929
+ "type": "uint256",
930
+ "internalType": "uint256"
931
+ },
932
+ {
933
+ "name": "referrerRebateAmount",
934
+ "type": "uint256",
935
+ "internalType": "uint256"
936
+ },
937
+ {
938
+ "name": "platformRevenue",
939
+ "type": "uint256",
940
+ "internalType": "uint256"
941
+ },
942
+ {
943
+ "name": "minFeeAmount",
944
+ "type": "uint256",
945
+ "internalType": "uint256"
946
+ },
947
+ {
948
+ "name": "minFeeApplied",
949
+ "type": "bool",
950
+ "internalType": "bool"
951
+ },
952
+ {
953
+ "name": "feeRateBps",
954
+ "type": "uint256",
955
+ "internalType": "uint256"
956
+ },
957
+ {
958
+ "name": "price",
959
+ "type": "uint256",
960
+ "internalType": "uint256"
961
+ }
962
+ ]
963
+ }
964
+ ],
965
+ "stateMutability": "view"
966
+ },
967
+ {
968
+ "type": "function",
969
+ "name": "estimateMatchingFees",
970
+ "inputs": [
971
+ {
972
+ "name": "takerUser",
973
+ "type": "address",
974
+ "internalType": "address"
975
+ },
976
+ {
977
+ "name": "takerOrder",
978
+ "type": "tuple",
979
+ "internalType": "struct Order",
980
+ "components": [
981
+ {
982
+ "name": "salt",
983
+ "type": "uint256",
984
+ "internalType": "uint256"
985
+ },
986
+ {
987
+ "name": "maker",
988
+ "type": "address",
989
+ "internalType": "address"
990
+ },
991
+ {
992
+ "name": "signer",
993
+ "type": "address",
994
+ "internalType": "address"
995
+ },
996
+ {
997
+ "name": "taker",
998
+ "type": "address",
999
+ "internalType": "address"
1000
+ },
1001
+ {
1002
+ "name": "tokenId",
1003
+ "type": "uint256",
1004
+ "internalType": "uint256"
1005
+ },
1006
+ {
1007
+ "name": "makerAmount",
1008
+ "type": "uint256",
1009
+ "internalType": "uint256"
1010
+ },
1011
+ {
1012
+ "name": "takerAmount",
1013
+ "type": "uint256",
1014
+ "internalType": "uint256"
1015
+ },
1016
+ {
1017
+ "name": "expiration",
1018
+ "type": "uint256",
1019
+ "internalType": "uint256"
1020
+ },
1021
+ {
1022
+ "name": "nonce",
1023
+ "type": "uint256",
1024
+ "internalType": "uint256"
1025
+ },
1026
+ {
1027
+ "name": "feeRateBps",
1028
+ "type": "uint256",
1029
+ "internalType": "uint256"
1030
+ },
1031
+ {
1032
+ "name": "side",
1033
+ "type": "uint8",
1034
+ "internalType": "enum Side"
1035
+ },
1036
+ {
1037
+ "name": "signatureType",
1038
+ "type": "uint8",
1039
+ "internalType": "enum SignatureType"
1040
+ },
1041
+ {
1042
+ "name": "signature",
1043
+ "type": "bytes",
1044
+ "internalType": "bytes"
1045
+ }
1046
+ ]
1047
+ },
1048
+ {
1049
+ "name": "makerOrders",
1050
+ "type": "tuple[]",
1051
+ "internalType": "struct Order[]",
1052
+ "components": [
1053
+ {
1054
+ "name": "salt",
1055
+ "type": "uint256",
1056
+ "internalType": "uint256"
1057
+ },
1058
+ {
1059
+ "name": "maker",
1060
+ "type": "address",
1061
+ "internalType": "address"
1062
+ },
1063
+ {
1064
+ "name": "signer",
1065
+ "type": "address",
1066
+ "internalType": "address"
1067
+ },
1068
+ {
1069
+ "name": "taker",
1070
+ "type": "address",
1071
+ "internalType": "address"
1072
+ },
1073
+ {
1074
+ "name": "tokenId",
1075
+ "type": "uint256",
1076
+ "internalType": "uint256"
1077
+ },
1078
+ {
1079
+ "name": "makerAmount",
1080
+ "type": "uint256",
1081
+ "internalType": "uint256"
1082
+ },
1083
+ {
1084
+ "name": "takerAmount",
1085
+ "type": "uint256",
1086
+ "internalType": "uint256"
1087
+ },
1088
+ {
1089
+ "name": "expiration",
1090
+ "type": "uint256",
1091
+ "internalType": "uint256"
1092
+ },
1093
+ {
1094
+ "name": "nonce",
1095
+ "type": "uint256",
1096
+ "internalType": "uint256"
1097
+ },
1098
+ {
1099
+ "name": "feeRateBps",
1100
+ "type": "uint256",
1101
+ "internalType": "uint256"
1102
+ },
1103
+ {
1104
+ "name": "side",
1105
+ "type": "uint8",
1106
+ "internalType": "enum Side"
1107
+ },
1108
+ {
1109
+ "name": "signatureType",
1110
+ "type": "uint8",
1111
+ "internalType": "enum SignatureType"
1112
+ },
1113
+ {
1114
+ "name": "signature",
1115
+ "type": "bytes",
1116
+ "internalType": "bytes"
1117
+ }
1118
+ ]
1119
+ },
1120
+ {
1121
+ "name": "takerFillAmount",
1122
+ "type": "uint256",
1123
+ "internalType": "uint256"
1124
+ },
1125
+ {
1126
+ "name": "makerFillAmounts",
1127
+ "type": "uint256[]",
1128
+ "internalType": "uint256[]"
1129
+ }
1130
+ ],
1131
+ "outputs": [
1132
+ {
1133
+ "name": "takerFee",
1134
+ "type": "tuple",
1135
+ "internalType": "struct IFeeEstimation.FeeEstimate",
1136
+ "components": [
1137
+ {
1138
+ "name": "totalFee",
1139
+ "type": "uint256",
1140
+ "internalType": "uint256"
1141
+ },
1142
+ {
1143
+ "name": "baseFee",
1144
+ "type": "uint256",
1145
+ "internalType": "uint256"
1146
+ },
1147
+ {
1148
+ "name": "userDiscountBps",
1149
+ "type": "uint256",
1150
+ "internalType": "uint256"
1151
+ },
1152
+ {
1153
+ "name": "promoDiscountBps",
1154
+ "type": "uint256",
1155
+ "internalType": "uint256"
1156
+ },
1157
+ {
1158
+ "name": "userDiscountAmount",
1159
+ "type": "uint256",
1160
+ "internalType": "uint256"
1161
+ },
1162
+ {
1163
+ "name": "promoDiscountAmount",
1164
+ "type": "uint256",
1165
+ "internalType": "uint256"
1166
+ },
1167
+ {
1168
+ "name": "referralDiscountBps",
1169
+ "type": "uint256",
1170
+ "internalType": "uint256"
1171
+ },
1172
+ {
1173
+ "name": "referralDiscountAmount",
1174
+ "type": "uint256",
1175
+ "internalType": "uint256"
1176
+ },
1177
+ {
1178
+ "name": "referrerRebateAmount",
1179
+ "type": "uint256",
1180
+ "internalType": "uint256"
1181
+ },
1182
+ {
1183
+ "name": "platformRevenue",
1184
+ "type": "uint256",
1185
+ "internalType": "uint256"
1186
+ },
1187
+ {
1188
+ "name": "minFeeAmount",
1189
+ "type": "uint256",
1190
+ "internalType": "uint256"
1191
+ },
1192
+ {
1193
+ "name": "minFeeApplied",
1194
+ "type": "bool",
1195
+ "internalType": "bool"
1196
+ },
1197
+ {
1198
+ "name": "feeRateBps",
1199
+ "type": "uint256",
1200
+ "internalType": "uint256"
1201
+ },
1202
+ {
1203
+ "name": "price",
1204
+ "type": "uint256",
1205
+ "internalType": "uint256"
1206
+ }
1207
+ ]
1208
+ },
1209
+ {
1210
+ "name": "makerFees",
1211
+ "type": "tuple[]",
1212
+ "internalType": "struct IFeeEstimation.FeeEstimate[]",
1213
+ "components": [
1214
+ {
1215
+ "name": "totalFee",
1216
+ "type": "uint256",
1217
+ "internalType": "uint256"
1218
+ },
1219
+ {
1220
+ "name": "baseFee",
1221
+ "type": "uint256",
1222
+ "internalType": "uint256"
1223
+ },
1224
+ {
1225
+ "name": "userDiscountBps",
1226
+ "type": "uint256",
1227
+ "internalType": "uint256"
1228
+ },
1229
+ {
1230
+ "name": "promoDiscountBps",
1231
+ "type": "uint256",
1232
+ "internalType": "uint256"
1233
+ },
1234
+ {
1235
+ "name": "userDiscountAmount",
1236
+ "type": "uint256",
1237
+ "internalType": "uint256"
1238
+ },
1239
+ {
1240
+ "name": "promoDiscountAmount",
1241
+ "type": "uint256",
1242
+ "internalType": "uint256"
1243
+ },
1244
+ {
1245
+ "name": "referralDiscountBps",
1246
+ "type": "uint256",
1247
+ "internalType": "uint256"
1248
+ },
1249
+ {
1250
+ "name": "referralDiscountAmount",
1251
+ "type": "uint256",
1252
+ "internalType": "uint256"
1253
+ },
1254
+ {
1255
+ "name": "referrerRebateAmount",
1256
+ "type": "uint256",
1257
+ "internalType": "uint256"
1258
+ },
1259
+ {
1260
+ "name": "platformRevenue",
1261
+ "type": "uint256",
1262
+ "internalType": "uint256"
1263
+ },
1264
+ {
1265
+ "name": "minFeeAmount",
1266
+ "type": "uint256",
1267
+ "internalType": "uint256"
1268
+ },
1269
+ {
1270
+ "name": "minFeeApplied",
1271
+ "type": "bool",
1272
+ "internalType": "bool"
1273
+ },
1274
+ {
1275
+ "name": "feeRateBps",
1276
+ "type": "uint256",
1277
+ "internalType": "uint256"
1278
+ },
1279
+ {
1280
+ "name": "price",
1281
+ "type": "uint256",
1282
+ "internalType": "uint256"
1283
+ }
1284
+ ]
1285
+ }
1286
+ ],
1287
+ "stateMutability": "view"
1288
+ },
1289
+ {
1290
+ "type": "function",
1291
+ "name": "estimateMinimumFee",
1292
+ "inputs": [
1293
+ {
1294
+ "name": "tokenId",
1295
+ "type": "uint256",
1296
+ "internalType": "uint256"
1297
+ },
1298
+ {
1299
+ "name": "feeAmount",
1300
+ "type": "uint256",
1301
+ "internalType": "uint256"
1302
+ }
1303
+ ],
1304
+ "outputs": [
1305
+ {
1306
+ "name": "finalFee",
1307
+ "type": "uint256",
1308
+ "internalType": "uint256"
1309
+ },
1310
+ {
1311
+ "name": "minFeeApplied",
1312
+ "type": "bool",
1313
+ "internalType": "bool"
1314
+ }
1315
+ ],
1316
+ "stateMutability": "view"
1317
+ },
1318
+ {
1319
+ "type": "function",
1320
+ "name": "estimateOrderFee",
1321
+ "inputs": [
1322
+ {
1323
+ "name": "user",
1324
+ "type": "address",
1325
+ "internalType": "address"
1326
+ },
1327
+ {
1328
+ "name": "order",
1329
+ "type": "tuple",
1330
+ "internalType": "struct Order",
1331
+ "components": [
1332
+ {
1333
+ "name": "salt",
1334
+ "type": "uint256",
1335
+ "internalType": "uint256"
1336
+ },
1337
+ {
1338
+ "name": "maker",
1339
+ "type": "address",
1340
+ "internalType": "address"
1341
+ },
1342
+ {
1343
+ "name": "signer",
1344
+ "type": "address",
1345
+ "internalType": "address"
1346
+ },
1347
+ {
1348
+ "name": "taker",
1349
+ "type": "address",
1350
+ "internalType": "address"
1351
+ },
1352
+ {
1353
+ "name": "tokenId",
1354
+ "type": "uint256",
1355
+ "internalType": "uint256"
1356
+ },
1357
+ {
1358
+ "name": "makerAmount",
1359
+ "type": "uint256",
1360
+ "internalType": "uint256"
1361
+ },
1362
+ {
1363
+ "name": "takerAmount",
1364
+ "type": "uint256",
1365
+ "internalType": "uint256"
1366
+ },
1367
+ {
1368
+ "name": "expiration",
1369
+ "type": "uint256",
1370
+ "internalType": "uint256"
1371
+ },
1372
+ {
1373
+ "name": "nonce",
1374
+ "type": "uint256",
1375
+ "internalType": "uint256"
1376
+ },
1377
+ {
1378
+ "name": "feeRateBps",
1379
+ "type": "uint256",
1380
+ "internalType": "uint256"
1381
+ },
1382
+ {
1383
+ "name": "side",
1384
+ "type": "uint8",
1385
+ "internalType": "enum Side"
1386
+ },
1387
+ {
1388
+ "name": "signatureType",
1389
+ "type": "uint8",
1390
+ "internalType": "enum SignatureType"
1391
+ },
1392
+ {
1393
+ "name": "signature",
1394
+ "type": "bytes",
1395
+ "internalType": "bytes"
1396
+ }
1397
+ ]
1398
+ },
1399
+ {
1400
+ "name": "isTaker",
1401
+ "type": "bool",
1402
+ "internalType": "bool"
1403
+ }
1404
+ ],
1405
+ "outputs": [
1406
+ {
1407
+ "name": "estimate",
1408
+ "type": "tuple",
1409
+ "internalType": "struct IFeeEstimation.FeeEstimate",
1410
+ "components": [
1411
+ {
1412
+ "name": "totalFee",
1413
+ "type": "uint256",
1414
+ "internalType": "uint256"
1415
+ },
1416
+ {
1417
+ "name": "baseFee",
1418
+ "type": "uint256",
1419
+ "internalType": "uint256"
1420
+ },
1421
+ {
1422
+ "name": "userDiscountBps",
1423
+ "type": "uint256",
1424
+ "internalType": "uint256"
1425
+ },
1426
+ {
1427
+ "name": "promoDiscountBps",
1428
+ "type": "uint256",
1429
+ "internalType": "uint256"
1430
+ },
1431
+ {
1432
+ "name": "userDiscountAmount",
1433
+ "type": "uint256",
1434
+ "internalType": "uint256"
1435
+ },
1436
+ {
1437
+ "name": "promoDiscountAmount",
1438
+ "type": "uint256",
1439
+ "internalType": "uint256"
1440
+ },
1441
+ {
1442
+ "name": "referralDiscountBps",
1443
+ "type": "uint256",
1444
+ "internalType": "uint256"
1445
+ },
1446
+ {
1447
+ "name": "referralDiscountAmount",
1448
+ "type": "uint256",
1449
+ "internalType": "uint256"
1450
+ },
1451
+ {
1452
+ "name": "referrerRebateAmount",
1453
+ "type": "uint256",
1454
+ "internalType": "uint256"
1455
+ },
1456
+ {
1457
+ "name": "platformRevenue",
1458
+ "type": "uint256",
1459
+ "internalType": "uint256"
1460
+ },
1461
+ {
1462
+ "name": "minFeeAmount",
1463
+ "type": "uint256",
1464
+ "internalType": "uint256"
1465
+ },
1466
+ {
1467
+ "name": "minFeeApplied",
1468
+ "type": "bool",
1469
+ "internalType": "bool"
1470
+ },
1471
+ {
1472
+ "name": "feeRateBps",
1473
+ "type": "uint256",
1474
+ "internalType": "uint256"
1475
+ },
1476
+ {
1477
+ "name": "price",
1478
+ "type": "uint256",
1479
+ "internalType": "uint256"
1480
+ }
1481
+ ]
1482
+ }
1483
+ ],
1484
+ "stateMutability": "view"
1485
+ },
1486
+ {
1487
+ "type": "function",
1488
+ "name": "estimateOrderFeeWithFillAmount",
1489
+ "inputs": [
1490
+ {
1491
+ "name": "user",
1492
+ "type": "address",
1493
+ "internalType": "address"
1494
+ },
1495
+ {
1496
+ "name": "order",
1497
+ "type": "tuple",
1498
+ "internalType": "struct Order",
1499
+ "components": [
1500
+ {
1501
+ "name": "salt",
1502
+ "type": "uint256",
1503
+ "internalType": "uint256"
1504
+ },
1505
+ {
1506
+ "name": "maker",
1507
+ "type": "address",
1508
+ "internalType": "address"
1509
+ },
1510
+ {
1511
+ "name": "signer",
1512
+ "type": "address",
1513
+ "internalType": "address"
1514
+ },
1515
+ {
1516
+ "name": "taker",
1517
+ "type": "address",
1518
+ "internalType": "address"
1519
+ },
1520
+ {
1521
+ "name": "tokenId",
1522
+ "type": "uint256",
1523
+ "internalType": "uint256"
1524
+ },
1525
+ {
1526
+ "name": "makerAmount",
1527
+ "type": "uint256",
1528
+ "internalType": "uint256"
1529
+ },
1530
+ {
1531
+ "name": "takerAmount",
1532
+ "type": "uint256",
1533
+ "internalType": "uint256"
1534
+ },
1535
+ {
1536
+ "name": "expiration",
1537
+ "type": "uint256",
1538
+ "internalType": "uint256"
1539
+ },
1540
+ {
1541
+ "name": "nonce",
1542
+ "type": "uint256",
1543
+ "internalType": "uint256"
1544
+ },
1545
+ {
1546
+ "name": "feeRateBps",
1547
+ "type": "uint256",
1548
+ "internalType": "uint256"
1549
+ },
1550
+ {
1551
+ "name": "side",
1552
+ "type": "uint8",
1553
+ "internalType": "enum Side"
1554
+ },
1555
+ {
1556
+ "name": "signatureType",
1557
+ "type": "uint8",
1558
+ "internalType": "enum SignatureType"
1559
+ },
1560
+ {
1561
+ "name": "signature",
1562
+ "type": "bytes",
1563
+ "internalType": "bytes"
1564
+ }
1565
+ ]
1566
+ },
1567
+ {
1568
+ "name": "fillAmount",
1569
+ "type": "uint256",
1570
+ "internalType": "uint256"
1571
+ },
1572
+ {
1573
+ "name": "isTaker",
1574
+ "type": "bool",
1575
+ "internalType": "bool"
1576
+ }
1577
+ ],
1578
+ "outputs": [
1579
+ {
1580
+ "name": "estimate",
1581
+ "type": "tuple",
1582
+ "internalType": "struct IFeeEstimation.FeeEstimate",
1583
+ "components": [
1584
+ {
1585
+ "name": "totalFee",
1586
+ "type": "uint256",
1587
+ "internalType": "uint256"
1588
+ },
1589
+ {
1590
+ "name": "baseFee",
1591
+ "type": "uint256",
1592
+ "internalType": "uint256"
1593
+ },
1594
+ {
1595
+ "name": "userDiscountBps",
1596
+ "type": "uint256",
1597
+ "internalType": "uint256"
1598
+ },
1599
+ {
1600
+ "name": "promoDiscountBps",
1601
+ "type": "uint256",
1602
+ "internalType": "uint256"
1603
+ },
1604
+ {
1605
+ "name": "userDiscountAmount",
1606
+ "type": "uint256",
1607
+ "internalType": "uint256"
1608
+ },
1609
+ {
1610
+ "name": "promoDiscountAmount",
1611
+ "type": "uint256",
1612
+ "internalType": "uint256"
1613
+ },
1614
+ {
1615
+ "name": "referralDiscountBps",
1616
+ "type": "uint256",
1617
+ "internalType": "uint256"
1618
+ },
1619
+ {
1620
+ "name": "referralDiscountAmount",
1621
+ "type": "uint256",
1622
+ "internalType": "uint256"
1623
+ },
1624
+ {
1625
+ "name": "referrerRebateAmount",
1626
+ "type": "uint256",
1627
+ "internalType": "uint256"
1628
+ },
1629
+ {
1630
+ "name": "platformRevenue",
1631
+ "type": "uint256",
1632
+ "internalType": "uint256"
1633
+ },
1634
+ {
1635
+ "name": "minFeeAmount",
1636
+ "type": "uint256",
1637
+ "internalType": "uint256"
1638
+ },
1639
+ {
1640
+ "name": "minFeeApplied",
1641
+ "type": "bool",
1642
+ "internalType": "bool"
1643
+ },
1644
+ {
1645
+ "name": "feeRateBps",
1646
+ "type": "uint256",
1647
+ "internalType": "uint256"
1648
+ },
1649
+ {
1650
+ "name": "price",
1651
+ "type": "uint256",
1652
+ "internalType": "uint256"
1653
+ }
1654
+ ]
1655
+ }
1656
+ ],
1657
+ "stateMutability": "view"
1658
+ },
1659
+ {
1660
+ "type": "function",
1661
+ "name": "estimateTakerFee",
1662
+ "inputs": [
1663
+ {
1664
+ "name": "takerUser",
1665
+ "type": "address",
1666
+ "internalType": "address"
1667
+ },
1668
+ {
1669
+ "name": "takerOrder",
1670
+ "type": "tuple",
1671
+ "internalType": "struct Order",
1672
+ "components": [
1673
+ {
1674
+ "name": "salt",
1675
+ "type": "uint256",
1676
+ "internalType": "uint256"
1677
+ },
1678
+ {
1679
+ "name": "maker",
1680
+ "type": "address",
1681
+ "internalType": "address"
1682
+ },
1683
+ {
1684
+ "name": "signer",
1685
+ "type": "address",
1686
+ "internalType": "address"
1687
+ },
1688
+ {
1689
+ "name": "taker",
1690
+ "type": "address",
1691
+ "internalType": "address"
1692
+ },
1693
+ {
1694
+ "name": "tokenId",
1695
+ "type": "uint256",
1696
+ "internalType": "uint256"
1697
+ },
1698
+ {
1699
+ "name": "makerAmount",
1700
+ "type": "uint256",
1701
+ "internalType": "uint256"
1702
+ },
1703
+ {
1704
+ "name": "takerAmount",
1705
+ "type": "uint256",
1706
+ "internalType": "uint256"
1707
+ },
1708
+ {
1709
+ "name": "expiration",
1710
+ "type": "uint256",
1711
+ "internalType": "uint256"
1712
+ },
1713
+ {
1714
+ "name": "nonce",
1715
+ "type": "uint256",
1716
+ "internalType": "uint256"
1717
+ },
1718
+ {
1719
+ "name": "feeRateBps",
1720
+ "type": "uint256",
1721
+ "internalType": "uint256"
1722
+ },
1723
+ {
1724
+ "name": "side",
1725
+ "type": "uint8",
1726
+ "internalType": "enum Side"
1727
+ },
1728
+ {
1729
+ "name": "signatureType",
1730
+ "type": "uint8",
1731
+ "internalType": "enum SignatureType"
1732
+ },
1733
+ {
1734
+ "name": "signature",
1735
+ "type": "bytes",
1736
+ "internalType": "bytes"
1737
+ }
1738
+ ]
1739
+ },
1740
+ {
1741
+ "name": "fillAmount",
1742
+ "type": "uint256",
1743
+ "internalType": "uint256"
1744
+ }
1745
+ ],
1746
+ "outputs": [
1747
+ {
1748
+ "name": "estimate",
1749
+ "type": "tuple",
1750
+ "internalType": "struct IFeeEstimation.FeeEstimate",
1751
+ "components": [
1752
+ {
1753
+ "name": "totalFee",
1754
+ "type": "uint256",
1755
+ "internalType": "uint256"
1756
+ },
1757
+ {
1758
+ "name": "baseFee",
1759
+ "type": "uint256",
1760
+ "internalType": "uint256"
1761
+ },
1762
+ {
1763
+ "name": "userDiscountBps",
1764
+ "type": "uint256",
1765
+ "internalType": "uint256"
1766
+ },
1767
+ {
1768
+ "name": "promoDiscountBps",
1769
+ "type": "uint256",
1770
+ "internalType": "uint256"
1771
+ },
1772
+ {
1773
+ "name": "userDiscountAmount",
1774
+ "type": "uint256",
1775
+ "internalType": "uint256"
1776
+ },
1777
+ {
1778
+ "name": "promoDiscountAmount",
1779
+ "type": "uint256",
1780
+ "internalType": "uint256"
1781
+ },
1782
+ {
1783
+ "name": "referralDiscountBps",
1784
+ "type": "uint256",
1785
+ "internalType": "uint256"
1786
+ },
1787
+ {
1788
+ "name": "referralDiscountAmount",
1789
+ "type": "uint256",
1790
+ "internalType": "uint256"
1791
+ },
1792
+ {
1793
+ "name": "referrerRebateAmount",
1794
+ "type": "uint256",
1795
+ "internalType": "uint256"
1796
+ },
1797
+ {
1798
+ "name": "platformRevenue",
1799
+ "type": "uint256",
1800
+ "internalType": "uint256"
1801
+ },
1802
+ {
1803
+ "name": "minFeeAmount",
1804
+ "type": "uint256",
1805
+ "internalType": "uint256"
1806
+ },
1807
+ {
1808
+ "name": "minFeeApplied",
1809
+ "type": "bool",
1810
+ "internalType": "bool"
1811
+ },
1812
+ {
1813
+ "name": "feeRateBps",
1814
+ "type": "uint256",
1815
+ "internalType": "uint256"
1816
+ },
1817
+ {
1818
+ "name": "price",
1819
+ "type": "uint256",
1820
+ "internalType": "uint256"
1821
+ }
1822
+ ]
1823
+ }
1824
+ ],
1825
+ "stateMutability": "view"
1826
+ },
1827
+ {
1828
+ "type": "function",
1829
+ "name": "feeRateSettings",
1830
+ "inputs": [
1831
+ {
1832
+ "name": "",
1833
+ "type": "uint256",
1834
+ "internalType": "uint256"
1835
+ }
1836
+ ],
1837
+ "outputs": [
1838
+ {
1839
+ "name": "makerFeeRateBps",
1840
+ "type": "uint256",
1841
+ "internalType": "uint256"
1842
+ },
1843
+ {
1844
+ "name": "takerFeeRateBps",
1845
+ "type": "uint256",
1846
+ "internalType": "uint256"
1847
+ },
1848
+ {
1849
+ "name": "enabled",
1850
+ "type": "bool",
1851
+ "internalType": "bool"
1852
+ },
1853
+ {
1854
+ "name": "minFeeAmount",
1855
+ "type": "uint256",
1856
+ "internalType": "uint256"
1857
+ }
1858
+ ],
1859
+ "stateMutability": "view"
1860
+ },
1861
+ {
1862
+ "type": "function",
1863
+ "name": "getAllTiers",
1864
+ "inputs": [],
1865
+ "outputs": [
1866
+ {
1867
+ "name": "tiers",
1868
+ "type": "tuple[]",
1869
+ "internalType": "struct TierConfig[]",
1870
+ "components": [
1871
+ {
1872
+ "name": "isActive",
1873
+ "type": "bool",
1874
+ "internalType": "bool"
1875
+ },
1876
+ {
1877
+ "name": "name",
1878
+ "type": "string",
1879
+ "internalType": "string"
1880
+ },
1881
+ {
1882
+ "name": "feeDiscountBps",
1883
+ "type": "uint256",
1884
+ "internalType": "uint256"
1885
+ },
1886
+ {
1887
+ "name": "validUntil",
1888
+ "type": "uint256",
1889
+ "internalType": "uint256"
1890
+ },
1891
+ {
1892
+ "name": "metadata",
1893
+ "type": "bytes32",
1894
+ "internalType": "bytes32"
1895
+ }
1896
+ ]
1897
+ }
1898
+ ],
1899
+ "stateMutability": "view"
1900
+ },
1901
+ {
1902
+ "type": "function",
1903
+ "name": "getCollateralConfig",
1904
+ "inputs": [
1905
+ {
1906
+ "name": "collateralToken",
1907
+ "type": "address",
1908
+ "internalType": "address"
1909
+ }
1910
+ ],
1911
+ "outputs": [
1912
+ {
1913
+ "name": "config",
1914
+ "type": "tuple",
1915
+ "internalType": "struct CTFExchangeFeeManager.CollateralConfig",
1916
+ "components": [
1917
+ {
1918
+ "name": "decimals",
1919
+ "type": "uint8",
1920
+ "internalType": "uint8"
1921
+ },
1922
+ {
1923
+ "name": "globalDefaultMinFee",
1924
+ "type": "uint256",
1925
+ "internalType": "uint256"
1926
+ }
1927
+ ]
1928
+ }
1929
+ ],
1930
+ "stateMutability": "view"
1931
+ },
1932
+ {
1933
+ "type": "function",
1934
+ "name": "getCollateralGlobalMinFee",
1935
+ "inputs": [
1936
+ {
1937
+ "name": "collateralToken",
1938
+ "type": "address",
1939
+ "internalType": "address"
1940
+ }
1941
+ ],
1942
+ "outputs": [
1943
+ {
1944
+ "name": "",
1945
+ "type": "uint256",
1946
+ "internalType": "uint256"
1947
+ }
1948
+ ],
1949
+ "stateMutability": "view"
1950
+ },
1951
+ {
1952
+ "type": "function",
1953
+ "name": "getCollateralPriceConfig",
1954
+ "inputs": [
1955
+ {
1956
+ "name": "collateralToken",
1957
+ "type": "address",
1958
+ "internalType": "address"
1959
+ }
1960
+ ],
1961
+ "outputs": [
1962
+ {
1963
+ "name": "config",
1964
+ "type": "tuple",
1965
+ "internalType": "struct CollateralPriceConfig",
1966
+ "components": [
1967
+ {
1968
+ "name": "collateralToken",
1969
+ "type": "address",
1970
+ "internalType": "address"
1971
+ },
1972
+ {
1973
+ "name": "usdPrice",
1974
+ "type": "uint256",
1975
+ "internalType": "uint256"
1976
+ },
1977
+ {
1978
+ "name": "decimals",
1979
+ "type": "uint256",
1980
+ "internalType": "uint256"
1981
+ },
1982
+ {
1983
+ "name": "isActive",
1984
+ "type": "bool",
1985
+ "internalType": "bool"
1986
+ }
1987
+ ]
1988
+ }
1989
+ ],
1990
+ "stateMutability": "view"
1991
+ },
1992
+ {
1993
+ "type": "function",
1994
+ "name": "getDiscountStats",
1995
+ "inputs": [
1996
+ {
1997
+ "name": "trader",
1998
+ "type": "address",
1999
+ "internalType": "address"
2000
+ }
2001
+ ],
2002
+ "outputs": [
2003
+ {
2004
+ "name": "stats",
2005
+ "type": "tuple",
2006
+ "internalType": "struct DiscountStats",
2007
+ "components": [
2008
+ {
2009
+ "name": "totalDiscountReceivedUsd",
2010
+ "type": "uint256",
2011
+ "internalType": "uint256"
2012
+ }
2013
+ ]
2014
+ }
2015
+ ],
2016
+ "stateMutability": "view"
2017
+ },
2018
+ {
2019
+ "type": "function",
2020
+ "name": "getFeeRateSettings",
2021
+ "inputs": [
2022
+ {
2023
+ "name": "tokenId",
2024
+ "type": "uint256",
2025
+ "internalType": "uint256"
2026
+ }
2027
+ ],
2028
+ "outputs": [
2029
+ {
2030
+ "name": "makerFeeRateBps",
2031
+ "type": "uint256",
2032
+ "internalType": "uint256"
2033
+ },
2034
+ {
2035
+ "name": "takerFeeRateBps",
2036
+ "type": "uint256",
2037
+ "internalType": "uint256"
2038
+ },
2039
+ {
2040
+ "name": "enabled",
2041
+ "type": "bool",
2042
+ "internalType": "bool"
2043
+ },
2044
+ {
2045
+ "name": "minFeeAmount",
2046
+ "type": "uint256",
2047
+ "internalType": "uint256"
2048
+ }
2049
+ ],
2050
+ "stateMutability": "view"
2051
+ },
2052
+ {
2053
+ "type": "function",
2054
+ "name": "getGlobalDefaultMinFee",
2055
+ "inputs": [],
2056
+ "outputs": [
2057
+ {
2058
+ "name": "",
2059
+ "type": "uint256",
2060
+ "internalType": "uint256"
2061
+ }
2062
+ ],
2063
+ "stateMutability": "view"
2064
+ },
2065
+ {
2066
+ "type": "function",
2067
+ "name": "getMaxFeeRate",
2068
+ "inputs": [],
2069
+ "outputs": [
2070
+ {
2071
+ "name": "",
2072
+ "type": "uint256",
2073
+ "internalType": "uint256"
2074
+ }
2075
+ ],
2076
+ "stateMutability": "pure"
2077
+ },
2078
+ {
2079
+ "type": "function",
2080
+ "name": "getRebateStats",
2081
+ "inputs": [
2082
+ {
2083
+ "name": "referrer",
2084
+ "type": "address",
2085
+ "internalType": "address"
2086
+ }
2087
+ ],
2088
+ "outputs": [
2089
+ {
2090
+ "name": "stats",
2091
+ "type": "tuple",
2092
+ "internalType": "struct RebateStats",
2093
+ "components": [
2094
+ {
2095
+ "name": "totalRebatesReceivedUsd",
2096
+ "type": "uint256",
2097
+ "internalType": "uint256"
2098
+ }
2099
+ ]
2100
+ }
2101
+ ],
2102
+ "stateMutability": "view"
2103
+ },
2104
+ {
2105
+ "type": "function",
2106
+ "name": "getReferrerConfig",
2107
+ "inputs": [
2108
+ {
2109
+ "name": "referrer",
2110
+ "type": "address",
2111
+ "internalType": "address"
2112
+ }
2113
+ ],
2114
+ "outputs": [
2115
+ {
2116
+ "name": "config",
2117
+ "type": "tuple",
2118
+ "internalType": "struct ReferrerConfig",
2119
+ "components": [
2120
+ {
2121
+ "name": "isActive",
2122
+ "type": "bool",
2123
+ "internalType": "bool"
2124
+ },
2125
+ {
2126
+ "name": "discountRate",
2127
+ "type": "uint256",
2128
+ "internalType": "uint256"
2129
+ },
2130
+ {
2131
+ "name": "rebateRate",
2132
+ "type": "uint256",
2133
+ "internalType": "uint256"
2134
+ },
2135
+ {
2136
+ "name": "discountValidityDuration",
2137
+ "type": "uint256",
2138
+ "internalType": "uint256"
2139
+ },
2140
+ {
2141
+ "name": "rebateValidityDuration",
2142
+ "type": "uint256",
2143
+ "internalType": "uint256"
2144
+ },
2145
+ {
2146
+ "name": "expiresAt",
2147
+ "type": "uint256",
2148
+ "internalType": "uint256"
2149
+ },
2150
+ {
2151
+ "name": "monthlyRebateLimit",
2152
+ "type": "uint256",
2153
+ "internalType": "uint256"
2154
+ },
2155
+ {
2156
+ "name": "totalVolume",
2157
+ "type": "uint256",
2158
+ "internalType": "uint256"
2159
+ },
2160
+ {
2161
+ "name": "totalReferrals",
2162
+ "type": "uint256",
2163
+ "internalType": "uint256"
2164
+ },
2165
+ {
2166
+ "name": "currentMonthUsdRebates",
2167
+ "type": "uint256",
2168
+ "internalType": "uint256"
2169
+ },
2170
+ {
2171
+ "name": "currentMonthStart",
2172
+ "type": "uint256",
2173
+ "internalType": "uint256"
2174
+ }
2175
+ ]
2176
+ }
2177
+ ],
2178
+ "stateMutability": "view"
2179
+ },
2180
+ {
2181
+ "type": "function",
2182
+ "name": "getReferrerDashboard",
2183
+ "inputs": [
2184
+ {
2185
+ "name": "referrer",
2186
+ "type": "address",
2187
+ "internalType": "address"
2188
+ }
2189
+ ],
2190
+ "outputs": [
2191
+ {
2192
+ "name": "config",
2193
+ "type": "tuple",
2194
+ "internalType": "struct ReferrerConfig",
2195
+ "components": [
2196
+ {
2197
+ "name": "isActive",
2198
+ "type": "bool",
2199
+ "internalType": "bool"
2200
+ },
2201
+ {
2202
+ "name": "discountRate",
2203
+ "type": "uint256",
2204
+ "internalType": "uint256"
2205
+ },
2206
+ {
2207
+ "name": "rebateRate",
2208
+ "type": "uint256",
2209
+ "internalType": "uint256"
2210
+ },
2211
+ {
2212
+ "name": "discountValidityDuration",
2213
+ "type": "uint256",
2214
+ "internalType": "uint256"
2215
+ },
2216
+ {
2217
+ "name": "rebateValidityDuration",
2218
+ "type": "uint256",
2219
+ "internalType": "uint256"
2220
+ },
2221
+ {
2222
+ "name": "expiresAt",
2223
+ "type": "uint256",
2224
+ "internalType": "uint256"
2225
+ },
2226
+ {
2227
+ "name": "monthlyRebateLimit",
2228
+ "type": "uint256",
2229
+ "internalType": "uint256"
2230
+ },
2231
+ {
2232
+ "name": "totalVolume",
2233
+ "type": "uint256",
2234
+ "internalType": "uint256"
2235
+ },
2236
+ {
2237
+ "name": "totalReferrals",
2238
+ "type": "uint256",
2239
+ "internalType": "uint256"
2240
+ },
2241
+ {
2242
+ "name": "currentMonthUsdRebates",
2243
+ "type": "uint256",
2244
+ "internalType": "uint256"
2245
+ },
2246
+ {
2247
+ "name": "currentMonthStart",
2248
+ "type": "uint256",
2249
+ "internalType": "uint256"
2250
+ }
2251
+ ]
2252
+ },
2253
+ {
2254
+ "name": "isActive",
2255
+ "type": "bool",
2256
+ "internalType": "bool"
2257
+ }
2258
+ ],
2259
+ "stateMutability": "view"
2260
+ },
2261
+ {
2262
+ "type": "function",
2263
+ "name": "getReferrerMonthlyLimit",
2264
+ "inputs": [
2265
+ {
2266
+ "name": "referrer",
2267
+ "type": "address",
2268
+ "internalType": "address"
2269
+ }
2270
+ ],
2271
+ "outputs": [
2272
+ {
2273
+ "name": "monthlyRebateLimit",
2274
+ "type": "uint256",
2275
+ "internalType": "uint256"
2276
+ },
2277
+ {
2278
+ "name": "currentMonthStart",
2279
+ "type": "uint256",
2280
+ "internalType": "uint256"
2281
+ },
2282
+ {
2283
+ "name": "currentMonthUsdRebates",
2284
+ "type": "uint256",
2285
+ "internalType": "uint256"
2286
+ }
2287
+ ],
2288
+ "stateMutability": "view"
2289
+ },
2290
+ {
2291
+ "type": "function",
2292
+ "name": "getRemainingMonthlyRebateAllowance",
2293
+ "inputs": [
2294
+ {
2295
+ "name": "referrer",
2296
+ "type": "address",
2297
+ "internalType": "address"
2298
+ }
2299
+ ],
2300
+ "outputs": [
2301
+ {
2302
+ "name": "remainingAllowance",
2303
+ "type": "uint256",
2304
+ "internalType": "uint256"
2305
+ }
2306
+ ],
2307
+ "stateMutability": "view"
2308
+ },
2309
+ {
2310
+ "type": "function",
2311
+ "name": "getSignerStats",
2312
+ "inputs": [],
2313
+ "outputs": [
2314
+ {
2315
+ "name": "signerAdminCount",
2316
+ "type": "uint256",
2317
+ "internalType": "uint256"
2318
+ },
2319
+ {
2320
+ "name": "signerCount",
2321
+ "type": "uint256",
2322
+ "internalType": "uint256"
2323
+ }
2324
+ ],
2325
+ "stateMutability": "view"
2326
+ },
2327
+ {
2328
+ "type": "function",
2329
+ "name": "getTierConfig",
2330
+ "inputs": [
2331
+ {
2332
+ "name": "tierId",
2333
+ "type": "uint256",
2334
+ "internalType": "uint256"
2335
+ }
2336
+ ],
2337
+ "outputs": [
2338
+ {
2339
+ "name": "config",
2340
+ "type": "tuple",
2341
+ "internalType": "struct TierConfig",
2342
+ "components": [
2343
+ {
2344
+ "name": "isActive",
2345
+ "type": "bool",
2346
+ "internalType": "bool"
2347
+ },
2348
+ {
2349
+ "name": "name",
2350
+ "type": "string",
2351
+ "internalType": "string"
2352
+ },
2353
+ {
2354
+ "name": "feeDiscountBps",
2355
+ "type": "uint256",
2356
+ "internalType": "uint256"
2357
+ },
2358
+ {
2359
+ "name": "validUntil",
2360
+ "type": "uint256",
2361
+ "internalType": "uint256"
2362
+ },
2363
+ {
2364
+ "name": "metadata",
2365
+ "type": "bytes32",
2366
+ "internalType": "bytes32"
2367
+ }
2368
+ ]
2369
+ }
2370
+ ],
2371
+ "stateMutability": "view"
2372
+ },
2373
+ {
2374
+ "type": "function",
2375
+ "name": "getTraderDiscountInfo",
2376
+ "inputs": [
2377
+ {
2378
+ "name": "trader",
2379
+ "type": "address",
2380
+ "internalType": "address"
2381
+ }
2382
+ ],
2383
+ "outputs": [
2384
+ {
2385
+ "name": "referralInfo",
2386
+ "type": "tuple",
2387
+ "internalType": "struct TraderReferralInfo",
2388
+ "components": [
2389
+ {
2390
+ "name": "referrer",
2391
+ "type": "address",
2392
+ "internalType": "address"
2393
+ },
2394
+ {
2395
+ "name": "activatedAt",
2396
+ "type": "uint256",
2397
+ "internalType": "uint256"
2398
+ }
2399
+ ]
2400
+ },
2401
+ {
2402
+ "name": "stats",
2403
+ "type": "tuple",
2404
+ "internalType": "struct DiscountStats",
2405
+ "components": [
2406
+ {
2407
+ "name": "totalDiscountReceivedUsd",
2408
+ "type": "uint256",
2409
+ "internalType": "uint256"
2410
+ }
2411
+ ]
2412
+ }
2413
+ ],
2414
+ "stateMutability": "view"
2415
+ },
2416
+ {
2417
+ "type": "function",
2418
+ "name": "getTraderReferralInfo",
2419
+ "inputs": [
2420
+ {
2421
+ "name": "trader",
2422
+ "type": "address",
2423
+ "internalType": "address"
2424
+ }
2425
+ ],
2426
+ "outputs": [
2427
+ {
2428
+ "name": "info",
2429
+ "type": "tuple",
2430
+ "internalType": "struct TraderReferralInfo",
2431
+ "components": [
2432
+ {
2433
+ "name": "referrer",
2434
+ "type": "address",
2435
+ "internalType": "address"
2436
+ },
2437
+ {
2438
+ "name": "activatedAt",
2439
+ "type": "uint256",
2440
+ "internalType": "uint256"
2441
+ }
2442
+ ]
2443
+ }
2444
+ ],
2445
+ "stateMutability": "view"
2446
+ },
2447
+ {
2448
+ "type": "function",
2449
+ "name": "getTraderReferralStatus",
2450
+ "inputs": [
2451
+ {
2452
+ "name": "trader",
2453
+ "type": "address",
2454
+ "internalType": "address"
2455
+ }
2456
+ ],
2457
+ "outputs": [
2458
+ {
2459
+ "name": "info",
2460
+ "type": "tuple",
2461
+ "internalType": "struct TraderReferralInfo",
2462
+ "components": [
2463
+ {
2464
+ "name": "referrer",
2465
+ "type": "address",
2466
+ "internalType": "address"
2467
+ },
2468
+ {
2469
+ "name": "activatedAt",
2470
+ "type": "uint256",
2471
+ "internalType": "uint256"
2472
+ }
2473
+ ]
2474
+ },
2475
+ {
2476
+ "name": "isDiscountActive",
2477
+ "type": "bool",
2478
+ "internalType": "bool"
2479
+ },
2480
+ {
2481
+ "name": "remainingDiscountTime",
2482
+ "type": "uint256",
2483
+ "internalType": "uint256"
2484
+ }
2485
+ ],
2486
+ "stateMutability": "view"
2487
+ },
2488
+ {
2489
+ "type": "function",
2490
+ "name": "getUserDiscountBps",
2491
+ "inputs": [
2492
+ {
2493
+ "name": "user",
2494
+ "type": "address",
2495
+ "internalType": "address"
2496
+ }
2497
+ ],
2498
+ "outputs": [
2499
+ {
2500
+ "name": "discountBps",
2501
+ "type": "uint256",
2502
+ "internalType": "uint256"
2503
+ }
2504
+ ],
2505
+ "stateMutability": "view"
2506
+ },
2507
+ {
2508
+ "type": "function",
2509
+ "name": "getUserDiscountInfo",
2510
+ "inputs": [
2511
+ {
2512
+ "name": "user",
2513
+ "type": "address",
2514
+ "internalType": "address"
2515
+ }
2516
+ ],
2517
+ "outputs": [
2518
+ {
2519
+ "name": "userTierDiscountBps",
2520
+ "type": "uint256",
2521
+ "internalType": "uint256"
2522
+ },
2523
+ {
2524
+ "name": "referralDiscountBps",
2525
+ "type": "uint256",
2526
+ "internalType": "uint256"
2527
+ }
2528
+ ],
2529
+ "stateMutability": "view"
2530
+ },
2531
+ {
2532
+ "type": "function",
2533
+ "name": "getUserTierInfo",
2534
+ "inputs": [
2535
+ {
2536
+ "name": "user",
2537
+ "type": "address",
2538
+ "internalType": "address"
2539
+ }
2540
+ ],
2541
+ "outputs": [
2542
+ {
2543
+ "name": "info",
2544
+ "type": "tuple",
2545
+ "internalType": "struct UserTierInfo",
2546
+ "components": [
2547
+ {
2548
+ "name": "tierId",
2549
+ "type": "uint256",
2550
+ "internalType": "uint256"
2551
+ },
2552
+ {
2553
+ "name": "assignedAt",
2554
+ "type": "uint256",
2555
+ "internalType": "uint256"
2556
+ },
2557
+ {
2558
+ "name": "totalVolume",
2559
+ "type": "uint256",
2560
+ "internalType": "uint256"
2561
+ },
2562
+ {
2563
+ "name": "isActive",
2564
+ "type": "bool",
2565
+ "internalType": "bool"
2566
+ }
2567
+ ]
2568
+ }
2569
+ ],
2570
+ "stateMutability": "view"
2571
+ },
2572
+ {
2573
+ "type": "function",
2574
+ "name": "globalDiscountOverride",
2575
+ "inputs": [],
2576
+ "outputs": [
2577
+ {
2578
+ "name": "",
2579
+ "type": "bool",
2580
+ "internalType": "bool"
2581
+ }
2582
+ ],
2583
+ "stateMutability": "view"
2584
+ },
2585
+ {
2586
+ "type": "function",
2587
+ "name": "globalRebateOverride",
2588
+ "inputs": [],
2589
+ "outputs": [
2590
+ {
2591
+ "name": "",
2592
+ "type": "bool",
2593
+ "internalType": "bool"
2594
+ }
2595
+ ],
2596
+ "stateMutability": "view"
2597
+ },
2598
+ {
2599
+ "type": "function",
2600
+ "name": "isAdmin",
2601
+ "inputs": [
2602
+ {
2603
+ "name": "usr",
2604
+ "type": "address",
2605
+ "internalType": "address"
2606
+ }
2607
+ ],
2608
+ "outputs": [
2609
+ {
2610
+ "name": "",
2611
+ "type": "bool",
2612
+ "internalType": "bool"
2613
+ }
2614
+ ],
2615
+ "stateMutability": "view"
2616
+ },
2617
+ {
2618
+ "type": "function",
2619
+ "name": "isAuthorizedSigner",
2620
+ "inputs": [
2621
+ {
2622
+ "name": "account",
2623
+ "type": "address",
2624
+ "internalType": "address"
2625
+ }
2626
+ ],
2627
+ "outputs": [
2628
+ {
2629
+ "name": "",
2630
+ "type": "bool",
2631
+ "internalType": "bool"
2632
+ }
2633
+ ],
2634
+ "stateMutability": "view"
2635
+ },
2636
+ {
2637
+ "type": "function",
2638
+ "name": "isDiscountValid",
2639
+ "inputs": [
2640
+ {
2641
+ "name": "trader",
2642
+ "type": "address",
2643
+ "internalType": "address"
2644
+ }
2645
+ ],
2646
+ "outputs": [
2647
+ {
2648
+ "name": "isValid",
2649
+ "type": "bool",
2650
+ "internalType": "bool"
2651
+ }
2652
+ ],
2653
+ "stateMutability": "view"
2654
+ },
2655
+ {
2656
+ "type": "function",
2657
+ "name": "isOperator",
2658
+ "inputs": [
2659
+ {
2660
+ "name": "usr",
2661
+ "type": "address",
2662
+ "internalType": "address"
2663
+ }
2664
+ ],
2665
+ "outputs": [
2666
+ {
2667
+ "name": "",
2668
+ "type": "bool",
2669
+ "internalType": "bool"
2670
+ }
2671
+ ],
2672
+ "stateMutability": "view"
2673
+ },
2674
+ {
2675
+ "type": "function",
2676
+ "name": "isOperatorAdmin",
2677
+ "inputs": [
2678
+ {
2679
+ "name": "usr",
2680
+ "type": "address",
2681
+ "internalType": "address"
2682
+ }
2683
+ ],
2684
+ "outputs": [
2685
+ {
2686
+ "name": "",
2687
+ "type": "bool",
2688
+ "internalType": "bool"
2689
+ }
2690
+ ],
2691
+ "stateMutability": "view"
2692
+ },
2693
+ {
2694
+ "type": "function",
2695
+ "name": "isRebateValid",
2696
+ "inputs": [
2697
+ {
2698
+ "name": "referrer",
2699
+ "type": "address",
2700
+ "internalType": "address"
2701
+ },
2702
+ {
2703
+ "name": "trader",
2704
+ "type": "address",
2705
+ "internalType": "address"
2706
+ }
2707
+ ],
2708
+ "outputs": [
2709
+ {
2710
+ "name": "isValid",
2711
+ "type": "bool",
2712
+ "internalType": "bool"
2713
+ }
2714
+ ],
2715
+ "stateMutability": "view"
2716
+ },
2717
+ {
2718
+ "type": "function",
2719
+ "name": "isReferrerConfigValid",
2720
+ "inputs": [
2721
+ {
2722
+ "name": "referrer",
2723
+ "type": "address",
2724
+ "internalType": "address"
2725
+ }
2726
+ ],
2727
+ "outputs": [
2728
+ {
2729
+ "name": "isValid",
2730
+ "type": "bool",
2731
+ "internalType": "bool"
2732
+ }
2733
+ ],
2734
+ "stateMutability": "view"
2735
+ },
2736
+ {
2737
+ "type": "function",
2738
+ "name": "isRegisteredReferrer",
2739
+ "inputs": [
2740
+ {
2741
+ "name": "referrer",
2742
+ "type": "address",
2743
+ "internalType": "address"
2744
+ }
2745
+ ],
2746
+ "outputs": [
2747
+ {
2748
+ "name": "isRegistered",
2749
+ "type": "bool",
2750
+ "internalType": "bool"
2751
+ }
2752
+ ],
2753
+ "stateMutability": "view"
2754
+ },
2755
+ {
2756
+ "type": "function",
2757
+ "name": "isSigner",
2758
+ "inputs": [
2759
+ {
2760
+ "name": "account",
2761
+ "type": "address",
2762
+ "internalType": "address"
2763
+ }
2764
+ ],
2765
+ "outputs": [
2766
+ {
2767
+ "name": "",
2768
+ "type": "bool",
2769
+ "internalType": "bool"
2770
+ }
2771
+ ],
2772
+ "stateMutability": "view"
2773
+ },
2774
+ {
2775
+ "type": "function",
2776
+ "name": "isSignerAdmin",
2777
+ "inputs": [
2778
+ {
2779
+ "name": "account",
2780
+ "type": "address",
2781
+ "internalType": "address"
2782
+ }
2783
+ ],
2784
+ "outputs": [
2785
+ {
2786
+ "name": "",
2787
+ "type": "bool",
2788
+ "internalType": "bool"
2789
+ }
2790
+ ],
2791
+ "stateMutability": "view"
2792
+ },
2793
+ {
2794
+ "type": "function",
2795
+ "name": "nextTierId",
2796
+ "inputs": [],
2797
+ "outputs": [
2798
+ {
2799
+ "name": "",
2800
+ "type": "uint256",
2801
+ "internalType": "uint256"
2802
+ }
2803
+ ],
2804
+ "stateMutability": "view"
2805
+ },
2806
+ {
2807
+ "type": "function",
2808
+ "name": "operatorAdmins",
2809
+ "inputs": [
2810
+ {
2811
+ "name": "",
2812
+ "type": "address",
2813
+ "internalType": "address"
2814
+ }
2815
+ ],
2816
+ "outputs": [
2817
+ {
2818
+ "name": "",
2819
+ "type": "uint256",
2820
+ "internalType": "uint256"
2821
+ }
2822
+ ],
2823
+ "stateMutability": "view"
2824
+ },
2825
+ {
2826
+ "type": "function",
2827
+ "name": "operators",
2828
+ "inputs": [
2829
+ {
2830
+ "name": "",
2831
+ "type": "address",
2832
+ "internalType": "address"
2833
+ }
2834
+ ],
2835
+ "outputs": [
2836
+ {
2837
+ "name": "",
2838
+ "type": "uint256",
2839
+ "internalType": "uint256"
2840
+ }
2841
+ ],
2842
+ "stateMutability": "view"
2843
+ },
2844
+ {
2845
+ "type": "function",
2846
+ "name": "processTradeReferral",
2847
+ "inputs": [
2848
+ {
2849
+ "name": "trader",
2850
+ "type": "address",
2851
+ "internalType": "address"
2852
+ },
2853
+ {
2854
+ "name": "feeAmount",
2855
+ "type": "uint256",
2856
+ "internalType": "uint256"
2857
+ },
2858
+ {
2859
+ "name": "collateralToken",
2860
+ "type": "address",
2861
+ "internalType": "address"
2862
+ }
2863
+ ],
2864
+ "outputs": [
2865
+ {
2866
+ "name": "traderDiscount",
2867
+ "type": "uint256",
2868
+ "internalType": "uint256"
2869
+ },
2870
+ {
2871
+ "name": "referrerRebate",
2872
+ "type": "uint256",
2873
+ "internalType": "uint256"
2874
+ }
2875
+ ],
2876
+ "stateMutability": "nonpayable"
2877
+ },
2878
+ {
2879
+ "type": "function",
2880
+ "name": "rebateStats",
2881
+ "inputs": [
2882
+ {
2883
+ "name": "",
2884
+ "type": "address",
2885
+ "internalType": "address"
2886
+ }
2887
+ ],
2888
+ "outputs": [
2889
+ {
2890
+ "name": "totalRebatesReceivedUsd",
2891
+ "type": "uint256",
2892
+ "internalType": "uint256"
2893
+ }
2894
+ ],
2895
+ "stateMutability": "view"
2896
+ },
2897
+ {
2898
+ "type": "function",
2899
+ "name": "recordRebatePayment",
2900
+ "inputs": [
2901
+ {
2902
+ "name": "trader",
2903
+ "type": "address",
2904
+ "internalType": "address"
2905
+ },
2906
+ {
2907
+ "name": "referrer",
2908
+ "type": "address",
2909
+ "internalType": "address"
2910
+ },
2911
+ {
2912
+ "name": "rebateAmount",
2913
+ "type": "uint256",
2914
+ "internalType": "uint256"
2915
+ },
2916
+ {
2917
+ "name": "totalFeeAmount",
2918
+ "type": "uint256",
2919
+ "internalType": "uint256"
2920
+ },
2921
+ {
2922
+ "name": "collateralToken",
2923
+ "type": "address",
2924
+ "internalType": "address"
2925
+ }
2926
+ ],
2927
+ "outputs": [],
2928
+ "stateMutability": "nonpayable"
2929
+ },
2930
+ {
2931
+ "type": "function",
2932
+ "name": "referralSignerAdmins",
2933
+ "inputs": [
2934
+ {
2935
+ "name": "",
2936
+ "type": "address",
2937
+ "internalType": "address"
2938
+ }
2939
+ ],
2940
+ "outputs": [
2941
+ {
2942
+ "name": "",
2943
+ "type": "bool",
2944
+ "internalType": "bool"
2945
+ }
2946
+ ],
2947
+ "stateMutability": "view"
2948
+ },
2949
+ {
2950
+ "type": "function",
2951
+ "name": "referralSigners",
2952
+ "inputs": [
2953
+ {
2954
+ "name": "",
2955
+ "type": "address",
2956
+ "internalType": "address"
2957
+ }
2958
+ ],
2959
+ "outputs": [
2960
+ {
2961
+ "name": "",
2962
+ "type": "bool",
2963
+ "internalType": "bool"
2964
+ }
2965
+ ],
2966
+ "stateMutability": "view"
2967
+ },
2968
+ {
2969
+ "type": "function",
2970
+ "name": "referrerConfigs",
2971
+ "inputs": [
2972
+ {
2973
+ "name": "",
2974
+ "type": "address",
2975
+ "internalType": "address"
2976
+ }
2977
+ ],
2978
+ "outputs": [
2979
+ {
2980
+ "name": "isActive",
2981
+ "type": "bool",
2982
+ "internalType": "bool"
2983
+ },
2984
+ {
2985
+ "name": "discountRate",
2986
+ "type": "uint256",
2987
+ "internalType": "uint256"
2988
+ },
2989
+ {
2990
+ "name": "rebateRate",
2991
+ "type": "uint256",
2992
+ "internalType": "uint256"
2993
+ },
2994
+ {
2995
+ "name": "discountValidityDuration",
2996
+ "type": "uint256",
2997
+ "internalType": "uint256"
2998
+ },
2999
+ {
3000
+ "name": "rebateValidityDuration",
3001
+ "type": "uint256",
3002
+ "internalType": "uint256"
3003
+ },
3004
+ {
3005
+ "name": "expiresAt",
3006
+ "type": "uint256",
3007
+ "internalType": "uint256"
3008
+ },
3009
+ {
3010
+ "name": "monthlyRebateLimit",
3011
+ "type": "uint256",
3012
+ "internalType": "uint256"
3013
+ },
3014
+ {
3015
+ "name": "totalVolume",
3016
+ "type": "uint256",
3017
+ "internalType": "uint256"
3018
+ },
3019
+ {
3020
+ "name": "totalReferrals",
3021
+ "type": "uint256",
3022
+ "internalType": "uint256"
3023
+ },
3024
+ {
3025
+ "name": "currentMonthUsdRebates",
3026
+ "type": "uint256",
3027
+ "internalType": "uint256"
3028
+ },
3029
+ {
3030
+ "name": "currentMonthStart",
3031
+ "type": "uint256",
3032
+ "internalType": "uint256"
3033
+ }
3034
+ ],
3035
+ "stateMutability": "view"
3036
+ },
3037
+ {
3038
+ "type": "function",
3039
+ "name": "registeredReferrers",
3040
+ "inputs": [
3041
+ {
3042
+ "name": "",
3043
+ "type": "address",
3044
+ "internalType": "address"
3045
+ }
3046
+ ],
3047
+ "outputs": [
3048
+ {
3049
+ "name": "",
3050
+ "type": "bool",
3051
+ "internalType": "bool"
3052
+ }
3053
+ ],
3054
+ "stateMutability": "view"
3055
+ },
3056
+ {
3057
+ "type": "function",
3058
+ "name": "removeAdmin",
3059
+ "inputs": [
3060
+ {
3061
+ "name": "admin",
3062
+ "type": "address",
3063
+ "internalType": "address"
3064
+ }
3065
+ ],
3066
+ "outputs": [],
3067
+ "stateMutability": "nonpayable"
3068
+ },
3069
+ {
3070
+ "type": "function",
3071
+ "name": "removeOperator",
3072
+ "inputs": [
3073
+ {
3074
+ "name": "operator",
3075
+ "type": "address",
3076
+ "internalType": "address"
3077
+ }
3078
+ ],
3079
+ "outputs": [],
3080
+ "stateMutability": "nonpayable"
3081
+ },
3082
+ {
3083
+ "type": "function",
3084
+ "name": "removeOperatorAdmin",
3085
+ "inputs": [
3086
+ {
3087
+ "name": "operatorAdmin",
3088
+ "type": "address",
3089
+ "internalType": "address"
3090
+ }
3091
+ ],
3092
+ "outputs": [],
3093
+ "stateMutability": "nonpayable"
3094
+ },
3095
+ {
3096
+ "type": "function",
3097
+ "name": "removeSigner",
3098
+ "inputs": [
3099
+ {
3100
+ "name": "signer",
3101
+ "type": "address",
3102
+ "internalType": "address"
3103
+ }
3104
+ ],
3105
+ "outputs": [],
3106
+ "stateMutability": "nonpayable"
3107
+ },
3108
+ {
3109
+ "type": "function",
3110
+ "name": "removeSignerAdmin",
3111
+ "inputs": [
3112
+ {
3113
+ "name": "signerAdmin",
3114
+ "type": "address",
3115
+ "internalType": "address"
3116
+ }
3117
+ ],
3118
+ "outputs": [],
3119
+ "stateMutability": "nonpayable"
3120
+ },
3121
+ {
3122
+ "type": "function",
3123
+ "name": "removeUserFromTier",
3124
+ "inputs": [
3125
+ {
3126
+ "name": "user",
3127
+ "type": "address",
3128
+ "internalType": "address"
3129
+ }
3130
+ ],
3131
+ "outputs": [],
3132
+ "stateMutability": "nonpayable"
3133
+ },
3134
+ {
3135
+ "type": "function",
3136
+ "name": "removeUsersFromTierBatch",
3137
+ "inputs": [
3138
+ {
3139
+ "name": "users",
3140
+ "type": "address[]",
3141
+ "internalType": "address[]"
3142
+ }
3143
+ ],
3144
+ "outputs": [],
3145
+ "stateMutability": "nonpayable"
3146
+ },
3147
+ {
3148
+ "type": "function",
3149
+ "name": "renounceAdminRole",
3150
+ "inputs": [],
3151
+ "outputs": [],
3152
+ "stateMutability": "nonpayable"
3153
+ },
3154
+ {
3155
+ "type": "function",
3156
+ "name": "renounceOperatorAdminRole",
3157
+ "inputs": [],
3158
+ "outputs": [],
3159
+ "stateMutability": "nonpayable"
3160
+ },
3161
+ {
3162
+ "type": "function",
3163
+ "name": "renounceOperatorRole",
3164
+ "inputs": [],
3165
+ "outputs": [],
3166
+ "stateMutability": "nonpayable"
3167
+ },
3168
+ {
3169
+ "type": "function",
3170
+ "name": "renounceSigner",
3171
+ "inputs": [],
3172
+ "outputs": [],
3173
+ "stateMutability": "nonpayable"
3174
+ },
3175
+ {
3176
+ "type": "function",
3177
+ "name": "renounceSignerAdmin",
3178
+ "inputs": [],
3179
+ "outputs": [],
3180
+ "stateMutability": "nonpayable"
3181
+ },
3182
+ {
3183
+ "type": "function",
3184
+ "name": "setCollateralConfig",
3185
+ "inputs": [
3186
+ {
3187
+ "name": "collateralToken",
3188
+ "type": "address",
3189
+ "internalType": "address"
3190
+ },
3191
+ {
3192
+ "name": "decimals",
3193
+ "type": "uint8",
3194
+ "internalType": "uint8"
3195
+ },
3196
+ {
3197
+ "name": "globalDefaultMinFee",
3198
+ "type": "uint256",
3199
+ "internalType": "uint256"
3200
+ }
3201
+ ],
3202
+ "outputs": [],
3203
+ "stateMutability": "nonpayable"
3204
+ },
3205
+ {
3206
+ "type": "function",
3207
+ "name": "setCollateralPriceConfig",
3208
+ "inputs": [
3209
+ {
3210
+ "name": "collateralToken",
3211
+ "type": "address",
3212
+ "internalType": "address"
3213
+ },
3214
+ {
3215
+ "name": "usdPrice",
3216
+ "type": "uint256",
3217
+ "internalType": "uint256"
3218
+ },
3219
+ {
3220
+ "name": "decimals",
3221
+ "type": "uint256",
3222
+ "internalType": "uint256"
3223
+ },
3224
+ {
3225
+ "name": "isActive",
3226
+ "type": "bool",
3227
+ "internalType": "bool"
3228
+ }
3229
+ ],
3230
+ "outputs": [],
3231
+ "stateMutability": "nonpayable"
3232
+ },
3233
+ {
3234
+ "type": "function",
3235
+ "name": "setDefaultCollateralToken",
3236
+ "inputs": [
3237
+ {
3238
+ "name": "newDefaultCollateral",
3239
+ "type": "address",
3240
+ "internalType": "address"
3241
+ }
3242
+ ],
3243
+ "outputs": [],
3244
+ "stateMutability": "nonpayable"
3245
+ },
3246
+ {
3247
+ "type": "function",
3248
+ "name": "setGlobalDiscountOverride",
3249
+ "inputs": [
3250
+ {
3251
+ "name": "enabled",
3252
+ "type": "bool",
3253
+ "internalType": "bool"
3254
+ }
3255
+ ],
3256
+ "outputs": [],
3257
+ "stateMutability": "nonpayable"
3258
+ },
3259
+ {
3260
+ "type": "function",
3261
+ "name": "setGlobalRebateOverride",
3262
+ "inputs": [
3263
+ {
3264
+ "name": "enabled",
3265
+ "type": "bool",
3266
+ "internalType": "bool"
3267
+ }
3268
+ ],
3269
+ "outputs": [],
3270
+ "stateMutability": "nonpayable"
3271
+ },
3272
+ {
3273
+ "type": "function",
3274
+ "name": "setReferrerConfig",
3275
+ "inputs": [
3276
+ {
3277
+ "name": "auth",
3278
+ "type": "tuple",
3279
+ "internalType": "struct AuthorizationSignature",
3280
+ "components": [
3281
+ {
3282
+ "name": "referrer",
3283
+ "type": "address",
3284
+ "internalType": "address"
3285
+ },
3286
+ {
3287
+ "name": "discountRate",
3288
+ "type": "uint256",
3289
+ "internalType": "uint256"
3290
+ },
3291
+ {
3292
+ "name": "rebateRate",
3293
+ "type": "uint256",
3294
+ "internalType": "uint256"
3295
+ },
3296
+ {
3297
+ "name": "discountValidityDuration",
3298
+ "type": "uint256",
3299
+ "internalType": "uint256"
3300
+ },
3301
+ {
3302
+ "name": "rebateValidityDuration",
3303
+ "type": "uint256",
3304
+ "internalType": "uint256"
3305
+ },
3306
+ {
3307
+ "name": "expiresAt",
3308
+ "type": "uint256",
3309
+ "internalType": "uint256"
3310
+ },
3311
+ {
3312
+ "name": "monthlyRebateLimit",
3313
+ "type": "uint256",
3314
+ "internalType": "uint256"
3315
+ },
3316
+ {
3317
+ "name": "deadline",
3318
+ "type": "uint256",
3319
+ "internalType": "uint256"
3320
+ },
3321
+ {
3322
+ "name": "signature",
3323
+ "type": "bytes",
3324
+ "internalType": "bytes"
3325
+ }
3326
+ ]
3327
+ }
3328
+ ],
3329
+ "outputs": [],
3330
+ "stateMutability": "nonpayable"
3331
+ },
3332
+ {
3333
+ "type": "function",
3334
+ "name": "setTierStatus",
3335
+ "inputs": [
3336
+ {
3337
+ "name": "tierId",
3338
+ "type": "uint256",
3339
+ "internalType": "uint256"
3340
+ },
3341
+ {
3342
+ "name": "isActive",
3343
+ "type": "bool",
3344
+ "internalType": "bool"
3345
+ }
3346
+ ],
3347
+ "outputs": [],
3348
+ "stateMutability": "nonpayable"
3349
+ },
3350
+ {
3351
+ "type": "function",
3352
+ "name": "setTraderReferrer",
3353
+ "inputs": [
3354
+ {
3355
+ "name": "trader",
3356
+ "type": "address",
3357
+ "internalType": "address"
3358
+ },
3359
+ {
3360
+ "name": "referrer",
3361
+ "type": "address",
3362
+ "internalType": "address"
3363
+ }
3364
+ ],
3365
+ "outputs": [],
3366
+ "stateMutability": "nonpayable"
3367
+ },
3368
+ {
3369
+ "type": "function",
3370
+ "name": "setUserTier",
3371
+ "inputs": [
3372
+ {
3373
+ "name": "user",
3374
+ "type": "address",
3375
+ "internalType": "address"
3376
+ },
3377
+ {
3378
+ "name": "tierId",
3379
+ "type": "uint256",
3380
+ "internalType": "uint256"
3381
+ }
3382
+ ],
3383
+ "outputs": [],
3384
+ "stateMutability": "nonpayable"
3385
+ },
3386
+ {
3387
+ "type": "function",
3388
+ "name": "setUserTiersBatch",
3389
+ "inputs": [
3390
+ {
3391
+ "name": "users",
3392
+ "type": "address[]",
3393
+ "internalType": "address[]"
3394
+ },
3395
+ {
3396
+ "name": "tierIds",
3397
+ "type": "uint256[]",
3398
+ "internalType": "uint256[]"
3399
+ }
3400
+ ],
3401
+ "outputs": [],
3402
+ "stateMutability": "nonpayable"
3403
+ },
3404
+ {
3405
+ "type": "function",
3406
+ "name": "tierConfigs",
3407
+ "inputs": [
3408
+ {
3409
+ "name": "",
3410
+ "type": "uint256",
3411
+ "internalType": "uint256"
3412
+ }
3413
+ ],
3414
+ "outputs": [
3415
+ {
3416
+ "name": "isActive",
3417
+ "type": "bool",
3418
+ "internalType": "bool"
3419
+ },
3420
+ {
3421
+ "name": "name",
3422
+ "type": "string",
3423
+ "internalType": "string"
3424
+ },
3425
+ {
3426
+ "name": "feeDiscountBps",
3427
+ "type": "uint256",
3428
+ "internalType": "uint256"
3429
+ },
3430
+ {
3431
+ "name": "validUntil",
3432
+ "type": "uint256",
3433
+ "internalType": "uint256"
3434
+ },
3435
+ {
3436
+ "name": "metadata",
3437
+ "type": "bytes32",
3438
+ "internalType": "bytes32"
3439
+ }
3440
+ ],
3441
+ "stateMutability": "view"
3442
+ },
3443
+ {
3444
+ "type": "function",
3445
+ "name": "totalReferralSignerAdmins",
3446
+ "inputs": [],
3447
+ "outputs": [
3448
+ {
3449
+ "name": "",
3450
+ "type": "uint256",
3451
+ "internalType": "uint256"
3452
+ }
3453
+ ],
3454
+ "stateMutability": "view"
3455
+ },
3456
+ {
3457
+ "type": "function",
3458
+ "name": "totalReferralSigners",
3459
+ "inputs": [],
3460
+ "outputs": [
3461
+ {
3462
+ "name": "",
3463
+ "type": "uint256",
3464
+ "internalType": "uint256"
3465
+ }
3466
+ ],
3467
+ "stateMutability": "view"
3468
+ },
3469
+ {
3470
+ "type": "function",
3471
+ "name": "traderReferrals",
3472
+ "inputs": [
3473
+ {
3474
+ "name": "",
3475
+ "type": "address",
3476
+ "internalType": "address"
3477
+ }
3478
+ ],
3479
+ "outputs": [
3480
+ {
3481
+ "name": "referrer",
3482
+ "type": "address",
3483
+ "internalType": "address"
3484
+ },
3485
+ {
3486
+ "name": "activatedAt",
3487
+ "type": "uint256",
3488
+ "internalType": "uint256"
3489
+ }
3490
+ ],
3491
+ "stateMutability": "view"
3492
+ },
3493
+ {
3494
+ "type": "function",
3495
+ "name": "treasury",
3496
+ "inputs": [],
3497
+ "outputs": [
3498
+ {
3499
+ "name": "",
3500
+ "type": "address",
3501
+ "internalType": "address"
3502
+ }
3503
+ ],
3504
+ "stateMutability": "view"
3505
+ },
3506
+ {
3507
+ "type": "function",
3508
+ "name": "updateFeeRateSettings",
3509
+ "inputs": [
3510
+ {
3511
+ "name": "tokenId",
3512
+ "type": "uint256",
3513
+ "internalType": "uint256"
3514
+ },
3515
+ {
3516
+ "name": "makerFeeRateBps",
3517
+ "type": "uint256",
3518
+ "internalType": "uint256"
3519
+ },
3520
+ {
3521
+ "name": "takerFeeRateBps",
3522
+ "type": "uint256",
3523
+ "internalType": "uint256"
3524
+ },
3525
+ {
3526
+ "name": "enabled",
3527
+ "type": "bool",
3528
+ "internalType": "bool"
3529
+ },
3530
+ {
3531
+ "name": "minFeeAmount",
3532
+ "type": "uint256",
3533
+ "internalType": "uint256"
3534
+ }
3535
+ ],
3536
+ "outputs": [],
3537
+ "stateMutability": "nonpayable"
3538
+ },
3539
+ {
3540
+ "type": "function",
3541
+ "name": "updateGlobalDefaultMinFee",
3542
+ "inputs": [
3543
+ {
3544
+ "name": "newGlobalDefaultMinFee",
3545
+ "type": "uint256",
3546
+ "internalType": "uint256"
3547
+ }
3548
+ ],
3549
+ "outputs": [],
3550
+ "stateMutability": "nonpayable"
3551
+ },
3552
+ {
3553
+ "type": "function",
3554
+ "name": "updateTierConfig",
3555
+ "inputs": [
3556
+ {
3557
+ "name": "tierId",
3558
+ "type": "uint256",
3559
+ "internalType": "uint256"
3560
+ },
3561
+ {
3562
+ "name": "config",
3563
+ "type": "tuple",
3564
+ "internalType": "struct TierConfig",
3565
+ "components": [
3566
+ {
3567
+ "name": "isActive",
3568
+ "type": "bool",
3569
+ "internalType": "bool"
3570
+ },
3571
+ {
3572
+ "name": "name",
3573
+ "type": "string",
3574
+ "internalType": "string"
3575
+ },
3576
+ {
3577
+ "name": "feeDiscountBps",
3578
+ "type": "uint256",
3579
+ "internalType": "uint256"
3580
+ },
3581
+ {
3582
+ "name": "validUntil",
3583
+ "type": "uint256",
3584
+ "internalType": "uint256"
3585
+ },
3586
+ {
3587
+ "name": "metadata",
3588
+ "type": "bytes32",
3589
+ "internalType": "bytes32"
3590
+ }
3591
+ ]
3592
+ }
3593
+ ],
3594
+ "outputs": [],
3595
+ "stateMutability": "nonpayable"
3596
+ },
3597
+ {
3598
+ "type": "function",
3599
+ "name": "updateUserVolume",
3600
+ "inputs": [
3601
+ {
3602
+ "name": "user",
3603
+ "type": "address",
3604
+ "internalType": "address"
3605
+ },
3606
+ {
3607
+ "name": "volumeToAdd",
3608
+ "type": "uint256",
3609
+ "internalType": "uint256"
3610
+ }
3611
+ ],
3612
+ "outputs": [],
3613
+ "stateMutability": "nonpayable"
3614
+ },
3615
+ {
3616
+ "type": "function",
3617
+ "name": "usedSignatures",
3618
+ "inputs": [
3619
+ {
3620
+ "name": "",
3621
+ "type": "bytes32",
3622
+ "internalType": "bytes32"
3623
+ }
3624
+ ],
3625
+ "outputs": [
3626
+ {
3627
+ "name": "",
3628
+ "type": "bool",
3629
+ "internalType": "bool"
3630
+ }
3631
+ ],
3632
+ "stateMutability": "view"
3633
+ },
3634
+ {
3635
+ "type": "function",
3636
+ "name": "userTierInfo",
3637
+ "inputs": [
3638
+ {
3639
+ "name": "",
3640
+ "type": "address",
3641
+ "internalType": "address"
3642
+ }
3643
+ ],
3644
+ "outputs": [
3645
+ {
3646
+ "name": "tierId",
3647
+ "type": "uint256",
3648
+ "internalType": "uint256"
3649
+ },
3650
+ {
3651
+ "name": "assignedAt",
3652
+ "type": "uint256",
3653
+ "internalType": "uint256"
3654
+ },
3655
+ {
3656
+ "name": "totalVolume",
3657
+ "type": "uint256",
3658
+ "internalType": "uint256"
3659
+ },
3660
+ {
3661
+ "name": "isActive",
3662
+ "type": "bool",
3663
+ "internalType": "bool"
3664
+ }
3665
+ ],
3666
+ "stateMutability": "view"
3667
+ },
3668
+ {
3669
+ "type": "event",
3670
+ "name": "CollateralPriceConfigUpdated",
3671
+ "inputs": [
3672
+ {
3673
+ "name": "collateralToken",
3674
+ "type": "address",
3675
+ "indexed": true,
3676
+ "internalType": "address"
3677
+ },
3678
+ {
3679
+ "name": "usdPrice",
3680
+ "type": "uint256",
3681
+ "indexed": false,
3682
+ "internalType": "uint256"
3683
+ },
3684
+ {
3685
+ "name": "decimals",
3686
+ "type": "uint256",
3687
+ "indexed": false,
3688
+ "internalType": "uint256"
3689
+ },
3690
+ {
3691
+ "name": "isActive",
3692
+ "type": "bool",
3693
+ "indexed": false,
3694
+ "internalType": "bool"
3695
+ }
3696
+ ],
3697
+ "anonymous": false
3698
+ },
3699
+ {
3700
+ "type": "event",
3701
+ "name": "FeeCharged",
3702
+ "inputs": [
3703
+ {
3704
+ "name": "receiver",
3705
+ "type": "address",
3706
+ "indexed": true,
3707
+ "internalType": "address"
3708
+ },
3709
+ {
3710
+ "name": "tokenId",
3711
+ "type": "uint256",
3712
+ "indexed": false,
3713
+ "internalType": "uint256"
3714
+ },
3715
+ {
3716
+ "name": "amount",
3717
+ "type": "uint256",
3718
+ "indexed": false,
3719
+ "internalType": "uint256"
3720
+ }
3721
+ ],
3722
+ "anonymous": false
3723
+ },
3724
+ {
3725
+ "type": "event",
3726
+ "name": "FeeRateSettingsChanged",
3727
+ "inputs": [
3728
+ {
3729
+ "name": "tokenId",
3730
+ "type": "uint256",
3731
+ "indexed": true,
3732
+ "internalType": "uint256"
3733
+ },
3734
+ {
3735
+ "name": "makerFeeRateBps",
3736
+ "type": "uint256",
3737
+ "indexed": false,
3738
+ "internalType": "uint256"
3739
+ },
3740
+ {
3741
+ "name": "takerFeeRateBps",
3742
+ "type": "uint256",
3743
+ "indexed": false,
3744
+ "internalType": "uint256"
3745
+ },
3746
+ {
3747
+ "name": "enabled",
3748
+ "type": "bool",
3749
+ "indexed": false,
3750
+ "internalType": "bool"
3751
+ },
3752
+ {
3753
+ "name": "minFeeAmount",
3754
+ "type": "uint256",
3755
+ "indexed": false,
3756
+ "internalType": "uint256"
3757
+ }
3758
+ ],
3759
+ "anonymous": false
3760
+ },
3761
+ {
3762
+ "type": "event",
3763
+ "name": "GlobalDiscountOverrideUpdated",
3764
+ "inputs": [
3765
+ {
3766
+ "name": "enabled",
3767
+ "type": "bool",
3768
+ "indexed": false,
3769
+ "internalType": "bool"
3770
+ }
3771
+ ],
3772
+ "anonymous": false
3773
+ },
3774
+ {
3775
+ "type": "event",
3776
+ "name": "GlobalRebateOverrideUpdated",
3777
+ "inputs": [
3778
+ {
3779
+ "name": "enabled",
3780
+ "type": "bool",
3781
+ "indexed": false,
3782
+ "internalType": "bool"
3783
+ }
3784
+ ],
3785
+ "anonymous": false
3786
+ },
3787
+ {
3788
+ "type": "event",
3789
+ "name": "NewAdmin",
3790
+ "inputs": [
3791
+ {
3792
+ "name": "newAdminAddress",
3793
+ "type": "address",
3794
+ "indexed": true,
3795
+ "internalType": "address"
3796
+ },
3797
+ {
3798
+ "name": "admin",
3799
+ "type": "address",
3800
+ "indexed": true,
3801
+ "internalType": "address"
3802
+ }
3803
+ ],
3804
+ "anonymous": false
3805
+ },
3806
+ {
3807
+ "type": "event",
3808
+ "name": "NewOperator",
3809
+ "inputs": [
3810
+ {
3811
+ "name": "newOperatorAddress",
3812
+ "type": "address",
3813
+ "indexed": true,
3814
+ "internalType": "address"
3815
+ },
3816
+ {
3817
+ "name": "admin",
3818
+ "type": "address",
3819
+ "indexed": true,
3820
+ "internalType": "address"
3821
+ }
3822
+ ],
3823
+ "anonymous": false
3824
+ },
3825
+ {
3826
+ "type": "event",
3827
+ "name": "NewOperatorAdmin",
3828
+ "inputs": [
3829
+ {
3830
+ "name": "newOperatorAdminAddress",
3831
+ "type": "address",
3832
+ "indexed": true,
3833
+ "internalType": "address"
3834
+ },
3835
+ {
3836
+ "name": "admin",
3837
+ "type": "address",
3838
+ "indexed": true,
3839
+ "internalType": "address"
3840
+ }
3841
+ ],
3842
+ "anonymous": false
3843
+ },
3844
+ {
3845
+ "type": "event",
3846
+ "name": "RebateEarned",
3847
+ "inputs": [
3848
+ {
3849
+ "name": "referrer",
3850
+ "type": "address",
3851
+ "indexed": true,
3852
+ "internalType": "address"
3853
+ },
3854
+ {
3855
+ "name": "trader",
3856
+ "type": "address",
3857
+ "indexed": true,
3858
+ "internalType": "address"
3859
+ },
3860
+ {
3861
+ "name": "collateralToken",
3862
+ "type": "address",
3863
+ "indexed": true,
3864
+ "internalType": "address"
3865
+ },
3866
+ {
3867
+ "name": "amount",
3868
+ "type": "uint256",
3869
+ "indexed": false,
3870
+ "internalType": "uint256"
3871
+ }
3872
+ ],
3873
+ "anonymous": false
3874
+ },
3875
+ {
3876
+ "type": "event",
3877
+ "name": "ReferrerConfigSet",
3878
+ "inputs": [
3879
+ {
3880
+ "name": "referrer",
3881
+ "type": "address",
3882
+ "indexed": true,
3883
+ "internalType": "address"
3884
+ },
3885
+ {
3886
+ "name": "discountRate",
3887
+ "type": "uint256",
3888
+ "indexed": false,
3889
+ "internalType": "uint256"
3890
+ },
3891
+ {
3892
+ "name": "rebateRate",
3893
+ "type": "uint256",
3894
+ "indexed": false,
3895
+ "internalType": "uint256"
3896
+ },
3897
+ {
3898
+ "name": "discountValidityDuration",
3899
+ "type": "uint256",
3900
+ "indexed": false,
3901
+ "internalType": "uint256"
3902
+ },
3903
+ {
3904
+ "name": "rebateValidityDuration",
3905
+ "type": "uint256",
3906
+ "indexed": false,
3907
+ "internalType": "uint256"
3908
+ },
3909
+ {
3910
+ "name": "expiresAt",
3911
+ "type": "uint256",
3912
+ "indexed": false,
3913
+ "internalType": "uint256"
3914
+ }
3915
+ ],
3916
+ "anonymous": false
3917
+ },
3918
+ {
3919
+ "type": "event",
3920
+ "name": "ReferrerRegistered",
3921
+ "inputs": [
3922
+ {
3923
+ "name": "referrer",
3924
+ "type": "address",
3925
+ "indexed": true,
3926
+ "internalType": "address"
3927
+ }
3928
+ ],
3929
+ "anonymous": false
3930
+ },
3931
+ {
3932
+ "type": "event",
3933
+ "name": "RemovedAdmin",
3934
+ "inputs": [
3935
+ {
3936
+ "name": "removedAdmin",
3937
+ "type": "address",
3938
+ "indexed": true,
3939
+ "internalType": "address"
3940
+ },
3941
+ {
3942
+ "name": "admin",
3943
+ "type": "address",
3944
+ "indexed": true,
3945
+ "internalType": "address"
3946
+ }
3947
+ ],
3948
+ "anonymous": false
3949
+ },
3950
+ {
3951
+ "type": "event",
3952
+ "name": "RemovedOperator",
3953
+ "inputs": [
3954
+ {
3955
+ "name": "removedOperator",
3956
+ "type": "address",
3957
+ "indexed": true,
3958
+ "internalType": "address"
3959
+ },
3960
+ {
3961
+ "name": "admin",
3962
+ "type": "address",
3963
+ "indexed": true,
3964
+ "internalType": "address"
3965
+ }
3966
+ ],
3967
+ "anonymous": false
3968
+ },
3969
+ {
3970
+ "type": "event",
3971
+ "name": "RemovedOperatorAdmin",
3972
+ "inputs": [
3973
+ {
3974
+ "name": "removedAdmin",
3975
+ "type": "address",
3976
+ "indexed": true,
3977
+ "internalType": "address"
3978
+ },
3979
+ {
3980
+ "name": "admin",
3981
+ "type": "address",
3982
+ "indexed": true,
3983
+ "internalType": "address"
3984
+ }
3985
+ ],
3986
+ "anonymous": false
3987
+ },
3988
+ {
3989
+ "type": "event",
3990
+ "name": "SignerAdded",
3991
+ "inputs": [
3992
+ {
3993
+ "name": "signer",
3994
+ "type": "address",
3995
+ "indexed": true,
3996
+ "internalType": "address"
3997
+ },
3998
+ {
3999
+ "name": "addedBy",
4000
+ "type": "address",
4001
+ "indexed": true,
4002
+ "internalType": "address"
4003
+ }
4004
+ ],
4005
+ "anonymous": false
4006
+ },
4007
+ {
4008
+ "type": "event",
4009
+ "name": "SignerAdminAdded",
4010
+ "inputs": [
4011
+ {
4012
+ "name": "signerAdmin",
4013
+ "type": "address",
4014
+ "indexed": true,
4015
+ "internalType": "address"
4016
+ },
4017
+ {
4018
+ "name": "addedBy",
4019
+ "type": "address",
4020
+ "indexed": true,
4021
+ "internalType": "address"
4022
+ }
4023
+ ],
4024
+ "anonymous": false
4025
+ },
4026
+ {
4027
+ "type": "event",
4028
+ "name": "SignerAdminRemoved",
4029
+ "inputs": [
4030
+ {
4031
+ "name": "signerAdmin",
4032
+ "type": "address",
4033
+ "indexed": true,
4034
+ "internalType": "address"
4035
+ },
4036
+ {
4037
+ "name": "removedBy",
4038
+ "type": "address",
4039
+ "indexed": true,
4040
+ "internalType": "address"
4041
+ }
4042
+ ],
4043
+ "anonymous": false
4044
+ },
4045
+ {
4046
+ "type": "event",
4047
+ "name": "SignerRemoved",
4048
+ "inputs": [
4049
+ {
4050
+ "name": "signer",
4051
+ "type": "address",
4052
+ "indexed": true,
4053
+ "internalType": "address"
4054
+ },
4055
+ {
4056
+ "name": "removedBy",
4057
+ "type": "address",
4058
+ "indexed": true,
4059
+ "internalType": "address"
4060
+ }
4061
+ ],
4062
+ "anonymous": false
4063
+ },
4064
+ {
4065
+ "type": "event",
4066
+ "name": "TierConfigUpdated",
4067
+ "inputs": [
4068
+ {
4069
+ "name": "tierId",
4070
+ "type": "uint256",
4071
+ "indexed": true,
4072
+ "internalType": "uint256"
4073
+ },
4074
+ {
4075
+ "name": "updatedBy",
4076
+ "type": "address",
4077
+ "indexed": true,
4078
+ "internalType": "address"
4079
+ }
4080
+ ],
4081
+ "anonymous": false
4082
+ },
4083
+ {
4084
+ "type": "event",
4085
+ "name": "TierCreated",
4086
+ "inputs": [
4087
+ {
4088
+ "name": "tierId",
4089
+ "type": "uint256",
4090
+ "indexed": true,
4091
+ "internalType": "uint256"
4092
+ },
4093
+ {
4094
+ "name": "name",
4095
+ "type": "string",
4096
+ "indexed": false,
4097
+ "internalType": "string"
4098
+ },
4099
+ {
4100
+ "name": "feeDiscountBps",
4101
+ "type": "uint256",
4102
+ "indexed": false,
4103
+ "internalType": "uint256"
4104
+ },
4105
+ {
4106
+ "name": "validUntil",
4107
+ "type": "uint256",
4108
+ "indexed": false,
4109
+ "internalType": "uint256"
4110
+ },
4111
+ {
4112
+ "name": "createdBy",
4113
+ "type": "address",
4114
+ "indexed": true,
4115
+ "internalType": "address"
4116
+ }
4117
+ ],
4118
+ "anonymous": false
4119
+ },
4120
+ {
4121
+ "type": "event",
4122
+ "name": "TierStatusChanged",
4123
+ "inputs": [
4124
+ {
4125
+ "name": "tierId",
4126
+ "type": "uint256",
4127
+ "indexed": true,
4128
+ "internalType": "uint256"
4129
+ },
4130
+ {
4131
+ "name": "isActive",
4132
+ "type": "bool",
4133
+ "indexed": false,
4134
+ "internalType": "bool"
4135
+ },
4136
+ {
4137
+ "name": "updatedBy",
4138
+ "type": "address",
4139
+ "indexed": true,
4140
+ "internalType": "address"
4141
+ }
4142
+ ],
4143
+ "anonymous": false
4144
+ },
4145
+ {
4146
+ "type": "event",
4147
+ "name": "TraderReferrerSet",
4148
+ "inputs": [
4149
+ {
4150
+ "name": "trader",
4151
+ "type": "address",
4152
+ "indexed": true,
4153
+ "internalType": "address"
4154
+ },
4155
+ {
4156
+ "name": "referrer",
4157
+ "type": "address",
4158
+ "indexed": true,
4159
+ "internalType": "address"
4160
+ },
4161
+ {
4162
+ "name": "activatedAt",
4163
+ "type": "uint256",
4164
+ "indexed": false,
4165
+ "internalType": "uint256"
4166
+ }
4167
+ ],
4168
+ "anonymous": false
4169
+ },
4170
+ {
4171
+ "type": "event",
4172
+ "name": "UserTierUpdated",
4173
+ "inputs": [
4174
+ {
4175
+ "name": "user",
4176
+ "type": "address",
4177
+ "indexed": true,
4178
+ "internalType": "address"
4179
+ },
4180
+ {
4181
+ "name": "oldTierId",
4182
+ "type": "uint256",
4183
+ "indexed": false,
4184
+ "internalType": "uint256"
4185
+ },
4186
+ {
4187
+ "name": "newTierId",
4188
+ "type": "uint256",
4189
+ "indexed": false,
4190
+ "internalType": "uint256"
4191
+ },
4192
+ {
4193
+ "name": "updatedBy",
4194
+ "type": "address",
4195
+ "indexed": true,
4196
+ "internalType": "address"
4197
+ }
4198
+ ],
4199
+ "anonymous": false
4200
+ },
4201
+ {
4202
+ "type": "event",
4203
+ "name": "UserVolumeUpdated",
4204
+ "inputs": [
4205
+ {
4206
+ "name": "user",
4207
+ "type": "address",
4208
+ "indexed": true,
4209
+ "internalType": "address"
4210
+ },
4211
+ {
4212
+ "name": "newTotalVolume",
4213
+ "type": "uint256",
4214
+ "indexed": false,
4215
+ "internalType": "uint256"
4216
+ },
4217
+ {
4218
+ "name": "addedVolume",
4219
+ "type": "uint256",
4220
+ "indexed": false,
4221
+ "internalType": "uint256"
4222
+ }
4223
+ ],
4224
+ "anonymous": false
4225
+ },
4226
+ {
4227
+ "type": "error",
4228
+ "name": "AlreadyHasReferrer",
4229
+ "inputs": []
4230
+ },
4231
+ {
4232
+ "type": "error",
4233
+ "name": "ArrayLengthMismatch",
4234
+ "inputs": []
4235
+ },
4236
+ {
4237
+ "type": "error",
4238
+ "name": "AuthSignatureExpired",
4239
+ "inputs": []
4240
+ },
4241
+ {
4242
+ "type": "error",
4243
+ "name": "CannotReferSelf",
4244
+ "inputs": []
4245
+ },
4246
+ {
4247
+ "type": "error",
4248
+ "name": "CollateralNotConfigured",
4249
+ "inputs": []
4250
+ },
4251
+ {
4252
+ "type": "error",
4253
+ "name": "DiscountPeriodExpired",
4254
+ "inputs": []
4255
+ },
4256
+ {
4257
+ "type": "error",
4258
+ "name": "FeeRateExceedsMaximum",
4259
+ "inputs": []
4260
+ },
4261
+ {
4262
+ "type": "error",
4263
+ "name": "FeeTooHigh",
4264
+ "inputs": []
4265
+ },
4266
+ {
4267
+ "type": "error",
4268
+ "name": "GlobalMinFeeExceedsMaximum",
4269
+ "inputs": []
4270
+ },
4271
+ {
4272
+ "type": "error",
4273
+ "name": "InvalidAddress",
4274
+ "inputs": []
4275
+ },
4276
+ {
4277
+ "type": "error",
4278
+ "name": "InvalidAuthSignature",
4279
+ "inputs": []
4280
+ },
4281
+ {
4282
+ "type": "error",
4283
+ "name": "InvalidAuthorizationSignature",
4284
+ "inputs": []
4285
+ },
4286
+ {
4287
+ "type": "error",
4288
+ "name": "InvalidCollateralToken",
4289
+ "inputs": []
4290
+ },
4291
+ {
4292
+ "type": "error",
4293
+ "name": "InvalidDiscount",
4294
+ "inputs": []
4295
+ },
4296
+ {
4297
+ "type": "error",
4298
+ "name": "InvalidDiscountRate",
4299
+ "inputs": []
4300
+ },
4301
+ {
4302
+ "type": "error",
4303
+ "name": "InvalidInput",
4304
+ "inputs": []
4305
+ },
4306
+ {
4307
+ "type": "error",
4308
+ "name": "InvalidRates",
4309
+ "inputs": []
4310
+ },
4311
+ {
4312
+ "type": "error",
4313
+ "name": "InvalidTier",
4314
+ "inputs": []
4315
+ },
4316
+ {
4317
+ "type": "error",
4318
+ "name": "InvalidUser",
4319
+ "inputs": []
4320
+ },
4321
+ {
4322
+ "type": "error",
4323
+ "name": "NoDefaultCollateralSet",
4324
+ "inputs": []
4325
+ },
4326
+ {
4327
+ "type": "error",
4328
+ "name": "NotAdmin",
4329
+ "inputs": []
4330
+ },
4331
+ {
4332
+ "type": "error",
4333
+ "name": "NotAuthorizedSigner",
4334
+ "inputs": []
4335
+ },
4336
+ {
4337
+ "type": "error",
4338
+ "name": "NotOperator",
4339
+ "inputs": []
4340
+ },
4341
+ {
4342
+ "type": "error",
4343
+ "name": "NotOperatorAdmin",
4344
+ "inputs": []
4345
+ },
4346
+ {
4347
+ "type": "error",
4348
+ "name": "NotSigner",
4349
+ "inputs": []
4350
+ },
4351
+ {
4352
+ "type": "error",
4353
+ "name": "NotSignerAdmin",
4354
+ "inputs": []
4355
+ },
4356
+ {
4357
+ "type": "error",
4358
+ "name": "RebatePeriodExpired",
4359
+ "inputs": []
4360
+ },
4361
+ {
4362
+ "type": "error",
4363
+ "name": "ReferrerAlreadyRegistered",
4364
+ "inputs": []
4365
+ },
4366
+ {
4367
+ "type": "error",
4368
+ "name": "ReferrerConfigExpired",
4369
+ "inputs": []
4370
+ },
4371
+ {
4372
+ "type": "error",
4373
+ "name": "ReferrerNotRegistered",
4374
+ "inputs": []
4375
+ },
4376
+ {
4377
+ "type": "error",
4378
+ "name": "SignerAdminAlreadyExists",
4379
+ "inputs": []
4380
+ },
4381
+ {
4382
+ "type": "error",
4383
+ "name": "SignerAdminNotFound",
4384
+ "inputs": []
4385
+ },
4386
+ {
4387
+ "type": "error",
4388
+ "name": "SignerAlreadyExists",
4389
+ "inputs": []
4390
+ },
4391
+ {
4392
+ "type": "error",
4393
+ "name": "SignerNotFound",
4394
+ "inputs": []
4395
+ },
4396
+ {
4397
+ "type": "error",
4398
+ "name": "TierExpired",
4399
+ "inputs": []
4400
+ },
4401
+ {
4402
+ "type": "error",
4403
+ "name": "TierNotActive",
4404
+ "inputs": []
4405
+ },
4406
+ {
4407
+ "type": "error",
4408
+ "name": "UnauthorizedTraderBinding",
4409
+ "inputs": []
4410
+ },
4411
+ {
4412
+ "type": "error",
4413
+ "name": "UnsupportedCollateralToken",
4414
+ "inputs": []
4415
+ }
4416
+ ]