lynx-client 0.0.4 → 0.0.6

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 (155) hide show
  1. package/dist/cjs/index.js +10 -2
  2. package/dist/cjs/lib/contractsIntegration/AcceptableImplementationClaimableAdminService/AcceptableImplementationClaimableAdminService.js +53 -0
  3. package/dist/cjs/lib/contractsIntegration/AcceptableImplementationClaimableAdminService/IAcceptableImplementationClaimableAdminService.js +2 -0
  4. package/dist/cjs/lib/contractsIntegration/AcceptableImplementationClaimableAdminService/index.js +5 -0
  5. package/dist/cjs/lib/contractsIntegration/LexPoolV1Service/ILexPoolV1Service.js +2 -0
  6. package/dist/cjs/lib/contractsIntegration/LexPoolV1Service/LexPoolV1Service.js +210 -0
  7. package/dist/cjs/lib/contractsIntegration/LexPoolV1Service/index.js +5 -0
  8. package/dist/cjs/lib/contractsIntegration/PNLRService/IPNLRService.js +2 -0
  9. package/dist/cjs/lib/contractsIntegration/PNLRService/PNLRService.js +124 -0
  10. package/dist/cjs/lib/contractsIntegration/PNLRService/index.js +5 -0
  11. package/dist/cjs/lib/contractsIntegration/PoolAccountantV1Service/IPoolAccountantV1Service.js +2 -0
  12. package/dist/cjs/lib/contractsIntegration/PoolAccountantV1Service/PoolAccountantV1Service.js +254 -0
  13. package/dist/cjs/lib/contractsIntegration/PoolAccountantV1Service/index.js +5 -0
  14. package/dist/cjs/lib/contractsIntegration/TradingFloorLensService/ITradingFloorLensService.js +9 -9
  15. package/dist/cjs/lib/contractsIntegration/TradingFloorLensService/TradingFloorLensService.js +9 -9
  16. package/dist/cjs/lib/typechain/contracts/AdministrationContracts/AcceptableImplementationClaimableAdmin.js +2 -0
  17. package/dist/cjs/lib/typechain/contracts/Lynx/Lex/PNLR/PNLR.js +2 -0
  18. package/dist/cjs/lib/typechain/contracts/Lynx/Lex/PoolAccountant/PoolAccountantV1.js +2 -0
  19. package/dist/cjs/lib/typechain/contracts/Lynx/interfaces/IPriceValidatorV1.js +2 -0
  20. package/dist/cjs/lib/typechain/factories/contracts/AdministrationContracts/AcceptableImplementationClaimableAdmin__factory.js +232 -0
  21. package/dist/cjs/lib/typechain/factories/contracts/Lynx/Lex/PNLR/PNLR__factory.js +585 -0
  22. package/dist/cjs/lib/typechain/factories/contracts/Lynx/Lex/PoolAccountant/PoolAccountantV1__factory.js +3762 -0
  23. package/dist/cjs/lib/typechain/factories/contracts/Lynx/interfaces/IPriceValidatorV1__factory.js +116 -0
  24. package/dist/cjs/lib/typechain/lynxSystem/intentsVerifiers/chipsIntentsVerifier/chipsIntentsVerifierPayloadTypes.js +37 -0
  25. package/dist/cjs/lib/typechain/lynxSystem/intentsVerifiers/liquidityIntentsVerifier/liquidityIntentsVerifierPayloadTypes.js +39 -0
  26. package/dist/cjs/lib/typechain/lynxSystem/intentsVerifiers/tradeIntentsVerifier/tradeIntentsVerifierPayloadTypes.js +152 -0
  27. package/dist/esm/index.d.ts +14 -0
  28. package/dist/esm/index.d.ts.map +1 -1
  29. package/dist/esm/index.js +10 -2
  30. package/dist/esm/lib/contractsIntegration/AcceptableImplementationClaimableAdminService/AcceptableImplementationClaimableAdminService.d.ts +10 -0
  31. package/dist/esm/lib/contractsIntegration/AcceptableImplementationClaimableAdminService/AcceptableImplementationClaimableAdminService.d.ts.map +1 -0
  32. package/dist/esm/lib/contractsIntegration/AcceptableImplementationClaimableAdminService/AcceptableImplementationClaimableAdminService.js +53 -0
  33. package/dist/esm/lib/contractsIntegration/AcceptableImplementationClaimableAdminService/IAcceptableImplementationClaimableAdminService.d.ts +21 -0
  34. package/dist/esm/lib/contractsIntegration/AcceptableImplementationClaimableAdminService/IAcceptableImplementationClaimableAdminService.d.ts.map +1 -0
  35. package/dist/esm/lib/contractsIntegration/AcceptableImplementationClaimableAdminService/IAcceptableImplementationClaimableAdminService.js +2 -0
  36. package/dist/esm/lib/contractsIntegration/AcceptableImplementationClaimableAdminService/index.d.ts +3 -0
  37. package/dist/esm/lib/contractsIntegration/AcceptableImplementationClaimableAdminService/index.d.ts.map +1 -0
  38. package/dist/esm/lib/contractsIntegration/AcceptableImplementationClaimableAdminService/index.js +5 -0
  39. package/dist/esm/lib/contractsIntegration/LexPoolV1Service/ILexPoolV1Service.d.ts +124 -0
  40. package/dist/esm/lib/contractsIntegration/LexPoolV1Service/ILexPoolV1Service.d.ts.map +1 -0
  41. package/dist/esm/lib/contractsIntegration/LexPoolV1Service/ILexPoolV1Service.js +2 -0
  42. package/dist/esm/lib/contractsIntegration/LexPoolV1Service/LexPoolV1Service.d.ts +24 -0
  43. package/dist/esm/lib/contractsIntegration/LexPoolV1Service/LexPoolV1Service.d.ts.map +1 -0
  44. package/dist/esm/lib/contractsIntegration/LexPoolV1Service/LexPoolV1Service.js +210 -0
  45. package/dist/esm/lib/contractsIntegration/LexPoolV1Service/index.d.ts +3 -0
  46. package/dist/esm/lib/contractsIntegration/LexPoolV1Service/index.d.ts.map +1 -0
  47. package/dist/esm/lib/contractsIntegration/LexPoolV1Service/index.js +5 -0
  48. package/dist/esm/lib/contractsIntegration/PNLRService/IPNLRService.d.ts +49 -0
  49. package/dist/esm/lib/contractsIntegration/PNLRService/IPNLRService.d.ts.map +1 -0
  50. package/dist/esm/lib/contractsIntegration/PNLRService/IPNLRService.js +2 -0
  51. package/dist/esm/lib/contractsIntegration/PNLRService/PNLRService.d.ts +14 -0
  52. package/dist/esm/lib/contractsIntegration/PNLRService/PNLRService.d.ts.map +1 -0
  53. package/dist/esm/lib/contractsIntegration/PNLRService/PNLRService.js +124 -0
  54. package/dist/esm/lib/contractsIntegration/PNLRService/index.d.ts +3 -0
  55. package/dist/esm/lib/contractsIntegration/PNLRService/index.d.ts.map +1 -0
  56. package/dist/esm/lib/contractsIntegration/PNLRService/index.js +5 -0
  57. package/dist/esm/lib/contractsIntegration/PoolAccountantV1Service/IPoolAccountantV1Service.d.ts +160 -0
  58. package/dist/esm/lib/contractsIntegration/PoolAccountantV1Service/IPoolAccountantV1Service.d.ts.map +1 -0
  59. package/dist/esm/lib/contractsIntegration/PoolAccountantV1Service/IPoolAccountantV1Service.js +2 -0
  60. package/dist/esm/lib/contractsIntegration/PoolAccountantV1Service/PoolAccountantV1Service.d.ts +31 -0
  61. package/dist/esm/lib/contractsIntegration/PoolAccountantV1Service/PoolAccountantV1Service.d.ts.map +1 -0
  62. package/dist/esm/lib/contractsIntegration/PoolAccountantV1Service/PoolAccountantV1Service.js +254 -0
  63. package/dist/esm/lib/contractsIntegration/PoolAccountantV1Service/index.d.ts +3 -0
  64. package/dist/esm/lib/contractsIntegration/PoolAccountantV1Service/index.d.ts.map +1 -0
  65. package/dist/esm/lib/contractsIntegration/PoolAccountantV1Service/index.js +5 -0
  66. package/dist/esm/lib/contractsIntegration/TradingFloorLensService/ITradingFloorLensService.d.ts +2 -11
  67. package/dist/esm/lib/contractsIntegration/TradingFloorLensService/ITradingFloorLensService.d.ts.map +1 -1
  68. package/dist/esm/lib/contractsIntegration/TradingFloorLensService/ITradingFloorLensService.js +9 -9
  69. package/dist/esm/lib/contractsIntegration/TradingFloorLensService/TradingFloorLensService.d.ts.map +1 -1
  70. package/dist/esm/lib/contractsIntegration/TradingFloorLensService/TradingFloorLensService.js +9 -9
  71. package/dist/esm/lib/typechain/contracts/AdministrationContracts/AcceptableImplementationClaimableAdmin.d.ts +143 -0
  72. package/dist/esm/lib/typechain/contracts/AdministrationContracts/AcceptableImplementationClaimableAdmin.d.ts.map +1 -0
  73. package/dist/esm/lib/typechain/contracts/AdministrationContracts/AcceptableImplementationClaimableAdmin.js +2 -0
  74. package/dist/esm/lib/typechain/contracts/Lynx/Lex/PNLR/PNLR.d.ts +266 -0
  75. package/dist/esm/lib/typechain/contracts/Lynx/Lex/PNLR/PNLR.d.ts.map +1 -0
  76. package/dist/esm/lib/typechain/contracts/Lynx/Lex/PNLR/PNLR.js +2 -0
  77. package/dist/esm/lib/typechain/contracts/Lynx/Lex/PoolAccountant/PoolAccountantV1.d.ts +2085 -0
  78. package/dist/esm/lib/typechain/contracts/Lynx/Lex/PoolAccountant/PoolAccountantV1.d.ts.map +1 -0
  79. package/dist/esm/lib/typechain/contracts/Lynx/Lex/PoolAccountant/PoolAccountantV1.js +2 -0
  80. package/dist/esm/lib/typechain/contracts/Lynx/interfaces/IPriceValidatorV1.d.ts +72 -0
  81. package/dist/esm/lib/typechain/contracts/Lynx/interfaces/IPriceValidatorV1.d.ts.map +1 -0
  82. package/dist/esm/lib/typechain/contracts/Lynx/interfaces/IPriceValidatorV1.js +2 -0
  83. package/dist/esm/lib/typechain/factories/contracts/AdministrationContracts/AcceptableImplementationClaimableAdmin__factory.d.ts +173 -0
  84. package/dist/esm/lib/typechain/factories/contracts/AdministrationContracts/AcceptableImplementationClaimableAdmin__factory.d.ts.map +1 -0
  85. package/dist/esm/lib/typechain/factories/contracts/AdministrationContracts/AcceptableImplementationClaimableAdmin__factory.js +232 -0
  86. package/dist/esm/lib/typechain/factories/contracts/Lynx/Lex/PNLR/PNLR__factory.d.ts +439 -0
  87. package/dist/esm/lib/typechain/factories/contracts/Lynx/Lex/PNLR/PNLR__factory.d.ts.map +1 -0
  88. package/dist/esm/lib/typechain/factories/contracts/Lynx/Lex/PNLR/PNLR__factory.js +585 -0
  89. package/dist/esm/lib/typechain/factories/contracts/Lynx/Lex/PoolAccountant/PoolAccountantV1__factory.d.ts +2899 -0
  90. package/dist/esm/lib/typechain/factories/contracts/Lynx/Lex/PoolAccountant/PoolAccountantV1__factory.d.ts.map +1 -0
  91. package/dist/esm/lib/typechain/factories/contracts/Lynx/Lex/PoolAccountant/PoolAccountantV1__factory.js +3762 -0
  92. package/dist/esm/lib/typechain/factories/contracts/Lynx/interfaces/IPriceValidatorV1__factory.d.ts +81 -0
  93. package/dist/esm/lib/typechain/factories/contracts/Lynx/interfaces/IPriceValidatorV1__factory.d.ts.map +1 -0
  94. package/dist/esm/lib/typechain/factories/contracts/Lynx/interfaces/IPriceValidatorV1__factory.js +116 -0
  95. package/dist/esm/lib/typechain/lynxSystem/intentsVerifiers/chipsIntentsVerifier/chipsIntentsVerifierPayloadTypes.d.ts +9 -0
  96. package/dist/esm/lib/typechain/lynxSystem/intentsVerifiers/chipsIntentsVerifier/chipsIntentsVerifierPayloadTypes.d.ts.map +1 -0
  97. package/dist/esm/lib/typechain/lynxSystem/intentsVerifiers/chipsIntentsVerifier/chipsIntentsVerifierPayloadTypes.js +37 -0
  98. package/dist/esm/lib/typechain/lynxSystem/intentsVerifiers/liquidityIntentsVerifier/liquidityIntentsVerifierPayloadTypes.d.ts +9 -0
  99. package/dist/esm/lib/typechain/lynxSystem/intentsVerifiers/liquidityIntentsVerifier/liquidityIntentsVerifierPayloadTypes.d.ts.map +1 -0
  100. package/dist/esm/lib/typechain/lynxSystem/intentsVerifiers/liquidityIntentsVerifier/liquidityIntentsVerifierPayloadTypes.js +39 -0
  101. package/dist/esm/lib/typechain/lynxSystem/intentsVerifiers/tradeIntentsVerifier/tradeIntentsVerifierPayloadTypes.d.ts +13 -0
  102. package/dist/esm/lib/typechain/lynxSystem/intentsVerifiers/tradeIntentsVerifier/tradeIntentsVerifierPayloadTypes.d.ts.map +1 -0
  103. package/dist/esm/lib/typechain/lynxSystem/intentsVerifiers/tradeIntentsVerifier/tradeIntentsVerifierPayloadTypes.js +152 -0
  104. package/dist/types/index.d.ts +14 -0
  105. package/dist/types/index.d.ts.map +1 -1
  106. package/dist/types/lib/contractsIntegration/AcceptableImplementationClaimableAdminService/AcceptableImplementationClaimableAdminService.d.ts +10 -0
  107. package/dist/types/lib/contractsIntegration/AcceptableImplementationClaimableAdminService/AcceptableImplementationClaimableAdminService.d.ts.map +1 -0
  108. package/dist/types/lib/contractsIntegration/AcceptableImplementationClaimableAdminService/IAcceptableImplementationClaimableAdminService.d.ts +21 -0
  109. package/dist/types/lib/contractsIntegration/AcceptableImplementationClaimableAdminService/IAcceptableImplementationClaimableAdminService.d.ts.map +1 -0
  110. package/dist/types/lib/contractsIntegration/AcceptableImplementationClaimableAdminService/index.d.ts +3 -0
  111. package/dist/types/lib/contractsIntegration/AcceptableImplementationClaimableAdminService/index.d.ts.map +1 -0
  112. package/dist/types/lib/contractsIntegration/LexPoolV1Service/ILexPoolV1Service.d.ts +124 -0
  113. package/dist/types/lib/contractsIntegration/LexPoolV1Service/ILexPoolV1Service.d.ts.map +1 -0
  114. package/dist/types/lib/contractsIntegration/LexPoolV1Service/LexPoolV1Service.d.ts +24 -0
  115. package/dist/types/lib/contractsIntegration/LexPoolV1Service/LexPoolV1Service.d.ts.map +1 -0
  116. package/dist/types/lib/contractsIntegration/LexPoolV1Service/index.d.ts +3 -0
  117. package/dist/types/lib/contractsIntegration/LexPoolV1Service/index.d.ts.map +1 -0
  118. package/dist/types/lib/contractsIntegration/PNLRService/IPNLRService.d.ts +49 -0
  119. package/dist/types/lib/contractsIntegration/PNLRService/IPNLRService.d.ts.map +1 -0
  120. package/dist/types/lib/contractsIntegration/PNLRService/PNLRService.d.ts +14 -0
  121. package/dist/types/lib/contractsIntegration/PNLRService/PNLRService.d.ts.map +1 -0
  122. package/dist/types/lib/contractsIntegration/PNLRService/index.d.ts +3 -0
  123. package/dist/types/lib/contractsIntegration/PNLRService/index.d.ts.map +1 -0
  124. package/dist/types/lib/contractsIntegration/PoolAccountantV1Service/IPoolAccountantV1Service.d.ts +160 -0
  125. package/dist/types/lib/contractsIntegration/PoolAccountantV1Service/IPoolAccountantV1Service.d.ts.map +1 -0
  126. package/dist/types/lib/contractsIntegration/PoolAccountantV1Service/PoolAccountantV1Service.d.ts +31 -0
  127. package/dist/types/lib/contractsIntegration/PoolAccountantV1Service/PoolAccountantV1Service.d.ts.map +1 -0
  128. package/dist/types/lib/contractsIntegration/PoolAccountantV1Service/index.d.ts +3 -0
  129. package/dist/types/lib/contractsIntegration/PoolAccountantV1Service/index.d.ts.map +1 -0
  130. package/dist/types/lib/contractsIntegration/TradingFloorLensService/ITradingFloorLensService.d.ts +2 -11
  131. package/dist/types/lib/contractsIntegration/TradingFloorLensService/ITradingFloorLensService.d.ts.map +1 -1
  132. package/dist/types/lib/contractsIntegration/TradingFloorLensService/TradingFloorLensService.d.ts.map +1 -1
  133. package/dist/types/lib/typechain/contracts/AdministrationContracts/AcceptableImplementationClaimableAdmin.d.ts +143 -0
  134. package/dist/types/lib/typechain/contracts/AdministrationContracts/AcceptableImplementationClaimableAdmin.d.ts.map +1 -0
  135. package/dist/types/lib/typechain/contracts/Lynx/Lex/PNLR/PNLR.d.ts +266 -0
  136. package/dist/types/lib/typechain/contracts/Lynx/Lex/PNLR/PNLR.d.ts.map +1 -0
  137. package/dist/types/lib/typechain/contracts/Lynx/Lex/PoolAccountant/PoolAccountantV1.d.ts +2085 -0
  138. package/dist/types/lib/typechain/contracts/Lynx/Lex/PoolAccountant/PoolAccountantV1.d.ts.map +1 -0
  139. package/dist/types/lib/typechain/contracts/Lynx/interfaces/IPriceValidatorV1.d.ts +72 -0
  140. package/dist/types/lib/typechain/contracts/Lynx/interfaces/IPriceValidatorV1.d.ts.map +1 -0
  141. package/dist/types/lib/typechain/factories/contracts/AdministrationContracts/AcceptableImplementationClaimableAdmin__factory.d.ts +173 -0
  142. package/dist/types/lib/typechain/factories/contracts/AdministrationContracts/AcceptableImplementationClaimableAdmin__factory.d.ts.map +1 -0
  143. package/dist/types/lib/typechain/factories/contracts/Lynx/Lex/PNLR/PNLR__factory.d.ts +439 -0
  144. package/dist/types/lib/typechain/factories/contracts/Lynx/Lex/PNLR/PNLR__factory.d.ts.map +1 -0
  145. package/dist/types/lib/typechain/factories/contracts/Lynx/Lex/PoolAccountant/PoolAccountantV1__factory.d.ts +2899 -0
  146. package/dist/types/lib/typechain/factories/contracts/Lynx/Lex/PoolAccountant/PoolAccountantV1__factory.d.ts.map +1 -0
  147. package/dist/types/lib/typechain/factories/contracts/Lynx/interfaces/IPriceValidatorV1__factory.d.ts +81 -0
  148. package/dist/types/lib/typechain/factories/contracts/Lynx/interfaces/IPriceValidatorV1__factory.d.ts.map +1 -0
  149. package/dist/types/lib/typechain/lynxSystem/intentsVerifiers/chipsIntentsVerifier/chipsIntentsVerifierPayloadTypes.d.ts +9 -0
  150. package/dist/types/lib/typechain/lynxSystem/intentsVerifiers/chipsIntentsVerifier/chipsIntentsVerifierPayloadTypes.d.ts.map +1 -0
  151. package/dist/types/lib/typechain/lynxSystem/intentsVerifiers/liquidityIntentsVerifier/liquidityIntentsVerifierPayloadTypes.d.ts +9 -0
  152. package/dist/types/lib/typechain/lynxSystem/intentsVerifiers/liquidityIntentsVerifier/liquidityIntentsVerifierPayloadTypes.d.ts.map +1 -0
  153. package/dist/types/lib/typechain/lynxSystem/intentsVerifiers/tradeIntentsVerifier/tradeIntentsVerifierPayloadTypes.d.ts +13 -0
  154. package/dist/types/lib/typechain/lynxSystem/intentsVerifiers/tradeIntentsVerifier/tradeIntentsVerifierPayloadTypes.d.ts.map +1 -0
  155. package/package.json +1 -1
@@ -0,0 +1,2085 @@
1
+ import type { BaseContract, BigNumberish, BytesLike, FunctionFragment, Result, Interface, EventFragment, AddressLike, ContractRunner, ContractMethod, Listener } from "ethers";
2
+ import type { TypedContractEvent, TypedDeferredTopicFilter, TypedEventLog, TypedLogDescription, TypedListener, TypedContractMethod } from "../../../../common";
3
+ export declare namespace PoolAccountantStructs {
4
+ type FeeStruct = {
5
+ id: BigNumberish;
6
+ openFeeF: BigNumberish;
7
+ closeFeeF: BigNumberish;
8
+ performanceFeeF: BigNumberish;
9
+ };
10
+ type FeeStructOutput = [
11
+ id: bigint,
12
+ openFeeF: bigint,
13
+ closeFeeF: bigint,
14
+ performanceFeeF: bigint
15
+ ] & {
16
+ id: bigint;
17
+ openFeeF: bigint;
18
+ closeFeeF: bigint;
19
+ performanceFeeF: bigint;
20
+ };
21
+ type PositionRegistrationParamsStruct = {
22
+ collateral: BigNumberish;
23
+ leverage: BigNumberish;
24
+ long: boolean;
25
+ openPrice: BigNumberish;
26
+ tp: BigNumberish;
27
+ };
28
+ type PositionRegistrationParamsStructOutput = [
29
+ collateral: bigint,
30
+ leverage: bigint,
31
+ long: boolean,
32
+ openPrice: bigint,
33
+ tp: bigint
34
+ ] & {
35
+ collateral: bigint;
36
+ leverage: bigint;
37
+ long: boolean;
38
+ openPrice: bigint;
39
+ tp: bigint;
40
+ };
41
+ type GroupStruct = {
42
+ id: BigNumberish;
43
+ minLeverage: BigNumberish;
44
+ maxLeverage: BigNumberish;
45
+ maxBorrowF: BigNumberish;
46
+ maxPositionSize: BigNumberish;
47
+ minOpenFee: BigNumberish;
48
+ };
49
+ type GroupStructOutput = [
50
+ id: bigint,
51
+ minLeverage: bigint,
52
+ maxLeverage: bigint,
53
+ maxBorrowF: bigint,
54
+ maxPositionSize: bigint,
55
+ minOpenFee: bigint
56
+ ] & {
57
+ id: bigint;
58
+ minLeverage: bigint;
59
+ maxLeverage: bigint;
60
+ maxBorrowF: bigint;
61
+ maxPositionSize: bigint;
62
+ minOpenFee: bigint;
63
+ };
64
+ type PairStruct = {
65
+ id: BigNumberish;
66
+ groupId: BigNumberish;
67
+ feeId: BigNumberish;
68
+ minLeverage: BigNumberish;
69
+ maxLeverage: BigNumberish;
70
+ maxBorrowF: BigNumberish;
71
+ maxPositionSize: BigNumberish;
72
+ maxGain: BigNumberish;
73
+ maxOpenInterest: BigNumberish;
74
+ maxSkew: BigNumberish;
75
+ minOpenFee: BigNumberish;
76
+ minPerformanceFee: BigNumberish;
77
+ };
78
+ type PairStructOutput = [
79
+ id: bigint,
80
+ groupId: bigint,
81
+ feeId: bigint,
82
+ minLeverage: bigint,
83
+ maxLeverage: bigint,
84
+ maxBorrowF: bigint,
85
+ maxPositionSize: bigint,
86
+ maxGain: bigint,
87
+ maxOpenInterest: bigint,
88
+ maxSkew: bigint,
89
+ minOpenFee: bigint,
90
+ minPerformanceFee: bigint
91
+ ] & {
92
+ id: bigint;
93
+ groupId: bigint;
94
+ feeId: bigint;
95
+ minLeverage: bigint;
96
+ maxLeverage: bigint;
97
+ maxBorrowF: bigint;
98
+ maxPositionSize: bigint;
99
+ maxGain: bigint;
100
+ maxOpenInterest: bigint;
101
+ maxSkew: bigint;
102
+ minOpenFee: bigint;
103
+ minPerformanceFee: bigint;
104
+ };
105
+ }
106
+ export interface PoolAccountantV1Interface extends Interface {
107
+ getFunction(nameOrSignature: "ACCURACY_IMPROVEMENT_SCALE" | "FRACTION_SCALE" | "LEVERAGE_SCALE" | "PRECISION" | "_become" | "accrualBlockTimestamp" | "accrueFunding" | "accrueInterest()" | "accrueInterest(uint256)" | "addFee" | "addGroup" | "addPair" | "addPairs" | "adjustClosePrice" | "admin" | "borrowIndex" | "borrowRateMax" | "borrowsAndInterestShare" | "calcAbsoluteSkew" | "calcAccrueFundingValues" | "calcAccrueInterestValues(uint256)" | "calcAccrueInterestValues()" | "calcBorrowAmount" | "calcClosingFee" | "calcPerformanceFee" | "calcTradeDynamicFees" | "fees" | "feesCount" | "frm" | "fundingIndicesCalculation" | "fundingRateMax" | "fundingShare" | "fundingShareFactor" | "generatePositionHashId" | "getAccFundingLong" | "getAccFundingShort" | "getAccFundingUpdateBlock" | "getAllSupportedFeeIds" | "getAllSupportedGroupsIds" | "getAllSupportedPairIds" | "getTradeClosingValues" | "getTradeFunding" | "getTradeFundingPure" | "getTradeInitialAccBorrowIndex" | "getTradeInitialAccFundingPerOi" | "getTradeInterest" | "getTradeInterestPure" | "getTradeLiquidationPrice" | "getTradeLiquidationPriceView" | "getTradeValueView" | "groupBorrows" | "groupMaxBorrow" | "groups" | "groupsCount" | "implementation" | "initialize" | "initializeLexCommon" | "interestShare" | "interestShareFactor" | "irm" | "lexPartF" | "lexPool" | "liquidationFeeF" | "liquidationThresholdF" | "maxGainF" | "maxTotalBorrows" | "maxVirtualUtilization" | "minOpenFee" | "openInterestInPair" | "pairBorrows" | "pairCloseFeeF" | "pairFunding" | "pairMaxBorrow" | "pairMinOpenFee" | "pairOpenFeeF" | "pairPerformanceFeeF" | "pairTotalOpenInterest" | "pairTotalRatioOiToP" | "pairs" | "pairsCount" | "pendingAdmin" | "pendingImplementation" | "pricePnL" | "readAndZeroReserves" | "realizedFundingSurplusDeficit" | "registerCloseTrade" | "registerOpenTrade" | "registerUpdateTp" | "registry" | "resetTradersPairGains" | "setBorrowRateMax" | "setFrm" | "setFundingRateMax" | "setFundingShareFactor" | "setInterestShareFactor" | "setIrm" | "setIrmHard" | "setLexPartF" | "setLiquidationFeeF" | "setLiquidationThresholdF" | "setMaxGainF" | "setMaxTotalBorrows" | "setMaxVirtualUtilization" | "setMinOpenFee" | "setTradeIncentivizer" | "supportedFeeIds" | "supportedGroupIds" | "supportedPairIds" | "totalBorrows" | "totalInterest" | "totalReservesView" | "tradeAccInterest" | "tradeIncentivizer" | "tradeInitialAccFees" | "tradersPairGains" | "tradingFloor" | "underlying" | "unrealizedFunding" | "updateFee" | "updateGroup" | "updatePair" | "verifyLeveragedPosition" | "verifyMaxPercentProfit" | "verifyOpenFee" | "verifyPerformanceFee" | "verifyTradersPairGains" | "verifyUtilizationForTraders"): FunctionFragment;
108
+ getEvent(nameOrSignatureOrTopic: "AccrueFunding" | "AccrueInterest" | "AddressUpdated" | "Borrow" | "FeeAdded" | "FeeUpdated" | "FeesCharged" | "GroupAdded" | "GroupUpdated" | "MaxOpenInterestUpdated" | "NumberUpdated" | "PairAdded" | "PairUpdated" | "PerformanceFeeCharging" | "ProtocolFundingShareAccrued" | "Repay" | "TradeInitialAccFeesStored" | "TradersPairGainsReset"): EventFragment;
109
+ encodeFunctionData(functionFragment: "ACCURACY_IMPROVEMENT_SCALE", values?: undefined): string;
110
+ encodeFunctionData(functionFragment: "FRACTION_SCALE", values?: undefined): string;
111
+ encodeFunctionData(functionFragment: "LEVERAGE_SCALE", values?: undefined): string;
112
+ encodeFunctionData(functionFragment: "PRECISION", values?: undefined): string;
113
+ encodeFunctionData(functionFragment: "_become", values: [AddressLike]): string;
114
+ encodeFunctionData(functionFragment: "accrualBlockTimestamp", values?: undefined): string;
115
+ encodeFunctionData(functionFragment: "accrueFunding", values: [BigNumberish]): string;
116
+ encodeFunctionData(functionFragment: "accrueInterest()", values?: undefined): string;
117
+ encodeFunctionData(functionFragment: "accrueInterest(uint256)", values: [BigNumberish]): string;
118
+ encodeFunctionData(functionFragment: "addFee", values: [PoolAccountantStructs.FeeStruct]): string;
119
+ encodeFunctionData(functionFragment: "addGroup", values: [PoolAccountantStructs.GroupStruct]): string;
120
+ encodeFunctionData(functionFragment: "addPair", values: [PoolAccountantStructs.PairStruct]): string;
121
+ encodeFunctionData(functionFragment: "addPairs", values: [PoolAccountantStructs.PairStruct[]]): string;
122
+ encodeFunctionData(functionFragment: "adjustClosePrice", values: [BigNumberish, BigNumberish, boolean]): string;
123
+ encodeFunctionData(functionFragment: "admin", values?: undefined): string;
124
+ encodeFunctionData(functionFragment: "borrowIndex", values?: undefined): string;
125
+ encodeFunctionData(functionFragment: "borrowRateMax", values?: undefined): string;
126
+ encodeFunctionData(functionFragment: "borrowsAndInterestShare", values?: undefined): string;
127
+ encodeFunctionData(functionFragment: "calcAbsoluteSkew", values: [BigNumberish, BigNumberish, boolean, BigNumberish]): string;
128
+ encodeFunctionData(functionFragment: "calcAccrueFundingValues", values: [BigNumberish]): string;
129
+ encodeFunctionData(functionFragment: "calcAccrueInterestValues(uint256)", values: [BigNumberish]): string;
130
+ encodeFunctionData(functionFragment: "calcAccrueInterestValues()", values?: undefined): string;
131
+ encodeFunctionData(functionFragment: "calcBorrowAmount", values: [BigNumberish, BigNumberish, boolean, BigNumberish, BigNumberish]): string;
132
+ encodeFunctionData(functionFragment: "calcClosingFee", values: [BigNumberish, BigNumberish, BigNumberish]): string;
133
+ encodeFunctionData(functionFragment: "calcPerformanceFee", values: [BigNumberish, BigNumberish, BigNumberish]): string;
134
+ encodeFunctionData(functionFragment: "calcTradeDynamicFees", values: [
135
+ BytesLike,
136
+ BigNumberish,
137
+ boolean,
138
+ BigNumberish,
139
+ BigNumberish,
140
+ BigNumberish,
141
+ BigNumberish
142
+ ]): string;
143
+ encodeFunctionData(functionFragment: "fees", values: [BigNumberish]): string;
144
+ encodeFunctionData(functionFragment: "feesCount", values?: undefined): string;
145
+ encodeFunctionData(functionFragment: "frm", values?: undefined): string;
146
+ encodeFunctionData(functionFragment: "fundingIndicesCalculation", values: [BigNumberish, BigNumberish, BigNumberish, BigNumberish]): string;
147
+ encodeFunctionData(functionFragment: "fundingRateMax", values?: undefined): string;
148
+ encodeFunctionData(functionFragment: "fundingShare", values?: undefined): string;
149
+ encodeFunctionData(functionFragment: "fundingShareFactor", values?: undefined): string;
150
+ encodeFunctionData(functionFragment: "generatePositionHashId", values: [AddressLike, AddressLike, BigNumberish, BigNumberish]): string;
151
+ encodeFunctionData(functionFragment: "getAccFundingLong", values: [BigNumberish]): string;
152
+ encodeFunctionData(functionFragment: "getAccFundingShort", values: [BigNumberish]): string;
153
+ encodeFunctionData(functionFragment: "getAccFundingUpdateBlock", values: [BigNumberish]): string;
154
+ encodeFunctionData(functionFragment: "getAllSupportedFeeIds", values?: undefined): string;
155
+ encodeFunctionData(functionFragment: "getAllSupportedGroupsIds", values?: undefined): string;
156
+ encodeFunctionData(functionFragment: "getAllSupportedPairIds", values?: undefined): string;
157
+ encodeFunctionData(functionFragment: "getTradeClosingValues", values: [
158
+ BytesLike,
159
+ BigNumberish,
160
+ PoolAccountantStructs.PositionRegistrationParamsStruct,
161
+ BigNumberish,
162
+ boolean
163
+ ]): string;
164
+ encodeFunctionData(functionFragment: "getTradeFunding", values: [BytesLike, BigNumberish, boolean, BigNumberish, BigNumberish]): string;
165
+ encodeFunctionData(functionFragment: "getTradeFundingPure", values: [BigNumberish, BigNumberish, BigNumberish, BigNumberish]): string;
166
+ encodeFunctionData(functionFragment: "getTradeInitialAccBorrowIndex", values: [BytesLike]): string;
167
+ encodeFunctionData(functionFragment: "getTradeInitialAccFundingPerOi", values: [BytesLike]): string;
168
+ encodeFunctionData(functionFragment: "getTradeInterest", values: [BytesLike, BigNumberish]): string;
169
+ encodeFunctionData(functionFragment: "getTradeInterestPure", values: [BigNumberish, BigNumberish, BigNumberish, BigNumberish]): string;
170
+ encodeFunctionData(functionFragment: "getTradeLiquidationPrice", values: [
171
+ BytesLike,
172
+ BigNumberish,
173
+ BigNumberish,
174
+ BigNumberish,
175
+ boolean,
176
+ BigNumberish,
177
+ BigNumberish
178
+ ]): string;
179
+ encodeFunctionData(functionFragment: "getTradeLiquidationPriceView", values: [
180
+ BigNumberish,
181
+ boolean,
182
+ BigNumberish,
183
+ BigNumberish,
184
+ BigNumberish,
185
+ BigNumberish,
186
+ BigNumberish
187
+ ]): string;
188
+ encodeFunctionData(functionFragment: "getTradeValueView", values: [
189
+ BigNumberish,
190
+ BigNumberish,
191
+ BigNumberish,
192
+ BigNumberish,
193
+ BigNumberish,
194
+ boolean
195
+ ]): string;
196
+ encodeFunctionData(functionFragment: "groupBorrows", values: [BigNumberish]): string;
197
+ encodeFunctionData(functionFragment: "groupMaxBorrow", values: [BigNumberish]): string;
198
+ encodeFunctionData(functionFragment: "groups", values: [BigNumberish]): string;
199
+ encodeFunctionData(functionFragment: "groupsCount", values?: undefined): string;
200
+ encodeFunctionData(functionFragment: "implementation", values?: undefined): string;
201
+ encodeFunctionData(functionFragment: "initialize", values: [AddressLike, AddressLike]): string;
202
+ encodeFunctionData(functionFragment: "initializeLexCommon", values: [AddressLike, AddressLike]): string;
203
+ encodeFunctionData(functionFragment: "interestShare", values?: undefined): string;
204
+ encodeFunctionData(functionFragment: "interestShareFactor", values?: undefined): string;
205
+ encodeFunctionData(functionFragment: "irm", values?: undefined): string;
206
+ encodeFunctionData(functionFragment: "lexPartF", values?: undefined): string;
207
+ encodeFunctionData(functionFragment: "lexPool", values?: undefined): string;
208
+ encodeFunctionData(functionFragment: "liquidationFeeF", values?: undefined): string;
209
+ encodeFunctionData(functionFragment: "liquidationThresholdF", values?: undefined): string;
210
+ encodeFunctionData(functionFragment: "maxGainF", values?: undefined): string;
211
+ encodeFunctionData(functionFragment: "maxTotalBorrows", values?: undefined): string;
212
+ encodeFunctionData(functionFragment: "maxVirtualUtilization", values?: undefined): string;
213
+ encodeFunctionData(functionFragment: "minOpenFee", values?: undefined): string;
214
+ encodeFunctionData(functionFragment: "openInterestInPair", values: [BigNumberish]): string;
215
+ encodeFunctionData(functionFragment: "pairBorrows", values: [BigNumberish]): string;
216
+ encodeFunctionData(functionFragment: "pairCloseFeeF", values: [BigNumberish]): string;
217
+ encodeFunctionData(functionFragment: "pairFunding", values: [BigNumberish]): string;
218
+ encodeFunctionData(functionFragment: "pairMaxBorrow", values: [BigNumberish]): string;
219
+ encodeFunctionData(functionFragment: "pairMinOpenFee", values: [BigNumberish]): string;
220
+ encodeFunctionData(functionFragment: "pairOpenFeeF", values: [BigNumberish]): string;
221
+ encodeFunctionData(functionFragment: "pairPerformanceFeeF", values: [BigNumberish]): string;
222
+ encodeFunctionData(functionFragment: "pairTotalOpenInterest", values: [BigNumberish]): string;
223
+ encodeFunctionData(functionFragment: "pairTotalRatioOiToP", values: [BigNumberish]): string;
224
+ encodeFunctionData(functionFragment: "pairs", values: [BigNumberish]): string;
225
+ encodeFunctionData(functionFragment: "pairsCount", values?: undefined): string;
226
+ encodeFunctionData(functionFragment: "pendingAdmin", values?: undefined): string;
227
+ encodeFunctionData(functionFragment: "pendingImplementation", values?: undefined): string;
228
+ encodeFunctionData(functionFragment: "pricePnL", values: [BigNumberish, BigNumberish]): string;
229
+ encodeFunctionData(functionFragment: "readAndZeroReserves", values?: undefined): string;
230
+ encodeFunctionData(functionFragment: "realizedFundingSurplusDeficit", values?: undefined): string;
231
+ encodeFunctionData(functionFragment: "registerCloseTrade", values: [
232
+ BytesLike,
233
+ AddressLike,
234
+ BigNumberish,
235
+ PoolAccountantStructs.PositionRegistrationParamsStruct,
236
+ BigNumberish,
237
+ BigNumberish
238
+ ]): string;
239
+ encodeFunctionData(functionFragment: "registerOpenTrade", values: [
240
+ BytesLike,
241
+ AddressLike,
242
+ BigNumberish,
243
+ BigNumberish,
244
+ BigNumberish,
245
+ boolean,
246
+ BigNumberish,
247
+ BigNumberish
248
+ ]): string;
249
+ encodeFunctionData(functionFragment: "registerUpdateTp", values: [
250
+ BytesLike,
251
+ AddressLike,
252
+ BigNumberish,
253
+ BigNumberish,
254
+ BigNumberish,
255
+ boolean,
256
+ BigNumberish,
257
+ BigNumberish,
258
+ BigNumberish
259
+ ]): string;
260
+ encodeFunctionData(functionFragment: "registry", values?: undefined): string;
261
+ encodeFunctionData(functionFragment: "resetTradersPairGains", values: [BigNumberish]): string;
262
+ encodeFunctionData(functionFragment: "setBorrowRateMax", values: [BigNumberish]): string;
263
+ encodeFunctionData(functionFragment: "setFrm", values: [AddressLike]): string;
264
+ encodeFunctionData(functionFragment: "setFundingRateMax", values: [BigNumberish]): string;
265
+ encodeFunctionData(functionFragment: "setFundingShareFactor", values: [BigNumberish]): string;
266
+ encodeFunctionData(functionFragment: "setInterestShareFactor", values: [BigNumberish]): string;
267
+ encodeFunctionData(functionFragment: "setIrm", values: [AddressLike]): string;
268
+ encodeFunctionData(functionFragment: "setIrmHard", values: [AddressLike]): string;
269
+ encodeFunctionData(functionFragment: "setLexPartF", values: [BigNumberish]): string;
270
+ encodeFunctionData(functionFragment: "setLiquidationFeeF", values: [BigNumberish]): string;
271
+ encodeFunctionData(functionFragment: "setLiquidationThresholdF", values: [BigNumberish]): string;
272
+ encodeFunctionData(functionFragment: "setMaxGainF", values: [BigNumberish]): string;
273
+ encodeFunctionData(functionFragment: "setMaxTotalBorrows", values: [BigNumberish]): string;
274
+ encodeFunctionData(functionFragment: "setMaxVirtualUtilization", values: [BigNumberish]): string;
275
+ encodeFunctionData(functionFragment: "setMinOpenFee", values: [BigNumberish]): string;
276
+ encodeFunctionData(functionFragment: "setTradeIncentivizer", values: [AddressLike]): string;
277
+ encodeFunctionData(functionFragment: "supportedFeeIds", values: [BigNumberish]): string;
278
+ encodeFunctionData(functionFragment: "supportedGroupIds", values: [BigNumberish]): string;
279
+ encodeFunctionData(functionFragment: "supportedPairIds", values: [BigNumberish]): string;
280
+ encodeFunctionData(functionFragment: "totalBorrows", values?: undefined): string;
281
+ encodeFunctionData(functionFragment: "totalInterest", values?: undefined): string;
282
+ encodeFunctionData(functionFragment: "totalReservesView", values?: undefined): string;
283
+ encodeFunctionData(functionFragment: "tradeAccInterest", values: [BytesLike]): string;
284
+ encodeFunctionData(functionFragment: "tradeIncentivizer", values?: undefined): string;
285
+ encodeFunctionData(functionFragment: "tradeInitialAccFees", values: [BytesLike]): string;
286
+ encodeFunctionData(functionFragment: "tradersPairGains", values: [BigNumberish]): string;
287
+ encodeFunctionData(functionFragment: "tradingFloor", values?: undefined): string;
288
+ encodeFunctionData(functionFragment: "underlying", values?: undefined): string;
289
+ encodeFunctionData(functionFragment: "unrealizedFunding", values?: undefined): string;
290
+ encodeFunctionData(functionFragment: "updateFee", values: [PoolAccountantStructs.FeeStruct]): string;
291
+ encodeFunctionData(functionFragment: "updateGroup", values: [PoolAccountantStructs.GroupStruct]): string;
292
+ encodeFunctionData(functionFragment: "updatePair", values: [PoolAccountantStructs.PairStruct]): string;
293
+ encodeFunctionData(functionFragment: "verifyLeveragedPosition", values: [BigNumberish, BigNumberish, BigNumberish]): string;
294
+ encodeFunctionData(functionFragment: "verifyMaxPercentProfit", values: [BigNumberish, BigNumberish, BigNumberish, boolean]): string;
295
+ encodeFunctionData(functionFragment: "verifyOpenFee", values: [BigNumberish, BigNumberish]): string;
296
+ encodeFunctionData(functionFragment: "verifyPerformanceFee", values: [BigNumberish, BigNumberish]): string;
297
+ encodeFunctionData(functionFragment: "verifyTradersPairGains", values: [BigNumberish]): string;
298
+ encodeFunctionData(functionFragment: "verifyUtilizationForTraders", values: [BigNumberish, BigNumberish, BigNumberish]): string;
299
+ decodeFunctionResult(functionFragment: "ACCURACY_IMPROVEMENT_SCALE", data: BytesLike): Result;
300
+ decodeFunctionResult(functionFragment: "FRACTION_SCALE", data: BytesLike): Result;
301
+ decodeFunctionResult(functionFragment: "LEVERAGE_SCALE", data: BytesLike): Result;
302
+ decodeFunctionResult(functionFragment: "PRECISION", data: BytesLike): Result;
303
+ decodeFunctionResult(functionFragment: "_become", data: BytesLike): Result;
304
+ decodeFunctionResult(functionFragment: "accrualBlockTimestamp", data: BytesLike): Result;
305
+ decodeFunctionResult(functionFragment: "accrueFunding", data: BytesLike): Result;
306
+ decodeFunctionResult(functionFragment: "accrueInterest()", data: BytesLike): Result;
307
+ decodeFunctionResult(functionFragment: "accrueInterest(uint256)", data: BytesLike): Result;
308
+ decodeFunctionResult(functionFragment: "addFee", data: BytesLike): Result;
309
+ decodeFunctionResult(functionFragment: "addGroup", data: BytesLike): Result;
310
+ decodeFunctionResult(functionFragment: "addPair", data: BytesLike): Result;
311
+ decodeFunctionResult(functionFragment: "addPairs", data: BytesLike): Result;
312
+ decodeFunctionResult(functionFragment: "adjustClosePrice", data: BytesLike): Result;
313
+ decodeFunctionResult(functionFragment: "admin", data: BytesLike): Result;
314
+ decodeFunctionResult(functionFragment: "borrowIndex", data: BytesLike): Result;
315
+ decodeFunctionResult(functionFragment: "borrowRateMax", data: BytesLike): Result;
316
+ decodeFunctionResult(functionFragment: "borrowsAndInterestShare", data: BytesLike): Result;
317
+ decodeFunctionResult(functionFragment: "calcAbsoluteSkew", data: BytesLike): Result;
318
+ decodeFunctionResult(functionFragment: "calcAccrueFundingValues", data: BytesLike): Result;
319
+ decodeFunctionResult(functionFragment: "calcAccrueInterestValues(uint256)", data: BytesLike): Result;
320
+ decodeFunctionResult(functionFragment: "calcAccrueInterestValues()", data: BytesLike): Result;
321
+ decodeFunctionResult(functionFragment: "calcBorrowAmount", data: BytesLike): Result;
322
+ decodeFunctionResult(functionFragment: "calcClosingFee", data: BytesLike): Result;
323
+ decodeFunctionResult(functionFragment: "calcPerformanceFee", data: BytesLike): Result;
324
+ decodeFunctionResult(functionFragment: "calcTradeDynamicFees", data: BytesLike): Result;
325
+ decodeFunctionResult(functionFragment: "fees", data: BytesLike): Result;
326
+ decodeFunctionResult(functionFragment: "feesCount", data: BytesLike): Result;
327
+ decodeFunctionResult(functionFragment: "frm", data: BytesLike): Result;
328
+ decodeFunctionResult(functionFragment: "fundingIndicesCalculation", data: BytesLike): Result;
329
+ decodeFunctionResult(functionFragment: "fundingRateMax", data: BytesLike): Result;
330
+ decodeFunctionResult(functionFragment: "fundingShare", data: BytesLike): Result;
331
+ decodeFunctionResult(functionFragment: "fundingShareFactor", data: BytesLike): Result;
332
+ decodeFunctionResult(functionFragment: "generatePositionHashId", data: BytesLike): Result;
333
+ decodeFunctionResult(functionFragment: "getAccFundingLong", data: BytesLike): Result;
334
+ decodeFunctionResult(functionFragment: "getAccFundingShort", data: BytesLike): Result;
335
+ decodeFunctionResult(functionFragment: "getAccFundingUpdateBlock", data: BytesLike): Result;
336
+ decodeFunctionResult(functionFragment: "getAllSupportedFeeIds", data: BytesLike): Result;
337
+ decodeFunctionResult(functionFragment: "getAllSupportedGroupsIds", data: BytesLike): Result;
338
+ decodeFunctionResult(functionFragment: "getAllSupportedPairIds", data: BytesLike): Result;
339
+ decodeFunctionResult(functionFragment: "getTradeClosingValues", data: BytesLike): Result;
340
+ decodeFunctionResult(functionFragment: "getTradeFunding", data: BytesLike): Result;
341
+ decodeFunctionResult(functionFragment: "getTradeFundingPure", data: BytesLike): Result;
342
+ decodeFunctionResult(functionFragment: "getTradeInitialAccBorrowIndex", data: BytesLike): Result;
343
+ decodeFunctionResult(functionFragment: "getTradeInitialAccFundingPerOi", data: BytesLike): Result;
344
+ decodeFunctionResult(functionFragment: "getTradeInterest", data: BytesLike): Result;
345
+ decodeFunctionResult(functionFragment: "getTradeInterestPure", data: BytesLike): Result;
346
+ decodeFunctionResult(functionFragment: "getTradeLiquidationPrice", data: BytesLike): Result;
347
+ decodeFunctionResult(functionFragment: "getTradeLiquidationPriceView", data: BytesLike): Result;
348
+ decodeFunctionResult(functionFragment: "getTradeValueView", data: BytesLike): Result;
349
+ decodeFunctionResult(functionFragment: "groupBorrows", data: BytesLike): Result;
350
+ decodeFunctionResult(functionFragment: "groupMaxBorrow", data: BytesLike): Result;
351
+ decodeFunctionResult(functionFragment: "groups", data: BytesLike): Result;
352
+ decodeFunctionResult(functionFragment: "groupsCount", data: BytesLike): Result;
353
+ decodeFunctionResult(functionFragment: "implementation", data: BytesLike): Result;
354
+ decodeFunctionResult(functionFragment: "initialize", data: BytesLike): Result;
355
+ decodeFunctionResult(functionFragment: "initializeLexCommon", data: BytesLike): Result;
356
+ decodeFunctionResult(functionFragment: "interestShare", data: BytesLike): Result;
357
+ decodeFunctionResult(functionFragment: "interestShareFactor", data: BytesLike): Result;
358
+ decodeFunctionResult(functionFragment: "irm", data: BytesLike): Result;
359
+ decodeFunctionResult(functionFragment: "lexPartF", data: BytesLike): Result;
360
+ decodeFunctionResult(functionFragment: "lexPool", data: BytesLike): Result;
361
+ decodeFunctionResult(functionFragment: "liquidationFeeF", data: BytesLike): Result;
362
+ decodeFunctionResult(functionFragment: "liquidationThresholdF", data: BytesLike): Result;
363
+ decodeFunctionResult(functionFragment: "maxGainF", data: BytesLike): Result;
364
+ decodeFunctionResult(functionFragment: "maxTotalBorrows", data: BytesLike): Result;
365
+ decodeFunctionResult(functionFragment: "maxVirtualUtilization", data: BytesLike): Result;
366
+ decodeFunctionResult(functionFragment: "minOpenFee", data: BytesLike): Result;
367
+ decodeFunctionResult(functionFragment: "openInterestInPair", data: BytesLike): Result;
368
+ decodeFunctionResult(functionFragment: "pairBorrows", data: BytesLike): Result;
369
+ decodeFunctionResult(functionFragment: "pairCloseFeeF", data: BytesLike): Result;
370
+ decodeFunctionResult(functionFragment: "pairFunding", data: BytesLike): Result;
371
+ decodeFunctionResult(functionFragment: "pairMaxBorrow", data: BytesLike): Result;
372
+ decodeFunctionResult(functionFragment: "pairMinOpenFee", data: BytesLike): Result;
373
+ decodeFunctionResult(functionFragment: "pairOpenFeeF", data: BytesLike): Result;
374
+ decodeFunctionResult(functionFragment: "pairPerformanceFeeF", data: BytesLike): Result;
375
+ decodeFunctionResult(functionFragment: "pairTotalOpenInterest", data: BytesLike): Result;
376
+ decodeFunctionResult(functionFragment: "pairTotalRatioOiToP", data: BytesLike): Result;
377
+ decodeFunctionResult(functionFragment: "pairs", data: BytesLike): Result;
378
+ decodeFunctionResult(functionFragment: "pairsCount", data: BytesLike): Result;
379
+ decodeFunctionResult(functionFragment: "pendingAdmin", data: BytesLike): Result;
380
+ decodeFunctionResult(functionFragment: "pendingImplementation", data: BytesLike): Result;
381
+ decodeFunctionResult(functionFragment: "pricePnL", data: BytesLike): Result;
382
+ decodeFunctionResult(functionFragment: "readAndZeroReserves", data: BytesLike): Result;
383
+ decodeFunctionResult(functionFragment: "realizedFundingSurplusDeficit", data: BytesLike): Result;
384
+ decodeFunctionResult(functionFragment: "registerCloseTrade", data: BytesLike): Result;
385
+ decodeFunctionResult(functionFragment: "registerOpenTrade", data: BytesLike): Result;
386
+ decodeFunctionResult(functionFragment: "registerUpdateTp", data: BytesLike): Result;
387
+ decodeFunctionResult(functionFragment: "registry", data: BytesLike): Result;
388
+ decodeFunctionResult(functionFragment: "resetTradersPairGains", data: BytesLike): Result;
389
+ decodeFunctionResult(functionFragment: "setBorrowRateMax", data: BytesLike): Result;
390
+ decodeFunctionResult(functionFragment: "setFrm", data: BytesLike): Result;
391
+ decodeFunctionResult(functionFragment: "setFundingRateMax", data: BytesLike): Result;
392
+ decodeFunctionResult(functionFragment: "setFundingShareFactor", data: BytesLike): Result;
393
+ decodeFunctionResult(functionFragment: "setInterestShareFactor", data: BytesLike): Result;
394
+ decodeFunctionResult(functionFragment: "setIrm", data: BytesLike): Result;
395
+ decodeFunctionResult(functionFragment: "setIrmHard", data: BytesLike): Result;
396
+ decodeFunctionResult(functionFragment: "setLexPartF", data: BytesLike): Result;
397
+ decodeFunctionResult(functionFragment: "setLiquidationFeeF", data: BytesLike): Result;
398
+ decodeFunctionResult(functionFragment: "setLiquidationThresholdF", data: BytesLike): Result;
399
+ decodeFunctionResult(functionFragment: "setMaxGainF", data: BytesLike): Result;
400
+ decodeFunctionResult(functionFragment: "setMaxTotalBorrows", data: BytesLike): Result;
401
+ decodeFunctionResult(functionFragment: "setMaxVirtualUtilization", data: BytesLike): Result;
402
+ decodeFunctionResult(functionFragment: "setMinOpenFee", data: BytesLike): Result;
403
+ decodeFunctionResult(functionFragment: "setTradeIncentivizer", data: BytesLike): Result;
404
+ decodeFunctionResult(functionFragment: "supportedFeeIds", data: BytesLike): Result;
405
+ decodeFunctionResult(functionFragment: "supportedGroupIds", data: BytesLike): Result;
406
+ decodeFunctionResult(functionFragment: "supportedPairIds", data: BytesLike): Result;
407
+ decodeFunctionResult(functionFragment: "totalBorrows", data: BytesLike): Result;
408
+ decodeFunctionResult(functionFragment: "totalInterest", data: BytesLike): Result;
409
+ decodeFunctionResult(functionFragment: "totalReservesView", data: BytesLike): Result;
410
+ decodeFunctionResult(functionFragment: "tradeAccInterest", data: BytesLike): Result;
411
+ decodeFunctionResult(functionFragment: "tradeIncentivizer", data: BytesLike): Result;
412
+ decodeFunctionResult(functionFragment: "tradeInitialAccFees", data: BytesLike): Result;
413
+ decodeFunctionResult(functionFragment: "tradersPairGains", data: BytesLike): Result;
414
+ decodeFunctionResult(functionFragment: "tradingFloor", data: BytesLike): Result;
415
+ decodeFunctionResult(functionFragment: "underlying", data: BytesLike): Result;
416
+ decodeFunctionResult(functionFragment: "unrealizedFunding", data: BytesLike): Result;
417
+ decodeFunctionResult(functionFragment: "updateFee", data: BytesLike): Result;
418
+ decodeFunctionResult(functionFragment: "updateGroup", data: BytesLike): Result;
419
+ decodeFunctionResult(functionFragment: "updatePair", data: BytesLike): Result;
420
+ decodeFunctionResult(functionFragment: "verifyLeveragedPosition", data: BytesLike): Result;
421
+ decodeFunctionResult(functionFragment: "verifyMaxPercentProfit", data: BytesLike): Result;
422
+ decodeFunctionResult(functionFragment: "verifyOpenFee", data: BytesLike): Result;
423
+ decodeFunctionResult(functionFragment: "verifyPerformanceFee", data: BytesLike): Result;
424
+ decodeFunctionResult(functionFragment: "verifyTradersPairGains", data: BytesLike): Result;
425
+ decodeFunctionResult(functionFragment: "verifyUtilizationForTraders", data: BytesLike): Result;
426
+ }
427
+ export declare namespace AccrueFundingEvent {
428
+ type InputTuple = [
429
+ pairId: BigNumberish,
430
+ valueLong: BigNumberish,
431
+ valueShort: BigNumberish
432
+ ];
433
+ type OutputTuple = [
434
+ pairId: bigint,
435
+ valueLong: bigint,
436
+ valueShort: bigint
437
+ ];
438
+ interface OutputObject {
439
+ pairId: bigint;
440
+ valueLong: bigint;
441
+ valueShort: bigint;
442
+ }
443
+ type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
444
+ type Filter = TypedDeferredTopicFilter<Event>;
445
+ type Log = TypedEventLog<Event>;
446
+ type LogDescription = TypedLogDescription<Event>;
447
+ }
448
+ export declare namespace AccrueInterestEvent {
449
+ type InputTuple = [
450
+ cash: BigNumberish,
451
+ totalInterestNew: BigNumberish,
452
+ borrowIndexNew: BigNumberish,
453
+ interestShareNew: BigNumberish
454
+ ];
455
+ type OutputTuple = [
456
+ cash: bigint,
457
+ totalInterestNew: bigint,
458
+ borrowIndexNew: bigint,
459
+ interestShareNew: bigint
460
+ ];
461
+ interface OutputObject {
462
+ cash: bigint;
463
+ totalInterestNew: bigint;
464
+ borrowIndexNew: bigint;
465
+ interestShareNew: bigint;
466
+ }
467
+ type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
468
+ type Filter = TypedDeferredTopicFilter<Event>;
469
+ type Log = TypedEventLog<Event>;
470
+ type LogDescription = TypedLogDescription<Event>;
471
+ }
472
+ export declare namespace AddressUpdatedEvent {
473
+ type InputTuple = [enumCode: BigNumberish, a: AddressLike];
474
+ type OutputTuple = [enumCode: bigint, a: string];
475
+ interface OutputObject {
476
+ enumCode: bigint;
477
+ a: string;
478
+ }
479
+ type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
480
+ type Filter = TypedDeferredTopicFilter<Event>;
481
+ type Log = TypedEventLog<Event>;
482
+ type LogDescription = TypedLogDescription<Event>;
483
+ }
484
+ export declare namespace BorrowEvent {
485
+ type InputTuple = [
486
+ pairId: BigNumberish,
487
+ borrowAmount: BigNumberish,
488
+ newTotalBorrows: BigNumberish
489
+ ];
490
+ type OutputTuple = [
491
+ pairId: bigint,
492
+ borrowAmount: bigint,
493
+ newTotalBorrows: bigint
494
+ ];
495
+ interface OutputObject {
496
+ pairId: bigint;
497
+ borrowAmount: bigint;
498
+ newTotalBorrows: bigint;
499
+ }
500
+ type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
501
+ type Filter = TypedDeferredTopicFilter<Event>;
502
+ type Log = TypedEventLog<Event>;
503
+ type LogDescription = TypedLogDescription<Event>;
504
+ }
505
+ export declare namespace FeeAddedEvent {
506
+ type InputTuple = [
507
+ id: BigNumberish,
508
+ name: string,
509
+ fee: PoolAccountantStructs.FeeStruct
510
+ ];
511
+ type OutputTuple = [
512
+ id: bigint,
513
+ name: string,
514
+ fee: PoolAccountantStructs.FeeStructOutput
515
+ ];
516
+ interface OutputObject {
517
+ id: bigint;
518
+ name: string;
519
+ fee: PoolAccountantStructs.FeeStructOutput;
520
+ }
521
+ type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
522
+ type Filter = TypedDeferredTopicFilter<Event>;
523
+ type Log = TypedEventLog<Event>;
524
+ type LogDescription = TypedLogDescription<Event>;
525
+ }
526
+ export declare namespace FeeUpdatedEvent {
527
+ type InputTuple = [
528
+ id: BigNumberish,
529
+ fee: PoolAccountantStructs.FeeStruct
530
+ ];
531
+ type OutputTuple = [
532
+ id: bigint,
533
+ fee: PoolAccountantStructs.FeeStructOutput
534
+ ];
535
+ interface OutputObject {
536
+ id: bigint;
537
+ fee: PoolAccountantStructs.FeeStructOutput;
538
+ }
539
+ type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
540
+ type Filter = TypedDeferredTopicFilter<Event>;
541
+ type Log = TypedEventLog<Event>;
542
+ type LogDescription = TypedLogDescription<Event>;
543
+ }
544
+ export declare namespace FeesChargedEvent {
545
+ type InputTuple = [
546
+ positionId: BytesLike,
547
+ trader: AddressLike,
548
+ pairId: BigNumberish,
549
+ positionRegistrationParams: PoolAccountantStructs.PositionRegistrationParamsStruct,
550
+ profitPrecision: BigNumberish,
551
+ interest: BigNumberish,
552
+ funding: BigNumberish,
553
+ closingFee: BigNumberish,
554
+ tradeValue: BigNumberish
555
+ ];
556
+ type OutputTuple = [
557
+ positionId: string,
558
+ trader: string,
559
+ pairId: bigint,
560
+ positionRegistrationParams: PoolAccountantStructs.PositionRegistrationParamsStructOutput,
561
+ profitPrecision: bigint,
562
+ interest: bigint,
563
+ funding: bigint,
564
+ closingFee: bigint,
565
+ tradeValue: bigint
566
+ ];
567
+ interface OutputObject {
568
+ positionId: string;
569
+ trader: string;
570
+ pairId: bigint;
571
+ positionRegistrationParams: PoolAccountantStructs.PositionRegistrationParamsStructOutput;
572
+ profitPrecision: bigint;
573
+ interest: bigint;
574
+ funding: bigint;
575
+ closingFee: bigint;
576
+ tradeValue: bigint;
577
+ }
578
+ type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
579
+ type Filter = TypedDeferredTopicFilter<Event>;
580
+ type Log = TypedEventLog<Event>;
581
+ type LogDescription = TypedLogDescription<Event>;
582
+ }
583
+ export declare namespace GroupAddedEvent {
584
+ type InputTuple = [
585
+ id: BigNumberish,
586
+ groupName: string,
587
+ group: PoolAccountantStructs.GroupStruct
588
+ ];
589
+ type OutputTuple = [
590
+ id: bigint,
591
+ groupName: string,
592
+ group: PoolAccountantStructs.GroupStructOutput
593
+ ];
594
+ interface OutputObject {
595
+ id: bigint;
596
+ groupName: string;
597
+ group: PoolAccountantStructs.GroupStructOutput;
598
+ }
599
+ type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
600
+ type Filter = TypedDeferredTopicFilter<Event>;
601
+ type Log = TypedEventLog<Event>;
602
+ type LogDescription = TypedLogDescription<Event>;
603
+ }
604
+ export declare namespace GroupUpdatedEvent {
605
+ type InputTuple = [
606
+ id: BigNumberish,
607
+ group: PoolAccountantStructs.GroupStruct
608
+ ];
609
+ type OutputTuple = [
610
+ id: bigint,
611
+ group: PoolAccountantStructs.GroupStructOutput
612
+ ];
613
+ interface OutputObject {
614
+ id: bigint;
615
+ group: PoolAccountantStructs.GroupStructOutput;
616
+ }
617
+ type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
618
+ type Filter = TypedDeferredTopicFilter<Event>;
619
+ type Log = TypedEventLog<Event>;
620
+ type LogDescription = TypedLogDescription<Event>;
621
+ }
622
+ export declare namespace MaxOpenInterestUpdatedEvent {
623
+ type InputTuple = [
624
+ pairIndex: BigNumberish,
625
+ maxOpenInterest: BigNumberish
626
+ ];
627
+ type OutputTuple = [pairIndex: bigint, maxOpenInterest: bigint];
628
+ interface OutputObject {
629
+ pairIndex: bigint;
630
+ maxOpenInterest: bigint;
631
+ }
632
+ type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
633
+ type Filter = TypedDeferredTopicFilter<Event>;
634
+ type Log = TypedEventLog<Event>;
635
+ type LogDescription = TypedLogDescription<Event>;
636
+ }
637
+ export declare namespace NumberUpdatedEvent {
638
+ type InputTuple = [enumCode: BigNumberish, value: BigNumberish];
639
+ type OutputTuple = [enumCode: bigint, value: bigint];
640
+ interface OutputObject {
641
+ enumCode: bigint;
642
+ value: bigint;
643
+ }
644
+ type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
645
+ type Filter = TypedDeferredTopicFilter<Event>;
646
+ type Log = TypedEventLog<Event>;
647
+ type LogDescription = TypedLogDescription<Event>;
648
+ }
649
+ export declare namespace PairAddedEvent {
650
+ type InputTuple = [
651
+ id: BigNumberish,
652
+ from: string,
653
+ to: string,
654
+ pair: PoolAccountantStructs.PairStruct
655
+ ];
656
+ type OutputTuple = [
657
+ id: bigint,
658
+ from: string,
659
+ to: string,
660
+ pair: PoolAccountantStructs.PairStructOutput
661
+ ];
662
+ interface OutputObject {
663
+ id: bigint;
664
+ from: string;
665
+ to: string;
666
+ pair: PoolAccountantStructs.PairStructOutput;
667
+ }
668
+ type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
669
+ type Filter = TypedDeferredTopicFilter<Event>;
670
+ type Log = TypedEventLog<Event>;
671
+ type LogDescription = TypedLogDescription<Event>;
672
+ }
673
+ export declare namespace PairUpdatedEvent {
674
+ type InputTuple = [
675
+ id: BigNumberish,
676
+ pair: PoolAccountantStructs.PairStruct
677
+ ];
678
+ type OutputTuple = [
679
+ id: bigint,
680
+ pair: PoolAccountantStructs.PairStructOutput
681
+ ];
682
+ interface OutputObject {
683
+ id: bigint;
684
+ pair: PoolAccountantStructs.PairStructOutput;
685
+ }
686
+ type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
687
+ type Filter = TypedDeferredTopicFilter<Event>;
688
+ type Log = TypedEventLog<Event>;
689
+ type LogDescription = TypedLogDescription<Event>;
690
+ }
691
+ export declare namespace PerformanceFeeChargingEvent {
692
+ type InputTuple = [
693
+ positionId: BytesLike,
694
+ performanceFee: BigNumberish
695
+ ];
696
+ type OutputTuple = [positionId: string, performanceFee: bigint];
697
+ interface OutputObject {
698
+ positionId: string;
699
+ performanceFee: bigint;
700
+ }
701
+ type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
702
+ type Filter = TypedDeferredTopicFilter<Event>;
703
+ type Log = TypedEventLog<Event>;
704
+ type LogDescription = TypedLogDescription<Event>;
705
+ }
706
+ export declare namespace ProtocolFundingShareAccruedEvent {
707
+ type InputTuple = [
708
+ pairId: BigNumberish,
709
+ protocolFundingShare: BigNumberish
710
+ ];
711
+ type OutputTuple = [pairId: bigint, protocolFundingShare: bigint];
712
+ interface OutputObject {
713
+ pairId: bigint;
714
+ protocolFundingShare: bigint;
715
+ }
716
+ type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
717
+ type Filter = TypedDeferredTopicFilter<Event>;
718
+ type Log = TypedEventLog<Event>;
719
+ type LogDescription = TypedLogDescription<Event>;
720
+ }
721
+ export declare namespace RepayEvent {
722
+ type InputTuple = [
723
+ pairId: BigNumberish,
724
+ repayAmount: BigNumberish,
725
+ newTotalBorrows: BigNumberish
726
+ ];
727
+ type OutputTuple = [
728
+ pairId: bigint,
729
+ repayAmount: bigint,
730
+ newTotalBorrows: bigint
731
+ ];
732
+ interface OutputObject {
733
+ pairId: bigint;
734
+ repayAmount: bigint;
735
+ newTotalBorrows: bigint;
736
+ }
737
+ type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
738
+ type Filter = TypedDeferredTopicFilter<Event>;
739
+ type Log = TypedEventLog<Event>;
740
+ type LogDescription = TypedLogDescription<Event>;
741
+ }
742
+ export declare namespace TradeInitialAccFeesStoredEvent {
743
+ type InputTuple = [
744
+ positionId: BytesLike,
745
+ borrowIndex: BigNumberish,
746
+ funding: BigNumberish
747
+ ];
748
+ type OutputTuple = [
749
+ positionId: string,
750
+ borrowIndex: bigint,
751
+ funding: bigint
752
+ ];
753
+ interface OutputObject {
754
+ positionId: string;
755
+ borrowIndex: bigint;
756
+ funding: bigint;
757
+ }
758
+ type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
759
+ type Filter = TypedDeferredTopicFilter<Event>;
760
+ type Log = TypedEventLog<Event>;
761
+ type LogDescription = TypedLogDescription<Event>;
762
+ }
763
+ export declare namespace TradersPairGainsResetEvent {
764
+ type InputTuple = [pairId: BigNumberish];
765
+ type OutputTuple = [pairId: bigint];
766
+ interface OutputObject {
767
+ pairId: bigint;
768
+ }
769
+ type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
770
+ type Filter = TypedDeferredTopicFilter<Event>;
771
+ type Log = TypedEventLog<Event>;
772
+ type LogDescription = TypedLogDescription<Event>;
773
+ }
774
+ export interface PoolAccountantV1 extends BaseContract {
775
+ connect(runner?: ContractRunner | null): PoolAccountantV1;
776
+ waitForDeployment(): Promise<this>;
777
+ interface: PoolAccountantV1Interface;
778
+ queryFilter<TCEvent extends TypedContractEvent>(event: TCEvent, fromBlockOrBlockhash?: string | number | undefined, toBlock?: string | number | undefined): Promise<Array<TypedEventLog<TCEvent>>>;
779
+ queryFilter<TCEvent extends TypedContractEvent>(filter: TypedDeferredTopicFilter<TCEvent>, fromBlockOrBlockhash?: string | number | undefined, toBlock?: string | number | undefined): Promise<Array<TypedEventLog<TCEvent>>>;
780
+ on<TCEvent extends TypedContractEvent>(event: TCEvent, listener: TypedListener<TCEvent>): Promise<this>;
781
+ on<TCEvent extends TypedContractEvent>(filter: TypedDeferredTopicFilter<TCEvent>, listener: TypedListener<TCEvent>): Promise<this>;
782
+ once<TCEvent extends TypedContractEvent>(event: TCEvent, listener: TypedListener<TCEvent>): Promise<this>;
783
+ once<TCEvent extends TypedContractEvent>(filter: TypedDeferredTopicFilter<TCEvent>, listener: TypedListener<TCEvent>): Promise<this>;
784
+ listeners<TCEvent extends TypedContractEvent>(event: TCEvent): Promise<Array<TypedListener<TCEvent>>>;
785
+ listeners(eventName?: string): Promise<Array<Listener>>;
786
+ removeAllListeners<TCEvent extends TypedContractEvent>(event?: TCEvent): Promise<this>;
787
+ ACCURACY_IMPROVEMENT_SCALE: TypedContractMethod<[], [bigint], "view">;
788
+ FRACTION_SCALE: TypedContractMethod<[], [bigint], "view">;
789
+ LEVERAGE_SCALE: TypedContractMethod<[], [bigint], "view">;
790
+ PRECISION: TypedContractMethod<[], [bigint], "view">;
791
+ _become: TypedContractMethod<[proxy: AddressLike], [void], "nonpayable">;
792
+ accrualBlockTimestamp: TypedContractMethod<[], [bigint], "view">;
793
+ accrueFunding: TypedContractMethod<[
794
+ pairId: BigNumberish
795
+ ], [
796
+ [
797
+ bigint,
798
+ bigint,
799
+ bigint
800
+ ] & {
801
+ valueLong: bigint;
802
+ valueShort: bigint;
803
+ protocolFundingShare: bigint;
804
+ }
805
+ ], "nonpayable">;
806
+ "accrueInterest()": TypedContractMethod<[
807
+ ], [
808
+ [
809
+ bigint,
810
+ bigint,
811
+ bigint
812
+ ] & {
813
+ totalInterestNew: bigint;
814
+ interestShareNew: bigint;
815
+ borrowIndexNew: bigint;
816
+ }
817
+ ], "nonpayable">;
818
+ "accrueInterest(uint256)": TypedContractMethod<[
819
+ availableCash: BigNumberish
820
+ ], [
821
+ [
822
+ bigint,
823
+ bigint,
824
+ bigint
825
+ ] & {
826
+ totalInterestNew: bigint;
827
+ interestShareNew: bigint;
828
+ borrowIndexNew: bigint;
829
+ }
830
+ ], "nonpayable">;
831
+ addFee: TypedContractMethod<[
832
+ _fee: PoolAccountantStructs.FeeStruct
833
+ ], [
834
+ void
835
+ ], "nonpayable">;
836
+ addGroup: TypedContractMethod<[
837
+ _group: PoolAccountantStructs.GroupStruct
838
+ ], [
839
+ void
840
+ ], "nonpayable">;
841
+ addPair: TypedContractMethod<[
842
+ _pair: PoolAccountantStructs.PairStruct
843
+ ], [
844
+ void
845
+ ], "nonpayable">;
846
+ addPairs: TypedContractMethod<[
847
+ _pairs: PoolAccountantStructs.PairStruct[]
848
+ ], [
849
+ void
850
+ ], "nonpayable">;
851
+ adjustClosePrice: TypedContractMethod<[
852
+ closePrice: BigNumberish,
853
+ tp: BigNumberish,
854
+ long: boolean
855
+ ], [
856
+ bigint
857
+ ], "view">;
858
+ admin: TypedContractMethod<[], [string], "view">;
859
+ borrowIndex: TypedContractMethod<[], [bigint], "view">;
860
+ borrowRateMax: TypedContractMethod<[], [bigint], "view">;
861
+ borrowsAndInterestShare: TypedContractMethod<[
862
+ ], [
863
+ [bigint, bigint] & {
864
+ borrows: bigint;
865
+ totalInterestShare: bigint;
866
+ }
867
+ ], "view">;
868
+ calcAbsoluteSkew: TypedContractMethod<[
869
+ openInterestLong: BigNumberish,
870
+ openInterestShort: BigNumberish,
871
+ additionIsLong: boolean,
872
+ additionOpenInterest: BigNumberish
873
+ ], [
874
+ bigint
875
+ ], "view">;
876
+ calcAccrueFundingValues: TypedContractMethod<[
877
+ pairId: BigNumberish
878
+ ], [
879
+ [
880
+ boolean,
881
+ bigint,
882
+ bigint,
883
+ bigint
884
+ ] & {
885
+ freshened: boolean;
886
+ valueLong: bigint;
887
+ valueShort: bigint;
888
+ protocolFundingShare: bigint;
889
+ }
890
+ ], "view">;
891
+ "calcAccrueInterestValues(uint256)": TypedContractMethod<[
892
+ availableCash: BigNumberish
893
+ ], [
894
+ [
895
+ boolean,
896
+ bigint,
897
+ bigint,
898
+ bigint
899
+ ] & {
900
+ freshened: boolean;
901
+ totalInterestNew: bigint;
902
+ borrowIndexNew: bigint;
903
+ interestShareNew: bigint;
904
+ }
905
+ ], "view">;
906
+ "calcAccrueInterestValues()": TypedContractMethod<[
907
+ ], [
908
+ [
909
+ boolean,
910
+ bigint,
911
+ bigint,
912
+ bigint
913
+ ] & {
914
+ freshened: boolean;
915
+ totalInterestNew: bigint;
916
+ borrowIndexNew: bigint;
917
+ interestShareNew: bigint;
918
+ }
919
+ ], "view">;
920
+ calcBorrowAmount: TypedContractMethod<[
921
+ collateral: BigNumberish,
922
+ leverage: BigNumberish,
923
+ long: boolean,
924
+ openPrice: BigNumberish,
925
+ tp: BigNumberish
926
+ ], [
927
+ bigint
928
+ ], "view">;
929
+ calcClosingFee: TypedContractMethod<[
930
+ pairId: BigNumberish,
931
+ collateral: BigNumberish,
932
+ leverage: BigNumberish
933
+ ], [
934
+ bigint
935
+ ], "view">;
936
+ calcPerformanceFee: TypedContractMethod<[
937
+ pairId: BigNumberish,
938
+ collateral: BigNumberish,
939
+ profitPrecision: BigNumberish
940
+ ], [
941
+ bigint
942
+ ], "view">;
943
+ calcTradeDynamicFees: TypedContractMethod<[
944
+ positionId: BytesLike,
945
+ pairId: BigNumberish,
946
+ long: boolean,
947
+ collateral: BigNumberish,
948
+ leverage: BigNumberish,
949
+ openPrice: BigNumberish,
950
+ tp: BigNumberish
951
+ ], [
952
+ [bigint, bigint] & {
953
+ interest: bigint;
954
+ funding: bigint;
955
+ }
956
+ ], "nonpayable">;
957
+ fees: TypedContractMethod<[
958
+ arg0: BigNumberish
959
+ ], [
960
+ [
961
+ bigint,
962
+ bigint,
963
+ bigint,
964
+ bigint
965
+ ] & {
966
+ id: bigint;
967
+ openFeeF: bigint;
968
+ closeFeeF: bigint;
969
+ performanceFeeF: bigint;
970
+ }
971
+ ], "view">;
972
+ feesCount: TypedContractMethod<[], [bigint], "view">;
973
+ frm: TypedContractMethod<[], [string], "view">;
974
+ fundingIndicesCalculation: TypedContractMethod<[
975
+ _oiLong: BigNumberish,
976
+ _oiShort: BigNumberish,
977
+ fundingRate: BigNumberish,
978
+ timeDiff: BigNumberish
979
+ ], [
980
+ [
981
+ bigint,
982
+ bigint,
983
+ bigint
984
+ ] & {
985
+ indexLongChange: bigint;
986
+ indexShortChange: bigint;
987
+ protocolFundingShare: bigint;
988
+ }
989
+ ], "view">;
990
+ fundingRateMax: TypedContractMethod<[], [bigint], "view">;
991
+ fundingShare: TypedContractMethod<[], [bigint], "view">;
992
+ fundingShareFactor: TypedContractMethod<[], [bigint], "view">;
993
+ generatePositionHashId: TypedContractMethod<[
994
+ settlementAsset: AddressLike,
995
+ trader: AddressLike,
996
+ pairId: BigNumberish,
997
+ index: BigNumberish
998
+ ], [
999
+ string
1000
+ ], "view">;
1001
+ getAccFundingLong: TypedContractMethod<[
1002
+ pairIndex: BigNumberish
1003
+ ], [
1004
+ bigint
1005
+ ], "view">;
1006
+ getAccFundingShort: TypedContractMethod<[
1007
+ pairIndex: BigNumberish
1008
+ ], [
1009
+ bigint
1010
+ ], "view">;
1011
+ getAccFundingUpdateBlock: TypedContractMethod<[
1012
+ pairIndex: BigNumberish
1013
+ ], [
1014
+ bigint
1015
+ ], "view">;
1016
+ getAllSupportedFeeIds: TypedContractMethod<[], [bigint[]], "view">;
1017
+ getAllSupportedGroupsIds: TypedContractMethod<[], [bigint[]], "view">;
1018
+ getAllSupportedPairIds: TypedContractMethod<[], [bigint[]], "view">;
1019
+ getTradeClosingValues: TypedContractMethod<[
1020
+ positionId: BytesLike,
1021
+ pairId: BigNumberish,
1022
+ positionRegistrationParams: PoolAccountantStructs.PositionRegistrationParamsStruct,
1023
+ closePrice: BigNumberish,
1024
+ isLiquidation: boolean
1025
+ ], [
1026
+ [
1027
+ bigint,
1028
+ bigint,
1029
+ bigint,
1030
+ bigint,
1031
+ bigint
1032
+ ] & {
1033
+ tradeValue: bigint;
1034
+ safeClosingFee: bigint;
1035
+ profitPrecision: bigint;
1036
+ interest: bigint;
1037
+ funding: bigint;
1038
+ }
1039
+ ], "nonpayable">;
1040
+ getTradeFunding: TypedContractMethod<[
1041
+ positionId: BytesLike,
1042
+ pairId: BigNumberish,
1043
+ long: boolean,
1044
+ collateral: BigNumberish,
1045
+ leverage: BigNumberish
1046
+ ], [
1047
+ bigint
1048
+ ], "nonpayable">;
1049
+ getTradeFundingPure: TypedContractMethod<[
1050
+ accFundingPerOi: BigNumberish,
1051
+ endAccFundingPerOi: BigNumberish,
1052
+ collateral: BigNumberish,
1053
+ leverage: BigNumberish
1054
+ ], [
1055
+ bigint
1056
+ ], "view">;
1057
+ getTradeInitialAccBorrowIndex: TypedContractMethod<[
1058
+ positionId: BytesLike
1059
+ ], [
1060
+ bigint
1061
+ ], "view">;
1062
+ getTradeInitialAccFundingPerOi: TypedContractMethod<[
1063
+ positionId: BytesLike
1064
+ ], [
1065
+ bigint
1066
+ ], "view">;
1067
+ getTradeInterest: TypedContractMethod<[
1068
+ positionId: BytesLike,
1069
+ borrowAmount: BigNumberish
1070
+ ], [
1071
+ bigint
1072
+ ], "nonpayable">;
1073
+ getTradeInterestPure: TypedContractMethod<[
1074
+ tradeBorrowIndex: BigNumberish,
1075
+ currentBorrowIndex: BigNumberish,
1076
+ borrowAmount: BigNumberish,
1077
+ alreadyAccumulated: BigNumberish
1078
+ ], [
1079
+ bigint
1080
+ ], "view">;
1081
+ getTradeLiquidationPrice: TypedContractMethod<[
1082
+ positionId: BytesLike,
1083
+ pairId: BigNumberish,
1084
+ openPrice: BigNumberish,
1085
+ tp: BigNumberish,
1086
+ long: boolean,
1087
+ collateral: BigNumberish,
1088
+ leverage: BigNumberish
1089
+ ], [
1090
+ bigint
1091
+ ], "nonpayable">;
1092
+ getTradeLiquidationPriceView: TypedContractMethod<[
1093
+ openPrice: BigNumberish,
1094
+ long: boolean,
1095
+ collateral: BigNumberish,
1096
+ leverage: BigNumberish,
1097
+ interest: BigNumberish,
1098
+ funding: BigNumberish,
1099
+ closingFee: BigNumberish
1100
+ ], [
1101
+ bigint
1102
+ ], "view">;
1103
+ getTradeValueView: TypedContractMethod<[
1104
+ collateral: BigNumberish,
1105
+ profitPrecision: BigNumberish,
1106
+ interest: BigNumberish,
1107
+ funding: BigNumberish,
1108
+ closingFee: BigNumberish,
1109
+ liquidation: boolean
1110
+ ], [
1111
+ bigint
1112
+ ], "view">;
1113
+ groupBorrows: TypedContractMethod<[arg0: BigNumberish], [bigint], "view">;
1114
+ groupMaxBorrow: TypedContractMethod<[
1115
+ groupId: BigNumberish
1116
+ ], [
1117
+ bigint
1118
+ ], "view">;
1119
+ groups: TypedContractMethod<[
1120
+ arg0: BigNumberish
1121
+ ], [
1122
+ [
1123
+ bigint,
1124
+ bigint,
1125
+ bigint,
1126
+ bigint,
1127
+ bigint,
1128
+ bigint
1129
+ ] & {
1130
+ id: bigint;
1131
+ minLeverage: bigint;
1132
+ maxLeverage: bigint;
1133
+ maxBorrowF: bigint;
1134
+ maxPositionSize: bigint;
1135
+ minOpenFee: bigint;
1136
+ }
1137
+ ], "view">;
1138
+ groupsCount: TypedContractMethod<[], [bigint], "view">;
1139
+ implementation: TypedContractMethod<[], [string], "view">;
1140
+ initialize: TypedContractMethod<[
1141
+ _lexPool: AddressLike,
1142
+ _tradingFloor: AddressLike
1143
+ ], [
1144
+ void
1145
+ ], "nonpayable">;
1146
+ initializeLexCommon: TypedContractMethod<[
1147
+ _tradingFloor: AddressLike,
1148
+ _underlying: AddressLike
1149
+ ], [
1150
+ void
1151
+ ], "nonpayable">;
1152
+ interestShare: TypedContractMethod<[], [bigint], "view">;
1153
+ interestShareFactor: TypedContractMethod<[], [bigint], "view">;
1154
+ irm: TypedContractMethod<[], [string], "view">;
1155
+ lexPartF: TypedContractMethod<[], [bigint], "view">;
1156
+ lexPool: TypedContractMethod<[], [string], "view">;
1157
+ liquidationFeeF: TypedContractMethod<[], [bigint], "view">;
1158
+ liquidationThresholdF: TypedContractMethod<[], [bigint], "view">;
1159
+ maxGainF: TypedContractMethod<[], [bigint], "view">;
1160
+ maxTotalBorrows: TypedContractMethod<[], [bigint], "view">;
1161
+ maxVirtualUtilization: TypedContractMethod<[], [bigint], "view">;
1162
+ minOpenFee: TypedContractMethod<[], [bigint], "view">;
1163
+ openInterestInPair: TypedContractMethod<[
1164
+ arg0: BigNumberish
1165
+ ], [
1166
+ [bigint, bigint] & {
1167
+ long: bigint;
1168
+ short: bigint;
1169
+ }
1170
+ ], "view">;
1171
+ pairBorrows: TypedContractMethod<[arg0: BigNumberish], [bigint], "view">;
1172
+ pairCloseFeeF: TypedContractMethod<[_pairId: BigNumberish], [bigint], "view">;
1173
+ pairFunding: TypedContractMethod<[
1174
+ arg0: BigNumberish
1175
+ ], [
1176
+ [
1177
+ bigint,
1178
+ bigint,
1179
+ bigint
1180
+ ] & {
1181
+ accPerOiLong: bigint;
1182
+ accPerOiShort: bigint;
1183
+ lastUpdateTimestamp: bigint;
1184
+ }
1185
+ ], "view">;
1186
+ pairMaxBorrow: TypedContractMethod<[pairId: BigNumberish], [bigint], "view">;
1187
+ pairMinOpenFee: TypedContractMethod<[
1188
+ _pairId: BigNumberish
1189
+ ], [
1190
+ bigint
1191
+ ], "view">;
1192
+ pairOpenFeeF: TypedContractMethod<[_pairId: BigNumberish], [bigint], "view">;
1193
+ pairPerformanceFeeF: TypedContractMethod<[
1194
+ _pairId: BigNumberish
1195
+ ], [
1196
+ bigint
1197
+ ], "view">;
1198
+ pairTotalOpenInterest: TypedContractMethod<[
1199
+ pairIndex: BigNumberish
1200
+ ], [
1201
+ bigint
1202
+ ], "view">;
1203
+ pairTotalRatioOiToP: TypedContractMethod<[
1204
+ arg0: BigNumberish
1205
+ ], [
1206
+ bigint
1207
+ ], "view">;
1208
+ pairs: TypedContractMethod<[
1209
+ arg0: BigNumberish
1210
+ ], [
1211
+ [
1212
+ bigint,
1213
+ bigint,
1214
+ bigint,
1215
+ bigint,
1216
+ bigint,
1217
+ bigint,
1218
+ bigint,
1219
+ bigint,
1220
+ bigint,
1221
+ bigint,
1222
+ bigint,
1223
+ bigint
1224
+ ] & {
1225
+ id: bigint;
1226
+ groupId: bigint;
1227
+ feeId: bigint;
1228
+ minLeverage: bigint;
1229
+ maxLeverage: bigint;
1230
+ maxBorrowF: bigint;
1231
+ maxPositionSize: bigint;
1232
+ maxGain: bigint;
1233
+ maxOpenInterest: bigint;
1234
+ maxSkew: bigint;
1235
+ minOpenFee: bigint;
1236
+ minPerformanceFee: bigint;
1237
+ }
1238
+ ], "view">;
1239
+ pairsCount: TypedContractMethod<[], [bigint], "view">;
1240
+ pendingAdmin: TypedContractMethod<[], [string], "view">;
1241
+ pendingImplementation: TypedContractMethod<[], [string], "view">;
1242
+ pricePnL: TypedContractMethod<[
1243
+ pairId: BigNumberish,
1244
+ price: BigNumberish
1245
+ ], [
1246
+ bigint
1247
+ ], "view">;
1248
+ readAndZeroReserves: TypedContractMethod<[
1249
+ ], [
1250
+ [
1251
+ bigint,
1252
+ bigint
1253
+ ] & {
1254
+ accumulatedInterestShare: bigint;
1255
+ accFundingShare: bigint;
1256
+ }
1257
+ ], "nonpayable">;
1258
+ realizedFundingSurplusDeficit: TypedContractMethod<[], [bigint], "view">;
1259
+ registerCloseTrade: TypedContractMethod<[
1260
+ positionId: BytesLike,
1261
+ trader: AddressLike,
1262
+ pairId: BigNumberish,
1263
+ positionRegistrationParams: PoolAccountantStructs.PositionRegistrationParamsStruct,
1264
+ closePrice: BigNumberish,
1265
+ positionCloseType: BigNumberish
1266
+ ], [
1267
+ [
1268
+ bigint,
1269
+ bigint,
1270
+ bigint,
1271
+ bigint
1272
+ ] & {
1273
+ closingFee: bigint;
1274
+ tradeValue: bigint;
1275
+ profitPrecision: bigint;
1276
+ finalClosingPrice: bigint;
1277
+ }
1278
+ ], "nonpayable">;
1279
+ registerOpenTrade: TypedContractMethod<[
1280
+ positionId: BytesLike,
1281
+ trader: AddressLike,
1282
+ pairId: BigNumberish,
1283
+ collateral: BigNumberish,
1284
+ leverage: BigNumberish,
1285
+ long: boolean,
1286
+ tp: BigNumberish,
1287
+ openPrice: BigNumberish
1288
+ ], [
1289
+ [bigint, bigint] & {
1290
+ openFee: bigint;
1291
+ lexPartFee: bigint;
1292
+ }
1293
+ ], "nonpayable">;
1294
+ registerUpdateTp: TypedContractMethod<[
1295
+ positionId: BytesLike,
1296
+ arg1: AddressLike,
1297
+ pairId: BigNumberish,
1298
+ collateral: BigNumberish,
1299
+ leverage: BigNumberish,
1300
+ long: boolean,
1301
+ openPrice: BigNumberish,
1302
+ oldTriggerPrice: BigNumberish,
1303
+ triggerPrice: BigNumberish
1304
+ ], [
1305
+ void
1306
+ ], "nonpayable">;
1307
+ registry: TypedContractMethod<[], [string], "view">;
1308
+ resetTradersPairGains: TypedContractMethod<[
1309
+ pairId: BigNumberish
1310
+ ], [
1311
+ void
1312
+ ], "nonpayable">;
1313
+ setBorrowRateMax: TypedContractMethod<[
1314
+ rate: BigNumberish
1315
+ ], [
1316
+ void
1317
+ ], "nonpayable">;
1318
+ setFrm: TypedContractMethod<[_frm: AddressLike], [void], "nonpayable">;
1319
+ setFundingRateMax: TypedContractMethod<[
1320
+ maxValue: BigNumberish
1321
+ ], [
1322
+ void
1323
+ ], "nonpayable">;
1324
+ setFundingShareFactor: TypedContractMethod<[
1325
+ factor: BigNumberish
1326
+ ], [
1327
+ void
1328
+ ], "nonpayable">;
1329
+ setInterestShareFactor: TypedContractMethod<[
1330
+ factor: BigNumberish
1331
+ ], [
1332
+ void
1333
+ ], "nonpayable">;
1334
+ setIrm: TypedContractMethod<[_irm: AddressLike], [void], "nonpayable">;
1335
+ setIrmHard: TypedContractMethod<[_irm: AddressLike], [void], "nonpayable">;
1336
+ setLexPartF: TypedContractMethod<[partF: BigNumberish], [void], "nonpayable">;
1337
+ setLiquidationFeeF: TypedContractMethod<[
1338
+ fee: BigNumberish
1339
+ ], [
1340
+ void
1341
+ ], "nonpayable">;
1342
+ setLiquidationThresholdF: TypedContractMethod<[
1343
+ threshold: BigNumberish
1344
+ ], [
1345
+ void
1346
+ ], "nonpayable">;
1347
+ setMaxGainF: TypedContractMethod<[
1348
+ _maxGainF: BigNumberish
1349
+ ], [
1350
+ void
1351
+ ], "nonpayable">;
1352
+ setMaxTotalBorrows: TypedContractMethod<[
1353
+ maxBorrows: BigNumberish
1354
+ ], [
1355
+ void
1356
+ ], "nonpayable">;
1357
+ setMaxVirtualUtilization: TypedContractMethod<[
1358
+ _maxVirtualUtilization: BigNumberish
1359
+ ], [
1360
+ void
1361
+ ], "nonpayable">;
1362
+ setMinOpenFee: TypedContractMethod<[min: BigNumberish], [void], "nonpayable">;
1363
+ setTradeIncentivizer: TypedContractMethod<[
1364
+ _tradeIncentivizer: AddressLike
1365
+ ], [
1366
+ void
1367
+ ], "nonpayable">;
1368
+ supportedFeeIds: TypedContractMethod<[arg0: BigNumberish], [bigint], "view">;
1369
+ supportedGroupIds: TypedContractMethod<[
1370
+ arg0: BigNumberish
1371
+ ], [
1372
+ bigint
1373
+ ], "view">;
1374
+ supportedPairIds: TypedContractMethod<[arg0: BigNumberish], [bigint], "view">;
1375
+ totalBorrows: TypedContractMethod<[], [bigint], "view">;
1376
+ totalInterest: TypedContractMethod<[], [bigint], "view">;
1377
+ totalReservesView: TypedContractMethod<[], [bigint], "view">;
1378
+ tradeAccInterest: TypedContractMethod<[arg0: BytesLike], [bigint], "view">;
1379
+ tradeIncentivizer: TypedContractMethod<[], [string], "view">;
1380
+ tradeInitialAccFees: TypedContractMethod<[
1381
+ arg0: BytesLike
1382
+ ], [
1383
+ [bigint, bigint] & {
1384
+ borrowIndex: bigint;
1385
+ funding: bigint;
1386
+ }
1387
+ ], "view">;
1388
+ tradersPairGains: TypedContractMethod<[arg0: BigNumberish], [bigint], "view">;
1389
+ tradingFloor: TypedContractMethod<[], [string], "view">;
1390
+ underlying: TypedContractMethod<[], [string], "view">;
1391
+ unrealizedFunding: TypedContractMethod<[], [bigint], "view">;
1392
+ updateFee: TypedContractMethod<[
1393
+ _fee: PoolAccountantStructs.FeeStruct
1394
+ ], [
1395
+ void
1396
+ ], "nonpayable">;
1397
+ updateGroup: TypedContractMethod<[
1398
+ _group: PoolAccountantStructs.GroupStruct
1399
+ ], [
1400
+ void
1401
+ ], "nonpayable">;
1402
+ updatePair: TypedContractMethod<[
1403
+ _pair: PoolAccountantStructs.PairStruct
1404
+ ], [
1405
+ void
1406
+ ], "nonpayable">;
1407
+ verifyLeveragedPosition: TypedContractMethod<[
1408
+ pairIndex: BigNumberish,
1409
+ collateral: BigNumberish,
1410
+ leverage: BigNumberish
1411
+ ], [
1412
+ bigint
1413
+ ], "view">;
1414
+ verifyMaxPercentProfit: TypedContractMethod<[
1415
+ openPrice: BigNumberish,
1416
+ targetPrice: BigNumberish,
1417
+ leverage: BigNumberish,
1418
+ long: boolean
1419
+ ], [
1420
+ void
1421
+ ], "view">;
1422
+ verifyOpenFee: TypedContractMethod<[
1423
+ pairIndex: BigNumberish,
1424
+ leveragedPosition: BigNumberish
1425
+ ], [
1426
+ [bigint, bigint] & {
1427
+ openFee: bigint;
1428
+ lexPartFee: bigint;
1429
+ }
1430
+ ], "view">;
1431
+ verifyPerformanceFee: TypedContractMethod<[
1432
+ pairIndex: BigNumberish,
1433
+ collateral: BigNumberish
1434
+ ], [
1435
+ void
1436
+ ], "view">;
1437
+ verifyTradersPairGains: TypedContractMethod<[
1438
+ pairId: BigNumberish
1439
+ ], [
1440
+ void
1441
+ ], "view">;
1442
+ verifyUtilizationForTraders: TypedContractMethod<[
1443
+ _totalBorrows: BigNumberish,
1444
+ _totalReserves: BigNumberish,
1445
+ _unrealizedFunding: BigNumberish
1446
+ ], [
1447
+ void
1448
+ ], "view">;
1449
+ getFunction<T extends ContractMethod = ContractMethod>(key: string | FunctionFragment): T;
1450
+ getFunction(nameOrSignature: "ACCURACY_IMPROVEMENT_SCALE"): TypedContractMethod<[], [bigint], "view">;
1451
+ getFunction(nameOrSignature: "FRACTION_SCALE"): TypedContractMethod<[], [bigint], "view">;
1452
+ getFunction(nameOrSignature: "LEVERAGE_SCALE"): TypedContractMethod<[], [bigint], "view">;
1453
+ getFunction(nameOrSignature: "PRECISION"): TypedContractMethod<[], [bigint], "view">;
1454
+ getFunction(nameOrSignature: "_become"): TypedContractMethod<[proxy: AddressLike], [void], "nonpayable">;
1455
+ getFunction(nameOrSignature: "accrualBlockTimestamp"): TypedContractMethod<[], [bigint], "view">;
1456
+ getFunction(nameOrSignature: "accrueFunding"): TypedContractMethod<[
1457
+ pairId: BigNumberish
1458
+ ], [
1459
+ [
1460
+ bigint,
1461
+ bigint,
1462
+ bigint
1463
+ ] & {
1464
+ valueLong: bigint;
1465
+ valueShort: bigint;
1466
+ protocolFundingShare: bigint;
1467
+ }
1468
+ ], "nonpayable">;
1469
+ getFunction(nameOrSignature: "accrueInterest()"): TypedContractMethod<[
1470
+ ], [
1471
+ [
1472
+ bigint,
1473
+ bigint,
1474
+ bigint
1475
+ ] & {
1476
+ totalInterestNew: bigint;
1477
+ interestShareNew: bigint;
1478
+ borrowIndexNew: bigint;
1479
+ }
1480
+ ], "nonpayable">;
1481
+ getFunction(nameOrSignature: "accrueInterest(uint256)"): TypedContractMethod<[
1482
+ availableCash: BigNumberish
1483
+ ], [
1484
+ [
1485
+ bigint,
1486
+ bigint,
1487
+ bigint
1488
+ ] & {
1489
+ totalInterestNew: bigint;
1490
+ interestShareNew: bigint;
1491
+ borrowIndexNew: bigint;
1492
+ }
1493
+ ], "nonpayable">;
1494
+ getFunction(nameOrSignature: "addFee"): TypedContractMethod<[
1495
+ _fee: PoolAccountantStructs.FeeStruct
1496
+ ], [
1497
+ void
1498
+ ], "nonpayable">;
1499
+ getFunction(nameOrSignature: "addGroup"): TypedContractMethod<[
1500
+ _group: PoolAccountantStructs.GroupStruct
1501
+ ], [
1502
+ void
1503
+ ], "nonpayable">;
1504
+ getFunction(nameOrSignature: "addPair"): TypedContractMethod<[
1505
+ _pair: PoolAccountantStructs.PairStruct
1506
+ ], [
1507
+ void
1508
+ ], "nonpayable">;
1509
+ getFunction(nameOrSignature: "addPairs"): TypedContractMethod<[
1510
+ _pairs: PoolAccountantStructs.PairStruct[]
1511
+ ], [
1512
+ void
1513
+ ], "nonpayable">;
1514
+ getFunction(nameOrSignature: "adjustClosePrice"): TypedContractMethod<[
1515
+ closePrice: BigNumberish,
1516
+ tp: BigNumberish,
1517
+ long: boolean
1518
+ ], [
1519
+ bigint
1520
+ ], "view">;
1521
+ getFunction(nameOrSignature: "admin"): TypedContractMethod<[], [string], "view">;
1522
+ getFunction(nameOrSignature: "borrowIndex"): TypedContractMethod<[], [bigint], "view">;
1523
+ getFunction(nameOrSignature: "borrowRateMax"): TypedContractMethod<[], [bigint], "view">;
1524
+ getFunction(nameOrSignature: "borrowsAndInterestShare"): TypedContractMethod<[
1525
+ ], [
1526
+ [bigint, bigint] & {
1527
+ borrows: bigint;
1528
+ totalInterestShare: bigint;
1529
+ }
1530
+ ], "view">;
1531
+ getFunction(nameOrSignature: "calcAbsoluteSkew"): TypedContractMethod<[
1532
+ openInterestLong: BigNumberish,
1533
+ openInterestShort: BigNumberish,
1534
+ additionIsLong: boolean,
1535
+ additionOpenInterest: BigNumberish
1536
+ ], [
1537
+ bigint
1538
+ ], "view">;
1539
+ getFunction(nameOrSignature: "calcAccrueFundingValues"): TypedContractMethod<[
1540
+ pairId: BigNumberish
1541
+ ], [
1542
+ [
1543
+ boolean,
1544
+ bigint,
1545
+ bigint,
1546
+ bigint
1547
+ ] & {
1548
+ freshened: boolean;
1549
+ valueLong: bigint;
1550
+ valueShort: bigint;
1551
+ protocolFundingShare: bigint;
1552
+ }
1553
+ ], "view">;
1554
+ getFunction(nameOrSignature: "calcAccrueInterestValues(uint256)"): TypedContractMethod<[
1555
+ availableCash: BigNumberish
1556
+ ], [
1557
+ [
1558
+ boolean,
1559
+ bigint,
1560
+ bigint,
1561
+ bigint
1562
+ ] & {
1563
+ freshened: boolean;
1564
+ totalInterestNew: bigint;
1565
+ borrowIndexNew: bigint;
1566
+ interestShareNew: bigint;
1567
+ }
1568
+ ], "view">;
1569
+ getFunction(nameOrSignature: "calcAccrueInterestValues()"): TypedContractMethod<[
1570
+ ], [
1571
+ [
1572
+ boolean,
1573
+ bigint,
1574
+ bigint,
1575
+ bigint
1576
+ ] & {
1577
+ freshened: boolean;
1578
+ totalInterestNew: bigint;
1579
+ borrowIndexNew: bigint;
1580
+ interestShareNew: bigint;
1581
+ }
1582
+ ], "view">;
1583
+ getFunction(nameOrSignature: "calcBorrowAmount"): TypedContractMethod<[
1584
+ collateral: BigNumberish,
1585
+ leverage: BigNumberish,
1586
+ long: boolean,
1587
+ openPrice: BigNumberish,
1588
+ tp: BigNumberish
1589
+ ], [
1590
+ bigint
1591
+ ], "view">;
1592
+ getFunction(nameOrSignature: "calcClosingFee"): TypedContractMethod<[
1593
+ pairId: BigNumberish,
1594
+ collateral: BigNumberish,
1595
+ leverage: BigNumberish
1596
+ ], [
1597
+ bigint
1598
+ ], "view">;
1599
+ getFunction(nameOrSignature: "calcPerformanceFee"): TypedContractMethod<[
1600
+ pairId: BigNumberish,
1601
+ collateral: BigNumberish,
1602
+ profitPrecision: BigNumberish
1603
+ ], [
1604
+ bigint
1605
+ ], "view">;
1606
+ getFunction(nameOrSignature: "calcTradeDynamicFees"): TypedContractMethod<[
1607
+ positionId: BytesLike,
1608
+ pairId: BigNumberish,
1609
+ long: boolean,
1610
+ collateral: BigNumberish,
1611
+ leverage: BigNumberish,
1612
+ openPrice: BigNumberish,
1613
+ tp: BigNumberish
1614
+ ], [
1615
+ [bigint, bigint] & {
1616
+ interest: bigint;
1617
+ funding: bigint;
1618
+ }
1619
+ ], "nonpayable">;
1620
+ getFunction(nameOrSignature: "fees"): TypedContractMethod<[
1621
+ arg0: BigNumberish
1622
+ ], [
1623
+ [
1624
+ bigint,
1625
+ bigint,
1626
+ bigint,
1627
+ bigint
1628
+ ] & {
1629
+ id: bigint;
1630
+ openFeeF: bigint;
1631
+ closeFeeF: bigint;
1632
+ performanceFeeF: bigint;
1633
+ }
1634
+ ], "view">;
1635
+ getFunction(nameOrSignature: "feesCount"): TypedContractMethod<[], [bigint], "view">;
1636
+ getFunction(nameOrSignature: "frm"): TypedContractMethod<[], [string], "view">;
1637
+ getFunction(nameOrSignature: "fundingIndicesCalculation"): TypedContractMethod<[
1638
+ _oiLong: BigNumberish,
1639
+ _oiShort: BigNumberish,
1640
+ fundingRate: BigNumberish,
1641
+ timeDiff: BigNumberish
1642
+ ], [
1643
+ [
1644
+ bigint,
1645
+ bigint,
1646
+ bigint
1647
+ ] & {
1648
+ indexLongChange: bigint;
1649
+ indexShortChange: bigint;
1650
+ protocolFundingShare: bigint;
1651
+ }
1652
+ ], "view">;
1653
+ getFunction(nameOrSignature: "fundingRateMax"): TypedContractMethod<[], [bigint], "view">;
1654
+ getFunction(nameOrSignature: "fundingShare"): TypedContractMethod<[], [bigint], "view">;
1655
+ getFunction(nameOrSignature: "fundingShareFactor"): TypedContractMethod<[], [bigint], "view">;
1656
+ getFunction(nameOrSignature: "generatePositionHashId"): TypedContractMethod<[
1657
+ settlementAsset: AddressLike,
1658
+ trader: AddressLike,
1659
+ pairId: BigNumberish,
1660
+ index: BigNumberish
1661
+ ], [
1662
+ string
1663
+ ], "view">;
1664
+ getFunction(nameOrSignature: "getAccFundingLong"): TypedContractMethod<[pairIndex: BigNumberish], [bigint], "view">;
1665
+ getFunction(nameOrSignature: "getAccFundingShort"): TypedContractMethod<[pairIndex: BigNumberish], [bigint], "view">;
1666
+ getFunction(nameOrSignature: "getAccFundingUpdateBlock"): TypedContractMethod<[pairIndex: BigNumberish], [bigint], "view">;
1667
+ getFunction(nameOrSignature: "getAllSupportedFeeIds"): TypedContractMethod<[], [bigint[]], "view">;
1668
+ getFunction(nameOrSignature: "getAllSupportedGroupsIds"): TypedContractMethod<[], [bigint[]], "view">;
1669
+ getFunction(nameOrSignature: "getAllSupportedPairIds"): TypedContractMethod<[], [bigint[]], "view">;
1670
+ getFunction(nameOrSignature: "getTradeClosingValues"): TypedContractMethod<[
1671
+ positionId: BytesLike,
1672
+ pairId: BigNumberish,
1673
+ positionRegistrationParams: PoolAccountantStructs.PositionRegistrationParamsStruct,
1674
+ closePrice: BigNumberish,
1675
+ isLiquidation: boolean
1676
+ ], [
1677
+ [
1678
+ bigint,
1679
+ bigint,
1680
+ bigint,
1681
+ bigint,
1682
+ bigint
1683
+ ] & {
1684
+ tradeValue: bigint;
1685
+ safeClosingFee: bigint;
1686
+ profitPrecision: bigint;
1687
+ interest: bigint;
1688
+ funding: bigint;
1689
+ }
1690
+ ], "nonpayable">;
1691
+ getFunction(nameOrSignature: "getTradeFunding"): TypedContractMethod<[
1692
+ positionId: BytesLike,
1693
+ pairId: BigNumberish,
1694
+ long: boolean,
1695
+ collateral: BigNumberish,
1696
+ leverage: BigNumberish
1697
+ ], [
1698
+ bigint
1699
+ ], "nonpayable">;
1700
+ getFunction(nameOrSignature: "getTradeFundingPure"): TypedContractMethod<[
1701
+ accFundingPerOi: BigNumberish,
1702
+ endAccFundingPerOi: BigNumberish,
1703
+ collateral: BigNumberish,
1704
+ leverage: BigNumberish
1705
+ ], [
1706
+ bigint
1707
+ ], "view">;
1708
+ getFunction(nameOrSignature: "getTradeInitialAccBorrowIndex"): TypedContractMethod<[positionId: BytesLike], [bigint], "view">;
1709
+ getFunction(nameOrSignature: "getTradeInitialAccFundingPerOi"): TypedContractMethod<[positionId: BytesLike], [bigint], "view">;
1710
+ getFunction(nameOrSignature: "getTradeInterest"): TypedContractMethod<[
1711
+ positionId: BytesLike,
1712
+ borrowAmount: BigNumberish
1713
+ ], [
1714
+ bigint
1715
+ ], "nonpayable">;
1716
+ getFunction(nameOrSignature: "getTradeInterestPure"): TypedContractMethod<[
1717
+ tradeBorrowIndex: BigNumberish,
1718
+ currentBorrowIndex: BigNumberish,
1719
+ borrowAmount: BigNumberish,
1720
+ alreadyAccumulated: BigNumberish
1721
+ ], [
1722
+ bigint
1723
+ ], "view">;
1724
+ getFunction(nameOrSignature: "getTradeLiquidationPrice"): TypedContractMethod<[
1725
+ positionId: BytesLike,
1726
+ pairId: BigNumberish,
1727
+ openPrice: BigNumberish,
1728
+ tp: BigNumberish,
1729
+ long: boolean,
1730
+ collateral: BigNumberish,
1731
+ leverage: BigNumberish
1732
+ ], [
1733
+ bigint
1734
+ ], "nonpayable">;
1735
+ getFunction(nameOrSignature: "getTradeLiquidationPriceView"): TypedContractMethod<[
1736
+ openPrice: BigNumberish,
1737
+ long: boolean,
1738
+ collateral: BigNumberish,
1739
+ leverage: BigNumberish,
1740
+ interest: BigNumberish,
1741
+ funding: BigNumberish,
1742
+ closingFee: BigNumberish
1743
+ ], [
1744
+ bigint
1745
+ ], "view">;
1746
+ getFunction(nameOrSignature: "getTradeValueView"): TypedContractMethod<[
1747
+ collateral: BigNumberish,
1748
+ profitPrecision: BigNumberish,
1749
+ interest: BigNumberish,
1750
+ funding: BigNumberish,
1751
+ closingFee: BigNumberish,
1752
+ liquidation: boolean
1753
+ ], [
1754
+ bigint
1755
+ ], "view">;
1756
+ getFunction(nameOrSignature: "groupBorrows"): TypedContractMethod<[arg0: BigNumberish], [bigint], "view">;
1757
+ getFunction(nameOrSignature: "groupMaxBorrow"): TypedContractMethod<[groupId: BigNumberish], [bigint], "view">;
1758
+ getFunction(nameOrSignature: "groups"): TypedContractMethod<[
1759
+ arg0: BigNumberish
1760
+ ], [
1761
+ [
1762
+ bigint,
1763
+ bigint,
1764
+ bigint,
1765
+ bigint,
1766
+ bigint,
1767
+ bigint
1768
+ ] & {
1769
+ id: bigint;
1770
+ minLeverage: bigint;
1771
+ maxLeverage: bigint;
1772
+ maxBorrowF: bigint;
1773
+ maxPositionSize: bigint;
1774
+ minOpenFee: bigint;
1775
+ }
1776
+ ], "view">;
1777
+ getFunction(nameOrSignature: "groupsCount"): TypedContractMethod<[], [bigint], "view">;
1778
+ getFunction(nameOrSignature: "implementation"): TypedContractMethod<[], [string], "view">;
1779
+ getFunction(nameOrSignature: "initialize"): TypedContractMethod<[
1780
+ _lexPool: AddressLike,
1781
+ _tradingFloor: AddressLike
1782
+ ], [
1783
+ void
1784
+ ], "nonpayable">;
1785
+ getFunction(nameOrSignature: "initializeLexCommon"): TypedContractMethod<[
1786
+ _tradingFloor: AddressLike,
1787
+ _underlying: AddressLike
1788
+ ], [
1789
+ void
1790
+ ], "nonpayable">;
1791
+ getFunction(nameOrSignature: "interestShare"): TypedContractMethod<[], [bigint], "view">;
1792
+ getFunction(nameOrSignature: "interestShareFactor"): TypedContractMethod<[], [bigint], "view">;
1793
+ getFunction(nameOrSignature: "irm"): TypedContractMethod<[], [string], "view">;
1794
+ getFunction(nameOrSignature: "lexPartF"): TypedContractMethod<[], [bigint], "view">;
1795
+ getFunction(nameOrSignature: "lexPool"): TypedContractMethod<[], [string], "view">;
1796
+ getFunction(nameOrSignature: "liquidationFeeF"): TypedContractMethod<[], [bigint], "view">;
1797
+ getFunction(nameOrSignature: "liquidationThresholdF"): TypedContractMethod<[], [bigint], "view">;
1798
+ getFunction(nameOrSignature: "maxGainF"): TypedContractMethod<[], [bigint], "view">;
1799
+ getFunction(nameOrSignature: "maxTotalBorrows"): TypedContractMethod<[], [bigint], "view">;
1800
+ getFunction(nameOrSignature: "maxVirtualUtilization"): TypedContractMethod<[], [bigint], "view">;
1801
+ getFunction(nameOrSignature: "minOpenFee"): TypedContractMethod<[], [bigint], "view">;
1802
+ getFunction(nameOrSignature: "openInterestInPair"): TypedContractMethod<[
1803
+ arg0: BigNumberish
1804
+ ], [
1805
+ [bigint, bigint] & {
1806
+ long: bigint;
1807
+ short: bigint;
1808
+ }
1809
+ ], "view">;
1810
+ getFunction(nameOrSignature: "pairBorrows"): TypedContractMethod<[arg0: BigNumberish], [bigint], "view">;
1811
+ getFunction(nameOrSignature: "pairCloseFeeF"): TypedContractMethod<[_pairId: BigNumberish], [bigint], "view">;
1812
+ getFunction(nameOrSignature: "pairFunding"): TypedContractMethod<[
1813
+ arg0: BigNumberish
1814
+ ], [
1815
+ [
1816
+ bigint,
1817
+ bigint,
1818
+ bigint
1819
+ ] & {
1820
+ accPerOiLong: bigint;
1821
+ accPerOiShort: bigint;
1822
+ lastUpdateTimestamp: bigint;
1823
+ }
1824
+ ], "view">;
1825
+ getFunction(nameOrSignature: "pairMaxBorrow"): TypedContractMethod<[pairId: BigNumberish], [bigint], "view">;
1826
+ getFunction(nameOrSignature: "pairMinOpenFee"): TypedContractMethod<[_pairId: BigNumberish], [bigint], "view">;
1827
+ getFunction(nameOrSignature: "pairOpenFeeF"): TypedContractMethod<[_pairId: BigNumberish], [bigint], "view">;
1828
+ getFunction(nameOrSignature: "pairPerformanceFeeF"): TypedContractMethod<[_pairId: BigNumberish], [bigint], "view">;
1829
+ getFunction(nameOrSignature: "pairTotalOpenInterest"): TypedContractMethod<[pairIndex: BigNumberish], [bigint], "view">;
1830
+ getFunction(nameOrSignature: "pairTotalRatioOiToP"): TypedContractMethod<[arg0: BigNumberish], [bigint], "view">;
1831
+ getFunction(nameOrSignature: "pairs"): TypedContractMethod<[
1832
+ arg0: BigNumberish
1833
+ ], [
1834
+ [
1835
+ bigint,
1836
+ bigint,
1837
+ bigint,
1838
+ bigint,
1839
+ bigint,
1840
+ bigint,
1841
+ bigint,
1842
+ bigint,
1843
+ bigint,
1844
+ bigint,
1845
+ bigint,
1846
+ bigint
1847
+ ] & {
1848
+ id: bigint;
1849
+ groupId: bigint;
1850
+ feeId: bigint;
1851
+ minLeverage: bigint;
1852
+ maxLeverage: bigint;
1853
+ maxBorrowF: bigint;
1854
+ maxPositionSize: bigint;
1855
+ maxGain: bigint;
1856
+ maxOpenInterest: bigint;
1857
+ maxSkew: bigint;
1858
+ minOpenFee: bigint;
1859
+ minPerformanceFee: bigint;
1860
+ }
1861
+ ], "view">;
1862
+ getFunction(nameOrSignature: "pairsCount"): TypedContractMethod<[], [bigint], "view">;
1863
+ getFunction(nameOrSignature: "pendingAdmin"): TypedContractMethod<[], [string], "view">;
1864
+ getFunction(nameOrSignature: "pendingImplementation"): TypedContractMethod<[], [string], "view">;
1865
+ getFunction(nameOrSignature: "pricePnL"): TypedContractMethod<[
1866
+ pairId: BigNumberish,
1867
+ price: BigNumberish
1868
+ ], [
1869
+ bigint
1870
+ ], "view">;
1871
+ getFunction(nameOrSignature: "readAndZeroReserves"): TypedContractMethod<[
1872
+ ], [
1873
+ [
1874
+ bigint,
1875
+ bigint
1876
+ ] & {
1877
+ accumulatedInterestShare: bigint;
1878
+ accFundingShare: bigint;
1879
+ }
1880
+ ], "nonpayable">;
1881
+ getFunction(nameOrSignature: "realizedFundingSurplusDeficit"): TypedContractMethod<[], [bigint], "view">;
1882
+ getFunction(nameOrSignature: "registerCloseTrade"): TypedContractMethod<[
1883
+ positionId: BytesLike,
1884
+ trader: AddressLike,
1885
+ pairId: BigNumberish,
1886
+ positionRegistrationParams: PoolAccountantStructs.PositionRegistrationParamsStruct,
1887
+ closePrice: BigNumberish,
1888
+ positionCloseType: BigNumberish
1889
+ ], [
1890
+ [
1891
+ bigint,
1892
+ bigint,
1893
+ bigint,
1894
+ bigint
1895
+ ] & {
1896
+ closingFee: bigint;
1897
+ tradeValue: bigint;
1898
+ profitPrecision: bigint;
1899
+ finalClosingPrice: bigint;
1900
+ }
1901
+ ], "nonpayable">;
1902
+ getFunction(nameOrSignature: "registerOpenTrade"): TypedContractMethod<[
1903
+ positionId: BytesLike,
1904
+ trader: AddressLike,
1905
+ pairId: BigNumberish,
1906
+ collateral: BigNumberish,
1907
+ leverage: BigNumberish,
1908
+ long: boolean,
1909
+ tp: BigNumberish,
1910
+ openPrice: BigNumberish
1911
+ ], [
1912
+ [bigint, bigint] & {
1913
+ openFee: bigint;
1914
+ lexPartFee: bigint;
1915
+ }
1916
+ ], "nonpayable">;
1917
+ getFunction(nameOrSignature: "registerUpdateTp"): TypedContractMethod<[
1918
+ positionId: BytesLike,
1919
+ arg1: AddressLike,
1920
+ pairId: BigNumberish,
1921
+ collateral: BigNumberish,
1922
+ leverage: BigNumberish,
1923
+ long: boolean,
1924
+ openPrice: BigNumberish,
1925
+ oldTriggerPrice: BigNumberish,
1926
+ triggerPrice: BigNumberish
1927
+ ], [
1928
+ void
1929
+ ], "nonpayable">;
1930
+ getFunction(nameOrSignature: "registry"): TypedContractMethod<[], [string], "view">;
1931
+ getFunction(nameOrSignature: "resetTradersPairGains"): TypedContractMethod<[pairId: BigNumberish], [void], "nonpayable">;
1932
+ getFunction(nameOrSignature: "setBorrowRateMax"): TypedContractMethod<[rate: BigNumberish], [void], "nonpayable">;
1933
+ getFunction(nameOrSignature: "setFrm"): TypedContractMethod<[_frm: AddressLike], [void], "nonpayable">;
1934
+ getFunction(nameOrSignature: "setFundingRateMax"): TypedContractMethod<[maxValue: BigNumberish], [void], "nonpayable">;
1935
+ getFunction(nameOrSignature: "setFundingShareFactor"): TypedContractMethod<[factor: BigNumberish], [void], "nonpayable">;
1936
+ getFunction(nameOrSignature: "setInterestShareFactor"): TypedContractMethod<[factor: BigNumberish], [void], "nonpayable">;
1937
+ getFunction(nameOrSignature: "setIrm"): TypedContractMethod<[_irm: AddressLike], [void], "nonpayable">;
1938
+ getFunction(nameOrSignature: "setIrmHard"): TypedContractMethod<[_irm: AddressLike], [void], "nonpayable">;
1939
+ getFunction(nameOrSignature: "setLexPartF"): TypedContractMethod<[partF: BigNumberish], [void], "nonpayable">;
1940
+ getFunction(nameOrSignature: "setLiquidationFeeF"): TypedContractMethod<[fee: BigNumberish], [void], "nonpayable">;
1941
+ getFunction(nameOrSignature: "setLiquidationThresholdF"): TypedContractMethod<[threshold: BigNumberish], [void], "nonpayable">;
1942
+ getFunction(nameOrSignature: "setMaxGainF"): TypedContractMethod<[_maxGainF: BigNumberish], [void], "nonpayable">;
1943
+ getFunction(nameOrSignature: "setMaxTotalBorrows"): TypedContractMethod<[maxBorrows: BigNumberish], [void], "nonpayable">;
1944
+ getFunction(nameOrSignature: "setMaxVirtualUtilization"): TypedContractMethod<[
1945
+ _maxVirtualUtilization: BigNumberish
1946
+ ], [
1947
+ void
1948
+ ], "nonpayable">;
1949
+ getFunction(nameOrSignature: "setMinOpenFee"): TypedContractMethod<[min: BigNumberish], [void], "nonpayable">;
1950
+ getFunction(nameOrSignature: "setTradeIncentivizer"): TypedContractMethod<[
1951
+ _tradeIncentivizer: AddressLike
1952
+ ], [
1953
+ void
1954
+ ], "nonpayable">;
1955
+ getFunction(nameOrSignature: "supportedFeeIds"): TypedContractMethod<[arg0: BigNumberish], [bigint], "view">;
1956
+ getFunction(nameOrSignature: "supportedGroupIds"): TypedContractMethod<[arg0: BigNumberish], [bigint], "view">;
1957
+ getFunction(nameOrSignature: "supportedPairIds"): TypedContractMethod<[arg0: BigNumberish], [bigint], "view">;
1958
+ getFunction(nameOrSignature: "totalBorrows"): TypedContractMethod<[], [bigint], "view">;
1959
+ getFunction(nameOrSignature: "totalInterest"): TypedContractMethod<[], [bigint], "view">;
1960
+ getFunction(nameOrSignature: "totalReservesView"): TypedContractMethod<[], [bigint], "view">;
1961
+ getFunction(nameOrSignature: "tradeAccInterest"): TypedContractMethod<[arg0: BytesLike], [bigint], "view">;
1962
+ getFunction(nameOrSignature: "tradeIncentivizer"): TypedContractMethod<[], [string], "view">;
1963
+ getFunction(nameOrSignature: "tradeInitialAccFees"): TypedContractMethod<[
1964
+ arg0: BytesLike
1965
+ ], [
1966
+ [bigint, bigint] & {
1967
+ borrowIndex: bigint;
1968
+ funding: bigint;
1969
+ }
1970
+ ], "view">;
1971
+ getFunction(nameOrSignature: "tradersPairGains"): TypedContractMethod<[arg0: BigNumberish], [bigint], "view">;
1972
+ getFunction(nameOrSignature: "tradingFloor"): TypedContractMethod<[], [string], "view">;
1973
+ getFunction(nameOrSignature: "underlying"): TypedContractMethod<[], [string], "view">;
1974
+ getFunction(nameOrSignature: "unrealizedFunding"): TypedContractMethod<[], [bigint], "view">;
1975
+ getFunction(nameOrSignature: "updateFee"): TypedContractMethod<[
1976
+ _fee: PoolAccountantStructs.FeeStruct
1977
+ ], [
1978
+ void
1979
+ ], "nonpayable">;
1980
+ getFunction(nameOrSignature: "updateGroup"): TypedContractMethod<[
1981
+ _group: PoolAccountantStructs.GroupStruct
1982
+ ], [
1983
+ void
1984
+ ], "nonpayable">;
1985
+ getFunction(nameOrSignature: "updatePair"): TypedContractMethod<[
1986
+ _pair: PoolAccountantStructs.PairStruct
1987
+ ], [
1988
+ void
1989
+ ], "nonpayable">;
1990
+ getFunction(nameOrSignature: "verifyLeveragedPosition"): TypedContractMethod<[
1991
+ pairIndex: BigNumberish,
1992
+ collateral: BigNumberish,
1993
+ leverage: BigNumberish
1994
+ ], [
1995
+ bigint
1996
+ ], "view">;
1997
+ getFunction(nameOrSignature: "verifyMaxPercentProfit"): TypedContractMethod<[
1998
+ openPrice: BigNumberish,
1999
+ targetPrice: BigNumberish,
2000
+ leverage: BigNumberish,
2001
+ long: boolean
2002
+ ], [
2003
+ void
2004
+ ], "view">;
2005
+ getFunction(nameOrSignature: "verifyOpenFee"): TypedContractMethod<[
2006
+ pairIndex: BigNumberish,
2007
+ leveragedPosition: BigNumberish
2008
+ ], [
2009
+ [bigint, bigint] & {
2010
+ openFee: bigint;
2011
+ lexPartFee: bigint;
2012
+ }
2013
+ ], "view">;
2014
+ getFunction(nameOrSignature: "verifyPerformanceFee"): TypedContractMethod<[
2015
+ pairIndex: BigNumberish,
2016
+ collateral: BigNumberish
2017
+ ], [
2018
+ void
2019
+ ], "view">;
2020
+ getFunction(nameOrSignature: "verifyTradersPairGains"): TypedContractMethod<[pairId: BigNumberish], [void], "view">;
2021
+ getFunction(nameOrSignature: "verifyUtilizationForTraders"): TypedContractMethod<[
2022
+ _totalBorrows: BigNumberish,
2023
+ _totalReserves: BigNumberish,
2024
+ _unrealizedFunding: BigNumberish
2025
+ ], [
2026
+ void
2027
+ ], "view">;
2028
+ getEvent(key: "AccrueFunding"): TypedContractEvent<AccrueFundingEvent.InputTuple, AccrueFundingEvent.OutputTuple, AccrueFundingEvent.OutputObject>;
2029
+ getEvent(key: "AccrueInterest"): TypedContractEvent<AccrueInterestEvent.InputTuple, AccrueInterestEvent.OutputTuple, AccrueInterestEvent.OutputObject>;
2030
+ getEvent(key: "AddressUpdated"): TypedContractEvent<AddressUpdatedEvent.InputTuple, AddressUpdatedEvent.OutputTuple, AddressUpdatedEvent.OutputObject>;
2031
+ getEvent(key: "Borrow"): TypedContractEvent<BorrowEvent.InputTuple, BorrowEvent.OutputTuple, BorrowEvent.OutputObject>;
2032
+ getEvent(key: "FeeAdded"): TypedContractEvent<FeeAddedEvent.InputTuple, FeeAddedEvent.OutputTuple, FeeAddedEvent.OutputObject>;
2033
+ getEvent(key: "FeeUpdated"): TypedContractEvent<FeeUpdatedEvent.InputTuple, FeeUpdatedEvent.OutputTuple, FeeUpdatedEvent.OutputObject>;
2034
+ getEvent(key: "FeesCharged"): TypedContractEvent<FeesChargedEvent.InputTuple, FeesChargedEvent.OutputTuple, FeesChargedEvent.OutputObject>;
2035
+ getEvent(key: "GroupAdded"): TypedContractEvent<GroupAddedEvent.InputTuple, GroupAddedEvent.OutputTuple, GroupAddedEvent.OutputObject>;
2036
+ getEvent(key: "GroupUpdated"): TypedContractEvent<GroupUpdatedEvent.InputTuple, GroupUpdatedEvent.OutputTuple, GroupUpdatedEvent.OutputObject>;
2037
+ getEvent(key: "MaxOpenInterestUpdated"): TypedContractEvent<MaxOpenInterestUpdatedEvent.InputTuple, MaxOpenInterestUpdatedEvent.OutputTuple, MaxOpenInterestUpdatedEvent.OutputObject>;
2038
+ getEvent(key: "NumberUpdated"): TypedContractEvent<NumberUpdatedEvent.InputTuple, NumberUpdatedEvent.OutputTuple, NumberUpdatedEvent.OutputObject>;
2039
+ getEvent(key: "PairAdded"): TypedContractEvent<PairAddedEvent.InputTuple, PairAddedEvent.OutputTuple, PairAddedEvent.OutputObject>;
2040
+ getEvent(key: "PairUpdated"): TypedContractEvent<PairUpdatedEvent.InputTuple, PairUpdatedEvent.OutputTuple, PairUpdatedEvent.OutputObject>;
2041
+ getEvent(key: "PerformanceFeeCharging"): TypedContractEvent<PerformanceFeeChargingEvent.InputTuple, PerformanceFeeChargingEvent.OutputTuple, PerformanceFeeChargingEvent.OutputObject>;
2042
+ getEvent(key: "ProtocolFundingShareAccrued"): TypedContractEvent<ProtocolFundingShareAccruedEvent.InputTuple, ProtocolFundingShareAccruedEvent.OutputTuple, ProtocolFundingShareAccruedEvent.OutputObject>;
2043
+ getEvent(key: "Repay"): TypedContractEvent<RepayEvent.InputTuple, RepayEvent.OutputTuple, RepayEvent.OutputObject>;
2044
+ getEvent(key: "TradeInitialAccFeesStored"): TypedContractEvent<TradeInitialAccFeesStoredEvent.InputTuple, TradeInitialAccFeesStoredEvent.OutputTuple, TradeInitialAccFeesStoredEvent.OutputObject>;
2045
+ getEvent(key: "TradersPairGainsReset"): TypedContractEvent<TradersPairGainsResetEvent.InputTuple, TradersPairGainsResetEvent.OutputTuple, TradersPairGainsResetEvent.OutputObject>;
2046
+ filters: {
2047
+ "AccrueFunding(uint256,int256,int256)": TypedContractEvent<AccrueFundingEvent.InputTuple, AccrueFundingEvent.OutputTuple, AccrueFundingEvent.OutputObject>;
2048
+ AccrueFunding: TypedContractEvent<AccrueFundingEvent.InputTuple, AccrueFundingEvent.OutputTuple, AccrueFundingEvent.OutputObject>;
2049
+ "AccrueInterest(uint256,uint256,uint256,uint256)": TypedContractEvent<AccrueInterestEvent.InputTuple, AccrueInterestEvent.OutputTuple, AccrueInterestEvent.OutputObject>;
2050
+ AccrueInterest: TypedContractEvent<AccrueInterestEvent.InputTuple, AccrueInterestEvent.OutputTuple, AccrueInterestEvent.OutputObject>;
2051
+ "AddressUpdated(uint8,address)": TypedContractEvent<AddressUpdatedEvent.InputTuple, AddressUpdatedEvent.OutputTuple, AddressUpdatedEvent.OutputObject>;
2052
+ AddressUpdated: TypedContractEvent<AddressUpdatedEvent.InputTuple, AddressUpdatedEvent.OutputTuple, AddressUpdatedEvent.OutputObject>;
2053
+ "Borrow(uint256,uint256,uint256)": TypedContractEvent<BorrowEvent.InputTuple, BorrowEvent.OutputTuple, BorrowEvent.OutputObject>;
2054
+ Borrow: TypedContractEvent<BorrowEvent.InputTuple, BorrowEvent.OutputTuple, BorrowEvent.OutputObject>;
2055
+ "FeeAdded(uint256,string,tuple)": TypedContractEvent<FeeAddedEvent.InputTuple, FeeAddedEvent.OutputTuple, FeeAddedEvent.OutputObject>;
2056
+ FeeAdded: TypedContractEvent<FeeAddedEvent.InputTuple, FeeAddedEvent.OutputTuple, FeeAddedEvent.OutputObject>;
2057
+ "FeeUpdated(uint256,tuple)": TypedContractEvent<FeeUpdatedEvent.InputTuple, FeeUpdatedEvent.OutputTuple, FeeUpdatedEvent.OutputObject>;
2058
+ FeeUpdated: TypedContractEvent<FeeUpdatedEvent.InputTuple, FeeUpdatedEvent.OutputTuple, FeeUpdatedEvent.OutputObject>;
2059
+ "FeesCharged(bytes32,address,uint16,tuple,int256,uint256,int256,uint256,uint256)": TypedContractEvent<FeesChargedEvent.InputTuple, FeesChargedEvent.OutputTuple, FeesChargedEvent.OutputObject>;
2060
+ FeesCharged: TypedContractEvent<FeesChargedEvent.InputTuple, FeesChargedEvent.OutputTuple, FeesChargedEvent.OutputObject>;
2061
+ "GroupAdded(uint256,string,tuple)": TypedContractEvent<GroupAddedEvent.InputTuple, GroupAddedEvent.OutputTuple, GroupAddedEvent.OutputObject>;
2062
+ GroupAdded: TypedContractEvent<GroupAddedEvent.InputTuple, GroupAddedEvent.OutputTuple, GroupAddedEvent.OutputObject>;
2063
+ "GroupUpdated(uint256,tuple)": TypedContractEvent<GroupUpdatedEvent.InputTuple, GroupUpdatedEvent.OutputTuple, GroupUpdatedEvent.OutputObject>;
2064
+ GroupUpdated: TypedContractEvent<GroupUpdatedEvent.InputTuple, GroupUpdatedEvent.OutputTuple, GroupUpdatedEvent.OutputObject>;
2065
+ "MaxOpenInterestUpdated(uint256,uint256)": TypedContractEvent<MaxOpenInterestUpdatedEvent.InputTuple, MaxOpenInterestUpdatedEvent.OutputTuple, MaxOpenInterestUpdatedEvent.OutputObject>;
2066
+ MaxOpenInterestUpdated: TypedContractEvent<MaxOpenInterestUpdatedEvent.InputTuple, MaxOpenInterestUpdatedEvent.OutputTuple, MaxOpenInterestUpdatedEvent.OutputObject>;
2067
+ "NumberUpdated(uint8,uint256)": TypedContractEvent<NumberUpdatedEvent.InputTuple, NumberUpdatedEvent.OutputTuple, NumberUpdatedEvent.OutputObject>;
2068
+ NumberUpdated: TypedContractEvent<NumberUpdatedEvent.InputTuple, NumberUpdatedEvent.OutputTuple, NumberUpdatedEvent.OutputObject>;
2069
+ "PairAdded(uint256,string,string,tuple)": TypedContractEvent<PairAddedEvent.InputTuple, PairAddedEvent.OutputTuple, PairAddedEvent.OutputObject>;
2070
+ PairAdded: TypedContractEvent<PairAddedEvent.InputTuple, PairAddedEvent.OutputTuple, PairAddedEvent.OutputObject>;
2071
+ "PairUpdated(uint256,tuple)": TypedContractEvent<PairUpdatedEvent.InputTuple, PairUpdatedEvent.OutputTuple, PairUpdatedEvent.OutputObject>;
2072
+ PairUpdated: TypedContractEvent<PairUpdatedEvent.InputTuple, PairUpdatedEvent.OutputTuple, PairUpdatedEvent.OutputObject>;
2073
+ "PerformanceFeeCharging(bytes32,uint256)": TypedContractEvent<PerformanceFeeChargingEvent.InputTuple, PerformanceFeeChargingEvent.OutputTuple, PerformanceFeeChargingEvent.OutputObject>;
2074
+ PerformanceFeeCharging: TypedContractEvent<PerformanceFeeChargingEvent.InputTuple, PerformanceFeeChargingEvent.OutputTuple, PerformanceFeeChargingEvent.OutputObject>;
2075
+ "ProtocolFundingShareAccrued(uint16,uint256)": TypedContractEvent<ProtocolFundingShareAccruedEvent.InputTuple, ProtocolFundingShareAccruedEvent.OutputTuple, ProtocolFundingShareAccruedEvent.OutputObject>;
2076
+ ProtocolFundingShareAccrued: TypedContractEvent<ProtocolFundingShareAccruedEvent.InputTuple, ProtocolFundingShareAccruedEvent.OutputTuple, ProtocolFundingShareAccruedEvent.OutputObject>;
2077
+ "Repay(uint256,uint256,uint256)": TypedContractEvent<RepayEvent.InputTuple, RepayEvent.OutputTuple, RepayEvent.OutputObject>;
2078
+ Repay: TypedContractEvent<RepayEvent.InputTuple, RepayEvent.OutputTuple, RepayEvent.OutputObject>;
2079
+ "TradeInitialAccFeesStored(bytes32,uint256,int256)": TypedContractEvent<TradeInitialAccFeesStoredEvent.InputTuple, TradeInitialAccFeesStoredEvent.OutputTuple, TradeInitialAccFeesStoredEvent.OutputObject>;
2080
+ TradeInitialAccFeesStored: TypedContractEvent<TradeInitialAccFeesStoredEvent.InputTuple, TradeInitialAccFeesStoredEvent.OutputTuple, TradeInitialAccFeesStoredEvent.OutputObject>;
2081
+ "TradersPairGainsReset(uint256)": TypedContractEvent<TradersPairGainsResetEvent.InputTuple, TradersPairGainsResetEvent.OutputTuple, TradersPairGainsResetEvent.OutputObject>;
2082
+ TradersPairGainsReset: TypedContractEvent<TradersPairGainsResetEvent.InputTuple, TradersPairGainsResetEvent.OutputTuple, TradersPairGainsResetEvent.OutputObject>;
2083
+ };
2084
+ }
2085
+ //# sourceMappingURL=PoolAccountantV1.d.ts.map