@reflectmoney/stable.ts 1.0.1 → 1.0.3

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 (311) hide show
  1. package/README.md +108 -84
  2. package/dist/classes/ReflectKeeper.d.ts +104 -0
  3. package/dist/classes/ReflectKeeper.js +219 -0
  4. package/dist/classes/Stablecoin.d.ts +3 -1
  5. package/dist/classes/Stablecoin.js +2 -1
  6. package/dist/classes/index.d.ts +1 -1
  7. package/dist/classes/index.js +1 -1
  8. package/dist/constants/index.d.ts +1 -0
  9. package/dist/constants/index.js +1 -0
  10. package/dist/constants/lookupTables.d.ts +4 -0
  11. package/dist/constants/lookupTables.js +7 -0
  12. package/dist/stablecoins/LstStablecoin.js +1 -1
  13. package/dist/stablecoins/UsdcPlusStablecoin.d.ts +66 -0
  14. package/dist/stablecoins/UsdcPlusStablecoin.js +197 -0
  15. package/dist/stablecoins/UsdjStablecoin.d.ts +1 -0
  16. package/dist/stablecoins/UsdjStablecoin.js +44 -0
  17. package/dist/stablecoins/index.d.ts +2 -2
  18. package/dist/stablecoins/index.js +2 -2
  19. package/package.json +1 -1
  20. package/dist/classes/Strategy.d.ts +0 -30
  21. package/dist/classes/Strategy.js +0 -196
  22. package/dist/generated/accounts/DriftJlpController.d.ts +0 -114
  23. package/dist/generated/accounts/DriftJlpController.js +0 -169
  24. package/dist/generated/accounts/DriftLstController.d.ts +0 -108
  25. package/dist/generated/accounts/DriftLstController.js +0 -165
  26. package/dist/generated/accounts/DriftUsdcController.d.ts +0 -102
  27. package/dist/generated/accounts/DriftUsdcController.js +0 -158
  28. package/dist/generated/accounts/Main.d.ts +0 -110
  29. package/dist/generated/accounts/Main.js +0 -165
  30. package/dist/generated/accounts/PerpMarket.d.ts +0 -226
  31. package/dist/generated/accounts/PerpMarket.js +0 -307
  32. package/dist/generated/accounts/PrelaunchOracle.d.ts +0 -130
  33. package/dist/generated/accounts/PrelaunchOracle.js +0 -224
  34. package/dist/generated/accounts/PythLazerOracle.d.ts +0 -124
  35. package/dist/generated/accounts/PythLazerOracle.js +0 -210
  36. package/dist/generated/accounts/RebalanceLst.d.ts +0 -111
  37. package/dist/generated/accounts/RebalanceLst.js +0 -175
  38. package/dist/generated/accounts/SpotMarket.d.ts +0 -377
  39. package/dist/generated/accounts/SpotMarket.js +0 -601
  40. package/dist/generated/accounts/User.d.ts +0 -221
  41. package/dist/generated/accounts/User.js +0 -331
  42. package/dist/generated/accounts/UserPermissions.d.ts +0 -106
  43. package/dist/generated/accounts/UserPermissions.js +0 -161
  44. package/dist/generated/accounts/UserStats.d.ts +0 -211
  45. package/dist/generated/accounts/UserStats.js +0 -323
  46. package/dist/generated/accounts/index.d.ts +0 -38
  47. package/dist/generated/accounts/index.js +0 -55
  48. package/dist/generated/errors/index.d.ts +0 -1024
  49. package/dist/generated/errors/index.js +0 -1761
  50. package/dist/generated/index.d.ts +0 -19
  51. package/dist/generated/index.js +0 -36
  52. package/dist/generated/instructions/addLstDrift.d.ts +0 -49
  53. package/dist/generated/instructions/addLstDrift.js +0 -106
  54. package/dist/generated/instructions/addSubAccount.d.ts +0 -54
  55. package/dist/generated/instructions/addSubAccount.js +0 -121
  56. package/dist/generated/instructions/adjustHedgeS2.d.ts +0 -69
  57. package/dist/generated/instructions/adjustHedgeS2.js +0 -157
  58. package/dist/generated/instructions/captureSpreadDrift.d.ts +0 -56
  59. package/dist/generated/instructions/captureSpreadDrift.js +0 -120
  60. package/dist/generated/instructions/createAdminAccount.d.ts +0 -53
  61. package/dist/generated/instructions/createAdminAccount.js +0 -95
  62. package/dist/generated/instructions/createUserStatsAccount.d.ts +0 -54
  63. package/dist/generated/instructions/createUserStatsAccount.js +0 -121
  64. package/dist/generated/instructions/depositDrift.d.ts +0 -73
  65. package/dist/generated/instructions/depositDrift.js +0 -142
  66. package/dist/generated/instructions/freezeProgram.d.ts +0 -54
  67. package/dist/generated/instructions/freezeProgram.js +0 -95
  68. package/dist/generated/instructions/freezeProtocolAction.d.ts +0 -55
  69. package/dist/generated/instructions/freezeProtocolAction.js +0 -96
  70. package/dist/generated/instructions/freezeStrategyAction.d.ts +0 -58
  71. package/dist/generated/instructions/freezeStrategyAction.js +0 -102
  72. package/dist/generated/instructions/index.d.ts +0 -41
  73. package/dist/generated/instructions/index.js +0 -57
  74. package/dist/generated/instructions/initDriftAccountsS1.d.ts +0 -56
  75. package/dist/generated/instructions/initDriftAccountsS1.js +0 -126
  76. package/dist/generated/instructions/initDriftControllerS1.d.ts +0 -60
  77. package/dist/generated/instructions/initDriftControllerS1.js +0 -108
  78. package/dist/generated/instructions/initDriftControllerS2.d.ts +0 -66
  79. package/dist/generated/instructions/initDriftControllerS2.js +0 -125
  80. package/dist/generated/instructions/initDriftControllerS3.d.ts +0 -58
  81. package/dist/generated/instructions/initDriftControllerS3.js +0 -103
  82. package/dist/generated/instructions/initMain.d.ts +0 -43
  83. package/dist/generated/instructions/initMain.js +0 -91
  84. package/dist/generated/instructions/mintDriftS1.d.ts +0 -90
  85. package/dist/generated/instructions/mintDriftS1.js +0 -184
  86. package/dist/generated/instructions/mintDriftS2.d.ts +0 -80
  87. package/dist/generated/instructions/mintDriftS2.js +0 -161
  88. package/dist/generated/instructions/mintDriftS3.d.ts +0 -86
  89. package/dist/generated/instructions/mintDriftS3.js +0 -174
  90. package/dist/generated/instructions/processSwapDeposit.d.ts +0 -79
  91. package/dist/generated/instructions/processSwapDeposit.js +0 -161
  92. package/dist/generated/instructions/processSwapDepositIntrospection.d.ts +0 -79
  93. package/dist/generated/instructions/processSwapDepositIntrospection.js +0 -161
  94. package/dist/generated/instructions/processSwapWithdraw.d.ts +0 -68
  95. package/dist/generated/instructions/processSwapWithdraw.js +0 -157
  96. package/dist/generated/instructions/processSwapWithdrawIntrospection.d.ts +0 -68
  97. package/dist/generated/instructions/processSwapWithdrawIntrospection.js +0 -157
  98. package/dist/generated/instructions/rebalanceJlp.d.ts +0 -81
  99. package/dist/generated/instructions/rebalanceJlp.js +0 -187
  100. package/dist/generated/instructions/redeem2DriftS2.d.ts +0 -80
  101. package/dist/generated/instructions/redeem2DriftS2.js +0 -161
  102. package/dist/generated/instructions/redeemDriftS1.d.ts +0 -91
  103. package/dist/generated/instructions/redeemDriftS1.js +0 -185
  104. package/dist/generated/instructions/redeemDriftS2.d.ts +0 -80
  105. package/dist/generated/instructions/redeemDriftS2.js +0 -161
  106. package/dist/generated/instructions/redeemDriftS3.d.ts +0 -87
  107. package/dist/generated/instructions/redeemDriftS3.js +0 -175
  108. package/dist/generated/instructions/settlePnl.d.ts +0 -55
  109. package/dist/generated/instructions/settlePnl.js +0 -114
  110. package/dist/generated/instructions/settlePnlMulti.d.ts +0 -65
  111. package/dist/generated/instructions/settlePnlMulti.js +0 -117
  112. package/dist/generated/instructions/suspendLstProtocol.d.ts +0 -54
  113. package/dist/generated/instructions/suspendLstProtocol.js +0 -96
  114. package/dist/generated/instructions/suspendLstStrategy.d.ts +0 -56
  115. package/dist/generated/instructions/suspendLstStrategy.js +0 -101
  116. package/dist/generated/instructions/swapOrca.d.ts +0 -78
  117. package/dist/generated/instructions/swapOrca.js +0 -153
  118. package/dist/generated/instructions/swapOrcaTwoHop.d.ts +0 -98
  119. package/dist/generated/instructions/swapOrcaTwoHop.js +0 -200
  120. package/dist/generated/instructions/updateActionRoleProtocol.d.ts +0 -58
  121. package/dist/generated/instructions/updateActionRoleProtocol.js +0 -99
  122. package/dist/generated/instructions/updateActionRoleStrategy.d.ts +0 -61
  123. package/dist/generated/instructions/updateActionRoleStrategy.js +0 -105
  124. package/dist/generated/instructions/updateAttenuation.d.ts +0 -56
  125. package/dist/generated/instructions/updateAttenuation.js +0 -100
  126. package/dist/generated/instructions/updateCap.d.ts +0 -55
  127. package/dist/generated/instructions/updateCap.js +0 -99
  128. package/dist/generated/instructions/updateRebalanceSlippage.d.ts +0 -55
  129. package/dist/generated/instructions/updateRebalanceSlippage.js +0 -99
  130. package/dist/generated/instructions/updateRecipients.d.ts +0 -56
  131. package/dist/generated/instructions/updateRecipients.js +0 -101
  132. package/dist/generated/instructions/updateRoleHolderProtocol.d.ts +0 -61
  133. package/dist/generated/instructions/updateRoleHolderProtocol.js +0 -109
  134. package/dist/generated/instructions/updateRoleHolderStrategy.d.ts +0 -62
  135. package/dist/generated/instructions/updateRoleHolderStrategy.js +0 -110
  136. package/dist/generated/types/AMM.d.ts +0 -102
  137. package/dist/generated/types/AMM.js +0 -127
  138. package/dist/generated/types/AccKey.d.ts +0 -15
  139. package/dist/generated/types/AccKey.js +0 -38
  140. package/dist/generated/types/AccessControl.d.ts +0 -18
  141. package/dist/generated/types/AccessControl.js +0 -43
  142. package/dist/generated/types/AccessMap.d.ts +0 -17
  143. package/dist/generated/types/AccessMap.js +0 -42
  144. package/dist/generated/types/Action.d.ts +0 -36
  145. package/dist/generated/types/Action.js +0 -63
  146. package/dist/generated/types/ActionMapping.d.ts +0 -19
  147. package/dist/generated/types/ActionMapping.js +0 -44
  148. package/dist/generated/types/AssetTier.d.ts +0 -23
  149. package/dist/generated/types/AssetTier.js +0 -50
  150. package/dist/generated/types/Attenuation.d.ts +0 -16
  151. package/dist/generated/types/Attenuation.js +0 -41
  152. package/dist/generated/types/BalanceType.d.ts +0 -20
  153. package/dist/generated/types/BalanceType.js +0 -47
  154. package/dist/generated/types/ContractTier.d.ts +0 -24
  155. package/dist/generated/types/ContractTier.js +0 -51
  156. package/dist/generated/types/ContractType.d.ts +0 -20
  157. package/dist/generated/types/ContractType.js +0 -47
  158. package/dist/generated/types/CorpAction.d.ts +0 -19
  159. package/dist/generated/types/CorpAction.js +0 -46
  160. package/dist/generated/types/CustodyInfo.d.ts +0 -20
  161. package/dist/generated/types/CustodyInfo.js +0 -45
  162. package/dist/generated/types/DirectionCollateral.d.ts +0 -20
  163. package/dist/generated/types/DirectionCollateral.js +0 -47
  164. package/dist/generated/types/DirectionPosition.d.ts +0 -20
  165. package/dist/generated/types/DirectionPosition.js +0 -47
  166. package/dist/generated/types/DriftControllerBase.d.ts +0 -15
  167. package/dist/generated/types/DriftControllerBase.js +0 -38
  168. package/dist/generated/types/DriftJlpControllerFixedAccounts.d.ts +0 -18
  169. package/dist/generated/types/DriftJlpControllerFixedAccounts.js +0 -43
  170. package/dist/generated/types/DriftLstData.d.ts +0 -17
  171. package/dist/generated/types/DriftLstData.js +0 -42
  172. package/dist/generated/types/Ema.d.ts +0 -17
  173. package/dist/generated/types/Ema.js +0 -42
  174. package/dist/generated/types/Externals.d.ts +0 -16
  175. package/dist/generated/types/Externals.js +0 -39
  176. package/dist/generated/types/HistoricalIndexData.d.ts +0 -19
  177. package/dist/generated/types/HistoricalIndexData.js +0 -44
  178. package/dist/generated/types/HistoricalOracleData.d.ts +0 -20
  179. package/dist/generated/types/HistoricalOracleData.js +0 -45
  180. package/dist/generated/types/Holding.d.ts +0 -21
  181. package/dist/generated/types/Holding.js +0 -46
  182. package/dist/generated/types/Holdings.d.ts +0 -17
  183. package/dist/generated/types/Holdings.js +0 -42
  184. package/dist/generated/types/InitControllerS2Args.d.ts +0 -23
  185. package/dist/generated/types/InitControllerS2Args.js +0 -48
  186. package/dist/generated/types/InsuranceClaim.d.ts +0 -19
  187. package/dist/generated/types/InsuranceClaim.js +0 -44
  188. package/dist/generated/types/InsuranceFund.d.ts +0 -24
  189. package/dist/generated/types/InsuranceFund.js +0 -49
  190. package/dist/generated/types/JlpRebalanceSettings.d.ts +0 -15
  191. package/dist/generated/types/JlpRebalanceSettings.js +0 -38
  192. package/dist/generated/types/KillSwitch.d.ts +0 -15
  193. package/dist/generated/types/KillSwitch.js +0 -38
  194. package/dist/generated/types/LevelRoles.d.ts +0 -16
  195. package/dist/generated/types/LevelRoles.js +0 -39
  196. package/dist/generated/types/MarketStatus.d.ts +0 -27
  197. package/dist/generated/types/MarketStatus.js +0 -54
  198. package/dist/generated/types/MarketType.d.ts +0 -20
  199. package/dist/generated/types/MarketType.js +0 -47
  200. package/dist/generated/types/MintJlpArgs.d.ts +0 -15
  201. package/dist/generated/types/MintJlpArgs.js +0 -38
  202. package/dist/generated/types/ModifyOrderParams.d.ts +0 -32
  203. package/dist/generated/types/ModifyOrderParams.js +0 -57
  204. package/dist/generated/types/ModifyOrderPolicy.d.ts +0 -20
  205. package/dist/generated/types/ModifyOrderPolicy.js +0 -47
  206. package/dist/generated/types/Movements.d.ts +0 -19
  207. package/dist/generated/types/Movements.js +0 -44
  208. package/dist/generated/types/OracleGuardRails.d.ts +0 -18
  209. package/dist/generated/types/OracleGuardRails.js +0 -43
  210. package/dist/generated/types/OracleSource.d.ts +0 -34
  211. package/dist/generated/types/OracleSource.js +0 -61
  212. package/dist/generated/types/OracleValidity.d.ts +0 -25
  213. package/dist/generated/types/OracleValidity.js +0 -52
  214. package/dist/generated/types/Order.d.ts +0 -43
  215. package/dist/generated/types/Order.js +0 -68
  216. package/dist/generated/types/OrderDirection.d.ts +0 -20
  217. package/dist/generated/types/OrderDirection.js +0 -47
  218. package/dist/generated/types/OrderParams.d.ts +0 -36
  219. package/dist/generated/types/OrderParams.js +0 -61
  220. package/dist/generated/types/OrderStatus.d.ts +0 -22
  221. package/dist/generated/types/OrderStatus.js +0 -49
  222. package/dist/generated/types/OrderTriggerCondition.d.ts +0 -22
  223. package/dist/generated/types/OrderTriggerCondition.js +0 -49
  224. package/dist/generated/types/OrderType.d.ts +0 -23
  225. package/dist/generated/types/OrderType.js +0 -50
  226. package/dist/generated/types/PermissionLevel.d.ts +0 -45
  227. package/dist/generated/types/PermissionLevel.js +0 -48
  228. package/dist/generated/types/PerpHedge.d.ts +0 -17
  229. package/dist/generated/types/PerpHedge.js +0 -42
  230. package/dist/generated/types/PerpPosition.d.ts +0 -29
  231. package/dist/generated/types/PerpPosition.js +0 -54
  232. package/dist/generated/types/PoolBalance.d.ts +0 -17
  233. package/dist/generated/types/PoolBalance.js +0 -42
  234. package/dist/generated/types/Position.d.ts +0 -20
  235. package/dist/generated/types/Position.js +0 -45
  236. package/dist/generated/types/PositionDirection.d.ts +0 -20
  237. package/dist/generated/types/PositionDirection.js +0 -47
  238. package/dist/generated/types/PositionDrift.d.ts +0 -18
  239. package/dist/generated/types/PositionDrift.js +0 -43
  240. package/dist/generated/types/PostOnlyParam.d.ts +0 -22
  241. package/dist/generated/types/PostOnlyParam.js +0 -49
  242. package/dist/generated/types/Price.d.ts +0 -41
  243. package/dist/generated/types/Price.js +0 -66
  244. package/dist/generated/types/PriceComp.d.ts +0 -19
  245. package/dist/generated/types/PriceComp.js +0 -44
  246. package/dist/generated/types/PriceDivergenceGuardRails.d.ts +0 -16
  247. package/dist/generated/types/PriceDivergenceGuardRails.js +0 -41
  248. package/dist/generated/types/PriceInfo.d.ts +0 -21
  249. package/dist/generated/types/PriceInfo.js +0 -46
  250. package/dist/generated/types/PriceStatus.d.ts +0 -22
  251. package/dist/generated/types/PriceStatus.js +0 -49
  252. package/dist/generated/types/PriceType.d.ts +0 -20
  253. package/dist/generated/types/PriceType.js +0 -47
  254. package/dist/generated/types/ProcessSwapDepositArgs.d.ts +0 -15
  255. package/dist/generated/types/ProcessSwapDepositArgs.js +0 -38
  256. package/dist/generated/types/ProcessSwapDepositIntrospectionArgs.d.ts +0 -15
  257. package/dist/generated/types/ProcessSwapDepositIntrospectionArgs.js +0 -38
  258. package/dist/generated/types/Program.d.ts +0 -19
  259. package/dist/generated/types/Program.js +0 -44
  260. package/dist/generated/types/ProgramStatus.d.ts +0 -20
  261. package/dist/generated/types/ProgramStatus.js +0 -47
  262. package/dist/generated/types/RebalanceConfig.d.ts +0 -15
  263. package/dist/generated/types/RebalanceConfig.js +0 -38
  264. package/dist/generated/types/Recipient.d.ts +0 -17
  265. package/dist/generated/types/Recipient.js +0 -42
  266. package/dist/generated/types/Recipients.d.ts +0 -17
  267. package/dist/generated/types/Recipients.js +0 -42
  268. package/dist/generated/types/RedeemJlpArgs.d.ts +0 -15
  269. package/dist/generated/types/RedeemJlpArgs.js +0 -38
  270. package/dist/generated/types/Role.d.ts +0 -25
  271. package/dist/generated/types/Role.js +0 -52
  272. package/dist/generated/types/ShiftCollateral.d.ts +0 -19
  273. package/dist/generated/types/ShiftCollateral.js +0 -44
  274. package/dist/generated/types/ShiftPosition.d.ts +0 -17
  275. package/dist/generated/types/ShiftPosition.js +0 -42
  276. package/dist/generated/types/ShortHolding.d.ts +0 -17
  277. package/dist/generated/types/ShortHolding.js +0 -42
  278. package/dist/generated/types/SplBase.d.ts +0 -17
  279. package/dist/generated/types/SplBase.js +0 -42
  280. package/dist/generated/types/SplMain.d.ts +0 -22
  281. package/dist/generated/types/SplMain.js +0 -47
  282. package/dist/generated/types/Spls.d.ts +0 -17
  283. package/dist/generated/types/Spls.js +0 -42
  284. package/dist/generated/types/SpotBalanceType.d.ts +0 -20
  285. package/dist/generated/types/SpotBalanceType.js +0 -47
  286. package/dist/generated/types/SpotPosition.d.ts +0 -23
  287. package/dist/generated/types/SpotPosition.js +0 -48
  288. package/dist/generated/types/Status.d.ts +0 -20
  289. package/dist/generated/types/Status.js +0 -47
  290. package/dist/generated/types/Strategy.d.ts +0 -31
  291. package/dist/generated/types/Strategy.js +0 -56
  292. package/dist/generated/types/StrategyRoleEntry.d.ts +0 -17
  293. package/dist/generated/types/StrategyRoleEntry.js +0 -42
  294. package/dist/generated/types/SubAccount.d.ts +0 -17
  295. package/dist/generated/types/SubAccount.js +0 -42
  296. package/dist/generated/types/Update.d.ts +0 -20
  297. package/dist/generated/types/Update.js +0 -47
  298. package/dist/generated/types/UserFees.d.ts +0 -20
  299. package/dist/generated/types/UserFees.js +0 -45
  300. package/dist/generated/types/ValidityGuardRails.d.ts +0 -18
  301. package/dist/generated/types/ValidityGuardRails.js +0 -43
  302. package/dist/generated/types/index.d.ts +0 -83
  303. package/dist/generated/types/index.js +0 -99
  304. package/dist/strategies/JlpStrategy.d.ts +0 -17
  305. package/dist/strategies/JlpStrategy.js +0 -337
  306. package/dist/strategies/LstStrategy.d.ts +0 -19
  307. package/dist/strategies/LstStrategy.js +0 -169
  308. package/dist/strategies/UsdcStrategy.d.ts +0 -12
  309. package/dist/strategies/UsdcStrategy.js +0 -89
  310. package/dist/strategies/index.d.ts +0 -3
  311. package/dist/strategies/index.js +0 -19
@@ -1,158 +0,0 @@
1
- "use strict";
2
- /**
3
- * This code was GENERATED using the solita package.
4
- * Please DO NOT EDIT THIS FILE, instead rerun solita to update it or write a wrapper to add functionality.
5
- *
6
- * See: https://github.com/metaplex-foundation/solita
7
- */
8
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
9
- if (k2 === undefined) k2 = k;
10
- var desc = Object.getOwnPropertyDescriptor(m, k);
11
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
12
- desc = { enumerable: true, get: function() { return m[k]; } };
13
- }
14
- Object.defineProperty(o, k2, desc);
15
- }) : (function(o, m, k, k2) {
16
- if (k2 === undefined) k2 = k;
17
- o[k2] = m[k];
18
- }));
19
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
20
- Object.defineProperty(o, "default", { enumerable: true, value: v });
21
- }) : function(o, v) {
22
- o["default"] = v;
23
- });
24
- var __importStar = (this && this.__importStar) || function (mod) {
25
- if (mod && mod.__esModule) return mod;
26
- var result = {};
27
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
28
- __setModuleDefault(result, mod);
29
- return result;
30
- };
31
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
32
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
33
- return new (P || (P = Promise))(function (resolve, reject) {
34
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
35
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
36
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
37
- step((generator = generator.apply(thisArg, _arguments || [])).next());
38
- });
39
- };
40
- Object.defineProperty(exports, "__esModule", { value: true });
41
- exports.driftUsdcControllerBeet = exports.DriftUsdcController = exports.driftUsdcControllerDiscriminator = void 0;
42
- const web3 = __importStar(require("@solana/web3.js"));
43
- const beet = __importStar(require("@metaplex-foundation/beet"));
44
- const beetSolana = __importStar(require("@metaplex-foundation/beet-solana"));
45
- const Strategy_1 = require("../types/Strategy");
46
- const DriftControllerBase_1 = require("../types/DriftControllerBase");
47
- exports.driftUsdcControllerDiscriminator = [
48
- 148, 44, 102, 104, 86, 118, 225, 194,
49
- ];
50
- /**
51
- * Holds the data for the {@link DriftUsdcController} Account and provides de/serialization
52
- * functionality for that data
53
- *
54
- * @category Accounts
55
- * @category generated
56
- */
57
- class DriftUsdcController {
58
- constructor(baseStrategy, baseDrift) {
59
- this.baseStrategy = baseStrategy;
60
- this.baseDrift = baseDrift;
61
- }
62
- /**
63
- * Creates a {@link DriftUsdcController} instance from the provided args.
64
- */
65
- static fromArgs(args) {
66
- return new DriftUsdcController(args.baseStrategy, args.baseDrift);
67
- }
68
- /**
69
- * Deserializes the {@link DriftUsdcController} from the data of the provided {@link web3.AccountInfo}.
70
- * @returns a tuple of the account data and the offset up to which the buffer was read to obtain it.
71
- */
72
- static fromAccountInfo(accountInfo, offset = 0) {
73
- return DriftUsdcController.deserialize(accountInfo.data, offset);
74
- }
75
- /**
76
- * Retrieves the account info from the provided address and deserializes
77
- * the {@link DriftUsdcController} from its data.
78
- *
79
- * @throws Error if no account info is found at the address or if deserialization fails
80
- */
81
- static fromAccountAddress(connection, address, commitmentOrConfig) {
82
- return __awaiter(this, void 0, void 0, function* () {
83
- const accountInfo = yield connection.getAccountInfo(address, commitmentOrConfig);
84
- if (accountInfo == null) {
85
- throw new Error(`Unable to find DriftUsdcController account at ${address}`);
86
- }
87
- return DriftUsdcController.fromAccountInfo(accountInfo, 0)[0];
88
- });
89
- }
90
- /**
91
- * Provides a {@link web3.Connection.getProgramAccounts} config builder,
92
- * to fetch accounts matching filters that can be specified via that builder.
93
- *
94
- * @param programId - the program that owns the accounts we are filtering
95
- */
96
- static gpaBuilder(programId = new web3.PublicKey('9CtYQNCz3LaQ9DnqXa83q6gdHGwMeN6aQ7KqqotBmeke')) {
97
- return beetSolana.GpaBuilder.fromStruct(programId, exports.driftUsdcControllerBeet);
98
- }
99
- /**
100
- * Deserializes the {@link DriftUsdcController} from the provided data Buffer.
101
- * @returns a tuple of the account data and the offset up to which the buffer was read to obtain it.
102
- */
103
- static deserialize(buf, offset = 0) {
104
- return exports.driftUsdcControllerBeet.deserialize(buf, offset);
105
- }
106
- /**
107
- * Serializes the {@link DriftUsdcController} into a Buffer.
108
- * @returns a tuple of the created Buffer and the offset up to which the buffer was written to store it.
109
- */
110
- serialize() {
111
- return exports.driftUsdcControllerBeet.serialize(Object.assign({ accountDiscriminator: exports.driftUsdcControllerDiscriminator }, this));
112
- }
113
- /**
114
- * Returns the byteSize of a {@link Buffer} holding the serialized data of
115
- * {@link DriftUsdcController}
116
- */
117
- static get byteSize() {
118
- return exports.driftUsdcControllerBeet.byteSize;
119
- }
120
- /**
121
- * Fetches the minimum balance needed to exempt an account holding
122
- * {@link DriftUsdcController} data from rent
123
- *
124
- * @param connection used to retrieve the rent exemption information
125
- */
126
- static getMinimumBalanceForRentExemption(connection, commitment) {
127
- return __awaiter(this, void 0, void 0, function* () {
128
- return connection.getMinimumBalanceForRentExemption(DriftUsdcController.byteSize, commitment);
129
- });
130
- }
131
- /**
132
- * Determines if the provided {@link Buffer} has the correct byte size to
133
- * hold {@link DriftUsdcController} data.
134
- */
135
- static hasCorrectByteSize(buf, offset = 0) {
136
- return buf.byteLength - offset === DriftUsdcController.byteSize;
137
- }
138
- /**
139
- * Returns a readable version of {@link DriftUsdcController} properties
140
- * and can be used to convert to JSON and/or logging
141
- */
142
- pretty() {
143
- return {
144
- baseStrategy: this.baseStrategy,
145
- baseDrift: this.baseDrift,
146
- };
147
- }
148
- }
149
- exports.DriftUsdcController = DriftUsdcController;
150
- /**
151
- * @category Accounts
152
- * @category generated
153
- */
154
- exports.driftUsdcControllerBeet = new beet.BeetStruct([
155
- ['accountDiscriminator', beet.uniformFixedSizeArray(beet.u8, 8)],
156
- ['baseStrategy', Strategy_1.strategyBeet],
157
- ['baseDrift', DriftControllerBase_1.driftControllerBaseBeet],
158
- ], DriftUsdcController.fromArgs, 'DriftUsdcController');
@@ -1,110 +0,0 @@
1
- /**
2
- * This code was GENERATED using the solita package.
3
- * Please DO NOT EDIT THIS FILE, instead rerun solita to update it or write a wrapper to add functionality.
4
- *
5
- * See: https://github.com/metaplex-foundation/solita
6
- */
7
- import * as beet from '@metaplex-foundation/beet';
8
- import * as web3 from '@solana/web3.js';
9
- import * as beetSolana from '@metaplex-foundation/beet-solana';
10
- import { AccessControl } from '../types/AccessControl';
11
- import { SplMain } from '../types/SplMain';
12
- import { Externals } from '../types/Externals';
13
- /**
14
- * Arguments used to create {@link Main}
15
- * @category Accounts
16
- * @category generated
17
- */
18
- export type MainArgs = {
19
- bump: number;
20
- accessControl: AccessControl;
21
- lstsMain: SplMain[];
22
- externals: Externals;
23
- strategyCounter: number;
24
- };
25
- export declare const mainDiscriminator: number[];
26
- /**
27
- * Holds the data for the {@link Main} Account and provides de/serialization
28
- * functionality for that data
29
- *
30
- * @category Accounts
31
- * @category generated
32
- */
33
- export declare class Main implements MainArgs {
34
- readonly bump: number;
35
- readonly accessControl: AccessControl;
36
- readonly lstsMain: SplMain[];
37
- readonly externals: Externals;
38
- readonly strategyCounter: number;
39
- private constructor();
40
- /**
41
- * Creates a {@link Main} instance from the provided args.
42
- */
43
- static fromArgs(args: MainArgs): Main;
44
- /**
45
- * Deserializes the {@link Main} from the data of the provided {@link web3.AccountInfo}.
46
- * @returns a tuple of the account data and the offset up to which the buffer was read to obtain it.
47
- */
48
- static fromAccountInfo(accountInfo: web3.AccountInfo<Buffer>, offset?: number): [Main, number];
49
- /**
50
- * Retrieves the account info from the provided address and deserializes
51
- * the {@link Main} from its data.
52
- *
53
- * @throws Error if no account info is found at the address or if deserialization fails
54
- */
55
- static fromAccountAddress(connection: web3.Connection, address: web3.PublicKey, commitmentOrConfig?: web3.Commitment | web3.GetAccountInfoConfig): Promise<Main>;
56
- /**
57
- * Provides a {@link web3.Connection.getProgramAccounts} config builder,
58
- * to fetch accounts matching filters that can be specified via that builder.
59
- *
60
- * @param programId - the program that owns the accounts we are filtering
61
- */
62
- static gpaBuilder(programId?: web3.PublicKey): beetSolana.GpaBuilder<MainArgs & {
63
- accountDiscriminator: number[];
64
- }>;
65
- /**
66
- * Deserializes the {@link Main} from the provided data Buffer.
67
- * @returns a tuple of the account data and the offset up to which the buffer was read to obtain it.
68
- */
69
- static deserialize(buf: Buffer, offset?: number): [Main, number];
70
- /**
71
- * Serializes the {@link Main} into a Buffer.
72
- * @returns a tuple of the created Buffer and the offset up to which the buffer was written to store it.
73
- */
74
- serialize(): [Buffer, number];
75
- /**
76
- * Returns the byteSize of a {@link Buffer} holding the serialized data of
77
- * {@link Main} for the provided args.
78
- *
79
- * @param args need to be provided since the byte size for this account
80
- * depends on them
81
- */
82
- static byteSize(args: MainArgs): number;
83
- /**
84
- * Fetches the minimum balance needed to exempt an account holding
85
- * {@link Main} data from rent
86
- *
87
- * @param args need to be provided since the byte size for this account
88
- * depends on them
89
- * @param connection used to retrieve the rent exemption information
90
- */
91
- static getMinimumBalanceForRentExemption(args: MainArgs, connection: web3.Connection, commitment?: web3.Commitment): Promise<number>;
92
- /**
93
- * Returns a readable version of {@link Main} properties
94
- * and can be used to convert to JSON and/or logging
95
- */
96
- pretty(): {
97
- bump: number;
98
- accessControl: AccessControl;
99
- lstsMain: SplMain[];
100
- externals: Externals;
101
- strategyCounter: number;
102
- };
103
- }
104
- /**
105
- * @category Accounts
106
- * @category generated
107
- */
108
- export declare const mainBeet: beet.FixableBeetStruct<Main, MainArgs & {
109
- accountDiscriminator: number[];
110
- }>;
@@ -1,165 +0,0 @@
1
- "use strict";
2
- /**
3
- * This code was GENERATED using the solita package.
4
- * Please DO NOT EDIT THIS FILE, instead rerun solita to update it or write a wrapper to add functionality.
5
- *
6
- * See: https://github.com/metaplex-foundation/solita
7
- */
8
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
9
- if (k2 === undefined) k2 = k;
10
- var desc = Object.getOwnPropertyDescriptor(m, k);
11
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
12
- desc = { enumerable: true, get: function() { return m[k]; } };
13
- }
14
- Object.defineProperty(o, k2, desc);
15
- }) : (function(o, m, k, k2) {
16
- if (k2 === undefined) k2 = k;
17
- o[k2] = m[k];
18
- }));
19
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
20
- Object.defineProperty(o, "default", { enumerable: true, value: v });
21
- }) : function(o, v) {
22
- o["default"] = v;
23
- });
24
- var __importStar = (this && this.__importStar) || function (mod) {
25
- if (mod && mod.__esModule) return mod;
26
- var result = {};
27
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
28
- __setModuleDefault(result, mod);
29
- return result;
30
- };
31
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
32
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
33
- return new (P || (P = Promise))(function (resolve, reject) {
34
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
35
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
36
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
37
- step((generator = generator.apply(thisArg, _arguments || [])).next());
38
- });
39
- };
40
- Object.defineProperty(exports, "__esModule", { value: true });
41
- exports.mainBeet = exports.Main = exports.mainDiscriminator = void 0;
42
- const beet = __importStar(require("@metaplex-foundation/beet"));
43
- const web3 = __importStar(require("@solana/web3.js"));
44
- const beetSolana = __importStar(require("@metaplex-foundation/beet-solana"));
45
- const AccessControl_1 = require("../types/AccessControl");
46
- const SplMain_1 = require("../types/SplMain");
47
- const Externals_1 = require("../types/Externals");
48
- exports.mainDiscriminator = [103, 173, 93, 26, 84, 137, 56, 96];
49
- /**
50
- * Holds the data for the {@link Main} Account and provides de/serialization
51
- * functionality for that data
52
- *
53
- * @category Accounts
54
- * @category generated
55
- */
56
- class Main {
57
- constructor(bump, accessControl, lstsMain, externals, strategyCounter) {
58
- this.bump = bump;
59
- this.accessControl = accessControl;
60
- this.lstsMain = lstsMain;
61
- this.externals = externals;
62
- this.strategyCounter = strategyCounter;
63
- }
64
- /**
65
- * Creates a {@link Main} instance from the provided args.
66
- */
67
- static fromArgs(args) {
68
- return new Main(args.bump, args.accessControl, args.lstsMain, args.externals, args.strategyCounter);
69
- }
70
- /**
71
- * Deserializes the {@link Main} from the data of the provided {@link web3.AccountInfo}.
72
- * @returns a tuple of the account data and the offset up to which the buffer was read to obtain it.
73
- */
74
- static fromAccountInfo(accountInfo, offset = 0) {
75
- return Main.deserialize(accountInfo.data, offset);
76
- }
77
- /**
78
- * Retrieves the account info from the provided address and deserializes
79
- * the {@link Main} from its data.
80
- *
81
- * @throws Error if no account info is found at the address or if deserialization fails
82
- */
83
- static fromAccountAddress(connection, address, commitmentOrConfig) {
84
- return __awaiter(this, void 0, void 0, function* () {
85
- const accountInfo = yield connection.getAccountInfo(address, commitmentOrConfig);
86
- if (accountInfo == null) {
87
- throw new Error(`Unable to find Main account at ${address}`);
88
- }
89
- return Main.fromAccountInfo(accountInfo, 0)[0];
90
- });
91
- }
92
- /**
93
- * Provides a {@link web3.Connection.getProgramAccounts} config builder,
94
- * to fetch accounts matching filters that can be specified via that builder.
95
- *
96
- * @param programId - the program that owns the accounts we are filtering
97
- */
98
- static gpaBuilder(programId = new web3.PublicKey('9CtYQNCz3LaQ9DnqXa83q6gdHGwMeN6aQ7KqqotBmeke')) {
99
- return beetSolana.GpaBuilder.fromStruct(programId, exports.mainBeet);
100
- }
101
- /**
102
- * Deserializes the {@link Main} from the provided data Buffer.
103
- * @returns a tuple of the account data and the offset up to which the buffer was read to obtain it.
104
- */
105
- static deserialize(buf, offset = 0) {
106
- return exports.mainBeet.deserialize(buf, offset);
107
- }
108
- /**
109
- * Serializes the {@link Main} into a Buffer.
110
- * @returns a tuple of the created Buffer and the offset up to which the buffer was written to store it.
111
- */
112
- serialize() {
113
- return exports.mainBeet.serialize(Object.assign({ accountDiscriminator: exports.mainDiscriminator }, this));
114
- }
115
- /**
116
- * Returns the byteSize of a {@link Buffer} holding the serialized data of
117
- * {@link Main} for the provided args.
118
- *
119
- * @param args need to be provided since the byte size for this account
120
- * depends on them
121
- */
122
- static byteSize(args) {
123
- const instance = Main.fromArgs(args);
124
- return exports.mainBeet.toFixedFromValue(Object.assign({ accountDiscriminator: exports.mainDiscriminator }, instance)).byteSize;
125
- }
126
- /**
127
- * Fetches the minimum balance needed to exempt an account holding
128
- * {@link Main} data from rent
129
- *
130
- * @param args need to be provided since the byte size for this account
131
- * depends on them
132
- * @param connection used to retrieve the rent exemption information
133
- */
134
- static getMinimumBalanceForRentExemption(args, connection, commitment) {
135
- return __awaiter(this, void 0, void 0, function* () {
136
- return connection.getMinimumBalanceForRentExemption(Main.byteSize(args), commitment);
137
- });
138
- }
139
- /**
140
- * Returns a readable version of {@link Main} properties
141
- * and can be used to convert to JSON and/or logging
142
- */
143
- pretty() {
144
- return {
145
- bump: this.bump,
146
- accessControl: this.accessControl,
147
- lstsMain: this.lstsMain,
148
- externals: this.externals,
149
- strategyCounter: this.strategyCounter,
150
- };
151
- }
152
- }
153
- exports.Main = Main;
154
- /**
155
- * @category Accounts
156
- * @category generated
157
- */
158
- exports.mainBeet = new beet.FixableBeetStruct([
159
- ['accountDiscriminator', beet.uniformFixedSizeArray(beet.u8, 8)],
160
- ['bump', beet.u8],
161
- ['accessControl', AccessControl_1.accessControlBeet],
162
- ['lstsMain', beet.array(SplMain_1.splMainBeet)],
163
- ['externals', Externals_1.externalsBeet],
164
- ['strategyCounter', beet.u8],
165
- ], Main.fromArgs, 'Main');
@@ -1,226 +0,0 @@
1
- /**
2
- * This code was GENERATED using the solita package.
3
- * Please DO NOT EDIT THIS FILE, instead rerun solita to update it or write a wrapper to add functionality.
4
- *
5
- * See: https://github.com/metaplex-foundation/solita
6
- */
7
- import * as web3 from '@solana/web3.js';
8
- import * as beet from '@metaplex-foundation/beet';
9
- import * as beetSolana from '@metaplex-foundation/beet-solana';
10
- import { AMM } from '../types/AMM';
11
- import { PoolBalance } from '../types/PoolBalance';
12
- import { InsuranceClaim } from '../types/InsuranceClaim';
13
- import { MarketStatus } from '../types/MarketStatus';
14
- import { ContractType } from '../types/ContractType';
15
- import { ContractTier } from '../types/ContractTier';
16
- /**
17
- * Arguments used to create {@link PerpMarket}
18
- * @category Accounts
19
- * @category generated
20
- */
21
- export type PerpMarketArgs = {
22
- pubkey: web3.PublicKey;
23
- amm: AMM;
24
- pnlPool: PoolBalance;
25
- name: number[];
26
- insuranceClaim: InsuranceClaim;
27
- unrealizedPnlMaxImbalance: beet.bignum;
28
- expiryTs: beet.bignum;
29
- expiryPrice: beet.bignum;
30
- nextFillRecordId: beet.bignum;
31
- nextFundingRateRecordId: beet.bignum;
32
- nextCurveRecordId: beet.bignum;
33
- imfFactor: number;
34
- unrealizedPnlImfFactor: number;
35
- liquidatorFee: number;
36
- ifLiquidationFee: number;
37
- marginRatioInitial: number;
38
- marginRatioMaintenance: number;
39
- unrealizedPnlInitialAssetWeight: number;
40
- unrealizedPnlMaintenanceAssetWeight: number;
41
- numberOfUsersWithBase: number;
42
- numberOfUsers: number;
43
- marketIndex: number;
44
- status: MarketStatus;
45
- contractType: ContractType;
46
- contractTier: ContractTier;
47
- pausedOperations: number;
48
- quoteSpotMarketIndex: number;
49
- feeAdjustment: number;
50
- padding: number[];
51
- };
52
- export declare const perpMarketDiscriminator: number[];
53
- /**
54
- * Holds the data for the {@link PerpMarket} Account and provides de/serialization
55
- * functionality for that data
56
- *
57
- * @category Accounts
58
- * @category generated
59
- */
60
- export declare class PerpMarket implements PerpMarketArgs {
61
- readonly pubkey: web3.PublicKey;
62
- readonly amm: AMM;
63
- readonly pnlPool: PoolBalance;
64
- readonly name: number[];
65
- readonly insuranceClaim: InsuranceClaim;
66
- readonly unrealizedPnlMaxImbalance: beet.bignum;
67
- readonly expiryTs: beet.bignum;
68
- readonly expiryPrice: beet.bignum;
69
- readonly nextFillRecordId: beet.bignum;
70
- readonly nextFundingRateRecordId: beet.bignum;
71
- readonly nextCurveRecordId: beet.bignum;
72
- readonly imfFactor: number;
73
- readonly unrealizedPnlImfFactor: number;
74
- readonly liquidatorFee: number;
75
- readonly ifLiquidationFee: number;
76
- readonly marginRatioInitial: number;
77
- readonly marginRatioMaintenance: number;
78
- readonly unrealizedPnlInitialAssetWeight: number;
79
- readonly unrealizedPnlMaintenanceAssetWeight: number;
80
- readonly numberOfUsersWithBase: number;
81
- readonly numberOfUsers: number;
82
- readonly marketIndex: number;
83
- readonly status: MarketStatus;
84
- readonly contractType: ContractType;
85
- readonly contractTier: ContractTier;
86
- readonly pausedOperations: number;
87
- readonly quoteSpotMarketIndex: number;
88
- readonly feeAdjustment: number;
89
- readonly padding: number[];
90
- private constructor();
91
- /**
92
- * Creates a {@link PerpMarket} instance from the provided args.
93
- */
94
- static fromArgs(args: PerpMarketArgs): PerpMarket;
95
- /**
96
- * Deserializes the {@link PerpMarket} from the data of the provided {@link web3.AccountInfo}.
97
- * @returns a tuple of the account data and the offset up to which the buffer was read to obtain it.
98
- */
99
- static fromAccountInfo(accountInfo: web3.AccountInfo<Buffer>, offset?: number): [PerpMarket, number];
100
- /**
101
- * Retrieves the account info from the provided address and deserializes
102
- * the {@link PerpMarket} from its data.
103
- *
104
- * @throws Error if no account info is found at the address or if deserialization fails
105
- */
106
- static fromAccountAddress(connection: web3.Connection, address: web3.PublicKey, commitmentOrConfig?: web3.Commitment | web3.GetAccountInfoConfig): Promise<PerpMarket>;
107
- /**
108
- * Provides a {@link web3.Connection.getProgramAccounts} config builder,
109
- * to fetch accounts matching filters that can be specified via that builder.
110
- *
111
- * @param programId - the program that owns the accounts we are filtering
112
- */
113
- static gpaBuilder(programId?: web3.PublicKey): beetSolana.GpaBuilder<{
114
- status: any;
115
- marketIndex: any;
116
- accountDiscriminator: any;
117
- padding: any;
118
- pubkey: any;
119
- amm: any;
120
- pnlPool: any;
121
- name: any;
122
- insuranceClaim: any;
123
- unrealizedPnlMaxImbalance: any;
124
- expiryTs: any;
125
- expiryPrice: any;
126
- nextFillRecordId: any;
127
- nextFundingRateRecordId: any;
128
- nextCurveRecordId: any;
129
- imfFactor: any;
130
- unrealizedPnlImfFactor: any;
131
- liquidatorFee: any;
132
- ifLiquidationFee: any;
133
- marginRatioInitial: any;
134
- marginRatioMaintenance: any;
135
- unrealizedPnlInitialAssetWeight: any;
136
- unrealizedPnlMaintenanceAssetWeight: any;
137
- numberOfUsersWithBase: any;
138
- numberOfUsers: any;
139
- contractType: any;
140
- contractTier: any;
141
- pausedOperations: any;
142
- quoteSpotMarketIndex: any;
143
- feeAdjustment: any;
144
- }>;
145
- /**
146
- * Deserializes the {@link PerpMarket} from the provided data Buffer.
147
- * @returns a tuple of the account data and the offset up to which the buffer was read to obtain it.
148
- */
149
- static deserialize(buf: Buffer, offset?: number): [PerpMarket, number];
150
- /**
151
- * Serializes the {@link PerpMarket} into a Buffer.
152
- * @returns a tuple of the created Buffer and the offset up to which the buffer was written to store it.
153
- */
154
- serialize(): [Buffer, number];
155
- /**
156
- * Returns the byteSize of a {@link Buffer} holding the serialized data of
157
- * {@link PerpMarket}
158
- */
159
- static get byteSize(): number;
160
- /**
161
- * Fetches the minimum balance needed to exempt an account holding
162
- * {@link PerpMarket} data from rent
163
- *
164
- * @param connection used to retrieve the rent exemption information
165
- */
166
- static getMinimumBalanceForRentExemption(connection: web3.Connection, commitment?: web3.Commitment): Promise<number>;
167
- /**
168
- * Determines if the provided {@link Buffer} has the correct byte size to
169
- * hold {@link PerpMarket} data.
170
- */
171
- static hasCorrectByteSize(buf: Buffer, offset?: number): boolean;
172
- /**
173
- * Returns a readable version of {@link PerpMarket} properties
174
- * and can be used to convert to JSON and/or logging
175
- */
176
- pretty(): {
177
- pubkey: string;
178
- amm: AMM;
179
- pnlPool: PoolBalance;
180
- name: number[];
181
- insuranceClaim: InsuranceClaim;
182
- unrealizedPnlMaxImbalance: number | {
183
- toNumber: () => number;
184
- };
185
- expiryTs: number | {
186
- toNumber: () => number;
187
- };
188
- expiryPrice: number | {
189
- toNumber: () => number;
190
- };
191
- nextFillRecordId: number | {
192
- toNumber: () => number;
193
- };
194
- nextFundingRateRecordId: number | {
195
- toNumber: () => number;
196
- };
197
- nextCurveRecordId: number | {
198
- toNumber: () => number;
199
- };
200
- imfFactor: number;
201
- unrealizedPnlImfFactor: number;
202
- liquidatorFee: number;
203
- ifLiquidationFee: number;
204
- marginRatioInitial: number;
205
- marginRatioMaintenance: number;
206
- unrealizedPnlInitialAssetWeight: number;
207
- unrealizedPnlMaintenanceAssetWeight: number;
208
- numberOfUsersWithBase: number;
209
- numberOfUsers: number;
210
- marketIndex: number;
211
- status: string;
212
- contractType: string;
213
- contractTier: string;
214
- pausedOperations: number;
215
- quoteSpotMarketIndex: number;
216
- feeAdjustment: number;
217
- padding: number[];
218
- };
219
- }
220
- /**
221
- * @category Accounts
222
- * @category generated
223
- */
224
- export declare const perpMarketBeet: beet.BeetStruct<PerpMarket, PerpMarketArgs & {
225
- accountDiscriminator: number[];
226
- }>;