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,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;AAE1C,eAAO,MAAM,aAAa,MAAM,CAAC;AAEjC,eAAO,MAAM,qBAAqB,MAAM,CAAC;AACzC,eAAO,MAAM,oBAAoB,OAAO,CAAC;AAEzC,eAAO,MAAM,uBAAuB,OAAO,CAAC;AAC5C,eAAO,MAAM,uBAAuB,OAAO,CAAC;AAE5C,eAAO,MAAM,aAAa,QAAQ,CAAC;AAEnC,eAAO,MAAM,qBAAqB,QAAQ,CAAC;AAE3C,eAAO,MAAM,aAAa,QAAQ,CAAC;AAEnC,eAAO,MAAM,cAAc,QAAQ,CAAC;AAEpC,eAAO,MAAM,0BAA0B,QAAQ,CAAC;AAEhD,MAAM,MAAM,YAAY,GAAG,SAAS,GAAG,WAAW,CAAC;AACnD,MAAM,MAAM,cAAc,GAAG,IAAI,GAAG,KAAK,CAAC;AAC1C,MAAM,MAAM,WAAW,GACnB,SAAS,GACT,SAAS,GACT,KAAK,GACL,QAAQ,GACR,MAAM,GACN,UAAU,GACV,SAAS,GACT,UAAU,GACV,MAAM,GACN,cAAc,GACd,WAAW,GACX,MAAM,GACN,YAAY,GACZ,QAAQ,GACR,MAAM,GACN,OAAO,GACP,UAAU,CAAC;A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ChC,GAAG,EAAE,MAAM,CAAC;IACZ,GAAG,EAAE,MAAM,CAAC;IACZ,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;CACd,CAAC;AAEF,MAAM,MAAM,aAAa,GAAG,MAAM,cAAc,CAAC;AACjD,MAAM,MAAM,cAAc,GAAG,MAAM,mBAAmB,CAAC;AAEvD,MAAM,MAAM,sBAAsB,GAAG,aAAa,GAAG,cAAc,CAAC;AACpE,MAAM,MAAM,yBAAyB,GAAG,sBAAsB,GAAG,KAAK,CAAC;AAEvE,MAAM,MAAM,gBAAgB,GAAG;IAC7B,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,aAAa,CAAC;IACtB,QAAQ,EAAE,MAAM,CAAC;CAClB,CAAC"}
@@ -0,0 +1,20 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CHAIN_ID_AVALANCHE_C_CHAIN = exports.CHAIN_ID_LINEA = exports.CHAIN_ID_CELO = exports.CHAIN_ID_ARBITRUM_ONE = exports.CHAIN_ID_MODE = exports.CHAIN_ID_MANTLE_TESTNET = exports.CHAIN_ID_MANTLE_MAINNET = exports.CHAIN_ID_BOBA_GOERLI = exports.CHAIN_ID_BOBA_MAINNET = exports.CHAIN_ID_FUSE = exports.CHAIN_ID_MATIC_MAINNET = exports.CHAIN_ID_FANTOM_OPERA = exports.CHAIN_ID_POLYGON = exports.CHAIN_ID_BSC = exports.CHAIN_ID_OPTIMISM = exports.CHAIN_ID_ETHEREUM_ROPSTEN = exports.CHAIN_ID_ETHEREUM_MAINNET = void 0;
4
+ exports.CHAIN_ID_ETHEREUM_MAINNET = 1;
5
+ exports.CHAIN_ID_ETHEREUM_ROPSTEN = 3;
6
+ exports.CHAIN_ID_OPTIMISM = 10;
7
+ exports.CHAIN_ID_BSC = 56;
8
+ exports.CHAIN_ID_POLYGON = 137;
9
+ exports.CHAIN_ID_FANTOM_OPERA = 250;
10
+ exports.CHAIN_ID_MATIC_MAINNET = 137;
11
+ exports.CHAIN_ID_FUSE = 122;
12
+ exports.CHAIN_ID_BOBA_MAINNET = 288;
13
+ exports.CHAIN_ID_BOBA_GOERLI = 2888;
14
+ exports.CHAIN_ID_MANTLE_MAINNET = 5000;
15
+ exports.CHAIN_ID_MANTLE_TESTNET = 5001;
16
+ exports.CHAIN_ID_MODE = 34443;
17
+ exports.CHAIN_ID_ARBITRUM_ONE = 42161;
18
+ exports.CHAIN_ID_CELO = 42220;
19
+ exports.CHAIN_ID_LINEA = 59144;
20
+ exports.CHAIN_ID_AVALANCHE_C_CHAIN = 43114;
@@ -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,12 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.floatToChipsBn = floatToChipsBn;
4
+ exports.chipsBnToUnits = chipsBnToUnits;
5
+ const scales_1 = require("../common/constants/scales");
6
+ const bignumbers_1 = require("./bignumbers");
7
+ function floatToChipsBn(value) {
8
+ return (0, bignumbers_1.floatToUnitsBn)(value, scales_1.CHIP_DECIMALS);
9
+ }
10
+ function chipsBnToUnits(chipAmount) {
11
+ return (0, bignumbers_1.unitsBnToFloat)(chipAmount, scales_1.CHIP_DECIMALS);
12
+ }
@@ -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,17 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.cloneAndCompleteOverride = cloneAndCompleteOverride;
4
+ exports.cloneAndOverride = cloneAndOverride;
5
+ /**
6
+ * Note : Enforces to fill all the fields
7
+ */
8
+ function cloneAndCompleteOverride(source, overrides) {
9
+ return cloneAndOverride(source, overrides);
10
+ }
11
+ function cloneAndOverride(source, overrides) {
12
+ const safeOverrides = overrides || {};
13
+ return {
14
+ ...source,
15
+ ...safeOverrides,
16
+ };
17
+ }
@@ -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,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -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,51 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ethersStructResponseToObject = ethersStructResponseToObject;
4
+ exports.ethersStructResponseToArray = ethersStructResponseToArray;
5
+ /**
6
+ * This functions takes a tuple returned from an 'ethers' contract object and returns it in a pure object form.
7
+ */
8
+ function ethersStructResponseToObject(ethersStructResponse,
9
+ // NOTE : This is needed due to changes in ethers 6 + typechain that returns weird proxy object for struct which
10
+ // makes it hard/impossible to get the proper keys of the intended type.
11
+ // TODO : Solve it if possible ?
12
+ emptyConcreteObject) {
13
+ const obj = {};
14
+ // for (let key in ethersStructResponse) {
15
+ for (let key of Object.keys(emptyConcreteObject)) {
16
+ // DEV_NOTE : We assume that all numeric keys belongs to the array and ignore them
17
+ if (Number.isNaN(parseInt(key))) {
18
+ // @ts-ignore
19
+ const value = ethersStructResponse[key];
20
+ // @ts-ignore
21
+ obj[key] = value;
22
+ // const isBigNumber = value instanceof BigNumber || value["_isBigNumber"];
23
+ const isBigNumber = false;
24
+ // BigNumbers are taken 'as is', other objects are cleaned as well
25
+ // This part handles structs within structs
26
+ if (value instanceof Object && !isFunction(value)) {
27
+ if (isBigNumber) {
28
+ // @ts-ignore
29
+ obj[key] = BigInt(value);
30
+ }
31
+ else if (Array.isArray(value)) {
32
+ // @ts-ignore
33
+ obj[key] = ethersStructResponseToArray(value);
34
+ }
35
+ else {
36
+ // @ts-ignore
37
+ obj[key] = ethersStructResponseToObject(value);
38
+ }
39
+ // @ts-ignore
40
+ // console.log(`key ${key} | obj[key] : ${obj[key]}`);
41
+ }
42
+ }
43
+ }
44
+ return obj;
45
+ }
46
+ function ethersStructResponseToArray(ethersStructResponseArray, emptyConcreteObject) {
47
+ return ethersStructResponseArray.map((struct) => ethersStructResponseToObject(struct, emptyConcreteObject));
48
+ }
49
+ function isFunction(functionToCheck) {
50
+ return (functionToCheck && {}.toString.call(functionToCheck) === "[object Function]");
51
+ }
@@ -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,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.hashContractName = hashContractName;
4
+ const ethers_1 = require("ethers");
5
+ function hashContractName(contractName) {
6
+ const contractNameHash = ethers_1.ethers.solidityPackedKeccak256(["string"], [contractName]);
7
+ return contractNameHash;
8
+ }
@@ -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,25 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.scaledLeverageToUnits = scaledLeverageToUnits;
4
+ exports.floatUnitsToScaledLeverage = floatUnitsToScaledLeverage;
5
+ exports.calculateLeveragedPosition = calculateLeveragedPosition;
6
+ exports.calculateCollateralFromLeveragedPosition = calculateCollateralFromLeveragedPosition;
7
+ exports.calculateLeveragedPosition_leverageUnits = calculateLeveragedPosition_leverageUnits;
8
+ const scales_1 = require("../common/constants/scales");
9
+ function scaledLeverageToUnits(scaledLeverage) {
10
+ return scaledLeverage / scales_1.LEVERAGE_MULTIPLIER_SCALE;
11
+ }
12
+ function floatUnitsToScaledLeverage(leverageInUnits) {
13
+ return leverageInUnits * scales_1.LEVERAGE_MULTIPLIER_SCALE;
14
+ }
15
+ function calculateLeveragedPosition(collateral, leverage) {
16
+ return (collateral * BigInt(leverage)) / scales_1.LEVERAGE_UNIT;
17
+ }
18
+ function calculateCollateralFromLeveragedPosition(leveragedPosition, leverage) {
19
+ return (leveragedPosition * scales_1.LEVERAGE_UNIT) / leverage;
20
+ }
21
+ function calculateLeveragedPosition_leverageUnits(collateral, leverageInUnits) {
22
+ // TODO : Change after changing scale
23
+ const leverageBn = floatUnitsToScaledLeverage(leverageInUnits);
24
+ return calculateLeveragedPosition(collateral, leverageBn);
25
+ }
@@ -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,20 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.precisionBnToFloat = precisionBnToFloat;
4
+ exports.floatToPrecisionBn = floatToPrecisionBn;
5
+ exports.priceBnToFloat = priceBnToFloat;
6
+ exports.floatToPriceBn = floatToPriceBn;
7
+ const scales_1 = require("../common/constants/scales");
8
+ const bignumbers_1 = require("./bignumbers");
9
+ function precisionBnToFloat(precisionBn) {
10
+ return (0, bignumbers_1.unitsBnToFloat)(precisionBn, Number(scales_1.PRECISION_SCALE));
11
+ }
12
+ function floatToPrecisionBn(value) {
13
+ return (0, bignumbers_1.floatToUnitsBn)(value, Number(scales_1.PRECISION_SCALE));
14
+ }
15
+ function priceBnToFloat(pricesBn) {
16
+ return (0, bignumbers_1.unitsBnToFloat)(pricesBn, scales_1.PRICES_SCALE);
17
+ }
18
+ function floatToPriceBn(priceUnits) {
19
+ return (0, bignumbers_1.floatToUnitsBn)(priceUnits, scales_1.PRICES_SCALE);
20
+ }
@@ -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"}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // import { PromiseOrValue } from "../typechain-types/common";
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,27 @@
1
+ export declare const LensAddresses: {
2
+ readonly boba: {
3
+ readonly lexLens: "0xCcFaDF4E72d5b2D382555E0eb72a1BF6F7f0EF7F";
4
+ readonly tradingFloorLensLens: "0xed9D263917921cb5f0B9a59c5083beA4075F33e7";
5
+ readonly intentsVerifierLens: "0x8F33670B7a076793D178D340AD70Cc097DD03739";
6
+ readonly triggersAndPortalLens: "0xA03312361D07dfAe0C517a441C69BFA9E84e38bf";
7
+ };
8
+ readonly sonic: {
9
+ readonly lexLens: "0xBcb1D4ACbc844ba5FC0aA411b98aebD4A508B65F";
10
+ readonly tradingFloorLensLens: "0xa5802951D972372f1385e9Ac83df738b3323d0A8";
11
+ readonly intentsVerifierLens: "0xDBe9130AAe593Ec73a838ce286fa84c193bceFA1";
12
+ readonly triggersAndPortalLens: "0xaA96df0a4F01212169c2347dc23D5AEb89924839";
13
+ };
14
+ readonly fantom: {
15
+ readonly lexLens: "0xB5A5041654391a720953D346367D3A3BE9c3d47B";
16
+ readonly tradingFloorLensLens: "0x30377D42736Bf4b40A67C18e5dFC7f45496e8569";
17
+ readonly intentsVerifierLens: "0xD9E77b2A3E9B1a21aC256802bB86Cba3e21627E7";
18
+ readonly triggersAndPortalLens: "0x9544C73C97BD292a1F09ef671A5f8CcDf9Ff5429";
19
+ };
20
+ readonly flare: {
21
+ readonly lexLens: "0x812Ea46a0618f923ae473eb239a89A8169b34B85";
22
+ readonly tradingFloorLensLens: "0x13d878F3C3f32400A727662af7dfAdBc8b389637";
23
+ readonly intentsVerifierLens: "0x33576dFbA7Ed5E3F8F744132D6885cE106178161";
24
+ readonly triggersAndPortalLens: "0x625D49B0258BB8277516C07494910d420FA31B06";
25
+ };
26
+ };
27
+ //# sourceMappingURL=lensAddresses.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"lensAddresses.d.ts","sourceRoot":"","sources":["../../../addresses/lensAddresses.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;CAyBhB,CAAC"}
@@ -0,0 +1,148 @@
1
+ import { TKeysOfConst } from "../../utils/enumTypes";
2
+ export declare const PositionPhaseEnums: {
3
+ NONE: bigint;
4
+ OPEN_MARKET: bigint;
5
+ OPEN_LIMIT: bigint;
6
+ OPENED: bigint;
7
+ CLOSE_MARKET: bigint;
8
+ CLOSED: bigint;
9
+ };
10
+ export type TPositionPhaseType = (typeof PositionPhaseEnums)[TKeysOfConst<typeof PositionPhaseEnums>];
11
+ export declare const OpenOrderTypeEnums: {
12
+ NONE: number;
13
+ MARKET: number;
14
+ LIMIT: number;
15
+ };
16
+ export type TOpenOrderType = (typeof OpenOrderTypeEnums)[TKeysOfConst<typeof OpenOrderTypeEnums>];
17
+ export declare const CloseOrderTypeEnums: {
18
+ NONE: number;
19
+ MARKET: number;
20
+ };
21
+ export type TCloseOrderType = (typeof CloseOrderTypeEnums)[TKeysOfConst<typeof CloseOrderTypeEnums>];
22
+ export declare const LimitTriggerEnums: {
23
+ NONE: number;
24
+ TP: number;
25
+ SL: number;
26
+ LIQ: number;
27
+ };
28
+ export type TLimitTriggerTypesEnums = (typeof LimitTriggerEnums)[TKeysOfConst<typeof LimitTriggerEnums>];
29
+ export declare const FeeTypeEnums: {
30
+ NOTE: number;
31
+ OPEN_FEE: number;
32
+ CLOSE_FEE: number;
33
+ TRIGGER_FEE: number;
34
+ };
35
+ export type TFeeType = (typeof FeeTypeEnums)[TKeysOfConst<typeof FeeTypeEnums>];
36
+ export declare const PositionFieldEnums: {
37
+ NONE: bigint;
38
+ TP: bigint;
39
+ SL: bigint;
40
+ };
41
+ export type TPositionField = (typeof PositionFieldEnums)[TKeysOfConst<typeof PositionFieldEnums>];
42
+ export declare const PositionCloseTypeEnums: {
43
+ NONE: bigint;
44
+ TP: bigint;
45
+ SL: bigint;
46
+ LIQ: bigint;
47
+ MARKET: bigint;
48
+ };
49
+ export type TPositionCloseTypeEnums = (typeof PositionCloseTypeEnums)[TKeysOfConst<typeof PositionCloseTypeEnums>];
50
+ export declare const AdminNumericParam: {
51
+ NONE: bigint;
52
+ MAX_TRADES_PER_PAIR: bigint;
53
+ MAX_SL_F: bigint;
54
+ MAX_SANITY_PROFIT_F: bigint;
55
+ };
56
+ export type TAdminNumericParamType = (typeof AdminNumericParam)[TKeysOfConst<typeof AdminNumericParam>];
57
+ export declare const PoolAccountantAddressesEnums: {
58
+ none: number;
59
+ irm: number;
60
+ frm: number;
61
+ incentivizer: number;
62
+ };
63
+ export type TPoolAccountantAddresses = (typeof PoolAccountantAddressesEnums)[TKeysOfConst<typeof PoolAccountantAddressesEnums>];
64
+ export declare const PoolAccountantNumberEnums: {
65
+ none: number;
66
+ minOpenFee: number;
67
+ lexPartF: number;
68
+ maxGainF: number;
69
+ liquidationThresholdF: number;
70
+ liquidationFeeF: number;
71
+ fundingRateMax: number;
72
+ interestShareFactor: number;
73
+ borrowRateMax: number;
74
+ maxTotalBorrows: number;
75
+ maxVirtualUtilization: number;
76
+ };
77
+ export type TPoolAccountantNumbers = (typeof PoolAccountantNumberEnums)[TKeysOfConst<typeof PoolAccountantNumberEnums>];
78
+ export declare const LexPoolAddressesEnums: {
79
+ none: number;
80
+ poolAccountant: number;
81
+ pnlRole: number;
82
+ };
83
+ export type TLexPoolAccountantAddress = (typeof LexPoolAddressesEnums)[TKeysOfConst<typeof LexPoolAddressesEnums>];
84
+ export declare const LexPoolNumberEnums: {
85
+ none: number;
86
+ maxExtraWithdrawalAmountF: number;
87
+ epochsDelayDeposit: number;
88
+ epochsDelayRedeem: number;
89
+ epochDuration: number;
90
+ minDepositAmount: number;
91
+ };
92
+ export type TLexPoolAccountantNumbers = (typeof LexPoolNumberEnums)[TKeysOfConst<typeof LexPoolNumberEnums>];
93
+ export declare const UpdatePositionFieldOrderTypeEnums: {
94
+ NONE: bigint;
95
+ UPDATE_TP: bigint;
96
+ UPDATE_SL: bigint;
97
+ UPDATE_TP_AND_SL: bigint;
98
+ };
99
+ export type TUpdatePositionFieldOrderType = (typeof UpdatePositionFieldOrderTypeEnums)[TKeysOfConst<typeof UpdatePositionFieldOrderTypeEnums>];
100
+ export declare const TradersPortalActionEnums: {
101
+ NONE: number;
102
+ REQUEST_POSITION_OPEN: number;
103
+ REQUEST_POSITION_MARKET_CLOSE: number;
104
+ REQUEST_POSITION_SINGLE_FIELD_UPDATE: number;
105
+ REQUEST_POSITION_DOUBLE_FIELD_UPDATE: number;
106
+ };
107
+ export type TTradersPortalAction = (typeof TradersPortalActionEnums)[TKeysOfConst<typeof TradersPortalActionEnums>];
108
+ export declare const ChipModeEnums: {
109
+ NONE: bigint;
110
+ LOCAL: bigint;
111
+ REMOTE: bigint;
112
+ HYBRID: bigint;
113
+ };
114
+ export type TChipModeEnum = (typeof ChipModeEnums)[TKeysOfConst<typeof ChipModeEnums>];
115
+ export declare const ChipSpenderRolesEnums: {
116
+ TradingFloor: string;
117
+ LexPool: string;
118
+ ChipsIntentsVerifier: string;
119
+ ChipsIntentsVerifierAdmin: string;
120
+ };
121
+ export type TChipSpenderRoles = (typeof ChipSpenderRolesEnums)[TKeysOfConst<typeof ChipSpenderRolesEnums>];
122
+ export declare const TradeIntentsVerifierActionsEnums: {
123
+ NONE: bigint;
124
+ REQUEST_POSITION_OPEN: bigint;
125
+ REQUEST_POSITION_MARKET_CLOSE: bigint;
126
+ REQUEST_POSITION_SINGLE_FIELD_UPDATE: bigint;
127
+ REQUEST_POSITION_DOUBLE_FIELD_UPDATE: bigint;
128
+ DIRECT_UPDATE_PENDING_LIMIT_POSITION: bigint;
129
+ DIRECT_CANCEL_PENDING_LIMIT_POSITION: bigint;
130
+ };
131
+ export type TTradeIntentsVerifierActionsEnum = (typeof TradeIntentsVerifierActionsEnums)[TKeysOfConst<typeof TradeIntentsVerifierActionsEnums>];
132
+ export declare const LiquidityIntentsVerifierActionsEnums: {
133
+ NONE: bigint;
134
+ REQUEST_EPOCH_DEPOSIT: bigint;
135
+ REQUEST_EPOCH_REDEEM: bigint;
136
+ };
137
+ export type TLiquidityIntentsVerifierActionsEnum = (typeof LiquidityIntentsVerifierActionsEnums)[TKeysOfConst<typeof LiquidityIntentsVerifierActionsEnums>];
138
+ export declare const ChipsIntentsVerifierActionsEnums: {
139
+ NONE: bigint;
140
+ CHIP_OUT_LZ: bigint;
141
+ };
142
+ export type TChipsIntentsVerifierActionsEnum = (typeof ChipsIntentsVerifierActionsEnums)[TKeysOfConst<typeof ChipsIntentsVerifierActionsEnums>];
143
+ export declare const GeneralTokenDispenserPusherLevelEnums: {
144
+ NONE: number;
145
+ BASE: number;
146
+ };
147
+ export type TGeneralTokenDispenserPusherLevel = (typeof GeneralTokenDispenserPusherLevelEnums)[TKeysOfConst<typeof GeneralTokenDispenserPusherLevelEnums>];
148
+ //# sourceMappingURL=contractEnums.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"contractEnums.d.ts","sourceRoot":"","sources":["../../../../common/constants/contractEnums.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAIrD,eAAO,MAAM,kBAAkB;;;;;;;CAO9B,CAAC;AACF,MAAM,MAAM,kBAAkB,GAAG,CAAC,OAAO,kBAAkB,CAAC,CAAC,YAAY,CACvE,OAAO,kBAAkB,CAC1B,CAAC,CAAC;AAEH,eAAO,MAAM,kBAAkB;;;;CAI9B,CAAC;AACF,MAAM,MAAM,cAAc,GAAG,CAAC,OAAO,kBAAkB,CAAC,CAAC,YAAY,CACnE,OAAO,kBAAkB,CAC1B,CAAC,CAAC;AAEH,eAAO,MAAM,mBAAmB;;;CAG/B,CAAC;AACF,MAAM,MAAM,eAAe,GAAG,CAAC,OAAO,mBAAmB,CAAC,CAAC,YAAY,CACrE,OAAO,mBAAmB,CAC3B,CAAC,CAAC;AAEH,eAAO,MAAM,iBAAiB;;;;;CAK7B,CAAC;AACF,MAAM,MAAM,uBAAuB,GAAG,CAAC,OAAO,iBAAiB,CAAC,CAAC,YAAY,CAC3E,OAAO,iBAAiB,CACzB,CAAC,CAAC;AAEH,eAAO,MAAM,YAAY;;;;;CAKxB,CAAC;AAEF,MAAM,MAAM,QAAQ,GAAG,CAAC,OAAO,YAAY,CAAC,CAAC,YAAY,CAAC,OAAO,YAAY,CAAC,CAAC,CAAC;AAEhF,eAAO,MAAM,kBAAkB;;;;CAI9B,CAAC;AAEF,MAAM,MAAM,cAAc,GAAG,CAAC,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GAC9B,CAAC,OAAO,wBAAwB,CAAC,CAAC,YAAY,CAC5C,OAAO,wBAAwB,CAChC,CAAC,CAAC;AAGL,eAAO,MAAM,aAAa;;;;;CAKzB,CAAC;AAEF,MAAM,MAAM,aAAa,GAAG,CAAC,OAAO,aAAa,CAAC,CAAC,YAAY,CAC7D,OAAO,aAAa,CACrB,CAAC,CAAC;AAEH,eAAO,MAAM,qBAAqB;;;;;CAKjC,CAAC;AAEF,MAAM,MAAM,iBAAiB,GAAG,CAAC,OAAO,qBAAqB,CAAC,CAAC,YAAY,CACzE,OAAO,qBAAqB,CAC7B,CAAC,CAAC;AAIH,eAAO,MAAM,gCAAgC;;;;;;;;CAQ5C,CAAC;AAEF,MAAM,MAAM,gCAAgC,GAC1C,CAAC,OAAO,gCAAgC,CAAC,CAAC,YAAY,CACpD,OAAO,gCAAgC,CACxC,CAAC,CAAC;AAIL,eAAO,MAAM,oCAAoC;;;;CAIhD,CAAC;AAEF,MAAM,MAAM,oCAAoC,GAC9C,CAAC,OAAO,oCAAoC,CAAC,CAAC,YAAY,CACxD,OAAO,oCAAoC,CAC5C,CAAC,CAAC;AAIL,eAAO,MAAM,gCAAgC;;;CAG5C,CAAC;AAEF,MAAM,MAAM,gCAAgC,GAC1C,CAAC,OAAO,gCAAgC,CAAC,CAAC,YAAY,CACpD,OAAO,gCAAgC,CACxC,CAAC,CAAC;AAIL,eAAO,MAAM,qCAAqC;;;CAGjD,CAAC;AAEF,MAAM,MAAM,iCAAiC,GAC3C,CAAC,OAAO,qCAAqC,CAAC,CAAC,YAAY,CACzD,OAAO,qCAAqC,CAC7C,CAAC,CAAC"}
@@ -0,0 +1,13 @@
1
+ export declare const FEE_CONFIGS_IDS: {
2
+ basicCryptoPair: number;
3
+ catCryptoPair: number;
4
+ forexPair: number;
5
+ catForexPair: number;
6
+ };
7
+ export type TFeeConfigsNames = "CRYPTO_COMMON" | "CRYPTO_CAT" | "FOREX" | "FOREX_CAT";
8
+ export type TFeeConfigsIdentifier = {
9
+ name: string;
10
+ id: number;
11
+ };
12
+ export declare const FEE_CONFIGS_IDENTIFIERS: Record<TFeeConfigsNames, TFeeConfigsIdentifier>;
13
+ //# sourceMappingURL=feeIds.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"feeIds.d.ts","sourceRoot":"","sources":["../../../../common/constants/feeIds.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,eAAe;;;;;CAK3B,CAAC;AAEF,MAAM,MAAM,gBAAgB,GACxB,eAAe,GACf,YAAY,GACZ,OAAO,GACP,WAAW,CAAC;AAEhB,MAAM,MAAM,qBAAqB,GAAG;IAElC,IAAI,EAAE,MAAM,CAAC;IAGb,EAAE,EAAE,MAAM,CAAC;CACZ,CAAC;AAEF,eAAO,MAAM,uBAAuB,EAAE,MAAM,CAC1C,gBAAgB,EAChB,qBAAqB,CAkBtB,CAAC"}
@@ -0,0 +1,2 @@
1
+ export declare const SECONDS_IN_YEAR: number;
2
+ //# sourceMappingURL=generalConstants.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"generalConstants.d.ts","sourceRoot":"","sources":["../../../../common/constants/generalConstants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,eAAe,QAAqB,CAAC"}
@@ -0,0 +1,15 @@
1
+ import { TKeysOfConst } from "../../utils/enumTypes";
2
+ export type TGroupConfigsNames = "crypto" | "crypto_cat" | "forex" | "forex_cat";
3
+ export type TGroupConfigsIdentifier = {
4
+ name: string;
5
+ id: number;
6
+ };
7
+ export declare const GROUP_CONFIGS_IDS: {
8
+ readonly basicCryptoGroup: 1;
9
+ readonly catCryptoGroup: 2;
10
+ readonly forexGroup: 3;
11
+ readonly catForexGroup: 4;
12
+ };
13
+ export type TGroupIds = (typeof GROUP_CONFIGS_IDS)[TKeysOfConst<typeof GROUP_CONFIGS_IDS>];
14
+ export declare const GROUP_CONFIGS_IDENTIFIERS: Record<TGroupConfigsNames, TGroupConfigsIdentifier>;
15
+ //# sourceMappingURL=groupIds.d.ts.map