lynx-client 0.0.1-beta.8 → 0.0.2

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 (328) hide show
  1. package/README.md +392 -3
  2. package/dist/cjs/index.js +8 -0
  3. package/dist/cjs/lib/chains/chainMappings.js +17 -0
  4. package/dist/cjs/lib/constants/contractEnums.js +2 -0
  5. package/dist/cjs/lib/contractsIntegration/IntentsVerifierLensService/IIntentsVerifierLensService.js +15 -0
  6. package/dist/cjs/lib/contractsIntegration/IntentsVerifierLensService/IntentsVerifierLensService.js +42 -0
  7. package/dist/cjs/lib/contractsIntegration/IntentsVerifierLensService/index.js +18 -0
  8. package/dist/cjs/lib/contractsIntegration/LexLensService/ILexLensService.js +137 -0
  9. package/dist/cjs/lib/contractsIntegration/LexLensService/LexLensService.js +250 -0
  10. package/dist/cjs/lib/contractsIntegration/LexLensService/index.js +18 -0
  11. package/dist/cjs/lib/contractsIntegration/OrderBookService/IOrderBookService.js +2 -0
  12. package/dist/cjs/lib/contractsIntegration/OrderBookService/OrderBookService.js +92 -0
  13. package/dist/cjs/lib/contractsIntegration/TradersPortalService/ITradersPortalService.js +2 -0
  14. package/dist/cjs/lib/contractsIntegration/TradersPortalService/TradersPortalServiceService.js +157 -0
  15. package/dist/cjs/lib/contractsIntegration/TradersPortalService/TradersPortalUtils.js +64 -0
  16. package/dist/cjs/lib/contractsIntegration/TradersPortalService/index.js +19 -0
  17. package/dist/cjs/lib/contractsIntegration/TradingFloorLensService/ITradingFloorLensService.js +61 -0
  18. package/dist/cjs/lib/contractsIntegration/TradingFloorLensService/TradingFloorLensService.js +147 -0
  19. package/dist/cjs/lib/contractsIntegration/TradingFloorLensService/index.js +18 -0
  20. package/dist/cjs/lib/contractsIntegration/TradingFloorService/ITradingFloorService.js +2 -0
  21. package/dist/cjs/lib/contractsIntegration/TradingFloorService/TradingFloorService.js +158 -0
  22. package/dist/cjs/lib/contractsIntegration/TriggersAndPortalLensService/ITriggersAndPortalLensService.js +30 -0
  23. package/dist/cjs/lib/contractsIntegration/TriggersAndPortalLensService/TriggersAndPortalLensService.js +58 -0
  24. package/dist/cjs/lib/contractsIntegration/TriggersAndPortalLensService/index.js +18 -0
  25. package/dist/cjs/lib/contractsIntegration/TriggersService/ITriggersService.js +2 -0
  26. package/dist/cjs/lib/contractsIntegration/TriggersService/TriggersService.js +188 -0
  27. package/dist/cjs/lib/contractsIntegration/deployedContractsConnector.js +119 -8
  28. package/dist/cjs/lib/devex/getChainAddresses.js +65 -0
  29. package/dist/cjs/lib/devex/getSupportedEngineChains.js +45 -0
  30. package/dist/cjs/lib/devex/index.js +9 -0
  31. package/dist/cjs/lib/devex/types.js +2 -0
  32. package/dist/cjs/lib/lynxSystem/hashes.js +9 -0
  33. package/dist/cjs/lib/lynxSystem/lynxScalesUtils.js +8 -0
  34. package/dist/cjs/lib/lynxSystem/registry/registryReading.js +38 -0
  35. package/dist/cjs/lib/priceFeeds/pyth/pythFeedConstants.js +1 -2
  36. package/dist/cjs/lib/typechain/contracts/Lynx/OrderBook/OrderBookProxy.js +2 -0
  37. package/dist/cjs/lib/typechain/contracts/Lynx/OrderBook/OrderBookV1.js +2 -0
  38. package/dist/cjs/lib/typechain/contracts/Lynx/Registry/RegistryProxy.js +2 -0
  39. package/dist/cjs/lib/typechain/contracts/Lynx/Registry/RegistryV1.js +2 -0
  40. package/dist/cjs/lib/typechain/contracts/Lynx/TradersPortal/TradersPortalV1.js +2 -0
  41. package/dist/cjs/lib/typechain/contracts/Lynx/TradingFloor/TradingFloorProxy.js +2 -0
  42. package/dist/cjs/lib/typechain/contracts/Lynx/TradingFloor/TradingFloorV1.js +2 -0
  43. package/dist/cjs/lib/typechain/contracts/Lynx/Triggers/TriggersV1.js +2 -0
  44. package/dist/cjs/lib/typechain/factories/contracts/Lynx/OrderBook/OrderBookProxy__factory.js +258 -0
  45. package/dist/cjs/lib/typechain/factories/contracts/Lynx/OrderBook/OrderBookV1__factory.js +539 -0
  46. package/dist/cjs/lib/typechain/factories/contracts/Lynx/Registry/RegistryProxy__factory.js +226 -0
  47. package/dist/cjs/lib/typechain/factories/contracts/Lynx/Registry/RegistryV1__factory.js +1108 -0
  48. package/dist/cjs/lib/typechain/factories/contracts/Lynx/TradersPortal/TradersPortalV1__factory.js +966 -0
  49. package/dist/cjs/lib/typechain/factories/contracts/Lynx/TradingFloor/TradingFloorProxy__factory.js +258 -0
  50. package/dist/cjs/lib/typechain/factories/contracts/Lynx/TradingFloor/TradingFloorV1__factory.js +1774 -0
  51. package/dist/cjs/lib/typechain/factories/contracts/Lynx/Triggers/TriggersV1__factory.js +1459 -0
  52. package/dist/cjs/lib/typechain/factories/contracts/Peripheral/Lens/LexLens__factory.js +1 -1
  53. package/dist/cjs/lib/typechain/factories/contracts/Peripheral/Lens/TradingFloorLens__factory.js +1 -1
  54. package/dist/cjs/lib/typechain/factories/contracts/Peripheral/Lens/TriggersAndPortalLens__factory.js +1 -1
  55. package/dist/cjs/lib/utils/ethersTypes.js +29 -6
  56. package/dist/esm/index.d.ts +7 -0
  57. package/dist/esm/index.d.ts.map +1 -1
  58. package/dist/esm/index.js +8 -0
  59. package/dist/esm/lib/chains/chainMappings.d.ts +13 -0
  60. package/dist/esm/lib/chains/chainMappings.d.ts.map +1 -0
  61. package/dist/esm/lib/chains/chainMappings.js +17 -0
  62. package/dist/esm/lib/chains/chainTypes.d.ts +3 -0
  63. package/dist/esm/lib/chains/chainTypes.d.ts.map +1 -1
  64. package/dist/esm/lib/constants/contractEnums.d.ts +1 -0
  65. package/dist/esm/lib/constants/contractEnums.d.ts.map +1 -1
  66. package/dist/esm/lib/constants/contractEnums.js +2 -0
  67. package/dist/esm/lib/contractsIntegration/IntentsVerifierLensService/IIntentsVerifierLensService.d.ts +20 -0
  68. package/dist/esm/lib/contractsIntegration/IntentsVerifierLensService/IIntentsVerifierLensService.d.ts.map +1 -0
  69. package/dist/esm/lib/contractsIntegration/IntentsVerifierLensService/IIntentsVerifierLensService.js +15 -0
  70. package/dist/esm/lib/contractsIntegration/IntentsVerifierLensService/IntentsVerifierLensService.d.ts +11 -0
  71. package/dist/esm/lib/contractsIntegration/IntentsVerifierLensService/IntentsVerifierLensService.d.ts.map +1 -0
  72. package/dist/esm/lib/contractsIntegration/IntentsVerifierLensService/IntentsVerifierLensService.js +42 -0
  73. package/dist/esm/lib/contractsIntegration/IntentsVerifierLensService/index.d.ts +3 -0
  74. package/dist/esm/lib/contractsIntegration/IntentsVerifierLensService/index.d.ts.map +1 -0
  75. package/dist/esm/lib/contractsIntegration/IntentsVerifierLensService/index.js +18 -0
  76. package/dist/esm/lib/contractsIntegration/LexLensService/ILexLensService.d.ts +85 -0
  77. package/dist/esm/lib/contractsIntegration/LexLensService/ILexLensService.d.ts.map +1 -0
  78. package/dist/esm/lib/contractsIntegration/LexLensService/ILexLensService.js +137 -0
  79. package/dist/esm/lib/contractsIntegration/LexLensService/LexLensService.d.ts +34 -0
  80. package/dist/esm/lib/contractsIntegration/LexLensService/LexLensService.d.ts.map +1 -0
  81. package/dist/esm/lib/contractsIntegration/LexLensService/LexLensService.js +250 -0
  82. package/dist/esm/lib/contractsIntegration/LexLensService/index.d.ts +3 -0
  83. package/dist/esm/lib/contractsIntegration/LexLensService/index.d.ts.map +1 -0
  84. package/dist/esm/lib/contractsIntegration/LexLensService/index.js +18 -0
  85. package/dist/esm/lib/contractsIntegration/OrderBookService/IOrderBookService.d.ts +40 -0
  86. package/dist/esm/lib/contractsIntegration/OrderBookService/IOrderBookService.d.ts.map +1 -0
  87. package/dist/esm/lib/contractsIntegration/OrderBookService/IOrderBookService.js +2 -0
  88. package/dist/esm/lib/contractsIntegration/OrderBookService/OrderBookService.d.ts +12 -0
  89. package/dist/esm/lib/contractsIntegration/OrderBookService/OrderBookService.d.ts.map +1 -0
  90. package/dist/esm/lib/contractsIntegration/OrderBookService/OrderBookService.js +92 -0
  91. package/dist/esm/lib/contractsIntegration/TradersPortalService/ITradersPortalService.d.ts +61 -0
  92. package/dist/esm/lib/contractsIntegration/TradersPortalService/ITradersPortalService.d.ts.map +1 -0
  93. package/dist/esm/lib/contractsIntegration/TradersPortalService/ITradersPortalService.js +2 -0
  94. package/dist/esm/lib/contractsIntegration/TradersPortalService/TradersPortalServiceService.d.ts +14 -0
  95. package/dist/esm/lib/contractsIntegration/TradersPortalService/TradersPortalServiceService.d.ts.map +1 -0
  96. package/dist/esm/lib/contractsIntegration/TradersPortalService/TradersPortalServiceService.js +157 -0
  97. package/dist/esm/lib/contractsIntegration/TradersPortalService/TradersPortalUtils.d.ts +32 -0
  98. package/dist/esm/lib/contractsIntegration/TradersPortalService/TradersPortalUtils.d.ts.map +1 -0
  99. package/dist/esm/lib/contractsIntegration/TradersPortalService/TradersPortalUtils.js +64 -0
  100. package/dist/esm/lib/contractsIntegration/TradersPortalService/index.d.ts +4 -0
  101. package/dist/esm/lib/contractsIntegration/TradersPortalService/index.d.ts.map +1 -0
  102. package/dist/esm/lib/contractsIntegration/TradersPortalService/index.js +19 -0
  103. package/dist/esm/lib/contractsIntegration/TradingFloorLensService/ITradingFloorLensService.d.ts +76 -0
  104. package/dist/esm/lib/contractsIntegration/TradingFloorLensService/ITradingFloorLensService.d.ts.map +1 -0
  105. package/dist/esm/lib/contractsIntegration/TradingFloorLensService/ITradingFloorLensService.js +61 -0
  106. package/dist/esm/lib/contractsIntegration/TradingFloorLensService/TradingFloorLensService.d.ts +16 -0
  107. package/dist/esm/lib/contractsIntegration/TradingFloorLensService/TradingFloorLensService.d.ts.map +1 -0
  108. package/dist/esm/lib/contractsIntegration/TradingFloorLensService/TradingFloorLensService.js +147 -0
  109. package/dist/esm/lib/contractsIntegration/TradingFloorLensService/index.d.ts +3 -0
  110. package/dist/esm/lib/contractsIntegration/TradingFloorLensService/index.d.ts.map +1 -0
  111. package/dist/esm/lib/contractsIntegration/TradingFloorLensService/index.js +18 -0
  112. package/dist/esm/lib/contractsIntegration/TradingFloorService/ITradingFloorService.d.ts +83 -0
  113. package/dist/esm/lib/contractsIntegration/TradingFloorService/ITradingFloorService.d.ts.map +1 -0
  114. package/dist/esm/lib/contractsIntegration/TradingFloorService/ITradingFloorService.js +2 -0
  115. package/dist/esm/lib/contractsIntegration/TradingFloorService/TradingFloorService.d.ts +80 -0
  116. package/dist/esm/lib/contractsIntegration/TradingFloorService/TradingFloorService.d.ts.map +1 -0
  117. package/dist/esm/lib/contractsIntegration/TradingFloorService/TradingFloorService.js +158 -0
  118. package/dist/esm/lib/contractsIntegration/TriggersAndPortalLensService/ITriggersAndPortalLensService.d.ts +33 -0
  119. package/dist/esm/lib/contractsIntegration/TriggersAndPortalLensService/ITriggersAndPortalLensService.d.ts.map +1 -0
  120. package/dist/esm/lib/contractsIntegration/TriggersAndPortalLensService/ITriggersAndPortalLensService.js +30 -0
  121. package/dist/esm/lib/contractsIntegration/TriggersAndPortalLensService/TriggersAndPortalLensService.d.ts +11 -0
  122. package/dist/esm/lib/contractsIntegration/TriggersAndPortalLensService/TriggersAndPortalLensService.d.ts.map +1 -0
  123. package/dist/esm/lib/contractsIntegration/TriggersAndPortalLensService/TriggersAndPortalLensService.js +58 -0
  124. package/dist/esm/lib/contractsIntegration/TriggersAndPortalLensService/index.d.ts +3 -0
  125. package/dist/esm/lib/contractsIntegration/TriggersAndPortalLensService/index.d.ts.map +1 -0
  126. package/dist/esm/lib/contractsIntegration/TriggersAndPortalLensService/index.js +18 -0
  127. package/dist/esm/lib/contractsIntegration/TriggersService/ITriggersService.d.ts +73 -0
  128. package/dist/esm/lib/contractsIntegration/TriggersService/ITriggersService.d.ts.map +1 -0
  129. package/dist/esm/lib/contractsIntegration/TriggersService/ITriggersService.js +2 -0
  130. package/dist/esm/lib/contractsIntegration/TriggersService/TriggersService.d.ts +18 -0
  131. package/dist/esm/lib/contractsIntegration/TriggersService/TriggersService.d.ts.map +1 -0
  132. package/dist/esm/lib/contractsIntegration/TriggersService/TriggersService.js +188 -0
  133. package/dist/esm/lib/contractsIntegration/deployedContractsConnector.d.ts +44 -5
  134. package/dist/esm/lib/contractsIntegration/deployedContractsConnector.d.ts.map +1 -1
  135. package/dist/esm/lib/contractsIntegration/deployedContractsConnector.js +119 -8
  136. package/dist/esm/lib/devex/getChainAddresses.d.ts +20 -0
  137. package/dist/esm/lib/devex/getChainAddresses.d.ts.map +1 -0
  138. package/dist/esm/lib/devex/getChainAddresses.js +65 -0
  139. package/dist/esm/lib/devex/getSupportedEngineChains.d.ts +37 -0
  140. package/dist/esm/lib/devex/getSupportedEngineChains.d.ts.map +1 -0
  141. package/dist/esm/lib/devex/getSupportedEngineChains.js +45 -0
  142. package/dist/esm/lib/devex/index.d.ts +5 -0
  143. package/dist/esm/lib/devex/index.d.ts.map +1 -0
  144. package/dist/esm/lib/devex/index.js +9 -0
  145. package/dist/esm/lib/devex/types.d.ts +20 -0
  146. package/dist/esm/lib/devex/types.d.ts.map +1 -0
  147. package/dist/esm/lib/devex/types.js +2 -0
  148. package/dist/esm/lib/lynxSystem/hashes.d.ts +6 -0
  149. package/dist/esm/lib/lynxSystem/hashes.d.ts.map +1 -1
  150. package/dist/esm/lib/lynxSystem/hashes.js +9 -0
  151. package/dist/esm/lib/lynxSystem/lynxScalesUtils.d.ts +2 -0
  152. package/dist/esm/lib/lynxSystem/lynxScalesUtils.d.ts.map +1 -1
  153. package/dist/esm/lib/lynxSystem/lynxScalesUtils.js +8 -0
  154. package/dist/esm/lib/lynxSystem/registry/registryReading.d.ts +9 -0
  155. package/dist/esm/lib/lynxSystem/registry/registryReading.d.ts.map +1 -0
  156. package/dist/esm/lib/lynxSystem/registry/registryReading.js +38 -0
  157. package/dist/esm/lib/priceFeeds/pyth/pythFeedConstants.d.ts.map +1 -1
  158. package/dist/esm/lib/priceFeeds/pyth/pythFeedConstants.js +1 -2
  159. package/dist/esm/lib/typechain/common.d.ts.map +1 -1
  160. package/dist/esm/lib/typechain/contracts/Lynx/OrderBook/OrderBookProxy.d.ts +151 -0
  161. package/dist/esm/lib/typechain/contracts/Lynx/OrderBook/OrderBookProxy.d.ts.map +1 -0
  162. package/dist/esm/lib/typechain/contracts/Lynx/OrderBook/OrderBookProxy.js +2 -0
  163. package/dist/esm/lib/typechain/contracts/Lynx/OrderBook/OrderBookV1.d.ts +268 -0
  164. package/dist/esm/lib/typechain/contracts/Lynx/OrderBook/OrderBookV1.d.ts.map +1 -0
  165. package/dist/esm/lib/typechain/contracts/Lynx/OrderBook/OrderBookV1.js +2 -0
  166. package/dist/esm/lib/typechain/contracts/Lynx/Registry/RegistryProxy.d.ts +143 -0
  167. package/dist/esm/lib/typechain/contracts/Lynx/Registry/RegistryProxy.d.ts.map +1 -0
  168. package/dist/esm/lib/typechain/contracts/Lynx/Registry/RegistryProxy.js +2 -0
  169. package/dist/esm/lib/typechain/contracts/Lynx/Registry/RegistryV1.d.ts +603 -0
  170. package/dist/esm/lib/typechain/contracts/Lynx/Registry/RegistryV1.d.ts.map +1 -0
  171. package/dist/esm/lib/typechain/contracts/Lynx/Registry/RegistryV1.js +2 -0
  172. package/dist/esm/lib/typechain/contracts/Lynx/TradersPortal/TradersPortalV1.d.ts +571 -0
  173. package/dist/esm/lib/typechain/contracts/Lynx/TradersPortal/TradersPortalV1.d.ts.map +1 -0
  174. package/dist/esm/lib/typechain/contracts/Lynx/TradersPortal/TradersPortalV1.js +2 -0
  175. package/dist/esm/lib/typechain/contracts/Lynx/TradingFloor/TradingFloorProxy.d.ts +151 -0
  176. package/dist/esm/lib/typechain/contracts/Lynx/TradingFloor/TradingFloorProxy.d.ts.map +1 -0
  177. package/dist/esm/lib/typechain/contracts/Lynx/TradingFloor/TradingFloorProxy.js +2 -0
  178. package/dist/esm/lib/typechain/contracts/Lynx/TradingFloor/TradingFloorV1.d.ts +1160 -0
  179. package/dist/esm/lib/typechain/contracts/Lynx/TradingFloor/TradingFloorV1.d.ts.map +1 -0
  180. package/dist/esm/lib/typechain/contracts/Lynx/TradingFloor/TradingFloorV1.js +2 -0
  181. package/dist/esm/lib/typechain/contracts/Lynx/Triggers/TriggersV1.d.ts +977 -0
  182. package/dist/esm/lib/typechain/contracts/Lynx/Triggers/TriggersV1.d.ts.map +1 -0
  183. package/dist/esm/lib/typechain/contracts/Lynx/Triggers/TriggersV1.js +2 -0
  184. package/dist/esm/lib/typechain/contracts/Peripheral/Lens/TradingFloorLens.d.ts +1 -3
  185. package/dist/esm/lib/typechain/contracts/Peripheral/Lens/TradingFloorLens.d.ts.map +1 -1
  186. package/dist/esm/lib/typechain/factories/contracts/Lynx/OrderBook/OrderBookProxy__factory.d.ts +193 -0
  187. package/dist/esm/lib/typechain/factories/contracts/Lynx/OrderBook/OrderBookProxy__factory.d.ts.map +1 -0
  188. package/dist/esm/lib/typechain/factories/contracts/Lynx/OrderBook/OrderBookProxy__factory.js +258 -0
  189. package/dist/esm/lib/typechain/factories/contracts/Lynx/OrderBook/OrderBookV1__factory.d.ts +407 -0
  190. package/dist/esm/lib/typechain/factories/contracts/Lynx/OrderBook/OrderBookV1__factory.d.ts.map +1 -0
  191. package/dist/esm/lib/typechain/factories/contracts/Lynx/OrderBook/OrderBookV1__factory.js +539 -0
  192. package/dist/esm/lib/typechain/factories/contracts/Lynx/Registry/RegistryProxy__factory.d.ts +169 -0
  193. package/dist/esm/lib/typechain/factories/contracts/Lynx/Registry/RegistryProxy__factory.d.ts.map +1 -0
  194. package/dist/esm/lib/typechain/factories/contracts/Lynx/Registry/RegistryProxy__factory.js +226 -0
  195. package/dist/esm/lib/typechain/factories/contracts/Lynx/Registry/RegistryV1__factory.d.ts +841 -0
  196. package/dist/esm/lib/typechain/factories/contracts/Lynx/Registry/RegistryV1__factory.d.ts.map +1 -0
  197. package/dist/esm/lib/typechain/factories/contracts/Lynx/Registry/RegistryV1__factory.js +1108 -0
  198. package/dist/esm/lib/typechain/factories/contracts/Lynx/TradersPortal/TradersPortalV1__factory.d.ts +745 -0
  199. package/dist/esm/lib/typechain/factories/contracts/Lynx/TradersPortal/TradersPortalV1__factory.d.ts.map +1 -0
  200. package/dist/esm/lib/typechain/factories/contracts/Lynx/TradersPortal/TradersPortalV1__factory.js +966 -0
  201. package/dist/esm/lib/typechain/factories/contracts/Lynx/TradingFloor/TradingFloorProxy__factory.d.ts +193 -0
  202. package/dist/esm/lib/typechain/factories/contracts/Lynx/TradingFloor/TradingFloorProxy__factory.d.ts.map +1 -0
  203. package/dist/esm/lib/typechain/factories/contracts/Lynx/TradingFloor/TradingFloorProxy__factory.js +258 -0
  204. package/dist/esm/lib/typechain/factories/contracts/Lynx/TradingFloor/TradingFloorV1__factory.d.ts +1374 -0
  205. package/dist/esm/lib/typechain/factories/contracts/Lynx/TradingFloor/TradingFloorV1__factory.d.ts.map +1 -0
  206. package/dist/esm/lib/typechain/factories/contracts/Lynx/TradingFloor/TradingFloorV1__factory.js +1774 -0
  207. package/dist/esm/lib/typechain/factories/contracts/Lynx/Triggers/TriggersV1__factory.d.ts +1135 -0
  208. package/dist/esm/lib/typechain/factories/contracts/Lynx/Triggers/TriggersV1__factory.d.ts.map +1 -0
  209. package/dist/esm/lib/typechain/factories/contracts/Lynx/Triggers/TriggersV1__factory.js +1459 -0
  210. package/dist/esm/lib/typechain/factories/contracts/Peripheral/Lens/LexLens__factory.d.ts +1 -1
  211. package/dist/esm/lib/typechain/factories/contracts/Peripheral/Lens/LexLens__factory.js +1 -1
  212. package/dist/esm/lib/typechain/factories/contracts/Peripheral/Lens/TradingFloorLens__factory.d.ts +1 -1
  213. package/dist/esm/lib/typechain/factories/contracts/Peripheral/Lens/TradingFloorLens__factory.js +1 -1
  214. package/dist/esm/lib/typechain/factories/contracts/Peripheral/Lens/TriggersAndPortalLens__factory.d.ts +1 -1
  215. package/dist/esm/lib/typechain/factories/contracts/Peripheral/Lens/TriggersAndPortalLens__factory.js +1 -1
  216. package/dist/esm/lib/utils/ethersTypes.d.ts +2 -2
  217. package/dist/esm/lib/utils/ethersTypes.d.ts.map +1 -1
  218. package/dist/esm/lib/utils/ethersTypes.js +29 -6
  219. package/dist/types/index.d.ts +7 -0
  220. package/dist/types/index.d.ts.map +1 -1
  221. package/dist/types/lib/chains/chainMappings.d.ts +13 -0
  222. package/dist/types/lib/chains/chainMappings.d.ts.map +1 -0
  223. package/dist/types/lib/chains/chainTypes.d.ts +3 -0
  224. package/dist/types/lib/chains/chainTypes.d.ts.map +1 -1
  225. package/dist/types/lib/constants/contractEnums.d.ts +1 -0
  226. package/dist/types/lib/constants/contractEnums.d.ts.map +1 -1
  227. package/dist/types/lib/contractsIntegration/IntentsVerifierLensService/IIntentsVerifierLensService.d.ts +20 -0
  228. package/dist/types/lib/contractsIntegration/IntentsVerifierLensService/IIntentsVerifierLensService.d.ts.map +1 -0
  229. package/dist/types/lib/contractsIntegration/IntentsVerifierLensService/IntentsVerifierLensService.d.ts +11 -0
  230. package/dist/types/lib/contractsIntegration/IntentsVerifierLensService/IntentsVerifierLensService.d.ts.map +1 -0
  231. package/dist/types/lib/contractsIntegration/IntentsVerifierLensService/index.d.ts +3 -0
  232. package/dist/types/lib/contractsIntegration/IntentsVerifierLensService/index.d.ts.map +1 -0
  233. package/dist/types/lib/contractsIntegration/LexLensService/ILexLensService.d.ts +85 -0
  234. package/dist/types/lib/contractsIntegration/LexLensService/ILexLensService.d.ts.map +1 -0
  235. package/dist/types/lib/contractsIntegration/LexLensService/LexLensService.d.ts +34 -0
  236. package/dist/types/lib/contractsIntegration/LexLensService/LexLensService.d.ts.map +1 -0
  237. package/dist/types/lib/contractsIntegration/LexLensService/index.d.ts +3 -0
  238. package/dist/types/lib/contractsIntegration/LexLensService/index.d.ts.map +1 -0
  239. package/dist/types/lib/contractsIntegration/OrderBookService/IOrderBookService.d.ts +40 -0
  240. package/dist/types/lib/contractsIntegration/OrderBookService/IOrderBookService.d.ts.map +1 -0
  241. package/dist/types/lib/contractsIntegration/OrderBookService/OrderBookService.d.ts +12 -0
  242. package/dist/types/lib/contractsIntegration/OrderBookService/OrderBookService.d.ts.map +1 -0
  243. package/dist/types/lib/contractsIntegration/TradersPortalService/ITradersPortalService.d.ts +61 -0
  244. package/dist/types/lib/contractsIntegration/TradersPortalService/ITradersPortalService.d.ts.map +1 -0
  245. package/dist/types/lib/contractsIntegration/TradersPortalService/TradersPortalServiceService.d.ts +14 -0
  246. package/dist/types/lib/contractsIntegration/TradersPortalService/TradersPortalServiceService.d.ts.map +1 -0
  247. package/dist/types/lib/contractsIntegration/TradersPortalService/TradersPortalUtils.d.ts +32 -0
  248. package/dist/types/lib/contractsIntegration/TradersPortalService/TradersPortalUtils.d.ts.map +1 -0
  249. package/dist/types/lib/contractsIntegration/TradersPortalService/index.d.ts +4 -0
  250. package/dist/types/lib/contractsIntegration/TradersPortalService/index.d.ts.map +1 -0
  251. package/dist/types/lib/contractsIntegration/TradingFloorLensService/ITradingFloorLensService.d.ts +76 -0
  252. package/dist/types/lib/contractsIntegration/TradingFloorLensService/ITradingFloorLensService.d.ts.map +1 -0
  253. package/dist/types/lib/contractsIntegration/TradingFloorLensService/TradingFloorLensService.d.ts +16 -0
  254. package/dist/types/lib/contractsIntegration/TradingFloorLensService/TradingFloorLensService.d.ts.map +1 -0
  255. package/dist/types/lib/contractsIntegration/TradingFloorLensService/index.d.ts +3 -0
  256. package/dist/types/lib/contractsIntegration/TradingFloorLensService/index.d.ts.map +1 -0
  257. package/dist/types/lib/contractsIntegration/TradingFloorService/ITradingFloorService.d.ts +83 -0
  258. package/dist/types/lib/contractsIntegration/TradingFloorService/ITradingFloorService.d.ts.map +1 -0
  259. package/dist/types/lib/contractsIntegration/TradingFloorService/TradingFloorService.d.ts +80 -0
  260. package/dist/types/lib/contractsIntegration/TradingFloorService/TradingFloorService.d.ts.map +1 -0
  261. package/dist/types/lib/contractsIntegration/TriggersAndPortalLensService/ITriggersAndPortalLensService.d.ts +33 -0
  262. package/dist/types/lib/contractsIntegration/TriggersAndPortalLensService/ITriggersAndPortalLensService.d.ts.map +1 -0
  263. package/dist/types/lib/contractsIntegration/TriggersAndPortalLensService/TriggersAndPortalLensService.d.ts +11 -0
  264. package/dist/types/lib/contractsIntegration/TriggersAndPortalLensService/TriggersAndPortalLensService.d.ts.map +1 -0
  265. package/dist/types/lib/contractsIntegration/TriggersAndPortalLensService/index.d.ts +3 -0
  266. package/dist/types/lib/contractsIntegration/TriggersAndPortalLensService/index.d.ts.map +1 -0
  267. package/dist/types/lib/contractsIntegration/TriggersService/ITriggersService.d.ts +73 -0
  268. package/dist/types/lib/contractsIntegration/TriggersService/ITriggersService.d.ts.map +1 -0
  269. package/dist/types/lib/contractsIntegration/TriggersService/TriggersService.d.ts +18 -0
  270. package/dist/types/lib/contractsIntegration/TriggersService/TriggersService.d.ts.map +1 -0
  271. package/dist/types/lib/contractsIntegration/deployedContractsConnector.d.ts +44 -5
  272. package/dist/types/lib/contractsIntegration/deployedContractsConnector.d.ts.map +1 -1
  273. package/dist/types/lib/devex/getChainAddresses.d.ts +20 -0
  274. package/dist/types/lib/devex/getChainAddresses.d.ts.map +1 -0
  275. package/dist/types/lib/devex/getSupportedEngineChains.d.ts +37 -0
  276. package/dist/types/lib/devex/getSupportedEngineChains.d.ts.map +1 -0
  277. package/dist/types/lib/devex/index.d.ts +5 -0
  278. package/dist/types/lib/devex/index.d.ts.map +1 -0
  279. package/dist/types/lib/devex/types.d.ts +20 -0
  280. package/dist/types/lib/devex/types.d.ts.map +1 -0
  281. package/dist/types/lib/lynxSystem/hashes.d.ts +6 -0
  282. package/dist/types/lib/lynxSystem/hashes.d.ts.map +1 -1
  283. package/dist/types/lib/lynxSystem/lynxScalesUtils.d.ts +2 -0
  284. package/dist/types/lib/lynxSystem/lynxScalesUtils.d.ts.map +1 -1
  285. package/dist/types/lib/lynxSystem/registry/registryReading.d.ts +9 -0
  286. package/dist/types/lib/lynxSystem/registry/registryReading.d.ts.map +1 -0
  287. package/dist/types/lib/priceFeeds/pyth/pythFeedConstants.d.ts.map +1 -1
  288. package/dist/types/lib/typechain/common.d.ts.map +1 -1
  289. package/dist/types/lib/typechain/contracts/Lynx/OrderBook/OrderBookProxy.d.ts +151 -0
  290. package/dist/types/lib/typechain/contracts/Lynx/OrderBook/OrderBookProxy.d.ts.map +1 -0
  291. package/dist/types/lib/typechain/contracts/Lynx/OrderBook/OrderBookV1.d.ts +268 -0
  292. package/dist/types/lib/typechain/contracts/Lynx/OrderBook/OrderBookV1.d.ts.map +1 -0
  293. package/dist/types/lib/typechain/contracts/Lynx/Registry/RegistryProxy.d.ts +143 -0
  294. package/dist/types/lib/typechain/contracts/Lynx/Registry/RegistryProxy.d.ts.map +1 -0
  295. package/dist/types/lib/typechain/contracts/Lynx/Registry/RegistryV1.d.ts +603 -0
  296. package/dist/types/lib/typechain/contracts/Lynx/Registry/RegistryV1.d.ts.map +1 -0
  297. package/dist/types/lib/typechain/contracts/Lynx/TradersPortal/TradersPortalV1.d.ts +571 -0
  298. package/dist/types/lib/typechain/contracts/Lynx/TradersPortal/TradersPortalV1.d.ts.map +1 -0
  299. package/dist/types/lib/typechain/contracts/Lynx/TradingFloor/TradingFloorProxy.d.ts +151 -0
  300. package/dist/types/lib/typechain/contracts/Lynx/TradingFloor/TradingFloorProxy.d.ts.map +1 -0
  301. package/dist/types/lib/typechain/contracts/Lynx/TradingFloor/TradingFloorV1.d.ts +1160 -0
  302. package/dist/types/lib/typechain/contracts/Lynx/TradingFloor/TradingFloorV1.d.ts.map +1 -0
  303. package/dist/types/lib/typechain/contracts/Lynx/Triggers/TriggersV1.d.ts +977 -0
  304. package/dist/types/lib/typechain/contracts/Lynx/Triggers/TriggersV1.d.ts.map +1 -0
  305. package/dist/types/lib/typechain/contracts/Peripheral/Lens/TradingFloorLens.d.ts +1 -3
  306. package/dist/types/lib/typechain/contracts/Peripheral/Lens/TradingFloorLens.d.ts.map +1 -1
  307. package/dist/types/lib/typechain/factories/contracts/Lynx/OrderBook/OrderBookProxy__factory.d.ts +193 -0
  308. package/dist/types/lib/typechain/factories/contracts/Lynx/OrderBook/OrderBookProxy__factory.d.ts.map +1 -0
  309. package/dist/types/lib/typechain/factories/contracts/Lynx/OrderBook/OrderBookV1__factory.d.ts +407 -0
  310. package/dist/types/lib/typechain/factories/contracts/Lynx/OrderBook/OrderBookV1__factory.d.ts.map +1 -0
  311. package/dist/types/lib/typechain/factories/contracts/Lynx/Registry/RegistryProxy__factory.d.ts +169 -0
  312. package/dist/types/lib/typechain/factories/contracts/Lynx/Registry/RegistryProxy__factory.d.ts.map +1 -0
  313. package/dist/types/lib/typechain/factories/contracts/Lynx/Registry/RegistryV1__factory.d.ts +841 -0
  314. package/dist/types/lib/typechain/factories/contracts/Lynx/Registry/RegistryV1__factory.d.ts.map +1 -0
  315. package/dist/types/lib/typechain/factories/contracts/Lynx/TradersPortal/TradersPortalV1__factory.d.ts +745 -0
  316. package/dist/types/lib/typechain/factories/contracts/Lynx/TradersPortal/TradersPortalV1__factory.d.ts.map +1 -0
  317. package/dist/types/lib/typechain/factories/contracts/Lynx/TradingFloor/TradingFloorProxy__factory.d.ts +193 -0
  318. package/dist/types/lib/typechain/factories/contracts/Lynx/TradingFloor/TradingFloorProxy__factory.d.ts.map +1 -0
  319. package/dist/types/lib/typechain/factories/contracts/Lynx/TradingFloor/TradingFloorV1__factory.d.ts +1374 -0
  320. package/dist/types/lib/typechain/factories/contracts/Lynx/TradingFloor/TradingFloorV1__factory.d.ts.map +1 -0
  321. package/dist/types/lib/typechain/factories/contracts/Lynx/Triggers/TriggersV1__factory.d.ts +1135 -0
  322. package/dist/types/lib/typechain/factories/contracts/Lynx/Triggers/TriggersV1__factory.d.ts.map +1 -0
  323. package/dist/types/lib/typechain/factories/contracts/Peripheral/Lens/LexLens__factory.d.ts +1 -1
  324. package/dist/types/lib/typechain/factories/contracts/Peripheral/Lens/TradingFloorLens__factory.d.ts +1 -1
  325. package/dist/types/lib/typechain/factories/contracts/Peripheral/Lens/TriggersAndPortalLens__factory.d.ts +1 -1
  326. package/dist/types/lib/utils/ethersTypes.d.ts +2 -2
  327. package/dist/types/lib/utils/ethersTypes.d.ts.map +1 -1
  328. package/package.json +7 -7
@@ -0,0 +1,1774 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.TradingFloorV1__factory = void 0;
4
+ /* Autogenerated file. Do not edit manually. */
5
+ /* tslint:disable */
6
+ /* eslint-disable */
7
+ const ethers_1 = require("ethers");
8
+ const _abi = [
9
+ {
10
+ inputs: [
11
+ {
12
+ internalType: "address",
13
+ name: "target",
14
+ type: "address",
15
+ },
16
+ ],
17
+ name: "AddressEmptyCode",
18
+ type: "error",
19
+ },
20
+ {
21
+ inputs: [
22
+ {
23
+ internalType: "address",
24
+ name: "account",
25
+ type: "address",
26
+ },
27
+ ],
28
+ name: "AddressInsufficientBalance",
29
+ type: "error",
30
+ },
31
+ {
32
+ inputs: [
33
+ {
34
+ internalType: "enum LexErrors.CapType",
35
+ name: "",
36
+ type: "uint8",
37
+ },
38
+ {
39
+ internalType: "uint256",
40
+ name: "value",
41
+ type: "uint256",
42
+ },
43
+ ],
44
+ name: "CapError",
45
+ type: "error",
46
+ },
47
+ {
48
+ inputs: [],
49
+ name: "FailedInnerCall",
50
+ type: "error",
51
+ },
52
+ {
53
+ inputs: [
54
+ {
55
+ internalType: "address",
56
+ name: "token",
57
+ type: "address",
58
+ },
59
+ ],
60
+ name: "SafeERC20FailedOperation",
61
+ type: "error",
62
+ },
63
+ {
64
+ anonymous: false,
65
+ inputs: [
66
+ {
67
+ indexed: true,
68
+ internalType: "address",
69
+ name: "token",
70
+ type: "address",
71
+ },
72
+ {
73
+ indexed: true,
74
+ internalType: "enum TradingEnumsV1.FeeType",
75
+ name: "feeType",
76
+ type: "uint8",
77
+ },
78
+ {
79
+ indexed: true,
80
+ internalType: "address",
81
+ name: "receiver",
82
+ type: "address",
83
+ },
84
+ {
85
+ indexed: false,
86
+ internalType: "uint256",
87
+ name: "amount",
88
+ type: "uint256",
89
+ },
90
+ ],
91
+ name: "FeeCollected",
92
+ type: "event",
93
+ },
94
+ {
95
+ anonymous: false,
96
+ inputs: [
97
+ {
98
+ indexed: true,
99
+ internalType: "bytes32",
100
+ name: "positionId",
101
+ type: "bytes32",
102
+ },
103
+ {
104
+ indexed: true,
105
+ internalType: "address",
106
+ name: "token",
107
+ type: "address",
108
+ },
109
+ {
110
+ indexed: true,
111
+ internalType: "enum TradingEnumsV1.FeeType",
112
+ name: "feeType",
113
+ type: "uint8",
114
+ },
115
+ {
116
+ indexed: false,
117
+ internalType: "uint256",
118
+ name: "amount",
119
+ type: "uint256",
120
+ },
121
+ ],
122
+ name: "FeeRegistered",
123
+ type: "event",
124
+ },
125
+ {
126
+ anonymous: false,
127
+ inputs: [
128
+ {
129
+ indexed: true,
130
+ internalType: "string",
131
+ name: "name",
132
+ type: "string",
133
+ },
134
+ {
135
+ indexed: false,
136
+ internalType: "uint256",
137
+ name: "value",
138
+ type: "uint256",
139
+ },
140
+ ],
141
+ name: "NumberUpdated",
142
+ type: "event",
143
+ },
144
+ {
145
+ anonymous: false,
146
+ inputs: [
147
+ {
148
+ indexed: true,
149
+ internalType: "bytes32",
150
+ name: "positionId",
151
+ type: "bytes32",
152
+ },
153
+ {
154
+ indexed: true,
155
+ internalType: "uint16",
156
+ name: "pairId",
157
+ type: "uint16",
158
+ },
159
+ {
160
+ indexed: false,
161
+ internalType: "bool",
162
+ name: "buy",
163
+ type: "bool",
164
+ },
165
+ {
166
+ indexed: true,
167
+ internalType: "enum TradingEnumsV1.PositionField",
168
+ name: "updatedField",
169
+ type: "uint8",
170
+ },
171
+ {
172
+ indexed: false,
173
+ internalType: "uint64",
174
+ name: "fieldValue",
175
+ type: "uint64",
176
+ },
177
+ ],
178
+ name: "OpenedPositionUpdated",
179
+ type: "event",
180
+ },
181
+ {
182
+ anonymous: false,
183
+ inputs: [
184
+ {
185
+ indexed: true,
186
+ internalType: "uint256",
187
+ name: "pairId",
188
+ type: "uint256",
189
+ },
190
+ {
191
+ indexed: true,
192
+ internalType: "bool",
193
+ name: "isPaused",
194
+ type: "bool",
195
+ },
196
+ ],
197
+ name: "PairPausedChange",
198
+ type: "event",
199
+ },
200
+ {
201
+ anonymous: false,
202
+ inputs: [
203
+ {
204
+ indexed: true,
205
+ internalType: "bytes32",
206
+ name: "positionId",
207
+ type: "bytes32",
208
+ },
209
+ {
210
+ indexed: true,
211
+ internalType: "address",
212
+ name: "source",
213
+ type: "address",
214
+ },
215
+ {
216
+ indexed: false,
217
+ internalType: "uint256",
218
+ name: "fee",
219
+ type: "uint256",
220
+ },
221
+ ],
222
+ name: "PendingPositionCancelled",
223
+ type: "event",
224
+ },
225
+ {
226
+ anonymous: false,
227
+ inputs: [
228
+ {
229
+ indexed: true,
230
+ internalType: "bytes32",
231
+ name: "positionId",
232
+ type: "bytes32",
233
+ },
234
+ {
235
+ indexed: false,
236
+ internalType: "enum TradingEnumsV1.PositionPhase",
237
+ name: "phase",
238
+ type: "uint8",
239
+ },
240
+ {
241
+ components: [
242
+ {
243
+ internalType: "address",
244
+ name: "trader",
245
+ type: "address",
246
+ },
247
+ {
248
+ internalType: "uint16",
249
+ name: "pairId",
250
+ type: "uint16",
251
+ },
252
+ {
253
+ internalType: "address",
254
+ name: "settlementAsset",
255
+ type: "address",
256
+ },
257
+ {
258
+ internalType: "uint32",
259
+ name: "positionIndex",
260
+ type: "uint32",
261
+ },
262
+ ],
263
+ indexed: false,
264
+ internalType: "struct TradingFloorStructsV1.PositionRequestIdentifiers",
265
+ name: "requestIdentifiers",
266
+ type: "tuple",
267
+ },
268
+ {
269
+ components: [
270
+ {
271
+ internalType: "bool",
272
+ name: "long",
273
+ type: "bool",
274
+ },
275
+ {
276
+ internalType: "uint256",
277
+ name: "collateral",
278
+ type: "uint256",
279
+ },
280
+ {
281
+ internalType: "uint32",
282
+ name: "leverage",
283
+ type: "uint32",
284
+ },
285
+ {
286
+ internalType: "uint64",
287
+ name: "minPrice",
288
+ type: "uint64",
289
+ },
290
+ {
291
+ internalType: "uint64",
292
+ name: "maxPrice",
293
+ type: "uint64",
294
+ },
295
+ {
296
+ internalType: "uint64",
297
+ name: "tp",
298
+ type: "uint64",
299
+ },
300
+ {
301
+ internalType: "uint64",
302
+ name: "sl",
303
+ type: "uint64",
304
+ },
305
+ {
306
+ internalType: "uint64",
307
+ name: "tpByFraction",
308
+ type: "uint64",
309
+ },
310
+ {
311
+ internalType: "uint64",
312
+ name: "slByFraction",
313
+ type: "uint64",
314
+ },
315
+ ],
316
+ indexed: false,
317
+ internalType: "struct TradingFloorStructsV1.PositionRequestParams",
318
+ name: "requestParams",
319
+ type: "tuple",
320
+ },
321
+ {
322
+ indexed: false,
323
+ internalType: "uint32",
324
+ name: "_spreadReductionF",
325
+ type: "uint32",
326
+ },
327
+ ],
328
+ name: "PendingPositionStored",
329
+ type: "event",
330
+ },
331
+ {
332
+ anonymous: false,
333
+ inputs: [
334
+ {
335
+ indexed: true,
336
+ internalType: "bytes32",
337
+ name: "positionId",
338
+ type: "bytes32",
339
+ },
340
+ {
341
+ indexed: false,
342
+ internalType: "uint64",
343
+ name: "tp",
344
+ type: "uint64",
345
+ },
346
+ {
347
+ indexed: false,
348
+ internalType: "uint64",
349
+ name: "sl",
350
+ type: "uint64",
351
+ },
352
+ {
353
+ indexed: false,
354
+ internalType: "uint64",
355
+ name: "minPrice",
356
+ type: "uint64",
357
+ },
358
+ {
359
+ indexed: false,
360
+ internalType: "uint64",
361
+ name: "maxPrice",
362
+ type: "uint64",
363
+ },
364
+ ],
365
+ name: "PendingPositionUpdated",
366
+ type: "event",
367
+ },
368
+ {
369
+ anonymous: false,
370
+ inputs: [
371
+ {
372
+ indexed: true,
373
+ internalType: "bytes32",
374
+ name: "positionId",
375
+ type: "bytes32",
376
+ },
377
+ {
378
+ indexed: true,
379
+ internalType: "enum TradingEnumsV1.LimitTrigger",
380
+ name: "limitTrigger",
381
+ type: "uint8",
382
+ },
383
+ {
384
+ indexed: false,
385
+ internalType: "uint256",
386
+ name: "triggerPrice",
387
+ type: "uint256",
388
+ },
389
+ {
390
+ indexed: false,
391
+ internalType: "uint256",
392
+ name: "effectiveClosePrice",
393
+ type: "uint256",
394
+ },
395
+ {
396
+ indexed: false,
397
+ internalType: "uint256",
398
+ name: "tradeValue",
399
+ type: "uint256",
400
+ },
401
+ {
402
+ indexed: false,
403
+ internalType: "int256",
404
+ name: "profitPrecision",
405
+ type: "int256",
406
+ },
407
+ ],
408
+ name: "PositionClosedLimit",
409
+ type: "event",
410
+ },
411
+ {
412
+ anonymous: false,
413
+ inputs: [
414
+ {
415
+ indexed: true,
416
+ internalType: "bytes32",
417
+ name: "positionId",
418
+ type: "bytes32",
419
+ },
420
+ {
421
+ indexed: false,
422
+ internalType: "uint256",
423
+ name: "triggerPrice",
424
+ type: "uint256",
425
+ },
426
+ {
427
+ indexed: false,
428
+ internalType: "uint256",
429
+ name: "tradeValue",
430
+ type: "uint256",
431
+ },
432
+ {
433
+ indexed: false,
434
+ internalType: "int256",
435
+ name: "profitPrecision",
436
+ type: "int256",
437
+ },
438
+ ],
439
+ name: "PositionClosedMarket",
440
+ type: "event",
441
+ },
442
+ {
443
+ anonymous: false,
444
+ inputs: [
445
+ {
446
+ indexed: true,
447
+ internalType: "bytes32",
448
+ name: "positionId",
449
+ type: "bytes32",
450
+ },
451
+ {
452
+ components: [
453
+ {
454
+ internalType: "address",
455
+ name: "settlementAsset",
456
+ type: "address",
457
+ },
458
+ {
459
+ internalType: "uint16",
460
+ name: "pairId",
461
+ type: "uint16",
462
+ },
463
+ {
464
+ internalType: "uint32",
465
+ name: "index",
466
+ type: "uint32",
467
+ },
468
+ {
469
+ internalType: "address",
470
+ name: "trader",
471
+ type: "address",
472
+ },
473
+ ],
474
+ indexed: false,
475
+ internalType: "struct TradingFloorStructsV1.PositionIdentifiers",
476
+ name: "identifiers",
477
+ type: "tuple",
478
+ },
479
+ ],
480
+ name: "PositionIdentifiersStored",
481
+ type: "event",
482
+ },
483
+ {
484
+ anonymous: false,
485
+ inputs: [
486
+ {
487
+ indexed: true,
488
+ internalType: "bytes32",
489
+ name: "positionId",
490
+ type: "bytes32",
491
+ },
492
+ {
493
+ indexed: true,
494
+ internalType: "address",
495
+ name: "source",
496
+ type: "address",
497
+ },
498
+ {
499
+ indexed: false,
500
+ internalType: "uint256",
501
+ name: "fee",
502
+ type: "uint256",
503
+ },
504
+ ],
505
+ name: "PositionMarketCloseCancelled",
506
+ type: "event",
507
+ },
508
+ {
509
+ anonymous: false,
510
+ inputs: [
511
+ {
512
+ indexed: true,
513
+ internalType: "bytes32",
514
+ name: "positionId",
515
+ type: "bytes32",
516
+ },
517
+ {
518
+ indexed: false,
519
+ internalType: "enum LexErrors.CapType",
520
+ name: "capType",
521
+ type: "uint8",
522
+ },
523
+ {
524
+ indexed: false,
525
+ internalType: "uint256",
526
+ name: "value",
527
+ type: "uint256",
528
+ },
529
+ ],
530
+ name: "PositionOpenCancelledByCap",
531
+ type: "event",
532
+ },
533
+ {
534
+ anonymous: false,
535
+ inputs: [
536
+ {
537
+ indexed: true,
538
+ internalType: "bytes32",
539
+ name: "positionId",
540
+ type: "bytes32",
541
+ },
542
+ {
543
+ indexed: false,
544
+ internalType: "uint64",
545
+ name: "triggerPrice",
546
+ type: "uint64",
547
+ },
548
+ ],
549
+ name: "PositionOpenCancelledByMarketPriceRange",
550
+ type: "event",
551
+ },
552
+ {
553
+ anonymous: false,
554
+ inputs: [
555
+ {
556
+ indexed: true,
557
+ internalType: "bytes32",
558
+ name: "positionId",
559
+ type: "bytes32",
560
+ },
561
+ {
562
+ indexed: false,
563
+ internalType: "uint64",
564
+ name: "openPrice",
565
+ type: "uint64",
566
+ },
567
+ {
568
+ indexed: false,
569
+ internalType: "uint64",
570
+ name: "tp",
571
+ type: "uint64",
572
+ },
573
+ {
574
+ indexed: false,
575
+ internalType: "uint64",
576
+ name: "sl",
577
+ type: "uint64",
578
+ },
579
+ {
580
+ indexed: false,
581
+ internalType: "uint256",
582
+ name: "totalOpenFee",
583
+ type: "uint256",
584
+ },
585
+ {
586
+ indexed: false,
587
+ internalType: "uint256",
588
+ name: "lexFeePart",
589
+ type: "uint256",
590
+ },
591
+ ],
592
+ name: "PositionOpened",
593
+ type: "event",
594
+ },
595
+ {
596
+ anonymous: false,
597
+ inputs: [
598
+ {
599
+ indexed: true,
600
+ internalType: "bytes32",
601
+ name: "positionId",
602
+ type: "bytes32",
603
+ },
604
+ {
605
+ indexed: false,
606
+ internalType: "uint64",
607
+ name: "_minPrice",
608
+ type: "uint64",
609
+ },
610
+ {
611
+ indexed: false,
612
+ internalType: "uint64",
613
+ name: "_maxPrice",
614
+ type: "uint64",
615
+ },
616
+ ],
617
+ name: "PositionSetForMarketClose",
618
+ type: "event",
619
+ },
620
+ {
621
+ anonymous: false,
622
+ inputs: [
623
+ {
624
+ indexed: true,
625
+ internalType: "address",
626
+ name: "asset",
627
+ type: "address",
628
+ },
629
+ {
630
+ indexed: true,
631
+ internalType: "address",
632
+ name: "lexPool",
633
+ type: "address",
634
+ },
635
+ {
636
+ indexed: true,
637
+ internalType: "address",
638
+ name: "poolAccountant",
639
+ type: "address",
640
+ },
641
+ ],
642
+ name: "SettlementAssetAdded",
643
+ type: "event",
644
+ },
645
+ {
646
+ inputs: [],
647
+ name: "ACCURACY_IMPROVEMENT_SCALE",
648
+ outputs: [
649
+ {
650
+ internalType: "uint256",
651
+ name: "",
652
+ type: "uint256",
653
+ },
654
+ ],
655
+ stateMutability: "view",
656
+ type: "function",
657
+ },
658
+ {
659
+ inputs: [],
660
+ name: "FRACTION_SCALE",
661
+ outputs: [
662
+ {
663
+ internalType: "uint256",
664
+ name: "",
665
+ type: "uint256",
666
+ },
667
+ ],
668
+ stateMutability: "view",
669
+ type: "function",
670
+ },
671
+ {
672
+ inputs: [],
673
+ name: "LEVERAGE_SCALE",
674
+ outputs: [
675
+ {
676
+ internalType: "uint256",
677
+ name: "",
678
+ type: "uint256",
679
+ },
680
+ ],
681
+ stateMutability: "view",
682
+ type: "function",
683
+ },
684
+ {
685
+ inputs: [],
686
+ name: "MAX_FEE_FRACTION_FOR_CANCEL",
687
+ outputs: [
688
+ {
689
+ internalType: "uint256",
690
+ name: "",
691
+ type: "uint256",
692
+ },
693
+ ],
694
+ stateMutability: "view",
695
+ type: "function",
696
+ },
697
+ {
698
+ inputs: [],
699
+ name: "PRECISION",
700
+ outputs: [
701
+ {
702
+ internalType: "uint256",
703
+ name: "",
704
+ type: "uint256",
705
+ },
706
+ ],
707
+ stateMutability: "view",
708
+ type: "function",
709
+ },
710
+ {
711
+ inputs: [
712
+ {
713
+ internalType: "contract TradingFloorProxy",
714
+ name: "tradingFloorProxy",
715
+ type: "address",
716
+ },
717
+ ],
718
+ name: "_become",
719
+ outputs: [],
720
+ stateMutability: "nonpayable",
721
+ type: "function",
722
+ },
723
+ {
724
+ inputs: [],
725
+ name: "admin",
726
+ outputs: [
727
+ {
728
+ internalType: "address",
729
+ name: "",
730
+ type: "address",
731
+ },
732
+ ],
733
+ stateMutability: "view",
734
+ type: "function",
735
+ },
736
+ {
737
+ inputs: [
738
+ {
739
+ internalType: "bytes32",
740
+ name: "_positionId",
741
+ type: "bytes32",
742
+ },
743
+ {
744
+ internalType: "enum TradingEnumsV1.CloseOrderType",
745
+ name: "_orderType",
746
+ type: "uint8",
747
+ },
748
+ {
749
+ internalType: "uint256",
750
+ name: "",
751
+ type: "uint256",
752
+ },
753
+ ],
754
+ name: "cancelMarketCloseForPosition",
755
+ outputs: [],
756
+ stateMutability: "nonpayable",
757
+ type: "function",
758
+ },
759
+ {
760
+ inputs: [
761
+ {
762
+ internalType: "bytes32",
763
+ name: "_positionId",
764
+ type: "bytes32",
765
+ },
766
+ {
767
+ internalType: "enum TradingEnumsV1.OpenOrderType",
768
+ name: "_orderType",
769
+ type: "uint8",
770
+ },
771
+ {
772
+ internalType: "uint256",
773
+ name: "feeFraction",
774
+ type: "uint256",
775
+ },
776
+ ],
777
+ name: "cancelPendingPosition",
778
+ outputs: [],
779
+ stateMutability: "nonpayable",
780
+ type: "function",
781
+ },
782
+ {
783
+ inputs: [
784
+ {
785
+ internalType: "bytes32",
786
+ name: "_positionId",
787
+ type: "bytes32",
788
+ },
789
+ {
790
+ internalType: "enum TradingEnumsV1.LimitTrigger",
791
+ name: "limitTrigger",
792
+ type: "uint8",
793
+ },
794
+ {
795
+ internalType: "uint64",
796
+ name: "",
797
+ type: "uint64",
798
+ },
799
+ {
800
+ internalType: "uint64",
801
+ name: "effectivePrice",
802
+ type: "uint64",
803
+ },
804
+ ],
805
+ name: "closeExistingPosition_Limit",
806
+ outputs: [],
807
+ stateMutability: "nonpayable",
808
+ type: "function",
809
+ },
810
+ {
811
+ inputs: [
812
+ {
813
+ internalType: "bytes32",
814
+ name: "_positionId",
815
+ type: "bytes32",
816
+ },
817
+ {
818
+ internalType: "uint64",
819
+ name: "",
820
+ type: "uint64",
821
+ },
822
+ {
823
+ internalType: "uint64",
824
+ name: "effectivePrice",
825
+ type: "uint64",
826
+ },
827
+ ],
828
+ name: "closeExistingPosition_Market",
829
+ outputs: [],
830
+ stateMutability: "nonpayable",
831
+ type: "function",
832
+ },
833
+ {
834
+ inputs: [
835
+ {
836
+ internalType: "address",
837
+ name: "_asset",
838
+ type: "address",
839
+ },
840
+ {
841
+ internalType: "enum TradingEnumsV1.FeeType",
842
+ name: "_feeType",
843
+ type: "uint8",
844
+ },
845
+ {
846
+ internalType: "address",
847
+ name: "_to",
848
+ type: "address",
849
+ },
850
+ ],
851
+ name: "collectFee",
852
+ outputs: [],
853
+ stateMutability: "nonpayable",
854
+ type: "function",
855
+ },
856
+ {
857
+ inputs: [
858
+ {
859
+ internalType: "address",
860
+ name: "",
861
+ type: "address",
862
+ },
863
+ {
864
+ internalType: "enum TradingEnumsV1.FeeType",
865
+ name: "",
866
+ type: "uint8",
867
+ },
868
+ ],
869
+ name: "feesMap",
870
+ outputs: [
871
+ {
872
+ internalType: "uint256",
873
+ name: "",
874
+ type: "uint256",
875
+ },
876
+ ],
877
+ stateMutability: "view",
878
+ type: "function",
879
+ },
880
+ {
881
+ inputs: [
882
+ {
883
+ internalType: "address",
884
+ name: "settlementAsset",
885
+ type: "address",
886
+ },
887
+ {
888
+ internalType: "address",
889
+ name: "trader",
890
+ type: "address",
891
+ },
892
+ {
893
+ internalType: "uint16",
894
+ name: "pairId",
895
+ type: "uint16",
896
+ },
897
+ {
898
+ internalType: "uint32",
899
+ name: "index",
900
+ type: "uint32",
901
+ },
902
+ ],
903
+ name: "generatePositionHashId",
904
+ outputs: [
905
+ {
906
+ internalType: "bytes32",
907
+ name: "hashId",
908
+ type: "bytes32",
909
+ },
910
+ ],
911
+ stateMutability: "pure",
912
+ type: "function",
913
+ },
914
+ {
915
+ inputs: [
916
+ {
917
+ internalType: "bytes32",
918
+ name: "_positionId",
919
+ type: "bytes32",
920
+ },
921
+ ],
922
+ name: "getPositionPortalInfo",
923
+ outputs: [
924
+ {
925
+ internalType: "enum TradingEnumsV1.PositionPhase",
926
+ name: "positionPhase",
927
+ type: "uint8",
928
+ },
929
+ {
930
+ internalType: "uint64",
931
+ name: "timestamp",
932
+ type: "uint64",
933
+ },
934
+ {
935
+ internalType: "address",
936
+ name: "trader",
937
+ type: "address",
938
+ },
939
+ ],
940
+ stateMutability: "view",
941
+ type: "function",
942
+ },
943
+ {
944
+ inputs: [
945
+ {
946
+ internalType: "bytes32",
947
+ name: "_positionId",
948
+ type: "bytes32",
949
+ },
950
+ ],
951
+ name: "getPositionRegistrationParams",
952
+ outputs: [
953
+ {
954
+ components: [
955
+ {
956
+ internalType: "uint256",
957
+ name: "collateral",
958
+ type: "uint256",
959
+ },
960
+ {
961
+ internalType: "uint32",
962
+ name: "leverage",
963
+ type: "uint32",
964
+ },
965
+ {
966
+ internalType: "bool",
967
+ name: "long",
968
+ type: "bool",
969
+ },
970
+ {
971
+ internalType: "uint64",
972
+ name: "openPrice",
973
+ type: "uint64",
974
+ },
975
+ {
976
+ internalType: "uint64",
977
+ name: "tp",
978
+ type: "uint64",
979
+ },
980
+ ],
981
+ internalType: "struct PoolAccountantStructs.PositionRegistrationParams",
982
+ name: "registrationParams",
983
+ type: "tuple",
984
+ },
985
+ ],
986
+ stateMutability: "view",
987
+ type: "function",
988
+ },
989
+ {
990
+ inputs: [
991
+ {
992
+ internalType: "bytes32",
993
+ name: "_positionId",
994
+ type: "bytes32",
995
+ },
996
+ ],
997
+ name: "getPositionTriggerInfo",
998
+ outputs: [
999
+ {
1000
+ internalType: "enum TradingEnumsV1.PositionPhase",
1001
+ name: "positionPhase",
1002
+ type: "uint8",
1003
+ },
1004
+ {
1005
+ internalType: "uint64",
1006
+ name: "timestamp",
1007
+ type: "uint64",
1008
+ },
1009
+ {
1010
+ internalType: "uint16",
1011
+ name: "pairId",
1012
+ type: "uint16",
1013
+ },
1014
+ {
1015
+ internalType: "bool",
1016
+ name: "long",
1017
+ type: "bool",
1018
+ },
1019
+ {
1020
+ internalType: "uint32",
1021
+ name: "spreadReductionF",
1022
+ type: "uint32",
1023
+ },
1024
+ ],
1025
+ stateMutability: "view",
1026
+ type: "function",
1027
+ },
1028
+ {
1029
+ inputs: [],
1030
+ name: "implementation",
1031
+ outputs: [
1032
+ {
1033
+ internalType: "address",
1034
+ name: "",
1035
+ type: "address",
1036
+ },
1037
+ ],
1038
+ stateMutability: "view",
1039
+ type: "function",
1040
+ },
1041
+ {
1042
+ inputs: [
1043
+ {
1044
+ internalType: "bytes32",
1045
+ name: "",
1046
+ type: "bytes32",
1047
+ },
1048
+ ],
1049
+ name: "initialCollateralByPositionId",
1050
+ outputs: [
1051
+ {
1052
+ internalType: "uint256",
1053
+ name: "",
1054
+ type: "uint256",
1055
+ },
1056
+ ],
1057
+ stateMutability: "view",
1058
+ type: "function",
1059
+ },
1060
+ {
1061
+ inputs: [
1062
+ {
1063
+ internalType: "address",
1064
+ name: "settlementAsset",
1065
+ type: "address",
1066
+ },
1067
+ ],
1068
+ name: "isSettlementAssetSupported",
1069
+ outputs: [
1070
+ {
1071
+ internalType: "bool",
1072
+ name: "",
1073
+ type: "bool",
1074
+ },
1075
+ ],
1076
+ stateMutability: "view",
1077
+ type: "function",
1078
+ },
1079
+ {
1080
+ inputs: [
1081
+ {
1082
+ internalType: "address",
1083
+ name: "",
1084
+ type: "address",
1085
+ },
1086
+ ],
1087
+ name: "lexPoolForAsset",
1088
+ outputs: [
1089
+ {
1090
+ internalType: "address",
1091
+ name: "",
1092
+ type: "address",
1093
+ },
1094
+ ],
1095
+ stateMutability: "view",
1096
+ type: "function",
1097
+ },
1098
+ {
1099
+ inputs: [],
1100
+ name: "maxSanityProfitF",
1101
+ outputs: [
1102
+ {
1103
+ internalType: "uint256",
1104
+ name: "",
1105
+ type: "uint256",
1106
+ },
1107
+ ],
1108
+ stateMutability: "view",
1109
+ type: "function",
1110
+ },
1111
+ {
1112
+ inputs: [],
1113
+ name: "maxSlF",
1114
+ outputs: [
1115
+ {
1116
+ internalType: "uint256",
1117
+ name: "",
1118
+ type: "uint256",
1119
+ },
1120
+ ],
1121
+ stateMutability: "view",
1122
+ type: "function",
1123
+ },
1124
+ {
1125
+ inputs: [],
1126
+ name: "maxTradesPerPair",
1127
+ outputs: [
1128
+ {
1129
+ internalType: "uint256",
1130
+ name: "",
1131
+ type: "uint256",
1132
+ },
1133
+ ],
1134
+ stateMutability: "view",
1135
+ type: "function",
1136
+ },
1137
+ {
1138
+ inputs: [
1139
+ {
1140
+ internalType: "bytes32",
1141
+ name: "_positionId",
1142
+ type: "bytes32",
1143
+ },
1144
+ {
1145
+ internalType: "uint64",
1146
+ name: "assetEffectivePrice",
1147
+ type: "uint64",
1148
+ },
1149
+ {
1150
+ internalType: "uint256",
1151
+ name: "feeForCancellation",
1152
+ type: "uint256",
1153
+ },
1154
+ ],
1155
+ name: "openNewPosition_limit",
1156
+ outputs: [],
1157
+ stateMutability: "nonpayable",
1158
+ type: "function",
1159
+ },
1160
+ {
1161
+ inputs: [
1162
+ {
1163
+ internalType: "bytes32",
1164
+ name: "_positionId",
1165
+ type: "bytes32",
1166
+ },
1167
+ {
1168
+ internalType: "uint64",
1169
+ name: "assetEffectivePrice",
1170
+ type: "uint64",
1171
+ },
1172
+ {
1173
+ internalType: "uint256",
1174
+ name: "feeForCancellation",
1175
+ type: "uint256",
1176
+ },
1177
+ ],
1178
+ name: "openNewPosition_market",
1179
+ outputs: [],
1180
+ stateMutability: "nonpayable",
1181
+ type: "function",
1182
+ },
1183
+ {
1184
+ inputs: [
1185
+ {
1186
+ internalType: "address",
1187
+ name: "",
1188
+ type: "address",
1189
+ },
1190
+ {
1191
+ internalType: "uint256",
1192
+ name: "",
1193
+ type: "uint256",
1194
+ },
1195
+ {
1196
+ internalType: "uint256",
1197
+ name: "",
1198
+ type: "uint256",
1199
+ },
1200
+ ],
1201
+ name: "pairTraders",
1202
+ outputs: [
1203
+ {
1204
+ internalType: "address",
1205
+ name: "",
1206
+ type: "address",
1207
+ },
1208
+ ],
1209
+ stateMutability: "view",
1210
+ type: "function",
1211
+ },
1212
+ {
1213
+ inputs: [
1214
+ {
1215
+ internalType: "address",
1216
+ name: "_asset",
1217
+ type: "address",
1218
+ },
1219
+ {
1220
+ internalType: "uint256",
1221
+ name: "_pairIndex",
1222
+ type: "uint256",
1223
+ },
1224
+ ],
1225
+ name: "pairTradersArray",
1226
+ outputs: [
1227
+ {
1228
+ internalType: "address[]",
1229
+ name: "",
1230
+ type: "address[]",
1231
+ },
1232
+ ],
1233
+ stateMutability: "view",
1234
+ type: "function",
1235
+ },
1236
+ {
1237
+ inputs: [
1238
+ {
1239
+ internalType: "address",
1240
+ name: "",
1241
+ type: "address",
1242
+ },
1243
+ {
1244
+ internalType: "address",
1245
+ name: "",
1246
+ type: "address",
1247
+ },
1248
+ {
1249
+ internalType: "uint256",
1250
+ name: "",
1251
+ type: "uint256",
1252
+ },
1253
+ ],
1254
+ name: "pairTradersInfo",
1255
+ outputs: [
1256
+ {
1257
+ internalType: "uint32",
1258
+ name: "positionsCounter",
1259
+ type: "uint32",
1260
+ },
1261
+ {
1262
+ internalType: "uint32",
1263
+ name: "positionInArray",
1264
+ type: "uint32",
1265
+ },
1266
+ ],
1267
+ stateMutability: "view",
1268
+ type: "function",
1269
+ },
1270
+ {
1271
+ inputs: [
1272
+ {
1273
+ internalType: "uint256",
1274
+ name: "",
1275
+ type: "uint256",
1276
+ },
1277
+ ],
1278
+ name: "pausedPairs",
1279
+ outputs: [
1280
+ {
1281
+ internalType: "bool",
1282
+ name: "",
1283
+ type: "bool",
1284
+ },
1285
+ ],
1286
+ stateMutability: "view",
1287
+ type: "function",
1288
+ },
1289
+ {
1290
+ inputs: [],
1291
+ name: "pendingAdmin",
1292
+ outputs: [
1293
+ {
1294
+ internalType: "address",
1295
+ name: "",
1296
+ type: "address",
1297
+ },
1298
+ ],
1299
+ stateMutability: "view",
1300
+ type: "function",
1301
+ },
1302
+ {
1303
+ inputs: [],
1304
+ name: "pendingImplementation",
1305
+ outputs: [
1306
+ {
1307
+ internalType: "address",
1308
+ name: "",
1309
+ type: "address",
1310
+ },
1311
+ ],
1312
+ stateMutability: "view",
1313
+ type: "function",
1314
+ },
1315
+ {
1316
+ inputs: [
1317
+ {
1318
+ internalType: "address",
1319
+ name: "",
1320
+ type: "address",
1321
+ },
1322
+ ],
1323
+ name: "poolAccountantForAsset",
1324
+ outputs: [
1325
+ {
1326
+ internalType: "address",
1327
+ name: "",
1328
+ type: "address",
1329
+ },
1330
+ ],
1331
+ stateMutability: "view",
1332
+ type: "function",
1333
+ },
1334
+ {
1335
+ inputs: [
1336
+ {
1337
+ internalType: "bytes32",
1338
+ name: "",
1339
+ type: "bytes32",
1340
+ },
1341
+ ],
1342
+ name: "positionIdentifiersById",
1343
+ outputs: [
1344
+ {
1345
+ internalType: "address",
1346
+ name: "settlementAsset",
1347
+ type: "address",
1348
+ },
1349
+ {
1350
+ internalType: "uint16",
1351
+ name: "pairId",
1352
+ type: "uint16",
1353
+ },
1354
+ {
1355
+ internalType: "uint32",
1356
+ name: "index",
1357
+ type: "uint32",
1358
+ },
1359
+ {
1360
+ internalType: "address",
1361
+ name: "trader",
1362
+ type: "address",
1363
+ },
1364
+ ],
1365
+ stateMutability: "view",
1366
+ type: "function",
1367
+ },
1368
+ {
1369
+ inputs: [
1370
+ {
1371
+ internalType: "bytes32",
1372
+ name: "",
1373
+ type: "bytes32",
1374
+ },
1375
+ ],
1376
+ name: "positionLimitsInfoById",
1377
+ outputs: [
1378
+ {
1379
+ internalType: "uint64",
1380
+ name: "tpLastUpdated",
1381
+ type: "uint64",
1382
+ },
1383
+ {
1384
+ internalType: "uint64",
1385
+ name: "slLastUpdated",
1386
+ type: "uint64",
1387
+ },
1388
+ {
1389
+ internalType: "uint64",
1390
+ name: "tp",
1391
+ type: "uint64",
1392
+ },
1393
+ {
1394
+ internalType: "uint64",
1395
+ name: "sl",
1396
+ type: "uint64",
1397
+ },
1398
+ ],
1399
+ stateMutability: "view",
1400
+ type: "function",
1401
+ },
1402
+ {
1403
+ inputs: [
1404
+ {
1405
+ internalType: "bytes32",
1406
+ name: "",
1407
+ type: "bytes32",
1408
+ },
1409
+ ],
1410
+ name: "positionsById",
1411
+ outputs: [
1412
+ {
1413
+ internalType: "uint256",
1414
+ name: "collateral",
1415
+ type: "uint256",
1416
+ },
1417
+ {
1418
+ internalType: "enum TradingEnumsV1.PositionPhase",
1419
+ name: "phase",
1420
+ type: "uint8",
1421
+ },
1422
+ {
1423
+ internalType: "uint64",
1424
+ name: "inPhaseSince",
1425
+ type: "uint64",
1426
+ },
1427
+ {
1428
+ internalType: "uint32",
1429
+ name: "leverage",
1430
+ type: "uint32",
1431
+ },
1432
+ {
1433
+ internalType: "bool",
1434
+ name: "long",
1435
+ type: "bool",
1436
+ },
1437
+ {
1438
+ internalType: "uint64",
1439
+ name: "openPrice",
1440
+ type: "uint64",
1441
+ },
1442
+ {
1443
+ internalType: "uint32",
1444
+ name: "spreadReductionF",
1445
+ type: "uint32",
1446
+ },
1447
+ ],
1448
+ stateMutability: "view",
1449
+ type: "function",
1450
+ },
1451
+ {
1452
+ inputs: [],
1453
+ name: "registry",
1454
+ outputs: [
1455
+ {
1456
+ internalType: "address",
1457
+ name: "",
1458
+ type: "address",
1459
+ },
1460
+ ],
1461
+ stateMutability: "view",
1462
+ type: "function",
1463
+ },
1464
+ {
1465
+ inputs: [
1466
+ {
1467
+ internalType: "bytes32",
1468
+ name: "_positionId",
1469
+ type: "bytes32",
1470
+ },
1471
+ {
1472
+ internalType: "uint64",
1473
+ name: "_minPrice",
1474
+ type: "uint64",
1475
+ },
1476
+ {
1477
+ internalType: "uint64",
1478
+ name: "_maxPrice",
1479
+ type: "uint64",
1480
+ },
1481
+ ],
1482
+ name: "setOpenedPositionToMarketClose",
1483
+ outputs: [],
1484
+ stateMutability: "nonpayable",
1485
+ type: "function",
1486
+ },
1487
+ {
1488
+ inputs: [
1489
+ {
1490
+ internalType: "uint256",
1491
+ name: "_pairId",
1492
+ type: "uint256",
1493
+ },
1494
+ {
1495
+ internalType: "bool",
1496
+ name: "_isPaused",
1497
+ type: "bool",
1498
+ },
1499
+ ],
1500
+ name: "setPairPaused",
1501
+ outputs: [],
1502
+ stateMutability: "nonpayable",
1503
+ type: "function",
1504
+ },
1505
+ {
1506
+ inputs: [
1507
+ {
1508
+ internalType: "enum TradingFloorStructsV1.AdminNumericParam",
1509
+ name: "numericParam",
1510
+ type: "uint8",
1511
+ },
1512
+ {
1513
+ internalType: "uint256",
1514
+ name: "value",
1515
+ type: "uint256",
1516
+ },
1517
+ ],
1518
+ name: "setTradeParam",
1519
+ outputs: [],
1520
+ stateMutability: "nonpayable",
1521
+ type: "function",
1522
+ },
1523
+ {
1524
+ inputs: [
1525
+ {
1526
+ internalType: "enum TradingEnumsV1.OpenOrderType",
1527
+ name: "_orderType",
1528
+ type: "uint8",
1529
+ },
1530
+ {
1531
+ components: [
1532
+ {
1533
+ internalType: "address",
1534
+ name: "trader",
1535
+ type: "address",
1536
+ },
1537
+ {
1538
+ internalType: "uint16",
1539
+ name: "pairId",
1540
+ type: "uint16",
1541
+ },
1542
+ {
1543
+ internalType: "address",
1544
+ name: "settlementAsset",
1545
+ type: "address",
1546
+ },
1547
+ {
1548
+ internalType: "uint32",
1549
+ name: "positionIndex",
1550
+ type: "uint32",
1551
+ },
1552
+ ],
1553
+ internalType: "struct TradingFloorStructsV1.PositionRequestIdentifiers",
1554
+ name: "_requestIdentifiers",
1555
+ type: "tuple",
1556
+ },
1557
+ {
1558
+ components: [
1559
+ {
1560
+ internalType: "bool",
1561
+ name: "long",
1562
+ type: "bool",
1563
+ },
1564
+ {
1565
+ internalType: "uint256",
1566
+ name: "collateral",
1567
+ type: "uint256",
1568
+ },
1569
+ {
1570
+ internalType: "uint32",
1571
+ name: "leverage",
1572
+ type: "uint32",
1573
+ },
1574
+ {
1575
+ internalType: "uint64",
1576
+ name: "minPrice",
1577
+ type: "uint64",
1578
+ },
1579
+ {
1580
+ internalType: "uint64",
1581
+ name: "maxPrice",
1582
+ type: "uint64",
1583
+ },
1584
+ {
1585
+ internalType: "uint64",
1586
+ name: "tp",
1587
+ type: "uint64",
1588
+ },
1589
+ {
1590
+ internalType: "uint64",
1591
+ name: "sl",
1592
+ type: "uint64",
1593
+ },
1594
+ {
1595
+ internalType: "uint64",
1596
+ name: "tpByFraction",
1597
+ type: "uint64",
1598
+ },
1599
+ {
1600
+ internalType: "uint64",
1601
+ name: "slByFraction",
1602
+ type: "uint64",
1603
+ },
1604
+ ],
1605
+ internalType: "struct TradingFloorStructsV1.PositionRequestParams",
1606
+ name: "_requestParams",
1607
+ type: "tuple",
1608
+ },
1609
+ {
1610
+ internalType: "uint32",
1611
+ name: "_spreadReductionF",
1612
+ type: "uint32",
1613
+ },
1614
+ ],
1615
+ name: "storePendingPosition",
1616
+ outputs: [
1617
+ {
1618
+ internalType: "bytes32",
1619
+ name: "positionId",
1620
+ type: "bytes32",
1621
+ },
1622
+ ],
1623
+ stateMutability: "nonpayable",
1624
+ type: "function",
1625
+ },
1626
+ {
1627
+ inputs: [
1628
+ {
1629
+ internalType: "address",
1630
+ name: "_asset",
1631
+ type: "address",
1632
+ },
1633
+ {
1634
+ internalType: "address",
1635
+ name: "_lexPool",
1636
+ type: "address",
1637
+ },
1638
+ {
1639
+ internalType: "address",
1640
+ name: "_poolAccountant",
1641
+ type: "address",
1642
+ },
1643
+ ],
1644
+ name: "supportNewSettlementAsset",
1645
+ outputs: [],
1646
+ stateMutability: "nonpayable",
1647
+ type: "function",
1648
+ },
1649
+ {
1650
+ inputs: [
1651
+ {
1652
+ internalType: "bytes32",
1653
+ name: "",
1654
+ type: "bytes32",
1655
+ },
1656
+ ],
1657
+ name: "triggerPricesById",
1658
+ outputs: [
1659
+ {
1660
+ internalType: "uint64",
1661
+ name: "minPrice",
1662
+ type: "uint64",
1663
+ },
1664
+ {
1665
+ internalType: "uint64",
1666
+ name: "maxPrice",
1667
+ type: "uint64",
1668
+ },
1669
+ {
1670
+ internalType: "uint64",
1671
+ name: "tpByFraction",
1672
+ type: "uint64",
1673
+ },
1674
+ {
1675
+ internalType: "uint64",
1676
+ name: "slByFraction",
1677
+ type: "uint64",
1678
+ },
1679
+ ],
1680
+ stateMutability: "view",
1681
+ type: "function",
1682
+ },
1683
+ {
1684
+ inputs: [
1685
+ {
1686
+ internalType: "bytes32",
1687
+ name: "positionId",
1688
+ type: "bytes32",
1689
+ },
1690
+ {
1691
+ internalType: "enum TradingEnumsV1.PositionField",
1692
+ name: "updateField",
1693
+ type: "uint8",
1694
+ },
1695
+ {
1696
+ internalType: "uint64",
1697
+ name: "fieldValue",
1698
+ type: "uint64",
1699
+ },
1700
+ {
1701
+ internalType: "uint64",
1702
+ name: "effectivePrice",
1703
+ type: "uint64",
1704
+ },
1705
+ ],
1706
+ name: "updateOpenedPosition",
1707
+ outputs: [],
1708
+ stateMutability: "nonpayable",
1709
+ type: "function",
1710
+ },
1711
+ {
1712
+ inputs: [
1713
+ {
1714
+ internalType: "bytes32",
1715
+ name: "_positionId",
1716
+ type: "bytes32",
1717
+ },
1718
+ {
1719
+ internalType: "uint64",
1720
+ name: "_minPrice",
1721
+ type: "uint64",
1722
+ },
1723
+ {
1724
+ internalType: "uint64",
1725
+ name: "_maxPrice",
1726
+ type: "uint64",
1727
+ },
1728
+ {
1729
+ internalType: "uint64",
1730
+ name: "_tp",
1731
+ type: "uint64",
1732
+ },
1733
+ {
1734
+ internalType: "uint64",
1735
+ name: "_sl",
1736
+ type: "uint64",
1737
+ },
1738
+ ],
1739
+ name: "updatePendingPosition_openLimit",
1740
+ outputs: [],
1741
+ stateMutability: "nonpayable",
1742
+ type: "function",
1743
+ },
1744
+ ];
1745
+ const _bytecode = "0x608060405234801561001057600080fd5b50600080546001600160a01b03191633179055615a0480620000336000396000f3fe608060405234801561001057600080fd5b506004361061027f5760003560e01c80638c01936e1161015c578063c07f9921116100ce578063f2eb245e11610087578063f2eb245e1461081f578063f51f3fd31461083f578063f555f69714610848578063f65d9dbe14610868578063f851a44014610871578063f9b9484e1461088457600080fd5b8063c07f992114610778578063ca3a3a821461078b578063cae290c81461079e578063ddf474f1146107b1578063e640f33b146107f9578063eb4891401461080c57600080fd5b80639ff69ffa116101205780639ff69ffa1461071d578063a2a25ea614610730578063a40d726814610743578063aaf5eb6814610756578063ad1f2b5614610765578063b71f3cfe1461076d57600080fd5b80638c01936e146105915780638f7a8fb5146105f157806393a7f6a71461066c57806394a1e6e51461069a57806395be5050146106a257600080fd5b80635c60da1b116101f557806376d901be116101b957806376d901be146105125780637b1039991461054557806380193b261461055857806380a7f3d414610562578063825714091461057557806386dc49751461057e57600080fd5b80635c60da1b14610435578063652dcb431461044857806366307a4f1461045b5780636e01af8d146104d657806374d8b78e146104e957600080fd5b806324b22a1f1161024757806324b22a1f1461039057806326782247146103a357806330d073d0146103b657806331867212146103ef578063396f7b231461040f5780634ebe5c331461042257600080fd5b806303b90a8714610284578063042e37c5146102ca57806318fa4714146103555780631d504dc61461036a5780631ea9af6b1461037d575b600080fd5b6102ad610292366004614c2a565b600b602052600090815260409020546001600160a01b031681565b6040516001600160a01b0390911681526020015b60405180910390f35b6103196102d8366004614c47565b600c60205260009081526040902080546001909101546001600160a01b0380831692600160a01b810461ffff1692600160b01b90910463ffffffff16911684565b604080516001600160a01b03958616815261ffff909416602085015263ffffffff909216918301919091529190911660608201526080016102c1565b610368610363366004614c6d565b6108e6565b005b610368610378366004614c2a565b6109ba565b61036861038b366004614cd4565b610b08565b61036861039e366004614d09565b610b9e565b6001546102ad906001600160a01b031681565b6103e16103c4366004614d35565b600960209081526000928352604080842090915290825290205481565b6040519081526020016102c1565b6104026103fd366004614d6e565b610e3b565b6040516102c19190614d8c565b6003546102ad906001600160a01b031681565b610368610430366004614dd9565b610ebb565b6002546102ad906001600160a01b031681565b6102ad610456366004614e15565b610f7f565b6104a3610469366004614c47565b600e602052600090815260409020546001600160401b0380821691600160401b8104821691600160801b8204811691600160c01b90041684565b604080516001600160401b03958616815293851660208501529184169183019190915290911660608201526080016102c1565b6103686104e4366004614e57565b610fc4565b6102ad6104f7366004614c2a565b600a602052600090815260409020546001600160a01b031681565b610535610520366004614c47565b60086020526000908152604090205460ff1681565b60405190151581526020016102c1565b6004546102ad906001600160a01b031681565b6103e1620186a081565b610368610570366004614e7e565b61135f565b6103e160075481565b61036861058c366004614ee6565b6117b7565b6105d461059f366004614f0b565b601260209081526000938452604080852082529284528284209052825290205463ffffffff8082169164010000000090041682565b6040805163ffffffff9384168152929091166020830152016102c1565b6106596105ff366004614c47565b600d602052600090815260409020805460019091015460ff808216916001600160401b03610100820481169263ffffffff600160481b8404811693600160681b810490921692600160701b83041691600160b01b90041687565b6040516102c19796959493929190614f65565b61053561067a366004614c2a565b6001600160a01b039081166000908152600a602052604090205416151590565b6103e161184a565b61070c6106b0366004614c47565b6000908152600d6020818152604080842060010154600c835293205491905260ff8083169361010084046001600160401b031693600160a01b90930461ffff1692600160681b810490921691600160b01b900463ffffffff1690565b6040516102c1959493929190614fba565b61036861072b366004614ffe565b61185b565b61036861073e36600461505c565b611aa2565b6103e16107513660046150b2565b611bc4565b6103e1670de0b6b3a764000081565b6103e1606481565b6103e1633b9aca0081565b6103686107863660046150ff565b611c33565b610368610799366004615127565b612380565b6103e16107ac366004615284565b612531565b6104a36107bf366004614c47565b600f602052600090815260409020546001600160401b0380821691600160401b8104821691600160801b8204811691600160c01b90041684565b610368610807366004615127565b612b10565b61036861081a366004614cd4565b612ca1565b6103e161082d366004614c47565b60106020526000908152604090205481565b6103e160065481565b61085b610856366004614c47565b612d37565b6040516102c19190615399565b6103e160055481565b6000546102ad906001600160a01b031681565b6108d7610892366004614c47565b6000908152600d60209081526040808320600190810154600c90935292209091015460ff8216926101009092046001600160401b0316916001600160a01b0390911690565b6040516102c1939291906153a7565b6004805460405163a8e36e5b60e01b81526001600160a01b038681169382019390935291169063a8e36e5b90602401602060405180830381865afa158015610932573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061095691906153dd565b6001600160a01b0316336001600160a01b0316146109aa5760405162461bcd60e51b815260206004820152600c60248201526b10a332b2b9a6b0b730b3b2b960a11b60448201526064015b60405180910390fd5b6109b5838383612e5f565b505050565b806001600160a01b031663f851a4406040518163ffffffff1660e01b8152600401602060405180830381865afa1580156109f8573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a1c91906153dd565b6001600160a01b0316336001600160a01b031614610a6b5760405162461bcd60e51b815260206004820152600c60248201526b10b83937bc3c9730b236b4b760a11b60448201526064016109a1565b806001600160a01b031663c1e803346040518163ffffffff1660e01b81526004016020604051808303816000875af1158015610aab573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610acf91906153fa565b15610b055760405162461bcd60e51b81526004016109a19060208082526004908201526319985a5b60e21b604082015260600190565b50565b6004805460405163a5a2ed3760e01b815233928101929092526001600160a01b03169063a5a2ed3790602401602060405180830381865afa158015610b51573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b759190615413565b610b915760405162461bcd60e51b81526004016109a190615430565b6109b58360028484612f82565b6000546001600160a01b03163314610be55760405162461bcd60e51b815260206004820152600a60248201526927a7262cafa0a226a4a760b11b60448201526064016109a1565b60008111610c265760405162461bcd60e51b815260206004820152600e60248201526d43414e4e4f545f42455f5a45524f60901b60448201526064016109a1565b60606001836003811115610c3c57610c3c614f3b565b03610c73575060408051808201909152601081526f36b0bc2a3930b232b9a832b92830b4b960811b60208201526005829055610dee565b6002836003811115610c8757610c87614f3b565b03610d16576064610c9c620186a06032615469565b610ca69190615496565b821015610cef5760405162461bcd60e51b81526020600482015260176024820152762a2920a222afa820a920a6afa922a9aa2924a1aa24a7a760491b60448201526064016109a1565b506040805180820190915260068082526536b0bc29b62360d11b6020830152829055610dee565b6003836003811115610d2a57610d2a614f3b565b03610db857610d3d620186a06002615469565b821015610d865760405162461bcd60e51b81526020600482015260176024820152762a2920a222afa820a920a6afa922a9aa2924a1aa24a7a760491b60448201526064016109a1565b5060408051808201909152601081526f36b0bc29b0b734ba3ca83937b334ba2360811b60208201526007829055610dee565b60405162461bcd60e51b815260206004820152600b60248201526a155394d5541413d495115160aa1b60448201526064016109a1565b80604051610dfc91906154ce565b604051908190038120838252907f8cf3e35f6221b16e1670a3413180c9484bf5aa71787905909fa82a6a2662e9ab9060200160405180910390a2505050565b6001600160a01b0382166000908152601160209081526040808320848452825291829020805483518184028101840190945280845260609392830182828015610ead57602002820191906000526020600020905b81546001600160a01b03168152600190910190602001808311610e8f575b505050505090505b92915050565b6004805460405163419a519360e01b815233928101929092526001600160a01b03169063419a519390602401602060405180830381865afa158015610f04573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f289190615413565b610f745760405162461bcd60e51b815260206004820152601a60248201527f212854726164657273506f7274616c7c7c54726967676572732900000000000060448201526064016109a1565b6109b5338484613620565b60116020528260005260406000206020528160005260406000208181548110610fa757600080fd5b6000918252602090912001546001600160a01b0316925083915050565b6004805460405163419a519360e01b815233928101929092526001600160a01b03169063419a519390602401602060405180830381865afa15801561100d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110319190615413565b61107d5760405162461bcd60e51b815260206004820152601a60248201527f212854726164657273506f7274616c7c7c54726967676572732900000000000060448201526064016109a1565b61108b6064620186a0615496565b8111156110d15760405162461bcd60e51b81526020600482015260146024820152734645455f4652414354494f4e5f544f4f5f42494760601b60448201526064016109a1565b6000838152600d60209081526040808320815160e08101909252805482526001810154919290919083019060ff16600581111561111057611110614f3b565b600581111561112157611121614f3b565b8152600191909101546001600160401b036101008204811660208085019190915263ffffffff600160481b8404811660408087019190915260ff600160681b86041615156060870152600160701b85049093166080860152600160b01b90930490921660a0909301929092526000878152600d90915220549091506111b85760405162461bcd60e51b81526004016109a1906154ea565b6000848152600c6020908152604091829020825160808101845281546001600160a01b038082168352600160a01b820461ffff1694830194909452600160b01b900463ffffffff1693810193909352600190810154909116606083015284600281111561122757611227614f3b565b036112895760018260200151600581111561124457611244614f3b565b146112845760405162461bcd60e51b815260206004820152601060248201526f2727aa2fa6a0a925a2aa2fa7a92222a960811b60448201526064016109a1565b611334565b600284600281111561129d5761129d614f3b565b036112f9576002826020015160058111156112ba576112ba614f3b565b146112845760405162461bcd60e51b815260206004820152600f60248201526e2727aa2fa624a6a4aa2fa7a92222a960891b60448201526064016109a1565b60405162461bcd60e51b815260206004820152601060248201526f57524f4e475f4f524445525f5459504560801b60448201526064016109a1565b61135885826000015183606001518460200151866000015187606001518933613731565b5050505050565b6004805460405163a5a2ed3760e01b815233928101929092526001600160a01b03169063a5a2ed3790602401602060405180830381865afa1580156113a8573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113cc9190615413565b6113e85760405162461bcd60e51b81526004016109a190615430565b6000848152600d60209081526040808320815160e08101909252805482526001810154919290919083019060ff16600581111561142757611427614f3b565b600581111561143857611438614f3b565b8152600191909101546001600160401b0361010082048116602084015263ffffffff600160481b83048116604085015260ff600160681b84041615156060850152600160701b83049091166080840152600160b01b9091041660a09091015280519091506114b85760405162461bcd60e51b81526004016109a1906154ea565b6000858152600e60209081526040808320815160808101835290546001600160401b038082168352600160401b8204811694830194909452600160801b8104841692820192909252600160c01b9091049091166060820152908080600288600381111561152757611527614f3b565b0361158a5784608001516115545783606001516001600160401b0316866001600160401b0316101561156f565b83606001516001600160401b0316866001600160401b031611155b925083606001516001600160401b031691506002905061166f565b600188600381111561159e5761159e614f3b565b036116015784608001516115cb5783604001516001600160401b0316866001600160401b031611156115e6565b83604001516001600160401b0316866001600160401b031610155b925083604001516001600160401b031691506001905061166f565b600388600381111561161557611615614f3b565b03611631575060019150506001600160401b038416600361166f565b60405162461bcd60e51b81526020600482015260136024820152722ba927a723afa624a6a4aa2faa2924a3a3a2a960691b60448201526064016109a1565b826116ac5760405162461bcd60e51b815260206004820152600d60248201526c2320a629a2afaa2924a3a3a2a960991b60448201526064016109a1565b60008060006116bc8c86866137fc565b9194509250905060038460048111156116d7576116d7614f3b565b036117445787608001516116f75780896001600160401b03161015611705565b80896001600160401b031611155b9550856117445760405162461bcd60e51b815260206004820152600d60248201526c2320a629a2afaa2924a3a3a2a960991b60448201526064016109a1565b8a600381111561175657611756614f3b565b604080516001600160401b038c16815260208101849052908101859052606081018490528d907fe67823c5c7b61d690bab4b46031d192b68f898b47bdf7daffbddff8e24aaf9bd9060800160405180910390a3505050505050505050505050565b6000546001600160a01b031633146117fe5760405162461bcd60e51b815260206004820152600a60248201526927a7262cafa0a226a4a760b11b60448201526064016109a1565b600082815260086020526040808220805460ff19168415159081179091559051909184917f996384f9c771a575699aadc5e543fb849613b350a1b29584a1ecca98d2cfc1709190a35050565b6118586064620186a0615496565b81565b6004805460405163731aa5f960e01b815233928101929092526001600160a01b03169063731aa5f990602401602060405180830381865afa1580156118a4573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906118c89190615413565b6118e45760405162461bcd60e51b81526004016109a190615514565b6000858152600d602052604090206002600182015460ff16600581111561190d5761190d614f3b565b1461192a5760405162461bcd60e51b81526004016109a19061553c565b6000868152600c6020908152604080832054600160a01b900461ffff168352600890915290205460ff16156119715760405162461bcd60e51b81526004016109a190615561565b6119b381600101600d9054906101000a900460ff16866001600160401b0316866001600160401b0316866001600160401b0316866001600160401b03166139fc565b60018101805468ffffffffffffffff001916610100426001600160401b0390811691909102919091179091556000878152600e6020908152604080832080546001600160801b0316600160801b8987169081026001600160c01b031691909117600160c01b898816908102919091178355600f85529483902080548c88166001600160801b03199091168117600160401b988d169889021782558451928352948201959095529182019290925260608101939093529188907f098a3c0f7acdf2c147440d705e162d395db886273731a238b250793cde346d859060800160405180910390a25050505050505050565b6004546001600160a01b03163314611ae85760405162461bcd60e51b815260206004820152600960248201526821526567697374727960b81b60448201526064016109a1565b6001600160a01b038381166000908152600a60205260409020541615611b505760405162461bcd60e51b815260206004820152601760248201527f41535345545f414c52454144595f535550504f5254454400000000000000000060448201526064016109a1565b6001600160a01b038084166000818152600a6020908152604080832080548689166001600160a01b03199182168117909255600b9093528184208054968816969093168617909255519092917fe34fb4592f12d191480ae66f1051ba82ee53c518b07f632579da8d40a74c77c891a4505050565b60408051606095861b6bffffffffffffffffffffffff199081166020808401919091529590961b909516603486015260f09290921b6001600160f01b031916604885015260e01b6001600160e01b031916604a8401528051602e818503018152604e9093019052815191012090565b6004805460405163a5a2ed3760e01b815233928101929092526001600160a01b03169063a5a2ed3790602401602060405180830381865afa158015611c7c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611ca09190615413565b611cbc5760405162461bcd60e51b81526004016109a190615430565b6000848152600d60209081526040808320600e8352818420600c845293829020825160808101845281546001600160a01b038082168352600160a01b820461ffff1696830196909652600160b01b900463ffffffff16938101939093526001015490921660608201528154919291611d465760405162461bcd60e51b81526004016109a1906154ea565b6003600184015460ff166005811115611d6157611d61614f3b565b14611d7e5760405162461bcd60e51b81526004016109a19061553c565b80516001600160a01b039081166000908152600b602052604081205490911690806001896002811115611db357611db3614f3b565b0361206e576000611e54846001600160a01b0316631cb92ed36040518163ffffffff1660e01b8152600401602060405180830381865afa158015611dfb573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611e1f91906153fa565b6001890154600160701b81046001600160401b031690600160481b810463ffffffff16908d90600160681b900460ff16613ade565b9050886001600160401b0316816001600160401b031614611ea95760405162461bcd60e51b815260206004820152600f60248201526e4241445f4649454c445f56414c554560881b60448201526064016109a1565b85546001600160401b03600160801b909104811690821603611ef75760405162461bcd60e51b8152602060048201526007602482015266053414d455f54560cc1b60448201526064016109a1565b8092508560000160189054906101000a90046001600160401b03169150428660000160006101000a8154816001600160401b0302191690836001600160401b03160217905550836001600160a01b0316633cdc20f88c876060015188602001518b600001548c60010160099054906101000a900463ffffffff168d600101600d9054906101000a900460ff168e600101600e9054906101000a90046001600160401b03168e60000160109054906101000a90046001600160401b03168c6040518a63ffffffff1660e01b8152600401612036999897969594939291909889526001600160a01b0397909716602089015261ffff959095166040880152606087019390935263ffffffff919091166080860152151560a08501526001600160401b0390811660c085015290811660e0840152166101008201526101200190565b600060405180830381600087803b15801561205057600080fd5b505af1158015612064573d6000803e3d6000fd5b50505050506121ff565b600289600281111561208257612082614f3b565b03610db8576000612123846001600160a01b0316631cb92ed36040518163ffffffff1660e01b8152600401602060405180830381865afa1580156120ca573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906120ee91906153fa565b6001890154600160701b81046001600160401b031690600160481b810463ffffffff16908d90600160681b900460ff16613bb0565b9050886001600160401b0316816001600160401b0316146121785760405162461bcd60e51b815260206004820152600f60248201526e4241445f4649454c445f56414c554560881b60448201526064016109a1565b85546001600160401b03600160c01b9091048116908216036121c65760405162461bcd60e51b815260206004820152600760248201526614d0535157d4d360ca1b60448201526064016109a1565b8554426001600160401b03908116600160401b026fffffffffffffffff0000000000000000198316178855600160801b90910416925090505b60018601546000906001600160401b03808a16600160701b909204161161223a576001870154600160701b90046001600160401b031661223c565b875b60018801546001600160401b0391821692506000918a8116600160701b909204161061227c576001880154600160701b90046001600160401b031661227e565b885b6001600160401b031690506122b988600101600d9054906101000a900460ff168383876001600160401b0316876001600160401b03166139fc565b86546001600160401b03858116600160801b0267ffffffffffffffff60801b19918616600160c01b02919091166001600160801b03909216919091171787558a600281111561230a5761230a614f3b565b866020015161ffff168d7f90bbb7e2b715065bd66ba75a34fca9b65694d5e75327dd0873a5e3e6883776678b600101600d9054906101000a900460ff168e60405161236a92919091151582526001600160401b0316602082015260400190565b60405180910390a4505050505050505050505050565b6004805460405163a5a2ed3760e01b815233928101929092526001600160a01b03169063a5a2ed3790602401602060405180830381865afa1580156123c9573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906123ed9190615413565b6124095760405162461bcd60e51b81526004016109a190615430565b6000838152600f6020908152604091829020825160808101845290546001600160401b038082168352600160401b82048116938301849052600160801b8204811694830194909452600160c01b9004909216606083015261247c5760405162461bcd60e51b81526004016109a1906154ea565b80516001600160401b03808416911611806124ac5750816001600160401b031681602001516001600160401b0316105b156124c2576124bd30856001613620565b61252b565b60008060006124dc87866001600160401b031660046137fc565b6040805182815260208101859052908101839052929550909350915087907f9912c2c8197504aea5a1b52b98eeae3f4aecabe190feebc292455c355d4297cb9060600160405180910390a25050505b50505050565b6004805460405163731aa5f960e01b815233928101929092526000916001600160a01b039091169063731aa5f990602401602060405180830381865afa15801561257f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906125a39190615413565b6125bf5760405162461bcd60e51b81526004016109a190615514565b6125e784604001516001600160a01b039081166000908152600a602052604090205416151590565b6126335760405162461bcd60e51b815260206004820152601e60248201527f4e4f4e5f535550504f525445445f534554544c454d454e545f4153534554000060448201526064016109a1565b60208085015161ffff1660009081526008909152604090205460ff161561266c5760405162461bcd60e51b81526004016109a190615561565b600185600281111561268057612680614f3b565b148061269d5750600285600281111561269b5761269b614f3b565b145b6126e25760405162461bcd60e51b8152602060048201526016602482015275554e535550504f525445445f4f524445525f5459504560501b60448201526064016109a1565b612727836000015184606001516001600160401b031685608001516001600160401b03168660a001516001600160401b03168760c001516001600160401b03166139fc565b6005546040808601516001600160a01b03908116600090815260126020908152838220895190931682529182528281208289015161ffff168252909152205463ffffffff16106127af5760405162461bcd60e51b815260206004820152601360248201527226a0ac2faa2920a222a9afa822a92fa820a4a960691b60448201526064016109a1565b600554846060015163ffffffff16111580156127d45750606084015163ffffffff1615155b6128105760405162461bcd60e51b815260206004820152600d60248201526c0929cac82989288be929c888ab609b1b60448201526064016109a1565b61282c8460400151856000015186602001518760600151613c6d565b9050612845846040015185600001518560200151613d86565b61285c846040015185600001518660200151613ecb565b6000818152600d602052604090208054156128a35760405162461bcd60e51b8152602060048201526007602482015266125117d554d15160ca1b60448201526064016109a1565b600180820180548651604088015163ffffffff908116600160481b026cffffffff00000000000000000019921515600160681b0260ff60681b19928a16600160b01b02929092166cffffffff0000000000000000ff60681b199094169390931717161790556020850151825560009087600281111561292457612924614f3b565b14612930576002612933565b60015b9050808260010160006101000a81548160ff0219169083600581111561295b5761295b614f3b565b0217905550428260010160016101000a8154816001600160401b0302191690836001600160401b031602179055506000600e600085815260200190815260200160002090508560a001518160000160106101000a8154816001600160401b0302191690836001600160401b031602179055508560c001518160000160186101000a8154816001600160401b0302191690836001600160401b031602179055506000600f6000868152602001908152602001600020905086606001518160000160006101000a8154816001600160401b0302191690836001600160401b0316021790555086608001518160000160086101000a8154816001600160401b0302191690836001600160401b031602179055508660e001518160000160106101000a8154816001600160401b0302191690836001600160401b031602179055508661010001518160000160186101000a8154816001600160401b0302191690836001600160401b03160217905550847fb21f813c247f0b33a494a91f6ce2775e44bbfa407565c53b88b89d844994ebb3848a8a8a604051612afc9493929190615586565b60405180910390a250505050949350505050565b6004805460405163731aa5f960e01b815233928101929092526001600160a01b03169063731aa5f990602401602060405180830381865afa158015612b59573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612b7d9190615413565b612b995760405162461bcd60e51b81526004016109a190615514565b6000838152600d602052604090208054612bc55760405162461bcd60e51b81526004016109a1906154ea565b6003600182015460ff166005811115612be057612be0614f3b565b14612bfd5760405162461bcd60e51b81526004016109a19061553c565b6001810180546001600160401b034281166101000268ffffffffffffffffff19909216919091176004179091556000858152600f60209081526040918290208054868516600160401b81026001600160801b03199092169589169586179190911782558351948552918401919091529186917fb7bb5d6820a30953d2858e9c448319c4cebbc70c347961e25f1adfff46566689910160405180910390a25050505050565b6004805460405163a5a2ed3760e01b815233928101929092526001600160a01b03169063a5a2ed3790602401602060405180830381865afa158015612cea573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612d0e9190615413565b612d2a5760405162461bcd60e51b81526004016109a190615430565b6109b58360018484612f82565b6040805160a081018252600080825260208083018290528284018290526060830182905260808301829052848252600d8152838220845160e0810190955280548552600181015493949293909183019060ff166005811115612d9b57612d9b614f3b565b6005811115612dac57612dac614f3b565b8152600191909101546001600160401b036101008204811660208085019190915263ffffffff600160481b8404811660408087019190915260ff600160681b8604161515606080880191909152600160701b86048516608080890191909152600160b01b909604831660a09788015287518a52878101519092168984015294860151831690880152938201511515868401526000968752600e909352942054600160801b90041692820192909252919050565b6001600160a01b038316600090815260096020526040812081846003811115612e8a57612e8a614f3b565b6003811115612e9b57612e9b614f3b565b8152602001908152602001600020549050600060096000866001600160a01b03166001600160a01b031681526020019081526020016000206000856003811115612ee757612ee7614f3b565b6003811115612ef857612ef8614f3b565b8152602081019190915260400160002055612f1d6001600160a01b0385168383613ffe565b816001600160a01b0316836003811115612f3957612f39614f3b565b856001600160a01b03167f0e80b333c403be7cb491b3ba7f29fe30014c594adbcbec04272291b2f72f6e6a84604051612f7491815260200190565b60405180910390a450505050565b6000848152600f60209081526040808320815160808101835290546001600160401b038082168352600160401b8204811683860152600160801b8204811683850152600160c01b909104166060820152878452600d8352818420825160e0810190935280548352600181015491949390919083019060ff16600581111561300b5761300b614f3b565b600581111561301c5761301c614f3b565b8152600191909101546001600160401b0361010082048116602084015263ffffffff600160481b83048116604085015260ff600160681b84041615156060850152600160701b83049091166080840152600160b01b9091041660a090910152805190915061309c5760405162461bcd60e51b81526004016109a1906154ea565b6000868152600c60209081526040808320815160808101835281546001600160a01b038082168352600160a01b820461ffff16838701819052600160b01b90920463ffffffff1683860152600190930154909216606082015290845260089092529091205460ff16156131215760405162461bcd60e51b81526004016109a190615561565b85600581111561313357613133614f3b565b8260200151600581111561314957613149614f3b565b146131665760405162461bcd60e51b81526004016109a19061553c565b600186600581111561317a5761317a614f3b565b036132235782516001600160401b03808716911611806131af5750846001600160401b031683602001516001600160401b0316105b1561321e576040516001600160401b038616815287907f82c058420d58fdfcaa301ef645c860145096603267b7b7ac02831312ac2ab4479060200160405180910390a261321687826000015183606001518460200151866000015187606001518a30613731565b50505061252b565b6132a9565b600286600581111561323757613237614f3b565b03610db85782516001600160401b0380871691161180159061326f5750846001600160401b031683602001516001600160401b031610155b61321e5760405162461bcd60e51b815260206004820152600b60248201526a50524943455f52414e474560a81b60448201526064016109a1565b80516001600160a01b039081166000908152600b60205260408120546060850151608086015191909316926132e3918b9185918b8a61405d565b9050816001600160a01b03166352713f678a85606001518660200151886000015189606001518a6080015188604001518f6040518963ffffffff1660e01b81526004016133899897969594939291909788526001600160a01b0396909616602088015261ffff949094166040870152606086019290925263ffffffff166080850152151560a08401526001600160401b0390811660c08401521660e08201526101000190565b60408051808303816000875af19250505080156133c3575060408051601f3d908101601f191682019092526133c09181019061566a565b60015b6134cc576133cf61568e565b806308c379a00361340857506133e36156aa565b806133ee575061340a565b8060405162461bcd60e51b81526004016109a19190615733565b505b3d808015613434576040519150601f19603f3d011682016040523d82523d6000602084013e613439565b606091505b50632eb752bf60e21b61344b82615766565b6001600160e01b0319160361027f57602481015160448201516040518c907ff2c847d05971bf83dd347e0732c1ef893111318fb2540f5fe6f9783cb8d6ae5b90613498908590859061579d565b60405180910390a26134c48c8760000151886060015189602001518b600001518c606001518f30613731565b505050613615565b60008b8152600d602090815260408083206001810180546001600160401b038f16600160701b0267ffffffffffffffff60701b1990911617905589516010909352922055865161351d9084906157bb565b8155600180820180546001600160401b0342166101000268ffffffffffffffffff199091161760031790558651613560918e919061355b86886157bb565b6143e0565b85516001600160a01b038082166000908152600a602052604090205461358892911684614494565b60008c8152600f60205260408082209190915584810151606086015191518e927fdd0164525ce1bb6897fbd7000a7d93633016a05f498d94903ca1fcc7911cdf8192613609928f9290899089906001600160401b03958616815293851660208501529190931660408301526060820192909252608081019190915260a00190565b60405180910390a25050505b505050505050505050565b6000828152600d602052604090205461364b5760405162461bcd60e51b81526004016109a1906154ea565b6000828152600f6020526040812055600181600181111561366e5761366e614f3b565b036112f95760046000838152600d602052604090206001015460ff16600581111561369b5761369b614f3b565b146136b85760405162461bcd60e51b81526004016109a19061553c565b6000828152600d6020908152604080832060010180546001600160401b0342166101000268ffffffffffffffffff19909116176003179055519182526001600160a01b0385169184917f2cb817145129b5c52a6dc17e0605285c54d9c258fbf0a21e78bfff4e00813333910160405180910390a3505050565b6000888152600d6020908152604080832083815560010180546001600160d01b0319169055600f90915281208190556137796137738663ffffffff87166144ae565b846144cd565b905061378889896003846143e0565b6137938888886144dd565b600061379f82876157bb565b90506137ac898983614494565b826001600160a01b03168a7f0732bc6c415e7a220efee5f866e1e91a1335745b97373898ffecfddbc708a3e7846040516137e891815260200190565b60405180910390a350505050505050505050565b6000838152600c60209081526040808320815160808101835281546001600160a01b038082168352600160a01b820461ffff1695830195909552600160b01b900463ffffffff1692810192909252600101549091166060820152819081908161386488612d37565b80519091506138855760405162461bcd60e51b81526004016109a1906154ea565b6000806000806138988c87878e8e61477c565b9350935093509350846000015183111561391a578451600090620186a06138bf82876157bb565b6138c99190615469565b6138d39190615496565b90506007548111156139185760405162461bcd60e51b815260206004820152600e60248201526d1253959053125117d41493d1925560921b60448201526064016109a1565b505b81975082985080965084600001518411156139775760405162461bcd60e51b815260206004820152601e60248201527f434c4f53455f4645455f4c41524745525f5448414e5f504f534954494f4e000060448201526064016109a1565b6139888c87600001516002876143e0565b61399f8660000151876060015188602001516144dd565b60008c8152600d6020908152604080832083815560010180546001600160d01b0319169055600e825280832083905560109091528120556060860151865186516139ed9291908c908861482e565b50505050505093509350939050565b82841115613a3e5760405162461bcd60e51b815260206004820152600f60248201526e4d494e5f4d41585f5245564552534560881b60448201526064016109a1565b811580613a57575084613a5357838210613a57565b8282115b613a8e5760405162461bcd60e51b8152602060048201526008602482015267057524f4e475f54560c41b60448201526064016109a1565b801580613aa7575084613aa357828111613aa7565b8381105b6113585760405162461bcd60e51b815260206004820152600860248201526715d493d391d7d4d360c21b60448201526064016109a1565b60006001600160401b0383161580613b0857508560070b613b028787868689614997565b60070b12155b15613ba4576000620186a0856001600160401b03166064896001600160401b0316896001600160401b0316613b3d9190615469565b613b479190615469565b613b519190615496565b613b5b9190615496565b905082613b9257856001600160401b0316816001600160401b03161115613b83576000613b9c565b613b8d81876157ce565b613b9c565b613b9c81876157f5565b915050613ba7565b50815b95945050505050565b60006001600160401b0383161580613be55750600654613bd290600019615815565b613bdf8787868689614997565b60070b13155b15613ba4576000620186a0856001600160401b03166064600654896001600160401b0316613c139190615469565b613c1d9190615469565b613c279190615496565b613c319190615496565b905082613c4257613b8d81876157f5565b856001600160401b0316816001600160401b03161115613c63576000613b9c565b613b9c81876157ce565b6000613c7b85858585611bc4565b6000818152600c60205260408120805492935091600160b01b900463ffffffff169003613d7d5780546001820180546001600160a01b038881166001600160a01b0319929092169190911790915563ffffffff8516600160b01b0263ffffffff60b01b1961ffff8816600160a01b026001600160b01b0319909416928a1692909217929092171617815560405182907f487ea6416487448c3ce943d750c8f67a275e4d8f26ac4093803bf63354b7006f90613d7490849081546001600160a01b03808216835260a082901c61ffff16602084015260b09190911c63ffffffff166040830152600190920154909116606082015260800190565b60405180910390a25b50949350505050565b80156109b5576040516370a0823160e01b81523060048201526000906001600160a01b038516906370a0823190602401602060405180830381865afa158015613dd3573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613df791906153fa565b9050613e0e6001600160a01b038516843085614a23565b6040516370a0823160e01b81523060048201526000906001600160a01b038616906370a0823190602401602060405180830381865afa158015613e55573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613e7991906153fa565b905082613e8683836157bb565b146113585760405162461bcd60e51b815260206004820152601560248201527411125117d393d517d49150d152559157d1561050d5605a1b60448201526064016109a1565b6001600160a01b038084166000908152601260209081526040808320938616835292815282822061ffff851683529052908120805463ffffffff1691613f1083615845565b82546101009290920a63ffffffff8181021990931691831602179091556001600160a01b038581166000908152601260209081526040808320938816835292815282822061ffff87168352905220541660010390506109b5576001600160a01b03808416600081815260116020908152604080832061ffff87168085529083528184208054600181018255818652848620018054978a166001600160a01b031990981688179055549484526012835281842095845294825280832094835293905291909120805463ffffffff9092166401000000000267ffffffff0000000019909216919091179055505050565b6040516001600160a01b038381166024830152604482018390526109b591859182169063a9059cbb906064015b604051602081830303815290604052915060e01b6020820180516001600160e01b038381831617835250505050614a5c565b6040805160808101825260008082526020820181905291810182905260608101919091526000866001600160a01b0316631cb92ed36040518163ffffffff1660e01b8152600401602060405180830381865afa1580156140c1573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906140e591906153fa565b6000898152600e6020908152604091829020825160808101845290546001600160401b038082168352600160401b8204811693830193909352600160801b81048316938201849052600160c01b9004909116606082015293509091501580614158575060408301516001600160401b0316155b6141a45760405162461bcd60e51b815260206004820152601760248201527f4d554c5449504c455f54505f444546494e4954494f4e5300000000000000000060448201526064016109a1565b60608201516001600160401b031615806141c9575060608301516001600160401b0316155b6142155760405162461bcd60e51b815260206004820152601760248201527f4d554c5449504c455f534c5f444546494e4954494f4e5300000000000000000060448201526064016109a1565b60408301516001600160401b03161561428f57600061423f8585604001518963ffffffff16614abf565b90508561427557846001600160401b0316816001600160401b03161061426657600061427f565b61427081866157ce565b61427f565b61427f81866157f5565b6001600160401b03166040840152505b60608301516001600160401b0316156143095760006142b98585606001518963ffffffff16614abf565b9050856142cf576142ca81866157f5565b6142f9565b846001600160401b0316816001600160401b0316106142ef5760006142f9565b6142f981866157ce565b6001600160401b03166060840152505b61432081858863ffffffff16856040015189613ade565b6001600160401b03908116604084015242168252606082015161434f908290869063ffffffff8a169089613bb0565b6001600160401b0390811660608401908152428216602080860191825260009b8c52600e905260409a8b90208551815492519c87015193518516600160c01b026001600160c01b03948616600160801b02949094166001600160801b039d8616600160401b026001600160801b03199094169190951617919091179a909a1691909117179097559695505050505050565b801561252b576001600160a01b0383166000908152600960205260408120829184600381111561441257614412614f3b565b600381111561442357614423614f3b565b815260200190815260200160002060008282546144409190615868565b90915550829050600381111561445857614458614f3b565b836001600160a01b0316857f52aab89a61b38ba21feecda2012e9c20aec817e5d709d0633c3fd693bb949cbb84604051612f7491815260200190565b80156109b5576109b56001600160a01b0384168383613ffe565b600060646144bc8385615469565b6144c69190615496565b9392505050565b6000620186a06144bc8385615469565b6001600160a01b038084166000908152601260209081526040808320938616835292815282822061ffff851683529052205463ffffffff16600103614713576001600160a01b038316600090815260116020908152604080832061ffff85168452909152902080546001101561469a576001600160a01b038481166000908152601260209081526040808320938716835292815282822061ffff8616835290522054815464010000000090910463ffffffff1690829061459f906001906157bb565b815481106145af576145af61587b565b6000918252602090912001546001600160a01b0316826145d0600184615891565b63ffffffff16815481106145e6576145e661587b565b600091825260208083209190910180546001600160a01b0319166001600160a01b03948516179055918716815260129091526040812082918461462a600185615891565b63ffffffff16815481106146405761464061587b565b60009182526020808320909101546001600160a01b03168352828101939093526040918201812061ffff881682529092529020805463ffffffff929092166401000000000267ffffffff0000000019909216919091179055505b6001600160a01b038085166000908152601260209081526040808320938716835292815282822061ffff86168352905220805467ffffffffffffffff1916905580548190806146eb576146eb6158ae565b600082815260209020810160001990810180546001600160a01b031916905501905550505050565b6001600160a01b038084166000908152601260209081526040808320938616835292815282822061ffff851683529052908120805463ffffffff1691614758836158c4565b91906101000a81548163ffffffff021916908363ffffffff16021790555050505050565b83516001600160a01b039081166000908152600b60209081526040808320546060890151928901519151630f1a62d160e31b8152939485948594859493909216926378d31688926147d8928e92908d908d908d906004016158e4565b6080604051808303816000875af11580156147f7573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061481b919061593b565b929c919b50995090975095505050505050565b6001600160a01b038085166000908152600a6020526040812054909116908385106148d75761485d83856157bb565b9050600061486b82876157bb565b6040516321d4911360e01b81526001600160a01b038a8116600483015260248201839052919250908416906321d4911390604401600060405180830381600087803b1580156148b957600080fd5b505af11580156148cd573d6000803e3d6000fd5b5050505050614983565b508360006148e582866157bb565b9050838111156149085761490387846148fe87856157bb565b614494565b614981565b6001600160a01b0383166321d491133061492284886157bb565b6040516001600160e01b031960e085901b1681526001600160a01b0390921660048301526024820152604401600060405180830381600087803b15801561496857600080fd5b505af115801561497c573d6000803e3d6000fd5b505050505b505b61498e868883614494565b50505050505050565b60008581846149af576149aa8688615971565b6149b9565b6149b98787615971565b905060008460070b620186a08360070b6149d39190615815565b6149dd9190615815565b90506000600789900b6149f16064846159a0565b6149fb91906159a0565b90508094508360070b8560070b13614a135784614a15565b835b9a9950505050505050505050565b6040516001600160a01b03848116602483015283811660448301526064820183905261252b9186918216906323b872dd9060840161402b565b6000614a716001600160a01b03841683614b0e565b90508051600014158015614a96575080806020019051810190614a949190615413565b155b156109b557604051635274afe760e01b81526001600160a01b03841660048201526024016109a1565b600080826001600160401b0316620186a06064866001600160401b0316886001600160401b0316614af09190615469565b614afa9190615469565b614b049190615496565b613ba79190615496565b60606144c68383600084600080856001600160a01b03168486604051614b3491906154ce565b60006040518083038185875af1925050503d8060008114614b71576040519150601f19603f3d011682016040523d82523d6000602084013e614b76565b606091505b5091509150614b86868383614b90565b9695505050505050565b606082614ba557614ba082614bec565b6144c6565b8151158015614bbc57506001600160a01b0384163b155b15614be557604051639996b31560e01b81526001600160a01b03851660048201526024016109a1565b50806144c6565b805115614bfc5780518082602001fd5b604051630a12f52160e11b815260040160405180910390fd5b6001600160a01b0381168114610b0557600080fd5b600060208284031215614c3c57600080fd5b81356144c681614c15565b600060208284031215614c5957600080fd5b5035919050565b60048110610b0557600080fd5b600080600060608486031215614c8257600080fd5b8335614c8d81614c15565b92506020840135614c9d81614c60565b91506040840135614cad81614c15565b809150509250925092565b80356001600160401b0381168114614ccf57600080fd5b919050565b600080600060608486031215614ce957600080fd5b83359250614cf960208501614cb8565b9150604084013590509250925092565b60008060408385031215614d1c57600080fd5b8235614d2781614c60565b946020939093013593505050565b60008060408385031215614d4857600080fd5b8235614d5381614c15565b91506020830135614d6381614c60565b809150509250929050565b60008060408385031215614d8157600080fd5b8235614d2781614c15565b6020808252825182820181905260009190848201906040850190845b81811015614dcd5783516001600160a01b031683529284019291840191600101614da8565b50909695505050505050565b600080600060608486031215614dee57600080fd5b83359250602084013560028110614e0457600080fd5b929592945050506040919091013590565b600080600060608486031215614e2a57600080fd5b8335614e3581614c15565b95602085013595506040909401359392505050565b60038110610b0557600080fd5b600080600060608486031215614e6c57600080fd5b833592506020840135614e0481614e4a565b60008060008060808587031215614e9457600080fd5b843593506020850135614ea681614c60565b9250614eb460408601614cb8565b9150614ec260608601614cb8565b905092959194509250565b8015158114610b0557600080fd5b8035614ccf81614ecd565b60008060408385031215614ef957600080fd5b823591506020830135614d6381614ecd565b600080600060608486031215614f2057600080fd5b8335614f2b81614c15565b92506020840135614e0481614c15565b634e487b7160e01b600052602160045260246000fd5b60068110614f6157614f61614f3b565b9052565b87815260e08101614f796020830189614f51565b6001600160401b03968716604083015263ffffffff958616606083015293151560808201529190941660a08201529290911660c09092019190915292915050565b60a08101614fc88288614f51565b6001600160401b0395909516602082015261ffff939093166040840152901515606083015263ffffffff16608090910152919050565b600080600080600060a0868803121561501657600080fd5b8535945061502660208701614cb8565b935061503460408701614cb8565b925061504260608701614cb8565b915061505060808701614cb8565b90509295509295909350565b60008060006060848603121561507157600080fd5b833561507c81614c15565b92506020840135614c9d81614c15565b803561ffff81168114614ccf57600080fd5b803563ffffffff81168114614ccf57600080fd5b600080600080608085870312156150c857600080fd5b84356150d381614c15565b935060208501356150e381614c15565b92506150f16040860161508c565b9150614ec26060860161509e565b6000806000806080858703121561511557600080fd5b843593506020850135614ea681614e4a565b60008060006060848603121561513c57600080fd5b8335925061514c60208501614cb8565b915061515a60408501614cb8565b90509250925092565b601f8201601f191681016001600160401b038111828210171561519657634e487b7160e01b600052604160045260246000fd5b6040525050565b60405161012081016001600160401b03811182821017156151ce57634e487b7160e01b600052604160045260246000fd5b60405290565b600061012082840312156151e757600080fd5b6151ef61519d565b90506151fa82614edb565b8152602082013560208201526152126040830161509e565b604082015261522360608301614cb8565b606082015261523460808301614cb8565b608082015261524560a08301614cb8565b60a082015261525660c08301614cb8565b60c082015261526760e08301614cb8565b60e082015261010061527a818401614cb8565b9082015292915050565b6000806000808486036101e081121561529c57600080fd5b85356152a781614e4a565b94506080601f19820112156152bb57600080fd5b50604051608081018181106001600160401b03821117156152ec57634e487b7160e01b600052604160045260246000fd5b60405260208601356152fd81614c15565b815261530b6040870161508c565b6020820152606086013561531e81614c15565b604082015261532f6080870161509e565b606082015292506153438660a087016151d4565b9150614ec26101c0860161509e565b8051825263ffffffff602082015116602083015260408101511515604083015260608101516001600160401b03808216606085015280608084015116608085015250505050565b60a08101610eb58284615352565b606081016153b58286614f51565b6001600160401b039390931660208201526001600160a01b0391909116604090910152919050565b6000602082840312156153ef57600080fd5b81516144c681614c15565b60006020828403121561540c57600080fd5b5051919050565b60006020828403121561542557600080fd5b81516144c681614ecd565b60208082526009908201526821547269676765727360b81b604082015260600190565b634e487b7160e01b600052601160045260246000fd5b8082028115828204841417610eb557610eb5615453565b634e487b7160e01b600052601260045260246000fd5b6000826154a5576154a5615480565b500490565b60005b838110156154c55781810151838201526020016154ad565b50506000910152565b600082516154e08184602087016154aa565b9190910192915050565b60208082526010908201526f2727afa9aaa1a42fa827a9a4aa24a7a760811b604082015260600190565b6020808252600e908201526d08551c9859195c9cd41bdc9d185b60921b604082015260600190565b6020808252600b908201526a57524f4e475f504841534560a81b604082015260600190565b6020808252600b908201526a1410525497d4105554d15160aa1b604082015260600190565b6101e081016155958287614f51565b60018060a01b0380865116602084015261ffff602087015116604084015280604087015116606084015250606085015163ffffffff80821660808501528551151560a0850152602086015160c08501528060408701511660e08501525050606084015161010061560f818501836001600160401b03169052565b60808601516001600160401b0390811661012086015260a0870151811661014086015260c0870151811661016086015260e0870151811661018086015290860151166101a08401525063ffffffff83166101c0830152613ba7565b6000806040838503121561567d57600080fd5b505080516020909101519092909150565b600060033d11156156a75760046000803e5060005160e01c5b90565b600060443d10156156b85790565b6040516003193d81016004833e81513d6001600160401b0381602484011181841117156156e757505050505090565b82850191508151818111156156ff5750505050505090565b843d87010160208285010111156157195750505050505090565b61572860208286010187615163565b509095945050505050565b60208152600082518060208401526157528160408501602087016154aa565b601f01601f19169190910160400192915050565b805160208201516001600160e01b031980821692919060048310156157955780818460040360031b1b83161693505b505050919050565b60408101601284106157b1576157b1614f3b565b9281526020015290565b81810381811115610eb557610eb5615453565b6001600160401b038281168282160390808211156157ee576157ee615453565b5092915050565b6001600160401b038181168382160190808211156157ee576157ee615453565b80820260008212600160ff1b8414161561583157615831615453565b8181058314821517610eb557610eb5615453565b600063ffffffff80831681810361585e5761585e615453565b6001019392505050565b80820180821115610eb557610eb5615453565b634e487b7160e01b600052603260045260246000fd5b63ffffffff8281168282160390808211156157ee576157ee615453565b634e487b7160e01b600052603160045260246000fd5b600063ffffffff8216806158da576158da615453565b6000190192915050565b8681526001600160a01b038616602082015261ffff8516604082015261014081016159126060830186615352565b836101008301526005831061592957615929614f3b565b82610120830152979650505050505050565b6000806000806080858703121561595157600080fd5b505082516020840151604085015160609095015191969095509092509050565b600782810b9082900b03677fffffffffffffff198112677fffffffffffffff82131715610eb557610eb5615453565b6000826159af576159af615480565b600160ff1b8214600019841416156159c9576159c9615453565b50059056fea26469706673582212207775227055278e354059b3bb23ff1c42ec0c2a73cf90b212cc85ce01870261e164736f6c63430008180033";
1746
+ const isSuperArgs = (xs) => xs.length > 1;
1747
+ class TradingFloorV1__factory extends ethers_1.ContractFactory {
1748
+ constructor(...args) {
1749
+ if (isSuperArgs(args)) {
1750
+ super(...args);
1751
+ }
1752
+ else {
1753
+ super(_abi, _bytecode, args[0]);
1754
+ }
1755
+ }
1756
+ getDeployTransaction(overrides) {
1757
+ return super.getDeployTransaction(overrides || {});
1758
+ }
1759
+ deploy(overrides) {
1760
+ return super.deploy(overrides || {});
1761
+ }
1762
+ connect(runner) {
1763
+ return super.connect(runner);
1764
+ }
1765
+ static createInterface() {
1766
+ return new ethers_1.Interface(_abi);
1767
+ }
1768
+ static connect(address, runner) {
1769
+ return new ethers_1.Contract(address, _abi, runner);
1770
+ }
1771
+ }
1772
+ exports.TradingFloorV1__factory = TradingFloorV1__factory;
1773
+ TradingFloorV1__factory.bytecode = _bytecode;
1774
+ TradingFloorV1__factory.abi = _abi;