lynx-client 0.0.1-beta.1

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 (188) hide show
  1. package/README.md +4 -0
  2. package/dist/cjs/addresses/lensAddresses.js +29 -0
  3. package/dist/cjs/common/constants/contractEnums.js +138 -0
  4. package/dist/cjs/common/constants/feeIds.js +27 -0
  5. package/dist/cjs/common/constants/generalConstants.js +4 -0
  6. package/dist/cjs/common/constants/groupIds.js +27 -0
  7. package/dist/cjs/common/constants/pairIds.js +91 -0
  8. package/dist/cjs/common/constants/scales.js +24 -0
  9. package/dist/cjs/common/contractsIntegration/deployedContractsConnector.js +16 -0
  10. package/dist/cjs/common/priceFeeds/pyth/pythFeedConstants.js +63 -0
  11. package/dist/cjs/common/priceFeeds/pyth/pythFeedFunctions.js +11 -0
  12. package/dist/cjs/common/typechain/common.js +2 -0
  13. package/dist/cjs/common/typechain/contracts/Peripheral/Lens/IntentsVerifierLens.js +2 -0
  14. package/dist/cjs/common/typechain/contracts/Peripheral/Lens/LexLens.js +2 -0
  15. package/dist/cjs/common/typechain/contracts/Peripheral/Lens/TradingFloorLens.js +2 -0
  16. package/dist/cjs/common/typechain/contracts/Peripheral/Lens/TriggersAndPortalLens.js +2 -0
  17. package/dist/cjs/common/typechain/factories/contracts/Peripheral/Lens/IntentsVerifierLens__factory.js +201 -0
  18. package/dist/cjs/common/typechain/factories/contracts/Peripheral/Lens/LexLens__factory.js +2269 -0
  19. package/dist/cjs/common/typechain/factories/contracts/Peripheral/Lens/TradingFloorLens__factory.js +1339 -0
  20. package/dist/cjs/common/typechain/factories/contracts/Peripheral/Lens/TriggersAndPortalLens__factory.js +253 -0
  21. package/dist/cjs/index.js +46 -0
  22. package/dist/cjs/utils/addresses.js +14 -0
  23. package/dist/cjs/utils/bignumbers.js +35 -0
  24. package/dist/cjs/utils/chainTypes.js +20 -0
  25. package/dist/cjs/utils/chipsCalculationsUtils.js +12 -0
  26. package/dist/cjs/utils/cloning.js +17 -0
  27. package/dist/cjs/utils/enumTypes.js +2 -0
  28. package/dist/cjs/utils/ethersTypes.js +51 -0
  29. package/dist/cjs/utils/hashes.js +8 -0
  30. package/dist/cjs/utils/leverageCalculationsUtils.js +25 -0
  31. package/dist/cjs/utils/lynxScalesUtils.js +20 -0
  32. package/dist/cjs/utils/types.js +3 -0
  33. package/dist/esm/addresses/lensAddresses.d.ts +27 -0
  34. package/dist/esm/addresses/lensAddresses.d.ts.map +1 -0
  35. package/dist/esm/addresses/lensAddresses.js +29 -0
  36. package/dist/esm/common/constants/contractEnums.d.ts +148 -0
  37. package/dist/esm/common/constants/contractEnums.d.ts.map +1 -0
  38. package/dist/esm/common/constants/contractEnums.js +138 -0
  39. package/dist/esm/common/constants/feeIds.d.ts +13 -0
  40. package/dist/esm/common/constants/feeIds.d.ts.map +1 -0
  41. package/dist/esm/common/constants/feeIds.js +27 -0
  42. package/dist/esm/common/constants/generalConstants.d.ts +2 -0
  43. package/dist/esm/common/constants/generalConstants.d.ts.map +1 -0
  44. package/dist/esm/common/constants/generalConstants.js +4 -0
  45. package/dist/esm/common/constants/groupIds.d.ts +15 -0
  46. package/dist/esm/common/constants/groupIds.d.ts.map +1 -0
  47. package/dist/esm/common/constants/groupIds.js +27 -0
  48. package/dist/esm/common/constants/pairIds.d.ts +40 -0
  49. package/dist/esm/common/constants/pairIds.d.ts.map +1 -0
  50. package/dist/esm/common/constants/pairIds.js +91 -0
  51. package/dist/esm/common/constants/scales.d.ts +16 -0
  52. package/dist/esm/common/constants/scales.d.ts.map +1 -0
  53. package/dist/esm/common/constants/scales.js +24 -0
  54. package/dist/esm/common/contractsIntegration/deployedContractsConnector.d.ts +7 -0
  55. package/dist/esm/common/contractsIntegration/deployedContractsConnector.d.ts.map +1 -0
  56. package/dist/esm/common/contractsIntegration/deployedContractsConnector.js +16 -0
  57. package/dist/esm/common/priceFeeds/pyth/pythFeedConstants.d.ts +5 -0
  58. package/dist/esm/common/priceFeeds/pyth/pythFeedConstants.d.ts.map +1 -0
  59. package/dist/esm/common/priceFeeds/pyth/pythFeedConstants.js +63 -0
  60. package/dist/esm/common/priceFeeds/pyth/pythFeedFunctions.d.ts +7 -0
  61. package/dist/esm/common/priceFeeds/pyth/pythFeedFunctions.d.ts.map +1 -0
  62. package/dist/esm/common/priceFeeds/pyth/pythFeedFunctions.js +11 -0
  63. package/dist/esm/common/typechain/common.d.ts +51 -0
  64. package/dist/esm/common/typechain/common.d.ts.map +1 -0
  65. package/dist/esm/common/typechain/common.js +2 -0
  66. package/dist/esm/common/typechain/contracts/Peripheral/Lens/IntentsVerifierLens.d.ts +102 -0
  67. package/dist/esm/common/typechain/contracts/Peripheral/Lens/IntentsVerifierLens.d.ts.map +1 -0
  68. package/dist/esm/common/typechain/contracts/Peripheral/Lens/IntentsVerifierLens.js +2 -0
  69. package/dist/esm/common/typechain/contracts/Peripheral/Lens/LexLens.d.ts +740 -0
  70. package/dist/esm/common/typechain/contracts/Peripheral/Lens/LexLens.d.ts.map +1 -0
  71. package/dist/esm/common/typechain/contracts/Peripheral/Lens/LexLens.js +2 -0
  72. package/dist/esm/common/typechain/contracts/Peripheral/Lens/TradingFloorLens.d.ts +390 -0
  73. package/dist/esm/common/typechain/contracts/Peripheral/Lens/TradingFloorLens.d.ts.map +1 -0
  74. package/dist/esm/common/typechain/contracts/Peripheral/Lens/TradingFloorLens.js +2 -0
  75. package/dist/esm/common/typechain/contracts/Peripheral/Lens/TriggersAndPortalLens.d.ts +152 -0
  76. package/dist/esm/common/typechain/contracts/Peripheral/Lens/TriggersAndPortalLens.d.ts.map +1 -0
  77. package/dist/esm/common/typechain/contracts/Peripheral/Lens/TriggersAndPortalLens.js +2 -0
  78. package/dist/esm/common/typechain/factories/contracts/Peripheral/Lens/IntentsVerifierLens__factory.d.ts +146 -0
  79. package/dist/esm/common/typechain/factories/contracts/Peripheral/Lens/IntentsVerifierLens__factory.d.ts.map +1 -0
  80. package/dist/esm/common/typechain/factories/contracts/Peripheral/Lens/IntentsVerifierLens__factory.js +201 -0
  81. package/dist/esm/common/typechain/factories/contracts/Peripheral/Lens/LexLens__factory.d.ts +1747 -0
  82. package/dist/esm/common/typechain/factories/contracts/Peripheral/Lens/LexLens__factory.d.ts.map +1 -0
  83. package/dist/esm/common/typechain/factories/contracts/Peripheral/Lens/LexLens__factory.js +2269 -0
  84. package/dist/esm/common/typechain/factories/contracts/Peripheral/Lens/TradingFloorLens__factory.d.ts +1042 -0
  85. package/dist/esm/common/typechain/factories/contracts/Peripheral/Lens/TradingFloorLens__factory.d.ts.map +1 -0
  86. package/dist/esm/common/typechain/factories/contracts/Peripheral/Lens/TradingFloorLens__factory.js +1339 -0
  87. package/dist/esm/common/typechain/factories/contracts/Peripheral/Lens/TriggersAndPortalLens__factory.d.ts +187 -0
  88. package/dist/esm/common/typechain/factories/contracts/Peripheral/Lens/TriggersAndPortalLens__factory.d.ts.map +1 -0
  89. package/dist/esm/common/typechain/factories/contracts/Peripheral/Lens/TriggersAndPortalLens__factory.js +253 -0
  90. package/dist/esm/index.d.ts +30 -0
  91. package/dist/esm/index.d.ts.map +1 -0
  92. package/dist/esm/index.js +46 -0
  93. package/dist/esm/utils/addresses.d.ts +4 -0
  94. package/dist/esm/utils/addresses.d.ts.map +1 -0
  95. package/dist/esm/utils/addresses.js +14 -0
  96. package/dist/esm/utils/bignumbers.d.ts +6 -0
  97. package/dist/esm/utils/bignumbers.d.ts.map +1 -0
  98. package/dist/esm/utils/bignumbers.js +35 -0
  99. package/dist/esm/utils/chainTypes.d.ts +137 -0
  100. package/dist/esm/utils/chainTypes.d.ts.map +1 -0
  101. package/dist/esm/utils/chainTypes.js +20 -0
  102. package/dist/esm/utils/chipsCalculationsUtils.d.ts +3 -0
  103. package/dist/esm/utils/chipsCalculationsUtils.d.ts.map +1 -0
  104. package/dist/esm/utils/chipsCalculationsUtils.js +12 -0
  105. package/dist/esm/utils/cloning.d.ts +6 -0
  106. package/dist/esm/utils/cloning.d.ts.map +1 -0
  107. package/dist/esm/utils/cloning.js +17 -0
  108. package/dist/esm/utils/enumTypes.d.ts +2 -0
  109. package/dist/esm/utils/enumTypes.d.ts.map +1 -0
  110. package/dist/esm/utils/enumTypes.js +2 -0
  111. package/dist/esm/utils/ethersTypes.d.ts +14 -0
  112. package/dist/esm/utils/ethersTypes.d.ts.map +1 -0
  113. package/dist/esm/utils/ethersTypes.js +51 -0
  114. package/dist/esm/utils/hashes.d.ts +2 -0
  115. package/dist/esm/utils/hashes.d.ts.map +1 -0
  116. package/dist/esm/utils/hashes.js +8 -0
  117. package/dist/esm/utils/leverageCalculationsUtils.d.ts +6 -0
  118. package/dist/esm/utils/leverageCalculationsUtils.d.ts.map +1 -0
  119. package/dist/esm/utils/leverageCalculationsUtils.js +25 -0
  120. package/dist/esm/utils/lynxScalesUtils.d.ts +5 -0
  121. package/dist/esm/utils/lynxScalesUtils.d.ts.map +1 -0
  122. package/dist/esm/utils/lynxScalesUtils.js +20 -0
  123. package/dist/esm/utils/types.d.ts +7 -0
  124. package/dist/esm/utils/types.d.ts.map +1 -0
  125. package/dist/esm/utils/types.js +3 -0
  126. package/dist/types/addresses/lensAddresses.d.ts +27 -0
  127. package/dist/types/addresses/lensAddresses.d.ts.map +1 -0
  128. package/dist/types/common/constants/contractEnums.d.ts +148 -0
  129. package/dist/types/common/constants/contractEnums.d.ts.map +1 -0
  130. package/dist/types/common/constants/feeIds.d.ts +13 -0
  131. package/dist/types/common/constants/feeIds.d.ts.map +1 -0
  132. package/dist/types/common/constants/generalConstants.d.ts +2 -0
  133. package/dist/types/common/constants/generalConstants.d.ts.map +1 -0
  134. package/dist/types/common/constants/groupIds.d.ts +15 -0
  135. package/dist/types/common/constants/groupIds.d.ts.map +1 -0
  136. package/dist/types/common/constants/pairIds.d.ts +40 -0
  137. package/dist/types/common/constants/pairIds.d.ts.map +1 -0
  138. package/dist/types/common/constants/scales.d.ts +16 -0
  139. package/dist/types/common/constants/scales.d.ts.map +1 -0
  140. package/dist/types/common/contractsIntegration/deployedContractsConnector.d.ts +7 -0
  141. package/dist/types/common/contractsIntegration/deployedContractsConnector.d.ts.map +1 -0
  142. package/dist/types/common/priceFeeds/pyth/pythFeedConstants.d.ts +5 -0
  143. package/dist/types/common/priceFeeds/pyth/pythFeedConstants.d.ts.map +1 -0
  144. package/dist/types/common/priceFeeds/pyth/pythFeedFunctions.d.ts +7 -0
  145. package/dist/types/common/priceFeeds/pyth/pythFeedFunctions.d.ts.map +1 -0
  146. package/dist/types/common/typechain/common.d.ts +51 -0
  147. package/dist/types/common/typechain/common.d.ts.map +1 -0
  148. package/dist/types/common/typechain/contracts/Peripheral/Lens/IntentsVerifierLens.d.ts +102 -0
  149. package/dist/types/common/typechain/contracts/Peripheral/Lens/IntentsVerifierLens.d.ts.map +1 -0
  150. package/dist/types/common/typechain/contracts/Peripheral/Lens/LexLens.d.ts +740 -0
  151. package/dist/types/common/typechain/contracts/Peripheral/Lens/LexLens.d.ts.map +1 -0
  152. package/dist/types/common/typechain/contracts/Peripheral/Lens/TradingFloorLens.d.ts +390 -0
  153. package/dist/types/common/typechain/contracts/Peripheral/Lens/TradingFloorLens.d.ts.map +1 -0
  154. package/dist/types/common/typechain/contracts/Peripheral/Lens/TriggersAndPortalLens.d.ts +152 -0
  155. package/dist/types/common/typechain/contracts/Peripheral/Lens/TriggersAndPortalLens.d.ts.map +1 -0
  156. package/dist/types/common/typechain/factories/contracts/Peripheral/Lens/IntentsVerifierLens__factory.d.ts +146 -0
  157. package/dist/types/common/typechain/factories/contracts/Peripheral/Lens/IntentsVerifierLens__factory.d.ts.map +1 -0
  158. package/dist/types/common/typechain/factories/contracts/Peripheral/Lens/LexLens__factory.d.ts +1747 -0
  159. package/dist/types/common/typechain/factories/contracts/Peripheral/Lens/LexLens__factory.d.ts.map +1 -0
  160. package/dist/types/common/typechain/factories/contracts/Peripheral/Lens/TradingFloorLens__factory.d.ts +1042 -0
  161. package/dist/types/common/typechain/factories/contracts/Peripheral/Lens/TradingFloorLens__factory.d.ts.map +1 -0
  162. package/dist/types/common/typechain/factories/contracts/Peripheral/Lens/TriggersAndPortalLens__factory.d.ts +187 -0
  163. package/dist/types/common/typechain/factories/contracts/Peripheral/Lens/TriggersAndPortalLens__factory.d.ts.map +1 -0
  164. package/dist/types/index.d.ts +30 -0
  165. package/dist/types/index.d.ts.map +1 -0
  166. package/dist/types/utils/addresses.d.ts +4 -0
  167. package/dist/types/utils/addresses.d.ts.map +1 -0
  168. package/dist/types/utils/bignumbers.d.ts +6 -0
  169. package/dist/types/utils/bignumbers.d.ts.map +1 -0
  170. package/dist/types/utils/chainTypes.d.ts +137 -0
  171. package/dist/types/utils/chainTypes.d.ts.map +1 -0
  172. package/dist/types/utils/chipsCalculationsUtils.d.ts +3 -0
  173. package/dist/types/utils/chipsCalculationsUtils.d.ts.map +1 -0
  174. package/dist/types/utils/cloning.d.ts +6 -0
  175. package/dist/types/utils/cloning.d.ts.map +1 -0
  176. package/dist/types/utils/enumTypes.d.ts +2 -0
  177. package/dist/types/utils/enumTypes.d.ts.map +1 -0
  178. package/dist/types/utils/ethersTypes.d.ts +14 -0
  179. package/dist/types/utils/ethersTypes.d.ts.map +1 -0
  180. package/dist/types/utils/hashes.d.ts +2 -0
  181. package/dist/types/utils/hashes.d.ts.map +1 -0
  182. package/dist/types/utils/leverageCalculationsUtils.d.ts +6 -0
  183. package/dist/types/utils/leverageCalculationsUtils.d.ts.map +1 -0
  184. package/dist/types/utils/lynxScalesUtils.d.ts +5 -0
  185. package/dist/types/utils/lynxScalesUtils.d.ts.map +1 -0
  186. package/dist/types/utils/types.d.ts +7 -0
  187. package/dist/types/utils/types.d.ts.map +1 -0
  188. package/package.json +49 -0
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TradingFloorLens__factory.d.ts","sourceRoot":"","sources":["../../../../../../../../common/typechain/factories/contracts/Peripheral/Lens/TradingFloorLens__factory.ts"],"names":[],"mappings":"AAGA,OAAO,EAEL,eAAe,EACf,2BAA2B,EAE5B,MAAM,QAAQ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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAAQ;IAC3B,MAAM,CAAC,eAAe,IAAI,yBAAyB;IAGnD,MAAM,CAAC,OAAO,CACZ,OAAO,EAAE,MAAM,EACf,MAAM,CAAC,EAAE,cAAc,GAAG,IAAI,GAC7B,gBAAgB;CAGpB"}
@@ -0,0 +1,187 @@
1
+ import { ContractFactory, ContractTransactionResponse } from "ethers";
2
+ import type { Signer, ContractDeployTransaction, ContractRunner } from "ethers";
3
+ import type { NonPayableOverrides } from "../../../../common";
4
+ import type { TriggersAndPortalLens, TriggersAndPortalLensInterface } from "../../../../contracts/Peripheral/Lens/TriggersAndPortalLens";
5
+ type TriggersAndPortalLensConstructorParams = [signer?: Signer] | ConstructorParameters<typeof ContractFactory>;
6
+ export declare class TriggersAndPortalLens__factory extends ContractFactory {
7
+ constructor(...args: TriggersAndPortalLensConstructorParams);
8
+ getDeployTransaction(overrides?: NonPayableOverrides & {
9
+ from?: string;
10
+ }): Promise<ContractDeployTransaction>;
11
+ deploy(overrides?: NonPayableOverrides & {
12
+ from?: string;
13
+ }): Promise<TriggersAndPortalLens & {
14
+ deploymentTransaction(): ContractTransactionResponse;
15
+ }>;
16
+ connect(runner: ContractRunner | null): TriggersAndPortalLens__factory;
17
+ static readonly bytecode = "0x608060405234801561001057600080fd5b506110b9806100206000396000f3fe608060405234801561001057600080fd5b506004361061004c5760003560e01c8063098eb3171461005157806312e5f7a81461007a578063549d65731461009a578063984d9f2314610118575b600080fd5b61006461005f366004610c63565b610138565b6040516100719190610cc5565b60405180910390f35b61008d610088366004610d9b565b61014f565b6040516100719190610dd0565b6100ad6100a8366004610c63565b610188565b604051610071919060006101008201905061ffff80845116835280602085015116602084015250604083015115156040830152606083015160608301526080830151608083015260a083015160a083015260c083015160c083015260e083015160e083015292915050565b61012b610126366004610df5565b610199565b6040516100719190610e7d565b610140610ba6565b61014982610278565b92915050565b6101776040518060600160405280600061ffff16815260200160008152602001600081525090565b61018183836106ec565b9392505050565b610190610bfc565b61014982610811565b60608167ffffffffffffffff8111156101b4576101b4610ee3565b60405190808252806020026020018201604052801561020d57816020015b6101fa6040518060600160405280600061ffff16815260200160008152602001600081525090565b8152602001906001900390816101d25790505b50905060005b828110156102705761024b8585858481811061023157610231610ef9565b90506020020160208101906102469190610f0f565b6106ec565b82828151811061025d5761025d610ef9565b6020908102919091010152600101610213565b509392505050565b610280610ba6565b6000829050806001600160a01b03166345b617136040518163ffffffff1660e01b8152600401602060405180830381865afa1580156102c3573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906102e79190610f2a565b61ffff16825260408051637f31c2db60e01b815290516001600160a01b03831691637f31c2db9160048083019260209291908290030181865afa158015610332573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906103569190610f2a565b61ffff166020808401919091526040805163104302df60e21b815290516001600160a01b0384169263410c0b7c92600480820193918290030181865afa1580156103a4573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906103c89190610f2a565b826040019061ffff16908161ffff1681525050806001600160a01b031663a5b602086040518163ffffffff1660e01b8152600401602060405180830381865afa158015610419573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061043d9190610f2a565b61ffff16606083015260408051637f588b9160e01b815290516001600160a01b03831691637f588b919160048083019260209291908290030181865afa15801561048b573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104af9190610f2a565b61ffff166080830152604080516301c9281f60e51b815290516001600160a01b0383169163392503e09160048083019260209291908290030181865afa1580156104fd573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105219190610f2a565b61ffff1660a0830152604080516310b4cc1360e01b815290516001600160a01b038316916310b4cc139160048083019260209291908290030181865afa15801561056f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105939190610f2a565b8260c0018181525050806001600160a01b03166322ede93c6040518163ffffffff1660e01b8152600401602060405180830381865afa1580156105da573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105fe9190610f2a565b8260e0018181525050806001600160a01b031663814052056040518163ffffffff1660e01b8152600401602060405180830381865afa158015610645573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106699190610f2a565b61ffff1661010083015260408051634363f8cd60e11b815290516001600160a01b038316916386c7f19a9160048083019260009291908290030181865afa1580156106b8573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526106e09190810190610f4e565b61012083015250919050565b6107146040518060600160405280600061ffff16815260200160008152602001600081525090565b61ffff8216808252604051639f918f4560e01b8152600481019190915283906001600160a01b03821690639f918f4590602401602060405180830381865afa158015610764573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107889190611013565b63ffffffff166020830152604051632e966ff560e11b815261ffff841660048201526001600160a01b03821690635d2cdfea90602401602060405180830381865afa1580156107db573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107ff9190611013565b63ffffffff1660408301525092915050565b610819610bfc565b6000829050806001600160a01b0316630890d22a6040518163ffffffff1660e01b8152600401602060405180830381865afa15801561085c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108809190610f2a565b61ffff1682526040805163104302df60e21b815290516001600160a01b0383169163410c0b7c9160048083019260209291908290030181865afa1580156108cb573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108ef9190610f2a565b61ffff166020808401919091526040805163699db38b60e11b815290516001600160a01b0384169263d33b671692600480820193918290030181865afa15801561093d573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109619190611039565b15156040808401919091525163d060576b60e01b81526001600160a01b0382169063d060576b906109979060019060040161105b565b602060405180830381865afa1580156109b4573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109d89190610f2a565b606083015260405163d060576b60e01b81526001600160a01b0382169063d060576b90610a0a9060029060040161105b565b602060405180830381865afa158015610a27573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a4b9190610f2a565b608083015260405163d060576b60e01b81526001600160a01b0382169063d060576b90610a7d9060039060040161105b565b602060405180830381865afa158015610a9a573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610abe9190610f2a565b60a083015260405163d060576b60e01b81526001600160a01b0382169063d060576b90610aef90600490810161105b565b602060405180830381865afa158015610b0c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b309190610f2a565b8260c0018181525050806001600160a01b031663441f64bb6040518163ffffffff1660e01b8152600401602060405180830381865afa158015610b77573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b9b9190610f2a565b60e083015250919050565b604080516101408101825260008082526020820181905291810182905260608082018390526080820183905260a0820183905260c0820183905260e0820183905261010082019290925261012081019190915290565b604051806101000160405280600061ffff168152602001600061ffff16815260200160001515815260200160008152602001600081526020016000815260200160008152602001600081525090565b6001600160a01b0381168114610c6057600080fd5b50565b600060208284031215610c7557600080fd5b813561018181610c4b565b60008151808452602080850194506020840160005b83811015610cba5781516001600160a01b031687529582019590820190600101610c95565b509495945050505050565b60208152610cda60208201835161ffff169052565b60006020830151610cf1604084018261ffff169052565b50604083015161ffff8116606084015250606083015161ffff8116608084015250608083015161ffff811660a08401525060a083015161ffff811660c08401525060c083015160e083015260e0830151610100818185015280850151915050610120610d628185018361ffff169052565b840151610140848101529050610d7c610160840182610c80565b949350505050565b803561ffff81168114610d9657600080fd5b919050565b60008060408385031215610dae57600080fd5b8235610db981610c4b565b9150610dc760208401610d84565b90509250929050565b815161ffff168152602080830151908201526040808301519082015260608101610149565b600080600060408486031215610e0a57600080fd5b8335610e1581610c4b565b9250602084013567ffffffffffffffff80821115610e3257600080fd5b818601915086601f830112610e4657600080fd5b813581811115610e5557600080fd5b8760208260051b8501011115610e6a57600080fd5b6020830194508093505050509250925092565b6020808252825182820181905260009190848201906040850190845b81811015610ed757610ec4838551805161ffff16825260208082015190830152604090810151910152565b9284019260609290920191600101610e99565b50909695505050505050565b634e487b7160e01b600052604160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b600060208284031215610f2157600080fd5b61018182610d84565b600060208284031215610f3c57600080fd5b5051919050565b8051610d9681610c4b565b60006020808385031215610f6157600080fd5b825167ffffffffffffffff80821115610f7957600080fd5b818501915085601f830112610f8d57600080fd5b815181811115610f9f57610f9f610ee3565b8060051b604051601f19603f83011681018181108582111715610fc457610fc4610ee3565b604052918252848201925083810185019188831115610fe257600080fd5b938501935b8285101561100757610ff885610f43565b84529385019392850192610fe7565b98975050505050505050565b60006020828403121561102557600080fd5b815163ffffffff8116811461018157600080fd5b60006020828403121561104b57600080fd5b8151801515811461018157600080fd5b602081016005831061107d57634e487b7160e01b600052602160045260246000fd5b9190529056fea2646970667358221220f5d94db6de931badf0898b54b7010ce7759c3d28dbd8618f5821dccedbc113fe64736f6c63430008180033";
18
+ static readonly abi: readonly [{
19
+ readonly inputs: readonly [{
20
+ readonly internalType: "address";
21
+ readonly name: "_triggers";
22
+ readonly type: "address";
23
+ }, {
24
+ readonly internalType: "uint16";
25
+ readonly name: "_pairId";
26
+ readonly type: "uint16";
27
+ }];
28
+ readonly name: "getPairConfigsInTriggers";
29
+ readonly outputs: readonly [{
30
+ readonly components: readonly [{
31
+ readonly internalType: "uint16";
32
+ readonly name: "pairId";
33
+ readonly type: "uint16";
34
+ }, {
35
+ readonly internalType: "uint256";
36
+ readonly name: "maxConfidenceFraction";
37
+ readonly type: "uint256";
38
+ }, {
39
+ readonly internalType: "uint256";
40
+ readonly name: "spreadFraction";
41
+ readonly type: "uint256";
42
+ }];
43
+ readonly internalType: "struct PairConfigsInTriggers";
44
+ readonly name: "pairConfigs";
45
+ readonly type: "tuple";
46
+ }];
47
+ readonly stateMutability: "view";
48
+ readonly type: "function";
49
+ }, {
50
+ readonly inputs: readonly [{
51
+ readonly internalType: "address";
52
+ readonly name: "_triggers";
53
+ readonly type: "address";
54
+ }, {
55
+ readonly internalType: "uint16[]";
56
+ readonly name: "_pairIds";
57
+ readonly type: "uint16[]";
58
+ }];
59
+ readonly name: "getPairsConfigsInTriggers";
60
+ readonly outputs: readonly [{
61
+ readonly components: readonly [{
62
+ readonly internalType: "uint16";
63
+ readonly name: "pairId";
64
+ readonly type: "uint16";
65
+ }, {
66
+ readonly internalType: "uint256";
67
+ readonly name: "maxConfidenceFraction";
68
+ readonly type: "uint256";
69
+ }, {
70
+ readonly internalType: "uint256";
71
+ readonly name: "spreadFraction";
72
+ readonly type: "uint256";
73
+ }];
74
+ readonly internalType: "struct PairConfigsInTriggers[]";
75
+ readonly name: "pairsConfigs";
76
+ readonly type: "tuple[]";
77
+ }];
78
+ readonly stateMutability: "view";
79
+ readonly type: "function";
80
+ }, {
81
+ readonly inputs: readonly [{
82
+ readonly internalType: "address";
83
+ readonly name: "_tradersPortal";
84
+ readonly type: "address";
85
+ }];
86
+ readonly name: "getTradersPortalConfigurations";
87
+ readonly outputs: readonly [{
88
+ readonly components: readonly [{
89
+ readonly internalType: "uint16";
90
+ readonly name: "limitOrdersTimelock";
91
+ readonly type: "uint16";
92
+ }, {
93
+ readonly internalType: "uint16";
94
+ readonly name: "marketOrdersTimeout";
95
+ readonly type: "uint16";
96
+ }, {
97
+ readonly internalType: "bool";
98
+ readonly name: "isLimitingMarketClosePriceRange";
99
+ readonly type: "bool";
100
+ }, {
101
+ readonly internalType: "uint256";
102
+ readonly name: "nativeFeeForPositionOpenRequest";
103
+ readonly type: "uint256";
104
+ }, {
105
+ readonly internalType: "uint256";
106
+ readonly name: "nativeFeeForMarketCloseRequest";
107
+ readonly type: "uint256";
108
+ }, {
109
+ readonly internalType: "uint256";
110
+ readonly name: "nativeFeeForSingleFieldUpdateRequest";
111
+ readonly type: "uint256";
112
+ }, {
113
+ readonly internalType: "uint256";
114
+ readonly name: "nativeFeeForDoubleFieldUpdateRequest";
115
+ readonly type: "uint256";
116
+ }, {
117
+ readonly internalType: "uint256";
118
+ readonly name: "minLiveTimeForMarketClose";
119
+ readonly type: "uint256";
120
+ }];
121
+ readonly internalType: "struct CompleteTradersPortalConfigurations";
122
+ readonly name: "tradersPortalConfigurations";
123
+ readonly type: "tuple";
124
+ }];
125
+ readonly stateMutability: "view";
126
+ readonly type: "function";
127
+ }, {
128
+ readonly inputs: readonly [{
129
+ readonly internalType: "address";
130
+ readonly name: "_triggers";
131
+ readonly type: "address";
132
+ }];
133
+ readonly name: "getTriggersConfigurations";
134
+ readonly outputs: readonly [{
135
+ readonly components: readonly [{
136
+ readonly internalType: "uint16";
137
+ readonly name: "minTriggerPeriodForMarketOrders";
138
+ readonly type: "uint16";
139
+ }, {
140
+ readonly internalType: "uint16";
141
+ readonly name: "maxTriggerPeriodForMarketOrders";
142
+ readonly type: "uint16";
143
+ }, {
144
+ readonly internalType: "uint16";
145
+ readonly name: "marketOrdersTimeout";
146
+ readonly type: "uint16";
147
+ }, {
148
+ readonly internalType: "uint16";
149
+ readonly name: "marketOrderTightTimeRange";
150
+ readonly type: "uint16";
151
+ }, {
152
+ readonly internalType: "uint16";
153
+ readonly name: "minTriggerPeriodForLimitOrders";
154
+ readonly type: "uint16";
155
+ }, {
156
+ readonly internalType: "uint16";
157
+ readonly name: "triggerPriceFreshnessTimeRange";
158
+ readonly type: "uint16";
159
+ }, {
160
+ readonly internalType: "uint256";
161
+ readonly name: "marketOrderCancelFeeFraction";
162
+ readonly type: "uint256";
163
+ }, {
164
+ readonly internalType: "uint256";
165
+ readonly name: "openPositionCancellationFeeFraction";
166
+ readonly type: "uint256";
167
+ }, {
168
+ readonly internalType: "uint16";
169
+ readonly name: "maxTriggersPerBlock";
170
+ readonly type: "uint16";
171
+ }, {
172
+ readonly internalType: "address[]";
173
+ readonly name: "permissionedTriggerAccounts";
174
+ readonly type: "address[]";
175
+ }];
176
+ readonly internalType: "struct CompleteTriggerConfigurations";
177
+ readonly name: "triggersConfigurations";
178
+ readonly type: "tuple";
179
+ }];
180
+ readonly stateMutability: "view";
181
+ readonly type: "function";
182
+ }];
183
+ static createInterface(): TriggersAndPortalLensInterface;
184
+ static connect(address: string, runner?: ContractRunner | null): TriggersAndPortalLens;
185
+ }
186
+ export {};
187
+ //# sourceMappingURL=TriggersAndPortalLens__factory.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TriggersAndPortalLens__factory.d.ts","sourceRoot":"","sources":["../../../../../../../../common/typechain/factories/contracts/Peripheral/Lens/TriggersAndPortalLens__factory.ts"],"names":[],"mappings":"AAGA,OAAO,EAEL,eAAe,EACf,2BAA2B,EAE5B,MAAM,QAAQ,CAAC;AAChB,OAAO,KAAK,EAAE,MAAM,EAAE,yBAAyB,EAAE,cAAc,EAAE,MAAM,QAAQ,CAAC;AAChF,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,oBAAoB,CAAC;AAC9D,OAAO,KAAK,EACV,qBAAqB,EACrB,8BAA8B,EAC/B,MAAM,6DAA6D,CAAC;AA8NrE,KAAK,sCAAsC,GACvC,CAAC,MAAM,CAAC,EAAE,MAAM,CAAC,GACjB,qBAAqB,CAAC,OAAO,eAAe,CAAC,CAAC;AAMlD,qBAAa,8BAA+B,SAAQ,eAAe;gBACrD,GAAG,IAAI,EAAE,sCAAsC;IAQlD,oBAAoB,CAC3B,SAAS,CAAC,EAAE,mBAAmB,GAAG;QAAE,IAAI,CAAC,EAAE,MAAM,CAAA;KAAE,GAClD,OAAO,CAAC,yBAAyB,CAAC;IAG5B,MAAM,CAAC,SAAS,CAAC,EAAE,mBAAmB,GAAG;QAAE,IAAI,CAAC,EAAE,MAAM,CAAA;KAAE,GACzB,OAAO,CAC7C,qBAAqB,GAAG;QACtB,qBAAqB,IAAI,2BAA2B,CAAC;KACtD,CACF;IAEM,OAAO,CACd,MAAM,EAAE,cAAc,GAAG,IAAI,GAC5B,8BAA8B;IAIjC,MAAM,CAAC,QAAQ,CAAC,QAAQ,07QAAa;IACrC,MAAM,CAAC,QAAQ,CAAC,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAAQ;IAC3B,MAAM,CAAC,eAAe,IAAI,8BAA8B;IAGxD,MAAM,CAAC,OAAO,CACZ,OAAO,EAAE,MAAM,EACf,MAAM,CAAC,EAAE,cAAc,GAAG,IAAI,GAC7B,qBAAqB;CAOzB"}
@@ -0,0 +1,30 @@
1
+ export * from "./utils/chainTypes";
2
+ export * from "./utils/addresses";
3
+ export * from "./utils/bignumbers";
4
+ export * from "./utils/chipsCalculationsUtils";
5
+ export * from "./utils/leverageCalculationsUtils";
6
+ export * from "./utils/cloning";
7
+ export * from "./utils/enumTypes";
8
+ export * from "./utils/ethersTypes";
9
+ export * from "./utils/hashes";
10
+ export * from "./utils/lynxScalesUtils";
11
+ export * from "./utils/types";
12
+ export * from "./common/constants/contractEnums";
13
+ export * from "./common/constants/generalConstants";
14
+ export * from "./common/constants/scales";
15
+ export * from "./common/constants/pairIds";
16
+ export * from "./common/constants/groupIds";
17
+ export * from "./common/constants/feeIds";
18
+ export * from "./common/priceFeeds/pyth/pythFeedConstants";
19
+ export * from "./common/priceFeeds/pyth/pythFeedFunctions";
20
+ export * from "./addresses/lensAddresses";
21
+ export * from "./common/contractsIntegration/deployedContractsConnector";
22
+ export * from "./common/typechain/contracts/Peripheral/Lens/IntentsVerifierLens";
23
+ export * from "./common/typechain/contracts/Peripheral/Lens/TriggersAndPortalLens";
24
+ export * from "./common/typechain/contracts/Peripheral/Lens/LexLens";
25
+ export * from "./common/typechain/contracts/Peripheral/Lens/TradingFloorLens";
26
+ export * from "./common/typechain/factories/contracts/Peripheral/Lens/IntentsVerifierLens__factory";
27
+ export * from "./common/typechain/factories/contracts/Peripheral/Lens/TriggersAndPortalLens__factory";
28
+ export * from "./common/typechain/factories/contracts/Peripheral/Lens/LexLens__factory";
29
+ export * from "./common/typechain/factories/contracts/Peripheral/Lens/TradingFloorLens__factory";
30
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAC;AACnC,cAAc,mBAAmB,CAAC;AAClC,cAAc,oBAAoB,CAAC;AACnC,cAAc,gCAAgC,CAAC;AAC/C,cAAc,mCAAmC,CAAC;AAClD,cAAc,iBAAiB,CAAC;AAChC,cAAc,mBAAmB,CAAC;AAClC,cAAc,qBAAqB,CAAC;AACpC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,yBAAyB,CAAC;AACxC,cAAc,eAAe,CAAC;AAE9B,cAAc,kCAAkC,CAAC;AACjD,cAAc,qCAAqC,CAAC;AACpD,cAAc,2BAA2B,CAAC;AAC1C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,2BAA2B,CAAC;AAE1C,cAAc,4CAA4C,CAAC;AAC3D,cAAc,4CAA4C,CAAC;AAG3D,cAAc,2BAA2B,CAAC;AAE1C,cAAc,0DAA0D,CAAC;AAEzE,cAAc,kEAAkE,CAAC;AACjF,cAAc,oEAAoE,CAAC;AACnF,cAAc,sDAAsD,CAAC;AACrE,cAAc,+DAA+D,CAAC;AAE9E,cAAc,qFAAqF,CAAC;AACpG,cAAc,uFAAuF,CAAC;AACtG,cAAc,yEAAyE,CAAC;AACxF,cAAc,kFAAkF,CAAC"}
@@ -0,0 +1,4 @@
1
+ export declare function isSameAddress(addressA: string, addressB: string): boolean;
2
+ export declare function isSameTxHash(hashA: string, hashB: string): boolean;
3
+ export declare function isSameBytes32(bytes32A: string, bytes32B: string): boolean;
4
+ //# sourceMappingURL=addresses.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"addresses.d.ts","sourceRoot":"","sources":["../../../utils/addresses.ts"],"names":[],"mappings":"AAAA,wBAAgB,aAAa,CAAC,QAAQ,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,GAAG,OAAO,CAEzE;AAED,wBAAgB,YAAY,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,WAExD;AAED,wBAAgB,aAAa,CAAC,QAAQ,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,GAAG,OAAO,CAEzE"}
@@ -0,0 +1,6 @@
1
+ export declare function etherBnToFloat(etherBn: BigInt): number;
2
+ export declare function unitsBnToFloat(etherBn: BigInt, decimals: number): number;
3
+ export declare function floatToEtherBn(units: number): bigint;
4
+ export declare function floatToUnitsBn(units: number, decimals: number, precisionDecimals?: number): bigint;
5
+ export declare function bigintToHumanNumber(value: bigint, decimals: number, decimalsToShow: number, useCommas?: boolean): string;
6
+ //# sourceMappingURL=bignumbers.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"bignumbers.d.ts","sourceRoot":"","sources":["../../../utils/bignumbers.ts"],"names":[],"mappings":"AAEA,wBAAgB,cAAc,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,CAEtD;AAED,wBAAgB,cAAc,CAAC,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,GAAG,MAAM,CAExE;AAED,wBAAgB,cAAc,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAEpD;AAED,wBAAgB,cAAc,CAC5B,KAAK,EAAE,MAAM,EACb,QAAQ,EAAE,MAAM,EAChB,iBAAiB,CAAC,EAAE,MAAM,GACzB,MAAM,CAKR;AAED,wBAAgB,mBAAmB,CACjC,KAAK,EAAE,MAAM,EACb,QAAQ,EAAE,MAAM,EAChB,cAAc,EAAE,MAAM,EACtB,SAAS,GAAE,OAAc,GACxB,MAAM,CAkBR"}
@@ -0,0 +1,137 @@
1
+ export declare const CHAIN_ID_ETHEREUM_MAINNET = 1;
2
+ export declare const CHAIN_ID_ETHEREUM_ROPSTEN = 3;
3
+ export declare const CHAIN_ID_OPTIMISM = 10;
4
+ export declare const CHAIN_ID_BSC = 56;
5
+ export declare const CHAIN_ID_POLYGON = 137;
6
+ export declare const CHAIN_ID_FANTOM_OPERA = 250;
7
+ export declare const CHAIN_ID_MATIC_MAINNET = 137;
8
+ export declare const CHAIN_ID_FUSE = 122;
9
+ export declare const CHAIN_ID_BOBA_MAINNET = 288;
10
+ export declare const CHAIN_ID_BOBA_GOERLI = 2888;
11
+ export declare const CHAIN_ID_MANTLE_MAINNET = 5000;
12
+ export declare const CHAIN_ID_MANTLE_TESTNET = 5001;
13
+ export declare const CHAIN_ID_MODE = 34443;
14
+ export declare const CHAIN_ID_ARBITRUM_ONE = 42161;
15
+ export declare const CHAIN_ID_CELO = 42220;
16
+ export declare const CHAIN_ID_LINEA = 59144;
17
+ export declare const CHAIN_ID_AVALANCHE_C_CHAIN = 43114;
18
+ export type TLocalChains = "hardhat" | "localhost";
19
+ export type TLocalChainIds = 1337 | 31337;
20
+ export type TLiveChains = "mainnet" | "ropsten" | "bsc" | "fantom" | "fuse" | "optimism" | "polygon" | "arbitrum" | "celo" | "maticMainnet" | "avalanche" | "boba" | "bobaGoerli" | "mantle" | "mode" | "linea" | "tenderly";
21
+ export type TLiveChainIds = typeof CHAIN_ID_ETHEREUM_MAINNET | typeof CHAIN_ID_ETHEREUM_ROPSTEN | typeof CHAIN_ID_OPTIMISM | typeof CHAIN_ID_BSC | typeof CHAIN_ID_FANTOM_OPERA | typeof CHAIN_ID_POLYGON | typeof CHAIN_ID_MATIC_MAINNET | typeof CHAIN_ID_AVALANCHE_C_CHAIN | typeof CHAIN_ID_BOBA_MAINNET | typeof CHAIN_ID_BOBA_GOERLI | typeof CHAIN_ID_MANTLE_MAINNET | typeof CHAIN_ID_MANTLE_TESTNET | typeof CHAIN_ID_LINEA | typeof CHAIN_ID_FUSE | typeof CHAIN_ID_ARBITRUM_ONE | typeof CHAIN_ID_CELO | typeof CHAIN_ID_MODE;
22
+ export type TChainNames = TLiveChains | TLocalChains;
23
+ export type TChainIds = TLiveChainIds | TLocalChainIds;
24
+ export type TSourceChains = typeof CHAIN_ID_FUSE | typeof CHAIN_ID_LINEA | typeof CHAIN_ID_ARBITRUM_ONE | typeof CHAIN_ID_OPTIMISM | typeof CHAIN_ID_POLYGON | typeof CHAIN_ID_MANTLE_MAINNET | typeof CHAIN_ID_BSC | typeof CHAIN_ID_MODE | typeof CHAIN_ID_CELO | typeof CHAIN_ID_ETHEREUM_MAINNET;
25
+ export type TEngineChains = typeof CHAIN_ID_FANTOM_OPERA | typeof CHAIN_ID_BOBA_MAINNET;
26
+ export type TTokensOnChain = {
27
+ DAI: string;
28
+ USDC: string;
29
+ USDT: string;
30
+ BUSD: string;
31
+ MAI: string;
32
+ TUNA: string;
33
+ weETH: string;
34
+ agEUR: string;
35
+ stEUR: string;
36
+ TST: string;
37
+ EUROs: string;
38
+ GRAI: string;
39
+ SLIZ: string;
40
+ SCALES: string;
41
+ LINK: string;
42
+ MIM: string;
43
+ WETH: string;
44
+ WBTC: string;
45
+ BTCB: string;
46
+ WBNB: string;
47
+ WMATIC: string;
48
+ WAVAX: string;
49
+ WFTM: string;
50
+ WFUSE: string;
51
+ ARB: string;
52
+ BOBA: string;
53
+ sFUSE: string;
54
+ MST: string;
55
+ VOLT: string;
56
+ LVC: string;
57
+ SONNE: string;
58
+ miMATIC: string;
59
+ aUSD: string;
60
+ EQUAL: string;
61
+ BRUSH: string;
62
+ fSONIC: string;
63
+ POLTER: string;
64
+ fBUX: string;
65
+ FTAILS: string;
66
+ SPIRIT: string;
67
+ sGOAT: string;
68
+ lisUSD: string;
69
+ USDFI: string;
70
+ STABLE: string;
71
+ MODE: string;
72
+ ION: string;
73
+ CELO: string;
74
+ PLAY_DAI: string;
75
+ PLAY_WAVAX: string;
76
+ PLAY_USDC: string;
77
+ PLAY_COMPETITION: string;
78
+ CHIP_FUSE_PLAY_DAI: string;
79
+ CHIP_FUSE_WFUSE: string;
80
+ CHIP_FUSE_SFUSE: string;
81
+ CHIP_FUSE_MST: string;
82
+ CHIP_FUSE_VOLT: string;
83
+ CHIP_LINEA_LVC: string;
84
+ CHIP_LINEA_VELVC: string;
85
+ CHIP_ARBITRUM_ARB: string;
86
+ CHIP_ARBITRUM_STEUR: string;
87
+ CHIP_ARBITRUM_TST: string;
88
+ CHIP_ARBITRUM_EUROS: string;
89
+ CHIP_ARBITRUM_GRAI: string;
90
+ CHIP_ARBITRUM_SLIZ: string;
91
+ CHIP_ARBITRUM_SCALES: string;
92
+ CHIP_ARBITRUM_USDFI: string;
93
+ CHIP_ARBITRUM_STABLE: string;
94
+ CHIP_OPTIMISM_SONNE: string;
95
+ CHIP_POLYGON_WMATIC: string;
96
+ CHIP_POLYGON_MIMATIC: string;
97
+ CHIP_MANTLE_AUSD: string;
98
+ CHIP_BSC_WBNB: string;
99
+ CHIP_BSC_LISUSD: string;
100
+ CHIP_BSC_USDT: string;
101
+ CHIP_FANTOM_WFTM: string;
102
+ CHIP_FANTOM_EQUAL: string;
103
+ CHIP_FANTOM_BRUSH: string;
104
+ CHIP_FANTOM_FSONIC: string;
105
+ CHIP_FANTOM_POLTER: string;
106
+ CHIP_FANTOM_FBUX: string;
107
+ CHIP_FANTOM_FTAILS: string;
108
+ CHIP_FANTOM_USDC: string;
109
+ CHIP_FANTOM_SPIRIT: string;
110
+ CHIP_FANTOM_sGOAT: string;
111
+ CHIP_MODE_MODE: string;
112
+ CHIP_MODE_ION: string;
113
+ CHIP_CELO_CELO: string;
114
+ CHIP_CELO_USDT: string;
115
+ CHIP_ETHEREUM_TUNA: string;
116
+ CHIP_ETHEREUM_weETH: string;
117
+ CHIP_BOBA_USDC: string;
118
+ CHIP_BOBA_BOBA: string;
119
+ };
120
+ export type TNativeCoinsOnChain = {
121
+ ETH: string;
122
+ FTM: string;
123
+ BNB: string;
124
+ MATIC: string;
125
+ AVAX: string;
126
+ GLMR: string;
127
+ };
128
+ export type TTokenSymbols = keyof TTokensOnChain;
129
+ export type TNativeSymbols = keyof TNativeCoinsOnChain;
130
+ export type TAllChainAssetsSymbols = TTokenSymbols | TNativeSymbols;
131
+ export type TAllPossibleAssetsSymbols = TAllChainAssetsSymbols | "BTC";
132
+ export type TTokenDescriptor = {
133
+ name: string;
134
+ symbol: TTokenSymbols;
135
+ decimals: number;
136
+ };
137
+ //# sourceMappingURL=chainTypes.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"chainTypes.d.ts","sourceRoot":"","sources":["../../../utils/chainTypes.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,yBAAyB,IAAI,CAAC;AAC3C,eAAO,MAAM,yBAAyB,IAAI,CAAC;AAE3C,eAAO,MAAM,iBAAiB,KAAK,CAAC;AAEpC,eAAO,MAAM,YAAY,KAAK,CAAC;AAC/B,eAAO,MAAM,gBAAgB,MAAM,CAAC;AACpC,eAAO,MAAM,qBAAqB,MAAM,CAAC;AACzC,eAAO,MAAM,sBAAsB,MAAM,CAAC;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EAAE,MAAM,CAAC;CAClB,CAAC"}
@@ -0,0 +1,3 @@
1
+ export declare function floatToChipsBn(value: number): bigint;
2
+ export declare function chipsBnToUnits(chipAmount: bigint): number;
3
+ //# sourceMappingURL=chipsCalculationsUtils.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"chipsCalculationsUtils.d.ts","sourceRoot":"","sources":["../../../utils/chipsCalculationsUtils.ts"],"names":[],"mappings":"AAGA,wBAAgB,cAAc,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAEpD;AAED,wBAAgB,cAAc,CAAC,UAAU,EAAE,MAAM,GAAG,MAAM,CAEzD"}
@@ -0,0 +1,6 @@
1
+ /**
2
+ * Note : Enforces to fill all the fields
3
+ */
4
+ export declare function cloneAndCompleteOverride<T>(source: T, overrides?: T): T;
5
+ export declare function cloneAndOverride<T>(source: T, overrides?: Partial<T>): T;
6
+ //# sourceMappingURL=cloning.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cloning.d.ts","sourceRoot":"","sources":["../../../utils/cloning.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,wBAAgB,wBAAwB,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,SAAS,CAAC,EAAE,CAAC,GAAG,CAAC,CAEvE;AAED,wBAAgB,gBAAgB,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,SAAS,CAAC,EAAE,OAAO,CAAC,CAAC,CAAC,GAAG,CAAC,CAOxE"}
@@ -0,0 +1,2 @@
1
+ export type TKeysOfConst<T extends object> = keyof T;
2
+ //# sourceMappingURL=enumTypes.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"enumTypes.d.ts","sourceRoot":"","sources":["../../../utils/enumTypes.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,YAAY,CAAC,CAAC,SAAS,MAAM,IAAI,MAAM,CAAC,CAAC"}
@@ -0,0 +1,14 @@
1
+ import { AddressLike, BigNumberish, BytesLike } from "ethers";
2
+ import { UnPromiseOrValue } from "./types";
3
+ /**
4
+ * Used to convert the type generated by the latest TypeChain version which uses 'BigNumberish' for clearly BigNumber values.
5
+ */
6
+ export type TSafeBigNumberStruct<T extends object> = {
7
+ [K in keyof T]: UnPromiseOrValue<T[K]> extends string ? string : UnPromiseOrValue<T[K]> extends BytesLike ? BytesLike : UnPromiseOrValue<T[K]> extends BigNumberish ? bigint : UnPromiseOrValue<T[K]> extends AddressLike ? string : UnPromiseOrValue<T[K]> extends object ? TSafeBigNumberStruct<UnPromiseOrValue<T[K]>> : boolean;
8
+ };
9
+ /**
10
+ * This functions takes a tuple returned from an 'ethers' contract object and returns it in a pure object form.
11
+ */
12
+ export declare function ethersStructResponseToObject<T extends object>(ethersStructResponse: any, emptyConcreteObject: T): T;
13
+ export declare function ethersStructResponseToArray<T extends object>(ethersStructResponseArray: any[], emptyConcreteObject: T): T[];
14
+ //# sourceMappingURL=ethersTypes.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ethersTypes.d.ts","sourceRoot":"","sources":["../../../utils/ethersTypes.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,QAAQ,CAAC;AAC9D,OAAO,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAE3C;;GAEG;AACH,MAAM,MAAM,oBAAoB,CAAC,CAAC,SAAS,MAAM,IAAI;KAClD,CAAC,IAAI,MAAM,CAAC,GAAG,gBAAgB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,MAAM,GACjD,MAAM,GACN,gBAAgB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,SAAS,GACtC,SAAS,GACT,gBAAgB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,YAAY,GACzC,MAAM,GACN,gBAAgB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,WAAW,GACxC,MAAM,GACN,gBAAgB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,MAAM,GACnC,oBAAoB,CAAC,gBAAgB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,GAC5C,OAAO;CACpB,CAAC;AAEF;;GAEG;AACH,wBAAgB,4BAA4B,CAAC,CAAC,SAAS,MAAM,EAC3D,oBAAoB,EAAE,GAAG,EAIzB,mBAAmB,EAAE,CAAC,GACrB,CAAC,CAoCH;AAED,wBAAgB,2BAA2B,CAAC,CAAC,SAAS,MAAM,EAC1D,yBAAyB,EAAE,GAAG,EAAE,EAChC,mBAAmB,EAAE,CAAC,GACrB,CAAC,EAAE,CAIL"}
@@ -0,0 +1,2 @@
1
+ export declare function hashContractName(contractName: string): string;
2
+ //# sourceMappingURL=hashes.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"hashes.d.ts","sourceRoot":"","sources":["../../../utils/hashes.ts"],"names":[],"mappings":"AAEA,wBAAgB,gBAAgB,CAAC,YAAY,EAAE,MAAM,GAAG,MAAM,CAO7D"}
@@ -0,0 +1,6 @@
1
+ export declare function scaledLeverageToUnits(scaledLeverage: number): number;
2
+ export declare function floatUnitsToScaledLeverage(leverageInUnits: number): number;
3
+ export declare function calculateLeveragedPosition(collateral: bigint, leverage: number): bigint;
4
+ export declare function calculateCollateralFromLeveragedPosition(leveragedPosition: bigint, leverage: bigint): bigint;
5
+ export declare function calculateLeveragedPosition_leverageUnits(collateral: bigint, leverageInUnits: number): bigint;
6
+ //# sourceMappingURL=leverageCalculationsUtils.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"leverageCalculationsUtils.d.ts","sourceRoot":"","sources":["../../../utils/leverageCalculationsUtils.ts"],"names":[],"mappings":"AAKA,wBAAgB,qBAAqB,CAAC,cAAc,EAAE,MAAM,GAAG,MAAM,CAEpE;AAED,wBAAgB,0BAA0B,CAAC,eAAe,EAAE,MAAM,GAAG,MAAM,CAE1E;AAED,wBAAgB,0BAA0B,CACxC,UAAU,EAAE,MAAM,EAClB,QAAQ,EAAE,MAAM,GACf,MAAM,CAER;AAED,wBAAgB,wCAAwC,CACtD,iBAAiB,EAAE,MAAM,EACzB,QAAQ,EAAE,MAAM,GACf,MAAM,CAER;AAED,wBAAgB,wCAAwC,CACtD,UAAU,EAAE,MAAM,EAClB,eAAe,EAAE,MAAM,GACtB,MAAM,CAIR"}
@@ -0,0 +1,5 @@
1
+ export declare function precisionBnToFloat(precisionBn: bigint): number;
2
+ export declare function floatToPrecisionBn(value: number): bigint;
3
+ export declare function priceBnToFloat(pricesBn: bigint): number;
4
+ export declare function floatToPriceBn(priceUnits: number): bigint;
5
+ //# sourceMappingURL=lynxScalesUtils.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"lynxScalesUtils.d.ts","sourceRoot":"","sources":["../../../utils/lynxScalesUtils.ts"],"names":[],"mappings":"AAGA,wBAAgB,kBAAkB,CAAC,WAAW,EAAE,MAAM,GAAG,MAAM,CAE9D;AAED,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAExD;AAED,wBAAgB,cAAc,CAAC,QAAQ,EAAE,MAAM,GAAG,MAAM,CAEvD;AAED,wBAAgB,cAAc,CAAC,UAAU,EAAE,MAAM,GAAG,MAAM,CAEzD"}
@@ -0,0 +1,7 @@
1
+ export type PromiseOrValue<T> = T | Promise<T>;
2
+ export type Unwrap<T> = T extends Promise<infer U> ? U : T extends (...args: any) => Promise<infer U> ? U : T extends (...args: any) => infer U ? U : T;
3
+ export type PartialRecord<K extends keyof any, T> = {
4
+ [P in K]?: T;
5
+ };
6
+ export type UnPromiseOrValue<T extends PromiseOrValue<any>> = Unwrap<T>;
7
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../utils/types.ts"],"names":[],"mappings":"AAEA,MAAM,MAAM,cAAc,CAAC,CAAC,IAAI,CAAC,GAAG,OAAO,CAAC,CAAC,CAAC,CAAC;AAE/C,MAAM,MAAM,MAAM,CAAC,CAAC,IAClB,CAAC,SAAS,OAAO,CAAC,MAAM,CAAC,CAAC,GACtB,CAAC,GACD,CAAC,SAAS,CAAC,GAAG,IAAI,EAAE,GAAG,KAAK,OAAO,CAAC,MAAM,CAAC,CAAC,GAC1C,CAAC,GACD,CAAC,SAAS,CAAC,GAAG,IAAI,EAAE,GAAG,KAAK,MAAM,CAAC,GACjC,CAAC,GACD,CAAC,CAAC;AAEZ,MAAM,MAAM,aAAa,CAAC,CAAC,SAAS,MAAM,GAAG,EAAE,CAAC,IAAI;KACjD,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC;CACb,CAAC;AAEF,MAAM,MAAM,gBAAgB,CAAC,CAAC,SAAS,cAAc,CAAC,GAAG,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,CAAC"}
package/package.json ADDED
@@ -0,0 +1,49 @@
1
+ {
2
+ "name": "lynx-client",
3
+ "version": "0.0.1-beta.1",
4
+ "description": "Client library for interacting with Lynx publicly available services",
5
+
6
+ "main": "./dist/cjs/index.js",
7
+ "module": "./dist/esm/index.js",
8
+ "types": "./dist/types/index.d.ts",
9
+
10
+ "exports": {
11
+ ".": {
12
+ "types": "./dist/types/index.d.ts",
13
+ "import": "./dist/esm/index.js",
14
+ "require": "./dist/cjs/index.js",
15
+ "default": "./dist/esm/index.js"
16
+ },
17
+ "./package.json": "./package.json"
18
+ },
19
+ "files": [
20
+ "dist/**/*"
21
+ ],
22
+ "scripts": {
23
+ "clean": "rm -rf dist",
24
+ "build:esm": "tsc -p tsconfig.esm.json",
25
+ "build:cjs": "tsc -p tsconfig.cjs.json",
26
+ "build": "npm run clean && npm run build:esm && npm run build:cjs",
27
+ "test": "jest"
28
+ },
29
+ "repository": {
30
+ "type": "git",
31
+ "url": "git+https://github.com/lynx-protocol/lynx-client.git"
32
+ },
33
+ "author": "",
34
+ "license": "ISC",
35
+ "bugs": {
36
+ "url": "https://github.com/lynx-protocol/lynx-client/issues"
37
+ },
38
+ "homepage": "https://github.com/lynx-protocol/lynx-client#readme",
39
+ "devDependencies": {
40
+ "@types/jest": "^29.5.14",
41
+ "jest": "^29.7.0",
42
+ "prettier": "^3.5.3",
43
+ "ts-jest": "^29.2.5",
44
+ "typescript": "^5.6.3"
45
+ },
46
+ "dependencies": {
47
+ "ethers": "^6.13.5"
48
+ }
49
+ }